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
package/dist/SelectFormik.es.js
CHANGED
package/dist/Skeleton.es.js
CHANGED
package/dist/Spinner.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
|
|
3
3
|
import { c as L } from "./cn-B6yFEsav.js";
|
|
4
4
|
const y = ({
|
package/dist/Steps.es.js
CHANGED
package/dist/Switch.es.js
CHANGED
package/dist/TabLinks.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
1
|
+
import { j as n } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { motion as x } from "framer-motion";
|
|
3
3
|
import { memo as N } from "react";
|
|
4
4
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
@@ -80,8 +80,7 @@ function c({
|
|
|
80
80
|
}
|
|
81
81
|
c.displayName = "TabLinks";
|
|
82
82
|
const C = N(c, (t, e) => {
|
|
83
|
-
if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange ||
|
|
84
|
-
t.renderTab !== e.renderTab || t.items.length !== e.items.length)
|
|
83
|
+
if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
|
|
85
84
|
return !1;
|
|
86
85
|
for (let i = 0; i < t.items.length; i++) {
|
|
87
86
|
const l = t.items[i], d = e.items[i];
|
package/dist/Table.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
|
package/dist/TextArea.es.js
CHANGED
package/dist/Toast.d.ts
ADDED
package/dist/Toast.es.js
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
|
+
import b from "react";
|
|
3
|
+
import { toast as p } from "sonner";
|
|
4
|
+
import { Icons as m } from "./Icons.es.js";
|
|
5
|
+
import { c as s } from "./cn-B6yFEsav.js";
|
|
6
|
+
import { B as u } from "./Button-Bc0LYLfg.js";
|
|
7
|
+
const x = {
|
|
8
|
+
dark: {
|
|
9
|
+
success: {
|
|
10
|
+
container: "border-b-[2px] border-success-default-default",
|
|
11
|
+
iconClass: "text-success-medium-default",
|
|
12
|
+
icon: "CheckCircle"
|
|
13
|
+
},
|
|
14
|
+
error: {
|
|
15
|
+
container: "border-b-[2px] border-error-default-default",
|
|
16
|
+
iconClass: "text-error-medium-default",
|
|
17
|
+
icon: "Cancel"
|
|
18
|
+
},
|
|
19
|
+
warning: {
|
|
20
|
+
container: "border-b-[2px] border-warning-default-default",
|
|
21
|
+
iconClass: "text-warning-medium-default",
|
|
22
|
+
icon: "Error"
|
|
23
|
+
},
|
|
24
|
+
info: {
|
|
25
|
+
container: " border-b-[2px] border-primary-default-default",
|
|
26
|
+
iconClass: "text-primary-default-default",
|
|
27
|
+
icon: "Info"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
light: {
|
|
31
|
+
success: {
|
|
32
|
+
container: "",
|
|
33
|
+
iconClass: "text-success-default-pressed",
|
|
34
|
+
icon: "CheckCircle"
|
|
35
|
+
},
|
|
36
|
+
error: {
|
|
37
|
+
container: "",
|
|
38
|
+
iconClass: "text-error-medium-pressed",
|
|
39
|
+
icon: "Cancel"
|
|
40
|
+
},
|
|
41
|
+
warning: {
|
|
42
|
+
container: "",
|
|
43
|
+
iconClass: "text-warning-medium-pressed",
|
|
44
|
+
icon: "Error"
|
|
45
|
+
},
|
|
46
|
+
info: {
|
|
47
|
+
container: "",
|
|
48
|
+
iconClass: "text-primary-default-pressed",
|
|
49
|
+
icon: "Info"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, i = {
|
|
53
|
+
dark: {
|
|
54
|
+
container: "bg-neutral-default-default",
|
|
55
|
+
title: "text-neutral-strong-default",
|
|
56
|
+
description: "text-neutral-default-default",
|
|
57
|
+
shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),0px 15px 20px 0px rgba(0, 0, 0, 0.25),0px 0px 10px 0px rgba(0, 0, 0, 0.4),0px 6px 20px 0px rgba(229, 229, 235, 0.03) inset"
|
|
58
|
+
},
|
|
59
|
+
light: {
|
|
60
|
+
container: "bg-neutral-default-default-light",
|
|
61
|
+
title: "text-neutral-weak-default",
|
|
62
|
+
description: "text-neutral-medium-focused",
|
|
63
|
+
shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
|
|
64
|
+
}
|
|
65
|
+
}, h = (l) => {
|
|
66
|
+
const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: f = !1 } = l;
|
|
67
|
+
return /* @__PURE__ */ e.jsxs(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
style: {
|
|
71
|
+
boxShadow: i[t].shadow
|
|
72
|
+
},
|
|
73
|
+
className: s(
|
|
74
|
+
"flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
|
|
75
|
+
"w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
|
|
76
|
+
i[t].container,
|
|
77
|
+
x[t][d].container
|
|
78
|
+
),
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ e.jsxs(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: b.createElement(m[x[t][d].icon || c], { size: 24, className: x[t][d].iconClass }) }),
|
|
86
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
|
|
87
|
+
/* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
|
|
88
|
+
o && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[t].description), children: o })
|
|
89
|
+
] })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
r?.label && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
|
+
u,
|
|
95
|
+
{
|
|
96
|
+
label: r?.label,
|
|
97
|
+
onClick: () => {
|
|
98
|
+
r?.onClick(), p.dismiss(n);
|
|
99
|
+
},
|
|
100
|
+
size: "small",
|
|
101
|
+
color: "secondary"
|
|
102
|
+
}
|
|
103
|
+
) }),
|
|
104
|
+
f && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
105
|
+
u,
|
|
106
|
+
{
|
|
107
|
+
onClick: () => {
|
|
108
|
+
p.dismiss(n);
|
|
109
|
+
},
|
|
110
|
+
label: "",
|
|
111
|
+
size: "small",
|
|
112
|
+
color: "secondary",
|
|
113
|
+
icon: /* @__PURE__ */ e.jsx(m.Close, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
|
|
114
|
+
variant: "text",
|
|
115
|
+
animate: !1,
|
|
116
|
+
className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
|
|
117
|
+
}
|
|
118
|
+
) })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
function y(l, a) {
|
|
124
|
+
const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
|
|
125
|
+
return p.custom((c) => /* @__PURE__ */ e.jsx(
|
|
126
|
+
h,
|
|
127
|
+
{
|
|
128
|
+
id: c,
|
|
129
|
+
variant: a?.variant || "success",
|
|
130
|
+
title: l,
|
|
131
|
+
description: a?.description,
|
|
132
|
+
icon: a?.icon,
|
|
133
|
+
button: a?.button,
|
|
134
|
+
showClose: r,
|
|
135
|
+
colorMode: n
|
|
136
|
+
}
|
|
137
|
+
), {
|
|
138
|
+
duration: o,
|
|
139
|
+
unstyled: !0
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
h as default,
|
|
144
|
+
y as toastpyrion
|
|
145
|
+
};
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { AnimatePresence as f, motion as n } from "framer-motion";
|
|
3
3
|
import { useState as p, cloneElement as x } from "react";
|
|
4
4
|
import { Icons as b } from "./Icons.es.js";
|
|
@@ -1,42 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
readonly warning: {
|
|
14
|
-
readonly background: "linear-gradient(to right, oklch(0.75 0.15 85) 0%, #27272A 100%)";
|
|
15
|
-
readonly color: "oklch(0.95 0.02 85)";
|
|
16
|
-
readonly boxShadow: "0 10px 25px -5px oklch(0.5 0.15 85 / 0.4), 0 4px 6px -2px oklch(0.4 0.1 85 / 0.3)";
|
|
17
|
-
};
|
|
18
|
-
readonly info: {
|
|
19
|
-
readonly background: "linear-gradient(to right, oklch(0.65 0.2 250) 0%, #27272A 100%)";
|
|
20
|
-
readonly color: "oklch(0.95 0.02 250)";
|
|
21
|
-
readonly boxShadow: "0 10px 25px -5px oklch(0.4 0.2 250 / 0.4), 0 4px 6px -2px oklch(0.3 0.15 250 / 0.3)";
|
|
1
|
+
import { Icons } from '../../Icons/Icons';
|
|
2
|
+
import { ColorMode } from '../Shared/types';
|
|
3
|
+
type ToastElementsProps = {
|
|
4
|
+
container: string;
|
|
5
|
+
iconClass: string;
|
|
6
|
+
icon: keyof typeof Icons;
|
|
7
|
+
};
|
|
8
|
+
type ToastVarians = 'success' | 'error' | 'warning' | 'info';
|
|
9
|
+
type ToastVariantClassnames = {
|
|
10
|
+
dark: {
|
|
11
|
+
[key in ToastVarians]: ToastElementsProps;
|
|
22
12
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly color: "oklch(0.95 0.02 280)";
|
|
26
|
-
readonly boxShadow: "0 10px 25px -5px oklch(0.4 0.15 280 / 0.3), 0 4px 6px -2px oklch(0.3 0.1 280 / 0.2)";
|
|
13
|
+
light: {
|
|
14
|
+
[key in ToastVarians]: ToastElementsProps;
|
|
27
15
|
};
|
|
28
16
|
};
|
|
29
|
-
|
|
17
|
+
declare const toastVariants: ToastVariantClassnames;
|
|
18
|
+
export interface PyrionToastProps {
|
|
30
19
|
id: string | number;
|
|
31
|
-
variant
|
|
20
|
+
variant?: keyof typeof toastVariants['dark'];
|
|
32
21
|
title?: string;
|
|
33
|
-
description
|
|
34
|
-
icon?:
|
|
22
|
+
description?: string;
|
|
23
|
+
icon?: keyof typeof Icons;
|
|
35
24
|
duration?: number;
|
|
36
25
|
button?: {
|
|
37
26
|
label?: string;
|
|
38
27
|
onClick: () => void;
|
|
39
28
|
};
|
|
29
|
+
colorMode?: ColorMode;
|
|
30
|
+
showClose?: boolean;
|
|
40
31
|
}
|
|
41
|
-
declare const
|
|
42
|
-
export default
|
|
32
|
+
declare const PyrionToast: (props: PyrionToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default PyrionToast;
|
|
34
|
+
export declare function toastpyrion(title: string, options?: Omit<PyrionToastProps, 'id'>): string | number;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default } from '../components/Drawer/DrawerDesktop';
|
|
2
2
|
export { useDrawerDesktop } from '../components/Drawer/useDrawerDesktop';
|
|
3
|
+
export type { DrawerDesktopProps } from '../components/Drawer/DrawerDesktop';
|
|
4
|
+
export type { DrawerDesktopHandle } from '../components/Drawer/DrawerDesktop';
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default } from '../components/Drawer/DrawerMobile';
|
|
2
2
|
export { useDrawerMobile } from '../components/Drawer/useDrawerMobile';
|
|
3
|
+
export type { DrawerMobileProps } from '../components/Drawer/DrawerMobile';
|
|
4
|
+
export type { DrawerMobileHandle } from '../components/Drawer/DrawerMobile';
|
package/dist/exports/Select.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default } from '../components/Select/Select';
|
|
2
2
|
export type { SelectProps } from '../components/Select/Select';
|
|
3
|
+
export type { CustomSelectionDisplayProps } from '../components/Select/Select';
|
|
4
|
+
export type { CustomSelectOptionRendererProps } from '../components/Select/Select';
|
|
5
|
+
export type { SelectOptionType } from '../components/Select/Select';
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export { default as SegmentedButton } from './components/SegmentedButton/Segment
|
|
|
33
33
|
export { default as LayoutGeneric } from './components/Layout/LayoutGeneric';
|
|
34
34
|
export { default as ImageGallery } from './components/Image/ImageGallery';
|
|
35
35
|
export { default as Image } from './components/Image/Image';
|
|
36
|
+
export { default as Toast } from './components/Toaster/Toaster';
|
|
37
|
+
export { default as ToastProvider } from './components/Toaster/ToastProvider';
|
|
38
|
+
export { toastpyrion } from './components/Toaster/Toaster';
|
|
36
39
|
export * from './components/Sidebar';
|
|
37
40
|
export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
38
41
|
export { Badge } from './components/Sidebar/components/badge';
|
|
@@ -76,7 +79,7 @@ export type { ISelectFormik, ISelectFormikOption, } from './components/SelectFor
|
|
|
76
79
|
export type { SelectFormikProps } from './components/SelectFormik/SelectFormik';
|
|
77
80
|
export type { DialogHandle } from './components/Dialog/Dialog';
|
|
78
81
|
export { DropZone } from './components/DropZone/DropZone';
|
|
79
|
-
export type { ToasterPrometeo } from './components/Toaster/Toaster';
|
|
82
|
+
export type { PyrionToastProps as ToasterPrometeo } from './components/Toaster/Toaster';
|
|
80
83
|
export type { LayoutGenericProps } from './components/Layout/LayoutGeneric';
|
|
81
84
|
export type { CountdownProgressProps } from './components/ProgressBar/ProgressBar';
|
|
82
85
|
export type { IToolTipProps } from './components/Tooltip/Tootip';
|