@dimasbaguspm/versaur 0.0.19 → 0.0.21
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/README.md +22 -6
- package/dist/js/bottom-sheet-Eqduh3eY.js +495 -0
- package/dist/js/{selectable-multiple-input-CJXfqy1Z.js → bottom-sheet-input-DFGibm1I.js} +591 -476
- package/dist/js/forms/index.js +20 -17
- package/dist/js/{image-rectangle-CLU-GVtw.js → image-rectangle-C6cgL8R9.js} +354 -404
- package/dist/js/index.js +61 -53
- package/dist/js/layouts/index.js +5 -4
- package/dist/js/overlays/index.js +6 -4
- package/dist/js/primitive/index.js +15 -13
- package/dist/js/side-bar-BUACYQUo.js +397 -0
- package/dist/js/text-CRsIInRA.js +127 -0
- package/dist/js/tooltip-CDdl1U3A.js +148 -0
- package/dist/types/forms/bottom-sheet-input/bottom-sheet-input.d.ts +7 -0
- package/dist/types/forms/bottom-sheet-input/index.d.ts +2 -0
- package/dist/types/forms/bottom-sheet-input/types.d.ts +17 -0
- package/dist/types/forms/drawer-input/drawer-input.d.ts +6 -0
- package/dist/types/forms/drawer-input/index.d.ts +2 -0
- package/dist/types/forms/drawer-input/types.d.ts +18 -0
- package/dist/types/forms/index.d.ts +3 -0
- package/dist/types/forms/modal-input/index.d.ts +2 -0
- package/dist/types/forms/modal-input/modal-input.d.ts +6 -0
- package/dist/types/forms/modal-input/types.d.ts +18 -0
- package/dist/types/layouts/index.d.ts +1 -0
- package/dist/types/layouts/side-bar/index.d.ts +2 -0
- package/dist/types/layouts/side-bar/side-bar.atoms.d.ts +3 -0
- package/dist/types/layouts/side-bar/side-bar.d.ts +5 -0
- package/dist/types/layouts/side-bar/types.d.ts +42 -0
- package/dist/types/overlays/bottom-sheet/types.d.ts +2 -1
- package/dist/types/overlays/drawer/types.d.ts +2 -1
- package/dist/types/overlays/index.d.ts +1 -0
- package/dist/types/overlays/menu/menu.atoms.d.ts +5 -10
- package/dist/types/overlays/menu/menu.d.ts +2 -6
- package/dist/types/overlays/menu/types.d.ts +9 -14
- package/dist/types/overlays/menu/use-menu.d.ts +0 -1
- package/dist/types/overlays/modal/modal.d.ts +14 -5
- package/dist/types/overlays/modal/types.d.ts +7 -20
- package/dist/types/overlays/tooltip/index.d.ts +2 -0
- package/dist/types/overlays/tooltip/tooltip.d.ts +5 -0
- package/dist/types/overlays/tooltip/types.d.ts +33 -0
- package/dist/types/overlays/tooltip/use-tooltip-position.d.ts +8 -0
- package/dist/types/primitive/icon/types.d.ts +1 -1
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/primitive/no-results/index.d.ts +2 -0
- package/dist/types/primitive/no-results/no-results.d.ts +15 -0
- package/dist/types/primitive/no-results/types.d.ts +30 -0
- package/dist/types/primitive/table/table.atoms.d.ts +4 -6
- package/dist/types/primitive/table/table.d.ts +2 -1
- package/dist/types/primitive/table/types.d.ts +7 -4
- package/dist/utils/enforce-subpath-import.js +6 -0
- package/package.json +1 -1
- package/dist/js/bottom-sheet-BRv-oJL-.js +0 -646
- package/dist/js/form-layout-4ASWdXn8.js +0 -302
- package/dist/types/overlays/modal/use-escape-close.d.ts +0 -6
- package/dist/types/overlays/modal/use-focus-trap.d.ts +0 -6
package/dist/js/index.js
CHANGED
|
@@ -1,63 +1,71 @@
|
|
|
1
1
|
import { L as s, P as t, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
-
import { A as n, B as p, F as u, P as l,
|
|
3
|
-
import { C as
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { A as n, B as p, F as u, P as l, S as i, T as I } from "./side-bar-BUACYQUo.js";
|
|
3
|
+
import { B as S, C as m, b as B, a as g, D as T, k as d, E as x, M as f, P as b, R as h, d as k, c as M, S as P, e as C, j as A, i as D, h as L, f as R, T as w, g as F } from "./bottom-sheet-input-DFGibm1I.js";
|
|
4
|
+
import { B as v, D as y, M as E } from "./bottom-sheet-Eqduh3eY.js";
|
|
5
|
+
import { M as q, T as z } from "./tooltip-CDdl1U3A.js";
|
|
6
|
+
import { A as H, a as J, b as K, B as O, l as Q, c as U, d as V, e as W, f as X, C as Y, g as Z, D as _, I as $, i as aa, k as ea, j as sa, N as ta, T as ra, h as oa } from "./image-rectangle-C6cgL8R9.js";
|
|
7
|
+
import { S as pa } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { T as la } from "./text-CRsIInRA.js";
|
|
9
|
+
import { B as Ia, T as ca } from "./tabs-BbOkYchB.js";
|
|
10
|
+
import { S as ma, u as Ba } from "./use-snackbars-oPoF7J5t.js";
|
|
9
11
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
H as Alert,
|
|
13
|
+
J as Anchor,
|
|
12
14
|
n as AppBar,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
K as Avatar,
|
|
16
|
+
O as Badge,
|
|
17
|
+
Q as BaseImage,
|
|
16
18
|
p as BottomBar,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
m as
|
|
27
|
-
|
|
28
|
-
g as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
v as BottomSheet,
|
|
20
|
+
S as BottomSheetInput,
|
|
21
|
+
U as Brand,
|
|
22
|
+
Ia as Breadcrumbs,
|
|
23
|
+
V as Button,
|
|
24
|
+
W as ButtonFloat,
|
|
25
|
+
X as ButtonIcon,
|
|
26
|
+
Y as Calculator,
|
|
27
|
+
Z as Calendar,
|
|
28
|
+
m as CheckboxInput,
|
|
29
|
+
B as ChipMultipleInput,
|
|
30
|
+
g as ChipSingleInput,
|
|
31
|
+
T as DateSinglePickerInput,
|
|
32
|
+
_ as DescriptionList,
|
|
33
|
+
y as Drawer,
|
|
34
|
+
d as DrawerInput,
|
|
35
|
+
x as EmailInput,
|
|
32
36
|
u as FormLayout,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
$ as Icon,
|
|
38
|
+
aa as ImageCircle,
|
|
39
|
+
ea as ImageRectangle,
|
|
40
|
+
sa as ImageSquare,
|
|
37
41
|
s as LoadingIndicator,
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
q as Menu,
|
|
43
|
+
E as Modal,
|
|
44
|
+
f as ModalInput,
|
|
45
|
+
ta as NoResults,
|
|
40
46
|
l as PageLayout,
|
|
41
|
-
|
|
47
|
+
b as PriceInput,
|
|
42
48
|
t as ProgressIndicator,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
h as RadioInput,
|
|
50
|
+
k as SearchInput,
|
|
51
|
+
M as SegmentMultipleInput,
|
|
52
|
+
P as SegmentSingleInput,
|
|
53
|
+
C as SelectInput,
|
|
54
|
+
A as SelectableMultipleInput,
|
|
55
|
+
D as SelectableSingleInput,
|
|
56
|
+
i as SideBar,
|
|
50
57
|
r as Skeleton,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
pa as Snackbar,
|
|
59
|
+
ma as SnackbarsProvider,
|
|
60
|
+
L as SwitchInput,
|
|
61
|
+
ra as Table,
|
|
62
|
+
ca as Tabs,
|
|
63
|
+
la as Text,
|
|
64
|
+
R as TextAreaInput,
|
|
65
|
+
w as TextInput,
|
|
66
|
+
oa as Tile,
|
|
67
|
+
F as TimePickerInput,
|
|
68
|
+
z as Tooltip,
|
|
69
|
+
I as TopBar,
|
|
70
|
+
Ba as useSnackbars
|
|
63
71
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { A as r, B as s, F as
|
|
1
|
+
import { A as r, B as s, F as B, P as t, S as p, T as e } from "../side-bar-BUACYQUo.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
4
|
s as BottomBar,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
p as
|
|
5
|
+
B as FormLayout,
|
|
6
|
+
t as PageLayout,
|
|
7
|
+
p as SideBar,
|
|
8
|
+
e as TopBar
|
|
8
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as e, D as r, M as t } from "../bottom-sheet-Eqduh3eY.js";
|
|
2
|
+
import { M, T as m } from "../tooltip-CDdl1U3A.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
e as BottomSheet,
|
|
4
5
|
r as Drawer,
|
|
5
|
-
|
|
6
|
-
t as Modal
|
|
6
|
+
M as Menu,
|
|
7
|
+
t as Modal,
|
|
8
|
+
m as Tooltip
|
|
7
9
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { A as e, a as t, b as
|
|
2
|
-
import { S as
|
|
1
|
+
import { A as e, a as t, b as o, B as r, l, c as n, d as c, e as g, f as m, C as B, g as I, D as i, I as u, i as T, k as d, j as f, N as p, T as x, h as A } from "../image-rectangle-C6cgL8R9.js";
|
|
2
|
+
import { S as b } from "../snackbar-DH8jCh2V.js";
|
|
3
|
+
import { T as h } from "../text-CRsIInRA.js";
|
|
3
4
|
export {
|
|
4
5
|
e as Alert,
|
|
5
6
|
t as Anchor,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
o as Avatar,
|
|
8
|
+
r as Badge,
|
|
9
|
+
l as BaseImage,
|
|
10
|
+
n as Brand,
|
|
10
11
|
c as Button,
|
|
11
12
|
g as ButtonFloat,
|
|
12
13
|
m as ButtonIcon,
|
|
@@ -14,11 +15,12 @@ export {
|
|
|
14
15
|
I as Calendar,
|
|
15
16
|
i as DescriptionList,
|
|
16
17
|
u as Icon,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
T as ImageCircle,
|
|
19
|
+
d as ImageRectangle,
|
|
20
|
+
f as ImageSquare,
|
|
21
|
+
p as NoResults,
|
|
22
|
+
b as Snackbar,
|
|
23
|
+
x as Table,
|
|
24
|
+
h as Text,
|
|
25
|
+
A as Tile
|
|
24
26
|
};
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import "./image-rectangle-C6cgL8R9.js";
|
|
5
|
+
import "./snackbar-DH8jCh2V.js";
|
|
6
|
+
import { T as d } from "./text-CRsIInRA.js";
|
|
7
|
+
const b = i(
|
|
8
|
+
"w-full flex flex-wrap items-center px-4 pt-3 mb-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
primary: "",
|
|
13
|
+
secondary: "",
|
|
14
|
+
tertiary: "",
|
|
15
|
+
ghost: "",
|
|
16
|
+
neutral: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "primary"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
), g = i(
|
|
24
|
+
"flex flex-col justify-center min-w-0 flex-grow",
|
|
25
|
+
{
|
|
26
|
+
variants: {
|
|
27
|
+
placement: {
|
|
28
|
+
start: "items-start",
|
|
29
|
+
center: "items-center",
|
|
30
|
+
end: "items-end"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
placement: "start"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
), v = n(
|
|
38
|
+
({ children: e, className: a }, t) => /* @__PURE__ */ s.jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref: t,
|
|
42
|
+
"data-versaur-appbar-bottom": !0,
|
|
43
|
+
className: l("w-full flex items-center min-h-[2.5rem] mt-2", a),
|
|
44
|
+
children: e
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
), y = n(
|
|
48
|
+
({ children: e, className: a }, t) => /* @__PURE__ */ s.jsx("div", { ref: t, className: l("flex items-center", a), children: e })
|
|
49
|
+
), B = n(
|
|
50
|
+
({ children: e, className: a }, t) => /* @__PURE__ */ s.jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
ref: t,
|
|
54
|
+
className: l("font-semibold text-lg truncate min-w-0", a),
|
|
55
|
+
children: e
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
), h = n(
|
|
59
|
+
({ children: e, className: a }, t) => /* @__PURE__ */ s.jsx(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
ref: t,
|
|
63
|
+
className: l("text-xs text-ghost-400 truncate min-w-0", a),
|
|
64
|
+
children: e
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
), j = n(
|
|
68
|
+
({ children: e, className: a }, t) => /* @__PURE__ */ s.jsx(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
ref: t,
|
|
72
|
+
className: l("flex items-center justify-end gap-2", a),
|
|
73
|
+
children: e
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
), N = n(
|
|
77
|
+
({ children: e, className: a, placement: t }, r) => /* @__PURE__ */ s.jsx(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
ref: r,
|
|
81
|
+
className: l(g({ placement: t }), a),
|
|
82
|
+
children: e
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
), w = ({
|
|
86
|
+
children: e,
|
|
87
|
+
className: a,
|
|
88
|
+
variant: t = "primary"
|
|
89
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
90
|
+
"header",
|
|
91
|
+
{
|
|
92
|
+
className: l(b({ variant: t }), a),
|
|
93
|
+
role: "banner",
|
|
94
|
+
children: e
|
|
95
|
+
}
|
|
96
|
+
), ta = Object.assign(w, {
|
|
97
|
+
Leading: y,
|
|
98
|
+
Headline: B,
|
|
99
|
+
Subtitle: h,
|
|
100
|
+
Trailing: j,
|
|
101
|
+
Center: N,
|
|
102
|
+
Bottom: v
|
|
103
|
+
}), T = i(
|
|
104
|
+
"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",
|
|
105
|
+
{
|
|
106
|
+
variants: {
|
|
107
|
+
variant: {
|
|
108
|
+
primary: "",
|
|
109
|
+
secondary: "",
|
|
110
|
+
ghost: "",
|
|
111
|
+
neutral: "",
|
|
112
|
+
tertiary: ""
|
|
113
|
+
},
|
|
114
|
+
size: {
|
|
115
|
+
sm: "h-12 text-sm",
|
|
116
|
+
md: "h-16 text-base",
|
|
117
|
+
lg: "h-20 text-lg"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
defaultVariants: {
|
|
121
|
+
variant: "primary",
|
|
122
|
+
size: "md"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
), S = i(
|
|
126
|
+
"flex flex-col items-center justify-center gap-1 px-2 py-1",
|
|
127
|
+
{
|
|
128
|
+
variants: {
|
|
129
|
+
active: {
|
|
130
|
+
true: "font-semibold text-primary",
|
|
131
|
+
false: "text-ghost"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
defaultVariants: {
|
|
135
|
+
active: !1
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
), L = n(
|
|
139
|
+
({ icon: e, label: a, active: t = !1, className: r, ...o }, c) => /* @__PURE__ */ s.jsxs(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
ref: c,
|
|
143
|
+
"aria-current": t ? "page" : void 0,
|
|
144
|
+
className: S({ active: t, className: r }),
|
|
145
|
+
...o,
|
|
146
|
+
children: [
|
|
147
|
+
e,
|
|
148
|
+
a && /* @__PURE__ */ s.jsx("span", { className: "text-xs mt-0.5", children: a })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
), V = ({
|
|
153
|
+
children: e,
|
|
154
|
+
variant: a = "primary",
|
|
155
|
+
size: t = "md",
|
|
156
|
+
className: r,
|
|
157
|
+
...o
|
|
158
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
159
|
+
"nav",
|
|
160
|
+
{
|
|
161
|
+
role: "navigation",
|
|
162
|
+
"aria-label": "Bottom navigation",
|
|
163
|
+
className: T({ variant: a, size: t, className: r }),
|
|
164
|
+
...o,
|
|
165
|
+
children: e
|
|
166
|
+
}
|
|
167
|
+
), ea = Object.assign(V, {
|
|
168
|
+
Item: L
|
|
169
|
+
}), A = i(
|
|
170
|
+
"w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
|
|
171
|
+
{
|
|
172
|
+
variants: {},
|
|
173
|
+
defaultVariants: {}
|
|
174
|
+
}
|
|
175
|
+
), R = i("flex items-center gap-3 min-w-0 flex-1"), I = i("flex items-center gap-2 ml-auto"), C = i(
|
|
176
|
+
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
177
|
+
{
|
|
178
|
+
variants: {
|
|
179
|
+
active: {
|
|
180
|
+
true: "bg-primary/10 text-primary",
|
|
181
|
+
false: "hover:text-primary text-ghost"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
defaultVariants: {
|
|
185
|
+
active: !1
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
), k = i("flex items-center gap-2 ml-4"), z = i("flex items-center gap-2 mr-4"), F = n(
|
|
189
|
+
function({ children: a, className: t, ...r }, o) {
|
|
190
|
+
return /* @__PURE__ */ s.jsx("nav", { ref: o, className: k({ className: t }), ...r, children: a });
|
|
191
|
+
}
|
|
192
|
+
), O = n(
|
|
193
|
+
function({ children: a, className: t, ...r }, o) {
|
|
194
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: z({ className: t }), ...r, children: a });
|
|
195
|
+
}
|
|
196
|
+
), P = n(
|
|
197
|
+
function({ children: a, className: t, ...r }, o) {
|
|
198
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: R({ className: t }), ...r, children: a });
|
|
199
|
+
}
|
|
200
|
+
), G = n(
|
|
201
|
+
function({ children: a, className: t, ...r }, o) {
|
|
202
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: I({ className: t }), ...r, children: a });
|
|
203
|
+
}
|
|
204
|
+
), H = n(
|
|
205
|
+
function({ children: a, className: t, active: r, ...o }, c) {
|
|
206
|
+
return /* @__PURE__ */ s.jsx(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
ref: c,
|
|
210
|
+
className: C({ active: r, className: t }),
|
|
211
|
+
"aria-current": r ? "page" : void 0,
|
|
212
|
+
...o,
|
|
213
|
+
children: a
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
), M = n(
|
|
218
|
+
({ children: e, className: a, ...t }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: A({ className: a }), ...t, children: e })
|
|
219
|
+
), sa = Object.assign(M, {
|
|
220
|
+
Leading: P,
|
|
221
|
+
Trailing: G,
|
|
222
|
+
NavItem: H,
|
|
223
|
+
Nav: F,
|
|
224
|
+
Actions: O
|
|
225
|
+
}), E = i("w-full mx-auto relative", {
|
|
226
|
+
variants: {
|
|
227
|
+
type: {
|
|
228
|
+
desktop: "max-w-7xl px-6 pb-10",
|
|
229
|
+
tablet: "max-w-3xl px-4",
|
|
230
|
+
mobile: "w-full px-4"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
defaultVariants: {
|
|
234
|
+
type: "desktop"
|
|
235
|
+
}
|
|
236
|
+
}), ra = f.forwardRef(
|
|
237
|
+
function({ type: a = "desktop", className: t, children: r, ...o }, c) {
|
|
238
|
+
return /* @__PURE__ */ s.jsx(
|
|
239
|
+
"div",
|
|
240
|
+
{
|
|
241
|
+
ref: c,
|
|
242
|
+
className: l(E({ type: a }), t),
|
|
243
|
+
...o,
|
|
244
|
+
children: r
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
), W = i("grid w-full gap-4 grid-cols-12"), $ = i("", {
|
|
249
|
+
variants: {
|
|
250
|
+
span: {
|
|
251
|
+
1: "col-span-1",
|
|
252
|
+
2: "col-span-2",
|
|
253
|
+
3: "col-span-3",
|
|
254
|
+
4: "col-span-4",
|
|
255
|
+
5: "col-span-5",
|
|
256
|
+
6: "col-span-6",
|
|
257
|
+
7: "col-span-7",
|
|
258
|
+
8: "col-span-8",
|
|
259
|
+
9: "col-span-9",
|
|
260
|
+
10: "col-span-10",
|
|
261
|
+
11: "col-span-11",
|
|
262
|
+
12: "col-span-12"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
defaultVariants: {
|
|
266
|
+
span: "4"
|
|
267
|
+
}
|
|
268
|
+
}), q = n(
|
|
269
|
+
function({ className: a, children: t, ...r }, o) {
|
|
270
|
+
return /* @__PURE__ */ s.jsx(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
ref: o,
|
|
274
|
+
className: l(W(), a),
|
|
275
|
+
...r,
|
|
276
|
+
children: t
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
), D = n(
|
|
281
|
+
function({ span: a = 4, className: t, children: r, ...o }, c) {
|
|
282
|
+
const m = Math.min(12, Math.max(1, a));
|
|
283
|
+
return /* @__PURE__ */ s.jsx(
|
|
284
|
+
"div",
|
|
285
|
+
{
|
|
286
|
+
ref: c,
|
|
287
|
+
className: l(
|
|
288
|
+
$({ span: `${m}` }),
|
|
289
|
+
t
|
|
290
|
+
),
|
|
291
|
+
...o,
|
|
292
|
+
children: r
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
), oa = Object.assign(q, {
|
|
297
|
+
Column: D
|
|
298
|
+
}), u = i(
|
|
299
|
+
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
300
|
+
{
|
|
301
|
+
variants: {
|
|
302
|
+
active: {
|
|
303
|
+
true: "bg-primary/10 text-primary",
|
|
304
|
+
false: "text-ghost"
|
|
305
|
+
},
|
|
306
|
+
disabled: {
|
|
307
|
+
true: "opacity-50 pointer-events-none",
|
|
308
|
+
false: ""
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
defaultVariants: {
|
|
312
|
+
active: !1,
|
|
313
|
+
disabled: !1
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
), J = n(
|
|
317
|
+
(e, a) => {
|
|
318
|
+
const { icon: t, children: r, href: o, onClick: c, active: m, ...x } = e;
|
|
319
|
+
if (typeof o == "string") {
|
|
320
|
+
const p = x;
|
|
321
|
+
return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
|
|
322
|
+
"a",
|
|
323
|
+
{
|
|
324
|
+
ref: a,
|
|
325
|
+
href: o,
|
|
326
|
+
className: u({
|
|
327
|
+
disabled: !!e["aria-disabled"],
|
|
328
|
+
active: m
|
|
329
|
+
}),
|
|
330
|
+
...p,
|
|
331
|
+
children: [
|
|
332
|
+
t,
|
|
333
|
+
/* @__PURE__ */ s.jsx(d, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
) });
|
|
337
|
+
} else {
|
|
338
|
+
const p = x;
|
|
339
|
+
return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
|
|
340
|
+
"button",
|
|
341
|
+
{
|
|
342
|
+
ref: a,
|
|
343
|
+
type: "button",
|
|
344
|
+
onClick: c,
|
|
345
|
+
className: l(
|
|
346
|
+
u({ disabled: !!p.disabled, active: m }),
|
|
347
|
+
"w-full text-left"
|
|
348
|
+
),
|
|
349
|
+
...p,
|
|
350
|
+
children: [
|
|
351
|
+
t,
|
|
352
|
+
/* @__PURE__ */ s.jsx(d, { as: "span", color: "inherit", fontSize: "sm", children: r })
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
) });
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
), K = n(
|
|
359
|
+
function({ children: a, label: t, ...r }, o) {
|
|
360
|
+
return /* @__PURE__ */ s.jsxs("li", { ref: o, className: "flex flex-col gap-2 mt-2", ...r, children: [
|
|
361
|
+
/* @__PURE__ */ s.jsx(
|
|
362
|
+
d,
|
|
363
|
+
{
|
|
364
|
+
as: "h2",
|
|
365
|
+
fontSize: "xs",
|
|
366
|
+
fontWeight: "semibold",
|
|
367
|
+
color: "gray",
|
|
368
|
+
className: "px-2",
|
|
369
|
+
children: t
|
|
370
|
+
}
|
|
371
|
+
),
|
|
372
|
+
/* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1", children: a })
|
|
373
|
+
] });
|
|
374
|
+
}
|
|
375
|
+
), Q = n(
|
|
376
|
+
({ children: e, ...a }, t) => /* @__PURE__ */ s.jsx(
|
|
377
|
+
"nav",
|
|
378
|
+
{
|
|
379
|
+
ref: t,
|
|
380
|
+
className: "w-56 bg-background border-r border-border flex flex-col my-2",
|
|
381
|
+
"aria-label": "Sidebar",
|
|
382
|
+
...a,
|
|
383
|
+
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: e }) })
|
|
384
|
+
}
|
|
385
|
+
)
|
|
386
|
+
), na = Object.assign(Q, {
|
|
387
|
+
Item: J,
|
|
388
|
+
Group: K
|
|
389
|
+
});
|
|
390
|
+
export {
|
|
391
|
+
ta as A,
|
|
392
|
+
ea as B,
|
|
393
|
+
oa as F,
|
|
394
|
+
ra as P,
|
|
395
|
+
na as S,
|
|
396
|
+
sa as T
|
|
397
|
+
};
|