@zeo-app/design-system 0.1.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.
Files changed (42) hide show
  1. package/dist/components/Alert/Alert.d.ts +10 -0
  2. package/dist/components/Alert/index.d.ts +2 -0
  3. package/dist/components/Avatar/Avatar.d.ts +11 -0
  4. package/dist/components/Avatar/index.d.ts +2 -0
  5. package/dist/components/Badge/Badge.d.ts +10 -0
  6. package/dist/components/Badge/index.d.ts +2 -0
  7. package/dist/components/Breadcrumb/Breadcrumb.d.ts +10 -0
  8. package/dist/components/Breadcrumb/index.d.ts +2 -0
  9. package/dist/components/Button/Button.d.ts +12 -0
  10. package/dist/components/Button/index.d.ts +2 -0
  11. package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
  12. package/dist/components/ButtonGroup/index.d.ts +2 -0
  13. package/dist/components/Card/Card.d.ts +17 -0
  14. package/dist/components/Card/index.d.ts +2 -0
  15. package/dist/components/Dropdown/Dropdown.d.ts +15 -0
  16. package/dist/components/Dropdown/index.d.ts +2 -0
  17. package/dist/components/FormElements/FormElements.d.ts +35 -0
  18. package/dist/components/FormElements/index.d.ts +2 -0
  19. package/dist/components/Input/Input.d.ts +12 -0
  20. package/dist/components/Input/index.d.ts +2 -0
  21. package/dist/components/Modal/Modal.d.ts +21 -0
  22. package/dist/components/Modal/index.d.ts +2 -0
  23. package/dist/components/Pagination/Pagination.d.ts +11 -0
  24. package/dist/components/Pagination/index.d.ts +2 -0
  25. package/dist/components/ProgressBar/ProgressBar.d.ts +14 -0
  26. package/dist/components/ProgressBar/index.d.ts +2 -0
  27. package/dist/components/Spinner/Spinner.d.ts +9 -0
  28. package/dist/components/Spinner/index.d.ts +2 -0
  29. package/dist/components/Table/Table.d.ts +26 -0
  30. package/dist/components/Table/index.d.ts +2 -0
  31. package/dist/components/Tabs/Tabs.d.ts +27 -0
  32. package/dist/components/Tabs/index.d.ts +2 -0
  33. package/dist/components/Tooltip/Tooltip.d.ts +10 -0
  34. package/dist/components/Tooltip/index.d.ts +2 -0
  35. package/dist/components/index.d.ts +17 -0
  36. package/dist/index.cjs +1 -0
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.mjs +1156 -0
  39. package/dist/lib.d.ts +1 -0
  40. package/dist/style.css +1 -0
  41. package/package.json +60 -0
  42. package/tailwind.config.ts +93 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,1156 @@
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 = {
4
+ info: {
5
+ container: "bg-blue-50 border-blue-200 text-blue-800",
6
+ icon: "text-blue-500",
7
+ defaultIcon: "info"
8
+ },
9
+ success: {
10
+ container: "bg-green-50 border-green-200 text-green-800",
11
+ icon: "text-green-500",
12
+ defaultIcon: "check_circle"
13
+ },
14
+ warning: {
15
+ container: "bg-yellow-50 border-yellow-200 text-yellow-800",
16
+ icon: "text-yellow-500",
17
+ defaultIcon: "warning"
18
+ },
19
+ danger: {
20
+ container: "bg-red-50 border-red-200 text-red-800",
21
+ icon: "text-red-500",
22
+ defaultIcon: "error"
23
+ }
24
+ };
25
+ function le({
26
+ variant: e = "info",
27
+ title: t,
28
+ children: r,
29
+ onClose: n,
30
+ icon: o,
31
+ className: l = "",
32
+ ...c
33
+ }) {
34
+ const d = T[e], i = o ?? d.defaultIcon;
35
+ return /* @__PURE__ */ s(
36
+ "div",
37
+ {
38
+ role: "alert",
39
+ className: [
40
+ "flex gap-3 p-4 rounded-lg border",
41
+ d.container,
42
+ l
43
+ ].filter(Boolean).join(" "),
44
+ ...c,
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 })
50
+ ] }),
51
+ n && /* @__PURE__ */ a(
52
+ "button",
53
+ {
54
+ onClick: n,
55
+ className: "shrink-0 opacity-70 hover:opacity-100 transition-opacity",
56
+ "aria-label": "Fechar alerta",
57
+ children: /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ );
63
+ }
64
+ const F = {
65
+ xs: "w-6 h-6 text-[10px]",
66
+ sm: "w-8 h-8 text-xs",
67
+ md: "w-10 h-10 text-sm",
68
+ lg: "w-12 h-12 text-base",
69
+ xl: "w-16 h-16 text-lg"
70
+ }, I = {
71
+ xs: "w-1.5 h-1.5",
72
+ sm: "w-2 h-2",
73
+ md: "w-2.5 h-2.5",
74
+ lg: "w-3 h-3",
75
+ xl: "w-3.5 h-3.5"
76
+ }, L = {
77
+ online: "bg-green-500",
78
+ offline: "bg-gray-400",
79
+ busy: "bg-red-500",
80
+ away: "bg-yellow-400"
81
+ };
82
+ function E(e) {
83
+ return e.split(" ").slice(0, 2).map((t) => t[0]).join("").toUpperCase();
84
+ }
85
+ function S(e) {
86
+ const t = [
87
+ "bg-orange-100 text-orange-700",
88
+ "bg-blue-100 text-blue-700",
89
+ "bg-green-100 text-green-700",
90
+ "bg-purple-100 text-purple-700",
91
+ "bg-pink-100 text-pink-700",
92
+ "bg-teal-100 text-teal-700"
93
+ ], r = e.charCodeAt(0) % t.length;
94
+ return t[r];
95
+ }
96
+ function ie({
97
+ src: e,
98
+ alt: t = "",
99
+ name: r,
100
+ size: n = "md",
101
+ status: o,
102
+ className: l = "",
103
+ ...c
104
+ }) {
105
+ return /* @__PURE__ */ s("div", { className: ["relative inline-flex shrink-0", l].filter(Boolean).join(" "), ...c, children: [
106
+ /* @__PURE__ */ a(
107
+ "div",
108
+ {
109
+ className: [
110
+ "rounded-full overflow-hidden flex items-center justify-center font-semibold",
111
+ F[n],
112
+ !e && r ? S(r) : "bg-surface-container"
113
+ ].filter(Boolean).join(" "),
114
+ children: e ? /* @__PURE__ */ a(
115
+ "img",
116
+ {
117
+ src: e,
118
+ alt: t || r,
119
+ className: "w-full h-full object-cover"
120
+ }
121
+ ) : r ? E(r) : /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
122
+ }
123
+ ),
124
+ o && /* @__PURE__ */ a(
125
+ "span",
126
+ {
127
+ className: [
128
+ "absolute bottom-0 right-0 rounded-full border-2 border-white",
129
+ I[n],
130
+ L[o]
131
+ ].filter(Boolean).join(" ")
132
+ }
133
+ )
134
+ ] });
135
+ }
136
+ const M = {
137
+ default: "bg-surface-container text-on-surface-variant",
138
+ primary: "bg-orange-100 text-orange-700",
139
+ success: "bg-green-100 text-green-700",
140
+ warning: "bg-yellow-100 text-yellow-700",
141
+ danger: "bg-red-100 text-red-700",
142
+ info: "bg-blue-100 text-blue-700"
143
+ }, A = {
144
+ default: "bg-on-surface-variant",
145
+ primary: "bg-orange-500",
146
+ success: "bg-green-500",
147
+ warning: "bg-yellow-500",
148
+ danger: "bg-red-500",
149
+ info: "bg-blue-500"
150
+ }, D = {
151
+ sm: "px-2 py-0.5 text-xs gap-1",
152
+ md: "px-2.5 py-1 text-xs gap-1.5"
153
+ };
154
+ function ce({
155
+ variant: e = "default",
156
+ size: t = "md",
157
+ dot: r = !1,
158
+ icon: n,
159
+ children: o,
160
+ className: l = "",
161
+ ...c
162
+ }) {
163
+ return /* @__PURE__ */ s(
164
+ "span",
165
+ {
166
+ className: [
167
+ "inline-flex items-center font-medium rounded-full",
168
+ M[e],
169
+ D[t],
170
+ l
171
+ ].filter(Boolean).join(" "),
172
+ ...c,
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 }),
176
+ o
177
+ ]
178
+ }
179
+ );
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(
187
+ "span",
188
+ {
189
+ "aria-current": "page",
190
+ className: "font-semibold text-on-surface flex items-center gap-1",
191
+ children: [
192
+ n.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] leading-none", children: n.icon }),
193
+ n.label
194
+ ]
195
+ }
196
+ ) : /* @__PURE__ */ s(
197
+ "a",
198
+ {
199
+ href: n.href ?? "#",
200
+ className: "text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",
201
+ children: [
202
+ n.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] leading-none", children: n.icon }),
203
+ n.label
204
+ ]
205
+ }
206
+ )
207
+ ] }, o);
208
+ }) }) });
209
+ }
210
+ const H = {
211
+ primary: "bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",
212
+ secondary: "bg-white text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
213
+ ghost: "bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
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
+ 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 = {
217
+ sm: "px-3 py-1.5 text-sm gap-1.5 h-8",
218
+ md: "px-4 py-2 text-sm gap-2 h-10",
219
+ lg: "px-5 py-2.5 text-base gap-2 h-11"
220
+ }, g = {
221
+ sm: "text-[16px]",
222
+ md: "text-[18px]",
223
+ lg: "text-[20px]"
224
+ }, q = x(
225
+ ({
226
+ variant: e = "primary",
227
+ size: t = "md",
228
+ loading: r = !1,
229
+ iconLeft: n,
230
+ iconRight: o,
231
+ fullWidth: l = !1,
232
+ disabled: c,
233
+ children: d,
234
+ className: i = "",
235
+ ...u
236
+ }, f) => /* @__PURE__ */ s(
237
+ "button",
238
+ {
239
+ ref: f,
240
+ disabled: c || r,
241
+ className: [
242
+ "inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none",
243
+ "focus:outline-none",
244
+ "disabled:opacity-50 disabled:cursor-not-allowed",
245
+ H[e],
246
+ R[t],
247
+ l ? "w-full" : "",
248
+ i
249
+ ].filter(Boolean).join(" "),
250
+ ...u,
251
+ children: [
252
+ r ? /* @__PURE__ */ a(
253
+ "span",
254
+ {
255
+ className: `material-symbols-outlined animate-spin ${g[t]}`,
256
+ children: "progress_activity"
257
+ }
258
+ ) : n && /* @__PURE__ */ a("span", { className: `material-symbols-outlined ${g[t]}`, children: n }),
259
+ d,
260
+ !r && o && /* @__PURE__ */ a("span", { className: `material-symbols-outlined ${g[t]}`, children: o })
261
+ ]
262
+ }
263
+ )
264
+ );
265
+ q.displayName = "Button";
266
+ function ue({ children: e, attached: t = !1, className: r = "", ...n }) {
267
+ return /* @__PURE__ */ a(
268
+ "div",
269
+ {
270
+ role: "group",
271
+ className: [
272
+ "inline-flex",
273
+ t ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
274
+ r
275
+ ].filter(Boolean).join(" "),
276
+ ...n,
277
+ children: e
278
+ }
279
+ );
280
+ }
281
+ const G = {
282
+ elevated: "bg-white shadow-theme-lg border border-surface-container-high",
283
+ outlined: "bg-white border border-outline-variant",
284
+ filled: "bg-surface-container-low border border-transparent"
285
+ }, K = {
286
+ none: "",
287
+ sm: "p-4",
288
+ md: "p-5",
289
+ lg: "p-6"
290
+ };
291
+ function fe({
292
+ variant: e = "elevated",
293
+ padding: t = "md",
294
+ children: r,
295
+ className: n = "",
296
+ ...o
297
+ }) {
298
+ return /* @__PURE__ */ a(
299
+ "div",
300
+ {
301
+ className: [
302
+ "rounded-xl overflow-hidden",
303
+ G[e],
304
+ n
305
+ ].filter(Boolean).join(" "),
306
+ ...o,
307
+ children: /* @__PURE__ */ a("div", { className: K[t], children: r })
308
+ }
309
+ );
310
+ }
311
+ function me({
312
+ title: e,
313
+ subtitle: t,
314
+ action: r,
315
+ icon: n,
316
+ className: o = "",
317
+ ...l
318
+ }) {
319
+ return /* @__PURE__ */ s(
320
+ "div",
321
+ {
322
+ className: ["flex items-start justify-between gap-4 pb-4", o].filter(Boolean).join(" "),
323
+ ...l,
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 })
330
+ ] })
331
+ ] }),
332
+ r && /* @__PURE__ */ a("div", { className: "shrink-0", children: r })
333
+ ]
334
+ }
335
+ );
336
+ }
337
+ function xe({ children: e, className: t = "", ...r }) {
338
+ return /* @__PURE__ */ a(
339
+ "div",
340
+ {
341
+ className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", t].filter(Boolean).join(" "),
342
+ ...r,
343
+ children: e
344
+ }
345
+ );
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);
352
+ };
353
+ return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
354
+ }, []), w(() => {
355
+ const i = (u) => {
356
+ u.key === "Escape" && c(!1);
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(
362
+ "div",
363
+ {
364
+ className: [
365
+ "absolute z-40 mt-2 min-w-[180px] bg-white border border-surface-container-high rounded-xl shadow-theme-lg py-1",
366
+ r === "right" ? "right-0" : "left-0"
367
+ ].join(" "),
368
+ role: "menu",
369
+ children: t.map((i, u) => /* @__PURE__ */ s("div", { children: [
370
+ /* @__PURE__ */ s(
371
+ "button",
372
+ {
373
+ role: "menuitem",
374
+ disabled: i.disabled,
375
+ onClick: () => {
376
+ var f;
377
+ i.disabled || ((f = i.onClick) == null || f.call(i), c(!1));
378
+ },
379
+ className: [
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"
383
+ ].filter(Boolean).join(" "),
384
+ children: [
385
+ i.icon && /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px] opacity-70", children: i.icon }),
386
+ i.label
387
+ ]
388
+ }
389
+ ),
390
+ i.dividerAfter && /* @__PURE__ */ a("div", { className: "my-1 border-t border-surface-container-high" })
391
+ ] }, u))
392
+ }
393
+ )
394
+ ] });
395
+ }
396
+ const O = x(
397
+ ({ label: e, hint: t, error: r, options: n, placeholder: o, disabled: l, className: c = "", id: d, ...i }, u) => {
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(
403
+ "select",
404
+ {
405
+ ref: u,
406
+ id: f,
407
+ disabled: l,
408
+ className: [
409
+ "w-full appearance-none bg-white border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
410
+ "text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
411
+ r ? "border-error" : "border-outline-variant",
412
+ "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
413
+ c
414
+ ].filter(Boolean).join(" "),
415
+ ...i,
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))
419
+ ]
420
+ }
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" })
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" }),
426
+ r
427
+ ] }),
428
+ !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
429
+ ] });
430
+ }
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(
439
+ "textarea",
440
+ {
441
+ ref: i,
442
+ id: u,
443
+ rows: c,
444
+ disabled: n,
445
+ className: [
446
+ "w-full bg-white border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
447
+ "text-on-surface placeholder:text-on-surface-variant",
448
+ "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
449
+ r ? "border-error" : "border-outline-variant",
450
+ "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
451
+ o
452
+ ].filter(Boolean).join(" "),
453
+ ...d
454
+ }
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" }),
458
+ r
459
+ ] }),
460
+ !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
461
+ ] });
462
+ }
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(
470
+ "label",
471
+ {
472
+ htmlFor: i,
473
+ className: [
474
+ "flex items-start gap-3 cursor-pointer",
475
+ n ? "opacity-50 cursor-not-allowed" : ""
476
+ ].filter(Boolean).join(" "),
477
+ 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 })
497
+ ] })
498
+ ]
499
+ }
500
+ ),
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" }),
503
+ r
504
+ ] })
505
+ ] });
506
+ }
507
+ );
508
+ V.displayName = "Checkbox";
509
+ const J = x(
510
+ ({ label: e, description: t, disabled: r, className: n = "", id: o, ...l }, c) => {
511
+ const d = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
512
+ return /* @__PURE__ */ s(
513
+ "label",
514
+ {
515
+ htmlFor: d,
516
+ className: [
517
+ "flex items-start gap-3 cursor-pointer",
518
+ r ? "opacity-50 cursor-not-allowed" : ""
519
+ ].filter(Boolean).join(" "),
520
+ children: [
521
+ /* @__PURE__ */ a(
522
+ "input",
523
+ {
524
+ ref: c,
525
+ type: "radio",
526
+ id: d,
527
+ disabled: r,
528
+ className: [
529
+ "mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0",
530
+ "focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0",
531
+ "disabled:cursor-not-allowed",
532
+ n
533
+ ].filter(Boolean).join(" "),
534
+ ...l
535
+ }
536
+ ),
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 })
540
+ ] })
541
+ ]
542
+ }
543
+ );
544
+ }
545
+ );
546
+ J.displayName = "Radio";
547
+ const Q = x(
548
+ ({ label: e, description: t, disabled: r, className: n = "", id: o, ...l }, c) => {
549
+ const d = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
550
+ return /* @__PURE__ */ s(
551
+ "label",
552
+ {
553
+ htmlFor: d,
554
+ className: [
555
+ "flex items-start gap-3 cursor-pointer select-none",
556
+ r ? "opacity-50 cursor-not-allowed" : ""
557
+ ].filter(Boolean).join(" "),
558
+ children: [
559
+ /* @__PURE__ */ s("div", { className: "relative mt-0.5 shrink-0", children: [
560
+ /* @__PURE__ */ a(
561
+ "input",
562
+ {
563
+ ref: c,
564
+ type: "checkbox",
565
+ id: d,
566
+ disabled: r,
567
+ className: "sr-only peer",
568
+ ...l
569
+ }
570
+ ),
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" })
573
+ ] }),
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 })
577
+ ] })
578
+ ]
579
+ }
580
+ );
581
+ }
582
+ );
583
+ Q.displayName = "Switch";
584
+ const W = {
585
+ sm: "px-3 py-1.5 text-sm h-8",
586
+ md: "px-3 py-2 text-sm h-10",
587
+ lg: "px-4 py-2.5 text-base h-11"
588
+ }, y = {
589
+ sm: "text-[16px]",
590
+ md: "text-[18px]",
591
+ lg: "text-[20px]"
592
+ }, X = x(
593
+ ({
594
+ label: e,
595
+ hint: t,
596
+ error: r,
597
+ inputSize: n = "md",
598
+ iconLeft: o,
599
+ iconRight: l,
600
+ onIconRightClick: c,
601
+ disabled: d,
602
+ className: i = "",
603
+ id: u,
604
+ ...f
605
+ }, m) => {
606
+ 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(
609
+ "label",
610
+ {
611
+ htmlFor: p,
612
+ className: "text-sm font-medium text-on-surface",
613
+ children: e
614
+ }
615
+ ),
616
+ /* @__PURE__ */ s("div", { className: "relative flex items-center", children: [
617
+ o && /* @__PURE__ */ a(
618
+ "span",
619
+ {
620
+ className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${y[n]}`,
621
+ children: o
622
+ }
623
+ ),
624
+ /* @__PURE__ */ a(
625
+ "input",
626
+ {
627
+ ref: m,
628
+ id: p,
629
+ disabled: d,
630
+ className: [
631
+ "w-full bg-white border rounded transition-all duration-200",
632
+ "text-on-surface placeholder:text-on-surface-variant",
633
+ "focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
634
+ r ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
635
+ "disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
636
+ W[n],
637
+ o ? "pl-9" : "",
638
+ l ? "pr-9" : "",
639
+ i
640
+ ].filter(Boolean).join(" "),
641
+ ...f
642
+ }
643
+ ),
644
+ l && /* @__PURE__ */ a(
645
+ "span",
646
+ {
647
+ className: [
648
+ "material-symbols-outlined absolute right-3 text-on-surface-variant",
649
+ y[n],
650
+ c ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
651
+ ].filter(Boolean).join(" "),
652
+ onClick: c,
653
+ children: l
654
+ }
655
+ )
656
+ ] }),
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" }),
659
+ r
660
+ ] }),
661
+ !r && t && /* @__PURE__ */ a("p", { className: "text-xs text-on-surface-variant", children: t })
662
+ ] });
663
+ }
664
+ );
665
+ X.displayName = "Input";
666
+ const Y = {
667
+ sm: "max-w-sm",
668
+ md: "max-w-md",
669
+ lg: "max-w-lg",
670
+ xl: "max-w-2xl",
671
+ full: "max-w-[calc(100vw-2rem)]"
672
+ };
673
+ function he({ open: e, onClose: t, size: r = "md", children: n }) {
674
+ return w(() => {
675
+ if (!e) return;
676
+ const o = (l) => {
677
+ l.key === "Escape" && t();
678
+ };
679
+ return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
680
+ }, [e, t]), e ? /* @__PURE__ */ s(
681
+ "div",
682
+ {
683
+ className: "fixed inset-0 z-50 flex items-center justify-center p-4",
684
+ "aria-modal": "true",
685
+ role: "dialog",
686
+ children: [
687
+ /* @__PURE__ */ a(
688
+ "div",
689
+ {
690
+ className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
691
+ onClick: t,
692
+ "aria-hidden": "true"
693
+ }
694
+ ),
695
+ /* @__PURE__ */ a(
696
+ "div",
697
+ {
698
+ className: [
699
+ "relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
700
+ Y[r]
701
+ ].filter(Boolean).join(" "),
702
+ children: n
703
+ }
704
+ )
705
+ ]
706
+ }
707
+ ) : null;
708
+ }
709
+ function be({ title: e, subtitle: t, onClose: r, className: n = "", ...o }) {
710
+ return /* @__PURE__ */ s(
711
+ "div",
712
+ {
713
+ className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", n].filter(Boolean).join(" "),
714
+ ...o,
715
+ 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 })
719
+ ] }),
720
+ r && /* @__PURE__ */ a(
721
+ "button",
722
+ {
723
+ onClick: r,
724
+ 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
+ "aria-label": "Fechar modal",
726
+ children: /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
727
+ }
728
+ )
729
+ ]
730
+ }
731
+ );
732
+ }
733
+ function ge({ children: e, className: t = "", ...r }) {
734
+ return /* @__PURE__ */ a(
735
+ "div",
736
+ {
737
+ className: ["p-6 overflow-y-auto flex-1", t].filter(Boolean).join(" "),
738
+ ...r,
739
+ children: e
740
+ }
741
+ );
742
+ }
743
+ function we({ children: e, className: t = "", ...r }) {
744
+ return /* @__PURE__ */ a(
745
+ "div",
746
+ {
747
+ className: [
748
+ "flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
749
+ t
750
+ ].filter(Boolean).join(" "),
751
+ ...r,
752
+ children: e
753
+ }
754
+ );
755
+ }
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];
758
+ }
759
+ function ve({
760
+ currentPage: e,
761
+ totalPages: t,
762
+ totalItems: r,
763
+ itemsPerPage: n = 10,
764
+ onPageChange: o,
765
+ variant: l = "full",
766
+ className: c = "",
767
+ ...d
768
+ }) {
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(
771
+ "div",
772
+ {
773
+ className: ["flex items-center justify-between gap-4 flex-wrap", c].filter(Boolean).join(" "),
774
+ ...d,
775
+ children: [
776
+ l === "full" && r !== void 0 && /* @__PURE__ */ s("p", { className: "text-sm text-on-surface-variant", children: [
777
+ "Mostrando ",
778
+ /* @__PURE__ */ s("strong", { children: [
779
+ u,
780
+ "–",
781
+ f
782
+ ] }),
783
+ " de ",
784
+ /* @__PURE__ */ a("strong", { children: r }),
785
+ " itens"
786
+ ] }),
787
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-1 ml-auto", children: [
788
+ /* @__PURE__ */ s(
789
+ "button",
790
+ {
791
+ onClick: () => o(e - 1),
792
+ disabled: e === 1,
793
+ "aria-label": "Página anterior",
794
+ className: l === "icon" ? p + " " + b : N,
795
+ children: [
796
+ /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
797
+ l === "text" && "Anterior"
798
+ ]
799
+ }
800
+ ),
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(
803
+ "button",
804
+ {
805
+ onClick: () => o(h),
806
+ "aria-current": e === h ? "page" : void 0,
807
+ className: [p, e === h ? C : b].join(" "),
808
+ children: h
809
+ },
810
+ h
811
+ )
812
+ ),
813
+ /* @__PURE__ */ s(
814
+ "button",
815
+ {
816
+ onClick: () => o(e + 1),
817
+ disabled: e === t,
818
+ "aria-label": "Próxima página",
819
+ className: l === "icon" ? p + " " + b : N,
820
+ children: [
821
+ l === "text" && "Próxima",
822
+ /* @__PURE__ */ a("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
823
+ ]
824
+ }
825
+ )
826
+ ] })
827
+ ]
828
+ }
829
+ );
830
+ }
831
+ const P = {
832
+ xs: "h-1",
833
+ sm: "h-1.5",
834
+ md: "h-2",
835
+ lg: "h-3"
836
+ }, ee = {
837
+ primary: "bg-zeo-orange",
838
+ success: "bg-green-500",
839
+ warning: "bg-amber-400",
840
+ danger: "bg-red-500"
841
+ };
842
+ function Ne({
843
+ value: e,
844
+ max: t = 100,
845
+ size: r = "md",
846
+ variant: n = "primary",
847
+ label: o = "none",
848
+ showPercent: l = !0,
849
+ title: c,
850
+ className: d = "",
851
+ ...i
852
+ }) {
853
+ 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 })
858
+ ] }),
859
+ /* @__PURE__ */ a(
860
+ "div",
861
+ {
862
+ role: "progressbar",
863
+ "aria-valuenow": e,
864
+ "aria-valuemin": 0,
865
+ "aria-valuemax": t,
866
+ className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", P[r]].join(" "),
867
+ children: /* @__PURE__ */ a(
868
+ "div",
869
+ {
870
+ className: [
871
+ "h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
872
+ ee[n]
873
+ ].join(" "),
874
+ style: { width: `${u}%` },
875
+ children: o === "inside" && l && u >= 20 && /* @__PURE__ */ a("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
876
+ }
877
+ )
878
+ }
879
+ )
880
+ ] });
881
+ }
882
+ const te = {
883
+ xs: "w-3 h-3 border",
884
+ sm: "w-4 h-4 border-2",
885
+ md: "w-6 h-6 border-2",
886
+ lg: "w-8 h-8 border-[3px]",
887
+ xl: "w-12 h-12 border-4"
888
+ }, re = {
889
+ primary: "border-orange-200 border-t-zeo-orange",
890
+ secondary: "border-surface-container-high border-t-on-surface-variant",
891
+ white: "border-white/30 border-t-white"
892
+ };
893
+ function ye({
894
+ size: e = "md",
895
+ variant: t = "primary",
896
+ label: r = "Carregando...",
897
+ className: n = "",
898
+ ...o
899
+ }) {
900
+ return /* @__PURE__ */ a(
901
+ "span",
902
+ {
903
+ role: "status",
904
+ "aria-label": r,
905
+ className: [
906
+ "inline-block rounded-full animate-spin",
907
+ te[e],
908
+ re[t],
909
+ n
910
+ ].filter(Boolean).join(" "),
911
+ ...o
912
+ }
913
+ );
914
+ }
915
+ function je({ children: e, className: t = "", ...r }) {
916
+ return /* @__PURE__ */ a(
917
+ "div",
918
+ {
919
+ className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", t].filter(Boolean).join(" "),
920
+ ...r,
921
+ children: /* @__PURE__ */ a("table", { className: "w-full text-sm", children: e })
922
+ }
923
+ );
924
+ }
925
+ function Ce({ children: e, className: t = "", ...r }) {
926
+ return /* @__PURE__ */ a(
927
+ "thead",
928
+ {
929
+ className: ["bg-surface-container-low border-b border-surface-container-high", t].filter(Boolean).join(" "),
930
+ ...r,
931
+ children: e
932
+ }
933
+ );
934
+ }
935
+ function Be({ children: e, className: t = "", ...r }) {
936
+ return /* @__PURE__ */ a(
937
+ "tbody",
938
+ {
939
+ className: ["bg-white divide-y divide-surface-container-high", t].filter(Boolean).join(" "),
940
+ ...r,
941
+ children: e
942
+ }
943
+ );
944
+ }
945
+ function ke({ selected: e = !1, children: t, className: r = "", ...n }) {
946
+ return /* @__PURE__ */ a(
947
+ "tr",
948
+ {
949
+ className: [
950
+ "hover:bg-surface-container-low transition-colors",
951
+ e ? "bg-orange-50/40" : "",
952
+ r
953
+ ].filter(Boolean).join(" "),
954
+ ...n,
955
+ children: t
956
+ }
957
+ );
958
+ }
959
+ function ze({
960
+ sortable: e = !1,
961
+ sorted: t = !1,
962
+ onSort: r,
963
+ children: n,
964
+ className: o = "",
965
+ ...l
966
+ }) {
967
+ return /* @__PURE__ */ a(
968
+ "th",
969
+ {
970
+ className: [
971
+ "px-4 py-3 text-left text-xs font-semibold text-on-surface-variant uppercase tracking-wide whitespace-nowrap",
972
+ e ? "cursor-pointer hover:text-on-surface select-none" : "",
973
+ o
974
+ ].filter(Boolean).join(" "),
975
+ 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(
980
+ "span",
981
+ {
982
+ className: `material-symbols-outlined text-[14px] ${t ? "text-zeo-orange" : "opacity-40"}`,
983
+ children: t === "asc" ? "arrow_upward" : t === "desc" ? "arrow_downward" : "unfold_more"
984
+ }
985
+ )
986
+ ] })
987
+ }
988
+ );
989
+ }
990
+ function $e({ muted: e = !1, mono: t = !1, children: r, className: n = "", ...o }) {
991
+ return /* @__PURE__ */ a(
992
+ "td",
993
+ {
994
+ className: [
995
+ "px-4 py-3",
996
+ e ? "text-on-surface-variant" : "text-on-surface",
997
+ t ? "font-mono text-xs" : "",
998
+ n
999
+ ].filter(Boolean).join(" "),
1000
+ ...o,
1001
+ children: r
1002
+ }
1003
+ );
1004
+ }
1005
+ const j = $(null);
1006
+ function v() {
1007
+ const e = _(j);
1008
+ if (!e) throw new Error("Tab must be used inside Tabs");
1009
+ return e;
1010
+ }
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 }) });
1013
+ }
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",
1017
+ underline: "flex gap-0 border-b border-surface-container-high w-full",
1018
+ 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(
1021
+ "div",
1022
+ {
1023
+ role: "tablist",
1024
+ className: [o, t].filter(Boolean).join(" "),
1025
+ ...r,
1026
+ children: e
1027
+ }
1028
+ );
1029
+ }
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"
1035
+ }[d];
1036
+ return /* @__PURE__ */ s(
1037
+ "button",
1038
+ {
1039
+ role: "tab",
1040
+ "aria-selected": i,
1041
+ "aria-disabled": o,
1042
+ disabled: o,
1043
+ onClick: () => !o && c(e),
1044
+ className: [u, m, o ? f : ""].filter(Boolean).join(" "),
1045
+ children: [
1046
+ r && /* @__PURE__ */ a(
1047
+ "span",
1048
+ {
1049
+ className: "material-symbols-outlined text-[18px]",
1050
+ style: i ? { fontVariationSettings: "'FILL' 1" } : void 0,
1051
+ children: r
1052
+ }
1053
+ ),
1054
+ t,
1055
+ n !== void 0 && /* @__PURE__ */ a(
1056
+ "span",
1057
+ {
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
1060
+ }
1061
+ )
1062
+ ]
1063
+ }
1064
+ );
1065
+ }
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 });
1069
+ }
1070
+ const ae = {
1071
+ top: {
1072
+ wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
1073
+ arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
1074
+ },
1075
+ bottom: {
1076
+ wrapper: "top-full left-1/2 -translate-x-1/2 mt-2",
1077
+ arrow: "bottom-full left-1/2 -translate-x-1/2 border-b-4 border-x-4 border-x-transparent border-t-0"
1078
+ },
1079
+ left: {
1080
+ wrapper: "right-full top-1/2 -translate-y-1/2 mr-2",
1081
+ arrow: "left-full top-1/2 -translate-y-1/2 border-l-4 border-y-4 border-y-transparent border-r-0"
1082
+ },
1083
+ right: {
1084
+ wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
1085
+ arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
1086
+ }
1087
+ }, ne = {
1088
+ 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
+ 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
+ };
1091
+ function Le({
1092
+ content: e,
1093
+ position: t = "top",
1094
+ variant: r = "dark",
1095
+ children: n,
1096
+ className: o = "",
1097
+ ...l
1098
+ }) {
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(
1103
+ "div",
1104
+ {
1105
+ role: "tooltip",
1106
+ className: [
1107
+ "absolute z-50 pointer-events-none",
1108
+ "opacity-0 group-hover:opacity-100 transition-opacity duration-150",
1109
+ "whitespace-nowrap text-xs font-medium px-2.5 py-1.5 rounded-lg",
1110
+ c.wrapper,
1111
+ d.tooltip
1112
+ ].join(" "),
1113
+ children: [
1114
+ e,
1115
+ /* @__PURE__ */ a("span", { className: ["absolute w-0 h-0", c.arrow, d.arrow].join(" ") })
1116
+ ]
1117
+ }
1118
+ )
1119
+ ] });
1120
+ }
1121
+ 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
1156
+ };