prometeo-design-system 4.6.2 → 4.6.4
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.
- package/dist/Avatar.es.js +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/Chip.es.js +1 -1
- package/dist/DatePicker-n6qm0fey.js +3573 -0
- package/dist/DatePicker.es.js +1 -1
- package/dist/DialogModal.es.js +144 -70
- package/dist/DrawerDesktop.es.js +36 -34
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/FAButton.es.js +1 -1
- package/dist/Header.es.js +8 -9
- package/dist/{HelperComponent-ljsn0xD6.js → HelperComponent-DhGU_ug-.js} +1 -1
- package/dist/IconButton.es.js +3 -3
- package/dist/Icons/AccountCircle.es.js +1 -1
- package/dist/Icons/Add.es.js +1 -1
- package/dist/Icons/ArrowDownward.es.js +1 -1
- package/dist/Icons/ArrowLeft.es.js +1 -1
- package/dist/Icons/ArrowUpDown.es.js +1 -1
- package/dist/Icons/ArrowUpward.es.js +1 -1
- package/dist/Icons/AttachFile.es.js +1 -1
- package/dist/Icons/Boards.es.js +1 -1
- package/dist/Icons/Calendar.es.js +1 -1
- package/dist/Icons/Cancel.es.js +1 -1
- package/dist/Icons/Check.es.js +1 -1
- package/dist/Icons/CheckCircle.es.js +1 -1
- package/dist/Icons/CheckList.es.js +1 -1
- package/dist/Icons/ChevronDown.es.js +1 -1
- package/dist/Icons/Clock.es.js +1 -1
- package/dist/Icons/Close.es.js +1 -1
- package/dist/Icons/CloseNavBarDesktop.es.js +1 -1
- package/dist/Icons/Collapse.es.js +1 -1
- package/dist/Icons/Company.es.js +1 -1
- package/dist/Icons/Copy.es.js +1 -1
- package/dist/Icons/CrevronLeft.es.js +1 -1
- package/dist/Icons/CrevronRight.es.js +1 -1
- package/dist/Icons/DocumentFill.es.js +1 -1
- package/dist/Icons/Download.es.js +1 -1
- package/dist/Icons/DragIndicator.es.js +1 -1
- package/dist/Icons/Edit.es.js +1 -1
- package/dist/Icons/EditFill.es.js +1 -1
- package/dist/Icons/Email.es.js +1 -1
- package/dist/Icons/Error.es.js +1 -1
- package/dist/Icons/EyeVisibility.es.js +1 -1
- package/dist/Icons/EyeVisibilityOff.es.js +1 -1
- package/dist/Icons/FaLock.es.js +1 -1
- package/dist/Icons/FastForward.es.js +1 -1
- package/dist/Icons/File.es.js +1 -1
- package/dist/Icons/Filter.es.js +1 -1
- package/dist/Icons/FormatColorText.es.js +1 -1
- package/dist/Icons/Help.es.js +1 -1
- package/dist/Icons/HistoryActivity.es.js +1 -1
- package/dist/Icons/Home.es.js +1 -1
- package/dist/Icons/Image.es.js +1 -1
- package/dist/Icons/Info.es.js +1 -1
- package/dist/Icons/Logout.es.js +1 -1
- package/dist/Icons/MessageSquare.es.js +1 -1
- package/dist/Icons/MessageSquareFill.es.js +1 -1
- package/dist/Icons/MoreVert.es.js +1 -1
- package/dist/Icons/Notifications.es.js +1 -1
- package/dist/Icons/Pause.es.js +1 -1
- package/dist/Icons/Reassignment.es.js +1 -1
- package/dist/Icons/ReassignmentFill.es.js +1 -1
- package/dist/Icons/Reload.es.js +1 -1
- package/dist/Icons/Search.es.js +1 -1
- package/dist/Icons/Send.es.js +1 -1
- package/dist/Icons/Settings.es.js +1 -1
- package/dist/Icons/Shared.es.js +1 -1
- package/dist/Icons/Sort.es.js +1 -1
- package/dist/Icons/StarFill.es.js +1 -1
- package/dist/Icons/Stars.es.js +1 -1
- package/dist/Icons/Ticket.es.js +1 -1
- package/dist/Icons/TicketFilled.es.js +1 -1
- package/dist/Icons/Trash.es.js +1 -1
- package/dist/Icons/TrashFill.es.js +1 -1
- package/dist/Icons/Upload.es.js +1 -1
- package/dist/Icons/UploadCloud.es.js +1 -1
- package/dist/Icons/UserAdd.es.js +1 -1
- package/dist/Icons/UserAddFill.es.js +1 -1
- package/dist/Icons/UserAvatar.es.js +1 -1
- package/dist/Icons/UserPerson.es.js +1 -1
- package/dist/Icons/WhatsApp.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-DG9ovlQ-.js → ImageGallery-4DdXqwRy.js} +1 -1
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input.es.js +2 -2
- package/dist/InputMultiple.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/NotificationCard.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/PlainTooltip.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/PyrionLayout.es.js +333 -363
- package/dist/RadioButton.es.js +2 -2
- package/dist/RecurrentDatePicker.es.js +3 -3
- package/dist/RecurrentDatePickerRRule.es.js +4 -2
- package/dist/Scrollable.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/Select.es.js +558 -557
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/Switch.es.js +7 -7
- package/dist/{TabLinks-DnoWdrdk.js → TabLinks-C0ywjYt-.js} +2 -2
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/TicketCard.es.js +1 -1
- package/dist/Toast.es.js +1 -1
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/UserCard.es.js +1 -1
- package/dist/{badge-BEx-0Q-K.js → badge-CiiB9SGl.js} +1 -1
- package/dist/components/Dialog/Dialog.d.ts +15 -4
- package/dist/components/Select/Select.d.ts +1 -0
- package/dist/{jsx-runtime-GkKLlHH4.js → jsx-runtime-DKDX3adD.js} +20 -2
- package/dist/prometeo-design-system.es.js +5 -5
- package/package.json +1 -1
- package/dist/DatePicker-QuBgR5DQ.js +0 -3738
package/dist/DatePicker.es.js
CHANGED
package/dist/DialogModal.es.js
CHANGED
|
@@ -1,88 +1,162 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { c
|
|
5
|
-
const
|
|
6
|
-
({ children:
|
|
7
|
-
const [
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
}, []),
|
|
12
|
-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { forwardRef as _, memo as b, useState as H, useRef as R, useCallback as p, useImperativeHandle as $, Children as q, isValidElement as I } from "react";
|
|
3
|
+
import { createPortal as B } from "react-dom";
|
|
4
|
+
import { c } from "./cn-B6yFEsav.js";
|
|
5
|
+
const A = _(
|
|
6
|
+
({ children: r, onClose: a, className: n, attachToParent: o = !1, zindex: y = 40, debugMode: l = !1, safeMarginSize: S = 24, title: j, scroll: x = "content" }, G) => {
|
|
7
|
+
const [C, F] = H(!1), [v, T] = H(null), z = R(a), N = R(v);
|
|
8
|
+
z.current = a, N.current = v;
|
|
9
|
+
const O = p((e) => {
|
|
10
|
+
T(e ?? null), F(!0);
|
|
11
|
+
}, []), D = p(() => {
|
|
12
|
+
F(!1), z.current?.(N.current), setTimeout(() => T(null), 300);
|
|
13
13
|
}, []);
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
$(
|
|
15
|
+
G,
|
|
16
16
|
() => ({
|
|
17
|
-
open:
|
|
18
|
-
close:
|
|
19
|
-
isOpen:
|
|
20
|
-
getContext: () =>
|
|
17
|
+
open: O,
|
|
18
|
+
close: D,
|
|
19
|
+
isOpen: C,
|
|
20
|
+
getContext: () => N.current
|
|
21
21
|
}),
|
|
22
|
-
[
|
|
22
|
+
[O, D, C]
|
|
23
23
|
);
|
|
24
|
-
const
|
|
24
|
+
const L = `max-[500px]:max-w-[calc(100%-32px)]
|
|
25
|
+
max-[1200px]:max-w-[min(800px,calc(100%-32px))]
|
|
26
|
+
min-[1200px]:max-w-[min(1224px,calc(100%-100px))] min-[1200px]:min-w-[1100px]`, U = typeof r == "function" ? r(v) : r, V = q.toArray(U);
|
|
27
|
+
let s = null, u = null, w = null;
|
|
28
|
+
const h = [];
|
|
29
|
+
let E = null;
|
|
30
|
+
if (V.forEach((e) => {
|
|
31
|
+
if (!I(e)) {
|
|
32
|
+
h.push(e);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (e.type === g && !j) {
|
|
36
|
+
u = e;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (e.type === i && !s) {
|
|
40
|
+
const f = e.props;
|
|
41
|
+
s = /* @__PURE__ */ t.jsx(i, { ...f, debugMode: l, children: f.children });
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (e.type === d && !w) {
|
|
45
|
+
const f = e.props;
|
|
46
|
+
w = /* @__PURE__ */ t.jsx(d, { ...f, debugMode: l, scroll: x, children: f.children });
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (e.type === m && !E) {
|
|
50
|
+
const f = e.props;
|
|
51
|
+
E = /* @__PURE__ */ t.jsx(m, { ...f, debugMode: l, children: f.children });
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
e.type !== i && e.type !== d && e.type !== m && e.type !== g && h.push(e);
|
|
55
|
+
}), !s && j && (s = /* @__PURE__ */ t.jsx(i, { title: j, debugMode: l }), u = null), s && u && I(s)) {
|
|
56
|
+
const e = s.props;
|
|
57
|
+
e.title && (s = /* @__PURE__ */ t.jsx(i, { ...e, title: "", debugMode: l, children: u }), u = null);
|
|
58
|
+
}
|
|
59
|
+
const k = w ?? (h.length ? /* @__PURE__ */ t.jsx(d, { debugMode: l, scroll: x, children: h }) : null), P = /* @__PURE__ */ t.jsx(t.Fragment, { children: C && /* @__PURE__ */ t.jsx(
|
|
25
60
|
"div",
|
|
26
61
|
{
|
|
27
62
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
|
|
28
|
-
style: { zIndex:
|
|
29
|
-
onClick:
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
63
|
+
style: { zIndex: y },
|
|
64
|
+
onClick: D,
|
|
65
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
onClick: (e) => e.stopPropagation(),
|
|
69
|
+
className: c(
|
|
70
|
+
"bg-neutral-default-default rounded-lg shadow-lg border-neutral-strong-default border relative ",
|
|
71
|
+
"max-h-[calc(100%-128px)] h-dvh w-full",
|
|
72
|
+
"flex flex-col ",
|
|
73
|
+
L,
|
|
74
|
+
n
|
|
75
|
+
),
|
|
76
|
+
style: {
|
|
77
|
+
"--safe-margin-size": `${S}px`
|
|
78
|
+
},
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ t.jsx(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
className: c(
|
|
84
|
+
"absolute bg-transparent z-[-1] -top-(--safe-margin-size) -left-(--safe-margin-size) -right-(--safe-margin-size) -bottom-(--safe-margin-size)",
|
|
85
|
+
l && "after:content-['SECURE_MARGIN'] after:text-red-300 after:prometeo-fonts-label-small after:ml-2 "
|
|
86
|
+
),
|
|
87
|
+
style: {
|
|
88
|
+
background: l ? "#FF393973" : "auto",
|
|
89
|
+
border: l ? "solid 1px #FF3939" : ""
|
|
90
|
+
}
|
|
91
|
+
}
|
|
45
92
|
),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
93
|
+
/* @__PURE__ */ t.jsxs("div", { className: c(
|
|
94
|
+
"flex flex-col h-full",
|
|
95
|
+
x === "dialog" && "overflow-y-auto",
|
|
96
|
+
x === "content" && "overflow-hidden"
|
|
97
|
+
), children: [
|
|
98
|
+
s,
|
|
99
|
+
x === "dialog" ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col flex-1", children: k }) : k,
|
|
100
|
+
E
|
|
101
|
+
] })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
)
|
|
50
105
|
}
|
|
51
106
|
) });
|
|
52
|
-
return
|
|
107
|
+
return o ? P : B(P, document.body);
|
|
53
108
|
}
|
|
54
109
|
);
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
110
|
+
A.displayName = "Dialog";
|
|
111
|
+
const d = b(({ children: r, className: a, debugMode: n, scroll: o }) => /* @__PURE__ */ t.jsx("div", { className: c(
|
|
112
|
+
"flex flex-col gap-4 p-4",
|
|
113
|
+
n && "border-2 border-dashed border-red-500 bg-red-200/40 relative after:content-['CONTENT'] after:absolute after:top-2 after:left-1/2 after:w-max after:h-full after:text-red-500 ",
|
|
114
|
+
a,
|
|
115
|
+
// Para scroll='content', este componente necesita su propio scroll y altura mínima
|
|
116
|
+
o === "content" && "overflow-y-auto min-h-0 flex-1 ",
|
|
117
|
+
// Para scroll='dialog', el contenido debe ocupar todo el espacio disponible pero sin scroll
|
|
118
|
+
o === "dialog" && "flex-1 min-h-max "
|
|
119
|
+
), children: r }));
|
|
120
|
+
d.displayName = "DialogContent";
|
|
121
|
+
const g = b(({ children: r, className: a, debugMode: n }) => /* @__PURE__ */ t.jsx("h1", { className: c("prometeo-fonts-headline-small text-neutral-strong-default w-max", n && 'bg-red-400/40 relative after:content-["TITLE"] after:absolute after:top-0 after:-translate-y-5 after:left-0 after:w-max after:h-full after:text-red-500 after:prometeo-fonts-label-large', a), children: r }));
|
|
122
|
+
g.displayName = "DialogTitle";
|
|
123
|
+
const i = b(({ children: r, className: a, title: n, debugMode: o }) => /* @__PURE__ */ t.jsxs("div", { className: c(
|
|
124
|
+
"p-4",
|
|
125
|
+
o && "border-2 border-dashed border-red-600 bg-red-200/40! relative after:content-['HEADER'] after:absolute after:top-1 after:left-1/2 after:w-max after:h-full after:text-red-500",
|
|
126
|
+
a
|
|
127
|
+
), children: [
|
|
128
|
+
n && /* @__PURE__ */ t.jsx(g, { debugMode: o, children: n }),
|
|
129
|
+
r
|
|
130
|
+
] }));
|
|
131
|
+
i.displayName = "DialogHeader";
|
|
132
|
+
const m = b(({ children: r, className: a, debugMode: n }) => /* @__PURE__ */ t.jsx("div", { className: c(
|
|
133
|
+
n && "border-2 border-dashed border-red-600 bg-red-200/40! relative after:content-['FOOTER'] after:absolute after:top-1 after:left-1/2 after:w-max after:h-full after:text-red-500",
|
|
134
|
+
"border-t border-neutral-strong-default p-4",
|
|
135
|
+
a
|
|
136
|
+
), children: r }));
|
|
137
|
+
m.displayName = "DialogFooter";
|
|
138
|
+
const J = Object.assign(A, {
|
|
139
|
+
Content: d,
|
|
140
|
+
Header: i,
|
|
141
|
+
Footer: m,
|
|
142
|
+
Title: g
|
|
69
143
|
});
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
}, []),
|
|
75
|
-
|
|
76
|
-
}, []),
|
|
144
|
+
J.displayName = "DialogModal";
|
|
145
|
+
const Y = () => {
|
|
146
|
+
const r = R(null), a = p((l) => {
|
|
147
|
+
r.current?.open(l);
|
|
148
|
+
}, []), n = p(() => {
|
|
149
|
+
r.current?.close();
|
|
150
|
+
}, []), o = p(() => r.current?.isOpen ?? !1, []), y = p(() => r.current?.getContext() ?? null, []);
|
|
77
151
|
return {
|
|
78
|
-
ref:
|
|
79
|
-
open:
|
|
80
|
-
close:
|
|
81
|
-
isOpen:
|
|
82
|
-
getContext:
|
|
152
|
+
ref: r,
|
|
153
|
+
open: a,
|
|
154
|
+
close: n,
|
|
155
|
+
isOpen: o,
|
|
156
|
+
getContext: y
|
|
83
157
|
};
|
|
84
158
|
};
|
|
85
159
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
160
|
+
J as default,
|
|
161
|
+
Y as useDialogControl
|
|
88
162
|
};
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as m } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as R } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { c as j } from "./index-BOQuZ0gG.js";
|
|
4
4
|
import { createPortal as B } from "react-dom";
|
|
5
|
-
import { forwardRef as L, useRef as
|
|
5
|
+
import { forwardRef as L, useRef as p, useState as v, useEffect as a, useCallback as x, useImperativeHandle as Y } from "react";
|
|
6
6
|
import F from "./Button.es.js";
|
|
7
7
|
import { Close as H } from "./Icons/Close.es.js";
|
|
8
8
|
const $ = L((t, i) => {
|
|
9
|
-
const l =
|
|
10
|
-
modal:
|
|
11
|
-
children:
|
|
9
|
+
const l = p(null), [e, u] = v(t.defaultOpen || !1), [r, s] = v(null), d = p(t.onClose), c = p(r), b = p(/* @__PURE__ */ new Set()), {
|
|
10
|
+
modal: y = !1,
|
|
11
|
+
children: f,
|
|
12
12
|
className: g,
|
|
13
13
|
direction: O = "left",
|
|
14
14
|
attachToParent: h = !1,
|
|
15
15
|
closeOnOverlayClick: n = !1,
|
|
16
16
|
hideCloseButton: N = !1,
|
|
17
17
|
unmountChildrenOnClose: C = !1,
|
|
18
|
-
zindex: T =
|
|
19
|
-
} = t, k =
|
|
18
|
+
zindex: T = 35
|
|
19
|
+
} = t, k = p(n), D = p(e);
|
|
20
20
|
c.current = r;
|
|
21
21
|
const [V, P] = v(() => !C);
|
|
22
22
|
a(() => {
|
|
@@ -28,31 +28,31 @@ const $ = L((t, i) => {
|
|
|
28
28
|
}, [r]), a(() => {
|
|
29
29
|
k.current = n;
|
|
30
30
|
}, [n]);
|
|
31
|
-
const
|
|
31
|
+
const I = (o) => {
|
|
32
32
|
if (!l.current)
|
|
33
33
|
return;
|
|
34
34
|
const E = l.current;
|
|
35
35
|
E && !E.contains(o.target) && k.current && D.current && w();
|
|
36
36
|
};
|
|
37
37
|
a(() => {
|
|
38
|
-
if (!k.current ||
|
|
38
|
+
if (!k.current || y || !e)
|
|
39
39
|
return;
|
|
40
40
|
const o = setTimeout(() => {
|
|
41
|
-
document.addEventListener("click",
|
|
41
|
+
document.addEventListener("click", I);
|
|
42
42
|
}, 0);
|
|
43
43
|
return () => {
|
|
44
|
-
clearTimeout(o), document.removeEventListener("click",
|
|
44
|
+
clearTimeout(o), document.removeEventListener("click", I);
|
|
45
45
|
};
|
|
46
|
-
}, [n, e,
|
|
46
|
+
}, [n, e, y]), a(() => {
|
|
47
47
|
d.current = t.onClose;
|
|
48
48
|
}, [t.onClose]);
|
|
49
|
-
const
|
|
49
|
+
const z = x((o) => {
|
|
50
50
|
s(o ?? null), u(!0);
|
|
51
51
|
}, []), w = x(() => {
|
|
52
52
|
u(!1), d.current?.(c.current), setTimeout(() => s(null), 300);
|
|
53
53
|
}, []);
|
|
54
54
|
a(() => {
|
|
55
|
-
|
|
55
|
+
b.current.forEach((o) => {
|
|
56
56
|
try {
|
|
57
57
|
o(e);
|
|
58
58
|
} catch {
|
|
@@ -61,17 +61,17 @@ const $ = L((t, i) => {
|
|
|
61
61
|
}, [e]), Y(
|
|
62
62
|
i,
|
|
63
63
|
() => ({
|
|
64
|
-
open:
|
|
64
|
+
open: z,
|
|
65
65
|
close: w,
|
|
66
66
|
isOpen: e,
|
|
67
|
-
subscribeOpenChange: (o) => (
|
|
68
|
-
|
|
67
|
+
subscribeOpenChange: (o) => (b.current.add(o), () => {
|
|
68
|
+
b.current.delete(o);
|
|
69
69
|
}),
|
|
70
70
|
getContext: () => c.current
|
|
71
71
|
}),
|
|
72
|
-
[e,
|
|
72
|
+
[e, z, w]
|
|
73
73
|
);
|
|
74
|
-
const S = /* @__PURE__ */
|
|
74
|
+
const S = /* @__PURE__ */ m.jsx(
|
|
75
75
|
q,
|
|
76
76
|
{
|
|
77
77
|
context: r,
|
|
@@ -79,13 +79,13 @@ const $ = L((t, i) => {
|
|
|
79
79
|
isOpen: e,
|
|
80
80
|
close: w,
|
|
81
81
|
direction: O,
|
|
82
|
-
modal:
|
|
82
|
+
modal: y,
|
|
83
83
|
className: g,
|
|
84
84
|
attachToParent: h,
|
|
85
85
|
closeOnOverlayClick: n,
|
|
86
86
|
hideCloseButton: N,
|
|
87
87
|
zindex: T,
|
|
88
|
-
children: (!C || V) && (typeof
|
|
88
|
+
children: (!C || V) && (typeof f == "function" ? f(r) : f)
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
return h ? S : B(S, document.body);
|
|
@@ -101,9 +101,9 @@ const q = ({
|
|
|
101
101
|
className: s,
|
|
102
102
|
attachToParent: d = !1,
|
|
103
103
|
closeOnOverlayClick: c = !1,
|
|
104
|
-
hideCloseButton:
|
|
105
|
-
context:
|
|
106
|
-
zindex:
|
|
104
|
+
hideCloseButton: b = !1,
|
|
105
|
+
context: y,
|
|
106
|
+
zindex: f = 499
|
|
107
107
|
}) => {
|
|
108
108
|
a(() => {
|
|
109
109
|
if (e && r) {
|
|
@@ -142,19 +142,19 @@ const q = ({
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
r && /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
146
|
+
r && /* @__PURE__ */ m.jsx(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
className: R(O({ isOpen: e })),
|
|
150
|
-
style: { zIndex:
|
|
150
|
+
style: { zIndex: f },
|
|
151
151
|
onClick: (n) => {
|
|
152
152
|
n.preventDefault(), n.stopPropagation(), c && u();
|
|
153
153
|
},
|
|
154
154
|
"aria-hidden": "true"
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ m.jsxs(
|
|
158
158
|
"div",
|
|
159
159
|
{
|
|
160
160
|
ref: t,
|
|
@@ -162,16 +162,17 @@ const q = ({
|
|
|
162
162
|
"bg-neutral-strong-default h-full top-0 z-60 w-max overflow-y-auto",
|
|
163
163
|
d ? "absolute" : "fixed",
|
|
164
164
|
g({ isOpen: e, direction: l }),
|
|
165
|
-
!
|
|
165
|
+
!b && "p-4 pt-10",
|
|
166
166
|
s
|
|
167
167
|
),
|
|
168
168
|
role: "dialog",
|
|
169
169
|
"aria-modal": r,
|
|
170
|
+
style: { zIndex: f + 1 },
|
|
170
171
|
children: [
|
|
171
|
-
!
|
|
172
|
+
!b && /* @__PURE__ */ m.jsx(
|
|
172
173
|
F,
|
|
173
174
|
{
|
|
174
|
-
icon: /* @__PURE__ */
|
|
175
|
+
icon: /* @__PURE__ */ m.jsx(H, { size: 24 }),
|
|
175
176
|
animate: !1,
|
|
176
177
|
animateIcon: !1,
|
|
177
178
|
type: "button",
|
|
@@ -184,16 +185,17 @@ const q = ({
|
|
|
184
185
|
"absolute top-0 z-50",
|
|
185
186
|
h({ direction: l })
|
|
186
187
|
),
|
|
187
|
-
"aria-label": "Close drawer"
|
|
188
|
+
"aria-label": "Close drawer",
|
|
189
|
+
style: { zIndex: f + 2 }
|
|
188
190
|
}
|
|
189
191
|
),
|
|
190
|
-
typeof i == "function" ? i(
|
|
192
|
+
typeof i == "function" ? i(y) : i
|
|
191
193
|
]
|
|
192
194
|
}
|
|
193
195
|
)
|
|
194
196
|
] });
|
|
195
197
|
}, W = () => {
|
|
196
|
-
const t =
|
|
198
|
+
const t = p(null), [i, l] = v(!1), e = x((s) => {
|
|
197
199
|
t.current?.open(s);
|
|
198
200
|
}, []), u = x(() => {
|
|
199
201
|
t.current?.close();
|
package/dist/DrawerMobile.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as m } from "./jsx-runtime-
|
|
1
|
+
import { j as m } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as _ } from "./cn-B6yFEsav.js";
|
|
3
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
4
|
import { createPortal as Z } from "react-dom";
|
package/dist/DropZone.es.js
CHANGED
package/dist/FAButton.es.js
CHANGED
package/dist/Header.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as a } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { motion as n } from "framer-motion";
|
|
4
4
|
import { memo as f } from "react";
|
|
@@ -9,18 +9,17 @@ const c = ({ title: e, subtitle: l, children: s, className: r, subtitleClassName
|
|
|
9
9
|
animate: { opacity: 1, y: 0 },
|
|
10
10
|
transition: { duration: 0.6, ease: "easeOut" },
|
|
11
11
|
className: a(
|
|
12
|
-
"flex items-center sm:min-h-20 md:min-h-24 lg:min-h-28 xl:min-h-32 2xl:min-h-36 overflow-hidden px-4 md:px-
|
|
12
|
+
"flex items-center sm:min-h-20 md:min-h-24 lg:min-h-28 xl:min-h-32 2xl:min-h-36 overflow-hidden px-4 md:px-4 py-2 md:py-3",
|
|
13
13
|
"flex justify-between items-center w-full max-w-full overflow-hidden",
|
|
14
|
-
i && "px-1",
|
|
15
14
|
r
|
|
16
15
|
),
|
|
17
16
|
children: [
|
|
18
17
|
/* @__PURE__ */ t.jsxs("div", { className: a(
|
|
19
|
-
"flex items-center md:items-start md:flex-col leading-6 h-full justify-center overflow-hidden
|
|
18
|
+
"flex items-center md:items-start md:flex-col leading-6 h-full justify-center overflow-hidden",
|
|
20
19
|
i && "justify-start gap-1 w-full"
|
|
21
20
|
), children: [
|
|
22
|
-
i && /* @__PURE__ */ t.jsx("div", { className: "
|
|
23
|
-
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col leading-6 justify-center
|
|
21
|
+
i && /* @__PURE__ */ t.jsx("div", { className: "", children: typeof i == "function" ? i() : i }),
|
|
22
|
+
/* @__PURE__ */ t.jsxs("div", { className: a("flex flex-col leading-6 justify-center relative overflow-hidden md:px-2 "), children: [
|
|
24
23
|
l && /* @__PURE__ */ t.jsx("h3", { className: a(" prometeo-fonts-body-medium text-neutral-medium-default line-clamp-1 text-nowrap overflow-hidden text-ellipsis w-full", d), children: l }),
|
|
25
24
|
e && /* @__PURE__ */ t.jsx("h1", { className: a("prometeo-fonts-headline-small text-neutral-strong-default line-clamp-1 text-nowrap overflow-hidden text-ellipsis w-full wrap-break-word", m), children: e })
|
|
26
25
|
] })
|
|
@@ -28,8 +27,8 @@ const c = ({ title: e, subtitle: l, children: s, className: r, subtitleClassName
|
|
|
28
27
|
s && /* @__PURE__ */ t.jsx("div", { className: "shrink relative", children: s })
|
|
29
28
|
]
|
|
30
29
|
}
|
|
31
|
-
),
|
|
32
|
-
|
|
30
|
+
), o = f(c, (e, l) => e.title !== l.title || e.subtitle !== l.subtitle || e.className !== l.className ? !1 : e.children !== l.children ? !e.children && !l.children : !0);
|
|
31
|
+
o.displayName = "Header";
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
o as default
|
|
35
34
|
};
|
package/dist/IconButton.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { memo as C, useMemo as E } from "react";
|
|
3
3
|
import R from "./Spinner.es.js";
|
|
4
4
|
import { c as b } from "./index-BOQuZ0gG.js";
|
|
@@ -300,7 +300,7 @@ const u = {
|
|
|
300
300
|
children: /* @__PURE__ */ r.jsx("div", { className: `flex items-center gap-1 ${n}`, children: N })
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
|
-
},
|
|
303
|
+
}, J = C(M);
|
|
304
304
|
export {
|
|
305
|
-
|
|
305
|
+
J as default
|
|
306
306
|
};
|
package/dist/Icons/Add.es.js
CHANGED
package/dist/Icons/Boards.es.js
CHANGED
package/dist/Icons/Cancel.es.js
CHANGED
package/dist/Icons/Check.es.js
CHANGED
package/dist/Icons/Clock.es.js
CHANGED
package/dist/Icons/Close.es.js
CHANGED