prometeo-design-system 2.7.9 → 2.8.2
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-DV3gwvqE.js → CardProfile-WHoeSibd.js} +24 -24
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +4 -4
- package/dist/DatePicker.es.js +68 -68
- package/dist/DrawerDesktop.es.js +4 -4
- package/dist/DropZone.es.js +32 -32
- package/dist/FAButton.es.js +2 -2
- package/dist/HelperComponent-BeNlTMqI.js +24 -0
- package/dist/Icons/Icons.d.ts +61 -1
- package/dist/Icons.es.js +572 -410
- package/dist/{ImageGallery-D8nIvBpV.js → ImageGallery-WKzUevOQ.js} +43 -43
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-60IT1aGF.js → Input-Bdiozi8s.js} +68 -82
- package/dist/Input.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 +42 -42
- package/dist/Pagination.es.js +1 -1
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-C4UvSsof.js → Select-DpnghyhT.js} +164 -164
- package/dist/Select.es.js +1 -1
- 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/Spinner/SpinnerV2.d.ts +12 -0
- package/dist/components/Toaster/Toaster.d.ts +3 -3
- package/dist/exports/Icons.d.ts +1 -1
- package/dist/index.d.ts +0 -12
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +111 -122
- package/package.json +2 -27
- package/dist/CheckboxFormik.d.ts +0 -6
- package/dist/CheckboxFormik.es.js +0 -88
- package/dist/HelperComponent-U6mPwuDH.js +0 -24
- package/dist/InputFormik.d.ts +0 -6
- package/dist/InputFormik.es.js +0 -213
- package/dist/InputFormikV2.d.ts +0 -6
- package/dist/InputFormikV2.es.js +0 -41
- package/dist/RadioButtonFormik.d.ts +0 -2
- package/dist/RadioButtonFormik.es.js +0 -30
- package/dist/SelectFormik.d.ts +0 -6
- package/dist/SelectFormik.es.js +0 -62
- package/dist/SelectFormikLegacy.d.ts +0 -6
- package/dist/SelectFormikLegacy.es.js +0 -194
- package/dist/components/CheckboxFormik/CheckboxFormik.d.ts +0 -12
- package/dist/components/InputFormik/InputFormik.d.ts +0 -23
- package/dist/components/InputFormik/InputFormikV2.d.ts +0 -6
- package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +0 -8
- package/dist/components/SelectFormik/SelectFormik.d.ts +0 -8
- package/dist/components/SelectFormik/SelectFormikLegacy.d.ts +0 -21
- package/dist/exports/CheckboxFormik.d.ts +0 -2
- package/dist/exports/InputFormik.d.ts +0 -2
- package/dist/exports/InputFormikV2.d.ts +0 -2
- package/dist/exports/RadioButtonFormik.d.ts +0 -1
- package/dist/exports/SelectFormik.d.ts +0 -2
- package/dist/exports/SelectFormikLegacy.d.ts +0 -2
- package/dist/pages/Autocomplete.page.d.ts +0 -2
- package/dist/pages/ButtonsPage.d.ts +0 -2
- package/dist/pages/DatePicker.d.ts +0 -2
- package/dist/pages/DialogPage.d.ts +0 -2
- package/dist/pages/DrawersPage.d.ts +0 -2
- package/dist/pages/ImagesPage.d.ts +0 -2
- package/dist/pages/OtpPage.d.ts +0 -2
- package/dist/pages/RecurrentDatePicker.page.d.ts +0 -2
- package/dist/pages/SelectsPage.d.ts +0 -2
- package/dist/pages/Skeletons.d.ts +0 -2
- package/dist/pages/ToastsPage.d.ts +0 -2
- package/dist/preview/AutocompletePreview.d.ts +0 -2
- package/dist/preview/ButtonPreview.d.ts +0 -2
- package/dist/preview/DialogModalPreview.d.ts +0 -2
- package/dist/preview/DrawerMobilePreview.d.ts +0 -2
- package/dist/preview/Dropzone.d.ts +0 -2
- package/dist/preview/FABPreview.d.ts +0 -2
- package/dist/preview/IconsPreview.d.ts +0 -2
- package/dist/preview/ImagePreview.d.ts +0 -2
- package/dist/preview/InputsPreviews.d.ts +0 -2
- package/dist/preview/Layout.d.ts +0 -2
- package/dist/preview/OTPPreview.d.ts +0 -2
- package/dist/preview/RadioButtonPreview.d.ts +0 -2
- package/dist/preview/RecurrentDatePickerPreview.d.ts +0 -2
- package/dist/preview/SegmentedButtonPreview.d.ts +0 -2
- package/dist/preview/SelectPreview/CustomFooterExample.d.ts +0 -2
- package/dist/preview/SelectPreview/SelectGroupedOptionsPreview.d.ts +0 -2
- package/dist/preview/SelectPreview/SelectPreview.d.ts +0 -2
- package/dist/preview/SidebarPreview.d.ts +0 -2
- package/dist/preview/StepsPreview.d.ts +0 -2
- package/dist/preview/SwitchPreview.d.ts +0 -2
- package/dist/preview/TabLinks.d.ts +0 -2
- package/dist/preview/TablePreview.d.ts +0 -2
- package/dist/preview/TextArea.d.ts +0 -2
- package/dist/preview/ToastsPreview.d.ts +0 -2
package/dist/Select.es.js
CHANGED
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as G } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { g as i, S as H } from "./Select-
|
|
2
|
+
import { g as i, S as H } from "./Select-DpnghyhT.js";
|
|
3
3
|
import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
|
|
4
4
|
function te(e) {
|
|
5
5
|
const {
|
package/dist/Steps.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Check as j } from "./Icons.es.js";
|
|
3
|
+
import { c as y } from "./cn-B6yFEsav.js";
|
|
3
4
|
import { motion as r } from "framer-motion";
|
|
4
5
|
import N from "react";
|
|
5
|
-
import { Icons as y } from "./Icons.es.js";
|
|
6
6
|
const b = ({
|
|
7
7
|
index: n,
|
|
8
8
|
isHorizontal: t,
|
|
@@ -80,7 +80,7 @@ const b = ({
|
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
] });
|
|
83
|
-
},
|
|
83
|
+
}, S = ({
|
|
84
84
|
steps: n,
|
|
85
85
|
currentStep: t,
|
|
86
86
|
orientation: u = "horizontal",
|
|
@@ -115,7 +115,7 @@ const b = ({
|
|
|
115
115
|
connectorContainer: "px-2",
|
|
116
116
|
iconSize: 28
|
|
117
117
|
}
|
|
118
|
-
}, w = (a) => a < t ? "completed" : a === t ? "current" : "upcoming",
|
|
118
|
+
}, w = (a) => a < t ? "completed" : a === t ? "current" : "upcoming", g = (a) => {
|
|
119
119
|
const l = `${m[i].circle} rounded-full flex items-center justify-center font-medium`;
|
|
120
120
|
switch (a) {
|
|
121
121
|
case "completed":
|
|
@@ -125,7 +125,7 @@ const b = ({
|
|
|
125
125
|
default:
|
|
126
126
|
return `${l} bg-neutral-medium-default text-neutral-medium-default`;
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, h = (a) => {
|
|
129
129
|
p && o && o(a);
|
|
130
130
|
}, v = c ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
|
|
131
131
|
return /* @__PURE__ */ e.jsx("div", { className: v, children: n.map((a, l) => {
|
|
@@ -135,16 +135,16 @@ const b = ({
|
|
|
135
135
|
/* @__PURE__ */ e.jsx(
|
|
136
136
|
r.div,
|
|
137
137
|
{
|
|
138
|
-
className: `${
|
|
138
|
+
className: `${g(d)} ${f ? "cursor-pointer" : ""} relative z-10`,
|
|
139
139
|
initial: { scale: 0.8, opacity: 0 },
|
|
140
140
|
animate: { scale: 1, opacity: 1 },
|
|
141
141
|
transition: { duration: 0.3, delay: l * 0.3 },
|
|
142
142
|
whileTap: f ? { scale: 0.95 } : {},
|
|
143
|
-
onClick: () =>
|
|
144
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
143
|
+
onClick: () => h(l),
|
|
144
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(j, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className:
|
|
147
|
+
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: y(
|
|
148
148
|
"absolute text-center w-28 -bottom-2 translate-y-full",
|
|
149
149
|
m[i].description,
|
|
150
150
|
"text-gray-400 mt-2 text-center",
|
|
@@ -171,13 +171,13 @@ const b = ({
|
|
|
171
171
|
/* @__PURE__ */ e.jsx(
|
|
172
172
|
r.div,
|
|
173
173
|
{
|
|
174
|
-
className: `${
|
|
174
|
+
className: `${g(d)} ${f ? "cursor-pointer" : ""}`,
|
|
175
175
|
initial: { scale: 0.8, opacity: 0 },
|
|
176
176
|
animate: { scale: 1, opacity: 1 },
|
|
177
177
|
transition: { duration: 0.3, delay: l * 0.1 },
|
|
178
178
|
whileTap: f ? { scale: 0.95 } : {},
|
|
179
|
-
onClick: () =>
|
|
180
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
179
|
+
onClick: () => h(l),
|
|
180
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(j, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
183
|
s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
|
|
@@ -187,7 +187,7 @@ const b = ({
|
|
|
187
187
|
initial: { opacity: 0, x: -10 },
|
|
188
188
|
animate: { opacity: 1, x: 0 },
|
|
189
189
|
transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
|
|
190
|
-
children: a.description && /* @__PURE__ */ e.jsx("p", { className:
|
|
190
|
+
children: a.description && /* @__PURE__ */ e.jsx("p", { className: y(
|
|
191
191
|
"h-full text-start flex items-center justify-start ",
|
|
192
192
|
m[i].description,
|
|
193
193
|
"text-gray-400",
|
|
@@ -209,5 +209,5 @@ const b = ({
|
|
|
209
209
|
}) });
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
S as Steps
|
|
213
213
|
};
|
package/dist/TabLinks.es.js
CHANGED
|
@@ -20,7 +20,7 @@ function o({
|
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
className: r(
|
|
23
|
-
"flex flex-row justify-around items-end relative border-b
|
|
23
|
+
"flex flex-row justify-around items-end relative border-b border-neutral-strong-default w-full md:justify-start md:px-10 md:gap-5",
|
|
24
24
|
l
|
|
25
25
|
),
|
|
26
26
|
role: "tablist",
|
|
@@ -49,7 +49,7 @@ function o({
|
|
|
49
49
|
{
|
|
50
50
|
layoutId: "tab-indicator",
|
|
51
51
|
className: r(
|
|
52
|
-
"absolute -bottom-
|
|
52
|
+
"absolute -bottom-px left-0 right-0 h-[5px] rounded-t-xl bg-primary-default-default z-0",
|
|
53
53
|
f
|
|
54
54
|
),
|
|
55
55
|
transition: {
|
package/dist/Table.es.js
CHANGED
|
@@ -6,7 +6,7 @@ const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div
|
|
|
6
6
|
{
|
|
7
7
|
ref: a,
|
|
8
8
|
className: l(
|
|
9
|
-
"w-full caption-bottom text-sm border-b
|
|
9
|
+
"w-full caption-bottom text-sm border-b rounded-lg border-neutral-default-default",
|
|
10
10
|
e
|
|
11
11
|
),
|
|
12
12
|
...t
|
|
@@ -36,7 +36,7 @@ const b = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx(
|
|
|
36
36
|
{
|
|
37
37
|
ref: a,
|
|
38
38
|
className: l(
|
|
39
|
-
"border-t bg-muted/50 font-medium [&>tr]:last
|
|
39
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0!",
|
|
40
40
|
e
|
|
41
41
|
),
|
|
42
42
|
...t
|
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 w from "react";
|
|
3
3
|
import { toast as p } from "sonner";
|
|
4
|
-
import { Icons as m } from "./Icons.es.js";
|
|
5
4
|
import { c as s } from "./cn-B6yFEsav.js";
|
|
6
|
-
import u from "./
|
|
5
|
+
import { Info as m, Error as u, Cancel as f, CheckCircle as b, Close as C } from "./Icons.es.js";
|
|
6
|
+
import h 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: b
|
|
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: f
|
|
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: u
|
|
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: m
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
light: {
|
|
31
31
|
success: {
|
|
32
32
|
container: "",
|
|
33
33
|
iconClass: "text-success-default-pressed",
|
|
34
|
-
icon:
|
|
34
|
+
icon: b
|
|
35
35
|
},
|
|
36
36
|
error: {
|
|
37
37
|
container: "",
|
|
38
38
|
iconClass: "text-error-medium-pressed",
|
|
39
|
-
icon:
|
|
39
|
+
icon: f
|
|
40
40
|
},
|
|
41
41
|
warning: {
|
|
42
42
|
container: "",
|
|
43
43
|
iconClass: "text-warning-medium-pressed",
|
|
44
|
-
icon:
|
|
44
|
+
icon: u
|
|
45
45
|
},
|
|
46
46
|
info: {
|
|
47
47
|
container: "",
|
|
48
48
|
iconClass: "text-primary-default-pressed",
|
|
49
|
-
icon:
|
|
49
|
+
icon: m
|
|
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
|
+
}, v = (l) => {
|
|
66
|
+
const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: g = !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: w.createElement(c || x[t][d].icon, { 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: "
|
|
94
|
-
|
|
93
|
+
r?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
|
+
h,
|
|
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
|
+
g && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
105
|
+
h,
|
|
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(C, { 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 M(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
|
+
v,
|
|
127
127
|
{
|
|
128
128
|
id: c,
|
|
129
129
|
variant: a?.variant || "success",
|
|
@@ -140,6 +140,6 @@ function y(l, a) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
v as default,
|
|
144
|
+
M 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 { Close as f } from "./Icons.es.js";
|
|
3
|
+
import { AnimatePresence as p, motion as n } from "framer-motion";
|
|
4
|
+
import { useState as x, cloneElement as b } from "react";
|
|
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] = x(!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
|
+
b(r, u),
|
|
25
|
+
/* @__PURE__ */ e.jsx(p, { 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(f, { size: 14, className: "text-white" })
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
] })
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SizeVariant } from '../Shared/types';
|
|
2
|
+
type SpinnerVariant = 'sync' | 'clip' | 'bounce' | 'dot' | 'grid' | 'hash';
|
|
3
|
+
export interface SpinnerProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
secondaryColor?: string;
|
|
6
|
+
size?: SizeVariant;
|
|
7
|
+
className?: string;
|
|
8
|
+
speedMultiplier?: number;
|
|
9
|
+
variant?: SpinnerVariant;
|
|
10
|
+
}
|
|
11
|
+
declare const SpinnerV2: (props: SpinnerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default SpinnerV2;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Icons } from '../../Icons/Icons';
|
|
2
1
|
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: IconComponent;
|
|
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?: IconComponent;
|
|
24
24
|
duration?: number;
|
|
25
25
|
button?: {
|
|
26
26
|
label?: string;
|
package/dist/exports/Icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../Icons/Icons';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,11 @@ export { default as Avatar } from './components/Avatar/Avatar';
|
|
|
2
2
|
export { default as Button } from './components/Button/Button';
|
|
3
3
|
export { CardProfile } from './components/CardProfile/CardProfile';
|
|
4
4
|
export { default as CheckBox } from './components/CheckBox/CheckBox';
|
|
5
|
-
export { default as CheckboxFormik } from './components/CheckboxFormik/CheckboxFormik';
|
|
6
5
|
export { default as DialogModal } from './components/Dialog/Dialog';
|
|
7
6
|
export { default as DrawerDesktop } from './components/Drawer/DrawerDesktop';
|
|
8
7
|
export { default as DrawerMobile } from './components/Drawer/DrawerMobile';
|
|
9
8
|
export { default as Header } from './components/Header/Header';
|
|
10
9
|
export { default as Input } from './components/Input/Input';
|
|
11
|
-
export { default as InputFormik } from './components/InputFormik/InputFormik';
|
|
12
10
|
export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
|
|
13
11
|
export { default as Logo } from './components/Logo/Logo';
|
|
14
12
|
export { Menu } from './components/Menu/MenuComposable';
|
|
@@ -16,8 +14,6 @@ export { default as Pagination } from './components/Pagination/Pagination';
|
|
|
16
14
|
export { ProfilePictureUpload } from './components/ProfilePictureUpload/ProfilePictureUpload';
|
|
17
15
|
export { default as ProgressBar } from './components/ProgressBar/ProgressBar';
|
|
18
16
|
export { default as Select } from './components/Select/Select';
|
|
19
|
-
export { default as SelectFormikLegacy } from './components/SelectFormik/SelectFormikLegacy';
|
|
20
|
-
export { default as SelectFormik } from './components/SelectFormik/SelectFormik';
|
|
21
17
|
export { default as ChangueAccount } from './components/Sidebar/components/changue-account';
|
|
22
18
|
export { default as Spinner } from './components/Spinner/Spinner';
|
|
23
19
|
export { default as Steps } from './components/Steps/Steps';
|
|
@@ -38,8 +34,6 @@ export { default as ToastProvider } from './components/Toaster/ToastProvider';
|
|
|
38
34
|
export { toastpyrion } from './components/Toaster/Toaster';
|
|
39
35
|
export { default as SelectSearch } from './components/SelectSearch/SelectSearch';
|
|
40
36
|
export { default as FAButton } from './components/FAB/FAButton';
|
|
41
|
-
export { default as InputFormikV2 } from './components/InputFormik/InputFormikV2';
|
|
42
|
-
export { default as RadioButtonFormik } from './components/RadioButtonFormik/RadioButtonFormik';
|
|
43
37
|
export { default as RadioButton } from './components/RadioButton/RadioButton';
|
|
44
38
|
export * from './components/Sidebar';
|
|
45
39
|
export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
|
|
@@ -60,11 +54,9 @@ export { useIsMobile } from './hooks/useDevice';
|
|
|
60
54
|
export type { ButtonProps } from './components/Button/Button';
|
|
61
55
|
export type { ISessionLocalStorage } from './components/CardProfile/CardProfile';
|
|
62
56
|
export type { CheckBoxProps } from './components/CheckBox/CheckBox';
|
|
63
|
-
export type { ICheckboxFormik } from './components/CheckboxFormik/CheckboxFormik';
|
|
64
57
|
export type { DropZoneProps } from './components/DropZone/DropZone';
|
|
65
58
|
export type { IHeader } from './components/Header/Header';
|
|
66
59
|
export type { InputProps, InputSize, InputVariant, } from './components/Input/Input';
|
|
67
|
-
export type { IInputFormik } from './components/InputFormik/InputFormik';
|
|
68
60
|
export type { IMenuItems, IMenuRoot } from './components/Menu/MenuComposable';
|
|
69
61
|
export type { OtpInputProps } from './components/OtpInput/OtpInput';
|
|
70
62
|
export type { BadgeProps } from './components/Sidebar/components/badge';
|
|
@@ -80,8 +72,6 @@ export type { PaginationProps } from './components/Pagination/Pagination';
|
|
|
80
72
|
export type { ProfilePictureUploadProps } from './components/ProfilePictureUpload/ProfilePictureUpload';
|
|
81
73
|
export type { Step, StepsProps } from './components/Steps/Steps';
|
|
82
74
|
export type { SelectProps } from './components/Select/Select';
|
|
83
|
-
export type { ISelectFormik, ISelectFormikOption, } from './components/SelectFormik/SelectFormikLegacy';
|
|
84
|
-
export type { SelectFormikProps } from './components/SelectFormik/SelectFormik';
|
|
85
75
|
export type { DialogHandle } from './components/Dialog/Dialog';
|
|
86
76
|
export { DropZone } from './components/DropZone/DropZone';
|
|
87
77
|
export type { PyrionToastProps as ToasterPrometeo } from './components/Toaster/Toaster';
|
|
@@ -106,7 +96,5 @@ export type { SelectControlsHandler } from './components/Select/Select';
|
|
|
106
96
|
export type { SelectOptionType } from './components/Select/Select';
|
|
107
97
|
export type { BaseSelectSearchProps as SelectSearchProps } from './components/SelectSearch/SelectSearch';
|
|
108
98
|
export type { FAButtonProps } from './components/FAB/FAButton';
|
|
109
|
-
export type { IInputFormikV2 } from './components/InputFormik/InputFormikV2';
|
|
110
99
|
export type { RadioButtonProps } from './components/RadioButton/RadioButton';
|
|
111
|
-
export type { RadioButtonFormikProps } from './components/RadioButtonFormik/RadioButtonFormik';
|
|
112
100
|
export { Icons } from './Icons/Icons';
|