prometeo-design-system 2.8.4 → 2.8.5
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/DialogModal.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-
|
|
1
|
+
import { j as o } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
|
|
3
3
|
import { c as j } from "./cn-B6yFEsav.js";
|
|
4
4
|
const C = h(
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as l } from "./jsx-runtime-
|
|
1
|
+
import { j as l } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as h } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { c as k } from "./index-BOQuZ0gG.js";
|
|
4
4
|
import { createPortal as E } from "react-dom";
|
|
5
5
|
import { forwardRef as V, useRef as u, useState as N, useEffect as d, useCallback as f, useImperativeHandle as I } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { a as P } from "./Icons-DtFC5DJ7.js";
|
|
7
7
|
import B from "./Button.es.js";
|
|
8
8
|
const L = V((t, s) => {
|
|
9
9
|
const n = u(null), [e, a] = N(t.defaultOpen || !1), [r, y] = N(null), b = u(t.onClose), c = u(r), {
|
package/dist/DrawerMobile.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as m } from "./jsx-runtime-
|
|
1
|
+
import { j as m } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as _ } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { forwardRef as V, useState as $, useRef as v, useEffect as y, useCallback as c, useMemo as Q, useImperativeHandle as X } from "react";
|
|
4
4
|
import { createPortal as Z } from "react-dom";
|
package/dist/DropZone.d.ts
CHANGED
package/dist/DropZone.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { E as P, U as R } from "./Icons-DtFC5DJ7.js";
|
|
3
3
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
|
-
import z, { useCallback as
|
|
5
|
-
import { useDropzone as
|
|
4
|
+
import z, { useCallback as E } from "react";
|
|
5
|
+
import { useDropzone as w } from "react-dropzone";
|
|
6
6
|
const q = z.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
onFilesAccepted: d,
|
|
@@ -17,21 +17,21 @@ const q = z.forwardRef(
|
|
|
17
17
|
maxFiles: g = 1,
|
|
18
18
|
...j
|
|
19
19
|
}, N) => {
|
|
20
|
-
const b =
|
|
20
|
+
const b = E((s, o) => {
|
|
21
21
|
s.length > 0 && d?.(s), o.length > 0 && m?.(o);
|
|
22
22
|
}, [d, m]), {
|
|
23
23
|
getRootProps: y,
|
|
24
24
|
getInputProps: D,
|
|
25
25
|
isDragActive: a,
|
|
26
|
-
isDragReject:
|
|
26
|
+
isDragReject: r,
|
|
27
27
|
fileRejections: n
|
|
28
|
-
} =
|
|
28
|
+
} = w({
|
|
29
29
|
onDrop: b,
|
|
30
30
|
accept: v,
|
|
31
31
|
maxFiles: g,
|
|
32
32
|
disabled: l,
|
|
33
33
|
...j
|
|
34
|
-
}),
|
|
34
|
+
}), t = n.length > 0;
|
|
35
35
|
return /* @__PURE__ */ e.jsx("div", { className: i("w-full", u), children: /* @__PURE__ */ e.jsxs(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
@@ -41,15 +41,15 @@ const q = z.forwardRef(
|
|
|
41
41
|
"relative rounded-lg border border-dashed transition-all duration-200 h-36",
|
|
42
42
|
"flex flex-col items-center justify-center text-center",
|
|
43
43
|
f === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
|
|
44
|
-
!a && !
|
|
44
|
+
!a && !t && !l && [
|
|
45
45
|
"border-neutral-default-default",
|
|
46
46
|
"hover:border-primary/50 hover:bg-primary/5"
|
|
47
47
|
],
|
|
48
|
-
a && !
|
|
48
|
+
a && !r && [
|
|
49
49
|
"border-primary bg-primary/10",
|
|
50
50
|
"ring-2 ring-primary/20"
|
|
51
51
|
],
|
|
52
|
-
(
|
|
52
|
+
(r || t) && [
|
|
53
53
|
"border-destructive bg-destructive/10",
|
|
54
54
|
"ring-2 ring-destructive/20"
|
|
55
55
|
],
|
|
@@ -60,18 +60,18 @@ const q = z.forwardRef(
|
|
|
60
60
|
),
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ e.jsx("input", { ...D() }),
|
|
63
|
-
h && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children:
|
|
63
|
+
h && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: t || r ? /* @__PURE__ */ e.jsx(P, { size: 24, className: " text-destructive" }) : /* @__PURE__ */ e.jsx(R, { size: 24, className: i(
|
|
64
64
|
"w-8 h-8 transition-colors",
|
|
65
65
|
a ? "text-primary" : "text-neutral-default-default"
|
|
66
66
|
) }) }),
|
|
67
67
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
68
68
|
/* @__PURE__ */ e.jsx("p", { className: i(
|
|
69
69
|
"text-base font-medium text-neutral-default-default",
|
|
70
|
-
|
|
71
|
-
), children: a && !
|
|
72
|
-
!
|
|
70
|
+
t || r ? "text-destructive" : a ? "text-primary " : "text-neutral-default-default text-sm font-[400]"
|
|
71
|
+
), children: a && !r ? "Suelta los archivos aquí..." : r || t ? "Archivo no válido" : x }),
|
|
72
|
+
!t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: p })
|
|
73
73
|
] }),
|
|
74
|
-
|
|
74
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "mt-4 space-y-1", children: n.map(({ file: s, errors: o }) => /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-destructive", children: [
|
|
75
75
|
/* @__PURE__ */ e.jsx("p", { className: "font-medium", children: s.name }),
|
|
76
76
|
o.map((c) => /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: c.message }, c.code))
|
|
77
77
|
] }, s.name)) })
|
|
@@ -82,5 +82,6 @@ const q = z.forwardRef(
|
|
|
82
82
|
);
|
|
83
83
|
q.displayName = "DropZone";
|
|
84
84
|
export {
|
|
85
|
-
q as DropZone
|
|
85
|
+
q as DropZone,
|
|
86
|
+
q as default
|
|
86
87
|
};
|
package/dist/FAButton.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as c } from "./jsx-runtime-
|
|
1
|
+
import { j as c } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import u, { memo as n } from "react";
|
|
3
3
|
import { c as f } from "./cn-B6yFEsav.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as v } from "./Icons-DtFC5DJ7.js";
|
|
5
5
|
import { createPortal as m } from "react-dom";
|
|
6
6
|
import { c as b } from "./index-BOQuZ0gG.js";
|
|
7
7
|
const h = {
|
package/dist/Header.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 { memo as i } from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
3
|
+
import { c as a } from "./cn-B6yFEsav.js";
|
|
4
|
+
import { C as o, E as n, I as d } from "./Icons-DtFC5DJ7.js";
|
|
5
|
+
const r = (s) => {
|
|
6
6
|
const { variant: t, className: m } = s, l = {
|
|
7
7
|
default: "text-neutral-medium-default pt-[1px]",
|
|
8
8
|
error: "text-error-medium-default pt-[1px]",
|
|
@@ -12,13 +12,13 @@ const a = (s) => {
|
|
|
12
12
|
error: /* @__PURE__ */ e.jsx(n, { size: 16, className: "text-error-medium-default" }),
|
|
13
13
|
success: /* @__PURE__ */ e.jsx(o, { size: 16, className: "text-success-medium-default" })
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className:
|
|
15
|
+
return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className: a("pl-3 mt-1", m), children: typeof s.children == "string" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-0.5 items-start", children: [
|
|
16
16
|
c[t],
|
|
17
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
17
|
+
/* @__PURE__ */ e.jsx("p", { className: a(" prometeo-fonts-body-small", l[t]), children: s.children })
|
|
18
18
|
] }) : s.children });
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
const j = i(
|
|
20
|
+
r.displayName = "HelperText";
|
|
21
|
+
const j = i(r);
|
|
22
22
|
export {
|
|
23
23
|
j as H
|
|
24
24
|
};
|
package/dist/Icons/Icons.d.ts
CHANGED
|
@@ -127,6 +127,6 @@ declare const Icons: {
|
|
|
127
127
|
readonly MessageSquareFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
128
128
|
readonly UserAddFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
129
129
|
};
|
|
130
|
-
export
|
|
130
|
+
export * as Icons from './Icons';
|
|
131
131
|
export type IconName = keyof typeof Icons;
|
|
132
132
|
export type IconComponent = (typeof Icons)[IconName];
|