@dimasbaguspm/versaur 0.0.18 → 0.0.20

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.
Files changed (63) hide show
  1. package/dist/js/bottom-sheet-DbtyWwsy.js +493 -0
  2. package/dist/js/{email-input-BIbrfs5q.js → bottom-sheet-input-C7cYfBaK.js} +789 -504
  3. package/dist/js/forms/index.js +21 -16
  4. package/dist/js/{description-list-DZQF212Z.js → image-rectangle-DH7v2xvp.js} +415 -323
  5. package/dist/js/index.js +63 -50
  6. package/dist/js/layouts/index.js +5 -4
  7. package/dist/js/overlays/index.js +6 -4
  8. package/dist/js/primitive/index.js +21 -16
  9. package/dist/js/side-bar-CHhcp0yS.js +397 -0
  10. package/dist/js/text-CRsIInRA.js +127 -0
  11. package/dist/js/tooltip-CDdl1U3A.js +148 -0
  12. package/dist/types/forms/bottom-sheet-input/bottom-sheet-input.d.ts +7 -0
  13. package/dist/types/forms/bottom-sheet-input/index.d.ts +2 -0
  14. package/dist/types/forms/bottom-sheet-input/types.d.ts +17 -0
  15. package/dist/types/forms/drawer-input/drawer-input.d.ts +6 -0
  16. package/dist/types/forms/drawer-input/index.d.ts +2 -0
  17. package/dist/types/forms/drawer-input/types.d.ts +18 -0
  18. package/dist/types/forms/index.d.ts +5 -0
  19. package/dist/types/forms/modal-input/index.d.ts +2 -0
  20. package/dist/types/forms/modal-input/modal-input.d.ts +6 -0
  21. package/dist/types/forms/modal-input/types.d.ts +18 -0
  22. package/dist/types/forms/selectable-multiple-input/index.d.ts +2 -0
  23. package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +6 -0
  24. package/dist/types/forms/selectable-multiple-input/types.d.ts +18 -0
  25. package/dist/types/forms/selectable-single-input/index.d.ts +2 -0
  26. package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +6 -0
  27. package/dist/types/forms/selectable-single-input/types.d.ts +18 -0
  28. package/dist/types/layouts/index.d.ts +1 -0
  29. package/dist/types/layouts/side-bar/index.d.ts +2 -0
  30. package/dist/types/layouts/side-bar/side-bar.atoms.d.ts +3 -0
  31. package/dist/types/layouts/side-bar/side-bar.d.ts +5 -0
  32. package/dist/types/layouts/side-bar/types.d.ts +42 -0
  33. package/dist/types/overlays/bottom-sheet/types.d.ts +2 -1
  34. package/dist/types/overlays/drawer/types.d.ts +2 -1
  35. package/dist/types/overlays/index.d.ts +1 -0
  36. package/dist/types/overlays/menu/menu.atoms.d.ts +5 -10
  37. package/dist/types/overlays/menu/menu.d.ts +2 -6
  38. package/dist/types/overlays/menu/types.d.ts +9 -14
  39. package/dist/types/overlays/menu/use-menu.d.ts +0 -1
  40. package/dist/types/overlays/modal/modal.d.ts +14 -5
  41. package/dist/types/overlays/modal/types.d.ts +7 -20
  42. package/dist/types/overlays/tooltip/index.d.ts +2 -0
  43. package/dist/types/overlays/tooltip/tooltip.d.ts +5 -0
  44. package/dist/types/overlays/tooltip/types.d.ts +33 -0
  45. package/dist/types/overlays/tooltip/use-tooltip-position.d.ts +8 -0
  46. package/dist/types/primitive/image/base-image.atoms.d.ts +6 -0
  47. package/dist/types/primitive/image/base-image.d.ts +6 -0
  48. package/dist/types/primitive/image/image-circle.d.ts +6 -0
  49. package/dist/types/primitive/image/image-rectangle.d.ts +6 -0
  50. package/dist/types/primitive/image/image-square.d.ts +6 -0
  51. package/dist/types/primitive/image/index.d.ts +5 -0
  52. package/dist/types/primitive/image/types.d.ts +48 -0
  53. package/dist/types/primitive/image/use-image.d.ts +13 -0
  54. package/dist/types/primitive/index.d.ts +1 -0
  55. package/dist/types/primitive/table/table.atoms.d.ts +4 -6
  56. package/dist/types/primitive/table/table.d.ts +2 -1
  57. package/dist/types/primitive/table/types.d.ts +7 -4
  58. package/dist/utils/enforce-subpath-import.js +11 -0
  59. package/package.json +1 -1
  60. package/dist/js/bottom-sheet-BRv-oJL-.js +0 -646
  61. package/dist/js/form-layout-4ASWdXn8.js +0 -302
  62. package/dist/types/overlays/modal/use-escape-close.d.ts +0 -6
  63. package/dist/types/overlays/modal/use-focus-trap.d.ts +0 -6
@@ -1,9 +1,11 @@
1
- import { c as k, j as e, a as p } from "./index-DOdDlCoL.js";
2
- import x, { createContext as I, useContext as N, useRef as O, forwardRef as R, useState as E, useId as q, useEffect as J } from "react";
3
- import { Check as M, Calendar as K, SearchIcon as Q, Clock as U, Banknote as X, MailIcon as Y } from "lucide-react";
4
- import { I as S } from "./description-list-DZQF212Z.js";
1
+ import { c as j, j as e, a as p } from "./index-DOdDlCoL.js";
2
+ import x, { createContext as S, useContext as V, useRef as $, forwardRef as I, useState as O, useId as D, useEffect as X, useMemo as P } from "react";
3
+ import { Check as F, Calendar as Y, SearchIcon as Z, Clock as ee, Banknote as re, MailIcon as te } from "lucide-react";
4
+ import { I as z } from "./image-rectangle-DH7v2xvp.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
- const Z = k("space-y-2", {
6
+ import "./text-CRsIInRA.js";
7
+ import { M, D as E, B as R } from "./bottom-sheet-DbtyWwsy.js";
8
+ const oe = j("space-y-2", {
7
9
  variants: {
8
10
  direction: {
9
11
  vertical: "space-y-2 space-x-0",
@@ -13,7 +15,7 @@ const Z = k("space-y-2", {
13
15
  defaultVariants: {
14
16
  direction: "vertical"
15
17
  }
16
- }), ee = k(
18
+ }), se = j(
17
19
  "relative h-4 w-4 rounded border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
18
20
  {
19
21
  variants: {
@@ -51,7 +53,7 @@ const Z = k("space-y-2", {
51
53
  size: "md"
52
54
  }
53
55
  }
54
- ), re = k(
56
+ ), ne = j(
55
57
  "text-foreground cursor-pointer select-none",
56
58
  {
57
59
  variants: {
@@ -70,48 +72,48 @@ const Z = k("space-y-2", {
70
72
  disabled: !1
71
73
  }
72
74
  }
73
- ), F = I(null), te = () => {
74
- const r = N(F);
75
+ ), A = S(null), ae = () => {
76
+ const r = V(A);
75
77
  if (!r)
76
78
  throw new Error("CheckboxOption must be used within CheckboxInput");
77
79
  return r;
78
- }, P = x.forwardRef(({ children: r, description: t, className: d, disabled: i, id: n, ...l }, g) => {
79
- const s = te(), o = x.useId(), c = n || o, h = i || s.disabled, u = s.error ? "danger" : s.variant || "primary";
80
+ }, H = x.forwardRef(({ children: r, description: t, className: s, disabled: c, id: a, ...i }, l) => {
81
+ const n = ae(), o = x.useId(), d = a || o, g = c || n.disabled, f = n.error ? "danger" : n.variant || "primary";
80
82
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
81
83
  /* @__PURE__ */ e.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ e.jsx(
82
84
  "input",
83
85
  {
84
- ref: g,
86
+ ref: l,
85
87
  type: "checkbox",
86
- id: c,
87
- disabled: h,
88
+ id: d,
89
+ disabled: g,
88
90
  className: p(
89
- ee({
90
- variant: u,
91
- size: s.size
91
+ se({
92
+ variant: f,
93
+ size: n.size
92
94
  }),
93
95
  // Custom checkmark styling using ::after - centered positioning with size variants
94
96
  'after:content-[""] after:absolute after:left-1/2 after:top-[45%] after:-translate-x-1/2 after:-translate-y-1/2 after:border-b-2 after:border-r-2 after:border-white after:rotate-45 after:opacity-0 after:transition-opacity after:duration-200',
95
97
  // Size-specific checkmark dimensions
96
- s.size === "sm" && "after:w-[3px] after:h-[6px]",
97
- s.size === "md" && "after:w-[4px] after:h-[8px]",
98
- s.size === "lg" && "after:w-[6px] after:h-[10px]",
98
+ n.size === "sm" && "after:w-[3px] after:h-[6px]",
99
+ n.size === "md" && "after:w-[4px] after:h-[8px]",
100
+ n.size === "lg" && "after:w-[6px] after:h-[10px]",
99
101
  "checked:after:opacity-100",
100
102
  // Outline variants use colored checkmark
101
- u?.includes("outline") && "checked:after:border-current",
102
- d
103
+ f?.includes("outline") && "checked:after:border-current",
104
+ s
103
105
  ),
104
- ...l
106
+ ...i
105
107
  }
106
108
  ) }),
107
109
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
108
110
  /* @__PURE__ */ e.jsx(
109
111
  "label",
110
112
  {
111
- htmlFor: c,
112
- className: re({
113
- size: s.size,
114
- disabled: h
113
+ htmlFor: d,
114
+ className: ne({
115
+ size: n.size,
116
+ disabled: g
115
117
  }),
116
118
  children: r
117
119
  }
@@ -121,10 +123,10 @@ const Z = k("space-y-2", {
121
123
  {
122
124
  className: p(
123
125
  "text-gray-600 mt-1",
124
- s.size === "sm" && "text-xs",
125
- s.size === "md" && "text-xs",
126
- s.size === "lg" && "text-sm",
127
- h && "opacity-50"
126
+ n.size === "sm" && "text-xs",
127
+ n.size === "md" && "text-xs",
128
+ n.size === "lg" && "text-sm",
129
+ g && "opacity-50"
128
130
  ),
129
131
  children: t
130
132
  }
@@ -132,45 +134,45 @@ const Z = k("space-y-2", {
132
134
  ] })
133
135
  ] });
134
136
  });
135
- P.displayName = "CheckboxOption";
136
- const D = x.forwardRef(
137
+ H.displayName = "CheckboxOption";
138
+ const L = x.forwardRef(
137
139
  ({
138
140
  variant: r = "primary",
139
141
  size: t = "md",
140
- label: d,
141
- helperText: i,
142
- error: n,
143
- direction: l = "vertical",
144
- className: g,
145
- disabled: s,
142
+ label: s,
143
+ helperText: c,
144
+ error: a,
145
+ direction: i = "vertical",
146
+ className: l,
147
+ disabled: n,
146
148
  children: o,
147
- ...c
148
- }, h) => {
149
- const u = !!n, a = {
149
+ ...d
150
+ }, g) => {
151
+ const f = !!a, u = {
150
152
  variant: r,
151
153
  size: t,
152
- disabled: s,
153
- error: u
154
+ disabled: n,
155
+ error: f
154
156
  };
155
- return /* @__PURE__ */ e.jsx(F.Provider, { value: a, children: /* @__PURE__ */ e.jsxs("div", { ref: h, className: p("w-full", g), ...c, children: [
156
- d && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: d }),
157
- /* @__PURE__ */ e.jsx("div", { className: Z({ direction: l }), children: o }),
158
- u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: n }),
159
- !u && i && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: i })
157
+ return /* @__PURE__ */ e.jsx(A.Provider, { value: u, children: /* @__PURE__ */ e.jsxs("div", { ref: g, className: p("w-full", l), ...d, children: [
158
+ s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
159
+ /* @__PURE__ */ e.jsx("div", { className: oe({ direction: i }), children: o }),
160
+ f && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
161
+ !f && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
160
162
  ] }) });
161
163
  }
162
164
  );
163
- D.displayName = "CheckboxInput";
164
- const _e = Object.assign(D, {
165
- Option: P
166
- }), B = I(null), oe = () => {
167
- const r = N(B);
165
+ L.displayName = "CheckboxInput";
166
+ const or = Object.assign(L, {
167
+ Option: H
168
+ }), T = S(null), ie = () => {
169
+ const r = V(T);
168
170
  if (!r)
169
171
  throw new Error(
170
172
  "useChipSingleInputContext must be used within ChipSingleInputContext"
171
173
  );
172
174
  return r;
173
- }, ne = k(
175
+ }, ce = j(
174
176
  "inline-flex items-center bg-white font-regular transition-colors duration-200 cursor-pointer border border-border",
175
177
  {
176
178
  variants: {
@@ -226,61 +228,61 @@ const _e = Object.assign(D, {
226
228
  selected: !1
227
229
  }
228
230
  }
229
- ), se = x.forwardRef(
231
+ ), de = x.forwardRef(
230
232
  ({
231
233
  children: r,
232
234
  className: t,
233
- disabled: d,
234
- id: i,
235
- value: n,
236
- check: l,
237
- defaultCheck: g = !1,
238
- ...s
235
+ disabled: s,
236
+ id: c,
237
+ value: a,
238
+ check: i,
239
+ defaultCheck: l = !1,
240
+ ...n
239
241
  }, o) => {
240
- const c = oe(), h = x.useId(), u = i || h, a = d || c.disabled, b = [
242
+ const d = ie(), g = x.useId(), f = c || g, u = s || d.disabled, b = [
241
243
  "primary",
242
244
  "secondary",
243
245
  "tertiary",
244
246
  "ghost",
245
247
  "neutral"
246
248
  ].includes(
247
- c.variant
248
- ) ? c.variant : "primary", w = c.shape || "circle", m = c.size || "sm", v = c.value === n, y = (C) => {
249
- a || c.onChange?.(n), s.onChange?.(C);
250
- }, j = m === "lg" ? 20 : m === "md" ? 18 : 16;
249
+ d.variant
250
+ ) ? d.variant : "primary", w = d.shape || "circle", m = d.size || "sm", v = d.value === a, y = (C) => {
251
+ u || d.onChange?.(a), n.onChange?.(C);
252
+ }, N = m === "lg" ? 20 : m === "md" ? 18 : 16;
251
253
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
252
254
  /* @__PURE__ */ e.jsx(
253
255
  "input",
254
256
  {
255
257
  ref: o,
256
258
  type: "radio",
257
- id: u,
258
- name: c.name,
259
- value: n,
259
+ id: f,
260
+ name: d.name,
261
+ value: a,
260
262
  checked: v,
261
- disabled: a,
263
+ disabled: u,
262
264
  onChange: y,
263
265
  className: "sr-only",
264
- ...s
266
+ ...n
265
267
  }
266
268
  ),
267
269
  /* @__PURE__ */ e.jsx(
268
270
  "label",
269
271
  {
270
- htmlFor: u,
272
+ htmlFor: f,
271
273
  "data-selected": v,
272
274
  className: p(
273
- ne({
275
+ ce({
274
276
  variant: b,
275
277
  selected: v,
276
278
  shape: w,
277
279
  size: m
278
280
  }),
279
- a && "opacity-50 cursor-not-allowed pointer-events-none",
281
+ u && "opacity-50 cursor-not-allowed pointer-events-none",
280
282
  t
281
283
  ),
282
284
  children: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
283
- (l || g) && /* @__PURE__ */ e.jsx(
285
+ (i || l) && /* @__PURE__ */ e.jsx(
284
286
  "span",
285
287
  {
286
288
  className: p(
@@ -289,10 +291,10 @@ const _e = Object.assign(D, {
289
291
  v ? "opacity-100 scale-100 mr-1" : "opacity-0 scale-75"
290
292
  ),
291
293
  "aria-hidden": "true",
292
- children: v && (l || /* @__PURE__ */ e.jsx(
293
- M,
294
+ children: v && (i || /* @__PURE__ */ e.jsx(
295
+ F,
294
296
  {
295
- size: j,
297
+ size: N,
296
298
  className: b === "primary" ? "text-primary" : b === "secondary" ? "text-secondary" : b === "tertiary" ? "text-tertiary" : b === "ghost" ? "text-ghost" : b === "neutral" ? "text-neutral" : "text-primary"
297
299
  }
298
300
  ))
@@ -304,49 +306,49 @@ const _e = Object.assign(D, {
304
306
  )
305
307
  ] });
306
308
  }
307
- ), ae = x.forwardRef(
309
+ ), le = x.forwardRef(
308
310
  ({
309
311
  variant: r = "primary",
310
312
  shape: t = "circle",
311
- size: d = "sm",
312
- label: i,
313
- helperText: n,
314
- error: l,
315
- className: g,
316
- disabled: s,
313
+ size: s = "sm",
314
+ label: c,
315
+ helperText: a,
316
+ error: i,
317
+ className: l,
318
+ disabled: n,
317
319
  name: o,
318
- value: c,
319
- onChange: h,
320
- children: u,
321
- ...a
322
- }, f) => {
323
- const b = !!l, w = {
320
+ value: d,
321
+ onChange: g,
322
+ children: f,
323
+ ...u
324
+ }, h) => {
325
+ const b = !!i, w = {
324
326
  variant: r,
325
327
  shape: t,
326
- size: d,
327
- disabled: s,
328
+ size: s,
329
+ disabled: n,
328
330
  error: b,
329
331
  name: o,
330
- value: c,
331
- onChange: h
332
+ value: d,
333
+ onChange: g
332
334
  };
333
- return /* @__PURE__ */ e.jsx(B.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: f, className: p("w-full", g), ...a, children: [
334
- i && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: i }),
335
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: u }),
336
- b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: l }),
337
- !b && n && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: n })
335
+ return /* @__PURE__ */ e.jsx(T.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: h, className: p("w-full", l), ...u, children: [
336
+ c && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: c }),
337
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: f }),
338
+ b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: i }),
339
+ !b && a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: a })
338
340
  ] }) });
339
341
  }
340
- ), He = Object.assign(ae, {
341
- Option: se
342
- }), $ = I(null), ie = () => {
343
- const r = N($);
342
+ ), sr = Object.assign(le, {
343
+ Option: de
344
+ }), G = S(null), ue = () => {
345
+ const r = V(G);
344
346
  if (!r)
345
347
  throw new Error(
346
348
  "useChipMultipleInputContext must be used within ChipMultipleInputContext"
347
349
  );
348
350
  return r;
349
- }, ce = k(
351
+ }, ge = j(
350
352
  "inline-flex items-center bg-white font-regular transition-colors duration-200 cursor-pointer border border-border",
351
353
  {
352
354
  variants: {
@@ -430,24 +432,24 @@ const _e = Object.assign(D, {
430
432
  }
431
433
  }
432
434
  }
433
- ), A = x.forwardRef(
435
+ ), K = x.forwardRef(
434
436
  ({
435
437
  children: r,
436
438
  className: t,
437
- disabled: d,
438
- id: i,
439
- value: n,
440
- check: l,
441
- defaultCheck: g = !1,
442
- ...s
439
+ disabled: s,
440
+ id: c,
441
+ value: a,
442
+ check: i,
443
+ defaultCheck: l = !1,
444
+ ...n
443
445
  }, o) => {
444
- const c = ie(), h = x.useId(), u = i || h, a = d || c.disabled, f = c.error ? "danger" : c.variant || "primary", b = c.shape || "circle", w = c.size || "sm", m = c.value?.includes(n) ?? !1, v = (j) => {
445
- if (!a) {
446
- const C = c.value || [];
447
- let V;
448
- m ? V = C.filter((H) => H !== n) : V = [...C, n], c.onChange?.(V);
446
+ const d = ue(), g = x.useId(), f = c || g, u = s || d.disabled, h = d.error ? "danger" : d.variant || "primary", b = d.shape || "circle", w = d.size || "sm", m = d.value?.includes(a) ?? !1, v = (N) => {
447
+ if (!u) {
448
+ const C = d.value || [];
449
+ let B;
450
+ m ? B = C.filter((U) => U !== a) : B = [...C, a], d.onChange?.(B);
449
451
  }
450
- s.onChange?.(j);
452
+ n.onChange?.(N);
451
453
  }, y = w === "lg" ? 20 : w === "md" ? 18 : 16;
452
454
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
453
455
  /* @__PURE__ */ e.jsx(
@@ -455,33 +457,33 @@ const _e = Object.assign(D, {
455
457
  {
456
458
  ref: o,
457
459
  type: "checkbox",
458
- id: u,
459
- name: `${c.name}[]`,
460
- value: n,
460
+ id: f,
461
+ name: `${d.name}[]`,
462
+ value: a,
461
463
  checked: m,
462
- disabled: a,
464
+ disabled: u,
463
465
  onChange: v,
464
466
  className: "sr-only",
465
- ...s
467
+ ...n
466
468
  }
467
469
  ),
468
470
  /* @__PURE__ */ e.jsx(
469
471
  "label",
470
472
  {
471
- htmlFor: u,
473
+ htmlFor: f,
472
474
  "data-selected": m,
473
475
  className: p(
474
- ce({
475
- variant: f,
476
+ ge({
477
+ variant: h,
476
478
  selected: m,
477
479
  shape: b,
478
480
  size: w
479
481
  }),
480
- a && "opacity-50 cursor-not-allowed pointer-events-none",
482
+ u && "opacity-50 cursor-not-allowed pointer-events-none",
481
483
  t
482
484
  ),
483
485
  children: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
484
- (l || g) && /* @__PURE__ */ e.jsx(
486
+ (i || l) && /* @__PURE__ */ e.jsx(
485
487
  "span",
486
488
  {
487
489
  className: p(
@@ -490,11 +492,11 @@ const _e = Object.assign(D, {
490
492
  m ? "opacity-100 scale-100 mr-1" : "opacity-0 scale-75"
491
493
  ),
492
494
  "aria-hidden": "true",
493
- children: m && (l || /* @__PURE__ */ e.jsx(
494
- M,
495
+ children: m && (i || /* @__PURE__ */ e.jsx(
496
+ F,
495
497
  {
496
498
  size: y,
497
- className: f === "primary" ? "text-primary" : f === "secondary" ? "text-secondary" : f === "tertiary" ? "text-tertiary" : f === "ghost" ? "text-ghost" : f === "success" ? "text-success" : f === "info" ? "text-info" : f === "warning" ? "text-warning" : f === "danger" ? "text-danger" : "text-primary"
499
+ className: h === "primary" ? "text-primary" : h === "secondary" ? "text-secondary" : h === "tertiary" ? "text-tertiary" : h === "ghost" ? "text-ghost" : h === "success" ? "text-success" : h === "info" ? "text-info" : h === "warning" ? "text-warning" : h === "danger" ? "text-danger" : "text-primary"
498
500
  }
499
501
  ))
500
502
  }
@@ -506,43 +508,43 @@ const _e = Object.assign(D, {
506
508
  ] });
507
509
  }
508
510
  );
509
- A.displayName = "ChipMultipleOption";
510
- const de = x.forwardRef(
511
+ K.displayName = "ChipMultipleOption";
512
+ const fe = x.forwardRef(
511
513
  ({
512
514
  variant: r = "primary",
513
515
  shape: t = "circle",
514
- size: d = "sm",
515
- label: i,
516
- helperText: n,
517
- error: l,
518
- className: g,
519
- disabled: s,
516
+ size: s = "sm",
517
+ label: c,
518
+ helperText: a,
519
+ error: i,
520
+ className: l,
521
+ disabled: n,
520
522
  name: o,
521
- value: c = [],
522
- onChange: h,
523
- children: u,
524
- ...a
525
- }, f) => {
526
- const b = !!l, w = {
523
+ value: d = [],
524
+ onChange: g,
525
+ children: f,
526
+ ...u
527
+ }, h) => {
528
+ const b = !!i, w = {
527
529
  variant: r,
528
530
  shape: t,
529
- size: d,
530
- disabled: s,
531
+ size: s,
532
+ disabled: n,
531
533
  error: b,
532
534
  name: o,
533
- value: c,
534
- onChange: h
535
+ value: d,
536
+ onChange: g
535
537
  };
536
- return /* @__PURE__ */ e.jsx($.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: f, className: p("w-full", g), ...a, children: [
537
- i && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: i }),
538
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: u }),
539
- b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: l }),
540
- !b && n && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: n })
538
+ return /* @__PURE__ */ e.jsx(G.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: h, className: p("w-full", l), ...u, children: [
539
+ c && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: c }),
540
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: f }),
541
+ b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: i }),
542
+ !b && a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: a })
541
543
  ] }) });
542
544
  }
543
- ), qe = Object.assign(de, {
544
- Option: A
545
- }), le = k(
545
+ ), nr = Object.assign(fe, {
546
+ Option: K
547
+ }), he = j(
546
548
  "block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
547
549
  {
548
550
  variants: {
@@ -574,73 +576,73 @@ const de = x.forwardRef(
574
576
  variant: "primary"
575
577
  }
576
578
  }
577
- ), z = x.forwardRef(
579
+ ), k = x.forwardRef(
578
580
  ({
579
581
  variant: r = "primary",
580
582
  label: t,
581
- leftContent: d,
582
- rightContent: i,
583
- helperText: n,
584
- error: l,
585
- className: g,
586
- disabled: s,
583
+ leftContent: s,
584
+ rightContent: c,
585
+ helperText: a,
586
+ error: i,
587
+ className: l,
588
+ disabled: n,
587
589
  id: o,
588
- ...c
589
- }, h) => {
590
- const u = x.useId(), a = o || u, f = !!l;
590
+ ...d
591
+ }, g) => {
592
+ const f = x.useId(), u = o || f, h = !!i;
591
593
  return /* @__PURE__ */ e.jsxs("div", { children: [
592
594
  t && /* @__PURE__ */ e.jsx(
593
595
  "label",
594
596
  {
595
- htmlFor: a,
597
+ htmlFor: u,
596
598
  className: "block text-sm font-medium text-foreground mb-2",
597
599
  children: t
598
600
  }
599
601
  ),
600
- /* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", g), children: [
601
- d && /* @__PURE__ */ e.jsx(
602
+ /* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", l), children: [
603
+ s && /* @__PURE__ */ e.jsx(
602
604
  "span",
603
605
  {
604
606
  className: "absolute left-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
605
607
  "data-testid": "left-content",
606
- children: d
608
+ children: s
607
609
  }
608
610
  ),
609
611
  /* @__PURE__ */ e.jsx(
610
612
  "input",
611
613
  {
612
- ref: h,
613
- id: a,
614
- "aria-invalid": f,
615
- "aria-disabled": s,
616
- disabled: s,
614
+ ref: g,
615
+ id: u,
616
+ "aria-invalid": h,
617
+ "aria-disabled": n,
618
+ disabled: n,
617
619
  className: p(
618
- le({
619
- variant: f ? "danger" : r
620
+ he({
621
+ variant: h ? "danger" : r
620
622
  }),
621
- d ? "pl-9" : "pl-3",
622
- i ? "pr-9" : "pr-3",
623
+ s ? "pl-9" : "pl-3",
624
+ c ? "pr-9" : "pr-3",
623
625
  "h-10"
624
626
  ),
625
- ...c
627
+ ...d
626
628
  }
627
629
  ),
628
- i && /* @__PURE__ */ e.jsx(
630
+ c && /* @__PURE__ */ e.jsx(
629
631
  "span",
630
632
  {
631
633
  className: "absolute right-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
632
634
  "data-testid": "right-content",
633
- children: i
635
+ children: c
634
636
  }
635
637
  )
636
638
  ] }),
637
- f && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: l }),
638
- !f && n && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: n })
639
+ h && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: i }),
640
+ !h && a && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: a })
639
641
  ] });
640
642
  }
641
643
  );
642
- z.displayName = "TextInput";
643
- function ue(r) {
644
+ k.displayName = "TextInput";
645
+ function be(r) {
644
646
  if (!r) return "";
645
647
  const t = new Date(r);
646
648
  return isNaN(t.getTime()) ? r : t.toLocaleDateString(void 0, {
@@ -649,28 +651,28 @@ function ue(r) {
649
651
  day: "numeric"
650
652
  });
651
653
  }
652
- const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatter: n, ...l }, g) {
653
- const s = O(null), o = (a) => {
654
- s.current = a, typeof g == "function" ? g(a) : g && typeof g == "object" && (g.current = a);
655
- }, c = () => {
656
- s.current && (typeof s.current.showPicker == "function" ? s.current.showPicker() : s.current.focus());
657
- }, h = (a) => {
658
- d(a.target.value);
659
- }, u = (n ?? ue)(t);
654
+ const ar = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatter: a, ...i }, l) {
655
+ const n = $(null), o = (u) => {
656
+ n.current = u, typeof l == "function" ? l(u) : l && typeof l == "object" && (l.current = u);
657
+ }, d = () => {
658
+ n.current && (typeof n.current.showPicker == "function" ? n.current.showPicker() : n.current.focus());
659
+ }, g = (u) => {
660
+ s(u.target.value);
661
+ }, f = (a ?? be)(t);
660
662
  return /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
661
663
  /* @__PURE__ */ e.jsx(
662
- z,
664
+ k,
663
665
  {
664
666
  type: "text",
665
- value: u,
666
- label: i,
667
+ value: f,
668
+ label: c,
667
669
  readOnly: !0,
668
670
  tabIndex: 0,
669
671
  "aria-hidden": "true",
670
- onClick: c,
671
- leftContent: /* @__PURE__ */ e.jsx(S, { as: K, color: "inherit", size: "sm" }),
672
+ onClick: d,
673
+ leftContent: /* @__PURE__ */ e.jsx(z, { as: Y, color: "inherit", size: "sm" }),
672
674
  "data-testid": "date-single-picker-visible-input",
673
- ...l
675
+ ...i
674
676
  }
675
677
  ),
676
678
  /* @__PURE__ */ e.jsx(
@@ -679,14 +681,14 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
679
681
  ref: o,
680
682
  type: "date",
681
683
  value: t,
682
- onChange: h,
684
+ onChange: g,
683
685
  className: "sr-only absolute opacity-0 h-0 w-0 pointer-events-none",
684
686
  tabIndex: -1,
685
- "aria-label": typeof i == "string" ? i : void 0
687
+ "aria-label": typeof c == "string" ? c : void 0
686
688
  }
687
689
  )
688
690
  ] });
689
- }), ge = k("space-y-2", {
691
+ }), xe = j("space-y-2", {
690
692
  variants: {
691
693
  direction: {
692
694
  vertical: "space-y-2 space-x-0",
@@ -696,7 +698,7 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
696
698
  defaultVariants: {
697
699
  direction: "vertical"
698
700
  }
699
- }), fe = k(
701
+ }), me = j(
700
702
  "relative h-4 w-4 rounded-full border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
701
703
  {
702
704
  variants: {
@@ -734,7 +736,7 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
734
736
  size: "md"
735
737
  }
736
738
  }
737
- ), he = k(
739
+ ), pe = j(
738
740
  "text-foreground cursor-pointer select-none",
739
741
  {
740
742
  variants: {
@@ -753,31 +755,31 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
753
755
  disabled: !1
754
756
  }
755
757
  }
756
- ), L = I(
758
+ ), W = S(
757
759
  null
758
- ), be = () => {
759
- const r = N(L);
760
+ ), ye = () => {
761
+ const r = V(W);
760
762
  if (!r)
761
763
  throw new Error(
762
764
  "useRadioInputContext must be used within RadioInputContext"
763
765
  );
764
766
  return r;
765
- }, xe = x.forwardRef(
766
- ({ children: r, description: t, className: d, disabled: i, id: n, value: l, ...g }, s) => {
767
- const o = be(), c = x.useId(), h = n || c, u = i || o.disabled, a = o.error ? "danger" : o.variant || "primary";
767
+ }, we = x.forwardRef(
768
+ ({ children: r, description: t, className: s, disabled: c, id: a, value: i, ...l }, n) => {
769
+ const o = ye(), d = x.useId(), g = a || d, f = c || o.disabled, u = o.error ? "danger" : o.variant || "primary";
768
770
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
769
771
  /* @__PURE__ */ e.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ e.jsx(
770
772
  "input",
771
773
  {
772
- ref: s,
774
+ ref: n,
773
775
  type: "radio",
774
- id: h,
776
+ id: g,
775
777
  name: o.name,
776
- value: l,
777
- disabled: u,
778
+ value: i,
779
+ disabled: f,
778
780
  className: p(
779
- fe({
780
- variant: a,
781
+ me({
782
+ variant: u,
781
783
  size: o.size
782
784
  }),
783
785
  // Custom radio dot styling using ::before - centered positioning with size variants
@@ -788,20 +790,20 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
788
790
  o.size === "lg" && "before:w-[10px] before:h-[10px]",
789
791
  "checked:before:opacity-100",
790
792
  // Outline variants use colored radio dot
791
- a?.includes("outline") && "checked:before:bg-current",
792
- d
793
+ u?.includes("outline") && "checked:before:bg-current",
794
+ s
793
795
  ),
794
- ...g
796
+ ...l
795
797
  }
796
798
  ) }),
797
799
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
798
800
  /* @__PURE__ */ e.jsx(
799
801
  "label",
800
802
  {
801
- htmlFor: h,
802
- className: he({
803
+ htmlFor: g,
804
+ className: pe({
803
805
  size: o.size,
804
- disabled: u
806
+ disabled: f
805
807
  }),
806
808
  children: r
807
809
  }
@@ -814,7 +816,7 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
814
816
  o.size === "sm" && "text-xs",
815
817
  o.size === "md" && "text-xs",
816
818
  o.size === "lg" && "text-sm",
817
- u && "opacity-50"
819
+ f && "opacity-50"
818
820
  ),
819
821
  children: t
820
822
  }
@@ -822,37 +824,37 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
822
824
  ] })
823
825
  ] });
824
826
  }
825
- ), me = x.forwardRef(
827
+ ), ve = x.forwardRef(
826
828
  ({
827
829
  variant: r = "primary",
828
830
  size: t = "md",
829
- label: d,
830
- helperText: i,
831
- error: n,
832
- direction: l = "vertical",
833
- className: g,
834
- disabled: s,
831
+ label: s,
832
+ helperText: c,
833
+ error: a,
834
+ direction: i = "vertical",
835
+ className: l,
836
+ disabled: n,
835
837
  name: o,
836
- children: c,
837
- ...h
838
- }, u) => {
839
- const a = !!n, f = {
838
+ children: d,
839
+ ...g
840
+ }, f) => {
841
+ const u = !!a, h = {
840
842
  variant: r,
841
843
  size: t,
842
- disabled: s,
843
- error: a,
844
+ disabled: n,
845
+ error: u,
844
846
  name: o
845
847
  };
846
- return /* @__PURE__ */ e.jsx(L.Provider, { value: f, children: /* @__PURE__ */ e.jsxs("div", { ref: u, className: p("w-full", g), ...h, children: [
847
- d && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: d }),
848
- /* @__PURE__ */ e.jsx("div", { className: ge({ direction: l }), children: c }),
849
- a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: n }),
850
- !a && i && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: i })
848
+ return /* @__PURE__ */ e.jsx(W.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, className: p("w-full", l), ...g, children: [
849
+ s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
850
+ /* @__PURE__ */ e.jsx("div", { className: xe({ direction: i }), children: d }),
851
+ u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
852
+ !u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
851
853
  ] }) });
852
854
  }
853
- ), Ke = Object.assign(me, {
854
- Option: xe
855
- }), pe = k(
855
+ ), ir = Object.assign(ve, {
856
+ Option: we
857
+ }), je = j(
856
858
  "flex flex-row rounded-full border overflow-hidden p-1 gap-0.25",
857
859
  {
858
860
  variants: {
@@ -885,7 +887,7 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
885
887
  error: !1
886
888
  }
887
889
  }
888
- ), ye = k(
890
+ ), ke = j(
889
891
  "inline relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1 flex-1",
890
892
  {
891
893
  variants: {
@@ -920,7 +922,7 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
920
922
  rounded: "middle"
921
923
  }
922
924
  }
923
- ), we = (r) => {
925
+ ), Ie = (r) => {
924
926
  const t = {
925
927
  // Core variants - override hover text color changes
926
928
  primary: "bg-primary text-white hover:text-white",
@@ -935,51 +937,51 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
935
937
  danger: "bg-danger text-white hover:text-white"
936
938
  };
937
939
  return t[r || "primary"] || t.primary;
938
- }, G = I(null), ve = () => {
939
- const r = N(G);
940
+ }, _ = S(null), Ne = () => {
941
+ const r = V(_);
940
942
  if (!r)
941
943
  throw new Error(
942
944
  "useSegmentSingleInputContext must be used within SegmentSingleInputContext"
943
945
  );
944
946
  return r;
945
- }, T = x.forwardRef(
946
- ({ children: r, className: t, disabled: d, id: i, value: n, position: l = "middle", ...g }, s) => {
947
- const o = ve(), c = x.useId(), h = i || c, u = d || o.disabled, a = o.error ? "danger" : o.variant || "primary", f = o.value === n, b = (w) => {
948
- if (!u) {
949
- const m = o.value === n ? null : n;
947
+ }, q = x.forwardRef(
948
+ ({ children: r, className: t, disabled: s, id: c, value: a, position: i = "middle", ...l }, n) => {
949
+ const o = Ne(), d = x.useId(), g = c || d, f = s || o.disabled, u = o.error ? "danger" : o.variant || "primary", h = o.value === a, b = (w) => {
950
+ if (!f) {
951
+ const m = o.value === a ? null : a;
950
952
  o.onChange?.(m);
951
953
  }
952
- g.onChange?.(w);
954
+ l.onChange?.(w);
953
955
  };
954
956
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
955
957
  /* @__PURE__ */ e.jsx(
956
958
  "input",
957
959
  {
958
- ref: s,
960
+ ref: n,
959
961
  type: "radio",
960
- id: h,
962
+ id: g,
961
963
  name: o.name,
962
- value: n,
963
- checked: f,
964
- disabled: u,
964
+ value: a,
965
+ checked: h,
966
+ disabled: f,
965
967
  onChange: b,
966
968
  className: "sr-only",
967
- ...g
969
+ ...l
968
970
  }
969
971
  ),
970
972
  /* @__PURE__ */ e.jsx(
971
973
  "label",
972
974
  {
973
- htmlFor: h,
975
+ htmlFor: g,
974
976
  className: p(
975
977
  "flex flex-row items-center justify-center",
976
- ye({
977
- variant: a,
978
+ ke({
979
+ variant: u,
978
980
  size: o.size,
979
- rounded: l
981
+ rounded: i
980
982
  }),
981
- f && we(a),
982
- u && "opacity-50 cursor-not-allowed pointer-events-none",
983
+ h && Ie(u),
984
+ f && "opacity-50 cursor-not-allowed pointer-events-none",
983
985
  t
984
986
  ),
985
987
  children: r
@@ -988,30 +990,30 @@ const Je = x.forwardRef(function({ value: t = "", onChange: d, label: i, formatt
988
990
  ] });
989
991
  }
990
992
  );
991
- T.displayName = "SegmentOption";
992
- const ke = x.forwardRef(
993
+ q.displayName = "SegmentOption";
994
+ const Ce = x.forwardRef(
993
995
  ({
994
996
  variant: r = "primary",
995
997
  size: t = "md",
996
- label: d,
997
- helperText: i,
998
- error: n,
999
- disabled: l,
1000
- name: g,
1001
- value: s,
998
+ label: s,
999
+ helperText: c,
1000
+ error: a,
1001
+ disabled: i,
1002
+ name: l,
1003
+ value: n,
1002
1004
  onChange: o,
1003
- children: c,
1004
- ...h
1005
- }, u) => {
1006
- const a = !!n, f = {
1005
+ children: d,
1006
+ ...g
1007
+ }, f) => {
1008
+ const u = !!a, h = {
1007
1009
  variant: r,
1008
1010
  size: t,
1009
- disabled: l,
1010
- error: a,
1011
- name: g,
1012
- value: s,
1011
+ disabled: i,
1012
+ error: u,
1013
+ name: l,
1014
+ value: n,
1013
1015
  onChange: o
1014
- }, b = x.Children.toArray(c), w = b.map((m, v) => {
1016
+ }, b = x.Children.toArray(d), w = b.map((m, v) => {
1015
1017
  if (x.isValidElement(m)) {
1016
1018
  let y;
1017
1019
  return b.length === 1 ? y = "single" : v === 0 ? y = "first" : v === b.length - 1 ? y = "last" : y = "middle", x.cloneElement(
@@ -1021,28 +1023,28 @@ const ke = x.forwardRef(
1021
1023
  }
1022
1024
  return m;
1023
1025
  });
1024
- return /* @__PURE__ */ e.jsx(G.Provider, { value: f, children: /* @__PURE__ */ e.jsxs("div", { ref: u, ...h, children: [
1025
- d && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: d }),
1026
+ return /* @__PURE__ */ e.jsx(_.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, ...g, children: [
1027
+ s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
1026
1028
  /* @__PURE__ */ e.jsx(
1027
1029
  "div",
1028
1030
  {
1029
1031
  className: p(
1030
- pe({
1031
- variant: a ? "danger" : r,
1032
+ je({
1033
+ variant: u ? "danger" : r,
1032
1034
  size: t,
1033
- error: a
1035
+ error: u
1034
1036
  })
1035
1037
  ),
1036
1038
  children: w
1037
1039
  }
1038
1040
  ),
1039
- a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: n }),
1040
- !a && i && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: i })
1041
+ u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
1042
+ !u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
1041
1043
  ] }) });
1042
1044
  }
1043
- ), Qe = Object.assign(ke, {
1044
- Option: T
1045
- }), je = k(
1045
+ ), cr = Object.assign(Ce, {
1046
+ Option: q
1047
+ }), ze = j(
1046
1048
  "flex flex-row rounded-full border overflow-hidden p-1 gap-0.25",
1047
1049
  {
1048
1050
  variants: {
@@ -1075,7 +1077,7 @@ const ke = x.forwardRef(
1075
1077
  error: !1
1076
1078
  }
1077
1079
  }
1078
- ), Ce = k(
1080
+ ), Se = j(
1079
1081
  "inline relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1 flex-1",
1080
1082
  {
1081
1083
  variants: {
@@ -1110,7 +1112,7 @@ const ke = x.forwardRef(
1110
1112
  rounded: "middle"
1111
1113
  }
1112
1114
  }
1113
- ), Ie = (r) => {
1115
+ ), Ve = (r) => {
1114
1116
  const t = {
1115
1117
  // Core variants - override hover text color changes
1116
1118
  primary: "bg-primary text-white hover:text-white",
@@ -1125,52 +1127,52 @@ const ke = x.forwardRef(
1125
1127
  danger: "bg-danger text-white hover:text-white"
1126
1128
  };
1127
1129
  return t[r || "primary"] || t.primary;
1128
- }, W = I(null), Ne = () => {
1129
- const r = N(W);
1130
+ }, J = S(null), Re = () => {
1131
+ const r = V(J);
1130
1132
  if (!r)
1131
1133
  throw new Error(
1132
1134
  "useSegmentMultipleInputContext must be used within SegmentMultipleInputContext"
1133
1135
  );
1134
1136
  return r;
1135
- }, _ = x.forwardRef(
1136
- ({ children: r, className: t, disabled: d, id: i, value: n, position: l = "middle", ...g }, s) => {
1137
- const o = Ne(), c = x.useId(), h = i || c, u = d || o.disabled, a = o.error ? "danger" : o.variant || "primary", f = o.value?.includes(n) ?? !1, b = (w) => {
1138
- if (!u) {
1137
+ }, Q = x.forwardRef(
1138
+ ({ children: r, className: t, disabled: s, id: c, value: a, position: i = "middle", ...l }, n) => {
1139
+ const o = Re(), d = x.useId(), g = c || d, f = s || o.disabled, u = o.error ? "danger" : o.variant || "primary", h = o.value?.includes(a) ?? !1, b = (w) => {
1140
+ if (!f) {
1139
1141
  const m = o.value || [];
1140
1142
  let v;
1141
- f ? v = m.filter((y) => y !== n) : v = [...m, n], o.onChange?.(v);
1143
+ h ? v = m.filter((y) => y !== a) : v = [...m, a], o.onChange?.(v);
1142
1144
  }
1143
- g.onChange?.(w);
1145
+ l.onChange?.(w);
1144
1146
  };
1145
1147
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1146
1148
  /* @__PURE__ */ e.jsx(
1147
1149
  "input",
1148
1150
  {
1149
- ref: s,
1151
+ ref: n,
1150
1152
  type: "checkbox",
1151
- id: h,
1153
+ id: g,
1152
1154
  name: `${o.name}[]`,
1153
- value: n,
1154
- checked: f,
1155
- disabled: u,
1155
+ value: a,
1156
+ checked: h,
1157
+ disabled: f,
1156
1158
  onChange: b,
1157
1159
  className: "sr-only",
1158
- ...g
1160
+ ...l
1159
1161
  }
1160
1162
  ),
1161
1163
  /* @__PURE__ */ e.jsx(
1162
1164
  "label",
1163
1165
  {
1164
- htmlFor: h,
1166
+ htmlFor: g,
1165
1167
  className: p(
1166
1168
  "flex flex-row items-center justify-center",
1167
- Ce({
1168
- variant: a,
1169
+ Se({
1170
+ variant: u,
1169
1171
  size: o.size,
1170
- rounded: l
1172
+ rounded: i
1171
1173
  }),
1172
- f && Ie(a),
1173
- u && "opacity-50 cursor-not-allowed pointer-events-none",
1174
+ h && Ve(u),
1175
+ f && "opacity-50 cursor-not-allowed pointer-events-none",
1174
1176
  t
1175
1177
  ),
1176
1178
  children: r
@@ -1179,30 +1181,30 @@ const ke = x.forwardRef(
1179
1181
  ] });
1180
1182
  }
1181
1183
  );
1182
- _.displayName = "SegmentOption";
1183
- const ze = x.forwardRef(
1184
+ Q.displayName = "SegmentOption";
1185
+ const Oe = x.forwardRef(
1184
1186
  ({
1185
1187
  variant: r = "primary",
1186
1188
  size: t = "md",
1187
- label: d,
1188
- helperText: i,
1189
- error: n,
1190
- disabled: l,
1191
- name: g,
1192
- value: s = [],
1189
+ label: s,
1190
+ helperText: c,
1191
+ error: a,
1192
+ disabled: i,
1193
+ name: l,
1194
+ value: n = [],
1193
1195
  onChange: o,
1194
- children: c,
1195
- ...h
1196
- }, u) => {
1197
- const a = !!n, f = {
1196
+ children: d,
1197
+ ...g
1198
+ }, f) => {
1199
+ const u = !!a, h = {
1198
1200
  variant: r,
1199
1201
  size: t,
1200
- disabled: l,
1201
- error: a,
1202
- name: g,
1203
- value: s,
1202
+ disabled: i,
1203
+ error: u,
1204
+ name: l,
1205
+ value: n,
1204
1206
  onChange: o
1205
- }, b = x.Children.toArray(c), w = b.map((m, v) => {
1207
+ }, b = x.Children.toArray(d), w = b.map((m, v) => {
1206
1208
  if (x.isValidElement(m)) {
1207
1209
  let y;
1208
1210
  return b.length === 1 ? y = "single" : v === 0 ? y = "first" : v === b.length - 1 ? y = "last" : y = "middle", x.cloneElement(
@@ -1212,55 +1214,55 @@ const ze = x.forwardRef(
1212
1214
  }
1213
1215
  return m;
1214
1216
  });
1215
- return /* @__PURE__ */ e.jsx(W.Provider, { value: f, children: /* @__PURE__ */ e.jsxs("div", { ref: u, ...h, children: [
1216
- d && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: d }),
1217
+ return /* @__PURE__ */ e.jsx(J.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, ...g, children: [
1218
+ s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
1217
1219
  /* @__PURE__ */ e.jsx(
1218
1220
  "div",
1219
1221
  {
1220
1222
  className: p(
1221
- je({
1222
- variant: a ? "danger" : r,
1223
+ ze({
1224
+ variant: u ? "danger" : r,
1223
1225
  size: t,
1224
- error: a
1226
+ error: u
1225
1227
  })
1226
1228
  ),
1227
1229
  children: w
1228
1230
  }
1229
1231
  ),
1230
- a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: n }),
1231
- !a && i && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: i })
1232
+ u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
1233
+ !u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
1232
1234
  ] }) });
1233
1235
  }
1234
- ), Ue = Object.assign(ze, {
1235
- Option: _
1236
- }), Xe = R(
1236
+ ), dr = Object.assign(Oe, {
1237
+ Option: Q
1238
+ }), lr = I(
1237
1239
  ({
1238
1240
  autoComplete: r = "off",
1239
1241
  spellCheck: t = !1,
1240
- inputMode: d = "search",
1241
- placeholder: i = "Search...",
1242
- maxLength: n = 256,
1243
- enterKeyHint: l = "search",
1244
- "aria-label": g = "Search",
1242
+ inputMode: s = "search",
1243
+ placeholder: c = "Search...",
1244
+ maxLength: a = 256,
1245
+ enterKeyHint: i = "search",
1246
+ "aria-label": l = "Search",
1245
1247
  // internal default, not in props
1246
- ...s
1248
+ ...n
1247
1249
  }, o) => /* @__PURE__ */ e.jsx(
1248
- z,
1250
+ k,
1249
1251
  {
1250
1252
  ref: o,
1251
1253
  type: "search",
1252
- inputMode: d,
1254
+ inputMode: s,
1253
1255
  autoComplete: r,
1254
1256
  spellCheck: t,
1255
- placeholder: i,
1256
- maxLength: n,
1257
- enterKeyHint: l,
1258
- "aria-label": g,
1259
- leftContent: /* @__PURE__ */ e.jsx(S, { as: Q, color: "inherit", size: "sm" }),
1260
- ...s
1257
+ placeholder: c,
1258
+ maxLength: a,
1259
+ enterKeyHint: i,
1260
+ "aria-label": l,
1261
+ leftContent: /* @__PURE__ */ e.jsx(z, { as: Z, color: "inherit", size: "sm" }),
1262
+ ...n
1261
1263
  }
1262
1264
  )
1263
- ), Se = k(
1265
+ ), Me = j(
1264
1266
  "block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50 appearance-none bg-no-repeat bg-right pr-10",
1265
1267
  {
1266
1268
  variants: {
@@ -1292,47 +1294,47 @@ const ze = x.forwardRef(
1292
1294
  variant: "primary"
1293
1295
  }
1294
1296
  }
1295
- ), Ve = x.forwardRef(
1297
+ ), Ee = x.forwardRef(
1296
1298
  ({
1297
1299
  variant: r = "primary",
1298
1300
  label: t,
1299
- helperText: d,
1300
- error: i,
1301
- className: n,
1302
- disabled: l,
1303
- id: g,
1304
- placeholder: s,
1301
+ helperText: s,
1302
+ error: c,
1303
+ className: a,
1304
+ disabled: i,
1305
+ id: l,
1306
+ placeholder: n,
1305
1307
  children: o,
1306
- ...c
1307
- }, h) => {
1308
- const u = x.useId(), a = g || u, f = !!i;
1308
+ ...d
1309
+ }, g) => {
1310
+ const f = x.useId(), u = l || f, h = !!c;
1309
1311
  return /* @__PURE__ */ e.jsxs("div", { children: [
1310
1312
  /* @__PURE__ */ e.jsx(
1311
1313
  "label",
1312
1314
  {
1313
- htmlFor: a,
1315
+ htmlFor: u,
1314
1316
  className: "block text-sm font-medium text-foreground mb-2",
1315
1317
  children: t
1316
1318
  }
1317
1319
  ),
1318
- /* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", n), children: [
1320
+ /* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", a), children: [
1319
1321
  /* @__PURE__ */ e.jsxs(
1320
1322
  "select",
1321
1323
  {
1322
- ref: h,
1323
- id: a,
1324
- "aria-invalid": f,
1325
- "aria-disabled": l,
1326
- disabled: l,
1324
+ ref: g,
1325
+ id: u,
1326
+ "aria-invalid": h,
1327
+ "aria-disabled": i,
1328
+ disabled: i,
1327
1329
  className: p(
1328
- Se({
1329
- variant: f ? "danger" : r
1330
+ Me({
1331
+ variant: h ? "danger" : r
1330
1332
  }),
1331
1333
  "h-10 pl-3"
1332
1334
  ),
1333
- ...c,
1335
+ ...d,
1334
1336
  children: [
1335
- s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, hidden: !0, children: s }),
1337
+ n && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, hidden: !0, children: n }),
1336
1338
  o
1337
1339
  ]
1338
1340
  }
@@ -1356,13 +1358,13 @@ const ze = x.forwardRef(
1356
1358
  }
1357
1359
  ) })
1358
1360
  ] }),
1359
- f && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: i }),
1360
- !f && d && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: d })
1361
+ h && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: c }),
1362
+ !h && s && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: s })
1361
1363
  ] });
1362
1364
  }
1363
1365
  );
1364
- Ve.displayName = "SelectInput";
1365
- const Re = k(
1366
+ Ee.displayName = "SelectInput";
1367
+ const Fe = j(
1366
1368
  "block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
1367
1369
  {
1368
1370
  variants: {
@@ -1399,29 +1401,29 @@ const Re = k(
1399
1401
  fieldSizing: "fixed"
1400
1402
  }
1401
1403
  }
1402
- ), Oe = x.forwardRef(
1404
+ ), Be = x.forwardRef(
1403
1405
  ({
1404
1406
  variant: r = "primary",
1405
1407
  label: t,
1406
- helperText: d,
1407
- error: i,
1408
- className: n,
1409
- disabled: l,
1410
- id: g,
1411
- minRows: s = 3,
1408
+ helperText: s,
1409
+ error: c,
1410
+ className: a,
1411
+ disabled: i,
1412
+ id: l,
1413
+ minRows: n = 3,
1412
1414
  maxRows: o,
1413
- fieldSizing: c = "fixed",
1414
- style: h,
1415
- rows: u,
1416
- ...a
1417
- }, f) => {
1418
- const b = x.useId(), w = g || b, m = !!i, v = u || s, y = c === "content" ? void 0 : o, j = {
1419
- ...c === "content" && { fieldSizing: "content" },
1415
+ fieldSizing: d = "fixed",
1416
+ style: g,
1417
+ rows: f,
1418
+ ...u
1419
+ }, h) => {
1420
+ const b = x.useId(), w = l || b, m = !!c, v = f || n, y = d === "content" ? void 0 : o, N = {
1421
+ ...d === "content" && { fieldSizing: "content" },
1420
1422
  ...y && {
1421
1423
  maxHeight: `${y * 1.5}rem`
1422
1424
  // Approximate line height
1423
1425
  },
1424
- ...h
1426
+ ...g
1425
1427
  };
1426
1428
  return /* @__PURE__ */ e.jsxs("div", { children: [
1427
1429
  t && /* @__PURE__ */ e.jsx(
@@ -1432,49 +1434,49 @@ const Re = k(
1432
1434
  children: t
1433
1435
  }
1434
1436
  ),
1435
- /* @__PURE__ */ e.jsx("div", { className: p("relative w-full", n), children: /* @__PURE__ */ e.jsx(
1437
+ /* @__PURE__ */ e.jsx("div", { className: p("relative w-full", a), children: /* @__PURE__ */ e.jsx(
1436
1438
  "textarea",
1437
1439
  {
1438
- ref: f,
1440
+ ref: h,
1439
1441
  id: w,
1440
1442
  rows: v,
1441
1443
  "aria-invalid": m,
1442
- "aria-disabled": l,
1443
- disabled: l,
1444
- style: j,
1444
+ "aria-disabled": i,
1445
+ disabled: i,
1446
+ style: N,
1445
1447
  className: p(
1446
- Re({
1448
+ Fe({
1447
1449
  variant: m ? "danger" : r,
1448
- fieldSizing: c
1450
+ fieldSizing: d
1449
1451
  }),
1450
1452
  "px-3 py-2"
1451
1453
  ),
1452
- ...a
1454
+ ...u
1453
1455
  }
1454
1456
  ) }),
1455
- m && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: i }),
1456
- !m && d && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: d })
1457
+ m && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: c }),
1458
+ !m && s && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: s })
1457
1459
  ] });
1458
1460
  }
1459
1461
  );
1460
- Oe.displayName = "TextAreaInput";
1461
- const Ye = R(function(t, d) {
1462
- const i = (n) => {
1463
- t?.onChange?.(n.target.value);
1462
+ Be.displayName = "TextAreaInput";
1463
+ const ur = I(function(t, s) {
1464
+ const c = (a) => {
1465
+ t?.onChange?.(a.target.value);
1464
1466
  };
1465
1467
  return /* @__PURE__ */ e.jsx(
1466
- z,
1468
+ k,
1467
1469
  {
1468
1470
  type: "time",
1469
1471
  tabIndex: 0,
1470
1472
  "aria-hidden": "true",
1471
- leftContent: /* @__PURE__ */ e.jsx(S, { as: U, color: "inherit", size: "sm" }),
1472
- ref: d,
1473
+ leftContent: /* @__PURE__ */ e.jsx(z, { as: ee, color: "inherit", size: "sm" }),
1474
+ ref: s,
1473
1475
  ...t,
1474
- onChange: i
1476
+ onChange: c
1475
1477
  }
1476
1478
  );
1477
- }), Ee = k(
1479
+ }), De = j(
1478
1480
  "relative inline-flex items-center transition-colors duration-200 border border-transparent",
1479
1481
  {
1480
1482
  variants: {
@@ -1530,7 +1532,7 @@ const Ye = R(function(t, d) {
1530
1532
  { checked: !1, class: "bg-white border-border" }
1531
1533
  ]
1532
1534
  }
1533
- ), Me = k(
1535
+ ), Pe = j(
1534
1536
  "absolute rounded-full transition-transform duration-200",
1535
1537
  {
1536
1538
  variants: {
@@ -1549,69 +1551,69 @@ const Ye = R(function(t, d) {
1549
1551
  checked: !1
1550
1552
  }
1551
1553
  }
1552
- ), Fe = ({
1554
+ ), $e = ({
1553
1555
  color: r = "primary",
1554
1556
  size: t = "md",
1555
- disabled: d = !1,
1556
- className: i,
1557
- checked: n
1557
+ disabled: s = !1,
1558
+ className: c,
1559
+ checked: a
1558
1560
  }) => /* @__PURE__ */ e.jsx(
1559
1561
  "span",
1560
1562
  {
1561
1563
  className: p(
1562
- Ee({ color: r, size: t, disabled: d, checked: n }),
1564
+ De({ color: r, size: t, disabled: s, checked: a }),
1563
1565
  "rounded-full pointer-events-none",
1564
- i
1566
+ c
1565
1567
  ),
1566
1568
  "aria-hidden": "true"
1567
1569
  }
1568
- ), Pe = ({ size: r = "md", checked: t = !1 }) => /* @__PURE__ */ e.jsx("span", { className: p(Me({ size: r, checked: t })), "aria-hidden": "true" }), De = ({ label: r, htmlFor: t, placement: d = "top", disabled: i = !1 }) => r ? /* @__PURE__ */ e.jsx(
1570
+ ), Ae = ({ size: r = "md", checked: t = !1 }) => /* @__PURE__ */ e.jsx("span", { className: p(Pe({ size: r, checked: t })), "aria-hidden": "true" }), He = ({ label: r, htmlFor: t, placement: s = "top", disabled: c = !1 }) => r ? /* @__PURE__ */ e.jsx(
1569
1571
  "label",
1570
1572
  {
1571
1573
  htmlFor: t,
1572
1574
  className: p(
1573
1575
  "text-sm select-none font-medium text-foreground",
1574
- d === "inline" ? "ml-2 mb-0" : "mb-1",
1575
- i && "opacity-50 cursor-not-allowed"
1576
+ s === "inline" ? "ml-2 mb-0" : "mb-1",
1577
+ c && "opacity-50 cursor-not-allowed"
1576
1578
  ),
1577
1579
  children: r
1578
1580
  }
1579
- ) : null, Be = x.forwardRef(
1581
+ ) : null, Le = x.forwardRef(
1580
1582
  ({
1581
1583
  checked: r,
1582
1584
  defaultChecked: t,
1583
- onCheckedChange: d,
1584
- color: i = "primary",
1585
- size: n = "md",
1586
- label: l,
1587
- labelPlacement: g = "top",
1588
- disabled: s = !1,
1585
+ onCheckedChange: s,
1586
+ color: c = "primary",
1587
+ size: a = "md",
1588
+ label: i,
1589
+ labelPlacement: l = "top",
1590
+ disabled: n = !1,
1589
1591
  className: o,
1590
- id: c,
1591
- ariaLabel: h,
1592
- ...u
1593
- }, a) => {
1594
- const [f, b] = E(
1592
+ id: d,
1593
+ ariaLabel: g,
1594
+ ...f
1595
+ }, u) => {
1596
+ const [h, b] = O(
1595
1597
  t ?? !1
1596
- ), w = q(), m = c || w, v = typeof r == "boolean", y = v ? r : f, j = (C) => {
1597
- v || b(C.target.checked), d?.(C.target.checked);
1598
+ ), w = D(), m = d || w, v = typeof r == "boolean", y = v ? r : h, N = (C) => {
1599
+ v || b(C.target.checked), s?.(C.target.checked);
1598
1600
  };
1599
1601
  return /* @__PURE__ */ e.jsxs(
1600
1602
  "div",
1601
1603
  {
1602
1604
  className: p(
1603
1605
  "flex flex-col",
1604
- g === "inline" && "flex-row items-center",
1606
+ l === "inline" && "flex-row items-center",
1605
1607
  o
1606
1608
  ),
1607
1609
  children: [
1608
1610
  /* @__PURE__ */ e.jsx(
1609
- De,
1611
+ He,
1610
1612
  {
1611
- label: l,
1613
+ label: i,
1612
1614
  htmlFor: m,
1613
- placement: g,
1614
- disabled: s
1615
+ placement: l,
1616
+ disabled: n
1615
1617
  }
1616
1618
  ),
1617
1619
  /* @__PURE__ */ e.jsxs(
@@ -1619,33 +1621,33 @@ const Ye = R(function(t, d) {
1619
1621
  {
1620
1622
  className: p(
1621
1623
  "relative flex items-center",
1622
- g === "inline" && "ml-2"
1624
+ l === "inline" && "ml-2"
1623
1625
  ),
1624
1626
  children: [
1625
1627
  /* @__PURE__ */ e.jsx(
1626
1628
  "input",
1627
1629
  {
1628
- ref: a,
1630
+ ref: u,
1629
1631
  type: "checkbox",
1630
1632
  id: m,
1631
- "aria-label": h || l,
1633
+ "aria-label": g || i,
1632
1634
  checked: y,
1633
- disabled: s,
1634
- onChange: j,
1635
+ disabled: n,
1636
+ onChange: N,
1635
1637
  className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",
1636
- ...u
1638
+ ...f
1637
1639
  }
1638
1640
  ),
1639
1641
  /* @__PURE__ */ e.jsx(
1640
- Fe,
1642
+ $e,
1641
1643
  {
1642
- color: i,
1643
- size: n,
1644
- disabled: s,
1644
+ color: c,
1645
+ size: a,
1646
+ disabled: n,
1645
1647
  checked: y
1646
1648
  }
1647
1649
  ),
1648
- /* @__PURE__ */ e.jsx(Pe, { size: n, checked: y })
1650
+ /* @__PURE__ */ e.jsx(Ae, { size: a, checked: y })
1649
1651
  ]
1650
1652
  }
1651
1653
  )
@@ -1654,78 +1656,361 @@ const Ye = R(function(t, d) {
1654
1656
  );
1655
1657
  }
1656
1658
  );
1657
- Be.displayName = "SwitchInput";
1658
- function $e(r, t) {
1659
- J(() => {
1659
+ Le.displayName = "SwitchInput";
1660
+ function Te(r, t) {
1661
+ X(() => {
1660
1662
  typeof r == "number" && !isNaN(r) ? t(`${r}`) : r === "" || r === null || r === void 0 ? t("") : typeof r == "string" && t(r);
1661
1663
  }, [r, t]);
1662
1664
  }
1663
- const Ze = ({
1665
+ const gr = ({
1664
1666
  value: r,
1665
1667
  onChange: t,
1666
- allowNegative: d = !1,
1667
- inputProps: i,
1668
- label: n,
1669
- helperText: l,
1670
- error: g,
1671
- variant: s,
1668
+ allowNegative: s = !1,
1669
+ inputProps: c,
1670
+ label: a,
1671
+ helperText: i,
1672
+ error: l,
1673
+ variant: n,
1672
1674
  ...o
1673
1675
  }) => {
1674
- const c = O(null), [h, u] = E(
1676
+ const d = $(null), [g, f] = O(
1675
1677
  r === "" ? "" : String(r)
1676
1678
  );
1677
- $e(r, u);
1678
- const a = (f) => {
1679
- let b = f.target.value.replace(/[^\d.,-]/g, "");
1680
- d || (b = b.replace(/-/g, "")), u(b), t(b);
1679
+ Te(r, f);
1680
+ const u = (h) => {
1681
+ let b = h.target.value.replace(/[^\d.,-]/g, "");
1682
+ s || (b = b.replace(/-/g, "")), f(b), t(b);
1681
1683
  };
1682
1684
  return /* @__PURE__ */ e.jsx(
1683
- z,
1685
+ k,
1684
1686
  {
1685
- ref: c,
1687
+ ref: d,
1686
1688
  type: "text",
1687
- label: n,
1688
- value: h,
1689
- onChange: a,
1690
- error: g,
1691
- helperText: l,
1689
+ label: a,
1690
+ value: g,
1691
+ onChange: u,
1692
+ error: l,
1693
+ helperText: i,
1692
1694
  placeholder: o.placeholder,
1693
- leftContent: /* @__PURE__ */ e.jsx(S, { as: X, color: "inherit", size: "sm" }),
1694
- variant: s,
1695
+ leftContent: /* @__PURE__ */ e.jsx(z, { as: re, color: "inherit", size: "sm" }),
1696
+ variant: n,
1695
1697
  inputMode: "numeric",
1696
1698
  autoComplete: "off",
1697
- pattern: d ? "^-?[\\d,.]*$" : "^[\\d,.]*$",
1698
- ...i,
1699
+ pattern: s ? "^-?[\\d,.]*$" : "^[\\d,.]*$",
1700
+ ...c,
1699
1701
  ...o
1700
1702
  }
1701
1703
  );
1702
- }, er = R(
1704
+ }, fr = I(
1703
1705
  (r, t) => /* @__PURE__ */ e.jsx(
1704
- z,
1706
+ k,
1705
1707
  {
1706
1708
  ...r,
1707
1709
  ref: t,
1708
1710
  type: "email",
1709
1711
  autoComplete: "email",
1710
1712
  inputMode: "email",
1711
- leftContent: /* @__PURE__ */ e.jsx(S, { as: Y, color: "inherit", size: "sm" })
1713
+ leftContent: /* @__PURE__ */ e.jsx(z, { as: te, color: "inherit", size: "sm" })
1712
1714
  }
1713
1715
  )
1714
- );
1716
+ ), Ge = j(
1717
+ "flex items-center gap-3 cursor-pointer border-b border-border select-none p-4 transition-colors hover:bg-neutral-light",
1718
+ {
1719
+ variants: {
1720
+ checked: {
1721
+ true: "",
1722
+ false: ""
1723
+ },
1724
+ disabled: {
1725
+ true: "opacity-50 cursor-not-allowed",
1726
+ false: ""
1727
+ }
1728
+ },
1729
+ defaultVariants: {
1730
+ checked: !1,
1731
+ disabled: !1
1732
+ }
1733
+ }
1734
+ ), Ke = j(
1735
+ "flex h-6 w-6 items-center justify-center rounded-sm overflow-hidden border border-border transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
1736
+ {
1737
+ variants: {
1738
+ checked: {
1739
+ true: "bg-primary",
1740
+ false: "border-border bg-white"
1741
+ },
1742
+ disabled: {
1743
+ true: "opacity-50",
1744
+ false: "active:scale-95"
1745
+ }
1746
+ },
1747
+ defaultVariants: {
1748
+ checked: !1,
1749
+ disabled: !1
1750
+ }
1751
+ }
1752
+ ), hr = I(({ value: r, label: t, checked: s, id: c, className: a, disabled: i, ...l }, n) => {
1753
+ const o = D(), d = c || o;
1754
+ return /* @__PURE__ */ e.jsxs(
1755
+ "label",
1756
+ {
1757
+ htmlFor: d,
1758
+ className: p(
1759
+ Ge({
1760
+ checked: !!s,
1761
+ disabled: !!i
1762
+ }),
1763
+ a
1764
+ ),
1765
+ "aria-checked": s,
1766
+ role: "radio",
1767
+ "aria-label": `Select ${r}`,
1768
+ tabIndex: i ? -1 : 0,
1769
+ children: [
1770
+ /* @__PURE__ */ e.jsx(
1771
+ "input",
1772
+ {
1773
+ ref: n,
1774
+ id: d,
1775
+ type: "radio",
1776
+ value: r,
1777
+ checked: s,
1778
+ disabled: i,
1779
+ className: "sr-only",
1780
+ "aria-hidden": !0,
1781
+ "aria-checked": s,
1782
+ ...l
1783
+ }
1784
+ ),
1785
+ /* @__PURE__ */ e.jsx(
1786
+ "span",
1787
+ {
1788
+ className: Ke({
1789
+ checked: !!s,
1790
+ disabled: !!i
1791
+ }),
1792
+ "aria-hidden": "true",
1793
+ children: s ? /* @__PURE__ */ e.jsx(z, { as: F, color: "neutral", size: "md" }) : null
1794
+ }
1795
+ ),
1796
+ /* @__PURE__ */ e.jsx("span", { className: "flex-1 min-w-0 text-base text-foreground", children: t })
1797
+ ]
1798
+ }
1799
+ );
1800
+ }), We = j(
1801
+ "flex items-center gap-3 cursor-pointer border-b border-border select-none p-4 transition-colors hover:bg-neutral-light",
1802
+ {
1803
+ variants: {
1804
+ checked: {
1805
+ true: "",
1806
+ false: ""
1807
+ },
1808
+ disabled: {
1809
+ true: "opacity-50 cursor-not-allowed",
1810
+ false: ""
1811
+ }
1812
+ },
1813
+ defaultVariants: {
1814
+ checked: !1,
1815
+ disabled: !1
1816
+ }
1817
+ }
1818
+ ), _e = j(
1819
+ "flex h-6 w-6 items-center justify-center rounded-sm overflow-hidden border border-border transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
1820
+ {
1821
+ variants: {
1822
+ checked: {
1823
+ true: "bg-primary",
1824
+ false: "border-border bg-white"
1825
+ },
1826
+ disabled: {
1827
+ true: "opacity-50",
1828
+ false: "active:scale-95"
1829
+ }
1830
+ },
1831
+ defaultVariants: {
1832
+ checked: !1,
1833
+ disabled: !1
1834
+ }
1835
+ }
1836
+ ), br = I(({ value: r, label: t, checked: s, id: c, className: a, disabled: i, ...l }, n) => {
1837
+ const o = D(), d = c || o;
1838
+ return /* @__PURE__ */ e.jsxs(
1839
+ "label",
1840
+ {
1841
+ htmlFor: d,
1842
+ className: p(
1843
+ We({
1844
+ checked: !!s,
1845
+ disabled: !!i
1846
+ }),
1847
+ a
1848
+ ),
1849
+ "aria-checked": s,
1850
+ role: "checkbox",
1851
+ "aria-label": `Select ${r}`,
1852
+ tabIndex: i ? -1 : 0,
1853
+ children: [
1854
+ /* @__PURE__ */ e.jsx(
1855
+ "input",
1856
+ {
1857
+ ref: n,
1858
+ id: d,
1859
+ type: "checkbox",
1860
+ value: r,
1861
+ checked: s,
1862
+ disabled: i,
1863
+ className: "sr-only",
1864
+ "aria-hidden": !0,
1865
+ "aria-checked": s,
1866
+ ...l
1867
+ }
1868
+ ),
1869
+ /* @__PURE__ */ e.jsx(
1870
+ "span",
1871
+ {
1872
+ className: _e({
1873
+ checked: !!s,
1874
+ disabled: !!i
1875
+ }),
1876
+ "aria-hidden": "true",
1877
+ children: s ? /* @__PURE__ */ e.jsx(z, { as: F, color: "neutral", size: "md" }) : null
1878
+ }
1879
+ ),
1880
+ /* @__PURE__ */ e.jsx("span", { className: "flex-1 min-w-0 text-base text-foreground", children: t })
1881
+ ]
1882
+ }
1883
+ );
1884
+ }), qe = I(
1885
+ ({ children: r, onChange: t, value: s, size: c, placement: a, ...i }, l) => {
1886
+ const [n, o] = O(!1), d = P(
1887
+ () => ({ isOpen: n, setIsOpen: o, onChange: t, value: s }),
1888
+ [n, o, t, s]
1889
+ );
1890
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1891
+ /* @__PURE__ */ e.jsx(
1892
+ k,
1893
+ {
1894
+ ...i,
1895
+ onChange: t,
1896
+ value: s,
1897
+ ref: l,
1898
+ readOnly: !0,
1899
+ tabIndex: 0,
1900
+ onClick: () => o(!0),
1901
+ "aria-haspopup": "dialog",
1902
+ "aria-expanded": n,
1903
+ onKeyDown: (g) => {
1904
+ (g.key === "Enter" || g.key === " ") && (g.preventDefault(), o(!0));
1905
+ }
1906
+ }
1907
+ ),
1908
+ /* @__PURE__ */ e.jsx(
1909
+ M,
1910
+ {
1911
+ isOpen: n,
1912
+ onClose: () => o(!1),
1913
+ size: c,
1914
+ placement: a,
1915
+ children: n && r(d)
1916
+ }
1917
+ )
1918
+ ] });
1919
+ }
1920
+ ), xr = Object.assign(qe, {
1921
+ Header: M.Header,
1922
+ Body: M.Body,
1923
+ Footer: M.Footer
1924
+ }), Je = I(
1925
+ ({ children: r, onChange: t, value: s, size: c, position: a, ...i }, l) => {
1926
+ const [n, o] = O(!1), d = P(
1927
+ () => ({ isOpen: n, setIsOpen: o, onChange: t, value: s }),
1928
+ [n, o, t, s]
1929
+ );
1930
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1931
+ /* @__PURE__ */ e.jsx(
1932
+ k,
1933
+ {
1934
+ ...i,
1935
+ onChange: t,
1936
+ value: s,
1937
+ ref: l,
1938
+ readOnly: !0,
1939
+ tabIndex: 0,
1940
+ onClick: () => o(!0),
1941
+ onKeyDown: (g) => {
1942
+ (g.key === "Enter" || g.key === " ") && (g.preventDefault(), o(!0));
1943
+ },
1944
+ "aria-haspopup": "dialog",
1945
+ "aria-expanded": n
1946
+ }
1947
+ ),
1948
+ /* @__PURE__ */ e.jsx(
1949
+ E,
1950
+ {
1951
+ isOpen: n,
1952
+ onClose: o,
1953
+ size: c,
1954
+ position: a,
1955
+ children: n && r(d)
1956
+ }
1957
+ )
1958
+ ] });
1959
+ }
1960
+ ), mr = Object.assign(Je, {
1961
+ Header: E.Header,
1962
+ Body: E.Body,
1963
+ Footer: E.Footer
1964
+ }), Qe = I(({ children: r, onChange: t, value: s, ...c }, a) => {
1965
+ const [i, l] = O(!1), n = P(
1966
+ () => ({ isOpen: i, setIsOpen: l, onChange: t, value: s }),
1967
+ [i, l, t, s]
1968
+ );
1969
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1970
+ /* @__PURE__ */ e.jsx(
1971
+ k,
1972
+ {
1973
+ ...c,
1974
+ onChange: t,
1975
+ value: s,
1976
+ ref: a,
1977
+ readOnly: !0,
1978
+ tabIndex: 0,
1979
+ onClick: () => l(!0),
1980
+ "aria-haspopup": "dialog",
1981
+ "aria-expanded": i,
1982
+ onKeyDown: (o) => {
1983
+ (o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(!0));
1984
+ }
1985
+ }
1986
+ ),
1987
+ /* @__PURE__ */ e.jsx(R, { isOpen: i, onClose: () => l(!1), children: i && r(n) })
1988
+ ] });
1989
+ }), pr = Object.assign(Qe, {
1990
+ Header: R.Header,
1991
+ Body: R.Body,
1992
+ Footer: R.Footer,
1993
+ Title: R.Title
1994
+ });
1715
1995
  export {
1716
- _e as C,
1717
- Je as D,
1718
- er as E,
1719
- Ze as P,
1720
- Ke as R,
1721
- Qe as S,
1722
- z as T,
1723
- He as a,
1724
- qe as b,
1725
- Ue as c,
1726
- Xe as d,
1727
- Ve as e,
1728
- Oe as f,
1729
- Ye as g,
1730
- Be as h
1996
+ pr as B,
1997
+ or as C,
1998
+ ar as D,
1999
+ fr as E,
2000
+ xr as M,
2001
+ gr as P,
2002
+ ir as R,
2003
+ cr as S,
2004
+ k as T,
2005
+ sr as a,
2006
+ nr as b,
2007
+ dr as c,
2008
+ lr as d,
2009
+ Ee as e,
2010
+ Be as f,
2011
+ ur as g,
2012
+ Le as h,
2013
+ hr as i,
2014
+ br as j,
2015
+ mr as k
1731
2016
  };