@dimasbaguspm/versaur 0.0.40 → 0.0.42

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.
@@ -1,9 +1,10 @@
1
- import { c as i, j as r, a as l } from "./index-DOdDlCoL.js";
1
+ import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
2
2
  import * as v from "react";
3
3
  import { forwardRef as o } from "react";
4
- import { n as f } from "./image-rectangle-DGO9R_ox.js";
4
+ import { n as f } from "./image-rectangle-DPZAgdEa.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
- const h = i(
6
+ import { L as h } from "./skeleton-BNZyaRjo.js";
7
+ const j = i(
7
8
  "w-full flex flex-wrap items-center pt-3 mb-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-leading]]:pl-4 [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-trailing]]:pr-4 [&:not(:has([data-versaur-appbar-bottom]))]:px-4",
8
9
  {
9
10
  variants: {
@@ -19,7 +20,7 @@ const h = i(
19
20
  variant: "primary"
20
21
  }
21
22
  }
22
- ), j = i(
23
+ ), y = i(
23
24
  "flex flex-col justify-center min-w-0 flex-grow",
24
25
  {
25
26
  variants: {
@@ -33,8 +34,8 @@ const h = i(
33
34
  placement: "start"
34
35
  }
35
36
  }
36
- ), y = o(
37
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
37
+ ), w = o(
38
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
38
39
  "div",
39
40
  {
40
41
  ref: e,
@@ -44,7 +45,7 @@ const h = i(
44
45
  }
45
46
  )
46
47
  ), B = o(
47
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
48
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
48
49
  "div",
49
50
  {
50
51
  ref: e,
@@ -53,7 +54,7 @@ const h = i(
53
54
  children: t
54
55
  }
55
56
  )
56
- ), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
57
+ ), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
57
58
  f,
58
59
  {
59
60
  ...a,
@@ -65,7 +66,7 @@ const h = i(
65
66
  clamp: 1,
66
67
  children: t
67
68
  }
68
- )), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
69
+ )), V = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
69
70
  f,
70
71
  {
71
72
  ...a,
@@ -78,8 +79,8 @@ const h = i(
78
79
  color: "gray",
79
80
  children: t
80
81
  }
81
- )), V = o(
82
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
82
+ )), S = o(
83
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
83
84
  "div",
84
85
  {
85
86
  ref: e,
@@ -88,33 +89,33 @@ const h = i(
88
89
  children: t
89
90
  }
90
91
  )
91
- ), S = o(
92
- ({ children: t, className: a, placement: e }, s) => /* @__PURE__ */ r.jsx(
92
+ ), T = o(
93
+ ({ children: t, className: a, placement: e }, r) => /* @__PURE__ */ s.jsx(
93
94
  "div",
94
95
  {
95
- ref: s,
96
- className: l(j({ placement: e }), a),
96
+ ref: r,
97
+ className: l(y({ placement: e }), a),
97
98
  children: t
98
99
  }
99
100
  )
100
- ), T = ({
101
+ ), L = ({
101
102
  children: t,
102
103
  className: a,
103
104
  variant: e = "primary"
104
- }) => /* @__PURE__ */ r.jsx(
105
+ }) => /* @__PURE__ */ s.jsx(
105
106
  "header",
106
107
  {
107
- className: l(h({ variant: e }), a),
108
+ className: l(j({ variant: e }), a),
108
109
  role: "banner",
109
110
  children: t
110
111
  }
111
- ), Na = Object.assign(T, {
112
+ ), La = Object.assign(L, {
112
113
  Leading: B,
113
- Headline: w,
114
- Subtitle: N,
115
- Trailing: V,
116
- Center: S,
117
- Bottom: y
114
+ Headline: N,
115
+ Subtitle: V,
116
+ Trailing: S,
117
+ Center: T,
118
+ Bottom: w
118
119
  }), H = i(
119
120
  "sticky bottom-0 w-full flex justify-around items-center bg-white border-t border-border shadow-xs z-40 safe-bottom gap-4 select-none px-8",
120
121
  {
@@ -155,47 +156,47 @@ const h = i(
155
156
  as: "button"
156
157
  }
157
158
  }
158
- ), A = o(
159
+ ), P = o(
159
160
  ({
160
161
  as: t = "button",
161
162
  icon: a,
162
163
  label: e,
163
- active: s = !1,
164
+ active: r = !1,
164
165
  className: n,
165
166
  children: c,
166
167
  ...p
167
- }, d) => /* @__PURE__ */ r.jsxs(
168
+ }, d) => /* @__PURE__ */ s.jsxs(
168
169
  t,
169
170
  {
170
171
  ref: d,
171
- "aria-current": s ? "page" : void 0,
172
- className: z({ active: s, className: n, as: t }),
172
+ "aria-current": r ? "page" : void 0,
173
+ className: z({ active: r, className: n, as: t }),
173
174
  ...p,
174
175
  children: [
175
176
  a && a,
176
177
  c && c,
177
- e && /* @__PURE__ */ r.jsx("span", { className: "text-xs mt-0.5", children: e })
178
+ e && /* @__PURE__ */ s.jsx("span", { className: "text-xs mt-0.5", children: e })
178
179
  ]
179
180
  }
180
181
  )
181
- ), P = ({
182
+ ), A = ({
182
183
  children: t,
183
184
  variant: a = "primary",
184
185
  size: e = "md",
185
- className: s,
186
+ className: r,
186
187
  ...n
187
- }) => /* @__PURE__ */ r.jsx(
188
+ }) => /* @__PURE__ */ s.jsx(
188
189
  "nav",
189
190
  {
190
191
  role: "navigation",
191
192
  "aria-label": "Bottom navigation",
192
- className: H({ variant: a, size: e, className: s }),
193
+ className: H({ variant: a, size: e, className: r }),
193
194
  ...n,
194
195
  children: t
195
196
  }
196
- ), Va = Object.assign(P, {
197
- Item: A
198
- }), C = i("flex", {
197
+ ), Ha = Object.assign(A, {
198
+ Item: P
199
+ }), C = i("flex flex-wrap items-center", {
199
200
  variants: {
200
201
  orientation: {
201
202
  horizontal: "flex-row",
@@ -227,24 +228,24 @@ const h = i(
227
228
  gap: "md",
228
229
  fluid: !1
229
230
  }
230
- }), Sa = o(
231
+ }), za = o(
231
232
  function({
232
233
  className: a,
233
234
  children: e,
234
- orientation: s = "horizontal",
235
+ orientation: r = "horizontal",
235
236
  alignment: n = "start",
236
237
  gap: c = "md",
237
238
  fluid: p = !1,
238
239
  hasMargin: d,
239
240
  ...u
240
241
  }, m) {
241
- return /* @__PURE__ */ r.jsx(
242
+ return /* @__PURE__ */ s.jsx(
242
243
  "div",
243
244
  {
244
245
  ref: m,
245
246
  className: l(
246
247
  C({
247
- orientation: s,
248
+ orientation: r,
248
249
  alignment: n,
249
250
  gap: c,
250
251
  fluid: p
@@ -258,7 +259,7 @@ const h = i(
258
259
  }
259
260
  );
260
261
  }
261
- ), L = i("flex", {
262
+ ), R = i("flex flex-wrap items-center", {
262
263
  variants: {
263
264
  orientation: {
264
265
  horizontal: "flex-row",
@@ -290,24 +291,24 @@ const h = i(
290
291
  gap: "md",
291
292
  fluid: !1
292
293
  }
293
- }), Ta = o(
294
+ }), Pa = o(
294
295
  function({
295
296
  className: a,
296
297
  children: e,
297
- orientation: s = "horizontal",
298
+ orientation: r = "horizontal",
298
299
  alignment: n = "start",
299
300
  gap: c = "md",
300
301
  fluid: p = !1,
301
302
  hasMargin: d,
302
303
  ...u
303
304
  }, m) {
304
- return /* @__PURE__ */ r.jsx(
305
+ return /* @__PURE__ */ s.jsx(
305
306
  "div",
306
307
  {
307
308
  ref: m,
308
309
  className: l(
309
- L({
310
- orientation: s,
310
+ R({
311
+ orientation: r,
311
312
  alignment: n,
312
313
  gap: c,
313
314
  fluid: p
@@ -353,24 +354,24 @@ const h = i(
353
354
  gap: "md",
354
355
  fluid: !1
355
356
  }
356
- }), Ha = o(
357
+ }), Aa = o(
357
358
  function({
358
359
  className: a,
359
360
  children: e,
360
- orientation: s = "horizontal",
361
+ orientation: r = "horizontal",
361
362
  alignment: n = "start",
362
363
  gap: c = "md",
363
364
  fluid: p = !1,
364
365
  hasMargin: d,
365
366
  ...u
366
367
  }, m) {
367
- return /* @__PURE__ */ r.jsx(
368
+ return /* @__PURE__ */ s.jsx(
368
369
  "div",
369
370
  {
370
371
  ref: m,
371
372
  className: l(
372
373
  G({
373
- orientation: s,
374
+ orientation: r,
374
375
  alignment: n,
375
376
  gap: c,
376
377
  fluid: p
@@ -384,54 +385,54 @@ const h = i(
384
385
  }
385
386
  );
386
387
  }
387
- ), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"), za = o(
388
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
388
+ ), I = i("w-full px-4 sm:px-6 py-6 sm:py-8"), Ca = o(
389
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
389
390
  "div",
390
391
  {
391
- ref: s,
392
- className: l(R(), a),
392
+ ref: r,
393
+ className: l(I(), a),
393
394
  ...e,
394
395
  children: t
395
396
  }
396
397
  )
397
- ), I = i("w-full mt-4"), k = i(
398
+ ), k = i("w-full pt-4 md:pt-10"), F = i(
398
399
  "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
399
- ), F = i("mb-4 px-4 sm:px-6"), O = i(
400
+ ), O = i("mb-4 px-4 sm:px-6"), W = i(
400
401
  "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
401
- ), W = i("flex items-center gap-2 flex-wrap"), M = i(
402
+ ), M = i("flex items-center gap-2 flex-wrap"), E = i(
402
403
  "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"
403
- ), E = i("md:hidden"), $ = i(
404
+ ), $ = i("md:hidden"), q = i(
404
405
  "w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
405
- ), q = o(
406
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
406
+ ), D = o(
407
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
407
408
  "div",
408
409
  {
409
- ref: s,
410
- className: l(k(), a),
410
+ ref: r,
411
+ className: l(F(), a),
411
412
  "data-versaur-page-header-top": !0,
412
413
  ...e,
413
414
  children: t
414
415
  }
415
416
  )
416
- ), D = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
417
+ ), J = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
417
418
  "div",
418
419
  {
419
- ref: s,
420
- className: l(F(), a),
420
+ ref: r,
421
+ className: l(O(), a),
421
422
  "data-versaur-page-header-breadcrumbs": !0,
422
423
  ...e,
423
424
  children: t
424
425
  }
425
- )), J = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
426
+ )), K = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
426
427
  "div",
427
428
  {
428
- ref: s,
429
- className: l(O(), a),
429
+ ref: r,
430
+ className: l(W(), a),
430
431
  "data-versaur-page-header-content": !0,
431
432
  ...e,
432
433
  children: t
433
434
  }
434
- )), K = o((t, a) => /* @__PURE__ */ r.jsx(
435
+ )), Q = o((t, a) => /* @__PURE__ */ s.jsx(
435
436
  f,
436
437
  {
437
438
  ...t,
@@ -441,7 +442,7 @@ const h = i(
441
442
  ellipsis: !0,
442
443
  ref: a
443
444
  }
444
- )), Q = o(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
445
+ )), U = o(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
445
446
  f,
446
447
  {
447
448
  as: "p",
@@ -452,83 +453,83 @@ const h = i(
452
453
  className: l("mb-2 sm:clamp-3", t),
453
454
  ...a
454
455
  }
455
- )), U = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
456
+ )), X = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
456
457
  "div",
457
458
  {
458
- ref: s,
459
- className: l(W(), a),
459
+ ref: r,
460
+ className: l(M(), a),
460
461
  "data-versaur-page-header-badges": !0,
461
462
  ...e,
462
463
  children: t
463
464
  }
464
- )), X = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
465
+ )), Y = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
465
466
  "div",
466
467
  {
467
- ref: s,
468
- className: l(M(), a),
468
+ ref: r,
469
+ className: l(E(), a),
469
470
  "data-versaur-page-header-actions": !0,
470
471
  ...e,
471
472
  children: t
472
473
  }
473
- )), Y = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
474
+ )), Z = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
474
475
  "div",
475
476
  {
476
- ref: s,
477
- className: l(E(), a),
477
+ ref: r,
478
+ className: l($(), a),
478
479
  "data-versaur-page-header-mobile-actions": !0,
479
480
  ...e,
480
481
  children: t
481
482
  }
482
- )), Z = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
483
+ )), _ = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
483
484
  "div",
484
485
  {
485
- ref: s,
486
- className: l($(), a),
486
+ ref: r,
487
+ className: l(q(), a),
487
488
  "data-versaur-page-header-bottom": !0,
488
489
  ...e,
489
490
  children: t
490
491
  }
491
- )), _ = o(
492
+ )), aa = o(
492
493
  ({
493
494
  children: t,
494
495
  className: a,
495
496
  title: e,
496
- subtitle: s,
497
+ subtitle: r,
497
498
  breadcrumbs: n,
498
499
  badges: c,
499
500
  actions: p,
500
501
  mobileActions: d,
501
502
  tabs: u,
502
503
  ...m
503
- }, g) => {
504
- const b = u;
505
- return /* @__PURE__ */ r.jsxs(
504
+ }, x) => {
505
+ const g = u;
506
+ return /* @__PURE__ */ s.jsxs(
506
507
  "header",
507
508
  {
508
- ref: g,
509
- className: l(I(), a),
509
+ ref: x,
510
+ className: l(k(), a),
510
511
  role: "banner",
511
512
  ...m,
512
513
  children: [
513
- n && /* @__PURE__ */ r.jsx(D, { children: n }),
514
- /* @__PURE__ */ r.jsxs(q, { children: [
515
- /* @__PURE__ */ r.jsxs(J, { children: [
516
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between", children: [
517
- /* @__PURE__ */ r.jsx(K, { children: e }),
518
- d && /* @__PURE__ */ r.jsx(Y, { children: d })
514
+ n && /* @__PURE__ */ s.jsx(J, { children: n }),
515
+ /* @__PURE__ */ s.jsxs(D, { children: [
516
+ /* @__PURE__ */ s.jsxs(K, { children: [
517
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
518
+ /* @__PURE__ */ s.jsx(Q, { children: e }),
519
+ d && /* @__PURE__ */ s.jsx(Z, { children: d })
519
520
  ] }),
520
- s && /* @__PURE__ */ r.jsx(Q, { children: s }),
521
- c && /* @__PURE__ */ r.jsx(U, { children: c })
521
+ r && /* @__PURE__ */ s.jsx(U, { children: r }),
522
+ c && /* @__PURE__ */ s.jsx(X, { children: c })
522
523
  ] }),
523
- p && /* @__PURE__ */ r.jsx(X, { children: p })
524
+ p && /* @__PURE__ */ s.jsx(Y, { children: p })
524
525
  ] }),
525
- b && /* @__PURE__ */ r.jsx(Z, { children: u }),
526
+ g && /* @__PURE__ */ s.jsx(_, { children: u }),
526
527
  t
527
528
  ]
528
529
  }
529
530
  );
530
531
  }
531
- ), Aa = _, aa = i("w-full mx-auto relative", {
532
+ ), Ra = aa, ea = i("w-full mx-auto relative", {
532
533
  variants: {
533
534
  type: {
534
535
  desktop: "max-w-7xl px-6 pb-10",
@@ -539,19 +540,95 @@ const h = i(
539
540
  defaultVariants: {
540
541
  type: "desktop"
541
542
  }
542
- }), Pa = v.forwardRef(
543
- function({ type: a = "desktop", className: e, children: s, ...n }, c) {
544
- return /* @__PURE__ */ r.jsx(
543
+ }), Ga = v.forwardRef(
544
+ function({ type: a = "desktop", className: e, children: r, ...n }, c) {
545
+ return /* @__PURE__ */ s.jsx(
545
546
  "div",
546
547
  {
547
548
  ref: c,
548
- className: l(aa({ type: a }), e),
549
+ className: l(ea({ type: a }), e),
549
550
  ...n,
550
- children: s
551
+ children: r
551
552
  }
552
553
  );
553
554
  }
554
- ), ea = i("grid w-full gap-4 grid-cols-12"), ta = i("", {
555
+ ), ta = i(
556
+ [
557
+ // Base styles: flex container that centers content
558
+ "flex",
559
+ "items-center",
560
+ "justify-center",
561
+ "flex-col",
562
+ "gap-3",
563
+ // Ensure it takes available space
564
+ "flex-grow",
565
+ "w-full"
566
+ ],
567
+ {
568
+ variants: {
569
+ minimal: {
570
+ false: [
571
+ // Full height for standalone page loading
572
+ "min-h-96",
573
+ "h-full"
574
+ ],
575
+ true: [
576
+ // Minimal height for inline loading states
577
+ "min-h-32",
578
+ "py-8"
579
+ ]
580
+ },
581
+ fullscreen: {
582
+ true: ["fixed", "inset-0", "z-100", "bg-background"],
583
+ false: []
584
+ }
585
+ },
586
+ defaultVariants: {
587
+ minimal: !1,
588
+ fullscreen: !1
589
+ }
590
+ }
591
+ ), sa = i([
592
+ "text-foreground-light",
593
+ "text-sm",
594
+ "text-center",
595
+ "max-w-xs"
596
+ ]), Ia = v.forwardRef(
597
+ function({
598
+ type: a = "bar",
599
+ size: e = "sm",
600
+ color: r = "primary",
601
+ ariaLabel: n = "Loading page",
602
+ message: c,
603
+ fullscreen: p = !1,
604
+ minimal: d = !1,
605
+ className: u,
606
+ children: m,
607
+ ...x
608
+ }, g) {
609
+ return /* @__PURE__ */ s.jsxs(
610
+ "div",
611
+ {
612
+ ref: g,
613
+ className: l(ta({ minimal: d, fullscreen: p }), u),
614
+ ...x,
615
+ children: [
616
+ /* @__PURE__ */ s.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ s.jsx(
617
+ h,
618
+ {
619
+ type: a,
620
+ size: e,
621
+ color: r,
622
+ ariaLabel: n
623
+ }
624
+ ) }),
625
+ c && /* @__PURE__ */ s.jsx("p", { className: sa(), "aria-live": "polite", children: c }),
626
+ m
627
+ ]
628
+ }
629
+ );
630
+ }
631
+ ), ra = i("grid w-full gap-4 grid-cols-12"), na = i("", {
555
632
  variants: {
556
633
  span: {
557
634
  1: "col-span-1",
@@ -571,37 +648,37 @@ const h = i(
571
648
  defaultVariants: {
572
649
  span: "4"
573
650
  }
574
- }), sa = o(
575
- function({ className: a, children: e, ...s }, n) {
576
- return /* @__PURE__ */ r.jsx(
651
+ }), oa = o(
652
+ function({ className: a, children: e, ...r }, n) {
653
+ return /* @__PURE__ */ s.jsx(
577
654
  "div",
578
655
  {
579
656
  ref: n,
580
- className: l(ea(), a),
581
- ...s,
657
+ className: l(ra(), a),
658
+ ...r,
582
659
  children: e
583
660
  }
584
661
  );
585
662
  }
586
- ), ra = o(
587
- function({ span: a = 4, className: e, children: s, ...n }, c) {
663
+ ), ia = o(
664
+ function({ span: a = 4, className: e, children: r, ...n }, c) {
588
665
  const p = Math.min(12, Math.max(1, a));
589
- return /* @__PURE__ */ r.jsx(
666
+ return /* @__PURE__ */ s.jsx(
590
667
  "div",
591
668
  {
592
669
  ref: c,
593
670
  className: l(
594
- ta({ span: `${p}` }),
671
+ na({ span: `${p}` }),
595
672
  e
596
673
  ),
597
674
  ...n,
598
- children: s
675
+ children: r
599
676
  }
600
677
  );
601
678
  }
602
- ), Ca = Object.assign(sa, {
603
- Column: ra
604
- }), x = i(
679
+ ), ka = Object.assign(oa, {
680
+ Column: ia
681
+ }), b = i(
605
682
  "flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
606
683
  {
607
684
  variants: {
@@ -619,52 +696,52 @@ const h = i(
619
696
  disabled: !1
620
697
  }
621
698
  }
622
- ), na = o(
699
+ ), la = o(
623
700
  (t, a) => {
624
- const { icon: e, children: s, href: n, onClick: c, active: p, ...d } = t;
701
+ const { icon: e, children: r, href: n, onClick: c, active: p, ...d } = t;
625
702
  if (typeof n == "string") {
626
703
  const m = d;
627
- return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
704
+ return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
628
705
  "a",
629
706
  {
630
707
  ref: a,
631
708
  href: n,
632
- className: x({
709
+ className: b({
633
710
  disabled: !!t["aria-disabled"],
634
711
  active: p
635
712
  }),
636
713
  ...m,
637
714
  children: [
638
715
  e,
639
- /* @__PURE__ */ r.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: s })
716
+ /* @__PURE__ */ s.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
640
717
  ]
641
718
  }
642
719
  ) });
643
720
  } else {
644
721
  const m = d;
645
- return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
722
+ return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
646
723
  "button",
647
724
  {
648
725
  ref: a,
649
726
  type: "button",
650
727
  onClick: c,
651
728
  className: l(
652
- x({ disabled: !!m.disabled, active: p }),
729
+ b({ disabled: !!m.disabled, active: p }),
653
730
  "w-full text-left"
654
731
  ),
655
732
  ...m,
656
733
  children: [
657
734
  e,
658
- /* @__PURE__ */ r.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: s })
735
+ /* @__PURE__ */ s.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
659
736
  ]
660
737
  }
661
738
  ) });
662
739
  }
663
740
  }
664
- ), oa = o(
665
- function({ children: a, label: e, ...s }, n) {
666
- return /* @__PURE__ */ r.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...s, children: [
667
- /* @__PURE__ */ r.jsx(
741
+ ), ca = o(
742
+ function({ children: a, label: e, ...r }, n) {
743
+ return /* @__PURE__ */ s.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
744
+ /* @__PURE__ */ s.jsx(
668
745
  f,
669
746
  {
670
747
  as: "h2",
@@ -675,30 +752,30 @@ const h = i(
675
752
  children: e
676
753
  }
677
754
  ),
678
- /* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1", children: a })
755
+ /* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1", children: a })
679
756
  ] });
680
757
  }
681
- ), ia = o(
682
- ({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
758
+ ), pa = o(
759
+ ({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
683
760
  "nav",
684
761
  {
685
762
  ref: e,
686
763
  className: "w-56 bg-background border-r border-border flex flex-col my-2",
687
764
  "aria-label": "Sidebar",
688
765
  ...a,
689
- children: /* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: t }) })
766
+ children: /* @__PURE__ */ s.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: t }) })
690
767
  }
691
768
  )
692
- ), La = Object.assign(ia, {
693
- Item: na,
694
- Group: oa
695
- }), la = i(
696
- "w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
769
+ ), Fa = Object.assign(pa, {
770
+ Item: la,
771
+ Group: ca
772
+ }), da = i(
773
+ "w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
697
774
  {
698
775
  variants: {},
699
776
  defaultVariants: {}
700
777
  }
701
- ), ca = i("flex items-center gap-3 min-w-0 flex-1"), pa = i("flex items-center gap-2 ml-auto"), da = i(
778
+ ), ma = i("flex items-center gap-3 min-w-0 flex-1"), ua = i("flex items-center gap-2 ml-auto"), fa = i(
702
779
  "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
703
780
  {
704
781
  variants: {
@@ -711,54 +788,55 @@ const h = i(
711
788
  active: !1
712
789
  }
713
790
  }
714
- ), ma = i("flex items-center gap-2 ml-4"), ua = i("flex items-center gap-2 mr-4"), fa = o(
715
- function({ children: a, className: e, ...s }, n) {
716
- return /* @__PURE__ */ r.jsx("nav", { ref: n, className: ma({ className: e }), ...s, children: a });
791
+ ), xa = i("flex items-center gap-2 ml-4"), ga = i("flex items-center gap-2 mr-4"), ba = o(
792
+ function({ children: a, className: e, ...r }, n) {
793
+ return /* @__PURE__ */ s.jsx("nav", { ref: n, className: xa({ className: e }), ...r, children: a });
717
794
  }
718
- ), xa = o(
719
- function({ children: a, className: e, ...s }, n) {
720
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: ua({ className: e }), ...s, children: a });
795
+ ), va = o(
796
+ function({ children: a, className: e, ...r }, n) {
797
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: ga({ className: e }), ...r, children: a });
721
798
  }
722
- ), ga = o(
723
- function({ children: a, className: e, ...s }, n) {
724
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: ca({ className: e }), ...s, children: a });
799
+ ), ha = o(
800
+ function({ children: a, className: e, ...r }, n) {
801
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: ma({ className: e }), ...r, children: a });
725
802
  }
726
- ), ba = o(
727
- function({ children: a, className: e, ...s }, n) {
728
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: pa({ className: e }), ...s, children: a });
803
+ ), ja = o(
804
+ function({ children: a, className: e, ...r }, n) {
805
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: ua({ className: e }), ...r, children: a });
729
806
  }
730
- ), va = o(
731
- function({ children: a, className: e, active: s, ...n }, c) {
732
- return /* @__PURE__ */ r.jsx(
807
+ ), ya = o(
808
+ function({ children: a, className: e, active: r, ...n }, c) {
809
+ return /* @__PURE__ */ s.jsx(
733
810
  "div",
734
811
  {
735
812
  ref: c,
736
- className: da({ active: s, className: e }),
737
- "aria-current": s ? "page" : void 0,
813
+ className: fa({ active: r, className: e }),
814
+ "aria-current": r ? "page" : void 0,
738
815
  ...n,
739
816
  children: a
740
817
  }
741
818
  );
742
819
  }
743
- ), ha = o(
744
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx("header", { ref: s, className: la({ className: a }), ...e, children: t })
745
- ), Ga = Object.assign(ha, {
746
- Leading: ga,
747
- Trailing: ba,
748
- NavItem: va,
749
- Nav: fa,
750
- Actions: xa
820
+ ), wa = o(
821
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: da({ className: a }), ...e, children: t })
822
+ ), Oa = Object.assign(wa, {
823
+ Leading: ha,
824
+ Trailing: ja,
825
+ NavItem: ya,
826
+ Nav: ba,
827
+ Actions: va
751
828
  });
752
829
  export {
753
- Na as A,
754
- Va as B,
755
- Ha as F,
756
- za as P,
757
- La as S,
758
- Ga as T,
759
- Sa as a,
760
- Ta as b,
761
- Aa as c,
762
- Pa as d,
763
- Ca as e
830
+ La as A,
831
+ Ha as B,
832
+ Aa as F,
833
+ Ca as P,
834
+ Fa as S,
835
+ Oa as T,
836
+ za as a,
837
+ Pa as b,
838
+ Ra as c,
839
+ Ga as d,
840
+ Ia as e,
841
+ ka as f
764
842
  };