@zeo-app/design-system 0.1.0 → 0.2.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,6 +1,6 @@
1
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as x, useState as k, useRef as z, useEffect as w, createContext as $, useContext as _ } from "react";
3
- const T = {
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as b, useState as k, useRef as A, useEffect as _, createContext as D, useContext as R, useId as Y, useCallback as j } from "react";
3
+ const Z = {
4
4
  info: {
5
5
  container: "bg-blue-50 border-blue-200 text-blue-800",
6
6
  icon: "text-blue-500",
@@ -22,67 +22,67 @@ const T = {
22
22
  defaultIcon: "error"
23
23
  }
24
24
  };
25
- function le({
25
+ function Le({
26
26
  variant: e = "info",
27
27
  title: t,
28
28
  children: r,
29
- onClose: n,
29
+ onClose: a,
30
30
  icon: o,
31
- className: l = "",
32
- ...c
31
+ className: s = "",
32
+ ...i
33
33
  }) {
34
- const d = T[e], i = o ?? d.defaultIcon;
35
- return /* @__PURE__ */ s(
34
+ const d = Z[e], c = o ?? d.defaultIcon;
35
+ return /* @__PURE__ */ l(
36
36
  "div",
37
37
  {
38
38
  role: "alert",
39
39
  className: [
40
40
  "flex gap-3 p-4 rounded-lg border",
41
41
  d.container,
42
- l
42
+ s
43
43
  ].filter(Boolean).join(" "),
44
- ...c,
44
+ ...i,
45
45
  children: [
46
- /* @__PURE__ */ a("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${d.icon}`, children: i }),
47
- /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
48
- t && /* @__PURE__ */ a("p", { className: "font-semibold text-sm mb-0.5", children: t }),
49
- /* @__PURE__ */ a("div", { className: "text-sm leading-relaxed", children: r })
46
+ /* @__PURE__ */ n("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${d.icon}`, children: c }),
47
+ /* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: [
48
+ t && /* @__PURE__ */ n("p", { className: "font-semibold text-sm mb-0.5", children: t }),
49
+ /* @__PURE__ */ n("div", { className: "text-sm leading-relaxed", children: r })
50
50
  ] }),
51
- n && /* @__PURE__ */ a(
51
+ a && /* @__PURE__ */ n(
52
52
  "button",
53
53
  {
54
- onClick: n,
54
+ onClick: a,
55
55
  className: "shrink-0 opacity-70 hover:opacity-100 transition-opacity",
56
56
  "aria-label": "Fechar alerta",
57
- children: /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
57
+ children: /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
58
58
  }
59
59
  )
60
60
  ]
61
61
  }
62
62
  );
63
63
  }
64
- const F = {
64
+ const P = {
65
65
  xs: "w-6 h-6 text-[10px]",
66
66
  sm: "w-8 h-8 text-xs",
67
67
  md: "w-10 h-10 text-sm",
68
68
  lg: "w-12 h-12 text-base",
69
69
  xl: "w-16 h-16 text-lg"
70
- }, I = {
70
+ }, ee = {
71
71
  xs: "w-1.5 h-1.5",
72
72
  sm: "w-2 h-2",
73
73
  md: "w-2.5 h-2.5",
74
74
  lg: "w-3 h-3",
75
75
  xl: "w-3.5 h-3.5"
76
- }, L = {
76
+ }, te = {
77
77
  online: "bg-green-500",
78
78
  offline: "bg-gray-400",
79
79
  busy: "bg-red-500",
80
80
  away: "bg-yellow-400"
81
81
  };
82
- function E(e) {
82
+ function re(e) {
83
83
  return e.split(" ").slice(0, 2).map((t) => t[0]).join("").toUpperCase();
84
84
  }
85
- function S(e) {
85
+ function ne(e) {
86
86
  const t = [
87
87
  "bg-orange-100 text-orange-700",
88
88
  "bg-blue-100 text-blue-700",
@@ -93,178 +93,178 @@ function S(e) {
93
93
  ], r = e.charCodeAt(0) % t.length;
94
94
  return t[r];
95
95
  }
96
- function ie({
96
+ function Se({
97
97
  src: e,
98
98
  alt: t = "",
99
99
  name: r,
100
- size: n = "md",
100
+ size: a = "md",
101
101
  status: o,
102
- className: l = "",
103
- ...c
102
+ className: s = "",
103
+ ...i
104
104
  }) {
105
- return /* @__PURE__ */ s("div", { className: ["relative inline-flex shrink-0", l].filter(Boolean).join(" "), ...c, children: [
106
- /* @__PURE__ */ a(
105
+ return /* @__PURE__ */ l("div", { className: ["relative inline-flex shrink-0", s].filter(Boolean).join(" "), ...i, children: [
106
+ /* @__PURE__ */ n(
107
107
  "div",
108
108
  {
109
109
  className: [
110
110
  "rounded-full overflow-hidden flex items-center justify-center font-semibold",
111
- F[n],
112
- !e && r ? S(r) : "bg-surface-container"
111
+ P[a],
112
+ !e && r ? ne(r) : "bg-surface-container"
113
113
  ].filter(Boolean).join(" "),
114
- children: e ? /* @__PURE__ */ a(
114
+ children: e ? /* @__PURE__ */ n(
115
115
  "img",
116
116
  {
117
117
  src: e,
118
118
  alt: t || r,
119
119
  className: "w-full h-full object-cover"
120
120
  }
121
- ) : r ? E(r) : /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
121
+ ) : r ? re(r) : /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
122
122
  }
123
123
  ),
124
- o && /* @__PURE__ */ a(
124
+ o && /* @__PURE__ */ n(
125
125
  "span",
126
126
  {
127
127
  className: [
128
128
  "absolute bottom-0 right-0 rounded-full border-2 border-white",
129
- I[n],
130
- L[o]
129
+ ee[a],
130
+ te[o]
131
131
  ].filter(Boolean).join(" ")
132
132
  }
133
133
  )
134
134
  ] });
135
135
  }
136
- const M = {
136
+ const ae = {
137
137
  default: "bg-surface-container text-on-surface-variant",
138
138
  primary: "bg-orange-100 text-orange-700",
139
139
  success: "bg-green-100 text-green-700",
140
140
  warning: "bg-yellow-100 text-yellow-700",
141
141
  danger: "bg-red-100 text-red-700",
142
142
  info: "bg-blue-100 text-blue-700"
143
- }, A = {
143
+ }, oe = {
144
144
  default: "bg-on-surface-variant",
145
145
  primary: "bg-orange-500",
146
146
  success: "bg-green-500",
147
147
  warning: "bg-yellow-500",
148
148
  danger: "bg-red-500",
149
149
  info: "bg-blue-500"
150
- }, D = {
150
+ }, se = {
151
151
  sm: "px-2 py-0.5 text-xs gap-1",
152
152
  md: "px-2.5 py-1 text-xs gap-1.5"
153
153
  };
154
- function ce({
154
+ function Me({
155
155
  variant: e = "default",
156
156
  size: t = "md",
157
157
  dot: r = !1,
158
- icon: n,
158
+ icon: a,
159
159
  children: o,
160
- className: l = "",
161
- ...c
160
+ className: s = "",
161
+ ...i
162
162
  }) {
163
- return /* @__PURE__ */ s(
163
+ return /* @__PURE__ */ l(
164
164
  "span",
165
165
  {
166
166
  className: [
167
167
  "inline-flex items-center font-medium rounded-full",
168
- M[e],
169
- D[t],
170
- l
168
+ ae[e],
169
+ se[t],
170
+ s
171
171
  ].filter(Boolean).join(" "),
172
- ...c,
172
+ ...i,
173
173
  children: [
174
- r && /* @__PURE__ */ a("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${A[e]}` }),
175
- n && !r && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[12px]", children: n }),
174
+ r && /* @__PURE__ */ n("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${oe[e]}` }),
175
+ a && !r && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[12px]", children: a }),
176
176
  o
177
177
  ]
178
178
  }
179
179
  );
180
180
  }
181
- function de({ items: e, className: t = "", ...r }) {
182
- return /* @__PURE__ */ a("nav", { "aria-label": "Breadcrumb", className: t, ...r, children: /* @__PURE__ */ a("ol", { className: "inline-flex items-center gap-1.5 text-sm flex-wrap", children: e.map((n, o) => {
183
- const l = o === e.length - 1;
184
- return /* @__PURE__ */ s("li", { className: "flex items-center gap-1.5", children: [
185
- o > 0 && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
186
- l ? /* @__PURE__ */ s(
181
+ function Ee({ items: e, className: t = "", ...r }) {
182
+ 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) => {
183
+ const s = o === e.length - 1;
184
+ return /* @__PURE__ */ l("li", { className: "flex items-center gap-1.5", children: [
185
+ o > 0 && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
186
+ s ? /* @__PURE__ */ l(
187
187
  "span",
188
188
  {
189
189
  "aria-current": "page",
190
190
  className: "font-semibold text-on-surface flex items-center gap-1",
191
191
  children: [
192
- n.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] leading-none", children: n.icon }),
193
- n.label
192
+ a.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
193
+ a.label
194
194
  ]
195
195
  }
196
- ) : /* @__PURE__ */ s(
196
+ ) : /* @__PURE__ */ l(
197
197
  "a",
198
198
  {
199
- href: n.href ?? "#",
199
+ href: a.href ?? "#",
200
200
  className: "text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",
201
201
  children: [
202
- n.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] leading-none", children: n.icon }),
203
- n.label
202
+ a.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] leading-none", children: a.icon }),
203
+ a.label
204
204
  ]
205
205
  }
206
206
  )
207
207
  ] }, o);
208
208
  }) }) });
209
209
  }
210
- const H = {
210
+ const le = {
211
211
  primary: "bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",
212
212
  secondary: "bg-white text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
213
213
  ghost: "bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
214
214
  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)]",
215
215
  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)]"
216
- }, R = {
216
+ }, ie = {
217
217
  sm: "px-3 py-1.5 text-sm gap-1.5 h-8",
218
218
  md: "px-4 py-2 text-sm gap-2 h-10",
219
219
  lg: "px-5 py-2.5 text-base gap-2 h-11"
220
- }, g = {
220
+ }, $ = {
221
221
  sm: "text-[16px]",
222
222
  md: "text-[18px]",
223
223
  lg: "text-[20px]"
224
- }, q = x(
224
+ }, ce = b(
225
225
  ({
226
226
  variant: e = "primary",
227
227
  size: t = "md",
228
228
  loading: r = !1,
229
- iconLeft: n,
229
+ iconLeft: a,
230
230
  iconRight: o,
231
- fullWidth: l = !1,
232
- disabled: c,
231
+ fullWidth: s = !1,
232
+ disabled: i,
233
233
  children: d,
234
- className: i = "",
234
+ className: c = "",
235
235
  ...u
236
- }, f) => /* @__PURE__ */ s(
236
+ }, f) => /* @__PURE__ */ l(
237
237
  "button",
238
238
  {
239
239
  ref: f,
240
- disabled: c || r,
240
+ disabled: i || r,
241
241
  className: [
242
242
  "inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none",
243
243
  "focus:outline-none",
244
244
  "disabled:opacity-50 disabled:cursor-not-allowed",
245
- H[e],
246
- R[t],
247
- l ? "w-full" : "",
248
- i
245
+ le[e],
246
+ ie[t],
247
+ s ? "w-full" : "",
248
+ c
249
249
  ].filter(Boolean).join(" "),
250
250
  ...u,
251
251
  children: [
252
- r ? /* @__PURE__ */ a(
252
+ r ? /* @__PURE__ */ n(
253
253
  "span",
254
254
  {
255
- className: `material-symbols-outlined animate-spin ${g[t]}`,
255
+ className: `material-symbols-outlined animate-spin ${$[t]}`,
256
256
  children: "progress_activity"
257
257
  }
258
- ) : n && /* @__PURE__ */ a("span", { className: `material-symbols-outlined ${g[t]}`, children: n }),
258
+ ) : a && /* @__PURE__ */ n("span", { className: `material-symbols-outlined ${$[t]}`, children: a }),
259
259
  d,
260
- !r && o && /* @__PURE__ */ a("span", { className: `material-symbols-outlined ${g[t]}`, children: o })
260
+ !r && o && /* @__PURE__ */ n("span", { className: `material-symbols-outlined ${$[t]}`, children: o })
261
261
  ]
262
262
  }
263
263
  )
264
264
  );
265
- q.displayName = "Button";
266
- function ue({ children: e, attached: t = !1, className: r = "", ...n }) {
267
- return /* @__PURE__ */ a(
265
+ ce.displayName = "Button";
266
+ function Ae({ children: e, attached: t = !1, className: r = "", ...a }) {
267
+ return /* @__PURE__ */ n(
268
268
  "div",
269
269
  {
270
270
  role: "group",
@@ -273,69 +273,69 @@ function ue({ children: e, attached: t = !1, className: r = "", ...n }) {
273
273
  t ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
274
274
  r
275
275
  ].filter(Boolean).join(" "),
276
- ...n,
276
+ ...a,
277
277
  children: e
278
278
  }
279
279
  );
280
280
  }
281
- const G = {
281
+ const de = {
282
282
  elevated: "bg-white shadow-theme-lg border border-surface-container-high",
283
283
  outlined: "bg-white border border-outline-variant",
284
284
  filled: "bg-surface-container-low border border-transparent"
285
- }, K = {
285
+ }, ue = {
286
286
  none: "",
287
287
  sm: "p-4",
288
288
  md: "p-5",
289
289
  lg: "p-6"
290
290
  };
291
- function fe({
291
+ function De({
292
292
  variant: e = "elevated",
293
293
  padding: t = "md",
294
294
  children: r,
295
- className: n = "",
295
+ className: a = "",
296
296
  ...o
297
297
  }) {
298
- return /* @__PURE__ */ a(
298
+ return /* @__PURE__ */ n(
299
299
  "div",
300
300
  {
301
301
  className: [
302
302
  "rounded-xl overflow-hidden",
303
- G[e],
304
- n
303
+ de[e],
304
+ a
305
305
  ].filter(Boolean).join(" "),
306
306
  ...o,
307
- children: /* @__PURE__ */ a("div", { className: K[t], children: r })
307
+ children: /* @__PURE__ */ n("div", { className: ue[t], children: r })
308
308
  }
309
309
  );
310
310
  }
311
- function me({
311
+ function Re({
312
312
  title: e,
313
313
  subtitle: t,
314
314
  action: r,
315
- icon: n,
315
+ icon: a,
316
316
  className: o = "",
317
- ...l
317
+ ...s
318
318
  }) {
319
- return /* @__PURE__ */ s(
319
+ return /* @__PURE__ */ l(
320
320
  "div",
321
321
  {
322
322
  className: ["flex items-start justify-between gap-4 pb-4", o].filter(Boolean).join(" "),
323
- ...l,
323
+ ...s,
324
324
  children: [
325
- /* @__PURE__ */ s("div", { className: "flex items-center gap-3 min-w-0", children: [
326
- n && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: n }),
327
- /* @__PURE__ */ s("div", { className: "min-w-0", children: [
328
- /* @__PURE__ */ a("h3", { className: "text-base font-semibold text-on-surface truncate", children: e }),
329
- t && /* @__PURE__ */ a("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
325
+ /* @__PURE__ */ l("div", { className: "flex items-center gap-3 min-w-0", children: [
326
+ a && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: a }),
327
+ /* @__PURE__ */ l("div", { className: "min-w-0", children: [
328
+ /* @__PURE__ */ n("h3", { className: "text-base font-semibold text-on-surface truncate", children: e }),
329
+ t && /* @__PURE__ */ n("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
330
330
  ] })
331
331
  ] }),
332
- r && /* @__PURE__ */ a("div", { className: "shrink-0", children: r })
332
+ r && /* @__PURE__ */ n("div", { className: "shrink-0", children: r })
333
333
  ]
334
334
  }
335
335
  );
336
336
  }
337
- function xe({ children: e, className: t = "", ...r }) {
338
- return /* @__PURE__ */ a(
337
+ function He({ children: e, className: t = "", ...r }) {
338
+ return /* @__PURE__ */ n(
339
339
  "div",
340
340
  {
341
341
  className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", t].filter(Boolean).join(" "),
@@ -344,21 +344,21 @@ function xe({ children: e, className: t = "", ...r }) {
344
344
  }
345
345
  );
346
346
  }
347
- function pe({ trigger: e, items: t, align: r = "right", className: n = "", ...o }) {
348
- const [l, c] = k(!1), d = z(null);
349
- return w(() => {
350
- const i = (u) => {
351
- d.current && !d.current.contains(u.target) && c(!1);
347
+ function Ve({ trigger: e, items: t, align: r = "right", className: a = "", ...o }) {
348
+ const [s, i] = k(!1), d = A(null);
349
+ return _(() => {
350
+ const c = (u) => {
351
+ d.current && !d.current.contains(u.target) && i(!1);
352
352
  };
353
- return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
354
- }, []), w(() => {
355
- const i = (u) => {
356
- u.key === "Escape" && c(!1);
353
+ return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
354
+ }, []), _(() => {
355
+ const c = (u) => {
356
+ u.key === "Escape" && i(!1);
357
357
  };
358
- return document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i);
359
- }, []), /* @__PURE__ */ s("div", { ref: d, className: ["relative inline-block", n].filter(Boolean).join(" "), ...o, children: [
360
- /* @__PURE__ */ a("div", { onClick: () => c((i) => !i), children: e }),
361
- l && /* @__PURE__ */ a(
358
+ return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
359
+ }, []), /* @__PURE__ */ l("div", { ref: d, className: ["relative inline-block", a].filter(Boolean).join(" "), ...o, children: [
360
+ /* @__PURE__ */ n("div", { onClick: () => i((c) => !c), children: e }),
361
+ s && /* @__PURE__ */ n(
362
362
  "div",
363
363
  {
364
364
  className: [
@@ -366,82 +366,82 @@ function pe({ trigger: e, items: t, align: r = "right", className: n = "", ...o
366
366
  r === "right" ? "right-0" : "left-0"
367
367
  ].join(" "),
368
368
  role: "menu",
369
- children: t.map((i, u) => /* @__PURE__ */ s("div", { children: [
370
- /* @__PURE__ */ s(
369
+ children: t.map((c, u) => /* @__PURE__ */ l("div", { children: [
370
+ /* @__PURE__ */ l(
371
371
  "button",
372
372
  {
373
373
  role: "menuitem",
374
- disabled: i.disabled,
374
+ disabled: c.disabled,
375
375
  onClick: () => {
376
376
  var f;
377
- i.disabled || ((f = i.onClick) == null || f.call(i), c(!1));
377
+ c.disabled || ((f = c.onClick) == null || f.call(c), i(!1));
378
378
  },
379
379
  className: [
380
380
  "w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors text-left",
381
- i.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
382
- i.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
381
+ c.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
382
+ c.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
383
383
  ].filter(Boolean).join(" "),
384
384
  children: [
385
- i.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] opacity-70", children: i.icon }),
386
- i.label
385
+ c.icon && /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px] opacity-70", children: c.icon }),
386
+ c.label
387
387
  ]
388
388
  }
389
389
  ),
390
- i.dividerAfter && /* @__PURE__ */ a("div", { className: "my-1 border-t border-surface-container-high" })
390
+ c.dividerAfter && /* @__PURE__ */ n("div", { className: "my-1 border-t border-surface-container-high" })
391
391
  ] }, u))
392
392
  }
393
393
  )
394
394
  ] });
395
395
  }
396
- const O = x(
397
- ({ label: e, hint: t, error: r, options: n, placeholder: o, disabled: l, className: c = "", id: d, ...i }, u) => {
396
+ const fe = b(
397
+ ({ label: e, hint: t, error: r, options: a, placeholder: o, disabled: s, className: i = "", id: d, ...c }, u) => {
398
398
  const f = d ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
399
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
400
- e && /* @__PURE__ */ a("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
401
- /* @__PURE__ */ s("div", { className: "relative", children: [
402
- /* @__PURE__ */ s(
399
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
400
+ e && /* @__PURE__ */ n("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
401
+ /* @__PURE__ */ l("div", { className: "relative", children: [
402
+ /* @__PURE__ */ l(
403
403
  "select",
404
404
  {
405
405
  ref: u,
406
406
  id: f,
407
- disabled: l,
407
+ disabled: s,
408
408
  className: [
409
409
  "w-full appearance-none bg-white border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
410
410
  "text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
411
411
  r ? "border-error" : "border-outline-variant",
412
412
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
413
- c
413
+ i
414
414
  ].filter(Boolean).join(" "),
415
- ...i,
415
+ ...c,
416
416
  children: [
417
- o && /* @__PURE__ */ a("option", { value: "", disabled: !0, children: o }),
418
- n.map((m) => /* @__PURE__ */ a("option", { value: m.value, disabled: m.disabled, children: m.label }, m.value))
417
+ o && /* @__PURE__ */ n("option", { value: "", disabled: !0, children: o }),
418
+ a.map((m) => /* @__PURE__ */ n("option", { value: m.value, disabled: m.disabled, children: m.label }, m.value))
419
419
  ]
420
420
  }
421
421
  ),
422
- /* @__PURE__ */ a("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" })
422
+ /* @__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" })
423
423
  ] }),
424
- r && /* @__PURE__ */ s("p", { className: "text-xs text-error flex items-center gap-1", children: [
425
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
424
+ r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
425
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
426
426
  r
427
427
  ] }),
428
- !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
428
+ !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
429
429
  ] });
430
430
  }
431
431
  );
432
- O.displayName = "Select";
433
- const U = x(
434
- ({ label: e, hint: t, error: r, disabled: n, className: o = "", id: l, rows: c = 4, ...d }, i) => {
435
- const u = l ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
436
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
437
- e && /* @__PURE__ */ a("label", { htmlFor: u, className: "text-sm font-medium text-on-surface", children: e }),
438
- /* @__PURE__ */ a(
432
+ fe.displayName = "Select";
433
+ const me = b(
434
+ ({ label: e, hint: t, error: r, disabled: a, className: o = "", id: s, rows: i = 4, ...d }, c) => {
435
+ const u = s ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
436
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
437
+ e && /* @__PURE__ */ n("label", { htmlFor: u, className: "text-sm font-medium text-on-surface", children: e }),
438
+ /* @__PURE__ */ n(
439
439
  "textarea",
440
440
  {
441
- ref: i,
441
+ ref: c,
442
442
  id: u,
443
- rows: c,
444
- disabled: n,
443
+ rows: i,
444
+ disabled: a,
445
445
  className: [
446
446
  "w-full bg-white border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
447
447
  "text-on-surface placeholder:text-on-surface-variant",
@@ -453,63 +453,100 @@ const U = x(
453
453
  ...d
454
454
  }
455
455
  ),
456
- r && /* @__PURE__ */ s("p", { className: "text-xs text-error flex items-center gap-1", children: [
457
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
456
+ r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
457
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
458
458
  r
459
459
  ] }),
460
- !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
460
+ !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
461
461
  ] });
462
462
  }
463
463
  );
464
- U.displayName = "Textarea";
465
- const V = x(
466
- ({ label: e, description: t, error: r, disabled: n, className: o = "", id: l, ...c }, d) => {
467
- const i = l ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
468
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
469
- /* @__PURE__ */ s(
464
+ me.displayName = "Textarea";
465
+ const pe = {
466
+ square: "rounded-[2px]",
467
+ rounded: "rounded-[4px]",
468
+ circle: "rounded-full"
469
+ }, xe = b(
470
+ ({ label: e, description: t, error: r, disabled: a, className: o = "", id: s, shape: i = "square", color: d = "#FF6B00", ...c }, u) => {
471
+ const f = s ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
472
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1", children: [
473
+ /* @__PURE__ */ l(
470
474
  "label",
471
475
  {
472
- htmlFor: i,
476
+ htmlFor: f,
473
477
  className: [
474
478
  "flex items-start gap-3 cursor-pointer",
475
- n ? "opacity-50 cursor-not-allowed" : ""
479
+ a ? "opacity-50 cursor-not-allowed" : ""
476
480
  ].filter(Boolean).join(" "),
477
481
  children: [
478
- /* @__PURE__ */ a(
479
- "input",
480
- {
481
- ref: d,
482
- type: "checkbox",
483
- id: i,
484
- disabled: n,
485
- className: [
486
- "mt-0.5 w-4 h-4 rounded border-outline-variant text-zeo-orange shrink-0",
487
- "focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0",
488
- "disabled:cursor-not-allowed",
489
- o
490
- ].filter(Boolean).join(" "),
491
- ...c
492
- }
493
- ),
494
- e && /* @__PURE__ */ s("span", { className: "flex flex-col", children: [
495
- /* @__PURE__ */ a("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
496
- t && /* @__PURE__ */ a("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
482
+ /* @__PURE__ */ l("div", { className: "relative mt-0.5 shrink-0 w-4 h-4", children: [
483
+ /* @__PURE__ */ n(
484
+ "input",
485
+ {
486
+ ref: u,
487
+ type: "checkbox",
488
+ id: f,
489
+ disabled: a,
490
+ className: [
491
+ "absolute inset-0 w-full h-full opacity-0 cursor-pointer peer disabled:cursor-not-allowed",
492
+ o
493
+ ].filter(Boolean).join(" "),
494
+ ...c
495
+ }
496
+ ),
497
+ /* @__PURE__ */ n(
498
+ "div",
499
+ {
500
+ className: [
501
+ "w-4 h-4 border-2 border-outline-variant transition-colors pointer-events-none",
502
+ "bg-white peer-checked:bg-[var(--cb-color)] peer-checked:border-[var(--cb-color)]",
503
+ "peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--cb-color)]/30 peer-focus-visible:ring-offset-0",
504
+ pe[i]
505
+ ].filter(Boolean).join(" "),
506
+ style: { "--cb-color": d }
507
+ }
508
+ ),
509
+ /* @__PURE__ */ n(
510
+ "svg",
511
+ {
512
+ viewBox: "0 0 12 10",
513
+ width: "10",
514
+ height: "8",
515
+ fill: "none",
516
+ "aria-hidden": "true",
517
+ className: "absolute inset-0 m-auto pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity",
518
+ children: /* @__PURE__ */ n(
519
+ "polyline",
520
+ {
521
+ points: "1,5 4.5,8.5 11,1.5",
522
+ stroke: "white",
523
+ strokeWidth: "2",
524
+ strokeLinecap: "round",
525
+ strokeLinejoin: "round"
526
+ }
527
+ )
528
+ }
529
+ )
530
+ ] }),
531
+ e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
532
+ /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
533
+ t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
497
534
  ] })
498
535
  ]
499
536
  }
500
537
  ),
501
- r && /* @__PURE__ */ s("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
502
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
538
+ r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
539
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
503
540
  r
504
541
  ] })
505
542
  ] });
506
543
  }
507
544
  );
508
- V.displayName = "Checkbox";
509
- const J = x(
510
- ({ label: e, description: t, disabled: r, className: n = "", id: o, ...l }, c) => {
545
+ xe.displayName = "Checkbox";
546
+ const he = b(
547
+ ({ label: e, description: t, disabled: r, className: a = "", id: o, ...s }, i) => {
511
548
  const d = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
512
- return /* @__PURE__ */ s(
549
+ return /* @__PURE__ */ l(
513
550
  "label",
514
551
  {
515
552
  htmlFor: d,
@@ -518,10 +555,10 @@ const J = x(
518
555
  r ? "opacity-50 cursor-not-allowed" : ""
519
556
  ].filter(Boolean).join(" "),
520
557
  children: [
521
- /* @__PURE__ */ a(
558
+ /* @__PURE__ */ n(
522
559
  "input",
523
560
  {
524
- ref: c,
561
+ ref: i,
525
562
  type: "radio",
526
563
  id: d,
527
564
  disabled: r,
@@ -529,25 +566,25 @@ const J = x(
529
566
  "mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0",
530
567
  "focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0",
531
568
  "disabled:cursor-not-allowed",
532
- n
569
+ a
533
570
  ].filter(Boolean).join(" "),
534
- ...l
571
+ ...s
535
572
  }
536
573
  ),
537
- e && /* @__PURE__ */ s("span", { className: "flex flex-col", children: [
538
- /* @__PURE__ */ a("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
539
- t && /* @__PURE__ */ a("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
574
+ e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
575
+ /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
576
+ t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
540
577
  ] })
541
578
  ]
542
579
  }
543
580
  );
544
581
  }
545
582
  );
546
- J.displayName = "Radio";
547
- const Q = x(
548
- ({ label: e, description: t, disabled: r, className: n = "", id: o, ...l }, c) => {
583
+ he.displayName = "Radio";
584
+ const be = b(
585
+ ({ label: e, description: t, disabled: r, className: a = "", id: o, ...s }, i) => {
549
586
  const d = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
550
- return /* @__PURE__ */ s(
587
+ return /* @__PURE__ */ l(
551
588
  "label",
552
589
  {
553
590
  htmlFor: d,
@@ -556,56 +593,56 @@ const Q = x(
556
593
  r ? "opacity-50 cursor-not-allowed" : ""
557
594
  ].filter(Boolean).join(" "),
558
595
  children: [
559
- /* @__PURE__ */ s("div", { className: "relative mt-0.5 shrink-0", children: [
560
- /* @__PURE__ */ a(
596
+ /* @__PURE__ */ l("div", { className: "relative mt-0.5 shrink-0", children: [
597
+ /* @__PURE__ */ n(
561
598
  "input",
562
599
  {
563
- ref: c,
600
+ ref: i,
564
601
  type: "checkbox",
565
602
  id: d,
566
603
  disabled: r,
567
604
  className: "sr-only peer",
568
- ...l
605
+ ...s
569
606
  }
570
607
  ),
571
- /* @__PURE__ */ a("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" }),
572
- /* @__PURE__ */ a("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" })
608
+ /* @__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" }),
609
+ /* @__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" })
573
610
  ] }),
574
- e && /* @__PURE__ */ s("span", { className: "flex flex-col", children: [
575
- /* @__PURE__ */ a("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
576
- t && /* @__PURE__ */ a("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
611
+ e && /* @__PURE__ */ l("span", { className: "flex flex-col", children: [
612
+ /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
613
+ t && /* @__PURE__ */ n("span", { className: "text-xs text-on-surface-variant mt-0.5", children: t })
577
614
  ] })
578
615
  ]
579
616
  }
580
617
  );
581
618
  }
582
619
  );
583
- Q.displayName = "Switch";
584
- const W = {
620
+ be.displayName = "Switch";
621
+ const ge = {
585
622
  sm: "px-3 py-1.5 text-sm h-8",
586
623
  md: "px-3 py-2 text-sm h-10",
587
624
  lg: "px-4 py-2.5 text-base h-11"
588
- }, y = {
625
+ }, E = {
589
626
  sm: "text-[16px]",
590
627
  md: "text-[18px]",
591
628
  lg: "text-[20px]"
592
- }, X = x(
629
+ }, we = b(
593
630
  ({
594
631
  label: e,
595
632
  hint: t,
596
633
  error: r,
597
- inputSize: n = "md",
634
+ inputSize: a = "md",
598
635
  iconLeft: o,
599
- iconRight: l,
600
- onIconRightClick: c,
636
+ iconRight: s,
637
+ onIconRightClick: i,
601
638
  disabled: d,
602
- className: i = "",
639
+ className: c = "",
603
640
  id: u,
604
641
  ...f
605
642
  }, m) => {
606
643
  const p = u ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
607
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
608
- e && /* @__PURE__ */ a(
644
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
645
+ e && /* @__PURE__ */ n(
609
646
  "label",
610
647
  {
611
648
  htmlFor: p,
@@ -613,15 +650,15 @@ const W = {
613
650
  children: e
614
651
  }
615
652
  ),
616
- /* @__PURE__ */ s("div", { className: "relative flex items-center", children: [
617
- o && /* @__PURE__ */ a(
653
+ /* @__PURE__ */ l("div", { className: "relative flex items-center", children: [
654
+ o && /* @__PURE__ */ n(
618
655
  "span",
619
656
  {
620
- className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${y[n]}`,
657
+ className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${E[a]}`,
621
658
  children: o
622
659
  }
623
660
  ),
624
- /* @__PURE__ */ a(
661
+ /* @__PURE__ */ n(
625
662
  "input",
626
663
  {
627
664
  ref: m,
@@ -633,58 +670,58 @@ const W = {
633
670
  "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
634
671
  r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
635
672
  "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
636
- W[n],
673
+ ge[a],
637
674
  o ? "pl-9" : "",
638
- l ? "pr-9" : "",
639
- i
675
+ s ? "pr-9" : "",
676
+ c
640
677
  ].filter(Boolean).join(" "),
641
678
  ...f
642
679
  }
643
680
  ),
644
- l && /* @__PURE__ */ a(
681
+ s && /* @__PURE__ */ n(
645
682
  "span",
646
683
  {
647
684
  className: [
648
685
  "material-symbols-outlined absolute right-3 text-on-surface-variant",
649
- y[n],
650
- c ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
686
+ E[a],
687
+ i ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
651
688
  ].filter(Boolean).join(" "),
652
- onClick: c,
653
- children: l
689
+ onClick: i,
690
+ children: s
654
691
  }
655
692
  )
656
693
  ] }),
657
- r && /* @__PURE__ */ s("p", { className: "text-xs text-error flex items-center gap-1", children: [
658
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
694
+ r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
695
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
659
696
  r
660
697
  ] }),
661
- !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
698
+ !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
662
699
  ] });
663
700
  }
664
701
  );
665
- X.displayName = "Input";
666
- const Y = {
702
+ we.displayName = "Input";
703
+ const ve = {
667
704
  sm: "max-w-sm",
668
705
  md: "max-w-md",
669
706
  lg: "max-w-lg",
670
707
  xl: "max-w-2xl",
671
708
  full: "max-w-[calc(100vw-2rem)]"
672
709
  };
673
- function he({ open: e, onClose: t, size: r = "md", children: n }) {
674
- return w(() => {
710
+ function qe({ open: e, onClose: t, size: r = "md", children: a }) {
711
+ return _(() => {
675
712
  if (!e) return;
676
- const o = (l) => {
677
- l.key === "Escape" && t();
713
+ const o = (s) => {
714
+ s.key === "Escape" && t();
678
715
  };
679
716
  return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
680
- }, [e, t]), e ? /* @__PURE__ */ s(
717
+ }, [e, t]), e ? /* @__PURE__ */ l(
681
718
  "div",
682
719
  {
683
720
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
684
721
  "aria-modal": "true",
685
722
  role: "dialog",
686
723
  children: [
687
- /* @__PURE__ */ a(
724
+ /* @__PURE__ */ n(
688
725
  "div",
689
726
  {
690
727
  className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
@@ -692,46 +729,46 @@ function he({ open: e, onClose: t, size: r = "md", children: n }) {
692
729
  "aria-hidden": "true"
693
730
  }
694
731
  ),
695
- /* @__PURE__ */ a(
732
+ /* @__PURE__ */ n(
696
733
  "div",
697
734
  {
698
735
  className: [
699
736
  "relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
700
- Y[r]
737
+ ve[r]
701
738
  ].filter(Boolean).join(" "),
702
- children: n
739
+ children: a
703
740
  }
704
741
  )
705
742
  ]
706
743
  }
707
744
  ) : null;
708
745
  }
709
- function be({ title: e, subtitle: t, onClose: r, className: n = "", ...o }) {
710
- return /* @__PURE__ */ s(
746
+ function Ue({ title: e, subtitle: t, onClose: r, className: a = "", ...o }) {
747
+ return /* @__PURE__ */ l(
711
748
  "div",
712
749
  {
713
- className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", n].filter(Boolean).join(" "),
750
+ className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", a].filter(Boolean).join(" "),
714
751
  ...o,
715
752
  children: [
716
- /* @__PURE__ */ s("div", { children: [
717
- /* @__PURE__ */ a("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
718
- t && /* @__PURE__ */ a("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
753
+ /* @__PURE__ */ l("div", { children: [
754
+ /* @__PURE__ */ n("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
755
+ t && /* @__PURE__ */ n("p", { className: "text-sm text-on-surface-variant mt-0.5", children: t })
719
756
  ] }),
720
- r && /* @__PURE__ */ a(
757
+ r && /* @__PURE__ */ n(
721
758
  "button",
722
759
  {
723
760
  onClick: r,
724
761
  className: "p-1 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low rounded-lg transition-all -mt-1 -mr-1",
725
762
  "aria-label": "Fechar modal",
726
- children: /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
763
+ children: /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
727
764
  }
728
765
  )
729
766
  ]
730
767
  }
731
768
  );
732
769
  }
733
- function ge({ children: e, className: t = "", ...r }) {
734
- return /* @__PURE__ */ a(
770
+ function Ge({ children: e, className: t = "", ...r }) {
771
+ return /* @__PURE__ */ n(
735
772
  "div",
736
773
  {
737
774
  className: ["p-6 overflow-y-auto flex-1", t].filter(Boolean).join(" "),
@@ -740,8 +777,8 @@ function ge({ children: e, className: t = "", ...r }) {
740
777
  }
741
778
  );
742
779
  }
743
- function we({ children: e, className: t = "", ...r }) {
744
- return /* @__PURE__ */ a(
780
+ function Ke({ children: e, className: t = "", ...r }) {
781
+ return /* @__PURE__ */ n(
745
782
  "div",
746
783
  {
747
784
  className: [
@@ -753,73 +790,73 @@ function we({ children: e, className: t = "", ...r }) {
753
790
  }
754
791
  );
755
792
  }
756
- function Z(e, t) {
757
- return t <= 7 ? Array.from({ length: t }, (r, n) => n + 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];
793
+ function Ne(e, t) {
794
+ 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];
758
795
  }
759
- function ve({
796
+ function Oe({
760
797
  currentPage: e,
761
798
  totalPages: t,
762
799
  totalItems: r,
763
- itemsPerPage: n = 10,
800
+ itemsPerPage: a = 10,
764
801
  onPageChange: o,
765
- variant: l = "full",
766
- className: c = "",
802
+ variant: s = "full",
803
+ className: i = "",
767
804
  ...d
768
805
  }) {
769
- const i = Z(e, t), u = (e - 1) * n + 1, f = Math.min(e * n, r ?? e * n), m = "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", p = `${m} w-9 h-9`, C = "bg-zeo-orange text-white", b = "text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface", N = `${m} 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`;
770
- return /* @__PURE__ */ s(
806
+ const c = Ne(e, t), u = (e - 1) * a + 1, f = Math.min(e * a, r ?? e * a), m = "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", p = `${m} w-9 h-9`, g = "bg-zeo-orange text-white", w = "text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface", N = `${m} 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`;
807
+ return /* @__PURE__ */ l(
771
808
  "div",
772
809
  {
773
- className: ["flex items-center justify-between gap-4 flex-wrap", c].filter(Boolean).join(" "),
810
+ className: ["flex items-center justify-between gap-4 flex-wrap", i].filter(Boolean).join(" "),
774
811
  ...d,
775
812
  children: [
776
- l === "full" && r !== void 0 && /* @__PURE__ */ s("p", { className: "text-sm text-on-surface-variant", children: [
813
+ s === "full" && r !== void 0 && /* @__PURE__ */ l("p", { className: "text-sm text-on-surface-variant", children: [
777
814
  "Mostrando ",
778
- /* @__PURE__ */ s("strong", { children: [
815
+ /* @__PURE__ */ l("strong", { children: [
779
816
  u,
780
817
  "–",
781
818
  f
782
819
  ] }),
783
820
  " de ",
784
- /* @__PURE__ */ a("strong", { children: r }),
821
+ /* @__PURE__ */ n("strong", { children: r }),
785
822
  " itens"
786
823
  ] }),
787
- /* @__PURE__ */ s("div", { className: "flex items-center gap-1 ml-auto", children: [
788
- /* @__PURE__ */ s(
824
+ /* @__PURE__ */ l("div", { className: "flex items-center gap-1 ml-auto", children: [
825
+ /* @__PURE__ */ l(
789
826
  "button",
790
827
  {
791
828
  onClick: () => o(e - 1),
792
829
  disabled: e === 1,
793
830
  "aria-label": "Página anterior",
794
- className: l === "icon" ? p + " " + b : N,
831
+ className: s === "icon" ? p + " " + w : N,
795
832
  children: [
796
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
797
- l === "text" && "Anterior"
833
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
834
+ s === "text" && "Anterior"
798
835
  ]
799
836
  }
800
837
  ),
801
- i.map(
802
- (h, B) => h === "..." ? /* @__PURE__ */ a("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${B}`) : /* @__PURE__ */ a(
838
+ c.map(
839
+ (x, B) => x === "..." ? /* @__PURE__ */ n("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${B}`) : /* @__PURE__ */ n(
803
840
  "button",
804
841
  {
805
- onClick: () => o(h),
806
- "aria-current": e === h ? "page" : void 0,
807
- className: [p, e === h ? C : b].join(" "),
808
- children: h
842
+ onClick: () => o(x),
843
+ "aria-current": e === x ? "page" : void 0,
844
+ className: [p, e === x ? g : w].join(" "),
845
+ children: x
809
846
  },
810
- h
847
+ x
811
848
  )
812
849
  ),
813
- /* @__PURE__ */ s(
850
+ /* @__PURE__ */ l(
814
851
  "button",
815
852
  {
816
853
  onClick: () => o(e + 1),
817
854
  disabled: e === t,
818
855
  "aria-label": "Próxima página",
819
- className: l === "icon" ? p + " " + b : N,
856
+ className: s === "icon" ? p + " " + w : N,
820
857
  children: [
821
- l === "text" && "Próxima",
822
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
858
+ s === "text" && "Próxima",
859
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
823
860
  ]
824
861
  }
825
862
  )
@@ -828,102 +865,102 @@ function ve({
828
865
  }
829
866
  );
830
867
  }
831
- const P = {
868
+ const ye = {
832
869
  xs: "h-1",
833
870
  sm: "h-1.5",
834
871
  md: "h-2",
835
872
  lg: "h-3"
836
- }, ee = {
873
+ }, je = {
837
874
  primary: "bg-zeo-orange",
838
875
  success: "bg-green-500",
839
876
  warning: "bg-amber-400",
840
877
  danger: "bg-red-500"
841
878
  };
842
- function Ne({
879
+ function We({
843
880
  value: e,
844
881
  max: t = 100,
845
882
  size: r = "md",
846
- variant: n = "primary",
883
+ variant: a = "primary",
847
884
  label: o = "none",
848
- showPercent: l = !0,
849
- title: c,
885
+ showPercent: s = !0,
886
+ title: i,
850
887
  className: d = "",
851
- ...i
888
+ ...c
852
889
  }) {
853
890
  const u = Math.min(100, Math.max(0, e / t * 100)), f = `${Math.round(u)}%`;
854
- return /* @__PURE__ */ s("div", { className: ["flex flex-col gap-1.5", d].filter(Boolean).join(" "), ...i, children: [
855
- (c || o === "outside" && l) && /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2", children: [
856
- c && /* @__PURE__ */ a("span", { className: "text-sm font-medium text-on-surface", children: c }),
857
- o === "outside" && l && /* @__PURE__ */ a("span", { className: "text-sm font-semibold text-on-surface", children: f })
891
+ return /* @__PURE__ */ l("div", { className: ["flex flex-col gap-1.5", d].filter(Boolean).join(" "), ...c, children: [
892
+ (i || o === "outside" && s) && /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-2", children: [
893
+ i && /* @__PURE__ */ n("span", { className: "text-sm font-medium text-on-surface", children: i }),
894
+ o === "outside" && s && /* @__PURE__ */ n("span", { className: "text-sm font-semibold text-on-surface", children: f })
858
895
  ] }),
859
- /* @__PURE__ */ a(
896
+ /* @__PURE__ */ n(
860
897
  "div",
861
898
  {
862
899
  role: "progressbar",
863
900
  "aria-valuenow": e,
864
901
  "aria-valuemin": 0,
865
902
  "aria-valuemax": t,
866
- className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", P[r]].join(" "),
867
- children: /* @__PURE__ */ a(
903
+ className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", ye[r]].join(" "),
904
+ children: /* @__PURE__ */ n(
868
905
  "div",
869
906
  {
870
907
  className: [
871
908
  "h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
872
- ee[n]
909
+ je[a]
873
910
  ].join(" "),
874
911
  style: { width: `${u}%` },
875
- children: o === "inside" && l && u >= 20 && /* @__PURE__ */ a("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
912
+ children: o === "inside" && s && u >= 20 && /* @__PURE__ */ n("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
876
913
  }
877
914
  )
878
915
  }
879
916
  )
880
917
  ] });
881
918
  }
882
- const te = {
919
+ const ke = {
883
920
  xs: "w-3 h-3 border",
884
921
  sm: "w-4 h-4 border-2",
885
922
  md: "w-6 h-6 border-2",
886
923
  lg: "w-8 h-8 border-[3px]",
887
924
  xl: "w-12 h-12 border-4"
888
- }, re = {
925
+ }, Be = {
889
926
  primary: "border-orange-200 border-t-zeo-orange",
890
927
  secondary: "border-surface-container-high border-t-on-surface-variant",
891
928
  white: "border-white/30 border-t-white"
892
929
  };
893
- function ye({
930
+ function Je({
894
931
  size: e = "md",
895
932
  variant: t = "primary",
896
933
  label: r = "Carregando...",
897
- className: n = "",
934
+ className: a = "",
898
935
  ...o
899
936
  }) {
900
- return /* @__PURE__ */ a(
937
+ return /* @__PURE__ */ n(
901
938
  "span",
902
939
  {
903
940
  role: "status",
904
941
  "aria-label": r,
905
942
  className: [
906
943
  "inline-block rounded-full animate-spin",
907
- te[e],
908
- re[t],
909
- n
944
+ ke[e],
945
+ Be[t],
946
+ a
910
947
  ].filter(Boolean).join(" "),
911
948
  ...o
912
949
  }
913
950
  );
914
951
  }
915
- function je({ children: e, className: t = "", ...r }) {
916
- return /* @__PURE__ */ a(
952
+ function Qe({ children: e, className: t = "", ...r }) {
953
+ return /* @__PURE__ */ n(
917
954
  "div",
918
955
  {
919
956
  className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", t].filter(Boolean).join(" "),
920
957
  ...r,
921
- children: /* @__PURE__ */ a("table", { className: "w-full text-sm", children: e })
958
+ children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: e })
922
959
  }
923
960
  );
924
961
  }
925
- function Ce({ children: e, className: t = "", ...r }) {
926
- return /* @__PURE__ */ a(
962
+ function Xe({ children: e, className: t = "", ...r }) {
963
+ return /* @__PURE__ */ n(
927
964
  "thead",
928
965
  {
929
966
  className: ["bg-surface-container-low border-b border-surface-container-high", t].filter(Boolean).join(" "),
@@ -932,8 +969,8 @@ function Ce({ children: e, className: t = "", ...r }) {
932
969
  }
933
970
  );
934
971
  }
935
- function Be({ children: e, className: t = "", ...r }) {
936
- return /* @__PURE__ */ a(
972
+ function Ye({ children: e, className: t = "", ...r }) {
973
+ return /* @__PURE__ */ n(
937
974
  "tbody",
938
975
  {
939
976
  className: ["bg-white divide-y divide-surface-container-high", t].filter(Boolean).join(" "),
@@ -942,8 +979,8 @@ function Be({ children: e, className: t = "", ...r }) {
942
979
  }
943
980
  );
944
981
  }
945
- function ke({ selected: e = !1, children: t, className: r = "", ...n }) {
946
- return /* @__PURE__ */ a(
982
+ function Ze({ selected: e = !1, children: t, className: r = "", ...a }) {
983
+ return /* @__PURE__ */ n(
947
984
  "tr",
948
985
  {
949
986
  className: [
@@ -951,20 +988,20 @@ function ke({ selected: e = !1, children: t, className: r = "", ...n }) {
951
988
  e ? "bg-orange-50/40" : "",
952
989
  r
953
990
  ].filter(Boolean).join(" "),
954
- ...n,
991
+ ...a,
955
992
  children: t
956
993
  }
957
994
  );
958
995
  }
959
- function ze({
996
+ function Pe({
960
997
  sortable: e = !1,
961
998
  sorted: t = !1,
962
999
  onSort: r,
963
- children: n,
1000
+ children: a,
964
1001
  className: o = "",
965
- ...l
1002
+ ...s
966
1003
  }) {
967
- return /* @__PURE__ */ a(
1004
+ return /* @__PURE__ */ n(
968
1005
  "th",
969
1006
  {
970
1007
  className: [
@@ -973,10 +1010,10 @@ function ze({
973
1010
  o
974
1011
  ].filter(Boolean).join(" "),
975
1012
  onClick: e ? r : void 0,
976
- ...l,
977
- children: /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1", children: [
978
- n,
979
- e && /* @__PURE__ */ a(
1013
+ ...s,
1014
+ children: /* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1", children: [
1015
+ a,
1016
+ e && /* @__PURE__ */ n(
980
1017
  "span",
981
1018
  {
982
1019
  className: `material-symbols-outlined text-[14px] ${t ? "text-zeo-orange" : "opacity-40"}`,
@@ -987,87 +1024,95 @@ function ze({
987
1024
  }
988
1025
  );
989
1026
  }
990
- function $e({ muted: e = !1, mono: t = !1, children: r, className: n = "", ...o }) {
991
- return /* @__PURE__ */ a(
1027
+ function et({ muted: e = !1, mono: t = !1, children: r, className: a = "", ...o }) {
1028
+ return /* @__PURE__ */ n(
992
1029
  "td",
993
1030
  {
994
1031
  className: [
995
1032
  "px-4 py-3",
996
1033
  e ? "text-on-surface-variant" : "text-on-surface",
997
1034
  t ? "font-mono text-xs" : "",
998
- n
1035
+ a
999
1036
  ].filter(Boolean).join(" "),
1000
1037
  ...o,
1001
1038
  children: r
1002
1039
  }
1003
1040
  );
1004
1041
  }
1005
- const j = $(null);
1006
- function v() {
1007
- const e = _(j);
1042
+ const H = D(null);
1043
+ function F() {
1044
+ const e = R(H);
1008
1045
  if (!e) throw new Error("Tab must be used inside Tabs");
1009
1046
  return e;
1010
1047
  }
1011
- function _e({ value: e, onChange: t, variant: r = "default", children: n }) {
1012
- return /* @__PURE__ */ a(j.Provider, { value: { active: e, onChange: t, variant: r }, children: /* @__PURE__ */ a("div", { className: r === "vertical" ? "flex gap-6" : "flex flex-col gap-4", children: n }) });
1048
+ const V = D({ stretch: !1 });
1049
+ function tt({ value: e, onChange: t, variant: r = "default", children: a }) {
1050
+ return /* @__PURE__ */ n(H.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 }) });
1013
1051
  }
1014
- function Te({ children: e, className: t = "", ...r }) {
1015
- const { variant: n } = v(), o = {
1016
- default: "flex gap-1 bg-surface-container-low rounded-lg p-1 w-fit",
1052
+ function rt({ children: e, className: t = "", stretch: r = !1, ...a }) {
1053
+ const { variant: o } = F(), s = {
1054
+ 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",
1017
1055
  underline: "flex gap-0 border-b border-surface-container-high w-full",
1018
1056
  vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
1019
- }[n];
1020
- return /* @__PURE__ */ a(
1057
+ }[o];
1058
+ return /* @__PURE__ */ n(V.Provider, { value: { stretch: r }, children: /* @__PURE__ */ n(
1021
1059
  "div",
1022
1060
  {
1023
1061
  role: "tablist",
1024
- className: [o, t].filter(Boolean).join(" "),
1025
- ...r,
1062
+ className: [s, t].filter(Boolean).join(" "),
1063
+ ...a,
1026
1064
  children: e
1027
1065
  }
1028
- );
1066
+ ) });
1029
1067
  }
1030
- function Fe({ value: e, label: t, icon: r, badge: n, disabled: o = !1 }) {
1031
- const { active: l, onChange: c, variant: d } = v(), i = l === e, u = "inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none", f = "opacity-40 cursor-not-allowed pointer-events-none", m = {
1032
- default: i ? "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",
1033
- underline: i ? "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",
1034
- vertical: i ? "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"
1068
+ function nt({ value: e, label: t, icon: r, badge: a, disabled: o = !1 }) {
1069
+ const { active: s, onChange: i, variant: d } = F(), { stretch: c } = R(V), u = s === e, f = "inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none", m = "opacity-40 cursor-not-allowed pointer-events-none", p = c && d !== "vertical" ? "flex-1 justify-center" : "", g = {
1070
+ 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",
1071
+ 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",
1072
+ 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"
1035
1073
  }[d];
1036
- return /* @__PURE__ */ s(
1074
+ return /* @__PURE__ */ l(
1037
1075
  "button",
1038
1076
  {
1039
1077
  role: "tab",
1040
- "aria-selected": i,
1078
+ "aria-selected": u,
1041
1079
  "aria-disabled": o,
1042
1080
  disabled: o,
1043
- onClick: () => !o && c(e),
1044
- className: [u, m, o ? f : ""].filter(Boolean).join(" "),
1081
+ onClick: () => !o && i(e),
1082
+ className: [f, g, p, o ? m : ""].filter(Boolean).join(" "),
1045
1083
  children: [
1046
- r && /* @__PURE__ */ a(
1084
+ r && /* @__PURE__ */ n(
1047
1085
  "span",
1048
1086
  {
1049
1087
  className: "material-symbols-outlined text-[18px]",
1050
- style: i ? { fontVariationSettings: "'FILL' 1" } : void 0,
1088
+ style: u ? { fontVariationSettings: "'FILL' 1" } : void 0,
1051
1089
  children: r
1052
1090
  }
1053
1091
  ),
1054
1092
  t,
1055
- n !== void 0 && /* @__PURE__ */ a(
1093
+ a !== void 0 && /* @__PURE__ */ n(
1056
1094
  "span",
1057
1095
  {
1058
- className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${i ? "bg-zeo-orange text-white" : "bg-surface-container-high text-on-surface-variant"}`,
1059
- children: n
1096
+ 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"}`,
1097
+ children: a
1060
1098
  }
1061
1099
  )
1062
1100
  ]
1063
1101
  }
1064
1102
  );
1065
1103
  }
1066
- function Ie({ value: e, children: t, className: r = "" }) {
1067
- const { active: n } = v();
1068
- return n !== e ? null : /* @__PURE__ */ a("div", { role: "tabpanel", className: r, children: t });
1104
+ function at({ value: e, children: t, className: r = "", stretch: a = !1 }) {
1105
+ const { active: o } = F();
1106
+ return o !== e ? null : /* @__PURE__ */ n(
1107
+ "div",
1108
+ {
1109
+ role: "tabpanel",
1110
+ className: [a ? "flex-1" : "", r].filter(Boolean).join(" "),
1111
+ children: t
1112
+ }
1113
+ );
1069
1114
  }
1070
- const ae = {
1115
+ const Ce = {
1071
1116
  top: {
1072
1117
  wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
1073
1118
  arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
@@ -1084,22 +1129,22 @@ const ae = {
1084
1129
  wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
1085
1130
  arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
1086
1131
  }
1087
- }, ne = {
1132
+ }, ze = {
1088
1133
  dark: { tooltip: "bg-slate-800 text-white", arrow: "border-t-slate-800 border-r-slate-800 border-b-slate-800 border-l-slate-800" },
1089
1134
  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" }
1090
1135
  };
1091
- function Le({
1136
+ function ot({
1092
1137
  content: e,
1093
1138
  position: t = "top",
1094
1139
  variant: r = "dark",
1095
- children: n,
1140
+ children: a,
1096
1141
  className: o = "",
1097
- ...l
1142
+ ...s
1098
1143
  }) {
1099
- const c = ae[t], d = ne[r];
1100
- return /* @__PURE__ */ s("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...l, children: [
1101
- n,
1102
- /* @__PURE__ */ s(
1144
+ const i = Ce[t], d = ze[r];
1145
+ return /* @__PURE__ */ l("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
1146
+ a,
1147
+ /* @__PURE__ */ l(
1103
1148
  "div",
1104
1149
  {
1105
1150
  role: "tooltip",
@@ -1107,50 +1152,139 @@ function Le({
1107
1152
  "absolute z-50 pointer-events-none",
1108
1153
  "opacity-0 group-hover:opacity-100 transition-opacity duration-150",
1109
1154
  "whitespace-nowrap text-xs font-medium px-2.5 py-1.5 rounded-lg",
1110
- c.wrapper,
1155
+ i.wrapper,
1111
1156
  d.tooltip
1112
1157
  ].join(" "),
1113
1158
  children: [
1114
1159
  e,
1115
- /* @__PURE__ */ a("span", { className: ["absolute w-0 h-0", c.arrow, d.arrow].join(" ") })
1160
+ /* @__PURE__ */ n("span", { className: ["absolute w-0 h-0", i.arrow, d.arrow].join(" ") })
1116
1161
  ]
1117
1162
  }
1118
1163
  )
1119
1164
  ] });
1120
1165
  }
1166
+ const $e = {
1167
+ sm: "px-3 py-1.5 text-sm h-8",
1168
+ md: "px-3 py-2 text-sm h-10",
1169
+ lg: "px-4 py-2.5 text-base h-11"
1170
+ };
1171
+ function _e(e, t, r) {
1172
+ if (e === "" || e === void 0 || e === null) return "";
1173
+ const a = Number(e).toFixed(t);
1174
+ return r ? `${a} ${r}` : a;
1175
+ }
1176
+ const Fe = b(
1177
+ ({
1178
+ label: e,
1179
+ hint: t,
1180
+ error: r,
1181
+ unit: a = "",
1182
+ decimals: o = 0,
1183
+ value: s,
1184
+ defaultValue: i,
1185
+ onChange: d,
1186
+ disabled: c,
1187
+ placeholder: u,
1188
+ inputSize: f = "md",
1189
+ id: m,
1190
+ name: p,
1191
+ min: g,
1192
+ max: w,
1193
+ step: N,
1194
+ required: x,
1195
+ className: B = ""
1196
+ }, v) => {
1197
+ const q = Y(), I = m ?? q, C = s !== void 0, [U, G] = k(
1198
+ i !== void 0 ? i : ""
1199
+ ), [T, L] = k(!1), [z, S] = k(""), K = A(null), y = C ? s : U, O = T ? z : _e(y, o, a), W = j(() => {
1200
+ L(!0), S(y === "" ? "" : String(y));
1201
+ }, [y]), J = j(() => {
1202
+ L(!1);
1203
+ const h = parseFloat(z.replace(",", ".")), M = isNaN(h) ? "" : h;
1204
+ C || G(M), d == null || d(M);
1205
+ }, [z, C, d]), Q = j((h) => {
1206
+ S(h.target.value);
1207
+ }, []), X = j(
1208
+ (h) => {
1209
+ K.current = h, typeof v == "function" ? v(h) : v && (v.current = h);
1210
+ },
1211
+ [v]
1212
+ );
1213
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1.5", children: [
1214
+ e && /* @__PURE__ */ n("label", { htmlFor: I, className: "text-sm font-medium text-on-surface", children: e }),
1215
+ /* @__PURE__ */ n(
1216
+ "input",
1217
+ {
1218
+ ref: X,
1219
+ id: I,
1220
+ name: p,
1221
+ type: T ? "number" : "text",
1222
+ inputMode: "decimal",
1223
+ value: O,
1224
+ placeholder: u,
1225
+ disabled: c,
1226
+ required: x,
1227
+ min: g,
1228
+ max: w,
1229
+ step: N ?? (o > 0 ? Math.pow(10, -o) : 1),
1230
+ onFocus: W,
1231
+ onBlur: J,
1232
+ onChange: Q,
1233
+ className: [
1234
+ "w-full bg-white border rounded transition-all duration-200",
1235
+ "text-on-surface placeholder:text-on-surface-variant",
1236
+ "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
1237
+ r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
1238
+ "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
1239
+ "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
1240
+ $e[f],
1241
+ B
1242
+ ].filter(Boolean).join(" ")
1243
+ }
1244
+ ),
1245
+ r && /* @__PURE__ */ l("p", { className: "text-xs text-error flex items-center gap-1", children: [
1246
+ /* @__PURE__ */ n("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
1247
+ r
1248
+ ] }),
1249
+ !r && t && /* @__PURE__ */ n("p", { className: "text-xs text-on-surface-variant", children: t })
1250
+ ] });
1251
+ }
1252
+ );
1253
+ Fe.displayName = "UnitInput";
1121
1254
  export {
1122
- le as Alert,
1123
- ie as Avatar,
1124
- ce as Badge,
1125
- de as Breadcrumb,
1126
- q as Button,
1127
- ue as ButtonGroup,
1128
- fe as Card,
1129
- xe as CardFooter,
1130
- me as CardHeader,
1131
- V as Checkbox,
1132
- pe as Dropdown,
1133
- X as Input,
1134
- he as Modal,
1135
- ge as ModalBody,
1136
- we as ModalFooter,
1137
- be as ModalHeader,
1138
- ve as Pagination,
1139
- Ne as ProgressBar,
1140
- J as Radio,
1141
- O as Select,
1142
- ye as Spinner,
1143
- Q as Switch,
1144
- Fe as Tab,
1145
- Te as TabList,
1146
- Ie as TabPanel,
1147
- je as Table,
1148
- Be as TableBody,
1149
- $e as TableCell,
1150
- Ce as TableHead,
1151
- ze as TableHeaderCell,
1152
- ke as TableRow,
1153
- _e as Tabs,
1154
- U as Textarea,
1155
- Le as Tooltip
1255
+ Le as Alert,
1256
+ Se as Avatar,
1257
+ Me as Badge,
1258
+ Ee as Breadcrumb,
1259
+ ce as Button,
1260
+ Ae as ButtonGroup,
1261
+ De as Card,
1262
+ He as CardFooter,
1263
+ Re as CardHeader,
1264
+ xe as Checkbox,
1265
+ Ve as Dropdown,
1266
+ we as Input,
1267
+ qe as Modal,
1268
+ Ge as ModalBody,
1269
+ Ke as ModalFooter,
1270
+ Ue as ModalHeader,
1271
+ Oe as Pagination,
1272
+ We as ProgressBar,
1273
+ he as Radio,
1274
+ fe as Select,
1275
+ Je as Spinner,
1276
+ be as Switch,
1277
+ nt as Tab,
1278
+ rt as TabList,
1279
+ at as TabPanel,
1280
+ Qe as Table,
1281
+ Ye as TableBody,
1282
+ et as TableCell,
1283
+ Xe as TableHead,
1284
+ Pe as TableHeaderCell,
1285
+ Ze as TableRow,
1286
+ tt as Tabs,
1287
+ me as Textarea,
1288
+ ot as Tooltip,
1289
+ Fe as UnitInput
1156
1290
  };