@versaur/react 1.0.13 → 1.0.15

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