prometeo-design-system 2.9.2 → 2.9.5

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 (40) hide show
  1. package/dist/{CardProfile-WHoeSibd.js → CardProfile-CsytJlKZ.js} +8 -8
  2. package/dist/CardProfile.es.js +1 -1
  3. package/dist/CheckBox.es.js +4 -4
  4. package/dist/DatePicker.es.js +62 -62
  5. package/dist/DropZone.es.js +5 -5
  6. package/dist/FAButton.es.js +1 -1
  7. package/dist/{HelperComponent-BeNlTMqI.js → HelperComponent-g_xuKWzK.js} +7 -7
  8. package/dist/Icons/Icons.d.ts +1 -1
  9. package/dist/Icons-DtFC5DJ7.js +1079 -0
  10. package/dist/Icons.d.ts +4 -0
  11. package/dist/Icons.es.js +3 -1119
  12. package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-Ckxg9OIC.js} +34 -34
  13. package/dist/ImageGallery.es.js +1 -1
  14. package/dist/{Input-Bdiozi8s.js → Input-Cck37DpG.js} +11 -11
  15. package/dist/Input.es.js +1 -1
  16. package/dist/InputMultiple.es.js +34 -34
  17. package/dist/Logo.es.js +1 -1
  18. package/dist/OtpInput.es.js +43 -43
  19. package/dist/RadioButton.es.js +1 -1
  20. package/dist/{Select-L7JCe1-i.js → Select-BD5FTxVw.js} +3 -3
  21. package/dist/Select.es.js +1 -1
  22. package/dist/SelectSearch.es.js +1 -1
  23. package/dist/Steps.es.js +1 -1
  24. package/dist/Toast.es.js +22 -22
  25. package/dist/Tooltip.es.js +1 -1
  26. package/dist/exports/Icons.d.ts +2 -1
  27. package/dist/index.d.ts +4 -1
  28. package/dist/prometeo-design-system.css +1 -0
  29. package/dist/prometeo-design-system.es.js +762 -402
  30. package/dist/styles.d.ts +0 -1
  31. package/package.json +4 -17
  32. package/src/styles/app.css +1313 -1
  33. package/dist/DrawerDesktop.d.ts +0 -6
  34. package/dist/DrawerDesktop.es.js +0 -192
  35. package/dist/DrawerMobile.d.ts +0 -6
  36. package/dist/DrawerMobile.es.js +0 -242
  37. package/dist/exports/DrawerDesktop.d.ts +0 -4
  38. package/dist/exports/DrawerMobile.d.ts +0 -4
  39. package/dist/styles.css +0 -1
  40. package/src/styles/base.css +0 -1331
@@ -1,5 +1,5 @@
1
1
  import { j as p } from "./jsx-runtime-DKDX3adD.js";
2
- import { Check as Re, Error as De } from "./Icons.es.js";
2
+ import { C as Re, E as De } from "./Icons-DtFC5DJ7.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, P = w;
32
- document.querySelectorAll(ze).length === 0 && document.elementFromPoint(o, P) === 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, C = w;
32
+ document.querySelectorAll(ze).length === 0 && document.elementFromPoint(o, C) === 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"]), 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) => {
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) => {
60
60
  M?.(e), ne(e);
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] });
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] });
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 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;
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;
74
74
  if (Me && !ke) {
75
- let L = s;
75
+ let L = i;
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 ie = 0;
79
+ let se = 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 && (ie = -1);
83
+ H === "backward" && !Ne && (se = -1);
84
84
  }
85
- W = ie + L, A = ie + L + 1;
85
+ W = se + L, A = se + 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 : s, ve = A !== -1 ? A : g, Ce = H ?? Y;
91
- J(he), K(ve), X.current.prev = [he, ve, Ce];
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];
92
92
  }
93
93
  if (document.addEventListener("selectionchange", h, { capture: !0 }), h(), document.activeElement === e && re(!0), !document.getElementById("input-otp-style")) {
94
- let s = document.createElement("style");
95
- if (s.id = "input-otp-style", document.head.appendChild(s), s.sheet) {
94
+ let i = document.createElement("style");
95
+ if (i.id = "input-otp-style", document.head.appendChild(i), i.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(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; }");
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; }");
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, 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]);
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]);
116
116
  });
117
- }, [i, Z]), n.useEffect(() => {
118
- E !== void 0 && i !== E && E.length < d && i.length === d && _?.(i);
119
- }, [d, _, E, i]);
117
+ }, [s, Z]), n.useEffect(() => {
118
+ E !== void 0 && s !== E && E.length < d && s.length === d && _?.(s);
119
+ }, [d, _, E, s]);
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 && C && !C.test(l)) {
122
+ if (l.length > 0 && P && !P.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, C]), fe = n.useCallback(() => {
127
+ }, [d, q, E, P]), 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"), s = f ? f(S) : S;
138
+ let S = e.clipboardData.getData("text/plain"), i = 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 ? 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;
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;
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, 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) => {
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) => {
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, C?.source, i]), oe = n.useMemo(() => ({ slots: Array.from({ length: d }).map((e, l) => {
160
+ } })), [de, fe, pe, B, me, d, z, I, o, P?.source, s]), 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 = 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)));
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)));
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 P = m === "left" ? "justify-start w-full text-left" : m === "center" ? "justify-center" : "justify-end text-right w-full", N = {
215
+ const C = 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((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, className: b, variant: w }, E)) }),
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)) }),
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((i, E) => /* @__PURE__ */ p.jsx(se, { ...i, placeholder: D, hasError: f, variant: w, className: b }, E)) })
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)) })
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", P, 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", C, 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
- P,
258
+ C,
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, P), 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, C), children: [
263
263
  N[w].icon,
264
264
  v
265
- ] }) : ge.cloneElement(v, { className: $("text-neutral-medium-default text-xs mt-1", P, N[w].text, v?.props?.className) }))
265
+ ] }) : ge.cloneElement(v, { className: $("text-neutral-medium-default text-xs mt-1", C, 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
- }, se = Oe(Je);
298
- se.displayName = "Slot";
297
+ }, ie = Oe(Je);
298
+ ie.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-BeNlTMqI.js";
4
+ import { H as j } from "./HelperComponent-g_xuKWzK.js";
5
5
  const s = k((n, a) => {
6
6
  const r = g(null);
7
7
  y(() => {
@@ -1,12 +1,12 @@
1
1
  import { j as s } from "./jsx-runtime-DKDX3adD.js";
2
- import { Close as Qe, Cancel as Xe, ChevronDown as Ue, Search as Ye } from "./Icons.es.js";
2
+ import { a as Qe, i as Xe, f as Ue, S as Ye } from "./Icons-DtFC5DJ7.js";
3
3
  import { c as f } from "./cn-B6yFEsav.js";
4
4
  import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Ze } from "react";
5
5
  import et from "./Spinner.es.js";
6
6
  import { createPortal as tt } from "react-dom";
7
7
  import { u as nt } from "./useDragScroll-CHN9OMwn.js";
8
- import { u as rt, I as lt } from "./Input-Bdiozi8s.js";
9
- import { H as ot } from "./HelperComponent-BeNlTMqI.js";
8
+ import { u as rt, I as lt } from "./Input-Cck37DpG.js";
9
+ import { H as ot } from "./HelperComponent-g_xuKWzK.js";
10
10
  import st from "./CheckBox.es.js";
11
11
  import Ke from "./Skeleton.es.js";
12
12
  const at = {
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as f } from "./Select-L7JCe1-i.js";
1
+ import { S as f } from "./Select-BD5FTxVw.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { j as G } from "./jsx-runtime-DKDX3adD.js";
2
- import { g as i, S as H } from "./Select-L7JCe1-i.js";
2
+ import { g as i, S as H } from "./Select-BD5FTxVw.js";
3
3
  import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
4
4
  function te(e) {
5
5
  const {
package/dist/Steps.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { Check as j } from "./Icons.es.js";
2
+ import { C as j } from "./Icons-DtFC5DJ7.js";
3
3
  import { c as y } from "./cn-B6yFEsav.js";
4
4
  import { motion as r } from "framer-motion";
5
5
  import N from "react";
package/dist/Toast.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import w from "react";
3
3
  import { toast as p } from "sonner";
4
- import { c as s } from "./cn-B6yFEsav.js";
5
- import { Info as m, Error as u, Cancel as f, CheckCircle as b, Close as C } from "./Icons.es.js";
4
+ import { c as r } from "./cn-B6yFEsav.js";
5
+ import { I as m, E as u, i as f, k as b, a as C } from "./Icons-DtFC5DJ7.js";
6
6
  import h from "./Button.es.js";
7
7
  const x = {
8
8
  dark: {
@@ -63,18 +63,18 @@ const x = {
63
63
  shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
64
64
  }
65
65
  }, v = (l) => {
66
- const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: g = !1 } = l;
66
+ const { title: t, description: o, button: s, id: n, icon: c, variant: d = "info", colorMode: a = "dark", showClose: g = !1 } = l;
67
67
  return /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
70
70
  style: {
71
- boxShadow: i[t].shadow
71
+ boxShadow: i[a].shadow
72
72
  },
73
- className: s(
73
+ className: r(
74
74
  "flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
75
75
  "w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
76
- i[t].container,
77
- x[t][d].container
76
+ i[a].container,
77
+ x[a][d].container
78
78
  ),
79
79
  children: [
80
80
  /* @__PURE__ */ e.jsxs(
@@ -82,20 +82,20 @@ const x = {
82
82
  {
83
83
  className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
84
84
  children: [
85
- /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(c || x[t][d].icon, { size: 24, className: x[t][d].iconClass }) }),
85
+ /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(c || x[a][d].icon, { size: 24, className: x[a][d].iconClass }) }),
86
86
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
87
- /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
88
- o && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[t].description), children: o })
87
+ /* @__PURE__ */ e.jsx("p", { className: r("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[a].title), children: t }),
88
+ o && /* @__PURE__ */ e.jsx("p", { className: r("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[a].description), children: o })
89
89
  ] })
90
90
  ]
91
91
  }
92
92
  ),
93
- r?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
93
+ s?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
94
94
  h,
95
95
  {
96
- label: r?.label,
96
+ label: s?.label,
97
97
  onClick: () => {
98
- r?.onClick(), p.dismiss(n);
98
+ s?.onClick(), p.dismiss(n);
99
99
  },
100
100
  size: "small",
101
101
  color: "secondary"
@@ -110,28 +110,28 @@ const x = {
110
110
  label: "",
111
111
  size: "small",
112
112
  color: "secondary",
113
- icon: /* @__PURE__ */ e.jsx(C, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
113
+ icon: /* @__PURE__ */ e.jsx(C, { className: r(a === "light" ? "text-neutral-medium-focused " : "") }),
114
114
  variant: "text",
115
115
  animate: !1,
116
- className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
116
+ className: r(a === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
117
117
  }
118
118
  ) })
119
119
  ]
120
120
  }
121
121
  );
122
122
  };
123
- function M(l, a) {
124
- const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
123
+ function M(l, t) {
124
+ const { duration: o = 2500, showClose: s = !1, colorMode: n = "dark" } = t || {};
125
125
  return p.custom((c) => /* @__PURE__ */ e.jsx(
126
126
  v,
127
127
  {
128
128
  id: c,
129
- variant: a?.variant || "success",
129
+ variant: t?.variant || "success",
130
130
  title: l,
131
- description: a?.description,
132
- icon: a?.icon,
133
- button: a?.button,
134
- showClose: r,
131
+ description: t?.description,
132
+ icon: t?.icon,
133
+ button: t?.button,
134
+ showClose: s,
135
135
  colorMode: n
136
136
  }
137
137
  ), {
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { Close as f } from "./Icons.es.js";
2
+ import { a as f } from "./Icons-DtFC5DJ7.js";
3
3
  import { AnimatePresence as p, motion as n } from "framer-motion";
4
4
  import { useState as x, cloneElement as b } from "react";
5
5
  const N = ({
@@ -1 +1,2 @@
1
- export * from '../Icons/Icons';
1
+ export { Icons as default } from '../Icons/Icons';
2
+ export { Icons } from '../Icons/Icons';
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ export { default as Button } from './components/Button/Button';
3
3
  export { CardProfile } from './components/CardProfile/CardProfile';
4
4
  export { default as CheckBox } from './components/CheckBox/CheckBox';
5
5
  export { default as DialogModal } from './components/Dialog/Dialog';
6
+ export { default as DrawerDesktop } from './components/Drawer/DrawerDesktop';
7
+ export { default as DrawerMobile } from './components/Drawer/DrawerMobile';
6
8
  export { default as Header } from './components/Header/Header';
7
9
  export { default as Input } from './components/Input/Input';
8
10
  export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
@@ -41,6 +43,8 @@ export { CompanyLogo } from './components/Sidebar/components/company-logo';
41
43
  export { NavbarLinks } from './components/Sidebar/components/nav-links';
42
44
  export { default as OtpInput } from './components/OtpInput/OtpInput';
43
45
  export { useDialogControl } from './components/Dialog/useDialogControl';
46
+ export { useDrawerDesktop } from './components/Drawer/useDrawerDesktop';
47
+ export { useDrawerMobile } from './components/Drawer/useDrawerMobile';
44
48
  export { useFileDropzone } from './components/DropZone/useFileDropzone';
45
49
  export { SidebarProvider as SidebarRefProvider, useSidebarContext, } from './components/Sidebar/context/SidebarContext';
46
50
  export { SidebarProvider } from './components/Sidebar/hooks/SidebarProvider';
@@ -94,4 +98,3 @@ export type { BaseSelectSearchProps as SelectSearchProps } from './components/Se
94
98
  export type { FAButtonProps } from './components/FAB/FAButton';
95
99
  export type { RadioButtonProps } from './components/RadioButton/RadioButton';
96
100
  export { Icons } from './Icons/Icons';
97
- export * from './Icons/Icons';
@@ -0,0 +1 @@
1
+ @keyframes galleryFadeIn{0%{opacity:.5}to{opacity:1}}.skeleton-shimmer-animation{position:relative;overflow:hidden;will-change:transform;--shimmer-color-r: 255;--shimmer-color-g: 255;--shimmer-color-b: 255;--shimmer-color-a: .08}.skeleton-shimmer-animation:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(var(--shimmer-color-r),var(--shimmer-color-g),var(--shimmer-color-b),var(--shimmer-color-a)) 50%,transparent 100%);animation:skeleton-shimmer 2s ease-in-out infinite}@keyframes skeleton-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}.skeleton-border-animation{position:relative;--border-angle: 0deg;--border-color-r: 255;--border-color-g: 255;--border-color-b: 255}.skeleton-border-animation:before{content:"";position:absolute;inset:-2px;padding:2px;background:conic-gradient(from var(--border-angle),transparent 0deg,transparent 60deg,rgba(var(--border-color-r),var(--border-color-g),var(--border-color-b),.15) 300deg,rgba(var(--border-color-r),var(--border-color-g),var(--border-color-b),.3) 320deg,rgba(var(--border-color-r),var(--border-color-g),var(--border-color-b),.5) 340deg,rgba(var(--border-color-r),var(--border-color-g),var(--border-color-b),.3) 350deg,rgba(var(--border-color-r),var(--border-color-g),var(--border-color-b),.15) 355deg,transparent 360deg);border-radius:inherit;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:skeleton-border-rotate 2.5s linear infinite}@keyframes skeleton-border-rotate{0%{--border-angle: 0deg}to{--border-angle: 360deg}}:root{--bg-color: var(--neutral-900)}.rdp-caption_label{display:none}.rdp-caption{display:flex;align-items:center;justify-content:space-between;gap:1rem}.rdp-month_caption{display:flex;align-items:center;gap:.5rem;position:relative;padding:4px 12px;height:56px}.rdp-nav{display:flex;position:absolute;top:0;right:0;z-index:20;fill:var(--neutral-100)}.rdp-nav button{width:48px;height:48px;text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer}.rdp-nav button svg{width:18px}.rdp-nav button svg:hover{fill:var(--primary-500)}.rdp-dropdown_root{background-color:var(--bg-color);border-radius:4px;padding:0 4px 0 0;transition:background-color .3s ease}.rdp-dropdown_root:hover{background-color:var(--neutral-800)}.rdp-dropdown_root:hover select{transition:background-color .3s ease;background-color:var(--neutral-800)}.rdp-dropdowns{display:flex;gap:8px;align-items:center;font-size:16px}.rdp-dropdowns select{background-color:var(--bg-color);text-transform:capitalize;padding:10px 4px;border-radius:4px}.rdp-months{position:relative}.today-day-button button{border:1px solid}.selected-day-button button{background-color:var(--primary-500);color:var(--neutral-200);border:none}.selected-day-button button:hover{background-color:var(--primary-600);color:var(--neutral-300)}.selected-day-button button:active{background-color:var(--primary-700);color:var(--neutral-400)}.range-start-day-button button{background-color:var(--primary-500);color:var(--neutral-200);border:none;position:relative}.range-start-day-button button:after{content:"";position:absolute;top:50%;right:0;background-color:var(--primary-500);opacity:30%;z-index:1;height:60%;width:4px;transform:translate(100%) translateY(-50%);border-radius:0}.range-end-day-button button{background-color:var(--primary-500);color:var(--neutral-200);border:none;position:relative}.range-end-day-button button:after{content:"";position:absolute;top:50%;left:0;background-color:var(--primary-500);opacity:30%;z-index:1;height:60%;width:4px;transform:translate(-100%) translateY(-50%);border-radius:0}.range-middle-day-button button{background-color:transparent;color:var(--neutral-200);border:none;position:relative}.range-middle-day-button button:after{content:"";position:absolute;top:50%;left:50%;background-color:var(--primary-500);opacity:30%;z-index:1;height:60%;width:48px;transform:translate(-50%) translateY(-50%);border-radius:0}.rdp-month{justify-self:center}.desktop-drawer-visible{display:block;opacity:1;transform:translate(0);transition:opacity .3s ease-in-out,transform .3s ease-in-out,display .3s ease-in-out allow-discrete,overlay .3s ease-in-out allow-discrete}.desktop-drawer-hidden{display:none;opacity:0;transition:opacity .3s ease-in-out,transform .3s ease-in-out,display .3s ease-in-out allow-discrete,overlay .3s ease-in-out allow-discrete}.desktop-drawer-hidden.left-0{transform:translate(-100%)}.desktop-drawer-hidden.right-0{transform:translate(100%)}@starting-style{.desktop-drawer-visible{opacity:0}.desktop-drawer-visible.left-0{transform:translate(-100%)}.desktop-drawer-visible.right-0{transform:translate(100%)}}.drawer-overlay-visible{display:block;opacity:1;transition:opacity .3s ease-in-out,display .3s ease-in-out allow-discrete,overlay .3s ease-in-out allow-discrete}.drawer-overlay-hidden{display:none;opacity:0;transition:opacity .3s ease-in-out,display .3s ease-in-out allow-discrete,overlay .3s ease-in-out allow-discrete}@starting-style{.drawer-overlay-visible{opacity:0}}.tabswitch-element{position:relative;--border-color: var(--color-neutral-500);--tab-bg: var(--color-neutral-900);z-index:10;background-color:transparent;cursor:pointer;border-top:solid 1px transparent;border-left:solid 1px transparent;border-bottom:solid 1px transparent;transition:background-color .35s cubic-bezier(.4,0,.2,1) 0s,transform .35s cubic-bezier(.4,0,.2,1) 0s,border-color .35s cubic-bezier(.4,0,.2,1) 0s,z-index 0s linear .3s}.tabswitch-element:after{content:"";position:absolute;top:0;right:0;width:8px;height:8px;transform:translateY(-100%);background:radial-gradient(circle at 0% 0%,transparent 7px,var(--border-color) 7px,var(--border-color) 8px,var(--tab-bg) 8px);opacity:1;z-index:20;pointer-events:none}.tabswitch-element:before{content:"";position:absolute;bottom:0;right:0;width:8px;height:8px;transform:translateY(100%);background:radial-gradient(circle at 0% 100%,transparent 7px,var(--border-color) 7px,var(--border-color) 8px,var(--tab-bg) 8px);opacity:1;z-index:20;pointer-events:none}.tabswitch-element:not(.active):after,.tabswitch-element:not(.active):before{opacity:0;transition:opacity .35s cubic-bezier(.4,0,.2,1) 0s}.tabswitch-element.active{background-color:var(--tab-bg);border-color:var(--border-color);z-index:30;transition:background-color .35s cubic-bezier(.4,0,.2,1) 0s,transform .35s cubic-bezier(.4,0,.2,1) 0s,border-color .35s cubic-bezier(.4,0,.2,1) 0s,z-index 0s linear 0s}.tabswitch-element.active:after{opacity:1;top:0;background:radial-gradient(circle at 0% 0%,transparent 7px,var(--border-color) 7px,var(--border-color) 8px,var(--tab-bg) 8px);transition:opacity .35s cubic-bezier(.4,0,.2,1) 0s}.tabswitch-element.active:before{opacity:1;bottom:0;background:radial-gradient(circle at 0% 100%,transparent 7px,var(--border-color) 7px,var(--border-color) 8px,var(--tab-bg) 8px);transition:opacity .35s cubic-bezier(.4,0,.2,1) 0s}.tabswitch-element.active .tab-thumbnail-icon{animation:none}@keyframes scaleIn{0%{transform:scale(.8);opacity:.5}50%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}.tabswitch-element .tab-thumbnail-icon{transition:all .35s cubic-bezier(.4,0,.2,1);color:currentColor}.tabswitch-element:not(.active):hover .tab-thumbnail-icon{transform:scale(1.05)}.tabswitch-element.active .tab-thumbnail-icon{color:inherit}