@turystack/ui 0.0.28 → 0.0.29

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
@@ -20,7 +20,7 @@ import * as Y from "@radix-ui/react-dialog";
20
20
  import { OTPInput as Ss, OTPInputContext as Rs } from "input-otp";
21
21
  import * as me from "@radix-ui/react-progress";
22
22
  import { Toaster as Ts } from "sonner";
23
- import { toast as qr } from "sonner";
23
+ import { toast as Kr } from "sonner";
24
24
  import * as gt from "@radix-ui/react-radio-group";
25
25
  import { Command as q } from "cmdk";
26
26
  import * as zs from "@radix-ui/react-separator";
@@ -381,7 +381,7 @@ function As({ children: e }) {
381
381
  }
382
382
  );
383
383
  }
384
- const nr = Object.assign(Os, {
384
+ const lr = Object.assign(Os, {
385
385
  Content: As,
386
386
  Item: Ls,
387
387
  Trigger: $s
@@ -536,7 +536,7 @@ function Hs({ children: e }) {
536
536
  const { action: s } = bt(), a = x()?.components?.alert?.action;
537
537
  return /* @__PURE__ */ t.jsx("div", { className: l(s(), a?.classNames?.root), children: e });
538
538
  }
539
- const rr = Object.assign(Ms, {
539
+ const ir = Object.assign(Ms, {
540
540
  Action: Hs,
541
541
  Content: Ds,
542
542
  Description: Bs,
@@ -579,7 +579,7 @@ const rr = Object.assign(Ms, {
579
579
  }
580
580
  }
581
581
  });
582
- function lr({
582
+ function cr({
583
583
  src: e,
584
584
  alt: s,
585
585
  size: o,
@@ -773,7 +773,7 @@ const Ws = k({
773
773
  }
774
774
  }
775
775
  });
776
- function ir({
776
+ function dr({
777
777
  bg: e,
778
778
  grow: s,
779
779
  minHeight: o,
@@ -894,7 +894,7 @@ function to(e) {
894
894
  }
895
895
  );
896
896
  }
897
- const cr = Object.assign(Js, {
897
+ const ur = Object.assign(Js, {
898
898
  Ellipsis: to,
899
899
  Item: Zs,
900
900
  Link: Ks,
@@ -1058,7 +1058,7 @@ function io({ children: e }) {
1058
1058
  const o = x()?.components?.card?.separator, { separator: a } = ft();
1059
1059
  return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
1060
1060
  }
1061
- const dr = Object.assign(so, {
1061
+ const mr = Object.assign(so, {
1062
1062
  Content: ro,
1063
1063
  Description: no,
1064
1064
  Footer: lo,
@@ -1232,7 +1232,7 @@ const Wt = Object.assign(Ie, {
1232
1232
  Group: mo
1233
1233
  }), _e = St(
1234
1234
  null
1235
- ), ur = () => {
1235
+ ), fr = () => {
1236
1236
  const e = ht(_e);
1237
1237
  if (!e)
1238
1238
  throw new Error("useColorScheme must be used within a Provider");
@@ -1277,7 +1277,7 @@ const go = k({
1277
1277
  title: "t:font-semibold t:text-lg"
1278
1278
  }
1279
1279
  });
1280
- function mr({
1280
+ function gr({
1281
1281
  open: e,
1282
1282
  title: s,
1283
1283
  description: o,
@@ -1373,7 +1373,7 @@ const po = k({
1373
1373
  }
1374
1374
  }
1375
1375
  });
1376
- function fr({
1376
+ function pr({
1377
1377
  centered: e,
1378
1378
  maxWidth: s,
1379
1379
  textAlign: o,
@@ -1407,7 +1407,7 @@ function xo(e, s = 300) {
1407
1407
  );
1408
1408
  }
1409
1409
  const Gt = 768;
1410
- function gr() {
1410
+ function xr() {
1411
1411
  const [e, s] = E(void 0);
1412
1412
  return ct(() => {
1413
1413
  const o = window.matchMedia(`(max-width: ${Gt - 1}px)`), a = () => {
@@ -1592,7 +1592,7 @@ const Tt = k({
1592
1592
  value: it(i, a)
1593
1593
  }
1594
1594
  );
1595
- }), pr = J(
1595
+ }), hr = J(
1596
1596
  (e, s) => {
1597
1597
  const a = x()?.components?.currencyInput, { variant: n, ...r } = e, i = n ?? a?.defaultProps?.variant ?? "brl";
1598
1598
  if (r.mode === "range") {
@@ -1990,7 +1990,7 @@ const Co = k({
1990
1990
  calendar: "",
1991
1991
  content: "t:w-auto t:p-2"
1992
1992
  }
1993
- }), xr = J(
1993
+ }), br = J(
1994
1994
  ({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
1995
1995
  const c = x(), m = c?.components?.dateInput, f = c?.translations?.dateInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
1996
1996
  e ?? s ?? null
@@ -2043,7 +2043,7 @@ const Co = k({
2043
2043
  calendar: "",
2044
2044
  content: "t:w-auto t:p-2"
2045
2045
  }
2046
- }), hr = J(
2046
+ }), vr = J(
2047
2047
  ({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
2048
2048
  const c = x(), m = c?.components?.dateRangeInput, f = c?.translations?.dateRangeInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
2049
2049
  e ?? s ?? null
@@ -2180,7 +2180,7 @@ const To = k({
2180
2180
  root: "t:relative t:flex t:w-full",
2181
2181
  typeSelector: "t:flex t:h-10 t:cursor-pointer t:items-center t:gap-1 t:rounded-l-md t:border t:border-input t:border-r-0 t:bg-transparent t:px-3 t:text-sm t:transition-colors t:hover:bg-accent t:disabled:pointer-events-none t:disabled:opacity-50"
2182
2182
  }
2183
- }), br = J(
2183
+ }), jr = J(
2184
2184
  ({ variant: e, value: s, defaultValue: o, onChange: a, placeholder: n, disabled: r, ...i }, d) => {
2185
2185
  const c = x(), m = c?.components?.documentInput, f = c?.translations?.documentInput, [g, b] = E(
2186
2186
  (s?.type !== "any" ? s?.type : void 0) ?? (o?.type !== "any" ? o?.type : void 0) ?? (e === "any" ? "cpf" : e)
@@ -2314,7 +2314,7 @@ function Po({
2314
2314
  V.Trigger,
2315
2315
  {
2316
2316
  asChild: e,
2317
- className: "cursor-pointer",
2317
+ className: "t:w-full t:cursor-pointer",
2318
2318
  children: s
2319
2319
  }
2320
2320
  );
@@ -2478,7 +2478,7 @@ function Bo({ children: e }) {
2478
2478
  }
2479
2479
  ) });
2480
2480
  }
2481
- const vr = Object.assign(zo, {
2481
+ const Nr = Object.assign(zo, {
2482
2482
  CheckboxItem: Eo,
2483
2483
  Content: Io,
2484
2484
  Group: Vo,
@@ -2550,7 +2550,7 @@ const vr = Object.assign(zo, {
2550
2550
  }
2551
2551
  }
2552
2552
  });
2553
- function jr({
2553
+ function yr({
2554
2554
  direction: e,
2555
2555
  justify: s,
2556
2556
  align: o,
@@ -2762,7 +2762,7 @@ function Jo({
2762
2762
  o
2763
2763
  ] });
2764
2764
  }
2765
- const Nr = Object.assign(Yo, {
2765
+ const Cr = Object.assign(Yo, {
2766
2766
  Field: Wo,
2767
2767
  FieldSet: Jo
2768
2768
  }), qo = k({
@@ -2838,7 +2838,7 @@ function Xo({ span: e, children: s }) {
2838
2838
  }
2839
2839
  );
2840
2840
  }
2841
- const yr = Object.assign(Ko, {
2841
+ const wr = Object.assign(Ko, {
2842
2842
  Item: Xo
2843
2843
  }), Qo = k({
2844
2844
  slots: {
@@ -3227,7 +3227,24 @@ function fa({ item: e }) {
3227
3227
  function ga({ collapsed: e }) {
3228
3228
  return /* @__PURE__ */ t.jsx("div", { className: l("t:my-2", e ? "t:mx-2" : "t:mx-1"), children: /* @__PURE__ */ t.jsx("div", { className: "t:h-px t:bg-border" }) });
3229
3229
  }
3230
- function pa({ items: e }) {
3230
+ function pa({
3231
+ active: e,
3232
+ children: s
3233
+ }) {
3234
+ return /* @__PURE__ */ t.jsx(
3235
+ "div",
3236
+ {
3237
+ className: l(
3238
+ "t:group t:flex t:w-full t:cursor-pointer t:items-center t:rounded-md t:text-sm t:transition-colors",
3239
+ "t:hover:bg-accent t:hover:text-accent-foreground",
3240
+ "t:gap-3 t:px-2 t:py-2",
3241
+ e && "t:bg-accent t:font-medium t:text-accent-foreground"
3242
+ ),
3243
+ children: s
3244
+ }
3245
+ );
3246
+ }
3247
+ function xa({ items: e }) {
3231
3248
  const { collapsed: s } = Vt();
3232
3249
  return /* @__PURE__ */ t.jsx("nav", { className: "t:flex t:w-full t:flex-col t:gap-1 t:p-2", children: e.map((o) => o.type === "divider" ? null : /* @__PURE__ */ t.jsx(
3233
3250
  fa,
@@ -3245,7 +3262,9 @@ function pa({ items: e }) {
3245
3262
  )
3246
3263
  ) : o.push(a), o), []) });
3247
3264
  }
3248
- const xa = k({
3265
+ const ha = Object.assign(xa, {
3266
+ Item: pa
3267
+ }), ba = k({
3249
3268
  slots: {
3250
3269
  root: "t:flex t:shrink-0 t:flex-col t:overflow-hidden t:bg-sidebar t:transition-all t:duration-200"
3251
3270
  },
@@ -3256,7 +3275,7 @@ const xa = k({
3256
3275
  }
3257
3276
  }
3258
3277
  }
3259
- }), ha = k({
3278
+ }), va = k({
3260
3279
  defaultVariants: {
3261
3280
  size: "md"
3262
3281
  },
@@ -3281,11 +3300,11 @@ const xa = k({
3281
3300
  }
3282
3301
  }
3283
3302
  }
3284
- }), ba = k({
3303
+ }), ja = k({
3285
3304
  slots: {
3286
3305
  root: "t:flex t:flex-1 t:flex-col t:overflow-y-auto"
3287
3306
  }
3288
- }), va = k({
3307
+ }), Na = k({
3289
3308
  defaultVariants: {
3290
3309
  size: "md"
3291
3310
  },
@@ -3310,30 +3329,30 @@ const xa = k({
3310
3329
  }
3311
3330
  }
3312
3331
  }
3313
- }), ja = k({
3332
+ }), ya = k({
3314
3333
  slots: {
3315
3334
  root: "t:flex t:items-center t:justify-center t:rounded-md t:p-1.5 t:text-muted-foreground t:transition-colors t:hover:bg-accent t:hover:text-accent-foreground"
3316
3335
  }
3317
- }), Na = {
3336
+ }), Ca = {
3318
3337
  default: "t:w-60",
3319
3338
  wide: "t:w-80"
3320
- }, ya = {
3339
+ }, wa = {
3321
3340
  lg: "t:px-6",
3322
3341
  md: "t:px-4",
3323
3342
  sm: "t:px-2"
3324
- }, Ca = {
3343
+ }, ka = {
3325
3344
  lg: "t:py-6",
3326
3345
  md: "t:py-4",
3327
3346
  sm: "t:py-2"
3328
3347
  };
3329
- function wa({
3348
+ function Sa({
3330
3349
  children: e,
3331
3350
  bordered: s,
3332
3351
  width: o = "default",
3333
3352
  paddingHorizontal: a,
3334
3353
  paddingVertical: n
3335
3354
  }) {
3336
- const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } = xa({
3355
+ const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } = ba({
3337
3356
  bordered: s
3338
3357
  });
3339
3358
  return /* @__PURE__ */ t.jsx(
@@ -3341,9 +3360,9 @@ function wa({
3341
3360
  {
3342
3361
  className: l(
3343
3362
  c(),
3344
- r ? "t:w-16" : Na[o],
3345
- a && ya[a],
3346
- n && Ca[n],
3363
+ r ? "t:w-16" : Ca[o],
3364
+ a && wa[a],
3365
+ n && ka[n],
3347
3366
  d?.classNames?.root
3348
3367
  ),
3349
3368
  children: e
@@ -3355,14 +3374,14 @@ function Fe({
3355
3374
  bordered: s,
3356
3375
  size: o
3357
3376
  }) {
3358
- const n = x()?.components?.layout?.sidebar?.header, { root: r } = ha({
3377
+ const n = x()?.components?.layout?.sidebar?.header, { root: r } = va({
3359
3378
  bordered: s,
3360
3379
  size: o
3361
3380
  });
3362
3381
  return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
3363
3382
  }
3364
3383
  function Be({ children: e }) {
3365
- const o = x()?.components?.layout?.sidebar?.body, { root: a } = ba();
3384
+ const o = x()?.components?.layout?.sidebar?.body, { root: a } = ja();
3366
3385
  return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
3367
3386
  }
3368
3387
  function He({
@@ -3370,14 +3389,14 @@ function He({
3370
3389
  bordered: s,
3371
3390
  size: o
3372
3391
  }) {
3373
- const n = x()?.components?.layout?.sidebar?.footer, { root: r } = va({
3392
+ const n = x()?.components?.layout?.sidebar?.footer, { root: r } = Na({
3374
3393
  bordered: s,
3375
3394
  size: o
3376
3395
  });
3377
3396
  return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
3378
3397
  }
3379
3398
  function Ge() {
3380
- const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } = ja(), r = e ? is : cs;
3399
+ const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } = ya(), r = e ? is : cs;
3381
3400
  return /* @__PURE__ */ t.jsx(
3382
3401
  "button",
3383
3402
  {
@@ -3393,18 +3412,18 @@ Fe.displayName = "Sidebar.Header";
3393
3412
  Be.displayName = "Sidebar.Body";
3394
3413
  He.displayName = "Sidebar.Footer";
3395
3414
  Ge.displayName = "Sidebar.Trigger";
3396
- const ka = Object.assign(wa, {
3415
+ const Ra = Object.assign(Sa, {
3397
3416
  Body: Be,
3398
3417
  Footer: He,
3399
3418
  Header: Fe,
3400
3419
  Trigger: Ge
3401
- }), Sa = k({
3420
+ }), Ta = k({
3402
3421
  slots: {
3403
3422
  root: "t:flex t:h-screen t:w-full t:overflow-hidden t:bg-background t:text-foreground"
3404
3423
  }
3405
3424
  });
3406
- function Ra({ children: e }) {
3407
- const o = x()?.components?.layout?.default, [a, n] = E(!1), r = Et(() => n((d) => !d), []), { root: i } = Sa();
3425
+ function za({ children: e }) {
3426
+ const o = x()?.components?.layout?.default, [a, n] = E(!1), r = Et(() => n((d) => !d), []), { root: i } = Ta();
3408
3427
  return /* @__PURE__ */ t.jsx(
3409
3428
  Le.Provider,
3410
3429
  {
@@ -3417,14 +3436,14 @@ function Ra({ children: e }) {
3417
3436
  }
3418
3437
  );
3419
3438
  }
3420
- const Cr = Object.assign(Ra, {
3439
+ const kr = Object.assign(za, {
3421
3440
  Content: ta,
3422
3441
  Footer: oa,
3423
3442
  Header: ra,
3424
3443
  Main: ia,
3425
- Nav: pa,
3426
- Sidebar: ka
3427
- }), Ta = k({
3444
+ Nav: ha,
3445
+ Sidebar: Ra
3446
+ }), Pa = k({
3428
3447
  defaultVariants: {
3429
3448
  visible: !1
3430
3449
  },
@@ -3443,8 +3462,8 @@ const Cr = Object.assign(Ra, {
3443
3462
  }
3444
3463
  }
3445
3464
  });
3446
- function za({ visible: e = !1 }) {
3447
- const { root: s, loader: o } = Ta({
3465
+ function Ia({ visible: e = !1 }) {
3466
+ const { root: s, loader: o } = Pa({
3448
3467
  visible: e
3449
3468
  });
3450
3469
  return /* @__PURE__ */ t.jsx("div", { className: s(), children: /* @__PURE__ */ t.jsx(Rt, { className: o() }) });
@@ -3456,7 +3475,7 @@ const Ue = k({
3456
3475
  overlay: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:fixed t:inset-0 t:z-50 t:bg-black/80 t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
3457
3476
  root: ""
3458
3477
  }
3459
- }), Pa = k({
3478
+ }), _a = k({
3460
3479
  slots: {
3461
3480
  description: "",
3462
3481
  root: "t:flex t:shrink-0 t:items-center t:justify-between t:px-6 t:py-4",
@@ -3469,19 +3488,19 @@ const Ue = k({
3469
3488
  }
3470
3489
  }
3471
3490
  }
3472
- }), Ia = k({
3491
+ }), Ea = k({
3473
3492
  slots: {
3474
3493
  root: "t:font-semibold t:text-lg t:leading-none t:tracking-tight"
3475
3494
  }
3476
- }), _a = k({
3495
+ }), Oa = k({
3477
3496
  slots: {
3478
3497
  root: "t:text-muted-foreground t:text-sm"
3479
3498
  }
3480
- }), Ea = k({
3499
+ }), La = k({
3481
3500
  slots: {
3482
3501
  root: "t:flex-1 t:overflow-y-auto t:px-6 t:py-4"
3483
3502
  }
3484
- }), Oa = k({
3503
+ }), $a = k({
3485
3504
  slots: {
3486
3505
  root: "t:flex t:shrink-0 t:flex-col-reverse t:gap-2 t:px-6 t:py-4 t:sm:flex-row t:sm:justify-end"
3487
3506
  },
@@ -3493,7 +3512,7 @@ const Ue = k({
3493
3512
  }
3494
3513
  }
3495
3514
  });
3496
- function La({ open: e, onChange: s, children: o }) {
3515
+ function Aa({ open: e, onChange: s, children: o }) {
3497
3516
  return /* @__PURE__ */ t.jsx(
3498
3517
  Y.Root,
3499
3518
  {
@@ -3503,7 +3522,7 @@ function La({ open: e, onChange: s, children: o }) {
3503
3522
  }
3504
3523
  );
3505
3524
  }
3506
- function $a({ children: e }) {
3525
+ function Ma({ children: e }) {
3507
3526
  const o = x()?.components?.modal?.default, { overlay: a, content: n } = Ue();
3508
3527
  return /* @__PURE__ */ t.jsxs(Y.Portal, { children: [
3509
3528
  /* @__PURE__ */ t.jsx(
@@ -3521,12 +3540,12 @@ function $a({ children: e }) {
3521
3540
  )
3522
3541
  ] });
3523
3542
  }
3524
- function Aa({
3543
+ function Va({
3525
3544
  closable: e,
3526
3545
  bordered: s,
3527
3546
  children: o
3528
3547
  }) {
3529
- const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } = Pa({
3548
+ const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } = _a({
3530
3549
  bordered: s
3531
3550
  }), { close: d } = Ue();
3532
3551
  return /* @__PURE__ */ t.jsxs("div", { className: l(i(), n?.classNames?.root), children: [
@@ -3540,14 +3559,14 @@ function Aa({
3540
3559
  )
3541
3560
  ] });
3542
3561
  }
3543
- function Ma({ children: e }) {
3544
- const o = x()?.components?.modal?.headerTitle, { root: a } = Ia();
3562
+ function Da({ children: e }) {
3563
+ const o = x()?.components?.modal?.headerTitle, { root: a } = Ea();
3545
3564
  return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
3546
3565
  }
3547
- function Va({
3566
+ function Fa({
3548
3567
  children: e
3549
3568
  }) {
3550
- const o = x()?.components?.modal?.headerDescription, { root: a } = _a();
3569
+ const o = x()?.components?.modal?.headerDescription, { root: a } = Oa();
3551
3570
  return /* @__PURE__ */ t.jsx(
3552
3571
  Y.Description,
3553
3572
  {
@@ -3556,25 +3575,25 @@ function Va({
3556
3575
  }
3557
3576
  );
3558
3577
  }
3559
- function Da({ children: e }) {
3560
- const o = x()?.components?.modal?.body, { root: a } = Ea();
3578
+ function Ba({ children: e }) {
3579
+ const o = x()?.components?.modal?.body, { root: a } = La();
3561
3580
  return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
3562
3581
  }
3563
- function Fa({ bordered: e, children: s }) {
3564
- const a = x()?.components?.modal?.footer, { root: n } = Oa({
3582
+ function Ha({ bordered: e, children: s }) {
3583
+ const a = x()?.components?.modal?.footer, { root: n } = $a({
3565
3584
  bordered: e
3566
3585
  });
3567
3586
  return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
3568
3587
  }
3569
- const Ba = Object.assign(Aa, {
3570
- Description: Va,
3571
- Title: Ma
3572
- }), wr = Object.assign(La, {
3573
- Body: Da,
3588
+ const Ga = Object.assign(Va, {
3589
+ Description: Fa,
3590
+ Title: Da
3591
+ }), Sr = Object.assign(Aa, {
3592
+ Body: Ba,
3574
3593
  Close: Y.Close,
3575
- Content: $a,
3576
- Footer: Fa,
3577
- Header: Ba,
3594
+ Content: Ma,
3595
+ Footer: Ha,
3596
+ Header: Ga,
3578
3597
  Trigger: Y.Trigger
3579
3598
  }), Ye = k({
3580
3599
  slots: {
@@ -3583,7 +3602,7 @@ const Ba = Object.assign(Aa, {
3583
3602
  input: "",
3584
3603
  root: "t:flex t:w-full t:items-stretch t:overflow-hidden t:rounded-md t:border t:border-input t:bg-input/30"
3585
3604
  }
3586
- }), Ha = k({
3605
+ }), Ua = k({
3587
3606
  slots: {
3588
3607
  cancel: "",
3589
3608
  confirm: "",
@@ -3641,7 +3660,7 @@ function ve({
3641
3660
  )
3642
3661
  ] });
3643
3662
  }
3644
- function Ga({
3663
+ function Ya({
3645
3664
  step: e,
3646
3665
  size: s,
3647
3666
  disabled: o,
@@ -3701,7 +3720,7 @@ function Ga({
3701
3720
  )
3702
3721
  ] });
3703
3722
  }
3704
- function Ua({
3723
+ function Wa({
3705
3724
  step: e,
3706
3725
  size: s,
3707
3726
  disabled: o,
@@ -3719,7 +3738,7 @@ function Ua({
3719
3738
  }), y = l(
3720
3739
  N(),
3721
3740
  "t:flex-1 t:border-0 t:rounded-none t:text-center t:focus-visible:ring-0 t:focus-visible:ring-offset-0"
3722
- ), { content: R, footer: O, inputLabel: P, inputSection: C, inputsWrapper: L, trigger: z } = Ha();
3741
+ ), { content: R, footer: O, inputLabel: P, inputSection: C, inputsWrapper: L, trigger: z } = Ua();
3723
3742
  function w(A) {
3724
3743
  A && j(p), f(A);
3725
3744
  }
@@ -3809,11 +3828,11 @@ function Ua({
3809
3828
  }
3810
3829
  );
3811
3830
  }
3812
- const kr = J(
3831
+ const Rr = J(
3813
3832
  ({ step: e = 1, size: s, disabled: o, placeholder: a, ...n }, r) => {
3814
3833
  const i = s ?? "md";
3815
3834
  return n.mode === "single" ? /* @__PURE__ */ t.jsx(
3816
- Ga,
3835
+ Ya,
3817
3836
  {
3818
3837
  defaultValue: n.defaultValue,
3819
3838
  disabled: o,
@@ -3825,7 +3844,7 @@ const kr = J(
3825
3844
  value: n.value
3826
3845
  }
3827
3846
  ) : /* @__PURE__ */ t.jsx(
3828
- Ua,
3847
+ Wa,
3829
3848
  {
3830
3849
  defaultValue: n.defaultValue,
3831
3850
  disabled: o,
@@ -3864,7 +3883,7 @@ const kr = J(
3864
3883
  }
3865
3884
  }
3866
3885
  });
3867
- function Ya({ ...e }) {
3886
+ function Ja({ ...e }) {
3868
3887
  return /* @__PURE__ */ t.jsx(
3869
3888
  "div",
3870
3889
  {
@@ -3874,7 +3893,7 @@ function Ya({ ...e }) {
3874
3893
  }
3875
3894
  );
3876
3895
  }
3877
- function Wa({ index: e, size: s }) {
3896
+ function qa({ index: e, size: s }) {
3878
3897
  const o = ht(Rs), { char: a, hasFakeCaret: n, isActive: r } = o.slots[e], d = x()?.components?.otpInput, { cell: c } = We({
3879
3898
  active: r,
3880
3899
  size: s
@@ -3884,7 +3903,7 @@ function Wa({ index: e, size: s }) {
3884
3903
  n && /* @__PURE__ */ t.jsx("div", { className: "t:pointer-events-none t:absolute t:inset-0 t:flex t:items-center t:justify-center", children: /* @__PURE__ */ t.jsx("div", { className: "t:h-4 t:w-px t:animate-caret-blink t:bg-foreground t:duration-1000" }) })
3885
3904
  ] });
3886
3905
  }
3887
- function Sr({
3906
+ function Tr({
3888
3907
  pattern: e = [],
3889
3908
  size: s,
3890
3909
  value: o,
@@ -3913,7 +3932,7 @@ function Sr({
3913
3932
  children: Array.from({
3914
3933
  length: b
3915
3934
  }).map((p, N) => /* @__PURE__ */ t.jsx(
3916
- Wa,
3935
+ qa,
3917
3936
  {
3918
3937
  index: j + N,
3919
3938
  size: c
@@ -3924,12 +3943,12 @@ function Sr({
3924
3943
  `group-${j}`
3925
3944
  )
3926
3945
  ];
3927
- return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(Ya, {}, `sep-${j}`)), v;
3946
+ return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(Ja, {}, `sep-${j}`)), v;
3928
3947
  })
3929
3948
  }
3930
3949
  );
3931
3950
  }
3932
- const Ja = k({
3951
+ const Za = k({
3933
3952
  slots: {
3934
3953
  actions: "t:flex t:items-center t:gap-1",
3935
3954
  root: "t:flex t:items-center t:justify-between t:gap-4",
@@ -3944,7 +3963,7 @@ const Ja = k({
3944
3963
  50,
3945
3964
  100
3946
3965
  ];
3947
- function qa(e) {
3966
+ function Ka(e) {
3948
3967
  const s = x(), o = s?.components?.pagination, a = s?.translations?.pagination, {
3949
3968
  root: n,
3950
3969
  rowsPerPage: r,
@@ -3952,7 +3971,7 @@ function qa(e) {
3952
3971
  rowsSelectNative: d,
3953
3972
  rowsSelectIcon: c,
3954
3973
  actions: m
3955
- } = Ja();
3974
+ } = Za();
3956
3975
  if (e.mode === "offset") {
3957
3976
  const {
3958
3977
  page: p,
@@ -4072,19 +4091,19 @@ function qa(e) {
4072
4091
  ] })
4073
4092
  ] });
4074
4093
  }
4075
- const Za = Array.from({
4094
+ const Xa = Array.from({
4076
4095
  length: 5
4077
4096
  }).map((e, s) => ({
4078
4097
  id: s
4079
- })), Ka = [
4098
+ })), Qa = [
4080
4099
  (e) => e.length >= 8,
4081
4100
  (e) => /[A-Z]/.test(e),
4082
4101
  (e) => /[a-z]/.test(e),
4083
4102
  (e) => /[0-9]/.test(e),
4084
4103
  (e) => /[^A-Za-z0-9]/.test(e)
4085
4104
  ];
4086
- function Xa(e) {
4087
- const s = Ka.filter((o) => o(e)).length;
4105
+ function tn(e) {
4106
+ const s = Qa.filter((o) => o(e)).length;
4088
4107
  return s <= 1 ? {
4089
4108
  level: "very-weak",
4090
4109
  score: s
@@ -4102,20 +4121,20 @@ function Xa(e) {
4102
4121
  score: s
4103
4122
  };
4104
4123
  }
4105
- const Qa = k({
4124
+ const en = k({
4106
4125
  slots: {
4107
4126
  bar: "t:h-1.5 t:flex-1 t:rounded-full t:transition-colors",
4108
4127
  barWrapper: "t:flex t:gap-1 t:pt-2",
4109
4128
  label: "t:pt-1 t:text-xs",
4110
4129
  root: "t:w-full"
4111
4130
  }
4112
- }), tn = {
4131
+ }), sn = {
4113
4132
  medium: "t:bg-yellow-500",
4114
4133
  strong: "t:bg-green-500",
4115
4134
  "very-strong": "t:bg-green-700",
4116
4135
  "very-weak": "t:bg-destructive",
4117
4136
  weak: "t:bg-orange-500"
4118
- }, en = {
4137
+ }, on = {
4119
4138
  medium: "t:text-yellow-500",
4120
4139
  strong: "t:text-green-500",
4121
4140
  "very-strong": "t:text-green-700",
@@ -4127,11 +4146,11 @@ const Qa = k({
4127
4146
  "very-strong": "Very strong",
4128
4147
  "very-weak": "Very weak",
4129
4148
  weak: "Weak"
4130
- }, Rr = J(
4149
+ }, zr = J(
4131
4150
  ({ showStrength: e = !0, value: s, onChange: o, ...a }, n) => {
4132
4151
  const i = x()?.translations?.passwordInput, [d, c] = E(""), m = typeof s == "string" ? s : d ?? "", f = (p) => {
4133
4152
  c(p ?? ""), o?.(p);
4134
- }, { root: g, barWrapper: b, bar: h, label: j } = Qa(), v = e && m ? Xa(m) : null;
4153
+ }, { root: g, barWrapper: b, bar: h, label: j } = en(), v = e && m ? tn(m) : null;
4135
4154
  return /* @__PURE__ */ t.jsxs("div", { className: g(), children: [
4136
4155
  /* @__PURE__ */ t.jsx(
4137
4156
  dt,
@@ -4144,18 +4163,18 @@ const Qa = k({
4144
4163
  }
4145
4164
  ),
4146
4165
  e && v && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4147
- /* @__PURE__ */ t.jsx("div", { className: b(), children: Za.map(({ id: p }) => /* @__PURE__ */ t.jsx(
4166
+ /* @__PURE__ */ t.jsx("div", { className: b(), children: Xa.map(({ id: p }) => /* @__PURE__ */ t.jsx(
4148
4167
  "div",
4149
4168
  {
4150
- className: `${h()} ${p < v.score ? tn[v.level] : "t:bg-muted"}`
4169
+ className: `${h()} ${p < v.score ? sn[v.level] : "t:bg-muted"}`
4151
4170
  },
4152
4171
  p
4153
4172
  )) }),
4154
- /* @__PURE__ */ t.jsx("p", { className: `${j()} ${en[v.level]}`, children: v.level === "very-weak" ? i?.veryWeak ?? yt["very-weak"] : v.level === "weak" ? i?.weak ?? yt.weak : v.level === "medium" ? i?.medium ?? yt.medium : v.level === "strong" ? i?.strong ?? yt.strong : i?.veryStrong ?? yt["very-strong"] })
4173
+ /* @__PURE__ */ t.jsx("p", { className: `${j()} ${on[v.level]}`, children: v.level === "very-weak" ? i?.veryWeak ?? yt["very-weak"] : v.level === "weak" ? i?.weak ?? yt.weak : v.level === "medium" ? i?.medium ?? yt.medium : v.level === "strong" ? i?.strong ?? yt.strong : i?.veryStrong ?? yt["very-strong"] })
4155
4174
  ] })
4156
4175
  ] });
4157
4176
  }
4158
- ), sn = [
4177
+ ), an = [
4159
4178
  {
4160
4179
  code: "AF",
4161
4180
  dialCode: "+93",
@@ -5344,7 +5363,7 @@ const Qa = k({
5344
5363
  flag: "🇿🇼",
5345
5364
  mask: "00 000 0000"
5346
5365
  }
5347
- ], on = "BR", an = k({
5366
+ ], nn = "BR", rn = k({
5348
5367
  defaultVariants: {
5349
5368
  size: "md"
5350
5369
  },
@@ -5368,7 +5387,7 @@ const Qa = k({
5368
5387
  }
5369
5388
  }
5370
5389
  }
5371
- }), Tr = J(
5390
+ }), Pr = J(
5372
5391
  ({ value: e, defaultValue: s, onChange: o, disabled: a, ...n }, r) => {
5373
5392
  const i = x(), d = i?.components?.phoneInput, c = i?.translations?.phoneInput, m = xt(() => {
5374
5393
  const C = new Intl.DisplayNames(
@@ -5379,13 +5398,13 @@ const Qa = k({
5379
5398
  type: "region"
5380
5399
  }
5381
5400
  );
5382
- return sn.map((L) => ({
5401
+ return an.map((L) => ({
5383
5402
  ...L,
5384
5403
  name: C.of(L.code) ?? L.code
5385
5404
  })).sort((L, z) => L.name.localeCompare(z.name));
5386
5405
  }, []), f = e ?? s, [g, b] = E(
5387
5406
  f ? m.find((C) => C.code === f.iso) ?? null : null
5388
- ), [h, j] = E(""), v = g ?? m.find((C) => C.code === on) ?? m[0], p = m.filter(
5407
+ ), [h, j] = E(""), v = g ?? m.find((C) => C.code === nn) ?? m[0], p = m.filter(
5389
5408
  (C) => C.name.toLowerCase().includes(h.toLowerCase()) || C.dialCode.includes(h) || C.code.toLowerCase().includes(h.toLowerCase())
5390
5409
  ), N = (C) => {
5391
5410
  b(C), j(""), o?.(null);
@@ -5397,7 +5416,7 @@ const Qa = k({
5397
5416
  number: C
5398
5417
  } : null
5399
5418
  );
5400
- }, R = n.size ?? "md", { root: O, countrySelector: P } = an({
5419
+ }, R = n.size ?? "md", { root: O, countrySelector: P } = rn({
5401
5420
  size: R
5402
5421
  });
5403
5422
  return /* @__PURE__ */ t.jsxs("div", { className: l(O(), d?.classNames?.root), children: [
@@ -5470,21 +5489,21 @@ const Qa = k({
5470
5489
  ) })
5471
5490
  ] });
5472
5491
  }
5473
- ), nn = k({
5492
+ ), ln = k({
5474
5493
  slots: {
5475
5494
  content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:w-72 t:rounded-md t:border t:bg-popover t:p-2 t:text-popover-foreground t:shadow-md t:outline-none t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
5476
5495
  root: "",
5477
5496
  trigger: ""
5478
5497
  }
5479
5498
  });
5480
- function zr({
5499
+ function Ir({
5481
5500
  content: e,
5482
5501
  side: s = "bottom",
5483
5502
  sideOffset: o = 4,
5484
5503
  align: a = "center",
5485
5504
  children: n
5486
5505
  }) {
5487
- const { content: r } = nn();
5506
+ const { content: r } = ln();
5488
5507
  return /* @__PURE__ */ t.jsxs(G.Root, { children: [
5489
5508
  /* @__PURE__ */ t.jsx(G.Trigger, { asChild: !0, children: n }),
5490
5509
  /* @__PURE__ */ t.jsx(G.Portal, { children: /* @__PURE__ */ t.jsx(
@@ -5499,7 +5518,7 @@ function zr({
5499
5518
  ) })
5500
5519
  ] });
5501
5520
  }
5502
- const rn = k({
5521
+ const cn = k({
5503
5522
  defaultVariants: {
5504
5523
  size: "md"
5505
5524
  },
@@ -5522,12 +5541,12 @@ const rn = k({
5522
5541
  }
5523
5542
  }
5524
5543
  });
5525
- function Pr({ label: e, value: s, defaultValue: o, size: a }) {
5544
+ function _r({ label: e, value: s, defaultValue: o, size: a }) {
5526
5545
  const {
5527
5546
  root: n,
5528
5547
  indicator: r,
5529
5548
  label: i
5530
- } = rn({
5549
+ } = cn({
5531
5550
  size: a
5532
5551
  }), d = s ?? o ?? 0, c = typeof e == "string" ? e : e?.content;
5533
5552
  return /* @__PURE__ */ t.jsxs("div", { children: [
@@ -5556,13 +5575,13 @@ function Pr({ label: e, value: s, defaultValue: o, size: a }) {
5556
5575
  )
5557
5576
  ] });
5558
5577
  }
5559
- const Je = St(null), Ir = () => {
5578
+ const Je = St(null), Er = () => {
5560
5579
  const e = ht(Je);
5561
5580
  if (!e)
5562
5581
  throw new Error("useTheme must be used within a Provider");
5563
5582
  return e;
5564
5583
  }, le = "turystack-theme";
5565
- function ln() {
5584
+ function dn() {
5566
5585
  if (typeof window > "u")
5567
5586
  return null;
5568
5587
  try {
@@ -5572,7 +5591,7 @@ function ln() {
5572
5591
  return null;
5573
5592
  }
5574
5593
  }
5575
- function cn(e) {
5594
+ function un(e) {
5576
5595
  localStorage.setItem(le, JSON.stringify(e));
5577
5596
  }
5578
5597
  const qe = {
@@ -5585,17 +5604,17 @@ const qe = {
5585
5604
  none: "0px",
5586
5605
  sm: "0.25rem"
5587
5606
  };
5588
- function dn(e) {
5607
+ function mn(e) {
5589
5608
  return {
5590
5609
  font: e.font,
5591
5610
  radius: e.radius
5592
5611
  };
5593
5612
  }
5594
- function un(e, s) {
5595
- const o = dn(e), a = {};
5613
+ function fn(e, s) {
5614
+ const o = mn(e), a = {};
5596
5615
  return o.font && (a["--font-sans"] = qe[o.font]), o.radius && (a["--t-radius"] = Ze[o.radius]), a;
5597
5616
  }
5598
- const mn = [
5617
+ const gn = [
5599
5618
  "--t-accent",
5600
5619
  "--t-accent-foreground",
5601
5620
  "--t-background",
@@ -5625,18 +5644,18 @@ const mn = [
5625
5644
  "--t-radius",
5626
5645
  "--font-sans"
5627
5646
  ];
5628
- function fn({
5647
+ function pn({
5629
5648
  defaultTheme: e = {},
5630
5649
  persistTheme: s = !1,
5631
5650
  children: o
5632
5651
  }) {
5633
5652
  const [a, n] = E(() => ({
5634
- ...s ? ln() ?? {} : {},
5653
+ ...s ? dn() ?? {} : {},
5635
5654
  ...e
5636
5655
  })), r = wt([]), i = Et((c) => {
5637
5656
  const m = document.documentElement;
5638
5657
  m.classList.contains("dark");
5639
- const f = un(c);
5658
+ const f = fn(c);
5640
5659
  for (const g of r.current)
5641
5660
  g in f || m.style.removeProperty(g);
5642
5661
  for (const [g, b] of Object.entries(f))
@@ -5649,7 +5668,7 @@ function fn({
5649
5668
  ...m,
5650
5669
  ...c
5651
5670
  };
5652
- return s && cn(f), f;
5671
+ return s && un(f), f;
5653
5672
  });
5654
5673
  },
5655
5674
  [
@@ -5670,7 +5689,7 @@ function fn({
5670
5689
  }), () => {
5671
5690
  m.disconnect();
5672
5691
  const f = document.documentElement;
5673
- for (const g of mn)
5692
+ for (const g of gn)
5674
5693
  f.style.removeProperty(g);
5675
5694
  };
5676
5695
  }, [
@@ -5687,7 +5706,7 @@ function fn({
5687
5706
  }
5688
5707
  );
5689
5708
  }
5690
- function gn({ theme: e, ...s }) {
5709
+ function xn({ theme: e, ...s }) {
5691
5710
  return /* @__PURE__ */ t.jsx(
5692
5711
  Ts,
5693
5712
  {
@@ -5716,7 +5735,7 @@ function gn({ theme: e, ...s }) {
5716
5735
  }
5717
5736
  );
5718
5737
  }
5719
- function _r({
5738
+ function Or({
5720
5739
  children: e,
5721
5740
  defaultColorScheme: s = "system",
5722
5741
  persistTheme: o,
@@ -5724,12 +5743,12 @@ function _r({
5724
5743
  ...n
5725
5744
  }) {
5726
5745
  return /* @__PURE__ */ t.jsx(Te.Provider, { value: n, children: /* @__PURE__ */ t.jsx(fo, { defaultColorScheme: s, children: /* @__PURE__ */ t.jsx(
5727
- fn,
5746
+ pn,
5728
5747
  {
5729
5748
  defaultTheme: a,
5730
5749
  persistTheme: o,
5731
5750
  children: /* @__PURE__ */ t.jsxs(et.Provider, { delayDuration: 400, children: [
5732
- /* @__PURE__ */ t.jsx(gn, {}),
5751
+ /* @__PURE__ */ t.jsx(xn, {}),
5733
5752
  e
5734
5753
  ] })
5735
5754
  }
@@ -5750,7 +5769,7 @@ const Ke = k({
5750
5769
  }
5751
5770
  }
5752
5771
  }
5753
- }), pn = k({
5772
+ }), hn = k({
5754
5773
  defaultVariants: {
5755
5774
  variant: "vertical"
5756
5775
  },
@@ -5769,7 +5788,7 @@ const Ke = k({
5769
5788
  }
5770
5789
  }
5771
5790
  });
5772
- function xn({
5791
+ function bn({
5773
5792
  item: e,
5774
5793
  groupDisabled: s,
5775
5794
  bordered: o
@@ -5814,7 +5833,7 @@ function xn({
5814
5833
  }
5815
5834
  ) : /* @__PURE__ */ t.jsx("div", { className: i(), children: m });
5816
5835
  }
5817
- function hn({
5836
+ function vn({
5818
5837
  label: e,
5819
5838
  description: s,
5820
5839
  value: o,
@@ -5872,7 +5891,7 @@ function hn({
5872
5891
  }
5873
5892
  );
5874
5893
  }
5875
- function bn({
5894
+ function jn({
5876
5895
  items: e,
5877
5896
  variant: s,
5878
5897
  value: o,
@@ -5881,7 +5900,7 @@ function bn({
5881
5900
  bordered: r,
5882
5901
  onChange: i
5883
5902
  }) {
5884
- const { root: d, item: c } = pn({
5903
+ const { root: d, item: c } = hn({
5885
5904
  variant: s
5886
5905
  });
5887
5906
  return /* @__PURE__ */ t.jsx(
@@ -5897,7 +5916,7 @@ function bn({
5897
5916
  {
5898
5917
  className: c(),
5899
5918
  children: /* @__PURE__ */ t.jsx(
5900
- xn,
5919
+ bn,
5901
5920
  {
5902
5921
  bordered: r,
5903
5922
  groupDisabled: n,
@@ -5910,8 +5929,8 @@ function bn({
5910
5929
  }
5911
5930
  );
5912
5931
  }
5913
- const Er = Object.assign(hn, {
5914
- Group: bn
5932
+ const Lr = Object.assign(vn, {
5933
+ Group: jn
5915
5934
  }), Xe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
5916
5935
  q,
5917
5936
  {
@@ -5979,7 +5998,7 @@ const Zt = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
5979
5998
  }
5980
5999
  ));
5981
6000
  Zt.displayName = q.Group.displayName;
5982
- const vn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
6001
+ const Nn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
5983
6002
  q.Separator,
5984
6003
  {
5985
6004
  className: l("t:-t-mx-1 t:h-px t:bg-border", e),
@@ -5987,7 +6006,7 @@ const vn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
5987
6006
  ...s
5988
6007
  }
5989
6008
  ));
5990
- vn.displayName = q.Separator.displayName;
6009
+ Nn.displayName = q.Separator.displayName;
5991
6010
  const ie = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
5992
6011
  q.Item,
5993
6012
  {
@@ -6000,7 +6019,7 @@ const ie = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
6000
6019
  }
6001
6020
  ));
6002
6021
  ie.displayName = q.Item.displayName;
6003
- function jn(e, s) {
6022
+ function yn(e, s) {
6004
6023
  if (e.length !== s.length)
6005
6024
  return !1;
6006
6025
  for (let o = 0; o < e.length; o++)
@@ -6027,7 +6046,7 @@ const Ne = 2, ce = k({
6027
6046
  }
6028
6047
  }
6029
6048
  }
6030
- }), Nn = k({
6049
+ }), Cn = k({
6031
6050
  base: [
6032
6051
  "t:flex t:w-full t:items-center t:justify-between t:gap-2 t:rounded-md t:border t:border-input",
6033
6052
  "t:bg-transparent t:px-3 t:text-sm t:shadow-sm t:ring-offset-background",
@@ -6089,7 +6108,7 @@ const Ne = 2, ce = k({
6089
6108
  sm: ""
6090
6109
  }
6091
6110
  }
6092
- }), yn = k({
6111
+ }), wn = k({
6093
6112
  base: "t:ml-2 t:size-4 t:shrink-0",
6094
6113
  variants: {
6095
6114
  selected: {
@@ -6097,10 +6116,10 @@ const Ne = 2, ce = k({
6097
6116
  true: "t:opacity-100"
6098
6117
  }
6099
6118
  }
6100
- }), pt = (e, s) => typeof s == "function" ? s(e) : e[s], Dt = (e, s) => typeof s == "function" ? s(e) : String(e[s] ?? ""), Cn = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "t:flex t:items-center t:justify-center t:py-2", children: [
6119
+ }), pt = (e, s) => typeof s == "function" ? s(e) : e[s], Dt = (e, s) => typeof s == "function" ? s(e) : String(e[s] ?? ""), kn = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "t:flex t:items-center t:justify-center t:py-2", children: [
6101
6120
  /* @__PURE__ */ t.jsx(Rt, { className: "t:size-4 t:animate-spin" }),
6102
6121
  /* @__PURE__ */ t.jsx("span", { className: "t:ml-2 t:text-muted-foreground t:text-sm", children: e })
6103
- ] }), wn = (e, s) => {
6122
+ ] }), Sn = (e, s) => {
6104
6123
  if (!s)
6105
6124
  return [
6106
6125
  {
@@ -6119,7 +6138,7 @@ const Ne = 2, ce = k({
6119
6138
  group: n,
6120
6139
  options: o.get(n)
6121
6140
  }));
6122
- }, kn = ({
6141
+ }, Rn = ({
6123
6142
  groups: e,
6124
6143
  optionValue: s,
6125
6144
  optionLabel: o,
@@ -6138,7 +6157,7 @@ const Ne = 2, ce = k({
6138
6157
  },
6139
6158
  i.group ?? d
6140
6159
  )),
6141
- n?.loadingMore && /* @__PURE__ */ t.jsx(Zt, { children: /* @__PURE__ */ t.jsx(Cn, { children: r }) })
6160
+ n?.loadingMore && /* @__PURE__ */ t.jsx(Zt, { children: /* @__PURE__ */ t.jsx(kn, { children: r }) })
6142
6161
  ] }), ss = ({
6143
6162
  mode: e,
6144
6163
  options: s,
@@ -6170,7 +6189,7 @@ const Ne = 2, ce = k({
6170
6189
  i,
6171
6190
  p
6172
6191
  ]), F = xt(
6173
- () => wn(I, n),
6192
+ () => Sn(I, n),
6174
6193
  [
6175
6194
  I,
6176
6195
  n
@@ -6192,7 +6211,7 @@ const Ne = 2, ce = k({
6192
6211
  "button",
6193
6212
  {
6194
6213
  "aria-expanded": j,
6195
- className: Nn({
6214
+ className: Cn({
6196
6215
  hasLeft: z,
6197
6216
  hasRight: w,
6198
6217
  mode: e,
@@ -6249,7 +6268,7 @@ const Ne = 2, ce = k({
6249
6268
  /* @__PURE__ */ t.jsxs(ts, { onScroll: O, children: [
6250
6269
  /* @__PURE__ */ t.jsx(es, { className: l(C?.classNames?.empty), children: r ?? L?.empty ?? "No results found" }),
6251
6270
  /* @__PURE__ */ t.jsx(
6252
- kn,
6271
+ Rn,
6253
6272
  {
6254
6273
  groups: F,
6255
6274
  infinite: c,
@@ -6266,7 +6285,7 @@ const Ne = 2, ce = k({
6266
6285
  ]
6267
6286
  }
6268
6287
  ) });
6269
- }, Sn = ({
6288
+ }, Tn = ({
6270
6289
  placeholder: e,
6271
6290
  options: s = [],
6272
6291
  optionLabel: o,
@@ -6350,7 +6369,7 @@ const Ne = 2, ce = k({
6350
6369
  /* @__PURE__ */ t.jsx(
6351
6370
  Kt,
6352
6371
  {
6353
- className: yn({
6372
+ className: wn({
6354
6373
  selected: _
6355
6374
  })
6356
6375
  }
@@ -6369,7 +6388,7 @@ const Ne = 2, ce = k({
6369
6388
  size: z
6370
6389
  }
6371
6390
  );
6372
- }, Rn = ({
6391
+ }, zn = ({
6373
6392
  placeholder: e,
6374
6393
  options: s = [],
6375
6394
  optionLabel: o,
@@ -6418,7 +6437,7 @@ const Ne = 2, ce = k({
6418
6437
  K - H - B < 50 && f.onLoadMore?.();
6419
6438
  };
6420
6439
  ct(() => {
6421
- r !== void 0 && !jn(r, S) && D(r);
6440
+ r !== void 0 && !yn(r, S) && D(r);
6422
6441
  }, [
6423
6442
  r
6424
6443
  ]);
@@ -6494,7 +6513,7 @@ const Ne = 2, ce = k({
6494
6513
  size: z
6495
6514
  }
6496
6515
  );
6497
- }, Or = (e) => e.mode === "multiple" ? /* @__PURE__ */ t.jsx(Rn, { ...e }) : /* @__PURE__ */ t.jsx(Sn, { ...e }), Tn = k({
6516
+ }, $r = (e) => e.mode === "multiple" ? /* @__PURE__ */ t.jsx(zn, { ...e }) : /* @__PURE__ */ t.jsx(Tn, { ...e }), Pn = k({
6498
6517
  defaultVariants: {
6499
6518
  orientation: "horizontal"
6500
6519
  },
@@ -6512,8 +6531,8 @@ const Ne = 2, ce = k({
6512
6531
  }
6513
6532
  }
6514
6533
  });
6515
- function Lr({ orientation: e, decorative: s = !0 }) {
6516
- const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } = Tn({
6534
+ function Ar({ orientation: e, decorative: s = !0 }) {
6535
+ const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } = Pn({
6517
6536
  orientation: n
6518
6537
  });
6519
6538
  return /* @__PURE__ */ t.jsx(
@@ -6564,7 +6583,7 @@ const vt = k({
6564
6583
  }
6565
6584
  }
6566
6585
  });
6567
- function zn({
6586
+ function In({
6568
6587
  open: e,
6569
6588
  side: s = "right",
6570
6589
  onChange: o,
@@ -6605,7 +6624,7 @@ function zn({
6605
6624
  }
6606
6625
  );
6607
6626
  }
6608
- function Pn({
6627
+ function _n({
6609
6628
  bordered: e,
6610
6629
  closable: s,
6611
6630
  children: o
@@ -6618,21 +6637,21 @@ function Pn({
6618
6637
  s && /* @__PURE__ */ t.jsx(Y.Close, { className: i(), children: /* @__PURE__ */ t.jsx(ut, { className: d() }) })
6619
6638
  ] });
6620
6639
  }
6621
- function In({ children: e }) {
6640
+ function En({ children: e }) {
6622
6641
  const o = x()?.components?.sheet?.body, { body: a } = vt();
6623
6642
  return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
6624
6643
  }
6625
- function _n({ bordered: e, children: s }) {
6644
+ function On({ bordered: e, children: s }) {
6626
6645
  const a = x()?.components?.sheet?.footer, { footer: n } = vt({
6627
6646
  bordered: e
6628
6647
  });
6629
6648
  return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
6630
6649
  }
6631
- function En({ children: e }) {
6650
+ function Ln({ children: e }) {
6632
6651
  const o = x()?.components?.sheet?.title, { title: a } = vt();
6633
6652
  return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
6634
6653
  }
6635
- function On({ children: e }) {
6654
+ function $n({ children: e }) {
6636
6655
  const o = x()?.components?.sheet?.description, { description: a } = vt();
6637
6656
  return /* @__PURE__ */ t.jsx(
6638
6657
  Y.Description,
@@ -6642,27 +6661,27 @@ function On({ children: e }) {
6642
6661
  }
6643
6662
  );
6644
6663
  }
6645
- const $r = Object.assign(zn, {
6646
- Body: In,
6664
+ const Mr = Object.assign(In, {
6665
+ Body: En,
6647
6666
  Close: Y.Close,
6648
- Description: On,
6649
- Footer: _n,
6650
- Header: Pn,
6651
- Title: En,
6667
+ Description: $n,
6668
+ Footer: On,
6669
+ Header: _n,
6670
+ Title: Ln,
6652
6671
  Trigger: Y.Trigger
6653
- }), Ln = k({
6672
+ }), An = k({
6654
6673
  slots: {
6655
6674
  root: "t:block t:h-full t:w-full t:animate-pulse t:rounded-md t:bg-muted"
6656
6675
  }
6657
6676
  });
6658
- function Ar({
6677
+ function Vr({
6659
6678
  children: e,
6660
6679
  className: s
6661
6680
  }) {
6662
- const a = x()?.components?.skeleton, { root: n } = Ln();
6681
+ const a = x()?.components?.skeleton, { root: n } = An();
6663
6682
  return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root, s), children: e });
6664
6683
  }
6665
- const $n = k({
6684
+ const Mn = k({
6666
6685
  compoundVariants: [
6667
6686
  {
6668
6687
  class: {
@@ -6743,8 +6762,8 @@ const $n = k({
6743
6762
  }
6744
6763
  }
6745
6764
  });
6746
- function Mr(e) {
6747
- const { orientation: s, size: o } = e, { root: a, track: n, range: r, thumb: i } = $n({
6765
+ function Dr(e) {
6766
+ const { orientation: s, size: o } = e, { root: a, track: n, range: r, thumb: i } = Mn({
6748
6767
  orientation: s,
6749
6768
  size: o
6750
6769
  });
@@ -6788,7 +6807,7 @@ function Mr(e) {
6788
6807
  }
6789
6808
  );
6790
6809
  }
6791
- const An = k({
6810
+ const Vn = k({
6792
6811
  defaultVariants: {
6793
6812
  size: "md"
6794
6813
  },
@@ -6820,7 +6839,7 @@ const An = k({
6820
6839
  }
6821
6840
  }
6822
6841
  });
6823
- function Vr({
6842
+ function Fr({
6824
6843
  label: e,
6825
6844
  value: s,
6826
6845
  size: o,
@@ -6836,7 +6855,7 @@ function Vr({
6836
6855
  thumb: g,
6837
6856
  wrapper: b,
6838
6857
  description: h
6839
- } = An({
6858
+ } = Vn({
6840
6859
  bordered: d,
6841
6860
  size: o
6842
6861
  }), j = typeof e == "string" ? e : e?.content, v = typeof e == "object" && e !== null ? e.required : !1, p = typeof e == "object" && e !== null ? e.optional : !1, N = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -6917,10 +6936,10 @@ const It = k({
6917
6936
  }
6918
6937
  }
6919
6938
  });
6920
- function Mn({ columnKey: e, sort: s }) {
6939
+ function Dn({ columnKey: e, sort: s }) {
6921
6940
  return !s || s !== e && s !== `-${e}` ? /* @__PURE__ */ t.jsx(ps, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : s === e ? /* @__PURE__ */ t.jsx(xs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : /* @__PURE__ */ t.jsx(hs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" });
6922
6941
  }
6923
- function Dr({
6942
+ function Br({
6924
6943
  columns: e,
6925
6944
  items: s = [],
6926
6945
  itemKey: o,
@@ -6975,7 +6994,7 @@ function Dr({
6975
6994
  }
6976
6995
  return /* @__PURE__ */ t.jsxs("div", { className: "t:space-y-2", children: [
6977
6996
  /* @__PURE__ */ t.jsxs("div", { className: l(P(), R?.classNames?.root), children: [
6978
- /* @__PURE__ */ t.jsx(za, { visible: m }),
6997
+ /* @__PURE__ */ t.jsx(Ia, { visible: m }),
6979
6998
  /* @__PURE__ */ t.jsxs("table", { className: C(), children: [
6980
6999
  /* @__PURE__ */ t.jsx("thead", { className: l(L(), R?.classNames?.header), children: /* @__PURE__ */ t.jsxs("tr", { children: [
6981
7000
  D && /* @__PURE__ */ t.jsx(
@@ -7013,7 +7032,7 @@ function Dr({
7013
7032
  children: [
7014
7033
  u.label,
7015
7034
  u.sorter && /* @__PURE__ */ t.jsx(
7016
- Mn,
7035
+ Dn,
7017
7036
  {
7018
7037
  columnKey: u.key,
7019
7038
  sort: d
@@ -7083,7 +7102,7 @@ function Dr({
7083
7102
  }) })
7084
7103
  ] })
7085
7104
  ] }),
7086
- !c && i && /* @__PURE__ */ t.jsx(qa, { ...i })
7105
+ !c && i && /* @__PURE__ */ t.jsx(Ka, { ...i })
7087
7106
  ] });
7088
7107
  }
7089
7108
  const Ft = k({
@@ -7101,7 +7120,7 @@ const Ft = k({
7101
7120
  }
7102
7121
  }
7103
7122
  });
7104
- function Vn({
7123
+ function Fn({
7105
7124
  children: e,
7106
7125
  onChange: s,
7107
7126
  value: o,
@@ -7121,13 +7140,13 @@ function Vn({
7121
7140
  }
7122
7141
  );
7123
7142
  }
7124
- function Dn({ children: e, justified: s }) {
7143
+ function Bn({ children: e, justified: s }) {
7125
7144
  const a = x()?.components?.tabs?.list, { list: n } = Ft({
7126
7145
  justified: s
7127
7146
  });
7128
7147
  return /* @__PURE__ */ t.jsx($t.List, { className: l(n(), a?.classNames?.root), children: e });
7129
7148
  }
7130
- function Fn({ value: e, children: s }) {
7149
+ function Hn({ value: e, children: s }) {
7131
7150
  const a = x()?.components?.tabs?.trigger, { trigger: n } = Ft();
7132
7151
  return /* @__PURE__ */ t.jsx(
7133
7152
  $t.Trigger,
@@ -7138,7 +7157,7 @@ function Fn({ value: e, children: s }) {
7138
7157
  }
7139
7158
  );
7140
7159
  }
7141
- function Bn({ value: e, children: s }) {
7160
+ function Gn({ value: e, children: s }) {
7142
7161
  const a = x()?.components?.tabs?.content, { content: n } = Ft();
7143
7162
  return /* @__PURE__ */ t.jsx(
7144
7163
  $t.Content,
@@ -7149,18 +7168,18 @@ function Bn({ value: e, children: s }) {
7149
7168
  }
7150
7169
  );
7151
7170
  }
7152
- const Fr = Object.assign(Vn, {
7153
- Content: Bn,
7154
- List: Dn,
7155
- Trigger: Fn
7156
- }), Hn = k({
7171
+ const Hr = Object.assign(Fn, {
7172
+ Content: Gn,
7173
+ List: Bn,
7174
+ Trigger: Hn
7175
+ }), Un = k({
7157
7176
  slots: {
7158
7177
  input: "",
7159
7178
  root: "t:space-y-2",
7160
7179
  tag: "t:flex t:items-center t:gap-1",
7161
7180
  tagRemove: "t:flex t:items-center"
7162
7181
  }
7163
- }), Br = J(
7182
+ }), Gr = J(
7164
7183
  ({
7165
7184
  value: e,
7166
7185
  defaultValue: s,
@@ -7202,7 +7221,7 @@ const Fr = Object.assign(Vn, {
7202
7221
  }, [
7203
7222
  e
7204
7223
  ]);
7205
- const { root: P, tag: C, tagRemove: L } = Hn();
7224
+ const { root: P, tag: C, tagRemove: L } = Un();
7206
7225
  return /* @__PURE__ */ t.jsxs("div", { className: l(P(), g?.classNames?.root), children: [
7207
7226
  j.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-wrap t:gap-2", children: j.map((z, w) => /* @__PURE__ */ t.jsx(
7208
7227
  Ut,
@@ -7239,7 +7258,7 @@ const Fr = Object.assign(Vn, {
7239
7258
  )
7240
7259
  ] });
7241
7260
  }
7242
- ), Gn = k({
7261
+ ), Yn = k({
7243
7262
  slots: {
7244
7263
  counter: "t:pointer-events-none t:absolute t:right-3 t:bottom-2 t:select-none t:text-muted-foreground t:text-xs",
7245
7264
  textarea: "t:h-auto t:resize-none t:overflow-hidden t:py-2"
@@ -7251,7 +7270,7 @@ const Fr = Object.assign(Vn, {
7251
7270
  }
7252
7271
  }
7253
7272
  }
7254
- }), Hr = J(
7273
+ }), Ur = J(
7255
7274
  ({
7256
7275
  className: e,
7257
7276
  rootClassName: s,
@@ -7275,7 +7294,7 @@ const Fr = Object.assign(Vn, {
7275
7294
  hasLeft: p,
7276
7295
  hasRight: N,
7277
7296
  size: v
7278
- }), { counter: C, textarea: L } = Gn({
7297
+ }), { counter: C, textarea: L } = Yn({
7279
7298
  hasCounter: !!m
7280
7299
  }), [z, w] = E(a ?? ""), I = o !== void 0, F = I ? (o ?? "").length : z.length;
7281
7300
  function A(S) {
@@ -7318,11 +7337,11 @@ const Fr = Object.assign(Vn, {
7318
7337
  );
7319
7338
  }
7320
7339
  );
7321
- function Gr(e) {
7340
+ function Yr(e) {
7322
7341
  const s = JSON.stringify(qe), o = JSON.stringify(Ze), a = JSON.stringify(e ?? {}), n = JSON.stringify(le);
7323
7342
  return `(function(){try{var F=${s};var R=${o};var d=${a};var s=localStorage.getItem(${n});var t=s?JSON.parse(s):{};var m=Object.assign({},d,t);var root=document.documentElement;if(m.font)root.style.setProperty("--font-sans",F[m.font]);if(m.radius)root.style.setProperty("--t-radius",R[m.radius])}catch(e){}})();`;
7324
7343
  }
7325
- const Un = k({
7344
+ const Wn = k({
7326
7345
  base: "",
7327
7346
  defaultVariants: {
7328
7347
  variant: "default"
@@ -7363,7 +7382,7 @@ const Un = k({
7363
7382
  }
7364
7383
  }
7365
7384
  });
7366
- function Ur({
7385
+ function Wr({
7367
7386
  component: e,
7368
7387
  size: s,
7369
7388
  variant: o,
@@ -7375,7 +7394,7 @@ function Ur({
7375
7394
  return /* @__PURE__ */ t.jsx(
7376
7395
  i,
7377
7396
  {
7378
- className: Un({
7397
+ className: Wn({
7379
7398
  size: s,
7380
7399
  truncate: n,
7381
7400
  variant: o,
@@ -7385,7 +7404,7 @@ function Ur({
7385
7404
  }
7386
7405
  );
7387
7406
  }
7388
- const Yn = k({
7407
+ const Jn = k({
7389
7408
  slots: {
7390
7409
  fileItem: "t:flex t:items-center t:justify-between t:gap-3 t:rounded-md t:border t:px-3 t:py-2 t:text-sm",
7391
7410
  fileList: "t:mt-3 t:space-y-2",
@@ -7409,7 +7428,7 @@ const Yn = k({
7409
7428
  }
7410
7429
  }
7411
7430
  });
7412
- function Yr({
7431
+ function Jr({
7413
7432
  accept: e,
7414
7433
  maxFiles: s,
7415
7434
  maxFileSize: o,
@@ -7417,7 +7436,7 @@ function Yr({
7417
7436
  handler: n,
7418
7437
  onUpload: r
7419
7438
  }) {
7420
- const d = x()?.translations?.uploader, [c, m] = E([]), [f, g] = E(!1), b = wt(null), { root: h, icon: j, fileList: v, fileItem: p, fileName: N, progress: y, progressBar: R } = Yn({
7439
+ const d = x()?.translations?.uploader, [c, m] = E([]), [f, g] = E(!1), b = wt(null), { root: h, icon: j, fileList: v, fileItem: p, fileName: N, progress: y, progressBar: R } = Jn({
7421
7440
  disabled: !!a,
7422
7441
  dragging: f
7423
7442
  });
@@ -7579,76 +7598,76 @@ function Yr({
7579
7598
  ] });
7580
7599
  }
7581
7600
  export {
7582
- nr as Accordion,
7583
- rr as Alert,
7584
- lr as Avatar,
7601
+ lr as Accordion,
7602
+ ir as Alert,
7603
+ cr as Avatar,
7585
7604
  Ut as Badge,
7586
- ir as Box,
7587
- cr as Breadcrumb,
7605
+ dr as Box,
7606
+ ur as Breadcrumb,
7588
7607
  X as Button,
7589
- dr as Card,
7608
+ mr as Card,
7590
7609
  Wt as Checkbox,
7591
- mr as Confirm,
7592
- fr as Container,
7593
- pr as CurrencyInput,
7594
- xr as DateInput,
7595
- hr as DateRangeInput,
7596
- br as DocumentInput,
7597
- vr as DropdownMenu,
7598
- jr as Flex,
7599
- Nr as Form,
7600
- yr as Grid,
7610
+ gr as Confirm,
7611
+ pr as Container,
7612
+ hr as CurrencyInput,
7613
+ br as DateInput,
7614
+ vr as DateRangeInput,
7615
+ jr as DocumentInput,
7616
+ Nr as DropdownMenu,
7617
+ yr as Flex,
7618
+ Cr as Form,
7619
+ wr as Grid,
7601
7620
  Me as HeaderCenter,
7602
7621
  Ae as HeaderLeft,
7603
7622
  Ve as HeaderRight,
7604
7623
  dt as Input,
7605
7624
  ne as Label,
7606
- Cr as Layout,
7625
+ kr as Layout,
7607
7626
  ta as LayoutContent,
7608
7627
  oa as LayoutFooter,
7609
7628
  ra as LayoutHeader,
7610
7629
  ia as LayoutMain,
7611
- pa as LayoutNav,
7612
- ka as LayoutSidebar,
7630
+ ha as LayoutNav,
7631
+ Ra as LayoutSidebar,
7613
7632
  ee as Loader,
7614
- za as LoadingOverlay,
7633
+ Ia as LoadingOverlay,
7615
7634
  qt as MaskInput,
7616
- wr as Modal,
7617
- kr as NumberInput,
7618
- Sr as OTPInput,
7619
- qa as Pagination,
7620
- Rr as PasswordInput,
7621
- Tr as PhoneInput,
7622
- zr as Popover,
7623
- Pr as Progress,
7624
- _r as Provider,
7625
- Er as Radio,
7626
- Or as Select,
7627
- Lr as Separator,
7628
- $r as Sheet,
7635
+ Sr as Modal,
7636
+ Rr as NumberInput,
7637
+ Tr as OTPInput,
7638
+ Ka as Pagination,
7639
+ zr as PasswordInput,
7640
+ Pr as PhoneInput,
7641
+ Ir as Popover,
7642
+ _r as Progress,
7643
+ Or as Provider,
7644
+ Lr as Radio,
7645
+ $r as Select,
7646
+ Ar as Separator,
7647
+ Mr as Sheet,
7629
7648
  Be as SidebarBody,
7630
7649
  He as SidebarFooter,
7631
7650
  Fe as SidebarHeader,
7632
7651
  Ge as SidebarTrigger,
7633
- Ar as Skeleton,
7634
- Mr as Slider,
7635
- Vr as Switch,
7636
- Dr as Table,
7637
- Fr as Tabs,
7638
- Br as TagsInput,
7639
- Hr as Textarea,
7640
- gn as ToastContainer,
7652
+ Vr as Skeleton,
7653
+ Dr as Slider,
7654
+ Fr as Switch,
7655
+ Br as Table,
7656
+ Hr as Tabs,
7657
+ Gr as TagsInput,
7658
+ Ur as Textarea,
7659
+ xn as ToastContainer,
7641
7660
  ae as Tooltip,
7642
- Ur as Typography,
7643
- Yr as Uploader,
7644
- un as applyTheme,
7645
- Gr as getThemeScript,
7646
- dn as resolveTheme,
7661
+ Wr as Typography,
7662
+ Jr as Uploader,
7663
+ fn as applyTheme,
7664
+ Yr as getThemeScript,
7665
+ mn as resolveTheme,
7647
7666
  Yt as styles,
7648
- qr as toast,
7649
- ur as useColorScheme,
7667
+ Kr as toast,
7668
+ fr as useColorScheme,
7650
7669
  xo as useDebounceFn,
7651
- gr as useIsMobile,
7670
+ xr as useIsMobile,
7652
7671
  Vt as useSidebar,
7653
- Ir as useTheme
7672
+ Er as useTheme
7654
7673
  };