@vellira-ui/react 2.22.5 → 2.24.0

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/index.js CHANGED
@@ -3,21 +3,21 @@ import l from "clsx";
3
3
  import { createPortal as u } from "react-dom";
4
4
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
5
5
  import { FloatingPortal as m, arrow as h, autoUpdate as g, flip as _, offset as v, shift as y, size as b, useFloating as x, useFocus as S, useHover as C, useInteractions as w } from "@floating-ui/react";
6
- import { useControllableState as T, useKeyboardNavigation as ee, useTabsKeyboard as E } from "@vellira-ui/core";
7
- import { Check as D, ChevronDown as O, Close as k } from "@vellira-ui/icons";
8
- import A from "focus-trap-react";
6
+ import { useControllableState as T, useKeyboardNavigation as E, useTabsKeyboard as D } from "@vellira-ui/core";
7
+ import { Check as O, ChevronDown as k, Close as A } from "@vellira-ui/icons";
8
+ import j from "focus-trap-react";
9
9
  //#region src/utils/cn.ts
10
- var j = (...e) => l(e), M = ({ children: e }) => {
10
+ var M = (...e) => l(e), N = ({ children: e }) => {
11
11
  let [t, n] = c(!1);
12
12
  if (i(() => {
13
13
  n(!0);
14
14
  }, []), !t) return null;
15
15
  let r = document.getElementById("overlay-root") ?? document.body;
16
16
  return r ? u(e, r) : null;
17
- }, N = {
17
+ }, P = {
18
18
  dropdown: "_dropdown_6pgxt_1",
19
19
  dropdownIn: "_dropdownIn_6pgxt_1"
20
- }, P = t(({ children: e, floatingStyles: t, menuId: n, labelledById: r, label: i, activeDescendantId: a, onKeyDown: o, className: s }, c) => /* @__PURE__ */ f(M, { children: /* @__PURE__ */ f("ul", {
20
+ }, F = t(({ children: e, floatingStyles: t, menuId: n, labelledById: r, label: i, activeDescendantId: a, onKeyDown: o, className: s }, c) => /* @__PURE__ */ f(N, { children: /* @__PURE__ */ f("ul", {
21
21
  ref: c,
22
22
  id: n,
23
23
  role: "menu",
@@ -27,13 +27,13 @@ var j = (...e) => l(e), M = ({ children: e }) => {
27
27
  "aria-activedescendant": a,
28
28
  onKeyDown: o,
29
29
  style: t,
30
- className: j(N.dropdown, s),
30
+ className: M(P.dropdown, s),
31
31
  children: e
32
32
  }) }));
33
- P.displayName = "DropdownContent";
33
+ F.displayName = "DropdownContent";
34
34
  //#endregion
35
35
  //#region src/hooks/useFloatingPosition.ts
36
- var F = (e) => {
36
+ var I = (e) => {
37
37
  let [t, n] = c(() => typeof window > "u" || typeof window.matchMedia != "function" || !e ? !1 : window.matchMedia(`(max-width: ${e}px)`).matches);
38
38
  return i(() => {
39
39
  if (typeof window > "u" || typeof window.matchMedia != "function" || !e) return;
@@ -42,8 +42,8 @@ var F = (e) => {
42
42
  t.removeEventListener("change", r);
43
43
  };
44
44
  }, [e]), t;
45
- }, te = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r = "fixed", matchTriggerWidth: a = !1, mobileSheetBreakpoint: s, middleware: c = [] } = {}) => {
46
- let l = F(s), { refs: u, floatingStyles: d, update: f, context: p, middlewareData: m, placement: h } = x({
45
+ }, L = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r = "fixed", matchTriggerWidth: a = !1, mobileSheetBreakpoint: s, middleware: c = [] } = {}) => {
46
+ let l = I(s), { refs: u, floatingStyles: d, update: f, context: p, middlewareData: m, placement: h } = x({
47
47
  open: e,
48
48
  onOpenChange: t,
49
49
  placement: n,
@@ -76,7 +76,7 @@ var F = (e) => {
76
76
  setFloatingRef: u.setFloating,
77
77
  updatePosition: f
78
78
  };
79
- }, I = (e, t, n = !0) => {
79
+ }, R = (e, t, n = !0) => {
80
80
  let r = s(e);
81
81
  r.current = e;
82
82
  let a = s(t);
@@ -88,11 +88,11 @@ var F = (e) => {
88
88
  };
89
89
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
90
90
  }, [n]);
91
- }, L = { group: "_group_1yomt_1" }, R = ({ label: e }) => /* @__PURE__ */ f("li", {
91
+ }, z = { group: "_group_1yomt_1" }, B = ({ label: e }) => /* @__PURE__ */ f("li", {
92
92
  role: "presentation",
93
- className: L.group,
93
+ className: z.group,
94
94
  children: e
95
- }), z = {
95
+ }), V = {
96
96
  item: "_item_t87eq_1",
97
97
  disabled: "_disabled_t87eq_18",
98
98
  active: "_active_t87eq_28",
@@ -103,7 +103,7 @@ var F = (e) => {
103
103
  "itemText--truncate": "_itemText--truncate_t87eq_74",
104
104
  "itemText--wrap": "_itemText--wrap_t87eq_79",
105
105
  "itemText--nowrap": "_itemText--nowrap_t87eq_83"
106
- }, B = ({ id: e, children: t, label: n, icon: r, danger: i, disabled: a, active: o, onClick: s, onMouseEnter: c, shortcut: l, textWrap: u = "truncate", className: d }) => {
106
+ }, H = ({ id: e, children: t, label: n, icon: r, danger: i, disabled: a, active: o, onClick: s, onMouseEnter: c, shortcut: l, textWrap: u = "truncate", className: d }) => {
107
107
  let m = t || n;
108
108
  return /* @__PURE__ */ p("li", {
109
109
  id: e,
@@ -114,47 +114,47 @@ var F = (e) => {
114
114
  "data-danger": i || void 0,
115
115
  onClick: a ? void 0 : s,
116
116
  onMouseEnter: a ? void 0 : c,
117
- className: j(z.item, {
118
- [z.active]: o,
119
- [z.disabled]: a,
120
- [z.danger]: i
117
+ className: M(V.item, {
118
+ [V.active]: o,
119
+ [V.disabled]: a,
120
+ [V.danger]: i
121
121
  }, d),
122
122
  children: [
123
123
  r && /* @__PURE__ */ f("span", {
124
124
  "aria-hidden": "true",
125
- className: z.itemIcon,
125
+ className: V.itemIcon,
126
126
  children: r
127
127
  }),
128
128
  m && /* @__PURE__ */ f("span", {
129
- className: j(z.itemText, z[`itemText--${u}`]),
129
+ className: M(V.itemText, V[`itemText--${u}`]),
130
130
  children: m
131
131
  }),
132
132
  l && /* @__PURE__ */ f("span", {
133
- className: z.itemShortcut,
133
+ className: V.itemShortcut,
134
134
  children: l
135
135
  })
136
136
  ]
137
137
  });
138
- }, V = { group: "_group_ts4nb_1" }, H = () => /* @__PURE__ */ f("li", {
138
+ }, U = { group: "_group_ts4nb_1" }, W = () => /* @__PURE__ */ f("li", {
139
139
  role: "separator",
140
- className: V.separator,
140
+ className: U.separator,
141
141
  "aria-hidden": "true"
142
- }), U = {
142
+ }), G = {
143
143
  button: "_button_ii6sx_1",
144
144
  disabled: "_disabled_ii6sx_16",
145
145
  iconLeft: "_iconLeft_ii6sx_27",
146
146
  arrow: "_arrow_ii6sx_39",
147
147
  iconOnly: "_iconOnly_ii6sx_42",
148
148
  open: "_open_ii6sx_75"
149
- }, ne = t(({ children: e, isOpen: t, icon: n, arrowIcon: r, showArrow: i = !0, rotateAngle: a = 90, label: o, className: s, ...c }, l) => {
150
- let u = !!n, d = !!e, m = u && !d, h = i && d, g = r ?? /* @__PURE__ */ f(O, {}), _ = m ? o ?? "Open menu" : void 0;
149
+ }, ee = t(({ children: e, isOpen: t, icon: n, arrowIcon: r, showArrow: i = !0, rotateAngle: a = 90, label: o, className: s, ...c }, l) => {
150
+ let u = !!n, d = !!e, m = u && !d, h = i && d, g = r ?? /* @__PURE__ */ f(k, {}), _ = m ? o ?? "Open menu" : void 0;
151
151
  return /* @__PURE__ */ p("button", {
152
152
  ...c,
153
153
  ref: l,
154
154
  type: "button",
155
- className: j(U.button, {
156
- [U.disabled]: c.disabled,
157
- [U.iconOnly]: m
155
+ className: M(G.button, {
156
+ [G.disabled]: c.disabled,
157
+ [G.iconOnly]: m
158
158
  }, s),
159
159
  "aria-label": _,
160
160
  "aria-expanded": t,
@@ -163,57 +163,57 @@ var F = (e) => {
163
163
  children: [
164
164
  u && /* @__PURE__ */ f("span", {
165
165
  "aria-hidden": "true",
166
- className: U.iconLeft,
166
+ className: G.iconLeft,
167
167
  children: n
168
168
  }),
169
169
  e,
170
170
  h && /* @__PURE__ */ f("span", {
171
171
  "aria-hidden": "true",
172
- className: j(U.arrow, { [U.open]: t }),
172
+ className: M(G.arrow, { [G.open]: t }),
173
173
  children: g
174
174
  })
175
175
  ]
176
176
  });
177
177
  });
178
- ne.displayName = "DropdownTrigger";
178
+ ee.displayName = "DropdownTrigger";
179
179
  //#endregion
180
180
  //#region src/components/Dropdown/types.ts
181
- var re = (e) => e.type !== "group" && e.type !== "separator", W = (e) => e.type === "group", ie = (e) => e.type === "separator", ae = { wrapper: "_wrapper_14ue8_1" }, oe = ({ label: e, icon: t, trigger: n, items: r = [], onSelect: i, className: o, disabled: l, rotateAngle: u = 90, placement: d, matchTriggerWidth: m, textWrap: h, showArrow: g = !0, arrowIcon: _ }) => {
182
- let [v, y] = c(!1), [b, x] = c(-1), S = s(null), C = s(null), w = a(), T = `${w}-trigger`, { floatingStyles: E, setRef: D, setFloatingRef: O } = te({
181
+ var te = (e) => e.type !== "group" && e.type !== "separator", ne = (e) => e.type === "group", re = (e) => e.type === "separator", ie = { wrapper: "_wrapper_14ue8_1" }, ae = ({ label: e, icon: t, trigger: n, items: r = [], onSelect: i, className: o, disabled: l, rotateAngle: u = 90, placement: d, matchTriggerWidth: m, textWrap: h, showArrow: g = !0, arrowIcon: _ }) => {
182
+ let [v, y] = c(!1), [b, x] = c(-1), S = s(null), C = s(null), w = a(), T = `${w}-trigger`, { floatingStyles: D, setRef: O, setFloatingRef: k } = L({
183
183
  placement: d,
184
184
  matchTriggerWidth: m,
185
185
  mobileSheetBreakpoint: 640
186
- }), k = r.filter(re), A = v && b >= 0 ? `${w}-item-${b}` : void 0, M = () => k.findIndex((e) => !e.disabled), N = () => {
186
+ }), A = r.filter(te), j = v && b >= 0 ? `${w}-item-${b}` : void 0, N = () => A.findIndex((e) => !e.disabled), P = () => {
187
187
  l || y((e) => {
188
188
  let t = !e;
189
- return x(t ? M() : -1), t;
189
+ return x(t ? N() : -1), t;
190
190
  });
191
- }, F = () => {
191
+ }, I = () => {
192
192
  y(!1), x(-1);
193
- }, L = () => {
194
- F(), S.current?.focus();
195
- }, { onKeyDown: z } = ee({
193
+ }, z = () => {
194
+ I(), S.current?.focus();
195
+ }, { onKeyDown: V } = E({
196
196
  activeIndex: b,
197
197
  setActiveIndex: x,
198
- items: k,
198
+ items: A,
199
199
  isOpen: v,
200
- onOpen: N,
200
+ onOpen: P,
201
201
  onSelect: () => {
202
- let e = k[b];
203
- !e || e.disabled || (i?.(e.value), L());
202
+ let e = A[b];
203
+ !e || e.disabled || (i?.(e.value), z());
204
204
  },
205
- onClose: L
205
+ onClose: z
206
206
  });
207
- I([S, C], () => F(), v);
208
- let V = (e) => {
209
- S.current = e, D(e);
210
- }, U = (e) => {
211
- C.current = e, O(e), e?.focus();
207
+ R([S, C], () => I(), v);
208
+ let U = (e) => {
209
+ S.current = e, O(e);
210
+ }, G = (e) => {
211
+ C.current = e, k(e), e?.focus();
212
212
  };
213
213
  return /* @__PURE__ */ p("div", {
214
- className: j(ae.wrapper, o),
215
- children: [/* @__PURE__ */ f(ne, {
216
- ref: V,
214
+ className: M(ie.wrapper, o),
215
+ children: [/* @__PURE__ */ f(ee, {
216
+ ref: U,
217
217
  id: T,
218
218
  isOpen: v,
219
219
  disabled: l,
@@ -222,32 +222,32 @@ var re = (e) => e.type !== "group" && e.type !== "separator", W = (e) => e.type
222
222
  showArrow: g,
223
223
  arrowIcon: _,
224
224
  rotateAngle: u,
225
- onClick: N,
226
- onKeyDown: z,
225
+ onClick: P,
226
+ onKeyDown: V,
227
227
  "aria-expanded": v,
228
228
  "aria-haspopup": "menu",
229
229
  ...v && { "aria-controls": w },
230
230
  children: n
231
- }), v && /* @__PURE__ */ f(P, {
232
- ref: U,
233
- floatingStyles: E,
231
+ }), v && /* @__PURE__ */ f(F, {
232
+ ref: G,
233
+ floatingStyles: D,
234
234
  menuId: w,
235
235
  labelledById: n ? T : void 0,
236
236
  label: n ? void 0 : e,
237
- activeDescendantId: A,
238
- onKeyDown: z,
237
+ activeDescendantId: j,
238
+ onKeyDown: V,
239
239
  children: r.map((e, t) => {
240
- if (W(e)) return /* @__PURE__ */ f(R, { label: e.label }, `group-${e.label}`);
241
- if (ie(e)) return /* @__PURE__ */ f(H, {}, `separator-${t}`);
242
- if (re(e)) {
243
- let t = k.findIndex((t) => t === e);
244
- return /* @__PURE__ */ f(B, {
240
+ if (ne(e)) return /* @__PURE__ */ f(B, { label: e.label }, `group-${e.label}`);
241
+ if (re(e)) return /* @__PURE__ */ f(W, {}, `separator-${t}`);
242
+ if (te(e)) {
243
+ let t = A.findIndex((t) => t === e);
244
+ return /* @__PURE__ */ f(H, {
245
245
  id: `${w}-item-${t}`,
246
246
  ...e,
247
247
  active: b === t,
248
248
  textWrap: e.textWrap || h,
249
249
  onClick: () => {
250
- e.disabled || (i?.(e.value), L());
250
+ e.disabled || (i?.(e.value), z());
251
251
  },
252
252
  onMouseEnter: () => {
253
253
  t < 0 || e.disabled || x(t);
@@ -258,14 +258,14 @@ var re = (e) => e.type !== "group" && e.type !== "separator", W = (e) => e.type
258
258
  })
259
259
  })]
260
260
  });
261
- }, se = e(void 0), G = () => {
262
- let e = r(se);
261
+ }, oe = e(void 0), se = () => {
262
+ let e = r(oe);
263
263
  if (e === void 0) throw Error("Modal compound components must be used inside Modal");
264
264
  return e;
265
265
  };
266
- se.displayName = "ModalContext";
266
+ oe.displayName = "ModalContext";
267
267
  var ce = { modalBody: "_modalBody_iv33a_1" }, le = ({ children: e }) => {
268
- let { descriptionId: t } = G();
268
+ let { descriptionId: t } = se();
269
269
  return /* @__PURE__ */ f("div", {
270
270
  id: t,
271
271
  className: ce.modalBody,
@@ -288,7 +288,7 @@ var me = {
288
288
  modalHeaderTitle: "_modalHeaderTitle_155d7_8",
289
289
  modalHeaderCloseButton: "_modalHeaderCloseButton_155d7_15"
290
290
  }, he = ({ children: e }) => {
291
- let { onClose: t, titleId: n } = G();
291
+ let { onClose: t, titleId: n } = se();
292
292
  return /* @__PURE__ */ p("div", {
293
293
  className: me.modalHeader,
294
294
  children: [/* @__PURE__ */ f("h2", {
@@ -300,7 +300,7 @@ var me = {
300
300
  className: me.modalHeaderCloseButton,
301
301
  onClick: t,
302
302
  "aria-label": "Close modal",
303
- children: /* @__PURE__ */ f(k, { size: 16 })
303
+ children: /* @__PURE__ */ f(A, { size: 16 })
304
304
  })]
305
305
  });
306
306
  };
@@ -317,25 +317,25 @@ var ge = ({ isOpen: e, onClose: t }) => {
317
317
  "overlay--open": "_overlay--open_1xotg_13",
318
318
  "overlay--animated": "_overlay--animated_1xotg_17",
319
319
  modal: "_modal_1xotg_21"
320
- }, K = 0, ve = "", ye = ({ children: e, onClose: t, isOpen: r, className: a, closeOnBackdrop: o, closeOnClick: c, closeOnEsc: l = !0, zIndex: u = 1e3, animated: d = !0 }) => {
321
- let p = o ?? c ?? !0, m = s(null), { titleId: h, descriptionId: g } = G(), _ = n((e) => {
320
+ }, ve = 0, ye = "", be = ({ children: e, onClose: t, isOpen: r, className: a, closeOnBackdrop: o, closeOnClick: c, closeOnEsc: l = !0, zIndex: u = 1e3, animated: d = !0 }) => {
321
+ let p = o ?? c ?? !0, m = s(null), { titleId: h, descriptionId: g } = se(), _ = n((e) => {
322
322
  p && e.target === e.currentTarget && t?.();
323
323
  }, [p, t]);
324
324
  return ge({
325
325
  isOpen: r,
326
326
  onClose: l ? t : void 0
327
327
  }), i(() => {
328
- if (r) return K === 0 && (ve = document.body.style.overflow), K += 1, document.body.style.overflow = "hidden", () => {
329
- K = Math.max(0, K - 1), K === 0 && (document.body.style.overflow = ve);
328
+ if (r) return ve === 0 && (ye = document.body.style.overflow), ve += 1, document.body.style.overflow = "hidden", () => {
329
+ ve = Math.max(0, ve - 1), ve === 0 && (document.body.style.overflow = ye);
330
330
  };
331
- }, [r]), !r && !d ? null : /* @__PURE__ */ f(M, { children: /* @__PURE__ */ f("div", {
332
- className: j(_e.overlay, r && _e["overlay--open"], d && _e["overlay--animated"], a),
331
+ }, [r]), !r && !d ? null : /* @__PURE__ */ f(N, { children: /* @__PURE__ */ f("div", {
332
+ className: M(_e.overlay, r && _e["overlay--open"], d && _e["overlay--animated"], a),
333
333
  onClick: _,
334
334
  tabIndex: -1,
335
335
  role: "presentation",
336
336
  "aria-hidden": !r,
337
337
  style: { zIndex: u },
338
- children: /* @__PURE__ */ f(A, {
338
+ children: /* @__PURE__ */ f(j, {
339
339
  active: r,
340
340
  focusTrapOptions: {
341
341
  fallbackFocus: () => m.current,
@@ -355,18 +355,18 @@ var ge = ({ isOpen: e, onClose: t }) => {
355
355
  })
356
356
  }) });
357
357
  };
358
- ye.displayName = "ModalOverlay";
358
+ be.displayName = "ModalOverlay";
359
359
  //#endregion
360
360
  //#region src/components/Modal/Modal.tsx
361
- var be = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick: i, closeOnEsc: o = !0 }) => {
361
+ var xe = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick: i, closeOnEsc: o = !0 }) => {
362
362
  let s = a(), c = a();
363
- return e ? /* @__PURE__ */ f(se.Provider, {
363
+ return e ? /* @__PURE__ */ f(oe.Provider, {
364
364
  value: {
365
365
  onClose: n,
366
366
  titleId: s,
367
367
  descriptionId: c
368
368
  },
369
- children: /* @__PURE__ */ f(ye, {
369
+ children: /* @__PURE__ */ f(be, {
370
370
  isOpen: e,
371
371
  onClose: n,
372
372
  closeOnBackdrop: r ?? i,
@@ -375,144 +375,147 @@ var be = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick
375
375
  })
376
376
  }) : null;
377
377
  };
378
- be.displayName = "Modal";
378
+ xe.displayName = "Modal";
379
379
  //#endregion
380
380
  //#region src/components/Modal/index.ts
381
- var xe = Object.assign(be, {
381
+ var Se = Object.assign(xe, {
382
382
  Header: he,
383
383
  Body: le,
384
384
  Content: de,
385
385
  Footer: pe
386
- }), q = {
387
- wrapper: "_wrapper_14t1p_1",
388
- label: "_label_14t1p_9",
389
- required: "_required_14t1p_20",
390
- description: "_description_14t1p_25",
391
- control: "_control_14t1p_32",
392
- errorText: "_errorText_14t1p_38",
393
- disabled: "_disabled_14t1p_45"
394
- }, Se = ({ id: e, label: t, description: n, error: r, required: i = !1, disabled: o = !1, children: s, className: c }) => {
395
- let l = a(), u = e ?? l, d = n ? `${u}-description` : void 0, m = r ? `${u}-error` : void 0;
386
+ }), Ce = e(null), we = Ce.Provider;
387
+ function Te() {
388
+ return r(Ce);
389
+ }
390
+ var K = {
391
+ root: "_root_7wga8_1",
392
+ label: "_label_7wga8_9",
393
+ required: "_required_7wga8_20",
394
+ description: "_description_7wga8_24",
395
+ items: "_items_7wga8_31",
396
+ vertical: "_vertical_7wga8_36",
397
+ horizontal: "_horizontal_7wga8_42",
398
+ error: "_error_7wga8_48",
399
+ disabled: "_disabled_7wga8_55",
400
+ invalid: "_invalid_7wga8_60"
401
+ }, Ee = t(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, size: o = "md", name: s, label: c, description: l, error: u, orientation: d = "vertical", children: m, className: h, id: g, ..._ }, v) => {
402
+ let y = a(), b = g ?? y, x = c ? `${b}-label` : void 0, S = l ? `${b}-description` : void 0, C = u ? `${b}-error` : void 0, w = [S, C].filter(Boolean).join(" ") || void 0, E = s ?? `${b}-radio`, [D, O] = T({
403
+ value: e,
404
+ defaultValue: t,
405
+ onChange: n
406
+ }), k = !!u;
396
407
  return /* @__PURE__ */ p("div", {
397
- className: j(q.wrapper, { [q.disabled]: o }, c),
398
- "data-disabled": o || void 0,
408
+ ..._,
409
+ ref: v,
410
+ id: b,
411
+ role: "radiogroup",
412
+ "aria-labelledby": x,
413
+ "aria-describedby": w,
414
+ "aria-disabled": r || void 0,
415
+ "aria-required": i || void 0,
416
+ "aria-invalid": k || void 0,
417
+ className: M(K.root, k && K.invalid, r && K.disabled, h),
418
+ children: [
419
+ c && /* @__PURE__ */ p("div", {
420
+ id: x,
421
+ className: K.label,
422
+ children: [c, i && /* @__PURE__ */ f("span", {
423
+ className: K.required,
424
+ "aria-hidden": "true",
425
+ children: "*"
426
+ })]
427
+ }),
428
+ l && /* @__PURE__ */ f("div", {
429
+ id: S,
430
+ className: K.description,
431
+ children: l
432
+ }),
433
+ /* @__PURE__ */ f(we, {
434
+ value: {
435
+ name: E,
436
+ value: D,
437
+ disabled: r,
438
+ required: i,
439
+ invalid: k,
440
+ size: o,
441
+ describedBy: w,
442
+ onValueChange: O
443
+ },
444
+ children: /* @__PURE__ */ f("div", {
445
+ className: M(K.items, K[d]),
446
+ children: m
447
+ })
448
+ }),
449
+ u && /* @__PURE__ */ f("div", {
450
+ id: C,
451
+ className: K.error,
452
+ children: u
453
+ })
454
+ ]
455
+ });
456
+ });
457
+ Ee.displayName = "RadioGroup";
458
+ var q = {
459
+ wrapper: "_wrapper_ng5ym_1",
460
+ label: "_label_ng5ym_9",
461
+ required: "_required_ng5ym_20",
462
+ description: "_description_ng5ym_25",
463
+ control: "_control_ng5ym_32",
464
+ errorText: "_errorText_ng5ym_40",
465
+ disabled: "_disabled_ng5ym_47",
466
+ storyInput: "_storyInput_ng5ym_60",
467
+ storyBadge: "_storyBadge_ng5ym_65"
468
+ }, De = ({ id: e, label: t, description: n, error: r, required: i = !1, disabled: a = !1, children: o, className: s, controlClassName: c, labelClassName: l, descriptionClassName: u, errorClassName: d, ...m }) => {
469
+ let h = n && e ? `${e}-description` : void 0, g = r && e ? `${e}-error` : void 0;
470
+ return /* @__PURE__ */ p("div", {
471
+ ...m,
472
+ "aria-disabled": a || void 0,
473
+ className: M(q.wrapper, a && q.disabled, s),
474
+ "data-disabled": a || void 0,
399
475
  "data-invalid": !!r || void 0,
400
476
  children: [
401
477
  t && /* @__PURE__ */ p("label", {
402
- className: q.label,
403
- htmlFor: u,
478
+ htmlFor: e,
479
+ className: M(q.label, l),
404
480
  children: [t, i && /* @__PURE__ */ f("span", {
405
481
  className: q.required,
406
482
  "aria-hidden": "true",
407
483
  children: "*"
408
484
  })]
409
485
  }),
410
- n && /* @__PURE__ */ f("span", {
411
- className: q.description,
412
- id: d,
486
+ n && /* @__PURE__ */ f("div", {
487
+ id: h,
488
+ className: M(q.description, u),
413
489
  children: n
414
490
  }),
415
491
  /* @__PURE__ */ f("div", {
416
- className: q.control,
417
- children: s
492
+ className: M(q.control, c),
493
+ children: o
418
494
  }),
419
- r && /* @__PURE__ */ f("span", {
420
- className: q.errorText,
421
- id: m,
495
+ r && /* @__PURE__ */ f("div", {
496
+ id: g,
497
+ className: M(q.errorText, d),
422
498
  role: "alert",
423
499
  children: r
424
500
  })
425
501
  ]
426
502
  });
427
- }, J = {
428
- group: "_group_10xq8_1",
429
- groupLabel: "_groupLabel_10xq8_7",
430
- required: "_required_10xq8_17",
431
- vertical: "_vertical_10xq8_21",
432
- horizontal: "_horizontal_10xq8_25",
433
- option: "_option_10xq8_30",
434
- disabled: "_disabled_10xq8_41",
435
- customRadio: "_customRadio_10xq8_44",
436
- input: "_input_10xq8_49",
437
- label: "_label_10xq8_100"
438
- }, Ce = ({ label: e, description: t, value: n, defaultValue: r, onChange: i, options: o, name: s, required: c = !1, disabled: l = !1, error: u, className: d, orientation: m = "vertical" }) => {
439
- let h = a(), g = `${h}-group`, _ = e ? `${h}-label` : void 0, v = [t ? `${h}-description` : void 0, u ? `${h}-error` : void 0].filter(Boolean).join(" ") || void 0, [y, b] = T({
440
- value: n,
441
- defaultValue: r ?? "",
442
- onChange: i
443
- });
444
- return /* @__PURE__ */ p(Se, {
445
- id: h,
446
- description: t,
447
- required: c,
448
- disabled: l,
449
- error: u,
450
- children: [e && /* @__PURE__ */ p("span", {
451
- id: _,
452
- className: J.groupLabel,
453
- children: [e, c && /* @__PURE__ */ f("span", {
454
- className: J.required,
455
- "aria-hidden": "true",
456
- children: "*"
457
- })]
458
- }), /* @__PURE__ */ f("div", {
459
- id: g,
460
- className: j(J.group, J[m], d),
461
- role: "radiogroup",
462
- "aria-labelledby": _,
463
- "aria-required": c || void 0,
464
- "aria-invalid": !!u || void 0,
465
- "aria-describedby": v,
466
- children: o.map((e) => {
467
- let t = `${h}-${e.value}`, n = l || e.disabled;
468
- return /* @__PURE__ */ p("label", {
469
- htmlFor: t,
470
- className: j(J.option, { [J.disabled]: n }),
471
- children: [
472
- /* @__PURE__ */ f("input", {
473
- id: t,
474
- type: "radio",
475
- name: s,
476
- value: e.value,
477
- checked: y === e.value,
478
- required: c,
479
- disabled: n,
480
- onChange: () => {
481
- n || b(e.value);
482
- },
483
- className: J.input
484
- }),
485
- /* @__PURE__ */ f("span", {
486
- className: J.customRadio,
487
- "aria-hidden": "true"
488
- }),
489
- /* @__PURE__ */ f("span", {
490
- className: J.label,
491
- children: e.label
492
- })
493
- ]
494
- }, e.value);
495
- })
496
- })]
497
- });
498
- };
499
- Ce.displayName = "RadioGroup";
500
- var we = {
503
+ }, Oe = {
501
504
  option: "_option_1qm3g_1",
502
505
  selected: "_selected_1qm3g_10",
503
506
  disabled: "_disabled_1qm3g_10",
504
507
  active: "_active_1qm3g_21"
505
- }, Te = ({ option: e, isSelected: t, isActive: n, optionId: r, onSelect: i, onMouseEnter: a }) => {
508
+ }, ke = ({ option: e, isSelected: t, isActive: n, optionId: r, onSelect: i, onMouseEnter: a }) => {
506
509
  let o = !!e.disabled;
507
510
  return /* @__PURE__ */ f("li", {
508
511
  id: r,
509
512
  role: "option",
510
513
  "aria-selected": t,
511
514
  "aria-disabled": o || void 0,
512
- className: j(we.option, {
513
- [we.selected]: t,
514
- [we.active]: n,
515
- [we.disabled]: o
515
+ className: M(Oe.option, {
516
+ [Oe.selected]: t,
517
+ [Oe.active]: n,
518
+ [Oe.disabled]: o
516
519
  }),
517
520
  onClick: () => {
518
521
  o || i(e.value);
@@ -523,18 +526,18 @@ var we = {
523
526
  children: e.label
524
527
  });
525
528
  };
526
- Te.displayName = "SelectOption";
527
- var Ee = {
529
+ ke.displayName = "SelectOption";
530
+ var Ae = {
528
531
  dropdown: "_dropdown_1vrjb_1",
529
532
  dropdownIn: "_dropdownIn_1vrjb_1"
530
- }, De = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, selectedValue: o, activeIndex: s, onSelect: c, onMouseEnter: l }) => e ? /* @__PURE__ */ f(M, { children: /* @__PURE__ */ f("ul", {
533
+ }, je = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, selectedValue: o, activeIndex: s, onSelect: c, onMouseEnter: l }) => e ? /* @__PURE__ */ f(N, { children: /* @__PURE__ */ f("ul", {
531
534
  ref: r,
532
535
  id: t,
533
536
  role: "listbox",
534
537
  "aria-labelledby": n,
535
- className: Ee.dropdown,
538
+ className: Ae.dropdown,
536
539
  style: i,
537
- children: a.map((e, n) => /* @__PURE__ */ f(Te, {
540
+ children: a.map((e, n) => /* @__PURE__ */ f(ke, {
538
541
  option: e,
539
542
  isSelected: e.value === o,
540
543
  isActive: n === s,
@@ -543,8 +546,8 @@ var Ee = {
543
546
  onMouseEnter: () => l(n)
544
547
  }, e.value))
545
548
  }) }) : null;
546
- De.displayName = "SelectDropdown";
547
- var Y = {
549
+ je.displayName = "SelectDropdown";
550
+ var J = {
548
551
  control: "_control_mmsxg_1",
549
552
  disabled: "_disabled_mmsxg_19",
550
553
  arrow: "_arrow_mmsxg_24",
@@ -552,7 +555,7 @@ var Y = {
552
555
  placeholder: "_placeholder_mmsxg_42",
553
556
  error: "_error_mmsxg_46",
554
557
  open: "_open_mmsxg_87"
555
- }, Oe = ({ id: e, errorId: t, isOpen: n, disabled: r, required: i, listboxId: a, activeIndex: o, ariaLabel: s, error: c, displayText: l, isPlaceholder: u, buttonRef: d, onClick: m, onKeyDown: h }) => /* @__PURE__ */ p("button", {
558
+ }, Me = ({ id: e, errorId: t, isOpen: n, disabled: r, required: i, listboxId: a, activeIndex: o, ariaLabel: s, error: c, displayText: l, isPlaceholder: u, buttonRef: d, onClick: m, onKeyDown: h }) => /* @__PURE__ */ p("button", {
556
559
  id: e,
557
560
  ref: d,
558
561
  type: "button",
@@ -566,74 +569,74 @@ var Y = {
566
569
  "aria-controls": n ? a : void 0,
567
570
  "aria-describedby": t,
568
571
  "aria-activedescendant": n && o >= 0 ? `${a}-option-${o}` : void 0,
569
- className: j(Y.control, {
570
- [Y.error]: !!c,
571
- [Y.disabled]: r
572
+ className: M(J.control, {
573
+ [J.error]: !!c,
574
+ [J.disabled]: r
572
575
  }),
573
576
  onClick: m,
574
577
  onKeyDown: h,
575
578
  children: [/* @__PURE__ */ f("span", {
576
- className: j(Y.value, { [Y.placeholder]: u }),
579
+ className: M(J.value, { [J.placeholder]: u }),
577
580
  children: l
578
581
  }), /* @__PURE__ */ f("span", {
579
- className: j(Y.arrow, { [Y.open]: n }),
582
+ className: M(J.arrow, { [J.open]: n }),
580
583
  "aria-hidden": "true",
581
- children: /* @__PURE__ */ f(O, {})
584
+ children: /* @__PURE__ */ f(k, {})
582
585
  })]
583
586
  });
584
- Oe.displayName = "SelectTrigger";
587
+ Me.displayName = "SelectTrigger";
585
588
  //#endregion
586
589
  //#region src/components/Select/Select.tsx
587
- var ke = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u, onChange: d, options: m, placeholder: h = "Select...", required: g = !1, disabled: _ = !1, error: v, className: y }) => {
588
- let b = a(), x = r ?? b, S = `${x}-listbox`, C = v ? `${x}-error` : void 0, w = s(null), E = s(null), [D, O] = T({
590
+ var Ne = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u, onChange: d, options: m, placeholder: h = "Select...", required: g = !1, disabled: _ = !1, error: v, className: y }) => {
591
+ let b = a(), x = r ?? b, S = `${x}-listbox`, C = v ? `${x}-error` : void 0, w = s(null), D = s(null), [O, k] = T({
589
592
  value: l,
590
593
  defaultValue: u ?? "",
591
594
  onChange: d
592
- }), [k, A] = c(!1), [j, M] = c(-1), N = o(() => m.find((e) => e.value === D), [m, D]), P = !!N, { floatingStyles: F, setRef: L, setFloatingRef: R } = te({
593
- open: k,
595
+ }), [A, j] = c(!1), [M, N] = c(-1), P = o(() => m.find((e) => e.value === O), [m, O]), F = !!P, { floatingStyles: I, setRef: z, setFloatingRef: B } = L({
596
+ open: A,
594
597
  matchTriggerWidth: !0,
595
598
  mobileSheetBreakpoint: 640
596
- }), z = n(() => {
597
- let e = m.findIndex((e) => e.value === D && !e.disabled);
599
+ }), V = n(() => {
600
+ let e = m.findIndex((e) => e.value === O && !e.disabled);
598
601
  return e >= 0 ? e : m.findIndex((e) => !e.disabled);
599
- }, [m, D]), B = n(() => {
600
- _ || (M(z()), A(!0));
601
- }, [_, z]), V = n(() => {
602
- A(!1);
603
- }, []), H = n(() => {
602
+ }, [m, O]), H = n(() => {
603
+ _ || (N(V()), j(!0));
604
+ }, [_, V]), U = n(() => {
605
+ j(!1);
606
+ }, []), W = n(() => {
604
607
  if (!_) {
605
- if (k) {
606
- V();
608
+ if (A) {
609
+ U();
607
610
  return;
608
611
  }
609
- B();
612
+ H();
610
613
  }
611
614
  }, [
612
- V,
615
+ U,
613
616
  _,
614
- k,
615
- B
616
- ]), U = n((e) => {
617
- O(e), V(), w.current?.focus();
618
- }, [V, O]), { onKeyDown: ne } = ee({
619
- activeIndex: j,
620
- setActiveIndex: M,
617
+ A,
618
+ H
619
+ ]), G = n((e) => {
620
+ k(e), U(), w.current?.focus();
621
+ }, [U, k]), { onKeyDown: ee } = E({
622
+ activeIndex: M,
623
+ setActiveIndex: N,
621
624
  items: m,
622
- isOpen: k,
623
- onOpen: B,
624
- onClose: V,
625
+ isOpen: A,
626
+ onOpen: H,
627
+ onClose: U,
625
628
  onSelect: () => {
626
- let e = m[j];
627
- !e || e.disabled || U(e.value);
629
+ let e = m[M];
630
+ !e || e.disabled || G(e.value);
628
631
  }
629
632
  });
630
- I([w, E], V, k);
631
- let re = n((e) => {
632
- w.current = e, L(e);
633
- }, [L]), W = n((e) => {
634
- E.current = e, R(e);
635
- }, [R]);
636
- return /* @__PURE__ */ p(Se, {
633
+ R([w, D], U, A);
634
+ let te = n((e) => {
635
+ w.current = e, z(e);
636
+ }, [z]), ne = n((e) => {
637
+ D.current = e, B(e);
638
+ }, [B]);
639
+ return /* @__PURE__ */ p(De, {
637
640
  id: x,
638
641
  label: e,
639
642
  description: t,
@@ -642,70 +645,70 @@ var ke = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u,
642
645
  disabled: _,
643
646
  className: y,
644
647
  children: [
645
- /* @__PURE__ */ f(Oe, {
648
+ /* @__PURE__ */ f(Me, {
646
649
  id: x,
647
650
  errorId: C,
648
- isOpen: k,
651
+ isOpen: A,
649
652
  disabled: _,
650
653
  required: g,
651
654
  listboxId: S,
652
- activeIndex: j,
653
- ariaLabel: e ? void 0 : N?.label || h,
655
+ activeIndex: M,
656
+ ariaLabel: e ? void 0 : P?.label || h,
654
657
  error: v,
655
- displayText: N?.label ?? h,
656
- isPlaceholder: !P,
657
- buttonRef: re,
658
- onClick: H,
659
- onKeyDown: ne
658
+ displayText: P?.label ?? h,
659
+ isPlaceholder: !F,
660
+ buttonRef: te,
661
+ onClick: W,
662
+ onKeyDown: ee
660
663
  }),
661
664
  i && /* @__PURE__ */ f("input", {
662
665
  type: "hidden",
663
666
  name: i,
664
- value: D,
667
+ value: O,
665
668
  disabled: _
666
669
  }),
667
- /* @__PURE__ */ f(De, {
668
- isOpen: k,
670
+ /* @__PURE__ */ f(je, {
671
+ isOpen: A,
669
672
  listboxId: S,
670
673
  labelledById: x,
671
- style: F,
674
+ style: I,
672
675
  options: m,
673
- selectedValue: D,
674
- activeIndex: j,
675
- setDropdownRef: W,
676
- onSelect: U,
677
- onMouseEnter: M
676
+ selectedValue: O,
677
+ activeIndex: M,
678
+ setDropdownRef: ne,
679
+ onSelect: G,
680
+ onMouseEnter: N
678
681
  })
679
682
  ]
680
683
  });
681
684
  };
682
- ke.displayName = "Select";
685
+ Ne.displayName = "Select";
683
686
  //#endregion
684
687
  //#region src/components/Tabs/TabsContext.tsx
685
- var Ae = e(null), je = () => {
686
- let e = r(Ae);
688
+ var Pe = e(null), Fe = () => {
689
+ let e = r(Pe);
687
690
  if (!e) throw Error("Tabs components must be used inside Tabs");
688
691
  return e;
689
- }, Me = {
692
+ }, Ie = {
690
693
  list: "_list_astty_1",
691
694
  vertical: "_vertical_astty_8"
692
- }, Ne = ({ children: e, className: t, ...n }) => {
693
- let { orientation: r, appearance: i } = je();
695
+ }, Le = ({ children: e, className: t, ...n }) => {
696
+ let { orientation: r, appearance: i } = Fe();
694
697
  return /* @__PURE__ */ f("div", {
695
698
  ...n,
696
699
  role: "tablist",
697
700
  "aria-orientation": r,
698
- className: j(Me.list, r === "vertical" && Me.vertical, i === "underline" && Me.underline, i === "pills" && Me.pills, t),
701
+ className: M(Ie.list, r === "vertical" && Ie.vertical, i === "underline" && Ie.underline, i === "pills" && Ie.pills, t),
699
702
  children: e
700
703
  });
701
704
  };
702
- Ne.displayName = "TabsList";
703
- var Pe = {
705
+ Le.displayName = "TabsList";
706
+ var Re = {
704
707
  panel: "_panel_1e9ds_1",
705
708
  visible: "_visible_1e9ds_10",
706
709
  vertical: "_vertical_1e9ds_15"
707
- }, Fe = ({ index: e, children: t, className: n }) => {
708
- let { activeIndex: r, orientation: a } = je(), [o, s] = c(!1), l = r === e;
710
+ }, ze = ({ index: e, children: t, className: n }) => {
711
+ let { activeIndex: r, orientation: a } = Fe(), [o, s] = c(!1), l = r === e;
709
712
  return i(() => {
710
713
  if (!l) {
711
714
  s(!1);
@@ -719,12 +722,12 @@ var Pe = {
719
722
  "aria-labelledby": `tab-${e}`,
720
723
  hidden: !l,
721
724
  tabIndex: 0,
722
- className: j(Pe.panel, o && Pe.visible, a === "vertical" && Pe.vertical, n),
725
+ className: M(Re.panel, o && Re.visible, a === "vertical" && Re.vertical, n),
723
726
  children: t
724
727
  });
725
728
  };
726
- Fe.displayName = "TabsPanel";
727
- var X = {
729
+ ze.displayName = "TabsPanel";
730
+ var Y = {
728
731
  tab: "_tab_160gh_1",
729
732
  iconOnly: "_iconOnly_160gh_19",
730
733
  tabIcon: "_tabIcon_160gh_27",
@@ -733,8 +736,8 @@ var X = {
733
736
  underline: "_underline_160gh_53",
734
737
  pills: "_pills_160gh_81",
735
738
  vertical: "_vertical_160gh_93"
736
- }, Ie = t(({ index: e, children: t, className: r, disabled: i = !1, icon: a, onClick: o, onKeyDown: s, ...c }, l) => {
737
- let { activeIndex: u, setActiveIndex: d, orientation: m, appearance: h = "default", registerTab: g, onTabKeyDown: _ } = je(), v = u === e, y = !!a, b = y && t == null;
739
+ }, Be = t(({ index: e, children: t, className: r, disabled: i = !1, icon: a, onClick: o, onKeyDown: s, ...c }, l) => {
740
+ let { activeIndex: u, setActiveIndex: d, orientation: m, appearance: h = "default", registerTab: g, onTabKeyDown: _ } = Fe(), v = u === e, y = !!a, b = y && t == null;
738
741
  return /* @__PURE__ */ p("button", {
739
742
  type: "button",
740
743
  ref: n((t) => {
@@ -750,7 +753,7 @@ var X = {
750
753
  id: `tab-${e}`,
751
754
  disabled: i,
752
755
  tabIndex: v ? 0 : -1,
753
- className: j(X.tab, X[h], m === "vertical" && X.vertical, y && X.withIcon, b && X.iconOnly, r),
756
+ className: M(Y.tab, Y[h], m === "vertical" && Y.vertical, y && Y.withIcon, b && Y.iconOnly, r),
754
757
  onClick: (t) => {
755
758
  i || (d(e), o?.(t));
756
759
  },
@@ -759,25 +762,25 @@ var X = {
759
762
  },
760
763
  ...c,
761
764
  children: [y && /* @__PURE__ */ f("span", {
762
- className: X.tabIcon,
765
+ className: Y.tabIcon,
763
766
  "aria-hidden": "true",
764
767
  children: a
765
768
  }), t != null && /* @__PURE__ */ f("span", {
766
- className: X.label,
769
+ className: Y.label,
767
770
  children: t
768
771
  })]
769
772
  });
770
773
  });
771
- Ie.displayName = "Tab";
772
- var Le = {
774
+ Be.displayName = "Tab";
775
+ var Ve = {
773
776
  tabs: "_tabs_15a7w_1",
774
777
  vertical: "_vertical_15a7w_4"
775
- }, Re = ({ children: e, activeIndex: t, defaultActiveIndex: r = 0, onChange: i, orientation: a = "horizontal", appearance: o = "default", className: l }) => {
778
+ }, He = ({ children: e, activeIndex: t, defaultActiveIndex: r = 0, onChange: i, orientation: a = "horizontal", appearance: o = "default", className: l }) => {
776
779
  let [u, d] = c(r), p = t !== void 0, m = p ? t : u, h = n((e) => {
777
780
  p || d(e), i?.(e);
778
781
  }, [p, i]), g = s([]), _ = n((e, t) => {
779
782
  g.current[e] = t;
780
- }, []), { onKeyDown: v } = E({
783
+ }, []), { onKeyDown: v } = D({
781
784
  activeIndex: m,
782
785
  setActiveIndex: h,
783
786
  tabRefs: g,
@@ -790,25 +793,25 @@ var Le = {
790
793
  registerTab: _,
791
794
  onTabKeyDown: v
792
795
  };
793
- return /* @__PURE__ */ f(Ae.Provider, {
796
+ return /* @__PURE__ */ f(Pe.Provider, {
794
797
  value: y,
795
798
  children: /* @__PURE__ */ f("div", {
796
- className: j(Le.tabs, a === "vertical" && Le.vertical, l),
799
+ className: M(Ve.tabs, a === "vertical" && Ve.vertical, l),
797
800
  children: e
798
801
  })
799
802
  });
800
803
  };
801
- Re.displayName = "Tabs";
804
+ He.displayName = "Tabs";
802
805
  //#endregion
803
806
  //#region src/components/Tabs/index.ts
804
- var ze = Object.assign(Re, {
805
- List: Ne,
806
- Tab: Ie,
807
- Panel: Fe
808
- }), Be = {
807
+ var Ue = Object.assign(He, {
808
+ List: Le,
809
+ Tab: Be,
810
+ Panel: ze
811
+ }), We = {
809
812
  tooltip: "_tooltip_frlq7_1",
810
813
  arrow: "_arrow_frlq7_22"
811
- }, Ve = t(({ content: e, placement: t = "top", arrowRef: n, arrowX: r, arrowY: i, className: a, style: o, ...s }, c) => {
814
+ }, Ge = t(({ content: e, placement: t = "top", arrowRef: n, arrowX: r, arrowY: i, className: a, style: o, ...s }, c) => {
812
815
  let l = {
813
816
  top: "bottom",
814
817
  right: "left",
@@ -823,65 +826,65 @@ var ze = Object.assign(Re, {
823
826
  };
824
827
  return /* @__PURE__ */ p("div", {
825
828
  ref: c,
826
- className: j(Be.tooltip, a),
829
+ className: M(We.tooltip, a),
827
830
  "data-placement": t,
828
831
  "data-state": "open",
829
832
  style: o,
830
833
  ...s,
831
834
  children: [e, /* @__PURE__ */ f("div", {
832
835
  ref: n,
833
- className: Be.arrow,
836
+ className: We.arrow,
834
837
  style: u
835
838
  })]
836
839
  });
837
840
  });
838
- Ve.displayName = "TooltipContent";
841
+ Ge.displayName = "TooltipContent";
839
842
  //#endregion
840
843
  //#region src/components/Tooltip/Tooltip.tsx
841
- var He = ({ children: e, placement: t = "top", content: n, disabled: r = !1, delay: i = {
844
+ var Ke = ({ children: e, placement: t = "top", content: n, disabled: r = !1, delay: i = {
842
845
  open: 300,
843
846
  close: 100
844
847
  }, maxWidth: o = 250, className: l, onOpenChange: u }) => {
845
- let [g, _] = c(!1), v = s(null), y = a(), { context: b, floatingStyles: x, middlewareData: T, setRef: ee, setFloatingRef: E, placement: D } = te({
848
+ let [g, _] = c(!1), v = s(null), y = a(), { context: b, floatingStyles: x, middlewareData: T, setRef: E, setFloatingRef: D, placement: O } = L({
846
849
  open: g,
847
850
  onOpenChange: (e) => {
848
851
  r || (_(e), u?.(e));
849
852
  },
850
853
  placement: t,
851
854
  middleware: [h({ element: v })]
852
- }), O = T.arrow?.x, k = T.arrow?.y, { getReferenceProps: A, getFloatingProps: j } = w([C(b, { delay: {
855
+ }), k = T.arrow?.x, A = T.arrow?.y, { getReferenceProps: j, getFloatingProps: M } = w([C(b, { delay: {
853
856
  open: i.open,
854
857
  close: i.close
855
858
  } }), S(b)]);
856
859
  return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
857
- ref: ee,
860
+ ref: E,
858
861
  style: { display: "inline-flex" },
859
862
  "aria-describedby": g ? y : void 0,
860
- ...A(),
863
+ ...j(),
861
864
  children: e
862
- }), /* @__PURE__ */ f(m, { children: g && n && /* @__PURE__ */ f(Ve, {
865
+ }), /* @__PURE__ */ f(m, { children: g && n && /* @__PURE__ */ f(Ge, {
863
866
  id: y,
864
- ref: E,
867
+ ref: D,
865
868
  content: n,
866
869
  arrowRef: v,
867
- arrowX: O,
868
- arrowY: k,
870
+ arrowX: k,
871
+ arrowY: A,
869
872
  role: "tooltip",
870
873
  style: {
871
874
  ...x,
872
875
  maxWidth: typeof o == "number" ? `${o}px` : o
873
876
  },
874
- placement: D,
877
+ placement: O,
875
878
  className: l,
876
- ...j()
879
+ ...M()
877
880
  }) })] });
878
881
  };
879
- He.displayName = "Tooltip";
882
+ Ke.displayName = "Tooltip";
880
883
  //#endregion
881
884
  //#region src/utils/devWarning.ts
882
- var Ue = (e, t) => {
885
+ var qe = (e, t) => {
883
886
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
884
- }, Z = {
887
+ }, X = {
885
888
  button: "_button_s76yk_1",
886
889
  loading: "_loading_s76yk_21",
887
890
  solid: "_solid_s76yk_32",
@@ -900,9 +903,9 @@ var Ue = (e, t) => {
900
903
  icon: "_icon_s76yk_303",
901
904
  spinner: "_spinner_s76yk_329",
902
905
  "button-spin": "_button-spin_s76yk_1"
903
- }, We = t(({ children: e, color: t = "primary", variant: n = "solid", size: r = "md", type: i = "button", disabled: a = !1, loading: o = !1, loadingText: s, leftIcon: c, rightIcon: l, fullWidth: u = !1, iconOnly: d = !1, className: m, onClick: h, "aria-label": g, ..._ }, v) => {
906
+ }, Je = t(({ children: e, color: t = "primary", variant: n = "solid", size: r = "md", type: i = "button", disabled: a = !1, loading: o = !1, loadingText: s, leftIcon: c, rightIcon: l, fullWidth: u = !1, iconOnly: d = !1, className: m, onClick: h, "aria-label": g, ..._ }, v) => {
904
907
  let y = d || !e && !!(c || l), b = a || o, x = o && s ? s : e;
905
- return Ue(!y || !!g, "Button: icon-only buttons must provide aria-label."), /* @__PURE__ */ p("button", {
908
+ return qe(!y || !!g, "Button: icon-only buttons must provide aria-label."), /* @__PURE__ */ p("button", {
906
909
  ..._,
907
910
  ref: v,
908
911
  type: i,
@@ -910,91 +913,147 @@ var Ue = (e, t) => {
910
913
  onClick: b ? void 0 : h,
911
914
  "aria-label": g || void 0,
912
915
  "aria-busy": o || void 0,
913
- className: j(Z.button, Z[t], Z[n], Z[r], m, {
914
- [Z.disabled]: b,
915
- [Z.loading]: o,
916
- [Z.fullWidth]: u,
917
- [Z.iconOnly]: y
916
+ className: M(X.button, X[t], X[n], X[r], m, {
917
+ [X.disabled]: b,
918
+ [X.loading]: o,
919
+ [X.fullWidth]: u,
920
+ [X.iconOnly]: y
918
921
  }),
919
922
  children: [
920
923
  o && /* @__PURE__ */ f("span", {
921
- className: Z.spinner,
924
+ className: X.spinner,
922
925
  "aria-hidden": "true"
923
926
  }),
924
927
  !o && c && /* @__PURE__ */ f("span", {
925
- className: Z.icon,
928
+ className: X.icon,
926
929
  children: c
927
930
  }),
928
931
  x && !y && /* @__PURE__ */ f("span", {
929
- className: Z.label,
932
+ className: X.label,
930
933
  children: x
931
934
  }),
932
935
  !o && l && /* @__PURE__ */ f("span", {
933
- className: Z.icon,
936
+ className: X.icon,
934
937
  children: l
935
938
  })
936
939
  ]
937
940
  });
938
941
  });
939
- We.displayName = "Button";
940
- var Q = {
941
- wrapper: "_wrapper_1s06j_1",
942
- input: "_input_1s06j_9",
943
- customCheckbox: "_customCheckbox_1s06j_21",
944
- checkmark: "_checkmark_1s06j_38",
945
- container: "_container_1s06j_54",
946
- label: "_label_1s06j_60",
947
- error: "_error_1s06j_65",
948
- errorText: "_errorText_1s06j_69",
949
- disabled: "_disabled_1s06j_115"
950
- }, Ge = t(({ label: e, checked: t, defaultChecked: n = !1, disabled: r = !1, className: i, onCheckedChange: o, error: s }, c) => {
951
- let l = a(), u = !!s, [d, m] = T({
952
- value: t,
953
- defaultValue: n,
954
- onChange: o
955
- });
956
- return /* @__PURE__ */ p("div", {
957
- className: Q.container,
958
- children: [/* @__PURE__ */ p("label", {
959
- htmlFor: l,
960
- className: j(Q.wrapper, r && Q.disabled, i),
961
- children: [
962
- /* @__PURE__ */ f("input", {
963
- ref: c,
964
- id: l,
965
- type: "checkbox",
966
- checked: d,
967
- disabled: r,
968
- onChange: (e) => {
969
- m(e.target.checked);
970
- },
971
- className: Q.input,
972
- "aria-invalid": u || void 0,
973
- "aria-describedby": u ? `${l}-error` : void 0,
974
- "aria-label": e ? void 0 : "Checkbox"
975
- }),
976
- /* @__PURE__ */ f("span", {
977
- className: j(Q.customCheckbox, u && Q.error),
978
- "aria-hidden": "true",
979
- children: d && /* @__PURE__ */ f("span", {
980
- className: Q.checkmark,
981
- children: /* @__PURE__ */ f(D, {})
942
+ Je.displayName = "Button";
943
+ var Z = {
944
+ wrapper: "_wrapper_1xtic_1",
945
+ wrapperSm: "_wrapperSm_1xtic_12",
946
+ wrapperMd: "_wrapperMd_1xtic_18",
947
+ wrapperLg: "_wrapperLg_1xtic_24",
948
+ iconOnly: "_iconOnly_1xtic_30",
949
+ container: "_container_1xtic_36",
950
+ containerSm: "_containerSm_1xtic_43",
951
+ containerMd: "_containerMd_1xtic_47",
952
+ containerLg: "_containerLg_1xtic_51",
953
+ input: "_input_1xtic_55",
954
+ customCheckbox: "_customCheckbox_1xtic_67",
955
+ requiredMark: "_requiredMark_1xtic_82",
956
+ checkmark: "_checkmark_1xtic_92",
957
+ indeterminateMark: "_indeterminateMark_1xtic_108",
958
+ label: "_label_1xtic_118",
959
+ descriptionText: "_descriptionText_1xtic_123",
960
+ errorText: "_errorText_1xtic_130",
961
+ labelSm: "_labelSm_1xtic_137",
962
+ labelMd: "_labelMd_1xtic_141",
963
+ labelLg: "_labelLg_1xtic_145",
964
+ indeterminate: "_indeterminate_1xtic_108",
965
+ error: "_error_1xtic_130",
966
+ disabled: "_disabled_1xtic_200"
967
+ }, Ye = {
968
+ sm: Z.labelSm,
969
+ md: Z.labelMd,
970
+ lg: Z.labelLg
971
+ }, Xe = {
972
+ sm: Z.wrapperSm,
973
+ md: Z.wrapperMd,
974
+ lg: Z.wrapperLg
975
+ }, Ze = {
976
+ sm: Z.containerSm,
977
+ md: Z.containerMd,
978
+ lg: Z.containerLg
979
+ }, Qe = t(({ id: e, label: t, description: r, checked: o, size: c = "md", defaultChecked: l = !1, disabled: u = !1, required: d = !1, indeterminate: m = !1, className: h, wrapperClassName: g, onCheckedChange: _, error: v, "aria-label": y, "aria-labelledby": b, "aria-describedby": x, ...S }, C) => {
980
+ let w = a(), E = e ?? w, D = s(null), k = !!v, A = r ? `${E}-description` : void 0, j = k ? `${E}-error` : void 0, N = [
981
+ x,
982
+ A,
983
+ j
984
+ ].filter(Boolean).join(" "), [P, F] = T({
985
+ value: o,
986
+ defaultValue: l,
987
+ onChange: _
988
+ }), I = n((e) => {
989
+ if (D.current = e, typeof C == "function") {
990
+ C(e);
991
+ return;
992
+ }
993
+ C && (C.current = e);
994
+ }, [C]);
995
+ i(() => {
996
+ D.current && (D.current.indeterminate = m);
997
+ }, [m]);
998
+ let L = (e) => {
999
+ F(e.target.checked);
1000
+ };
1001
+ return qe(!!(t || y || b), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ p("div", {
1002
+ className: M(Z.container, Ze[c], h),
1003
+ children: [
1004
+ /* @__PURE__ */ p("label", {
1005
+ htmlFor: E,
1006
+ className: M(Z.wrapper, Xe[c], !t && Z.iconOnly, u && Z.disabled, g),
1007
+ children: [
1008
+ /* @__PURE__ */ f("input", {
1009
+ ...S,
1010
+ ref: I,
1011
+ id: E,
1012
+ type: "checkbox",
1013
+ checked: P,
1014
+ disabled: u,
1015
+ required: d,
1016
+ onChange: L,
1017
+ className: Z.input,
1018
+ "aria-label": y,
1019
+ "aria-labelledby": b,
1020
+ "aria-checked": m ? "mixed" : S["aria-checked"],
1021
+ "aria-invalid": k ? !0 : S["aria-invalid"],
1022
+ "aria-describedby": N || void 0
1023
+ }),
1024
+ /* @__PURE__ */ f("span", {
1025
+ className: M(Z.customCheckbox, k && Z.error, m && Z.indeterminate),
1026
+ "aria-hidden": "true",
1027
+ children: m ? /* @__PURE__ */ f("span", { className: Z.indeterminateMark }) : P && /* @__PURE__ */ f("span", {
1028
+ className: Z.checkmark,
1029
+ children: /* @__PURE__ */ f(O, {})
1030
+ })
1031
+ }),
1032
+ t && /* @__PURE__ */ p("span", {
1033
+ className: M(Z.label, Ye[c]),
1034
+ children: [t, d && /* @__PURE__ */ f("span", {
1035
+ className: Z.requiredMark,
1036
+ "aria-hidden": "true",
1037
+ children: "*"
1038
+ })]
982
1039
  })
983
- }),
984
- e && /* @__PURE__ */ f("span", {
985
- className: Q.label,
986
- children: e
987
- })
988
- ]
989
- }), u && /* @__PURE__ */ f("span", {
990
- id: `${l}-error`,
991
- className: Q.errorText,
992
- children: s
993
- })]
1040
+ ]
1041
+ }),
1042
+ r && /* @__PURE__ */ f("span", {
1043
+ id: A,
1044
+ className: Z.descriptionText,
1045
+ children: r
1046
+ }),
1047
+ k && /* @__PURE__ */ f("span", {
1048
+ id: j,
1049
+ className: Z.errorText,
1050
+ children: v
1051
+ })
1052
+ ]
994
1053
  });
995
1054
  });
996
- Ge.displayName = "Checkbox";
997
- var $ = {
1055
+ Qe.displayName = "Checkbox";
1056
+ var Q = {
998
1057
  inputWrapper: "_inputWrapper_y9bue_1",
999
1058
  input: "_input_y9bue_1",
1000
1059
  error: "_error_y9bue_41",
@@ -1013,15 +1072,15 @@ var $ = {
1013
1072
  toneDanger: "_toneDanger_y9bue_169",
1014
1073
  toneMuted: "_toneMuted_y9bue_173",
1015
1074
  toneInverse: "_toneInverse_y9bue_177"
1016
- }, Ke = {
1017
- default: $.toneDefault,
1018
- primary: $.tonePrimary,
1019
- secondary: $.toneSecondary,
1020
- success: $.toneSuccess,
1021
- danger: $.toneDanger,
1022
- muted: $.toneMuted,
1023
- inverse: $.toneInverse
1024
- }, qe = (e = "text", t) => {
1075
+ }, $e = {
1076
+ default: Q.toneDefault,
1077
+ primary: Q.tonePrimary,
1078
+ secondary: Q.toneSecondary,
1079
+ success: Q.toneSuccess,
1080
+ danger: Q.toneDanger,
1081
+ muted: Q.toneMuted,
1082
+ inverse: Q.toneInverse
1083
+ }, et = (e = "text", t) => {
1025
1084
  if (t) return t;
1026
1085
  switch (e) {
1027
1086
  case "email": return "email";
@@ -1031,86 +1090,166 @@ var $ = {
1031
1090
  case "search": return "off";
1032
1091
  default: return;
1033
1092
  }
1034
- }, Je = t(({ id: e, label: t, name: r, description: i, placeholder: o, value: l, defaultValue: u, onChange: d, type: m = "text", size: h = "md", error: g, disabled: _ = !1, required: v = !1, className: y, autoComplete: b, readOnly: x = !1, clearable: S = !1, onClear: C, leftAdornment: w, rightAdornment: T, clearIcon: ee, leftAdornmentTone: E = "default", rightAdornmentTone: D = "default", clearIconTone: O = "danger", autoFocus: k, maxLength: A, onMouseEnter: M, onMouseLeave: N, "aria-describedby": P, "aria-invalid": F, ...te }, I) => {
1035
- let L = a(), R = e ?? L, z = s(null), [B, V] = c(u ?? ""), H = l !== void 0, U = H ? l : B, ne = U !== "", re = qe(m, b), W = S && ne && !_ && !x, ie = [
1036
- P,
1037
- i ? `${R}-description` : void 0,
1038
- g ? `${R}-error` : void 0
1039
- ].filter(Boolean).join(" "), ae = ee ?? "×", oe = n((e) => {
1040
- if (z.current = e, typeof I == "function") {
1041
- I(e);
1093
+ }, tt = t(({ id: e, label: t, name: r, description: i, placeholder: o, value: l, defaultValue: u, onChange: d, type: m = "text", size: h = "md", error: g, disabled: _ = !1, required: v = !1, className: y, autoComplete: b, readOnly: x = !1, clearable: S = !1, onClear: C, leftAdornment: w, rightAdornment: T, clearIcon: E, leftAdornmentTone: D = "default", rightAdornmentTone: O = "default", clearIconTone: k = "danger", autoFocus: A, maxLength: j, onMouseEnter: N, onMouseLeave: P, "aria-describedby": F, "aria-invalid": I, ...L }, R) => {
1094
+ let z = a(), B = e ?? z, V = s(null), [H, U] = c(u ?? ""), W = l !== void 0, G = W ? l : H, ee = G !== "", te = et(m, b), ne = S && ee && !_ && !x, re = [
1095
+ F,
1096
+ i ? `${B}-description` : void 0,
1097
+ g ? `${B}-error` : void 0
1098
+ ].filter(Boolean).join(" "), ie = E ?? "×", ae = n((e) => {
1099
+ if (V.current = e, typeof R == "function") {
1100
+ R(e);
1042
1101
  return;
1043
1102
  }
1044
- I && (I.current = e);
1045
- }, [I]), se = n((e) => {
1103
+ R && (R.current = e);
1104
+ }, [R]), oe = n((e) => {
1046
1105
  let t = e.target.value;
1047
- H || V(t), d?.(e);
1048
- }, [H, d]), G = n(() => {
1049
- H || V(""), C?.(), z.current?.focus();
1050
- }, [H, C]), ce = !W && !!T;
1051
- return /* @__PURE__ */ f(Se, {
1052
- id: R,
1106
+ W || U(t), d?.(e);
1107
+ }, [W, d]), se = n(() => {
1108
+ W || U(""), C?.(), V.current?.focus();
1109
+ }, [W, C]), ce = !ne && !!T;
1110
+ return /* @__PURE__ */ f(De, {
1111
+ id: B,
1053
1112
  label: t,
1054
1113
  description: i,
1055
1114
  error: g,
1056
1115
  required: v,
1057
1116
  disabled: _,
1058
1117
  children: /* @__PURE__ */ p("div", {
1059
- className: j($.inputWrapper, {
1060
- [$.hasLeftAdornment]: !!w,
1061
- [$.hasRightAdornment]: !!T || W
1118
+ className: M(Q.inputWrapper, {
1119
+ [Q.hasLeftAdornment]: !!w,
1120
+ [Q.hasRightAdornment]: !!T || ne
1062
1121
  }),
1063
1122
  children: [
1064
1123
  w && /* @__PURE__ */ f("span", {
1065
1124
  "aria-hidden": "true",
1066
- className: j($.leftAdornment, Ke[E]),
1125
+ className: M(Q.leftAdornment, $e[D]),
1067
1126
  children: w
1068
1127
  }),
1069
1128
  /* @__PURE__ */ f("input", {
1070
- ...te,
1071
- ref: oe,
1072
- id: R,
1129
+ ...L,
1130
+ ref: ae,
1131
+ id: B,
1073
1132
  name: r,
1074
1133
  type: m,
1075
- autoComplete: re,
1076
- className: j($.input, $[h], { [$.error]: !!g }, y),
1077
- value: U,
1078
- onChange: se,
1134
+ autoComplete: te,
1135
+ className: M(Q.input, Q[h], { [Q.error]: !!g }, y),
1136
+ value: G,
1137
+ onChange: oe,
1079
1138
  placeholder: o,
1080
1139
  disabled: _,
1081
1140
  readOnly: x,
1082
1141
  required: v,
1083
- autoFocus: k,
1084
- maxLength: A,
1085
- "aria-invalid": g ? !0 : F,
1086
- "aria-describedby": ie || void 0,
1087
- onMouseEnter: M,
1088
- onMouseLeave: N
1142
+ autoFocus: A,
1143
+ maxLength: j,
1144
+ "aria-invalid": g ? !0 : I,
1145
+ "aria-describedby": re || void 0,
1146
+ onMouseEnter: N,
1147
+ onMouseLeave: P
1089
1148
  }),
1090
- W && /* @__PURE__ */ f("button", {
1149
+ ne && /* @__PURE__ */ f("button", {
1091
1150
  type: "button",
1092
- className: j($.clearButton, Ke[O]),
1093
- onClick: G,
1151
+ className: M(Q.clearButton, $e[k]),
1152
+ onClick: se,
1094
1153
  "aria-label": "Clear input",
1095
- children: ae
1154
+ children: ie
1096
1155
  }),
1097
1156
  ce && /* @__PURE__ */ f("div", {
1098
- className: j($.rightAdornment, Ke[D]),
1157
+ className: M(Q.rightAdornment, $e[O]),
1099
1158
  children: T
1100
1159
  })
1101
1160
  ]
1102
1161
  })
1103
1162
  });
1104
1163
  });
1105
- Je.displayName = "Input";
1164
+ tt.displayName = "Input";
1165
+ var $ = {
1166
+ root: "_root_6w580_1",
1167
+ invalid: "_invalid_6w580_14",
1168
+ control: "_control_6w580_14",
1169
+ label: "_label_6w580_17",
1170
+ wrapper: "_wrapper_6w580_20",
1171
+ input: "_input_6w580_21",
1172
+ disabled: "_disabled_6w580_24",
1173
+ description: "_description_6w580_32",
1174
+ sm: "_sm_6w580_36",
1175
+ md: "_md_6w580_45",
1176
+ lg: "_lg_6w580_54",
1177
+ indicator: "_indicator_6w580_109",
1178
+ content: "_content_6w580_182",
1179
+ error: "_error_6w580_198"
1180
+ }, nt = t(({ value: e, checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, size: o, error: s, onCheckedChange: c, label: l, description: u, wrapperClassName: d, className: m, id: h, name: g, "aria-describedby": _, ...v }, y) => {
1181
+ let b = Te(), x = a(), S = h ?? x, C = u ? `${S}-description` : void 0, w = s ? `${S}-error` : void 0, E = [
1182
+ C,
1183
+ w,
1184
+ b?.describedBy,
1185
+ _
1186
+ ].filter(Boolean).join(" ") || void 0, D = b !== null, [O, k] = T({
1187
+ value: t,
1188
+ defaultValue: n,
1189
+ onChange: c
1190
+ }), A = D ? b.value === e : O, j = !!b?.disabled || r, N = !!b?.required || i, P = b?.name ?? g, F = !!(s || b?.invalid), I = o ?? b?.size ?? "md", L = (t) => {
1191
+ if (!j) {
1192
+ if (D) {
1193
+ b.onValueChange(e);
1194
+ return;
1195
+ }
1196
+ k(t.currentTarget.checked);
1197
+ }
1198
+ };
1199
+ return /* @__PURE__ */ p("div", {
1200
+ className: M($.root, $[I], F && $.invalid, j && $.disabled, m),
1201
+ children: [/* @__PURE__ */ p("label", {
1202
+ htmlFor: S,
1203
+ className: M($.wrapper, d),
1204
+ children: [
1205
+ /* @__PURE__ */ f("input", {
1206
+ ...v,
1207
+ ref: y,
1208
+ id: S,
1209
+ type: "radio",
1210
+ name: P,
1211
+ value: e,
1212
+ checked: A,
1213
+ disabled: j,
1214
+ required: N,
1215
+ "aria-invalid": F || void 0,
1216
+ "aria-describedby": E,
1217
+ className: $.input,
1218
+ onChange: L
1219
+ }),
1220
+ /* @__PURE__ */ f("span", {
1221
+ className: $.control,
1222
+ "aria-hidden": "true",
1223
+ children: /* @__PURE__ */ f("span", { className: $.indicator })
1224
+ }),
1225
+ (l || u) && /* @__PURE__ */ p("span", {
1226
+ className: $.content,
1227
+ children: [l && /* @__PURE__ */ f("span", {
1228
+ className: $.label,
1229
+ children: l
1230
+ }), u && /* @__PURE__ */ f("span", {
1231
+ id: C,
1232
+ className: $.description,
1233
+ children: u
1234
+ })]
1235
+ })
1236
+ ]
1237
+ }), s && /* @__PURE__ */ f("div", {
1238
+ id: w,
1239
+ className: $.error,
1240
+ children: s
1241
+ })]
1242
+ });
1243
+ });
1244
+ nt.displayName = "Radio";
1106
1245
  //#endregion
1107
1246
  //#region src/theme/ThemeContext.ts
1108
- var Ye = e(null), Xe = (e) => e === "highContrast" ? "high-contrast" : e, Ze = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, children: r }) => {
1247
+ var rt = e(null), it = (e) => e === "highContrast" ? "high-contrast" : e, at = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, children: r }) => {
1109
1248
  let [a, s] = T({
1110
1249
  value: e,
1111
1250
  defaultValue: t,
1112
1251
  onChange: n
1113
- }), c = Xe(a);
1252
+ }), c = it(a);
1114
1253
  i(() => {
1115
1254
  if (typeof document > "u") return;
1116
1255
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -1126,7 +1265,7 @@ var Ye = e(null), Xe = (e) => e === "highContrast" ? "high-contrast" : e, Ze = (
1126
1265
  theme: a,
1127
1266
  setTheme: s
1128
1267
  }), [a, s]);
1129
- return /* @__PURE__ */ f(Ye.Provider, {
1268
+ return /* @__PURE__ */ f(rt.Provider, {
1130
1269
  value: l,
1131
1270
  children: /* @__PURE__ */ f("div", {
1132
1271
  "data-vellira-theme": c,
@@ -1134,13 +1273,13 @@ var Ye = e(null), Xe = (e) => e === "highContrast" ? "high-contrast" : e, Ze = (
1134
1273
  })
1135
1274
  });
1136
1275
  };
1137
- Ze.displayName = "ThemeProvider";
1276
+ at.displayName = "ThemeProvider";
1138
1277
  //#endregion
1139
1278
  //#region src/theme/useTheme.ts
1140
- function Qe() {
1141
- let e = r(Ye);
1279
+ function ot() {
1280
+ let e = r(rt);
1142
1281
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
1143
1282
  return e;
1144
1283
  }
1145
1284
  //#endregion
1146
- export { We as Button, Ge as Checkbox, oe as Dropdown, Se as FormField, Je as Input, xe as Modal, Ce as RadioGroup, ke as Select, ze as Tabs, Ze as ThemeProvider, He as Tooltip, Qe as useTheme };
1285
+ export { Je as Button, Qe as Checkbox, ae as Dropdown, De as FormField, tt as Input, Se as Modal, nt as Radio, Ee as RadioGroup, Ne as Select, Ue as Tabs, at as ThemeProvider, Ke as Tooltip, ot as useTheme };