prometeo-design-system 1.7.5 → 1.7.7

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.
@@ -1,48 +1,49 @@
1
- import { default as ge } from "./Avatar.es.js";
2
- import { default as we } from "./Button.es.js";
3
- import { C as Ne, a as Ce } from "./CardProfile-BZajBGbO.js";
4
- import { default as ke } from "./CheckBox.es.js";
5
- import { default as Be } from "./CheckboxFormik.es.js";
6
- import { default as Re, useDialogControl as qe } from "./DialogModal.es.js";
7
- import { default as Ae, useDrawerDesktop as Te } from "./DrawerDesktop.es.js";
8
- import { default as Ee, useDrawerMobile as Oe } from "./DrawerMobile.es.js";
9
- import { default as Fe } from "./Header.es.js";
10
- import { default as We } from "./Input.es.js";
11
- import { default as Me } from "./InputFormik.es.js";
12
- import { default as Ve } from "./Logo.es.js";
13
- import { Menu as Xe } from "./Menu.es.js";
14
- import { default as Je } from "./Pagination.es.js";
15
- import { ProfilePictureUpload as Qe } from "./ProfilePictureUpload.es.js";
16
- import { default as _e } from "./ProgressBar.es.js";
17
- import { default as tt } from "./Select.es.js";
18
- import { default as at } from "./SelectFormik.es.js";
19
- import { default as nt } from "./Spinner.es.js";
20
- import { Steps as st } from "./Steps.es.js";
21
- import { default as ct } from "./SwipeContainer.es.js";
22
- import { default as dt } from "./TabLinks.es.js";
23
- import { Table as pt, TableBody as mt, TableCaption as xt, TableCell as bt, TableFooter as yt, TableHead as vt, TableHeader as gt, TableRow as ht } from "./Table.es.js";
24
- import { default as jt } from "./TextArea.es.js";
25
- import { default as Ct } from "./Tooltip.es.js";
26
- import { InputMultiple as kt } from "./InputMultiple.es.js";
1
+ import { default as Ne } from "./Avatar.es.js";
2
+ import { default as Se } from "./Button.es.js";
3
+ import { C as Ie, a as Be } from "./CardProfile-BZajBGbO.js";
4
+ import { default as Re } from "./CheckBox.es.js";
5
+ import { default as Pe } from "./CheckboxFormik.es.js";
6
+ import { default as Te, useDialogControl as ze } from "./DialogModal.es.js";
7
+ import { default as Ee, useDrawerDesktop as Oe } from "./DrawerDesktop.es.js";
8
+ import { default as We, useDrawerMobile as $e } from "./DrawerMobile.es.js";
9
+ import { default as Me } from "./Header.es.js";
10
+ import { default as Ve } from "./Input.es.js";
11
+ import { default as _e } from "./InputFormik.es.js";
12
+ import { InputMultiple as Ze } from "./InputMultiple.es.js";
13
+ import { default as Ke } from "./Logo.es.js";
14
+ import { Menu as Ye } from "./Menu.es.js";
15
+ import { default as tt } from "./Pagination.es.js";
16
+ import { ProfilePictureUpload as at } from "./ProfilePictureUpload.es.js";
17
+ import { default as nt } from "./ProgressBar.es.js";
18
+ import { default as st } from "./Select.es.js";
19
+ import { default as ut } from "./SelectFormik.es.js";
20
+ import { default as dt } from "./Spinner.es.js";
21
+ import { Steps as pt } from "./Steps.es.js";
22
+ import { default as xt } from "./SwipeContainer.es.js";
23
+ import { Table as yt, TableBody as gt, TableCaption as vt, TableCell as ht, TableFooter as wt, TableHead as jt, TableHeader as Nt, TableRow as Ct } from "./Table.es.js";
24
+ import { default as kt } from "./TabLinks.es.js";
25
+ import { default as Bt } from "./TextArea.es.js";
26
+ import { default as Rt } from "./Tooltip.es.js";
27
27
  import { u as j } from "./LayoutGeneric-jDE96L2N.js";
28
- import { L as Bt, S as Lt } from "./LayoutGeneric-jDE96L2N.js";
28
+ import { L as Pt, S as Dt } from "./LayoutGeneric-jDE96L2N.js";
29
29
  import { j as r } from "./jsx-runtime-ByW6EXIE.js";
30
- import { c as s } from "./cn-B6yFEsav.js";
31
- import { useRef as p, useState as g, useLayoutEffect as q, createContext as P, useContext as A, forwardRef as N, useCallback as T, useEffect as C } from "react";
30
+ import { c as l } from "./cn-B6yFEsav.js";
31
+ import q, { useRef as p, useState as v, useLayoutEffect as P, createContext as D, useContext as T, forwardRef as N, useCallback as z, useEffect as C } from "react";
32
32
  import { useGSAP as S } from "@gsap/react";
33
- import c from "gsap";
33
+ import u from "gsap";
34
34
  import { Icons as b } from "./Icons.es.js";
35
35
  import { motion as d, AnimatePresence as k } from "framer-motion";
36
- import { default as qt } from "./OtpInput.es.js";
37
- import { useDevices as At } from "./useDevice.es.js";
38
- import { DropZone as Dt } from "./DropZone.es.js";
39
- const D = (t, e) => {
36
+ import { default as zt } from "./OtpInput.es.js";
37
+ import { useDropzone as A } from "react-dropzone";
38
+ import { useDevices as Et } from "./useDevice.es.js";
39
+ import { DropZone as Ht } from "./DropZone.es.js";
40
+ const E = (t, e) => {
40
41
  S(
41
42
  () => {
42
43
  if (!t.current) return;
43
44
  const o = t.current, a = document.querySelector('[data-main-content="true"]');
44
45
  if (e) {
45
- c.fromTo(
46
+ u.fromTo(
46
47
  o,
47
48
  {
48
49
  width: "0rem",
@@ -54,13 +55,13 @@ const D = (t, e) => {
54
55
  duration: 0.4,
55
56
  ease: "power2.out"
56
57
  }
57
- ), a && c.to(a, {
58
+ ), a && u.to(a, {
58
59
  marginLeft: o.offsetWidth + "px",
59
60
  duration: 0.4,
60
61
  ease: "power2.out"
61
62
  });
62
63
  const n = o.querySelectorAll(".secondary-bar-content > *");
63
- n.length > 0 && c.fromTo(
64
+ n.length > 0 && u.fromTo(
64
65
  n,
65
66
  {
66
67
  y: 20,
@@ -76,12 +77,12 @@ const D = (t, e) => {
76
77
  }
77
78
  );
78
79
  } else
79
- c.to(o, {
80
+ u.to(o, {
80
81
  width: "0rem",
81
82
  opacity: 0,
82
83
  duration: 0.3,
83
84
  ease: "power2.in"
84
- }), a && c.to(a, {
85
+ }), a && u.to(a, {
85
86
  marginLeft: "0px",
86
87
  duration: 0.3,
87
88
  ease: "power2.in"
@@ -96,18 +97,18 @@ const D = (t, e) => {
96
97
  width: a = "w-96",
97
98
  action: n,
98
99
  primarySidebarCollapsed: i,
99
- onClose: l
100
+ onClose: s
100
101
  }) => {
101
- const u = p(null), [f, m] = g({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
102
- return q(() => {
102
+ const c = p(null), [f, m] = v({ left: 0, width: 0 }), { primarySidebarRef: x } = j();
103
+ return P(() => {
103
104
  if (x?.current) {
104
- const v = x.current.getBoundingClientRect();
105
+ const g = x.current.getBoundingClientRect();
105
106
  m({
106
- left: v.width,
107
- width: v.width
107
+ left: g.width,
108
+ width: g.width
108
109
  });
109
110
  }
110
- }, [x, e, i]), D(u, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
111
+ }, [x, e, i]), E(c, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
111
112
  /* @__PURE__ */ r.jsx(
112
113
  "div",
113
114
  {
@@ -115,14 +116,14 @@ const D = (t, e) => {
115
116
  style: {
116
117
  left: f.left
117
118
  },
118
- onClick: l
119
+ onClick: s
119
120
  }
120
121
  ),
121
122
  /* @__PURE__ */ r.jsx(
122
123
  "div",
123
124
  {
124
- ref: u,
125
- className: s(
125
+ ref: c,
126
+ className: l(
126
127
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
127
128
  "absolute top-0 z-30",
128
129
  a,
@@ -136,32 +137,32 @@ const D = (t, e) => {
136
137
  }
137
138
  )
138
139
  ] }) });
139
- }, E = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
140
+ }, O = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("h-16 ", e), children: t }), H = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1 overflow-y-auto p-4", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: l("p-4 border-t border-neutral-strong-default", e), children: t }), $ = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("flex-1", t) }), ue = Object.assign(w, {
140
141
  Root: w,
141
- Header: E,
142
- Content: O,
143
- Footer: z,
144
- Spacer: F
145
- }), I = P(
142
+ Header: O,
143
+ Content: H,
144
+ Footer: W,
145
+ Spacer: $
146
+ }), I = D(
146
147
  void 0
147
- ), se = () => {
148
- const t = A(I);
148
+ ), ce = () => {
149
+ const t = T(I);
149
150
  if (!t)
150
151
  throw new Error("useSidebar must be used within a Sidebar.Root");
151
152
  return t;
152
- }, H = ({
153
+ }, F = ({
153
154
  children: t
154
155
  }) => {
155
- const [e, o] = g(!1), [a, n] = g(!1), i = p(null), l = () => {
156
+ const [e, o] = v(!1), [a, n] = v(!1), i = p(null), s = () => {
156
157
  o(!1), n(!1);
157
- }, u = () => {
158
+ }, c = () => {
158
159
  o(!0), n(!1);
159
160
  }, L = {
160
161
  isCollapsed: e,
161
162
  setIsCollapsed: o,
162
163
  navbarRef: i,
163
164
  toggleCollapse: () => {
164
- e ? l() : u();
165
+ e ? s() : c();
165
166
  },
166
167
  activeSecondaryBar: a ? "notifications" : null,
167
168
  openSecondaryBar: () => {
@@ -175,18 +176,18 @@ const D = (t, e) => {
175
176
  }
176
177
  };
177
178
  return /* @__PURE__ */ r.jsx(I.Provider, { value: L, children: t });
178
- }, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t, W = (t, e, o) => {
179
+ }, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t, M = (t, e, o) => {
179
180
  S(
180
181
  () => {
181
182
  if (!t.current) return;
182
- const a = c.timeline({
183
+ const a = u.timeline({
183
184
  defaults: { duration: 0.7, ease: "power1.out" }
184
185
  }), n = {
185
186
  navbar: t.current,
186
- navLabels: c.utils.toArray(".nav-label"),
187
- navIconWrappers: c.utils.toArray(".nav-icon-wrapper"),
188
- navIcons: c.utils.toArray(".nav-icon"),
189
- navLinkItems: c.utils.toArray(".nav-link-item"),
187
+ navLabels: u.utils.toArray(".nav-label"),
188
+ navIconWrappers: u.utils.toArray(".nav-icon-wrapper"),
189
+ navIcons: u.utils.toArray(".nav-icon"),
190
+ navLinkItems: u.utils.toArray(".nav-link-item"),
190
191
  logoutButton: document.querySelector(".logout-button"),
191
192
  logoutLabel: document.querySelector(".logout-label"),
192
193
  logoutIcon: document.querySelector(".logout-icon"),
@@ -214,14 +215,14 @@ const D = (t, e) => {
214
215
  ),
215
216
  // Secondary bar elements
216
217
  secondaryBar: document.querySelector(".secondary-bar"),
217
- secondaryBarContent: c.utils.toArray(".secondary-bar *"),
218
- badgeInLink: c.utils.toArray(".badge-in-link")
218
+ secondaryBarContent: u.utils.toArray(".secondary-bar *"),
219
+ badgeInLink: u.utils.toArray(".badge-in-link")
219
220
  };
220
- e ? $(a, n) : M(a, n), n.secondaryBar && U(n.secondaryBar);
221
+ e ? U(a, n) : V(a, n), n.secondaryBar && G(n.secondaryBar);
221
222
  },
222
223
  { scope: t, dependencies: [e, o] }
223
224
  );
224
- }, $ = (t, e) => {
225
+ }, U = (t, e) => {
225
226
  t.to(e.navbar, {
226
227
  width: "5rem",
227
228
  duration: 0.2,
@@ -360,7 +361,7 @@ const D = (t, e) => {
360
361
  },
361
362
  -1
362
363
  );
363
- }, M = (t, e) => {
364
+ }, V = (t, e) => {
364
365
  t.to(e.navbar, { width: "20rem" }, -1).to(
365
366
  e.navLinkItems,
366
367
  {
@@ -488,24 +489,24 @@ const D = (t, e) => {
488
489
  },
489
490
  0
490
491
  ).to(e.navIcons, { scale: 1 }, 0.3);
491
- }, U = (t, e) => {
492
- c.to(t, {
492
+ }, G = (t, e) => {
493
+ u.to(t, {
493
494
  x: "-100%",
494
495
  opacity: 0,
495
496
  duration: 0.3,
496
497
  ease: "power2.in"
497
498
  });
498
- }, V = N(
499
+ }, _ = N(
499
500
  ({ children: t, isCollapsed: e = !1, className: o = "" }, a) => {
500
- const n = p(null), { registerPrimarySidebar: i } = j(), l = T((u) => {
501
- n.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
501
+ const n = p(null), { registerPrimarySidebar: i } = j(), s = z((c) => {
502
+ n.current = c, typeof a == "function" ? a(c) : a && (a.current = c);
502
503
  }, [a]);
503
504
  return C(() => {
504
505
  n.current && i(n);
505
- }, [i]), W(n, e, !1), /* @__PURE__ */ r.jsx(
506
+ }, [i]), M(n, e, !1), /* @__PURE__ */ r.jsx(
506
507
  "div",
507
508
  {
508
- ref: l,
509
+ ref: s,
509
510
  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 flex-shrink-0
510
511
  ${e ? "w-16" : "w-64"} ${o}`,
511
512
  children: t
@@ -513,10 +514,10 @@ const D = (t, e) => {
513
514
  );
514
515
  }
515
516
  ), h = N(
516
- (t, e) => /* @__PURE__ */ r.jsx(H, { children: /* @__PURE__ */ r.jsx(V, { ...t, ref: e }) })
517
+ (t, e) => /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(_, { ...t, ref: e }) })
517
518
  );
518
519
  h.displayName = "SidebarRoot";
519
- const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
520
+ const X = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
520
521
  "button",
521
522
  {
522
523
  onClick: e,
@@ -525,7 +526,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
525
526
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
526
527
  children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
527
528
  }
528
- ) }), X = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: s("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-1 w-full" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
529
+ ) }), Z = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), J = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: l("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-1 w-full" }) }), K = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), Q = ({ className: t, size: e = "auto" }) => {
529
530
  const o = () => {
530
531
  switch (e) {
531
532
  case "auto":
@@ -538,37 +539,37 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
538
539
  return "h-8 w-8";
539
540
  }
540
541
  };
541
- return /* @__PURE__ */ r.jsx("div", { className: s(o(), t) });
542
- }, Q = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), le = Object.assign(h, {
542
+ return /* @__PURE__ */ r.jsx("div", { className: l(o(), t) });
543
+ }, Y = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), de = Object.assign(h, {
543
544
  Root: h,
544
- CollapseButton: G,
545
- Header: X,
546
- Divider: Z,
547
- Content: J,
548
- Spacer: K,
549
- Footer: Q
550
- }), ce = ({
545
+ CollapseButton: X,
546
+ Header: Z,
547
+ Divider: J,
548
+ Content: K,
549
+ Spacer: Q,
550
+ Footer: Y
551
+ }), fe = ({
551
552
  children: t,
552
553
  icon: e,
553
554
  label: o,
554
555
  href: a,
555
556
  onClick: n,
556
557
  isActive: i = !1,
557
- className: l
558
+ className: s
558
559
  }) => {
559
- const u = a ? "a" : "button";
560
+ const c = a ? "a" : "button";
560
561
  return /* @__PURE__ */ r.jsxs(
561
- u,
562
+ c,
562
563
  {
563
564
  href: a,
564
565
  onClick: n,
565
- className: s(
566
+ className: l(
566
567
  "nav-link-item",
567
568
  "flex items-center w-full px-3 py-2 text-left",
568
569
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
569
570
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
570
571
  i && "bg-neutral-medium-default",
571
- l
572
+ s
572
573
  ),
573
574
  children: [
574
575
  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 }) }),
@@ -585,8 +586,8 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
585
586
  variant: n = "primary",
586
587
  showZero: i = !1
587
588
  }) => {
588
- const l = t, u = l > e ? `+${e}` : l;
589
- if (l === 0 && !i) return null;
589
+ const s = t, c = s > e ? `+${e}` : s;
590
+ if (s === 0 && !i) return null;
590
591
  const f = {
591
592
  small: "w-4.5 h-4.5 text-xs ",
592
593
  medium: "w-5 h-5 text-xs",
@@ -598,13 +599,13 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
598
599
  warning: "bg-yellow-500 text-black",
599
600
  danger: "bg-red-500 text-white"
600
601
  };
601
- return /* @__PURE__ */ r.jsx("div", { className: s(
602
+ return /* @__PURE__ */ r.jsx("div", { className: l(
602
603
  "rounded-full flex items-center justify-center font-medium ",
603
604
  f[a],
604
605
  m[n],
605
606
  o
606
- ), children: /* @__PURE__ */ r.jsx("span", { children: u }) });
607
- }, ue = ({
607
+ ), children: /* @__PURE__ */ r.jsx("span", { children: c }) });
608
+ }, pe = ({
608
609
  linkActions: t,
609
610
  onClick: e,
610
611
  activeAction: o
@@ -625,7 +626,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
625
626
  onClick: () => {
626
627
  e?.(a.action);
627
628
  },
628
- className: s(
629
+ className: l(
629
630
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
630
631
  "transition-all duration-300 ease-out w-full",
631
632
  "group hover:bg-neutral-medium-selected",
@@ -673,7 +674,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
673
674
  },
674
675
  children: typeof a.icon == "function" ? a.icon({
675
676
  size: 24,
676
- className: s(
677
+ className: l(
677
678
  "nav-icon transition-colors duration-250 ease-out",
678
679
  o === a.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
679
680
  )
@@ -691,13 +692,13 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
691
692
  )
692
693
  },
693
694
  n
694
- )) }), de = ({
695
+ )) }), me = ({
695
696
  links: t,
696
697
  isLinkActive: e,
697
698
  onLinkClick: o
698
699
  }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => {
699
700
  const i = e(a.path) || (a.relatedPaths?.some(
700
- (l) => e(l)
701
+ (s) => e(s)
701
702
  ) ?? !1);
702
703
  return a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
703
704
  d.div,
@@ -716,7 +717,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
716
717
  onClick: () => {
717
718
  o?.(a.path);
718
719
  },
719
- className: s(
720
+ className: l(
720
721
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
721
722
  "transition-all duration-300 ease-out w-full",
722
723
  "group hover:bg-neutral-medium-selected",
@@ -764,7 +765,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
764
765
  },
765
766
  children: typeof a.icon == "function" ? a.icon({
766
767
  size: 24,
767
- className: s(
768
+ className: l(
768
769
  "nav-icon transition-colors duration-250 ease-out",
769
770
  i ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
770
771
  )
@@ -783,18 +784,18 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
783
784
  },
784
785
  n
785
786
  );
786
- }) }), fe = ({
787
+ }) }), xe = ({
787
788
  isActiveModalNotification: t,
788
789
  setIsActiveModalNotification: e
789
790
  }) => ({ handleNotificationClick: () => {
790
791
  e(!0);
791
- }, isActiveModalNotification: t }), pe = (t) => {
792
+ }, isActiveModalNotification: t }), be = (t) => {
792
793
  const e = p(null);
793
794
  return {
794
795
  isCollapsed: t,
795
796
  navbarRef: e
796
797
  };
797
- }, me = ({
798
+ }, ye = ({
798
799
  isCollapsed: t,
799
800
  onToggle: e
800
801
  }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
@@ -806,14 +807,34 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
806
807
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
807
808
  children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
808
809
  }
809
- ) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
810
+ ) }), ge = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
810
811
  "img",
811
812
  {
812
813
  src: t,
813
814
  className: "h-2/3 rounded-full",
814
815
  alt: e ?? ""
815
816
  }
816
- ) }), be = (t, e = !0) => {
817
+ ) });
818
+ function ve({
819
+ onFilesAccepted: t,
820
+ onFilesRejected: e,
821
+ ...o
822
+ }) {
823
+ const a = q.useCallback(
824
+ (i, s) => {
825
+ i.length > 0 && t?.(i), s.length > 0 && e?.(s);
826
+ },
827
+ [t, e]
828
+ ), n = A({
829
+ onDrop: a,
830
+ ...o
831
+ });
832
+ return {
833
+ ...n,
834
+ hasErrors: n.fileRejections.length > 0
835
+ };
836
+ }
837
+ const he = (t, e = !0) => {
817
838
  const o = p(null);
818
839
  return C(() => {
819
840
  if (!e) return;
@@ -834,61 +855,62 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("di
834
855
  }, [t, e]), o;
835
856
  };
836
857
  export {
837
- ge as Avatar,
858
+ Ne as Avatar,
838
859
  B as Badge,
839
- we as Button,
840
- Ne as CardProfile,
841
- Ce as ChangueAccount,
842
- ke as CheckBox,
843
- Be as CheckboxFormik,
844
- xe as CompanyLogo,
845
- Re as DialogModal,
846
- Ae as DrawerDesktop,
847
- Ee as DrawerMobile,
848
- Dt as DropZone,
849
- Fe as Header,
860
+ Se as Button,
861
+ Ie as CardProfile,
862
+ Be as ChangueAccount,
863
+ Re as CheckBox,
864
+ Pe as CheckboxFormik,
865
+ ge as CompanyLogo,
866
+ Te as DialogModal,
867
+ Ee as DrawerDesktop,
868
+ We as DrawerMobile,
869
+ Ht as DropZone,
870
+ Me as Header,
850
871
  b as Icons,
851
- We as Input,
852
- Me as InputFormik,
853
- kt as InputMultiple,
854
- Bt as LayoutGeneric,
855
- Ve as Logo,
856
- Xe as Menu,
857
- ue as NavBarActions,
858
- me as NavbarCollapseButton,
859
- de as NavbarLinks,
860
- ce as NavigationLink,
861
- qt as OtpInput,
862
- Je as Pagination,
863
- Qe as ProfilePictureUpload,
864
- _e as ProgressBar,
865
- ie as SecondaryBar,
866
- tt as Select,
867
- at as SelectFormik,
868
- le as Sidebar,
869
- H as SidebarProvider,
870
- Lt as SidebarRefProvider,
871
- nt as Spinner,
872
- st as Steps,
873
- ct as SwipeContainer,
874
- dt as TabLinks,
875
- pt as Table,
876
- mt as TableBody,
877
- xt as TableCaption,
878
- bt as TableCell,
879
- yt as TableFooter,
880
- vt as TableHead,
881
- gt as TableHeader,
882
- ht as TableRow,
883
- jt as TextArea,
884
- Ct as Tooltip,
885
- fe as useActionsNavbar,
886
- be as useClickOutside,
887
- At as useDevices,
888
- qe as useDialogControl,
889
- Te as useDrawerDesktop,
890
- Oe as useDrawerMobile,
891
- pe as useNavbarCollapse,
892
- se as useSidebar,
872
+ Ve as Input,
873
+ _e as InputFormik,
874
+ Ze as InputMultiple,
875
+ Pt as LayoutGeneric,
876
+ Ke as Logo,
877
+ Ye as Menu,
878
+ pe as NavBarActions,
879
+ ye as NavbarCollapseButton,
880
+ me as NavbarLinks,
881
+ fe as NavigationLink,
882
+ zt as OtpInput,
883
+ tt as Pagination,
884
+ at as ProfilePictureUpload,
885
+ nt as ProgressBar,
886
+ ue as SecondaryBar,
887
+ st as Select,
888
+ ut as SelectFormik,
889
+ de as Sidebar,
890
+ F as SidebarProvider,
891
+ Dt as SidebarRefProvider,
892
+ dt as Spinner,
893
+ pt as Steps,
894
+ xt as SwipeContainer,
895
+ kt as TabLinks,
896
+ yt as Table,
897
+ gt as TableBody,
898
+ vt as TableCaption,
899
+ ht as TableCell,
900
+ wt as TableFooter,
901
+ jt as TableHead,
902
+ Nt as TableHeader,
903
+ Ct as TableRow,
904
+ Bt as TextArea,
905
+ Rt as Tooltip,
906
+ xe as useActionsNavbar,
907
+ he as useClickOutside,
908
+ Et as useDevices,
909
+ ze as useDialogControl,
910
+ Oe as useDrawerDesktop,
911
+ $e as useDrawerMobile,
912
+ ve as useFileDropzone,
913
+ be as useNavbarCollapse,
914
+ ce as useSidebar,
893
915
  j as useSidebarContext
894
916
  };