@react-spectrum/tag 3.0.0-rc.0 → 3.1.0

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/import.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import "./main.css";
2
2
  import {Item as $c14698d57a91452e$re_export$Item} from "@react-stately/collections";
3
3
  import {ActionButton as $fUaQ2$ActionButton, ClearButton as $fUaQ2$ClearButton} from "@react-spectrum/button";
4
- import {TagKeyboardDelegate as $fUaQ2$TagKeyboardDelegate, useTagGroup as $fUaQ2$useTagGroup, useTag as $fUaQ2$useTag} from "@react-aria/tag";
4
+ import {useTagGroup as $fUaQ2$useTagGroup, useTag as $fUaQ2$useTag} from "@react-aria/tag";
5
5
  import {useDOMRef as $fUaQ2$useDOMRef, classNames as $fUaQ2$classNames, useStyleProps as $fUaQ2$useStyleProps, SlotProvider as $fUaQ2$SlotProvider, ClearSlots as $fUaQ2$ClearSlots} from "@react-spectrum/utils";
6
6
  import {Field as $fUaQ2$Field} from "@react-spectrum/label";
7
- import {FocusScope as $fUaQ2$FocusScope, useFocusRing as $fUaQ2$useFocusRing} from "@react-aria/focus";
8
- import {ListCollection as $fUaQ2$ListCollection} from "@react-stately/list";
9
- import {useProviderProps as $fUaQ2$useProviderProps, Provider as $fUaQ2$Provider} from "@react-spectrum/provider";
7
+ import {FocusScope as $fUaQ2$FocusScope, FocusRing as $fUaQ2$FocusRing, useFocusRing as $fUaQ2$useFocusRing} from "@react-aria/focus";
8
+ import {useListState as $fUaQ2$useListState, ListCollection as $fUaQ2$ListCollection} from "@react-stately/list";
9
+ import {ListKeyboardDelegate as $fUaQ2$ListKeyboardDelegate} from "@react-aria/selection";
10
+ import {useProviderProps as $fUaQ2$useProviderProps, useProvider as $fUaQ2$useProvider, Provider as $fUaQ2$Provider} from "@react-spectrum/provider";
10
11
  import $fUaQ2$react, {useRef as $fUaQ2$useRef, useState as $fUaQ2$useState, useMemo as $fUaQ2$useMemo, useCallback as $fUaQ2$useCallback, useEffect as $fUaQ2$useEffect} from "react";
11
12
  import {useFormProps as $fUaQ2$useFormProps} from "@react-spectrum/form";
12
13
  import {useValueEffect as $fUaQ2$useValueEffect, useId as $fUaQ2$useId, useResizeObserver as $fUaQ2$useResizeObserver, useLayoutEffect as $fUaQ2$useLayoutEffect, mergeProps as $fUaQ2$mergeProps} from "@react-aria/utils";
13
14
  import {useLocale as $fUaQ2$useLocale, useLocalizedStringFormatter as $fUaQ2$useLocalizedStringFormatter} from "@react-aria/i18n";
14
- import {useTagGroupState as $fUaQ2$useTagGroupState} from "@react-stately/tag";
15
15
  import {Text as $fUaQ2$Text} from "@react-spectrum/text";
16
16
  import {useHover as $fUaQ2$useHover} from "@react-aria/interactions";
17
17
 
@@ -46,11 +46,12 @@ function $parcel$export(e, n, v, s) {
46
46
 
47
47
 
48
48
 
49
- var $70cc9ce0ced2eb4a$exports = {};
49
+ var $fd5ee5726b29a200$exports = {};
50
50
  var $4f97095b36611c9c$exports = {};
51
51
  $4f97095b36611c9c$exports = {
52
52
  "actions": `الإجراءات`,
53
53
  "hideButtonLabel": `إظهار أقل`,
54
+ "noTags": `بدون`,
54
55
  "showAllButtonLabel": (args, formatter)=>`عرض الكل (${formatter.number(args.tagCount)})`
55
56
  };
56
57
 
@@ -59,6 +60,7 @@ var $d1606ced019b0a9e$exports = {};
59
60
  $d1606ced019b0a9e$exports = {
60
61
  "actions": `Действия`,
61
62
  "hideButtonLabel": `Показване на по-малко`,
63
+ "noTags": `Нито един`,
62
64
  "showAllButtonLabel": (args, formatter)=>`Показване на всички (${formatter.number(args.tagCount)})`
63
65
  };
64
66
 
@@ -67,6 +69,7 @@ var $01e300f7d0078144$exports = {};
67
69
  $01e300f7d0078144$exports = {
68
70
  "actions": `Akce`,
69
71
  "hideButtonLabel": `Zobrazit méně`,
72
+ "noTags": `Žádný`,
70
73
  "showAllButtonLabel": (args, formatter)=>`Zobrazit vše (${formatter.number(args.tagCount)})`
71
74
  };
72
75
 
@@ -75,6 +78,7 @@ var $f3862a5e5adf53a4$exports = {};
75
78
  $f3862a5e5adf53a4$exports = {
76
79
  "actions": `Handlinger`,
77
80
  "hideButtonLabel": `Vis mindre`,
81
+ "noTags": `Ingen`,
78
82
  "showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
79
83
  };
80
84
 
@@ -83,6 +87,7 @@ var $74c0b6e11258b497$exports = {};
83
87
  $74c0b6e11258b497$exports = {
84
88
  "actions": `Aktionen`,
85
89
  "hideButtonLabel": `Weniger zeigen`,
90
+ "noTags": `Keine`,
86
91
  "showAllButtonLabel": (args, formatter)=>`Alle anzeigen (${formatter.number(args.tagCount)})`
87
92
  };
88
93
 
@@ -91,6 +96,7 @@ var $54fc4e3090259431$exports = {};
91
96
  $54fc4e3090259431$exports = {
92
97
  "actions": `Ενέργειες`,
93
98
  "hideButtonLabel": `Εμφάνιση λιγότερων`,
99
+ "noTags": `Κανένα`,
94
100
  "showAllButtonLabel": (args, formatter)=>`Εμφάνιση όλων (${formatter.number(args.tagCount)})`
95
101
  };
96
102
 
@@ -99,7 +105,8 @@ var $edf02907a7caaf96$exports = {};
99
105
  $edf02907a7caaf96$exports = {
100
106
  "showAllButtonLabel": (args, formatter)=>`Show all (${formatter.number(args.tagCount)})`,
101
107
  "hideButtonLabel": `Show less`,
102
- "actions": `Actions`
108
+ "actions": `Actions`,
109
+ "noTags": `None`
103
110
  };
104
111
 
105
112
 
@@ -107,6 +114,7 @@ var $b15ad3cf4b213b8e$exports = {};
107
114
  $b15ad3cf4b213b8e$exports = {
108
115
  "actions": `Acciones`,
109
116
  "hideButtonLabel": `Mostrar menos`,
117
+ "noTags": `Ninguno`,
110
118
  "showAllButtonLabel": (args, formatter)=>`Mostrar todo (${formatter.number(args.tagCount)})`
111
119
  };
112
120
 
@@ -115,6 +123,7 @@ var $36cfda096c3db653$exports = {};
115
123
  $36cfda096c3db653$exports = {
116
124
  "actions": `Toimingud`,
117
125
  "hideButtonLabel": `Kuva vähem`,
126
+ "noTags": `Puudub`,
118
127
  "showAllButtonLabel": (args, formatter)=>`Kuva kõik (${formatter.number(args.tagCount)})`
119
128
  };
120
129
 
@@ -123,6 +132,7 @@ var $1a42e74299cab64d$exports = {};
123
132
  $1a42e74299cab64d$exports = {
124
133
  "actions": `Toiminnot`,
125
134
  "hideButtonLabel": `Näytä vähemmän`,
135
+ "noTags": `Ei mitään`,
126
136
  "showAllButtonLabel": (args, formatter)=>`Näytä kaikki (${formatter.number(args.tagCount)})`
127
137
  };
128
138
 
@@ -131,6 +141,7 @@ var $dd8d3f41a5bfc373$exports = {};
131
141
  $dd8d3f41a5bfc373$exports = {
132
142
  "actions": `Actions`,
133
143
  "hideButtonLabel": `Afficher moins`,
144
+ "noTags": `Aucun`,
134
145
  "showAllButtonLabel": (args, formatter)=>`Tout afficher (${formatter.number(args.tagCount)})`
135
146
  };
136
147
 
@@ -139,6 +150,7 @@ var $35d68da324c3ed3e$exports = {};
139
150
  $35d68da324c3ed3e$exports = {
140
151
  "actions": `פעולות`,
141
152
  "hideButtonLabel": `הצג פחות`,
153
+ "noTags": `ללא`,
142
154
  "showAllButtonLabel": (args, formatter)=>`הצג הכל (${formatter.number(args.tagCount)})`
143
155
  };
144
156
 
@@ -147,6 +159,7 @@ var $92746ce1284cd29f$exports = {};
147
159
  $92746ce1284cd29f$exports = {
148
160
  "actions": `Radnje`,
149
161
  "hideButtonLabel": `Prikaži manje`,
162
+ "noTags": `Nema`,
150
163
  "showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
151
164
  };
152
165
 
@@ -155,6 +168,7 @@ var $570956f4f59f34b9$exports = {};
155
168
  $570956f4f59f34b9$exports = {
156
169
  "actions": `Műveletek`,
157
170
  "hideButtonLabel": `Mutass kevesebbet`,
171
+ "noTags": `Egyik sem`,
158
172
  "showAllButtonLabel": (args, formatter)=>`Az összes megjelenítése (${formatter.number(args.tagCount)})`
159
173
  };
160
174
 
@@ -163,6 +177,7 @@ var $f680d16d6f0d92d8$exports = {};
163
177
  $f680d16d6f0d92d8$exports = {
164
178
  "actions": `Azioni`,
165
179
  "hideButtonLabel": `Mostra meno`,
180
+ "noTags": `Nessuno`,
166
181
  "showAllButtonLabel": (args, formatter)=>`Mostra tutto (${formatter.number(args.tagCount)})`
167
182
  };
168
183
 
@@ -171,6 +186,7 @@ var $d28c56f33dc08452$exports = {};
171
186
  $d28c56f33dc08452$exports = {
172
187
  "actions": `アクション`,
173
188
  "hideButtonLabel": `表示を減らす`,
189
+ "noTags": `なし`,
174
190
  "showAllButtonLabel": (args, formatter)=>`すべての (${formatter.number(args.tagCount)}) を表示`
175
191
  };
176
192
 
@@ -179,6 +195,7 @@ var $fc6f973338bd2d9c$exports = {};
179
195
  $fc6f973338bd2d9c$exports = {
180
196
  "actions": `액션`,
181
197
  "hideButtonLabel": `간단히 표시`,
198
+ "noTags": `없음`,
182
199
  "showAllButtonLabel": (args, formatter)=>`모두 표시 (${formatter.number(args.tagCount)})`
183
200
  };
184
201
 
@@ -187,6 +204,7 @@ var $8664f3f6a18cfaa6$exports = {};
187
204
  $8664f3f6a18cfaa6$exports = {
188
205
  "actions": `Veiksmai`,
189
206
  "hideButtonLabel": `Rodyti mažiau`,
207
+ "noTags": `Nėra`,
190
208
  "showAllButtonLabel": (args, formatter)=>`Rodyti viską (${formatter.number(args.tagCount)})`
191
209
  };
192
210
 
@@ -195,6 +213,7 @@ var $bd6e0fb18b482534$exports = {};
195
213
  $bd6e0fb18b482534$exports = {
196
214
  "actions": `Darbības`,
197
215
  "hideButtonLabel": `Rādīt mazāk`,
216
+ "noTags": `Nav`,
198
217
  "showAllButtonLabel": (args, formatter)=>`Rādīt visu (${formatter.number(args.tagCount)})`
199
218
  };
200
219
 
@@ -203,6 +222,7 @@ var $3df66303c61fb25b$exports = {};
203
222
  $3df66303c61fb25b$exports = {
204
223
  "actions": `Handlinger`,
205
224
  "hideButtonLabel": `Vis mindre`,
225
+ "noTags": `Ingen`,
206
226
  "showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
207
227
  };
208
228
 
@@ -211,6 +231,7 @@ var $0f533b61cdf70176$exports = {};
211
231
  $0f533b61cdf70176$exports = {
212
232
  "actions": `Acties`,
213
233
  "hideButtonLabel": `Minder weergeven`,
234
+ "noTags": `Geen`,
214
235
  "showAllButtonLabel": (args, formatter)=>`Alles tonen (${formatter.number(args.tagCount)})`
215
236
  };
216
237
 
@@ -219,6 +240,7 @@ var $03a6cd8f61b18787$exports = {};
219
240
  $03a6cd8f61b18787$exports = {
220
241
  "actions": `Działania`,
221
242
  "hideButtonLabel": `Wyświetl mniej`,
243
+ "noTags": `Brak`,
222
244
  "showAllButtonLabel": (args, formatter)=>`Pokaż wszystko (${formatter.number(args.tagCount)})`
223
245
  };
224
246
 
@@ -227,6 +249,7 @@ var $c726a9d931f60c66$exports = {};
227
249
  $c726a9d931f60c66$exports = {
228
250
  "actions": `Ações`,
229
251
  "hideButtonLabel": `Mostrar menos`,
252
+ "noTags": `Nenhum`,
230
253
  "showAllButtonLabel": (args, formatter)=>`Mostrar tudo (${formatter.number(args.tagCount)})`
231
254
  };
232
255
 
@@ -235,6 +258,7 @@ var $ae9982f17f7235eb$exports = {};
235
258
  $ae9982f17f7235eb$exports = {
236
259
  "actions": `Ações`,
237
260
  "hideButtonLabel": `Mostrar menos`,
261
+ "noTags": `Nenhum`,
238
262
  "showAllButtonLabel": (args, formatter)=>`Mostrar tudo (${formatter.number(args.tagCount)})`
239
263
  };
240
264
 
@@ -243,6 +267,7 @@ var $c756723b814c63fa$exports = {};
243
267
  $c756723b814c63fa$exports = {
244
268
  "actions": `Acțiuni`,
245
269
  "hideButtonLabel": `Se afișează mai puțin`,
270
+ "noTags": `Niciuna`,
246
271
  "showAllButtonLabel": (args, formatter)=>`Se afișează tot (${formatter.number(args.tagCount)})`
247
272
  };
248
273
 
@@ -251,6 +276,7 @@ var $1601284ef6ec0730$exports = {};
251
276
  $1601284ef6ec0730$exports = {
252
277
  "actions": `Действия`,
253
278
  "hideButtonLabel": `Показать меньше`,
279
+ "noTags": `Нет`,
254
280
  "showAllButtonLabel": (args, formatter)=>`Показать все (${formatter.number(args.tagCount)})`
255
281
  };
256
282
 
@@ -259,6 +285,7 @@ var $0388aac8e3bc5b59$exports = {};
259
285
  $0388aac8e3bc5b59$exports = {
260
286
  "actions": `Akcie`,
261
287
  "hideButtonLabel": `Zobraziť menej`,
288
+ "noTags": `Žiadne`,
262
289
  "showAllButtonLabel": (args, formatter)=>`Zobraziť všetko (${formatter.number(args.tagCount)})`
263
290
  };
264
291
 
@@ -267,6 +294,7 @@ var $247d9c4a71da6b08$exports = {};
267
294
  $247d9c4a71da6b08$exports = {
268
295
  "actions": `Dejanja`,
269
296
  "hideButtonLabel": `Prikaži manj`,
297
+ "noTags": `Nič`,
270
298
  "showAllButtonLabel": (args, formatter)=>`Prikaž vse (${formatter.number(args.tagCount)})`
271
299
  };
272
300
 
@@ -275,6 +303,7 @@ var $91424dbafdc02f68$exports = {};
275
303
  $91424dbafdc02f68$exports = {
276
304
  "actions": `Radnje`,
277
305
  "hideButtonLabel": `Prikaži manje`,
306
+ "noTags": `Ne postoji`,
278
307
  "showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
279
308
  };
280
309
 
@@ -283,6 +312,7 @@ var $23c23096b6c1b0fa$exports = {};
283
312
  $23c23096b6c1b0fa$exports = {
284
313
  "actions": `Åtgärder`,
285
314
  "hideButtonLabel": `Visa mindre`,
315
+ "noTags": `Ingen`,
286
316
  "showAllButtonLabel": (args, formatter)=>`Visa alla (${formatter.number(args.tagCount)})`
287
317
  };
288
318
 
@@ -291,6 +321,7 @@ var $d82875ae28963e58$exports = {};
291
321
  $d82875ae28963e58$exports = {
292
322
  "actions": `Eylemler`,
293
323
  "hideButtonLabel": `Daha az göster`,
324
+ "noTags": `Hiçbiri`,
294
325
  "showAllButtonLabel": (args, formatter)=>`Tümünü göster (${formatter.number(args.tagCount)})`
295
326
  };
296
327
 
@@ -299,6 +330,7 @@ var $1dd153688f5574fc$exports = {};
299
330
  $1dd153688f5574fc$exports = {
300
331
  "actions": `Дії`,
301
332
  "hideButtonLabel": `Показувати менше`,
333
+ "noTags": `Немає`,
302
334
  "showAllButtonLabel": (args, formatter)=>`Показати всі (${formatter.number(args.tagCount)})`
303
335
  };
304
336
 
@@ -307,6 +339,7 @@ var $6427307c9596258c$exports = {};
307
339
  $6427307c9596258c$exports = {
308
340
  "actions": `操作`,
309
341
  "hideButtonLabel": `显示更少`,
342
+ "noTags": `无`,
310
343
  "showAllButtonLabel": (args, formatter)=>`全部显示 (${formatter.number(args.tagCount)})`
311
344
  };
312
345
 
@@ -315,11 +348,12 @@ var $18b85da2aafaaf3e$exports = {};
315
348
  $18b85da2aafaaf3e$exports = {
316
349
  "actions": `動作`,
317
350
  "hideButtonLabel": `顯示較少`,
351
+ "noTags": `無`,
318
352
  "showAllButtonLabel": (args, formatter)=>`顯示全部 (${formatter.number(args.tagCount)})`
319
353
  };
320
354
 
321
355
 
322
- $70cc9ce0ced2eb4a$exports = {
356
+ $fd5ee5726b29a200$exports = {
323
357
  "ar-AE": $4f97095b36611c9c$exports,
324
358
  "bg-BG": $d1606ced019b0a9e$exports,
325
359
  "cs-CZ": $01e300f7d0078144$exports,
@@ -360,12 +394,14 @@ $70cc9ce0ced2eb4a$exports = {
360
394
 
361
395
 
362
396
 
397
+
363
398
  var $c033a7c057e84ef1$exports = {};
364
399
 
365
400
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tag", () => $c033a7c057e84ef1$export$6174bd1d20b4c022, (v) => $c033a7c057e84ef1$export$6174bd1d20b4c022 = v);
366
401
  $parcel$export($c033a7c057e84ef1$exports, "focus-ring", () => $c033a7c057e84ef1$export$f39a09f249340e2a, (v) => $c033a7c057e84ef1$export$f39a09f249340e2a = v);
367
402
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags", () => $c033a7c057e84ef1$export$eb7e80013a1212da, (v) => $c033a7c057e84ef1$export$eb7e80013a1212da = v);
368
403
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-container", () => $c033a7c057e84ef1$export$3300169c5d27fe96, (v) => $c033a7c057e84ef1$export$3300169c5d27fe96 = v);
404
+ $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-container--empty", () => $c033a7c057e84ef1$export$a5e59d283417e02b, (v) => $c033a7c057e84ef1$export$a5e59d283417e02b = v);
369
405
  $parcel$export($c033a7c057e84ef1$exports, "is-disabled", () => $c033a7c057e84ef1$export$d35bc1e505d1ebbf, (v) => $c033a7c057e84ef1$export$d35bc1e505d1ebbf = v);
370
406
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tag-removeButton", () => $c033a7c057e84ef1$export$23a76b996f0a6c1, (v) => $c033a7c057e84ef1$export$23a76b996f0a6c1 = v);
371
407
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tag-cell", () => $c033a7c057e84ef1$export$9c4fd4d7faada408, (v) => $c033a7c057e84ef1$export$9c4fd4d7faada408 = v);
@@ -377,12 +413,14 @@ $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-actions", () => $c033a7
377
413
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-actionButton", () => $c033a7c057e84ef1$export$e6882f8db018e3bd, (v) => $c033a7c057e84ef1$export$e6882f8db018e3bd = v);
378
414
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-fieldWrapper", () => $c033a7c057e84ef1$export$c9b7ca327d69b2b5, (v) => $c033a7c057e84ef1$export$c9b7ca327d69b2b5 = v);
379
415
  $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-fieldWrapper--positionSide", () => $c033a7c057e84ef1$export$a7c11d4acc244e09, (v) => $c033a7c057e84ef1$export$a7c11d4acc244e09 = v);
416
+ $parcel$export($c033a7c057e84ef1$exports, "spectrum-Tags-empty-state", () => $c033a7c057e84ef1$export$cd48f925394bb16, (v) => $c033a7c057e84ef1$export$cd48f925394bb16 = v);
380
417
  $parcel$export($c033a7c057e84ef1$exports, "is-hovered", () => $c033a7c057e84ef1$export$b8813cd5d7824ce7, (v) => $c033a7c057e84ef1$export$b8813cd5d7824ce7 = v);
381
418
  $parcel$export($c033a7c057e84ef1$exports, "is-focused", () => $c033a7c057e84ef1$export$e7dc768d35940237, (v) => $c033a7c057e84ef1$export$e7dc768d35940237 = v);
382
419
  var $c033a7c057e84ef1$export$6174bd1d20b4c022;
383
420
  var $c033a7c057e84ef1$export$f39a09f249340e2a;
384
421
  var $c033a7c057e84ef1$export$eb7e80013a1212da;
385
422
  var $c033a7c057e84ef1$export$3300169c5d27fe96;
423
+ var $c033a7c057e84ef1$export$a5e59d283417e02b;
386
424
  var $c033a7c057e84ef1$export$d35bc1e505d1ebbf;
387
425
  var $c033a7c057e84ef1$export$23a76b996f0a6c1;
388
426
  var $c033a7c057e84ef1$export$9c4fd4d7faada408;
@@ -394,12 +432,14 @@ var $c033a7c057e84ef1$export$8afaa02110915bbb;
394
432
  var $c033a7c057e84ef1$export$e6882f8db018e3bd;
395
433
  var $c033a7c057e84ef1$export$c9b7ca327d69b2b5;
396
434
  var $c033a7c057e84ef1$export$a7c11d4acc244e09;
435
+ var $c033a7c057e84ef1$export$cd48f925394bb16;
397
436
  var $c033a7c057e84ef1$export$b8813cd5d7824ce7;
398
437
  var $c033a7c057e84ef1$export$e7dc768d35940237;
399
438
  $c033a7c057e84ef1$export$6174bd1d20b4c022 = "spectrum-Tag_8407eb";
400
439
  $c033a7c057e84ef1$export$f39a09f249340e2a = "focus-ring_8407eb";
401
440
  $c033a7c057e84ef1$export$eb7e80013a1212da = "spectrum-Tags_8407eb";
402
441
  $c033a7c057e84ef1$export$3300169c5d27fe96 = "spectrum-Tags-container_8407eb";
442
+ $c033a7c057e84ef1$export$a5e59d283417e02b = "spectrum-Tags-container--empty_8407eb";
403
443
  $c033a7c057e84ef1$export$d35bc1e505d1ebbf = "is-disabled_8407eb";
404
444
  $c033a7c057e84ef1$export$23a76b996f0a6c1 = "spectrum-Tag-removeButton_8407eb";
405
445
  $c033a7c057e84ef1$export$9c4fd4d7faada408 = "spectrum-Tag-cell_8407eb";
@@ -411,6 +451,7 @@ $c033a7c057e84ef1$export$8afaa02110915bbb = "spectrum-Tags-actions_8407eb";
411
451
  $c033a7c057e84ef1$export$e6882f8db018e3bd = "spectrum-Tags-actionButton_8407eb";
412
452
  $c033a7c057e84ef1$export$c9b7ca327d69b2b5 = "spectrum-Tags-fieldWrapper_8407eb";
413
453
  $c033a7c057e84ef1$export$a7c11d4acc244e09 = "spectrum-Tags-fieldWrapper--positionSide_8407eb";
454
+ $c033a7c057e84ef1$export$cd48f925394bb16 = "spectrum-Tags-empty-state_8407eb";
414
455
  $c033a7c057e84ef1$export$b8813cd5d7824ce7 = "is-hovered_8407eb";
415
456
  $c033a7c057e84ef1$export$e7dc768d35940237 = "is-focused_8407eb";
416
457
 
@@ -435,7 +476,7 @@ $c033a7c057e84ef1$export$e7dc768d35940237 = "is-focused_8407eb";
435
476
 
436
477
 
437
478
  function $b5f5ee35d3b6b95c$export$3288d34c523a1192(props) {
438
- const { allowsRemoving: allowsRemoving , item: item , state: state , onRemove: onRemove , ...otherProps } = props;
479
+ const { item: item , state: state , ...otherProps } = props;
439
480
  // @ts-ignore
440
481
  let { styleProps: styleProps } = (0, $fUaQ2$useStyleProps)(otherProps);
441
482
  let { hoverProps: hoverProps , isHovered: isHovered } = (0, $fUaQ2$useHover)({});
@@ -443,11 +484,9 @@ function $b5f5ee35d3b6b95c$export$3288d34c523a1192(props) {
443
484
  within: true
444
485
  });
445
486
  let ref = (0, $fUaQ2$useRef)();
446
- let { removeButtonProps: removeButtonProps , labelProps: labelProps , gridCellProps: gridCellProps , rowProps: rowProps } = (0, $fUaQ2$useTag)({
487
+ let { removeButtonProps: removeButtonProps , gridCellProps: gridCellProps , rowProps: rowProps , allowsRemoving: allowsRemoving } = (0, $fUaQ2$useTag)({
447
488
  ...props,
448
- allowsRemoving: allowsRemoving,
449
- item: item,
450
- onRemove: onRemove
489
+ item: item
451
490
  }, state, ref);
452
491
  return /*#__PURE__*/ (0, $fUaQ2$react).createElement("div", {
453
492
  ...(0, $fUaQ2$mergeProps)(rowProps, hoverProps, focusProps),
@@ -468,8 +507,7 @@ function $b5f5ee35d3b6b95c$export$3288d34c523a1192(props) {
468
507
  size: "XS"
469
508
  },
470
509
  text: {
471
- UNSAFE_className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tag-content"),
472
- ...labelProps
510
+ UNSAFE_className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tag-content")
473
511
  },
474
512
  avatar: {
475
513
  UNSAFE_className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tag-avatar"),
@@ -491,32 +529,50 @@ function $b5f5ee35d3b6b95c$var$TagRemoveButton(props) {
491
529
 
492
530
 
493
531
 
494
-
532
+ const $880d112c7a588209$var$TAG_STYLES = {
533
+ medium: {
534
+ height: 24,
535
+ margin: 4
536
+ },
537
+ large: {
538
+ height: 30,
539
+ margin: 5
540
+ }
541
+ };
495
542
  function $880d112c7a588209$var$TagGroup(props, ref) {
496
543
  props = (0, $fUaQ2$useProviderProps)(props);
497
544
  props = (0, $fUaQ2$useFormProps)(props);
498
- let { allowsRemoving: allowsRemoving , onRemove: onRemove , maxRows: maxRows , children: children , actionLabel: actionLabel , onAction: onAction , labelPosition: labelPosition } = props;
545
+ let { maxRows: maxRows , children: children , actionLabel: actionLabel , onAction: onAction , labelPosition: labelPosition , renderEmptyState: renderEmptyState = ()=>stringFormatter.format("noTags") } = props;
499
546
  let domRef = (0, $fUaQ2$useDOMRef)(ref);
500
547
  let containerRef = (0, $fUaQ2$useRef)(null);
501
548
  let tagsRef = (0, $fUaQ2$useRef)(null);
502
549
  let { direction: direction } = (0, $fUaQ2$useLocale)();
503
- let stringFormatter = (0, $fUaQ2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($70cc9ce0ced2eb4a$exports))));
550
+ let { scale: scale } = (0, $fUaQ2$useProvider)();
551
+ let stringFormatter = (0, $fUaQ2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($fd5ee5726b29a200$exports))));
504
552
  let [isCollapsed, setIsCollapsed] = (0, $fUaQ2$useState)(maxRows != null);
505
- let state = (0, $fUaQ2$useTagGroupState)(props);
553
+ let state = (0, $fUaQ2$useListState)(props);
506
554
  let [tagState, setTagState] = (0, $fUaQ2$useValueEffect)({
507
555
  visibleTagCount: state.collection.size,
508
- showCollapseButton: false,
509
- maxHeight: undefined
556
+ showCollapseButton: false
510
557
  });
511
- let keyboardDelegate = (0, $fUaQ2$useMemo)(()=>isCollapsed ? new (0, $fUaQ2$TagKeyboardDelegate)(new (0, $fUaQ2$ListCollection)([
558
+ let keyboardDelegate = (0, $fUaQ2$useMemo)(()=>{
559
+ let collection = isCollapsed ? new (0, $fUaQ2$ListCollection)([
512
560
  ...state.collection
513
- ].slice(0, tagState.visibleTagCount)), direction) : new (0, $fUaQ2$TagKeyboardDelegate)(new (0, $fUaQ2$ListCollection)([
561
+ ].slice(0, tagState.visibleTagCount)) : new (0, $fUaQ2$ListCollection)([
514
562
  ...state.collection
515
- ]), direction), [
563
+ ]);
564
+ return new (0, $fUaQ2$ListKeyboardDelegate)({
565
+ collection: collection,
566
+ ref: domRef,
567
+ direction: direction,
568
+ orientation: "horizontal"
569
+ });
570
+ }, [
516
571
  direction,
517
572
  isCollapsed,
518
573
  state.collection,
519
- tagState.visibleTagCount
574
+ tagState.visibleTagCount,
575
+ domRef
520
576
  ]);
521
577
  // Remove onAction from props so it doesn't make it into useGridList.
522
578
  delete props.onAction;
@@ -525,25 +581,26 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
525
581
  keyboardDelegate: keyboardDelegate
526
582
  }, state, tagsRef);
527
583
  let actionsId = (0, $fUaQ2$useId)();
584
+ let actionsRef = (0, $fUaQ2$useRef)(null);
528
585
  let updateVisibleTagCount = (0, $fUaQ2$useCallback)(()=>{
529
586
  if (maxRows > 0) {
530
587
  let computeVisibleTagCount = ()=>{
531
- var _tags_;
532
588
  // Refs can be null at runtime.
533
589
  let currContainerRef = containerRef.current;
534
590
  let currTagsRef = tagsRef.current;
535
- if (!currContainerRef || !currTagsRef) return;
591
+ let currActionsRef = actionsRef.current;
592
+ if (!currContainerRef || !currTagsRef || !currActionsRef || state.collection.size === 0) return {
593
+ visibleTagCount: 0,
594
+ showCollapseButton: false
595
+ };
596
+ // Count rows and show tags until we hit the maxRows.
536
597
  let tags = [
537
598
  ...currTagsRef.children
538
599
  ];
539
- let buttons = [
540
- ...currContainerRef.parentElement.querySelectorAll("button")
541
- ];
542
600
  let currY = -Infinity;
543
601
  let rowCount = 0;
544
602
  let index = 0;
545
603
  let tagWidths = [];
546
- // Count rows and show tags until we hit the maxRows.
547
604
  for (let tag of tags){
548
605
  let { width: width , y: y } = tag.getBoundingClientRect();
549
606
  if (y !== currY) {
@@ -555,31 +612,33 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
555
612
  index++;
556
613
  }
557
614
  // Remove tags until there is space for the collapse button and action button (if present) on the last row.
558
- let buttonsWidth = buttons.reduce((acc, curr)=>acc += curr.getBoundingClientRect().width, 0);
559
- buttonsWidth += parseInt(window.getComputedStyle(buttons[buttons.length - 1]).marginRight, 10) * 2;
560
- let end = direction === "ltr" ? "right" : "left";
561
- let containerEnd = currContainerRef.parentElement.getBoundingClientRect()[end];
562
- let lastTagEnd = (_tags_ = tags[index - 1]) === null || _tags_ === void 0 ? void 0 : _tags_.getBoundingClientRect()[end];
563
- lastTagEnd += parseInt(window.getComputedStyle(tags[index - 1]).marginRight, 10);
564
- let availableWidth = containerEnd - lastTagEnd;
565
- while(availableWidth < buttonsWidth && index < state.collection.size && index > 0){
566
- availableWidth += tagWidths.pop();
567
- index--;
615
+ let buttons = [
616
+ ...currActionsRef.children
617
+ ];
618
+ if (buttons.length > 0 && rowCount >= maxRows) {
619
+ var _tags_;
620
+ let buttonsWidth = buttons.reduce((acc, curr)=>acc += curr.getBoundingClientRect().width, 0);
621
+ buttonsWidth += $880d112c7a588209$var$TAG_STYLES[scale].margin * 2 * buttons.length;
622
+ let end = direction === "ltr" ? "right" : "left";
623
+ let containerEnd = currContainerRef.parentElement.getBoundingClientRect()[end];
624
+ let lastTagEnd = (_tags_ = tags[index - 1]) === null || _tags_ === void 0 ? void 0 : _tags_.getBoundingClientRect()[end];
625
+ lastTagEnd += $880d112c7a588209$var$TAG_STYLES[scale].margin;
626
+ let availableWidth = containerEnd - lastTagEnd;
627
+ while(availableWidth < buttonsWidth && index > 0){
628
+ availableWidth += tagWidths.pop();
629
+ index--;
630
+ }
568
631
  }
569
- let tagStyle = window.getComputedStyle(tags[0]);
570
- let maxHeight = (parseInt(tagStyle.height, 10) + parseInt(tagStyle.marginTop, 10) * 2) * maxRows;
571
632
  return {
572
- visibleTagCount: index,
573
- showCollapseButton: index < state.collection.size,
574
- maxHeight: maxHeight
633
+ visibleTagCount: Math.max(index, 1),
634
+ showCollapseButton: index < state.collection.size
575
635
  };
576
636
  };
577
637
  setTagState(function*() {
578
638
  // Update to show all items.
579
639
  yield {
580
640
  visibleTagCount: state.collection.size,
581
- showCollapseButton: true,
582
- maxHeight: undefined
641
+ showCollapseButton: true
583
642
  };
584
643
  // Measure, and update to show the items until maxRows is reached.
585
644
  yield computeVisibleTagCount();
@@ -589,6 +648,7 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
589
648
  maxRows,
590
649
  setTagState,
591
650
  direction,
651
+ scale,
592
652
  state.collection.size
593
653
  ]);
594
654
  (0, $fUaQ2$useResizeObserver)({
@@ -605,16 +665,33 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
605
665
  (_document_fonts = document.fonts) === null || _document_fonts === void 0 ? void 0 : _document_fonts.ready.then(()=>updateVisibleTagCount());
606
666
  // eslint-disable-next-line react-hooks/exhaustive-deps
607
667
  }, []);
608
- let visibleTags = [
609
- ...state.collection
610
- ];
611
- if (maxRows != null && isCollapsed) visibleTags = visibleTags.slice(0, tagState.visibleTagCount);
668
+ let visibleTags = (0, $fUaQ2$useMemo)(()=>[
669
+ ...state.collection
670
+ ].slice(0, isCollapsed ? tagState.visibleTagCount : state.collection.size), [
671
+ isCollapsed,
672
+ state.collection,
673
+ tagState.visibleTagCount
674
+ ]);
612
675
  let handlePressCollapse = ()=>{
613
676
  // Prevents button from losing focus if focusedKey got collapsed.
614
677
  state.selectionManager.setFocusedKey(null);
615
678
  setIsCollapsed((prevCollapsed)=>!prevCollapsed);
616
679
  };
617
680
  let showActions = tagState.showCollapseButton || actionLabel && onAction;
681
+ let isEmpty = state.collection.size === 0;
682
+ let containerStyle = (0, $fUaQ2$useMemo)(()=>{
683
+ if (maxRows == null || !isCollapsed || isEmpty) return undefined;
684
+ let maxHeight = ($880d112c7a588209$var$TAG_STYLES[scale].height + $880d112c7a588209$var$TAG_STYLES[scale].margin * 2) * maxRows;
685
+ return {
686
+ maxHeight: maxHeight,
687
+ overflow: "hidden"
688
+ };
689
+ }, [
690
+ isCollapsed,
691
+ maxRows,
692
+ isEmpty,
693
+ scale
694
+ ]);
618
695
  return /*#__PURE__*/ (0, $fUaQ2$react).createElement((0, $fUaQ2$FocusScope), null, /*#__PURE__*/ (0, $fUaQ2$react).createElement((0, $fUaQ2$Field), {
619
696
  ...props,
620
697
  labelProps: labelProps,
@@ -623,16 +700,17 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
623
700
  showErrorIcon: true,
624
701
  ref: domRef,
625
702
  elementType: "span",
626
- UNSAFE_className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tags-fieldWrapper", {
703
+ wrapperClassName: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tags-fieldWrapper", {
627
704
  "spectrum-Tags-fieldWrapper--positionSide": labelPosition === "side"
628
705
  })
629
706
  }, /*#__PURE__*/ (0, $fUaQ2$react).createElement("div", {
630
- style: maxRows != null && tagState.showCollapseButton && isCollapsed ? {
631
- maxHeight: tagState.maxHeight,
632
- overflow: "hidden"
633
- } : undefined,
634
707
  ref: containerRef,
635
- className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tags-container")
708
+ style: containerStyle,
709
+ className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tags-container", {
710
+ "spectrum-Tags-container--empty": isEmpty
711
+ })
712
+ }, /*#__PURE__*/ (0, $fUaQ2$react).createElement((0, $fUaQ2$FocusRing), {
713
+ focusRingClass: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "focus-ring")
636
714
  }, /*#__PURE__*/ (0, $fUaQ2$react).createElement("div", {
637
715
  ref: tagsRef,
638
716
  ...gridProps,
@@ -641,13 +719,14 @@ function $880d112c7a588209$var$TagGroup(props, ref) {
641
719
  ...item.props,
642
720
  key: item.key,
643
721
  item: item,
644
- state: state,
645
- allowsRemoving: allowsRemoving,
646
- onRemove: onRemove
647
- }, item.rendered))), showActions && /*#__PURE__*/ (0, $fUaQ2$react).createElement((0, $fUaQ2$Provider), {
722
+ state: state
723
+ }, item.rendered)), isEmpty && /*#__PURE__*/ (0, $fUaQ2$react).createElement("div", {
724
+ className: (0, $fUaQ2$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c033a7c057e84ef1$exports))), "spectrum-Tags-empty-state")
725
+ }, renderEmptyState()))), showActions && !isEmpty && /*#__PURE__*/ (0, $fUaQ2$react).createElement((0, $fUaQ2$Provider), {
648
726
  isDisabled: false
649
727
  }, /*#__PURE__*/ (0, $fUaQ2$react).createElement("div", {
650
728
  role: "group",
729
+ ref: actionsRef,
651
730
  id: actionsId,
652
731
  "aria-label": stringFormatter.format("actions"),
653
732
  "aria-labelledby": `${gridProps.id} ${actionsId}`,