@dimasbaguspm/versaur 0.0.29 → 0.0.31

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 (41) hide show
  1. package/dist/js/{bottom-sheet-BKd7WCCS.js → bottom-sheet-3W_vCYl6.js} +3 -2
  2. package/dist/js/{bottom-sheet-input-DrbGhcXv.js → bottom-sheet-input-CI-9wYa7.js} +634 -727
  3. package/dist/js/forms/index.js +1 -1
  4. package/dist/js/{image-rectangle-CF656HIm.js → image-rectangle-BpMI_fTE.js} +242 -542
  5. package/dist/js/index.js +27 -29
  6. package/dist/js/layouts/index.js +1 -1
  7. package/dist/js/navigation/index.js +1 -1
  8. package/dist/js/overlays/index.js +2 -2
  9. package/dist/js/primitive/index.js +15 -17
  10. package/dist/js/{tabs-DoiqKzR9.js → tabs-BOdkXJdy.js} +1 -1
  11. package/dist/js/{tooltip-D1-q8Ars.js → tooltip-C1P1eN0U.js} +65 -57
  12. package/dist/js/{top-bar-B4SZ2YZC.js → top-bar-sahvpzBv.js} +179 -166
  13. package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +2 -3
  14. package/dist/types/forms/chip-multiple-input/types.d.ts +1 -21
  15. package/dist/types/forms/chip-single-input/chip-single-input.d.ts +2 -3
  16. package/dist/types/forms/chip-single-input/types.d.ts +1 -9
  17. package/dist/types/layouts/page-header/page-header.atoms.d.ts +2 -1
  18. package/dist/types/layouts/page-header/page-header.d.ts +4 -0
  19. package/dist/types/layouts/page-header/types.d.ts +6 -0
  20. package/dist/types/overlays/menu/index.d.ts +1 -1
  21. package/dist/types/overlays/menu/menu.d.ts +4 -1
  22. package/dist/types/overlays/menu/types.d.ts +4 -2
  23. package/dist/types/overlays/menu/use-menu.d.ts +0 -1
  24. package/dist/types/primitive/button-menu/button-menu.d.ts +4 -0
  25. package/dist/types/primitive/button-menu/index.d.ts +2 -0
  26. package/dist/types/primitive/button-menu/types.d.ts +13 -0
  27. package/dist/types/primitive/card/card.atoms.d.ts +3 -0
  28. package/dist/types/primitive/card/card.d.ts +4 -23
  29. package/dist/types/primitive/card/types.d.ts +13 -2
  30. package/dist/types/primitive/index.d.ts +0 -2
  31. package/dist/utils/enforce-subpath-import.js +1 -2
  32. package/package.json +1 -1
  33. package/dist/types/primitive/calendar/calendar.atoms.d.ts +0 -13
  34. package/dist/types/primitive/calendar/calendar.d.ts +0 -8
  35. package/dist/types/primitive/calendar/index.d.ts +0 -2
  36. package/dist/types/primitive/calendar/types.d.ts +0 -54
  37. package/dist/types/primitive/calendar/use-calendar.d.ts +0 -18
  38. package/dist/types/primitive/description-list/description-list.atoms.d.ts +0 -13
  39. package/dist/types/primitive/description-list/description-list.d.ts +0 -6
  40. package/dist/types/primitive/description-list/index.d.ts +0 -2
  41. package/dist/types/primitive/description-list/types.d.ts +0 -46
@@ -1,7 +1,7 @@
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 b from "react";
3
3
  import { forwardRef as o } from "react";
4
- import { k as u } from "./image-rectangle-CF656HIm.js";
4
+ import { j as u } from "./image-rectangle-BpMI_fTE.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
6
  const j = i(
7
7
  "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",
@@ -34,7 +34,7 @@ const j = i(
34
34
  }
35
35
  }
36
36
  ), y = o(
37
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
37
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
38
38
  "div",
39
39
  {
40
40
  ref: e,
@@ -44,7 +44,7 @@ const j = i(
44
44
  }
45
45
  )
46
46
  ), B = o(
47
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
47
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
48
48
  "div",
49
49
  {
50
50
  ref: e,
@@ -53,7 +53,7 @@ const j = i(
53
53
  children: t
54
54
  }
55
55
  )
56
- ), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
56
+ ), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
57
57
  u,
58
58
  {
59
59
  ...a,
@@ -65,7 +65,7 @@ const j = i(
65
65
  clamp: 1,
66
66
  children: t
67
67
  }
68
- )), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
68
+ )), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
69
69
  u,
70
70
  {
71
71
  ...a,
@@ -79,7 +79,7 @@ const j = i(
79
79
  children: t
80
80
  }
81
81
  )), V = o(
82
- ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
82
+ ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
83
83
  "div",
84
84
  {
85
85
  ref: e,
@@ -89,10 +89,10 @@ const j = i(
89
89
  }
90
90
  )
91
91
  ), S = o(
92
- ({ children: t, className: a, placement: e }, s) => /* @__PURE__ */ r.jsx(
92
+ ({ children: t, className: a, placement: e }, r) => /* @__PURE__ */ s.jsx(
93
93
  "div",
94
94
  {
95
- ref: s,
95
+ ref: r,
96
96
  className: l(h({ placement: e }), a),
97
97
  children: t
98
98
  }
@@ -101,21 +101,21 @@ const j = i(
101
101
  children: t,
102
102
  className: a,
103
103
  variant: e = "primary"
104
- }) => /* @__PURE__ */ r.jsx(
104
+ }) => /* @__PURE__ */ s.jsx(
105
105
  "header",
106
106
  {
107
107
  className: l(j({ variant: e }), a),
108
108
  role: "banner",
109
109
  children: t
110
110
  }
111
- ), Ba = Object.assign(T, {
111
+ ), Na = Object.assign(T, {
112
112
  Leading: B,
113
113
  Headline: w,
114
114
  Subtitle: N,
115
115
  Trailing: V,
116
116
  Center: S,
117
117
  Bottom: y
118
- }), z = i(
118
+ }), H = i(
119
119
  "sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-border shadow-xs z-40 safe-bottom px-8 py-1",
120
120
  {
121
121
  variants: {
@@ -137,7 +137,7 @@ const j = i(
137
137
  size: "md"
138
138
  }
139
139
  }
140
- ), H = i(
140
+ ), z = i(
141
141
  "flex flex-col items-center justify-center gap-1 px-2 py-1 select-none",
142
142
  {
143
143
  variants: {
@@ -150,38 +150,38 @@ const j = i(
150
150
  active: !1
151
151
  }
152
152
  }
153
- ), C = o(
154
- ({ icon: t, label: a, active: e = !1, className: s, ...n }, c) => /* @__PURE__ */ r.jsxs(
153
+ ), A = o(
154
+ ({ icon: t, label: a, active: e = !1, className: r, ...n }, c) => /* @__PURE__ */ s.jsxs(
155
155
  "div",
156
156
  {
157
157
  ref: c,
158
158
  "aria-current": e ? "page" : void 0,
159
- className: H({ active: e, className: s }),
159
+ className: z({ active: e, className: r }),
160
160
  ...n,
161
161
  children: [
162
162
  t,
163
- a && /* @__PURE__ */ r.jsx("span", { className: "text-xs mt-0.5", children: a })
163
+ a && /* @__PURE__ */ s.jsx("span", { className: "text-xs mt-0.5", children: a })
164
164
  ]
165
165
  }
166
166
  )
167
- ), A = ({
167
+ ), C = ({
168
168
  children: t,
169
169
  variant: a = "primary",
170
170
  size: e = "md",
171
- className: s,
171
+ className: r,
172
172
  ...n
173
- }) => /* @__PURE__ */ r.jsx(
173
+ }) => /* @__PURE__ */ s.jsx(
174
174
  "nav",
175
175
  {
176
176
  role: "navigation",
177
177
  "aria-label": "Bottom navigation",
178
- className: z({ variant: a, size: e, className: s }),
178
+ className: H({ variant: a, size: e, className: r }),
179
179
  ...n,
180
180
  children: t
181
181
  }
182
- ), wa = Object.assign(A, {
183
- Item: C
184
- }), L = i("flex", {
182
+ ), Va = Object.assign(C, {
183
+ Item: A
184
+ }), P = i("flex", {
185
185
  variants: {
186
186
  orientation: {
187
187
  horizontal: "flex-row",
@@ -213,23 +213,23 @@ const j = i(
213
213
  gap: "md",
214
214
  fluid: !1
215
215
  }
216
- }), Na = o(
216
+ }), Sa = o(
217
217
  function({
218
218
  className: a,
219
219
  children: e,
220
- orientation: s = "horizontal",
220
+ orientation: r = "horizontal",
221
221
  alignment: n = "start",
222
222
  gap: c = "md",
223
223
  fluid: p = !1,
224
- ...m
225
- }, d) {
226
- return /* @__PURE__ */ r.jsx(
224
+ ...d
225
+ }, m) {
226
+ return /* @__PURE__ */ s.jsx(
227
227
  "div",
228
228
  {
229
- ref: d,
229
+ ref: m,
230
230
  className: l(
231
- L({
232
- orientation: s,
231
+ P({
232
+ orientation: r,
233
233
  alignment: n,
234
234
  gap: c,
235
235
  fluid: p
@@ -237,12 +237,12 @@ const j = i(
237
237
  a
238
238
  ),
239
239
  role: "group",
240
- ...m,
240
+ ...d,
241
241
  children: e
242
242
  }
243
243
  );
244
244
  }
245
- ), P = i("flex", {
245
+ ), L = i("flex", {
246
246
  variants: {
247
247
  orientation: {
248
248
  horizontal: "flex-row",
@@ -274,23 +274,23 @@ const j = i(
274
274
  gap: "md",
275
275
  fluid: !1
276
276
  }
277
- }), Va = o(
277
+ }), Ta = o(
278
278
  function({
279
279
  className: a,
280
280
  children: e,
281
- orientation: s = "horizontal",
281
+ orientation: r = "horizontal",
282
282
  alignment: n = "start",
283
283
  gap: c = "md",
284
284
  fluid: p = !1,
285
- ...m
286
- }, d) {
287
- return /* @__PURE__ */ r.jsx(
285
+ ...d
286
+ }, m) {
287
+ return /* @__PURE__ */ s.jsx(
288
288
  "div",
289
289
  {
290
- ref: d,
290
+ ref: m,
291
291
  className: l(
292
- P({
293
- orientation: s,
292
+ L({
293
+ orientation: r,
294
294
  alignment: n,
295
295
  gap: c,
296
296
  fluid: p
@@ -298,7 +298,7 @@ const j = i(
298
298
  a
299
299
  ),
300
300
  role: "group",
301
- ...m,
301
+ ...d,
302
302
  children: e
303
303
  }
304
304
  );
@@ -335,23 +335,23 @@ const j = i(
335
335
  gap: "md",
336
336
  fluid: !1
337
337
  }
338
- }), Sa = o(
338
+ }), Ha = o(
339
339
  function({
340
340
  className: a,
341
341
  children: e,
342
- orientation: s = "horizontal",
342
+ orientation: r = "horizontal",
343
343
  alignment: n = "start",
344
344
  gap: c = "md",
345
345
  fluid: p = !1,
346
- ...m
347
- }, d) {
348
- return /* @__PURE__ */ r.jsx(
346
+ ...d
347
+ }, m) {
348
+ return /* @__PURE__ */ s.jsx(
349
349
  "div",
350
350
  {
351
- ref: d,
351
+ ref: m,
352
352
  className: l(
353
353
  G({
354
- orientation: s,
354
+ orientation: r,
355
355
  alignment: n,
356
356
  gap: c,
357
357
  fluid: p
@@ -359,59 +359,59 @@ const j = i(
359
359
  a
360
360
  ),
361
361
  role: "group",
362
- ...m,
362
+ ...d,
363
363
  children: e
364
364
  }
365
365
  );
366
366
  }
367
- ), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"), Ta = o(
368
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
367
+ ), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"), za = o(
368
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
369
369
  "div",
370
370
  {
371
- ref: s,
371
+ ref: r,
372
372
  className: l(R(), a),
373
373
  ...e,
374
374
  children: t
375
375
  }
376
376
  )
377
- ), k = i("w-full mt-4"), I = i(
377
+ ), I = i("w-full mt-4"), k = i(
378
378
  "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
379
379
  ), F = i("mb-4 px-4 sm:px-6"), O = i(
380
380
  "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
381
381
  ), W = i("flex items-center gap-2 flex-wrap"), M = i(
382
- "flex flex-col sm:flex-row gap-2 sm:gap-3 w-full sm:w-auto sm:ml-auto sm:shrink-0 [&>*]:w-full sm:[&>*]:w-auto"
383
- ), E = i(
382
+ "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"
383
+ ), E = i("md:hidden"), $ = i(
384
384
  "w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
385
- ), $ = o(
386
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
385
+ ), q = o(
386
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
387
387
  "div",
388
388
  {
389
- ref: s,
390
- className: l(I(), a),
389
+ ref: r,
390
+ className: l(k(), a),
391
391
  "data-versaur-page-header-top": !0,
392
392
  ...e,
393
393
  children: t
394
394
  }
395
395
  )
396
- ), q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
396
+ ), D = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
397
397
  "div",
398
398
  {
399
- ref: s,
399
+ ref: r,
400
400
  className: l(F(), a),
401
401
  "data-versaur-page-header-breadcrumbs": !0,
402
402
  ...e,
403
403
  children: t
404
404
  }
405
- )), D = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
405
+ )), J = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
406
406
  "div",
407
407
  {
408
- ref: s,
408
+ ref: r,
409
409
  className: l(O(), a),
410
410
  "data-versaur-page-header-content": !0,
411
411
  ...e,
412
412
  children: t
413
413
  }
414
- )), J = o((t, a) => /* @__PURE__ */ r.jsx(
414
+ )), K = o((t, a) => /* @__PURE__ */ s.jsx(
415
415
  u,
416
416
  {
417
417
  ...t,
@@ -421,7 +421,7 @@ const j = i(
421
421
  ellipsis: !0,
422
422
  ref: a
423
423
  }
424
- )), K = o(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
424
+ )), Q = o(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
425
425
  u,
426
426
  {
427
427
  as: "p",
@@ -432,70 +432,83 @@ const j = i(
432
432
  className: l("mb-2 sm:clamp-3", t),
433
433
  ...a
434
434
  }
435
- )), Q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
435
+ )), U = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
436
436
  "div",
437
437
  {
438
- ref: s,
438
+ ref: r,
439
439
  className: l(W(), a),
440
440
  "data-versaur-page-header-badges": !0,
441
441
  ...e,
442
442
  children: t
443
443
  }
444
- )), U = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
444
+ )), X = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
445
445
  "div",
446
446
  {
447
- ref: s,
447
+ ref: r,
448
448
  className: l(M(), a),
449
449
  "data-versaur-page-header-actions": !0,
450
450
  ...e,
451
451
  children: t
452
452
  }
453
- )), X = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
453
+ )), Y = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
454
454
  "div",
455
455
  {
456
- ref: s,
456
+ ref: r,
457
457
  className: l(E(), a),
458
+ "data-versaur-page-header-mobile-actions": !0,
459
+ ...e,
460
+ children: t
461
+ }
462
+ )), Z = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
463
+ "div",
464
+ {
465
+ ref: r,
466
+ className: l($(), a),
458
467
  "data-versaur-page-header-bottom": !0,
459
468
  ...e,
460
469
  children: t
461
470
  }
462
- )), Y = o(
471
+ )), _ = o(
463
472
  ({
464
473
  children: t,
465
474
  className: a,
466
475
  title: e,
467
- subtitle: s,
476
+ subtitle: r,
468
477
  breadcrumbs: n,
469
478
  badges: c,
470
479
  actions: p,
480
+ mobileActions: d,
471
481
  tabs: m,
472
- ...d
473
- }, f) => {
474
- const g = e || s || n || c || p, v = m;
475
- return /* @__PURE__ */ r.jsxs(
482
+ ...f
483
+ }, g) => {
484
+ const v = m;
485
+ return /* @__PURE__ */ s.jsxs(
476
486
  "header",
477
487
  {
478
- ref: f,
479
- className: l(k(), a),
488
+ ref: g,
489
+ className: l(I(), a),
480
490
  role: "banner",
481
- ...d,
491
+ ...f,
482
492
  children: [
483
- n && /* @__PURE__ */ r.jsx(q, { children: n }),
484
- g && /* @__PURE__ */ r.jsxs($, { children: [
485
- /* @__PURE__ */ r.jsxs(D, { children: [
486
- e && /* @__PURE__ */ r.jsx(J, { children: e }),
487
- s && /* @__PURE__ */ r.jsx(K, { children: s }),
488
- c && /* @__PURE__ */ r.jsx(Q, { children: c })
493
+ n && /* @__PURE__ */ s.jsx(D, { children: n }),
494
+ /* @__PURE__ */ s.jsxs(q, { children: [
495
+ /* @__PURE__ */ s.jsxs(J, { children: [
496
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
497
+ /* @__PURE__ */ s.jsx(K, { children: e }),
498
+ d && /* @__PURE__ */ s.jsx(Y, { children: d })
499
+ ] }),
500
+ r && /* @__PURE__ */ s.jsx(Q, { children: r }),
501
+ c && /* @__PURE__ */ s.jsx(U, { children: c })
489
502
  ] }),
490
- p && /* @__PURE__ */ r.jsx(U, { children: p })
503
+ p && /* @__PURE__ */ s.jsx(X, { children: p })
491
504
  ] }),
492
- v && /* @__PURE__ */ r.jsx(X, { children: m }),
505
+ v && /* @__PURE__ */ s.jsx(Z, { children: m }),
493
506
  t
494
507
  ]
495
508
  }
496
509
  );
497
510
  }
498
- ), za = Y, Z = i("w-full mx-auto relative", {
511
+ ), Aa = _, aa = i("w-full mx-auto relative", {
499
512
  variants: {
500
513
  type: {
501
514
  desktop: "max-w-7xl px-6 pb-10",
@@ -506,19 +519,19 @@ const j = i(
506
519
  defaultVariants: {
507
520
  type: "desktop"
508
521
  }
509
- }), Ha = b.forwardRef(
510
- function({ type: a = "desktop", className: e, children: s, ...n }, c) {
511
- return /* @__PURE__ */ r.jsx(
522
+ }), Ca = b.forwardRef(
523
+ function({ type: a = "desktop", className: e, children: r, ...n }, c) {
524
+ return /* @__PURE__ */ s.jsx(
512
525
  "div",
513
526
  {
514
527
  ref: c,
515
- className: l(Z({ type: a }), e),
528
+ className: l(aa({ type: a }), e),
516
529
  ...n,
517
- children: s
530
+ children: r
518
531
  }
519
532
  );
520
533
  }
521
- ), _ = i("grid w-full gap-4 grid-cols-12"), aa = i("", {
534
+ ), ea = i("grid w-full gap-4 grid-cols-12"), ta = i("", {
522
535
  variants: {
523
536
  span: {
524
537
  1: "col-span-1",
@@ -538,36 +551,36 @@ const j = i(
538
551
  defaultVariants: {
539
552
  span: "4"
540
553
  }
541
- }), ea = o(
542
- function({ className: a, children: e, ...s }, n) {
543
- return /* @__PURE__ */ r.jsx(
554
+ }), sa = o(
555
+ function({ className: a, children: e, ...r }, n) {
556
+ return /* @__PURE__ */ s.jsx(
544
557
  "div",
545
558
  {
546
559
  ref: n,
547
- className: l(_(), a),
548
- ...s,
560
+ className: l(ea(), a),
561
+ ...r,
549
562
  children: e
550
563
  }
551
564
  );
552
565
  }
553
- ), ta = o(
554
- function({ span: a = 4, className: e, children: s, ...n }, c) {
566
+ ), ra = o(
567
+ function({ span: a = 4, className: e, children: r, ...n }, c) {
555
568
  const p = Math.min(12, Math.max(1, a));
556
- return /* @__PURE__ */ r.jsx(
569
+ return /* @__PURE__ */ s.jsx(
557
570
  "div",
558
571
  {
559
572
  ref: c,
560
573
  className: l(
561
- aa({ span: `${p}` }),
574
+ ta({ span: `${p}` }),
562
575
  e
563
576
  ),
564
577
  ...n,
565
- children: s
578
+ children: r
566
579
  }
567
580
  );
568
581
  }
569
- ), Ca = Object.assign(ea, {
570
- Column: ta
582
+ ), Pa = Object.assign(sa, {
583
+ Column: ra
571
584
  }), x = i(
572
585
  "flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
573
586
  {
@@ -586,12 +599,12 @@ const j = i(
586
599
  disabled: !1
587
600
  }
588
601
  }
589
- ), sa = o(
602
+ ), na = o(
590
603
  (t, a) => {
591
- const { icon: e, children: s, href: n, onClick: c, active: p, ...m } = t;
604
+ const { icon: e, children: r, href: n, onClick: c, active: p, ...d } = t;
592
605
  if (typeof n == "string") {
593
- const f = m;
594
- return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
606
+ const f = d;
607
+ return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
595
608
  "a",
596
609
  {
597
610
  ref: a,
@@ -603,13 +616,13 @@ const j = i(
603
616
  ...f,
604
617
  children: [
605
618
  e,
606
- /* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
619
+ /* @__PURE__ */ s.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: r })
607
620
  ]
608
621
  }
609
622
  ) });
610
623
  } else {
611
- const f = m;
612
- return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
624
+ const f = d;
625
+ return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
613
626
  "button",
614
627
  {
615
628
  ref: a,
@@ -622,16 +635,16 @@ const j = i(
622
635
  ...f,
623
636
  children: [
624
637
  e,
625
- /* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
638
+ /* @__PURE__ */ s.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: r })
626
639
  ]
627
640
  }
628
641
  ) });
629
642
  }
630
643
  }
631
- ), ra = o(
632
- function({ children: a, label: e, ...s }, n) {
633
- return /* @__PURE__ */ r.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...s, children: [
634
- /* @__PURE__ */ r.jsx(
644
+ ), oa = o(
645
+ function({ children: a, label: e, ...r }, n) {
646
+ return /* @__PURE__ */ s.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
647
+ /* @__PURE__ */ s.jsx(
635
648
  u,
636
649
  {
637
650
  as: "h2",
@@ -642,30 +655,30 @@ const j = i(
642
655
  children: e
643
656
  }
644
657
  ),
645
- /* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1", children: a })
658
+ /* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1", children: a })
646
659
  ] });
647
660
  }
648
- ), na = o(
649
- ({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
661
+ ), ia = o(
662
+ ({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
650
663
  "nav",
651
664
  {
652
665
  ref: e,
653
666
  className: "w-56 bg-background border-r border-border flex flex-col my-2",
654
667
  "aria-label": "Sidebar",
655
668
  ...a,
656
- 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 }) })
669
+ 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 }) })
657
670
  }
658
671
  )
659
- ), Aa = Object.assign(na, {
660
- Item: sa,
661
- Group: ra
662
- }), oa = i(
672
+ ), La = Object.assign(ia, {
673
+ Item: na,
674
+ Group: oa
675
+ }), la = i(
663
676
  "w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
664
677
  {
665
678
  variants: {},
666
679
  defaultVariants: {}
667
680
  }
668
- ), ia = i("flex items-center gap-3 min-w-0 flex-1"), la = i("flex items-center gap-2 ml-auto"), ca = i(
681
+ ), ca = i("flex items-center gap-3 min-w-0 flex-1"), pa = i("flex items-center gap-2 ml-auto"), da = i(
669
682
  "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
670
683
  {
671
684
  variants: {
@@ -678,54 +691,54 @@ const j = i(
678
691
  active: !1
679
692
  }
680
693
  }
681
- ), pa = i("flex items-center gap-2 ml-4"), ma = i("flex items-center gap-2 mr-4"), da = o(
682
- function({ children: a, className: e, ...s }, n) {
683
- return /* @__PURE__ */ r.jsx("nav", { ref: n, className: pa({ className: e }), ...s, children: a });
684
- }
685
- ), ua = o(
686
- function({ children: a, className: e, ...s }, n) {
687
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: ma({ className: e }), ...s, children: a });
688
- }
689
- ), fa = o(
690
- function({ children: a, className: e, ...s }, n) {
691
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: ia({ className: e }), ...s, children: a });
694
+ ), ma = i("flex items-center gap-2 ml-4"), ua = i("flex items-center gap-2 mr-4"), fa = o(
695
+ function({ children: a, className: e, ...r }, n) {
696
+ return /* @__PURE__ */ s.jsx("nav", { ref: n, className: ma({ className: e }), ...r, children: a });
692
697
  }
693
698
  ), xa = o(
694
- function({ children: a, className: e, ...s }, n) {
695
- return /* @__PURE__ */ r.jsx("div", { ref: n, className: la({ className: e }), ...s, children: a });
699
+ function({ children: a, className: e, ...r }, n) {
700
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: ua({ className: e }), ...r, children: a });
696
701
  }
697
702
  ), ga = o(
698
- function({ children: a, className: e, active: s, ...n }, c) {
699
- return /* @__PURE__ */ r.jsx(
703
+ function({ children: a, className: e, ...r }, n) {
704
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: ca({ className: e }), ...r, children: a });
705
+ }
706
+ ), va = o(
707
+ function({ children: a, className: e, ...r }, n) {
708
+ return /* @__PURE__ */ s.jsx("div", { ref: n, className: pa({ className: e }), ...r, children: a });
709
+ }
710
+ ), ba = o(
711
+ function({ children: a, className: e, active: r, ...n }, c) {
712
+ return /* @__PURE__ */ s.jsx(
700
713
  "div",
701
714
  {
702
715
  ref: c,
703
- className: ca({ active: s, className: e }),
704
- "aria-current": s ? "page" : void 0,
716
+ className: da({ active: r, className: e }),
717
+ "aria-current": r ? "page" : void 0,
705
718
  ...n,
706
719
  children: a
707
720
  }
708
721
  );
709
722
  }
710
- ), va = o(
711
- ({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx("header", { ref: s, className: oa({ className: a }), ...e, children: t })
712
- ), La = Object.assign(va, {
713
- Leading: fa,
714
- Trailing: xa,
715
- NavItem: ga,
716
- Nav: da,
717
- Actions: ua
723
+ ), ja = o(
724
+ ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: la({ className: a }), ...e, children: t })
725
+ ), Ga = Object.assign(ja, {
726
+ Leading: ga,
727
+ Trailing: va,
728
+ NavItem: ba,
729
+ Nav: fa,
730
+ Actions: xa
718
731
  });
719
732
  export {
720
- Ba as A,
721
- wa as B,
722
- Sa as F,
723
- Ta as P,
724
- Aa as S,
725
- La as T,
726
- Na as a,
727
- Va as b,
728
- za as c,
729
- Ha as d,
730
- Ca as e
733
+ Na as A,
734
+ Va as B,
735
+ Ha as F,
736
+ za as P,
737
+ La as S,
738
+ Ga as T,
739
+ Sa as a,
740
+ Ta as b,
741
+ Aa as c,
742
+ Ca as d,
743
+ Pa as e
731
744
  };