@react-spectrum/autocomplete 3.0.0-nightly.3362 → 3.0.0-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 +216 -65
- package/dist/main.js.map +1 -1
- package/dist/module.js +217 -50
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +28 -28
- package/src/MobileSearchAutocomplete.tsx +9 -9
- package/src/SearchAutocomplete.tsx +6 -6
- package/src/index.ts +1 -3
package/dist/main.js
CHANGED
|
@@ -26,31 +26,13 @@ var $aWXRc$reactarialabel = require("@react-aria/label");
|
|
|
26
26
|
function $parcel$export(e, n, v, s) {
|
|
27
27
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
28
28
|
}
|
|
29
|
-
function $parcel$exportWildcard(dest, source) {
|
|
30
|
-
Object.keys(source).forEach(function(key) {
|
|
31
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(dest, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return source[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return dest;
|
|
44
|
-
}
|
|
45
29
|
function $parcel$interopDefault(a) {
|
|
46
30
|
return a && a.__esModule ? a.default : a;
|
|
47
31
|
}
|
|
48
32
|
|
|
33
|
+
$parcel$export(module.exports, "SearchAutocomplete", () => $dcf500d58a031ca6$export$dd65332a5b19fa63);
|
|
49
34
|
$parcel$export(module.exports, "Item", () => $aWXRc$reactstatelycollections.Item);
|
|
50
35
|
$parcel$export(module.exports, "Section", () => $aWXRc$reactstatelycollections.Section);
|
|
51
|
-
var $dcf500d58a031ca6$exports = {};
|
|
52
|
-
|
|
53
|
-
$parcel$export($dcf500d58a031ca6$exports, "SearchAutocomplete", () => $dcf500d58a031ca6$export$dd65332a5b19fa63);
|
|
54
36
|
|
|
55
37
|
|
|
56
38
|
|
|
@@ -58,139 +40,309 @@ $parcel$export($dcf500d58a031ca6$exports, "SearchAutocomplete", () => $dcf500d58
|
|
|
58
40
|
|
|
59
41
|
var $ccb60979256717ac$exports = {};
|
|
60
42
|
var $30f25a2842ddccb3$exports = {};
|
|
61
|
-
$30f25a2842ddccb3$exports =
|
|
43
|
+
$30f25a2842ddccb3$exports = {
|
|
44
|
+
"clear": `مسح`,
|
|
45
|
+
"invalid": `(غير صالح)`,
|
|
46
|
+
"loading": `جارٍ التحميل...`,
|
|
47
|
+
"noResults": `لا توجد نتائج`
|
|
48
|
+
};
|
|
62
49
|
|
|
63
50
|
|
|
64
51
|
var $cac3fa002dc020e4$exports = {};
|
|
65
|
-
$cac3fa002dc020e4$exports =
|
|
52
|
+
$cac3fa002dc020e4$exports = {
|
|
53
|
+
"clear": `Изчисти`,
|
|
54
|
+
"invalid": `(невалиден)`,
|
|
55
|
+
"loading": `Зареждане...`,
|
|
56
|
+
"noResults": `Няма резултати`
|
|
57
|
+
};
|
|
66
58
|
|
|
67
59
|
|
|
68
60
|
var $e04b5fd2abea86b9$exports = {};
|
|
69
|
-
$e04b5fd2abea86b9$exports =
|
|
61
|
+
$e04b5fd2abea86b9$exports = {
|
|
62
|
+
"clear": `Vymazat`,
|
|
63
|
+
"invalid": `(neplatné)`,
|
|
64
|
+
"loading": `Načítání...`,
|
|
65
|
+
"noResults": `Žádné výsledky`
|
|
66
|
+
};
|
|
70
67
|
|
|
71
68
|
|
|
72
69
|
var $3d2af4ea163335d6$exports = {};
|
|
73
|
-
$3d2af4ea163335d6$exports =
|
|
70
|
+
$3d2af4ea163335d6$exports = {
|
|
71
|
+
"clear": `Ryd`,
|
|
72
|
+
"invalid": `(ugyldig)`,
|
|
73
|
+
"loading": `Indlæser...`,
|
|
74
|
+
"noResults": `Ingen resultater`
|
|
75
|
+
};
|
|
74
76
|
|
|
75
77
|
|
|
76
78
|
var $ff8a3f2ebad8ae77$exports = {};
|
|
77
|
-
$ff8a3f2ebad8ae77$exports =
|
|
79
|
+
$ff8a3f2ebad8ae77$exports = {
|
|
80
|
+
"clear": `Löschen`,
|
|
81
|
+
"invalid": `(ungültig)`,
|
|
82
|
+
"loading": `Wird geladen...`,
|
|
83
|
+
"noResults": `Keine Ergebnisse`
|
|
84
|
+
};
|
|
78
85
|
|
|
79
86
|
|
|
80
87
|
var $0883dc5de0143a5f$exports = {};
|
|
81
|
-
$0883dc5de0143a5f$exports =
|
|
88
|
+
$0883dc5de0143a5f$exports = {
|
|
89
|
+
"clear": `Καθαρισμός`,
|
|
90
|
+
"invalid": `(δεν ισχύει)`,
|
|
91
|
+
"loading": `Φόρτωση...`,
|
|
92
|
+
"noResults": `Χωρίς αποτέλεσμα`
|
|
93
|
+
};
|
|
82
94
|
|
|
83
95
|
|
|
84
96
|
var $ffb5a79a666ee5f4$exports = {};
|
|
85
|
-
$ffb5a79a666ee5f4$exports =
|
|
97
|
+
$ffb5a79a666ee5f4$exports = {
|
|
98
|
+
"loading": `Loading...`,
|
|
99
|
+
"noResults": `No results`,
|
|
100
|
+
"clear": `Clear`,
|
|
101
|
+
"invalid": `(invalid)`
|
|
102
|
+
};
|
|
86
103
|
|
|
87
104
|
|
|
88
105
|
var $b1888d86831eae7b$exports = {};
|
|
89
|
-
$b1888d86831eae7b$exports =
|
|
106
|
+
$b1888d86831eae7b$exports = {
|
|
107
|
+
"clear": `Borrar`,
|
|
108
|
+
"invalid": `(no válido)`,
|
|
109
|
+
"loading": `Cargando...`,
|
|
110
|
+
"noResults": `Sin resultados`
|
|
111
|
+
};
|
|
90
112
|
|
|
91
113
|
|
|
92
114
|
var $256eaae10133a7dd$exports = {};
|
|
93
|
-
$256eaae10133a7dd$exports =
|
|
115
|
+
$256eaae10133a7dd$exports = {
|
|
116
|
+
"clear": `Kustuta`,
|
|
117
|
+
"invalid": `(kehtetu)`,
|
|
118
|
+
"loading": `Laadimine...`,
|
|
119
|
+
"noResults": `Tulemusi pole`
|
|
120
|
+
};
|
|
94
121
|
|
|
95
122
|
|
|
96
123
|
var $fffacc8467d6f45d$exports = {};
|
|
97
|
-
$fffacc8467d6f45d$exports =
|
|
124
|
+
$fffacc8467d6f45d$exports = {
|
|
125
|
+
"clear": `Kirkas`,
|
|
126
|
+
"invalid": `(epäkelpo)`,
|
|
127
|
+
"loading": `Ladataan...`,
|
|
128
|
+
"noResults": `Ei tuloksia`
|
|
129
|
+
};
|
|
98
130
|
|
|
99
131
|
|
|
100
132
|
var $ceff60bacac3f813$exports = {};
|
|
101
|
-
$ceff60bacac3f813$exports =
|
|
133
|
+
$ceff60bacac3f813$exports = {
|
|
134
|
+
"clear": `Effacer`,
|
|
135
|
+
"invalid": `(non valide)`,
|
|
136
|
+
"loading": `Chargement en cours…`,
|
|
137
|
+
"noResults": `Aucun résultat`
|
|
138
|
+
};
|
|
102
139
|
|
|
103
140
|
|
|
104
141
|
var $a3efa3338ae30884$exports = {};
|
|
105
|
-
$a3efa3338ae30884$exports =
|
|
142
|
+
$a3efa3338ae30884$exports = {
|
|
143
|
+
"clear": `נקה`,
|
|
144
|
+
"invalid": `(לא חוקי)`,
|
|
145
|
+
"loading": `טוען...`,
|
|
146
|
+
"noResults": `אין תוצאות`
|
|
147
|
+
};
|
|
106
148
|
|
|
107
149
|
|
|
108
150
|
var $27c9d17e7436a9c6$exports = {};
|
|
109
|
-
$27c9d17e7436a9c6$exports =
|
|
151
|
+
$27c9d17e7436a9c6$exports = {
|
|
152
|
+
"clear": `Izbriši`,
|
|
153
|
+
"invalid": `(nevažeće)`,
|
|
154
|
+
"loading": `Učitavam...`,
|
|
155
|
+
"noResults": `Nema rezultata`
|
|
156
|
+
};
|
|
110
157
|
|
|
111
158
|
|
|
112
159
|
var $2e5ccf84fdce50a1$exports = {};
|
|
113
|
-
$2e5ccf84fdce50a1$exports =
|
|
160
|
+
$2e5ccf84fdce50a1$exports = {
|
|
161
|
+
"clear": `Törlés`,
|
|
162
|
+
"invalid": `(érvénytelen)`,
|
|
163
|
+
"loading": `Betöltés folyamatban…`,
|
|
164
|
+
"noResults": `Nincsenek találatok`
|
|
165
|
+
};
|
|
114
166
|
|
|
115
167
|
|
|
116
168
|
var $ec3368142e92ed69$exports = {};
|
|
117
|
-
$ec3368142e92ed69$exports =
|
|
169
|
+
$ec3368142e92ed69$exports = {
|
|
170
|
+
"clear": `Cancella`,
|
|
171
|
+
"invalid": `(non valido)`,
|
|
172
|
+
"loading": `Caricamento...`,
|
|
173
|
+
"noResults": `Nessun risultato`
|
|
174
|
+
};
|
|
118
175
|
|
|
119
176
|
|
|
120
177
|
var $ec5956e20e8a9e87$exports = {};
|
|
121
|
-
$ec5956e20e8a9e87$exports =
|
|
178
|
+
$ec5956e20e8a9e87$exports = {
|
|
179
|
+
"clear": `クリア`,
|
|
180
|
+
"invalid": `(無効)`,
|
|
181
|
+
"loading": `読み込み中...`,
|
|
182
|
+
"noResults": `結果なし`
|
|
183
|
+
};
|
|
122
184
|
|
|
123
185
|
|
|
124
186
|
var $5bab18039270ed42$exports = {};
|
|
125
|
-
$5bab18039270ed42$exports =
|
|
187
|
+
$5bab18039270ed42$exports = {
|
|
188
|
+
"clear": `지우기`,
|
|
189
|
+
"invalid": `(유효하지 않음)`,
|
|
190
|
+
"loading": `로드 중...`,
|
|
191
|
+
"noResults": `결과 없음`
|
|
192
|
+
};
|
|
126
193
|
|
|
127
194
|
|
|
128
195
|
var $e1c74f3398a74c92$exports = {};
|
|
129
|
-
$e1c74f3398a74c92$exports =
|
|
196
|
+
$e1c74f3398a74c92$exports = {
|
|
197
|
+
"clear": `Išvalyti`,
|
|
198
|
+
"invalid": `(netinkama)`,
|
|
199
|
+
"loading": `Įkeliama...`,
|
|
200
|
+
"noResults": `Rezultatų nėra`
|
|
201
|
+
};
|
|
130
202
|
|
|
131
203
|
|
|
132
204
|
var $f0b13093747e2840$exports = {};
|
|
133
|
-
$f0b13093747e2840$exports =
|
|
205
|
+
$f0b13093747e2840$exports = {
|
|
206
|
+
"clear": `Notīrīt`,
|
|
207
|
+
"invalid": `(nederīgs)`,
|
|
208
|
+
"loading": `Notiek ielāde...`,
|
|
209
|
+
"noResults": `Nav rezultātu`
|
|
210
|
+
};
|
|
134
211
|
|
|
135
212
|
|
|
136
213
|
var $53eed8628e04e423$exports = {};
|
|
137
|
-
$53eed8628e04e423$exports =
|
|
214
|
+
$53eed8628e04e423$exports = {
|
|
215
|
+
"clear": `Tøm`,
|
|
216
|
+
"invalid": `(ugyldig)`,
|
|
217
|
+
"loading": `Laster inn...`,
|
|
218
|
+
"noResults": `Ingen resultater`
|
|
219
|
+
};
|
|
138
220
|
|
|
139
221
|
|
|
140
222
|
var $c53a14e3c7e194ff$exports = {};
|
|
141
|
-
$c53a14e3c7e194ff$exports =
|
|
223
|
+
$c53a14e3c7e194ff$exports = {
|
|
224
|
+
"clear": `Wissen`,
|
|
225
|
+
"invalid": `(ongeldig)`,
|
|
226
|
+
"loading": `Laden...`,
|
|
227
|
+
"noResults": `Geen resultaten`
|
|
228
|
+
};
|
|
142
229
|
|
|
143
230
|
|
|
144
231
|
var $31dd4c4cfef7991f$exports = {};
|
|
145
|
-
$31dd4c4cfef7991f$exports =
|
|
232
|
+
$31dd4c4cfef7991f$exports = {
|
|
233
|
+
"clear": `Wyczyść`,
|
|
234
|
+
"invalid": `(nieprawidłowy)`,
|
|
235
|
+
"loading": `Wczytywanie...`,
|
|
236
|
+
"noResults": `Brak wyników`
|
|
237
|
+
};
|
|
146
238
|
|
|
147
239
|
|
|
148
240
|
var $ee5f8cd44d30767f$exports = {};
|
|
149
|
-
$ee5f8cd44d30767f$exports =
|
|
241
|
+
$ee5f8cd44d30767f$exports = {
|
|
242
|
+
"clear": `Limpar`,
|
|
243
|
+
"invalid": `(inválido)`,
|
|
244
|
+
"loading": `Carregando...`,
|
|
245
|
+
"noResults": `Nenhum resultado`
|
|
246
|
+
};
|
|
150
247
|
|
|
151
248
|
|
|
152
249
|
var $e1e81ac532f43ec3$exports = {};
|
|
153
|
-
$e1e81ac532f43ec3$exports =
|
|
250
|
+
$e1e81ac532f43ec3$exports = {
|
|
251
|
+
"clear": `Limpar`,
|
|
252
|
+
"invalid": `(inválido)`,
|
|
253
|
+
"loading": `A carregar...`,
|
|
254
|
+
"noResults": `Sem resultados`
|
|
255
|
+
};
|
|
154
256
|
|
|
155
257
|
|
|
156
258
|
var $84833449245ceb5d$exports = {};
|
|
157
|
-
$84833449245ceb5d$exports =
|
|
259
|
+
$84833449245ceb5d$exports = {
|
|
260
|
+
"clear": `Golire`,
|
|
261
|
+
"invalid": `(nevalid)`,
|
|
262
|
+
"loading": `Se încarcă...`,
|
|
263
|
+
"noResults": `Niciun rezultat`
|
|
264
|
+
};
|
|
158
265
|
|
|
159
266
|
|
|
160
267
|
var $e61aebc75bb4053d$exports = {};
|
|
161
|
-
$e61aebc75bb4053d$exports =
|
|
268
|
+
$e61aebc75bb4053d$exports = {
|
|
269
|
+
"clear": `Очистить`,
|
|
270
|
+
"invalid": `(недействительно)`,
|
|
271
|
+
"loading": `Загрузка...`,
|
|
272
|
+
"noResults": `Результаты отсутствуют`
|
|
273
|
+
};
|
|
162
274
|
|
|
163
275
|
|
|
164
276
|
var $9fb3fa59d7a387b5$exports = {};
|
|
165
|
-
$9fb3fa59d7a387b5$exports =
|
|
277
|
+
$9fb3fa59d7a387b5$exports = {
|
|
278
|
+
"clear": `Vymazať`,
|
|
279
|
+
"invalid": `(neplatné)`,
|
|
280
|
+
"loading": `Načítava sa...`,
|
|
281
|
+
"noResults": `Žiadne výsledky`
|
|
282
|
+
};
|
|
166
283
|
|
|
167
284
|
|
|
168
285
|
var $b1f7c524b12894ba$exports = {};
|
|
169
|
-
$b1f7c524b12894ba$exports =
|
|
286
|
+
$b1f7c524b12894ba$exports = {
|
|
287
|
+
"clear": `Pobrišite`,
|
|
288
|
+
"invalid": `(neveljavno)`,
|
|
289
|
+
"loading": `Nalaganje...`,
|
|
290
|
+
"noResults": `Ni rezultatov`
|
|
291
|
+
};
|
|
170
292
|
|
|
171
293
|
|
|
172
294
|
var $351ddac352253927$exports = {};
|
|
173
|
-
$351ddac352253927$exports =
|
|
295
|
+
$351ddac352253927$exports = {
|
|
296
|
+
"clear": `Izbriši`,
|
|
297
|
+
"invalid": `(nevažeće)`,
|
|
298
|
+
"loading": `Učitavam...`,
|
|
299
|
+
"noResults": `Nema rezultata`
|
|
300
|
+
};
|
|
174
301
|
|
|
175
302
|
|
|
176
303
|
var $0b2327cdf441a2f3$exports = {};
|
|
177
|
-
$0b2327cdf441a2f3$exports =
|
|
304
|
+
$0b2327cdf441a2f3$exports = {
|
|
305
|
+
"clear": `Rensa`,
|
|
306
|
+
"invalid": `(ogiltigt)`,
|
|
307
|
+
"loading": `Läser in...`,
|
|
308
|
+
"noResults": `Inga resultat`
|
|
309
|
+
};
|
|
178
310
|
|
|
179
311
|
|
|
180
312
|
var $e76d948ffa14db88$exports = {};
|
|
181
|
-
$e76d948ffa14db88$exports =
|
|
313
|
+
$e76d948ffa14db88$exports = {
|
|
314
|
+
"clear": `Temizle`,
|
|
315
|
+
"invalid": `(geçersiz)`,
|
|
316
|
+
"loading": `Yükleniyor...`,
|
|
317
|
+
"noResults": `Sonuç yok`
|
|
318
|
+
};
|
|
182
319
|
|
|
183
320
|
|
|
184
321
|
var $24da432165d9ae1d$exports = {};
|
|
185
|
-
$24da432165d9ae1d$exports =
|
|
322
|
+
$24da432165d9ae1d$exports = {
|
|
323
|
+
"clear": `Очистити`,
|
|
324
|
+
"invalid": `(недійсне)`,
|
|
325
|
+
"loading": `Завантаження...`,
|
|
326
|
+
"noResults": `Результатів немає`
|
|
327
|
+
};
|
|
186
328
|
|
|
187
329
|
|
|
188
330
|
var $ff524249124594a8$exports = {};
|
|
189
|
-
$ff524249124594a8$exports =
|
|
331
|
+
$ff524249124594a8$exports = {
|
|
332
|
+
"clear": `清除`,
|
|
333
|
+
"invalid": `(无效)`,
|
|
334
|
+
"loading": `正在加载...`,
|
|
335
|
+
"noResults": `无结果`
|
|
336
|
+
};
|
|
190
337
|
|
|
191
338
|
|
|
192
339
|
var $dc179c328f3f5ad3$exports = {};
|
|
193
|
-
$dc179c328f3f5ad3$exports =
|
|
340
|
+
$dc179c328f3f5ad3$exports = {
|
|
341
|
+
"clear": `清除`,
|
|
342
|
+
"invalid": `(無效)`,
|
|
343
|
+
"loading": `正在載入...`,
|
|
344
|
+
"noResults": `無任何結果`
|
|
345
|
+
};
|
|
194
346
|
|
|
195
347
|
|
|
196
348
|
$ccb60979256717ac$exports = {
|
|
@@ -523,12 +675,12 @@ const $a9f98e219df0b64d$export$e7a90f7d6b078162 = /*#__PURE__*/ ($parcel$interop
|
|
|
523
675
|
});
|
|
524
676
|
const $a9f98e219df0b64d$var$SearchAutocompleteButton = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).forwardRef(function SearchAutocompleteButton(props, ref) {
|
|
525
677
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , isPlaceholder: isPlaceholder , validationState: validationState , inputValue: inputValue , clearInput: clearInput , children: children , style: style , className: className } = props;
|
|
526
|
-
let
|
|
678
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
527
679
|
let valueId = $aWXRc$reactariautils.useId();
|
|
528
680
|
let invalidId = $aWXRc$reactariautils.useId();
|
|
529
681
|
let validationIcon = validationState === 'invalid' ? /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiAlertMedium)), {
|
|
530
682
|
id: invalidId,
|
|
531
|
-
"aria-label":
|
|
683
|
+
"aria-label": stringFormatter.format('invalid')
|
|
532
684
|
}) : /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiCheckmarkMedium)), null);
|
|
533
685
|
let searchIcon = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiMagnifier)), {
|
|
534
686
|
"data-testid": "searchicon"
|
|
@@ -543,7 +695,7 @@ const $a9f98e219df0b64d$var$SearchAutocompleteButton = /*#__PURE__*/ ($parcel$in
|
|
|
543
695
|
props.onPress(e);
|
|
544
696
|
},
|
|
545
697
|
preventFocus: true,
|
|
546
|
-
"aria-label":
|
|
698
|
+
"aria-label": stringFormatter.format('clear'),
|
|
547
699
|
excludeFromTabOrder: true,
|
|
548
700
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-ClearButton'),
|
|
549
701
|
isDisabled: isDisabled
|
|
@@ -612,7 +764,7 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
612
764
|
let popoverRef = $aWXRc$react.useRef();
|
|
613
765
|
let listBoxRef = $aWXRc$react.useRef();
|
|
614
766
|
let layout = $aWXRc$reactspectrumlistbox.useListBoxLayout(state);
|
|
615
|
-
let
|
|
767
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
616
768
|
let { inputProps: inputProps , listBoxProps: listBoxProps , labelProps: labelProps , clearButtonProps: clearButtonProps } = $aWXRc$reactariaautocomplete.useSearchAutocomplete({
|
|
617
769
|
...props,
|
|
618
770
|
keyboardDelegate: layout,
|
|
@@ -645,13 +797,13 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
645
797
|
let clearButton = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumbutton.ClearButton, {
|
|
646
798
|
...clearButtonProps,
|
|
647
799
|
preventFocus: true,
|
|
648
|
-
"aria-label":
|
|
800
|
+
"aria-label": stringFormatter.format('clear'),
|
|
649
801
|
excludeFromTabOrder: true,
|
|
650
802
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-ClearButton'),
|
|
651
803
|
isDisabled: isDisabled
|
|
652
804
|
});
|
|
653
805
|
let loadingCircle = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumprogress.ProgressCircle, {
|
|
654
|
-
"aria-label":
|
|
806
|
+
"aria-label": stringFormatter.format('loading'),
|
|
655
807
|
size: "S",
|
|
656
808
|
isIndeterminate: true,
|
|
657
809
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-Search-circleLoader', $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($40cb3a00c193680f$exports)), 'spectrum-Textfield-circleLoader'))
|
|
@@ -760,7 +912,7 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
760
912
|
shouldUseVirtualFocus: true,
|
|
761
913
|
renderEmptyState: ()=>loadingState !== 'loading' && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", {
|
|
762
914
|
className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($83da5c2df967875d$exports)), 'no-results')
|
|
763
|
-
},
|
|
915
|
+
}, stringFormatter.format('noResults'))
|
|
764
916
|
,
|
|
765
917
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($83da5c2df967875d$exports)), 'tray-listbox'),
|
|
766
918
|
ref: listBoxRef,
|
|
@@ -805,7 +957,7 @@ const $dcf500d58a031ca6$var$SearchAutocompleteBase = /*#__PURE__*/ ($parcel$inte
|
|
|
805
957
|
props = $aWXRc$reactspectrumprovider.useProviderProps(props);
|
|
806
958
|
let { menuTrigger: menuTrigger = 'input' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , isQuiet: isQuiet , loadingState: loadingState , onLoadMore: onLoadMore , onSubmit: onSubmit = ()=>{
|
|
807
959
|
} } = props;
|
|
808
|
-
let
|
|
960
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
809
961
|
let isAsync = loadingState != null;
|
|
810
962
|
let popoverRef = $aWXRc$react.useRef();
|
|
811
963
|
let unwrappedPopoverRef = $aWXRc$reactspectrumutils.useUnwrapDOMRef(popoverRef);
|
|
@@ -913,7 +1065,7 @@ const $dcf500d58a031ca6$var$SearchAutocompleteBase = /*#__PURE__*/ ($parcel$inte
|
|
|
913
1065
|
shouldUseVirtualFocus: true,
|
|
914
1066
|
isLoading: loadingState === 'loadingMore',
|
|
915
1067
|
onLoadMore: onLoadMore,
|
|
916
|
-
renderEmptyState: ()=>isAsync && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", null,
|
|
1068
|
+
renderEmptyState: ()=>isAsync && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", null, stringFormatter.format('noResults'))
|
|
917
1069
|
}), /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactariaoverlays.DismissButton, {
|
|
918
1070
|
onDismiss: ()=>state.close()
|
|
919
1071
|
}))));
|
|
@@ -922,11 +1074,11 @@ const $dcf500d58a031ca6$var$SearchAutocompleteInput = /*#__PURE__*/ ($parcel$int
|
|
|
922
1074
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , validationState: validationState , inputProps: inputProps , inputRef: inputRef , autoFocus: autoFocus , style: style , className: className , loadingState: loadingState , isOpen: isOpen , menuTrigger: menuTrigger , clearButtonProps: clearButtonProps } = props;
|
|
923
1075
|
let { hoverProps: hoverProps , isHovered: isHovered } = $aWXRc$reactariainteractions.useHover({
|
|
924
1076
|
});
|
|
925
|
-
let
|
|
1077
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
926
1078
|
let timeout = $aWXRc$react.useRef(null);
|
|
927
1079
|
let [showLoading, setShowLoading] = $aWXRc$react.useState(false);
|
|
928
1080
|
let loadingCircle = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumprogress.ProgressCircle, {
|
|
929
|
-
"aria-label":
|
|
1081
|
+
"aria-label": stringFormatter.format('loading'),
|
|
930
1082
|
size: "S",
|
|
931
1083
|
isIndeterminate: true,
|
|
932
1084
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($40cb3a00c193680f$exports)), 'spectrum-Textfield-circleLoader', $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($2f86633ce5b04f1e$exports)), 'spectrum-InputGroup-input-circleLoader'))
|
|
@@ -1008,7 +1160,6 @@ const $dcf500d58a031ca6$var$SearchAutocompleteInput = /*#__PURE__*/ ($parcel$int
|
|
|
1008
1160
|
|
|
1009
1161
|
|
|
1010
1162
|
|
|
1011
|
-
$parcel$exportWildcard(module.exports, $dcf500d58a031ca6$exports);
|
|
1012
1163
|
|
|
1013
1164
|
|
|
1014
1165
|
//# sourceMappingURL=main.js.map
|