返回 CodeWhale
mod.rs
1 //! The components. Each one paints with a [`crate::Theme`] through
2 //! [`crate::Paint`], names roles rather than colors, and pairs every state
3 //! with a mark and a word.
4 //!
5 //! Every module is re-exported whole (`pub use module::*`), so a component's
6 //! author makes items `pub` in the component's own file and never edits this
7 //! file or `lib.rs`. `spinner` is the exception: its constants and functions
8 //! live under [`spin`] and are exported by name below.
9
10 mod hints;
11 mod icons;
12 mod picker;
13 mod spinner;
14 mod status;
15 mod surface;
16 mod toast;
17
18 pub use hints::*;
19 pub use icons::*;
20 pub use picker::*;
21 pub use spinner::{MotionMode, Spinner, duration};
22 pub use status::*;
23 pub use surface::*;
24 pub use toast::*;
25
26 /// Spinner frames and cadence.
27 pub mod spin {
28 pub use super::spinner::{
29 EARN_DELAY, FRAME_INTERVAL, FRAMES, PENDING_FRAME, STILL_FRAME, frame, next_frame_in,
30 };
31 }
32
33 // Component families share the same Paint and Theme contracts.
34
35 // Package Input.
36 mod form;
37 mod text_input;
38 pub use form::*;
39 pub use text_input::*;
40
41 // Package Lists.
42 mod empty;
43 mod fuzzy;
44 mod list;
45 pub use empty::*;
46 pub use fuzzy::*;
47 pub use list::*;
48
49 // Package Chrome.
50 mod heading;
51 mod keymap;
52 mod segmented;
53 mod tabs;
54 mod toggle;
55 pub use heading::*;
56 pub use keymap::*;
57 pub use segmented::*;
58 pub use tabs::*;
59 pub use toggle::*;
60
61 // Package Display.
62 mod diff;
63 mod progress;
64 mod receipt;
65 mod tree;
66 pub use diff::*;
67 pub use progress::*;
68 pub use receipt::*;
69 pub use tree::*;
70
71 // Package Approval.
72 mod approval;
73 pub use approval::*;
74
75 // Package Motion.
76 mod motion;
77 pub use motion::*;
78 mod verification;
79 pub use verification::*;
80
81 // Distinctive session surfaces and settings share the same theme authority.
82 mod settings;
83 mod workspace;
84 pub use settings::*;
85 pub use workspace::*;
86
87 mod artifacts;
88 mod attention;
89 mod workbench;
90 pub use artifacts::*;
91 pub use attention::*;
92 pub use workbench::*;
93 mod habitat;
94 pub use habitat::*;
95
96 mod pending_input;
97 mod transcript;
98 pub use pending_input::*;
99 pub use transcript::*;
100
101 mod workbar;
102 pub use workbar::*;
103 mod shell;
104 pub use shell::*;
105 mod native_chrome;
106 pub use native_chrome::*;
107 mod posture;
108 pub use posture::*;
109
110 mod instrument;
111 pub use instrument::*;
112
113 mod native_composer;
114 pub use native_composer::*;
115
116 mod dock_tabs;
117 pub use dock_tabs::*;
118 mod braille_frame;
119 pub(crate) use braille_frame::paint_braille_cells;
120 pub use braille_frame::*;
121
121 lines RUST