prometeo-design-system 2.5.4 → 2.5.5

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 (59) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-DV3gwvqE.js → CardProfile-DA-HDUpi.js} +1 -1
  5. package/dist/CardProfile.es.js +1 -1
  6. package/dist/CheckBox.es.js +1 -1
  7. package/dist/CheckboxFormik.es.js +1 -1
  8. package/dist/DatePicker.es.js +3 -3
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +102 -104
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +1 -1
  14. package/dist/Icons.es.js +1 -1
  15. package/dist/Image.es.js +1 -1
  16. package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
  17. package/dist/ImageGallery.es.js +1 -1
  18. package/dist/{Input-PNwH7rb6.js → Input-DwIAUqcc.js} +2 -2
  19. package/dist/Input.es.js +1 -1
  20. package/dist/InputFormik.es.js +1 -1
  21. package/dist/InputMultiple.es.js +1 -1
  22. package/dist/LayoutGeneric-B6E-yOYJ.js +26 -0
  23. package/dist/LayoutGeneric.es.js +1 -1
  24. package/dist/Logo.es.js +1 -1
  25. package/dist/Menu.es.js +1 -1
  26. package/dist/OtpInput.es.js +1 -1
  27. package/dist/Pagination.es.js +1 -1
  28. package/dist/ProfilePictureUpload.es.js +1 -1
  29. package/dist/ProgressBar.es.js +1 -1
  30. package/dist/SegmentedButton.es.js +1 -1
  31. package/dist/Select-C1MxM6yq.js +813 -0
  32. package/dist/Select.es.js +1 -1
  33. package/dist/SelectFormik.es.js +55 -29
  34. package/dist/SelectFormikLegacy.es.js +1 -1
  35. package/dist/SelectSearch.es.js +167 -132
  36. package/dist/Skeleton.es.js +1 -1
  37. package/dist/Spinner.es.js +1 -1
  38. package/dist/Steps.es.js +1 -1
  39. package/dist/SwipeContainer.es.js +1 -1
  40. package/dist/Switch.es.js +1 -1
  41. package/dist/TabLinks.es.js +1 -1
  42. package/dist/Table.es.js +1 -1
  43. package/dist/TextArea.es.js +1 -1
  44. package/dist/Toast.es.js +2 -2
  45. package/dist/ToastProvider.es.js +1 -1
  46. package/dist/Tooltip.es.js +1 -1
  47. package/dist/components/Autocomplete/useAutocomplete.d.ts +14 -6
  48. package/dist/components/Drawer/DrawerMobile.d.ts +1 -1
  49. package/dist/components/Select/Select.d.ts +19 -7
  50. package/dist/components/SelectFormik/SelectFormik.d.ts +5 -3
  51. package/dist/components/SelectSearch/SelectSearch.d.ts +12 -4
  52. package/dist/components/Sidebar/context/SidebarContext.d.ts +2 -0
  53. package/dist/components/TabSwitch/TabSwitch.d.ts +1 -1
  54. package/dist/index.d.ts +1 -1
  55. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  56. package/dist/prometeo-design-system.es.js +141 -134
  57. package/package.json +1 -1
  58. package/dist/LayoutGeneric-p4Pll4Cm.js +0 -24
  59. package/dist/Select-C-aLaiJu.js +0 -804
@@ -1,13 +1,13 @@
1
1
  import { default as qe } from "./Avatar.es.js";
2
- import { B as De } from "./Button-DsbEyjth.js";
3
- import { C as Oe, a as Pe } from "./CardProfile-DV3gwvqE.js";
2
+ import { B as De } from "./Button-Bc0LYLfg.js";
3
+ import { C as Oe, a as Pe } from "./CardProfile-DA-HDUpi.js";
4
4
  import { default as He } from "./CheckBox.es.js";
5
5
  import { default as $e } from "./CheckboxFormik.es.js";
6
6
  import { default as Ue, useDialogControl as Ve } from "./DialogModal.es.js";
7
7
  import { default as Ge, useDrawerDesktop as Xe } from "./DrawerDesktop.es.js";
8
8
  import { default as Je, useDrawerMobile as Ke } from "./DrawerMobile.es.js";
9
9
  import { default as Ye } from "./Header.es.js";
10
- import { I as tt } from "./Input-PNwH7rb6.js";
10
+ import { I as tt } from "./Input-DwIAUqcc.js";
11
11
  import { default as at } from "./InputFormik.es.js";
12
12
  import { InputMultiple as nt } from "./InputMultiple.es.js";
13
13
  import { default as st } from "./Logo.es.js";
@@ -15,7 +15,7 @@ import { Menu as ct } from "./Menu.es.js";
15
15
  import { default as ut } from "./Pagination.es.js";
16
16
  import { ProfilePictureUpload as mt } from "./ProfilePictureUpload.es.js";
17
17
  import { default as xt } from "./ProgressBar.es.js";
18
- import { S as vt } from "./Select-C-aLaiJu.js";
18
+ import { S as vt } from "./Select-C1MxM6yq.js";
19
19
  import { default as gt } from "./SelectFormikLegacy.es.js";
20
20
  import { default as wt } from "./SelectFormik.es.js";
21
21
  import { default as jt } from "./Spinner.es.js";
@@ -29,20 +29,20 @@ import { default as Ut } from "./TextArea.es.js";
29
29
  import { default as _t } from "./Tooltip.es.js";
30
30
  import { Skeleton as Xt } from "./Skeleton.es.js";
31
31
  import { SegmentedButton as Jt } from "./SegmentedButton.es.js";
32
- import { u as S } from "./LayoutGeneric-p4Pll4Cm.js";
33
- import { L as Qt, S as Yt } from "./LayoutGeneric-p4Pll4Cm.js";
34
- import { I as tr } from "./ImageGallery-DnoRTpCr.js";
32
+ import { u as k } from "./LayoutGeneric-B6E-yOYJ.js";
33
+ import { L as Qt, S as Yt } from "./LayoutGeneric-B6E-yOYJ.js";
34
+ import { I as tr } from "./ImageGallery-BeADef_g.js";
35
35
  import { default as ar } from "./Image.es.js";
36
36
  import { default as nr, toastpyrion as ir } from "./Toast.es.js";
37
37
  import { default as lr } from "./ToastProvider.es.js";
38
38
  import { default as dr } from "./SelectSearch.es.js";
39
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
40
- import k, { memo as q, useRef as h, useState as y, useLayoutEffect as z, createContext as D, useContext as E, useEffect as j, forwardRef as I, useCallback as O } from "react";
39
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
40
+ import I, { memo as q, useRef as h, useState as y, useLayoutEffect as z, createContext as D, useContext as E, forwardRef as C, useEffect as w, useCallback as O } from "react";
41
41
  import { c as d } from "./cn-B6yFEsav.js";
42
42
  import { Icons as g } from "./Icons.es.js";
43
43
  import { createPortal as P } from "react-dom";
44
44
  import { useGSAP as B } from "@gsap/react";
45
- import m from "gsap";
45
+ import x from "gsap";
46
46
  import { motion as b, AnimatePresence as R } from "framer-motion";
47
47
  import { default as fr } from "./OtpInput.es.js";
48
48
  import { useDropzone as F } from "react-dropzone";
@@ -76,7 +76,7 @@ const H = {
76
76
  warning: "text-warning-default-default hover:text-warning-default-hover active:text-warning-default-pressed"
77
77
  }
78
78
  }, $ = "bg-primary-default-disabled text-neutral-default-disabled hover:bg-primary-default-disabled active:bg-primary-default-disabled cursor-not-allowed", M = (t) => {
79
- const e = t.position || H, a = t.attachToParent || !1, o = t.color || "primary", n = t.icon || g.Add, i = t.disabled || !1, s = t.variant || "filled", c = /* @__PURE__ */ r.jsx(
79
+ const e = t.position || H, a = t.attachToParent || !1, n = t.color || "primary", o = t.icon || g.Add, i = t.disabled || !1, l = t.variant || "filled", c = /* @__PURE__ */ r.jsx(
80
80
  "div",
81
81
  {
82
82
  style: {
@@ -92,9 +92,9 @@ const H = {
92
92
  placeItems: "center",
93
93
  padding: 16
94
94
  },
95
- className: d("transition-all duration-300 cursor-pointer text-neutral-default-default", W[s][o], i && $, t.className),
95
+ className: d("transition-all duration-300 cursor-pointer text-neutral-default-default", W[l][n], i && $, t.className),
96
96
  onClick: i ? void 0 : t.onClick,
97
- children: k.createElement(n, { size: 24 })
97
+ children: I.createElement(o, { size: 24 })
98
98
  }
99
99
  );
100
100
  return a ? c : P(c, document.body);
@@ -104,9 +104,9 @@ const V = (t, e) => {
104
104
  B(
105
105
  () => {
106
106
  if (!t.current) return;
107
- const a = t.current, o = document.querySelector('[data-main-content="true"]');
107
+ const a = t.current, n = document.querySelector('[data-main-content="true"]');
108
108
  if (e) {
109
- m.fromTo(
109
+ x.fromTo(
110
110
  a,
111
111
  {
112
112
  width: "0rem",
@@ -118,14 +118,14 @@ const V = (t, e) => {
118
118
  duration: 0.4,
119
119
  ease: "power2.out"
120
120
  }
121
- ), o && m.to(o, {
121
+ ), n && x.to(n, {
122
122
  marginLeft: a.offsetWidth + "px",
123
123
  duration: 0.4,
124
124
  ease: "power2.out"
125
125
  });
126
- const n = a.querySelectorAll(".secondary-bar-content > *");
127
- n.length > 0 && m.fromTo(
128
- n,
126
+ const o = a.querySelectorAll(".secondary-bar-content > *");
127
+ o.length > 0 && x.fromTo(
128
+ o,
129
129
  {
130
130
  y: 20,
131
131
  opacity: 0
@@ -140,12 +140,12 @@ const V = (t, e) => {
140
140
  }
141
141
  );
142
142
  } else
143
- m.to(a, {
143
+ x.to(a, {
144
144
  width: "0rem",
145
145
  opacity: 0,
146
146
  duration: 0.3,
147
147
  ease: "power2.in"
148
- }), o && m.to(o, {
148
+ }), n && x.to(n, {
149
149
  marginLeft: "0px",
150
150
  duration: 0.3,
151
151
  ease: "power2.in"
@@ -153,33 +153,33 @@ const V = (t, e) => {
153
153
  },
154
154
  { scope: t, dependencies: [e] }
155
155
  );
156
- }, C = ({
156
+ }, S = ({
157
157
  children: t,
158
158
  isOpen: e = !1,
159
159
  className: a = "",
160
- width: o = "w-96",
161
- action: n,
160
+ width: n = "w-96",
161
+ action: o,
162
162
  primarySidebarCollapsed: i,
163
- onClose: s
163
+ onClose: l
164
164
  }) => {
165
- const c = h(null), [l, u] = y({ left: 0, width: 0 }), { primarySidebarRef: f } = S();
165
+ const c = h(null), [u, s] = y({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
166
166
  return z(() => {
167
- if (f?.current) {
168
- const x = f.current.getBoundingClientRect();
169
- u({
170
- left: x.width,
171
- width: x.width
167
+ if (f?.current && m?.current) {
168
+ const p = f.current.getBoundingClientRect();
169
+ s({
170
+ left: p.width + m.current.offsetWidth,
171
+ width: p.width
172
172
  });
173
173
  }
174
- }, [f, e, i]), V(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
174
+ }, [f, e, i, m]), V(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
175
175
  /* @__PURE__ */ r.jsx(
176
176
  "div",
177
177
  {
178
178
  className: "fixed inset-0 bg-black/95 z-40",
179
179
  style: {
180
- left: l.left
180
+ left: u.left
181
181
  },
182
- onClick: s
182
+ onClick: l
183
183
  }
184
184
  ),
185
185
  /* @__PURE__ */ r.jsx(
@@ -189,19 +189,19 @@ const V = (t, e) => {
189
189
  className: d(
190
190
  "h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
191
191
  "absolute top-0 z-50",
192
- o,
192
+ n,
193
193
  a
194
194
  ),
195
195
  style: {
196
- left: l.left
196
+ left: u.left
197
197
  },
198
- "data-action": n,
198
+ "data-action": o,
199
199
  children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
200
200
  }
201
201
  )
202
202
  ] }) });
203
- }, _ = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("h-16 ", e), children: t }), G = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("flex-1 overflow-y-auto p-4", e), children: t }), X = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("p-4 border-t border-neutral-strong-default", e), children: t }), Z = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: d("flex-1", t) }), ge = Object.assign(C, {
204
- Root: C,
203
+ }, _ = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("h-16 ", e), children: t }), G = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("flex-1 overflow-y-auto p-4", e), children: t }), X = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: d("p-4 border-t border-neutral-strong-default", e), children: t }), Z = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: d("flex-1", t) }), ge = Object.assign(S, {
204
+ Root: S,
205
205
  Header: _,
206
206
  Content: G,
207
207
  Footer: X,
@@ -216,41 +216,41 @@ const V = (t, e) => {
216
216
  }, J = ({
217
217
  children: t
218
218
  }) => {
219
- const [e, a] = y(!1), [o, n] = y(!1), i = h(null), s = () => {
220
- a(!1), n(!1);
219
+ const [e, a] = y(!1), [n, o] = y(!1), i = h(null), l = () => {
220
+ a(!1), o(!1);
221
221
  }, c = () => {
222
- a(!0), n(!1);
222
+ a(!0), o(!1);
223
223
  }, p = {
224
224
  isCollapsed: e,
225
225
  setIsCollapsed: a,
226
226
  navbarRef: i,
227
227
  toggleCollapse: () => {
228
- e ? s() : c();
228
+ e ? l() : c();
229
229
  },
230
- activeSecondaryBar: o ? "notifications" : null,
230
+ activeSecondaryBar: n ? "notifications" : null,
231
231
  openSecondaryBar: () => {
232
- n(!0);
232
+ o(!0);
233
233
  },
234
234
  closeSecondaryBar: () => {
235
- n(!1);
235
+ o(!1);
236
236
  },
237
237
  toggleSecondaryBar: () => {
238
- n((v) => !v);
238
+ o((v) => !v);
239
239
  }
240
240
  };
241
241
  return /* @__PURE__ */ r.jsx(T.Provider, { value: p, children: t });
242
- }, w = (t, e, a, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, o) : t, K = (t, e, a) => {
242
+ }, N = (t, e, a, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, a, n) : t, K = (t, e, a) => {
243
243
  B(
244
244
  () => {
245
245
  if (!t.current) return;
246
- const o = m.timeline({
246
+ const n = x.timeline({
247
247
  defaults: { duration: 0.7, ease: "power1.out" }
248
- }), n = {
248
+ }), o = {
249
249
  navbar: t.current,
250
- navLabels: m.utils.toArray(".nav-label"),
251
- navIconWrappers: m.utils.toArray(".nav-icon-wrapper"),
252
- navIcons: m.utils.toArray(".nav-icon"),
253
- navLinkItems: m.utils.toArray(".nav-link-item"),
250
+ navLabels: x.utils.toArray(".nav-label"),
251
+ navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
252
+ navIcons: x.utils.toArray(".nav-icon"),
253
+ navLinkItems: x.utils.toArray(".nav-link-item"),
254
254
  logoutButton: document.querySelector(".logout-button"),
255
255
  logoutLabel: document.querySelector(".logout-label"),
256
256
  logoutIcon: document.querySelector(".logout-icon"),
@@ -278,10 +278,10 @@ const V = (t, e) => {
278
278
  ),
279
279
  // Secondary bar elements
280
280
  secondaryBar: document.querySelector(".secondary-bar"),
281
- secondaryBarContent: m.utils.toArray(".secondary-bar *"),
282
- badgeInLink: m.utils.toArray(".badge-in-link")
281
+ secondaryBarContent: x.utils.toArray(".secondary-bar *"),
282
+ badgeInLink: x.utils.toArray(".badge-in-link")
283
283
  };
284
- e ? Q(o, n) : Y(o, n), n.secondaryBar && ee(n.secondaryBar);
284
+ e ? Q(n, o) : Y(n, o), o.secondaryBar && ee(o.secondaryBar);
285
285
  },
286
286
  { scope: t, dependencies: [e, a] }
287
287
  );
@@ -344,7 +344,7 @@ const V = (t, e) => {
344
344
  marginLeft: 0
345
345
  },
346
346
  0
347
- ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), w(
347
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), N(
348
348
  t,
349
349
  e.buttonCrevron,
350
350
  {
@@ -357,7 +357,7 @@ const V = (t, e) => {
357
357
  }
358
358
  },
359
359
  0
360
- ), w(
360
+ ), N(
361
361
  t,
362
362
  e.buttonContentChevron,
363
363
  {
@@ -434,7 +434,7 @@ const V = (t, e) => {
434
434
  justifyContent: "flex-start"
435
435
  },
436
436
  -1
437
- ), w(
437
+ ), N(
438
438
  t,
439
439
  e.buttonCrevron,
440
440
  {
@@ -447,7 +447,7 @@ const V = (t, e) => {
447
447
  }
448
448
  },
449
449
  0
450
- ), w(
450
+ ), N(
451
451
  t,
452
452
  e.buttonContentChevron,
453
453
  {
@@ -553,32 +553,33 @@ const V = (t, e) => {
553
553
  0
554
554
  ).to(e.navIcons, { scale: 1 }, 0.3);
555
555
  }, ee = (t, e) => {
556
- m.to(t, {
556
+ x.to(t, {
557
557
  x: "-100%",
558
558
  opacity: 0,
559
559
  duration: 0.3,
560
560
  ease: "power2.in"
561
561
  });
562
- }, te = (t) => {
563
- const [e, a] = y(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
564
- j(() => {
565
- o.current?.style.setProperty("--tab-bg", s);
566
- }, [s]);
567
- const c = n.find((l) => l.name === (t?.currentTabName || e));
562
+ }, te = C((t, e) => {
563
+ const [a, n] = y(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
564
+ w(() => {
565
+ o.current?.style.setProperty("--tab-bg", c);
566
+ }, [c]);
567
+ const u = i.find((s) => s.name === (t?.currentTabName || a));
568
568
  return /* @__PURE__ */ r.jsx(
569
569
  "div",
570
570
  {
571
+ ref: e,
571
572
  className: d(
572
573
  "flex flex-col gap-2",
573
574
  "bg-neutral-strong-default",
574
575
  "h-full w-14 max-w-14 pl-[6px] py-6",
575
576
  " border-r-[1px] border-neutral-default-default",
576
- i
577
+ l
577
578
  ),
578
- children: n.map(
579
- (l, u) => {
580
- const f = l.name === c?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: l.thumbnail, alt: l.description, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
581
- l.disabled || (a(l.name), l.onClick && l.onClick(l.name));
579
+ children: i.map(
580
+ (s) => {
581
+ const f = s.name === u?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */ r.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, p = () => {
582
+ s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
582
583
  };
583
584
  return /* @__PURE__ */ r.jsx(
584
585
  "div",
@@ -598,41 +599,46 @@ const V = (t, e) => {
598
599
  "grid place-items-center",
599
600
  "tab-thumbnail-icon",
600
601
  "bg-transparent text-neutral-default-default",
601
- l?.className
602
- ), children: x })
602
+ s?.className
603
+ ), children: m })
603
604
  },
604
- u
605
+ s.name
605
606
  );
606
607
  }
607
608
  )
608
609
  }
609
610
  );
610
- }, re = I(
611
- ({ children: t, isCollapsed: e = !1, className: a = "", tabs: o = [], currentTabName: n }, i) => {
612
- const s = h(null), { registerPrimarySidebar: c } = S(), l = O((u) => {
613
- s.current = u, typeof i == "function" ? i(u) : i && (i.current = u);
611
+ }), re = C(
612
+ ({ children: t, isCollapsed: e = !1, className: a = "", tabs: n = [], currentTabName: o }, i) => {
613
+ const l = h(null), c = h(null), { registerPrimarySidebar: u, registerTabBar: s } = k();
614
+ console.log(c.current, "Tabinternal ref");
615
+ const f = O((m) => {
616
+ l.current = m, typeof i == "function" ? (console.log("soy ref function"), i(m)) : i && (console.log("estoy entrand aca"), i.current = m);
614
617
  }, [i]);
615
- return j(() => {
616
- s.current && c(s);
617
- }, [c]), K(s, e, !1), /* @__PURE__ */ r.jsxs(
618
+ return w(() => {
619
+ l.current && u(l);
620
+ }, [u]), w(() => {
621
+ c.current && s(c);
622
+ }, [s]), K(l, e, !1), /* @__PURE__ */ r.jsxs(
618
623
  "div",
619
624
  {
620
- ref: l,
621
625
  className: d(
622
626
  "flex"
623
627
  ),
624
628
  children: [
625
- o.length > 0 && /* @__PURE__ */ r.jsx(
629
+ n.length > 0 && /* @__PURE__ */ r.jsx(
626
630
  te,
627
631
  {
628
- tabs: o,
632
+ tabs: n,
633
+ ref: c,
629
634
  activeColor: "var(--neutral-900)",
630
- currentTabName: n
635
+ currentTabName: o
631
636
  }
632
637
  ),
633
638
  /* @__PURE__ */ r.jsx(
634
639
  "div",
635
640
  {
641
+ ref: f,
636
642
  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
637
643
  ${e ? "w-16" : "w-64"} ${a}`,
638
644
  children: t
@@ -642,13 +648,14 @@ const V = (t, e) => {
642
648
  }
643
649
  );
644
650
  }
645
- ), N = I(
651
+ ), j = C(
646
652
  (t, e) => /* @__PURE__ */ r.jsx(J, { children: /* @__PURE__ */ r.jsx(re, { ...t, ref: e }) })
647
653
  );
648
- N.displayName = "SidebarRoot";
654
+ j.displayName = "SidebarRoot";
649
655
  const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: d("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
650
656
  "button",
651
657
  {
658
+ type: "button",
652
659
  onClick: e,
653
660
  title: t ? "Expandir Navbar" : "Contraer Navbar",
654
661
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
@@ -669,8 +676,8 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
669
676
  }
670
677
  };
671
678
  return /* @__PURE__ */ r.jsx("div", { className: d(a(), t) });
672
- }, le = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), we = Object.assign(N, {
673
- Root: N,
679
+ }, le = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), we = Object.assign(j, {
680
+ Root: j,
674
681
  CollapseButton: ae,
675
682
  Header: oe,
676
683
  Divider: ne,
@@ -681,24 +688,24 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
681
688
  children: t,
682
689
  icon: e,
683
690
  label: a,
684
- href: o,
685
- onClick: n,
691
+ href: n,
692
+ onClick: o,
686
693
  isActive: i = !1,
687
- className: s
694
+ className: l
688
695
  }) => {
689
- const c = o ? "a" : "button";
696
+ const c = n ? "a" : "button";
690
697
  return /* @__PURE__ */ r.jsxs(
691
698
  c,
692
699
  {
693
- href: o,
694
- onClick: n,
700
+ href: n,
701
+ onClick: o,
695
702
  className: d(
696
703
  "nav-link-item",
697
704
  "flex items-center w-full px-3 py-2 text-left",
698
705
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
699
706
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
700
707
  i && "bg-neutral-medium-default",
701
- s
708
+ l
702
709
  ),
703
710
  children: [
704
711
  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 }) }),
@@ -711,17 +718,17 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
711
718
  count: t,
712
719
  maxCount: e = 9,
713
720
  className: a = "",
714
- size: o = "medium",
715
- variant: n = "primary",
721
+ size: n = "medium",
722
+ variant: o = "primary",
716
723
  showZero: i = !1
717
724
  }) => {
718
- const s = t, c = s > e ? `+${e}` : s;
719
- if (s === 0 && !i) return null;
720
- const l = {
725
+ const l = t, c = l > e ? `+${e}` : l;
726
+ if (l === 0 && !i) return null;
727
+ const u = {
721
728
  small: "w-4.5 h-4.5 text-xs ",
722
729
  medium: "w-5 h-5 text-xs",
723
730
  large: "w-6 h-6 text-sm"
724
- }, u = {
731
+ }, s = {
725
732
  primary: "bg-primary-default-default text-neutral-strong-default",
726
733
  secondary: "bg-neutral-medium-default text-neutral-strong-default",
727
734
  success: "bg-green-500 text-white",
@@ -730,24 +737,24 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
730
737
  };
731
738
  return /* @__PURE__ */ r.jsx("div", { className: d(
732
739
  "rounded-full flex items-center justify-center font-medium ",
733
- l[o],
734
740
  u[n],
741
+ s[o],
735
742
  a
736
743
  ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
737
744
  }, je = ({
738
745
  linkActions: t,
739
746
  onClick: e,
740
747
  activeAction: a
741
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
742
- const { isView: i = !1, actionName: s, title: c, icon: l, count: u, viewAccess: f } = o || {}, x = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = a === s;
743
- return x && /* @__PURE__ */ r.jsx(
748
+ }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
749
+ const { isView: i = !1, actionName: l, title: c, icon: u, count: s, viewAccess: f } = n || {}, m = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = a === l;
750
+ return m && /* @__PURE__ */ r.jsx(
744
751
  b.div,
745
752
  {
746
753
  initial: { opacity: 0 },
747
754
  animate: { opacity: 1 },
748
755
  transition: {
749
756
  duration: 0.4,
750
- delay: n * 0.03,
757
+ delay: o * 0.03,
751
758
  ease: "easeOut"
752
759
  },
753
760
  className: "relative flex justify-center w-full items-center px-3",
@@ -755,7 +762,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
755
762
  "button",
756
763
  {
757
764
  onClick: () => {
758
- e?.(s);
765
+ e?.(l);
759
766
  },
760
767
  className: d(
761
768
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
@@ -803,7 +810,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
803
810
  duration: 0.25,
804
811
  ease: "easeOut"
805
812
  },
806
- children: typeof l == "function" ? l({
813
+ children: typeof u == "function" ? u({
807
814
  size: 24,
808
815
  className: d(
809
816
  "nav-icon transition-colors duration-250 ease-out",
@@ -814,7 +821,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
814
821
  ),
815
822
  /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
816
823
  ] }),
817
- /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: u && u >= 1 ? /* @__PURE__ */ r.jsx(L, { count: u, maxCount: 9, className: "" }) : "" })
824
+ /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ r.jsx(L, { count: s, maxCount: 9, className: "" }) : "" })
818
825
  ]
819
826
  }
820
827
  )
@@ -822,14 +829,14 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
822
829
  }
823
830
  )
824
831
  },
825
- n
832
+ o
826
833
  );
827
834
  }) }), Ce = ({
828
835
  links: t,
829
836
  isLinkActive: e,
830
837
  onLinkClick: a
831
- }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
832
- const { isView: i = !1, viewAccess: s, path: c, title: l, icon: u, count: f, relatedPaths: x } = o, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), v = e(c) || (x?.some(
838
+ }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
839
+ const { isView: i = !1, viewAccess: l, path: c, title: u, icon: s, count: f, relatedPaths: m } = n, p = (typeof i == "function" ? i() : i !== !1) && (!l || l()), v = e(c) || (m?.some(
833
840
  (A) => e(A)
834
841
  ) ?? !1);
835
842
  return p && /* @__PURE__ */ r.jsx(
@@ -839,7 +846,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
839
846
  animate: { opacity: 1 },
840
847
  transition: {
841
848
  duration: 0.4,
842
- delay: n * 0.03,
849
+ delay: o * 0.03,
843
850
  ease: "easeOut"
844
851
  },
845
852
  className: "relative flex justify-center w-full items-center px-3",
@@ -895,7 +902,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
895
902
  duration: 0.25,
896
903
  ease: "easeOut"
897
904
  },
898
- children: typeof u == "function" ? u({
905
+ children: typeof s == "function" ? s({
899
906
  size: 24,
900
907
  className: d(
901
908
  "nav-icon transition-colors duration-250 ease-out",
@@ -904,7 +911,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
904
911
  }) : null
905
912
  }
906
913
  ),
907
- /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: l })
914
+ /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: u })
908
915
  ] }),
909
916
  /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ r.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
910
917
  ]
@@ -914,7 +921,7 @@ const ae = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("d
914
921
  }
915
922
  )
916
923
  },
917
- n
924
+ o
918
925
  );
919
926
  }) }), Se = ({
920
927
  isActiveModalNotification: t,
@@ -952,35 +959,35 @@ function Re({
952
959
  onFilesRejected: e,
953
960
  ...a
954
961
  }) {
955
- const o = k.useCallback(
956
- (i, s) => {
957
- i.length > 0 && t?.(i), s.length > 0 && e?.(s);
962
+ const n = I.useCallback(
963
+ (i, l) => {
964
+ i.length > 0 && t?.(i), l.length > 0 && e?.(l);
958
965
  },
959
966
  [t, e]
960
- ), n = F({
961
- onDrop: o,
967
+ ), o = F({
968
+ onDrop: n,
962
969
  ...a
963
970
  });
964
971
  return {
965
- ...n,
966
- hasErrors: n.fileRejections.length > 0
972
+ ...o,
973
+ hasErrors: o.fileRejections.length > 0
967
974
  };
968
975
  }
969
976
  const Te = (t, e = !0) => {
970
977
  const a = h(null);
971
- return j(() => {
978
+ return w(() => {
972
979
  if (!e) return;
973
- const o = (n) => {
974
- a.current && !a.current.contains(n.target) && t();
980
+ const n = (o) => {
981
+ a.current && !a.current.contains(o.target) && t();
975
982
  };
976
- return document.addEventListener("mousedown", o, {
983
+ return document.addEventListener("mousedown", n, {
977
984
  capture: !0
978
- }), document.addEventListener("touchstart", o, {
985
+ }), document.addEventListener("touchstart", n, {
979
986
  capture: !0
980
987
  }), () => {
981
- document.removeEventListener("mousedown", o, {
988
+ document.removeEventListener("mousedown", n, {
982
989
  capture: !0
983
- }), document.removeEventListener("touchstart", o, {
990
+ }), document.removeEventListener("touchstart", n, {
984
991
  capture: !0
985
992
  });
986
993
  };
@@ -1056,5 +1063,5 @@ export {
1056
1063
  pr as useIsMobile,
1057
1064
  ke as useNavbarCollapse,
1058
1065
  ye as useSidebar,
1059
- S as useSidebarContext
1066
+ k as useSidebarContext
1060
1067
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "2.5.4",
4
+ "version": "2.5.5",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",