use super::*;
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvNavbarItem {
#[get(type(copy))]
pub text: &'static str,
#[get(type(copy))]
pub link: &'static str,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvNavbarProps {
pub route_signal: Signal<String>,
pub brand_logo: &'static str,
pub brand_title: &'static str,
pub brand_href: &'static str,
pub items: &'static [EuvNavbarItem],
pub drawer_open: Option<Signal<bool>>,
}
#[derive(Clone, Copy, CustomDebug, Default)]
pub struct EuvNavbarLinkProps {
pub route_signal: Signal<String>,
pub item: EuvNavbarItem,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarProps {
#[get(type(copy))]
pub label: &'static str,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarMenuProps {
#[get(type(copy))]
pub open: Signal<bool>,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarTriggerProps {
#[get(type(copy))]
pub label: &'static str,
#[get(type(copy))]
pub open: Signal<bool>,
#[get(type(copy))]
pub id: &'static str,
#[get(type(copy))]
pub index: usize,
#[get(type(copy))]
pub disabled: bool,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarContentProps {
#[get(type(copy))]
pub open: Signal<bool>,
#[get(type(copy))]
pub trigger_id: &'static str,
#[get(type(copy))]
pub label: &'static str,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarItemProps {
#[get(type(copy))]
pub label: &'static str,
#[get(type(copy))]
pub value: &'static str,
#[get(type(copy))]
pub disabled: bool,
#[debug(skip)]
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarGroupProps {
#[get(type(copy))]
pub label: &'static str,
}
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvMenubarSeparatorProps {
#[get(type(copy))]
pub label: &'static str,
}
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvMenubarLabelProps {
#[get(type(copy))]
pub text: &'static str,
#[get(type(copy))]
pub inset: bool,
}
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvMenubarShortcutProps {
#[get(type(copy))]
pub text: &'static str,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarCheckboxItemProps {
#[get(type(copy))]
pub label: &'static str,
#[get(type(copy))]
pub checked: Signal<bool>,
#[get(type(copy))]
pub disabled: bool,
#[debug(skip)]
pub on_select: Option<Rc<dyn Fn(bool)>>,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarRadioItemProps {
#[get(type(copy))]
pub label: &'static str,
#[get(type(copy))]
pub value: &'static str,
#[get(type(copy))]
pub checked: Signal<bool>,
#[get(type(copy))]
pub disabled: bool,
#[debug(skip)]
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvMenubarRadioGroupProps {
pub label: &'static str,
pub value: Signal<String>,
}
#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
pub struct EuvMenubarSubProps {
#[get(type(copy))]
pub label: &'static str,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarSubTriggerProps {
#[get(type(copy))]
pub label: &'static str,
#[get(type(copy))]
pub id: &'static str,
#[get(type(copy))]
pub open: Signal<bool>,
#[get(type(copy))]
pub disabled: bool,
#[get(type(copy))]
pub inset: bool,
}
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvMenubarSubContentProps {
#[get(type(copy))]
pub open: Signal<bool>,
#[get(type(copy))]
pub trigger_id: &'static str,
#[get(type(copy))]
pub label: &'static str,
}