@react-spectrum/autocomplete 3.0.0-alpha.6 → 3.0.0-alpha.9
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.css +1 -1
- 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 +1 -0
- 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 +2 -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 = {
|
|
@@ -520,12 +672,12 @@ const $a9f98e219df0b64d$export$e7a90f7d6b078162 = /*#__PURE__*/ ($parcel$interop
|
|
|
520
672
|
});
|
|
521
673
|
const $a9f98e219df0b64d$var$SearchAutocompleteButton = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).forwardRef(function SearchAutocompleteButton(props, ref) {
|
|
522
674
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , isPlaceholder: isPlaceholder , validationState: validationState , inputValue: inputValue , clearInput: clearInput , children: children , style: style , className: className } = props;
|
|
523
|
-
let
|
|
675
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
524
676
|
let valueId = $aWXRc$reactariautils.useId();
|
|
525
677
|
let invalidId = $aWXRc$reactariautils.useId();
|
|
526
678
|
let validationIcon = validationState === 'invalid' ? /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiAlertMedium)), {
|
|
527
679
|
id: invalidId,
|
|
528
|
-
"aria-label":
|
|
680
|
+
"aria-label": stringFormatter.format('invalid')
|
|
529
681
|
}) : /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiCheckmarkMedium)), null);
|
|
530
682
|
let searchIcon = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement(($parcel$interopDefault($aWXRc$spectrumiconsuiMagnifier)), {
|
|
531
683
|
"data-testid": "searchicon"
|
|
@@ -540,7 +692,7 @@ const $a9f98e219df0b64d$var$SearchAutocompleteButton = /*#__PURE__*/ ($parcel$in
|
|
|
540
692
|
props.onPress(e);
|
|
541
693
|
},
|
|
542
694
|
preventFocus: true,
|
|
543
|
-
"aria-label":
|
|
695
|
+
"aria-label": stringFormatter.format('clear'),
|
|
544
696
|
excludeFromTabOrder: true,
|
|
545
697
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-ClearButton'),
|
|
546
698
|
isDisabled: isDisabled
|
|
@@ -609,7 +761,7 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
609
761
|
let popoverRef = $aWXRc$react.useRef();
|
|
610
762
|
let listBoxRef = $aWXRc$react.useRef();
|
|
611
763
|
let layout = $aWXRc$reactspectrumlistbox.useListBoxLayout(state);
|
|
612
|
-
let
|
|
764
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
613
765
|
let { inputProps: inputProps , listBoxProps: listBoxProps , labelProps: labelProps , clearButtonProps: clearButtonProps } = $aWXRc$reactariaautocomplete.useSearchAutocomplete({
|
|
614
766
|
...props,
|
|
615
767
|
keyboardDelegate: layout,
|
|
@@ -642,13 +794,13 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
642
794
|
let clearButton = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumbutton.ClearButton, {
|
|
643
795
|
...clearButtonProps,
|
|
644
796
|
preventFocus: true,
|
|
645
|
-
"aria-label":
|
|
797
|
+
"aria-label": stringFormatter.format('clear'),
|
|
646
798
|
excludeFromTabOrder: true,
|
|
647
799
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-ClearButton'),
|
|
648
800
|
isDisabled: isDisabled
|
|
649
801
|
});
|
|
650
802
|
let loadingCircle = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumprogress.ProgressCircle, {
|
|
651
|
-
"aria-label":
|
|
803
|
+
"aria-label": stringFormatter.format('loading'),
|
|
652
804
|
size: "S",
|
|
653
805
|
isIndeterminate: true,
|
|
654
806
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($1e139f06a0a4b696$exports)), 'spectrum-Search-circleLoader', $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($40cb3a00c193680f$exports)), 'spectrum-Textfield-circleLoader'))
|
|
@@ -757,7 +909,7 @@ function $a9f98e219df0b64d$var$SearchAutocompleteTray(props) {
|
|
|
757
909
|
shouldUseVirtualFocus: true,
|
|
758
910
|
renderEmptyState: ()=>loadingState !== 'loading' && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", {
|
|
759
911
|
className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($83da5c2df967875d$exports)), 'no-results')
|
|
760
|
-
},
|
|
912
|
+
}, stringFormatter.format('noResults'))
|
|
761
913
|
,
|
|
762
914
|
UNSAFE_className: $aWXRc$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($83da5c2df967875d$exports)), 'tray-listbox'),
|
|
763
915
|
ref: listBoxRef,
|
|
@@ -802,7 +954,7 @@ const $dcf500d58a031ca6$var$SearchAutocompleteBase = /*#__PURE__*/ ($parcel$inte
|
|
|
802
954
|
props = $aWXRc$reactspectrumprovider.useProviderProps(props);
|
|
803
955
|
let { menuTrigger: menuTrigger = 'input' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , isQuiet: isQuiet , loadingState: loadingState , onLoadMore: onLoadMore , onSubmit: onSubmit = ()=>{
|
|
804
956
|
} } = props;
|
|
805
|
-
let
|
|
957
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
806
958
|
let isAsync = loadingState != null;
|
|
807
959
|
let popoverRef = $aWXRc$react.useRef();
|
|
808
960
|
let unwrappedPopoverRef = $aWXRc$reactspectrumutils.useUnwrapDOMRef(popoverRef);
|
|
@@ -910,7 +1062,7 @@ const $dcf500d58a031ca6$var$SearchAutocompleteBase = /*#__PURE__*/ ($parcel$inte
|
|
|
910
1062
|
shouldUseVirtualFocus: true,
|
|
911
1063
|
isLoading: loadingState === 'loadingMore',
|
|
912
1064
|
onLoadMore: onLoadMore,
|
|
913
|
-
renderEmptyState: ()=>isAsync && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", null,
|
|
1065
|
+
renderEmptyState: ()=>isAsync && /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement("span", null, stringFormatter.format('noResults'))
|
|
914
1066
|
}), /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactariaoverlays.DismissButton, {
|
|
915
1067
|
onDismiss: ()=>state.close()
|
|
916
1068
|
}))));
|
|
@@ -919,11 +1071,11 @@ const $dcf500d58a031ca6$var$SearchAutocompleteInput = /*#__PURE__*/ ($parcel$int
|
|
|
919
1071
|
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;
|
|
920
1072
|
let { hoverProps: hoverProps , isHovered: isHovered } = $aWXRc$reactariainteractions.useHover({
|
|
921
1073
|
});
|
|
922
|
-
let
|
|
1074
|
+
let stringFormatter = $aWXRc$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($ccb60979256717ac$exports)));
|
|
923
1075
|
let timeout = $aWXRc$react.useRef(null);
|
|
924
1076
|
let [showLoading, setShowLoading] = $aWXRc$react.useState(false);
|
|
925
1077
|
let loadingCircle = /*#__PURE__*/ ($parcel$interopDefault($aWXRc$react)).createElement($aWXRc$reactspectrumprogress.ProgressCircle, {
|
|
926
|
-
"aria-label":
|
|
1078
|
+
"aria-label": stringFormatter.format('loading'),
|
|
927
1079
|
size: "S",
|
|
928
1080
|
isIndeterminate: true,
|
|
929
1081
|
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'))
|
|
@@ -1005,7 +1157,6 @@ const $dcf500d58a031ca6$var$SearchAutocompleteInput = /*#__PURE__*/ ($parcel$int
|
|
|
1005
1157
|
|
|
1006
1158
|
|
|
1007
1159
|
|
|
1008
|
-
$parcel$exportWildcard(module.exports, $dcf500d58a031ca6$exports);
|
|
1009
1160
|
|
|
1010
1161
|
|
|
1011
1162
|
//# sourceMappingURL=main.js.map
|