@fluityy/designsystem 0.2.0 → 0.2.2

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.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsx as a, jsxs as f } from "react/jsx-runtime";
2
- import { forwardRef as p, useState as b, useRef as T, useEffect as y, createContext as C, useContext as w, useId as H, cloneElement as K, Children as ae, Fragment as ne, useCallback as M, useMemo as oe } from "react";
3
- import { cva as N } from "class-variance-authority";
1
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
+ import { forwardRef as g, useState as b, useRef as T, useEffect as C, createContext as N, useContext as w, useId as H, cloneElement as K, Children as ae, Fragment as ne, useCallback as M, useMemo as oe } from "react";
3
+ import { cva as V } from "class-variance-authority";
4
4
  import { clsx as le } from "clsx";
5
5
  import { twMerge as se } from "tailwind-merge";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  function i(...e) {
8
8
  return se(le(e));
9
9
  }
10
- const ce = N(
10
+ const ce = V(
11
11
  // base: tudo derivado de tokens via utilitários mapeados no @theme
12
12
  "inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ring-offset-bg disabled:opacity-50 disabled:pointer-events-none select-none",
13
13
  {
@@ -32,18 +32,18 @@ const ce = N(
32
32
  size: "md"
33
33
  }
34
34
  }
35
- ), ue = p(
36
- ({ className: e, variant: r, size: t, fullWidth: n, ...o }, s) => /* @__PURE__ */ a(
35
+ ), ue = g(
36
+ ({ className: e, variant: r, size: a, fullWidth: n, ...o }, s) => /* @__PURE__ */ t(
37
37
  "button",
38
38
  {
39
39
  ref: s,
40
- className: i(ce({ variant: r, size: t, fullWidth: n }), e),
40
+ className: i(ce({ variant: r, size: a, fullWidth: n }), e),
41
41
  ...o
42
42
  }
43
43
  )
44
44
  );
45
45
  ue.displayName = "Button";
46
- const fe = N(
46
+ const fe = V(
47
47
  "flex w-full bg-bg-muted text-fg placeholder:text-fg-muted border border-transparent transition-colors outline-none rounded-lg focus-visible:border-border-strong disabled:opacity-50 disabled:pointer-events-none",
48
48
  {
49
49
  variants: {
@@ -59,29 +59,60 @@ const fe = N(
59
59
  },
60
60
  defaultVariants: { size: "md", invalid: !1 }
61
61
  }
62
- ), de = p(
63
- ({ className: e, size: r, invalid: t, label: n, id: o, ...s }, l) => {
64
- const c = o ?? (n ? n.toLowerCase().replace(/\s+/g, "-") : void 0), u = /* @__PURE__ */ a(
65
- "input",
66
- {
67
- ref: l,
68
- id: c,
69
- className: i(fe({ size: r, invalid: t }), e),
70
- ...s
71
- }
72
- );
62
+ ), de = g(
63
+ ({ className: e, size: r, invalid: a, label: n, id: o, type: s, ...l }, c) => {
64
+ const [u, m] = b(!1), d = s === "password", p = d ? u ? "text" : "password" : s, h = o ?? (n ? n.toLowerCase().replace(/\s+/g, "-") : void 0), v = /* @__PURE__ */ f("div", { className: "relative flex w-full items-center", children: [
65
+ /* @__PURE__ */ t(
66
+ "input",
67
+ {
68
+ ref: c,
69
+ id: h,
70
+ type: p,
71
+ className: i(
72
+ fe({ size: r, invalid: a }),
73
+ d && "pr-10",
74
+ e
75
+ ),
76
+ ...l
77
+ }
78
+ ),
79
+ d && /* @__PURE__ */ t(
80
+ "button",
81
+ {
82
+ type: "button",
83
+ tabIndex: -1,
84
+ onClick: () => m((y) => !y),
85
+ "aria-label": u ? "Ocultar senha" : "Mostrar senha",
86
+ className: "absolute right-3 text-fg-muted transition-colors hover:text-fg",
87
+ children: u ? (
88
+ // olho fechado
89
+ /* @__PURE__ */ f("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: 1.75, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
90
+ /* @__PURE__ */ t("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
91
+ /* @__PURE__ */ t("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
92
+ /* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
93
+ ] })
94
+ ) : (
95
+ // olho aberto
96
+ /* @__PURE__ */ f("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: 1.75, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
97
+ /* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
98
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
99
+ ] })
100
+ )
101
+ }
102
+ )
103
+ ] });
73
104
  return n ? /* @__PURE__ */ f("div", { className: "flex w-full flex-col gap-1.5", children: [
74
- /* @__PURE__ */ a("label", { htmlFor: c, className: "text-xs font-medium text-fg", children: n }),
75
- u
76
- ] }) : u;
105
+ /* @__PURE__ */ t("label", { htmlFor: h, className: "text-xs font-medium text-fg", children: n }),
106
+ v
107
+ ] }) : v;
77
108
  }
78
109
  );
79
110
  de.displayName = "Input";
80
- const me = p(
81
- ({ className: e, ...r }, t) => /* @__PURE__ */ a(
111
+ const me = g(
112
+ ({ className: e, ...r }, a) => /* @__PURE__ */ t(
82
113
  "div",
83
114
  {
84
- ref: t,
115
+ ref: a,
85
116
  className: i(
86
117
  "bg-bg border border-border-default rounded-lg shadow-sm",
87
118
  e
@@ -91,19 +122,19 @@ const me = p(
91
122
  )
92
123
  );
93
124
  me.displayName = "Card";
94
- const pe = p(
95
- ({ className: e, ...r }, t) => /* @__PURE__ */ a("div", { ref: t, className: i("flex flex-col gap-1 p-6", e), ...r })
125
+ const pe = g(
126
+ ({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ref: a, className: i("flex flex-col gap-1 p-6", e), ...r })
96
127
  );
97
128
  pe.displayName = "CardHeader";
98
- const ge = p(({ className: e, ...r }, t) => /* @__PURE__ */ a("h3", { ref: t, className: i("text-lg font-semibold text-fg", e), ...r }));
129
+ const ge = g(({ className: e, ...r }, a) => /* @__PURE__ */ t("h3", { ref: a, className: i("text-lg font-semibold text-fg", e), ...r }));
99
130
  ge.displayName = "CardTitle";
100
- const be = p(({ className: e, ...r }, t) => /* @__PURE__ */ a("p", { ref: t, className: i("text-sm text-fg-muted", e), ...r }));
131
+ const be = g(({ className: e, ...r }, a) => /* @__PURE__ */ t("p", { ref: a, className: i("text-sm text-fg-muted", e), ...r }));
101
132
  be.displayName = "CardDescription";
102
- const he = p(
103
- ({ className: e, ...r }, t) => /* @__PURE__ */ a("div", { ref: t, className: i("p-6 pt-0", e), ...r })
133
+ const he = g(
134
+ ({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ref: a, className: i("p-6 pt-0", e), ...r })
104
135
  );
105
136
  he.displayName = "CardContent";
106
- const ve = N(
137
+ const ve = V(
107
138
  "relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ring-offset-bg disabled:cursor-not-allowed disabled:opacity-50",
108
139
  {
109
140
  variants: {
@@ -112,7 +143,7 @@ const ve = N(
112
143
  },
113
144
  defaultVariants: { size: "md", checked: !1 }
114
145
  }
115
- ), xe = N(
146
+ ), xe = V(
116
147
  "pointer-events-none absolute left-0.5 inline-block rounded-full bg-fg-on-brand shadow-sm transition-transform",
117
148
  {
118
149
  variants: {
@@ -125,37 +156,37 @@ const ve = N(
125
156
  ],
126
157
  defaultVariants: { size: "md", checked: !1 }
127
158
  }
128
- ), we = p(
129
- ({ className: e, size: r, checked: t, defaultChecked: n, onCheckedChange: o, disabled: s, ...l }, c) => {
130
- const u = t !== void 0, [d, m] = b(n ?? !1), g = u ? t : d;
131
- return /* @__PURE__ */ a(
159
+ ), we = g(
160
+ ({ className: e, size: r, checked: a, defaultChecked: n, onCheckedChange: o, disabled: s, ...l }, c) => {
161
+ const u = a !== void 0, [m, d] = b(n ?? !1), p = u ? a : m;
162
+ return /* @__PURE__ */ t(
132
163
  "button",
133
164
  {
134
165
  ref: c,
135
166
  type: "button",
136
167
  role: "switch",
137
- "aria-checked": g,
168
+ "aria-checked": p,
138
169
  disabled: s,
139
170
  onClick: () => {
140
- const x = !g;
141
- u || m(x), o == null || o(x);
171
+ const v = !p;
172
+ u || d(v), o == null || o(v);
142
173
  },
143
- className: i(ve({ size: r, checked: g }), e),
174
+ className: i(ve({ size: r, checked: p }), e),
144
175
  ...l,
145
- children: /* @__PURE__ */ a("span", { className: xe({ size: r, checked: g }) })
176
+ children: /* @__PURE__ */ t("span", { className: xe({ size: r, checked: p }) })
146
177
  }
147
178
  );
148
179
  }
149
180
  );
150
181
  we.displayName = "Switch";
151
- const ye = p(
152
- ({ className: e, label: r, indeterminate: t = !1, disabled: n, id: o, ...s }, l) => {
182
+ const ye = g(
183
+ ({ className: e, label: r, indeterminate: a = !1, disabled: n, id: o, ...s }, l) => {
153
184
  const c = T(null);
154
- y(() => {
155
- c.current && (c.current.indeterminate = t);
156
- }, [t]);
157
- const u = (d) => {
158
- c.current = d, typeof l == "function" ? l(d) : l && (l.current = d);
185
+ C(() => {
186
+ c.current && (c.current.indeterminate = a);
187
+ }, [a]);
188
+ const u = (m) => {
189
+ c.current = m, typeof l == "function" ? l(m) : l && (l.current = m);
159
190
  };
160
191
  return /* @__PURE__ */ f(
161
192
  "label",
@@ -166,7 +197,7 @@ const ye = p(
166
197
  e
167
198
  ),
168
199
  children: [
169
- /* @__PURE__ */ a(
200
+ /* @__PURE__ */ t(
170
201
  "input",
171
202
  {
172
203
  ref: u,
@@ -191,7 +222,7 @@ const ye = p(
191
222
  "peer-indeterminate:[&>span]:opacity-100"
192
223
  ),
193
224
  children: [
194
- /* @__PURE__ */ a(
225
+ /* @__PURE__ */ t(
195
226
  "svg",
196
227
  {
197
228
  viewBox: "0 0 16 16",
@@ -202,43 +233,43 @@ const ye = p(
202
233
  strokeLinecap: "round",
203
234
  strokeLinejoin: "round",
204
235
  "aria-hidden": !0,
205
- children: /* @__PURE__ */ a("path", { d: "M3.5 8.5l3 3 6-6.5" })
236
+ children: /* @__PURE__ */ t("path", { d: "M3.5 8.5l3 3 6-6.5" })
206
237
  }
207
238
  ),
208
- /* @__PURE__ */ a("span", { className: "absolute h-0.5 w-2.5 rounded-full bg-fg-on-brand opacity-0" })
239
+ /* @__PURE__ */ t("span", { className: "absolute h-0.5 w-2.5 rounded-full bg-fg-on-brand opacity-0" })
209
240
  ]
210
241
  }
211
242
  ),
212
- r && /* @__PURE__ */ a("span", { className: "text-sm text-fg", children: r })
243
+ r && /* @__PURE__ */ t("span", { className: "text-sm text-fg", children: r })
213
244
  ]
214
245
  }
215
246
  );
216
247
  }
217
248
  );
218
249
  ye.displayName = "Checkbox";
219
- const q = C(null);
250
+ const q = N(null);
220
251
  function or({
221
252
  value: e,
222
253
  defaultValue: r,
223
- onValueChange: t,
254
+ onValueChange: a,
224
255
  name: n,
225
256
  className: o,
226
257
  children: s,
227
258
  ...l
228
259
  }) {
229
- const c = H(), u = e !== void 0, [d, m] = b(r), g = u ? e : d, v = (x) => {
230
- u || m(x), t == null || t(x);
260
+ const c = H(), u = e !== void 0, [m, d] = b(r), p = u ? e : m, h = (v) => {
261
+ u || d(v), a == null || a(v);
231
262
  };
232
- return /* @__PURE__ */ a(
263
+ return /* @__PURE__ */ t(
233
264
  q.Provider,
234
265
  {
235
- value: { name: n ?? c, value: g, onChange: v },
236
- children: /* @__PURE__ */ a("div", { role: "radiogroup", className: i("flex flex-col gap-2", o), ...l, children: s })
266
+ value: { name: n ?? c, value: p, onChange: h },
267
+ children: /* @__PURE__ */ t("div", { role: "radiogroup", className: i("flex flex-col gap-2", o), ...l, children: s })
237
268
  }
238
269
  );
239
270
  }
240
- const Ce = p(
241
- ({ className: e, value: r, label: t, disabled: n, ...o }, s) => {
271
+ const Ce = g(
272
+ ({ className: e, value: r, label: a, disabled: n, ...o }, s) => {
242
273
  const l = w(q);
243
274
  if (!l) throw new Error("<Radio> precisa estar dentro de <RadioGroup>");
244
275
  const c = l.value === r;
@@ -251,7 +282,7 @@ const Ce = p(
251
282
  e
252
283
  ),
253
284
  children: [
254
- /* @__PURE__ */ a(
285
+ /* @__PURE__ */ t(
255
286
  "input",
256
287
  {
257
288
  ref: s,
@@ -265,7 +296,7 @@ const Ce = p(
265
296
  ...o
266
297
  }
267
298
  ),
268
- /* @__PURE__ */ a(
299
+ /* @__PURE__ */ t(
269
300
  "span",
270
301
  {
271
302
  className: i(
@@ -274,44 +305,44 @@ const Ce = p(
274
305
  "peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2 ring-offset-bg",
275
306
  "peer-checked:[&>span]:scale-100"
276
307
  ),
277
- children: /* @__PURE__ */ a("span", { className: "h-2.5 w-2.5 scale-0 rounded-full bg-primary transition-transform" })
308
+ children: /* @__PURE__ */ t("span", { className: "h-2.5 w-2.5 scale-0 rounded-full bg-primary transition-transform" })
278
309
  }
279
310
  ),
280
- t && /* @__PURE__ */ a("span", { className: "text-sm text-fg", children: t })
311
+ a && /* @__PURE__ */ t("span", { className: "text-sm text-fg", children: a })
281
312
  ]
282
313
  }
283
314
  );
284
315
  }
285
316
  );
286
317
  Ce.displayName = "Radio";
287
- const Ne = N(
288
- "w-full appearance-none bg-bg text-fg border transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 ring-offset-bg disabled:opacity-50 disabled:pointer-events-none rounded-md pr-9",
318
+ const Ne = V(
319
+ "w-full appearance-none bg-bg-muted text-fg border border-transparent transition-colors outline-none focus-visible:border-border-strong disabled:opacity-50 disabled:pointer-events-none rounded-lg pr-9",
289
320
  {
290
321
  variants: {
291
322
  size: {
292
- sm: "h-8 pl-3 text-sm",
293
- md: "h-10 pl-3 text-md",
294
- lg: "h-12 pl-4 text-lg"
323
+ sm: "h-8 pl-3 text-xs",
324
+ md: "h-10 pl-3 text-sm",
325
+ lg: "h-12 pl-4 text-md"
295
326
  },
296
327
  invalid: {
297
- true: "border-danger focus-visible:ring-danger",
298
- false: "border-border-strong"
328
+ true: "border-danger!",
329
+ false: ""
299
330
  }
300
331
  },
301
332
  defaultVariants: { size: "md", invalid: !1 }
302
333
  }
303
- ), Ve = p(
304
- ({ className: e, size: r, invalid: t, children: n, ...o }, s) => /* @__PURE__ */ f("div", { className: "relative inline-flex w-full items-center", children: [
305
- /* @__PURE__ */ a(
334
+ ), Ve = g(
335
+ ({ className: e, size: r, invalid: a, children: n, ...o }, s) => /* @__PURE__ */ f("div", { className: "relative inline-flex w-full items-center", children: [
336
+ /* @__PURE__ */ t(
306
337
  "select",
307
338
  {
308
339
  ref: s,
309
- className: i(Ne({ size: r, invalid: t }), e),
340
+ className: i(Ne({ size: r, invalid: a }), e),
310
341
  ...o,
311
342
  children: n
312
343
  }
313
344
  ),
314
- /* @__PURE__ */ a(
345
+ /* @__PURE__ */ t(
315
346
  "svg",
316
347
  {
317
348
  viewBox: "0 0 16 16",
@@ -322,36 +353,36 @@ const Ne = N(
322
353
  strokeLinecap: "round",
323
354
  strokeLinejoin: "round",
324
355
  "aria-hidden": !0,
325
- children: /* @__PURE__ */ a("path", { d: "M4 6l4 4 4-4" })
356
+ children: /* @__PURE__ */ t("path", { d: "M4 6l4 4 4-4" })
326
357
  }
327
358
  )
328
359
  ] })
329
360
  );
330
361
  Ve.displayName = "Select";
331
- const G = C(null);
332
- function L() {
362
+ const G = N(null);
363
+ function D() {
333
364
  const e = w(G);
334
365
  if (!e) throw new Error("Componentes de Dropdown precisam estar dentro de <Dropdown>");
335
366
  return e;
336
367
  }
337
368
  function lr({ children: e }) {
338
- const [r, t] = b(!1), n = T(null);
339
- return y(() => {
369
+ const [r, a] = b(!1), n = T(null);
370
+ return C(() => {
340
371
  if (!r) return;
341
372
  const o = (l) => {
342
- n.current && !n.current.contains(l.target) && t(!1);
373
+ n.current && !n.current.contains(l.target) && a(!1);
343
374
  }, s = (l) => {
344
- l.key === "Escape" && t(!1);
375
+ l.key === "Escape" && a(!1);
345
376
  };
346
377
  return document.addEventListener("mousedown", o), document.addEventListener("keydown", s), () => {
347
378
  document.removeEventListener("mousedown", o), document.removeEventListener("keydown", s);
348
379
  };
349
- }, [r]), /* @__PURE__ */ a(G.Provider, { value: { open: r, setOpen: t }, children: /* @__PURE__ */ a("div", { ref: n, className: "relative inline-block text-left", children: e }) });
380
+ }, [r]), /* @__PURE__ */ t(G.Provider, { value: { open: r, setOpen: a }, children: /* @__PURE__ */ t("div", { ref: n, className: "relative inline-block text-left", children: e }) });
350
381
  }
351
382
  function sr({ children: e }) {
352
- const { open: r, setOpen: t } = L();
383
+ const { open: r, setOpen: a } = D();
353
384
  return K(e, {
354
- onClick: () => t(!r),
385
+ onClick: () => a(!r),
355
386
  "aria-haspopup": "menu",
356
387
  "aria-expanded": r
357
388
  });
@@ -359,17 +390,17 @@ function sr({ children: e }) {
359
390
  function ir({
360
391
  children: e,
361
392
  align: r = "start",
362
- className: t
393
+ className: a
363
394
  }) {
364
- const { open: n } = L();
365
- return n ? /* @__PURE__ */ a(
395
+ const { open: n } = D();
396
+ return n ? /* @__PURE__ */ t(
366
397
  "div",
367
398
  {
368
399
  role: "menu",
369
400
  className: i(
370
401
  "absolute z-50 mt-1 min-w-44 rounded-md border border-border-default bg-bg p-1 shadow-md",
371
402
  r === "end" ? "right-0" : "left-0",
372
- t
403
+ a
373
404
  ),
374
405
  children: e
375
406
  }
@@ -378,12 +409,12 @@ function ir({
378
409
  function cr({
379
410
  children: e,
380
411
  onSelect: r,
381
- destructive: t,
412
+ destructive: a,
382
413
  className: n,
383
414
  ...o
384
415
  }) {
385
- const { setOpen: s } = L();
386
- return /* @__PURE__ */ a(
416
+ const { setOpen: s } = D();
417
+ return /* @__PURE__ */ t(
387
418
  "button",
388
419
  {
389
420
  type: "button",
@@ -394,7 +425,7 @@ function cr({
394
425
  className: i(
395
426
  "flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none transition-colors",
396
427
  "hover:bg-bg-muted focus-visible:bg-bg-muted disabled:opacity-50 disabled:pointer-events-none",
397
- t ? "text-danger" : "text-fg",
428
+ a ? "text-danger" : "text-fg",
398
429
  n
399
430
  ),
400
431
  ...o,
@@ -403,9 +434,9 @@ function cr({
403
434
  );
404
435
  }
405
436
  function ur() {
406
- return /* @__PURE__ */ a("div", { role: "separator", className: "my-1 h-px bg-border-default" });
437
+ return /* @__PURE__ */ t("div", { role: "separator", className: "my-1 h-px bg-border-default" });
407
438
  }
408
- const ke = N(
439
+ const ke = V(
409
440
  "inline-flex items-center gap-1 font-medium whitespace-nowrap rounded-full",
410
441
  {
411
442
  variants: {
@@ -426,18 +457,18 @@ const ke = N(
426
457
  },
427
458
  defaultVariants: { variant: "neutral", size: "sm" }
428
459
  }
429
- ), U = p(
430
- ({ className: e, variant: r, size: t, ...n }, o) => /* @__PURE__ */ a(
460
+ ), O = g(
461
+ ({ className: e, variant: r, size: a, ...n }, o) => /* @__PURE__ */ t(
431
462
  "span",
432
463
  {
433
464
  ref: o,
434
- className: i(ke({ variant: r, size: t }), e),
465
+ className: i(ke({ variant: r, size: a }), e),
435
466
  ...n
436
467
  }
437
468
  )
438
469
  );
439
- U.displayName = "Badge";
440
- const ze = N("relative inline-flex shrink-0 select-none", {
470
+ O.displayName = "Badge";
471
+ const ze = V("relative inline-flex shrink-0 select-none", {
441
472
  variants: {
442
473
  size: {
443
474
  xs: "h-6 w-6 text-xs",
@@ -462,24 +493,24 @@ const ze = N("relative inline-flex shrink-0 select-none", {
462
493
  };
463
494
  function Ee(e) {
464
495
  return e ? e.trim().split(/\s+/).slice(0, 2).map((r) => {
465
- var t;
466
- return ((t = r[0]) == null ? void 0 : t.toUpperCase()) ?? "";
496
+ var a;
497
+ return ((a = r[0]) == null ? void 0 : a.toUpperCase()) ?? "";
467
498
  }).join("") : "";
468
499
  }
469
- const De = p(
470
- ({ className: e, size: r = "md", src: t, alt: n, name: o, status: s, ...l }, c) => {
471
- const [u, d] = b(!1), m = t && !u;
500
+ const Pe = g(
501
+ ({ className: e, size: r = "md", src: a, alt: n, name: o, status: s, ...l }, c) => {
502
+ const [u, m] = b(!1), d = a && !u;
472
503
  return /* @__PURE__ */ f("span", { ref: c, className: i(ze({ size: r }), e), ...l, children: [
473
- /* @__PURE__ */ a("span", { className: "flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-bg-muted font-medium text-fg", children: m ? /* @__PURE__ */ a(
504
+ /* @__PURE__ */ t("span", { className: "flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-bg-muted font-medium text-fg", children: d ? /* @__PURE__ */ t(
474
505
  "img",
475
506
  {
476
- src: t,
507
+ src: a,
477
508
  alt: n ?? o ?? "",
478
509
  className: "h-full w-full object-cover",
479
- onError: () => d(!0)
510
+ onError: () => m(!0)
480
511
  }
481
- ) : /* @__PURE__ */ a("span", { "aria-hidden": !0, children: Ee(o) }) }),
482
- s && /* @__PURE__ */ a(
512
+ ) : /* @__PURE__ */ t("span", { "aria-hidden": !0, children: Ee(o) }) }),
513
+ s && /* @__PURE__ */ t(
483
514
  "span",
484
515
  {
485
516
  "aria-label": s,
@@ -493,8 +524,8 @@ const De = p(
493
524
  ] });
494
525
  }
495
526
  );
496
- De.displayName = "Avatar";
497
- const Pe = N("animate-spin text-primary", {
527
+ Pe.displayName = "Avatar";
528
+ const Le = V("animate-spin text-primary", {
498
529
  variants: {
499
530
  size: {
500
531
  sm: "h-4 w-4",
@@ -503,20 +534,20 @@ const Pe = N("animate-spin text-primary", {
503
534
  }
504
535
  },
505
536
  defaultVariants: { size: "md" }
506
- }), Le = p(
507
- ({ className: e, size: r, label: t = "Carregando", ...n }, o) => /* @__PURE__ */ f(
537
+ }), De = g(
538
+ ({ className: e, size: r, label: a = "Carregando", ...n }, o) => /* @__PURE__ */ f(
508
539
  "svg",
509
540
  {
510
541
  ref: o,
511
542
  viewBox: "0 0 24 24",
512
543
  fill: "none",
513
544
  role: "status",
514
- "aria-label": t,
515
- className: i(Pe({ size: r }), e),
545
+ "aria-label": a,
546
+ className: i(Le({ size: r }), e),
516
547
  ...n,
517
548
  children: [
518
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", className: "opacity-20" }),
519
- /* @__PURE__ */ a(
549
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", className: "opacity-20" }),
550
+ /* @__PURE__ */ t(
520
551
  "path",
521
552
  {
522
553
  d: "M12 2a10 10 0 0 1 10 10",
@@ -529,24 +560,24 @@ const Pe = N("animate-spin text-primary", {
529
560
  }
530
561
  )
531
562
  );
532
- Le.displayName = "Spinner";
533
- const Ie = p(
534
- ({ className: e, value: r = 0, max: t = 100, indeterminate: n, ...o }, s) => {
535
- const l = Math.min(100, Math.max(0, r / t * 100));
536
- return /* @__PURE__ */ a(
563
+ De.displayName = "Spinner";
564
+ const Ae = g(
565
+ ({ className: e, value: r = 0, max: a = 100, indeterminate: n, ...o }, s) => {
566
+ const l = Math.min(100, Math.max(0, r / a * 100));
567
+ return /* @__PURE__ */ t(
537
568
  "div",
538
569
  {
539
570
  ref: s,
540
571
  role: "progressbar",
541
572
  "aria-valuemin": 0,
542
- "aria-valuemax": t,
573
+ "aria-valuemax": a,
543
574
  "aria-valuenow": n ? void 0 : r,
544
575
  className: i(
545
576
  "relative h-2 w-full overflow-hidden rounded-full bg-bg-muted",
546
577
  e
547
578
  ),
548
579
  ...o,
549
- children: n ? /* @__PURE__ */ a("div", { className: "absolute inset-y-0 w-1/3 rounded-full bg-primary animate-[flui-indeterminate_1.2s_ease-in-out_infinite]" }) : /* @__PURE__ */ a(
580
+ children: n ? /* @__PURE__ */ t("div", { className: "absolute inset-y-0 w-1/3 rounded-full bg-primary animate-[flui-indeterminate_1.2s_ease-in-out_infinite]" }) : /* @__PURE__ */ t(
550
581
  "div",
551
582
  {
552
583
  className: "h-full rounded-full bg-primary transition-[width] duration-300",
@@ -557,9 +588,9 @@ const Ie = p(
557
588
  );
558
589
  }
559
590
  );
560
- Ie.displayName = "Progress";
561
- const _e = p(
562
- ({ className: e, orientation: r = "horizontal", label: t, ...n }, o) => r === "vertical" ? /* @__PURE__ */ a(
591
+ Ae.displayName = "Progress";
592
+ const Be = g(
593
+ ({ className: e, orientation: r = "horizontal", label: a, ...n }, o) => r === "vertical" ? /* @__PURE__ */ t(
563
594
  "div",
564
595
  {
565
596
  ref: o,
@@ -568,7 +599,7 @@ const _e = p(
568
599
  className: i("mx-2 h-full w-px self-stretch bg-border-default", e),
569
600
  ...n
570
601
  }
571
- ) : t ? /* @__PURE__ */ f(
602
+ ) : a ? /* @__PURE__ */ f(
572
603
  "div",
573
604
  {
574
605
  ref: o,
@@ -576,12 +607,12 @@ const _e = p(
576
607
  className: i("flex items-center gap-3 text-sm text-fg-muted", e),
577
608
  ...n,
578
609
  children: [
579
- /* @__PURE__ */ a("span", { className: "h-px flex-1 bg-border-default" }),
580
- t,
581
- /* @__PURE__ */ a("span", { className: "h-px flex-1 bg-border-default" })
610
+ /* @__PURE__ */ t("span", { className: "h-px flex-1 bg-border-default" }),
611
+ a,
612
+ /* @__PURE__ */ t("span", { className: "h-px flex-1 bg-border-default" })
582
613
  ]
583
614
  }
584
- ) : /* @__PURE__ */ a(
615
+ ) : /* @__PURE__ */ t(
585
616
  "div",
586
617
  {
587
618
  ref: o,
@@ -592,32 +623,32 @@ const _e = p(
592
623
  }
593
624
  )
594
625
  );
595
- _e.displayName = "Divider";
596
- const Ae = p(
597
- ({ className: e, children: r, ...t }, n) => {
626
+ Be.displayName = "Divider";
627
+ const Ie = g(
628
+ ({ className: e, children: r, ...a }, n) => {
598
629
  const o = ae.toArray(r);
599
- return /* @__PURE__ */ a("nav", { ref: n, "aria-label": "breadcrumb", className: e, ...t, children: /* @__PURE__ */ a("ol", { className: "flex flex-wrap items-center gap-1.5 text-sm", children: o.map((s, l) => /* @__PURE__ */ f(ne, { children: [
630
+ return /* @__PURE__ */ t("nav", { ref: n, "aria-label": "breadcrumb", className: e, ...a, children: /* @__PURE__ */ t("ol", { className: "flex flex-wrap items-center gap-1.5 text-sm", children: o.map((s, l) => /* @__PURE__ */ f(ne, { children: [
600
631
  s,
601
- l < o.length - 1 && /* @__PURE__ */ a(Be, {})
632
+ l < o.length - 1 && /* @__PURE__ */ t(je, {})
602
633
  ] }, l)) }) });
603
634
  }
604
635
  );
605
- Ae.displayName = "Breadcrumb";
636
+ Ie.displayName = "Breadcrumb";
606
637
  function fr({
607
638
  href: e,
608
639
  current: r,
609
- className: t,
640
+ className: a,
610
641
  children: n,
611
642
  ...o
612
643
  }) {
613
- return /* @__PURE__ */ a("li", { className: i("inline-flex items-center", t), ...o, children: r || !e ? /* @__PURE__ */ a(
644
+ return /* @__PURE__ */ t("li", { className: i("inline-flex items-center", a), ...o, children: r || !e ? /* @__PURE__ */ t(
614
645
  "span",
615
646
  {
616
647
  "aria-current": r ? "page" : void 0,
617
648
  className: i(r ? "font-medium text-fg" : "text-fg-muted"),
618
649
  children: n
619
650
  }
620
- ) : /* @__PURE__ */ a(
651
+ ) : /* @__PURE__ */ t(
621
652
  "a",
622
653
  {
623
654
  href: e,
@@ -626,27 +657,27 @@ function fr({
626
657
  }
627
658
  ) });
628
659
  }
629
- function Be() {
630
- return /* @__PURE__ */ a("li", { "aria-hidden": !0, className: "text-fg-muted", children: "/" });
660
+ function je() {
661
+ return /* @__PURE__ */ t("li", { "aria-hidden": !0, className: "text-fg-muted", children: "/" });
631
662
  }
632
- function je(e, r = 1e3) {
633
- const [t, n] = b(0);
634
- return y(() => {
663
+ function _e(e, r = 1e3) {
664
+ const [a, n] = b(0);
665
+ return C(() => {
635
666
  n(0);
636
667
  const o = performance.now(), s = (l) => {
637
668
  const c = Math.min((l - o) / r, 1), u = 1 - (1 - c) ** 4;
638
669
  n(e * u), c < 1 ? requestAnimationFrame(s) : n(e);
639
670
  };
640
671
  requestAnimationFrame(s);
641
- }, [e, r]), t;
672
+ }, [e, r]), a;
642
673
  }
643
- const Se = p(
644
- ({ className: e, label: r, value: t, countUp: n, formatCount: o, delta: s, helpText: l, icon: c, ...u }, d) => {
645
- const m = je(n ?? 0), g = typeof s == "number", v = g && s >= 0, x = n !== void 0 ? o ? o(m) : Math.round(m).toLocaleString("pt-BR") : t;
674
+ const Se = g(
675
+ ({ className: e, label: r, value: a, countUp: n, formatCount: o, delta: s, helpText: l, icon: c, ...u }, m) => {
676
+ const d = _e(n ?? 0), p = typeof s == "number", h = p && s >= 0, v = n !== void 0 ? o ? o(d) : Math.round(d).toLocaleString("pt-BR") : a;
646
677
  return /* @__PURE__ */ f(
647
678
  "div",
648
679
  {
649
- ref: d,
680
+ ref: m,
650
681
  className: i(
651
682
  "flex flex-col gap-2 rounded-xl bg-bg-muted dark:bg-bg-subtle p-8 shadow-sm",
652
683
  e
@@ -654,24 +685,24 @@ const Se = p(
654
685
  ...u,
655
686
  children: [
656
687
  /* @__PURE__ */ f("div", { className: "flex items-center justify-between", children: [
657
- /* @__PURE__ */ a("span", { className: "text-sm text-fg-muted", children: r }),
658
- c && /* @__PURE__ */ a("span", { className: "text-fg-muted", children: c })
688
+ /* @__PURE__ */ t("span", { className: "text-sm text-fg-muted", children: r }),
689
+ c && /* @__PURE__ */ t("span", { className: "text-fg-muted", children: c })
659
690
  ] }),
660
- /* @__PURE__ */ a("span", { className: "text-3xl font-bold text-fg whitespace-nowrap tabular-nums", children: x }),
661
- g && /* @__PURE__ */ f(U, { variant: v ? "success" : "danger", size: "sm", className: "self-start", children: [
662
- v ? "▲" : "▼",
691
+ /* @__PURE__ */ t("span", { className: "text-3xl font-bold text-fg whitespace-nowrap tabular-nums", children: v }),
692
+ p && /* @__PURE__ */ f(O, { variant: h ? "success" : "danger", size: "sm", className: "self-start", children: [
693
+ h ? "▲" : "▼",
663
694
  " ",
664
695
  Math.abs(s),
665
696
  "%"
666
697
  ] }),
667
- l && /* @__PURE__ */ a("span", { className: "text-xs text-fg-muted", children: l })
698
+ l && /* @__PURE__ */ t("span", { className: "text-xs text-fg-muted", children: l })
668
699
  ]
669
700
  }
670
701
  );
671
702
  }
672
703
  );
673
704
  Se.displayName = "StatCard";
674
- const Re = N("flex gap-3 rounded-lg p-4 text-sm", {
705
+ const Re = V("flex gap-3 rounded-lg p-4 text-sm", {
675
706
  variants: {
676
707
  variant: {
677
708
  info: "bg-primary/10 text-fg",
@@ -691,8 +722,8 @@ const Re = N("flex gap-3 rounded-lg p-4 text-sm", {
691
722
  success: "✓",
692
723
  warning: "!",
693
724
  danger: "✕"
694
- }, He = p(
695
- ({ className: e, variant: r = "info", title: t, onClose: n, children: o, ...s }, l) => {
725
+ }, He = g(
726
+ ({ className: e, variant: r = "info", title: a, onClose: n, children: o, ...s }, l) => {
696
727
  const c = r ?? "info";
697
728
  return /* @__PURE__ */ f(
698
729
  "div",
@@ -702,7 +733,7 @@ const Re = N("flex gap-3 rounded-lg p-4 text-sm", {
702
733
  className: i(Re({ variant: r }), e),
703
734
  ...s,
704
735
  children: [
705
- /* @__PURE__ */ a(
736
+ /* @__PURE__ */ t(
706
737
  "span",
707
738
  {
708
739
  "aria-hidden": !0,
@@ -714,10 +745,10 @@ const Re = N("flex gap-3 rounded-lg p-4 text-sm", {
714
745
  }
715
746
  ),
716
747
  /* @__PURE__ */ f("div", { className: "min-w-0 flex-1", children: [
717
- t && /* @__PURE__ */ a("div", { className: "font-semibold text-fg", children: t }),
718
- o && /* @__PURE__ */ a("div", { className: "text-fg-muted", children: o })
748
+ a && /* @__PURE__ */ t("div", { className: "font-semibold text-fg", children: a }),
749
+ o && /* @__PURE__ */ t("div", { className: "text-fg-muted", children: o })
719
750
  ] }),
720
- n && /* @__PURE__ */ a(
751
+ n && /* @__PURE__ */ t(
721
752
  "button",
722
753
  {
723
754
  type: "button",
@@ -736,26 +767,26 @@ He.displayName = "Alert";
736
767
  function Ke({
737
768
  value: e,
738
769
  defaultValue: r,
739
- onChange: t
770
+ onChange: a
740
771
  }) {
741
772
  const n = e !== void 0, [o, s] = b(r), l = n ? e : o, c = M(
742
773
  (u) => {
743
- n || s(u), t == null || t(u);
774
+ n || s(u), a == null || a(u);
744
775
  },
745
- [n, t]
776
+ [n, a]
746
777
  );
747
778
  return [l, c];
748
779
  }
749
- const O = C(null);
750
- function I() {
751
- const e = w(O);
780
+ const U = N(null);
781
+ function A() {
782
+ const e = w(U);
752
783
  if (!e) throw new Error("Componentes de Tabs precisam estar dentro de <Tabs>");
753
784
  return e;
754
785
  }
755
786
  function dr({
756
787
  value: e,
757
788
  defaultValue: r,
758
- onValueChange: t,
789
+ onValueChange: a,
759
790
  className: n,
760
791
  children: o,
761
792
  ...s
@@ -763,13 +794,13 @@ function dr({
763
794
  const [l, c] = Ke({
764
795
  value: e,
765
796
  defaultValue: r ?? "",
766
- onChange: t
797
+ onChange: a
767
798
  });
768
- return /* @__PURE__ */ a(O.Provider, { value: { value: l, setValue: c }, children: /* @__PURE__ */ a("div", { className: n, ...s, children: o }) });
799
+ return /* @__PURE__ */ t(U.Provider, { value: { value: l, setValue: c }, children: /* @__PURE__ */ t("div", { className: n, ...s, children: o }) });
769
800
  }
770
- function mr({ className: e, children: r, ...t }) {
771
- const { value: n } = I(), o = T(null), [s, l] = b({ left: 0, width: 0, ready: !1 });
772
- return y(() => {
801
+ function mr({ className: e, children: r, ...a }) {
802
+ const { value: n } = A(), o = T(null), [s, l] = b({ left: 0, width: 0, ready: !1 });
803
+ return C(() => {
773
804
  const c = o.current;
774
805
  if (!c) return;
775
806
  const u = c.querySelector('[aria-selected="true"]');
@@ -780,10 +811,10 @@ function mr({ className: e, children: r, ...t }) {
780
811
  ref: o,
781
812
  role: "tablist",
782
813
  className: i("relative flex items-center gap-1 border-b border-border-default", e),
783
- ...t,
814
+ ...a,
784
815
  children: [
785
816
  r,
786
- s.ready && /* @__PURE__ */ a(
817
+ s.ready && /* @__PURE__ */ t(
787
818
  "span",
788
819
  {
789
820
  "aria-hidden": !0,
@@ -795,9 +826,9 @@ function mr({ className: e, children: r, ...t }) {
795
826
  }
796
827
  );
797
828
  }
798
- function pr({ value: e, className: r, ...t }) {
799
- const n = I(), o = n.value === e;
800
- return /* @__PURE__ */ a(
829
+ function pr({ value: e, className: r, ...a }) {
830
+ const n = A(), o = n.value === e;
831
+ return /* @__PURE__ */ t(
801
832
  "button",
802
833
  {
803
834
  type: "button",
@@ -810,21 +841,21 @@ function pr({ value: e, className: r, ...t }) {
810
841
  o ? "text-fg" : "text-fg-muted hover:text-fg",
811
842
  r
812
843
  ),
813
- ...t
844
+ ...a
814
845
  }
815
846
  );
816
847
  }
817
- function gr({ value: e, className: r, ...t }) {
818
- return I().value !== e ? null : /* @__PURE__ */ a(
848
+ function gr({ value: e, className: r, ...a }) {
849
+ return A().value !== e ? null : /* @__PURE__ */ t(
819
850
  "div",
820
851
  {
821
852
  role: "tabpanel",
822
853
  className: i("pt-4 animate-[flui-slide-up_200ms_ease-out]", r),
823
- ...t
854
+ ...a
824
855
  }
825
856
  );
826
857
  }
827
- const Y = C(null), _ = C("");
858
+ const Y = N(null), B = N("");
828
859
  function $() {
829
860
  const e = w(Y);
830
861
  if (!e) throw new Error("Componentes de Accordion precisam estar dentro de <Accordion>");
@@ -833,32 +864,32 @@ function $() {
833
864
  function br({
834
865
  type: e = "single",
835
866
  defaultValue: r,
836
- className: t,
867
+ className: a,
837
868
  children: n,
838
869
  ...o
839
870
  }) {
840
- const s = r ? Array.isArray(r) ? r : [r] : [], [l, c] = b(s), u = (d) => c((m) => {
841
- const g = m.includes(d);
842
- return e === "single" ? g ? [] : [d] : g ? m.filter((v) => v !== d) : [...m, d];
871
+ const s = r ? Array.isArray(r) ? r : [r] : [], [l, c] = b(s), u = (m) => c((d) => {
872
+ const p = d.includes(m);
873
+ return e === "single" ? p ? [] : [m] : p ? d.filter((h) => h !== m) : [...d, m];
843
874
  });
844
- return /* @__PURE__ */ a(Y.Provider, { value: { open: l, toggle: u }, children: /* @__PURE__ */ a(
875
+ return /* @__PURE__ */ t(Y.Provider, { value: { open: l, toggle: u }, children: /* @__PURE__ */ t(
845
876
  "div",
846
877
  {
847
- className: i("border-y border-border-default divide-y divide-border-default", t),
878
+ className: i("border-y border-border-default divide-y divide-border-default", a),
848
879
  ...o,
849
880
  children: n
850
881
  }
851
882
  ) });
852
883
  }
853
- function hr({ value: e, children: r, ...t }) {
854
- return /* @__PURE__ */ a(_.Provider, { value: e, children: /* @__PURE__ */ a("div", { ...t, children: r }) });
884
+ function hr({ value: e, children: r, ...a }) {
885
+ return /* @__PURE__ */ t(B.Provider, { value: e, children: /* @__PURE__ */ t("div", { ...a, children: r }) });
855
886
  }
856
887
  function vr({
857
888
  className: e,
858
889
  children: r,
859
- ...t
890
+ ...a
860
891
  }) {
861
- const n = $(), o = w(_), s = n.open.includes(o);
892
+ const n = $(), o = w(B), s = n.open.includes(o);
862
893
  return /* @__PURE__ */ f(
863
894
  "button",
864
895
  {
@@ -870,10 +901,10 @@ function vr({
870
901
  "focus-visible:ring-2 focus-visible:ring-primary ring-offset-bg",
871
902
  e
872
903
  ),
873
- ...t,
904
+ ...a,
874
905
  children: [
875
906
  r,
876
- /* @__PURE__ */ a("span", { className: i("text-fg-muted transition-transform", s && "rotate-180"), children: "▾" })
907
+ /* @__PURE__ */ t("span", { className: i("text-fg-muted transition-transform", s && "rotate-180"), children: "▾" })
877
908
  ]
878
909
  }
879
910
  );
@@ -882,8 +913,8 @@ function xr({
882
913
  className: e,
883
914
  ...r
884
915
  }) {
885
- const t = $(), n = w(_);
886
- return t.open.includes(n) ? /* @__PURE__ */ a("div", { className: i("pb-4 text-sm text-fg-muted", e), ...r }) : null;
916
+ const a = $(), n = w(B);
917
+ return a.open.includes(n) ? /* @__PURE__ */ t("div", { className: i("pb-4 text-sm text-fg-muted", e), ...r }) : null;
887
918
  }
888
919
  const qe = {
889
920
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
@@ -891,7 +922,7 @@ const qe = {
891
922
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
892
923
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
893
924
  };
894
- function wr({ content: e, side: r = "top", children: t, className: n }) {
925
+ function wr({ content: e, side: r = "top", children: a, className: n }) {
895
926
  const [o, s] = b(!1), l = H();
896
927
  return /* @__PURE__ */ f(
897
928
  "span",
@@ -902,8 +933,8 @@ function wr({ content: e, side: r = "top", children: t, className: n }) {
902
933
  onFocus: () => s(!0),
903
934
  onBlur: () => s(!1),
904
935
  children: [
905
- /* @__PURE__ */ a("span", { "aria-describedby": o ? l : void 0, children: t }),
906
- o && /* @__PURE__ */ a(
936
+ /* @__PURE__ */ t("span", { "aria-describedby": o ? l : void 0, children: a }),
937
+ o && /* @__PURE__ */ t(
907
938
  "span",
908
939
  {
909
940
  role: "tooltip",
@@ -921,28 +952,28 @@ function wr({ content: e, side: r = "top", children: t, className: n }) {
921
952
  }
922
953
  );
923
954
  }
924
- const J = C(null);
955
+ const J = N(null);
925
956
  function Q() {
926
957
  const e = w(J);
927
958
  if (!e) throw new Error("Componentes de Popover precisam estar dentro de <Popover>");
928
959
  return e;
929
960
  }
930
961
  function yr({ children: e }) {
931
- const [r, t] = b(!1), n = T(null);
932
- return y(() => {
962
+ const [r, a] = b(!1), n = T(null);
963
+ return C(() => {
933
964
  if (!r) return;
934
965
  const o = (l) => {
935
- n.current && !n.current.contains(l.target) && t(!1);
936
- }, s = (l) => l.key === "Escape" && t(!1);
966
+ n.current && !n.current.contains(l.target) && a(!1);
967
+ }, s = (l) => l.key === "Escape" && a(!1);
937
968
  return document.addEventListener("mousedown", o), document.addEventListener("keydown", s), () => {
938
969
  document.removeEventListener("mousedown", o), document.removeEventListener("keydown", s);
939
970
  };
940
- }, [r]), /* @__PURE__ */ a(J.Provider, { value: { open: r, setOpen: t }, children: /* @__PURE__ */ a("div", { ref: n, className: "relative inline-block", children: e }) });
971
+ }, [r]), /* @__PURE__ */ t(J.Provider, { value: { open: r, setOpen: a }, children: /* @__PURE__ */ t("div", { ref: n, className: "relative inline-block", children: e }) });
941
972
  }
942
973
  function Cr({ children: e }) {
943
- const { open: r, setOpen: t } = Q();
974
+ const { open: r, setOpen: a } = Q();
944
975
  return K(e, {
945
- onClick: () => t(!r),
976
+ onClick: () => a(!r),
946
977
  "aria-haspopup": "dialog",
947
978
  "aria-expanded": r
948
979
  });
@@ -950,10 +981,10 @@ function Cr({ children: e }) {
950
981
  function Nr({
951
982
  children: e,
952
983
  align: r = "start",
953
- className: t
984
+ className: a
954
985
  }) {
955
986
  const { open: n } = Q();
956
- return n ? /* @__PURE__ */ a(
987
+ return n ? /* @__PURE__ */ t(
957
988
  "div",
958
989
  {
959
990
  role: "dialog",
@@ -961,43 +992,43 @@ function Nr({
961
992
  "absolute z-50 mt-2 min-w-56 rounded-lg border border-border-default bg-bg p-4 shadow-lg",
962
993
  "animate-[flui-slide-up_140ms_ease-out]",
963
994
  r === "end" ? "right-0" : "left-0",
964
- t
995
+ a
965
996
  ),
966
997
  children: e
967
998
  }
968
999
  ) : null;
969
1000
  }
970
- function A({ children: e }) {
971
- const [r, t] = b(!1);
972
- return y(() => t(!0), []), r ? ie(e, document.body) : null;
1001
+ function I({ children: e }) {
1002
+ const [r, a] = b(!1);
1003
+ return C(() => a(!0), []), r ? ie(e, document.body) : null;
973
1004
  }
974
1005
  function X(e, r) {
975
- y(() => {
1006
+ C(() => {
976
1007
  if (!e) return;
977
- const t = (o) => o.key === "Escape" && r(), n = document.body.style.overflow;
978
- return document.body.style.overflow = "hidden", document.addEventListener("keydown", t), () => {
979
- document.body.style.overflow = n, document.removeEventListener("keydown", t);
1008
+ const a = (o) => o.key === "Escape" && r(), n = document.body.style.overflow;
1009
+ return document.body.style.overflow = "hidden", document.addEventListener("keydown", a), () => {
1010
+ document.body.style.overflow = n, document.removeEventListener("keydown", a);
980
1011
  };
981
1012
  }, [e, r]);
982
1013
  }
983
- const Z = C(null);
984
- function Ge({ open: e, onOpenChange: r, children: t }) {
1014
+ const Z = N(null);
1015
+ function Ge({ open: e, onOpenChange: r, children: a }) {
985
1016
  const n = () => r == null ? void 0 : r(!1);
986
- return X(e, n), e ? /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(Z.Provider, { value: { close: n }, children: /* @__PURE__ */ f("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
987
- /* @__PURE__ */ a(
1017
+ return X(e, n), e ? /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(Z.Provider, { value: { close: n }, children: /* @__PURE__ */ f("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
1018
+ /* @__PURE__ */ t(
988
1019
  "div",
989
1020
  {
990
1021
  className: "absolute inset-0 bg-black/60 backdrop-blur-sm animate-[flui-fade-in_120ms_ease-out]",
991
1022
  onClick: n
992
1023
  }
993
1024
  ),
994
- t
1025
+ a
995
1026
  ] }) }) }) : null;
996
1027
  }
997
- function Ue({
1028
+ function Oe({
998
1029
  className: e,
999
1030
  children: r,
1000
- ...t
1031
+ ...a
1001
1032
  }) {
1002
1033
  const n = w(Z);
1003
1034
  return /* @__PURE__ */ f(
@@ -1010,10 +1041,10 @@ function Ue({
1010
1041
  "animate-[flui-slide-up_160ms_ease-out]",
1011
1042
  e
1012
1043
  ),
1013
- ...t,
1044
+ ...a,
1014
1045
  children: [
1015
1046
  r,
1016
- /* @__PURE__ */ a(
1047
+ /* @__PURE__ */ t(
1017
1048
  "button",
1018
1049
  {
1019
1050
  type: "button",
@@ -1028,33 +1059,33 @@ function Ue({
1028
1059
  );
1029
1060
  }
1030
1061
  function Vr({ className: e, ...r }) {
1031
- return /* @__PURE__ */ a("div", { className: i("flex flex-col gap-1 p-6 pb-2", e), ...r });
1062
+ return /* @__PURE__ */ t("div", { className: i("flex flex-col gap-1 p-6 pb-2", e), ...r });
1032
1063
  }
1033
1064
  function kr({ className: e, ...r }) {
1034
- return /* @__PURE__ */ a("h2", { className: i("text-lg font-semibold text-fg", e), ...r });
1065
+ return /* @__PURE__ */ t("h2", { className: i("text-lg font-semibold text-fg", e), ...r });
1035
1066
  }
1036
1067
  function zr({
1037
1068
  className: e,
1038
1069
  ...r
1039
1070
  }) {
1040
- return /* @__PURE__ */ a("p", { className: i("text-sm text-fg-muted", e), ...r });
1071
+ return /* @__PURE__ */ t("p", { className: i("text-sm text-fg-muted", e), ...r });
1041
1072
  }
1042
1073
  function Mr({ className: e, ...r }) {
1043
- return /* @__PURE__ */ a("div", { className: i("px-6 py-2", e), ...r });
1074
+ return /* @__PURE__ */ t("div", { className: i("px-6 py-2", e), ...r });
1044
1075
  }
1045
1076
  function Tr({ className: e, ...r }) {
1046
- return /* @__PURE__ */ a("div", { className: i("flex justify-end gap-2 p-6 pt-4", e), ...r });
1077
+ return /* @__PURE__ */ t("div", { className: i("flex justify-end gap-2 p-6 pt-4", e), ...r });
1047
1078
  }
1048
- const ee = C(null), Oe = {
1079
+ const ee = N(null), Ue = {
1049
1080
  left: "left-0 top-0 h-full w-[420px] max-w-[96vw] border-r",
1050
1081
  right: "right-0 top-0 h-full w-[420px] max-w-[96vw] border-l",
1051
1082
  top: "top-0 left-0 w-full max-h-[90vh] border-b",
1052
1083
  bottom: "bottom-0 left-0 w-full max-h-[90vh] border-t"
1053
1084
  };
1054
- function Er({ open: e, onOpenChange: r, side: t = "right", children: n }) {
1085
+ function Er({ open: e, onOpenChange: r, side: a = "right", children: n }) {
1055
1086
  const o = () => r == null ? void 0 : r(!1);
1056
- return X(e, o), e ? /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(ee.Provider, { value: { close: o, side: t }, children: /* @__PURE__ */ f("div", { className: "fixed inset-0 z-50", children: [
1057
- /* @__PURE__ */ a(
1087
+ return X(e, o), e ? /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(ee.Provider, { value: { close: o, side: a }, children: /* @__PURE__ */ f("div", { className: "fixed inset-0 z-50", children: [
1088
+ /* @__PURE__ */ t(
1058
1089
  "div",
1059
1090
  {
1060
1091
  className: "absolute inset-0 bg-black/60 backdrop-blur-sm animate-[flui-fade-in_120ms_ease-out]",
@@ -1064,10 +1095,10 @@ function Er({ open: e, onOpenChange: r, side: t = "right", children: n }) {
1064
1095
  n
1065
1096
  ] }) }) }) : null;
1066
1097
  }
1067
- function Dr({
1098
+ function Pr({
1068
1099
  className: e,
1069
1100
  children: r,
1070
- ...t
1101
+ ...a
1071
1102
  }) {
1072
1103
  const n = w(ee), o = (n == null ? void 0 : n.side) ?? "right";
1073
1104
  return /* @__PURE__ */ f(
@@ -1078,13 +1109,13 @@ function Dr({
1078
1109
  className: i(
1079
1110
  "absolute z-10 flex flex-col border-border-default bg-bg shadow-lg",
1080
1111
  "animate-[flui-fade-in_160ms_ease-out]",
1081
- Oe[o],
1112
+ Ue[o],
1082
1113
  e
1083
1114
  ),
1084
- ...t,
1115
+ ...a,
1085
1116
  children: [
1086
1117
  r,
1087
- /* @__PURE__ */ a(
1118
+ /* @__PURE__ */ t(
1088
1119
  "button",
1089
1120
  {
1090
1121
  type: "button",
@@ -1098,8 +1129,8 @@ function Dr({
1098
1129
  }
1099
1130
  );
1100
1131
  }
1101
- function Pr({ className: e, ...r }) {
1102
- return /* @__PURE__ */ a(
1132
+ function Lr({ className: e, ...r }) {
1133
+ return /* @__PURE__ */ t(
1103
1134
  "div",
1104
1135
  {
1105
1136
  className: i("flex flex-col gap-1 border-b border-border-default p-6", e),
@@ -1107,14 +1138,14 @@ function Pr({ className: e, ...r }) {
1107
1138
  }
1108
1139
  );
1109
1140
  }
1110
- function Lr({ className: e, ...r }) {
1111
- return /* @__PURE__ */ a("h2", { className: i("text-lg font-semibold text-fg", e), ...r });
1141
+ function Dr({ className: e, ...r }) {
1142
+ return /* @__PURE__ */ t("h2", { className: i("text-lg font-semibold text-fg", e), ...r });
1112
1143
  }
1113
- function Ir({ className: e, ...r }) {
1114
- return /* @__PURE__ */ a("div", { className: i("flex-1 overflow-y-auto p-6", e), ...r });
1144
+ function Ar({ className: e, ...r }) {
1145
+ return /* @__PURE__ */ t("div", { className: i("flex-1 overflow-y-auto p-6", e), ...r });
1115
1146
  }
1116
- function _r({ className: e, ...r }) {
1117
- return /* @__PURE__ */ a(
1147
+ function Br({ className: e, ...r }) {
1148
+ return /* @__PURE__ */ t(
1118
1149
  "div",
1119
1150
  {
1120
1151
  className: i("flex justify-end gap-2 border-t border-border-default p-6", e),
@@ -1122,29 +1153,29 @@ function _r({ className: e, ...r }) {
1122
1153
  }
1123
1154
  );
1124
1155
  }
1125
- const re = C(null), D = {
1156
+ const re = N(null), P = {
1126
1157
  info: { wrapper: "bg-brand-100 border-l-primary", title: "text-fg", description: "text-fg-muted" },
1127
1158
  success: { wrapper: "bg-success-subtle border-l-success", title: "text-success-fg", description: "text-success-fg/70" },
1128
1159
  warning: { wrapper: "bg-warning/15 border-l-warning", title: "text-fg", description: "text-fg-muted" },
1129
1160
  danger: { wrapper: "bg-danger/10 border-l-danger", title: "text-danger", description: "text-danger/70" }
1130
1161
  };
1131
- function Ar({ children: e }) {
1132
- const [r, t] = b([]), n = T(0), o = M((l) => {
1133
- t((c) => c.filter((u) => u.id !== l));
1162
+ function Ir({ children: e }) {
1163
+ const [r, a] = b([]), n = T(0), o = M((l) => {
1164
+ a((c) => c.filter((u) => u.id !== l));
1134
1165
  }, []), s = M((l) => {
1135
1166
  const c = ++n.current;
1136
- return t((u) => [...u, { id: c, variant: "info", duration: 4e3, ...l }]), c;
1167
+ return a((u) => [...u, { id: c, variant: "info", duration: 4e3, ...l }]), c;
1137
1168
  }, []);
1138
1169
  return /* @__PURE__ */ f(re.Provider, { value: { toast: s, dismiss: o }, children: [
1139
1170
  e,
1140
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a("div", { className: "pointer-events-none fixed bottom-4 right-4 z-[60] flex w-80 max-w-[90vw] flex-col gap-2", children: r.map((l) => /* @__PURE__ */ a(Ye, { item: l, onDismiss: () => o(l.id) }, l.id)) }) })
1171
+ /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t("div", { className: "pointer-events-none fixed bottom-4 right-4 z-[60] flex w-80 max-w-[90vw] flex-col gap-2", children: r.map((l) => /* @__PURE__ */ t(Ye, { item: l, onDismiss: () => o(l.id) }, l.id)) }) })
1141
1172
  ] });
1142
1173
  }
1143
1174
  function Ye({ item: e, onDismiss: r }) {
1144
- return y(() => {
1175
+ return C(() => {
1145
1176
  if (!e.duration) return;
1146
- const t = setTimeout(r, e.duration);
1147
- return () => clearTimeout(t);
1177
+ const a = setTimeout(r, e.duration);
1178
+ return () => clearTimeout(a);
1148
1179
  }, [e.duration, r]), /* @__PURE__ */ f(
1149
1180
  "div",
1150
1181
  {
@@ -1152,20 +1183,20 @@ function Ye({ item: e, onDismiss: r }) {
1152
1183
  className: i(
1153
1184
  "pointer-events-auto flex items-start gap-3 rounded-lg border-l-4 p-4 shadow-md",
1154
1185
  "animate-[flui-slide-up_160ms_ease-out]",
1155
- D[e.variant ?? "info"].wrapper
1186
+ P[e.variant ?? "info"].wrapper
1156
1187
  ),
1157
1188
  children: [
1158
1189
  /* @__PURE__ */ f("div", { className: "min-w-0 flex-1", children: [
1159
- /* @__PURE__ */ a("div", { className: i("text-sm font-semibold", D[e.variant ?? "info"].title), children: e.title }),
1160
- e.description && /* @__PURE__ */ a("div", { className: i("mt-0.5 text-sm", D[e.variant ?? "info"].description), children: e.description })
1190
+ /* @__PURE__ */ t("div", { className: i("text-sm font-semibold", P[e.variant ?? "info"].title), children: e.title }),
1191
+ e.description && /* @__PURE__ */ t("div", { className: i("mt-0.5 text-sm", P[e.variant ?? "info"].description), children: e.description })
1161
1192
  ] }),
1162
- /* @__PURE__ */ a(
1193
+ /* @__PURE__ */ t(
1163
1194
  "button",
1164
1195
  {
1165
1196
  type: "button",
1166
1197
  onClick: r,
1167
1198
  "aria-label": "Fechar",
1168
- className: i("shrink-0 rounded-sm px-1 transition-colors opacity-60 hover:opacity-100", D[e.variant ?? "info"].title),
1199
+ className: i("shrink-0 rounded-sm px-1 transition-colors opacity-60 hover:opacity-100", P[e.variant ?? "info"].title),
1169
1200
  children: "✕"
1170
1201
  }
1171
1202
  )
@@ -1173,12 +1204,12 @@ function Ye({ item: e, onDismiss: r }) {
1173
1204
  }
1174
1205
  );
1175
1206
  }
1176
- function Br() {
1207
+ function jr() {
1177
1208
  const e = w(re);
1178
1209
  if (!e) throw new Error("useToast precisa estar dentro de <ToastProvider>");
1179
1210
  return e;
1180
1211
  }
1181
- const $e = N(
1212
+ const $e = V(
1182
1213
  "flex w-full bg-bg-muted text-fg placeholder:text-fg-muted border border-transparent transition-colors outline-none resize-y rounded-lg min-h-28 px-3 py-3 text-sm focus-visible:border-border-strong disabled:opacity-50 disabled:pointer-events-none",
1183
1214
  {
1184
1215
  variants: {
@@ -1189,13 +1220,13 @@ const $e = N(
1189
1220
  },
1190
1221
  defaultVariants: { invalid: !1 }
1191
1222
  }
1192
- ), Je = p(
1193
- ({ className: e, invalid: r, ...t }, n) => /* @__PURE__ */ a(
1223
+ ), Je = g(
1224
+ ({ className: e, invalid: r, ...a }, n) => /* @__PURE__ */ t(
1194
1225
  "textarea",
1195
1226
  {
1196
1227
  ref: n,
1197
1228
  className: i($e({ invalid: r }), e),
1198
- ...t
1229
+ ...a
1199
1230
  }
1200
1231
  )
1201
1232
  );
@@ -1203,26 +1234,26 @@ Je.displayName = "Textarea";
1203
1234
  function Qe({
1204
1235
  user: e,
1205
1236
  nav: r,
1206
- active: t,
1237
+ active: a,
1207
1238
  onSelect: n,
1208
1239
  footerAction: o
1209
1240
  }) {
1210
1241
  const s = (l) => "flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-sm transition-colors " + (l ? "bg-bg-muted font-medium text-fg" : "text-fg hover:bg-bg-muted");
1211
1242
  return /* @__PURE__ */ f("aside", { className: "flex w-52 shrink-0 flex-col gap-5 overflow-y-auto border-r border-border-default py-5 pl-4 pr-2", children: [
1212
1243
  /* @__PURE__ */ f("div", { className: "flex items-center gap-2.5 px-1", children: [
1213
- e.avatar ? /* @__PURE__ */ a(
1244
+ e.avatar ? /* @__PURE__ */ t(
1214
1245
  "img",
1215
1246
  {
1216
1247
  src: e.avatar,
1217
1248
  alt: e.name,
1218
1249
  className: "h-8 w-8 shrink-0 rounded-full object-cover"
1219
1250
  }
1220
- ) : /* @__PURE__ */ a("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary-subtle text-xs font-semibold text-primary", children: e.initials ?? e.name.slice(0, 2).toUpperCase() }),
1251
+ ) : /* @__PURE__ */ t("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary-subtle text-xs font-semibold text-primary", children: e.initials ?? e.name.slice(0, 2).toUpperCase() }),
1221
1252
  /* @__PURE__ */ f("div", { className: "min-w-0", children: [
1222
- /* @__PURE__ */ a("p", { className: "truncate text-sm font-medium text-fg", children: e.name }),
1223
- e.subtitle && /* @__PURE__ */ a("p", { className: "truncate text-xs text-fg-muted", children: e.subtitle })
1253
+ /* @__PURE__ */ t("p", { className: "truncate text-sm font-medium text-fg", children: e.name }),
1254
+ e.subtitle && /* @__PURE__ */ t("p", { className: "truncate text-xs text-fg-muted", children: e.subtitle })
1224
1255
  ] }),
1225
- /* @__PURE__ */ a(
1256
+ /* @__PURE__ */ t(
1226
1257
  "svg",
1227
1258
  {
1228
1259
  viewBox: "0 0 16 16",
@@ -1233,72 +1264,72 @@ function Qe({
1233
1264
  strokeLinecap: "round",
1234
1265
  strokeLinejoin: "round",
1235
1266
  "aria-hidden": !0,
1236
- children: /* @__PURE__ */ a("path", { d: "M5 7l3-3 3 3M5 9l3 3 3-3" })
1267
+ children: /* @__PURE__ */ t("path", { d: "M5 7l3-3 3 3M5 9l3 3 3-3" })
1237
1268
  }
1238
1269
  )
1239
1270
  ] }),
1240
1271
  r.map(({ group: l, items: c }) => /* @__PURE__ */ f("div", { children: [
1241
- /* @__PURE__ */ a("p", { className: "mb-1 px-1 text-xs font-semibold text-fg-muted", children: l }),
1242
- /* @__PURE__ */ a("ul", { className: "flex flex-col gap-0.5", children: c.map((u) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ f(
1272
+ /* @__PURE__ */ t("p", { className: "mb-1 px-1 text-xs font-semibold text-fg-muted", children: l }),
1273
+ /* @__PURE__ */ t("ul", { className: "flex flex-col gap-0.5", children: c.map((u) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ f(
1243
1274
  "button",
1244
1275
  {
1245
1276
  type: "button",
1246
1277
  onClick: () => n(u.id),
1247
- className: s(u.id === t),
1278
+ className: s(u.id === a),
1248
1279
  children: [
1249
- u.icon && /* @__PURE__ */ a("span", { className: "shrink-0 text-fg [&>svg]:h-[15px] [&>svg]:w-[15px]", children: u.icon }),
1280
+ u.icon && /* @__PURE__ */ t("span", { className: "shrink-0 text-fg [&>svg]:h-[15px] [&>svg]:w-[15px]", children: u.icon }),
1250
1281
  u.label
1251
1282
  ]
1252
1283
  }
1253
1284
  ) }, u.id)) })
1254
1285
  ] }, l)),
1255
- o && /* @__PURE__ */ a("div", { className: "mt-auto", children: o })
1286
+ o && /* @__PURE__ */ t("div", { className: "mt-auto", children: o })
1256
1287
  ] });
1257
1288
  }
1258
- function jr({
1289
+ function _r({
1259
1290
  open: e,
1260
1291
  onOpenChange: r,
1261
- user: t,
1292
+ user: a,
1262
1293
  nav: n,
1263
1294
  defaultSection: o,
1264
1295
  activeSection: s,
1265
1296
  onSectionChange: l,
1266
1297
  sectionTitles: c = {},
1267
1298
  sectionSubtitles: u = {},
1268
- renderSection: d,
1269
- footerAction: m
1299
+ renderSection: m,
1300
+ footerAction: d
1270
1301
  }) {
1271
- var j, S;
1272
- const g = ((S = (j = n[0]) == null ? void 0 : j.items[0]) == null ? void 0 : S.id) ?? "", [v, x] = b(
1273
- o ?? g
1274
- ), V = s ?? v, h = (z) => {
1275
- x(z), l == null || l(z);
1276
- }, k = n.flatMap((z) => z.items).find((z) => z.id === V), E = c[V] ?? (k == null ? void 0 : k.label) ?? V, B = u[V];
1277
- return /* @__PURE__ */ a(Ge, { open: e, onOpenChange: r, children: /* @__PURE__ */ a(Ue, { className: "max-w-[1300px] overflow-hidden p-0", children: /* @__PURE__ */ f("div", { className: "flex h-[820px]", children: [
1278
- /* @__PURE__ */ a(
1302
+ var _, S;
1303
+ const p = ((S = (_ = n[0]) == null ? void 0 : _.items[0]) == null ? void 0 : S.id) ?? "", [h, v] = b(
1304
+ o ?? p
1305
+ ), y = s ?? h, x = (z) => {
1306
+ v(z), l == null || l(z);
1307
+ }, k = n.flatMap((z) => z.items).find((z) => z.id === y), E = c[y] ?? (k == null ? void 0 : k.label) ?? y, j = u[y];
1308
+ return /* @__PURE__ */ t(Ge, { open: e, onOpenChange: r, children: /* @__PURE__ */ t(Oe, { className: "max-w-[1300px] overflow-hidden p-0", children: /* @__PURE__ */ f("div", { className: "flex h-[820px]", children: [
1309
+ /* @__PURE__ */ t(
1279
1310
  Qe,
1280
1311
  {
1281
- user: t,
1312
+ user: a,
1282
1313
  nav: n,
1283
- active: V,
1284
- onSelect: h,
1285
- footerAction: m
1314
+ active: y,
1315
+ onSelect: x,
1316
+ footerAction: d
1286
1317
  }
1287
1318
  ),
1288
1319
  /* @__PURE__ */ f("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
1289
1320
  /* @__PURE__ */ f("div", { className: "px-[200px] pb-5 pt-8", children: [
1290
- /* @__PURE__ */ a("h2", { className: "font-display text-2xl font-semibold tracking-tight text-fg", children: E }),
1291
- B && /* @__PURE__ */ a("p", { className: "mt-0.5 text-sm text-fg-muted", children: B })
1321
+ /* @__PURE__ */ t("h2", { className: "font-display text-2xl font-semibold tracking-tight text-fg", children: E }),
1322
+ j && /* @__PURE__ */ t("p", { className: "mt-0.5 text-sm text-fg-muted", children: j })
1292
1323
  ] }),
1293
- /* @__PURE__ */ a("div", { className: "flex-1 overflow-y-auto px-[200px] pb-8", children: (d == null ? void 0 : d(V)) ?? /* @__PURE__ */ f("p", { className: "text-sm text-fg-muted", children: [
1324
+ /* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto px-[200px] pb-8", children: (m == null ? void 0 : m(y)) ?? /* @__PURE__ */ f("p", { className: "text-sm text-fg-muted", children: [
1294
1325
  "Conteúdo de ",
1295
- /* @__PURE__ */ a("strong", { children: E }),
1326
+ /* @__PURE__ */ t("strong", { children: E }),
1296
1327
  "."
1297
1328
  ] }) })
1298
1329
  ] })
1299
1330
  ] }) }) });
1300
1331
  }
1301
- const te = C(null), R = "flui-color-mode", F = "flui-brand";
1332
+ const te = N(null), R = "flui-color-mode", F = "flui-brand";
1302
1333
  function Xe() {
1303
1334
  var e;
1304
1335
  return typeof window < "u" && ((e = window.matchMedia) == null ? void 0 : e.call(window, "(prefers-color-scheme: dark)").matches);
@@ -1313,45 +1344,45 @@ function W(e, r) {
1313
1344
  function Sr({
1314
1345
  children: e,
1315
1346
  defaultMode: r = "system",
1316
- defaultBrand: t = "default",
1347
+ defaultBrand: a = "default",
1317
1348
  target: n
1318
1349
  }) {
1319
1350
  const [o, s] = b(
1320
1351
  () => W(R, r)
1321
1352
  ), [l, c] = b(
1322
- () => W(F, t)
1323
- ), [u, d] = b(Xe);
1324
- y(() => {
1353
+ () => W(F, a)
1354
+ ), [u, m] = b(Xe);
1355
+ C(() => {
1325
1356
  var k;
1326
- const h = (k = window.matchMedia) == null ? void 0 : k.call(window, "(prefers-color-scheme: dark)");
1327
- if (!h) return;
1328
- const P = (E) => d(E.matches);
1329
- return h.addEventListener("change", P), () => h.removeEventListener("change", P);
1357
+ const x = (k = window.matchMedia) == null ? void 0 : k.call(window, "(prefers-color-scheme: dark)");
1358
+ if (!x) return;
1359
+ const L = (E) => m(E.matches);
1360
+ return x.addEventListener("change", L), () => x.removeEventListener("change", L);
1330
1361
  }, []);
1331
- const m = o === "system" ? u ? "dark" : "light" : o;
1332
- y(() => {
1333
- const h = (n == null ? void 0 : n()) ?? document.documentElement;
1334
- h.setAttribute("data-theme", m), l && l !== "default" ? h.setAttribute("data-brand", l) : h.removeAttribute("data-brand");
1335
- }, [m, l, n]);
1336
- const g = M((h) => {
1337
- s(h);
1362
+ const d = o === "system" ? u ? "dark" : "light" : o;
1363
+ C(() => {
1364
+ const x = (n == null ? void 0 : n()) ?? document.documentElement;
1365
+ x.setAttribute("data-theme", d), l && l !== "default" ? x.setAttribute("data-brand", l) : x.removeAttribute("data-brand");
1366
+ }, [d, l, n]);
1367
+ const p = M((x) => {
1368
+ s(x);
1338
1369
  try {
1339
- localStorage.setItem(R, h);
1370
+ localStorage.setItem(R, x);
1340
1371
  } catch {
1341
1372
  }
1342
- }, []), v = M((h) => {
1343
- c(h);
1373
+ }, []), h = M((x) => {
1374
+ c(x);
1344
1375
  try {
1345
- localStorage.setItem(F, h);
1376
+ localStorage.setItem(F, x);
1346
1377
  } catch {
1347
1378
  }
1348
- }, []), x = M(() => {
1349
- g(m === "dark" ? "light" : "dark");
1350
- }, [m, g]), V = oe(
1351
- () => ({ mode: o, resolvedMode: m, brand: l, setMode: g, setBrand: v, toggleMode: x }),
1352
- [o, m, l, g, v, x]
1379
+ }, []), v = M(() => {
1380
+ p(d === "dark" ? "light" : "dark");
1381
+ }, [d, p]), y = oe(
1382
+ () => ({ mode: o, resolvedMode: d, brand: l, setMode: p, setBrand: h, toggleMode: v }),
1383
+ [o, d, l, p, h, v]
1353
1384
  );
1354
- return /* @__PURE__ */ a(te.Provider, { value: V, children: e });
1385
+ return /* @__PURE__ */ t(te.Provider, { value: y, children: e });
1355
1386
  }
1356
1387
  function Rr() {
1357
1388
  const e = w(te);
@@ -2595,11 +2626,11 @@ export {
2595
2626
  hr as AccordionItem,
2596
2627
  vr as AccordionTrigger,
2597
2628
  He as Alert,
2598
- De as Avatar,
2599
- U as Badge,
2600
- Ae as Breadcrumb,
2629
+ Pe as Avatar,
2630
+ O as Badge,
2631
+ Ie as Breadcrumb,
2601
2632
  fr as BreadcrumbItem,
2602
- Be as BreadcrumbSeparator,
2633
+ je as BreadcrumbSeparator,
2603
2634
  ue as Button,
2604
2635
  me as Card,
2605
2636
  he as CardContent,
@@ -2607,13 +2638,13 @@ export {
2607
2638
  pe as CardHeader,
2608
2639
  ge as CardTitle,
2609
2640
  ye as Checkbox,
2610
- _e as Divider,
2641
+ Be as Divider,
2611
2642
  Er as Drawer,
2612
- Ir as DrawerBody,
2613
- Dr as DrawerContent,
2614
- _r as DrawerFooter,
2615
- Pr as DrawerHeader,
2616
- Lr as DrawerTitle,
2643
+ Ar as DrawerBody,
2644
+ Pr as DrawerContent,
2645
+ Br as DrawerFooter,
2646
+ Lr as DrawerHeader,
2647
+ Dr as DrawerTitle,
2617
2648
  lr as Dropdown,
2618
2649
  ir as DropdownContent,
2619
2650
  cr as DropdownItem,
@@ -2622,7 +2653,7 @@ export {
2622
2653
  de as Input,
2623
2654
  Ge as Modal,
2624
2655
  Mr as ModalBody,
2625
- Ue as ModalContent,
2656
+ Oe as ModalContent,
2626
2657
  zr as ModalDescription,
2627
2658
  Tr as ModalFooter,
2628
2659
  Vr as ModalHeader,
@@ -2630,12 +2661,12 @@ export {
2630
2661
  yr as Popover,
2631
2662
  Nr as PopoverContent,
2632
2663
  Cr as PopoverTrigger,
2633
- jr as ProfileSettingsModal,
2634
- Ie as Progress,
2664
+ _r as ProfileSettingsModal,
2665
+ Ae as Progress,
2635
2666
  Ce as Radio,
2636
2667
  or as RadioGroup,
2637
2668
  Ve as Select,
2638
- Le as Spinner,
2669
+ De as Spinner,
2639
2670
  Se as StatCard,
2640
2671
  we as Switch,
2641
2672
  dr as Tabs,
@@ -2644,7 +2675,7 @@ export {
2644
2675
  pr as TabsTrigger,
2645
2676
  Je as Textarea,
2646
2677
  Sr as ThemeProvider,
2647
- Ar as ToastProvider,
2678
+ Ir as ToastProvider,
2648
2679
  wr as Tooltip,
2649
2680
  ke as badgeVariants,
2650
2681
  ce as buttonVariants,
@@ -2653,6 +2684,6 @@ export {
2653
2684
  $e as textareaVariants,
2654
2685
  Fr as tokens,
2655
2686
  Rr as useTheme,
2656
- Br as useToast
2687
+ jr as useToast
2657
2688
  };
2658
2689
  //# sourceMappingURL=index.js.map