Restructure ui into just elements and components (#3023)

This PR restructures the `ui` crate into just `elements` and
`components`.

This was already done on the `gpui2-ui` branch, just getting it onto
`main`.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <nate@zed.dev>
This commit is contained in:
Marshall Bowers 2023-09-22 21:27:47 -04:00 committed by GitHub
parent 895386cfaf
commit 0697d08e54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 22 additions and 28 deletions

View file

@ -1,22 +1,44 @@
mod breadcrumb; mod breadcrumb;
mod chat_panel;
mod collab_panel;
mod command_palette;
mod facepile; mod facepile;
mod follow_group; mod follow_group;
mod icon_button;
mod list;
mod list_item; mod list_item;
mod list_section_header; mod list_section_header;
mod palette;
mod palette_item; mod palette_item;
mod project_panel;
mod status_bar;
mod tab; mod tab;
mod tab_bar;
mod title_bar;
mod toolbar; mod toolbar;
mod traffic_lights; mod traffic_lights;
mod workspace;
pub use breadcrumb::*; pub use breadcrumb::*;
pub use chat_panel::*;
pub use collab_panel::*;
pub use command_palette::*;
pub use facepile::*; pub use facepile::*;
pub use follow_group::*; pub use follow_group::*;
pub use icon_button::*;
pub use list::*;
pub use list_item::*; pub use list_item::*;
pub use list_section_header::*; pub use list_section_header::*;
pub use palette::*;
pub use palette_item::*; pub use palette_item::*;
pub use project_panel::*;
pub use status_bar::*;
pub use tab::*; pub use tab::*;
pub use tab_bar::*;
pub use title_bar::*;
pub use toolbar::*; pub use toolbar::*;
pub use traffic_lights::*; pub use traffic_lights::*;
pub use workspace::*;
use std::marker::PhantomData; use std::marker::PhantomData;
use std::rc::Rc; use std::rc::Rc;

View file

@ -1,7 +1,6 @@
mod avatar; mod avatar;
mod details; mod details;
mod icon; mod icon;
mod icon_button;
mod indicator; mod indicator;
mod input; mod input;
mod label; mod label;
@ -11,7 +10,6 @@ mod tool_divider;
pub use avatar::*; pub use avatar::*;
pub use details::*; pub use details::*;
pub use icon::*; pub use icon::*;
pub use icon_button::*;
pub use indicator::*; pub use indicator::*;
pub use input::*; pub use input::*;
pub use label::*; pub use label::*;

View file

@ -3,10 +3,8 @@
mod components; mod components;
mod element_ext; mod element_ext;
mod elements; mod elements;
mod modules;
pub mod prelude; pub mod prelude;
mod static_data; mod static_data;
mod templates;
mod theme; mod theme;
mod tokens; mod tokens;
@ -14,8 +12,6 @@ pub use crate::theme::*;
pub use components::*; pub use components::*;
pub use element_ext::*; pub use element_ext::*;
pub use elements::*; pub use elements::*;
pub use modules::*;
pub use prelude::*; pub use prelude::*;
pub use static_data::*; pub use static_data::*;
pub use templates::*;
pub use tokens::*; pub use tokens::*;

View file

@ -1,5 +0,0 @@
mod list;
mod palette;
pub use list::*;
pub use palette::*;

View file

@ -1,17 +0,0 @@
mod chat_panel;
mod collab_panel;
mod command_palette;
mod project_panel;
mod status_bar;
mod tab_bar;
mod title_bar;
mod workspace;
pub use chat_panel::*;
pub use collab_panel::*;
pub use command_palette::*;
pub use project_panel::*;
pub use status_bar::*;
pub use tab_bar::*;
pub use title_bar::*;
pub use workspace::*;