@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.
- package/CHANGELOG.md +43 -0
- package/{CharacterCounter-CTpQ12f7.cjs → CharacterCounter-BjOzWOoN.cjs} +1 -1
- package/{CharacterCounter-gbDGfize.js → CharacterCounter-b6RpXKDF.js} +5 -5
- package/Checkbox-D9X5vM4a.cjs +6 -0
- package/Checkbox-ujNi8mrO.js +288 -0
- package/{CheckboxGroup-BkzQi1FB.js → CheckboxGroup-BeBThHOu.js} +16 -13
- package/CheckboxGroup-BmEiqFKx.cjs +1 -0
- package/{ComboBox-t1RVXiiQ.js → ComboBox-BGXUTKrW.js} +138 -142
- package/{ComboBox-BISNYEw3.cjs → ComboBox-lteAZwCb.cjs} +1 -1
- package/DateField-ZPcapPji.cjs +1 -0
- package/DateField-snXaUoBR.js +45 -0
- package/{DateInputDivider-DOHpVaNE.js → DateInputDivider-BjVsNVEk.js} +1 -1
- package/{DateInputDivider-CCrXjsUB.cjs → DateInputDivider-YOvEmapQ.cjs} +1 -1
- package/{DateRangePicker-mlnh0C1A.cjs → DateRangePicker-Biwt-Q8X.cjs} +2 -2
- package/{DateRangePicker-ezrFzzrO.js → DateRangePicker-CgvPZfMd.js} +168 -165
- package/{FieldError-JWxR_EqN.cjs → FieldError-DHzrxRPt.cjs} +1 -1
- package/{FieldError-CIxlNQCM.js → FieldError-DtEDCIQK.js} +1 -1
- package/{Label-C3ZSrB04.cjs → Label-Cbp1q387.cjs} +1 -1
- package/{Label-BqvFQoEF.js → Label-DH4JI6a4.js} +5 -5
- package/Layout-DQiqgjqR.cjs +16 -0
- package/{Layout-Hd1e_MEA.js → Layout-FveYuBny.js} +59 -58
- package/{ListBox-Rke-lL0z.cjs → ListBox-CMM6O46x.cjs} +1 -1
- package/{ListBox-BP_jDOdE.js → ListBox-CfzKpJFW.js} +26 -26
- package/{ListBoxLoadMoreItem-8dHDWs3w.cjs → ListBoxLoadMoreItem-10BeO9ux.cjs} +1 -1
- package/{ListBoxLoadMoreItem-BE5zpVVP.js → ListBoxLoadMoreItem-k-uwDi4f.js} +1 -1
- package/ListBoxSection-B5l2LIMZ.cjs +1 -0
- package/ListBoxSection-XoMfdRLd.js +51 -0
- package/{ProgressBar-BrtaxoR8.cjs → ProgressBar-C6ExqGom.cjs} +1 -1
- package/{ProgressBar-DhVQOs4P.js → ProgressBar-CePyiuw1.js} +1 -1
- package/{Radio-DClH8mWz.js → Radio-CNO4IHkf.js} +28 -28
- package/{Radio-VFIiuJIR.cjs → Radio-bfeheQ39.cjs} +1 -1
- package/{RangeCalendar-CH0CyBui.cjs → RangeCalendar-D7xj3ObC.cjs} +2 -2
- package/{RangeCalendar-DT_KVd80.js → RangeCalendar-DKsuoiPF.js} +101 -92
- package/{SearchField-Cd6X2rY4.js → SearchField-3XoN9q0k.js} +2 -2
- package/{SearchField-Cz5Pb0XE.cjs → SearchField-ClK2IHpM.cjs} +1 -1
- package/{Select-DL5Mvadi.cjs → Select-C1rNC9sy.cjs} +1 -1
- package/Select-CCyvb02g.cjs +1 -0
- package/{Select-zDwMkzOI.js → Select-mz65sX1p.js} +7 -8
- package/{Select-D4xRL7l2.js → Select-oiNYST-S.js} +5 -5
- package/{Table-DxqKDp7N.js → Table-3x_iGkVe.js} +1 -1
- package/{Table-B1nxmW14.cjs → Table-BKbmV4Yp.cjs} +1 -1
- package/{Text-BBFWBNAH.js → Text-CnY7jiPS.js} +9 -9
- package/Text-DUIBTA3N.cjs +1 -0
- package/{TextArea-CcKY4TI2.js → TextArea-Bzgu6xU_.js} +6 -6
- package/{TextArea-D68vGjYJ.cjs → TextArea-DPeIoF7V.cjs} +1 -1
- package/{TextField-DtD9-arA.cjs → TextField-CdhdTYjC.cjs} +1 -1
- package/{TextField-DyR61bjZ.js → TextField-DFMRyd9V.js} +1 -1
- package/TextField.module-D9xjQoiS.js +13 -0
- package/TextField.module-gwQfMD2x.cjs +1 -0
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/default.css +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- package/calendar/CalendarHeader.d.ts +3 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/combobox/ComboBox.d.ts +10 -3
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/utils.d.ts +12 -3
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +1 -2
- package/date-picker/DatePickerInputField.d.ts +2 -5
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +22 -22
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +1 -1
- package/legacy-select/index.cjs +1 -1
- package/legacy-select/index.js +1 -1
- package/legacy-select/types.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +3 -9
- package/list-box/ListBoxSection.d.ts +6 -3
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +3 -3
- package/list-box/types.d.ts +6 -0
- package/package.json +2 -2
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/variables-BkqZ2WGF.js +5 -0
- package/variables-CVumCR9l.cjs +1 -0
- package/Checkbox-BgrLxY6P.cjs +0 -1
- package/Checkbox-CdN1D5pD.js +0 -282
- package/CheckboxGroup-BdRG71EM.cjs +0 -1
- package/DateField-B9Yxknuy.cjs +0 -1
- package/DateField-BUZ7i9eS.js +0 -47
- package/Layout-BrEuHajQ.cjs +0 -16
- package/ListBoxSection-7Xzi-bqq.cjs +0 -1
- package/ListBoxSection-AIWxdu1v.js +0 -53
- package/Select-CHJefc5g.cjs +0 -1
- package/Text-D5OSv6Uv.cjs +0 -1
- package/TextField.module-BndKUn-7.js +0 -13
- 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
|
|
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-
|
|
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
|
|
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
|
|
15
|
-
import { $ as
|
|
16
|
-
import { d as
|
|
17
|
-
import { e as
|
|
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-
|
|
34
|
-
import { T as Ae } from "./Text-
|
|
35
|
-
import { L as on } from "./ListBox-
|
|
36
|
-
import { a as tn, L as ln, b as cn } from "./ListBoxSection-
|
|
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
|
|
80
|
-
|
|
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
|
|
140
|
-
|
|
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
|
|
160
|
-
|
|
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
|
|
180
|
-
|
|
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
|
|
200
|
-
|
|
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
|
|
220
|
-
|
|
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
|
|
240
|
-
|
|
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":
|
|
723
|
+
"cs-CZ": Oe,
|
|
724
724
|
"da-DK": Pe,
|
|
725
725
|
"de-DE": Ie,
|
|
726
|
-
"el-GR":
|
|
727
|
-
"en-US":
|
|
728
|
-
"es-ES":
|
|
729
|
-
"et-EE":
|
|
730
|
-
"fi-FI":
|
|
731
|
-
"fr-FR":
|
|
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:
|
|
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
|
|
762
|
+
let T = Qu(rn(su), "@react-aria/combobox"), { menuTriggerProps: D, menuProps: y } = Su({
|
|
763
763
|
type: "listbox",
|
|
764
|
-
isDisabled: g ||
|
|
764
|
+
isDisabled: g || E
|
|
765
765
|
}, u, i);
|
|
766
766
|
Du.set(u, {
|
|
767
|
-
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:
|
|
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,
|
|
824
|
-
r ||
|
|
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:
|
|
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:
|
|
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
|
-
[
|
|
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":
|
|
850
|
+
"aria-label": T.format("buttonLabel"),
|
|
855
851
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
856
|
-
}),
|
|
857
|
-
|
|
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(),
|
|
864
|
-
if (
|
|
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 =
|
|
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 !==
|
|
875
|
-
let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null,
|
|
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 =
|
|
877
|
+
let H = T.format("focusAnnouncement", {
|
|
878
878
|
isGroupChange: (n = r && K !== Z.current) !== null && n !== void 0 ? n : !1,
|
|
879
|
-
groupTitle:
|
|
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,
|
|
888
|
+
Z.current = K, w.current = I;
|
|
889
889
|
});
|
|
890
|
-
let
|
|
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 ||
|
|
894
|
-
let o =
|
|
895
|
-
optionCount:
|
|
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 =
|
|
899
|
+
te.current = G, le.current = u.isOpen;
|
|
900
900
|
});
|
|
901
|
-
let pe =
|
|
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 =
|
|
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 &&
|
|
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
|
-
...
|
|
928
|
+
...D,
|
|
929
929
|
...P,
|
|
930
930
|
excludeFromTabOrder: !0,
|
|
931
931
|
preventFocusOnPress: !0,
|
|
932
932
|
onPress: ne,
|
|
933
933
|
onPressStart: s,
|
|
934
|
-
isDisabled: g ||
|
|
934
|
+
isDisabled: g || E
|
|
935
935
|
},
|
|
936
936
|
inputProps: fe(X, {
|
|
937
937
|
role: "combobox",
|
|
938
|
-
"aria-expanded":
|
|
939
|
-
"aria-controls": u.isOpen ?
|
|
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(
|
|
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:
|
|
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), [
|
|
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
|
|
970
|
-
let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey:
|
|
969
|
+
var y;
|
|
970
|
+
let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
|
|
971
971
|
...e,
|
|
972
|
-
onSelectionChange:
|
|
973
|
-
items: (
|
|
974
|
-
}), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [
|
|
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 =
|
|
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 = $,
|
|
992
|
-
},
|
|
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(),
|
|
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
|
|
1018
|
-
var
|
|
1019
|
-
let te =
|
|
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
|
-
|
|
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
|
-
!
|
|
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 =
|
|
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
|
-
|
|
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
|
|
1059
|
-
s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() :
|
|
1060
|
-
}, H =
|
|
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:
|
|
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:
|
|
1082
|
+
setSelectedKey: R,
|
|
1083
1083
|
disabledKeys: Q,
|
|
1084
|
-
isFocused:
|
|
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 :
|
|
1089
|
+
defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : O,
|
|
1090
1090
|
setInputValue: N,
|
|
1091
|
-
commit:
|
|
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
|
|
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:
|
|
1175
|
-
}),
|
|
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:
|
|
1179
|
-
buttonRef:
|
|
1180
|
-
listBoxRef:
|
|
1178
|
+
inputRef: D,
|
|
1179
|
+
buttonRef: T,
|
|
1180
|
+
listBoxRef: y,
|
|
1181
1181
|
popoverRef: f,
|
|
1182
1182
|
name: t === "text" ? p : void 0,
|
|
1183
|
-
validationBehavior:
|
|
1183
|
+
validationBehavior: E
|
|
1184
1184
|
}, h), [k, v] = z(null), X = de(() => {
|
|
1185
|
-
if (
|
|
1185
|
+
if (D.current) {
|
|
1186
1186
|
var P;
|
|
1187
|
-
let
|
|
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
|
-
|
|
1196
|
-
ref:
|
|
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:
|
|
1202
|
+
isInvalid: O.isInvalid || !1,
|
|
1203
1203
|
isRequired: e.isRequired || !1
|
|
1204
1204
|
}), [
|
|
1205
1205
|
h.isOpen,
|
|
1206
1206
|
e.isDisabled,
|
|
1207
|
-
|
|
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
|
-
...
|
|
1235
|
-
ref:
|
|
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:
|
|
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:
|
|
1255
|
-
scrollRef:
|
|
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:
|
|
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:
|
|
1288
|
+
isInvalid: O.isInvalid,
|
|
1289
1289
|
isDisabled: e.isDisabled || !1
|
|
1290
1290
|
}
|
|
1291
1291
|
],
|
|
1292
1292
|
[
|
|
1293
1293
|
Bu,
|
|
1294
|
-
|
|
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":
|
|
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 = "
|
|
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
|
-
...
|
|
1336
|
+
...E
|
|
1337
1337
|
}) {
|
|
1338
|
-
const g = _.useRef(null), h = dn(Sn),
|
|
1339
|
-
var
|
|
1340
|
-
|
|
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(
|
|
1346
|
-
...
|
|
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:
|
|
1352
|
+
/* @__PURE__ */ xe("div", { className: j.wrap, children: [
|
|
1352
1353
|
/* @__PURE__ */ A(
|
|
1353
1354
|
Tu,
|
|
1354
1355
|
{
|
|
1355
|
-
className: Ce(
|
|
1356
|
-
[
|
|
1356
|
+
className: Ce(j.inputField, {
|
|
1357
|
+
[j.medium]: b === "medium"
|
|
1357
1358
|
}),
|
|
1358
|
-
|
|
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(
|
|
1366
|
-
[
|
|
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:
|
|
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:
|
|
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(
|
|
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,
|