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