@react-spectrum/tag 3.0.0-nightly.3180 → 3.0.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 +755 -0
- package/dist/main.css +1 -1
- package/dist/main.js +675 -194
- package/dist/main.js.map +1 -1
- package/dist/module.js +674 -179
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +14 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -20
- package/src/Tag.tsx +34 -46
- package/src/TagGroup.tsx +252 -93
- package/src/index.ts +3 -3
package/dist/main.js
CHANGED
|
@@ -1,106 +1,475 @@
|
|
|
1
1
|
require("./main.css");
|
|
2
|
-
var $dTV3V$
|
|
3
|
-
var $dTV3V$
|
|
4
|
-
var $dTV3V$reactariautils = require("@react-aria/utils");
|
|
5
|
-
var $dTV3V$react = require("react");
|
|
2
|
+
var $dTV3V$reactstatelycollections = require("@react-stately/collections");
|
|
3
|
+
var $dTV3V$reactspectrumbutton = require("@react-spectrum/button");
|
|
6
4
|
var $dTV3V$reactariatag = require("@react-aria/tag");
|
|
7
|
-
var $dTV3V$
|
|
5
|
+
var $dTV3V$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
+
var $dTV3V$reactspectrumlabel = require("@react-spectrum/label");
|
|
7
|
+
var $dTV3V$reactariafocus = require("@react-aria/focus");
|
|
8
8
|
var $dTV3V$reactstatelylist = require("@react-stately/list");
|
|
9
|
-
var $dTV3V$
|
|
9
|
+
var $dTV3V$reactariaselection = require("@react-aria/selection");
|
|
10
10
|
var $dTV3V$reactspectrumprovider = require("@react-spectrum/provider");
|
|
11
|
-
var $dTV3V$
|
|
11
|
+
var $dTV3V$react = require("react");
|
|
12
|
+
var $dTV3V$reactspectrumform = require("@react-spectrum/form");
|
|
13
|
+
var $dTV3V$reactariautils = require("@react-aria/utils");
|
|
14
|
+
var $dTV3V$reactariai18n = require("@react-aria/i18n");
|
|
12
15
|
var $dTV3V$reactspectrumtext = require("@react-spectrum/text");
|
|
13
|
-
var $dTV3V$reactariafocus = require("@react-aria/focus");
|
|
14
16
|
var $dTV3V$reactariainteractions = require("@react-aria/interactions");
|
|
15
17
|
|
|
16
|
-
function $parcel$
|
|
17
|
-
Object.
|
|
18
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
Object.defineProperty(dest, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return source[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
return dest;
|
|
18
|
+
function $parcel$export(e, n, v, s) {
|
|
19
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
31
20
|
}
|
|
32
21
|
function $parcel$interopDefault(a) {
|
|
33
22
|
return a && a.__esModule ? a.default : a;
|
|
34
23
|
}
|
|
35
|
-
function $parcel$export(e, n, v, s) {
|
|
36
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
37
|
-
}
|
|
38
|
-
var $e7b72d8874e98cd4$exports = {};
|
|
39
24
|
|
|
40
|
-
$parcel$export(
|
|
25
|
+
$parcel$export(module.exports, "TagGroup", () => $e7b72d8874e98cd4$export$67ea30858aaf75e3);
|
|
26
|
+
$parcel$export(module.exports, "Item", () => $dTV3V$reactstatelycollections.Item);
|
|
27
|
+
/*
|
|
28
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
29
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
30
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
31
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
32
|
+
*
|
|
33
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
34
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
35
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
36
|
+
* governing permissions and limitations under the License.
|
|
37
|
+
*/ /*
|
|
38
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
39
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
40
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
41
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
42
|
+
*
|
|
43
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
44
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
45
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
46
|
+
* governing permissions and limitations under the License.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var $d97f7dfcca827852$exports = {};
|
|
53
|
+
var $e4833c69a6a8a469$exports = {};
|
|
54
|
+
$e4833c69a6a8a469$exports = {
|
|
55
|
+
"actions": `الإجراءات`,
|
|
56
|
+
"hideButtonLabel": `إظهار أقل`,
|
|
57
|
+
"noTags": `بدون`,
|
|
58
|
+
"showAllButtonLabel": (args, formatter)=>`عرض الكل (${formatter.number(args.tagCount)})`
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var $9b536cac3e0b637e$exports = {};
|
|
63
|
+
$9b536cac3e0b637e$exports = {
|
|
64
|
+
"actions": `Действия`,
|
|
65
|
+
"hideButtonLabel": `Показване на по-малко`,
|
|
66
|
+
"noTags": `Нито един`,
|
|
67
|
+
"showAllButtonLabel": (args, formatter)=>`Показване на всички (${formatter.number(args.tagCount)})`
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
var $06ebf46bd7a639dd$exports = {};
|
|
72
|
+
$06ebf46bd7a639dd$exports = {
|
|
73
|
+
"actions": `Akce`,
|
|
74
|
+
"hideButtonLabel": `Zobrazit méně`,
|
|
75
|
+
"noTags": `Žádný`,
|
|
76
|
+
"showAllButtonLabel": (args, formatter)=>`Zobrazit vše (${formatter.number(args.tagCount)})`
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var $d0c8889aa143e531$exports = {};
|
|
81
|
+
$d0c8889aa143e531$exports = {
|
|
82
|
+
"actions": `Handlinger`,
|
|
83
|
+
"hideButtonLabel": `Vis mindre`,
|
|
84
|
+
"noTags": `Ingen`,
|
|
85
|
+
"showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
var $09f15015489dc476$exports = {};
|
|
90
|
+
$09f15015489dc476$exports = {
|
|
91
|
+
"actions": `Aktionen`,
|
|
92
|
+
"hideButtonLabel": `Weniger zeigen`,
|
|
93
|
+
"noTags": `Keine`,
|
|
94
|
+
"showAllButtonLabel": (args, formatter)=>`Alle anzeigen (${formatter.number(args.tagCount)})`
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
var $ec81f332ee1bb67a$exports = {};
|
|
99
|
+
$ec81f332ee1bb67a$exports = {
|
|
100
|
+
"actions": `Ενέργειες`,
|
|
101
|
+
"hideButtonLabel": `Εμφάνιση λιγότερων`,
|
|
102
|
+
"noTags": `Κανένα`,
|
|
103
|
+
"showAllButtonLabel": (args, formatter)=>`Εμφάνιση όλων (${formatter.number(args.tagCount)})`
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
var $a5d4273001869f16$exports = {};
|
|
108
|
+
$a5d4273001869f16$exports = {
|
|
109
|
+
"showAllButtonLabel": (args, formatter)=>`Show all (${formatter.number(args.tagCount)})`,
|
|
110
|
+
"hideButtonLabel": `Show less`,
|
|
111
|
+
"actions": `Actions`,
|
|
112
|
+
"noTags": `None`
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
var $355c19ee0d058106$exports = {};
|
|
117
|
+
$355c19ee0d058106$exports = {
|
|
118
|
+
"actions": `Acciones`,
|
|
119
|
+
"hideButtonLabel": `Mostrar menos`,
|
|
120
|
+
"noTags": `Ninguno`,
|
|
121
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar todo (${formatter.number(args.tagCount)})`
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
var $94d247b24eb969ef$exports = {};
|
|
126
|
+
$94d247b24eb969ef$exports = {
|
|
127
|
+
"actions": `Toimingud`,
|
|
128
|
+
"hideButtonLabel": `Kuva vähem`,
|
|
129
|
+
"noTags": `Puudub`,
|
|
130
|
+
"showAllButtonLabel": (args, formatter)=>`Kuva kõik (${formatter.number(args.tagCount)})`
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
var $fe04eda9b3e92668$exports = {};
|
|
135
|
+
$fe04eda9b3e92668$exports = {
|
|
136
|
+
"actions": `Toiminnot`,
|
|
137
|
+
"hideButtonLabel": `Näytä vähemmän`,
|
|
138
|
+
"noTags": `Ei mitään`,
|
|
139
|
+
"showAllButtonLabel": (args, formatter)=>`Näytä kaikki (${formatter.number(args.tagCount)})`
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
var $8c0ca11f9a10e544$exports = {};
|
|
144
|
+
$8c0ca11f9a10e544$exports = {
|
|
145
|
+
"actions": `Actions`,
|
|
146
|
+
"hideButtonLabel": `Afficher moins`,
|
|
147
|
+
"noTags": `Aucun`,
|
|
148
|
+
"showAllButtonLabel": (args, formatter)=>`Tout afficher (${formatter.number(args.tagCount)})`
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
var $5cf885b76293f7ea$exports = {};
|
|
153
|
+
$5cf885b76293f7ea$exports = {
|
|
154
|
+
"actions": `פעולות`,
|
|
155
|
+
"hideButtonLabel": `הצג פחות`,
|
|
156
|
+
"noTags": `ללא`,
|
|
157
|
+
"showAllButtonLabel": (args, formatter)=>`הצג הכל (${formatter.number(args.tagCount)})`
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
var $26efb27e85fe3886$exports = {};
|
|
162
|
+
$26efb27e85fe3886$exports = {
|
|
163
|
+
"actions": `Radnje`,
|
|
164
|
+
"hideButtonLabel": `Prikaži manje`,
|
|
165
|
+
"noTags": `Nema`,
|
|
166
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
var $5afbffe322be4f78$exports = {};
|
|
171
|
+
$5afbffe322be4f78$exports = {
|
|
172
|
+
"actions": `Műveletek`,
|
|
173
|
+
"hideButtonLabel": `Mutass kevesebbet`,
|
|
174
|
+
"noTags": `Egyik sem`,
|
|
175
|
+
"showAllButtonLabel": (args, formatter)=>`Az összes megjelenítése (${formatter.number(args.tagCount)})`
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
var $e2e8477c50691c5a$exports = {};
|
|
180
|
+
$e2e8477c50691c5a$exports = {
|
|
181
|
+
"actions": `Azioni`,
|
|
182
|
+
"hideButtonLabel": `Mostra meno`,
|
|
183
|
+
"noTags": `Nessuno`,
|
|
184
|
+
"showAllButtonLabel": (args, formatter)=>`Mostra tutto (${formatter.number(args.tagCount)})`
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var $aa322e153c7fc6cf$exports = {};
|
|
189
|
+
$aa322e153c7fc6cf$exports = {
|
|
190
|
+
"actions": `アクション`,
|
|
191
|
+
"hideButtonLabel": `表示を減らす`,
|
|
192
|
+
"noTags": `なし`,
|
|
193
|
+
"showAllButtonLabel": (args, formatter)=>`すべての (${formatter.number(args.tagCount)}) を表示`
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
var $ef5171b4e7fef8b6$exports = {};
|
|
198
|
+
$ef5171b4e7fef8b6$exports = {
|
|
199
|
+
"actions": `액션`,
|
|
200
|
+
"hideButtonLabel": `간단히 표시`,
|
|
201
|
+
"noTags": `없음`,
|
|
202
|
+
"showAllButtonLabel": (args, formatter)=>`모두 표시 (${formatter.number(args.tagCount)})`
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
var $11cf3f21588c59d5$exports = {};
|
|
207
|
+
$11cf3f21588c59d5$exports = {
|
|
208
|
+
"actions": `Veiksmai`,
|
|
209
|
+
"hideButtonLabel": `Rodyti mažiau`,
|
|
210
|
+
"noTags": `Nėra`,
|
|
211
|
+
"showAllButtonLabel": (args, formatter)=>`Rodyti viską (${formatter.number(args.tagCount)})`
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
var $7798af2d0360d513$exports = {};
|
|
216
|
+
$7798af2d0360d513$exports = {
|
|
217
|
+
"actions": `Darbības`,
|
|
218
|
+
"hideButtonLabel": `Rādīt mazāk`,
|
|
219
|
+
"noTags": `Nav`,
|
|
220
|
+
"showAllButtonLabel": (args, formatter)=>`Rādīt visu (${formatter.number(args.tagCount)})`
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
var $36fbb928ae891fff$exports = {};
|
|
225
|
+
$36fbb928ae891fff$exports = {
|
|
226
|
+
"actions": `Handlinger`,
|
|
227
|
+
"hideButtonLabel": `Vis mindre`,
|
|
228
|
+
"noTags": `Ingen`,
|
|
229
|
+
"showAllButtonLabel": (args, formatter)=>`Vis alle (${formatter.number(args.tagCount)})`
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
var $64f658e8416b1edc$exports = {};
|
|
234
|
+
$64f658e8416b1edc$exports = {
|
|
235
|
+
"actions": `Acties`,
|
|
236
|
+
"hideButtonLabel": `Minder weergeven`,
|
|
237
|
+
"noTags": `Geen`,
|
|
238
|
+
"showAllButtonLabel": (args, formatter)=>`Alles tonen (${formatter.number(args.tagCount)})`
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
var $d83dc3596c86b9b1$exports = {};
|
|
243
|
+
$d83dc3596c86b9b1$exports = {
|
|
244
|
+
"actions": `Działania`,
|
|
245
|
+
"hideButtonLabel": `Wyświetl mniej`,
|
|
246
|
+
"noTags": `Brak`,
|
|
247
|
+
"showAllButtonLabel": (args, formatter)=>`Pokaż wszystko (${formatter.number(args.tagCount)})`
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
var $f05393b8526809a5$exports = {};
|
|
252
|
+
$f05393b8526809a5$exports = {
|
|
253
|
+
"actions": `Ações`,
|
|
254
|
+
"hideButtonLabel": `Mostrar menos`,
|
|
255
|
+
"noTags": `Nenhum`,
|
|
256
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar tudo (${formatter.number(args.tagCount)})`
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
var $d7b3c6e34da453ec$exports = {};
|
|
261
|
+
$d7b3c6e34da453ec$exports = {
|
|
262
|
+
"actions": `Ações`,
|
|
263
|
+
"hideButtonLabel": `Mostrar menos`,
|
|
264
|
+
"noTags": `Nenhum`,
|
|
265
|
+
"showAllButtonLabel": (args, formatter)=>`Mostrar tudo (${formatter.number(args.tagCount)})`
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
var $671c8a587799a566$exports = {};
|
|
270
|
+
$671c8a587799a566$exports = {
|
|
271
|
+
"actions": `Acțiuni`,
|
|
272
|
+
"hideButtonLabel": `Se afișează mai puțin`,
|
|
273
|
+
"noTags": `Niciuna`,
|
|
274
|
+
"showAllButtonLabel": (args, formatter)=>`Se afișează tot (${formatter.number(args.tagCount)})`
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
var $f7d5f2f6333669ae$exports = {};
|
|
279
|
+
$f7d5f2f6333669ae$exports = {
|
|
280
|
+
"actions": `Действия`,
|
|
281
|
+
"hideButtonLabel": `Показать меньше`,
|
|
282
|
+
"noTags": `Нет`,
|
|
283
|
+
"showAllButtonLabel": (args, formatter)=>`Показать все (${formatter.number(args.tagCount)})`
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
var $6872c5a06d3d5bd6$exports = {};
|
|
288
|
+
$6872c5a06d3d5bd6$exports = {
|
|
289
|
+
"actions": `Akcie`,
|
|
290
|
+
"hideButtonLabel": `Zobraziť menej`,
|
|
291
|
+
"noTags": `Žiadne`,
|
|
292
|
+
"showAllButtonLabel": (args, formatter)=>`Zobraziť všetko (${formatter.number(args.tagCount)})`
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
var $8d44aaec5d910562$exports = {};
|
|
297
|
+
$8d44aaec5d910562$exports = {
|
|
298
|
+
"actions": `Dejanja`,
|
|
299
|
+
"hideButtonLabel": `Prikaži manj`,
|
|
300
|
+
"noTags": `Nič`,
|
|
301
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaž vse (${formatter.number(args.tagCount)})`
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var $48a1f90aac47b13f$exports = {};
|
|
306
|
+
$48a1f90aac47b13f$exports = {
|
|
307
|
+
"actions": `Radnje`,
|
|
308
|
+
"hideButtonLabel": `Prikaži manje`,
|
|
309
|
+
"noTags": `Ne postoji`,
|
|
310
|
+
"showAllButtonLabel": (args, formatter)=>`Prikaži sve (${formatter.number(args.tagCount)})`
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
var $e67f8d08ca5a16ce$exports = {};
|
|
315
|
+
$e67f8d08ca5a16ce$exports = {
|
|
316
|
+
"actions": `Åtgärder`,
|
|
317
|
+
"hideButtonLabel": `Visa mindre`,
|
|
318
|
+
"noTags": `Ingen`,
|
|
319
|
+
"showAllButtonLabel": (args, formatter)=>`Visa alla (${formatter.number(args.tagCount)})`
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
var $dfe98dff52c184ea$exports = {};
|
|
324
|
+
$dfe98dff52c184ea$exports = {
|
|
325
|
+
"actions": `Eylemler`,
|
|
326
|
+
"hideButtonLabel": `Daha az göster`,
|
|
327
|
+
"noTags": `Hiçbiri`,
|
|
328
|
+
"showAllButtonLabel": (args, formatter)=>`Tümünü göster (${formatter.number(args.tagCount)})`
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
var $ba516e0f6c423a4a$exports = {};
|
|
333
|
+
$ba516e0f6c423a4a$exports = {
|
|
334
|
+
"actions": `Дії`,
|
|
335
|
+
"hideButtonLabel": `Показувати менше`,
|
|
336
|
+
"noTags": `Немає`,
|
|
337
|
+
"showAllButtonLabel": (args, formatter)=>`Показати всі (${formatter.number(args.tagCount)})`
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
var $7c2f3cb525451680$exports = {};
|
|
342
|
+
$7c2f3cb525451680$exports = {
|
|
343
|
+
"actions": `操作`,
|
|
344
|
+
"hideButtonLabel": `显示更少`,
|
|
345
|
+
"noTags": `无`,
|
|
346
|
+
"showAllButtonLabel": (args, formatter)=>`全部显示 (${formatter.number(args.tagCount)})`
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
var $00b7e0167640331e$exports = {};
|
|
351
|
+
$00b7e0167640331e$exports = {
|
|
352
|
+
"actions": `動作`,
|
|
353
|
+
"hideButtonLabel": `顯示較少`,
|
|
354
|
+
"noTags": `無`,
|
|
355
|
+
"showAllButtonLabel": (args, formatter)=>`顯示全部 (${formatter.number(args.tagCount)})`
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
$d97f7dfcca827852$exports = {
|
|
360
|
+
"ar-AE": $e4833c69a6a8a469$exports,
|
|
361
|
+
"bg-BG": $9b536cac3e0b637e$exports,
|
|
362
|
+
"cs-CZ": $06ebf46bd7a639dd$exports,
|
|
363
|
+
"da-DK": $d0c8889aa143e531$exports,
|
|
364
|
+
"de-DE": $09f15015489dc476$exports,
|
|
365
|
+
"el-GR": $ec81f332ee1bb67a$exports,
|
|
366
|
+
"en-US": $a5d4273001869f16$exports,
|
|
367
|
+
"es-ES": $355c19ee0d058106$exports,
|
|
368
|
+
"et-EE": $94d247b24eb969ef$exports,
|
|
369
|
+
"fi-FI": $fe04eda9b3e92668$exports,
|
|
370
|
+
"fr-FR": $8c0ca11f9a10e544$exports,
|
|
371
|
+
"he-IL": $5cf885b76293f7ea$exports,
|
|
372
|
+
"hr-HR": $26efb27e85fe3886$exports,
|
|
373
|
+
"hu-HU": $5afbffe322be4f78$exports,
|
|
374
|
+
"it-IT": $e2e8477c50691c5a$exports,
|
|
375
|
+
"ja-JP": $aa322e153c7fc6cf$exports,
|
|
376
|
+
"ko-KR": $ef5171b4e7fef8b6$exports,
|
|
377
|
+
"lt-LT": $11cf3f21588c59d5$exports,
|
|
378
|
+
"lv-LV": $7798af2d0360d513$exports,
|
|
379
|
+
"nb-NO": $36fbb928ae891fff$exports,
|
|
380
|
+
"nl-NL": $64f658e8416b1edc$exports,
|
|
381
|
+
"pl-PL": $d83dc3596c86b9b1$exports,
|
|
382
|
+
"pt-BR": $f05393b8526809a5$exports,
|
|
383
|
+
"pt-PT": $d7b3c6e34da453ec$exports,
|
|
384
|
+
"ro-RO": $671c8a587799a566$exports,
|
|
385
|
+
"ru-RU": $f7d5f2f6333669ae$exports,
|
|
386
|
+
"sk-SK": $6872c5a06d3d5bd6$exports,
|
|
387
|
+
"sl-SI": $8d44aaec5d910562$exports,
|
|
388
|
+
"sr-SP": $48a1f90aac47b13f$exports,
|
|
389
|
+
"sv-SE": $e67f8d08ca5a16ce$exports,
|
|
390
|
+
"tr-TR": $dfe98dff52c184ea$exports,
|
|
391
|
+
"uk-UA": $ba516e0f6c423a4a$exports,
|
|
392
|
+
"zh-CN": $7c2f3cb525451680$exports,
|
|
393
|
+
"zh-TW": $00b7e0167640331e$exports
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
41
397
|
|
|
42
398
|
|
|
43
399
|
|
|
44
400
|
|
|
45
401
|
var $ed889f8f1f091fc8$exports = {};
|
|
46
402
|
|
|
403
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag", () => $ed889f8f1f091fc8$export$6174bd1d20b4c022, (v) => $ed889f8f1f091fc8$export$6174bd1d20b4c022 = v);
|
|
404
|
+
$parcel$export($ed889f8f1f091fc8$exports, "focus-ring", () => $ed889f8f1f091fc8$export$f39a09f249340e2a, (v) => $ed889f8f1f091fc8$export$f39a09f249340e2a = v);
|
|
47
405
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags", () => $ed889f8f1f091fc8$export$eb7e80013a1212da, (v) => $ed889f8f1f091fc8$export$eb7e80013a1212da = v);
|
|
48
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-
|
|
406
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-container", () => $ed889f8f1f091fc8$export$3300169c5d27fe96, (v) => $ed889f8f1f091fc8$export$3300169c5d27fe96 = v);
|
|
407
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-container--empty", () => $ed889f8f1f091fc8$export$a5e59d283417e02b, (v) => $ed889f8f1f091fc8$export$a5e59d283417e02b = v);
|
|
49
408
|
$parcel$export($ed889f8f1f091fc8$exports, "is-disabled", () => $ed889f8f1f091fc8$export$d35bc1e505d1ebbf, (v) => $ed889f8f1f091fc8$export$d35bc1e505d1ebbf = v);
|
|
409
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-removeButton", () => $ed889f8f1f091fc8$export$23a76b996f0a6c1, (v) => $ed889f8f1f091fc8$export$23a76b996f0a6c1 = v);
|
|
410
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-cell", () => $ed889f8f1f091fc8$export$9c4fd4d7faada408, (v) => $ed889f8f1f091fc8$export$9c4fd4d7faada408 = v);
|
|
50
411
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-icon", () => $ed889f8f1f091fc8$export$21f5254139e14871, (v) => $ed889f8f1f091fc8$export$21f5254139e14871 = v);
|
|
412
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-avatar", () => $ed889f8f1f091fc8$export$7b57f5221a1b5306, (v) => $ed889f8f1f091fc8$export$7b57f5221a1b5306 = v);
|
|
51
413
|
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag-content", () => $ed889f8f1f091fc8$export$d281c967f4ee071e, (v) => $ed889f8f1f091fc8$export$d281c967f4ee071e = v);
|
|
52
|
-
$parcel$export($ed889f8f1f091fc8$exports, "
|
|
53
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-
|
|
54
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-
|
|
414
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tag--removable", () => $ed889f8f1f091fc8$export$87165794583be111, (v) => $ed889f8f1f091fc8$export$87165794583be111 = v);
|
|
415
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-actions", () => $ed889f8f1f091fc8$export$8afaa02110915bbb, (v) => $ed889f8f1f091fc8$export$8afaa02110915bbb = v);
|
|
416
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-actionButton", () => $ed889f8f1f091fc8$export$e6882f8db018e3bd, (v) => $ed889f8f1f091fc8$export$e6882f8db018e3bd = v);
|
|
417
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-fieldWrapper", () => $ed889f8f1f091fc8$export$c9b7ca327d69b2b5, (v) => $ed889f8f1f091fc8$export$c9b7ca327d69b2b5 = v);
|
|
418
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-fieldWrapper--positionSide", () => $ed889f8f1f091fc8$export$a7c11d4acc244e09, (v) => $ed889f8f1f091fc8$export$a7c11d4acc244e09 = v);
|
|
419
|
+
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-empty-state", () => $ed889f8f1f091fc8$export$cd48f925394bb16, (v) => $ed889f8f1f091fc8$export$cd48f925394bb16 = v);
|
|
55
420
|
$parcel$export($ed889f8f1f091fc8$exports, "is-hovered", () => $ed889f8f1f091fc8$export$b8813cd5d7824ce7, (v) => $ed889f8f1f091fc8$export$b8813cd5d7824ce7 = v);
|
|
56
|
-
$parcel$export($ed889f8f1f091fc8$exports, "focus-ring", () => $ed889f8f1f091fc8$export$f39a09f249340e2a, (v) => $ed889f8f1f091fc8$export$f39a09f249340e2a = v);
|
|
57
|
-
$parcel$export($ed889f8f1f091fc8$exports, "is-selected", () => $ed889f8f1f091fc8$export$1e0fb04f31d3c22a, (v) => $ed889f8f1f091fc8$export$1e0fb04f31d3c22a = v);
|
|
58
|
-
$parcel$export($ed889f8f1f091fc8$exports, "is-invalid", () => $ed889f8f1f091fc8$export$14a30de2866685fa, (v) => $ed889f8f1f091fc8$export$14a30de2866685fa = v);
|
|
59
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemIcon", () => $ed889f8f1f091fc8$export$8c615c557fdf3d9c, (v) => $ed889f8f1f091fc8$export$8c615c557fdf3d9c = v);
|
|
60
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemLabel", () => $ed889f8f1f091fc8$export$23caf26adee41b84, (v) => $ed889f8f1f091fc8$export$23caf26adee41b84 = v);
|
|
61
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-itemClearButton", () => $ed889f8f1f091fc8$export$90881dd581d6be55, (v) => $ed889f8f1f091fc8$export$90881dd581d6be55 = v);
|
|
62
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Avatar", () => $ed889f8f1f091fc8$export$2e049b8d031600fb, (v) => $ed889f8f1f091fc8$export$2e049b8d031600fb = v);
|
|
63
|
-
$parcel$export($ed889f8f1f091fc8$exports, "spectrum-Tags-item--removable", () => $ed889f8f1f091fc8$export$c1666977f4e14f87, (v) => $ed889f8f1f091fc8$export$c1666977f4e14f87 = v);
|
|
64
421
|
$parcel$export($ed889f8f1f091fc8$exports, "is-focused", () => $ed889f8f1f091fc8$export$e7dc768d35940237, (v) => $ed889f8f1f091fc8$export$e7dc768d35940237 = v);
|
|
422
|
+
var $ed889f8f1f091fc8$export$6174bd1d20b4c022;
|
|
423
|
+
var $ed889f8f1f091fc8$export$f39a09f249340e2a;
|
|
65
424
|
var $ed889f8f1f091fc8$export$eb7e80013a1212da;
|
|
66
|
-
var $ed889f8f1f091fc8$export$
|
|
425
|
+
var $ed889f8f1f091fc8$export$3300169c5d27fe96;
|
|
426
|
+
var $ed889f8f1f091fc8$export$a5e59d283417e02b;
|
|
67
427
|
var $ed889f8f1f091fc8$export$d35bc1e505d1ebbf;
|
|
428
|
+
var $ed889f8f1f091fc8$export$23a76b996f0a6c1;
|
|
429
|
+
var $ed889f8f1f091fc8$export$9c4fd4d7faada408;
|
|
68
430
|
var $ed889f8f1f091fc8$export$21f5254139e14871;
|
|
431
|
+
var $ed889f8f1f091fc8$export$7b57f5221a1b5306;
|
|
69
432
|
var $ed889f8f1f091fc8$export$d281c967f4ee071e;
|
|
70
|
-
var $ed889f8f1f091fc8$export$
|
|
71
|
-
var $ed889f8f1f091fc8$export$
|
|
72
|
-
var $ed889f8f1f091fc8$export$
|
|
433
|
+
var $ed889f8f1f091fc8$export$87165794583be111;
|
|
434
|
+
var $ed889f8f1f091fc8$export$8afaa02110915bbb;
|
|
435
|
+
var $ed889f8f1f091fc8$export$e6882f8db018e3bd;
|
|
436
|
+
var $ed889f8f1f091fc8$export$c9b7ca327d69b2b5;
|
|
437
|
+
var $ed889f8f1f091fc8$export$a7c11d4acc244e09;
|
|
438
|
+
var $ed889f8f1f091fc8$export$cd48f925394bb16;
|
|
73
439
|
var $ed889f8f1f091fc8$export$b8813cd5d7824ce7;
|
|
74
|
-
var $ed889f8f1f091fc8$export$f39a09f249340e2a;
|
|
75
|
-
var $ed889f8f1f091fc8$export$1e0fb04f31d3c22a;
|
|
76
|
-
var $ed889f8f1f091fc8$export$14a30de2866685fa;
|
|
77
|
-
var $ed889f8f1f091fc8$export$8c615c557fdf3d9c;
|
|
78
|
-
var $ed889f8f1f091fc8$export$23caf26adee41b84;
|
|
79
|
-
var $ed889f8f1f091fc8$export$90881dd581d6be55;
|
|
80
|
-
var $ed889f8f1f091fc8$export$2e049b8d031600fb;
|
|
81
|
-
var $ed889f8f1f091fc8$export$c1666977f4e14f87;
|
|
82
440
|
var $ed889f8f1f091fc8$export$e7dc768d35940237;
|
|
441
|
+
$ed889f8f1f091fc8$export$6174bd1d20b4c022 = "spectrum-Tag_8407eb";
|
|
442
|
+
$ed889f8f1f091fc8$export$f39a09f249340e2a = "focus-ring_8407eb";
|
|
83
443
|
$ed889f8f1f091fc8$export$eb7e80013a1212da = "spectrum-Tags_8407eb";
|
|
84
|
-
$ed889f8f1f091fc8$export$
|
|
444
|
+
$ed889f8f1f091fc8$export$3300169c5d27fe96 = "spectrum-Tags-container_8407eb";
|
|
445
|
+
$ed889f8f1f091fc8$export$a5e59d283417e02b = "spectrum-Tags-container--empty_8407eb";
|
|
85
446
|
$ed889f8f1f091fc8$export$d35bc1e505d1ebbf = "is-disabled_8407eb";
|
|
447
|
+
$ed889f8f1f091fc8$export$23a76b996f0a6c1 = "spectrum-Tag-removeButton_8407eb";
|
|
448
|
+
$ed889f8f1f091fc8$export$9c4fd4d7faada408 = "spectrum-Tag-cell_8407eb";
|
|
86
449
|
$ed889f8f1f091fc8$export$21f5254139e14871 = "spectrum-Tag-icon_8407eb";
|
|
450
|
+
$ed889f8f1f091fc8$export$7b57f5221a1b5306 = "spectrum-Tag-avatar_8407eb";
|
|
87
451
|
$ed889f8f1f091fc8$export$d281c967f4ee071e = "spectrum-Tag-content_8407eb";
|
|
88
|
-
$ed889f8f1f091fc8$export$
|
|
89
|
-
$ed889f8f1f091fc8$export$
|
|
90
|
-
$ed889f8f1f091fc8$export$
|
|
452
|
+
$ed889f8f1f091fc8$export$87165794583be111 = "spectrum-Tag--removable_8407eb";
|
|
453
|
+
$ed889f8f1f091fc8$export$8afaa02110915bbb = "spectrum-Tags-actions_8407eb";
|
|
454
|
+
$ed889f8f1f091fc8$export$e6882f8db018e3bd = "spectrum-Tags-actionButton_8407eb";
|
|
455
|
+
$ed889f8f1f091fc8$export$c9b7ca327d69b2b5 = "spectrum-Tags-fieldWrapper_8407eb";
|
|
456
|
+
$ed889f8f1f091fc8$export$a7c11d4acc244e09 = "spectrum-Tags-fieldWrapper--positionSide_8407eb";
|
|
457
|
+
$ed889f8f1f091fc8$export$cd48f925394bb16 = "spectrum-Tags-empty-state_8407eb";
|
|
91
458
|
$ed889f8f1f091fc8$export$b8813cd5d7824ce7 = "is-hovered_8407eb";
|
|
92
|
-
$ed889f8f1f091fc8$export$f39a09f249340e2a = "focus-ring_8407eb";
|
|
93
|
-
$ed889f8f1f091fc8$export$1e0fb04f31d3c22a = "is-selected_8407eb";
|
|
94
|
-
$ed889f8f1f091fc8$export$14a30de2866685fa = "is-invalid_8407eb";
|
|
95
|
-
$ed889f8f1f091fc8$export$8c615c557fdf3d9c = "spectrum-Tags-itemIcon_8407eb";
|
|
96
|
-
$ed889f8f1f091fc8$export$23caf26adee41b84 = "spectrum-Tags-itemLabel_8407eb";
|
|
97
|
-
$ed889f8f1f091fc8$export$90881dd581d6be55 = "spectrum-Tags-itemClearButton_8407eb";
|
|
98
|
-
$ed889f8f1f091fc8$export$2e049b8d031600fb = "spectrum-Avatar_8407eb";
|
|
99
|
-
$ed889f8f1f091fc8$export$c1666977f4e14f87 = "spectrum-Tags-item--removable_8407eb";
|
|
100
459
|
$ed889f8f1f091fc8$export$e7dc768d35940237 = "is-focused_8407eb";
|
|
101
460
|
|
|
102
461
|
|
|
103
|
-
|
|
462
|
+
/*
|
|
463
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
464
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
465
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
466
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
467
|
+
*
|
|
468
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
469
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
470
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
471
|
+
* governing permissions and limitations under the License.
|
|
472
|
+
*/
|
|
104
473
|
|
|
105
474
|
|
|
106
475
|
|
|
@@ -110,167 +479,279 @@ $ed889f8f1f091fc8$export$e7dc768d35940237 = "is-focused_8407eb";
|
|
|
110
479
|
|
|
111
480
|
|
|
112
481
|
function $dd2c5d00108c1840$export$3288d34c523a1192(props) {
|
|
113
|
-
const {
|
|
482
|
+
const { item: item , state: state , ...otherProps } = props;
|
|
114
483
|
// @ts-ignore
|
|
115
|
-
let { styleProps: styleProps } = $dTV3V$reactspectrumutils.useStyleProps(otherProps);
|
|
116
|
-
let { hoverProps: hoverProps , isHovered: isHovered } = $dTV3V$reactariainteractions.useHover({
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = $dTV3V$reactariafocus.useFocusRing({
|
|
484
|
+
let { styleProps: styleProps } = (0, $dTV3V$reactspectrumutils.useStyleProps)(otherProps);
|
|
485
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dTV3V$reactariainteractions.useHover)({});
|
|
486
|
+
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dTV3V$reactariafocus.useFocusRing)({
|
|
120
487
|
within: true
|
|
121
488
|
});
|
|
122
|
-
let
|
|
123
|
-
let
|
|
124
|
-
let tagRowRef = $dTV3V$react.useRef();
|
|
125
|
-
let { clearButtonProps: clearButtonProps , labelProps: labelProps , tagProps: tagProps , tagRowProps: tagRowProps } = $dTV3V$reactariatag.useTag({
|
|
489
|
+
let ref = (0, $dTV3V$react.useRef)();
|
|
490
|
+
let { removeButtonProps: removeButtonProps , gridCellProps: gridCellProps , rowProps: rowProps , allowsRemoving: allowsRemoving } = (0, $dTV3V$reactariatag.useTag)({
|
|
126
491
|
...props,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
'not-removable': !isRemovable,
|
|
143
|
-
'is-hovered': isHovered
|
|
144
|
-
}, styleProps.className)
|
|
145
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).createElement($dTV3V$reactspectrumutils.SlotProvider, {
|
|
492
|
+
item: item
|
|
493
|
+
}, state, ref);
|
|
494
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
495
|
+
...(0, $dTV3V$reactariautils.mergeProps)(rowProps, hoverProps, focusProps),
|
|
496
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag", {
|
|
497
|
+
"focus-ring": isFocusVisible,
|
|
498
|
+
"is-focused": isFocused,
|
|
499
|
+
"is-hovered": isHovered,
|
|
500
|
+
"spectrum-Tag--removable": allowsRemoving
|
|
501
|
+
}, styleProps.className),
|
|
502
|
+
ref: ref
|
|
503
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
504
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag-cell"),
|
|
505
|
+
...gridCellProps
|
|
506
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumutils.SlotProvider), {
|
|
146
507
|
slots: {
|
|
147
|
-
tagLabel: {
|
|
148
|
-
UNSAFE_className: $dTV3V$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports)), 'spectrum-Tag-label')
|
|
149
|
-
},
|
|
150
508
|
icon: {
|
|
151
|
-
UNSAFE_className: $dTV3V$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports)),
|
|
152
|
-
size:
|
|
509
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag-icon"),
|
|
510
|
+
size: "XS"
|
|
153
511
|
},
|
|
154
512
|
text: {
|
|
155
|
-
UNSAFE_className: $dTV3V$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports)),
|
|
156
|
-
|
|
157
|
-
|
|
513
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag-content")
|
|
514
|
+
},
|
|
515
|
+
avatar: {
|
|
516
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag-avatar"),
|
|
517
|
+
size: "avatar-size-50"
|
|
158
518
|
}
|
|
159
519
|
}
|
|
160
|
-
}, typeof
|
|
161
|
-
ref: labelRef,
|
|
162
|
-
...labelProps
|
|
163
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).createElement($dTV3V$reactspectrumtext.Text, null, children)) : children, isRemovable && /*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).createElement($dd2c5d00108c1840$var$TagRemoveButton, {
|
|
520
|
+
}, typeof item.rendered === "string" ? /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumtext.Text), null, item.rendered) : item.rendered, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumutils.ClearSlots), null, allowsRemoving && /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement($dd2c5d00108c1840$var$TagRemoveButton, {
|
|
164
521
|
item: item,
|
|
165
|
-
...
|
|
166
|
-
UNSAFE_className: $dTV3V$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports)),
|
|
522
|
+
...removeButtonProps,
|
|
523
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tag-removeButton")
|
|
167
524
|
})))));
|
|
168
525
|
}
|
|
169
526
|
function $dd2c5d00108c1840$var$TagRemoveButton(props) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
let clearBtnRef = $dTV3V$react.useRef();
|
|
173
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).createElement("span", {
|
|
174
|
-
...styleProps,
|
|
175
|
-
ref: clearBtnRef
|
|
176
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).createElement($dTV3V$reactspectrumbutton.ClearButton, {
|
|
177
|
-
preventFocus: true,
|
|
178
|
-
...props
|
|
179
|
-
})));
|
|
527
|
+
let { styleProps: styleProps } = (0, $dTV3V$reactspectrumutils.useStyleProps)(props);
|
|
528
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("span", styleProps, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumbutton.ClearButton), props));
|
|
180
529
|
}
|
|
181
530
|
|
|
182
531
|
|
|
183
532
|
|
|
184
533
|
|
|
185
534
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
535
|
+
const $e7b72d8874e98cd4$var$TAG_STYLES = {
|
|
536
|
+
medium: {
|
|
537
|
+
height: 24,
|
|
538
|
+
margin: 4
|
|
539
|
+
},
|
|
540
|
+
large: {
|
|
541
|
+
height: 30,
|
|
542
|
+
margin: 5
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
function $e7b72d8874e98cd4$var$TagGroup(props, ref) {
|
|
546
|
+
props = (0, $dTV3V$reactspectrumprovider.useProviderProps)(props);
|
|
547
|
+
props = (0, $dTV3V$reactspectrumform.useFormProps)(props);
|
|
548
|
+
let { maxRows: maxRows , children: children , actionLabel: actionLabel , onAction: onAction , labelPosition: labelPosition , renderEmptyState: renderEmptyState = ()=>stringFormatter.format("noTags") } = props;
|
|
549
|
+
let domRef = (0, $dTV3V$reactspectrumutils.useDOMRef)(ref);
|
|
550
|
+
let containerRef = (0, $dTV3V$react.useRef)(null);
|
|
551
|
+
let tagsRef = (0, $dTV3V$react.useRef)(null);
|
|
552
|
+
let { direction: direction } = (0, $dTV3V$reactariai18n.useLocale)();
|
|
553
|
+
let { scale: scale } = (0, $dTV3V$reactspectrumprovider.useProvider)();
|
|
554
|
+
let stringFormatter = (0, $dTV3V$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($d97f7dfcca827852$exports))));
|
|
555
|
+
let [isCollapsed, setIsCollapsed] = (0, $dTV3V$react.useState)(maxRows != null);
|
|
556
|
+
let state = (0, $dTV3V$reactstatelylist.useListState)(props);
|
|
557
|
+
let [tagState, setTagState] = (0, $dTV3V$reactariautils.useValueEffect)({
|
|
558
|
+
visibleTagCount: state.collection.size,
|
|
559
|
+
showCollapseButton: false
|
|
560
|
+
});
|
|
561
|
+
let keyboardDelegate = (0, $dTV3V$react.useMemo)(()=>{
|
|
562
|
+
let collection = isCollapsed ? new (0, $dTV3V$reactstatelylist.ListCollection)([
|
|
563
|
+
...state.collection
|
|
564
|
+
].slice(0, tagState.visibleTagCount)) : new (0, $dTV3V$reactstatelylist.ListCollection)([
|
|
565
|
+
...state.collection
|
|
566
|
+
]);
|
|
567
|
+
return new (0, $dTV3V$reactariaselection.ListKeyboardDelegate)({
|
|
568
|
+
collection: collection,
|
|
569
|
+
ref: domRef,
|
|
570
|
+
direction: direction,
|
|
571
|
+
orientation: "horizontal"
|
|
572
|
+
});
|
|
573
|
+
}, [
|
|
574
|
+
direction,
|
|
575
|
+
isCollapsed,
|
|
576
|
+
state.collection,
|
|
577
|
+
tagState.visibleTagCount,
|
|
578
|
+
domRef
|
|
579
|
+
]);
|
|
580
|
+
// Remove onAction from props so it doesn't make it into useGridList.
|
|
581
|
+
delete props.onAction;
|
|
582
|
+
let { gridProps: gridProps , labelProps: labelProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $dTV3V$reactariatag.useTagGroup)({
|
|
583
|
+
...props,
|
|
584
|
+
keyboardDelegate: keyboardDelegate
|
|
585
|
+
}, state, tagsRef);
|
|
586
|
+
let actionsId = (0, $dTV3V$reactariautils.useId)();
|
|
587
|
+
let actionsRef = (0, $dTV3V$react.useRef)(null);
|
|
588
|
+
let updateVisibleTagCount = (0, $dTV3V$react.useCallback)(()=>{
|
|
589
|
+
if (maxRows > 0) {
|
|
590
|
+
let computeVisibleTagCount = ()=>{
|
|
591
|
+
// Refs can be null at runtime.
|
|
592
|
+
let currContainerRef = containerRef.current;
|
|
593
|
+
let currTagsRef = tagsRef.current;
|
|
594
|
+
let currActionsRef = actionsRef.current;
|
|
595
|
+
if (!currContainerRef || !currTagsRef || state.collection.size === 0) return {
|
|
596
|
+
visibleTagCount: 0,
|
|
597
|
+
showCollapseButton: false
|
|
598
|
+
};
|
|
599
|
+
// Count rows and show tags until we hit the maxRows.
|
|
600
|
+
let tags = [
|
|
601
|
+
...currTagsRef.children
|
|
602
|
+
];
|
|
603
|
+
let currY = -Infinity;
|
|
604
|
+
let rowCount = 0;
|
|
605
|
+
let index = 0;
|
|
606
|
+
let tagWidths = [];
|
|
607
|
+
for (let tag of tags){
|
|
608
|
+
let { width: width , y: y } = tag.getBoundingClientRect();
|
|
609
|
+
if (y !== currY) {
|
|
610
|
+
currY = y;
|
|
611
|
+
rowCount++;
|
|
205
612
|
}
|
|
613
|
+
if (rowCount > maxRows) break;
|
|
614
|
+
tagWidths.push(width);
|
|
615
|
+
index++;
|
|
616
|
+
}
|
|
617
|
+
// Remove tags until there is space for the collapse button and action button (if present) on the last row.
|
|
618
|
+
let buttons = [
|
|
619
|
+
...currActionsRef.children
|
|
206
620
|
];
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
621
|
+
if (buttons.length > 0 && rowCount >= maxRows) {
|
|
622
|
+
var _tags_;
|
|
623
|
+
let buttonsWidth = buttons.reduce((acc, curr)=>acc += curr.getBoundingClientRect().width, 0);
|
|
624
|
+
buttonsWidth += $e7b72d8874e98cd4$var$TAG_STYLES[scale].margin * 2 * buttons.length;
|
|
625
|
+
let end = direction === "ltr" ? "right" : "left";
|
|
626
|
+
let containerEnd = currContainerRef.parentElement.getBoundingClientRect()[end];
|
|
627
|
+
let lastTagEnd = (_tags_ = tags[index - 1]) === null || _tags_ === void 0 ? void 0 : _tags_.getBoundingClientRect()[end];
|
|
628
|
+
lastTagEnd += $e7b72d8874e98cd4$var$TAG_STYLES[scale].margin;
|
|
629
|
+
let availableWidth = containerEnd - lastTagEnd;
|
|
630
|
+
while(availableWidth < buttonsWidth && index > 0){
|
|
631
|
+
availableWidth += tagWidths.pop();
|
|
632
|
+
index--;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
219
635
|
return {
|
|
220
|
-
|
|
221
|
-
|
|
636
|
+
visibleTagCount: Math.max(index, 1),
|
|
637
|
+
showCollapseButton: index < state.collection.size
|
|
222
638
|
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
639
|
+
};
|
|
640
|
+
setTagState(function*() {
|
|
641
|
+
// Update to show all items.
|
|
642
|
+
yield {
|
|
643
|
+
visibleTagCount: state.collection.size,
|
|
644
|
+
showCollapseButton: true
|
|
645
|
+
};
|
|
646
|
+
// Measure, and update to show the items until maxRows is reached.
|
|
647
|
+
yield computeVisibleTagCount();
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}, [
|
|
651
|
+
maxRows,
|
|
652
|
+
setTagState,
|
|
653
|
+
direction,
|
|
654
|
+
scale,
|
|
655
|
+
state.collection.size
|
|
228
656
|
]);
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
focusMode: 'cell'
|
|
657
|
+
(0, $dTV3V$reactariautils.useResizeObserver)({
|
|
658
|
+
ref: containerRef,
|
|
659
|
+
onResize: updateVisibleTagCount
|
|
233
660
|
});
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
661
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
662
|
+
(0, $dTV3V$reactariautils.useLayoutEffect)(updateVisibleTagCount, [
|
|
663
|
+
children
|
|
664
|
+
]);
|
|
665
|
+
(0, $dTV3V$react.useEffect)(()=>{
|
|
666
|
+
var // Recalculate visible tags when fonts are loaded.
|
|
667
|
+
_document_fonts;
|
|
668
|
+
(_document_fonts = document.fonts) === null || _document_fonts === void 0 ? void 0 : _document_fonts.ready.then(()=>updateVisibleTagCount());
|
|
669
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
670
|
+
}, []);
|
|
671
|
+
let visibleTags = (0, $dTV3V$react.useMemo)(()=>[
|
|
672
|
+
...state.collection
|
|
673
|
+
].slice(0, isCollapsed ? tagState.visibleTagCount : state.collection.size), [
|
|
674
|
+
isCollapsed,
|
|
675
|
+
state.collection,
|
|
676
|
+
tagState.visibleTagCount
|
|
677
|
+
]);
|
|
678
|
+
let handlePressCollapse = ()=>{
|
|
679
|
+
// Prevents button from losing focus if focusedKey got collapsed.
|
|
680
|
+
state.selectionManager.setFocusedKey(null);
|
|
681
|
+
setIsCollapsed((prevCollapsed)=>!prevCollapsed);
|
|
682
|
+
};
|
|
683
|
+
let showActions = tagState.showCollapseButton || actionLabel && onAction;
|
|
684
|
+
let isEmpty = state.collection.size === 0;
|
|
685
|
+
let containerStyle = (0, $dTV3V$react.useMemo)(()=>{
|
|
686
|
+
if (maxRows == null || !isCollapsed || isEmpty) return undefined;
|
|
687
|
+
let maxHeight = ($e7b72d8874e98cd4$var$TAG_STYLES[scale].height + $e7b72d8874e98cd4$var$TAG_STYLES[scale].margin * 2) * maxRows;
|
|
688
|
+
return {
|
|
689
|
+
maxHeight: maxHeight,
|
|
690
|
+
overflow: "hidden"
|
|
691
|
+
};
|
|
255
692
|
}, [
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
693
|
+
isCollapsed,
|
|
694
|
+
maxRows,
|
|
695
|
+
isEmpty,
|
|
696
|
+
scale
|
|
697
|
+
]);
|
|
698
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactariafocus.FocusScope), null, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumlabel.Field), {
|
|
699
|
+
...props,
|
|
700
|
+
labelProps: labelProps,
|
|
701
|
+
descriptionProps: descriptionProps,
|
|
702
|
+
errorMessageProps: errorMessageProps,
|
|
703
|
+
showErrorIcon: true,
|
|
704
|
+
ref: domRef,
|
|
705
|
+
elementType: "span",
|
|
706
|
+
wrapperClassName: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-fieldWrapper", {
|
|
707
|
+
"spectrum-Tags-fieldWrapper--positionSide": labelPosition === "side"
|
|
708
|
+
})
|
|
709
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
710
|
+
ref: containerRef,
|
|
711
|
+
style: containerStyle,
|
|
712
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-container", {
|
|
713
|
+
"spectrum-Tags-container--empty": isEmpty
|
|
714
|
+
})
|
|
715
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactariafocus.FocusRing), {
|
|
716
|
+
focusRingClass: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "focus-ring")
|
|
717
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
718
|
+
ref: tagsRef,
|
|
719
|
+
...gridProps,
|
|
720
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags")
|
|
721
|
+
}, visibleTags.map((item)=>/*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dd2c5d00108c1840$export$3288d34c523a1192), {
|
|
722
|
+
...item.props,
|
|
261
723
|
key: item.key,
|
|
262
724
|
item: item,
|
|
263
|
-
state: state
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
})))
|
|
725
|
+
state: state
|
|
726
|
+
}, item.rendered)), isEmpty && /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
727
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-empty-state")
|
|
728
|
+
}, renderEmptyState()))), showActions && !isEmpty && /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumprovider.Provider), {
|
|
729
|
+
isDisabled: false
|
|
730
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement("div", {
|
|
731
|
+
role: "group",
|
|
732
|
+
ref: actionsRef,
|
|
733
|
+
id: actionsId,
|
|
734
|
+
"aria-label": stringFormatter.format("actions"),
|
|
735
|
+
"aria-labelledby": `${gridProps.id} ${actionsId}`,
|
|
736
|
+
className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-actions")
|
|
737
|
+
}, tagState.showCollapseButton && /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumbutton.ActionButton), {
|
|
738
|
+
isQuiet: true,
|
|
739
|
+
onPress: handlePressCollapse,
|
|
740
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-actionButton")
|
|
741
|
+
}, isCollapsed ? stringFormatter.format("showAllButtonLabel", {
|
|
742
|
+
tagCount: state.collection.size
|
|
743
|
+
}) : stringFormatter.format("hideButtonLabel")), actionLabel && onAction && /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).createElement((0, $dTV3V$reactspectrumbutton.ActionButton), {
|
|
744
|
+
isQuiet: true,
|
|
745
|
+
onPress: ()=>{
|
|
746
|
+
return onAction === null || onAction === void 0 ? void 0 : onAction();
|
|
747
|
+
},
|
|
748
|
+
UNSAFE_className: (0, $dTV3V$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ed889f8f1f091fc8$exports))), "spectrum-Tags-actionButton")
|
|
749
|
+
}, actionLabel))))));
|
|
269
750
|
}
|
|
270
|
-
const $e7b72d8874e98cd4$export$67ea30858aaf75e3 = /*#__PURE__*/ ($parcel$interopDefault($dTV3V$react)).forwardRef($e7b72d8874e98cd4$var$TagGroup);
|
|
751
|
+
/** Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request. */ const $e7b72d8874e98cd4$export$67ea30858aaf75e3 = /*#__PURE__*/ (0, ($parcel$interopDefault($dTV3V$react))).forwardRef($e7b72d8874e98cd4$var$TagGroup);
|
|
752
|
+
|
|
271
753
|
|
|
272
754
|
|
|
273
|
-
$parcel$exportWildcard(module.exports, $e7b72d8874e98cd4$exports);
|
|
274
755
|
|
|
275
756
|
|
|
276
757
|
//# sourceMappingURL=main.js.map
|