@versaur/react 1.0.13 → 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 Bt, badgeGroupStyles as wt, cardStyles as C, menuStyles as H, tableStyles as w, 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-_eEMRSo8.js";
8
- import { checkboxStyles as k } from "@versaur/core/forms";
9
- import { overlayPartsStyles as B } 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, ...l }, i) {
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: i || 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
- ...l,
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 }, l) => {
48
- const { isOpen: i, 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
- ref: l,
55
- className: d(D.trigger, s),
56
- onClick: c,
56
+ ref: i,
57
+ className: c(L.trigger, o),
58
+ onClick: m,
57
59
  role: "button",
58
- "aria-expanded": i,
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
- children: l,
80
- className: i,
81
- ...m
81
+ children: i,
82
+ className: l,
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"], i),
90
+ className: c(mt["avatar-group"], l),
89
91
  role: "group",
90
92
  "aria-label": r,
91
- ...c,
92
93
  ...m,
93
- children: l
94
+ ...d,
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 le = n(({ value: e, onChange: t, children: a, className: s }, r) => {
117
- const l = M(null), i = M(/* @__PURE__ */ new Map()), [m, u] = P(0), [c, p] = P(0), N = () => {
118
- const f = i.current.get(e);
119
- if (!f || !l.current)
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 = () => {
120
+ const f = l.current.get(e);
121
+ if (!f || !i.current)
120
122
  return;
121
- const h = l.current.getBoundingClientRect(), g = f.getBoundingClientRect(), ht = g.left - h.left + l.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 && i.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(l, 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, l), 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
- le.displayName = "Tabs";
149
- const ie = n(
150
- ({ value: e, disabled: t = !1, children: a, className: s }, r) => {
151
- const { activeValue: l, onChange: i, registerTrigger: m } = $t(), u = l === 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
- t || i(e);
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,979 +173,760 @@ const ie = n(
171
173
  ) });
172
174
  }
173
175
  );
174
- ie.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(le, {
183
- Item: ie,
184
- getPanelAttribute: Et
185
- }), _t = n(
186
- ({ icon: e, title: t, subtitle: a, action: s, className: r, ...l }, i) => /* @__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
- ref: i,
190
- className: d(F["no-results"], r),
191
+ ref: l,
192
+ className: c(I["no-results"], r),
191
193
  role: "status",
192
194
  "aria-label": t,
193
- ...l,
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: l, ...i }, 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(Bt["attribute-list"], r),
216
+ ref: d,
217
+ className: c(ut["attribute-list"], r),
216
218
  ...u,
217
219
  style: {
218
220
  "--_columns": t,
219
221
  ...a !== void 0 && { "--_gap": typeof a == "number" ? `${a}px` : a },
220
- ...l
222
+ ...i
221
223
  },
222
- ...i,
223
- children: s
224
+ ...l,
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, ...l }, i) => /* @__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
- ref: i,
234
- className: d(s),
235
+ ref: l,
236
+ className: c(o),
235
237
  style: {
236
238
  "--_area": t,
237
239
  ...r
238
240
  },
239
- ...l,
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
- children: l,
258
- className: i,
259
- ...m
259
+ children: i,
260
+ className: l,
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(wt["badge-group"], i),
273
+ className: c(pt["badge-group"], l),
272
274
  role: "group",
273
275
  "aria-label": r,
274
- ...c,
275
276
  ...m,
276
- children: l
277
+ ...d,
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, ...l }, i) {
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: i, className: d(C.card, r), ...m, ...l, 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 }, l) => {
296
- const i = v({ gap: t, justify: e });
297
- return /* @__PURE__ */ o("div", { ref: l, className: d(C.header, s), ...i, ...r, children: a });
295
+ le.displayName = "Card";
296
+ const ne = n(
297
+ ({ justify: e, gap: t, children: a, className: o, ...r }, i) => {
298
+ const l = v({ gap: t, justify: e });
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 }, l) => {
303
- const i = v({ align: e, gap: t });
304
- return /* @__PURE__ */ o("div", { ref: l, className: d(C.body, s), ...i, ...r, children: a });
302
+ ne.displayName = "Card.Header";
303
+ const ce = n(
304
+ ({ align: e, gap: t, children: a, className: o, ...r }, i) => {
305
+ const l = v({ align: e, gap: t });
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 }, l) => {
310
- const i = v({ gap: t, justify: e });
311
- return /* @__PURE__ */ o("div", { ref: l, className: d(C.footer, s), ...i, ...r, children: a });
309
+ ce.displayName = "Card.Body";
310
+ const de = n(
311
+ ({ justify: e, gap: t, children: a, className: o, ...r }, i) => {
312
+ const l = v({ gap: t, justify: e });
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
324
  placement: t,
323
325
  maxHeight: a = 400,
324
- maxWidth: s = 320,
326
+ maxWidth: o = 320,
325
327
  gap: r = 8,
326
- value: l,
327
- onChange: i,
328
- closeOnClick: m = !1,
328
+ value: i,
329
+ onChange: l,
330
+ closeOnClick: d = !1,
329
331
  children: u,
330
- ...c
332
+ ...m
331
333
  }, p) => {
332
334
  const N = {
333
335
  id: e,
334
- closeOnClick: m,
335
- onChange: i,
336
- value: l
336
+ closeOnClick: d,
337
+ onChange: l,
338
+ value: i
337
339
  };
338
- return /* @__PURE__ */ o("div", { ref: p, ...c, children: /* @__PURE__ */ o(be.Provider, { value: N, children: /* @__PURE__ */ o(I, { id: e, placement: t, gap: r, type: "persisted", 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(
339
341
  "div",
340
342
  {
341
- className: H["menu-list"],
343
+ className: G["menu-list"],
342
344
  style: {
343
345
  "--_max-height": `${a}px`,
344
- "--_max-width": `${s}px`
346
+ "--_max-width": `${o}px`
345
347
  },
346
348
  children: u
347
349
  }
348
350
  ) }) }) });
349
351
  }
350
352
  );
351
- Ne.displayName = "Menu";
352
- function kt(e) {
353
- return I.getTooltipTriggerProps({
353
+ ue.displayName = "Menu";
354
+ function Ft(e) {
355
+ return A.getTooltipTriggerProps({
354
356
  id: e.id
355
357
  });
356
358
  }
357
- function Wt(e) {
358
- I.close(e);
359
+ function Ct(e) {
360
+ A.close(e);
359
361
  }
360
- const Q = Ne;
361
- Q.getTriggerProps = kt;
362
- Q.close = Wt;
363
- const ye = n(
364
- ({ value: e, disabled: t = !1, leftIcon: a, rightIcon: s, children: r, onClick: l, className: i, ...m }, u) => {
365
- 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({
366
368
  active: p,
367
369
  disabled: t
368
- }), b = (S) => {
370
+ }), h = (B) => {
369
371
  if (t) {
370
- S.preventDefault();
372
+ B.preventDefault();
371
373
  return;
372
374
  }
373
- c != null && c.onChange && e !== void 0 && c.onChange(e), l == null || l(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 });
374
376
  };
375
- return /* @__PURE__ */ y(
377
+ return /* @__PURE__ */ b(
376
378
  "button",
377
379
  {
378
380
  ref: u,
379
- className: d(H["menu-item"], i),
381
+ className: c(G["menu-item"], l),
380
382
  disabled: t,
381
383
  ...N,
382
- ...m,
383
- onClick: b,
384
+ ...d,
385
+ onClick: h,
384
386
  children: [
385
- a ? /* @__PURE__ */ o("span", { className: H["menu-item-icon"], children: a }) : null,
386
- /* @__PURE__ */ o("span", { className: H["menu-item-label"], children: r }),
387
- 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
388
390
  ]
389
391
  }
390
392
  );
391
393
  }
392
394
  );
393
- ye.displayName = "Menu.Item";
394
- const _ = Q;
395
- _.Item = ye;
396
- const ve = A(void 0);
397
- function fe() {
398
- 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);
399
401
  if (!e)
400
402
  throw new Error("useTableProvider must be used within a Table component");
401
403
  return e;
402
404
  }
403
- const he = n(
404
- ({ leftContent: e, rightContent: t, className: a, ...s }, r) => {
405
- const l = fe(), i = typeof e == "function" ? e(l.selectedRows) : e, m = typeof t == "function" ? t(l.selectedRows) : t;
406
- return /* @__PURE__ */ y("div", { ref: r, className: d(w.toolbar, a), ...s, children: [
407
- /* @__PURE__ */ o("div", { children: i }),
408
- /* @__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 })
409
411
  ] });
410
412
  }
411
413
  );
412
- he.displayName = "Table.Toolbar";
413
- const ge = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.header, e), ...t }));
414
- ge.displayName = "Table.Header";
415
- const Te = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.body, e), ...t }));
416
- Te.displayName = "Table.Body";
417
- const Se = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.footer, e), ...t }));
418
- Se.displayName = "Table.Footer";
419
- const Be = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.row, e), ...t }));
420
- Be.displayName = "Table.Row";
421
- const we = n(
422
- ({ as: e = "div", area: t, variant: a, className: s, style: r, ...l }, i) => {
423
- 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({
424
426
  variant: a
425
427
  });
426
- return /* @__PURE__ */ o(
428
+ return /* @__PURE__ */ s(
427
429
  e,
428
430
  {
429
- ref: i,
430
- className: d(w.col, s),
431
+ ref: l,
432
+ className: c(S.col, o),
431
433
  style: {
432
434
  "--_area": t,
433
435
  ...r
434
436
  },
435
- ...m,
436
- ...l
437
+ ...d,
438
+ ...i
437
439
  }
438
440
  );
439
441
  }
440
442
  );
441
- we.displayName = "Table.Col";
442
- const Ae = n(
443
- ({ rowId: e, isMain: t = !1, checked: a, indeterminate: s, onChange: r }, l) => {
444
- const i = fe(), m = t ? i.selectedRows.size === i.allRowIds.size && i.allRowIds.size > 0 : e !== void 0 && i.selectedRows.has(e);
445
- !t && e !== void 0 && i.registerRowId(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
+ !t && e !== void 0 && l.registerRowId(e);
446
448
  const u = (p) => {
447
- t ? i.onSelectAll(Array.from(i.allRowIds), p.target.checked) : e !== void 0 && i.onSelectionChange(e, p.target.checked), r == null || r(p.target.checked);
448
- }, c = t && i.selectedRows.size > 0 && i.selectedRows.size < i.allRowIds.size;
449
- return /* @__PURE__ */ y("label", { className: k.checkbox, children: [
450
- /* @__PURE__ */ o(
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
+ }, m = t && l.selectedRows.size > 0 && l.selectedRows.size < l.allRowIds.size;
451
+ return /* @__PURE__ */ b("label", { className: $.checkbox, children: [
452
+ /* @__PURE__ */ s(
451
453
  "input",
452
454
  {
453
455
  ref: (p) => {
454
- p && (p.indeterminate = c || s || !1, typeof l == "function" ? l(p) : l && (l.current = p));
456
+ p && (p.indeterminate = m || o || !1, typeof i == "function" ? i(p) : i && (i.current = p));
455
457
  },
456
458
  type: "checkbox",
457
- className: k.input,
458
- checked: a !== void 0 ? a : m,
459
+ className: $.input,
460
+ checked: a !== void 0 ? a : d,
459
461
  onChange: u,
460
462
  "aria-label": t ? "Select all rows" : `Select row ${e}`
461
463
  }
462
464
  ),
463
- /* @__PURE__ */ o("span", { className: k.indicator })
465
+ /* @__PURE__ */ s("span", { className: $.indicator })
464
466
  ] });
465
467
  }
466
468
  );
467
- Ae.displayName = "Table.Checkbox";
468
- const Re = n(
469
- ({ as: e = "div", title: t, subtitle: a, size: s = "md", className: r, ...l }, i) => /* @__PURE__ */ y(e, { ref: i, className: d(w.col, r), "data-variant": "double-line", ...l, children: [
470
- /* @__PURE__ */ o("div", { className: w["double-line-title"], "data-size": s, children: t }),
471
- /* @__PURE__ */ o("div", { className: w["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 })
472
474
  ] })
473
475
  );
474
- Re.displayName = "Table.DoubleLine";
475
- const Ie = _.Item;
476
- Ie.displayName = "Table.ActionItem";
477
- const Le = n(({ icon: e, children: t }, a) => {
478
- const s = O(), r = _.getTriggerProps({ id: s });
479
- return /* @__PURE__ */ y("div", { ref: a, className: d(w.action), children: [
480
- /* @__PURE__ */ o(
481
- 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,
482
484
  {
483
485
  ...r,
484
486
  as: e,
485
487
  variant: "ghost",
486
- className: d(w["action-trigger"]),
488
+ className: c(S["action-trigger"]),
487
489
  "aria-label": "Actions",
488
- onClick: (l) => {
489
- l.stopPropagation();
490
+ onClick: (i) => {
491
+ i.stopPropagation();
490
492
  },
491
493
  size: "small"
492
494
  }
493
495
  ),
494
- /* @__PURE__ */ o(_, { id: s, placement: "bottom", closeOnClick: !0, children: t })
496
+ /* @__PURE__ */ s(j, { id: o, placement: "bottom", closeOnClick: !0, children: t })
495
497
  ] });
496
498
  });
497
- Le.displayName = "Table.Action";
498
- const xe = n(({ columns: e, children: t, className: a, style: s, onSelectionChange: r, ...l }, i) => {
499
- const [m, u] = P(/* @__PURE__ */ new Set()), c = M(/* @__PURE__ */ new Set()), p = (f, h) => {
500
- const g = new Set(m);
501
- h ? g.add(f) : g.delete(f), u(g), r == null || r({
502
- selected: g,
503
- allSelected: g.size === c.current.size && c.current.size > 0,
504
- 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
505
507
  });
506
- }, N = (f, h) => {
507
- const g = h ? new Set(f) : /* @__PURE__ */ new Set();
508
- u(g), r == null || r({
509
- selected: g,
510
- allSelected: h,
511
- 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
512
514
  });
513
- }, b = (f) => {
514
- c.current.add(f);
515
- }, S = {
516
- selectedRows: m,
517
- allRowIds: c.current,
515
+ }, h = (f) => {
516
+ m.current.add(f);
517
+ }, B = {
518
+ selectedRows: d,
519
+ allRowIds: m.current,
518
520
  onSelectionChange: p,
519
521
  onSelectAll: N,
520
- registerRowId: b
522
+ registerRowId: h
521
523
  };
522
- return /* @__PURE__ */ o(ve.Provider, { value: S, children: /* @__PURE__ */ o(
524
+ return /* @__PURE__ */ s(be.Provider, { value: B, children: /* @__PURE__ */ s(
523
525
  "div",
524
526
  {
525
- ref: i,
526
- className: d(w.table, a),
527
+ ref: l,
528
+ className: c(S.table, a),
527
529
  style: {
528
530
  "--_columns": e,
529
- ...s
531
+ ...o
530
532
  },
531
- ...l,
533
+ ...i,
532
534
  children: t
533
535
  }
534
536
  ) });
535
537
  });
536
- xe.displayName = "Table";
537
- const pa = Object.assign(xe, {
538
- Toolbar: he,
539
- Header: ge,
540
- Body: Te,
541
- Footer: Se,
542
- Row: Be,
543
- Col: we,
544
- Checkbox: Ae,
545
- DoubleLine: Re,
546
- Action: Le,
547
- ActionItem: Ie
548
- }), 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(
549
551
  ({
550
552
  gap: e = "md",
551
553
  direction: t = "horizontal",
552
554
  align: a = "center",
553
- wrap: s = "nowrap",
555
+ wrap: o = "nowrap",
554
556
  fluid: r = !1,
555
- "aria-label": l = "Button group",
556
- children: i,
557
- className: m,
557
+ "aria-label": i = "Button group",
558
+ children: l,
559
+ className: d,
558
560
  ...u
559
- }, c) => {
561
+ }, m) => {
560
562
  const p = v({
561
563
  align: a,
562
564
  direction: t,
563
565
  fluid: r,
564
566
  gap: e,
565
- wrap: s
567
+ wrap: o
566
568
  });
567
- return /* @__PURE__ */ o(
569
+ return /* @__PURE__ */ s(
568
570
  "div",
569
571
  {
570
- ref: c,
571
- className: d(At["button-group"], m),
572
+ ref: m,
573
+ className: c(bt["button-group"], d),
572
574
  role: "group",
573
- "aria-label": l,
575
+ "aria-label": i,
574
576
  ...p,
575
577
  ...u,
576
- children: i
578
+ children: l
577
579
  }
578
580
  );
579
581
  }
580
582
  );
581
- Xt.displayName = "ButtonGroup";
582
- const Fe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar"], t), ...a, children: e }));
583
- Fe.displayName = "TopBar";
584
- const De = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-leading"], t), ...a, children: e }));
585
- De.displayName = "TopBar.Leading";
586
- const Me = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-centred"], t), ...a, children: e }));
587
- Me.displayName = "TopBar.Centred";
588
- const He = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("div", { ref: s, className: d(L["top-bar-trailing"], t), ...a, children: e }));
589
- He.displayName = "TopBar.Trailing";
590
- const Ge = n(
591
- ({ as: e = "button", active: t, disabled: a, icon: s, className: r, children: l, ...i }, 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(
592
594
  e,
593
595
  {
594
- ref: m,
595
- className: d(L["top-bar-item"], r),
596
+ ref: d,
597
+ className: c(R["top-bar-item"], r),
596
598
  "data-active": t ? "" : void 0,
597
599
  "data-disabled": a ? "" : void 0,
598
- ...i,
600
+ ...l,
599
601
  children: [
600
- s && /* @__PURE__ */ o("span", { className: L["top-bar-item-icon"], children: s }),
601
- l
602
+ o && /* @__PURE__ */ s("span", { className: R["top-bar-item-icon"], children: o }),
603
+ i
602
604
  ]
603
605
  }
604
606
  )
605
607
  );
606
- Ge.displayName = "TopBar.Item";
607
- 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 }));
608
- Pe.displayName = "TopBar.ListItem";
609
- const ba = Object.assign(Fe, {
610
- Centred: Me,
611
- Item: Ge,
612
- Leading: De,
613
- ListItem: Pe,
614
- Trailing: He
615
- }), ze = A(void 0), U = n(
616
- ({ direction: e = "horizontal", gap: t, value: a, onChange: s, children: r, className: l, ...i }, m) => {
617
- const u = v({ direction: e }), c = {
618
- lg: "var(--spacing-4)",
619
- md: "var(--spacing-3)",
620
- sm: "var(--spacing-2)",
621
- xs: "var(--spacing-1)"
622
- }, p = {
623
- onChange: s,
624
- value: a
625
- };
626
- return /* @__PURE__ */ o(ze.Provider, { value: p, children: /* @__PURE__ */ o(
627
- "nav",
628
- {
629
- ref: m,
630
- className: d(j.nav, l),
631
- style: {
632
- ...t && {
633
- "--vers-comp-nav-gap": c[t]
634
- }
635
- },
636
- ...u,
637
- ...i,
638
- children: r
639
- }
640
- ) });
641
- }
642
- );
643
- U.displayName = "Nav";
644
- 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";
645
625
  const je = n(
646
- ({
647
- as: e = "button",
648
- active: t = !1,
649
- value: a,
650
- disabled: s = !1,
651
- loading: r = !1,
652
- leftIcon: l,
653
- rightIcon: i,
654
- children: m,
655
- onClick: u,
656
- className: c,
657
- ...p
658
- }, N) => {
659
- const b = R(ze), S = b != null && b.onChange && a !== void 0 ? b.value === a : t, f = v({
660
- active: S,
661
- disabled: s || r,
662
- loading: r
663
- }), h = (g) => {
664
- if (s || r) {
665
- g.preventDefault();
666
- return;
667
- }
668
- b != null && b.onChange && a !== void 0 && b.onChange(a), u == null || u(g);
669
- };
670
- return /* @__PURE__ */ y(
671
- e,
672
- {
673
- ref: N,
674
- className: d(j["nav-item"], c),
675
- "aria-current": S && e !== "button" ? "page" : void 0,
676
- "aria-disabled": s || r ? "true" : void 0,
677
- "aria-busy": r ? "true" : void 0,
678
- ...f,
679
- ...p,
680
- onClick: h,
681
- children: [
682
- l && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: l }) }),
683
- m,
684
- i && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: i }) })
685
- ]
686
- }
687
- );
688
- }
689
- );
690
- je.displayName = "NavItem";
691
- const Na = Object.assign(U, {
692
- Item: je
693
- }), $e = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(T.sidebar, t), children: e }));
694
- $e.displayName = "Sidebar";
695
- const Ee = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-header"], t), children: e }));
696
- Ee.displayName = "Sidebar.Header";
697
- const _e = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-body"], t), children: e }));
698
- _e.displayName = "Sidebar.Body";
699
- const Ce = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-footer"], t), children: e }));
700
- Ce.displayName = "Sidebar.Footer";
701
- const Ve = n(
702
- ({ label: e, icon: t, defaultExpanded: a = !0, isExpanded: s, onExpandedChange: r, children: l, className: i }, m) => {
703
- const [u, c] = P(a), p = s !== void 0 ? s : u, N = () => {
704
- const b = !p;
705
- 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);
706
630
  };
707
- return /* @__PURE__ */ y(
631
+ return /* @__PURE__ */ b(
708
632
  "div",
709
633
  {
710
- ref: m,
711
- className: d(T["sidebar-group"], i),
634
+ ref: d,
635
+ className: c(y["sidebar-group"], l),
712
636
  "data-expanded": p ? "" : void 0,
713
637
  children: [
714
- /* @__PURE__ */ y("button", { className: T["sidebar-group-header"], onClick: N, "aria-expanded": p, children: [
715
- t && /* @__PURE__ */ o("span", { children: t }),
716
- /* @__PURE__ */ o("span", { className: T["sidebar-group-label"], children: e }),
717
- /* @__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" })
718
642
  ] }),
719
- /* @__PURE__ */ o("div", { className: T["sidebar-group-content"], children: /* @__PURE__ */ o("div", { children: l }) })
643
+ /* @__PURE__ */ s("div", { className: y["sidebar-group-content"], children: /* @__PURE__ */ s("div", { children: i }) })
720
644
  ]
721
645
  }
722
646
  );
723
647
  }
724
648
  );
725
- Ve.displayName = "Sidebar.Group";
726
- const ke = n(
727
- ({ as: e = "button", active: t, disabled: a, icon: s, action: r, className: l, children: i, ...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(
728
652
  e,
729
653
  {
730
654
  ref: u,
731
- className: d(T["sidebar-item"], l),
655
+ className: c(y["sidebar-item"], i),
732
656
  "data-active": t ? "" : void 0,
733
657
  "data-disabled": a ? "" : void 0,
734
658
  "data-action": r ? "" : void 0,
735
- ...m,
659
+ ...d,
736
660
  children: [
737
- s && /* @__PURE__ */ o("span", { className: T["sidebar-item-icon"], children: s }),
738
- /* @__PURE__ */ o("span", { className: T["sidebar-item-text"], children: i }),
739
- 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 })
740
664
  ]
741
665
  }
742
666
  )
743
667
  );
744
- ke.displayName = "Sidebar.Item";
745
- const We = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-item-list"], t), children: e }));
746
- We.displayName = "Sidebar.ItemList";
747
- const Xe = n(({ className: e }, t) => /* @__PURE__ */ o("div", { ref: t, className: d(T["sidebar-divider"], e), children: /* @__PURE__ */ o(Mt, {}) }));
748
- Xe.displayName = "Sidebar.Divider";
749
- const ya = Object.assign($e, {
750
- Body: _e,
751
- Divider: Xe,
752
- Footer: Ce,
753
- Group: Ve,
754
- Header: Ee,
755
- Item: ke,
756
- 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
757
681
  });
758
- function qt(e, t) {
682
+ function Mt(e, t) {
759
683
  return e === t;
760
684
  }
761
- const qe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("nav", { ref: s, className: d($["bottom-bar"], t), ...a, children: e }));
762
- qe.displayName = "BottomBar";
763
- const Je = n(
764
- ({ as: e = "button", href: t, active: a = !1, disabled: s = !1, icon: r, children: l, onClick: i, className: m, ...u }, c) => {
765
- 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({
766
690
  active: a,
767
- disabled: s
768
- }), b = (h) => {
769
- if (s) {
770
- h.preventDefault();
691
+ disabled: o
692
+ }), h = (g) => {
693
+ if (o) {
694
+ g.preventDefault();
771
695
  return;
772
696
  }
773
- i == null || i(h);
774
- }, S = {
775
- className: d($["bottom-bar-item"], m),
776
- onClick: b,
777
- ref: c,
697
+ l == null || l(g);
698
+ }, B = {
699
+ className: c(P["bottom-bar-item"], d),
700
+ onClick: h,
701
+ ref: m,
778
702
  ...N,
779
703
  ...u
780
704
  };
781
- return p && (S.href = t), /* @__PURE__ */ y(e || "button", { ...S, children: [
782
- r && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-icon"], children: r }),
783
- l && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-text"], children: l })
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 })
784
708
  ] });
785
709
  }
786
710
  );
787
- Je.displayName = "BottomBar.Item";
788
- const va = Object.assign(qe, {
789
- Item: Je
790
- }), Ke = n(
791
- ({ className: e, children: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(x["app-layout"], e), children: t })
792
- );
793
- Ke.displayName = "AppLayout";
794
- const Qe = n(
795
- ({ centered: e, className: t, children: a }, s) => {
796
- const r = v({
797
- centered: e
798
- });
799
- return /* @__PURE__ */ o("div", { ref: s, className: d(x["app-layout-body"], t), ...r, children: a });
800
- }
801
- );
802
- Qe.displayName = "AppLayout.Body";
803
- const Ue = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("header", { ref: a, className: d(x["app-layout-header"], e), children: t }));
804
- Ue.displayName = "AppLayout.Header";
805
- const Ye = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("main", { ref: a, className: d(x["app-layout-main"], e), children: t }));
806
- Ye.displayName = "AppLayout.Main";
807
- const Ze = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(x["app-layout-side-left"], e), children: t }));
808
- Ze.displayName = "AppLayout.SideLeft";
809
- const Oe = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("aside", { ref: a, className: d(x["app-layout-side-right"], e), children: t }));
810
- Oe.displayName = "AppLayout.SideRight";
811
- const et = n(({ className: e, children: t }, a) => /* @__PURE__ */ o("footer", { ref: a, className: d(x["app-layout-footer"], e), children: t }));
812
- et.displayName = "AppLayout.Footer";
813
- const fa = Object.assign(Ke, {
814
- Body: Qe,
815
- Footer: et,
816
- Header: Ue,
817
- Main: Ye,
818
- SideLeft: Ze,
819
- 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 });
820
721
  });
821
- function Jt({ columns: e = "1fr", children: t, className: a, style: s, ...r }, l) {
822
- return /* @__PURE__ */ o(
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
740
+ });
741
+ function zt({ columns: e = "1fr", children: t, className: a, style: o, ...r }, i) {
742
+ return /* @__PURE__ */ s(
823
743
  "form",
824
744
  {
825
- ref: l,
826
- className: d(X["form-group"], a),
745
+ ref: i,
746
+ className: c(_["form-group"], a),
827
747
  style: {
828
748
  "--_columns": e,
829
- ...s
749
+ ...o
830
750
  },
831
751
  ...r,
832
752
  children: t
833
753
  }
834
754
  );
835
755
  }
836
- const tt = n(Jt);
837
- tt.displayName = "FormGroup";
838
- const at = n(
839
- ({ area: e, children: t, className: a, style: s, ...r }, l) => /* @__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(
840
760
  "div",
841
761
  {
842
- ref: l,
843
- className: d(X.field, a),
762
+ ref: i,
763
+ className: c(_.field, a),
844
764
  style: {
845
765
  "--_area": e,
846
- ...s
766
+ ...o
847
767
  },
848
768
  ...r,
849
769
  children: t
850
770
  }
851
771
  )
852
772
  );
853
- at.displayName = "FormGroup.Field";
854
- const st = n(
855
- ({ className: e, ...t }, a) => /* @__PURE__ */ o(
856
- "hr",
857
- {
858
- ref: a,
859
- className: d(X.separator, e),
860
- ...t
861
- }
862
- )
863
- );
864
- st.displayName = "FormGroup.Separator";
865
- const ha = Object.assign(tt, {
866
- Field: at,
867
- 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
868
779
  });
869
- function Kt({ direction: e = "column", children: t, className: a, ...s }, r) {
870
- return /* @__PURE__ */ o(
871
- "ul",
872
- {
873
- ref: r,
874
- className: d(W.features, a),
875
- "data-direction": e,
876
- ...s,
877
- children: t
878
- }
879
- );
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 });
880
782
  }
881
- const ot = n(Kt);
882
- ot.displayName = "Features";
883
- const rt = n(
884
- ({ icon: e, children: t, className: a, "aria-label": s, ...r }, l) => {
885
- const m = `features-item-${O()}`, u = s ? I.getTooltipTriggerProps({ id: m }) : {};
886
- return /* @__PURE__ */ y(
887
- "li",
888
- {
889
- ref: l,
890
- "aria-label": s,
891
- className: d(W.item, a),
892
- ...u,
893
- ...r,
894
- children: [
895
- e && /* @__PURE__ */ o("span", { className: W.icon, children: e }),
896
- t,
897
- s && /* @__PURE__ */ o(I, { id: m, children: /* @__PURE__ */ o(I.Text, { children: s }) })
898
- ]
899
- }
900
- );
901
- }
902
- );
903
- rt.displayName = "Features.Item";
904
- const Qt = Object.assign(ot, {
905
- Item: rt
906
- }), ga = Qt, lt = xt.forwardRef(
907
- ({ isOpen: e, onOpenChange: t, children: a, onClick: s, ...r }, l) => {
908
- const i = M(null), m = l || i;
909
- z(() => {
910
- const c = m.current;
911
- if (c) {
912
- if (e)
913
- try {
914
- c.showModal(), document.documentElement.style.overflow = "hidden";
915
- } catch {
916
- }
917
- else
918
- c.close(), document.documentElement.style.overflow = "";
919
- return () => {
920
- document.documentElement.style.overflow = "";
921
- };
922
- }
923
- }, [e, m]), z(() => {
924
- const c = m.current;
925
- if (!c)
926
- return;
927
- const p = () => t == null ? void 0 : t(!1), N = (b) => {
928
- b.preventDefault(), t == null || t(!1);
929
- };
930
- return c.addEventListener("close", p), c.addEventListener("cancel", N), () => {
931
- c.removeEventListener("close", p), c.removeEventListener("cancel", N);
932
- };
933
- }, [t, m]);
934
- const u = Dt(
935
- (c) => {
936
- c.target === c.currentTarget && (t == null || t(!1)), s == null || s(c);
937
- },
938
- [t, s]
939
- );
940
- return /* @__PURE__ */ o("dialog", { ...r, ref: m, onClick: u, children: a });
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
+ ] });
941
793
  }
942
794
  );
943
- lt.displayName = "Dialog";
944
- const Y = lt, it = A(void 0), Ut = () => {
945
- const e = R(it);
946
- if (!e)
947
- throw new Error("Drawer subcomponents must be used within Drawer");
948
- return e;
949
- }, ct = n(
950
- ({ open: e, onOpenChange: t, placement: a = "right", children: s, className: r, ...l }, i) => {
951
- const m = v({
952
- placement: a
953
- });
954
- return /* @__PURE__ */ o(it.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
955
- Y,
956
- {
957
- ref: i,
958
- isOpen: e,
959
- onOpenChange: t,
960
- className: d(e && Rt.drawer, r),
961
- ...m,
962
- ...l,
963
- children: /* @__PURE__ */ o("div", { className: B.content, children: s })
964
- }
965
- ) });
966
- }
967
- );
968
- ct.displayName = "Drawer";
969
- const nt = n(({ onClick: e, ...t }, a) => {
970
- const { onClose: s } = Ut();
971
- return /* @__PURE__ */ o(
972
- V,
973
- {
974
- ref: a,
975
- variant: "ghost",
976
- as: q,
977
- "aria-label": "Close",
978
- onClick: (l) => {
979
- s(), e == null || e(l);
980
- },
981
- className: B.closeButton,
982
- ...t
983
- }
984
- );
985
- });
986
- nt.displayName = "Drawer.CloseButton";
987
- const dt = n(
988
- ({ action: e, children: t, tabs: a, className: s, ...r }, l) => /* @__PURE__ */ y(
989
- "div",
990
- {
991
- ref: l,
992
- className: d(B.header, s),
993
- ...r,
994
- ...e && { "data-action": "" },
995
- ...a && { "data-tabs": "" },
996
- children: [
997
- e ? /* @__PURE__ */ y(Tt, { children: [
998
- /* @__PURE__ */ o("div", { className: B.headerTop, children: e }),
999
- t && /* @__PURE__ */ o("div", { className: B.headerContent, children: t })
1000
- ] }) : /* @__PURE__ */ o("div", { className: B.headerTop, children: t }),
1001
- a
1002
- ]
1003
- }
1004
- )
1005
- );
1006
- dt.displayName = "Drawer.Header";
1007
- const Ta = Object.assign(ct, {
1008
- Body: K,
1009
- CloseButton: nt,
1010
- Footer: te,
1011
- Header: dt,
1012
- Title: J
1013
- }), mt = A(void 0), Yt = () => {
1014
- 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);
1015
800
  if (!e)
1016
801
  throw new Error("Modal subcomponents must be used within Modal");
1017
802
  return e;
1018
- }, ut = n(
1019
- ({ open: e, onOpenChange: t, size: a, position: s, children: r, className: l, ...i }, m) => {
1020
- const u = v({ size: a, position: s });
1021
- return /* @__PURE__ */ o(mt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
1022
- 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,
1023
808
  {
1024
- ref: m,
809
+ ref: d,
1025
810
  isOpen: e,
1026
811
  onOpenChange: t,
1027
- className: d(e && It.modal, l),
812
+ className: c(e && Nt.modal, i),
1028
813
  "data-modal": "",
1029
814
  ...u,
1030
- ...i,
1031
- children: /* @__PURE__ */ o("div", { className: B.content, children: r })
815
+ ...l,
816
+ children: /* @__PURE__ */ s("div", { className: C.content, children: r })
1032
817
  }
1033
818
  ) });
1034
819
  }
1035
820
  );
1036
- ut.displayName = "Modal";
1037
- const pt = n(({ onClick: e, ...t }, a) => {
1038
- const { onClose: s } = Yt();
1039
- return /* @__PURE__ */ o(
1040
- V,
821
+ at.displayName = "Modal";
822
+ const st = n(({ onClick: e, ...t }, a) => {
823
+ const { onClose: o } = jt();
824
+ return /* @__PURE__ */ s(
825
+ E,
1041
826
  {
1042
827
  ref: a,
1043
828
  variant: "ghost",
1044
- as: q,
829
+ as: X,
1045
830
  "aria-label": "Close",
1046
- onClick: (l) => {
1047
- s(), e == null || e(l);
831
+ onClick: (i) => {
832
+ o(), e == null || e(i);
1048
833
  },
1049
- className: B.closeButton,
834
+ className: C.closeButton,
1050
835
  ...t
1051
836
  }
1052
837
  );
1053
838
  });
1054
- pt.displayName = "Modal.CloseButton";
1055
- const bt = n(({ action: e, children: t, className: a, ...s }, r) => /* @__PURE__ */ y("div", { ref: r, className: d(B.header, "modal-header", a), "data-modal-header": "", ...s, children: [
1056
- /* @__PURE__ */ o("div", { children: t }),
1057
- 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 })
1058
843
  ] }));
1059
- bt.displayName = "Modal.Header";
1060
- const Nt = n(
1061
- ({ 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(
1062
847
  "div",
1063
848
  {
1064
849
  ref: r,
1065
- className: d(B.footer, "modal-footer", a),
850
+ className: c(C.footer, "modal-footer", a),
1066
851
  "data-modal-footer": "",
1067
852
  "data-align": e,
1068
- ...s,
853
+ ...o,
1069
854
  children: t
1070
855
  }
1071
856
  )
1072
857
  );
1073
- Nt.displayName = "Modal.Footer";
1074
- const Sa = Object.assign(ut, {
1075
- Body: K,
1076
- CloseButton: pt,
1077
- Footer: Nt,
1078
- Header: bt,
1079
- Title: J
1080
- }), yt = A(void 0), Zt = () => {
1081
- 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);
1082
867
  if (!e)
1083
868
  throw new Error("BottomSheet subcomponents must be used within BottomSheet");
1084
869
  return e;
1085
- }, vt = n(
1086
- ({ open: e, onOpenChange: t, children: a, className: s, ...r }, l) => /* @__PURE__ */ o(yt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
1087
- 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,
1088
873
  {
1089
- ref: l,
874
+ ref: i,
1090
875
  isOpen: e,
1091
876
  onOpenChange: t,
1092
- className: d(Lt.bottomSheet, s),
877
+ className: c(yt.bottomSheet, o),
1093
878
  ...r,
1094
- children: /* @__PURE__ */ o("div", { className: B.content, children: a })
879
+ children: /* @__PURE__ */ s("div", { className: C.content, children: a })
1095
880
  }
1096
881
  ) })
1097
882
  );
1098
- vt.displayName = "BottomSheet";
1099
- const ft = n(
883
+ lt.displayName = "BottomSheet";
884
+ const nt = n(
1100
885
  ({ onClick: e, ...t }, a) => {
1101
- const { onClose: s } = Zt();
1102
- return /* @__PURE__ */ o(
1103
- V,
886
+ const { onClose: o } = Dt();
887
+ return /* @__PURE__ */ s(
888
+ E,
1104
889
  {
1105
- as: q,
890
+ as: X,
1106
891
  ref: a,
1107
892
  variant: "ghost",
1108
893
  "aria-label": "Close",
1109
- onClick: (l) => {
1110
- s(), e == null || e(l);
894
+ onClick: (i) => {
895
+ o(), e == null || e(i);
1111
896
  },
1112
- className: B.closeButton,
897
+ className: C.closeButton,
1113
898
  ...t
1114
899
  }
1115
900
  );
1116
901
  }
1117
902
  );
1118
- ft.displayName = "BottomSheet.CloseButton";
1119
- const Ba = Object.assign(vt, {
1120
- Body: K,
1121
- CloseButton: ft,
1122
- Footer: te,
1123
- Header: Ht,
1124
- 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
1125
910
  });
1126
911
  export {
1127
- na as Accordion,
1128
- fa as AppLayout,
1129
- ma as AttributeList,
1130
- zt as AvatarGroup,
1131
- Ct as BadgeGroup,
1132
- va as BottomBar,
1133
- Ba as BottomSheet,
1134
- Xt as ButtonGroup,
1135
- ua as Card,
1136
- Y as Dialog,
1137
- Ta as Drawer,
1138
- ga as Features,
1139
- ha as FormGroup,
1140
- _ as Menu,
1141
- Sa as Modal,
1142
- Na as Nav,
1143
- je as NavItem,
1144
- _t as NoResults,
1145
- ya as Sidebar,
1146
- pa as Table,
1147
- da as Tabs,
1148
- 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
1149
932
  };