prometeo-design-system 2.8.1 → 2.8.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.es.js +6 -6
- package/dist/{CardProfile-CHUivLbW.js → CardProfile-BB-IP1MR.js} +29 -29
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +5 -5
- package/dist/DatePicker.es.js +1557 -1497
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +10 -10
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +33 -33
- package/dist/FAButton.es.js +3 -3
- package/dist/Header.es.js +1 -1
- package/dist/HelperComponent-D_Cqdf1J.js +24 -0
- package/dist/Icons/Icons.d.ts +2 -2
- package/dist/Icons.es.js +1053 -2
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-TkgHO3JL.js → ImageGallery-CjaJ0UCN.js} +44 -44
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-CsNlU1Hu.js → Input-Bdo-Acix.js} +8 -15
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +52 -52
- package/dist/{LayoutGeneric-CbaoatQB.js → LayoutGeneric-B6E-yOYJ.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +4 -4
- package/dist/Menu.es.js +3 -3
- package/dist/OtpInput.es.js +69 -69
- package/dist/Pagination.es.js +2 -2
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/RadioButton.es.js +2 -2
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-D7Cs1OlG.js → Select-D2APaG1z.js} +5 -5
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +15 -15
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +3 -3
- package/dist/Table.es.js +3 -3
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +24 -24
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +8 -8
- 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/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +113 -124
- package/package.json +272 -294
- package/dist/CheckboxFormik.d.ts +0 -6
- package/dist/CheckboxFormik.es.js +0 -88
- package/dist/HelperComponent-CcGxM09g.js +0 -24
- package/dist/Icons-ChYkaR8R.js +0 -899
- 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/Avatar.es.js
CHANGED
package/dist/Button.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { memo as M, useMemo as A } from "react";
|
|
3
3
|
import E from "./Spinner.es.js";
|
|
4
4
|
import { c as v } from "./index-BOQuZ0gG.js";
|
|
@@ -137,7 +137,7 @@ const m = {
|
|
|
137
137
|
}, p = {
|
|
138
138
|
container: "flex justify-center items-center gap-1 w-max rounded-lg bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative",
|
|
139
139
|
label: "w-max transition-all ease-in-out duration-300",
|
|
140
|
-
icon: "w-max transition-all ease-in-out duration-300"
|
|
140
|
+
icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center"
|
|
141
141
|
}, y = {
|
|
142
142
|
true: {
|
|
143
143
|
container: "hover:scale-105 active:scale-95 disabled:scale-100"
|
|
@@ -302,11 +302,11 @@ const m = {
|
|
|
302
302
|
}
|
|
303
303
|
}), D = ({
|
|
304
304
|
label: g,
|
|
305
|
-
onClick:
|
|
305
|
+
onClick: j,
|
|
306
306
|
icon: i,
|
|
307
307
|
contentClassName: u,
|
|
308
308
|
loadingText: f = "Cargando...",
|
|
309
|
-
animate:
|
|
309
|
+
animate: k = !0,
|
|
310
310
|
animateIcon: $ = !0,
|
|
311
311
|
isLoading: a = !1,
|
|
312
312
|
children: c,
|
|
@@ -320,7 +320,7 @@ const m = {
|
|
|
320
320
|
size: o = "medium",
|
|
321
321
|
color: S = "primary"
|
|
322
322
|
}) => {
|
|
323
|
-
const h = !!($ && !s && !a), B = !!(
|
|
323
|
+
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = A(() => c || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
324
324
|
!b && x,
|
|
325
325
|
/* @__PURE__ */ t.jsx(
|
|
326
326
|
"span",
|
|
@@ -390,7 +390,7 @@ const m = {
|
|
|
390
390
|
),
|
|
391
391
|
disabled: s || a,
|
|
392
392
|
form: z,
|
|
393
|
-
onClick:
|
|
393
|
+
onClick: j,
|
|
394
394
|
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${u}`, children: C })
|
|
395
395
|
}
|
|
396
396
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { motion as i, AnimatePresence as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
3
|
+
import { motion as i, AnimatePresence as c } from "framer-motion";
|
|
4
|
+
import u from "./Avatar.es.js";
|
|
5
|
+
import { ChevronDown as m, Logout as f } from "./Icons.es.js";
|
|
6
|
+
function x({
|
|
7
7
|
sessions: t,
|
|
8
8
|
handleTokenLogin: a
|
|
9
9
|
}) {
|
|
@@ -12,8 +12,8 @@ function f({
|
|
|
12
12
|
{
|
|
13
13
|
className: "w-full ",
|
|
14
14
|
onClick: () => a?.(r.token),
|
|
15
|
-
children: /* @__PURE__ */ e.jsx(
|
|
16
|
-
|
|
15
|
+
children: /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
|
|
16
|
+
o.Content,
|
|
17
17
|
{
|
|
18
18
|
onClick: () => {
|
|
19
19
|
console.log("hola");
|
|
@@ -22,19 +22,19 @@ function f({
|
|
|
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(o.Image, { isExpanded: !1 })
|
|
26
26
|
}
|
|
27
27
|
) })
|
|
28
28
|
},
|
|
29
29
|
r._id
|
|
30
30
|
)) });
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex rounded-md text-white-prometeo overflow-hidden shrink-0 w-full min-w-0 ", children: t }), p = ({
|
|
33
33
|
isExpanded: t,
|
|
34
34
|
sessions: a,
|
|
35
35
|
onClickLogout: r,
|
|
36
36
|
handleTokenLogin: n
|
|
37
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
37
|
+
}) => /* @__PURE__ */ e.jsx(c, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
|
|
38
38
|
i.div,
|
|
39
39
|
{
|
|
40
40
|
initial: { height: 0, opacity: 0 },
|
|
@@ -113,7 +113,7 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
children: /* @__PURE__ */ e.jsx(
|
|
116
|
-
|
|
116
|
+
x,
|
|
117
117
|
{
|
|
118
118
|
sessions: a,
|
|
119
119
|
handleTokenLogin: n
|
|
@@ -161,32 +161,32 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
161
161
|
},
|
|
162
162
|
whileTap: { scale: 0.98 },
|
|
163
163
|
children: [
|
|
164
|
-
/* @__PURE__ */ e.jsx(
|
|
164
|
+
/* @__PURE__ */ e.jsx(f, { size: 24, className: "text-neutral-default-default" }),
|
|
165
165
|
/* @__PURE__ */ e.jsx("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
|
|
166
166
|
]
|
|
167
167
|
}
|
|
168
168
|
)
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
|
-
) }),
|
|
172
|
-
|
|
171
|
+
) }), j = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(
|
|
172
|
+
u,
|
|
173
173
|
{
|
|
174
174
|
imageUrl: t,
|
|
175
175
|
sizeImage: "xs",
|
|
176
176
|
sizeFallback: "xs",
|
|
177
177
|
fallbackText: a
|
|
178
178
|
}
|
|
179
|
-
) }),
|
|
179
|
+
) }), g = ({
|
|
180
180
|
isExpanded: t,
|
|
181
181
|
nameUser: a,
|
|
182
182
|
nameCompany: r,
|
|
183
183
|
nameArea: n,
|
|
184
|
-
cardProfile:
|
|
185
|
-
onClick:
|
|
184
|
+
cardProfile: s,
|
|
185
|
+
onClick: d
|
|
186
186
|
}) => /* @__PURE__ */ e.jsxs(
|
|
187
187
|
i.button,
|
|
188
188
|
{
|
|
189
|
-
onClick:
|
|
189
|
+
onClick: d,
|
|
190
190
|
className: l(
|
|
191
191
|
"flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-12",
|
|
192
192
|
t && "bg-neutral-medium-selected"
|
|
@@ -198,7 +198,7 @@ const x = ({ 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
|
+
s,
|
|
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",
|
|
@@ -245,7 +245,7 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
245
245
|
] })
|
|
246
246
|
]
|
|
247
247
|
}
|
|
248
|
-
),
|
|
248
|
+
), v = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), y = ({ isExpanded: t, onClick: a }) => /* @__PURE__ */ e.jsx(
|
|
249
249
|
i.button,
|
|
250
250
|
{
|
|
251
251
|
onClick: a,
|
|
@@ -261,18 +261,18 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
261
261
|
animate: { rotate: t ? 180 : 0 },
|
|
262
262
|
transition: { duration: 0.3, ease: "easeOut" },
|
|
263
263
|
className: "relative button-select-crevron",
|
|
264
|
-
children: /* @__PURE__ */ e.jsx(i.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
264
|
+
children: /* @__PURE__ */ e.jsx(i.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(m, { size: 20, className: "text-prometeo-neutral " }) })
|
|
265
265
|
}
|
|
266
266
|
)
|
|
267
267
|
}
|
|
268
|
-
),
|
|
269
|
-
Menu:
|
|
270
|
-
Image:
|
|
271
|
-
Content:
|
|
272
|
-
Separator:
|
|
273
|
-
Options:
|
|
268
|
+
), o = Object.assign(h, {
|
|
269
|
+
Menu: p,
|
|
270
|
+
Image: j,
|
|
271
|
+
Content: g,
|
|
272
|
+
Separator: v,
|
|
273
|
+
Options: y
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
o as C,
|
|
277
|
+
x as a
|
|
278
278
|
};
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
|
+
import { Check as m } from "./Icons.es.js";
|
|
3
3
|
import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
|
|
4
4
|
const s = g(
|
|
5
5
|
({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
|
|
@@ -92,7 +92,7 @@ const s = g(
|
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
t.checked && /* @__PURE__ */ a.jsx(
|
|
95
|
-
m
|
|
95
|
+
m,
|
|
96
96
|
{
|
|
97
97
|
size: 18,
|
|
98
98
|
className: `absolute ${e ? "icon-neutral-strong-disabled" : ""} pointer-events-none icon-neutral-strong-default`
|
|
@@ -106,7 +106,7 @@ const s = g(
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
s.displayName = "CheckBox";
|
|
109
|
-
const
|
|
109
|
+
const w = k(s);
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
w as default
|
|
112
112
|
};
|