@dimasbaguspm/versaur 0.0.33 → 0.0.35
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.
- package/dist/js/{bottom-sheet-B3Rt2JC5.js → bottom-sheet-BYq9Nf57.js} +99 -108
- package/dist/js/{bottom-sheet-input-DRcyjeGh.js → bottom-sheet-input-Bo5LLNVg.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-oPc5hFMM.js → image-rectangle-BPmnlpnT.js} +904 -436
- package/dist/js/index.js +54 -51
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +3 -3
- package/dist/js/primitive/index.js +24 -21
- package/dist/js/{tabs-CKLbsCWq.js → tabs-C3wTfqhW.js} +1 -1
- package/dist/js/{tooltip-DNKTNCQm.js → tooltip-Dh1adQMb.js} +1 -1
- package/dist/js/{top-bar-Bg-zMaFY.js → top-bar-DNHnNH-S.js} +158 -138
- package/dist/types/layouts/badge-group/types.d.ts +5 -0
- package/dist/types/layouts/bottom-bar/bottom-bar.atoms.d.ts +1 -1
- package/dist/types/layouts/bottom-bar/bottom-bar.d.ts +1 -1
- package/dist/types/layouts/bottom-bar/types.d.ts +4 -3
- package/dist/types/layouts/button-group/types.d.ts +5 -0
- package/dist/types/layouts/filter-chip-group/types.d.ts +5 -0
- package/dist/types/overlays/menu/menu.atoms.d.ts +0 -6
- package/dist/types/overlays/menu/types.d.ts +6 -3
- package/dist/types/overlays/menu/use-menu.d.ts +4 -5
- package/dist/types/primitive/accordion/accordion.atoms.d.ts +23 -0
- package/dist/types/primitive/accordion/accordion.d.ts +20 -0
- package/dist/types/primitive/accordion/index.d.ts +2 -0
- package/dist/types/primitive/accordion/types.d.ts +76 -0
- package/dist/types/primitive/attribute/types.d.ts +5 -0
- package/dist/types/primitive/button-menu-icon/types.d.ts +2 -1
- package/dist/types/primitive/heading/heading.d.ts +7 -0
- package/dist/types/primitive/heading/index.d.ts +2 -0
- package/dist/types/primitive/heading/types.d.ts +37 -0
- package/dist/types/primitive/hr/hr.d.ts +20 -0
- package/dist/types/primitive/hr/index.d.ts +2 -0
- package/dist/types/primitive/hr/types.d.ts +13 -0
- package/dist/types/primitive/index.d.ts +3 -0
- package/dist/utils/enforce-subpath-import.js +3 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as i, j as
|
|
2
|
-
import * as
|
|
1
|
+
import { c as i, j as r, a as l } from "./index-DOdDlCoL.js";
|
|
2
|
+
import * as v from "react";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { m as f } from "./image-rectangle-BPmnlpnT.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
const
|
|
6
|
+
const h = 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",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -19,7 +19,7 @@ const j = i(
|
|
|
19
19
|
variant: "primary"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), j = i(
|
|
23
23
|
"flex flex-col justify-center min-w-0 flex-grow",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
@@ -34,7 +34,7 @@ const j = i(
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
), y = o(
|
|
37
|
-
({ children: t, className: a }, e) => /* @__PURE__ */
|
|
37
|
+
({ children: t, className: a }, e) => /* @__PURE__ */ r.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__ */
|
|
47
|
+
({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
ref: e,
|
|
@@ -53,8 +53,8 @@ const j = i(
|
|
|
53
53
|
children: t
|
|
54
54
|
}
|
|
55
55
|
)
|
|
56
|
-
), w = o(({ children: t, ...a }, e) => /* @__PURE__ */
|
|
57
|
-
|
|
56
|
+
), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
57
|
+
f,
|
|
58
58
|
{
|
|
59
59
|
...a,
|
|
60
60
|
as: "h1",
|
|
@@ -65,8 +65,8 @@ const j = i(
|
|
|
65
65
|
clamp: 1,
|
|
66
66
|
children: t
|
|
67
67
|
}
|
|
68
|
-
)), N = o(({ children: t, ...a }, e) => /* @__PURE__ */
|
|
69
|
-
|
|
68
|
+
)), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
69
|
+
f,
|
|
70
70
|
{
|
|
71
71
|
...a,
|
|
72
72
|
ref: e,
|
|
@@ -79,7 +79,7 @@ const j = i(
|
|
|
79
79
|
children: t
|
|
80
80
|
}
|
|
81
81
|
)), V = o(
|
|
82
|
-
({ children: t, className: a }, e) => /* @__PURE__ */
|
|
82
|
+
({ children: t, className: a }, e) => /* @__PURE__ */ r.jsx(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
ref: e,
|
|
@@ -89,11 +89,11 @@ const j = i(
|
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
), S = o(
|
|
92
|
-
({ children: t, className: a, placement: e },
|
|
92
|
+
({ children: t, className: a, placement: e }, s) => /* @__PURE__ */ r.jsx(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
|
-
ref:
|
|
96
|
-
className: l(
|
|
95
|
+
ref: s,
|
|
96
|
+
className: l(j({ placement: e }), a),
|
|
97
97
|
children: t
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -101,10 +101,10 @@ const j = i(
|
|
|
101
101
|
children: t,
|
|
102
102
|
className: a,
|
|
103
103
|
variant: e = "primary"
|
|
104
|
-
}) => /* @__PURE__ */
|
|
104
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
105
105
|
"header",
|
|
106
106
|
{
|
|
107
|
-
className: l(
|
|
107
|
+
className: l(h({ variant: e }), a),
|
|
108
108
|
role: "banner",
|
|
109
109
|
children: t
|
|
110
110
|
}
|
|
@@ -116,7 +116,7 @@ const j = i(
|
|
|
116
116
|
Center: S,
|
|
117
117
|
Bottom: y
|
|
118
118
|
}), H = i(
|
|
119
|
-
"sticky bottom-0
|
|
119
|
+
"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",
|
|
120
120
|
{
|
|
121
121
|
variants: {
|
|
122
122
|
variant: {
|
|
@@ -138,50 +138,64 @@ const j = i(
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
), z = i(
|
|
141
|
-
"flex flex-col items-center justify-center gap-1
|
|
141
|
+
"flex flex-col items-center justify-center gap-1",
|
|
142
142
|
{
|
|
143
143
|
variants: {
|
|
144
144
|
active: {
|
|
145
145
|
true: "text-primary",
|
|
146
146
|
false: "text-ghost"
|
|
147
|
+
},
|
|
148
|
+
as: {
|
|
149
|
+
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",
|
|
150
|
+
div: ""
|
|
147
151
|
}
|
|
148
152
|
},
|
|
149
153
|
defaultVariants: {
|
|
150
|
-
active: !1
|
|
154
|
+
active: !1,
|
|
155
|
+
as: "button"
|
|
151
156
|
}
|
|
152
157
|
}
|
|
153
158
|
), A = o(
|
|
154
|
-
({
|
|
155
|
-
"
|
|
159
|
+
({
|
|
160
|
+
as: t = "button",
|
|
161
|
+
icon: a,
|
|
162
|
+
label: e,
|
|
163
|
+
active: s = !1,
|
|
164
|
+
className: n,
|
|
165
|
+
children: c,
|
|
166
|
+
...p
|
|
167
|
+
}, d) => /* @__PURE__ */ r.jsxs(
|
|
168
|
+
t,
|
|
156
169
|
{
|
|
157
|
-
ref:
|
|
158
|
-
"aria-current":
|
|
159
|
-
className: z({ active:
|
|
160
|
-
...
|
|
170
|
+
ref: d,
|
|
171
|
+
"aria-current": s ? "page" : void 0,
|
|
172
|
+
className: z({ active: s, className: n, as: t }),
|
|
173
|
+
...p,
|
|
161
174
|
children: [
|
|
162
|
-
|
|
163
|
-
|
|
175
|
+
a && a,
|
|
176
|
+
c && c,
|
|
177
|
+
e && /* @__PURE__ */ r.jsx("span", { className: "text-xs mt-0.5", children: e })
|
|
164
178
|
]
|
|
165
179
|
}
|
|
166
180
|
)
|
|
167
|
-
),
|
|
181
|
+
), P = ({
|
|
168
182
|
children: t,
|
|
169
183
|
variant: a = "primary",
|
|
170
184
|
size: e = "md",
|
|
171
|
-
className:
|
|
185
|
+
className: s,
|
|
172
186
|
...n
|
|
173
|
-
}) => /* @__PURE__ */
|
|
187
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
174
188
|
"nav",
|
|
175
189
|
{
|
|
176
190
|
role: "navigation",
|
|
177
191
|
"aria-label": "Bottom navigation",
|
|
178
|
-
className: H({ variant: a, size: e, className:
|
|
192
|
+
className: H({ variant: a, size: e, className: s }),
|
|
179
193
|
...n,
|
|
180
194
|
children: t
|
|
181
195
|
}
|
|
182
|
-
), Va = Object.assign(
|
|
196
|
+
), Va = Object.assign(P, {
|
|
183
197
|
Item: A
|
|
184
|
-
}),
|
|
198
|
+
}), C = i("flex", {
|
|
185
199
|
variants: {
|
|
186
200
|
orientation: {
|
|
187
201
|
horizontal: "flex-row",
|
|
@@ -217,27 +231,29 @@ const j = i(
|
|
|
217
231
|
function({
|
|
218
232
|
className: a,
|
|
219
233
|
children: e,
|
|
220
|
-
orientation:
|
|
234
|
+
orientation: s = "horizontal",
|
|
221
235
|
alignment: n = "start",
|
|
222
236
|
gap: c = "md",
|
|
223
237
|
fluid: p = !1,
|
|
224
|
-
|
|
238
|
+
hasMargin: d,
|
|
239
|
+
...u
|
|
225
240
|
}, m) {
|
|
226
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ r.jsx(
|
|
227
242
|
"div",
|
|
228
243
|
{
|
|
229
244
|
ref: m,
|
|
230
245
|
className: l(
|
|
231
|
-
|
|
232
|
-
orientation:
|
|
246
|
+
C({
|
|
247
|
+
orientation: s,
|
|
233
248
|
alignment: n,
|
|
234
249
|
gap: c,
|
|
235
250
|
fluid: p
|
|
236
251
|
}),
|
|
252
|
+
d && "mb-4",
|
|
237
253
|
a
|
|
238
254
|
),
|
|
239
255
|
role: "group",
|
|
240
|
-
...
|
|
256
|
+
...u,
|
|
241
257
|
children: e
|
|
242
258
|
}
|
|
243
259
|
);
|
|
@@ -278,27 +294,29 @@ const j = i(
|
|
|
278
294
|
function({
|
|
279
295
|
className: a,
|
|
280
296
|
children: e,
|
|
281
|
-
orientation:
|
|
297
|
+
orientation: s = "horizontal",
|
|
282
298
|
alignment: n = "start",
|
|
283
299
|
gap: c = "md",
|
|
284
300
|
fluid: p = !1,
|
|
285
|
-
|
|
301
|
+
hasMargin: d,
|
|
302
|
+
...u
|
|
286
303
|
}, m) {
|
|
287
|
-
return /* @__PURE__ */
|
|
304
|
+
return /* @__PURE__ */ r.jsx(
|
|
288
305
|
"div",
|
|
289
306
|
{
|
|
290
307
|
ref: m,
|
|
291
308
|
className: l(
|
|
292
309
|
L({
|
|
293
|
-
orientation:
|
|
310
|
+
orientation: s,
|
|
294
311
|
alignment: n,
|
|
295
312
|
gap: c,
|
|
296
313
|
fluid: p
|
|
297
314
|
}),
|
|
315
|
+
d && "mb-4",
|
|
298
316
|
a
|
|
299
317
|
),
|
|
300
318
|
role: "group",
|
|
301
|
-
...
|
|
319
|
+
...u,
|
|
302
320
|
children: e
|
|
303
321
|
}
|
|
304
322
|
);
|
|
@@ -339,42 +357,44 @@ const j = i(
|
|
|
339
357
|
function({
|
|
340
358
|
className: a,
|
|
341
359
|
children: e,
|
|
342
|
-
orientation:
|
|
360
|
+
orientation: s = "horizontal",
|
|
343
361
|
alignment: n = "start",
|
|
344
362
|
gap: c = "md",
|
|
345
363
|
fluid: p = !1,
|
|
346
|
-
|
|
364
|
+
hasMargin: d,
|
|
365
|
+
...u
|
|
347
366
|
}, m) {
|
|
348
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ r.jsx(
|
|
349
368
|
"div",
|
|
350
369
|
{
|
|
351
370
|
ref: m,
|
|
352
371
|
className: l(
|
|
353
372
|
G({
|
|
354
|
-
orientation:
|
|
373
|
+
orientation: s,
|
|
355
374
|
alignment: n,
|
|
356
375
|
gap: c,
|
|
357
376
|
fluid: p
|
|
358
377
|
}),
|
|
378
|
+
d && "mb-4",
|
|
359
379
|
a
|
|
360
380
|
),
|
|
361
381
|
role: "group",
|
|
362
|
-
...
|
|
382
|
+
...u,
|
|
363
383
|
children: e
|
|
364
384
|
}
|
|
365
385
|
);
|
|
366
386
|
}
|
|
367
387
|
), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"), za = o(
|
|
368
|
-
({ children: t, className: a, ...e },
|
|
388
|
+
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
369
389
|
"div",
|
|
370
390
|
{
|
|
371
|
-
ref:
|
|
391
|
+
ref: s,
|
|
372
392
|
className: l(R(), a),
|
|
373
393
|
...e,
|
|
374
394
|
children: t
|
|
375
395
|
}
|
|
376
396
|
)
|
|
377
|
-
),
|
|
397
|
+
), I = i("w-full mt-4"), k = i(
|
|
378
398
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
|
|
379
399
|
), F = i("mb-4 px-4 sm:px-6"), O = i(
|
|
380
400
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
@@ -383,36 +403,36 @@ const j = i(
|
|
|
383
403
|
), E = i("md:hidden"), $ = i(
|
|
384
404
|
"w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
|
|
385
405
|
), q = o(
|
|
386
|
-
({ children: t, className: a, ...e },
|
|
406
|
+
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
387
407
|
"div",
|
|
388
408
|
{
|
|
389
|
-
ref:
|
|
390
|
-
className: l(
|
|
409
|
+
ref: s,
|
|
410
|
+
className: l(k(), a),
|
|
391
411
|
"data-versaur-page-header-top": !0,
|
|
392
412
|
...e,
|
|
393
413
|
children: t
|
|
394
414
|
}
|
|
395
415
|
)
|
|
396
|
-
), D = o(({ children: t, className: a, ...e },
|
|
416
|
+
), D = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
397
417
|
"div",
|
|
398
418
|
{
|
|
399
|
-
ref:
|
|
419
|
+
ref: s,
|
|
400
420
|
className: l(F(), a),
|
|
401
421
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
402
422
|
...e,
|
|
403
423
|
children: t
|
|
404
424
|
}
|
|
405
|
-
)), J = o(({ children: t, className: a, ...e },
|
|
425
|
+
)), J = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
406
426
|
"div",
|
|
407
427
|
{
|
|
408
|
-
ref:
|
|
428
|
+
ref: s,
|
|
409
429
|
className: l(O(), a),
|
|
410
430
|
"data-versaur-page-header-content": !0,
|
|
411
431
|
...e,
|
|
412
432
|
children: t
|
|
413
433
|
}
|
|
414
|
-
)), K = o((t, a) => /* @__PURE__ */
|
|
415
|
-
|
|
434
|
+
)), K = o((t, a) => /* @__PURE__ */ r.jsx(
|
|
435
|
+
f,
|
|
416
436
|
{
|
|
417
437
|
...t,
|
|
418
438
|
as: "h1",
|
|
@@ -421,8 +441,8 @@ const j = i(
|
|
|
421
441
|
ellipsis: !0,
|
|
422
442
|
ref: a
|
|
423
443
|
}
|
|
424
|
-
)), Q = o(({ className: t, ...a }, e) => /* @__PURE__ */
|
|
425
|
-
|
|
444
|
+
)), Q = o(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
445
|
+
f,
|
|
426
446
|
{
|
|
427
447
|
as: "p",
|
|
428
448
|
fontSize: "sm",
|
|
@@ -432,37 +452,37 @@ const j = i(
|
|
|
432
452
|
className: l("mb-2 sm:clamp-3", t),
|
|
433
453
|
...a
|
|
434
454
|
}
|
|
435
|
-
)), U = o(({ children: t, className: a, ...e },
|
|
455
|
+
)), U = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
436
456
|
"div",
|
|
437
457
|
{
|
|
438
|
-
ref:
|
|
458
|
+
ref: s,
|
|
439
459
|
className: l(W(), a),
|
|
440
460
|
"data-versaur-page-header-badges": !0,
|
|
441
461
|
...e,
|
|
442
462
|
children: t
|
|
443
463
|
}
|
|
444
|
-
)), X = o(({ children: t, className: a, ...e },
|
|
464
|
+
)), X = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
445
465
|
"div",
|
|
446
466
|
{
|
|
447
|
-
ref:
|
|
467
|
+
ref: s,
|
|
448
468
|
className: l(M(), a),
|
|
449
469
|
"data-versaur-page-header-actions": !0,
|
|
450
470
|
...e,
|
|
451
471
|
children: t
|
|
452
472
|
}
|
|
453
|
-
)), Y = o(({ children: t, className: a, ...e },
|
|
473
|
+
)), Y = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
454
474
|
"div",
|
|
455
475
|
{
|
|
456
|
-
ref:
|
|
476
|
+
ref: s,
|
|
457
477
|
className: l(E(), a),
|
|
458
478
|
"data-versaur-page-header-mobile-actions": !0,
|
|
459
479
|
...e,
|
|
460
480
|
children: t
|
|
461
481
|
}
|
|
462
|
-
)), Z = o(({ children: t, className: a, ...e },
|
|
482
|
+
)), Z = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
463
483
|
"div",
|
|
464
484
|
{
|
|
465
|
-
ref:
|
|
485
|
+
ref: s,
|
|
466
486
|
className: l($(), a),
|
|
467
487
|
"data-versaur-page-header-bottom": !0,
|
|
468
488
|
...e,
|
|
@@ -473,36 +493,36 @@ const j = i(
|
|
|
473
493
|
children: t,
|
|
474
494
|
className: a,
|
|
475
495
|
title: e,
|
|
476
|
-
subtitle:
|
|
496
|
+
subtitle: s,
|
|
477
497
|
breadcrumbs: n,
|
|
478
498
|
badges: c,
|
|
479
499
|
actions: p,
|
|
480
500
|
mobileActions: d,
|
|
481
|
-
tabs:
|
|
482
|
-
...
|
|
501
|
+
tabs: u,
|
|
502
|
+
...m
|
|
483
503
|
}, g) => {
|
|
484
|
-
const
|
|
485
|
-
return /* @__PURE__ */
|
|
504
|
+
const b = u;
|
|
505
|
+
return /* @__PURE__ */ r.jsxs(
|
|
486
506
|
"header",
|
|
487
507
|
{
|
|
488
508
|
ref: g,
|
|
489
|
-
className: l(
|
|
509
|
+
className: l(I(), a),
|
|
490
510
|
role: "banner",
|
|
491
|
-
...
|
|
511
|
+
...m,
|
|
492
512
|
children: [
|
|
493
|
-
n && /* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
/* @__PURE__ */
|
|
498
|
-
d && /* @__PURE__ */
|
|
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 })
|
|
499
519
|
] }),
|
|
500
|
-
|
|
501
|
-
c && /* @__PURE__ */
|
|
520
|
+
s && /* @__PURE__ */ r.jsx(Q, { children: s }),
|
|
521
|
+
c && /* @__PURE__ */ r.jsx(U, { children: c })
|
|
502
522
|
] }),
|
|
503
|
-
p && /* @__PURE__ */
|
|
523
|
+
p && /* @__PURE__ */ r.jsx(X, { children: p })
|
|
504
524
|
] }),
|
|
505
|
-
|
|
525
|
+
b && /* @__PURE__ */ r.jsx(Z, { children: u }),
|
|
506
526
|
t
|
|
507
527
|
]
|
|
508
528
|
}
|
|
@@ -519,15 +539,15 @@ const j = i(
|
|
|
519
539
|
defaultVariants: {
|
|
520
540
|
type: "desktop"
|
|
521
541
|
}
|
|
522
|
-
}),
|
|
523
|
-
function({ type: a = "desktop", className: e, children:
|
|
524
|
-
return /* @__PURE__ */
|
|
542
|
+
}), Pa = v.forwardRef(
|
|
543
|
+
function({ type: a = "desktop", className: e, children: s, ...n }, c) {
|
|
544
|
+
return /* @__PURE__ */ r.jsx(
|
|
525
545
|
"div",
|
|
526
546
|
{
|
|
527
547
|
ref: c,
|
|
528
548
|
className: l(aa({ type: a }), e),
|
|
529
549
|
...n,
|
|
530
|
-
children:
|
|
550
|
+
children: s
|
|
531
551
|
}
|
|
532
552
|
);
|
|
533
553
|
}
|
|
@@ -552,21 +572,21 @@ const j = i(
|
|
|
552
572
|
span: "4"
|
|
553
573
|
}
|
|
554
574
|
}), sa = o(
|
|
555
|
-
function({ className: a, children: e, ...
|
|
556
|
-
return /* @__PURE__ */
|
|
575
|
+
function({ className: a, children: e, ...s }, n) {
|
|
576
|
+
return /* @__PURE__ */ r.jsx(
|
|
557
577
|
"div",
|
|
558
578
|
{
|
|
559
579
|
ref: n,
|
|
560
580
|
className: l(ea(), a),
|
|
561
|
-
...
|
|
581
|
+
...s,
|
|
562
582
|
children: e
|
|
563
583
|
}
|
|
564
584
|
);
|
|
565
585
|
}
|
|
566
586
|
), ra = o(
|
|
567
|
-
function({ span: a = 4, className: e, children:
|
|
587
|
+
function({ span: a = 4, className: e, children: s, ...n }, c) {
|
|
568
588
|
const p = Math.min(12, Math.max(1, a));
|
|
569
|
-
return /* @__PURE__ */
|
|
589
|
+
return /* @__PURE__ */ r.jsx(
|
|
570
590
|
"div",
|
|
571
591
|
{
|
|
572
592
|
ref: c,
|
|
@@ -575,11 +595,11 @@ const j = i(
|
|
|
575
595
|
e
|
|
576
596
|
),
|
|
577
597
|
...n,
|
|
578
|
-
children:
|
|
598
|
+
children: s
|
|
579
599
|
}
|
|
580
600
|
);
|
|
581
601
|
}
|
|
582
|
-
),
|
|
602
|
+
), Ca = Object.assign(sa, {
|
|
583
603
|
Column: ra
|
|
584
604
|
}), x = i(
|
|
585
605
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
@@ -601,10 +621,10 @@ const j = i(
|
|
|
601
621
|
}
|
|
602
622
|
), na = o(
|
|
603
623
|
(t, a) => {
|
|
604
|
-
const { icon: e, children:
|
|
624
|
+
const { icon: e, children: s, href: n, onClick: c, active: p, ...d } = t;
|
|
605
625
|
if (typeof n == "string") {
|
|
606
|
-
const
|
|
607
|
-
return /* @__PURE__ */
|
|
626
|
+
const m = d;
|
|
627
|
+
return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
608
628
|
"a",
|
|
609
629
|
{
|
|
610
630
|
ref: a,
|
|
@@ -613,39 +633,39 @@ const j = i(
|
|
|
613
633
|
disabled: !!t["aria-disabled"],
|
|
614
634
|
active: p
|
|
615
635
|
}),
|
|
616
|
-
...
|
|
636
|
+
...m,
|
|
617
637
|
children: [
|
|
618
638
|
e,
|
|
619
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ r.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: s })
|
|
620
640
|
]
|
|
621
641
|
}
|
|
622
642
|
) });
|
|
623
643
|
} else {
|
|
624
|
-
const
|
|
625
|
-
return /* @__PURE__ */
|
|
644
|
+
const m = d;
|
|
645
|
+
return /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
626
646
|
"button",
|
|
627
647
|
{
|
|
628
648
|
ref: a,
|
|
629
649
|
type: "button",
|
|
630
650
|
onClick: c,
|
|
631
651
|
className: l(
|
|
632
|
-
x({ disabled: !!
|
|
652
|
+
x({ disabled: !!m.disabled, active: p }),
|
|
633
653
|
"w-full text-left"
|
|
634
654
|
),
|
|
635
|
-
...
|
|
655
|
+
...m,
|
|
636
656
|
children: [
|
|
637
657
|
e,
|
|
638
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ r.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: s })
|
|
639
659
|
]
|
|
640
660
|
}
|
|
641
661
|
) });
|
|
642
662
|
}
|
|
643
663
|
}
|
|
644
664
|
), oa = o(
|
|
645
|
-
function({ children: a, label: e, ...
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
|
|
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(
|
|
668
|
+
f,
|
|
649
669
|
{
|
|
650
670
|
as: "h2",
|
|
651
671
|
fontSize: "xs",
|
|
@@ -655,18 +675,18 @@ const j = i(
|
|
|
655
675
|
children: e
|
|
656
676
|
}
|
|
657
677
|
),
|
|
658
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1", children: a })
|
|
659
679
|
] });
|
|
660
680
|
}
|
|
661
681
|
), ia = o(
|
|
662
|
-
({ children: t, ...a }, e) => /* @__PURE__ */
|
|
682
|
+
({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
663
683
|
"nav",
|
|
664
684
|
{
|
|
665
685
|
ref: e,
|
|
666
686
|
className: "w-56 bg-background border-r border-border flex flex-col my-2",
|
|
667
687
|
"aria-label": "Sidebar",
|
|
668
688
|
...a,
|
|
669
|
-
children: /* @__PURE__ */
|
|
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 }) })
|
|
670
690
|
}
|
|
671
691
|
)
|
|
672
692
|
), La = Object.assign(ia, {
|
|
@@ -692,40 +712,40 @@ const j = i(
|
|
|
692
712
|
}
|
|
693
713
|
}
|
|
694
714
|
), 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, ...
|
|
696
|
-
return /* @__PURE__ */
|
|
715
|
+
function({ children: a, className: e, ...s }, n) {
|
|
716
|
+
return /* @__PURE__ */ r.jsx("nav", { ref: n, className: ma({ className: e }), ...s, children: a });
|
|
697
717
|
}
|
|
698
718
|
), xa = o(
|
|
699
|
-
function({ children: a, className: e, ...
|
|
700
|
-
return /* @__PURE__ */
|
|
719
|
+
function({ children: a, className: e, ...s }, n) {
|
|
720
|
+
return /* @__PURE__ */ r.jsx("div", { ref: n, className: ua({ className: e }), ...s, children: a });
|
|
701
721
|
}
|
|
702
722
|
), ga = o(
|
|
703
|
-
function({ children: a, className: e, ...
|
|
704
|
-
return /* @__PURE__ */
|
|
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 });
|
|
723
|
+
function({ children: a, className: e, ...s }, n) {
|
|
724
|
+
return /* @__PURE__ */ r.jsx("div", { ref: n, className: ca({ className: e }), ...s, children: a });
|
|
709
725
|
}
|
|
710
726
|
), ba = o(
|
|
711
|
-
function({ children: a, className: e,
|
|
712
|
-
return /* @__PURE__ */
|
|
727
|
+
function({ children: a, className: e, ...s }, n) {
|
|
728
|
+
return /* @__PURE__ */ r.jsx("div", { ref: n, className: pa({ className: e }), ...s, children: a });
|
|
729
|
+
}
|
|
730
|
+
), va = o(
|
|
731
|
+
function({ children: a, className: e, active: s, ...n }, c) {
|
|
732
|
+
return /* @__PURE__ */ r.jsx(
|
|
713
733
|
"div",
|
|
714
734
|
{
|
|
715
735
|
ref: c,
|
|
716
|
-
className: da({ active:
|
|
717
|
-
"aria-current":
|
|
736
|
+
className: da({ active: s, className: e }),
|
|
737
|
+
"aria-current": s ? "page" : void 0,
|
|
718
738
|
...n,
|
|
719
739
|
children: a
|
|
720
740
|
}
|
|
721
741
|
);
|
|
722
742
|
}
|
|
723
|
-
),
|
|
724
|
-
({ children: t, className: a, ...e },
|
|
725
|
-
), Ga = Object.assign(
|
|
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, {
|
|
726
746
|
Leading: ga,
|
|
727
|
-
Trailing:
|
|
728
|
-
NavItem:
|
|
747
|
+
Trailing: ba,
|
|
748
|
+
NavItem: va,
|
|
729
749
|
Nav: fa,
|
|
730
750
|
Actions: xa
|
|
731
751
|
});
|
|
@@ -739,6 +759,6 @@ export {
|
|
|
739
759
|
Sa as a,
|
|
740
760
|
Ta as b,
|
|
741
761
|
Aa as c,
|
|
742
|
-
|
|
743
|
-
|
|
762
|
+
Pa as d,
|
|
763
|
+
Ca as e
|
|
744
764
|
};
|