prometeo-design-system 2.7.8 → 2.8.1
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/Button.es.js +5 -5
- package/dist/{CardProfile-WHoeSibd.js → CardProfile-CHUivLbW.js} +28 -28
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +60 -60
- package/dist/CheckboxFormik.es.js +2 -2
- package/dist/DatePicker.es.js +68 -68
- package/dist/DrawerDesktop.es.js +9 -9
- package/dist/DropZone.es.js +32 -32
- package/dist/FAButton.es.js +2 -2
- package/dist/HelperComponent-CcGxM09g.js +24 -0
- package/dist/Icons/Icons.d.ts +2 -2
- package/dist/Icons-ChYkaR8R.js +899 -0
- package/dist/Icons.es.js +2 -951
- package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-TkgHO3JL.js} +43 -43
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-D6as6xD-.js → Input-CsNlU1Hu.js} +67 -74
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +58 -58
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/InputMultiple.es.js +51 -51
- package/dist/Logo.es.js +3 -3
- package/dist/Menu.es.js +2 -2
- package/dist/OtpInput.es.js +68 -68
- package/dist/Pagination.es.js +1 -1
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-sdfP2TL0.js → Select-D7Cs1OlG.js} +4 -4
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +23 -23
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +14 -14
- package/dist/TabLinks.es.js +2 -2
- package/dist/Table.es.js +2 -2
- package/dist/Toast.es.js +23 -23
- package/dist/Tooltip.es.js +7 -7
- package/dist/components/CheckBox/CheckBox.d.ts +5 -4
- package/dist/components/Toaster/Toaster.d.ts +3 -3
- package/dist/exports/Icons.d.ts +1 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +125 -126
- package/package.json +2 -5
- package/dist/HelperComponent-BeNlTMqI.js +0 -24
- package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
package/dist/Toast.es.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import
|
|
2
|
+
import b from "react";
|
|
3
3
|
import { toast as p } from "sonner";
|
|
4
|
+
import { I as m } from "./Icons-ChYkaR8R.js";
|
|
4
5
|
import { c as s } from "./cn-B6yFEsav.js";
|
|
5
|
-
import
|
|
6
|
-
import h from "./Button.es.js";
|
|
6
|
+
import u from "./Button.es.js";
|
|
7
7
|
const x = {
|
|
8
8
|
dark: {
|
|
9
9
|
success: {
|
|
10
10
|
container: "border-b-[2px] border-success-default-default",
|
|
11
11
|
iconClass: "text-success-medium-default",
|
|
12
|
-
icon:
|
|
12
|
+
icon: "CheckCircle"
|
|
13
13
|
},
|
|
14
14
|
error: {
|
|
15
15
|
container: "border-b-[2px] border-error-default-default",
|
|
16
16
|
iconClass: "text-error-medium-default",
|
|
17
|
-
icon:
|
|
17
|
+
icon: "Cancel"
|
|
18
18
|
},
|
|
19
19
|
warning: {
|
|
20
20
|
container: "border-b-[2px] border-warning-default-default",
|
|
21
21
|
iconClass: "text-warning-medium-default",
|
|
22
|
-
icon:
|
|
22
|
+
icon: "Error"
|
|
23
23
|
},
|
|
24
24
|
info: {
|
|
25
25
|
container: " border-b-[2px] border-primary-default-default",
|
|
26
26
|
iconClass: "text-primary-default-default",
|
|
27
|
-
icon:
|
|
27
|
+
icon: "Info"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
light: {
|
|
31
31
|
success: {
|
|
32
32
|
container: "",
|
|
33
33
|
iconClass: "text-success-default-pressed",
|
|
34
|
-
icon:
|
|
34
|
+
icon: "CheckCircle"
|
|
35
35
|
},
|
|
36
36
|
error: {
|
|
37
37
|
container: "",
|
|
38
38
|
iconClass: "text-error-medium-pressed",
|
|
39
|
-
icon:
|
|
39
|
+
icon: "Cancel"
|
|
40
40
|
},
|
|
41
41
|
warning: {
|
|
42
42
|
container: "",
|
|
43
43
|
iconClass: "text-warning-medium-pressed",
|
|
44
|
-
icon:
|
|
44
|
+
icon: "Error"
|
|
45
45
|
},
|
|
46
46
|
info: {
|
|
47
47
|
container: "",
|
|
48
48
|
iconClass: "text-primary-default-pressed",
|
|
49
|
-
icon:
|
|
49
|
+
icon: "Info"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}, i = {
|
|
@@ -62,8 +62,8 @@ const x = {
|
|
|
62
62
|
description: "text-neutral-medium-focused",
|
|
63
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
64
|
}
|
|
65
|
-
},
|
|
66
|
-
const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose:
|
|
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
67
|
return /* @__PURE__ */ e.jsxs(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
@@ -82,7 +82,7 @@ const x = {
|
|
|
82
82
|
{
|
|
83
83
|
className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, 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
86
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
|
|
87
87
|
/* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
|
|
88
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 })
|
|
@@ -90,8 +90,8 @@ const x = {
|
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
r?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
|
-
|
|
93
|
+
r?.label && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
|
+
u,
|
|
95
95
|
{
|
|
96
96
|
label: r?.label,
|
|
97
97
|
onClick: () => {
|
|
@@ -101,8 +101,8 @@ const x = {
|
|
|
101
101
|
color: "secondary"
|
|
102
102
|
}
|
|
103
103
|
) }),
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
f && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
105
|
+
u,
|
|
106
106
|
{
|
|
107
107
|
onClick: () => {
|
|
108
108
|
p.dismiss(n);
|
|
@@ -110,7 +110,7 @@ const x = {
|
|
|
110
110
|
label: "",
|
|
111
111
|
size: "small",
|
|
112
112
|
color: "secondary",
|
|
113
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
113
|
+
icon: /* @__PURE__ */ e.jsx(m.Close, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
|
|
114
114
|
variant: "text",
|
|
115
115
|
animate: !1,
|
|
116
116
|
className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
|
|
@@ -120,10 +120,10 @@ const x = {
|
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function y(l, a) {
|
|
124
124
|
const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
|
|
125
125
|
return p.custom((c) => /* @__PURE__ */ e.jsx(
|
|
126
|
-
|
|
126
|
+
h,
|
|
127
127
|
{
|
|
128
128
|
id: c,
|
|
129
129
|
variant: a?.variant || "success",
|
|
@@ -140,6 +140,6 @@ function M(l, a) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
h as default,
|
|
144
|
+
y as toastpyrion
|
|
145
145
|
};
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { AnimatePresence as f, motion as n } from "framer-motion";
|
|
3
|
+
import { useState as p, cloneElement as x } from "react";
|
|
4
|
+
import { I as b } from "./Icons-ChYkaR8R.js";
|
|
5
5
|
const N = ({
|
|
6
6
|
title: i,
|
|
7
7
|
trigger: o,
|
|
@@ -9,7 +9,7 @@ const N = ({
|
|
|
9
9
|
position: t = "top",
|
|
10
10
|
component: c
|
|
11
11
|
}) => {
|
|
12
|
-
const [s, l] =
|
|
12
|
+
const [s, l] = p(!1), m = () => l(!0), a = () => l(!1), u = o === "hover" ? {
|
|
13
13
|
onMouseEnter: m,
|
|
14
14
|
onMouseLeave: a
|
|
15
15
|
} : {
|
|
@@ -21,8 +21,8 @@ const N = ({
|
|
|
21
21
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
22
22
|
};
|
|
23
23
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative inline-block", children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ e.jsx(
|
|
24
|
+
x(r, u),
|
|
25
|
+
/* @__PURE__ */ e.jsx(f, { children: s && /* @__PURE__ */ e.jsx(
|
|
26
26
|
n.div,
|
|
27
27
|
{
|
|
28
28
|
initial: { opacity: 0, scale: 0.8, y: t === "top" ? 10 : -10 },
|
|
@@ -49,7 +49,7 @@ const N = ({
|
|
|
49
49
|
className: "absolute cursor-pointer -top-2 -right-2 w-6 h-6 bg-neutral-strong-default hover:bg-neutral-medium-default rounded-full flex items-center justify-center transition-colors z-10",
|
|
50
50
|
whileHover: { scale: 1.1 },
|
|
51
51
|
whileTap: { scale: 0.95 },
|
|
52
|
-
children: /* @__PURE__ */ e.jsx(
|
|
52
|
+
children: /* @__PURE__ */ e.jsx(b.Close, { size: 14, className: "text-white" })
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
] })
|
|
@@ -3,8 +3,9 @@ export type CheckBoxProps = {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
} & HTMLProps<HTMLInputElement>;
|
|
6
|
-
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
interface ICheckBox extends CheckBoxProps {
|
|
7
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
value?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('react').NamedExoticComponent<Omit<ICheckBox, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
10
11
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Icons } from '../../Icons/Icons';
|
|
1
2
|
import { ColorMode } from '../Shared/types';
|
|
2
|
-
import { IconComponent } from '../../Icons/Icons';
|
|
3
3
|
type ToastElementsProps = {
|
|
4
4
|
container: string;
|
|
5
5
|
iconClass: string;
|
|
6
|
-
icon:
|
|
6
|
+
icon: keyof typeof Icons;
|
|
7
7
|
};
|
|
8
8
|
type ToastVarians = 'success' | 'error' | 'warning' | 'info';
|
|
9
9
|
type ToastVariantClassnames = {
|
|
@@ -20,7 +20,7 @@ export interface PyrionToastProps {
|
|
|
20
20
|
variant?: keyof typeof toastVariants['dark'];
|
|
21
21
|
title?: string;
|
|
22
22
|
description?: string;
|
|
23
|
-
icon?:
|
|
23
|
+
icon?: keyof typeof Icons;
|
|
24
24
|
duration?: number;
|
|
25
25
|
button?: {
|
|
26
26
|
label?: string;
|
package/dist/exports/Icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Icons } from '../Icons/Icons';
|