prometeo-design-system 3.0.6 → 3.0.8

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 (162) hide show
  1. package/dist/{CardProfile-B63chbXo.js → CardProfile-Ct5Fs60N.js} +13 -12
  2. package/dist/CardProfile.es.js +1 -1
  3. package/dist/CheckBox.es.js +6 -6
  4. package/dist/{DatePicker-D718l51x.js → DatePicker-D1EwMGIN.js} +2 -2
  5. package/dist/DatePicker.es.js +1 -1
  6. package/dist/DrawerDesktop.es.js +4 -4
  7. package/dist/DropZone.es.js +23 -22
  8. package/dist/FAButton.es.js +6 -6
  9. package/dist/HelperComponent-DhGU_ug-.js +26 -0
  10. package/dist/Icons/AccountCircle.d.ts +6 -0
  11. package/dist/Icons/AccountCircle.es.js +21 -0
  12. package/dist/Icons/Add.d.ts +6 -0
  13. package/dist/Icons/Add.es.js +19 -0
  14. package/dist/Icons/ArrowLeft.d.ts +6 -0
  15. package/dist/Icons/ArrowLeft.es.js +19 -0
  16. package/dist/Icons/ArrowUpDown.d.ts +6 -0
  17. package/dist/Icons/ArrowUpDown.es.js +21 -0
  18. package/dist/Icons/AttachFile.d.ts +6 -0
  19. package/dist/Icons/AttachFile.es.js +19 -0
  20. package/dist/Icons/Boards.d.ts +6 -0
  21. package/dist/Icons/Boards.es.js +19 -0
  22. package/dist/Icons/Calendar.d.ts +6 -0
  23. package/dist/Icons/Calendar.es.js +19 -0
  24. package/dist/Icons/Cancel.d.ts +6 -0
  25. package/dist/Icons/Cancel.es.js +19 -0
  26. package/dist/Icons/Check.d.ts +6 -0
  27. package/dist/Icons/Check.es.js +19 -0
  28. package/dist/Icons/CheckCircle.d.ts +6 -0
  29. package/dist/Icons/CheckCircle.es.js +21 -0
  30. package/dist/Icons/CheckList.d.ts +6 -0
  31. package/dist/Icons/CheckList.es.js +25 -0
  32. package/dist/Icons/ChevronDown.d.ts +6 -0
  33. package/dist/Icons/ChevronDown.es.js +21 -0
  34. package/dist/Icons/Clock.d.ts +6 -0
  35. package/dist/Icons/Clock.es.js +19 -0
  36. package/dist/Icons/Close.d.ts +6 -0
  37. package/dist/Icons/Close.es.js +19 -0
  38. package/dist/Icons/CloseNavBarDesktop.d.ts +6 -0
  39. package/dist/Icons/CloseNavBarDesktop.es.js +36 -0
  40. package/dist/Icons/Collapse.d.ts +6 -0
  41. package/dist/Icons/Collapse.es.js +19 -0
  42. package/dist/Icons/Company.d.ts +6 -0
  43. package/dist/Icons/Company.es.js +25 -0
  44. package/dist/Icons/Copy.d.ts +6 -0
  45. package/dist/Icons/Copy.es.js +19 -0
  46. package/dist/Icons/CrevronLeft.d.ts +6 -0
  47. package/dist/Icons/CrevronLeft.es.js +21 -0
  48. package/dist/Icons/CrevronRight.d.ts +6 -0
  49. package/dist/Icons/CrevronRight.es.js +21 -0
  50. package/dist/Icons/DocumentFill.d.ts +6 -0
  51. package/dist/Icons/DocumentFill.es.js +27 -0
  52. package/dist/Icons/Download.d.ts +6 -0
  53. package/dist/Icons/Download.es.js +25 -0
  54. package/dist/Icons/Edit.d.ts +6 -0
  55. package/dist/Icons/Edit.es.js +19 -0
  56. package/dist/Icons/EditFill.d.ts +6 -0
  57. package/dist/Icons/EditFill.es.js +25 -0
  58. package/dist/Icons/Email.d.ts +6 -0
  59. package/dist/Icons/Email.es.js +25 -0
  60. package/dist/Icons/Error.d.ts +6 -0
  61. package/dist/Icons/Error.es.js +19 -0
  62. package/dist/Icons/EyeVisibility.d.ts +6 -0
  63. package/dist/Icons/EyeVisibility.es.js +21 -0
  64. package/dist/Icons/EyeVisibilityOff.d.ts +6 -0
  65. package/dist/Icons/EyeVisibilityOff.es.js +21 -0
  66. package/dist/Icons/FaLock.d.ts +6 -0
  67. package/dist/Icons/FaLock.es.js +19 -0
  68. package/dist/Icons/FastForward.d.ts +6 -0
  69. package/dist/Icons/FastForward.es.js +27 -0
  70. package/dist/Icons/File.d.ts +6 -0
  71. package/dist/Icons/File.es.js +25 -0
  72. package/dist/Icons/Filter.d.ts +6 -0
  73. package/dist/Icons/Filter.es.js +19 -0
  74. package/dist/Icons/FormatColorText.d.ts +6 -0
  75. package/dist/Icons/FormatColorText.es.js +26 -0
  76. package/dist/Icons/Help.d.ts +6 -0
  77. package/dist/Icons/Help.es.js +19 -0
  78. package/dist/Icons/HistoryActivity.d.ts +6 -0
  79. package/dist/Icons/HistoryActivity.es.js +21 -0
  80. package/dist/Icons/Home.d.ts +6 -0
  81. package/dist/Icons/Home.es.js +19 -0
  82. package/dist/Icons/Image.d.ts +6 -0
  83. package/dist/Icons/Image.es.js +25 -0
  84. package/dist/Icons/Info.d.ts +6 -0
  85. package/dist/Icons/Info.es.js +19 -0
  86. package/dist/Icons/Logout.d.ts +6 -0
  87. package/dist/Icons/Logout.es.js +19 -0
  88. package/dist/Icons/MessageSquare.d.ts +6 -0
  89. package/dist/Icons/MessageSquare.es.js +21 -0
  90. package/dist/Icons/MessageSquareFill.d.ts +6 -0
  91. package/dist/Icons/MessageSquareFill.es.js +27 -0
  92. package/dist/Icons/MoreVert.d.ts +6 -0
  93. package/dist/Icons/MoreVert.es.js +19 -0
  94. package/dist/Icons/Notifications.d.ts +6 -0
  95. package/dist/Icons/Notifications.es.js +21 -0
  96. package/dist/Icons/Pause.d.ts +6 -0
  97. package/dist/Icons/Pause.es.js +19 -0
  98. package/dist/Icons/Reload.d.ts +6 -0
  99. package/dist/Icons/Reload.es.js +25 -0
  100. package/dist/Icons/Search.d.ts +6 -0
  101. package/dist/Icons/Search.es.js +19 -0
  102. package/dist/Icons/Settings.d.ts +6 -0
  103. package/dist/Icons/Settings.es.js +19 -0
  104. package/dist/Icons/Shared.d.ts +6 -0
  105. package/dist/Icons/Shared.es.js +19 -0
  106. package/dist/Icons/Sort.d.ts +6 -0
  107. package/dist/Icons/Sort.es.js +19 -0
  108. package/dist/Icons/Stars.d.ts +6 -0
  109. package/dist/Icons/Stars.es.js +19 -0
  110. package/dist/Icons/Ticket.d.ts +6 -0
  111. package/dist/Icons/Ticket.es.js +19 -0
  112. package/dist/Icons/TicketFilled.d.ts +6 -0
  113. package/dist/Icons/TicketFilled.es.js +21 -0
  114. package/dist/Icons/Trash.d.ts +6 -0
  115. package/dist/Icons/Trash.es.js +19 -0
  116. package/dist/Icons/TrashFill.d.ts +6 -0
  117. package/dist/Icons/TrashFill.es.js +25 -0
  118. package/dist/Icons/Upload.d.ts +6 -0
  119. package/dist/Icons/Upload.es.js +19 -0
  120. package/dist/Icons/UploadCloud.d.ts +6 -0
  121. package/dist/Icons/UploadCloud.es.js +21 -0
  122. package/dist/Icons/UserAdd.d.ts +6 -0
  123. package/dist/Icons/UserAdd.es.js +19 -0
  124. package/dist/Icons/UserAddFill.d.ts +6 -0
  125. package/dist/Icons/UserAddFill.es.js +27 -0
  126. package/dist/Icons/UserPerson.d.ts +6 -0
  127. package/dist/Icons/UserPerson.es.js +19 -0
  128. package/dist/Icons/WhatsApp.d.ts +6 -0
  129. package/dist/Icons/WhatsApp.es.js +76 -0
  130. package/dist/Icons/index.d.ts +1 -0
  131. package/dist/Icons.es.js +120 -976
  132. package/dist/{ImageGallery-BLrIJSw2.js → ImageGallery-4DdXqwRy.js} +57 -55
  133. package/dist/ImageGallery.es.js +1 -1
  134. package/dist/{Input-DD4VHP1s.js → Input-EkMrxcNX.js} +16 -14
  135. package/dist/Input.es.js +1 -1
  136. package/dist/InputMultiple.es.js +45 -43
  137. package/dist/Logo.es.js +1 -1
  138. package/dist/OtpInput.es.js +47 -46
  139. package/dist/RadioButton.es.js +1 -1
  140. package/dist/RecurrentDatePicker.es.js +4 -4
  141. package/dist/RecurrentDatePickerRRule.es.js +1 -1
  142. package/dist/{Select-DfjHfmxM.js → Select-CRFOzYc6.js} +64 -61
  143. package/dist/Select.es.js +1 -1
  144. package/dist/SelectSearch.es.js +127 -117
  145. package/dist/Steps.es.js +6 -6
  146. package/dist/Toast.es.js +32 -28
  147. package/dist/Tooltip.es.js +7 -7
  148. package/dist/components/FAB/FAButton.d.ts +1 -1
  149. package/dist/components/NavigationDrawer/NavItem.d.ts +11 -2
  150. package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +9 -0
  151. package/dist/components/PyrionNavigationDrawer/PyirionNavigationDrawer.d.ts +5 -3
  152. package/dist/components/Toaster/Toaster.d.ts +1 -1
  153. package/dist/iconUtils-D0lVAgGT.js +5 -0
  154. package/dist/index.d.ts +0 -1
  155. package/dist/prometeo-design-system.es.js +155 -232
  156. package/dist/styles.css +1 -1
  157. package/package.json +6 -5
  158. package/src/styles/base.css +1 -0
  159. package/dist/HelperComponent-DZjT3uYS.js +0 -24
  160. package/dist/Icons/IconsObject.d.ts +0 -81
  161. package/dist/Icons/Icons_Legacy.d.ts +0 -131
  162. package/dist/Icons_Legacy-BJgYCS_W.js +0 -979
@@ -1,11 +1,13 @@
1
1
  import { j as t } from "./jsx-runtime-DKDX3adD.js";
2
2
  import Q, { memo as M, forwardRef as A, useRef as v, useEffect as ee, useCallback as i, useState as R, useImperativeHandle as te } from "react";
3
3
  import { c as X } from "./cn-B6yFEsav.js";
4
- import { u as ne } from "./useDragScroll-CHN9OMwn.js";
4
+ import { u as re } from "./useDragScroll-CHN9OMwn.js";
5
5
  import S from "./Button.es.js";
6
- import { a as re, b as ae, c as se } from "./Icons_Legacy-BJgYCS_W.js";
7
- const L = M(A(({ images: n, className: c }, r) => {
8
- const { ref: d, bind: s } = ne({
6
+ import { Close as ne } from "./Icons/Close.es.js";
7
+ import { CrevronLeft as se } from "./Icons/CrevronLeft.es.js";
8
+ import { CrevronRight as ae } from "./Icons/CrevronRight.es.js";
9
+ const L = M(A(({ images: r, className: c }, n) => {
10
+ const { ref: d, bind: a } = re({
9
11
  axis: "x",
10
12
  friction: 0.9,
11
13
  minVelocity: 0.5,
@@ -20,24 +22,24 @@ const L = M(A(({ images: n, className: c }, r) => {
20
22
  {
21
23
  ref: d,
22
24
  className: X("flex gap-4 w-full overflow-x-auto py-2 relative", c),
23
- onPointerDown: s.onPointerDown,
24
- onPointerMove: s.onPointerMove,
25
- onPointerUp: s.onPointerUp,
26
- onPointerLeave: s.onPointerLeave,
27
- onPointerCancel: s.onPointerCancel,
28
- onClickCapture: s.onClickCapture,
25
+ onPointerDown: a.onPointerDown,
26
+ onPointerMove: a.onPointerMove,
27
+ onPointerUp: a.onPointerUp,
28
+ onPointerLeave: a.onPointerLeave,
29
+ onPointerCancel: a.onPointerCancel,
30
+ onClickCapture: a.onClickCapture,
29
31
  "aria-label": "Image gallery",
30
- children: n && n.length > 0 && n.map((l, o) => Q.cloneElement(l, {
32
+ children: r && r.length > 0 && r.map((l, o) => Q.cloneElement(l, {
31
33
  key: l.props.src || o,
32
34
  ...l.props,
33
- galleryRef: r,
35
+ galleryRef: n,
34
36
  allowPreview: !0
35
37
  }))
36
38
  }
37
39
  );
38
40
  }));
39
41
  L.displayName = "GalleryPreview";
40
- const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails: d, thumbnailsClassName: s, currentIndex: l, goToNext: o, goToPrevious: a, goToIndex: N }) => {
42
+ const O = M(({ images: r, lightboxClassName: c, closeLightbox: n, showThumbnails: d, thumbnailsClassName: a, currentIndex: l, goToNext: o, goToPrevious: s, goToIndex: N }) => {
41
43
  const h = v(null), y = v(null), w = v(null), m = v({
42
44
  scale: 1,
43
45
  translateX: 0,
@@ -53,15 +55,15 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
53
55
  w.current && w.current.focus();
54
56
  }, []);
55
57
  const k = i((e) => {
56
- e.preventDefault(), e.stopPropagation(), e.key === "Escape" ? r() : e.key === "ArrowLeft" ? a() : e.key === "ArrowRight" && o();
57
- }, [r, a, o]), P = i((e) => {
58
+ e.preventDefault(), e.stopPropagation(), e.key === "Escape" ? n() : e.key === "ArrowLeft" ? s() : e.key === "ArrowRight" && o();
59
+ }, [n, s, o]), P = i((e) => {
58
60
  u.current = { startX: e.touches[0].clientX, startY: e.touches[0].clientY, isDragging: !0, distanceX: 0, distanceY: 0 };
59
61
  }, []), j = i((e) => {
60
62
  const g = e.touches[0];
61
63
  u.current = { ...u.current, isDragging: !0, distanceX: g.clientX - u.current.startX, distanceY: g.clientY - u.current.startY };
62
64
  }, []), z = i(() => {
63
- u.current = { ...u.current, startX: 0, startY: 0, isDragging: !1 }, Math.abs(u.current.distanceX) > Math.abs(u.current.distanceY) && (u.current.distanceX < 0 ? o() : a());
64
- }, [o, a]), C = i(() => {
65
+ u.current = { ...u.current, startX: 0, startY: 0, isDragging: !1 }, Math.abs(u.current.distanceX) > Math.abs(u.current.distanceY) && (u.current.distanceX < 0 ? o() : s());
66
+ }, [o, s]), C = i(() => {
65
67
  const e = h.current;
66
68
  if (!e) return;
67
69
  const { scale: g, translateX: p, translateY: I } = m.current;
@@ -72,7 +74,7 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
72
74
  const g = h.current, p = y.current;
73
75
  if (!g || !p) return;
74
76
  if (e.shiftKey) {
75
- e.deltaY < 0 ? o() : e.deltaY > 0 && a();
77
+ e.deltaY < 0 ? o() : e.deltaY > 0 && s();
76
78
  return;
77
79
  }
78
80
  const I = 2e-3, D = 1, B = 8, F = -e.deltaY * I, E = m.current.scale;
@@ -87,13 +89,13 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
87
89
  translateX: Z,
88
90
  translateY: J
89
91
  }, C();
90
- }, [o, a, C, b]);
91
- return n.length === 0 ? null : /* @__PURE__ */ t.jsxs(
92
+ }, [o, s, C, b]);
93
+ return r.length === 0 ? null : /* @__PURE__ */ t.jsxs(
92
94
  "div",
93
95
  {
94
96
  ref: w,
95
97
  className: X("fixed inset-0 z-50 bg-black/90 flex items-center justify-center lg:px-16", c),
96
- onClick: r,
98
+ onClick: n,
97
99
  onKeyDown: k,
98
100
  onTouchStart: P,
99
101
  onTouchMove: j,
@@ -108,19 +110,19 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
108
110
  variant: "text",
109
111
  color: "secondary",
110
112
  size: "small",
111
- onClick: r,
113
+ onClick: n,
112
114
  className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
113
115
  "aria-label": "Close gallery",
114
- children: /* @__PURE__ */ t.jsx(re, { size: 24 })
116
+ children: /* @__PURE__ */ t.jsx(ne, { size: 24 })
115
117
  }
116
118
  ) }),
117
- n.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
119
+ r.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
118
120
  /* @__PURE__ */ t.jsx(
119
121
  "div",
120
122
  {
121
123
  className: "absolute left-0 lg:h-full items-center flex justify-center w-16 z-100 cursor-w-resize",
122
124
  onClick: (e) => {
123
- e.stopPropagation(), a();
125
+ e.stopPropagation(), s();
124
126
  },
125
127
  children: /* @__PURE__ */ t.jsx(
126
128
  S,
@@ -129,11 +131,11 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
129
131
  color: "secondary",
130
132
  size: "small",
131
133
  onClick: (e) => {
132
- e.stopPropagation(), a();
134
+ e.stopPropagation(), s();
133
135
  },
134
136
  className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
135
137
  "aria-label": "Previous image",
136
- children: /* @__PURE__ */ t.jsx(ae, { size: 24 })
138
+ children: /* @__PURE__ */ t.jsx(se, { size: 24 })
137
139
  }
138
140
  )
139
141
  }
@@ -156,7 +158,7 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
156
158
  },
157
159
  className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
158
160
  "aria-label": "Next image",
159
- children: /* @__PURE__ */ t.jsx(se, { size: 24 })
161
+ children: /* @__PURE__ */ t.jsx(ae, { size: 24 })
160
162
  }
161
163
  )
162
164
  }
@@ -180,8 +182,8 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
180
182
  children: /* @__PURE__ */ t.jsx(
181
183
  "img",
182
184
  {
183
- src: n[l].src,
184
- alt: n[l].alt,
185
+ src: r[l].src,
186
+ alt: r[l].alt,
185
187
  className: X(
186
188
  " w-full h-full object-contain select-none",
187
189
  "prometeo-lightbox-image"
@@ -194,23 +196,23 @@ const O = M(({ images: n, lightboxClassName: c, closeLightbox: r, showThumbnails
194
196
  )
195
197
  }
196
198
  ),
197
- d && /* @__PURE__ */ t.jsx("div", { className: " w-full absolute items-center flex justify-center left-0 right-0 z-100 bottom-0", children: /* @__PURE__ */ t.jsx(_, { images: n, currentIndex: l, goToIndex: N, thumbnailsClassName: s }) }),
198
- n.length > 1 && /* @__PURE__ */ t.jsxs("div", { className: "absolute bottom-20 left-1/2 transform -translate-x-1/2 text-neutral-default-default prometeo-fonts-label-xlarge px-4 py-2 rounded-full", children: [
199
+ d && /* @__PURE__ */ t.jsx("div", { className: " w-full absolute items-center flex justify-center left-0 right-0 z-100 bottom-0", children: /* @__PURE__ */ t.jsx(_, { images: r, currentIndex: l, goToIndex: N, thumbnailsClassName: a }) }),
200
+ r.length > 1 && /* @__PURE__ */ t.jsxs("div", { className: "absolute bottom-20 left-1/2 transform -translate-x-1/2 text-neutral-default-default prometeo-fonts-label-xlarge px-4 py-2 rounded-full", children: [
199
201
  l + 1,
200
202
  " / ",
201
- n.length
203
+ r.length
202
204
  ] })
203
205
  ]
204
206
  }
205
207
  );
206
208
  });
207
209
  O.displayName = "LightBox";
208
- const le = (n, c) => {
209
- if (n.currentIndex !== c.currentIndex || n.thumbnailsClassName !== c.thumbnailsClassName || n.images.length !== c.images.length) return !1;
210
- for (let r = 0; r < n.images.length; r++)
211
- if (n.images[r].src !== c.images[r].src) return !1;
210
+ const le = (r, c) => {
211
+ if (r.currentIndex !== c.currentIndex || r.thumbnailsClassName !== c.thumbnailsClassName || r.images.length !== c.images.length) return !1;
212
+ for (let n = 0; n < r.images.length; n++)
213
+ if (r.images[n].src !== c.images[n].src) return !1;
212
214
  return !0;
213
- }, _ = M(({ images: n, currentIndex: c, goToIndex: r, thumbnailsClassName: d }) => /* @__PURE__ */ t.jsxs(
215
+ }, _ = M(({ images: r, currentIndex: c, goToIndex: n, thumbnailsClassName: d }) => /* @__PURE__ */ t.jsxs(
214
216
  "div",
215
217
  {
216
218
  className: "flex gap-4 w-max overflow-x-auto overflow-y-visible max-w-full px-16 py-4",
@@ -225,12 +227,12 @@ const le = (n, c) => {
225
227
  display: none;
226
228
  }
227
229
  ` }),
228
- n.map((s, l) => /* @__PURE__ */ t.jsx(
230
+ r.map((a, l) => /* @__PURE__ */ t.jsx(
229
231
  "button",
230
232
  {
231
233
  type: "button",
232
234
  onClick: (o) => {
233
- o.stopPropagation(), r(l);
235
+ o.stopPropagation(), n(l);
234
236
  },
235
237
  className: X(
236
238
  "w-16 h-16 aspect-square min-w-16 rounded overflow-hidden transition-all duration-300 hover:scale-125 cursor-pointer",
@@ -240,27 +242,27 @@ const le = (n, c) => {
240
242
  children: /* @__PURE__ */ t.jsx(
241
243
  "img",
242
244
  {
243
- src: s.src,
244
- alt: s.alt,
245
+ src: a.src,
246
+ alt: a.alt,
245
247
  className: "w-full h-full object-cover select-none"
246
248
  }
247
249
  )
248
250
  },
249
- s.src
251
+ a.src
250
252
  ))
251
253
  ]
252
254
  }
253
255
  ), le);
254
256
  _.displayName = "Thumbnails";
255
257
  const oe = A(
256
- (n, c) => {
258
+ (r, c) => {
257
259
  const {
258
- children: r,
260
+ children: n,
259
261
  className: d,
260
- lightboxClassName: s,
262
+ lightboxClassName: a,
261
263
  showThumbnails: l,
262
264
  thumbnailsClassName: o
263
- } = n, [a, N] = R([]), [h, y] = R(!1), [w, m] = R(0), u = r ? Array.isArray(r) ? r : [r] : [], k = i((f) => {
265
+ } = r, [s, N] = R([]), [h, y] = R(!1), [w, m] = R(0), u = n ? Array.isArray(n) ? n : [n] : [], k = i((f) => {
264
266
  N((e) => e.some((p) => p.src === f.src) ? e : [...e, f]);
265
267
  }, []), P = i((f = 0) => {
266
268
  m(f), y(!0);
@@ -274,15 +276,15 @@ const oe = A(
274
276
  closeLightbox: j,
275
277
  isOpen: h,
276
278
  addImage: k,
277
- images: a
279
+ images: s
278
280
  }),
279
- [a]
281
+ [s]
280
282
  );
281
283
  const z = i(() => {
282
- m((f) => (f + 1) % a.length);
283
- }, [a.length]), C = i(() => {
284
- m((f) => (f - 1 + a.length) % a.length);
285
- }, [a.length]), b = i((f) => {
284
+ m((f) => (f + 1) % s.length);
285
+ }, [s.length]), C = i(() => {
286
+ m((f) => (f - 1 + s.length) % s.length);
287
+ }, [s.length]), b = i((f) => {
286
288
  m(f);
287
289
  }, []);
288
290
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -297,10 +299,10 @@ const oe = A(
297
299
  h && /* @__PURE__ */ t.jsx(
298
300
  O,
299
301
  {
300
- images: a,
302
+ images: s,
301
303
  closeLightbox: j,
302
304
  showThumbnails: l,
303
- lightboxClassName: s,
305
+ lightboxClassName: a,
304
306
  thumbnailsClassName: o,
305
307
  currentIndex: w,
306
308
  goToNext: z,
@@ -1,4 +1,4 @@
1
- import { I as p } from "./ImageGallery-BLrIJSw2.js";
1
+ import { I as p } from "./ImageGallery-4DdXqwRy.js";
2
2
  import { useRef as u, useCallback as r } from "react";
3
3
  const g = () => {
4
4
  const e = u(null), t = r((a) => {
@@ -1,9 +1,11 @@
1
1
  import { j as r } from "./jsx-runtime-DKDX3adD.js";
2
- import { w as _, x as q, a as V } from "./Icons_Legacy-BJgYCS_W.js";
3
2
  import { c as t } from "./cn-B6yFEsav.js";
4
- import { useRef as F, useLayoutEffect as ee, memo as te, forwardRef as re, useState as oe } from "react";
5
- import le from "./Spinner.es.js";
6
- import { H as se } from "./HelperComponent-DZjT3uYS.js";
3
+ import { useRef as _, useLayoutEffect as q, memo as V, forwardRef as F, useState as ee } from "react";
4
+ import te from "./Spinner.es.js";
5
+ import { H as re } from "./HelperComponent-DhGU_ug-.js";
6
+ import { EyeVisibility as oe } from "./Icons/EyeVisibility.es.js";
7
+ import { EyeVisibilityOff as le } from "./Icons/EyeVisibilityOff.es.js";
8
+ import { Close as se } from "./Icons/Close.es.js";
7
9
  const ae = (o) => {
8
10
  let e = o;
9
11
  for (; e && e !== document.body; ) {
@@ -16,8 +18,8 @@ const ae = (o) => {
16
18
  return l && l !== "transparent" && l !== "rgba(0, 0, 0, 0)" ? l : "rgb(255, 255, 255)";
17
19
  };
18
20
  function ne() {
19
- const o = F(null);
20
- return ee(() => {
21
+ const o = _(null);
22
+ return q(() => {
21
23
  if (!o.current || !o.current.parentElement) return;
22
24
  const e = ae(o.current.parentElement);
23
25
  o.current.style.backgroundColor = e;
@@ -59,7 +61,7 @@ const b = {
59
61
  label: t("text-success", "peer-focus:text-success-light"),
60
62
  icon: t("text-success-light", "peer-focus:text-success-light")
61
63
  }
62
- }, v = re(
64
+ }, v = F(
63
65
  ({
64
66
  label: o,
65
67
  icon: e,
@@ -89,7 +91,7 @@ const b = {
89
91
  onClear: C,
90
92
  ...E
91
93
  }, A) => {
92
- const [y, M] = oe(!1), { ref: O } = ne();
94
+ const [y, M] = ee(!1), { ref: O } = ne();
93
95
  let d = H;
94
96
  u && (d = "customHeight");
95
97
  const i = {
@@ -205,8 +207,8 @@ const b = {
205
207
  onClick: s === "password" && !p ? T : void 0,
206
208
  onMouseDown: (Z) => s === "password" && !p && Z.preventDefault(),
207
209
  children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center", children: [
208
- p && s !== "password" ? /* @__PURE__ */ r.jsx(le, { variant: "sync", size: "small", className: "size-5" }) : e,
209
- s === "password" && (y ? /* @__PURE__ */ r.jsx(_, { size: 24, className: "" }) : /* @__PURE__ */ r.jsx(q, { size: 24, className: "" }))
210
+ p && s !== "password" ? /* @__PURE__ */ r.jsx(te, { variant: "sync", size: "small", className: "size-5" }) : e,
211
+ s === "password" && (y ? /* @__PURE__ */ r.jsx(oe, { size: 24, className: "" }) : /* @__PURE__ */ r.jsx(le, { size: 24, className: "" }))
210
212
  ] })
211
213
  }
212
214
  ),
@@ -222,18 +224,18 @@ const b = {
222
224
  ),
223
225
  disabled: f,
224
226
  onClick: C,
225
- children: /* @__PURE__ */ r.jsx(V, { size: 20, className: "" })
227
+ children: /* @__PURE__ */ r.jsx(se, { size: 20, className: "" })
226
228
  }
227
229
  ),
228
- m && /* @__PURE__ */ r.jsx("div", { className: "min-h-6", children: (S || G) && /* @__PURE__ */ r.jsx(se, { className: "absolute ", variant: c, children: h || w }) })
230
+ m && /* @__PURE__ */ r.jsx("div", { className: "min-h-6", children: (S || G) && /* @__PURE__ */ r.jsx(re, { className: "absolute ", variant: c, children: h || w }) })
229
231
  ]
230
232
  }
231
233
  );
232
234
  }
233
235
  );
234
236
  v.displayName = "Input";
235
- const me = te(v);
237
+ const be = V(v);
236
238
  export {
237
- me as I,
239
+ be as I,
238
240
  ne as u
239
241
  };
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "./Input-DD4VHP1s.js";
1
+ import { I as f } from "./Input-EkMrxcNX.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,11 @@
1
1
  import { j as r } from "./jsx-runtime-DKDX3adD.js";
2
- import { a as Z, I as T, E as ee } from "./Icons_Legacy-BJgYCS_W.js";
3
2
  import { c as d } from "./cn-B6yFEsav.js";
4
- import M, { useRef as _, useState as x, useCallback as te, useEffect as re } from "react";
5
- const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator: w = ",", variant: y = "default", placeholder: K, itemClassName: U, itemIcon: V, helperText: j, errorText: N, disabled: l, onClick: F, className: $, readonly: h, onValueDelete: B, ...O }) => {
6
- const o = _(null), E = _(null), [u, n] = x(""), [z, i] = x(0), [q, c] = x(!0), [v, P] = x(!1), [m, p] = x(!1), [k, I] = x(null), g = (e) => {
3
+ import M, { useRef as _, useState as x, useCallback as Z, useEffect as T } from "react";
4
+ import { Close as ee } from "./Icons/Close.es.js";
5
+ import { Info as te } from "./Icons/Info.es.js";
6
+ import { Error as re } from "./Icons/Error.es.js";
7
+ const se = ({ label: S, name: D, onChange: f, value: l, icon: C, valueSeparator: w = ",", variant: I = "default", placeholder: K, itemClassName: U, itemIcon: V, helperText: j, errorText: N, disabled: a, onClick: F, className: $, readonly: h, onValueDelete: B, ...O }) => {
8
+ const o = _(null), E = _(null), [u, n] = x(""), [z, i] = x(0), [q, c] = x(!0), [v, P] = x(!1), [m, p] = x(!1), [k, y] = x(null), g = (e) => {
7
9
  if (h || !e) return;
8
10
  const t = e.selectionStart ?? u.length;
9
11
  i(t);
@@ -15,29 +17,29 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
15
17
  s.length > 0 ? (n(s), b()) : (p(!1), n(""), c(!0), i(0));
16
18
  return;
17
19
  }
18
- if (s.length === 0 || a.includes(s)) {
20
+ if (s.length === 0 || l.includes(s)) {
19
21
  n(""), c(!0), g(e.target);
20
22
  return;
21
23
  }
22
- f([...a, s]), n(""), c(!0);
24
+ f([...l, s]), n(""), c(!0);
23
25
  } else {
24
26
  if (e.target.value === w) return;
25
27
  n(e.target.value), c(!1);
26
28
  }
27
29
  g(e.target);
28
- }, b = te(() => {
30
+ }, b = Z(() => {
29
31
  const e = u.trim();
30
32
  if (e.length === 0) {
31
- p(!1), n(""), c(!0), i(0), I(null);
33
+ p(!1), n(""), c(!0), i(0), y(null);
32
34
  return;
33
35
  }
34
- p(!1), k !== null && f(Q(a.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), I(null);
35
- }, [k, u, f, a]), G = (e) => {
36
+ p(!1), k !== null && f(Q(l.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), y(null);
37
+ }, [k, u, f, l]), G = (e) => {
36
38
  if (!h) {
37
39
  if (e.key === "Backspace" && u.length === 0) {
38
40
  if (q) {
39
- const t = a[a.length - 1];
40
- t && (f(a.filter((s) => s !== t)), n(t), i(t.length));
41
+ const t = l[l.length - 1];
42
+ t && (f(l.filter((s) => s !== t)), n(t), i(t.length));
41
43
  } else
42
44
  c(!0);
43
45
  return;
@@ -48,20 +50,20 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
48
50
  t.length > 0 ? (n(t), b()) : (p(!1), n(""), c(!0), i(0));
49
51
  return;
50
52
  }
51
- t.length > 0 && !a.includes(t) && t !== w && (f([...a, t]), n(""), c(!0), i(0));
53
+ t.length > 0 && !l.includes(t) && t !== w && (f([...l, t]), n(""), c(!0), i(0));
52
54
  }
53
- e.key === "Escape" && m && (p(!1), n(""), c(!0), i(0), I(null)), g(e.currentTarget);
55
+ e.key === "Escape" && m && (p(!1), n(""), c(!0), i(0), y(null)), g(e.currentTarget);
54
56
  }
55
57
  }, H = (e) => {
56
- const t = a.filter((s) => s !== e);
58
+ const t = l.filter((s) => s !== e);
57
59
  f(t), B?.(e);
58
60
  }, J = (e) => {
59
- h || (L(e), p(!0), n(e), i(e.length), I(a.length - 1), o.current?.focus());
61
+ h || (L(e), p(!0), n(e), i(e.length), y(l.length - 1), o.current?.focus());
60
62
  }, L = (e) => {
61
- const t = a.filter((s) => s !== e);
63
+ const t = l.filter((s) => s !== e);
62
64
  f([...t, e]);
63
65
  }, Q = (e) => e.filter((t, s, Y) => Y.indexOf(t) === s);
64
- re(() => {
66
+ T(() => {
65
67
  o.current && (o.current.onfocus = () => {
66
68
  P(!0);
67
69
  }, o.current.onblur = () => {
@@ -110,7 +112,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
110
112
  isFocused: "text-warning-default-focused",
111
113
  disabled: "text-warning-default-disabled"
112
114
  }
113
- }, R = l ? "disabled" : v ? "isFocused" : "default";
115
+ }, R = a ? "disabled" : v ? "isFocused" : "default";
114
116
  return /* @__PURE__ */ r.jsxs("div", { className: d(
115
117
  "relative w-full",
116
118
  $
@@ -118,7 +120,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
118
120
  /* @__PURE__ */ r.jsx("p", { className: d(
119
121
  "mb-1 px-3",
120
122
  "prometeo-fonts-label-large",
121
- X?.[y || "default"]?.[R]
123
+ X?.[I || "default"]?.[R]
122
124
  ), children: S }),
123
125
  /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
124
126
  /* @__PURE__ */ r.jsx(
@@ -131,7 +133,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
131
133
  onClick: (e) => g(e.currentTarget),
132
134
  onSelect: (e) => g(e.currentTarget),
133
135
  name: D,
134
- disabled: l,
136
+ disabled: a,
135
137
  className: d(
136
138
  "absolute inset-0 w-full h-full",
137
139
  "opacity-0 cursor-text z-10",
@@ -155,10 +157,10 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
155
157
  "flex flex-wrap gap-1 min-h-[58px]",
156
158
  "transition-all duration-300 ease-in-out",
157
159
  "cursor-text",
158
- W[R][y],
160
+ W[R][I],
159
161
  v ? "ring-[1px]" : "",
160
162
  // 'hover:border-primary-default-hover',
161
- l && "hover:border-neutral-default-disabled"
163
+ a && "hover:border-neutral-default-disabled"
162
164
  ),
163
165
  onMouseDown: (e) => {
164
166
  e.stopPropagation(), F?.(e), o.current?.focus();
@@ -171,17 +173,17 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
171
173
  children: [
172
174
  C && /* @__PURE__ */ r.jsx("div", { className: d(
173
175
  "flex items-center text-neutral-default-default",
174
- l && "text-neutral-default-disabled"
176
+ a && "text-neutral-default-disabled"
175
177
  ), children: C }),
176
- a.map((e, t) => /* @__PURE__ */ r.jsxs(
178
+ l.map((e, t) => /* @__PURE__ */ r.jsxs(
177
179
  "div",
178
180
  {
179
181
  className: d(
180
182
  "h-8 max-h-8 rounded-lg bg-primary-light-default border border-neutral-default-default",
181
183
  "flex items-center gap-2 px-2",
182
184
  "prometeo-fonts-label-medium z-20",
183
- t === a.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
184
- l && "border-neutral-default-disabled text-neutral-default-disabled",
185
+ t === l.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
186
+ a && "border-neutral-default-disabled text-neutral-default-disabled",
185
187
  U
186
188
  ),
187
189
  children: [
@@ -191,7 +193,7 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
191
193
  size: 16,
192
194
  className: d(
193
195
  "text-neutral-default-default",
194
- l && "text-neutral-default-disabled"
196
+ a && "text-neutral-default-disabled"
195
197
  )
196
198
  }
197
199
  ) }),
@@ -199,11 +201,11 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
199
201
  "span",
200
202
  {
201
203
  onClick: (s) => {
202
- s.stopPropagation(), !l && J(e);
204
+ s.stopPropagation(), !a && J(e);
203
205
  },
204
206
  className: d(
205
207
  "cursor-pointer hover:text-neutral-default-hover",
206
- l && "cursor-default hover:text-neutral-default-disabled"
208
+ a && "cursor-default hover:text-neutral-default-disabled"
207
209
  ),
208
210
  children: e
209
211
  }
@@ -212,19 +214,19 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
212
214
  "div",
213
215
  {
214
216
  onClick: (s) => {
215
- s.stopPropagation(), !l && H(e);
217
+ s.stopPropagation(), !a && H(e);
216
218
  },
217
219
  className: d(
218
220
  "cursor-pointer hover:scale-105 transition-all duration-200 ",
219
- l && " cursor-default hover:scale-100 "
221
+ a && " cursor-default hover:scale-100 "
220
222
  ),
221
223
  children: /* @__PURE__ */ r.jsx(
222
- Z,
224
+ ee,
223
225
  {
224
226
  size: 16,
225
227
  className: d(
226
228
  "text-neutral-default-default hover:text-neutral-default-hover transition-all duration-200",
227
- l && "text-neutral-default-disabled hover:text-neutral-default-disabled"
229
+ a && "text-neutral-default-disabled hover:text-neutral-default-disabled"
228
230
  )
229
231
  }
230
232
  )
@@ -239,25 +241,25 @@ const se = ({ label: S, name: D, onChange: f, value: a, icon: C, valueSeparator:
239
241
  /* @__PURE__ */ r.jsx("span", { className: "animate-[cursor-intermitent_1s_ease-in-out_infinite] bg-neutral-default-pressed w-[2px] h-5 inline-block align-middle mx-px z-20" }),
240
242
  /* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap wrap-break-word", children: u.slice(z) })
241
243
  ] }),
242
- a.length === 0 && !v && /* @__PURE__ */ r.jsx("span", { className: d(
244
+ l.length === 0 && !v && /* @__PURE__ */ r.jsx("span", { className: d(
243
245
  "text-neutral-medium-default self-center",
244
- l && "text-neutral-default-disabled"
246
+ a && "text-neutral-default-disabled"
245
247
  ), children: K || `Escribe los valores separados por ${w}` })
246
248
  ]
247
249
  }
248
250
  )
249
251
  ] }),
250
- j && y !== "error" && !l && (typeof j == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
251
- /* @__PURE__ */ r.jsx(T, { size: 16, className: "text-neutral-medium-default" }),
252
+ j && I !== "error" && !a && (typeof j == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
253
+ /* @__PURE__ */ r.jsx(te, { size: 16, className: "text-neutral-medium-default" }),
252
254
  j
253
255
  ] }) : /* @__PURE__ */ r.jsx("div", { className: "ml-3", children: j })),
254
- N && typeof N == "string" && !l ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
255
- /* @__PURE__ */ r.jsx(ee, { size: 16, className: "text-error-default-default" }),
256
+ N && typeof N == "string" && !a ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
257
+ /* @__PURE__ */ r.jsx(re, { size: 16, className: "text-error-default-default" }),
256
258
  N
257
259
  ] }) : N
258
260
  ] });
259
- }, de = M.memo(se);
261
+ }, ie = M.memo(se);
260
262
  export {
261
- de as InputMultiple,
262
- de as default
263
+ ie as InputMultiple,
264
+ ie as default
263
265
  };
package/dist/Logo.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { y as t } from "./Icons_Legacy-BJgYCS_W.js";
2
+ import { TicketFilled as t } from "./Icons/TicketFilled.es.js";
3
3
  const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-linear-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
5
5
  /* @__PURE__ */ e.jsx("span", { className: "font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo", children: "TICKETS" })