@zeo-app/design-system 0.2.1 → 0.4.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,7 +1,7 @@
1
- import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as N, useState as C, useRef as M, useCallback as B, useLayoutEffect as P, useEffect as I, createContext as V, useContext as W, useId as ee } from "react";
3
- import { createPortal as te } from "react-dom";
4
- const re = {
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 = {
5
5
  info: {
6
6
  container: "bg-blue-50 border-blue-200 text-blue-800",
7
7
  icon: "text-blue-500",
@@ -23,184 +23,184 @@ const re = {
23
23
  defaultIcon: "error"
24
24
  }
25
25
  };
26
- function Ae({
26
+ function rt({
27
27
  variant: e = "info",
28
- title: t,
28
+ title: n,
29
29
  children: r,
30
30
  onClose: a,
31
31
  icon: o,
32
32
  className: s = "",
33
- ...c
33
+ ...l
34
34
  }) {
35
- const i = re[e], m = o ?? i.defaultIcon;
36
- return /* @__PURE__ */ l(
35
+ const c = xe[e], d = o ?? c.defaultIcon;
36
+ return /* @__PURE__ */ i(
37
37
  "div",
38
38
  {
39
39
  role: "alert",
40
40
  className: [
41
41
  "flex gap-3 p-4 rounded-lg border",
42
- i.container,
42
+ c.container,
43
43
  s
44
44
  ].filter(Boolean).join(" "),
45
- ...c,
45
+ ...l,
46
46
  children: [
47
- /* @__PURE__ */ n("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${i.icon}`, children: m }),
48
- /* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: [
49
- t && /* @__PURE__ */ n("p", { className: "font-semibold text-sm mb-0.5", children: t }),
50
- /* @__PURE__ */ n("div", { className: "text-sm leading-relaxed", children: r })
47
+ /* @__PURE__ */ t("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${c.icon}`, children: d }),
48
+ /* @__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
51
  ] }),
52
- a && /* @__PURE__ */ n(
52
+ a && /* @__PURE__ */ t(
53
53
  "button",
54
54
  {
55
55
  onClick: a,
56
56
  className: "shrink-0 opacity-70 hover:opacity-100 transition-opacity",
57
57
  "aria-label": "Fechar alerta",
58
- children: /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
58
+ children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
59
59
  }
60
60
  )
61
61
  ]
62
62
  }
63
63
  );
64
64
  }
65
- const ne = {
65
+ const be = {
66
66
  xs: "w-6 h-6 text-[10px]",
67
67
  sm: "w-8 h-8 text-xs",
68
68
  md: "w-10 h-10 text-sm",
69
69
  lg: "w-12 h-12 text-base",
70
70
  xl: "w-16 h-16 text-lg"
71
- }, ae = {
71
+ }, ge = {
72
72
  xs: "w-1.5 h-1.5",
73
73
  sm: "w-2 h-2",
74
74
  md: "w-2.5 h-2.5",
75
75
  lg: "w-3 h-3",
76
76
  xl: "w-3.5 h-3.5"
77
- }, oe = {
77
+ }, ve = {
78
78
  online: "bg-green-500",
79
79
  offline: "bg-gray-400",
80
80
  busy: "bg-red-500",
81
81
  away: "bg-yellow-400"
82
82
  };
83
- function se(e) {
84
- return e.split(" ").slice(0, 2).map((t) => t[0]).join("").toUpperCase();
83
+ function we(e) {
84
+ return e.split(" ").slice(0, 2).map((n) => n[0]).join("").toUpperCase();
85
85
  }
86
- function le(e) {
87
- const t = [
86
+ function ye(e) {
87
+ const n = [
88
88
  "bg-orange-100 text-orange-700",
89
89
  "bg-blue-100 text-blue-700",
90
90
  "bg-green-100 text-green-700",
91
91
  "bg-purple-100 text-purple-700",
92
92
  "bg-pink-100 text-pink-700",
93
93
  "bg-teal-100 text-teal-700"
94
- ], r = e.charCodeAt(0) % t.length;
95
- return t[r];
94
+ ], r = e.charCodeAt(0) % n.length;
95
+ return n[r];
96
96
  }
97
- function He({
97
+ function Z({
98
98
  src: e,
99
- alt: t = "",
99
+ alt: n = "",
100
100
  name: r,
101
101
  size: a = "md",
102
102
  status: o,
103
103
  className: s = "",
104
- ...c
104
+ ...l
105
105
  }) {
106
- return /* @__PURE__ */ l("div", { className: ["relative inline-flex shrink-0", s].filter(Boolean).join(" "), ...c, children: [
107
- /* @__PURE__ */ n(
106
+ return /* @__PURE__ */ i("div", { className: ["relative inline-flex shrink-0", s].filter(Boolean).join(" "), ...l, children: [
107
+ /* @__PURE__ */ t(
108
108
  "div",
109
109
  {
110
110
  className: [
111
111
  "rounded-full overflow-hidden flex items-center justify-center font-semibold",
112
- ne[a],
113
- !e && r ? le(r) : "bg-surface-container"
112
+ be[a],
113
+ !e && r ? ye(r) : "bg-surface-container"
114
114
  ].filter(Boolean).join(" "),
115
- children: e ? /* @__PURE__ */ n(
115
+ children: e ? /* @__PURE__ */ t(
116
116
  "img",
117
117
  {
118
118
  src: e,
119
- alt: t || r,
119
+ alt: n || r,
120
120
  className: "w-full h-full object-cover"
121
121
  }
122
- ) : r ? se(r) : /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
122
+ ) : r ? we(r) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
123
123
  }
124
124
  ),
125
- o && /* @__PURE__ */ n(
125
+ o && /* @__PURE__ */ t(
126
126
  "span",
127
127
  {
128
128
  className: [
129
129
  "absolute bottom-0 right-0 rounded-full border-2 border-white",
130
- ae[a],
131
- oe[o]
130
+ ge[a],
131
+ ve[o]
132
132
  ].filter(Boolean).join(" ")
133
133
  }
134
134
  )
135
135
  ] });
136
136
  }
137
- const ie = {
137
+ const Ne = {
138
138
  default: "bg-surface-container text-on-surface-variant",
139
139
  primary: "bg-orange-100 text-orange-700",
140
140
  success: "bg-green-100 text-green-700",
141
141
  warning: "bg-yellow-100 text-yellow-700",
142
142
  danger: "bg-red-100 text-red-700",
143
143
  info: "bg-blue-100 text-blue-700"
144
- }, ce = {
144
+ }, ke = {
145
145
  default: "bg-on-surface-variant",
146
146
  primary: "bg-orange-500",
147
147
  success: "bg-green-500",
148
148
  warning: "bg-yellow-500",
149
149
  danger: "bg-red-500",
150
150
  info: "bg-blue-500"
151
- }, de = {
151
+ }, je = {
152
152
  sm: "px-2 py-0.5 text-xs gap-1",
153
153
  md: "px-2.5 py-1 text-xs gap-1.5"
154
154
  };
155
- function De({
155
+ function at({
156
156
  variant: e = "default",
157
- size: t = "md",
157
+ size: n = "md",
158
158
  dot: r = !1,
159
159
  icon: a,
160
160
  children: o,
161
161
  className: s = "",
162
- ...c
162
+ ...l
163
163
  }) {
164
- return /* @__PURE__ */ l(
164
+ return /* @__PURE__ */ i(
165
165
  "span",
166
166
  {
167
167
  className: [
168
168
  "inline-flex items-center font-medium rounded-full",
169
- ie[e],
170
- de[t],
169
+ Ne[e],
170
+ je[n],
171
171
  s
172
172
  ].filter(Boolean).join(" "),
173
- ...c,
173
+ ...l,
174
174
  children: [
175
- r && /* @__PURE__ */ n("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${ce[e]}` }),
176
- a && !r && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[12px]", children: a }),
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
177
  o
178
178
  ]
179
179
  }
180
180
  );
181
181
  }
182
- function Ge({ items: e, className: t = "", ...r }) {
183
- return /* @__PURE__ */ n("nav", { "aria-label": "Breadcrumb", className: t, ...r, children: /* @__PURE__ */ n("ol", { className: "inline-flex items-center gap-1.5 text-sm flex-wrap", children: e.map((a, o) => {
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
184
  const s = o === e.length - 1;
185
- return /* @__PURE__ */ l("li", { className: "flex items-center gap-1.5", children: [
186
- o > 0 && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
187
- s ? /* @__PURE__ */ l(
185
+ 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" }),
187
+ s ? /* @__PURE__ */ i(
188
188
  "span",
189
189
  {
190
190
  "aria-current": "page",
191
191
  className: "font-semibold text-on-surface flex items-center gap-1",
192
192
  children: [
193
- a.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
193
+ a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
194
194
  a.label
195
195
  ]
196
196
  }
197
- ) : /* @__PURE__ */ l(
197
+ ) : /* @__PURE__ */ i(
198
198
  "a",
199
199
  {
200
200
  href: a.href ?? "#",
201
201
  className: "text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",
202
202
  children: [
203
- a.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
203
+ a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
204
204
  a.label
205
205
  ]
206
206
  }
@@ -208,70 +208,70 @@ function Ge({ items: e, className: t = "", ...r }) {
208
208
  ] }, o);
209
209
  }) }) });
210
210
  }
211
- const ue = {
211
+ const Ce = {
212
212
  primary: "bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",
213
213
  secondary: "bg-white text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
214
214
  ghost: "bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
215
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
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
- }, fe = {
217
+ }, Be = {
218
218
  sm: "px-3 py-1.5 text-sm gap-1.5 h-8",
219
219
  md: "px-4 py-2 text-sm gap-2 h-10",
220
220
  lg: "px-5 py-2.5 text-base gap-2 h-11"
221
- }, E = {
221
+ }, D = {
222
222
  sm: "text-[16px]",
223
223
  md: "text-[18px]",
224
224
  lg: "text-[20px]"
225
- }, me = N(
225
+ }, Le = C(
226
226
  ({
227
227
  variant: e = "primary",
228
- size: t = "md",
228
+ size: n = "md",
229
229
  loading: r = !1,
230
230
  iconLeft: a,
231
231
  iconRight: o,
232
232
  fullWidth: s = !1,
233
- disabled: c,
234
- children: i,
235
- className: m = "",
236
- ...u
237
- }, f) => /* @__PURE__ */ l(
233
+ disabled: l,
234
+ children: c,
235
+ className: d = "",
236
+ ...f
237
+ }, m) => /* @__PURE__ */ i(
238
238
  "button",
239
239
  {
240
- ref: f,
241
- disabled: c || r,
240
+ ref: m,
241
+ disabled: l || r,
242
242
  className: [
243
243
  "inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none",
244
244
  "focus:outline-none",
245
245
  "disabled:opacity-50 disabled:cursor-not-allowed",
246
- ue[e],
247
- fe[t],
246
+ Ce[e],
247
+ Be[n],
248
248
  s ? "w-full" : "",
249
- m
249
+ d
250
250
  ].filter(Boolean).join(" "),
251
- ...u,
251
+ ...f,
252
252
  children: [
253
- r ? /* @__PURE__ */ n(
253
+ r ? /* @__PURE__ */ t(
254
254
  "span",
255
255
  {
256
- className: `material-symbols-outlined animate-spin ${E[t]}`,
256
+ className: `material-symbols-outlined animate-spin ${D[n]}`,
257
257
  children: "progress_activity"
258
258
  }
259
- ) : a && /* @__PURE__ */ n("span", { className: `material-symbols-outlined ${E[t]}`, children: a }),
260
- i,
261
- !r && o && /* @__PURE__ */ n("span", { className: `material-symbols-outlined ${E[t]}`, children: o })
259
+ ) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: a }),
260
+ c,
261
+ !r && o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${D[n]}`, children: o })
262
262
  ]
263
263
  }
264
264
  )
265
265
  );
266
- me.displayName = "Button";
267
- function Ue({ children: e, attached: t = !1, className: r = "", ...a }) {
268
- return /* @__PURE__ */ n(
266
+ Le.displayName = "Button";
267
+ function st({ children: e, attached: n = !1, className: r = "", ...a }) {
268
+ return /* @__PURE__ */ t(
269
269
  "div",
270
270
  {
271
271
  role: "group",
272
272
  className: [
273
273
  "inline-flex",
274
- t ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
274
+ n ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
275
275
  r
276
276
  ].filter(Boolean).join(" "),
277
277
  ...a,
@@ -279,192 +279,192 @@ function Ue({ children: e, attached: t = !1, className: r = "", ...a }) {
279
279
  }
280
280
  );
281
281
  }
282
- const pe = {
282
+ const ze = {
283
283
  elevated: "bg-white shadow-theme-lg border border-surface-container-high",
284
284
  outlined: "bg-white border border-outline-variant",
285
285
  filled: "bg-surface-container-low border border-transparent"
286
- }, xe = {
286
+ }, _e = {
287
287
  none: "",
288
288
  sm: "p-4",
289
289
  md: "p-5",
290
290
  lg: "p-6"
291
291
  };
292
- function Ve({
292
+ function it({
293
293
  variant: e = "elevated",
294
- padding: t = "md",
294
+ padding: n = "md",
295
295
  children: r,
296
296
  className: a = "",
297
297
  ...o
298
298
  }) {
299
- return /* @__PURE__ */ n(
299
+ return /* @__PURE__ */ t(
300
300
  "div",
301
301
  {
302
302
  className: [
303
303
  "rounded-xl overflow-hidden",
304
- pe[e],
304
+ ze[e],
305
305
  a
306
306
  ].filter(Boolean).join(" "),
307
307
  ...o,
308
- children: /* @__PURE__ */ n("div", { className: xe[t], children: r })
308
+ children: /* @__PURE__ */ t("div", { className: _e[n], children: r })
309
309
  }
310
310
  );
311
311
  }
312
- function We({
312
+ function lt({
313
313
  title: e,
314
- subtitle: t,
314
+ subtitle: n,
315
315
  action: r,
316
316
  icon: a,
317
317
  className: o = "",
318
318
  ...s
319
319
  }) {
320
- return /* @__PURE__ */ l(
320
+ return /* @__PURE__ */ i(
321
321
  "div",
322
322
  {
323
323
  className: ["flex items-start justify-between gap-4 pb-4", o].filter(Boolean).join(" "),
324
324
  ...s,
325
325
  children: [
326
- /* @__PURE__ */ l("div", { className: "flex items-center gap-3 min-w-0", children: [
327
- a && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: a }),
328
- /* @__PURE__ */ l("div", { className: "min-w-0", children: [
329
- /* @__PURE__ */ n("h3", { className: "text-base font-semibold text-on-surface truncate", children: e }),
330
- t && /* @__PURE__ */ n("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
326
+ /* @__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 }),
328
+ /* @__PURE__ */ i("div", { className: "min-w-0", children: [
329
+ /* @__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 })
331
331
  ] })
332
332
  ] }),
333
- r && /* @__PURE__ */ n("div", { className: "shrink-0", children: r })
333
+ r && /* @__PURE__ */ t("div", { className: "shrink-0", children: r })
334
334
  ]
335
335
  }
336
336
  );
337
337
  }
338
- function qe({ children: e, className: t = "", ...r }) {
339
- return /* @__PURE__ */ n(
338
+ function ct({ children: e, className: n = "", ...r }) {
339
+ return /* @__PURE__ */ t(
340
340
  "div",
341
341
  {
342
- className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", t].filter(Boolean).join(" "),
342
+ className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", n].filter(Boolean).join(" "),
343
343
  ...r,
344
344
  children: e
345
345
  }
346
346
  );
347
347
  }
348
- const _ = 8, G = 4;
349
- function Oe({ trigger: e, items: t, align: r = "right", className: a = "", ...o }) {
350
- const [s, c] = C(!1), [i, m] = C(null), u = M(null), f = M(null), p = B(() => {
351
- var k;
352
- const d = u.current;
353
- if (!d) return;
354
- const x = d.getBoundingClientRect(), h = (k = f.current) == null ? void 0 : k.getBoundingClientRect(), w = (h == null ? void 0 : h.width) ?? 180, b = (h == null ? void 0 : h.height) ?? 0, v = window.innerHeight - x.bottom, g = x.top, z = v < b + _ && g > v ? x.top - b - G : x.bottom + G, j = r === "right" ? x.right - w : x.left, L = window.innerWidth - w - _, T = Math.min(Math.max(j, _), Math.max(L, _));
355
- m({ top: z, left: T });
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;
353
+ 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
356
  }, [r]);
357
- return P(() => {
357
+ return me(() => {
358
358
  s && p();
359
- }, [s, p]), I(() => {
359
+ }, [s, p]), z(() => {
360
360
  if (!s) return;
361
- const d = () => p();
362
- return window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
363
- window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
361
+ const u = () => p();
362
+ return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
363
+ window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
364
364
  };
365
- }, [s, p]), I(() => {
366
- const d = (x) => {
367
- var v, g;
368
- const h = x.target, w = (v = u.current) == null ? void 0 : v.contains(h), b = (g = f.current) == null ? void 0 : g.contains(h);
369
- !w && !b && c(!1);
365
+ }, [s, p]), z(() => {
366
+ 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);
370
370
  };
371
- return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
372
- }, []), I(() => {
373
- const d = (x) => {
374
- x.key === "Escape" && c(!1);
371
+ return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
372
+ }, []), z(() => {
373
+ const u = (h) => {
374
+ h.key === "Escape" && l(!1);
375
375
  };
376
- return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
377
- }, []), /* @__PURE__ */ l("div", { ref: u, className: ["relative inline-block", a].filter(Boolean).join(" "), ...o, children: [
378
- /* @__PURE__ */ n("div", { onClick: () => c((d) => !d), children: e }),
379
- s && te(
380
- /* @__PURE__ */ n(
376
+ 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: [
378
+ /* @__PURE__ */ t("div", { onClick: () => l((u) => !u), children: e }),
379
+ s && he(
380
+ /* @__PURE__ */ t(
381
381
  "div",
382
382
  {
383
- ref: f,
383
+ ref: m,
384
384
  className: "fixed z-[100] min-w-[180px] bg-white border border-surface-container-high rounded-xl shadow-theme-lg py-1",
385
385
  style: {
386
- top: (i == null ? void 0 : i.top) ?? 0,
387
- left: (i == null ? void 0 : i.left) ?? 0,
388
- visibility: i ? "visible" : "hidden"
386
+ top: (c == null ? void 0 : c.top) ?? 0,
387
+ left: (c == null ? void 0 : c.left) ?? 0,
388
+ visibility: c ? "visible" : "hidden"
389
389
  },
390
390
  role: "menu",
391
- children: t.map((d, x) => /* @__PURE__ */ l("div", { children: [
392
- /* @__PURE__ */ l(
391
+ children: n.map((u, h) => /* @__PURE__ */ i("div", { children: [
392
+ /* @__PURE__ */ i(
393
393
  "button",
394
394
  {
395
395
  role: "menuitem",
396
- disabled: d.disabled,
396
+ disabled: u.disabled,
397
397
  onClick: () => {
398
- var h;
399
- d.disabled || ((h = d.onClick) == null || h.call(d), c(!1));
398
+ var x;
399
+ u.disabled || ((x = u.onClick) == null || x.call(u), l(!1));
400
400
  },
401
401
  className: [
402
402
  "w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors text-left",
403
- d.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
404
- d.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
403
+ u.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
404
+ u.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
405
405
  ].filter(Boolean).join(" "),
406
406
  children: [
407
- d.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] opacity-70", children: d.icon }),
408
- d.label
407
+ u.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] opacity-70", children: u.icon }),
408
+ u.label
409
409
  ]
410
410
  }
411
411
  ),
412
- d.dividerAfter && /* @__PURE__ */ n("div", { className: "my-1 border-t border-surface-container-high" })
413
- ] }, x))
412
+ u.dividerAfter && /* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-high" })
413
+ ] }, h))
414
414
  }
415
415
  ),
416
416
  document.body
417
417
  )
418
418
  ] });
419
419
  }
420
- const he = N(
421
- ({ label: e, hint: t, error: r, options: a, placeholder: o, disabled: s, className: c = "", id: i, ...m }, u) => {
422
- const f = i ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
423
- return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
424
- e && /* @__PURE__ */ n("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
425
- /* @__PURE__ */ l("div", { className: "relative", children: [
426
- /* @__PURE__ */ l(
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, "-"));
423
+ 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 }),
425
+ /* @__PURE__ */ i("div", { className: "relative", children: [
426
+ /* @__PURE__ */ i(
427
427
  "select",
428
428
  {
429
- ref: u,
430
- id: f,
429
+ ref: f,
430
+ id: m,
431
431
  disabled: s,
432
432
  className: [
433
433
  "w-full appearance-none bg-white border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
434
434
  "text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
435
435
  r ? "border-error" : "border-outline-variant",
436
436
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
437
- c
437
+ l
438
438
  ].filter(Boolean).join(" "),
439
- ...m,
439
+ ...d,
440
440
  children: [
441
- o && /* @__PURE__ */ n("option", { value: "", disabled: !0, children: o }),
442
- a.map((p) => /* @__PURE__ */ n("option", { value: p.value, disabled: p.disabled, children: p.label }, p.value))
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
443
  ]
444
444
  }
445
445
  ),
446
- /* @__PURE__ */ n("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" })
446
+ /* @__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
447
  ] }),
448
- r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
449
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
448
+ r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
449
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
450
450
  r
451
451
  ] }),
452
- !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
452
+ !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
453
453
  ] });
454
454
  }
455
455
  );
456
- he.displayName = "Select";
457
- const be = N(
458
- ({ label: e, hint: t, error: r, disabled: a, className: o = "", id: s, rows: c = 4, ...i }, m) => {
459
- const u = s ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
460
- return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
461
- e && /* @__PURE__ */ n("label", { htmlFor: u, className: "text-sm font-medium text-on-surface", children: e }),
462
- /* @__PURE__ */ n(
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, "-"));
460
+ 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 }),
462
+ /* @__PURE__ */ t(
463
463
  "textarea",
464
464
  {
465
- ref: m,
466
- id: u,
467
- rows: c,
465
+ ref: d,
466
+ id: f,
467
+ rows: l,
468
468
  disabled: a,
469
469
  className: [
470
470
  "w-full bg-white border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
@@ -474,63 +474,63 @@ const be = N(
474
474
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
475
475
  o
476
476
  ].filter(Boolean).join(" "),
477
- ...i
477
+ ...c
478
478
  }
479
479
  ),
480
- r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
481
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
480
+ r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
481
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
482
482
  r
483
483
  ] }),
484
- !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
484
+ !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
485
485
  ] });
486
486
  }
487
487
  );
488
- be.displayName = "Textarea";
489
- const ge = {
488
+ $e.displayName = "Textarea";
489
+ const Ie = {
490
490
  square: "rounded-[2px]",
491
491
  rounded: "rounded-[4px]",
492
492
  circle: "rounded-full"
493
- }, we = N(
494
- ({ label: e, description: t, error: r, disabled: a, className: o = "", id: s, shape: c = "square", color: i = "#FF6B00", ...m }, u) => {
495
- const f = s ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
496
- return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1", children: [
497
- /* @__PURE__ */ l(
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, "-")}`;
496
+ return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
497
+ /* @__PURE__ */ i(
498
498
  "label",
499
499
  {
500
- htmlFor: f,
500
+ htmlFor: m,
501
501
  className: [
502
502
  "flex items-start gap-3 cursor-pointer",
503
503
  a ? "opacity-50 cursor-not-allowed" : ""
504
504
  ].filter(Boolean).join(" "),
505
505
  children: [
506
- /* @__PURE__ */ l("div", { className: "relative mt-0.5 shrink-0 w-4 h-4", children: [
507
- /* @__PURE__ */ n(
506
+ /* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0 w-4 h-4", children: [
507
+ /* @__PURE__ */ t(
508
508
  "input",
509
509
  {
510
- ref: u,
510
+ ref: f,
511
511
  type: "checkbox",
512
- id: f,
512
+ id: m,
513
513
  disabled: a,
514
514
  className: [
515
515
  "absolute inset-0 w-full h-full opacity-0 cursor-pointer peer disabled:cursor-not-allowed",
516
516
  o
517
517
  ].filter(Boolean).join(" "),
518
- ...m
518
+ ...d
519
519
  }
520
520
  ),
521
- /* @__PURE__ */ n(
521
+ /* @__PURE__ */ t(
522
522
  "div",
523
523
  {
524
524
  className: [
525
525
  "w-4 h-4 border-2 border-outline-variant transition-colors pointer-events-none",
526
526
  "bg-white peer-checked:bg-[var(--cb-color)] peer-checked:border-[var(--cb-color)]",
527
527
  "peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--cb-color)]/30 peer-focus-visible:ring-offset-0",
528
- ge[c]
528
+ Ie[l]
529
529
  ].filter(Boolean).join(" "),
530
- style: { "--cb-color": i }
530
+ style: { "--cb-color": c }
531
531
  }
532
532
  ),
533
- /* @__PURE__ */ n(
533
+ /* @__PURE__ */ t(
534
534
  "svg",
535
535
  {
536
536
  viewBox: "0 0 12 10",
@@ -539,7 +539,7 @@ const ge = {
539
539
  fill: "none",
540
540
  "aria-hidden": "true",
541
541
  className: "absolute inset-0 m-auto pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity",
542
- children: /* @__PURE__ */ n(
542
+ children: /* @__PURE__ */ t(
543
543
  "polyline",
544
544
  {
545
545
  points: "1,5 4.5,8.5 11,1.5",
@@ -552,39 +552,39 @@ const ge = {
552
552
  }
553
553
  )
554
554
  ] }),
555
- e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
556
- /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
557
- t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
555
+ e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
556
+ /* @__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 })
558
558
  ] })
559
559
  ]
560
560
  }
561
561
  ),
562
- r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
563
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
562
+ r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
563
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
564
564
  r
565
565
  ] })
566
566
  ] });
567
567
  }
568
568
  );
569
- we.displayName = "Checkbox";
570
- const ve = N(
571
- ({ label: e, description: t, disabled: r, className: a = "", id: o, ...s }, c) => {
572
- const i = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
573
- return /* @__PURE__ */ l(
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, "-")}`;
573
+ return /* @__PURE__ */ i(
574
574
  "label",
575
575
  {
576
- htmlFor: i,
576
+ htmlFor: c,
577
577
  className: [
578
578
  "flex items-start gap-3 cursor-pointer",
579
579
  r ? "opacity-50 cursor-not-allowed" : ""
580
580
  ].filter(Boolean).join(" "),
581
581
  children: [
582
- /* @__PURE__ */ n(
582
+ /* @__PURE__ */ t(
583
583
  "input",
584
584
  {
585
- ref: c,
585
+ ref: l,
586
586
  type: "radio",
587
- id: i,
587
+ id: c,
588
588
  disabled: r,
589
589
  className: [
590
590
  "mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0",
@@ -595,170 +595,298 @@ const ve = N(
595
595
  ...s
596
596
  }
597
597
  ),
598
- e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
599
- /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
600
- t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
598
+ e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
599
+ /* @__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 })
601
601
  ] })
602
602
  ]
603
603
  }
604
604
  );
605
605
  }
606
606
  );
607
- ve.displayName = "Radio";
608
- const ye = N(
609
- ({ label: e, description: t, disabled: r, className: a = "", id: o, ...s }, c) => {
610
- const i = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
611
- return /* @__PURE__ */ l(
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, "-")}`;
611
+ return /* @__PURE__ */ i(
612
612
  "label",
613
613
  {
614
- htmlFor: i,
614
+ htmlFor: c,
615
615
  className: [
616
616
  "flex items-start gap-3 cursor-pointer select-none",
617
617
  r ? "opacity-50 cursor-not-allowed" : ""
618
618
  ].filter(Boolean).join(" "),
619
619
  children: [
620
- /* @__PURE__ */ l("div", { className: "relative mt-0.5 shrink-0", children: [
621
- /* @__PURE__ */ n(
620
+ /* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0", children: [
621
+ /* @__PURE__ */ t(
622
622
  "input",
623
623
  {
624
- ref: c,
624
+ ref: l,
625
625
  type: "checkbox",
626
- id: i,
626
+ id: c,
627
627
  disabled: r,
628
628
  className: "sr-only peer",
629
629
  ...s
630
630
  }
631
631
  ),
632
- /* @__PURE__ */ n("div", { className: "w-10 h-6 bg-surface-container-high rounded-full peer-checked:bg-zeo-orange transition-colors duration-200 peer-focus:ring-2 peer-focus:ring-zeo-orange/30" }),
633
- /* @__PURE__ */ n("div", { className: "absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow transition-transform duration-200 peer-checked:translate-x-4" })
632
+ /* @__PURE__ */ t("div", { className: "w-10 h-6 bg-surface-container-high rounded-full peer-checked:bg-zeo-orange transition-colors duration-200 peer-focus:ring-2 peer-focus:ring-zeo-orange/30" }),
633
+ /* @__PURE__ */ t("div", { className: "absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow transition-transform duration-200 peer-checked:translate-x-4" })
634
634
  ] }),
635
- e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
636
- /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
637
- t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
635
+ e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
636
+ /* @__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 })
638
638
  ] })
639
639
  ]
640
640
  }
641
641
  );
642
642
  }
643
643
  );
644
- ye.displayName = "Switch";
645
- const Ne = {
644
+ Te.displayName = "Switch";
645
+ function k({ name: e, size: n = 20, fill: r = !1, className: a = "", style: o, ...s }) {
646
+ return /* @__PURE__ */ t(
647
+ "span",
648
+ {
649
+ ...s,
650
+ className: `material-symbols-outlined leading-none select-none ${a}`.trim(),
651
+ style: {
652
+ fontSize: n,
653
+ fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
654
+ ...o
655
+ },
656
+ "aria-hidden": "true",
657
+ children: e
658
+ }
659
+ );
660
+ }
661
+ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
662
+ "svg",
663
+ {
664
+ width: e,
665
+ height: e,
666
+ viewBox: "0 0 100 100",
667
+ fill: "none",
668
+ stroke: "currentColor",
669
+ strokeLinecap: "round",
670
+ strokeLinejoin: "round",
671
+ strokeWidth: 4,
672
+ className: n,
673
+ "aria-hidden": "true",
674
+ children: [
675
+ /* @__PURE__ */ t("path", { d: "M15 65 L40 50 H85 L60 65 Z" }),
676
+ /* @__PURE__ */ t("path", { d: "M15 65 V72 L60 72 V65" }),
677
+ /* @__PURE__ */ t("path", { d: "M60 72 L85 57 V50" }),
678
+ /* @__PURE__ */ t("path", { d: "M25 60 V35 H32 V56" }),
679
+ /* @__PURE__ */ t("path", { d: "M42 45 V20 H49 V41" }),
680
+ /* @__PURE__ */ t("path", { d: "M55 60 V35 H62 V56" }),
681
+ /* @__PURE__ */ t("path", { d: "M72 45 V20 H79 V41" })
682
+ ]
683
+ }
684
+ ), Fe = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
685
+ "svg",
686
+ {
687
+ width: e,
688
+ height: e,
689
+ viewBox: "0 0 100 100",
690
+ fill: "none",
691
+ stroke: "currentColor",
692
+ strokeLinecap: "round",
693
+ strokeLinejoin: "round",
694
+ strokeWidth: 4,
695
+ className: n,
696
+ "aria-hidden": "true",
697
+ children: [
698
+ /* @__PURE__ */ t("ellipse", { cx: "50", cy: "20", rx: "12", ry: "6" }),
699
+ /* @__PURE__ */ t("path", { d: "M38 20 V65 M62 20 V65" }),
700
+ /* @__PURE__ */ t("path", { d: "M50 25 V58" }),
701
+ /* @__PURE__ */ t("path", { d: "M38 65 L25 75 V85 L50 90 L75 85 V75 L62 65 Z" }),
702
+ /* @__PURE__ */ t("path", { d: "M50 75 V90" })
703
+ ]
704
+ }
705
+ ), Re = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
706
+ "svg",
707
+ {
708
+ width: e,
709
+ height: e,
710
+ viewBox: "0 0 100 100",
711
+ fill: "none",
712
+ strokeLinecap: "round",
713
+ strokeLinejoin: "round",
714
+ className: n,
715
+ "aria-hidden": "true",
716
+ children: [
717
+ /* @__PURE__ */ t("path", { d: "M48 90 L45 25 L55 25 L52 90 Z", fill: "currentColor", stroke: "none" }),
718
+ /* @__PURE__ */ t("circle", { cx: "50", cy: "20", r: "5", fill: "currentColor", stroke: "none" }),
719
+ /* @__PURE__ */ t("path", { d: "M38 30 A20 20 0 0 0 38 10", stroke: "currentColor", strokeWidth: 3 }),
720
+ /* @__PURE__ */ t("path", { d: "M30 35 A28 28 0 0 0 30 5", stroke: "currentColor", strokeWidth: 3 }),
721
+ /* @__PURE__ */ t("path", { d: "M62 30 A20 20 0 0 1 62 10", stroke: "currentColor", strokeWidth: 3 }),
722
+ /* @__PURE__ */ t("path", { d: "M70 35 A28 28 0 0 1 70 5", stroke: "currentColor", strokeWidth: 3 })
723
+ ]
724
+ }
725
+ ), Ve = {
646
726
  sm: "px-3 py-1.5 text-sm h-8",
647
727
  md: "px-3 py-2 text-sm h-10",
648
728
  lg: "px-4 py-2.5 text-base h-11"
649
- }, U = {
729
+ }, J = {
650
730
  sm: "text-[16px]",
651
731
  md: "text-[18px]",
652
732
  lg: "text-[20px]"
653
- }, je = N(
733
+ };
734
+ function Ke(e, n, r) {
735
+ if (e === "" || e === void 0 || e === null) return "";
736
+ const a = Number(e).toFixed(n);
737
+ return r ? `${a} ${r}` : a;
738
+ }
739
+ const De = C(
654
740
  ({
655
741
  label: e,
656
- hint: t,
742
+ hint: n,
657
743
  error: r,
658
744
  inputSize: a = "md",
659
745
  iconLeft: o,
660
746
  iconRight: s,
661
- onIconRightClick: c,
662
- disabled: i,
663
- className: m = "",
664
- id: u,
665
- ...f
666
- }, p) => {
667
- const d = u ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
668
- return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
669
- e && /* @__PURE__ */ n(
747
+ onIconRightClick: l,
748
+ disabled: c,
749
+ className: d = "",
750
+ id: f,
751
+ unit: m,
752
+ decimals: p,
753
+ onValueChange: u,
754
+ value: h,
755
+ defaultValue: x,
756
+ type: v,
757
+ step: b,
758
+ inputMode: w,
759
+ onChange: y,
760
+ 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(
765
+ 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);
769
+ },
770
+ [g, I, _]
771
+ ), ue = j(
772
+ (L) => {
773
+ if (g) {
774
+ W(!1);
775
+ const q = parseFloat(K.replace(",", ".")), O = isNaN(q) ? "" : q;
776
+ V || le(O), u == null || u(O);
777
+ }
778
+ B == null || B(L);
779
+ },
780
+ [g, K, V, u, B]
781
+ ), fe = j(
782
+ (L) => {
783
+ g && G(L.target.value), y == null || y(L);
784
+ },
785
+ [g, y]
786
+ );
787
+ return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1.5", children: [
788
+ e && /* @__PURE__ */ t(
670
789
  "label",
671
790
  {
672
- htmlFor: d,
791
+ htmlFor: M,
673
792
  className: "text-sm font-medium text-on-surface",
674
793
  children: e
675
794
  }
676
795
  ),
677
- /* @__PURE__ */ l("div", { className: "relative flex items-center", children: [
678
- o && /* @__PURE__ */ n(
796
+ /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
797
+ o && /* @__PURE__ */ t(
679
798
  "span",
680
799
  {
681
- className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${U[a]}`,
800
+ className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${J[a]}`,
682
801
  children: o
683
802
  }
684
803
  ),
685
- /* @__PURE__ */ n(
804
+ /* @__PURE__ */ t(
686
805
  "input",
687
806
  {
688
- ref: p,
689
- id: d,
690
- disabled: i,
807
+ ref: S,
808
+ id: M,
809
+ disabled: c,
810
+ type: g ? U ? "number" : "text" : v,
811
+ inputMode: g ? "decimal" : w,
812
+ value: g ? ce : h,
813
+ 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,
691
818
  className: [
692
819
  "w-full bg-white border rounded transition-all duration-200",
693
820
  "text-on-surface placeholder:text-on-surface-variant",
694
821
  "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
695
822
  r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
696
823
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
697
- Ne[a],
824
+ g ? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" : "",
825
+ Ve[a],
698
826
  o ? "pl-9" : "",
699
827
  s ? "pr-9" : "",
700
- m
828
+ d
701
829
  ].filter(Boolean).join(" "),
702
- ...f
830
+ ...T
703
831
  }
704
832
  ),
705
- s && /* @__PURE__ */ n(
833
+ s && /* @__PURE__ */ t(
706
834
  "span",
707
835
  {
708
836
  className: [
709
837
  "material-symbols-outlined absolute right-3 text-on-surface-variant",
710
- U[a],
711
- c ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
838
+ J[a],
839
+ l ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
712
840
  ].filter(Boolean).join(" "),
713
- onClick: c,
841
+ onClick: l,
714
842
  children: s
715
843
  }
716
844
  )
717
845
  ] }),
718
- r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
719
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
846
+ r && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
847
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
720
848
  r
721
849
  ] }),
722
- !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
850
+ !r && n && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: n })
723
851
  ] });
724
852
  }
725
853
  );
726
- je.displayName = "Input";
727
- const ke = {
854
+ De.displayName = "Input";
855
+ const He = {
728
856
  sm: "max-w-sm",
729
857
  md: "max-w-md",
730
858
  lg: "max-w-lg",
731
859
  xl: "max-w-2xl",
732
860
  full: "max-w-[calc(100vw-2rem)]"
733
861
  };
734
- function Ke({ open: e, onClose: t, size: r = "md", children: a }) {
735
- return I(() => {
862
+ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
863
+ return z(() => {
736
864
  if (!e) return;
737
865
  const o = (s) => {
738
- s.key === "Escape" && t();
866
+ s.key === "Escape" && n();
739
867
  };
740
868
  return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
741
- }, [e, t]), e ? /* @__PURE__ */ l(
869
+ }, [e, n]), e ? /* @__PURE__ */ i(
742
870
  "div",
743
871
  {
744
872
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
745
873
  "aria-modal": "true",
746
874
  role: "dialog",
747
875
  children: [
748
- /* @__PURE__ */ n(
876
+ /* @__PURE__ */ t(
749
877
  "div",
750
878
  {
751
879
  className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
752
- onClick: t,
880
+ onClick: n,
753
881
  "aria-hidden": "true"
754
882
  }
755
883
  ),
756
- /* @__PURE__ */ n(
884
+ /* @__PURE__ */ t(
757
885
  "div",
758
886
  {
759
887
  className: [
760
888
  "relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
761
- ke[r]
889
+ He[r]
762
890
  ].filter(Boolean).join(" "),
763
891
  children: a
764
892
  }
@@ -767,120 +895,120 @@ function Ke({ open: e, onClose: t, size: r = "md", children: a }) {
767
895
  }
768
896
  ) : null;
769
897
  }
770
- function Je({ title: e, subtitle: t, onClose: r, className: a = "", ...o }) {
771
- return /* @__PURE__ */ l(
898
+ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
899
+ return /* @__PURE__ */ i(
772
900
  "div",
773
901
  {
774
902
  className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", a].filter(Boolean).join(" "),
775
903
  ...o,
776
904
  children: [
777
- /* @__PURE__ */ l("div", { children: [
778
- /* @__PURE__ */ n("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
779
- t && /* @__PURE__ */ n("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
905
+ /* @__PURE__ */ i("div", { children: [
906
+ /* @__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 })
780
908
  ] }),
781
- r && /* @__PURE__ */ n(
909
+ r && /* @__PURE__ */ t(
782
910
  "button",
783
911
  {
784
912
  onClick: r,
785
913
  className: "p-1 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low rounded-lg transition-all -mt-1 -mr-1",
786
914
  "aria-label": "Fechar modal",
787
- children: /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
915
+ children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
788
916
  }
789
917
  )
790
918
  ]
791
919
  }
792
920
  );
793
921
  }
794
- function Qe({ children: e, className: t = "", ...r }) {
795
- return /* @__PURE__ */ n(
922
+ function mt({ children: e, className: n = "", ...r }) {
923
+ return /* @__PURE__ */ t(
796
924
  "div",
797
925
  {
798
- className: ["p-6 overflow-y-auto flex-1", t].filter(Boolean).join(" "),
926
+ className: ["p-6 overflow-y-auto flex-1", n].filter(Boolean).join(" "),
799
927
  ...r,
800
928
  children: e
801
929
  }
802
930
  );
803
931
  }
804
- function Xe({ children: e, className: t = "", ...r }) {
805
- return /* @__PURE__ */ n(
932
+ function pt({ children: e, className: n = "", ...r }) {
933
+ return /* @__PURE__ */ t(
806
934
  "div",
807
935
  {
808
936
  className: [
809
937
  "flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
810
- t
938
+ n
811
939
  ].filter(Boolean).join(" "),
812
940
  ...r,
813
941
  children: e
814
942
  }
815
943
  );
816
944
  }
817
- function Be(e, t) {
818
- return t <= 7 ? Array.from({ length: t }, (r, a) => a + 1) : e <= 4 ? [1, 2, 3, 4, 5, "...", t] : e >= t - 3 ? [1, "...", t - 4, t - 3, t - 2, t - 1, t] : [1, "...", e - 1, e, e + 1, "...", t];
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];
819
947
  }
820
- function Ye({
948
+ function ht({
821
949
  currentPage: e,
822
- totalPages: t,
950
+ totalPages: n,
823
951
  totalItems: r,
824
952
  itemsPerPage: a = 10,
825
953
  onPageChange: o,
826
954
  variant: s = "full",
827
- className: c = "",
828
- ...i
955
+ className: l = "",
956
+ ...c
829
957
  }) {
830
- const m = Be(e, t), u = (e - 1) * a + 1, f = 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", d = `${p} w-9 h-9`, x = "bg-zeo-orange text-white", h = "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`;
831
- return /* @__PURE__ */ l(
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`;
959
+ return /* @__PURE__ */ i(
832
960
  "div",
833
961
  {
834
- className: ["flex items-center justify-between gap-4 flex-wrap", c].filter(Boolean).join(" "),
835
- ...i,
962
+ className: ["flex items-center justify-between gap-4 flex-wrap", l].filter(Boolean).join(" "),
963
+ ...c,
836
964
  children: [
837
- s === "full" && r !== void 0 && /* @__PURE__ */ l("p", { className: "text-sm text-on-surface-variant", children: [
965
+ s === "full" && r !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
838
966
  "Mostrando ",
839
- /* @__PURE__ */ l("strong", { children: [
840
- u,
967
+ /* @__PURE__ */ i("strong", { children: [
968
+ f,
841
969
  "–",
842
- f
970
+ m
843
971
  ] }),
844
972
  " de ",
845
- /* @__PURE__ */ n("strong", { children: r }),
973
+ /* @__PURE__ */ t("strong", { children: r }),
846
974
  " itens"
847
975
  ] }),
848
- /* @__PURE__ */ l("div", { className: "flex items-center gap-1 ml-auto", children: [
849
- /* @__PURE__ */ l(
976
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1 ml-auto", children: [
977
+ /* @__PURE__ */ i(
850
978
  "button",
851
979
  {
852
980
  onClick: () => o(e - 1),
853
981
  disabled: e === 1,
854
982
  "aria-label": "Página anterior",
855
- className: s === "icon" ? d + " " + h : w,
983
+ className: s === "icon" ? u + " " + x : v,
856
984
  children: [
857
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
985
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
858
986
  s === "text" && "Anterior"
859
987
  ]
860
988
  }
861
989
  ),
862
- m.map(
863
- (b, v) => b === "..." ? /* @__PURE__ */ n("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${v}`) : /* @__PURE__ */ n(
990
+ 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(
864
992
  "button",
865
993
  {
866
994
  onClick: () => o(b),
867
995
  "aria-current": e === b ? "page" : void 0,
868
- className: [d, e === b ? x : h].join(" "),
996
+ className: [u, e === b ? h : x].join(" "),
869
997
  children: b
870
998
  },
871
999
  b
872
1000
  )
873
1001
  ),
874
- /* @__PURE__ */ l(
1002
+ /* @__PURE__ */ i(
875
1003
  "button",
876
1004
  {
877
1005
  onClick: () => o(e + 1),
878
- disabled: e === t,
1006
+ disabled: e === n,
879
1007
  "aria-label": "Próxima página",
880
- className: s === "icon" ? d + " " + h : w,
1008
+ className: s === "icon" ? u + " " + x : v,
881
1009
  children: [
882
1010
  s === "text" && "Próxima",
883
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
1011
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
884
1012
  ]
885
1013
  }
886
1014
  )
@@ -889,122 +1017,541 @@ function Ye({
889
1017
  }
890
1018
  );
891
1019
  }
892
- const Ce = {
1020
+ const We = {
893
1021
  xs: "h-1",
894
1022
  sm: "h-1.5",
895
1023
  md: "h-2",
896
1024
  lg: "h-3"
897
- }, ze = {
1025
+ }, Ge = {
898
1026
  primary: "bg-zeo-orange",
899
1027
  success: "bg-green-500",
900
1028
  warning: "bg-amber-400",
901
1029
  danger: "bg-red-500"
902
1030
  };
903
- function Ze({
1031
+ function xt({
904
1032
  value: e,
905
- max: t = 100,
1033
+ max: n = 100,
906
1034
  size: r = "md",
907
1035
  variant: a = "primary",
908
1036
  label: o = "none",
909
1037
  showPercent: s = !0,
910
- title: c,
911
- className: i = "",
912
- ...m
1038
+ title: l,
1039
+ className: c = "",
1040
+ ...d
913
1041
  }) {
914
- const u = Math.min(100, Math.max(0, e / t * 100)), f = `${Math.round(u)}%`;
915
- return /* @__PURE__ */ l("div", { className: ["flex flex-col gap-1.5", i].filter(Boolean).join(" "), ...m, children: [
916
- (c || o === "outside" && s) && /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-2", children: [
917
- c && /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface", children: c }),
918
- o === "outside" && s && /* @__PURE__ */ n("span", { className: "text-sm font-semibold text-on-surface", children: f })
1042
+ const f = Math.min(100, Math.max(0, e / n * 100)), m = `${Math.round(f)}%`;
1043
+ 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: [
1045
+ 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 })
919
1047
  ] }),
920
- /* @__PURE__ */ n(
1048
+ /* @__PURE__ */ t(
921
1049
  "div",
922
1050
  {
923
1051
  role: "progressbar",
924
1052
  "aria-valuenow": e,
925
1053
  "aria-valuemin": 0,
926
- "aria-valuemax": t,
927
- className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", Ce[r]].join(" "),
928
- children: /* @__PURE__ */ n(
1054
+ "aria-valuemax": n,
1055
+ className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", We[r]].join(" "),
1056
+ children: /* @__PURE__ */ t(
929
1057
  "div",
930
1058
  {
931
1059
  className: [
932
1060
  "h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
933
- ze[a]
1061
+ Ge[a]
1062
+ ].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 })
1065
+ }
1066
+ )
1067
+ }
1068
+ )
1069
+ ] });
1070
+ }
1071
+ const X = (e, n) => typeof e == "function" ? e(n) : e;
1072
+ function bt({
1073
+ sidebar: e,
1074
+ navbar: n,
1075
+ children: r,
1076
+ defaultExpanded: a = !1,
1077
+ isExpanded: o,
1078
+ onToggle: s
1079
+ }) {
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 };
1083
+ return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden", children: [
1084
+ X(e, m),
1085
+ /* @__PURE__ */ i(
1086
+ "div",
1087
+ {
1088
+ className: [
1089
+ "flex-1 flex flex-col overflow-hidden transition-[margin-left] duration-shell ease-shell",
1090
+ d ? "ml-sidebar-expanded" : "ml-sidebar-collapsed"
1091
+ ].join(" "),
1092
+ children: [
1093
+ X(n, m),
1094
+ /* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container", children: r })
1095
+ ]
1096
+ }
1097
+ )
1098
+ ] });
1099
+ }
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(
1103
+ "div",
1104
+ {
1105
+ className: [
1106
+ "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"
1108
+ ].join(" "),
1109
+ children: [
1110
+ e.icon,
1111
+ /* @__PURE__ */ t(
1112
+ "span",
1113
+ {
1114
+ className: [
1115
+ "text-sm font-medium whitespace-nowrap overflow-hidden transition-opacity duration-shell",
1116
+ r ? "opacity-100" : "opacity-0 w-0"
934
1117
  ].join(" "),
935
- style: { width: `${u}%` },
936
- children: o === "inside" && s && u >= 20 && /* @__PURE__ */ n("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
1118
+ children: e.label
1119
+ }
1120
+ ),
1121
+ /* @__PURE__ */ i(
1122
+ "div",
1123
+ {
1124
+ role: "tooltip",
1125
+ className: [
1126
+ "absolute left-full ml-3 px-3 py-2 bg-white text-gray-700 text-sm font-medium",
1127
+ "rounded-lg shadow-theme-lg whitespace-nowrap z-[200] pointer-events-none",
1128
+ "invisible opacity-0 transition-all duration-150",
1129
+ s && "group-hover:visible group-hover:opacity-100"
1130
+ ].filter(Boolean).join(" "),
1131
+ 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" })
1134
+ ]
937
1135
  }
938
1136
  )
1137
+ ]
1138
+ }
1139
+ );
1140
+ return o ? /* @__PURE__ */ t("div", { children: l }) : a({ item: e, href: e.href, className: "block no-underline", children: l });
1141
+ }
1142
+ function Oe({ section: e, index: n = 0, activeId: r, isExpanded: a, renderLink: o }) {
1143
+ return /* @__PURE__ */ i(Y, { children: [
1144
+ e.label && /* @__PURE__ */ t(
1145
+ "div",
1146
+ {
1147
+ className: [
1148
+ "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" : ""
1151
+ ].join(" "),
1152
+ children: /* @__PURE__ */ t("span", { className: te, children: e.label })
1153
+ }
1154
+ ),
1155
+ e.items.map((s) => /* @__PURE__ */ t(
1156
+ ne,
1157
+ {
1158
+ item: s,
1159
+ isActive: s.id === r,
1160
+ isExpanded: a,
1161
+ renderLink: o
1162
+ },
1163
+ s.id
1164
+ ))
1165
+ ] });
1166
+ }
1167
+ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o }) {
1168
+ const s = e.filter((d) => d.placement !== "bottom"), l = e.filter((d) => d.placement === "bottom"), c = /* @__PURE__ */ t(
1169
+ "img",
1170
+ {
1171
+ src: a.src,
1172
+ alt: a.alt ?? "",
1173
+ className: [
1174
+ "flex-shrink-0",
1175
+ r ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
1176
+ ].join(" ")
1177
+ }
1178
+ );
1179
+ return /* @__PURE__ */ i(
1180
+ "aside",
1181
+ {
1182
+ className: [
1183
+ "fixed left-0 top-0 h-screen bg-sidebar flex flex-col z-[100]",
1184
+ "transition-[width] duration-shell ease-shell",
1185
+ "shadow-[40px_0_40px_0_rgba(0,0,0,0.04)]",
1186
+ r ? "w-sidebar-expanded" : "w-sidebar-collapsed"
1187
+ ].join(" "),
1188
+ children: [
1189
+ /* @__PURE__ */ t(
1190
+ "div",
1191
+ {
1192
+ className: [
1193
+ "h-[88px] flex items-center flex-shrink-0",
1194
+ r ? "px-6 justify-start" : "justify-center"
1195
+ ].join(" "),
1196
+ children: a.href ? /* @__PURE__ */ t("a", { href: a.href, "aria-label": a.alt, className: "flex-shrink-0", children: c }) : c
1197
+ }
1198
+ ),
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,
1201
+ {
1202
+ section: d,
1203
+ index: f,
1204
+ activeId: n,
1205
+ isExpanded: r,
1206
+ renderLink: o
1207
+ },
1208
+ d.id
1209
+ )) }),
1210
+ l.map((d) => /* @__PURE__ */ i("div", { className: "flex-shrink-0 pb-4", children: [
1211
+ d.label && /* @__PURE__ */ t(
1212
+ "div",
1213
+ {
1214
+ className: [
1215
+ "px-6 mb-2 overflow-hidden transition-all duration-shell",
1216
+ r ? "h-7 opacity-100" : "h-0 opacity-0"
1217
+ ].join(" "),
1218
+ children: /* @__PURE__ */ t("span", { className: te, children: d.label })
1219
+ }
1220
+ ),
1221
+ /* @__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,
1224
+ {
1225
+ item: f,
1226
+ isActive: f.id === n,
1227
+ isExpanded: r,
1228
+ renderLink: o
1229
+ },
1230
+ f.id
1231
+ )) })
1232
+ ] }, d.id))
1233
+ ]
1234
+ }
1235
+ );
1236
+ }
1237
+ function vt({
1238
+ onToggleMenu: e,
1239
+ start: n,
1240
+ search: r,
1241
+ actions: a,
1242
+ userMenu: o,
1243
+ toggleMenuLabel: s = "Alternar menu"
1244
+ }) {
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: [
1246
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
1247
+ /* @__PURE__ */ t(
1248
+ "button",
1249
+ {
1250
+ type: "button",
1251
+ onClick: e,
1252
+ "aria-label": s,
1253
+ 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 })
1255
+ }
1256
+ ),
1257
+ n,
1258
+ r
1259
+ ] }),
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
1264
+ ] })
1265
+ ] });
1266
+ }
1267
+ function wt({ module: e, project: n }) {
1268
+ return /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2 min-w-0", children: [
1269
+ /* @__PURE__ */ t("span", { className: "text-title-md font-bold text-on-surface whitespace-nowrap", children: e }),
1270
+ n && /* @__PURE__ */ i(Y, { children: [
1271
+ /* @__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 })
1273
+ ] })
1274
+ ] });
1275
+ }
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;
1280
+ const l = (c) => {
1281
+ var d;
1282
+ (c.metaKey || c.ctrlKey) && c.key === "k" && (c.preventDefault(), (d = s.current) == null || d.focus());
1283
+ };
1284
+ return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
1285
+ }, [o]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
1286
+ /* @__PURE__ */ t(
1287
+ k,
1288
+ {
1289
+ name: "search",
1290
+ size: 18,
1291
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-on-secondary-container pointer-events-none"
1292
+ }
1293
+ ),
1294
+ /* @__PURE__ */ t(
1295
+ "input",
1296
+ {
1297
+ ref: s,
1298
+ value: e,
1299
+ onChange: (l) => n(l.target.value),
1300
+ placeholder: r,
1301
+ "aria-label": r,
1302
+ className: [
1303
+ "w-full h-9 pl-10 rounded-lg",
1304
+ a ? "pr-[90px]" : "pr-3",
1305
+ "border border-transparent bg-surface-container",
1306
+ "text-sm text-on-surface font-sans placeholder:text-on-surface-variant",
1307
+ "outline-none transition-all",
1308
+ "focus:border-primary-container focus:shadow-zeo-focus focus:bg-surface-container-lowest"
1309
+ ].join(" ")
1310
+ }
1311
+ ),
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 })
1313
+ ] });
1314
+ }
1315
+ function re({ icon: e, label: n, badge: r = !1, className: a = "", type: o = "button", ...s }) {
1316
+ return /* @__PURE__ */ i(
1317
+ "button",
1318
+ {
1319
+ ...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(),
1323
+ children: [
1324
+ e,
1325
+ r && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
1326
+ ]
1327
+ }
1328
+ );
1329
+ }
1330
+ function Nt({ hasUnread: e = !1, count: n = 0, onClick: r, label: a = "Notificações" }) {
1331
+ return /* @__PURE__ */ t(
1332
+ re,
1333
+ {
1334
+ icon: /* @__PURE__ */ t(k, { name: "notifications", size: 20 }),
1335
+ label: a,
1336
+ badge: e || n > 0,
1337
+ onClick: r
1338
+ }
1339
+ );
1340
+ }
1341
+ function ae(e, n, r) {
1342
+ z(() => {
1343
+ if (!n) return;
1344
+ const a = (s) => {
1345
+ s.key === "Escape" && r();
1346
+ }, o = (s) => {
1347
+ var l;
1348
+ (l = e.current) != null && l.contains(s.target) || r();
1349
+ };
1350
+ return document.addEventListener("keydown", a), document.addEventListener("mousedown", o), () => {
1351
+ document.removeEventListener("keydown", a), document.removeEventListener("mousedown", o);
1352
+ };
1353
+ }, [e, n, r]);
1354
+ }
1355
+ const Ze = {
1356
+ myAccount: "Minha Conta",
1357
+ logout: "Sair",
1358
+ user: "Usuário"
1359
+ };
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: [
1363
+ /* @__PURE__ */ i(
1364
+ "button",
1365
+ {
1366
+ type: "button",
1367
+ onClick: () => f((u) => !u),
1368
+ "aria-haspopup": "true",
1369
+ "aria-expanded": d,
1370
+ 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
+ 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 }) })
1375
+ ]
1376
+ }
1377
+ ),
1378
+ d && /* @__PURE__ */ i(
1379
+ "div",
1380
+ {
1381
+ role: "menu",
1382
+ 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
+ children: [
1384
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-3 p-4", children: [
1385
+ /* @__PURE__ */ t(Z, { src: a, name: e, size: "sm" }),
1386
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
1387
+ /* @__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 })
1389
+ ] })
1390
+ ] }),
1391
+ /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
1392
+ /* @__PURE__ */ i(
1393
+ "button",
1394
+ {
1395
+ type: "button",
1396
+ role: "menuitem",
1397
+ onClick: () => {
1398
+ p(), o();
1399
+ },
1400
+ 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
+ children: [
1402
+ /* @__PURE__ */ t(k, { name: "person", size: 15 }),
1403
+ /* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.myAccount })
1404
+ ]
1405
+ }
1406
+ ),
1407
+ /* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
1408
+ /* @__PURE__ */ i(
1409
+ "button",
1410
+ {
1411
+ type: "button",
1412
+ role: "menuitem",
1413
+ onClick: () => {
1414
+ p(), s();
1415
+ },
1416
+ 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
+ children: [
1418
+ /* @__PURE__ */ t(k, { name: "logout", size: 15 }),
1419
+ /* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.logout })
1420
+ ]
1421
+ }
1422
+ )
1423
+ ]
1424
+ }
1425
+ )
1426
+ ] });
1427
+ }
1428
+ const Qe = {
1429
+ help: "Ajuda",
1430
+ documentation: "Documentação",
1431
+ faq: "F.A.Q.",
1432
+ changelog: "Changelog",
1433
+ contactUs: "Contate-nos"
1434
+ };
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: [
1438
+ /* @__PURE__ */ t(
1439
+ re,
1440
+ {
1441
+ icon: /* @__PURE__ */ t(k, { name: "help", size: 20 }),
1442
+ label: r.help,
1443
+ onClick: () => s((c) => !c),
1444
+ "aria-haspopup": "true",
1445
+ "aria-expanded": o
1446
+ }
1447
+ ),
1448
+ o && /* @__PURE__ */ i(
1449
+ "div",
1450
+ {
1451
+ role: "menu",
1452
+ 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
+ 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 }),
1457
+ /* @__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 })
1459
+ ]
939
1460
  }
940
1461
  )
941
1462
  ] });
942
1463
  }
943
- const $e = {
1464
+ function E({ icon: e, label: n, href: r = "#" }) {
1465
+ return /* @__PURE__ */ i(
1466
+ "a",
1467
+ {
1468
+ href: r,
1469
+ role: "menuitem",
1470
+ 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
+ children: [
1472
+ /* @__PURE__ */ t(k, { name: e, size: 18, className: "opacity-70" }),
1473
+ n
1474
+ ]
1475
+ }
1476
+ );
1477
+ }
1478
+ const Ct = [
1479
+ { id: "tower", status: "active", iconName: "cell_tower", labelKey: "modules.tower.title" },
1480
+ { id: "antennas", status: "active", iconName: "settings_input_antenna", labelKey: "modules.antennas.title" },
1481
+ { 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" }
1486
+ ];
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) }));
1489
+ }
1490
+ const Je = {
944
1491
  xs: "w-3 h-3 border",
945
1492
  sm: "w-4 h-4 border-2",
946
1493
  md: "w-6 h-6 border-2",
947
1494
  lg: "w-8 h-8 border-[3px]",
948
1495
  xl: "w-12 h-12 border-4"
949
- }, _e = {
1496
+ }, Xe = {
950
1497
  primary: "border-orange-200 border-t-zeo-orange",
951
1498
  secondary: "border-surface-container-high border-t-on-surface-variant",
952
1499
  white: "border-white/30 border-t-white"
953
1500
  };
954
- function Pe({
1501
+ function Lt({
955
1502
  size: e = "md",
956
- variant: t = "primary",
1503
+ variant: n = "primary",
957
1504
  label: r = "Carregando...",
958
1505
  className: a = "",
959
1506
  ...o
960
1507
  }) {
961
- return /* @__PURE__ */ n(
1508
+ return /* @__PURE__ */ t(
962
1509
  "span",
963
1510
  {
964
1511
  role: "status",
965
1512
  "aria-label": r,
966
1513
  className: [
967
1514
  "inline-block rounded-full animate-spin",
968
- $e[e],
969
- _e[t],
1515
+ Je[e],
1516
+ Xe[n],
970
1517
  a
971
1518
  ].filter(Boolean).join(" "),
972
1519
  ...o
973
1520
  }
974
1521
  );
975
1522
  }
976
- function et({ children: e, className: t = "", ...r }) {
977
- return /* @__PURE__ */ n(
1523
+ function zt({ children: e, className: n = "", ...r }) {
1524
+ return /* @__PURE__ */ t(
978
1525
  "div",
979
1526
  {
980
- className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", t].filter(Boolean).join(" "),
1527
+ className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", n].filter(Boolean).join(" "),
981
1528
  ...r,
982
- children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: e })
1529
+ children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: e })
983
1530
  }
984
1531
  );
985
1532
  }
986
- function tt({ children: e, className: t = "", ...r }) {
987
- return /* @__PURE__ */ n(
1533
+ function _t({ children: e, className: n = "", ...r }) {
1534
+ return /* @__PURE__ */ t(
988
1535
  "thead",
989
1536
  {
990
- className: ["bg-surface-container-low border-b border-surface-container-high", t].filter(Boolean).join(" "),
1537
+ className: ["bg-surface-container-low border-b border-surface-container-high", n].filter(Boolean).join(" "),
991
1538
  ...r,
992
1539
  children: e
993
1540
  }
994
1541
  );
995
1542
  }
996
- function rt({ children: e, className: t = "", ...r }) {
997
- return /* @__PURE__ */ n(
1543
+ function Mt({ children: e, className: n = "", ...r }) {
1544
+ return /* @__PURE__ */ t(
998
1545
  "tbody",
999
1546
  {
1000
- className: ["bg-white divide-y divide-surface-container-high", t].filter(Boolean).join(" "),
1547
+ className: ["bg-white divide-y divide-surface-container-high", n].filter(Boolean).join(" "),
1001
1548
  ...r,
1002
1549
  children: e
1003
1550
  }
1004
1551
  );
1005
1552
  }
1006
- function nt({ selected: e = !1, children: t, className: r = "", ...a }) {
1007
- return /* @__PURE__ */ n(
1553
+ function $t({ selected: e = !1, children: n, className: r = "", ...a }) {
1554
+ return /* @__PURE__ */ t(
1008
1555
  "tr",
1009
1556
  {
1010
1557
  className: [
@@ -1013,19 +1560,19 @@ function nt({ selected: e = !1, children: t, className: r = "", ...a }) {
1013
1560
  r
1014
1561
  ].filter(Boolean).join(" "),
1015
1562
  ...a,
1016
- children: t
1563
+ children: n
1017
1564
  }
1018
1565
  );
1019
1566
  }
1020
- function at({
1567
+ function It({
1021
1568
  sortable: e = !1,
1022
- sorted: t = !1,
1569
+ sorted: n = !1,
1023
1570
  onSort: r,
1024
1571
  children: a,
1025
1572
  className: o = "",
1026
1573
  ...s
1027
1574
  }) {
1028
- return /* @__PURE__ */ n(
1575
+ return /* @__PURE__ */ t(
1029
1576
  "th",
1030
1577
  {
1031
1578
  className: [
@@ -1035,27 +1582,27 @@ function at({
1035
1582
  ].filter(Boolean).join(" "),
1036
1583
  onClick: e ? r : void 0,
1037
1584
  ...s,
1038
- children: /* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1", children: [
1585
+ children: /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
1039
1586
  a,
1040
- e && /* @__PURE__ */ n(
1587
+ e && /* @__PURE__ */ t(
1041
1588
  "span",
1042
1589
  {
1043
- className: `material-symbols-outlined text-[14px] ${t ? "text-zeo-orange" : "opacity-40"}`,
1044
- children: t === "asc" ? "arrow_upward" : t === "desc" ? "arrow_downward" : "unfold_more"
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"
1045
1592
  }
1046
1593
  )
1047
1594
  ] })
1048
1595
  }
1049
1596
  );
1050
1597
  }
1051
- function ot({ muted: e = !1, mono: t = !1, children: r, className: a = "", ...o }) {
1052
- return /* @__PURE__ */ n(
1598
+ function At({ muted: e = !1, mono: n = !1, children: r, className: a = "", ...o }) {
1599
+ return /* @__PURE__ */ t(
1053
1600
  "td",
1054
1601
  {
1055
1602
  className: [
1056
1603
  "px-4 py-3",
1057
1604
  e ? "text-on-surface-variant" : "text-on-surface",
1058
- t ? "font-mono text-xs" : "",
1605
+ n ? "font-mono text-xs" : "",
1059
1606
  a
1060
1607
  ].filter(Boolean).join(" "),
1061
1608
  ...o,
@@ -1063,61 +1610,61 @@ function ot({ muted: e = !1, mono: t = !1, children: r, className: a = "", ...o
1063
1610
  }
1064
1611
  );
1065
1612
  }
1066
- const q = V(null);
1067
- function R() {
1068
- const e = W(q);
1613
+ const oe = P(null);
1614
+ function H() {
1615
+ const e = ee(oe);
1069
1616
  if (!e) throw new Error("Tab must be used inside Tabs");
1070
1617
  return e;
1071
1618
  }
1072
- const O = V({ stretch: !1 });
1073
- function st({ value: e, onChange: t, variant: r = "default", children: a }) {
1074
- return /* @__PURE__ */ n(q.Provider, { value: { active: e, onChange: t, variant: r }, children: /* @__PURE__ */ n("div", { className: r === "vertical" ? "flex gap-6" : "flex flex-col gap-4", children: a }) });
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 }) });
1075
1622
  }
1076
- function lt({ children: e, className: t = "", stretch: r = !1, ...a }) {
1077
- const { variant: o } = R(), s = {
1623
+ function Tt({ children: e, className: n = "", stretch: r = !1, ...a }) {
1624
+ const { variant: o } = H(), s = {
1078
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",
1079
1626
  underline: "flex gap-0 border-b border-surface-container-high w-full",
1080
1627
  vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
1081
1628
  }[o];
1082
- return /* @__PURE__ */ n(O.Provider, { value: { stretch: r }, children: /* @__PURE__ */ n(
1629
+ return /* @__PURE__ */ t(se.Provider, { value: { stretch: r }, children: /* @__PURE__ */ t(
1083
1630
  "div",
1084
1631
  {
1085
1632
  role: "tablist",
1086
- className: [s, t].filter(Boolean).join(" "),
1633
+ className: [s, n].filter(Boolean).join(" "),
1087
1634
  ...a,
1088
1635
  children: e
1089
1636
  }
1090
1637
  ) });
1091
1638
  }
1092
- function it({ value: e, label: t, icon: r, badge: a, disabled: o = !1 }) {
1093
- const { active: s, onChange: c, variant: i } = R(), { stretch: m } = W(O), u = 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", d = m && i !== "vertical" ? "flex-1 justify-center" : "", x = {
1094
- default: u ? "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",
1095
- underline: u ? "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",
1096
- vertical: u ? "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"
1097
- }[i];
1098
- return /* @__PURE__ */ l(
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"
1644
+ }[c];
1645
+ return /* @__PURE__ */ i(
1099
1646
  "button",
1100
1647
  {
1101
1648
  role: "tab",
1102
- "aria-selected": u,
1649
+ "aria-selected": f,
1103
1650
  "aria-disabled": o,
1104
1651
  disabled: o,
1105
- onClick: () => !o && c(e),
1106
- className: [f, x, d, o ? p : ""].filter(Boolean).join(" "),
1652
+ onClick: () => !o && l(e),
1653
+ className: [m, h, u, o ? p : ""].filter(Boolean).join(" "),
1107
1654
  children: [
1108
- r && /* @__PURE__ */ n(
1655
+ r && /* @__PURE__ */ t(
1109
1656
  "span",
1110
1657
  {
1111
1658
  className: "material-symbols-outlined text-[18px]",
1112
- style: u ? { fontVariationSettings: "'FILL' 1" } : void 0,
1659
+ style: f ? { fontVariationSettings: "'FILL' 1" } : void 0,
1113
1660
  children: r
1114
1661
  }
1115
1662
  ),
1116
- t,
1117
- a !== void 0 && /* @__PURE__ */ n(
1663
+ n,
1664
+ a !== void 0 && /* @__PURE__ */ t(
1118
1665
  "span",
1119
1666
  {
1120
- className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${u ? "bg-zeo-orange text-white" : "bg-surface-container-high text-on-surface-variant"}`,
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"}`,
1121
1668
  children: a
1122
1669
  }
1123
1670
  )
@@ -1125,18 +1672,18 @@ function it({ value: e, label: t, icon: r, badge: a, disabled: o = !1 }) {
1125
1672
  }
1126
1673
  );
1127
1674
  }
1128
- function ct({ value: e, children: t, className: r = "", stretch: a = !1 }) {
1129
- const { active: o } = R();
1130
- return o !== e ? null : /* @__PURE__ */ n(
1675
+ function Ft({ value: e, children: n, className: r = "", stretch: a = !1 }) {
1676
+ const { active: o } = H();
1677
+ return o !== e ? null : /* @__PURE__ */ t(
1131
1678
  "div",
1132
1679
  {
1133
1680
  role: "tabpanel",
1134
1681
  className: [a ? "flex-1" : "", r].filter(Boolean).join(" "),
1135
- children: t
1682
+ children: n
1136
1683
  }
1137
1684
  );
1138
1685
  }
1139
- const Ie = {
1686
+ const Ye = {
1140
1687
  top: {
1141
1688
  wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
1142
1689
  arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
@@ -1153,22 +1700,22 @@ const Ie = {
1153
1700
  wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
1154
1701
  arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
1155
1702
  }
1156
- }, Le = {
1703
+ }, Pe = {
1157
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" },
1158
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" }
1159
1706
  };
1160
- function dt({
1707
+ function Rt({
1161
1708
  content: e,
1162
- position: t = "top",
1709
+ position: n = "top",
1163
1710
  variant: r = "dark",
1164
1711
  children: a,
1165
1712
  className: o = "",
1166
1713
  ...s
1167
1714
  }) {
1168
- const c = Ie[t], i = Le[r];
1169
- return /* @__PURE__ */ l("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
1715
+ const l = Ye[n], c = Pe[r];
1716
+ return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
1170
1717
  a,
1171
- /* @__PURE__ */ l(
1718
+ /* @__PURE__ */ i(
1172
1719
  "div",
1173
1720
  {
1174
1721
  role: "tooltip",
@@ -1176,139 +1723,68 @@ function dt({
1176
1723
  "absolute z-50 pointer-events-none",
1177
1724
  "opacity-0 group-hover:opacity-100 transition-opacity duration-150",
1178
1725
  "whitespace-nowrap text-xs font-medium px-2.5 py-1.5 rounded-lg",
1179
- c.wrapper,
1180
- i.tooltip
1726
+ l.wrapper,
1727
+ c.tooltip
1181
1728
  ].join(" "),
1182
1729
  children: [
1183
1730
  e,
1184
- /* @__PURE__ */ n("span", { className: ["absolute w-0 h-0", c.arrow, i.arrow].join(" ") })
1731
+ /* @__PURE__ */ t("span", { className: ["absolute w-0 h-0", l.arrow, c.arrow].join(" ") })
1185
1732
  ]
1186
1733
  }
1187
1734
  )
1188
1735
  ] });
1189
1736
  }
1190
- const Te = {
1191
- sm: "px-3 py-1.5 text-sm h-8",
1192
- md: "px-3 py-2 text-sm h-10",
1193
- lg: "px-4 py-2.5 text-base h-11"
1194
- };
1195
- function Fe(e, t, r) {
1196
- if (e === "" || e === void 0 || e === null) return "";
1197
- const a = Number(e).toFixed(t);
1198
- return r ? `${a} ${r}` : a;
1199
- }
1200
- const Ee = N(
1201
- ({
1202
- label: e,
1203
- hint: t,
1204
- error: r,
1205
- unit: a = "",
1206
- decimals: o = 0,
1207
- value: s,
1208
- defaultValue: c,
1209
- onChange: i,
1210
- disabled: m,
1211
- placeholder: u,
1212
- inputSize: f = "md",
1213
- id: p,
1214
- name: d,
1215
- min: x,
1216
- max: h,
1217
- step: w,
1218
- required: b,
1219
- className: v = ""
1220
- }, g) => {
1221
- const S = ee(), z = p ?? S, j = s !== void 0, [L, T] = C(
1222
- c !== void 0 ? c : ""
1223
- ), [k, A] = C(!1), [F, H] = C(""), K = M(null), $ = j ? s : L, J = k ? F : Fe($, o, a), Q = B(() => {
1224
- A(!0), H($ === "" ? "" : String($));
1225
- }, [$]), X = B(() => {
1226
- A(!1);
1227
- const y = parseFloat(F.replace(",", ".")), D = isNaN(y) ? "" : y;
1228
- j || T(D), i == null || i(D);
1229
- }, [F, j, i]), Y = B((y) => {
1230
- H(y.target.value);
1231
- }, []), Z = B(
1232
- (y) => {
1233
- K.current = y, typeof g == "function" ? g(y) : g && (g.current = y);
1234
- },
1235
- [g]
1236
- );
1237
- return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
1238
- e && /* @__PURE__ */ n("label", { htmlFor: z, className: "text-sm font-medium text-on-surface", children: e }),
1239
- /* @__PURE__ */ n(
1240
- "input",
1241
- {
1242
- ref: Z,
1243
- id: z,
1244
- name: d,
1245
- type: k ? "number" : "text",
1246
- inputMode: "decimal",
1247
- value: J,
1248
- placeholder: u,
1249
- disabled: m,
1250
- required: b,
1251
- min: x,
1252
- max: h,
1253
- step: w ?? (o > 0 ? Math.pow(10, -o) : 1),
1254
- onFocus: Q,
1255
- onBlur: X,
1256
- onChange: Y,
1257
- className: [
1258
- "w-full bg-white border rounded transition-all duration-200",
1259
- "text-on-surface placeholder:text-on-surface-variant",
1260
- "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
1261
- r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
1262
- "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
1263
- "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
1264
- Te[f],
1265
- v
1266
- ].filter(Boolean).join(" ")
1267
- }
1268
- ),
1269
- r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
1270
- /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
1271
- r
1272
- ] }),
1273
- !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
1274
- ] });
1275
- }
1276
- );
1277
- Ee.displayName = "UnitInput";
1278
1737
  export {
1279
- Ae as Alert,
1280
- He as Avatar,
1281
- De as Badge,
1282
- Ge as Breadcrumb,
1283
- me as Button,
1284
- Ue as ButtonGroup,
1285
- Ve as Card,
1286
- qe as CardFooter,
1287
- We as CardHeader,
1288
- we as Checkbox,
1289
- Oe as Dropdown,
1290
- je as Input,
1291
- Ke as Modal,
1292
- Qe as ModalBody,
1293
- Xe as ModalFooter,
1294
- Je as ModalHeader,
1295
- Ye as Pagination,
1296
- Ze as ProgressBar,
1297
- ve as Radio,
1298
- he as Select,
1299
- Pe as Spinner,
1300
- ye as Switch,
1301
- it as Tab,
1302
- lt as TabList,
1303
- ct as TabPanel,
1304
- et as Table,
1305
- rt as TableBody,
1306
- ot as TableCell,
1307
- tt as TableHead,
1308
- at as TableHeaderCell,
1309
- nt as TableRow,
1310
- st as Tabs,
1311
- be as Textarea,
1312
- dt as Tooltip,
1313
- Ee as UnitInput
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
1314
1790
  };