prometeo-design-system 2.7.6 → 2.7.8
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/Button.es.js +5 -5
- package/dist/{CardProfile-DV3gwvqE.js → CardProfile-WHoeSibd.js} +24 -24
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +2 -2
- package/dist/CheckboxFormik.es.js +2 -2
- package/dist/DatePicker.es.js +68 -68
- package/dist/DrawerDesktop.es.js +4 -4
- package/dist/DropZone.es.js +32 -32
- package/dist/FAButton.es.js +2 -2
- package/dist/HelperComponent-BeNlTMqI.js +24 -0
- package/dist/Icons/Icons.d.ts +61 -1
- package/dist/Icons.es.js +68 -8
- package/dist/{ImageGallery-D8nIvBpV.js → ImageGallery-WKzUevOQ.js} +43 -43
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-60IT1aGF.js → Input-D6as6xD-.js} +61 -61
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +32 -32
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/InputMultiple.es.js +51 -51
- package/dist/Logo.es.js +3 -3
- package/dist/Menu.es.js +2 -2
- package/dist/OtpInput.es.js +42 -42
- package/dist/Pagination.es.js +1 -1
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-C4UvSsof.js → Select-sdfP2TL0.js} +164 -164
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +25 -25
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +14 -14
- package/dist/TabLinks.es.js +2 -2
- package/dist/Table.es.js +2 -2
- package/dist/Toast.es.js +23 -23
- package/dist/Tooltip.es.js +7 -7
- package/dist/components/Spinner/SpinnerV2.d.ts +12 -0
- package/dist/components/Toaster/Toaster.d.ts +3 -3
- package/dist/exports/Icons.d.ts +1 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +126 -125
- package/package.json +1 -1
- package/dist/HelperComponent-U6mPwuDH.js +0 -24
|
@@ -1,64 +1,65 @@
|
|
|
1
1
|
import { default as Se } from "./Avatar.es.js";
|
|
2
2
|
import { default as Ie } from "./Button.es.js";
|
|
3
|
-
import { C as Re, a as Le } from "./CardProfile-
|
|
3
|
+
import { C as Re, a as Le } from "./CardProfile-WHoeSibd.js";
|
|
4
4
|
import { default as Ae } from "./CheckBox.es.js";
|
|
5
5
|
import { default as qe } from "./CheckboxFormik.es.js";
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as Ee, useDialogControl as De } from "./DialogModal.es.js";
|
|
7
7
|
import { default as Fe, useDrawerDesktop as He } from "./DrawerDesktop.es.js";
|
|
8
8
|
import { default as $e, useDrawerMobile as Me } from "./DrawerMobile.es.js";
|
|
9
9
|
import { default as Ve } from "./Header.es.js";
|
|
10
|
-
import { I as _e } from "./Input-
|
|
10
|
+
import { I as _e } from "./Input-D6as6xD-.js";
|
|
11
11
|
import { default as Ze } from "./InputFormik.es.js";
|
|
12
12
|
import { InputMultiple as Ke } from "./InputMultiple.es.js";
|
|
13
13
|
import { default as Ye } from "./Logo.es.js";
|
|
14
14
|
import { Menu as tt } from "./Menu.es.js";
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as at } from "./Pagination.es.js";
|
|
16
16
|
import { ProfilePictureUpload as nt } from "./ProfilePictureUpload.es.js";
|
|
17
17
|
import { default as st } from "./ProgressBar.es.js";
|
|
18
|
-
import { S as ct } from "./Select-
|
|
18
|
+
import { S as ct } from "./Select-sdfP2TL0.js";
|
|
19
19
|
import { default as dt } from "./SelectFormikLegacy.es.js";
|
|
20
20
|
import { default as mt } from "./SelectFormik.es.js";
|
|
21
21
|
import { default as xt } from "./Spinner.es.js";
|
|
22
22
|
import { Steps as yt } from "./Steps.es.js";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as ht } from "./SwipeContainer.es.js";
|
|
24
24
|
import { Switch as wt } from "./Switch.es.js";
|
|
25
25
|
import { default as Nt } from "./DatePicker.es.js";
|
|
26
26
|
import { Table as St, TableBody as kt, TableCaption as It, TableCell as Bt, TableFooter as Rt, TableHead as Lt, TableHeader as Tt, TableRow as At } from "./Table.es.js";
|
|
27
27
|
import { default as qt } from "./TabLinks.es.js";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as Et } from "./TextArea.es.js";
|
|
29
29
|
import { default as Ot } from "./Tooltip.es.js";
|
|
30
30
|
import { Skeleton as Ht } from "./Skeleton.es.js";
|
|
31
31
|
import { SegmentedButton as $t } from "./SegmentedButton.es.js";
|
|
32
32
|
import { u as k } from "./LayoutGeneric-CbaoatQB.js";
|
|
33
33
|
import { L as Ut, S as Vt } from "./LayoutGeneric-CbaoatQB.js";
|
|
34
|
-
import { I as _t } from "./ImageGallery-
|
|
34
|
+
import { I as _t } from "./ImageGallery-WKzUevOQ.js";
|
|
35
35
|
import { default as Zt } from "./Image.es.js";
|
|
36
36
|
import { default as Kt, toastpyrion as Qt } from "./Toast.es.js";
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { RadioButtonFormik as
|
|
42
|
-
import { RadioButton as
|
|
43
|
-
import { j as
|
|
37
|
+
import { default as er } from "./ToastProvider.es.js";
|
|
38
|
+
import { default as rr } from "./SelectSearch.es.js";
|
|
39
|
+
import { default as or } from "./FAButton.es.js";
|
|
40
|
+
import { default as ir } from "./InputFormikV2.es.js";
|
|
41
|
+
import { RadioButtonFormik as lr } from "./RadioButtonFormik.es.js";
|
|
42
|
+
import { RadioButton as ur } from "./RadioButton.es.js";
|
|
43
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
44
44
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
45
|
-
import A, { useRef as
|
|
45
|
+
import A, { useRef as g, useState as h, useLayoutEffect as P, createContext as q, useContext as z, forwardRef as C, useEffect as v, useCallback as E } from "react";
|
|
46
46
|
import { useGSAP as I } from "@gsap/react";
|
|
47
47
|
import x from "gsap";
|
|
48
|
-
import {
|
|
48
|
+
import { CloseNavBarDesktop as w } from "./Icons.es.js";
|
|
49
|
+
import { Icons as fr } from "./Icons.es.js";
|
|
49
50
|
import { motion as b, AnimatePresence as B } from "framer-motion";
|
|
50
|
-
import { default as
|
|
51
|
-
import { useDropzone as
|
|
52
|
-
import { useIsMobile as
|
|
53
|
-
import { DropZone as
|
|
51
|
+
import { default as pr } from "./OtpInput.es.js";
|
|
52
|
+
import { useDropzone as D } from "react-dropzone";
|
|
53
|
+
import { useIsMobile as br } from "./useDevice.es.js";
|
|
54
|
+
import { DropZone as gr } from "./DropZone.es.js";
|
|
54
55
|
const O = (t, e) => {
|
|
55
56
|
I(
|
|
56
57
|
() => {
|
|
57
58
|
if (!t.current) return;
|
|
58
|
-
const
|
|
59
|
+
const a = t.current, n = document.querySelector('[data-main-content="true"]');
|
|
59
60
|
if (e) {
|
|
60
61
|
x.fromTo(
|
|
61
|
-
|
|
62
|
+
a,
|
|
62
63
|
{
|
|
63
64
|
width: "0rem",
|
|
64
65
|
opacity: 0
|
|
@@ -70,11 +71,11 @@ const O = (t, e) => {
|
|
|
70
71
|
ease: "power2.out"
|
|
71
72
|
}
|
|
72
73
|
), n && x.to(n, {
|
|
73
|
-
marginLeft:
|
|
74
|
+
marginLeft: a.offsetWidth + "px",
|
|
74
75
|
duration: 0.4,
|
|
75
76
|
ease: "power2.out"
|
|
76
77
|
});
|
|
77
|
-
const o =
|
|
78
|
+
const o = a.querySelectorAll(".secondary-bar-content > *");
|
|
78
79
|
o.length > 0 && x.fromTo(
|
|
79
80
|
o,
|
|
80
81
|
{
|
|
@@ -91,7 +92,7 @@ const O = (t, e) => {
|
|
|
91
92
|
}
|
|
92
93
|
);
|
|
93
94
|
} else
|
|
94
|
-
x.to(
|
|
95
|
+
x.to(a, {
|
|
95
96
|
width: "0rem",
|
|
96
97
|
opacity: 0,
|
|
97
98
|
duration: 0.3,
|
|
@@ -107,13 +108,13 @@ const O = (t, e) => {
|
|
|
107
108
|
}, S = ({
|
|
108
109
|
children: t,
|
|
109
110
|
isOpen: e = !1,
|
|
110
|
-
className:
|
|
111
|
+
className: a = "",
|
|
111
112
|
width: n = "w-96",
|
|
112
113
|
action: o,
|
|
113
114
|
primarySidebarCollapsed: s,
|
|
114
115
|
onClose: l
|
|
115
116
|
}) => {
|
|
116
|
-
const c =
|
|
117
|
+
const c = g(null), [d, i] = h({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
|
|
117
118
|
return P(() => {
|
|
118
119
|
if (f?.current && m?.current) {
|
|
119
120
|
const p = f.current.getBoundingClientRect();
|
|
@@ -122,8 +123,8 @@ const O = (t, e) => {
|
|
|
122
123
|
width: p.width
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
|
-
}, [f, e, s, m]), O(c, e), /* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
}, [f, e, s, m]), O(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
127
|
+
/* @__PURE__ */ r.jsx(
|
|
127
128
|
"div",
|
|
128
129
|
{
|
|
129
130
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
@@ -133,7 +134,7 @@ const O = (t, e) => {
|
|
|
133
134
|
onClick: l
|
|
134
135
|
}
|
|
135
136
|
),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ r.jsx(
|
|
137
138
|
"div",
|
|
138
139
|
{
|
|
139
140
|
ref: c,
|
|
@@ -141,17 +142,17 @@ const O = (t, e) => {
|
|
|
141
142
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
142
143
|
"absolute top-0 z-50",
|
|
143
144
|
n,
|
|
144
|
-
|
|
145
|
+
a
|
|
145
146
|
),
|
|
146
147
|
style: {
|
|
147
148
|
left: d.left
|
|
148
149
|
},
|
|
149
150
|
"data-action": o,
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
|
|
151
152
|
}
|
|
152
153
|
)
|
|
153
154
|
] }) });
|
|
154
|
-
}, F = ({ children: t, className: e }) => /* @__PURE__ */
|
|
155
|
+
}, F = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1", t) }), de = Object.assign(S, {
|
|
155
156
|
Root: S,
|
|
156
157
|
Header: F,
|
|
157
158
|
Content: H,
|
|
@@ -167,13 +168,13 @@ const O = (t, e) => {
|
|
|
167
168
|
}, M = ({
|
|
168
169
|
children: t
|
|
169
170
|
}) => {
|
|
170
|
-
const [e,
|
|
171
|
-
|
|
171
|
+
const [e, a] = h(!1), [n, o] = h(!1), s = g(null), l = () => {
|
|
172
|
+
a(!1), o(!1);
|
|
172
173
|
}, c = () => {
|
|
173
|
-
|
|
174
|
+
a(!0), o(!1);
|
|
174
175
|
}, p = {
|
|
175
176
|
isCollapsed: e,
|
|
176
|
-
setIsCollapsed:
|
|
177
|
+
setIsCollapsed: a,
|
|
177
178
|
navbarRef: s,
|
|
178
179
|
toggleCollapse: () => {
|
|
179
180
|
e ? l() : c();
|
|
@@ -189,8 +190,8 @@ const O = (t, e) => {
|
|
|
189
190
|
o((y) => !y);
|
|
190
191
|
}
|
|
191
192
|
};
|
|
192
|
-
return /* @__PURE__ */
|
|
193
|
-
}, j = (t, e,
|
|
193
|
+
return /* @__PURE__ */ r.jsx(R.Provider, { value: p, children: t });
|
|
194
|
+
}, j = (t, e, a, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, n) : t, U = (t, e, a) => {
|
|
194
195
|
I(
|
|
195
196
|
() => {
|
|
196
197
|
if (!t.current) return;
|
|
@@ -234,7 +235,7 @@ const O = (t, e) => {
|
|
|
234
235
|
};
|
|
235
236
|
e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
|
|
236
237
|
},
|
|
237
|
-
{ scope: t, dependencies: [e,
|
|
238
|
+
{ scope: t, dependencies: [e, a] }
|
|
238
239
|
);
|
|
239
240
|
}, V = (t, e) => {
|
|
240
241
|
t.to(e.navbar, {
|
|
@@ -511,12 +512,12 @@ const O = (t, e) => {
|
|
|
511
512
|
ease: "power2.in"
|
|
512
513
|
});
|
|
513
514
|
}, X = C((t, e) => {
|
|
514
|
-
const [
|
|
515
|
-
|
|
515
|
+
const [a, n] = h(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
516
|
+
v(() => {
|
|
516
517
|
o.current?.style.setProperty("--tab-bg", c);
|
|
517
518
|
}, [c]);
|
|
518
|
-
const d = s.find((i) => i.name === (t?.currentTabName ||
|
|
519
|
-
return /* @__PURE__ */
|
|
519
|
+
const d = s.find((i) => i.name === (t?.currentTabName || a));
|
|
520
|
+
return /* @__PURE__ */ r.jsx(
|
|
520
521
|
"div",
|
|
521
522
|
{
|
|
522
523
|
ref: e,
|
|
@@ -529,10 +530,10 @@ const O = (t, e) => {
|
|
|
529
530
|
),
|
|
530
531
|
children: s.map(
|
|
531
532
|
(i) => {
|
|
532
|
-
const f = i.name === d?.name, m = typeof i.thumbnail == "string" ? /* @__PURE__ */
|
|
533
|
+
const f = i.name === d?.name, m = typeof i.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, p = () => {
|
|
533
534
|
i.disabled || (n(i.name), i.onClick && i.onClick(i.name));
|
|
534
535
|
};
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
+
return /* @__PURE__ */ r.jsx(
|
|
536
537
|
"div",
|
|
537
538
|
{
|
|
538
539
|
className: u(
|
|
@@ -545,7 +546,7 @@ const O = (t, e) => {
|
|
|
545
546
|
),
|
|
546
547
|
onClick: p,
|
|
547
548
|
ref: o,
|
|
548
|
-
children: /* @__PURE__ */
|
|
549
|
+
children: /* @__PURE__ */ r.jsx("div", { className: u(
|
|
549
550
|
"size-8 rounded-[4px]",
|
|
550
551
|
"grid place-items-center",
|
|
551
552
|
"tab-thumbnail-icon",
|
|
@@ -560,22 +561,22 @@ const O = (t, e) => {
|
|
|
560
561
|
}
|
|
561
562
|
);
|
|
562
563
|
}), Z = C(
|
|
563
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
564
|
-
const l =
|
|
564
|
+
({ children: t, isCollapsed: e = !1, className: a = "", tabs: n = [], currentTabName: o }, s) => {
|
|
565
|
+
const l = g(null), c = g(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = E((m) => {
|
|
565
566
|
l.current = m, typeof s == "function" ? s(m) : s && (s.current = m);
|
|
566
567
|
}, [s]);
|
|
567
|
-
return
|
|
568
|
+
return v(() => {
|
|
568
569
|
l.current && d(l);
|
|
569
|
-
}, [d]),
|
|
570
|
+
}, [d]), v(() => {
|
|
570
571
|
c.current && i(c);
|
|
571
|
-
}, [i]), U(l, e, !1), /* @__PURE__ */
|
|
572
|
+
}, [i]), U(l, e, !1), /* @__PURE__ */ r.jsxs(
|
|
572
573
|
"div",
|
|
573
574
|
{
|
|
574
575
|
className: u(
|
|
575
576
|
"flex"
|
|
576
577
|
),
|
|
577
578
|
children: [
|
|
578
|
-
n.length > 0 && /* @__PURE__ */
|
|
579
|
+
n.length > 0 && /* @__PURE__ */ r.jsx(
|
|
579
580
|
X,
|
|
580
581
|
{
|
|
581
582
|
tabs: n,
|
|
@@ -584,12 +585,12 @@ const O = (t, e) => {
|
|
|
584
585
|
currentTabName: o
|
|
585
586
|
}
|
|
586
587
|
),
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ r.jsx(
|
|
588
589
|
"div",
|
|
589
590
|
{
|
|
590
591
|
ref: f,
|
|
591
592
|
className: `bg-neutral-default-default hidden overflow-hidden h-screen md:flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 shrink-0
|
|
592
|
-
${e ? "w-16" : "w-64"} ${
|
|
593
|
+
${e ? "w-16" : "w-64"} ${a}`,
|
|
593
594
|
children: t
|
|
594
595
|
}
|
|
595
596
|
)
|
|
@@ -598,10 +599,10 @@ const O = (t, e) => {
|
|
|
598
599
|
);
|
|
599
600
|
}
|
|
600
601
|
), N = C(
|
|
601
|
-
(t, e) => /* @__PURE__ */
|
|
602
|
+
(t, e) => /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(Z, { ...t, ref: e }) })
|
|
602
603
|
);
|
|
603
604
|
N.displayName = "SidebarRoot";
|
|
604
|
-
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */
|
|
605
|
+
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
|
|
605
606
|
"button",
|
|
606
607
|
{
|
|
607
608
|
type: "button",
|
|
@@ -609,10 +610,10 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
609
610
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
610
611
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
611
612
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
612
|
-
children: t ? /* @__PURE__ */
|
|
613
|
+
children: t ? /* @__PURE__ */ r.jsx(w, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(w, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
613
614
|
}
|
|
614
|
-
) }), K = ({ children: t, className: e }) => /* @__PURE__ */
|
|
615
|
-
const
|
|
615
|
+
) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: u("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ r.jsx("div", { className: "border-b border-neutral-strong-default border w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
|
|
616
|
+
const a = () => {
|
|
616
617
|
switch (e) {
|
|
617
618
|
case "auto":
|
|
618
619
|
return "flex-grow";
|
|
@@ -624,8 +625,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
624
625
|
return "h-8 w-8";
|
|
625
626
|
}
|
|
626
627
|
};
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
-
}, te = ({ children: t, className: e }) => /* @__PURE__ */
|
|
628
|
+
return /* @__PURE__ */ r.jsx("div", { className: u(a(), t) });
|
|
629
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), me = Object.assign(N, {
|
|
629
630
|
Root: N,
|
|
630
631
|
CollapseButton: J,
|
|
631
632
|
Header: K,
|
|
@@ -636,14 +637,14 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
636
637
|
}), pe = ({
|
|
637
638
|
children: t,
|
|
638
639
|
icon: e,
|
|
639
|
-
label:
|
|
640
|
+
label: a,
|
|
640
641
|
href: n,
|
|
641
642
|
onClick: o,
|
|
642
643
|
isActive: s = !1,
|
|
643
644
|
className: l
|
|
644
645
|
}) => {
|
|
645
646
|
const c = n ? "a" : "button";
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
+
return /* @__PURE__ */ r.jsxs(
|
|
647
648
|
c,
|
|
648
649
|
{
|
|
649
650
|
href: n,
|
|
@@ -657,8 +658,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
657
658
|
l
|
|
658
659
|
),
|
|
659
660
|
children: [
|
|
660
|
-
e && /* @__PURE__ */
|
|
661
|
-
|
|
661
|
+
e && /* @__PURE__ */ r.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ r.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
|
|
662
|
+
a && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: a }),
|
|
662
663
|
t
|
|
663
664
|
]
|
|
664
665
|
}
|
|
@@ -666,7 +667,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
666
667
|
}, L = ({
|
|
667
668
|
count: t,
|
|
668
669
|
maxCount: e = 9,
|
|
669
|
-
className:
|
|
670
|
+
className: a = "",
|
|
670
671
|
size: n = "medium",
|
|
671
672
|
variant: o = "primary",
|
|
672
673
|
showZero: s = !1
|
|
@@ -684,19 +685,19 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
684
685
|
warning: "bg-yellow-500 text-black",
|
|
685
686
|
danger: "bg-red-500 text-white"
|
|
686
687
|
};
|
|
687
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ r.jsx("div", { className: u(
|
|
688
689
|
"rounded-full flex items-center justify-center font-medium ",
|
|
689
690
|
d[n],
|
|
690
691
|
i[o],
|
|
691
|
-
|
|
692
|
-
), children: /* @__PURE__ */
|
|
692
|
+
a
|
|
693
|
+
), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
|
|
693
694
|
}, xe = ({
|
|
694
695
|
linkActions: t,
|
|
695
696
|
onClick: e,
|
|
696
|
-
activeAction:
|
|
697
|
-
}) => /* @__PURE__ */
|
|
698
|
-
const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, m = (typeof s == "function" ? s() : s !== !1) && (!f || f()), p =
|
|
699
|
-
return m && /* @__PURE__ */
|
|
697
|
+
activeAction: a
|
|
698
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
699
|
+
const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, m = (typeof s == "function" ? s() : s !== !1) && (!f || f()), p = a === l;
|
|
700
|
+
return m && /* @__PURE__ */ r.jsx(
|
|
700
701
|
b.div,
|
|
701
702
|
{
|
|
702
703
|
initial: { opacity: 0 },
|
|
@@ -707,7 +708,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
707
708
|
ease: "easeOut"
|
|
708
709
|
},
|
|
709
710
|
className: "relative flex justify-center w-full items-center px-3",
|
|
710
|
-
children: /* @__PURE__ */
|
|
711
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
711
712
|
"button",
|
|
712
713
|
{
|
|
713
714
|
onClick: () => {
|
|
@@ -720,7 +721,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
720
721
|
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
721
722
|
),
|
|
722
723
|
children: [
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ r.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ r.jsx(
|
|
724
725
|
b.div,
|
|
725
726
|
{
|
|
726
727
|
layoutId: "nav-active-bg",
|
|
@@ -735,7 +736,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
735
736
|
}
|
|
736
737
|
}
|
|
737
738
|
) }),
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ r.jsxs(
|
|
739
740
|
b.div,
|
|
740
741
|
{
|
|
741
742
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -747,8 +748,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
747
748
|
ease: "easeOut"
|
|
748
749
|
},
|
|
749
750
|
children: [
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
752
|
+
/* @__PURE__ */ r.jsx(
|
|
752
753
|
b.div,
|
|
753
754
|
{
|
|
754
755
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
@@ -768,9 +769,9 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
768
769
|
}) : null
|
|
769
770
|
}
|
|
770
771
|
),
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
772
773
|
] }),
|
|
773
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ r.jsx(L, { count: i, maxCount: 9, className: "" }) : "" })
|
|
774
775
|
]
|
|
775
776
|
}
|
|
776
777
|
)
|
|
@@ -783,12 +784,12 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
783
784
|
}) }), be = ({
|
|
784
785
|
links: t,
|
|
785
786
|
isLinkActive: e,
|
|
786
|
-
onLinkClick:
|
|
787
|
-
}) => /* @__PURE__ */
|
|
787
|
+
onLinkClick: a
|
|
788
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
788
789
|
const { isView: s = !1, viewAccess: l, path: c, title: d, icon: i, count: f, relatedPaths: m } = n, p = (typeof s == "function" ? s() : s !== !1) && (!l || l()), y = e(c) || (m?.some(
|
|
789
790
|
(T) => e(T)
|
|
790
791
|
) ?? !1);
|
|
791
|
-
return p && /* @__PURE__ */
|
|
792
|
+
return p && /* @__PURE__ */ r.jsx(
|
|
792
793
|
b.div,
|
|
793
794
|
{
|
|
794
795
|
initial: { opacity: 0 },
|
|
@@ -799,11 +800,11 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
799
800
|
ease: "easeOut"
|
|
800
801
|
},
|
|
801
802
|
className: "relative flex justify-center w-full items-center px-3",
|
|
802
|
-
children: /* @__PURE__ */
|
|
803
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
803
804
|
"button",
|
|
804
805
|
{
|
|
805
806
|
onClick: () => {
|
|
806
|
-
|
|
807
|
+
a?.(c);
|
|
807
808
|
},
|
|
808
809
|
className: u(
|
|
809
810
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
@@ -812,7 +813,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
812
813
|
y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
813
814
|
),
|
|
814
815
|
children: [
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ r.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ r.jsx(
|
|
816
817
|
b.div,
|
|
817
818
|
{
|
|
818
819
|
layoutId: "nav-active-bg",
|
|
@@ -827,7 +828,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
827
828
|
}
|
|
828
829
|
}
|
|
829
830
|
) }),
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
+
/* @__PURE__ */ r.jsxs(
|
|
831
832
|
b.div,
|
|
832
833
|
{
|
|
833
834
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -839,11 +840,11 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
839
840
|
ease: "easeOut"
|
|
840
841
|
},
|
|
841
842
|
children: [
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
844
|
+
/* @__PURE__ */ r.jsx(
|
|
844
845
|
b.div,
|
|
845
846
|
{
|
|
846
|
-
className: "nav-icon-wrapper flex items-center justify-center
|
|
847
|
+
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
847
848
|
animate: {
|
|
848
849
|
scale: y ? 1.05 : 1
|
|
849
850
|
},
|
|
@@ -860,9 +861,9 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
860
861
|
}) : null
|
|
861
862
|
}
|
|
862
863
|
),
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
864
865
|
] }),
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
|
|
866
867
|
]
|
|
867
868
|
}
|
|
868
869
|
)
|
|
@@ -877,25 +878,25 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
877
878
|
setIsActiveModalNotification: e
|
|
878
879
|
}) => ({ handleNotificationClick: () => {
|
|
879
880
|
e(!0);
|
|
880
|
-
}, isActiveModalNotification: t }),
|
|
881
|
-
const e =
|
|
881
|
+
}, isActiveModalNotification: t }), ge = (t) => {
|
|
882
|
+
const e = g(null);
|
|
882
883
|
return {
|
|
883
884
|
isCollapsed: t,
|
|
884
885
|
navbarRef: e
|
|
885
886
|
};
|
|
886
|
-
},
|
|
887
|
+
}, he = ({
|
|
887
888
|
isCollapsed: t,
|
|
888
889
|
onToggle: e
|
|
889
|
-
}) => /* @__PURE__ */
|
|
890
|
+
}) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
|
|
890
891
|
"button",
|
|
891
892
|
{
|
|
892
893
|
onClick: e,
|
|
893
894
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
894
895
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
895
896
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
896
|
-
children: t ? /* @__PURE__ */
|
|
897
|
+
children: t ? /* @__PURE__ */ r.jsx(w, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(w, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
897
898
|
}
|
|
898
|
-
) }),
|
|
899
|
+
) }), ve = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
|
|
899
900
|
"img",
|
|
900
901
|
{
|
|
901
902
|
src: t,
|
|
@@ -906,16 +907,16 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
906
907
|
function we({
|
|
907
908
|
onFilesAccepted: t,
|
|
908
909
|
onFilesRejected: e,
|
|
909
|
-
...
|
|
910
|
+
...a
|
|
910
911
|
}) {
|
|
911
912
|
const n = A.useCallback(
|
|
912
913
|
(s, l) => {
|
|
913
914
|
s.length > 0 && t?.(s), l.length > 0 && e?.(l);
|
|
914
915
|
},
|
|
915
916
|
[t, e]
|
|
916
|
-
), o =
|
|
917
|
+
), o = D({
|
|
917
918
|
onDrop: n,
|
|
918
|
-
...
|
|
919
|
+
...a
|
|
919
920
|
});
|
|
920
921
|
return {
|
|
921
922
|
...o,
|
|
@@ -923,11 +924,11 @@ function we({
|
|
|
923
924
|
};
|
|
924
925
|
}
|
|
925
926
|
const je = (t, e = !0) => {
|
|
926
|
-
const
|
|
927
|
-
return
|
|
927
|
+
const a = g(null);
|
|
928
|
+
return v(() => {
|
|
928
929
|
if (!e) return;
|
|
929
930
|
const n = (o) => {
|
|
930
|
-
|
|
931
|
+
a.current && !a.current.contains(o.target) && t();
|
|
931
932
|
};
|
|
932
933
|
return document.addEventListener("mousedown", n, {
|
|
933
934
|
capture: !0
|
|
@@ -940,7 +941,7 @@ const je = (t, e = !0) => {
|
|
|
940
941
|
capture: !0
|
|
941
942
|
});
|
|
942
943
|
};
|
|
943
|
-
}, [t, e]),
|
|
944
|
+
}, [t, e]), a;
|
|
944
945
|
};
|
|
945
946
|
export {
|
|
946
947
|
Se as Avatar,
|
|
@@ -950,47 +951,47 @@ export {
|
|
|
950
951
|
Le as ChangueAccount,
|
|
951
952
|
Ae as CheckBox,
|
|
952
953
|
qe as CheckboxFormik,
|
|
953
|
-
|
|
954
|
+
ve as CompanyLogo,
|
|
954
955
|
Nt as DatePicker,
|
|
955
|
-
|
|
956
|
+
Ee as DialogModal,
|
|
956
957
|
Fe as DrawerDesktop,
|
|
957
958
|
$e as DrawerMobile,
|
|
958
|
-
|
|
959
|
-
|
|
959
|
+
gr as DropZone,
|
|
960
|
+
or as FAButton,
|
|
960
961
|
Ve as Header,
|
|
961
|
-
|
|
962
|
+
fr as Icons,
|
|
962
963
|
Zt as Image,
|
|
963
964
|
_t as ImageGallery,
|
|
964
965
|
_e as Input,
|
|
965
966
|
Ze as InputFormik,
|
|
966
|
-
|
|
967
|
+
ir as InputFormikV2,
|
|
967
968
|
Ke as InputMultiple,
|
|
968
969
|
Ut as LayoutGeneric,
|
|
969
970
|
Ye as Logo,
|
|
970
971
|
tt as Menu,
|
|
971
972
|
xe as NavBarActions,
|
|
972
|
-
|
|
973
|
+
he as NavbarCollapseButton,
|
|
973
974
|
be as NavbarLinks,
|
|
974
975
|
pe as NavigationLink,
|
|
975
|
-
|
|
976
|
-
|
|
976
|
+
pr as OtpInput,
|
|
977
|
+
at as Pagination,
|
|
977
978
|
nt as ProfilePictureUpload,
|
|
978
979
|
st as ProgressBar,
|
|
979
|
-
|
|
980
|
-
|
|
980
|
+
ur as RadioButton,
|
|
981
|
+
lr as RadioButtonFormik,
|
|
981
982
|
de as SecondaryBar,
|
|
982
983
|
$t as SegmentedButton,
|
|
983
984
|
ct as Select,
|
|
984
985
|
mt as SelectFormik,
|
|
985
986
|
dt as SelectFormikLegacy,
|
|
986
|
-
|
|
987
|
+
rr as SelectSearch,
|
|
987
988
|
me as Sidebar,
|
|
988
989
|
M as SidebarProvider,
|
|
989
990
|
Vt as SidebarRefProvider,
|
|
990
991
|
Ht as Skeleton,
|
|
991
992
|
xt as Spinner,
|
|
992
993
|
yt as Steps,
|
|
993
|
-
|
|
994
|
+
ht as SwipeContainer,
|
|
994
995
|
wt as Switch,
|
|
995
996
|
qt as TabLinks,
|
|
996
997
|
St as Table,
|
|
@@ -1001,19 +1002,19 @@ export {
|
|
|
1001
1002
|
Lt as TableHead,
|
|
1002
1003
|
Tt as TableHeader,
|
|
1003
1004
|
At as TableRow,
|
|
1004
|
-
|
|
1005
|
+
Et as TextArea,
|
|
1005
1006
|
Kt as Toast,
|
|
1006
|
-
|
|
1007
|
+
er as ToastProvider,
|
|
1007
1008
|
Ot as Tooltip,
|
|
1008
1009
|
Qt as toastpyrion,
|
|
1009
1010
|
ye as useActionsNavbar,
|
|
1010
1011
|
je as useClickOutside,
|
|
1011
|
-
|
|
1012
|
+
De as useDialogControl,
|
|
1012
1013
|
He as useDrawerDesktop,
|
|
1013
1014
|
Me as useDrawerMobile,
|
|
1014
1015
|
we as useFileDropzone,
|
|
1015
|
-
|
|
1016
|
-
|
|
1016
|
+
br as useIsMobile,
|
|
1017
|
+
ge as useNavbarCollapse,
|
|
1017
1018
|
fe as useSidebar,
|
|
1018
1019
|
k as useSidebarContext
|
|
1019
1020
|
};
|