prometeo-design-system 2.5.6 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.es.js +1 -1
- package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-DV3gwvqE.js → CardProfile-DA-HDUpi.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +3 -3
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +88 -88
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input-DHdy-pWf.js +295 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +87 -122
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-CbaoatQB.js → LayoutGeneric-B6E-yOYJ.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-CrTtTmXZ.js → Select-B5hkJ8Oy.js} +222 -238
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +2 -2
- package/dist/SelectFormikLegacy.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +2 -2
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Drawer/DrawerMobile.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/InputFormik/InputFormik.d.ts +1 -2
- package/dist/components/InputFormik/InputFormikV2.d.ts +5 -0
- package/dist/exports/InputFormikV2.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +279 -257
- package/package.json +17 -1
- package/dist/Input-PNwH7rb6.js +0 -270
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { I as
|
|
11
|
-
import { default as
|
|
12
|
-
import { InputMultiple as
|
|
13
|
-
import { default as
|
|
14
|
-
import { Menu as
|
|
15
|
-
import { default as
|
|
16
|
-
import { ProfilePictureUpload as
|
|
17
|
-
import { default as
|
|
18
|
-
import { S as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { Steps as
|
|
23
|
-
import { default as
|
|
24
|
-
import { Switch as
|
|
25
|
-
import { default as
|
|
26
|
-
import { Table as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { Skeleton as
|
|
31
|
-
import { SegmentedButton as
|
|
32
|
-
import { u as k } from "./LayoutGeneric-
|
|
33
|
-
import { L as
|
|
34
|
-
import { I as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { j as r } from "./jsx-runtime-
|
|
40
|
-
import I, { memo as
|
|
41
|
-
import { c as
|
|
1
|
+
import { default as He } from "./Avatar.es.js";
|
|
2
|
+
import { B as Me } from "./Button-Bc0LYLfg.js";
|
|
3
|
+
import { C as Ve, a as Ue } from "./CardProfile-DA-HDUpi.js";
|
|
4
|
+
import { default as Ge } from "./CheckBox.es.js";
|
|
5
|
+
import { default as Ze } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as Ke, useDialogControl as Qe } from "./DialogModal.es.js";
|
|
7
|
+
import { default as et, useDrawerDesktop as tt } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as at, useDrawerMobile as ot } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as it } from "./Header.es.js";
|
|
10
|
+
import { I as z } from "./Input-DHdy-pWf.js";
|
|
11
|
+
import { default as lt } from "./InputFormik.es.js";
|
|
12
|
+
import { InputMultiple as ut } from "./InputMultiple.es.js";
|
|
13
|
+
import { default as ft } from "./Logo.es.js";
|
|
14
|
+
import { Menu as pt } from "./Menu.es.js";
|
|
15
|
+
import { default as bt } from "./Pagination.es.js";
|
|
16
|
+
import { ProfilePictureUpload as ht } from "./ProfilePictureUpload.es.js";
|
|
17
|
+
import { default as yt } from "./ProgressBar.es.js";
|
|
18
|
+
import { S as jt } from "./Select-B5hkJ8Oy.js";
|
|
19
|
+
import { default as Ct } from "./SelectFormikLegacy.es.js";
|
|
20
|
+
import { default as kt } from "./SelectFormik.es.js";
|
|
21
|
+
import { default as Bt } from "./Spinner.es.js";
|
|
22
|
+
import { Steps as Tt } from "./Steps.es.js";
|
|
23
|
+
import { default as At } from "./SwipeContainer.es.js";
|
|
24
|
+
import { Switch as zt } from "./Switch.es.js";
|
|
25
|
+
import { default as Et } from "./DatePicker.es.js";
|
|
26
|
+
import { Table as Ot, TableBody as Pt, TableCaption as Ht, TableCell as Wt, TableFooter as Mt, TableHead as $t, TableHeader as Vt, TableRow as Ut } from "./Table.es.js";
|
|
27
|
+
import { default as Gt } from "./TabLinks.es.js";
|
|
28
|
+
import { default as Zt } from "./TextArea.es.js";
|
|
29
|
+
import { default as Kt } from "./Tooltip.es.js";
|
|
30
|
+
import { Skeleton as Yt } from "./Skeleton.es.js";
|
|
31
|
+
import { SegmentedButton as tr } from "./SegmentedButton.es.js";
|
|
32
|
+
import { u as k } from "./LayoutGeneric-B6E-yOYJ.js";
|
|
33
|
+
import { L as ar, S as or } from "./LayoutGeneric-B6E-yOYJ.js";
|
|
34
|
+
import { I as ir } from "./ImageGallery-BeADef_g.js";
|
|
35
|
+
import { default as lr } from "./Image.es.js";
|
|
36
|
+
import { default as ur, toastpyrion as dr } from "./Toast.es.js";
|
|
37
|
+
import { default as mr } from "./ToastProvider.es.js";
|
|
38
|
+
import { default as xr } from "./SelectSearch.es.js";
|
|
39
|
+
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
40
|
+
import I, { memo as B, useRef as h, useState as y, useLayoutEffect as D, createContext as E, useContext as F, forwardRef as C, useEffect as w, useCallback as O } from "react";
|
|
41
|
+
import { c as u } from "./cn-B6yFEsav.js";
|
|
42
42
|
import { Icons as g } from "./Icons.es.js";
|
|
43
43
|
import { createPortal as P } from "react-dom";
|
|
44
|
-
import {
|
|
44
|
+
import { FastField as H } from "formik";
|
|
45
|
+
import { useGSAP as R } from "@gsap/react";
|
|
45
46
|
import x from "gsap";
|
|
46
|
-
import { motion as b, AnimatePresence as
|
|
47
|
-
import { default as
|
|
48
|
-
import { useDropzone as
|
|
49
|
-
import { useIsMobile as
|
|
50
|
-
import { DropZone as
|
|
51
|
-
const
|
|
47
|
+
import { motion as b, AnimatePresence as T } from "framer-motion";
|
|
48
|
+
import { default as vr } from "./OtpInput.es.js";
|
|
49
|
+
import { useDropzone as W } from "react-dropzone";
|
|
50
|
+
import { useIsMobile as gr } from "./useDevice.es.js";
|
|
51
|
+
import { DropZone as wr } from "./DropZone.es.js";
|
|
52
|
+
const M = {
|
|
52
53
|
right: 24,
|
|
53
54
|
bottom: 64,
|
|
54
55
|
left: "auto",
|
|
55
56
|
top: "auto"
|
|
56
|
-
},
|
|
57
|
+
}, $ = {
|
|
57
58
|
filled: {
|
|
58
59
|
primary: "bg-primary-default-default hover:bg-primary-default-hover active:bg-primary-default-pressed",
|
|
59
60
|
secondary: "bg-neutral-medium-default hover:bg-neutral-medium-hover active:bg-neutral-medium-pressed",
|
|
@@ -75,8 +76,8 @@ const H = {
|
|
|
75
76
|
error: "text-error-default-default hover:text-error-default-hover active:text-error-default-pressed",
|
|
76
77
|
warning: "text-warning-default-default hover:text-warning-default-hover active:text-warning-default-pressed"
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
-
const e = t.position ||
|
|
79
|
+
}, V = "bg-primary-default-disabled text-neutral-default-disabled hover:bg-primary-default-disabled active:bg-primary-default-disabled cursor-not-allowed", U = (t) => {
|
|
80
|
+
const e = t.position || M, a = t.attachToParent || !1, o = t.color || "primary", n = t.icon || g.Add, i = t.disabled || !1, l = t.variant || "filled", c = /* @__PURE__ */ r.jsx(
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
83
|
style: {
|
|
@@ -92,19 +93,39 @@ const H = {
|
|
|
92
93
|
placeItems: "center",
|
|
93
94
|
padding: 16
|
|
94
95
|
},
|
|
95
|
-
className:
|
|
96
|
+
className: u("transition-all duration-300 cursor-pointer text-neutral-default-default", $[l][o], i && V, t.className),
|
|
96
97
|
onClick: i ? void 0 : t.onClick,
|
|
97
|
-
children: I.createElement(
|
|
98
|
+
children: I.createElement(n, { size: 24 })
|
|
98
99
|
}
|
|
99
100
|
);
|
|
100
101
|
return a ? c : P(c, document.body);
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
102
|
+
}, _ = B(U, (t, e) => t.attachToParent === e.attachToParent && t.position === e.position && t.color === e.color && t.icon === e.icon && t.disabled === e.disabled && t.variant === e.variant && t.className === e.className && t.onClick === e.onClick);
|
|
103
|
+
_.displayName = "FAButton";
|
|
104
|
+
const G = ({
|
|
105
|
+
field: t,
|
|
106
|
+
form: e,
|
|
107
|
+
...a
|
|
108
|
+
}) => {
|
|
109
|
+
const o = e.getFieldMeta(t.name), n = o.touched && o.error;
|
|
110
|
+
return /* @__PURE__ */ r.jsx(
|
|
111
|
+
z,
|
|
112
|
+
{
|
|
113
|
+
...a,
|
|
114
|
+
...t,
|
|
115
|
+
value: t.value,
|
|
116
|
+
onChange: (i) => {
|
|
117
|
+
t.onChange({ target: { value: i, name: t.name } });
|
|
118
|
+
},
|
|
119
|
+
variant: n ? "error" : "default",
|
|
120
|
+
errorComponent: o.error,
|
|
121
|
+
type: a.type
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}, X = B(G), Se = (t) => /* @__PURE__ */ r.jsx(H, { name: t.name, children: ({ field: e, form: a }) => /* @__PURE__ */ r.jsx(X, { ...t, field: e, form: a }) }), Z = (t, e) => {
|
|
125
|
+
R(
|
|
105
126
|
() => {
|
|
106
127
|
if (!t.current) return;
|
|
107
|
-
const a = t.current,
|
|
128
|
+
const a = t.current, o = document.querySelector('[data-main-content="true"]');
|
|
108
129
|
if (e) {
|
|
109
130
|
x.fromTo(
|
|
110
131
|
a,
|
|
@@ -118,14 +139,14 @@ const V = (t, e) => {
|
|
|
118
139
|
duration: 0.4,
|
|
119
140
|
ease: "power2.out"
|
|
120
141
|
}
|
|
121
|
-
),
|
|
142
|
+
), o && x.to(o, {
|
|
122
143
|
marginLeft: a.offsetWidth + "px",
|
|
123
144
|
duration: 0.4,
|
|
124
145
|
ease: "power2.out"
|
|
125
146
|
});
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
147
|
+
const n = a.querySelectorAll(".secondary-bar-content > *");
|
|
148
|
+
n.length > 0 && x.fromTo(
|
|
149
|
+
n,
|
|
129
150
|
{
|
|
130
151
|
y: 20,
|
|
131
152
|
opacity: 0
|
|
@@ -145,7 +166,7 @@ const V = (t, e) => {
|
|
|
145
166
|
opacity: 0,
|
|
146
167
|
duration: 0.3,
|
|
147
168
|
ease: "power2.in"
|
|
148
|
-
}),
|
|
169
|
+
}), o && x.to(o, {
|
|
149
170
|
marginLeft: "0px",
|
|
150
171
|
duration: 0.3,
|
|
151
172
|
ease: "power2.in"
|
|
@@ -157,13 +178,13 @@ const V = (t, e) => {
|
|
|
157
178
|
children: t,
|
|
158
179
|
isOpen: e = !1,
|
|
159
180
|
className: a = "",
|
|
160
|
-
width:
|
|
161
|
-
action:
|
|
181
|
+
width: o = "w-96",
|
|
182
|
+
action: n,
|
|
162
183
|
primarySidebarCollapsed: i,
|
|
163
184
|
onClose: l
|
|
164
185
|
}) => {
|
|
165
|
-
const c = h(null), [
|
|
166
|
-
return
|
|
186
|
+
const c = h(null), [d, s] = y({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
|
|
187
|
+
return D(() => {
|
|
167
188
|
if (f?.current && m?.current) {
|
|
168
189
|
const p = f.current.getBoundingClientRect();
|
|
169
190
|
s({
|
|
@@ -171,13 +192,13 @@ const V = (t, e) => {
|
|
|
171
192
|
width: p.width
|
|
172
193
|
});
|
|
173
194
|
}
|
|
174
|
-
}, [f, e, i, m]),
|
|
195
|
+
}, [f, e, i, m]), Z(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
175
196
|
/* @__PURE__ */ r.jsx(
|
|
176
197
|
"div",
|
|
177
198
|
{
|
|
178
199
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
179
200
|
style: {
|
|
180
|
-
left:
|
|
201
|
+
left: d.left
|
|
181
202
|
},
|
|
182
203
|
onClick: l
|
|
183
204
|
}
|
|
@@ -186,40 +207,40 @@ const V = (t, e) => {
|
|
|
186
207
|
"div",
|
|
187
208
|
{
|
|
188
209
|
ref: c,
|
|
189
|
-
className:
|
|
210
|
+
className: u(
|
|
190
211
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
191
212
|
"absolute top-0 z-50",
|
|
192
|
-
|
|
213
|
+
o,
|
|
193
214
|
a
|
|
194
215
|
),
|
|
195
216
|
style: {
|
|
196
|
-
left:
|
|
217
|
+
left: d.left
|
|
197
218
|
},
|
|
198
|
-
"data-action":
|
|
219
|
+
"data-action": n,
|
|
199
220
|
children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
|
|
200
221
|
}
|
|
201
222
|
)
|
|
202
223
|
] }) });
|
|
203
|
-
},
|
|
224
|
+
}, J = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("h-16 ", e), children: t }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), Q = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), Y = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1", t) }), ke = Object.assign(S, {
|
|
204
225
|
Root: S,
|
|
205
|
-
Header:
|
|
206
|
-
Content:
|
|
207
|
-
Footer:
|
|
208
|
-
Spacer:
|
|
209
|
-
}),
|
|
226
|
+
Header: J,
|
|
227
|
+
Content: K,
|
|
228
|
+
Footer: Q,
|
|
229
|
+
Spacer: Y
|
|
230
|
+
}), L = E(
|
|
210
231
|
void 0
|
|
211
|
-
),
|
|
212
|
-
const t =
|
|
232
|
+
), Ie = () => {
|
|
233
|
+
const t = F(L);
|
|
213
234
|
if (!t)
|
|
214
235
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
215
236
|
return t;
|
|
216
|
-
},
|
|
237
|
+
}, ee = ({
|
|
217
238
|
children: t
|
|
218
239
|
}) => {
|
|
219
|
-
const [e, a] = y(!1), [
|
|
220
|
-
a(!1),
|
|
240
|
+
const [e, a] = y(!1), [o, n] = y(!1), i = h(null), l = () => {
|
|
241
|
+
a(!1), n(!1);
|
|
221
242
|
}, c = () => {
|
|
222
|
-
a(!0),
|
|
243
|
+
a(!0), n(!1);
|
|
223
244
|
}, p = {
|
|
224
245
|
isCollapsed: e,
|
|
225
246
|
setIsCollapsed: a,
|
|
@@ -227,25 +248,25 @@ const V = (t, e) => {
|
|
|
227
248
|
toggleCollapse: () => {
|
|
228
249
|
e ? l() : c();
|
|
229
250
|
},
|
|
230
|
-
activeSecondaryBar:
|
|
251
|
+
activeSecondaryBar: o ? "notifications" : null,
|
|
231
252
|
openSecondaryBar: () => {
|
|
232
|
-
|
|
253
|
+
n(!0);
|
|
233
254
|
},
|
|
234
255
|
closeSecondaryBar: () => {
|
|
235
|
-
|
|
256
|
+
n(!1);
|
|
236
257
|
},
|
|
237
258
|
toggleSecondaryBar: () => {
|
|
238
|
-
|
|
259
|
+
n((v) => !v);
|
|
239
260
|
}
|
|
240
261
|
};
|
|
241
|
-
return /* @__PURE__ */ r.jsx(
|
|
242
|
-
},
|
|
243
|
-
|
|
262
|
+
return /* @__PURE__ */ r.jsx(L.Provider, { value: p, children: t });
|
|
263
|
+
}, j = (t, e, a, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, o) : t, te = (t, e, a) => {
|
|
264
|
+
R(
|
|
244
265
|
() => {
|
|
245
266
|
if (!t.current) return;
|
|
246
|
-
const
|
|
267
|
+
const o = x.timeline({
|
|
247
268
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
248
|
-
}),
|
|
269
|
+
}), n = {
|
|
249
270
|
navbar: t.current,
|
|
250
271
|
navLabels: x.utils.toArray(".nav-label"),
|
|
251
272
|
navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
|
|
@@ -281,11 +302,11 @@ const V = (t, e) => {
|
|
|
281
302
|
secondaryBarContent: x.utils.toArray(".secondary-bar *"),
|
|
282
303
|
badgeInLink: x.utils.toArray(".badge-in-link")
|
|
283
304
|
};
|
|
284
|
-
e ?
|
|
305
|
+
e ? re(o, n) : ae(o, n), n.secondaryBar && oe(n.secondaryBar);
|
|
285
306
|
},
|
|
286
307
|
{ scope: t, dependencies: [e, a] }
|
|
287
308
|
);
|
|
288
|
-
},
|
|
309
|
+
}, re = (t, e) => {
|
|
289
310
|
t.to(e.navbar, {
|
|
290
311
|
width: "5rem",
|
|
291
312
|
duration: 0.2,
|
|
@@ -344,7 +365,7 @@ const V = (t, e) => {
|
|
|
344
365
|
marginLeft: 0
|
|
345
366
|
},
|
|
346
367
|
0
|
|
347
|
-
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0),
|
|
368
|
+
).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), j(
|
|
348
369
|
t,
|
|
349
370
|
e.buttonCrevron,
|
|
350
371
|
{
|
|
@@ -357,7 +378,7 @@ const V = (t, e) => {
|
|
|
357
378
|
}
|
|
358
379
|
},
|
|
359
380
|
0
|
|
360
|
-
),
|
|
381
|
+
), j(
|
|
361
382
|
t,
|
|
362
383
|
e.buttonContentChevron,
|
|
363
384
|
{
|
|
@@ -424,7 +445,7 @@ const V = (t, e) => {
|
|
|
424
445
|
},
|
|
425
446
|
-1
|
|
426
447
|
);
|
|
427
|
-
},
|
|
448
|
+
}, ae = (t, e) => {
|
|
428
449
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
429
450
|
e.navLinkItems,
|
|
430
451
|
{
|
|
@@ -434,7 +455,7 @@ const V = (t, e) => {
|
|
|
434
455
|
justifyContent: "flex-start"
|
|
435
456
|
},
|
|
436
457
|
-1
|
|
437
|
-
),
|
|
458
|
+
), j(
|
|
438
459
|
t,
|
|
439
460
|
e.buttonCrevron,
|
|
440
461
|
{
|
|
@@ -447,7 +468,7 @@ const V = (t, e) => {
|
|
|
447
468
|
}
|
|
448
469
|
},
|
|
449
470
|
0
|
|
450
|
-
),
|
|
471
|
+
), j(
|
|
451
472
|
t,
|
|
452
473
|
e.buttonContentChevron,
|
|
453
474
|
{
|
|
@@ -552,24 +573,24 @@ const V = (t, e) => {
|
|
|
552
573
|
},
|
|
553
574
|
0
|
|
554
575
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
555
|
-
},
|
|
576
|
+
}, oe = (t, e) => {
|
|
556
577
|
x.to(t, {
|
|
557
578
|
x: "-100%",
|
|
558
579
|
opacity: 0,
|
|
559
580
|
duration: 0.3,
|
|
560
581
|
ease: "power2.in"
|
|
561
582
|
});
|
|
562
|
-
},
|
|
563
|
-
const [a,
|
|
583
|
+
}, ne = C((t, e) => {
|
|
584
|
+
const [a, o] = y(t?.currentTabName || t.tabs[0].name), n = h(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
564
585
|
w(() => {
|
|
565
|
-
|
|
586
|
+
n.current?.style.setProperty("--tab-bg", c);
|
|
566
587
|
}, [c]);
|
|
567
|
-
const
|
|
588
|
+
const d = i.find((s) => s.name === (t?.currentTabName || a));
|
|
568
589
|
return /* @__PURE__ */ r.jsx(
|
|
569
590
|
"div",
|
|
570
591
|
{
|
|
571
592
|
ref: e,
|
|
572
|
-
className:
|
|
593
|
+
className: u(
|
|
573
594
|
"flex flex-col gap-2",
|
|
574
595
|
"bg-neutral-strong-default",
|
|
575
596
|
"h-full w-14 max-w-14 pl-[6px] py-6",
|
|
@@ -578,13 +599,13 @@ const V = (t, e) => {
|
|
|
578
599
|
),
|
|
579
600
|
children: i.map(
|
|
580
601
|
(s) => {
|
|
581
|
-
const f = s.name ===
|
|
582
|
-
s.disabled || (
|
|
602
|
+
const f = s.name === d?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, p = () => {
|
|
603
|
+
s.disabled || (o(s.name), s.onClick && s.onClick(s.name));
|
|
583
604
|
};
|
|
584
605
|
return /* @__PURE__ */ r.jsx(
|
|
585
606
|
"div",
|
|
586
607
|
{
|
|
587
|
-
className:
|
|
608
|
+
className: u(
|
|
588
609
|
"bg-[var(--tab-bg)]",
|
|
589
610
|
"h-12 w-[50px] z-20",
|
|
590
611
|
"flex items-center pl-[6px] ",
|
|
@@ -593,8 +614,8 @@ const V = (t, e) => {
|
|
|
593
614
|
f && "active"
|
|
594
615
|
),
|
|
595
616
|
onClick: p,
|
|
596
|
-
ref:
|
|
597
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
617
|
+
ref: n,
|
|
618
|
+
children: /* @__PURE__ */ r.jsx("div", { className: u(
|
|
598
619
|
"size-8 rounded-[4px]",
|
|
599
620
|
"grid place-items-center",
|
|
600
621
|
"tab-thumbnail-icon",
|
|
@@ -608,31 +629,31 @@ const V = (t, e) => {
|
|
|
608
629
|
)
|
|
609
630
|
}
|
|
610
631
|
);
|
|
611
|
-
}),
|
|
612
|
-
({ children: t, isCollapsed: e = !1, className: a = "", tabs:
|
|
613
|
-
const l = h(null), c = h(null), { registerPrimarySidebar:
|
|
632
|
+
}), ie = C(
|
|
633
|
+
({ children: t, isCollapsed: e = !1, className: a = "", tabs: o = [], currentTabName: n }, i) => {
|
|
634
|
+
const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: s } = k();
|
|
614
635
|
console.log(c.current, "Tabinternal ref");
|
|
615
636
|
const f = O((m) => {
|
|
616
637
|
l.current = m, typeof i == "function" ? (console.log("soy ref function"), i(m)) : i && (console.log("estoy entrand aca"), i.current = m);
|
|
617
638
|
}, [i]);
|
|
618
639
|
return w(() => {
|
|
619
|
-
l.current &&
|
|
620
|
-
}, [
|
|
640
|
+
l.current && d(l);
|
|
641
|
+
}, [d]), w(() => {
|
|
621
642
|
c.current && s(c);
|
|
622
|
-
}, [s]),
|
|
643
|
+
}, [s]), te(l, e, !1), /* @__PURE__ */ r.jsxs(
|
|
623
644
|
"div",
|
|
624
645
|
{
|
|
625
|
-
className:
|
|
646
|
+
className: u(
|
|
626
647
|
"flex"
|
|
627
648
|
),
|
|
628
649
|
children: [
|
|
629
|
-
|
|
630
|
-
|
|
650
|
+
o.length > 0 && /* @__PURE__ */ r.jsx(
|
|
651
|
+
ne,
|
|
631
652
|
{
|
|
632
|
-
tabs:
|
|
653
|
+
tabs: o,
|
|
633
654
|
ref: c,
|
|
634
655
|
activeColor: "var(--neutral-900)",
|
|
635
|
-
currentTabName:
|
|
656
|
+
currentTabName: n
|
|
636
657
|
}
|
|
637
658
|
),
|
|
638
659
|
/* @__PURE__ */ r.jsx(
|
|
@@ -648,11 +669,11 @@ const V = (t, e) => {
|
|
|
648
669
|
}
|
|
649
670
|
);
|
|
650
671
|
}
|
|
651
|
-
),
|
|
652
|
-
(t, e) => /* @__PURE__ */ r.jsx(
|
|
672
|
+
), N = C(
|
|
673
|
+
(t, e) => /* @__PURE__ */ r.jsx(ee, { children: /* @__PURE__ */ r.jsx(ie, { ...t, ref: e }) })
|
|
653
674
|
);
|
|
654
|
-
|
|
655
|
-
const
|
|
675
|
+
N.displayName = "SidebarRoot";
|
|
676
|
+
const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
|
|
656
677
|
"button",
|
|
657
678
|
{
|
|
658
679
|
type: "button",
|
|
@@ -662,7 +683,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
662
683
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
663
684
|
children: t ? /* @__PURE__ */ r.jsx(g.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(g.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
664
685
|
}
|
|
665
|
-
) }),
|
|
686
|
+
) }), le = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), ce = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: u("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" }) }), ue = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), de = ({ className: t, size: e = "auto" }) => {
|
|
666
687
|
const a = () => {
|
|
667
688
|
switch (e) {
|
|
668
689
|
case "auto":
|
|
@@ -675,31 +696,31 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
675
696
|
return "h-8 w-8";
|
|
676
697
|
}
|
|
677
698
|
};
|
|
678
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
679
|
-
},
|
|
680
|
-
Root:
|
|
681
|
-
CollapseButton:
|
|
682
|
-
Header:
|
|
683
|
-
Divider:
|
|
684
|
-
Content:
|
|
685
|
-
Spacer:
|
|
686
|
-
Footer:
|
|
687
|
-
}),
|
|
699
|
+
return /* @__PURE__ */ r.jsx("div", { className: u(a(), t) });
|
|
700
|
+
}, fe = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), Be = Object.assign(N, {
|
|
701
|
+
Root: N,
|
|
702
|
+
CollapseButton: se,
|
|
703
|
+
Header: le,
|
|
704
|
+
Divider: ce,
|
|
705
|
+
Content: ue,
|
|
706
|
+
Spacer: de,
|
|
707
|
+
Footer: fe
|
|
708
|
+
}), Re = ({
|
|
688
709
|
children: t,
|
|
689
710
|
icon: e,
|
|
690
711
|
label: a,
|
|
691
|
-
href:
|
|
692
|
-
onClick:
|
|
712
|
+
href: o,
|
|
713
|
+
onClick: n,
|
|
693
714
|
isActive: i = !1,
|
|
694
715
|
className: l
|
|
695
716
|
}) => {
|
|
696
|
-
const c =
|
|
717
|
+
const c = o ? "a" : "button";
|
|
697
718
|
return /* @__PURE__ */ r.jsxs(
|
|
698
719
|
c,
|
|
699
720
|
{
|
|
700
|
-
href:
|
|
701
|
-
onClick:
|
|
702
|
-
className:
|
|
721
|
+
href: o,
|
|
722
|
+
onClick: n,
|
|
723
|
+
className: u(
|
|
703
724
|
"nav-link-item",
|
|
704
725
|
"flex items-center w-full px-3 py-2 text-left",
|
|
705
726
|
"hover:bg-neutral-medium-default transition-colors rounded-lg",
|
|
@@ -714,17 +735,17 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
714
735
|
]
|
|
715
736
|
}
|
|
716
737
|
);
|
|
717
|
-
},
|
|
738
|
+
}, A = ({
|
|
718
739
|
count: t,
|
|
719
740
|
maxCount: e = 9,
|
|
720
741
|
className: a = "",
|
|
721
|
-
size:
|
|
722
|
-
variant:
|
|
742
|
+
size: o = "medium",
|
|
743
|
+
variant: n = "primary",
|
|
723
744
|
showZero: i = !1
|
|
724
745
|
}) => {
|
|
725
746
|
const l = t, c = l > e ? `+${e}` : l;
|
|
726
747
|
if (l === 0 && !i) return null;
|
|
727
|
-
const
|
|
748
|
+
const d = {
|
|
728
749
|
small: "w-4.5 h-4.5 text-xs ",
|
|
729
750
|
medium: "w-5 h-5 text-xs",
|
|
730
751
|
large: "w-6 h-6 text-sm"
|
|
@@ -735,18 +756,18 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
735
756
|
warning: "bg-yellow-500 text-black",
|
|
736
757
|
danger: "bg-red-500 text-white"
|
|
737
758
|
};
|
|
738
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
759
|
+
return /* @__PURE__ */ r.jsx("div", { className: u(
|
|
739
760
|
"rounded-full flex items-center justify-center font-medium ",
|
|
740
|
-
|
|
741
|
-
s[
|
|
761
|
+
d[o],
|
|
762
|
+
s[n],
|
|
742
763
|
a
|
|
743
764
|
), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
|
|
744
|
-
},
|
|
765
|
+
}, Te = ({
|
|
745
766
|
linkActions: t,
|
|
746
767
|
onClick: e,
|
|
747
768
|
activeAction: a
|
|
748
|
-
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
749
|
-
const { isView: i = !1, actionName: l, title: c, icon:
|
|
769
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
770
|
+
const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } = o || {}, m = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = a === l;
|
|
750
771
|
return m && /* @__PURE__ */ r.jsx(
|
|
751
772
|
b.div,
|
|
752
773
|
{
|
|
@@ -754,7 +775,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
754
775
|
animate: { opacity: 1 },
|
|
755
776
|
transition: {
|
|
756
777
|
duration: 0.4,
|
|
757
|
-
delay:
|
|
778
|
+
delay: n * 0.03,
|
|
758
779
|
ease: "easeOut"
|
|
759
780
|
},
|
|
760
781
|
className: "relative flex justify-center w-full items-center px-3",
|
|
@@ -764,14 +785,14 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
764
785
|
onClick: () => {
|
|
765
786
|
e?.(l);
|
|
766
787
|
},
|
|
767
|
-
className:
|
|
788
|
+
className: u(
|
|
768
789
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
769
790
|
"transition-all duration-300 ease-out w-full",
|
|
770
791
|
"group hover:bg-neutral-medium-selected",
|
|
771
792
|
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
772
793
|
),
|
|
773
794
|
children: [
|
|
774
|
-
/* @__PURE__ */ r.jsx(
|
|
795
|
+
/* @__PURE__ */ r.jsx(T, { mode: "wait", children: p && /* @__PURE__ */ r.jsx(
|
|
775
796
|
b.div,
|
|
776
797
|
{
|
|
777
798
|
layoutId: "nav-active-bg",
|
|
@@ -810,9 +831,9 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
810
831
|
duration: 0.25,
|
|
811
832
|
ease: "easeOut"
|
|
812
833
|
},
|
|
813
|
-
children: typeof
|
|
834
|
+
children: typeof d == "function" ? d({
|
|
814
835
|
size: 24,
|
|
815
|
-
className:
|
|
836
|
+
className: u(
|
|
816
837
|
"nav-icon transition-colors duration-250 ease-out",
|
|
817
838
|
p ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
818
839
|
)
|
|
@@ -821,7 +842,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
821
842
|
),
|
|
822
843
|
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
823
844
|
] }),
|
|
824
|
-
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ r.jsx(
|
|
845
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ r.jsx(A, { count: s, maxCount: 9, className: "" }) : "" })
|
|
825
846
|
]
|
|
826
847
|
}
|
|
827
848
|
)
|
|
@@ -829,15 +850,15 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
829
850
|
}
|
|
830
851
|
)
|
|
831
852
|
},
|
|
832
|
-
|
|
853
|
+
n
|
|
833
854
|
);
|
|
834
|
-
}) }),
|
|
855
|
+
}) }), Le = ({
|
|
835
856
|
links: t,
|
|
836
857
|
isLinkActive: e,
|
|
837
858
|
onLinkClick: a
|
|
838
|
-
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((
|
|
839
|
-
const { isView: i = !1, viewAccess: l, path: c, title:
|
|
840
|
-
(
|
|
859
|
+
}) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
|
|
860
|
+
const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: m } = o, p = (typeof i == "function" ? i() : i !== !1) && (!l || l()), v = e(c) || (m?.some(
|
|
861
|
+
(q) => e(q)
|
|
841
862
|
) ?? !1);
|
|
842
863
|
return p && /* @__PURE__ */ r.jsx(
|
|
843
864
|
b.div,
|
|
@@ -846,7 +867,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
846
867
|
animate: { opacity: 1 },
|
|
847
868
|
transition: {
|
|
848
869
|
duration: 0.4,
|
|
849
|
-
delay:
|
|
870
|
+
delay: n * 0.03,
|
|
850
871
|
ease: "easeOut"
|
|
851
872
|
},
|
|
852
873
|
className: "relative flex justify-center w-full items-center px-3",
|
|
@@ -856,14 +877,14 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
856
877
|
onClick: () => {
|
|
857
878
|
a?.(c);
|
|
858
879
|
},
|
|
859
|
-
className:
|
|
880
|
+
className: u(
|
|
860
881
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
861
882
|
"transition-all duration-300 ease-out w-full",
|
|
862
883
|
"group hover:bg-neutral-medium-selected",
|
|
863
884
|
v ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
864
885
|
),
|
|
865
886
|
children: [
|
|
866
|
-
/* @__PURE__ */ r.jsx(
|
|
887
|
+
/* @__PURE__ */ r.jsx(T, { mode: "wait", children: v && /* @__PURE__ */ r.jsx(
|
|
867
888
|
b.div,
|
|
868
889
|
{
|
|
869
890
|
layoutId: "nav-active-bg",
|
|
@@ -904,16 +925,16 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
904
925
|
},
|
|
905
926
|
children: typeof s == "function" ? s({
|
|
906
927
|
size: 24,
|
|
907
|
-
className:
|
|
928
|
+
className: u(
|
|
908
929
|
"nav-icon transition-colors duration-250 ease-out",
|
|
909
930
|
v ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
910
931
|
)
|
|
911
932
|
}) : null
|
|
912
933
|
}
|
|
913
934
|
),
|
|
914
|
-
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children:
|
|
935
|
+
/* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
915
936
|
] }),
|
|
916
|
-
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(
|
|
937
|
+
/* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(A, { count: f, maxCount: 9, className: "" }) : "" })
|
|
917
938
|
]
|
|
918
939
|
}
|
|
919
940
|
)
|
|
@@ -921,20 +942,20 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
921
942
|
}
|
|
922
943
|
)
|
|
923
944
|
},
|
|
924
|
-
|
|
945
|
+
n
|
|
925
946
|
);
|
|
926
|
-
}) }),
|
|
947
|
+
}) }), Ae = ({
|
|
927
948
|
isActiveModalNotification: t,
|
|
928
949
|
setIsActiveModalNotification: e
|
|
929
950
|
}) => ({ handleNotificationClick: () => {
|
|
930
951
|
e(!0);
|
|
931
|
-
}, isActiveModalNotification: t }),
|
|
952
|
+
}, isActiveModalNotification: t }), qe = (t) => {
|
|
932
953
|
const e = h(null);
|
|
933
954
|
return {
|
|
934
955
|
isCollapsed: t,
|
|
935
956
|
navbarRef: e
|
|
936
957
|
};
|
|
937
|
-
},
|
|
958
|
+
}, ze = ({
|
|
938
959
|
isCollapsed: t,
|
|
939
960
|
onToggle: e
|
|
940
961
|
}) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
|
|
@@ -946,7 +967,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
946
967
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
947
968
|
children: t ? /* @__PURE__ */ r.jsx(g.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(g.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
948
969
|
}
|
|
949
|
-
) }),
|
|
970
|
+
) }), De = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
|
|
950
971
|
"img",
|
|
951
972
|
{
|
|
952
973
|
src: t,
|
|
@@ -954,114 +975,115 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
954
975
|
alt: e ?? ""
|
|
955
976
|
}
|
|
956
977
|
) });
|
|
957
|
-
function
|
|
978
|
+
function Ee({
|
|
958
979
|
onFilesAccepted: t,
|
|
959
980
|
onFilesRejected: e,
|
|
960
981
|
...a
|
|
961
982
|
}) {
|
|
962
|
-
const
|
|
983
|
+
const o = I.useCallback(
|
|
963
984
|
(i, l) => {
|
|
964
985
|
i.length > 0 && t?.(i), l.length > 0 && e?.(l);
|
|
965
986
|
},
|
|
966
987
|
[t, e]
|
|
967
|
-
),
|
|
968
|
-
onDrop:
|
|
988
|
+
), n = W({
|
|
989
|
+
onDrop: o,
|
|
969
990
|
...a
|
|
970
991
|
});
|
|
971
992
|
return {
|
|
972
|
-
...
|
|
973
|
-
hasErrors:
|
|
993
|
+
...n,
|
|
994
|
+
hasErrors: n.fileRejections.length > 0
|
|
974
995
|
};
|
|
975
996
|
}
|
|
976
|
-
const
|
|
997
|
+
const Fe = (t, e = !0) => {
|
|
977
998
|
const a = h(null);
|
|
978
999
|
return w(() => {
|
|
979
1000
|
if (!e) return;
|
|
980
|
-
const
|
|
981
|
-
a.current && !a.current.contains(
|
|
1001
|
+
const o = (n) => {
|
|
1002
|
+
a.current && !a.current.contains(n.target) && t();
|
|
982
1003
|
};
|
|
983
|
-
return document.addEventListener("mousedown",
|
|
1004
|
+
return document.addEventListener("mousedown", o, {
|
|
984
1005
|
capture: !0
|
|
985
|
-
}), document.addEventListener("touchstart",
|
|
1006
|
+
}), document.addEventListener("touchstart", o, {
|
|
986
1007
|
capture: !0
|
|
987
1008
|
}), () => {
|
|
988
|
-
document.removeEventListener("mousedown",
|
|
1009
|
+
document.removeEventListener("mousedown", o, {
|
|
989
1010
|
capture: !0
|
|
990
|
-
}), document.removeEventListener("touchstart",
|
|
1011
|
+
}), document.removeEventListener("touchstart", o, {
|
|
991
1012
|
capture: !0
|
|
992
1013
|
});
|
|
993
1014
|
};
|
|
994
1015
|
}, [t, e]), a;
|
|
995
1016
|
};
|
|
996
1017
|
export {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1018
|
+
He as Avatar,
|
|
1019
|
+
A as Badge,
|
|
1020
|
+
Me as Button,
|
|
1021
|
+
Ve as CardProfile,
|
|
1022
|
+
Ue as ChangueAccount,
|
|
1023
|
+
Ge as CheckBox,
|
|
1024
|
+
Ze as CheckboxFormik,
|
|
1025
|
+
De as CompanyLogo,
|
|
1026
|
+
Et as DatePicker,
|
|
1027
|
+
Ke as DialogModal,
|
|
1028
|
+
et as DrawerDesktop,
|
|
1029
|
+
at as DrawerMobile,
|
|
1030
|
+
wr as DropZone,
|
|
1031
|
+
_ as FAButton,
|
|
1032
|
+
it as Header,
|
|
1012
1033
|
g as Icons,
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
Ut as
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1034
|
+
lr as Image,
|
|
1035
|
+
ir as ImageGallery,
|
|
1036
|
+
z as Input,
|
|
1037
|
+
lt as InputFormik,
|
|
1038
|
+
Se as InputFormikV2,
|
|
1039
|
+
ut as InputMultiple,
|
|
1040
|
+
ar as LayoutGeneric,
|
|
1041
|
+
ft as Logo,
|
|
1042
|
+
pt as Menu,
|
|
1043
|
+
Te as NavBarActions,
|
|
1044
|
+
ze as NavbarCollapseButton,
|
|
1045
|
+
Le as NavbarLinks,
|
|
1046
|
+
Re as NavigationLink,
|
|
1047
|
+
vr as OtpInput,
|
|
1048
|
+
bt as Pagination,
|
|
1049
|
+
ht as ProfilePictureUpload,
|
|
1050
|
+
yt as ProgressBar,
|
|
1051
|
+
ke as SecondaryBar,
|
|
1052
|
+
tr as SegmentedButton,
|
|
1053
|
+
jt as Select,
|
|
1054
|
+
kt as SelectFormik,
|
|
1055
|
+
Ct as SelectFormikLegacy,
|
|
1056
|
+
xr as SelectSearch,
|
|
1057
|
+
Be as Sidebar,
|
|
1058
|
+
ee as SidebarProvider,
|
|
1059
|
+
or as SidebarRefProvider,
|
|
1060
|
+
Yt as Skeleton,
|
|
1061
|
+
Bt as Spinner,
|
|
1062
|
+
Tt as Steps,
|
|
1063
|
+
At as SwipeContainer,
|
|
1064
|
+
zt as Switch,
|
|
1065
|
+
Gt as TabLinks,
|
|
1066
|
+
Ot as Table,
|
|
1067
|
+
Pt as TableBody,
|
|
1068
|
+
Ht as TableCaption,
|
|
1069
|
+
Wt as TableCell,
|
|
1070
|
+
Mt as TableFooter,
|
|
1071
|
+
$t as TableHead,
|
|
1072
|
+
Vt as TableHeader,
|
|
1073
|
+
Ut as TableRow,
|
|
1074
|
+
Zt as TextArea,
|
|
1075
|
+
ur as Toast,
|
|
1076
|
+
mr as ToastProvider,
|
|
1077
|
+
Kt as Tooltip,
|
|
1078
|
+
dr as toastpyrion,
|
|
1079
|
+
Ae as useActionsNavbar,
|
|
1080
|
+
Fe as useClickOutside,
|
|
1081
|
+
Qe as useDialogControl,
|
|
1082
|
+
tt as useDrawerDesktop,
|
|
1083
|
+
ot as useDrawerMobile,
|
|
1084
|
+
Ee as useFileDropzone,
|
|
1085
|
+
gr as useIsMobile,
|
|
1086
|
+
qe as useNavbarCollapse,
|
|
1087
|
+
Ie as useSidebar,
|
|
1066
1088
|
k as useSidebarContext
|
|
1067
1089
|
};
|