prometeo-design-system 2.0.3 → 2.2.1

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 (50) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/Button-DsbEyjth.js +183 -0
  3. package/dist/Button.es.js +2 -151
  4. package/dist/{CardProfile-BiYr6kY9.js → CardProfile-BhFog7j5.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 +2 -2
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +128 -53
  11. package/dist/DrawerMobile.es.js +204 -37
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +1 -1
  14. package/dist/Icons/Icons.d.ts +1 -0
  15. package/dist/Icons.es.js +29 -12
  16. package/dist/Input.es.js +45 -44
  17. package/dist/InputFormik.es.js +1 -1
  18. package/dist/InputMultiple.es.js +1 -1
  19. package/dist/{LayoutGeneric-jDE96L2N.js → LayoutGeneric-p4Pll4Cm.js} +1 -1
  20. package/dist/LayoutGeneric.es.js +1 -1
  21. package/dist/Logo.es.js +1 -1
  22. package/dist/Menu.es.js +1 -1
  23. package/dist/OtpInput.es.js +1 -1
  24. package/dist/Pagination.es.js +1 -1
  25. package/dist/ProfilePictureUpload.es.js +1 -1
  26. package/dist/ProgressBar.es.js +1 -1
  27. package/dist/Select.es.js +1 -1
  28. package/dist/SelectFormik.es.js +1 -1
  29. package/dist/Skeleton.es.js +1 -1
  30. package/dist/Spinner.es.js +1 -1
  31. package/dist/Steps.es.js +1 -1
  32. package/dist/SwipeContainer.es.js +1 -1
  33. package/dist/Switch.es.js +1 -1
  34. package/dist/TabLinks.es.js +1 -1
  35. package/dist/Table.es.js +1 -1
  36. package/dist/TextArea.es.js +1 -1
  37. package/dist/Tooltip.es.js +1 -1
  38. package/dist/components/Drawer/DrawerDesktop.d.ts +4 -2
  39. package/dist/components/Drawer/DrawerDesktop_old.d.ts +15 -0
  40. package/dist/components/Drawer/DrawerMobile.d.ts +16 -13
  41. package/dist/components/Drawer/DrawerMobile_old.d.ts +18 -0
  42. package/dist/components/Drawer/useDrawerMobile.d.ts +1 -1
  43. package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
  44. package/dist/lib/utils.d.ts +1 -0
  45. package/dist/prometeo-design-system.css +1 -1
  46. package/dist/prometeo-design-system.es.js +17 -17
  47. package/package.json +1 -1
  48. package/dist/components/Drawer/DrawerDesktopV2.d.ts +0 -11
  49. package/dist/index-BOQuZ0gG.js +0 -34
  50. /package/dist/pages/{Drawer.d.ts → DrawersPage.d.ts} +0 -0
@@ -1,44 +1,211 @@
1
- import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
- import { forwardRef as O, useState as g, useRef as x, useCallback as t, useImperativeHandle as D } from "react";
3
- import { Drawer as n } from "vaul";
4
- import { c as R } from "./cn-B6yFEsav.js";
5
- const N = O(({ children: e, setSnap: s, snap: o, snapPoints: c, onClose: i, defaultOpen: m = !1, modal: b = !0, className: h, open: u }, w) => {
6
- const [j, a] = g(m), l = u !== void 0 ? u : j, d = x(i);
7
- d.current = i;
8
- const f = t(() => {
9
- a(!0);
10
- }, []), p = t(() => {
11
- a(!1);
12
- }, []), v = t(() => {
13
- a(!1), d.current?.();
14
- }, []);
15
- return D(w, () => ({
16
- open: f,
17
- close: p,
18
- isOpen: l
19
- }), [f, p, l]), /* @__PURE__ */ r.jsxs(n.Root, { snapPoints: c, activeSnapPoint: o, setActiveSnapPoint: s, onClose: v, open: l, modal: b, snapToSequentialPoint: !0, children: [
20
- /* @__PURE__ */ r.jsx(n.Overlay, { className: " bg-black/40 inset-0 fixed " }),
21
- /* @__PURE__ */ r.jsx(n.Portal, { children: /* @__PURE__ */ r.jsx(n.Content, { className: R(" bg-neutral-default-default z-[200] flex flex-col rounded-t-[12px] mt-24 fixed bottom-0 left-0 right-0 outline-none h-[90%] border-[1px] border-neutral-strong-default text-neutral-default-default", h), children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 rounded-t-[10px] flex-1 overflow-y-auto z-[201]", children: [
22
- /* @__PURE__ */ r.jsx("div", { "aria-hidden": !0, className: "mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-8 z-[201]" }),
23
- e
24
- ] }) }) })
1
+ import { j as f } from "./jsx-runtime-DKDX3adD.js";
2
+ import { c as q } from "./cn-B6yFEsav.js";
3
+ import { forwardRef as U, useState as W, useRef as v, useEffect as M, useCallback as c, useMemo as K, useImperativeHandle as V } from "react";
4
+ import { createPortal as X } from "react-dom";
5
+ const N = 44, ne = U((d, r) => {
6
+ const { children: p, defaultOpen: o = !1, onClose: h, snapPoints: b = ["60%"], setSnap: w, snap: H, attachToParent: T = !1 } = d, [y, a] = W(H || "0%"), k = v(h), L = v(w);
7
+ M(() => {
8
+ o && g();
9
+ }, [o]), M(() => {
10
+ L.current = w;
11
+ }, [w]);
12
+ const u = c(() => {
13
+ a("0%"), k.current?.();
14
+ }, []), g = c((Y) => {
15
+ a(Y || b[0] || "60%");
16
+ }, [b]), i = K(() => y !== "0%", [y]);
17
+ return V(r, () => ({
18
+ open: g,
19
+ close: u,
20
+ isOpen: i
21
+ }), [g, u, i]), T ? /* @__PURE__ */ f.jsx(J, { ...d, snap: y, setSnap: a, children: p }) : X(/* @__PURE__ */ f.jsx(J, { ...d, snap: y, setSnap: a, children: p }), document.body);
22
+ }), J = ({ children: d, attachToParent: r = !1, className: p, snap: o, snapPoints: h = ["60%"], setSnap: b, hideOnClose: w = !1, header: H, modal: T = !1, closeOnOverlayClick: y = !1 }) => {
23
+ const a = v(null), k = v(null), L = v(null), u = v(null), g = v(null), [i, D] = W(w ? 0 : N), [Y, S] = W(!1), R = c(() => {
24
+ if (!a.current) return [];
25
+ const e = r && a.current.parentElement?.offsetHeight || window.innerHeight;
26
+ return h?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
27
+ }, [h, r]), A = c((e, t) => {
28
+ const n = R();
29
+ if (n.length === 0) return e;
30
+ if (Math.abs(t) > 0.5)
31
+ if (t > 0) {
32
+ const l = n.filter((s) => s < e);
33
+ return l.length > 0 ? Math.max(...l) : w ? 0 : N;
34
+ } else {
35
+ const l = n.filter((s) => s > e);
36
+ if (l.length > 0)
37
+ return Math.min(...l);
38
+ }
39
+ return n.reduce((l, s) => Math.abs(s - e) < Math.abs(l - e) ? s : l);
40
+ }, [R]), z = c((e) => {
41
+ if (S(!0), D(e), b && h) {
42
+ const t = r && a.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= N ? "0%" : `${Math.round(e / t * 100)}%`;
43
+ b(n);
44
+ }
45
+ setTimeout(() => {
46
+ S(!1);
47
+ }, 300);
48
+ }, [b, h, r]), j = c(() => {
49
+ if (g.current && r) {
50
+ const { scrollY: e } = g.current;
51
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), g.current = null;
52
+ }
53
+ }, [r]);
54
+ M(() => () => {
55
+ j();
56
+ }, [j]), M(() => {
57
+ if (!a.current || !o) return;
58
+ S(!0);
59
+ const e = r && a.current.parentElement?.offsetHeight || window.innerHeight;
60
+ let t = 0;
61
+ typeof o == "string" && o.endsWith("%") ? parseFloat(o) <= 0 ? t = w ? 0 : N : t = parseFloat(o) / 100 * e : typeof o == "number" && (o >= 0 && o <= 1 ? t = o * e : t = o), D(t), setTimeout(() => {
62
+ S(!1);
63
+ }, 300);
64
+ }, [o, r]);
65
+ const C = c((e) => {
66
+ const t = e.touches[0];
67
+ u.current = {
68
+ isDragging: !1,
69
+ startY: t.clientY,
70
+ startHeight: i,
71
+ lastY: t.clientY,
72
+ lastTime: Date.now(),
73
+ velocity: 0
74
+ };
75
+ }, [i]), B = c((e) => {
76
+ const t = e;
77
+ u.current = {
78
+ isDragging: !1,
79
+ startY: t.clientY,
80
+ startHeight: i,
81
+ lastY: t.clientY,
82
+ lastTime: Date.now(),
83
+ velocity: 0
84
+ };
85
+ }, [i]), F = c((e) => {
86
+ if (!u.current) return;
87
+ const t = e.touches[0], n = u.current, x = n.startY - t.clientY, l = n.isDragging || Math.abs(x) > 5;
88
+ if (!n.isDragging && l && (n.isDragging = !0, r)) {
89
+ const s = window.scrollY;
90
+ g.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
91
+ }
92
+ if (l) {
93
+ e.preventDefault();
94
+ const s = Date.now(), E = s - n.lastTime;
95
+ if (E > 0) {
96
+ const G = (t.clientY - n.lastY) / E;
97
+ n.velocity = n.velocity * 0.8 + G * 0.2;
98
+ }
99
+ n.lastY = t.clientY, n.lastTime = s;
100
+ const I = n.startHeight + x, O = r && a.current?.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(I, O));
101
+ D($);
102
+ }
103
+ }, [r]), _ = c((e) => {
104
+ if (!u.current) return;
105
+ const t = e, n = u.current, x = n.startY - t.clientY, l = n.isDragging || Math.abs(x) > 5;
106
+ if (!n.isDragging && l && (n.isDragging = !0, r)) {
107
+ const s = window.scrollY;
108
+ g.current = { scrollY: s }, document.body.style.position = "fixed", document.body.style.top = `-${s}px`, document.body.style.width = "100%";
109
+ }
110
+ if (l) {
111
+ e.preventDefault();
112
+ const s = Date.now(), E = s - n.lastTime;
113
+ if (E > 0) {
114
+ const G = (t.clientY - n.lastY) / E;
115
+ n.velocity = n.velocity * 0.8 + G * 0.2;
116
+ }
117
+ n.lastY = t.clientY, n.lastTime = s;
118
+ const I = n.startHeight + x, O = r && a.current?.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(I, O));
119
+ D($);
120
+ }
121
+ }, [r]), m = c(() => {
122
+ if (!u.current) return;
123
+ const e = u.current;
124
+ if (e.isDragging) {
125
+ j();
126
+ const t = A(i, e.velocity);
127
+ z(t);
128
+ }
129
+ u.current = null;
130
+ }, [i, A, z, j]);
131
+ M(() => {
132
+ const e = L.current;
133
+ if (e)
134
+ return e.addEventListener("touchstart", C, { passive: !1 }), e.addEventListener("touchmove", F, { passive: !1 }), e.addEventListener("touchend", m), e.addEventListener("touchcancel", m), e.addEventListener("mousedown", B, { passive: !1 }), e.addEventListener("mousemove", _, { passive: !1 }), e.addEventListener("mouseup", m), e.addEventListener("mouseleave", m), () => {
135
+ e.removeEventListener("touchstart", C), e.removeEventListener("touchmove", F), e.removeEventListener("touchend", m), e.removeEventListener("touchcancel", m), e.removeEventListener("mousedown", B), e.removeEventListener("mousemove", _), e.removeEventListener("mouseup", m), e.removeEventListener("mouseleave", m);
136
+ };
137
+ }, [C, F, m]);
138
+ const Q = K(() => o !== "0%", [o]);
139
+ return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
140
+ T && /* @__PURE__ */ f.jsx(
141
+ "div",
142
+ {
143
+ className: q(Q ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
144
+ onClick: (e) => {
145
+ e.preventDefault(), e.stopPropagation(), y && z(0);
146
+ },
147
+ "aria-hidden": "true"
148
+ }
149
+ ),
150
+ /* @__PURE__ */ f.jsxs(
151
+ "div",
152
+ {
153
+ ref: a,
154
+ className: q(
155
+ r ? "absolute" : "fixed",
156
+ "z-60 bottom-0 w-full",
157
+ "bg-neutral-default-default",
158
+ "border-t border-neutral-strong-default rounded-t-[12px]",
159
+ i === 0 ? "border-none" : "",
160
+ p,
161
+ "flex flex-col items-center",
162
+ "touch-none select-none"
163
+ ),
164
+ style: {
165
+ height: i > 0 ? `${i}px` : "0px",
166
+ overflow: i < R()[0] || Y ? "hidden" : "auto",
167
+ transition: Y ? "height 0.3s cubic-bezier(0.32, 0.72, 0, 1)" : "none"
168
+ },
169
+ children: [
170
+ /* @__PURE__ */ f.jsx(
171
+ "div",
172
+ {
173
+ ref: L,
174
+ className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-70 bg-inherit!",
175
+ children: /* @__PURE__ */ f.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
176
+ }
177
+ ),
178
+ typeof H == "string" ? /* @__PURE__ */ f.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-12 bg-inherit absolute top-11 z-70 px-4", children: H }) : H,
179
+ /* @__PURE__ */ f.jsx(
180
+ "div",
181
+ {
182
+ ref: k,
183
+ className: "w-full h-full overflow-y-auto pt-11 px-4 pb-4",
184
+ style: {
185
+ overscrollBehavior: "contain",
186
+ overflow: i < R()[0] || Y ? "hidden" : "auto"
187
+ },
188
+ children: d
189
+ }
190
+ )
191
+ ]
192
+ }
193
+ )
25
194
  ] });
26
- });
27
- N.displayName = "DrawerMobile";
28
- const S = () => {
29
- const e = x(null), s = t(() => {
30
- e.current?.open();
31
- }, []), o = t(() => {
32
- e.current?.close();
195
+ }, re = () => {
196
+ const d = v(null), r = c((h) => {
197
+ d.current?.open(h);
198
+ }, []), p = c(() => {
199
+ d.current?.close();
33
200
  }, []);
34
201
  return {
35
- isOpen: t(() => e.current?.isOpen ?? !1, []),
36
- open: s,
37
- close: o,
38
- drawerRef: e
202
+ isOpen: c(() => d.current?.isOpen ?? !1, []),
203
+ open: r,
204
+ close: p,
205
+ drawerRef: d
39
206
  };
40
207
  };
41
208
  export {
42
- N as default,
43
- S as useDrawerMobile
209
+ ne as default,
210
+ re as useDrawerMobile
44
211
  };
@@ -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";
package/dist/Header.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 x } from "./cn-B6yFEsav.js";
3
3
  import { motion as m } from "framer-motion";
4
4
  import { memo as i } from "react";
@@ -48,4 +48,5 @@ export declare const Icons: {
48
48
  readonly Pause: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
49
49
  readonly FastForward: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
50
50
  readonly Trash: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
51
+ readonly Sort: ({ size, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
51
52
  };
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
  const v = ({
3
3
  size: t = 24,
4
4
  className: q,
@@ -427,19 +427,19 @@ const v = ({
427
427
  size: t = 24,
428
428
  className: q,
429
429
  ...r
430
- }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z" }) }), U = ({
430
+ }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z" }) }), S = ({
431
431
  size: t = 24,
432
432
  className: q,
433
433
  ...r
434
- }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z" }) }), D = ({
434
+ }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z" }) }), U = ({
435
435
  size: t = 24,
436
436
  className: q,
437
437
  ...r
438
- }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z" }) }), F = ({
438
+ }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z" }) }), D = ({
439
439
  size: t = 24,
440
440
  className: q,
441
441
  ...r
442
- }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z" }) }), S = ({
442
+ }) => /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...r, viewBox: "0 -960 960 960", width: t, height: t, fill: "currentColor", className: q, children: /* @__PURE__ */ h.jsx("path", { d: "M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z" }) }), F = ({
443
443
  size: t = 24,
444
444
  className: q,
445
445
  ...r
@@ -534,7 +534,23 @@ const v = ({
534
534
  className: q,
535
535
  children: /* @__PURE__ */ h.jsx("path", { d: "M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z" })
536
536
  }
537
- ), Q = {
537
+ ), K = ({
538
+ size: t = 24,
539
+ className: q,
540
+ ...r
541
+ }) => /* @__PURE__ */ h.jsx(
542
+ "svg",
543
+ {
544
+ xmlns: "http://www.w3.org/2000/svg",
545
+ width: t,
546
+ height: t,
547
+ viewBox: "0 0 8 14",
548
+ fill: "currentColor",
549
+ ...r,
550
+ className: q,
551
+ children: /* @__PURE__ */ h.jsx("path", { d: "M4 13.3333L0 9.33333L0.95 8.38333L4 11.4333L7.05 8.38333L8 9.33333L4 13.3333ZM0.966667 4.93333L0 4L4 0L8 4L7.03333 4.93333L4 1.9L0.966667 4.93333Z" })
552
+ }
553
+ ), W = {
538
554
  Ticket: v,
539
555
  Home: T,
540
556
  Boards: w,
@@ -563,10 +579,10 @@ const v = ({
563
579
  FaLock: y,
564
580
  AccountCircle: E,
565
581
  UserAdd: A,
566
- AttachFile: U,
567
- HistoryActivity: D,
568
- MessageSquare: F,
569
- CloseNavBarDesktop: S,
582
+ AttachFile: S,
583
+ HistoryActivity: U,
584
+ MessageSquare: D,
585
+ CloseNavBarDesktop: F,
570
586
  EyeVisibility: V,
571
587
  EyeVisibilityOff: _,
572
588
  Check: b,
@@ -577,8 +593,9 @@ const v = ({
577
593
  Clock: P,
578
594
  Pause: R,
579
595
  FastForward: G,
580
- Trash: J
596
+ Trash: J,
597
+ Sort: K
581
598
  };
582
599
  export {
583
- Q as Icons
600
+ W as Icons
584
601
  };
package/dist/Input.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { Icons as J } from "./Icons.es.js";
3
3
  import { c as e } from "./cn-B6yFEsav.js";
4
- import { memo as xe, useState as v, useRef as K, useCallback as me, useEffect as L, useLayoutEffect as ge } from "react";
5
- import { useDebounce as he } from "use-debounce";
6
- import be from "./Spinner.es.js";
7
- const C = {
4
+ import { memo as xe, useState as H, useRef as K, useCallback as me, useEffect as L, useLayoutEffect as ge } from "react";
5
+ import { useDebounce as be } from "use-debounce";
6
+ import he from "./Spinner.es.js";
7
+ const j = {
8
8
  default: {
9
9
  container: "",
10
10
  input: e(
@@ -57,20 +57,20 @@ const C = {
57
57
  label: S,
58
58
  icon: a,
59
59
  iconPosition: g = "left",
60
- onChange: E,
60
+ onChange: P,
61
61
  value: u = "",
62
62
  debounceMs: c = 0,
63
- name: k,
64
- width: h = "100%",
63
+ name: E,
64
+ width: b = "100%",
65
65
  height: o,
66
66
  variant: f = "default",
67
67
  labelVariant: l = "default",
68
68
  size: Q = "medium",
69
- disabled: z = !1,
69
+ disabled: k = !1,
70
70
  type: r = "text",
71
71
  isFetching: d,
72
- errorComponent: P,
73
- helperComponent: R,
72
+ errorComponent: R,
73
+ helperComponent: v,
74
74
  placeholder: U,
75
75
  required: D = !1,
76
76
  onFocus: W,
@@ -83,7 +83,7 @@ const C = {
83
83
  style: q,
84
84
  readOnly: A = !1
85
85
  }) => {
86
- const [b, F] = v(u), [I] = he(b, c), [M, O] = v(i || !1), [B, ee] = v(!1), w = K(null), $ = K(null);
86
+ const [h, F] = H(u), [z] = be(h, c), [M, O] = H(i || !1), [I, ee] = H(!1), w = K(null), $ = K(null);
87
87
  let p = Q;
88
88
  o && (p = "customHeight");
89
89
  const x = {
@@ -111,10 +111,10 @@ const C = {
111
111
  label: "text-sm peer-focus:text-sm peer-placeholder-shown:text-xs ",
112
112
  icon: "w-6 h-6 right-3"
113
113
  }
114
- }, T = me(E, [E]);
114
+ }, T = me(P, []);
115
115
  L(() => {
116
- c > 0 && I !== u && T(I);
117
- }, [I, c, T, u]), L(() => {
116
+ c > 0 && z !== u && T(z);
117
+ }, [z, c, T, u]), L(() => {
118
118
  F(u);
119
119
  }, [u]), L(() => {
120
120
  i && $.current?.focus();
@@ -124,21 +124,21 @@ const C = {
124
124
  }, re = (s) => {
125
125
  i === void 0 && (O(!1), X?.(s));
126
126
  }, se = (s) => {
127
- const m = s.target.value, H = s.target.name, n = b;
128
- F(m), n.length > 0 && m.length === 0 && V?.(), (!c || c === 0) && E(m, H);
127
+ const m = s.target.value, N = s.target.name, n = h;
128
+ F(m), n.length > 0 && m.length === 0 && V?.(), (!c || c === 0) && P(m, N);
129
129
  }, oe = () => {
130
- ee(!B);
131
- }, N = {};
132
- h && h !== "100%" && (N.width = h), o && (N.height = o);
133
- const le = b.length > 0, G = f === "error" && P, ne = !G && R, ae = r === "password", ue = () => l === "static" || i || M || le ? "-top-2 left-2 scale-90" : a ? `top-1/2 -translate-y-1/2 ${g === "left" ? "ml-6" : "mr-6"} scale-100 ` : "top-1/2 -translate-y-1/2 scale-100", ce = () => l === "static" ? o ? "text-sm" : "text-xs" : o ? x.customHeight.label : x[p].label, fe = () => o ? { height: o } : {}, de = () => l === "default" ? S : U || S || "", ie = () => ae ? a ? g === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : a ? g === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", pe = l === "default" && "transition-all duration-200 ease-in-out";
130
+ ee(!I);
131
+ }, B = {};
132
+ b && b !== "100%" && (B.width = b), o && (B.height = o);
133
+ const le = h.length > 0, G = f === "error" && R, ne = !G && v, ae = r === "password", ue = () => l === "static" || i || M || le ? "-top-2 left-2 scale-90" : a ? `top-1/2 -translate-y-1/2 ${g === "left" ? "ml-6" : "mr-6"} scale-100 ` : "top-1/2 -translate-y-1/2 scale-100", ce = () => l === "static" ? o ? "text-sm" : "text-xs" : o ? x.customHeight.label : x[p].label, fe = () => o ? { height: o } : {}, de = () => l === "default" ? S : U || S || "", ie = () => ae ? a ? g === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : a ? g === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", pe = l === "default" && "transition-all duration-200 ease-in-out";
134
134
  return ge(() => {
135
135
  if (w.current) {
136
- const m = ((H) => {
137
- let n = H;
136
+ const m = ((N) => {
137
+ let n = N;
138
138
  for (; n && n !== document.body; ) {
139
- const j = window.getComputedStyle(n).backgroundColor;
140
- if (j && j !== "transparent" && j !== "rgba(0, 0, 0, 0)")
141
- return j;
139
+ const C = window.getComputedStyle(n).backgroundColor;
140
+ if (C && C !== "transparent" && C !== "rgba(0, 0, 0, 0)")
141
+ return C;
142
142
  n = n.parentElement;
143
143
  }
144
144
  const y = window.getComputedStyle(document.body).backgroundColor;
@@ -153,39 +153,39 @@ const C = {
153
153
  className: e(
154
154
  "relative",
155
155
  x[p].container,
156
- !h && "w-full",
156
+ !b && "w-full",
157
157
  "bg-inherit",
158
158
  l === "static" && "mt-2",
159
159
  _
160
160
  ),
161
- style: { ...q, ...N },
161
+ style: { ...q, ...B },
162
162
  children: [
163
163
  /* @__PURE__ */ t.jsx(
164
164
  "input",
165
165
  {
166
- id: k,
167
- name: k,
166
+ id: E,
167
+ name: E,
168
168
  ref: $,
169
- value: b,
169
+ value: h,
170
170
  placeholder: de(),
171
- type: r === "password" && B ? "text" : r,
171
+ type: r === "password" && I ? "text" : r,
172
172
  className: e(
173
173
  "peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
174
174
  "focus:outline-none px-3",
175
175
  l === "default" && "placeholder:text-transparent",
176
176
  l === "static" && "placeholder:text-neutral-medium-default placeholder:opacity-50",
177
177
  x[p].input,
178
- C[f].input,
178
+ j[f].input,
179
179
  a && "pr-10",
180
- z && "bg-transparent opacity-60 border-neutral-strong-default text-neutral-medium-disabled",
181
- C[f].container,
180
+ k && "bg-transparent opacity-60 border-neutral-strong-default text-neutral-medium-disabled",
181
+ j[f].container,
182
182
  ie()
183
183
  ),
184
184
  style: fe(),
185
185
  onChange: se,
186
186
  onFocus: te,
187
187
  onBlur: re,
188
- disabled: z,
188
+ disabled: k,
189
189
  required: D,
190
190
  onEmptied: V,
191
191
  onKeyDown: Y,
@@ -197,39 +197,40 @@ const C = {
197
197
  "label",
198
198
  {
199
199
  ref: w,
200
- htmlFor: k,
200
+ htmlFor: E,
201
201
  className: e(
202
202
  "absolute left-3 pointer-events-none px-1 z-10",
203
203
  pe,
204
204
  ce(),
205
- C[f].label,
205
+ j[f].label,
206
206
  ue(),
207
207
  D && "after:content-['*'] after:text-error-default after:ml-1",
208
- z && "text-neutral-medium-disabled prometeo-fonts-label-large"
208
+ k && "text-neutral-medium-disabled prometeo-fonts-label-large"
209
209
  ),
210
210
  children: S
211
211
  }
212
212
  ),
213
213
  (a || r === "password" || d) && /* @__PURE__ */ t.jsx(
214
- "div",
214
+ "button",
215
215
  {
216
+ type: "button",
216
217
  className: e(
217
218
  "absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",
218
219
  x[p].icon,
219
- C[f].icon,
220
+ j[f].icon,
220
221
  r === "password" && !d ? "cursor-pointer" : "pointer-events-none",
221
222
  g === "right" ? "right-3" : "left-3"
222
223
  ),
223
224
  onClick: r === "password" && !d ? oe : void 0,
224
225
  onMouseDown: (s) => r === "password" && !d && s.preventDefault(),
225
- children: /* @__PURE__ */ t.jsx("div", { children: d && r !== "password" ? /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(be, { size: 24, color: "#7c86ff", loading: !0, variant: "clip" }) }) : r === "password" ? B ? /* @__PURE__ */ t.jsx(J.EyeVisibility, { size: 24, className: "" }) : /* @__PURE__ */ t.jsx(J.EyeVisibilityOff, { size: 24, className: "" }) : a })
226
+ children: /* @__PURE__ */ t.jsx("div", { children: d && r !== "password" ? /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(he, { size: 24, color: "#7c86ff", loading: !0, variant: "clip" }) }) : r === "password" ? I ? /* @__PURE__ */ t.jsx(J.EyeVisibility, { size: 24, className: "" }) : /* @__PURE__ */ t.jsx(J.EyeVisibilityOff, { size: 24, className: "" }) : a })
226
227
  }
227
228
  )
228
229
  ]
229
230
  }
230
231
  ),
231
- ne && R,
232
- G && P
232
+ ne && v,
233
+ G && R
233
234
  ] });
234
235
  }, Ie = xe(we);
235
236
  export {
@@ -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 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-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 t } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { useRef as a, createContext as i, useContext as u, memo as c } from "react";
3
3
  const o = i(null), l = ({ children: e }) => {
4
4
  const r = a(null), s = (n) => {
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-jDE96L2N.js";
1
+ import { L as f } from "./LayoutGeneric-p4Pll4Cm.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 ve } from "./Icons.es.js";
3
3
  import { c as L } 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 e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { motion as i, AnimatePresence as E } from "framer-motion";
3
3
  import { useRef as v, useState as R, useLayoutEffect as A } from "react";
4
4
  import H 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(
package/dist/Select.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 { Icons as w } from "./Icons.es.js";
3
3
  import { c as o } from "./cn-B6yFEsav.js";
4
4
  import { memo as se, useState as y, useRef as re, useEffect as oe } 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 { Icons as h } from "./Icons.es.js";
3
3
  import { c as i } from "./cn-B6yFEsav.js";
4
4
  import { useField as P, ErrorMessage as M } from "formik";