prometeo-design-system 1.7.4 → 1.7.6
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/index.d.ts +11 -9
- package/dist/prometeo-design-system.es.js +188 -166
- package/package.json +225 -225
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as DrawerMobile } from './components/Drawer/DrawerMobile';
|
|
|
9
9
|
export { default as Header } from './components/Header/Header';
|
|
10
10
|
export { default as Input } from './components/Input/Input';
|
|
11
11
|
export { default as InputFormik } from './components/InputFormik/InputFormik';
|
|
12
|
+
export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
|
|
12
13
|
export { default as Logo } from './components/Logo/Logo';
|
|
13
14
|
export { Menu } from './components/Menu/MenuComposable';
|
|
14
15
|
export { default as Pagination } from './components/Pagination/Pagination';
|
|
@@ -20,11 +21,10 @@ export { default as ChangueAccount } from './components/Sidebar/components/chang
|
|
|
20
21
|
export { default as Spinner } from './components/Spinner/Spinner';
|
|
21
22
|
export { default as Steps } from './components/Steps/Steps';
|
|
22
23
|
export { default as SwipeContainer } from './components/SwipeContainer/SwipeContainer';
|
|
24
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/Table/Table';
|
|
23
25
|
export { default as TabLinks } from './components/TabLinks/TabLinks';
|
|
24
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from './components/Table/Table';
|
|
25
26
|
export { default as TextArea } from './components/TextArea/TextArea';
|
|
26
27
|
export { default as Tooltip } from './components/Tooltip/Tootip';
|
|
27
|
-
export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
|
|
28
28
|
export { default as LayoutGeneric } from './components/Layout/LayoutGeneric';
|
|
29
29
|
export * from './components/Sidebar';
|
|
30
30
|
export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
@@ -36,7 +36,8 @@ export { default as OtpInput } from './components/OtpInput/OtpInput';
|
|
|
36
36
|
export { useDialogControl } from './components/Dialog/useDialogControl';
|
|
37
37
|
export { useDrawerDesktop } from './components/Drawer/useDrawerDesktop';
|
|
38
38
|
export { useDrawerMobile } from './components/Drawer/useDrawerMobile';
|
|
39
|
-
export {
|
|
39
|
+
export { useFileDropzone } from './components/DropZone/useFileDropzone';
|
|
40
|
+
export { SidebarProvider as SidebarRefProvider, useSidebarContext } from './components/Sidebar/context/SidebarContext';
|
|
40
41
|
export { SidebarProvider } from './components/Sidebar/hooks/SidebarProvider';
|
|
41
42
|
export { useSidebar } from './components/Sidebar/hooks/useSidebarHook';
|
|
42
43
|
export { useClickOutside } from './hooks/useClickOutside';
|
|
@@ -45,25 +46,26 @@ export type { ButtonProps } from './components/Button/Button';
|
|
|
45
46
|
export type { ISessionLocalStorage } from './components/CardProfile/CardProfile';
|
|
46
47
|
export type { CheckBoxProps } from './components/CheckBox/CheckBox';
|
|
47
48
|
export type { ICheckboxFormik } from './components/CheckboxFormik/CheckboxFormik';
|
|
49
|
+
export type { DropZoneProps } from './components/DropZone/DropZone';
|
|
48
50
|
export type { IHeader } from './components/Header/Header';
|
|
49
|
-
export type { InputProps, InputSize, InputVariant
|
|
51
|
+
export type { InputProps, InputSize, InputVariant } from './components/Input/Input';
|
|
50
52
|
export type { IInputFormik } from './components/InputFormik/InputFormik';
|
|
51
53
|
export type { IMenuItems, IMenuRoot } from './components/Menu/MenuComposable';
|
|
52
54
|
export type { OtpInputProps } from './components/OtpInput/OtpInput';
|
|
53
|
-
export type { ContentProps as SecondaryBarContentProps, FooterProps as SecondaryBarFooterProps, HeaderProps as SecondaryBarHeaderProps, SecondaryBarRootProps, SpacerProps as SecondaryBarSpacerProps, } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
54
55
|
export type { BadgeProps } from './components/Sidebar/components/badge';
|
|
55
56
|
export type { NavbarCollapseButtonProps } from './components/Sidebar/components/collapse-button';
|
|
56
57
|
export type { CompanyLogoProps } from './components/Sidebar/components/company-logo';
|
|
57
58
|
export type { INavbarActionsProps } from './components/Sidebar/components/nav-actions';
|
|
58
59
|
export type { NavbarLinksProps } from './components/Sidebar/components/nav-links';
|
|
59
|
-
export type { INavAction, INavLink, Role, RoleLevels
|
|
60
|
+
export type { INavAction, INavLink, Role, RoleLevels } from './components/Sidebar/hooks/useNavLinks';
|
|
61
|
+
export type { ContentProps as SecondaryBarContentProps, FooterProps as SecondaryBarFooterProps, HeaderProps as SecondaryBarHeaderProps, SecondaryBarRootProps, SpacerProps as SecondaryBarSpacerProps } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
60
62
|
export type { SidebarContextValue } from './components/Sidebar/hooks/useSidebarHook';
|
|
61
|
-
export type { SpinnerProps, SpinnerSize, SpinnerVariant
|
|
63
|
+
export type { SpinnerProps, SpinnerSize, SpinnerVariant } from './components/Spinner/Spinner';
|
|
62
64
|
export type { PaginationProps } from './components/Pagination/Pagination';
|
|
63
65
|
export type { ProfilePictureUploadProps } from './components/ProfilePictureUpload/ProfilePictureUpload';
|
|
64
66
|
export type { Step, StepsProps } from './components/Steps/Steps';
|
|
65
|
-
export type { SelectOptionRendererProps, SelectProps
|
|
66
|
-
export type { ISelectFormik, ISelectFormikOption
|
|
67
|
+
export type { SelectionDisplayProps, SelectOptionRendererProps, SelectProps } from './components/Select/Select';
|
|
68
|
+
export type { ISelectFormik, ISelectFormikOption } from './components/SelectFormik/SelectFormik';
|
|
67
69
|
export type { DialogHandle } from './components/Dialog/Dialog';
|
|
68
70
|
export { DropZone } from './components/DropZone/DropZone';
|
|
69
71
|
export type { ToasterPrometeo } from './components/Toaster/Toaster';
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { C as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { default as
|
|
23
|
-
import { Table as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import {
|
|
1
|
+
import { default as Ne } from "./Avatar.es.js";
|
|
2
|
+
import { default as Se } from "./Button.es.js";
|
|
3
|
+
import { C as Ie, a as Be } from "./CardProfile-BZajBGbO.js";
|
|
4
|
+
import { default as Re } from "./CheckBox.es.js";
|
|
5
|
+
import { default as Pe } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as Te, useDialogControl as ze } from "./DialogModal.es.js";
|
|
7
|
+
import { default as Ee, useDrawerDesktop as Oe } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as We, useDrawerMobile as $e } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as Me } from "./Header.es.js";
|
|
10
|
+
import { default as Ve } from "./Input.es.js";
|
|
11
|
+
import { default as _e } from "./InputFormik.es.js";
|
|
12
|
+
import { InputMultiple as Ze } from "./InputMultiple.es.js";
|
|
13
|
+
import { default as Ke } from "./Logo.es.js";
|
|
14
|
+
import { Menu as Ye } from "./Menu.es.js";
|
|
15
|
+
import { default as tt } from "./Pagination.es.js";
|
|
16
|
+
import { ProfilePictureUpload as at } from "./ProfilePictureUpload.es.js";
|
|
17
|
+
import { default as nt } from "./ProgressBar.es.js";
|
|
18
|
+
import { default as st } from "./Select.es.js";
|
|
19
|
+
import { default as ut } from "./SelectFormik.es.js";
|
|
20
|
+
import { default as dt } from "./Spinner.es.js";
|
|
21
|
+
import { Steps as pt } from "./Steps.es.js";
|
|
22
|
+
import { default as xt } from "./SwipeContainer.es.js";
|
|
23
|
+
import { Table as yt, TableBody as gt, TableCaption as vt, TableCell as ht, TableFooter as wt, TableHead as jt, TableHeader as Nt, TableRow as Ct } from "./Table.es.js";
|
|
24
|
+
import { default as kt } from "./TabLinks.es.js";
|
|
25
|
+
import { default as Bt } from "./TextArea.es.js";
|
|
26
|
+
import { default as Rt } from "./Tooltip.es.js";
|
|
27
27
|
import { u as j } from "./LayoutGeneric-jDE96L2N.js";
|
|
28
|
-
import { L as
|
|
28
|
+
import { L as Pt, S as Dt } from "./LayoutGeneric-jDE96L2N.js";
|
|
29
29
|
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
30
|
-
import { c as
|
|
31
|
-
import { useRef as p, useState as
|
|
30
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
31
|
+
import q, { useRef as p, useState as v, useLayoutEffect as P, createContext as D, useContext as T, forwardRef as N, useCallback as z, useEffect as C } from "react";
|
|
32
32
|
import { useGSAP as S } from "@gsap/react";
|
|
33
|
-
import
|
|
33
|
+
import u from "gsap";
|
|
34
34
|
import { Icons as b } from "./Icons.es.js";
|
|
35
35
|
import { motion as d, AnimatePresence as k } from "framer-motion";
|
|
36
|
-
import { default as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
|
|
36
|
+
import { default as zt } from "./OtpInput.es.js";
|
|
37
|
+
import { useDropzone as A } from "react-dropzone";
|
|
38
|
+
import { useDevices as Et } from "./useDevice.es.js";
|
|
39
|
+
import { DropZone as Ht } from "./DropZone.es.js";
|
|
40
|
+
const E = (t, e) => {
|
|
40
41
|
S(
|
|
41
42
|
() => {
|
|
42
43
|
if (!t.current) return;
|
|
43
44
|
const o = t.current, a = document.querySelector('[data-main-content="true"]');
|
|
44
45
|
if (e) {
|
|
45
|
-
|
|
46
|
+
u.fromTo(
|
|
46
47
|
o,
|
|
47
48
|
{
|
|
48
49
|
width: "0rem",
|
|
@@ -54,13 +55,13 @@ const D = (t, e) => {
|
|
|
54
55
|
duration: 0.4,
|
|
55
56
|
ease: "power2.out"
|
|
56
57
|
}
|
|
57
|
-
), a &&
|
|
58
|
+
), a && u.to(a, {
|
|
58
59
|
marginLeft: o.offsetWidth + "px",
|
|
59
60
|
duration: 0.4,
|
|
60
61
|
ease: "power2.out"
|
|
61
62
|
});
|
|
62
63
|
const n = o.querySelectorAll(".secondary-bar-content > *");
|
|
63
|
-
n.length > 0 &&
|
|
64
|
+
n.length > 0 && u.fromTo(
|
|
64
65
|
n,
|
|
65
66
|
{
|
|
66
67
|
y: 20,
|
|
@@ -76,12 +77,12 @@ const D = (t, e) => {
|
|
|
76
77
|
}
|
|
77
78
|
);
|
|
78
79
|
} else
|
|
79
|
-
|
|
80
|
+
u.to(o, {
|
|
80
81
|
width: "0rem",
|
|
81
82
|
opacity: 0,
|
|
82
83
|
duration: 0.3,
|
|
83
84
|
ease: "power2.in"
|
|
84
|
-
}), a &&
|
|
85
|
+
}), a && u.to(a, {
|
|
85
86
|
marginLeft: "0px",
|
|
86
87
|
duration: 0.3,
|
|
87
88
|
ease: "power2.in"
|
|
@@ -96,18 +97,18 @@ const D = (t, e) => {
|
|
|
96
97
|
width: a = "w-96",
|
|
97
98
|
action: n,
|
|
98
99
|
primarySidebarCollapsed: i,
|
|
99
|
-
onClose:
|
|
100
|
+
onClose: s
|
|
100
101
|
}) => {
|
|
101
|
-
const
|
|
102
|
-
return
|
|
102
|
+
const c = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
|
|
103
|
+
return P(() => {
|
|
103
104
|
if (x?.current) {
|
|
104
|
-
const
|
|
105
|
+
const g = x.current.getBoundingClientRect();
|
|
105
106
|
m({
|
|
106
|
-
left:
|
|
107
|
-
width:
|
|
107
|
+
left: g.width,
|
|
108
|
+
width: g.width
|
|
108
109
|
});
|
|
109
110
|
}
|
|
110
|
-
}, [x, e, i]),
|
|
111
|
+
}, [x, e, i]), E(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
111
112
|
/* @__PURE__ */ r.jsx(
|
|
112
113
|
"div",
|
|
113
114
|
{
|
|
@@ -115,14 +116,14 @@ const D = (t, e) => {
|
|
|
115
116
|
style: {
|
|
116
117
|
left: f.left
|
|
117
118
|
},
|
|
118
|
-
onClick:
|
|
119
|
+
onClick: s
|
|
119
120
|
}
|
|
120
121
|
),
|
|
121
122
|
/* @__PURE__ */ r.jsx(
|
|
122
123
|
"div",
|
|
123
124
|
{
|
|
124
|
-
ref:
|
|
125
|
-
className:
|
|
125
|
+
ref: c,
|
|
126
|
+
className: l(
|
|
126
127
|
"h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
|
|
127
128
|
"absolute top-0 z-30",
|
|
128
129
|
a,
|
|
@@ -136,32 +137,32 @@ const D = (t, e) => {
|
|
|
136
137
|
}
|
|
137
138
|
)
|
|
138
139
|
] }) });
|
|
139
|
-
},
|
|
140
|
+
}, O = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1", t) }), ue = Object.assign(w, {
|
|
140
141
|
Root: w,
|
|
141
|
-
Header:
|
|
142
|
-
Content:
|
|
143
|
-
Footer:
|
|
144
|
-
Spacer:
|
|
145
|
-
}), I =
|
|
142
|
+
Header: O,
|
|
143
|
+
Content: H,
|
|
144
|
+
Footer: W,
|
|
145
|
+
Spacer: $
|
|
146
|
+
}), I = D(
|
|
146
147
|
void 0
|
|
147
|
-
),
|
|
148
|
-
const t =
|
|
148
|
+
), ce = () => {
|
|
149
|
+
const t = T(I);
|
|
149
150
|
if (!t)
|
|
150
151
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
151
152
|
return t;
|
|
152
|
-
},
|
|
153
|
+
}, F = ({
|
|
153
154
|
children: t
|
|
154
155
|
}) => {
|
|
155
|
-
const [e, o] =
|
|
156
|
+
const [e, o] = v(!1), [a, n] = v(!1), i = p(null), s = () => {
|
|
156
157
|
o(!1), n(!1);
|
|
157
|
-
},
|
|
158
|
+
}, c = () => {
|
|
158
159
|
o(!0), n(!1);
|
|
159
160
|
}, L = {
|
|
160
161
|
isCollapsed: e,
|
|
161
162
|
setIsCollapsed: o,
|
|
162
163
|
navbarRef: i,
|
|
163
164
|
toggleCollapse: () => {
|
|
164
|
-
e ?
|
|
165
|
+
e ? s() : c();
|
|
165
166
|
},
|
|
166
167
|
activeSecondaryBar: a ? "notifications" : null,
|
|
167
168
|
openSecondaryBar: () => {
|
|
@@ -175,18 +176,18 @@ const D = (t, e) => {
|
|
|
175
176
|
}
|
|
176
177
|
};
|
|
177
178
|
return /* @__PURE__ */ r.jsx(I.Provider, { value: L, children: t });
|
|
178
|
-
}, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t,
|
|
179
|
+
}, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t, M = (t, e, o) => {
|
|
179
180
|
S(
|
|
180
181
|
() => {
|
|
181
182
|
if (!t.current) return;
|
|
182
|
-
const a =
|
|
183
|
+
const a = u.timeline({
|
|
183
184
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
184
185
|
}), n = {
|
|
185
186
|
navbar: t.current,
|
|
186
|
-
navLabels:
|
|
187
|
-
navIconWrappers:
|
|
188
|
-
navIcons:
|
|
189
|
-
navLinkItems:
|
|
187
|
+
navLabels: u.utils.toArray(".nav-label"),
|
|
188
|
+
navIconWrappers: u.utils.toArray(".nav-icon-wrapper"),
|
|
189
|
+
navIcons: u.utils.toArray(".nav-icon"),
|
|
190
|
+
navLinkItems: u.utils.toArray(".nav-link-item"),
|
|
190
191
|
logoutButton: document.querySelector(".logout-button"),
|
|
191
192
|
logoutLabel: document.querySelector(".logout-label"),
|
|
192
193
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -214,14 +215,14 @@ const D = (t, e) => {
|
|
|
214
215
|
),
|
|
215
216
|
// Secondary bar elements
|
|
216
217
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
217
|
-
secondaryBarContent:
|
|
218
|
-
badgeInLink:
|
|
218
|
+
secondaryBarContent: u.utils.toArray(".secondary-bar *"),
|
|
219
|
+
badgeInLink: u.utils.toArray(".badge-in-link")
|
|
219
220
|
};
|
|
220
|
-
e ?
|
|
221
|
+
e ? U(a, n) : V(a, n), n.secondaryBar && G(n.secondaryBar);
|
|
221
222
|
},
|
|
222
223
|
{ scope: t, dependencies: [e, o] }
|
|
223
224
|
);
|
|
224
|
-
},
|
|
225
|
+
}, U = (t, e) => {
|
|
225
226
|
t.to(e.navbar, {
|
|
226
227
|
width: "5rem",
|
|
227
228
|
duration: 0.2,
|
|
@@ -360,7 +361,7 @@ const D = (t, e) => {
|
|
|
360
361
|
},
|
|
361
362
|
-1
|
|
362
363
|
);
|
|
363
|
-
},
|
|
364
|
+
}, V = (t, e) => {
|
|
364
365
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
365
366
|
e.navLinkItems,
|
|
366
367
|
{
|
|
@@ -488,24 +489,24 @@ const D = (t, e) => {
|
|
|
488
489
|
},
|
|
489
490
|
0
|
|
490
491
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
491
|
-
},
|
|
492
|
-
|
|
492
|
+
}, G = (t, e) => {
|
|
493
|
+
u.to(t, {
|
|
493
494
|
x: "-100%",
|
|
494
495
|
opacity: 0,
|
|
495
496
|
duration: 0.3,
|
|
496
497
|
ease: "power2.in"
|
|
497
498
|
});
|
|
498
|
-
},
|
|
499
|
+
}, _ = N(
|
|
499
500
|
({ children: t, isCollapsed: e = !1, className: o = "" }, a) => {
|
|
500
|
-
const n = p(null), { registerPrimarySidebar: i } = j(),
|
|
501
|
-
n.current =
|
|
501
|
+
const n = p(null), { registerPrimarySidebar: i } = j(), s = z((c) => {
|
|
502
|
+
n.current = c, typeof a == "function" ? a(c) : a && (a.current = c);
|
|
502
503
|
}, [a]);
|
|
503
504
|
return C(() => {
|
|
504
505
|
n.current && i(n);
|
|
505
|
-
}, [i]),
|
|
506
|
+
}, [i]), M(n, e, !1), /* @__PURE__ */ r.jsx(
|
|
506
507
|
"div",
|
|
507
508
|
{
|
|
508
|
-
ref:
|
|
509
|
+
ref: s,
|
|
509
510
|
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 flex-shrink-0
|
|
510
511
|
${e ? "w-16" : "w-64"} ${o}`,
|
|
511
512
|
children: t
|
|
@@ -513,10 +514,10 @@ const D = (t, e) => {
|
|
|
513
514
|
);
|
|
514
515
|
}
|
|
515
516
|
), h = N(
|
|
516
|
-
(t, e) => /* @__PURE__ */ r.jsx(
|
|
517
|
+
(t, e) => /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(_, { ...t, ref: e }) })
|
|
517
518
|
);
|
|
518
519
|
h.displayName = "SidebarRoot";
|
|
519
|
-
const
|
|
520
|
+
const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
|
|
520
521
|
"button",
|
|
521
522
|
{
|
|
522
523
|
onClick: e,
|
|
@@ -525,7 +526,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
525
526
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
526
527
|
children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
527
528
|
}
|
|
528
|
-
) }),
|
|
529
|
+
) }), Z = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), J = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("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-1 w-full" }) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), Q = ({ className: t, size: e = "auto" }) => {
|
|
529
530
|
const o = () => {
|
|
530
531
|
switch (e) {
|
|
531
532
|
case "auto":
|
|
@@ -538,37 +539,37 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
538
539
|
return "h-8 w-8";
|
|
539
540
|
}
|
|
540
541
|
};
|
|
541
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
542
|
-
},
|
|
542
|
+
return /* @__PURE__ */ r.jsx("div", { className: l(o(), t) });
|
|
543
|
+
}, Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), de = Object.assign(h, {
|
|
543
544
|
Root: h,
|
|
544
|
-
CollapseButton:
|
|
545
|
-
Header:
|
|
546
|
-
Divider:
|
|
547
|
-
Content:
|
|
548
|
-
Spacer:
|
|
549
|
-
Footer:
|
|
550
|
-
}),
|
|
545
|
+
CollapseButton: X,
|
|
546
|
+
Header: Z,
|
|
547
|
+
Divider: J,
|
|
548
|
+
Content: K,
|
|
549
|
+
Spacer: Q,
|
|
550
|
+
Footer: Y
|
|
551
|
+
}), fe = ({
|
|
551
552
|
children: t,
|
|
552
553
|
icon: e,
|
|
553
554
|
label: o,
|
|
554
555
|
href: a,
|
|
555
556
|
onClick: n,
|
|
556
557
|
isActive: i = !1,
|
|
557
|
-
className:
|
|
558
|
+
className: s
|
|
558
559
|
}) => {
|
|
559
|
-
const
|
|
560
|
+
const c = a ? "a" : "button";
|
|
560
561
|
return /* @__PURE__ */ r.jsxs(
|
|
561
|
-
|
|
562
|
+
c,
|
|
562
563
|
{
|
|
563
564
|
href: a,
|
|
564
565
|
onClick: n,
|
|
565
|
-
className:
|
|
566
|
+
className: l(
|
|
566
567
|
"nav-link-item",
|
|
567
568
|
"flex items-center w-full px-3 py-2 text-left",
|
|
568
569
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
569
570
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
570
571
|
i && "bg-neutral-medium-default",
|
|
571
|
-
|
|
572
|
+
s
|
|
572
573
|
),
|
|
573
574
|
children: [
|
|
574
575
|
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 }) }),
|
|
@@ -585,8 +586,8 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
585
586
|
variant: n = "primary",
|
|
586
587
|
showZero: i = !1
|
|
587
588
|
}) => {
|
|
588
|
-
const
|
|
589
|
-
if (
|
|
589
|
+
const s = t, c = s > e ? `+${e}` : s;
|
|
590
|
+
if (s === 0 && !i) return null;
|
|
590
591
|
const f = {
|
|
591
592
|
small: "w-4.5 h-4.5 text-xs ",
|
|
592
593
|
medium: "w-5 h-5 text-xs",
|
|
@@ -598,13 +599,13 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
598
599
|
warning: "bg-yellow-500 text-black",
|
|
599
600
|
danger: "bg-red-500 text-white"
|
|
600
601
|
};
|
|
601
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
602
|
+
return /* @__PURE__ */ r.jsx("div", { className: l(
|
|
602
603
|
"rounded-full flex items-center justify-center font-medium ",
|
|
603
604
|
f[a],
|
|
604
605
|
m[n],
|
|
605
606
|
o
|
|
606
|
-
), children: /* @__PURE__ */ r.jsx("span", { children:
|
|
607
|
-
},
|
|
607
|
+
), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
|
|
608
|
+
}, pe = ({
|
|
608
609
|
linkActions: t,
|
|
609
610
|
onClick: e,
|
|
610
611
|
activeAction: o
|
|
@@ -625,7 +626,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
625
626
|
onClick: () => {
|
|
626
627
|
e?.(a.action);
|
|
627
628
|
},
|
|
628
|
-
className:
|
|
629
|
+
className: l(
|
|
629
630
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
630
631
|
"transition-all duration-300 ease-out w-full",
|
|
631
632
|
"group hover:bg-neutral-medium-selected",
|
|
@@ -673,7 +674,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
673
674
|
},
|
|
674
675
|
children: typeof a.icon == "function" ? a.icon({
|
|
675
676
|
size: 24,
|
|
676
|
-
className:
|
|
677
|
+
className: l(
|
|
677
678
|
"nav-icon transition-colors duration-250 ease-out",
|
|
678
679
|
o === a.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
679
680
|
)
|
|
@@ -691,13 +692,13 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
691
692
|
)
|
|
692
693
|
},
|
|
693
694
|
n
|
|
694
|
-
)) }),
|
|
695
|
+
)) }), me = ({
|
|
695
696
|
links: t,
|
|
696
697
|
isLinkActive: e,
|
|
697
698
|
onLinkClick: o
|
|
698
699
|
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => {
|
|
699
700
|
const i = e(a.path) || (a.relatedPaths?.some(
|
|
700
|
-
(
|
|
701
|
+
(s) => e(s)
|
|
701
702
|
) ?? !1);
|
|
702
703
|
return a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
|
|
703
704
|
d.div,
|
|
@@ -716,7 +717,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
716
717
|
onClick: () => {
|
|
717
718
|
o?.(a.path);
|
|
718
719
|
},
|
|
719
|
-
className:
|
|
720
|
+
className: l(
|
|
720
721
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
721
722
|
"transition-all duration-300 ease-out w-full",
|
|
722
723
|
"group hover:bg-neutral-medium-selected",
|
|
@@ -764,7 +765,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
764
765
|
},
|
|
765
766
|
children: typeof a.icon == "function" ? a.icon({
|
|
766
767
|
size: 24,
|
|
767
|
-
className:
|
|
768
|
+
className: l(
|
|
768
769
|
"nav-icon transition-colors duration-250 ease-out",
|
|
769
770
|
i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
770
771
|
)
|
|
@@ -783,18 +784,18 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
783
784
|
},
|
|
784
785
|
n
|
|
785
786
|
);
|
|
786
|
-
}) }),
|
|
787
|
+
}) }), xe = ({
|
|
787
788
|
isActiveModalNotification: t,
|
|
788
789
|
setIsActiveModalNotification: e
|
|
789
790
|
}) => ({ handleNotificationClick: () => {
|
|
790
791
|
e(!0);
|
|
791
|
-
}, isActiveModalNotification: t }),
|
|
792
|
+
}, isActiveModalNotification: t }), be = (t) => {
|
|
792
793
|
const e = p(null);
|
|
793
794
|
return {
|
|
794
795
|
isCollapsed: t,
|
|
795
796
|
navbarRef: e
|
|
796
797
|
};
|
|
797
|
-
},
|
|
798
|
+
}, ye = ({
|
|
798
799
|
isCollapsed: t,
|
|
799
800
|
onToggle: e
|
|
800
801
|
}) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
|
|
@@ -806,14 +807,34 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
806
807
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
807
808
|
children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
808
809
|
}
|
|
809
|
-
) }),
|
|
810
|
+
) }), ge = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
|
|
810
811
|
"img",
|
|
811
812
|
{
|
|
812
813
|
src: t,
|
|
813
814
|
className: "h-2/3 rounded-full",
|
|
814
815
|
alt: e ?? ""
|
|
815
816
|
}
|
|
816
|
-
) })
|
|
817
|
+
) });
|
|
818
|
+
function ve({
|
|
819
|
+
onFilesAccepted: t,
|
|
820
|
+
onFilesRejected: e,
|
|
821
|
+
...o
|
|
822
|
+
}) {
|
|
823
|
+
const a = q.useCallback(
|
|
824
|
+
(i, s) => {
|
|
825
|
+
i.length > 0 && t?.(i), s.length > 0 && e?.(s);
|
|
826
|
+
},
|
|
827
|
+
[t, e]
|
|
828
|
+
), n = A({
|
|
829
|
+
onDrop: a,
|
|
830
|
+
...o
|
|
831
|
+
});
|
|
832
|
+
return {
|
|
833
|
+
...n,
|
|
834
|
+
hasErrors: n.fileRejections.length > 0
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
const he = (t, e = !0) => {
|
|
817
838
|
const o = p(null);
|
|
818
839
|
return C(() => {
|
|
819
840
|
if (!e) return;
|
|
@@ -834,61 +855,62 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
|
|
|
834
855
|
}, [t, e]), o;
|
|
835
856
|
};
|
|
836
857
|
export {
|
|
837
|
-
|
|
858
|
+
Ne as Avatar,
|
|
838
859
|
B as Badge,
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
860
|
+
Se as Button,
|
|
861
|
+
Ie as CardProfile,
|
|
862
|
+
Be as ChangueAccount,
|
|
863
|
+
Re as CheckBox,
|
|
864
|
+
Pe as CheckboxFormik,
|
|
865
|
+
ge as CompanyLogo,
|
|
866
|
+
Te as DialogModal,
|
|
867
|
+
Ee as DrawerDesktop,
|
|
868
|
+
We as DrawerMobile,
|
|
869
|
+
Ht as DropZone,
|
|
870
|
+
Me as Header,
|
|
850
871
|
b as Icons,
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
872
|
+
Ve as Input,
|
|
873
|
+
_e as InputFormik,
|
|
874
|
+
Ze as InputMultiple,
|
|
875
|
+
Pt as LayoutGeneric,
|
|
876
|
+
Ke as Logo,
|
|
877
|
+
Ye as Menu,
|
|
878
|
+
pe as NavBarActions,
|
|
879
|
+
ye as NavbarCollapseButton,
|
|
880
|
+
me as NavbarLinks,
|
|
881
|
+
fe as NavigationLink,
|
|
882
|
+
zt as OtpInput,
|
|
883
|
+
tt as Pagination,
|
|
884
|
+
at as ProfilePictureUpload,
|
|
885
|
+
nt as ProgressBar,
|
|
886
|
+
ue as SecondaryBar,
|
|
887
|
+
st as Select,
|
|
888
|
+
ut as SelectFormik,
|
|
889
|
+
de as Sidebar,
|
|
890
|
+
F as SidebarProvider,
|
|
891
|
+
Dt as SidebarRefProvider,
|
|
892
|
+
dt as Spinner,
|
|
893
|
+
pt as Steps,
|
|
894
|
+
xt as SwipeContainer,
|
|
895
|
+
kt as TabLinks,
|
|
896
|
+
yt as Table,
|
|
897
|
+
gt as TableBody,
|
|
898
|
+
vt as TableCaption,
|
|
899
|
+
ht as TableCell,
|
|
900
|
+
wt as TableFooter,
|
|
901
|
+
jt as TableHead,
|
|
902
|
+
Nt as TableHeader,
|
|
903
|
+
Ct as TableRow,
|
|
904
|
+
Bt as TextArea,
|
|
905
|
+
Rt as Tooltip,
|
|
906
|
+
xe as useActionsNavbar,
|
|
907
|
+
he as useClickOutside,
|
|
908
|
+
Et as useDevices,
|
|
909
|
+
ze as useDialogControl,
|
|
910
|
+
Oe as useDrawerDesktop,
|
|
911
|
+
$e as useDrawerMobile,
|
|
912
|
+
ve as useFileDropzone,
|
|
913
|
+
be as useNavbarCollapse,
|
|
914
|
+
ce as useSidebar,
|
|
893
915
|
j as useSidebarContext
|
|
894
916
|
};
|
package/package.json
CHANGED
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "prometeo-design-system",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.7.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"description": "design kit system",
|
|
7
|
-
"main": "dist/prometeo-design-system.umd.js",
|
|
8
|
-
"module": "dist/prometeo-design-system.es.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
10
|
-
"sideEffects": [
|
|
11
|
-
"**/*.css",
|
|
12
|
-
"**/*.scss"
|
|
13
|
-
],
|
|
14
|
-
"exports": {
|
|
15
|
-
".": {
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"import": "./dist/prometeo-design-system.es.js",
|
|
18
|
-
"require": "./dist/prometeo-design-system.umd.js"
|
|
19
|
-
},
|
|
20
|
-
"./Button": {
|
|
21
|
-
"types": "./dist/Button.d.ts",
|
|
22
|
-
"import": "./dist/Button.es.js"
|
|
23
|
-
},
|
|
24
|
-
"./Avatar": {
|
|
25
|
-
"types": "./dist/Avatar.d.ts",
|
|
26
|
-
"import": "./dist/Avatar.es.js"
|
|
27
|
-
},
|
|
28
|
-
"./CardProfile": {
|
|
29
|
-
"types": "./dist/CardProfile.d.ts",
|
|
30
|
-
"import": "./dist/CardProfile.es.js"
|
|
31
|
-
},
|
|
32
|
-
"./CheckBox": {
|
|
33
|
-
"types": "./dist/CheckBox.d.ts",
|
|
34
|
-
"import": "./dist/CheckBox.es.js"
|
|
35
|
-
},
|
|
36
|
-
"./CheckboxFormik": {
|
|
37
|
-
"types": "./dist/CheckboxFormik.d.ts",
|
|
38
|
-
"import": "./dist/CheckboxFormik.es.js"
|
|
39
|
-
},
|
|
40
|
-
"./DialogModal": {
|
|
41
|
-
"types": "./dist/DialogModal.d.ts",
|
|
42
|
-
"import": "./dist/DialogModal.es.js"
|
|
43
|
-
},
|
|
44
|
-
"./DrawerDesktop": {
|
|
45
|
-
"types": "./dist/DrawerDesktop.d.ts",
|
|
46
|
-
"import": "./dist/DrawerDesktop.es.js"
|
|
47
|
-
},
|
|
48
|
-
"./DrawerMobile": {
|
|
49
|
-
"types": "./dist/DrawerMobile.d.ts",
|
|
50
|
-
"import": "./dist/DrawerMobile.es.js"
|
|
51
|
-
},
|
|
52
|
-
"./Header": {
|
|
53
|
-
"types": "./dist/Header.d.ts",
|
|
54
|
-
"import": "./dist/Header.es.js"
|
|
55
|
-
},
|
|
56
|
-
"./Input": {
|
|
57
|
-
"types": "./dist/Input.d.ts",
|
|
58
|
-
"import": "./dist/Input.es.js"
|
|
59
|
-
},
|
|
60
|
-
"./InputFormik": {
|
|
61
|
-
"types": "./dist/InputFormik.d.ts",
|
|
62
|
-
"import": "./dist/InputFormik.es.js"
|
|
63
|
-
},
|
|
64
|
-
"./Logo": {
|
|
65
|
-
"types": "./dist/Logo.d.ts",
|
|
66
|
-
"import": "./dist/Logo.es.js"
|
|
67
|
-
},
|
|
68
|
-
"./Menu": {
|
|
69
|
-
"types": "./dist/Menu.d.ts",
|
|
70
|
-
"import": "./dist/Menu.es.js"
|
|
71
|
-
},
|
|
72
|
-
"./Pagination": {
|
|
73
|
-
"types": "./dist/Pagination.d.ts",
|
|
74
|
-
"import": "./dist/Pagination.es.js"
|
|
75
|
-
},
|
|
76
|
-
"./ProgressBar": {
|
|
77
|
-
"types": "./dist/ProgressBar.d.ts",
|
|
78
|
-
"import": "./dist/ProgressBar.es.js"
|
|
79
|
-
},
|
|
80
|
-
"./ProfilePictureUpload": {
|
|
81
|
-
"types": "./dist/ProfilePictureUpload.d.ts",
|
|
82
|
-
"import": "./dist/ProfilePictureUpload.es.js"
|
|
83
|
-
},
|
|
84
|
-
"./Select": {
|
|
85
|
-
"types": "./dist/Select.d.ts",
|
|
86
|
-
"import": "./dist/Select.es.js"
|
|
87
|
-
},
|
|
88
|
-
"./SelectFormik": {
|
|
89
|
-
"types": "./dist/SelectFormik.d.ts",
|
|
90
|
-
"import": "./dist/SelectFormik.es.js"
|
|
91
|
-
},
|
|
92
|
-
"./Spinner": {
|
|
93
|
-
"types": "./dist/Spinner.d.ts",
|
|
94
|
-
"import": "./dist/Spinner.es.js"
|
|
95
|
-
},
|
|
96
|
-
"./Steps": {
|
|
97
|
-
"types": "./dist/Steps.d.ts",
|
|
98
|
-
"import": "./dist/Steps.es.js"
|
|
99
|
-
},
|
|
100
|
-
"./SwipeContainer": {
|
|
101
|
-
"types": "./dist/SwipeContainer.d.ts",
|
|
102
|
-
"import": "./dist/SwipeContainer.es.js"
|
|
103
|
-
},
|
|
104
|
-
"./TabLinks": {
|
|
105
|
-
"types": "./dist/TabLinks.d.ts",
|
|
106
|
-
"import": "./dist/TabLinks.es.js"
|
|
107
|
-
},
|
|
108
|
-
"./Table": {
|
|
109
|
-
"types": "./dist/Table.d.ts",
|
|
110
|
-
"import": "./dist/Table.es.js"
|
|
111
|
-
},
|
|
112
|
-
"./TextArea": {
|
|
113
|
-
"types": "./dist/TextArea.d.ts",
|
|
114
|
-
"import": "./dist/TextArea.es.js"
|
|
115
|
-
},
|
|
116
|
-
"./Tooltip": {
|
|
117
|
-
"types": "./dist/Tooltip.d.ts",
|
|
118
|
-
"import": "./dist/Tooltip.es.js"
|
|
119
|
-
},
|
|
120
|
-
"./LayoutGeneric": {
|
|
121
|
-
"types": "./dist/LayoutGeneric.d.ts",
|
|
122
|
-
"import": "./dist/LayoutGeneric.es.js"
|
|
123
|
-
},
|
|
124
|
-
"./OtpInput": {
|
|
125
|
-
"types": "./dist/OtpInput.d.ts",
|
|
126
|
-
"import": "./dist/OtpInput.es.js"
|
|
127
|
-
},
|
|
128
|
-
"./DropZone": {
|
|
129
|
-
"types": "./dist/DropZone.d.ts",
|
|
130
|
-
"import": "./dist/DropZone.es.js"
|
|
131
|
-
},
|
|
132
|
-
"./Icons": {
|
|
133
|
-
"types": "./dist/Icons.d.ts",
|
|
134
|
-
"import": "./dist/Icons.es.js"
|
|
135
|
-
},
|
|
136
|
-
"./InputMultiple": {
|
|
137
|
-
"types": "./dist/InputMultiple.d.ts",
|
|
138
|
-
"import": "./dist/InputMultiple.es.js"
|
|
139
|
-
},
|
|
140
|
-
"./styles": "./dist/prometeo-design-system.css"
|
|
141
|
-
},
|
|
142
|
-
"files": [
|
|
143
|
-
"dist",
|
|
144
|
-
"README.md"
|
|
145
|
-
],
|
|
146
|
-
"keywords": [
|
|
147
|
-
"react",
|
|
148
|
-
"design-system",
|
|
149
|
-
"components",
|
|
150
|
-
"tailwind",
|
|
151
|
-
"framer-motion",
|
|
152
|
-
"typescript",
|
|
153
|
-
"ui-kit"
|
|
154
|
-
],
|
|
155
|
-
"author": "Mat",
|
|
156
|
-
"license": "MIT",
|
|
157
|
-
"repository": {
|
|
158
|
-
"type": "git",
|
|
159
|
-
"url": "https://github.com/your-username/prometeo-design-system.git"
|
|
160
|
-
},
|
|
161
|
-
"homepage": "https://github.com/your-username/prometeo-design-system#readme",
|
|
162
|
-
"bugs": {
|
|
163
|
-
"url": "https://github.com/your-username/prometeo-design-system/issues"
|
|
164
|
-
},
|
|
165
|
-
"scripts": {
|
|
166
|
-
"dev": "vite",
|
|
167
|
-
"build": "tsc -b && vite build",
|
|
168
|
-
"lint": "eslint .",
|
|
169
|
-
"preview": "vite preview",
|
|
170
|
-
"clean": "rm -rf dist",
|
|
171
|
-
"storybook": "storybook dev -p 6006",
|
|
172
|
-
"build-storybook": "storybook build"
|
|
173
|
-
},
|
|
174
|
-
"dependencies": {
|
|
175
|
-
"shared-dependencies-tickets": "^1.0.11"
|
|
176
|
-
},
|
|
177
|
-
"devDependencies": {
|
|
178
|
-
"@eslint/js": "^9.33.0",
|
|
179
|
-
"@gsap/react": "^2.1.2",
|
|
180
|
-
"@storybook/addon-docs": "^9.1.3",
|
|
181
|
-
"@storybook/addon-onboarding": "^9.1.3",
|
|
182
|
-
"@storybook/react-vite": "^9.1.3",
|
|
183
|
-
"@tailwindcss/vite": "^4.1.13",
|
|
184
|
-
"@tanstack/react-table": "^8.21.3",
|
|
185
|
-
"@types/node": "^24.3.1",
|
|
186
|
-
"@types/react": "^19.1.10",
|
|
187
|
-
"@types/react-dom": "^19.1.7",
|
|
188
|
-
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
189
|
-
"class-variance-authority": "^0.7.1",
|
|
190
|
-
"eslint": "^9.33.0",
|
|
191
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
192
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
193
|
-
"eslint-plugin-storybook": "^9.1.3",
|
|
194
|
-
"globals": "^16.3.0",
|
|
195
|
-
"input-otp": "^1.4.2",
|
|
196
|
-
"react": "^19.0.0",
|
|
197
|
-
"react-dom": "^19.0.0",
|
|
198
|
-
"storybook": "^9.1.3",
|
|
199
|
-
"tailwindcss": "^4.1.12",
|
|
200
|
-
"tw-animate-css": "^1.3.7",
|
|
201
|
-
"typescript": "~5.8.3",
|
|
202
|
-
"typescript-eslint": "^8.39.1",
|
|
203
|
-
"vite": "^7.1.2",
|
|
204
|
-
"vite-plugin-dts": "^4.5.4"
|
|
205
|
-
},
|
|
206
|
-
"peerDependencies": {
|
|
207
|
-
"@emotion/is-prop-valid": "^1.4.0",
|
|
208
|
-
"@gsap/react": "^2.0.0",
|
|
209
|
-
"clsx": "^2.0.0",
|
|
210
|
-
"formik": "^2.4.6",
|
|
211
|
-
"framer-motion": "^12.0.0",
|
|
212
|
-
"gsap": "^3.12.5",
|
|
213
|
-
"lucide-react": "^0.400.0",
|
|
214
|
-
"react": "^19.0.0",
|
|
215
|
-
"react-dom": "^19.0.0",
|
|
216
|
-
"react-dropzone": "^14.3.8",
|
|
217
|
-
"react-router": "^7.0.0",
|
|
218
|
-
"react-router-dom": "^7.0.0",
|
|
219
|
-
"react-spinners": "^0.17.0",
|
|
220
|
-
"sonner": "^2.0.7",
|
|
221
|
-
"tailwind-merge": "^3.0.0",
|
|
222
|
-
"use-debounce": "^10.0.0",
|
|
223
|
-
"vaul": "^1.1.2"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "prometeo-design-system",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.7.6",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "design kit system",
|
|
7
|
+
"main": "dist/prometeo-design-system.umd.js",
|
|
8
|
+
"module": "dist/prometeo-design-system.es.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"**/*.css",
|
|
12
|
+
"**/*.scss"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/prometeo-design-system.es.js",
|
|
18
|
+
"require": "./dist/prometeo-design-system.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./Button": {
|
|
21
|
+
"types": "./dist/Button.d.ts",
|
|
22
|
+
"import": "./dist/Button.es.js"
|
|
23
|
+
},
|
|
24
|
+
"./Avatar": {
|
|
25
|
+
"types": "./dist/Avatar.d.ts",
|
|
26
|
+
"import": "./dist/Avatar.es.js"
|
|
27
|
+
},
|
|
28
|
+
"./CardProfile": {
|
|
29
|
+
"types": "./dist/CardProfile.d.ts",
|
|
30
|
+
"import": "./dist/CardProfile.es.js"
|
|
31
|
+
},
|
|
32
|
+
"./CheckBox": {
|
|
33
|
+
"types": "./dist/CheckBox.d.ts",
|
|
34
|
+
"import": "./dist/CheckBox.es.js"
|
|
35
|
+
},
|
|
36
|
+
"./CheckboxFormik": {
|
|
37
|
+
"types": "./dist/CheckboxFormik.d.ts",
|
|
38
|
+
"import": "./dist/CheckboxFormik.es.js"
|
|
39
|
+
},
|
|
40
|
+
"./DialogModal": {
|
|
41
|
+
"types": "./dist/DialogModal.d.ts",
|
|
42
|
+
"import": "./dist/DialogModal.es.js"
|
|
43
|
+
},
|
|
44
|
+
"./DrawerDesktop": {
|
|
45
|
+
"types": "./dist/DrawerDesktop.d.ts",
|
|
46
|
+
"import": "./dist/DrawerDesktop.es.js"
|
|
47
|
+
},
|
|
48
|
+
"./DrawerMobile": {
|
|
49
|
+
"types": "./dist/DrawerMobile.d.ts",
|
|
50
|
+
"import": "./dist/DrawerMobile.es.js"
|
|
51
|
+
},
|
|
52
|
+
"./Header": {
|
|
53
|
+
"types": "./dist/Header.d.ts",
|
|
54
|
+
"import": "./dist/Header.es.js"
|
|
55
|
+
},
|
|
56
|
+
"./Input": {
|
|
57
|
+
"types": "./dist/Input.d.ts",
|
|
58
|
+
"import": "./dist/Input.es.js"
|
|
59
|
+
},
|
|
60
|
+
"./InputFormik": {
|
|
61
|
+
"types": "./dist/InputFormik.d.ts",
|
|
62
|
+
"import": "./dist/InputFormik.es.js"
|
|
63
|
+
},
|
|
64
|
+
"./Logo": {
|
|
65
|
+
"types": "./dist/Logo.d.ts",
|
|
66
|
+
"import": "./dist/Logo.es.js"
|
|
67
|
+
},
|
|
68
|
+
"./Menu": {
|
|
69
|
+
"types": "./dist/Menu.d.ts",
|
|
70
|
+
"import": "./dist/Menu.es.js"
|
|
71
|
+
},
|
|
72
|
+
"./Pagination": {
|
|
73
|
+
"types": "./dist/Pagination.d.ts",
|
|
74
|
+
"import": "./dist/Pagination.es.js"
|
|
75
|
+
},
|
|
76
|
+
"./ProgressBar": {
|
|
77
|
+
"types": "./dist/ProgressBar.d.ts",
|
|
78
|
+
"import": "./dist/ProgressBar.es.js"
|
|
79
|
+
},
|
|
80
|
+
"./ProfilePictureUpload": {
|
|
81
|
+
"types": "./dist/ProfilePictureUpload.d.ts",
|
|
82
|
+
"import": "./dist/ProfilePictureUpload.es.js"
|
|
83
|
+
},
|
|
84
|
+
"./Select": {
|
|
85
|
+
"types": "./dist/Select.d.ts",
|
|
86
|
+
"import": "./dist/Select.es.js"
|
|
87
|
+
},
|
|
88
|
+
"./SelectFormik": {
|
|
89
|
+
"types": "./dist/SelectFormik.d.ts",
|
|
90
|
+
"import": "./dist/SelectFormik.es.js"
|
|
91
|
+
},
|
|
92
|
+
"./Spinner": {
|
|
93
|
+
"types": "./dist/Spinner.d.ts",
|
|
94
|
+
"import": "./dist/Spinner.es.js"
|
|
95
|
+
},
|
|
96
|
+
"./Steps": {
|
|
97
|
+
"types": "./dist/Steps.d.ts",
|
|
98
|
+
"import": "./dist/Steps.es.js"
|
|
99
|
+
},
|
|
100
|
+
"./SwipeContainer": {
|
|
101
|
+
"types": "./dist/SwipeContainer.d.ts",
|
|
102
|
+
"import": "./dist/SwipeContainer.es.js"
|
|
103
|
+
},
|
|
104
|
+
"./TabLinks": {
|
|
105
|
+
"types": "./dist/TabLinks.d.ts",
|
|
106
|
+
"import": "./dist/TabLinks.es.js"
|
|
107
|
+
},
|
|
108
|
+
"./Table": {
|
|
109
|
+
"types": "./dist/Table.d.ts",
|
|
110
|
+
"import": "./dist/Table.es.js"
|
|
111
|
+
},
|
|
112
|
+
"./TextArea": {
|
|
113
|
+
"types": "./dist/TextArea.d.ts",
|
|
114
|
+
"import": "./dist/TextArea.es.js"
|
|
115
|
+
},
|
|
116
|
+
"./Tooltip": {
|
|
117
|
+
"types": "./dist/Tooltip.d.ts",
|
|
118
|
+
"import": "./dist/Tooltip.es.js"
|
|
119
|
+
},
|
|
120
|
+
"./LayoutGeneric": {
|
|
121
|
+
"types": "./dist/LayoutGeneric.d.ts",
|
|
122
|
+
"import": "./dist/LayoutGeneric.es.js"
|
|
123
|
+
},
|
|
124
|
+
"./OtpInput": {
|
|
125
|
+
"types": "./dist/OtpInput.d.ts",
|
|
126
|
+
"import": "./dist/OtpInput.es.js"
|
|
127
|
+
},
|
|
128
|
+
"./DropZone": {
|
|
129
|
+
"types": "./dist/DropZone.d.ts",
|
|
130
|
+
"import": "./dist/DropZone.es.js"
|
|
131
|
+
},
|
|
132
|
+
"./Icons": {
|
|
133
|
+
"types": "./dist/Icons.d.ts",
|
|
134
|
+
"import": "./dist/Icons.es.js"
|
|
135
|
+
},
|
|
136
|
+
"./InputMultiple": {
|
|
137
|
+
"types": "./dist/InputMultiple.d.ts",
|
|
138
|
+
"import": "./dist/InputMultiple.es.js"
|
|
139
|
+
},
|
|
140
|
+
"./styles": "./dist/prometeo-design-system.css"
|
|
141
|
+
},
|
|
142
|
+
"files": [
|
|
143
|
+
"dist",
|
|
144
|
+
"README.md"
|
|
145
|
+
],
|
|
146
|
+
"keywords": [
|
|
147
|
+
"react",
|
|
148
|
+
"design-system",
|
|
149
|
+
"components",
|
|
150
|
+
"tailwind",
|
|
151
|
+
"framer-motion",
|
|
152
|
+
"typescript",
|
|
153
|
+
"ui-kit"
|
|
154
|
+
],
|
|
155
|
+
"author": "Mat",
|
|
156
|
+
"license": "MIT",
|
|
157
|
+
"repository": {
|
|
158
|
+
"type": "git",
|
|
159
|
+
"url": "https://github.com/your-username/prometeo-design-system.git"
|
|
160
|
+
},
|
|
161
|
+
"homepage": "https://github.com/your-username/prometeo-design-system#readme",
|
|
162
|
+
"bugs": {
|
|
163
|
+
"url": "https://github.com/your-username/prometeo-design-system/issues"
|
|
164
|
+
},
|
|
165
|
+
"scripts": {
|
|
166
|
+
"dev": "vite",
|
|
167
|
+
"build": "tsc -b && vite build",
|
|
168
|
+
"lint": "eslint .",
|
|
169
|
+
"preview": "vite preview",
|
|
170
|
+
"clean": "rm -rf dist",
|
|
171
|
+
"storybook": "storybook dev -p 6006",
|
|
172
|
+
"build-storybook": "storybook build"
|
|
173
|
+
},
|
|
174
|
+
"dependencies": {
|
|
175
|
+
"shared-dependencies-tickets": "^1.0.11"
|
|
176
|
+
},
|
|
177
|
+
"devDependencies": {
|
|
178
|
+
"@eslint/js": "^9.33.0",
|
|
179
|
+
"@gsap/react": "^2.1.2",
|
|
180
|
+
"@storybook/addon-docs": "^9.1.3",
|
|
181
|
+
"@storybook/addon-onboarding": "^9.1.3",
|
|
182
|
+
"@storybook/react-vite": "^9.1.3",
|
|
183
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
184
|
+
"@tanstack/react-table": "^8.21.3",
|
|
185
|
+
"@types/node": "^24.3.1",
|
|
186
|
+
"@types/react": "^19.1.10",
|
|
187
|
+
"@types/react-dom": "^19.1.7",
|
|
188
|
+
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
189
|
+
"class-variance-authority": "^0.7.1",
|
|
190
|
+
"eslint": "^9.33.0",
|
|
191
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
192
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
193
|
+
"eslint-plugin-storybook": "^9.1.3",
|
|
194
|
+
"globals": "^16.3.0",
|
|
195
|
+
"input-otp": "^1.4.2",
|
|
196
|
+
"react": "^19.0.0",
|
|
197
|
+
"react-dom": "^19.0.0",
|
|
198
|
+
"storybook": "^9.1.3",
|
|
199
|
+
"tailwindcss": "^4.1.12",
|
|
200
|
+
"tw-animate-css": "^1.3.7",
|
|
201
|
+
"typescript": "~5.8.3",
|
|
202
|
+
"typescript-eslint": "^8.39.1",
|
|
203
|
+
"vite": "^7.1.2",
|
|
204
|
+
"vite-plugin-dts": "^4.5.4"
|
|
205
|
+
},
|
|
206
|
+
"peerDependencies": {
|
|
207
|
+
"@emotion/is-prop-valid": "^1.4.0",
|
|
208
|
+
"@gsap/react": "^2.0.0",
|
|
209
|
+
"clsx": "^2.0.0",
|
|
210
|
+
"formik": "^2.4.6",
|
|
211
|
+
"framer-motion": "^12.0.0",
|
|
212
|
+
"gsap": "^3.12.5",
|
|
213
|
+
"lucide-react": "^0.400.0",
|
|
214
|
+
"react": "^19.0.0",
|
|
215
|
+
"react-dom": "^19.0.0",
|
|
216
|
+
"react-dropzone": "^14.3.8",
|
|
217
|
+
"react-router": "^7.0.0",
|
|
218
|
+
"react-router-dom": "^7.0.0",
|
|
219
|
+
"react-spinners": "^0.17.0",
|
|
220
|
+
"sonner": "^2.0.7",
|
|
221
|
+
"tailwind-merge": "^3.0.0",
|
|
222
|
+
"use-debounce": "^10.0.0",
|
|
223
|
+
"vaul": "^1.1.2"
|
|
224
|
+
}
|
|
225
|
+
}
|