@clidey/ux 0.20.1 → 0.21.1

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
@@ -31,10 +31,10 @@ import * as S from "@radix-ui/react-alert-dialog";
31
31
  function r(...e) {
32
32
  return Ce(ze(e));
33
33
  }
34
- function Ut(e) {
34
+ function Kt(e) {
35
35
  return e.replace(/_/g, " ").replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase());
36
36
  }
37
- function Wt(e) {
37
+ function Ut(e) {
38
38
  const o = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), n = Math.floor(o / 1e3);
39
39
  if (n < 60)
40
40
  return "just now";
@@ -69,7 +69,7 @@ const Ve = O(
69
69
  }
70
70
  }
71
71
  );
72
- function qt({
72
+ function Wt({
73
73
  className: e,
74
74
  variant: t,
75
75
  asChild: o = !1,
@@ -125,7 +125,7 @@ function J({
125
125
  }
126
126
  );
127
127
  }
128
- function Xt({ className: e, ...t }) {
128
+ function qt({ className: e, ...t }) {
129
129
  return /* @__PURE__ */ a(
130
130
  "div",
131
131
  {
@@ -138,7 +138,7 @@ function Xt({ className: e, ...t }) {
138
138
  }
139
139
  );
140
140
  }
141
- function Yt({ className: e, ...t }) {
141
+ function Xt({ className: e, ...t }) {
142
142
  return /* @__PURE__ */ a(
143
143
  "div",
144
144
  {
@@ -151,7 +151,7 @@ function Yt({ className: e, ...t }) {
151
151
  }
152
152
  );
153
153
  }
154
- function Jt({ className: e, ...t }) {
154
+ function Yt({ className: e, ...t }) {
155
155
  return /* @__PURE__ */ a(
156
156
  "div",
157
157
  {
@@ -161,7 +161,7 @@ function Jt({ className: e, ...t }) {
161
161
  }
162
162
  );
163
163
  }
164
- function Qt({ className: e, ...t }) {
164
+ function Jt({ className: e, ...t }) {
165
165
  return /* @__PURE__ */ a(
166
166
  "div",
167
167
  {
@@ -171,7 +171,7 @@ function Qt({ className: e, ...t }) {
171
171
  }
172
172
  );
173
173
  }
174
- function Zt({ className: e, ...t }) {
174
+ function Qt({ className: e, ...t }) {
175
175
  return /* @__PURE__ */ a(
176
176
  "div",
177
177
  {
@@ -181,7 +181,7 @@ function Zt({ className: e, ...t }) {
181
181
  }
182
182
  );
183
183
  }
184
- function ea({ className: e, ...t }) {
184
+ function Zt({ className: e, ...t }) {
185
185
  return /* @__PURE__ */ a(
186
186
  "div",
187
187
  {
@@ -191,22 +191,22 @@ function ea({ className: e, ...t }) {
191
191
  }
192
192
  );
193
193
  }
194
- function ta({
194
+ function ea({
195
195
  ...e
196
196
  }) {
197
197
  return /* @__PURE__ */ a(h.Root, { "data-slot": "context-menu", ...e });
198
198
  }
199
- function aa({
199
+ function ta({
200
200
  ...e
201
201
  }) {
202
202
  return /* @__PURE__ */ a(h.Trigger, { "data-slot": "context-menu-trigger", ...e });
203
203
  }
204
- function ra({
204
+ function aa({
205
205
  ...e
206
206
  }) {
207
207
  return /* @__PURE__ */ a(h.Sub, { "data-slot": "context-menu-sub", ...e });
208
208
  }
209
- function oa({
209
+ function ra({
210
210
  ...e
211
211
  }) {
212
212
  return /* @__PURE__ */ a(
@@ -217,7 +217,7 @@ function oa({
217
217
  }
218
218
  );
219
219
  }
220
- function na({
220
+ function oa({
221
221
  className: e,
222
222
  inset: t,
223
223
  children: o,
@@ -240,7 +240,7 @@ function na({
240
240
  }
241
241
  );
242
242
  }
243
- function ia({
243
+ function na({
244
244
  className: e,
245
245
  ...t
246
246
  }) {
@@ -256,7 +256,7 @@ function ia({
256
256
  }
257
257
  );
258
258
  }
259
- function sa({
259
+ function ia({
260
260
  className: e,
261
261
  ...t
262
262
  }) {
@@ -272,7 +272,7 @@ function sa({
272
272
  }
273
273
  ) });
274
274
  }
275
- function da({
275
+ function sa({
276
276
  className: e,
277
277
  inset: t,
278
278
  variant: o = "default",
@@ -292,7 +292,7 @@ function da({
292
292
  }
293
293
  );
294
294
  }
295
- function la({
295
+ function da({
296
296
  className: e,
297
297
  children: t,
298
298
  checked: o,
@@ -315,7 +315,7 @@ function la({
315
315
  }
316
316
  );
317
317
  }
318
- function ca({
318
+ function la({
319
319
  className: e,
320
320
  children: t,
321
321
  ...o
@@ -336,7 +336,7 @@ function ca({
336
336
  }
337
337
  );
338
338
  }
339
- function ua({
339
+ function ca({
340
340
  className: e,
341
341
  inset: t,
342
342
  ...o
@@ -354,7 +354,7 @@ function ua({
354
354
  }
355
355
  );
356
356
  }
357
- function ma({
357
+ function ua({
358
358
  className: e,
359
359
  ...t
360
360
  }) {
@@ -367,7 +367,7 @@ function ma({
367
367
  }
368
368
  );
369
369
  }
370
- function fa({
370
+ function ma({
371
371
  className: e,
372
372
  ...t
373
373
  }) {
@@ -383,17 +383,17 @@ function fa({
383
383
  }
384
384
  );
385
385
  }
386
- function pa({
386
+ function fa({
387
387
  ...e
388
388
  }) {
389
389
  return /* @__PURE__ */ a(R.Root, { "data-slot": "drawer", ...e });
390
390
  }
391
- function ga({
391
+ function pa({
392
392
  ...e
393
393
  }) {
394
394
  return /* @__PURE__ */ a(R.Trigger, { "data-slot": "drawer-trigger", ...e });
395
395
  }
396
- function ba({
396
+ function ga({
397
397
  ...e
398
398
  }) {
399
399
  return /* @__PURE__ */ a(R.Close, { "data-slot": "drawer-close", ...e });
@@ -414,7 +414,7 @@ function Ge({
414
414
  }
415
415
  );
416
416
  }
417
- function ha({
417
+ function ba({
418
418
  className: e,
419
419
  children: t,
420
420
  ...o
@@ -442,7 +442,7 @@ function ha({
442
442
  )
443
443
  ] });
444
444
  }
445
- function va({ className: e, ...t }) {
445
+ function ha({ className: e, ...t }) {
446
446
  return /* @__PURE__ */ a(
447
447
  "div",
448
448
  {
@@ -455,7 +455,7 @@ function va({ className: e, ...t }) {
455
455
  }
456
456
  );
457
457
  }
458
- function xa({ className: e, ...t }) {
458
+ function va({ className: e, ...t }) {
459
459
  return /* @__PURE__ */ a(
460
460
  "div",
461
461
  {
@@ -465,7 +465,7 @@ function xa({ className: e, ...t }) {
465
465
  }
466
466
  );
467
467
  }
468
- function wa({
468
+ function xa({
469
469
  className: e,
470
470
  ...t
471
471
  }) {
@@ -478,7 +478,7 @@ function wa({
478
478
  }
479
479
  );
480
480
  }
481
- function ya({
481
+ function wa({
482
482
  className: e,
483
483
  ...t
484
484
  }) {
@@ -545,7 +545,7 @@ function K({
545
545
  }
546
546
  );
547
547
  }
548
- function Na({
548
+ function ya({
549
549
  className: e,
550
550
  children: t,
551
551
  checked: o,
@@ -568,7 +568,7 @@ function Na({
568
568
  }
569
569
  );
570
570
  }
571
- function ka({
571
+ function Na({
572
572
  ...e
573
573
  }) {
574
574
  return /* @__PURE__ */ a(
@@ -579,7 +579,7 @@ function ka({
579
579
  }
580
580
  );
581
581
  }
582
- function za({
582
+ function ka({
583
583
  className: e,
584
584
  children: t,
585
585
  ...o
@@ -600,7 +600,7 @@ function za({
600
600
  }
601
601
  );
602
602
  }
603
- function Ca({
603
+ function za({
604
604
  className: e,
605
605
  inset: t,
606
606
  ...o
@@ -618,7 +618,7 @@ function Ca({
618
618
  }
619
619
  );
620
620
  }
621
- function Sa({
621
+ function Ca({
622
622
  className: e,
623
623
  ...t
624
624
  }) {
@@ -631,7 +631,7 @@ function Sa({
631
631
  }
632
632
  );
633
633
  }
634
- function Ta({
634
+ function Sa({
635
635
  className: e,
636
636
  ...t
637
637
  }) {
@@ -647,12 +647,12 @@ function Ta({
647
647
  }
648
648
  );
649
649
  }
650
- function _a({
650
+ function Ta({
651
651
  ...e
652
652
  }) {
653
653
  return /* @__PURE__ */ a(v.Sub, { "data-slot": "dropdown-menu-sub", ...e });
654
654
  }
655
- function Da({
655
+ function _a({
656
656
  className: e,
657
657
  inset: t,
658
658
  children: o,
@@ -675,7 +675,7 @@ function Da({
675
675
  }
676
676
  );
677
677
  }
678
- function Ma({
678
+ function Da({
679
679
  className: e,
680
680
  ...t
681
681
  }) {
@@ -707,7 +707,7 @@ function Ue({ className: e, type: t, ...o }) {
707
707
  }
708
708
  );
709
709
  }
710
- function Ia({ className: e, ...t }) {
710
+ function Ma({ className: e, ...t }) {
711
711
  return /* @__PURE__ */ a(
712
712
  "textarea",
713
713
  {
@@ -722,7 +722,7 @@ function Ia({ className: e, ...t }) {
722
722
  }
723
723
  );
724
724
  }
725
- function Pa({
725
+ function Ia({
726
726
  className: e,
727
727
  ...t
728
728
  }) {
@@ -752,7 +752,7 @@ function Pa({
752
752
  }
753
753
  );
754
754
  }
755
- function Ra({
755
+ function Pa({
756
756
  className: e,
757
757
  ...t
758
758
  }) {
@@ -768,7 +768,7 @@ function Ra({
768
768
  }
769
769
  );
770
770
  }
771
- function Aa({ className: e, ...t }) {
771
+ function Ra({ className: e, ...t }) {
772
772
  return /* @__PURE__ */ a(
773
773
  "nav",
774
774
  {
@@ -780,7 +780,7 @@ function Aa({ className: e, ...t }) {
780
780
  }
781
781
  );
782
782
  }
783
- function La({
783
+ function Aa({
784
784
  className: e,
785
785
  ...t
786
786
  }) {
@@ -793,7 +793,7 @@ function La({
793
793
  }
794
794
  );
795
795
  }
796
- function Ea({ ...e }) {
796
+ function La({ ...e }) {
797
797
  return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
798
798
  }
799
799
  function de({
@@ -819,7 +819,7 @@ function de({
819
819
  }
820
820
  );
821
821
  }
822
- function ja({
822
+ function Ea({
823
823
  className: e,
824
824
  ...t
825
825
  }) {
@@ -837,7 +837,7 @@ function ja({
837
837
  }
838
838
  );
839
839
  }
840
- function Ba({
840
+ function ja({
841
841
  className: e,
842
842
  ...t
843
843
  }) {
@@ -855,7 +855,7 @@ function Ba({
855
855
  }
856
856
  );
857
857
  }
858
- function Oa({
858
+ function Ba({
859
859
  className: e,
860
860
  ...t
861
861
  }) {
@@ -913,7 +913,7 @@ function ae({ className: e, ...t }) {
913
913
  }
914
914
  );
915
915
  }
916
- const $a = ({ ...e }) => {
916
+ const Oa = ({ ...e }) => {
917
917
  const { theme: t = "system" } = Ee();
918
918
  return /* @__PURE__ */ a(
919
919
  je,
@@ -929,7 +929,7 @@ const $a = ({ ...e }) => {
929
929
  }
930
930
  );
931
931
  };
932
- function Va({
932
+ function $a({
933
933
  rowCount: e,
934
934
  rowHeight: t = 48,
935
935
  height: o = 400,
@@ -939,18 +939,18 @@ function Va({
939
939
  return /* @__PURE__ */ a(
940
940
  Be,
941
941
  {
942
- className: r("w-full relative block", n),
942
+ className: r("w-full", n),
943
943
  height: o,
944
944
  itemCount: e,
945
945
  itemSize: t,
946
946
  width: "100%",
947
947
  outerElementType: Ye,
948
948
  innerElementType: xe,
949
- children: ({ index: d, style: u }) => /* @__PURE__ */ a(Je, { style: u, children: s(d, u) }, d)
949
+ children: ({ index: d, style: u }) => s(d, u)
950
950
  }
951
951
  );
952
952
  }
953
- function Ga({ className: e, ...t }) {
953
+ function Va({ className: e, ...t }) {
954
954
  return /* @__PURE__ */ a(
955
955
  "div",
956
956
  {
@@ -967,7 +967,7 @@ function Ga({ className: e, ...t }) {
967
967
  }
968
968
  );
969
969
  }
970
- function Ha({ className: e, ...t }) {
970
+ function Ga({ className: e, ...t }) {
971
971
  return /* @__PURE__ */ a(
972
972
  "thead",
973
973
  {
@@ -987,13 +987,13 @@ function Ye({ className: e, ...t }) {
987
987
  }
988
988
  );
989
989
  }
990
- function Je({ className: e, style: t, ...o }) {
990
+ function Ha({ className: e, style: t, ...o }) {
991
991
  return /* @__PURE__ */ a(
992
992
  "tr",
993
993
  {
994
994
  "data-slot": "table-row",
995
995
  className: r(
996
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors flex items-center",
996
+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
997
997
  e
998
998
  ),
999
999
  style: t,
@@ -1003,20 +1003,19 @@ function Je({ className: e, style: t, ...o }) {
1003
1003
  }
1004
1004
  function Fa({ className: e, ...t }) {
1005
1005
  const { icon: o, ...n } = t, { children: s } = n;
1006
- return /* @__PURE__ */ i(
1006
+ return /* @__PURE__ */ a(
1007
1007
  "th",
1008
1008
  {
1009
1009
  "data-slot": "table-head",
1010
1010
  className: r(
1011
- o && "gap-2",
1012
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-full flex items-center",
1011
+ "text-foreground h-10 px-4 py-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-fit max-w-[500px] whitespace-nowrap overflow-hidden",
1013
1012
  e
1014
1013
  ),
1015
1014
  ...n,
1016
- children: [
1015
+ children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2 w-fit", children: [
1017
1016
  o,
1018
- s
1019
- ]
1017
+ /* @__PURE__ */ a("span", { className: "truncate", children: s })
1018
+ ] })
1020
1019
  }
1021
1020
  );
1022
1021
  }
@@ -1026,7 +1025,7 @@ function Ka({ className: e, ...t }) {
1026
1025
  {
1027
1026
  "data-slot": "table-cell",
1028
1027
  className: r(
1029
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-full flex items-center",
1028
+ "px-4 py-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] max-w-[500px] min-w-0 whitespace-nowrap overflow-hidden",
1030
1029
  e
1031
1030
  ),
1032
1031
  ...t
@@ -1117,17 +1116,17 @@ function le({
1117
1116
  }
1118
1117
  );
1119
1118
  }
1120
- function Qe({
1119
+ function Je({
1121
1120
  ...e
1122
1121
  }) {
1123
1122
  return /* @__PURE__ */ a(le, { children: /* @__PURE__ */ a(L.Root, { "data-slot": "tooltip", ...e }) });
1124
1123
  }
1125
- function Ze({
1124
+ function Qe({
1126
1125
  ...e
1127
1126
  }) {
1128
1127
  return /* @__PURE__ */ a(L.Trigger, { "data-slot": "tooltip-trigger", ...e });
1129
1128
  }
1130
- function et({
1129
+ function Ze({
1131
1130
  className: e,
1132
1131
  sideOffset: t = 0,
1133
1132
  children: o,
@@ -1230,12 +1229,12 @@ function or({
1230
1229
  }) {
1231
1230
  return /* @__PURE__ */ a(b.Trigger, { "data-slot": "dialog-trigger", ...e });
1232
1231
  }
1233
- function tt({
1232
+ function et({
1234
1233
  ...e
1235
1234
  }) {
1236
1235
  return /* @__PURE__ */ a(b.Portal, { "data-slot": "dialog-portal", ...e });
1237
1236
  }
1238
- function at({
1237
+ function tt({
1239
1238
  className: e,
1240
1239
  ...t
1241
1240
  }) {
@@ -1257,8 +1256,8 @@ function nr({
1257
1256
  showCloseButton: o = !0,
1258
1257
  ...n
1259
1258
  }) {
1260
- return /* @__PURE__ */ i(tt, { "data-slot": "dialog-portal", children: [
1261
- /* @__PURE__ */ a(at, {}),
1259
+ return /* @__PURE__ */ i(et, { "data-slot": "dialog-portal", children: [
1260
+ /* @__PURE__ */ a(tt, {}),
1262
1261
  /* @__PURE__ */ i(
1263
1262
  b.Content,
1264
1263
  {
@@ -1335,7 +1334,7 @@ function lr({
1335
1334
  }
1336
1335
  );
1337
1336
  }
1338
- function rt({
1337
+ function at({
1339
1338
  className: e,
1340
1339
  ...t
1341
1340
  }) {
@@ -1351,7 +1350,7 @@ function rt({
1351
1350
  }
1352
1351
  );
1353
1352
  }
1354
- function ot({
1353
+ function rt({
1355
1354
  className: e,
1356
1355
  ...t
1357
1356
  }) {
@@ -1377,7 +1376,7 @@ function ot({
1377
1376
  }
1378
1377
  );
1379
1378
  }
1380
- function nt({
1379
+ function ot({
1381
1380
  className: e,
1382
1381
  ...t
1383
1382
  }) {
@@ -1393,7 +1392,7 @@ function nt({
1393
1392
  }
1394
1393
  );
1395
1394
  }
1396
- function it({
1395
+ function nt({
1397
1396
  ...e
1398
1397
  }) {
1399
1398
  return /* @__PURE__ */ a(
@@ -1405,7 +1404,7 @@ function it({
1405
1404
  }
1406
1405
  );
1407
1406
  }
1408
- function st({
1407
+ function it({
1409
1408
  className: e,
1410
1409
  ...t
1411
1410
  }) {
@@ -1421,7 +1420,7 @@ function st({
1421
1420
  }
1422
1421
  );
1423
1422
  }
1424
- function dt({
1423
+ function st({
1425
1424
  className: e,
1426
1425
  ...t
1427
1426
  }) {
@@ -1493,7 +1492,7 @@ function pr({
1493
1492
  position: o,
1494
1493
  ...n,
1495
1494
  children: [
1496
- /* @__PURE__ */ a(lt, {}),
1495
+ /* @__PURE__ */ a(dt, {}),
1497
1496
  /* @__PURE__ */ a(
1498
1497
  w.Viewport,
1499
1498
  {
@@ -1504,7 +1503,7 @@ function pr({
1504
1503
  children: t
1505
1504
  }
1506
1505
  ),
1507
- /* @__PURE__ */ a(ct, {})
1506
+ /* @__PURE__ */ a(lt, {})
1508
1507
  ]
1509
1508
  }
1510
1509
  ) });
@@ -1543,7 +1542,7 @@ function br({
1543
1542
  }
1544
1543
  );
1545
1544
  }
1546
- function lt({
1545
+ function dt({
1547
1546
  className: e,
1548
1547
  ...t
1549
1548
  }) {
@@ -1560,7 +1559,7 @@ function lt({
1560
1559
  }
1561
1560
  );
1562
1561
  }
1563
- function ct({
1562
+ function lt({
1564
1563
  className: e,
1565
1564
  ...t
1566
1565
  }) {
@@ -1638,9 +1637,9 @@ function hr({
1638
1637
  ]
1639
1638
  }
1640
1639
  ) }),
1641
- /* @__PURE__ */ a(Xe, { className: r("p-0", u), side: l, align: T, children: /* @__PURE__ */ i(rt, { children: [
1640
+ /* @__PURE__ */ a(Xe, { className: r("p-0", u), side: l, align: T, children: /* @__PURE__ */ i(at, { children: [
1642
1641
  /* @__PURE__ */ a(
1643
- ot,
1642
+ rt,
1644
1643
  {
1645
1644
  placeholder: o,
1646
1645
  value: P,
@@ -1648,15 +1647,15 @@ function hr({
1648
1647
  ..._
1649
1648
  }
1650
1649
  ),
1651
- /* @__PURE__ */ i(nt, { children: [
1652
- /* @__PURE__ */ i(it, { children: [
1650
+ /* @__PURE__ */ i(ot, { children: [
1651
+ /* @__PURE__ */ i(nt, { children: [
1653
1652
  "No ",
1654
1653
  z?.toLowerCase() ?? "option",
1655
1654
  " found."
1656
1655
  ] }),
1657
- /* @__PURE__ */ i(st, { children: [
1656
+ /* @__PURE__ */ i(it, { children: [
1658
1657
  be.map((x) => /* @__PURE__ */ i(
1659
- dt,
1658
+ st,
1660
1659
  {
1661
1660
  value: x.value,
1662
1661
  onSelect: (ve) => he(ve),
@@ -1684,7 +1683,7 @@ function hr({
1684
1683
  ] });
1685
1684
  }
1686
1685
  const U = 768;
1687
- function ut() {
1686
+ function ct() {
1688
1687
  const [e, t] = g.useState(void 0);
1689
1688
  return g.useEffect(() => {
1690
1689
  const o = window.matchMedia(`(max-width: ${U - 1}px)`), n = () => {
@@ -1713,7 +1712,7 @@ function ce({
1713
1712
  }
1714
1713
  );
1715
1714
  }
1716
- function mt({ ...e }) {
1715
+ function ut({ ...e }) {
1717
1716
  return /* @__PURE__ */ a(b.Root, { "data-slot": "sheet", ...e });
1718
1717
  }
1719
1718
  function vr({
@@ -1721,12 +1720,12 @@ function vr({
1721
1720
  }) {
1722
1721
  return /* @__PURE__ */ a(b.Trigger, { "data-slot": "sheet-trigger", ...e });
1723
1722
  }
1724
- function ft({
1723
+ function mt({
1725
1724
  ...e
1726
1725
  }) {
1727
1726
  return /* @__PURE__ */ a(b.Portal, { "data-slot": "sheet-portal", ...e });
1728
1727
  }
1729
- function pt({
1728
+ function ft({
1730
1729
  className: e,
1731
1730
  ...t
1732
1731
  }) {
@@ -1742,14 +1741,14 @@ function pt({
1742
1741
  }
1743
1742
  );
1744
1743
  }
1745
- function gt({
1744
+ function pt({
1746
1745
  className: e,
1747
1746
  children: t,
1748
1747
  side: o = "right",
1749
1748
  ...n
1750
1749
  }) {
1751
- return /* @__PURE__ */ i(ft, { children: [
1752
- /* @__PURE__ */ a(pt, {}),
1750
+ return /* @__PURE__ */ i(mt, { children: [
1751
+ /* @__PURE__ */ a(ft, {}),
1753
1752
  /* @__PURE__ */ i(
1754
1753
  b.Content,
1755
1754
  {
@@ -1774,7 +1773,7 @@ function gt({
1774
1773
  )
1775
1774
  ] });
1776
1775
  }
1777
- function bt({ className: e, ...t }) {
1776
+ function gt({ className: e, ...t }) {
1778
1777
  return /* @__PURE__ */ a(
1779
1778
  "div",
1780
1779
  {
@@ -1794,7 +1793,7 @@ function xr({ className: e, ...t }) {
1794
1793
  }
1795
1794
  );
1796
1795
  }
1797
- function ht({
1796
+ function bt({
1798
1797
  className: e,
1799
1798
  ...t
1800
1799
  }) {
@@ -1807,7 +1806,7 @@ function ht({
1807
1806
  }
1808
1807
  );
1809
1808
  }
1810
- function vt({
1809
+ function ht({
1811
1810
  className: e,
1812
1811
  ...t
1813
1812
  }) {
@@ -1820,7 +1819,7 @@ function vt({
1820
1819
  }
1821
1820
  );
1822
1821
  }
1823
- const xt = "sidebar_state", wt = 3600 * 24 * 7, yt = "16rem", Nt = "18rem", kt = "3rem", zt = "b", ue = g.createContext(null);
1822
+ const vt = "sidebar_state", xt = 3600 * 24 * 7, wt = "16rem", yt = "18rem", Nt = "3rem", kt = "b", ue = g.createContext(null);
1824
1823
  function F() {
1825
1824
  const e = g.useContext(ue);
1826
1825
  if (!e)
@@ -1836,16 +1835,16 @@ function wr({
1836
1835
  children: d,
1837
1836
  ...u
1838
1837
  }) {
1839
- const c = ut(), [f, l] = g.useState(!1), [T, M] = g.useState(e), z = t ?? T, _ = g.useCallback(
1838
+ const c = ct(), [f, l] = g.useState(!1), [T, M] = g.useState(e), z = t ?? T, _ = g.useCallback(
1840
1839
  (p) => {
1841
1840
  const m = typeof p == "function" ? p(z) : p;
1842
- o ? o(m) : M(m), document.cookie = `${xt}=${m}; path=/; max-age=${wt}`;
1841
+ o ? o(m) : M(m), document.cookie = `${vt}=${m}; path=/; max-age=${xt}`;
1843
1842
  },
1844
1843
  [o, z]
1845
1844
  ), C = g.useCallback(() => c ? l((p) => !p) : _((p) => !p), [c, _, l]);
1846
1845
  g.useEffect(() => {
1847
1846
  const p = (m) => {
1848
- m.key === zt && (m.metaKey || m.ctrlKey) && (m.preventDefault(), C());
1847
+ m.key === kt && (m.metaKey || m.ctrlKey) && (m.preventDefault(), C());
1849
1848
  };
1850
1849
  return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
1851
1850
  }, [C]);
@@ -1866,8 +1865,8 @@ function wr({
1866
1865
  {
1867
1866
  "data-slot": "sidebar-wrapper",
1868
1867
  style: {
1869
- "--sidebar-width": yt,
1870
- "--sidebar-width-icon": kt,
1868
+ "--sidebar-width": wt,
1869
+ "--sidebar-width-icon": Nt,
1871
1870
  ...s
1872
1871
  },
1873
1872
  className: r(
@@ -1899,21 +1898,21 @@ function yr({
1899
1898
  ...d,
1900
1899
  children: s
1901
1900
  }
1902
- ) : u ? /* @__PURE__ */ a(mt, { open: f, onOpenChange: l, ...d, children: /* @__PURE__ */ i(
1903
- gt,
1901
+ ) : u ? /* @__PURE__ */ a(ut, { open: f, onOpenChange: l, ...d, children: /* @__PURE__ */ i(
1902
+ pt,
1904
1903
  {
1905
1904
  "data-sidebar": "sidebar",
1906
1905
  "data-slot": "sidebar",
1907
1906
  "data-mobile": "true",
1908
1907
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
1909
1908
  style: {
1910
- "--sidebar-width": Nt
1909
+ "--sidebar-width": yt
1911
1910
  },
1912
1911
  side: e,
1913
1912
  children: [
1914
- /* @__PURE__ */ i(bt, { className: "sr-only", children: [
1915
- /* @__PURE__ */ a(ht, { children: "Sidebar" }),
1916
- /* @__PURE__ */ a(vt, { children: "Displays the mobile sidebar." })
1913
+ /* @__PURE__ */ i(gt, { className: "sr-only", children: [
1914
+ /* @__PURE__ */ a(bt, { children: "Sidebar" }),
1915
+ /* @__PURE__ */ a(ht, { children: "Displays the mobile sidebar." })
1917
1916
  ] }),
1918
1917
  /* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: s })
1919
1918
  ]
@@ -2185,7 +2184,7 @@ function Lr({ className: e, ...t }) {
2185
2184
  }
2186
2185
  );
2187
2186
  }
2188
- const Ct = O(
2187
+ const zt = O(
2189
2188
  "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
2190
2189
  {
2191
2190
  variants: {
@@ -2221,16 +2220,16 @@ function Er({
2221
2220
  "data-sidebar": "menu-button",
2222
2221
  "data-size": n,
2223
2222
  "data-active": t,
2224
- className: r(Ct({ variant: o, size: n }), d),
2223
+ className: r(zt({ variant: o, size: n }), d),
2225
2224
  ...u
2226
2225
  }
2227
2226
  );
2228
2227
  return s ? (typeof s == "string" && (s = {
2229
2228
  children: s
2230
- }), /* @__PURE__ */ i(Qe, { children: [
2231
- /* @__PURE__ */ a(Ze, { asChild: !0, children: T }),
2229
+ }), /* @__PURE__ */ i(Je, { children: [
2230
+ /* @__PURE__ */ a(Qe, { asChild: !0, children: T }),
2232
2231
  /* @__PURE__ */ a(
2233
- et,
2232
+ Ze,
2234
2233
  {
2235
2234
  side: "right",
2236
2235
  align: "center",
@@ -2378,7 +2377,7 @@ function Gr({
2378
2377
  }
2379
2378
  );
2380
2379
  }
2381
- function St({
2380
+ function Ct({
2382
2381
  className: e,
2383
2382
  children: t,
2384
2383
  ...o
@@ -2398,13 +2397,13 @@ function St({
2398
2397
  children: t
2399
2398
  }
2400
2399
  ),
2401
- /* @__PURE__ */ a(Tt, {}),
2400
+ /* @__PURE__ */ a(St, {}),
2402
2401
  /* @__PURE__ */ a(B.Corner, {})
2403
2402
  ]
2404
2403
  }
2405
2404
  );
2406
2405
  }
2407
- function Tt({
2406
+ function St({
2408
2407
  className: e,
2409
2408
  orientation: t = "vertical",
2410
2409
  ...o
@@ -2529,7 +2528,7 @@ const Ur = ({
2529
2528
  }
2530
2529
  return p(e, t), N;
2531
2530
  }, [e, t, n]), { ref: _, width: C, height: I } = $e();
2532
- return /* @__PURE__ */ a("div", { ref: _, className: r("overflow-hidden", u), children: /* @__PURE__ */ a(St, { style: { width: C, height: I }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2531
+ return /* @__PURE__ */ a("div", { ref: _, className: r("overflow-hidden", u), children: /* @__PURE__ */ a(Ct, { style: { width: C, height: I }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2533
2532
  me,
2534
2533
  {
2535
2534
  data: e,
@@ -2735,7 +2734,7 @@ function eo({
2735
2734
  }
2736
2735
  );
2737
2736
  }
2738
- const _t = O(
2737
+ const Tt = O(
2739
2738
  "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
2740
2739
  {
2741
2740
  variants: {
@@ -2759,7 +2758,7 @@ function to({
2759
2758
  {
2760
2759
  "data-slot": "alert",
2761
2760
  role: "alert",
2762
- className: r(_t({ variant: t }), e),
2761
+ className: r(Tt({ variant: t }), e),
2763
2762
  ...o
2764
2763
  }
2765
2764
  );
@@ -2855,12 +2854,12 @@ function so({
2855
2854
  }) {
2856
2855
  return /* @__PURE__ */ a(S.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
2857
2856
  }
2858
- function Dt({
2857
+ function _t({
2859
2858
  ...e
2860
2859
  }) {
2861
2860
  return /* @__PURE__ */ a(S.Portal, { "data-slot": "alert-dialog-portal", ...e });
2862
2861
  }
2863
- function Mt({
2862
+ function Dt({
2864
2863
  className: e,
2865
2864
  ...t
2866
2865
  }) {
@@ -2880,8 +2879,8 @@ function lo({
2880
2879
  className: e,
2881
2880
  ...t
2882
2881
  }) {
2883
- return /* @__PURE__ */ i(Dt, { children: [
2884
- /* @__PURE__ */ a(Mt, {}),
2882
+ return /* @__PURE__ */ i(_t, { children: [
2883
+ /* @__PURE__ */ a(Dt, {}),
2885
2884
  /* @__PURE__ */ a(
2886
2885
  S.Content,
2887
2886
  {
@@ -3020,10 +3019,10 @@ const oe = O(
3020
3019
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Loading..." })
3021
3020
  ]
3022
3021
  }
3023
- ), It = {
3022
+ ), Mt = {
3024
3023
  theme: "system",
3025
3024
  setTheme: () => null
3026
- }, ge = we(It);
3025
+ }, ge = we(Mt);
3027
3026
  function ho({
3028
3027
  children: e,
3029
3028
  defaultTheme: t = "system",
@@ -3050,16 +3049,16 @@ function ho({
3050
3049
  };
3051
3050
  return /* @__PURE__ */ a(ge.Provider, { ...n, value: u, children: e });
3052
3051
  }
3053
- const Pt = () => {
3052
+ const It = () => {
3054
3053
  const e = ke(ge);
3055
3054
  if (e === void 0)
3056
3055
  throw new Error("useTheme must be used within a ThemeProvider");
3057
3056
  return e;
3058
3057
  };
3059
3058
  function vo() {
3060
- const { setTheme: e } = Pt();
3059
+ const { setTheme: e } = It();
3061
3060
  return /* @__PURE__ */ i(He, { children: [
3062
- /* @__PURE__ */ a(Fe, { children: /* @__PURE__ */ i(J, { variant: "outline", size: "icon", children: [
3061
+ /* @__PURE__ */ a(Fe, { children: /* @__PURE__ */ i(J, { variant: "outline", size: "icon", className: "relative", children: [
3063
3062
  /* @__PURE__ */ a(Q, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3064
3063
  /* @__PURE__ */ a(Z, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3065
3064
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
@@ -3097,7 +3096,7 @@ export {
3097
3096
  mo as AlertDialogTitle,
3098
3097
  so as AlertDialogTrigger,
3099
3098
  ao as AlertTitle,
3100
- qt as Badge,
3099
+ Wt as Badge,
3101
3100
  Ja as Breadcrumb,
3102
3101
  Za as BreadcrumbItem,
3103
3102
  er as BreadcrumbLink,
@@ -3105,32 +3104,32 @@ export {
3105
3104
  tr as BreadcrumbPage,
3106
3105
  ar as BreadcrumbSeparator,
3107
3106
  J as Button,
3108
- Xt as Card,
3109
- Zt as CardContent,
3110
- Qt as CardDescription,
3111
- ea as CardFooter,
3112
- Yt as CardHeader,
3113
- Jt as CardTitle,
3107
+ qt as Card,
3108
+ Qt as CardContent,
3109
+ Jt as CardDescription,
3110
+ Zt as CardFooter,
3111
+ Xt as CardHeader,
3112
+ Yt as CardTitle,
3114
3113
  Kr as Checkbox,
3115
- rt as Command,
3116
- it as CommandEmpty,
3117
- st as CommandGroup,
3118
- ot as CommandInput,
3119
- dt as CommandItem,
3120
- nt as CommandList,
3121
- ta as ContextMenu,
3122
- la as ContextMenuCheckboxItem,
3123
- sa as ContextMenuContent,
3124
- da as ContextMenuItem,
3125
- ua as ContextMenuLabel,
3126
- oa as ContextMenuRadioGroup,
3127
- ca as ContextMenuRadioItem,
3128
- ma as ContextMenuSeparator,
3129
- fa as ContextMenuShortcut,
3130
- ra as ContextMenuSub,
3131
- ia as ContextMenuSubContent,
3132
- na as ContextMenuSubTrigger,
3133
- aa as ContextMenuTrigger,
3114
+ at as Command,
3115
+ nt as CommandEmpty,
3116
+ it as CommandGroup,
3117
+ rt as CommandInput,
3118
+ st as CommandItem,
3119
+ ot as CommandList,
3120
+ ea as ContextMenu,
3121
+ da as ContextMenuCheckboxItem,
3122
+ ia as ContextMenuContent,
3123
+ sa as ContextMenuItem,
3124
+ ca as ContextMenuLabel,
3125
+ ra as ContextMenuRadioGroup,
3126
+ la as ContextMenuRadioItem,
3127
+ ua as ContextMenuSeparator,
3128
+ ma as ContextMenuShortcut,
3129
+ aa as ContextMenuSub,
3130
+ na as ContextMenuSubContent,
3131
+ oa as ContextMenuSubTrigger,
3132
+ ta as ContextMenuTrigger,
3134
3133
  rr as Dialog,
3135
3134
  nr as DialogContent,
3136
3135
  lr as DialogDescription,
@@ -3138,47 +3137,47 @@ export {
3138
3137
  ir as DialogHeader,
3139
3138
  dr as DialogTitle,
3140
3139
  or as DialogTrigger,
3141
- pa as Drawer,
3142
- ba as DrawerClose,
3143
- ha as DrawerContent,
3144
- ya as DrawerDescription,
3145
- xa as DrawerFooter,
3146
- va as DrawerHeader,
3147
- wa as DrawerTitle,
3148
- ga as DrawerTrigger,
3140
+ fa as Drawer,
3141
+ ga as DrawerClose,
3142
+ ba as DrawerContent,
3143
+ wa as DrawerDescription,
3144
+ va as DrawerFooter,
3145
+ ha as DrawerHeader,
3146
+ xa as DrawerTitle,
3147
+ pa as DrawerTrigger,
3149
3148
  He as DropdownMenu,
3150
- Na as DropdownMenuCheckboxItem,
3149
+ ya as DropdownMenuCheckboxItem,
3151
3150
  Ke as DropdownMenuContent,
3152
3151
  K as DropdownMenuItem,
3153
- Ca as DropdownMenuLabel,
3154
- ka as DropdownMenuRadioGroup,
3155
- za as DropdownMenuRadioItem,
3156
- Sa as DropdownMenuSeparator,
3157
- Ta as DropdownMenuShortcut,
3158
- _a as DropdownMenuSub,
3159
- Ma as DropdownMenuSubContent,
3160
- Da as DropdownMenuSubTrigger,
3152
+ za as DropdownMenuLabel,
3153
+ Na as DropdownMenuRadioGroup,
3154
+ ka as DropdownMenuRadioItem,
3155
+ Ca as DropdownMenuSeparator,
3156
+ Sa as DropdownMenuShortcut,
3157
+ Ta as DropdownMenuSub,
3158
+ Da as DropdownMenuSubContent,
3159
+ _a as DropdownMenuSubTrigger,
3161
3160
  Fe as DropdownMenuTrigger,
3162
3161
  Ur as EmptyState,
3163
3162
  oo as Icon,
3164
3163
  Ue as Input,
3165
- Ra as Label,
3164
+ Pa as Label,
3166
3165
  vo as ModeToggle,
3167
- Aa as Pagination,
3168
- La as PaginationContent,
3169
- Oa as PaginationEllipsis,
3170
- Ea as PaginationItem,
3166
+ Ra as Pagination,
3167
+ Aa as PaginationContent,
3168
+ Ba as PaginationEllipsis,
3169
+ La as PaginationItem,
3171
3170
  de as PaginationLink,
3172
- Ba as PaginationNext,
3173
- ja as PaginationPrevious,
3171
+ ja as PaginationNext,
3172
+ Ea as PaginationPrevious,
3174
3173
  We as Popover,
3175
3174
  Xe as PopoverContent,
3176
3175
  qe as PopoverTrigger,
3177
3176
  eo as ResizableHandle,
3178
3177
  Zr as ResizablePanel,
3179
3178
  Qr as ResizablePanelGroup,
3180
- St as ScrollArea,
3181
- Pa as SearchInput,
3179
+ Ct as ScrollArea,
3180
+ Ia as SearchInput,
3182
3181
  hr as SearchSelect,
3183
3182
  cr as Select,
3184
3183
  pr as SelectContent,
@@ -3188,12 +3187,12 @@ export {
3188
3187
  fr as SelectTrigger,
3189
3188
  mr as SelectValue,
3190
3189
  ce as Separator,
3191
- mt as Sheet,
3192
- gt as SheetContent,
3193
- vt as SheetDescription,
3190
+ ut as Sheet,
3191
+ pt as SheetContent,
3192
+ ht as SheetDescription,
3194
3193
  xr as SheetFooter,
3195
- bt as SheetHeader,
3196
- ht as SheetTitle,
3194
+ gt as SheetHeader,
3195
+ bt as SheetTitle,
3197
3196
  vr as SheetTrigger,
3198
3197
  yr as Sidebar,
3199
3198
  Dr as SidebarContent,
@@ -3223,30 +3222,30 @@ export {
3223
3222
  Fr as StackList,
3224
3223
  Hr as StackListItem,
3225
3224
  no as Switch,
3226
- Ga as Table,
3225
+ Va as Table,
3227
3226
  Ye as TableBody,
3228
3227
  Ua as TableCaption,
3229
3228
  Ka as TableCell,
3230
3229
  Fa as TableHead,
3231
- Ha as TableHeader,
3232
- Je as TableRow,
3230
+ Ga as TableHeader,
3231
+ Ha as TableRow,
3233
3232
  Wa as Tabs,
3234
3233
  Ya as TabsContent,
3235
3234
  qa as TabsList,
3236
3235
  Xa as TabsTrigger,
3237
- Ia as TextArea,
3236
+ Ma as TextArea,
3238
3237
  ho as ThemeProvider,
3239
- $a as Toaster,
3240
- Qe as Tooltip,
3241
- et as TooltipContent,
3238
+ Oa as Toaster,
3239
+ Je as Tooltip,
3240
+ Ze as TooltipContent,
3242
3241
  le as TooltipProvider,
3243
- Ze as TooltipTrigger,
3242
+ Qe as TooltipTrigger,
3244
3243
  Wr as Tree,
3245
- Va as VirtualizedTableBody,
3244
+ $a as VirtualizedTableBody,
3246
3245
  r as cn,
3247
- Wt as formatDate,
3248
- Ut as toTitleCase,
3246
+ Ut as formatDate,
3247
+ Kt as toTitleCase,
3249
3248
  yo as toast,
3250
3249
  F as useSidebar,
3251
- Pt as useTheme
3250
+ It as useTheme
3252
3251
  };