prometeo-design-system 2.2.2 → 2.3.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/Avatar.es.js +1 -1
- package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-BhFog7j5.js → CardProfile-BiYr6kY9.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +2 -2
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.d.ts +4 -0
- package/dist/Image.es.js +91 -0
- package/dist/ImageGallery-O5Y4oBrD.js +352 -0
- package/dist/ImageGallery.d.ts +6 -0
- package/dist/ImageGallery.es.js +23 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.js} +1 -1
- 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/SegmentedButton.d.ts +2 -0
- package/dist/SegmentedButton.es.js +188 -0
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/Skeleton.es.js +33 -32
- 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 +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Image/GalleryPreview.d.ts +8 -0
- package/dist/components/Image/Image.d.ts +23 -0
- package/dist/components/Image/ImageGallery.d.ts +18 -0
- package/dist/components/Image/LightBox.d.ts +14 -0
- package/dist/components/Image/index.d.ts +5 -0
- package/dist/components/Image/useImageGallery.d.ts +10 -0
- package/dist/exports/Image.d.ts +1 -0
- package/dist/exports/ImageGallery.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/pages/ImagesPage.d.ts +2 -0
- package/dist/preview/ImagePreview.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +272 -447
- package/package.json +9 -1
|
@@ -1,233 +1,56 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { InputMultiple as
|
|
13
|
-
import { default as
|
|
14
|
-
import { Menu as
|
|
15
|
-
import { default as
|
|
16
|
-
import { ProfilePictureUpload as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { Steps as
|
|
22
|
-
import { default as
|
|
23
|
-
import { Switch as
|
|
24
|
-
import { default as
|
|
25
|
-
import { Table as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { Skeleton as
|
|
30
|
-
import {
|
|
1
|
+
import { default as Se } from "./Avatar.es.js";
|
|
2
|
+
import { B as Ie } from "./Button-Bc0LYLfg.js";
|
|
3
|
+
import { C as Re, a as Le } from "./CardProfile-BiYr6kY9.js";
|
|
4
|
+
import { default as Pe } from "./CheckBox.es.js";
|
|
5
|
+
import { default as Te } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as De, useDialogControl as Ee } from "./DialogModal.es.js";
|
|
7
|
+
import { default as He, useDrawerDesktop as We } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as Fe, useDrawerMobile as Me } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as Ge } from "./Header.es.js";
|
|
10
|
+
import { default as _e } from "./Input.es.js";
|
|
11
|
+
import { default as Ze } from "./InputFormik.es.js";
|
|
12
|
+
import { InputMultiple as Ke } from "./InputMultiple.es.js";
|
|
13
|
+
import { default as Ye } from "./Logo.es.js";
|
|
14
|
+
import { Menu as tt } from "./Menu.es.js";
|
|
15
|
+
import { default as rt } from "./Pagination.es.js";
|
|
16
|
+
import { ProfilePictureUpload as nt } from "./ProfilePictureUpload.es.js";
|
|
17
|
+
import { default as st } from "./ProgressBar.es.js";
|
|
18
|
+
import { default as ct } from "./Select.es.js";
|
|
19
|
+
import { default as dt } from "./SelectFormik.es.js";
|
|
20
|
+
import { default as mt } from "./Spinner.es.js";
|
|
21
|
+
import { Steps as xt } from "./Steps.es.js";
|
|
22
|
+
import { default as vt } from "./SwipeContainer.es.js";
|
|
23
|
+
import { Switch as yt } from "./Switch.es.js";
|
|
24
|
+
import { default as wt } from "./DatePicker.es.js";
|
|
25
|
+
import { Table as Nt, TableBody as Ct, TableCaption as St, TableCell as kt, TableFooter as It, TableHead as Bt, TableHeader as Rt, TableRow as Lt } from "./Table.es.js";
|
|
26
|
+
import { default as Pt } from "./TabLinks.es.js";
|
|
27
|
+
import { default as Tt } from "./TextArea.es.js";
|
|
28
|
+
import { default as Dt } from "./Tooltip.es.js";
|
|
29
|
+
import { Skeleton as Ot } from "./Skeleton.es.js";
|
|
30
|
+
import { SegmentedButton as Wt } from "./SegmentedButton.es.js";
|
|
31
|
+
import { u as S } from "./LayoutGeneric-jDE96L2N.js";
|
|
32
|
+
import { L as Ft, S as Mt } from "./LayoutGeneric-jDE96L2N.js";
|
|
33
|
+
import { I as Gt } from "./ImageGallery-O5Y4oBrD.js";
|
|
34
|
+
import { default as _t } from "./Image.es.js";
|
|
35
|
+
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
31
36
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const We = (t) => {
|
|
44
|
-
const [e, o] = k({}), { size: r = "medium", color: n = "default", options: i, value: s, name: d, onChange: l, icon: f, allowExpand: c = !1, disabled: x = !1 } = t, p = Math.max(i.findIndex((m) => m.value === s), 0), b = i.length, I = 9, W = 26, w = {
|
|
45
|
-
small: 120,
|
|
46
|
-
medium: 120,
|
|
47
|
-
large: 120
|
|
48
|
-
}, v = {
|
|
49
|
-
small: 94,
|
|
50
|
-
medium: 94,
|
|
51
|
-
large: 94
|
|
52
|
-
}, D = 16, X = {
|
|
53
|
-
small: { container: "p-2" },
|
|
54
|
-
medium: { container: "p-4 h-[48px] rounded-lg" },
|
|
55
|
-
large: { container: "p-6" }
|
|
56
|
-
}, C = {
|
|
57
|
-
default: {
|
|
58
|
-
switch: "bg-primary-medium-default text-neutral-weak-default ",
|
|
59
|
-
container: "border-neutral-default-default",
|
|
60
|
-
icon: "text-neutral-weak-default",
|
|
61
|
-
option: "text-neutral-medium-default"
|
|
62
|
-
},
|
|
63
|
-
success: {
|
|
64
|
-
switch: "bg-success-medium-default text-neutral-weak-default",
|
|
65
|
-
container: "border-neutral-default-default",
|
|
66
|
-
icon: "text-neutral-weak-default",
|
|
67
|
-
option: "text-neutral-medium-default"
|
|
68
|
-
},
|
|
69
|
-
danger: {
|
|
70
|
-
switch: "bg-error-medium-default text-neutral-weak-default",
|
|
71
|
-
container: "border-neutral-default-default",
|
|
72
|
-
icon: "text-neutral-weak-default",
|
|
73
|
-
option: "text-neutral-medium-default"
|
|
74
|
-
},
|
|
75
|
-
warning: {
|
|
76
|
-
switch: "bg-warning-medium-default text-neutral-weak-default",
|
|
77
|
-
container: "border-neutral-default-default",
|
|
78
|
-
icon: "text-neutral-weak-default",
|
|
79
|
-
option: "text-neutral-medium-default"
|
|
80
|
-
},
|
|
81
|
-
disabled: {
|
|
82
|
-
switch: "bg-primary-medium-disabled text-neutral-strong-disabled",
|
|
83
|
-
container: "border-neutral-default-disabled",
|
|
84
|
-
icon: "text-neutral-strong-disabled",
|
|
85
|
-
option: "text-neutral-strong-disabled"
|
|
86
|
-
}
|
|
87
|
-
}, q = i.find((m) => m.value === s) ?? i[0], L = q.label.length * I + D * 2 + W, A = () => z(() => Object.values(e).reduce((y, j) => y + j, 0) + W, [e]), O = {
|
|
88
|
-
small: c ? A() : (b - 1) * v.small + w.small,
|
|
89
|
-
medium: c ? A() : (b - 1) * v.medium + w.medium,
|
|
90
|
-
large: c ? A() : (b - 1) * v.large + w.large
|
|
91
|
-
};
|
|
92
|
-
T(() => {
|
|
93
|
-
if (!c) return;
|
|
94
|
-
let m = {};
|
|
95
|
-
i.forEach((y, j) => {
|
|
96
|
-
m[j] = y.label.length * I + D * 2;
|
|
97
|
-
}), o(m);
|
|
98
|
-
}, []);
|
|
99
|
-
const Z = z(() => c ? Object.values(e).reduce((m, y, j) => j < p ? m + y : m, 0) : Math.max(p * v[r] - 2, 0), [p]), J = () => {
|
|
100
|
-
if (x) return;
|
|
101
|
-
const m = p === i.length - 1 ? i[0] : i[p + 1];
|
|
102
|
-
l?.(d, m.value);
|
|
103
|
-
}, S = x ? "disabled" : n;
|
|
104
|
-
return /* @__PURE__ */ a.jsxs(
|
|
105
|
-
"button",
|
|
106
|
-
{
|
|
107
|
-
name: d,
|
|
108
|
-
type: "button",
|
|
109
|
-
id: "segmented-button-container",
|
|
110
|
-
style: {
|
|
111
|
-
width: O[r],
|
|
112
|
-
minWidth: O[r],
|
|
113
|
-
maxWidth: O[r]
|
|
114
|
-
},
|
|
115
|
-
className: u(
|
|
116
|
-
X[r].container,
|
|
117
|
-
C[S].container,
|
|
118
|
-
"border-[1px]",
|
|
119
|
-
!x && "cursor-pointer",
|
|
120
|
-
"relative"
|
|
121
|
-
),
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ a.jsxs(
|
|
124
|
-
g.div,
|
|
125
|
-
{
|
|
126
|
-
id: "segmented-button-switcher",
|
|
127
|
-
animate: {
|
|
128
|
-
left: `${Z}px`,
|
|
129
|
-
width: c ? L : w[r],
|
|
130
|
-
minWidth: c ? L : w[r],
|
|
131
|
-
maxWidth: c ? L : w[r]
|
|
132
|
-
},
|
|
133
|
-
transition: {
|
|
134
|
-
type: "spring",
|
|
135
|
-
stiffness: 260,
|
|
136
|
-
damping: 30
|
|
137
|
-
},
|
|
138
|
-
className: u(
|
|
139
|
-
"absolute top-0 left-0 h-full rounded-[6px] z-30",
|
|
140
|
-
"flex items-center justify-center gap-[2px] p-4",
|
|
141
|
-
C[S].switch
|
|
142
|
-
),
|
|
143
|
-
onClick: () => {
|
|
144
|
-
!x && J();
|
|
145
|
-
},
|
|
146
|
-
children: [
|
|
147
|
-
f && _.cloneElement(f, { className: u(
|
|
148
|
-
"w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
|
|
149
|
-
C[S].icon
|
|
150
|
-
) }),
|
|
151
|
-
/* @__PURE__ */ a.jsx(
|
|
152
|
-
"p",
|
|
153
|
-
{
|
|
154
|
-
className: u(
|
|
155
|
-
"prometeo-fonts-label-large ",
|
|
156
|
-
" overflow-hidden overflow-ellipsis text-nowrap ",
|
|
157
|
-
C[S].switch
|
|
158
|
-
),
|
|
159
|
-
children: q.label
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ a.jsx(
|
|
166
|
-
"div",
|
|
167
|
-
{
|
|
168
|
-
id: "segmented-button-options",
|
|
169
|
-
className: u(
|
|
170
|
-
"absolute top-0 left-0 w-full h-full overflow-hidden",
|
|
171
|
-
"flex justify-center"
|
|
172
|
-
),
|
|
173
|
-
children: i?.map((m, y) => {
|
|
174
|
-
const j = m.value === (s || i[0].value), K = c ? e[y] + W : w[r], Q = c ? e[y] : v[r], P = j ? K : Q;
|
|
175
|
-
return /* @__PURE__ */ a.jsx(
|
|
176
|
-
g.span,
|
|
177
|
-
{
|
|
178
|
-
id: "segmented-button-option",
|
|
179
|
-
onClick: () => {
|
|
180
|
-
!x && l?.(d, m.value);
|
|
181
|
-
},
|
|
182
|
-
animate: {
|
|
183
|
-
width: P,
|
|
184
|
-
minWidth: P,
|
|
185
|
-
maxWidth: P
|
|
186
|
-
},
|
|
187
|
-
transition: {
|
|
188
|
-
duration: 0.3,
|
|
189
|
-
delay: 0
|
|
190
|
-
},
|
|
191
|
-
className: u(
|
|
192
|
-
"z-20 h-full ",
|
|
193
|
-
"flex items-center justify-center px-3 py-[6px]",
|
|
194
|
-
"prometeo-fonts-label-large text-neutral-medium-default",
|
|
195
|
-
" overflow-hidden ",
|
|
196
|
-
!x && "cursor-pointer"
|
|
197
|
-
),
|
|
198
|
-
"aria-label": m.label,
|
|
199
|
-
children: /* @__PURE__ */ a.jsx(
|
|
200
|
-
"p",
|
|
201
|
-
{
|
|
202
|
-
style: {
|
|
203
|
-
width: c ? "max-content" : v[r],
|
|
204
|
-
minWidth: c ? "max-content" : v[r],
|
|
205
|
-
maxWidth: c ? "max-content" : v[r]
|
|
206
|
-
},
|
|
207
|
-
className: u(
|
|
208
|
-
"px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full",
|
|
209
|
-
C[S].option
|
|
210
|
-
),
|
|
211
|
-
children: m.label
|
|
212
|
-
}
|
|
213
|
-
)
|
|
214
|
-
},
|
|
215
|
-
m.value
|
|
216
|
-
);
|
|
217
|
-
})
|
|
218
|
-
}
|
|
219
|
-
)
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
}, oe = (t, e) => {
|
|
224
|
-
U(
|
|
37
|
+
import P, { useRef as g, useState as y, useLayoutEffect as q, createContext as T, useContext as z, useEffect as N, forwardRef as k, useCallback as D } from "react";
|
|
38
|
+
import { useGSAP as I } from "@gsap/react";
|
|
39
|
+
import m from "gsap";
|
|
40
|
+
import { Icons as h } from "./Icons.es.js";
|
|
41
|
+
import { motion as b, AnimatePresence as B } from "framer-motion";
|
|
42
|
+
import { default as Zt } from "./OtpInput.es.js";
|
|
43
|
+
import { useDropzone as E } from "react-dropzone";
|
|
44
|
+
import { useIsMobile as Kt } from "./useDevice.es.js";
|
|
45
|
+
import { DropZone as Yt } from "./DropZone.es.js";
|
|
46
|
+
const O = (t, e) => {
|
|
47
|
+
I(
|
|
225
48
|
() => {
|
|
226
49
|
if (!t.current) return;
|
|
227
|
-
const
|
|
50
|
+
const r = t.current, o = document.querySelector('[data-main-content="true"]');
|
|
228
51
|
if (e) {
|
|
229
|
-
|
|
230
|
-
|
|
52
|
+
m.fromTo(
|
|
53
|
+
r,
|
|
231
54
|
{
|
|
232
55
|
width: "0rem",
|
|
233
56
|
opacity: 0
|
|
@@ -238,13 +61,13 @@ const We = (t) => {
|
|
|
238
61
|
duration: 0.4,
|
|
239
62
|
ease: "power2.out"
|
|
240
63
|
}
|
|
241
|
-
),
|
|
242
|
-
marginLeft:
|
|
64
|
+
), o && m.to(o, {
|
|
65
|
+
marginLeft: r.offsetWidth + "px",
|
|
243
66
|
duration: 0.4,
|
|
244
67
|
ease: "power2.out"
|
|
245
68
|
});
|
|
246
|
-
const n =
|
|
247
|
-
n.length > 0 &&
|
|
69
|
+
const n = r.querySelectorAll(".secondary-bar-content > *");
|
|
70
|
+
n.length > 0 && m.fromTo(
|
|
248
71
|
n,
|
|
249
72
|
{
|
|
250
73
|
y: 20,
|
|
@@ -260,12 +83,12 @@ const We = (t) => {
|
|
|
260
83
|
}
|
|
261
84
|
);
|
|
262
85
|
} else
|
|
263
|
-
|
|
86
|
+
m.to(r, {
|
|
264
87
|
width: "0rem",
|
|
265
88
|
opacity: 0,
|
|
266
89
|
duration: 0.3,
|
|
267
90
|
ease: "power2.in"
|
|
268
|
-
}),
|
|
91
|
+
}), o && m.to(o, {
|
|
269
92
|
marginLeft: "0px",
|
|
270
93
|
duration: 0.3,
|
|
271
94
|
ease: "power2.in"
|
|
@@ -273,25 +96,25 @@ const We = (t) => {
|
|
|
273
96
|
},
|
|
274
97
|
{ scope: t, dependencies: [e] }
|
|
275
98
|
);
|
|
276
|
-
},
|
|
99
|
+
}, C = ({
|
|
277
100
|
children: t,
|
|
278
101
|
isOpen: e = !1,
|
|
279
|
-
className:
|
|
280
|
-
width:
|
|
102
|
+
className: r = "",
|
|
103
|
+
width: o = "w-96",
|
|
281
104
|
action: n,
|
|
282
105
|
primarySidebarCollapsed: i,
|
|
283
106
|
onClose: s
|
|
284
107
|
}) => {
|
|
285
|
-
const
|
|
286
|
-
return
|
|
287
|
-
if (
|
|
288
|
-
const x =
|
|
289
|
-
|
|
108
|
+
const c = g(null), [l, d] = y({ left: 0, width: 0 }), { primarySidebarRef: f } = S();
|
|
109
|
+
return q(() => {
|
|
110
|
+
if (f?.current) {
|
|
111
|
+
const x = f.current.getBoundingClientRect();
|
|
112
|
+
d({
|
|
290
113
|
left: x.width,
|
|
291
114
|
width: x.width
|
|
292
115
|
});
|
|
293
116
|
}
|
|
294
|
-
}, [
|
|
117
|
+
}, [f, e, i]), O(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
295
118
|
/* @__PURE__ */ a.jsx(
|
|
296
119
|
"div",
|
|
297
120
|
{
|
|
@@ -305,12 +128,12 @@ const We = (t) => {
|
|
|
305
128
|
/* @__PURE__ */ a.jsx(
|
|
306
129
|
"div",
|
|
307
130
|
{
|
|
308
|
-
ref:
|
|
131
|
+
ref: c,
|
|
309
132
|
className: u(
|
|
310
133
|
"h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
|
|
311
134
|
"absolute top-0 z-30",
|
|
312
|
-
|
|
313
|
-
|
|
135
|
+
o,
|
|
136
|
+
r
|
|
314
137
|
),
|
|
315
138
|
style: {
|
|
316
139
|
left: l.left
|
|
@@ -320,34 +143,34 @@ const We = (t) => {
|
|
|
320
143
|
}
|
|
321
144
|
)
|
|
322
145
|
] }) });
|
|
323
|
-
},
|
|
324
|
-
Root:
|
|
325
|
-
Header:
|
|
326
|
-
Content:
|
|
327
|
-
Footer:
|
|
328
|
-
Spacer:
|
|
329
|
-
}),
|
|
146
|
+
}, H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), $ = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(C, {
|
|
147
|
+
Root: C,
|
|
148
|
+
Header: H,
|
|
149
|
+
Content: W,
|
|
150
|
+
Footer: $,
|
|
151
|
+
Spacer: F
|
|
152
|
+
}), R = T(
|
|
330
153
|
void 0
|
|
331
|
-
),
|
|
332
|
-
const t =
|
|
154
|
+
), fe = () => {
|
|
155
|
+
const t = z(R);
|
|
333
156
|
if (!t)
|
|
334
157
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
335
158
|
return t;
|
|
336
|
-
},
|
|
159
|
+
}, M = ({
|
|
337
160
|
children: t
|
|
338
161
|
}) => {
|
|
339
|
-
const [e,
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
162
|
+
const [e, r] = y(!1), [o, n] = y(!1), i = g(null), s = () => {
|
|
163
|
+
r(!1), n(!1);
|
|
164
|
+
}, c = () => {
|
|
165
|
+
r(!0), n(!1);
|
|
343
166
|
}, p = {
|
|
344
167
|
isCollapsed: e,
|
|
345
|
-
setIsCollapsed:
|
|
168
|
+
setIsCollapsed: r,
|
|
346
169
|
navbarRef: i,
|
|
347
170
|
toggleCollapse: () => {
|
|
348
|
-
e ? s() :
|
|
171
|
+
e ? s() : c();
|
|
349
172
|
},
|
|
350
|
-
activeSecondaryBar:
|
|
173
|
+
activeSecondaryBar: o ? "notifications" : null,
|
|
351
174
|
openSecondaryBar: () => {
|
|
352
175
|
n(!0);
|
|
353
176
|
},
|
|
@@ -355,22 +178,22 @@ const We = (t) => {
|
|
|
355
178
|
n(!1);
|
|
356
179
|
},
|
|
357
180
|
toggleSecondaryBar: () => {
|
|
358
|
-
n((
|
|
181
|
+
n((v) => !v);
|
|
359
182
|
}
|
|
360
183
|
};
|
|
361
|
-
return /* @__PURE__ */ a.jsx(
|
|
362
|
-
},
|
|
363
|
-
|
|
184
|
+
return /* @__PURE__ */ a.jsx(R.Provider, { value: p, children: t });
|
|
185
|
+
}, w = (t, e, r, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, o) : t, U = (t, e, r) => {
|
|
186
|
+
I(
|
|
364
187
|
() => {
|
|
365
188
|
if (!t.current) return;
|
|
366
|
-
const
|
|
189
|
+
const o = m.timeline({
|
|
367
190
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
368
191
|
}), n = {
|
|
369
192
|
navbar: t.current,
|
|
370
|
-
navLabels:
|
|
371
|
-
navIconWrappers:
|
|
372
|
-
navIcons:
|
|
373
|
-
navLinkItems:
|
|
193
|
+
navLabels: m.utils.toArray(".nav-label"),
|
|
194
|
+
navIconWrappers: m.utils.toArray(".nav-icon-wrapper"),
|
|
195
|
+
navIcons: m.utils.toArray(".nav-icon"),
|
|
196
|
+
navLinkItems: m.utils.toArray(".nav-link-item"),
|
|
374
197
|
logoutButton: document.querySelector(".logout-button"),
|
|
375
198
|
logoutLabel: document.querySelector(".logout-label"),
|
|
376
199
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -398,14 +221,14 @@ const We = (t) => {
|
|
|
398
221
|
),
|
|
399
222
|
// Secondary bar elements
|
|
400
223
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
401
|
-
secondaryBarContent:
|
|
402
|
-
badgeInLink:
|
|
224
|
+
secondaryBarContent: m.utils.toArray(".secondary-bar *"),
|
|
225
|
+
badgeInLink: m.utils.toArray(".badge-in-link")
|
|
403
226
|
};
|
|
404
|
-
e ?
|
|
227
|
+
e ? G(o, n) : V(o, n), n.secondaryBar && _(n.secondaryBar);
|
|
405
228
|
},
|
|
406
|
-
{ scope: t, dependencies: [e,
|
|
229
|
+
{ scope: t, dependencies: [e, r] }
|
|
407
230
|
);
|
|
408
|
-
},
|
|
231
|
+
}, G = (t, e) => {
|
|
409
232
|
t.to(e.navbar, {
|
|
410
233
|
width: "5rem",
|
|
411
234
|
duration: 0.2,
|
|
@@ -464,7 +287,7 @@ const We = (t) => {
|
|
|
464
287
|
marginLeft: 0
|
|
465
288
|
},
|
|
466
289
|
0
|
|
467
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
290
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), w(
|
|
468
291
|
t,
|
|
469
292
|
e.buttonCrevron,
|
|
470
293
|
{
|
|
@@ -477,7 +300,7 @@ const We = (t) => {
|
|
|
477
300
|
}
|
|
478
301
|
},
|
|
479
302
|
0
|
|
480
|
-
),
|
|
303
|
+
), w(
|
|
481
304
|
t,
|
|
482
305
|
e.buttonContentChevron,
|
|
483
306
|
{
|
|
@@ -544,7 +367,7 @@ const We = (t) => {
|
|
|
544
367
|
},
|
|
545
368
|
-1
|
|
546
369
|
);
|
|
547
|
-
},
|
|
370
|
+
}, V = (t, e) => {
|
|
548
371
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
549
372
|
e.navLinkItems,
|
|
550
373
|
{
|
|
@@ -554,7 +377,7 @@ const We = (t) => {
|
|
|
554
377
|
justifyContent: "flex-start"
|
|
555
378
|
},
|
|
556
379
|
-1
|
|
557
|
-
),
|
|
380
|
+
), w(
|
|
558
381
|
t,
|
|
559
382
|
e.buttonCrevron,
|
|
560
383
|
{
|
|
@@ -567,7 +390,7 @@ const We = (t) => {
|
|
|
567
390
|
}
|
|
568
391
|
},
|
|
569
392
|
0
|
|
570
|
-
),
|
|
393
|
+
), w(
|
|
571
394
|
t,
|
|
572
395
|
e.buttonContentChevron,
|
|
573
396
|
{
|
|
@@ -672,19 +495,19 @@ const We = (t) => {
|
|
|
672
495
|
},
|
|
673
496
|
0
|
|
674
497
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
675
|
-
},
|
|
676
|
-
|
|
498
|
+
}, _ = (t, e) => {
|
|
499
|
+
m.to(t, {
|
|
677
500
|
x: "-100%",
|
|
678
501
|
opacity: 0,
|
|
679
502
|
duration: 0.3,
|
|
680
503
|
ease: "power2.in"
|
|
681
504
|
});
|
|
682
|
-
},
|
|
683
|
-
const [e,
|
|
684
|
-
|
|
685
|
-
|
|
505
|
+
}, X = (t) => {
|
|
506
|
+
const [e, r] = y(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
|
|
507
|
+
N(() => {
|
|
508
|
+
o.current?.style.setProperty("--tab-bg", s);
|
|
686
509
|
}, [s]);
|
|
687
|
-
const
|
|
510
|
+
const c = n.find((l) => l.name === (t?.currentTabName || e));
|
|
688
511
|
return /* @__PURE__ */ a.jsx(
|
|
689
512
|
"div",
|
|
690
513
|
{
|
|
@@ -696,9 +519,9 @@ const We = (t) => {
|
|
|
696
519
|
i
|
|
697
520
|
),
|
|
698
521
|
children: n.map(
|
|
699
|
-
(l,
|
|
700
|
-
const
|
|
701
|
-
l.disabled || (
|
|
522
|
+
(l, d) => {
|
|
523
|
+
const f = l.name === c?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.description, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
|
|
524
|
+
l.disabled || (r(l.name), l.onClick && l.onClick(l.name));
|
|
702
525
|
};
|
|
703
526
|
return /* @__PURE__ */ a.jsx(
|
|
704
527
|
"div",
|
|
@@ -709,10 +532,10 @@ const We = (t) => {
|
|
|
709
532
|
"flex items-center pl-[6px] ",
|
|
710
533
|
"rounded-l-[8px]",
|
|
711
534
|
"tabswitch-element relative",
|
|
712
|
-
|
|
535
|
+
f && "active"
|
|
713
536
|
),
|
|
714
537
|
onClick: p,
|
|
715
|
-
ref:
|
|
538
|
+
ref: o,
|
|
716
539
|
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
717
540
|
"size-8 rounded-[4px]",
|
|
718
541
|
"grid place-items-center",
|
|
@@ -721,26 +544,26 @@ const We = (t) => {
|
|
|
721
544
|
l?.className
|
|
722
545
|
), children: x })
|
|
723
546
|
},
|
|
724
|
-
|
|
547
|
+
d
|
|
725
548
|
);
|
|
726
549
|
}
|
|
727
550
|
)
|
|
728
551
|
}
|
|
729
552
|
);
|
|
730
|
-
},
|
|
731
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
732
|
-
const s =
|
|
733
|
-
s.current =
|
|
553
|
+
}, Z = k(
|
|
554
|
+
({ children: t, isCollapsed: e = !1, className: r = "", tabs: o = [], currentTabName: n }, i) => {
|
|
555
|
+
const s = g(null), { registerPrimarySidebar: c } = S(), l = D((d) => {
|
|
556
|
+
s.current = d, typeof i == "function" ? i(d) : i && (i.current = d);
|
|
734
557
|
}, [i]);
|
|
735
|
-
return
|
|
736
|
-
s.current &&
|
|
737
|
-
}, [
|
|
558
|
+
return N(() => {
|
|
559
|
+
s.current && c(s);
|
|
560
|
+
}, [c]), U(s, e, !1), /* @__PURE__ */ a.jsxs("div", { className: u(
|
|
738
561
|
"flex"
|
|
739
562
|
), children: [
|
|
740
|
-
|
|
741
|
-
|
|
563
|
+
o.length > 0 && /* @__PURE__ */ a.jsx(
|
|
564
|
+
X,
|
|
742
565
|
{
|
|
743
|
-
tabs:
|
|
566
|
+
tabs: o,
|
|
744
567
|
activeColor: "var(--neutral-900)",
|
|
745
568
|
currentTabName: n
|
|
746
569
|
}
|
|
@@ -750,27 +573,27 @@ const We = (t) => {
|
|
|
750
573
|
{
|
|
751
574
|
ref: l,
|
|
752
575
|
className: `bg-neutral-default-default hidden overflow-hidden h-screen md:flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0
|
|
753
|
-
${e ? "w-16" : "w-64"} ${
|
|
576
|
+
${e ? "w-16" : "w-64"} ${r}`,
|
|
754
577
|
children: t
|
|
755
578
|
}
|
|
756
579
|
)
|
|
757
580
|
] });
|
|
758
581
|
}
|
|
759
|
-
),
|
|
760
|
-
(t, e) => /* @__PURE__ */ a.jsx(
|
|
582
|
+
), j = k(
|
|
583
|
+
(t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
|
|
761
584
|
);
|
|
762
|
-
|
|
763
|
-
const
|
|
585
|
+
j.displayName = "SidebarRoot";
|
|
586
|
+
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
|
|
764
587
|
"button",
|
|
765
588
|
{
|
|
766
589
|
onClick: e,
|
|
767
590
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
768
591
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
769
592
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
770
|
-
children: t ? /* @__PURE__ */ a.jsx(
|
|
593
|
+
children: t ? /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
771
594
|
}
|
|
772
|
-
) }),
|
|
773
|
-
const
|
|
595
|
+
) }), K = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ a.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
|
|
596
|
+
const r = () => {
|
|
774
597
|
switch (e) {
|
|
775
598
|
case "auto":
|
|
776
599
|
return "flex-grow";
|
|
@@ -782,29 +605,29 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
782
605
|
return "h-8 w-8";
|
|
783
606
|
}
|
|
784
607
|
};
|
|
785
|
-
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
786
|
-
},
|
|
787
|
-
Root:
|
|
788
|
-
CollapseButton:
|
|
789
|
-
Header:
|
|
790
|
-
Divider:
|
|
791
|
-
Content:
|
|
792
|
-
Spacer:
|
|
793
|
-
Footer:
|
|
794
|
-
}),
|
|
608
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
|
|
609
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(j, {
|
|
610
|
+
Root: j,
|
|
611
|
+
CollapseButton: J,
|
|
612
|
+
Header: K,
|
|
613
|
+
Divider: Q,
|
|
614
|
+
Content: Y,
|
|
615
|
+
Spacer: ee,
|
|
616
|
+
Footer: te
|
|
617
|
+
}), pe = ({
|
|
795
618
|
children: t,
|
|
796
619
|
icon: e,
|
|
797
|
-
label:
|
|
798
|
-
href:
|
|
620
|
+
label: r,
|
|
621
|
+
href: o,
|
|
799
622
|
onClick: n,
|
|
800
623
|
isActive: i = !1,
|
|
801
624
|
className: s
|
|
802
625
|
}) => {
|
|
803
|
-
const
|
|
626
|
+
const c = o ? "a" : "button";
|
|
804
627
|
return /* @__PURE__ */ a.jsxs(
|
|
805
|
-
|
|
628
|
+
c,
|
|
806
629
|
{
|
|
807
|
-
href:
|
|
630
|
+
href: o,
|
|
808
631
|
onClick: n,
|
|
809
632
|
className: u(
|
|
810
633
|
"nav-link-item",
|
|
@@ -816,26 +639,26 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
816
639
|
),
|
|
817
640
|
children: [
|
|
818
641
|
e && /* @__PURE__ */ a.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ a.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
|
|
819
|
-
|
|
642
|
+
r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
|
|
820
643
|
t
|
|
821
644
|
]
|
|
822
645
|
}
|
|
823
646
|
);
|
|
824
|
-
},
|
|
647
|
+
}, L = ({
|
|
825
648
|
count: t,
|
|
826
649
|
maxCount: e = 9,
|
|
827
|
-
className:
|
|
828
|
-
size:
|
|
650
|
+
className: r = "",
|
|
651
|
+
size: o = "medium",
|
|
829
652
|
variant: n = "primary",
|
|
830
653
|
showZero: i = !1
|
|
831
654
|
}) => {
|
|
832
|
-
const s = t,
|
|
655
|
+
const s = t, c = s > e ? `+${e}` : s;
|
|
833
656
|
if (s === 0 && !i) return null;
|
|
834
657
|
const l = {
|
|
835
658
|
small: "w-4.5 h-4.5 text-xs ",
|
|
836
659
|
medium: "w-5 h-5 text-xs",
|
|
837
660
|
large: "w-6 h-6 text-sm"
|
|
838
|
-
},
|
|
661
|
+
}, d = {
|
|
839
662
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
840
663
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
841
664
|
success: "bg-green-500 text-white",
|
|
@@ -844,18 +667,18 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
844
667
|
};
|
|
845
668
|
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
846
669
|
"rounded-full flex items-center justify-center font-medium ",
|
|
847
|
-
l[
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
), children: /* @__PURE__ */ a.jsx("span", { children:
|
|
851
|
-
},
|
|
670
|
+
l[o],
|
|
671
|
+
d[n],
|
|
672
|
+
r
|
|
673
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
674
|
+
}, xe = ({
|
|
852
675
|
linkActions: t,
|
|
853
676
|
onClick: e,
|
|
854
|
-
activeAction:
|
|
855
|
-
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
856
|
-
const { isView: i = !1, actionName: s, title:
|
|
677
|
+
activeAction: r
|
|
678
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
679
|
+
const { isView: i = !1, actionName: s, title: c, icon: l, count: d, viewAccess: f } = o || {}, x = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = r === s;
|
|
857
680
|
return x && /* @__PURE__ */ a.jsx(
|
|
858
|
-
|
|
681
|
+
b.div,
|
|
859
682
|
{
|
|
860
683
|
initial: { opacity: 0 },
|
|
861
684
|
animate: { opacity: 1 },
|
|
@@ -878,8 +701,8 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
878
701
|
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
879
702
|
),
|
|
880
703
|
children: [
|
|
881
|
-
/* @__PURE__ */ a.jsx(
|
|
882
|
-
|
|
704
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
|
|
705
|
+
b.div,
|
|
883
706
|
{
|
|
884
707
|
layoutId: "nav-active-bg",
|
|
885
708
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -894,7 +717,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
894
717
|
}
|
|
895
718
|
) }),
|
|
896
719
|
/* @__PURE__ */ a.jsxs(
|
|
897
|
-
|
|
720
|
+
b.div,
|
|
898
721
|
{
|
|
899
722
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
900
723
|
animate: {
|
|
@@ -907,7 +730,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
907
730
|
children: [
|
|
908
731
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
909
732
|
/* @__PURE__ */ a.jsx(
|
|
910
|
-
|
|
733
|
+
b.div,
|
|
911
734
|
{
|
|
912
735
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
913
736
|
animate: {
|
|
@@ -926,9 +749,9 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
926
749
|
}) : null
|
|
927
750
|
}
|
|
928
751
|
),
|
|
929
|
-
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children:
|
|
752
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
930
753
|
] }),
|
|
931
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
754
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: d && d >= 1 ? /* @__PURE__ */ a.jsx(L, { count: d, maxCount: 9, className: "" }) : "" })
|
|
932
755
|
]
|
|
933
756
|
}
|
|
934
757
|
)
|
|
@@ -938,16 +761,16 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
938
761
|
},
|
|
939
762
|
n
|
|
940
763
|
);
|
|
941
|
-
}) }),
|
|
764
|
+
}) }), be = ({
|
|
942
765
|
links: t,
|
|
943
766
|
isLinkActive: e,
|
|
944
|
-
onLinkClick:
|
|
945
|
-
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
946
|
-
const { isView: i = !1, viewAccess: s, path:
|
|
947
|
-
(
|
|
767
|
+
onLinkClick: r
|
|
768
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
769
|
+
const { isView: i = !1, viewAccess: s, path: c, title: l, icon: d, count: f, relatedPaths: x } = o, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), v = e(c) || (x?.some(
|
|
770
|
+
(A) => e(A)
|
|
948
771
|
) ?? !1);
|
|
949
772
|
return p && /* @__PURE__ */ a.jsx(
|
|
950
|
-
|
|
773
|
+
b.div,
|
|
951
774
|
{
|
|
952
775
|
initial: { opacity: 0 },
|
|
953
776
|
animate: { opacity: 1 },
|
|
@@ -961,17 +784,17 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
961
784
|
"button",
|
|
962
785
|
{
|
|
963
786
|
onClick: () => {
|
|
964
|
-
|
|
787
|
+
r?.(c);
|
|
965
788
|
},
|
|
966
789
|
className: u(
|
|
967
790
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
968
791
|
"transition-all duration-300 ease-out w-full",
|
|
969
792
|
"group hover:bg-neutral-medium-selected",
|
|
970
|
-
|
|
793
|
+
v ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
971
794
|
),
|
|
972
795
|
children: [
|
|
973
|
-
/* @__PURE__ */ a.jsx(
|
|
974
|
-
|
|
796
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: v && /* @__PURE__ */ a.jsx(
|
|
797
|
+
b.div,
|
|
975
798
|
{
|
|
976
799
|
layoutId: "nav-active-bg",
|
|
977
800
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -986,7 +809,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
986
809
|
}
|
|
987
810
|
) }),
|
|
988
811
|
/* @__PURE__ */ a.jsxs(
|
|
989
|
-
|
|
812
|
+
b.div,
|
|
990
813
|
{
|
|
991
814
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
992
815
|
animate: {
|
|
@@ -999,28 +822,28 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
999
822
|
children: [
|
|
1000
823
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1001
824
|
/* @__PURE__ */ a.jsx(
|
|
1002
|
-
|
|
825
|
+
b.div,
|
|
1003
826
|
{
|
|
1004
827
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
1005
828
|
animate: {
|
|
1006
|
-
scale:
|
|
829
|
+
scale: v ? 1.05 : 1
|
|
1007
830
|
},
|
|
1008
831
|
transition: {
|
|
1009
832
|
duration: 0.25,
|
|
1010
833
|
ease: "easeOut"
|
|
1011
834
|
},
|
|
1012
|
-
children: typeof
|
|
835
|
+
children: typeof d == "function" ? d({
|
|
1013
836
|
size: 24,
|
|
1014
837
|
className: u(
|
|
1015
838
|
"nav-icon transition-colors duration-250 ease-out",
|
|
1016
|
-
|
|
839
|
+
v ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
1017
840
|
)
|
|
1018
841
|
}) : null
|
|
1019
842
|
}
|
|
1020
843
|
),
|
|
1021
844
|
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: l })
|
|
1022
845
|
] }),
|
|
1023
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
846
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
|
|
1024
847
|
]
|
|
1025
848
|
}
|
|
1026
849
|
)
|
|
@@ -1030,18 +853,18 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
1030
853
|
},
|
|
1031
854
|
n
|
|
1032
855
|
);
|
|
1033
|
-
}) }),
|
|
856
|
+
}) }), ve = ({
|
|
1034
857
|
isActiveModalNotification: t,
|
|
1035
858
|
setIsActiveModalNotification: e
|
|
1036
859
|
}) => ({ handleNotificationClick: () => {
|
|
1037
860
|
e(!0);
|
|
1038
|
-
}, isActiveModalNotification: t }),
|
|
1039
|
-
const e =
|
|
861
|
+
}, isActiveModalNotification: t }), ge = (t) => {
|
|
862
|
+
const e = g(null);
|
|
1040
863
|
return {
|
|
1041
864
|
isCollapsed: t,
|
|
1042
865
|
navbarRef: e
|
|
1043
866
|
};
|
|
1044
|
-
},
|
|
867
|
+
}, ye = ({
|
|
1045
868
|
isCollapsed: t,
|
|
1046
869
|
onToggle: e
|
|
1047
870
|
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
@@ -1051,9 +874,9 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
1051
874
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
1052
875
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
1053
876
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
1054
|
-
children: t ? /* @__PURE__ */ a.jsx(
|
|
877
|
+
children: t ? /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
1055
878
|
}
|
|
1056
|
-
) }),
|
|
879
|
+
) }), he = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
1057
880
|
"img",
|
|
1058
881
|
{
|
|
1059
882
|
src: t,
|
|
@@ -1061,106 +884,108 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
1061
884
|
alt: e ?? ""
|
|
1062
885
|
}
|
|
1063
886
|
) });
|
|
1064
|
-
function
|
|
887
|
+
function we({
|
|
1065
888
|
onFilesAccepted: t,
|
|
1066
889
|
onFilesRejected: e,
|
|
1067
|
-
...
|
|
890
|
+
...r
|
|
1068
891
|
}) {
|
|
1069
|
-
const
|
|
892
|
+
const o = P.useCallback(
|
|
1070
893
|
(i, s) => {
|
|
1071
894
|
i.length > 0 && t?.(i), s.length > 0 && e?.(s);
|
|
1072
895
|
},
|
|
1073
896
|
[t, e]
|
|
1074
|
-
), n =
|
|
1075
|
-
onDrop:
|
|
1076
|
-
...
|
|
897
|
+
), n = E({
|
|
898
|
+
onDrop: o,
|
|
899
|
+
...r
|
|
1077
900
|
});
|
|
1078
901
|
return {
|
|
1079
902
|
...n,
|
|
1080
903
|
hasErrors: n.fileRejections.length > 0
|
|
1081
904
|
};
|
|
1082
905
|
}
|
|
1083
|
-
const
|
|
1084
|
-
const
|
|
1085
|
-
return
|
|
906
|
+
const je = (t, e = !0) => {
|
|
907
|
+
const r = g(null);
|
|
908
|
+
return N(() => {
|
|
1086
909
|
if (!e) return;
|
|
1087
|
-
const
|
|
1088
|
-
|
|
910
|
+
const o = (n) => {
|
|
911
|
+
r.current && !r.current.contains(n.target) && t();
|
|
1089
912
|
};
|
|
1090
|
-
return document.addEventListener("mousedown",
|
|
913
|
+
return document.addEventListener("mousedown", o, {
|
|
1091
914
|
capture: !0
|
|
1092
|
-
}), document.addEventListener("touchstart",
|
|
915
|
+
}), document.addEventListener("touchstart", o, {
|
|
1093
916
|
capture: !0
|
|
1094
917
|
}), () => {
|
|
1095
|
-
document.removeEventListener("mousedown",
|
|
918
|
+
document.removeEventListener("mousedown", o, {
|
|
1096
919
|
capture: !0
|
|
1097
|
-
}), document.removeEventListener("touchstart",
|
|
920
|
+
}), document.removeEventListener("touchstart", o, {
|
|
1098
921
|
capture: !0
|
|
1099
922
|
});
|
|
1100
923
|
};
|
|
1101
|
-
}, [t, e]),
|
|
924
|
+
}, [t, e]), r;
|
|
1102
925
|
};
|
|
1103
926
|
export {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
927
|
+
Se as Avatar,
|
|
928
|
+
L as Badge,
|
|
929
|
+
Ie as Button,
|
|
930
|
+
Re as CardProfile,
|
|
931
|
+
Le as ChangueAccount,
|
|
932
|
+
Pe as CheckBox,
|
|
933
|
+
Te as CheckboxFormik,
|
|
934
|
+
he as CompanyLogo,
|
|
935
|
+
wt as DatePicker,
|
|
936
|
+
De as DialogModal,
|
|
937
|
+
He as DrawerDesktop,
|
|
938
|
+
Fe as DrawerMobile,
|
|
939
|
+
Yt as DropZone,
|
|
940
|
+
Ge as Header,
|
|
941
|
+
h as Icons,
|
|
942
|
+
_t as Image,
|
|
943
|
+
Gt as ImageGallery,
|
|
944
|
+
_e as Input,
|
|
945
|
+
Ze as InputFormik,
|
|
946
|
+
Ke as InputMultiple,
|
|
947
|
+
Ft as LayoutGeneric,
|
|
948
|
+
Ye as Logo,
|
|
949
|
+
tt as Menu,
|
|
950
|
+
xe as NavBarActions,
|
|
951
|
+
ye as NavbarCollapseButton,
|
|
952
|
+
be as NavbarLinks,
|
|
953
|
+
pe as NavigationLink,
|
|
954
|
+
Zt as OtpInput,
|
|
955
|
+
rt as Pagination,
|
|
956
|
+
nt as ProfilePictureUpload,
|
|
957
|
+
st as ProgressBar,
|
|
958
|
+
de as SecondaryBar,
|
|
959
|
+
Wt as SegmentedButton,
|
|
960
|
+
ct as Select,
|
|
961
|
+
dt as SelectFormik,
|
|
962
|
+
me as Sidebar,
|
|
963
|
+
M as SidebarProvider,
|
|
964
|
+
Mt as SidebarRefProvider,
|
|
965
|
+
Ot as Skeleton,
|
|
966
|
+
mt as Spinner,
|
|
967
|
+
xt as Steps,
|
|
968
|
+
vt as SwipeContainer,
|
|
969
|
+
yt as Switch,
|
|
970
|
+
Pt as TabLinks,
|
|
971
|
+
Nt as Table,
|
|
972
|
+
Ct as TableBody,
|
|
973
|
+
St as TableCaption,
|
|
974
|
+
kt as TableCell,
|
|
975
|
+
It as TableFooter,
|
|
976
|
+
Bt as TableHead,
|
|
977
|
+
Rt as TableHeader,
|
|
978
|
+
Lt as TableRow,
|
|
979
|
+
Tt as TextArea,
|
|
980
|
+
Dt as Tooltip,
|
|
981
|
+
ve as useActionsNavbar,
|
|
982
|
+
je as useClickOutside,
|
|
983
|
+
Ee as useDialogControl,
|
|
984
|
+
We as useDrawerDesktop,
|
|
985
|
+
Me as useDrawerMobile,
|
|
986
|
+
we as useFileDropzone,
|
|
987
|
+
Kt as useIsMobile,
|
|
988
|
+
ge as useNavbarCollapse,
|
|
989
|
+
fe as useSidebar,
|
|
990
|
+
S as useSidebarContext
|
|
1166
991
|
};
|