@versaur/react 1.0.12 → 1.0.13

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,12 +1,12 @@
1
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";
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
3
  import { ChevronDownIcon as Z, XIcon as q } from "@versaur/icons";
4
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
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 ee, I as E, T as I, B as V, H as Mt } from "./tooltip-Zuq8gd0f.js";
7
+ import { c as ee, I as E, T as I, B as V, H as Mt } from "./tooltip-_eEMRSo8.js";
8
8
  import { checkboxStyles as k } from "@versaur/core/forms";
9
- import { overlayPartsStyles as w } from "@versaur/core/utils";
9
+ import { overlayPartsStyles as B } from "@versaur/core/utils";
10
10
  import { c as J, a as te, O as K, b as Ht } from "./overlay-parts-Zq9CuT31.js";
11
11
  const ae = A(void 0);
12
12
  function Gt() {
@@ -15,7 +15,7 @@ function Gt() {
15
15
  throw new Error("Accordion.Summary must be used within an Accordion component");
16
16
  return e;
17
17
  }
18
- function Pt({ summary: e, open: t, onOpenChange: a, children: s, className: r, ...i }, l) {
18
+ function Pt({ summary: e, open: t, onOpenChange: a, children: s, className: r, ...l }, i) {
19
19
  const [m, u] = P(t ?? !1), c = M(null);
20
20
  z(() => {
21
21
  t !== void 0 && u(t);
@@ -29,11 +29,11 @@ function Pt({ summary: e, open: t, onOpenChange: a, children: s, className: r, .
29
29
  return /* @__PURE__ */ o(ae.Provider, { value: { isOpen: m, toggle: p }, children: /* @__PURE__ */ y(
30
30
  "details",
31
31
  {
32
- ref: l || c,
32
+ ref: i || c,
33
33
  className: d(D.item, r),
34
34
  open: m,
35
35
  ...N,
36
- ...i,
36
+ ...l,
37
37
  children: [
38
38
  e,
39
39
  /* @__PURE__ */ o("div", { className: D.content, children: s })
@@ -44,18 +44,18 @@ function Pt({ summary: e, open: t, onOpenChange: a, children: s, className: r, .
44
44
  const se = n(Pt);
45
45
  se.displayName = "Accordion";
46
46
  const oe = n(
47
- ({ children: e, right: t, clamp: a = 2, className: s, ...r }, i) => {
48
- const { isOpen: l, toggle: m } = Gt(), u = M(null), c = (p) => {
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
51
  return /* @__PURE__ */ y(
52
52
  "summary",
53
53
  {
54
- ref: i,
54
+ ref: l,
55
55
  className: d(D.trigger, s),
56
56
  onClick: c,
57
57
  role: "button",
58
- "aria-expanded": l,
58
+ "aria-expanded": i,
59
59
  ...r,
60
60
  children: [
61
61
  /* @__PURE__ */ o("span", { className: D.label, style: { "--_clamp": a }, children: e }),
@@ -76,8 +76,8 @@ const na = Object.assign(se, {
76
76
  align: a = "center",
77
77
  wrap: s = "nowrap",
78
78
  "aria-label": r = "Avatar group",
79
- children: i,
80
- className: l,
79
+ children: l,
80
+ className: i,
81
81
  ...m
82
82
  }, u) => {
83
83
  const c = v({ align: a, direction: e, size: t, wrap: s });
@@ -85,12 +85,12 @@ const na = Object.assign(se, {
85
85
  "div",
86
86
  {
87
87
  ref: u,
88
- className: d(St["avatar-group"], l),
88
+ className: d(St["avatar-group"], i),
89
89
  role: "group",
90
90
  "aria-label": r,
91
91
  ...c,
92
92
  ...m,
93
- children: i
93
+ children: l
94
94
  }
95
95
  );
96
96
  }
@@ -113,25 +113,25 @@ function $t() {
113
113
  throw new Error("Tabs.Item must be used within a Tabs component");
114
114
  return e;
115
115
  }
116
- const ie = n(({ value: e, onChange: t, children: a, className: s }, r) => {
117
- const i = M(null), l = M(/* @__PURE__ */ new Map()), [m, u] = P(0), [c, p] = P(0), N = () => {
118
- const f = l.current.get(e);
119
- if (!f || !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 h = i.current.getBoundingClientRect(), g = f.getBoundingClientRect(), ht = g.left - h.left + i.current.scrollLeft, { width: gt } = g;
121
+ const h = l.current.getBoundingClientRect(), g = f.getBoundingClientRect(), ht = g.left - h.left + l.current.scrollLeft, { width: gt } = g;
122
122
  u(ht), p(gt), f.scrollIntoView({
123
123
  behavior: "smooth",
124
124
  block: "nearest",
125
125
  inline: "center"
126
126
  });
127
127
  }, b = (f, h) => {
128
- h && l.current.set(f, h);
128
+ h && i.current.set(f, h);
129
129
  };
130
130
  Ft(() => {
131
131
  N();
132
- }, [e]), jt(i, N);
132
+ }, [e]), jt(l, N);
133
133
  const S = v({});
134
- return /* @__PURE__ */ o(re.Provider, { value: { activeValue: e, onChange: t, registerTrigger: b }, children: /* @__PURE__ */ y("nav", { ref: ee(r, i), className: d(G.tabs, s), ...S, children: [
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
135
  /* @__PURE__ */ o("ul", { className: G.tablist, role: "tablist", children: a }),
136
136
  /* @__PURE__ */ o(
137
137
  "div",
@@ -145,14 +145,14 @@ const ie = n(({ value: e, onChange: t, children: a, className: s }, r) => {
145
145
  )
146
146
  ] }) });
147
147
  });
148
- ie.displayName = "Tabs";
149
- const le = n(
148
+ le.displayName = "Tabs";
149
+ const ie = n(
150
150
  ({ value: e, disabled: t = !1, children: a, className: s }, r) => {
151
- const { activeValue: i, onChange: l, registerTrigger: m } = $t(), u = i === e;
151
+ const { activeValue: l, onChange: i, registerTrigger: m } = $t(), u = l === e;
152
152
  let c;
153
153
  t ? c = "disabled" : u ? c = "active" : c = "default";
154
154
  const p = () => {
155
- t || l(e);
155
+ t || i(e);
156
156
  };
157
157
  return /* @__PURE__ */ o("li", { className: G.tabitem, children: /* @__PURE__ */ o(
158
158
  "button",
@@ -171,7 +171,7 @@ const le = n(
171
171
  ) });
172
172
  }
173
173
  );
174
- le.displayName = "Tabs.Item";
174
+ ie.displayName = "Tabs.Item";
175
175
  function Et(e) {
176
176
  return {
177
177
  "aria-labelledby": `tabs-trigger-${e}`,
@@ -179,18 +179,18 @@ function Et(e) {
179
179
  role: "tabpanel"
180
180
  };
181
181
  }
182
- const da = Object.assign(ie, {
183
- Item: le,
182
+ const da = Object.assign(le, {
183
+ Item: ie,
184
184
  getPanelAttribute: Et
185
185
  }), _t = n(
186
- ({ icon: e, title: t, subtitle: a, action: s, className: r, ...i }, l) => /* @__PURE__ */ y(
186
+ ({ icon: e, title: t, subtitle: a, action: s, className: r, ...l }, i) => /* @__PURE__ */ y(
187
187
  "section",
188
188
  {
189
- ref: l,
189
+ ref: i,
190
190
  className: d(F["no-results"], r),
191
191
  role: "status",
192
192
  "aria-label": t,
193
- ...i,
193
+ ...l,
194
194
  children: [
195
195
  /* @__PURE__ */ y("header", { className: F["no-results-header"], children: [
196
196
  /* @__PURE__ */ o("div", { className: F["no-results-icon"], children: /* @__PURE__ */ o(E, { as: e, color: "inherit", "aria-hidden": "true" }) }),
@@ -204,7 +204,7 @@ const da = Object.assign(ie, {
204
204
  );
205
205
  _t.displayName = "NoResults";
206
206
  const ce = n(
207
- ({ layout: e, columns: t = "repeat(3, 1fr)", gap: a, children: s, className: r, style: i, ...l }, m) => {
207
+ ({ layout: e, columns: t = "repeat(3, 1fr)", gap: a, children: s, className: r, style: l, ...i }, m) => {
208
208
  const u = v({
209
209
  layout: e
210
210
  });
@@ -212,14 +212,14 @@ const ce = n(
212
212
  "dl",
213
213
  {
214
214
  ref: m,
215
- className: d(wt["attribute-list"], r),
215
+ className: d(Bt["attribute-list"], r),
216
216
  ...u,
217
217
  style: {
218
218
  "--_columns": t,
219
219
  ...a !== void 0 && { "--_gap": typeof a == "number" ? `${a}px` : a },
220
- ...i
220
+ ...l
221
221
  },
222
- ...l,
222
+ ...i,
223
223
  children: s
224
224
  }
225
225
  );
@@ -227,16 +227,16 @@ const ce = n(
227
227
  );
228
228
  ce.displayName = "AttributeList";
229
229
  const ne = n(
230
- ({ title: e, area: t, children: a, className: s, style: r, ...i }, l) => /* @__PURE__ */ y(
230
+ ({ title: e, area: t, children: a, className: s, style: r, ...l }, i) => /* @__PURE__ */ y(
231
231
  "div",
232
232
  {
233
- ref: l,
233
+ ref: i,
234
234
  className: d(s),
235
235
  style: {
236
236
  "--_area": t,
237
237
  ...r
238
238
  },
239
- ...i,
239
+ ...l,
240
240
  children: [
241
241
  /* @__PURE__ */ o("dt", { children: e }),
242
242
  /* @__PURE__ */ o("dd", { children: a })
@@ -254,8 +254,8 @@ const ma = Object.assign(ce, {
254
254
  align: a = "center",
255
255
  wrap: s = "nowrap",
256
256
  "aria-label": r = "Badge group",
257
- children: i,
258
- className: l,
257
+ children: l,
258
+ className: i,
259
259
  ...m
260
260
  }, u) => {
261
261
  const c = v({
@@ -268,47 +268,47 @@ const ma = Object.assign(ce, {
268
268
  "div",
269
269
  {
270
270
  ref: u,
271
- className: d(Bt["badge-group"], l),
271
+ className: d(wt["badge-group"], i),
272
272
  role: "group",
273
273
  "aria-label": r,
274
274
  ...c,
275
275
  ...m,
276
- children: i
276
+ children: l
277
277
  }
278
278
  );
279
279
  }
280
280
  );
281
281
  Ct.displayName = "BadgeGroup";
282
- function Vt({ as: e = "div", size: t = "md", border: a, children: s, className: r, ...i }, l) {
282
+ function Vt({ as: e = "div", size: t = "md", border: a, children: s, className: r, ...l }, i) {
283
283
  const m = v({
284
284
  border: a,
285
285
  interactive: e === "button" ? "true" : "false",
286
286
  size: t
287
287
  });
288
- return /* @__PURE__ */ o(e === "button" ? "button" : "div", { ref: l, className: d(C.card, r), ...m, ...i, children: s });
288
+ return /* @__PURE__ */ o(e === "button" ? "button" : "div", { ref: i, className: d(C.card, r), ...m, ...l, children: s });
289
289
  }
290
290
  const de = n(
291
291
  Vt
292
292
  );
293
293
  de.displayName = "Card";
294
294
  const me = n(
295
- ({ justify: e, gap: t, children: a, className: s, ...r }, i) => {
296
- const l = v({ gap: t, justify: e });
297
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.header, s), ...l, ...r, children: a });
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 });
298
298
  }
299
299
  );
300
300
  me.displayName = "Card.Header";
301
301
  const ue = n(
302
- ({ align: e, gap: t, children: a, className: s, ...r }, i) => {
303
- const l = v({ align: e, gap: t });
304
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.body, s), ...l, ...r, children: a });
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 });
305
305
  }
306
306
  );
307
307
  ue.displayName = "Card.Body";
308
308
  const pe = n(
309
- ({ justify: e, gap: t, children: a, className: s, ...r }, i) => {
310
- const l = v({ gap: t, justify: e });
311
- return /* @__PURE__ */ o("div", { ref: i, className: d(C.footer, s), ...l, ...r, children: a });
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 });
312
312
  }
313
313
  );
314
314
  pe.displayName = "Card.Footer";
@@ -319,33 +319,31 @@ const ua = Object.assign(de, {
319
319
  }), be = A(void 0), Ne = n(
320
320
  ({
321
321
  id: e,
322
- placement: t = "bottom",
322
+ placement: t,
323
323
  maxHeight: a = 400,
324
- minWidth: s = 160,
325
- maxWidth: r = 320,
326
- gap: i = 8,
324
+ maxWidth: s = 320,
325
+ gap: r = 8,
327
326
  value: l,
328
- onChange: m,
329
- closeOnClick: u = !1,
330
- children: c,
331
- ...p
332
- }, N) => {
333
- const b = {
327
+ onChange: i,
328
+ closeOnClick: m = !1,
329
+ children: u,
330
+ ...c
331
+ }, p) => {
332
+ const N = {
334
333
  id: e,
335
- closeOnClick: u,
336
- onChange: m,
334
+ closeOnClick: m,
335
+ onChange: i,
337
336
  value: l
338
337
  };
339
- return /* @__PURE__ */ o("div", { ref: N, ...p, children: /* @__PURE__ */ o(be.Provider, { value: b, children: /* @__PURE__ */ o(I, { id: e, placement: t, gap: i, triggerType: "focus", children: /* @__PURE__ */ o(
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
339
  "div",
341
340
  {
342
341
  className: H["menu-list"],
343
342
  style: {
344
343
  "--_max-height": `${a}px`,
345
- "--_max-width": `${r}px`,
346
- "--_min-width": `${s}px`
344
+ "--_max-width": `${s}px`
347
345
  },
348
- children: c
346
+ children: u
349
347
  }
350
348
  ) }) }) });
351
349
  }
@@ -363,7 +361,7 @@ const Q = Ne;
363
361
  Q.getTriggerProps = kt;
364
362
  Q.close = Wt;
365
363
  const ye = n(
366
- ({ value: e, disabled: t = !1, leftIcon: a, rightIcon: s, children: r, onClick: i, className: l, ...m }, u) => {
364
+ ({ value: e, disabled: t = !1, leftIcon: a, rightIcon: s, children: r, onClick: l, className: i, ...m }, u) => {
367
365
  const c = R(be), p = c != null && c.onChange && e !== void 0 ? c.value === e : !1, N = v({
368
366
  active: p,
369
367
  disabled: t
@@ -372,13 +370,13 @@ const ye = n(
372
370
  S.preventDefault();
373
371
  return;
374
372
  }
375
- c != null && c.onChange && e !== void 0 && c.onChange(e), i == null || i(S), c != null && c.closeOnClick && (c != null && c.id) && I.close({ id: c.id });
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 });
376
374
  };
377
375
  return /* @__PURE__ */ y(
378
376
  "button",
379
377
  {
380
378
  ref: u,
381
- className: d(H["menu-item"], l),
379
+ className: d(H["menu-item"], i),
382
380
  disabled: t,
383
381
  ...N,
384
382
  ...m,
@@ -404,56 +402,56 @@ function fe() {
404
402
  }
405
403
  const he = n(
406
404
  ({ leftContent: e, rightContent: t, className: a, ...s }, r) => {
407
- const i = fe(), l = typeof e == "function" ? e(i.selectedRows) : e, m = typeof t == "function" ? t(i.selectedRows) : t;
408
- return /* @__PURE__ */ y("div", { ref: r, className: d(B.toolbar, a), ...s, children: [
409
- /* @__PURE__ */ o("div", { children: l }),
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 }),
410
408
  /* @__PURE__ */ o("div", { children: m })
411
409
  ] });
412
410
  }
413
411
  );
414
412
  he.displayName = "Table.Toolbar";
415
- const ge = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.header, e), ...t }));
413
+ const ge = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.header, e), ...t }));
416
414
  ge.displayName = "Table.Header";
417
- const Te = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.body, e), ...t }));
415
+ const Te = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.body, e), ...t }));
418
416
  Te.displayName = "Table.Body";
419
- const Se = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.footer, e), ...t }));
417
+ const Se = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(w.footer, e), ...t }));
420
418
  Se.displayName = "Table.Footer";
421
- const we = n(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(B.row, e), ...t }));
422
- we.displayName = "Table.Row";
423
- const Be = n(
424
- ({ as: e = "div", area: t, variant: a, className: s, style: r, ...i }, l) => {
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) => {
425
423
  const m = v({
426
424
  variant: a
427
425
  });
428
426
  return /* @__PURE__ */ o(
429
427
  e,
430
428
  {
431
- ref: l,
432
- className: d(B.col, s),
429
+ ref: i,
430
+ className: d(w.col, s),
433
431
  style: {
434
432
  "--_area": t,
435
433
  ...r
436
434
  },
437
435
  ...m,
438
- ...i
436
+ ...l
439
437
  }
440
438
  );
441
439
  }
442
440
  );
443
- Be.displayName = "Table.Col";
441
+ we.displayName = "Table.Col";
444
442
  const Ae = n(
445
- ({ rowId: e, isMain: t = !1, checked: a, indeterminate: s, onChange: r }, i) => {
446
- const l = fe(), m = t ? l.selectedRows.size === l.allRowIds.size && l.allRowIds.size > 0 : e !== void 0 && l.selectedRows.has(e);
447
- !t && e !== void 0 && l.registerRowId(e);
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);
448
446
  const u = (p) => {
449
- t ? l.onSelectAll(Array.from(l.allRowIds), p.target.checked) : e !== void 0 && l.onSelectionChange(e, p.target.checked), r == null || r(p.target.checked);
450
- }, c = t && l.selectedRows.size > 0 && l.selectedRows.size < l.allRowIds.size;
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;
451
449
  return /* @__PURE__ */ y("label", { className: k.checkbox, children: [
452
450
  /* @__PURE__ */ o(
453
451
  "input",
454
452
  {
455
453
  ref: (p) => {
456
- p && (p.indeterminate = c || s || !1, typeof i == "function" ? i(p) : i && (i.current = p));
454
+ p && (p.indeterminate = c || s || !1, typeof l == "function" ? l(p) : l && (l.current = p));
457
455
  },
458
456
  type: "checkbox",
459
457
  className: k.input,
@@ -468,9 +466,9 @@ const Ae = n(
468
466
  );
469
467
  Ae.displayName = "Table.Checkbox";
470
468
  const Re = n(
471
- ({ as: e = "div", title: t, subtitle: a, size: s = "md", className: r, ...i }, l) => /* @__PURE__ */ y(e, { ref: l, className: d(B.col, r), "data-variant": "double-line", ...i, children: [
472
- /* @__PURE__ */ o("div", { className: B["double-line-title"], "data-size": s, children: t }),
473
- /* @__PURE__ */ o("div", { className: B["double-line-subtitle"], "data-size": s, children: a })
469
+ ({ 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 })
474
472
  ] })
475
473
  );
476
474
  Re.displayName = "Table.DoubleLine";
@@ -478,17 +476,17 @@ const Ie = _.Item;
478
476
  Ie.displayName = "Table.ActionItem";
479
477
  const Le = n(({ icon: e, children: t }, a) => {
480
478
  const s = O(), r = _.getTriggerProps({ id: s });
481
- return /* @__PURE__ */ y("div", { ref: a, className: d(B.action), children: [
479
+ return /* @__PURE__ */ y("div", { ref: a, className: d(w.action), children: [
482
480
  /* @__PURE__ */ o(
483
481
  V,
484
482
  {
485
483
  ...r,
486
484
  as: e,
487
485
  variant: "ghost",
488
- className: d(B["action-trigger"]),
486
+ className: d(w["action-trigger"]),
489
487
  "aria-label": "Actions",
490
- onClick: (i) => {
491
- i.stopPropagation();
488
+ onClick: (l) => {
489
+ l.stopPropagation();
492
490
  },
493
491
  size: "small"
494
492
  }
@@ -497,7 +495,7 @@ const Le = n(({ icon: e, children: t }, a) => {
497
495
  ] });
498
496
  });
499
497
  Le.displayName = "Table.Action";
500
- const xe = n(({ columns: e, children: t, className: a, style: s, onSelectionChange: r, ...i }, l) => {
498
+ const xe = n(({ columns: e, children: t, className: a, style: s, onSelectionChange: r, ...l }, i) => {
501
499
  const [m, u] = P(/* @__PURE__ */ new Set()), c = M(/* @__PURE__ */ new Set()), p = (f, h) => {
502
500
  const g = new Set(m);
503
501
  h ? g.add(f) : g.delete(f), u(g), r == null || r({
@@ -524,13 +522,13 @@ const xe = n(({ columns: e, children: t, className: a, style: s, onSelectionChan
524
522
  return /* @__PURE__ */ o(ve.Provider, { value: S, children: /* @__PURE__ */ o(
525
523
  "div",
526
524
  {
527
- ref: l,
528
- className: d(B.table, a),
525
+ ref: i,
526
+ className: d(w.table, a),
529
527
  style: {
530
528
  "--_columns": e,
531
529
  ...s
532
530
  },
533
- ...i,
531
+ ...l,
534
532
  children: t
535
533
  }
536
534
  ) });
@@ -541,8 +539,8 @@ const pa = Object.assign(xe, {
541
539
  Header: ge,
542
540
  Body: Te,
543
541
  Footer: Se,
544
- Row: we,
545
- Col: Be,
542
+ Row: Be,
543
+ Col: we,
546
544
  Checkbox: Ae,
547
545
  DoubleLine: Re,
548
546
  Action: Le,
@@ -554,8 +552,8 @@ const pa = Object.assign(xe, {
554
552
  align: a = "center",
555
553
  wrap: s = "nowrap",
556
554
  fluid: r = !1,
557
- "aria-label": i = "Button group",
558
- children: l,
555
+ "aria-label": l = "Button group",
556
+ children: i,
559
557
  className: m,
560
558
  ...u
561
559
  }, c) => {
@@ -572,10 +570,10 @@ const pa = Object.assign(xe, {
572
570
  ref: c,
573
571
  className: d(At["button-group"], m),
574
572
  role: "group",
575
- "aria-label": i,
573
+ "aria-label": l,
576
574
  ...p,
577
575
  ...u,
578
- children: l
576
+ children: i
579
577
  }
580
578
  );
581
579
  }
@@ -590,17 +588,17 @@ Me.displayName = "TopBar.Centred";
590
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 }));
591
589
  He.displayName = "TopBar.Trailing";
592
590
  const Ge = n(
593
- ({ as: e = "button", active: t, disabled: a, icon: s, className: r, children: i, ...l }, m) => /* @__PURE__ */ y(
591
+ ({ as: e = "button", active: t, disabled: a, icon: s, className: r, children: l, ...i }, m) => /* @__PURE__ */ y(
594
592
  e,
595
593
  {
596
594
  ref: m,
597
595
  className: d(L["top-bar-item"], r),
598
596
  "data-active": t ? "" : void 0,
599
597
  "data-disabled": a ? "" : void 0,
600
- ...l,
598
+ ...i,
601
599
  children: [
602
600
  s && /* @__PURE__ */ o("span", { className: L["top-bar-item-icon"], children: s }),
603
- i
601
+ l
604
602
  ]
605
603
  }
606
604
  )
@@ -615,7 +613,7 @@ const ba = Object.assign(Fe, {
615
613
  ListItem: Pe,
616
614
  Trailing: He
617
615
  }), ze = A(void 0), U = n(
618
- ({ direction: e = "horizontal", gap: t, value: a, onChange: s, children: r, className: i, ...l }, m) => {
616
+ ({ direction: e = "horizontal", gap: t, value: a, onChange: s, children: r, className: l, ...i }, m) => {
619
617
  const u = v({ direction: e }), c = {
620
618
  lg: "var(--spacing-4)",
621
619
  md: "var(--spacing-3)",
@@ -629,14 +627,14 @@ const ba = Object.assign(Fe, {
629
627
  "nav",
630
628
  {
631
629
  ref: m,
632
- className: d(j.nav, i),
630
+ className: d(j.nav, l),
633
631
  style: {
634
632
  ...t && {
635
633
  "--vers-comp-nav-gap": c[t]
636
634
  }
637
635
  },
638
636
  ...u,
639
- ...l,
637
+ ...i,
640
638
  children: r
641
639
  }
642
640
  ) });
@@ -651,8 +649,8 @@ const je = n(
651
649
  value: a,
652
650
  disabled: s = !1,
653
651
  loading: r = !1,
654
- leftIcon: i,
655
- rightIcon: l,
652
+ leftIcon: l,
653
+ rightIcon: i,
656
654
  children: m,
657
655
  onClick: u,
658
656
  className: c,
@@ -681,9 +679,9 @@ const je = n(
681
679
  ...p,
682
680
  onClick: h,
683
681
  children: [
684
- i && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: i }) }),
682
+ l && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: l }) }),
685
683
  m,
686
- l && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: l }) })
684
+ i && /* @__PURE__ */ o("span", { className: j["nav-item-icon"], children: /* @__PURE__ */ o(E, { as: i }) })
687
685
  ]
688
686
  }
689
687
  );
@@ -701,7 +699,7 @@ _e.displayName = "Sidebar.Body";
701
699
  const Ce = n(({ children: e, className: t }, a) => /* @__PURE__ */ o("div", { ref: a, className: d(T["sidebar-footer"], t), children: e }));
702
700
  Ce.displayName = "Sidebar.Footer";
703
701
  const Ve = n(
704
- ({ label: e, icon: t, defaultExpanded: a = !0, isExpanded: s, onExpandedChange: r, children: i, className: l }, m) => {
702
+ ({ label: e, icon: t, defaultExpanded: a = !0, isExpanded: s, onExpandedChange: r, children: l, className: i }, m) => {
705
703
  const [u, c] = P(a), p = s !== void 0 ? s : u, N = () => {
706
704
  const b = !p;
707
705
  c(b), r == null || r(b);
@@ -710,7 +708,7 @@ const Ve = n(
710
708
  "div",
711
709
  {
712
710
  ref: m,
713
- className: d(T["sidebar-group"], l),
711
+ className: d(T["sidebar-group"], i),
714
712
  "data-expanded": p ? "" : void 0,
715
713
  children: [
716
714
  /* @__PURE__ */ y("button", { className: T["sidebar-group-header"], onClick: N, "aria-expanded": p, children: [
@@ -718,7 +716,7 @@ const Ve = n(
718
716
  /* @__PURE__ */ o("span", { className: T["sidebar-group-label"], children: e }),
719
717
  /* @__PURE__ */ o(E, { as: Z, className: T["sidebar-group-chevron"], size: "sm" })
720
718
  ] }),
721
- /* @__PURE__ */ o("div", { className: T["sidebar-group-content"], children: /* @__PURE__ */ o("div", { children: i }) })
719
+ /* @__PURE__ */ o("div", { className: T["sidebar-group-content"], children: /* @__PURE__ */ o("div", { children: l }) })
722
720
  ]
723
721
  }
724
722
  );
@@ -726,18 +724,18 @@ const Ve = n(
726
724
  );
727
725
  Ve.displayName = "Sidebar.Group";
728
726
  const ke = n(
729
- ({ as: e = "button", active: t, disabled: a, icon: s, action: r, className: i, children: l, ...m }, u) => /* @__PURE__ */ y(
727
+ ({ as: e = "button", active: t, disabled: a, icon: s, action: r, className: l, children: i, ...m }, u) => /* @__PURE__ */ y(
730
728
  e,
731
729
  {
732
730
  ref: u,
733
- className: d(T["sidebar-item"], i),
731
+ className: d(T["sidebar-item"], l),
734
732
  "data-active": t ? "" : void 0,
735
733
  "data-disabled": a ? "" : void 0,
736
734
  "data-action": r ? "" : void 0,
737
735
  ...m,
738
736
  children: [
739
737
  s && /* @__PURE__ */ o("span", { className: T["sidebar-item-icon"], children: s }),
740
- /* @__PURE__ */ o("span", { className: T["sidebar-item-text"], children: l }),
738
+ /* @__PURE__ */ o("span", { className: T["sidebar-item-text"], children: i }),
741
739
  r && /* @__PURE__ */ o("span", { className: T["sidebar-item-action"], children: r })
742
740
  ]
743
741
  }
@@ -763,7 +761,7 @@ function qt(e, t) {
763
761
  const qe = n(({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o("nav", { ref: s, className: d($["bottom-bar"], t), ...a, children: e }));
764
762
  qe.displayName = "BottomBar";
765
763
  const Je = n(
766
- ({ as: e = "button", href: t, active: a = !1, disabled: s = !1, icon: r, children: i, onClick: l, className: m, ...u }, c) => {
764
+ ({ as: e = "button", href: t, active: a = !1, disabled: s = !1, icon: r, children: l, onClick: i, className: m, ...u }, c) => {
767
765
  const p = qt(e, "a"), N = v({
768
766
  active: a,
769
767
  disabled: s
@@ -772,7 +770,7 @@ const Je = n(
772
770
  h.preventDefault();
773
771
  return;
774
772
  }
775
- l == null || l(h);
773
+ i == null || i(h);
776
774
  }, S = {
777
775
  className: d($["bottom-bar-item"], m),
778
776
  onClick: b,
@@ -782,7 +780,7 @@ const Je = n(
782
780
  };
783
781
  return p && (S.href = t), /* @__PURE__ */ y(e || "button", { ...S, children: [
784
782
  r && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-icon"], children: r }),
785
- i && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-text"], children: i })
783
+ l && /* @__PURE__ */ o("span", { className: $["bottom-bar-item-text"], children: l })
786
784
  ] });
787
785
  }
788
786
  );
@@ -820,11 +818,11 @@ const fa = Object.assign(Ke, {
820
818
  SideLeft: Ze,
821
819
  SideRight: Oe
822
820
  });
823
- function Jt({ columns: e = "1fr", children: t, className: a, style: s, ...r }, i) {
821
+ function Jt({ columns: e = "1fr", children: t, className: a, style: s, ...r }, l) {
824
822
  return /* @__PURE__ */ o(
825
823
  "form",
826
824
  {
827
- ref: i,
825
+ ref: l,
828
826
  className: d(X["form-group"], a),
829
827
  style: {
830
828
  "--_columns": e,
@@ -838,10 +836,10 @@ function Jt({ columns: e = "1fr", children: t, className: a, style: s, ...r }, i
838
836
  const tt = n(Jt);
839
837
  tt.displayName = "FormGroup";
840
838
  const at = n(
841
- ({ area: e, children: t, className: a, style: s, ...r }, i) => /* @__PURE__ */ o(
839
+ ({ area: e, children: t, className: a, style: s, ...r }, l) => /* @__PURE__ */ o(
842
840
  "div",
843
841
  {
844
- ref: i,
842
+ ref: l,
845
843
  className: d(X.field, a),
846
844
  style: {
847
845
  "--_area": e,
@@ -883,12 +881,12 @@ function Kt({ direction: e = "column", children: t, className: a, ...s }, r) {
883
881
  const ot = n(Kt);
884
882
  ot.displayName = "Features";
885
883
  const rt = n(
886
- ({ icon: e, children: t, className: a, "aria-label": s, ...r }, i) => {
884
+ ({ icon: e, children: t, className: a, "aria-label": s, ...r }, l) => {
887
885
  const m = `features-item-${O()}`, u = s ? I.getTooltipTriggerProps({ id: m }) : {};
888
886
  return /* @__PURE__ */ y(
889
887
  "li",
890
888
  {
891
- ref: i,
889
+ ref: l,
892
890
  "aria-label": s,
893
891
  className: d(W.item, a),
894
892
  ...u,
@@ -905,9 +903,9 @@ const rt = n(
905
903
  rt.displayName = "Features.Item";
906
904
  const Qt = Object.assign(ot, {
907
905
  Item: rt
908
- }), ga = Qt, it = xt.forwardRef(
909
- ({ isOpen: e, onOpenChange: t, children: a, onClick: s, ...r }, i) => {
910
- const l = M(null), m = i || l;
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;
911
909
  z(() => {
912
910
  const c = m.current;
913
911
  if (c) {
@@ -942,27 +940,27 @@ const Qt = Object.assign(ot, {
942
940
  return /* @__PURE__ */ o("dialog", { ...r, ref: m, onClick: u, children: a });
943
941
  }
944
942
  );
945
- it.displayName = "Dialog";
946
- const Y = it, lt = A(void 0), Ut = () => {
947
- const e = R(lt);
943
+ lt.displayName = "Dialog";
944
+ const Y = lt, it = A(void 0), Ut = () => {
945
+ const e = R(it);
948
946
  if (!e)
949
947
  throw new Error("Drawer subcomponents must be used within Drawer");
950
948
  return e;
951
949
  }, ct = n(
952
- ({ open: e, onOpenChange: t, placement: a = "right", children: s, className: r, ...i }, l) => {
950
+ ({ open: e, onOpenChange: t, placement: a = "right", children: s, className: r, ...l }, i) => {
953
951
  const m = v({
954
952
  placement: a
955
953
  });
956
- return /* @__PURE__ */ o(lt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
954
+ return /* @__PURE__ */ o(it.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
957
955
  Y,
958
956
  {
959
- ref: l,
957
+ ref: i,
960
958
  isOpen: e,
961
959
  onOpenChange: t,
962
960
  className: d(e && Rt.drawer, r),
963
961
  ...m,
964
- ...i,
965
- children: /* @__PURE__ */ o("div", { className: w.content, children: s })
962
+ ...l,
963
+ children: /* @__PURE__ */ o("div", { className: B.content, children: s })
966
964
  }
967
965
  ) });
968
966
  }
@@ -977,29 +975,29 @@ const nt = n(({ onClick: e, ...t }, a) => {
977
975
  variant: "ghost",
978
976
  as: q,
979
977
  "aria-label": "Close",
980
- onClick: (i) => {
981
- s(), e == null || e(i);
978
+ onClick: (l) => {
979
+ s(), e == null || e(l);
982
980
  },
983
- className: w.closeButton,
981
+ className: B.closeButton,
984
982
  ...t
985
983
  }
986
984
  );
987
985
  });
988
986
  nt.displayName = "Drawer.CloseButton";
989
987
  const dt = n(
990
- ({ action: e, children: t, tabs: a, className: s, ...r }, i) => /* @__PURE__ */ y(
988
+ ({ action: e, children: t, tabs: a, className: s, ...r }, l) => /* @__PURE__ */ y(
991
989
  "div",
992
990
  {
993
- ref: i,
994
- className: d(w.header, s),
991
+ ref: l,
992
+ className: d(B.header, s),
995
993
  ...r,
996
994
  ...e && { "data-action": "" },
997
995
  ...a && { "data-tabs": "" },
998
996
  children: [
999
997
  e ? /* @__PURE__ */ y(Tt, { children: [
1000
- /* @__PURE__ */ o("div", { className: w.headerTop, children: e }),
1001
- t && /* @__PURE__ */ o("div", { className: w.headerContent, children: t })
1002
- ] }) : /* @__PURE__ */ o("div", { className: w.headerTop, children: t }),
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 }),
1003
1001
  a
1004
1002
  ]
1005
1003
  }
@@ -1018,7 +1016,7 @@ const Ta = Object.assign(ct, {
1018
1016
  throw new Error("Modal subcomponents must be used within Modal");
1019
1017
  return e;
1020
1018
  }, ut = n(
1021
- ({ open: e, onOpenChange: t, size: a, position: s, children: r, className: i, ...l }, m) => {
1019
+ ({ open: e, onOpenChange: t, size: a, position: s, children: r, className: l, ...i }, m) => {
1022
1020
  const u = v({ size: a, position: s });
1023
1021
  return /* @__PURE__ */ o(mt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
1024
1022
  Y,
@@ -1026,11 +1024,11 @@ const Ta = Object.assign(ct, {
1026
1024
  ref: m,
1027
1025
  isOpen: e,
1028
1026
  onOpenChange: t,
1029
- className: d(e && It.modal, i),
1027
+ className: d(e && It.modal, l),
1030
1028
  "data-modal": "",
1031
1029
  ...u,
1032
- ...l,
1033
- children: /* @__PURE__ */ o("div", { className: w.content, children: r })
1030
+ ...i,
1031
+ children: /* @__PURE__ */ o("div", { className: B.content, children: r })
1034
1032
  }
1035
1033
  ) });
1036
1034
  }
@@ -1045,16 +1043,16 @@ const pt = n(({ onClick: e, ...t }, a) => {
1045
1043
  variant: "ghost",
1046
1044
  as: q,
1047
1045
  "aria-label": "Close",
1048
- onClick: (i) => {
1049
- s(), e == null || e(i);
1046
+ onClick: (l) => {
1047
+ s(), e == null || e(l);
1050
1048
  },
1051
- className: w.closeButton,
1049
+ className: B.closeButton,
1052
1050
  ...t
1053
1051
  }
1054
1052
  );
1055
1053
  });
1056
1054
  pt.displayName = "Modal.CloseButton";
1057
- const bt = n(({ action: e, children: t, className: a, ...s }, r) => /* @__PURE__ */ y("div", { ref: r, className: d(w.header, "modal-header", a), "data-modal-header": "", ...s, children: [
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: [
1058
1056
  /* @__PURE__ */ o("div", { children: t }),
1059
1057
  e && /* @__PURE__ */ o("div", { className: "modal-header-action", children: e })
1060
1058
  ] }));
@@ -1064,7 +1062,7 @@ const Nt = n(
1064
1062
  "div",
1065
1063
  {
1066
1064
  ref: r,
1067
- className: d(w.footer, "modal-footer", a),
1065
+ className: d(B.footer, "modal-footer", a),
1068
1066
  "data-modal-footer": "",
1069
1067
  "data-align": e,
1070
1068
  ...s,
@@ -1085,15 +1083,15 @@ const Sa = Object.assign(ut, {
1085
1083
  throw new Error("BottomSheet subcomponents must be used within BottomSheet");
1086
1084
  return e;
1087
1085
  }, vt = n(
1088
- ({ open: e, onOpenChange: t, children: a, className: s, ...r }, i) => /* @__PURE__ */ o(yt.Provider, { value: { onClose: () => t == null ? void 0 : t(!1) }, children: /* @__PURE__ */ o(
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(
1089
1087
  Y,
1090
1088
  {
1091
- ref: i,
1089
+ ref: l,
1092
1090
  isOpen: e,
1093
1091
  onOpenChange: t,
1094
1092
  className: d(Lt.bottomSheet, s),
1095
1093
  ...r,
1096
- children: /* @__PURE__ */ o("div", { className: w.content, children: a })
1094
+ children: /* @__PURE__ */ o("div", { className: B.content, children: a })
1097
1095
  }
1098
1096
  ) })
1099
1097
  );
@@ -1108,17 +1106,17 @@ const ft = n(
1108
1106
  ref: a,
1109
1107
  variant: "ghost",
1110
1108
  "aria-label": "Close",
1111
- onClick: (i) => {
1112
- s(), e == null || e(i);
1109
+ onClick: (l) => {
1110
+ s(), e == null || e(l);
1113
1111
  },
1114
- className: w.closeButton,
1112
+ className: B.closeButton,
1115
1113
  ...t
1116
1114
  }
1117
1115
  );
1118
1116
  }
1119
1117
  );
1120
1118
  ft.displayName = "BottomSheet.CloseButton";
1121
- const wa = Object.assign(vt, {
1119
+ const Ba = Object.assign(vt, {
1122
1120
  Body: K,
1123
1121
  CloseButton: ft,
1124
1122
  Footer: te,
@@ -1132,7 +1130,7 @@ export {
1132
1130
  zt as AvatarGroup,
1133
1131
  Ct as BadgeGroup,
1134
1132
  va as BottomBar,
1135
- wa as BottomSheet,
1133
+ Ba as BottomSheet,
1136
1134
  Xt as ButtonGroup,
1137
1135
  ua as Card,
1138
1136
  Y as Dialog,