@dimasbaguspm/versaur 0.0.60 → 0.0.62
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/forms/index.js +1 -1
- package/dist/js/{image-rectangle-CCvXv24a.js → image-rectangle-BwT5taeR.js} +694 -634
- package/dist/js/index.js +63 -61
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +27 -25
- package/dist/js/{tabs-BQs53hHL.js → tabs-FDdFo4WV.js} +1 -1
- package/dist/js/{time-picker-input-Disd231b.js → time-picker-input-DMNSwm-p.js} +854 -642
- package/dist/js/tooltip-BGJUYNL0.js +625 -0
- package/dist/js/{top-bar-DMBbEIlR.js → top-bar-ChNgZEQx.js} +157 -187
- package/dist/types/forms/textarea-input/index.d.ts +1 -1
- package/dist/types/forms/textarea-input/textarea-input.atoms.d.ts +53 -0
- package/dist/types/forms/textarea-input/textarea-input.d.ts +1 -0
- package/dist/types/forms/textarea-input/types.d.ts +28 -0
- package/dist/types/forms/textarea-input/use-textarea-formatting.d.ts +21 -0
- package/dist/types/overlays/drawer/drawer.atoms.d.ts +2 -7
- package/dist/types/overlays/drawer/drawer.d.ts +1 -1
- package/dist/types/overlays/drawer/types.d.ts +1 -11
- package/dist/types/overlays/modal/modal.atoms.d.ts +1 -5
- package/dist/types/overlays/modal/types.d.ts +1 -2
- package/dist/types/primitive/formatted-text/formatted-text.d.ts +10 -0
- package/dist/types/primitive/formatted-text/index.d.ts +3 -0
- package/dist/types/primitive/formatted-text/types.d.ts +19 -0
- package/dist/types/primitive/heading/types.d.ts +9 -12
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/primitive/text/text.d.ts +6 -3
- package/dist/types/primitive/text/types.d.ts +10 -18
- package/dist/types/primitive/tile/tile.d.ts +7 -1
- package/dist/types/primitive/tile/types.d.ts +6 -1
- package/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +2 -1
- package/dist/js/tooltip-Dpx3TpR6.js +0 -693
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import { forwardRef as l, createContext as
|
|
3
|
+
import { forwardRef as l, createContext as C, useContext as S, useState as w } from "react";
|
|
4
4
|
import { c as n, a as d } from "./index-BDtz_hQY.js";
|
|
5
|
-
import {
|
|
5
|
+
import { H as V, p as h, I as N } from "./image-rectangle-BwT5taeR.js";
|
|
6
6
|
import "./snackbar-CTq4MLir.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { ChevronDown as z, ChevronRight as B, ChevronLeft as
|
|
9
|
-
const
|
|
7
|
+
import { L as H } from "./skeleton-BRwIW26B.js";
|
|
8
|
+
import { ChevronDown as z, ChevronRight as B, ChevronLeft as T } from "lucide-react";
|
|
9
|
+
const P = n(
|
|
10
10
|
[
|
|
11
11
|
"h-screen w-full grid bg-background overflow-hidden",
|
|
12
12
|
"grid-rows-[auto_1fr_auto]",
|
|
@@ -17,75 +17,75 @@ const T = n(
|
|
|
17
17
|
variants: {},
|
|
18
18
|
defaultVariants: {}
|
|
19
19
|
}
|
|
20
|
-
), P = n(
|
|
21
|
-
"[grid-area:top] z-30 sticky top-0 border-b border-border"
|
|
22
20
|
), A = n(
|
|
23
|
-
"[grid-area:
|
|
21
|
+
"[grid-area:top] z-30 sticky top-0 border-b border-border"
|
|
24
22
|
), _ = n(
|
|
25
|
-
"[grid-area:
|
|
23
|
+
"[grid-area:left] z-20 border-r border-border bg-white"
|
|
26
24
|
), I = n(
|
|
27
|
-
"[grid-area:
|
|
25
|
+
"[grid-area:right] z-20 border-l border-border bg-white"
|
|
28
26
|
), k = n(
|
|
27
|
+
"[grid-area:bottom] z-30 border-t border-border bg-white"
|
|
28
|
+
), G = n(
|
|
29
29
|
"[grid-area:main] overflow-y-auto min-h-0 [scrollbar-gutter:stable]"
|
|
30
|
-
),
|
|
30
|
+
), M = l(function({ children: t, className: e, ...a }, o) {
|
|
31
31
|
return /* @__PURE__ */ s.jsx(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
ref: o,
|
|
35
|
-
className:
|
|
35
|
+
className: A({ className: e }),
|
|
36
36
|
...a,
|
|
37
37
|
children: t
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
}),
|
|
40
|
+
}), F = l(function({ children: t, className: e, ...a }, o) {
|
|
41
41
|
return /* @__PURE__ */ s.jsx(
|
|
42
42
|
"aside",
|
|
43
43
|
{
|
|
44
44
|
ref: o,
|
|
45
|
-
className:
|
|
45
|
+
className: _({ className: e }),
|
|
46
46
|
...a,
|
|
47
47
|
children: t
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
|
-
}),
|
|
50
|
+
}), O = l(function({ children: t, className: e, ...a }, o) {
|
|
51
51
|
return /* @__PURE__ */ s.jsx(
|
|
52
52
|
"aside",
|
|
53
53
|
{
|
|
54
54
|
ref: o,
|
|
55
|
-
className:
|
|
55
|
+
className: I({ className: e }),
|
|
56
56
|
...a,
|
|
57
57
|
children: t
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
}),
|
|
60
|
+
}), E = l(function({ children: t, className: e, ...a }, o) {
|
|
61
61
|
return /* @__PURE__ */ s.jsx(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
ref: o,
|
|
65
|
-
className:
|
|
65
|
+
className: k({ className: e }),
|
|
66
66
|
...a,
|
|
67
67
|
children: t
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
}),
|
|
70
|
+
}), D = l(function({ children: t, className: e, ...a }, o) {
|
|
71
71
|
return /* @__PURE__ */ s.jsx(
|
|
72
72
|
"main",
|
|
73
73
|
{
|
|
74
74
|
ref: o,
|
|
75
|
-
className:
|
|
75
|
+
className: G({ className: e }),
|
|
76
76
|
...a,
|
|
77
77
|
children: t
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
}), W = l(
|
|
81
|
-
({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("div", { ref: a, className:
|
|
82
|
-
),
|
|
83
|
-
TopRegion:
|
|
84
|
-
SideLeftRegion:
|
|
85
|
-
SideRightRegion:
|
|
86
|
-
BottomRegion:
|
|
87
|
-
MainRegion:
|
|
88
|
-
}),
|
|
81
|
+
({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("div", { ref: a, className: P({ className: t }), ...e, children: r })
|
|
82
|
+
), sa = Object.assign(W, {
|
|
83
|
+
TopRegion: M,
|
|
84
|
+
SideLeftRegion: F,
|
|
85
|
+
SideRightRegion: O,
|
|
86
|
+
BottomRegion: E,
|
|
87
|
+
MainRegion: D
|
|
88
|
+
}), $ = n(
|
|
89
89
|
"sticky bottom-0 w-full flex justify-around items-center bg-white z-40 safe-bottom gap-4 select-none px-8",
|
|
90
90
|
{
|
|
91
91
|
variants: {
|
|
@@ -107,7 +107,7 @@ const T = n(
|
|
|
107
107
|
size: "md"
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), q = n(
|
|
111
111
|
"flex flex-col items-center justify-center gap-1",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -125,7 +125,7 @@ const T = n(
|
|
|
125
125
|
as: "button"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
),
|
|
128
|
+
), J = l(
|
|
129
129
|
({
|
|
130
130
|
as: r = "button",
|
|
131
131
|
icon: t,
|
|
@@ -139,7 +139,7 @@ const T = n(
|
|
|
139
139
|
{
|
|
140
140
|
ref: u,
|
|
141
141
|
"aria-current": a ? "page" : void 0,
|
|
142
|
-
className:
|
|
142
|
+
className: q({ active: a, className: o, as: r }),
|
|
143
143
|
...c,
|
|
144
144
|
children: [
|
|
145
145
|
t && t,
|
|
@@ -148,7 +148,7 @@ const T = n(
|
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
)
|
|
151
|
-
),
|
|
151
|
+
), K = ({
|
|
152
152
|
children: r,
|
|
153
153
|
variant: t = "primary",
|
|
154
154
|
size: e = "md",
|
|
@@ -159,13 +159,13 @@ const T = n(
|
|
|
159
159
|
{
|
|
160
160
|
role: "navigation",
|
|
161
161
|
"aria-label": "Bottom navigation",
|
|
162
|
-
className:
|
|
162
|
+
className: $({ variant: t, size: e, className: a }),
|
|
163
163
|
...o,
|
|
164
164
|
children: r
|
|
165
165
|
}
|
|
166
|
-
),
|
|
167
|
-
Item:
|
|
168
|
-
}),
|
|
166
|
+
), ra = Object.assign(K, {
|
|
167
|
+
Item: J
|
|
168
|
+
}), Q = n("flex items-center", {
|
|
169
169
|
variants: {
|
|
170
170
|
orientation: {
|
|
171
171
|
horizontal: "flex-row",
|
|
@@ -202,7 +202,7 @@ const T = n(
|
|
|
202
202
|
fluid: !1,
|
|
203
203
|
overlay: !1
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), oa = l(
|
|
206
206
|
function({
|
|
207
207
|
className: t,
|
|
208
208
|
children: e,
|
|
@@ -219,7 +219,7 @@ const T = n(
|
|
|
219
219
|
{
|
|
220
220
|
ref: m,
|
|
221
221
|
className: d(
|
|
222
|
-
|
|
222
|
+
Q({
|
|
223
223
|
orientation: a,
|
|
224
224
|
alignment: o,
|
|
225
225
|
gap: i,
|
|
@@ -235,7 +235,7 @@ const T = n(
|
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
|
-
),
|
|
238
|
+
), U = n("flex items-center", {
|
|
239
239
|
variants: {
|
|
240
240
|
orientation: {
|
|
241
241
|
horizontal: "flex-row",
|
|
@@ -272,7 +272,7 @@ const T = n(
|
|
|
272
272
|
fluid: !1,
|
|
273
273
|
overlay: !1
|
|
274
274
|
}
|
|
275
|
-
}),
|
|
275
|
+
}), na = l(
|
|
276
276
|
function({
|
|
277
277
|
className: t,
|
|
278
278
|
children: e,
|
|
@@ -289,7 +289,7 @@ const T = n(
|
|
|
289
289
|
{
|
|
290
290
|
ref: m,
|
|
291
291
|
className: d(
|
|
292
|
-
|
|
292
|
+
U({
|
|
293
293
|
orientation: a,
|
|
294
294
|
alignment: o,
|
|
295
295
|
gap: i,
|
|
@@ -305,7 +305,7 @@ const T = n(
|
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
),
|
|
308
|
+
), X = n("flex items-center", {
|
|
309
309
|
variants: {
|
|
310
310
|
orientation: {
|
|
311
311
|
horizontal: "flex-row",
|
|
@@ -342,7 +342,7 @@ const T = n(
|
|
|
342
342
|
fluid: !1,
|
|
343
343
|
overlay: !1
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), ia = l(
|
|
346
346
|
function({
|
|
347
347
|
className: t,
|
|
348
348
|
children: e,
|
|
@@ -359,7 +359,7 @@ const T = n(
|
|
|
359
359
|
{
|
|
360
360
|
ref: m,
|
|
361
361
|
className: d(
|
|
362
|
-
|
|
362
|
+
X({
|
|
363
363
|
orientation: a,
|
|
364
364
|
alignment: o,
|
|
365
365
|
gap: i,
|
|
@@ -375,7 +375,7 @@ const T = n(
|
|
|
375
375
|
}
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
|
-
),
|
|
378
|
+
), Y = n("w-full mb-4"), Z = n("w-full mx-auto pt-4 md:pt-10", {
|
|
379
379
|
variants: {
|
|
380
380
|
size: {
|
|
381
381
|
fluid: "max-w-full",
|
|
@@ -386,7 +386,7 @@ const T = n(
|
|
|
386
386
|
defaultVariants: {
|
|
387
387
|
size: "fluid"
|
|
388
388
|
}
|
|
389
|
-
}),
|
|
389
|
+
}), ee = n(
|
|
390
390
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4",
|
|
391
391
|
{
|
|
392
392
|
variants: {
|
|
@@ -400,7 +400,7 @@ const T = n(
|
|
|
400
400
|
size: "fluid"
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
),
|
|
403
|
+
), ae = n("mb-4", {
|
|
404
404
|
variants: {
|
|
405
405
|
size: {
|
|
406
406
|
fluid: "px-0",
|
|
@@ -411,99 +411,88 @@ const T = n(
|
|
|
411
411
|
defaultVariants: {
|
|
412
412
|
size: "fluid"
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), te = n(
|
|
415
415
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
416
|
-
),
|
|
416
|
+
), se = n("flex items-center gap-2 flex-wrap"), re = n(
|
|
417
417
|
"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"
|
|
418
|
-
),
|
|
418
|
+
), oe = n("md:hidden"), ne = n(
|
|
419
419
|
"w-full flex items-center py-0 overflow-x-auto"
|
|
420
|
-
),
|
|
420
|
+
), ie = l(
|
|
421
421
|
({ children: r, className: t, size: e = "fluid", ...a }, o) => /* @__PURE__ */ s.jsx(
|
|
422
422
|
"div",
|
|
423
423
|
{
|
|
424
424
|
ref: o,
|
|
425
|
-
className: d(
|
|
425
|
+
className: d(ee({ size: e }), t),
|
|
426
426
|
"data-versaur-page-header-top": !0,
|
|
427
427
|
...a,
|
|
428
428
|
children: r
|
|
429
429
|
}
|
|
430
430
|
)
|
|
431
|
-
),
|
|
431
|
+
), le = l(({ children: r, className: t, size: e = "fluid", ...a }, o) => /* @__PURE__ */ s.jsx(
|
|
432
432
|
"div",
|
|
433
433
|
{
|
|
434
434
|
ref: o,
|
|
435
|
-
className: d(
|
|
435
|
+
className: d(ae({ size: e }), t),
|
|
436
436
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
437
437
|
...a,
|
|
438
438
|
children: r
|
|
439
439
|
}
|
|
440
|
-
)),
|
|
440
|
+
)), ce = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
|
|
441
441
|
"div",
|
|
442
442
|
{
|
|
443
443
|
ref: a,
|
|
444
|
-
className: d(
|
|
444
|
+
className: d(te(), t),
|
|
445
445
|
"data-versaur-page-header-content": !0,
|
|
446
446
|
...e,
|
|
447
447
|
children: r
|
|
448
448
|
}
|
|
449
|
-
)),
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
...r,
|
|
453
|
-
as: "h1",
|
|
454
|
-
fontSize: "xl",
|
|
455
|
-
fontWeight: "semibold",
|
|
456
|
-
ellipsis: !0,
|
|
457
|
-
ref: t
|
|
458
|
-
}
|
|
459
|
-
)), de = l(({ className: r, ...t }, e) => /* @__PURE__ */ s.jsx(
|
|
460
|
-
x,
|
|
449
|
+
)), de = l((r, t) => /* @__PURE__ */ s.jsx(V, { color: "neutral", ...r, as: "h4", ellipsis: !0, ref: t })), ue = l(({ className: r, ...t }, e) => /* @__PURE__ */ s.jsx(
|
|
450
|
+
h,
|
|
461
451
|
{
|
|
462
452
|
as: "p",
|
|
463
|
-
fontSize: "sm",
|
|
464
453
|
fontWeight: "normal",
|
|
465
454
|
clamp: 2,
|
|
466
455
|
ref: e,
|
|
467
456
|
className: d("mb-2 sm:clamp-3", r),
|
|
468
457
|
...t
|
|
469
458
|
}
|
|
470
|
-
)),
|
|
459
|
+
)), pe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
|
|
471
460
|
"div",
|
|
472
461
|
{
|
|
473
462
|
ref: a,
|
|
474
|
-
className: d(
|
|
463
|
+
className: d(se(), t),
|
|
475
464
|
"data-versaur-page-header-badges": !0,
|
|
476
465
|
...e,
|
|
477
466
|
children: r
|
|
478
467
|
}
|
|
479
|
-
)),
|
|
468
|
+
)), fe = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
|
|
480
469
|
"div",
|
|
481
470
|
{
|
|
482
471
|
ref: a,
|
|
483
|
-
className: d(
|
|
472
|
+
className: d(re(), t),
|
|
484
473
|
"data-versaur-page-header-actions": !0,
|
|
485
474
|
...e,
|
|
486
475
|
children: r
|
|
487
476
|
}
|
|
488
|
-
)),
|
|
477
|
+
)), me = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
|
|
489
478
|
"div",
|
|
490
479
|
{
|
|
491
480
|
ref: a,
|
|
492
|
-
className: d(
|
|
481
|
+
className: d(oe(), t),
|
|
493
482
|
"data-versaur-page-header-mobile-actions": !0,
|
|
494
483
|
...e,
|
|
495
484
|
children: r
|
|
496
485
|
}
|
|
497
|
-
)),
|
|
486
|
+
)), ge = l(({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx(
|
|
498
487
|
"div",
|
|
499
488
|
{
|
|
500
489
|
ref: a,
|
|
501
|
-
className: d(
|
|
490
|
+
className: d(ne(), t),
|
|
502
491
|
"data-versaur-page-header-bottom": !0,
|
|
503
492
|
...e,
|
|
504
493
|
children: r
|
|
505
494
|
}
|
|
506
|
-
)),
|
|
495
|
+
)), xe = l(
|
|
507
496
|
({
|
|
508
497
|
children: r,
|
|
509
498
|
className: t,
|
|
@@ -522,29 +511,29 @@ const T = n(
|
|
|
522
511
|
"header",
|
|
523
512
|
{
|
|
524
513
|
ref: g,
|
|
525
|
-
className: d(
|
|
514
|
+
className: d(Y()),
|
|
526
515
|
role: "banner",
|
|
527
516
|
...m,
|
|
528
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: d(
|
|
529
|
-
i && /* @__PURE__ */ s.jsx(
|
|
530
|
-
/* @__PURE__ */ s.jsxs(
|
|
531
|
-
/* @__PURE__ */ s.jsxs(
|
|
517
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: d(Z({ size: e }), t), children: [
|
|
518
|
+
i && /* @__PURE__ */ s.jsx(le, { size: e, children: i }),
|
|
519
|
+
/* @__PURE__ */ s.jsxs(ie, { size: e, children: [
|
|
520
|
+
/* @__PURE__ */ s.jsxs(ce, { children: [
|
|
532
521
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
533
|
-
/* @__PURE__ */ s.jsx(
|
|
534
|
-
f && /* @__PURE__ */ s.jsx(
|
|
522
|
+
/* @__PURE__ */ s.jsx(de, { children: a }),
|
|
523
|
+
f && /* @__PURE__ */ s.jsx(me, { children: f })
|
|
535
524
|
] }),
|
|
536
|
-
o && /* @__PURE__ */ s.jsx(
|
|
537
|
-
c && /* @__PURE__ */ s.jsx(
|
|
525
|
+
o && /* @__PURE__ */ s.jsx(ue, { children: o }),
|
|
526
|
+
c && /* @__PURE__ */ s.jsx(pe, { children: c })
|
|
538
527
|
] }),
|
|
539
|
-
u && /* @__PURE__ */ s.jsx(
|
|
528
|
+
u && /* @__PURE__ */ s.jsx(fe, { children: u })
|
|
540
529
|
] }),
|
|
541
|
-
v && /* @__PURE__ */ s.jsx(
|
|
530
|
+
v && /* @__PURE__ */ s.jsx(ge, { children: p }),
|
|
542
531
|
r
|
|
543
532
|
] })
|
|
544
533
|
}
|
|
545
534
|
);
|
|
546
535
|
}
|
|
547
|
-
),
|
|
536
|
+
), la = xe, he = n("w-full"), ve = n("w-full mx-auto relative", {
|
|
548
537
|
variants: {
|
|
549
538
|
size: {
|
|
550
539
|
fluid: "max-w-full px-0",
|
|
@@ -562,7 +551,7 @@ const T = n(
|
|
|
562
551
|
size: "fluid",
|
|
563
552
|
template: "single-column"
|
|
564
553
|
}
|
|
565
|
-
}),
|
|
554
|
+
}), ca = j.forwardRef(
|
|
566
555
|
function({
|
|
567
556
|
size: t = "fluid",
|
|
568
557
|
template: e = "single-column",
|
|
@@ -570,18 +559,18 @@ const T = n(
|
|
|
570
559
|
children: o,
|
|
571
560
|
...i
|
|
572
561
|
}, c) {
|
|
573
|
-
return /* @__PURE__ */ s.jsx("div", { ref: c, className: d(
|
|
562
|
+
return /* @__PURE__ */ s.jsx("div", { ref: c, className: d(he()), ...i, children: /* @__PURE__ */ s.jsx(
|
|
574
563
|
"div",
|
|
575
564
|
{
|
|
576
565
|
className: d(
|
|
577
|
-
|
|
566
|
+
ve({ size: t, template: e }),
|
|
578
567
|
a
|
|
579
568
|
),
|
|
580
569
|
children: /* @__PURE__ */ s.jsx("div", { children: o })
|
|
581
570
|
}
|
|
582
571
|
) });
|
|
583
572
|
}
|
|
584
|
-
),
|
|
573
|
+
), ye = n(
|
|
585
574
|
[
|
|
586
575
|
"grid",
|
|
587
576
|
"h-full",
|
|
@@ -600,7 +589,7 @@ const T = n(
|
|
|
600
589
|
hasMargin: !1
|
|
601
590
|
}
|
|
602
591
|
}
|
|
603
|
-
),
|
|
592
|
+
), be = n("[grid-area:header]", {
|
|
604
593
|
variants: {
|
|
605
594
|
backgroundColor: {
|
|
606
595
|
white: "bg-transparent",
|
|
@@ -610,7 +599,7 @@ const T = n(
|
|
|
610
599
|
defaultVariants: {
|
|
611
600
|
backgroundColor: "white"
|
|
612
601
|
}
|
|
613
|
-
}),
|
|
602
|
+
}), je = n(
|
|
614
603
|
"[grid-area:content] min-h-0",
|
|
615
604
|
{
|
|
616
605
|
variants: {
|
|
@@ -623,40 +612,40 @@ const T = n(
|
|
|
623
612
|
backgroundColor: "white"
|
|
624
613
|
}
|
|
625
614
|
}
|
|
626
|
-
),
|
|
615
|
+
), we = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
|
|
627
616
|
return /* @__PURE__ */ s.jsx(
|
|
628
617
|
"div",
|
|
629
618
|
{
|
|
630
619
|
ref: i,
|
|
631
|
-
className:
|
|
620
|
+
className: be({ backgroundColor: a, className: e }),
|
|
632
621
|
...o,
|
|
633
622
|
children: t
|
|
634
623
|
}
|
|
635
624
|
);
|
|
636
|
-
}),
|
|
625
|
+
}), Ne = l(function({ children: t, className: e, backgroundColor: a = "white", ...o }, i) {
|
|
637
626
|
return /* @__PURE__ */ s.jsx(
|
|
638
627
|
"div",
|
|
639
628
|
{
|
|
640
629
|
ref: i,
|
|
641
|
-
className:
|
|
630
|
+
className: je({ backgroundColor: a, className: e }),
|
|
642
631
|
...o,
|
|
643
632
|
children: t
|
|
644
633
|
}
|
|
645
634
|
);
|
|
646
|
-
}),
|
|
635
|
+
}), Be = l(
|
|
647
636
|
({ children: r, className: t, hasMargin: e = !1, ...a }, o) => /* @__PURE__ */ s.jsx(
|
|
648
637
|
"div",
|
|
649
638
|
{
|
|
650
639
|
ref: o,
|
|
651
|
-
className:
|
|
640
|
+
className: ye({ hasMargin: e, className: t }),
|
|
652
641
|
...a,
|
|
653
642
|
children: r
|
|
654
643
|
}
|
|
655
644
|
)
|
|
656
|
-
),
|
|
657
|
-
HeaderRegion:
|
|
658
|
-
ContentRegion:
|
|
659
|
-
}),
|
|
645
|
+
), da = Object.assign(Be, {
|
|
646
|
+
HeaderRegion: we,
|
|
647
|
+
ContentRegion: Ne
|
|
648
|
+
}), Re = n(
|
|
660
649
|
[
|
|
661
650
|
// Base styles: flex container that centers content
|
|
662
651
|
"flex",
|
|
@@ -692,12 +681,12 @@ const T = n(
|
|
|
692
681
|
fullscreen: !1
|
|
693
682
|
}
|
|
694
683
|
}
|
|
695
|
-
),
|
|
684
|
+
), Le = n([
|
|
696
685
|
"text-foreground-light",
|
|
697
686
|
"text-sm",
|
|
698
687
|
"text-center",
|
|
699
688
|
"max-w-xs"
|
|
700
|
-
]),
|
|
689
|
+
]), ua = j.forwardRef(
|
|
701
690
|
function({
|
|
702
691
|
type: t = "bar",
|
|
703
692
|
size: e = "sm",
|
|
@@ -714,11 +703,11 @@ const T = n(
|
|
|
714
703
|
"div",
|
|
715
704
|
{
|
|
716
705
|
ref: g,
|
|
717
|
-
className: d(
|
|
706
|
+
className: d(Re({ minimal: u, fullscreen: c }), f),
|
|
718
707
|
...m,
|
|
719
708
|
children: [
|
|
720
709
|
/* @__PURE__ */ s.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ s.jsx(
|
|
721
|
-
|
|
710
|
+
H,
|
|
722
711
|
{
|
|
723
712
|
type: t,
|
|
724
713
|
size: e,
|
|
@@ -726,13 +715,13 @@ const T = n(
|
|
|
726
715
|
ariaLabel: o
|
|
727
716
|
}
|
|
728
717
|
) }),
|
|
729
|
-
i && /* @__PURE__ */ s.jsx("p", { className:
|
|
718
|
+
i && /* @__PURE__ */ s.jsx("p", { className: Le(), "aria-live": "polite", children: i }),
|
|
730
719
|
p
|
|
731
720
|
]
|
|
732
721
|
}
|
|
733
722
|
);
|
|
734
723
|
}
|
|
735
|
-
),
|
|
724
|
+
), Ce = n("grid w-full gap-4 grid-cols-12"), Se = n("", {
|
|
736
725
|
variants: {
|
|
737
726
|
span: {
|
|
738
727
|
1: "col-span-1",
|
|
@@ -752,19 +741,19 @@ const T = n(
|
|
|
752
741
|
defaultVariants: {
|
|
753
742
|
span: "4"
|
|
754
743
|
}
|
|
755
|
-
}),
|
|
744
|
+
}), Ve = l(
|
|
756
745
|
function({ className: t, children: e, ...a }, o) {
|
|
757
746
|
return /* @__PURE__ */ s.jsx(
|
|
758
747
|
"div",
|
|
759
748
|
{
|
|
760
749
|
ref: o,
|
|
761
|
-
className: d(
|
|
750
|
+
className: d(Ce(), t),
|
|
762
751
|
...a,
|
|
763
752
|
children: e
|
|
764
753
|
}
|
|
765
754
|
);
|
|
766
755
|
}
|
|
767
|
-
),
|
|
756
|
+
), He = l(
|
|
768
757
|
function({ span: t = 4, className: e, children: a, ...o }, i) {
|
|
769
758
|
const c = Math.min(12, Math.max(1, t));
|
|
770
759
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -780,8 +769,8 @@ const T = n(
|
|
|
780
769
|
}
|
|
781
770
|
);
|
|
782
771
|
}
|
|
783
|
-
),
|
|
784
|
-
Column:
|
|
772
|
+
), pa = Object.assign(Ve, {
|
|
773
|
+
Column: He
|
|
785
774
|
}), ze = n(
|
|
786
775
|
"bg-background flex flex-col h-full ease-in-out justify-between",
|
|
787
776
|
{
|
|
@@ -818,7 +807,7 @@ const T = n(
|
|
|
818
807
|
collapsed: !1
|
|
819
808
|
}
|
|
820
809
|
}
|
|
821
|
-
),
|
|
810
|
+
), Te = n("", {
|
|
822
811
|
variants: {
|
|
823
812
|
expanded: {
|
|
824
813
|
true: "bg-neutral-light",
|
|
@@ -828,7 +817,7 @@ const T = n(
|
|
|
828
817
|
defaultVariants: {
|
|
829
818
|
expanded: !1
|
|
830
819
|
}
|
|
831
|
-
}),
|
|
820
|
+
}), Pe = n(
|
|
832
821
|
"w-full flex p-3 items-center gap-2 rounded-md hover:text-primary hover:bg-primary-soft focus:outline-none focus-visible:ring-2 focus-visible:ring-primary transition-all",
|
|
833
822
|
{
|
|
834
823
|
variants: {
|
|
@@ -841,12 +830,12 @@ const T = n(
|
|
|
841
830
|
collapsed: !1
|
|
842
831
|
}
|
|
843
832
|
}
|
|
844
|
-
),
|
|
845
|
-
const r =
|
|
833
|
+
), Ae = n("flex flex-col gap-2 ml-3"), x = n("flex items-center justify-center size-5"), R = C(null), L = () => {
|
|
834
|
+
const r = S(R);
|
|
846
835
|
if (!r)
|
|
847
836
|
throw new Error("SideBar compound components must be used within SideBar");
|
|
848
837
|
return r;
|
|
849
|
-
},
|
|
838
|
+
}, _e = l(
|
|
850
839
|
(r, t) => {
|
|
851
840
|
const { icon: e, children: a, href: o, active: i, ...c } = r, { isCollapsed: u } = L(), f = c;
|
|
852
841
|
return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
|
|
@@ -862,13 +851,12 @@ const T = n(
|
|
|
862
851
|
title: u ? String(a) : void 0,
|
|
863
852
|
...f,
|
|
864
853
|
children: [
|
|
865
|
-
e && /* @__PURE__ */ s.jsx("span", { className: d(
|
|
854
|
+
e && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: e }),
|
|
866
855
|
!u && /* @__PURE__ */ s.jsx(
|
|
867
|
-
|
|
856
|
+
h,
|
|
868
857
|
{
|
|
869
|
-
as: "
|
|
858
|
+
as: "small",
|
|
870
859
|
color: "inherit",
|
|
871
|
-
fontSize: "sm",
|
|
872
860
|
fontWeight: "normal",
|
|
873
861
|
className: "truncate",
|
|
874
862
|
children: a
|
|
@@ -878,7 +866,7 @@ const T = n(
|
|
|
878
866
|
}
|
|
879
867
|
) });
|
|
880
868
|
}
|
|
881
|
-
),
|
|
869
|
+
), Ie = l(
|
|
882
870
|
function({ children: t, label: e, icon: a, defaultExpanded: o = !0, ...i }, c) {
|
|
883
871
|
const { isCollapsed: u, expandSidebar: f } = L(), [p, m] = w(o), g = (y) => {
|
|
884
872
|
y.preventDefault(), m(!p);
|
|
@@ -895,13 +883,13 @@ const T = n(
|
|
|
895
883
|
}),
|
|
896
884
|
title: String(e),
|
|
897
885
|
onClick: v,
|
|
898
|
-
children: a && /* @__PURE__ */ s.jsx("span", { className: d(
|
|
886
|
+
children: a && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: a })
|
|
899
887
|
}
|
|
900
888
|
) }) : /* @__PURE__ */ s.jsxs(
|
|
901
889
|
"li",
|
|
902
890
|
{
|
|
903
891
|
ref: c,
|
|
904
|
-
className:
|
|
892
|
+
className: Te({
|
|
905
893
|
expanded: p
|
|
906
894
|
}),
|
|
907
895
|
...i,
|
|
@@ -910,22 +898,13 @@ const T = n(
|
|
|
910
898
|
"button",
|
|
911
899
|
{
|
|
912
900
|
type: "button",
|
|
913
|
-
className:
|
|
901
|
+
className: Pe({
|
|
914
902
|
collapsed: !1
|
|
915
903
|
}),
|
|
916
904
|
onClick: g,
|
|
917
905
|
children: [
|
|
918
|
-
a && /* @__PURE__ */ s.jsx("span", { className: d(
|
|
919
|
-
/* @__PURE__ */ s.jsx(
|
|
920
|
-
x,
|
|
921
|
-
{
|
|
922
|
-
as: "span",
|
|
923
|
-
color: "inherit",
|
|
924
|
-
fontSize: "sm",
|
|
925
|
-
className: "flex-1 truncate",
|
|
926
|
-
children: e
|
|
927
|
-
}
|
|
928
|
-
),
|
|
906
|
+
a && /* @__PURE__ */ s.jsx("span", { className: d(x()), children: a }),
|
|
907
|
+
/* @__PURE__ */ s.jsx(h, { as: "small", color: "inherit", className: "flex-1 truncate", children: e }),
|
|
929
908
|
/* @__PURE__ */ s.jsx(
|
|
930
909
|
N,
|
|
931
910
|
{
|
|
@@ -937,12 +916,12 @@ const T = n(
|
|
|
937
916
|
]
|
|
938
917
|
}
|
|
939
918
|
),
|
|
940
|
-
p && /* @__PURE__ */ s.jsx("ul", { className: d(
|
|
919
|
+
p && /* @__PURE__ */ s.jsx("ul", { className: d(Ae()), children: t })
|
|
941
920
|
]
|
|
942
921
|
}
|
|
943
922
|
);
|
|
944
923
|
}
|
|
945
|
-
),
|
|
924
|
+
), ke = l(
|
|
946
925
|
({ children: r, defaultCollapsed: t = !1, onCollapseChange: e, ...a }, o) => {
|
|
947
926
|
const [i, c] = w(t), u = () => {
|
|
948
927
|
const p = !i;
|
|
@@ -975,24 +954,15 @@ const T = n(
|
|
|
975
954
|
"aria-label": i ? "Expand sidebar" : "Collapse sidebar",
|
|
976
955
|
title: i ? "Expand sidebar" : "Collapse sidebar",
|
|
977
956
|
children: [
|
|
978
|
-
/* @__PURE__ */ s.jsx("span", { className: d(
|
|
957
|
+
/* @__PURE__ */ s.jsx("span", { className: d(x()), children: /* @__PURE__ */ s.jsx(
|
|
979
958
|
N,
|
|
980
959
|
{
|
|
981
|
-
as: i ? B :
|
|
960
|
+
as: i ? B : T,
|
|
982
961
|
size: "sm",
|
|
983
962
|
color: "inherit"
|
|
984
963
|
}
|
|
985
964
|
) }),
|
|
986
|
-
!i && /* @__PURE__ */ s.jsx(
|
|
987
|
-
x,
|
|
988
|
-
{
|
|
989
|
-
as: "span",
|
|
990
|
-
color: "inherit",
|
|
991
|
-
fontSize: "sm",
|
|
992
|
-
className: "truncate",
|
|
993
|
-
children: "Collapse"
|
|
994
|
-
}
|
|
995
|
-
)
|
|
965
|
+
!i && /* @__PURE__ */ s.jsx(h, { as: "small", color: "inherit", className: "truncate", children: "Collapse" })
|
|
996
966
|
]
|
|
997
967
|
}
|
|
998
968
|
) })
|
|
@@ -1002,16 +972,16 @@ const T = n(
|
|
|
1002
972
|
}
|
|
1003
973
|
);
|
|
1004
974
|
}
|
|
1005
|
-
),
|
|
1006
|
-
Item:
|
|
1007
|
-
Group:
|
|
1008
|
-
}),
|
|
975
|
+
), fa = Object.assign(ke, {
|
|
976
|
+
Item: _e,
|
|
977
|
+
Group: Ie
|
|
978
|
+
}), Ge = n(
|
|
1009
979
|
"w-full flex items-center px-6 py-4 bg-white",
|
|
1010
980
|
{
|
|
1011
981
|
variants: {},
|
|
1012
982
|
defaultVariants: {}
|
|
1013
983
|
}
|
|
1014
|
-
),
|
|
984
|
+
), Me = n("flex items-center gap-3 min-w-0 flex-1"), Fe = n("flex items-center gap-2 ml-auto"), Oe = n(
|
|
1015
985
|
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
1016
986
|
{
|
|
1017
987
|
variants: {
|
|
@@ -1024,55 +994,55 @@ const T = n(
|
|
|
1024
994
|
active: !1
|
|
1025
995
|
}
|
|
1026
996
|
}
|
|
1027
|
-
),
|
|
1028
|
-
function({ children: t, className: e, ...a }, o) {
|
|
1029
|
-
return /* @__PURE__ */ s.jsx("nav", { ref: o, className: Oe({ className: e }), ...a, children: t });
|
|
1030
|
-
}
|
|
1031
|
-
), De = l(
|
|
997
|
+
), Ee = n("flex items-center gap-2 ml-4"), De = n("flex items-center gap-2 mr-4"), We = l(
|
|
1032
998
|
function({ children: t, className: e, ...a }, o) {
|
|
1033
|
-
return /* @__PURE__ */ s.jsx("
|
|
999
|
+
return /* @__PURE__ */ s.jsx("nav", { ref: o, className: Ee({ className: e }), ...a, children: t });
|
|
1034
1000
|
}
|
|
1035
1001
|
), $e = l(
|
|
1036
1002
|
function({ children: t, className: e, ...a }, o) {
|
|
1037
|
-
return /* @__PURE__ */ s.jsx("div", { ref: o, className:
|
|
1003
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: De({ className: e }), ...a, children: t });
|
|
1038
1004
|
}
|
|
1039
1005
|
), qe = l(
|
|
1040
1006
|
function({ children: t, className: e, ...a }, o) {
|
|
1041
1007
|
return /* @__PURE__ */ s.jsx("div", { ref: o, className: Me({ className: e }), ...a, children: t });
|
|
1042
1008
|
}
|
|
1043
1009
|
), Je = l(
|
|
1010
|
+
function({ children: t, className: e, ...a }, o) {
|
|
1011
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: Fe({ className: e }), ...a, children: t });
|
|
1012
|
+
}
|
|
1013
|
+
), Ke = l(
|
|
1044
1014
|
function({ children: t, className: e, active: a, ...o }, i) {
|
|
1045
1015
|
return /* @__PURE__ */ s.jsx(
|
|
1046
1016
|
"div",
|
|
1047
1017
|
{
|
|
1048
1018
|
ref: i,
|
|
1049
|
-
className:
|
|
1019
|
+
className: Oe({ active: a, className: e }),
|
|
1050
1020
|
"aria-current": a ? "page" : void 0,
|
|
1051
1021
|
...o,
|
|
1052
1022
|
children: t
|
|
1053
1023
|
}
|
|
1054
1024
|
);
|
|
1055
1025
|
}
|
|
1056
|
-
),
|
|
1057
|
-
({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("header", { ref: a, className:
|
|
1058
|
-
),
|
|
1059
|
-
Leading:
|
|
1060
|
-
Trailing:
|
|
1061
|
-
NavItem:
|
|
1026
|
+
), Qe = l(
|
|
1027
|
+
({ children: r, className: t, ...e }, a) => /* @__PURE__ */ s.jsx("header", { ref: a, className: Ge({ className: t }), ...e, children: r })
|
|
1028
|
+
), ma = Object.assign(Qe, {
|
|
1029
|
+
Leading: qe,
|
|
1030
|
+
Trailing: Je,
|
|
1031
|
+
NavItem: Ke,
|
|
1062
1032
|
Nav: We,
|
|
1063
|
-
Actions:
|
|
1033
|
+
Actions: $e
|
|
1064
1034
|
});
|
|
1065
1035
|
export {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1036
|
+
sa as A,
|
|
1037
|
+
ra as B,
|
|
1038
|
+
ia as F,
|
|
1039
|
+
la as P,
|
|
1040
|
+
fa as S,
|
|
1041
|
+
ma as T,
|
|
1042
|
+
oa as a,
|
|
1043
|
+
na as b,
|
|
1044
|
+
ca as c,
|
|
1045
|
+
da as d,
|
|
1046
|
+
ua as e,
|
|
1047
|
+
pa as f
|
|
1078
1048
|
};
|