prometeo-design-system 2.6.1 → 2.6.2
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/CheckBox.es.js +27 -24
- package/dist/DatePicker.es.js +276 -272
- package/dist/FAButton.d.ts +4 -0
- package/dist/FAButton.es.js +60 -0
- package/dist/HelperComponent-8ErmQ_n9.js +24 -0
- package/dist/Input-r2N9xkjM.js +280 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormikV2.d.ts +6 -0
- package/dist/InputFormikV2.es.js +29 -0
- package/dist/RadioButton.d.ts +2 -0
- package/dist/RadioButton.es.js +77 -0
- package/dist/RadioButtonFormik.d.ts +2 -0
- package/dist/RadioButtonFormik.es.js +30 -0
- package/dist/{Select-B5hkJ8Oy.js → Select-IAQKEfnq.js} +9 -8
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +34 -0
- package/dist/components/RadioButton/RadioButton.d.ts +12 -0
- package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +8 -0
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +6 -0
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +2 -0
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +7 -0
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +11 -0
- package/dist/exports/RadioButton.d.ts +1 -0
- package/dist/exports/RadioButtonFormik.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/pages/RecurrentDatePicker.page.d.ts +2 -0
- package/dist/preview/RadioButtonPreview.d.ts +2 -0
- package/dist/preview/RecurrentDatePickerPreview.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +286 -355
- package/package.json +9 -1
- package/src/styles/intellisense.css +1 -0
- package/dist/Input-DHdy-pWf.js +0 -295
- package/dist/components/Select copy/Select.d.ts +0 -71
|
@@ -1,135 +1,64 @@
|
|
|
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
|
|
1
|
+
import { default as Se } from "./Avatar.es.js";
|
|
2
|
+
import { B as Ie } from "./Button-Bc0LYLfg.js";
|
|
3
|
+
import { C as Re, a as Le } from "./CardProfile-DA-HDUpi.js";
|
|
4
|
+
import { default as Ae } from "./CheckBox.es.js";
|
|
5
|
+
import { default as qe } from "./CheckboxFormik.es.js";
|
|
6
|
+
import { default as De, useDialogControl as Ee } from "./DialogModal.es.js";
|
|
7
|
+
import { default as Fe, useDrawerDesktop as He } from "./DrawerDesktop.es.js";
|
|
8
|
+
import { default as $e, useDrawerMobile as Me } from "./DrawerMobile.es.js";
|
|
9
|
+
import { default as Ve } from "./Header.es.js";
|
|
10
|
+
import { I as _e } from "./Input-r2N9xkjM.js";
|
|
11
|
+
import { default as Ze } from "./InputFormik.es.js";
|
|
12
|
+
import { InputMultiple as Ke } from "./InputMultiple.es.js";
|
|
13
|
+
import { default as Ye } from "./Logo.es.js";
|
|
14
|
+
import { Menu as tt } from "./Menu.es.js";
|
|
15
|
+
import { default as rt } from "./Pagination.es.js";
|
|
16
|
+
import { ProfilePictureUpload as nt } from "./ProfilePictureUpload.es.js";
|
|
17
|
+
import { default as it } from "./ProgressBar.es.js";
|
|
18
|
+
import { S as ct } from "./Select-IAQKEfnq.js";
|
|
19
|
+
import { default as dt } from "./SelectFormikLegacy.es.js";
|
|
20
|
+
import { default as mt } from "./SelectFormik.es.js";
|
|
21
|
+
import { default as xt } from "./Spinner.es.js";
|
|
22
|
+
import { Steps as yt } from "./Steps.es.js";
|
|
23
|
+
import { default as vt } from "./SwipeContainer.es.js";
|
|
24
|
+
import { Switch as wt } from "./Switch.es.js";
|
|
25
|
+
import { default as Nt } from "./DatePicker.es.js";
|
|
26
|
+
import { Table as St, TableBody as kt, TableCaption as It, TableCell as Bt, TableFooter as Rt, TableHead as Lt, TableHeader as Tt, TableRow as At } from "./Table.es.js";
|
|
27
|
+
import { default as qt } from "./TabLinks.es.js";
|
|
28
|
+
import { default as Dt } from "./TextArea.es.js";
|
|
29
|
+
import { default as Ot } from "./Tooltip.es.js";
|
|
30
|
+
import { Skeleton as Ht } from "./Skeleton.es.js";
|
|
31
|
+
import { SegmentedButton as $t } from "./SegmentedButton.es.js";
|
|
32
32
|
import { u as k } from "./LayoutGeneric-B6E-yOYJ.js";
|
|
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 {
|
|
40
|
-
import
|
|
33
|
+
import { L as Ut, S as Vt } from "./LayoutGeneric-B6E-yOYJ.js";
|
|
34
|
+
import { I as _t } from "./ImageGallery-BeADef_g.js";
|
|
35
|
+
import { default as Zt } from "./Image.es.js";
|
|
36
|
+
import { default as Kt, toastpyrion as Qt } from "./Toast.es.js";
|
|
37
|
+
import { default as ea } from "./ToastProvider.es.js";
|
|
38
|
+
import { default as aa } from "./SelectSearch.es.js";
|
|
39
|
+
import { default as oa } from "./FAButton.es.js";
|
|
40
|
+
import { default as sa } from "./InputFormikV2.es.js";
|
|
41
|
+
import { RadioButtonFormik as la } from "./RadioButtonFormik.es.js";
|
|
42
|
+
import { RadioButton as ua } from "./RadioButton.es.js";
|
|
43
|
+
import { j as a } from "./jsx-runtime-ByW6EXIE.js";
|
|
41
44
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { FastField as H } from "formik";
|
|
45
|
-
import { useGSAP as R } from "@gsap/react";
|
|
45
|
+
import A, { useRef as g, useState as v, useLayoutEffect as P, createContext as q, useContext as z, forwardRef as C, useEffect as h, useCallback as D } from "react";
|
|
46
|
+
import { useGSAP as I } from "@gsap/react";
|
|
46
47
|
import x from "gsap";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
left: "auto",
|
|
56
|
-
top: "auto"
|
|
57
|
-
}, $ = {
|
|
58
|
-
filled: {
|
|
59
|
-
primary: "bg-primary-default-default hover:bg-primary-default-hover active:bg-primary-default-pressed",
|
|
60
|
-
secondary: "bg-neutral-medium-default hover:bg-neutral-medium-hover active:bg-neutral-medium-pressed",
|
|
61
|
-
success: "bg-success-default-default hover:bg-success-default-hover active:bg-success-default-pressed",
|
|
62
|
-
error: "bg-error-default-default hover:bg-error-default-hover active:bg-error-default-pressed",
|
|
63
|
-
warning: "bg-warning-default-default hover:bg-warning-default-hover active:bg-warning-default-pressed"
|
|
64
|
-
},
|
|
65
|
-
outlined: {
|
|
66
|
-
primary: "border border-primary-default-default hover:border-primary-default-hover active:border-primary-default-pressed text-primary-default-default hover:text-primary-default-hover active:text-primary-default-pressed",
|
|
67
|
-
secondary: "border border-neutral-medium-default hover:border-neutral-medium-hover active:border-neutral-medium-pressed text-neutral-medium-default hover:text-neutral-medium-hover active:text-neutral-medium-pressed",
|
|
68
|
-
success: "border border-success-default-default hover:border-success-default-hover active:border-success-default-pressed text-success-default-default hover:text-success-default-hover active:text-success-default-pressed",
|
|
69
|
-
error: "border border-error-default-default hover:border-error-default-hover active:border-error-default-pressed text-error-default-default hover:text-error-default-hover active:text-error-default-pressed",
|
|
70
|
-
warning: "border border-warning-default-default hover:border-warning-default-hover active:border-warning-default-pressed text-warning-default-default hover:text-warning-default-hover active:text-warning-default-pressed"
|
|
71
|
-
},
|
|
72
|
-
text: {
|
|
73
|
-
primary: "text-primary-default-default hover:text-primary-default-hover active:text-primary-default-pressed",
|
|
74
|
-
secondary: "text-neutral-medium-default hover:text-neutral-medium-hover active:text-neutral-medium-pressed",
|
|
75
|
-
success: "text-success-default-default hover:text-success-default-hover active:text-success-default-pressed",
|
|
76
|
-
error: "text-error-default-default hover:text-error-default-hover active:text-error-default-pressed",
|
|
77
|
-
warning: "text-warning-default-default hover:text-warning-default-hover active:text-warning-default-pressed"
|
|
78
|
-
}
|
|
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(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
style: {
|
|
84
|
-
width: "56px",
|
|
85
|
-
height: "56px",
|
|
86
|
-
borderRadius: "8px",
|
|
87
|
-
position: a ? "absolute" : "fixed",
|
|
88
|
-
right: e.right,
|
|
89
|
-
bottom: e.bottom,
|
|
90
|
-
left: e.left,
|
|
91
|
-
top: e.top,
|
|
92
|
-
display: "grid",
|
|
93
|
-
placeItems: "center",
|
|
94
|
-
padding: 16
|
|
95
|
-
},
|
|
96
|
-
className: u("transition-all duration-300 cursor-pointer text-neutral-default-default", $[l][o], i && V, t.className),
|
|
97
|
-
onClick: i ? void 0 : t.onClick,
|
|
98
|
-
children: I.createElement(n, { size: 24 })
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
return a ? c : P(c, document.body);
|
|
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
|
-
ref: a.innerRef
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
}, 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) => {
|
|
126
|
-
R(
|
|
48
|
+
import { Icons as w } from "./Icons.es.js";
|
|
49
|
+
import { motion as b, AnimatePresence as B } from "framer-motion";
|
|
50
|
+
import { default as fa } from "./OtpInput.es.js";
|
|
51
|
+
import { useDropzone as E } from "react-dropzone";
|
|
52
|
+
import { useIsMobile as pa } from "./useDevice.es.js";
|
|
53
|
+
import { DropZone as ba } from "./DropZone.es.js";
|
|
54
|
+
const O = (t, e) => {
|
|
55
|
+
I(
|
|
127
56
|
() => {
|
|
128
57
|
if (!t.current) return;
|
|
129
|
-
const
|
|
58
|
+
const r = t.current, n = document.querySelector('[data-main-content="true"]');
|
|
130
59
|
if (e) {
|
|
131
60
|
x.fromTo(
|
|
132
|
-
|
|
61
|
+
r,
|
|
133
62
|
{
|
|
134
63
|
width: "0rem",
|
|
135
64
|
opacity: 0
|
|
@@ -140,14 +69,14 @@ const G = ({
|
|
|
140
69
|
duration: 0.4,
|
|
141
70
|
ease: "power2.out"
|
|
142
71
|
}
|
|
143
|
-
),
|
|
144
|
-
marginLeft:
|
|
72
|
+
), n && x.to(n, {
|
|
73
|
+
marginLeft: r.offsetWidth + "px",
|
|
145
74
|
duration: 0.4,
|
|
146
75
|
ease: "power2.out"
|
|
147
76
|
});
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
77
|
+
const o = r.querySelectorAll(".secondary-bar-content > *");
|
|
78
|
+
o.length > 0 && x.fromTo(
|
|
79
|
+
o,
|
|
151
80
|
{
|
|
152
81
|
y: 20,
|
|
153
82
|
opacity: 0
|
|
@@ -162,12 +91,12 @@ const G = ({
|
|
|
162
91
|
}
|
|
163
92
|
);
|
|
164
93
|
} else
|
|
165
|
-
x.to(
|
|
94
|
+
x.to(r, {
|
|
166
95
|
width: "0rem",
|
|
167
96
|
opacity: 0,
|
|
168
97
|
duration: 0.3,
|
|
169
98
|
ease: "power2.in"
|
|
170
|
-
}),
|
|
99
|
+
}), n && x.to(n, {
|
|
171
100
|
marginLeft: "0px",
|
|
172
101
|
duration: 0.3,
|
|
173
102
|
ease: "power2.in"
|
|
@@ -178,14 +107,14 @@ const G = ({
|
|
|
178
107
|
}, S = ({
|
|
179
108
|
children: t,
|
|
180
109
|
isOpen: e = !1,
|
|
181
|
-
className:
|
|
182
|
-
width:
|
|
183
|
-
action:
|
|
110
|
+
className: r = "",
|
|
111
|
+
width: n = "w-96",
|
|
112
|
+
action: o,
|
|
184
113
|
primarySidebarCollapsed: i,
|
|
185
114
|
onClose: l
|
|
186
115
|
}) => {
|
|
187
|
-
const c =
|
|
188
|
-
return
|
|
116
|
+
const c = g(null), [d, s] = v({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
|
|
117
|
+
return P(() => {
|
|
189
118
|
if (f?.current && m?.current) {
|
|
190
119
|
const p = f.current.getBoundingClientRect();
|
|
191
120
|
s({
|
|
@@ -193,8 +122,8 @@ const G = ({
|
|
|
193
122
|
width: p.width
|
|
194
123
|
});
|
|
195
124
|
}
|
|
196
|
-
}, [f, e, i, m]),
|
|
197
|
-
/* @__PURE__ */
|
|
125
|
+
}, [f, e, i, m]), O(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
126
|
+
/* @__PURE__ */ a.jsx(
|
|
198
127
|
"div",
|
|
199
128
|
{
|
|
200
129
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
@@ -204,70 +133,70 @@ const G = ({
|
|
|
204
133
|
onClick: l
|
|
205
134
|
}
|
|
206
135
|
),
|
|
207
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ a.jsx(
|
|
208
137
|
"div",
|
|
209
138
|
{
|
|
210
139
|
ref: c,
|
|
211
140
|
className: u(
|
|
212
141
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
213
142
|
"absolute top-0 z-50",
|
|
214
|
-
|
|
215
|
-
|
|
143
|
+
n,
|
|
144
|
+
r
|
|
216
145
|
),
|
|
217
146
|
style: {
|
|
218
147
|
left: d.left
|
|
219
148
|
},
|
|
220
|
-
"data-action":
|
|
221
|
-
children: /* @__PURE__ */
|
|
149
|
+
"data-action": o,
|
|
150
|
+
children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
|
|
222
151
|
}
|
|
223
152
|
)
|
|
224
153
|
] }) });
|
|
225
|
-
},
|
|
154
|
+
}, F = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(S, {
|
|
226
155
|
Root: S,
|
|
227
|
-
Header:
|
|
228
|
-
Content:
|
|
229
|
-
Footer:
|
|
230
|
-
Spacer:
|
|
231
|
-
}),
|
|
156
|
+
Header: F,
|
|
157
|
+
Content: H,
|
|
158
|
+
Footer: W,
|
|
159
|
+
Spacer: $
|
|
160
|
+
}), R = q(
|
|
232
161
|
void 0
|
|
233
|
-
),
|
|
234
|
-
const t =
|
|
162
|
+
), fe = () => {
|
|
163
|
+
const t = z(R);
|
|
235
164
|
if (!t)
|
|
236
165
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
237
166
|
return t;
|
|
238
|
-
},
|
|
167
|
+
}, M = ({
|
|
239
168
|
children: t
|
|
240
169
|
}) => {
|
|
241
|
-
const [e,
|
|
242
|
-
|
|
170
|
+
const [e, r] = v(!1), [n, o] = v(!1), i = g(null), l = () => {
|
|
171
|
+
r(!1), o(!1);
|
|
243
172
|
}, c = () => {
|
|
244
|
-
|
|
173
|
+
r(!0), o(!1);
|
|
245
174
|
}, p = {
|
|
246
175
|
isCollapsed: e,
|
|
247
|
-
setIsCollapsed:
|
|
176
|
+
setIsCollapsed: r,
|
|
248
177
|
navbarRef: i,
|
|
249
178
|
toggleCollapse: () => {
|
|
250
179
|
e ? l() : c();
|
|
251
180
|
},
|
|
252
|
-
activeSecondaryBar:
|
|
181
|
+
activeSecondaryBar: n ? "notifications" : null,
|
|
253
182
|
openSecondaryBar: () => {
|
|
254
|
-
|
|
183
|
+
o(!0);
|
|
255
184
|
},
|
|
256
185
|
closeSecondaryBar: () => {
|
|
257
|
-
|
|
186
|
+
o(!1);
|
|
258
187
|
},
|
|
259
188
|
toggleSecondaryBar: () => {
|
|
260
|
-
|
|
189
|
+
o((y) => !y);
|
|
261
190
|
}
|
|
262
191
|
};
|
|
263
|
-
return /* @__PURE__ */
|
|
264
|
-
}, j = (t, e,
|
|
265
|
-
|
|
192
|
+
return /* @__PURE__ */ a.jsx(R.Provider, { value: p, children: t });
|
|
193
|
+
}, j = (t, e, r, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, n) : t, U = (t, e, r) => {
|
|
194
|
+
I(
|
|
266
195
|
() => {
|
|
267
196
|
if (!t.current) return;
|
|
268
|
-
const
|
|
197
|
+
const n = x.timeline({
|
|
269
198
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
270
|
-
}),
|
|
199
|
+
}), o = {
|
|
271
200
|
navbar: t.current,
|
|
272
201
|
navLabels: x.utils.toArray(".nav-label"),
|
|
273
202
|
navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
|
|
@@ -303,11 +232,11 @@ const G = ({
|
|
|
303
232
|
secondaryBarContent: x.utils.toArray(".secondary-bar *"),
|
|
304
233
|
badgeInLink: x.utils.toArray(".badge-in-link")
|
|
305
234
|
};
|
|
306
|
-
e ?
|
|
235
|
+
e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
|
|
307
236
|
},
|
|
308
|
-
{ scope: t, dependencies: [e,
|
|
237
|
+
{ scope: t, dependencies: [e, r] }
|
|
309
238
|
);
|
|
310
|
-
},
|
|
239
|
+
}, V = (t, e) => {
|
|
311
240
|
t.to(e.navbar, {
|
|
312
241
|
width: "5rem",
|
|
313
242
|
duration: 0.2,
|
|
@@ -446,7 +375,7 @@ const G = ({
|
|
|
446
375
|
},
|
|
447
376
|
-1
|
|
448
377
|
);
|
|
449
|
-
},
|
|
378
|
+
}, G = (t, e) => {
|
|
450
379
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
451
380
|
e.navLinkItems,
|
|
452
381
|
{
|
|
@@ -574,20 +503,20 @@ const G = ({
|
|
|
574
503
|
},
|
|
575
504
|
0
|
|
576
505
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
577
|
-
},
|
|
506
|
+
}, _ = (t, e) => {
|
|
578
507
|
x.to(t, {
|
|
579
508
|
x: "-100%",
|
|
580
509
|
opacity: 0,
|
|
581
510
|
duration: 0.3,
|
|
582
511
|
ease: "power2.in"
|
|
583
512
|
});
|
|
584
|
-
},
|
|
585
|
-
const [
|
|
586
|
-
|
|
587
|
-
|
|
513
|
+
}, X = C((t, e) => {
|
|
514
|
+
const [r, n] = v(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
|
|
515
|
+
h(() => {
|
|
516
|
+
o.current?.style.setProperty("--tab-bg", c);
|
|
588
517
|
}, [c]);
|
|
589
|
-
const d = i.find((s) => s.name === (t?.currentTabName ||
|
|
590
|
-
return /* @__PURE__ */
|
|
518
|
+
const d = i.find((s) => s.name === (t?.currentTabName || r));
|
|
519
|
+
return /* @__PURE__ */ a.jsx(
|
|
591
520
|
"div",
|
|
592
521
|
{
|
|
593
522
|
ref: e,
|
|
@@ -600,10 +529,10 @@ const G = ({
|
|
|
600
529
|
),
|
|
601
530
|
children: i.map(
|
|
602
531
|
(s) => {
|
|
603
|
-
const f = s.name === d?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */
|
|
604
|
-
s.disabled || (
|
|
532
|
+
const f = s.name === d?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, p = () => {
|
|
533
|
+
s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
|
|
605
534
|
};
|
|
606
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ a.jsx(
|
|
607
536
|
"div",
|
|
608
537
|
{
|
|
609
538
|
className: u(
|
|
@@ -615,8 +544,8 @@ const G = ({
|
|
|
615
544
|
f && "active"
|
|
616
545
|
),
|
|
617
546
|
onClick: p,
|
|
618
|
-
ref:
|
|
619
|
-
children: /* @__PURE__ */
|
|
547
|
+
ref: o,
|
|
548
|
+
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
620
549
|
"size-8 rounded-[4px]",
|
|
621
550
|
"grid place-items-center",
|
|
622
551
|
"tab-thumbnail-icon",
|
|
@@ -630,39 +559,39 @@ const G = ({
|
|
|
630
559
|
)
|
|
631
560
|
}
|
|
632
561
|
);
|
|
633
|
-
}),
|
|
634
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
635
|
-
const l =
|
|
562
|
+
}), Z = C(
|
|
563
|
+
({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, i) => {
|
|
564
|
+
const l = g(null), c = g(null), { registerPrimarySidebar: d, registerTabBar: s } = k();
|
|
636
565
|
console.log(c.current, "Tabinternal ref");
|
|
637
|
-
const f =
|
|
566
|
+
const f = D((m) => {
|
|
638
567
|
l.current = m, typeof i == "function" ? (console.log("soy ref function"), i(m)) : i && (console.log("estoy entrand aca"), i.current = m);
|
|
639
568
|
}, [i]);
|
|
640
|
-
return
|
|
569
|
+
return h(() => {
|
|
641
570
|
l.current && d(l);
|
|
642
|
-
}, [d]),
|
|
571
|
+
}, [d]), h(() => {
|
|
643
572
|
c.current && s(c);
|
|
644
|
-
}, [s]),
|
|
573
|
+
}, [s]), U(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
645
574
|
"div",
|
|
646
575
|
{
|
|
647
576
|
className: u(
|
|
648
577
|
"flex"
|
|
649
578
|
),
|
|
650
579
|
children: [
|
|
651
|
-
|
|
652
|
-
|
|
580
|
+
n.length > 0 && /* @__PURE__ */ a.jsx(
|
|
581
|
+
X,
|
|
653
582
|
{
|
|
654
|
-
tabs:
|
|
583
|
+
tabs: n,
|
|
655
584
|
ref: c,
|
|
656
585
|
activeColor: "var(--neutral-900)",
|
|
657
|
-
currentTabName:
|
|
586
|
+
currentTabName: o
|
|
658
587
|
}
|
|
659
588
|
),
|
|
660
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ a.jsx(
|
|
661
590
|
"div",
|
|
662
591
|
{
|
|
663
592
|
ref: f,
|
|
664
593
|
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
|
|
665
|
-
${e ? "w-16" : "w-64"} ${
|
|
594
|
+
${e ? "w-16" : "w-64"} ${r}`,
|
|
666
595
|
children: t
|
|
667
596
|
}
|
|
668
597
|
)
|
|
@@ -671,10 +600,10 @@ const G = ({
|
|
|
671
600
|
);
|
|
672
601
|
}
|
|
673
602
|
), N = C(
|
|
674
|
-
(t, e) => /* @__PURE__ */
|
|
603
|
+
(t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
|
|
675
604
|
);
|
|
676
605
|
N.displayName = "SidebarRoot";
|
|
677
|
-
const
|
|
606
|
+
const J = ({ 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(
|
|
678
607
|
"button",
|
|
679
608
|
{
|
|
680
609
|
type: "button",
|
|
@@ -682,10 +611,10 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
682
611
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
683
612
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
684
613
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
685
|
-
children: t ? /* @__PURE__ */
|
|
614
|
+
children: t ? /* @__PURE__ */ a.jsx(w.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
|
|
686
615
|
}
|
|
687
|
-
) }),
|
|
688
|
-
const
|
|
616
|
+
) }), K = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ 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 w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
|
|
617
|
+
const r = () => {
|
|
689
618
|
switch (e) {
|
|
690
619
|
case "auto":
|
|
691
620
|
return "flex-grow";
|
|
@@ -697,30 +626,30 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
697
626
|
return "h-8 w-8";
|
|
698
627
|
}
|
|
699
628
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
},
|
|
629
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
|
|
630
|
+
}, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(N, {
|
|
702
631
|
Root: N,
|
|
703
|
-
CollapseButton:
|
|
704
|
-
Header:
|
|
705
|
-
Divider:
|
|
706
|
-
Content:
|
|
707
|
-
Spacer:
|
|
708
|
-
Footer:
|
|
709
|
-
}),
|
|
632
|
+
CollapseButton: J,
|
|
633
|
+
Header: K,
|
|
634
|
+
Divider: Q,
|
|
635
|
+
Content: Y,
|
|
636
|
+
Spacer: ee,
|
|
637
|
+
Footer: te
|
|
638
|
+
}), pe = ({
|
|
710
639
|
children: t,
|
|
711
640
|
icon: e,
|
|
712
|
-
label:
|
|
713
|
-
href:
|
|
714
|
-
onClick:
|
|
641
|
+
label: r,
|
|
642
|
+
href: n,
|
|
643
|
+
onClick: o,
|
|
715
644
|
isActive: i = !1,
|
|
716
645
|
className: l
|
|
717
646
|
}) => {
|
|
718
|
-
const c =
|
|
719
|
-
return /* @__PURE__ */
|
|
647
|
+
const c = n ? "a" : "button";
|
|
648
|
+
return /* @__PURE__ */ a.jsxs(
|
|
720
649
|
c,
|
|
721
650
|
{
|
|
722
|
-
href:
|
|
723
|
-
onClick:
|
|
651
|
+
href: n,
|
|
652
|
+
onClick: o,
|
|
724
653
|
className: u(
|
|
725
654
|
"nav-link-item",
|
|
726
655
|
"flex items-center w-full px-3 py-2 text-left",
|
|
@@ -730,18 +659,18 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
730
659
|
l
|
|
731
660
|
),
|
|
732
661
|
children: [
|
|
733
|
-
e && /* @__PURE__ */
|
|
734
|
-
|
|
662
|
+
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 }) }),
|
|
663
|
+
r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
|
|
735
664
|
t
|
|
736
665
|
]
|
|
737
666
|
}
|
|
738
667
|
);
|
|
739
|
-
},
|
|
668
|
+
}, L = ({
|
|
740
669
|
count: t,
|
|
741
670
|
maxCount: e = 9,
|
|
742
|
-
className:
|
|
743
|
-
size:
|
|
744
|
-
variant:
|
|
671
|
+
className: r = "",
|
|
672
|
+
size: n = "medium",
|
|
673
|
+
variant: o = "primary",
|
|
745
674
|
showZero: i = !1
|
|
746
675
|
}) => {
|
|
747
676
|
const l = t, c = l > e ? `+${e}` : l;
|
|
@@ -757,30 +686,30 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
757
686
|
warning: "bg-yellow-500 text-black",
|
|
758
687
|
danger: "bg-red-500 text-white"
|
|
759
688
|
};
|
|
760
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
761
690
|
"rounded-full flex items-center justify-center font-medium ",
|
|
762
|
-
d[
|
|
763
|
-
s[
|
|
764
|
-
|
|
765
|
-
), children: /* @__PURE__ */
|
|
766
|
-
},
|
|
691
|
+
d[n],
|
|
692
|
+
s[o],
|
|
693
|
+
r
|
|
694
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
695
|
+
}, xe = ({
|
|
767
696
|
linkActions: t,
|
|
768
697
|
onClick: e,
|
|
769
|
-
activeAction:
|
|
770
|
-
}) => /* @__PURE__ */
|
|
771
|
-
const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } =
|
|
772
|
-
return m && /* @__PURE__ */
|
|
698
|
+
activeAction: r
|
|
699
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
700
|
+
const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } = n || {}, m = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = r === l;
|
|
701
|
+
return m && /* @__PURE__ */ a.jsx(
|
|
773
702
|
b.div,
|
|
774
703
|
{
|
|
775
704
|
initial: { opacity: 0 },
|
|
776
705
|
animate: { opacity: 1 },
|
|
777
706
|
transition: {
|
|
778
707
|
duration: 0.4,
|
|
779
|
-
delay:
|
|
708
|
+
delay: o * 0.03,
|
|
780
709
|
ease: "easeOut"
|
|
781
710
|
},
|
|
782
711
|
className: "relative flex justify-center w-full items-center px-3",
|
|
783
|
-
children: /* @__PURE__ */
|
|
712
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
784
713
|
"button",
|
|
785
714
|
{
|
|
786
715
|
onClick: () => {
|
|
@@ -793,7 +722,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
793
722
|
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
794
723
|
),
|
|
795
724
|
children: [
|
|
796
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
|
|
797
726
|
b.div,
|
|
798
727
|
{
|
|
799
728
|
layoutId: "nav-active-bg",
|
|
@@ -808,7 +737,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
808
737
|
}
|
|
809
738
|
}
|
|
810
739
|
) }),
|
|
811
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ a.jsxs(
|
|
812
741
|
b.div,
|
|
813
742
|
{
|
|
814
743
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -820,8 +749,8 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
820
749
|
ease: "easeOut"
|
|
821
750
|
},
|
|
822
751
|
children: [
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
753
|
+
/* @__PURE__ */ a.jsx(
|
|
825
754
|
b.div,
|
|
826
755
|
{
|
|
827
756
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
@@ -841,9 +770,9 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
841
770
|
}) : null
|
|
842
771
|
}
|
|
843
772
|
),
|
|
844
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
845
774
|
] }),
|
|
846
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ a.jsx(L, { count: s, maxCount: 9, className: "" }) : "" })
|
|
847
776
|
]
|
|
848
777
|
}
|
|
849
778
|
)
|
|
@@ -851,41 +780,41 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
851
780
|
}
|
|
852
781
|
)
|
|
853
782
|
},
|
|
854
|
-
|
|
783
|
+
o
|
|
855
784
|
);
|
|
856
|
-
}) }),
|
|
785
|
+
}) }), be = ({
|
|
857
786
|
links: t,
|
|
858
787
|
isLinkActive: e,
|
|
859
|
-
onLinkClick:
|
|
860
|
-
}) => /* @__PURE__ */
|
|
861
|
-
const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: m } =
|
|
862
|
-
(
|
|
788
|
+
onLinkClick: r
|
|
789
|
+
}) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
|
|
790
|
+
const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: m } = n, p = (typeof i == "function" ? i() : i !== !1) && (!l || l()), y = e(c) || (m?.some(
|
|
791
|
+
(T) => e(T)
|
|
863
792
|
) ?? !1);
|
|
864
|
-
return p && /* @__PURE__ */
|
|
793
|
+
return p && /* @__PURE__ */ a.jsx(
|
|
865
794
|
b.div,
|
|
866
795
|
{
|
|
867
796
|
initial: { opacity: 0 },
|
|
868
797
|
animate: { opacity: 1 },
|
|
869
798
|
transition: {
|
|
870
799
|
duration: 0.4,
|
|
871
|
-
delay:
|
|
800
|
+
delay: o * 0.03,
|
|
872
801
|
ease: "easeOut"
|
|
873
802
|
},
|
|
874
803
|
className: "relative flex justify-center w-full items-center px-3",
|
|
875
|
-
children: /* @__PURE__ */
|
|
804
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
876
805
|
"button",
|
|
877
806
|
{
|
|
878
807
|
onClick: () => {
|
|
879
|
-
|
|
808
|
+
r?.(c);
|
|
880
809
|
},
|
|
881
810
|
className: u(
|
|
882
811
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
883
812
|
"transition-all duration-300 ease-out w-full",
|
|
884
813
|
"group hover:bg-neutral-medium-selected",
|
|
885
|
-
|
|
814
|
+
y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
886
815
|
),
|
|
887
816
|
children: [
|
|
888
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ a.jsx(
|
|
889
818
|
b.div,
|
|
890
819
|
{
|
|
891
820
|
layoutId: "nav-active-bg",
|
|
@@ -900,7 +829,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
900
829
|
}
|
|
901
830
|
}
|
|
902
831
|
) }),
|
|
903
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ a.jsxs(
|
|
904
833
|
b.div,
|
|
905
834
|
{
|
|
906
835
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -912,13 +841,13 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
912
841
|
ease: "easeOut"
|
|
913
842
|
},
|
|
914
843
|
children: [
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
845
|
+
/* @__PURE__ */ a.jsx(
|
|
917
846
|
b.div,
|
|
918
847
|
{
|
|
919
848
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
920
849
|
animate: {
|
|
921
|
-
scale:
|
|
850
|
+
scale: y ? 1.05 : 1
|
|
922
851
|
},
|
|
923
852
|
transition: {
|
|
924
853
|
duration: 0.25,
|
|
@@ -928,14 +857,14 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
928
857
|
size: 24,
|
|
929
858
|
className: u(
|
|
930
859
|
"nav-icon transition-colors duration-250 ease-out",
|
|
931
|
-
|
|
860
|
+
y ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
932
861
|
)
|
|
933
862
|
}) : null
|
|
934
863
|
}
|
|
935
864
|
),
|
|
936
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
937
866
|
] }),
|
|
938
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
|
|
939
868
|
]
|
|
940
869
|
}
|
|
941
870
|
)
|
|
@@ -943,32 +872,32 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
943
872
|
}
|
|
944
873
|
)
|
|
945
874
|
},
|
|
946
|
-
|
|
875
|
+
o
|
|
947
876
|
);
|
|
948
|
-
}) }),
|
|
877
|
+
}) }), ye = ({
|
|
949
878
|
isActiveModalNotification: t,
|
|
950
879
|
setIsActiveModalNotification: e
|
|
951
880
|
}) => ({ handleNotificationClick: () => {
|
|
952
881
|
e(!0);
|
|
953
|
-
}, isActiveModalNotification: t }),
|
|
954
|
-
const e =
|
|
882
|
+
}, isActiveModalNotification: t }), ge = (t) => {
|
|
883
|
+
const e = g(null);
|
|
955
884
|
return {
|
|
956
885
|
isCollapsed: t,
|
|
957
886
|
navbarRef: e
|
|
958
887
|
};
|
|
959
|
-
},
|
|
888
|
+
}, ve = ({
|
|
960
889
|
isCollapsed: t,
|
|
961
890
|
onToggle: e
|
|
962
|
-
}) => /* @__PURE__ */
|
|
891
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
963
892
|
"button",
|
|
964
893
|
{
|
|
965
894
|
onClick: e,
|
|
966
895
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
967
896
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
968
897
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
969
|
-
children: t ? /* @__PURE__ */
|
|
898
|
+
children: t ? /* @__PURE__ */ a.jsx(w.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
|
|
970
899
|
}
|
|
971
|
-
) }),
|
|
900
|
+
) }), he = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
|
|
972
901
|
"img",
|
|
973
902
|
{
|
|
974
903
|
src: t,
|
|
@@ -976,115 +905,117 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
976
905
|
alt: e ?? ""
|
|
977
906
|
}
|
|
978
907
|
) });
|
|
979
|
-
function
|
|
908
|
+
function we({
|
|
980
909
|
onFilesAccepted: t,
|
|
981
910
|
onFilesRejected: e,
|
|
982
|
-
...
|
|
911
|
+
...r
|
|
983
912
|
}) {
|
|
984
|
-
const
|
|
913
|
+
const n = A.useCallback(
|
|
985
914
|
(i, l) => {
|
|
986
915
|
i.length > 0 && t?.(i), l.length > 0 && e?.(l);
|
|
987
916
|
},
|
|
988
917
|
[t, e]
|
|
989
|
-
),
|
|
990
|
-
onDrop:
|
|
991
|
-
...
|
|
918
|
+
), o = E({
|
|
919
|
+
onDrop: n,
|
|
920
|
+
...r
|
|
992
921
|
});
|
|
993
922
|
return {
|
|
994
|
-
...
|
|
995
|
-
hasErrors:
|
|
923
|
+
...o,
|
|
924
|
+
hasErrors: o.fileRejections.length > 0
|
|
996
925
|
};
|
|
997
926
|
}
|
|
998
|
-
const
|
|
999
|
-
const
|
|
1000
|
-
return
|
|
927
|
+
const je = (t, e = !0) => {
|
|
928
|
+
const r = g(null);
|
|
929
|
+
return h(() => {
|
|
1001
930
|
if (!e) return;
|
|
1002
|
-
const
|
|
1003
|
-
|
|
931
|
+
const n = (o) => {
|
|
932
|
+
r.current && !r.current.contains(o.target) && t();
|
|
1004
933
|
};
|
|
1005
|
-
return document.addEventListener("mousedown",
|
|
934
|
+
return document.addEventListener("mousedown", n, {
|
|
1006
935
|
capture: !0
|
|
1007
|
-
}), document.addEventListener("touchstart",
|
|
936
|
+
}), document.addEventListener("touchstart", n, {
|
|
1008
937
|
capture: !0
|
|
1009
938
|
}), () => {
|
|
1010
|
-
document.removeEventListener("mousedown",
|
|
939
|
+
document.removeEventListener("mousedown", n, {
|
|
1011
940
|
capture: !0
|
|
1012
|
-
}), document.removeEventListener("touchstart",
|
|
941
|
+
}), document.removeEventListener("touchstart", n, {
|
|
1013
942
|
capture: !0
|
|
1014
943
|
});
|
|
1015
944
|
};
|
|
1016
|
-
}, [t, e]),
|
|
945
|
+
}, [t, e]), r;
|
|
1017
946
|
};
|
|
1018
947
|
export {
|
|
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
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
Kt as
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
948
|
+
Se as Avatar,
|
|
949
|
+
L as Badge,
|
|
950
|
+
Ie as Button,
|
|
951
|
+
Re as CardProfile,
|
|
952
|
+
Le as ChangueAccount,
|
|
953
|
+
Ae as CheckBox,
|
|
954
|
+
qe as CheckboxFormik,
|
|
955
|
+
he as CompanyLogo,
|
|
956
|
+
Nt as DatePicker,
|
|
957
|
+
De as DialogModal,
|
|
958
|
+
Fe as DrawerDesktop,
|
|
959
|
+
$e as DrawerMobile,
|
|
960
|
+
ba as DropZone,
|
|
961
|
+
oa as FAButton,
|
|
962
|
+
Ve as Header,
|
|
963
|
+
w as Icons,
|
|
964
|
+
Zt as Image,
|
|
965
|
+
_t as ImageGallery,
|
|
966
|
+
_e as Input,
|
|
967
|
+
Ze as InputFormik,
|
|
968
|
+
sa as InputFormikV2,
|
|
969
|
+
Ke as InputMultiple,
|
|
970
|
+
Ut as LayoutGeneric,
|
|
971
|
+
Ye as Logo,
|
|
972
|
+
tt as Menu,
|
|
973
|
+
xe as NavBarActions,
|
|
974
|
+
ve as NavbarCollapseButton,
|
|
975
|
+
be as NavbarLinks,
|
|
976
|
+
pe as NavigationLink,
|
|
977
|
+
fa as OtpInput,
|
|
978
|
+
rt as Pagination,
|
|
979
|
+
nt as ProfilePictureUpload,
|
|
980
|
+
it as ProgressBar,
|
|
981
|
+
ua as RadioButton,
|
|
982
|
+
la as RadioButtonFormik,
|
|
983
|
+
de as SecondaryBar,
|
|
984
|
+
$t as SegmentedButton,
|
|
985
|
+
ct as Select,
|
|
986
|
+
mt as SelectFormik,
|
|
987
|
+
dt as SelectFormikLegacy,
|
|
988
|
+
aa as SelectSearch,
|
|
989
|
+
me as Sidebar,
|
|
990
|
+
M as SidebarProvider,
|
|
991
|
+
Vt as SidebarRefProvider,
|
|
992
|
+
Ht as Skeleton,
|
|
993
|
+
xt as Spinner,
|
|
994
|
+
yt as Steps,
|
|
995
|
+
vt as SwipeContainer,
|
|
996
|
+
wt as Switch,
|
|
997
|
+
qt as TabLinks,
|
|
998
|
+
St as Table,
|
|
999
|
+
kt as TableBody,
|
|
1000
|
+
It as TableCaption,
|
|
1001
|
+
Bt as TableCell,
|
|
1002
|
+
Rt as TableFooter,
|
|
1003
|
+
Lt as TableHead,
|
|
1004
|
+
Tt as TableHeader,
|
|
1005
|
+
At as TableRow,
|
|
1006
|
+
Dt as TextArea,
|
|
1007
|
+
Kt as Toast,
|
|
1008
|
+
ea as ToastProvider,
|
|
1009
|
+
Ot as Tooltip,
|
|
1010
|
+
Qt as toastpyrion,
|
|
1011
|
+
ye as useActionsNavbar,
|
|
1012
|
+
je as useClickOutside,
|
|
1013
|
+
Ee as useDialogControl,
|
|
1014
|
+
He as useDrawerDesktop,
|
|
1015
|
+
Me as useDrawerMobile,
|
|
1016
|
+
we as useFileDropzone,
|
|
1017
|
+
pa as useIsMobile,
|
|
1018
|
+
ge as useNavbarCollapse,
|
|
1019
|
+
fe as useSidebar,
|
|
1089
1020
|
k as useSidebarContext
|
|
1090
1021
|
};
|