@dimasbaguspm/versaur 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/js/forms/index.js +1 -1
  2. package/dist/js/{image-rectangle-CCvXv24a.js → image-rectangle-BwT5taeR.js} +694 -634
  3. package/dist/js/index.js +63 -61
  4. package/dist/js/layouts/index.js +1 -1
  5. package/dist/js/navigation/index.js +1 -1
  6. package/dist/js/overlays/index.js +2 -2
  7. package/dist/js/primitive/index.js +27 -25
  8. package/dist/js/{tabs-BQs53hHL.js → tabs-FDdFo4WV.js} +1 -1
  9. package/dist/js/{time-picker-input-Disd231b.js → time-picker-input-DMNSwm-p.js} +854 -642
  10. package/dist/js/tooltip-BGJUYNL0.js +625 -0
  11. package/dist/js/{top-bar-DMBbEIlR.js → top-bar-ChNgZEQx.js} +157 -187
  12. package/dist/types/forms/textarea-input/index.d.ts +1 -1
  13. package/dist/types/forms/textarea-input/textarea-input.atoms.d.ts +53 -0
  14. package/dist/types/forms/textarea-input/textarea-input.d.ts +1 -0
  15. package/dist/types/forms/textarea-input/types.d.ts +28 -0
  16. package/dist/types/forms/textarea-input/use-textarea-formatting.d.ts +21 -0
  17. package/dist/types/overlays/drawer/drawer.atoms.d.ts +2 -7
  18. package/dist/types/overlays/drawer/drawer.d.ts +1 -1
  19. package/dist/types/overlays/drawer/types.d.ts +1 -11
  20. package/dist/types/overlays/modal/modal.atoms.d.ts +1 -5
  21. package/dist/types/overlays/modal/types.d.ts +1 -2
  22. package/dist/types/primitive/formatted-text/formatted-text.d.ts +10 -0
  23. package/dist/types/primitive/formatted-text/index.d.ts +3 -0
  24. package/dist/types/primitive/formatted-text/types.d.ts +19 -0
  25. package/dist/types/primitive/heading/types.d.ts +9 -12
  26. package/dist/types/primitive/index.d.ts +1 -0
  27. package/dist/types/primitive/text/text.d.ts +6 -3
  28. package/dist/types/primitive/text/types.d.ts +10 -18
  29. package/dist/types/primitive/tile/tile.d.ts +7 -1
  30. package/dist/types/primitive/tile/types.d.ts +6 -1
  31. package/dist/utils/enforce-subpath-import.js +2 -0
  32. package/package.json +2 -1
  33. package/dist/js/tooltip-Dpx3TpR6.js +0 -693
@@ -1,12 +1,12 @@
1
1
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import * as j from "react";
3
- import { forwardRef as l, createContext as S, useContext as C, useState as w } from "react";
3
+ import { forwardRef as l, createContext as C, useContext as S, useState as w } from "react";
4
4
  import { c as n, a as d } from "./index-BDtz_hQY.js";
5
- import { n as x, I as N } from "./image-rectangle-CCvXv24a.js";
5
+ import { H as V, p as h, I as N } from "./image-rectangle-BwT5taeR.js";
6
6
  import "./snackbar-CTq4MLir.js";
7
- import { L as V } from "./skeleton-BRwIW26B.js";
8
- import { ChevronDown as z, ChevronRight as B, ChevronLeft as H } from "lucide-react";
9
- const T = n(
7
+ import { L as H } from "./skeleton-BRwIW26B.js";
8
+ import { ChevronDown as z, ChevronRight as B, ChevronLeft as T } from "lucide-react";
9
+ const P = n(
10
10
  [
11
11
  "h-screen w-full grid bg-background overflow-hidden",
12
12
  "grid-rows-[auto_1fr_auto]",
@@ -17,75 +17,75 @@ const T = n(
17
17
  variants: {},
18
18
  defaultVariants: {}
19
19
  }
20
- ), P = n(
21
- "[grid-area:top] z-30 sticky top-0 border-b border-border"
22
20
  ), A = n(
23
- "[grid-area:left] z-20 border-r border-border bg-white"
21
+ "[grid-area:top] z-30 sticky top-0 border-b border-border"
24
22
  ), _ = n(
25
- "[grid-area:right] z-20 border-l border-border bg-white"
23
+ "[grid-area:left] z-20 border-r border-border bg-white"
26
24
  ), I = n(
27
- "[grid-area:bottom] z-30 border-t border-border bg-white"
25
+ "[grid-area:right] z-20 border-l border-border bg-white"
28
26
  ), k = n(
27
+ "[grid-area:bottom] z-30 border-t border-border bg-white"
28
+ ), G = n(
29
29
  "[grid-area:main] overflow-y-auto min-h-0 [scrollbar-gutter:stable]"
30
- ), G = l(function({ children: t, className: e, ...a }, o) {
30
+ ), M = l(function({ children: t, className: e, ...a }, o) {
31
31
  return /* @__PURE__ */ s.jsx(
32
32
  "div",
33
33
  {
34
34
  ref: o,
35
- className: P({ className: e }),
35
+ className: A({ className: e }),
36
36
  ...a,
37
37
  children: t
38
38
  }
39
39
  );
40
- }), M = l(function({ children: t, className: e, ...a }, o) {
40
+ }), F = l(function({ children: t, className: e, ...a }, o) {
41
41
  return /* @__PURE__ */ s.jsx(
42
42
  "aside",
43
43
  {
44
44
  ref: o,
45
- className: A({ className: e }),
45
+ className: _({ className: e }),
46
46
  ...a,
47
47
  children: t
48
48
  }
49
49
  );
50
- }), F = l(function({ children: t, className: e, ...a }, o) {
50
+ }), O = l(function({ children: t, className: e, ...a }, o) {
51
51
  return /* @__PURE__ */ s.jsx(
52
52
  "aside",
53
53
  {
54
54
  ref: o,
55
- className: _({ className: e }),
55
+ className: I({ className: e }),
56
56
  ...a,
57
57
  children: t
58
58
  }
59
59
  );
60
- }), O = l(function({ children: t, className: e, ...a }, o) {
60
+ }), E = l(function({ children: t, className: e, ...a }, o) {
61
61
  return /* @__PURE__ */ s.jsx(
62
62
  "div",
63
63
  {
64
64
  ref: o,
65
- className: I({ className: e }),
65
+ className: k({ className: e }),
66
66
  ...a,
67
67
  children: t
68
68
  }
69
69
  );
70
- }), E = l(function({ children: t, className: e, ...a }, o) {
70
+ }), D = l(function({ children: t, className: e, ...a }, o) {
71
71
  return /* @__PURE__ */ s.jsx(
72
72
  "main",
73
73
  {
74
74
  ref: o,
75
- className: k({ className: e }),
75
+ className: G({ className: e }),
76
76
  ...a,
77
77
  children: t
78
78
  }
79
79
  );
80
80
  }), W = l(
81
- ({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("div", { ref: a, className: T({ className: t }), ...e, children: r })
82
- ), ta = Object.assign(W, {
83
- TopRegion: G,
84
- SideLeftRegion: M,
85
- SideRightRegion: F,
86
- BottomRegion: O,
87
- MainRegion: E
88
- }), D = n(
81
+ ({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("div", { ref: a, className: P({ className: t }), ...e, children: r })
82
+ ), sa = Object.assign(W, {
83
+ TopRegion: M,
84
+ SideLeftRegion: F,
85
+ SideRightRegion: O,
86
+ BottomRegion: E,
87
+ MainRegion: D
88
+ }), $ = n(
89
89
  "sticky bottom-0 w-full flex justify-around items-center bg-white z-40 safe-bottom gap-4 select-none px-8",
90
90
  {
91
91
  variants: {
@@ -107,7 +107,7 @@ const T = n(
107
107
  size: "md"
108
108
  }
109
109
  }
110
- ), $ = n(
110
+ ), q = n(
111
111
  "flex flex-col items-center justify-center gap-1",
112
112
  {
113
113
  variants: {
@@ -125,7 +125,7 @@ const T = n(
125
125
  as: "button"
126
126
  }
127
127
  }
128
- ), q = l(
128
+ ), J = l(
129
129
  ({
130
130
  as: r = "button",
131
131
  icon: t,
@@ -139,7 +139,7 @@ const T = n(
139
139
  {
140
140
  ref: u,
141
141
  "aria-current": a ? "page" : void 0,
142
- className: $({ active: a, className: o, as: r }),
142
+ className: q({ active: a, className: o, as: r }),
143
143
  ...c,
144
144
  children: [
145
145
  t && t,
@@ -148,7 +148,7 @@ const T = n(
148
148
  ]
149
149
  }
150
150
  )
151
- ), J = ({
151
+ ), K = ({
152
152
  children: r,
153
153
  variant: t = "primary",
154
154
  size: e = "md",
@@ -159,13 +159,13 @@ const T = n(
159
159
  {
160
160
  role: "navigation",
161
161
  "aria-label": "Bottom navigation",
162
- className: D({ variant: t, size: e, className: a }),
162
+ className: $({ variant: t, size: e, className: a }),
163
163
  ...o,
164
164
  children: r
165
165
  }
166
- ), sa = Object.assign(J, {
167
- Item: q
168
- }), K = n("flex items-center", {
166
+ ), ra = Object.assign(K, {
167
+ Item: J
168
+ }), Q = n("flex items-center", {
169
169
  variants: {
170
170
  orientation: {
171
171
  horizontal: "flex-row",
@@ -202,7 +202,7 @@ const T = n(
202
202
  fluid: !1,
203
203
  overlay: !1
204
204
  }
205
- }), ra = l(
205
+ }), oa = l(
206
206
  function({
207
207
  className: t,
208
208
  children: e,
@@ -219,7 +219,7 @@ const T = n(
219
219
  {
220
220
  ref: m,
221
221
  className: d(
222
- K({
222
+ Q({
223
223
  orientation: a,
224
224
  alignment: o,
225
225
  gap: i,
@@ -235,7 +235,7 @@ const T = n(
235
235
  }
236
236
  );
237
237
  }
238
- ), Q = n("flex items-center", {
238
+ ), U = n("flex items-center", {
239
239
  variants: {
240
240
  orientation: {
241
241
  horizontal: "flex-row",
@@ -272,7 +272,7 @@ const T = n(
272
272
  fluid: !1,
273
273
  overlay: !1
274
274
  }
275
- }), oa = l(
275
+ }), na = l(
276
276
  function({
277
277
  className: t,
278
278
  children: e,
@@ -289,7 +289,7 @@ const T = n(
289
289
  {
290
290
  ref: m,
291
291
  className: d(
292
- Q({
292
+ U({
293
293
  orientation: a,
294
294
  alignment: o,
295
295
  gap: i,
@@ -305,7 +305,7 @@ const T = n(
305
305
  }
306
306
  );
307
307
  }
308
- ), U = n("flex items-center", {
308
+ ), X = n("flex items-center", {
309
309
  variants: {
310
310
  orientation: {
311
311
  horizontal: "flex-row",
@@ -342,7 +342,7 @@ const T = n(
342
342
  fluid: !1,
343
343
  overlay: !1
344
344
  }
345
- }), na = l(
345
+ }), ia = l(
346
346
  function({
347
347
  className: t,
348
348
  children: e,
@@ -359,7 +359,7 @@ const T = n(
359
359
  {
360
360
  ref: m,
361
361
  className: d(
362
- U({
362
+ X({
363
363
  orientation: a,
364
364
  alignment: o,
365
365
  gap: i,
@@ -375,7 +375,7 @@ const T = n(
375
375
  }
376
376
  );
377
377
  }
378
- ), X = n("w-full mb-4"), Y = n("w-full mx-auto pt-4 md:pt-10", {
378
+ ), Y = n("w-full mb-4"), Z = n("w-full mx-auto pt-4 md:pt-10", {
379
379
  variants: {
380
380
  size: {
381
381
  fluid: "max-w-full",
@@ -386,7 +386,7 @@ const T = n(
386
386
  defaultVariants: {
387
387
  size: "fluid"
388
388
  }
389
- }), Z = n(
389
+ }), ee = n(
390
390
  "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4",
391
391
  {
392
392
  variants: {
@@ -400,7 +400,7 @@ const T = n(
400
400
  size: "fluid"
401
401
  }
402
402
  }
403
- ), ee = n("mb-4", {
403
+ ), ae = n("mb-4", {
404
404
  variants: {
405
405
  size: {
406
406
  fluid: "px-0",
@@ -411,99 +411,88 @@ const T = n(
411
411
  defaultVariants: {
412
412
  size: "fluid"
413
413
  }
414
- }), ae = n(
414
+ }), te = n(
415
415
  "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
416
- ), te = n("flex items-center gap-2 flex-wrap"), se = n(
416
+ ), se = n("flex items-center gap-2 flex-wrap"), re = n(
417
417
  "hidden md:flex flex-col sm:flex-row gap-2 sm:gap-3 w-full w-auto sm:ml-auto sm:shrink-0 [&>*]:w-full sm:[&>*]:w-auto"
418
- ), re = n("md:hidden"), oe = n(
418
+ ), oe = n("md:hidden"), ne = n(
419
419
  "w-full flex items-center py-0 overflow-x-auto"
420
- ), ne = l(
420
+ ), ie = l(
421
421
  ({ children: r, className: t, size: e = "fluid", ...a }, o) => /* @__PURE__ */ s.jsx(
422
422
  "div",
423
423
  {
424
424
  ref: o,
425
- className: d(Z({ size: e }), t),
425
+ className: d(ee({ size: e }), t),
426
426
  "data-versaur-page-header-top": !0,
427
427
  ...a,
428
428
  children: r
429
429
  }
430
430
  )
431
- ), ie = l(({ children: r, className: t, size: e = "fluid", ...a }, o) => /* @__PURE__ */ s.jsx(
431
+ ), le = l(({ children: r, className: t, size: e = "fluid", ...a }, o) => /* @__PURE__ */ s.jsx(
432
432
  "div",
433
433
  {
434
434
  ref: o,
435
- className: d(ee({ size: e }), t),
435
+ className: d(ae({ size: e }), t),
436
436
  "data-versaur-page-header-breadcrumbs": !0,
437
437
  ...a,
438
438
  children: r
439
439
  }
440
- )), le = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
440
+ )), ce = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
441
441
  "div",
442
442
  {
443
443
  ref: a,
444
- className: d(ae(), t),
444
+ className: d(te(), t),
445
445
  "data-versaur-page-header-content": !0,
446
446
  ...e,
447
447
  children: r
448
448
  }
449
- )), ce = l((r, t) => /* @__PURE__ */ s.jsx(
450
- x,
451
- {
452
- ...r,
453
- as: "h1",
454
- fontSize: "xl",
455
- fontWeight: "semibold",
456
- ellipsis: !0,
457
- ref: t
458
- }
459
- )), de = l(({ className: r, ...t }, e) => /* @__PURE__ */ s.jsx(
460
- x,
449
+ )), de = l((r, t) => /* @__PURE__ */ s.jsx(V, { color: "neutral", ...r, as: "h4", ellipsis: !0, ref: t })), ue = l(({ className: r, ...t }, e) => /* @__PURE__ */ s.jsx(
450
+ h,
461
451
  {
462
452
  as: "p",
463
- fontSize: "sm",
464
453
  fontWeight: "normal",
465
454
  clamp: 2,
466
455
  ref: e,
467
456
  className: d("mb-2 sm:clamp-3", r),
468
457
  ...t
469
458
  }
470
- )), ue = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
459
+ )), pe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
471
460
  "div",
472
461
  {
473
462
  ref: a,
474
- className: d(te(), t),
463
+ className: d(se(), t),
475
464
  "data-versaur-page-header-badges": !0,
476
465
  ...e,
477
466
  children: r
478
467
  }
479
- )), pe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
468
+ )), fe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
480
469
  "div",
481
470
  {
482
471
  ref: a,
483
- className: d(se(), t),
472
+ className: d(re(), t),
484
473
  "data-versaur-page-header-actions": !0,
485
474
  ...e,
486
475
  children: r
487
476
  }
488
- )), fe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
477
+ )), me = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
489
478
  "div",
490
479
  {
491
480
  ref: a,
492
- className: d(re(), t),
481
+ className: d(oe(), t),
493
482
  "data-versaur-page-header-mobile-actions": !0,
494
483
  ...e,
495
484
  children: r
496
485
  }
497
- )), me = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
486
+ )), ge = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
498
487
  "div",
499
488
  {
500
489
  ref: a,
501
- className: d(oe(), t),
490
+ className: d(ne(), t),
502
491
  "data-versaur-page-header-bottom": !0,
503
492
  ...e,
504
493
  children: r
505
494
  }
506
- )), ge = l(
495
+ )), xe = l(
507
496
  ({
508
497
  children: r,
509
498
  className: t,
@@ -522,29 +511,29 @@ const T = n(
522
511
  "header",
523
512
  {
524
513
  ref: g,
525
- className: d(X()),
514
+ className: d(Y()),
526
515
  role: "banner",
527
516
  ...m,
528
- children: /* @__PURE__ */ s.jsxs("div", { className: d(Y({ size: e }), t), children: [
529
- i && /* @__PURE__ */ s.jsx(ie, { size: e, children: i }),
530
- /* @__PURE__ */ s.jsxs(ne, { size: e, children: [
531
- /* @__PURE__ */ s.jsxs(le, { children: [
517
+ children: /* @__PURE__ */ s.jsxs("div", { className: d(Z({ size: e }), t), children: [
518
+ i && /* @__PURE__ */ s.jsx(le, { size: e, children: i }),
519
+ /* @__PURE__ */ s.jsxs(ie, { size: e, children: [
520
+ /* @__PURE__ */ s.jsxs(ce, { children: [
532
521
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
533
- /* @__PURE__ */ s.jsx(ce, { children: a }),
534
- f && /* @__PURE__ */ s.jsx(fe, { children: f })
522
+ /* @__PURE__ */ s.jsx(de, { children: a }),
523
+ f && /* @__PURE__ */ s.jsx(me, { children: f })
535
524
  ] }),
536
- o && /* @__PURE__ */ s.jsx(de, { children: o }),
537
- c && /* @__PURE__ */ s.jsx(ue, { children: c })
525
+ o && /* @__PURE__ */ s.jsx(ue, { children: o }),
526
+ c && /* @__PURE__ */ s.jsx(pe, { children: c })
538
527
  ] }),
539
- u && /* @__PURE__ */ s.jsx(pe, { children: u })
528
+ u && /* @__PURE__ */ s.jsx(fe, { children: u })
540
529
  ] }),
541
- v && /* @__PURE__ */ s.jsx(me, { children: p }),
530
+ v && /* @__PURE__ */ s.jsx(ge, { children: p }),
542
531
  r
543
532
  ] })
544
533
  }
545
534
  );
546
535
  }
547
- ), ia = ge, xe = n("w-full"), he = n("w-full mx-auto relative", {
536
+ ), la = xe, he = n("w-full"), ve = n("w-full mx-auto relative", {
548
537
  variants: {
549
538
  size: {
550
539
  fluid: "max-w-full px-0",
@@ -562,7 +551,7 @@ const T = n(
562
551
  size: "fluid",
563
552
  template: "single-column"
564
553
  }
565
- }), la = j.forwardRef(
554
+ }), ca = j.forwardRef(
566
555
  function({
567
556
  size: t = "fluid",
568
557
  template: e = "single-column",
@@ -570,18 +559,18 @@ const T = n(
570
559
  children: o,
571
560
  ...i
572
561
  }, c) {
573
- return /* @__PURE__ */ s.jsx("div", { ref: c, className: d(xe()), ...i, children: /* @__PURE__ */ s.jsx(
562
+ return /* @__PURE__ */ s.jsx("div", { ref: c, className: d(he()), ...i, children: /* @__PURE__ */ s.jsx(
574
563
  "div",
575
564
  {
576
565
  className: d(
577
- he({ size: t, template: e }),
566
+ ve({ size: t, template: e }),
578
567
  a
579
568
  ),
580
569
  children: /* @__PURE__ */ s.jsx("div", { children: o })
581
570
  }
582
571
  ) });
583
572
  }
584
- ), ve = n(
573
+ ), ye = n(
585
574
  [
586
575
  "grid",
587
576
  "h-full",
@@ -600,7 +589,7 @@ const T = n(
600
589
  hasMargin: !1
601
590
  }
602
591
  }
603
- ), ye = n("[grid-area:header]", {
592
+ ), be = n("[grid-area:header]", {
604
593
  variants: {
605
594
  backgroundColor: {
606
595
  white: "bg-transparent",
@@ -610,7 +599,7 @@ const T = n(
610
599
  defaultVariants: {
611
600
  backgroundColor: "white"
612
601
  }
613
- }), be = n(
602
+ }), je = n(
614
603
  "[grid-area:content] min-h-0",
615
604
  {
616
605
  variants: {
@@ -623,40 +612,40 @@ const T = n(
623
612
  backgroundColor: "white"
624
613
  }
625
614
  }
626
- ), je = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
615
+ ), we = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
627
616
  return /* @__PURE__ */ s.jsx(
628
617
  "div",
629
618
  {
630
619
  ref: i,
631
- className: ye({ backgroundColor: a, className: e }),
620
+ className: be({ backgroundColor: a, className: e }),
632
621
  ...o,
633
622
  children: t
634
623
  }
635
624
  );
636
- }), we = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
625
+ }), Ne = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
637
626
  return /* @__PURE__ */ s.jsx(
638
627
  "div",
639
628
  {
640
629
  ref: i,
641
- className: be({ backgroundColor: a, className: e }),
630
+ className: je({ backgroundColor: a, className: e }),
642
631
  ...o,
643
632
  children: t
644
633
  }
645
634
  );
646
- }), Ne = l(
635
+ }), Be = l(
647
636
  ({ children: r, className: t, hasMargin: e = !1, ...a }, o) => /* @__PURE__ */ s.jsx(
648
637
  "div",
649
638
  {
650
639
  ref: o,
651
- className: ve({ hasMargin: e, className: t }),
640
+ className: ye({ hasMargin: e, className: t }),
652
641
  ...a,
653
642
  children: r
654
643
  }
655
644
  )
656
- ), ca = Object.assign(Ne, {
657
- HeaderRegion: je,
658
- ContentRegion: we
659
- }), Be = n(
645
+ ), da = Object.assign(Be, {
646
+ HeaderRegion: we,
647
+ ContentRegion: Ne
648
+ }), Re = n(
660
649
  [
661
650
  // Base styles: flex container that centers content
662
651
  "flex",
@@ -692,12 +681,12 @@ const T = n(
692
681
  fullscreen: !1
693
682
  }
694
683
  }
695
- ), Re = n([
684
+ ), Le = n([
696
685
  "text-foreground-light",
697
686
  "text-sm",
698
687
  "text-center",
699
688
  "max-w-xs"
700
- ]), da = j.forwardRef(
689
+ ]), ua = j.forwardRef(
701
690
  function({
702
691
  type: t = "bar",
703
692
  size: e = "sm",
@@ -714,11 +703,11 @@ const T = n(
714
703
  "div",
715
704
  {
716
705
  ref: g,
717
- className: d(Be({ minimal: u, fullscreen: c }), f),
706
+ className: d(Re({ minimal: u, fullscreen: c }), f),
718
707
  ...m,
719
708
  children: [
720
709
  /* @__PURE__ */ s.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ s.jsx(
721
- V,
710
+ H,
722
711
  {
723
712
  type: t,
724
713
  size: e,
@@ -726,13 +715,13 @@ const T = n(
726
715
  ariaLabel: o
727
716
  }
728
717
  ) }),
729
- i && /* @__PURE__ */ s.jsx("p", { className: Re(), "aria-live": "polite", children: i }),
718
+ i && /* @__PURE__ */ s.jsx("p", { className: Le(), "aria-live": "polite", children: i }),
730
719
  p
731
720
  ]
732
721
  }
733
722
  );
734
723
  }
735
- ), Le = n("grid w-full gap-4 grid-cols-12"), Se = n("", {
724
+ ), Ce = n("grid w-full gap-4 grid-cols-12"), Se = n("", {
736
725
  variants: {
737
726
  span: {
738
727
  1: "col-span-1",
@@ -752,19 +741,19 @@ const T = n(
752
741
  defaultVariants: {
753
742
  span: "4"
754
743
  }
755
- }), Ce = l(
744
+ }), Ve = l(
756
745
  function({ className: t, children: e, ...a }, o) {
757
746
  return /* @__PURE__ */ s.jsx(
758
747
  "div",
759
748
  {
760
749
  ref: o,
761
- className: d(Le(), t),
750
+ className: d(Ce(), t),
762
751
  ...a,
763
752
  children: e
764
753
  }
765
754
  );
766
755
  }
767
- ), Ve = l(
756
+ ), He = l(
768
757
  function({ span: t = 4, className: e, children: a, ...o }, i) {
769
758
  const c = Math.min(12, Math.max(1, t));
770
759
  return /* @__PURE__ */ s.jsx(
@@ -780,8 +769,8 @@ const T = n(
780
769
  }
781
770
  );
782
771
  }
783
- ), ua = Object.assign(Ce, {
784
- Column: Ve
772
+ ), pa = Object.assign(Ve, {
773
+ Column: He
785
774
  }), ze = n(
786
775
  "bg-background flex flex-col h-full ease-in-out justify-between",
787
776
  {
@@ -818,7 +807,7 @@ const T = n(
818
807
  collapsed: !1
819
808
  }
820
809
  }
821
- ), He = n("", {
810
+ ), Te = n("", {
822
811
  variants: {
823
812
  expanded: {
824
813
  true: "bg-neutral-light",
@@ -828,7 +817,7 @@ const T = n(
828
817
  defaultVariants: {
829
818
  expanded: !1
830
819
  }
831
- }), Te = n(
820
+ }), Pe = n(
832
821
  "w-full flex p-3 items-center gap-2 rounded-md hover:text-primary hover:bg-primary-soft focus:outline-none focus-visible:ring-2 focus-visible:ring-primary transition-all",
833
822
  {
834
823
  variants: {
@@ -841,12 +830,12 @@ const T = n(
841
830
  collapsed: !1
842
831
  }
843
832
  }
844
- ), Pe = n("flex flex-col gap-2 ml-3"), h = n("flex items-center justify-center size-5"), R = S(null), L = () => {
845
- const r = C(R);
833
+ ), Ae = n("flex flex-col gap-2 ml-3"), x = n("flex items-center justify-center size-5"), R = C(null), L = () => {
834
+ const r = S(R);
846
835
  if (!r)
847
836
  throw new Error("SideBar compound components must be used within SideBar");
848
837
  return r;
849
- }, Ae = l(
838
+ }, _e = l(
850
839
  (r, t) => {
851
840
  const { icon: e, children: a, href: o, active: i, ...c } = r, { isCollapsed: u } = L(), f = c;
852
841
  return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
@@ -862,13 +851,12 @@ const T = n(
862
851
  title: u ? String(a) : void 0,
863
852
  ...f,
864
853
  children: [
865
- e && /* @__PURE__ */ s.jsx("span", { className: d(h()), children: e }),
854
+ e && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: e }),
866
855
  !u && /* @__PURE__ */ s.jsx(
867
- x,
856
+ h,
868
857
  {
869
- as: "span",
858
+ as: "small",
870
859
  color: "inherit",
871
- fontSize: "sm",
872
860
  fontWeight: "normal",
873
861
  className: "truncate",
874
862
  children: a
@@ -878,7 +866,7 @@ const T = n(
878
866
  }
879
867
  ) });
880
868
  }
881
- ), _e = l(
869
+ ), Ie = l(
882
870
  function({ children: t, label: e, icon: a, defaultExpanded: o = !0, ...i }, c) {
883
871
  const { isCollapsed: u, expandSidebar: f } = L(), [p, m] = w(o), g = (y) => {
884
872
  y.preventDefault(), m(!p);
@@ -895,13 +883,13 @@ const T = n(
895
883
  }),
896
884
  title: String(e),
897
885
  onClick: v,
898
- children: a && /* @__PURE__ */ s.jsx("span", { className: d(h()), children: a })
886
+ children: a && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: a })
899
887
  }
900
888
  ) }) : /* @__PURE__ */ s.jsxs(
901
889
  "li",
902
890
  {
903
891
  ref: c,
904
- className: He({
892
+ className: Te({
905
893
  expanded: p
906
894
  }),
907
895
  ...i,
@@ -910,22 +898,13 @@ const T = n(
910
898
  "button",
911
899
  {
912
900
  type: "button",
913
- className: Te({
901
+ className: Pe({
914
902
  collapsed: !1
915
903
  }),
916
904
  onClick: g,
917
905
  children: [
918
- a && /* @__PURE__ */ s.jsx("span", { className: d(h()), children: a }),
919
- /* @__PURE__ */ s.jsx(
920
- x,
921
- {
922
- as: "span",
923
- color: "inherit",
924
- fontSize: "sm",
925
- className: "flex-1 truncate",
926
- children: e
927
- }
928
- ),
906
+ a && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: a }),
907
+ /* @__PURE__ */ s.jsx(h, { as: "small", color: "inherit", className: "flex-1 truncate", children: e }),
929
908
  /* @__PURE__ */ s.jsx(
930
909
  N,
931
910
  {
@@ -937,12 +916,12 @@ const T = n(
937
916
  ]
938
917
  }
939
918
  ),
940
- p && /* @__PURE__ */ s.jsx("ul", { className: d(Pe()), children: t })
919
+ p && /* @__PURE__ */ s.jsx("ul", { className: d(Ae()), children: t })
941
920
  ]
942
921
  }
943
922
  );
944
923
  }
945
- ), Ie = l(
924
+ ), ke = l(
946
925
  ({ children: r, defaultCollapsed: t = !1, onCollapseChange: e, ...a }, o) => {
947
926
  const [i, c] = w(t), u = () => {
948
927
  const p = !i;
@@ -975,24 +954,15 @@ const T = n(
975
954
  "aria-label": i ? "Expand sidebar" : "Collapse sidebar",
976
955
  title: i ? "Expand sidebar" : "Collapse sidebar",
977
956
  children: [
978
- /* @__PURE__ */ s.jsx("span", { className: d(h()), children: /* @__PURE__ */ s.jsx(
957
+ /* @__PURE__ */ s.jsx("span", { className: d(x()), children: /* @__PURE__ */ s.jsx(
979
958
  N,
980
959
  {
981
- as: i ? B : H,
960
+ as: i ? B : T,
982
961
  size: "sm",
983
962
  color: "inherit"
984
963
  }
985
964
  ) }),
986
- !i && /* @__PURE__ */ s.jsx(
987
- x,
988
- {
989
- as: "span",
990
- color: "inherit",
991
- fontSize: "sm",
992
- className: "truncate",
993
- children: "Collapse"
994
- }
995
- )
965
+ !i && /* @__PURE__ */ s.jsx(h, { as: "small", color: "inherit", className: "truncate", children: "Collapse" })
996
966
  ]
997
967
  }
998
968
  ) })
@@ -1002,16 +972,16 @@ const T = n(
1002
972
  }
1003
973
  );
1004
974
  }
1005
- ), pa = Object.assign(Ie, {
1006
- Item: Ae,
1007
- Group: _e
1008
- }), ke = n(
975
+ ), fa = Object.assign(ke, {
976
+ Item: _e,
977
+ Group: Ie
978
+ }), Ge = n(
1009
979
  "w-full flex items-center px-6 py-4 bg-white",
1010
980
  {
1011
981
  variants: {},
1012
982
  defaultVariants: {}
1013
983
  }
1014
- ), Ge = n("flex items-center gap-3 min-w-0 flex-1"), Me = n("flex items-center gap-2 ml-auto"), Fe = n(
984
+ ), Me = n("flex items-center gap-3 min-w-0 flex-1"), Fe = n("flex items-center gap-2 ml-auto"), Oe = n(
1015
985
  "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
1016
986
  {
1017
987
  variants: {
@@ -1024,55 +994,55 @@ const T = n(
1024
994
  active: !1
1025
995
  }
1026
996
  }
1027
- ), Oe = n("flex items-center gap-2 ml-4"), Ee = n("flex items-center gap-2 mr-4"), We = l(
1028
- function({ children: t, className: e, ...a }, o) {
1029
- return /* @__PURE__ */ s.jsx("nav", { ref: o, className: Oe({ className: e }), ...a, children: t });
1030
- }
1031
- ), De = l(
997
+ ), Ee = n("flex items-center gap-2 ml-4"), De = n("flex items-center gap-2 mr-4"), We = l(
1032
998
  function({ children: t, className: e, ...a }, o) {
1033
- return /* @__PURE__ */ s.jsx("div", { ref: o, className: Ee({ className: e }), ...a, children: t });
999
+ return /* @__PURE__ */ s.jsx("nav", { ref: o, className: Ee({ className: e }), ...a, children: t });
1034
1000
  }
1035
1001
  ), $e = l(
1036
1002
  function({ children: t, className: e, ...a }, o) {
1037
- return /* @__PURE__ */ s.jsx("div", { ref: o, className: Ge({ className: e }), ...a, children: t });
1003
+ return /* @__PURE__ */ s.jsx("div", { ref: o, className: De({ className: e }), ...a, children: t });
1038
1004
  }
1039
1005
  ), qe = l(
1040
1006
  function({ children: t, className: e, ...a }, o) {
1041
1007
  return /* @__PURE__ */ s.jsx("div", { ref: o, className: Me({ className: e }), ...a, children: t });
1042
1008
  }
1043
1009
  ), Je = l(
1010
+ function({ children: t, className: e, ...a }, o) {
1011
+ return /* @__PURE__ */ s.jsx("div", { ref: o, className: Fe({ className: e }), ...a, children: t });
1012
+ }
1013
+ ), Ke = l(
1044
1014
  function({ children: t, className: e, active: a, ...o }, i) {
1045
1015
  return /* @__PURE__ */ s.jsx(
1046
1016
  "div",
1047
1017
  {
1048
1018
  ref: i,
1049
- className: Fe({ active: a, className: e }),
1019
+ className: Oe({ active: a, className: e }),
1050
1020
  "aria-current": a ? "page" : void 0,
1051
1021
  ...o,
1052
1022
  children: t
1053
1023
  }
1054
1024
  );
1055
1025
  }
1056
- ), Ke = l(
1057
- ({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("header", { ref: a, className: ke({ className: t }), ...e, children: r })
1058
- ), fa = Object.assign(Ke, {
1059
- Leading: $e,
1060
- Trailing: qe,
1061
- NavItem: Je,
1026
+ ), Qe = l(
1027
+ ({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("header", { ref: a, className: Ge({ className: t }), ...e, children: r })
1028
+ ), ma = Object.assign(Qe, {
1029
+ Leading: qe,
1030
+ Trailing: Je,
1031
+ NavItem: Ke,
1062
1032
  Nav: We,
1063
- Actions: De
1033
+ Actions: $e
1064
1034
  });
1065
1035
  export {
1066
- ta as A,
1067
- sa as B,
1068
- na as F,
1069
- ia as P,
1070
- pa as S,
1071
- fa as T,
1072
- ra as a,
1073
- oa as b,
1074
- la as c,
1075
- ca as d,
1076
- da as e,
1077
- ua as f
1036
+ sa as A,
1037
+ ra as B,
1038
+ ia as F,
1039
+ la as P,
1040
+ fa as S,
1041
+ ma as T,
1042
+ oa as a,
1043
+ na as b,
1044
+ ca as c,
1045
+ da as d,
1046
+ ua as e,
1047
+ pa as f
1078
1048
  };