@zeo-app/design-system 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,38 +1,40 @@
1
- import { jsxs as i, jsx as t, Fragment as Y } from "react/jsx-runtime";
2
- import { forwardRef as C, useState as N, useRef as $, useCallback as j, useLayoutEffect as me, useEffect as z, useId as pe, createContext as P, useContext as ee } from "react";
3
- import { createPortal as he } from "react-dom";
4
- const xe = {
1
+ import { jsxs as i, jsx as t, Fragment as ne } from "react/jsx-runtime";
2
+ import { forwardRef as L, useState as N, useRef as z, useCallback as C, useLayoutEffect as xe, useEffect as j, useId as be, createContext as U, useMemo as ge, useContext as E } from "react";
3
+ import { createPortal as ve } from "react-dom";
4
+ import { a as F, T as K } from "./tokens-CaVTghf2.js";
5
+ import { c as pr, s as mr } from "./tokens-CaVTghf2.js";
6
+ const we = {
5
7
  info: {
6
- container: "bg-blue-50 border-blue-200 text-blue-800",
7
- icon: "text-blue-500",
8
+ container: "bg-blue-50 border-blue-200 text-blue-800 dark:bg-info-container dark:border-info/30 dark:text-info",
9
+ icon: "text-blue-500 dark:text-info",
8
10
  defaultIcon: "info"
9
11
  },
10
12
  success: {
11
- container: "bg-green-50 border-green-200 text-green-800",
12
- icon: "text-green-500",
13
+ container: "bg-green-50 border-green-200 text-green-800 dark:bg-success-container dark:border-success/30 dark:text-success",
14
+ icon: "text-green-500 dark:text-success",
13
15
  defaultIcon: "check_circle"
14
16
  },
15
17
  warning: {
16
- container: "bg-yellow-50 border-yellow-200 text-yellow-800",
17
- icon: "text-yellow-500",
18
+ container: "bg-yellow-50 border-yellow-200 text-yellow-800 dark:bg-warning-container dark:border-warning/30 dark:text-warning",
19
+ icon: "text-yellow-500 dark:text-warning",
18
20
  defaultIcon: "warning"
19
21
  },
20
22
  danger: {
21
- container: "bg-red-50 border-red-200 text-red-800",
22
- icon: "text-red-500",
23
+ container: "bg-red-50 border-red-200 text-red-800 dark:bg-danger-container dark:border-danger/30 dark:text-danger",
24
+ icon: "text-red-500 dark:text-danger",
23
25
  defaultIcon: "error"
24
26
  }
25
27
  };
26
- function rt({
28
+ function ut({
27
29
  variant: e = "info",
28
- title: n,
29
- children: r,
30
- onClose: a,
31
- icon: o,
30
+ title: r,
31
+ children: n,
32
+ onClose: o,
33
+ icon: a,
32
34
  className: s = "",
33
35
  ...l
34
36
  }) {
35
- const c = xe[e], d = o ?? c.defaultIcon;
37
+ const c = we[e], d = a ?? c.defaultIcon;
36
38
  return /* @__PURE__ */ i(
37
39
  "div",
38
40
  {
@@ -46,13 +48,13 @@ function rt({
46
48
  children: [
47
49
  /* @__PURE__ */ t("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${c.icon}`, children: d }),
48
50
  /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
49
- n && /* @__PURE__ */ t("p", { className: "font-semibold text-sm mb-0.5", children: n }),
50
- /* @__PURE__ */ t("div", { className: "text-sm leading-relaxed", children: r })
51
+ r && /* @__PURE__ */ t("p", { className: "font-semibold text-sm mb-0.5", children: r }),
52
+ /* @__PURE__ */ t("div", { className: "text-sm leading-relaxed", children: n })
51
53
  ] }),
52
- a && /* @__PURE__ */ t(
54
+ o && /* @__PURE__ */ t(
53
55
  "button",
54
56
  {
55
- onClick: a,
57
+ onClick: o,
56
58
  className: "shrink-0 opacity-70 hover:opacity-100 transition-opacity",
57
59
  "aria-label": "Fechar alerta",
58
60
  children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
@@ -62,44 +64,44 @@ function rt({
62
64
  }
63
65
  );
64
66
  }
65
- const be = {
67
+ const ye = {
66
68
  xs: "w-6 h-6 text-[10px]",
67
69
  sm: "w-8 h-8 text-xs",
68
70
  md: "w-10 h-10 text-sm",
69
71
  lg: "w-12 h-12 text-base",
70
72
  xl: "w-16 h-16 text-lg"
71
- }, ge = {
73
+ }, ke = {
72
74
  xs: "w-1.5 h-1.5",
73
75
  sm: "w-2 h-2",
74
76
  md: "w-2.5 h-2.5",
75
77
  lg: "w-3 h-3",
76
78
  xl: "w-3.5 h-3.5"
77
- }, ve = {
79
+ }, Ne = {
78
80
  online: "bg-green-500",
79
81
  offline: "bg-gray-400",
80
82
  busy: "bg-red-500",
81
83
  away: "bg-yellow-400"
82
84
  };
83
- function we(e) {
84
- return e.split(" ").slice(0, 2).map((n) => n[0]).join("").toUpperCase();
85
+ function Ce(e) {
86
+ return e.split(" ").slice(0, 2).map((r) => r[0]).join("").toUpperCase();
85
87
  }
86
- function ye(e) {
87
- const n = [
88
- "bg-orange-100 text-orange-700",
89
- "bg-blue-100 text-blue-700",
90
- "bg-green-100 text-green-700",
91
- "bg-purple-100 text-purple-700",
92
- "bg-pink-100 text-pink-700",
93
- "bg-teal-100 text-teal-700"
94
- ], r = e.charCodeAt(0) % n.length;
95
- return n[r];
88
+ function je(e) {
89
+ const r = [
90
+ "bg-orange-100 text-orange-700 dark:bg-zeo-orange/20 dark:text-primary",
91
+ "bg-blue-100 text-blue-700 dark:bg-info-container dark:text-info",
92
+ "bg-green-100 text-green-700 dark:bg-success-container dark:text-success",
93
+ "bg-purple-100 text-purple-700 dark:bg-purple-500/20 dark:text-purple-300",
94
+ "bg-pink-100 text-pink-700 dark:bg-pink-500/20 dark:text-pink-300",
95
+ "bg-teal-100 text-teal-700 dark:bg-teal-500/20 dark:text-teal-300"
96
+ ], n = e.charCodeAt(0) % r.length;
97
+ return r[n];
96
98
  }
97
- function Z({
99
+ function X({
98
100
  src: e,
99
- alt: n = "",
100
- name: r,
101
- size: a = "md",
102
- status: o,
101
+ alt: r = "",
102
+ name: n,
103
+ size: o = "md",
104
+ status: a,
103
105
  className: s = "",
104
106
  ...l
105
107
  }) {
@@ -109,55 +111,55 @@ function Z({
109
111
  {
110
112
  className: [
111
113
  "rounded-full overflow-hidden flex items-center justify-center font-semibold",
112
- be[a],
113
- !e && r ? ye(r) : "bg-surface-container"
114
+ ye[o],
115
+ !e && n ? je(n) : "bg-surface-container"
114
116
  ].filter(Boolean).join(" "),
115
117
  children: e ? /* @__PURE__ */ t(
116
118
  "img",
117
119
  {
118
120
  src: e,
119
- alt: n || r,
121
+ alt: r || n,
120
122
  className: "w-full h-full object-cover"
121
123
  }
122
- ) : r ? we(r) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
124
+ ) : n ? Ce(n) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
123
125
  }
124
126
  ),
125
- o && /* @__PURE__ */ t(
127
+ a && /* @__PURE__ */ t(
126
128
  "span",
127
129
  {
128
130
  className: [
129
- "absolute bottom-0 right-0 rounded-full border-2 border-white",
130
- ge[a],
131
- ve[o]
131
+ "absolute bottom-0 right-0 rounded-full border-2 border-white dark:border-card",
132
+ ke[o],
133
+ Ne[a]
132
134
  ].filter(Boolean).join(" ")
133
135
  }
134
136
  )
135
137
  ] });
136
138
  }
137
- const Ne = {
139
+ const Le = {
138
140
  default: "bg-surface-container text-on-surface-variant",
139
- primary: "bg-orange-100 text-orange-700",
140
- success: "bg-green-100 text-green-700",
141
- warning: "bg-yellow-100 text-yellow-700",
142
- danger: "bg-red-100 text-red-700",
143
- info: "bg-blue-100 text-blue-700"
144
- }, ke = {
141
+ primary: "bg-orange-100 text-orange-700 dark:bg-zeo-orange/20 dark:text-primary",
142
+ success: "bg-green-100 text-green-700 dark:bg-success-container dark:text-success",
143
+ warning: "bg-yellow-100 text-yellow-700 dark:bg-warning-container dark:text-warning",
144
+ danger: "bg-red-100 text-red-700 dark:bg-danger-container dark:text-danger",
145
+ info: "bg-blue-100 text-blue-700 dark:bg-info-container dark:text-info"
146
+ }, Be = {
145
147
  default: "bg-on-surface-variant",
146
148
  primary: "bg-orange-500",
147
149
  success: "bg-green-500",
148
150
  warning: "bg-yellow-500",
149
151
  danger: "bg-red-500",
150
152
  info: "bg-blue-500"
151
- }, je = {
153
+ }, Me = {
152
154
  sm: "px-2 py-0.5 text-xs gap-1",
153
155
  md: "px-2.5 py-1 text-xs gap-1.5"
154
156
  };
155
- function at({
157
+ function ht({
156
158
  variant: e = "default",
157
- size: n = "md",
158
- dot: r = !1,
159
- icon: a,
160
- children: o,
159
+ size: r = "md",
160
+ dot: n = !1,
161
+ icon: o,
162
+ children: a,
161
163
  className: s = "",
162
164
  ...l
163
165
  }) {
@@ -166,229 +168,229 @@ function at({
166
168
  {
167
169
  className: [
168
170
  "inline-flex items-center font-medium rounded-full",
169
- Ne[e],
170
- je[n],
171
+ Le[e],
172
+ Me[r],
171
173
  s
172
174
  ].filter(Boolean).join(" "),
173
175
  ...l,
174
176
  children: [
175
- r && /* @__PURE__ */ t("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${ke[e]}` }),
176
- a && !r && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[12px]", children: a }),
177
- o
177
+ n && /* @__PURE__ */ t("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${Be[e]}` }),
178
+ o && !n && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[12px]", children: o }),
179
+ a
178
180
  ]
179
181
  }
180
182
  );
181
183
  }
182
- function ot({ items: e, className: n = "", ...r }) {
183
- return /* @__PURE__ */ t("nav", { "aria-label": "Breadcrumb", className: n, ...r, children: /* @__PURE__ */ t("ol", { className: "inline-flex items-center gap-1.5 text-sm flex-wrap", children: e.map((a, o) => {
184
- const s = o === e.length - 1;
184
+ function ft({ items: e, className: r = "", ...n }) {
185
+ return /* @__PURE__ */ t("nav", { "aria-label": "Breadcrumb", className: r, ...n, children: /* @__PURE__ */ t("ol", { className: "inline-flex items-center gap-1.5 text-sm flex-wrap", children: e.map((o, a) => {
186
+ const s = a === e.length - 1;
185
187
  return /* @__PURE__ */ i("li", { className: "flex items-center gap-1.5", children: [
186
- o > 0 && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
188
+ a > 0 && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
187
189
  s ? /* @__PURE__ */ i(
188
190
  "span",
189
191
  {
190
192
  "aria-current": "page",
191
193
  className: "font-semibold text-on-surface flex items-center gap-1",
192
194
  children: [
193
- a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
194
- a.label
195
+ o.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: o.icon }),
196
+ o.label
195
197
  ]
196
198
  }
197
199
  ) : /* @__PURE__ */ i(
198
200
  "a",
199
201
  {
200
- href: a.href ?? "#",
202
+ href: o.href ?? "#",
201
203
  className: "text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",
202
204
  children: [
203
- a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
204
- a.label
205
+ o.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: o.icon }),
206
+ o.label
205
207
  ]
206
208
  }
207
209
  )
208
- ] }, o);
210
+ ] }, a);
209
211
  }) }) });
210
212
  }
211
- const Ce = {
213
+ const Ie = {
212
214
  primary: "bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",
213
- secondary: "bg-white text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
215
+ secondary: "bg-surface-container-lowest text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
214
216
  ghost: "bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
215
- danger: "bg-error text-on-error border-transparent hover:bg-red-700 active:bg-red-800 focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]",
216
- success: "bg-tertiary text-on-tertiary border-transparent hover:bg-green-800 active:bg-green-900 focus:shadow-[0_0_0_4px_rgba(0,108,73,0.15)]"
217
- }, Be = {
217
+ danger: "bg-[#ba1a1a] text-white border-transparent hover:bg-red-700 active:bg-red-800 focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]",
218
+ success: "bg-[#006c49] text-white border-transparent hover:bg-green-800 active:bg-green-900 focus:shadow-[0_0_0_4px_rgba(0,108,73,0.15)]"
219
+ }, Te = {
218
220
  sm: "px-3 py-1.5 text-sm gap-1.5 h-8",
219
221
  md: "px-4 py-2 text-sm gap-2 h-10",
220
222
  lg: "px-5 py-2.5 text-base gap-2 h-11"
221
- }, D = {
223
+ }, O = {
222
224
  sm: "text-[16px]",
223
225
  md: "text-[18px]",
224
226
  lg: "text-[20px]"
225
- }, Le = C(
227
+ }, ze = L(
226
228
  ({
227
229
  variant: e = "primary",
228
- size: n = "md",
229
- loading: r = !1,
230
- iconLeft: a,
231
- iconRight: o,
230
+ size: r = "md",
231
+ loading: n = !1,
232
+ iconLeft: o,
233
+ iconRight: a,
232
234
  fullWidth: s = !1,
233
235
  disabled: l,
234
236
  children: c,
235
237
  className: d = "",
236
- ...f
237
- }, m) => /* @__PURE__ */ i(
238
+ ...h
239
+ }, f) => /* @__PURE__ */ i(
238
240
  "button",
239
241
  {
240
- ref: m,
241
- disabled: l || r,
242
+ ref: f,
243
+ disabled: l || n,
242
244
  className: [
243
245
  "inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none",
244
246
  "focus:outline-none",
245
247
  "disabled:opacity-50 disabled:cursor-not-allowed",
246
- Ce[e],
247
- Be[n],
248
+ Ie[e],
249
+ Te[r],
248
250
  s ? "w-full" : "",
249
251
  d
250
252
  ].filter(Boolean).join(" "),
251
- ...f,
253
+ ...h,
252
254
  children: [
253
- r ? /* @__PURE__ */ t(
255
+ n ? /* @__PURE__ */ t(
254
256
  "span",
255
257
  {
256
- className: `material-symbols-outlined animate-spin ${D[n]}`,
258
+ className: `material-symbols-outlined animate-spin ${O[r]}`,
257
259
  children: "progress_activity"
258
260
  }
259
- ) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: a }),
261
+ ) : o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${O[r]}`, children: o }),
260
262
  c,
261
- !r && o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: o })
263
+ !n && a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${O[r]}`, children: a })
262
264
  ]
263
265
  }
264
266
  )
265
267
  );
266
- Le.displayName = "Button";
267
- function st({ children: e, attached: n = !1, className: r = "", ...a }) {
268
+ ze.displayName = "Button";
269
+ function pt({ children: e, attached: r = !1, className: n = "", ...o }) {
268
270
  return /* @__PURE__ */ t(
269
271
  "div",
270
272
  {
271
273
  role: "group",
272
274
  className: [
273
275
  "inline-flex",
274
- n ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
275
- r
276
+ r ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
277
+ n
276
278
  ].filter(Boolean).join(" "),
277
- ...a,
279
+ ...o,
278
280
  children: e
279
281
  }
280
282
  );
281
283
  }
282
- const ze = {
283
- elevated: "bg-white shadow-theme-lg border border-surface-container-high",
284
- outlined: "bg-white border border-outline-variant",
284
+ const _e = {
285
+ elevated: "bg-surface-container-lowest shadow-theme-lg border border-surface-container-high",
286
+ outlined: "bg-surface-container-lowest border border-outline-variant",
285
287
  filled: "bg-surface-container-low border border-transparent"
286
- }, _e = {
288
+ }, $e = {
287
289
  none: "",
288
290
  sm: "p-4",
289
291
  md: "p-5",
290
292
  lg: "p-6"
291
293
  };
292
- function it({
294
+ function mt({
293
295
  variant: e = "elevated",
294
- padding: n = "md",
295
- children: r,
296
- className: a = "",
297
- ...o
296
+ padding: r = "md",
297
+ children: n,
298
+ className: o = "",
299
+ ...a
298
300
  }) {
299
301
  return /* @__PURE__ */ t(
300
302
  "div",
301
303
  {
302
304
  className: [
303
305
  "rounded-xl overflow-hidden",
304
- ze[e],
305
- a
306
+ _e[e],
307
+ o
306
308
  ].filter(Boolean).join(" "),
307
- ...o,
308
- children: /* @__PURE__ */ t("div", { className: _e[n], children: r })
309
+ ...a,
310
+ children: /* @__PURE__ */ t("div", { className: $e[r], children: n })
309
311
  }
310
312
  );
311
313
  }
312
- function lt({
314
+ function xt({
313
315
  title: e,
314
- subtitle: n,
315
- action: r,
316
- icon: a,
317
- className: o = "",
316
+ subtitle: r,
317
+ action: n,
318
+ icon: o,
319
+ className: a = "",
318
320
  ...s
319
321
  }) {
320
322
  return /* @__PURE__ */ i(
321
323
  "div",
322
324
  {
323
- className: ["flex items-start justify-between gap-4 pb-4", o].filter(Boolean).join(" "),
325
+ className: ["flex items-start justify-between gap-4 pb-4", a].filter(Boolean).join(" "),
324
326
  ...s,
325
327
  children: [
326
328
  /* @__PURE__ */ i("div", { className: "flex items-center gap-3 min-w-0", children: [
327
- a && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: a }),
329
+ o && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: o }),
328
330
  /* @__PURE__ */ i("div", { className: "min-w-0", children: [
329
331
  /* @__PURE__ */ t("h3", { className: "text-base font-semibold text-on-surface truncate", children: e }),
330
- n && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: n })
332
+ r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
331
333
  ] })
332
334
  ] }),
333
- r && /* @__PURE__ */ t("div", { className: "shrink-0", children: r })
335
+ n && /* @__PURE__ */ t("div", { className: "shrink-0", children: n })
334
336
  ]
335
337
  }
336
338
  );
337
339
  }
338
- function ct({ children: e, className: n = "", ...r }) {
340
+ function bt({ children: e, className: r = "", ...n }) {
339
341
  return /* @__PURE__ */ t(
340
342
  "div",
341
343
  {
342
- className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", n].filter(Boolean).join(" "),
343
- ...r,
344
+ className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", r].filter(Boolean).join(" "),
345
+ ...n,
344
346
  children: e
345
347
  }
346
348
  );
347
349
  }
348
- const A = 8, Q = 4;
349
- function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o }) {
350
- const [s, l] = N(!1), [c, d] = N(null), f = $(null), m = $(null), p = j(() => {
351
- var M;
352
- const u = f.current;
350
+ const $ = 8, ee = 4;
351
+ function gt({ trigger: e, items: r, align: n = "right", className: o = "", ...a }) {
352
+ const [s, l] = N(!1), [c, d] = N(null), h = z(null), f = z(null), p = C(() => {
353
+ var T;
354
+ const u = h.current;
353
355
  if (!u) return;
354
- const h = u.getBoundingClientRect(), x = (M = m.current) == null ? void 0 : M.getBoundingClientRect(), v = (x == null ? void 0 : x.width) ?? 180, b = (x == null ? void 0 : x.height) ?? 0, w = window.innerHeight - h.bottom, y = h.top, B = w < b + A && y > w ? h.top - b - Q : h.bottom + Q, T = r === "right" ? h.right - v : h.left, S = window.innerWidth - v - A, F = Math.min(Math.max(T, A), Math.max(S, A));
355
- d({ top: B, left: F });
356
- }, [r]);
357
- return me(() => {
356
+ const m = u.getBoundingClientRect(), x = (T = f.current) == null ? void 0 : T.getBoundingClientRect(), v = (x == null ? void 0 : x.width) ?? 180, b = (x == null ? void 0 : x.height) ?? 0, w = window.innerHeight - m.bottom, y = m.top, B = w < b + $ && y > w ? m.top - b - ee : m.bottom + ee, W = n === "right" ? m.right - v : m.left, S = window.innerWidth - v - $, R = Math.min(Math.max(W, $), Math.max(S, $));
357
+ d({ top: B, left: R });
358
+ }, [n]);
359
+ return xe(() => {
358
360
  s && p();
359
- }, [s, p]), z(() => {
361
+ }, [s, p]), j(() => {
360
362
  if (!s) return;
361
363
  const u = () => p();
362
364
  return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
363
365
  window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
364
366
  };
365
- }, [s, p]), z(() => {
366
- const u = (h) => {
367
+ }, [s, p]), j(() => {
368
+ const u = (m) => {
367
369
  var w, y;
368
- const x = h.target, v = (w = f.current) == null ? void 0 : w.contains(x), b = (y = m.current) == null ? void 0 : y.contains(x);
370
+ const x = m.target, v = (w = h.current) == null ? void 0 : w.contains(x), b = (y = f.current) == null ? void 0 : y.contains(x);
369
371
  !v && !b && l(!1);
370
372
  };
371
373
  return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
372
- }, []), z(() => {
373
- const u = (h) => {
374
- h.key === "Escape" && l(!1);
374
+ }, []), j(() => {
375
+ const u = (m) => {
376
+ m.key === "Escape" && l(!1);
375
377
  };
376
378
  return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
377
- }, []), /* @__PURE__ */ i("div", { ref: f, className: ["relative inline-block", a].filter(Boolean).join(" "), ...o, children: [
379
+ }, []), /* @__PURE__ */ i("div", { ref: h, className: ["relative inline-block", o].filter(Boolean).join(" "), ...a, children: [
378
380
  /* @__PURE__ */ t("div", { onClick: () => l((u) => !u), children: e }),
379
- s && he(
381
+ s && ve(
380
382
  /* @__PURE__ */ t(
381
383
  "div",
382
384
  {
383
- ref: m,
384
- className: "fixed z-[100] min-w-[180px] bg-white border border-surface-container-high rounded-xl shadow-theme-lg py-1",
385
+ ref: f,
386
+ className: "fixed z-[100] min-w-[180px] bg-surface-container-lowest border border-surface-container-high rounded-xl shadow-theme-lg py-1",
385
387
  style: {
386
388
  top: (c == null ? void 0 : c.top) ?? 0,
387
389
  left: (c == null ? void 0 : c.left) ?? 0,
388
390
  visibility: c ? "visible" : "hidden"
389
391
  },
390
392
  role: "menu",
391
- children: n.map((u, h) => /* @__PURE__ */ i("div", { children: [
393
+ children: r.map((u, m) => /* @__PURE__ */ i("div", { children: [
392
394
  /* @__PURE__ */ i(
393
395
  "button",
394
396
  {
@@ -400,7 +402,7 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
400
402
  },
401
403
  className: [
402
404
  "w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors text-left",
403
- u.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
405
+ u.danger ? "text-error hover:bg-red-50 dark:hover:bg-error-container" : "text-on-surface hover:bg-surface-container-low",
404
406
  u.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
405
407
  ].filter(Boolean).join(" "),
406
408
  children: [
@@ -410,110 +412,110 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
410
412
  }
411
413
  ),
412
414
  u.dividerAfter && /* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-high" })
413
- ] }, h))
415
+ ] }, m))
414
416
  }
415
417
  ),
416
418
  document.body
417
419
  )
418
420
  ] });
419
421
  }
420
- const Me = C(
421
- ({ label: e, hint: n, error: r, options: a, placeholder: o, disabled: s, className: l = "", id: c, ...d }, f) => {
422
- const m = c ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
422
+ const Ae = L(
423
+ ({ label: e, hint: r, error: n, options: o, placeholder: a, disabled: s, className: l = "", id: c, ...d }, h) => {
424
+ const f = c ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
423
425
  return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1.5", children: [
424
- e && /* @__PURE__ */ t("label", { htmlFor: m, className: "text-sm font-medium text-on-surface", children: e }),
426
+ e && /* @__PURE__ */ t("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
425
427
  /* @__PURE__ */ i("div", { className: "relative", children: [
426
428
  /* @__PURE__ */ i(
427
429
  "select",
428
430
  {
429
- ref: f,
430
- id: m,
431
+ ref: h,
432
+ id: f,
431
433
  disabled: s,
432
434
  className: [
433
- "w-full appearance-none bg-white border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
435
+ "w-full appearance-none bg-page border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
434
436
  "text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
435
- r ? "border-error" : "border-outline-variant",
437
+ n ? "border-error" : "border-outline-variant",
436
438
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
437
439
  l
438
440
  ].filter(Boolean).join(" "),
439
441
  ...d,
440
442
  children: [
441
- o && /* @__PURE__ */ t("option", { value: "", disabled: !0, children: o }),
442
- a.map((p) => /* @__PURE__ */ t("option", { value: p.value, disabled: p.disabled, children: p.label }, p.value))
443
+ a && /* @__PURE__ */ t("option", { value: "", disabled: !0, children: a }),
444
+ o.map((p) => /* @__PURE__ */ t("option", { value: p.value, disabled: p.disabled, children: p.label }, p.value))
443
445
  ]
444
446
  }
445
447
  ),
446
448
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined absolute right-3 top-1/2 -translate-y-1/2 text-[18px] text-on-surface-variant pointer-events-none", children: "expand_more" })
447
449
  ] }),
448
- r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
450
+ n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
449
451
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
450
- r
452
+ n
451
453
  ] }),
452
- !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
454
+ !n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
453
455
  ] });
454
456
  }
455
457
  );
456
- Me.displayName = "Select";
457
- const $e = C(
458
- ({ label: e, hint: n, error: r, disabled: a, className: o = "", id: s, rows: l = 4, ...c }, d) => {
459
- const f = s ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
458
+ Ae.displayName = "Select";
459
+ const Ee = L(
460
+ ({ label: e, hint: r, error: n, disabled: o, className: a = "", id: s, rows: l = 4, ...c }, d) => {
461
+ const h = s ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
460
462
  return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1.5", children: [
461
- e && /* @__PURE__ */ t("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
463
+ e && /* @__PURE__ */ t("label", { htmlFor: h, className: "text-sm font-medium text-on-surface", children: e }),
462
464
  /* @__PURE__ */ t(
463
465
  "textarea",
464
466
  {
465
467
  ref: d,
466
- id: f,
468
+ id: h,
467
469
  rows: l,
468
- disabled: a,
470
+ disabled: o,
469
471
  className: [
470
- "w-full bg-white border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
472
+ "w-full bg-page border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
471
473
  "text-on-surface placeholder:text-on-surface-variant",
472
474
  "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
473
- r ? "border-error" : "border-outline-variant",
475
+ n ? "border-error" : "border-outline-variant",
474
476
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
475
- o
477
+ a
476
478
  ].filter(Boolean).join(" "),
477
479
  ...c
478
480
  }
479
481
  ),
480
- r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
482
+ n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
481
483
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
482
- r
484
+ n
483
485
  ] }),
484
- !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
486
+ !n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
485
487
  ] });
486
488
  }
487
489
  );
488
- $e.displayName = "Textarea";
489
- const Ie = {
490
+ Ee.displayName = "Textarea";
491
+ const We = {
490
492
  square: "rounded-[2px]",
491
493
  rounded: "rounded-[4px]",
492
494
  circle: "rounded-full"
493
- }, Ae = C(
494
- ({ label: e, description: n, error: r, disabled: a, className: o = "", id: s, shape: l = "square", color: c = "#FF6B00", ...d }, f) => {
495
- const m = s ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
495
+ }, Se = L(
496
+ ({ label: e, description: r, error: n, disabled: o, className: a = "", id: s, shape: l = "square", color: c = "#FF6B00", ...d }, h) => {
497
+ const f = s ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
496
498
  return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
497
499
  /* @__PURE__ */ i(
498
500
  "label",
499
501
  {
500
- htmlFor: m,
502
+ htmlFor: f,
501
503
  className: [
502
504
  "flex items-start gap-3 cursor-pointer",
503
- a ? "opacity-50 cursor-not-allowed" : ""
505
+ o ? "opacity-50 cursor-not-allowed" : ""
504
506
  ].filter(Boolean).join(" "),
505
507
  children: [
506
508
  /* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0 w-4 h-4", children: [
507
509
  /* @__PURE__ */ t(
508
510
  "input",
509
511
  {
510
- ref: f,
512
+ ref: h,
511
513
  type: "checkbox",
512
- id: m,
513
- disabled: a,
514
+ id: f,
515
+ disabled: o,
514
516
  className: [
515
517
  "absolute inset-0 w-full h-full opacity-0 cursor-pointer peer disabled:cursor-not-allowed",
516
- o
518
+ a
517
519
  ].filter(Boolean).join(" "),
518
520
  ...d
519
521
  }
@@ -523,9 +525,9 @@ const Ie = {
523
525
  {
524
526
  className: [
525
527
  "w-4 h-4 border-2 border-outline-variant transition-colors pointer-events-none",
526
- "bg-white peer-checked:bg-[var(--cb-color)] peer-checked:border-[var(--cb-color)]",
528
+ "bg-page peer-checked:bg-[var(--cb-color)] peer-checked:border-[var(--cb-color)]",
527
529
  "peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--cb-color)]/30 peer-focus-visible:ring-offset-0",
528
- Ie[l]
530
+ We[l]
529
531
  ].filter(Boolean).join(" "),
530
532
  style: { "--cb-color": c }
531
533
  }
@@ -554,29 +556,29 @@ const Ie = {
554
556
  ] }),
555
557
  e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
556
558
  /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
557
- n && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: n })
559
+ r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
558
560
  ] })
559
561
  ]
560
562
  }
561
563
  ),
562
- r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
564
+ n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
563
565
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
564
- r
566
+ n
565
567
  ] })
566
568
  ] });
567
569
  }
568
570
  );
569
- Ae.displayName = "Checkbox";
570
- const Ee = C(
571
- ({ label: e, description: n, disabled: r, className: a = "", id: o, ...s }, l) => {
572
- const c = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
571
+ Se.displayName = "Checkbox";
572
+ const Re = L(
573
+ ({ label: e, description: r, disabled: n, className: o = "", id: a, ...s }, l) => {
574
+ const c = a ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
573
575
  return /* @__PURE__ */ i(
574
576
  "label",
575
577
  {
576
578
  htmlFor: c,
577
579
  className: [
578
580
  "flex items-start gap-3 cursor-pointer",
579
- r ? "opacity-50 cursor-not-allowed" : ""
581
+ n ? "opacity-50 cursor-not-allowed" : ""
580
582
  ].filter(Boolean).join(" "),
581
583
  children: [
582
584
  /* @__PURE__ */ t(
@@ -585,36 +587,36 @@ const Ee = C(
585
587
  ref: l,
586
588
  type: "radio",
587
589
  id: c,
588
- disabled: r,
590
+ disabled: n,
589
591
  className: [
590
592
  "mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0",
591
593
  "focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0",
592
594
  "disabled:cursor-not-allowed",
593
- a
595
+ o
594
596
  ].filter(Boolean).join(" "),
595
597
  ...s
596
598
  }
597
599
  ),
598
600
  e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
599
601
  /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
600
- n && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: n })
602
+ r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
601
603
  ] })
602
604
  ]
603
605
  }
604
606
  );
605
607
  }
606
608
  );
607
- Ee.displayName = "Radio";
608
- const Te = C(
609
- ({ label: e, description: n, disabled: r, className: a = "", id: o, ...s }, l) => {
610
- const c = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
609
+ Re.displayName = "Radio";
610
+ const He = L(
611
+ ({ label: e, description: r, disabled: n, className: o = "", id: a, ...s }, l) => {
612
+ const c = a ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
611
613
  return /* @__PURE__ */ i(
612
614
  "label",
613
615
  {
614
616
  htmlFor: c,
615
617
  className: [
616
618
  "flex items-start gap-3 cursor-pointer select-none",
617
- r ? "opacity-50 cursor-not-allowed" : ""
619
+ n ? "opacity-50 cursor-not-allowed" : ""
618
620
  ].filter(Boolean).join(" "),
619
621
  children: [
620
622
  /* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0", children: [
@@ -624,7 +626,7 @@ const Te = C(
624
626
  ref: l,
625
627
  type: "checkbox",
626
628
  id: c,
627
- disabled: r,
629
+ disabled: n,
628
630
  className: "sr-only peer",
629
631
  ...s
630
632
  }
@@ -634,31 +636,31 @@ const Te = C(
634
636
  ] }),
635
637
  e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
636
638
  /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
637
- n && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: n })
639
+ r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
638
640
  ] })
639
641
  ]
640
642
  }
641
643
  );
642
644
  }
643
645
  );
644
- Te.displayName = "Switch";
645
- function k({ name: e, size: n = 20, fill: r = !1, className: a = "", style: o, ...s }) {
646
+ He.displayName = "Switch";
647
+ function k({ name: e, size: r = 20, fill: n = !1, className: o = "", style: a, ...s }) {
646
648
  return /* @__PURE__ */ t(
647
649
  "span",
648
650
  {
649
651
  ...s,
650
- className: `material-symbols-outlined leading-none select-none ${a}`.trim(),
652
+ className: `material-symbols-outlined leading-none select-none ${o}`.trim(),
651
653
  style: {
652
- fontSize: n,
653
- fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
654
- ...o
654
+ fontSize: r,
655
+ fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
656
+ ...a
655
657
  },
656
658
  "aria-hidden": "true",
657
659
  children: e
658
660
  }
659
661
  );
660
662
  }
661
- const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
663
+ const Ve = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
662
664
  "svg",
663
665
  {
664
666
  width: e,
@@ -669,7 +671,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
669
671
  strokeLinecap: "round",
670
672
  strokeLinejoin: "round",
671
673
  strokeWidth: 4,
672
- className: n,
674
+ className: r,
673
675
  "aria-hidden": "true",
674
676
  children: [
675
677
  /* @__PURE__ */ t("path", { d: "M15 65 L40 50 H85 L60 65 Z" }),
@@ -681,7 +683,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
681
683
  /* @__PURE__ */ t("path", { d: "M72 45 V20 H79 V41" })
682
684
  ]
683
685
  }
684
- ), Fe = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
686
+ ), De = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
685
687
  "svg",
686
688
  {
687
689
  width: e,
@@ -692,7 +694,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
692
694
  strokeLinecap: "round",
693
695
  strokeLinejoin: "round",
694
696
  strokeWidth: 4,
695
- className: n,
697
+ className: r,
696
698
  "aria-hidden": "true",
697
699
  children: [
698
700
  /* @__PURE__ */ t("ellipse", { cx: "50", cy: "20", rx: "12", ry: "6" }),
@@ -702,7 +704,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
702
704
  /* @__PURE__ */ t("path", { d: "M50 75 V90" })
703
705
  ]
704
706
  }
705
- ), Re = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
707
+ ), Oe = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
706
708
  "svg",
707
709
  {
708
710
  width: e,
@@ -711,7 +713,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
711
713
  fill: "none",
712
714
  strokeLinecap: "round",
713
715
  strokeLinejoin: "round",
714
- className: n,
716
+ className: r,
715
717
  "aria-hidden": "true",
716
718
  children: [
717
719
  /* @__PURE__ */ t("path", { d: "M48 90 L45 25 L55 25 L52 90 Z", fill: "currentColor", stroke: "none" }),
@@ -722,65 +724,85 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
722
724
  /* @__PURE__ */ t("path", { d: "M70 35 A28 28 0 0 1 70 5", stroke: "currentColor", strokeWidth: 3 })
723
725
  ]
724
726
  }
725
- ), Ve = {
727
+ ), vt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M6 3h4v13h9v4H6z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), wt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M4 4h4v12h8V4h4v16H4z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), yt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M4 3h16v4h-6v10h6v4H4v-4h6V7H4z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), kt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "8.5", fill: "none", stroke: "currentColor", strokeWidth: "1.75" }) }), Nt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M18.5 3.5L8 9.2v5.6l10.5 5.7", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinejoin: "round", strokeLinecap: "round" }) }), Ct = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M2 5h9v14H8.4V7.6H2zM13 5h9v2.6h-6.4V19H13z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }), jt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M7 4v15h12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Lt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M2.5 6h8v13M21.5 6h-8v13", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Bt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
728
+ /* @__PURE__ */ t("path", { d: "M7 4v15h12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
729
+ /* @__PURE__ */ t("circle", { cx: "14.5", cy: "15.5", r: "1.6", fill: "currentColor" })
730
+ ] }), Mt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
731
+ /* @__PURE__ */ t("path", { d: "M2.5 6h8.5v13M21.5 6H13v13", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
732
+ /* @__PURE__ */ t("path", { d: "M11 9.5l1 1.5 1-1.5", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" })
733
+ ] }), It = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", d: "M12 3a9 9 0 1 1 0 18a9 9 0 1 1 0-18zm0 3.6a5.4 5.4 0 1 0 0 10.8a5.4 5.4 0 1 0 0-10.8z", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.5" }) }), Tt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", d: "M2.5 5.5h19v13h-19zm3.5 3.5v6h12v-6z", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }), zt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
734
+ /* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
735
+ /* @__PURE__ */ t("rect", { x: "8.5", y: "8.5", width: "7", height: "7", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" })
736
+ ] }), _t = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
737
+ /* @__PURE__ */ t("path", { d: "M4 3h9a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
738
+ /* @__PURE__ */ t("rect", { x: "4", y: "8.5", width: "7", height: "7", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" }),
739
+ /* @__PURE__ */ t("path", { d: "M4 2v20", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round" })
740
+ ] }), $t = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
741
+ /* @__PURE__ */ t("path", { d: "M4 20h9a6 6 0 0 0 6-6V4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
742
+ /* @__PURE__ */ t("rect", { x: "4", y: "4", width: "8", height: "8", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" }),
743
+ /* @__PURE__ */ t("path", { d: "M4 3v18M3 4h18", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round" })
744
+ ] }), At = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
745
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
746
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "4", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" })
747
+ ] }), Fe = {
726
748
  sm: "px-3 py-1.5 text-sm h-8",
727
749
  md: "px-3 py-2 text-sm h-10",
728
750
  lg: "px-4 py-2.5 text-base h-11"
729
- }, J = {
751
+ }, te = {
730
752
  sm: "text-[16px]",
731
753
  md: "text-[18px]",
732
754
  lg: "text-[20px]"
733
755
  };
734
- function Ke(e, n, r) {
756
+ function Ke(e, r, n) {
735
757
  if (e === "" || e === void 0 || e === null) return "";
736
- const a = Number(e).toFixed(n);
737
- return r ? `${a} ${r}` : a;
758
+ const o = Number(e).toFixed(r);
759
+ return n ? `${o} ${n}` : o;
738
760
  }
739
- const De = C(
761
+ const Ue = L(
740
762
  ({
741
763
  label: e,
742
- hint: n,
743
- error: r,
744
- inputSize: a = "md",
745
- iconLeft: o,
764
+ hint: r,
765
+ error: n,
766
+ inputSize: o = "md",
767
+ iconLeft: a,
746
768
  iconRight: s,
747
769
  onIconRightClick: l,
748
770
  disabled: c,
749
771
  className: d = "",
750
- id: f,
751
- unit: m,
772
+ id: h,
773
+ unit: f,
752
774
  decimals: p,
753
775
  onValueChange: u,
754
- value: h,
776
+ value: m,
755
777
  defaultValue: x,
756
778
  type: v,
757
779
  step: b,
758
780
  inputMode: w,
759
781
  onChange: y,
760
- onFocus: _,
782
+ onFocus: I,
761
783
  onBlur: B,
762
- ...T
784
+ ...W
763
785
  }, S) => {
764
- const F = pe(), M = f ?? (e ? e.toLowerCase().replace(/\s+/g, "-") : F), g = m !== void 0, R = p ?? 0, V = g && h !== void 0, [ie, le] = N(
786
+ const R = be(), T = h ?? (e ? e.toLowerCase().replace(/\s+/g, "-") : R), g = f !== void 0, H = p ?? 0, V = g && m !== void 0, [de, ue] = N(
765
787
  typeof x == "number" ? x : ""
766
- ), [U, W] = N(!1), [K, G] = N(""), I = V ? h : ie, ce = g ? U ? K : Ke(I, R, m ?? "") : h, de = j(
767
- (L) => {
768
- g && (W(!0), G(I === "" ? "" : String(I))), _ == null || _(L);
788
+ ), [P, Z] = N(!1), [D, Q] = N(""), _ = V ? m : de, he = g ? P ? D : Ke(_, H, f ?? "") : m, fe = C(
789
+ (M) => {
790
+ g && (Z(!0), Q(_ === "" ? "" : String(_))), I == null || I(M);
769
791
  },
770
- [g, I, _]
771
- ), ue = j(
772
- (L) => {
792
+ [g, _, I]
793
+ ), pe = C(
794
+ (M) => {
773
795
  if (g) {
774
- W(!1);
775
- const q = parseFloat(K.replace(",", ".")), O = isNaN(q) ? "" : q;
776
- V || le(O), u == null || u(O);
796
+ Z(!1);
797
+ const Y = parseFloat(D.replace(",", ".")), J = isNaN(Y) ? "" : Y;
798
+ V || ue(J), u == null || u(J);
777
799
  }
778
- B == null || B(L);
800
+ B == null || B(M);
779
801
  },
780
- [g, K, V, u, B]
781
- ), fe = j(
782
- (L) => {
783
- g && G(L.target.value), y == null || y(L);
802
+ [g, D, V, u, B]
803
+ ), me = C(
804
+ (M) => {
805
+ g && Q(M.target.value), y == null || y(M);
784
806
  },
785
807
  [g, y]
786
808
  );
@@ -788,46 +810,46 @@ const De = C(
788
810
  e && /* @__PURE__ */ t(
789
811
  "label",
790
812
  {
791
- htmlFor: M,
813
+ htmlFor: T,
792
814
  className: "text-sm font-medium text-on-surface",
793
815
  children: e
794
816
  }
795
817
  ),
796
818
  /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
797
- o && /* @__PURE__ */ t(
819
+ a && /* @__PURE__ */ t(
798
820
  "span",
799
821
  {
800
- className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${J[a]}`,
801
- children: o
822
+ className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${te[o]}`,
823
+ children: a
802
824
  }
803
825
  ),
804
826
  /* @__PURE__ */ t(
805
827
  "input",
806
828
  {
807
829
  ref: S,
808
- id: M,
830
+ id: T,
809
831
  disabled: c,
810
- type: g ? U ? "number" : "text" : v,
832
+ type: g ? P ? "number" : "text" : v,
811
833
  inputMode: g ? "decimal" : w,
812
- value: g ? ce : h,
834
+ value: g ? he : m,
813
835
  defaultValue: g ? void 0 : x,
814
- step: g ? b ?? (R > 0 ? Math.pow(10, -R) : 1) : b,
815
- onFocus: de,
816
- onBlur: ue,
817
- onChange: fe,
836
+ step: g ? b ?? (H > 0 ? Math.pow(10, -H) : 1) : b,
837
+ onFocus: fe,
838
+ onBlur: pe,
839
+ onChange: me,
818
840
  className: [
819
- "w-full bg-white border rounded transition-all duration-200",
820
- "text-on-surface placeholder:text-on-surface-variant",
841
+ "w-full bg-page border rounded transition-all duration-200",
842
+ "text-on-surface placeholder:text-on-surface-variant dark:placeholder:text-content-disabled",
821
843
  "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
822
- r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
844
+ n ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
823
845
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
824
846
  g ? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" : "",
825
- Ve[a],
826
- o ? "pl-9" : "",
847
+ Fe[o],
848
+ a ? "pl-9" : "",
827
849
  s ? "pr-9" : "",
828
850
  d
829
851
  ].filter(Boolean).join(" "),
830
- ...T
852
+ ...W
831
853
  }
832
854
  ),
833
855
  s && /* @__PURE__ */ t(
@@ -835,7 +857,7 @@ const De = C(
835
857
  {
836
858
  className: [
837
859
  "material-symbols-outlined absolute right-3 text-on-surface-variant",
838
- J[a],
860
+ te[o],
839
861
  l ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
840
862
  ].filter(Boolean).join(" "),
841
863
  onClick: l,
@@ -843,30 +865,30 @@ const De = C(
843
865
  }
844
866
  )
845
867
  ] }),
846
- r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
868
+ n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
847
869
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
848
- r
870
+ n
849
871
  ] }),
850
- !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
872
+ !n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
851
873
  ] });
852
874
  }
853
875
  );
854
- De.displayName = "Input";
855
- const He = {
876
+ Ue.displayName = "Input";
877
+ const Ge = {
856
878
  sm: "max-w-sm",
857
879
  md: "max-w-md",
858
880
  lg: "max-w-lg",
859
881
  xl: "max-w-2xl",
860
882
  full: "max-w-[calc(100vw-2rem)]"
861
883
  };
862
- function ut({ open: e, onClose: n, size: r = "md", children: a }) {
863
- return z(() => {
884
+ function Et({ open: e, onClose: r, size: n = "md", children: o }) {
885
+ return j(() => {
864
886
  if (!e) return;
865
- const o = (s) => {
866
- s.key === "Escape" && n();
887
+ const a = (s) => {
888
+ s.key === "Escape" && r();
867
889
  };
868
- return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
869
- }, [e, n]), e ? /* @__PURE__ */ i(
890
+ return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
891
+ }, [e, r]), e ? /* @__PURE__ */ i(
870
892
  "div",
871
893
  {
872
894
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
@@ -876,8 +898,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
876
898
  /* @__PURE__ */ t(
877
899
  "div",
878
900
  {
879
- className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
880
- onClick: n,
901
+ className: "absolute inset-0 bg-black/50 dark:bg-scrim/60 backdrop-blur-sm",
902
+ onClick: r,
881
903
  "aria-hidden": "true"
882
904
  }
883
905
  ),
@@ -885,31 +907,31 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
885
907
  "div",
886
908
  {
887
909
  className: [
888
- "relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
889
- He[r]
910
+ "relative w-full bg-surface-container-lowest rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
911
+ Ge[n]
890
912
  ].filter(Boolean).join(" "),
891
- children: a
913
+ children: o
892
914
  }
893
915
  )
894
916
  ]
895
917
  }
896
918
  ) : null;
897
919
  }
898
- function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
920
+ function Wt({ title: e, subtitle: r, onClose: n, className: o = "", ...a }) {
899
921
  return /* @__PURE__ */ i(
900
922
  "div",
901
923
  {
902
- className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", a].filter(Boolean).join(" "),
903
- ...o,
924
+ className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", o].filter(Boolean).join(" "),
925
+ ...a,
904
926
  children: [
905
927
  /* @__PURE__ */ i("div", { children: [
906
928
  /* @__PURE__ */ t("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
907
- n && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: n })
929
+ r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
908
930
  ] }),
909
- r && /* @__PURE__ */ t(
931
+ n && /* @__PURE__ */ t(
910
932
  "button",
911
933
  {
912
- onClick: r,
934
+ onClick: n,
913
935
  className: "p-1 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low rounded-lg transition-all -mt-1 -mr-1",
914
936
  "aria-label": "Fechar modal",
915
937
  children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
@@ -919,65 +941,65 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
919
941
  }
920
942
  );
921
943
  }
922
- function mt({ children: e, className: n = "", ...r }) {
944
+ function St({ children: e, className: r = "", ...n }) {
923
945
  return /* @__PURE__ */ t(
924
946
  "div",
925
947
  {
926
- className: ["p-6 overflow-y-auto flex-1", n].filter(Boolean).join(" "),
927
- ...r,
948
+ className: ["p-6 overflow-y-auto flex-1", r].filter(Boolean).join(" "),
949
+ ...n,
928
950
  children: e
929
951
  }
930
952
  );
931
953
  }
932
- function pt({ children: e, className: n = "", ...r }) {
954
+ function Rt({ children: e, className: r = "", ...n }) {
933
955
  return /* @__PURE__ */ t(
934
956
  "div",
935
957
  {
936
958
  className: [
937
959
  "flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
938
- n
960
+ r
939
961
  ].filter(Boolean).join(" "),
940
- ...r,
962
+ ...n,
941
963
  children: e
942
964
  }
943
965
  );
944
966
  }
945
- function Ue(e, n) {
946
- return n <= 7 ? Array.from({ length: n }, (r, a) => a + 1) : e <= 4 ? [1, 2, 3, 4, 5, "...", n] : e >= n - 3 ? [1, "...", n - 4, n - 3, n - 2, n - 1, n] : [1, "...", e - 1, e, e + 1, "...", n];
967
+ function qe(e, r) {
968
+ return r <= 7 ? Array.from({ length: r }, (n, o) => o + 1) : e <= 4 ? [1, 2, 3, 4, 5, "...", r] : e >= r - 3 ? [1, "...", r - 4, r - 3, r - 2, r - 1, r] : [1, "...", e - 1, e, e + 1, "...", r];
947
969
  }
948
- function ht({
970
+ function Ht({
949
971
  currentPage: e,
950
- totalPages: n,
951
- totalItems: r,
952
- itemsPerPage: a = 10,
953
- onPageChange: o,
972
+ totalPages: r,
973
+ totalItems: n,
974
+ itemsPerPage: o = 10,
975
+ onPageChange: a,
954
976
  variant: s = "full",
955
977
  className: l = "",
956
978
  ...c
957
979
  }) {
958
- const d = Ue(e, n), f = (e - 1) * a + 1, m = Math.min(e * a, r ?? e * a), p = "inline-flex items-center justify-center text-sm font-medium rounded transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-zeo-orange/30 disabled:opacity-40 disabled:cursor-not-allowed select-none", u = `${p} w-9 h-9`, h = "bg-zeo-orange text-white", x = "text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface", v = `${p} px-3 h-9 gap-1.5 border border-surface-container-high text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface`;
980
+ const d = qe(e, r), h = (e - 1) * o + 1, f = Math.min(e * o, n ?? e * o), p = "inline-flex items-center justify-center text-sm font-medium rounded transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-zeo-orange/30 disabled:opacity-40 disabled:cursor-not-allowed select-none", u = `${p} w-9 h-9`, m = "bg-zeo-orange text-white", x = "text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface", v = `${p} px-3 h-9 gap-1.5 border border-surface-container-high text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface`;
959
981
  return /* @__PURE__ */ i(
960
982
  "div",
961
983
  {
962
984
  className: ["flex items-center justify-between gap-4 flex-wrap", l].filter(Boolean).join(" "),
963
985
  ...c,
964
986
  children: [
965
- s === "full" && r !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
987
+ s === "full" && n !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
966
988
  "Mostrando ",
967
989
  /* @__PURE__ */ i("strong", { children: [
968
- f,
990
+ h,
969
991
  "–",
970
- m
992
+ f
971
993
  ] }),
972
994
  " de ",
973
- /* @__PURE__ */ t("strong", { children: r }),
995
+ /* @__PURE__ */ t("strong", { children: n }),
974
996
  " itens"
975
997
  ] }),
976
998
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1 ml-auto", children: [
977
999
  /* @__PURE__ */ i(
978
1000
  "button",
979
1001
  {
980
- onClick: () => o(e - 1),
1002
+ onClick: () => a(e - 1),
981
1003
  disabled: e === 1,
982
1004
  "aria-label": "Página anterior",
983
1005
  className: s === "icon" ? u + " " + x : v,
@@ -991,9 +1013,9 @@ function ht({
991
1013
  (b, w) => b === "..." ? /* @__PURE__ */ t("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${w}`) : /* @__PURE__ */ t(
992
1014
  "button",
993
1015
  {
994
- onClick: () => o(b),
1016
+ onClick: () => a(b),
995
1017
  "aria-current": e === b ? "page" : void 0,
996
- className: [u, e === b ? h : x].join(" "),
1018
+ className: [u, e === b ? m : x].join(" "),
997
1019
  children: b
998
1020
  },
999
1021
  b
@@ -1002,8 +1024,8 @@ function ht({
1002
1024
  /* @__PURE__ */ i(
1003
1025
  "button",
1004
1026
  {
1005
- onClick: () => o(e + 1),
1006
- disabled: e === n,
1027
+ onClick: () => a(e + 1),
1028
+ disabled: e === r,
1007
1029
  "aria-label": "Próxima página",
1008
1030
  className: s === "icon" ? u + " " + x : v,
1009
1031
  children: [
@@ -1017,33 +1039,33 @@ function ht({
1017
1039
  }
1018
1040
  );
1019
1041
  }
1020
- const We = {
1042
+ const Pe = {
1021
1043
  xs: "h-1",
1022
1044
  sm: "h-1.5",
1023
1045
  md: "h-2",
1024
1046
  lg: "h-3"
1025
- }, Ge = {
1047
+ }, Ze = {
1026
1048
  primary: "bg-zeo-orange",
1027
1049
  success: "bg-green-500",
1028
1050
  warning: "bg-amber-400",
1029
1051
  danger: "bg-red-500"
1030
1052
  };
1031
- function xt({
1053
+ function Vt({
1032
1054
  value: e,
1033
- max: n = 100,
1034
- size: r = "md",
1035
- variant: a = "primary",
1036
- label: o = "none",
1055
+ max: r = 100,
1056
+ size: n = "md",
1057
+ variant: o = "primary",
1058
+ label: a = "none",
1037
1059
  showPercent: s = !0,
1038
1060
  title: l,
1039
1061
  className: c = "",
1040
1062
  ...d
1041
1063
  }) {
1042
- const f = Math.min(100, Math.max(0, e / n * 100)), m = `${Math.round(f)}%`;
1064
+ const h = Math.min(100, Math.max(0, e / r * 100)), f = `${Math.round(h)}%`;
1043
1065
  return /* @__PURE__ */ i("div", { className: ["flex flex-col gap-1.5", c].filter(Boolean).join(" "), ...d, children: [
1044
- (l || o === "outside" && s) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
1066
+ (l || a === "outside" && s) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
1045
1067
  l && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: l }),
1046
- o === "outside" && s && /* @__PURE__ */ t("span", { className: "text-sm font-semibold text-on-surface", children: m })
1068
+ a === "outside" && s && /* @__PURE__ */ t("span", { className: "text-sm font-semibold text-on-surface", children: f })
1047
1069
  ] }),
1048
1070
  /* @__PURE__ */ t(
1049
1071
  "div",
@@ -1051,37 +1073,37 @@ function xt({
1051
1073
  role: "progressbar",
1052
1074
  "aria-valuenow": e,
1053
1075
  "aria-valuemin": 0,
1054
- "aria-valuemax": n,
1055
- className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", We[r]].join(" "),
1076
+ "aria-valuemax": r,
1077
+ className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", Pe[n]].join(" "),
1056
1078
  children: /* @__PURE__ */ t(
1057
1079
  "div",
1058
1080
  {
1059
1081
  className: [
1060
1082
  "h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
1061
- Ge[a]
1083
+ Ze[o]
1062
1084
  ].join(" "),
1063
- style: { width: `${f}%` },
1064
- children: o === "inside" && s && f >= 20 && /* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-white leading-none", children: m })
1085
+ style: { width: `${h}%` },
1086
+ children: a === "inside" && s && h >= 20 && /* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
1065
1087
  }
1066
1088
  )
1067
1089
  }
1068
1090
  )
1069
1091
  ] });
1070
1092
  }
1071
- const X = (e, n) => typeof e == "function" ? e(n) : e;
1072
- function bt({
1093
+ const re = (e, r) => typeof e == "function" ? e(r) : e;
1094
+ function Dt({
1073
1095
  sidebar: e,
1074
- navbar: n,
1075
- children: r,
1076
- defaultExpanded: a = !1,
1077
- isExpanded: o,
1096
+ navbar: r,
1097
+ children: n,
1098
+ defaultExpanded: o = !1,
1099
+ isExpanded: a,
1078
1100
  onToggle: s
1079
1101
  }) {
1080
- const [l, c] = N(a), d = o ?? l, f = j(() => {
1081
- o === void 0 && c((p) => !p), s == null || s();
1082
- }, [o, s]), m = { isExpanded: d, toggle: f };
1102
+ const [l, c] = N(o), d = a ?? l, h = C(() => {
1103
+ a === void 0 && c((p) => !p), s == null || s();
1104
+ }, [a, s]), f = { isExpanded: d, toggle: h };
1083
1105
  return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden", children: [
1084
- X(e, m),
1106
+ re(e, f),
1085
1107
  /* @__PURE__ */ i(
1086
1108
  "div",
1087
1109
  {
@@ -1090,21 +1112,21 @@ function bt({
1090
1112
  d ? "ml-sidebar-expanded" : "ml-sidebar-collapsed"
1091
1113
  ].join(" "),
1092
1114
  children: [
1093
- X(n, m),
1094
- /* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container", children: r })
1115
+ re(r, f),
1116
+ /* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container dark:bg-canvas", children: n })
1095
1117
  ]
1096
1118
  }
1097
1119
  )
1098
1120
  ] });
1099
1121
  }
1100
- const qe = ({ href: e, className: n, children: r }) => /* @__PURE__ */ t("a", { href: e, className: n, children: r }), te = "text-[10px] uppercase tracking-widest text-white/30 font-bold";
1101
- function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1102
- const o = e.disabled || !e.href, s = !r || o && e.disabledReason, l = /* @__PURE__ */ i(
1122
+ const Qe = ({ href: e, className: r, children: n }) => /* @__PURE__ */ t("a", { href: e, className: r, children: n }), oe = "text-[10px] uppercase tracking-widest text-white/30 font-bold";
1123
+ function ae({ item: e, isActive: r, isExpanded: n, renderLink: o = Qe }) {
1124
+ const a = e.disabled || !e.href, s = !n || a && e.disabledReason, l = /* @__PURE__ */ i(
1103
1125
  "div",
1104
1126
  {
1105
1127
  className: [
1106
1128
  "group relative flex items-center gap-3 px-4 py-3 rounded-lg transition-colors duration-150",
1107
- n ? "bg-primary-container/10 text-primary-container border-r-2 border-primary-container" : o ? "text-white/30 opacity-50 cursor-default" : "text-white/55 hover:bg-sidebar-hover hover:text-white cursor-pointer"
1129
+ r ? "bg-primary-container/10 text-primary-container border-r-2 border-primary-container" : a ? "text-white/30 opacity-50 cursor-default" : "text-white/55 hover:bg-sidebar-hover hover:text-white cursor-pointer"
1108
1130
  ].join(" "),
1109
1131
  children: [
1110
1132
  e.icon,
@@ -1113,7 +1135,7 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1113
1135
  {
1114
1136
  className: [
1115
1137
  "text-sm font-medium whitespace-nowrap overflow-hidden transition-opacity duration-shell",
1116
- r ? "opacity-100" : "opacity-0 w-0"
1138
+ n ? "opacity-100" : "opacity-0 w-0"
1117
1139
  ].join(" "),
1118
1140
  children: e.label
1119
1141
  }
@@ -1123,56 +1145,56 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1123
1145
  {
1124
1146
  role: "tooltip",
1125
1147
  className: [
1126
- "absolute left-full ml-3 px-3 py-2 bg-white text-gray-700 text-sm font-medium",
1148
+ "absolute left-full ml-3 px-3 py-2 bg-surface-container-lowest text-gray-700 dark:text-content-secondary text-sm font-medium",
1127
1149
  "rounded-lg shadow-theme-lg whitespace-nowrap z-[200] pointer-events-none",
1128
1150
  "invisible opacity-0 transition-all duration-150",
1129
1151
  s && "group-hover:visible group-hover:opacity-100"
1130
1152
  ].filter(Boolean).join(" "),
1131
1153
  children: [
1132
- o && e.disabledReason ? e.disabledReason : e.label,
1133
- /* @__PURE__ */ t("div", { className: "absolute top-1/2 -left-1 -translate-y-1/2 w-2 h-2 bg-white rotate-45" })
1154
+ a && e.disabledReason ? e.disabledReason : e.label,
1155
+ /* @__PURE__ */ t("div", { className: "absolute top-1/2 -left-1 -translate-y-1/2 w-2 h-2 bg-surface-container-lowest rotate-45" })
1134
1156
  ]
1135
1157
  }
1136
1158
  )
1137
1159
  ]
1138
1160
  }
1139
1161
  );
1140
- return o ? /* @__PURE__ */ t("div", { children: l }) : a({ item: e, href: e.href, className: "block no-underline", children: l });
1162
+ return a ? /* @__PURE__ */ t("div", { children: l }) : o({ item: e, href: e.href, className: "block no-underline", children: l });
1141
1163
  }
1142
- function Oe({ section: e, index: n = 0, activeId: r, isExpanded: a, renderLink: o }) {
1143
- return /* @__PURE__ */ i(Y, { children: [
1164
+ function Ye({ section: e, index: r = 0, activeId: n, isExpanded: o, renderLink: a }) {
1165
+ return /* @__PURE__ */ i(ne, { children: [
1144
1166
  e.label && /* @__PURE__ */ t(
1145
1167
  "div",
1146
1168
  {
1147
1169
  className: [
1148
1170
  "overflow-hidden transition-all duration-shell px-3",
1149
- a ? "h-6 opacity-100 mb-1" : "h-0 opacity-0",
1150
- n > 0 ? "mt-4" : ""
1171
+ o ? "h-6 opacity-100 mb-1" : "h-0 opacity-0",
1172
+ r > 0 ? "mt-4" : ""
1151
1173
  ].join(" "),
1152
- children: /* @__PURE__ */ t("span", { className: te, children: e.label })
1174
+ children: /* @__PURE__ */ t("span", { className: oe, children: e.label })
1153
1175
  }
1154
1176
  ),
1155
1177
  e.items.map((s) => /* @__PURE__ */ t(
1156
- ne,
1178
+ ae,
1157
1179
  {
1158
1180
  item: s,
1159
- isActive: s.id === r,
1160
- isExpanded: a,
1161
- renderLink: o
1181
+ isActive: s.id === n,
1182
+ isExpanded: o,
1183
+ renderLink: a
1162
1184
  },
1163
1185
  s.id
1164
1186
  ))
1165
1187
  ] });
1166
1188
  }
1167
- function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o }) {
1189
+ function Ot({ sections: e, activeId: r, isExpanded: n, logo: o, renderLink: a }) {
1168
1190
  const s = e.filter((d) => d.placement !== "bottom"), l = e.filter((d) => d.placement === "bottom"), c = /* @__PURE__ */ t(
1169
1191
  "img",
1170
1192
  {
1171
- src: a.src,
1172
- alt: a.alt ?? "",
1193
+ src: o.src,
1194
+ alt: o.alt ?? "",
1173
1195
  className: [
1174
1196
  "flex-shrink-0",
1175
- r ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
1197
+ n ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
1176
1198
  ].join(" ")
1177
1199
  }
1178
1200
  );
@@ -1183,7 +1205,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1183
1205
  "fixed left-0 top-0 h-screen bg-sidebar flex flex-col z-[100]",
1184
1206
  "transition-[width] duration-shell ease-shell",
1185
1207
  "shadow-[40px_0_40px_0_rgba(0,0,0,0.04)]",
1186
- r ? "w-sidebar-expanded" : "w-sidebar-collapsed"
1208
+ n ? "w-sidebar-expanded" : "w-sidebar-collapsed"
1187
1209
  ].join(" "),
1188
1210
  children: [
1189
1211
  /* @__PURE__ */ t(
@@ -1191,19 +1213,19 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1191
1213
  {
1192
1214
  className: [
1193
1215
  "h-[88px] flex items-center flex-shrink-0",
1194
- r ? "px-6 justify-start" : "justify-center"
1216
+ n ? "px-6 justify-start" : "justify-center"
1195
1217
  ].join(" "),
1196
- children: a.href ? /* @__PURE__ */ t("a", { href: a.href, "aria-label": a.alt, className: "flex-shrink-0", children: c }) : c
1218
+ children: o.href ? /* @__PURE__ */ t("a", { href: o.href, "aria-label": o.alt, className: "flex-shrink-0", children: c }) : c
1197
1219
  }
1198
1220
  ),
1199
- /* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d, f) => /* @__PURE__ */ t(
1200
- Oe,
1221
+ /* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d, h) => /* @__PURE__ */ t(
1222
+ Ye,
1201
1223
  {
1202
1224
  section: d,
1203
- index: f,
1204
- activeId: n,
1205
- isExpanded: r,
1206
- renderLink: o
1225
+ index: h,
1226
+ activeId: r,
1227
+ isExpanded: n,
1228
+ renderLink: a
1207
1229
  },
1208
1230
  d.id
1209
1231
  )) }),
@@ -1213,36 +1235,36 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1213
1235
  {
1214
1236
  className: [
1215
1237
  "px-6 mb-2 overflow-hidden transition-all duration-shell",
1216
- r ? "h-7 opacity-100" : "h-0 opacity-0"
1238
+ n ? "h-7 opacity-100" : "h-0 opacity-0"
1217
1239
  ].join(" "),
1218
- children: /* @__PURE__ */ t("span", { className: te, children: d.label })
1240
+ children: /* @__PURE__ */ t("span", { className: oe, children: d.label })
1219
1241
  }
1220
1242
  ),
1221
1243
  /* @__PURE__ */ t("div", { className: "border-t border-white/[0.06] mb-2" }),
1222
- /* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((f) => /* @__PURE__ */ t(
1223
- ne,
1244
+ /* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((h) => /* @__PURE__ */ t(
1245
+ ae,
1224
1246
  {
1225
- item: f,
1226
- isActive: f.id === n,
1227
- isExpanded: r,
1228
- renderLink: o
1247
+ item: h,
1248
+ isActive: h.id === r,
1249
+ isExpanded: n,
1250
+ renderLink: a
1229
1251
  },
1230
- f.id
1252
+ h.id
1231
1253
  )) })
1232
1254
  ] }, d.id))
1233
1255
  ]
1234
1256
  }
1235
1257
  );
1236
1258
  }
1237
- function vt({
1259
+ function Ft({
1238
1260
  onToggleMenu: e,
1239
- start: n,
1240
- search: r,
1241
- actions: a,
1242
- userMenu: o,
1261
+ start: r,
1262
+ search: n,
1263
+ actions: o,
1264
+ userMenu: a,
1243
1265
  toggleMenuLabel: s = "Alternar menu"
1244
1266
  }) {
1245
- return /* @__PURE__ */ i("header", { className: "h-navbar bg-surface-container-lowest border-b border-surface-container-highest flex items-center justify-between px-6 sticky top-0 z-50 flex-shrink-0", children: [
1267
+ return /* @__PURE__ */ i("header", { className: "h-navbar bg-surface-container-lowest dark:bg-page border-b border-surface-container-highest dark:border-line-section flex items-center justify-between px-6 sticky top-0 z-50 flex-shrink-0", children: [
1246
1268
  /* @__PURE__ */ i("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
1247
1269
  /* @__PURE__ */ t(
1248
1270
  "button",
@@ -1254,35 +1276,35 @@ function vt({
1254
1276
  children: /* @__PURE__ */ t(k, { name: "menu", size: 20 })
1255
1277
  }
1256
1278
  ),
1257
- n,
1258
- r
1279
+ r,
1280
+ n
1259
1281
  ] }),
1260
- (a || o) && /* @__PURE__ */ i("div", { className: "flex items-center gap-1 flex-shrink-0 ml-4", children: [
1261
- a,
1262
- a && o && /* @__PURE__ */ t("div", { className: "w-px h-6 bg-outline-variant opacity-30 mx-2 flex-shrink-0" }),
1263
- o
1282
+ (o || a) && /* @__PURE__ */ i("div", { className: "flex items-center gap-1 flex-shrink-0 ml-4", children: [
1283
+ o,
1284
+ o && a && /* @__PURE__ */ t("div", { className: "w-px h-6 bg-outline-variant opacity-30 mx-2 flex-shrink-0" }),
1285
+ a
1264
1286
  ] })
1265
1287
  ] });
1266
1288
  }
1267
- function wt({ module: e, project: n }) {
1289
+ function Kt({ module: e, project: r }) {
1268
1290
  return /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2 min-w-0", children: [
1269
1291
  /* @__PURE__ */ t("span", { className: "text-title-md font-bold text-on-surface whitespace-nowrap", children: e }),
1270
- n && /* @__PURE__ */ i(Y, { children: [
1292
+ r && /* @__PURE__ */ i(ne, { children: [
1271
1293
  /* @__PURE__ */ t("span", { className: "text-on-surface-variant", "aria-hidden": "true", children: "/" }),
1272
- /* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children: n })
1294
+ /* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children: r })
1273
1295
  ] })
1274
1296
  ] });
1275
1297
  }
1276
- function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShortcut: o = !1 }) {
1277
- const s = $(null);
1278
- return z(() => {
1279
- if (!o) return;
1298
+ function Ut({ value: e, onChange: r, placeholder: n, shortcutHint: o, focusShortcut: a = !1 }) {
1299
+ const s = z(null);
1300
+ return j(() => {
1301
+ if (!a) return;
1280
1302
  const l = (c) => {
1281
1303
  var d;
1282
1304
  (c.metaKey || c.ctrlKey) && c.key === "k" && (c.preventDefault(), (d = s.current) == null || d.focus());
1283
1305
  };
1284
1306
  return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
1285
- }, [o]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
1307
+ }, [a]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
1286
1308
  /* @__PURE__ */ t(
1287
1309
  k,
1288
1310
  {
@@ -1296,12 +1318,12 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
1296
1318
  {
1297
1319
  ref: s,
1298
1320
  value: e,
1299
- onChange: (l) => n(l.target.value),
1300
- placeholder: r,
1301
- "aria-label": r,
1321
+ onChange: (l) => r(l.target.value),
1322
+ placeholder: n,
1323
+ "aria-label": n,
1302
1324
  className: [
1303
1325
  "w-full h-9 pl-10 rounded-lg",
1304
- a ? "pr-[90px]" : "pr-3",
1326
+ o ? "pr-[90px]" : "pr-3",
1305
1327
  "border border-transparent bg-surface-container",
1306
1328
  "text-sm text-on-surface font-sans placeholder:text-on-surface-variant",
1307
1329
  "outline-none transition-all",
@@ -1309,68 +1331,118 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
1309
1331
  ].join(" ")
1310
1332
  }
1311
1333
  ),
1312
- a && /* @__PURE__ */ t("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-xs text-on-surface-variant bg-surface-container-lowest border border-surface-container-highest rounded px-1 py-px whitespace-nowrap pointer-events-none", children: a })
1334
+ o && /* @__PURE__ */ t("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-xs text-on-surface-variant bg-surface-container-lowest border border-surface-container-highest rounded px-1 py-px whitespace-nowrap pointer-events-none", children: o })
1313
1335
  ] });
1314
1336
  }
1315
- function re({ icon: e, label: n, badge: r = !1, className: a = "", type: o = "button", ...s }) {
1337
+ function se({ icon: e, label: r, badge: n = !1, className: o = "", type: a = "button", ...s }) {
1316
1338
  return /* @__PURE__ */ i(
1317
1339
  "button",
1318
1340
  {
1319
1341
  ...s,
1320
- type: o,
1321
- "aria-label": n,
1322
- className: `relative flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors ${a}`.trim(),
1342
+ type: a,
1343
+ "aria-label": r,
1344
+ className: `relative flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors ${o}`.trim(),
1323
1345
  children: [
1324
1346
  e,
1325
- r && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
1347
+ n && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
1326
1348
  ]
1327
1349
  }
1328
1350
  );
1329
1351
  }
1330
- function Nt({ hasUnread: e = !1, count: n = 0, onClick: r, label: a = "Notificações" }) {
1352
+ function Gt({ hasUnread: e = !1, count: r = 0, onClick: n, label: o = "Notificações" }) {
1331
1353
  return /* @__PURE__ */ t(
1332
- re,
1354
+ se,
1333
1355
  {
1334
1356
  icon: /* @__PURE__ */ t(k, { name: "notifications", size: 20 }),
1335
- label: a,
1336
- badge: e || n > 0,
1337
- onClick: r
1357
+ label: o,
1358
+ badge: e || r > 0,
1359
+ onClick: n
1338
1360
  }
1339
1361
  );
1340
1362
  }
1341
- function ae(e, n, r) {
1342
- z(() => {
1343
- if (!n) return;
1344
- const a = (s) => {
1345
- s.key === "Escape" && r();
1346
- }, o = (s) => {
1363
+ const Je = {
1364
+ read: () => {
1365
+ try {
1366
+ const e = window.localStorage.getItem(F);
1367
+ return e === "dark" || e === "light" ? e : null;
1368
+ } catch {
1369
+ return null;
1370
+ }
1371
+ },
1372
+ write: (e) => {
1373
+ try {
1374
+ window.localStorage.setItem(F, e);
1375
+ } catch {
1376
+ return;
1377
+ }
1378
+ }
1379
+ }, qt = `try{if(localStorage.getItem('${F}')==='dark')document.documentElement.setAttribute('${K}','dark')}catch(e){}`;
1380
+ function Xe(e, r = document.documentElement) {
1381
+ e === "dark" ? r.setAttribute(K, "dark") : r.removeAttribute(K);
1382
+ }
1383
+ const G = U(null);
1384
+ function Pt({
1385
+ children: e,
1386
+ defaultTheme: r = "light",
1387
+ storage: n = Je
1388
+ }) {
1389
+ const [o, a] = N(() => n.read() ?? r);
1390
+ j(() => {
1391
+ Xe(o);
1392
+ }, [o]);
1393
+ const s = C(
1394
+ (d) => {
1395
+ n.write(d), a(d);
1396
+ },
1397
+ [n]
1398
+ ), l = C(() => s(o === "dark" ? "light" : "dark"), [s, o]), c = ge(
1399
+ () => ({ theme: o, isDark: o === "dark", setTheme: s, toggleTheme: l }),
1400
+ [o, s, l]
1401
+ );
1402
+ return /* @__PURE__ */ t(G.Provider, { value: c, children: e });
1403
+ }
1404
+ function et() {
1405
+ return E(G);
1406
+ }
1407
+ function Zt() {
1408
+ const e = E(G);
1409
+ if (!e) throw new Error("useTheme precisa estar dentro de um ThemeProvider");
1410
+ return e;
1411
+ }
1412
+ function ie(e, r, n) {
1413
+ j(() => {
1414
+ if (!r) return;
1415
+ const o = (s) => {
1416
+ s.key === "Escape" && n();
1417
+ }, a = (s) => {
1347
1418
  var l;
1348
- (l = e.current) != null && l.contains(s.target) || r();
1419
+ (l = e.current) != null && l.contains(s.target) || n();
1349
1420
  };
1350
- return document.addEventListener("keydown", a), document.addEventListener("mousedown", o), () => {
1351
- document.removeEventListener("keydown", a), document.removeEventListener("mousedown", o);
1421
+ return document.addEventListener("keydown", o), document.addEventListener("mousedown", a), () => {
1422
+ document.removeEventListener("keydown", o), document.removeEventListener("mousedown", a);
1352
1423
  };
1353
- }, [e, n, r]);
1424
+ }, [e, r, n]);
1354
1425
  }
1355
- const Ze = {
1426
+ const tt = {
1356
1427
  myAccount: "Minha Conta",
1357
1428
  logout: "Sair",
1429
+ darkMode: "Modo escuro",
1358
1430
  user: "Usuário"
1359
1431
  };
1360
- function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o, onLogout: s, labels: l }) {
1361
- const c = { ...Ze, ...l }, [d, f] = N(!1), m = $(null), p = j(() => f(!1), []);
1362
- return ae(m, d, p), /* @__PURE__ */ i("div", { ref: m, className: "relative flex items-center", children: [
1432
+ function Qt({ name: e, email: r, shortName: n, profilePicUrl: o, onMyAccount: a, onLogout: s, labels: l }) {
1433
+ const c = { ...tt, ...l }, [d, h] = N(!1), f = z(null), p = et(), u = C(() => h(!1), []);
1434
+ return ie(f, d, u), /* @__PURE__ */ i("div", { ref: f, className: "relative flex items-center", children: [
1363
1435
  /* @__PURE__ */ i(
1364
1436
  "button",
1365
1437
  {
1366
1438
  type: "button",
1367
- onClick: () => f((u) => !u),
1439
+ onClick: () => h((m) => !m),
1368
1440
  "aria-haspopup": "true",
1369
1441
  "aria-expanded": d,
1370
1442
  className: "flex items-center gap-2 px-2 py-1 rounded-full border-none bg-transparent cursor-pointer text-on-surface-variant hover:bg-surface-container-low transition-colors",
1371
1443
  children: [
1372
- r && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: r }),
1373
- /* @__PURE__ */ t(Z, { src: a, name: e, size: "sm", "aria-label": e || c.user }),
1444
+ n && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: n }),
1445
+ /* @__PURE__ */ t(X, { src: o, name: e, size: "sm", "aria-label": e || c.user }),
1374
1446
  /* @__PURE__ */ t("span", { className: `flex items-center transition-transform duration-200 ${d ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ t(k, { name: "expand_more", size: 13 }) })
1375
1447
  ]
1376
1448
  }
@@ -1382,10 +1454,10 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1382
1454
  className: "absolute right-0 top-[calc(100%+8px)] min-w-[220px] bg-surface-container-lowest border border-surface-container-highest rounded-xl shadow-theme-lg z-[200] overflow-hidden",
1383
1455
  children: [
1384
1456
  /* @__PURE__ */ i("div", { className: "flex items-center gap-3 p-4", children: [
1385
- /* @__PURE__ */ t(Z, { src: a, name: e, size: "sm" }),
1457
+ /* @__PURE__ */ t(X, { src: o, name: e, size: "sm" }),
1386
1458
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
1387
1459
  /* @__PURE__ */ t("span", { className: "text-sm font-bold text-on-surface whitespace-nowrap overflow-hidden text-ellipsis", children: e }),
1388
- /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children: n })
1460
+ /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children: r })
1389
1461
  ] })
1390
1462
  ] }),
1391
1463
  /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
@@ -1395,7 +1467,7 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1395
1467
  type: "button",
1396
1468
  role: "menuitem",
1397
1469
  onClick: () => {
1398
- p(), o();
1470
+ u(), a();
1399
1471
  },
1400
1472
  className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-on-surface hover:bg-surface-container-low transition-colors",
1401
1473
  children: [
@@ -1404,6 +1476,32 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1404
1476
  ]
1405
1477
  }
1406
1478
  ),
1479
+ p && /* @__PURE__ */ i(
1480
+ "button",
1481
+ {
1482
+ type: "button",
1483
+ role: "menuitemcheckbox",
1484
+ "aria-checked": p.isDark,
1485
+ onClick: p.toggleTheme,
1486
+ className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-on-surface hover:bg-surface-container-low transition-colors",
1487
+ children: [
1488
+ /* @__PURE__ */ t(k, { name: "dark_mode", size: 15 }),
1489
+ /* @__PURE__ */ t("span", { className: "flex-1 text-sm font-medium", children: c.darkMode }),
1490
+ /* @__PURE__ */ t(
1491
+ "span",
1492
+ {
1493
+ className: `relative w-7 h-4 shrink-0 rounded-full transition-colors duration-150 ${p.isDark ? "bg-zeo-orange" : "bg-line-strong"}`,
1494
+ children: /* @__PURE__ */ t(
1495
+ "span",
1496
+ {
1497
+ className: `absolute top-0.5 w-3 h-3 rounded-full bg-white transition-[left] duration-150 ${p.isDark ? "left-3.5" : "left-0.5"}`
1498
+ }
1499
+ )
1500
+ }
1501
+ )
1502
+ ]
1503
+ }
1504
+ ),
1407
1505
  /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
1408
1506
  /* @__PURE__ */ i(
1409
1507
  "button",
@@ -1411,7 +1509,7 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1411
1509
  type: "button",
1412
1510
  role: "menuitem",
1413
1511
  onClick: () => {
1414
- p(), s();
1512
+ u(), s();
1415
1513
  },
1416
1514
  className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-error hover:bg-error/5 transition-colors",
1417
1515
  children: [
@@ -1425,151 +1523,152 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1425
1523
  )
1426
1524
  ] });
1427
1525
  }
1428
- const Qe = {
1526
+ const rt = {
1429
1527
  help: "Ajuda",
1430
1528
  documentation: "Documentação",
1431
1529
  faq: "F.A.Q.",
1432
1530
  changelog: "Changelog",
1433
1531
  contactUs: "Contate-nos"
1434
1532
  };
1435
- function jt({ labels: e, hrefs: n }) {
1436
- const r = { ...Qe, ...e }, a = $(null), [o, s] = N(!1), l = j(() => s(!1), []);
1437
- return ae(a, o, l), /* @__PURE__ */ i("div", { ref: a, className: "relative", children: [
1533
+ function Yt({ labels: e, hrefs: r }) {
1534
+ const n = { ...rt, ...e }, o = z(null), [a, s] = N(!1), l = C(() => s(!1), []);
1535
+ return ie(o, a, l), /* @__PURE__ */ i("div", { ref: o, className: "relative", children: [
1438
1536
  /* @__PURE__ */ t(
1439
- re,
1537
+ se,
1440
1538
  {
1441
1539
  icon: /* @__PURE__ */ t(k, { name: "help", size: 20 }),
1442
- label: r.help,
1540
+ label: n.help,
1443
1541
  onClick: () => s((c) => !c),
1444
1542
  "aria-haspopup": "true",
1445
- "aria-expanded": o
1543
+ "aria-expanded": a
1446
1544
  }
1447
1545
  ),
1448
- o && /* @__PURE__ */ i(
1546
+ a && /* @__PURE__ */ i(
1449
1547
  "div",
1450
1548
  {
1451
1549
  role: "menu",
1452
1550
  className: "absolute right-0 top-[calc(100%+8px)] w-56 bg-surface-container-lowest border border-surface-container-highest rounded-xl shadow-theme-lg py-1 z-[200] overflow-hidden",
1453
1551
  children: [
1454
- /* @__PURE__ */ t(E, { icon: "description", label: r.documentation, href: n == null ? void 0 : n.documentation }),
1455
- /* @__PURE__ */ t(E, { icon: "help_outline", label: r.faq, href: n == null ? void 0 : n.faq }),
1456
- /* @__PURE__ */ t(E, { icon: "assignment", label: r.changelog, href: n == null ? void 0 : n.changelog }),
1552
+ /* @__PURE__ */ t(A, { icon: "description", label: n.documentation, href: r == null ? void 0 : r.documentation }),
1553
+ /* @__PURE__ */ t(A, { icon: "help_outline", label: n.faq, href: r == null ? void 0 : r.faq }),
1554
+ /* @__PURE__ */ t(A, { icon: "assignment", label: n.changelog, href: r == null ? void 0 : r.changelog }),
1457
1555
  /* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-highest" }),
1458
- /* @__PURE__ */ t(E, { icon: "mail", label: r.contactUs, href: n == null ? void 0 : n.contactUs })
1556
+ /* @__PURE__ */ t(A, { icon: "mail", label: n.contactUs, href: r == null ? void 0 : r.contactUs })
1459
1557
  ]
1460
1558
  }
1461
1559
  )
1462
1560
  ] });
1463
1561
  }
1464
- function E({ icon: e, label: n, href: r = "#" }) {
1562
+ function A({ icon: e, label: r, href: n = "#" }) {
1465
1563
  return /* @__PURE__ */ i(
1466
1564
  "a",
1467
1565
  {
1468
- href: r,
1566
+ href: n,
1469
1567
  role: "menuitem",
1470
1568
  className: "flex items-center gap-3 px-4 py-2.5 text-sm font-medium text-on-surface-variant hover:bg-surface-container hover:text-on-surface transition-colors no-underline",
1471
1569
  children: [
1472
1570
  /* @__PURE__ */ t(k, { name: e, size: 18, className: "opacity-70" }),
1473
- n
1571
+ r
1474
1572
  ]
1475
1573
  }
1476
1574
  );
1477
1575
  }
1478
- const Ct = [
1576
+ const Jt = [
1479
1577
  { id: "tower", status: "active", iconName: "cell_tower", labelKey: "modules.tower.title" },
1480
1578
  { id: "antennas", status: "active", iconName: "settings_input_antenna", labelKey: "modules.antennas.title" },
1481
1579
  { id: "rooftop", status: "active", iconName: "roofing", labelKey: "modules.rooftop.title" },
1482
- { id: "radier", status: "active", iconName: "layers", IconComponent: Se, labelKey: "modules.radier.title" },
1483
- { id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent: Fe, labelKey: "modules.caisson_foundation.title" },
1484
- { id: "pole", status: "coming_soon", iconName: "fence", IconComponent: Re, labelKey: "modules.pole.title" },
1485
- { id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" }
1580
+ { id: "radier", status: "active", iconName: "layers", IconComponent: Ve, labelKey: "modules.radier.title" },
1581
+ { id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent: De, labelKey: "modules.caisson_foundation.title" },
1582
+ { id: "pole", status: "coming_soon", iconName: "fence", IconComponent: Oe, labelKey: "modules.pole.title" },
1583
+ { id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" },
1584
+ { id: "calculadoras", status: "active", iconName: "calculate", labelKey: "modules.calculadoras.title" }
1486
1585
  ];
1487
- function Bt(e, n, r) {
1488
- return e.filter((a) => n.includes(a.id) || r.includes(a.id)).map((a) => ({ module: a, hasAccess: r.includes(a.id) }));
1586
+ function Xt(e, r, n) {
1587
+ return e.filter((o) => r.includes(o.id) || n.includes(o.id)).map((o) => ({ module: o, hasAccess: n.includes(o.id) }));
1489
1588
  }
1490
- const Je = {
1589
+ const nt = {
1491
1590
  xs: "w-3 h-3 border",
1492
1591
  sm: "w-4 h-4 border-2",
1493
1592
  md: "w-6 h-6 border-2",
1494
1593
  lg: "w-8 h-8 border-[3px]",
1495
1594
  xl: "w-12 h-12 border-4"
1496
- }, Xe = {
1497
- primary: "border-orange-200 border-t-zeo-orange",
1595
+ }, ot = {
1596
+ primary: "border-orange-200 dark:border-zeo-orange/30 border-t-zeo-orange",
1498
1597
  secondary: "border-surface-container-high border-t-on-surface-variant",
1499
1598
  white: "border-white/30 border-t-white"
1500
1599
  };
1501
- function Lt({
1600
+ function er({
1502
1601
  size: e = "md",
1503
- variant: n = "primary",
1504
- label: r = "Carregando...",
1505
- className: a = "",
1506
- ...o
1602
+ variant: r = "primary",
1603
+ label: n = "Carregando...",
1604
+ className: o = "",
1605
+ ...a
1507
1606
  }) {
1508
1607
  return /* @__PURE__ */ t(
1509
1608
  "span",
1510
1609
  {
1511
1610
  role: "status",
1512
- "aria-label": r,
1611
+ "aria-label": n,
1513
1612
  className: [
1514
1613
  "inline-block rounded-full animate-spin",
1515
- Je[e],
1516
- Xe[n],
1517
- a
1614
+ nt[e],
1615
+ ot[r],
1616
+ o
1518
1617
  ].filter(Boolean).join(" "),
1519
- ...o
1618
+ ...a
1520
1619
  }
1521
1620
  );
1522
1621
  }
1523
- function zt({ children: e, className: n = "", ...r }) {
1622
+ function tr({ children: e, className: r = "", ...n }) {
1524
1623
  return /* @__PURE__ */ t(
1525
1624
  "div",
1526
1625
  {
1527
- className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", n].filter(Boolean).join(" "),
1528
- ...r,
1626
+ className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", r].filter(Boolean).join(" "),
1627
+ ...n,
1529
1628
  children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: e })
1530
1629
  }
1531
1630
  );
1532
1631
  }
1533
- function _t({ children: e, className: n = "", ...r }) {
1632
+ function rr({ children: e, className: r = "", ...n }) {
1534
1633
  return /* @__PURE__ */ t(
1535
1634
  "thead",
1536
1635
  {
1537
- className: ["bg-surface-container-low border-b border-surface-container-high", n].filter(Boolean).join(" "),
1538
- ...r,
1636
+ className: ["bg-surface-container-low border-b border-surface-container-high", r].filter(Boolean).join(" "),
1637
+ ...n,
1539
1638
  children: e
1540
1639
  }
1541
1640
  );
1542
1641
  }
1543
- function Mt({ children: e, className: n = "", ...r }) {
1642
+ function nr({ children: e, className: r = "", ...n }) {
1544
1643
  return /* @__PURE__ */ t(
1545
1644
  "tbody",
1546
1645
  {
1547
- className: ["bg-white divide-y divide-surface-container-high", n].filter(Boolean).join(" "),
1548
- ...r,
1646
+ className: ["bg-surface-container-lowest divide-y divide-surface-container-high", r].filter(Boolean).join(" "),
1647
+ ...n,
1549
1648
  children: e
1550
1649
  }
1551
1650
  );
1552
1651
  }
1553
- function $t({ selected: e = !1, children: n, className: r = "", ...a }) {
1652
+ function or({ selected: e = !1, children: r, className: n = "", ...o }) {
1554
1653
  return /* @__PURE__ */ t(
1555
1654
  "tr",
1556
1655
  {
1557
1656
  className: [
1558
1657
  "hover:bg-surface-container-low transition-colors",
1559
- e ? "bg-orange-50/40" : "",
1560
- r
1658
+ e ? "bg-orange-50/40 dark:bg-zeo-orange/[0.12]" : "",
1659
+ n
1561
1660
  ].filter(Boolean).join(" "),
1562
- ...a,
1563
- children: n
1661
+ ...o,
1662
+ children: r
1564
1663
  }
1565
1664
  );
1566
1665
  }
1567
- function It({
1666
+ function ar({
1568
1667
  sortable: e = !1,
1569
- sorted: n = !1,
1570
- onSort: r,
1571
- children: a,
1572
- className: o = "",
1668
+ sorted: r = !1,
1669
+ onSort: n,
1670
+ children: o,
1671
+ className: a = "",
1573
1672
  ...s
1574
1673
  }) {
1575
1674
  return /* @__PURE__ */ t(
@@ -1578,112 +1677,112 @@ function It({
1578
1677
  className: [
1579
1678
  "px-4 py-3 text-left text-xs font-semibold text-on-surface-variant uppercase tracking-wide whitespace-nowrap",
1580
1679
  e ? "cursor-pointer hover:text-on-surface select-none" : "",
1581
- o
1680
+ a
1582
1681
  ].filter(Boolean).join(" "),
1583
- onClick: e ? r : void 0,
1682
+ onClick: e ? n : void 0,
1584
1683
  ...s,
1585
1684
  children: /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
1586
- a,
1685
+ o,
1587
1686
  e && /* @__PURE__ */ t(
1588
1687
  "span",
1589
1688
  {
1590
- className: `material-symbols-outlined text-[14px] ${n ? "text-zeo-orange" : "opacity-40"}`,
1591
- children: n === "asc" ? "arrow_upward" : n === "desc" ? "arrow_downward" : "unfold_more"
1689
+ className: `material-symbols-outlined text-[14px] ${r ? "text-zeo-orange" : "opacity-40"}`,
1690
+ children: r === "asc" ? "arrow_upward" : r === "desc" ? "arrow_downward" : "unfold_more"
1592
1691
  }
1593
1692
  )
1594
1693
  ] })
1595
1694
  }
1596
1695
  );
1597
1696
  }
1598
- function At({ muted: e = !1, mono: n = !1, children: r, className: a = "", ...o }) {
1697
+ function sr({ muted: e = !1, mono: r = !1, children: n, className: o = "", ...a }) {
1599
1698
  return /* @__PURE__ */ t(
1600
1699
  "td",
1601
1700
  {
1602
1701
  className: [
1603
1702
  "px-4 py-3",
1604
1703
  e ? "text-on-surface-variant" : "text-on-surface",
1605
- n ? "font-mono text-xs" : "",
1606
- a
1704
+ r ? "font-mono text-xs" : "",
1705
+ o
1607
1706
  ].filter(Boolean).join(" "),
1608
- ...o,
1609
- children: r
1707
+ ...a,
1708
+ children: n
1610
1709
  }
1611
1710
  );
1612
1711
  }
1613
- const oe = P(null);
1614
- function H() {
1615
- const e = ee(oe);
1712
+ const le = U(null);
1713
+ function q() {
1714
+ const e = E(le);
1616
1715
  if (!e) throw new Error("Tab must be used inside Tabs");
1617
1716
  return e;
1618
1717
  }
1619
- const se = P({ stretch: !1 });
1620
- function Et({ value: e, onChange: n, variant: r = "default", children: a }) {
1621
- return /* @__PURE__ */ t(oe.Provider, { value: { active: e, onChange: n, variant: r }, children: /* @__PURE__ */ t("div", { className: r === "vertical" ? "flex gap-6" : "flex flex-col gap-4", children: a }) });
1718
+ const ce = U({ stretch: !1 });
1719
+ function ir({ value: e, onChange: r, variant: n = "default", children: o }) {
1720
+ return /* @__PURE__ */ t(le.Provider, { value: { active: e, onChange: r, variant: n }, children: /* @__PURE__ */ t("div", { className: n === "vertical" ? "flex gap-6" : "flex flex-col gap-4", children: o }) });
1622
1721
  }
1623
- function Tt({ children: e, className: n = "", stretch: r = !1, ...a }) {
1624
- const { variant: o } = H(), s = {
1625
- default: r ? "flex gap-1 bg-surface-container-low rounded-lg p-1 w-full" : "flex gap-1 bg-surface-container-low rounded-lg p-1 w-fit",
1722
+ function lr({ children: e, className: r = "", stretch: n = !1, ...o }) {
1723
+ const { variant: a } = q(), s = {
1724
+ default: n ? "flex gap-1 bg-surface-container-low rounded-lg p-1 w-full" : "flex gap-1 bg-surface-container-low rounded-lg p-1 w-fit",
1626
1725
  underline: "flex gap-0 border-b border-surface-container-high w-full",
1627
1726
  vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
1628
- }[o];
1629
- return /* @__PURE__ */ t(se.Provider, { value: { stretch: r }, children: /* @__PURE__ */ t(
1727
+ }[a];
1728
+ return /* @__PURE__ */ t(ce.Provider, { value: { stretch: n }, children: /* @__PURE__ */ t(
1630
1729
  "div",
1631
1730
  {
1632
1731
  role: "tablist",
1633
- className: [s, n].filter(Boolean).join(" "),
1634
- ...a,
1732
+ className: [s, r].filter(Boolean).join(" "),
1733
+ ...o,
1635
1734
  children: e
1636
1735
  }
1637
1736
  ) });
1638
1737
  }
1639
- function St({ value: e, label: n, icon: r, badge: a, disabled: o = !1 }) {
1640
- const { active: s, onChange: l, variant: c } = H(), { stretch: d } = ee(se), f = s === e, m = "inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none", p = "opacity-40 cursor-not-allowed pointer-events-none", u = d && c !== "vertical" ? "flex-1 justify-center" : "", h = {
1641
- default: f ? "bg-white text-on-surface shadow-sm rounded-md px-4 py-2" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2",
1642
- underline: f ? "text-zeo-orange border-b-2 border-zeo-orange px-4 py-2.5 -mb-px" : "text-on-surface-variant hover:text-on-surface border-b-2 border-transparent px-4 py-2.5 -mb-px",
1643
- vertical: f ? "bg-white text-on-surface shadow-sm rounded-md px-4 py-2 w-full" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2 w-full"
1738
+ function cr({ value: e, label: r, icon: n, badge: o, disabled: a = !1 }) {
1739
+ const { active: s, onChange: l, variant: c } = q(), { stretch: d } = E(ce), h = s === e, f = "inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none", p = "opacity-40 cursor-not-allowed pointer-events-none", u = d && c !== "vertical" ? "flex-1 justify-center" : "", m = {
1740
+ default: h ? "bg-white dark:bg-chip text-on-surface shadow-sm rounded-md px-4 py-2" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2",
1741
+ underline: h ? "text-zeo-orange border-b-2 border-zeo-orange px-4 py-2.5 -mb-px" : "text-on-surface-variant hover:text-on-surface border-b-2 border-transparent px-4 py-2.5 -mb-px",
1742
+ vertical: h ? "bg-white dark:bg-chip text-on-surface shadow-sm rounded-md px-4 py-2 w-full" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2 w-full"
1644
1743
  }[c];
1645
1744
  return /* @__PURE__ */ i(
1646
1745
  "button",
1647
1746
  {
1648
1747
  role: "tab",
1649
- "aria-selected": f,
1650
- "aria-disabled": o,
1651
- disabled: o,
1652
- onClick: () => !o && l(e),
1653
- className: [m, h, u, o ? p : ""].filter(Boolean).join(" "),
1748
+ "aria-selected": h,
1749
+ "aria-disabled": a,
1750
+ disabled: a,
1751
+ onClick: () => !a && l(e),
1752
+ className: [f, m, u, a ? p : ""].filter(Boolean).join(" "),
1654
1753
  children: [
1655
- r && /* @__PURE__ */ t(
1754
+ n && /* @__PURE__ */ t(
1656
1755
  "span",
1657
1756
  {
1658
1757
  className: "material-symbols-outlined text-[18px]",
1659
- style: f ? { fontVariationSettings: "'FILL' 1" } : void 0,
1660
- children: r
1758
+ style: h ? { fontVariationSettings: "'FILL' 1" } : void 0,
1759
+ children: n
1661
1760
  }
1662
1761
  ),
1663
- n,
1664
- a !== void 0 && /* @__PURE__ */ t(
1762
+ r,
1763
+ o !== void 0 && /* @__PURE__ */ t(
1665
1764
  "span",
1666
1765
  {
1667
- className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${f ? "bg-zeo-orange text-white" : "bg-surface-container-high text-on-surface-variant"}`,
1668
- children: a
1766
+ className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${h ? "bg-zeo-orange text-white" : "bg-surface-container-high text-on-surface-variant"}`,
1767
+ children: o
1669
1768
  }
1670
1769
  )
1671
1770
  ]
1672
1771
  }
1673
1772
  );
1674
1773
  }
1675
- function Ft({ value: e, children: n, className: r = "", stretch: a = !1 }) {
1676
- const { active: o } = H();
1677
- return o !== e ? null : /* @__PURE__ */ t(
1774
+ function dr({ value: e, children: r, className: n = "", stretch: o = !1 }) {
1775
+ const { active: a } = q();
1776
+ return a !== e ? null : /* @__PURE__ */ t(
1678
1777
  "div",
1679
1778
  {
1680
1779
  role: "tabpanel",
1681
- className: [a ? "flex-1" : "", r].filter(Boolean).join(" "),
1682
- children: n
1780
+ className: [o ? "flex-1" : "", n].filter(Boolean).join(" "),
1781
+ children: r
1683
1782
  }
1684
1783
  );
1685
1784
  }
1686
- const Ye = {
1785
+ const at = {
1687
1786
  top: {
1688
1787
  wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
1689
1788
  arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
@@ -1700,21 +1799,21 @@ const Ye = {
1700
1799
  wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
1701
1800
  arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
1702
1801
  }
1703
- }, Pe = {
1704
- dark: { tooltip: "bg-slate-800 text-white", arrow: "border-t-slate-800 border-r-slate-800 border-b-slate-800 border-l-slate-800" },
1705
- light: { tooltip: "bg-white text-on-surface border border-surface-container-high shadow-theme-lg", arrow: "border-t-white border-r-white border-b-white border-l-white" }
1802
+ }, st = {
1803
+ dark: { tooltip: "bg-tooltip text-white", arrow: "border-t-tooltip border-r-tooltip border-b-tooltip border-l-tooltip" },
1804
+ light: { tooltip: "bg-surface-container-lowest text-on-surface border border-surface-container-high shadow-theme-lg", arrow: "border-t-surface-container-lowest border-r-surface-container-lowest border-b-surface-container-lowest border-l-surface-container-lowest" }
1706
1805
  };
1707
- function Rt({
1806
+ function ur({
1708
1807
  content: e,
1709
- position: n = "top",
1710
- variant: r = "dark",
1711
- children: a,
1712
- className: o = "",
1808
+ position: r = "top",
1809
+ variant: n = "dark",
1810
+ children: o,
1811
+ className: a = "",
1713
1812
  ...s
1714
1813
  }) {
1715
- const l = Ye[n], c = Pe[r];
1716
- return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
1717
- a,
1814
+ const l = at[r], c = st[n];
1815
+ return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", a].filter(Boolean).join(" "), ...s, children: [
1816
+ o,
1718
1817
  /* @__PURE__ */ i(
1719
1818
  "div",
1720
1819
  {
@@ -1735,56 +1834,81 @@ function Rt({
1735
1834
  ] });
1736
1835
  }
1737
1836
  export {
1738
- rt as Alert,
1739
- vt as AppNavbar,
1740
- bt as AppShellLayout,
1741
- gt as AppSidebar,
1742
- Z as Avatar,
1743
- at as Badge,
1744
- ot as Breadcrumb,
1745
- Le as Button,
1746
- st as ButtonGroup,
1747
- it as Card,
1748
- ct as CardFooter,
1749
- lt as CardHeader,
1750
- Ae as Checkbox,
1751
- dt as Dropdown,
1752
- jt as HelpMenu,
1837
+ ut as Alert,
1838
+ Ft as AppNavbar,
1839
+ Dt as AppShellLayout,
1840
+ Ot as AppSidebar,
1841
+ X as Avatar,
1842
+ ht as Badge,
1843
+ kt as BarraMacicaIcon,
1844
+ ft as Breadcrumb,
1845
+ ze as Button,
1846
+ pt as ButtonGroup,
1847
+ mt as Card,
1848
+ bt as CardFooter,
1849
+ xt as CardHeader,
1850
+ Se as Checkbox,
1851
+ gt as Dropdown,
1852
+ Ct as DuplaTIcon,
1853
+ Yt as HelpMenu,
1753
1854
  k as Icon,
1754
- De as Input,
1755
- Ct as MODULE_CATALOG,
1756
- ut as Modal,
1757
- mt as ModalBody,
1758
- pt as ModalFooter,
1759
- ft as ModalHeader,
1760
- re as NavbarIconButton,
1761
- yt as NavbarSearch,
1762
- wt as NavbarTitle,
1763
- Nt as NotificationsBell,
1764
- ht as Pagination,
1765
- Re as PosteIcon,
1766
- xt as ProgressBar,
1767
- Se as RadierIcon,
1768
- Ee as Radio,
1769
- Me as Select,
1770
- ne as SidebarItem,
1771
- Oe as SidebarSection,
1772
- Lt as Spinner,
1773
- Te as Switch,
1774
- St as Tab,
1775
- Tt as TabList,
1776
- Ft as TabPanel,
1777
- zt as Table,
1778
- Mt as TableBody,
1779
- At as TableCell,
1780
- _t as TableHead,
1781
- It as TableHeaderCell,
1782
- $t as TableRow,
1783
- Et as Tabs,
1784
- $e as Textarea,
1785
- Rt as Tooltip,
1786
- Fe as TubulaoIcon,
1787
- kt as UserMenu,
1788
- Bt as resolveModuleAccess,
1789
- ae as useDismiss
1855
+ Ue as Input,
1856
+ Bt as LinhaL1Icon,
1857
+ jt as LinhaLIcon,
1858
+ Lt as LinhaTIcon,
1859
+ Mt as LinhaTsIcon,
1860
+ Jt as MODULE_CATALOG,
1861
+ Et as Modal,
1862
+ St as ModalBody,
1863
+ Rt as ModalFooter,
1864
+ Wt as ModalHeader,
1865
+ se as NavbarIconButton,
1866
+ Ut as NavbarSearch,
1867
+ Kt as NavbarTitle,
1868
+ Gt as NotificationsBell,
1869
+ Nt as OmegaIcon,
1870
+ Ht as Pagination,
1871
+ yt as PerfilIIcon,
1872
+ vt as PerfilLIcon,
1873
+ wt as PerfilUIcon,
1874
+ Oe as PosteIcon,
1875
+ Vt as ProgressBar,
1876
+ _t as PuncaoBordaIcon,
1877
+ $t as PuncaoCantoIcon,
1878
+ At as PuncaoCircularIcon,
1879
+ zt as PuncaoInternoIcon,
1880
+ Ve as RadierIcon,
1881
+ Re as Radio,
1882
+ Ae as Select,
1883
+ ae as SidebarItem,
1884
+ Ye as SidebarSection,
1885
+ er as Spinner,
1886
+ He as Switch,
1887
+ K as THEME_ATTRIBUTE,
1888
+ qt as THEME_INIT_SCRIPT,
1889
+ F as THEME_STORAGE_KEY,
1890
+ cr as Tab,
1891
+ lr as TabList,
1892
+ dr as TabPanel,
1893
+ tr as Table,
1894
+ nr as TableBody,
1895
+ sr as TableCell,
1896
+ rr as TableHead,
1897
+ ar as TableHeaderCell,
1898
+ or as TableRow,
1899
+ ir as Tabs,
1900
+ Ee as Textarea,
1901
+ Pt as ThemeProvider,
1902
+ ur as Tooltip,
1903
+ It as TuboRedondoIcon,
1904
+ Tt as TuboRetangularIcon,
1905
+ De as TubulaoIcon,
1906
+ Qt as UserMenu,
1907
+ Xe as applyTheme,
1908
+ pr as colorTokens,
1909
+ Je as localStorageThemeStorage,
1910
+ Xt as resolveModuleAccess,
1911
+ mr as shadowTokens,
1912
+ ie as useDismiss,
1913
+ Zt as useTheme
1790
1914
  };