prometeo-design-system 2.7.9 → 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/{CardProfile-DV3gwvqE.js → CardProfile-CHUivLbW.js} +8 -8
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +3 -3
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +2 -2
- package/dist/DrawerDesktop.es.js +8 -8
- package/dist/DropZone.es.js +1 -1
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-U6mPwuDH.js → HelperComponent-CcGxM09g.js} +1 -1
- package/dist/Icons/Icons.d.ts +60 -0
- package/dist/Icons-ChYkaR8R.js +899 -0
- package/dist/Icons.es.js +2 -891
- package/dist/{ImageGallery-D8nIvBpV.js → ImageGallery-TkgHO3JL.js} +1 -1
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-60IT1aGF.js → Input-CsNlU1Hu.js} +66 -73
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +33 -33
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +39 -39
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-C4UvSsof.js → Select-D7Cs1OlG.js} +164 -164
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +8 -8
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/Toast.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +5 -5
- package/package.json +2 -5
|
@@ -2,7 +2,7 @@ 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 u } from "framer-motion";
|
|
4
4
|
import m from "./Avatar.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { I as o } from "./Icons-ChYkaR8R.js";
|
|
6
6
|
function f({
|
|
7
7
|
sessions: t,
|
|
8
8
|
handleTokenLogin: a
|
|
@@ -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(s, { children: /* @__PURE__ */ e.jsx(
|
|
16
|
+
s.Content,
|
|
17
17
|
{
|
|
18
18
|
onClick: () => {
|
|
19
19
|
console.log("hola");
|
|
@@ -22,7 +22,7 @@ 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(s.Image, { isExpanded: !1 })
|
|
26
26
|
}
|
|
27
27
|
) })
|
|
28
28
|
},
|
|
@@ -161,7 +161,7 @@ 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(o.Logout, { 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
|
}
|
|
@@ -261,11 +261,11 @@ 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(o.ChevronDown, { size: 20, className: "text-prometeo-neutral " }) })
|
|
265
265
|
}
|
|
266
266
|
)
|
|
267
267
|
}
|
|
268
|
-
),
|
|
268
|
+
), s = Object.assign(x, {
|
|
269
269
|
Menu: h,
|
|
270
270
|
Image: p,
|
|
271
271
|
Content: j,
|
|
@@ -273,6 +273,6 @@ const x = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
273
273
|
Options: v
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
s as C,
|
|
277
277
|
f as a
|
|
278
278
|
};
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
2
|
+
import { I as m } from "./Icons-ChYkaR8R.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) => {
|
|
@@ -106,7 +106,7 @@ const s = g(
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
s.displayName = "CheckBox";
|
|
109
|
-
const
|
|
109
|
+
const z = k(s);
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
z as default
|
|
112
112
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
2
|
+
import { I as x } from "./Icons-ChYkaR8R.js";
|
|
3
3
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { useField as h, ErrorMessage as p } from "formik";
|
|
5
5
|
import { useState as b } from "react";
|
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as q } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import m, { createContext as mn, useContext as hn, useCallback as R, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
|
|
3
3
|
import { InputMultiple as gn } from "./InputMultiple.es.js";
|
|
4
|
-
import { I as wn } from "./Input-
|
|
4
|
+
import { I as wn } from "./Input-CsNlU1Hu.js";
|
|
5
5
|
import { createPortal as bn } from "react-dom";
|
|
6
|
-
import {
|
|
6
|
+
import { I as Mt } from "./Icons-ChYkaR8R.js";
|
|
7
7
|
import { c as Be } from "./cn-B6yFEsav.js";
|
|
8
8
|
import vt from "./Button.es.js";
|
|
9
9
|
function Mn(e, t, n = "long") {
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
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
|
-
import { createPortal as
|
|
5
|
-
import {
|
|
6
|
-
import { forwardRef as V, useRef as u, useState as
|
|
4
|
+
import { createPortal as T } from "react-dom";
|
|
5
|
+
import { I as E } from "./Icons-ChYkaR8R.js";
|
|
6
|
+
import { forwardRef as V, useRef as u, useState as I, useEffect as d, useCallback as f, useImperativeHandle as P } from "react";
|
|
7
7
|
import B from "./Button.es.js";
|
|
8
8
|
const L = V((t, s) => {
|
|
9
|
-
const n = u(null), [e, a] =
|
|
9
|
+
const n = u(null), [e, a] = I(t.defaultOpen || !1), [r, y] = I(null), b = u(t.onClose), c = u(r), {
|
|
10
10
|
modal: i = !1,
|
|
11
11
|
children: m,
|
|
12
12
|
className: w,
|
|
13
13
|
direction: C = "left",
|
|
14
14
|
attachToParent: x = !1,
|
|
15
15
|
closeOnOverlayClick: o = !1,
|
|
16
|
-
hideCloseButton:
|
|
16
|
+
hideCloseButton: N = !1
|
|
17
17
|
} = t, g = u(o), O = u(e);
|
|
18
18
|
c.current = r, d(() => {
|
|
19
19
|
O.current = e;
|
|
@@ -67,11 +67,11 @@ const L = V((t, s) => {
|
|
|
67
67
|
className: w,
|
|
68
68
|
attachToParent: x,
|
|
69
69
|
closeOnOverlayClick: o,
|
|
70
|
-
hideCloseButton:
|
|
70
|
+
hideCloseButton: N,
|
|
71
71
|
children: typeof m == "function" ? m(r) : m
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
return x ? D :
|
|
74
|
+
return x ? D : T(D, document.body);
|
|
75
75
|
});
|
|
76
76
|
L.displayName = "DrawerDesktopV2";
|
|
77
77
|
const Y = ({
|
|
@@ -152,7 +152,7 @@ const Y = ({
|
|
|
152
152
|
!i && /* @__PURE__ */ l.jsx(
|
|
153
153
|
B,
|
|
154
154
|
{
|
|
155
|
-
icon: /* @__PURE__ */ l.jsx(
|
|
155
|
+
icon: /* @__PURE__ */ l.jsx(E.Close, { size: 24 }),
|
|
156
156
|
animate: !1,
|
|
157
157
|
type: "button",
|
|
158
158
|
size: "small",
|
package/dist/DropZone.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
3
|
import R, { useCallback as z } from "react";
|
|
4
4
|
import { useDropzone as w } from "react-dropzone";
|
|
5
|
-
import {
|
|
5
|
+
import { I as u } from "./Icons-ChYkaR8R.js";
|
|
6
6
|
const E = R.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
onFilesAccepted: d,
|
package/dist/FAButton.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { I as v } from "./Icons-ChYkaR8R.js";
|
|
5
5
|
import { createPortal as m } from "react-dom";
|
|
6
6
|
import { c as b } from "./index-BOQuZ0gG.js";
|
|
7
7
|
const h = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { memo as i } from "react";
|
|
3
3
|
import { c as a } from "./cn-B6yFEsav.js";
|
|
4
|
-
import {
|
|
4
|
+
import { I as t } from "./Icons-ChYkaR8R.js";
|
|
5
5
|
const m = (s) => {
|
|
6
6
|
const { variant: r, className: l } = s, c = {
|
|
7
7
|
default: "text-neutral-medium-default pt-[1px]",
|
package/dist/Icons/Icons.d.ts
CHANGED
|
@@ -4,7 +4,66 @@ export interface IconProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
props?: React.SVGProps<SVGSVGElement>;
|
|
6
6
|
}
|
|
7
|
+
declare const Ticket: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
8
|
+
declare const TicketFilled: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
9
|
+
declare const Home: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
10
|
+
declare const Boards: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
11
|
+
declare const Notifications: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
12
|
+
declare const Help: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
13
|
+
declare const Settings: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
14
|
+
declare const CrevronLeft: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
15
|
+
declare const CrevronRight: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
16
|
+
declare const ArrowLeft: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
17
|
+
declare const Shared: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
18
|
+
declare const ChevronDown: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
19
|
+
declare const Collapse: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
20
|
+
declare const Calendar: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
21
|
+
declare const Close: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
22
|
+
declare const UserPerson: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
23
|
+
declare const Logout: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
24
|
+
declare const ArrowUpDown: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
25
|
+
declare const Filter: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
26
|
+
declare const Search: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
27
|
+
declare const Stars: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
28
|
+
declare const MoreVert: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
29
|
+
declare const Add: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
30
|
+
declare const Edit: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
31
|
+
declare const Upload: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
32
|
+
declare const Copy: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
33
|
+
declare const FaLock: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
34
|
+
declare const AccountCircle: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
35
|
+
declare const UserAdd: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
36
|
+
declare const AttachFile: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
37
|
+
declare const HistoryActivity: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
38
|
+
declare const MessageSquare: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
39
|
+
declare const CloseNavBarDesktop: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
40
|
+
declare const EyeVisibility: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
41
|
+
declare const EyeVisibilityOff: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
7
42
|
export declare const Check: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
43
|
+
declare const Info: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
44
|
+
declare const Error: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
45
|
+
declare const UploadCloud: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
46
|
+
declare const Clock: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
47
|
+
declare const Pause: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
48
|
+
declare const FastForward: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
49
|
+
declare const Trash: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
50
|
+
declare const Sort: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
51
|
+
declare const Cancel: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
52
|
+
declare const CheckCircle: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
53
|
+
declare const FormatColorText: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
54
|
+
declare const CheckList: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
55
|
+
declare const WhatsApp: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
56
|
+
declare const Email: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
57
|
+
declare const File: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
58
|
+
declare const Download: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
59
|
+
declare const Reload: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
60
|
+
declare const Image: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
61
|
+
declare const DocumentFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
62
|
+
declare const MessageSquareFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
63
|
+
declare const UserAddFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
64
|
+
declare const EditFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
65
|
+
declare const TrashFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
66
|
+
declare const Company: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
8
67
|
declare const Icons: {
|
|
9
68
|
readonly Ticket: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
10
69
|
readonly Home: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
@@ -68,5 +127,6 @@ declare const Icons: {
|
|
|
68
127
|
readonly UserAddFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
69
128
|
};
|
|
70
129
|
export { Icons };
|
|
130
|
+
export { Ticket, Home, Boards, Notifications, Help, Settings, CrevronLeft, CrevronRight, ArrowLeft, Shared, ChevronDown, Collapse, Calendar, Close, UserPerson, Logout, ArrowUpDown, Filter, Search, Stars, MoreVert, Add, Edit, Upload, Copy, FaLock, AccountCircle, UserAdd, AttachFile, HistoryActivity, MessageSquare, CloseNavBarDesktop, EyeVisibility, EyeVisibilityOff, Info, Error, TicketFilled, UploadCloud, Clock, Pause, FastForward, Trash, Sort, Cancel, CheckCircle, FormatColorText, CheckList, WhatsApp, File, Email, Download, Reload, Image, DocumentFill, Company, EditFill, TrashFill, MessageSquareFill, UserAddFill };
|
|
71
131
|
export type IconName = keyof typeof Icons;
|
|
72
132
|
export type IconComponent = (typeof Icons)[IconName];
|