prometeo-design-system 2.2.2 → 2.3.1

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 (58) 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-BhFog7j5.js → CardProfile-BiYr6kY9.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 +2 -2
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -1
  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.d.ts +4 -0
  16. package/dist/Image.es.js +91 -0
  17. package/dist/ImageGallery-O5Y4oBrD.js +352 -0
  18. package/dist/ImageGallery.d.ts +6 -0
  19. package/dist/ImageGallery.es.js +23 -0
  20. package/dist/Input.es.js +1 -1
  21. package/dist/InputFormik.es.js +1 -1
  22. package/dist/InputMultiple.es.js +1 -1
  23. package/dist/{LayoutGeneric-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.js} +1 -1
  24. package/dist/LayoutGeneric.es.js +1 -1
  25. package/dist/Logo.es.js +1 -1
  26. package/dist/Menu.es.js +1 -1
  27. package/dist/OtpInput.es.js +1 -1
  28. package/dist/Pagination.es.js +1 -1
  29. package/dist/ProfilePictureUpload.es.js +1 -1
  30. package/dist/ProgressBar.es.js +1 -1
  31. package/dist/SegmentedButton.d.ts +2 -0
  32. package/dist/SegmentedButton.es.js +188 -0
  33. package/dist/Select.es.js +1 -1
  34. package/dist/SelectFormik.es.js +1 -1
  35. package/dist/Skeleton.es.js +33 -32
  36. package/dist/Spinner.es.js +1 -1
  37. package/dist/Steps.es.js +1 -1
  38. package/dist/SwipeContainer.es.js +1 -1
  39. package/dist/Switch.es.js +1 -1
  40. package/dist/TabLinks.es.js +1 -1
  41. package/dist/Table.es.js +1 -1
  42. package/dist/TextArea.es.js +1 -1
  43. package/dist/Tooltip.es.js +1 -1
  44. package/dist/components/Image/GalleryPreview.d.ts +8 -0
  45. package/dist/components/Image/Image.d.ts +23 -0
  46. package/dist/components/Image/ImageGallery.d.ts +18 -0
  47. package/dist/components/Image/LightBox.d.ts +14 -0
  48. package/dist/components/Image/index.d.ts +5 -0
  49. package/dist/components/Image/useImageGallery.d.ts +10 -0
  50. package/dist/exports/Image.d.ts +1 -0
  51. package/dist/exports/ImageGallery.d.ts +2 -0
  52. package/dist/index.d.ts +4 -0
  53. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  54. package/dist/pages/ImagesPage.d.ts +2 -0
  55. package/dist/preview/ImagePreview.d.ts +2 -0
  56. package/dist/prometeo-design-system.css +1 -1
  57. package/dist/prometeo-design-system.es.js +272 -447
  58. package/package.json +9 -1
@@ -1,233 +1,56 @@
1
- import { default as Ve } from "./Avatar.es.js";
2
- import { B as Xe } from "./Button-DsbEyjth.js";
3
- import { C as Je, a as Ke } from "./CardProfile-BhFog7j5.js";
4
- import { default as Ye } from "./CheckBox.es.js";
5
- import { default as tt } from "./CheckboxFormik.es.js";
6
- import { default as rt, useDialogControl as ot } from "./DialogModal.es.js";
7
- import { default as it, useDrawerDesktop as st } from "./DrawerDesktop.es.js";
8
- import { default as ct, useDrawerMobile as ut } from "./DrawerMobile.es.js";
9
- import { default as ft } from "./Header.es.js";
10
- import { default as pt } from "./Input.es.js";
11
- import { default as ht } from "./InputFormik.es.js";
12
- import { InputMultiple as gt } from "./InputMultiple.es.js";
13
- import { default as yt } from "./Logo.es.js";
14
- import { Menu as jt } from "./Menu.es.js";
15
- import { default as Ct } from "./Pagination.es.js";
16
- import { ProfilePictureUpload as kt } from "./ProfilePictureUpload.es.js";
17
- import { default as Rt } from "./ProgressBar.es.js";
18
- import { default as Tt } from "./Select.es.js";
19
- import { default as Lt } from "./SelectFormik.es.js";
20
- import { default as Ot } from "./Spinner.es.js";
21
- import { Steps as Et } from "./Steps.es.js";
22
- import { default as qt } from "./SwipeContainer.es.js";
23
- import { Switch as Ht } from "./Switch.es.js";
24
- import { default as Mt } from "./DatePicker.es.js";
25
- import { Table as Ft, TableBody as Ut, TableCaption as Vt, TableCell as Gt, TableFooter as Xt, TableHead as Zt, TableHeader as Jt, TableRow as Kt } from "./Table.es.js";
26
- import { default as Yt } from "./TabLinks.es.js";
27
- import { default as ta } from "./TextArea.es.js";
28
- import { default as ra } from "./Tooltip.es.js";
29
- import { Skeleton as na } from "./Skeleton.es.js";
30
- import { j as a } from "./jsx-runtime-DKDX3adD.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-BiYr6kY9.js";
4
+ import { default as Pe } from "./CheckBox.es.js";
5
+ import { default as Te } from "./CheckboxFormik.es.js";
6
+ import { default as De, useDialogControl as Ee } from "./DialogModal.es.js";
7
+ import { default as He, useDrawerDesktop as We } from "./DrawerDesktop.es.js";
8
+ import { default as Fe, useDrawerMobile as Me } from "./DrawerMobile.es.js";
9
+ import { default as Ge } from "./Header.es.js";
10
+ import { default as _e } from "./Input.es.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 st } from "./ProgressBar.es.js";
18
+ import { default as ct } from "./Select.es.js";
19
+ import { default as dt } from "./SelectFormik.es.js";
20
+ import { default as mt } from "./Spinner.es.js";
21
+ import { Steps as xt } from "./Steps.es.js";
22
+ import { default as vt } from "./SwipeContainer.es.js";
23
+ import { Switch as yt } from "./Switch.es.js";
24
+ import { default as wt } from "./DatePicker.es.js";
25
+ import { Table as Nt, TableBody as Ct, TableCaption as St, TableCell as kt, TableFooter as It, TableHead as Bt, TableHeader as Rt, TableRow as Lt } from "./Table.es.js";
26
+ import { default as Pt } from "./TabLinks.es.js";
27
+ import { default as Tt } from "./TextArea.es.js";
28
+ import { default as Dt } from "./Tooltip.es.js";
29
+ import { Skeleton as Ot } from "./Skeleton.es.js";
30
+ import { SegmentedButton as Wt } from "./SegmentedButton.es.js";
31
+ import { u as S } from "./LayoutGeneric-jDE96L2N.js";
32
+ import { L as Ft, S as Mt } from "./LayoutGeneric-jDE96L2N.js";
33
+ import { I as Gt } from "./ImageGallery-O5Y4oBrD.js";
34
+ import { default as _t } from "./Image.es.js";
35
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
31
36
  import { c as u } from "./cn-B6yFEsav.js";
32
- import _, { useState as k, useMemo as z, useEffect as T, useRef as N, useLayoutEffect as Y, createContext as ee, useContext as te, forwardRef as M, useCallback as ae } from "react";
33
- import { motion as g, AnimatePresence as $ } from "framer-motion";
34
- import { u as F } from "./LayoutGeneric-p4Pll4Cm.js";
35
- import { L as sa, S as la } from "./LayoutGeneric-p4Pll4Cm.js";
36
- import { useGSAP as U } from "@gsap/react";
37
- import h from "gsap";
38
- import { Icons as R } from "./Icons.es.js";
39
- import { default as ua } from "./OtpInput.es.js";
40
- import { useDropzone as re } from "react-dropzone";
41
- import { useIsMobile as fa } from "./useDevice.es.js";
42
- import { DropZone as pa } from "./DropZone.es.js";
43
- const We = (t) => {
44
- const [e, o] = k({}), { size: r = "medium", color: n = "default", options: i, value: s, name: d, onChange: l, icon: f, allowExpand: c = !1, disabled: x = !1 } = t, p = Math.max(i.findIndex((m) => m.value === s), 0), b = i.length, I = 9, W = 26, w = {
45
- small: 120,
46
- medium: 120,
47
- large: 120
48
- }, v = {
49
- small: 94,
50
- medium: 94,
51
- large: 94
52
- }, D = 16, X = {
53
- small: { container: "p-2" },
54
- medium: { container: "p-4 h-[48px] rounded-lg" },
55
- large: { container: "p-6" }
56
- }, C = {
57
- default: {
58
- switch: "bg-primary-medium-default text-neutral-weak-default ",
59
- container: "border-neutral-default-default",
60
- icon: "text-neutral-weak-default",
61
- option: "text-neutral-medium-default"
62
- },
63
- success: {
64
- switch: "bg-success-medium-default text-neutral-weak-default",
65
- container: "border-neutral-default-default",
66
- icon: "text-neutral-weak-default",
67
- option: "text-neutral-medium-default"
68
- },
69
- danger: {
70
- switch: "bg-error-medium-default text-neutral-weak-default",
71
- container: "border-neutral-default-default",
72
- icon: "text-neutral-weak-default",
73
- option: "text-neutral-medium-default"
74
- },
75
- warning: {
76
- switch: "bg-warning-medium-default text-neutral-weak-default",
77
- container: "border-neutral-default-default",
78
- icon: "text-neutral-weak-default",
79
- option: "text-neutral-medium-default"
80
- },
81
- disabled: {
82
- switch: "bg-primary-medium-disabled text-neutral-strong-disabled",
83
- container: "border-neutral-default-disabled",
84
- icon: "text-neutral-strong-disabled",
85
- option: "text-neutral-strong-disabled"
86
- }
87
- }, q = i.find((m) => m.value === s) ?? i[0], L = q.label.length * I + D * 2 + W, A = () => z(() => Object.values(e).reduce((y, j) => y + j, 0) + W, [e]), O = {
88
- small: c ? A() : (b - 1) * v.small + w.small,
89
- medium: c ? A() : (b - 1) * v.medium + w.medium,
90
- large: c ? A() : (b - 1) * v.large + w.large
91
- };
92
- T(() => {
93
- if (!c) return;
94
- let m = {};
95
- i.forEach((y, j) => {
96
- m[j] = y.label.length * I + D * 2;
97
- }), o(m);
98
- }, []);
99
- const Z = z(() => c ? Object.values(e).reduce((m, y, j) => j < p ? m + y : m, 0) : Math.max(p * v[r] - 2, 0), [p]), J = () => {
100
- if (x) return;
101
- const m = p === i.length - 1 ? i[0] : i[p + 1];
102
- l?.(d, m.value);
103
- }, S = x ? "disabled" : n;
104
- return /* @__PURE__ */ a.jsxs(
105
- "button",
106
- {
107
- name: d,
108
- type: "button",
109
- id: "segmented-button-container",
110
- style: {
111
- width: O[r],
112
- minWidth: O[r],
113
- maxWidth: O[r]
114
- },
115
- className: u(
116
- X[r].container,
117
- C[S].container,
118
- "border-[1px]",
119
- !x && "cursor-pointer",
120
- "relative"
121
- ),
122
- children: [
123
- /* @__PURE__ */ a.jsxs(
124
- g.div,
125
- {
126
- id: "segmented-button-switcher",
127
- animate: {
128
- left: `${Z}px`,
129
- width: c ? L : w[r],
130
- minWidth: c ? L : w[r],
131
- maxWidth: c ? L : w[r]
132
- },
133
- transition: {
134
- type: "spring",
135
- stiffness: 260,
136
- damping: 30
137
- },
138
- className: u(
139
- "absolute top-0 left-0 h-full rounded-[6px] z-30",
140
- "flex items-center justify-center gap-[2px] p-4",
141
- C[S].switch
142
- ),
143
- onClick: () => {
144
- !x && J();
145
- },
146
- children: [
147
- f && _.cloneElement(f, { className: u(
148
- "w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
149
- C[S].icon
150
- ) }),
151
- /* @__PURE__ */ a.jsx(
152
- "p",
153
- {
154
- className: u(
155
- "prometeo-fonts-label-large ",
156
- " overflow-hidden overflow-ellipsis text-nowrap ",
157
- C[S].switch
158
- ),
159
- children: q.label
160
- }
161
- )
162
- ]
163
- }
164
- ),
165
- /* @__PURE__ */ a.jsx(
166
- "div",
167
- {
168
- id: "segmented-button-options",
169
- className: u(
170
- "absolute top-0 left-0 w-full h-full overflow-hidden",
171
- "flex justify-center"
172
- ),
173
- children: i?.map((m, y) => {
174
- const j = m.value === (s || i[0].value), K = c ? e[y] + W : w[r], Q = c ? e[y] : v[r], P = j ? K : Q;
175
- return /* @__PURE__ */ a.jsx(
176
- g.span,
177
- {
178
- id: "segmented-button-option",
179
- onClick: () => {
180
- !x && l?.(d, m.value);
181
- },
182
- animate: {
183
- width: P,
184
- minWidth: P,
185
- maxWidth: P
186
- },
187
- transition: {
188
- duration: 0.3,
189
- delay: 0
190
- },
191
- className: u(
192
- "z-20 h-full ",
193
- "flex items-center justify-center px-3 py-[6px]",
194
- "prometeo-fonts-label-large text-neutral-medium-default",
195
- " overflow-hidden ",
196
- !x && "cursor-pointer"
197
- ),
198
- "aria-label": m.label,
199
- children: /* @__PURE__ */ a.jsx(
200
- "p",
201
- {
202
- style: {
203
- width: c ? "max-content" : v[r],
204
- minWidth: c ? "max-content" : v[r],
205
- maxWidth: c ? "max-content" : v[r]
206
- },
207
- className: u(
208
- "px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full",
209
- C[S].option
210
- ),
211
- children: m.label
212
- }
213
- )
214
- },
215
- m.value
216
- );
217
- })
218
- }
219
- )
220
- ]
221
- }
222
- );
223
- }, oe = (t, e) => {
224
- U(
37
+ import P, { useRef as g, useState as y, useLayoutEffect as q, createContext as T, useContext as z, useEffect as N, forwardRef as k, useCallback as D } from "react";
38
+ import { useGSAP as I } from "@gsap/react";
39
+ import m from "gsap";
40
+ import { Icons as h } from "./Icons.es.js";
41
+ import { motion as b, AnimatePresence as B } from "framer-motion";
42
+ import { default as Zt } from "./OtpInput.es.js";
43
+ import { useDropzone as E } from "react-dropzone";
44
+ import { useIsMobile as Kt } from "./useDevice.es.js";
45
+ import { DropZone as Yt } from "./DropZone.es.js";
46
+ const O = (t, e) => {
47
+ I(
225
48
  () => {
226
49
  if (!t.current) return;
227
- const o = t.current, r = document.querySelector('[data-main-content="true"]');
50
+ const r = t.current, o = document.querySelector('[data-main-content="true"]');
228
51
  if (e) {
229
- h.fromTo(
230
- o,
52
+ m.fromTo(
53
+ r,
231
54
  {
232
55
  width: "0rem",
233
56
  opacity: 0
@@ -238,13 +61,13 @@ const We = (t) => {
238
61
  duration: 0.4,
239
62
  ease: "power2.out"
240
63
  }
241
- ), r && h.to(r, {
242
- marginLeft: o.offsetWidth + "px",
64
+ ), o && m.to(o, {
65
+ marginLeft: r.offsetWidth + "px",
243
66
  duration: 0.4,
244
67
  ease: "power2.out"
245
68
  });
246
- const n = o.querySelectorAll(".secondary-bar-content > *");
247
- n.length > 0 && h.fromTo(
69
+ const n = r.querySelectorAll(".secondary-bar-content > *");
70
+ n.length > 0 && m.fromTo(
248
71
  n,
249
72
  {
250
73
  y: 20,
@@ -260,12 +83,12 @@ const We = (t) => {
260
83
  }
261
84
  );
262
85
  } else
263
- h.to(o, {
86
+ m.to(r, {
264
87
  width: "0rem",
265
88
  opacity: 0,
266
89
  duration: 0.3,
267
90
  ease: "power2.in"
268
- }), r && h.to(r, {
91
+ }), o && m.to(o, {
269
92
  marginLeft: "0px",
270
93
  duration: 0.3,
271
94
  ease: "power2.in"
@@ -273,25 +96,25 @@ const We = (t) => {
273
96
  },
274
97
  { scope: t, dependencies: [e] }
275
98
  );
276
- }, H = ({
99
+ }, C = ({
277
100
  children: t,
278
101
  isOpen: e = !1,
279
- className: o = "",
280
- width: r = "w-96",
102
+ className: r = "",
103
+ width: o = "w-96",
281
104
  action: n,
282
105
  primarySidebarCollapsed: i,
283
106
  onClose: s
284
107
  }) => {
285
- const d = N(null), [l, f] = k({ left: 0, width: 0 }), { primarySidebarRef: c } = F();
286
- return Y(() => {
287
- if (c?.current) {
288
- const x = c.current.getBoundingClientRect();
289
- f({
108
+ const c = g(null), [l, d] = y({ left: 0, width: 0 }), { primarySidebarRef: f } = S();
109
+ return q(() => {
110
+ if (f?.current) {
111
+ const x = f.current.getBoundingClientRect();
112
+ d({
290
113
  left: x.width,
291
114
  width: x.width
292
115
  });
293
116
  }
294
- }, [c, e, i]), oe(d, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
117
+ }, [f, e, i]), O(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
295
118
  /* @__PURE__ */ a.jsx(
296
119
  "div",
297
120
  {
@@ -305,12 +128,12 @@ const We = (t) => {
305
128
  /* @__PURE__ */ a.jsx(
306
129
  "div",
307
130
  {
308
- ref: d,
131
+ ref: c,
309
132
  className: u(
310
133
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
311
134
  "absolute top-0 z-30",
312
- r,
313
- o
135
+ o,
136
+ r
314
137
  ),
315
138
  style: {
316
139
  left: l.left
@@ -320,34 +143,34 @@ const We = (t) => {
320
143
  }
321
144
  )
322
145
  ] }) });
323
- }, ne = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), ie = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), se = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), le = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), Le = Object.assign(H, {
324
- Root: H,
325
- Header: ne,
326
- Content: ie,
327
- Footer: se,
328
- Spacer: le
329
- }), V = ee(
146
+ }, H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), $ = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(C, {
147
+ Root: C,
148
+ Header: H,
149
+ Content: W,
150
+ Footer: $,
151
+ Spacer: F
152
+ }), R = T(
330
153
  void 0
331
- ), Ae = () => {
332
- const t = te(V);
154
+ ), fe = () => {
155
+ const t = z(R);
333
156
  if (!t)
334
157
  throw new Error("useSidebar must be used within a Sidebar.Root");
335
158
  return t;
336
- }, ce = ({
159
+ }, M = ({
337
160
  children: t
338
161
  }) => {
339
- const [e, o] = k(!1), [r, n] = k(!1), i = N(null), s = () => {
340
- o(!1), n(!1);
341
- }, d = () => {
342
- o(!0), n(!1);
162
+ const [e, r] = y(!1), [o, n] = y(!1), i = g(null), s = () => {
163
+ r(!1), n(!1);
164
+ }, c = () => {
165
+ r(!0), n(!1);
343
166
  }, p = {
344
167
  isCollapsed: e,
345
- setIsCollapsed: o,
168
+ setIsCollapsed: r,
346
169
  navbarRef: i,
347
170
  toggleCollapse: () => {
348
- e ? s() : d();
171
+ e ? s() : c();
349
172
  },
350
- activeSecondaryBar: r ? "notifications" : null,
173
+ activeSecondaryBar: o ? "notifications" : null,
351
174
  openSecondaryBar: () => {
352
175
  n(!0);
353
176
  },
@@ -355,22 +178,22 @@ const We = (t) => {
355
178
  n(!1);
356
179
  },
357
180
  toggleSecondaryBar: () => {
358
- n((b) => !b);
181
+ n((v) => !v);
359
182
  }
360
183
  };
361
- return /* @__PURE__ */ a.jsx(V.Provider, { value: p, children: t });
362
- }, B = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, ue = (t, e, o) => {
363
- U(
184
+ return /* @__PURE__ */ a.jsx(R.Provider, { value: p, children: t });
185
+ }, w = (t, e, r, o) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, o) : t, U = (t, e, r) => {
186
+ I(
364
187
  () => {
365
188
  if (!t.current) return;
366
- const r = h.timeline({
189
+ const o = m.timeline({
367
190
  defaults: { duration: 0.7, ease: "power1.out" }
368
191
  }), n = {
369
192
  navbar: t.current,
370
- navLabels: h.utils.toArray(".nav-label"),
371
- navIconWrappers: h.utils.toArray(".nav-icon-wrapper"),
372
- navIcons: h.utils.toArray(".nav-icon"),
373
- navLinkItems: h.utils.toArray(".nav-link-item"),
193
+ navLabels: m.utils.toArray(".nav-label"),
194
+ navIconWrappers: m.utils.toArray(".nav-icon-wrapper"),
195
+ navIcons: m.utils.toArray(".nav-icon"),
196
+ navLinkItems: m.utils.toArray(".nav-link-item"),
374
197
  logoutButton: document.querySelector(".logout-button"),
375
198
  logoutLabel: document.querySelector(".logout-label"),
376
199
  logoutIcon: document.querySelector(".logout-icon"),
@@ -398,14 +221,14 @@ const We = (t) => {
398
221
  ),
399
222
  // Secondary bar elements
400
223
  secondaryBar: document.querySelector(".secondary-bar"),
401
- secondaryBarContent: h.utils.toArray(".secondary-bar *"),
402
- badgeInLink: h.utils.toArray(".badge-in-link")
224
+ secondaryBarContent: m.utils.toArray(".secondary-bar *"),
225
+ badgeInLink: m.utils.toArray(".badge-in-link")
403
226
  };
404
- e ? de(r, n) : fe(r, n), n.secondaryBar && me(n.secondaryBar);
227
+ e ? G(o, n) : V(o, n), n.secondaryBar && _(n.secondaryBar);
405
228
  },
406
- { scope: t, dependencies: [e, o] }
229
+ { scope: t, dependencies: [e, r] }
407
230
  );
408
- }, de = (t, e) => {
231
+ }, G = (t, e) => {
409
232
  t.to(e.navbar, {
410
233
  width: "5rem",
411
234
  duration: 0.2,
@@ -464,7 +287,7 @@ const We = (t) => {
464
287
  marginLeft: 0
465
288
  },
466
289
  0
467
- ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), B(
290
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), w(
468
291
  t,
469
292
  e.buttonCrevron,
470
293
  {
@@ -477,7 +300,7 @@ const We = (t) => {
477
300
  }
478
301
  },
479
302
  0
480
- ), B(
303
+ ), w(
481
304
  t,
482
305
  e.buttonContentChevron,
483
306
  {
@@ -544,7 +367,7 @@ const We = (t) => {
544
367
  },
545
368
  -1
546
369
  );
547
- }, fe = (t, e) => {
370
+ }, V = (t, e) => {
548
371
  t.to(e.navbar, { width: "20rem" }, -1).to(
549
372
  e.navLinkItems,
550
373
  {
@@ -554,7 +377,7 @@ const We = (t) => {
554
377
  justifyContent: "flex-start"
555
378
  },
556
379
  -1
557
- ), B(
380
+ ), w(
558
381
  t,
559
382
  e.buttonCrevron,
560
383
  {
@@ -567,7 +390,7 @@ const We = (t) => {
567
390
  }
568
391
  },
569
392
  0
570
- ), B(
393
+ ), w(
571
394
  t,
572
395
  e.buttonContentChevron,
573
396
  {
@@ -672,19 +495,19 @@ const We = (t) => {
672
495
  },
673
496
  0
674
497
  ).to(e.navIcons, { scale: 1 }, 0.3);
675
- }, me = (t, e) => {
676
- h.to(t, {
498
+ }, _ = (t, e) => {
499
+ m.to(t, {
677
500
  x: "-100%",
678
501
  opacity: 0,
679
502
  duration: 0.3,
680
503
  ease: "power2.in"
681
504
  });
682
- }, pe = (t) => {
683
- const [e, o] = k(t?.currentTabName || t.tabs[0].name), r = N(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
684
- T(() => {
685
- r.current?.style.setProperty("--tab-bg", s);
505
+ }, X = (t) => {
506
+ const [e, r] = y(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: n = [], className: i, activeColor: s = "var(--neutral-900)" } = t;
507
+ N(() => {
508
+ o.current?.style.setProperty("--tab-bg", s);
686
509
  }, [s]);
687
- const d = n.find((l) => l.name === (t?.currentTabName || e));
510
+ const c = n.find((l) => l.name === (t?.currentTabName || e));
688
511
  return /* @__PURE__ */ a.jsx(
689
512
  "div",
690
513
  {
@@ -696,9 +519,9 @@ const We = (t) => {
696
519
  i
697
520
  ),
698
521
  children: n.map(
699
- (l, f) => {
700
- const c = l.name === d?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.description, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
701
- l.disabled || (o(l.name), l.onClick && l.onClick(l.name));
522
+ (l, d) => {
523
+ const f = l.name === c?.name, x = typeof l.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: l.thumbnail, alt: l.description, className: "aspect-square object-contain" }) : l.thumbnail, p = () => {
524
+ l.disabled || (r(l.name), l.onClick && l.onClick(l.name));
702
525
  };
703
526
  return /* @__PURE__ */ a.jsx(
704
527
  "div",
@@ -709,10 +532,10 @@ const We = (t) => {
709
532
  "flex items-center pl-[6px] ",
710
533
  "rounded-l-[8px]",
711
534
  "tabswitch-element relative",
712
- c && "active"
535
+ f && "active"
713
536
  ),
714
537
  onClick: p,
715
- ref: r,
538
+ ref: o,
716
539
  children: /* @__PURE__ */ a.jsx("div", { className: u(
717
540
  "size-8 rounded-[4px]",
718
541
  "grid place-items-center",
@@ -721,26 +544,26 @@ const We = (t) => {
721
544
  l?.className
722
545
  ), children: x })
723
546
  },
724
- f
547
+ d
725
548
  );
726
549
  }
727
550
  )
728
551
  }
729
552
  );
730
- }, xe = M(
731
- ({ children: t, isCollapsed: e = !1, className: o = "", tabs: r = [], currentTabName: n }, i) => {
732
- const s = N(null), { registerPrimarySidebar: d } = F(), l = ae((f) => {
733
- s.current = f, typeof i == "function" ? i(f) : i && (i.current = f);
553
+ }, Z = k(
554
+ ({ children: t, isCollapsed: e = !1, className: r = "", tabs: o = [], currentTabName: n }, i) => {
555
+ const s = g(null), { registerPrimarySidebar: c } = S(), l = D((d) => {
556
+ s.current = d, typeof i == "function" ? i(d) : i && (i.current = d);
734
557
  }, [i]);
735
- return T(() => {
736
- s.current && d(s);
737
- }, [d]), ue(s, e, !1), /* @__PURE__ */ a.jsxs("div", { className: u(
558
+ return N(() => {
559
+ s.current && c(s);
560
+ }, [c]), U(s, e, !1), /* @__PURE__ */ a.jsxs("div", { className: u(
738
561
  "flex"
739
562
  ), children: [
740
- r.length > 0 && /* @__PURE__ */ a.jsx(
741
- pe,
563
+ o.length > 0 && /* @__PURE__ */ a.jsx(
564
+ X,
742
565
  {
743
- tabs: r,
566
+ tabs: o,
744
567
  activeColor: "var(--neutral-900)",
745
568
  currentTabName: n
746
569
  }
@@ -750,27 +573,27 @@ const We = (t) => {
750
573
  {
751
574
  ref: l,
752
575
  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
753
- ${e ? "w-16" : "w-64"} ${o}`,
576
+ ${e ? "w-16" : "w-64"} ${r}`,
754
577
  children: t
755
578
  }
756
579
  )
757
580
  ] });
758
581
  }
759
- ), E = M(
760
- (t, e) => /* @__PURE__ */ a.jsx(ce, { children: /* @__PURE__ */ a.jsx(xe, { ...t, ref: e }) })
582
+ ), j = k(
583
+ (t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
761
584
  );
762
- E.displayName = "SidebarRoot";
763
- const he = ({ 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(
585
+ j.displayName = "SidebarRoot";
586
+ 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(
764
587
  "button",
765
588
  {
766
589
  onClick: e,
767
590
  title: t ? "Expandir Navbar" : "Contraer Navbar",
768
591
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
769
592
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
770
- children: t ? /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
593
+ children: t ? /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
771
594
  }
772
- ) }), be = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), ge = ({ 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-1 w-full" }) }), ve = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ye = ({ className: t, size: e = "auto" }) => {
773
- const o = () => {
595
+ ) }), 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-1 w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
596
+ const r = () => {
774
597
  switch (e) {
775
598
  case "auto":
776
599
  return "flex-grow";
@@ -782,29 +605,29 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
782
605
  return "h-8 w-8";
783
606
  }
784
607
  };
785
- return /* @__PURE__ */ a.jsx("div", { className: u(o(), t) });
786
- }, we = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), Oe = Object.assign(E, {
787
- Root: E,
788
- CollapseButton: he,
789
- Header: be,
790
- Divider: ge,
791
- Content: ve,
792
- Spacer: ye,
793
- Footer: we
794
- }), Pe = ({
608
+ return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
609
+ }, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(j, {
610
+ Root: j,
611
+ CollapseButton: J,
612
+ Header: K,
613
+ Divider: Q,
614
+ Content: Y,
615
+ Spacer: ee,
616
+ Footer: te
617
+ }), pe = ({
795
618
  children: t,
796
619
  icon: e,
797
- label: o,
798
- href: r,
620
+ label: r,
621
+ href: o,
799
622
  onClick: n,
800
623
  isActive: i = !1,
801
624
  className: s
802
625
  }) => {
803
- const d = r ? "a" : "button";
626
+ const c = o ? "a" : "button";
804
627
  return /* @__PURE__ */ a.jsxs(
805
- d,
628
+ c,
806
629
  {
807
- href: r,
630
+ href: o,
808
631
  onClick: n,
809
632
  className: u(
810
633
  "nav-link-item",
@@ -816,26 +639,26 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
816
639
  ),
817
640
  children: [
818
641
  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 }) }),
819
- o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
642
+ r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
820
643
  t
821
644
  ]
822
645
  }
823
646
  );
824
- }, G = ({
647
+ }, L = ({
825
648
  count: t,
826
649
  maxCount: e = 9,
827
- className: o = "",
828
- size: r = "medium",
650
+ className: r = "",
651
+ size: o = "medium",
829
652
  variant: n = "primary",
830
653
  showZero: i = !1
831
654
  }) => {
832
- const s = t, d = s > e ? `+${e}` : s;
655
+ const s = t, c = s > e ? `+${e}` : s;
833
656
  if (s === 0 && !i) return null;
834
657
  const l = {
835
658
  small: "w-4.5 h-4.5 text-xs ",
836
659
  medium: "w-5 h-5 text-xs",
837
660
  large: "w-6 h-6 text-sm"
838
- }, f = {
661
+ }, d = {
839
662
  primary: "bg-primary-default-default text-neutral-strong-default",
840
663
  secondary: "bg-neutral-medium-default text-neutral-strong-default",
841
664
  success: "bg-green-500 text-white",
@@ -844,18 +667,18 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
844
667
  };
845
668
  return /* @__PURE__ */ a.jsx("div", { className: u(
846
669
  "rounded-full flex items-center justify-center font-medium ",
847
- l[r],
848
- f[n],
849
- o
850
- ), children: /* @__PURE__ */ a.jsx("span", { children: d }) });
851
- }, Ee = ({
670
+ l[o],
671
+ d[n],
672
+ r
673
+ ), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
674
+ }, xe = ({
852
675
  linkActions: t,
853
676
  onClick: e,
854
- activeAction: o
855
- }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
856
- const { isView: i = !1, actionName: s, title: d, icon: l, count: f, viewAccess: c } = r || {}, x = (typeof i == "function" ? i() : i !== !1) && (!c || c()), p = o === s;
677
+ activeAction: r
678
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
679
+ const { isView: i = !1, actionName: s, title: c, icon: l, count: d, viewAccess: f } = o || {}, x = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = r === s;
857
680
  return x && /* @__PURE__ */ a.jsx(
858
- g.div,
681
+ b.div,
859
682
  {
860
683
  initial: { opacity: 0 },
861
684
  animate: { opacity: 1 },
@@ -878,8 +701,8 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
878
701
  p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
879
702
  ),
880
703
  children: [
881
- /* @__PURE__ */ a.jsx($, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
882
- g.div,
704
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
705
+ b.div,
883
706
  {
884
707
  layoutId: "nav-active-bg",
885
708
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -894,7 +717,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
894
717
  }
895
718
  ) }),
896
719
  /* @__PURE__ */ a.jsxs(
897
- g.div,
720
+ b.div,
898
721
  {
899
722
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
900
723
  animate: {
@@ -907,7 +730,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
907
730
  children: [
908
731
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
909
732
  /* @__PURE__ */ a.jsx(
910
- g.div,
733
+ b.div,
911
734
  {
912
735
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
913
736
  animate: {
@@ -926,9 +749,9 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
926
749
  }) : null
927
750
  }
928
751
  ),
929
- /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
752
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
930
753
  ] }),
931
- /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f >= 1 ? /* @__PURE__ */ a.jsx(G, { count: f, maxCount: 9, className: "" }) : "" })
754
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: d && d >= 1 ? /* @__PURE__ */ a.jsx(L, { count: d, maxCount: 9, className: "" }) : "" })
932
755
  ]
933
756
  }
934
757
  )
@@ -938,16 +761,16 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
938
761
  },
939
762
  n
940
763
  );
941
- }) }), De = ({
764
+ }) }), be = ({
942
765
  links: t,
943
766
  isLinkActive: e,
944
- onLinkClick: o
945
- }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
946
- const { isView: i = !1, viewAccess: s, path: d, title: l, icon: f, count: c, relatedPaths: x } = r, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), b = e(d) || (x?.some(
947
- (I) => e(I)
767
+ onLinkClick: r
768
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((o, n) => {
769
+ const { isView: i = !1, viewAccess: s, path: c, title: l, icon: d, count: f, relatedPaths: x } = o, p = (typeof i == "function" ? i() : i !== !1) && (!s || s()), v = e(c) || (x?.some(
770
+ (A) => e(A)
948
771
  ) ?? !1);
949
772
  return p && /* @__PURE__ */ a.jsx(
950
- g.div,
773
+ b.div,
951
774
  {
952
775
  initial: { opacity: 0 },
953
776
  animate: { opacity: 1 },
@@ -961,17 +784,17 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
961
784
  "button",
962
785
  {
963
786
  onClick: () => {
964
- o?.(d);
787
+ r?.(c);
965
788
  },
966
789
  className: u(
967
790
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
968
791
  "transition-all duration-300 ease-out w-full",
969
792
  "group hover:bg-neutral-medium-selected",
970
- b ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
793
+ v ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
971
794
  ),
972
795
  children: [
973
- /* @__PURE__ */ a.jsx($, { mode: "wait", children: b && /* @__PURE__ */ a.jsx(
974
- g.div,
796
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: v && /* @__PURE__ */ a.jsx(
797
+ b.div,
975
798
  {
976
799
  layoutId: "nav-active-bg",
977
800
  className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
@@ -986,7 +809,7 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
986
809
  }
987
810
  ) }),
988
811
  /* @__PURE__ */ a.jsxs(
989
- g.div,
812
+ b.div,
990
813
  {
991
814
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
992
815
  animate: {
@@ -999,28 +822,28 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
999
822
  children: [
1000
823
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
1001
824
  /* @__PURE__ */ a.jsx(
1002
- g.div,
825
+ b.div,
1003
826
  {
1004
827
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
1005
828
  animate: {
1006
- scale: b ? 1.05 : 1
829
+ scale: v ? 1.05 : 1
1007
830
  },
1008
831
  transition: {
1009
832
  duration: 0.25,
1010
833
  ease: "easeOut"
1011
834
  },
1012
- children: typeof f == "function" ? f({
835
+ children: typeof d == "function" ? d({
1013
836
  size: 24,
1014
837
  className: u(
1015
838
  "nav-icon transition-colors duration-250 ease-out",
1016
- b ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
839
+ v ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
1017
840
  )
1018
841
  }) : null
1019
842
  }
1020
843
  ),
1021
844
  /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: l })
1022
845
  ] }),
1023
- /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: c && c ? /* @__PURE__ */ a.jsx(G, { count: c, maxCount: 9, className: "" }) : "" })
846
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
1024
847
  ]
1025
848
  }
1026
849
  )
@@ -1030,18 +853,18 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
1030
853
  },
1031
854
  n
1032
855
  );
1033
- }) }), qe = ({
856
+ }) }), ve = ({
1034
857
  isActiveModalNotification: t,
1035
858
  setIsActiveModalNotification: e
1036
859
  }) => ({ handleNotificationClick: () => {
1037
860
  e(!0);
1038
- }, isActiveModalNotification: t }), ze = (t) => {
1039
- const e = N(null);
861
+ }, isActiveModalNotification: t }), ge = (t) => {
862
+ const e = g(null);
1040
863
  return {
1041
864
  isCollapsed: t,
1042
865
  navbarRef: e
1043
866
  };
1044
- }, He = ({
867
+ }, ye = ({
1045
868
  isCollapsed: t,
1046
869
  onToggle: e
1047
870
  }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
@@ -1051,9 +874,9 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
1051
874
  title: t ? "Expandir Navbar" : "Contraer Navbar",
1052
875
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
1053
876
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
1054
- children: t ? /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(R.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
877
+ children: t ? /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(h.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
1055
878
  }
1056
- ) }), _e = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
879
+ ) }), 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(
1057
880
  "img",
1058
881
  {
1059
882
  src: t,
@@ -1061,106 +884,108 @@ const he = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("d
1061
884
  alt: e ?? ""
1062
885
  }
1063
886
  ) });
1064
- function Me({
887
+ function we({
1065
888
  onFilesAccepted: t,
1066
889
  onFilesRejected: e,
1067
- ...o
890
+ ...r
1068
891
  }) {
1069
- const r = _.useCallback(
892
+ const o = P.useCallback(
1070
893
  (i, s) => {
1071
894
  i.length > 0 && t?.(i), s.length > 0 && e?.(s);
1072
895
  },
1073
896
  [t, e]
1074
- ), n = re({
1075
- onDrop: r,
1076
- ...o
897
+ ), n = E({
898
+ onDrop: o,
899
+ ...r
1077
900
  });
1078
901
  return {
1079
902
  ...n,
1080
903
  hasErrors: n.fileRejections.length > 0
1081
904
  };
1082
905
  }
1083
- const $e = (t, e = !0) => {
1084
- const o = N(null);
1085
- return T(() => {
906
+ const je = (t, e = !0) => {
907
+ const r = g(null);
908
+ return N(() => {
1086
909
  if (!e) return;
1087
- const r = (n) => {
1088
- o.current && !o.current.contains(n.target) && t();
910
+ const o = (n) => {
911
+ r.current && !r.current.contains(n.target) && t();
1089
912
  };
1090
- return document.addEventListener("mousedown", r, {
913
+ return document.addEventListener("mousedown", o, {
1091
914
  capture: !0
1092
- }), document.addEventListener("touchstart", r, {
915
+ }), document.addEventListener("touchstart", o, {
1093
916
  capture: !0
1094
917
  }), () => {
1095
- document.removeEventListener("mousedown", r, {
918
+ document.removeEventListener("mousedown", o, {
1096
919
  capture: !0
1097
- }), document.removeEventListener("touchstart", r, {
920
+ }), document.removeEventListener("touchstart", o, {
1098
921
  capture: !0
1099
922
  });
1100
923
  };
1101
- }, [t, e]), o;
924
+ }, [t, e]), r;
1102
925
  };
1103
926
  export {
1104
- Ve as Avatar,
1105
- G as Badge,
1106
- Xe as Button,
1107
- Je as CardProfile,
1108
- Ke as ChangueAccount,
1109
- Ye as CheckBox,
1110
- tt as CheckboxFormik,
1111
- _e as CompanyLogo,
1112
- Mt as DatePicker,
1113
- rt as DialogModal,
1114
- it as DrawerDesktop,
1115
- ct as DrawerMobile,
1116
- pa as DropZone,
1117
- ft as Header,
1118
- R as Icons,
1119
- pt as Input,
1120
- ht as InputFormik,
1121
- gt as InputMultiple,
1122
- sa as LayoutGeneric,
1123
- yt as Logo,
1124
- jt as Menu,
1125
- Ee as NavBarActions,
1126
- He as NavbarCollapseButton,
1127
- De as NavbarLinks,
1128
- Pe as NavigationLink,
1129
- ua as OtpInput,
1130
- Ct as Pagination,
1131
- kt as ProfilePictureUpload,
1132
- Rt as ProgressBar,
1133
- Le as SecondaryBar,
1134
- We as SegmentedButton,
1135
- Tt as Select,
1136
- Lt as SelectFormik,
1137
- Oe as Sidebar,
1138
- ce as SidebarProvider,
1139
- la as SidebarRefProvider,
1140
- na as Skeleton,
1141
- Ot as Spinner,
1142
- Et as Steps,
1143
- qt as SwipeContainer,
1144
- Ht as Switch,
1145
- Yt as TabLinks,
1146
- Ft as Table,
1147
- Ut as TableBody,
1148
- Vt as TableCaption,
1149
- Gt as TableCell,
1150
- Xt as TableFooter,
1151
- Zt as TableHead,
1152
- Jt as TableHeader,
1153
- Kt as TableRow,
1154
- ta as TextArea,
1155
- ra as Tooltip,
1156
- qe as useActionsNavbar,
1157
- $e as useClickOutside,
1158
- ot as useDialogControl,
1159
- st as useDrawerDesktop,
1160
- ut as useDrawerMobile,
1161
- Me as useFileDropzone,
1162
- fa as useIsMobile,
1163
- ze as useNavbarCollapse,
1164
- Ae as useSidebar,
1165
- F as useSidebarContext
927
+ Se as Avatar,
928
+ L as Badge,
929
+ Ie as Button,
930
+ Re as CardProfile,
931
+ Le as ChangueAccount,
932
+ Pe as CheckBox,
933
+ Te as CheckboxFormik,
934
+ he as CompanyLogo,
935
+ wt as DatePicker,
936
+ De as DialogModal,
937
+ He as DrawerDesktop,
938
+ Fe as DrawerMobile,
939
+ Yt as DropZone,
940
+ Ge as Header,
941
+ h as Icons,
942
+ _t as Image,
943
+ Gt as ImageGallery,
944
+ _e as Input,
945
+ Ze as InputFormik,
946
+ Ke as InputMultiple,
947
+ Ft as LayoutGeneric,
948
+ Ye as Logo,
949
+ tt as Menu,
950
+ xe as NavBarActions,
951
+ ye as NavbarCollapseButton,
952
+ be as NavbarLinks,
953
+ pe as NavigationLink,
954
+ Zt as OtpInput,
955
+ rt as Pagination,
956
+ nt as ProfilePictureUpload,
957
+ st as ProgressBar,
958
+ de as SecondaryBar,
959
+ Wt as SegmentedButton,
960
+ ct as Select,
961
+ dt as SelectFormik,
962
+ me as Sidebar,
963
+ M as SidebarProvider,
964
+ Mt as SidebarRefProvider,
965
+ Ot as Skeleton,
966
+ mt as Spinner,
967
+ xt as Steps,
968
+ vt as SwipeContainer,
969
+ yt as Switch,
970
+ Pt as TabLinks,
971
+ Nt as Table,
972
+ Ct as TableBody,
973
+ St as TableCaption,
974
+ kt as TableCell,
975
+ It as TableFooter,
976
+ Bt as TableHead,
977
+ Rt as TableHeader,
978
+ Lt as TableRow,
979
+ Tt as TextArea,
980
+ Dt as Tooltip,
981
+ ve as useActionsNavbar,
982
+ je as useClickOutside,
983
+ Ee as useDialogControl,
984
+ We as useDrawerDesktop,
985
+ Me as useDrawerMobile,
986
+ we as useFileDropzone,
987
+ Kt as useIsMobile,
988
+ ge as useNavbarCollapse,
989
+ fe as useSidebar,
990
+ S as useSidebarContext
1166
991
  };