@versaur/react 1.0.12 → 1.0.14

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/blocks.js CHANGED
@@ -1,103 +1,105 @@
1
- import { jsxs as y, jsx as o, Fragment as Tt } from "react/jsx-runtime";
2
- import { accordionStyles as D, avatarGroupStyles as St, tabsStyles as G, noResultsStyles as F, attributeListStyles as wt, badgeGroupStyles as Bt, cardStyles as C, menuStyles as H, tableStyles as B, buttonGroupStyles as At, topBarStyles as L, navStyles as j, sidebarStyles as T, bottomBarStyles as $, appLayoutStyles as x, formGroupStyles as X, featuresStyles as W, drawerStyles as Rt, modalStyles as It, bottomSheetStyles as Lt } from "@versaur/core/blocks";
3
- import { ChevronDownIcon as Z, XIcon as q } from "@versaur/icons";
4
- import xt, { createContext as A, forwardRef as n, useRef as M, useState as P, useEffect as z, useContext as R, useLayoutEffect as Ft, useId as O, useCallback as Dt } from "react";
5
- import { u as v } from "./use-data-attrs-iPFyfiKN.js";
6
- import { c as d } from "./cx-B9vmfsc1.js";
7
- import { c as ee, I as E, T as I, B as V, H as Mt } from "./tooltip-Zuq8gd0f.js";
8
- import { checkboxStyles as k } from "@versaur/core/forms";
9
- import { overlayPartsStyles as w } from "@versaur/core/utils";
10
- import { c as J, a as te, O as K, b as Ht } from "./overlay-parts-Zq9CuT31.js";
11
- const ae = A(void 0);
12
- function Gt() {
13
- const e = R(ae);
1
+ import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
+ import { accordionStyles as L, avatarGroupStyles as mt, tabsStyles as M, noResultsStyles as I, attributeListStyles as ut, badgeGroupStyles as pt, cardStyles as D, menuStyles as G, tableStyles as S, buttonGroupStyles as bt, topBarStyles as R, sidebarStyles as y, bottomBarStyles as P, appLayoutStyles as w, formGroupStyles as _, featuresStyles as O, modalStyles as Nt, bottomSheetStyles as yt } from "@versaur/core/blocks";
3
+ import { ChevronDownIcon as W, XIcon as X } from "@versaur/icons";
4
+ import { createContext as x, forwardRef as n, useRef as z, useState as H, useEffect as k, useContext as F, useLayoutEffect as vt, useId as q } from "react";
5
+ import { u as v, I as J, B as E } from "./helpers-DTL6qrTe.js";
6
+ import { c } from "./cx-B9vmfsc1.js";
7
+ import { c as K, T as A, H as ht } from "./tooltip-BMKVL6jz.js";
8
+ import { checkboxStyles as $ } from "@versaur/core/forms";
9
+ import { a as Q } from "./drawer-DRv9k7lp.js";
10
+ import { D as ma } from "./drawer-DRv9k7lp.js";
11
+ import { overlayPartsStyles as C } from "@versaur/core/utils";
12
+ import { O as U, a as Y, b as ft, c as gt } from "./overlay-parts-CFeD8VN0.js";
13
+ const Z = x(void 0);
14
+ function Tt() {
15
+ const e = F(Z);
14
16
  if (!e)
15
17
  throw new Error("Accordion.Summary must be used within an Accordion component");
16
18
  return e;
17
19
  }
18
- function Pt({ summary: e, open: t, onOpenChange: a, children: s, className: r, ...i }, l) {
19
- const [m, u] = P(t ?? !1), c = M(null);
20
- z(() => {
20
+ function St({ summary: e, open: t, onOpenChange: a, children: o, className: r, ...i }, l) {
21
+ const [d, u] = H(t ?? !1), m = z(null);
22
+ k(() => {
21
23
  t !== void 0 && u(t);
22
- }, [t]), z(() => {
23
- c.current && (c.current.open = m);
24
- }, [m]);
24
+ }, [t]), k(() => {
25
+ m.current && (m.current.open = d);
26
+ }, [d]);
25
27
  const p = () => {
26
- const b = !m;
27
- u(b), a == null || a(b);
28
- }, N = v({ open: m ? "" : void 0 });
29
- return /* @__PURE__ */ o(ae.Provider, { value: { isOpen: m, toggle: p }, children: /* @__PURE__ */ y(
28
+ const h = !d;
29
+ u(h), a == null || a(h);
30
+ }, N = v({ open: d ? "" : void 0 });
31
+ return /* @__PURE__ */ s(Z.Provider, { value: { isOpen: d, toggle: p }, children: /* @__PURE__ */ b(
30
32
  "details",
31
33
  {
32
- ref: l || c,
33
- className: d(D.item, r),
34
- open: m,
34
+ ref: l || m,
35
+ className: c(L.item, r),
36
+ open: d,
35
37
  ...N,
36
38
  ...i,
37
39
  children: [
38
40
  e,
39
- /* @__PURE__ */ o("div", { className: D.content, children: s })
41
+ /* @__PURE__ */ s("div", { className: L.content, children: o })
40
42
  ]
41
43
  }
42
44
  ) });
43
45
  }
44
- const se = n(Pt);
45
- se.displayName = "Accordion";
46
- const oe = n(
47
- ({ children: e, right: t, clamp: a = 2, className: s, ...r }, i) => {
48
- const { isOpen: l, toggle: m } = Gt(), u = M(null), c = (p) => {
49
- p.preventDefault(), !(u.current && u.current.contains(p.target)) && m();
46
+ const ee = n(St);
47
+ ee.displayName = "Accordion";
48
+ const te = n(
49
+ ({ children: e, right: t, clamp: a = 2, className: o, ...r }, i) => {
50
+ const { isOpen: l, toggle: d } = Tt(), u = z(null), m = (p) => {
51
+ p.preventDefault(), !(u.current && u.current.contains(p.target)) && d();
50
52
  };
51
- return /* @__PURE__ */ y(
53
+ return /* @__PURE__ */ b(
52
54
  "summary",
53
55
  {
54
56
  ref: i,
55
- className: d(D.trigger, s),
56
- onClick: c,
57
+ className: c(L.trigger, o),
58
+ onClick: m,
57
59
  role: "button",
58
60
  "aria-expanded": l,
59
61
  ...r,
60
62
  children: [
61
- /* @__PURE__ */ o("span", { className: D.label, style: { "--_clamp": a }, children: e }),
62
- t && /* @__PURE__ */ o("span", { ref: u, className: D.right, children: t }),
63
- /* @__PURE__ */ o("span", { className: D.chevron, children: /* @__PURE__ */ o(Z, { width: 20, height: 20 }) })
63
+ /* @__PURE__ */ s("span", { className: L.label, style: { "--_clamp": a }, children: e }),
64
+ t && /* @__PURE__ */ s("span", { ref: u, className: L.right, children: t }),
65
+ /* @__PURE__ */ s("span", { className: L.chevron, children: /* @__PURE__ */ s(W, { width: 20, height: 20 }) })
64
66
  ]
65
67
  }
66
68
  );
67
69
  }
68
70
  );
69
- oe.displayName = "Accordion.Summary";
70
- const na = Object.assign(se, {
71
- Summary: oe
72
- }), zt = n(
71
+ te.displayName = "Accordion.Summary";
72
+ const Qt = Object.assign(ee, {
73
+ Summary: te
74
+ }), Bt = n(
73
75
  ({
74
76
  direction: e = "horizontal",
75
77
  size: t = "md",
76
78
  align: a = "center",
77
- wrap: s = "nowrap",
79
+ wrap: o = "nowrap",
78
80
  "aria-label": r = "Avatar group",
79
81
  children: i,
80
82
  className: l,
81
- ...m
83
+ ...d
82
84
  }, u) => {
83
- const c = v({ align: a, direction: e, size: t, wrap: s });
84
- return /* @__PURE__ */ o(
85
+ const m = v({ align: a, direction: e, size: t, wrap: o });
86
+ return /* @__PURE__ */ s(
85
87
  "div",
86
88
  {
87
89
  ref: u,
88
- className: d(St["avatar-group"], l),
90
+ className: c(mt["avatar-group"], l),
89
91
  role: "group",
90
92
  "aria-label": r,
91
- ...c,
92
93
  ...m,
94
+ ...d,
93
95
  children: i
94
96
  }
95
97
  );
96
98
  }
97
99
  );
98
- zt.displayName = "AvatarGroup";
99
- function jt(e, t) {
100
- z(() => {
100
+ Bt.displayName = "AvatarGroup";
101
+ function At(e, t) {
102
+ k(() => {
101
103
  if (!e.current)
102
104
  return;
103
105
  const a = new ResizeObserver(t);
@@ -106,64 +108,64 @@ function jt(e, t) {
106
108
  };
107
109
  }, [e, t]);
108
110
  }
109
- const re = A(void 0);
110
- function $t() {
111
- const e = R(re);
111
+ const ae = x(void 0);
112
+ function Rt() {
113
+ const e = F(ae);
112
114
  if (!e)
113
115
  throw new Error("Tabs.Item must be used within a Tabs component");
114
116
  return e;
115
117
  }
116
- const ie = n(({ value: e, onChange: t, children: a, className: s }, r) => {
117
- const i = M(null), l = M(/* @__PURE__ */ new Map()), [m, u] = P(0), [c, p] = P(0), N = () => {
118
+ const se = n(({ value: e, onChange: t, children: a, className: o }, r) => {
119
+ const i = z(null), l = z(/* @__PURE__ */ new Map()), [d, u] = H(0), [m, p] = H(0), N = () => {
118
120
  const f = l.current.get(e);
119
121
  if (!f || !i.current)
120
122
  return;
121
- const h = i.current.getBoundingClientRect(), g = f.getBoundingClientRect(), ht = g.left - h.left + i.current.scrollLeft, { width: gt } = g;
122
- u(ht), p(gt), f.scrollIntoView({
123
+ const g = i.current.getBoundingClientRect(), T = f.getBoundingClientRect(), ct = T.left - g.left + i.current.scrollLeft, { width: dt } = T;
124
+ u(ct), p(dt), f.scrollIntoView({
123
125
  behavior: "smooth",
124
126
  block: "nearest",
125
127
  inline: "center"
126
128
  });
127
- }, b = (f, h) => {
128
- h && l.current.set(f, h);
129
+ }, h = (f, g) => {
130
+ g && l.current.set(f, g);
129
131
  };
130
- Ft(() => {
132
+ vt(() => {
131
133
  N();
132
- }, [e]), jt(i, N);
133
- const S = v({});
134
- return /* @__PURE__ */ o(re.Provider, { value: { activeValue: e, onChange: t, registerTrigger: b }, children: /* @__PURE__ */ y("nav", { ref: ee(r, i), className: d(G.tabs, s), ...S, children: [
135
- /* @__PURE__ */ o("ul", { className: G.tablist, role: "tablist", children: a }),
136
- /* @__PURE__ */ o(
134
+ }, [e]), At(i, N);
135
+ const B = v({});
136
+ return /* @__PURE__ */ s(ae.Provider, { value: { activeValue: e, onChange: t, registerTrigger: h }, children: /* @__PURE__ */ b("nav", { ref: K(r, i), className: c(M.tabs, o), ...B, children: [
137
+ /* @__PURE__ */ s("ul", { className: M.tablist, role: "tablist", children: a }),
138
+ /* @__PURE__ */ s(
137
139
  "div",
138
140
  {
139
- className: G["tabs-thumb"],
141
+ className: M["tabs-thumb"],
140
142
  style: {
141
- left: `${m}px`,
142
- width: `${c}px`
143
+ left: `${d}px`,
144
+ width: `${m}px`
143
145
  }
144
146
  }
145
147
  )
146
148
  ] }) });
147
149
  });
148
- ie.displayName = "Tabs";
149
- const le = n(
150
- ({ value: e, disabled: t = !1, children: a, className: s }, r) => {
151
- const { activeValue: i, onChange: l, registerTrigger: m } = $t(), u = i === e;
152
- let c;
153
- t ? c = "disabled" : u ? c = "active" : c = "default";
150
+ se.displayName = "Tabs";
151
+ const oe = n(
152
+ ({ value: e, disabled: t = !1, children: a, className: o }, r) => {
153
+ const { activeValue: i, onChange: l, registerTrigger: d } = Rt(), u = i === e;
154
+ let m;
155
+ t ? m = "disabled" : u ? m = "active" : m = "default";
154
156
  const p = () => {
155
157
  t || l(e);
156
158
  };
157
- return /* @__PURE__ */ o("li", { className: G.tabitem, children: /* @__PURE__ */ o(
159
+ return /* @__PURE__ */ s("li", { className: M.tabitem, children: /* @__PURE__ */ s(
158
160
  "button",
159
161
  {
160
- ref: ee(r, (N) => m(e, N)),
161
- className: d(G.trigger, s),
162
+ ref: K(r, (N) => d(e, N)),
163
+ className: c(M.trigger, o),
162
164
  role: "tab",
163
165
  id: `tabs-trigger-${e}`,
164
166
  "aria-selected": u,
165
167
  "aria-controls": `tabs-panel-${e}`,
166
- "data-state": c,
168
+ "data-state": m,
167
169
  disabled: t,
168
170
  onClick: p,
169
171
  children: a
@@ -171,48 +173,48 @@ const le = n(
171
173
  ) });
172
174
  }
173
175
  );
174
- le.displayName = "Tabs.Item";
175
- function Et(e) {
176
+ oe.displayName = "Tabs.Item";
177
+ function wt(e) {
176
178
  return {
177
179
  "aria-labelledby": `tabs-trigger-${e}`,
178
180
  id: `tabs-panel-${e}`,
179
181
  role: "tabpanel"
180
182
  };
181
183
  }
182
- const da = Object.assign(ie, {
183
- Item: le,
184
- getPanelAttribute: Et
185
- }), _t = n(
186
- ({ icon: e, title: t, subtitle: a, action: s, className: r, ...i }, l) => /* @__PURE__ */ y(
184
+ const Ut = Object.assign(se, {
185
+ Item: oe,
186
+ getPanelAttribute: wt
187
+ }), It = n(
188
+ ({ icon: e, title: t, subtitle: a, action: o, className: r, ...i }, l) => /* @__PURE__ */ b(
187
189
  "section",
188
190
  {
189
191
  ref: l,
190
- className: d(F["no-results"], r),
192
+ className: c(I["no-results"], r),
191
193
  role: "status",
192
194
  "aria-label": t,
193
195
  ...i,
194
196
  children: [
195
- /* @__PURE__ */ y("header", { className: F["no-results-header"], children: [
196
- /* @__PURE__ */ o("div", { className: F["no-results-icon"], children: /* @__PURE__ */ o(E, { as: e, color: "inherit", "aria-hidden": "true" }) }),
197
- /* @__PURE__ */ o("h5", { className: F["no-results-title"], children: t })
197
+ /* @__PURE__ */ b("header", { className: I["no-results-header"], children: [
198
+ /* @__PURE__ */ s("div", { className: I["no-results-icon"], children: /* @__PURE__ */ s(J, { as: e, color: "inherit", "aria-hidden": "true" }) }),
199
+ /* @__PURE__ */ s("h5", { className: I["no-results-title"], children: t })
198
200
  ] }),
199
- a && /* @__PURE__ */ o("p", { className: F["no-results-subtitle"], children: a }),
200
- s && /* @__PURE__ */ o("div", { className: F["no-results-action"], role: "group", "aria-label": "Available actions", children: s })
201
+ a && /* @__PURE__ */ s("p", { className: I["no-results-subtitle"], children: a }),
202
+ o && /* @__PURE__ */ s("div", { className: I["no-results-action"], role: "group", "aria-label": "Available actions", children: o })
201
203
  ]
202
204
  }
203
205
  )
204
206
  );
205
- _t.displayName = "NoResults";
206
- const ce = n(
207
- ({ layout: e, columns: t = "repeat(3, 1fr)", gap: a, children: s, className: r, style: i, ...l }, m) => {
207
+ It.displayName = "NoResults";
208
+ const re = n(
209
+ ({ layout: e, columns: t = "repeat(3, 1fr)", gap: a, children: o, className: r, style: i, ...l }, d) => {
208
210
  const u = v({
209
211
  layout: e
210
212
  });
211
- return /* @__PURE__ */ o(
213
+ return /* @__PURE__ */ s(
212
214
  "dl",
213
215
  {
214
- ref: m,
215
- className: d(wt["attribute-list"], r),
216
+ ref: d,
217
+ className: c(ut["attribute-list"], r),
216
218
  ...u,
217
219
  style: {
218
220
  "--_columns": t,
@@ -220,272 +222,270 @@ const ce = n(
220
222
  ...i
221
223
  },
222
224
  ...l,
223
- children: s
225
+ children: o
224
226
  }
225
227
  );
226
228
  }
227
229
  );
228
- ce.displayName = "AttributeList";
229
- const ne = n(
230
- ({ title: e, area: t, children: a, className: s, style: r, ...i }, l) => /* @__PURE__ */ y(
230
+ re.displayName = "AttributeList";
231
+ const ie = n(
232
+ ({ title: e, area: t, children: a, className: o, style: r, ...i }, l) => /* @__PURE__ */ b(
231
233
  "div",
232
234
  {
233
235
  ref: l,
234
- className: d(s),
236
+ className: c(o),
235
237
  style: {
236
238
  "--_area": t,
237
239
  ...r
238
240
  },
239
241
  ...i,
240
242
  children: [
241
- /* @__PURE__ */ o("dt", { children: e }),
242
- /* @__PURE__ */ o("dd", { children: a })
243
+ /* @__PURE__ */ s("dt", { children: e }),
244
+ /* @__PURE__ */ s("dd", { children: a })
243
245
  ]
244
246
  }
245
247
  )
246
248
  );
247
- ne.displayName = "AttributeList.Item";
248
- const ma = Object.assign(ce, {
249
- Item: ne
250
- }), Ct = n(
249
+ ie.displayName = "AttributeList.Item";
250
+ const Yt = Object.assign(re, {
251
+ Item: ie
252
+ }), Lt = n(
251
253
  ({
252
254
  gap: e = "md",
253
255
  direction: t = "horizontal",
254
256
  align: a = "center",
255
- wrap: s = "nowrap",
257
+ wrap: o = "nowrap",
256
258
  "aria-label": r = "Badge group",
257
259
  children: i,
258
260
  className: l,
259
- ...m
261
+ ...d
260
262
  }, u) => {
261
- const c = v({
263
+ const m = v({
262
264
  align: a,
263
265
  direction: t,
264
266
  gap: e,
265
- wrap: s
267
+ wrap: o
266
268
  });
267
- return /* @__PURE__ */ o(
269
+ return /* @__PURE__ */ s(
268
270
  "div",
269
271
  {
270
272
  ref: u,
271
- className: d(Bt["badge-group"], l),
273
+ className: c(pt["badge-group"], l),
272
274
  role: "group",
273
275
  "aria-label": r,
274
- ...c,
275
276
  ...m,
277
+ ...d,
276
278
  children: i
277
279
  }
278
280
  );
279
281
  }
280
282
  );
281
- Ct.displayName = "BadgeGroup";
282
- function Vt({ as: e = "div", size: t = "md", border: a, children: s, className: r, ...i }, l) {
283
- const m = v({
283
+ Lt.displayName = "BadgeGroup";
284
+ function xt({ as: e = "div", size: t = "md", border: a, children: o, className: r, ...i }, l) {
285
+ const d = v({
284
286
  border: a,
285
287
  interactive: e === "button" ? "true" : "false",
286
288
  size: t
287
289
  });
288
- return /* @__PURE__ */ o(e === "button" ? "button" : "div", { ref: l, className: d(C.card, r), ...m, ...i, children: s });
290
+ return /* @__PURE__ */ s(e === "button" ? "button" : "div", { ref: l, className: c(D.card, r), ...d, ...i, children: o });
289
291
  }
290
- const de = n(
291
- Vt
292
+ const le = n(
293
+ xt
292
294
  );
293
- de.displayName = "Card";
294
- const me = n(
295
- ({ justify: e, gap: t, children: a, className: s, ...r }, i) => {
295
+ le.displayName = "Card";
296
+ const ne = n(
297
+ ({ justify: e, gap: t, children: a, className: o, ...r }, i) => {
296
298
  const l = v({ gap: t, justify: e });
297
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.header, s), ...l, ...r, children: a });
299
+ return /* @__PURE__ */ s("div", { ref: i, className: c(D.header, o), ...l, ...r, children: a });
298
300
  }
299
301
  );
300
- me.displayName = "Card.Header";
301
- const ue = n(
302
- ({ align: e, gap: t, children: a, className: s, ...r }, i) => {
302
+ ne.displayName = "Card.Header";
303
+ const ce = n(
304
+ ({ align: e, gap: t, children: a, className: o, ...r }, i) => {
303
305
  const l = v({ align: e, gap: t });
304
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.body, s), ...l, ...r, children: a });
306
+ return /* @__PURE__ */ s("div", { ref: i, className: c(D.body, o), ...l, ...r, children: a });
305
307
  }
306
308
  );
307
- ue.displayName = "Card.Body";
308
- const pe = n(
309
- ({ justify: e, gap: t, children: a, className: s, ...r }, i) => {
309
+ ce.displayName = "Card.Body";
310
+ const de = n(
311
+ ({ justify: e, gap: t, children: a, className: o, ...r }, i) => {
310
312
  const l = v({ gap: t, justify: e });
311
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.footer, s), ...l, ...r, children: a });
313
+ return /* @__PURE__ */ s("div", { ref: i, className: c(D.footer, o), ...l, ...r, children: a });
312
314
  }
313
315
  );
314
- pe.displayName = "Card.Footer";
315
- const ua = Object.assign(de, {
316
- Body: ue,
317
- Footer: pe,
318
- Header: me
319
- }), be = A(void 0), Ne = n(
316
+ de.displayName = "Card.Footer";
317
+ const Zt = Object.assign(le, {
318
+ Body: ce,
319
+ Footer: de,
320
+ Header: ne
321
+ }), me = x(void 0), ue = n(
320
322
  ({
321
323
  id: e,
322
- placement: t = "bottom",
324
+ placement: t,
323
325
  maxHeight: a = 400,
324
- minWidth: s = 160,
325
- maxWidth: r = 320,
326
- gap: i = 8,
327
- value: l,
328
- onChange: m,
329
- closeOnClick: u = !1,
330
- children: c,
331
- ...p
332
- }, N) => {
333
- const b = {
326
+ maxWidth: o = 320,
327
+ gap: r = 8,
328
+ value: i,
329
+ onChange: l,
330
+ closeOnClick: d = !1,
331
+ children: u,
332
+ ...m
333
+ }, p) => {
334
+ const N = {
334
335
  id: e,
335
- closeOnClick: u,
336
- onChange: m,
337
- value: l
336
+ closeOnClick: d,
337
+ onChange: l,
338
+ value: i
338
339
  };
339
- return /* @__PURE__ */ o("div", { ref: N, ...p, children: /* @__PURE__ */ o(be.Provider, { value: b, children: /* @__PURE__ */ o(I, { id: e, placement: t, gap: i, triggerType: "focus", children: /* @__PURE__ */ o(
340
+ return /* @__PURE__ */ s("div", { ref: p, ...m, children: /* @__PURE__ */ s(me.Provider, { value: N, children: /* @__PURE__ */ s(A, { id: e, placement: t, gap: r, type: "persisted", children: /* @__PURE__ */ s(
340
341
  "div",
341
342
  {
342
- className: H["menu-list"],
343
+ className: G["menu-list"],
343
344
  style: {
344
345
  "--_max-height": `${a}px`,
345
- "--_max-width": `${r}px`,
346
- "--_min-width": `${s}px`
346
+ "--_max-width": `${o}px`
347
347
  },
348
- children: c
348
+ children: u
349
349
  }
350
350
  ) }) }) });
351
351
  }
352
352
  );
353
- Ne.displayName = "Menu";
354
- function kt(e) {
355
- return I.getTooltipTriggerProps({
353
+ ue.displayName = "Menu";
354
+ function Ft(e) {
355
+ return A.getTooltipTriggerProps({
356
356
  id: e.id
357
357
  });
358
358
  }
359
- function Wt(e) {
360
- I.close(e);
359
+ function Ct(e) {
360
+ A.close(e);
361
361
  }
362
- const Q = Ne;
363
- Q.getTriggerProps = kt;
364
- Q.close = Wt;
365
- const ye = n(
366
- ({ value: e, disabled: t = !1, leftIcon: a, rightIcon: s, children: r, onClick: i, className: l, ...m }, u) => {
367
- const c = R(be), p = c != null && c.onChange && e !== void 0 ? c.value === e : !1, N = v({
362
+ const V = ue;
363
+ V.getTriggerProps = Ft;
364
+ V.close = Ct;
365
+ const pe = n(
366
+ ({ value: e, disabled: t = !1, leftIcon: a, rightIcon: o, children: r, onClick: i, className: l, ...d }, u) => {
367
+ const m = F(me), p = m != null && m.onChange && e !== void 0 ? m.value === e : !1, N = v({
368
368
  active: p,
369
369
  disabled: t
370
- }), b = (S) => {
370
+ }), h = (B) => {
371
371
  if (t) {
372
- S.preventDefault();
372
+ B.preventDefault();
373
373
  return;
374
374
  }
375
- c != null && c.onChange && e !== void 0 && c.onChange(e), i == null || i(S), c != null && c.closeOnClick && (c != null && c.id) && I.close({ id: c.id });
375
+ m != null && m.onChange && e !== void 0 && m.onChange(e), i == null || i(B), m != null && m.closeOnClick && (m != null && m.id) && A.close({ id: m.id });
376
376
  };
377
- return /* @__PURE__ */ y(
377
+ return /* @__PURE__ */ b(
378
378
  "button",
379
379
  {
380
380
  ref: u,
381
- className: d(H["menu-item"], l),
381
+ className: c(G["menu-item"], l),
382
382
  disabled: t,
383
383
  ...N,
384
- ...m,
385
- onClick: b,
384
+ ...d,
385
+ onClick: h,
386
386
  children: [
387
- a ? /* @__PURE__ */ o("span", { className: H["menu-item-icon"], children: a }) : null,
388
- /* @__PURE__ */ o("span", { className: H["menu-item-label"], children: r }),
389
- s ? /* @__PURE__ */ o("span", { className: H["menu-item-icon"], children: s }) : null
387
+ a ? /* @__PURE__ */ s("span", { className: G["menu-item-icon"], children: a }) : null,
388
+ /* @__PURE__ */ s("span", { className: G["menu-item-label"], children: r }),
389
+ o ? /* @__PURE__ */ s("span", { className: G["menu-item-icon"], children: o }) : null
390
390
  ]
391
391
  }
392
392
  );
393
393
  }
394
394
  );
395
- ye.displayName = "Menu.Item";
396
- const _ = Q;
397
- _.Item = ye;
398
- const ve = A(void 0);
399
- function fe() {
400
- const e = R(ve);
395
+ pe.displayName = "Menu.Item";
396
+ const j = V;
397
+ j.Item = pe;
398
+ const be = x(void 0);
399
+ function Ne() {
400
+ const e = F(be);
401
401
  if (!e)
402
402
  throw new Error("useTableProvider must be used within a Table component");
403
403
  return e;
404
404
  }
405
- const he = n(
406
- ({ leftContent: e, rightContent: t, className: a, ...s }, r) => {
407
- const i = fe(), l = typeof e == "function" ? e(i.selectedRows) : e, m = typeof t == "function" ? t(i.selectedRows) : t;
408
- return /* @__PURE__ */ y("div", { ref: r, className: d(B.toolbar, a), ...s, children: [
409
- /* @__PURE__ */ o("div", { children: l }),
410
- /* @__PURE__ */ o("div", { children: m })
405
+ const ye = n(
406
+ ({ leftContent: e, rightContent: t, className: a, ...o }, r) => {
407
+ const i = Ne(), l = typeof e == "function" ? e(i.selectedRows) : e, d = typeof t == "function" ? t(i.selectedRows) : t;
408
+ return /* @__PURE__ */ b("div", { ref: r, className: c(S.toolbar, a), ...o, children: [
409
+ /* @__PURE__ */ s("div", { children: l }),
410
+ /* @__PURE__ */ s("div", { children: d })
411
411
  ] });
412
412
  }
413
413
  );
414
- he.displayName = "Table.Toolbar";
415
- const ge = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.header, e), ...t }));
416
- ge.displayName = "Table.Header";
417
- const Te = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.body, e), ...t }));
418
- Te.displayName = "Table.Body";
419
- const Se = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.footer, e), ...t }));
420
- Se.displayName = "Table.Footer";
421
- const we = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.row, e), ...t }));
422
- we.displayName = "Table.Row";
423
- const Be = n(
424
- ({ as: e = "div", area: t, variant: a, className: s, style: r, ...i }, l) => {
425
- const m = v({
414
+ ye.displayName = "Table.Toolbar";
415
+ const ve = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(S.header, e), ...t }));
416
+ ve.displayName = "Table.Header";
417
+ const he = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(S.body, e), ...t }));
418
+ he.displayName = "Table.Body";
419
+ const fe = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(S.footer, e), ...t }));
420
+ fe.displayName = "Table.Footer";
421
+ const ge = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(S.row, e), ...t }));
422
+ ge.displayName = "Table.Row";
423
+ const Te = n(
424
+ ({ as: e = "div", area: t, variant: a, className: o, style: r, ...i }, l) => {
425
+ const d = v({
426
426
  variant: a
427
427
  });
428
- return /* @__PURE__ */ o(
428
+ return /* @__PURE__ */ s(
429
429
  e,
430
430
  {
431
431
  ref: l,
432
- className: d(B.col, s),
432
+ className: c(S.col, o),
433
433
  style: {
434
434
  "--_area": t,
435
435
  ...r
436
436
  },
437
- ...m,
437
+ ...d,
438
438
  ...i
439
439
  }
440
440
  );
441
441
  }
442
442
  );
443
- Be.displayName = "Table.Col";
444
- const Ae = n(
445
- ({ rowId: e, isMain: t = !1, checked: a, indeterminate: s, onChange: r }, i) => {
446
- const l = fe(), m = t ? l.selectedRows.size === l.allRowIds.size && l.allRowIds.size > 0 : e !== void 0 && l.selectedRows.has(e);
443
+ Te.displayName = "Table.Col";
444
+ const Se = n(
445
+ ({ rowId: e, isMain: t = !1, checked: a, indeterminate: o, onChange: r }, i) => {
446
+ const l = Ne(), d = t ? l.selectedRows.size === l.allRowIds.size && l.allRowIds.size > 0 : e !== void 0 && l.selectedRows.has(e);
447
447
  !t && e !== void 0 && l.registerRowId(e);
448
448
  const u = (p) => {
449
449
  t ? l.onSelectAll(Array.from(l.allRowIds), p.target.checked) : e !== void 0 && l.onSelectionChange(e, p.target.checked), r == null || r(p.target.checked);
450
- }, c = t && l.selectedRows.size > 0 && l.selectedRows.size < l.allRowIds.size;
451
- return /* @__PURE__ */ y("label", { className: k.checkbox, children: [
452
- /* @__PURE__ */ o(
450
+ }, m = t && l.selectedRows.size > 0 && l.selectedRows.size < l.allRowIds.size;
451
+ return /* @__PURE__ */ b("label", { className: $.checkbox, children: [
452
+ /* @__PURE__ */ s(
453
453
  "input",
454
454
  {
455
455
  ref: (p) => {
456
- p && (p.indeterminate = c || s || !1, typeof i == "function" ? i(p) : i && (i.current = p));
456
+ p && (p.indeterminate = m || o || !1, typeof i == "function" ? i(p) : i && (i.current = p));
457
457
  },
458
458
  type: "checkbox",
459
- className: k.input,
460
- checked: a !== void 0 ? a : m,
459
+ className: $.input,
460
+ checked: a !== void 0 ? a : d,
461
461
  onChange: u,
462
462
  "aria-label": t ? "Select all rows" : `Select row ${e}`
463
463
  }
464
464
  ),
465
- /* @__PURE__ */ o("span", { className: k.indicator })
465
+ /* @__PURE__ */ s("span", { className: $.indicator })
466
466
  ] });
467
467
  }
468
468
  );
469
- Ae.displayName = "Table.Checkbox";
470
- const Re = n(
471
- ({ as: e = "div", title: t, subtitle: a, size: s = "md", className: r, ...i }, l) => /* @__PURE__ */ y(e, { ref: l, className: d(B.col, r), "data-variant": "double-line", ...i, children: [
472
- /* @__PURE__ */ o("div", { className: B["double-line-title"], "data-size": s, children: t }),
473
- /* @__PURE__ */ o("div", { className: B["double-line-subtitle"], "data-size": s, children: a })
469
+ Se.displayName = "Table.Checkbox";
470
+ const Be = n(
471
+ ({ as: e = "div", title: t, subtitle: a, size: o = "md", className: r, ...i }, l) => /* @__PURE__ */ b(e, { ref: l, className: c(S.col, r), "data-variant": "double-line", ...i, children: [
472
+ /* @__PURE__ */ s("div", { className: S["double-line-title"], "data-size": o, children: t }),
473
+ /* @__PURE__ */ s("div", { className: S["double-line-subtitle"], "data-size": o, children: a })
474
474
  ] })
475
475
  );
476
- Re.displayName = "Table.DoubleLine";
477
- const Ie = _.Item;
478
- Ie.displayName = "Table.ActionItem";
479
- const Le = n(({ icon: e, children: t }, a) => {
480
- const s = O(), r = _.getTriggerProps({ id: s });
481
- return /* @__PURE__ */ y("div", { ref: a, className: d(B.action), children: [
482
- /* @__PURE__ */ o(
483
- V,
476
+ Be.displayName = "Table.DoubleLine";
477
+ const Ae = j.Item;
478
+ Ae.displayName = "Table.ActionItem";
479
+ const Re = n(({ icon: e, children: t }, a) => {
480
+ const o = q(), r = j.getTriggerProps({ id: o });
481
+ return /* @__PURE__ */ b("div", { ref: a, className: c(S.action), children: [
482
+ /* @__PURE__ */ s(
483
+ E,
484
484
  {
485
485
  ...r,
486
486
  as: e,
487
487
  variant: "ghost",
488
- className: d(B["action-trigger"]),
488
+ className: c(S["action-trigger"]),
489
489
  "aria-label": "Actions",
490
490
  onClick: (i) => {
491
491
  i.stopPropagation();
@@ -493,84 +493,84 @@ const Le = n(({ icon: e, children: t }, a) => {
493
493
  size: "small"
494
494
  }
495
495
  ),
496
- /* @__PURE__ */ o(_, { id: s, placement: "bottom", closeOnClick: !0, children: t })
496
+ /* @__PURE__ */ s(j, { id: o, placement: "bottom", closeOnClick: !0, children: t })
497
497
  ] });
498
498
  });
499
- Le.displayName = "Table.Action";
500
- const xe = n(({ columns: e, children: t, className: a, style: s, onSelectionChange: r, ...i }, l) => {
501
- const [m, u] = P(/* @__PURE__ */ new Set()), c = M(/* @__PURE__ */ new Set()), p = (f, h) => {
502
- const g = new Set(m);
503
- h ? g.add(f) : g.delete(f), u(g), r == null || r({
504
- selected: g,
505
- allSelected: g.size === c.current.size && c.current.size > 0,
506
- someSelected: g.size > 0
499
+ Re.displayName = "Table.Action";
500
+ const we = n(({ columns: e, children: t, className: a, style: o, onSelectionChange: r, ...i }, l) => {
501
+ const [d, u] = H(/* @__PURE__ */ new Set()), m = z(/* @__PURE__ */ new Set()), p = (f, g) => {
502
+ const T = new Set(d);
503
+ g ? T.add(f) : T.delete(f), u(T), r == null || r({
504
+ selected: T,
505
+ allSelected: T.size === m.current.size && m.current.size > 0,
506
+ someSelected: T.size > 0
507
507
  });
508
- }, N = (f, h) => {
509
- const g = h ? new Set(f) : /* @__PURE__ */ new Set();
510
- u(g), r == null || r({
511
- selected: g,
512
- allSelected: h,
513
- someSelected: h
508
+ }, N = (f, g) => {
509
+ const T = g ? new Set(f) : /* @__PURE__ */ new Set();
510
+ u(T), r == null || r({
511
+ selected: T,
512
+ allSelected: g,
513
+ someSelected: g
514
514
  });
515
- }, b = (f) => {
516
- c.current.add(f);
517
- }, S = {
518
- selectedRows: m,
519
- allRowIds: c.current,
515
+ }, h = (f) => {
516
+ m.current.add(f);
517
+ }, B = {
518
+ selectedRows: d,
519
+ allRowIds: m.current,
520
520
  onSelectionChange: p,
521
521
  onSelectAll: N,
522
- registerRowId: b
522
+ registerRowId: h
523
523
  };
524
- return /* @__PURE__ */ o(ve.Provider, { value: S, children: /* @__PURE__ */ o(
524
+ return /* @__PURE__ */ s(be.Provider, { value: B, children: /* @__PURE__ */ s(
525
525
  "div",
526
526
  {
527
527
  ref: l,
528
- className: d(B.table, a),
528
+ className: c(S.table, a),
529
529
  style: {
530
530
  "--_columns": e,
531
- ...s
531
+ ...o
532
532
  },
533
533
  ...i,
534
534
  children: t
535
535
  }
536
536
  ) });
537
537
  });
538
- xe.displayName = "Table";
539
- const pa = Object.assign(xe, {
540
- Toolbar: he,
541
- Header: ge,
542
- Body: Te,
543
- Footer: Se,
544
- Row: we,
545
- Col: Be,
546
- Checkbox: Ae,
547
- DoubleLine: Re,
548
- Action: Le,
549
- ActionItem: Ie
550
- }), Xt = n(
538
+ we.displayName = "Table";
539
+ const ea = Object.assign(we, {
540
+ Toolbar: ye,
541
+ Header: ve,
542
+ Body: he,
543
+ Footer: fe,
544
+ Row: ge,
545
+ Col: Te,
546
+ Checkbox: Se,
547
+ DoubleLine: Be,
548
+ Action: Re,
549
+ ActionItem: Ae
550
+ }), Gt = n(
551
551
  ({
552
552
  gap: e = "md",
553
553
  direction: t = "horizontal",
554
554
  align: a = "center",
555
- wrap: s = "nowrap",
555
+ wrap: o = "nowrap",
556
556
  fluid: r = !1,
557
557
  "aria-label": i = "Button group",
558
558
  children: l,
559
- className: m,
559
+ className: d,
560
560
  ...u
561
- }, c) => {
561
+ }, m) => {
562
562
  const p = v({
563
563
  align: a,
564
564
  direction: t,
565
565
  fluid: r,
566
566
  gap: e,
567
- wrap: s
567
+ wrap: o
568
568
  });
569
- return /* @__PURE__ */ o(
569
+ return /* @__PURE__ */ s(
570
570
  "div",
571
571
  {
572
- ref: c,
573
- className: d(At["button-group"], m),
572
+ ref: m,
573
+ className: c(bt["button-group"], d),
574
574
  role: "group",
575
575
  "aria-label": i,
576
576
  ...p,
@@ -580,572 +580,353 @@ const pa = Object.assign(xe, {
580
580
  );
581
581
  }
582
582
  );
583
- Xt.displayName = "ButtonGroup";
584
- const Fe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar"], t), ...a, children: e }));
585
- Fe.displayName = "TopBar";
586
- const De = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-leading"], t), ...a, children: e }));
587
- De.displayName = "TopBar.Leading";
588
- const Me = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-centred"], t), ...a, children: e }));
589
- Me.displayName = "TopBar.Centred";
590
- const He = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-trailing"], t), ...a, children: e }));
591
- He.displayName = "TopBar.Trailing";
592
- const Ge = n(
593
- ({ as: e = "button", active: t, disabled: a, icon: s, className: r, children: i, ...l }, m) => /* @__PURE__ */ y(
583
+ Gt.displayName = "ButtonGroup";
584
+ const Ie = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: c(R["top-bar"], t), ...a, children: e }));
585
+ Ie.displayName = "TopBar";
586
+ const Le = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: c(R["top-bar-leading"], t), ...a, children: e }));
587
+ Le.displayName = "TopBar.Leading";
588
+ const xe = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: c(R["top-bar-centred"], t), ...a, children: e }));
589
+ xe.displayName = "TopBar.Centred";
590
+ const Fe = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: c(R["top-bar-trailing"], t), ...a, children: e }));
591
+ Fe.displayName = "TopBar.Trailing";
592
+ const Ce = n(
593
+ ({ as: e = "button", active: t, disabled: a, icon: o, className: r, children: i, ...l }, d) => /* @__PURE__ */ b(
594
594
  e,
595
595
  {
596
- ref: m,
597
- className: d(L["top-bar-item"], r),
596
+ ref: d,
597
+ className: c(R["top-bar-item"], r),
598
598
  "data-active": t ? "" : void 0,
599
599
  "data-disabled": a ? "" : void 0,
600
600
  ...l,
601
601
  children: [
602
- s && /* @__PURE__ */ o("span", { className: L["top-bar-item-icon"], children: s }),
602
+ o && /* @__PURE__ */ s("span", { className: R["top-bar-item-icon"], children: o }),
603
603
  i
604
604
  ]
605
605
  }
606
606
  )
607
607
  );
608
- Ge.displayName = "TopBar.Item";
609
- const Pe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-list-item"], t), ...a, children: e }));
610
- Pe.displayName = "TopBar.ListItem";
611
- const ba = Object.assign(Fe, {
612
- Centred: Me,
613
- Item: Ge,
614
- Leading: De,
615
- ListItem: Pe,
616
- Trailing: He
617
- }), ze = A(void 0), U = n(
618
- ({ direction: e = "horizontal", gap: t, value: a, onChange: s, children: r, className: i, ...l }, m) => {
619
- const u = v({ direction: e }), c = {
620
- lg: "var(--spacing-4)",
621
- md: "var(--spacing-3)",
622
- sm: "var(--spacing-2)",
623
- xs: "var(--spacing-1)"
624
- }, p = {
625
- onChange: s,
626
- value: a
627
- };
628
- return /* @__PURE__ */ o(ze.Provider, { value: p, children: /* @__PURE__ */ o(
629
- "nav",
630
- {
631
- ref: m,
632
- className: d(j.nav, i),
633
- style: {
634
- ...t && {
635
- "--vers-comp-nav-gap": c[t]
636
- }
637
- },
638
- ...u,
639
- ...l,
640
- children: r
641
- }
642
- ) });
643
- }
644
- );
645
- U.displayName = "Nav";
646
- U.displayName = "Nav";
608
+ Ce.displayName = "TopBar.Item";
609
+ const Ge = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: c(R["top-bar-list-item"], t), ...a, children: e }));
610
+ Ge.displayName = "TopBar.ListItem";
611
+ const ta = Object.assign(Ie, {
612
+ Centred: xe,
613
+ Item: Ce,
614
+ Leading: Le,
615
+ ListItem: Ge,
616
+ Trailing: Fe
617
+ }), Me = n(({ children: e, className: t }, a) => /* @__PURE__ */ s("aside", { ref: a, className: c(y.sidebar, t), children: e }));
618
+ Me.displayName = "Sidebar";
619
+ const ze = n(({ children: e, className: t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(y["sidebar-header"], t), children: e }));
620
+ ze.displayName = "Sidebar.Header";
621
+ const He = n(({ children: e, className: t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(y["sidebar-body"], t), children: e }));
622
+ He.displayName = "Sidebar.Body";
623
+ const Pe = n(({ children: e, className: t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(y["sidebar-footer"], t), children: e }));
624
+ Pe.displayName = "Sidebar.Footer";
647
625
  const je = n(
648
- ({
649
- as: e = "button",
650
- active: t = !1,
651
- value: a,
652
- disabled: s = !1,
653
- loading: r = !1,
654
- leftIcon: i,
655
- rightIcon: l,
656
- children: m,
657
- onClick: u,
658
- className: c,
659
- ...p
660
- }, N) => {
661
- const b = R(ze), S = b != null && b.onChange && a !== void 0 ? b.value === a : t, f = v({
662
- active: S,
663
- disabled: s || r,
664
- loading: r
665
- }), h = (g) => {
666
- if (s || r) {
667
- g.preventDefault();
668
- return;
669
- }
670
- b != null && b.onChange && a !== void 0 && b.onChange(a), u == null || u(g);
671
- };
672
- return /* @__PURE__ */ y(
673
- e,
674
- {
675
- ref: N,
676
- className: d(j["nav-item"], c),
677
- "aria-current": S && e !== "button" ? "page" : void 0,
678
- "aria-disabled": s || r ? "true" : void 0,
679
- "aria-busy": r ? "true" : void 0,
680
- ...f,
681
- ...p,
682
- onClick: h,
683
- children: [
684
- i && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: i }) }),
685
- m,
686
- l && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: l }) })
687
- ]
688
- }
689
- );
690
- }
691
- );
692
- je.displayName = "NavItem";
693
- const Na = Object.assign(U, {
694
- Item: je
695
- }), $e = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(T.sidebar, t), children: e }));
696
- $e.displayName = "Sidebar";
697
- const Ee = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-header"], t), children: e }));
698
- Ee.displayName = "Sidebar.Header";
699
- const _e = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-body"], t), children: e }));
700
- _e.displayName = "Sidebar.Body";
701
- const Ce = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-footer"], t), children: e }));
702
- Ce.displayName = "Sidebar.Footer";
703
- const Ve = n(
704
- ({ label: e, icon: t, defaultExpanded: a = !0, isExpanded: s, onExpandedChange: r, children: i, className: l }, m) => {
705
- const [u, c] = P(a), p = s !== void 0 ? s : u, N = () => {
706
- const b = !p;
707
- c(b), r == null || r(b);
626
+ ({ label: e, icon: t, defaultExpanded: a = !0, isExpanded: o, onExpandedChange: r, children: i, className: l }, d) => {
627
+ const [u, m] = H(a), p = o !== void 0 ? o : u, N = () => {
628
+ const h = !p;
629
+ m(h), r == null || r(h);
708
630
  };
709
- return /* @__PURE__ */ y(
631
+ return /* @__PURE__ */ b(
710
632
  "div",
711
633
  {
712
- ref: m,
713
- className: d(T["sidebar-group"], l),
634
+ ref: d,
635
+ className: c(y["sidebar-group"], l),
714
636
  "data-expanded": p ? "" : void 0,
715
637
  children: [
716
- /* @__PURE__ */ y("button", { className: T["sidebar-group-header"], onClick: N, "aria-expanded": p, children: [
717
- t && /* @__PURE__ */ o("span", { children: t }),
718
- /* @__PURE__ */ o("span", { className: T["sidebar-group-label"], children: e }),
719
- /* @__PURE__ */ o(E, { as: Z, className: T["sidebar-group-chevron"], size: "sm" })
638
+ /* @__PURE__ */ b("button", { className: y["sidebar-group-header"], onClick: N, "aria-expanded": p, children: [
639
+ t && /* @__PURE__ */ s("span", { children: t }),
640
+ /* @__PURE__ */ s("span", { className: y["sidebar-group-label"], children: e }),
641
+ /* @__PURE__ */ s(J, { as: W, className: y["sidebar-group-chevron"], size: "sm" })
720
642
  ] }),
721
- /* @__PURE__ */ o("div", { className: T["sidebar-group-content"], children: /* @__PURE__ */ o("div", { children: i }) })
643
+ /* @__PURE__ */ s("div", { className: y["sidebar-group-content"], children: /* @__PURE__ */ s("div", { children: i }) })
722
644
  ]
723
645
  }
724
646
  );
725
647
  }
726
648
  );
727
- Ve.displayName = "Sidebar.Group";
728
- const ke = n(
729
- ({ as: e = "button", active: t, disabled: a, icon: s, action: r, className: i, children: l, ...m }, u) => /* @__PURE__ */ y(
649
+ je.displayName = "Sidebar.Group";
650
+ const De = n(
651
+ ({ as: e = "button", active: t, disabled: a, icon: o, action: r, className: i, children: l, ...d }, u) => /* @__PURE__ */ b(
730
652
  e,
731
653
  {
732
654
  ref: u,
733
- className: d(T["sidebar-item"], i),
655
+ className: c(y["sidebar-item"], i),
734
656
  "data-active": t ? "" : void 0,
735
657
  "data-disabled": a ? "" : void 0,
736
658
  "data-action": r ? "" : void 0,
737
- ...m,
659
+ ...d,
738
660
  children: [
739
- s && /* @__PURE__ */ o("span", { className: T["sidebar-item-icon"], children: s }),
740
- /* @__PURE__ */ o("span", { className: T["sidebar-item-text"], children: l }),
741
- r && /* @__PURE__ */ o("span", { className: T["sidebar-item-action"], children: r })
661
+ o && /* @__PURE__ */ s("span", { className: y["sidebar-item-icon"], children: o }),
662
+ /* @__PURE__ */ s("span", { className: y["sidebar-item-text"], children: l }),
663
+ r && /* @__PURE__ */ s("span", { className: y["sidebar-item-action"], children: r })
742
664
  ]
743
665
  }
744
666
  )
745
667
  );
746
- ke.displayName = "Sidebar.Item";
747
- const We = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-item-list"], t), children: e }));
748
- We.displayName = "Sidebar.ItemList";
749
- const Xe = n(({ className: e }, t) => /* @__PURE__ */ o("div", { ref: t, className: d(T["sidebar-divider"], e), children: /* @__PURE__ */ o(Mt, {}) }));
750
- Xe.displayName = "Sidebar.Divider";
751
- const ya = Object.assign($e, {
752
- Body: _e,
753
- Divider: Xe,
754
- Footer: Ce,
755
- Group: Ve,
756
- Header: Ee,
757
- Item: ke,
758
- ItemList: We
668
+ De.displayName = "Sidebar.Item";
669
+ const $e = n(({ children: e, className: t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(y["sidebar-item-list"], t), children: e }));
670
+ $e.displayName = "Sidebar.ItemList";
671
+ const Oe = n(({ className: e }, t) => /* @__PURE__ */ s("div", { ref: t, className: c(y["sidebar-divider"], e), children: /* @__PURE__ */ s(ht, {}) }));
672
+ Oe.displayName = "Sidebar.Divider";
673
+ const aa = Object.assign(Me, {
674
+ Body: He,
675
+ Divider: Oe,
676
+ Footer: Pe,
677
+ Group: je,
678
+ Header: ze,
679
+ Item: De,
680
+ ItemList: $e
759
681
  });
760
- function qt(e, t) {
682
+ function Mt(e, t) {
761
683
  return e === t;
762
684
  }
763
- const qe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("nav", { ref: s, className: d($["bottom-bar"], t), ...a, children: e }));
764
- qe.displayName = "BottomBar";
765
- const Je = n(
766
- ({ as: e = "button", href: t, active: a = !1, disabled: s = !1, icon: r, children: i, onClick: l, className: m, ...u }, c) => {
767
- const p = qt(e, "a"), N = v({
685
+ const ke = n(({ children: e, className: t, ...a }, o) => /* @__PURE__ */ s("nav", { ref: o, className: c(P["bottom-bar"], t), ...a, children: e }));
686
+ ke.displayName = "BottomBar";
687
+ const _e = n(
688
+ ({ as: e = "button", href: t, active: a = !1, disabled: o = !1, icon: r, children: i, onClick: l, className: d, ...u }, m) => {
689
+ const p = Mt(e, "a"), N = v({
768
690
  active: a,
769
- disabled: s
770
- }), b = (h) => {
771
- if (s) {
772
- h.preventDefault();
691
+ disabled: o
692
+ }), h = (g) => {
693
+ if (o) {
694
+ g.preventDefault();
773
695
  return;
774
696
  }
775
- l == null || l(h);
776
- }, S = {
777
- className: d($["bottom-bar-item"], m),
778
- onClick: b,
779
- ref: c,
697
+ l == null || l(g);
698
+ }, B = {
699
+ className: c(P["bottom-bar-item"], d),
700
+ onClick: h,
701
+ ref: m,
780
702
  ...N,
781
703
  ...u
782
704
  };
783
- return p && (S.href = t), /* @__PURE__ */ y(e || "button", { ...S, children: [
784
- r && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-icon"], children: r }),
785
- i && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-text"], children: i })
705
+ return p && (B.href = t), /* @__PURE__ */ b(e || "button", { ...B, children: [
706
+ r && /* @__PURE__ */ s("span", { className: P["bottom-bar-item-icon"], children: r }),
707
+ i && /* @__PURE__ */ s("span", { className: P["bottom-bar-item-text"], children: i })
786
708
  ] });
787
709
  }
788
710
  );
789
- Je.displayName = "BottomBar.Item";
790
- const va = Object.assign(qe, {
791
- Item: Je
792
- }), Ke = n(
793
- ({ className: e, children: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(x["app-layout"], e), children: t })
794
- );
795
- Ke.displayName = "AppLayout";
796
- const Qe = n(
797
- ({ centered: e, className: t, children: a }, s) => {
798
- const r = v({
799
- centered: e
800
- });
801
- return /* @__PURE__ */ o("div", { ref: s, className: d(x["app-layout-body"], t), ...r, children: a });
802
- }
803
- );
804
- Qe.displayName = "AppLayout.Body";
805
- const Ue = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("header", { ref: a, className: d(x["app-layout-header"], e), children: t }));
806
- Ue.displayName = "AppLayout.Header";
807
- const Ye = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("main", { ref: a, className: d(x["app-layout-main"], e), children: t }));
808
- Ye.displayName = "AppLayout.Main";
809
- const Ze = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(x["app-layout-side-left"], e), children: t }));
810
- Ze.displayName = "AppLayout.SideLeft";
811
- const Oe = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(x["app-layout-side-right"], e), children: t }));
812
- Oe.displayName = "AppLayout.SideRight";
813
- const et = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("footer", { ref: a, className: d(x["app-layout-footer"], e), children: t }));
814
- et.displayName = "AppLayout.Footer";
815
- const fa = Object.assign(Ke, {
816
- Body: Qe,
817
- Footer: et,
818
- Header: Ue,
819
- Main: Ye,
820
- SideLeft: Ze,
821
- SideRight: Oe
711
+ _e.displayName = "BottomBar.Item";
712
+ const sa = Object.assign(ke, {
713
+ Item: _e
714
+ }), Ee = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("div", { ref: a, className: c(w["app-layout"], e), children: t }));
715
+ Ee.displayName = "AppLayout";
716
+ const Ve = n(({ centered: e, className: t, children: a }, o) => {
717
+ const r = v({
718
+ centered: e
719
+ });
720
+ return /* @__PURE__ */ s("div", { ref: o, className: c(w["app-layout-body"], t), ...r, children: a });
721
+ });
722
+ Ve.displayName = "AppLayout.Body";
723
+ const We = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("header", { ref: a, className: c(w["app-layout-header"], e), children: t }));
724
+ We.displayName = "AppLayout.Header";
725
+ const Xe = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("main", { ref: a, className: c(w["app-layout-main"], e), children: t }));
726
+ Xe.displayName = "AppLayout.Main";
727
+ const qe = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("aside", { ref: a, className: c(w["app-layout-side-left"], e), children: t }));
728
+ qe.displayName = "AppLayout.SideLeft";
729
+ const Je = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("aside", { ref: a, className: c(w["app-layout-side-right"], e), children: t }));
730
+ Je.displayName = "AppLayout.SideRight";
731
+ const Ke = n(({ className: e, children: t }, a) => /* @__PURE__ */ s("footer", { ref: a, className: c(w["app-layout-footer"], e), children: t }));
732
+ Ke.displayName = "AppLayout.Footer";
733
+ const oa = Object.assign(Ee, {
734
+ Body: Ve,
735
+ Footer: Ke,
736
+ Header: We,
737
+ Main: Xe,
738
+ SideLeft: qe,
739
+ SideRight: Je
822
740
  });
823
- function Jt({ columns: e = "1fr", children: t, className: a, style: s, ...r }, i) {
824
- return /* @__PURE__ */ o(
741
+ function zt({ columns: e = "1fr", children: t, className: a, style: o, ...r }, i) {
742
+ return /* @__PURE__ */ s(
825
743
  "form",
826
744
  {
827
745
  ref: i,
828
- className: d(X["form-group"], a),
746
+ className: c(_["form-group"], a),
829
747
  style: {
830
748
  "--_columns": e,
831
- ...s
749
+ ...o
832
750
  },
833
751
  ...r,
834
752
  children: t
835
753
  }
836
754
  );
837
755
  }
838
- const tt = n(Jt);
839
- tt.displayName = "FormGroup";
840
- const at = n(
841
- ({ area: e, children: t, className: a, style: s, ...r }, i) => /* @__PURE__ */ o(
756
+ const Qe = n(zt);
757
+ Qe.displayName = "FormGroup";
758
+ const Ue = n(
759
+ ({ area: e, children: t, className: a, style: o, ...r }, i) => /* @__PURE__ */ s(
842
760
  "div",
843
761
  {
844
762
  ref: i,
845
- className: d(X.field, a),
763
+ className: c(_.field, a),
846
764
  style: {
847
765
  "--_area": e,
848
- ...s
766
+ ...o
849
767
  },
850
768
  ...r,
851
769
  children: t
852
770
  }
853
771
  )
854
772
  );
855
- at.displayName = "FormGroup.Field";
856
- const st = n(
857
- ({ className: e, ...t }, a) => /* @__PURE__ */ o(
858
- "hr",
859
- {
860
- ref: a,
861
- className: d(X.separator, e),
862
- ...t
863
- }
864
- )
865
- );
866
- st.displayName = "FormGroup.Separator";
867
- const ha = Object.assign(tt, {
868
- Field: at,
869
- Separator: st
773
+ Ue.displayName = "FormGroup.Field";
774
+ const Ye = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("hr", { ref: a, className: c(_.separator, e), ...t }));
775
+ Ye.displayName = "FormGroup.Separator";
776
+ const ra = Object.assign(Qe, {
777
+ Field: Ue,
778
+ Separator: Ye
870
779
  });
871
- function Kt({ direction: e = "column", children: t, className: a, ...s }, r) {
872
- return /* @__PURE__ */ o(
873
- "ul",
874
- {
875
- ref: r,
876
- className: d(W.features, a),
877
- "data-direction": e,
878
- ...s,
879
- children: t
880
- }
881
- );
780
+ function Ht({ direction: e = "column", children: t, className: a, ...o }, r) {
781
+ return /* @__PURE__ */ s("ul", { ref: r, className: c(O.features, a), "data-direction": e, ...o, children: t });
882
782
  }
883
- const ot = n(Kt);
884
- ot.displayName = "Features";
885
- const rt = n(
886
- ({ icon: e, children: t, className: a, "aria-label": s, ...r }, i) => {
887
- const m = `features-item-${O()}`, u = s ? I.getTooltipTriggerProps({ id: m }) : {};
888
- return /* @__PURE__ */ y(
889
- "li",
890
- {
891
- ref: i,
892
- "aria-label": s,
893
- className: d(W.item, a),
894
- ...u,
895
- ...r,
896
- children: [
897
- e && /* @__PURE__ */ o("span", { className: W.icon, children: e }),
898
- t,
899
- s && /* @__PURE__ */ o(I, { id: m, children: /* @__PURE__ */ o(I.Text, { children: s }) })
900
- ]
901
- }
902
- );
903
- }
904
- );
905
- rt.displayName = "Features.Item";
906
- const Qt = Object.assign(ot, {
907
- Item: rt
908
- }), ga = Qt, it = xt.forwardRef(
909
- ({ isOpen: e, onOpenChange: t, children: a, onClick: s, ...r }, i) => {
910
- const l = M(null), m = i || l;
911
- z(() => {
912
- const c = m.current;
913
- if (c) {
914
- if (e)
915
- try {
916
- c.showModal(), document.documentElement.style.overflow = "hidden";
917
- } catch {
918
- }
919
- else
920
- c.close(), document.documentElement.style.overflow = "";
921
- return () => {
922
- document.documentElement.style.overflow = "";
923
- };
924
- }
925
- }, [e, m]), z(() => {
926
- const c = m.current;
927
- if (!c)
928
- return;
929
- const p = () => t == null ? void 0 : t(!1), N = (b) => {
930
- b.preventDefault(), t == null || t(!1);
931
- };
932
- return c.addEventListener("close", p), c.addEventListener("cancel", N), () => {
933
- c.removeEventListener("close", p), c.removeEventListener("cancel", N);
934
- };
935
- }, [t, m]);
936
- const u = Dt(
937
- (c) => {
938
- c.target === c.currentTarget && (t == null || t(!1)), s == null || s(c);
939
- },
940
- [t, s]
941
- );
942
- return /* @__PURE__ */ o("dialog", { ...r, ref: m, onClick: u, children: a });
943
- }
944
- );
945
- it.displayName = "Dialog";
946
- const Y = it, lt = A(void 0), Ut = () => {
947
- const e = R(lt);
948
- if (!e)
949
- throw new Error("Drawer subcomponents must be used within Drawer");
950
- return e;
951
- }, ct = n(
952
- ({ open: e, onOpenChange: t, placement: a = "right", children: s, className: r, ...i }, l) => {
953
- const m = v({
954
- placement: a
955
- });
956
- return /* @__PURE__ */ o(lt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
957
- Y,
958
- {
959
- ref: l,
960
- isOpen: e,
961
- onOpenChange: t,
962
- className: d(e && Rt.drawer, r),
963
- ...m,
964
- ...i,
965
- children: /* @__PURE__ */ o("div", { className: w.content, children: s })
966
- }
967
- ) });
783
+ const Ze = n(Ht);
784
+ Ze.displayName = "Features";
785
+ const et = n(
786
+ ({ icon: e, children: t, className: a, "aria-label": o, ...r }, i) => {
787
+ const d = `features-item-${q()}`, u = o ? A.getTooltipTriggerProps({ id: d }) : {};
788
+ return /* @__PURE__ */ b("li", { ref: i, "aria-label": o, className: c(O.item, a), ...u, ...r, children: [
789
+ e && /* @__PURE__ */ s("span", { className: O.icon, children: e }),
790
+ t,
791
+ o && /* @__PURE__ */ s(A, { id: d, children: /* @__PURE__ */ s(A.Text, { children: o }) })
792
+ ] });
968
793
  }
969
794
  );
970
- ct.displayName = "Drawer";
971
- const nt = n(({ onClick: e, ...t }, a) => {
972
- const { onClose: s } = Ut();
973
- return /* @__PURE__ */ o(
974
- V,
975
- {
976
- ref: a,
977
- variant: "ghost",
978
- as: q,
979
- "aria-label": "Close",
980
- onClick: (i) => {
981
- s(), e == null || e(i);
982
- },
983
- className: w.closeButton,
984
- ...t
985
- }
986
- );
987
- });
988
- nt.displayName = "Drawer.CloseButton";
989
- const dt = n(
990
- ({ action: e, children: t, tabs: a, className: s, ...r }, i) => /* @__PURE__ */ y(
991
- "div",
992
- {
993
- ref: i,
994
- className: d(w.header, s),
995
- ...r,
996
- ...e && { "data-action": "" },
997
- ...a && { "data-tabs": "" },
998
- children: [
999
- e ? /* @__PURE__ */ y(Tt, { children: [
1000
- /* @__PURE__ */ o("div", { className: w.headerTop, children: e }),
1001
- t && /* @__PURE__ */ o("div", { className: w.headerContent, children: t })
1002
- ] }) : /* @__PURE__ */ o("div", { className: w.headerTop, children: t }),
1003
- a
1004
- ]
1005
- }
1006
- )
1007
- );
1008
- dt.displayName = "Drawer.Header";
1009
- const Ta = Object.assign(ct, {
1010
- Body: K,
1011
- CloseButton: nt,
1012
- Footer: te,
1013
- Header: dt,
1014
- Title: J
1015
- }), mt = A(void 0), Yt = () => {
1016
- const e = R(mt);
795
+ et.displayName = "Features.Item";
796
+ const Pt = Object.assign(Ze, {
797
+ Item: et
798
+ }), ia = Pt, tt = x(void 0), jt = () => {
799
+ const e = F(tt);
1017
800
  if (!e)
1018
801
  throw new Error("Modal subcomponents must be used within Modal");
1019
802
  return e;
1020
- }, ut = n(
1021
- ({ open: e, onOpenChange: t, size: a, position: s, children: r, className: i, ...l }, m) => {
1022
- const u = v({ size: a, position: s });
1023
- return /* @__PURE__ */ o(mt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
1024
- Y,
803
+ }, at = n(
804
+ ({ open: e, onOpenChange: t, size: a, position: o, children: r, className: i, ...l }, d) => {
805
+ const u = v({ size: a, position: o });
806
+ return /* @__PURE__ */ s(tt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ s(
807
+ Q,
1025
808
  {
1026
- ref: m,
809
+ ref: d,
1027
810
  isOpen: e,
1028
811
  onOpenChange: t,
1029
- className: d(e && It.modal, i),
812
+ className: c(e && Nt.modal, i),
1030
813
  "data-modal": "",
1031
814
  ...u,
1032
815
  ...l,
1033
- children: /* @__PURE__ */ o("div", { className: w.content, children: r })
816
+ children: /* @__PURE__ */ s("div", { className: C.content, children: r })
1034
817
  }
1035
818
  ) });
1036
819
  }
1037
820
  );
1038
- ut.displayName = "Modal";
1039
- const pt = n(({ onClick: e, ...t }, a) => {
1040
- const { onClose: s } = Yt();
1041
- return /* @__PURE__ */ o(
1042
- V,
821
+ at.displayName = "Modal";
822
+ const st = n(({ onClick: e, ...t }, a) => {
823
+ const { onClose: o } = jt();
824
+ return /* @__PURE__ */ s(
825
+ E,
1043
826
  {
1044
827
  ref: a,
1045
828
  variant: "ghost",
1046
- as: q,
829
+ as: X,
1047
830
  "aria-label": "Close",
1048
831
  onClick: (i) => {
1049
- s(), e == null || e(i);
832
+ o(), e == null || e(i);
1050
833
  },
1051
- className: w.closeButton,
834
+ className: C.closeButton,
1052
835
  ...t
1053
836
  }
1054
837
  );
1055
838
  });
1056
- pt.displayName = "Modal.CloseButton";
1057
- const bt = n(({ action: e, children: t, className: a, ...s }, r) => /* @__PURE__ */ y("div", { ref: r, className: d(w.header, "modal-header", a), "data-modal-header": "", ...s, children: [
1058
- /* @__PURE__ */ o("div", { children: t }),
1059
- e && /* @__PURE__ */ o("div", { className: "modal-header-action", children: e })
839
+ st.displayName = "Modal.CloseButton";
840
+ const ot = n(({ action: e, children: t, className: a, ...o }, r) => /* @__PURE__ */ b("div", { ref: r, className: c(C.header, "modal-header", a), "data-modal-header": "", ...o, children: [
841
+ /* @__PURE__ */ s("div", { children: t }),
842
+ e && /* @__PURE__ */ s("div", { className: "modal-header-action", children: e })
1060
843
  ] }));
1061
- bt.displayName = "Modal.Header";
1062
- const Nt = n(
1063
- ({ align: e = "end", children: t, className: a, ...s }, r) => /* @__PURE__ */ o(
844
+ ot.displayName = "Modal.Header";
845
+ const rt = n(
846
+ ({ align: e = "end", children: t, className: a, ...o }, r) => /* @__PURE__ */ s(
1064
847
  "div",
1065
848
  {
1066
849
  ref: r,
1067
- className: d(w.footer, "modal-footer", a),
850
+ className: c(C.footer, "modal-footer", a),
1068
851
  "data-modal-footer": "",
1069
852
  "data-align": e,
1070
- ...s,
853
+ ...o,
1071
854
  children: t
1072
855
  }
1073
856
  )
1074
857
  );
1075
- Nt.displayName = "Modal.Footer";
1076
- const Sa = Object.assign(ut, {
1077
- Body: K,
1078
- CloseButton: pt,
1079
- Footer: Nt,
1080
- Header: bt,
1081
- Title: J
1082
- }), yt = A(void 0), Zt = () => {
1083
- const e = R(yt);
858
+ rt.displayName = "Modal.Footer";
859
+ const la = Object.assign(at, {
860
+ Body: Y,
861
+ CloseButton: st,
862
+ Footer: rt,
863
+ Header: ot,
864
+ Title: U
865
+ }), it = x(void 0), Dt = () => {
866
+ const e = F(it);
1084
867
  if (!e)
1085
868
  throw new Error("BottomSheet subcomponents must be used within BottomSheet");
1086
869
  return e;
1087
- }, vt = n(
1088
- ({ open: e, onOpenChange: t, children: a, className: s, ...r }, i) => /* @__PURE__ */ o(yt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
1089
- Y,
870
+ }, lt = n(
871
+ ({ open: e, onOpenChange: t, children: a, className: o, ...r }, i) => /* @__PURE__ */ s(it.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ s(
872
+ Q,
1090
873
  {
1091
874
  ref: i,
1092
875
  isOpen: e,
1093
876
  onOpenChange: t,
1094
- className: d(Lt.bottomSheet, s),
877
+ className: c(yt.bottomSheet, o),
1095
878
  ...r,
1096
- children: /* @__PURE__ */ o("div", { className: w.content, children: a })
879
+ children: /* @__PURE__ */ s("div", { className: C.content, children: a })
1097
880
  }
1098
881
  ) })
1099
882
  );
1100
- vt.displayName = "BottomSheet";
1101
- const ft = n(
883
+ lt.displayName = "BottomSheet";
884
+ const nt = n(
1102
885
  ({ onClick: e, ...t }, a) => {
1103
- const { onClose: s } = Zt();
1104
- return /* @__PURE__ */ o(
1105
- V,
886
+ const { onClose: o } = Dt();
887
+ return /* @__PURE__ */ s(
888
+ E,
1106
889
  {
1107
- as: q,
890
+ as: X,
1108
891
  ref: a,
1109
892
  variant: "ghost",
1110
893
  "aria-label": "Close",
1111
894
  onClick: (i) => {
1112
- s(), e == null || e(i);
895
+ o(), e == null || e(i);
1113
896
  },
1114
- className: w.closeButton,
897
+ className: C.closeButton,
1115
898
  ...t
1116
899
  }
1117
900
  );
1118
901
  }
1119
902
  );
1120
- ft.displayName = "BottomSheet.CloseButton";
1121
- const wa = Object.assign(vt, {
1122
- Body: K,
1123
- CloseButton: ft,
1124
- Footer: te,
1125
- Header: Ht,
1126
- Title: J
903
+ nt.displayName = "BottomSheet.CloseButton";
904
+ const na = Object.assign(lt, {
905
+ Body: Y,
906
+ CloseButton: nt,
907
+ Footer: gt,
908
+ Header: ft,
909
+ Title: U
1127
910
  });
1128
911
  export {
1129
- na as Accordion,
1130
- fa as AppLayout,
1131
- ma as AttributeList,
1132
- zt as AvatarGroup,
1133
- Ct as BadgeGroup,
1134
- va as BottomBar,
1135
- wa as BottomSheet,
1136
- Xt as ButtonGroup,
1137
- ua as Card,
1138
- Y as Dialog,
1139
- Ta as Drawer,
1140
- ga as Features,
1141
- ha as FormGroup,
1142
- _ as Menu,
1143
- Sa as Modal,
1144
- Na as Nav,
1145
- je as NavItem,
1146
- _t as NoResults,
1147
- ya as Sidebar,
1148
- pa as Table,
1149
- da as Tabs,
1150
- ba as TopBar
912
+ Qt as Accordion,
913
+ oa as AppLayout,
914
+ Yt as AttributeList,
915
+ Bt as AvatarGroup,
916
+ Lt as BadgeGroup,
917
+ sa as BottomBar,
918
+ na as BottomSheet,
919
+ Gt as ButtonGroup,
920
+ Zt as Card,
921
+ Q as Dialog,
922
+ ma as Drawer,
923
+ ia as Features,
924
+ ra as FormGroup,
925
+ j as Menu,
926
+ la as Modal,
927
+ It as NoResults,
928
+ aa as Sidebar,
929
+ ea as Table,
930
+ Ut as Tabs,
931
+ ta as TopBar
1151
932
  };