@versaur/react 1.0.9 → 1.0.11

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