prometeo-design-system 1.9.7 → 1.9.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/Avatar.es.js +9 -9
- package/dist/{CardProfile-BZajBGbO.js → CardProfile-BiYr6kY9.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/Header.es.js +8 -8
- package/dist/Icons/Icons.d.ts +4 -0
- package/dist/Icons.es.js +213 -145
- package/dist/ProfilePictureUpload.es.js +9 -9
- package/dist/assets/psmlogo.png +0 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Sidebar/SidebarComposable.d.ts +3 -0
- package/dist/components/TabSwitch/TabSwitch.d.ts +16 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +336 -276
- package/package.json +1 -1
- /package/dist/preview/{Sidebar.d.ts → SidebarPreview.d.ts} +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
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
|
|
1
|
+
import { default as Ve } from "./Avatar.es.js";
|
|
2
|
+
import { default as Xe } from "./Button.es.js";
|
|
3
|
+
import { C as Je, a as Ke } from "./CardProfile-BiYr6kY9.js";
|
|
4
|
+
import { default as Ye } from "./CheckBox.es.js";
|
|
5
|
+
import { default as tt } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as rt, useDialogControl as ot } from "./DialogModal.es.js";
|
|
7
|
+
import { default as it, useDrawerDesktop as st } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as ct, useDrawerMobile as ut } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as ft } from "./Header.es.js";
|
|
10
|
+
import { default as pt } from "./Input.es.js";
|
|
11
|
+
import { default as ht } from "./InputFormik.es.js";
|
|
12
|
+
import { InputMultiple as gt } from "./InputMultiple.es.js";
|
|
13
13
|
import { default as yt } from "./Logo.es.js";
|
|
14
|
-
import { Menu as
|
|
15
|
-
import { default as
|
|
16
|
-
import { ProfilePictureUpload as
|
|
17
|
-
import { default as
|
|
14
|
+
import { Menu as jt } from "./Menu.es.js";
|
|
15
|
+
import { default as Ct } from "./Pagination.es.js";
|
|
16
|
+
import { ProfilePictureUpload as kt } from "./ProfilePictureUpload.es.js";
|
|
17
|
+
import { default as Rt } from "./ProgressBar.es.js";
|
|
18
18
|
import { default as Bt } from "./Select.es.js";
|
|
19
19
|
import { default as Lt } from "./SelectFormik.es.js";
|
|
20
|
-
import { default as
|
|
21
|
-
import { Steps as
|
|
20
|
+
import { default as Ot } from "./Spinner.es.js";
|
|
21
|
+
import { Steps as Et } from "./Steps.es.js";
|
|
22
22
|
import { default as Dt } from "./SwipeContainer.es.js";
|
|
23
|
-
import { Switch as
|
|
24
|
-
import { Table as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { Skeleton as
|
|
23
|
+
import { Switch as Ht } from "./Switch.es.js";
|
|
24
|
+
import { Table as Mt, TableBody as $t, TableCaption as Ft, TableCell as Ut, TableFooter as Vt, TableHead as Gt, TableHeader as Xt, TableRow as Zt } from "./Table.es.js";
|
|
25
|
+
import { default as Kt } from "./TabLinks.es.js";
|
|
26
|
+
import { default as Yt } from "./TextArea.es.js";
|
|
27
|
+
import { default as ta } from "./Tooltip.es.js";
|
|
28
|
+
import { Skeleton as ra } from "./Skeleton.es.js";
|
|
29
29
|
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
30
30
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
31
|
-
import _, { useState as
|
|
31
|
+
import _, { useState as k, useMemo as z, useEffect as B, useRef as N, useLayoutEffect as Y, createContext as ee, useContext as te, forwardRef as M, useCallback as ae } from "react";
|
|
32
32
|
import { motion as g, AnimatePresence as $ } from "framer-motion";
|
|
33
33
|
import { u as F } from "./LayoutGeneric-jDE96L2N.js";
|
|
34
|
-
import { L as
|
|
34
|
+
import { L as na, S as ia } from "./LayoutGeneric-jDE96L2N.js";
|
|
35
35
|
import { useGSAP as U } from "@gsap/react";
|
|
36
36
|
import h from "gsap";
|
|
37
37
|
import { Icons as R } from "./Icons.es.js";
|
|
38
|
-
import { default as
|
|
39
|
-
import { useDropzone as
|
|
40
|
-
import { useIsMobile as
|
|
41
|
-
import { DropZone as
|
|
38
|
+
import { default as la } from "./OtpInput.es.js";
|
|
39
|
+
import { useDropzone as re } from "react-dropzone";
|
|
40
|
+
import { useIsMobile as ua } from "./useDevice.es.js";
|
|
41
|
+
import { DropZone as fa } from "./DropZone.es.js";
|
|
42
42
|
const We = (t) => {
|
|
43
|
-
const [e,
|
|
43
|
+
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 = {
|
|
44
44
|
small: 120,
|
|
45
45
|
medium: 120,
|
|
46
46
|
large: 120
|
|
47
|
-
},
|
|
47
|
+
}, v = {
|
|
48
48
|
small: 94,
|
|
49
49
|
medium: 94,
|
|
50
50
|
large: 94
|
|
51
|
-
},
|
|
51
|
+
}, q = 16, X = {
|
|
52
52
|
small: { container: "p-2" },
|
|
53
53
|
medium: { container: "p-4 h-[48px] rounded-lg" },
|
|
54
54
|
large: { container: "p-6" }
|
|
55
|
-
},
|
|
55
|
+
}, C = {
|
|
56
56
|
default: {
|
|
57
57
|
switch: "bg-primary-medium-default text-neutral-weak-default ",
|
|
58
58
|
container: "border-neutral-default-default",
|
|
@@ -83,39 +83,39 @@ const We = (t) => {
|
|
|
83
83
|
icon: "text-neutral-strong-disabled",
|
|
84
84
|
option: "text-neutral-strong-disabled"
|
|
85
85
|
}
|
|
86
|
-
},
|
|
87
|
-
small:
|
|
88
|
-
medium:
|
|
89
|
-
large:
|
|
86
|
+
}, D = i.find((m) => m.value === s) ?? i[0], L = D.label.length * I + q * 2 + W, A = () => z(() => Object.values(e).reduce((y, j) => y + j, 0) + W, [e]), O = {
|
|
87
|
+
small: c ? A() : (b - 1) * v.small + w.small,
|
|
88
|
+
medium: c ? A() : (b - 1) * v.medium + w.medium,
|
|
89
|
+
large: c ? A() : (b - 1) * v.large + w.large
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
if (!
|
|
93
|
-
let
|
|
94
|
-
i.forEach((
|
|
95
|
-
|
|
96
|
-
}),
|
|
91
|
+
B(() => {
|
|
92
|
+
if (!c) return;
|
|
93
|
+
let m = {};
|
|
94
|
+
i.forEach((y, j) => {
|
|
95
|
+
m[j] = y.label.length * I + q * 2;
|
|
96
|
+
}), o(m);
|
|
97
97
|
}, []);
|
|
98
|
-
const Z = z(() =>
|
|
99
|
-
if (
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
},
|
|
98
|
+
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 = () => {
|
|
99
|
+
if (x) return;
|
|
100
|
+
const m = p === i.length - 1 ? i[0] : i[p + 1];
|
|
101
|
+
l?.(d, m.value);
|
|
102
|
+
}, S = x ? "disabled" : n;
|
|
103
103
|
return /* @__PURE__ */ a.jsxs(
|
|
104
104
|
"button",
|
|
105
105
|
{
|
|
106
|
-
name:
|
|
106
|
+
name: d,
|
|
107
107
|
type: "button",
|
|
108
108
|
id: "segmented-button-container",
|
|
109
109
|
style: {
|
|
110
|
-
width:
|
|
111
|
-
minWidth:
|
|
112
|
-
maxWidth:
|
|
110
|
+
width: O[r],
|
|
111
|
+
minWidth: O[r],
|
|
112
|
+
maxWidth: O[r]
|
|
113
113
|
},
|
|
114
114
|
className: u(
|
|
115
|
-
X[
|
|
116
|
-
|
|
115
|
+
X[r].container,
|
|
116
|
+
C[S].container,
|
|
117
117
|
"border-[1px]",
|
|
118
|
-
!
|
|
118
|
+
!x && "cursor-pointer",
|
|
119
119
|
"relative"
|
|
120
120
|
),
|
|
121
121
|
children: [
|
|
@@ -125,9 +125,9 @@ const We = (t) => {
|
|
|
125
125
|
id: "segmented-button-switcher",
|
|
126
126
|
animate: {
|
|
127
127
|
left: `${Z}px`,
|
|
128
|
-
width:
|
|
129
|
-
minWidth:
|
|
130
|
-
maxWidth:
|
|
128
|
+
width: c ? L : w[r],
|
|
129
|
+
minWidth: c ? L : w[r],
|
|
130
|
+
maxWidth: c ? L : w[r]
|
|
131
131
|
},
|
|
132
132
|
transition: {
|
|
133
133
|
type: "spring",
|
|
@@ -137,15 +137,15 @@ const We = (t) => {
|
|
|
137
137
|
className: u(
|
|
138
138
|
"absolute top-0 left-0 h-full rounded-[6px] z-30",
|
|
139
139
|
"flex items-center justify-center gap-[2px] p-4",
|
|
140
|
-
|
|
140
|
+
C[S].switch
|
|
141
141
|
),
|
|
142
142
|
onClick: () => {
|
|
143
|
-
!
|
|
143
|
+
!x && J();
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
|
-
|
|
146
|
+
f && _.cloneElement(f, { className: u(
|
|
147
147
|
"w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
|
|
148
|
-
|
|
148
|
+
C[S].icon
|
|
149
149
|
) }),
|
|
150
150
|
/* @__PURE__ */ a.jsx(
|
|
151
151
|
"p",
|
|
@@ -153,9 +153,9 @@ const We = (t) => {
|
|
|
153
153
|
className: u(
|
|
154
154
|
"prometeo-fonts-label-large ",
|
|
155
155
|
" overflow-hidden overflow-ellipsis text-nowrap ",
|
|
156
|
-
|
|
156
|
+
C[S].switch
|
|
157
157
|
),
|
|
158
|
-
children:
|
|
158
|
+
children: D.label
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
]
|
|
@@ -169,14 +169,14 @@ const We = (t) => {
|
|
|
169
169
|
"absolute top-0 left-0 w-full h-full overflow-hidden",
|
|
170
170
|
"flex justify-center"
|
|
171
171
|
),
|
|
172
|
-
children: i?.map((
|
|
173
|
-
const j =
|
|
172
|
+
children: i?.map((m, y) => {
|
|
173
|
+
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;
|
|
174
174
|
return /* @__PURE__ */ a.jsx(
|
|
175
175
|
g.span,
|
|
176
176
|
{
|
|
177
177
|
id: "segmented-button-option",
|
|
178
178
|
onClick: () => {
|
|
179
|
-
!
|
|
179
|
+
!x && l?.(d, m.value);
|
|
180
180
|
},
|
|
181
181
|
animate: {
|
|
182
182
|
width: P,
|
|
@@ -192,26 +192,26 @@ const We = (t) => {
|
|
|
192
192
|
"flex items-center justify-center px-3 py-[6px]",
|
|
193
193
|
"prometeo-fonts-label-large text-neutral-medium-default",
|
|
194
194
|
" overflow-hidden ",
|
|
195
|
-
!
|
|
195
|
+
!x && "cursor-pointer"
|
|
196
196
|
),
|
|
197
|
-
"aria-label":
|
|
197
|
+
"aria-label": m.label,
|
|
198
198
|
children: /* @__PURE__ */ a.jsx(
|
|
199
199
|
"p",
|
|
200
200
|
{
|
|
201
201
|
style: {
|
|
202
|
-
width:
|
|
203
|
-
minWidth:
|
|
204
|
-
maxWidth:
|
|
202
|
+
width: c ? "max-content" : v[r],
|
|
203
|
+
minWidth: c ? "max-content" : v[r],
|
|
204
|
+
maxWidth: c ? "max-content" : v[r]
|
|
205
205
|
},
|
|
206
206
|
className: u(
|
|
207
207
|
"px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full",
|
|
208
|
-
|
|
208
|
+
C[S].option
|
|
209
209
|
),
|
|
210
|
-
children:
|
|
210
|
+
children: m.label
|
|
211
211
|
}
|
|
212
212
|
)
|
|
213
213
|
},
|
|
214
|
-
|
|
214
|
+
m.value
|
|
215
215
|
);
|
|
216
216
|
})
|
|
217
217
|
}
|
|
@@ -219,14 +219,14 @@ const We = (t) => {
|
|
|
219
219
|
]
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
|
-
},
|
|
222
|
+
}, oe = (t, e) => {
|
|
223
223
|
U(
|
|
224
224
|
() => {
|
|
225
225
|
if (!t.current) return;
|
|
226
|
-
const
|
|
226
|
+
const o = t.current, r = document.querySelector('[data-main-content="true"]');
|
|
227
227
|
if (e) {
|
|
228
228
|
h.fromTo(
|
|
229
|
-
|
|
229
|
+
o,
|
|
230
230
|
{
|
|
231
231
|
width: "0rem",
|
|
232
232
|
opacity: 0
|
|
@@ -237,14 +237,14 @@ const We = (t) => {
|
|
|
237
237
|
duration: 0.4,
|
|
238
238
|
ease: "power2.out"
|
|
239
239
|
}
|
|
240
|
-
),
|
|
241
|
-
marginLeft:
|
|
240
|
+
), r && h.to(r, {
|
|
241
|
+
marginLeft: o.offsetWidth + "px",
|
|
242
242
|
duration: 0.4,
|
|
243
243
|
ease: "power2.out"
|
|
244
244
|
});
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
const n = o.querySelectorAll(".secondary-bar-content > *");
|
|
246
|
+
n.length > 0 && h.fromTo(
|
|
247
|
+
n,
|
|
248
248
|
{
|
|
249
249
|
y: 20,
|
|
250
250
|
opacity: 0
|
|
@@ -259,12 +259,12 @@ const We = (t) => {
|
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
} else
|
|
262
|
-
h.to(
|
|
262
|
+
h.to(o, {
|
|
263
263
|
width: "0rem",
|
|
264
264
|
opacity: 0,
|
|
265
265
|
duration: 0.3,
|
|
266
266
|
ease: "power2.in"
|
|
267
|
-
}),
|
|
267
|
+
}), r && h.to(r, {
|
|
268
268
|
marginLeft: "0px",
|
|
269
269
|
duration: 0.3,
|
|
270
270
|
ease: "power2.in"
|
|
@@ -275,46 +275,46 @@ const We = (t) => {
|
|
|
275
275
|
}, H = ({
|
|
276
276
|
children: t,
|
|
277
277
|
isOpen: e = !1,
|
|
278
|
-
className:
|
|
279
|
-
width:
|
|
280
|
-
action:
|
|
278
|
+
className: o = "",
|
|
279
|
+
width: r = "w-96",
|
|
280
|
+
action: n,
|
|
281
281
|
primarySidebarCollapsed: i,
|
|
282
|
-
onClose:
|
|
282
|
+
onClose: s
|
|
283
283
|
}) => {
|
|
284
|
-
const
|
|
284
|
+
const d = N(null), [l, f] = k({ left: 0, width: 0 }), { primarySidebarRef: c } = F();
|
|
285
285
|
return Y(() => {
|
|
286
|
-
if (
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
left:
|
|
290
|
-
width:
|
|
286
|
+
if (c?.current) {
|
|
287
|
+
const x = c.current.getBoundingClientRect();
|
|
288
|
+
f({
|
|
289
|
+
left: x.width,
|
|
290
|
+
width: x.width
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
}, [
|
|
293
|
+
}, [c, e, i]), oe(d, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
294
294
|
/* @__PURE__ */ a.jsx(
|
|
295
295
|
"div",
|
|
296
296
|
{
|
|
297
297
|
className: "fixed inset-0 bg-black/95 z-20",
|
|
298
298
|
style: {
|
|
299
|
-
left:
|
|
299
|
+
left: l.left
|
|
300
300
|
},
|
|
301
|
-
onClick:
|
|
301
|
+
onClick: s
|
|
302
302
|
}
|
|
303
303
|
),
|
|
304
304
|
/* @__PURE__ */ a.jsx(
|
|
305
305
|
"div",
|
|
306
306
|
{
|
|
307
|
-
ref:
|
|
307
|
+
ref: d,
|
|
308
308
|
className: u(
|
|
309
309
|
"h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
|
|
310
310
|
"absolute top-0 z-30",
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
r,
|
|
312
|
+
o
|
|
313
313
|
),
|
|
314
314
|
style: {
|
|
315
|
-
left:
|
|
315
|
+
left: l.left
|
|
316
316
|
},
|
|
317
|
-
"data-action":
|
|
317
|
+
"data-action": n,
|
|
318
318
|
children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
|
|
319
319
|
}
|
|
320
320
|
)
|
|
@@ -327,7 +327,7 @@ const We = (t) => {
|
|
|
327
327
|
Spacer: le
|
|
328
328
|
}), V = ee(
|
|
329
329
|
void 0
|
|
330
|
-
),
|
|
330
|
+
), Ae = () => {
|
|
331
331
|
const t = te(V);
|
|
332
332
|
if (!t)
|
|
333
333
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
@@ -335,36 +335,36 @@ const We = (t) => {
|
|
|
335
335
|
}, ce = ({
|
|
336
336
|
children: t
|
|
337
337
|
}) => {
|
|
338
|
-
const [e,
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
},
|
|
338
|
+
const [e, o] = k(!1), [r, n] = k(!1), i = N(null), s = () => {
|
|
339
|
+
o(!1), n(!1);
|
|
340
|
+
}, d = () => {
|
|
341
|
+
o(!0), n(!1);
|
|
342
|
+
}, p = {
|
|
343
343
|
isCollapsed: e,
|
|
344
|
-
setIsCollapsed:
|
|
344
|
+
setIsCollapsed: o,
|
|
345
345
|
navbarRef: i,
|
|
346
346
|
toggleCollapse: () => {
|
|
347
|
-
e ?
|
|
347
|
+
e ? s() : d();
|
|
348
348
|
},
|
|
349
|
-
activeSecondaryBar:
|
|
349
|
+
activeSecondaryBar: r ? "notifications" : null,
|
|
350
350
|
openSecondaryBar: () => {
|
|
351
|
-
|
|
351
|
+
n(!0);
|
|
352
352
|
},
|
|
353
353
|
closeSecondaryBar: () => {
|
|
354
|
-
|
|
354
|
+
n(!1);
|
|
355
355
|
},
|
|
356
356
|
toggleSecondaryBar: () => {
|
|
357
|
-
|
|
357
|
+
n((b) => !b);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
|
-
return /* @__PURE__ */ a.jsx(V.Provider, { value:
|
|
361
|
-
},
|
|
360
|
+
return /* @__PURE__ */ a.jsx(V.Provider, { value: p, children: t });
|
|
361
|
+
}, T = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, ue = (t, e, o) => {
|
|
362
362
|
U(
|
|
363
363
|
() => {
|
|
364
364
|
if (!t.current) return;
|
|
365
|
-
const
|
|
365
|
+
const r = h.timeline({
|
|
366
366
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
367
|
-
}),
|
|
367
|
+
}), n = {
|
|
368
368
|
navbar: t.current,
|
|
369
369
|
navLabels: h.utils.toArray(".nav-label"),
|
|
370
370
|
navIconWrappers: h.utils.toArray(".nav-icon-wrapper"),
|
|
@@ -400,9 +400,9 @@ const We = (t) => {
|
|
|
400
400
|
secondaryBarContent: h.utils.toArray(".secondary-bar *"),
|
|
401
401
|
badgeInLink: h.utils.toArray(".badge-in-link")
|
|
402
402
|
};
|
|
403
|
-
e ? de(
|
|
403
|
+
e ? de(r, n) : fe(r, n), n.secondaryBar && me(n.secondaryBar);
|
|
404
404
|
},
|
|
405
|
-
{ scope: t, dependencies: [e,
|
|
405
|
+
{ scope: t, dependencies: [e, o] }
|
|
406
406
|
);
|
|
407
407
|
}, de = (t, e) => {
|
|
408
408
|
t.to(e.navbar, {
|
|
@@ -463,7 +463,7 @@ const We = (t) => {
|
|
|
463
463
|
marginLeft: 0
|
|
464
464
|
},
|
|
465
465
|
0
|
|
466
|
-
).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), T(
|
|
467
467
|
t,
|
|
468
468
|
e.buttonCrevron,
|
|
469
469
|
{
|
|
@@ -476,7 +476,7 @@ const We = (t) => {
|
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
0
|
|
479
|
-
),
|
|
479
|
+
), T(
|
|
480
480
|
t,
|
|
481
481
|
e.buttonContentChevron,
|
|
482
482
|
{
|
|
@@ -553,7 +553,7 @@ const We = (t) => {
|
|
|
553
553
|
justifyContent: "flex-start"
|
|
554
554
|
},
|
|
555
555
|
-1
|
|
556
|
-
),
|
|
556
|
+
), T(
|
|
557
557
|
t,
|
|
558
558
|
e.buttonCrevron,
|
|
559
559
|
{
|
|
@@ -566,7 +566,7 @@ const We = (t) => {
|
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
568
|
0
|
|
569
|
-
),
|
|
569
|
+
), T(
|
|
570
570
|
t,
|
|
571
571
|
e.buttonContentChevron,
|
|
572
572
|
{
|
|
@@ -678,28 +678,88 @@ const We = (t) => {
|
|
|
678
678
|
duration: 0.3,
|
|
679
679
|
ease: "power2.in"
|
|
680
680
|
});
|
|
681
|
-
}, pe =
|
|
682
|
-
(
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
681
|
+
}, pe = (t) => {
|
|
682
|
+
const [e, o] = k(t?.currentTabName || t.tabs[0].name), r = N(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
|
|
683
|
+
B(() => {
|
|
684
|
+
r.current?.style.setProperty("--tab-bg", s);
|
|
685
|
+
}, [s]);
|
|
686
|
+
const d = n.find((l) => l.name === (t?.currentTabName || e));
|
|
687
|
+
return /* @__PURE__ */ a.jsx(
|
|
688
|
+
"div",
|
|
689
|
+
{
|
|
690
|
+
className: u(
|
|
691
|
+
"flex flex-col gap-2",
|
|
692
|
+
"bg-neutral-strong-default",
|
|
693
|
+
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
694
|
+
" border-r-[1px] border-neutral-default-default",
|
|
695
|
+
i
|
|
696
|
+
),
|
|
697
|
+
children: n.map(
|
|
698
|
+
(l, f) => {
|
|
699
|
+
const c = l.name === d?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.label, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
|
|
700
|
+
l.disabled || (o(l.name), l.onClick && l.onClick(l.name));
|
|
701
|
+
};
|
|
702
|
+
return /* @__PURE__ */ a.jsx(
|
|
703
|
+
"div",
|
|
704
|
+
{
|
|
705
|
+
className: u(
|
|
706
|
+
"bg-[var(--tab-bg)]",
|
|
707
|
+
"h-12 w-[50px] z-20",
|
|
708
|
+
"flex items-center pl-[6px] ",
|
|
709
|
+
"rounded-l-[8px]",
|
|
710
|
+
"tabswitch-element relative",
|
|
711
|
+
c && "active"
|
|
712
|
+
),
|
|
713
|
+
onClick: p,
|
|
714
|
+
ref: r,
|
|
715
|
+
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
716
|
+
"size-8 rounded-[4px]",
|
|
717
|
+
"grid place-items-center",
|
|
718
|
+
"tab-thumbnail-icon",
|
|
719
|
+
"bg-transparent text-neutral-default-default",
|
|
720
|
+
l?.className
|
|
721
|
+
), children: x })
|
|
722
|
+
},
|
|
723
|
+
f
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
)
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
}, xe = M(
|
|
730
|
+
({ children: t, isCollapsed: e = !1, className: o = "", tabs: r = [], currentTabName: n }, i) => {
|
|
731
|
+
const s = N(null), { registerPrimarySidebar: d } = F(), l = ae((f) => {
|
|
732
|
+
s.current = f, typeof i == "function" ? i(f) : i && (i.current = f);
|
|
733
|
+
}, [i]);
|
|
734
|
+
return B(() => {
|
|
735
|
+
s.current && d(s);
|
|
736
|
+
}, [d]), ue(s, e, !1), /* @__PURE__ */ a.jsxs("div", { className: u(
|
|
737
|
+
"flex"
|
|
738
|
+
), children: [
|
|
739
|
+
r.length > 0 && /* @__PURE__ */ a.jsx(
|
|
740
|
+
pe,
|
|
741
|
+
{
|
|
742
|
+
tabs: r,
|
|
743
|
+
activeColor: "var(--neutral-900)",
|
|
744
|
+
currentTabName: n
|
|
745
|
+
}
|
|
746
|
+
),
|
|
747
|
+
/* @__PURE__ */ a.jsx(
|
|
748
|
+
"div",
|
|
749
|
+
{
|
|
750
|
+
ref: l,
|
|
751
|
+
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
|
|
752
|
+
${e ? "w-16" : "w-64"} ${o}`,
|
|
753
|
+
children: t
|
|
754
|
+
}
|
|
755
|
+
)
|
|
756
|
+
] });
|
|
697
757
|
}
|
|
698
|
-
),
|
|
699
|
-
(t, e) => /* @__PURE__ */ a.jsx(ce, { children: /* @__PURE__ */ a.jsx(
|
|
758
|
+
), E = M(
|
|
759
|
+
(t, e) => /* @__PURE__ */ a.jsx(ce, { children: /* @__PURE__ */ a.jsx(xe, { ...t, ref: e }) })
|
|
700
760
|
);
|
|
701
|
-
|
|
702
|
-
const
|
|
761
|
+
E.displayName = "SidebarRoot";
|
|
762
|
+
const he = ({ 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(
|
|
703
763
|
"button",
|
|
704
764
|
{
|
|
705
765
|
onClick: e,
|
|
@@ -708,8 +768,8 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
708
768
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
709
769
|
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" })
|
|
710
770
|
}
|
|
711
|
-
) }),
|
|
712
|
-
const
|
|
771
|
+
) }), be = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), ge = ({ 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" }) }), ve = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ye = ({ className: t, size: e = "auto" }) => {
|
|
772
|
+
const o = () => {
|
|
713
773
|
switch (e) {
|
|
714
774
|
case "auto":
|
|
715
775
|
return "flex-grow";
|
|
@@ -721,41 +781,41 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
721
781
|
return "h-8 w-8";
|
|
722
782
|
}
|
|
723
783
|
};
|
|
724
|
-
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
725
|
-
},
|
|
726
|
-
Root:
|
|
727
|
-
CollapseButton:
|
|
728
|
-
Header:
|
|
729
|
-
Divider:
|
|
730
|
-
Content:
|
|
784
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(o(), t) });
|
|
785
|
+
}, we = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), Oe = Object.assign(E, {
|
|
786
|
+
Root: E,
|
|
787
|
+
CollapseButton: he,
|
|
788
|
+
Header: be,
|
|
789
|
+
Divider: ge,
|
|
790
|
+
Content: ve,
|
|
731
791
|
Spacer: ye,
|
|
732
|
-
Footer:
|
|
792
|
+
Footer: we
|
|
733
793
|
}), Pe = ({
|
|
734
794
|
children: t,
|
|
735
795
|
icon: e,
|
|
736
|
-
label:
|
|
737
|
-
href:
|
|
738
|
-
onClick:
|
|
796
|
+
label: o,
|
|
797
|
+
href: r,
|
|
798
|
+
onClick: n,
|
|
739
799
|
isActive: i = !1,
|
|
740
|
-
className:
|
|
800
|
+
className: s
|
|
741
801
|
}) => {
|
|
742
|
-
const
|
|
802
|
+
const d = r ? "a" : "button";
|
|
743
803
|
return /* @__PURE__ */ a.jsxs(
|
|
744
|
-
|
|
804
|
+
d,
|
|
745
805
|
{
|
|
746
|
-
href:
|
|
747
|
-
onClick:
|
|
806
|
+
href: r,
|
|
807
|
+
onClick: n,
|
|
748
808
|
className: u(
|
|
749
809
|
"nav-link-item",
|
|
750
810
|
"flex items-center w-full px-3 py-2 text-left",
|
|
751
811
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
752
812
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
753
813
|
i && "bg-neutral-medium-default",
|
|
754
|
-
|
|
814
|
+
s
|
|
755
815
|
),
|
|
756
816
|
children: [
|
|
757
817
|
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
|
-
|
|
818
|
+
o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
|
|
759
819
|
t
|
|
760
820
|
]
|
|
761
821
|
}
|
|
@@ -763,18 +823,18 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
763
823
|
}, G = ({
|
|
764
824
|
count: t,
|
|
765
825
|
maxCount: e = 9,
|
|
766
|
-
className:
|
|
767
|
-
size:
|
|
768
|
-
variant:
|
|
826
|
+
className: o = "",
|
|
827
|
+
size: r = "medium",
|
|
828
|
+
variant: n = "primary",
|
|
769
829
|
showZero: i = !1
|
|
770
830
|
}) => {
|
|
771
|
-
const
|
|
772
|
-
if (
|
|
773
|
-
const
|
|
831
|
+
const s = t, d = s > e ? `+${e}` : s;
|
|
832
|
+
if (s === 0 && !i) return null;
|
|
833
|
+
const l = {
|
|
774
834
|
small: "w-4.5 h-4.5 text-xs ",
|
|
775
835
|
medium: "w-5 h-5 text-xs",
|
|
776
836
|
large: "w-6 h-6 text-sm"
|
|
777
|
-
},
|
|
837
|
+
}, f = {
|
|
778
838
|
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
779
839
|
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
780
840
|
success: "bg-green-500 text-white",
|
|
@@ -783,24 +843,24 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
783
843
|
};
|
|
784
844
|
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
785
845
|
"rounded-full flex items-center justify-center font-medium ",
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
), children: /* @__PURE__ */ a.jsx("span", { children:
|
|
790
|
-
},
|
|
846
|
+
l[r],
|
|
847
|
+
f[n],
|
|
848
|
+
o
|
|
849
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: d }) });
|
|
850
|
+
}, Ee = ({
|
|
791
851
|
linkActions: t,
|
|
792
852
|
onClick: e,
|
|
793
|
-
activeAction:
|
|
794
|
-
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
795
|
-
const { isView: i = !1, actionName:
|
|
796
|
-
return
|
|
853
|
+
activeAction: o
|
|
854
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
|
|
855
|
+
const { isView: i = !1, actionName: s, title: d, icon: l, count: f, viewAccess: c } = r || {}, x = (typeof i == "function" ? i() : i !== !1) && (!c || c()), p = o === s;
|
|
856
|
+
return x && /* @__PURE__ */ a.jsx(
|
|
797
857
|
g.div,
|
|
798
858
|
{
|
|
799
859
|
initial: { opacity: 0 },
|
|
800
860
|
animate: { opacity: 1 },
|
|
801
861
|
transition: {
|
|
802
862
|
duration: 0.4,
|
|
803
|
-
delay:
|
|
863
|
+
delay: n * 0.03,
|
|
804
864
|
ease: "easeOut"
|
|
805
865
|
},
|
|
806
866
|
className: "relative flex justify-center w-full items-center px-3",
|
|
@@ -808,16 +868,16 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
808
868
|
"button",
|
|
809
869
|
{
|
|
810
870
|
onClick: () => {
|
|
811
|
-
e?.(
|
|
871
|
+
e?.(s);
|
|
812
872
|
},
|
|
813
873
|
className: u(
|
|
814
874
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
815
875
|
"transition-all duration-300 ease-out w-full",
|
|
816
876
|
"group hover:bg-neutral-medium-selected",
|
|
817
|
-
|
|
877
|
+
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
818
878
|
),
|
|
819
879
|
children: [
|
|
820
|
-
/* @__PURE__ */ a.jsx($, { mode: "wait", children:
|
|
880
|
+
/* @__PURE__ */ a.jsx($, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
|
|
821
881
|
g.div,
|
|
822
882
|
{
|
|
823
883
|
layoutId: "nav-active-bg",
|
|
@@ -850,24 +910,24 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
850
910
|
{
|
|
851
911
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
852
912
|
animate: {
|
|
853
|
-
scale:
|
|
913
|
+
scale: p ? 1.05 : 1
|
|
854
914
|
},
|
|
855
915
|
transition: {
|
|
856
916
|
duration: 0.25,
|
|
857
917
|
ease: "easeOut"
|
|
858
918
|
},
|
|
859
|
-
children: typeof
|
|
919
|
+
children: typeof l == "function" ? l({
|
|
860
920
|
size: 24,
|
|
861
921
|
className: u(
|
|
862
922
|
"nav-icon transition-colors duration-250 ease-out",
|
|
863
|
-
|
|
923
|
+
p ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
864
924
|
)
|
|
865
925
|
}) : null
|
|
866
926
|
}
|
|
867
927
|
),
|
|
868
|
-
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children:
|
|
928
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
869
929
|
] }),
|
|
870
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
930
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f >= 1 ? /* @__PURE__ */ a.jsx(G, { count: f, maxCount: 9, className: "" }) : "" })
|
|
871
931
|
]
|
|
872
932
|
}
|
|
873
933
|
)
|
|
@@ -875,24 +935,24 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
875
935
|
}
|
|
876
936
|
)
|
|
877
937
|
},
|
|
878
|
-
|
|
938
|
+
n
|
|
879
939
|
);
|
|
880
|
-
}) }),
|
|
940
|
+
}) }), qe = ({
|
|
881
941
|
links: t,
|
|
882
942
|
isLinkActive: e,
|
|
883
|
-
onLinkClick:
|
|
884
|
-
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
885
|
-
const { isView: i = !1, viewAccess:
|
|
886
|
-
(
|
|
943
|
+
onLinkClick: o
|
|
944
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
|
|
945
|
+
const { isView: i = !1, viewAccess: s, path: d, title: l, icon: f, count: c, relatedPaths: x } = r, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), b = e(d) || (x?.some(
|
|
946
|
+
(I) => e(I)
|
|
887
947
|
) ?? !1);
|
|
888
|
-
return
|
|
948
|
+
return p && /* @__PURE__ */ a.jsx(
|
|
889
949
|
g.div,
|
|
890
950
|
{
|
|
891
951
|
initial: { opacity: 0 },
|
|
892
952
|
animate: { opacity: 1 },
|
|
893
953
|
transition: {
|
|
894
954
|
duration: 0.4,
|
|
895
|
-
delay:
|
|
955
|
+
delay: n * 0.03,
|
|
896
956
|
ease: "easeOut"
|
|
897
957
|
},
|
|
898
958
|
className: "relative flex justify-center w-full items-center px-3",
|
|
@@ -900,7 +960,7 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
900
960
|
"button",
|
|
901
961
|
{
|
|
902
962
|
onClick: () => {
|
|
903
|
-
|
|
963
|
+
o?.(d);
|
|
904
964
|
},
|
|
905
965
|
className: u(
|
|
906
966
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
@@ -948,7 +1008,7 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
948
1008
|
duration: 0.25,
|
|
949
1009
|
ease: "easeOut"
|
|
950
1010
|
},
|
|
951
|
-
children: typeof
|
|
1011
|
+
children: typeof f == "function" ? f({
|
|
952
1012
|
size: 24,
|
|
953
1013
|
className: u(
|
|
954
1014
|
"nav-icon transition-colors duration-250 ease-out",
|
|
@@ -957,9 +1017,9 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
957
1017
|
}) : null
|
|
958
1018
|
}
|
|
959
1019
|
),
|
|
960
|
-
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children:
|
|
1020
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: l })
|
|
961
1021
|
] }),
|
|
962
|
-
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children:
|
|
1022
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: c && c ? /* @__PURE__ */ a.jsx(G, { count: c, maxCount: 9, className: "" }) : "" })
|
|
963
1023
|
]
|
|
964
1024
|
}
|
|
965
1025
|
)
|
|
@@ -967,20 +1027,20 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
967
1027
|
}
|
|
968
1028
|
)
|
|
969
1029
|
},
|
|
970
|
-
|
|
1030
|
+
n
|
|
971
1031
|
);
|
|
972
1032
|
}) }), De = ({
|
|
973
1033
|
isActiveModalNotification: t,
|
|
974
1034
|
setIsActiveModalNotification: e
|
|
975
1035
|
}) => ({ handleNotificationClick: () => {
|
|
976
1036
|
e(!0);
|
|
977
|
-
}, isActiveModalNotification: t }),
|
|
978
|
-
const e =
|
|
1037
|
+
}, isActiveModalNotification: t }), ze = (t) => {
|
|
1038
|
+
const e = N(null);
|
|
979
1039
|
return {
|
|
980
1040
|
isCollapsed: t,
|
|
981
1041
|
navbarRef: e
|
|
982
1042
|
};
|
|
983
|
-
},
|
|
1043
|
+
}, He = ({
|
|
984
1044
|
isCollapsed: t,
|
|
985
1045
|
onToggle: e
|
|
986
1046
|
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
@@ -992,7 +1052,7 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
992
1052
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
993
1053
|
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" })
|
|
994
1054
|
}
|
|
995
|
-
) }),
|
|
1055
|
+
) }), _e = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
996
1056
|
"img",
|
|
997
1057
|
{
|
|
998
1058
|
src: t,
|
|
@@ -1000,105 +1060,105 @@ const xe = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
|
|
|
1000
1060
|
alt: e ?? ""
|
|
1001
1061
|
}
|
|
1002
1062
|
) });
|
|
1003
|
-
function
|
|
1063
|
+
function Me({
|
|
1004
1064
|
onFilesAccepted: t,
|
|
1005
1065
|
onFilesRejected: e,
|
|
1006
|
-
...
|
|
1066
|
+
...o
|
|
1007
1067
|
}) {
|
|
1008
|
-
const
|
|
1009
|
-
(i,
|
|
1010
|
-
i.length > 0 && t?.(i),
|
|
1068
|
+
const r = _.useCallback(
|
|
1069
|
+
(i, s) => {
|
|
1070
|
+
i.length > 0 && t?.(i), s.length > 0 && e?.(s);
|
|
1011
1071
|
},
|
|
1012
1072
|
[t, e]
|
|
1013
|
-
),
|
|
1014
|
-
onDrop:
|
|
1015
|
-
...
|
|
1073
|
+
), n = re({
|
|
1074
|
+
onDrop: r,
|
|
1075
|
+
...o
|
|
1016
1076
|
});
|
|
1017
1077
|
return {
|
|
1018
|
-
...
|
|
1019
|
-
hasErrors:
|
|
1078
|
+
...n,
|
|
1079
|
+
hasErrors: n.fileRejections.length > 0
|
|
1020
1080
|
};
|
|
1021
1081
|
}
|
|
1022
|
-
const
|
|
1023
|
-
const
|
|
1024
|
-
return
|
|
1082
|
+
const $e = (t, e = !0) => {
|
|
1083
|
+
const o = N(null);
|
|
1084
|
+
return B(() => {
|
|
1025
1085
|
if (!e) return;
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1086
|
+
const r = (n) => {
|
|
1087
|
+
o.current && !o.current.contains(n.target) && t();
|
|
1028
1088
|
};
|
|
1029
|
-
return document.addEventListener("mousedown",
|
|
1089
|
+
return document.addEventListener("mousedown", r, {
|
|
1030
1090
|
capture: !0
|
|
1031
|
-
}), document.addEventListener("touchstart",
|
|
1091
|
+
}), document.addEventListener("touchstart", r, {
|
|
1032
1092
|
capture: !0
|
|
1033
1093
|
}), () => {
|
|
1034
|
-
document.removeEventListener("mousedown",
|
|
1094
|
+
document.removeEventListener("mousedown", r, {
|
|
1035
1095
|
capture: !0
|
|
1036
|
-
}), document.removeEventListener("touchstart",
|
|
1096
|
+
}), document.removeEventListener("touchstart", r, {
|
|
1037
1097
|
capture: !0
|
|
1038
1098
|
});
|
|
1039
1099
|
};
|
|
1040
|
-
}, [t, e]),
|
|
1100
|
+
}, [t, e]), o;
|
|
1041
1101
|
};
|
|
1042
1102
|
export {
|
|
1043
|
-
|
|
1103
|
+
Ve as Avatar,
|
|
1044
1104
|
G as Badge,
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1105
|
+
Xe as Button,
|
|
1106
|
+
Je as CardProfile,
|
|
1107
|
+
Ke as ChangueAccount,
|
|
1108
|
+
Ye as CheckBox,
|
|
1109
|
+
tt as CheckboxFormik,
|
|
1110
|
+
_e as CompanyLogo,
|
|
1111
|
+
rt as DialogModal,
|
|
1112
|
+
it as DrawerDesktop,
|
|
1113
|
+
ct as DrawerMobile,
|
|
1114
|
+
fa as DropZone,
|
|
1115
|
+
ft as Header,
|
|
1056
1116
|
R as Icons,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1117
|
+
pt as Input,
|
|
1118
|
+
ht as InputFormik,
|
|
1119
|
+
gt as InputMultiple,
|
|
1120
|
+
na as LayoutGeneric,
|
|
1061
1121
|
yt as Logo,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1122
|
+
jt as Menu,
|
|
1123
|
+
Ee as NavBarActions,
|
|
1124
|
+
He as NavbarCollapseButton,
|
|
1125
|
+
qe as NavbarLinks,
|
|
1066
1126
|
Pe as NavigationLink,
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1127
|
+
la as OtpInput,
|
|
1128
|
+
Ct as Pagination,
|
|
1129
|
+
kt as ProfilePictureUpload,
|
|
1130
|
+
Rt as ProgressBar,
|
|
1071
1131
|
Le as SecondaryBar,
|
|
1072
1132
|
We as SegmentedButton,
|
|
1073
1133
|
Bt as Select,
|
|
1074
1134
|
Lt as SelectFormik,
|
|
1075
|
-
|
|
1135
|
+
Oe as Sidebar,
|
|
1076
1136
|
ce as SidebarProvider,
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1137
|
+
ia as SidebarRefProvider,
|
|
1138
|
+
ra as Skeleton,
|
|
1139
|
+
Ot as Spinner,
|
|
1140
|
+
Et as Steps,
|
|
1081
1141
|
Dt as SwipeContainer,
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1142
|
+
Ht as Switch,
|
|
1143
|
+
Kt as TabLinks,
|
|
1144
|
+
Mt as Table,
|
|
1145
|
+
$t as TableBody,
|
|
1146
|
+
Ft as TableCaption,
|
|
1147
|
+
Ut as TableCell,
|
|
1148
|
+
Vt as TableFooter,
|
|
1149
|
+
Gt as TableHead,
|
|
1150
|
+
Xt as TableHeader,
|
|
1151
|
+
Zt as TableRow,
|
|
1152
|
+
Yt as TextArea,
|
|
1153
|
+
ta as Tooltip,
|
|
1094
1154
|
De as useActionsNavbar,
|
|
1095
|
-
|
|
1155
|
+
$e as useClickOutside,
|
|
1096
1156
|
ot as useDialogControl,
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1157
|
+
st as useDrawerDesktop,
|
|
1158
|
+
ut as useDrawerMobile,
|
|
1159
|
+
Me as useFileDropzone,
|
|
1160
|
+
ua as useIsMobile,
|
|
1161
|
+
ze as useNavbarCollapse,
|
|
1162
|
+
Ae as useSidebar,
|
|
1103
1163
|
F as useSidebarContext
|
|
1104
1164
|
};
|