@zeo-app/design-system 0.4.0 → 0.5.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 B, useState as k, useRef as M, useCallback as j, useLayoutEffect as xe, useEffect as C, useId as be, createContext as G, useMemo as ge, useContext as E } from "react";
3
+ import { createPortal as we } from "react-dom";
4
+ import { a as U, T as W } from "./tokens-CaVTghf2.js";
5
+ import { c as Xt, s as Pt } from "./tokens-CaVTghf2.js";
6
+ const ve = {
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
+ title: r,
31
+ children: n,
30
32
  onClose: a,
31
33
  icon: o,
32
34
  className: s = "",
33
35
  ...l
34
36
  }) {
35
- const c = xe[e], d = o ?? c.defaultIcon;
37
+ const c = ve[e], d = o ?? c.defaultIcon;
36
38
  return /* @__PURE__ */ i(
37
39
  "div",
38
40
  {
@@ -46,8 +48,8 @@ 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
54
  a && /* @__PURE__ */ t(
53
55
  "button",
@@ -62,42 +64,42 @@ 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
+ }, Ne = {
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
+ }, ke = {
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 je(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 Ce(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 P({
98
100
  src: e,
99
- alt: n = "",
100
- name: r,
101
+ alt: r = "",
102
+ name: n,
101
103
  size: a = "md",
102
104
  status: o,
103
105
  className: s = "",
@@ -109,53 +111,53 @@ 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[a],
115
+ !e && n ? Ce(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 ? je(n) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
123
125
  }
124
126
  ),
125
127
  o && /* @__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
+ Ne[a],
133
+ ke[o]
132
134
  ].filter(Boolean).join(" ")
133
135
  }
134
136
  )
135
137
  ] });
136
138
  }
137
- const Ne = {
139
+ const Be = {
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
+ }, ze = {
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
+ }, Le = {
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 ft({
156
158
  variant: e = "default",
157
- size: n = "md",
158
- dot: r = !1,
159
+ size: r = "md",
160
+ dot: n = !1,
159
161
  icon: a,
160
162
  children: o,
161
163
  className: s = "",
@@ -166,21 +168,21 @@ function at({
166
168
  {
167
169
  className: [
168
170
  "inline-flex items-center font-medium rounded-full",
169
- Ne[e],
170
- je[n],
171
+ Be[e],
172
+ Le[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
+ n && /* @__PURE__ */ t("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${ze[e]}` }),
178
+ a && !n && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[12px]", children: a }),
177
179
  o
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
+ function mt({ 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((a, o) => {
184
186
  const s = o === e.length - 1;
185
187
  return /* @__PURE__ */ i("li", { className: "flex items-center gap-1.5", children: [
186
188
  o > 0 && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
@@ -208,25 +210,25 @@ function ot({ items: e, className: n = "", ...r }) {
208
210
  ] }, o);
209
211
  }) }) });
210
212
  }
211
- const Ce = {
213
+ const _e = {
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
+ }, K = {
222
224
  sm: "text-[16px]",
223
225
  md: "text-[18px]",
224
226
  lg: "text-[20px]"
225
- }, Le = C(
227
+ }, Me = B(
226
228
  ({
227
229
  variant: e = "primary",
228
- size: n = "md",
229
- loading: r = !1,
230
+ size: r = "md",
231
+ loading: n = !1,
230
232
  iconLeft: a,
231
233
  iconRight: o,
232
234
  fullWidth: s = !1,
@@ -238,61 +240,61 @@ const Ce = {
238
240
  "button",
239
241
  {
240
242
  ref: m,
241
- disabled: l || r,
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
+ _e[e],
249
+ Te[r],
248
250
  s ? "w-full" : "",
249
251
  d
250
252
  ].filter(Boolean).join(" "),
251
253
  ...f,
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 ${K[r]}`,
257
259
  children: "progress_activity"
258
260
  }
259
- ) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: a }),
261
+ ) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${K[r]}`, children: a }),
260
262
  c,
261
- !r && o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: o })
263
+ !n && o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${K[r]}`, children: o })
262
264
  ]
263
265
  }
264
266
  )
265
267
  );
266
- Le.displayName = "Button";
267
- function st({ children: e, attached: n = !1, className: r = "", ...a }) {
268
+ Me.displayName = "Button";
269
+ function pt({ children: e, attached: r = !1, className: n = "", ...a }) {
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
279
  ...a,
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 Ie = {
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 ht({
293
295
  variant: e = "elevated",
294
- padding: n = "md",
295
- children: r,
296
+ padding: r = "md",
297
+ children: n,
296
298
  className: a = "",
297
299
  ...o
298
300
  }) {
@@ -301,18 +303,18 @@ function it({
301
303
  {
302
304
  className: [
303
305
  "rounded-xl overflow-hidden",
304
- ze[e],
306
+ Ie[e],
305
307
  a
306
308
  ].filter(Boolean).join(" "),
307
309
  ...o,
308
- children: /* @__PURE__ */ t("div", { className: _e[n], children: r })
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
+ subtitle: r,
317
+ action: n,
316
318
  icon: a,
317
319
  className: o = "",
318
320
  ...s
@@ -327,68 +329,68 @@ function lt({
327
329
  a && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: a }),
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;
350
+ const $ = 8, ee = 4;
351
+ function gt({ trigger: e, items: r, align: n = "right", className: a = "", ...o }) {
352
+ const [s, l] = k(!1), [c, d] = k(null), f = M(null), m = M(null), p = j(() => {
353
+ var T;
352
354
  const u = f.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 h = u.getBoundingClientRect(), x = (T = m.current) == null ? void 0 : T.getBoundingClientRect(), w = (x == null ? void 0 : x.width) ?? 180, b = (x == null ? void 0 : x.height) ?? 0, v = window.innerHeight - h.bottom, y = h.top, z = v < b + $ && y > v ? h.top - b - ee : h.bottom + ee, S = n === "right" ? h.right - w : h.left, R = window.innerWidth - w - $, F = Math.min(Math.max(S, $), Math.max(R, $));
357
+ d({ top: z, left: F });
358
+ }, [n]);
359
+ return xe(() => {
358
360
  s && p();
359
- }, [s, p]), z(() => {
361
+ }, [s, p]), C(() => {
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(() => {
367
+ }, [s, p]), C(() => {
366
368
  const u = (h) => {
367
- 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);
369
- !v && !b && l(!1);
369
+ var v, y;
370
+ const x = h.target, w = (v = f.current) == null ? void 0 : v.contains(x), b = (y = m.current) == null ? void 0 : y.contains(x);
371
+ !w && !b && l(!1);
370
372
  };
371
373
  return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
372
- }, []), z(() => {
374
+ }, []), C(() => {
373
375
  const u = (h) => {
374
376
  h.key === "Escape" && l(!1);
375
377
  };
376
378
  return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
377
379
  }, []), /* @__PURE__ */ i("div", { ref: f, className: ["relative inline-block", a].filter(Boolean).join(" "), ...o, children: [
378
380
  /* @__PURE__ */ t("div", { onClick: () => l((u) => !u), children: e }),
379
- s && he(
381
+ s && we(
380
382
  /* @__PURE__ */ t(
381
383
  "div",
382
384
  {
383
385
  ref: m,
384
- className: "fixed z-[100] min-w-[180px] bg-white border border-surface-container-high rounded-xl shadow-theme-lg py-1",
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, h) => /* @__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: [
@@ -417,8 +419,8 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
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 Ae = B(
423
+ ({ label: e, hint: r, error: n, options: a, placeholder: o, disabled: s, className: l = "", id: c, ...d }, f) => {
422
424
  const m = 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
426
  e && /* @__PURE__ */ t("label", { htmlFor: m, className: "text-sm font-medium text-on-surface", children: e }),
@@ -430,9 +432,9 @@ const Me = C(
430
432
  id: m,
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(" "),
@@ -445,17 +447,17 @@ const Me = C(
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) => {
458
+ Ae.displayName = "Select";
459
+ const Ee = B(
460
+ ({ label: e, hint: r, error: n, disabled: a, className: o = "", id: s, rows: l = 4, ...c }, d) => {
459
461
  const f = 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
463
  e && /* @__PURE__ */ t("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
@@ -467,31 +469,31 @@ const $e = C(
467
469
  rows: l,
468
470
  disabled: a,
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
477
  o
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 Se = {
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
+ }, Re = B(
496
+ ({ label: e, description: r, error: n, disabled: a, className: o = "", id: s, shape: l = "square", color: c = "#FF6B00", ...d }, f) => {
495
497
  const m = 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(
@@ -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
+ Se[l]
529
531
  ].filter(Boolean).join(" "),
530
532
  style: { "--cb-color": c }
531
533
  }
@@ -554,21 +556,21 @@ 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) => {
571
+ Re.displayName = "Checkbox";
572
+ const Fe = B(
573
+ ({ label: e, description: r, disabled: n, className: a = "", id: o, ...s }, l) => {
572
574
  const c = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
573
575
  return /* @__PURE__ */ i(
574
576
  "label",
@@ -576,7 +578,7 @@ const Ee = C(
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,7 +587,7 @@ 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",
@@ -597,16 +599,16 @@ const Ee = C(
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) => {
609
+ Fe.displayName = "Radio";
610
+ const Ve = B(
611
+ ({ label: e, description: r, disabled: n, className: a = "", id: o, ...s }, l) => {
610
612
  const c = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
611
613
  return /* @__PURE__ */ i(
612
614
  "label",
@@ -614,7 +616,7 @@ const Te = C(
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,23 +636,23 @@ 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
+ Ve.displayName = "Switch";
647
+ function N({ name: e, size: r = 20, fill: n = !1, className: a = "", style: o, ...s }) {
646
648
  return /* @__PURE__ */ t(
647
649
  "span",
648
650
  {
649
651
  ...s,
650
652
  className: `material-symbols-outlined leading-none select-none ${a}`.trim(),
651
653
  style: {
652
- fontSize: n,
653
- fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
654
+ fontSize: r,
655
+ fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
654
656
  ...o
655
657
  },
656
658
  "aria-hidden": "true",
@@ -658,7 +660,7 @@ function k({ name: e, size: n = 20, fill: r = !1, className: a = "", style: o, .
658
660
  }
659
661
  );
660
662
  }
661
- const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
663
+ const De = ({ 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
+ ), He = ({ 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
+ ), Ke = ({ 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,25 +724,25 @@ 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
+ ), Ue = {
726
728
  sm: "px-3 py-1.5 text-sm h-8",
727
729
  md: "px-3 py-2 text-sm h-10",
728
730
  lg: "px-4 py-2.5 text-base h-11"
729
- }, J = {
731
+ }, te = {
730
732
  sm: "text-[16px]",
731
733
  md: "text-[18px]",
732
734
  lg: "text-[20px]"
733
735
  };
734
- function Ke(e, n, r) {
736
+ function We(e, r, n) {
735
737
  if (e === "" || e === void 0 || e === null) return "";
736
- const a = Number(e).toFixed(n);
737
- return r ? `${a} ${r}` : a;
738
+ const a = Number(e).toFixed(r);
739
+ return n ? `${a} ${n}` : a;
738
740
  }
739
- const De = C(
741
+ const Ge = B(
740
742
  ({
741
743
  label: e,
742
- hint: n,
743
- error: r,
744
+ hint: r,
745
+ error: n,
744
746
  inputSize: a = "md",
745
747
  iconLeft: o,
746
748
  iconRight: s,
@@ -753,34 +755,34 @@ const De = C(
753
755
  onValueChange: u,
754
756
  value: h,
755
757
  defaultValue: x,
756
- type: v,
758
+ type: w,
757
759
  step: b,
758
- inputMode: w,
760
+ inputMode: v,
759
761
  onChange: y,
760
762
  onFocus: _,
761
- onBlur: B,
762
- ...T
763
- }, 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(
763
+ onBlur: z,
764
+ ...S
765
+ }, R) => {
766
+ const F = be(), T = f ?? (e ? e.toLowerCase().replace(/\s+/g, "-") : F), g = m !== void 0, V = p ?? 0, D = g && h !== void 0, [de, ue] = k(
765
767
  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(
768
+ ), [Z, Q] = k(!1), [H, Y] = k(""), I = D ? h : de, fe = g ? Z ? H : We(I, V, m ?? "") : h, me = j(
767
769
  (L) => {
768
- g && (W(!0), G(I === "" ? "" : String(I))), _ == null || _(L);
770
+ g && (Q(!0), Y(I === "" ? "" : String(I))), _ == null || _(L);
769
771
  },
770
772
  [g, I, _]
771
- ), ue = j(
773
+ ), pe = j(
772
774
  (L) => {
773
775
  if (g) {
774
- W(!1);
775
- const q = parseFloat(K.replace(",", ".")), O = isNaN(q) ? "" : q;
776
- V || le(O), u == null || u(O);
776
+ Q(!1);
777
+ const J = parseFloat(H.replace(",", ".")), X = isNaN(J) ? "" : J;
778
+ D || ue(X), u == null || u(X);
777
779
  }
778
- B == null || B(L);
780
+ z == null || z(L);
779
781
  },
780
- [g, K, V, u, B]
781
- ), fe = j(
782
+ [g, H, D, u, z]
783
+ ), he = j(
782
784
  (L) => {
783
- g && G(L.target.value), y == null || y(L);
785
+ g && Y(L.target.value), y == null || y(L);
784
786
  },
785
787
  [g, y]
786
788
  );
@@ -788,7 +790,7 @@ const De = C(
788
790
  e && /* @__PURE__ */ t(
789
791
  "label",
790
792
  {
791
- htmlFor: M,
793
+ htmlFor: T,
792
794
  className: "text-sm font-medium text-on-surface",
793
795
  children: e
794
796
  }
@@ -797,37 +799,37 @@ const De = C(
797
799
  o && /* @__PURE__ */ t(
798
800
  "span",
799
801
  {
800
- className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${J[a]}`,
802
+ className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${te[a]}`,
801
803
  children: o
802
804
  }
803
805
  ),
804
806
  /* @__PURE__ */ t(
805
807
  "input",
806
808
  {
807
- ref: S,
808
- id: M,
809
+ ref: R,
810
+ id: T,
809
811
  disabled: c,
810
- type: g ? U ? "number" : "text" : v,
811
- inputMode: g ? "decimal" : w,
812
- value: g ? ce : h,
812
+ type: g ? Z ? "number" : "text" : w,
813
+ inputMode: g ? "decimal" : v,
814
+ value: g ? fe : h,
813
815
  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,
816
+ step: g ? b ?? (V > 0 ? Math.pow(10, -V) : 1) : b,
817
+ onFocus: me,
818
+ onBlur: pe,
819
+ onChange: he,
818
820
  className: [
819
- "w-full bg-white border rounded transition-all duration-200",
820
- "text-on-surface placeholder:text-on-surface-variant",
821
+ "w-full bg-page border rounded transition-all duration-200",
822
+ "text-on-surface placeholder:text-on-surface-variant dark:placeholder:text-content-disabled",
821
823
  "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",
824
+ n ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
823
825
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
824
826
  g ? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" : "",
825
- Ve[a],
827
+ Ue[a],
826
828
  o ? "pl-9" : "",
827
829
  s ? "pr-9" : "",
828
830
  d
829
831
  ].filter(Boolean).join(" "),
830
- ...T
832
+ ...S
831
833
  }
832
834
  ),
833
835
  s && /* @__PURE__ */ t(
@@ -835,7 +837,7 @@ const De = C(
835
837
  {
836
838
  className: [
837
839
  "material-symbols-outlined absolute right-3 text-on-surface-variant",
838
- J[a],
840
+ te[a],
839
841
  l ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
840
842
  ].filter(Boolean).join(" "),
841
843
  onClick: l,
@@ -843,30 +845,30 @@ const De = C(
843
845
  }
844
846
  )
845
847
  ] }),
846
- r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
848
+ n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
847
849
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
848
- r
850
+ n
849
851
  ] }),
850
- !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
852
+ !n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
851
853
  ] });
852
854
  }
853
855
  );
854
- De.displayName = "Input";
855
- const He = {
856
+ Ge.displayName = "Input";
857
+ const Oe = {
856
858
  sm: "max-w-sm",
857
859
  md: "max-w-md",
858
860
  lg: "max-w-lg",
859
861
  xl: "max-w-2xl",
860
862
  full: "max-w-[calc(100vw-2rem)]"
861
863
  };
862
- function ut({ open: e, onClose: n, size: r = "md", children: a }) {
863
- return z(() => {
864
+ function wt({ open: e, onClose: r, size: n = "md", children: a }) {
865
+ return C(() => {
864
866
  if (!e) return;
865
867
  const o = (s) => {
866
- s.key === "Escape" && n();
868
+ s.key === "Escape" && r();
867
869
  };
868
870
  return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
869
- }, [e, n]), e ? /* @__PURE__ */ i(
871
+ }, [e, r]), e ? /* @__PURE__ */ i(
870
872
  "div",
871
873
  {
872
874
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
@@ -876,8 +878,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
876
878
  /* @__PURE__ */ t(
877
879
  "div",
878
880
  {
879
- className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
880
- onClick: n,
881
+ className: "absolute inset-0 bg-black/50 dark:bg-scrim/60 backdrop-blur-sm",
882
+ onClick: r,
881
883
  "aria-hidden": "true"
882
884
  }
883
885
  ),
@@ -885,8 +887,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
885
887
  "div",
886
888
  {
887
889
  className: [
888
- "relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
889
- He[r]
890
+ "relative w-full bg-surface-container-lowest rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
891
+ Oe[n]
890
892
  ].filter(Boolean).join(" "),
891
893
  children: a
892
894
  }
@@ -895,7 +897,7 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
895
897
  }
896
898
  ) : null;
897
899
  }
898
- function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
900
+ function vt({ title: e, subtitle: r, onClose: n, className: a = "", ...o }) {
899
901
  return /* @__PURE__ */ i(
900
902
  "div",
901
903
  {
@@ -904,12 +906,12 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
904
906
  children: [
905
907
  /* @__PURE__ */ i("div", { children: [
906
908
  /* @__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 })
909
+ r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
908
910
  ] }),
909
- r && /* @__PURE__ */ t(
911
+ n && /* @__PURE__ */ t(
910
912
  "button",
911
913
  {
912
- onClick: r,
914
+ onClick: n,
913
915
  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
916
  "aria-label": "Fechar modal",
915
917
  children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
@@ -919,50 +921,50 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
919
921
  }
920
922
  );
921
923
  }
922
- function mt({ children: e, className: n = "", ...r }) {
924
+ function yt({ children: e, className: r = "", ...n }) {
923
925
  return /* @__PURE__ */ t(
924
926
  "div",
925
927
  {
926
- className: ["p-6 overflow-y-auto flex-1", n].filter(Boolean).join(" "),
927
- ...r,
928
+ className: ["p-6 overflow-y-auto flex-1", r].filter(Boolean).join(" "),
929
+ ...n,
928
930
  children: e
929
931
  }
930
932
  );
931
933
  }
932
- function pt({ children: e, className: n = "", ...r }) {
934
+ function Nt({ children: e, className: r = "", ...n }) {
933
935
  return /* @__PURE__ */ t(
934
936
  "div",
935
937
  {
936
938
  className: [
937
939
  "flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
938
- n
940
+ r
939
941
  ].filter(Boolean).join(" "),
940
- ...r,
942
+ ...n,
941
943
  children: e
942
944
  }
943
945
  );
944
946
  }
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];
947
+ function qe(e, r) {
948
+ return r <= 7 ? Array.from({ length: r }, (n, a) => a + 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
949
  }
948
- function ht({
950
+ function kt({
949
951
  currentPage: e,
950
- totalPages: n,
951
- totalItems: r,
952
+ totalPages: r,
953
+ totalItems: n,
952
954
  itemsPerPage: a = 10,
953
955
  onPageChange: o,
954
956
  variant: s = "full",
955
957
  className: l = "",
956
958
  ...c
957
959
  }) {
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`;
960
+ const d = qe(e, r), f = (e - 1) * a + 1, m = Math.min(e * a, n ?? 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", w = `${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
961
  return /* @__PURE__ */ i(
960
962
  "div",
961
963
  {
962
964
  className: ["flex items-center justify-between gap-4 flex-wrap", l].filter(Boolean).join(" "),
963
965
  ...c,
964
966
  children: [
965
- s === "full" && r !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
967
+ s === "full" && n !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
966
968
  "Mostrando ",
967
969
  /* @__PURE__ */ i("strong", { children: [
968
970
  f,
@@ -970,7 +972,7 @@ function ht({
970
972
  m
971
973
  ] }),
972
974
  " de ",
973
- /* @__PURE__ */ t("strong", { children: r }),
975
+ /* @__PURE__ */ t("strong", { children: n }),
974
976
  " itens"
975
977
  ] }),
976
978
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1 ml-auto", children: [
@@ -980,7 +982,7 @@ function ht({
980
982
  onClick: () => o(e - 1),
981
983
  disabled: e === 1,
982
984
  "aria-label": "Página anterior",
983
- className: s === "icon" ? u + " " + x : v,
985
+ className: s === "icon" ? u + " " + x : w,
984
986
  children: [
985
987
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
986
988
  s === "text" && "Anterior"
@@ -988,7 +990,7 @@ function ht({
988
990
  }
989
991
  ),
990
992
  d.map(
991
- (b, w) => b === "..." ? /* @__PURE__ */ t("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${w}`) : /* @__PURE__ */ t(
993
+ (b, v) => b === "..." ? /* @__PURE__ */ t("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${v}`) : /* @__PURE__ */ t(
992
994
  "button",
993
995
  {
994
996
  onClick: () => o(b),
@@ -1003,9 +1005,9 @@ function ht({
1003
1005
  "button",
1004
1006
  {
1005
1007
  onClick: () => o(e + 1),
1006
- disabled: e === n,
1008
+ disabled: e === r,
1007
1009
  "aria-label": "Próxima página",
1008
- className: s === "icon" ? u + " " + x : v,
1010
+ className: s === "icon" ? u + " " + x : w,
1009
1011
  children: [
1010
1012
  s === "text" && "Próxima",
1011
1013
  /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
@@ -1017,21 +1019,21 @@ function ht({
1017
1019
  }
1018
1020
  );
1019
1021
  }
1020
- const We = {
1022
+ const Ze = {
1021
1023
  xs: "h-1",
1022
1024
  sm: "h-1.5",
1023
1025
  md: "h-2",
1024
1026
  lg: "h-3"
1025
- }, Ge = {
1027
+ }, Qe = {
1026
1028
  primary: "bg-zeo-orange",
1027
1029
  success: "bg-green-500",
1028
1030
  warning: "bg-amber-400",
1029
1031
  danger: "bg-red-500"
1030
1032
  };
1031
- function xt({
1033
+ function jt({
1032
1034
  value: e,
1033
- max: n = 100,
1034
- size: r = "md",
1035
+ max: r = 100,
1036
+ size: n = "md",
1035
1037
  variant: a = "primary",
1036
1038
  label: o = "none",
1037
1039
  showPercent: s = !0,
@@ -1039,7 +1041,7 @@ function xt({
1039
1041
  className: c = "",
1040
1042
  ...d
1041
1043
  }) {
1042
- const f = Math.min(100, Math.max(0, e / n * 100)), m = `${Math.round(f)}%`;
1044
+ const f = Math.min(100, Math.max(0, e / r * 100)), m = `${Math.round(f)}%`;
1043
1045
  return /* @__PURE__ */ i("div", { className: ["flex flex-col gap-1.5", c].filter(Boolean).join(" "), ...d, children: [
1044
1046
  (l || o === "outside" && s) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
1045
1047
  l && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: l }),
@@ -1051,14 +1053,14 @@ function xt({
1051
1053
  role: "progressbar",
1052
1054
  "aria-valuenow": e,
1053
1055
  "aria-valuemin": 0,
1054
- "aria-valuemax": n,
1055
- className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", We[r]].join(" "),
1056
+ "aria-valuemax": r,
1057
+ className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", Ze[n]].join(" "),
1056
1058
  children: /* @__PURE__ */ t(
1057
1059
  "div",
1058
1060
  {
1059
1061
  className: [
1060
1062
  "h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
1061
- Ge[a]
1063
+ Qe[a]
1062
1064
  ].join(" "),
1063
1065
  style: { width: `${f}%` },
1064
1066
  children: o === "inside" && s && f >= 20 && /* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-white leading-none", children: m })
@@ -1068,20 +1070,20 @@ function xt({
1068
1070
  )
1069
1071
  ] });
1070
1072
  }
1071
- const X = (e, n) => typeof e == "function" ? e(n) : e;
1072
- function bt({
1073
+ const re = (e, r) => typeof e == "function" ? e(r) : e;
1074
+ function Ct({
1073
1075
  sidebar: e,
1074
- navbar: n,
1075
- children: r,
1076
+ navbar: r,
1077
+ children: n,
1076
1078
  defaultExpanded: a = !1,
1077
1079
  isExpanded: o,
1078
1080
  onToggle: s
1079
1081
  }) {
1080
- const [l, c] = N(a), d = o ?? l, f = j(() => {
1082
+ const [l, c] = k(a), d = o ?? l, f = j(() => {
1081
1083
  o === void 0 && c((p) => !p), s == null || s();
1082
1084
  }, [o, s]), m = { isExpanded: d, toggle: f };
1083
1085
  return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden", children: [
1084
- X(e, m),
1086
+ re(e, m),
1085
1087
  /* @__PURE__ */ i(
1086
1088
  "div",
1087
1089
  {
@@ -1090,21 +1092,21 @@ function bt({
1090
1092
  d ? "ml-sidebar-expanded" : "ml-sidebar-collapsed"
1091
1093
  ].join(" "),
1092
1094
  children: [
1093
- X(n, m),
1094
- /* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container", children: r })
1095
+ re(r, m),
1096
+ /* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container dark:bg-canvas", children: n })
1095
1097
  ]
1096
1098
  }
1097
1099
  )
1098
1100
  ] });
1099
1101
  }
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(
1102
+ const Ye = ({ href: e, className: r, children: n }) => /* @__PURE__ */ t("a", { href: e, className: r, children: n }), ae = "text-[10px] uppercase tracking-widest text-white/30 font-bold";
1103
+ function oe({ item: e, isActive: r, isExpanded: n, renderLink: a = Ye }) {
1104
+ const o = e.disabled || !e.href, s = !n || o && e.disabledReason, l = /* @__PURE__ */ i(
1103
1105
  "div",
1104
1106
  {
1105
1107
  className: [
1106
1108
  "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"
1109
+ r ? "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"
1108
1110
  ].join(" "),
1109
1111
  children: [
1110
1112
  e.icon,
@@ -1113,7 +1115,7 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1113
1115
  {
1114
1116
  className: [
1115
1117
  "text-sm font-medium whitespace-nowrap overflow-hidden transition-opacity duration-shell",
1116
- r ? "opacity-100" : "opacity-0 w-0"
1118
+ n ? "opacity-100" : "opacity-0 w-0"
1117
1119
  ].join(" "),
1118
1120
  children: e.label
1119
1121
  }
@@ -1123,14 +1125,14 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1123
1125
  {
1124
1126
  role: "tooltip",
1125
1127
  className: [
1126
- "absolute left-full ml-3 px-3 py-2 bg-white text-gray-700 text-sm font-medium",
1128
+ "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
1129
  "rounded-lg shadow-theme-lg whitespace-nowrap z-[200] pointer-events-none",
1128
1130
  "invisible opacity-0 transition-all duration-150",
1129
1131
  s && "group-hover:visible group-hover:opacity-100"
1130
1132
  ].filter(Boolean).join(" "),
1131
1133
  children: [
1132
1134
  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" })
1135
+ /* @__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
1136
  ]
1135
1137
  }
1136
1138
  )
@@ -1139,24 +1141,24 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
1139
1141
  );
1140
1142
  return o ? /* @__PURE__ */ t("div", { children: l }) : a({ item: e, href: e.href, className: "block no-underline", children: l });
1141
1143
  }
1142
- function Oe({ section: e, index: n = 0, activeId: r, isExpanded: a, renderLink: o }) {
1143
- return /* @__PURE__ */ i(Y, { children: [
1144
+ function Je({ section: e, index: r = 0, activeId: n, isExpanded: a, renderLink: o }) {
1145
+ return /* @__PURE__ */ i(ne, { children: [
1144
1146
  e.label && /* @__PURE__ */ t(
1145
1147
  "div",
1146
1148
  {
1147
1149
  className: [
1148
1150
  "overflow-hidden transition-all duration-shell px-3",
1149
1151
  a ? "h-6 opacity-100 mb-1" : "h-0 opacity-0",
1150
- n > 0 ? "mt-4" : ""
1152
+ r > 0 ? "mt-4" : ""
1151
1153
  ].join(" "),
1152
- children: /* @__PURE__ */ t("span", { className: te, children: e.label })
1154
+ children: /* @__PURE__ */ t("span", { className: ae, children: e.label })
1153
1155
  }
1154
1156
  ),
1155
1157
  e.items.map((s) => /* @__PURE__ */ t(
1156
- ne,
1158
+ oe,
1157
1159
  {
1158
1160
  item: s,
1159
- isActive: s.id === r,
1161
+ isActive: s.id === n,
1160
1162
  isExpanded: a,
1161
1163
  renderLink: o
1162
1164
  },
@@ -1164,7 +1166,7 @@ function Oe({ section: e, index: n = 0, activeId: r, isExpanded: a, renderLink:
1164
1166
  ))
1165
1167
  ] });
1166
1168
  }
1167
- function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o }) {
1169
+ function Bt({ sections: e, activeId: r, isExpanded: n, logo: a, renderLink: o }) {
1168
1170
  const s = e.filter((d) => d.placement !== "bottom"), l = e.filter((d) => d.placement === "bottom"), c = /* @__PURE__ */ t(
1169
1171
  "img",
1170
1172
  {
@@ -1172,7 +1174,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1172
1174
  alt: a.alt ?? "",
1173
1175
  className: [
1174
1176
  "flex-shrink-0",
1175
- r ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
1177
+ n ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
1176
1178
  ].join(" ")
1177
1179
  }
1178
1180
  );
@@ -1183,7 +1185,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1183
1185
  "fixed left-0 top-0 h-screen bg-sidebar flex flex-col z-[100]",
1184
1186
  "transition-[width] duration-shell ease-shell",
1185
1187
  "shadow-[40px_0_40px_0_rgba(0,0,0,0.04)]",
1186
- r ? "w-sidebar-expanded" : "w-sidebar-collapsed"
1188
+ n ? "w-sidebar-expanded" : "w-sidebar-collapsed"
1187
1189
  ].join(" "),
1188
1190
  children: [
1189
1191
  /* @__PURE__ */ t(
@@ -1191,18 +1193,18 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1191
1193
  {
1192
1194
  className: [
1193
1195
  "h-[88px] flex items-center flex-shrink-0",
1194
- r ? "px-6 justify-start" : "justify-center"
1196
+ n ? "px-6 justify-start" : "justify-center"
1195
1197
  ].join(" "),
1196
1198
  children: a.href ? /* @__PURE__ */ t("a", { href: a.href, "aria-label": a.alt, className: "flex-shrink-0", children: c }) : c
1197
1199
  }
1198
1200
  ),
1199
1201
  /* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d, f) => /* @__PURE__ */ t(
1200
- Oe,
1202
+ Je,
1201
1203
  {
1202
1204
  section: d,
1203
1205
  index: f,
1204
- activeId: n,
1205
- isExpanded: r,
1206
+ activeId: r,
1207
+ isExpanded: n,
1206
1208
  renderLink: o
1207
1209
  },
1208
1210
  d.id
@@ -1213,18 +1215,18 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1213
1215
  {
1214
1216
  className: [
1215
1217
  "px-6 mb-2 overflow-hidden transition-all duration-shell",
1216
- r ? "h-7 opacity-100" : "h-0 opacity-0"
1218
+ n ? "h-7 opacity-100" : "h-0 opacity-0"
1217
1219
  ].join(" "),
1218
- children: /* @__PURE__ */ t("span", { className: te, children: d.label })
1220
+ children: /* @__PURE__ */ t("span", { className: ae, children: d.label })
1219
1221
  }
1220
1222
  ),
1221
1223
  /* @__PURE__ */ t("div", { className: "border-t border-white/[0.06] mb-2" }),
1222
1224
  /* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((f) => /* @__PURE__ */ t(
1223
- ne,
1225
+ oe,
1224
1226
  {
1225
1227
  item: f,
1226
- isActive: f.id === n,
1227
- isExpanded: r,
1228
+ isActive: f.id === r,
1229
+ isExpanded: n,
1228
1230
  renderLink: o
1229
1231
  },
1230
1232
  f.id
@@ -1234,15 +1236,15 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
1234
1236
  }
1235
1237
  );
1236
1238
  }
1237
- function vt({
1239
+ function zt({
1238
1240
  onToggleMenu: e,
1239
- start: n,
1240
- search: r,
1241
+ start: r,
1242
+ search: n,
1241
1243
  actions: a,
1242
1244
  userMenu: o,
1243
1245
  toggleMenuLabel: s = "Alternar menu"
1244
1246
  }) {
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: [
1247
+ 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
1248
  /* @__PURE__ */ i("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
1247
1249
  /* @__PURE__ */ t(
1248
1250
  "button",
@@ -1251,11 +1253,11 @@ function vt({
1251
1253
  onClick: e,
1252
1254
  "aria-label": s,
1253
1255
  className: "flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors flex-shrink-0",
1254
- children: /* @__PURE__ */ t(k, { name: "menu", size: 20 })
1256
+ children: /* @__PURE__ */ t(N, { name: "menu", size: 20 })
1255
1257
  }
1256
1258
  ),
1257
- n,
1258
- r
1259
+ r,
1260
+ n
1259
1261
  ] }),
1260
1262
  (a || o) && /* @__PURE__ */ i("div", { className: "flex items-center gap-1 flex-shrink-0 ml-4", children: [
1261
1263
  a,
@@ -1264,18 +1266,18 @@ function vt({
1264
1266
  ] })
1265
1267
  ] });
1266
1268
  }
1267
- function wt({ module: e, project: n }) {
1269
+ function Lt({ module: e, project: r }) {
1268
1270
  return /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2 min-w-0", children: [
1269
1271
  /* @__PURE__ */ t("span", { className: "text-title-md font-bold text-on-surface whitespace-nowrap", children: e }),
1270
- n && /* @__PURE__ */ i(Y, { children: [
1272
+ r && /* @__PURE__ */ i(ne, { children: [
1271
1273
  /* @__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 })
1274
+ /* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children: r })
1273
1275
  ] })
1274
1276
  ] });
1275
1277
  }
1276
- function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShortcut: o = !1 }) {
1277
- const s = $(null);
1278
- return z(() => {
1278
+ function _t({ value: e, onChange: r, placeholder: n, shortcutHint: a, focusShortcut: o = !1 }) {
1279
+ const s = M(null);
1280
+ return C(() => {
1279
1281
  if (!o) return;
1280
1282
  const l = (c) => {
1281
1283
  var d;
@@ -1284,7 +1286,7 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
1284
1286
  return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
1285
1287
  }, [o]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
1286
1288
  /* @__PURE__ */ t(
1287
- k,
1289
+ N,
1288
1290
  {
1289
1291
  name: "search",
1290
1292
  size: 18,
@@ -1296,9 +1298,9 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
1296
1298
  {
1297
1299
  ref: s,
1298
1300
  value: e,
1299
- onChange: (l) => n(l.target.value),
1300
- placeholder: r,
1301
- "aria-label": r,
1301
+ onChange: (l) => r(l.target.value),
1302
+ placeholder: n,
1303
+ "aria-label": n,
1302
1304
  className: [
1303
1305
  "w-full h-9 pl-10 rounded-lg",
1304
1306
  a ? "pr-[90px]" : "pr-3",
@@ -1312,66 +1314,116 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
1312
1314
  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 })
1313
1315
  ] });
1314
1316
  }
1315
- function re({ icon: e, label: n, badge: r = !1, className: a = "", type: o = "button", ...s }) {
1317
+ function se({ icon: e, label: r, badge: n = !1, className: a = "", type: o = "button", ...s }) {
1316
1318
  return /* @__PURE__ */ i(
1317
1319
  "button",
1318
1320
  {
1319
1321
  ...s,
1320
1322
  type: o,
1321
- "aria-label": n,
1323
+ "aria-label": r,
1322
1324
  className: `relative flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors ${a}`.trim(),
1323
1325
  children: [
1324
1326
  e,
1325
- r && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
1327
+ n && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
1326
1328
  ]
1327
1329
  }
1328
1330
  );
1329
1331
  }
1330
- function Nt({ hasUnread: e = !1, count: n = 0, onClick: r, label: a = "Notificações" }) {
1332
+ function Tt({ hasUnread: e = !1, count: r = 0, onClick: n, label: a = "Notificações" }) {
1331
1333
  return /* @__PURE__ */ t(
1332
- re,
1334
+ se,
1333
1335
  {
1334
- icon: /* @__PURE__ */ t(k, { name: "notifications", size: 20 }),
1336
+ icon: /* @__PURE__ */ t(N, { name: "notifications", size: 20 }),
1335
1337
  label: a,
1336
- badge: e || n > 0,
1337
- onClick: r
1338
+ badge: e || r > 0,
1339
+ onClick: n
1338
1340
  }
1339
1341
  );
1340
1342
  }
1341
- function ae(e, n, r) {
1342
- z(() => {
1343
- if (!n) return;
1343
+ const Xe = {
1344
+ read: () => {
1345
+ try {
1346
+ const e = window.localStorage.getItem(U);
1347
+ return e === "dark" || e === "light" ? e : null;
1348
+ } catch {
1349
+ return null;
1350
+ }
1351
+ },
1352
+ write: (e) => {
1353
+ try {
1354
+ window.localStorage.setItem(U, e);
1355
+ } catch {
1356
+ return;
1357
+ }
1358
+ }
1359
+ }, Mt = `try{if(localStorage.getItem('${U}')==='dark')document.documentElement.setAttribute('${W}','dark')}catch(e){}`;
1360
+ function Pe(e, r = document.documentElement) {
1361
+ e === "dark" ? r.setAttribute(W, "dark") : r.removeAttribute(W);
1362
+ }
1363
+ const O = G(null);
1364
+ function It({
1365
+ children: e,
1366
+ defaultTheme: r = "light",
1367
+ storage: n = Xe
1368
+ }) {
1369
+ const [a, o] = k(() => n.read() ?? r);
1370
+ C(() => {
1371
+ Pe(a);
1372
+ }, [a]);
1373
+ const s = j(
1374
+ (d) => {
1375
+ n.write(d), o(d);
1376
+ },
1377
+ [n]
1378
+ ), l = j(() => s(a === "dark" ? "light" : "dark"), [s, a]), c = ge(
1379
+ () => ({ theme: a, isDark: a === "dark", setTheme: s, toggleTheme: l }),
1380
+ [a, s, l]
1381
+ );
1382
+ return /* @__PURE__ */ t(O.Provider, { value: c, children: e });
1383
+ }
1384
+ function et() {
1385
+ return E(O);
1386
+ }
1387
+ function $t() {
1388
+ const e = E(O);
1389
+ if (!e) throw new Error("useTheme precisa estar dentro de um ThemeProvider");
1390
+ return e;
1391
+ }
1392
+ function ie(e, r, n) {
1393
+ C(() => {
1394
+ if (!r) return;
1344
1395
  const a = (s) => {
1345
- s.key === "Escape" && r();
1396
+ s.key === "Escape" && n();
1346
1397
  }, o = (s) => {
1347
1398
  var l;
1348
- (l = e.current) != null && l.contains(s.target) || r();
1399
+ (l = e.current) != null && l.contains(s.target) || n();
1349
1400
  };
1350
1401
  return document.addEventListener("keydown", a), document.addEventListener("mousedown", o), () => {
1351
1402
  document.removeEventListener("keydown", a), document.removeEventListener("mousedown", o);
1352
1403
  };
1353
- }, [e, n, r]);
1404
+ }, [e, r, n]);
1354
1405
  }
1355
- const Ze = {
1406
+ const tt = {
1356
1407
  myAccount: "Minha Conta",
1357
1408
  logout: "Sair",
1409
+ darkMode: "Modo escuro",
1358
1410
  user: "Usuário"
1359
1411
  };
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: [
1412
+ function At({ name: e, email: r, shortName: n, profilePicUrl: a, onMyAccount: o, onLogout: s, labels: l }) {
1413
+ const c = { ...tt, ...l }, [d, f] = k(!1), m = M(null), p = et(), u = j(() => f(!1), []);
1414
+ return ie(m, d, u), /* @__PURE__ */ i("div", { ref: m, className: "relative flex items-center", children: [
1363
1415
  /* @__PURE__ */ i(
1364
1416
  "button",
1365
1417
  {
1366
1418
  type: "button",
1367
- onClick: () => f((u) => !u),
1419
+ onClick: () => f((h) => !h),
1368
1420
  "aria-haspopup": "true",
1369
1421
  "aria-expanded": d,
1370
1422
  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
1423
  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 }),
1374
- /* @__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 }) })
1424
+ n && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: n }),
1425
+ /* @__PURE__ */ t(P, { src: a, name: e, size: "sm", "aria-label": e || c.user }),
1426
+ /* @__PURE__ */ t("span", { className: `flex items-center transition-transform duration-200 ${d ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ t(N, { name: "expand_more", size: 13 }) })
1375
1427
  ]
1376
1428
  }
1377
1429
  ),
@@ -1382,10 +1434,10 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1382
1434
  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
1435
  children: [
1384
1436
  /* @__PURE__ */ i("div", { className: "flex items-center gap-3 p-4", children: [
1385
- /* @__PURE__ */ t(Z, { src: a, name: e, size: "sm" }),
1437
+ /* @__PURE__ */ t(P, { src: a, name: e, size: "sm" }),
1386
1438
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
1387
1439
  /* @__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 })
1440
+ /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children: r })
1389
1441
  ] })
1390
1442
  ] }),
1391
1443
  /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
@@ -1395,15 +1447,41 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1395
1447
  type: "button",
1396
1448
  role: "menuitem",
1397
1449
  onClick: () => {
1398
- p(), o();
1450
+ u(), o();
1399
1451
  },
1400
1452
  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
1453
  children: [
1402
- /* @__PURE__ */ t(k, { name: "person", size: 15 }),
1454
+ /* @__PURE__ */ t(N, { name: "person", size: 15 }),
1403
1455
  /* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.myAccount })
1404
1456
  ]
1405
1457
  }
1406
1458
  ),
1459
+ p && /* @__PURE__ */ i(
1460
+ "button",
1461
+ {
1462
+ type: "button",
1463
+ role: "menuitemcheckbox",
1464
+ "aria-checked": p.isDark,
1465
+ onClick: p.toggleTheme,
1466
+ 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",
1467
+ children: [
1468
+ /* @__PURE__ */ t(N, { name: "dark_mode", size: 15 }),
1469
+ /* @__PURE__ */ t("span", { className: "flex-1 text-sm font-medium", children: c.darkMode }),
1470
+ /* @__PURE__ */ t(
1471
+ "span",
1472
+ {
1473
+ className: `relative w-7 h-4 shrink-0 rounded-full transition-colors duration-150 ${p.isDark ? "bg-zeo-orange" : "bg-line-strong"}`,
1474
+ children: /* @__PURE__ */ t(
1475
+ "span",
1476
+ {
1477
+ 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"}`
1478
+ }
1479
+ )
1480
+ }
1481
+ )
1482
+ ]
1483
+ }
1484
+ ),
1407
1485
  /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
1408
1486
  /* @__PURE__ */ i(
1409
1487
  "button",
@@ -1411,11 +1489,11 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1411
1489
  type: "button",
1412
1490
  role: "menuitem",
1413
1491
  onClick: () => {
1414
- p(), s();
1492
+ u(), s();
1415
1493
  },
1416
1494
  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
1495
  children: [
1418
- /* @__PURE__ */ t(k, { name: "logout", size: 15 }),
1496
+ /* @__PURE__ */ t(N, { name: "logout", size: 15 }),
1419
1497
  /* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.logout })
1420
1498
  ]
1421
1499
  }
@@ -1425,21 +1503,21 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
1425
1503
  )
1426
1504
  ] });
1427
1505
  }
1428
- const Qe = {
1506
+ const rt = {
1429
1507
  help: "Ajuda",
1430
1508
  documentation: "Documentação",
1431
1509
  faq: "F.A.Q.",
1432
1510
  changelog: "Changelog",
1433
1511
  contactUs: "Contate-nos"
1434
1512
  };
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: [
1513
+ function Et({ labels: e, hrefs: r }) {
1514
+ const n = { ...rt, ...e }, a = M(null), [o, s] = k(!1), l = j(() => s(!1), []);
1515
+ return ie(a, o, l), /* @__PURE__ */ i("div", { ref: a, className: "relative", children: [
1438
1516
  /* @__PURE__ */ t(
1439
- re,
1517
+ se,
1440
1518
  {
1441
- icon: /* @__PURE__ */ t(k, { name: "help", size: 20 }),
1442
- label: r.help,
1519
+ icon: /* @__PURE__ */ t(N, { name: "help", size: 20 }),
1520
+ label: n.help,
1443
1521
  onClick: () => s((c) => !c),
1444
1522
  "aria-haspopup": "true",
1445
1523
  "aria-expanded": o
@@ -1451,57 +1529,57 @@ function jt({ labels: e, hrefs: n }) {
1451
1529
  role: "menu",
1452
1530
  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
1531
  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 }),
1532
+ /* @__PURE__ */ t(A, { icon: "description", label: n.documentation, href: r == null ? void 0 : r.documentation }),
1533
+ /* @__PURE__ */ t(A, { icon: "help_outline", label: n.faq, href: r == null ? void 0 : r.faq }),
1534
+ /* @__PURE__ */ t(A, { icon: "assignment", label: n.changelog, href: r == null ? void 0 : r.changelog }),
1457
1535
  /* @__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 })
1536
+ /* @__PURE__ */ t(A, { icon: "mail", label: n.contactUs, href: r == null ? void 0 : r.contactUs })
1459
1537
  ]
1460
1538
  }
1461
1539
  )
1462
1540
  ] });
1463
1541
  }
1464
- function E({ icon: e, label: n, href: r = "#" }) {
1542
+ function A({ icon: e, label: r, href: n = "#" }) {
1465
1543
  return /* @__PURE__ */ i(
1466
1544
  "a",
1467
1545
  {
1468
- href: r,
1546
+ href: n,
1469
1547
  role: "menuitem",
1470
1548
  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
1549
  children: [
1472
- /* @__PURE__ */ t(k, { name: e, size: 18, className: "opacity-70" }),
1473
- n
1550
+ /* @__PURE__ */ t(N, { name: e, size: 18, className: "opacity-70" }),
1551
+ r
1474
1552
  ]
1475
1553
  }
1476
1554
  );
1477
1555
  }
1478
- const Ct = [
1556
+ const St = [
1479
1557
  { id: "tower", status: "active", iconName: "cell_tower", labelKey: "modules.tower.title" },
1480
1558
  { id: "antennas", status: "active", iconName: "settings_input_antenna", labelKey: "modules.antennas.title" },
1481
1559
  { 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" },
1560
+ { id: "radier", status: "active", iconName: "layers", IconComponent: De, labelKey: "modules.radier.title" },
1561
+ { id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent: He, labelKey: "modules.caisson_foundation.title" },
1562
+ { id: "pole", status: "coming_soon", iconName: "fence", IconComponent: Ke, labelKey: "modules.pole.title" },
1485
1563
  { id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" }
1486
1564
  ];
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) }));
1565
+ function Rt(e, r, n) {
1566
+ return e.filter((a) => r.includes(a.id) || n.includes(a.id)).map((a) => ({ module: a, hasAccess: n.includes(a.id) }));
1489
1567
  }
1490
- const Je = {
1568
+ const nt = {
1491
1569
  xs: "w-3 h-3 border",
1492
1570
  sm: "w-4 h-4 border-2",
1493
1571
  md: "w-6 h-6 border-2",
1494
1572
  lg: "w-8 h-8 border-[3px]",
1495
1573
  xl: "w-12 h-12 border-4"
1496
- }, Xe = {
1497
- primary: "border-orange-200 border-t-zeo-orange",
1574
+ }, at = {
1575
+ primary: "border-orange-200 dark:border-zeo-orange/30 border-t-zeo-orange",
1498
1576
  secondary: "border-surface-container-high border-t-on-surface-variant",
1499
1577
  white: "border-white/30 border-t-white"
1500
1578
  };
1501
- function Lt({
1579
+ function Ft({
1502
1580
  size: e = "md",
1503
- variant: n = "primary",
1504
- label: r = "Carregando...",
1581
+ variant: r = "primary",
1582
+ label: n = "Carregando...",
1505
1583
  className: a = "",
1506
1584
  ...o
1507
1585
  }) {
@@ -1509,65 +1587,65 @@ function Lt({
1509
1587
  "span",
1510
1588
  {
1511
1589
  role: "status",
1512
- "aria-label": r,
1590
+ "aria-label": n,
1513
1591
  className: [
1514
1592
  "inline-block rounded-full animate-spin",
1515
- Je[e],
1516
- Xe[n],
1593
+ nt[e],
1594
+ at[r],
1517
1595
  a
1518
1596
  ].filter(Boolean).join(" "),
1519
1597
  ...o
1520
1598
  }
1521
1599
  );
1522
1600
  }
1523
- function zt({ children: e, className: n = "", ...r }) {
1601
+ function Vt({ children: e, className: r = "", ...n }) {
1524
1602
  return /* @__PURE__ */ t(
1525
1603
  "div",
1526
1604
  {
1527
- className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", n].filter(Boolean).join(" "),
1528
- ...r,
1605
+ className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", r].filter(Boolean).join(" "),
1606
+ ...n,
1529
1607
  children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: e })
1530
1608
  }
1531
1609
  );
1532
1610
  }
1533
- function _t({ children: e, className: n = "", ...r }) {
1611
+ function Dt({ children: e, className: r = "", ...n }) {
1534
1612
  return /* @__PURE__ */ t(
1535
1613
  "thead",
1536
1614
  {
1537
- className: ["bg-surface-container-low border-b border-surface-container-high", n].filter(Boolean).join(" "),
1538
- ...r,
1615
+ className: ["bg-surface-container-low border-b border-surface-container-high", r].filter(Boolean).join(" "),
1616
+ ...n,
1539
1617
  children: e
1540
1618
  }
1541
1619
  );
1542
1620
  }
1543
- function Mt({ children: e, className: n = "", ...r }) {
1621
+ function Ht({ children: e, className: r = "", ...n }) {
1544
1622
  return /* @__PURE__ */ t(
1545
1623
  "tbody",
1546
1624
  {
1547
- className: ["bg-white divide-y divide-surface-container-high", n].filter(Boolean).join(" "),
1548
- ...r,
1625
+ className: ["bg-surface-container-lowest divide-y divide-surface-container-high", r].filter(Boolean).join(" "),
1626
+ ...n,
1549
1627
  children: e
1550
1628
  }
1551
1629
  );
1552
1630
  }
1553
- function $t({ selected: e = !1, children: n, className: r = "", ...a }) {
1631
+ function Kt({ selected: e = !1, children: r, className: n = "", ...a }) {
1554
1632
  return /* @__PURE__ */ t(
1555
1633
  "tr",
1556
1634
  {
1557
1635
  className: [
1558
1636
  "hover:bg-surface-container-low transition-colors",
1559
- e ? "bg-orange-50/40" : "",
1560
- r
1637
+ e ? "bg-orange-50/40 dark:bg-zeo-orange/[0.12]" : "",
1638
+ n
1561
1639
  ].filter(Boolean).join(" "),
1562
1640
  ...a,
1563
- children: n
1641
+ children: r
1564
1642
  }
1565
1643
  );
1566
1644
  }
1567
- function It({
1645
+ function Ut({
1568
1646
  sortable: e = !1,
1569
- sorted: n = !1,
1570
- onSort: r,
1647
+ sorted: r = !1,
1648
+ onSort: n,
1571
1649
  children: a,
1572
1650
  className: o = "",
1573
1651
  ...s
@@ -1580,67 +1658,67 @@ function It({
1580
1658
  e ? "cursor-pointer hover:text-on-surface select-none" : "",
1581
1659
  o
1582
1660
  ].filter(Boolean).join(" "),
1583
- onClick: e ? r : void 0,
1661
+ onClick: e ? n : void 0,
1584
1662
  ...s,
1585
1663
  children: /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
1586
1664
  a,
1587
1665
  e && /* @__PURE__ */ t(
1588
1666
  "span",
1589
1667
  {
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"
1668
+ className: `material-symbols-outlined text-[14px] ${r ? "text-zeo-orange" : "opacity-40"}`,
1669
+ children: r === "asc" ? "arrow_upward" : r === "desc" ? "arrow_downward" : "unfold_more"
1592
1670
  }
1593
1671
  )
1594
1672
  ] })
1595
1673
  }
1596
1674
  );
1597
1675
  }
1598
- function At({ muted: e = !1, mono: n = !1, children: r, className: a = "", ...o }) {
1676
+ function Wt({ muted: e = !1, mono: r = !1, children: n, className: a = "", ...o }) {
1599
1677
  return /* @__PURE__ */ t(
1600
1678
  "td",
1601
1679
  {
1602
1680
  className: [
1603
1681
  "px-4 py-3",
1604
1682
  e ? "text-on-surface-variant" : "text-on-surface",
1605
- n ? "font-mono text-xs" : "",
1683
+ r ? "font-mono text-xs" : "",
1606
1684
  a
1607
1685
  ].filter(Boolean).join(" "),
1608
1686
  ...o,
1609
- children: r
1687
+ children: n
1610
1688
  }
1611
1689
  );
1612
1690
  }
1613
- const oe = P(null);
1614
- function H() {
1615
- const e = ee(oe);
1691
+ const le = G(null);
1692
+ function q() {
1693
+ const e = E(le);
1616
1694
  if (!e) throw new Error("Tab must be used inside Tabs");
1617
1695
  return e;
1618
1696
  }
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 }) });
1697
+ const ce = G({ stretch: !1 });
1698
+ function Gt({ value: e, onChange: r, variant: n = "default", children: a }) {
1699
+ 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: a }) });
1622
1700
  }
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",
1701
+ function Ot({ children: e, className: r = "", stretch: n = !1, ...a }) {
1702
+ const { variant: o } = q(), s = {
1703
+ 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
1704
  underline: "flex gap-0 border-b border-surface-container-high w-full",
1627
1705
  vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
1628
1706
  }[o];
1629
- return /* @__PURE__ */ t(se.Provider, { value: { stretch: r }, children: /* @__PURE__ */ t(
1707
+ return /* @__PURE__ */ t(ce.Provider, { value: { stretch: n }, children: /* @__PURE__ */ t(
1630
1708
  "div",
1631
1709
  {
1632
1710
  role: "tablist",
1633
- className: [s, n].filter(Boolean).join(" "),
1711
+ className: [s, r].filter(Boolean).join(" "),
1634
1712
  ...a,
1635
1713
  children: e
1636
1714
  }
1637
1715
  ) });
1638
1716
  }
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",
1717
+ function qt({ value: e, label: r, icon: n, badge: a, disabled: o = !1 }) {
1718
+ const { active: s, onChange: l, variant: c } = q(), { stretch: d } = E(ce), 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 = {
1719
+ default: f ? "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",
1642
1720
  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"
1721
+ vertical: f ? "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
1722
  }[c];
1645
1723
  return /* @__PURE__ */ i(
1646
1724
  "button",
@@ -1652,15 +1730,15 @@ function St({ value: e, label: n, icon: r, badge: a, disabled: o = !1 }) {
1652
1730
  onClick: () => !o && l(e),
1653
1731
  className: [m, h, u, o ? p : ""].filter(Boolean).join(" "),
1654
1732
  children: [
1655
- r && /* @__PURE__ */ t(
1733
+ n && /* @__PURE__ */ t(
1656
1734
  "span",
1657
1735
  {
1658
1736
  className: "material-symbols-outlined text-[18px]",
1659
1737
  style: f ? { fontVariationSettings: "'FILL' 1" } : void 0,
1660
- children: r
1738
+ children: n
1661
1739
  }
1662
1740
  ),
1663
- n,
1741
+ r,
1664
1742
  a !== void 0 && /* @__PURE__ */ t(
1665
1743
  "span",
1666
1744
  {
@@ -1672,18 +1750,18 @@ function St({ value: e, label: n, icon: r, badge: a, disabled: o = !1 }) {
1672
1750
  }
1673
1751
  );
1674
1752
  }
1675
- function Ft({ value: e, children: n, className: r = "", stretch: a = !1 }) {
1676
- const { active: o } = H();
1753
+ function Zt({ value: e, children: r, className: n = "", stretch: a = !1 }) {
1754
+ const { active: o } = q();
1677
1755
  return o !== e ? null : /* @__PURE__ */ t(
1678
1756
  "div",
1679
1757
  {
1680
1758
  role: "tabpanel",
1681
- className: [a ? "flex-1" : "", r].filter(Boolean).join(" "),
1682
- children: n
1759
+ className: [a ? "flex-1" : "", n].filter(Boolean).join(" "),
1760
+ children: r
1683
1761
  }
1684
1762
  );
1685
1763
  }
1686
- const Ye = {
1764
+ const ot = {
1687
1765
  top: {
1688
1766
  wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
1689
1767
  arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
@@ -1700,19 +1778,19 @@ const Ye = {
1700
1778
  wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
1701
1779
  arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
1702
1780
  }
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" }
1781
+ }, st = {
1782
+ dark: { tooltip: "bg-tooltip text-white", arrow: "border-t-tooltip border-r-tooltip border-b-tooltip border-l-tooltip" },
1783
+ 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
1784
  };
1707
- function Rt({
1785
+ function Qt({
1708
1786
  content: e,
1709
- position: n = "top",
1710
- variant: r = "dark",
1787
+ position: r = "top",
1788
+ variant: n = "dark",
1711
1789
  children: a,
1712
1790
  className: o = "",
1713
1791
  ...s
1714
1792
  }) {
1715
- const l = Ye[n], c = Pe[r];
1793
+ const l = ot[r], c = st[n];
1716
1794
  return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
1717
1795
  a,
1718
1796
  /* @__PURE__ */ i(
@@ -1735,56 +1813,65 @@ function Rt({
1735
1813
  ] });
1736
1814
  }
1737
1815
  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,
1753
- 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
1816
+ ut as Alert,
1817
+ zt as AppNavbar,
1818
+ Ct as AppShellLayout,
1819
+ Bt as AppSidebar,
1820
+ P as Avatar,
1821
+ ft as Badge,
1822
+ mt as Breadcrumb,
1823
+ Me as Button,
1824
+ pt as ButtonGroup,
1825
+ ht as Card,
1826
+ bt as CardFooter,
1827
+ xt as CardHeader,
1828
+ Re as Checkbox,
1829
+ gt as Dropdown,
1830
+ Et as HelpMenu,
1831
+ N as Icon,
1832
+ Ge as Input,
1833
+ St as MODULE_CATALOG,
1834
+ wt as Modal,
1835
+ yt as ModalBody,
1836
+ Nt as ModalFooter,
1837
+ vt as ModalHeader,
1838
+ se as NavbarIconButton,
1839
+ _t as NavbarSearch,
1840
+ Lt as NavbarTitle,
1841
+ Tt as NotificationsBell,
1842
+ kt as Pagination,
1843
+ Ke as PosteIcon,
1844
+ jt as ProgressBar,
1845
+ De as RadierIcon,
1846
+ Fe as Radio,
1847
+ Ae as Select,
1848
+ oe as SidebarItem,
1849
+ Je as SidebarSection,
1850
+ Ft as Spinner,
1851
+ Ve as Switch,
1852
+ W as THEME_ATTRIBUTE,
1853
+ Mt as THEME_INIT_SCRIPT,
1854
+ U as THEME_STORAGE_KEY,
1855
+ qt as Tab,
1856
+ Ot as TabList,
1857
+ Zt as TabPanel,
1858
+ Vt as Table,
1859
+ Ht as TableBody,
1860
+ Wt as TableCell,
1861
+ Dt as TableHead,
1862
+ Ut as TableHeaderCell,
1863
+ Kt as TableRow,
1864
+ Gt as Tabs,
1865
+ Ee as Textarea,
1866
+ It as ThemeProvider,
1867
+ Qt as Tooltip,
1868
+ He as TubulaoIcon,
1869
+ At as UserMenu,
1870
+ Pe as applyTheme,
1871
+ Xt as colorTokens,
1872
+ Xe as localStorageThemeStorage,
1873
+ Rt as resolveModuleAccess,
1874
+ Pt as shadowTokens,
1875
+ ie as useDismiss,
1876
+ $t as useTheme
1790
1877
  };