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