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.
Files changed (41) hide show
  1. package/dist/CheckBox.es.js +27 -24
  2. package/dist/DatePicker.es.js +276 -272
  3. package/dist/DrawerMobile.es.js +87 -87
  4. package/dist/FAButton.d.ts +4 -0
  5. package/dist/FAButton.es.js +60 -0
  6. package/dist/HelperComponent-8ErmQ_n9.js +24 -0
  7. package/dist/Input-r2N9xkjM.js +280 -0
  8. package/dist/Input.es.js +1 -1
  9. package/dist/InputFormik.es.js +136 -93
  10. package/dist/InputFormikV2.d.ts +6 -0
  11. package/dist/InputFormikV2.es.js +29 -0
  12. package/dist/RadioButton.d.ts +2 -0
  13. package/dist/RadioButton.es.js +77 -0
  14. package/dist/RadioButtonFormik.d.ts +2 -0
  15. package/dist/RadioButtonFormik.es.js +30 -0
  16. package/dist/{Select-B5hkJ8Oy.js → Select-IAQKEfnq.js} +9 -8
  17. package/dist/Select.es.js +1 -1
  18. package/dist/SelectFormik.es.js +1 -1
  19. package/dist/SelectSearch.es.js +1 -1
  20. package/dist/components/DatePicker/DatePicker.d.ts +34 -0
  21. package/dist/components/Drawer/DrawerMobile.d.ts +1 -1
  22. package/dist/components/InputFormik/InputFormik.d.ts +2 -1
  23. package/dist/components/InputFormik/InputFormikV2.d.ts +1 -0
  24. package/dist/components/RadioButton/RadioButton.d.ts +12 -0
  25. package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +8 -0
  26. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +6 -0
  27. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +2 -0
  28. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +7 -0
  29. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +11 -0
  30. package/dist/exports/RadioButton.d.ts +1 -0
  31. package/dist/exports/RadioButtonFormik.d.ts +1 -0
  32. package/dist/index.d.ts +4 -0
  33. package/dist/pages/RecurrentDatePicker.page.d.ts +2 -0
  34. package/dist/preview/RadioButtonPreview.d.ts +2 -0
  35. package/dist/preview/RecurrentDatePickerPreview.d.ts +2 -0
  36. package/dist/prometeo-design-system.css +1 -1
  37. package/dist/prometeo-design-system.es.js +286 -354
  38. package/package.json +9 -1
  39. package/src/styles/intellisense.css +1 -0
  40. package/dist/Input-DHdy-pWf.js +0 -295
  41. package/dist/components/Select copy/Select.d.ts +0 -71
@@ -1,134 +1,64 @@
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";
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 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";
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 { Icons as g } from "./Icons.es.js";
43
- import { createPortal as P } from "react-dom";
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 { 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 = {
53
- right: 24,
54
- bottom: 64,
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 a = t.current, o = document.querySelector('[data-main-content="true"]');
58
+ const r = t.current, n = document.querySelector('[data-main-content="true"]');
129
59
  if (e) {
130
60
  x.fromTo(
131
- a,
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
- ), o && x.to(o, {
143
- marginLeft: a.offsetWidth + "px",
72
+ ), n && x.to(n, {
73
+ marginLeft: r.offsetWidth + "px",
144
74
  duration: 0.4,
145
75
  ease: "power2.out"
146
76
  });
147
- const n = a.querySelectorAll(".secondary-bar-content > *");
148
- n.length > 0 && x.fromTo(
149
- n,
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(a, {
94
+ x.to(r, {
165
95
  width: "0rem",
166
96
  opacity: 0,
167
97
  duration: 0.3,
168
98
  ease: "power2.in"
169
- }), o && x.to(o, {
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: a = "",
181
- width: o = "w-96",
182
- action: n,
110
+ className: r = "",
111
+ width: n = "w-96",
112
+ action: o,
183
113
  primarySidebarCollapsed: i,
184
114
  onClose: l
185
115
  }) => {
186
- const c = h(null), [d, s] = y({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
187
- return D(() => {
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]), Z(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
196
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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
- o,
214
- a
143
+ n,
144
+ r
215
145
  ),
216
146
  style: {
217
147
  left: d.left
218
148
  },
219
- "data-action": n,
220
- children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
149
+ "data-action": o,
150
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
221
151
  }
222
152
  )
223
153
  ] }) });
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, {
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: J,
227
- Content: K,
228
- Footer: Q,
229
- Spacer: Y
230
- }), L = E(
156
+ Header: F,
157
+ Content: H,
158
+ Footer: W,
159
+ Spacer: $
160
+ }), R = q(
231
161
  void 0
232
- ), Ie = () => {
233
- const t = F(L);
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
- }, ee = ({
167
+ }, M = ({
238
168
  children: t
239
169
  }) => {
240
- const [e, a] = y(!1), [o, n] = y(!1), i = h(null), l = () => {
241
- a(!1), n(!1);
170
+ const [e, r] = v(!1), [n, o] = v(!1), i = g(null), l = () => {
171
+ r(!1), o(!1);
242
172
  }, c = () => {
243
- a(!0), n(!1);
173
+ r(!0), o(!1);
244
174
  }, p = {
245
175
  isCollapsed: e,
246
- setIsCollapsed: a,
176
+ setIsCollapsed: r,
247
177
  navbarRef: i,
248
178
  toggleCollapse: () => {
249
179
  e ? l() : c();
250
180
  },
251
- activeSecondaryBar: o ? "notifications" : null,
181
+ activeSecondaryBar: n ? "notifications" : null,
252
182
  openSecondaryBar: () => {
253
- n(!0);
183
+ o(!0);
254
184
  },
255
185
  closeSecondaryBar: () => {
256
- n(!1);
186
+ o(!1);
257
187
  },
258
188
  toggleSecondaryBar: () => {
259
- n((v) => !v);
189
+ o((y) => !y);
260
190
  }
261
191
  };
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(
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 o = x.timeline({
197
+ const n = x.timeline({
268
198
  defaults: { duration: 0.7, ease: "power1.out" }
269
- }), n = {
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 ? re(o, n) : ae(o, n), n.secondaryBar && oe(n.secondaryBar);
235
+ e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
306
236
  },
307
- { scope: t, dependencies: [e, a] }
237
+ { scope: t, dependencies: [e, r] }
308
238
  );
309
- }, re = (t, e) => {
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
- }, ae = (t, e) => {
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
- }, oe = (t, e) => {
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
- }, 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;
585
- w(() => {
586
- n.current?.style.setProperty("--tab-bg", c);
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 || a));
589
- return /* @__PURE__ */ r.jsx(
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__ */ 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));
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__ */ r.jsx(
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: n,
618
- children: /* @__PURE__ */ r.jsx("div", { className: u(
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
- }), 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();
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 = O((m) => {
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 w(() => {
569
+ return h(() => {
640
570
  l.current && d(l);
641
- }, [d]), w(() => {
571
+ }, [d]), h(() => {
642
572
  c.current && s(c);
643
- }, [s]), te(l, e, !1), /* @__PURE__ */ r.jsxs(
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
- o.length > 0 && /* @__PURE__ */ r.jsx(
651
- ne,
580
+ n.length > 0 && /* @__PURE__ */ a.jsx(
581
+ X,
652
582
  {
653
- tabs: o,
583
+ tabs: n,
654
584
  ref: c,
655
585
  activeColor: "var(--neutral-900)",
656
- currentTabName: n
586
+ currentTabName: o
657
587
  }
658
588
  ),
659
- /* @__PURE__ */ r.jsx(
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"} ${a}`,
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__ */ r.jsx(ee, { children: /* @__PURE__ */ r.jsx(ie, { ...t, ref: e }) })
603
+ (t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
674
604
  );
675
605
  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(
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__ */ 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" })
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
- ) }), 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" }) => {
687
- const a = () => {
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__ */ 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, {
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: se,
703
- Header: le,
704
- Divider: ce,
705
- Content: ue,
706
- Spacer: de,
707
- Footer: fe
708
- }), Re = ({
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: a,
712
- href: o,
713
- onClick: n,
641
+ label: r,
642
+ href: n,
643
+ onClick: o,
714
644
  isActive: i = !1,
715
645
  className: l
716
646
  }) => {
717
- const c = o ? "a" : "button";
718
- return /* @__PURE__ */ r.jsxs(
647
+ const c = n ? "a" : "button";
648
+ return /* @__PURE__ */ a.jsxs(
719
649
  c,
720
650
  {
721
- href: o,
722
- onClick: n,
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__ */ r.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ r.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
733
- a && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: a }),
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
- }, A = ({
668
+ }, L = ({
739
669
  count: t,
740
670
  maxCount: e = 9,
741
- className: a = "",
742
- size: o = "medium",
743
- variant: n = "primary",
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__ */ r.jsx("div", { className: u(
689
+ return /* @__PURE__ */ a.jsx("div", { className: u(
760
690
  "rounded-full flex items-center justify-center font-medium ",
761
- d[o],
762
- s[n],
763
- a
764
- ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
765
- }, Te = ({
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: a
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;
771
- return m && /* @__PURE__ */ r.jsx(
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: n * 0.03,
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__ */ r.jsxs(
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__ */ r.jsx(T, { mode: "wait", children: p && /* @__PURE__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
823
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
773
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
844
774
  ] }),
845
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ r.jsx(A, { count: s, maxCount: 9, className: "" }) : "" })
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
- n
783
+ o
854
784
  );
855
- }) }), Le = ({
785
+ }) }), be = ({
856
786
  links: t,
857
787
  isLinkActive: e,
858
- onLinkClick: a
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)
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__ */ r.jsx(
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: n * 0.03,
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__ */ r.jsxs(
804
+ children: /* @__PURE__ */ a.jsxs(
875
805
  "button",
876
806
  {
877
807
  onClick: () => {
878
- a?.(c);
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
- v ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
814
+ y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
885
815
  ),
886
816
  children: [
887
- /* @__PURE__ */ r.jsx(T, { mode: "wait", children: v && /* @__PURE__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
915
- /* @__PURE__ */ r.jsx(
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: v ? 1.05 : 1
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
- v ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
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__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
865
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
936
866
  ] }),
937
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(A, { count: f, maxCount: 9, className: "" }) : "" })
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
- n
875
+ o
946
876
  );
947
- }) }), Ae = ({
877
+ }) }), ye = ({
948
878
  isActiveModalNotification: t,
949
879
  setIsActiveModalNotification: e
950
880
  }) => ({ handleNotificationClick: () => {
951
881
  e(!0);
952
- }, isActiveModalNotification: t }), qe = (t) => {
953
- const e = h(null);
882
+ }, isActiveModalNotification: t }), ge = (t) => {
883
+ const e = g(null);
954
884
  return {
955
885
  isCollapsed: t,
956
886
  navbarRef: e
957
887
  };
958
- }, ze = ({
888
+ }, ve = ({
959
889
  isCollapsed: t,
960
890
  onToggle: e
961
- }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
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__ */ 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" })
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
- ) }), 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(
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 Ee({
908
+ function we({
979
909
  onFilesAccepted: t,
980
910
  onFilesRejected: e,
981
- ...a
911
+ ...r
982
912
  }) {
983
- const o = I.useCallback(
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
- ), n = W({
989
- onDrop: o,
990
- ...a
918
+ ), o = E({
919
+ onDrop: n,
920
+ ...r
991
921
  });
992
922
  return {
993
- ...n,
994
- hasErrors: n.fileRejections.length > 0
923
+ ...o,
924
+ hasErrors: o.fileRejections.length > 0
995
925
  };
996
926
  }
997
- const Fe = (t, e = !0) => {
998
- const a = h(null);
999
- return w(() => {
927
+ const je = (t, e = !0) => {
928
+ const r = g(null);
929
+ return h(() => {
1000
930
  if (!e) return;
1001
- const o = (n) => {
1002
- a.current && !a.current.contains(n.target) && t();
931
+ const n = (o) => {
932
+ r.current && !r.current.contains(o.target) && t();
1003
933
  };
1004
- return document.addEventListener("mousedown", o, {
934
+ return document.addEventListener("mousedown", n, {
1005
935
  capture: !0
1006
- }), document.addEventListener("touchstart", o, {
936
+ }), document.addEventListener("touchstart", n, {
1007
937
  capture: !0
1008
938
  }), () => {
1009
- document.removeEventListener("mousedown", o, {
939
+ document.removeEventListener("mousedown", n, {
1010
940
  capture: !0
1011
- }), document.removeEventListener("touchstart", o, {
941
+ }), document.removeEventListener("touchstart", n, {
1012
942
  capture: !0
1013
943
  });
1014
944
  };
1015
- }, [t, e]), a;
945
+ }, [t, e]), r;
1016
946
  };
1017
947
  export {
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,
1033
- g as Icons,
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,
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
  };