@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 CHANGED
@@ -1 +1 @@
1
- .ActionBarContainer_cca088{flex-direction:column;display:flex;position:relative}.ActionBarContainer_cca088>:not(.react-spectrum-ActionBar_cca088){min-height:0;flex:1}.ActionBarContainer_cca088>.react-spectrum-ActionBar_cca088{flex:none}.react-spectrum-ActionBar_cca088{transition:height var(--spectrum-global-animation-duration-100,130ms)ease-in-out,opacity var(--spectrum-global-animation-duration-100,130ms)ease-in-out;height:0;opacity:0;width:100%;overflow:hidden}.react-spectrum-ActionBar_cca088.is-open_cca088{height:calc(var(--spectrum-global-dimension-size-600) + var(--spectrum-global-dimension-size-100)*2);opacity:1;transition-delay:0s}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-bar_cca088{display:-ms-grid;-ms-grid-columns:auto max-content minmax(var(--spectrum-global-dimension-size-300),1fr)auto;grid-template-areas:"clear selected.actiongroup";grid-template-columns:auto max-content minmax(var(--spectrum-global-dimension-size-300),1fr)auto;isolation:isolate;padding:var(--spectrum-global-dimension-size-100);bottom:var(--spectrum-global-dimension-size-100);left:var(--spectrum-global-dimension-size-100);right:var(--spectrum-global-dimension-size-100);max-width:960px;background:var(--spectrum-global-color-gray-50);border-radius:var(--spectrum-popover-border-radius,var(--spectrum-alias-border-radius-regular));border-style:solid;border-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));border-color:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark));box-shadow:0 2px 8px var(--spectrum-alias-dropshadow-color);transform:translateY(var(--spectrum-overlay-positive-transform-distance));transition:transform var(--spectrum-global-animation-duration-100,130ms)ease-in-out;justify-content:space-between;align-items:center;margin:0 auto;display:grid;position:absolute}.react-spectrum-ActionBar_cca088.is-open_cca088 .react-spectrum-ActionBar-bar_cca088{transform:translateY(0)}.react-spectrum-ActionBar_cca088.react-spectrum-ActionBar--emphasized_cca088 .react-spectrum-ActionBar-bar_cca088{background:var(--spectrum-global-color-static-blue-700,#0d66d0);color:#fff;box-shadow:0 2px 6px var(--spectrum-alias-dropshadow-color);border:0}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-selectedCount_cca088{padding:0 var(--spectrum-global-dimension-size-50);-webkit-user-select:none;user-select:none;cursor:default;grid-area:selected}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-actionGroup_cca088{min-width:0;grid-area:actiongroup}@media (forced-colors:active){.react-spectrum-ActionBar_cca088.react-spectrum-ActionBar--emphasized_cca088 .react-spectrum-ActionBar-bar_cca088{border:1px solid #0000}}
1
+ .ActionBarContainer_cca088{flex-direction:column;display:flex;position:relative}.ActionBarContainer_cca088>:not(.react-spectrum-ActionBar_cca088){min-height:0;flex:1}.ActionBarContainer_cca088>.react-spectrum-ActionBar_cca088{flex:none}.react-spectrum-ActionBar_cca088{transition:height var(--spectrum-global-animation-duration-100,.13s)ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s)ease-in-out;height:0;opacity:0;width:100%;overflow:hidden}.react-spectrum-ActionBar_cca088.is-open_cca088{height:calc(var(--spectrum-global-dimension-size-600) + var(--spectrum-global-dimension-size-100)*2);opacity:1;transition-delay:0s}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-bar_cca088{display:-ms-grid;-ms-grid-columns:auto max-content minmax(var(--spectrum-global-dimension-size-300),1fr)auto;grid-template-areas:"clear selected.actiongroup";grid-template-columns:auto max-content minmax(var(--spectrum-global-dimension-size-300),1fr)auto;isolation:isolate;padding:var(--spectrum-global-dimension-size-100);bottom:var(--spectrum-global-dimension-size-100);left:var(--spectrum-global-dimension-size-100);right:var(--spectrum-global-dimension-size-100);max-width:960px;background:var(--spectrum-global-color-gray-50);border-radius:var(--spectrum-popover-border-radius,var(--spectrum-alias-border-radius-regular));border-style:solid;border-width:var(--spectrum-popover-border-size,var(--spectrum-alias-border-size-thin));border-color:var(--spectrum-popover-border-color,var(--spectrum-alias-border-color-dark));box-shadow:0 2px 8px var(--spectrum-alias-dropshadow-color);transform:translateY(var(--spectrum-overlay-positive-transform-distance));transition:transform var(--spectrum-global-animation-duration-100,.13s)ease-in-out;justify-content:space-between;align-items:center;margin:0 auto;display:grid;position:absolute}.react-spectrum-ActionBar_cca088.is-open_cca088 .react-spectrum-ActionBar-bar_cca088{transform:translateY(0)}.react-spectrum-ActionBar_cca088.react-spectrum-ActionBar--emphasized_cca088 .react-spectrum-ActionBar-bar_cca088{background:var(--spectrum-global-color-static-blue-700,#0d66d0);color:#fff;box-shadow:0 2px 6px var(--spectrum-alias-dropshadow-color);border:none}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-selectedCount_cca088{padding:0 var(--spectrum-global-dimension-size-50);-webkit-user-select:none;user-select:none;cursor:default;grid-area:selected}.react-spectrum-ActionBar_cca088 .react-spectrum-ActionBar-actionGroup_cca088{min-width:0;grid-area:actiongroup}@media (forced-colors:active){.react-spectrum-ActionBar_cca088.react-spectrum-ActionBar--emphasized_cca088 .react-spectrum-ActionBar-bar_cca088{border:1px solid #0000}}
package/dist/main.js CHANGED
@@ -24,7 +24,28 @@ function $parcel$interopDefault(a) {
24
24
  $parcel$export(module.exports, "ActionBar", () => $7b5467653feb1153$export$e213cebad6250b4a);
25
25
  $parcel$export(module.exports, "ActionBarContainer", () => $961b22d2b8bd2da1$export$ac2eb07f267e434c);
26
26
  $parcel$export(module.exports, "Item", () => $grxqE$reactstatelycollections.Item);
27
-
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
+ */ /// <reference types="css-module-types" />
38
+ /*
39
+ * Copyright 2020 Adobe. All rights reserved.
40
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
41
+ * you may not use this file except in compliance with the License. You may obtain a copy
42
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
43
+ *
44
+ * Unless required by applicable law or agreed to in writing, software distributed under
45
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
46
+ * OF ANY KIND, either express or implied. See the License for the specific language
47
+ * governing permissions and limitations under the License.
48
+ */
28
49
 
29
50
 
30
51
 
@@ -40,8 +61,7 @@ $a42f3d97a30aa6c9$exports = {
40
61
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
41
62
  "=0": `غير محدد`,
42
63
  other: ()=>`${formatter.number(args.count)} محدد`
43
- })}`
44
- ,
64
+ })}`,
45
65
  "selectedAll": `تم تحديد الكل`
46
66
  };
47
67
 
@@ -54,8 +74,7 @@ $527a50f3b3c911b7$exports = {
54
74
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
55
75
  "=0": `Няма избрани`,
56
76
  other: ()=>`${formatter.number(args.count)} избрани`
57
- })}`
58
- ,
77
+ })}`,
59
78
  "selectedAll": `Всички избрани`
60
79
  };
61
80
 
@@ -68,8 +87,7 @@ $cd90476fdc303242$exports = {
68
87
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
69
88
  "=0": `Nic není vybráno`,
70
89
  other: ()=>`Vybráno ${formatter.number(args.count)}`
71
- })}`
72
- ,
90
+ })}`,
73
91
  "selectedAll": `Vybráno vše`
74
92
  };
75
93
 
@@ -82,8 +100,7 @@ $081b7298af5f5b69$exports = {
82
100
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
83
101
  "=0": `Ingen valgt`,
84
102
  other: ()=>`${formatter.number(args.count)} valgt`
85
- })}`
86
- ,
103
+ })}`,
87
104
  "selectedAll": `Alle valgt`
88
105
  };
89
106
 
@@ -96,8 +113,7 @@ $6ef7dffbce87e74f$exports = {
96
113
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
97
114
  "=0": `Nichts ausgewählt`,
98
115
  other: ()=>`${formatter.number(args.count)} ausgewählt`
99
- })}`
100
- ,
116
+ })}`,
101
117
  "selectedAll": `Alles ausgewählt`
102
118
  };
103
119
 
@@ -110,8 +126,7 @@ $43c62672ca45763f$exports = {
110
126
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
111
127
  "=0": `Δεν επιλέχθηκε κανένα`,
112
128
  other: ()=>`Επιλέχθηκαν ${formatter.number(args.count)}`
113
- })}`
114
- ,
129
+ })}`,
115
130
  "selectedAll": `Επιλέχθηκαν όλα`
116
131
  };
117
132
 
@@ -122,8 +137,7 @@ $4a93342b52e9ddcf$exports = {
122
137
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
123
138
  "=0": `None selected`,
124
139
  other: ()=>`${formatter.number(args.count)} selected`
125
- })}`
126
- ,
140
+ })}`,
127
141
  "selectedAll": `All selected`,
128
142
  "actions": `Actions`,
129
143
  "actionsAvailable": `Actions available.`
@@ -138,8 +152,7 @@ $d1fe0a28d16ba803$exports = {
138
152
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
139
153
  "=0": `Nada seleccionado`,
140
154
  other: ()=>`${formatter.number(args.count)} seleccionado`
141
- })}`
142
- ,
155
+ })}`,
143
156
  "selectedAll": `Todo seleccionado`
144
157
  };
145
158
 
@@ -152,8 +165,7 @@ $3f607057b4497412$exports = {
152
165
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
153
166
  "=0": `Pole valitud`,
154
167
  other: ()=>`${formatter.number(args.count)} valitud`
155
- })}`
156
- ,
168
+ })}`,
157
169
  "selectedAll": `Kõik valitud`
158
170
  };
159
171
 
@@ -166,8 +178,7 @@ $dffc096b505cd1a5$exports = {
166
178
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
167
179
  "=0": `Ei mitään valittu`,
168
180
  other: ()=>`${formatter.number(args.count)} valittu`
169
- })}`
170
- ,
181
+ })}`,
171
182
  "selectedAll": `Kaikki valittu`
172
183
  };
173
184
 
@@ -180,8 +191,7 @@ $fced00dcdde4e781$exports = {
180
191
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
181
192
  "=0": `Aucun élément sélectionné`,
182
193
  other: ()=>`${formatter.number(args.count)} sélectionnés`
183
- })}`
184
- ,
194
+ })}`,
185
195
  "selectedAll": `Toute la sélection`
186
196
  };
187
197
 
@@ -194,8 +204,7 @@ $e568cd7cb63d7ce3$exports = {
194
204
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
195
205
  "=0": `לא בוצעה בחירה`,
196
206
  other: ()=>`${formatter.number(args.count)} נבחרו`
197
- })}`
198
- ,
207
+ })}`,
199
208
  "selectedAll": `כל הפריטים שנבחרו`
200
209
  };
201
210
 
@@ -208,8 +217,7 @@ $50951315acf49d05$exports = {
208
217
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
209
218
  "=0": `Nijedna nije odabrana`,
210
219
  other: ()=>`${formatter.number(args.count)} je odabrano`
211
- })}`
212
- ,
220
+ })}`,
213
221
  "selectedAll": `Sve je odabrano`
214
222
  };
215
223
 
@@ -222,8 +230,7 @@ $fd06dc9cc87d0258$exports = {
222
230
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
223
231
  "=0": `Egy sincs kijelölve`,
224
232
  other: ()=>`${formatter.number(args.count)} kijelölve`
225
- })}`
226
- ,
233
+ })}`,
227
234
  "selectedAll": `Mind kijelölve`
228
235
  };
229
236
 
@@ -236,8 +243,7 @@ $9bd9ce3c11c5d11e$exports = {
236
243
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
237
244
  "=0": `Nessuno selezionato`,
238
245
  other: ()=>`${formatter.number(args.count)} selezionato/i`
239
- })}`
240
- ,
246
+ })}`,
241
247
  "selectedAll": `Tutti selezionati`
242
248
  };
243
249
 
@@ -250,8 +256,7 @@ $9f76d796bf707b10$exports = {
250
256
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
251
257
  "=0": `選択されていません`,
252
258
  other: ()=>`${formatter.number(args.count)} 個を選択しました`
253
- })}`
254
- ,
259
+ })}`,
255
260
  "selectedAll": `すべてを選択`
256
261
  };
257
262
 
@@ -264,8 +269,7 @@ $94efe7bbbb291ef4$exports = {
264
269
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
265
270
  "=0": `선택된 항목 없음`,
266
271
  other: ()=>`${formatter.number(args.count)}개 선택됨`
267
- })}`
268
- ,
272
+ })}`,
269
273
  "selectedAll": `모두 선택됨`
270
274
  };
271
275
 
@@ -278,8 +282,7 @@ $92a06c1a52267a65$exports = {
278
282
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
279
283
  "=0": `Nieko nepasirinkta`,
280
284
  other: ()=>`Pasirinkta ${formatter.number(args.count)}`
281
- })}`
282
- ,
285
+ })}`,
283
286
  "selectedAll": `Pasirinkta viskas`
284
287
  };
285
288
 
@@ -292,8 +295,7 @@ $670c23292e727d95$exports = {
292
295
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
293
296
  "=0": `Nav atlasīts nekas`,
294
297
  other: ()=>`Atlasīts: ${formatter.number(args.count)}`
295
- })}`
296
- ,
298
+ })}`,
297
299
  "selectedAll": `Atlasīts viss`
298
300
  };
299
301
 
@@ -306,8 +308,7 @@ $2636117ad082d1ea$exports = {
306
308
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
307
309
  "=0": `Ingen er valgt`,
308
310
  other: ()=>`${formatter.number(args.count)} er valgt`
309
- })}`
310
- ,
311
+ })}`,
311
312
  "selectedAll": `Alle er valgt`
312
313
  };
313
314
 
@@ -320,8 +321,7 @@ $e4ccf12b3bee45db$exports = {
320
321
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
321
322
  "=0": `Niets geselecteerd`,
322
323
  other: ()=>`${formatter.number(args.count)} geselecteerd`
323
- })}`
324
- ,
324
+ })}`,
325
325
  "selectedAll": `Alles geselecteerd`
326
326
  };
327
327
 
@@ -334,8 +334,7 @@ $b259f128f72a6ac6$exports = {
334
334
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
335
335
  "=0": `Nie zaznaczono żadnego elementu`,
336
336
  other: ()=>`${formatter.number(args.count)} zaznaczonych`
337
- })}`
338
- ,
337
+ })}`,
339
338
  "selectedAll": `Wszystkie zaznaczone`
340
339
  };
341
340
 
@@ -348,8 +347,7 @@ $edd692d35256da76$exports = {
348
347
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
349
348
  "=0": `Nada selecionado`,
350
349
  other: ()=>`${formatter.number(args.count)} selecionado`
351
- })}`
352
- ,
350
+ })}`,
353
351
  "selectedAll": `Todos selecionados`
354
352
  };
355
353
 
@@ -362,8 +360,7 @@ $0af50a83741a7f54$exports = {
362
360
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
363
361
  "=0": `Nenhum selecionado`,
364
362
  other: ()=>`${formatter.number(args.count)} selecionado`
365
- })}`
366
- ,
363
+ })}`,
367
364
  "selectedAll": `Tudo selecionado`
368
365
  };
369
366
 
@@ -376,8 +373,7 @@ $1b60e4cd5d1e5b6b$exports = {
376
373
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
377
374
  "=0": `Niciunul selectat`,
378
375
  other: ()=>`${formatter.number(args.count)} selectate`
379
- })}`
380
- ,
376
+ })}`,
381
377
  "selectedAll": `Toate selectate`
382
378
  };
383
379
 
@@ -390,8 +386,7 @@ $e9ca6eba44abffce$exports = {
390
386
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
391
387
  "=0": `Ничего не выбоано`,
392
388
  other: ()=>`${formatter.number(args.count)} выбрано`
393
- })}`
394
- ,
389
+ })}`,
395
390
  "selectedAll": `Выбрано все`
396
391
  };
397
392
 
@@ -404,8 +399,7 @@ $508bfd1ac48eb61a$exports = {
404
399
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
405
400
  "=0": `Žiadne vybraté položky`,
406
401
  other: ()=>`Počet vybratých položiek: ${formatter.number(args.count)}`
407
- })}`
408
- ,
402
+ })}`,
409
403
  "selectedAll": `Všetky vybraté položky`
410
404
  };
411
405
 
@@ -418,8 +412,7 @@ $d785f6c5ba148ce4$exports = {
418
412
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
419
413
  "=0": `Nič izbranih`,
420
414
  other: ()=>`${formatter.number(args.count)} izbranih`
421
- })}`
422
- ,
415
+ })}`,
423
416
  "selectedAll": `Vsi izbrani`
424
417
  };
425
418
 
@@ -432,8 +425,7 @@ $dfc7dc8ff40cea70$exports = {
432
425
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
433
426
  "=0": `Ništa nije izabrano`,
434
427
  other: ()=>`${formatter.number(args.count)} je izabrano`
435
- })}`
436
- ,
428
+ })}`,
437
429
  "selectedAll": `Sve je izabrano`
438
430
  };
439
431
 
@@ -446,8 +438,7 @@ $bea42116379eb09f$exports = {
446
438
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
447
439
  "=0": `Inga markerade`,
448
440
  other: ()=>`${formatter.number(args.count)} markerade`
449
- })}`
450
- ,
441
+ })}`,
451
442
  "selectedAll": `Alla markerade`
452
443
  };
453
444
 
@@ -460,8 +451,7 @@ $dc03da5d819982a5$exports = {
460
451
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
461
452
  "=0": `Hiçbiri seçilmedi`,
462
453
  other: ()=>`${formatter.number(args.count)} seçildi`
463
- })}`
464
- ,
454
+ })}`,
465
455
  "selectedAll": `Tümü seçildi`
466
456
  };
467
457
 
@@ -474,8 +464,7 @@ $c93c67a8485a02db$exports = {
474
464
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
475
465
  "=0": `Нічого не вибрано`,
476
466
  other: ()=>`Вибрано: ${formatter.number(args.count)}`
477
- })}`
478
- ,
467
+ })}`,
479
468
  "selectedAll": `Усе вибрано`
480
469
  };
481
470
 
@@ -488,8 +477,7 @@ $dd336a8fdfa9aa7b$exports = {
488
477
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
489
478
  "=0": `无选择`,
490
479
  other: ()=>`已选择 ${formatter.number(args.count)} 个`
491
- })}`
492
- ,
480
+ })}`,
493
481
  "selectedAll": `全选`
494
482
  };
495
483
 
@@ -502,8 +490,7 @@ $30d1241741295d61$exports = {
502
490
  "selected": (args, formatter)=>`${formatter.plural(args.count, {
503
491
  "=0": `未選取任何項目`,
504
492
  other: ()=>`已選取 ${formatter.number(args.count)} 個`
505
- })}`
506
- ,
493
+ })}`,
507
494
  "selectedAll": `已選取所有項目`
508
495
  };
509
496
 
@@ -579,99 +566,108 @@ $ff24c7bbe0c168db$export$adc2706661946993 = "react-spectrum-ActionBar-actionGrou
579
566
 
580
567
  function $7b5467653feb1153$var$ActionBar(props, ref) {
581
568
  let isOpen = props.selectedItemCount !== 0;
582
- return(/*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($grxqE$reactspectrumoverlays.OpenTransition, {
569
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, $grxqE$reactspectrumoverlays.OpenTransition), {
583
570
  in: isOpen,
584
571
  mountOnEnter: true,
585
572
  unmountOnExit: true
586
- }, /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($7b5467653feb1153$var$ActionBarInnerWithRef, {
573
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement($7b5467653feb1153$var$ActionBarInnerWithRef, {
587
574
  ...props,
588
575
  ref: ref
589
- })));
576
+ }));
590
577
  }
591
578
  function $7b5467653feb1153$var$ActionBarInner(props, ref) {
592
- props = $grxqE$reactspectrumprovider.useProviderProps(props);
579
+ props = (0, $grxqE$reactspectrumprovider.useProviderProps)(props);
593
580
  let { children: children , isEmphasized: isEmphasized , onAction: onAction , onClearSelection: onClearSelection , selectedItemCount: selectedItemCount , isOpen: isOpen } = props;
594
- let { styleProps: styleProps } = $grxqE$reactspectrumutils.useStyleProps(props);
595
- let domRef = $grxqE$reactspectrumutils.useDOMRef(ref);
596
- let stringFormatter = $grxqE$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($304e231322f30cb2$exports)));
581
+ let { styleProps: styleProps } = (0, $grxqE$reactspectrumutils.useStyleProps)(props);
582
+ let domRef = (0, $grxqE$reactspectrumutils.useDOMRef)(ref);
583
+ let stringFormatter = (0, $grxqE$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($304e231322f30cb2$exports))));
597
584
  // Store the last count greater than zero in a ref so that we can retain it while rendering the fade-out animation.
598
- let lastCount = $grxqE$react.useRef(selectedItemCount);
599
- if (selectedItemCount === 'all' || selectedItemCount > 0) lastCount.current = selectedItemCount;
600
- let { keyboardProps: keyboardProps } = $grxqE$reactariainteractions.useKeyboard({
585
+ let lastCount = (0, $grxqE$react.useRef)(selectedItemCount);
586
+ if (selectedItemCount === "all" || selectedItemCount > 0) lastCount.current = selectedItemCount;
587
+ let { keyboardProps: keyboardProps } = (0, $grxqE$reactariainteractions.useKeyboard)({
601
588
  onKeyDown (e) {
602
- if (e.key === 'Escape') {
589
+ if (e.key === "Escape") {
603
590
  e.preventDefault();
604
591
  onClearSelection();
605
592
  }
606
593
  }
607
594
  });
608
595
  // Announce "actions available" on mount.
609
- $grxqE$react.useEffect(()=>{
610
- $grxqE$reactarialiveannouncer.announce(stringFormatter.format('actionsAvailable'));
596
+ (0, $grxqE$react.useEffect)(()=>{
597
+ (0, $grxqE$reactarialiveannouncer.announce)(stringFormatter.format("actionsAvailable"));
611
598
  }, [
612
599
  stringFormatter
613
600
  ]);
614
- return(/*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($grxqE$reactariafocus.FocusScope, {
601
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, $grxqE$reactariafocus.FocusScope), {
615
602
  restoreFocus: true
616
- }, /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement("div", {
617
- ...$grxqE$reactariautils.filterDOMProps(props),
603
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement("div", {
604
+ ...(0, $grxqE$reactariautils.filterDOMProps)(props),
618
605
  ...styleProps,
619
606
  ...keyboardProps,
620
607
  ref: domRef,
621
- className: $grxqE$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports)), 'react-spectrum-ActionBar', {
622
- 'react-spectrum-ActionBar--emphasized': isEmphasized,
623
- 'is-open': isOpen
608
+ className: (0, $grxqE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports))), "react-spectrum-ActionBar", {
609
+ "react-spectrum-ActionBar--emphasized": isEmphasized,
610
+ "is-open": isOpen
624
611
  }, styleProps.className)
625
- }, /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement("div", {
626
- className: $grxqE$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports)), 'react-spectrum-ActionBar-bar')
627
- }, /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($grxqE$reactspectrumactiongroup.ActionGroup, {
628
- "aria-label": stringFormatter.format('actions'),
612
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement("div", {
613
+ className: (0, $grxqE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports))), "react-spectrum-ActionBar-bar")
614
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, $grxqE$reactspectrumactiongroup.ActionGroup), {
615
+ "aria-label": stringFormatter.format("actions"),
629
616
  isQuiet: true,
630
- staticColor: isEmphasized ? 'white' : undefined,
617
+ staticColor: isEmphasized ? "white" : undefined,
631
618
  overflowMode: "collapse",
632
619
  buttonLabelBehavior: "collapse",
633
620
  onAction: onAction,
634
- UNSAFE_className: $grxqE$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports)), 'react-spectrum-ActionBar-actionGroup')
635
- }, children), /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($grxqE$reactspectrumbutton.ActionButton, {
621
+ UNSAFE_className: (0, $grxqE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports))), "react-spectrum-ActionBar-actionGroup")
622
+ }, children), /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, $grxqE$reactspectrumbutton.ActionButton), {
636
623
  gridArea: "clear",
637
- "aria-label": stringFormatter.format('clearSelection'),
638
- onPress: ()=>onClearSelection()
639
- ,
624
+ "aria-label": stringFormatter.format("clearSelection"),
625
+ onPress: ()=>onClearSelection(),
640
626
  isQuiet: true,
641
- staticColor: isEmphasized ? 'white' : undefined
642
- }, /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement(($parcel$interopDefault($grxqE$spectrumiconsuiCrossLarge)), null)), /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement($grxqE$reactspectrumtext.Text, {
643
- UNSAFE_className: $grxqE$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports)), 'react-spectrum-ActionBar-selectedCount')
644
- }, lastCount.current === 'all' ? stringFormatter.format('selectedAll') : stringFormatter.format('selected', {
627
+ staticColor: isEmphasized ? "white" : undefined
628
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, ($parcel$interopDefault($grxqE$spectrumiconsuiCrossLarge))), null)), /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement((0, $grxqE$reactspectrumtext.Text), {
629
+ UNSAFE_className: (0, $grxqE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports))), "react-spectrum-ActionBar-selectedCount")
630
+ }, lastCount.current === "all" ? stringFormatter.format("selectedAll") : stringFormatter.format("selected", {
645
631
  count: lastCount.current
646
- }))))));
632
+ })))));
647
633
  }
648
- const $7b5467653feb1153$var$ActionBarInnerWithRef = /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).forwardRef($7b5467653feb1153$var$ActionBarInner);
634
+ const $7b5467653feb1153$var$ActionBarInnerWithRef = /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).forwardRef($7b5467653feb1153$var$ActionBarInner);
649
635
  /**
650
636
  * TODO: Add description of component here.
651
- */ const $7b5467653feb1153$export$e213cebad6250b4a = /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).forwardRef($7b5467653feb1153$var$ActionBar);
652
-
637
+ */ const $7b5467653feb1153$export$e213cebad6250b4a = /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).forwardRef($7b5467653feb1153$var$ActionBar);
653
638
 
654
639
 
640
+ /*
641
+ * Copyright 2020 Adobe. All rights reserved.
642
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
643
+ * you may not use this file except in compliance with the License. You may obtain a copy
644
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
645
+ *
646
+ * Unless required by applicable law or agreed to in writing, software distributed under
647
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
648
+ * OF ANY KIND, either express or implied. See the License for the specific language
649
+ * governing permissions and limitations under the License.
650
+ */
655
651
 
656
652
 
657
653
 
658
654
 
659
655
  function $961b22d2b8bd2da1$var$ActionBarContainer(props, ref) {
660
656
  // 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.
661
- props = $grxqE$reactspectrumprovider.useProviderProps(props);
657
+ props = (0, $grxqE$reactspectrumprovider.useProviderProps)(props);
662
658
  let { children: children } = props;
663
- let { styleProps: styleProps } = $grxqE$reactspectrumutils.useStyleProps(props);
664
- let domRef = $grxqE$reactspectrumutils.useDOMRef(ref);
665
- return(/*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).createElement("div", {
666
- ...$grxqE$reactariautils.filterDOMProps(props),
659
+ let { styleProps: styleProps } = (0, $grxqE$reactspectrumutils.useStyleProps)(props);
660
+ let domRef = (0, $grxqE$reactspectrumutils.useDOMRef)(ref);
661
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).createElement("div", {
662
+ ...(0, $grxqE$reactariautils.filterDOMProps)(props),
667
663
  ...styleProps,
668
664
  ref: domRef,
669
- className: $grxqE$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports)), 'ActionBarContainer', styleProps.className)
670
- }, children));
665
+ className: (0, $grxqE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ff24c7bbe0c168db$exports))), "ActionBarContainer", styleProps.className)
666
+ }, children);
671
667
  }
672
668
  /**
673
669
  * TODO: Add description of component here.
674
- */ const $961b22d2b8bd2da1$export$ac2eb07f267e434c = /*#__PURE__*/ ($parcel$interopDefault($grxqE$react)).forwardRef($961b22d2b8bd2da1$var$ActionBarContainer);
670
+ */ const $961b22d2b8bd2da1$export$ac2eb07f267e434c = /*#__PURE__*/ (0, ($parcel$interopDefault($grxqE$react))).forwardRef($961b22d2b8bd2da1$var$ActionBarContainer);
675
671
 
676
672
 
677
673