prometeo-design-system 2.6.0 → 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/DrawerMobile.es.js +87 -87
- 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/InputFormik.es.js +136 -93
- 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/Drawer/DrawerMobile.d.ts +1 -1
- package/dist/components/InputFormik/InputFormik.d.ts +2 -1
- package/dist/components/InputFormik/InputFormikV2.d.ts +1 -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 -354
- 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,134 +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
|
-
}
|
|
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(
|
|
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(
|
|
126
56
|
() => {
|
|
127
57
|
if (!t.current) return;
|
|
128
|
-
const
|
|
58
|
+
const r = t.current, n = document.querySelector('[data-main-content="true"]');
|
|
129
59
|
if (e) {
|
|
130
60
|
x.fromTo(
|
|
131
|
-
|
|
61
|
+
r,
|
|
132
62
|
{
|
|
133
63
|
width: "0rem",
|
|
134
64
|
opacity: 0
|
|
@@ -139,14 +69,14 @@ const G = ({
|
|
|
139
69
|
duration: 0.4,
|
|
140
70
|
ease: "power2.out"
|
|
141
71
|
}
|
|
142
|
-
),
|
|
143
|
-
marginLeft:
|
|
72
|
+
), n && x.to(n, {
|
|
73
|
+
marginLeft: r.offsetWidth + "px",
|
|
144
74
|
duration: 0.4,
|
|
145
75
|
ease: "power2.out"
|
|
146
76
|
});
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
77
|
+
const o = r.querySelectorAll(".secondary-bar-content > *");
|
|
78
|
+
o.length > 0 && x.fromTo(
|
|
79
|
+
o,
|
|
150
80
|
{
|
|
151
81
|
y: 20,
|
|
152
82
|
opacity: 0
|
|
@@ -161,12 +91,12 @@ const G = ({
|
|
|
161
91
|
}
|
|
162
92
|
);
|
|
163
93
|
} else
|
|
164
|
-
x.to(
|
|
94
|
+
x.to(r, {
|
|
165
95
|
width: "0rem",
|
|
166
96
|
opacity: 0,
|
|
167
97
|
duration: 0.3,
|
|
168
98
|
ease: "power2.in"
|
|
169
|
-
}),
|
|
99
|
+
}), n && x.to(n, {
|
|
170
100
|
marginLeft: "0px",
|
|
171
101
|
duration: 0.3,
|
|
172
102
|
ease: "power2.in"
|
|
@@ -177,14 +107,14 @@ const G = ({
|
|
|
177
107
|
}, S = ({
|
|
178
108
|
children: t,
|
|
179
109
|
isOpen: e = !1,
|
|
180
|
-
className:
|
|
181
|
-
width:
|
|
182
|
-
action:
|
|
110
|
+
className: r = "",
|
|
111
|
+
width: n = "w-96",
|
|
112
|
+
action: o,
|
|
183
113
|
primarySidebarCollapsed: i,
|
|
184
114
|
onClose: l
|
|
185
115
|
}) => {
|
|
186
|
-
const c =
|
|
187
|
-
return
|
|
116
|
+
const c = g(null), [d, s] = v({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
|
|
117
|
+
return P(() => {
|
|
188
118
|
if (f?.current && m?.current) {
|
|
189
119
|
const p = f.current.getBoundingClientRect();
|
|
190
120
|
s({
|
|
@@ -192,8 +122,8 @@ const G = ({
|
|
|
192
122
|
width: p.width
|
|
193
123
|
});
|
|
194
124
|
}
|
|
195
|
-
}, [f, e, i, m]),
|
|
196
|
-
/* @__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(
|
|
197
127
|
"div",
|
|
198
128
|
{
|
|
199
129
|
className: "fixed inset-0 bg-black/95 z-40",
|
|
@@ -203,70 +133,70 @@ const G = ({
|
|
|
203
133
|
onClick: l
|
|
204
134
|
}
|
|
205
135
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ a.jsx(
|
|
207
137
|
"div",
|
|
208
138
|
{
|
|
209
139
|
ref: c,
|
|
210
140
|
className: u(
|
|
211
141
|
"h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
|
|
212
142
|
"absolute top-0 z-50",
|
|
213
|
-
|
|
214
|
-
|
|
143
|
+
n,
|
|
144
|
+
r
|
|
215
145
|
),
|
|
216
146
|
style: {
|
|
217
147
|
left: d.left
|
|
218
148
|
},
|
|
219
|
-
"data-action":
|
|
220
|
-
children: /* @__PURE__ */
|
|
149
|
+
"data-action": o,
|
|
150
|
+
children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
|
|
221
151
|
}
|
|
222
152
|
)
|
|
223
153
|
] }) });
|
|
224
|
-
},
|
|
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, {
|
|
225
155
|
Root: S,
|
|
226
|
-
Header:
|
|
227
|
-
Content:
|
|
228
|
-
Footer:
|
|
229
|
-
Spacer:
|
|
230
|
-
}),
|
|
156
|
+
Header: F,
|
|
157
|
+
Content: H,
|
|
158
|
+
Footer: W,
|
|
159
|
+
Spacer: $
|
|
160
|
+
}), R = q(
|
|
231
161
|
void 0
|
|
232
|
-
),
|
|
233
|
-
const t =
|
|
162
|
+
), fe = () => {
|
|
163
|
+
const t = z(R);
|
|
234
164
|
if (!t)
|
|
235
165
|
throw new Error("useSidebar must be used within a Sidebar.Root");
|
|
236
166
|
return t;
|
|
237
|
-
},
|
|
167
|
+
}, M = ({
|
|
238
168
|
children: t
|
|
239
169
|
}) => {
|
|
240
|
-
const [e,
|
|
241
|
-
|
|
170
|
+
const [e, r] = v(!1), [n, o] = v(!1), i = g(null), l = () => {
|
|
171
|
+
r(!1), o(!1);
|
|
242
172
|
}, c = () => {
|
|
243
|
-
|
|
173
|
+
r(!0), o(!1);
|
|
244
174
|
}, p = {
|
|
245
175
|
isCollapsed: e,
|
|
246
|
-
setIsCollapsed:
|
|
176
|
+
setIsCollapsed: r,
|
|
247
177
|
navbarRef: i,
|
|
248
178
|
toggleCollapse: () => {
|
|
249
179
|
e ? l() : c();
|
|
250
180
|
},
|
|
251
|
-
activeSecondaryBar:
|
|
181
|
+
activeSecondaryBar: n ? "notifications" : null,
|
|
252
182
|
openSecondaryBar: () => {
|
|
253
|
-
|
|
183
|
+
o(!0);
|
|
254
184
|
},
|
|
255
185
|
closeSecondaryBar: () => {
|
|
256
|
-
|
|
186
|
+
o(!1);
|
|
257
187
|
},
|
|
258
188
|
toggleSecondaryBar: () => {
|
|
259
|
-
|
|
189
|
+
o((y) => !y);
|
|
260
190
|
}
|
|
261
191
|
};
|
|
262
|
-
return /* @__PURE__ */
|
|
263
|
-
}, j = (t, e,
|
|
264
|
-
|
|
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(
|
|
265
195
|
() => {
|
|
266
196
|
if (!t.current) return;
|
|
267
|
-
const
|
|
197
|
+
const n = x.timeline({
|
|
268
198
|
defaults: { duration: 0.7, ease: "power1.out" }
|
|
269
|
-
}),
|
|
199
|
+
}), o = {
|
|
270
200
|
navbar: t.current,
|
|
271
201
|
navLabels: x.utils.toArray(".nav-label"),
|
|
272
202
|
navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
|
|
@@ -302,11 +232,11 @@ const G = ({
|
|
|
302
232
|
secondaryBarContent: x.utils.toArray(".secondary-bar *"),
|
|
303
233
|
badgeInLink: x.utils.toArray(".badge-in-link")
|
|
304
234
|
};
|
|
305
|
-
e ?
|
|
235
|
+
e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
|
|
306
236
|
},
|
|
307
|
-
{ scope: t, dependencies: [e,
|
|
237
|
+
{ scope: t, dependencies: [e, r] }
|
|
308
238
|
);
|
|
309
|
-
},
|
|
239
|
+
}, V = (t, e) => {
|
|
310
240
|
t.to(e.navbar, {
|
|
311
241
|
width: "5rem",
|
|
312
242
|
duration: 0.2,
|
|
@@ -445,7 +375,7 @@ const G = ({
|
|
|
445
375
|
},
|
|
446
376
|
-1
|
|
447
377
|
);
|
|
448
|
-
},
|
|
378
|
+
}, G = (t, e) => {
|
|
449
379
|
t.to(e.navbar, { width: "20rem" }, -1).to(
|
|
450
380
|
e.navLinkItems,
|
|
451
381
|
{
|
|
@@ -573,20 +503,20 @@ const G = ({
|
|
|
573
503
|
},
|
|
574
504
|
0
|
|
575
505
|
).to(e.navIcons, { scale: 1 }, 0.3);
|
|
576
|
-
},
|
|
506
|
+
}, _ = (t, e) => {
|
|
577
507
|
x.to(t, {
|
|
578
508
|
x: "-100%",
|
|
579
509
|
opacity: 0,
|
|
580
510
|
duration: 0.3,
|
|
581
511
|
ease: "power2.in"
|
|
582
512
|
});
|
|
583
|
-
},
|
|
584
|
-
const [
|
|
585
|
-
|
|
586
|
-
|
|
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);
|
|
587
517
|
}, [c]);
|
|
588
|
-
const d = i.find((s) => s.name === (t?.currentTabName ||
|
|
589
|
-
return /* @__PURE__ */
|
|
518
|
+
const d = i.find((s) => s.name === (t?.currentTabName || r));
|
|
519
|
+
return /* @__PURE__ */ a.jsx(
|
|
590
520
|
"div",
|
|
591
521
|
{
|
|
592
522
|
ref: e,
|
|
@@ -599,10 +529,10 @@ const G = ({
|
|
|
599
529
|
),
|
|
600
530
|
children: i.map(
|
|
601
531
|
(s) => {
|
|
602
|
-
const f = s.name === d?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */
|
|
603
|
-
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));
|
|
604
534
|
};
|
|
605
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ a.jsx(
|
|
606
536
|
"div",
|
|
607
537
|
{
|
|
608
538
|
className: u(
|
|
@@ -614,8 +544,8 @@ const G = ({
|
|
|
614
544
|
f && "active"
|
|
615
545
|
),
|
|
616
546
|
onClick: p,
|
|
617
|
-
ref:
|
|
618
|
-
children: /* @__PURE__ */
|
|
547
|
+
ref: o,
|
|
548
|
+
children: /* @__PURE__ */ a.jsx("div", { className: u(
|
|
619
549
|
"size-8 rounded-[4px]",
|
|
620
550
|
"grid place-items-center",
|
|
621
551
|
"tab-thumbnail-icon",
|
|
@@ -629,39 +559,39 @@ const G = ({
|
|
|
629
559
|
)
|
|
630
560
|
}
|
|
631
561
|
);
|
|
632
|
-
}),
|
|
633
|
-
({ children: t, isCollapsed: e = !1, className:
|
|
634
|
-
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();
|
|
635
565
|
console.log(c.current, "Tabinternal ref");
|
|
636
|
-
const f =
|
|
566
|
+
const f = D((m) => {
|
|
637
567
|
l.current = m, typeof i == "function" ? (console.log("soy ref function"), i(m)) : i && (console.log("estoy entrand aca"), i.current = m);
|
|
638
568
|
}, [i]);
|
|
639
|
-
return
|
|
569
|
+
return h(() => {
|
|
640
570
|
l.current && d(l);
|
|
641
|
-
}, [d]),
|
|
571
|
+
}, [d]), h(() => {
|
|
642
572
|
c.current && s(c);
|
|
643
|
-
}, [s]),
|
|
573
|
+
}, [s]), U(l, e, !1), /* @__PURE__ */ a.jsxs(
|
|
644
574
|
"div",
|
|
645
575
|
{
|
|
646
576
|
className: u(
|
|
647
577
|
"flex"
|
|
648
578
|
),
|
|
649
579
|
children: [
|
|
650
|
-
|
|
651
|
-
|
|
580
|
+
n.length > 0 && /* @__PURE__ */ a.jsx(
|
|
581
|
+
X,
|
|
652
582
|
{
|
|
653
|
-
tabs:
|
|
583
|
+
tabs: n,
|
|
654
584
|
ref: c,
|
|
655
585
|
activeColor: "var(--neutral-900)",
|
|
656
|
-
currentTabName:
|
|
586
|
+
currentTabName: o
|
|
657
587
|
}
|
|
658
588
|
),
|
|
659
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ a.jsx(
|
|
660
590
|
"div",
|
|
661
591
|
{
|
|
662
592
|
ref: f,
|
|
663
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
|
|
664
|
-
${e ? "w-16" : "w-64"} ${
|
|
594
|
+
${e ? "w-16" : "w-64"} ${r}`,
|
|
665
595
|
children: t
|
|
666
596
|
}
|
|
667
597
|
)
|
|
@@ -670,10 +600,10 @@ const G = ({
|
|
|
670
600
|
);
|
|
671
601
|
}
|
|
672
602
|
), N = C(
|
|
673
|
-
(t, e) => /* @__PURE__ */
|
|
603
|
+
(t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
|
|
674
604
|
);
|
|
675
605
|
N.displayName = "SidebarRoot";
|
|
676
|
-
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(
|
|
677
607
|
"button",
|
|
678
608
|
{
|
|
679
609
|
type: "button",
|
|
@@ -681,10 +611,10 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
681
611
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
682
612
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
683
613
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
684
|
-
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" })
|
|
685
615
|
}
|
|
686
|
-
) }),
|
|
687
|
-
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 = () => {
|
|
688
618
|
switch (e) {
|
|
689
619
|
case "auto":
|
|
690
620
|
return "flex-grow";
|
|
@@ -696,30 +626,30 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
696
626
|
return "h-8 w-8";
|
|
697
627
|
}
|
|
698
628
|
};
|
|
699
|
-
return /* @__PURE__ */
|
|
700
|
-
},
|
|
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, {
|
|
701
631
|
Root: N,
|
|
702
|
-
CollapseButton:
|
|
703
|
-
Header:
|
|
704
|
-
Divider:
|
|
705
|
-
Content:
|
|
706
|
-
Spacer:
|
|
707
|
-
Footer:
|
|
708
|
-
}),
|
|
632
|
+
CollapseButton: J,
|
|
633
|
+
Header: K,
|
|
634
|
+
Divider: Q,
|
|
635
|
+
Content: Y,
|
|
636
|
+
Spacer: ee,
|
|
637
|
+
Footer: te
|
|
638
|
+
}), pe = ({
|
|
709
639
|
children: t,
|
|
710
640
|
icon: e,
|
|
711
|
-
label:
|
|
712
|
-
href:
|
|
713
|
-
onClick:
|
|
641
|
+
label: r,
|
|
642
|
+
href: n,
|
|
643
|
+
onClick: o,
|
|
714
644
|
isActive: i = !1,
|
|
715
645
|
className: l
|
|
716
646
|
}) => {
|
|
717
|
-
const c =
|
|
718
|
-
return /* @__PURE__ */
|
|
647
|
+
const c = n ? "a" : "button";
|
|
648
|
+
return /* @__PURE__ */ a.jsxs(
|
|
719
649
|
c,
|
|
720
650
|
{
|
|
721
|
-
href:
|
|
722
|
-
onClick:
|
|
651
|
+
href: n,
|
|
652
|
+
onClick: o,
|
|
723
653
|
className: u(
|
|
724
654
|
"nav-link-item",
|
|
725
655
|
"flex items-center w-full px-3 py-2 text-left",
|
|
@@ -729,18 +659,18 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
729
659
|
l
|
|
730
660
|
),
|
|
731
661
|
children: [
|
|
732
|
-
e && /* @__PURE__ */
|
|
733
|
-
|
|
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 }),
|
|
734
664
|
t
|
|
735
665
|
]
|
|
736
666
|
}
|
|
737
667
|
);
|
|
738
|
-
},
|
|
668
|
+
}, L = ({
|
|
739
669
|
count: t,
|
|
740
670
|
maxCount: e = 9,
|
|
741
|
-
className:
|
|
742
|
-
size:
|
|
743
|
-
variant:
|
|
671
|
+
className: r = "",
|
|
672
|
+
size: n = "medium",
|
|
673
|
+
variant: o = "primary",
|
|
744
674
|
showZero: i = !1
|
|
745
675
|
}) => {
|
|
746
676
|
const l = t, c = l > e ? `+${e}` : l;
|
|
@@ -756,30 +686,30 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
756
686
|
warning: "bg-yellow-500 text-black",
|
|
757
687
|
danger: "bg-red-500 text-white"
|
|
758
688
|
};
|
|
759
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ a.jsx("div", { className: u(
|
|
760
690
|
"rounded-full flex items-center justify-center font-medium ",
|
|
761
|
-
d[
|
|
762
|
-
s[
|
|
763
|
-
|
|
764
|
-
), children: /* @__PURE__ */
|
|
765
|
-
},
|
|
691
|
+
d[n],
|
|
692
|
+
s[o],
|
|
693
|
+
r
|
|
694
|
+
), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
|
|
695
|
+
}, xe = ({
|
|
766
696
|
linkActions: t,
|
|
767
697
|
onClick: e,
|
|
768
|
-
activeAction:
|
|
769
|
-
}) => /* @__PURE__ */
|
|
770
|
-
const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } =
|
|
771
|
-
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(
|
|
772
702
|
b.div,
|
|
773
703
|
{
|
|
774
704
|
initial: { opacity: 0 },
|
|
775
705
|
animate: { opacity: 1 },
|
|
776
706
|
transition: {
|
|
777
707
|
duration: 0.4,
|
|
778
|
-
delay:
|
|
708
|
+
delay: o * 0.03,
|
|
779
709
|
ease: "easeOut"
|
|
780
710
|
},
|
|
781
711
|
className: "relative flex justify-center w-full items-center px-3",
|
|
782
|
-
children: /* @__PURE__ */
|
|
712
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
783
713
|
"button",
|
|
784
714
|
{
|
|
785
715
|
onClick: () => {
|
|
@@ -792,7 +722,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
792
722
|
p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
793
723
|
),
|
|
794
724
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
|
|
796
726
|
b.div,
|
|
797
727
|
{
|
|
798
728
|
layoutId: "nav-active-bg",
|
|
@@ -807,7 +737,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
807
737
|
}
|
|
808
738
|
}
|
|
809
739
|
) }),
|
|
810
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ a.jsxs(
|
|
811
741
|
b.div,
|
|
812
742
|
{
|
|
813
743
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -819,8 +749,8 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
819
749
|
ease: "easeOut"
|
|
820
750
|
},
|
|
821
751
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
753
|
+
/* @__PURE__ */ a.jsx(
|
|
824
754
|
b.div,
|
|
825
755
|
{
|
|
826
756
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
@@ -840,9 +770,9 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
840
770
|
}) : null
|
|
841
771
|
}
|
|
842
772
|
),
|
|
843
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
|
|
844
774
|
] }),
|
|
845
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ a.jsx(L, { count: s, maxCount: 9, className: "" }) : "" })
|
|
846
776
|
]
|
|
847
777
|
}
|
|
848
778
|
)
|
|
@@ -850,41 +780,41 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
850
780
|
}
|
|
851
781
|
)
|
|
852
782
|
},
|
|
853
|
-
|
|
783
|
+
o
|
|
854
784
|
);
|
|
855
|
-
}) }),
|
|
785
|
+
}) }), be = ({
|
|
856
786
|
links: t,
|
|
857
787
|
isLinkActive: e,
|
|
858
|
-
onLinkClick:
|
|
859
|
-
}) => /* @__PURE__ */
|
|
860
|
-
const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: m } =
|
|
861
|
-
(
|
|
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)
|
|
862
792
|
) ?? !1);
|
|
863
|
-
return p && /* @__PURE__ */
|
|
793
|
+
return p && /* @__PURE__ */ a.jsx(
|
|
864
794
|
b.div,
|
|
865
795
|
{
|
|
866
796
|
initial: { opacity: 0 },
|
|
867
797
|
animate: { opacity: 1 },
|
|
868
798
|
transition: {
|
|
869
799
|
duration: 0.4,
|
|
870
|
-
delay:
|
|
800
|
+
delay: o * 0.03,
|
|
871
801
|
ease: "easeOut"
|
|
872
802
|
},
|
|
873
803
|
className: "relative flex justify-center w-full items-center px-3",
|
|
874
|
-
children: /* @__PURE__ */
|
|
804
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
875
805
|
"button",
|
|
876
806
|
{
|
|
877
807
|
onClick: () => {
|
|
878
|
-
|
|
808
|
+
r?.(c);
|
|
879
809
|
},
|
|
880
810
|
className: u(
|
|
881
811
|
"nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
|
|
882
812
|
"transition-all duration-300 ease-out w-full",
|
|
883
813
|
"group hover:bg-neutral-medium-selected",
|
|
884
|
-
|
|
814
|
+
y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
|
|
885
815
|
),
|
|
886
816
|
children: [
|
|
887
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ a.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ a.jsx(
|
|
888
818
|
b.div,
|
|
889
819
|
{
|
|
890
820
|
layoutId: "nav-active-bg",
|
|
@@ -899,7 +829,7 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
899
829
|
}
|
|
900
830
|
}
|
|
901
831
|
) }),
|
|
902
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ a.jsxs(
|
|
903
833
|
b.div,
|
|
904
834
|
{
|
|
905
835
|
className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
|
|
@@ -911,13 +841,13 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
911
841
|
ease: "easeOut"
|
|
912
842
|
},
|
|
913
843
|
children: [
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
845
|
+
/* @__PURE__ */ a.jsx(
|
|
916
846
|
b.div,
|
|
917
847
|
{
|
|
918
848
|
className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
|
|
919
849
|
animate: {
|
|
920
|
-
scale:
|
|
850
|
+
scale: y ? 1.05 : 1
|
|
921
851
|
},
|
|
922
852
|
transition: {
|
|
923
853
|
duration: 0.25,
|
|
@@ -927,14 +857,14 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
927
857
|
size: 24,
|
|
928
858
|
className: u(
|
|
929
859
|
"nav-icon transition-colors duration-250 ease-out",
|
|
930
|
-
|
|
860
|
+
y ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
|
|
931
861
|
)
|
|
932
862
|
}) : null
|
|
933
863
|
}
|
|
934
864
|
),
|
|
935
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
|
|
936
866
|
] }),
|
|
937
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
|
|
938
868
|
]
|
|
939
869
|
}
|
|
940
870
|
)
|
|
@@ -942,32 +872,32 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
942
872
|
}
|
|
943
873
|
)
|
|
944
874
|
},
|
|
945
|
-
|
|
875
|
+
o
|
|
946
876
|
);
|
|
947
|
-
}) }),
|
|
877
|
+
}) }), ye = ({
|
|
948
878
|
isActiveModalNotification: t,
|
|
949
879
|
setIsActiveModalNotification: e
|
|
950
880
|
}) => ({ handleNotificationClick: () => {
|
|
951
881
|
e(!0);
|
|
952
|
-
}, isActiveModalNotification: t }),
|
|
953
|
-
const e =
|
|
882
|
+
}, isActiveModalNotification: t }), ge = (t) => {
|
|
883
|
+
const e = g(null);
|
|
954
884
|
return {
|
|
955
885
|
isCollapsed: t,
|
|
956
886
|
navbarRef: e
|
|
957
887
|
};
|
|
958
|
-
},
|
|
888
|
+
}, ve = ({
|
|
959
889
|
isCollapsed: t,
|
|
960
890
|
onToggle: e
|
|
961
|
-
}) => /* @__PURE__ */
|
|
891
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
|
|
962
892
|
"button",
|
|
963
893
|
{
|
|
964
894
|
onClick: e,
|
|
965
895
|
title: t ? "Expandir Navbar" : "Contraer Navbar",
|
|
966
896
|
"aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
|
|
967
897
|
className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
|
|
968
|
-
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" })
|
|
969
899
|
}
|
|
970
|
-
) }),
|
|
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(
|
|
971
901
|
"img",
|
|
972
902
|
{
|
|
973
903
|
src: t,
|
|
@@ -975,115 +905,117 @@ const se = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
|
|
|
975
905
|
alt: e ?? ""
|
|
976
906
|
}
|
|
977
907
|
) });
|
|
978
|
-
function
|
|
908
|
+
function we({
|
|
979
909
|
onFilesAccepted: t,
|
|
980
910
|
onFilesRejected: e,
|
|
981
|
-
...
|
|
911
|
+
...r
|
|
982
912
|
}) {
|
|
983
|
-
const
|
|
913
|
+
const n = A.useCallback(
|
|
984
914
|
(i, l) => {
|
|
985
915
|
i.length > 0 && t?.(i), l.length > 0 && e?.(l);
|
|
986
916
|
},
|
|
987
917
|
[t, e]
|
|
988
|
-
),
|
|
989
|
-
onDrop:
|
|
990
|
-
...
|
|
918
|
+
), o = E({
|
|
919
|
+
onDrop: n,
|
|
920
|
+
...r
|
|
991
921
|
});
|
|
992
922
|
return {
|
|
993
|
-
...
|
|
994
|
-
hasErrors:
|
|
923
|
+
...o,
|
|
924
|
+
hasErrors: o.fileRejections.length > 0
|
|
995
925
|
};
|
|
996
926
|
}
|
|
997
|
-
const
|
|
998
|
-
const
|
|
999
|
-
return
|
|
927
|
+
const je = (t, e = !0) => {
|
|
928
|
+
const r = g(null);
|
|
929
|
+
return h(() => {
|
|
1000
930
|
if (!e) return;
|
|
1001
|
-
const
|
|
1002
|
-
|
|
931
|
+
const n = (o) => {
|
|
932
|
+
r.current && !r.current.contains(o.target) && t();
|
|
1003
933
|
};
|
|
1004
|
-
return document.addEventListener("mousedown",
|
|
934
|
+
return document.addEventListener("mousedown", n, {
|
|
1005
935
|
capture: !0
|
|
1006
|
-
}), document.addEventListener("touchstart",
|
|
936
|
+
}), document.addEventListener("touchstart", n, {
|
|
1007
937
|
capture: !0
|
|
1008
938
|
}), () => {
|
|
1009
|
-
document.removeEventListener("mousedown",
|
|
939
|
+
document.removeEventListener("mousedown", n, {
|
|
1010
940
|
capture: !0
|
|
1011
|
-
}), document.removeEventListener("touchstart",
|
|
941
|
+
}), document.removeEventListener("touchstart", n, {
|
|
1012
942
|
capture: !0
|
|
1013
943
|
});
|
|
1014
944
|
};
|
|
1015
|
-
}, [t, e]),
|
|
945
|
+
}, [t, e]), r;
|
|
1016
946
|
};
|
|
1017
947
|
export {
|
|
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
|
-
|
|
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
|
-
Kt as
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
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,
|
|
1088
1020
|
k as useSidebarContext
|
|
1089
1021
|
};
|