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.
Files changed (36) hide show
  1. package/dist/CheckBox.es.js +27 -24
  2. package/dist/DatePicker.es.js +276 -272
  3. package/dist/FAButton.d.ts +4 -0
  4. package/dist/FAButton.es.js +60 -0
  5. package/dist/HelperComponent-8ErmQ_n9.js +24 -0
  6. package/dist/Input-r2N9xkjM.js +280 -0
  7. package/dist/Input.es.js +1 -1
  8. package/dist/InputFormikV2.d.ts +6 -0
  9. package/dist/InputFormikV2.es.js +29 -0
  10. package/dist/RadioButton.d.ts +2 -0
  11. package/dist/RadioButton.es.js +77 -0
  12. package/dist/RadioButtonFormik.d.ts +2 -0
  13. package/dist/RadioButtonFormik.es.js +30 -0
  14. package/dist/{Select-B5hkJ8Oy.js → Select-IAQKEfnq.js} +9 -8
  15. package/dist/Select.es.js +1 -1
  16. package/dist/SelectFormik.es.js +1 -1
  17. package/dist/SelectSearch.es.js +1 -1
  18. package/dist/components/DatePicker/DatePicker.d.ts +34 -0
  19. package/dist/components/RadioButton/RadioButton.d.ts +12 -0
  20. package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +8 -0
  21. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +6 -0
  22. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +2 -0
  23. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +7 -0
  24. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +11 -0
  25. package/dist/exports/RadioButton.d.ts +1 -0
  26. package/dist/exports/RadioButtonFormik.d.ts +1 -0
  27. package/dist/index.d.ts +4 -0
  28. package/dist/pages/RecurrentDatePicker.page.d.ts +2 -0
  29. package/dist/preview/RadioButtonPreview.d.ts +2 -0
  30. package/dist/preview/RecurrentDatePickerPreview.d.ts +2 -0
  31. package/dist/prometeo-design-system.css +1 -1
  32. package/dist/prometeo-design-system.es.js +286 -355
  33. package/package.json +9 -1
  34. package/src/styles/intellisense.css +1 -0
  35. package/dist/Input-DHdy-pWf.js +0 -295
  36. package/dist/components/Select copy/Select.d.ts +0 -71
@@ -1,135 +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
- 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 a = t.current, o = document.querySelector('[data-main-content="true"]');
58
+ const r = t.current, n = document.querySelector('[data-main-content="true"]');
130
59
  if (e) {
131
60
  x.fromTo(
132
- a,
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
- ), o && x.to(o, {
144
- marginLeft: a.offsetWidth + "px",
72
+ ), n && x.to(n, {
73
+ marginLeft: r.offsetWidth + "px",
145
74
  duration: 0.4,
146
75
  ease: "power2.out"
147
76
  });
148
- const n = a.querySelectorAll(".secondary-bar-content > *");
149
- n.length > 0 && x.fromTo(
150
- n,
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(a, {
94
+ x.to(r, {
166
95
  width: "0rem",
167
96
  opacity: 0,
168
97
  duration: 0.3,
169
98
  ease: "power2.in"
170
- }), o && x.to(o, {
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: a = "",
182
- width: o = "w-96",
183
- action: n,
110
+ className: r = "",
111
+ width: n = "w-96",
112
+ action: o,
184
113
  primarySidebarCollapsed: i,
185
114
  onClose: l
186
115
  }) => {
187
- const c = h(null), [d, s] = y({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
188
- return D(() => {
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]), Z(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
197
- /* @__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(
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__ */ r.jsx(
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
- o,
215
- a
143
+ n,
144
+ r
216
145
  ),
217
146
  style: {
218
147
  left: d.left
219
148
  },
220
- "data-action": n,
221
- 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 })
222
151
  }
223
152
  )
224
153
  ] }) });
225
- }, 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, {
226
155
  Root: S,
227
- Header: J,
228
- Content: K,
229
- Footer: Q,
230
- Spacer: Y
231
- }), L = E(
156
+ Header: F,
157
+ Content: H,
158
+ Footer: W,
159
+ Spacer: $
160
+ }), R = q(
232
161
  void 0
233
- ), Ie = () => {
234
- const t = F(L);
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
- }, ee = ({
167
+ }, M = ({
239
168
  children: t
240
169
  }) => {
241
- const [e, a] = y(!1), [o, n] = y(!1), i = h(null), l = () => {
242
- a(!1), n(!1);
170
+ const [e, r] = v(!1), [n, o] = v(!1), i = g(null), l = () => {
171
+ r(!1), o(!1);
243
172
  }, c = () => {
244
- a(!0), n(!1);
173
+ r(!0), o(!1);
245
174
  }, p = {
246
175
  isCollapsed: e,
247
- setIsCollapsed: a,
176
+ setIsCollapsed: r,
248
177
  navbarRef: i,
249
178
  toggleCollapse: () => {
250
179
  e ? l() : c();
251
180
  },
252
- activeSecondaryBar: o ? "notifications" : null,
181
+ activeSecondaryBar: n ? "notifications" : null,
253
182
  openSecondaryBar: () => {
254
- n(!0);
183
+ o(!0);
255
184
  },
256
185
  closeSecondaryBar: () => {
257
- n(!1);
186
+ o(!1);
258
187
  },
259
188
  toggleSecondaryBar: () => {
260
- n((v) => !v);
189
+ o((y) => !y);
261
190
  }
262
191
  };
263
- return /* @__PURE__ */ r.jsx(L.Provider, { value: p, children: t });
264
- }, j = (t, e, a, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, o) : t, te = (t, e, a) => {
265
- 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(
266
195
  () => {
267
196
  if (!t.current) return;
268
- const o = x.timeline({
197
+ const n = x.timeline({
269
198
  defaults: { duration: 0.7, ease: "power1.out" }
270
- }), n = {
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 ? re(o, n) : ae(o, n), n.secondaryBar && oe(n.secondaryBar);
235
+ e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
307
236
  },
308
- { scope: t, dependencies: [e, a] }
237
+ { scope: t, dependencies: [e, r] }
309
238
  );
310
- }, re = (t, e) => {
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
- }, ae = (t, e) => {
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
- }, oe = (t, e) => {
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
- }, ne = C((t, e) => {
585
- const [a, o] = y(t?.currentTabName || t.tabs[0].name), n = h(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
586
- w(() => {
587
- 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);
588
517
  }, [c]);
589
- const d = i.find((s) => s.name === (t?.currentTabName || a));
590
- return /* @__PURE__ */ r.jsx(
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__ */ r.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, p = () => {
604
- 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));
605
534
  };
606
- return /* @__PURE__ */ r.jsx(
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: n,
619
- children: /* @__PURE__ */ r.jsx("div", { className: u(
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
- }), ie = C(
634
- ({ children: t, isCollapsed: e = !1, className: a = "", tabs: o = [], currentTabName: n }, i) => {
635
- 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();
636
565
  console.log(c.current, "Tabinternal ref");
637
- const f = O((m) => {
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 w(() => {
569
+ return h(() => {
641
570
  l.current && d(l);
642
- }, [d]), w(() => {
571
+ }, [d]), h(() => {
643
572
  c.current && s(c);
644
- }, [s]), te(l, e, !1), /* @__PURE__ */ r.jsxs(
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
- o.length > 0 && /* @__PURE__ */ r.jsx(
652
- ne,
580
+ n.length > 0 && /* @__PURE__ */ a.jsx(
581
+ X,
653
582
  {
654
- tabs: o,
583
+ tabs: n,
655
584
  ref: c,
656
585
  activeColor: "var(--neutral-900)",
657
- currentTabName: n
586
+ currentTabName: o
658
587
  }
659
588
  ),
660
- /* @__PURE__ */ r.jsx(
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"} ${a}`,
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__ */ 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 }) })
675
604
  );
676
605
  N.displayName = "SidebarRoot";
677
- 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(
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__ */ 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" })
686
615
  }
687
- ) }), 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" }) => {
688
- 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 = () => {
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__ */ r.jsx("div", { className: u(a(), t) });
701
- }, 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, {
702
631
  Root: N,
703
- CollapseButton: se,
704
- Header: le,
705
- Divider: ce,
706
- Content: ue,
707
- Spacer: de,
708
- Footer: fe
709
- }), Re = ({
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: a,
713
- href: o,
714
- onClick: n,
641
+ label: r,
642
+ href: n,
643
+ onClick: o,
715
644
  isActive: i = !1,
716
645
  className: l
717
646
  }) => {
718
- const c = o ? "a" : "button";
719
- return /* @__PURE__ */ r.jsxs(
647
+ const c = n ? "a" : "button";
648
+ return /* @__PURE__ */ a.jsxs(
720
649
  c,
721
650
  {
722
- href: o,
723
- onClick: n,
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__ */ 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 }) }),
734
- 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 }),
735
664
  t
736
665
  ]
737
666
  }
738
667
  );
739
- }, A = ({
668
+ }, L = ({
740
669
  count: t,
741
670
  maxCount: e = 9,
742
- className: a = "",
743
- size: o = "medium",
744
- variant: n = "primary",
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__ */ r.jsx("div", { className: u(
689
+ return /* @__PURE__ */ a.jsx("div", { className: u(
761
690
  "rounded-full flex items-center justify-center font-medium ",
762
- d[o],
763
- s[n],
764
- a
765
- ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
766
- }, Te = ({
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: a
770
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
771
- 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;
772
- 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(
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: n * 0.03,
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__ */ r.jsxs(
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__ */ r.jsx(T, { mode: "wait", children: p && /* @__PURE__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
824
- /* @__PURE__ */ r.jsx(
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__ */ 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 })
845
774
  ] }),
846
- /* @__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: "" }) : "" })
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
- n
783
+ o
855
784
  );
856
- }) }), Le = ({
785
+ }) }), be = ({
857
786
  links: t,
858
787
  isLinkActive: e,
859
- onLinkClick: a
860
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
861
- 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(
862
- (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)
863
792
  ) ?? !1);
864
- return p && /* @__PURE__ */ r.jsx(
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: n * 0.03,
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__ */ r.jsxs(
804
+ children: /* @__PURE__ */ a.jsxs(
876
805
  "button",
877
806
  {
878
807
  onClick: () => {
879
- a?.(c);
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
- 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"
886
815
  ),
887
816
  children: [
888
- /* @__PURE__ */ r.jsx(T, { mode: "wait", children: v && /* @__PURE__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
916
- /* @__PURE__ */ r.jsx(
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: v ? 1.05 : 1
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
- 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"
932
861
  )
933
862
  }) : null
934
863
  }
935
864
  ),
936
- /* @__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 })
937
866
  ] }),
938
- /* @__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: "" }) : "" })
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
- n
875
+ o
947
876
  );
948
- }) }), Ae = ({
877
+ }) }), ye = ({
949
878
  isActiveModalNotification: t,
950
879
  setIsActiveModalNotification: e
951
880
  }) => ({ handleNotificationClick: () => {
952
881
  e(!0);
953
- }, isActiveModalNotification: t }), qe = (t) => {
954
- const e = h(null);
882
+ }, isActiveModalNotification: t }), ge = (t) => {
883
+ const e = g(null);
955
884
  return {
956
885
  isCollapsed: t,
957
886
  navbarRef: e
958
887
  };
959
- }, ze = ({
888
+ }, ve = ({
960
889
  isCollapsed: t,
961
890
  onToggle: e
962
- }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
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__ */ 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" })
970
899
  }
971
- ) }), 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(
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 Ee({
908
+ function we({
980
909
  onFilesAccepted: t,
981
910
  onFilesRejected: e,
982
- ...a
911
+ ...r
983
912
  }) {
984
- const o = I.useCallback(
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
- ), n = W({
990
- onDrop: o,
991
- ...a
918
+ ), o = E({
919
+ onDrop: n,
920
+ ...r
992
921
  });
993
922
  return {
994
- ...n,
995
- hasErrors: n.fileRejections.length > 0
923
+ ...o,
924
+ hasErrors: o.fileRejections.length > 0
996
925
  };
997
926
  }
998
- const Fe = (t, e = !0) => {
999
- const a = h(null);
1000
- return w(() => {
927
+ const je = (t, e = !0) => {
928
+ const r = g(null);
929
+ return h(() => {
1001
930
  if (!e) return;
1002
- const o = (n) => {
1003
- a.current && !a.current.contains(n.target) && t();
931
+ const n = (o) => {
932
+ r.current && !r.current.contains(o.target) && t();
1004
933
  };
1005
- return document.addEventListener("mousedown", o, {
934
+ return document.addEventListener("mousedown", n, {
1006
935
  capture: !0
1007
- }), document.addEventListener("touchstart", o, {
936
+ }), document.addEventListener("touchstart", n, {
1008
937
  capture: !0
1009
938
  }), () => {
1010
- document.removeEventListener("mousedown", o, {
939
+ document.removeEventListener("mousedown", n, {
1011
940
  capture: !0
1012
- }), document.removeEventListener("touchstart", o, {
941
+ }), document.removeEventListener("touchstart", n, {
1013
942
  capture: !0
1014
943
  });
1015
944
  };
1016
- }, [t, e]), a;
945
+ }, [t, e]), r;
1017
946
  };
1018
947
  export {
1019
- He as Avatar,
1020
- A as Badge,
1021
- Me as Button,
1022
- Ve as CardProfile,
1023
- Ue as ChangueAccount,
1024
- Ge as CheckBox,
1025
- Ze as CheckboxFormik,
1026
- De as CompanyLogo,
1027
- Et as DatePicker,
1028
- Ke as DialogModal,
1029
- et as DrawerDesktop,
1030
- at as DrawerMobile,
1031
- wr as DropZone,
1032
- _ as FAButton,
1033
- it as Header,
1034
- g as Icons,
1035
- lr as Image,
1036
- ir as ImageGallery,
1037
- z as Input,
1038
- lt as InputFormik,
1039
- Se as InputFormikV2,
1040
- ut as InputMultiple,
1041
- ar as LayoutGeneric,
1042
- ft as Logo,
1043
- pt as Menu,
1044
- Te as NavBarActions,
1045
- ze as NavbarCollapseButton,
1046
- Le as NavbarLinks,
1047
- Re as NavigationLink,
1048
- vr as OtpInput,
1049
- bt as Pagination,
1050
- ht as ProfilePictureUpload,
1051
- yt as ProgressBar,
1052
- ke as SecondaryBar,
1053
- tr as SegmentedButton,
1054
- jt as Select,
1055
- kt as SelectFormik,
1056
- Ct as SelectFormikLegacy,
1057
- xr as SelectSearch,
1058
- Be as Sidebar,
1059
- ee as SidebarProvider,
1060
- or as SidebarRefProvider,
1061
- Yt as Skeleton,
1062
- Bt as Spinner,
1063
- Tt as Steps,
1064
- At as SwipeContainer,
1065
- zt as Switch,
1066
- Gt as TabLinks,
1067
- Ot as Table,
1068
- Pt as TableBody,
1069
- Ht as TableCaption,
1070
- Wt as TableCell,
1071
- Mt as TableFooter,
1072
- $t as TableHead,
1073
- Vt as TableHeader,
1074
- Ut as TableRow,
1075
- Zt as TextArea,
1076
- ur as Toast,
1077
- mr as ToastProvider,
1078
- Kt as Tooltip,
1079
- dr as toastpyrion,
1080
- Ae as useActionsNavbar,
1081
- Fe as useClickOutside,
1082
- Qe as useDialogControl,
1083
- tt as useDrawerDesktop,
1084
- ot as useDrawerMobile,
1085
- Ee as useFileDropzone,
1086
- gr as useIsMobile,
1087
- qe as useNavbarCollapse,
1088
- 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,
1089
1020
  k as useSidebarContext
1090
1021
  };