@dimasbaguspm/versaur 0.0.26 → 0.0.28

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/{bottom-sheet-input-1C3Up2xF.js → bottom-sheet-input-BIbHW5ME.js} +255 -244
  2. package/dist/js/{bottom-sheet-CQw_O-4W.js → bottom-sheet-tOKkkgJA.js} +169 -153
  3. package/dist/js/forms/index.js +1 -1
  4. package/dist/js/{image-rectangle--Sy82Ff9.js → image-rectangle-C1zMt0DR.js} +319 -199
  5. package/dist/js/index.js +68 -64
  6. package/dist/js/layouts/index.js +8 -6
  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 +17 -15
  10. package/dist/js/{tabs-CoNG51E1.js → tabs-CtPlBMP4.js} +1 -1
  11. package/dist/js/{tooltip-BbTHXz6h.js → tooltip-C_riAXZP.js} +16 -16
  12. package/dist/js/top-bar-BqLv8_hy.js +731 -0
  13. package/dist/types/forms/drawer-input/types.d.ts +1 -1
  14. package/dist/types/layouts/badge-group/badge-group.d.ts +27 -0
  15. package/dist/types/layouts/badge-group/index.d.ts +2 -0
  16. package/dist/types/layouts/badge-group/types.d.ts +32 -0
  17. package/dist/types/layouts/filter-chip-group/filter-chip-group.d.ts +27 -0
  18. package/dist/types/layouts/filter-chip-group/index.d.ts +2 -0
  19. package/dist/types/layouts/filter-chip-group/types.d.ts +32 -0
  20. package/dist/types/layouts/index.d.ts +2 -0
  21. package/dist/types/overlays/bottom-sheet/types.d.ts +4 -0
  22. package/dist/types/overlays/drawer/types.d.ts +5 -13
  23. package/dist/types/overlays/modal/types.d.ts +14 -4
  24. package/dist/types/primitive/card/card.d.ts +24 -0
  25. package/dist/types/primitive/card/index.d.ts +2 -0
  26. package/dist/types/primitive/card/types.d.ts +39 -0
  27. package/dist/types/primitive/filter-chip/filter-chip.d.ts +3 -0
  28. package/dist/types/primitive/filter-chip/index.d.ts +2 -0
  29. package/dist/types/primitive/filter-chip/types.d.ts +35 -0
  30. package/dist/types/primitive/index.d.ts +2 -0
  31. package/dist/utils/enforce-subpath-import.js +4 -0
  32. package/package.json +1 -1
  33. package/dist/js/top-bar-BjE0FiE8.js +0 -607
@@ -0,0 +1,731 @@
1
+ import { c as i, j as r, a as l } from "./index-DOdDlCoL.js";
2
+ import * as b from "react";
3
+ import { forwardRef as o } from "react";
4
+ import { i as u } from "./image-rectangle-C1zMt0DR.js";
5
+ import "./snackbar-DH8jCh2V.js";
6
+ const j = i(
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",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ primary: "",
12
+ secondary: "",
13
+ tertiary: "",
14
+ ghost: "",
15
+ neutral: ""
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ variant: "primary"
20
+ }
21
+ }
22
+ ), h = i(
23
+ "flex flex-col justify-center min-w-0 flex-grow",
24
+ {
25
+ variants: {
26
+ placement: {
27
+ start: "items-start",
28
+ center: "items-center",
29
+ end: "items-end"
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ placement: "start"
34
+ }
35
+ }
36
+ ), y = o(
37
+ ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
38
+ "div",
39
+ {
40
+ ref: e,
41
+ "data-versaur-appbar-bottom": !0,
42
+ className: l("w-full flex items-center min-h-[2.5rem] mt-2", a),
43
+ children: t
44
+ }
45
+ )
46
+ ), B = o(
47
+ ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
48
+ "div",
49
+ {
50
+ ref: e,
51
+ className: l("flex items-center", a),
52
+ "data-versaur-appbar-leading": !0,
53
+ children: t
54
+ }
55
+ )
56
+ ), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
57
+ u,
58
+ {
59
+ ...a,
60
+ as: "h1",
61
+ ref: e,
62
+ fontSize: "lg",
63
+ fontWeight: "semibold",
64
+ ellipsis: !0,
65
+ clamp: 1,
66
+ children: t
67
+ }
68
+ )), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
69
+ u,
70
+ {
71
+ ...a,
72
+ ref: e,
73
+ as: "p",
74
+ fontSize: "xs",
75
+ fontWeight: "normal",
76
+ ellipsis: !0,
77
+ clamp: 1,
78
+ color: "gray",
79
+ children: t
80
+ }
81
+ )), V = o(
82
+ ({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
83
+ "div",
84
+ {
85
+ ref: e,
86
+ className: l("flex items-center justify-end gap-2", a),
87
+ "data-versaur-appbar-trailing": !0,
88
+ children: t
89
+ }
90
+ )
91
+ ), S = o(
92
+ ({ children: t, className: a, placement: e }, s) => /* @__PURE__ */ r.jsx(
93
+ "div",
94
+ {
95
+ ref: s,
96
+ className: l(h({ placement: e }), a),
97
+ children: t
98
+ }
99
+ )
100
+ ), T = ({
101
+ children: t,
102
+ className: a,
103
+ variant: e = "primary"
104
+ }) => /* @__PURE__ */ r.jsx(
105
+ "header",
106
+ {
107
+ className: l(j({ variant: e }), a),
108
+ role: "banner",
109
+ children: t
110
+ }
111
+ ), Ba = Object.assign(T, {
112
+ Leading: B,
113
+ Headline: w,
114
+ Subtitle: N,
115
+ Trailing: V,
116
+ Center: S,
117
+ Bottom: y
118
+ }), z = i(
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
+ {
121
+ variants: {
122
+ variant: {
123
+ primary: "",
124
+ secondary: "",
125
+ ghost: "",
126
+ neutral: "",
127
+ tertiary: ""
128
+ },
129
+ size: {
130
+ sm: "h-12 text-sm",
131
+ md: "h-16 text-base",
132
+ lg: "h-20 text-lg"
133
+ }
134
+ },
135
+ defaultVariants: {
136
+ variant: "primary",
137
+ size: "md"
138
+ }
139
+ }
140
+ ), H = i(
141
+ "flex flex-col items-center justify-center gap-1 px-2 py-1 select-none",
142
+ {
143
+ variants: {
144
+ active: {
145
+ true: "text-primary",
146
+ false: "text-ghost"
147
+ }
148
+ },
149
+ defaultVariants: {
150
+ active: !1
151
+ }
152
+ }
153
+ ), C = o(
154
+ ({ icon: t, label: a, active: e = !1, className: s, ...n }, c) => /* @__PURE__ */ r.jsxs(
155
+ "div",
156
+ {
157
+ ref: c,
158
+ "aria-current": e ? "page" : void 0,
159
+ className: H({ active: e, className: s }),
160
+ ...n,
161
+ children: [
162
+ t,
163
+ a && /* @__PURE__ */ r.jsx("span", { className: "text-xs mt-0.5", children: a })
164
+ ]
165
+ }
166
+ )
167
+ ), A = ({
168
+ children: t,
169
+ variant: a = "primary",
170
+ size: e = "md",
171
+ className: s,
172
+ ...n
173
+ }) => /* @__PURE__ */ r.jsx(
174
+ "nav",
175
+ {
176
+ role: "navigation",
177
+ "aria-label": "Bottom navigation",
178
+ className: z({ variant: a, size: e, className: s }),
179
+ ...n,
180
+ children: t
181
+ }
182
+ ), wa = Object.assign(A, {
183
+ Item: C
184
+ }), L = i("flex", {
185
+ variants: {
186
+ orientation: {
187
+ horizontal: "flex-row",
188
+ vertical: "flex-col"
189
+ },
190
+ alignment: {
191
+ start: "justify-start",
192
+ center: "justify-center",
193
+ end: "justify-end",
194
+ between: "justify-between",
195
+ around: "justify-around",
196
+ evenly: "justify-evenly"
197
+ },
198
+ gap: {
199
+ xs: "gap-1",
200
+ sm: "gap-2",
201
+ md: "gap-3",
202
+ lg: "gap-4",
203
+ xl: "gap-6"
204
+ },
205
+ fluid: {
206
+ true: "[&>*]:flex-1",
207
+ false: ""
208
+ }
209
+ },
210
+ defaultVariants: {
211
+ orientation: "horizontal",
212
+ alignment: "start",
213
+ gap: "md",
214
+ fluid: !1
215
+ }
216
+ }), Na = o(
217
+ function({
218
+ className: a,
219
+ children: e,
220
+ orientation: s = "horizontal",
221
+ alignment: n = "start",
222
+ gap: c = "md",
223
+ fluid: p = !1,
224
+ ...m
225
+ }, d) {
226
+ return /* @__PURE__ */ r.jsx(
227
+ "div",
228
+ {
229
+ ref: d,
230
+ className: l(
231
+ L({
232
+ orientation: s,
233
+ alignment: n,
234
+ gap: c,
235
+ fluid: p
236
+ }),
237
+ a
238
+ ),
239
+ role: "group",
240
+ ...m,
241
+ children: e
242
+ }
243
+ );
244
+ }
245
+ ), P = i("flex", {
246
+ variants: {
247
+ orientation: {
248
+ horizontal: "flex-row",
249
+ vertical: "flex-col"
250
+ },
251
+ alignment: {
252
+ start: "justify-start",
253
+ center: "justify-center",
254
+ end: "justify-end",
255
+ between: "justify-between",
256
+ around: "justify-around",
257
+ evenly: "justify-evenly"
258
+ },
259
+ gap: {
260
+ xs: "gap-1",
261
+ sm: "gap-2",
262
+ md: "gap-3",
263
+ lg: "gap-4",
264
+ xl: "gap-6"
265
+ },
266
+ fluid: {
267
+ true: "[&>*]:flex-1",
268
+ false: ""
269
+ }
270
+ },
271
+ defaultVariants: {
272
+ orientation: "horizontal",
273
+ alignment: "start",
274
+ gap: "md",
275
+ fluid: !1
276
+ }
277
+ }), Va = o(
278
+ function({
279
+ className: a,
280
+ children: e,
281
+ orientation: s = "horizontal",
282
+ alignment: n = "start",
283
+ gap: c = "md",
284
+ fluid: p = !1,
285
+ ...m
286
+ }, d) {
287
+ return /* @__PURE__ */ r.jsx(
288
+ "div",
289
+ {
290
+ ref: d,
291
+ className: l(
292
+ P({
293
+ orientation: s,
294
+ alignment: n,
295
+ gap: c,
296
+ fluid: p
297
+ }),
298
+ a
299
+ ),
300
+ role: "group",
301
+ ...m,
302
+ children: e
303
+ }
304
+ );
305
+ }
306
+ ), G = i("flex flex-wrap items-center", {
307
+ variants: {
308
+ orientation: {
309
+ horizontal: "flex-row",
310
+ vertical: "flex-col"
311
+ },
312
+ alignment: {
313
+ start: "justify-start",
314
+ center: "justify-center",
315
+ end: "justify-end",
316
+ between: "justify-between",
317
+ around: "justify-around",
318
+ evenly: "justify-evenly"
319
+ },
320
+ gap: {
321
+ xs: "gap-1",
322
+ sm: "gap-2",
323
+ md: "gap-3",
324
+ lg: "gap-4",
325
+ xl: "gap-6"
326
+ },
327
+ fluid: {
328
+ true: "[&>*]:flex-1",
329
+ false: ""
330
+ }
331
+ },
332
+ defaultVariants: {
333
+ orientation: "horizontal",
334
+ alignment: "start",
335
+ gap: "md",
336
+ fluid: !1
337
+ }
338
+ }), Sa = o(
339
+ function({
340
+ className: a,
341
+ children: e,
342
+ orientation: s = "horizontal",
343
+ alignment: n = "start",
344
+ gap: c = "md",
345
+ fluid: p = !1,
346
+ ...m
347
+ }, d) {
348
+ return /* @__PURE__ */ r.jsx(
349
+ "div",
350
+ {
351
+ ref: d,
352
+ className: l(
353
+ G({
354
+ orientation: s,
355
+ alignment: n,
356
+ gap: c,
357
+ fluid: p
358
+ }),
359
+ a
360
+ ),
361
+ role: "group",
362
+ ...m,
363
+ children: e
364
+ }
365
+ );
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(
369
+ "div",
370
+ {
371
+ ref: s,
372
+ className: l(R(), a),
373
+ ...e,
374
+ children: t
375
+ }
376
+ )
377
+ ), I = i("w-full mt-4"), k = i(
378
+ "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
379
+ ), F = i("mb-4 px-4 sm:px-6"), O = i(
380
+ "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
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(
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(
387
+ "div",
388
+ {
389
+ ref: s,
390
+ className: l(k(), a),
391
+ "data-versaur-page-header-top": !0,
392
+ ...e,
393
+ children: t
394
+ }
395
+ )
396
+ ), q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
397
+ "div",
398
+ {
399
+ ref: s,
400
+ className: l(F(), a),
401
+ "data-versaur-page-header-breadcrumbs": !0,
402
+ ...e,
403
+ children: t
404
+ }
405
+ )), D = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
406
+ "div",
407
+ {
408
+ ref: s,
409
+ className: l(O(), a),
410
+ "data-versaur-page-header-content": !0,
411
+ ...e,
412
+ children: t
413
+ }
414
+ )), J = o((t, a) => /* @__PURE__ */ r.jsx(
415
+ u,
416
+ {
417
+ ...t,
418
+ as: "h1",
419
+ fontSize: "xl",
420
+ fontWeight: "semibold",
421
+ ellipsis: !0,
422
+ ref: a
423
+ }
424
+ )), K = o(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
425
+ u,
426
+ {
427
+ as: "p",
428
+ fontSize: "sm",
429
+ fontWeight: "normal",
430
+ clamp: 2,
431
+ ref: e,
432
+ className: l("mb-2 sm:clamp-3", t),
433
+ ...a
434
+ }
435
+ )), Q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
436
+ "div",
437
+ {
438
+ ref: s,
439
+ className: l(W(), a),
440
+ "data-versaur-page-header-badges": !0,
441
+ ...e,
442
+ children: t
443
+ }
444
+ )), U = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
445
+ "div",
446
+ {
447
+ ref: s,
448
+ className: l(M(), a),
449
+ "data-versaur-page-header-actions": !0,
450
+ ...e,
451
+ children: t
452
+ }
453
+ )), X = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
454
+ "div",
455
+ {
456
+ ref: s,
457
+ className: l(E(), a),
458
+ "data-versaur-page-header-bottom": !0,
459
+ ...e,
460
+ children: t
461
+ }
462
+ )), Y = o(
463
+ ({
464
+ children: t,
465
+ className: a,
466
+ title: e,
467
+ subtitle: s,
468
+ breadcrumbs: n,
469
+ badges: c,
470
+ actions: p,
471
+ tabs: m,
472
+ ...d
473
+ }, f) => {
474
+ const g = e || s || n || c || p, v = m;
475
+ return /* @__PURE__ */ r.jsxs(
476
+ "header",
477
+ {
478
+ ref: f,
479
+ className: l(I(), a),
480
+ role: "banner",
481
+ ...d,
482
+ 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 })
489
+ ] }),
490
+ p && /* @__PURE__ */ r.jsx(U, { children: p })
491
+ ] }),
492
+ v && /* @__PURE__ */ r.jsx(X, { children: m }),
493
+ t
494
+ ]
495
+ }
496
+ );
497
+ }
498
+ ), za = Y, Z = i("w-full mx-auto relative", {
499
+ variants: {
500
+ type: {
501
+ desktop: "max-w-7xl px-6 pb-10",
502
+ tablet: "max-w-3xl px-4",
503
+ mobile: "w-full"
504
+ }
505
+ },
506
+ defaultVariants: {
507
+ type: "desktop"
508
+ }
509
+ }), Ha = b.forwardRef(
510
+ function({ type: a = "desktop", className: e, children: s, ...n }, c) {
511
+ return /* @__PURE__ */ r.jsx(
512
+ "div",
513
+ {
514
+ ref: c,
515
+ className: l(Z({ type: a }), e),
516
+ ...n,
517
+ children: s
518
+ }
519
+ );
520
+ }
521
+ ), _ = i("grid w-full gap-4 grid-cols-12"), aa = i("", {
522
+ variants: {
523
+ span: {
524
+ 1: "col-span-1",
525
+ 2: "col-span-2",
526
+ 3: "col-span-3",
527
+ 4: "col-span-4",
528
+ 5: "col-span-5",
529
+ 6: "col-span-6",
530
+ 7: "col-span-7",
531
+ 8: "col-span-8",
532
+ 9: "col-span-9",
533
+ 10: "col-span-10",
534
+ 11: "col-span-11",
535
+ 12: "col-span-12"
536
+ }
537
+ },
538
+ defaultVariants: {
539
+ span: "4"
540
+ }
541
+ }), ea = o(
542
+ function({ className: a, children: e, ...s }, n) {
543
+ return /* @__PURE__ */ r.jsx(
544
+ "div",
545
+ {
546
+ ref: n,
547
+ className: l(_(), a),
548
+ ...s,
549
+ children: e
550
+ }
551
+ );
552
+ }
553
+ ), ta = o(
554
+ function({ span: a = 4, className: e, children: s, ...n }, c) {
555
+ const p = Math.min(12, Math.max(1, a));
556
+ return /* @__PURE__ */ r.jsx(
557
+ "div",
558
+ {
559
+ ref: c,
560
+ className: l(
561
+ aa({ span: `${p}` }),
562
+ e
563
+ ),
564
+ ...n,
565
+ children: s
566
+ }
567
+ );
568
+ }
569
+ ), Ca = Object.assign(ea, {
570
+ Column: ta
571
+ }), x = i(
572
+ "flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
573
+ {
574
+ variants: {
575
+ active: {
576
+ true: "bg-primary/10 text-primary",
577
+ false: "text-ghost"
578
+ },
579
+ disabled: {
580
+ true: "opacity-50 pointer-events-none",
581
+ false: ""
582
+ }
583
+ },
584
+ defaultVariants: {
585
+ active: !1,
586
+ disabled: !1
587
+ }
588
+ }
589
+ ), sa = o(
590
+ (t, a) => {
591
+ const { icon: e, children: s, href: n, onClick: c, active: p, ...m } = t;
592
+ if (typeof n == "string") {
593
+ const f = m;
594
+ return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
595
+ "a",
596
+ {
597
+ ref: a,
598
+ href: n,
599
+ className: x({
600
+ disabled: !!t["aria-disabled"],
601
+ active: p
602
+ }),
603
+ ...f,
604
+ children: [
605
+ e,
606
+ /* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
607
+ ]
608
+ }
609
+ ) });
610
+ } else {
611
+ const f = m;
612
+ return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
613
+ "button",
614
+ {
615
+ ref: a,
616
+ type: "button",
617
+ onClick: c,
618
+ className: l(
619
+ x({ disabled: !!f.disabled, active: p }),
620
+ "w-full text-left"
621
+ ),
622
+ ...f,
623
+ children: [
624
+ e,
625
+ /* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
626
+ ]
627
+ }
628
+ ) });
629
+ }
630
+ }
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(
635
+ u,
636
+ {
637
+ as: "h2",
638
+ fontSize: "xs",
639
+ fontWeight: "semibold",
640
+ color: "gray",
641
+ className: "px-2",
642
+ children: e
643
+ }
644
+ ),
645
+ /* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1", children: a })
646
+ ] });
647
+ }
648
+ ), na = o(
649
+ ({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
650
+ "nav",
651
+ {
652
+ ref: e,
653
+ className: "w-56 bg-background border-r border-border flex flex-col my-2",
654
+ "aria-label": "Sidebar",
655
+ ...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 }) })
657
+ }
658
+ )
659
+ ), Aa = Object.assign(na, {
660
+ Item: sa,
661
+ Group: ra
662
+ }), oa = i(
663
+ "w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
664
+ {
665
+ variants: {},
666
+ defaultVariants: {}
667
+ }
668
+ ), ia = i("flex items-center gap-3 min-w-0 flex-1"), la = i("flex items-center gap-2 ml-auto"), ca = i(
669
+ "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
670
+ {
671
+ variants: {
672
+ active: {
673
+ true: "bg-primary/10 text-primary",
674
+ false: "hover:text-primary text-ghost"
675
+ }
676
+ },
677
+ defaultVariants: {
678
+ active: !1
679
+ }
680
+ }
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 });
692
+ }
693
+ ), 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 });
696
+ }
697
+ ), ga = o(
698
+ function({ children: a, className: e, active: s, ...n }, c) {
699
+ return /* @__PURE__ */ r.jsx(
700
+ "div",
701
+ {
702
+ ref: c,
703
+ className: ca({ active: s, className: e }),
704
+ "aria-current": s ? "page" : void 0,
705
+ ...n,
706
+ children: a
707
+ }
708
+ );
709
+ }
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
718
+ });
719
+ 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
731
+ };