prometeo-design-system 3.1.2 → 3.1.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 +13 -13
- package/dist/{CardProfile-Ct5Fs60N.js → CardProfile-BVO6fKr9.js} +30 -29
- package/dist/CardProfile.es.js +1 -1
- package/dist/RecurrentDatePicker.es.js +1 -1
- package/dist/{Select-DW30oGym.js → Select-Bq1fVlwM.js} +2 -2
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.d.ts +2 -0
- package/dist/SelectSearch.es.js +147 -131
- package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +25 -21
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +14 -0
- package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +9 -0
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +17 -0
- package/dist/components/NavigationDrawer/{NavItem.d.ts → NavigationDrawerLinkItem.d.ts} +9 -4
- package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +11 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +51 -0
- package/dist/components/Scrollable/Scrollable.d.ts +25 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +6 -2
- package/dist/components/TabSwitch/TabSwitch.d.ts +0 -20
- package/dist/exports/SelectSearch.d.ts +2 -0
- package/dist/prometeo-design-system.es.js +3 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/base.css +22 -0
- package/src/styles/intellisense.css +1 -0
- package/src/styles/utilities.css +18 -0
- package/dist/components/PyrionNavigationDrawer/PyirionNavigationDrawer.d.ts +0 -40
package/dist/Avatar.es.js
CHANGED
|
@@ -2,16 +2,16 @@ import { j as s } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import { c as a } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { useState as j } from "react";
|
|
4
4
|
function C({
|
|
5
|
-
imageUrl:
|
|
5
|
+
imageUrl: t,
|
|
6
6
|
sizeImage: l = "md",
|
|
7
|
-
sizeFallback:
|
|
7
|
+
sizeFallback: e = "md",
|
|
8
8
|
fallbackText: i = "Selene Soluciones",
|
|
9
|
-
subImageUrl:
|
|
9
|
+
subImageUrl: r,
|
|
10
10
|
borderColor: n = "white"
|
|
11
11
|
}) {
|
|
12
|
-
const [c, m] = j(!1),
|
|
12
|
+
const [c, m] = j(!1), x = t && t.trim() !== "" && !c, d = (f) => f.split(" ").map((p) => p.charAt(0)).join("").toUpperCase().slice(0, 2), o = {
|
|
13
13
|
xxxs: "w-6.5 h-6.5",
|
|
14
|
-
xxs: "w-8
|
|
14
|
+
xxs: "w-8 h-8",
|
|
15
15
|
xs: "w-10 h-10",
|
|
16
16
|
sm: "w-16 h-16",
|
|
17
17
|
md: "w-24 h-24",
|
|
@@ -27,35 +27,35 @@ function C({
|
|
|
27
27
|
xl: "text-4xl"
|
|
28
28
|
}, u = {
|
|
29
29
|
xxxs: "w-3 h-3",
|
|
30
|
-
xxs: "w-4 h-4",
|
|
30
|
+
xxs: "w-4 h-4 bottom-0 right-0 translate-x-1/3 translate-y-1/3",
|
|
31
31
|
xs: "w-5 h-5",
|
|
32
32
|
sm: "w-8 h-8",
|
|
33
33
|
md: "w-12 h-12",
|
|
34
34
|
lg: "w-16 h-16",
|
|
35
35
|
xl: "w-20 h-20"
|
|
36
|
-
}, w =
|
|
36
|
+
}, w = x ? l : e;
|
|
37
37
|
return /* @__PURE__ */ s.jsxs("div", { className: "relative inline-block", children: [
|
|
38
|
-
|
|
38
|
+
x ? /* @__PURE__ */ s.jsx(
|
|
39
39
|
"img",
|
|
40
40
|
{
|
|
41
41
|
onError: () => {
|
|
42
42
|
m(!0);
|
|
43
43
|
},
|
|
44
|
-
src:
|
|
44
|
+
src: t,
|
|
45
45
|
className: `rounded-full object-cover ${o[l]}`,
|
|
46
46
|
alt: "Profile"
|
|
47
47
|
}
|
|
48
48
|
) : /* @__PURE__ */ s.jsx(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className: ` flex items-center justify-center rounded-full aspect-square ${o[
|
|
51
|
+
className: ` flex items-center justify-center rounded-full aspect-square ${o[e]}`,
|
|
52
52
|
style: { backgroundColor: "#C6D2FF" },
|
|
53
53
|
children: /* @__PURE__ */ s.jsx(
|
|
54
54
|
"span",
|
|
55
55
|
{
|
|
56
56
|
className: a(
|
|
57
57
|
"text-[#312C85] font-semibold",
|
|
58
|
-
h[
|
|
58
|
+
h[e]
|
|
59
59
|
),
|
|
60
60
|
children: d(i)
|
|
61
61
|
}
|
|
@@ -63,7 +63,7 @@ function C({
|
|
|
63
63
|
},
|
|
64
64
|
"initials"
|
|
65
65
|
),
|
|
66
|
-
|
|
66
|
+
r && /* @__PURE__ */ s.jsx(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
className: a(
|
|
@@ -74,7 +74,7 @@ function C({
|
|
|
74
74
|
children: /* @__PURE__ */ s.jsx(
|
|
75
75
|
"img",
|
|
76
76
|
{
|
|
77
|
-
src:
|
|
77
|
+
src: r,
|
|
78
78
|
alt: "Sub badge",
|
|
79
79
|
className: "w-full h-full object-cover"
|
|
80
80
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { motion as
|
|
2
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { motion as l, AnimatePresence as c } from "framer-motion";
|
|
4
4
|
import u from "./Avatar.es.js";
|
|
5
5
|
import { ChevronDown as m } from "./Icons/ChevronDown.es.js";
|
|
6
6
|
import { Logout as f } from "./Icons/Logout.es.js";
|
|
@@ -30,13 +30,13 @@ function x({
|
|
|
30
30
|
r._id
|
|
31
31
|
)) });
|
|
32
32
|
}
|
|
33
|
-
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex
|
|
33
|
+
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex gap-0.5 overflow-hidden w-full min-w-0 bg-red-200 ", children: t }), p = ({
|
|
34
34
|
isExpanded: t,
|
|
35
35
|
sessions: a,
|
|
36
36
|
onClickLogout: r,
|
|
37
37
|
handleTokenLogin: n
|
|
38
38
|
}) => /* @__PURE__ */ e.jsx(c, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
|
|
39
|
-
|
|
39
|
+
l.div,
|
|
40
40
|
{
|
|
41
41
|
initial: { height: 0, opacity: 0 },
|
|
42
42
|
animate: {
|
|
@@ -62,7 +62,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
62
62
|
className: "overflow-hidden",
|
|
63
63
|
children: [
|
|
64
64
|
/* @__PURE__ */ e.jsx(
|
|
65
|
-
|
|
65
|
+
l.div,
|
|
66
66
|
{
|
|
67
67
|
className: "flex justify-center items-center w-full mt-4",
|
|
68
68
|
exit: {
|
|
@@ -80,7 +80,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
80
80
|
),
|
|
81
81
|
a && a.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
82
82
|
/* @__PURE__ */ e.jsx(
|
|
83
|
-
|
|
83
|
+
l.div,
|
|
84
84
|
{
|
|
85
85
|
className: "mt-4",
|
|
86
86
|
exit: {
|
|
@@ -97,7 +97,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
99
|
/* @__PURE__ */ e.jsx(
|
|
100
|
-
|
|
100
|
+
l.div,
|
|
101
101
|
{
|
|
102
102
|
className: "mt-4 overflow-hidden w-full ",
|
|
103
103
|
exit: {
|
|
@@ -123,7 +123,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
125
|
/* @__PURE__ */ e.jsx(
|
|
126
|
-
|
|
126
|
+
l.div,
|
|
127
127
|
{
|
|
128
128
|
className: "flex justify-center items-center w-full mt-4",
|
|
129
129
|
exit: {
|
|
@@ -141,7 +141,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
141
141
|
)
|
|
142
142
|
] }),
|
|
143
143
|
/* @__PURE__ */ e.jsxs(
|
|
144
|
-
|
|
144
|
+
l.button,
|
|
145
145
|
{
|
|
146
146
|
onClick: r,
|
|
147
147
|
className: "flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",
|
|
@@ -169,15 +169,16 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
169
169
|
)
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
|
-
) }),
|
|
172
|
+
) }), g = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper bg-orange-600", children: /* @__PURE__ */ e.jsx(
|
|
173
173
|
u,
|
|
174
174
|
{
|
|
175
|
+
subImageUrl: t,
|
|
175
176
|
imageUrl: t,
|
|
176
|
-
sizeImage: "
|
|
177
|
+
sizeImage: "xxs",
|
|
177
178
|
sizeFallback: "xs",
|
|
178
179
|
fallbackText: a
|
|
179
180
|
}
|
|
180
|
-
) }),
|
|
181
|
+
) }), j = ({
|
|
181
182
|
isExpanded: t,
|
|
182
183
|
nameUser: a,
|
|
183
184
|
nameCompany: r,
|
|
@@ -185,11 +186,11 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
185
186
|
cardProfile: s,
|
|
186
187
|
onClick: d
|
|
187
188
|
}) => /* @__PURE__ */ e.jsxs(
|
|
188
|
-
|
|
189
|
+
l.button,
|
|
189
190
|
{
|
|
190
191
|
onClick: d,
|
|
191
|
-
className:
|
|
192
|
-
"flex flex-1 gap-
|
|
192
|
+
className: i(
|
|
193
|
+
"flex flex-1 gap-2 rounded-lg cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-max p-3 bg-lime-600",
|
|
193
194
|
t && "bg-neutral-medium-selected"
|
|
194
195
|
),
|
|
195
196
|
whileHover: {
|
|
@@ -200,11 +201,11 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
200
201
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
201
202
|
children: [
|
|
202
203
|
s,
|
|
203
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
|
|
204
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2 p-0", children: [
|
|
204
205
|
/* @__PURE__ */ e.jsx(
|
|
205
206
|
"p",
|
|
206
207
|
{
|
|
207
|
-
className:
|
|
208
|
+
className: i(
|
|
208
209
|
"profile-name font-semibold leading-tight mb-0 text-left",
|
|
209
210
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
210
211
|
),
|
|
@@ -215,7 +216,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
215
216
|
/* @__PURE__ */ e.jsx(
|
|
216
217
|
"p",
|
|
217
218
|
{
|
|
218
|
-
className:
|
|
219
|
+
className: i(
|
|
219
220
|
"profile-options truncate text-xs mt-0",
|
|
220
221
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
221
222
|
),
|
|
@@ -225,7 +226,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
225
226
|
/* @__PURE__ */ e.jsx(
|
|
226
227
|
"p",
|
|
227
228
|
{
|
|
228
|
-
className:
|
|
229
|
+
className: i(
|
|
229
230
|
"profile-options truncate font-bold mt-0",
|
|
230
231
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
231
232
|
),
|
|
@@ -235,7 +236,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
235
236
|
/* @__PURE__ */ e.jsx(
|
|
236
237
|
"p",
|
|
237
238
|
{
|
|
238
|
-
className:
|
|
239
|
+
className: i(
|
|
239
240
|
"profile-options truncate text-xs mt-0",
|
|
240
241
|
t ? "text-primary-default-default" : "text-neutral-default-default"
|
|
241
242
|
),
|
|
@@ -246,32 +247,32 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
246
247
|
] })
|
|
247
248
|
]
|
|
248
249
|
}
|
|
249
|
-
),
|
|
250
|
-
|
|
250
|
+
), b = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), v = ({ isExpanded: t, onClick: a }) => /* @__PURE__ */ e.jsx(
|
|
251
|
+
l.button,
|
|
251
252
|
{
|
|
252
253
|
onClick: a,
|
|
253
|
-
className: "flex items-center justify-center p-3 rounded-
|
|
254
|
+
className: "flex items-center justify-center p-3 rounded-lg cursor-pointer relative overflow-hidden focus:outline-none bg-amber-800 w-8 min-w-8 hover:bg-neutral-medium-selected button-content-chevron",
|
|
254
255
|
whileHover: { scale: 1.05 },
|
|
255
256
|
whileTap: { scale: 0.95 },
|
|
256
257
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
257
258
|
title: t ? "Ocultar opciones" : "Mostrar opciones",
|
|
258
259
|
"aria-label": t ? "Ocultar opciones" : "Mostrar opciones",
|
|
259
260
|
children: /* @__PURE__ */ e.jsx(
|
|
260
|
-
|
|
261
|
+
l.div,
|
|
261
262
|
{
|
|
262
263
|
animate: { rotate: t ? 180 : 0 },
|
|
263
264
|
transition: { duration: 0.3, ease: "easeOut" },
|
|
264
265
|
className: "relative button-select-crevron",
|
|
265
|
-
children: /* @__PURE__ */ e.jsx(
|
|
266
|
+
children: /* @__PURE__ */ e.jsx(l.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(m, { size: 24, className: "text-prometeo-neutral " }) })
|
|
266
267
|
}
|
|
267
268
|
)
|
|
268
269
|
}
|
|
269
270
|
), o = Object.assign(h, {
|
|
270
271
|
Menu: p,
|
|
271
|
-
Image:
|
|
272
|
-
Content:
|
|
273
|
-
Separator:
|
|
274
|
-
Options:
|
|
272
|
+
Image: g,
|
|
273
|
+
Content: j,
|
|
274
|
+
Separator: b,
|
|
275
|
+
Options: v
|
|
275
276
|
});
|
|
276
277
|
export {
|
|
277
278
|
o as C,
|
package/dist/CardProfile.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import O, { useMemo as D, memo as b, useRef as M, useCallback as g, useState as L, useEffect as W } from "react";
|
|
3
3
|
import { D as I } from "./DatePicker-D1EwMGIN.js";
|
|
4
|
-
import { S as f } from "./Select-
|
|
4
|
+
import { S as f } from "./Select-Bq1fVlwM.js";
|
|
5
5
|
import { I as R } from "./Input-EkMrxcNX.js";
|
|
6
6
|
import _ from "./CheckBox.es.js";
|
|
7
7
|
import { c as p } from "./cn-B6yFEsav.js";
|
package/dist/Select.es.js
CHANGED