@dimasbaguspm/versaur 0.0.18 → 0.0.20

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.
Files changed (63) hide show
  1. package/dist/js/bottom-sheet-DbtyWwsy.js +493 -0
  2. package/dist/js/{email-input-BIbrfs5q.js → bottom-sheet-input-C7cYfBaK.js} +789 -504
  3. package/dist/js/forms/index.js +21 -16
  4. package/dist/js/{description-list-DZQF212Z.js → image-rectangle-DH7v2xvp.js} +415 -323
  5. package/dist/js/index.js +63 -50
  6. package/dist/js/layouts/index.js +5 -4
  7. package/dist/js/overlays/index.js +6 -4
  8. package/dist/js/primitive/index.js +21 -16
  9. package/dist/js/side-bar-CHhcp0yS.js +397 -0
  10. package/dist/js/text-CRsIInRA.js +127 -0
  11. package/dist/js/tooltip-CDdl1U3A.js +148 -0
  12. package/dist/types/forms/bottom-sheet-input/bottom-sheet-input.d.ts +7 -0
  13. package/dist/types/forms/bottom-sheet-input/index.d.ts +2 -0
  14. package/dist/types/forms/bottom-sheet-input/types.d.ts +17 -0
  15. package/dist/types/forms/drawer-input/drawer-input.d.ts +6 -0
  16. package/dist/types/forms/drawer-input/index.d.ts +2 -0
  17. package/dist/types/forms/drawer-input/types.d.ts +18 -0
  18. package/dist/types/forms/index.d.ts +5 -0
  19. package/dist/types/forms/modal-input/index.d.ts +2 -0
  20. package/dist/types/forms/modal-input/modal-input.d.ts +6 -0
  21. package/dist/types/forms/modal-input/types.d.ts +18 -0
  22. package/dist/types/forms/selectable-multiple-input/index.d.ts +2 -0
  23. package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +6 -0
  24. package/dist/types/forms/selectable-multiple-input/types.d.ts +18 -0
  25. package/dist/types/forms/selectable-single-input/index.d.ts +2 -0
  26. package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +6 -0
  27. package/dist/types/forms/selectable-single-input/types.d.ts +18 -0
  28. package/dist/types/layouts/index.d.ts +1 -0
  29. package/dist/types/layouts/side-bar/index.d.ts +2 -0
  30. package/dist/types/layouts/side-bar/side-bar.atoms.d.ts +3 -0
  31. package/dist/types/layouts/side-bar/side-bar.d.ts +5 -0
  32. package/dist/types/layouts/side-bar/types.d.ts +42 -0
  33. package/dist/types/overlays/bottom-sheet/types.d.ts +2 -1
  34. package/dist/types/overlays/drawer/types.d.ts +2 -1
  35. package/dist/types/overlays/index.d.ts +1 -0
  36. package/dist/types/overlays/menu/menu.atoms.d.ts +5 -10
  37. package/dist/types/overlays/menu/menu.d.ts +2 -6
  38. package/dist/types/overlays/menu/types.d.ts +9 -14
  39. package/dist/types/overlays/menu/use-menu.d.ts +0 -1
  40. package/dist/types/overlays/modal/modal.d.ts +14 -5
  41. package/dist/types/overlays/modal/types.d.ts +7 -20
  42. package/dist/types/overlays/tooltip/index.d.ts +2 -0
  43. package/dist/types/overlays/tooltip/tooltip.d.ts +5 -0
  44. package/dist/types/overlays/tooltip/types.d.ts +33 -0
  45. package/dist/types/overlays/tooltip/use-tooltip-position.d.ts +8 -0
  46. package/dist/types/primitive/image/base-image.atoms.d.ts +6 -0
  47. package/dist/types/primitive/image/base-image.d.ts +6 -0
  48. package/dist/types/primitive/image/image-circle.d.ts +6 -0
  49. package/dist/types/primitive/image/image-rectangle.d.ts +6 -0
  50. package/dist/types/primitive/image/image-square.d.ts +6 -0
  51. package/dist/types/primitive/image/index.d.ts +5 -0
  52. package/dist/types/primitive/image/types.d.ts +48 -0
  53. package/dist/types/primitive/image/use-image.d.ts +13 -0
  54. package/dist/types/primitive/index.d.ts +1 -0
  55. package/dist/types/primitive/table/table.atoms.d.ts +4 -6
  56. package/dist/types/primitive/table/table.d.ts +2 -1
  57. package/dist/types/primitive/table/types.d.ts +7 -4
  58. package/dist/utils/enforce-subpath-import.js +11 -0
  59. package/package.json +1 -1
  60. package/dist/js/bottom-sheet-BRv-oJL-.js +0 -646
  61. package/dist/js/form-layout-4ASWdXn8.js +0 -302
  62. package/dist/types/overlays/modal/use-escape-close.d.ts +0 -6
  63. package/dist/types/overlays/modal/use-focus-trap.d.ts +0 -6
package/dist/js/index.js CHANGED
@@ -1,57 +1,70 @@
1
- import { L as t, P as e, S as r } from "./skeleton-BNZyaRjo.js";
2
- import { A as n, B as p, F as u, P as i, T as c } from "./form-layout-4ASWdXn8.js";
3
- import { C as l, b as S, a as m, D as B, E as d, P as x, R as T, d as g, c as f, S as b, e as h, h as P, f as k, T as A, g as C } from "./email-input-BIbrfs5q.js";
4
- import { B as L, D as M, M as F, a as v } from "./bottom-sheet-BRv-oJL-.js";
5
- import { A as y, a as E, b as R, B as j, c as q, d as z, e as G, f as H, C as J, g as K, D as N, I as O, T as Q, h as U, i as V } from "./description-list-DZQF212Z.js";
6
- import { S as X } from "./snackbar-DH8jCh2V.js";
7
- import { B as Z, T as _ } from "./tabs-BbOkYchB.js";
8
- import { S as aa, u as sa } from "./use-snackbars-oPoF7J5t.js";
1
+ import { L as t, P as s, S as r } from "./skeleton-BNZyaRjo.js";
2
+ import { A as n, B as p, F as u, P as l, S as i, T as I } from "./side-bar-CHhcp0yS.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 w, T as F, g as R } from "./bottom-sheet-input-C7cYfBaK.js";
4
+ import { B as v, D as y, M as E } from "./bottom-sheet-DbtyWwsy.js";
5
+ import { M as z, T as G } from "./tooltip-CDdl1U3A.js";
6
+ import { A as J, a as K, b as N, 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 ta, T as sa, h as ra } from "./image-rectangle-DH7v2xvp.js";
7
+ import { S as na } from "./snackbar-DH8jCh2V.js";
8
+ import { T as ua } from "./text-CRsIInRA.js";
9
+ import { B as ia, T as Ia } from "./tabs-BbOkYchB.js";
10
+ import { S as Sa, u as ma } from "./use-snackbars-oPoF7J5t.js";
9
11
  export {
10
- y as Alert,
11
- E as Anchor,
12
+ J as Alert,
13
+ K as Anchor,
12
14
  n as AppBar,
13
- R as Avatar,
14
- j as Badge,
15
+ N as Avatar,
16
+ O as Badge,
17
+ Q as BaseImage,
15
18
  p as BottomBar,
16
- L as BottomSheet,
17
- q as Brand,
18
- Z as Breadcrumbs,
19
- z as Button,
20
- G as ButtonFloat,
21
- H as ButtonIcon,
22
- J as Calculator,
23
- K as Calendar,
24
- l as CheckboxInput,
25
- S as ChipMultipleInput,
26
- m as ChipSingleInput,
27
- B as DateSinglePickerInput,
28
- N as DescriptionList,
29
- M as Drawer,
30
- d as EmailInput,
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,
31
36
  u as FormLayout,
32
- O as Icon,
37
+ $ as Icon,
38
+ aa as ImageCircle,
39
+ ea as ImageRectangle,
40
+ ta as ImageSquare,
33
41
  t as LoadingIndicator,
34
- F as Menu,
35
- v as Modal,
36
- i as PageLayout,
37
- x as PriceInput,
38
- e as ProgressIndicator,
39
- T as RadioInput,
40
- g as SearchInput,
41
- f as SegmentMultipleInput,
42
- b as SegmentSingleInput,
43
- h as SelectInput,
42
+ z as Menu,
43
+ E as Modal,
44
+ f as ModalInput,
45
+ l as PageLayout,
46
+ b as PriceInput,
47
+ s as ProgressIndicator,
48
+ h as RadioInput,
49
+ k as SearchInput,
50
+ M as SegmentMultipleInput,
51
+ P as SegmentSingleInput,
52
+ C as SelectInput,
53
+ A as SelectableMultipleInput,
54
+ D as SelectableSingleInput,
55
+ i as SideBar,
44
56
  r as Skeleton,
45
- X as Snackbar,
46
- aa as SnackbarsProvider,
47
- P as SwitchInput,
48
- Q as Table,
49
- _ as Tabs,
50
- U as Text,
51
- k as TextAreaInput,
52
- A as TextInput,
53
- V as Tile,
54
- C as TimePickerInput,
55
- c as TopBar,
56
- sa as useSnackbars
57
+ na as Snackbar,
58
+ Sa as SnackbarsProvider,
59
+ L as SwitchInput,
60
+ sa as Table,
61
+ Ia as Tabs,
62
+ ua as Text,
63
+ w as TextAreaInput,
64
+ F as TextInput,
65
+ ra as Tile,
66
+ R as TimePickerInput,
67
+ G as Tooltip,
68
+ I as TopBar,
69
+ ma as useSnackbars
57
70
  };
@@ -1,8 +1,9 @@
1
- import { A as r, B as s, F as t, P as B, T as p } from "../form-layout-4ASWdXn8.js";
1
+ import { A as r, B as s, F as B, P as t, S as p, T as e } from "../side-bar-CHhcp0yS.js";
2
2
  export {
3
3
  r as AppBar,
4
4
  s as BottomBar,
5
- t as FormLayout,
6
- B as PageLayout,
7
- p as TopBar
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 o, D as r, M as s, a as t } from "../bottom-sheet-BRv-oJL-.js";
1
+ import { B as e, D as r, M as t } from "../bottom-sheet-DbtyWwsy.js";
2
+ import { M, T as m } from "../tooltip-CDdl1U3A.js";
2
3
  export {
3
- o as BottomSheet,
4
+ e as BottomSheet,
4
5
  r as Drawer,
5
- s as Menu,
6
- t as Modal
6
+ M as Menu,
7
+ t as Modal,
8
+ m as Tooltip
7
9
  };
@@ -1,20 +1,25 @@
1
- import { A as t, a as o, b as r, B as e, c as n, d as c, e as l, f as B, C as i, g as d, D as u, I as A, T, h as b, i as f } from "../description-list-DZQF212Z.js";
2
- import { S as x } from "../snackbar-DH8jCh2V.js";
1
+ import { A as e, a as t, b as r, B as o, l as n, c as l, 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, T as p, h as x } from "../image-rectangle-DH7v2xvp.js";
2
+ import { S as C } from "../snackbar-DH8jCh2V.js";
3
+ import { T as S } from "../text-CRsIInRA.js";
3
4
  export {
4
- t as Alert,
5
- o as Anchor,
5
+ e as Alert,
6
+ t as Anchor,
6
7
  r as Avatar,
7
- e as Badge,
8
- n as Brand,
8
+ o as Badge,
9
+ n as BaseImage,
10
+ l as Brand,
9
11
  c as Button,
10
- l as ButtonFloat,
11
- B as ButtonIcon,
12
- i as Calculator,
13
- d as Calendar,
14
- u as DescriptionList,
15
- A as Icon,
16
- x as Snackbar,
17
- T as Table,
18
- b as Text,
19
- f as Tile
12
+ g as ButtonFloat,
13
+ m as ButtonIcon,
14
+ B as Calculator,
15
+ I as Calendar,
16
+ i as DescriptionList,
17
+ u as Icon,
18
+ T as ImageCircle,
19
+ d as ImageRectangle,
20
+ f as ImageSquare,
21
+ C as Snackbar,
22
+ p as Table,
23
+ S as Text,
24
+ x as Tile
20
25
  };
@@ -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-DH7v2xvp.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 py-10",
229
+ tablet: "max-w-3xl",
230
+ mobile: "w-full"
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
+ };