prometeo-design-system 2.5.4 → 2.5.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 (59) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-DV3gwvqE.js → CardProfile-DA-HDUpi.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 +102 -104
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +1 -1
  14. package/dist/Icons.es.js +1 -1
  15. package/dist/Image.es.js +1 -1
  16. package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
  17. package/dist/ImageGallery.es.js +1 -1
  18. package/dist/{Input-PNwH7rb6.js → Input-DwIAUqcc.js} +2 -2
  19. package/dist/Input.es.js +1 -1
  20. package/dist/InputFormik.es.js +1 -1
  21. package/dist/InputMultiple.es.js +1 -1
  22. package/dist/LayoutGeneric-B6E-yOYJ.js +26 -0
  23. package/dist/LayoutGeneric.es.js +1 -1
  24. package/dist/Logo.es.js +1 -1
  25. package/dist/Menu.es.js +1 -1
  26. package/dist/OtpInput.es.js +1 -1
  27. package/dist/Pagination.es.js +1 -1
  28. package/dist/ProfilePictureUpload.es.js +1 -1
  29. package/dist/ProgressBar.es.js +1 -1
  30. package/dist/SegmentedButton.es.js +1 -1
  31. package/dist/Select-C1MxM6yq.js +813 -0
  32. package/dist/Select.es.js +1 -1
  33. package/dist/SelectFormik.es.js +55 -29
  34. package/dist/SelectFormikLegacy.es.js +1 -1
  35. package/dist/SelectSearch.es.js +167 -132
  36. package/dist/Skeleton.es.js +1 -1
  37. package/dist/Spinner.es.js +1 -1
  38. package/dist/Steps.es.js +1 -1
  39. package/dist/SwipeContainer.es.js +1 -1
  40. package/dist/Switch.es.js +1 -1
  41. package/dist/TabLinks.es.js +1 -1
  42. package/dist/Table.es.js +1 -1
  43. package/dist/TextArea.es.js +1 -1
  44. package/dist/Toast.es.js +2 -2
  45. package/dist/ToastProvider.es.js +1 -1
  46. package/dist/Tooltip.es.js +1 -1
  47. package/dist/components/Autocomplete/useAutocomplete.d.ts +14 -6
  48. package/dist/components/Drawer/DrawerMobile.d.ts +1 -1
  49. package/dist/components/Select/Select.d.ts +19 -7
  50. package/dist/components/SelectFormik/SelectFormik.d.ts +5 -3
  51. package/dist/components/SelectSearch/SelectSearch.d.ts +12 -4
  52. package/dist/components/Sidebar/context/SidebarContext.d.ts +2 -0
  53. package/dist/components/TabSwitch/TabSwitch.d.ts +1 -1
  54. package/dist/index.d.ts +1 -1
  55. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  56. package/dist/prometeo-design-system.es.js +141 -134
  57. package/package.json +1 -1
  58. package/dist/LayoutGeneric-p4Pll4Cm.js +0 -24
  59. package/dist/Select-C-aLaiJu.js +0 -804
package/dist/Avatar.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as f } from "./jsx-runtime-ByW6EXIE.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-DsbEyjth.js";
1
+ import { B as f } from "./Button-Bc0LYLfg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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-DV3gwvqE.js";
1
+ import { C as a } from "./CardProfile-DA-HDUpi.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as h } from "./Icons.es.js";
3
3
  import { memo as x, useId as o, useRef as m } from "react";
4
4
  const n = ({ className: s, disabled: e, ...t }) => {
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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 $ } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as $ } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import m, { createContext as mn, useContext as hn, useCallback as q, 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-PNwH7rb6.js";
4
+ import { I as wn } from "./Input-DwIAUqcc.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-DsbEyjth.js";
8
+ import { B as vt } from "./Button-Bc0LYLfg.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-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as s } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as b } from "./cn-B6yFEsav.js";
3
- import { c as y, B as h } from "./Button-DsbEyjth.js";
3
+ import { c as y, B as h } from "./Button-Bc0LYLfg.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,72 +1,70 @@
1
- import { j as g } from "./jsx-runtime-DKDX3adD.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, s) => {
6
- const { children: y, defaultOpen: o = !1, onClose: a, snapPoints: d = ["60%"], setSnap: w, snap: p, attachToParent: O = !1 } = u, [E, x] = B(p || "0%"), [r, C] = B(null), Y = v(a), f = v(w), m = v(r);
7
- Y.current = a, m.current = r, F(() => {
8
- o && b();
9
- }, [o]), F(() => {
10
- f.current = w;
11
- }, [w]);
1
+ import { j as g } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { c as G } from "./cn-B6yFEsav.js";
3
+ import { forwardRef as J, useState as _, useRef as h, useEffect as F, useCallback as c, useMemo as q, useImperativeHandle as K } from "react";
4
+ import { createPortal as Q } from "react-dom";
5
+ const W = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = J((a, o) => {
6
+ const { children: x, defaultOpen: s = !1, onClose: f, snapPoints: d = ["60%"], setSnap: v, snap: w, attachToParent: O = !1 } = a, [E, r] = _(w || "0%"), [C, Y] = _(null), u = h(f), p = h(v), b = h(C);
7
+ u.current = f, b.current = C, F(() => {
8
+ s && H();
9
+ }, [s]), F(() => {
10
+ p.current = v;
11
+ }, [v]);
12
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(s, () => ({
18
- open: b,
13
+ r("0%"), u.current?.(b.current), setTimeout(() => Y(null), 300);
14
+ }, []), H = c((L, R) => {
15
+ console.log(L || d[0] || "60%"), r(L || d[0] || "60%"), Y(R ?? null);
16
+ }, [d]), S = q(() => E !== "0%", [E]);
17
+ K(o, () => ({
18
+ open: H,
19
19
  close: M,
20
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: s = !1, className: y, snap: o, snapPoints: a = ["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), f = v(null), m = v(null), M = c(() => {
21
+ getContext: () => b.current
22
+ }), [H, M, S]);
23
+ const y = w || E;
24
+ return O ? /* @__PURE__ */ g.jsx(B, { ...a, snap: y, setSnap: r, children: x }) : Q(/* @__PURE__ */ g.jsx(B, { ...a, snap: y, setSnap: r, children: x }), document.body);
25
+ }), B = ({ children: a, attachToParent: o = !1, className: x, snap: s, snapPoints: f = ["60%"], setSnap: d, hideOnClose: v = !1, header: w, modal: O = !1, closeOnOverlayClick: E = !1 }) => {
26
+ const r = h(null), C = h(null), Y = h(null), u = h(null), p = h(null), b = c(() => {
27
27
  if (!r.current) return [];
28
- console.log(a, "snapPoints");
29
- const e = s && r.current.parentElement?.offsetHeight || window.innerHeight;
30
- return a?.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) || [];
31
- }, [a, s]), b = c((e, t) => {
32
- const n = M();
28
+ 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]), M = c((e, t) => {
31
+ const n = b();
33
32
  if (n.length === 0) return e;
34
33
  if (Math.abs(t) > 0.05)
35
34
  if (t > 0) {
36
35
  const l = n.filter((i) => i < e);
37
- return l.length > 0 ? Math.max(...l) : w ? 0 : A;
36
+ return l.length > 0 ? Math.max(...l) : v ? 0 : W;
38
37
  } else {
39
38
  const l = n.filter((i) => i > e);
40
39
  if (l.length > 0)
41
40
  return Math.min(...l);
42
41
  }
43
42
  return n.reduce((l, i) => Math.abs(i - e) < Math.abs(l - e) ? i : l);
44
- }, [M]), S = c((e) => {
45
- if (d && a) {
46
- const t = s && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= A ? "0%" : `${Math.round(e / t * 100)}%`;
43
+ }, [b]), H = c((e) => {
44
+ if (d && f) {
45
+ const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= W ? "0%" : `${Math.round(e / t * 100)}%`;
47
46
  d(n);
48
47
  }
49
- }, [d, a, s]), L = c((e) => {
50
- r.current && (r.current.style.transition = V, r.current.style.height = `${e}px`);
51
- }, [d, a, s]), R = c(() => {
52
- if (m.current && s) {
53
- const { scrollY: e } = m.current;
54
- document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), m.current = null;
48
+ }, [d, f, o]), S = c((e) => {
49
+ r.current && (r.current.style.transition = U, r.current.style.height = `${e}px`);
50
+ }, [d, f, o]), y = c(() => {
51
+ if (p.current && o) {
52
+ const { scrollY: e } = p.current;
53
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), p.current = null;
55
54
  }
56
- }, [s]);
55
+ }, [o]);
57
56
  F(() => () => {
58
- R();
59
- }, [R]), F(() => {
60
- if (!r.current || !o) return;
61
- console.log(o, "new snap");
62
- const e = s && r.current.parentElement?.offsetHeight || window.innerHeight;
57
+ y();
58
+ }, [y]), F(() => {
59
+ if (!r.current || !s) return;
60
+ const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
63
61
  let t = 0;
64
- typeof o == "string" && o.endsWith("%") ? parseFloat(o) <= 0 ? t = w ? 0 : A : t = parseFloat(o) / 100 * e : typeof o == "string" && o.endsWith("px") ? t = parseFloat(o) : typeof o == "number" && (o >= 0 && o <= 1 ? t = o * e : t = o), L(t);
65
- }, [o, s]);
66
- const H = c((e) => {
62
+ typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = v ? 0 : W : 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), S(t);
63
+ }, [s, o]);
64
+ const N = c((e) => {
67
65
  if (!r.current) return;
68
66
  const t = e.touches[0], n = r.current.offsetHeight;
69
- f.current = {
67
+ u.current = {
70
68
  isDragging: !1,
71
69
  startY: t.clientY,
72
70
  startHeight: n,
@@ -74,10 +72,10 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, s) =>
74
72
  lastTime: Date.now(),
75
73
  velocity: 0
76
74
  };
77
- }, []), N = c((e) => {
75
+ }, []), L = c((e) => {
78
76
  if (!r.current) return;
79
77
  const t = e, n = r.current.offsetHeight;
80
- f.current = {
78
+ u.current = {
81
79
  isDragging: !1,
82
80
  startY: t.clientY,
83
81
  startHeight: n,
@@ -85,67 +83,67 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, s) =>
85
83
  lastTime: Date.now(),
86
84
  velocity: 0
87
85
  };
88
- }, []), I = c((e) => {
89
- if (!f.current || !r.current) return;
90
- const t = e.touches[0], n = f.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
91
- if (!n.isDragging && l && (n.isDragging = !0, s)) {
86
+ }, []), R = c((e) => {
87
+ if (!u.current || !r.current) return;
88
+ const t = e.touches[0], n = u.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
89
+ if (!n.isDragging && l && (n.isDragging = !0, o)) {
92
90
  const i = window.scrollY;
93
- m.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
91
+ p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
94
92
  }
95
93
  if (l) {
96
94
  e.preventDefault();
97
95
  const i = Date.now(), j = i - n.lastTime;
98
96
  if (j > 0) {
99
- const G = (t.clientY - n.lastY) / j;
100
- n.velocity = n.velocity * 0.8 + G * 0.2;
97
+ const z = (t.clientY - n.lastY) / j;
98
+ n.velocity = n.velocity * 0.8 + z * 0.2;
101
99
  }
102
100
  n.lastY = t.clientY, n.lastTime = i;
103
- const T = n.startHeight + D, $ = s && r.current.parentElement?.offsetHeight || window.innerHeight, z = Math.max(0, Math.min(T, $));
104
- r.current.style.transition = "none", r.current.style.height = `${z}px`;
101
+ const k = n.startHeight + D, T = o && r.current.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(k, T));
102
+ r.current.style.transition = "none", r.current.style.height = `${$}px`;
105
103
  }
106
- }, [s]), _ = c((e) => {
107
- if (!f.current || !r.current) return;
108
- const t = e, n = f.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
109
- if (!n.isDragging && l && (n.isDragging = !0, s)) {
104
+ }, [o]), A = c((e) => {
105
+ if (!u.current || !r.current) return;
106
+ const t = e, n = u.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
107
+ if (!n.isDragging && l && (n.isDragging = !0, o)) {
110
108
  const i = window.scrollY;
111
- m.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
109
+ p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
112
110
  }
113
111
  if (l) {
114
112
  e.preventDefault();
115
113
  const i = Date.now(), j = i - n.lastTime;
116
114
  if (j > 0) {
117
- const G = (t.clientY - n.lastY) / j;
118
- n.velocity = n.velocity * 0.8 + G * 0.2;
115
+ const z = (t.clientY - n.lastY) / j;
116
+ n.velocity = n.velocity * 0.8 + z * 0.2;
119
117
  }
120
118
  n.lastY = t.clientY, n.lastTime = i;
121
- const T = n.startHeight + D, $ = s && r.current.parentElement?.offsetHeight || window.innerHeight, z = Math.max(0, Math.min(T, $));
122
- r.current.style.transition = "none", r.current.style.height = `${z}px`;
119
+ const k = n.startHeight + D, T = o && r.current.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(k, T));
120
+ r.current.style.transition = "none", r.current.style.height = `${$}px`;
123
121
  }
124
- }, [s]), h = c(() => {
125
- if (!f.current || !r.current) return;
126
- const e = f.current;
122
+ }, [o]), m = c(() => {
123
+ if (!u.current || !r.current) return;
124
+ const e = u.current;
127
125
  if (e.isDragging) {
128
- R();
129
- const t = r.current.offsetHeight, n = b(t, e.velocity);
130
- S(n);
126
+ y();
127
+ const t = r.current.offsetHeight, n = M(t, e.velocity);
128
+ H(n);
131
129
  }
132
- f.current = null;
133
- }, [b, L, R]);
130
+ u.current = null;
131
+ }, [M, S, y]);
134
132
  F(() => {
135
133
  const e = Y.current;
136
134
  if (e)
137
- 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), () => {
138
- 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);
135
+ return e.addEventListener("touchstart", N, { passive: !1 }), e.addEventListener("touchmove", R, { passive: !1 }), e.addEventListener("touchend", m), e.addEventListener("touchcancel", m), e.addEventListener("mousedown", L, { passive: !1 }), e.addEventListener("mousemove", A, { passive: !1 }), e.addEventListener("mouseup", m), e.addEventListener("mouseleave", m), () => {
136
+ e.removeEventListener("touchstart", N), e.removeEventListener("touchmove", R), e.removeEventListener("touchend", m), e.removeEventListener("touchcancel", m), e.removeEventListener("mousedown", L), e.removeEventListener("mousemove", A), e.removeEventListener("mouseup", m), e.removeEventListener("mouseleave", m);
139
137
  };
140
- }, [H, I, h]);
141
- const k = J(() => o !== "0%", [o]);
138
+ }, [N, R, m]);
139
+ const I = q(() => s !== "0%", [s]);
142
140
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
143
141
  O && /* @__PURE__ */ g.jsx(
144
142
  "div",
145
143
  {
146
- className: W(k ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
144
+ className: G(I ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
147
145
  onClick: (e) => {
148
- e.preventDefault(), e.stopPropagation(), E && S(0);
146
+ e.preventDefault(), e.stopPropagation(), E && H(0);
149
147
  },
150
148
  "aria-hidden": "true"
151
149
  }
@@ -154,13 +152,13 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, s) =>
154
152
  "div",
155
153
  {
156
154
  ref: r,
157
- className: W(
158
- s ? "absolute" : "fixed",
155
+ className: G(
156
+ o ? "absolute" : "fixed",
159
157
  "z-60 bottom-0 w-full overflow-hidden",
160
158
  "bg-neutral-default-default",
161
159
  "border-t border-neutral-strong-default rounded-t-[12px]",
162
- k ? "" : "border-neutral-weak",
163
- y,
160
+ I ? "" : "border-neutral-weak",
161
+ x,
164
162
  "flex flex-col items-center",
165
163
  "touch-none select-none"
166
164
  ),
@@ -173,41 +171,41 @@ const A = 44, V = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", te = K((u, s) =>
173
171
  children: /* @__PURE__ */ g.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
174
172
  }
175
173
  ),
176
- 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,
174
+ typeof w == "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: w }) : w,
177
175
  /* @__PURE__ */ g.jsx(
178
176
  "div",
179
177
  {
180
178
  ref: C,
181
- className: W(
179
+ className: G(
182
180
  "w-full h-full overflow-y-auto px-4 pb-4 ",
183
- p ? "mt-22" : "mt-11"
181
+ w ? "mt-22" : "mt-11"
184
182
  ),
185
183
  style: {
186
184
  overscrollBehavior: "contain",
187
- overflow: k ? "auto" : "hidden"
185
+ overflow: I ? "auto" : "hidden"
188
186
  },
189
- children: typeof u == "function" ? u(x) : u
187
+ children: a
190
188
  }
191
189
  )
192
190
  ]
193
191
  }
194
192
  )
195
193
  ] });
196
- }, ne = () => {
197
- const u = v(null), s = c((d, w) => {
198
- u.current?.open(d, w);
199
- }, []), y = c(() => {
200
- u.current?.close();
201
- }, []), o = c(() => u.current?.isOpen ?? !1, []), a = c(() => u.current?.getContext() ?? null, []);
194
+ }, te = () => {
195
+ const a = h(null), o = c((d, v) => {
196
+ a.current?.open(d, v);
197
+ }, []), x = c(() => {
198
+ a.current?.close();
199
+ }, []), s = c(() => a.current?.isOpen ?? !1, []), f = c(() => a.current?.getContext() ?? null, []);
202
200
  return {
203
- isOpen: o,
204
- open: s,
205
- close: y,
206
- drawerRef: u,
207
- getContext: a
201
+ isOpen: s,
202
+ open: o,
203
+ close: x,
204
+ drawerRef: a,
205
+ getContext: f
208
206
  };
209
207
  };
210
208
  export {
211
- te as default,
212
- ne as useDrawerMobile
209
+ ee as default,
210
+ te as useDrawerMobile
213
211
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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";
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as l } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as l } from "./jsx-runtime-ByW6EXIE.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";
package/dist/Icons.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as h } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as h } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.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-DsbEyjth.js";
5
+ import { B as S } from "./Button-Bc0LYLfg.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-DnoRTpCr.js";
1
+ import { I as p } from "./ImageGallery-BeADef_g.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,10 +1,10 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as R } from "./Icons.es.js";
3
3
  import { c as t } from "./cn-B6yFEsav.js";
4
4
  import { useRef as $, useLayoutEffect as be, memo as he, forwardRef as we, useState as S, useCallback as ye, useEffect as k } from "react";
5
5
  import { useDebounce as je } from "use-debounce";
6
6
  import Ce from "./Spinner.es.js";
7
- import { B as ze } from "./Button-DsbEyjth.js";
7
+ import { B as ze } from "./Button-Bc0LYLfg.js";
8
8
  const Ie = (s) => {
9
9
  let e = s;
10
10
  for (; e && e !== document.body; ) {
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "./Input-PNwH7rb6.js";
1
+ import { I as f } from "./Input-DwIAUqcc.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as u } from "./cn-B6yFEsav.js";
3
3
  import { FastField as O, ErrorMessage as q } from "formik";
4
4
  import { memo as G, useState as I, useRef as H, useCallback as y, useLayoutEffect as J } from "react";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.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";
@@ -0,0 +1,26 @@
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { useRef as o, createContext as c, useContext as l, memo as d } from "react";
3
+ const a = c(null), x = ({ children: e }) => {
4
+ const r = o(null), s = o(null), u = (t) => {
5
+ t.current && r && (r.current = t.current);
6
+ }, i = (t) => {
7
+ t.current && s && (s.current = t.current);
8
+ };
9
+ return /* @__PURE__ */ n.jsx(a.Provider, { value: { primarySidebarRef: r, registerPrimarySidebar: u, tabBarRef: s, registerTabBar: i }, children: e });
10
+ }, S = () => {
11
+ const e = l(a);
12
+ if (!e)
13
+ throw new Error("useSidebarContext must be used within a SidebarProvider");
14
+ return e;
15
+ }, f = ({
16
+ children: e,
17
+ sidebar: r
18
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "flex h-screen w-full bg-neutral-default-default", children: [
19
+ /* @__PURE__ */ n.jsx(x, { children: r }),
20
+ /* @__PURE__ */ n.jsx("main", { className: "w-full h-full overflow-y-auto", children: e })
21
+ ] }), h = d(f);
22
+ export {
23
+ h as L,
24
+ x as S,
25
+ S as u
26
+ };
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-p4Pll4Cm.js";
1
+ import { L as f } from "./LayoutGeneric-B6E-yOYJ.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-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as p } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.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-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(
@@ -1,4 +1,4 @@
1
- import { j as u } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as u } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import z, { useState as M, useMemo as C, useEffect as L } from "react";
4
4
  import { motion as E } from "framer-motion";