euv_ui/component/overlay_extra/
struct.rs1use super::*;
2
3#[derive(Clone, Data, New, Props)]
5pub struct EuvDrawer {
6 #[get(type(copy))]
8 pub(crate) open: Signal<bool>,
9 pub(crate) title: String,
11 #[get(type(copy))]
13 pub(crate) body: NodeId,
14 #[get(type(copy))]
16 pub(crate) tokens: ThemeTokens,
17}
18
19#[derive(Clone, Data, New, Props)]
21pub struct EuvSheet {
22 #[get(type(copy))]
24 pub(crate) open: Signal<bool>,
25 pub(crate) title: String,
27 #[get(type(copy))]
29 pub(crate) body: NodeId,
30 #[get(type(copy))]
32 pub(crate) tokens: ThemeTokens,
33}
34
35#[derive(Clone, Data, New, Props)]
37pub struct EuvPopover {
38 #[get(type(copy))]
40 pub(crate) open: Signal<bool>,
41 #[get(type(copy))]
43 pub(crate) trigger: NodeId,
44 #[get(type(copy))]
46 pub(crate) content: NodeId,
47 #[get(type(copy))]
49 pub(crate) tokens: ThemeTokens,
50}
51
52#[derive(Clone, Data, New, Props)]
54pub struct EuvTooltip {
55 pub(crate) text: String,
57 #[get(type(copy))]
59 pub(crate) trigger: NodeId,
60 #[new(skip)]
62 #[get(type(copy))]
63 #[prop(custom)]
64 pub(crate) always_visible: bool,
65 #[get(type(copy))]
67 pub(crate) tokens: ThemeTokens,
68}
69
70#[derive(Clone, Data, New, Props)]
72pub struct EuvDropdown {
73 pub(crate) label: String,
75 pub(crate) items: Vec<String>,
77 #[new(skip)]
79 #[get(skip)]
80 #[prop(custom)]
81 pub(crate) open: Option<Signal<bool>>,
82 #[new(skip)]
84 #[get(skip)]
85 pub(crate) last_selected: Option<Signal<Option<usize>>>,
86 #[get(type(copy))]
88 pub(crate) tokens: ThemeTokens,
89}
90
91#[derive(Clone, Data, New, Props)]
93pub struct EuvNotification {
94 #[get(type(copy))]
96 pub(crate) visible: Signal<bool>,
97 pub(crate) title: String,
99 pub(crate) message: String,
101 #[new(skip)]
103 #[get(type(copy))]
104 #[prop(custom)]
105 pub(crate) tone: EuvTone,
106 #[get(type(copy))]
108 pub(crate) tokens: ThemeTokens,
109}
110
111#[derive(Clone, Data, New, Props)]
113pub struct EuvLoading {
114 #[get(type(copy))]
116 pub(crate) active: Signal<bool>,
117 pub(crate) label: String,
119 #[get(type(copy))]
121 pub(crate) tokens: ThemeTokens,
122}
123
124#[derive(Clone, Data, New, Props)]
126pub struct EuvWebViewSheet {
127 #[get(type(copy))]
129 pub(crate) open: Signal<bool>,
130 #[get(type(copy))]
132 pub(crate) url: Signal<String>,
133 pub(crate) title: String,
135 #[get(type(copy))]
137 pub(crate) tokens: ThemeTokens,
138}
139
140#[derive(Clone, Data, New, Props)]
142pub struct EuvExternalLink {
143 pub(crate) label: String,
145 pub(crate) url: String,
147 #[get(type(copy))]
149 pub(crate) tokens: ThemeTokens,
150 #[new(skip)]
152 #[get(skip)]
153 #[prop(custom)]
154 pub(crate) on_open: Option<EuvExternalOpenCallback>,
155}