@react-spectrum/combobox 3.4.2-nightly.3362 → 3.4.2-nightly.3373
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/dist/main.js +215 -64
- package/dist/main.js.map +1 -1
- package/dist/module.js +216 -49
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/ComboBox.tsx +5 -5
- package/src/MobileComboBox.tsx +7 -7
- package/src/index.ts +1 -1
package/dist/module.js
CHANGED
|
@@ -14,7 +14,7 @@ import $725Me$react, {useRef as $725Me$useRef, useState as $725Me$useState, useC
|
|
|
14
14
|
import {TextFieldBase as $725Me$TextFieldBase} from "@react-spectrum/textfield";
|
|
15
15
|
import {useComboBox as $725Me$useComboBox} from "@react-aria/combobox";
|
|
16
16
|
import {useComboBoxState as $725Me$useComboBoxState} from "@react-stately/combobox";
|
|
17
|
-
import {
|
|
17
|
+
import {useLocalizedStringFormatter as $725Me$useLocalizedStringFormatter, useFilter as $725Me$useFilter} from "@react-aria/i18n";
|
|
18
18
|
import {useLayoutEffect as $725Me$useLayoutEffect, mergeProps as $725Me$mergeProps, useId as $725Me$useId} from "@react-aria/utils";
|
|
19
19
|
import {useProviderProps as $725Me$useProviderProps, useProvider as $725Me$useProvider} from "@react-spectrum/provider";
|
|
20
20
|
import $725Me$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
@@ -29,9 +29,6 @@ function $parcel$interopDefault(a) {
|
|
|
29
29
|
function $parcel$export(e, n, v, s) {
|
|
30
30
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
31
31
|
}
|
|
32
|
-
var $2289f375e813f187$exports = {};
|
|
33
|
-
|
|
34
|
-
$parcel$export($2289f375e813f187$exports, "ComboBox", () => $2289f375e813f187$export$72b9695b8216309a);
|
|
35
32
|
|
|
36
33
|
|
|
37
34
|
var $7a1753adda45f7fb$exports = {};
|
|
@@ -71,139 +68,309 @@ $7a1753adda45f7fb$export$7281dc54d38d4bed = "tray-listbox_743018";
|
|
|
71
68
|
|
|
72
69
|
var $9c69665f9f0b71fd$exports = {};
|
|
73
70
|
var $37184f3a1eff2016$exports = {};
|
|
74
|
-
$37184f3a1eff2016$exports =
|
|
71
|
+
$37184f3a1eff2016$exports = {
|
|
72
|
+
"clear": `مسح`,
|
|
73
|
+
"invalid": `(غير صالح)`,
|
|
74
|
+
"loading": `جارٍ التحميل...`,
|
|
75
|
+
"noResults": `لا توجد نتائج`
|
|
76
|
+
};
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
var $292e71851d5fef25$exports = {};
|
|
78
|
-
$292e71851d5fef25$exports =
|
|
80
|
+
$292e71851d5fef25$exports = {
|
|
81
|
+
"clear": `Изчисти`,
|
|
82
|
+
"invalid": `(невалиден)`,
|
|
83
|
+
"loading": `Зареждане...`,
|
|
84
|
+
"noResults": `Няма резултати`
|
|
85
|
+
};
|
|
79
86
|
|
|
80
87
|
|
|
81
88
|
var $e03903e9a2e8a8dc$exports = {};
|
|
82
|
-
$e03903e9a2e8a8dc$exports =
|
|
89
|
+
$e03903e9a2e8a8dc$exports = {
|
|
90
|
+
"clear": `Vymazat`,
|
|
91
|
+
"invalid": `(neplatné)`,
|
|
92
|
+
"loading": `Načítání...`,
|
|
93
|
+
"noResults": `Žádné výsledky`
|
|
94
|
+
};
|
|
83
95
|
|
|
84
96
|
|
|
85
97
|
var $e254601d3b112ae8$exports = {};
|
|
86
|
-
$e254601d3b112ae8$exports =
|
|
98
|
+
$e254601d3b112ae8$exports = {
|
|
99
|
+
"clear": `Ryd`,
|
|
100
|
+
"invalid": `(ugyldig)`,
|
|
101
|
+
"loading": `Indlæser ...`,
|
|
102
|
+
"noResults": `Ingen resultater`
|
|
103
|
+
};
|
|
87
104
|
|
|
88
105
|
|
|
89
106
|
var $760f46c8bf4d0bd2$exports = {};
|
|
90
|
-
$760f46c8bf4d0bd2$exports =
|
|
107
|
+
$760f46c8bf4d0bd2$exports = {
|
|
108
|
+
"clear": `Löschen`,
|
|
109
|
+
"invalid": `(ungültig)`,
|
|
110
|
+
"loading": `Wird geladen...`,
|
|
111
|
+
"noResults": `Keine Ergebnisse`
|
|
112
|
+
};
|
|
91
113
|
|
|
92
114
|
|
|
93
115
|
var $1ea466df78549cf5$exports = {};
|
|
94
|
-
$1ea466df78549cf5$exports =
|
|
116
|
+
$1ea466df78549cf5$exports = {
|
|
117
|
+
"clear": `Καθαρισμός`,
|
|
118
|
+
"invalid": `(δεν ισχύει)`,
|
|
119
|
+
"loading": `Φόρτωση...`,
|
|
120
|
+
"noResults": `Χωρίς αποτέλεσμα`
|
|
121
|
+
};
|
|
95
122
|
|
|
96
123
|
|
|
97
124
|
var $2ae24b959273b5c1$exports = {};
|
|
98
|
-
$2ae24b959273b5c1$exports =
|
|
125
|
+
$2ae24b959273b5c1$exports = {
|
|
126
|
+
"loading": `Loading...`,
|
|
127
|
+
"noResults": `No results`,
|
|
128
|
+
"clear": `Clear`,
|
|
129
|
+
"invalid": `(invalid)`
|
|
130
|
+
};
|
|
99
131
|
|
|
100
132
|
|
|
101
133
|
var $1e422c6caf1d6300$exports = {};
|
|
102
|
-
$1e422c6caf1d6300$exports =
|
|
134
|
+
$1e422c6caf1d6300$exports = {
|
|
135
|
+
"clear": `Borrar`,
|
|
136
|
+
"invalid": `(no válido)`,
|
|
137
|
+
"loading": `Cargando...`,
|
|
138
|
+
"noResults": `Sin resultados`
|
|
139
|
+
};
|
|
103
140
|
|
|
104
141
|
|
|
105
142
|
var $ec276c10668cb27d$exports = {};
|
|
106
|
-
$ec276c10668cb27d$exports =
|
|
143
|
+
$ec276c10668cb27d$exports = {
|
|
144
|
+
"clear": `Puhasta`,
|
|
145
|
+
"invalid": `(kehtetu)`,
|
|
146
|
+
"loading": `Laadimine...`,
|
|
147
|
+
"noResults": `Tulemusi pole`
|
|
148
|
+
};
|
|
107
149
|
|
|
108
150
|
|
|
109
151
|
var $3ee762802ba9edfd$exports = {};
|
|
110
|
-
$3ee762802ba9edfd$exports =
|
|
152
|
+
$3ee762802ba9edfd$exports = {
|
|
153
|
+
"clear": `Kirkas`,
|
|
154
|
+
"invalid": `(epäkelpo)`,
|
|
155
|
+
"loading": `Ladataan...`,
|
|
156
|
+
"noResults": `Ei tuloksia`
|
|
157
|
+
};
|
|
111
158
|
|
|
112
159
|
|
|
113
160
|
var $4a4c220cbaf33119$exports = {};
|
|
114
|
-
$4a4c220cbaf33119$exports =
|
|
161
|
+
$4a4c220cbaf33119$exports = {
|
|
162
|
+
"clear": `Effacer`,
|
|
163
|
+
"invalid": `(non valide)`,
|
|
164
|
+
"loading": `Chargement en cours...`,
|
|
165
|
+
"noResults": `Aucun résultat`
|
|
166
|
+
};
|
|
115
167
|
|
|
116
168
|
|
|
117
169
|
var $5768444fcb73d3f4$exports = {};
|
|
118
|
-
$5768444fcb73d3f4$exports =
|
|
170
|
+
$5768444fcb73d3f4$exports = {
|
|
171
|
+
"clear": `נקי`,
|
|
172
|
+
"invalid": `(לא חוקי)`,
|
|
173
|
+
"loading": `טוען...`,
|
|
174
|
+
"noResults": `אין תוצאות`
|
|
175
|
+
};
|
|
119
176
|
|
|
120
177
|
|
|
121
178
|
var $0c19c7a2667b34f6$exports = {};
|
|
122
|
-
$0c19c7a2667b34f6$exports =
|
|
179
|
+
$0c19c7a2667b34f6$exports = {
|
|
180
|
+
"clear": `Izbriši`,
|
|
181
|
+
"invalid": `(nevažeće)`,
|
|
182
|
+
"loading": `Učitavam...`,
|
|
183
|
+
"noResults": `Nema rezultata`
|
|
184
|
+
};
|
|
123
185
|
|
|
124
186
|
|
|
125
187
|
var $c688fc1a398cdc12$exports = {};
|
|
126
|
-
$c688fc1a398cdc12$exports =
|
|
188
|
+
$c688fc1a398cdc12$exports = {
|
|
189
|
+
"clear": `Törlés`,
|
|
190
|
+
"invalid": `(érvénytelen)`,
|
|
191
|
+
"loading": `Betöltés folyamatban…`,
|
|
192
|
+
"noResults": `Nincsenek találatok`
|
|
193
|
+
};
|
|
127
194
|
|
|
128
195
|
|
|
129
196
|
var $beee3b800889f449$exports = {};
|
|
130
|
-
$beee3b800889f449$exports =
|
|
197
|
+
$beee3b800889f449$exports = {
|
|
198
|
+
"clear": `Cancella`,
|
|
199
|
+
"invalid": `(non valido)`,
|
|
200
|
+
"loading": `Caricamento in corso...`,
|
|
201
|
+
"noResults": `Nessun risultato`
|
|
202
|
+
};
|
|
131
203
|
|
|
132
204
|
|
|
133
205
|
var $82c9b25b834471a2$exports = {};
|
|
134
|
-
$82c9b25b834471a2$exports =
|
|
206
|
+
$82c9b25b834471a2$exports = {
|
|
207
|
+
"clear": `クリア`,
|
|
208
|
+
"invalid": `(無効)`,
|
|
209
|
+
"loading": `読み込み中...`,
|
|
210
|
+
"noResults": `結果なし`
|
|
211
|
+
};
|
|
135
212
|
|
|
136
213
|
|
|
137
214
|
var $be9cae133bb9c811$exports = {};
|
|
138
|
-
$be9cae133bb9c811$exports =
|
|
215
|
+
$be9cae133bb9c811$exports = {
|
|
216
|
+
"clear": `지우기`,
|
|
217
|
+
"invalid": `(유효하지 않음)`,
|
|
218
|
+
"loading": `로드 중...`,
|
|
219
|
+
"noResults": `결과 없음`
|
|
220
|
+
};
|
|
139
221
|
|
|
140
222
|
|
|
141
223
|
var $5ef0bd350b9637e3$exports = {};
|
|
142
|
-
$5ef0bd350b9637e3$exports =
|
|
224
|
+
$5ef0bd350b9637e3$exports = {
|
|
225
|
+
"clear": `Skaidrus`,
|
|
226
|
+
"invalid": `(netinkama)`,
|
|
227
|
+
"loading": `Įkeliama...`,
|
|
228
|
+
"noResults": `Be rezultatų`
|
|
229
|
+
};
|
|
143
230
|
|
|
144
231
|
|
|
145
232
|
var $e897441eed0b833f$exports = {};
|
|
146
|
-
$e897441eed0b833f$exports =
|
|
233
|
+
$e897441eed0b833f$exports = {
|
|
234
|
+
"clear": `Notīrīt`,
|
|
235
|
+
"invalid": `(nederīgs)`,
|
|
236
|
+
"loading": `Notiek ielāde...`,
|
|
237
|
+
"noResults": `Nav rezultātu`
|
|
238
|
+
};
|
|
147
239
|
|
|
148
240
|
|
|
149
241
|
var $a4b49a4502f68578$exports = {};
|
|
150
|
-
$a4b49a4502f68578$exports =
|
|
242
|
+
$a4b49a4502f68578$exports = {
|
|
243
|
+
"clear": `Tøm`,
|
|
244
|
+
"invalid": `(ugyldig)`,
|
|
245
|
+
"loading": `Laster inn ...`,
|
|
246
|
+
"noResults": `Ingen resultater`
|
|
247
|
+
};
|
|
151
248
|
|
|
152
249
|
|
|
153
250
|
var $f07280ca05544eb8$exports = {};
|
|
154
|
-
$f07280ca05544eb8$exports =
|
|
251
|
+
$f07280ca05544eb8$exports = {
|
|
252
|
+
"clear": `Helder`,
|
|
253
|
+
"invalid": `(ongeldig)`,
|
|
254
|
+
"loading": `Laden...`,
|
|
255
|
+
"noResults": `Geen resultaten`
|
|
256
|
+
};
|
|
155
257
|
|
|
156
258
|
|
|
157
259
|
var $a8ee33871b41ed34$exports = {};
|
|
158
|
-
$a8ee33871b41ed34$exports =
|
|
260
|
+
$a8ee33871b41ed34$exports = {
|
|
261
|
+
"clear": `Wyczyść`,
|
|
262
|
+
"invalid": `(nieprawidłowy)`,
|
|
263
|
+
"loading": `Trwa ładowanie...`,
|
|
264
|
+
"noResults": `Brak wyników`
|
|
265
|
+
};
|
|
159
266
|
|
|
160
267
|
|
|
161
268
|
var $48778e86f0af7d7f$exports = {};
|
|
162
|
-
$48778e86f0af7d7f$exports =
|
|
269
|
+
$48778e86f0af7d7f$exports = {
|
|
270
|
+
"clear": `Limpar`,
|
|
271
|
+
"invalid": `(inválido)`,
|
|
272
|
+
"loading": `Carregando...`,
|
|
273
|
+
"noResults": `Nenhum resultado`
|
|
274
|
+
};
|
|
163
275
|
|
|
164
276
|
|
|
165
277
|
var $95c76e6a3ff4645c$exports = {};
|
|
166
|
-
$95c76e6a3ff4645c$exports =
|
|
278
|
+
$95c76e6a3ff4645c$exports = {
|
|
279
|
+
"clear": `Limpar`,
|
|
280
|
+
"invalid": `(inválido)`,
|
|
281
|
+
"loading": `A carregar...`,
|
|
282
|
+
"noResults": `Sem resultados`
|
|
283
|
+
};
|
|
167
284
|
|
|
168
285
|
|
|
169
286
|
var $ea41d6dadb4aad60$exports = {};
|
|
170
|
-
$ea41d6dadb4aad60$exports =
|
|
287
|
+
$ea41d6dadb4aad60$exports = {
|
|
288
|
+
"clear": `Golire`,
|
|
289
|
+
"invalid": `(nevalid)`,
|
|
290
|
+
"loading": `Se încarcă...`,
|
|
291
|
+
"noResults": `Niciun rezultat`
|
|
292
|
+
};
|
|
171
293
|
|
|
172
294
|
|
|
173
295
|
var $ad31a70e68aa4a8e$exports = {};
|
|
174
|
-
$ad31a70e68aa4a8e$exports =
|
|
296
|
+
$ad31a70e68aa4a8e$exports = {
|
|
297
|
+
"clear": `Очистить`,
|
|
298
|
+
"invalid": `(недействительно)`,
|
|
299
|
+
"loading": `Загрузка...`,
|
|
300
|
+
"noResults": `Результаты отсутствуют`
|
|
301
|
+
};
|
|
175
302
|
|
|
176
303
|
|
|
177
304
|
var $9700a8010c106d6b$exports = {};
|
|
178
|
-
$9700a8010c106d6b$exports =
|
|
305
|
+
$9700a8010c106d6b$exports = {
|
|
306
|
+
"clear": `Vymazať`,
|
|
307
|
+
"invalid": `(neplatné)`,
|
|
308
|
+
"loading": `Načítava sa...`,
|
|
309
|
+
"noResults": `Žiadne výsledky`
|
|
310
|
+
};
|
|
179
311
|
|
|
180
312
|
|
|
181
313
|
var $be219b4f0a2c4a58$exports = {};
|
|
182
|
-
$be219b4f0a2c4a58$exports =
|
|
314
|
+
$be219b4f0a2c4a58$exports = {
|
|
315
|
+
"clear": `Jasen`,
|
|
316
|
+
"invalid": `(neveljavno)`,
|
|
317
|
+
"loading": `Nalaganje...`,
|
|
318
|
+
"noResults": `Ni rezultatov`
|
|
319
|
+
};
|
|
183
320
|
|
|
184
321
|
|
|
185
322
|
var $5d0ff97fe4cea552$exports = {};
|
|
186
|
-
$5d0ff97fe4cea552$exports =
|
|
323
|
+
$5d0ff97fe4cea552$exports = {
|
|
324
|
+
"clear": `Izbriši`,
|
|
325
|
+
"invalid": `(nevažeće)`,
|
|
326
|
+
"loading": `Učitavam...`,
|
|
327
|
+
"noResults": `Nema rezultata`
|
|
328
|
+
};
|
|
187
329
|
|
|
188
330
|
|
|
189
331
|
var $d3b9b386d3cfbc16$exports = {};
|
|
190
|
-
$d3b9b386d3cfbc16$exports =
|
|
332
|
+
$d3b9b386d3cfbc16$exports = {
|
|
333
|
+
"clear": `Rensa`,
|
|
334
|
+
"invalid": `(ogiltigt)`,
|
|
335
|
+
"loading": `Läser in...`,
|
|
336
|
+
"noResults": `Inga resultat`
|
|
337
|
+
};
|
|
191
338
|
|
|
192
339
|
|
|
193
340
|
var $50a61df6fac70d29$exports = {};
|
|
194
|
-
$50a61df6fac70d29$exports =
|
|
341
|
+
$50a61df6fac70d29$exports = {
|
|
342
|
+
"clear": `Temizle`,
|
|
343
|
+
"invalid": `(geçersiz)`,
|
|
344
|
+
"loading": `Yükleniyor...`,
|
|
345
|
+
"noResults": `Sonuç yok`
|
|
346
|
+
};
|
|
195
347
|
|
|
196
348
|
|
|
197
349
|
var $ef974ff21ee4e13f$exports = {};
|
|
198
|
-
$ef974ff21ee4e13f$exports =
|
|
350
|
+
$ef974ff21ee4e13f$exports = {
|
|
351
|
+
"clear": `Очистити`,
|
|
352
|
+
"invalid": `(недійсне)`,
|
|
353
|
+
"loading": `Завантаження...`,
|
|
354
|
+
"noResults": `Результатів немає`
|
|
355
|
+
};
|
|
199
356
|
|
|
200
357
|
|
|
201
358
|
var $d38897b975d5f445$exports = {};
|
|
202
|
-
$d38897b975d5f445$exports =
|
|
359
|
+
$d38897b975d5f445$exports = {
|
|
360
|
+
"clear": `透明`,
|
|
361
|
+
"invalid": `(无效)`,
|
|
362
|
+
"loading": `正在加载...`,
|
|
363
|
+
"noResults": `无结果`
|
|
364
|
+
};
|
|
203
365
|
|
|
204
366
|
|
|
205
367
|
var $ffc147749052dc62$exports = {};
|
|
206
|
-
$ffc147749052dc62$exports =
|
|
368
|
+
$ffc147749052dc62$exports = {
|
|
369
|
+
"clear": `清除`,
|
|
370
|
+
"invalid": `(無效)`,
|
|
371
|
+
"loading": `正在載入...`,
|
|
372
|
+
"noResults": `無任何結果`
|
|
373
|
+
};
|
|
207
374
|
|
|
208
375
|
|
|
209
376
|
$9c69665f9f0b71fd$exports = {
|
|
@@ -651,12 +818,12 @@ const $a1ae4cad4496428f$export$7637df911c069b4d = /*#__PURE__*/ $725Me$react.for
|
|
|
651
818
|
});
|
|
652
819
|
const $a1ae4cad4496428f$var$ComboBoxButton = /*#__PURE__*/ $725Me$react.forwardRef(function ComboBoxButton(props, ref) {
|
|
653
820
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isPlaceholder: isPlaceholder , validationState: validationState , children: children , style: style , className: className } = props;
|
|
654
|
-
let
|
|
821
|
+
let stringFormatter = $725Me$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($9c69665f9f0b71fd$exports)));
|
|
655
822
|
let valueId = $725Me$useId();
|
|
656
823
|
let invalidId = $725Me$useId();
|
|
657
824
|
let validationIcon = validationState === 'invalid' ? /*#__PURE__*/ $725Me$react.createElement($725Me$spectrumiconsuiAlertMedium, {
|
|
658
825
|
id: invalidId,
|
|
659
|
-
"aria-label":
|
|
826
|
+
"aria-label": stringFormatter.format('invalid')
|
|
660
827
|
}) : /*#__PURE__*/ $725Me$react.createElement($725Me$spectrumiconsuiCheckmarkMedium, null);
|
|
661
828
|
let validation = /*#__PURE__*/ $725Me$react.cloneElement(validationIcon, {
|
|
662
829
|
UNSAFE_className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-validationIcon', $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup-input-validationIcon'))
|
|
@@ -727,7 +894,7 @@ function $a1ae4cad4496428f$var$ComboBoxTray(props) {
|
|
|
727
894
|
let popoverRef = $725Me$useRef();
|
|
728
895
|
let listBoxRef = $725Me$useRef();
|
|
729
896
|
let layout = $725Me$useListBoxLayout(state);
|
|
730
|
-
let
|
|
897
|
+
let stringFormatter = $725Me$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($9c69665f9f0b71fd$exports)));
|
|
731
898
|
let { inputProps: inputProps , listBoxProps: listBoxProps , labelProps: labelProps } = $725Me$useComboBox({
|
|
732
899
|
...props,
|
|
733
900
|
// completionMode,
|
|
@@ -761,7 +928,7 @@ function $a1ae4cad4496428f$var$ComboBoxTray(props) {
|
|
|
761
928
|
delete inputProps.onTouchEnd;
|
|
762
929
|
let clearButton = /*#__PURE__*/ $725Me$react.createElement($725Me$ClearButton, {
|
|
763
930
|
preventFocus: true,
|
|
764
|
-
"aria-label":
|
|
931
|
+
"aria-label": stringFormatter.format('clear'),
|
|
765
932
|
excludeFromTabOrder: true,
|
|
766
933
|
onPress: ()=>{
|
|
767
934
|
state.setInputValue('');
|
|
@@ -771,7 +938,7 @@ function $a1ae4cad4496428f$var$ComboBoxTray(props) {
|
|
|
771
938
|
isDisabled: isDisabled
|
|
772
939
|
});
|
|
773
940
|
let loadingCircle = /*#__PURE__*/ $725Me$react.createElement($725Me$ProgressCircle, {
|
|
774
|
-
"aria-label":
|
|
941
|
+
"aria-label": stringFormatter.format('loading'),
|
|
775
942
|
size: "S",
|
|
776
943
|
isIndeterminate: true,
|
|
777
944
|
UNSAFE_className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search-circleLoader', $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-circleLoader'))
|
|
@@ -871,7 +1038,7 @@ function $a1ae4cad4496428f$var$ComboBoxTray(props) {
|
|
|
871
1038
|
shouldUseVirtualFocus: true,
|
|
872
1039
|
renderEmptyState: ()=>loadingState !== 'loading' && /*#__PURE__*/ $725Me$react.createElement("span", {
|
|
873
1040
|
className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($7a1753adda45f7fb$exports)), 'no-results')
|
|
874
|
-
},
|
|
1041
|
+
}, stringFormatter.format('noResults'))
|
|
875
1042
|
,
|
|
876
1043
|
UNSAFE_className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($7a1753adda45f7fb$exports)), 'tray-listbox'),
|
|
877
1044
|
ref: listBoxRef,
|
|
@@ -914,7 +1081,7 @@ function $2289f375e813f187$var$ComboBox(props, ref) {
|
|
|
914
1081
|
}
|
|
915
1082
|
const $2289f375e813f187$var$ComboBoxBase = /*#__PURE__*/ $725Me$react.forwardRef(function ComboBoxBase(props, ref) {
|
|
916
1083
|
let { menuTrigger: menuTrigger = 'input' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , isQuiet: isQuiet , loadingState: loadingState , onLoadMore: onLoadMore } = props;
|
|
917
|
-
let
|
|
1084
|
+
let stringFormatter = $725Me$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($9c69665f9f0b71fd$exports)));
|
|
918
1085
|
let isAsync = loadingState != null;
|
|
919
1086
|
let popoverRef = $725Me$useRef();
|
|
920
1087
|
let unwrappedPopoverRef = $725Me$useUnwrapDOMRef(popoverRef);
|
|
@@ -1027,7 +1194,7 @@ const $2289f375e813f187$var$ComboBoxBase = /*#__PURE__*/ $725Me$react.forwardRef
|
|
|
1027
1194
|
onLoadMore: onLoadMore,
|
|
1028
1195
|
renderEmptyState: ()=>isAsync && /*#__PURE__*/ $725Me$react.createElement("span", {
|
|
1029
1196
|
className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($7a1753adda45f7fb$exports)), 'no-results')
|
|
1030
|
-
}, loadingState === 'loading' ?
|
|
1197
|
+
}, loadingState === 'loading' ? stringFormatter.format('loading') : stringFormatter.format('noResults'))
|
|
1031
1198
|
}), /*#__PURE__*/ $725Me$react.createElement($725Me$DismissButton, {
|
|
1032
1199
|
onDismiss: ()=>state.close()
|
|
1033
1200
|
}))));
|
|
@@ -1036,11 +1203,11 @@ const $2289f375e813f187$var$ComboBoxInput = /*#__PURE__*/ $725Me$react.forwardRe
|
|
|
1036
1203
|
let { isQuiet: isQuiet , isDisabled: isDisabled , validationState: validationState , inputProps: inputProps , inputRef: inputRef , triggerProps: triggerProps , triggerRef: triggerRef , autoFocus: autoFocus , style: style , className: className , loadingState: loadingState , isOpen: isOpen , menuTrigger: menuTrigger } = props;
|
|
1037
1204
|
let { hoverProps: hoverProps , isHovered: isHovered } = $725Me$useHover({
|
|
1038
1205
|
});
|
|
1039
|
-
let
|
|
1206
|
+
let stringFormatter = $725Me$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($9c69665f9f0b71fd$exports)));
|
|
1040
1207
|
let timeout = $725Me$useRef(null);
|
|
1041
1208
|
let [showLoading, setShowLoading] = $725Me$useState(false);
|
|
1042
1209
|
let loadingCircle = /*#__PURE__*/ $725Me$react.createElement($725Me$ProgressCircle, {
|
|
1043
|
-
"aria-label":
|
|
1210
|
+
"aria-label": stringFormatter.format('loading'),
|
|
1044
1211
|
size: "S",
|
|
1045
1212
|
isIndeterminate: true,
|
|
1046
1213
|
UNSAFE_className: $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-circleLoader', $725Me$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup-input-circleLoader'))
|
|
@@ -1122,5 +1289,5 @@ const $2289f375e813f187$var$ComboBoxInput = /*#__PURE__*/ $725Me$react.forwardRe
|
|
|
1122
1289
|
|
|
1123
1290
|
|
|
1124
1291
|
|
|
1125
|
-
export {$
|
|
1292
|
+
export {$2289f375e813f187$export$72b9695b8216309a as ComboBox, $6ea56810956c2335$re_export$Item as Item, $6ea56810956c2335$re_export$Section as Section};
|
|
1126
1293
|
//# sourceMappingURL=module.js.map
|