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,14 +1,17 @@
1
1
  import { j as s } from "./jsx-runtime-DKDX3adD.js";
2
- import { a as Qe, O as Xe, g as Ue, k as Ye } from "./Icons_Legacy-BJgYCS_W.js";
3
2
  import { c as f } from "./cn-B6yFEsav.js";
4
- import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Ze } from "react";
5
- import et from "./Spinner.es.js";
6
- import { createPortal as tt } from "react-dom";
7
- import { u as nt } from "./useDragScroll-CHN9OMwn.js";
8
- import { u as rt, I as lt } from "./Input-DD4VHP1s.js";
9
- import { H as ot } from "./HelperComponent-DZjT3uYS.js";
10
- import st from "./CheckBox.es.js";
3
+ import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Qe } from "react";
4
+ import Xe from "./Spinner.es.js";
5
+ import { createPortal as Ye } from "react-dom";
6
+ import { u as Ze } from "./useDragScroll-CHN9OMwn.js";
7
+ import { u as et, I as tt } from "./Input-EkMrxcNX.js";
8
+ import { H as nt } from "./HelperComponent-DhGU_ug-.js";
9
+ import { Close as rt } from "./Icons/Close.es.js";
10
+ import lt from "./CheckBox.es.js";
11
11
  import Ke from "./Skeleton.es.js";
12
+ import { Cancel as ot } from "./Icons/Cancel.es.js";
13
+ import { ChevronDown as Ue } from "./Icons/ChevronDown.es.js";
14
+ import { Search as st } from "./Icons/Search.es.js";
12
15
  const at = {
13
16
  default: {
14
17
  container: "text-neutral-default-default border-neutral-default-default ",
@@ -49,7 +52,7 @@ const at = {
49
52
  ),
50
53
  type: "button",
51
54
  tabIndex: h,
52
- children: /* @__PURE__ */ s.jsx(Qe, { size: 18, className: f(u && Fe.icon) })
55
+ children: /* @__PURE__ */ s.jsx(rt, { size: 18, className: f(u && Fe.icon) })
53
56
  }
54
57
  )
55
58
  ]
@@ -85,8 +88,8 @@ const qe = (e, n) => {
85
88
  if (u.length > i.length) return !1;
86
89
  const j = Math.floor(u.length * m);
87
90
  if (j <= 0) return !1;
88
- const p = (b, E) => {
89
- const I = b.length, W = E.length;
91
+ const p = (b, k) => {
92
+ const I = b.length, W = k.length;
90
93
  if (I === 0) return W;
91
94
  if (W === 0) return I;
92
95
  const A = new Array(W + 1);
@@ -95,15 +98,15 @@ const qe = (e, n) => {
95
98
  let S = x - 1;
96
99
  A[0] = x;
97
100
  for (let z = 1; z <= W; z++) {
98
- const se = A[z], K = b.charCodeAt(x - 1) === E.charCodeAt(z - 1) ? 0 : 1, V = A[z] + 1, M = A[z - 1] + 1, N = S + K;
101
+ const se = A[z], K = b.charCodeAt(x - 1) === k.charCodeAt(z - 1) ? 0 : 1, V = A[z] + 1, M = A[z - 1] + 1, N = S + K;
99
102
  A[z] = V < M ? V < N ? V : N : M < N ? M : N, S = se;
100
103
  }
101
104
  }
102
105
  return A[W];
103
106
  };
104
107
  for (let b = 0; b <= i.length - u.length; b++) {
105
- const E = i.slice(b, b + u.length);
106
- if (p(E, u) <= j) return !0;
108
+ const k = i.slice(b, b + u.length);
109
+ if (p(k, u) <= j) return !0;
107
110
  }
108
111
  return !1;
109
112
  }, ut = (e) => {
@@ -167,7 +170,7 @@ const qe = (e, n) => {
167
170
  )
168
171
  };
169
172
  function ct(e) {
170
- const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null), E = ce(null), I = ce(
173
+ const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null), k = ce(null), I = ce(
171
174
  () => {
172
175
  }
173
176
  ), W = ce(null), A = ce(/* @__PURE__ */ new Set()), {
@@ -179,7 +182,7 @@ function ct(e) {
179
182
  controls: V,
180
183
  className: M,
181
184
  placeholder: N,
182
- optionValue: k,
185
+ optionValue: E,
183
186
  optionLabel: de,
184
187
  renderOption: J,
185
188
  renderOptionGroupHeader: fe,
@@ -191,7 +194,7 @@ function ct(e) {
191
194
  dropdownOptions: O,
192
195
  helperComponent: ee,
193
196
  errorComponent: Ce,
194
- onRemoveOption: ke,
197
+ onRemoveOption: Ee,
195
198
  onOptionClick: X,
196
199
  onClose: Se,
197
200
  onClear: me,
@@ -203,8 +206,8 @@ function ct(e) {
203
206
  displayMode: we = "compact",
204
207
  labelVariant: ie = "default",
205
208
  disableOpenOnFocus: ze = !1,
206
- emptyMessage: Ee = "No hay opciones disponibles"
207
- } = e, { ref: Oe } = rt(), { bind: ne, ref: Me } = nt({
209
+ emptyMessage: ke = "No hay opciones disponibles"
210
+ } = e, { ref: Oe } = et(), { bind: ne, ref: Me } = Ze({
208
211
  axis: "x",
209
212
  cursor: { idle: "default", dragging: "grabbing" }
210
213
  }), pe = e.multiple ? Array.isArray(e.value) && e.value.length > 0 : e.value !== void 0 && e.value !== null && e.value !== "", Le = {}, Te = oe(() => ie === "static" && N ? N : "", [ie, N]), Ge = oe(
@@ -224,11 +227,11 @@ function ct(e) {
224
227
  return t[ie][a];
225
228
  }, T = U(
226
229
  (t) => ({
227
- id: G(t, k),
228
- value: G(t, k),
230
+ id: G(t, E),
231
+ value: G(t, E),
229
232
  label: G(t, de)
230
233
  }),
231
- [k, de]
234
+ [E, de]
232
235
  ), Y = oe(() => ut(K), [K]), ge = oe(
233
236
  () => Y.map(T),
234
237
  [Y, T]
@@ -237,18 +240,18 @@ function ct(e) {
237
240
  if (e.multiple)
238
241
  e.value?.forEach((a) => {
239
242
  const l = Y?.find(
240
- (g) => G(g, k) === a
243
+ (g) => G(g, E) === a
241
244
  );
242
245
  l && t.push(l);
243
246
  });
244
247
  else {
245
248
  const a = Y?.find(
246
- (l) => G(l, k) === e.value
249
+ (l) => G(l, E) === e.value
247
250
  );
248
251
  a && t.push(a);
249
252
  }
250
253
  return t;
251
- }, [e.value, k, Y, e.multiple]), o = oe(
254
+ }, [e.value, E, Y, e.multiple]), o = oe(
252
255
  () => r.map(T),
253
256
  [r, T]
254
257
  ), c = oe(
@@ -259,7 +262,7 @@ function ct(e) {
259
262
  return K.forEach((a, l) => {
260
263
  const g = a, H = g.options;
261
264
  if (Array.isArray(H) && H.length > 0) {
262
- const $ = g.label, P = G(a, k), le = `__group-${String(P ?? l)}`, xe = {
265
+ const $ = g.label, P = G(a, E), le = `__group-${String(P ?? l)}`, xe = {
263
266
  id: le,
264
267
  value: le,
265
268
  label: typeof $ == "string" ? $ : String(P ?? `Grupo ${l + 1}`),
@@ -276,7 +279,7 @@ function ct(e) {
276
279
  } else
277
280
  J ? t.push(a) : t.push(T(a));
278
281
  }), t;
279
- }, [K, k, J, T]), w = U(
282
+ }, [K, E, J, T]), w = U(
280
283
  (t, a) => {
281
284
  if (!t || t.length === 0) return;
282
285
  const l = t.map(
@@ -349,21 +352,21 @@ function ct(e) {
349
352
  (t) => {
350
353
  e.multiple || e.onChange?.(void 0, S);
351
354
  const a = Y.find(
352
- (g) => G(g, k) === t
355
+ (g) => G(g, E) === t
353
356
  );
354
357
  if (!a) return;
355
358
  const l = T(a);
356
- X?.(l, S), I.current?.(l), ke?.(a);
359
+ X?.(l, S), I.current?.(l), Ee?.(a);
357
360
  },
358
361
  [
359
362
  X,
360
- ke,
363
+ Ee,
361
364
  Y,
362
365
  S,
363
366
  e.multiple,
364
367
  e.onChange,
365
368
  T,
366
- k
369
+ E
367
370
  ]
368
371
  ), re = U(
369
372
  (t) => {
@@ -395,7 +398,7 @@ function ct(e) {
395
398
  } catch {
396
399
  }
397
400
  });
398
- }, [n]), Ze(
401
+ }, [n]), Qe(
399
402
  V,
400
403
  () => ({
401
404
  open: () => {
@@ -452,7 +455,7 @@ function ct(e) {
452
455
  id: x,
453
456
  tabIndex: 0,
454
457
  role: "button",
455
- ref: E,
458
+ ref: k,
456
459
  onFocus: be,
457
460
  onKeyDown: ue,
458
461
  onClick: (t) => {
@@ -511,7 +514,7 @@ function ct(e) {
511
514
  ),
512
515
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
513
516
  he && /* @__PURE__ */ s.jsx(
514
- et,
517
+ Xe,
515
518
  {
516
519
  size: "small",
517
520
  variant: "sync",
@@ -527,7 +530,7 @@ function ct(e) {
527
530
  type: "button",
528
531
  tabIndex: -1,
529
532
  children: /* @__PURE__ */ s.jsx(
530
- Xe,
533
+ ot,
531
534
  {
532
535
  size: 20,
533
536
  className: f(
@@ -560,9 +563,9 @@ function ct(e) {
560
563
  label: z,
561
564
  isOpen: n,
562
565
  disabled: te,
563
- optionValue: k,
566
+ optionValue: E,
564
567
  optionLabel: de,
565
- emptyMessage: Ee,
568
+ emptyMessage: ke,
566
569
  labelVariant: ie,
567
570
  renderOption: J,
568
571
  renderOptionGroupHeader: fe,
@@ -576,7 +579,7 @@ function ct(e) {
576
579
  options: d,
577
580
  selectRef: j,
578
581
  dropdownRef: p,
579
- selectButtonRef: E,
582
+ selectButtonRef: k,
580
583
  helperComponentRef: W,
581
584
  onOptionClick: y,
582
585
  onCloseDropdown: () => m(!1),
@@ -597,7 +600,7 @@ function ct(e) {
597
600
  }
598
601
  ),
599
602
  (Ce || ee) && /* @__PURE__ */ s.jsx("div", { className: "min-h-6", children: /* @__PURE__ */ s.jsx(
600
- ot,
603
+ nt,
601
604
  {
602
605
  ref: W,
603
606
  variant: F,
@@ -609,7 +612,7 @@ function ct(e) {
609
612
  }
610
613
  );
611
614
  }
612
- const dt = Z(ct, (e, n) => e.value === n.value && e.options === n.options && e.isLoading === n.isLoading && e.disabled === n.disabled && e.errorComponent === n.errorComponent && e.helperComponent === n.helperComponent && e.variant === n.variant && e.label === n.label && e.id === n.id && e.name === n.name && e.placeholder === n.placeholder && e.renderOptionContext === n.renderOptionContext && e.dropdownOptions?.controledSearchValue === n.dropdownOptions?.controledSearchValue && e.dropdownOptions?.isLoading === n.dropdownOptions?.isLoading), Dt = dt;
615
+ const dt = Z(ct, (e, n) => e.value === n.value && e.options === n.options && e.isLoading === n.isLoading && e.disabled === n.disabled && e.errorComponent === n.errorComponent && e.helperComponent === n.helperComponent && e.variant === n.variant && e.label === n.label && e.id === n.id && e.name === n.name && e.placeholder === n.placeholder && e.renderOptionContext === n.renderOptionContext && e.dropdownOptions?.controledSearchValue === n.dropdownOptions?.controledSearchValue && e.dropdownOptions?.isLoading === n.dropdownOptions?.isLoading), Et = dt;
613
616
  function ft({
614
617
  footer: e,
615
618
  isOpen: n,
@@ -621,7 +624,7 @@ function ft({
621
624
  inputProps: j,
622
625
  dropdownRef: p,
623
626
  optionLabel: b,
624
- optionValue: E,
627
+ optionValue: k,
625
628
  searchValue: I,
626
629
  labelVariant: W,
627
630
  emptyMessage: A,
@@ -633,7 +636,7 @@ function ft({
633
636
  searchInputRef: V,
634
637
  setSearchValue: M,
635
638
  dropdownHeight: N,
636
- attachToParent: k,
639
+ attachToParent: E,
637
640
  filteredOptions: de,
638
641
  selectButtonRef: J,
639
642
  onCloseDropdown: fe,
@@ -645,7 +648,7 @@ function ft({
645
648
  onSearchValueChange: O,
646
649
  isLoading: ee = !1,
647
650
  hideSearchBar: Ce = !1,
648
- inputSearchPlaceholder: ke = "Buscar opciones",
651
+ inputSearchPlaceholder: Ee = "Buscar opciones",
649
652
  enableGroupToggle: X = !0,
650
653
  onGroupSelectChange: Se
651
654
  }) {
@@ -657,7 +660,7 @@ function ft({
657
660
  ), ze = U(
658
661
  (r) => !we.has(r),
659
662
  [we]
660
- ), Ee = U(
663
+ ), ke = U(
661
664
  (r, o) => {
662
665
  ie((c) => {
663
666
  const d = new Set(c), w = d.has(r);
@@ -690,7 +693,7 @@ function ft({
690
693
  p.current.style.maxHeight = "0", p.current.style.opacity = "0", p.current.style.pointerEvents = "none";
691
694
  return;
692
695
  }
693
- if (!k) {
696
+ if (!E) {
694
697
  const o = Me();
695
698
  Ae(o), Oe(o.direction), ne(o.height);
696
699
  }
@@ -698,7 +701,7 @@ function ft({
698
701
  }
699
702
  };
700
703
  ve(() => {
701
- k || !h.current || !n || Oe();
704
+ E || !h.current || !n || Oe();
702
705
  }, [ae]), ve(() => {
703
706
  pe(n);
704
707
  }, [n]), ve(() => {
@@ -757,7 +760,7 @@ function ft({
757
760
  if (K) {
758
761
  K(), Q(
759
762
  i.filter((r) => {
760
- const o = x ? G(r, E) : r.id;
763
+ const o = x ? G(r, k) : r.id;
761
764
  return ae.has(o);
762
765
  })
763
766
  );
@@ -767,7 +770,7 @@ function ft({
767
770
  }, [
768
771
  i,
769
772
  ae,
770
- E,
773
+ k,
771
774
  K,
772
775
  Q,
773
776
  M,
@@ -839,7 +842,7 @@ function ft({
839
842
  className: f(
840
843
  " z-100! w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-lg shadow-lg",
841
844
  " overflow-hidden focus-visible:bg-neutral-default-hover ",
842
- k ? "absolute z-50 " : "fixed z-100 top-0 left-0",
845
+ E ? "absolute z-50 " : "fixed z-100 top-0 left-0",
843
846
  he.direction === "up" ? "h-auto" : " h-max",
844
847
  Ie
845
848
  ),
@@ -856,7 +859,7 @@ function ft({
856
859
  },
857
860
  children: [
858
861
  !Ce && /* @__PURE__ */ s.jsx(
859
- lt,
862
+ tt,
860
863
  {
861
864
  name: "",
862
865
  label: "",
@@ -866,12 +869,12 @@ function ft({
866
869
  disabled: v,
867
870
  ref: V,
868
871
  labelVariant: "static",
869
- icon: /* @__PURE__ */ s.jsx(Ye, { size: 22 }),
872
+ icon: /* @__PURE__ */ s.jsx(st, { size: 22 }),
870
873
  isFetching: ee,
871
874
  onKeyDown: $e,
872
875
  onClear: Ge,
873
876
  onChange: (r) => Te(r.target.value),
874
- placeholder: ke,
877
+ placeholder: Ee,
875
878
  className: " bg-neutral-medium-pressed",
876
879
  ...j
877
880
  }
@@ -879,10 +882,10 @@ function ft({
879
882
  /* @__PURE__ */ s.jsx("div", { className: " overflow-y-auto flex-1 max-h-max ", children: de.length === 0 ? ee ? /* @__PURE__ */ s.jsx("div", { className: "flex flex-col gap-1 overflow-hidden w-full", children: je || Y }) : /* @__PURE__ */ s.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: I ? `No se encontraron resultados para "${I}"` : A }) : (() => {
880
883
  let r = !0;
881
884
  return de.map((o) => {
882
- const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o, E) : c.id, L = ae.has(w), y = (l) => !x || d ? l : {
885
+ const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o, k) : c.id, L = ae.has(w), y = (l) => !x || d ? l : {
883
886
  id: w,
884
887
  label: String(G(l, b)),
885
- value: G(l, E)
888
+ value: G(l, k)
886
889
  }, R = (l) => {
887
890
  d || se(
888
891
  y(o),
@@ -918,12 +921,12 @@ function ft({
918
921
  const l = c.groupLabelNode ?? c.label, g = String(c.id), H = X === !1 ? !0 : ze(g);
919
922
  r = H;
920
923
  const $ = c.originalOption, P = c.groupData?.groupOptions ?? [], le = (_) => {
921
- X && Ee(g, _);
924
+ X && ke(g, _);
922
925
  }, xe = (_) => {
923
926
  !P || P.length === 0 || Se && Se(P, _);
924
927
  }, ye = P.filter(
925
- (_) => ae.has(G(_, E))
926
- ).map((_) => String(G(_, E)));
928
+ (_) => ae.has(G(_, k))
929
+ ).map((_) => String(G(_, k)));
927
930
  if (z) {
928
931
  const _ = Z(
929
932
  z,
@@ -949,7 +952,7 @@ function ft({
949
952
  "div",
950
953
  {
951
954
  className: "cursor-pointer",
952
- onClick: () => Ee(g),
955
+ onClick: () => ke(g),
953
956
  children: /* @__PURE__ */ s.jsx(
954
957
  Ue,
955
958
  {
@@ -1013,7 +1016,7 @@ function ft({
1013
1016
  )
1014
1017
  }
1015
1018
  );
1016
- return k ? ge : tt(ge, document.body);
1019
+ return E ? ge : Ye(ge, document.body);
1017
1020
  }
1018
1021
  const mt = Z(
1019
1022
  ft,
@@ -1056,7 +1059,7 @@ const mt = Z(
1056
1059
  u && !h && "text-neutral-default-disabled hover:bg-neutral-default-default"
1057
1060
  ),
1058
1061
  children: [
1059
- i && !h && /* @__PURE__ */ s.jsx(st, { checked: n, disabled: u }),
1062
+ i && !h && /* @__PURE__ */ s.jsx(lt, { checked: n, disabled: u }),
1060
1063
  /* @__PURE__ */ s.jsx("span", { children: p })
1061
1064
  ]
1062
1065
  },
@@ -1094,6 +1097,6 @@ const Je = Z(
1094
1097
  );
1095
1098
  Je.displayName = "DefaultSelectionDisplay";
1096
1099
  export {
1097
- Dt as S,
1100
+ Et as S,
1098
1101
  G as g
1099
1102
  };
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as f } from "./Select-DfjHfmxM.js";
1
+ import { S as f } from "./Select-CRFOzYc6.js";
2
2
  export {
3
3
  f as default
4
4
  };