@dimasbaguspm/versaur 0.0.58 → 0.0.59

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,932 +0,0 @@
1
- import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
- import { c as i, a as l } from "./index-BDtz_hQY.js";
3
- import * as b from "react";
4
- import { forwardRef as o } from "react";
5
- import { n as x } from "./image-rectangle-CCvXv24a.js";
6
- import "./snackbar-CTq4MLir.js";
7
- import { L as w } from "./skeleton-BRwIW26B.js";
8
- const y = i(
9
- "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",
10
- {
11
- variants: {
12
- variant: {
13
- primary: "",
14
- secondary: "",
15
- tertiary: "",
16
- ghost: "",
17
- neutral: ""
18
- }
19
- },
20
- defaultVariants: {
21
- variant: "primary"
22
- }
23
- }
24
- ), B = i(
25
- "flex flex-col justify-center min-w-0 flex-grow",
26
- {
27
- variants: {
28
- placement: {
29
- start: "items-start",
30
- center: "items-center",
31
- end: "items-end"
32
- }
33
- },
34
- defaultVariants: {
35
- placement: "start"
36
- }
37
- }
38
- ), N = o(
39
- ({ children: r, className: a }, e) => /* @__PURE__ */ t.jsx(
40
- "div",
41
- {
42
- ref: e,
43
- "data-versaur-appbar-bottom": !0,
44
- className: l("w-full flex items-center min-h-[2.5rem] mt-2", a),
45
- children: r
46
- }
47
- )
48
- ), V = o(
49
- ({ children: r, className: a }, e) => /* @__PURE__ */ t.jsx(
50
- "div",
51
- {
52
- ref: e,
53
- className: l("flex items-center", a),
54
- "data-versaur-appbar-leading": !0,
55
- children: r
56
- }
57
- )
58
- ), z = o(({ children: r, ...a }, e) => /* @__PURE__ */ t.jsx(
59
- x,
60
- {
61
- ...a,
62
- as: "h1",
63
- ref: e,
64
- fontSize: "lg",
65
- fontWeight: "semibold",
66
- ellipsis: !0,
67
- clamp: 1,
68
- children: r
69
- }
70
- )), S = o(({ children: r, ...a }, e) => /* @__PURE__ */ t.jsx(
71
- x,
72
- {
73
- ...a,
74
- ref: e,
75
- as: "p",
76
- fontSize: "xs",
77
- fontWeight: "normal",
78
- ellipsis: !0,
79
- clamp: 1,
80
- color: "gray",
81
- children: r
82
- }
83
- )), T = o(
84
- ({ children: r, className: a }, e) => /* @__PURE__ */ t.jsx(
85
- "div",
86
- {
87
- ref: e,
88
- className: l("flex items-center justify-end gap-2", a),
89
- "data-versaur-appbar-trailing": !0,
90
- children: r
91
- }
92
- )
93
- ), C = o(
94
- ({ children: r, className: a, placement: e }, s) => /* @__PURE__ */ t.jsx(
95
- "div",
96
- {
97
- ref: s,
98
- className: l(B({ placement: e }), a),
99
- children: r
100
- }
101
- )
102
- ), H = ({
103
- children: r,
104
- className: a,
105
- variant: e = "primary"
106
- }) => /* @__PURE__ */ t.jsx(
107
- "header",
108
- {
109
- className: l(y({ variant: e }), a),
110
- role: "banner",
111
- children: r
112
- }
113
- ), Aa = Object.assign(H, {
114
- Leading: V,
115
- Headline: z,
116
- Subtitle: S,
117
- Trailing: T,
118
- Center: C,
119
- Bottom: N
120
- }), L = i(
121
- "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",
122
- {
123
- variants: {
124
- variant: {
125
- primary: "",
126
- secondary: "",
127
- ghost: "",
128
- neutral: "",
129
- tertiary: ""
130
- },
131
- size: {
132
- sm: "h-12 text-sm",
133
- md: "h-16 text-base",
134
- lg: "h-20 text-lg"
135
- }
136
- },
137
- defaultVariants: {
138
- variant: "primary",
139
- size: "md"
140
- }
141
- }
142
- ), A = i(
143
- "flex flex-col items-center justify-center gap-1",
144
- {
145
- variants: {
146
- active: {
147
- true: "text-primary",
148
- false: "text-ghost"
149
- },
150
- as: {
151
- button: "transition-all duration-200 h-8 w-8 outline-none cursor-pointer active:scale-98 focus-visible:ring-2 focus-visible:ring-primary-light focus-visible:rounded-full",
152
- div: ""
153
- }
154
- },
155
- defaultVariants: {
156
- active: !1,
157
- as: "button"
158
- }
159
- }
160
- ), P = o(
161
- ({
162
- as: r = "button",
163
- icon: a,
164
- label: e,
165
- active: s = !1,
166
- className: n,
167
- children: c,
168
- ...d
169
- }, u) => /* @__PURE__ */ t.jsxs(
170
- r,
171
- {
172
- ref: u,
173
- "aria-current": s ? "page" : void 0,
174
- className: A({ active: s, className: n, as: r }),
175
- ...d,
176
- children: [
177
- a && a,
178
- c && c,
179
- e && /* @__PURE__ */ t.jsx("span", { className: "text-xs mt-0.5", children: e })
180
- ]
181
- }
182
- )
183
- ), I = ({
184
- children: r,
185
- variant: a = "primary",
186
- size: e = "md",
187
- className: s,
188
- ...n
189
- }) => /* @__PURE__ */ t.jsx(
190
- "nav",
191
- {
192
- role: "navigation",
193
- "aria-label": "Bottom navigation",
194
- className: L({ variant: a, size: e, className: s }),
195
- ...n,
196
- children: r
197
- }
198
- ), Pa = Object.assign(I, {
199
- Item: P
200
- }), R = i("flex items-center", {
201
- variants: {
202
- orientation: {
203
- horizontal: "flex-row",
204
- vertical: "flex-col"
205
- },
206
- alignment: {
207
- start: "justify-start",
208
- center: "justify-center",
209
- end: "justify-end",
210
- between: "justify-between",
211
- around: "justify-around",
212
- evenly: "justify-evenly"
213
- },
214
- gap: {
215
- xs: "gap-1",
216
- sm: "gap-2",
217
- md: "gap-3",
218
- lg: "gap-4",
219
- xl: "gap-6"
220
- },
221
- fluid: {
222
- true: "[&>*]:flex-1",
223
- false: ""
224
- },
225
- overlay: {
226
- true: "flex-nowrap overflow-x-auto",
227
- false: "flex-wrap"
228
- }
229
- },
230
- defaultVariants: {
231
- orientation: "horizontal",
232
- alignment: "start",
233
- gap: "md",
234
- fluid: !1,
235
- overlay: !1
236
- }
237
- }), Ia = o(
238
- function({
239
- className: a,
240
- children: e,
241
- orientation: s = "horizontal",
242
- alignment: n = "start",
243
- gap: c = "md",
244
- fluid: d = !1,
245
- hasMargin: u,
246
- overlay: p = !1,
247
- ...m
248
- }, f) {
249
- return /* @__PURE__ */ t.jsx(
250
- "div",
251
- {
252
- ref: f,
253
- className: l(
254
- R({
255
- orientation: s,
256
- alignment: n,
257
- gap: c,
258
- fluid: d,
259
- overlay: p
260
- }),
261
- u && "mb-4",
262
- a
263
- ),
264
- role: "group",
265
- ...m,
266
- children: e
267
- }
268
- );
269
- }
270
- ), G = i("flex items-center", {
271
- variants: {
272
- orientation: {
273
- horizontal: "flex-row",
274
- vertical: "flex-col"
275
- },
276
- alignment: {
277
- start: "justify-start",
278
- center: "justify-center",
279
- end: "justify-end",
280
- between: "justify-between",
281
- around: "justify-around",
282
- evenly: "justify-evenly"
283
- },
284
- gap: {
285
- xs: "gap-1",
286
- sm: "gap-2",
287
- md: "gap-3",
288
- lg: "gap-4",
289
- xl: "gap-6"
290
- },
291
- fluid: {
292
- true: "[&>*]:flex-1",
293
- false: ""
294
- },
295
- overlay: {
296
- true: "flex-nowrap overflow-x-auto",
297
- false: "flex-wrap"
298
- }
299
- },
300
- defaultVariants: {
301
- orientation: "horizontal",
302
- alignment: "start",
303
- gap: "md",
304
- fluid: !1,
305
- overlay: !1
306
- }
307
- }), Ra = o(
308
- function({
309
- className: a,
310
- children: e,
311
- orientation: s = "horizontal",
312
- alignment: n = "start",
313
- gap: c = "md",
314
- fluid: d = !1,
315
- hasMargin: u,
316
- overlay: p = !1,
317
- ...m
318
- }, f) {
319
- return /* @__PURE__ */ t.jsx(
320
- "div",
321
- {
322
- ref: f,
323
- className: l(
324
- G({
325
- orientation: s,
326
- alignment: n,
327
- gap: c,
328
- fluid: d,
329
- overlay: p
330
- }),
331
- u && "mb-4",
332
- a
333
- ),
334
- role: "group",
335
- ...m,
336
- children: e
337
- }
338
- );
339
- }
340
- ), k = i("flex items-center", {
341
- variants: {
342
- orientation: {
343
- horizontal: "flex-row",
344
- vertical: "flex-col"
345
- },
346
- alignment: {
347
- start: "justify-start",
348
- center: "justify-center",
349
- end: "justify-end",
350
- between: "justify-between",
351
- around: "justify-around",
352
- evenly: "justify-evenly"
353
- },
354
- gap: {
355
- xs: "gap-1",
356
- sm: "gap-2",
357
- md: "gap-3",
358
- lg: "gap-4",
359
- xl: "gap-6"
360
- },
361
- fluid: {
362
- true: "[&>*]:flex-1",
363
- false: ""
364
- },
365
- overlay: {
366
- true: "flex-nowrap overflow-x-auto",
367
- false: "flex-wrap"
368
- }
369
- },
370
- defaultVariants: {
371
- orientation: "horizontal",
372
- alignment: "start",
373
- gap: "md",
374
- fluid: !1,
375
- overlay: !1
376
- }
377
- }), Ga = o(
378
- function({
379
- className: a,
380
- children: e,
381
- orientation: s = "horizontal",
382
- alignment: n = "start",
383
- gap: c = "md",
384
- fluid: d = !1,
385
- hasMargin: u,
386
- overlay: p = !1,
387
- ...m
388
- }, f) {
389
- return /* @__PURE__ */ t.jsx(
390
- "div",
391
- {
392
- ref: f,
393
- className: l(
394
- k({
395
- orientation: s,
396
- alignment: n,
397
- gap: c,
398
- fluid: d,
399
- overlay: p
400
- }),
401
- u && "mb-4",
402
- a
403
- ),
404
- role: "group",
405
- ...m,
406
- children: e
407
- }
408
- );
409
- }
410
- ), F = i("w-full mb-4", {
411
- variants: {
412
- backgroundColor: {
413
- white: "bg-white",
414
- gray: "bg-neutral"
415
- }
416
- },
417
- defaultVariants: {
418
- backgroundColor: "white"
419
- }
420
- }), O = i("w-full mx-auto pt-4 md:pt-10", {
421
- variants: {
422
- size: {
423
- fluid: "max-w-full",
424
- wide: "max-w-7xl",
425
- narrow: "max-w-3xl"
426
- }
427
- },
428
- defaultVariants: {
429
- size: "fluid"
430
- }
431
- }), W = i(
432
- "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4",
433
- {
434
- variants: {
435
- size: {
436
- fluid: "px-0",
437
- wide: "px-6",
438
- narrow: "px-4"
439
- }
440
- },
441
- defaultVariants: {
442
- size: "fluid"
443
- }
444
- }
445
- ), M = i("mb-4", {
446
- variants: {
447
- size: {
448
- fluid: "px-0",
449
- wide: "px-6",
450
- narrow: "px-4"
451
- }
452
- },
453
- defaultVariants: {
454
- size: "fluid"
455
- }
456
- }), E = i(
457
- "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
458
- ), $ = i("flex items-center gap-2 flex-wrap"), q = i(
459
- "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"
460
- ), D = i("md:hidden"), J = i(
461
- "w-full flex items-center py-0 overflow-x-auto"
462
- ), K = o(
463
- ({ children: r, className: a, size: e = "fluid", ...s }, n) => /* @__PURE__ */ t.jsx(
464
- "div",
465
- {
466
- ref: n,
467
- className: l(W({ size: e }), a),
468
- "data-versaur-page-header-top": !0,
469
- ...s,
470
- children: r
471
- }
472
- )
473
- ), Q = o(({ children: r, className: a, size: e = "fluid", ...s }, n) => /* @__PURE__ */ t.jsx(
474
- "div",
475
- {
476
- ref: n,
477
- className: l(M({ size: e }), a),
478
- "data-versaur-page-header-breadcrumbs": !0,
479
- ...s,
480
- children: r
481
- }
482
- )), U = o(({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
483
- "div",
484
- {
485
- ref: s,
486
- className: l(E(), a),
487
- "data-versaur-page-header-content": !0,
488
- ...e,
489
- children: r
490
- }
491
- )), X = o((r, a) => /* @__PURE__ */ t.jsx(
492
- x,
493
- {
494
- ...r,
495
- as: "h1",
496
- fontSize: "xl",
497
- fontWeight: "semibold",
498
- ellipsis: !0,
499
- ref: a
500
- }
501
- )), Y = o(({ className: r, ...a }, e) => /* @__PURE__ */ t.jsx(
502
- x,
503
- {
504
- as: "p",
505
- fontSize: "sm",
506
- fontWeight: "normal",
507
- clamp: 2,
508
- ref: e,
509
- className: l("mb-2 sm:clamp-3", r),
510
- ...a
511
- }
512
- )), Z = o(({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
513
- "div",
514
- {
515
- ref: s,
516
- className: l($(), a),
517
- "data-versaur-page-header-badges": !0,
518
- ...e,
519
- children: r
520
- }
521
- )), _ = o(({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
522
- "div",
523
- {
524
- ref: s,
525
- className: l(q(), a),
526
- "data-versaur-page-header-actions": !0,
527
- ...e,
528
- children: r
529
- }
530
- )), aa = o(({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
531
- "div",
532
- {
533
- ref: s,
534
- className: l(D(), a),
535
- "data-versaur-page-header-mobile-actions": !0,
536
- ...e,
537
- children: r
538
- }
539
- )), ea = o(({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx(
540
- "div",
541
- {
542
- ref: s,
543
- className: l(J(), a),
544
- "data-versaur-page-header-bottom": !0,
545
- ...e,
546
- children: r
547
- }
548
- )), ta = o(
549
- ({
550
- children: r,
551
- className: a,
552
- size: e = "fluid",
553
- backgroundColor: s = "white",
554
- title: n,
555
- subtitle: c,
556
- breadcrumbs: d,
557
- badges: u,
558
- actions: p,
559
- mobileActions: m,
560
- tabs: f,
561
- ...g
562
- }, h) => {
563
- const j = f;
564
- return /* @__PURE__ */ t.jsx(
565
- "header",
566
- {
567
- ref: h,
568
- className: l(F({ backgroundColor: s })),
569
- role: "banner",
570
- ...g,
571
- children: /* @__PURE__ */ t.jsxs("div", { className: l(O({ size: e }), a), children: [
572
- d && /* @__PURE__ */ t.jsx(Q, { size: e, children: d }),
573
- /* @__PURE__ */ t.jsxs(K, { size: e, children: [
574
- /* @__PURE__ */ t.jsxs(U, { children: [
575
- /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
576
- /* @__PURE__ */ t.jsx(X, { children: n }),
577
- m && /* @__PURE__ */ t.jsx(aa, { children: m })
578
- ] }),
579
- c && /* @__PURE__ */ t.jsx(Y, { children: c }),
580
- u && /* @__PURE__ */ t.jsx(Z, { children: u })
581
- ] }),
582
- p && /* @__PURE__ */ t.jsx(_, { children: p })
583
- ] }),
584
- j && /* @__PURE__ */ t.jsx(ea, { children: f }),
585
- r
586
- ] })
587
- }
588
- );
589
- }
590
- ), ka = ta, ra = i("w-full", {
591
- variants: {
592
- backgroundColor: {
593
- white: "bg-white",
594
- gray: "bg-neutral"
595
- }
596
- },
597
- defaultVariants: {
598
- backgroundColor: "white"
599
- }
600
- }), sa = i("w-full mx-auto relative", {
601
- variants: {
602
- size: {
603
- fluid: "max-w-full px-0",
604
- wide: "max-w-7xl px-6 pb-10",
605
- narrow: "max-w-3xl px-4 pb-10"
606
- },
607
- template: {
608
- "single-column": "grid grid-cols-1",
609
- "two-column": "grid grid-cols-1 md:grid-cols-2 gap-6",
610
- "two-column-asymmetric-left": "grid grid-cols-1 md:grid-cols-3 gap-6",
611
- "two-column-asymmetric-right": "grid grid-cols-1 md:grid-cols-3 gap-6"
612
- }
613
- },
614
- defaultVariants: {
615
- size: "fluid",
616
- template: "single-column"
617
- }
618
- }), Fa = b.forwardRef(
619
- function({
620
- size: a = "fluid",
621
- template: e = "single-column",
622
- backgroundColor: s = "white",
623
- className: n,
624
- children: c,
625
- ...d
626
- }, u) {
627
- return /* @__PURE__ */ t.jsx(
628
- "div",
629
- {
630
- ref: u,
631
- className: l(ra({ backgroundColor: s })),
632
- ...d,
633
- children: /* @__PURE__ */ t.jsx(
634
- "div",
635
- {
636
- className: l(
637
- sa({ size: a, template: e }),
638
- n
639
- ),
640
- children: /* @__PURE__ */ t.jsx("div", { children: c })
641
- }
642
- )
643
- }
644
- );
645
- }
646
- ), na = i(
647
- [
648
- // Base styles: flex container that centers content
649
- "flex",
650
- "items-center",
651
- "justify-center",
652
- "flex-col",
653
- "gap-3",
654
- // Ensure it takes available space
655
- "flex-grow",
656
- "w-full"
657
- ],
658
- {
659
- variants: {
660
- minimal: {
661
- false: [
662
- // Full height for standalone page loading
663
- "min-h-96",
664
- "h-full"
665
- ],
666
- true: [
667
- // Minimal height for inline loading states
668
- "min-h-32",
669
- "py-8"
670
- ]
671
- },
672
- fullscreen: {
673
- true: ["fixed", "inset-0", "z-100", "bg-background"],
674
- false: []
675
- }
676
- },
677
- defaultVariants: {
678
- minimal: !1,
679
- fullscreen: !1
680
- }
681
- }
682
- ), oa = i([
683
- "text-foreground-light",
684
- "text-sm",
685
- "text-center",
686
- "max-w-xs"
687
- ]), Oa = b.forwardRef(
688
- function({
689
- type: a = "bar",
690
- size: e = "sm",
691
- color: s = "primary",
692
- ariaLabel: n = "Loading page",
693
- message: c,
694
- fullscreen: d = !1,
695
- minimal: u = !1,
696
- className: p,
697
- children: m,
698
- ...f
699
- }, g) {
700
- return /* @__PURE__ */ t.jsxs(
701
- "div",
702
- {
703
- ref: g,
704
- className: l(na({ minimal: u, fullscreen: d }), p),
705
- ...f,
706
- children: [
707
- /* @__PURE__ */ t.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ t.jsx(
708
- w,
709
- {
710
- type: a,
711
- size: e,
712
- color: s,
713
- ariaLabel: n
714
- }
715
- ) }),
716
- c && /* @__PURE__ */ t.jsx("p", { className: oa(), "aria-live": "polite", children: c }),
717
- m
718
- ]
719
- }
720
- );
721
- }
722
- ), ia = i("grid w-full gap-4 grid-cols-12"), la = i("", {
723
- variants: {
724
- span: {
725
- 1: "col-span-1",
726
- 2: "col-span-2",
727
- 3: "col-span-3",
728
- 4: "col-span-4",
729
- 5: "col-span-5",
730
- 6: "col-span-6",
731
- 7: "col-span-7",
732
- 8: "col-span-8",
733
- 9: "col-span-9",
734
- 10: "col-span-10",
735
- 11: "col-span-11",
736
- 12: "col-span-12"
737
- }
738
- },
739
- defaultVariants: {
740
- span: "4"
741
- }
742
- }), ca = o(
743
- function({ className: a, children: e, ...s }, n) {
744
- return /* @__PURE__ */ t.jsx(
745
- "div",
746
- {
747
- ref: n,
748
- className: l(ia(), a),
749
- ...s,
750
- children: e
751
- }
752
- );
753
- }
754
- ), da = o(
755
- function({ span: a = 4, className: e, children: s, ...n }, c) {
756
- const d = Math.min(12, Math.max(1, a));
757
- return /* @__PURE__ */ t.jsx(
758
- "div",
759
- {
760
- ref: c,
761
- className: l(
762
- la({ span: `${d}` }),
763
- e
764
- ),
765
- ...n,
766
- children: s
767
- }
768
- );
769
- }
770
- ), Wa = Object.assign(ca, {
771
- Column: da
772
- }), v = i(
773
- "flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
774
- {
775
- variants: {
776
- active: {
777
- true: "bg-primary/10 text-primary",
778
- false: "text-ghost"
779
- },
780
- disabled: {
781
- true: "opacity-50 pointer-events-none",
782
- false: ""
783
- }
784
- },
785
- defaultVariants: {
786
- active: !1,
787
- disabled: !1
788
- }
789
- }
790
- ), ua = o(
791
- (r, a) => {
792
- const { icon: e, children: s, href: n, onClick: c, active: d, ...u } = r;
793
- if (typeof n == "string") {
794
- const m = u;
795
- return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
796
- "a",
797
- {
798
- ref: a,
799
- href: n,
800
- className: v({
801
- disabled: !!r["aria-disabled"],
802
- active: d
803
- }),
804
- ...m,
805
- children: [
806
- e,
807
- /* @__PURE__ */ t.jsx(x, { as: "span", color: "inherit", fontSize: "sm", children: s })
808
- ]
809
- }
810
- ) });
811
- } else {
812
- const m = u;
813
- return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
814
- "button",
815
- {
816
- ref: a,
817
- type: "button",
818
- onClick: c,
819
- className: l(
820
- v({ disabled: !!m.disabled, active: d }),
821
- "w-full text-left"
822
- ),
823
- ...m,
824
- children: [
825
- e,
826
- /* @__PURE__ */ t.jsx(x, { as: "span", color: "inherit", fontSize: "sm", children: s })
827
- ]
828
- }
829
- ) });
830
- }
831
- }
832
- ), ma = o(
833
- function({ children: a, label: e, ...s }, n) {
834
- return /* @__PURE__ */ t.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...s, children: [
835
- /* @__PURE__ */ t.jsx(
836
- x,
837
- {
838
- as: "h2",
839
- fontSize: "xs",
840
- fontWeight: "semibold",
841
- color: "gray",
842
- className: "px-2",
843
- children: e
844
- }
845
- ),
846
- /* @__PURE__ */ t.jsx("ul", { className: "flex flex-col gap-1", children: a })
847
- ] });
848
- }
849
- ), pa = o(
850
- ({ children: r, ...a }, e) => /* @__PURE__ */ t.jsx(
851
- "nav",
852
- {
853
- ref: e,
854
- className: "w-56 bg-background border-r border-border flex flex-col my-2",
855
- "aria-label": "Sidebar",
856
- ...a,
857
- children: /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ t.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: r }) })
858
- }
859
- )
860
- ), Ma = Object.assign(pa, {
861
- Item: ua,
862
- Group: ma
863
- }), fa = i(
864
- "w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
865
- {
866
- variants: {},
867
- defaultVariants: {}
868
- }
869
- ), xa = i("flex items-center gap-3 min-w-0 flex-1"), ga = i("flex items-center gap-2 ml-auto"), va = i(
870
- "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
871
- {
872
- variants: {
873
- active: {
874
- true: "bg-primary/10 text-primary",
875
- false: "hover:text-primary text-ghost"
876
- }
877
- },
878
- defaultVariants: {
879
- active: !1
880
- }
881
- }
882
- ), ba = i("flex items-center gap-2 ml-4"), ha = i("flex items-center gap-2 mr-4"), ja = o(
883
- function({ children: a, className: e, ...s }, n) {
884
- return /* @__PURE__ */ t.jsx("nav", { ref: n, className: ba({ className: e }), ...s, children: a });
885
- }
886
- ), wa = o(
887
- function({ children: a, className: e, ...s }, n) {
888
- return /* @__PURE__ */ t.jsx("div", { ref: n, className: ha({ className: e }), ...s, children: a });
889
- }
890
- ), ya = o(
891
- function({ children: a, className: e, ...s }, n) {
892
- return /* @__PURE__ */ t.jsx("div", { ref: n, className: xa({ className: e }), ...s, children: a });
893
- }
894
- ), Ba = o(
895
- function({ children: a, className: e, ...s }, n) {
896
- return /* @__PURE__ */ t.jsx("div", { ref: n, className: ga({ className: e }), ...s, children: a });
897
- }
898
- ), Na = o(
899
- function({ children: a, className: e, active: s, ...n }, c) {
900
- return /* @__PURE__ */ t.jsx(
901
- "div",
902
- {
903
- ref: c,
904
- className: va({ active: s, className: e }),
905
- "aria-current": s ? "page" : void 0,
906
- ...n,
907
- children: a
908
- }
909
- );
910
- }
911
- ), Va = o(
912
- ({ children: r, className: a, ...e }, s) => /* @__PURE__ */ t.jsx("header", { ref: s, className: fa({ className: a }), ...e, children: r })
913
- ), Ea = Object.assign(Va, {
914
- Leading: ya,
915
- Trailing: Ba,
916
- NavItem: Na,
917
- Nav: ja,
918
- Actions: wa
919
- });
920
- export {
921
- Aa as A,
922
- Pa as B,
923
- Ga as F,
924
- ka as P,
925
- Ma as S,
926
- Ea as T,
927
- Ia as a,
928
- Ra as b,
929
- Fa as c,
930
- Oa as d,
931
- Wa as e
932
- };