@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/module.js
CHANGED
|
@@ -12,7 +12,7 @@ import {ProgressCircle as $aQREU$ProgressCircle} from "@react-spectrum/progress"
|
|
|
12
12
|
import $aQREU$react, {useRef as $aQREU$useRef, useState as $aQREU$useState, useCallback as $aQREU$useCallback, useEffect as $aQREU$useEffect, forwardRef as $aQREU$forwardRef} from "react";
|
|
13
13
|
import {TextFieldBase as $aQREU$TextFieldBase} from "@react-spectrum/textfield";
|
|
14
14
|
import {useComboBoxState as $aQREU$useComboBoxState} from "@react-stately/combobox";
|
|
15
|
-
import {
|
|
15
|
+
import {useLocalizedStringFormatter as $aQREU$useLocalizedStringFormatter, useFilter as $aQREU$useFilter} from "@react-aria/i18n";
|
|
16
16
|
import {useHover as $aQREU$useHover, setInteractionModality as $aQREU$setInteractionModality} from "@react-aria/interactions";
|
|
17
17
|
import {useLayoutEffect as $aQREU$useLayoutEffect, mergeProps as $aQREU$mergeProps, useId as $aQREU$useId} from "@react-aria/utils";
|
|
18
18
|
import {useProviderProps as $aQREU$useProviderProps, useProvider as $aQREU$useProvider} from "@react-spectrum/provider";
|
|
@@ -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 $f3f3b62273a2d260$exports = {};
|
|
33
|
-
|
|
34
|
-
$parcel$export($f3f3b62273a2d260$exports, "SearchAutocomplete", () => $f3f3b62273a2d260$export$dd65332a5b19fa63);
|
|
35
32
|
|
|
36
33
|
|
|
37
34
|
|
|
@@ -39,139 +36,309 @@ $parcel$export($f3f3b62273a2d260$exports, "SearchAutocomplete", () => $f3f3b6227
|
|
|
39
36
|
|
|
40
37
|
var $06f6e8ce74a28744$exports = {};
|
|
41
38
|
var $024cf3aa492e9082$exports = {};
|
|
42
|
-
$024cf3aa492e9082$exports =
|
|
39
|
+
$024cf3aa492e9082$exports = {
|
|
40
|
+
"clear": `مسح`,
|
|
41
|
+
"invalid": `(غير صالح)`,
|
|
42
|
+
"loading": `جارٍ التحميل...`,
|
|
43
|
+
"noResults": `لا توجد نتائج`
|
|
44
|
+
};
|
|
43
45
|
|
|
44
46
|
|
|
45
47
|
var $b1478ef78bbb453c$exports = {};
|
|
46
|
-
$b1478ef78bbb453c$exports =
|
|
48
|
+
$b1478ef78bbb453c$exports = {
|
|
49
|
+
"clear": `Изчисти`,
|
|
50
|
+
"invalid": `(невалиден)`,
|
|
51
|
+
"loading": `Зареждане...`,
|
|
52
|
+
"noResults": `Няма резултати`
|
|
53
|
+
};
|
|
47
54
|
|
|
48
55
|
|
|
49
56
|
var $a460b76408fa2c12$exports = {};
|
|
50
|
-
$a460b76408fa2c12$exports =
|
|
57
|
+
$a460b76408fa2c12$exports = {
|
|
58
|
+
"clear": `Vymazat`,
|
|
59
|
+
"invalid": `(neplatné)`,
|
|
60
|
+
"loading": `Načítání...`,
|
|
61
|
+
"noResults": `Žádné výsledky`
|
|
62
|
+
};
|
|
51
63
|
|
|
52
64
|
|
|
53
65
|
var $e9e48f3945b54c4e$exports = {};
|
|
54
|
-
$e9e48f3945b54c4e$exports =
|
|
66
|
+
$e9e48f3945b54c4e$exports = {
|
|
67
|
+
"clear": `Ryd`,
|
|
68
|
+
"invalid": `(ugyldig)`,
|
|
69
|
+
"loading": `Indlæser...`,
|
|
70
|
+
"noResults": `Ingen resultater`
|
|
71
|
+
};
|
|
55
72
|
|
|
56
73
|
|
|
57
74
|
var $51a37bbbb04b8d4b$exports = {};
|
|
58
|
-
$51a37bbbb04b8d4b$exports =
|
|
75
|
+
$51a37bbbb04b8d4b$exports = {
|
|
76
|
+
"clear": `Löschen`,
|
|
77
|
+
"invalid": `(ungültig)`,
|
|
78
|
+
"loading": `Wird geladen...`,
|
|
79
|
+
"noResults": `Keine Ergebnisse`
|
|
80
|
+
};
|
|
59
81
|
|
|
60
82
|
|
|
61
83
|
var $a9652db54e8c657c$exports = {};
|
|
62
|
-
$a9652db54e8c657c$exports =
|
|
84
|
+
$a9652db54e8c657c$exports = {
|
|
85
|
+
"clear": `Καθαρισμός`,
|
|
86
|
+
"invalid": `(δεν ισχύει)`,
|
|
87
|
+
"loading": `Φόρτωση...`,
|
|
88
|
+
"noResults": `Χωρίς αποτέλεσμα`
|
|
89
|
+
};
|
|
63
90
|
|
|
64
91
|
|
|
65
92
|
var $9d3fddee794c9b57$exports = {};
|
|
66
|
-
$9d3fddee794c9b57$exports =
|
|
93
|
+
$9d3fddee794c9b57$exports = {
|
|
94
|
+
"loading": `Loading...`,
|
|
95
|
+
"noResults": `No results`,
|
|
96
|
+
"clear": `Clear`,
|
|
97
|
+
"invalid": `(invalid)`
|
|
98
|
+
};
|
|
67
99
|
|
|
68
100
|
|
|
69
101
|
var $d19a882e0e4cfd8a$exports = {};
|
|
70
|
-
$d19a882e0e4cfd8a$exports =
|
|
102
|
+
$d19a882e0e4cfd8a$exports = {
|
|
103
|
+
"clear": `Borrar`,
|
|
104
|
+
"invalid": `(no válido)`,
|
|
105
|
+
"loading": `Cargando...`,
|
|
106
|
+
"noResults": `Sin resultados`
|
|
107
|
+
};
|
|
71
108
|
|
|
72
109
|
|
|
73
110
|
var $f163759b67478eb6$exports = {};
|
|
74
|
-
$f163759b67478eb6$exports =
|
|
111
|
+
$f163759b67478eb6$exports = {
|
|
112
|
+
"clear": `Kustuta`,
|
|
113
|
+
"invalid": `(kehtetu)`,
|
|
114
|
+
"loading": `Laadimine...`,
|
|
115
|
+
"noResults": `Tulemusi pole`
|
|
116
|
+
};
|
|
75
117
|
|
|
76
118
|
|
|
77
119
|
var $b156937eefa4b1b2$exports = {};
|
|
78
|
-
$b156937eefa4b1b2$exports =
|
|
120
|
+
$b156937eefa4b1b2$exports = {
|
|
121
|
+
"clear": `Kirkas`,
|
|
122
|
+
"invalid": `(epäkelpo)`,
|
|
123
|
+
"loading": `Ladataan...`,
|
|
124
|
+
"noResults": `Ei tuloksia`
|
|
125
|
+
};
|
|
79
126
|
|
|
80
127
|
|
|
81
128
|
var $21aacec2a5f4c61f$exports = {};
|
|
82
|
-
$21aacec2a5f4c61f$exports =
|
|
129
|
+
$21aacec2a5f4c61f$exports = {
|
|
130
|
+
"clear": `Effacer`,
|
|
131
|
+
"invalid": `(non valide)`,
|
|
132
|
+
"loading": `Chargement en cours…`,
|
|
133
|
+
"noResults": `Aucun résultat`
|
|
134
|
+
};
|
|
83
135
|
|
|
84
136
|
|
|
85
137
|
var $a0cc323ab22de2bd$exports = {};
|
|
86
|
-
$a0cc323ab22de2bd$exports =
|
|
138
|
+
$a0cc323ab22de2bd$exports = {
|
|
139
|
+
"clear": `נקה`,
|
|
140
|
+
"invalid": `(לא חוקי)`,
|
|
141
|
+
"loading": `טוען...`,
|
|
142
|
+
"noResults": `אין תוצאות`
|
|
143
|
+
};
|
|
87
144
|
|
|
88
145
|
|
|
89
146
|
var $4b1559eab8beeaf7$exports = {};
|
|
90
|
-
$4b1559eab8beeaf7$exports =
|
|
147
|
+
$4b1559eab8beeaf7$exports = {
|
|
148
|
+
"clear": `Izbriši`,
|
|
149
|
+
"invalid": `(nevažeće)`,
|
|
150
|
+
"loading": `Učitavam...`,
|
|
151
|
+
"noResults": `Nema rezultata`
|
|
152
|
+
};
|
|
91
153
|
|
|
92
154
|
|
|
93
155
|
var $4dab4b9205a1a185$exports = {};
|
|
94
|
-
$4dab4b9205a1a185$exports =
|
|
156
|
+
$4dab4b9205a1a185$exports = {
|
|
157
|
+
"clear": `Törlés`,
|
|
158
|
+
"invalid": `(érvénytelen)`,
|
|
159
|
+
"loading": `Betöltés folyamatban…`,
|
|
160
|
+
"noResults": `Nincsenek találatok`
|
|
161
|
+
};
|
|
95
162
|
|
|
96
163
|
|
|
97
164
|
var $e68bbe47073afa8a$exports = {};
|
|
98
|
-
$e68bbe47073afa8a$exports =
|
|
165
|
+
$e68bbe47073afa8a$exports = {
|
|
166
|
+
"clear": `Cancella`,
|
|
167
|
+
"invalid": `(non valido)`,
|
|
168
|
+
"loading": `Caricamento...`,
|
|
169
|
+
"noResults": `Nessun risultato`
|
|
170
|
+
};
|
|
99
171
|
|
|
100
172
|
|
|
101
173
|
var $88667c729de33c42$exports = {};
|
|
102
|
-
$88667c729de33c42$exports =
|
|
174
|
+
$88667c729de33c42$exports = {
|
|
175
|
+
"clear": `クリア`,
|
|
176
|
+
"invalid": `(無効)`,
|
|
177
|
+
"loading": `読み込み中...`,
|
|
178
|
+
"noResults": `結果なし`
|
|
179
|
+
};
|
|
103
180
|
|
|
104
181
|
|
|
105
182
|
var $4c3197bb97515799$exports = {};
|
|
106
|
-
$4c3197bb97515799$exports =
|
|
183
|
+
$4c3197bb97515799$exports = {
|
|
184
|
+
"clear": `지우기`,
|
|
185
|
+
"invalid": `(유효하지 않음)`,
|
|
186
|
+
"loading": `로드 중...`,
|
|
187
|
+
"noResults": `결과 없음`
|
|
188
|
+
};
|
|
107
189
|
|
|
108
190
|
|
|
109
191
|
var $cd50f414bffb1f7a$exports = {};
|
|
110
|
-
$cd50f414bffb1f7a$exports =
|
|
192
|
+
$cd50f414bffb1f7a$exports = {
|
|
193
|
+
"clear": `Išvalyti`,
|
|
194
|
+
"invalid": `(netinkama)`,
|
|
195
|
+
"loading": `Įkeliama...`,
|
|
196
|
+
"noResults": `Rezultatų nėra`
|
|
197
|
+
};
|
|
111
198
|
|
|
112
199
|
|
|
113
200
|
var $0d7f84ef3916515f$exports = {};
|
|
114
|
-
$0d7f84ef3916515f$exports =
|
|
201
|
+
$0d7f84ef3916515f$exports = {
|
|
202
|
+
"clear": `Notīrīt`,
|
|
203
|
+
"invalid": `(nederīgs)`,
|
|
204
|
+
"loading": `Notiek ielāde...`,
|
|
205
|
+
"noResults": `Nav rezultātu`
|
|
206
|
+
};
|
|
115
207
|
|
|
116
208
|
|
|
117
209
|
var $f1a58baeabc47396$exports = {};
|
|
118
|
-
$f1a58baeabc47396$exports =
|
|
210
|
+
$f1a58baeabc47396$exports = {
|
|
211
|
+
"clear": `Tøm`,
|
|
212
|
+
"invalid": `(ugyldig)`,
|
|
213
|
+
"loading": `Laster inn...`,
|
|
214
|
+
"noResults": `Ingen resultater`
|
|
215
|
+
};
|
|
119
216
|
|
|
120
217
|
|
|
121
218
|
var $a3dd9e27853292c1$exports = {};
|
|
122
|
-
$a3dd9e27853292c1$exports =
|
|
219
|
+
$a3dd9e27853292c1$exports = {
|
|
220
|
+
"clear": `Wissen`,
|
|
221
|
+
"invalid": `(ongeldig)`,
|
|
222
|
+
"loading": `Laden...`,
|
|
223
|
+
"noResults": `Geen resultaten`
|
|
224
|
+
};
|
|
123
225
|
|
|
124
226
|
|
|
125
227
|
var $6e8413d536bb66ca$exports = {};
|
|
126
|
-
$6e8413d536bb66ca$exports =
|
|
228
|
+
$6e8413d536bb66ca$exports = {
|
|
229
|
+
"clear": `Wyczyść`,
|
|
230
|
+
"invalid": `(nieprawidłowy)`,
|
|
231
|
+
"loading": `Wczytywanie...`,
|
|
232
|
+
"noResults": `Brak wyników`
|
|
233
|
+
};
|
|
127
234
|
|
|
128
235
|
|
|
129
236
|
var $bdf278414a496664$exports = {};
|
|
130
|
-
$bdf278414a496664$exports =
|
|
237
|
+
$bdf278414a496664$exports = {
|
|
238
|
+
"clear": `Limpar`,
|
|
239
|
+
"invalid": `(inválido)`,
|
|
240
|
+
"loading": `Carregando...`,
|
|
241
|
+
"noResults": `Nenhum resultado`
|
|
242
|
+
};
|
|
131
243
|
|
|
132
244
|
|
|
133
245
|
var $53a7cad14ed21164$exports = {};
|
|
134
|
-
$53a7cad14ed21164$exports =
|
|
246
|
+
$53a7cad14ed21164$exports = {
|
|
247
|
+
"clear": `Limpar`,
|
|
248
|
+
"invalid": `(inválido)`,
|
|
249
|
+
"loading": `A carregar...`,
|
|
250
|
+
"noResults": `Sem resultados`
|
|
251
|
+
};
|
|
135
252
|
|
|
136
253
|
|
|
137
254
|
var $f503546cf2f6f1ae$exports = {};
|
|
138
|
-
$f503546cf2f6f1ae$exports =
|
|
255
|
+
$f503546cf2f6f1ae$exports = {
|
|
256
|
+
"clear": `Golire`,
|
|
257
|
+
"invalid": `(nevalid)`,
|
|
258
|
+
"loading": `Se încarcă...`,
|
|
259
|
+
"noResults": `Niciun rezultat`
|
|
260
|
+
};
|
|
139
261
|
|
|
140
262
|
|
|
141
263
|
var $9c0df9313a851b51$exports = {};
|
|
142
|
-
$9c0df9313a851b51$exports =
|
|
264
|
+
$9c0df9313a851b51$exports = {
|
|
265
|
+
"clear": `Очистить`,
|
|
266
|
+
"invalid": `(недействительно)`,
|
|
267
|
+
"loading": `Загрузка...`,
|
|
268
|
+
"noResults": `Результаты отсутствуют`
|
|
269
|
+
};
|
|
143
270
|
|
|
144
271
|
|
|
145
272
|
var $ff7d7295476e23aa$exports = {};
|
|
146
|
-
$ff7d7295476e23aa$exports =
|
|
273
|
+
$ff7d7295476e23aa$exports = {
|
|
274
|
+
"clear": `Vymazať`,
|
|
275
|
+
"invalid": `(neplatné)`,
|
|
276
|
+
"loading": `Načítava sa...`,
|
|
277
|
+
"noResults": `Žiadne výsledky`
|
|
278
|
+
};
|
|
147
279
|
|
|
148
280
|
|
|
149
281
|
var $9a2e91f09cf7ad62$exports = {};
|
|
150
|
-
$9a2e91f09cf7ad62$exports =
|
|
282
|
+
$9a2e91f09cf7ad62$exports = {
|
|
283
|
+
"clear": `Pobrišite`,
|
|
284
|
+
"invalid": `(neveljavno)`,
|
|
285
|
+
"loading": `Nalaganje...`,
|
|
286
|
+
"noResults": `Ni rezultatov`
|
|
287
|
+
};
|
|
151
288
|
|
|
152
289
|
|
|
153
290
|
var $15b314371291c45e$exports = {};
|
|
154
|
-
$15b314371291c45e$exports =
|
|
291
|
+
$15b314371291c45e$exports = {
|
|
292
|
+
"clear": `Izbriši`,
|
|
293
|
+
"invalid": `(nevažeće)`,
|
|
294
|
+
"loading": `Učitavam...`,
|
|
295
|
+
"noResults": `Nema rezultata`
|
|
296
|
+
};
|
|
155
297
|
|
|
156
298
|
|
|
157
299
|
var $1582d77a65bc529b$exports = {};
|
|
158
|
-
$1582d77a65bc529b$exports =
|
|
300
|
+
$1582d77a65bc529b$exports = {
|
|
301
|
+
"clear": `Rensa`,
|
|
302
|
+
"invalid": `(ogiltigt)`,
|
|
303
|
+
"loading": `Läser in...`,
|
|
304
|
+
"noResults": `Inga resultat`
|
|
305
|
+
};
|
|
159
306
|
|
|
160
307
|
|
|
161
308
|
var $c43996bbf6a84066$exports = {};
|
|
162
|
-
$c43996bbf6a84066$exports =
|
|
309
|
+
$c43996bbf6a84066$exports = {
|
|
310
|
+
"clear": `Temizle`,
|
|
311
|
+
"invalid": `(geçersiz)`,
|
|
312
|
+
"loading": `Yükleniyor...`,
|
|
313
|
+
"noResults": `Sonuç yok`
|
|
314
|
+
};
|
|
163
315
|
|
|
164
316
|
|
|
165
317
|
var $f0ebecaa2c26d7b6$exports = {};
|
|
166
|
-
$f0ebecaa2c26d7b6$exports =
|
|
318
|
+
$f0ebecaa2c26d7b6$exports = {
|
|
319
|
+
"clear": `Очистити`,
|
|
320
|
+
"invalid": `(недійсне)`,
|
|
321
|
+
"loading": `Завантаження...`,
|
|
322
|
+
"noResults": `Результатів немає`
|
|
323
|
+
};
|
|
167
324
|
|
|
168
325
|
|
|
169
326
|
var $0d8545e67578a6e4$exports = {};
|
|
170
|
-
$0d8545e67578a6e4$exports =
|
|
327
|
+
$0d8545e67578a6e4$exports = {
|
|
328
|
+
"clear": `清除`,
|
|
329
|
+
"invalid": `(无效)`,
|
|
330
|
+
"loading": `正在加载...`,
|
|
331
|
+
"noResults": `无结果`
|
|
332
|
+
};
|
|
171
333
|
|
|
172
334
|
|
|
173
335
|
var $5a75571ed7cb75fa$exports = {};
|
|
174
|
-
$5a75571ed7cb75fa$exports =
|
|
336
|
+
$5a75571ed7cb75fa$exports = {
|
|
337
|
+
"clear": `清除`,
|
|
338
|
+
"invalid": `(無效)`,
|
|
339
|
+
"loading": `正在載入...`,
|
|
340
|
+
"noResults": `無任何結果`
|
|
341
|
+
};
|
|
175
342
|
|
|
176
343
|
|
|
177
344
|
$06f6e8ce74a28744$exports = {
|
|
@@ -501,12 +668,12 @@ const $c940f54e16bafef5$export$e7a90f7d6b078162 = /*#__PURE__*/ $aQREU$react.for
|
|
|
501
668
|
});
|
|
502
669
|
const $c940f54e16bafef5$var$SearchAutocompleteButton = /*#__PURE__*/ $aQREU$react.forwardRef(function SearchAutocompleteButton(props, ref) {
|
|
503
670
|
let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , isPlaceholder: isPlaceholder , validationState: validationState , inputValue: inputValue , clearInput: clearInput , children: children , style: style , className: className } = props;
|
|
504
|
-
let
|
|
671
|
+
let stringFormatter = $aQREU$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($06f6e8ce74a28744$exports)));
|
|
505
672
|
let valueId = $aQREU$useId();
|
|
506
673
|
let invalidId = $aQREU$useId();
|
|
507
674
|
let validationIcon = validationState === 'invalid' ? /*#__PURE__*/ $aQREU$react.createElement($aQREU$spectrumiconsuiAlertMedium, {
|
|
508
675
|
id: invalidId,
|
|
509
|
-
"aria-label":
|
|
676
|
+
"aria-label": stringFormatter.format('invalid')
|
|
510
677
|
}) : /*#__PURE__*/ $aQREU$react.createElement($aQREU$spectrumiconsuiCheckmarkMedium, null);
|
|
511
678
|
let searchIcon = /*#__PURE__*/ $aQREU$react.createElement($aQREU$spectrumiconsuiMagnifier, {
|
|
512
679
|
"data-testid": "searchicon"
|
|
@@ -521,7 +688,7 @@ const $c940f54e16bafef5$var$SearchAutocompleteButton = /*#__PURE__*/ $aQREU$reac
|
|
|
521
688
|
props.onPress(e);
|
|
522
689
|
},
|
|
523
690
|
preventFocus: true,
|
|
524
|
-
"aria-label":
|
|
691
|
+
"aria-label": stringFormatter.format('clear'),
|
|
525
692
|
excludeFromTabOrder: true,
|
|
526
693
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-ClearButton'),
|
|
527
694
|
isDisabled: isDisabled
|
|
@@ -590,7 +757,7 @@ function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
|
590
757
|
let popoverRef = $aQREU$useRef();
|
|
591
758
|
let listBoxRef = $aQREU$useRef();
|
|
592
759
|
let layout = $aQREU$useListBoxLayout(state);
|
|
593
|
-
let
|
|
760
|
+
let stringFormatter = $aQREU$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($06f6e8ce74a28744$exports)));
|
|
594
761
|
let { inputProps: inputProps , listBoxProps: listBoxProps , labelProps: labelProps , clearButtonProps: clearButtonProps } = $aQREU$useSearchAutocomplete({
|
|
595
762
|
...props,
|
|
596
763
|
keyboardDelegate: layout,
|
|
@@ -623,13 +790,13 @@ function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
|
623
790
|
let clearButton = /*#__PURE__*/ $aQREU$react.createElement($aQREU$ClearButton, {
|
|
624
791
|
...clearButtonProps,
|
|
625
792
|
preventFocus: true,
|
|
626
|
-
"aria-label":
|
|
793
|
+
"aria-label": stringFormatter.format('clear'),
|
|
627
794
|
excludeFromTabOrder: true,
|
|
628
795
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-ClearButton'),
|
|
629
796
|
isDisabled: isDisabled
|
|
630
797
|
});
|
|
631
798
|
let loadingCircle = /*#__PURE__*/ $aQREU$react.createElement($aQREU$ProgressCircle, {
|
|
632
|
-
"aria-label":
|
|
799
|
+
"aria-label": stringFormatter.format('loading'),
|
|
633
800
|
size: "S",
|
|
634
801
|
isIndeterminate: true,
|
|
635
802
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search-circleLoader', $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-circleLoader'))
|
|
@@ -738,7 +905,7 @@ function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
|
738
905
|
shouldUseVirtualFocus: true,
|
|
739
906
|
renderEmptyState: ()=>loadingState !== 'loading' && /*#__PURE__*/ $aQREU$react.createElement("span", {
|
|
740
907
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'no-results')
|
|
741
|
-
},
|
|
908
|
+
}, stringFormatter.format('noResults'))
|
|
742
909
|
,
|
|
743
910
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'tray-listbox'),
|
|
744
911
|
ref: listBoxRef,
|
|
@@ -783,7 +950,7 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
783
950
|
props = $aQREU$useProviderProps(props);
|
|
784
951
|
let { menuTrigger: menuTrigger = 'input' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , isQuiet: isQuiet , loadingState: loadingState , onLoadMore: onLoadMore , onSubmit: onSubmit = ()=>{
|
|
785
952
|
} } = props;
|
|
786
|
-
let
|
|
953
|
+
let stringFormatter = $aQREU$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($06f6e8ce74a28744$exports)));
|
|
787
954
|
let isAsync = loadingState != null;
|
|
788
955
|
let popoverRef = $aQREU$useRef();
|
|
789
956
|
let unwrappedPopoverRef = $aQREU$useUnwrapDOMRef(popoverRef);
|
|
@@ -891,7 +1058,7 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
891
1058
|
shouldUseVirtualFocus: true,
|
|
892
1059
|
isLoading: loadingState === 'loadingMore',
|
|
893
1060
|
onLoadMore: onLoadMore,
|
|
894
|
-
renderEmptyState: ()=>isAsync && /*#__PURE__*/ $aQREU$react.createElement("span", null,
|
|
1061
|
+
renderEmptyState: ()=>isAsync && /*#__PURE__*/ $aQREU$react.createElement("span", null, stringFormatter.format('noResults'))
|
|
895
1062
|
}), /*#__PURE__*/ $aQREU$react.createElement($aQREU$DismissButton, {
|
|
896
1063
|
onDismiss: ()=>state.close()
|
|
897
1064
|
}))));
|
|
@@ -900,11 +1067,11 @@ const $f3f3b62273a2d260$var$SearchAutocompleteInput = /*#__PURE__*/ $aQREU$react
|
|
|
900
1067
|
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;
|
|
901
1068
|
let { hoverProps: hoverProps , isHovered: isHovered } = $aQREU$useHover({
|
|
902
1069
|
});
|
|
903
|
-
let
|
|
1070
|
+
let stringFormatter = $aQREU$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($06f6e8ce74a28744$exports)));
|
|
904
1071
|
let timeout = $aQREU$useRef(null);
|
|
905
1072
|
let [showLoading, setShowLoading] = $aQREU$useState(false);
|
|
906
1073
|
let loadingCircle = /*#__PURE__*/ $aQREU$react.createElement($aQREU$ProgressCircle, {
|
|
907
|
-
"aria-label":
|
|
1074
|
+
"aria-label": stringFormatter.format('loading'),
|
|
908
1075
|
size: "S",
|
|
909
1076
|
isIndeterminate: true,
|
|
910
1077
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-circleLoader', $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup-input-circleLoader'))
|
|
@@ -988,5 +1155,5 @@ const $f3f3b62273a2d260$var$SearchAutocompleteInput = /*#__PURE__*/ $aQREU$react
|
|
|
988
1155
|
|
|
989
1156
|
|
|
990
1157
|
|
|
991
|
-
export {$
|
|
1158
|
+
export {$f3f3b62273a2d260$export$dd65332a5b19fa63 as SearchAutocomplete, $dc667e3abdbeb6b2$re_export$Item as Item, $dc667e3abdbeb6b2$re_export$Section as Section};
|
|
992
1159
|
//# sourceMappingURL=module.js.map
|