prometeo-design-system 3.1.4 → 3.1.6
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/{DatePicker-CehTiXGa.js → DatePicker-6eb-0Ns5.js} +1339 -1237
- package/dist/DatePicker.es.js +1 -1
- package/dist/Icons/Reassignment.d.ts +6 -0
- package/dist/Icons/Reassignment.es.js +22 -0
- package/dist/Icons/ReassignmentFill.d.ts +6 -0
- package/dist/Icons/ReassignmentFill.es.js +52 -0
- package/dist/Icons/Send.d.ts +6 -0
- package/dist/Icons/Send.es.js +24 -0
- package/dist/Icons/components/Reassignment.d.ts +4 -0
- package/dist/Icons/components/ReassignmentFill.d.ts +4 -0
- package/dist/Icons/components/Send.d.ts +4 -0
- package/dist/Icons/index.d.ts +3 -0
- package/dist/Icons/types.d.ts +6 -0
- package/dist/Icons.es.js +56 -50
- package/dist/NotificationCard.d.ts +6 -0
- package/dist/NotificationCard.es.js +50 -0
- package/dist/PyrionNavigationDrawer.d.ts +6 -0
- package/dist/PyrionNavigationDrawer.es.js +962 -0
- package/dist/RecurrentDatePicker.es.js +2 -2
- package/dist/RecurrentDatePickerRRule.es.js +1 -1
- package/dist/Select.es.js +1059 -2
- package/dist/SelectSearch.es.js +67 -66
- package/dist/TicketCard.d.ts +6 -0
- package/dist/TicketCard.es.js +130 -0
- package/dist/badge-B1IK_-i5.js +87 -0
- package/dist/components/NotificationCard/index.d.ts +3 -0
- package/dist/components/PyrionNavigationDrawer/index.d.ts +3 -0
- package/dist/components/TicketCard/index.d.ts +3 -0
- package/dist/exports/NotificationCard.d.ts +2 -0
- package/dist/exports/PyrionNavigationDrawer.d.ts +2 -0
- package/dist/exports/TicketCard.d.ts +2 -0
- package/dist/exports/usePyrionNavigation.d.ts +1 -0
- package/dist/prometeo-design-system.es.js +287 -365
- package/dist/usePyrionNavigation.d.ts +4 -0
- package/dist/usePyrionNavigation.es.js +4 -0
- package/dist/utils-X4-h3cum.js +54 -0
- package/package.json +17 -1
- package/dist/Select-BdxmkrjB.js +0 -1111
|
@@ -1,60 +1,61 @@
|
|
|
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 { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import {
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
1
|
+
import { default as ke } from "./Avatar.es.js";
|
|
2
|
+
import { default as Be } from "./Button.es.js";
|
|
3
|
+
import { C as Le, a as Pe } from "./CardProfile-y9Knsg26.js";
|
|
4
|
+
import { default as Ae } from "./CheckBox.es.js";
|
|
5
|
+
import { default as De, useDialogControl as ze } from "./DialogModal.es.js";
|
|
6
|
+
import { default as Oe, useDrawerDesktop as He } from "./DrawerDesktop.es.js";
|
|
7
|
+
import { default as $e, useDrawerMobile as Me } from "./DrawerMobile.es.js";
|
|
8
|
+
import { default as Ue } from "./Header.es.js";
|
|
9
|
+
import { default as Ve } from "./Input.es.js";
|
|
10
|
+
import { default as Xe } from "./InputMultiple.es.js";
|
|
11
|
+
import { default as Je } from "./Logo.es.js";
|
|
12
|
+
import { default as Qe } from "./Menu.es.js";
|
|
13
|
+
import { default as et } from "./Pagination.es.js";
|
|
14
|
+
import { default as rt } from "./ProfilePictureUpload.es.js";
|
|
15
|
+
import { default as ot } from "./ProgressBar.es.js";
|
|
16
|
+
import { default as it } from "./Select.es.js";
|
|
17
|
+
import { default as lt } from "./Spinner.es.js";
|
|
18
|
+
import { default as ut } from "./Steps.es.js";
|
|
19
|
+
import { default as ft } from "./SwipeContainer.es.js";
|
|
20
20
|
import { default as mt } from "./Switch.es.js";
|
|
21
|
-
import { D as
|
|
22
|
-
import { RecurrentDatePicker as
|
|
23
|
-
import { RecurrentDatePickerRRule as
|
|
24
|
-
import { Table as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { u as
|
|
31
|
-
import { L as
|
|
32
|
-
import { I as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { j as
|
|
40
|
-
import { c
|
|
41
|
-
import P, { useRef as
|
|
21
|
+
import { D as bt } from "./DatePicker-6eb-0Ns5.js";
|
|
22
|
+
import { RecurrentDatePicker as vt } from "./RecurrentDatePicker.es.js";
|
|
23
|
+
import { RecurrentDatePickerRRule as gt } from "./RecurrentDatePickerRRule.es.js";
|
|
24
|
+
import { Table as jt, TableBody as Nt, TableCaption as St, TableCell as Ct, TableFooter as kt, TableHead as It, TableHeader as Bt, TableRow as Rt } from "./Table.es.js";
|
|
25
|
+
import { default as Pt } from "./TabLinks.es.js";
|
|
26
|
+
import { default as At } from "./TextArea.es.js";
|
|
27
|
+
import { default as Dt } from "./Tooltip.es.js";
|
|
28
|
+
import { default as Et } from "./Skeleton.es.js";
|
|
29
|
+
import { default as Ht } from "./SegmentedButton.es.js";
|
|
30
|
+
import { u as C } from "./LayoutGeneric-CfWhV1ov.js";
|
|
31
|
+
import { L as $t, S as Mt } from "./LayoutGeneric-CfWhV1ov.js";
|
|
32
|
+
import { I as Ut } from "./ImageGallery-DG9ovlQ-.js";
|
|
33
|
+
import { default as Vt } from "./Image.es.js";
|
|
34
|
+
import { default as Xt, toastpyrion as Zt } from "./Toast.es.js";
|
|
35
|
+
import { default as Kt } from "./ToastProvider.es.js";
|
|
36
|
+
import { default as Yt } from "./SelectSearch.es.js";
|
|
37
|
+
import { default as tr } from "./FAButton.es.js";
|
|
38
|
+
import { default as ar } from "./RadioButton.es.js";
|
|
39
|
+
import { j as r } from "./jsx-runtime-GkKLlHH4.js";
|
|
40
|
+
import { c } from "./cn-B6yFEsav.js";
|
|
41
|
+
import P, { useRef as v, useState as w, useLayoutEffect as q, createContext as A, useContext as T, forwardRef as k, useCallback as D, useEffect as j } from "react";
|
|
42
42
|
import { useGSAP as I } from "@gsap/react";
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
|
|
43
|
+
import d from "gsap";
|
|
44
|
+
import { T as z, B } from "./badge-B1IK_-i5.js";
|
|
45
|
+
import { CloseNavBarDesktop as h } from "./Icons/CloseNavBarDesktop.es.js";
|
|
46
|
+
import { motion as b, AnimatePresence as E } from "framer-motion";
|
|
47
|
+
import { default as nr } from "./OtpInput.es.js";
|
|
48
|
+
import { useDropzone as O } from "react-dropzone";
|
|
49
|
+
import { useIsMobile as sr } from "./useDevice.es.js";
|
|
50
|
+
import { default as cr } from "./DropZone.es.js";
|
|
51
|
+
const H = (t, e) => {
|
|
51
52
|
I(
|
|
52
53
|
() => {
|
|
53
54
|
if (!t.current) return;
|
|
54
|
-
const
|
|
55
|
+
const a = t.current, o = document.querySelector('[data-main-content="true"]');
|
|
55
56
|
if (e) {
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
d.fromTo(
|
|
58
|
+
a,
|
|
58
59
|
{
|
|
59
60
|
width: "0rem",
|
|
60
61
|
opacity: 0
|
|
@@ -65,14 +66,14 @@ const O = (t, e) => {
|
|
|
65
66
|
duration: 0.4,
|
|
66
67
|
ease: "power2.out"
|
|
67
68
|
}
|
|
68
|
-
),
|
|
69
|
-
marginLeft:
|
|
69
|
+
), o && d.to(o, {
|
|
70
|
+
marginLeft: a.offsetWidth + "px",
|
|
70
71
|
duration: 0.4,
|
|
71
72
|
ease: "power2.out"
|
|
72
73
|
});
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const n = a.querySelectorAll(".secondary-bar-content > *");
|
|
75
|
+
n.length > 0 && d.fromTo(
|
|
76
|
+
n,
|
|
76
77
|
{
|
|
77
78
|
y: 20,
|
|
78
79
|
opacity: 0
|
|
@@ -87,12 +88,12 @@ const O = (t, e) => {
|
|
|
87
88
|
}
|
|
88
89
|
);
|
|
89
90
|
} else
|
|
90
|
-
|
|
91
|
+
d.to(a, {
|
|
91
92
|
width: "0rem",
|
|
92
93
|
opacity: 0,
|
|
93
94
|
duration: 0.3,
|
|
94
95
|
ease: "power2.in"
|
|
95
|
-
}),
|
|
96
|
+
}), o && d.to(o, {
|
|
96
97
|
marginLeft: "0px",
|
|
97
98
|
duration: 0.3,
|
|
98
99
|
ease: "power2.in"
|
|
@@ -103,101 +104,101 @@ const O = (t, e) => {
|
|
|
103
104
|
}, S = ({
|
|
104
105
|
children: t,
|
|
105
106
|
isOpen: e = !1,
|
|
106
|
-
className:
|
|
107
|
-
width:
|
|
108
|
-
action:
|
|
107
|
+
className: a = "",
|
|
108
|
+
width: o = "w-96",
|
|
109
|
+
action: n,
|
|
109
110
|
primarySidebarCollapsed: i,
|
|
110
|
-
onClose:
|
|
111
|
+
onClose: s
|
|
111
112
|
}) => {
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
if (
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
left:
|
|
118
|
-
width:
|
|
113
|
+
const l = v(null), [x, f] = w({ left: 0, width: 0 }), { primarySidebarRef: u, tabBarRef: p } = C();
|
|
114
|
+
return q(() => {
|
|
115
|
+
if (u?.current && p?.current) {
|
|
116
|
+
const m = u.current.getBoundingClientRect();
|
|
117
|
+
f({
|
|
118
|
+
left: m.width + p.current.offsetWidth,
|
|
119
|
+
width: m.width
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
|
-
}, [
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
}, [u, e, i, p]), H(l, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
123
|
+
/* @__PURE__ */ r.jsx(
|
|
123
124
|
"div",
|
|
124
125
|
{
|
|
125
126
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
126
127
|
style: {
|
|
127
|
-
left:
|
|
128
|
+
left: x.left
|
|
128
129
|
},
|
|
129
|
-
onClick:
|
|
130
|
+
onClick: s
|
|
130
131
|
}
|
|
131
132
|
),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ r.jsx(
|
|
133
134
|
"div",
|
|
134
135
|
{
|
|
135
|
-
ref:
|
|
136
|
-
className:
|
|
136
|
+
ref: l,
|
|
137
|
+
className: c(
|
|
137
138
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
138
139
|
"absolute top-0 z-50",
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
o,
|
|
141
|
+
a
|
|
141
142
|
),
|
|
142
143
|
style: {
|
|
143
|
-
left:
|
|
144
|
+
left: x.left
|
|
144
145
|
},
|
|
145
|
-
"data-action":
|
|
146
|
-
children: /* @__PURE__ */
|
|
146
|
+
"data-action": n,
|
|
147
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
|
|
147
148
|
}
|
|
148
149
|
)
|
|
149
150
|
] }) });
|
|
150
|
-
},
|
|
151
|
+
}, W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: c("h-16 ", e), children: t }), $ = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: c("flex-1 overflow-y-auto p-4", e), children: t }), M = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: c("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: c("flex-1", t) }), fe = Object.assign(S, {
|
|
151
152
|
Root: S,
|
|
152
|
-
Header:
|
|
153
|
-
Content:
|
|
154
|
-
Footer:
|
|
155
|
-
Spacer:
|
|
153
|
+
Header: W,
|
|
154
|
+
Content: $,
|
|
155
|
+
Footer: M,
|
|
156
|
+
Spacer: F
|
|
156
157
|
}), R = A(
|
|
157
158
|
void 0
|
|
158
|
-
),
|
|
159
|
-
const t =
|
|
159
|
+
), pe = () => {
|
|
160
|
+
const t = T(R);
|
|
160
161
|
if (!t)
|
|
161
162
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
162
163
|
return t;
|
|
163
|
-
},
|
|
164
|
+
}, U = ({
|
|
164
165
|
children: t
|
|
165
166
|
}) => {
|
|
166
|
-
const [e,
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
},
|
|
167
|
+
const [e, a] = w(!1), [o, n] = w(!1), i = v(null), s = () => {
|
|
168
|
+
a(!1), n(!1);
|
|
169
|
+
}, l = () => {
|
|
170
|
+
a(!0), n(!1);
|
|
171
|
+
}, m = {
|
|
171
172
|
isCollapsed: e,
|
|
172
|
-
setIsCollapsed:
|
|
173
|
+
setIsCollapsed: a,
|
|
173
174
|
navbarRef: i,
|
|
174
175
|
toggleCollapse: () => {
|
|
175
|
-
e ?
|
|
176
|
+
e ? s() : l();
|
|
176
177
|
},
|
|
177
|
-
activeSecondaryBar:
|
|
178
|
+
activeSecondaryBar: o ? "notifications" : null,
|
|
178
179
|
openSecondaryBar: () => {
|
|
179
|
-
|
|
180
|
+
n(!0);
|
|
180
181
|
},
|
|
181
182
|
closeSecondaryBar: () => {
|
|
182
|
-
|
|
183
|
+
n(!1);
|
|
183
184
|
},
|
|
184
185
|
toggleSecondaryBar: () => {
|
|
185
|
-
|
|
186
|
+
n((y) => !y);
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
},
|
|
189
|
+
return /* @__PURE__ */ r.jsx(R.Provider, { value: m, children: t });
|
|
190
|
+
}, g = (t, e, a, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, o) : t, G = (t, e, a) => {
|
|
190
191
|
I(
|
|
191
192
|
() => {
|
|
192
193
|
if (!t.current) return;
|
|
193
|
-
const
|
|
194
|
+
const o = d.timeline({
|
|
194
195
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
195
|
-
}),
|
|
196
|
+
}), n = {
|
|
196
197
|
navbar: t.current,
|
|
197
|
-
navLabels:
|
|
198
|
-
navIconWrappers:
|
|
199
|
-
navIcons:
|
|
200
|
-
navLinkItems:
|
|
198
|
+
navLabels: d.utils.toArray(".nav-label"),
|
|
199
|
+
navIconWrappers: d.utils.toArray(".nav-icon-wrapper"),
|
|
200
|
+
navIcons: d.utils.toArray(".nav-icon"),
|
|
201
|
+
navLinkItems: d.utils.toArray(".nav-link-item"),
|
|
201
202
|
logoutButton: document.querySelector(".logout-button"),
|
|
202
203
|
logoutLabel: document.querySelector(".logout-label"),
|
|
203
204
|
logoutIcon: document.querySelector(".logout-icon"),
|
|
@@ -225,14 +226,14 @@ const O = (t, e) => {
|
|
|
225
226
|
),
|
|
226
227
|
// Secondary bar elements
|
|
227
228
|
secondaryBar: document.querySelector(".secondary-bar"),
|
|
228
|
-
secondaryBarContent:
|
|
229
|
-
badgeInLink:
|
|
229
|
+
secondaryBarContent: d.utils.toArray(".secondary-bar *"),
|
|
230
|
+
badgeInLink: d.utils.toArray(".badge-in-link")
|
|
230
231
|
};
|
|
231
|
-
e ?
|
|
232
|
+
e ? V(o, n) : _(o, n), n.secondaryBar && X(n.secondaryBar);
|
|
232
233
|
},
|
|
233
|
-
{ scope: t, dependencies: [e,
|
|
234
|
+
{ scope: t, dependencies: [e, a] }
|
|
234
235
|
);
|
|
235
|
-
},
|
|
236
|
+
}, V = (t, e) => {
|
|
236
237
|
t.to(e.navbar, {
|
|
237
238
|
width: "5rem",
|
|
238
239
|
duration: 0.2,
|
|
@@ -291,7 +292,7 @@ const O = (t, e) => {
|
|
|
291
292
|
marginLeft: 0
|
|
292
293
|
},
|
|
293
294
|
0
|
|
294
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
295
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), g(
|
|
295
296
|
t,
|
|
296
297
|
e.buttonCrevron,
|
|
297
298
|
{
|
|
@@ -304,7 +305,7 @@ const O = (t, e) => {
|
|
|
304
305
|
}
|
|
305
306
|
},
|
|
306
307
|
0
|
|
307
|
-
),
|
|
308
|
+
), g(
|
|
308
309
|
t,
|
|
309
310
|
e.buttonContentChevron,
|
|
310
311
|
{
|
|
@@ -371,7 +372,7 @@ const O = (t, e) => {
|
|
|
371
372
|
},
|
|
372
373
|
-1
|
|
373
374
|
);
|
|
374
|
-
},
|
|
375
|
+
}, _ = (t, e) => {
|
|
375
376
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
376
377
|
e.navLinkItems,
|
|
377
378
|
{
|
|
@@ -381,7 +382,7 @@ const O = (t, e) => {
|
|
|
381
382
|
justifyContent: "flex-start"
|
|
382
383
|
},
|
|
383
384
|
-1
|
|
384
|
-
),
|
|
385
|
+
), g(
|
|
385
386
|
t,
|
|
386
387
|
e.buttonCrevron,
|
|
387
388
|
{
|
|
@@ -394,7 +395,7 @@ const O = (t, e) => {
|
|
|
394
395
|
}
|
|
395
396
|
},
|
|
396
397
|
0
|
|
397
|
-
),
|
|
398
|
+
), g(
|
|
398
399
|
t,
|
|
399
400
|
e.buttonContentChevron,
|
|
400
401
|
{
|
|
@@ -499,94 +500,44 @@ const O = (t, e) => {
|
|
|
499
500
|
},
|
|
500
501
|
0
|
|
501
502
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
502
|
-
},
|
|
503
|
-
|
|
503
|
+
}, X = (t, e) => {
|
|
504
|
+
d.to(t, {
|
|
504
505
|
x: "-100%",
|
|
505
506
|
opacity: 0,
|
|
506
507
|
duration: 0.3,
|
|
507
508
|
ease: "power2.in"
|
|
508
509
|
});
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}, [c]);
|
|
514
|
-
const f = i.find((s) => s.name === (t?.currentTabName || r));
|
|
515
|
-
return /* @__PURE__ */ a.jsx(
|
|
516
|
-
"div",
|
|
517
|
-
{
|
|
518
|
-
ref: e,
|
|
519
|
-
className: u(
|
|
520
|
-
"select-none",
|
|
521
|
-
"flex flex-col gap-2",
|
|
522
|
-
"bg-neutral-strong-default",
|
|
523
|
-
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
524
|
-
" border-r border-neutral-default-default",
|
|
525
|
-
l
|
|
526
|
-
),
|
|
527
|
-
children: i.map(
|
|
528
|
-
(s) => {
|
|
529
|
-
const d = s.name === f?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain rounded", draggable: !1 }) : s.thumbnail, p = () => {
|
|
530
|
-
s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
|
|
531
|
-
};
|
|
532
|
-
return /* @__PURE__ */ a.jsx(
|
|
533
|
-
"div",
|
|
534
|
-
{
|
|
535
|
-
className: u(
|
|
536
|
-
"bg-[(--tab-bg)]",
|
|
537
|
-
"h-12 w-[50px] z-20",
|
|
538
|
-
"flex items-center pl-[6px] ",
|
|
539
|
-
"rounded-l-[8px]",
|
|
540
|
-
"tabswitch-element relative",
|
|
541
|
-
d && "active"
|
|
542
|
-
),
|
|
543
|
-
onClick: p,
|
|
544
|
-
ref: o,
|
|
545
|
-
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
546
|
-
"size-8 rounded-[4px]",
|
|
547
|
-
"grid place-items-center",
|
|
548
|
-
"tab-thumbnail-icon",
|
|
549
|
-
"bg-transparent text-neutral-default-default",
|
|
550
|
-
s?.className
|
|
551
|
-
), children: m })
|
|
552
|
-
},
|
|
553
|
-
s.name
|
|
554
|
-
);
|
|
555
|
-
}
|
|
556
|
-
)
|
|
557
|
-
}
|
|
558
|
-
);
|
|
559
|
-
}), Z = C(
|
|
560
|
-
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, i) => {
|
|
561
|
-
const l = g(null), c = g(null), { registerPrimarySidebar: f, registerTabBar: s } = k(), d = z((m) => {
|
|
562
|
-
l.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
|
|
510
|
+
}, Z = k(
|
|
511
|
+
({ children: t, isCollapsed: e = !1, className: a = "", tabs: o = [], currentTabName: n }, i) => {
|
|
512
|
+
const s = v(null), l = v(null), { registerPrimarySidebar: x, registerTabBar: f } = C(), u = D((p) => {
|
|
513
|
+
s.current = p, typeof i == "function" ? i(p) : i && (i.current = p);
|
|
563
514
|
}, [i]);
|
|
564
|
-
return
|
|
515
|
+
return j(() => {
|
|
516
|
+
s.current && x(s);
|
|
517
|
+
}, [x]), j(() => {
|
|
565
518
|
l.current && f(l);
|
|
566
|
-
}, [f]),
|
|
567
|
-
c.current && s(c);
|
|
568
|
-
}, [s]), U(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
519
|
+
}, [f]), G(s, e, !1), /* @__PURE__ */ r.jsxs(
|
|
569
520
|
"div",
|
|
570
521
|
{
|
|
571
|
-
className:
|
|
522
|
+
className: c(
|
|
572
523
|
"flex"
|
|
573
524
|
),
|
|
574
525
|
children: [
|
|
575
|
-
|
|
576
|
-
|
|
526
|
+
o.length > 0 && /* @__PURE__ */ r.jsx(
|
|
527
|
+
z,
|
|
577
528
|
{
|
|
578
|
-
tabs:
|
|
579
|
-
ref:
|
|
529
|
+
tabs: o,
|
|
530
|
+
ref: l,
|
|
580
531
|
activeColor: "var(--neutral-900)",
|
|
581
|
-
currentTabName:
|
|
532
|
+
currentTabName: n
|
|
582
533
|
}
|
|
583
534
|
),
|
|
584
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ r.jsx(
|
|
585
536
|
"div",
|
|
586
537
|
{
|
|
587
|
-
ref:
|
|
538
|
+
ref: u,
|
|
588
539
|
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 shrink-0
|
|
589
|
-
${e ? "w-16" : "w-64"} ${
|
|
540
|
+
${e ? "w-16" : "w-64"} ${a}`,
|
|
590
541
|
children: t
|
|
591
542
|
}
|
|
592
543
|
)
|
|
@@ -594,11 +545,11 @@ const O = (t, e) => {
|
|
|
594
545
|
}
|
|
595
546
|
);
|
|
596
547
|
}
|
|
597
|
-
), N =
|
|
598
|
-
(t, e) => /* @__PURE__ */
|
|
548
|
+
), N = k(
|
|
549
|
+
(t, e) => /* @__PURE__ */ r.jsx(U, { children: /* @__PURE__ */ r.jsx(Z, { ...t, ref: e }) })
|
|
599
550
|
);
|
|
600
551
|
N.displayName = "SidebarRoot";
|
|
601
|
-
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */
|
|
552
|
+
const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: c("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
|
|
602
553
|
"button",
|
|
603
554
|
{
|
|
604
555
|
type: "button",
|
|
@@ -606,10 +557,10 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
606
557
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
607
558
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
608
559
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
609
|
-
children: t ? /* @__PURE__ */
|
|
560
|
+
children: t ? /* @__PURE__ */ r.jsx(h, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(h, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
610
561
|
}
|
|
611
|
-
) }), K = ({ children: t, className: e }) => /* @__PURE__ */
|
|
612
|
-
const
|
|
562
|
+
) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: c("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ r.jsx("div", { className: "border-b border-neutral-strong-default border w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
|
|
563
|
+
const a = () => {
|
|
613
564
|
switch (e) {
|
|
614
565
|
case "auto":
|
|
615
566
|
return "flex-grow";
|
|
@@ -621,8 +572,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
621
572
|
return "h-8 w-8";
|
|
622
573
|
}
|
|
623
574
|
};
|
|
624
|
-
return /* @__PURE__ */
|
|
625
|
-
}, te = ({ children: t, className: e }) => /* @__PURE__ */
|
|
575
|
+
return /* @__PURE__ */ r.jsx("div", { className: c(a(), t) });
|
|
576
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), me = Object.assign(N, {
|
|
626
577
|
Root: N,
|
|
627
578
|
CollapseButton: J,
|
|
628
579
|
Header: K,
|
|
@@ -630,96 +581,67 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
630
581
|
Content: Y,
|
|
631
582
|
Spacer: ee,
|
|
632
583
|
Footer: te
|
|
633
|
-
}),
|
|
584
|
+
}), xe = ({
|
|
634
585
|
children: t,
|
|
635
586
|
icon: e,
|
|
636
|
-
label:
|
|
637
|
-
href:
|
|
638
|
-
onClick:
|
|
587
|
+
label: a,
|
|
588
|
+
href: o,
|
|
589
|
+
onClick: n,
|
|
639
590
|
isActive: i = !1,
|
|
640
|
-
className:
|
|
591
|
+
className: s
|
|
641
592
|
}) => {
|
|
642
|
-
const
|
|
643
|
-
return /* @__PURE__ */
|
|
644
|
-
|
|
593
|
+
const l = o ? "a" : "button";
|
|
594
|
+
return /* @__PURE__ */ r.jsxs(
|
|
595
|
+
l,
|
|
645
596
|
{
|
|
646
|
-
href:
|
|
647
|
-
onClick:
|
|
648
|
-
className:
|
|
597
|
+
href: o,
|
|
598
|
+
onClick: n,
|
|
599
|
+
className: c(
|
|
649
600
|
"nav-link-item",
|
|
650
601
|
"flex items-center w-full px-3 py-2 text-left",
|
|
651
602
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
652
603
|
"focus:outline-none focus:ring-2 focus:ring-primary-default-default",
|
|
653
604
|
i && "bg-neutral-medium-default",
|
|
654
|
-
|
|
605
|
+
s
|
|
655
606
|
),
|
|
656
607
|
children: [
|
|
657
|
-
e && /* @__PURE__ */
|
|
658
|
-
|
|
608
|
+
e && /* @__PURE__ */ r.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ r.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
|
|
609
|
+
a && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: a }),
|
|
659
610
|
t
|
|
660
611
|
]
|
|
661
612
|
}
|
|
662
613
|
);
|
|
663
|
-
},
|
|
664
|
-
count: t,
|
|
665
|
-
maxCount: e = 9,
|
|
666
|
-
className: r = "",
|
|
667
|
-
size: n = "medium",
|
|
668
|
-
variant: o = "primary",
|
|
669
|
-
showZero: i = !1,
|
|
670
|
-
disabled: l = !1
|
|
671
|
-
}) => {
|
|
672
|
-
const c = t, f = c > e ? `+${e}` : c;
|
|
673
|
-
if (c === 0 && !i) return null;
|
|
674
|
-
const s = {
|
|
675
|
-
small: "w-4.5 h-4.5 text-xs ",
|
|
676
|
-
medium: "w-5 h-5 text-xs",
|
|
677
|
-
large: "w-6 h-6 text-sm"
|
|
678
|
-
}, d = {
|
|
679
|
-
primary: "bg-primary-default-default text-neutral-strong-default",
|
|
680
|
-
secondary: "bg-neutral-medium-default text-neutral-strong-default",
|
|
681
|
-
success: "bg-green-500 text-white",
|
|
682
|
-
warning: "bg-yellow-500 text-black",
|
|
683
|
-
danger: "bg-red-500 text-white"
|
|
684
|
-
};
|
|
685
|
-
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
686
|
-
"rounded-full flex items-center justify-center font-medium select-none",
|
|
687
|
-
s[n],
|
|
688
|
-
d[o],
|
|
689
|
-
r,
|
|
690
|
-
l && "text-neutral-strong-disabled bg-primary-medium-disabled"
|
|
691
|
-
), children: /* @__PURE__ */ a.jsx("span", { children: f }) });
|
|
692
|
-
}, xe = ({
|
|
614
|
+
}, be = ({
|
|
693
615
|
linkActions: t,
|
|
694
616
|
onClick: e,
|
|
695
|
-
activeAction:
|
|
696
|
-
}) => /* @__PURE__ */
|
|
697
|
-
const { isView: i = !1, actionName:
|
|
698
|
-
return
|
|
617
|
+
activeAction: a
|
|
618
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
619
|
+
const { isView: i = !1, actionName: s, title: l, icon: x, count: f, viewAccess: u } = o || {}, p = (typeof i == "function" ? i() : i !== !1) && (!u || u()), m = a === s;
|
|
620
|
+
return p && /* @__PURE__ */ r.jsx(
|
|
699
621
|
b.div,
|
|
700
622
|
{
|
|
701
623
|
initial: { opacity: 0 },
|
|
702
624
|
animate: { opacity: 1 },
|
|
703
625
|
transition: {
|
|
704
626
|
duration: 0.4,
|
|
705
|
-
delay:
|
|
627
|
+
delay: n * 0.03,
|
|
706
628
|
ease: "easeOut"
|
|
707
629
|
},
|
|
708
630
|
className: "relative flex justify-center w-full items-center px-3",
|
|
709
|
-
children: /* @__PURE__ */
|
|
631
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
710
632
|
"button",
|
|
711
633
|
{
|
|
712
634
|
onClick: () => {
|
|
713
|
-
e?.(
|
|
635
|
+
e?.(s);
|
|
714
636
|
},
|
|
715
|
-
className:
|
|
637
|
+
className: c(
|
|
716
638
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
717
639
|
"transition-all duration-300 ease-out w-full",
|
|
718
640
|
"group hover:bg-neutral-medium-selected",
|
|
719
|
-
|
|
641
|
+
m ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
720
642
|
),
|
|
721
643
|
children: [
|
|
722
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ r.jsx(E, { mode: "wait", children: m && /* @__PURE__ */ r.jsx(
|
|
723
645
|
b.div,
|
|
724
646
|
{
|
|
725
647
|
layoutId: "nav-active-bg",
|
|
@@ -734,7 +656,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
734
656
|
}
|
|
735
657
|
}
|
|
736
658
|
) }),
|
|
737
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ r.jsxs(
|
|
738
660
|
b.div,
|
|
739
661
|
{
|
|
740
662
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -746,30 +668,30 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
746
668
|
ease: "easeOut"
|
|
747
669
|
},
|
|
748
670
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
672
|
+
/* @__PURE__ */ r.jsx(
|
|
751
673
|
b.div,
|
|
752
674
|
{
|
|
753
675
|
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
754
676
|
animate: {
|
|
755
|
-
scale:
|
|
677
|
+
scale: m ? 1.05 : 1
|
|
756
678
|
},
|
|
757
679
|
transition: {
|
|
758
680
|
duration: 0.25,
|
|
759
681
|
ease: "easeOut"
|
|
760
682
|
},
|
|
761
|
-
children: typeof
|
|
683
|
+
children: typeof x == "function" ? x({
|
|
762
684
|
size: 24,
|
|
763
|
-
className:
|
|
685
|
+
className: c(
|
|
764
686
|
"nav-icon transition-colors duration-250 ease-out",
|
|
765
|
-
|
|
687
|
+
m ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
766
688
|
)
|
|
767
689
|
}) : null
|
|
768
690
|
}
|
|
769
691
|
),
|
|
770
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: l })
|
|
771
693
|
] }),
|
|
772
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f >= 1 ? /* @__PURE__ */ r.jsx(B, { count: f, maxCount: 9, className: "" }) : "" })
|
|
773
695
|
]
|
|
774
696
|
}
|
|
775
697
|
)
|
|
@@ -777,40 +699,40 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
777
699
|
}
|
|
778
700
|
)
|
|
779
701
|
},
|
|
780
|
-
|
|
702
|
+
n
|
|
781
703
|
);
|
|
782
|
-
}) }),
|
|
704
|
+
}) }), ye = ({
|
|
783
705
|
links: t,
|
|
784
706
|
isLinkActive: e,
|
|
785
|
-
onLinkClick:
|
|
786
|
-
}) => /* @__PURE__ */
|
|
787
|
-
const { isView: i = !1, viewAccess:
|
|
707
|
+
onLinkClick: a
|
|
708
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
709
|
+
const { isView: i = !1, viewAccess: s, path: l, title: x, icon: f, count: u, relatedPaths: p } = o, m = (typeof i == "function" ? i() : i !== !1) && (!s || s()), y = e(l) || (p?.some(
|
|
788
710
|
(L) => e(L)
|
|
789
711
|
) ?? !1);
|
|
790
|
-
return
|
|
712
|
+
return m && /* @__PURE__ */ r.jsx(
|
|
791
713
|
b.div,
|
|
792
714
|
{
|
|
793
715
|
initial: { opacity: 0 },
|
|
794
716
|
animate: { opacity: 1 },
|
|
795
717
|
transition: {
|
|
796
718
|
duration: 0.4,
|
|
797
|
-
delay:
|
|
719
|
+
delay: n * 0.03,
|
|
798
720
|
ease: "easeOut"
|
|
799
721
|
},
|
|
800
722
|
className: "relative flex justify-center w-full items-center px-3",
|
|
801
|
-
children: /* @__PURE__ */
|
|
723
|
+
children: /* @__PURE__ */ r.jsx(
|
|
802
724
|
"button",
|
|
803
725
|
{
|
|
804
726
|
onClick: () => {
|
|
805
|
-
|
|
727
|
+
a?.(l);
|
|
806
728
|
},
|
|
807
|
-
className:
|
|
729
|
+
className: c(
|
|
808
730
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
809
731
|
"transition-all duration-300 ease-out w-full",
|
|
810
732
|
"group hover:bg-neutral-medium-selected",
|
|
811
733
|
y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
812
734
|
),
|
|
813
|
-
children: /* @__PURE__ */
|
|
735
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
814
736
|
b.div,
|
|
815
737
|
{
|
|
816
738
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -822,8 +744,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
822
744
|
ease: "easeOut"
|
|
823
745
|
},
|
|
824
746
|
children: [
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
748
|
+
/* @__PURE__ */ r.jsx(
|
|
827
749
|
b.div,
|
|
828
750
|
{
|
|
829
751
|
className: "nav-icon-wrapper flex items-center justify-center shrink-0",
|
|
@@ -834,50 +756,50 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
834
756
|
duration: 0.25,
|
|
835
757
|
ease: "easeOut"
|
|
836
758
|
},
|
|
837
|
-
children: typeof
|
|
759
|
+
children: typeof f == "function" ? f({
|
|
838
760
|
size: 24,
|
|
839
|
-
className:
|
|
761
|
+
className: c(
|
|
840
762
|
"nav-icon transition-colors duration-250 ease-out",
|
|
841
763
|
y ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
842
764
|
)
|
|
843
765
|
}) : null
|
|
844
766
|
}
|
|
845
767
|
),
|
|
846
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: x })
|
|
847
769
|
] }),
|
|
848
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: u && u ? /* @__PURE__ */ r.jsx(B, { count: u, maxCount: 9, className: "" }) : "" })
|
|
849
771
|
]
|
|
850
772
|
}
|
|
851
773
|
)
|
|
852
774
|
}
|
|
853
775
|
)
|
|
854
776
|
},
|
|
855
|
-
|
|
777
|
+
n
|
|
856
778
|
);
|
|
857
|
-
}) }),
|
|
779
|
+
}) }), ve = ({
|
|
858
780
|
isActiveModalNotification: t,
|
|
859
781
|
setIsActiveModalNotification: e
|
|
860
782
|
}) => ({ handleNotificationClick: () => {
|
|
861
783
|
e(!0);
|
|
862
|
-
}, isActiveModalNotification: t }),
|
|
863
|
-
const e =
|
|
784
|
+
}, isActiveModalNotification: t }), he = (t) => {
|
|
785
|
+
const e = v(null);
|
|
864
786
|
return {
|
|
865
787
|
isCollapsed: t,
|
|
866
788
|
navbarRef: e
|
|
867
789
|
};
|
|
868
|
-
},
|
|
790
|
+
}, ge = ({
|
|
869
791
|
isCollapsed: t,
|
|
870
792
|
onToggle: e
|
|
871
|
-
}) => /* @__PURE__ */
|
|
793
|
+
}) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
|
|
872
794
|
"button",
|
|
873
795
|
{
|
|
874
796
|
onClick: e,
|
|
875
797
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
876
798
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
877
799
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
878
|
-
children: t ? /* @__PURE__ */
|
|
800
|
+
children: t ? /* @__PURE__ */ r.jsx(h, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(h, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
879
801
|
}
|
|
880
|
-
) }),
|
|
802
|
+
) }), we = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
|
|
881
803
|
"img",
|
|
882
804
|
{
|
|
883
805
|
src: t,
|
|
@@ -885,112 +807,112 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
|
|
|
885
807
|
alt: e ?? ""
|
|
886
808
|
}
|
|
887
809
|
) });
|
|
888
|
-
function
|
|
810
|
+
function je({
|
|
889
811
|
onFilesAccepted: t,
|
|
890
812
|
onFilesRejected: e,
|
|
891
|
-
...
|
|
813
|
+
...a
|
|
892
814
|
}) {
|
|
893
|
-
const
|
|
894
|
-
(i,
|
|
895
|
-
i.length > 0 && t?.(i),
|
|
815
|
+
const o = P.useCallback(
|
|
816
|
+
(i, s) => {
|
|
817
|
+
i.length > 0 && t?.(i), s.length > 0 && e?.(s);
|
|
896
818
|
},
|
|
897
819
|
[t, e]
|
|
898
|
-
),
|
|
899
|
-
onDrop:
|
|
900
|
-
...
|
|
820
|
+
), n = O({
|
|
821
|
+
onDrop: o,
|
|
822
|
+
...a
|
|
901
823
|
});
|
|
902
824
|
return {
|
|
903
|
-
...
|
|
904
|
-
hasErrors:
|
|
825
|
+
...n,
|
|
826
|
+
hasErrors: n.fileRejections.length > 0
|
|
905
827
|
};
|
|
906
828
|
}
|
|
907
|
-
const
|
|
908
|
-
const
|
|
909
|
-
return
|
|
829
|
+
const Ne = (t, e = !0) => {
|
|
830
|
+
const a = v(null);
|
|
831
|
+
return j(() => {
|
|
910
832
|
if (!e) return;
|
|
911
|
-
const
|
|
912
|
-
|
|
833
|
+
const o = (n) => {
|
|
834
|
+
a.current && !a.current.contains(n.target) && t();
|
|
913
835
|
};
|
|
914
|
-
return document.addEventListener("mousedown",
|
|
836
|
+
return document.addEventListener("mousedown", o, {
|
|
915
837
|
capture: !0
|
|
916
|
-
}), document.addEventListener("touchstart",
|
|
838
|
+
}), document.addEventListener("touchstart", o, {
|
|
917
839
|
capture: !0
|
|
918
840
|
}), () => {
|
|
919
|
-
document.removeEventListener("mousedown",
|
|
841
|
+
document.removeEventListener("mousedown", o, {
|
|
920
842
|
capture: !0
|
|
921
|
-
}), document.removeEventListener("touchstart",
|
|
843
|
+
}), document.removeEventListener("touchstart", o, {
|
|
922
844
|
capture: !0
|
|
923
845
|
});
|
|
924
846
|
};
|
|
925
|
-
}, [t, e]),
|
|
847
|
+
}, [t, e]), a;
|
|
926
848
|
};
|
|
927
849
|
export {
|
|
928
|
-
|
|
850
|
+
ke as Avatar,
|
|
929
851
|
B as Badge,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
852
|
+
Be as Button,
|
|
853
|
+
Le as CardProfile,
|
|
854
|
+
Pe as ChangueAccount,
|
|
855
|
+
Ae as CheckBox,
|
|
856
|
+
we as CompanyLogo,
|
|
857
|
+
bt as DatePicker,
|
|
858
|
+
De as DialogModal,
|
|
859
|
+
Oe as DrawerDesktop,
|
|
860
|
+
$e as DrawerMobile,
|
|
861
|
+
cr as DropZone,
|
|
862
|
+
tr as FAButton,
|
|
863
|
+
Ue as Header,
|
|
864
|
+
Vt as Image,
|
|
865
|
+
Ut as ImageGallery,
|
|
866
|
+
Ve as Input,
|
|
867
|
+
Xe as InputMultiple,
|
|
868
|
+
$t as LayoutGeneric,
|
|
869
|
+
Je as Logo,
|
|
870
|
+
Qe as Menu,
|
|
871
|
+
be as NavBarActions,
|
|
872
|
+
ge as NavbarCollapseButton,
|
|
873
|
+
ye as NavbarLinks,
|
|
874
|
+
xe as NavigationLink,
|
|
875
|
+
nr as OtpInput,
|
|
876
|
+
et as Pagination,
|
|
877
|
+
rt as ProfilePictureUpload,
|
|
878
|
+
ot as ProgressBar,
|
|
879
|
+
ar as RadioButton,
|
|
880
|
+
vt as RecurrentDatePicker,
|
|
881
|
+
gt as RecurrentDatePickerRRule,
|
|
882
|
+
fe as SecondaryBar,
|
|
883
|
+
Ht as SegmentedButton,
|
|
884
|
+
it as Select,
|
|
885
|
+
Yt as SelectSearch,
|
|
964
886
|
me as Sidebar,
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
887
|
+
U as SidebarProvider,
|
|
888
|
+
Mt as SidebarRefProvider,
|
|
889
|
+
Et as Skeleton,
|
|
890
|
+
lt as Spinner,
|
|
891
|
+
ut as Steps,
|
|
892
|
+
ft as SwipeContainer,
|
|
971
893
|
mt as Switch,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
894
|
+
Pt as TabLinks,
|
|
895
|
+
jt as Table,
|
|
896
|
+
Nt as TableBody,
|
|
897
|
+
St as TableCaption,
|
|
976
898
|
Ct as TableCell,
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
899
|
+
kt as TableFooter,
|
|
900
|
+
It as TableHead,
|
|
901
|
+
Bt as TableHeader,
|
|
980
902
|
Rt as TableRow,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
903
|
+
At as TextArea,
|
|
904
|
+
Xt as Toast,
|
|
905
|
+
Kt as ToastProvider,
|
|
906
|
+
Dt as Tooltip,
|
|
907
|
+
Zt as toastpyrion,
|
|
908
|
+
ve as useActionsNavbar,
|
|
909
|
+
Ne as useClickOutside,
|
|
988
910
|
ze as useDialogControl,
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
911
|
+
He as useDrawerDesktop,
|
|
912
|
+
Me as useDrawerMobile,
|
|
913
|
+
je as useFileDropzone,
|
|
914
|
+
sr as useIsMobile,
|
|
915
|
+
he as useNavbarCollapse,
|
|
916
|
+
pe as useSidebar,
|
|
917
|
+
C as useSidebarContext
|
|
996
918
|
};
|