prometeo-design-system 2.6.3 → 2.6.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 (58) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-Bc0LYLfg.js → Button-DsbEyjth.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-DA-HDUpi.js → CardProfile-DV3gwvqE.js} +1 -1
  5. package/dist/CardProfile.es.js +1 -1
  6. package/dist/CheckBox.es.js +1 -1
  7. package/dist/CheckboxFormik.es.js +1 -1
  8. package/dist/DatePicker.es.js +3 -3
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +154 -123
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/FAButton.es.js +1 -1
  14. package/dist/Header.es.js +1 -1
  15. package/dist/{HelperComponent-8ErmQ_n9.js → HelperComponent-U6mPwuDH.js} +1 -1
  16. package/dist/Icons.es.js +1 -1
  17. package/dist/Image.es.js +1 -1
  18. package/dist/{ImageGallery-BeADef_g.js → ImageGallery-DnoRTpCr.js} +2 -2
  19. package/dist/ImageGallery.es.js +1 -1
  20. package/dist/{Input-BsGk4qj1.js → Input-i6OzjjFo.js} +3 -3
  21. package/dist/Input.es.js +1 -1
  22. package/dist/InputFormik.es.js +1 -1
  23. package/dist/InputFormikV2.es.js +2 -2
  24. package/dist/InputMultiple.es.js +1 -1
  25. package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
  26. package/dist/LayoutGeneric.es.js +1 -1
  27. package/dist/Logo.es.js +1 -1
  28. package/dist/Menu.es.js +1 -1
  29. package/dist/OtpInput.es.js +1 -1
  30. package/dist/Pagination.es.js +1 -1
  31. package/dist/ProfilePictureUpload.es.js +1 -1
  32. package/dist/ProgressBar.es.js +1 -1
  33. package/dist/RadioButton.es.js +29 -29
  34. package/dist/RadioButtonFormik.es.js +1 -1
  35. package/dist/SegmentedButton.es.js +1 -1
  36. package/dist/{Select-CSFKGhU7.js → Select-B9faRcN1.js} +102 -102
  37. package/dist/Select.es.js +1 -1
  38. package/dist/SelectFormik.es.js +2 -2
  39. package/dist/SelectFormikLegacy.es.js +1 -1
  40. package/dist/SelectSearch.es.js +2 -2
  41. package/dist/Skeleton.es.js +1 -1
  42. package/dist/Spinner.es.js +1 -1
  43. package/dist/Steps.es.js +1 -1
  44. package/dist/SwipeContainer.es.js +1 -1
  45. package/dist/Switch.es.js +1 -1
  46. package/dist/TabLinks.es.js +1 -1
  47. package/dist/Table.es.js +1 -1
  48. package/dist/TextArea.es.js +1 -1
  49. package/dist/Toast.es.js +2 -2
  50. package/dist/ToastProvider.es.js +1 -1
  51. package/dist/Tooltip.es.js +1 -1
  52. package/dist/components/Drawer/DrawerMobile.d.ts +2 -0
  53. package/dist/components/Drawer/useDrawerMobile.d.ts +1 -1
  54. package/dist/components/RadioButton/RadioButton.d.ts +2 -0
  55. package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
  56. package/dist/prometeo-design-system.css +1 -1
  57. package/dist/prometeo-design-system.es.js +8 -8
  58. package/package.json +1 -1
package/dist/Avatar.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as p } from "./cn-B6yFEsav.js";
3
3
  import { motion as u } from "framer-motion";
4
4
  import { useState as f } from "react";
@@ -1,4 +1,4 @@
1
- import { j as f } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as f } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as g } from "./cn-B6yFEsav.js";
3
3
  import { clsx as B } from "clsx";
4
4
  import { useAnimationControls as E, motion as j } from "framer-motion";
package/dist/Button.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as f } from "./Button-Bc0LYLfg.js";
1
+ import { B as f } from "./Button-DsbEyjth.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import { motion as i, AnimatePresence as u } from "framer-motion";
4
4
  import m from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "./CardProfile-DA-HDUpi.js";
1
+ import { C as a } from "./CardProfile-DV3gwvqE.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as a } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as x } from "./Icons.es.js";
3
3
  import { memo as b, useId as n, useRef as m, useCallback as k } from "react";
4
4
  const s = ({ className: c, disabled: e, ...t }) => {
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as x } from "./Icons.es.js";
3
3
  import { c as r } from "./cn-B6yFEsav.js";
4
4
  import { useField as h, ErrorMessage as p } from "formik";
@@ -1,11 +1,11 @@
1
- import { j as q } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as q } from "./jsx-runtime-DKDX3adD.js";
2
2
  import m, { createContext as mn, useContext as hn, useCallback as R, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
3
3
  import { InputMultiple as gn } from "./InputMultiple.es.js";
4
- import { I as wn } from "./Input-BsGk4qj1.js";
4
+ import { I as wn } from "./Input-i6OzjjFo.js";
5
5
  import { createPortal as bn } from "react-dom";
6
6
  import { Icons as Mt } from "./Icons.es.js";
7
7
  import { c as Be } from "./cn-B6yFEsav.js";
8
- import { B as vt } from "./Button-Bc0LYLfg.js";
8
+ import { B as vt } from "./Button-DsbEyjth.js";
9
9
  function Mn(e, t, n = "long") {
10
10
  return new Intl.DateTimeFormat("en-US", {
11
11
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as o } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
3
3
  import { c as j } from "./cn-B6yFEsav.js";
4
4
  const C = h(
@@ -1,6 +1,6 @@
1
- import { j as s } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as s } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as b } from "./cn-B6yFEsav.js";
3
- import { c as y, B as h } from "./Button-Bc0LYLfg.js";
3
+ import { c as y, B as h } from "./Button-DsbEyjth.js";
4
4
  import { createPortal as g } from "react-dom";
5
5
  import { Icons as C } from "./Icons.es.js";
6
6
  import { forwardRef as k, useState as j, useRef as x, useEffect as v, useCallback as l, useImperativeHandle as D } from "react";
@@ -1,70 +1,80 @@
1
- import { j as g } from "./jsx-runtime-ByW6EXIE.js";
2
- import { c as W } from "./cn-B6yFEsav.js";
3
- import { forwardRef as K, useState as B, useRef as v, useEffect as F, useCallback as c, useMemo as J, useImperativeHandle as Q } from "react";
4
- import { createPortal as U } from "react-dom";
5
- const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, o) => {
6
- const { children: y, defaultOpen: s = !1, onClose: f, snapPoints: d = ["60%"], setSnap: w, snap: p, attachToParent: O = !1 } = u, [E, x] = B(p || "0%"), [r, C] = B(null), Y = v(f), a = v(w), m = v(r);
7
- Y.current = f, m.current = r, F(() => {
8
- s && b();
9
- }, [s]), F(() => {
10
- a.current = w;
11
- }, [w]);
12
- const M = c(() => {
13
- x("0%"), Y.current?.(m.current), setTimeout(() => C(null), 300);
14
- }, []), b = c((H, N) => {
15
- console.log(H || d[0] || "60%"), x(H || d[0] || "60%"), C(N ?? null);
16
- }, [d]), S = J(() => E !== "0%", [E]);
17
- Q(o, () => ({
18
- open: b,
19
- close: M,
20
- isOpen: S,
21
- getContext: () => m.current
22
- }), [b, M, S]);
23
- const L = p || E;
24
- return O ? /* @__PURE__ */ g.jsx(q, { ...u, snap: L, setSnap: x, context: r, children: y }) : U(/* @__PURE__ */ g.jsx(q, { ...u, snap: L, setSnap: x, context: r, children: y }), document.body);
25
- }), q = ({ children: u, attachToParent: o = !1, className: y, snap: s, snapPoints: f = ["60%"], setSnap: d, hideOnClose: w = !1, header: p, modal: O = !1, closeOnOverlayClick: E = !1, context: x }) => {
26
- const r = v(null), C = v(null), Y = v(null), a = v(null), m = v(null), M = c(() => {
1
+ import { j as m } from "./jsx-runtime-DKDX3adD.js";
2
+ import { c as _ } from "./cn-B6yFEsav.js";
3
+ import { forwardRef as V, useState as $, useRef as v, useEffect as y, useCallback as c, useMemo as Q, useImperativeHandle as X } from "react";
4
+ import { createPortal as Z } from "react-dom";
5
+ const B = 44, P = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", se = V((l, o) => {
6
+ const { children: D, defaultOpen: s = !1, onClose: g, snapPoints: w = ["60%"], setSnap: d, snap: u, attachToParent: x = !1 } = l, [R, Y] = $(u || "0%"), [M, r] = $(null), O = v(g), T = v(d), f = v(M), p = v(/* @__PURE__ */ new Set());
7
+ O.current = g, f.current = M, y(() => {
8
+ s && S();
9
+ }, [s]), y(() => {
10
+ T.current = d;
11
+ }, [d]);
12
+ const j = c(() => {
13
+ Y("0%"), O.current?.(f.current), setTimeout(() => r(null), 300);
14
+ }, []), S = c((h, k) => {
15
+ Y(h || w[0] || "60%"), r(k ?? null);
16
+ }, [w]), H = Q(() => R !== "0%", [R]);
17
+ y(() => {
18
+ p.current.forEach((h) => {
19
+ try {
20
+ h(H);
21
+ } catch {
22
+ }
23
+ });
24
+ }, [H]), X(o, () => ({
25
+ open: S,
26
+ close: j,
27
+ isOpen: H,
28
+ subscribeOpenChange: (h) => (p.current.add(h), () => {
29
+ p.current.delete(h);
30
+ }),
31
+ getContext: () => f.current
32
+ }), [S, j, H]);
33
+ const F = u || R;
34
+ return x ? /* @__PURE__ */ m.jsx(K, { ...l, snap: F, setSnap: Y, context: M, children: D }) : Z(/* @__PURE__ */ m.jsx(K, { ...l, snap: F, setSnap: Y, context: M, children: D }), document.body);
35
+ }), K = ({ children: l, attachToParent: o = !1, className: D, snap: s, snapPoints: g = ["60%"], setSnap: w, hideOnClose: d = !1, unmountChildrenOnClose: u = !1, header: x, modal: R = !1, closeOnOverlayClick: Y = !1, context: M }) => {
36
+ const r = v(null), O = v(null), T = v(null), f = v(null), p = v(null), j = c(() => {
27
37
  if (!r.current) return [];
28
38
  const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
29
- return f?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
30
- }, [f, o]), b = c((e, t) => {
31
- const n = M();
39
+ return g?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
40
+ }, [g, o]), S = c((e, t) => {
41
+ const n = j();
32
42
  if (n.length === 0) return e;
33
43
  if (Math.abs(t) > 0.05)
34
44
  if (t > 0) {
35
- const l = n.filter((i) => i < e);
36
- return l.length > 0 ? Math.max(...l) : w ? 0 : A;
45
+ const a = n.filter((i) => i < e);
46
+ return a.length > 0 ? Math.max(...a) : d ? 0 : B;
37
47
  } else {
38
- const l = n.filter((i) => i > e);
39
- if (l.length > 0)
40
- return Math.min(...l);
48
+ const a = n.filter((i) => i > e);
49
+ if (a.length > 0)
50
+ return Math.min(...a);
41
51
  }
42
- return n.reduce((l, i) => Math.abs(i - e) < Math.abs(l - e) ? i : l);
43
- }, [M]), S = c((e) => {
44
- if (d && f) {
45
- const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= A ? "0%" : `${Math.round(e / t * 100)}%`;
46
- d(n);
52
+ return n.reduce((a, i) => Math.abs(i - e) < Math.abs(a - e) ? i : a);
53
+ }, [j]), H = c((e) => {
54
+ if (w && g) {
55
+ const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= B ? "0%" : `${Math.round(e / t * 100)}%`;
56
+ w(n);
47
57
  }
48
- }, [d, f, o]), L = c((e) => {
49
- r.current && (r.current.style.transition = V, r.current.style.height = `${e}px`);
50
- }, [d, f, o]), R = c(() => {
51
- if (m.current && o) {
52
- const { scrollY: e } = m.current;
53
- document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), m.current = null;
58
+ }, [w, g, o]), F = c((e) => {
59
+ r.current && (r.current.style.transition = P, r.current.style.height = `${e}px`);
60
+ }, [w, g, o]), N = c(() => {
61
+ if (p.current && o) {
62
+ const { scrollY: e } = p.current;
63
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), p.current = null;
54
64
  }
55
65
  }, [o]);
56
- F(() => () => {
57
- R();
58
- }, [R]), F(() => {
66
+ y(() => () => {
67
+ N();
68
+ }, [N]), y(() => {
59
69
  if (!r.current || !s) return;
60
70
  const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
61
71
  let t = 0;
62
- typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = w ? 0 : A : t = parseFloat(s) / 100 * e : typeof s == "string" && s.endsWith("px") ? t = parseFloat(s) : typeof s == "number" && (s >= 0 && s <= 1 ? t = s * e : t = s), L(t);
72
+ typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = d ? 0 : B : t = parseFloat(s) / 100 * e : typeof s == "string" && s.endsWith("px") ? t = parseFloat(s) : typeof s == "number" && (s >= 0 && s <= 1 ? t = s * e : t = s), F(t);
63
73
  }, [s, o]);
64
- const H = c((e) => {
74
+ const h = c((e) => {
65
75
  if (!r.current) return;
66
76
  const t = e.touches[0], n = r.current.offsetHeight;
67
- a.current = {
77
+ f.current = {
68
78
  isDragging: !1,
69
79
  startY: t.clientY,
70
80
  startHeight: n,
@@ -72,10 +82,10 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, o) =>
72
82
  lastTime: Date.now(),
73
83
  velocity: 0
74
84
  };
75
- }, []), N = c((e) => {
85
+ }, []), k = c((e) => {
76
86
  if (!r.current) return;
77
87
  const t = e, n = r.current.offsetHeight;
78
- a.current = {
88
+ f.current = {
79
89
  isDragging: !1,
80
90
  startY: t.clientY,
81
91
  startHeight: n,
@@ -83,129 +93,150 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, o) =>
83
93
  lastTime: Date.now(),
84
94
  velocity: 0
85
95
  };
86
- }, []), I = c((e) => {
87
- if (!a.current || !r.current) return;
88
- const t = e.touches[0], n = a.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
89
- if (!n.isDragging && l && (n.isDragging = !0, o)) {
96
+ }, []), z = c((e) => {
97
+ if (!f.current || !r.current) return;
98
+ const t = e.touches[0], n = f.current, L = n.startY - t.clientY, a = n.isDragging || Math.abs(L) > 5;
99
+ if (!n.isDragging && a && (n.isDragging = !0, o)) {
90
100
  const i = window.scrollY;
91
- m.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
101
+ p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
92
102
  }
93
- if (l) {
103
+ if (a) {
94
104
  e.preventDefault();
95
- const i = Date.now(), j = i - n.lastTime;
96
- if (j > 0) {
97
- const G = (t.clientY - n.lastY) / j;
98
- n.velocity = n.velocity * 0.8 + G * 0.2;
105
+ const i = Date.now(), I = i - n.lastTime;
106
+ if (I > 0) {
107
+ const A = (t.clientY - n.lastY) / I;
108
+ n.velocity = n.velocity * 0.8 + A * 0.2;
99
109
  }
100
110
  n.lastY = t.clientY, n.lastTime = i;
101
- const T = n.startHeight + D, $ = o && r.current.parentElement?.offsetHeight || window.innerHeight, z = Math.max(0, Math.min(T, $));
102
- r.current.style.transition = "none", r.current.style.height = `${z}px`;
111
+ const C = n.startHeight + L, G = o && r.current.parentElement?.offsetHeight || window.innerHeight, W = Math.max(0, Math.min(C, G));
112
+ r.current.style.transition = "none", r.current.style.height = `${W}px`;
103
113
  }
104
- }, [o]), _ = c((e) => {
105
- if (!a.current || !r.current) return;
106
- const t = e, n = a.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
107
- if (!n.isDragging && l && (n.isDragging = !0, o)) {
114
+ }, [o]), q = c((e) => {
115
+ if (!f.current || !r.current) return;
116
+ const t = e, n = f.current, L = n.startY - t.clientY, a = n.isDragging || Math.abs(L) > 5;
117
+ if (!n.isDragging && a && (n.isDragging = !0, o)) {
108
118
  const i = window.scrollY;
109
- m.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
119
+ p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
110
120
  }
111
- if (l) {
121
+ if (a) {
112
122
  e.preventDefault();
113
- const i = Date.now(), j = i - n.lastTime;
114
- if (j > 0) {
115
- const G = (t.clientY - n.lastY) / j;
116
- n.velocity = n.velocity * 0.8 + G * 0.2;
123
+ const i = Date.now(), I = i - n.lastTime;
124
+ if (I > 0) {
125
+ const A = (t.clientY - n.lastY) / I;
126
+ n.velocity = n.velocity * 0.8 + A * 0.2;
117
127
  }
118
128
  n.lastY = t.clientY, n.lastTime = i;
119
- const T = n.startHeight + D, $ = o && r.current.parentElement?.offsetHeight || window.innerHeight, z = Math.max(0, Math.min(T, $));
120
- r.current.style.transition = "none", r.current.style.height = `${z}px`;
129
+ const C = n.startHeight + L, G = o && r.current.parentElement?.offsetHeight || window.innerHeight, W = Math.max(0, Math.min(C, G));
130
+ r.current.style.transition = "none", r.current.style.height = `${W}px`;
121
131
  }
122
- }, [o]), h = c(() => {
123
- if (!a.current || !r.current) return;
124
- const e = a.current;
132
+ }, [o]), b = c(() => {
133
+ if (!f.current || !r.current) return;
134
+ const e = f.current;
125
135
  if (e.isDragging) {
126
- R();
127
- const t = r.current.offsetHeight, n = b(t, e.velocity);
128
- S(n);
136
+ N();
137
+ const t = r.current.offsetHeight, n = S(t, e.velocity);
138
+ H(n);
129
139
  }
130
- a.current = null;
131
- }, [b, L, R]);
132
- F(() => {
133
- const e = Y.current;
140
+ f.current = null;
141
+ }, [S, F, N]);
142
+ y(() => {
143
+ const e = T.current;
134
144
  if (e)
135
- return e.addEventListener("touchstart", H, { passive: !1 }), e.addEventListener("touchmove", I, { passive: !1 }), e.addEventListener("touchend", h), e.addEventListener("touchcancel", h), e.addEventListener("mousedown", N, { passive: !1 }), e.addEventListener("mousemove", _, { passive: !1 }), e.addEventListener("mouseup", h), e.addEventListener("mouseleave", h), () => {
136
- e.removeEventListener("touchstart", H), e.removeEventListener("touchmove", I), e.removeEventListener("touchend", h), e.removeEventListener("touchcancel", h), e.removeEventListener("mousedown", N), e.removeEventListener("mousemove", _), e.removeEventListener("mouseup", h), e.removeEventListener("mouseleave", h);
145
+ return e.addEventListener("touchstart", h, { passive: !1 }), e.addEventListener("touchmove", z, { passive: !1 }), e.addEventListener("touchend", b), e.addEventListener("touchcancel", b), e.addEventListener("mousedown", k, { passive: !1 }), e.addEventListener("mousemove", q, { passive: !1 }), e.addEventListener("mouseup", b), e.addEventListener("mouseleave", b), () => {
146
+ e.removeEventListener("touchstart", h), e.removeEventListener("touchmove", z), e.removeEventListener("touchend", b), e.removeEventListener("touchcancel", b), e.removeEventListener("mousedown", k), e.removeEventListener("mousemove", q), e.removeEventListener("mouseup", b), e.removeEventListener("mouseleave", b);
137
147
  };
138
- }, [H, I, h]);
139
- const k = J(() => s !== "0%", [s]);
140
- return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
141
- O && /* @__PURE__ */ g.jsx(
148
+ }, [h, z, b]);
149
+ const E = Q(() => s !== "0%", [s]), [U, J] = $(() => u ? s !== "0%" : !0);
150
+ return y(() => {
151
+ u && E && J(!0);
152
+ }, [E, u]), y(() => {
153
+ if (!u) return;
154
+ const e = r.current;
155
+ if (!e) return;
156
+ const t = (n) => {
157
+ n.propertyName === "height" && !E && s === "0%" && J(!1);
158
+ };
159
+ return e.addEventListener("transitionend", t), () => {
160
+ e.removeEventListener("transitionend", t);
161
+ };
162
+ }, [E, s, u]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
163
+ R && /* @__PURE__ */ m.jsx(
142
164
  "div",
143
165
  {
144
- className: W(k ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
166
+ className: _(E ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
145
167
  onClick: (e) => {
146
- e.preventDefault(), e.stopPropagation(), E && S(0);
168
+ e.preventDefault(), e.stopPropagation(), Y && H(0);
147
169
  },
148
170
  "aria-hidden": "true"
149
171
  }
150
172
  ),
151
- /* @__PURE__ */ g.jsxs(
173
+ /* @__PURE__ */ m.jsxs(
152
174
  "div",
153
175
  {
154
176
  ref: r,
155
- className: W(
177
+ className: _(
156
178
  o ? "absolute" : "fixed",
157
179
  "z-60 bottom-0 w-full overflow-hidden",
158
180
  "bg-neutral-default-default",
159
181
  "border-t border-neutral-strong-default rounded-t-[12px]",
160
- k ? "" : "border-neutral-weak",
161
- y,
182
+ E ? "" : "border-neutral-weak",
183
+ D,
162
184
  "flex flex-col items-center",
163
185
  "touch-none select-none"
164
186
  ),
165
187
  children: [
166
- /* @__PURE__ */ g.jsx(
188
+ /* @__PURE__ */ m.jsx(
167
189
  "div",
168
190
  {
169
- ref: Y,
191
+ ref: T,
170
192
  className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit!",
171
- children: /* @__PURE__ */ g.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
193
+ children: /* @__PURE__ */ m.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
172
194
  }
173
195
  ),
174
- typeof p == "string" ? /* @__PURE__ */ g.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: p }) : p,
175
- /* @__PURE__ */ g.jsx(
196
+ typeof x == "string" ? /* @__PURE__ */ m.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: x }) : x,
197
+ /* @__PURE__ */ m.jsx(
176
198
  "div",
177
199
  {
178
- ref: C,
179
- className: W(
200
+ ref: O,
201
+ className: _(
180
202
  "w-full h-full overflow-y-auto px-4 pb-4 ",
181
- p ? "mt-22" : "mt-11"
203
+ x ? "mt-22" : "mt-11"
182
204
  ),
183
205
  style: {
184
206
  overscrollBehavior: "contain",
185
- overflow: k ? "auto" : "hidden"
207
+ overflow: E ? "auto" : "hidden"
186
208
  },
187
- children: typeof u == "function" ? u(x) : u
209
+ children: (!u || U) && (typeof l == "function" ? l(M) : l)
188
210
  }
189
211
  )
190
212
  ]
191
213
  }
192
214
  )
193
215
  ] });
194
- }, ne = () => {
195
- const u = v(null), o = c((d, w) => {
196
- u.current?.open(d, w);
197
- }, []), y = c(() => {
198
- u.current?.close();
199
- }, []), s = c(() => u.current?.isOpen ?? !1, []), f = c(() => u.current?.getContext() ?? null, []);
200
- return {
201
- isOpen: s,
202
- open: o,
203
- close: y,
204
- drawerRef: u,
205
- getContext: f
216
+ }, oe = () => {
217
+ const l = v(null), [o, D] = $(!1), s = c((d, u) => {
218
+ l.current?.open(d, u);
219
+ }, []), g = c(() => {
220
+ l.current?.close();
221
+ }, []), w = c(() => l.current?.getContext() ?? null, []);
222
+ return y(() => {
223
+ const d = l.current?.subscribeOpenChange;
224
+ if (!d) return;
225
+ const u = d((x) => {
226
+ D(x);
227
+ });
228
+ return () => {
229
+ u && u();
230
+ };
231
+ }, [l.current?.subscribeOpenChange]), {
232
+ isOpen: o,
233
+ open: s,
234
+ close: g,
235
+ drawerRef: l,
236
+ getContext: w
206
237
  };
207
238
  };
208
239
  export {
209
- te as default,
210
- ne as useDrawerMobile
240
+ se as default,
241
+ oe as useDrawerMobile
211
242
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import R, { useCallback as w } from "react";
4
4
  import { useDropzone as z } from "react-dropzone";
@@ -1,4 +1,4 @@
1
- import { j as i } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as i } from "./jsx-runtime-DKDX3adD.js";
2
2
  import s, { memo as c } from "react";
3
3
  import { c as n } from "./cn-B6yFEsav.js";
4
4
  import { Icons as f } from "./Icons.es.js";
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as l } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as l } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import { motion as m } from "framer-motion";
4
4
  import { memo as n } from "react";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { memo as i } from "react";
3
3
  import { c as a } from "./cn-B6yFEsav.js";
4
4
  import { Icons as t } from "./Icons.es.js";
package/dist/Icons.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as h } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as h } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { memo as v } from "react";
3
3
  const l = (t) => v(t), o = l(({
4
4
  size: t = 24,
package/dist/Image.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { memo as x, useState as E, useRef as R, useCallback as N, useEffect as b } from "react";
3
3
  import M from "./Spinner.es.js";
4
4
  import { c as d } from "./cn-B6yFEsav.js";
@@ -1,8 +1,8 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import ee, { memo as D, forwardRef as L, useRef as v, useEffect as te, useCallback as i, useState as R, useImperativeHandle as ne } from "react";
3
3
  import { c as X } from "./cn-B6yFEsav.js";
4
4
  import { u as re } from "./useDragScroll-CHN9OMwn.js";
5
- import { B as S } from "./Button-Bc0LYLfg.js";
5
+ import { B as S } from "./Button-DsbEyjth.js";
6
6
  import { Icons as M } from "./Icons.es.js";
7
7
  const O = D(L(({ images: n, className: c }, r) => {
8
8
  const { ref: d, bind: a } = re({
@@ -1,4 +1,4 @@
1
- import { I as p } from "./ImageGallery-BeADef_g.js";
1
+ import { I as p } from "./ImageGallery-DnoRTpCr.js";
2
2
  import { useRef as u, useCallback as r } from "react";
3
3
  const g = () => {
4
4
  const e = u(null), t = r((a) => {
@@ -1,11 +1,11 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as k } from "./Icons.es.js";
3
3
  import { c as r } from "./cn-B6yFEsav.js";
4
4
  import { useRef as T, useLayoutEffect as me, memo as ge, forwardRef as xe, useState as O, useCallback as be, useEffect as B } from "react";
5
5
  import { useDebounce as he } from "use-debounce";
6
6
  import we from "./Spinner.es.js";
7
- import { H as ye } from "./HelperComponent-8ErmQ_n9.js";
8
- import { B as je } from "./Button-Bc0LYLfg.js";
7
+ import { H as ye } from "./HelperComponent-U6mPwuDH.js";
8
+ import { B as je } from "./Button-DsbEyjth.js";
9
9
  const Ce = (o) => {
10
10
  let t = o;
11
11
  for (; t && t !== document.body; ) {
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "./Input-BsGk4qj1.js";
1
+ import { I as f } from "./Input-i6OzjjFo.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import { FastField as q, ErrorMessage as G } from "formik";
4
4
  import { memo as H, useState as I, useRef as J, useCallback as y, useLayoutEffect as Q } from "react";
@@ -1,7 +1,7 @@
1
- import { j as o } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as o } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { FastField as u } from "formik";
3
3
  import { memo as s } from "react";
4
- import { I as i } from "./Input-BsGk4qj1.js";
4
+ import { I as i } from "./Input-i6OzjjFo.js";
5
5
  const c = ({
6
6
  field: r,
7
7
  form: t,
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as r } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as C } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import S, { useRef as M, useState as x, useCallback as T, useEffect as ee } from "react";
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { useRef as o, createContext as c, useContext as l, memo as d } from "react";
3
3
  const a = c(null), x = ({ children: e }) => {
4
4
  const r = o(null), s = o(null), u = (t) => {
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-B6E-yOYJ.js";
1
+ import { L as f } from "./LayoutGeneric-CbaoatQB.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/Logo.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons 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-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
package/dist/Menu.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { AnimatePresence as n, motion as o } from "framer-motion";
4
4
  const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
@@ -1,4 +1,4 @@
1
- import { j as p } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as p } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as ge } from "./Icons.es.js";
3
3
  import { c as $ } from "./cn-B6yFEsav.js";
4
4
  import * as n from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { motion as a } from "framer-motion";
3
3
  function h({
4
4
  currentPage: i = 1,
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { motion as s } from "framer-motion";
3
3
  import { memo as T, useRef as b, useLayoutEffect as A } from "react";
4
4
  import M from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(