@vellira-ui/react 2.23.0 → 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
@@ -42,7 +42,7 @@ var I = (e) => {
42
42
  t.removeEventListener("change", r);
43
43
  };
44
44
  }, [e]), t;
45
- }, ee = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r = "fixed", matchTriggerWidth: a = !1, mobileSheetBreakpoint: s, middleware: c = [] } = {}) => {
45
+ }, L = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r = "fixed", matchTriggerWidth: a = !1, mobileSheetBreakpoint: s, middleware: c = [] } = {}) => {
46
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,
@@ -76,7 +76,7 @@ var I = (e) => {
76
76
  setFloatingRef: u.setFloating,
77
77
  updatePosition: f
78
78
  };
79
- }, L = (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 I = (e) => {
88
88
  };
89
89
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
90
90
  }, [n]);
91
- }, R = { group: "_group_1yomt_1" }, z = ({ label: e }) => /* @__PURE__ */ f("li", {
91
+ }, z = { group: "_group_1yomt_1" }, B = ({ label: e }) => /* @__PURE__ */ f("li", {
92
92
  role: "presentation",
93
- className: R.group,
93
+ className: z.group,
94
94
  children: e
95
- }), B = {
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 I = (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
- }, V = ({ 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 I = (e) => {
114
114
  "data-danger": i || void 0,
115
115
  onClick: a ? void 0 : s,
116
116
  onMouseEnter: a ? void 0 : c,
117
- className: M(B.item, {
118
- [B.active]: o,
119
- [B.disabled]: a,
120
- [B.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: B.itemIcon,
125
+ className: V.itemIcon,
126
126
  children: r
127
127
  }),
128
128
  m && /* @__PURE__ */ f("span", {
129
- className: M(B.itemText, B[`itemText--${u}`]),
129
+ className: M(V.itemText, V[`itemText--${u}`]),
130
130
  children: m
131
131
  }),
132
132
  l && /* @__PURE__ */ f("span", {
133
- className: B.itemShortcut,
133
+ className: V.itemShortcut,
134
134
  children: l
135
135
  })
136
136
  ]
137
137
  });
138
- }, H = { group: "_group_ts4nb_1" }, U = () => /* @__PURE__ */ f("li", {
138
+ }, U = { group: "_group_ts4nb_1" }, W = () => /* @__PURE__ */ f("li", {
139
139
  role: "separator",
140
- className: H.separator,
140
+ className: U.separator,
141
141
  "aria-hidden": "true"
142
- }), W = {
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
- }, te = t(({ children: e, isOpen: t, icon: n, arrowIcon: r, showArrow: i = !0, rotateAngle: a = 90, label: o, className: s, ...c }, l) => {
149
+ }, ee = t(({ children: e, isOpen: t, icon: n, arrowIcon: r, showArrow: i = !0, rotateAngle: a = 90, label: o, className: s, ...c }, l) => {
150
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: M(W.button, {
156
- [W.disabled]: c.disabled,
157
- [W.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,36 +163,36 @@ var I = (e) => {
163
163
  children: [
164
164
  u && /* @__PURE__ */ f("span", {
165
165
  "aria-hidden": "true",
166
- className: W.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: M(W.arrow, { [W.open]: t }),
172
+ className: M(G.arrow, { [G.open]: t }),
173
173
  children: g
174
174
  })
175
175
  ]
176
176
  });
177
177
  });
178
- te.displayName = "DropdownTrigger";
178
+ ee.displayName = "DropdownTrigger";
179
179
  //#endregion
180
180
  //#region src/components/Dropdown/types.ts
181
- var ne = (e) => e.type !== "group" && e.type !== "separator", G = (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 } = ee({
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
- }), A = r.filter(ne), j = v && b >= 0 ? `${w}-item-${b}` : void 0, N = () => A.findIndex((e) => !e.disabled), P = () => {
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
189
  return x(t ? N() : -1), t;
190
190
  });
191
191
  }, I = () => {
192
192
  y(!1), x(-1);
193
- }, R = () => {
193
+ }, z = () => {
194
194
  I(), S.current?.focus();
195
- }, { onKeyDown: B } = E({
195
+ }, { onKeyDown: V } = E({
196
196
  activeIndex: b,
197
197
  setActiveIndex: x,
198
198
  items: A,
@@ -200,20 +200,20 @@ var ne = (e) => e.type !== "group" && e.type !== "separator", G = (e) => e.type
200
200
  onOpen: P,
201
201
  onSelect: () => {
202
202
  let e = A[b];
203
- !e || e.disabled || (i?.(e.value), R());
203
+ !e || e.disabled || (i?.(e.value), z());
204
204
  },
205
- onClose: R
205
+ onClose: z
206
206
  });
207
- L([S, C], () => I(), v);
208
- let H = (e) => {
207
+ R([S, C], () => I(), v);
208
+ let U = (e) => {
209
209
  S.current = e, O(e);
210
- }, W = (e) => {
210
+ }, G = (e) => {
211
211
  C.current = e, k(e), e?.focus();
212
212
  };
213
213
  return /* @__PURE__ */ p("div", {
214
214
  className: M(ie.wrapper, o),
215
- children: [/* @__PURE__ */ f(te, {
216
- ref: H,
215
+ children: [/* @__PURE__ */ f(ee, {
216
+ ref: U,
217
217
  id: T,
218
218
  isOpen: v,
219
219
  disabled: l,
@@ -223,31 +223,31 @@ var ne = (e) => e.type !== "group" && e.type !== "separator", G = (e) => e.type
223
223
  arrowIcon: _,
224
224
  rotateAngle: u,
225
225
  onClick: P,
226
- onKeyDown: B,
226
+ onKeyDown: V,
227
227
  "aria-expanded": v,
228
228
  "aria-haspopup": "menu",
229
229
  ...v && { "aria-controls": w },
230
230
  children: n
231
231
  }), v && /* @__PURE__ */ f(F, {
232
- ref: W,
232
+ ref: G,
233
233
  floatingStyles: D,
234
234
  menuId: w,
235
235
  labelledById: n ? T : void 0,
236
236
  label: n ? void 0 : e,
237
237
  activeDescendantId: j,
238
- onKeyDown: B,
238
+ onKeyDown: V,
239
239
  children: r.map((e, t) => {
240
- if (G(e)) return /* @__PURE__ */ f(z, { label: e.label }, `group-${e.label}`);
241
- if (re(e)) return /* @__PURE__ */ f(U, {}, `separator-${t}`);
242
- if (ne(e)) {
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
243
  let t = A.findIndex((t) => t === e);
244
- return /* @__PURE__ */ f(V, {
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), R());
250
+ e.disabled || (i?.(e.value), z());
251
251
  },
252
252
  onMouseEnter: () => {
253
253
  t < 0 || e.disabled || x(t);
@@ -317,7 +317,7 @@ 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 }) => {
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
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]);
@@ -325,8 +325,8 @@ var ge = ({ isOpen: e, onClose: t }) => {
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
331
  }, [r]), !r && !d ? null : /* @__PURE__ */ f(N, { children: /* @__PURE__ */ f("div", {
332
332
  className: M(_e.overlay, r && _e["overlay--open"], d && _e["overlay--animated"], a),
@@ -355,10 +355,10 @@ 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
363
  return e ? /* @__PURE__ */ f(oe.Provider, {
364
364
  value: {
@@ -366,7 +366,7 @@ var be = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick
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_aekin_1",
388
- label: "_label_aekin_9",
389
- required: "_required_aekin_20",
390
- description: "_description_aekin_25",
391
- control: "_control_aekin_32",
392
- errorText: "_errorText_aekin_40",
393
- disabled: "_disabled_aekin_47"
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: M(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: M(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: M(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: M(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(N, { 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: M(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: M(Y.value, { [Y.placeholder]: u }),
579
+ className: M(J.value, { [J.placeholder]: u }),
577
580
  children: l
578
581
  }), /* @__PURE__ */ f("span", {
579
- className: M(Y.arrow, { [Y.open]: n }),
582
+ className: M(J.arrow, { [J.open]: n }),
580
583
  "aria-hidden": "true",
581
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 }) => {
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 }) => {
588
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
- }), [A, j] = c(!1), [M, N] = c(-1), P = o(() => m.find((e) => e.value === O), [m, O]), F = !!P, { floatingStyles: I, setRef: R, setFloatingRef: z } = ee({
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({
593
596
  open: A,
594
597
  matchTriggerWidth: !0,
595
598
  mobileSheetBreakpoint: 640
596
- }), B = n(() => {
599
+ }), V = n(() => {
597
600
  let e = m.findIndex((e) => e.value === O && !e.disabled);
598
601
  return e >= 0 ? e : m.findIndex((e) => !e.disabled);
599
- }, [m, O]), V = n(() => {
600
- _ || (N(B()), j(!0));
601
- }, [_, B]), H = n(() => {
602
+ }, [m, O]), H = n(() => {
603
+ _ || (N(V()), j(!0));
604
+ }, [_, V]), U = n(() => {
602
605
  j(!1);
603
- }, []), U = n(() => {
606
+ }, []), W = n(() => {
604
607
  if (!_) {
605
608
  if (A) {
606
- H();
609
+ U();
607
610
  return;
608
611
  }
609
- V();
612
+ H();
610
613
  }
611
614
  }, [
612
- H,
615
+ U,
613
616
  _,
614
617
  A,
615
- V
616
- ]), W = n((e) => {
617
- k(e), H(), w.current?.focus();
618
- }, [H, k]), { onKeyDown: te } = E({
618
+ H
619
+ ]), G = n((e) => {
620
+ k(e), U(), w.current?.focus();
621
+ }, [U, k]), { onKeyDown: ee } = E({
619
622
  activeIndex: M,
620
623
  setActiveIndex: N,
621
624
  items: m,
622
625
  isOpen: A,
623
- onOpen: V,
624
- onClose: H,
626
+ onOpen: H,
627
+ onClose: U,
625
628
  onSelect: () => {
626
629
  let e = m[M];
627
- !e || e.disabled || W(e.value);
630
+ !e || e.disabled || G(e.value);
628
631
  }
629
632
  });
630
- L([w, D], H, A);
631
- let ne = n((e) => {
632
- w.current = e, R(e);
633
- }, [R]), G = n((e) => {
634
- D.current = e, z(e);
635
- }, [z]);
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,7 +645,7 @@ 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
651
  isOpen: A,
@@ -654,9 +657,9 @@ var ke = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u,
654
657
  error: v,
655
658
  displayText: P?.label ?? h,
656
659
  isPlaceholder: !F,
657
- buttonRef: ne,
658
- onClick: U,
659
- onKeyDown: te
660
+ buttonRef: te,
661
+ onClick: W,
662
+ onKeyDown: ee
660
663
  }),
661
664
  i && /* @__PURE__ */ f("input", {
662
665
  type: "hidden",
@@ -664,7 +667,7 @@ var ke = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u,
664
667
  value: O,
665
668
  disabled: _
666
669
  }),
667
- /* @__PURE__ */ f(De, {
670
+ /* @__PURE__ */ f(je, {
668
671
  isOpen: A,
669
672
  listboxId: S,
670
673
  labelledById: x,
@@ -672,40 +675,40 @@ var ke = ({ label: e, description: t, id: r, name: i, value: l, defaultValue: u,
672
675
  options: m,
673
676
  selectedValue: O,
674
677
  activeIndex: M,
675
- setDropdownRef: G,
676
- onSelect: W,
678
+ setDropdownRef: ne,
679
+ onSelect: G,
677
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: M(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: M(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: M(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,20 +762,20 @@ 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) => {
@@ -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: M(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,26 +826,26 @@ var ze = Object.assign(Re, {
823
826
  };
824
827
  return /* @__PURE__ */ p("div", {
825
828
  ref: c,
826
- className: M(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: E, setFloatingRef: D, placement: O } = ee({
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));
@@ -859,7 +862,7 @@ var He = ({ children: e, placement: t = "top", content: n, disabled: r = !1, del
859
862
  "aria-describedby": g ? y : void 0,
860
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
867
  ref: D,
865
868
  content: n,
@@ -876,12 +879,12 @@ var He = ({ children: e, placement: t = "top", content: n, disabled: r = !1, del
876
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,34 +913,34 @@ 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: M(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 = {
942
+ Je.displayName = "Button";
943
+ var Z = {
941
944
  wrapper: "_wrapper_1xtic_1",
942
945
  wrapperSm: "_wrapperSm_1xtic_12",
943
946
  wrapperMd: "_wrapperMd_1xtic_18",
@@ -961,19 +964,19 @@ var Q = {
961
964
  indeterminate: "_indeterminate_1xtic_108",
962
965
  error: "_error_1xtic_130",
963
966
  disabled: "_disabled_1xtic_200"
964
- }, Ge = {
965
- sm: Q.labelSm,
966
- md: Q.labelMd,
967
- lg: Q.labelLg
968
- }, Ke = {
969
- sm: Q.wrapperSm,
970
- md: Q.wrapperMd,
971
- lg: Q.wrapperLg
972
- }, qe = {
973
- sm: Q.containerSm,
974
- md: Q.containerMd,
975
- lg: Q.containerLg
976
- }, Je = 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) => {
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) => {
977
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 = [
978
981
  x,
979
982
  A,
@@ -992,15 +995,15 @@ var Q = {
992
995
  i(() => {
993
996
  D.current && (D.current.indeterminate = m);
994
997
  }, [m]);
995
- let ee = (e) => {
998
+ let L = (e) => {
996
999
  F(e.target.checked);
997
1000
  };
998
- return Ue(!!(t || y || b), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ p("div", {
999
- className: M(Q.container, qe[c], h),
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),
1000
1003
  children: [
1001
1004
  /* @__PURE__ */ p("label", {
1002
1005
  htmlFor: E,
1003
- className: M(Q.wrapper, Ke[c], !t && Q.iconOnly, u && Q.disabled, g),
1006
+ className: M(Z.wrapper, Xe[c], !t && Z.iconOnly, u && Z.disabled, g),
1004
1007
  children: [
1005
1008
  /* @__PURE__ */ f("input", {
1006
1009
  ...S,
@@ -1010,8 +1013,8 @@ var Q = {
1010
1013
  checked: P,
1011
1014
  disabled: u,
1012
1015
  required: d,
1013
- onChange: ee,
1014
- className: Q.input,
1016
+ onChange: L,
1017
+ className: Z.input,
1015
1018
  "aria-label": y,
1016
1019
  "aria-labelledby": b,
1017
1020
  "aria-checked": m ? "mixed" : S["aria-checked"],
@@ -1019,17 +1022,17 @@ var Q = {
1019
1022
  "aria-describedby": N || void 0
1020
1023
  }),
1021
1024
  /* @__PURE__ */ f("span", {
1022
- className: M(Q.customCheckbox, k && Q.error, m && Q.indeterminate),
1025
+ className: M(Z.customCheckbox, k && Z.error, m && Z.indeterminate),
1023
1026
  "aria-hidden": "true",
1024
- children: m ? /* @__PURE__ */ f("span", { className: Q.indeterminateMark }) : P && /* @__PURE__ */ f("span", {
1025
- className: Q.checkmark,
1027
+ children: m ? /* @__PURE__ */ f("span", { className: Z.indeterminateMark }) : P && /* @__PURE__ */ f("span", {
1028
+ className: Z.checkmark,
1026
1029
  children: /* @__PURE__ */ f(O, {})
1027
1030
  })
1028
1031
  }),
1029
1032
  t && /* @__PURE__ */ p("span", {
1030
- className: M(Q.label, Ge[c]),
1033
+ className: M(Z.label, Ye[c]),
1031
1034
  children: [t, d && /* @__PURE__ */ f("span", {
1032
- className: Q.requiredMark,
1035
+ className: Z.requiredMark,
1033
1036
  "aria-hidden": "true",
1034
1037
  children: "*"
1035
1038
  })]
@@ -1038,19 +1041,19 @@ var Q = {
1038
1041
  }),
1039
1042
  r && /* @__PURE__ */ f("span", {
1040
1043
  id: A,
1041
- className: Q.descriptionText,
1044
+ className: Z.descriptionText,
1042
1045
  children: r
1043
1046
  }),
1044
1047
  k && /* @__PURE__ */ f("span", {
1045
1048
  id: j,
1046
- className: Q.errorText,
1049
+ className: Z.errorText,
1047
1050
  children: v
1048
1051
  })
1049
1052
  ]
1050
1053
  });
1051
1054
  });
1052
- Je.displayName = "Checkbox";
1053
- var $ = {
1055
+ Qe.displayName = "Checkbox";
1056
+ var Q = {
1054
1057
  inputWrapper: "_inputWrapper_y9bue_1",
1055
1058
  input: "_input_y9bue_1",
1056
1059
  error: "_error_y9bue_41",
@@ -1069,15 +1072,15 @@ var $ = {
1069
1072
  toneDanger: "_toneDanger_y9bue_169",
1070
1073
  toneMuted: "_toneMuted_y9bue_173",
1071
1074
  toneInverse: "_toneInverse_y9bue_177"
1072
- }, Ye = {
1073
- default: $.toneDefault,
1074
- primary: $.tonePrimary,
1075
- secondary: $.toneSecondary,
1076
- success: $.toneSuccess,
1077
- danger: $.toneDanger,
1078
- muted: $.toneMuted,
1079
- inverse: $.toneInverse
1080
- }, Xe = (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) => {
1081
1084
  if (t) return t;
1082
1085
  switch (e) {
1083
1086
  case "email": return "email";
@@ -1087,50 +1090,50 @@ var $ = {
1087
1090
  case "search": return "off";
1088
1091
  default: return;
1089
1092
  }
1090
- }, Ze = 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, ...ee }, L) => {
1091
- let R = a(), z = e ?? R, B = s(null), [V, H] = c(u ?? ""), U = l !== void 0, W = U ? l : V, te = W !== "", ne = Xe(m, b), G = S && te && !_ && !x, re = [
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 = [
1092
1095
  F,
1093
- i ? `${z}-description` : void 0,
1094
- g ? `${z}-error` : void 0
1096
+ i ? `${B}-description` : void 0,
1097
+ g ? `${B}-error` : void 0
1095
1098
  ].filter(Boolean).join(" "), ie = E ?? "×", ae = n((e) => {
1096
- if (B.current = e, typeof L == "function") {
1097
- L(e);
1099
+ if (V.current = e, typeof R == "function") {
1100
+ R(e);
1098
1101
  return;
1099
1102
  }
1100
- L && (L.current = e);
1101
- }, [L]), oe = n((e) => {
1103
+ R && (R.current = e);
1104
+ }, [R]), oe = n((e) => {
1102
1105
  let t = e.target.value;
1103
- U || H(t), d?.(e);
1104
- }, [U, d]), se = n(() => {
1105
- U || H(""), C?.(), B.current?.focus();
1106
- }, [U, C]), ce = !G && !!T;
1107
- return /* @__PURE__ */ f(Se, {
1108
- id: z,
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,
1109
1112
  label: t,
1110
1113
  description: i,
1111
1114
  error: g,
1112
1115
  required: v,
1113
1116
  disabled: _,
1114
1117
  children: /* @__PURE__ */ p("div", {
1115
- className: M($.inputWrapper, {
1116
- [$.hasLeftAdornment]: !!w,
1117
- [$.hasRightAdornment]: !!T || G
1118
+ className: M(Q.inputWrapper, {
1119
+ [Q.hasLeftAdornment]: !!w,
1120
+ [Q.hasRightAdornment]: !!T || ne
1118
1121
  }),
1119
1122
  children: [
1120
1123
  w && /* @__PURE__ */ f("span", {
1121
1124
  "aria-hidden": "true",
1122
- className: M($.leftAdornment, Ye[D]),
1125
+ className: M(Q.leftAdornment, $e[D]),
1123
1126
  children: w
1124
1127
  }),
1125
1128
  /* @__PURE__ */ f("input", {
1126
- ...ee,
1129
+ ...L,
1127
1130
  ref: ae,
1128
- id: z,
1131
+ id: B,
1129
1132
  name: r,
1130
1133
  type: m,
1131
- autoComplete: ne,
1132
- className: M($.input, $[h], { [$.error]: !!g }, y),
1133
- value: W,
1134
+ autoComplete: te,
1135
+ className: M(Q.input, Q[h], { [Q.error]: !!g }, y),
1136
+ value: G,
1134
1137
  onChange: oe,
1135
1138
  placeholder: o,
1136
1139
  disabled: _,
@@ -1143,30 +1146,110 @@ var $ = {
1143
1146
  onMouseEnter: N,
1144
1147
  onMouseLeave: P
1145
1148
  }),
1146
- G && /* @__PURE__ */ f("button", {
1149
+ ne && /* @__PURE__ */ f("button", {
1147
1150
  type: "button",
1148
- className: M($.clearButton, Ye[k]),
1151
+ className: M(Q.clearButton, $e[k]),
1149
1152
  onClick: se,
1150
1153
  "aria-label": "Clear input",
1151
1154
  children: ie
1152
1155
  }),
1153
1156
  ce && /* @__PURE__ */ f("div", {
1154
- className: M($.rightAdornment, Ye[O]),
1157
+ className: M(Q.rightAdornment, $e[O]),
1155
1158
  children: T
1156
1159
  })
1157
1160
  ]
1158
1161
  })
1159
1162
  });
1160
1163
  });
1161
- Ze.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";
1162
1245
  //#endregion
1163
1246
  //#region src/theme/ThemeContext.ts
1164
- var Qe = e(null), $e = (e) => e === "highContrast" ? "high-contrast" : e, et = ({ 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 }) => {
1165
1248
  let [a, s] = T({
1166
1249
  value: e,
1167
1250
  defaultValue: t,
1168
1251
  onChange: n
1169
- }), c = $e(a);
1252
+ }), c = it(a);
1170
1253
  i(() => {
1171
1254
  if (typeof document > "u") return;
1172
1255
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -1182,7 +1265,7 @@ var Qe = e(null), $e = (e) => e === "highContrast" ? "high-contrast" : e, et = (
1182
1265
  theme: a,
1183
1266
  setTheme: s
1184
1267
  }), [a, s]);
1185
- return /* @__PURE__ */ f(Qe.Provider, {
1268
+ return /* @__PURE__ */ f(rt.Provider, {
1186
1269
  value: l,
1187
1270
  children: /* @__PURE__ */ f("div", {
1188
1271
  "data-vellira-theme": c,
@@ -1190,13 +1273,13 @@ var Qe = e(null), $e = (e) => e === "highContrast" ? "high-contrast" : e, et = (
1190
1273
  })
1191
1274
  });
1192
1275
  };
1193
- et.displayName = "ThemeProvider";
1276
+ at.displayName = "ThemeProvider";
1194
1277
  //#endregion
1195
1278
  //#region src/theme/useTheme.ts
1196
- function tt() {
1197
- let e = r(Qe);
1279
+ function ot() {
1280
+ let e = r(rt);
1198
1281
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
1199
1282
  return e;
1200
1283
  }
1201
1284
  //#endregion
1202
- export { We as Button, Je as Checkbox, ae as Dropdown, Se as FormField, Ze as Input, xe as Modal, Ce as RadioGroup, ke as Select, ze as Tabs, et as ThemeProvider, He as Tooltip, tt 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 };