#[cfg(target_arch = "wasm32")]
extern crate tinycrossterm as crossterm;
pub mod commands;
mod host;
mod modal;
mod runtime;
mod scroll_view;
mod select_list;
mod status_bar;
pub mod style;
mod text_input;
mod tree_view;
pub use host::{
ComponentDebugEntry, ComponentDebugState, ComponentHost, ComponentInput, HostLifecycleError,
InteractiveComponent, Mounted, MountedComponentInfo, PropsFactory,
};
pub use modal::{centered_rect, Modal, ModalBehavior, ModalCloseCallback, ModalProps, ModalStyle};
pub use ratatui::text::Line;
pub use runtime::{ComponentHostRuntime, HostedRuntime, HostedRuntimeParts, RuntimeHostExt};
pub use scroll_view::{
LinesScroller, ScrollView, ScrollViewBehavior, ScrollViewCallback, ScrollViewProps,
ScrollViewRenderProps, ScrollViewStyle, VisibleRange,
};
pub use select_list::{
SelectList, SelectListBehavior, SelectListCallback, SelectListProps, SelectListRenderProps,
SelectListStyle,
};
pub use status_bar::{
StatusBar, StatusBarHint, StatusBarItem, StatusBarProps, StatusBarSection, StatusBarStyle,
};
pub use style::{
highlight_substring, BaseStyle, BorderStyle, Color, ComponentStyle, Modifier, Padding,
ScrollbarStyle, SelectionStyle, Style,
};
pub use text_input::{
TextInput, TextInputCallback, TextInputCursorCallback, TextInputProps, TextInputRenderProps,
TextInputStyle,
};
pub use tree_view::{
TreeBranchMode, TreeBranchStyle, TreeNode, TreeNodeRender, TreeSelectCallback,
TreeToggleCallback, TreeView, TreeViewBehavior, TreeViewProps, TreeViewRenderProps,
TreeViewStyle,
};
pub mod prelude {
pub use crate::commands;
pub use crate::{
centered_rect, BaseStyle, BorderStyle, ComponentStyle, LinesScroller, Modal, ModalBehavior,
ModalCloseCallback, ModalProps, ModalStyle, Padding, ScrollView, ScrollViewBehavior,
ScrollViewCallback, ScrollViewProps, ScrollViewRenderProps, ScrollViewStyle,
ScrollbarStyle, SelectList, SelectListBehavior, SelectListCallback, SelectListProps,
SelectListRenderProps, SelectListStyle, SelectionStyle, StatusBar, StatusBarHint,
StatusBarItem, StatusBarProps, StatusBarSection, StatusBarStyle, TextInput,
TextInputCallback, TextInputCursorCallback, TextInputProps, TextInputRenderProps,
TextInputStyle, TreeBranchMode, TreeBranchStyle, TreeNode, TreeNodeRender,
TreeSelectCallback, TreeToggleCallback, TreeView, TreeViewBehavior, TreeViewProps,
TreeViewRenderProps, TreeViewStyle, VisibleRange,
};
pub use crate::{
ComponentDebugEntry, ComponentDebugState, ComponentHost, ComponentInput,
HostLifecycleError, HostedRuntime, InteractiveComponent, Mounted, MountedComponentInfo,
PropsFactory, RuntimeHostExt,
};
pub use ratatui::style::{Color, Modifier, Style};
pub use ratatui::text::Line;
}