返回 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 chart;
63 mod diff;
64 mod progress;
65 mod receipt;
66 mod tree;
67 pub use chart::*;
68 pub use diff::*;
69 pub use progress::*;
70 pub use receipt::*;
71 pub use tree::*;
72
73 // Package Approval.
74 mod approval;
75 pub use approval::*;
76
77 // Package Motion.
78 mod motion;
79 pub use motion::*;
80 mod verification;
81 pub use verification::*;
82
83 // Distinctive session surfaces and settings share the same theme authority.
84 mod settings;
85 mod workspace;
86 pub use settings::*;
87 pub use workspace::*;
88
89 mod artifacts;
90 mod attention;
91 mod workbench;
92 pub use artifacts::*;
93 pub use attention::*;
94 pub use workbench::*;
95 mod habitat;
96 pub use habitat::*;
97 mod whale_pet;
98 pub use whale_pet::*;
99 mod subagents;
100 pub use subagents::*;
101
102 mod pending_input;
103 mod transcript;
104 pub use pending_input::*;
105 pub use transcript::*;
106
107 mod workbar;
108 pub use workbar::*;
109 mod shell;
110 pub use shell::*;
111 mod native_chrome;
112 pub use native_chrome::*;
113 mod posture;
114 pub use posture::*;
115
116 mod instrument;
117 pub use instrument::*;
118
119 mod native_composer;
120 pub use native_composer::*;
121
122 mod dock_tabs;
123 pub use dock_tabs::*;
124 mod braille_frame;
125 pub(crate) use braille_frame::paint_braille_cells;
126 pub use braille_frame::*;
127 mod dot_whale;
128 pub use dot_whale::*;
129
130 mod pet_mode;
131 pub use pet_mode::*;
132
133 mod checks;
134 mod count;
135 mod notice;
136 mod skeleton;
137 pub use checks::*;
138 pub use count::*;
139 pub use notice::*;
140 pub use skeleton::*;
141
141 lines RUST