prometeo-design-system 3.1.3 → 3.1.4
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 +42 -36
- package/dist/Button.es.js +27 -27
- package/dist/{CardProfile-BVO6fKr9.js → CardProfile-y9Knsg26.js} +23 -23
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/DatePicker-CehTiXGa.js +3631 -0
- package/dist/DatePicker.es.js +1 -1
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +78 -72
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/FAButton.es.js +1 -1
- package/dist/Header.es.js +4 -4
- package/dist/{HelperComponent-DhGU_ug-.js → HelperComponent-ljsn0xD6.js} +1 -1
- package/dist/Icons/AccountCircle.es.js +1 -1
- package/dist/Icons/Add.es.js +1 -1
- package/dist/Icons/ArrowLeft.es.js +1 -1
- package/dist/Icons/ArrowUpDown.es.js +1 -1
- package/dist/Icons/AttachFile.es.js +1 -1
- package/dist/Icons/Boards.es.js +1 -1
- package/dist/Icons/Calendar.es.js +1 -1
- package/dist/Icons/Cancel.es.js +1 -1
- package/dist/Icons/Check.es.js +1 -1
- package/dist/Icons/CheckCircle.es.js +1 -1
- package/dist/Icons/CheckList.es.js +1 -1
- package/dist/Icons/ChevronDown.es.js +1 -1
- package/dist/Icons/Clock.es.js +1 -1
- package/dist/Icons/Close.es.js +1 -1
- package/dist/Icons/CloseNavBarDesktop.es.js +1 -1
- package/dist/Icons/Collapse.es.js +1 -1
- package/dist/Icons/Company.es.js +1 -1
- package/dist/Icons/Copy.es.js +1 -1
- package/dist/Icons/CrevronLeft.es.js +1 -1
- package/dist/Icons/CrevronRight.es.js +1 -1
- package/dist/Icons/DocumentFill.es.js +1 -1
- package/dist/Icons/Download.es.js +1 -1
- package/dist/Icons/Edit.es.js +1 -1
- package/dist/Icons/EditFill.es.js +1 -1
- package/dist/Icons/Email.es.js +1 -1
- package/dist/Icons/Error.es.js +1 -1
- package/dist/Icons/EyeVisibility.es.js +1 -1
- package/dist/Icons/EyeVisibilityOff.es.js +1 -1
- package/dist/Icons/FaLock.es.js +1 -1
- package/dist/Icons/FastForward.es.js +1 -1
- package/dist/Icons/File.es.js +1 -1
- package/dist/Icons/Filter.es.js +1 -1
- package/dist/Icons/FormatColorText.es.js +1 -1
- package/dist/Icons/Help.es.js +1 -1
- package/dist/Icons/HistoryActivity.es.js +1 -1
- package/dist/Icons/Home.es.js +1 -1
- package/dist/Icons/Image.es.js +1 -1
- package/dist/Icons/Info.es.js +1 -1
- package/dist/Icons/Logout.es.js +1 -1
- package/dist/Icons/MessageSquare.es.js +1 -1
- package/dist/Icons/MessageSquareFill.es.js +1 -1
- package/dist/Icons/MoreVert.es.js +1 -1
- package/dist/Icons/Notifications.es.js +1 -1
- package/dist/Icons/Pause.es.js +1 -1
- package/dist/Icons/Reload.es.js +1 -1
- package/dist/Icons/Search.es.js +1 -1
- package/dist/Icons/Settings.es.js +1 -1
- package/dist/Icons/Shared.es.js +1 -1
- package/dist/Icons/Sort.es.js +1 -1
- package/dist/Icons/Stars.es.js +1 -1
- package/dist/Icons/Ticket.es.js +1 -1
- package/dist/Icons/TicketFilled.es.js +1 -1
- package/dist/Icons/Trash.es.js +1 -1
- package/dist/Icons/TrashFill.es.js +1 -1
- package/dist/Icons/Upload.es.js +1 -1
- package/dist/Icons/UploadCloud.es.js +1 -1
- package/dist/Icons/UserAdd.es.js +1 -1
- package/dist/Icons/UserAddFill.es.js +1 -1
- package/dist/Icons/UserPerson.es.js +1 -1
- package/dist/Icons/WhatsApp.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-4DdXqwRy.js → ImageGallery-DG9ovlQ-.js} +1 -1
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input.es.js +218 -2
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-CbaoatQB.js → LayoutGeneric-CfWhV1ov.js} +6 -6
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/RadioButton.es.js +2 -2
- package/dist/RecurrentDatePicker.es.js +7 -7
- package/dist/RecurrentDatePickerRRule.es.js +2 -4
- package/dist/Scrollable.d.ts +2 -0
- package/dist/Scrollable.es.js +260 -0
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-Bq1fVlwM.js → Select-BdxmkrjB.js} +12 -11
- 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 +1 -1
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +7 -7
- package/dist/TabLinks.es.js +9 -9
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +1 -1
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Drawer/DrawerDesktop.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +18 -2
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +3 -1
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +1 -0
- package/dist/components/NotificationCard/NotificationCard.d.ts +25 -0
- package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +8 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +90 -11
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +10 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +7 -0
- package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +8 -0
- package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +13 -0
- package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +12 -0
- package/dist/components/Scrollable/Scrollable.d.ts +9 -3
- package/dist/components/Sidebar/components/badge.d.ts +2 -1
- package/dist/components/TicketCard/TicketCard.d.ts +32 -0
- package/dist/components/UserCard/UserCard.d.ts +12 -0
- package/dist/exports/Scrollable.d.ts +2 -0
- package/dist/hooks/useLabelBackground.d.ts +1 -0
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-GkKLlHH4.js} +2 -20
- package/dist/lib/utils.d.ts +2 -2
- package/dist/prometeo-design-system.es.js +54 -51
- package/dist/styles.css +1 -1
- package/dist/useLabelBackground-BDIHUdND.js +26 -0
- package/package.json +9 -5
- package/src/styles/base.css +25 -0
- package/src/styles/palette.css +3 -0
- package/dist/DatePicker-D1EwMGIN.js +0 -3568
- package/dist/Input-EkMrxcNX.js +0 -241
package/dist/Avatar.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { g as j } from "./useLabelBackground-BDIHUdND.js";
|
|
3
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
|
+
import { useState as C, useRef as u, useLayoutEffect as v } from "react";
|
|
5
|
+
function R({
|
|
5
6
|
imageUrl: t,
|
|
6
|
-
sizeImage:
|
|
7
|
-
sizeFallback:
|
|
8
|
-
fallbackText:
|
|
9
|
-
subImageUrl:
|
|
10
|
-
borderColor: n = "white"
|
|
7
|
+
sizeImage: a = "md",
|
|
8
|
+
sizeFallback: s = "md",
|
|
9
|
+
fallbackText: d = "Selene Soluciones",
|
|
10
|
+
subImageUrl: x
|
|
11
11
|
}) {
|
|
12
|
-
const [
|
|
12
|
+
const [m, f] = C(!1), n = t && t.trim() !== "" && !m, h = (l) => l.split(" ").map((w) => w.charAt(0)).join("").toUpperCase().slice(0, 2), c = {
|
|
13
13
|
xxxs: "w-6.5 h-6.5",
|
|
14
14
|
xxs: "w-8 h-8",
|
|
15
15
|
xs: "w-10 h-10",
|
|
@@ -17,7 +17,7 @@ function C({
|
|
|
17
17
|
md: "w-24 h-24",
|
|
18
18
|
lg: "w-32 h-32",
|
|
19
19
|
xl: "w-40 h-40"
|
|
20
|
-
},
|
|
20
|
+
}, g = {
|
|
21
21
|
xxxs: "text-[12px]",
|
|
22
22
|
xxs: "text-xs",
|
|
23
23
|
xs: "text-sm",
|
|
@@ -25,56 +25,62 @@ function C({
|
|
|
25
25
|
md: "text-2xl",
|
|
26
26
|
lg: "text-3xl",
|
|
27
27
|
xl: "text-4xl"
|
|
28
|
-
},
|
|
28
|
+
}, b = {
|
|
29
29
|
xxxs: "w-3 h-3",
|
|
30
|
-
xxs: "w-
|
|
30
|
+
xxs: "w-[18px] h-[18px] 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
|
-
md: "w-12 h-12",
|
|
34
|
-
lg: "w-16 h-16",
|
|
35
|
-
xl: "w-20 h-20"
|
|
36
|
-
},
|
|
37
|
-
return
|
|
38
|
-
|
|
33
|
+
md: "w-12 h-12 border-3",
|
|
34
|
+
lg: "w-16 h-16 border-4",
|
|
35
|
+
xl: "w-20 h-20 border-5"
|
|
36
|
+
}, p = n ? a : s, r = u(null), o = u(null);
|
|
37
|
+
return v(() => {
|
|
38
|
+
if (!r.current || !o.current) return;
|
|
39
|
+
const l = j(r.current);
|
|
40
|
+
o.current.style.borderColor = l;
|
|
41
|
+
}, []), /* @__PURE__ */ e.jsxs("div", { className: "relative inline-block min-w-max ", ref: r, children: [
|
|
42
|
+
n ? /* @__PURE__ */ e.jsx(
|
|
39
43
|
"img",
|
|
40
44
|
{
|
|
41
45
|
onError: () => {
|
|
42
|
-
|
|
46
|
+
f(!0);
|
|
43
47
|
},
|
|
44
48
|
src: t,
|
|
45
|
-
className: `rounded-full object-cover ${
|
|
46
|
-
alt: "Profile"
|
|
49
|
+
className: `rounded-full object-cover ${c[a]}`,
|
|
50
|
+
alt: "Profile",
|
|
51
|
+
draggable: !1
|
|
47
52
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
53
|
+
) : /* @__PURE__ */ e.jsx(
|
|
49
54
|
"div",
|
|
50
55
|
{
|
|
51
|
-
className: ` flex items-center justify-center rounded-full aspect-square ${
|
|
56
|
+
className: ` flex items-center justify-center rounded-full aspect-square ${c[s]}`,
|
|
52
57
|
style: { backgroundColor: "#C6D2FF" },
|
|
53
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ e.jsx(
|
|
54
59
|
"span",
|
|
55
60
|
{
|
|
56
|
-
className:
|
|
61
|
+
className: i(
|
|
57
62
|
"text-[#312C85] font-semibold",
|
|
58
|
-
|
|
63
|
+
g[s]
|
|
59
64
|
),
|
|
60
|
-
children: d
|
|
65
|
+
children: h(d)
|
|
61
66
|
}
|
|
62
67
|
)
|
|
63
68
|
},
|
|
64
69
|
"initials"
|
|
65
70
|
),
|
|
66
|
-
|
|
71
|
+
x && /* @__PURE__ */ e.jsx(
|
|
67
72
|
"div",
|
|
68
73
|
{
|
|
69
|
-
className:
|
|
70
|
-
"absolute bottom-[-10px] right-[-10px] rounded-full border-
|
|
71
|
-
|
|
74
|
+
className: i(
|
|
75
|
+
"absolute bottom-[-10px] right-[-10px] rounded-full border-1 overflow-hidden bg-gray-900",
|
|
76
|
+
b[p]
|
|
72
77
|
),
|
|
73
|
-
|
|
74
|
-
children: /* @__PURE__ */
|
|
78
|
+
ref: o,
|
|
79
|
+
children: /* @__PURE__ */ e.jsx(
|
|
75
80
|
"img",
|
|
76
81
|
{
|
|
77
|
-
|
|
82
|
+
draggable: !1,
|
|
83
|
+
src: x,
|
|
78
84
|
alt: "Sub badge",
|
|
79
85
|
className: "w-full h-full object-cover"
|
|
80
86
|
}
|
|
@@ -84,5 +90,5 @@ function C({
|
|
|
84
90
|
] });
|
|
85
91
|
}
|
|
86
92
|
export {
|
|
87
|
-
|
|
93
|
+
R as default
|
|
88
94
|
};
|
package/dist/Button.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { memo as A, useMemo as E } from "react";
|
|
3
3
|
import M from "./Spinner.es.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
4
|
+
import { c as p } from "./index-BOQuZ0gG.js";
|
|
5
|
+
import { c as m } from "./cn-B6yFEsav.js";
|
|
6
|
+
const v = {
|
|
7
7
|
small: {
|
|
8
8
|
container: "h-10 px-4 py-2"
|
|
9
9
|
},
|
|
@@ -134,7 +134,7 @@ const m = {
|
|
|
134
134
|
label: "prometeo-fonts-label-xlarge",
|
|
135
135
|
icon: ""
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, g = {
|
|
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
140
|
icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center"
|
|
@@ -152,12 +152,12 @@ const m = {
|
|
|
152
152
|
false: {
|
|
153
153
|
icon: ""
|
|
154
154
|
}
|
|
155
|
-
}, R =
|
|
155
|
+
}, R = p(g.container, {
|
|
156
156
|
variants: {
|
|
157
157
|
size: {
|
|
158
|
-
small: `${r.small.container} ${
|
|
159
|
-
medium: `${r.medium.container} ${
|
|
160
|
-
large: `${r.large.container} ${
|
|
158
|
+
small: `${r.small.container} ${v.small.container}`,
|
|
159
|
+
medium: `${r.medium.container} ${v.medium.container}`,
|
|
160
|
+
large: `${r.large.container} ${v.large.container}`
|
|
161
161
|
},
|
|
162
162
|
variant: {
|
|
163
163
|
fill: "",
|
|
@@ -203,7 +203,7 @@ const m = {
|
|
|
203
203
|
color: "primary",
|
|
204
204
|
animation: !0
|
|
205
205
|
}
|
|
206
|
-
}), V =
|
|
206
|
+
}), V = p(g.label, {
|
|
207
207
|
variants: {
|
|
208
208
|
size: {
|
|
209
209
|
small: r.small.label,
|
|
@@ -249,7 +249,7 @@ const m = {
|
|
|
249
249
|
variant: "fill",
|
|
250
250
|
color: "primary"
|
|
251
251
|
}
|
|
252
|
-
}), q =
|
|
252
|
+
}), q = p(g.icon, {
|
|
253
253
|
variants: {
|
|
254
254
|
size: {
|
|
255
255
|
small: r.small.icon,
|
|
@@ -301,15 +301,15 @@ const m = {
|
|
|
301
301
|
animateIcon: !0
|
|
302
302
|
}
|
|
303
303
|
}), D = ({
|
|
304
|
-
label:
|
|
304
|
+
label: i,
|
|
305
305
|
onClick: j,
|
|
306
|
-
icon:
|
|
307
|
-
contentClassName:
|
|
306
|
+
icon: u,
|
|
307
|
+
contentClassName: c,
|
|
308
308
|
loadingText: f = "Cargando...",
|
|
309
|
-
animate: k = !
|
|
310
|
-
animateIcon: $ = !
|
|
309
|
+
animate: k = !1,
|
|
310
|
+
animateIcon: $ = !1,
|
|
311
311
|
isLoading: a = !1,
|
|
312
|
-
children:
|
|
312
|
+
children: d,
|
|
313
313
|
hideSpinner: b = !1,
|
|
314
314
|
spinner: x = /* @__PURE__ */ t.jsx(M, { size: "small", variant: "clip", color: "var(--neutral-600)", className: "size-4 " }),
|
|
315
315
|
type: N,
|
|
@@ -320,12 +320,12 @@ const m = {
|
|
|
320
320
|
size: o = "medium",
|
|
321
321
|
color: S = "primary"
|
|
322
322
|
}) => {
|
|
323
|
-
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = E(() =>
|
|
323
|
+
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = E(() => d || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
324
324
|
!b && x,
|
|
325
325
|
/* @__PURE__ */ t.jsx(
|
|
326
326
|
"span",
|
|
327
327
|
{
|
|
328
|
-
className:
|
|
328
|
+
className: m(
|
|
329
329
|
V({
|
|
330
330
|
size: o,
|
|
331
331
|
variant: l,
|
|
@@ -336,8 +336,8 @@ const m = {
|
|
|
336
336
|
children: f
|
|
337
337
|
}
|
|
338
338
|
)
|
|
339
|
-
] }) : /* @__PURE__ */ t.jsxs("div", { className:
|
|
340
|
-
|
|
339
|
+
] }) : /* @__PURE__ */ t.jsxs("div", { className: m("flex items-center gap-1 select-none", c), children: [
|
|
340
|
+
u && /* @__PURE__ */ t.jsx(
|
|
341
341
|
"span",
|
|
342
342
|
{
|
|
343
343
|
className: q({
|
|
@@ -346,10 +346,10 @@ const m = {
|
|
|
346
346
|
color: n,
|
|
347
347
|
animateIcon: h
|
|
348
348
|
}),
|
|
349
|
-
children:
|
|
349
|
+
children: u
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */ t.jsx(
|
|
352
|
+
i && /* @__PURE__ */ t.jsx(
|
|
353
353
|
"span",
|
|
354
354
|
{
|
|
355
355
|
className: V({
|
|
@@ -357,14 +357,14 @@ const m = {
|
|
|
357
357
|
variant: l,
|
|
358
358
|
color: n
|
|
359
359
|
}),
|
|
360
|
-
children:
|
|
360
|
+
children: i
|
|
361
361
|
}
|
|
362
362
|
)
|
|
363
363
|
] })), [
|
|
364
|
+
d,
|
|
364
365
|
c,
|
|
365
366
|
u,
|
|
366
367
|
i,
|
|
367
|
-
g,
|
|
368
368
|
l,
|
|
369
369
|
o,
|
|
370
370
|
n,
|
|
@@ -378,7 +378,7 @@ const m = {
|
|
|
378
378
|
"button",
|
|
379
379
|
{
|
|
380
380
|
type: N,
|
|
381
|
-
className:
|
|
381
|
+
className: m(
|
|
382
382
|
"group",
|
|
383
383
|
R({
|
|
384
384
|
size: o,
|
|
@@ -391,7 +391,7 @@ const m = {
|
|
|
391
391
|
disabled: s || a,
|
|
392
392
|
form: I,
|
|
393
393
|
onClick: j,
|
|
394
|
-
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${
|
|
394
|
+
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${c}`, children: C })
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
397
|
}, O = A(D);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { motion as l, AnimatePresence as
|
|
3
|
+
import { motion as l, AnimatePresence as d } from "framer-motion";
|
|
4
4
|
import u from "./Avatar.es.js";
|
|
5
|
-
import { ChevronDown as
|
|
6
|
-
import { Logout as
|
|
5
|
+
import { ChevronDown as f } from "./Icons/ChevronDown.es.js";
|
|
6
|
+
import { Logout as m } from "./Icons/Logout.es.js";
|
|
7
7
|
function x({
|
|
8
8
|
sessions: t,
|
|
9
9
|
handleTokenLogin: a
|
|
@@ -13,8 +13,8 @@ function x({
|
|
|
13
13
|
{
|
|
14
14
|
className: "w-full ",
|
|
15
15
|
onClick: () => a?.(r.token),
|
|
16
|
-
children: /* @__PURE__ */ e.jsx(
|
|
17
|
-
|
|
16
|
+
children: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
17
|
+
s.Content,
|
|
18
18
|
{
|
|
19
19
|
onClick: () => {
|
|
20
20
|
console.log("hola");
|
|
@@ -23,19 +23,19 @@ function x({
|
|
|
23
23
|
nameUser: r.name,
|
|
24
24
|
nameArea: r?.areaId?.name,
|
|
25
25
|
nameCompany: r.companyId.name,
|
|
26
|
-
cardProfile: /* @__PURE__ */ e.jsx(
|
|
26
|
+
cardProfile: /* @__PURE__ */ e.jsx(s.Image, { isExpanded: !1 })
|
|
27
27
|
}
|
|
28
28
|
) })
|
|
29
29
|
},
|
|
30
30
|
r._id
|
|
31
31
|
)) });
|
|
32
32
|
}
|
|
33
|
-
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex gap-0.5 overflow-hidden w-full min-w-0
|
|
33
|
+
const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex gap-0.5 overflow-hidden w-full min-w-0 ", children: t }), p = ({
|
|
34
34
|
isExpanded: t,
|
|
35
35
|
sessions: a,
|
|
36
36
|
onClickLogout: r,
|
|
37
37
|
handleTokenLogin: n
|
|
38
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
38
|
+
}) => /* @__PURE__ */ e.jsx(d, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
|
|
39
39
|
l.div,
|
|
40
40
|
{
|
|
41
41
|
initial: { height: 0, opacity: 0 },
|
|
@@ -162,14 +162,14 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
162
162
|
},
|
|
163
163
|
whileTap: { scale: 0.98 },
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */ e.jsx(
|
|
165
|
+
/* @__PURE__ */ e.jsx(m, { size: 24, className: "text-neutral-default-default" }),
|
|
166
166
|
/* @__PURE__ */ e.jsx("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
169
|
)
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
|
-
) }), g = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper
|
|
172
|
+
) }), g = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper", children: /* @__PURE__ */ e.jsx(
|
|
173
173
|
u,
|
|
174
174
|
{
|
|
175
175
|
subImageUrl: t,
|
|
@@ -183,14 +183,14 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
183
183
|
nameUser: a,
|
|
184
184
|
nameCompany: r,
|
|
185
185
|
nameArea: n,
|
|
186
|
-
cardProfile:
|
|
187
|
-
onClick:
|
|
186
|
+
cardProfile: o,
|
|
187
|
+
onClick: c
|
|
188
188
|
}) => /* @__PURE__ */ e.jsxs(
|
|
189
189
|
l.button,
|
|
190
190
|
{
|
|
191
|
-
onClick:
|
|
191
|
+
onClick: c,
|
|
192
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
|
|
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",
|
|
194
194
|
t && "bg-neutral-medium-selected"
|
|
195
195
|
),
|
|
196
196
|
whileHover: {
|
|
@@ -200,7 +200,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
200
200
|
whileTap: { scale: 0.98 },
|
|
201
201
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
202
202
|
children: [
|
|
203
|
-
|
|
203
|
+
o,
|
|
204
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: [
|
|
205
205
|
/* @__PURE__ */ e.jsx(
|
|
206
206
|
"p",
|
|
@@ -247,11 +247,11 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
247
247
|
] })
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
|
-
),
|
|
250
|
+
), 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(
|
|
251
251
|
l.button,
|
|
252
252
|
{
|
|
253
253
|
onClick: a,
|
|
254
|
-
className: "flex items-center justify-center p-3 rounded-lg cursor-pointer relative overflow-hidden focus:outline-none
|
|
254
|
+
className: "flex items-center justify-center p-3 rounded-lg cursor-pointer relative overflow-hidden focus:outline-none w-8 min-w-8 hover:bg-neutral-medium-selected button-content-chevron",
|
|
255
255
|
whileHover: { scale: 1.05 },
|
|
256
256
|
whileTap: { scale: 0.95 },
|
|
257
257
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
@@ -263,18 +263,18 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
263
263
|
animate: { rotate: t ? 180 : 0 },
|
|
264
264
|
transition: { duration: 0.3, ease: "easeOut" },
|
|
265
265
|
className: "relative button-select-crevron",
|
|
266
|
-
children: /* @__PURE__ */ e.jsx(l.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
266
|
+
children: /* @__PURE__ */ e.jsx(l.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(f, { size: 24, className: "text-prometeo-neutral " }) })
|
|
267
267
|
}
|
|
268
268
|
)
|
|
269
269
|
}
|
|
270
|
-
),
|
|
270
|
+
), s = Object.assign(h, {
|
|
271
271
|
Menu: p,
|
|
272
272
|
Image: g,
|
|
273
273
|
Content: j,
|
|
274
|
-
Separator:
|
|
275
|
-
Options:
|
|
274
|
+
Separator: v,
|
|
275
|
+
Options: y
|
|
276
276
|
});
|
|
277
277
|
export {
|
|
278
|
-
|
|
278
|
+
s as C,
|
|
279
279
|
x as a
|
|
280
280
|
};
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED