@dimasbaguspm/versaur 0.0.48 → 0.0.49
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/assets/styles.css +14 -6
- package/dist/js/forms/index.js +12 -14
- package/dist/js/image-rectangle-K9jmTTED.js +2607 -0
- package/dist/js/index.js +66 -68
- package/dist/js/layouts/index.js +8 -9
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +21 -20
- package/dist/js/tabs-I4n6MLAv.js +210 -0
- package/dist/js/time-picker-input-jJBtyikv.js +1562 -0
- package/dist/js/{tooltip-D6fUigp2.js → tooltip-nZW9TUz3.js} +293 -297
- package/dist/js/{top-bar-Dx0JVXms.js → top-bar-BMw3gFYA.js} +292 -247
- package/dist/types/forms/checkbox-input/checkbox-input.d.ts +1 -1
- package/dist/types/forms/checkbox-input/types.d.ts +11 -14
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.atoms.d.ts +2 -2
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +1 -1
- package/dist/types/forms/chip-multiple-input/types.d.ts +15 -14
- package/dist/types/forms/chip-single-input/chip-single-input.atoms.d.ts +1 -1
- package/dist/types/forms/chip-single-input/chip-single-input.d.ts +1 -1
- package/dist/types/forms/chip-single-input/types.d.ts +15 -14
- package/dist/types/forms/date-single-picker-input/types.d.ts +10 -0
- package/dist/types/forms/index.d.ts +0 -2
- package/dist/types/forms/pin-field/pin-field.d.ts +2 -2
- package/dist/types/forms/pin-field/types.d.ts +16 -28
- package/dist/types/forms/select-input/index.d.ts +1 -1
- package/dist/types/forms/select-input/select-input.atoms.d.ts +16 -0
- package/dist/types/forms/select-input/select-input.d.ts +4 -7
- package/dist/types/forms/select-input/types.d.ts +32 -9
- package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +1 -1
- package/dist/types/forms/selectable-multiple-input/types.d.ts +20 -3
- package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +1 -1
- package/dist/types/forms/selectable-single-input/types.d.ts +20 -3
- package/dist/types/forms/switch-input/switch-input.atoms.d.ts +7 -8
- package/dist/types/forms/switch-input/switch-input.d.ts +5 -1
- package/dist/types/forms/switch-input/types.d.ts +10 -33
- package/dist/types/forms/text-input/text-input.d.ts +2 -2
- package/dist/types/forms/text-input/types.d.ts +0 -7
- package/dist/types/forms/textarea-input/textarea-input.d.ts +3 -3
- package/dist/types/forms/textarea-input/types.d.ts +33 -18
- package/dist/types/layouts/index.d.ts +1 -2
- package/dist/types/layouts/page-content/index.d.ts +1 -1
- package/dist/types/layouts/page-content/page-content.d.ts +5 -11
- package/dist/types/layouts/page-content/types.d.ts +29 -9
- package/dist/types/layouts/page-header/types.d.ts +13 -0
- package/dist/types/navigation/tabs/tabs.atoms.d.ts +3 -2
- package/dist/types/navigation/tabs/types.d.ts +5 -13
- package/dist/types/navigation/tabs/use-tab-indicator.d.ts +8 -8
- package/dist/types/overlays/drawer/drawer.atoms.d.ts +18 -8
- package/dist/types/overlays/drawer/drawer.d.ts +5 -5
- package/dist/types/overlays/drawer/types.d.ts +11 -15
- package/dist/types/primitive/button/button.d.ts +5 -0
- package/dist/types/primitive/button/types.d.ts +24 -11
- package/dist/types/primitive/button-anchor/button-anchor.d.ts +9 -0
- package/dist/types/primitive/button-anchor/index.d.ts +2 -0
- package/dist/types/primitive/button-anchor/types.d.ts +35 -0
- package/dist/types/primitive/button-icon/button-icon.d.ts +6 -0
- package/dist/types/primitive/button-icon/types.d.ts +21 -10
- package/dist/types/primitive/filter-chip/types.d.ts +0 -10
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/templates/pin-verifier-drawer/types.d.ts +0 -5
- package/dist/utils/enforce-subpath-import.js +1 -3
- package/package.json +1 -1
- package/dist/js/image-rectangle-B4nXH4Q5.js +0 -2581
- package/dist/js/tabs-BAzThVka.js +0 -291
- package/dist/js/time-picker-input-JBEgDV2V.js +0 -2049
- package/dist/types/forms/segment-multiple-input/index.d.ts +0 -2
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -12
- package/dist/types/forms/segment-multiple-input/segment-multiple-input.d.ts +0 -7
- package/dist/types/forms/segment-multiple-input/types.d.ts +0 -55
- package/dist/types/forms/segment-single-input/index.d.ts +0 -2
- package/dist/types/forms/segment-single-input/segment-single-input.atoms.d.ts +0 -11
- package/dist/types/forms/segment-single-input/segment-single-input.d.ts +0 -7
- package/dist/types/forms/segment-single-input/types.d.ts +0 -55
- package/dist/types/layouts/page-layout/index.d.ts +0 -2
- package/dist/types/layouts/page-layout/page-layout.d.ts +0 -8
- package/dist/types/layouts/page-layout/types.d.ts +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as i, j as
|
|
1
|
+
import { c as i, j as t, a as l } from "./index-DOdDlCoL.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { n as f } from "./image-rectangle-K9jmTTED.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
import { L as
|
|
7
|
-
const
|
|
6
|
+
import { L as y } from "./skeleton-BNZyaRjo.js";
|
|
7
|
+
const w = i(
|
|
8
8
|
"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
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -20,7 +20,7 @@ const j = i(
|
|
|
20
20
|
variant: "primary"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
),
|
|
23
|
+
), B = i(
|
|
24
24
|
"flex flex-col justify-center min-w-0 flex-grow",
|
|
25
25
|
{
|
|
26
26
|
variants: {
|
|
@@ -34,27 +34,27 @@ const j = i(
|
|
|
34
34
|
placement: "start"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
),
|
|
38
|
-
({ children:
|
|
37
|
+
), N = o(
|
|
38
|
+
({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
41
|
ref: e,
|
|
42
42
|
"data-versaur-appbar-bottom": !0,
|
|
43
43
|
className: l("w-full flex items-center min-h-[2.5rem] mt-2", a),
|
|
44
|
-
children:
|
|
44
|
+
children: s
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
|
-
),
|
|
48
|
-
({ children:
|
|
47
|
+
), V = o(
|
|
48
|
+
({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: e,
|
|
52
52
|
className: l("flex items-center", a),
|
|
53
53
|
"data-versaur-appbar-leading": !0,
|
|
54
|
-
children:
|
|
54
|
+
children: s
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
|
-
),
|
|
57
|
+
), z = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
58
58
|
f,
|
|
59
59
|
{
|
|
60
60
|
...a,
|
|
@@ -64,9 +64,9 @@ const j = i(
|
|
|
64
64
|
fontWeight: "semibold",
|
|
65
65
|
ellipsis: !0,
|
|
66
66
|
clamp: 1,
|
|
67
|
-
children:
|
|
67
|
+
children: s
|
|
68
68
|
}
|
|
69
|
-
)),
|
|
69
|
+
)), S = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
70
70
|
f,
|
|
71
71
|
{
|
|
72
72
|
...a,
|
|
@@ -77,46 +77,46 @@ const j = i(
|
|
|
77
77
|
ellipsis: !0,
|
|
78
78
|
clamp: 1,
|
|
79
79
|
color: "gray",
|
|
80
|
-
children:
|
|
80
|
+
children: s
|
|
81
81
|
}
|
|
82
|
-
)),
|
|
83
|
-
({ children:
|
|
82
|
+
)), T = o(
|
|
83
|
+
({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
ref: e,
|
|
87
87
|
className: l("flex items-center justify-end gap-2", a),
|
|
88
88
|
"data-versaur-appbar-trailing": !0,
|
|
89
|
-
children:
|
|
89
|
+
children: s
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
|
-
),
|
|
93
|
-
({ children:
|
|
92
|
+
), C = o(
|
|
93
|
+
({ children: s, className: a, placement: e }, r) => /* @__PURE__ */ t.jsx(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
ref: r,
|
|
97
|
-
className: l(
|
|
98
|
-
children:
|
|
97
|
+
className: l(B({ placement: e }), a),
|
|
98
|
+
children: s
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
|
-
),
|
|
102
|
-
children:
|
|
101
|
+
), H = ({
|
|
102
|
+
children: s,
|
|
103
103
|
className: a,
|
|
104
104
|
variant: e = "primary"
|
|
105
|
-
}) => /* @__PURE__ */
|
|
105
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
106
106
|
"header",
|
|
107
107
|
{
|
|
108
|
-
className: l(
|
|
108
|
+
className: l(w({ variant: e }), a),
|
|
109
109
|
role: "banner",
|
|
110
|
-
children:
|
|
111
|
-
}
|
|
112
|
-
), La = Object.assign(
|
|
113
|
-
Leading:
|
|
114
|
-
Headline:
|
|
115
|
-
Subtitle:
|
|
116
|
-
Trailing:
|
|
117
|
-
Center:
|
|
118
|
-
Bottom:
|
|
119
|
-
}),
|
|
110
|
+
children: s
|
|
111
|
+
}
|
|
112
|
+
), La = Object.assign(H, {
|
|
113
|
+
Leading: V,
|
|
114
|
+
Headline: z,
|
|
115
|
+
Subtitle: S,
|
|
116
|
+
Trailing: T,
|
|
117
|
+
Center: C,
|
|
118
|
+
Bottom: N
|
|
119
|
+
}), L = i(
|
|
120
120
|
"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",
|
|
121
121
|
{
|
|
122
122
|
variants: {
|
|
@@ -138,7 +138,7 @@ const j = i(
|
|
|
138
138
|
size: "md"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
),
|
|
141
|
+
), A = i(
|
|
142
142
|
"flex flex-col items-center justify-center gap-1",
|
|
143
143
|
{
|
|
144
144
|
variants: {
|
|
@@ -158,45 +158,45 @@ const j = i(
|
|
|
158
158
|
}
|
|
159
159
|
), P = o(
|
|
160
160
|
({
|
|
161
|
-
as:
|
|
161
|
+
as: s = "button",
|
|
162
162
|
icon: a,
|
|
163
163
|
label: e,
|
|
164
164
|
active: r = !1,
|
|
165
165
|
className: n,
|
|
166
166
|
children: c,
|
|
167
|
-
...
|
|
168
|
-
},
|
|
169
|
-
|
|
167
|
+
...d
|
|
168
|
+
}, m) => /* @__PURE__ */ t.jsxs(
|
|
169
|
+
s,
|
|
170
170
|
{
|
|
171
|
-
ref:
|
|
171
|
+
ref: m,
|
|
172
172
|
"aria-current": r ? "page" : void 0,
|
|
173
|
-
className:
|
|
174
|
-
...
|
|
173
|
+
className: A({ active: r, className: n, as: s }),
|
|
174
|
+
...d,
|
|
175
175
|
children: [
|
|
176
176
|
a && a,
|
|
177
177
|
c && c,
|
|
178
|
-
e && /* @__PURE__ */
|
|
178
|
+
e && /* @__PURE__ */ t.jsx("span", { className: "text-xs mt-0.5", children: e })
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
|
-
),
|
|
183
|
-
children:
|
|
182
|
+
), I = ({
|
|
183
|
+
children: s,
|
|
184
184
|
variant: a = "primary",
|
|
185
185
|
size: e = "md",
|
|
186
186
|
className: r,
|
|
187
187
|
...n
|
|
188
|
-
}) => /* @__PURE__ */
|
|
188
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
189
189
|
"nav",
|
|
190
190
|
{
|
|
191
191
|
role: "navigation",
|
|
192
192
|
"aria-label": "Bottom navigation",
|
|
193
|
-
className:
|
|
193
|
+
className: L({ variant: a, size: e, className: r }),
|
|
194
194
|
...n,
|
|
195
|
-
children:
|
|
195
|
+
children: s
|
|
196
196
|
}
|
|
197
|
-
),
|
|
197
|
+
), Aa = Object.assign(I, {
|
|
198
198
|
Item: P
|
|
199
|
-
}),
|
|
199
|
+
}), R = i("flex flex-wrap items-center", {
|
|
200
200
|
variants: {
|
|
201
201
|
orientation: {
|
|
202
202
|
horizontal: "flex-row",
|
|
@@ -228,38 +228,38 @@ const j = i(
|
|
|
228
228
|
gap: "md",
|
|
229
229
|
fluid: !1
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), Pa = o(
|
|
232
232
|
function({
|
|
233
233
|
className: a,
|
|
234
234
|
children: e,
|
|
235
235
|
orientation: r = "horizontal",
|
|
236
236
|
alignment: n = "start",
|
|
237
237
|
gap: c = "md",
|
|
238
|
-
fluid:
|
|
239
|
-
hasMargin:
|
|
240
|
-
...
|
|
241
|
-
},
|
|
242
|
-
return /* @__PURE__ */
|
|
238
|
+
fluid: d = !1,
|
|
239
|
+
hasMargin: m,
|
|
240
|
+
...p
|
|
241
|
+
}, u) {
|
|
242
|
+
return /* @__PURE__ */ t.jsx(
|
|
243
243
|
"div",
|
|
244
244
|
{
|
|
245
|
-
ref:
|
|
245
|
+
ref: u,
|
|
246
246
|
className: l(
|
|
247
|
-
|
|
247
|
+
R({
|
|
248
248
|
orientation: r,
|
|
249
249
|
alignment: n,
|
|
250
250
|
gap: c,
|
|
251
|
-
fluid:
|
|
251
|
+
fluid: d
|
|
252
252
|
}),
|
|
253
|
-
|
|
253
|
+
m && "mb-4",
|
|
254
254
|
a
|
|
255
255
|
),
|
|
256
256
|
role: "group",
|
|
257
|
-
...
|
|
257
|
+
...p,
|
|
258
258
|
children: e
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
),
|
|
262
|
+
), G = i("flex flex-wrap items-center", {
|
|
263
263
|
variants: {
|
|
264
264
|
orientation: {
|
|
265
265
|
horizontal: "flex-row",
|
|
@@ -291,38 +291,38 @@ const j = i(
|
|
|
291
291
|
gap: "md",
|
|
292
292
|
fluid: !1
|
|
293
293
|
}
|
|
294
|
-
}),
|
|
294
|
+
}), Ia = o(
|
|
295
295
|
function({
|
|
296
296
|
className: a,
|
|
297
297
|
children: e,
|
|
298
298
|
orientation: r = "horizontal",
|
|
299
299
|
alignment: n = "start",
|
|
300
300
|
gap: c = "md",
|
|
301
|
-
fluid:
|
|
302
|
-
hasMargin:
|
|
303
|
-
...
|
|
304
|
-
},
|
|
305
|
-
return /* @__PURE__ */
|
|
301
|
+
fluid: d = !1,
|
|
302
|
+
hasMargin: m,
|
|
303
|
+
...p
|
|
304
|
+
}, u) {
|
|
305
|
+
return /* @__PURE__ */ t.jsx(
|
|
306
306
|
"div",
|
|
307
307
|
{
|
|
308
|
-
ref:
|
|
308
|
+
ref: u,
|
|
309
309
|
className: l(
|
|
310
|
-
|
|
310
|
+
G({
|
|
311
311
|
orientation: r,
|
|
312
312
|
alignment: n,
|
|
313
313
|
gap: c,
|
|
314
|
-
fluid:
|
|
314
|
+
fluid: d
|
|
315
315
|
}),
|
|
316
|
-
|
|
316
|
+
m && "mb-4",
|
|
317
317
|
a
|
|
318
318
|
),
|
|
319
319
|
role: "group",
|
|
320
|
-
...
|
|
320
|
+
...p,
|
|
321
321
|
children: e
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
),
|
|
325
|
+
), k = i("flex flex-wrap items-center", {
|
|
326
326
|
variants: {
|
|
327
327
|
orientation: {
|
|
328
328
|
horizontal: "flex-row",
|
|
@@ -354,95 +354,106 @@ const j = i(
|
|
|
354
354
|
gap: "md",
|
|
355
355
|
fluid: !1
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
357
|
+
}), Ra = o(
|
|
358
358
|
function({
|
|
359
359
|
className: a,
|
|
360
360
|
children: e,
|
|
361
361
|
orientation: r = "horizontal",
|
|
362
362
|
alignment: n = "start",
|
|
363
363
|
gap: c = "md",
|
|
364
|
-
fluid:
|
|
365
|
-
hasMargin:
|
|
366
|
-
...
|
|
367
|
-
},
|
|
368
|
-
return /* @__PURE__ */
|
|
364
|
+
fluid: d = !1,
|
|
365
|
+
hasMargin: m,
|
|
366
|
+
...p
|
|
367
|
+
}, u) {
|
|
368
|
+
return /* @__PURE__ */ t.jsx(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
371
|
-
ref:
|
|
371
|
+
ref: u,
|
|
372
372
|
className: l(
|
|
373
|
-
|
|
373
|
+
k({
|
|
374
374
|
orientation: r,
|
|
375
375
|
alignment: n,
|
|
376
376
|
gap: c,
|
|
377
|
-
fluid:
|
|
377
|
+
fluid: d
|
|
378
378
|
}),
|
|
379
|
-
|
|
379
|
+
m && "mb-4",
|
|
380
380
|
a
|
|
381
381
|
),
|
|
382
382
|
role: "group",
|
|
383
|
-
...
|
|
383
|
+
...p,
|
|
384
384
|
children: e
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
className: l(I(), a),
|
|
394
|
-
...e,
|
|
395
|
-
children: t
|
|
388
|
+
), F = i("w-full", {
|
|
389
|
+
variants: {
|
|
390
|
+
backgroundColor: {
|
|
391
|
+
white: "bg-white",
|
|
392
|
+
gray: "bg-neutral"
|
|
396
393
|
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
394
|
+
},
|
|
395
|
+
defaultVariants: {
|
|
396
|
+
backgroundColor: "white"
|
|
397
|
+
}
|
|
398
|
+
}), O = i("w-full mx-auto pt-4 md:pt-10", {
|
|
399
|
+
variants: {
|
|
400
|
+
size: {
|
|
401
|
+
fluid: "max-w-full px-0",
|
|
402
|
+
wide: "max-w-7xl px-6",
|
|
403
|
+
narrow: "max-w-3xl px-4"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
defaultVariants: {
|
|
407
|
+
size: "fluid"
|
|
408
|
+
}
|
|
409
|
+
}), W = i(
|
|
410
|
+
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4"
|
|
411
|
+
), M = i("mb-4"), E = i(
|
|
401
412
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
402
|
-
),
|
|
413
|
+
), $ = i("flex items-center gap-2 flex-wrap"), q = i(
|
|
403
414
|
"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"
|
|
404
|
-
),
|
|
405
|
-
"w-full flex items-center
|
|
406
|
-
),
|
|
407
|
-
({ children:
|
|
415
|
+
), D = i("md:hidden"), J = i(
|
|
416
|
+
"w-full flex items-center py-0 overflow-x-auto"
|
|
417
|
+
), K = o(
|
|
418
|
+
({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
408
419
|
"div",
|
|
409
420
|
{
|
|
410
421
|
ref: r,
|
|
411
|
-
className: l(
|
|
422
|
+
className: l(W(), a),
|
|
412
423
|
"data-versaur-page-header-top": !0,
|
|
413
424
|
...e,
|
|
414
|
-
children:
|
|
425
|
+
children: s
|
|
415
426
|
}
|
|
416
427
|
)
|
|
417
|
-
),
|
|
428
|
+
), Q = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
418
429
|
"div",
|
|
419
430
|
{
|
|
420
431
|
ref: r,
|
|
421
|
-
className: l(
|
|
432
|
+
className: l(M(), a),
|
|
422
433
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
423
434
|
...e,
|
|
424
|
-
children:
|
|
435
|
+
children: s
|
|
425
436
|
}
|
|
426
|
-
)),
|
|
437
|
+
)), U = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
427
438
|
"div",
|
|
428
439
|
{
|
|
429
440
|
ref: r,
|
|
430
|
-
className: l(
|
|
441
|
+
className: l(E(), a),
|
|
431
442
|
"data-versaur-page-header-content": !0,
|
|
432
443
|
...e,
|
|
433
|
-
children:
|
|
444
|
+
children: s
|
|
434
445
|
}
|
|
435
|
-
)),
|
|
446
|
+
)), X = o((s, a) => /* @__PURE__ */ t.jsx(
|
|
436
447
|
f,
|
|
437
448
|
{
|
|
438
|
-
...
|
|
449
|
+
...s,
|
|
439
450
|
as: "h1",
|
|
440
451
|
fontSize: "xl",
|
|
441
452
|
fontWeight: "semibold",
|
|
442
453
|
ellipsis: !0,
|
|
443
454
|
ref: a
|
|
444
455
|
}
|
|
445
|
-
)),
|
|
456
|
+
)), Y = o(({ className: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
446
457
|
f,
|
|
447
458
|
{
|
|
448
459
|
as: "p",
|
|
@@ -450,109 +461,144 @@ const j = i(
|
|
|
450
461
|
fontWeight: "normal",
|
|
451
462
|
clamp: 2,
|
|
452
463
|
ref: e,
|
|
453
|
-
className: l("mb-2 sm:clamp-3",
|
|
464
|
+
className: l("mb-2 sm:clamp-3", s),
|
|
454
465
|
...a
|
|
455
466
|
}
|
|
456
|
-
)),
|
|
467
|
+
)), Z = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
457
468
|
"div",
|
|
458
469
|
{
|
|
459
470
|
ref: r,
|
|
460
|
-
className: l(
|
|
471
|
+
className: l($(), a),
|
|
461
472
|
"data-versaur-page-header-badges": !0,
|
|
462
473
|
...e,
|
|
463
|
-
children:
|
|
474
|
+
children: s
|
|
464
475
|
}
|
|
465
|
-
)),
|
|
476
|
+
)), _ = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
466
477
|
"div",
|
|
467
478
|
{
|
|
468
479
|
ref: r,
|
|
469
|
-
className: l(
|
|
480
|
+
className: l(q(), a),
|
|
470
481
|
"data-versaur-page-header-actions": !0,
|
|
471
482
|
...e,
|
|
472
|
-
children:
|
|
483
|
+
children: s
|
|
473
484
|
}
|
|
474
|
-
)),
|
|
485
|
+
)), aa = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
475
486
|
"div",
|
|
476
487
|
{
|
|
477
488
|
ref: r,
|
|
478
|
-
className: l(
|
|
489
|
+
className: l(D(), a),
|
|
479
490
|
"data-versaur-page-header-mobile-actions": !0,
|
|
480
491
|
...e,
|
|
481
|
-
children:
|
|
492
|
+
children: s
|
|
482
493
|
}
|
|
483
|
-
)),
|
|
494
|
+
)), ea = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
|
|
484
495
|
"div",
|
|
485
496
|
{
|
|
486
497
|
ref: r,
|
|
487
|
-
className: l(
|
|
498
|
+
className: l(J(), a),
|
|
488
499
|
"data-versaur-page-header-bottom": !0,
|
|
489
500
|
...e,
|
|
490
|
-
children:
|
|
501
|
+
children: s
|
|
491
502
|
}
|
|
492
|
-
)),
|
|
503
|
+
)), ta = o(
|
|
493
504
|
({
|
|
494
|
-
children:
|
|
505
|
+
children: s,
|
|
495
506
|
className: a,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
507
|
+
size: e = "fluid",
|
|
508
|
+
backgroundColor: r = "white",
|
|
509
|
+
title: n,
|
|
510
|
+
subtitle: c,
|
|
511
|
+
breadcrumbs: d,
|
|
512
|
+
badges: m,
|
|
500
513
|
actions: p,
|
|
501
|
-
mobileActions:
|
|
502
|
-
tabs:
|
|
503
|
-
...
|
|
504
|
-
},
|
|
505
|
-
const
|
|
506
|
-
return /* @__PURE__ */
|
|
514
|
+
mobileActions: u,
|
|
515
|
+
tabs: x,
|
|
516
|
+
...g
|
|
517
|
+
}, h) => {
|
|
518
|
+
const j = x;
|
|
519
|
+
return /* @__PURE__ */ t.jsx(
|
|
507
520
|
"header",
|
|
508
521
|
{
|
|
509
|
-
ref:
|
|
510
|
-
className: l(
|
|
522
|
+
ref: h,
|
|
523
|
+
className: l(F({ backgroundColor: r })),
|
|
511
524
|
role: "banner",
|
|
512
|
-
...
|
|
513
|
-
children: [
|
|
514
|
-
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
525
|
+
...g,
|
|
526
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: l(O({ size: e }), a), children: [
|
|
527
|
+
d && /* @__PURE__ */ t.jsx(Q, { children: d }),
|
|
528
|
+
/* @__PURE__ */ t.jsxs(K, { children: [
|
|
529
|
+
/* @__PURE__ */ t.jsxs(U, { children: [
|
|
530
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
531
|
+
/* @__PURE__ */ t.jsx(X, { children: n }),
|
|
532
|
+
u && /* @__PURE__ */ t.jsx(aa, { children: u })
|
|
520
533
|
] }),
|
|
521
|
-
|
|
522
|
-
|
|
534
|
+
c && /* @__PURE__ */ t.jsx(Y, { children: c }),
|
|
535
|
+
m && /* @__PURE__ */ t.jsx(Z, { children: m })
|
|
523
536
|
] }),
|
|
524
|
-
p && /* @__PURE__ */
|
|
537
|
+
p && /* @__PURE__ */ t.jsx(_, { children: p })
|
|
525
538
|
] }),
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
]
|
|
539
|
+
j && /* @__PURE__ */ t.jsx(ea, { children: x }),
|
|
540
|
+
s
|
|
541
|
+
] })
|
|
529
542
|
}
|
|
530
543
|
);
|
|
531
544
|
}
|
|
532
|
-
),
|
|
545
|
+
), Ga = ta, sa = i("w-full", {
|
|
546
|
+
variants: {
|
|
547
|
+
backgroundColor: {
|
|
548
|
+
white: "bg-white",
|
|
549
|
+
gray: "bg-neutral"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
defaultVariants: {
|
|
553
|
+
backgroundColor: "white"
|
|
554
|
+
}
|
|
555
|
+
}), ra = i("w-full mx-auto relative", {
|
|
533
556
|
variants: {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
557
|
+
size: {
|
|
558
|
+
fluid: "max-w-full px-0",
|
|
559
|
+
wide: "max-w-7xl px-6 pb-10",
|
|
560
|
+
narrow: "max-w-3xl px-4 pb-10"
|
|
561
|
+
},
|
|
562
|
+
template: {
|
|
563
|
+
"single-column": "grid grid-cols-1",
|
|
564
|
+
"two-column": "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
565
|
+
"two-column-asymmetric-left": "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
566
|
+
"two-column-asymmetric-right": "grid grid-cols-1 md:grid-cols-3 gap-6"
|
|
538
567
|
}
|
|
539
568
|
},
|
|
540
569
|
defaultVariants: {
|
|
541
|
-
|
|
570
|
+
size: "fluid",
|
|
571
|
+
template: "single-column"
|
|
542
572
|
}
|
|
543
|
-
}),
|
|
544
|
-
function({
|
|
545
|
-
|
|
573
|
+
}), ka = v.forwardRef(
|
|
574
|
+
function({
|
|
575
|
+
size: a = "fluid",
|
|
576
|
+
template: e = "single-column",
|
|
577
|
+
backgroundColor: r = "white",
|
|
578
|
+
className: n,
|
|
579
|
+
children: c,
|
|
580
|
+
...d
|
|
581
|
+
}, m) {
|
|
582
|
+
return /* @__PURE__ */ t.jsx(
|
|
546
583
|
"div",
|
|
547
584
|
{
|
|
548
|
-
ref:
|
|
549
|
-
className: l(
|
|
550
|
-
...
|
|
551
|
-
children:
|
|
585
|
+
ref: m,
|
|
586
|
+
className: l(sa({ backgroundColor: r })),
|
|
587
|
+
...d,
|
|
588
|
+
children: /* @__PURE__ */ t.jsx(
|
|
589
|
+
"div",
|
|
590
|
+
{
|
|
591
|
+
className: l(
|
|
592
|
+
ra({ size: a, template: e }),
|
|
593
|
+
n
|
|
594
|
+
),
|
|
595
|
+
children: c
|
|
596
|
+
}
|
|
597
|
+
)
|
|
552
598
|
}
|
|
553
599
|
);
|
|
554
600
|
}
|
|
555
|
-
),
|
|
601
|
+
), na = i(
|
|
556
602
|
[
|
|
557
603
|
// Base styles: flex container that centers content
|
|
558
604
|
"flex",
|
|
@@ -588,33 +634,33 @@ const j = i(
|
|
|
588
634
|
fullscreen: !1
|
|
589
635
|
}
|
|
590
636
|
}
|
|
591
|
-
),
|
|
637
|
+
), oa = i([
|
|
592
638
|
"text-foreground-light",
|
|
593
639
|
"text-sm",
|
|
594
640
|
"text-center",
|
|
595
641
|
"max-w-xs"
|
|
596
|
-
]),
|
|
642
|
+
]), Fa = v.forwardRef(
|
|
597
643
|
function({
|
|
598
644
|
type: a = "bar",
|
|
599
645
|
size: e = "sm",
|
|
600
646
|
color: r = "primary",
|
|
601
647
|
ariaLabel: n = "Loading page",
|
|
602
648
|
message: c,
|
|
603
|
-
fullscreen:
|
|
604
|
-
minimal:
|
|
605
|
-
className:
|
|
606
|
-
children:
|
|
649
|
+
fullscreen: d = !1,
|
|
650
|
+
minimal: m = !1,
|
|
651
|
+
className: p,
|
|
652
|
+
children: u,
|
|
607
653
|
...x
|
|
608
654
|
}, g) {
|
|
609
|
-
return /* @__PURE__ */
|
|
655
|
+
return /* @__PURE__ */ t.jsxs(
|
|
610
656
|
"div",
|
|
611
657
|
{
|
|
612
658
|
ref: g,
|
|
613
|
-
className: l(
|
|
659
|
+
className: l(na({ minimal: m, fullscreen: d }), p),
|
|
614
660
|
...x,
|
|
615
661
|
children: [
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
|
|
662
|
+
/* @__PURE__ */ t.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ t.jsx(
|
|
663
|
+
y,
|
|
618
664
|
{
|
|
619
665
|
type: a,
|
|
620
666
|
size: e,
|
|
@@ -622,13 +668,13 @@ const j = i(
|
|
|
622
668
|
ariaLabel: n
|
|
623
669
|
}
|
|
624
670
|
) }),
|
|
625
|
-
c && /* @__PURE__ */
|
|
626
|
-
|
|
671
|
+
c && /* @__PURE__ */ t.jsx("p", { className: oa(), "aria-live": "polite", children: c }),
|
|
672
|
+
u
|
|
627
673
|
]
|
|
628
674
|
}
|
|
629
675
|
);
|
|
630
676
|
}
|
|
631
|
-
),
|
|
677
|
+
), ia = i("grid w-full gap-4 grid-cols-12"), la = i("", {
|
|
632
678
|
variants: {
|
|
633
679
|
span: {
|
|
634
680
|
1: "col-span-1",
|
|
@@ -648,27 +694,27 @@ const j = i(
|
|
|
648
694
|
defaultVariants: {
|
|
649
695
|
span: "4"
|
|
650
696
|
}
|
|
651
|
-
}),
|
|
697
|
+
}), ca = o(
|
|
652
698
|
function({ className: a, children: e, ...r }, n) {
|
|
653
|
-
return /* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ t.jsx(
|
|
654
700
|
"div",
|
|
655
701
|
{
|
|
656
702
|
ref: n,
|
|
657
|
-
className: l(
|
|
703
|
+
className: l(ia(), a),
|
|
658
704
|
...r,
|
|
659
705
|
children: e
|
|
660
706
|
}
|
|
661
707
|
);
|
|
662
708
|
}
|
|
663
|
-
),
|
|
709
|
+
), da = o(
|
|
664
710
|
function({ span: a = 4, className: e, children: r, ...n }, c) {
|
|
665
|
-
const
|
|
666
|
-
return /* @__PURE__ */
|
|
711
|
+
const d = Math.min(12, Math.max(1, a));
|
|
712
|
+
return /* @__PURE__ */ t.jsx(
|
|
667
713
|
"div",
|
|
668
714
|
{
|
|
669
715
|
ref: c,
|
|
670
716
|
className: l(
|
|
671
|
-
|
|
717
|
+
la({ span: `${d}` }),
|
|
672
718
|
e
|
|
673
719
|
),
|
|
674
720
|
...n,
|
|
@@ -676,8 +722,8 @@ const j = i(
|
|
|
676
722
|
}
|
|
677
723
|
);
|
|
678
724
|
}
|
|
679
|
-
),
|
|
680
|
-
Column:
|
|
725
|
+
), Oa = Object.assign(ca, {
|
|
726
|
+
Column: da
|
|
681
727
|
}), b = i(
|
|
682
728
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
683
729
|
{
|
|
@@ -696,52 +742,52 @@ const j = i(
|
|
|
696
742
|
disabled: !1
|
|
697
743
|
}
|
|
698
744
|
}
|
|
699
|
-
),
|
|
700
|
-
(
|
|
701
|
-
const { icon: e, children: r, href: n, onClick: c, active:
|
|
745
|
+
), ma = o(
|
|
746
|
+
(s, a) => {
|
|
747
|
+
const { icon: e, children: r, href: n, onClick: c, active: d, ...m } = s;
|
|
702
748
|
if (typeof n == "string") {
|
|
703
|
-
const
|
|
704
|
-
return /* @__PURE__ */
|
|
749
|
+
const u = m;
|
|
750
|
+
return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
|
|
705
751
|
"a",
|
|
706
752
|
{
|
|
707
753
|
ref: a,
|
|
708
754
|
href: n,
|
|
709
755
|
className: b({
|
|
710
|
-
disabled: !!
|
|
711
|
-
active:
|
|
756
|
+
disabled: !!s["aria-disabled"],
|
|
757
|
+
active: d
|
|
712
758
|
}),
|
|
713
|
-
...
|
|
759
|
+
...u,
|
|
714
760
|
children: [
|
|
715
761
|
e,
|
|
716
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ t.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
717
763
|
]
|
|
718
764
|
}
|
|
719
765
|
) });
|
|
720
766
|
} else {
|
|
721
|
-
const
|
|
722
|
-
return /* @__PURE__ */
|
|
767
|
+
const u = m;
|
|
768
|
+
return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
|
|
723
769
|
"button",
|
|
724
770
|
{
|
|
725
771
|
ref: a,
|
|
726
772
|
type: "button",
|
|
727
773
|
onClick: c,
|
|
728
774
|
className: l(
|
|
729
|
-
b({ disabled: !!
|
|
775
|
+
b({ disabled: !!u.disabled, active: d }),
|
|
730
776
|
"w-full text-left"
|
|
731
777
|
),
|
|
732
|
-
...
|
|
778
|
+
...u,
|
|
733
779
|
children: [
|
|
734
780
|
e,
|
|
735
|
-
/* @__PURE__ */
|
|
781
|
+
/* @__PURE__ */ t.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
736
782
|
]
|
|
737
783
|
}
|
|
738
784
|
) });
|
|
739
785
|
}
|
|
740
786
|
}
|
|
741
|
-
),
|
|
787
|
+
), ua = o(
|
|
742
788
|
function({ children: a, label: e, ...r }, n) {
|
|
743
|
-
return /* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ t.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
|
|
790
|
+
/* @__PURE__ */ t.jsx(
|
|
745
791
|
f,
|
|
746
792
|
{
|
|
747
793
|
as: "h2",
|
|
@@ -752,30 +798,30 @@ const j = i(
|
|
|
752
798
|
children: e
|
|
753
799
|
}
|
|
754
800
|
),
|
|
755
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ t.jsx("ul", { className: "flex flex-col gap-1", children: a })
|
|
756
802
|
] });
|
|
757
803
|
}
|
|
758
804
|
), pa = o(
|
|
759
|
-
({ children:
|
|
805
|
+
({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
|
|
760
806
|
"nav",
|
|
761
807
|
{
|
|
762
808
|
ref: e,
|
|
763
809
|
className: "w-56 bg-background border-r border-border flex flex-col my-2",
|
|
764
810
|
"aria-label": "Sidebar",
|
|
765
811
|
...a,
|
|
766
|
-
children: /* @__PURE__ */
|
|
812
|
+
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: s }) })
|
|
767
813
|
}
|
|
768
814
|
)
|
|
769
|
-
),
|
|
770
|
-
Item:
|
|
771
|
-
Group:
|
|
772
|
-
}),
|
|
815
|
+
), Wa = Object.assign(pa, {
|
|
816
|
+
Item: ma,
|
|
817
|
+
Group: ua
|
|
818
|
+
}), fa = i(
|
|
773
819
|
"w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
|
|
774
820
|
{
|
|
775
821
|
variants: {},
|
|
776
822
|
defaultVariants: {}
|
|
777
823
|
}
|
|
778
|
-
),
|
|
824
|
+
), xa = i("flex items-center gap-3 min-w-0 flex-1"), ga = i("flex items-center gap-2 ml-auto"), ba = i(
|
|
779
825
|
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
780
826
|
{
|
|
781
827
|
variants: {
|
|
@@ -788,55 +834,54 @@ const j = i(
|
|
|
788
834
|
active: !1
|
|
789
835
|
}
|
|
790
836
|
}
|
|
791
|
-
),
|
|
837
|
+
), va = i("flex items-center gap-2 ml-4"), ha = i("flex items-center gap-2 mr-4"), ja = o(
|
|
792
838
|
function({ children: a, className: e, ...r }, n) {
|
|
793
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ t.jsx("nav", { ref: n, className: va({ className: e }), ...r, children: a });
|
|
794
840
|
}
|
|
795
|
-
),
|
|
841
|
+
), ya = o(
|
|
796
842
|
function({ children: a, className: e, ...r }, n) {
|
|
797
|
-
return /* @__PURE__ */
|
|
843
|
+
return /* @__PURE__ */ t.jsx("div", { ref: n, className: ha({ className: e }), ...r, children: a });
|
|
798
844
|
}
|
|
799
|
-
),
|
|
845
|
+
), wa = o(
|
|
800
846
|
function({ children: a, className: e, ...r }, n) {
|
|
801
|
-
return /* @__PURE__ */
|
|
847
|
+
return /* @__PURE__ */ t.jsx("div", { ref: n, className: xa({ className: e }), ...r, children: a });
|
|
802
848
|
}
|
|
803
|
-
),
|
|
849
|
+
), Ba = o(
|
|
804
850
|
function({ children: a, className: e, ...r }, n) {
|
|
805
|
-
return /* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ t.jsx("div", { ref: n, className: ga({ className: e }), ...r, children: a });
|
|
806
852
|
}
|
|
807
|
-
),
|
|
853
|
+
), Na = o(
|
|
808
854
|
function({ children: a, className: e, active: r, ...n }, c) {
|
|
809
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ t.jsx(
|
|
810
856
|
"div",
|
|
811
857
|
{
|
|
812
858
|
ref: c,
|
|
813
|
-
className:
|
|
859
|
+
className: ba({ active: r, className: e }),
|
|
814
860
|
"aria-current": r ? "page" : void 0,
|
|
815
861
|
...n,
|
|
816
862
|
children: a
|
|
817
863
|
}
|
|
818
864
|
);
|
|
819
865
|
}
|
|
820
|
-
),
|
|
821
|
-
({ children:
|
|
822
|
-
),
|
|
823
|
-
Leading:
|
|
824
|
-
Trailing:
|
|
825
|
-
NavItem:
|
|
826
|
-
Nav:
|
|
827
|
-
Actions:
|
|
866
|
+
), Va = o(
|
|
867
|
+
({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx("header", { ref: r, className: fa({ className: a }), ...e, children: s })
|
|
868
|
+
), Ma = Object.assign(Va, {
|
|
869
|
+
Leading: wa,
|
|
870
|
+
Trailing: Ba,
|
|
871
|
+
NavItem: Na,
|
|
872
|
+
Nav: ja,
|
|
873
|
+
Actions: ya
|
|
828
874
|
});
|
|
829
875
|
export {
|
|
830
876
|
La as A,
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
ka as f
|
|
877
|
+
Aa as B,
|
|
878
|
+
Ra as F,
|
|
879
|
+
Ga as P,
|
|
880
|
+
Wa as S,
|
|
881
|
+
Ma as T,
|
|
882
|
+
Pa as a,
|
|
883
|
+
Ia as b,
|
|
884
|
+
ka as c,
|
|
885
|
+
Fa as d,
|
|
886
|
+
Oa as e
|
|
842
887
|
};
|