Move `GraphicSlot` out of `components` module (#3444)

Marshall Bowers created

This PR moves the `GraphicSlot` definition out of the `components`
module, as it doesn't contain a component.

Release Notes:

- N/A

Change summary

crates/ui2/src/components.rs | 2 --
crates/ui2/src/slot.rs       | 4 +---
crates/ui2/src/ui2.rs        | 2 ++
3 files changed, 3 insertions(+), 5 deletions(-)

Detailed changes

crates/ui2/src/components.rs 🔗

@@ -11,7 +11,6 @@ mod keybinding;
 mod label;
 mod list;
 mod popover;
-mod slot;
 mod stack;
 mod tooltip;
 
@@ -31,7 +30,6 @@ pub use keybinding::*;
 pub use label::*;
 pub use list::*;
 pub use popover::*;
-pub use slot::*;
 pub use stack::*;
 pub use tooltip::*;
 

crates/ui2/src/components/slot.rs → crates/ui2/src/slot.rs 🔗

@@ -2,11 +2,9 @@ use gpui::{ImageSource, SharedString};
 
 use crate::Icon;
 
-#[derive(Debug, Clone)]
 /// A slot utility that provides a way to to pass either
 /// an icon or an image to a component.
-///
-/// Can be filled with a []
+#[derive(Debug, Clone)]
 pub enum GraphicSlot {
     Icon(Icon),
     Avatar(ImageSource),

crates/ui2/src/ui2.rs 🔗

@@ -18,6 +18,7 @@ mod disableable;
 mod fixed;
 pub mod prelude;
 mod selectable;
+mod slot;
 mod styled_ext;
 mod styles;
 mod toggleable;
@@ -29,6 +30,7 @@ pub use disableable::*;
 pub use fixed::*;
 pub use prelude::*;
 pub use selectable::*;
+pub use slot::*;
 pub use styled_ext::*;
 pub use styles::*;
 pub use toggleable::*;