1#[cfg(target_arch = "wasm32")]
54extern crate tinycrossterm as crossterm;
55
56pub mod commands;
57mod host;
58mod modal;
59mod runtime;
60mod scroll_view;
61mod select_list;
62mod status_bar;
63pub mod style;
64mod text_input;
65mod tree_view;
66
67pub use host::{
68 ComponentDebugEntry, ComponentDebugState, ComponentHost, ComponentInput, HostLifecycleError,
69 InteractiveComponent, Mounted, MountedComponentInfo, PropsFactory,
70};
71pub use modal::{centered_rect, Modal, ModalBehavior, ModalCloseCallback, ModalProps, ModalStyle};
72pub use ratatui::text::Line;
73pub use runtime::{ComponentHostRuntime, HostedRuntime, HostedRuntimeParts, RuntimeHostExt};
74pub use scroll_view::{
75 LinesScroller, ScrollView, ScrollViewBehavior, ScrollViewCallback, ScrollViewProps,
76 ScrollViewRenderProps, ScrollViewStyle, VisibleRange,
77};
78pub use select_list::{
79 SelectList, SelectListBehavior, SelectListCallback, SelectListProps, SelectListRenderProps,
80 SelectListStyle,
81};
82pub use status_bar::{
83 StatusBar, StatusBarHint, StatusBarItem, StatusBarProps, StatusBarSection, StatusBarStyle,
84};
85pub use style::{
86 highlight_substring, BaseStyle, BorderStyle, Color, ComponentStyle, Modifier, Padding,
87 ScrollbarStyle, SelectionStyle, Style,
88};
89pub use text_input::{
90 TextInput, TextInputCallback, TextInputCursorCallback, TextInputProps, TextInputRenderProps,
91 TextInputStyle,
92};
93pub use tree_view::{
94 TreeBranchMode, TreeBranchStyle, TreeNode, TreeNodeRender, TreeSelectCallback,
95 TreeToggleCallback, TreeView, TreeViewBehavior, TreeViewProps, TreeViewRenderProps,
96 TreeViewStyle,
97};
98
99pub mod prelude {
101 pub use crate::commands;
102
103 pub use crate::{
104 centered_rect, BaseStyle, BorderStyle, ComponentStyle, LinesScroller, Modal, ModalBehavior,
105 ModalCloseCallback, ModalProps, ModalStyle, Padding, ScrollView, ScrollViewBehavior,
106 ScrollViewCallback, ScrollViewProps, ScrollViewRenderProps, ScrollViewStyle,
107 ScrollbarStyle, SelectList, SelectListBehavior, SelectListCallback, SelectListProps,
108 SelectListRenderProps, SelectListStyle, SelectionStyle, StatusBar, StatusBarHint,
109 StatusBarItem, StatusBarProps, StatusBarSection, StatusBarStyle, TextInput,
110 TextInputCallback, TextInputCursorCallback, TextInputProps, TextInputRenderProps,
111 TextInputStyle, TreeBranchMode, TreeBranchStyle, TreeNode, TreeNodeRender,
112 TreeSelectCallback, TreeToggleCallback, TreeView, TreeViewBehavior, TreeViewProps,
113 TreeViewRenderProps, TreeViewStyle, VisibleRange,
114 };
115
116 pub use crate::{
117 ComponentDebugEntry, ComponentDebugState, ComponentHost, ComponentInput,
118 HostLifecycleError, HostedRuntime, InteractiveComponent, Mounted, MountedComponentInfo,
119 PropsFactory, RuntimeHostExt,
120 };
121
122 pub use ratatui::style::{Color, Modifier, Style};
123 pub use ratatui::text::Line;
124}