prometeo-design-system 1.6.6 → 1.6.8
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/Input.es.js +88 -84
- package/dist/ProfilePictureUpload.d.ts +2 -0
- package/dist/ProfilePictureUpload.es.js +207 -0
- package/dist/Steps.d.ts +2 -0
- package/dist/Steps.es.js +189 -0
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/InputMultiple/InputMultiple.d.ts +21 -0
- package/dist/exports/ProfilePictureUpload.d.ts +2 -0
- package/dist/exports/Steps.d.ts +2 -0
- package/dist/preview/InputsPreviews.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +260 -639
- package/package.json +1 -1
|
@@ -1,425 +1,46 @@
|
|
|
1
|
-
import
|
|
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 { default as
|
|
13
|
-
import { Menu as
|
|
14
|
-
import { default as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import {
|
|
21
|
-
import { default as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { useGSAP as
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
xl: "w-40 h-40"
|
|
40
|
-
}, U = {
|
|
41
|
-
sm: "w-4 h-4",
|
|
42
|
-
md: "w-5 h-5",
|
|
43
|
-
lg: "w-6 h-6",
|
|
44
|
-
xl: "w-8 h-8"
|
|
45
|
-
}, V = {
|
|
46
|
-
sm: "w-6 h-6",
|
|
47
|
-
md: "w-7 h-7",
|
|
48
|
-
lg: "w-8 h-8",
|
|
49
|
-
xl: "w-10 h-10"
|
|
50
|
-
}, G = {
|
|
51
|
-
sm: "-bottom-1 -right-0.5",
|
|
52
|
-
md: "-bottom-0.5 -right-0.5",
|
|
53
|
-
lg: "bottom-1 right-1",
|
|
54
|
-
xl: "bottom-3 right-2"
|
|
55
|
-
}, R = {
|
|
56
|
-
sm: "w-4 h-4",
|
|
57
|
-
md: "w-5 h-5",
|
|
58
|
-
lg: "w-6 h-6",
|
|
59
|
-
xl: "w-7 h-7"
|
|
60
|
-
}, Z = {
|
|
61
|
-
sm: "-top-0.5 -right-0.5",
|
|
62
|
-
md: "-top-1 -right-1",
|
|
63
|
-
lg: "-top-1 -right-0",
|
|
64
|
-
xl: "top-1 right-1"
|
|
65
|
-
};
|
|
66
|
-
function je({
|
|
67
|
-
imageUrl: a,
|
|
68
|
-
fallbackText: e = "S L",
|
|
69
|
-
onFileSelect: o,
|
|
70
|
-
onEditClick: r,
|
|
71
|
-
onRemoveClick: n,
|
|
72
|
-
size: i = "lg",
|
|
73
|
-
className: u,
|
|
74
|
-
disabled: s = !1,
|
|
75
|
-
showRemoveButton: m = !0,
|
|
76
|
-
acceptedTypes: h = "image/*",
|
|
77
|
-
maxFileSize: x = 5 * 1024 * 1024,
|
|
78
|
-
onError: g
|
|
79
|
-
}) {
|
|
80
|
-
const v = C(null), [y, S] = k(!1), l = (w) => w.type.startsWith("image/") ? w.size > x ? (g?.(`La imagen debe ser menor a ${Math.round(x / 1024 / 1024)}MB`), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), d = (w) => {
|
|
81
|
-
const B = w.target.files?.[0];
|
|
82
|
-
B && (l(B) && o?.(B), w.target.value = "");
|
|
83
|
-
}, b = () => {
|
|
84
|
-
s || (r ? r() : v.current?.click());
|
|
85
|
-
}, j = (w) => {
|
|
86
|
-
w.stopPropagation(), !s && n?.();
|
|
87
|
-
};
|
|
88
|
-
return /* @__PURE__ */ t.jsxs(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
onMouseEnter: () => S(!0),
|
|
92
|
-
onMouseLeave: () => S(!1),
|
|
93
|
-
className: `relative inline-block border-inherit ${u || ""}`,
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ t.jsx(
|
|
96
|
-
"input",
|
|
97
|
-
{
|
|
98
|
-
ref: v,
|
|
99
|
-
type: "file",
|
|
100
|
-
accept: h,
|
|
101
|
-
onChange: d,
|
|
102
|
-
className: "hidden",
|
|
103
|
-
disabled: s
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ t.jsx(
|
|
107
|
-
c.div,
|
|
108
|
-
{
|
|
109
|
-
className: `
|
|
110
|
-
${H[i]}
|
|
111
|
-
rounded-full
|
|
112
|
-
overflow-hidden
|
|
113
|
-
flex items-center justify-center
|
|
114
|
-
relative
|
|
115
|
-
${s ? "opacity-50 cursor-not-allowed" : ""}
|
|
116
|
-
`,
|
|
117
|
-
children: /* @__PURE__ */ t.jsx(
|
|
118
|
-
M,
|
|
119
|
-
{
|
|
120
|
-
urlImage: a,
|
|
121
|
-
fallbackText: e,
|
|
122
|
-
sizeImage: i,
|
|
123
|
-
sizeFallback: i
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
/* @__PURE__ */ t.jsx(
|
|
129
|
-
c.button,
|
|
130
|
-
{
|
|
131
|
-
className: `
|
|
132
|
-
absolute
|
|
133
|
-
${G[i]}
|
|
134
|
-
border-3
|
|
135
|
-
border-inherit
|
|
136
|
-
${V[i]}
|
|
137
|
-
rounded-lg
|
|
138
|
-
bg-primary-default-default
|
|
139
|
-
hover:bg-primary-default-hover
|
|
140
|
-
transition-all duration-300
|
|
141
|
-
flex
|
|
142
|
-
items-center
|
|
143
|
-
justify-center
|
|
144
|
-
cursor-pointer
|
|
145
|
-
${s ? "opacity-50 cursor-not-allowed" : ""}
|
|
146
|
-
`,
|
|
147
|
-
onClick: b,
|
|
148
|
-
disabled: s,
|
|
149
|
-
whileTap: s ? {} : { scale: 0.95, transition: { duration: 0.2, ease: "easeInOut" } },
|
|
150
|
-
initial: { scale: 0, rotate: -180 },
|
|
151
|
-
animate: { scale: 1, rotate: 0 },
|
|
152
|
-
children: /* @__PURE__ */ t.jsx(
|
|
153
|
-
c.svg,
|
|
154
|
-
{
|
|
155
|
-
className: `${U[i]} text-white`,
|
|
156
|
-
fill: "none",
|
|
157
|
-
stroke: "currentColor",
|
|
158
|
-
viewBox: "0 0 24 24",
|
|
159
|
-
animate: y && !s ? {
|
|
160
|
-
x: [0, -1, 0, 1, -1, 0, 1],
|
|
161
|
-
y: [0, 1, 0, 1, 0, 1, 1],
|
|
162
|
-
rotate: [0, 5, -3, 8, -5, 3, 1],
|
|
163
|
-
transition: {
|
|
164
|
-
duration: 2,
|
|
165
|
-
ease: "easeInOut"
|
|
166
|
-
}
|
|
167
|
-
} : { x: 0, y: 0, rotate: 0 },
|
|
168
|
-
transition: {
|
|
169
|
-
duration: 1.2,
|
|
170
|
-
repeat: 0,
|
|
171
|
-
ease: "easeInOut"
|
|
172
|
-
},
|
|
173
|
-
children: /* @__PURE__ */ t.jsx(
|
|
174
|
-
"path",
|
|
175
|
-
{
|
|
176
|
-
strokeLinecap: "round",
|
|
177
|
-
strokeLinejoin: "round",
|
|
178
|
-
strokeWidth: 2,
|
|
179
|
-
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
}
|
|
183
|
-
)
|
|
184
|
-
}
|
|
185
|
-
),
|
|
186
|
-
/* @__PURE__ */ t.jsx($, { children: a && m && !s && /* @__PURE__ */ t.jsx(
|
|
187
|
-
c.button,
|
|
188
|
-
{
|
|
189
|
-
className: `
|
|
190
|
-
absolute
|
|
191
|
-
${Z[i]}
|
|
192
|
-
${R[i]}
|
|
193
|
-
rounded-full
|
|
194
|
-
shadow-lg
|
|
195
|
-
bg-error-light
|
|
196
|
-
flex
|
|
197
|
-
cursor-pointer
|
|
198
|
-
items-center
|
|
199
|
-
justify-center
|
|
200
|
-
${s ? "opacity-50 cursor-not-allowed" : ""}
|
|
201
|
-
`,
|
|
202
|
-
disabled: s,
|
|
203
|
-
onClick: j,
|
|
204
|
-
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
205
|
-
animate: {
|
|
206
|
-
scale: y ? 1 : 0.8,
|
|
207
|
-
opacity: y ? 1 : 0,
|
|
208
|
-
rotate: 0
|
|
209
|
-
},
|
|
210
|
-
exit: { scale: 0, opacity: 0, rotate: 90 },
|
|
211
|
-
whileTap: { scale: 0.9 },
|
|
212
|
-
transition: {
|
|
213
|
-
type: "spring",
|
|
214
|
-
stiffness: 300,
|
|
215
|
-
damping: 25
|
|
216
|
-
},
|
|
217
|
-
children: /* @__PURE__ */ t.jsx(
|
|
218
|
-
c.svg,
|
|
219
|
-
{
|
|
220
|
-
className: `${R[i]} text-white p-1`,
|
|
221
|
-
fill: "none",
|
|
222
|
-
stroke: "currentColor",
|
|
223
|
-
viewBox: "0 0 24 24",
|
|
224
|
-
whileHover: { rotate: 90 },
|
|
225
|
-
transition: { duration: 0.2 },
|
|
226
|
-
children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
}
|
|
230
|
-
) })
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
const P = ({
|
|
236
|
-
index: a,
|
|
237
|
-
isHorizontal: e,
|
|
238
|
-
currentStep: o
|
|
239
|
-
}) => {
|
|
240
|
-
const r = a < o, n = a === o - 1;
|
|
241
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `relative ${e ? "w-20 h-1" : "w-0.5 h-8"}`, children: [
|
|
242
|
-
/* @__PURE__ */ t.jsx(
|
|
243
|
-
"div",
|
|
244
|
-
{
|
|
245
|
-
className: "absolute inset-0 rounded-full bg-neutral-medium-default"
|
|
246
|
-
}
|
|
247
|
-
),
|
|
248
|
-
/* @__PURE__ */ t.jsx(
|
|
249
|
-
c.div,
|
|
250
|
-
{
|
|
251
|
-
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
252
|
-
initial: {
|
|
253
|
-
scaleX: e ? 0 : 1,
|
|
254
|
-
scaleY: e ? 1 : 0,
|
|
255
|
-
opacity: 0
|
|
256
|
-
},
|
|
257
|
-
animate: {
|
|
258
|
-
scaleX: r ? 1 : e ? 0 : 1,
|
|
259
|
-
scaleY: r || e ? 1 : 0,
|
|
260
|
-
opacity: r ? 1 : 0
|
|
261
|
-
},
|
|
262
|
-
transition: {
|
|
263
|
-
duration: 0.2,
|
|
264
|
-
ease: "easeInOut",
|
|
265
|
-
delay: a * 0.1
|
|
266
|
-
},
|
|
267
|
-
style: {
|
|
268
|
-
originX: e ? 0 : 0.5,
|
|
269
|
-
originY: e ? 0.5 : 0
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
),
|
|
273
|
-
n && /* @__PURE__ */ t.jsx(
|
|
274
|
-
c.div,
|
|
275
|
-
{
|
|
276
|
-
className: "absolute inset-0 rounded-full bg-primary-default-default",
|
|
277
|
-
initial: {
|
|
278
|
-
scaleX: e ? 0 : 1,
|
|
279
|
-
scaleY: e ? 1 : 0,
|
|
280
|
-
opacity: 0
|
|
281
|
-
},
|
|
282
|
-
animate: {
|
|
283
|
-
scaleX: 1,
|
|
284
|
-
scaleY: 1,
|
|
285
|
-
opacity: [0, 0.3, 0]
|
|
286
|
-
},
|
|
287
|
-
transition: {
|
|
288
|
-
duration: 1.5,
|
|
289
|
-
repeat: 1 / 0,
|
|
290
|
-
ease: "easeInOut"
|
|
291
|
-
},
|
|
292
|
-
style: {
|
|
293
|
-
originX: e ? 0 : 0.5,
|
|
294
|
-
originY: e ? 0.5 : 0,
|
|
295
|
-
filter: "blur(4px)"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
)
|
|
299
|
-
] });
|
|
300
|
-
}, Ne = ({
|
|
301
|
-
steps: a,
|
|
302
|
-
currentStep: e,
|
|
303
|
-
orientation: o = "horizontal",
|
|
304
|
-
variant: r = "default",
|
|
305
|
-
size: n = "md",
|
|
306
|
-
className: i = "",
|
|
307
|
-
onStepClick: u,
|
|
308
|
-
allowClickableSteps: s = !1
|
|
309
|
-
}) => {
|
|
310
|
-
const m = o === "horizontal", h = (l) => ({
|
|
311
|
-
sm: { right: "-40px", top: "16px" },
|
|
312
|
-
md: { right: "-40px", top: "20px" },
|
|
313
|
-
lg: { right: "-40px", top: "24px" }
|
|
314
|
-
})[l], x = {
|
|
315
|
-
sm: {
|
|
316
|
-
circle: "w-8 h-8 text-xs",
|
|
317
|
-
title: "text-sm",
|
|
318
|
-
description: "text-xs",
|
|
319
|
-
spacing: m ? "gap-4" : "gap-1"
|
|
320
|
-
},
|
|
321
|
-
md: {
|
|
322
|
-
circle: "w-10 h-10 text-sm",
|
|
323
|
-
title: "text-base",
|
|
324
|
-
description: "text-sm",
|
|
325
|
-
spacing: m ? "gap-3" : "gap-2"
|
|
326
|
-
},
|
|
327
|
-
lg: {
|
|
328
|
-
circle: "w-12 h-12 text-base",
|
|
329
|
-
title: "text-lg",
|
|
330
|
-
description: "text-base",
|
|
331
|
-
spacing: m ? "gap-4" : "gap-3"
|
|
332
|
-
}
|
|
333
|
-
}, g = (l) => l < e ? "completed" : l === e ? "current" : "upcoming", v = (l) => {
|
|
334
|
-
const d = `${x[n].circle} rounded-full flex items-center justify-center font-medium`;
|
|
335
|
-
switch (l) {
|
|
336
|
-
case "completed":
|
|
337
|
-
return `${d} bg-primary-default-default text-neutral-strong-default shadow-lg`;
|
|
338
|
-
case "current":
|
|
339
|
-
return `${d} border-3 border-primary text-neutral-strong-default shadow-lg duration-900`;
|
|
340
|
-
default:
|
|
341
|
-
return `${d} bg-neutral-medium-default text-neutral-medium-default`;
|
|
342
|
-
}
|
|
343
|
-
}, y = (l) => {
|
|
344
|
-
s && u && u(l);
|
|
345
|
-
}, S = m ? `flex items-center ${i}` : `space-y-0 ${i}`;
|
|
346
|
-
return /* @__PURE__ */ t.jsx("div", { className: S, children: a.map((l, d) => {
|
|
347
|
-
const b = g(d), j = s && u;
|
|
348
|
-
return /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: m ? /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsxs("div", { className: "w-40 flex flex-col items-center relative", children: [
|
|
349
|
-
/* @__PURE__ */ t.jsx(
|
|
350
|
-
c.div,
|
|
351
|
-
{
|
|
352
|
-
className: `${v(b)} ${j ? "cursor-pointer" : ""} relative z-10`,
|
|
353
|
-
initial: { scale: 0.8, opacity: 0 },
|
|
354
|
-
animate: { scale: 1, opacity: 1 },
|
|
355
|
-
transition: { duration: 0.3, delay: d * 0.1 },
|
|
356
|
-
whileTap: j ? { scale: 0.95 } : {},
|
|
357
|
-
onClick: () => y(d),
|
|
358
|
-
children: r === "numbered" || !l.icon ? b === "completed" ? /* @__PURE__ */ t.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ t.jsx(N.Check, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ t.jsx("span", { children: d + 1 }) : l.icon
|
|
359
|
-
}
|
|
360
|
-
),
|
|
361
|
-
d < a.length - 1 && /* @__PURE__ */ t.jsx(
|
|
362
|
-
"div",
|
|
363
|
-
{
|
|
364
|
-
className: "absolute",
|
|
365
|
-
style: h(n),
|
|
366
|
-
children: /* @__PURE__ */ t.jsx(
|
|
367
|
-
P,
|
|
368
|
-
{
|
|
369
|
-
index: d,
|
|
370
|
-
isHorizontal: m,
|
|
371
|
-
currentStep: e
|
|
372
|
-
}
|
|
373
|
-
)
|
|
374
|
-
}
|
|
375
|
-
),
|
|
376
|
-
r !== "minimal" && l.description && /* @__PURE__ */ t.jsx("p", { className: f(
|
|
377
|
-
x[n].description,
|
|
378
|
-
"text-gray-400 mt-2 text-center max-w-full",
|
|
379
|
-
b === "current" ? "text-neutral-strong-default font-semibold text-sm" : "text-neutral-medium-default"
|
|
380
|
-
), children: l.description })
|
|
381
|
-
] }) }) : /* @__PURE__ */ t.jsxs("div", { className: "relative flex w-36", children: [
|
|
382
|
-
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center w-full", children: [
|
|
383
|
-
/* @__PURE__ */ t.jsx(
|
|
384
|
-
c.div,
|
|
385
|
-
{
|
|
386
|
-
className: `${v(b)} ${j ? "cursor-pointer" : ""}`,
|
|
387
|
-
initial: { scale: 0.8, opacity: 0 },
|
|
388
|
-
animate: { scale: 1, opacity: 1 },
|
|
389
|
-
transition: { duration: 0.3, delay: d * 0.1 },
|
|
390
|
-
whileTap: j ? { scale: 0.95 } : {},
|
|
391
|
-
onClick: () => y(d),
|
|
392
|
-
children: r === "numbered" || !l.icon ? b === "completed" ? /* @__PURE__ */ t.jsx(c.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ t.jsx(N.Check, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ t.jsx("span", { children: d + 1 }) : l.icon
|
|
393
|
-
}
|
|
394
|
-
),
|
|
395
|
-
d < a.length - 1 && /* @__PURE__ */ t.jsx(
|
|
396
|
-
P,
|
|
397
|
-
{
|
|
398
|
-
index: d,
|
|
399
|
-
isHorizontal: m,
|
|
400
|
-
currentStep: e
|
|
401
|
-
}
|
|
402
|
-
)
|
|
403
|
-
] }),
|
|
404
|
-
r !== "minimal" && /* @__PURE__ */ t.jsx(
|
|
405
|
-
c.div,
|
|
406
|
-
{
|
|
407
|
-
className: `absolute -right-30 ml-4 top-3 gap-3 flex flex-col w-full ${x[n].spacing} flex h-full`,
|
|
408
|
-
initial: { opacity: 0, x: -10 },
|
|
409
|
-
animate: { opacity: 1, x: 0 },
|
|
410
|
-
transition: { duration: 0.3, delay: d * 0.1 + 0.1 },
|
|
411
|
-
children: l.description && /* @__PURE__ */ t.jsx("p", { className: f(x[n].description, "text-gray-400", b === "current" ? "text-neutral-strong-default font-semibold text-sm" : "text-neutral-medium-default"), children: l.description })
|
|
412
|
-
}
|
|
413
|
-
)
|
|
414
|
-
] }) }, l.id);
|
|
415
|
-
}) });
|
|
416
|
-
}, J = (a, e) => {
|
|
417
|
-
D(
|
|
1
|
+
import { default as ve } from "./Avatar.es.js";
|
|
2
|
+
import { default as we } from "./Button.es.js";
|
|
3
|
+
import { C as Ne, a as Ce } from "./CardProfile-BZajBGbO.js";
|
|
4
|
+
import { default as ke } from "./CheckBox.es.js";
|
|
5
|
+
import { default as Be } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as Re, useDialogControl as qe } from "./DialogModal.es.js";
|
|
7
|
+
import { default as Ae, useDrawerDesktop as Te } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as Ee, useDrawerMobile as Oe } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as Fe } from "./Header.es.js";
|
|
10
|
+
import { default as We } from "./Input.es.js";
|
|
11
|
+
import { default as Me } from "./InputFormik.es.js";
|
|
12
|
+
import { default as Ve } from "./Logo.es.js";
|
|
13
|
+
import { Menu as Xe } from "./Menu.es.js";
|
|
14
|
+
import { default as Je } from "./Pagination.es.js";
|
|
15
|
+
import { ProfilePictureUpload as Qe } from "./ProfilePictureUpload.es.js";
|
|
16
|
+
import { default as _e } from "./ProgressBar.es.js";
|
|
17
|
+
import { default as tt } from "./Select.es.js";
|
|
18
|
+
import { default as rt } from "./SelectFormik.es.js";
|
|
19
|
+
import { default as nt } from "./Spinner.es.js";
|
|
20
|
+
import { Steps as st } from "./Steps.es.js";
|
|
21
|
+
import { default as ct } from "./SwipeContainer.es.js";
|
|
22
|
+
import { default as dt } from "./TabLinks.es.js";
|
|
23
|
+
import { Table as pt, TableBody as mt, TableCaption as xt, TableCell as bt, TableFooter as yt, TableHead as gt, TableHeader as vt, TableRow as ht } from "./Table.es.js";
|
|
24
|
+
import { default as jt } from "./TextArea.es.js";
|
|
25
|
+
import { default as Ct } from "./Tooltip.es.js";
|
|
26
|
+
import { u as j } from "./LayoutGeneric-jDE96L2N.js";
|
|
27
|
+
import { L as kt, S as It } from "./LayoutGeneric-jDE96L2N.js";
|
|
28
|
+
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
29
|
+
import { c as s } from "./cn-B6yFEsav.js";
|
|
30
|
+
import { useRef as p, useState as v, useLayoutEffect as q, createContext as P, useContext as A, forwardRef as N, useCallback as T, useEffect as C } from "react";
|
|
31
|
+
import { useGSAP as S } from "@gsap/react";
|
|
32
|
+
import c from "gsap";
|
|
33
|
+
import { Icons as b } from "./Icons.es.js";
|
|
34
|
+
import { motion as d, AnimatePresence as k } from "framer-motion";
|
|
35
|
+
import { default as Lt } from "./OtpInput.es.js";
|
|
36
|
+
import { DropZone as qt } from "./DropZone.es.js";
|
|
37
|
+
const D = (t, e) => {
|
|
38
|
+
S(
|
|
418
39
|
() => {
|
|
419
|
-
if (!
|
|
420
|
-
const o =
|
|
40
|
+
if (!t.current) return;
|
|
41
|
+
const o = t.current, r = document.querySelector('[data-main-content="true"]');
|
|
421
42
|
if (e) {
|
|
422
|
-
|
|
43
|
+
c.fromTo(
|
|
423
44
|
o,
|
|
424
45
|
{
|
|
425
46
|
width: "0rem",
|
|
@@ -431,13 +52,13 @@ const P = ({
|
|
|
431
52
|
duration: 0.4,
|
|
432
53
|
ease: "power2.out"
|
|
433
54
|
}
|
|
434
|
-
), r &&
|
|
55
|
+
), r && c.to(r, {
|
|
435
56
|
marginLeft: o.offsetWidth + "px",
|
|
436
57
|
duration: 0.4,
|
|
437
58
|
ease: "power2.out"
|
|
438
59
|
});
|
|
439
60
|
const n = o.querySelectorAll(".secondary-bar-content > *");
|
|
440
|
-
n.length > 0 &&
|
|
61
|
+
n.length > 0 && c.fromTo(
|
|
441
62
|
n,
|
|
442
63
|
{
|
|
443
64
|
y: 20,
|
|
@@ -453,92 +74,92 @@ const P = ({
|
|
|
453
74
|
}
|
|
454
75
|
);
|
|
455
76
|
} else
|
|
456
|
-
|
|
77
|
+
c.to(o, {
|
|
457
78
|
width: "0rem",
|
|
458
79
|
opacity: 0,
|
|
459
80
|
duration: 0.3,
|
|
460
81
|
ease: "power2.in"
|
|
461
|
-
}), r &&
|
|
82
|
+
}), r && c.to(r, {
|
|
462
83
|
marginLeft: "0px",
|
|
463
84
|
duration: 0.3,
|
|
464
85
|
ease: "power2.in"
|
|
465
86
|
});
|
|
466
87
|
},
|
|
467
|
-
{ scope:
|
|
88
|
+
{ scope: t, dependencies: [e] }
|
|
468
89
|
);
|
|
469
|
-
},
|
|
470
|
-
children:
|
|
90
|
+
}, w = ({
|
|
91
|
+
children: t,
|
|
471
92
|
isOpen: e = !1,
|
|
472
93
|
className: o = "",
|
|
473
94
|
width: r = "w-96",
|
|
474
95
|
action: n,
|
|
475
96
|
primarySidebarCollapsed: i,
|
|
476
|
-
onClose:
|
|
97
|
+
onClose: l
|
|
477
98
|
}) => {
|
|
478
|
-
const
|
|
479
|
-
return
|
|
99
|
+
const u = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
|
|
100
|
+
return q(() => {
|
|
480
101
|
if (x?.current) {
|
|
481
102
|
const g = x.current.getBoundingClientRect();
|
|
482
|
-
|
|
103
|
+
m({
|
|
483
104
|
left: g.width,
|
|
484
105
|
width: g.width
|
|
485
106
|
});
|
|
486
107
|
}
|
|
487
|
-
}, [x, e, i]),
|
|
488
|
-
/* @__PURE__ */
|
|
108
|
+
}, [x, e, i]), D(u, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
109
|
+
/* @__PURE__ */ a.jsx(
|
|
489
110
|
"div",
|
|
490
111
|
{
|
|
491
112
|
className: "fixed inset-0 bg-black/95 z-20",
|
|
492
113
|
style: {
|
|
493
|
-
left:
|
|
114
|
+
left: f.left
|
|
494
115
|
},
|
|
495
|
-
onClick:
|
|
116
|
+
onClick: l
|
|
496
117
|
}
|
|
497
118
|
),
|
|
498
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ a.jsx(
|
|
499
120
|
"div",
|
|
500
121
|
{
|
|
501
|
-
ref:
|
|
502
|
-
className:
|
|
122
|
+
ref: u,
|
|
123
|
+
className: s(
|
|
503
124
|
"h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
|
|
504
125
|
"absolute top-0 z-30",
|
|
505
126
|
r,
|
|
506
127
|
o
|
|
507
128
|
),
|
|
508
129
|
style: {
|
|
509
|
-
left:
|
|
130
|
+
left: f.left
|
|
510
131
|
},
|
|
511
132
|
"data-action": n,
|
|
512
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
|
|
513
134
|
}
|
|
514
135
|
)
|
|
515
136
|
] }) });
|
|
516
|
-
},
|
|
517
|
-
Root:
|
|
518
|
-
Header:
|
|
519
|
-
Content:
|
|
520
|
-
Footer:
|
|
521
|
-
Spacer:
|
|
522
|
-
}),
|
|
137
|
+
}, E = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
|
|
138
|
+
Root: w,
|
|
139
|
+
Header: E,
|
|
140
|
+
Content: O,
|
|
141
|
+
Footer: z,
|
|
142
|
+
Spacer: F
|
|
143
|
+
}), I = P(
|
|
523
144
|
void 0
|
|
524
|
-
),
|
|
525
|
-
const
|
|
526
|
-
if (!
|
|
145
|
+
), se = () => {
|
|
146
|
+
const t = A(I);
|
|
147
|
+
if (!t)
|
|
527
148
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
528
|
-
return
|
|
529
|
-
},
|
|
530
|
-
children:
|
|
149
|
+
return t;
|
|
150
|
+
}, H = ({
|
|
151
|
+
children: t
|
|
531
152
|
}) => {
|
|
532
|
-
const [e, o] =
|
|
153
|
+
const [e, o] = v(!1), [r, n] = v(!1), i = p(null), l = () => {
|
|
533
154
|
o(!1), n(!1);
|
|
534
|
-
},
|
|
155
|
+
}, u = () => {
|
|
535
156
|
o(!0), n(!1);
|
|
536
|
-
},
|
|
157
|
+
}, L = {
|
|
537
158
|
isCollapsed: e,
|
|
538
159
|
setIsCollapsed: o,
|
|
539
160
|
navbarRef: i,
|
|
540
161
|
toggleCollapse: () => {
|
|
541
|
-
e ?
|
|
162
|
+
e ? l() : u();
|
|
542
163
|
},
|
|
543
164
|
activeSecondaryBar: r ? "notifications" : null,
|
|
544
165
|
openSecondaryBar: () => {
|
|
@@ -548,22 +169,22 @@ const P = ({
|
|
|
548
169
|
n(!1);
|
|
549
170
|
},
|
|
550
171
|
toggleSecondaryBar: () => {
|
|
551
|
-
n((
|
|
172
|
+
n((R) => !R);
|
|
552
173
|
}
|
|
553
174
|
};
|
|
554
|
-
return /* @__PURE__ */
|
|
555
|
-
},
|
|
556
|
-
|
|
175
|
+
return /* @__PURE__ */ a.jsx(I.Provider, { value: L, children: t });
|
|
176
|
+
}, y = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, W = (t, e, o) => {
|
|
177
|
+
S(
|
|
557
178
|
() => {
|
|
558
|
-
if (!
|
|
559
|
-
const r =
|
|
179
|
+
if (!t.current) return;
|
|
180
|
+
const r = c.timeline({
|
|
560
181
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
561
182
|
}), n = {
|
|
562
|
-
navbar:
|
|
563
|
-
navLabels:
|
|
564
|
-
navIconWrappers:
|
|
565
|
-
navIcons:
|
|
566
|
-
navLinkItems:
|
|
183
|
+
navbar: t.current,
|
|
184
|
+
navLabels: c.utils.toArray(".nav-label"),
|
|
185
|
+
navIconWrappers: c.utils.toArray(".nav-icon-wrapper"),
|
|
186
|
+
navIcons: c.utils.toArray(".nav-icon"),
|
|
187
|
+
navLinkItems: c.utils.toArray(".nav-link-item"),
|
|
567
188
|
logoutButton: document.querySelector(".logout-button"),
|
|
568
189
|
logoutLabel: document.querySelector(".logout-label"),
|
|
569
190
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -591,15 +212,15 @@ const P = ({
|
|
|
591
212
|
),
|
|
592
213
|
// Secondary bar elements
|
|
593
214
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
594
|
-
secondaryBarContent:
|
|
595
|
-
badgeInLink:
|
|
215
|
+
secondaryBarContent: c.utils.toArray(".secondary-bar *"),
|
|
216
|
+
badgeInLink: c.utils.toArray(".badge-in-link")
|
|
596
217
|
};
|
|
597
|
-
e ?
|
|
218
|
+
e ? $(r, n) : M(r, n), n.secondaryBar && U(n.secondaryBar);
|
|
598
219
|
},
|
|
599
|
-
{ scope:
|
|
220
|
+
{ scope: t, dependencies: [e, o] }
|
|
600
221
|
);
|
|
601
|
-
},
|
|
602
|
-
|
|
222
|
+
}, $ = (t, e) => {
|
|
223
|
+
t.to(e.navbar, {
|
|
603
224
|
width: "5rem",
|
|
604
225
|
duration: 0.2,
|
|
605
226
|
ease: "bounce.out"
|
|
@@ -657,8 +278,8 @@ const P = ({
|
|
|
657
278
|
marginLeft: 0
|
|
658
279
|
},
|
|
659
280
|
0
|
|
660
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
661
|
-
|
|
281
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), y(
|
|
282
|
+
t,
|
|
662
283
|
e.buttonCrevron,
|
|
663
284
|
{
|
|
664
285
|
width: 0,
|
|
@@ -670,8 +291,8 @@ const P = ({
|
|
|
670
291
|
}
|
|
671
292
|
},
|
|
672
293
|
0
|
|
673
|
-
),
|
|
674
|
-
|
|
294
|
+
), y(
|
|
295
|
+
t,
|
|
675
296
|
e.buttonContentChevron,
|
|
676
297
|
{
|
|
677
298
|
display: "none"
|
|
@@ -737,8 +358,8 @@ const P = ({
|
|
|
737
358
|
},
|
|
738
359
|
-1
|
|
739
360
|
);
|
|
740
|
-
},
|
|
741
|
-
|
|
361
|
+
}, M = (t, e) => {
|
|
362
|
+
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
742
363
|
e.navLinkItems,
|
|
743
364
|
{
|
|
744
365
|
borderRadius: "10px",
|
|
@@ -747,8 +368,8 @@ const P = ({
|
|
|
747
368
|
justifyContent: "flex-start"
|
|
748
369
|
},
|
|
749
370
|
-1
|
|
750
|
-
),
|
|
751
|
-
|
|
371
|
+
), y(
|
|
372
|
+
t,
|
|
752
373
|
e.buttonCrevron,
|
|
753
374
|
{
|
|
754
375
|
width: "auto",
|
|
@@ -760,8 +381,8 @@ const P = ({
|
|
|
760
381
|
}
|
|
761
382
|
},
|
|
762
383
|
0
|
|
763
|
-
),
|
|
764
|
-
|
|
384
|
+
), y(
|
|
385
|
+
t,
|
|
765
386
|
e.buttonContentChevron,
|
|
766
387
|
{
|
|
767
388
|
display: "flex"
|
|
@@ -865,44 +486,44 @@ const P = ({
|
|
|
865
486
|
},
|
|
866
487
|
0
|
|
867
488
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
868
|
-
},
|
|
869
|
-
|
|
489
|
+
}, U = (t, e) => {
|
|
490
|
+
c.to(t, {
|
|
870
491
|
x: "-100%",
|
|
871
492
|
opacity: 0,
|
|
872
493
|
duration: 0.3,
|
|
873
494
|
ease: "power2.in"
|
|
874
495
|
});
|
|
875
|
-
},
|
|
876
|
-
({ children:
|
|
877
|
-
const n =
|
|
878
|
-
n.current =
|
|
496
|
+
}, V = N(
|
|
497
|
+
({ children: t, isCollapsed: e = !1, className: o = "" }, r) => {
|
|
498
|
+
const n = p(null), { registerPrimarySidebar: i } = j(), l = T((u) => {
|
|
499
|
+
n.current = u, typeof r == "function" ? r(u) : r && (r.current = u);
|
|
879
500
|
}, [r]);
|
|
880
|
-
return
|
|
501
|
+
return C(() => {
|
|
881
502
|
n.current && i(n);
|
|
882
|
-
}, [i]),
|
|
503
|
+
}, [i]), W(n, e, !1), /* @__PURE__ */ a.jsx(
|
|
883
504
|
"div",
|
|
884
505
|
{
|
|
885
|
-
ref:
|
|
506
|
+
ref: l,
|
|
886
507
|
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
|
|
887
508
|
${e ? "w-16" : "w-64"} ${o}`,
|
|
888
|
-
children:
|
|
509
|
+
children: t
|
|
889
510
|
}
|
|
890
511
|
);
|
|
891
512
|
}
|
|
892
|
-
),
|
|
893
|
-
(
|
|
513
|
+
), h = N(
|
|
514
|
+
(t, e) => /* @__PURE__ */ a.jsx(H, { children: /* @__PURE__ */ a.jsx(V, { ...t, ref: e }) })
|
|
894
515
|
);
|
|
895
|
-
|
|
896
|
-
const
|
|
516
|
+
h.displayName = "SidebarRoot";
|
|
517
|
+
const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
|
|
897
518
|
"button",
|
|
898
519
|
{
|
|
899
520
|
onClick: e,
|
|
900
|
-
title:
|
|
901
|
-
"aria-label":
|
|
521
|
+
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
522
|
+
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
902
523
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
903
|
-
children:
|
|
524
|
+
children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
904
525
|
}
|
|
905
|
-
) }),
|
|
526
|
+
) }), X = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("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" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
|
|
906
527
|
const o = () => {
|
|
907
528
|
switch (e) {
|
|
908
529
|
case "auto":
|
|
@@ -915,78 +536,78 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
915
536
|
return "h-8 w-8";
|
|
916
537
|
}
|
|
917
538
|
};
|
|
918
|
-
return /* @__PURE__ */
|
|
919
|
-
},
|
|
920
|
-
Root:
|
|
921
|
-
CollapseButton:
|
|
922
|
-
Header:
|
|
923
|
-
Divider:
|
|
924
|
-
Content:
|
|
925
|
-
Spacer:
|
|
926
|
-
Footer:
|
|
927
|
-
}),
|
|
928
|
-
children:
|
|
539
|
+
return /* @__PURE__ */ a.jsx("div", { className: s(o(), t) });
|
|
540
|
+
}, Q = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), le = Object.assign(h, {
|
|
541
|
+
Root: h,
|
|
542
|
+
CollapseButton: G,
|
|
543
|
+
Header: X,
|
|
544
|
+
Divider: Z,
|
|
545
|
+
Content: J,
|
|
546
|
+
Spacer: K,
|
|
547
|
+
Footer: Q
|
|
548
|
+
}), ce = ({
|
|
549
|
+
children: t,
|
|
929
550
|
icon: e,
|
|
930
551
|
label: o,
|
|
931
552
|
href: r,
|
|
932
553
|
onClick: n,
|
|
933
554
|
isActive: i = !1,
|
|
934
|
-
className:
|
|
555
|
+
className: l
|
|
935
556
|
}) => {
|
|
936
|
-
const
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
|
|
557
|
+
const u = r ? "a" : "button";
|
|
558
|
+
return /* @__PURE__ */ a.jsxs(
|
|
559
|
+
u,
|
|
939
560
|
{
|
|
940
561
|
href: r,
|
|
941
562
|
onClick: n,
|
|
942
|
-
className:
|
|
563
|
+
className: s(
|
|
943
564
|
"nav-link-item",
|
|
944
565
|
"flex items-center w-full px-3 py-2 text-left",
|
|
945
566
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
946
567
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
947
568
|
i && "bg-neutral-medium-default",
|
|
948
|
-
|
|
569
|
+
l
|
|
949
570
|
),
|
|
950
571
|
children: [
|
|
951
|
-
e && /* @__PURE__ */
|
|
952
|
-
o && /* @__PURE__ */
|
|
953
|
-
|
|
572
|
+
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 }) }),
|
|
573
|
+
o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
|
|
574
|
+
t
|
|
954
575
|
]
|
|
955
576
|
}
|
|
956
577
|
);
|
|
957
|
-
},
|
|
958
|
-
count:
|
|
578
|
+
}, B = ({
|
|
579
|
+
count: t,
|
|
959
580
|
maxCount: e = 9,
|
|
960
581
|
className: o = "",
|
|
961
582
|
size: r = "medium",
|
|
962
583
|
variant: n = "primary",
|
|
963
584
|
showZero: i = !1
|
|
964
585
|
}) => {
|
|
965
|
-
const
|
|
966
|
-
if (
|
|
967
|
-
const
|
|
586
|
+
const l = t, u = l > e ? `+${e}` : l;
|
|
587
|
+
if (l === 0 && !i) return null;
|
|
588
|
+
const f = {
|
|
968
589
|
small: "w-4.5 h-4.5 text-xs ",
|
|
969
590
|
medium: "w-5 h-5 text-xs",
|
|
970
591
|
large: "w-6 h-6 text-sm"
|
|
971
|
-
},
|
|
592
|
+
}, m = {
|
|
972
593
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
973
594
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
974
595
|
success: "bg-green-500 text-white",
|
|
975
596
|
warning: "bg-yellow-500 text-black",
|
|
976
597
|
danger: "bg-red-500 text-white"
|
|
977
598
|
};
|
|
978
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ a.jsx("div", { className: s(
|
|
979
600
|
"rounded-full flex items-center justify-center font-medium ",
|
|
980
|
-
|
|
981
|
-
|
|
601
|
+
f[r],
|
|
602
|
+
m[n],
|
|
982
603
|
o
|
|
983
|
-
), children: /* @__PURE__ */
|
|
984
|
-
},
|
|
985
|
-
linkActions:
|
|
604
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: u }) });
|
|
605
|
+
}, ue = ({
|
|
606
|
+
linkActions: t,
|
|
986
607
|
onClick: e,
|
|
987
608
|
activeAction: o
|
|
988
|
-
}) => /* @__PURE__ */
|
|
989
|
-
|
|
609
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
|
|
610
|
+
d.div,
|
|
990
611
|
{
|
|
991
612
|
initial: { opacity: 0 },
|
|
992
613
|
animate: { opacity: 1 },
|
|
@@ -996,21 +617,21 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
996
617
|
ease: "easeOut"
|
|
997
618
|
},
|
|
998
619
|
className: "relative flex justify-center w-full items-center px-3",
|
|
999
|
-
children: /* @__PURE__ */
|
|
620
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
1000
621
|
"button",
|
|
1001
622
|
{
|
|
1002
623
|
onClick: () => {
|
|
1003
624
|
e?.(r.action);
|
|
1004
625
|
},
|
|
1005
|
-
className:
|
|
626
|
+
className: s(
|
|
1006
627
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
1007
628
|
"transition-all duration-300 ease-out w-full",
|
|
1008
629
|
"group hover:bg-neutral-medium-selected",
|
|
1009
630
|
o === r.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
1010
631
|
),
|
|
1011
632
|
children: [
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
|
|
633
|
+
/* @__PURE__ */ a.jsx(k, { mode: "wait", children: o === r.action && /* @__PURE__ */ a.jsx(
|
|
634
|
+
d.div,
|
|
1014
635
|
{
|
|
1015
636
|
layoutId: "nav-active-bg",
|
|
1016
637
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -1024,8 +645,8 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1024
645
|
}
|
|
1025
646
|
}
|
|
1026
647
|
) }),
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
|
|
648
|
+
/* @__PURE__ */ a.jsxs(
|
|
649
|
+
d.div,
|
|
1029
650
|
{
|
|
1030
651
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
1031
652
|
animate: {
|
|
@@ -1036,9 +657,9 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1036
657
|
ease: "easeOut"
|
|
1037
658
|
},
|
|
1038
659
|
children: [
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
|
|
660
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
661
|
+
/* @__PURE__ */ a.jsx(
|
|
662
|
+
d.div,
|
|
1042
663
|
{
|
|
1043
664
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
1044
665
|
animate: {
|
|
@@ -1050,16 +671,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1050
671
|
},
|
|
1051
672
|
children: typeof r.icon == "function" ? r.icon({
|
|
1052
673
|
size: 24,
|
|
1053
|
-
className:
|
|
674
|
+
className: s(
|
|
1054
675
|
"nav-icon transition-colors duration-250 ease-out",
|
|
1055
676
|
o === r.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
1056
677
|
)
|
|
1057
678
|
}) : null
|
|
1058
679
|
}
|
|
1059
680
|
),
|
|
1060
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
|
|
1061
682
|
] }),
|
|
1062
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
|
|
1063
684
|
]
|
|
1064
685
|
}
|
|
1065
686
|
)
|
|
@@ -1068,16 +689,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1068
689
|
)
|
|
1069
690
|
},
|
|
1070
691
|
n
|
|
1071
|
-
)) }),
|
|
1072
|
-
links:
|
|
692
|
+
)) }), de = ({
|
|
693
|
+
links: t,
|
|
1073
694
|
isLinkActive: e,
|
|
1074
695
|
onLinkClick: o
|
|
1075
|
-
}) => /* @__PURE__ */
|
|
696
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
|
|
1076
697
|
const i = e(r.path) || (r.relatedPaths?.some(
|
|
1077
|
-
(
|
|
698
|
+
(l) => e(l)
|
|
1078
699
|
) ?? !1);
|
|
1079
|
-
return r.isView && r.viewAccess() && /* @__PURE__ */
|
|
1080
|
-
|
|
700
|
+
return r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
|
|
701
|
+
d.div,
|
|
1081
702
|
{
|
|
1082
703
|
initial: { opacity: 0 },
|
|
1083
704
|
animate: { opacity: 1 },
|
|
@@ -1087,21 +708,21 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1087
708
|
ease: "easeOut"
|
|
1088
709
|
},
|
|
1089
710
|
className: "relative flex justify-center w-full items-center px-3",
|
|
1090
|
-
children: /* @__PURE__ */
|
|
711
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
1091
712
|
"button",
|
|
1092
713
|
{
|
|
1093
714
|
onClick: () => {
|
|
1094
715
|
o?.(r.path);
|
|
1095
716
|
},
|
|
1096
|
-
className:
|
|
717
|
+
className: s(
|
|
1097
718
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
1098
719
|
"transition-all duration-300 ease-out w-full",
|
|
1099
720
|
"group hover:bg-neutral-medium-selected",
|
|
1100
721
|
i ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
1101
722
|
),
|
|
1102
723
|
children: [
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
|
|
724
|
+
/* @__PURE__ */ a.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ a.jsx(
|
|
725
|
+
d.div,
|
|
1105
726
|
{
|
|
1106
727
|
layoutId: "nav-active-bg",
|
|
1107
728
|
className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
|
|
@@ -1115,8 +736,8 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1115
736
|
}
|
|
1116
737
|
}
|
|
1117
738
|
) }),
|
|
1118
|
-
/* @__PURE__ */
|
|
1119
|
-
|
|
739
|
+
/* @__PURE__ */ a.jsxs(
|
|
740
|
+
d.div,
|
|
1120
741
|
{
|
|
1121
742
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
1122
743
|
animate: {
|
|
@@ -1127,9 +748,9 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1127
748
|
ease: "easeOut"
|
|
1128
749
|
},
|
|
1129
750
|
children: [
|
|
1130
|
-
/* @__PURE__ */
|
|
1131
|
-
/* @__PURE__ */
|
|
1132
|
-
|
|
751
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
752
|
+
/* @__PURE__ */ a.jsx(
|
|
753
|
+
d.div,
|
|
1133
754
|
{
|
|
1134
755
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
1135
756
|
animate: {
|
|
@@ -1141,16 +762,16 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1141
762
|
},
|
|
1142
763
|
children: typeof r.icon == "function" ? r.icon({
|
|
1143
764
|
size: 24,
|
|
1144
|
-
className:
|
|
765
|
+
className: s(
|
|
1145
766
|
"nav-icon transition-colors duration-250 ease-out",
|
|
1146
767
|
i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
1147
768
|
)
|
|
1148
769
|
}) : null
|
|
1149
770
|
}
|
|
1150
771
|
),
|
|
1151
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
|
|
1152
773
|
] }),
|
|
1153
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
|
|
1154
775
|
]
|
|
1155
776
|
}
|
|
1156
777
|
)
|
|
@@ -1160,42 +781,42 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1160
781
|
},
|
|
1161
782
|
n
|
|
1162
783
|
);
|
|
1163
|
-
}) }),
|
|
1164
|
-
isActiveModalNotification:
|
|
784
|
+
}) }), fe = ({
|
|
785
|
+
isActiveModalNotification: t,
|
|
1165
786
|
setIsActiveModalNotification: e
|
|
1166
787
|
}) => ({ handleNotificationClick: () => {
|
|
1167
788
|
e(!0);
|
|
1168
|
-
}, isActiveModalNotification:
|
|
1169
|
-
const e =
|
|
789
|
+
}, isActiveModalNotification: t }), pe = (t) => {
|
|
790
|
+
const e = p(null);
|
|
1170
791
|
return {
|
|
1171
|
-
isCollapsed:
|
|
792
|
+
isCollapsed: t,
|
|
1172
793
|
navbarRef: e
|
|
1173
794
|
};
|
|
1174
|
-
},
|
|
1175
|
-
isCollapsed:
|
|
795
|
+
}, me = ({
|
|
796
|
+
isCollapsed: t,
|
|
1176
797
|
onToggle: e
|
|
1177
|
-
}) => /* @__PURE__ */
|
|
798
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
1178
799
|
"button",
|
|
1179
800
|
{
|
|
1180
801
|
onClick: e,
|
|
1181
|
-
title:
|
|
1182
|
-
"aria-label":
|
|
802
|
+
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
803
|
+
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
1183
804
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
1184
|
-
children:
|
|
805
|
+
children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
1185
806
|
}
|
|
1186
|
-
) }),
|
|
807
|
+
) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
1187
808
|
"img",
|
|
1188
809
|
{
|
|
1189
|
-
src:
|
|
810
|
+
src: t,
|
|
1190
811
|
className: "h-2/3 rounded-full",
|
|
1191
812
|
alt: e ?? ""
|
|
1192
813
|
}
|
|
1193
|
-
) }),
|
|
1194
|
-
const o =
|
|
1195
|
-
return
|
|
814
|
+
) }), be = (t, e = !0) => {
|
|
815
|
+
const o = p(null);
|
|
816
|
+
return C(() => {
|
|
1196
817
|
if (!e) return;
|
|
1197
818
|
const r = (n) => {
|
|
1198
|
-
o.current && !o.current.contains(n.target) &&
|
|
819
|
+
o.current && !o.current.contains(n.target) && t();
|
|
1199
820
|
};
|
|
1200
821
|
return document.addEventListener("mousedown", r, {
|
|
1201
822
|
capture: !0
|
|
@@ -1208,62 +829,62 @@ const se = ({ isCollapsed: a, onToggleCollapse: e }) => /* @__PURE__ */ t.jsx("d
|
|
|
1208
829
|
capture: !0
|
|
1209
830
|
});
|
|
1210
831
|
};
|
|
1211
|
-
}, [
|
|
832
|
+
}, [t, e]), o;
|
|
1212
833
|
};
|
|
1213
834
|
export {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
835
|
+
ve as Avatar,
|
|
836
|
+
B as Badge,
|
|
837
|
+
we as Button,
|
|
838
|
+
Ne as CardProfile,
|
|
839
|
+
Ce as ChangueAccount,
|
|
840
|
+
ke as CheckBox,
|
|
841
|
+
Be as CheckboxFormik,
|
|
842
|
+
xe as CompanyLogo,
|
|
843
|
+
Re as DialogModal,
|
|
844
|
+
Ae as DrawerDesktop,
|
|
845
|
+
Ee as DrawerMobile,
|
|
846
|
+
qt as DropZone,
|
|
847
|
+
Fe as Header,
|
|
848
|
+
b as Icons,
|
|
849
|
+
We as Input,
|
|
850
|
+
Me as InputFormik,
|
|
851
|
+
kt as LayoutGeneric,
|
|
852
|
+
Ve as Logo,
|
|
853
|
+
Xe as Menu,
|
|
854
|
+
ue as NavBarActions,
|
|
855
|
+
me as NavbarCollapseButton,
|
|
856
|
+
de as NavbarLinks,
|
|
857
|
+
ce as NavigationLink,
|
|
858
|
+
Lt as OtpInput,
|
|
859
|
+
Je as Pagination,
|
|
860
|
+
Qe as ProfilePictureUpload,
|
|
861
|
+
_e as ProgressBar,
|
|
862
|
+
ie as SecondaryBar,
|
|
863
|
+
tt as Select,
|
|
864
|
+
rt as SelectFormik,
|
|
865
|
+
le as Sidebar,
|
|
866
|
+
H as SidebarProvider,
|
|
867
|
+
It as SidebarRefProvider,
|
|
868
|
+
nt as Spinner,
|
|
869
|
+
st as Steps,
|
|
870
|
+
ct as SwipeContainer,
|
|
871
|
+
dt as TabLinks,
|
|
872
|
+
pt as Table,
|
|
873
|
+
mt as TableBody,
|
|
874
|
+
xt as TableCaption,
|
|
875
|
+
bt as TableCell,
|
|
876
|
+
yt as TableFooter,
|
|
877
|
+
gt as TableHead,
|
|
878
|
+
vt as TableHeader,
|
|
879
|
+
ht as TableRow,
|
|
880
|
+
jt as TextArea,
|
|
881
|
+
Ct as Tooltip,
|
|
882
|
+
fe as useActionsNavbar,
|
|
883
|
+
be as useClickOutside,
|
|
884
|
+
qe as useDialogControl,
|
|
885
|
+
Te as useDrawerDesktop,
|
|
886
|
+
Oe as useDrawerMobile,
|
|
887
|
+
pe as useNavbarCollapse,
|
|
888
|
+
se as useSidebar,
|
|
889
|
+
j as useSidebarContext
|
|
1269
890
|
};
|