prometeo-design-system 2.4.1 → 2.4.3
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-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-Fn44kEnM.js → CardProfile-BhHJmvqs.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +13 -12
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +2 -2
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/SegmentedButton.es.js +24 -28
- package/dist/Select.es.js +334 -318
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.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/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +2 -3
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.d.ts +6 -0
- package/dist/Toast.es.js +145 -0
- package/dist/ToastProvider.d.ts +6 -0
- package/dist/ToastProvider.es.js +6 -0
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Toaster/ToastProvider.d.ts +5 -0
- package/dist/components/Toaster/Toaster.d.ts +23 -31
- package/dist/exports/DrawerDesktop.d.ts +2 -0
- package/dist/exports/DrawerMobile.d.ts +2 -0
- package/dist/exports/Select.d.ts +3 -0
- package/dist/exports/Toast.d.ts +3 -0
- package/dist/exports/ToastProvider.d.ts +2 -0
- package/dist/index.d.ts +4 -1
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/pages/ToastsPage.d.ts +2 -0
- package/dist/preview/ToastsPreview.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +43 -38
- package/package.json +1 -1
- package/src/styles/intellisense.css +3 -0
- package/dist/components/Toaster/PrometeoProviderToas.d.ts +0 -6
- package/dist/components/Toaster/Toast.d.ts +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Se } from "./Avatar.es.js";
|
|
2
|
-
import { B as Ie } from "./Button-
|
|
3
|
-
import { C as Re, a as Le } from "./CardProfile-
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
2
|
+
import { B as Ie } from "./Button-Bc0LYLfg.js";
|
|
3
|
+
import { C as Re, a as Le } from "./CardProfile-BhHJmvqs.js";
|
|
4
|
+
import { default as Te } from "./CheckBox.es.js";
|
|
5
|
+
import { default as qe } from "./CheckboxFormik.es.js";
|
|
6
6
|
import { default as De, useDialogControl as Ee } from "./DialogModal.es.js";
|
|
7
7
|
import { default as He, useDrawerDesktop as We } from "./DrawerDesktop.es.js";
|
|
8
8
|
import { default as Fe, useDrawerMobile as Me } from "./DrawerMobile.es.js";
|
|
@@ -20,30 +20,32 @@ 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 vt } from "./Steps.es.js";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as gt } 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
|
-
import { Table as St, TableBody as kt, TableCaption as It, TableCell as Bt, TableFooter as Rt, TableHead as Lt, TableHeader as
|
|
27
|
-
import { default as
|
|
26
|
+
import { Table as St, TableBody as kt, TableCaption as It, TableCell as Bt, TableFooter as Rt, TableHead as Lt, TableHeader as Pt, TableRow as Tt } from "./Table.es.js";
|
|
27
|
+
import { default as qt } from "./TabLinks.es.js";
|
|
28
28
|
import { default as Dt } from "./TextArea.es.js";
|
|
29
29
|
import { default as Ot } from "./Tooltip.es.js";
|
|
30
30
|
import { Skeleton as Wt } from "./Skeleton.es.js";
|
|
31
31
|
import { SegmentedButton as Ft } from "./SegmentedButton.es.js";
|
|
32
|
-
import { u as S } from "./LayoutGeneric-
|
|
33
|
-
import { L as Ut, S as Gt } from "./LayoutGeneric-
|
|
34
|
-
import { I as _t } from "./ImageGallery-
|
|
32
|
+
import { u as S } from "./LayoutGeneric-jDE96L2N.js";
|
|
33
|
+
import { L as Ut, S as Gt } from "./LayoutGeneric-jDE96L2N.js";
|
|
34
|
+
import { I as _t } from "./ImageGallery-BeADef_g.js";
|
|
35
35
|
import { default as Zt } from "./Image.es.js";
|
|
36
|
-
import {
|
|
36
|
+
import { default as Kt, toastpyrion as Qt } from "./Toast.es.js";
|
|
37
|
+
import { default as ea } from "./ToastProvider.es.js";
|
|
38
|
+
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
37
39
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
38
|
-
import
|
|
40
|
+
import T, { useRef as y, useState as g, useLayoutEffect as A, createContext as q, useContext as z, useEffect as N, forwardRef as k, useCallback as D } from "react";
|
|
39
41
|
import { useGSAP as I } from "@gsap/react";
|
|
40
42
|
import m from "gsap";
|
|
41
43
|
import { Icons as h } from "./Icons.es.js";
|
|
42
44
|
import { motion as b, AnimatePresence as B } from "framer-motion";
|
|
43
|
-
import { default as
|
|
45
|
+
import { default as aa } from "./OtpInput.es.js";
|
|
44
46
|
import { useDropzone as E } from "react-dropzone";
|
|
45
|
-
import { useIsMobile as
|
|
46
|
-
import { DropZone as
|
|
47
|
+
import { useIsMobile as oa } from "./useDevice.es.js";
|
|
48
|
+
import { DropZone as ia } from "./DropZone.es.js";
|
|
47
49
|
const O = (t, e) => {
|
|
48
50
|
I(
|
|
49
51
|
() => {
|
|
@@ -106,8 +108,8 @@ const O = (t, e) => {
|
|
|
106
108
|
primarySidebarCollapsed: i,
|
|
107
109
|
onClose: s
|
|
108
110
|
}) => {
|
|
109
|
-
const c =
|
|
110
|
-
return
|
|
111
|
+
const c = y(null), [l, d] = g({ left: 0, width: 0 }), { primarySidebarRef: f } = S();
|
|
112
|
+
return A(() => {
|
|
111
113
|
if (f?.current) {
|
|
112
114
|
const x = f.current.getBoundingClientRect();
|
|
113
115
|
d({
|
|
@@ -150,7 +152,7 @@ const O = (t, e) => {
|
|
|
150
152
|
Content: W,
|
|
151
153
|
Footer: $,
|
|
152
154
|
Spacer: F
|
|
153
|
-
}), R =
|
|
155
|
+
}), R = q(
|
|
154
156
|
void 0
|
|
155
157
|
), fe = () => {
|
|
156
158
|
const t = z(R);
|
|
@@ -160,7 +162,7 @@ const O = (t, e) => {
|
|
|
160
162
|
}, M = ({
|
|
161
163
|
children: t
|
|
162
164
|
}) => {
|
|
163
|
-
const [e, r] =
|
|
165
|
+
const [e, r] = g(!1), [o, n] = g(!1), i = y(null), s = () => {
|
|
164
166
|
r(!1), n(!1);
|
|
165
167
|
}, c = () => {
|
|
166
168
|
r(!0), n(!1);
|
|
@@ -504,7 +506,7 @@ const O = (t, e) => {
|
|
|
504
506
|
ease: "power2.in"
|
|
505
507
|
});
|
|
506
508
|
}, X = (t) => {
|
|
507
|
-
const [e, r] =
|
|
509
|
+
const [e, r] = g(t?.currentTabName || t.tabs[0].name), o = y(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
|
|
508
510
|
N(() => {
|
|
509
511
|
o.current?.style.setProperty("--tab-bg", s);
|
|
510
512
|
}, [s]);
|
|
@@ -553,7 +555,7 @@ const O = (t, e) => {
|
|
|
553
555
|
);
|
|
554
556
|
}, Z = k(
|
|
555
557
|
({ children: t, isCollapsed: e = !1, className: r = "", tabs: o = [], currentTabName: n }, i) => {
|
|
556
|
-
const s =
|
|
558
|
+
const s = y(null), { registerPrimarySidebar: c } = S(), l = D((d) => {
|
|
557
559
|
s.current = d, typeof i == "function" ? i(d) : i && (i.current = d);
|
|
558
560
|
}, [i]);
|
|
559
561
|
return N(() => {
|
|
@@ -768,7 +770,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
768
770
|
onLinkClick: r
|
|
769
771
|
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
770
772
|
const { isView: i = !1, viewAccess: s, path: c, title: l, icon: d, count: f, relatedPaths: x } = o, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), v = e(c) || (x?.some(
|
|
771
|
-
(
|
|
773
|
+
(P) => e(P)
|
|
772
774
|
) ?? !1);
|
|
773
775
|
return p && /* @__PURE__ */ a.jsx(
|
|
774
776
|
b.div,
|
|
@@ -859,13 +861,13 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
859
861
|
setIsActiveModalNotification: e
|
|
860
862
|
}) => ({ handleNotificationClick: () => {
|
|
861
863
|
e(!0);
|
|
862
|
-
}, isActiveModalNotification: t }),
|
|
863
|
-
const e =
|
|
864
|
+
}, isActiveModalNotification: t }), ye = (t) => {
|
|
865
|
+
const e = y(null);
|
|
864
866
|
return {
|
|
865
867
|
isCollapsed: t,
|
|
866
868
|
navbarRef: e
|
|
867
869
|
};
|
|
868
|
-
},
|
|
870
|
+
}, ge = ({
|
|
869
871
|
isCollapsed: t,
|
|
870
872
|
onToggle: e
|
|
871
873
|
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
@@ -890,7 +892,7 @@ function we({
|
|
|
890
892
|
onFilesRejected: e,
|
|
891
893
|
...r
|
|
892
894
|
}) {
|
|
893
|
-
const o =
|
|
895
|
+
const o = T.useCallback(
|
|
894
896
|
(i, s) => {
|
|
895
897
|
i.length > 0 && t?.(i), s.length > 0 && e?.(s);
|
|
896
898
|
},
|
|
@@ -905,7 +907,7 @@ function we({
|
|
|
905
907
|
};
|
|
906
908
|
}
|
|
907
909
|
const je = (t, e = !0) => {
|
|
908
|
-
const r =
|
|
910
|
+
const r = y(null);
|
|
909
911
|
return N(() => {
|
|
910
912
|
if (!e) return;
|
|
911
913
|
const o = (n) => {
|
|
@@ -930,14 +932,14 @@ export {
|
|
|
930
932
|
Ie as Button,
|
|
931
933
|
Re as CardProfile,
|
|
932
934
|
Le as ChangueAccount,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
+
Te as CheckBox,
|
|
936
|
+
qe as CheckboxFormik,
|
|
935
937
|
he as CompanyLogo,
|
|
936
938
|
Nt as DatePicker,
|
|
937
939
|
De as DialogModal,
|
|
938
940
|
He as DrawerDesktop,
|
|
939
941
|
Fe as DrawerMobile,
|
|
940
|
-
|
|
942
|
+
ia as DropZone,
|
|
941
943
|
Ge as Header,
|
|
942
944
|
h as Icons,
|
|
943
945
|
Zt as Image,
|
|
@@ -949,10 +951,10 @@ export {
|
|
|
949
951
|
Ye as Logo,
|
|
950
952
|
tt as Menu,
|
|
951
953
|
xe as NavBarActions,
|
|
952
|
-
|
|
954
|
+
ge as NavbarCollapseButton,
|
|
953
955
|
be as NavbarLinks,
|
|
954
956
|
pe as NavigationLink,
|
|
955
|
-
|
|
957
|
+
aa as OtpInput,
|
|
956
958
|
rt as Pagination,
|
|
957
959
|
nt as ProfilePictureUpload,
|
|
958
960
|
st as ProgressBar,
|
|
@@ -967,27 +969,30 @@ export {
|
|
|
967
969
|
Wt as Skeleton,
|
|
968
970
|
xt as Spinner,
|
|
969
971
|
vt as Steps,
|
|
970
|
-
|
|
972
|
+
gt as SwipeContainer,
|
|
971
973
|
wt as Switch,
|
|
972
|
-
|
|
974
|
+
qt as TabLinks,
|
|
973
975
|
St as Table,
|
|
974
976
|
kt as TableBody,
|
|
975
977
|
It as TableCaption,
|
|
976
978
|
Bt as TableCell,
|
|
977
979
|
Rt as TableFooter,
|
|
978
980
|
Lt as TableHead,
|
|
979
|
-
|
|
980
|
-
|
|
981
|
+
Pt as TableHeader,
|
|
982
|
+
Tt as TableRow,
|
|
981
983
|
Dt as TextArea,
|
|
984
|
+
Kt as Toast,
|
|
985
|
+
ea as ToastProvider,
|
|
982
986
|
Ot as Tooltip,
|
|
987
|
+
Qt as toastpyrion,
|
|
983
988
|
ve as useActionsNavbar,
|
|
984
989
|
je as useClickOutside,
|
|
985
990
|
Ee as useDialogControl,
|
|
986
991
|
We as useDrawerDesktop,
|
|
987
992
|
Me as useDrawerMobile,
|
|
988
993
|
we as useFileDropzone,
|
|
989
|
-
|
|
990
|
-
|
|
994
|
+
oa as useIsMobile,
|
|
995
|
+
ye as useNavbarCollapse,
|
|
991
996
|
fe as useSidebar,
|
|
992
997
|
S as useSidebarContext
|
|
993
998
|
};
|
package/package.json
CHANGED
|
@@ -115,8 +115,10 @@
|
|
|
115
115
|
@utility bg-primary-dark { --intellisense-bg-primary-dark: 1; }
|
|
116
116
|
@utility bg-neutral { --intellisense-bg-neutral: 1; }
|
|
117
117
|
@utility bg-neutral-default-default { --intellisense-bg-neutral-default-default: 1; }
|
|
118
|
+
@utility bg-neutral-default-default-light { --intellisense-bg-neutral-default-default-light: 1; }
|
|
118
119
|
@utility bg-neutral-default-pressed { --intellisense-bg-neutral-default-pressed: 1; }
|
|
119
120
|
@utility bg-neutral-default-hover { --intellisense-bg-neutral-default-hover: 1; }
|
|
121
|
+
@utility bg-neutral-default-hover-light { --intellisense-bg-neutral-default-hover-light: 1; }
|
|
120
122
|
@utility bg-neutral-strong { --intellisense-bg-neutral-strong: 1; }
|
|
121
123
|
@utility bg-neutral-strong-default { --intellisense-bg-neutral-strong-default: 1; }
|
|
122
124
|
@utility bg-neutral-strong-medium-default { --intellisense-bg-neutral-strong-medium-default: 1; }
|
|
@@ -182,6 +184,7 @@
|
|
|
182
184
|
@utility border-error-default-disabled { --intellisense-border-error-default-disabled: 1; }
|
|
183
185
|
@utility border-warning { --intellisense-border-warning: 1; }
|
|
184
186
|
@utility border-warning-default-focused { --intellisense-border-warning-default-focused: 1; }
|
|
187
|
+
@utility border-warning-default-default { --intellisense-border-warning-default-default: 1; }
|
|
185
188
|
@utility icon-neutral-default-default { --intellisense-icon-neutral-default-default: 1; }
|
|
186
189
|
@utility icon-neutral-medium-default { --intellisense-icon-neutral-medium-default: 1; }
|
|
187
190
|
@utility icon-neutral-medium-focused { --intellisense-icon-neutral-medium-focused: 1; }
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ToasterProps } from 'sonner';
|
|
2
|
-
interface IPrometeoProviderToast extends Omit<ToasterProps, 'position' | 'richColors'> {
|
|
3
|
-
nada?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const PrometeoProviderToast: ({ ...props }: IPrometeoProviderToast) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default PrometeoProviderToast;
|