@midas-ds/components 15.1.3 → 15.2.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 (125) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/{CharacterCounter-CTpQ12f7.cjs → CharacterCounter-BjOzWOoN.cjs} +1 -1
  3. package/{CharacterCounter-gbDGfize.js → CharacterCounter-b6RpXKDF.js} +5 -5
  4. package/Checkbox-D9X5vM4a.cjs +6 -0
  5. package/Checkbox-ujNi8mrO.js +288 -0
  6. package/{CheckboxGroup-BkzQi1FB.js → CheckboxGroup-BeBThHOu.js} +16 -13
  7. package/CheckboxGroup-BmEiqFKx.cjs +1 -0
  8. package/{ComboBox-t1RVXiiQ.js → ComboBox-BGXUTKrW.js} +138 -142
  9. package/{ComboBox-BISNYEw3.cjs → ComboBox-lteAZwCb.cjs} +1 -1
  10. package/DateField-ZPcapPji.cjs +1 -0
  11. package/DateField-snXaUoBR.js +45 -0
  12. package/{DateInputDivider-DOHpVaNE.js → DateInputDivider-BjVsNVEk.js} +1 -1
  13. package/{DateInputDivider-CCrXjsUB.cjs → DateInputDivider-YOvEmapQ.cjs} +1 -1
  14. package/{DateRangePicker-mlnh0C1A.cjs → DateRangePicker-Biwt-Q8X.cjs} +2 -2
  15. package/{DateRangePicker-ezrFzzrO.js → DateRangePicker-CgvPZfMd.js} +168 -165
  16. package/{FieldError-JWxR_EqN.cjs → FieldError-DHzrxRPt.cjs} +1 -1
  17. package/{FieldError-CIxlNQCM.js → FieldError-DtEDCIQK.js} +1 -1
  18. package/{Label-C3ZSrB04.cjs → Label-Cbp1q387.cjs} +1 -1
  19. package/{Label-BqvFQoEF.js → Label-DH4JI6a4.js} +5 -5
  20. package/Layout-DQiqgjqR.cjs +16 -0
  21. package/{Layout-Hd1e_MEA.js → Layout-FveYuBny.js} +59 -58
  22. package/{ListBox-Rke-lL0z.cjs → ListBox-CMM6O46x.cjs} +1 -1
  23. package/{ListBox-BP_jDOdE.js → ListBox-CfzKpJFW.js} +26 -26
  24. package/{ListBoxLoadMoreItem-8dHDWs3w.cjs → ListBoxLoadMoreItem-10BeO9ux.cjs} +1 -1
  25. package/{ListBoxLoadMoreItem-BE5zpVVP.js → ListBoxLoadMoreItem-k-uwDi4f.js} +1 -1
  26. package/ListBoxSection-B5l2LIMZ.cjs +1 -0
  27. package/ListBoxSection-XoMfdRLd.js +51 -0
  28. package/{ProgressBar-BrtaxoR8.cjs → ProgressBar-C6ExqGom.cjs} +1 -1
  29. package/{ProgressBar-DhVQOs4P.js → ProgressBar-CePyiuw1.js} +1 -1
  30. package/{Radio-DClH8mWz.js → Radio-CNO4IHkf.js} +28 -28
  31. package/{Radio-VFIiuJIR.cjs → Radio-bfeheQ39.cjs} +1 -1
  32. package/{RangeCalendar-CH0CyBui.cjs → RangeCalendar-D7xj3ObC.cjs} +2 -2
  33. package/{RangeCalendar-DT_KVd80.js → RangeCalendar-DKsuoiPF.js} +101 -92
  34. package/{SearchField-Cd6X2rY4.js → SearchField-3XoN9q0k.js} +2 -2
  35. package/{SearchField-Cz5Pb0XE.cjs → SearchField-ClK2IHpM.cjs} +1 -1
  36. package/{Select-DL5Mvadi.cjs → Select-C1rNC9sy.cjs} +1 -1
  37. package/Select-CCyvb02g.cjs +1 -0
  38. package/{Select-zDwMkzOI.js → Select-mz65sX1p.js} +7 -8
  39. package/{Select-D4xRL7l2.js → Select-oiNYST-S.js} +5 -5
  40. package/{Table-DxqKDp7N.js → Table-3x_iGkVe.js} +1 -1
  41. package/{Table-B1nxmW14.cjs → Table-BKbmV4Yp.cjs} +1 -1
  42. package/{Text-BBFWBNAH.js → Text-CnY7jiPS.js} +9 -9
  43. package/Text-DUIBTA3N.cjs +1 -0
  44. package/{TextArea-CcKY4TI2.js → TextArea-Bzgu6xU_.js} +6 -6
  45. package/{TextArea-D68vGjYJ.cjs → TextArea-DPeIoF7V.cjs} +1 -1
  46. package/{TextField-DtD9-arA.cjs → TextField-CdhdTYjC.cjs} +1 -1
  47. package/{TextField-DyR61bjZ.js → TextField-DFMRyd9V.js} +1 -1
  48. package/TextField.module-D9xjQoiS.js +13 -0
  49. package/TextField.module-gwQfMD2x.cjs +1 -0
  50. package/assets/CharacterCounter.css +1 -1
  51. package/assets/Checkbox.css +1 -1
  52. package/assets/ComboBox.css +1 -1
  53. package/assets/DateField.css +1 -1
  54. package/assets/DateRangePicker.css +1 -1
  55. package/assets/Label.css +1 -1
  56. package/assets/ListBox.css +1 -1
  57. package/assets/Radio.css +1 -1
  58. package/assets/RangeCalendar.css +1 -1
  59. package/assets/Text.css +1 -1
  60. package/assets/TextField.css +1 -1
  61. package/assets/default.css +1 -1
  62. package/calendar/CalendarGrid.d.ts +1 -0
  63. package/calendar/CalendarHeader.d.ts +3 -1
  64. package/calendar/index.cjs +1 -1
  65. package/calendar/index.js +1 -1
  66. package/character-counter/index.cjs +1 -1
  67. package/character-counter/index.js +1 -1
  68. package/checkbox/index.cjs +1 -1
  69. package/checkbox/index.js +2 -2
  70. package/combobox/ComboBox.d.ts +10 -3
  71. package/combobox/index.cjs +1 -1
  72. package/combobox/index.js +1 -1
  73. package/combobox/utils.d.ts +12 -3
  74. package/date-field/index.cjs +1 -1
  75. package/date-field/index.js +2 -2
  76. package/date-picker/DatePicker.d.ts +1 -2
  77. package/date-picker/DatePickerInputField.d.ts +2 -5
  78. package/date-picker/index.cjs +1 -1
  79. package/date-picker/index.js +1 -1
  80. package/field-error/index.cjs +1 -1
  81. package/field-error/index.js +1 -1
  82. package/index.cjs +1 -1
  83. package/index.js +22 -22
  84. package/label/index.cjs +1 -1
  85. package/label/index.js +1 -1
  86. package/layout/index.cjs +1 -1
  87. package/layout/index.js +1 -1
  88. package/legacy-select/Select.d.ts +1 -1
  89. package/legacy-select/index.cjs +1 -1
  90. package/legacy-select/index.js +1 -1
  91. package/legacy-select/types.d.ts +3 -0
  92. package/list-box/ListBoxItem.d.ts +3 -9
  93. package/list-box/ListBoxSection.d.ts +6 -3
  94. package/list-box/index.cjs +1 -1
  95. package/list-box/index.js +3 -3
  96. package/list-box/types.d.ts +6 -0
  97. package/package.json +2 -2
  98. package/progress-bar/index.cjs +1 -1
  99. package/progress-bar/index.js +1 -1
  100. package/radio/index.cjs +1 -1
  101. package/radio/index.js +1 -1
  102. package/search-field/index.cjs +1 -1
  103. package/search-field/index.js +1 -1
  104. package/select/index.cjs +1 -1
  105. package/select/index.js +1 -1
  106. package/table/index.cjs +1 -1
  107. package/table/index.js +1 -1
  108. package/text/index.cjs +1 -1
  109. package/text/index.js +1 -1
  110. package/textfield/index.cjs +1 -1
  111. package/textfield/index.js +1 -1
  112. package/variables-BkqZ2WGF.js +5 -0
  113. package/variables-CVumCR9l.cjs +1 -0
  114. package/Checkbox-BgrLxY6P.cjs +0 -1
  115. package/Checkbox-CdN1D5pD.js +0 -282
  116. package/CheckboxGroup-BdRG71EM.cjs +0 -1
  117. package/DateField-B9Yxknuy.cjs +0 -1
  118. package/DateField-BUZ7i9eS.js +0 -47
  119. package/Layout-BrEuHajQ.cjs +0 -16
  120. package/ListBoxSection-7Xzi-bqq.cjs +0 -1
  121. package/ListBoxSection-AIWxdu1v.js +0 -53
  122. package/Select-CHJefc5g.cjs +0 -1
  123. package/Text-D5OSv6Uv.cjs +0 -1
  124. package/TextField.module-BndKUn-7.js +0 -13
  125. package/TextField.module-Du0bmSGZ.cjs +0 -1
@@ -1,20 +1,20 @@
1
1
  import { jsxs as xe, jsx as A } from "react/jsx-runtime";
2
- import _, { useRef as y, useMemo as J, useEffect as ce, useState as z, useCallback as de, forwardRef as bu, createContext as Ee } from "react";
2
+ import _, { useRef as F, useMemo as J, useEffect as ce, useState as z, useCallback as de, forwardRef as bu, createContext as Ee } from "react";
3
3
  import { f as ae, c as Te, e as De, $ as Cu } from "./Button-BbfVT9Yl.js";
4
4
  import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-D2iKpxcZ.js";
5
- import { $ as Bu, F as he } from "./FieldError-CIxlNQCM.js";
5
+ import { $ as Bu, F as he } from "./FieldError-DtEDCIQK.js";
6
6
  import { $ as Eu } from "./Form-CXcEMuBf.js";
7
7
  import { $ as ye } from "./Group-BAd7alBM.js";
8
8
  import { $ as Fe, a as Tu } from "./Input-CQzv-D9g.js";
9
9
  import { f as Du, g as yu, c as Se, d as Fu } from "./ListBox-5GK4ZRj1.js";
10
10
  import { p as Su, h as Lu, i as gu, n as ku } from "./Dialog-D4Py85wi.js";
11
11
  import { $ as Le } from "./Text-bqP9NeVg.js";
12
- import { b as Ku, c as ju } from "./Collection-BkxwF21i.js";
12
+ import { b as Ku, c as Ou } from "./Collection-BkxwF21i.js";
13
13
  import { $ as Pu } from "./filterDOMProps-wsa9OcNI.js";
14
- import { a as Iu, g as Ou } from "./OverlayArrow-CjGslX2c.js";
15
- import { $ as Ru } from "./useFilter-Dn4vTT3G.js";
16
- import { d as Vu, $ as wu } from "./useFormValidation-By7G-T7y.js";
17
- import { e as Gu, f as ge, i as Mu } from "./SelectionManager-DoNLJm8c.js";
14
+ import { a as Iu, g as Ru } from "./OverlayArrow-CjGslX2c.js";
15
+ import { $ as Vu } from "./useFilter-Dn4vTT3G.js";
16
+ import { d as wu, $ as Gu } from "./useFormValidation-By7G-T7y.js";
17
+ import { e as Mu, f as ge, i as ju } from "./SelectionManager-DoNLJm8c.js";
18
18
  import { $ as zu } from "./useSingleSelectListState-GSY0f4qW.js";
19
19
  import { b as Nu } from "./useListState-CP7AKhOX.js";
20
20
  import { $ as Uu } from "./useControlledState-u436Wbp1.js";
@@ -30,10 +30,10 @@ import { a as Yu } from "./ListKeyboardDelegate-BBmpJ-2O.js";
30
30
  import { $ as Qu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
31
31
  import { $ as en } from "./useTextField-I3QVGvyX.js";
32
32
  import { c as Ce } from "./clsx-jbLnTBqA.js";
33
- import { a as un, L as nn } from "./Label-BqvFQoEF.js";
34
- import { T as Ae } from "./Text-BBFWBNAH.js";
35
- import { L as on } from "./ListBox-BP_jDOdE.js";
36
- import { a as tn, L as ln, b as cn } from "./ListBoxSection-AIWxdu1v.js";
33
+ import { a as un, L as nn } from "./Label-DH4JI6a4.js";
34
+ import { T as Ae } from "./Text-CnY7jiPS.js";
35
+ import { L as on } from "./ListBox-CfzKpJFW.js";
36
+ import { a as tn, L as ln, b as cn } from "./ListBoxSection-XoMfdRLd.js";
37
37
  import { C as pn } from "./chevron-down-DmZMdOiC.js";
38
38
  import { u as dn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
39
39
  import './assets/ComboBox.css';var ke = {};
@@ -76,8 +76,8 @@ Ke = {
76
76
  listboxLabel: "Предложения",
77
77
  selectedAnnouncement: (e) => `${e.optionText}, избрани`
78
78
  };
79
- var je = {};
80
- je = {
79
+ var Oe = {};
80
+ Oe = {
81
81
  buttonLabel: "Zobrazit doporučení",
82
82
  countAnnouncement: (e, u) => `K dispozici ${u.plural(e.optionCount, {
83
83
  one: () => `je ${u.number(e.optionCount)} možnost`,
@@ -136,8 +136,8 @@ Ie = {
136
136
  listboxLabel: "Empfehlungen",
137
137
  selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
138
138
  };
139
- var Oe = {};
140
- Oe = {
139
+ var Re = {};
140
+ Re = {
141
141
  buttonLabel: "Προβολή προτάσεων",
142
142
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
143
143
  one: () => `${u.number(e.optionCount)} επιλογή`,
@@ -156,8 +156,8 @@ Oe = {
156
156
  listboxLabel: "Προτάσεις",
157
157
  selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
158
158
  };
159
- var Re = {};
160
- Re = {
159
+ var Ve = {};
160
+ Ve = {
161
161
  focusAnnouncement: (e, u) => `${u.select({
162
162
  true: () => `Entered group ${e.groupTitle}, with ${u.plural(e.groupCount, {
163
163
  one: () => `${u.number(e.groupCount)} option`,
@@ -176,8 +176,8 @@ Re = {
176
176
  buttonLabel: "Show suggestions",
177
177
  listboxLabel: "Suggestions"
178
178
  };
179
- var Ve = {};
180
- Ve = {
179
+ var we = {};
180
+ we = {
181
181
  buttonLabel: "Mostrar sugerencias",
182
182
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
183
183
  one: () => `${u.number(e.optionCount)} opción`,
@@ -196,8 +196,8 @@ Ve = {
196
196
  listboxLabel: "Sugerencias",
197
197
  selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
198
198
  };
199
- var we = {};
200
- we = {
199
+ var Ge = {};
200
+ Ge = {
201
201
  buttonLabel: "Kuva soovitused",
202
202
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
203
203
  one: () => `${u.number(e.optionCount)} valik`,
@@ -216,8 +216,8 @@ we = {
216
216
  listboxLabel: "Soovitused",
217
217
  selectedAnnouncement: (e) => `${e.optionText}, valitud`
218
218
  };
219
- var Ge = {};
220
- Ge = {
219
+ var Me = {};
220
+ Me = {
221
221
  buttonLabel: "Näytä ehdotukset",
222
222
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
223
223
  one: () => `${u.number(e.optionCount)} vaihtoehto`,
@@ -236,8 +236,8 @@ Ge = {
236
236
  listboxLabel: "Ehdotukset",
237
237
  selectedAnnouncement: (e) => `${e.optionText}, valittu`
238
238
  };
239
- var Me = {};
240
- Me = {
239
+ var je = {};
240
+ je = {
241
241
  buttonLabel: "Afficher les suggestions",
242
242
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
243
243
  one: () => `${u.number(e.optionCount)} option`,
@@ -720,15 +720,15 @@ var su = {};
720
720
  su = {
721
721
  "ar-AE": ke,
722
722
  "bg-BG": Ke,
723
- "cs-CZ": je,
723
+ "cs-CZ": Oe,
724
724
  "da-DK": Pe,
725
725
  "de-DE": Ie,
726
- "el-GR": Oe,
727
- "en-US": Re,
728
- "es-ES": Ve,
729
- "et-EE": we,
730
- "fi-FI": Ge,
731
- "fr-FR": Me,
726
+ "el-GR": Re,
727
+ "en-US": Ve,
728
+ "es-ES": we,
729
+ "et-EE": Ge,
730
+ "fi-FI": Me,
731
+ "fr-FR": je,
732
732
  "he-IL": ze,
733
733
  "hr-HR": Ne,
734
734
  "hu-HU": Ue,
@@ -757,14 +757,14 @@ function rn(e) {
757
757
  return e && e.__esModule ? e.default : e;
758
758
  }
759
759
  function sn(e, u) {
760
- let { buttonRef: i, popoverRef: p, inputRef: t, listBoxRef: d, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, h = y(null);
760
+ let { buttonRef: i, popoverRef: p, inputRef: t, listBoxRef: d, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: E, isDisabled: g } = e, h = F(null);
761
761
  i = i ?? h;
762
- let E = Qu(rn(su), "@react-aria/combobox"), { menuTriggerProps: T, menuProps: D } = Su({
762
+ let T = Qu(rn(su), "@react-aria/combobox"), { menuTriggerProps: D, menuProps: y } = Su({
763
763
  type: "listbox",
764
- isDisabled: g || F
764
+ isDisabled: g || E
765
765
  }, u, i);
766
766
  Du.set(u, {
767
- id: D.id
767
+ id: y.id
768
768
  });
769
769
  let { collection: f } = u, { disabledKeys: S } = u.selectionManager, c = J(() => B || new Yu({
770
770
  collection: f,
@@ -777,7 +777,7 @@ function sn(e, u) {
777
777
  f,
778
778
  S,
779
779
  d
780
- ]), { collectionProps: O } = Gu({
780
+ ]), { collectionProps: R } = Mu({
781
781
  selectionManager: u.selectionManager,
782
782
  keyboardDelegate: c,
783
783
  disallowTypeAhead: !0,
@@ -820,21 +820,21 @@ function sn(e, u) {
820
820
  }
821
821
  }, a = (n) => {
822
822
  var o;
823
- let r = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, G = (o = p.current) === null || o === void 0 ? void 0 : o.contains(n.relatedTarget);
824
- r || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
823
+ let r = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, M = (o = p.current) === null || o === void 0 ? void 0 : o.contains(n.relatedTarget);
824
+ r || M || (e.onBlur && e.onBlur(n), u.setFocused(!1));
825
825
  }, N = (n) => {
826
826
  u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
827
- }, { isInvalid: ee, validationErrors: j, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
827
+ }, { isInvalid: ee, validationErrors: O, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
828
828
  ...e,
829
829
  onChange: u.setInputValue,
830
- onKeyDown: F ? e.onKeyDown : qu(u.isOpen && O.onKeyDown, Q, e.onKeyDown),
830
+ onKeyDown: E ? e.onKeyDown : qu(u.isOpen && R.onKeyDown, Q, e.onKeyDown),
831
831
  onBlur: a,
832
832
  value: u.inputValue,
833
833
  defaultValue: u.defaultInputValue,
834
834
  onFocus: N,
835
835
  autoComplete: "off",
836
836
  validate: void 0,
837
- [Vu]: u
837
+ [wu]: u
838
838
  }, t), ne = (n) => {
839
839
  if (n.pointerType === "touch") {
840
840
  var o;
@@ -846,22 +846,22 @@ function sn(e, u) {
846
846
  (o = t.current) === null || o === void 0 || o.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
847
847
  }
848
848
  }, P = ve({
849
- id: T.id,
850
- "aria-label": E.format("buttonLabel"),
851
- "aria-labelledby": e["aria-labelledby"] || v.id
852
- }), R = ve({
853
849
  id: D.id,
854
- "aria-label": E.format("listboxLabel"),
850
+ "aria-label": T.format("buttonLabel"),
855
851
  "aria-labelledby": e["aria-labelledby"] || v.id
856
- }), L = y(0), oe = (n) => {
857
- if (g || F) return;
852
+ }), V = ve({
853
+ id: y.id,
854
+ "aria-label": T.format("listboxLabel"),
855
+ "aria-labelledby": e["aria-labelledby"] || v.id
856
+ }), L = F(0), oe = (n) => {
857
+ if (g || E) return;
858
858
  if (n.timeStamp - L.current < 500) {
859
859
  var o;
860
860
  n.preventDefault(), (o = t.current) === null || o === void 0 || o.focus();
861
861
  return;
862
862
  }
863
- let r = n.target.getBoundingClientRect(), G = n.changedTouches[0], H = Math.ceil(r.left + 0.5 * r.width), re = Math.ceil(r.top + 0.5 * r.height);
864
- if (G.clientX === H && G.clientY === re) {
863
+ let r = n.target.getBoundingClientRect(), M = n.changedTouches[0], H = Math.ceil(r.left + 0.5 * r.width), re = Math.ceil(r.top + 0.5 * r.height);
864
+ if (M.clientX === H && M.clientY === re) {
865
865
  var ie;
866
866
  n.preventDefault(), (ie = t.current) === null || ie === void 0 || ie.focus(), u.toggle(null, "manual"), L.current = n.timeStamp;
867
867
  }
@@ -869,14 +869,14 @@ function sn(e, u) {
869
869
  var q;
870
870
  let K = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
871
871
  var W;
872
- let I = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(K), V = y(I);
872
+ let I = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = F(K), w = F(I);
873
873
  ce(() => {
874
- if (be() && C != null && I != null && I !== V.current) {
875
- let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null, G = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
874
+ if (be() && C != null && I != null && I !== w.current) {
875
+ let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null, M = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
876
876
  var n;
877
- let H = E.format("focusAnnouncement", {
877
+ let H = T.format("focusAnnouncement", {
878
878
  isGroupChange: (n = r && K !== Z.current) !== null && n !== void 0 ? n : !1,
879
- groupTitle: G,
879
+ groupTitle: M,
880
880
  groupCount: r ? [
881
881
  ...ge(r, u.collection)
882
882
  ].length : 0,
@@ -885,23 +885,23 @@ function sn(e, u) {
885
885
  });
886
886
  ae(H);
887
887
  }
888
- Z.current = K, V.current = I;
888
+ Z.current = K, w.current = I;
889
889
  });
890
- let w = Ju(u.collection), te = y(w), le = y(u.isOpen);
890
+ let G = Ju(u.collection), te = F(G), le = F(u.isOpen);
891
891
  ce(() => {
892
892
  let n = u.isOpen !== le.current && (u.selectionManager.focusedKey == null || be());
893
- if (u.isOpen && (n || w !== te.current)) {
894
- let o = E.format("countAnnouncement", {
895
- optionCount: w
893
+ if (u.isOpen && (n || G !== te.current)) {
894
+ let o = T.format("countAnnouncement", {
895
+ optionCount: G
896
896
  });
897
897
  ae(o);
898
898
  }
899
- te.current = w, le.current = u.isOpen;
899
+ te.current = G, le.current = u.isOpen;
900
900
  });
901
- let pe = y(u.selectedKey);
901
+ let pe = F(u.selectedKey);
902
902
  return ce(() => {
903
903
  if (be() && u.isFocused && u.selectedItem && u.selectedKey !== pe.current) {
904
- let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", o = E.format("selectedAnnouncement", {
904
+ let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", o = T.format("selectedAnnouncement", {
905
905
  optionText: n
906
906
  });
907
907
  ae(o);
@@ -917,7 +917,7 @@ function sn(e, u) {
917
917
  t,
918
918
  p
919
919
  ]), Zu(() => {
920
- !C && t.current && Wu(_u(t.current)) === t.current && Mu(t.current, null);
920
+ !C && t.current && Wu(_u(t.current)) === t.current && ju(t.current, null);
921
921
  }, [
922
922
  C
923
923
  ]), Hu(d, "react-aria-item-action", u.isOpen ? () => {
@@ -925,18 +925,18 @@ function sn(e, u) {
925
925
  } : void 0), {
926
926
  labelProps: v,
927
927
  buttonProps: {
928
- ...T,
928
+ ...D,
929
929
  ...P,
930
930
  excludeFromTabOrder: !0,
931
931
  preventFocusOnPress: !0,
932
932
  onPress: ne,
933
933
  onPressStart: s,
934
- isDisabled: g || F
934
+ isDisabled: g || E
935
935
  },
936
936
  inputProps: fe(X, {
937
937
  role: "combobox",
938
- "aria-expanded": T["aria-expanded"],
939
- "aria-controls": u.isOpen ? D.id : void 0,
938
+ "aria-expanded": D["aria-expanded"],
939
+ "aria-controls": u.isOpen ? y.id : void 0,
940
940
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
941
941
  "aria-autocomplete": "list",
942
942
  "aria-activedescendant": C ? yu(u, C.key) : void 0,
@@ -946,7 +946,7 @@ function sn(e, u) {
946
946
  // This disable's the macOS Safari spell check auto corrections.
947
947
  spellCheck: "false"
948
948
  }),
949
- listBoxProps: fe(D, R, {
949
+ listBoxProps: fe(y, V, {
950
950
  autoFocus: u.focusStrategy || !0,
951
951
  shouldUseVirtualFocus: !0,
952
952
  shouldSelectOnPressUp: !0,
@@ -957,21 +957,21 @@ function sn(e, u) {
957
957
  descriptionProps: ue,
958
958
  errorMessageProps: U,
959
959
  isInvalid: ee,
960
- validationErrors: j,
960
+ validationErrors: O,
961
961
  validationDetails: k
962
962
  };
963
963
  }
964
964
  function $n(e) {
965
965
  var u;
966
- let { defaultFilter: i, menuTrigger: p = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [F, g] = z(!1), [h, E] = z(null), T = (l) => {
966
+ let { defaultFilter: i, menuTrigger: p = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [E, g] = z(!1), [h, T] = z(null), D = (l) => {
967
967
  e.onSelectionChange && e.onSelectionChange(l), l === c && (W(), C());
968
968
  };
969
- var D;
970
- let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: O, selectedItem: Y, disabledKeys: Q } = zu({
969
+ var y;
970
+ let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
971
971
  ...e,
972
- onSelectionChange: T,
973
- items: (D = e.items) !== null && D !== void 0 ? D : e.defaultItems
974
- }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [j] = z(a), k = f, v = J(() => (
972
+ onSelectionChange: D,
973
+ items: (y = e.items) !== null && y !== void 0 ? y : e.defaultItems
974
+ }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [O] = z(a), k = f, v = J(() => (
975
975
  // No default filter if items are controlled.
976
976
  e.items != null || !i ? f : an(f, a, i)
977
977
  ), [
@@ -979,7 +979,7 @@ function $n(e) {
979
979
  a,
980
980
  i,
981
981
  e.items
982
- ]), [X, ue] = z(v), U = y("focus"), s = Iu({
982
+ ]), [X, ue] = z(v), U = F("focus"), s = Iu({
983
983
  ...e,
984
984
  onOpenChange: (l) => {
985
985
  e.onOpenChange && e.onOpenChange(l, l ? U.current : void 0), S.setFocused(l), l || S.setFocusedKey(null);
@@ -988,8 +988,8 @@ function $n(e) {
988
988
  defaultOpen: void 0
989
989
  }), P = (l = null, $) => {
990
990
  let m = $ === "manual" || $ === "focus" && p === "focus";
991
- (t || v.size > 0 || m && k.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(l), s.open());
992
- }, R = (l = null, $) => {
991
+ (t || v.size > 0 || m && k.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, T(l), s.open());
992
+ }, V = (l = null, $) => {
993
993
  let m = $ === "manual" || $ === "focus" && p === "focus";
994
994
  !(t || v.size > 0 || m && k.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(l));
995
995
  }, L = de(() => {
@@ -999,7 +999,7 @@ function $n(e) {
999
999
  k,
1000
1000
  v
1001
1001
  ]), oe = de((l = null) => {
1002
- s.isOpen && L(), E(l), s.toggle();
1002
+ s.isOpen && L(), T(l), s.toggle();
1003
1003
  }, [
1004
1004
  s,
1005
1005
  L
@@ -1014,17 +1014,17 @@ function $n(e) {
1014
1014
  K(m), N(m);
1015
1015
  };
1016
1016
  var I, Z;
1017
- let V = y((Z = (I = e.selectedKey) !== null && I !== void 0 ? I : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1018
- var w;
1019
- let te = y(c != null && (w = (u = f.getItem(c)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
1017
+ let w = F((Z = (I = e.selectedKey) !== null && I !== void 0 ? I : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1018
+ var G;
1019
+ let te = F(c != null && (G = (u = f.getItem(c)) === null || u === void 0 ? void 0 : u.textValue) !== null && G !== void 0 ? G : "");
1020
1020
  ce(() => {
1021
1021
  var l;
1022
- F && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && P(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== V.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && O(null)), c !== V.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
1022
+ E && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && P(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== w.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), c !== w.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
1023
1023
  var $;
1024
1024
  let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1025
- !F && c != null && e.inputValue === void 0 && c === V.current && te.current !== m && (K(m), N(m)), V.current = c, te.current = m;
1025
+ !E && c != null && e.inputValue === void 0 && c === w.current && te.current !== m && (K(m), N(m)), w.current = c, te.current = m;
1026
1026
  });
1027
- let le = wu({
1027
+ let le = Gu({
1028
1028
  ...e,
1029
1029
  value: J(() => ({
1030
1030
  inputValue: a,
@@ -1036,7 +1036,7 @@ function $n(e) {
1036
1036
  }), pe = () => {
1037
1037
  d && c == null ? n() : o();
1038
1038
  }, n = () => {
1039
- V.current = null, O(null), C();
1039
+ w.current = null, R(null), C();
1040
1040
  }, o = () => {
1041
1041
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1042
1042
  var l, $;
@@ -1055,9 +1055,9 @@ function $n(e) {
1055
1055
  } else
1056
1056
  o();
1057
1057
  };
1058
- let G = () => {
1059
- s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : O(S.focusedKey) : r();
1060
- }, H = y(a), re = (l) => {
1058
+ let M = () => {
1059
+ s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : R(S.focusedKey) : r();
1060
+ }, H = F(a), re = (l) => {
1061
1061
  l ? (H.current = a, p === "focus" && !e.isReadOnly && P(null, "focus")) : (B && r(), a !== H.current && le.commitValidation()), g(l);
1062
1062
  }, ie = J(() => s.isOpen ? b ? k : v : X, [
1063
1063
  s.isOpen,
@@ -1073,22 +1073,22 @@ function $n(e) {
1073
1073
  ...le,
1074
1074
  ...s,
1075
1075
  focusStrategy: h,
1076
- toggle: R,
1076
+ toggle: V,
1077
1077
  open: P,
1078
1078
  close: r,
1079
1079
  selectionManager: S,
1080
1080
  selectedKey: c,
1081
1081
  defaultSelectedKey: me,
1082
- setSelectedKey: O,
1082
+ setSelectedKey: R,
1083
1083
  disabledKeys: Q,
1084
- isFocused: F,
1084
+ isFocused: E,
1085
1085
  setFocused: re,
1086
1086
  selectedItem: Y,
1087
1087
  collection: ie,
1088
1088
  inputValue: a,
1089
- defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : j,
1089
+ defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : O,
1090
1090
  setInputValue: N,
1091
- commit: G,
1091
+ commit: M,
1092
1092
  revert: pe
1093
1093
  };
1094
1094
  }
@@ -1162,7 +1162,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1162
1162
  d && (t = "text");
1163
1163
  let { validationBehavior: B } = xu(Eu) || {};
1164
1164
  var b, x;
1165
- let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Ru({
1165
+ let E = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Vu({
1166
1166
  sensitivity: "base"
1167
1167
  }), h = $n({
1168
1168
  defaultFilter: e.defaultFilter || g,
@@ -1171,40 +1171,40 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1171
1171
  items: e.items,
1172
1172
  children: void 0,
1173
1173
  collection: u,
1174
- validationBehavior: F
1175
- }), E = y(null), T = y(null), D = y(null), f = y(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: O, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...j } = sn({
1174
+ validationBehavior: E
1175
+ }), T = F(null), D = F(null), y = F(null), f = F(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...O } = sn({
1176
1176
  ...fu(e),
1177
1177
  label: c,
1178
- inputRef: T,
1179
- buttonRef: E,
1180
- listBoxRef: D,
1178
+ inputRef: D,
1179
+ buttonRef: T,
1180
+ listBoxRef: y,
1181
1181
  popoverRef: f,
1182
1182
  name: t === "text" ? p : void 0,
1183
- validationBehavior: F
1183
+ validationBehavior: E
1184
1184
  }, h), [k, v] = z(null), X = de(() => {
1185
- if (T.current) {
1185
+ if (D.current) {
1186
1186
  var P;
1187
- let R = (P = E.current) === null || P === void 0 ? void 0 : P.getBoundingClientRect(), L = T.current.getBoundingClientRect(), oe = R ? Math.min(R.left, L.left) : L.left, C = R ? Math.max(R.right, L.right) : L.right;
1187
+ let V = (P = T.current) === null || P === void 0 ? void 0 : P.getBoundingClientRect(), L = D.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
1188
1188
  v(C - oe + "px");
1189
1189
  }
1190
1190
  }, [
1191
- E,
1192
1191
  T,
1192
+ D,
1193
1193
  v
1194
1194
  ]);
1195
- Ou({
1196
- ref: T,
1195
+ Ru({
1196
+ ref: D,
1197
1197
  onResize: X
1198
1198
  });
1199
1199
  let ue = J(() => ({
1200
1200
  isOpen: h.isOpen,
1201
1201
  isDisabled: e.isDisabled || !1,
1202
- isInvalid: j.isInvalid || !1,
1202
+ isInvalid: O.isInvalid || !1,
1203
1203
  isRequired: e.isRequired || !1
1204
1204
  }), [
1205
1205
  h.isOpen,
1206
1206
  e.isDisabled,
1207
- j.isInvalid,
1207
+ O.isInvalid,
1208
1208
  e.isRequired
1209
1209
  ]), U = vu({
1210
1210
  ...e,
@@ -1231,8 +1231,8 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1231
1231
  [
1232
1232
  De,
1233
1233
  {
1234
- ...O,
1235
- ref: E,
1234
+ ...R,
1235
+ ref: T,
1236
1236
  isPressed: h.isOpen
1237
1237
  }
1238
1238
  ],
@@ -1240,7 +1240,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1240
1240
  Fe,
1241
1241
  {
1242
1242
  ...Y,
1243
- ref: T
1243
+ ref: D
1244
1244
  }
1245
1245
  ],
1246
1246
  [
@@ -1251,8 +1251,8 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1251
1251
  ku,
1252
1252
  {
1253
1253
  ref: f,
1254
- triggerRef: T,
1255
- scrollRef: D,
1254
+ triggerRef: D,
1255
+ scrollRef: y,
1256
1256
  placement: "bottom start",
1257
1257
  isNonModal: !0,
1258
1258
  trigger: "ComboBox",
@@ -1266,7 +1266,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1266
1266
  Se,
1267
1267
  {
1268
1268
  ...Q,
1269
- ref: D
1269
+ ref: y
1270
1270
  }
1271
1271
  ],
1272
1272
  [
@@ -1285,13 +1285,13 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1285
1285
  [
1286
1286
  ye,
1287
1287
  {
1288
- isInvalid: j.isInvalid,
1288
+ isInvalid: O.isInvalid,
1289
1289
  isDisabled: e.isDisabled || !1
1290
1290
  }
1291
1291
  ],
1292
1292
  [
1293
1293
  Bu,
1294
- j
1294
+ O
1295
1295
  ]
1296
1296
  ]
1297
1297
  }, /* @__PURE__ */ _.createElement("div", {
@@ -1302,7 +1302,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1302
1302
  "data-focused": h.isFocused || void 0,
1303
1303
  "data-open": h.isOpen || void 0,
1304
1304
  "data-disabled": e.isDisabled || void 0,
1305
- "data-invalid": j.isInvalid || void 0,
1305
+ "data-invalid": O.isInvalid || void 0,
1306
1306
  "data-required": e.isRequired || void 0
1307
1307
  }), p && t === "key" && /* @__PURE__ */ _.createElement("input", {
1308
1308
  type: "hidden",
@@ -1311,7 +1311,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1311
1311
  value: (s = h.selectedKey) !== null && s !== void 0 ? s : ""
1312
1312
  }));
1313
1313
  }
1314
- const fn = "_combobox_jpjjo_1", vn = "_inputField_jpjjo_6", An = "_medium_jpjjo_28", Bn = "_wrap_jpjjo_69", En = "_button_jpjjo_75", Tn = "_icon_jpjjo_107", Dn = "_emptyState_jpjjo_113", M = {
1314
+ const fn = "_combobox_ti2ot_1", vn = "_inputField_ti2ot_6", An = "_medium_ti2ot_28", Bn = "_wrap_ti2ot_74", En = "_button_ti2ot_80", Tn = "_icon_ti2ot_116", Dn = "_emptyState_ti2ot_122", j = {
1315
1315
  combobox: fn,
1316
1316
  inputField: vn,
1317
1317
  medium: An,
@@ -1333,43 +1333,45 @@ function Co({
1333
1333
  errorPosition: B = "top",
1334
1334
  size: b = "large",
1335
1335
  popover: x,
1336
- ...F
1336
+ ...E
1337
1337
  }) {
1338
- const g = _.useRef(null), h = dn(Sn), E = (T) => {
1339
- var D;
1340
- T.currentTarget.value && ((D = g.current) == null || D.select());
1338
+ const g = _.useRef(null), h = dn(Sn), T = (D) => {
1339
+ var y;
1340
+ D.currentTarget.value && ((y = g.current) == null || y.select());
1341
1341
  };
1342
1342
  return /* @__PURE__ */ xe(
1343
1343
  mn,
1344
1344
  {
1345
- className: Ce(M.combobox, d),
1346
- ...F,
1345
+ className: Ce(j.combobox, d),
1346
+ ...E,
1347
+ "data-readonly": E.isReadOnly || void 0,
1347
1348
  children: [
1348
1349
  /* @__PURE__ */ A(un, { popover: x, children: e && /* @__PURE__ */ A(nn, { children: e }) }),
1349
1350
  u && /* @__PURE__ */ A(Ae, { slot: "description", children: u }),
1350
1351
  B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: i }),
1351
- /* @__PURE__ */ xe("div", { className: M.wrap, children: [
1352
+ /* @__PURE__ */ xe("div", { className: j.wrap, children: [
1352
1353
  /* @__PURE__ */ A(
1353
1354
  Tu,
1354
1355
  {
1355
- className: Ce(M.inputField, {
1356
- [M.medium]: b === "medium"
1356
+ className: Ce(j.inputField, {
1357
+ [j.medium]: b === "medium"
1357
1358
  }),
1358
- onMouseUp: E,
1359
+ "data-readonly": E.isReadOnly || void 0,
1360
+ onMouseUp: T,
1359
1361
  ref: g
1360
1362
  }
1361
1363
  ),
1362
1364
  /* @__PURE__ */ A(
1363
1365
  Cu,
1364
1366
  {
1365
- className: Ce(M.button, {
1366
- [M.medium]: b === "medium"
1367
+ className: Ce(j.button, {
1368
+ [j.medium]: b === "medium"
1367
1369
  }),
1368
1370
  "aria-label": h.format("showList"),
1369
1371
  children: /* @__PURE__ */ A(
1370
1372
  "div",
1371
1373
  {
1372
- className: M.icon,
1374
+ className: j.icon,
1373
1375
  "aria-hidden": "true",
1374
1376
  children: /* @__PURE__ */ A(
1375
1377
  pn,
@@ -1388,7 +1390,7 @@ function Co({
1388
1390
  on,
1389
1391
  {
1390
1392
  items: t,
1391
- renderEmptyState: () => /* @__PURE__ */ A(Ae, { className: M.emptyState, children: h.format("noResultsFound") }),
1393
+ renderEmptyState: () => /* @__PURE__ */ A(Ae, { className: j.emptyState, children: h.format("noResultsFound") }),
1392
1394
  children: p
1393
1395
  }
1394
1396
  ) })
@@ -1397,16 +1399,10 @@ function Co({
1397
1399
  );
1398
1400
  }
1399
1401
  function Ln(e) {
1400
- return /* @__PURE__ */ A(
1401
- ln,
1402
- {
1403
- ...e,
1404
- hideSelectionIndicator: !0
1405
- }
1406
- );
1402
+ return /* @__PURE__ */ A(ln, { ...e });
1407
1403
  }
1408
1404
  function mo(e) {
1409
- return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(ju, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
1405
+ return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(Ou, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
1410
1406
  }
1411
1407
  export {
1412
1408
  Co as C,