pub mod constructors;
pub mod methods;
pub mod traits;
pub mod widget;
pub use widget::DialogWidget;
use ratatui::layout::Rect;
use ratatui::style::{Color, Style};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DialogType {
Info,
Success,
Warning,
Error,
Confirm,
}
#[allow(dead_code)]
pub struct Dialog<'a> {
title: &'a str,
message: &'a str,
dialog_type: DialogType,
buttons: Vec<&'a str>,
selected_button: usize,
width_percent: f32,
height_percent: f32,
footer: Option<&'a str>,
footer_style: Style,
title_inside: bool,
overlay: bool,
overlay_style: Style,
border_color: Option<Color>,
style: Style,
button_selected_style: Style,
button_style: Style,
button_areas: Vec<Rect>,
theme_info_color: Option<Color>,
theme_success_color: Option<Color>,
theme_warning_color: Option<Color>,
theme_error_color: Option<Color>,
theme_confirm_color: Option<Color>,
}