prometeo-design-system 2.9.5 → 2.9.7

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 (60) hide show
  1. package/dist/Button.es.js +9 -9
  2. package/dist/{CardProfile-CsytJlKZ.js → CardProfile-WHoeSibd.js} +8 -8
  3. package/dist/CardProfile.es.js +1 -1
  4. package/dist/CheckBox.es.js +4 -4
  5. package/dist/DatePicker-CbXUUnv7.js +3568 -0
  6. package/dist/DatePicker.es.js +3 -3439
  7. package/dist/DrawerDesktop.d.ts +6 -0
  8. package/dist/DrawerDesktop.es.js +211 -0
  9. package/dist/DrawerMobile.d.ts +6 -0
  10. package/dist/DrawerMobile.es.js +242 -0
  11. package/dist/DropZone.es.js +5 -5
  12. package/dist/FAButton.es.js +1 -1
  13. package/dist/{HelperComponent-g_xuKWzK.js → HelperComponent-BeNlTMqI.js} +7 -7
  14. package/dist/Icons/Icons.d.ts +1 -1
  15. package/dist/Icons.d.ts +0 -4
  16. package/dist/Icons.es.js +1119 -3
  17. package/dist/Image.es.js +29 -29
  18. package/dist/{ImageGallery-Ckxg9OIC.js → ImageGallery-WKzUevOQ.js} +34 -34
  19. package/dist/ImageGallery.es.js +1 -1
  20. package/dist/{Input-Cck37DpG.js → Input-Cf8P1QJv.js} +30 -31
  21. package/dist/Input.es.js +1 -1
  22. package/dist/InputMultiple.es.js +34 -34
  23. package/dist/Logo.es.js +1 -1
  24. package/dist/OtpInput.es.js +43 -43
  25. package/dist/RadioButton.es.js +1 -1
  26. package/dist/RecurrentDatePicker.d.ts +2 -0
  27. package/dist/RecurrentDatePicker.es.js +694 -0
  28. package/dist/RecurrentDatePickerRRule.d.ts +2 -0
  29. package/dist/RecurrentDatePickerRRule.es.js +1684 -0
  30. package/dist/{Select-BD5FTxVw.js → Select-DeKi15Iu.js} +31 -32
  31. package/dist/Select.es.js +1 -1
  32. package/dist/SelectSearch.es.js +1 -1
  33. package/dist/Spinner.es.js +172 -46
  34. package/dist/Steps.es.js +1 -1
  35. package/dist/Toast.es.js +22 -22
  36. package/dist/Tooltip.es.js +1 -1
  37. package/dist/components/Drawer/DrawerDesktop.d.ts +1 -0
  38. package/dist/components/Drawer/useDrawerDesktop.d.ts +1 -1
  39. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +4 -1
  40. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +4 -4
  41. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
  42. package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +3 -3
  43. package/dist/components/Spinner/Spinner.d.ts +6 -6
  44. package/dist/exports/DrawerDesktop.d.ts +4 -0
  45. package/dist/exports/DrawerMobile.d.ts +4 -0
  46. package/dist/exports/Icons.d.ts +1 -2
  47. package/dist/exports/RecurrentDatePicker.d.ts +5 -0
  48. package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
  49. package/dist/exports/Spinner.d.ts +2 -1
  50. package/dist/index.d.ts +8 -3
  51. package/dist/prometeo-design-system.es.js +412 -762
  52. package/dist/styles.css +1 -0
  53. package/dist/styles.d.ts +1 -0
  54. package/package.json +27 -6
  55. package/src/styles/app.css +1 -1313
  56. package/src/styles/base.css +1331 -0
  57. package/src/styles/utilities.css +24 -36
  58. package/dist/Icons-DtFC5DJ7.js +0 -1079
  59. package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
  60. package/dist/prometeo-design-system.css +0 -1
@@ -1,9 +1,9 @@
1
1
  import { j as r } from "./jsx-runtime-DKDX3adD.js";
2
- import { a as Z, I as T, E as ee } from "./Icons-DtFC5DJ7.js";
2
+ import { Close as Z, Info as T, Error as ee } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import M, { useRef as _, useState as x, useCallback as te, useEffect as re } from "react";
5
- const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator: w = ",", variant: y = "default", placeholder: K, itemClassName: U, itemIcon: V, helperText: j, errorText: N, disabled: l, onClick: F, className: $, readonly: h, onValueDelete: B, ...O }) => {
6
- const o = _(null), E = _(null), [u, n] = x(""), [z, i] = x(0), [q, c] = x(!0), [v, P] = x(!1), [m, p] = x(!1), [k, I] = x(null), g = (e) => {
5
+ const se = ({ label: S, name: D, onChange: f, value: l, icon: C, valueSeparator: w = ",", variant: I = "default", placeholder: K, itemClassName: U, itemIcon: V, helperText: j, errorText: N, disabled: a, onClick: F, className: $, readonly: h, onValueDelete: B, ...O }) => {
6
+ const o = _(null), E = _(null), [u, n] = x(""), [z, i] = x(0), [q, c] = x(!0), [v, P] = x(!1), [m, p] = x(!1), [k, y] = x(null), g = (e) => {
7
7
  if (h || !e) return;
8
8
  const t = e.selectionStart ?? u.length;
9
9
  i(t);
@@ -15,11 +15,11 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
15
15
  s.length > 0 ? (n(s), b()) : (p(!1), n(""), c(!0), i(0));
16
16
  return;
17
17
  }
18
- if (s.length === 0 || a.includes(s)) {
18
+ if (s.length === 0 || l.includes(s)) {
19
19
  n(""), c(!0), g(e.target);
20
20
  return;
21
21
  }
22
- f([...a, s]), n(""), c(!0);
22
+ f([...l, s]), n(""), c(!0);
23
23
  } else {
24
24
  if (e.target.value === w) return;
25
25
  n(e.target.value), c(!1);
@@ -28,16 +28,16 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
28
28
  }, b = te(() => {
29
29
  const e = u.trim();
30
30
  if (e.length === 0) {
31
- p(!1), n(""), c(!0), i(0), I(null);
31
+ p(!1), n(""), c(!0), i(0), y(null);
32
32
  return;
33
33
  }
34
- p(!1), k !== null && f(Q(a.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), I(null);
35
- }, [k, u, f, a]), G = (e) => {
34
+ p(!1), k !== null && f(Q(l.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), y(null);
35
+ }, [k, u, f, l]), G = (e) => {
36
36
  if (!h) {
37
37
  if (e.key === "Backspace" && u.length === 0) {
38
38
  if (q) {
39
- const t = a[a.length - 1];
40
- t && (f(a.filter((s) => s !== t)), n(t), i(t.length));
39
+ const t = l[l.length - 1];
40
+ t && (f(l.filter((s) => s !== t)), n(t), i(t.length));
41
41
  } else
42
42
  c(!0);
43
43
  return;
@@ -48,17 +48,17 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
48
48
  t.length > 0 ? (n(t), b()) : (p(!1), n(""), c(!0), i(0));
49
49
  return;
50
50
  }
51
- t.length > 0 && !a.includes(t) && t !== w && (f([...a, t]), n(""), c(!0), i(0));
51
+ t.length > 0 && !l.includes(t) && t !== w && (f([...l, t]), n(""), c(!0), i(0));
52
52
  }
53
- e.key === "Escape" && m && (p(!1), n(""), c(!0), i(0), I(null)), g(e.currentTarget);
53
+ e.key === "Escape" && m && (p(!1), n(""), c(!0), i(0), y(null)), g(e.currentTarget);
54
54
  }
55
55
  }, H = (e) => {
56
- const t = a.filter((s) => s !== e);
56
+ const t = l.filter((s) => s !== e);
57
57
  f(t), B?.(e);
58
58
  }, J = (e) => {
59
- h || (L(e), p(!0), n(e), i(e.length), I(a.length - 1), o.current?.focus());
59
+ h || (L(e), p(!0), n(e), i(e.length), y(l.length - 1), o.current?.focus());
60
60
  }, L = (e) => {
61
- const t = a.filter((s) => s !== e);
61
+ const t = l.filter((s) => s !== e);
62
62
  f([...t, e]);
63
63
  }, Q = (e) => e.filter((t, s, Y) => Y.indexOf(t) === s);
64
64
  re(() => {
@@ -110,7 +110,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
110
110
  isFocused: "text-warning-default-focused",
111
111
  disabled: "text-warning-default-disabled"
112
112
  }
113
- }, R = l ? "disabled" : v ? "isFocused" : "default";
113
+ }, R = a ? "disabled" : v ? "isFocused" : "default";
114
114
  return /* @__PURE__ */ r.jsxs("div", { className: d(
115
115
  "relative w-full",
116
116
  $
@@ -118,7 +118,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
118
118
  /* @__PURE__ */ r.jsx("p", { className: d(
119
119
  "mb-1 px-3",
120
120
  "prometeo-fonts-label-large",
121
- X?.[y || "default"]?.[R]
121
+ X?.[I || "default"]?.[R]
122
122
  ), children: S }),
123
123
  /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
124
124
  /* @__PURE__ */ r.jsx(
@@ -131,7 +131,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
131
131
  onClick: (e) => g(e.currentTarget),
132
132
  onSelect: (e) => g(e.currentTarget),
133
133
  name: D,
134
- disabled: l,
134
+ disabled: a,
135
135
  className: d(
136
136
  "absolute inset-0 w-full h-full",
137
137
  "opacity-0 cursor-text z-10",
@@ -155,10 +155,10 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
155
155
  "flex flex-wrap gap-1 min-h-[58px]",
156
156
  "transition-all duration-300 ease-in-out",
157
157
  "cursor-text",
158
- W[R][y],
158
+ W[R][I],
159
159
  v ? "ring-[1px]" : "",
160
160
  // 'hover:border-primary-default-hover',
161
- l && "hover:border-neutral-default-disabled"
161
+ a && "hover:border-neutral-default-disabled"
162
162
  ),
163
163
  onMouseDown: (e) => {
164
164
  e.stopPropagation(), F?.(e), o.current?.focus();
@@ -171,17 +171,17 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
171
171
  children: [
172
172
  C && /* @__PURE__ */ r.jsx("div", { className: d(
173
173
  "flex items-center text-neutral-default-default",
174
- l && "text-neutral-default-disabled"
174
+ a && "text-neutral-default-disabled"
175
175
  ), children: C }),
176
- a.map((e, t) => /* @__PURE__ */ r.jsxs(
176
+ l.map((e, t) => /* @__PURE__ */ r.jsxs(
177
177
  "div",
178
178
  {
179
179
  className: d(
180
180
  "h-8 max-h-8 rounded-lg bg-primary-light-default border border-neutral-default-default",
181
181
  "flex items-center gap-2 px-2",
182
182
  "prometeo-fonts-label-medium z-20",
183
- t === a.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
184
- l && "border-neutral-default-disabled text-neutral-default-disabled",
183
+ t === l.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
184
+ a && "border-neutral-default-disabled text-neutral-default-disabled",
185
185
  U
186
186
  ),
187
187
  children: [
@@ -191,7 +191,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
191
191
  size: 16,
192
192
  className: d(
193
193
  "text-neutral-default-default",
194
- l && "text-neutral-default-disabled"
194
+ a && "text-neutral-default-disabled"
195
195
  )
196
196
  }
197
197
  ) }),
@@ -199,11 +199,11 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
199
199
  "span",
200
200
  {
201
201
  onClick: (s) => {
202
- s.stopPropagation(), !l && J(e);
202
+ s.stopPropagation(), !a && J(e);
203
203
  },
204
204
  className: d(
205
205
  "cursor-pointer hover:text-neutral-default-hover",
206
- l && "cursor-default hover:text-neutral-default-disabled"
206
+ a && "cursor-default hover:text-neutral-default-disabled"
207
207
  ),
208
208
  children: e
209
209
  }
@@ -212,11 +212,11 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
212
212
  "div",
213
213
  {
214
214
  onClick: (s) => {
215
- s.stopPropagation(), !l && H(e);
215
+ s.stopPropagation(), !a && H(e);
216
216
  },
217
217
  className: d(
218
218
  "cursor-pointer hover:scale-105 transition-all duration-200 ",
219
- l && " cursor-default hover:scale-100 "
219
+ a && " cursor-default hover:scale-100 "
220
220
  ),
221
221
  children: /* @__PURE__ */ r.jsx(
222
222
  Z,
@@ -224,7 +224,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
224
224
  size: 16,
225
225
  className: d(
226
226
  "text-neutral-default-default hover:text-neutral-default-hover transition-all duration-200",
227
- l && "text-neutral-default-disabled hover:text-neutral-default-disabled"
227
+ a && "text-neutral-default-disabled hover:text-neutral-default-disabled"
228
228
  )
229
229
  }
230
230
  )
@@ -239,19 +239,19 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
239
239
  /* @__PURE__ */ r.jsx("span", { className: "animate-[cursor-intermitent_1s_ease-in-out_infinite] bg-neutral-default-pressed w-[2px] h-5 inline-block align-middle mx-px z-20" }),
240
240
  /* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap wrap-break-word", children: u.slice(z) })
241
241
  ] }),
242
- a.length === 0 && !v && /* @__PURE__ */ r.jsx("span", { className: d(
242
+ l.length === 0 && !v && /* @__PURE__ */ r.jsx("span", { className: d(
243
243
  "text-neutral-medium-default self-center",
244
- l && "text-neutral-default-disabled"
244
+ a && "text-neutral-default-disabled"
245
245
  ), children: K || `Escribe los valores separados por ${w}` })
246
246
  ]
247
247
  }
248
248
  )
249
249
  ] }),
250
- j && y !== "error" && !l && (typeof j == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
250
+ j && I !== "error" && !a && (typeof j == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
251
251
  /* @__PURE__ */ r.jsx(T, { size: 16, className: "text-neutral-medium-default" }),
252
252
  j
253
253
  ] }) : /* @__PURE__ */ r.jsx("div", { className: "ml-3", children: j })),
254
- N && typeof N == "string" && !l ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
254
+ N && typeof N == "string" && !a ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
255
255
  /* @__PURE__ */ r.jsx(ee, { size: 16, className: "text-error-default-default" }),
256
256
  N
257
257
  ] }) : N
package/dist/Logo.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { T as t } from "./Icons-DtFC5DJ7.js";
2
+ import { TicketFilled as t } from "./Icons.es.js";
3
3
  const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-linear-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
5
5
  /* @__PURE__ */ e.jsx("span", { className: "font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo", children: "TICKETS" })
@@ -1,5 +1,5 @@
1
1
  import { j as p } from "./jsx-runtime-DKDX3adD.js";
2
- import { C as Re, E as De } from "./Icons-DtFC5DJ7.js";
2
+ import { Check as Re, Error as De } from "./Icons.es.js";
3
3
  import { c as $ } from "./cn-B6yFEsav.js";
4
4
  import * as n from "react";
5
5
  import ge, { memo as Oe } from "react";
@@ -28,8 +28,8 @@ function Ge({ containerRef: t, inputRef: a, pushPasswordManagerStrategy: r, isFo
28
28
  let [M, d] = n.useState(!1), [D, k] = n.useState(!1), [O, B] = n.useState(!1), _ = n.useMemo(() => r === "none" ? !1 : (r === "increase-width" || r === "experimental-no-flickering") && M && D, [M, D, r]), x = n.useCallback(() => {
29
29
  let f = t.current, v = a.current;
30
30
  if (!f || !v || O || r === "none") return;
31
- let m = f, b = m.getBoundingClientRect().left + m.offsetWidth, w = m.getBoundingClientRect().top + m.offsetHeight / 2, o = b - Le, C = w;
32
- document.querySelectorAll(ze).length === 0 && document.elementFromPoint(o, C) === f || (d(!0), B(!0));
31
+ let m = f, b = m.getBoundingClientRect().left + m.offsetWidth, w = m.getBoundingClientRect().top + m.offsetHeight / 2, o = b - Le, P = w;
32
+ document.querySelectorAll(ze).length === 0 && document.elementFromPoint(o, P) === f || (d(!0), B(!0));
33
33
  }, [t, a, O, r]);
34
34
  return n.useEffect(() => {
35
35
  let f = t.current;
@@ -55,10 +55,10 @@ function Ge({ containerRef: t, inputRef: a, pushPasswordManagerStrategy: r, isFo
55
55
  }, [a, u, r, x]), { hasPWMBadge: M, willPushPWMBadge: _, PWM_BADGE_SPACE_WIDTH: $e };
56
56
  }
57
57
  var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
58
- var r = t, { value: u, onChange: M, maxLength: d, textAlign: D = "left", pattern: k, placeholder: O, inputMode: B = "numeric", onComplete: _, pushPasswordManagerStrategy: x = "increase-width", pasteTransformer: f, containerClassName: v, noScriptCSSFallback: m = qe, render: b, children: w } = r, o = Ie(r, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), C, N, U, T, V;
59
- let [te, ne] = n.useState(typeof o.defaultValue == "string" ? o.defaultValue : ""), s = u ?? te, E = He(s), q = n.useCallback((e) => {
58
+ var r = t, { value: u, onChange: M, maxLength: d, textAlign: D = "left", pattern: k, placeholder: O, inputMode: B = "numeric", onComplete: _, pushPasswordManagerStrategy: x = "increase-width", pasteTransformer: f, containerClassName: v, noScriptCSSFallback: m = qe, render: b, children: w } = r, o = Ie(r, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), P, N, U, T, V;
59
+ let [te, ne] = n.useState(typeof o.defaultValue == "string" ? o.defaultValue : ""), i = u ?? te, E = He(i), q = n.useCallback((e) => {
60
60
  M?.(e), ne(e);
61
- }, [M]), P = n.useMemo(() => k ? typeof k == "string" ? new RegExp(k) : k : null, [k]), c = n.useRef(null), le = n.useRef(null), ae = n.useRef({ value: s, onChange: q, isIOS: typeof window < "u" && ((N = (C = window?.CSS) == null ? void 0 : C.supports) == null ? void 0 : N.call(C, "-webkit-touch-callout", "none")) }), X = n.useRef({ prev: [(U = c.current) == null ? void 0 : U.selectionStart, (T = c.current) == null ? void 0 : T.selectionEnd, (V = c.current) == null ? void 0 : V.selectionDirection] });
61
+ }, [M]), C = n.useMemo(() => k ? typeof k == "string" ? new RegExp(k) : k : null, [k]), c = n.useRef(null), le = n.useRef(null), ae = n.useRef({ value: i, onChange: q, isIOS: typeof window < "u" && ((N = (P = window?.CSS) == null ? void 0 : P.supports) == null ? void 0 : N.call(P, "-webkit-touch-callout", "none")) }), X = n.useRef({ prev: [(U = c.current) == null ? void 0 : U.selectionStart, (T = c.current) == null ? void 0 : T.selectionEnd, (V = c.current) == null ? void 0 : V.selectionDirection] });
62
62
  n.useImperativeHandle(a, () => c.current, []), n.useEffect(() => {
63
63
  let e = c.current, l = le.current;
64
64
  if (!e || !l) return;
@@ -68,33 +68,33 @@ var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
68
68
  J(null), K(null);
69
69
  return;
70
70
  }
71
- let i = e.selectionStart, g = e.selectionEnd, Y = e.selectionDirection, j = e.maxLength, F = e.value, R = X.current.prev, W = -1, A = -1, H;
72
- if (F.length !== 0 && i !== null && g !== null) {
73
- let Me = i === g, ke = i === F.length && F.length < j;
71
+ let s = e.selectionStart, g = e.selectionEnd, Y = e.selectionDirection, j = e.maxLength, F = e.value, R = X.current.prev, W = -1, A = -1, H;
72
+ if (F.length !== 0 && s !== null && g !== null) {
73
+ let Me = s === g, ke = s === F.length && F.length < j;
74
74
  if (Me && !ke) {
75
- let L = i;
75
+ let L = s;
76
76
  if (L === 0) W = 0, A = 1, H = "forward";
77
77
  else if (L === j) W = L - 1, A = L, H = "backward";
78
78
  else if (j > 1 && F.length > 1) {
79
- let se = 0;
79
+ let ie = 0;
80
80
  if (R[0] !== null && R[1] !== null) {
81
81
  H = L < R[1] ? "backward" : "forward";
82
82
  let Ne = R[0] === R[1] && R[0] < j;
83
- H === "backward" && !Ne && (se = -1);
83
+ H === "backward" && !Ne && (ie = -1);
84
84
  }
85
- W = se + L, A = se + L + 1;
85
+ W = ie + L, A = ie + L + 1;
86
86
  }
87
87
  }
88
88
  W !== -1 && A !== -1 && W !== A && c.current.setSelectionRange(W, A, H);
89
89
  }
90
- let he = W !== -1 ? W : i, ve = A !== -1 ? A : g, Pe = H ?? Y;
91
- J(he), K(ve), X.current.prev = [he, ve, Pe];
90
+ let he = W !== -1 ? W : s, ve = A !== -1 ? A : g, Ce = H ?? Y;
91
+ J(he), K(ve), X.current.prev = [he, ve, Ce];
92
92
  }
93
93
  if (document.addEventListener("selectionchange", h, { capture: !0 }), h(), document.activeElement === e && re(!0), !document.getElementById("input-otp-style")) {
94
- let i = document.createElement("style");
95
- if (i.id = "input-otp-style", document.head.appendChild(i), i.sheet) {
94
+ let s = document.createElement("style");
95
+ if (s.id = "input-otp-style", document.head.appendChild(s), s.sheet) {
96
96
  let g = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
97
- Q(i.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), Q(i.sheet, `[data-input-otp]:autofill { ${g} }`), Q(i.sheet, `[data-input-otp]:-webkit-autofill { ${g} }`), Q(i.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), Q(i.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
97
+ Q(s.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), Q(s.sheet, `[data-input-otp]:autofill { ${g} }`), Q(s.sheet, `[data-input-otp]:-webkit-autofill { ${g} }`), Q(s.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), Q(s.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
98
98
  }
99
99
  }
100
100
  let y = () => {
@@ -111,20 +111,20 @@ var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
111
111
  Fe(() => {
112
112
  var e, l, h, y;
113
113
  (e = c.current) == null || e.dispatchEvent(new Event("input"));
114
- let S = (l = c.current) == null ? void 0 : l.selectionStart, i = (h = c.current) == null ? void 0 : h.selectionEnd, g = (y = c.current) == null ? void 0 : y.selectionDirection;
115
- S !== null && i !== null && (J(S), K(i), X.current.prev = [S, i, g]);
114
+ let S = (l = c.current) == null ? void 0 : l.selectionStart, s = (h = c.current) == null ? void 0 : h.selectionEnd, g = (y = c.current) == null ? void 0 : y.selectionDirection;
115
+ S !== null && s !== null && (J(S), K(s), X.current.prev = [S, s, g]);
116
116
  });
117
- }, [s, Z]), n.useEffect(() => {
118
- E !== void 0 && s !== E && E.length < d && s.length === d && _?.(s);
119
- }, [d, _, E, s]);
117
+ }, [i, Z]), n.useEffect(() => {
118
+ E !== void 0 && i !== E && E.length < d && i.length === d && _?.(i);
119
+ }, [d, _, E, i]);
120
120
  let G = Ge({ containerRef: le, inputRef: c, pushPasswordManagerStrategy: x, isFocused: Z }), de = n.useCallback((e) => {
121
121
  let l = e.currentTarget.value.slice(0, d);
122
- if (l.length > 0 && P && !P.test(l)) {
122
+ if (l.length > 0 && C && !C.test(l)) {
123
123
  e.preventDefault();
124
124
  return;
125
125
  }
126
126
  typeof E == "string" && l.length < E.length && document.dispatchEvent(new Event("selectionchange")), q(l);
127
- }, [d, q, E, P]), fe = n.useCallback(() => {
127
+ }, [d, q, E, C]), fe = n.useCallback(() => {
128
128
  var e;
129
129
  if (c.current) {
130
130
  let l = Math.min(c.current.value.length, d - 1), h = c.current.value.length;
@@ -135,14 +135,14 @@ var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
135
135
  var l, h;
136
136
  let y = c.current;
137
137
  if (!f && (!ae.current.isIOS || !e.clipboardData || !y)) return;
138
- let S = e.clipboardData.getData("text/plain"), i = f ? f(S) : S;
138
+ let S = e.clipboardData.getData("text/plain"), s = f ? f(S) : S;
139
139
  e.preventDefault();
140
- let g = (l = c.current) == null ? void 0 : l.selectionStart, Y = (h = c.current) == null ? void 0 : h.selectionEnd, j = (g !== Y ? s.slice(0, g) + i + s.slice(Y) : s.slice(0, g) + i + s.slice(g)).slice(0, d);
141
- if (j.length > 0 && P && !P.test(j)) return;
140
+ let g = (l = c.current) == null ? void 0 : l.selectionStart, Y = (h = c.current) == null ? void 0 : h.selectionEnd, j = (g !== Y ? i.slice(0, g) + s + i.slice(Y) : i.slice(0, g) + s + i.slice(g)).slice(0, d);
141
+ if (j.length > 0 && C && !C.test(j)) return;
142
142
  y.value = j, q(j);
143
143
  let F = Math.min(j.length, d - 1), R = j.length;
144
144
  y.setSelectionRange(F, R), J(F), K(R);
145
- }, [d, q, P, s]), Ee = n.useMemo(() => ({ position: "relative", cursor: o.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [o.disabled]), me = n.useMemo(() => ({ position: "absolute", inset: 0, width: G.willPushPWMBadge ? `calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: G.willPushPWMBadge ? `inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: D, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [G.PWM_BADGE_SPACE_WIDTH, G.willPushPWMBadge, D]), je = n.useMemo(() => n.createElement("input", _e(Be({ autoComplete: o.autoComplete || "one-time-code" }, o), { "data-input-otp": !0, "data-input-otp-placeholder-shown": s.length === 0 || void 0, "data-input-otp-mss": I, "data-input-otp-mse": z, inputMode: B, pattern: P?.source, "aria-placeholder": O, style: me, maxLength: d, value: s, ref: c, onPaste: (e) => {
145
+ }, [d, q, C, i]), Ee = n.useMemo(() => ({ position: "relative", cursor: o.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [o.disabled]), me = n.useMemo(() => ({ position: "absolute", inset: 0, width: G.willPushPWMBadge ? `calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: G.willPushPWMBadge ? `inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: D, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [G.PWM_BADGE_SPACE_WIDTH, G.willPushPWMBadge, D]), je = n.useMemo(() => n.createElement("input", _e(Be({ autoComplete: o.autoComplete || "one-time-code" }, o), { "data-input-otp": !0, "data-input-otp-placeholder-shown": i.length === 0 || void 0, "data-input-otp-mss": I, "data-input-otp-mse": z, inputMode: B, pattern: C?.source, "aria-placeholder": O, style: me, maxLength: d, value: i, ref: c, onPaste: (e) => {
146
146
  var l;
147
147
  pe(e), (l = o.onPaste) == null || l.call(o, e);
148
148
  }, onChange: de, onMouseOver: (e) => {
@@ -157,12 +157,12 @@ var Ve = n.createContext({}), Se = n.forwardRef((t, a) => {
157
157
  }, onBlur: (e) => {
158
158
  var l;
159
159
  re(!1), (l = o.onBlur) == null || l.call(o, e);
160
- } })), [de, fe, pe, B, me, d, z, I, o, P?.source, s]), oe = n.useMemo(() => ({ slots: Array.from({ length: d }).map((e, l) => {
160
+ } })), [de, fe, pe, B, me, d, z, I, o, C?.source, i]), oe = n.useMemo(() => ({ slots: Array.from({ length: d }).map((e, l) => {
161
161
  var h;
162
- let y = Z && I !== null && z !== null && (I === z && l === I || l >= I && l < z), S = s[l] !== void 0 ? s[l] : null, i = s[0] !== void 0 ? null : (h = O?.[l]) != null ? h : null;
163
- return { char: S, placeholderChar: i, isActive: y, hasFakeCaret: y && S === null };
164
- }), isFocused: Z, isHovering: !o.disabled && ue }), [Z, ue, d, z, I, o.disabled, s]), Ce = n.useMemo(() => b ? b(oe) : n.createElement(Ve.Provider, { value: oe }, w), [w, oe, b]);
165
- return n.createElement(n.Fragment, null, m !== null && n.createElement("noscript", null, n.createElement("style", null, m)), n.createElement("div", { ref: le, "data-input-otp-container": !0, style: Ee, className: v }, Ce, n.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, je)));
162
+ let y = Z && I !== null && z !== null && (I === z && l === I || l >= I && l < z), S = i[l] !== void 0 ? i[l] : null, s = i[0] !== void 0 ? null : (h = O?.[l]) != null ? h : null;
163
+ return { char: S, placeholderChar: s, isActive: y, hasFakeCaret: y && S === null };
164
+ }), isFocused: Z, isHovering: !o.disabled && ue }), [Z, ue, d, z, I, o.disabled, i]), Pe = n.useMemo(() => b ? b(oe) : n.createElement(Ve.Provider, { value: oe }, w), [w, oe, b]);
165
+ return n.createElement(n.Fragment, null, m !== null && n.createElement("noscript", null, n.createElement("style", null, m)), n.createElement("div", { ref: le, "data-input-otp-container": !0, style: Ee, className: v }, Pe, n.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, je)));
166
166
  });
167
167
  Se.displayName = "Input";
168
168
  function Q(t, a) {
@@ -212,7 +212,7 @@ const Ze = ({
212
212
  variant: w = "default",
213
213
  hideSlotsMiddleSeparator: o = !1
214
214
  }) => {
215
- const C = m === "left" ? "justify-start w-full text-left" : m === "center" ? "justify-center" : "justify-end text-right w-full", N = {
215
+ const P = m === "left" ? "justify-start w-full text-left" : m === "center" ? "justify-center" : "justify-end text-right w-full", N = {
216
216
  default: {
217
217
  text: "text-neutral-default-default",
218
218
  icon: null
@@ -246,23 +246,23 @@ const Ze = ({
246
246
  const V = Math.floor(T.length / 2), te = T.slice(0, V), ne = T.slice(V);
247
247
  return /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col items-center", children: [
248
248
  /* @__PURE__ */ p.jsxs("div", { className: "flex items-center", children: [
249
- /* @__PURE__ */ p.jsx("div", { className: "flex", children: te.map((s, E) => /* @__PURE__ */ p.jsx(ie, { ...s, placeholder: D, hasError: f, className: b, variant: w }, E)) }),
249
+ /* @__PURE__ */ p.jsx("div", { className: "flex", children: te.map((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, className: b, variant: w }, E)) }),
250
250
  /* @__PURE__ */ p.jsx("hr", { className: $("w-2 h-1 mx-2 border-neutral-default-default", o && "hidden") }),
251
- /* @__PURE__ */ p.jsx("div", { className: "flex", children: ne.map((s, E) => /* @__PURE__ */ p.jsx(ie, { ...s, placeholder: D, hasError: f, variant: w, className: b }, E)) })
251
+ /* @__PURE__ */ p.jsx("div", { className: "flex", children: ne.map((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, variant: w, className: b }, E)) })
252
252
  ] }),
253
- f && x && (typeof x == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-error-default-default text-xs mt-1 flex items-center gap-1", C, N.error.text), children: [
253
+ f && x && (typeof x == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-error-default-default text-xs mt-1 flex items-center gap-1", P, N.error.text), children: [
254
254
  N.error.icon,
255
255
  x
256
256
  ] }) : ge.cloneElement(x, { className: $(
257
257
  "text-error-default-default text-xs mt-1",
258
- C,
258
+ P,
259
259
  N.error.text,
260
260
  x?.props?.className
261
261
  ) })),
262
- v && m && (typeof v == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-neutral-medium-default text-xs mt-1 flex items-center gap-1", N[w].text, C), children: [
262
+ v && m && (typeof v == "string" ? /* @__PURE__ */ p.jsxs("span", { className: $("text-neutral-medium-default text-xs mt-1 flex items-center gap-1", N[w].text, P), children: [
263
263
  N[w].icon,
264
264
  v
265
- ] }) : ge.cloneElement(v, { className: $("text-neutral-medium-default text-xs mt-1", C, N[w].text, v?.props?.className) }))
265
+ ] }) : ge.cloneElement(v, { className: $("text-neutral-medium-default text-xs mt-1", P, N[w].text, v?.props?.className) }))
266
266
  ] });
267
267
  }
268
268
  }
@@ -294,8 +294,8 @@ const Je = (t) => {
294
294
  ]
295
295
  }
296
296
  );
297
- }, ie = Oe(Je);
298
- ie.displayName = "Slot";
297
+ }, se = Oe(Je);
298
+ se.displayName = "Slot";
299
299
  export {
300
300
  Ze as default
301
301
  };
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as t } from "./cn-B6yFEsav.js";
3
3
  import { memo as x, forwardRef as k, useRef as g, useEffect as y } from "react";
4
- import { H as j } from "./HelperComponent-g_xuKWzK.js";
4
+ import { H as j } from "./HelperComponent-BeNlTMqI.js";
5
5
  const s = k((n, a) => {
6
6
  const r = g(null);
7
7
  y(() => {
@@ -0,0 +1,2 @@
1
+ export * from './exports/RecurrentDatePicker'
2
+ export {}