@react-spectrum/tag 3.0.0-nightly.2064 → 3.0.0-nightly.2085
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 +61 -74
- package/dist/main.css +1 -1
- package/dist/main.js +61 -74
- package/dist/main.js.map +1 -1
- package/dist/module.js +61 -74
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/Tag.tsx +2 -2
- package/src/TagGroup.tsx +20 -14
package/dist/main.js
CHANGED
|
@@ -54,7 +54,7 @@ var $e4833c69a6a8a469$exports = {};
|
|
|
54
54
|
$e4833c69a6a8a469$exports = {
|
|
55
55
|
"actions": `الإجراءات`,
|
|
56
56
|
"hideButtonLabel": `إظهار أقل`,
|
|
57
|
-
"showAllButtonLabel": (args)=>`إظهار الكل (${args.tagCount})`
|
|
57
|
+
"showAllButtonLabel": (args, formatter)=>`إظهار الكل (${formatter.number(args.tagCount)})`
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ var $9b536cac3e0b637e$exports = {};
|
|
|
62
62
|
$9b536cac3e0b637e$exports = {
|
|
63
63
|
"actions": `Действия`,
|
|
64
64
|
"hideButtonLabel": `Показване на по-малко`,
|
|
65
|
-
"showAllButtonLabel": (args)=>`Показване на всички (${args.tagCount})`
|
|
65
|
+
"showAllButtonLabel": (args, formatter)=>`Показване на всички (${formatter.number(args.tagCount)})`
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ var $06ebf46bd7a639dd$exports = {};
|
|
|
70
70
|
$06ebf46bd7a639dd$exports = {
|
|
71
71
|
"actions": `Akce`,
|
|
72
72
|
"hideButtonLabel": `Zobrazit méně`,
|
|
73
|
-
"showAllButtonLabel": (args)=>`Zobrazit vše (${args.tagCount})`
|
|
73
|
+
"showAllButtonLabel": (args, formatter)=>`Zobrazit vše (${formatter.number(args.tagCount)})`
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ var $d0c8889aa143e531$exports = {};
|
|
|
78
78
|
$d0c8889aa143e531$exports = {
|
|
79
79
|
"actions": `Handlinger`,
|
|
80
80
|
"hideButtonLabel": `Vis mindre`,
|
|
81
|
-
"showAllButtonLabel": (args)=>`Vis alle (${args.tagCount})`
|
|
81
|
+
"showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ var $09f15015489dc476$exports = {};
|
|
|
86
86
|
$09f15015489dc476$exports = {
|
|
87
87
|
"actions": `Aktionen`,
|
|
88
88
|
"hideButtonLabel": `Weniger zeigen`,
|
|
89
|
-
"showAllButtonLabel": (args)=>`Alle anzeigen (${args.tagCount})`
|
|
89
|
+
"showAllButtonLabel": (args, formatter)=>`Alle anzeigen (${formatter.number(args.tagCount)})`
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
|
|
@@ -94,13 +94,13 @@ var $ec81f332ee1bb67a$exports = {};
|
|
|
94
94
|
$ec81f332ee1bb67a$exports = {
|
|
95
95
|
"actions": `Ενέργειες`,
|
|
96
96
|
"hideButtonLabel": `Εμφάνιση λιγότερων`,
|
|
97
|
-
"showAllButtonLabel": (args)=>`Εμφάνιση όλων (${args.tagCount})`
|
|
97
|
+
"showAllButtonLabel": (args, formatter)=>`Εμφάνιση όλων (${formatter.number(args.tagCount)})`
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
var $a5d4273001869f16$exports = {};
|
|
102
102
|
$a5d4273001869f16$exports = {
|
|
103
|
-
"showAllButtonLabel": (args)=>`Show all (${args.tagCount})`,
|
|
103
|
+
"showAllButtonLabel": (args, formatter)=>`Show all (${formatter.number(args.tagCount)})`,
|
|
104
104
|
"hideButtonLabel": `Show less`,
|
|
105
105
|
"actions": `Actions`
|
|
106
106
|
};
|
|
@@ -110,7 +110,7 @@ var $355c19ee0d058106$exports = {};
|
|
|
110
110
|
$355c19ee0d058106$exports = {
|
|
111
111
|
"actions": `Acciones`,
|
|
112
112
|
"hideButtonLabel": `Mostrar menos`,
|
|
113
|
-
"showAllButtonLabel": (args)=>`Mostrar todo (${args.tagCount})`
|
|
113
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar todo (${formatter.number(args.tagCount)})`
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
|
|
@@ -118,7 +118,7 @@ var $94d247b24eb969ef$exports = {};
|
|
|
118
118
|
$94d247b24eb969ef$exports = {
|
|
119
119
|
"actions": `Toimingud`,
|
|
120
120
|
"hideButtonLabel": `Kuva vähem`,
|
|
121
|
-
"showAllButtonLabel": (args)=>`Kuva kõik (${args.tagCount})`
|
|
121
|
+
"showAllButtonLabel": (args, formatter)=>`Kuva kõik (${formatter.number(args.tagCount)})`
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ var $fe04eda9b3e92668$exports = {};
|
|
|
126
126
|
$fe04eda9b3e92668$exports = {
|
|
127
127
|
"actions": `Toiminnot`,
|
|
128
128
|
"hideButtonLabel": `Näytä vähemmän`,
|
|
129
|
-
"showAllButtonLabel": (args)=>`Näytä kaikki (${args.tagCount})`
|
|
129
|
+
"showAllButtonLabel": (args, formatter)=>`Näytä kaikki (${formatter.number(args.tagCount)})`
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
|
|
@@ -134,7 +134,7 @@ var $8c0ca11f9a10e544$exports = {};
|
|
|
134
134
|
$8c0ca11f9a10e544$exports = {
|
|
135
135
|
"actions": `Actions`,
|
|
136
136
|
"hideButtonLabel": `Afficher moins`,
|
|
137
|
-
"showAllButtonLabel": (args)=>`Tout afficher (${args.tagCount})`
|
|
137
|
+
"showAllButtonLabel": (args, formatter)=>`Tout afficher (${formatter.number(args.tagCount)})`
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
|
|
@@ -142,7 +142,7 @@ var $5cf885b76293f7ea$exports = {};
|
|
|
142
142
|
$5cf885b76293f7ea$exports = {
|
|
143
143
|
"actions": `פעולות`,
|
|
144
144
|
"hideButtonLabel": `הצג פחות`,
|
|
145
|
-
"showAllButtonLabel": (args)=>`הצג הכל (${args.tagCount})`
|
|
145
|
+
"showAllButtonLabel": (args, formatter)=>`הצג הכל (${formatter.number(args.tagCount)})`
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
|
|
@@ -150,7 +150,7 @@ var $26efb27e85fe3886$exports = {};
|
|
|
150
150
|
$26efb27e85fe3886$exports = {
|
|
151
151
|
"actions": `Radnje`,
|
|
152
152
|
"hideButtonLabel": `Prikaži manje`,
|
|
153
|
-
"showAllButtonLabel": (args)=>`Prikaži sve (${args.tagCount})`
|
|
153
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
|
|
@@ -158,7 +158,7 @@ var $5afbffe322be4f78$exports = {};
|
|
|
158
158
|
$5afbffe322be4f78$exports = {
|
|
159
159
|
"actions": `Műveletek`,
|
|
160
160
|
"hideButtonLabel": `Mutass kevesebbet`,
|
|
161
|
-
"showAllButtonLabel": (args)=>`Összes megjelenítése (${args.tagCount})`
|
|
161
|
+
"showAllButtonLabel": (args, formatter)=>`Összes megjelenítése (${formatter.number(args.tagCount)})`
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
|
|
@@ -166,7 +166,7 @@ var $e2e8477c50691c5a$exports = {};
|
|
|
166
166
|
$e2e8477c50691c5a$exports = {
|
|
167
167
|
"actions": `Azioni`,
|
|
168
168
|
"hideButtonLabel": `Mostra meno`,
|
|
169
|
-
"showAllButtonLabel": (args)=>`Mostra tutto (${args.tagCount})`
|
|
169
|
+
"showAllButtonLabel": (args, formatter)=>`Mostra tutto (${formatter.number(args.tagCount)})`
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@ var $aa322e153c7fc6cf$exports = {};
|
|
|
174
174
|
$aa322e153c7fc6cf$exports = {
|
|
175
175
|
"actions": `アクション`,
|
|
176
176
|
"hideButtonLabel": `表示を減らす`,
|
|
177
|
-
"showAllButtonLabel": (args)=>`(${args.tagCount}) 個をすべて表示`
|
|
177
|
+
"showAllButtonLabel": (args, formatter)=>`(${formatter.number(args.tagCount)}) 個をすべて表示`
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
|
|
@@ -182,7 +182,7 @@ var $ef5171b4e7fef8b6$exports = {};
|
|
|
182
182
|
$ef5171b4e7fef8b6$exports = {
|
|
183
183
|
"actions": `액션`,
|
|
184
184
|
"hideButtonLabel": `간단히 표시`,
|
|
185
|
-
"showAllButtonLabel": (args)=>`모두 표시 (${args.tagCount})`
|
|
185
|
+
"showAllButtonLabel": (args, formatter)=>`모두 표시 (${formatter.number(args.tagCount)})`
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
|
|
@@ -190,7 +190,7 @@ var $11cf3f21588c59d5$exports = {};
|
|
|
190
190
|
$11cf3f21588c59d5$exports = {
|
|
191
191
|
"actions": `Veiksmai`,
|
|
192
192
|
"hideButtonLabel": `Rodyti mažiau`,
|
|
193
|
-
"showAllButtonLabel": (args)=>`Rodyti viską (${args.tagCount})`
|
|
193
|
+
"showAllButtonLabel": (args, formatter)=>`Rodyti viską (${formatter.number(args.tagCount)})`
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
|
|
@@ -198,7 +198,7 @@ var $7798af2d0360d513$exports = {};
|
|
|
198
198
|
$7798af2d0360d513$exports = {
|
|
199
199
|
"actions": `Darbības`,
|
|
200
200
|
"hideButtonLabel": `Rādīt mazāk`,
|
|
201
|
-
"showAllButtonLabel": (args)=>`Rādīt visu (${args.tagCount})`
|
|
201
|
+
"showAllButtonLabel": (args, formatter)=>`Rādīt visu (${formatter.number(args.tagCount)})`
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
|
|
@@ -206,7 +206,7 @@ var $36fbb928ae891fff$exports = {};
|
|
|
206
206
|
$36fbb928ae891fff$exports = {
|
|
207
207
|
"actions": `Handlinger`,
|
|
208
208
|
"hideButtonLabel": `Vis mindre`,
|
|
209
|
-
"showAllButtonLabel": (args)=>`Vis alle (${args.tagCount})`
|
|
209
|
+
"showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
|
|
@@ -214,7 +214,7 @@ var $64f658e8416b1edc$exports = {};
|
|
|
214
214
|
$64f658e8416b1edc$exports = {
|
|
215
215
|
"actions": `Acties`,
|
|
216
216
|
"hideButtonLabel": `Minder weergeven`,
|
|
217
|
-
"showAllButtonLabel": (args)=>`Alles weergeven (${args.tagCount})`
|
|
217
|
+
"showAllButtonLabel": (args, formatter)=>`Alles weergeven (${formatter.number(args.tagCount)})`
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
|
|
@@ -222,7 +222,7 @@ var $d83dc3596c86b9b1$exports = {};
|
|
|
222
222
|
$d83dc3596c86b9b1$exports = {
|
|
223
223
|
"actions": `Działania`,
|
|
224
224
|
"hideButtonLabel": `Wyświetl mniej`,
|
|
225
|
-
"showAllButtonLabel": (args)=>`Wyświetl wszystkie (${args.tagCount})`
|
|
225
|
+
"showAllButtonLabel": (args, formatter)=>`Wyświetl wszystkie (${formatter.number(args.tagCount)})`
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
|
|
@@ -230,7 +230,7 @@ var $f05393b8526809a5$exports = {};
|
|
|
230
230
|
$f05393b8526809a5$exports = {
|
|
231
231
|
"actions": `Ações`,
|
|
232
232
|
"hideButtonLabel": `Mostrar menos`,
|
|
233
|
-
"showAllButtonLabel": (args)=>`Mostrar todos (${args.tagCount})`
|
|
233
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar todos (${formatter.number(args.tagCount)})`
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
|
|
@@ -238,7 +238,7 @@ var $d7b3c6e34da453ec$exports = {};
|
|
|
238
238
|
$d7b3c6e34da453ec$exports = {
|
|
239
239
|
"actions": `Ações`,
|
|
240
240
|
"hideButtonLabel": `Mostrar menos`,
|
|
241
|
-
"showAllButtonLabel": (args)=>`Mostrar tudo (${args.tagCount})`
|
|
241
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar tudo (${formatter.number(args.tagCount)})`
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
|
|
@@ -246,7 +246,7 @@ var $671c8a587799a566$exports = {};
|
|
|
246
246
|
$671c8a587799a566$exports = {
|
|
247
247
|
"actions": `Acțiuni`,
|
|
248
248
|
"hideButtonLabel": `Se afișează mai puțin`,
|
|
249
|
-
"showAllButtonLabel": (args)=>`Se afișează tot (${args.tagCount})`
|
|
249
|
+
"showAllButtonLabel": (args, formatter)=>`Se afișează tot (${formatter.number(args.tagCount)})`
|
|
250
250
|
};
|
|
251
251
|
|
|
252
252
|
|
|
@@ -254,7 +254,7 @@ var $f7d5f2f6333669ae$exports = {};
|
|
|
254
254
|
$f7d5f2f6333669ae$exports = {
|
|
255
255
|
"actions": `Действия`,
|
|
256
256
|
"hideButtonLabel": `Показать меньше`,
|
|
257
|
-
"showAllButtonLabel": (args)=>`Показать все (${args.tagCount})`
|
|
257
|
+
"showAllButtonLabel": (args, formatter)=>`Показать все (${formatter.number(args.tagCount)})`
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
|
|
@@ -262,7 +262,7 @@ var $6872c5a06d3d5bd6$exports = {};
|
|
|
262
262
|
$6872c5a06d3d5bd6$exports = {
|
|
263
263
|
"actions": `Akcie`,
|
|
264
264
|
"hideButtonLabel": `Zobraziť menej`,
|
|
265
|
-
"showAllButtonLabel": (args)=>`Zobraziť všetko (${args.tagCount})`
|
|
265
|
+
"showAllButtonLabel": (args, formatter)=>`Zobraziť všetko (${formatter.number(args.tagCount)})`
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
|
|
@@ -270,7 +270,7 @@ var $8d44aaec5d910562$exports = {};
|
|
|
270
270
|
$8d44aaec5d910562$exports = {
|
|
271
271
|
"actions": `Dejanja`,
|
|
272
272
|
"hideButtonLabel": `Prikaži manj`,
|
|
273
|
-
"showAllButtonLabel": (args)=>`Prikaži vse (${args.tagCount})`
|
|
273
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaži vse (${formatter.number(args.tagCount)})`
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
|
|
@@ -278,7 +278,7 @@ var $48a1f90aac47b13f$exports = {};
|
|
|
278
278
|
$48a1f90aac47b13f$exports = {
|
|
279
279
|
"actions": `Radnje`,
|
|
280
280
|
"hideButtonLabel": `Prikaži manje`,
|
|
281
|
-
"showAllButtonLabel": (args)=>`Prikaži sve (${args.tagCount})`
|
|
281
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
|
|
@@ -286,7 +286,7 @@ var $e67f8d08ca5a16ce$exports = {};
|
|
|
286
286
|
$e67f8d08ca5a16ce$exports = {
|
|
287
287
|
"actions": `Åtgärder`,
|
|
288
288
|
"hideButtonLabel": `Visa mindre`,
|
|
289
|
-
"showAllButtonLabel": (args)=>`Visa allt (${args.tagCount})`
|
|
289
|
+
"showAllButtonLabel": (args, formatter)=>`Visa allt (${formatter.number(args.tagCount)})`
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
|
|
@@ -294,7 +294,7 @@ var $dfe98dff52c184ea$exports = {};
|
|
|
294
294
|
$dfe98dff52c184ea$exports = {
|
|
295
295
|
"actions": `Eylemler`,
|
|
296
296
|
"hideButtonLabel": `Daha az göster`,
|
|
297
|
-
"showAllButtonLabel": (args)=>`Tümünü göster (${args.tagCount})`
|
|
297
|
+
"showAllButtonLabel": (args, formatter)=>`Tümünü göster (${formatter.number(args.tagCount)})`
|
|
298
298
|
};
|
|
299
299
|
|
|
300
300
|
|
|
@@ -302,7 +302,7 @@ var $ba516e0f6c423a4a$exports = {};
|
|
|
302
302
|
$ba516e0f6c423a4a$exports = {
|
|
303
303
|
"actions": `Дії`,
|
|
304
304
|
"hideButtonLabel": `Показувати менше`,
|
|
305
|
-
"showAllButtonLabel": (args)=>`Показати всі (${args.tagCount})`
|
|
305
|
+
"showAllButtonLabel": (args, formatter)=>`Показати всі (${formatter.number(args.tagCount)})`
|
|
306
306
|
};
|
|
307
307
|
|
|
308
308
|
|
|
@@ -310,7 +310,7 @@ var $7c2f3cb525451680$exports = {};
|
|
|
310
310
|
$7c2f3cb525451680$exports = {
|
|
311
311
|
"actions": `操作`,
|
|
312
312
|
"hideButtonLabel": `显示更少`,
|
|
313
|
-
"showAllButtonLabel": (args)=>`显示全部 (${args.tagCount})`
|
|
313
|
+
"showAllButtonLabel": (args, formatter)=>`显示全部 (${formatter.number(args.tagCount)})`
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
|
|
@@ -318,7 +318,7 @@ var $00b7e0167640331e$exports = {};
|
|
|
318
318
|
$00b7e0167640331e$exports = {
|
|
319
319
|
"actions": `動作`,
|
|
320
320
|
"hideButtonLabel": `顯示較少`,
|
|
321
|
-
"showAllButtonLabel": (args)=>`顯示全部 (${args.tagCount})`
|
|
321
|
+
"showAllButtonLabel": (args, formatter)=>`顯示全部 (${formatter.number(args.tagCount)})`
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
|
|
@@ -365,7 +365,7 @@ $d97f7dfcca827852$exports = {
|
|
|
365
365
|
|
|
366
366
|
var $ed889f8f1f091fc8$exports = {};
|
|
367
367
|
|
|
368
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-
|
|
368
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag", () => $ed889f8f1f091fc8$export$6174bd1d20b4c022, (v) => $ed889f8f1f091fc8$export$6174bd1d20b4c022 = v);
|
|
369
369
|
$parcel$export($ed889f8f1f091fc8$exports, "focus-ring", () => $ed889f8f1f091fc8$export$f39a09f249340e2a, (v) => $ed889f8f1f091fc8$export$f39a09f249340e2a = v);
|
|
370
370
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags", () => $ed889f8f1f091fc8$export$eb7e80013a1212da, (v) => $ed889f8f1f091fc8$export$eb7e80013a1212da = v);
|
|
371
371
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-container", () => $ed889f8f1f091fc8$export$3300169c5d27fe96, (v) => $ed889f8f1f091fc8$export$3300169c5d27fe96 = v);
|
|
@@ -375,21 +375,14 @@ $parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-cell", () => $ed889f8f1f
|
|
|
375
375
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-icon", () => $ed889f8f1f091fc8$export$21f5254139e14871, (v) => $ed889f8f1f091fc8$export$21f5254139e14871 = v);
|
|
376
376
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-avatar", () => $ed889f8f1f091fc8$export$7b57f5221a1b5306, (v) => $ed889f8f1f091fc8$export$7b57f5221a1b5306 = v);
|
|
377
377
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-content", () => $ed889f8f1f091fc8$export$d281c967f4ee071e, (v) => $ed889f8f1f091fc8$export$d281c967f4ee071e = v);
|
|
378
|
-
$parcel$export($ed889f8f1f091fc8$exports, "
|
|
378
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag--removable", () => $ed889f8f1f091fc8$export$87165794583be111, (v) => $ed889f8f1f091fc8$export$87165794583be111 = v);
|
|
379
379
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-actions", () => $ed889f8f1f091fc8$export$8afaa02110915bbb, (v) => $ed889f8f1f091fc8$export$8afaa02110915bbb = v);
|
|
380
380
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-actionButton", () => $ed889f8f1f091fc8$export$e6882f8db018e3bd, (v) => $ed889f8f1f091fc8$export$e6882f8db018e3bd = v);
|
|
381
381
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-fieldWrapper", () => $ed889f8f1f091fc8$export$c9b7ca327d69b2b5, (v) => $ed889f8f1f091fc8$export$c9b7ca327d69b2b5 = v);
|
|
382
382
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-fieldWrapper--positionSide", () => $ed889f8f1f091fc8$export$a7c11d4acc244e09, (v) => $ed889f8f1f091fc8$export$a7c11d4acc244e09 = v);
|
|
383
383
|
$parcel$export($ed889f8f1f091fc8$exports, "is-hovered", () => $ed889f8f1f091fc8$export$b8813cd5d7824ce7, (v) => $ed889f8f1f091fc8$export$b8813cd5d7824ce7 = v);
|
|
384
|
-
$parcel$export($ed889f8f1f091fc8$exports, "is-selected", () => $ed889f8f1f091fc8$export$1e0fb04f31d3c22a, (v) => $ed889f8f1f091fc8$export$1e0fb04f31d3c22a = v);
|
|
385
|
-
$parcel$export($ed889f8f1f091fc8$exports, "is-invalid", () => $ed889f8f1f091fc8$export$14a30de2866685fa, (v) => $ed889f8f1f091fc8$export$14a30de2866685fa = v);
|
|
386
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemIcon", () => $ed889f8f1f091fc8$export$8c615c557fdf3d9c, (v) => $ed889f8f1f091fc8$export$8c615c557fdf3d9c = v);
|
|
387
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemLabel", () => $ed889f8f1f091fc8$export$23caf26adee41b84, (v) => $ed889f8f1f091fc8$export$23caf26adee41b84 = v);
|
|
388
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemClearButton", () => $ed889f8f1f091fc8$export$90881dd581d6be55, (v) => $ed889f8f1f091fc8$export$90881dd581d6be55 = v);
|
|
389
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Avatar", () => $ed889f8f1f091fc8$export$2e049b8d031600fb, (v) => $ed889f8f1f091fc8$export$2e049b8d031600fb = v);
|
|
390
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-item--removable", () => $ed889f8f1f091fc8$export$c1666977f4e14f87, (v) => $ed889f8f1f091fc8$export$c1666977f4e14f87 = v);
|
|
391
384
|
$parcel$export($ed889f8f1f091fc8$exports, "is-focused", () => $ed889f8f1f091fc8$export$e7dc768d35940237, (v) => $ed889f8f1f091fc8$export$e7dc768d35940237 = v);
|
|
392
|
-
var $ed889f8f1f091fc8$export$
|
|
385
|
+
var $ed889f8f1f091fc8$export$6174bd1d20b4c022;
|
|
393
386
|
var $ed889f8f1f091fc8$export$f39a09f249340e2a;
|
|
394
387
|
var $ed889f8f1f091fc8$export$eb7e80013a1212da;
|
|
395
388
|
var $ed889f8f1f091fc8$export$3300169c5d27fe96;
|
|
@@ -399,21 +392,14 @@ var $ed889f8f1f091fc8$export$9c4fd4d7faada408;
|
|
|
399
392
|
var $ed889f8f1f091fc8$export$21f5254139e14871;
|
|
400
393
|
var $ed889f8f1f091fc8$export$7b57f5221a1b5306;
|
|
401
394
|
var $ed889f8f1f091fc8$export$d281c967f4ee071e;
|
|
402
|
-
var $ed889f8f1f091fc8$export$
|
|
395
|
+
var $ed889f8f1f091fc8$export$87165794583be111;
|
|
403
396
|
var $ed889f8f1f091fc8$export$8afaa02110915bbb;
|
|
404
397
|
var $ed889f8f1f091fc8$export$e6882f8db018e3bd;
|
|
405
398
|
var $ed889f8f1f091fc8$export$c9b7ca327d69b2b5;
|
|
406
399
|
var $ed889f8f1f091fc8$export$a7c11d4acc244e09;
|
|
407
400
|
var $ed889f8f1f091fc8$export$b8813cd5d7824ce7;
|
|
408
|
-
var $ed889f8f1f091fc8$export$1e0fb04f31d3c22a;
|
|
409
|
-
var $ed889f8f1f091fc8$export$14a30de2866685fa;
|
|
410
|
-
var $ed889f8f1f091fc8$export$8c615c557fdf3d9c;
|
|
411
|
-
var $ed889f8f1f091fc8$export$23caf26adee41b84;
|
|
412
|
-
var $ed889f8f1f091fc8$export$90881dd581d6be55;
|
|
413
|
-
var $ed889f8f1f091fc8$export$2e049b8d031600fb;
|
|
414
|
-
var $ed889f8f1f091fc8$export$c1666977f4e14f87;
|
|
415
401
|
var $ed889f8f1f091fc8$export$e7dc768d35940237;
|
|
416
|
-
$ed889f8f1f091fc8$export$
|
|
402
|
+
$ed889f8f1f091fc8$export$6174bd1d20b4c022 = "spectrum-Tag_8407eb";
|
|
417
403
|
$ed889f8f1f091fc8$export$f39a09f249340e2a = "focus-ring_8407eb";
|
|
418
404
|
$ed889f8f1f091fc8$export$eb7e80013a1212da = "spectrum-Tags_8407eb";
|
|
419
405
|
$ed889f8f1f091fc8$export$3300169c5d27fe96 = "spectrum-Tags-container_8407eb";
|
|
@@ -423,19 +409,12 @@ $ed889f8f1f091fc8$export$9c4fd4d7faada408 = "spectrum-Tag-cell_8407eb";
|
|
|
423
409
|
$ed889f8f1f091fc8$export$21f5254139e14871 = "spectrum-Tag-icon_8407eb";
|
|
424
410
|
$ed889f8f1f091fc8$export$7b57f5221a1b5306 = "spectrum-Tag-avatar_8407eb";
|
|
425
411
|
$ed889f8f1f091fc8$export$d281c967f4ee071e = "spectrum-Tag-content_8407eb";
|
|
426
|
-
$ed889f8f1f091fc8$export$
|
|
412
|
+
$ed889f8f1f091fc8$export$87165794583be111 = "spectrum-Tag--removable_8407eb";
|
|
427
413
|
$ed889f8f1f091fc8$export$8afaa02110915bbb = "spectrum-Tags-actions_8407eb";
|
|
428
414
|
$ed889f8f1f091fc8$export$e6882f8db018e3bd = "spectrum-Tags-actionButton_8407eb";
|
|
429
415
|
$ed889f8f1f091fc8$export$c9b7ca327d69b2b5 = "spectrum-Tags-fieldWrapper_8407eb";
|
|
430
416
|
$ed889f8f1f091fc8$export$a7c11d4acc244e09 = "spectrum-Tags-fieldWrapper--positionSide_8407eb";
|
|
431
417
|
$ed889f8f1f091fc8$export$b8813cd5d7824ce7 = "is-hovered_8407eb";
|
|
432
|
-
$ed889f8f1f091fc8$export$1e0fb04f31d3c22a = "is-selected_8407eb";
|
|
433
|
-
$ed889f8f1f091fc8$export$14a30de2866685fa = "is-invalid_8407eb";
|
|
434
|
-
$ed889f8f1f091fc8$export$8c615c557fdf3d9c = "spectrum-Tags-itemIcon_8407eb";
|
|
435
|
-
$ed889f8f1f091fc8$export$23caf26adee41b84 = "spectrum-Tags-itemLabel_8407eb";
|
|
436
|
-
$ed889f8f1f091fc8$export$90881dd581d6be55 = "spectrum-Tags-itemClearButton_8407eb";
|
|
437
|
-
$ed889f8f1f091fc8$export$2e049b8d031600fb = "spectrum-Avatar_8407eb";
|
|
438
|
-
$ed889f8f1f091fc8$export$c1666977f4e14f87 = "spectrum-Tags-item--removable_8407eb";
|
|
439
418
|
$ed889f8f1f091fc8$export$e7dc768d35940237 = "is-focused_8407eb";
|
|
440
419
|
|
|
441
420
|
|
|
@@ -476,11 +455,11 @@ function $dd2c5d00108c1840$export$3288d34c523a1192(props) {
|
|
|
476
455
|
}, state, ref);
|
|
477
456
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
478
457
|
...(0, $dTV3V$reactariautils.mergeProps)(rowProps, hoverProps, focusProps),
|
|
479
|
-
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-
|
|
458
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag", {
|
|
480
459
|
"focus-ring": isFocusVisible,
|
|
481
460
|
"is-focused": isFocused,
|
|
482
461
|
"is-hovered": isHovered,
|
|
483
|
-
"
|
|
462
|
+
"spectrum-Tag--removable": allowsRemoving
|
|
484
463
|
}, styleProps.className),
|
|
485
464
|
ref: ref
|
|
486
465
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
@@ -530,7 +509,8 @@ function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
|
530
509
|
let state = (0, $dTV3V$reactstatelytag.useTagGroupState)(props);
|
|
531
510
|
let [tagState, setTagState] = (0, $dTV3V$reactariautils.useValueEffect)({
|
|
532
511
|
visibleTagCount: state.collection.size,
|
|
533
|
-
showCollapseButton: false
|
|
512
|
+
showCollapseButton: false,
|
|
513
|
+
maxHeight: undefined
|
|
534
514
|
});
|
|
535
515
|
let keyboardDelegate = (0, $dTV3V$react.useMemo)(()=>isCollapsed ? new (0, $dTV3V$reactariatag.TagKeyboardDelegate)(new (0, $dTV3V$reactstatelylist.ListCollection)([
|
|
536
516
|
...state.collection
|
|
@@ -554,10 +534,9 @@ function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
|
554
534
|
let computeVisibleTagCount = ()=>{
|
|
555
535
|
var _tags_;
|
|
556
536
|
// Refs can be null at runtime.
|
|
557
|
-
let currDomRef = domRef.current;
|
|
558
537
|
let currContainerRef = containerRef.current;
|
|
559
538
|
let currTagsRef = tagsRef.current;
|
|
560
|
-
if (!
|
|
539
|
+
if (!currContainerRef || !currTagsRef) return;
|
|
561
540
|
let tags = [
|
|
562
541
|
...currTagsRef.children
|
|
563
542
|
];
|
|
@@ -581,25 +560,30 @@ function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
|
581
560
|
}
|
|
582
561
|
// Remove tags until there is space for the collapse button and action button (if present) on the last row.
|
|
583
562
|
let buttonsWidth = buttons.reduce((acc, curr)=>acc += curr.getBoundingClientRect().width, 0);
|
|
563
|
+
buttonsWidth += parseInt(window.getComputedStyle(buttons[buttons.length - 1]).marginRight, 10) * 2;
|
|
584
564
|
let end = direction === "ltr" ? "right" : "left";
|
|
585
|
-
let containerEnd = currContainerRef.getBoundingClientRect()[end];
|
|
565
|
+
let containerEnd = currContainerRef.parentElement.getBoundingClientRect()[end];
|
|
586
566
|
let lastTagEnd = (_tags_ = tags[index - 1]) === null || _tags_ === void 0 ? void 0 : _tags_.getBoundingClientRect()[end];
|
|
567
|
+
lastTagEnd += parseInt(window.getComputedStyle(tags[index - 1]).marginRight, 10);
|
|
587
568
|
let availableWidth = containerEnd - lastTagEnd;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
availableWidth += tagWidth;
|
|
569
|
+
while(availableWidth < buttonsWidth && index < state.collection.size && index > 0){
|
|
570
|
+
availableWidth += tagWidths.pop();
|
|
591
571
|
index--;
|
|
592
572
|
}
|
|
573
|
+
let tagStyle = window.getComputedStyle(tags[0]);
|
|
574
|
+
let maxHeight = (parseInt(tagStyle.height, 10) + parseInt(tagStyle.marginTop, 10) * 2) * maxRows;
|
|
593
575
|
return {
|
|
594
576
|
visibleTagCount: index,
|
|
595
|
-
showCollapseButton: index < state.collection.size
|
|
577
|
+
showCollapseButton: index < state.collection.size,
|
|
578
|
+
maxHeight: maxHeight
|
|
596
579
|
};
|
|
597
580
|
};
|
|
598
581
|
setTagState(function*() {
|
|
599
582
|
// Update to show all items.
|
|
600
583
|
yield {
|
|
601
584
|
visibleTagCount: state.collection.size,
|
|
602
|
-
showCollapseButton: true
|
|
585
|
+
showCollapseButton: true,
|
|
586
|
+
maxHeight: undefined
|
|
603
587
|
};
|
|
604
588
|
// Measure, and update to show the items until maxRows is reached.
|
|
605
589
|
yield computeVisibleTagCount();
|
|
@@ -608,12 +592,11 @@ function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
|
608
592
|
}, [
|
|
609
593
|
maxRows,
|
|
610
594
|
setTagState,
|
|
611
|
-
domRef,
|
|
612
595
|
direction,
|
|
613
596
|
state.collection.size
|
|
614
597
|
]);
|
|
615
598
|
(0, $dTV3V$reactariautils.useResizeObserver)({
|
|
616
|
-
ref:
|
|
599
|
+
ref: containerRef,
|
|
617
600
|
onResize: updateVisibleTagCount
|
|
618
601
|
});
|
|
619
602
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -648,6 +631,10 @@ function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
|
648
631
|
"spectrum-Tags-fieldWrapper--positionSide": labelPosition === "side"
|
|
649
632
|
})
|
|
650
633
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
634
|
+
style: maxRows != null && tagState.showCollapseButton && isCollapsed ? {
|
|
635
|
+
maxHeight: tagState.maxHeight,
|
|
636
|
+
overflow: "hidden"
|
|
637
|
+
} : undefined,
|
|
651
638
|
ref: containerRef,
|
|
652
639
|
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-container")
|
|
653
640
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|