prometeo-design-system 3.0.1 → 3.0.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/{CardProfile-WHoeSibd.js → CardProfile-DUBuThnz.js} +12 -12
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +4 -4
- package/dist/{DatePicker-CbXUUnv7.js → DatePicker-CzpFYO6L.js} +2 -2
- package/dist/DatePicker.es.js +1 -1
- package/dist/DrawerDesktop.es.js +1 -1
- package/dist/DropZone.es.js +5 -5
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-BeNlTMqI.js → HelperComponent-E_C-E8Iu.js} +7 -7
- package/dist/Icons/Home.d.ts +2 -0
- package/dist/Icons/Home.es.js +7 -0
- package/dist/Icons-BJgYCS_W.js +979 -0
- package/dist/Icons.es.js +5 -976
- package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-DqUwjAKn.js} +34 -34
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-Cf8P1QJv.js → Input-ZXkhyFlL.js} +2 -2
- 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/RecurrentDatePicker.es.js +4 -4
- package/dist/RecurrentDatePickerRRule.es.js +1 -1
- package/dist/{Select-DeKi15Iu.js → Select-DgUVs2c6.js} +45 -45
- 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 +4 -1
- package/dist/prometeo-design-system.es.js +45 -45
- package/package.json +5 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { default as Se } from "./Avatar.es.js";
|
|
2
2
|
import { default as Ie } from "./Button.es.js";
|
|
3
|
-
import { C as Be, a as Ae } from "./CardProfile-
|
|
3
|
+
import { C as Be, a as Ae } from "./CardProfile-DUBuThnz.js";
|
|
4
4
|
import { default as Te } from "./CheckBox.es.js";
|
|
5
5
|
import { default as qe, useDialogControl as De } from "./DialogModal.es.js";
|
|
6
6
|
import { default as ze, useDrawerDesktop as Fe } from "./DrawerDesktop.es.js";
|
|
7
7
|
import { default as He, useDrawerMobile as Ue } from "./DrawerMobile.es.js";
|
|
8
8
|
import { default as Me } from "./Header.es.js";
|
|
9
|
-
import { I as Ve } from "./Input-
|
|
9
|
+
import { I as Ve } from "./Input-ZXkhyFlL.js";
|
|
10
10
|
import { default as _e } from "./InputMultiple.es.js";
|
|
11
11
|
import { default as Ze } from "./Logo.es.js";
|
|
12
12
|
import { default as Ke } from "./Menu.es.js";
|
|
13
13
|
import { default as Ye } from "./Pagination.es.js";
|
|
14
14
|
import { default as tt } from "./ProfilePictureUpload.es.js";
|
|
15
15
|
import { default as rt } from "./ProgressBar.es.js";
|
|
16
|
-
import { S as nt } from "./Select-
|
|
17
|
-
import { default as
|
|
16
|
+
import { S as nt } from "./Select-DgUVs2c6.js";
|
|
17
|
+
import { default as it } from "./Spinner.es.js";
|
|
18
18
|
import { default as ct } from "./Steps.es.js";
|
|
19
19
|
import { default as dt } from "./SwipeContainer.es.js";
|
|
20
20
|
import { default as pt } from "./Switch.es.js";
|
|
21
|
-
import { D as xt } from "./DatePicker-
|
|
21
|
+
import { D as xt } from "./DatePicker-CzpFYO6L.js";
|
|
22
22
|
import { RecurrentDatePicker as yt } from "./RecurrentDatePicker.es.js";
|
|
23
23
|
import { RecurrentDatePickerRRule as gt } from "./RecurrentDatePickerRRule.es.js";
|
|
24
24
|
import { Table as wt, TableBody as Ct, TableCaption as jt, TableCell as Nt, TableFooter as St, TableHead as kt, TableHeader as It, TableRow as Rt } from "./Table.es.js";
|
|
@@ -29,7 +29,7 @@ import { default as Et } from "./Skeleton.es.js";
|
|
|
29
29
|
import { default as Ft } from "./SegmentedButton.es.js";
|
|
30
30
|
import { u as k } from "./LayoutGeneric-CbaoatQB.js";
|
|
31
31
|
import { L as Ht, S as Ut } from "./LayoutGeneric-CbaoatQB.js";
|
|
32
|
-
import { I as Mt } from "./ImageGallery-
|
|
32
|
+
import { I as Mt } from "./ImageGallery-DqUwjAKn.js";
|
|
33
33
|
import { default as Vt } from "./Image.es.js";
|
|
34
34
|
import { default as _t, toastpyrion as Xt } from "./Toast.es.js";
|
|
35
35
|
import { default as Jt } from "./ToastProvider.es.js";
|
|
@@ -41,8 +41,8 @@ import { c as u } from "./cn-B6yFEsav.js";
|
|
|
41
41
|
import T, { useRef as h, useState as g, useLayoutEffect as P, createContext as q, useContext as D, forwardRef as N, useEffect as v, useCallback as E } from "react";
|
|
42
42
|
import { useGSAP as I } from "@gsap/react";
|
|
43
43
|
import x from "gsap";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
44
|
+
import { d as w } from "./Icons-BJgYCS_W.js";
|
|
45
|
+
import { r as oa, m as na, A as sa, j as ia, t as la, B as ca, i as ua, O as da, C as fa, Q as pa, V as ma, g as xa, D as ba, a as ya, h as ha, a0 as ga, p as va, b as wa, c as Ca, $ as ja, Z as Na, n as Sa, a1 as ka, Y as Ia, E as Ra, w as Ba, x as Aa, q as La, G as Ta, X as Pa, F as qa, R as Da, e as Ea, u as za, H as Fa, I as Oa, L as Ha, v as Ua, a3 as Wa, M as Ma, N as $a, P as Va, _ as Ga, k as _a, S as Xa, f as Za, K as Ja, l as Ka, T as Qa, y as Ya, J as er, a2 as tr, o as ar, z as rr, s as or, a4 as nr, U as sr, W as ir } from "./Icons-BJgYCS_W.js";
|
|
46
46
|
import { motion as b, AnimatePresence as R } from "framer-motion";
|
|
47
47
|
import { default as cr } from "./OtpInput.es.js";
|
|
48
48
|
import { useDropzone as z } from "react-dropzone";
|
|
@@ -107,19 +107,19 @@ const F = (t, e) => {
|
|
|
107
107
|
className: r = "",
|
|
108
108
|
width: n = "w-96",
|
|
109
109
|
action: o,
|
|
110
|
-
primarySidebarCollapsed:
|
|
110
|
+
primarySidebarCollapsed: i,
|
|
111
111
|
onClose: l
|
|
112
112
|
}) => {
|
|
113
|
-
const c = h(null), [d,
|
|
113
|
+
const c = h(null), [d, s] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: p } = k();
|
|
114
114
|
return P(() => {
|
|
115
115
|
if (f?.current && p?.current) {
|
|
116
116
|
const m = f.current.getBoundingClientRect();
|
|
117
|
-
|
|
117
|
+
s({
|
|
118
118
|
left: m.width + p.current.offsetWidth,
|
|
119
119
|
width: m.width
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
}, [f, e,
|
|
122
|
+
}, [f, e, i, p]), F(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
123
123
|
/* @__PURE__ */ a.jsx(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -164,14 +164,14 @@ const F = (t, e) => {
|
|
|
164
164
|
}, M = ({
|
|
165
165
|
children: t
|
|
166
166
|
}) => {
|
|
167
|
-
const [e, r] = g(!1), [n, o] = g(!1),
|
|
167
|
+
const [e, r] = g(!1), [n, o] = g(!1), i = h(null), l = () => {
|
|
168
168
|
r(!1), o(!1);
|
|
169
169
|
}, c = () => {
|
|
170
170
|
r(!0), o(!1);
|
|
171
171
|
}, m = {
|
|
172
172
|
isCollapsed: e,
|
|
173
173
|
setIsCollapsed: r,
|
|
174
|
-
navbarRef:
|
|
174
|
+
navbarRef: i,
|
|
175
175
|
toggleCollapse: () => {
|
|
176
176
|
e ? l() : c();
|
|
177
177
|
},
|
|
@@ -508,11 +508,11 @@ const F = (t, e) => {
|
|
|
508
508
|
ease: "power2.in"
|
|
509
509
|
});
|
|
510
510
|
}, X = N((t, e) => {
|
|
511
|
-
const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs:
|
|
511
|
+
const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
512
512
|
v(() => {
|
|
513
513
|
o.current?.style.setProperty("--tab-bg", c);
|
|
514
514
|
}, [c]);
|
|
515
|
-
const d =
|
|
515
|
+
const d = i.find((s) => s.name === (t?.currentTabName || r));
|
|
516
516
|
return /* @__PURE__ */ a.jsx(
|
|
517
517
|
"div",
|
|
518
518
|
{
|
|
@@ -524,10 +524,10 @@ const F = (t, e) => {
|
|
|
524
524
|
" border-r border-neutral-default-default",
|
|
525
525
|
l
|
|
526
526
|
),
|
|
527
|
-
children:
|
|
528
|
-
(
|
|
529
|
-
const f =
|
|
530
|
-
|
|
527
|
+
children: i.map(
|
|
528
|
+
(s) => {
|
|
529
|
+
const f = s.name === d?.name, p = typeof s.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, m = () => {
|
|
530
|
+
s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
|
|
531
531
|
};
|
|
532
532
|
return /* @__PURE__ */ a.jsx(
|
|
533
533
|
"div",
|
|
@@ -547,25 +547,25 @@ const F = (t, e) => {
|
|
|
547
547
|
"grid place-items-center",
|
|
548
548
|
"tab-thumbnail-icon",
|
|
549
549
|
"bg-transparent text-neutral-default-default",
|
|
550
|
-
|
|
550
|
+
s?.className
|
|
551
551
|
), children: p })
|
|
552
552
|
},
|
|
553
|
-
|
|
553
|
+
s.name
|
|
554
554
|
);
|
|
555
555
|
}
|
|
556
556
|
)
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
}), Z = N(
|
|
560
|
-
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o },
|
|
561
|
-
const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar:
|
|
562
|
-
l.current = p, typeof
|
|
563
|
-
}, [
|
|
560
|
+
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, i) => {
|
|
561
|
+
const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: s } = k(), f = E((p) => {
|
|
562
|
+
l.current = p, typeof i == "function" ? i(p) : i && (i.current = p);
|
|
563
|
+
}, [i]);
|
|
564
564
|
return v(() => {
|
|
565
565
|
l.current && d(l);
|
|
566
566
|
}, [d]), v(() => {
|
|
567
|
-
c.current &&
|
|
568
|
-
}, [
|
|
567
|
+
c.current && s(c);
|
|
568
|
+
}, [s]), $(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
569
569
|
"div",
|
|
570
570
|
{
|
|
571
571
|
className: u(
|
|
@@ -636,7 +636,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
636
636
|
label: r,
|
|
637
637
|
href: n,
|
|
638
638
|
onClick: o,
|
|
639
|
-
isActive:
|
|
639
|
+
isActive: i = !1,
|
|
640
640
|
className: l
|
|
641
641
|
}) => {
|
|
642
642
|
const c = n ? "a" : "button";
|
|
@@ -650,7 +650,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
650
650
|
"flex items-center w-full px-3 py-2 text-left",
|
|
651
651
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
652
652
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
653
|
-
|
|
653
|
+
i && "bg-neutral-medium-default",
|
|
654
654
|
l
|
|
655
655
|
),
|
|
656
656
|
children: [
|
|
@@ -666,15 +666,15 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
666
666
|
className: r = "",
|
|
667
667
|
size: n = "medium",
|
|
668
668
|
variant: o = "primary",
|
|
669
|
-
showZero:
|
|
669
|
+
showZero: i = !1
|
|
670
670
|
}) => {
|
|
671
671
|
const l = t, c = l > e ? `+${e}` : l;
|
|
672
|
-
if (l === 0 && !
|
|
672
|
+
if (l === 0 && !i) return null;
|
|
673
673
|
const d = {
|
|
674
674
|
small: "w-4.5 h-4.5 text-xs ",
|
|
675
675
|
medium: "w-5 h-5 text-xs",
|
|
676
676
|
large: "w-6 h-6 text-sm"
|
|
677
|
-
},
|
|
677
|
+
}, s = {
|
|
678
678
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
679
679
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
680
680
|
success: "bg-green-500 text-white",
|
|
@@ -684,7 +684,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
684
684
|
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
685
685
|
"rounded-full flex items-center justify-center font-medium ",
|
|
686
686
|
d[n],
|
|
687
|
-
|
|
687
|
+
s[o],
|
|
688
688
|
r
|
|
689
689
|
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
690
690
|
}, xe = ({
|
|
@@ -692,7 +692,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
692
692
|
onClick: e,
|
|
693
693
|
activeAction: r
|
|
694
694
|
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
695
|
-
const { isView:
|
|
695
|
+
const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } = n || {}, p = (typeof i == "function" ? i() : i !== !1) && (!f || f()), m = r === l;
|
|
696
696
|
return p && /* @__PURE__ */ a.jsx(
|
|
697
697
|
b.div,
|
|
698
698
|
{
|
|
@@ -767,7 +767,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
767
767
|
),
|
|
768
768
|
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
769
769
|
] }),
|
|
770
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
770
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ a.jsx(A, { count: s, maxCount: 9, className: "" }) : "" })
|
|
771
771
|
]
|
|
772
772
|
}
|
|
773
773
|
)
|
|
@@ -782,7 +782,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
782
782
|
isLinkActive: e,
|
|
783
783
|
onLinkClick: r
|
|
784
784
|
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
785
|
-
const { isView:
|
|
785
|
+
const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: p } = n, m = (typeof i == "function" ? i() : i !== !1) && (!l || l()), y = e(c) || (p?.some(
|
|
786
786
|
(L) => e(L)
|
|
787
787
|
) ?? !1);
|
|
788
788
|
return m && /* @__PURE__ */ a.jsx(
|
|
@@ -848,7 +848,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
848
848
|
duration: 0.25,
|
|
849
849
|
ease: "easeOut"
|
|
850
850
|
},
|
|
851
|
-
children: typeof
|
|
851
|
+
children: typeof s == "function" ? s({
|
|
852
852
|
size: 24,
|
|
853
853
|
className: u(
|
|
854
854
|
"nav-icon transition-colors duration-250 ease-out",
|
|
@@ -906,8 +906,8 @@ function we({
|
|
|
906
906
|
...r
|
|
907
907
|
}) {
|
|
908
908
|
const n = T.useCallback(
|
|
909
|
-
(
|
|
910
|
-
|
|
909
|
+
(i, l) => {
|
|
910
|
+
i.length > 0 && t?.(i), l.length > 0 && e?.(l);
|
|
911
911
|
},
|
|
912
912
|
[t, e]
|
|
913
913
|
), o = z({
|
|
@@ -942,8 +942,8 @@ const Ce = (t, e = !0) => {
|
|
|
942
942
|
export {
|
|
943
943
|
oa as AccountCircle,
|
|
944
944
|
na as Add,
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
sa as ArrowLeft,
|
|
946
|
+
ia as ArrowUpDown,
|
|
947
947
|
la as AttachFile,
|
|
948
948
|
Se as Avatar,
|
|
949
949
|
A as Badge,
|
|
@@ -1028,7 +1028,7 @@ export {
|
|
|
1028
1028
|
Ut as SidebarRefProvider,
|
|
1029
1029
|
Et as Skeleton,
|
|
1030
1030
|
Ja as Sort,
|
|
1031
|
-
|
|
1031
|
+
it as Spinner,
|
|
1032
1032
|
Ka as Stars,
|
|
1033
1033
|
ct as Steps,
|
|
1034
1034
|
dt as SwipeContainer,
|
|
@@ -1054,8 +1054,8 @@ export {
|
|
|
1054
1054
|
rr as UploadCloud,
|
|
1055
1055
|
or as UserAdd,
|
|
1056
1056
|
nr as UserAddFill,
|
|
1057
|
-
|
|
1058
|
-
|
|
1057
|
+
sr as UserPerson,
|
|
1058
|
+
ir as WhatsApp,
|
|
1059
1059
|
Xt as toastpyrion,
|
|
1060
1060
|
ye as useActionsNavbar,
|
|
1061
1061
|
Ce as useClickOutside,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prometeo-design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "design kit system",
|
|
7
7
|
"main": "dist/prometeo-design-system.umd.js",
|
|
@@ -125,6 +125,10 @@
|
|
|
125
125
|
"types": "./dist/Icons.d.ts",
|
|
126
126
|
"import": "./dist/Icons.es.js"
|
|
127
127
|
},
|
|
128
|
+
"./Icons/Home": {
|
|
129
|
+
"types": "./dist/Icons/Home.d.ts",
|
|
130
|
+
"import": "./dist/Icons/Home.es.js"
|
|
131
|
+
},
|
|
128
132
|
"./InputMultiple": {
|
|
129
133
|
"types": "./dist/InputMultiple.d.ts",
|
|
130
134
|
"import": "./dist/InputMultiple.es.js"
|