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