prometeo-design-system 3.1.2 → 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 +44 -38
- package/dist/Button.es.js +27 -27
- package/dist/{CardProfile-Ct5Fs60N.js → CardProfile-y9Knsg26.js} +41 -40
- 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-DW30oGym.js → Select-BdxmkrjB.js} +14 -13
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.d.ts +2 -0
- package/dist/SelectSearch.es.js +147 -131
- 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/NavItemSecondary.d.ts +1 -0
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +41 -21
- package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +16 -0
- package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +9 -0
- package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +18 -0
- package/dist/components/NavigationDrawer/{NavItem.d.ts → NavigationDrawerLinkItem.d.ts} +10 -4
- package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +11 -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 +130 -0
- 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 +31 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +6 -2
- package/dist/components/Sidebar/components/badge.d.ts +2 -1
- package/dist/components/TabSwitch/TabSwitch.d.ts +0 -20
- 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/exports/SelectSearch.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 +47 -0
- package/src/styles/intellisense.css +1 -0
- package/src/styles/palette.css +3 -0
- package/src/styles/utilities.css +18 -0
- package/dist/DatePicker-D1EwMGIN.js +0 -3568
- package/dist/Input-EkMrxcNX.js +0 -241
- package/dist/components/PyrionNavigationDrawer/PyirionNavigationDrawer.d.ts +0 -40
package/dist/Avatar.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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({
|
|
6
|
+
imageUrl: t,
|
|
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
|
-
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",
|
|
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,55 +25,61 @@ 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
|
-
r
|
|
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
|
-
src:
|
|
45
|
-
className: `rounded-full object-cover ${
|
|
46
|
-
alt: "Profile"
|
|
48
|
+
src: t,
|
|
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
|
-
x && /* @__PURE__ */
|
|
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
|
{
|
|
82
|
+
draggable: !1,
|
|
77
83
|
src: x,
|
|
78
84
|
alt: "Sub badge",
|
|
79
85
|
className: "w-full h-full object-cover"
|
|
@@ -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-
|
|
2
|
-
import { c as
|
|
3
|
-
import { motion as
|
|
1
|
+
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
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,20 +23,20 @@ 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
|
|
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(
|
|
39
|
-
|
|
38
|
+
}) => /* @__PURE__ */ e.jsx(d, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
|
|
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",
|
|
@@ -162,34 +162,35 @@ 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
|
-
) }),
|
|
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
|
+
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,
|
|
184
185
|
nameArea: n,
|
|
185
|
-
cardProfile:
|
|
186
|
-
onClick:
|
|
186
|
+
cardProfile: o,
|
|
187
|
+
onClick: c
|
|
187
188
|
}) => /* @__PURE__ */ e.jsxs(
|
|
188
|
-
|
|
189
|
+
l.button,
|
|
189
190
|
{
|
|
190
|
-
onClick:
|
|
191
|
-
className:
|
|
192
|
-
"flex flex-1 gap-
|
|
191
|
+
onClick: c,
|
|
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
194
|
t && "bg-neutral-medium-selected"
|
|
194
195
|
),
|
|
195
196
|
whileHover: {
|
|
@@ -199,12 +200,12 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
199
200
|
whileTap: { scale: 0.98 },
|
|
200
201
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
201
202
|
children: [
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
|
|
203
|
+
o,
|
|
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
|
),
|
|
@@ -247,33 +248,33 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
247
248
|
]
|
|
248
249
|
}
|
|
249
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(
|
|
250
|
-
|
|
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 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(f, { size: 24, className: "text-prometeo-neutral " }) })
|
|
266
267
|
}
|
|
267
268
|
)
|
|
268
269
|
}
|
|
269
|
-
),
|
|
270
|
+
), s = Object.assign(h, {
|
|
270
271
|
Menu: p,
|
|
271
|
-
Image:
|
|
272
|
-
Content:
|
|
272
|
+
Image: g,
|
|
273
|
+
Content: j,
|
|
273
274
|
Separator: v,
|
|
274
275
|
Options: y
|
|
275
276
|
});
|
|
276
277
|
export {
|
|
277
|
-
|
|
278
|
+
s as C,
|
|
278
279
|
x as a
|
|
279
280
|
};
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED