prometeo-design-system 2.8.9 → 2.9.2
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/{CardProfile-CsytJlKZ.js → CardProfile-WHoeSibd.js} +8 -8
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +4 -4
- package/dist/DatePicker.es.js +62 -62
- package/dist/DrawerDesktop.es.js +1 -1
- package/dist/DropZone.es.js +5 -5
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-g_xuKWzK.js → HelperComponent-BeNlTMqI.js} +7 -7
- package/dist/Icons/Icons.d.ts +1 -1
- package/dist/Icons.d.ts +0 -4
- package/dist/Icons.es.js +1119 -3
- package/dist/{ImageGallery-Ckxg9OIC.js → ImageGallery-WKzUevOQ.js} +34 -34
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-Cck37DpG.js → Input-Bdiozi8s.js} +11 -11
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +34 -34
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +43 -43
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-BD5FTxVw.js → Select-L7JCe1-i.js} +3 -3
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/Toast.es.js +22 -22
- package/dist/Tooltip.es.js +1 -1
- package/dist/exports/Icons.d.ts +1 -2
- package/dist/index.d.ts +1 -0
- package/dist/prometeo-design-system.es.js +190 -131
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/package.json +2 -2
- package/src/styles/app.css +1 -1313
- package/src/styles/base.css +8 -0
- package/dist/Icons-DtFC5DJ7.js +0 -1079
- package/dist/prometeo-design-system.css +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
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
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as qe, useDialogControl as
|
|
6
|
-
import { default as
|
|
7
|
-
import { I as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
3
|
+
import { C as Re, a as Ae } from "./CardProfile-WHoeSibd.js";
|
|
4
|
+
import { default as Te } from "./CheckBox.es.js";
|
|
5
|
+
import { default as qe, useDialogControl as Ee } from "./DialogModal.es.js";
|
|
6
|
+
import { default as Fe } from "./Header.es.js";
|
|
7
|
+
import { I as De } from "./Input-Bdiozi8s.js";
|
|
8
|
+
import { default as Ue } from "./InputMultiple.es.js";
|
|
9
|
+
import { default as $e } from "./Logo.es.js";
|
|
10
|
+
import { default as Ve } from "./Menu.es.js";
|
|
11
11
|
import { default as _e } from "./Pagination.es.js";
|
|
12
12
|
import { default as Ze } from "./ProfilePictureUpload.es.js";
|
|
13
13
|
import { default as Ke } from "./ProgressBar.es.js";
|
|
14
|
-
import { S as Ye } from "./Select-
|
|
14
|
+
import { S as Ye } from "./Select-L7JCe1-i.js";
|
|
15
15
|
import { default as tt } from "./Spinner.es.js";
|
|
16
16
|
import { default as rt } from "./Steps.es.js";
|
|
17
17
|
import { default as nt } from "./SwipeContainer.es.js";
|
|
18
|
-
import { default as
|
|
18
|
+
import { default as st } from "./Switch.es.js";
|
|
19
19
|
import { default as ct } from "./DatePicker.es.js";
|
|
20
|
-
import { Table as dt, TableBody as ft, TableCaption as mt, TableCell as pt, TableFooter as xt, TableHead as bt, TableHeader as yt, TableRow as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
20
|
+
import { Table as dt, TableBody as ft, TableCaption as mt, TableCell as pt, TableFooter as xt, TableHead as bt, TableHeader as yt, TableRow as ht } from "./Table.es.js";
|
|
21
|
+
import { default as vt } from "./TabLinks.es.js";
|
|
22
|
+
import { default as Ct } from "./TextArea.es.js";
|
|
23
|
+
import { default as Nt } from "./Tooltip.es.js";
|
|
24
24
|
import { default as kt } from "./Skeleton.es.js";
|
|
25
25
|
import { default as Bt } from "./SegmentedButton.es.js";
|
|
26
26
|
import { u as k } from "./LayoutGeneric-CbaoatQB.js";
|
|
27
|
-
import { L as
|
|
28
|
-
import { I as Pt } from "./ImageGallery-
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
27
|
+
import { L as At, S as Lt } from "./LayoutGeneric-CbaoatQB.js";
|
|
28
|
+
import { I as Pt } from "./ImageGallery-WKzUevOQ.js";
|
|
29
|
+
import { default as Et } from "./Image.es.js";
|
|
30
|
+
import { default as Ft, toastpyrion as Ot } from "./Toast.es.js";
|
|
31
|
+
import { default as Ht } from "./ToastProvider.es.js";
|
|
32
|
+
import { default as Wt } from "./SelectSearch.es.js";
|
|
33
|
+
import { default as Mt } from "./FAButton.es.js";
|
|
34
|
+
import { default as Gt } from "./RadioButton.es.js";
|
|
35
35
|
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
36
36
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
37
|
-
import
|
|
37
|
+
import T, { useRef as h, useState as g, useLayoutEffect as P, createContext as q, useContext as E, forwardRef as N, useEffect as v, useCallback as z } from "react";
|
|
38
38
|
import { useGSAP as I } from "@gsap/react";
|
|
39
39
|
import x from "gsap";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
40
|
+
import { CloseNavBarDesktop as w } from "./Icons.es.js";
|
|
41
|
+
import { AccountCircle as Xt, Add as Zt, ArrowLeft as Jt, ArrowUpDown as Kt, AttachFile as Qt, Boards as Yt, Calendar as ea, Cancel as ta, Check as aa, CheckCircle as ra, CheckList as oa, ChevronDown as na, Clock as ia, Close as sa, Collapse as la, Company as ca, Copy as ua, CrevronLeft as da, CrevronRight as fa, DocumentFill as ma, Download as pa, Edit as xa, EditFill as ba, Email as ya, Error as ha, EyeVisibility as ga, EyeVisibilityOff as va, FaLock as wa, FastForward as Ca, File as ja, Filter as Na, FormatColorText as Sa, Help as ka, HistoryActivity as Ia, Home as Ba, Icons as Ra, Info as Aa, Logout as La, MessageSquare as Ta, MessageSquareFill as Pa, MoreVert as qa, Notifications as Ea, Pause as za, Reload as Fa, Search as Oa, Settings as Da, Shared as Ha, Sort as Ua, Stars as Wa, Ticket as $a, TicketFilled as Ma, Trash as Va, TrashFill as Ga, Upload as _a, UploadCloud as Xa, UserAdd as Za, UserAddFill as Ja, UserPerson as Ka, WhatsApp as Qa } from "./Icons.es.js";
|
|
42
42
|
import { motion as b, AnimatePresence as B } from "framer-motion";
|
|
43
|
-
import { default as
|
|
44
|
-
import { useDropzone as
|
|
45
|
-
import { useIsMobile as
|
|
46
|
-
import { default as
|
|
47
|
-
const
|
|
43
|
+
import { default as er } from "./OtpInput.es.js";
|
|
44
|
+
import { useDropzone as F } from "react-dropzone";
|
|
45
|
+
import { useIsMobile as ar } from "./useDevice.es.js";
|
|
46
|
+
import { default as or } from "./DropZone.es.js";
|
|
47
|
+
const O = (t, e) => {
|
|
48
48
|
I(
|
|
49
49
|
() => {
|
|
50
50
|
if (!t.current) return;
|
|
@@ -103,19 +103,19 @@ const D = (t, e) => {
|
|
|
103
103
|
className: r = "",
|
|
104
104
|
width: n = "w-96",
|
|
105
105
|
action: o,
|
|
106
|
-
primarySidebarCollapsed:
|
|
106
|
+
primarySidebarCollapsed: s,
|
|
107
107
|
onClose: l
|
|
108
108
|
}) => {
|
|
109
|
-
const c =
|
|
109
|
+
const c = h(null), [d, i] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
|
|
110
110
|
return P(() => {
|
|
111
111
|
if (f?.current && m?.current) {
|
|
112
112
|
const p = f.current.getBoundingClientRect();
|
|
113
|
-
|
|
113
|
+
i({
|
|
114
114
|
left: p.width + m.current.offsetWidth,
|
|
115
115
|
width: p.width
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
}, [f, e,
|
|
118
|
+
}, [f, e, s, m]), O(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
119
119
|
/* @__PURE__ */ a.jsx(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
@@ -144,30 +144,30 @@ const D = (t, e) => {
|
|
|
144
144
|
}
|
|
145
145
|
)
|
|
146
146
|
] }) });
|
|
147
|
-
},
|
|
147
|
+
}, D = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), U = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), W = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(S, {
|
|
148
148
|
Root: S,
|
|
149
|
-
Header:
|
|
150
|
-
Content:
|
|
151
|
-
Footer:
|
|
152
|
-
Spacer:
|
|
149
|
+
Header: D,
|
|
150
|
+
Content: H,
|
|
151
|
+
Footer: U,
|
|
152
|
+
Spacer: W
|
|
153
153
|
}), R = q(
|
|
154
154
|
void 0
|
|
155
155
|
), fe = () => {
|
|
156
|
-
const t =
|
|
156
|
+
const t = E(R);
|
|
157
157
|
if (!t)
|
|
158
158
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
159
159
|
return t;
|
|
160
|
-
},
|
|
160
|
+
}, $ = ({
|
|
161
161
|
children: t
|
|
162
162
|
}) => {
|
|
163
|
-
const [e, r] =
|
|
163
|
+
const [e, r] = g(!1), [n, o] = g(!1), s = h(null), l = () => {
|
|
164
164
|
r(!1), o(!1);
|
|
165
165
|
}, c = () => {
|
|
166
166
|
r(!0), o(!1);
|
|
167
167
|
}, p = {
|
|
168
168
|
isCollapsed: e,
|
|
169
169
|
setIsCollapsed: r,
|
|
170
|
-
navbarRef:
|
|
170
|
+
navbarRef: s,
|
|
171
171
|
toggleCollapse: () => {
|
|
172
172
|
e ? l() : c();
|
|
173
173
|
},
|
|
@@ -183,7 +183,7 @@ const D = (t, e) => {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
return /* @__PURE__ */ a.jsx(R.Provider, { value: p, children: t });
|
|
186
|
-
},
|
|
186
|
+
}, C = (t, e, r, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, n) : t, M = (t, e, r) => {
|
|
187
187
|
I(
|
|
188
188
|
() => {
|
|
189
189
|
if (!t.current) return;
|
|
@@ -225,11 +225,11 @@ const D = (t, e) => {
|
|
|
225
225
|
secondaryBarContent: x.utils.toArray(".secondary-bar *"),
|
|
226
226
|
badgeInLink: x.utils.toArray(".badge-in-link")
|
|
227
227
|
};
|
|
228
|
-
e ?
|
|
228
|
+
e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
|
|
229
229
|
},
|
|
230
230
|
{ scope: t, dependencies: [e, r] }
|
|
231
231
|
);
|
|
232
|
-
},
|
|
232
|
+
}, V = (t, e) => {
|
|
233
233
|
t.to(e.navbar, {
|
|
234
234
|
width: "5rem",
|
|
235
235
|
duration: 0.2,
|
|
@@ -288,7 +288,7 @@ const D = (t, e) => {
|
|
|
288
288
|
marginLeft: 0
|
|
289
289
|
},
|
|
290
290
|
0
|
|
291
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
291
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), C(
|
|
292
292
|
t,
|
|
293
293
|
e.buttonCrevron,
|
|
294
294
|
{
|
|
@@ -301,7 +301,7 @@ const D = (t, e) => {
|
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
303
|
0
|
|
304
|
-
),
|
|
304
|
+
), C(
|
|
305
305
|
t,
|
|
306
306
|
e.buttonContentChevron,
|
|
307
307
|
{
|
|
@@ -368,7 +368,7 @@ const D = (t, e) => {
|
|
|
368
368
|
},
|
|
369
369
|
-1
|
|
370
370
|
);
|
|
371
|
-
},
|
|
371
|
+
}, G = (t, e) => {
|
|
372
372
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
373
373
|
e.navLinkItems,
|
|
374
374
|
{
|
|
@@ -378,7 +378,7 @@ const D = (t, e) => {
|
|
|
378
378
|
justifyContent: "flex-start"
|
|
379
379
|
},
|
|
380
380
|
-1
|
|
381
|
-
),
|
|
381
|
+
), C(
|
|
382
382
|
t,
|
|
383
383
|
e.buttonCrevron,
|
|
384
384
|
{
|
|
@@ -391,7 +391,7 @@ const D = (t, e) => {
|
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
393
|
0
|
|
394
|
-
),
|
|
394
|
+
), C(
|
|
395
395
|
t,
|
|
396
396
|
e.buttonContentChevron,
|
|
397
397
|
{
|
|
@@ -503,12 +503,12 @@ const D = (t, e) => {
|
|
|
503
503
|
duration: 0.3,
|
|
504
504
|
ease: "power2.in"
|
|
505
505
|
});
|
|
506
|
-
}, X =
|
|
507
|
-
const [r, n] =
|
|
508
|
-
|
|
506
|
+
}, X = N((t, e) => {
|
|
507
|
+
const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
508
|
+
v(() => {
|
|
509
509
|
o.current?.style.setProperty("--tab-bg", c);
|
|
510
510
|
}, [c]);
|
|
511
|
-
const d =
|
|
511
|
+
const d = s.find((i) => i.name === (t?.currentTabName || r));
|
|
512
512
|
return /* @__PURE__ */ a.jsx(
|
|
513
513
|
"div",
|
|
514
514
|
{
|
|
@@ -520,10 +520,10 @@ const D = (t, e) => {
|
|
|
520
520
|
" border-r border-neutral-default-default",
|
|
521
521
|
l
|
|
522
522
|
),
|
|
523
|
-
children:
|
|
524
|
-
(
|
|
525
|
-
const f =
|
|
526
|
-
|
|
523
|
+
children: s.map(
|
|
524
|
+
(i) => {
|
|
525
|
+
const f = i.name === d?.name, m = typeof i.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, p = () => {
|
|
526
|
+
i.disabled || (n(i.name), i.onClick && i.onClick(i.name));
|
|
527
527
|
};
|
|
528
528
|
return /* @__PURE__ */ a.jsx(
|
|
529
529
|
"div",
|
|
@@ -543,25 +543,25 @@ const D = (t, e) => {
|
|
|
543
543
|
"grid place-items-center",
|
|
544
544
|
"tab-thumbnail-icon",
|
|
545
545
|
"bg-transparent text-neutral-default-default",
|
|
546
|
-
|
|
546
|
+
i?.className
|
|
547
547
|
), children: m })
|
|
548
548
|
},
|
|
549
|
-
|
|
549
|
+
i.name
|
|
550
550
|
);
|
|
551
551
|
}
|
|
552
552
|
)
|
|
553
553
|
}
|
|
554
554
|
);
|
|
555
|
-
}), Z =
|
|
556
|
-
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o },
|
|
557
|
-
const l =
|
|
558
|
-
l.current = m, typeof
|
|
559
|
-
}, [
|
|
560
|
-
return
|
|
555
|
+
}), Z = N(
|
|
556
|
+
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, s) => {
|
|
557
|
+
const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = z((m) => {
|
|
558
|
+
l.current = m, typeof s == "function" ? s(m) : s && (s.current = m);
|
|
559
|
+
}, [s]);
|
|
560
|
+
return v(() => {
|
|
561
561
|
l.current && d(l);
|
|
562
|
-
}, [d]),
|
|
563
|
-
c.current &&
|
|
564
|
-
}, [
|
|
562
|
+
}, [d]), v(() => {
|
|
563
|
+
c.current && i(c);
|
|
564
|
+
}, [i]), M(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
565
565
|
"div",
|
|
566
566
|
{
|
|
567
567
|
className: u(
|
|
@@ -590,10 +590,10 @@ const D = (t, e) => {
|
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
|
-
),
|
|
594
|
-
(t, e) => /* @__PURE__ */ a.jsx(
|
|
593
|
+
), j = N(
|
|
594
|
+
(t, e) => /* @__PURE__ */ a.jsx($, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
|
|
595
595
|
);
|
|
596
|
-
|
|
596
|
+
j.displayName = "SidebarRoot";
|
|
597
597
|
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
|
|
598
598
|
"button",
|
|
599
599
|
{
|
|
@@ -618,8 +618,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
|
|
621
|
-
}, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(
|
|
622
|
-
Root:
|
|
621
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(j, {
|
|
622
|
+
Root: j,
|
|
623
623
|
CollapseButton: J,
|
|
624
624
|
Header: K,
|
|
625
625
|
Divider: Q,
|
|
@@ -632,7 +632,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
632
632
|
label: r,
|
|
633
633
|
href: n,
|
|
634
634
|
onClick: o,
|
|
635
|
-
isActive:
|
|
635
|
+
isActive: s = !1,
|
|
636
636
|
className: l
|
|
637
637
|
}) => {
|
|
638
638
|
const c = n ? "a" : "button";
|
|
@@ -646,7 +646,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
646
646
|
"flex items-center w-full px-3 py-2 text-left",
|
|
647
647
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
648
648
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
649
|
-
|
|
649
|
+
s && "bg-neutral-medium-default",
|
|
650
650
|
l
|
|
651
651
|
),
|
|
652
652
|
children: [
|
|
@@ -656,21 +656,21 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
656
656
|
]
|
|
657
657
|
}
|
|
658
658
|
);
|
|
659
|
-
},
|
|
659
|
+
}, A = ({
|
|
660
660
|
count: t,
|
|
661
661
|
maxCount: e = 9,
|
|
662
662
|
className: r = "",
|
|
663
663
|
size: n = "medium",
|
|
664
664
|
variant: o = "primary",
|
|
665
|
-
showZero:
|
|
665
|
+
showZero: s = !1
|
|
666
666
|
}) => {
|
|
667
667
|
const l = t, c = l > e ? `+${e}` : l;
|
|
668
|
-
if (l === 0 && !
|
|
668
|
+
if (l === 0 && !s) return null;
|
|
669
669
|
const d = {
|
|
670
670
|
small: "w-4.5 h-4.5 text-xs ",
|
|
671
671
|
medium: "w-5 h-5 text-xs",
|
|
672
672
|
large: "w-6 h-6 text-sm"
|
|
673
|
-
},
|
|
673
|
+
}, i = {
|
|
674
674
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
675
675
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
676
676
|
success: "bg-green-500 text-white",
|
|
@@ -680,7 +680,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
680
680
|
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
681
681
|
"rounded-full flex items-center justify-center font-medium ",
|
|
682
682
|
d[n],
|
|
683
|
-
|
|
683
|
+
i[o],
|
|
684
684
|
r
|
|
685
685
|
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
686
686
|
}, xe = ({
|
|
@@ -688,7 +688,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
688
688
|
onClick: e,
|
|
689
689
|
activeAction: r
|
|
690
690
|
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
691
|
-
const { isView:
|
|
691
|
+
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 = r === l;
|
|
692
692
|
return m && /* @__PURE__ */ a.jsx(
|
|
693
693
|
b.div,
|
|
694
694
|
{
|
|
@@ -763,7 +763,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
763
763
|
),
|
|
764
764
|
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
765
765
|
] }),
|
|
766
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
766
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ a.jsx(A, { count: i, maxCount: 9, className: "" }) : "" })
|
|
767
767
|
]
|
|
768
768
|
}
|
|
769
769
|
)
|
|
@@ -778,8 +778,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
778
778
|
isLinkActive: e,
|
|
779
779
|
onLinkClick: r
|
|
780
780
|
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
781
|
-
const { isView:
|
|
782
|
-
(
|
|
781
|
+
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(
|
|
782
|
+
(L) => e(L)
|
|
783
783
|
) ?? !1);
|
|
784
784
|
return p && /* @__PURE__ */ a.jsx(
|
|
785
785
|
b.div,
|
|
@@ -844,7 +844,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
844
844
|
duration: 0.25,
|
|
845
845
|
ease: "easeOut"
|
|
846
846
|
},
|
|
847
|
-
children: typeof
|
|
847
|
+
children: typeof i == "function" ? i({
|
|
848
848
|
size: 24,
|
|
849
849
|
className: u(
|
|
850
850
|
"nav-icon transition-colors duration-250 ease-out",
|
|
@@ -855,7 +855,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
855
855
|
),
|
|
856
856
|
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
857
857
|
] }),
|
|
858
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(
|
|
858
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(A, { count: f, maxCount: 9, className: "" }) : "" })
|
|
859
859
|
]
|
|
860
860
|
}
|
|
861
861
|
)
|
|
@@ -870,13 +870,13 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
870
870
|
setIsActiveModalNotification: e
|
|
871
871
|
}) => ({ handleNotificationClick: () => {
|
|
872
872
|
e(!0);
|
|
873
|
-
}, isActiveModalNotification: t }),
|
|
874
|
-
const e =
|
|
873
|
+
}, isActiveModalNotification: t }), he = (t) => {
|
|
874
|
+
const e = h(null);
|
|
875
875
|
return {
|
|
876
876
|
isCollapsed: t,
|
|
877
877
|
navbarRef: e
|
|
878
878
|
};
|
|
879
|
-
},
|
|
879
|
+
}, ge = ({
|
|
880
880
|
isCollapsed: t,
|
|
881
881
|
onToggle: e
|
|
882
882
|
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
@@ -888,7 +888,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
888
888
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
889
889
|
children: t ? /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
890
890
|
}
|
|
891
|
-
) }),
|
|
891
|
+
) }), ve = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
892
892
|
"img",
|
|
893
893
|
{
|
|
894
894
|
src: t,
|
|
@@ -901,12 +901,12 @@ function we({
|
|
|
901
901
|
onFilesRejected: e,
|
|
902
902
|
...r
|
|
903
903
|
}) {
|
|
904
|
-
const n =
|
|
905
|
-
(
|
|
906
|
-
|
|
904
|
+
const n = T.useCallback(
|
|
905
|
+
(s, l) => {
|
|
906
|
+
s.length > 0 && t?.(s), l.length > 0 && e?.(l);
|
|
907
907
|
},
|
|
908
908
|
[t, e]
|
|
909
|
-
), o =
|
|
909
|
+
), o = F({
|
|
910
910
|
onDrop: n,
|
|
911
911
|
...r
|
|
912
912
|
});
|
|
@@ -915,9 +915,9 @@ function we({
|
|
|
915
915
|
hasErrors: o.fileRejections.length > 0
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
const
|
|
919
|
-
const r =
|
|
920
|
-
return
|
|
918
|
+
const Ce = (t, e = !0) => {
|
|
919
|
+
const r = h(null);
|
|
920
|
+
return v(() => {
|
|
921
921
|
if (!e) return;
|
|
922
922
|
const n = (o) => {
|
|
923
923
|
r.current && !r.current.contains(o.target) && t();
|
|
@@ -936,48 +936,97 @@ const je = (t, e = !0) => {
|
|
|
936
936
|
}, [t, e]), r;
|
|
937
937
|
};
|
|
938
938
|
export {
|
|
939
|
+
Xt as AccountCircle,
|
|
940
|
+
Zt as Add,
|
|
941
|
+
Jt as ArrowLeft,
|
|
942
|
+
Kt as ArrowUpDown,
|
|
943
|
+
Qt as AttachFile,
|
|
939
944
|
Se as Avatar,
|
|
940
|
-
|
|
945
|
+
A as Badge,
|
|
946
|
+
Yt as Boards,
|
|
941
947
|
Ie as Button,
|
|
948
|
+
ea as Calendar,
|
|
949
|
+
ta as Cancel,
|
|
942
950
|
Re as CardProfile,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
951
|
+
Ae as ChangueAccount,
|
|
952
|
+
aa as Check,
|
|
953
|
+
Te as CheckBox,
|
|
954
|
+
ra as CheckCircle,
|
|
955
|
+
oa as CheckList,
|
|
956
|
+
na as ChevronDown,
|
|
957
|
+
ia as Clock,
|
|
958
|
+
sa as Close,
|
|
959
|
+
w as CloseNavBarDesktop,
|
|
960
|
+
la as Collapse,
|
|
961
|
+
ca as Company,
|
|
962
|
+
ve as CompanyLogo,
|
|
963
|
+
ua as Copy,
|
|
964
|
+
da as CrevronLeft,
|
|
965
|
+
fa as CrevronRight,
|
|
946
966
|
ct as DatePicker,
|
|
947
967
|
qe as DialogModal,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
968
|
+
ma as DocumentFill,
|
|
969
|
+
pa as Download,
|
|
970
|
+
or as DropZone,
|
|
971
|
+
xa as Edit,
|
|
972
|
+
ba as EditFill,
|
|
973
|
+
ya as Email,
|
|
974
|
+
ha as Error,
|
|
975
|
+
ga as EyeVisibility,
|
|
976
|
+
va as EyeVisibilityOff,
|
|
977
|
+
Mt as FAButton,
|
|
978
|
+
wa as FaLock,
|
|
979
|
+
Ca as FastForward,
|
|
980
|
+
ja as File,
|
|
981
|
+
Na as Filter,
|
|
982
|
+
Sa as FormatColorText,
|
|
983
|
+
Fe as Header,
|
|
984
|
+
ka as Help,
|
|
985
|
+
Ia as HistoryActivity,
|
|
986
|
+
Ba as Home,
|
|
987
|
+
Ra as Icons,
|
|
988
|
+
Et as Image,
|
|
953
989
|
Pt as ImageGallery,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
990
|
+
Aa as Info,
|
|
991
|
+
De as Input,
|
|
992
|
+
Ue as InputMultiple,
|
|
993
|
+
At as LayoutGeneric,
|
|
994
|
+
$e as Logo,
|
|
995
|
+
La as Logout,
|
|
996
|
+
Ve as Menu,
|
|
997
|
+
Ta as MessageSquare,
|
|
998
|
+
Pa as MessageSquareFill,
|
|
999
|
+
qa as MoreVert,
|
|
959
1000
|
xe as NavBarActions,
|
|
960
|
-
|
|
1001
|
+
ge as NavbarCollapseButton,
|
|
961
1002
|
be as NavbarLinks,
|
|
962
1003
|
pe as NavigationLink,
|
|
963
|
-
|
|
1004
|
+
Ea as Notifications,
|
|
1005
|
+
er as OtpInput,
|
|
964
1006
|
_e as Pagination,
|
|
1007
|
+
za as Pause,
|
|
965
1008
|
Ze as ProfilePictureUpload,
|
|
966
1009
|
Ke as ProgressBar,
|
|
967
|
-
|
|
1010
|
+
Gt as RadioButton,
|
|
1011
|
+
Fa as Reload,
|
|
1012
|
+
Oa as Search,
|
|
968
1013
|
de as SecondaryBar,
|
|
969
1014
|
Bt as SegmentedButton,
|
|
970
1015
|
Ye as Select,
|
|
971
|
-
|
|
1016
|
+
Wt as SelectSearch,
|
|
1017
|
+
Da as Settings,
|
|
1018
|
+
Ha as Shared,
|
|
972
1019
|
me as Sidebar,
|
|
973
|
-
|
|
974
|
-
|
|
1020
|
+
$ as SidebarProvider,
|
|
1021
|
+
Lt as SidebarRefProvider,
|
|
975
1022
|
kt as Skeleton,
|
|
1023
|
+
Ua as Sort,
|
|
976
1024
|
tt as Spinner,
|
|
1025
|
+
Wa as Stars,
|
|
977
1026
|
rt as Steps,
|
|
978
1027
|
nt as SwipeContainer,
|
|
979
|
-
|
|
980
|
-
|
|
1028
|
+
st as Switch,
|
|
1029
|
+
vt as TabLinks,
|
|
981
1030
|
dt as Table,
|
|
982
1031
|
ft as TableBody,
|
|
983
1032
|
mt as TableCaption,
|
|
@@ -985,18 +1034,28 @@ export {
|
|
|
985
1034
|
xt as TableFooter,
|
|
986
1035
|
bt as TableHead,
|
|
987
1036
|
yt as TableHeader,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1037
|
+
ht as TableRow,
|
|
1038
|
+
Ct as TextArea,
|
|
1039
|
+
$a as Ticket,
|
|
1040
|
+
Ma as TicketFilled,
|
|
1041
|
+
Ft as Toast,
|
|
1042
|
+
Ht as ToastProvider,
|
|
1043
|
+
Nt as Tooltip,
|
|
1044
|
+
Va as Trash,
|
|
1045
|
+
Ga as TrashFill,
|
|
1046
|
+
_a as Upload,
|
|
1047
|
+
Xa as UploadCloud,
|
|
1048
|
+
Za as UserAdd,
|
|
1049
|
+
Ja as UserAddFill,
|
|
1050
|
+
Ka as UserPerson,
|
|
1051
|
+
Qa as WhatsApp,
|
|
1052
|
+
Ot as toastpyrion,
|
|
994
1053
|
ye as useActionsNavbar,
|
|
995
|
-
|
|
996
|
-
|
|
1054
|
+
Ce as useClickOutside,
|
|
1055
|
+
Ee as useDialogControl,
|
|
997
1056
|
we as useFileDropzone,
|
|
998
|
-
|
|
999
|
-
|
|
1057
|
+
ar as useIsMobile,
|
|
1058
|
+
he as useNavbarCollapse,
|
|
1000
1059
|
fe as useSidebar,
|
|
1001
1060
|
k as useSidebarContext
|
|
1002
1061
|
};
|