@react-spectrum/actionbar 3.0.0-alpha.14 → 3.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -1
- package/dist/main.js +110 -114
- package/dist/main.js.map +1 -1
- package/dist/module.js +110 -114
- package/dist/module.js.map +1 -1
- package/package.json +16 -16
package/dist/module.js
CHANGED
|
@@ -20,7 +20,28 @@ function $parcel$interopDefault(a) {
|
|
|
20
20
|
function $parcel$export(e, n, v, s) {
|
|
21
21
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
/*
|
|
24
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
25
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
26
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
27
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
30
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
31
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
|
+
* governing permissions and limitations under the License.
|
|
33
|
+
*/ /// <reference types="css-module-types" />
|
|
34
|
+
/*
|
|
35
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
36
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
37
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
38
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
39
|
+
*
|
|
40
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
41
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
42
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
43
|
+
* governing permissions and limitations under the License.
|
|
44
|
+
*/
|
|
24
45
|
|
|
25
46
|
|
|
26
47
|
|
|
@@ -36,8 +57,7 @@ $42f1aaf0cd835ede$exports = {
|
|
|
36
57
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
37
58
|
"=0": `غير محدد`,
|
|
38
59
|
other: ()=>`${formatter.number(args.count)} محدد`
|
|
39
|
-
})}
|
|
40
|
-
,
|
|
60
|
+
})}`,
|
|
41
61
|
"selectedAll": `تم تحديد الكل`
|
|
42
62
|
};
|
|
43
63
|
|
|
@@ -50,8 +70,7 @@ $22c931b8c5fa9db9$exports = {
|
|
|
50
70
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
51
71
|
"=0": `Няма избрани`,
|
|
52
72
|
other: ()=>`${formatter.number(args.count)} избрани`
|
|
53
|
-
})}
|
|
54
|
-
,
|
|
73
|
+
})}`,
|
|
55
74
|
"selectedAll": `Всички избрани`
|
|
56
75
|
};
|
|
57
76
|
|
|
@@ -64,8 +83,7 @@ $07dc24deaaf64ab0$exports = {
|
|
|
64
83
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
65
84
|
"=0": `Nic není vybráno`,
|
|
66
85
|
other: ()=>`Vybráno ${formatter.number(args.count)}`
|
|
67
|
-
})}
|
|
68
|
-
,
|
|
86
|
+
})}`,
|
|
69
87
|
"selectedAll": `Vybráno vše`
|
|
70
88
|
};
|
|
71
89
|
|
|
@@ -78,8 +96,7 @@ $44fd3a75baaf9937$exports = {
|
|
|
78
96
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
79
97
|
"=0": `Ingen valgt`,
|
|
80
98
|
other: ()=>`${formatter.number(args.count)} valgt`
|
|
81
|
-
})}
|
|
82
|
-
,
|
|
99
|
+
})}`,
|
|
83
100
|
"selectedAll": `Alle valgt`
|
|
84
101
|
};
|
|
85
102
|
|
|
@@ -92,8 +109,7 @@ $3281990be7bd78f6$exports = {
|
|
|
92
109
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
93
110
|
"=0": `Nichts ausgewählt`,
|
|
94
111
|
other: ()=>`${formatter.number(args.count)} ausgewählt`
|
|
95
|
-
})}
|
|
96
|
-
,
|
|
112
|
+
})}`,
|
|
97
113
|
"selectedAll": `Alles ausgewählt`
|
|
98
114
|
};
|
|
99
115
|
|
|
@@ -106,8 +122,7 @@ $242cbd951f3bcfeb$exports = {
|
|
|
106
122
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
107
123
|
"=0": `Δεν επιλέχθηκε κανένα`,
|
|
108
124
|
other: ()=>`Επιλέχθηκαν ${formatter.number(args.count)}`
|
|
109
|
-
})}
|
|
110
|
-
,
|
|
125
|
+
})}`,
|
|
111
126
|
"selectedAll": `Επιλέχθηκαν όλα`
|
|
112
127
|
};
|
|
113
128
|
|
|
@@ -118,8 +133,7 @@ $117deeeb64547dc7$exports = {
|
|
|
118
133
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
119
134
|
"=0": `None selected`,
|
|
120
135
|
other: ()=>`${formatter.number(args.count)} selected`
|
|
121
|
-
})}
|
|
122
|
-
,
|
|
136
|
+
})}`,
|
|
123
137
|
"selectedAll": `All selected`,
|
|
124
138
|
"actions": `Actions`,
|
|
125
139
|
"actionsAvailable": `Actions available.`
|
|
@@ -134,8 +148,7 @@ $5b8605d86a9af2ee$exports = {
|
|
|
134
148
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
135
149
|
"=0": `Nada seleccionado`,
|
|
136
150
|
other: ()=>`${formatter.number(args.count)} seleccionado`
|
|
137
|
-
})}
|
|
138
|
-
,
|
|
151
|
+
})}`,
|
|
139
152
|
"selectedAll": `Todo seleccionado`
|
|
140
153
|
};
|
|
141
154
|
|
|
@@ -148,8 +161,7 @@ $5530e5c9f2623025$exports = {
|
|
|
148
161
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
149
162
|
"=0": `Pole valitud`,
|
|
150
163
|
other: ()=>`${formatter.number(args.count)} valitud`
|
|
151
|
-
})}
|
|
152
|
-
,
|
|
164
|
+
})}`,
|
|
153
165
|
"selectedAll": `Kõik valitud`
|
|
154
166
|
};
|
|
155
167
|
|
|
@@ -162,8 +174,7 @@ $7a405d1dfc563131$exports = {
|
|
|
162
174
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
163
175
|
"=0": `Ei mitään valittu`,
|
|
164
176
|
other: ()=>`${formatter.number(args.count)} valittu`
|
|
165
|
-
})}
|
|
166
|
-
,
|
|
177
|
+
})}`,
|
|
167
178
|
"selectedAll": `Kaikki valittu`
|
|
168
179
|
};
|
|
169
180
|
|
|
@@ -176,8 +187,7 @@ $e0c3da022513542b$exports = {
|
|
|
176
187
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
177
188
|
"=0": `Aucun élément sélectionné`,
|
|
178
189
|
other: ()=>`${formatter.number(args.count)} sélectionnés`
|
|
179
|
-
})}
|
|
180
|
-
,
|
|
190
|
+
})}`,
|
|
181
191
|
"selectedAll": `Toute la sélection`
|
|
182
192
|
};
|
|
183
193
|
|
|
@@ -190,8 +200,7 @@ $796ff5aed019aee1$exports = {
|
|
|
190
200
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
191
201
|
"=0": `לא בוצעה בחירה`,
|
|
192
202
|
other: ()=>`${formatter.number(args.count)} נבחרו`
|
|
193
|
-
})}
|
|
194
|
-
,
|
|
203
|
+
})}`,
|
|
195
204
|
"selectedAll": `כל הפריטים שנבחרו`
|
|
196
205
|
};
|
|
197
206
|
|
|
@@ -204,8 +213,7 @@ $e1066348ea80fd36$exports = {
|
|
|
204
213
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
205
214
|
"=0": `Nijedna nije odabrana`,
|
|
206
215
|
other: ()=>`${formatter.number(args.count)} je odabrano`
|
|
207
|
-
})}
|
|
208
|
-
,
|
|
216
|
+
})}`,
|
|
209
217
|
"selectedAll": `Sve je odabrano`
|
|
210
218
|
};
|
|
211
219
|
|
|
@@ -218,8 +226,7 @@ $939ac78e6c54d005$exports = {
|
|
|
218
226
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
219
227
|
"=0": `Egy sincs kijelölve`,
|
|
220
228
|
other: ()=>`${formatter.number(args.count)} kijelölve`
|
|
221
|
-
})}
|
|
222
|
-
,
|
|
229
|
+
})}`,
|
|
223
230
|
"selectedAll": `Mind kijelölve`
|
|
224
231
|
};
|
|
225
232
|
|
|
@@ -232,8 +239,7 @@ $087af352bd8a67a5$exports = {
|
|
|
232
239
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
233
240
|
"=0": `Nessuno selezionato`,
|
|
234
241
|
other: ()=>`${formatter.number(args.count)} selezionato/i`
|
|
235
|
-
})}
|
|
236
|
-
,
|
|
242
|
+
})}`,
|
|
237
243
|
"selectedAll": `Tutti selezionati`
|
|
238
244
|
};
|
|
239
245
|
|
|
@@ -246,8 +252,7 @@ $ef25b75f84bf9640$exports = {
|
|
|
246
252
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
247
253
|
"=0": `選択されていません`,
|
|
248
254
|
other: ()=>`${formatter.number(args.count)} 個を選択しました`
|
|
249
|
-
})}
|
|
250
|
-
,
|
|
255
|
+
})}`,
|
|
251
256
|
"selectedAll": `すべてを選択`
|
|
252
257
|
};
|
|
253
258
|
|
|
@@ -260,8 +265,7 @@ $a9fcaa28ab16ac58$exports = {
|
|
|
260
265
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
261
266
|
"=0": `선택된 항목 없음`,
|
|
262
267
|
other: ()=>`${formatter.number(args.count)}개 선택됨`
|
|
263
|
-
})}
|
|
264
|
-
,
|
|
268
|
+
})}`,
|
|
265
269
|
"selectedAll": `모두 선택됨`
|
|
266
270
|
};
|
|
267
271
|
|
|
@@ -274,8 +278,7 @@ $7103396bd37d192c$exports = {
|
|
|
274
278
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
275
279
|
"=0": `Nieko nepasirinkta`,
|
|
276
280
|
other: ()=>`Pasirinkta ${formatter.number(args.count)}`
|
|
277
|
-
})}
|
|
278
|
-
,
|
|
281
|
+
})}`,
|
|
279
282
|
"selectedAll": `Pasirinkta viskas`
|
|
280
283
|
};
|
|
281
284
|
|
|
@@ -288,8 +291,7 @@ $da39587a937fb6fd$exports = {
|
|
|
288
291
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
289
292
|
"=0": `Nav atlasīts nekas`,
|
|
290
293
|
other: ()=>`Atlasīts: ${formatter.number(args.count)}`
|
|
291
|
-
})}
|
|
292
|
-
,
|
|
294
|
+
})}`,
|
|
293
295
|
"selectedAll": `Atlasīts viss`
|
|
294
296
|
};
|
|
295
297
|
|
|
@@ -302,8 +304,7 @@ $fef3c3414d151198$exports = {
|
|
|
302
304
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
303
305
|
"=0": `Ingen er valgt`,
|
|
304
306
|
other: ()=>`${formatter.number(args.count)} er valgt`
|
|
305
|
-
})}
|
|
306
|
-
,
|
|
307
|
+
})}`,
|
|
307
308
|
"selectedAll": `Alle er valgt`
|
|
308
309
|
};
|
|
309
310
|
|
|
@@ -316,8 +317,7 @@ $3cfd427955fee95c$exports = {
|
|
|
316
317
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
317
318
|
"=0": `Niets geselecteerd`,
|
|
318
319
|
other: ()=>`${formatter.number(args.count)} geselecteerd`
|
|
319
|
-
})}
|
|
320
|
-
,
|
|
320
|
+
})}`,
|
|
321
321
|
"selectedAll": `Alles geselecteerd`
|
|
322
322
|
};
|
|
323
323
|
|
|
@@ -330,8 +330,7 @@ $ecd102793531599a$exports = {
|
|
|
330
330
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
331
331
|
"=0": `Nie zaznaczono żadnego elementu`,
|
|
332
332
|
other: ()=>`${formatter.number(args.count)} zaznaczonych`
|
|
333
|
-
})}
|
|
334
|
-
,
|
|
333
|
+
})}`,
|
|
335
334
|
"selectedAll": `Wszystkie zaznaczone`
|
|
336
335
|
};
|
|
337
336
|
|
|
@@ -344,8 +343,7 @@ $70b0a95af4186e29$exports = {
|
|
|
344
343
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
345
344
|
"=0": `Nada selecionado`,
|
|
346
345
|
other: ()=>`${formatter.number(args.count)} selecionado`
|
|
347
|
-
})}
|
|
348
|
-
,
|
|
346
|
+
})}`,
|
|
349
347
|
"selectedAll": `Todos selecionados`
|
|
350
348
|
};
|
|
351
349
|
|
|
@@ -358,8 +356,7 @@ $4b15e180aed5c52d$exports = {
|
|
|
358
356
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
359
357
|
"=0": `Nenhum selecionado`,
|
|
360
358
|
other: ()=>`${formatter.number(args.count)} selecionado`
|
|
361
|
-
})}
|
|
362
|
-
,
|
|
359
|
+
})}`,
|
|
363
360
|
"selectedAll": `Tudo selecionado`
|
|
364
361
|
};
|
|
365
362
|
|
|
@@ -372,8 +369,7 @@ $d0ef0a1cef9c2d6c$exports = {
|
|
|
372
369
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
373
370
|
"=0": `Niciunul selectat`,
|
|
374
371
|
other: ()=>`${formatter.number(args.count)} selectate`
|
|
375
|
-
})}
|
|
376
|
-
,
|
|
372
|
+
})}`,
|
|
377
373
|
"selectedAll": `Toate selectate`
|
|
378
374
|
};
|
|
379
375
|
|
|
@@ -386,8 +382,7 @@ $58fc1ff371f0c7fd$exports = {
|
|
|
386
382
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
387
383
|
"=0": `Ничего не выбоано`,
|
|
388
384
|
other: ()=>`${formatter.number(args.count)} выбрано`
|
|
389
|
-
})}
|
|
390
|
-
,
|
|
385
|
+
})}`,
|
|
391
386
|
"selectedAll": `Выбрано все`
|
|
392
387
|
};
|
|
393
388
|
|
|
@@ -400,8 +395,7 @@ $b5f65f4e7988d1dd$exports = {
|
|
|
400
395
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
401
396
|
"=0": `Žiadne vybraté položky`,
|
|
402
397
|
other: ()=>`Počet vybratých položiek: ${formatter.number(args.count)}`
|
|
403
|
-
})}
|
|
404
|
-
,
|
|
398
|
+
})}`,
|
|
405
399
|
"selectedAll": `Všetky vybraté položky`
|
|
406
400
|
};
|
|
407
401
|
|
|
@@ -414,8 +408,7 @@ $5409ad409aeaf678$exports = {
|
|
|
414
408
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
415
409
|
"=0": `Nič izbranih`,
|
|
416
410
|
other: ()=>`${formatter.number(args.count)} izbranih`
|
|
417
|
-
})}
|
|
418
|
-
,
|
|
411
|
+
})}`,
|
|
419
412
|
"selectedAll": `Vsi izbrani`
|
|
420
413
|
};
|
|
421
414
|
|
|
@@ -428,8 +421,7 @@ $43feb38b3d4bbf1f$exports = {
|
|
|
428
421
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
429
422
|
"=0": `Ništa nije izabrano`,
|
|
430
423
|
other: ()=>`${formatter.number(args.count)} je izabrano`
|
|
431
|
-
})}
|
|
432
|
-
,
|
|
424
|
+
})}`,
|
|
433
425
|
"selectedAll": `Sve je izabrano`
|
|
434
426
|
};
|
|
435
427
|
|
|
@@ -442,8 +434,7 @@ $cbe41ff823ebe108$exports = {
|
|
|
442
434
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
443
435
|
"=0": `Inga markerade`,
|
|
444
436
|
other: ()=>`${formatter.number(args.count)} markerade`
|
|
445
|
-
})}
|
|
446
|
-
,
|
|
437
|
+
})}`,
|
|
447
438
|
"selectedAll": `Alla markerade`
|
|
448
439
|
};
|
|
449
440
|
|
|
@@ -456,8 +447,7 @@ $57b680843fcbe09e$exports = {
|
|
|
456
447
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
457
448
|
"=0": `Hiçbiri seçilmedi`,
|
|
458
449
|
other: ()=>`${formatter.number(args.count)} seçildi`
|
|
459
|
-
})}
|
|
460
|
-
,
|
|
450
|
+
})}`,
|
|
461
451
|
"selectedAll": `Tümü seçildi`
|
|
462
452
|
};
|
|
463
453
|
|
|
@@ -470,8 +460,7 @@ $1e4c96bc308e0da2$exports = {
|
|
|
470
460
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
471
461
|
"=0": `Нічого не вибрано`,
|
|
472
462
|
other: ()=>`Вибрано: ${formatter.number(args.count)}`
|
|
473
|
-
})}
|
|
474
|
-
,
|
|
463
|
+
})}`,
|
|
475
464
|
"selectedAll": `Усе вибрано`
|
|
476
465
|
};
|
|
477
466
|
|
|
@@ -484,8 +473,7 @@ $18faa55a67dca8f3$exports = {
|
|
|
484
473
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
485
474
|
"=0": `无选择`,
|
|
486
475
|
other: ()=>`已选择 ${formatter.number(args.count)} 个`
|
|
487
|
-
})}
|
|
488
|
-
,
|
|
476
|
+
})}`,
|
|
489
477
|
"selectedAll": `全选`
|
|
490
478
|
};
|
|
491
479
|
|
|
@@ -498,8 +486,7 @@ $804c64c525579787$exports = {
|
|
|
498
486
|
"selected": (args, formatter)=>`${formatter.plural(args.count, {
|
|
499
487
|
"=0": `未選取任何項目`,
|
|
500
488
|
other: ()=>`已選取 ${formatter.number(args.count)} 個`
|
|
501
|
-
})}
|
|
502
|
-
,
|
|
489
|
+
})}`,
|
|
503
490
|
"selectedAll": `已選取所有項目`
|
|
504
491
|
};
|
|
505
492
|
|
|
@@ -575,99 +562,108 @@ $7bd9eeb2cd70bd0c$export$adc2706661946993 = "react-spectrum-ActionBar-actionGrou
|
|
|
575
562
|
|
|
576
563
|
function $a4e665fbd087d71e$var$ActionBar(props, ref) {
|
|
577
564
|
let isOpen = props.selectedItemCount !== 0;
|
|
578
|
-
return
|
|
565
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$OpenTransition), {
|
|
579
566
|
in: isOpen,
|
|
580
567
|
mountOnEnter: true,
|
|
581
568
|
unmountOnExit: true
|
|
582
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($a4e665fbd087d71e$var$ActionBarInnerWithRef, {
|
|
569
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement($a4e665fbd087d71e$var$ActionBarInnerWithRef, {
|
|
583
570
|
...props,
|
|
584
571
|
ref: ref
|
|
585
|
-
}))
|
|
572
|
+
}));
|
|
586
573
|
}
|
|
587
574
|
function $a4e665fbd087d71e$var$ActionBarInner(props, ref) {
|
|
588
|
-
props = $N9qJl$useProviderProps(props);
|
|
575
|
+
props = (0, $N9qJl$useProviderProps)(props);
|
|
589
576
|
let { children: children , isEmphasized: isEmphasized , onAction: onAction , onClearSelection: onClearSelection , selectedItemCount: selectedItemCount , isOpen: isOpen } = props;
|
|
590
|
-
let { styleProps: styleProps } = $N9qJl$useStyleProps(props);
|
|
591
|
-
let domRef = $N9qJl$useDOMRef(ref);
|
|
592
|
-
let stringFormatter = $N9qJl$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($992d76e8dd5fee7b$exports)));
|
|
577
|
+
let { styleProps: styleProps } = (0, $N9qJl$useStyleProps)(props);
|
|
578
|
+
let domRef = (0, $N9qJl$useDOMRef)(ref);
|
|
579
|
+
let stringFormatter = (0, $N9qJl$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($992d76e8dd5fee7b$exports))));
|
|
593
580
|
// Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
|
|
594
|
-
let lastCount = $N9qJl$useRef(selectedItemCount);
|
|
595
|
-
if (selectedItemCount ===
|
|
596
|
-
let { keyboardProps: keyboardProps } = $N9qJl$useKeyboard({
|
|
581
|
+
let lastCount = (0, $N9qJl$useRef)(selectedItemCount);
|
|
582
|
+
if (selectedItemCount === "all" || selectedItemCount > 0) lastCount.current = selectedItemCount;
|
|
583
|
+
let { keyboardProps: keyboardProps } = (0, $N9qJl$useKeyboard)({
|
|
597
584
|
onKeyDown (e) {
|
|
598
|
-
if (e.key ===
|
|
585
|
+
if (e.key === "Escape") {
|
|
599
586
|
e.preventDefault();
|
|
600
587
|
onClearSelection();
|
|
601
588
|
}
|
|
602
589
|
}
|
|
603
590
|
});
|
|
604
591
|
// Announce "actions available" on mount.
|
|
605
|
-
$N9qJl$useEffect(()=>{
|
|
606
|
-
$N9qJl$announce(stringFormatter.format(
|
|
592
|
+
(0, $N9qJl$useEffect)(()=>{
|
|
593
|
+
(0, $N9qJl$announce)(stringFormatter.format("actionsAvailable"));
|
|
607
594
|
}, [
|
|
608
595
|
stringFormatter
|
|
609
596
|
]);
|
|
610
|
-
return
|
|
597
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$FocusScope), {
|
|
611
598
|
restoreFocus: true
|
|
612
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement("div", {
|
|
613
|
-
|
|
599
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
600
|
+
...(0, $N9qJl$filterDOMProps)(props),
|
|
614
601
|
...styleProps,
|
|
615
602
|
...keyboardProps,
|
|
616
603
|
ref: domRef,
|
|
617
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
618
|
-
|
|
619
|
-
|
|
604
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar", {
|
|
605
|
+
"react-spectrum-ActionBar--emphasized": isEmphasized,
|
|
606
|
+
"is-open": isOpen
|
|
620
607
|
}, styleProps.className)
|
|
621
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement("div", {
|
|
622
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
623
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$ActionGroup, {
|
|
624
|
-
"aria-label": stringFormatter.format(
|
|
608
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
609
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-bar")
|
|
610
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$ActionGroup), {
|
|
611
|
+
"aria-label": stringFormatter.format("actions"),
|
|
625
612
|
isQuiet: true,
|
|
626
|
-
staticColor: isEmphasized ?
|
|
613
|
+
staticColor: isEmphasized ? "white" : undefined,
|
|
627
614
|
overflowMode: "collapse",
|
|
628
615
|
buttonLabelBehavior: "collapse",
|
|
629
616
|
onAction: onAction,
|
|
630
|
-
UNSAFE_className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
631
|
-
}, children), /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$ActionButton, {
|
|
617
|
+
UNSAFE_className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-actionGroup")
|
|
618
|
+
}, children), /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$ActionButton), {
|
|
632
619
|
gridArea: "clear",
|
|
633
|
-
"aria-label": stringFormatter.format(
|
|
634
|
-
onPress: ()=>onClearSelection()
|
|
635
|
-
,
|
|
620
|
+
"aria-label": stringFormatter.format("clearSelection"),
|
|
621
|
+
onPress: ()=>onClearSelection(),
|
|
636
622
|
isQuiet: true,
|
|
637
|
-
staticColor: isEmphasized ?
|
|
638
|
-
}, /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$spectrumiconsuiCrossLarge, null)), /*#__PURE__*/ $N9qJl$react.createElement($N9qJl$Text, {
|
|
639
|
-
UNSAFE_className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
640
|
-
}, lastCount.current ===
|
|
623
|
+
staticColor: isEmphasized ? "white" : undefined
|
|
624
|
+
}, /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$spectrumiconsuiCrossLarge), null)), /*#__PURE__*/ (0, $N9qJl$react).createElement((0, $N9qJl$Text), {
|
|
625
|
+
UNSAFE_className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "react-spectrum-ActionBar-selectedCount")
|
|
626
|
+
}, lastCount.current === "all" ? stringFormatter.format("selectedAll") : stringFormatter.format("selected", {
|
|
641
627
|
count: lastCount.current
|
|
642
|
-
})))))
|
|
628
|
+
})))));
|
|
643
629
|
}
|
|
644
|
-
const $a4e665fbd087d71e$var$ActionBarInnerWithRef = /*#__PURE__*/ $N9qJl$react.forwardRef($a4e665fbd087d71e$var$ActionBarInner);
|
|
630
|
+
const $a4e665fbd087d71e$var$ActionBarInnerWithRef = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($a4e665fbd087d71e$var$ActionBarInner);
|
|
645
631
|
/**
|
|
646
632
|
* TODO: Add description of component here.
|
|
647
|
-
*/ const $a4e665fbd087d71e$export$e213cebad6250b4a = /*#__PURE__*/ $N9qJl$react.forwardRef($a4e665fbd087d71e$var$ActionBar);
|
|
648
|
-
|
|
633
|
+
*/ const $a4e665fbd087d71e$export$e213cebad6250b4a = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($a4e665fbd087d71e$var$ActionBar);
|
|
649
634
|
|
|
650
635
|
|
|
636
|
+
/*
|
|
637
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
638
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
639
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
640
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
641
|
+
*
|
|
642
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
643
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
644
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
645
|
+
* governing permissions and limitations under the License.
|
|
646
|
+
*/
|
|
651
647
|
|
|
652
648
|
|
|
653
649
|
|
|
654
650
|
|
|
655
651
|
function $2f6c8b20aa071c6d$var$ActionBarContainer(props, ref) {
|
|
656
652
|
// Grabs specific props from the closest Provider (see https://react-spectrum.adobe.com/react-spectrum/Provider.html#property-groups). Remove if your component doesn't support any of the listed props.
|
|
657
|
-
props = $N9qJl$useProviderProps(props);
|
|
653
|
+
props = (0, $N9qJl$useProviderProps)(props);
|
|
658
654
|
let { children: children } = props;
|
|
659
|
-
let { styleProps: styleProps } = $N9qJl$useStyleProps(props);
|
|
660
|
-
let domRef = $N9qJl$useDOMRef(ref);
|
|
661
|
-
return
|
|
662
|
-
|
|
655
|
+
let { styleProps: styleProps } = (0, $N9qJl$useStyleProps)(props);
|
|
656
|
+
let domRef = (0, $N9qJl$useDOMRef)(ref);
|
|
657
|
+
return /*#__PURE__*/ (0, $N9qJl$react).createElement("div", {
|
|
658
|
+
...(0, $N9qJl$filterDOMProps)(props),
|
|
663
659
|
...styleProps,
|
|
664
660
|
ref: domRef,
|
|
665
|
-
className: $N9qJl$classNames((/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports)),
|
|
666
|
-
}, children)
|
|
661
|
+
className: (0, $N9qJl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($7bd9eeb2cd70bd0c$exports))), "ActionBarContainer", styleProps.className)
|
|
662
|
+
}, children);
|
|
667
663
|
}
|
|
668
664
|
/**
|
|
669
665
|
* TODO: Add description of component here.
|
|
670
|
-
*/ const $2f6c8b20aa071c6d$export$ac2eb07f267e434c = /*#__PURE__*/ $N9qJl$react.forwardRef($2f6c8b20aa071c6d$var$ActionBarContainer);
|
|
666
|
+
*/ const $2f6c8b20aa071c6d$export$ac2eb07f267e434c = /*#__PURE__*/ (0, $N9qJl$react).forwardRef($2f6c8b20aa071c6d$var$ActionBarContainer);
|
|
671
667
|
|
|
672
668
|
|
|
673
669
|
|