prometeo-design-system 2.7.8 → 2.7.9

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 (42) hide show
  1. package/dist/Button.es.js +5 -5
  2. package/dist/{CardProfile-WHoeSibd.js → CardProfile-DV3gwvqE.js} +24 -24
  3. package/dist/CardProfile.es.js +1 -1
  4. package/dist/CheckBox.es.js +60 -60
  5. package/dist/CheckboxFormik.es.js +2 -2
  6. package/dist/DatePicker.es.js +68 -68
  7. package/dist/DrawerDesktop.es.js +4 -4
  8. package/dist/DropZone.es.js +32 -32
  9. package/dist/FAButton.es.js +2 -2
  10. package/dist/HelperComponent-U6mPwuDH.js +24 -0
  11. package/dist/Icons/Icons.d.ts +1 -61
  12. package/dist/Icons.es.js +8 -68
  13. package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-D8nIvBpV.js} +43 -43
  14. package/dist/ImageGallery.es.js +1 -1
  15. package/dist/{Input-D6as6xD-.js → Input-60IT1aGF.js} +61 -61
  16. package/dist/Input.es.js +1 -1
  17. package/dist/InputFormik.es.js +32 -32
  18. package/dist/InputFormikV2.es.js +1 -1
  19. package/dist/InputMultiple.es.js +51 -51
  20. package/dist/Logo.es.js +3 -3
  21. package/dist/Menu.es.js +2 -2
  22. package/dist/OtpInput.es.js +42 -42
  23. package/dist/Pagination.es.js +1 -1
  24. package/dist/RadioButton.es.js +1 -1
  25. package/dist/{Select-sdfP2TL0.js → Select-C4UvSsof.js} +164 -164
  26. package/dist/Select.es.js +1 -1
  27. package/dist/SelectFormik.es.js +1 -1
  28. package/dist/SelectFormikLegacy.es.js +25 -25
  29. package/dist/SelectSearch.es.js +1 -1
  30. package/dist/Steps.es.js +14 -14
  31. package/dist/TabLinks.es.js +2 -2
  32. package/dist/Table.es.js +2 -2
  33. package/dist/Toast.es.js +23 -23
  34. package/dist/Tooltip.es.js +7 -7
  35. package/dist/components/CheckBox/CheckBox.d.ts +5 -4
  36. package/dist/components/Toaster/Toaster.d.ts +3 -3
  37. package/dist/exports/Icons.d.ts +1 -1
  38. package/dist/prometeo-design-system.css +1 -1
  39. package/dist/prometeo-design-system.es.js +125 -126
  40. package/package.json +1 -1
  41. package/dist/HelperComponent-BeNlTMqI.js +0 -24
  42. package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
@@ -1,65 +1,64 @@
1
1
  import { default as Se } from "./Avatar.es.js";
2
2
  import { default as Ie } from "./Button.es.js";
3
- import { C as Re, a as Le } from "./CardProfile-WHoeSibd.js";
3
+ import { C as Re, a as Le } from "./CardProfile-DV3gwvqE.js";
4
4
  import { default as Ae } from "./CheckBox.es.js";
5
5
  import { default as qe } from "./CheckboxFormik.es.js";
6
- import { default as Ee, useDialogControl as De } from "./DialogModal.es.js";
6
+ import { default as De, useDialogControl as Ee } from "./DialogModal.es.js";
7
7
  import { default as Fe, useDrawerDesktop as He } from "./DrawerDesktop.es.js";
8
8
  import { default as $e, useDrawerMobile as Me } from "./DrawerMobile.es.js";
9
9
  import { default as Ve } from "./Header.es.js";
10
- import { I as _e } from "./Input-D6as6xD-.js";
10
+ import { I as _e } from "./Input-60IT1aGF.js";
11
11
  import { default as Ze } from "./InputFormik.es.js";
12
12
  import { InputMultiple as Ke } from "./InputMultiple.es.js";
13
13
  import { default as Ye } from "./Logo.es.js";
14
14
  import { Menu as tt } from "./Menu.es.js";
15
- import { default as at } from "./Pagination.es.js";
15
+ import { default as rt } from "./Pagination.es.js";
16
16
  import { ProfilePictureUpload as nt } from "./ProfilePictureUpload.es.js";
17
17
  import { default as st } from "./ProgressBar.es.js";
18
- import { S as ct } from "./Select-sdfP2TL0.js";
18
+ import { S as ct } from "./Select-C4UvSsof.js";
19
19
  import { default as dt } from "./SelectFormikLegacy.es.js";
20
20
  import { default as mt } from "./SelectFormik.es.js";
21
21
  import { default as xt } from "./Spinner.es.js";
22
22
  import { Steps as yt } from "./Steps.es.js";
23
- import { default as ht } from "./SwipeContainer.es.js";
23
+ import { default as gt } from "./SwipeContainer.es.js";
24
24
  import { Switch as wt } from "./Switch.es.js";
25
25
  import { default as Nt } from "./DatePicker.es.js";
26
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
27
  import { default as qt } from "./TabLinks.es.js";
28
- import { default as Et } from "./TextArea.es.js";
28
+ import { default as Dt } from "./TextArea.es.js";
29
29
  import { default as Ot } from "./Tooltip.es.js";
30
30
  import { Skeleton as Ht } from "./Skeleton.es.js";
31
31
  import { SegmentedButton as $t } from "./SegmentedButton.es.js";
32
32
  import { u as k } from "./LayoutGeneric-CbaoatQB.js";
33
33
  import { L as Ut, S as Vt } from "./LayoutGeneric-CbaoatQB.js";
34
- import { I as _t } from "./ImageGallery-WKzUevOQ.js";
34
+ import { I as _t } from "./ImageGallery-D8nIvBpV.js";
35
35
  import { default as Zt } from "./Image.es.js";
36
36
  import { default as Kt, toastpyrion as Qt } from "./Toast.es.js";
37
- import { default as er } from "./ToastProvider.es.js";
38
- import { default as rr } from "./SelectSearch.es.js";
39
- import { default as or } from "./FAButton.es.js";
40
- import { default as ir } from "./InputFormikV2.es.js";
41
- import { RadioButtonFormik as lr } from "./RadioButtonFormik.es.js";
42
- import { RadioButton as ur } from "./RadioButton.es.js";
43
- import { j as r } from "./jsx-runtime-DKDX3adD.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 ia } 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-DKDX3adD.js";
44
44
  import { c as u } from "./cn-B6yFEsav.js";
45
- import A, { useRef as g, useState as h, useLayoutEffect as P, createContext as q, useContext as z, forwardRef as C, useEffect as v, useCallback as E } from "react";
45
+ import A, { useRef as v, useState as g, useLayoutEffect as P, createContext as q, useContext as z, forwardRef as C, useEffect as h, useCallback as D } from "react";
46
46
  import { useGSAP as I } from "@gsap/react";
47
47
  import x from "gsap";
48
- import { CloseNavBarDesktop as w } from "./Icons.es.js";
49
- import { Icons as fr } from "./Icons.es.js";
48
+ import { Icons as w } from "./Icons.es.js";
50
49
  import { motion as b, AnimatePresence as B } from "framer-motion";
51
- import { default as pr } from "./OtpInput.es.js";
52
- import { useDropzone as D } from "react-dropzone";
53
- import { useIsMobile as br } from "./useDevice.es.js";
54
- import { DropZone as gr } from "./DropZone.es.js";
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";
55
54
  const O = (t, e) => {
56
55
  I(
57
56
  () => {
58
57
  if (!t.current) return;
59
- const a = t.current, n = document.querySelector('[data-main-content="true"]');
58
+ const r = t.current, n = document.querySelector('[data-main-content="true"]');
60
59
  if (e) {
61
60
  x.fromTo(
62
- a,
61
+ r,
63
62
  {
64
63
  width: "0rem",
65
64
  opacity: 0
@@ -71,11 +70,11 @@ const O = (t, e) => {
71
70
  ease: "power2.out"
72
71
  }
73
72
  ), n && x.to(n, {
74
- marginLeft: a.offsetWidth + "px",
73
+ marginLeft: r.offsetWidth + "px",
75
74
  duration: 0.4,
76
75
  ease: "power2.out"
77
76
  });
78
- const o = a.querySelectorAll(".secondary-bar-content > *");
77
+ const o = r.querySelectorAll(".secondary-bar-content > *");
79
78
  o.length > 0 && x.fromTo(
80
79
  o,
81
80
  {
@@ -92,7 +91,7 @@ const O = (t, e) => {
92
91
  }
93
92
  );
94
93
  } else
95
- x.to(a, {
94
+ x.to(r, {
96
95
  width: "0rem",
97
96
  opacity: 0,
98
97
  duration: 0.3,
@@ -108,13 +107,13 @@ const O = (t, e) => {
108
107
  }, S = ({
109
108
  children: t,
110
109
  isOpen: e = !1,
111
- className: a = "",
110
+ className: r = "",
112
111
  width: n = "w-96",
113
112
  action: o,
114
113
  primarySidebarCollapsed: s,
115
114
  onClose: l
116
115
  }) => {
117
- const c = g(null), [d, i] = h({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
116
+ const c = v(null), [d, i] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
118
117
  return P(() => {
119
118
  if (f?.current && m?.current) {
120
119
  const p = f.current.getBoundingClientRect();
@@ -123,8 +122,8 @@ const O = (t, e) => {
123
122
  width: p.width
124
123
  });
125
124
  }
126
- }, [f, e, s, m]), O(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
127
- /* @__PURE__ */ r.jsx(
125
+ }, [f, e, s, m]), O(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
126
+ /* @__PURE__ */ a.jsx(
128
127
  "div",
129
128
  {
130
129
  className: "fixed inset-0 bg-black/95 z-40",
@@ -134,7 +133,7 @@ const O = (t, e) => {
134
133
  onClick: l
135
134
  }
136
135
  ),
137
- /* @__PURE__ */ r.jsx(
136
+ /* @__PURE__ */ a.jsx(
138
137
  "div",
139
138
  {
140
139
  ref: c,
@@ -142,17 +141,17 @@ const O = (t, e) => {
142
141
  "h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
143
142
  "absolute top-0 z-50",
144
143
  n,
145
- a
144
+ r
146
145
  ),
147
146
  style: {
148
147
  left: d.left
149
148
  },
150
149
  "data-action": o,
151
- children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
150
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
152
151
  }
153
152
  )
154
153
  ] }) });
155
- }, F = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: u("flex-1", t) }), de = 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, {
156
155
  Root: S,
157
156
  Header: F,
158
157
  Content: H,
@@ -168,13 +167,13 @@ const O = (t, e) => {
168
167
  }, M = ({
169
168
  children: t
170
169
  }) => {
171
- const [e, a] = h(!1), [n, o] = h(!1), s = g(null), l = () => {
172
- a(!1), o(!1);
170
+ const [e, r] = g(!1), [n, o] = g(!1), s = v(null), l = () => {
171
+ r(!1), o(!1);
173
172
  }, c = () => {
174
- a(!0), o(!1);
173
+ r(!0), o(!1);
175
174
  }, p = {
176
175
  isCollapsed: e,
177
- setIsCollapsed: a,
176
+ setIsCollapsed: r,
178
177
  navbarRef: s,
179
178
  toggleCollapse: () => {
180
179
  e ? l() : c();
@@ -190,8 +189,8 @@ const O = (t, e) => {
190
189
  o((y) => !y);
191
190
  }
192
191
  };
193
- return /* @__PURE__ */ r.jsx(R.Provider, { value: p, children: t });
194
- }, j = (t, e, a, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, n) : t, U = (t, e, a) => {
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) => {
195
194
  I(
196
195
  () => {
197
196
  if (!t.current) return;
@@ -235,7 +234,7 @@ const O = (t, e) => {
235
234
  };
236
235
  e ? V(n, o) : G(n, o), o.secondaryBar && _(o.secondaryBar);
237
236
  },
238
- { scope: t, dependencies: [e, a] }
237
+ { scope: t, dependencies: [e, r] }
239
238
  );
240
239
  }, V = (t, e) => {
241
240
  t.to(e.navbar, {
@@ -512,12 +511,12 @@ const O = (t, e) => {
512
511
  ease: "power2.in"
513
512
  });
514
513
  }, X = C((t, e) => {
515
- const [a, n] = h(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
516
- v(() => {
514
+ const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = v(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
515
+ h(() => {
517
516
  o.current?.style.setProperty("--tab-bg", c);
518
517
  }, [c]);
519
- const d = s.find((i) => i.name === (t?.currentTabName || a));
520
- return /* @__PURE__ */ r.jsx(
518
+ const d = s.find((i) => i.name === (t?.currentTabName || r));
519
+ return /* @__PURE__ */ a.jsx(
521
520
  "div",
522
521
  {
523
522
  ref: e,
@@ -530,10 +529,10 @@ const O = (t, e) => {
530
529
  ),
531
530
  children: s.map(
532
531
  (i) => {
533
- const f = i.name === d?.name, m = typeof i.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, p = () => {
532
+ const f = i.name === d?.name, m = typeof i.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, p = () => {
534
533
  i.disabled || (n(i.name), i.onClick && i.onClick(i.name));
535
534
  };
536
- return /* @__PURE__ */ r.jsx(
535
+ return /* @__PURE__ */ a.jsx(
537
536
  "div",
538
537
  {
539
538
  className: u(
@@ -546,7 +545,7 @@ const O = (t, e) => {
546
545
  ),
547
546
  onClick: p,
548
547
  ref: o,
549
- children: /* @__PURE__ */ r.jsx("div", { className: u(
548
+ children: /* @__PURE__ */ a.jsx("div", { className: u(
550
549
  "size-8 rounded-[4px]",
551
550
  "grid place-items-center",
552
551
  "tab-thumbnail-icon",
@@ -561,22 +560,22 @@ const O = (t, e) => {
561
560
  }
562
561
  );
563
562
  }), Z = C(
564
- ({ children: t, isCollapsed: e = !1, className: a = "", tabs: n = [], currentTabName: o }, s) => {
565
- const l = g(null), c = g(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = E((m) => {
563
+ ({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, s) => {
564
+ const l = v(null), c = v(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = D((m) => {
566
565
  l.current = m, typeof s == "function" ? s(m) : s && (s.current = m);
567
566
  }, [s]);
568
- return v(() => {
567
+ return h(() => {
569
568
  l.current && d(l);
570
- }, [d]), v(() => {
569
+ }, [d]), h(() => {
571
570
  c.current && i(c);
572
- }, [i]), U(l, e, !1), /* @__PURE__ */ r.jsxs(
571
+ }, [i]), U(l, e, !1), /* @__PURE__ */ a.jsxs(
573
572
  "div",
574
573
  {
575
574
  className: u(
576
575
  "flex"
577
576
  ),
578
577
  children: [
579
- n.length > 0 && /* @__PURE__ */ r.jsx(
578
+ n.length > 0 && /* @__PURE__ */ a.jsx(
580
579
  X,
581
580
  {
582
581
  tabs: n,
@@ -585,12 +584,12 @@ const O = (t, e) => {
585
584
  currentTabName: o
586
585
  }
587
586
  ),
588
- /* @__PURE__ */ r.jsx(
587
+ /* @__PURE__ */ a.jsx(
589
588
  "div",
590
589
  {
591
590
  ref: f,
592
591
  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
593
- ${e ? "w-16" : "w-64"} ${a}`,
592
+ ${e ? "w-16" : "w-64"} ${r}`,
594
593
  children: t
595
594
  }
596
595
  )
@@ -599,10 +598,10 @@ const O = (t, e) => {
599
598
  );
600
599
  }
601
600
  ), N = C(
602
- (t, e) => /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(Z, { ...t, ref: e }) })
601
+ (t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
603
602
  );
604
603
  N.displayName = "SidebarRoot";
605
- const J = ({ 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(
604
+ 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(
606
605
  "button",
607
606
  {
608
607
  type: "button",
@@ -610,10 +609,10 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
610
609
  title: t ? "Expandir Navbar" : "Contraer Navbar",
611
610
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
612
611
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
613
- children: t ? /* @__PURE__ */ r.jsx(w, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(w, { size: 24, className: "rotate-0 transition-transform duration-300" })
612
+ 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" })
614
613
  }
615
- ) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ 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" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
616
- const a = () => {
614
+ ) }), 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" }) => {
615
+ const r = () => {
617
616
  switch (e) {
618
617
  case "auto":
619
618
  return "flex-grow";
@@ -625,8 +624,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
625
624
  return "h-8 w-8";
626
625
  }
627
626
  };
628
- return /* @__PURE__ */ r.jsx("div", { className: u(a(), t) });
629
- }, te = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), me = Object.assign(N, {
627
+ return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
628
+ }, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(N, {
630
629
  Root: N,
631
630
  CollapseButton: J,
632
631
  Header: K,
@@ -637,14 +636,14 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
637
636
  }), pe = ({
638
637
  children: t,
639
638
  icon: e,
640
- label: a,
639
+ label: r,
641
640
  href: n,
642
641
  onClick: o,
643
642
  isActive: s = !1,
644
643
  className: l
645
644
  }) => {
646
645
  const c = n ? "a" : "button";
647
- return /* @__PURE__ */ r.jsxs(
646
+ return /* @__PURE__ */ a.jsxs(
648
647
  c,
649
648
  {
650
649
  href: n,
@@ -658,8 +657,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
658
657
  l
659
658
  ),
660
659
  children: [
661
- 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 }) }),
662
- a && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: a }),
660
+ 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 }) }),
661
+ r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
663
662
  t
664
663
  ]
665
664
  }
@@ -667,7 +666,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
667
666
  }, L = ({
668
667
  count: t,
669
668
  maxCount: e = 9,
670
- className: a = "",
669
+ className: r = "",
671
670
  size: n = "medium",
672
671
  variant: o = "primary",
673
672
  showZero: s = !1
@@ -685,19 +684,19 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
685
684
  warning: "bg-yellow-500 text-black",
686
685
  danger: "bg-red-500 text-white"
687
686
  };
688
- return /* @__PURE__ */ r.jsx("div", { className: u(
687
+ return /* @__PURE__ */ a.jsx("div", { className: u(
689
688
  "rounded-full flex items-center justify-center font-medium ",
690
689
  d[n],
691
690
  i[o],
692
- a
693
- ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
691
+ r
692
+ ), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
694
693
  }, xe = ({
695
694
  linkActions: t,
696
695
  onClick: e,
697
- activeAction: a
698
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
699
- const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, m = (typeof s == "function" ? s() : s !== !1) && (!f || f()), p = a === l;
700
- return m && /* @__PURE__ */ r.jsx(
696
+ activeAction: r
697
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
698
+ const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, m = (typeof s == "function" ? s() : s !== !1) && (!f || f()), p = r === l;
699
+ return m && /* @__PURE__ */ a.jsx(
701
700
  b.div,
702
701
  {
703
702
  initial: { opacity: 0 },
@@ -708,7 +707,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
708
707
  ease: "easeOut"
709
708
  },
710
709
  className: "relative flex justify-center w-full items-center px-3",
711
- children: /* @__PURE__ */ r.jsxs(
710
+ children: /* @__PURE__ */ a.jsxs(
712
711
  "button",
713
712
  {
714
713
  onClick: () => {
@@ -721,7 +720,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
721
720
  p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
722
721
  ),
723
722
  children: [
724
- /* @__PURE__ */ r.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ r.jsx(
723
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
725
724
  b.div,
726
725
  {
727
726
  layoutId: "nav-active-bg",
@@ -736,7 +735,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
736
735
  }
737
736
  }
738
737
  ) }),
739
- /* @__PURE__ */ r.jsxs(
738
+ /* @__PURE__ */ a.jsxs(
740
739
  b.div,
741
740
  {
742
741
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
@@ -748,8 +747,8 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
748
747
  ease: "easeOut"
749
748
  },
750
749
  children: [
751
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
752
- /* @__PURE__ */ r.jsx(
750
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
751
+ /* @__PURE__ */ a.jsx(
753
752
  b.div,
754
753
  {
755
754
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
@@ -769,9 +768,9 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
769
768
  }) : null
770
769
  }
771
770
  ),
772
- /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
771
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
773
772
  ] }),
774
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ r.jsx(L, { count: i, maxCount: 9, className: "" }) : "" })
773
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ a.jsx(L, { count: i, maxCount: 9, className: "" }) : "" })
775
774
  ]
776
775
  }
777
776
  )
@@ -784,12 +783,12 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
784
783
  }) }), be = ({
785
784
  links: t,
786
785
  isLinkActive: e,
787
- onLinkClick: a
788
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
786
+ onLinkClick: r
787
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
789
788
  const { isView: s = !1, viewAccess: l, path: c, title: d, icon: i, count: f, relatedPaths: m } = n, p = (typeof s == "function" ? s() : s !== !1) && (!l || l()), y = e(c) || (m?.some(
790
789
  (T) => e(T)
791
790
  ) ?? !1);
792
- return p && /* @__PURE__ */ r.jsx(
791
+ return p && /* @__PURE__ */ a.jsx(
793
792
  b.div,
794
793
  {
795
794
  initial: { opacity: 0 },
@@ -800,11 +799,11 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
800
799
  ease: "easeOut"
801
800
  },
802
801
  className: "relative flex justify-center w-full items-center px-3",
803
- children: /* @__PURE__ */ r.jsxs(
802
+ children: /* @__PURE__ */ a.jsxs(
804
803
  "button",
805
804
  {
806
805
  onClick: () => {
807
- a?.(c);
806
+ r?.(c);
808
807
  },
809
808
  className: u(
810
809
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
@@ -813,7 +812,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
813
812
  y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
814
813
  ),
815
814
  children: [
816
- /* @__PURE__ */ r.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ r.jsx(
815
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ a.jsx(
817
816
  b.div,
818
817
  {
819
818
  layoutId: "nav-active-bg",
@@ -828,7 +827,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
828
827
  }
829
828
  }
830
829
  ) }),
831
- /* @__PURE__ */ r.jsxs(
830
+ /* @__PURE__ */ a.jsxs(
832
831
  b.div,
833
832
  {
834
833
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
@@ -840,11 +839,11 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
840
839
  ease: "easeOut"
841
840
  },
842
841
  children: [
843
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
844
- /* @__PURE__ */ r.jsx(
842
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
843
+ /* @__PURE__ */ a.jsx(
845
844
  b.div,
846
845
  {
847
- className: "nav-icon-wrapper flex items-center justify-center shrink-0",
846
+ className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
848
847
  animate: {
849
848
  scale: y ? 1.05 : 1
850
849
  },
@@ -861,9 +860,9 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
861
860
  }) : null
862
861
  }
863
862
  ),
864
- /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
863
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
865
864
  ] }),
866
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
865
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
867
866
  ]
868
867
  }
869
868
  )
@@ -878,25 +877,25 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
878
877
  setIsActiveModalNotification: e
879
878
  }) => ({ handleNotificationClick: () => {
880
879
  e(!0);
881
- }, isActiveModalNotification: t }), ge = (t) => {
882
- const e = g(null);
880
+ }, isActiveModalNotification: t }), ve = (t) => {
881
+ const e = v(null);
883
882
  return {
884
883
  isCollapsed: t,
885
884
  navbarRef: e
886
885
  };
887
- }, he = ({
886
+ }, ge = ({
888
887
  isCollapsed: t,
889
888
  onToggle: e
890
- }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
889
+ }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
891
890
  "button",
892
891
  {
893
892
  onClick: e,
894
893
  title: t ? "Expandir Navbar" : "Contraer Navbar",
895
894
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
896
895
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
897
- children: t ? /* @__PURE__ */ r.jsx(w, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(w, { size: 34, className: "rotate-0 transition-transform duration-300" })
896
+ 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" })
898
897
  }
899
- ) }), ve = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
898
+ ) }), 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(
900
899
  "img",
901
900
  {
902
901
  src: t,
@@ -907,16 +906,16 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
907
906
  function we({
908
907
  onFilesAccepted: t,
909
908
  onFilesRejected: e,
910
- ...a
909
+ ...r
911
910
  }) {
912
911
  const n = A.useCallback(
913
912
  (s, l) => {
914
913
  s.length > 0 && t?.(s), l.length > 0 && e?.(l);
915
914
  },
916
915
  [t, e]
917
- ), o = D({
916
+ ), o = E({
918
917
  onDrop: n,
919
- ...a
918
+ ...r
920
919
  });
921
920
  return {
922
921
  ...o,
@@ -924,11 +923,11 @@ function we({
924
923
  };
925
924
  }
926
925
  const je = (t, e = !0) => {
927
- const a = g(null);
928
- return v(() => {
926
+ const r = v(null);
927
+ return h(() => {
929
928
  if (!e) return;
930
929
  const n = (o) => {
931
- a.current && !a.current.contains(o.target) && t();
930
+ r.current && !r.current.contains(o.target) && t();
932
931
  };
933
932
  return document.addEventListener("mousedown", n, {
934
933
  capture: !0
@@ -941,7 +940,7 @@ const je = (t, e = !0) => {
941
940
  capture: !0
942
941
  });
943
942
  };
944
- }, [t, e]), a;
943
+ }, [t, e]), r;
945
944
  };
946
945
  export {
947
946
  Se as Avatar,
@@ -951,47 +950,47 @@ export {
951
950
  Le as ChangueAccount,
952
951
  Ae as CheckBox,
953
952
  qe as CheckboxFormik,
954
- ve as CompanyLogo,
953
+ he as CompanyLogo,
955
954
  Nt as DatePicker,
956
- Ee as DialogModal,
955
+ De as DialogModal,
957
956
  Fe as DrawerDesktop,
958
957
  $e as DrawerMobile,
959
- gr as DropZone,
960
- or as FAButton,
958
+ ba as DropZone,
959
+ oa as FAButton,
961
960
  Ve as Header,
962
- fr as Icons,
961
+ w as Icons,
963
962
  Zt as Image,
964
963
  _t as ImageGallery,
965
964
  _e as Input,
966
965
  Ze as InputFormik,
967
- ir as InputFormikV2,
966
+ ia as InputFormikV2,
968
967
  Ke as InputMultiple,
969
968
  Ut as LayoutGeneric,
970
969
  Ye as Logo,
971
970
  tt as Menu,
972
971
  xe as NavBarActions,
973
- he as NavbarCollapseButton,
972
+ ge as NavbarCollapseButton,
974
973
  be as NavbarLinks,
975
974
  pe as NavigationLink,
976
- pr as OtpInput,
977
- at as Pagination,
975
+ fa as OtpInput,
976
+ rt as Pagination,
978
977
  nt as ProfilePictureUpload,
979
978
  st as ProgressBar,
980
- ur as RadioButton,
981
- lr as RadioButtonFormik,
979
+ ua as RadioButton,
980
+ la as RadioButtonFormik,
982
981
  de as SecondaryBar,
983
982
  $t as SegmentedButton,
984
983
  ct as Select,
985
984
  mt as SelectFormik,
986
985
  dt as SelectFormikLegacy,
987
- rr as SelectSearch,
986
+ aa as SelectSearch,
988
987
  me as Sidebar,
989
988
  M as SidebarProvider,
990
989
  Vt as SidebarRefProvider,
991
990
  Ht as Skeleton,
992
991
  xt as Spinner,
993
992
  yt as Steps,
994
- ht as SwipeContainer,
993
+ gt as SwipeContainer,
995
994
  wt as Switch,
996
995
  qt as TabLinks,
997
996
  St as Table,
@@ -1002,19 +1001,19 @@ export {
1002
1001
  Lt as TableHead,
1003
1002
  Tt as TableHeader,
1004
1003
  At as TableRow,
1005
- Et as TextArea,
1004
+ Dt as TextArea,
1006
1005
  Kt as Toast,
1007
- er as ToastProvider,
1006
+ ea as ToastProvider,
1008
1007
  Ot as Tooltip,
1009
1008
  Qt as toastpyrion,
1010
1009
  ye as useActionsNavbar,
1011
1010
  je as useClickOutside,
1012
- De as useDialogControl,
1011
+ Ee as useDialogControl,
1013
1012
  He as useDrawerDesktop,
1014
1013
  Me as useDrawerMobile,
1015
1014
  we as useFileDropzone,
1016
- br as useIsMobile,
1017
- ge as useNavbarCollapse,
1015
+ pa as useIsMobile,
1016
+ ve as useNavbarCollapse,
1018
1017
  fe as useSidebar,
1019
1018
  k as useSidebarContext
1020
1019
  };