prometeo-design-system 2.8.4 → 2.8.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/Avatar.es.js +23 -28
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-BB-IP1MR.js → CardProfile-CsytJlKZ.js} +9 -9
- package/dist/CardProfile.d.ts +4 -0
- package/dist/CardProfile.es.js +3 -2
- package/dist/CheckBox.es.js +5 -5
- package/dist/DatePicker.d.ts +2 -0
- package/dist/DatePicker.es.js +1479 -1538
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.d.ts +4 -0
- package/dist/DropZone.es.js +18 -17
- package/dist/FAButton.es.js +2 -2
- package/dist/Header.es.js +1 -1
- package/dist/{HelperComponent-D_Cqdf1J.js → HelperComponent-g_xuKWzK.js} +8 -8
- package/dist/Icons/Icons.d.ts +1 -1
- package/dist/Icons-DtFC5DJ7.js +1079 -0
- package/dist/Icons.d.ts +4 -0
- package/dist/Icons.es.js +3 -1053
- package/dist/Image.es.js +2 -2
- package/dist/{ImageGallery-CjaJ0UCN.js → ImageGallery-Ckxg9OIC.js} +35 -35
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-Bdo-Acix.js → Input-Cck37DpG.js} +12 -12
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.d.ts +4 -0
- package/dist/InputMultiple.es.js +37 -36
- package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +2 -2
- package/dist/Menu.d.ts +4 -0
- package/dist/Menu.es.js +3 -2
- package/dist/OtpInput.es.js +44 -44
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.d.ts +4 -0
- package/dist/ProfilePictureUpload.es.js +79 -103
- package/dist/ProgressBar.es.js +1 -1
- package/dist/RadioButton.d.ts +4 -0
- package/dist/RadioButton.es.js +4 -3
- package/dist/SegmentedButton.d.ts +4 -0
- package/dist/SegmentedButton.es.js +3 -2
- package/dist/{Select-D2APaG1z.js → Select-BD5FTxVw.js} +5 -5
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.d.ts +4 -0
- package/dist/Skeleton.es.js +3 -2
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.d.ts +4 -0
- package/dist/Steps.es.js +4 -3
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.d.ts +4 -0
- package/dist/Switch.es.js +3 -2
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +23 -23
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +2 -2
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
- package/dist/exports/CardProfile.d.ts +1 -0
- package/dist/exports/DatePicker.d.ts +2 -0
- package/dist/exports/DropZone.d.ts +2 -0
- package/dist/exports/Icons.d.ts +2 -1
- package/dist/exports/InputMultiple.d.ts +2 -0
- package/dist/exports/Menu.d.ts +1 -0
- package/dist/exports/ProfilePictureUpload.d.ts +1 -0
- package/dist/exports/RadioButton.d.ts +2 -0
- package/dist/exports/SegmentedButton.d.ts +2 -0
- package/dist/exports/Skeleton.d.ts +2 -0
- package/dist/exports/Steps.d.ts +1 -0
- package/dist/exports/Switch.d.ts +2 -0
- package/dist/index.d.ts +0 -4
- package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
- package/dist/prometeo-design-system.es.js +117 -123
- package/dist/styles.d.ts +0 -0
- package/package.json +283 -274
- package/src/styles/app.css +1314 -0
- package/src/styles/base.css +1323 -0
- package/src/styles/fonts.css +46 -0
- package/src/styles/palette.css +83 -0
- package/src/styles/utilities.css +1126 -0
- package/dist/components/Button/Button_Legacy.d.ts +0 -29
package/dist/Avatar.es.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
subImageUrl: l,
|
|
1
|
+
import { j as s } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as a } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { useState as j } from "react";
|
|
4
|
+
function C({
|
|
5
|
+
imageUrl: e,
|
|
6
|
+
sizeImage: l = "md",
|
|
7
|
+
sizeFallback: t = "md",
|
|
8
|
+
fallbackText: i = "Selene Soluciones",
|
|
9
|
+
subImageUrl: x,
|
|
11
10
|
borderColor: n = "white"
|
|
12
11
|
}) {
|
|
13
|
-
const [c, m] =
|
|
12
|
+
const [c, m] = j(!1), r = e && e.trim() !== "" && !c, d = (f) => f.split(" ").map((p) => p.charAt(0)).join("").toUpperCase().slice(0, 2), o = {
|
|
14
13
|
xxxs: "w-6.5 h-6.5",
|
|
15
14
|
xxs: "w-8.5 h-8.5",
|
|
16
15
|
xs: "w-10 h-10",
|
|
@@ -34,7 +33,7 @@ function S({
|
|
|
34
33
|
md: "w-12 h-12",
|
|
35
34
|
lg: "w-16 h-16",
|
|
36
35
|
xl: "w-20 h-20"
|
|
37
|
-
},
|
|
36
|
+
}, w = r ? l : t;
|
|
38
37
|
return /* @__PURE__ */ s.jsxs("div", { className: "relative inline-block", children: [
|
|
39
38
|
r ? /* @__PURE__ */ s.jsx(
|
|
40
39
|
"img",
|
|
@@ -42,44 +41,40 @@ function S({
|
|
|
42
41
|
onError: () => {
|
|
43
42
|
m(!0);
|
|
44
43
|
},
|
|
45
|
-
src:
|
|
46
|
-
className: `rounded-full object-cover ${
|
|
44
|
+
src: e,
|
|
45
|
+
className: `rounded-full object-cover ${o[l]}`,
|
|
47
46
|
alt: "Profile"
|
|
48
47
|
}
|
|
49
48
|
) : /* @__PURE__ */ s.jsx(
|
|
50
|
-
|
|
49
|
+
"div",
|
|
51
50
|
{
|
|
52
|
-
className: ` flex items-center justify-center rounded-full aspect-square ${
|
|
51
|
+
className: ` flex items-center justify-center rounded-full aspect-square ${o[t]}`,
|
|
53
52
|
style: { backgroundColor: "#C6D2FF" },
|
|
54
|
-
initial: { opacity: 0, scale: 1.1 },
|
|
55
|
-
animate: { opacity: 1, scale: 1 },
|
|
56
|
-
exit: { opacity: 0, scale: 0.9 },
|
|
57
|
-
transition: { duration: 0.3 },
|
|
58
53
|
children: /* @__PURE__ */ s.jsx(
|
|
59
54
|
"span",
|
|
60
55
|
{
|
|
61
|
-
className:
|
|
56
|
+
className: a(
|
|
62
57
|
"text-[#312C85] font-semibold",
|
|
63
|
-
h[
|
|
58
|
+
h[t]
|
|
64
59
|
),
|
|
65
|
-
children: d(
|
|
60
|
+
children: d(i)
|
|
66
61
|
}
|
|
67
62
|
)
|
|
68
63
|
},
|
|
69
64
|
"initials"
|
|
70
65
|
),
|
|
71
|
-
|
|
66
|
+
x && /* @__PURE__ */ s.jsx(
|
|
72
67
|
"div",
|
|
73
68
|
{
|
|
74
|
-
className:
|
|
69
|
+
className: a(
|
|
75
70
|
"absolute bottom-[-10px] right-[-10px] rounded-full border-4 overflow-hidden bg-gray-900",
|
|
76
|
-
u[
|
|
71
|
+
u[w]
|
|
77
72
|
),
|
|
78
73
|
style: { borderColor: n },
|
|
79
74
|
children: /* @__PURE__ */ s.jsx(
|
|
80
75
|
"img",
|
|
81
76
|
{
|
|
82
|
-
src:
|
|
77
|
+
src: x,
|
|
83
78
|
alt: "Sub badge",
|
|
84
79
|
className: "w-full h-full object-cover"
|
|
85
80
|
}
|
|
@@ -89,5 +84,5 @@ function S({
|
|
|
89
84
|
] });
|
|
90
85
|
}
|
|
91
86
|
export {
|
|
92
|
-
|
|
87
|
+
C as default
|
|
93
88
|
};
|
package/dist/Button.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { motion as i, AnimatePresence as c } from "framer-motion";
|
|
4
4
|
import u from "./Avatar.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as m, L as f } from "./Icons-DtFC5DJ7.js";
|
|
6
6
|
function x({
|
|
7
7
|
sessions: t,
|
|
8
8
|
handleTokenLogin: a
|
|
@@ -12,8 +12,8 @@ function x({
|
|
|
12
12
|
{
|
|
13
13
|
className: "w-full ",
|
|
14
14
|
onClick: () => a?.(r.token),
|
|
15
|
-
children: /* @__PURE__ */ e.jsx(
|
|
16
|
-
|
|
15
|
+
children: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
16
|
+
s.Content,
|
|
17
17
|
{
|
|
18
18
|
onClick: () => {
|
|
19
19
|
console.log("hola");
|
|
@@ -22,7 +22,7 @@ function x({
|
|
|
22
22
|
nameUser: r.name,
|
|
23
23
|
nameArea: r?.areaId?.name,
|
|
24
24
|
nameCompany: r.companyId.name,
|
|
25
|
-
cardProfile: /* @__PURE__ */ e.jsx(
|
|
25
|
+
cardProfile: /* @__PURE__ */ e.jsx(s.Image, { isExpanded: !1 })
|
|
26
26
|
}
|
|
27
27
|
) })
|
|
28
28
|
},
|
|
@@ -181,7 +181,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
181
181
|
nameUser: a,
|
|
182
182
|
nameCompany: r,
|
|
183
183
|
nameArea: n,
|
|
184
|
-
cardProfile:
|
|
184
|
+
cardProfile: o,
|
|
185
185
|
onClick: d
|
|
186
186
|
}) => /* @__PURE__ */ e.jsxs(
|
|
187
187
|
i.button,
|
|
@@ -198,7 +198,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
198
198
|
whileTap: { scale: 0.98 },
|
|
199
199
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
200
200
|
children: [
|
|
201
|
-
|
|
201
|
+
o,
|
|
202
202
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
|
|
203
203
|
/* @__PURE__ */ e.jsx(
|
|
204
204
|
"p",
|
|
@@ -265,7 +265,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
265
265
|
}
|
|
266
266
|
)
|
|
267
267
|
}
|
|
268
|
-
),
|
|
268
|
+
), s = Object.assign(h, {
|
|
269
269
|
Menu: p,
|
|
270
270
|
Image: j,
|
|
271
271
|
Content: g,
|
|
@@ -273,6 +273,6 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
273
273
|
Options: y
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
s as C,
|
|
277
277
|
x as a
|
|
278
278
|
};
|
package/dist/CardProfile.d.ts
CHANGED
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { memo as k, forwardRef as
|
|
4
|
-
const s =
|
|
1
|
+
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { C as m } from "./Icons-DtFC5DJ7.js";
|
|
3
|
+
import { memo as k, forwardRef as C, useId as g, useRef as v, useCallback as y } from "react";
|
|
4
|
+
const s = C(
|
|
5
5
|
({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
|
|
6
|
-
const u =
|
|
6
|
+
const u = g(), o = v(null), f = `
|
|
7
7
|
after:content-[""]
|
|
8
8
|
after:absolute
|
|
9
9
|
after:top-1/2
|