@react-spectrum/dialog 3.8.2 → 3.8.3

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/module.js CHANGED
@@ -359,81 +359,159 @@ $f3fff851f5cc5a1e$exports = {
359
359
 
360
360
  var $78859b019f1ff3c5$exports = {};
361
361
 
362
+ $parcel$export($78859b019f1ff3c5$exports, "buttonGroup", () => $78859b019f1ff3c5$export$9c686a975407e95c, (v) => $78859b019f1ff3c5$export$9c686a975407e95c = v);
363
+ $parcel$export($78859b019f1ff3c5$exports, "buttonGroup-end", () => $78859b019f1ff3c5$export$92daf1b0113da0, (v) => $78859b019f1ff3c5$export$92daf1b0113da0 = v);
364
+ $parcel$export($78859b019f1ff3c5$exports, "closeButton", () => $78859b019f1ff3c5$export$efe229eab43a9869, (v) => $78859b019f1ff3c5$export$efe229eab43a9869 = v);
365
+ $parcel$export($78859b019f1ff3c5$exports, "content", () => $78859b019f1ff3c5$export$a7db06668cad9adb, (v) => $78859b019f1ff3c5$export$a7db06668cad9adb = v);
366
+ $parcel$export($78859b019f1ff3c5$exports, "divider", () => $78859b019f1ff3c5$export$e8c9778bf415dd08, (v) => $78859b019f1ff3c5$export$e8c9778bf415dd08 = v);
367
+ $parcel$export($78859b019f1ff3c5$exports, "focus-ring", () => $78859b019f1ff3c5$export$f39a09f249340e2a, (v) => $78859b019f1ff3c5$export$f39a09f249340e2a = v);
368
+ $parcel$export($78859b019f1ff3c5$exports, "footer", () => $78859b019f1ff3c5$export$adb608be33961c98, (v) => $78859b019f1ff3c5$export$adb608be33961c98 = v);
369
+ $parcel$export($78859b019f1ff3c5$exports, "footer-start", () => $78859b019f1ff3c5$export$ba5cbcdd7db6a805, (v) => $78859b019f1ff3c5$export$ba5cbcdd7db6a805 = v);
370
+ $parcel$export($78859b019f1ff3c5$exports, "header", () => $78859b019f1ff3c5$export$38e42c68cf43b5d4, (v) => $78859b019f1ff3c5$export$38e42c68cf43b5d4 = v);
371
+ $parcel$export($78859b019f1ff3c5$exports, "header-end", () => $78859b019f1ff3c5$export$9ff84a8ef5e6eb7e, (v) => $78859b019f1ff3c5$export$9ff84a8ef5e6eb7e = v);
372
+ $parcel$export($78859b019f1ff3c5$exports, "header-start", () => $78859b019f1ff3c5$export$6e2679145d8d7578, (v) => $78859b019f1ff3c5$export$6e2679145d8d7578 = v);
373
+ $parcel$export($78859b019f1ff3c5$exports, "heading", () => $78859b019f1ff3c5$export$46e4a324ac90507f, (v) => $78859b019f1ff3c5$export$46e4a324ac90507f = v);
374
+ $parcel$export($78859b019f1ff3c5$exports, "heading-start", () => $78859b019f1ff3c5$export$9f99175ea85abb45, (v) => $78859b019f1ff3c5$export$9f99175ea85abb45 = v);
375
+ $parcel$export($78859b019f1ff3c5$exports, "hero", () => $78859b019f1ff3c5$export$124049a9e3d0d4c3, (v) => $78859b019f1ff3c5$export$124049a9e3d0d4c3 = v);
376
+ $parcel$export($78859b019f1ff3c5$exports, "i18nFontFamily", () => $78859b019f1ff3c5$export$8c4ee2c50c22c514, (v) => $78859b019f1ff3c5$export$8c4ee2c50c22c514 = v);
377
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Button", () => $78859b019f1ff3c5$export$1db4cca5b4ade39a, (v) => $78859b019f1ff3c5$export$1db4cca5b4ade39a = v);
362
378
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog", () => $78859b019f1ff3c5$export$4681f3bcac39b2b1, (v) => $78859b019f1ff3c5$export$4681f3bcac39b2b1 = v);
363
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--small", () => $78859b019f1ff3c5$export$5f2d9cc47409bd63, (v) => $78859b019f1ff3c5$export$5f2d9cc47409bd63 = v);
364
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--medium", () => $78859b019f1ff3c5$export$b9b8ef443d0a67ca, (v) => $78859b019f1ff3c5$export$b9b8ef443d0a67ca = v);
379
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--dismissable", () => $78859b019f1ff3c5$export$9461b285d631d575, (v) => $78859b019f1ff3c5$export$9461b285d631d575 = v);
380
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--error", () => $78859b019f1ff3c5$export$6b5beff56972a3b, (v) => $78859b019f1ff3c5$export$6b5beff56972a3b = v);
381
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--fullscreen", () => $78859b019f1ff3c5$export$118506da5d3ee7c4, (v) => $78859b019f1ff3c5$export$118506da5d3ee7c4 = v);
382
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--fullscreenTakeover", () => $78859b019f1ff3c5$export$5c061b2d3664fda9, (v) => $78859b019f1ff3c5$export$5c061b2d3664fda9 = v);
365
383
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--large", () => $78859b019f1ff3c5$export$b73c0c2fca84be2b, (v) => $78859b019f1ff3c5$export$b73c0c2fca84be2b = v);
366
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-hero", () => $78859b019f1ff3c5$export$d405fb0a0231aa1a, (v) => $78859b019f1ff3c5$export$d405fb0a0231aa1a = v);
384
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--medium", () => $78859b019f1ff3c5$export$b9b8ef443d0a67ca, (v) => $78859b019f1ff3c5$export$b9b8ef443d0a67ca = v);
385
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--noDivider", () => $78859b019f1ff3c5$export$22425527a8943917, (v) => $78859b019f1ff3c5$export$22425527a8943917 = v);
386
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--small", () => $78859b019f1ff3c5$export$5f2d9cc47409bd63, (v) => $78859b019f1ff3c5$export$5f2d9cc47409bd63 = v);
387
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--warning", () => $78859b019f1ff3c5$export$4e66396adf61534f, (v) => $78859b019f1ff3c5$export$4e66396adf61534f = v);
388
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-buttonGroup", () => $78859b019f1ff3c5$export$570ae852861555b7, (v) => $78859b019f1ff3c5$export$570ae852861555b7 = v);
389
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-buttonGroup--noFooter", () => $78859b019f1ff3c5$export$39dd75369bf2e830, (v) => $78859b019f1ff3c5$export$39dd75369bf2e830 = v);
390
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-closeButton", () => $78859b019f1ff3c5$export$a8494287d763a75d, (v) => $78859b019f1ff3c5$export$a8494287d763a75d = v);
391
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-content", () => $78859b019f1ff3c5$export$cb8eccd0f3639238, (v) => $78859b019f1ff3c5$export$cb8eccd0f3639238 = v);
392
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-divider", () => $78859b019f1ff3c5$export$dd7633d642d0bc1c, (v) => $78859b019f1ff3c5$export$dd7633d642d0bc1c = v);
393
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-footer", () => $78859b019f1ff3c5$export$3ecb5025a06fe08f, (v) => $78859b019f1ff3c5$export$3ecb5025a06fe08f = v);
367
394
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-grid", () => $78859b019f1ff3c5$export$c03cd5e23af67ff5, (v) => $78859b019f1ff3c5$export$c03cd5e23af67ff5 = v);
395
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-header", () => $78859b019f1ff3c5$export$1e158eaa6363e131, (v) => $78859b019f1ff3c5$export$1e158eaa6363e131 = v);
396
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-header--noTypeIcon", () => $78859b019f1ff3c5$export$141d8fd0950fea8b, (v) => $78859b019f1ff3c5$export$141d8fd0950fea8b = v);
368
397
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-heading", () => $78859b019f1ff3c5$export$94335d73b7b209ec, (v) => $78859b019f1ff3c5$export$94335d73b7b209ec = v);
369
398
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-heading--noHeader", () => $78859b019f1ff3c5$export$ade8307239736e89, (v) => $78859b019f1ff3c5$export$ade8307239736e89 = v);
370
399
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-heading--noTypeIcon", () => $78859b019f1ff3c5$export$c53ac004df29b46, (v) => $78859b019f1ff3c5$export$c53ac004df29b46 = v);
371
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-header", () => $78859b019f1ff3c5$export$1e158eaa6363e131, (v) => $78859b019f1ff3c5$export$1e158eaa6363e131 = v);
372
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-header--noTypeIcon", () => $78859b019f1ff3c5$export$141d8fd0950fea8b, (v) => $78859b019f1ff3c5$export$141d8fd0950fea8b = v);
400
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-hero", () => $78859b019f1ff3c5$export$d405fb0a0231aa1a, (v) => $78859b019f1ff3c5$export$d405fb0a0231aa1a = v);
373
401
  $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-typeIcon", () => $78859b019f1ff3c5$export$5beee9480fc6ff07, (v) => $78859b019f1ff3c5$export$5beee9480fc6ff07 = v);
374
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-divider", () => $78859b019f1ff3c5$export$dd7633d642d0bc1c, (v) => $78859b019f1ff3c5$export$dd7633d642d0bc1c = v);
375
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--noDivider", () => $78859b019f1ff3c5$export$22425527a8943917, (v) => $78859b019f1ff3c5$export$22425527a8943917 = v);
376
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-content", () => $78859b019f1ff3c5$export$cb8eccd0f3639238, (v) => $78859b019f1ff3c5$export$cb8eccd0f3639238 = v);
377
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-footer", () => $78859b019f1ff3c5$export$3ecb5025a06fe08f, (v) => $78859b019f1ff3c5$export$3ecb5025a06fe08f = v);
378
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Button", () => $78859b019f1ff3c5$export$1db4cca5b4ade39a, (v) => $78859b019f1ff3c5$export$1db4cca5b4ade39a = v);
379
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-buttonGroup", () => $78859b019f1ff3c5$export$570ae852861555b7, (v) => $78859b019f1ff3c5$export$570ae852861555b7 = v);
380
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-buttonGroup--noFooter", () => $78859b019f1ff3c5$export$39dd75369bf2e830, (v) => $78859b019f1ff3c5$export$39dd75369bf2e830 = v);
381
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--dismissable", () => $78859b019f1ff3c5$export$9461b285d631d575, (v) => $78859b019f1ff3c5$export$9461b285d631d575 = v);
382
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog-closeButton", () => $78859b019f1ff3c5$export$a8494287d763a75d, (v) => $78859b019f1ff3c5$export$a8494287d763a75d = v);
383
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--error", () => $78859b019f1ff3c5$export$6b5beff56972a3b, (v) => $78859b019f1ff3c5$export$6b5beff56972a3b = v);
384
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--fullscreen", () => $78859b019f1ff3c5$export$118506da5d3ee7c4, (v) => $78859b019f1ff3c5$export$118506da5d3ee7c4 = v);
385
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--fullscreenTakeover", () => $78859b019f1ff3c5$export$5c061b2d3664fda9, (v) => $78859b019f1ff3c5$export$5c061b2d3664fda9 = v);
386
- $parcel$export($78859b019f1ff3c5$exports, "spectrum-Dialog--warning", () => $78859b019f1ff3c5$export$4e66396adf61534f, (v) => $78859b019f1ff3c5$export$4e66396adf61534f = v);
402
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-FocusRing-ring", () => $78859b019f1ff3c5$export$4109102f950813a6, (v) => $78859b019f1ff3c5$export$4109102f950813a6 = v);
403
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-FocusRing", () => $78859b019f1ff3c5$export$24c7f46a6e3605dd, (v) => $78859b019f1ff3c5$export$24c7f46a6e3605dd = v);
404
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-FocusRing--quiet", () => $78859b019f1ff3c5$export$2927016961429360, (v) => $78859b019f1ff3c5$export$2927016961429360 = v);
405
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay", () => $78859b019f1ff3c5$export$39eed38e2296a1d6, (v) => $78859b019f1ff3c5$export$39eed38e2296a1d6 = v);
406
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay--bottom--open", () => $78859b019f1ff3c5$export$a96755f239de61ee, (v) => $78859b019f1ff3c5$export$a96755f239de61ee = v);
407
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay--left--open", () => $78859b019f1ff3c5$export$a85c0c6b6cf8598c, (v) => $78859b019f1ff3c5$export$a85c0c6b6cf8598c = v);
408
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay--open", () => $78859b019f1ff3c5$export$a397eb58038aa381, (v) => $78859b019f1ff3c5$export$a397eb58038aa381 = v);
409
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay--right--open", () => $78859b019f1ff3c5$export$85aaa87e65e040bf, (v) => $78859b019f1ff3c5$export$85aaa87e65e040bf = v);
410
+ $parcel$export($78859b019f1ff3c5$exports, "spectrum-overlay--top--open", () => $78859b019f1ff3c5$export$b9768db7ffc1bc2, (v) => $78859b019f1ff3c5$export$b9768db7ffc1bc2 = v);
411
+ $parcel$export($78859b019f1ff3c5$exports, "typeIcon", () => $78859b019f1ff3c5$export$7c523679e5521442, (v) => $78859b019f1ff3c5$export$7c523679e5521442 = v);
412
+ $parcel$export($78859b019f1ff3c5$exports, "typeIcon-end", () => $78859b019f1ff3c5$export$b050c62b00f90727, (v) => $78859b019f1ff3c5$export$b050c62b00f90727 = v);
413
+ var $78859b019f1ff3c5$export$9c686a975407e95c;
414
+ var $78859b019f1ff3c5$export$92daf1b0113da0;
415
+ var $78859b019f1ff3c5$export$efe229eab43a9869;
416
+ var $78859b019f1ff3c5$export$a7db06668cad9adb;
417
+ var $78859b019f1ff3c5$export$e8c9778bf415dd08;
418
+ var $78859b019f1ff3c5$export$f39a09f249340e2a;
419
+ var $78859b019f1ff3c5$export$adb608be33961c98;
420
+ var $78859b019f1ff3c5$export$ba5cbcdd7db6a805;
421
+ var $78859b019f1ff3c5$export$38e42c68cf43b5d4;
422
+ var $78859b019f1ff3c5$export$9ff84a8ef5e6eb7e;
423
+ var $78859b019f1ff3c5$export$6e2679145d8d7578;
424
+ var $78859b019f1ff3c5$export$46e4a324ac90507f;
425
+ var $78859b019f1ff3c5$export$9f99175ea85abb45;
426
+ var $78859b019f1ff3c5$export$124049a9e3d0d4c3;
427
+ var $78859b019f1ff3c5$export$8c4ee2c50c22c514;
428
+ var $78859b019f1ff3c5$export$1db4cca5b4ade39a;
387
429
  var $78859b019f1ff3c5$export$4681f3bcac39b2b1;
388
- var $78859b019f1ff3c5$export$5f2d9cc47409bd63;
389
- var $78859b019f1ff3c5$export$b9b8ef443d0a67ca;
430
+ var $78859b019f1ff3c5$export$9461b285d631d575;
431
+ var $78859b019f1ff3c5$export$6b5beff56972a3b;
432
+ var $78859b019f1ff3c5$export$118506da5d3ee7c4;
433
+ var $78859b019f1ff3c5$export$5c061b2d3664fda9;
390
434
  var $78859b019f1ff3c5$export$b73c0c2fca84be2b;
391
- var $78859b019f1ff3c5$export$d405fb0a0231aa1a;
435
+ var $78859b019f1ff3c5$export$b9b8ef443d0a67ca;
436
+ var $78859b019f1ff3c5$export$22425527a8943917;
437
+ var $78859b019f1ff3c5$export$5f2d9cc47409bd63;
438
+ var $78859b019f1ff3c5$export$4e66396adf61534f;
439
+ var $78859b019f1ff3c5$export$570ae852861555b7;
440
+ var $78859b019f1ff3c5$export$39dd75369bf2e830;
441
+ var $78859b019f1ff3c5$export$a8494287d763a75d;
442
+ var $78859b019f1ff3c5$export$cb8eccd0f3639238;
443
+ var $78859b019f1ff3c5$export$dd7633d642d0bc1c;
444
+ var $78859b019f1ff3c5$export$3ecb5025a06fe08f;
392
445
  var $78859b019f1ff3c5$export$c03cd5e23af67ff5;
446
+ var $78859b019f1ff3c5$export$1e158eaa6363e131;
447
+ var $78859b019f1ff3c5$export$141d8fd0950fea8b;
393
448
  var $78859b019f1ff3c5$export$94335d73b7b209ec;
394
449
  var $78859b019f1ff3c5$export$ade8307239736e89;
395
450
  var $78859b019f1ff3c5$export$c53ac004df29b46;
396
- var $78859b019f1ff3c5$export$1e158eaa6363e131;
397
- var $78859b019f1ff3c5$export$141d8fd0950fea8b;
451
+ var $78859b019f1ff3c5$export$d405fb0a0231aa1a;
398
452
  var $78859b019f1ff3c5$export$5beee9480fc6ff07;
399
- var $78859b019f1ff3c5$export$dd7633d642d0bc1c;
400
- var $78859b019f1ff3c5$export$22425527a8943917;
401
- var $78859b019f1ff3c5$export$cb8eccd0f3639238;
402
- var $78859b019f1ff3c5$export$3ecb5025a06fe08f;
403
- var $78859b019f1ff3c5$export$1db4cca5b4ade39a;
404
- var $78859b019f1ff3c5$export$570ae852861555b7;
405
- var $78859b019f1ff3c5$export$39dd75369bf2e830;
406
- var $78859b019f1ff3c5$export$9461b285d631d575;
407
- var $78859b019f1ff3c5$export$a8494287d763a75d;
408
- var $78859b019f1ff3c5$export$6b5beff56972a3b;
409
- var $78859b019f1ff3c5$export$118506da5d3ee7c4;
410
- var $78859b019f1ff3c5$export$5c061b2d3664fda9;
411
- var $78859b019f1ff3c5$export$4e66396adf61534f;
412
- $78859b019f1ff3c5$export$4681f3bcac39b2b1 = "spectrum-Dialog_6d8b48";
413
- $78859b019f1ff3c5$export$5f2d9cc47409bd63 = "spectrum-Dialog--small_6d8b48";
414
- $78859b019f1ff3c5$export$b9b8ef443d0a67ca = "spectrum-Dialog--medium_6d8b48";
415
- $78859b019f1ff3c5$export$b73c0c2fca84be2b = "spectrum-Dialog--large_6d8b48";
416
- $78859b019f1ff3c5$export$d405fb0a0231aa1a = "spectrum-Dialog-hero_6d8b48";
417
- $78859b019f1ff3c5$export$c03cd5e23af67ff5 = "spectrum-Dialog-grid_6d8b48";
418
- $78859b019f1ff3c5$export$94335d73b7b209ec = "spectrum-Dialog-heading_6d8b48";
419
- $78859b019f1ff3c5$export$ade8307239736e89 = "spectrum-Dialog-heading--noHeader_6d8b48";
420
- $78859b019f1ff3c5$export$c53ac004df29b46 = "spectrum-Dialog-heading--noTypeIcon_6d8b48";
421
- $78859b019f1ff3c5$export$1e158eaa6363e131 = "spectrum-Dialog-header_6d8b48";
422
- $78859b019f1ff3c5$export$141d8fd0950fea8b = "spectrum-Dialog-header--noTypeIcon_6d8b48";
423
- $78859b019f1ff3c5$export$5beee9480fc6ff07 = "spectrum-Dialog-typeIcon_6d8b48";
424
- $78859b019f1ff3c5$export$dd7633d642d0bc1c = "spectrum-Dialog-divider_6d8b48";
425
- $78859b019f1ff3c5$export$22425527a8943917 = "spectrum-Dialog--noDivider_6d8b48";
426
- $78859b019f1ff3c5$export$cb8eccd0f3639238 = "spectrum-Dialog-content_6d8b48";
427
- $78859b019f1ff3c5$export$3ecb5025a06fe08f = "spectrum-Dialog-footer_6d8b48";
428
- $78859b019f1ff3c5$export$1db4cca5b4ade39a = "spectrum-Button_6d8b48";
429
- $78859b019f1ff3c5$export$570ae852861555b7 = "spectrum-Dialog-buttonGroup_6d8b48";
430
- $78859b019f1ff3c5$export$39dd75369bf2e830 = "spectrum-Dialog-buttonGroup--noFooter_6d8b48";
431
- $78859b019f1ff3c5$export$9461b285d631d575 = "spectrum-Dialog--dismissable_6d8b48";
432
- $78859b019f1ff3c5$export$a8494287d763a75d = "spectrum-Dialog-closeButton_6d8b48";
433
- $78859b019f1ff3c5$export$6b5beff56972a3b = "spectrum-Dialog--error_6d8b48";
434
- $78859b019f1ff3c5$export$118506da5d3ee7c4 = "spectrum-Dialog--fullscreen_6d8b48";
435
- $78859b019f1ff3c5$export$5c061b2d3664fda9 = "spectrum-Dialog--fullscreenTakeover_6d8b48";
436
- $78859b019f1ff3c5$export$4e66396adf61534f = "spectrum-Dialog--warning_6d8b48";
453
+ var $78859b019f1ff3c5$export$4109102f950813a6;
454
+ var $78859b019f1ff3c5$export$24c7f46a6e3605dd;
455
+ var $78859b019f1ff3c5$export$2927016961429360;
456
+ var $78859b019f1ff3c5$export$39eed38e2296a1d6;
457
+ var $78859b019f1ff3c5$export$a96755f239de61ee;
458
+ var $78859b019f1ff3c5$export$a85c0c6b6cf8598c;
459
+ var $78859b019f1ff3c5$export$a397eb58038aa381;
460
+ var $78859b019f1ff3c5$export$85aaa87e65e040bf;
461
+ var $78859b019f1ff3c5$export$b9768db7ffc1bc2;
462
+ var $78859b019f1ff3c5$export$7c523679e5521442;
463
+ var $78859b019f1ff3c5$export$b050c62b00f90727;
464
+ $78859b019f1ff3c5$export$9c686a975407e95c = `h_OVWW_buttonGroup`;
465
+ $78859b019f1ff3c5$export$92daf1b0113da0 = `h_OVWW_buttonGroup-end`;
466
+ $78859b019f1ff3c5$export$efe229eab43a9869 = `h_OVWW_closeButton`;
467
+ $78859b019f1ff3c5$export$a7db06668cad9adb = `h_OVWW_content`;
468
+ $78859b019f1ff3c5$export$e8c9778bf415dd08 = `h_OVWW_divider`;
469
+ $78859b019f1ff3c5$export$f39a09f249340e2a = `h_OVWW_focus-ring`;
470
+ $78859b019f1ff3c5$export$adb608be33961c98 = `h_OVWW_footer`;
471
+ $78859b019f1ff3c5$export$ba5cbcdd7db6a805 = `h_OVWW_footer-start`;
472
+ $78859b019f1ff3c5$export$38e42c68cf43b5d4 = `h_OVWW_header`;
473
+ $78859b019f1ff3c5$export$9ff84a8ef5e6eb7e = `h_OVWW_header-end`;
474
+ $78859b019f1ff3c5$export$6e2679145d8d7578 = `h_OVWW_header-start`;
475
+ $78859b019f1ff3c5$export$46e4a324ac90507f = `h_OVWW_heading`;
476
+ $78859b019f1ff3c5$export$9f99175ea85abb45 = `h_OVWW_heading-start`;
477
+ $78859b019f1ff3c5$export$124049a9e3d0d4c3 = `h_OVWW_hero`;
478
+ $78859b019f1ff3c5$export$8c4ee2c50c22c514 = `h_OVWW_i18nFontFamily`;
479
+ $78859b019f1ff3c5$export$1db4cca5b4ade39a = `h_OVWW_spectrum-Button`;
480
+ $78859b019f1ff3c5$export$4681f3bcac39b2b1 = `h_OVWW_spectrum-Dialog`;
481
+ $78859b019f1ff3c5$export$9461b285d631d575 = `h_OVWW_spectrum-Dialog--dismissable`;
482
+ $78859b019f1ff3c5$export$6b5beff56972a3b = `h_OVWW_spectrum-Dialog--error`;
483
+ $78859b019f1ff3c5$export$118506da5d3ee7c4 = `h_OVWW_spectrum-Dialog--fullscreen`;
484
+ $78859b019f1ff3c5$export$5c061b2d3664fda9 = `h_OVWW_spectrum-Dialog--fullscreenTakeover`;
485
+ $78859b019f1ff3c5$export$b73c0c2fca84be2b = `h_OVWW_spectrum-Dialog--large`;
486
+ $78859b019f1ff3c5$export$b9b8ef443d0a67ca = `h_OVWW_spectrum-Dialog--medium`;
487
+ $78859b019f1ff3c5$export$22425527a8943917 = `h_OVWW_spectrum-Dialog--noDivider`;
488
+ $78859b019f1ff3c5$export$5f2d9cc47409bd63 = `h_OVWW_spectrum-Dialog--small`;
489
+ $78859b019f1ff3c5$export$4e66396adf61534f = `h_OVWW_spectrum-Dialog--warning`;
490
+ $78859b019f1ff3c5$export$570ae852861555b7 = `h_OVWW_spectrum-Dialog-buttonGroup`;
491
+ $78859b019f1ff3c5$export$39dd75369bf2e830 = `h_OVWW_spectrum-Dialog-buttonGroup--noFooter`;
492
+ $78859b019f1ff3c5$export$a8494287d763a75d = `h_OVWW_spectrum-Dialog-closeButton`;
493
+ $78859b019f1ff3c5$export$cb8eccd0f3639238 = `h_OVWW_spectrum-Dialog-content`;
494
+ $78859b019f1ff3c5$export$dd7633d642d0bc1c = `h_OVWW_spectrum-Dialog-divider`;
495
+ $78859b019f1ff3c5$export$3ecb5025a06fe08f = `h_OVWW_spectrum-Dialog-footer`;
496
+ $78859b019f1ff3c5$export$c03cd5e23af67ff5 = `h_OVWW_spectrum-Dialog-grid`;
497
+ $78859b019f1ff3c5$export$1e158eaa6363e131 = `h_OVWW_spectrum-Dialog-header`;
498
+ $78859b019f1ff3c5$export$141d8fd0950fea8b = `h_OVWW_spectrum-Dialog-header--noTypeIcon`;
499
+ $78859b019f1ff3c5$export$94335d73b7b209ec = `h_OVWW_spectrum-Dialog-heading`;
500
+ $78859b019f1ff3c5$export$ade8307239736e89 = `h_OVWW_spectrum-Dialog-heading--noHeader`;
501
+ $78859b019f1ff3c5$export$c53ac004df29b46 = `h_OVWW_spectrum-Dialog-heading--noTypeIcon`;
502
+ $78859b019f1ff3c5$export$d405fb0a0231aa1a = `h_OVWW_spectrum-Dialog-hero`;
503
+ $78859b019f1ff3c5$export$5beee9480fc6ff07 = `h_OVWW_spectrum-Dialog-typeIcon`;
504
+ $78859b019f1ff3c5$export$4109102f950813a6 = `h_OVWW_spectrum-FocusRing-ring`;
505
+ $78859b019f1ff3c5$export$24c7f46a6e3605dd = `h_OVWW_spectrum-FocusRing ${$78859b019f1ff3c5$export$4109102f950813a6}`;
506
+ $78859b019f1ff3c5$export$2927016961429360 = `h_OVWW_spectrum-FocusRing--quiet`;
507
+ $78859b019f1ff3c5$export$39eed38e2296a1d6 = `h_OVWW_spectrum-overlay`;
508
+ $78859b019f1ff3c5$export$a96755f239de61ee = `h_OVWW_spectrum-overlay--bottom--open`;
509
+ $78859b019f1ff3c5$export$a85c0c6b6cf8598c = `h_OVWW_spectrum-overlay--left--open`;
510
+ $78859b019f1ff3c5$export$a397eb58038aa381 = `h_OVWW_spectrum-overlay--open`;
511
+ $78859b019f1ff3c5$export$85aaa87e65e040bf = `h_OVWW_spectrum-overlay--right--open`;
512
+ $78859b019f1ff3c5$export$b9768db7ffc1bc2 = `h_OVWW_spectrum-overlay--top--open`;
513
+ $78859b019f1ff3c5$export$7c523679e5521442 = `h_OVWW_typeIcon`;
514
+ $78859b019f1ff3c5$export$b050c62b00f90727 = `h_OVWW_typeIcon-end`;
437
515
 
438
516
 
439
517
 
@@ -447,15 +525,15 @@ let $99cd51dc4eb569f7$var$sizeMap = {
447
525
  };
448
526
  function $99cd51dc4eb569f7$var$Dialog(props, ref) {
449
527
  props = (0, $b4euU$useSlotProps)(props, "dialog");
450
- let { type: type = "modal" , ...contextProps } = (0, $b4euU$useContext)((0, $97b119e05830ea0d$export$8b93a07348a7730c)) || {};
451
- let { children: children , isDismissable: isDismissable = contextProps.isDismissable , onDismiss: onDismiss = contextProps.onClose , size: size , ...otherProps } = props;
528
+ let { type: type = "modal", ...contextProps } = (0, $b4euU$useContext)((0, $97b119e05830ea0d$export$8b93a07348a7730c)) || {};
529
+ let { children: children, isDismissable: isDismissable = contextProps.isDismissable, onDismiss: onDismiss = contextProps.onClose, size: size, ...otherProps } = props;
452
530
  let stringFormatter = (0, $b4euU$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($f3fff851f5cc5a1e$exports))));
453
- let { styleProps: styleProps } = (0, $b4euU$useStyleProps)(otherProps);
531
+ let { styleProps: styleProps } = (0, $b4euU$useStyleProps)(otherProps);
454
532
  size = type === "popover" ? size || "S" : size || "L";
455
533
  let domRef = (0, $b4euU$useDOMRef)(ref);
456
534
  let gridRef = (0, $b4euU$useRef)();
457
535
  let sizeVariant = $99cd51dc4eb569f7$var$sizeMap[type] || $99cd51dc4eb569f7$var$sizeMap[size];
458
- let { dialogProps: dialogProps , titleProps: titleProps } = (0, $b4euU$useDialog)((0, $b4euU$mergeProps)(contextProps, props), domRef);
536
+ let { dialogProps: dialogProps, titleProps: titleProps } = (0, $b4euU$useDialog)((0, $b4euU$mergeProps)(contextProps, props), domRef);
459
537
  let hasHeader = (0, $b4euU$useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($78859b019f1ff3c5$exports)))["spectrum-Dialog-header"]}`, (0, $b4euU$unwrapDOMRef)(gridRef));
460
538
  let hasHeading = (0, $b4euU$useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($78859b019f1ff3c5$exports)))["spectrum-Dialog-heading"]}`, (0, $b4euU$unwrapDOMRef)(gridRef));
461
539
  let hasFooter = (0, $b4euU$useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($78859b019f1ff3c5$exports)))["spectrum-Dialog-footer"]}`, (0, $b4euU$unwrapDOMRef)(gridRef));
@@ -538,9 +616,9 @@ function $99cd51dc4eb569f7$var$Dialog(props, ref) {
538
616
  /**
539
617
  * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
540
618
  */ function $2a8395160fff9af3$var$AlertDialog(props, ref) {
541
- let { onClose: onClose = ()=>{} } = (0, $b4euU$useContext)((0, $97b119e05830ea0d$export$8b93a07348a7730c)) || {};
542
- let { variant: variant , children: children , primaryActionLabel: primaryActionLabel , secondaryActionLabel: secondaryActionLabel , cancelLabel: cancelLabel , autoFocusButton: autoFocusButton , title: title , isPrimaryActionDisabled: isPrimaryActionDisabled , isSecondaryActionDisabled: isSecondaryActionDisabled , onCancel: onCancel = ()=>{} , onPrimaryAction: onPrimaryAction = ()=>{} , onSecondaryAction: onSecondaryAction = ()=>{} , ...otherProps } = props;
543
- let { styleProps: styleProps } = (0, $b4euU$useStyleProps)(otherProps);
619
+ let { onClose: onClose = ()=>{} } = (0, $b4euU$useContext)((0, $97b119e05830ea0d$export$8b93a07348a7730c)) || {};
620
+ let { variant: variant, children: children, primaryActionLabel: primaryActionLabel, secondaryActionLabel: secondaryActionLabel, cancelLabel: cancelLabel, autoFocusButton: autoFocusButton, title: title, isPrimaryActionDisabled: isPrimaryActionDisabled, isSecondaryActionDisabled: isSecondaryActionDisabled, onCancel: onCancel = ()=>{}, onPrimaryAction: onPrimaryAction = ()=>{}, onSecondaryAction: onSecondaryAction = ()=>{}, ...otherProps } = props;
621
+ let { styleProps: styleProps } = (0, $b4euU$useStyleProps)(otherProps);
544
622
  let stringFormatter = (0, $b4euU$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($f3fff851f5cc5a1e$exports))));
545
623
  let confirmVariant = "primary";
546
624
  if (variant) {
@@ -601,7 +679,7 @@ function $99cd51dc4eb569f7$var$Dialog(props, ref) {
601
679
 
602
680
 
603
681
  function $c412c5ea680c1e4f$var$DialogTrigger(props) {
604
- let { children: children , type: type = "modal" , mobileType: mobileType = type === "popover" ? "modal" : type , hideArrow: hideArrow , targetRef: targetRef , isDismissable: isDismissable , isKeyboardDismissDisabled: isKeyboardDismissDisabled , ...positionProps } = props;
682
+ let { children: children, type: type = "modal", mobileType: mobileType = type === "popover" ? "modal" : type, hideArrow: hideArrow, targetRef: targetRef, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, ...positionProps } = props;
605
683
  if (!Array.isArray(children) || children.length > 2) throw new Error("DialogTrigger must have exactly 2 children");
606
684
  // if a function is passed as the second child, it won't appear in toArray
607
685
  let [trigger, content] = children;
@@ -685,9 +763,9 @@ $c412c5ea680c1e4f$var$DialogTrigger.getCollectionNode = function*(props) {
685
763
  * positioning of the Dialog.
686
764
  */ // We don't want getCollectionNode to show up in the type definition
687
765
  let $c412c5ea680c1e4f$export$2e1e1122cf0cba88 = $c412c5ea680c1e4f$var$DialogTrigger;
688
- function $c412c5ea680c1e4f$var$PopoverTrigger({ state: state , targetRef: targetRef , trigger: trigger , content: content , hideArrow: hideArrow , ...props }) {
766
+ function $c412c5ea680c1e4f$var$PopoverTrigger({ state: state, targetRef: targetRef, trigger: trigger, content: content, hideArrow: hideArrow, ...props }) {
689
767
  let triggerRef = (0, $b4euU$useRef)();
690
- let { triggerProps: triggerProps , overlayProps: overlayProps } = (0, $b4euU$useOverlayTrigger)({
768
+ let { triggerProps: triggerProps, overlayProps: overlayProps } = (0, $b4euU$useOverlayTrigger)({
691
769
  type: "dialog"
692
770
  }, state, triggerRef);
693
771
  let triggerPropsWithRef = {
@@ -709,7 +787,7 @@ function $c412c5ea680c1e4f$var$PopoverTrigger({ state: state , targetRef: target
709
787
  overlay: overlay
710
788
  });
711
789
  }
712
- function $c412c5ea680c1e4f$var$DialogTriggerBase({ type: type , state: state , isDismissable: isDismissable , dialogProps: dialogProps = {} , triggerProps: triggerProps = {} , overlay: overlay , trigger: trigger }) {
790
+ function $c412c5ea680c1e4f$var$DialogTriggerBase({ type: type, state: state, isDismissable: isDismissable, dialogProps: dialogProps = {}, triggerProps: triggerProps = {}, overlay: overlay, trigger: trigger }) {
713
791
  let context = {
714
792
  type: type,
715
793
  onClose: state.close,
@@ -741,7 +819,7 @@ function $c412c5ea680c1e4f$var$DialogTriggerBase({ type: type , state: state , i
741
819
 
742
820
 
743
821
  function $2a9f0ad39ddaa8d9$export$547754aada6e339f(props) {
744
- let { children: children , type: type = "modal" , onDismiss: onDismiss , isDismissable: isDismissable , isKeyboardDismissDisabled: isKeyboardDismissDisabled } = props;
822
+ let { children: children, type: type = "modal", onDismiss: onDismiss, isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled } = props;
745
823
  let childArray = (0, $b4euU$react).Children.toArray(children);
746
824
  if (childArray.length > 1) throw new Error("Only a single child can be passed to DialogContainer.");
747
825
  let [lastChild, setLastChild] = (0, $b4euU$useState)(null);
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;ACVD;;;;;;;;;;CAUC;;;ACVD;;;;;;;;;;CAUC;AAUM,MAAM,4CAAgB,CAAA,GAAA,YAAI,EAAE,cAAkC;;;;;;AEpBrE,4BAAiB;IAAG,SAAS,CAAC,KAAK,CAAC;IAClC,WAAW,CAAC,KAAK,CAAC;AACpB;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,MAAM,CAAC;IACnC,WAAW,CAAC,UAAU,CAAC;AACzB;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,QAA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F,wBAEH,gCAAC,CAAA,GAAA,yCAAY,EAAE;QAAS,OAAO;OAC5B;AAIT;;;AC9MA;;;;;;;;;;CAUC;;;;AAaM,SAAS,0CAAgB,KAAmC;IACjE,IAAI,YACF,SAAQ,QACR,OAAO,qBACP,UAAS,iBACT,cAAa,6BACb,0BAAyB,EAC1B,GAAG;IAEJ,IAAI,aAAa,CAAA,GAAA,YAAI,EAAE,SAAS,QAAQ;IACxC,IAAI,WAAW,SAAS,GACtB,MAAM,IAAI,MAAM;IAGlB,IAAI,CAAC,WAAW,aAAa,GAAG,CAAA,GAAA,eAAO,EAAuB;IAE9D,6EAA6E;IAC7E,0DAA0D;IAC1D,IAAI,QAAQ;IACZ,IAAI,MAAM,QAAQ,WAChB,QAAQ,SAAS,KAAK,CAAA,GAAA,YAAI,EAAE;SACvB,kBAAI,CAAA,GAAA,YAAI,EAAE,eAAe,WAC9B,QAAQ;IAGV,IAAI,SAAS,UAAU,WACrB,aAAa;IAGf,IAAI,UAAU;cACZ;QACA,SAAS;uBACT;IACF;IAEA,IAAI,QAAQ,CAAA,GAAA,6BAAqB,EAAE;QACjC,QAAQ,CAAC,CAAC;QACV,cAAc,CAAA;YACZ,IAAI,CAAC,QACH;QAEJ;IACF;IAEA,qBACE,gCAAC,CAAA,GAAA,YAAI;QACH,OAAO;QACP,MAAM;QACN,eAAe;QACf,2BAA2B;qBAC3B,gCAAC,CAAA,GAAA,yCAAY,EAAE;QAAS,OAAO;OAC5B;AAIT;;;AC9EA;;;;;;;;;;CAUC;;AAUM,SAAS;IACd,IAAI,UAAU,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,yCAAY;IACrC,IAAI,CAAC,SACH,MAAM,IAAI,MAAM;IAGlB,OAAO;QACL,MAAM,QAAQ;QACd;YACE,QAAQ;QACV;IACF;AACF;;","sources":["packages/@react-spectrum/dialog/src/index.ts","packages/@react-spectrum/dialog/src/AlertDialog.tsx","packages/@react-spectrum/dialog/src/Dialog.tsx","packages/@react-spectrum/dialog/src/context.ts","packages/@react-spectrum/dialog/src/*.js","packages/@react-spectrum/dialog/intl/ar-AE.json","packages/@react-spectrum/dialog/intl/bg-BG.json","packages/@react-spectrum/dialog/intl/cs-CZ.json","packages/@react-spectrum/dialog/intl/da-DK.json","packages/@react-spectrum/dialog/intl/de-DE.json","packages/@react-spectrum/dialog/intl/el-GR.json","packages/@react-spectrum/dialog/intl/en-US.json","packages/@react-spectrum/dialog/intl/es-ES.json","packages/@react-spectrum/dialog/intl/et-EE.json","packages/@react-spectrum/dialog/intl/fi-FI.json","packages/@react-spectrum/dialog/intl/fr-FR.json","packages/@react-spectrum/dialog/intl/he-IL.json","packages/@react-spectrum/dialog/intl/hr-HR.json","packages/@react-spectrum/dialog/intl/hu-HU.json","packages/@react-spectrum/dialog/intl/it-IT.json","packages/@react-spectrum/dialog/intl/ja-JP.json","packages/@react-spectrum/dialog/intl/ko-KR.json","packages/@react-spectrum/dialog/intl/lt-LT.json","packages/@react-spectrum/dialog/intl/lv-LV.json","packages/@react-spectrum/dialog/intl/nb-NO.json","packages/@react-spectrum/dialog/intl/nl-NL.json","packages/@react-spectrum/dialog/intl/pl-PL.json","packages/@react-spectrum/dialog/intl/pt-BR.json","packages/@react-spectrum/dialog/intl/pt-PT.json","packages/@react-spectrum/dialog/intl/ro-RO.json","packages/@react-spectrum/dialog/intl/ru-RU.json","packages/@react-spectrum/dialog/intl/sk-SK.json","packages/@react-spectrum/dialog/intl/sl-SI.json","packages/@react-spectrum/dialog/intl/sr-SP.json","packages/@react-spectrum/dialog/intl/sv-SE.json","packages/@react-spectrum/dialog/intl/tr-TR.json","packages/@react-spectrum/dialog/intl/uk-UA.json","packages/@react-spectrum/dialog/intl/zh-CN.json","packages/@react-spectrum/dialog/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dialog/vars.css","packages/@react-spectrum/dialog/src/DialogTrigger.tsx","packages/@react-spectrum/dialog/src/DialogContainer.tsx","packages/@react-spectrum/dialog/src/useDialogContainer.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {AlertDialog} from './AlertDialog';\nexport {Dialog} from './Dialog';\nexport {DialogTrigger} from './DialogTrigger';\nexport {DialogContainer} from './DialogContainer';\nexport {useDialogContainer} from './useDialogContainer';\n\nexport type {SpectrumAlertDialogProps, SpectrumDialogProps, SpectrumDialogContainerProps, SpectrumDialogTriggerProps} from '@react-types/dialog';\nexport type {DialogContainerValue} from './useDialogContainer';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {Button} from '@react-spectrum/button';\nimport {ButtonGroup} from '@react-spectrum/buttongroup';\nimport {chain} from '@react-aria/utils';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Dialog} from './Dialog';\nimport {DialogContext, DialogContextValue} from './context';\nimport {Divider} from '@react-spectrum/divider';\nimport {DOMRef} from '@react-types/shared';\nimport {Heading} from '@react-spectrum/text';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {forwardRef, useContext} from 'react';\nimport {SpectrumAlertDialogProps} from '@react-types/dialog';\nimport {SpectrumButtonProps} from '@react-types/button';\nimport styles from '@adobe/spectrum-css-temp/components/dialog/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n/**\n * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.\n */\nfunction AlertDialog(props: SpectrumAlertDialogProps, ref: DOMRef) {\n let {\n onClose = () => {}\n } = useContext(DialogContext) || {} as DialogContextValue;\n\n let {\n variant,\n children,\n primaryActionLabel,\n secondaryActionLabel,\n cancelLabel,\n autoFocusButton,\n title,\n isPrimaryActionDisabled,\n isSecondaryActionDisabled,\n onCancel = () => {},\n onPrimaryAction = () => {},\n onSecondaryAction = () => {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let confirmVariant: SpectrumButtonProps['variant'] = 'primary';\n if (variant) {\n if (variant === 'confirmation') {\n confirmVariant = 'cta';\n } else if (variant === 'destructive') {\n confirmVariant = 'negative';\n }\n }\n\n return (\n <Dialog\n UNSAFE_style={styleProps.style}\n UNSAFE_className={classNames(styles, {[`spectrum-Dialog--${variant}`]: variant}, styleProps.className)}\n isHidden={styleProps.hidden}\n size=\"M\"\n role=\"alertdialog\"\n ref={ref}>\n <Heading>{title}</Heading>\n {(variant === 'error' || variant === 'warning') &&\n <AlertMedium\n slot=\"typeIcon\"\n aria-label={stringFormatter.format('alert')} />\n }\n <Divider />\n <Content>{children}</Content>\n <ButtonGroup align=\"end\">\n {cancelLabel &&\n <Button\n variant=\"secondary\"\n onPress={() => chain(onClose(), onCancel())}\n autoFocus={autoFocusButton === 'cancel'}>\n {cancelLabel}\n </Button>\n }\n {secondaryActionLabel &&\n <Button\n variant=\"secondary\"\n onPress={() => chain(onClose(), onSecondaryAction())}\n isDisabled={isSecondaryActionDisabled}\n autoFocus={autoFocusButton === 'secondary'}>\n {secondaryActionLabel}\n </Button>\n }\n <Button\n variant={confirmVariant}\n onPress={() => chain(onClose(), onPrimaryAction())}\n isDisabled={isPrimaryActionDisabled}\n autoFocus={autoFocusButton === 'primary'}>\n {primaryActionLabel}\n </Button>\n </ButtonGroup>\n </Dialog>\n );\n}\n\n/**\n * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.\n */\nlet _AlertDialog = forwardRef(AlertDialog);\nexport {_AlertDialog as AlertDialog};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {\n classNames,\n SlotProvider,\n unwrapDOMRef,\n useDOMRef,\n useHasChild,\n useSlotProps,\n useStyleProps\n} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DialogContext, DialogContextValue} from './context';\nimport {DOMRef} from '@react-types/shared';\nimport {Grid} from '@react-spectrum/layout';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useMemo, useRef} from 'react';\nimport {SpectrumDialogProps} from '@react-types/dialog';\nimport styles from '@adobe/spectrum-css-temp/components/dialog/vars.css';\nimport {useDialog} from '@react-aria/dialog';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large',\n fullscreen: 'fullscreen',\n fullscreenTakeover: 'fullscreenTakeover'\n};\n\nfunction Dialog(props: SpectrumDialogProps, ref: DOMRef) {\n props = useSlotProps(props, 'dialog');\n let {\n type = 'modal',\n ...contextProps\n } = useContext(DialogContext) || {} as DialogContextValue;\n let {\n children,\n isDismissable = contextProps.isDismissable,\n onDismiss = contextProps.onClose,\n size,\n ...otherProps\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {styleProps} = useStyleProps(otherProps);\n\n size = type === 'popover' ? (size || 'S') : (size || 'L');\n\n let domRef = useDOMRef(ref);\n let gridRef = useRef();\n let sizeVariant = sizeMap[type] || sizeMap[size];\n let {dialogProps, titleProps} = useDialog(mergeProps(contextProps, props), domRef);\n\n let hasHeader = useHasChild(`.${styles['spectrum-Dialog-header']}`, unwrapDOMRef(gridRef));\n let hasHeading = useHasChild(`.${styles['spectrum-Dialog-heading']}`, unwrapDOMRef(gridRef));\n let hasFooter = useHasChild(`.${styles['spectrum-Dialog-footer']}`, unwrapDOMRef(gridRef));\n let hasTypeIcon = useHasChild(`.${styles['spectrum-Dialog-typeIcon']}`, unwrapDOMRef(gridRef));\n\n let slots = useMemo(() => ({\n hero: {UNSAFE_className: styles['spectrum-Dialog-hero']},\n heading: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-heading', {'spectrum-Dialog-heading--noHeader': !hasHeader, 'spectrum-Dialog-heading--noTypeIcon': !hasTypeIcon}), level: 2, ...titleProps},\n header: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-header', {'spectrum-Dialog-header--noHeading': !hasHeading, 'spectrum-Dialog-header--noTypeIcon': !hasTypeIcon})},\n typeIcon: {UNSAFE_className: styles['spectrum-Dialog-typeIcon']},\n divider: {UNSAFE_className: styles['spectrum-Dialog-divider'], size: 'M'},\n content: {UNSAFE_className: styles['spectrum-Dialog-content']},\n footer: {UNSAFE_className: styles['spectrum-Dialog-footer']},\n buttonGroup: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-buttonGroup', {'spectrum-Dialog-buttonGroup--noFooter': !hasFooter}), align: 'end'}\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }), [hasFooter, hasHeader, titleProps]);\n\n return (\n <section\n {...styleProps}\n {...dialogProps}\n className={classNames(\n styles,\n 'spectrum-Dialog',\n {\n [`spectrum-Dialog--${sizeVariant}`]: sizeVariant,\n 'spectrum-Dialog--dismissable': isDismissable\n },\n styleProps.className\n )}\n ref={domRef}>\n <Grid ref={gridRef} UNSAFE_className={styles['spectrum-Dialog-grid']}>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n {isDismissable &&\n <ActionButton\n UNSAFE_className={styles['spectrum-Dialog-closeButton']}\n isQuiet\n aria-label={stringFormatter.format('dismiss')}\n onPress={onDismiss}>\n <CrossLarge />\n </ActionButton>\n }\n </Grid>\n </section>\n );\n}\n\n/**\n * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.\n * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.\n */\nlet _Dialog = React.forwardRef(Dialog);\nexport {_Dialog as Dialog};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport React, {HTMLAttributes} from 'react';\n\nexport interface DialogContextValue extends HTMLAttributes<HTMLElement> {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n isDismissable?: boolean,\n onClose: () => void\n}\n\nexport const DialogContext = React.createContext<DialogContextValue>(null);\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"alert\": \"تنبيه\",\n \"dismiss\": \"تجاهل\"\n}\n","{\n \"alert\": \"Сигнал\",\n \"dismiss\": \"Отхвърляне\"\n}\n","{\n \"alert\": \"Výstraha\",\n \"dismiss\": \"Odstranit\"\n}\n","{\n \"alert\": \"Advarsel\",\n \"dismiss\": \"Luk\"\n}\n","{\n \"alert\": \"Warnhinweis\",\n \"dismiss\": \"Schließen\"\n}\n","{\n \"alert\": \"Ειδοποίηση\",\n \"dismiss\": \"Απόρριψη\"\n}\n","{\n \"dismiss\": \"Dismiss\",\n \"alert\": \"Alert\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Descartar\"\n}\n","{\n \"alert\": \"Teade\",\n \"dismiss\": \"Lõpeta\"\n}\n","{\n \"alert\": \"Hälytys\",\n \"dismiss\": \"Hylkää\"\n}\n","{\n \"alert\": \"Alerte\",\n \"dismiss\": \"Rejeter\"\n}\n","{\n \"alert\": \"התראה\",\n \"dismiss\": \"התעלם\"\n}\n","{\n \"alert\": \"Upozorenje\",\n \"dismiss\": \"Odbaci\"\n}\n","{\n \"alert\": \"Figyelmeztetés\",\n \"dismiss\": \"Elutasítás\"\n}\n","{\n \"alert\": \"Avviso\",\n \"dismiss\": \"Ignora\"\n}\n","{\n \"alert\": \"アラート\",\n \"dismiss\": \"閉じる\"\n}\n","{\n \"alert\": \"경고\",\n \"dismiss\": \"무시\"\n}\n","{\n \"alert\": \"Įspėjimas\",\n \"dismiss\": \"Atmesti\"\n}\n","{\n \"alert\": \"Brīdinājums\",\n \"dismiss\": \"Nerādīt\"\n}\n","{\n \"alert\": \"Varsel\",\n \"dismiss\": \"Lukk\"\n}\n","{\n \"alert\": \"Melding\",\n \"dismiss\": \"Negeren\"\n}\n","{\n \"alert\": \"Ostrzeżenie\",\n \"dismiss\": \"Zignoruj\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Descartar\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Dispensar\"\n}\n","{\n \"alert\": \"Alertă\",\n \"dismiss\": \"Revocare\"\n}\n","{\n \"alert\": \"Предупреждение\",\n \"dismiss\": \"Пропустить\"\n}\n","{\n \"alert\": \"Upozornenie\",\n \"dismiss\": \"Zrušiť\"\n}\n","{\n \"alert\": \"Opozorilo\",\n \"dismiss\": \"Opusti\"\n}\n","{\n \"alert\": \"Upozorenje\",\n \"dismiss\": \"Odbaci\"\n}\n","{\n \"alert\": \"Varning\",\n \"dismiss\": \"Avvisa\"\n}\n","{\n \"alert\": \"Uyarı\",\n \"dismiss\": \"Kapat\"\n}\n","{\n \"alert\": \"Сигнал тривоги\",\n \"dismiss\": \"Скасувати\"\n}\n","{\n \"alert\": \"警报\",\n \"dismiss\": \"取消\"\n}\n","{\n \"alert\": \"警示\",\n \"dismiss\": \"關閉\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {Modal, Popover, Tray} from '@react-spectrum/overlays';\nimport {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {Fragment, ReactElement, useEffect, useRef} from 'react';\nimport {SpectrumDialogClose, SpectrumDialogProps, SpectrumDialogTriggerProps} from '@react-types/dialog';\nimport {useIsMobileDevice} from '@react-spectrum/utils';\nimport {useOverlayTrigger} from '@react-aria/overlays';\n\nfunction DialogTrigger(props: SpectrumDialogTriggerProps) {\n let {\n children,\n type = 'modal',\n mobileType = type === 'popover' ? 'modal' : type,\n hideArrow,\n targetRef,\n isDismissable,\n isKeyboardDismissDisabled,\n ...positionProps\n } = props;\n if (!Array.isArray(children) || children.length > 2) {\n throw new Error('DialogTrigger must have exactly 2 children');\n }\n // if a function is passed as the second child, it won't appear in toArray\n let [trigger, content] = children as [ReactElement, SpectrumDialogClose];\n\n // On small devices, show a modal or tray instead of a popover.\n let isMobile = useIsMobileDevice();\n if (isMobile) {\n // handle cases where desktop popovers need a close button for the mobile modal view\n if (type !== 'modal' && mobileType === 'modal') {\n isDismissable = true;\n }\n\n type = mobileType;\n }\n\n let state = useOverlayTriggerState(props);\n let wasOpen = useRef(false);\n useEffect(() => {\n wasOpen.current = state.isOpen;\n }, [state.isOpen]);\n\n let isExiting = useRef(false);\n let onExiting = () => isExiting.current = true;\n let onExited = () => isExiting.current = false;\n\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n return () => {\n if ((wasOpen.current || isExiting.current) && type !== 'popover' && type !== 'tray') {\n console.warn('A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.');\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (type === 'popover') {\n return (\n <PopoverTrigger\n {...positionProps}\n state={state}\n targetRef={targetRef}\n trigger={trigger}\n content={content}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}\n hideArrow={hideArrow} />\n );\n }\n\n let renderOverlay = () => {\n switch (type) {\n case 'fullscreen':\n case 'fullscreenTakeover':\n case 'modal':\n return (\n <Modal\n state={state}\n isDismissable={type === 'modal' ? isDismissable : false}\n type={type}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}\n onExiting={onExiting}\n onExited={onExited}>\n {typeof content === 'function' ? content(state.close) : content}\n </Modal>\n );\n case 'tray':\n return (\n <Tray\n state={state}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n {typeof content === 'function' ? content(state.close) : content}\n </Tray>\n );\n }\n };\n\n return (\n <DialogTriggerBase\n type={type}\n state={state}\n isDismissable={isDismissable}\n trigger={trigger}\n overlay={renderOverlay()} />\n );\n}\n\n// Support DialogTrigger inside components using CollectionBuilder.\nDialogTrigger.getCollectionNode = function* (props: SpectrumDialogTriggerProps) {\n // @ts-ignore - seems like types are wrong. Function children work fine.\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, SpectrumDialogClose];\n yield {\n element: trigger,\n wrapper: (element) => (\n <DialogTrigger key={element.key} {...props}>\n {element}\n {content}\n </DialogTrigger>\n )\n };\n};\n\n/**\n * DialogTrigger serves as a wrapper around a Dialog and its associated trigger, linking the Dialog's\n * open state with the trigger's press state. Additionally, it allows you to customize the type and\n * positioning of the Dialog.\n */\n\n// We don't want getCollectionNode to show up in the type definition\nlet _DialogTrigger = DialogTrigger as (props: SpectrumDialogTriggerProps) => JSX.Element;\nexport {_DialogTrigger as DialogTrigger};\n\nfunction PopoverTrigger({state, targetRef, trigger, content, hideArrow, ...props}) {\n let triggerRef = useRef<HTMLElement>();\n let {triggerProps, overlayProps} = useOverlayTrigger({type: 'dialog'}, state, triggerRef);\n\n let triggerPropsWithRef = {\n ...triggerProps,\n ref: targetRef ? undefined : triggerRef\n };\n\n let overlay = (\n <Popover\n {...props}\n hideArrow={hideArrow}\n triggerRef={targetRef || triggerRef}\n state={state}>\n {typeof content === 'function' ? content(state.close) : content}\n </Popover>\n );\n\n return (\n <DialogTriggerBase\n type=\"popover\"\n state={state}\n triggerProps={triggerPropsWithRef}\n dialogProps={overlayProps}\n trigger={trigger}\n overlay={overlay} />\n );\n}\n\ninterface SpectrumDialogTriggerBase {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n state: OverlayTriggerState,\n isDismissable?: boolean,\n dialogProps?: SpectrumDialogProps | {},\n triggerProps?: any,\n overlay: ReactElement,\n trigger: ReactElement\n}\n\nfunction DialogTriggerBase({type, state, isDismissable, dialogProps = {}, triggerProps = {}, overlay, trigger}: SpectrumDialogTriggerBase) {\n let context = {\n type,\n onClose: state.close,\n isDismissable,\n ...dialogProps\n };\n\n return (\n <Fragment>\n <PressResponder\n {...triggerProps}\n onPress={state.toggle}\n isPressed={state.isOpen && type !== 'modal' && type !== 'fullscreen' && type !== 'fullscreenTakeover'}>\n {trigger}\n </PressResponder>\n <DialogContext.Provider value={context}>\n {overlay}\n </DialogContext.Provider>\n </Fragment>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {Modal} from '@react-spectrum/overlays';\nimport React, {ReactElement, useState} from 'react';\nimport {SpectrumDialogContainerProps} from '@react-types/dialog';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\n/**\n * A DialogContainer accepts a single Dialog as a child, and manages showing and hiding\n * it in a modal. Useful in cases where there is no trigger element\n * or when the trigger unmounts while the dialog is open.\n */\nexport function DialogContainer(props: SpectrumDialogContainerProps) {\n let {\n children,\n type = 'modal',\n onDismiss,\n isDismissable,\n isKeyboardDismissDisabled\n } = props;\n\n let childArray = React.Children.toArray(children);\n if (childArray.length > 1) {\n throw new Error('Only a single child can be passed to DialogContainer.');\n }\n\n let [lastChild, setLastChild] = useState<ReactElement | null>(null);\n\n // React.Children.toArray mutates the children, and we need them to be stable\n // between renders so that the lastChild comparison works.\n let child = null;\n if (Array.isArray(children)) {\n child = children.find(React.isValidElement);\n } else if (React.isValidElement(children)) {\n child = children;\n }\n\n if (child && child !== lastChild) {\n setLastChild(child);\n }\n\n let context = {\n type,\n onClose: onDismiss,\n isDismissable\n };\n\n let state = useOverlayTriggerState({\n isOpen: !!child,\n onOpenChange: isOpen => {\n if (!isOpen) {\n onDismiss();\n }\n }\n });\n\n return (\n <Modal\n state={state}\n type={type}\n isDismissable={isDismissable}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n <DialogContext.Provider value={context}>\n {lastChild}\n </DialogContext.Provider>\n </Modal>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {useContext} from 'react';\n\nexport interface DialogContainerValue {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n dismiss(): void\n}\n\nexport function useDialogContainer(): DialogContainerValue {\n let context = useContext(DialogContext);\n if (!context) {\n throw new Error('Cannot call useDialogContext outside a <DialogTrigger> or <DialogContainer>.');\n }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AI,aAAa,CAAA,GAAA,YAAI,EAAE,SAAS,QAAQ;IACxC,IAAI,WAAW,SAAS,GACtB,MAAM,IAAI,MAAM;IAGlB,IAAI,CAAC,WAAW,aAAa,GAAG,CAAA,GAAA,eAAO,EAAuB;IAE9D,6EAA6E;IAC7E,0DAA0D;IAC1D,IAAI,QAAQ;IACZ,IAAI,MAAM,QAAQ,WAChB,QAAQ,SAAS,KAAK,CAAA,GAAA,YAAI,EAAE;SACvB,kBAAI,CAAA,GAAA,YAAI,EAAE,eAAe,WAC9B,QAAQ;IAGV,IAAI,SAAS,UAAU,WACrB,aAAa;IAGf,IAAI,UAAU;cACZ;QACA,SAAS;uBACT;IACF;IAEA,IAAI,QAAQ,CAAA,GAAA,6BAAqB,EAAE;QACjC,QAAQ,CAAC,CAAC;QACV,cAAc,CAAA;YACZ,IAAI,CAAC,QACH;QAEJ;IACF;IAEA,qBACE,gCAAC,CAAA,GAAA,YAAI;QACH,OAAO;QACP,MAAM;QACN,eAAe;QACf,2BAA2B;qBAC3B,gCAAC,CAAA,GAAA,yCAAY,EAAE;QAAS,OAAO;OAC5B;AAIT;;;AC9EA;;;;;;;;;;CAUC;;AAUM,SAAS;IACd,IAAI,UAAU,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,yCAAY;IACrC,IAAI,CAAC,SACH,MAAM,IAAI,MAAM;IAGlB,OAAO;QACL,MAAM,QAAQ;QACd;YACE,QAAQ;QACV;IACF;AACF;;","sources":["packages/@react-spectrum/dialog/src/index.ts","packages/@react-spectrum/dialog/src/AlertDialog.tsx","packages/@react-spectrum/dialog/src/Dialog.tsx","packages/@react-spectrum/dialog/src/context.ts","packages/@react-spectrum/dialog/src/*.js","packages/@react-spectrum/dialog/intl/ar-AE.json","packages/@react-spectrum/dialog/intl/bg-BG.json","packages/@react-spectrum/dialog/intl/cs-CZ.json","packages/@react-spectrum/dialog/intl/da-DK.json","packages/@react-spectrum/dialog/intl/de-DE.json","packages/@react-spectrum/dialog/intl/el-GR.json","packages/@react-spectrum/dialog/intl/en-US.json","packages/@react-spectrum/dialog/intl/es-ES.json","packages/@react-spectrum/dialog/intl/et-EE.json","packages/@react-spectrum/dialog/intl/fi-FI.json","packages/@react-spectrum/dialog/intl/fr-FR.json","packages/@react-spectrum/dialog/intl/he-IL.json","packages/@react-spectrum/dialog/intl/hr-HR.json","packages/@react-spectrum/dialog/intl/hu-HU.json","packages/@react-spectrum/dialog/intl/it-IT.json","packages/@react-spectrum/dialog/intl/ja-JP.json","packages/@react-spectrum/dialog/intl/ko-KR.json","packages/@react-spectrum/dialog/intl/lt-LT.json","packages/@react-spectrum/dialog/intl/lv-LV.json","packages/@react-spectrum/dialog/intl/nb-NO.json","packages/@react-spectrum/dialog/intl/nl-NL.json","packages/@react-spectrum/dialog/intl/pl-PL.json","packages/@react-spectrum/dialog/intl/pt-BR.json","packages/@react-spectrum/dialog/intl/pt-PT.json","packages/@react-spectrum/dialog/intl/ro-RO.json","packages/@react-spectrum/dialog/intl/ru-RU.json","packages/@react-spectrum/dialog/intl/sk-SK.json","packages/@react-spectrum/dialog/intl/sl-SI.json","packages/@react-spectrum/dialog/intl/sr-SP.json","packages/@react-spectrum/dialog/intl/sv-SE.json","packages/@react-spectrum/dialog/intl/tr-TR.json","packages/@react-spectrum/dialog/intl/uk-UA.json","packages/@react-spectrum/dialog/intl/zh-CN.json","packages/@react-spectrum/dialog/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/dialog/vars.css","packages/@react-spectrum/dialog/src/DialogTrigger.tsx","packages/@react-spectrum/dialog/src/DialogContainer.tsx","packages/@react-spectrum/dialog/src/useDialogContainer.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {AlertDialog} from './AlertDialog';\nexport {Dialog} from './Dialog';\nexport {DialogTrigger} from './DialogTrigger';\nexport {DialogContainer} from './DialogContainer';\nexport {useDialogContainer} from './useDialogContainer';\n\nexport type {SpectrumAlertDialogProps, SpectrumDialogProps, SpectrumDialogContainerProps, SpectrumDialogTriggerProps} from '@react-types/dialog';\nexport type {DialogContainerValue} from './useDialogContainer';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {Button} from '@react-spectrum/button';\nimport {ButtonGroup} from '@react-spectrum/buttongroup';\nimport {chain} from '@react-aria/utils';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {Content} from '@react-spectrum/view';\nimport {Dialog} from './Dialog';\nimport {DialogContext, DialogContextValue} from './context';\nimport {Divider} from '@react-spectrum/divider';\nimport {DOMRef} from '@react-types/shared';\nimport {Heading} from '@react-spectrum/text';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {forwardRef, useContext} from 'react';\nimport {SpectrumAlertDialogProps} from '@react-types/dialog';\nimport {SpectrumButtonProps} from '@react-types/button';\nimport styles from '@adobe/spectrum-css-temp/components/dialog/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n/**\n * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.\n */\nfunction AlertDialog(props: SpectrumAlertDialogProps, ref: DOMRef) {\n let {\n onClose = () => {}\n } = useContext(DialogContext) || {} as DialogContextValue;\n\n let {\n variant,\n children,\n primaryActionLabel,\n secondaryActionLabel,\n cancelLabel,\n autoFocusButton,\n title,\n isPrimaryActionDisabled,\n isSecondaryActionDisabled,\n onCancel = () => {},\n onPrimaryAction = () => {},\n onSecondaryAction = () => {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let confirmVariant: SpectrumButtonProps['variant'] = 'primary';\n if (variant) {\n if (variant === 'confirmation') {\n confirmVariant = 'cta';\n } else if (variant === 'destructive') {\n confirmVariant = 'negative';\n }\n }\n\n return (\n <Dialog\n UNSAFE_style={styleProps.style}\n UNSAFE_className={classNames(styles, {[`spectrum-Dialog--${variant}`]: variant}, styleProps.className)}\n isHidden={styleProps.hidden}\n size=\"M\"\n role=\"alertdialog\"\n ref={ref}>\n <Heading>{title}</Heading>\n {(variant === 'error' || variant === 'warning') &&\n <AlertMedium\n slot=\"typeIcon\"\n aria-label={stringFormatter.format('alert')} />\n }\n <Divider />\n <Content>{children}</Content>\n <ButtonGroup align=\"end\">\n {cancelLabel &&\n <Button\n variant=\"secondary\"\n onPress={() => chain(onClose(), onCancel())}\n autoFocus={autoFocusButton === 'cancel'}>\n {cancelLabel}\n </Button>\n }\n {secondaryActionLabel &&\n <Button\n variant=\"secondary\"\n onPress={() => chain(onClose(), onSecondaryAction())}\n isDisabled={isSecondaryActionDisabled}\n autoFocus={autoFocusButton === 'secondary'}>\n {secondaryActionLabel}\n </Button>\n }\n <Button\n variant={confirmVariant}\n onPress={() => chain(onClose(), onPrimaryAction())}\n isDisabled={isPrimaryActionDisabled}\n autoFocus={autoFocusButton === 'primary'}>\n {primaryActionLabel}\n </Button>\n </ButtonGroup>\n </Dialog>\n );\n}\n\n/**\n * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.\n */\nlet _AlertDialog = forwardRef(AlertDialog);\nexport {_AlertDialog as AlertDialog};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ActionButton} from '@react-spectrum/button';\nimport {\n classNames,\n SlotProvider,\n unwrapDOMRef,\n useDOMRef,\n useHasChild,\n useSlotProps,\n useStyleProps\n} from '@react-spectrum/utils';\nimport CrossLarge from '@spectrum-icons/ui/CrossLarge';\nimport {DialogContext, DialogContextValue} from './context';\nimport {DOMRef} from '@react-types/shared';\nimport {Grid} from '@react-spectrum/layout';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {useContext, useMemo, useRef} from 'react';\nimport {SpectrumDialogProps} from '@react-types/dialog';\nimport styles from '@adobe/spectrum-css-temp/components/dialog/vars.css';\nimport {useDialog} from '@react-aria/dialog';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nlet sizeMap = {\n S: 'small',\n M: 'medium',\n L: 'large',\n fullscreen: 'fullscreen',\n fullscreenTakeover: 'fullscreenTakeover'\n};\n\nfunction Dialog(props: SpectrumDialogProps, ref: DOMRef) {\n props = useSlotProps(props, 'dialog');\n let {\n type = 'modal',\n ...contextProps\n } = useContext(DialogContext) || {} as DialogContextValue;\n let {\n children,\n isDismissable = contextProps.isDismissable,\n onDismiss = contextProps.onClose,\n size,\n ...otherProps\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let {styleProps} = useStyleProps(otherProps);\n\n size = type === 'popover' ? (size || 'S') : (size || 'L');\n\n let domRef = useDOMRef(ref);\n let gridRef = useRef();\n let sizeVariant = sizeMap[type] || sizeMap[size];\n let {dialogProps, titleProps} = useDialog(mergeProps(contextProps, props), domRef);\n\n let hasHeader = useHasChild(`.${styles['spectrum-Dialog-header']}`, unwrapDOMRef(gridRef));\n let hasHeading = useHasChild(`.${styles['spectrum-Dialog-heading']}`, unwrapDOMRef(gridRef));\n let hasFooter = useHasChild(`.${styles['spectrum-Dialog-footer']}`, unwrapDOMRef(gridRef));\n let hasTypeIcon = useHasChild(`.${styles['spectrum-Dialog-typeIcon']}`, unwrapDOMRef(gridRef));\n\n let slots = useMemo(() => ({\n hero: {UNSAFE_className: styles['spectrum-Dialog-hero']},\n heading: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-heading', {'spectrum-Dialog-heading--noHeader': !hasHeader, 'spectrum-Dialog-heading--noTypeIcon': !hasTypeIcon}), level: 2, ...titleProps},\n header: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-header', {'spectrum-Dialog-header--noHeading': !hasHeading, 'spectrum-Dialog-header--noTypeIcon': !hasTypeIcon})},\n typeIcon: {UNSAFE_className: styles['spectrum-Dialog-typeIcon']},\n divider: {UNSAFE_className: styles['spectrum-Dialog-divider'], size: 'M'},\n content: {UNSAFE_className: styles['spectrum-Dialog-content']},\n footer: {UNSAFE_className: styles['spectrum-Dialog-footer']},\n buttonGroup: {UNSAFE_className: classNames(styles, 'spectrum-Dialog-buttonGroup', {'spectrum-Dialog-buttonGroup--noFooter': !hasFooter}), align: 'end'}\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }), [hasFooter, hasHeader, titleProps]);\n\n return (\n <section\n {...styleProps}\n {...dialogProps}\n className={classNames(\n styles,\n 'spectrum-Dialog',\n {\n [`spectrum-Dialog--${sizeVariant}`]: sizeVariant,\n 'spectrum-Dialog--dismissable': isDismissable\n },\n styleProps.className\n )}\n ref={domRef}>\n <Grid ref={gridRef} UNSAFE_className={styles['spectrum-Dialog-grid']}>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n {isDismissable &&\n <ActionButton\n UNSAFE_className={styles['spectrum-Dialog-closeButton']}\n isQuiet\n aria-label={stringFormatter.format('dismiss')}\n onPress={onDismiss}>\n <CrossLarge />\n </ActionButton>\n }\n </Grid>\n </section>\n );\n}\n\n/**\n * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.\n * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.\n */\nlet _Dialog = React.forwardRef(Dialog);\nexport {_Dialog as Dialog};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport React, {HTMLAttributes} from 'react';\n\nexport interface DialogContextValue extends HTMLAttributes<HTMLElement> {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n isDismissable?: boolean,\n onClose: () => void\n}\n\nexport const DialogContext = React.createContext<DialogContextValue>(null);\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"alert\": \"تنبيه\",\n \"dismiss\": \"تجاهل\"\n}\n","{\n \"alert\": \"Сигнал\",\n \"dismiss\": \"Отхвърляне\"\n}\n","{\n \"alert\": \"Výstraha\",\n \"dismiss\": \"Odstranit\"\n}\n","{\n \"alert\": \"Advarsel\",\n \"dismiss\": \"Luk\"\n}\n","{\n \"alert\": \"Warnhinweis\",\n \"dismiss\": \"Schließen\"\n}\n","{\n \"alert\": \"Ειδοποίηση\",\n \"dismiss\": \"Απόρριψη\"\n}\n","{\n \"dismiss\": \"Dismiss\",\n \"alert\": \"Alert\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Descartar\"\n}\n","{\n \"alert\": \"Teade\",\n \"dismiss\": \"Lõpeta\"\n}\n","{\n \"alert\": \"Hälytys\",\n \"dismiss\": \"Hylkää\"\n}\n","{\n \"alert\": \"Alerte\",\n \"dismiss\": \"Rejeter\"\n}\n","{\n \"alert\": \"התראה\",\n \"dismiss\": \"התעלם\"\n}\n","{\n \"alert\": \"Upozorenje\",\n \"dismiss\": \"Odbaci\"\n}\n","{\n \"alert\": \"Figyelmeztetés\",\n \"dismiss\": \"Elutasítás\"\n}\n","{\n \"alert\": \"Avviso\",\n \"dismiss\": \"Ignora\"\n}\n","{\n \"alert\": \"アラート\",\n \"dismiss\": \"閉じる\"\n}\n","{\n \"alert\": \"경고\",\n \"dismiss\": \"무시\"\n}\n","{\n \"alert\": \"Įspėjimas\",\n \"dismiss\": \"Atmesti\"\n}\n","{\n \"alert\": \"Brīdinājums\",\n \"dismiss\": \"Nerādīt\"\n}\n","{\n \"alert\": \"Varsel\",\n \"dismiss\": \"Lukk\"\n}\n","{\n \"alert\": \"Melding\",\n \"dismiss\": \"Negeren\"\n}\n","{\n \"alert\": \"Ostrzeżenie\",\n \"dismiss\": \"Zignoruj\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Descartar\"\n}\n","{\n \"alert\": \"Alerta\",\n \"dismiss\": \"Dispensar\"\n}\n","{\n \"alert\": \"Alertă\",\n \"dismiss\": \"Revocare\"\n}\n","{\n \"alert\": \"Предупреждение\",\n \"dismiss\": \"Пропустить\"\n}\n","{\n \"alert\": \"Upozornenie\",\n \"dismiss\": \"Zrušiť\"\n}\n","{\n \"alert\": \"Opozorilo\",\n \"dismiss\": \"Opusti\"\n}\n","{\n \"alert\": \"Upozorenje\",\n \"dismiss\": \"Odbaci\"\n}\n","{\n \"alert\": \"Varning\",\n \"dismiss\": \"Avvisa\"\n}\n","{\n \"alert\": \"Uyarı\",\n \"dismiss\": \"Kapat\"\n}\n","{\n \"alert\": \"Сигнал тривоги\",\n \"dismiss\": \"Скасувати\"\n}\n","{\n \"alert\": \"警报\",\n \"dismiss\": \"取消\"\n}\n","{\n \"alert\": \"警示\",\n \"dismiss\": \"關閉\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {Modal, Popover, Tray} from '@react-spectrum/overlays';\nimport {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {Fragment, ReactElement, useEffect, useRef} from 'react';\nimport {SpectrumDialogClose, SpectrumDialogProps, SpectrumDialogTriggerProps} from '@react-types/dialog';\nimport {useIsMobileDevice} from '@react-spectrum/utils';\nimport {useOverlayTrigger} from '@react-aria/overlays';\n\nfunction DialogTrigger(props: SpectrumDialogTriggerProps) {\n let {\n children,\n type = 'modal',\n mobileType = type === 'popover' ? 'modal' : type,\n hideArrow,\n targetRef,\n isDismissable,\n isKeyboardDismissDisabled,\n ...positionProps\n } = props;\n if (!Array.isArray(children) || children.length > 2) {\n throw new Error('DialogTrigger must have exactly 2 children');\n }\n // if a function is passed as the second child, it won't appear in toArray\n let [trigger, content] = children as [ReactElement, SpectrumDialogClose];\n\n // On small devices, show a modal or tray instead of a popover.\n let isMobile = useIsMobileDevice();\n if (isMobile) {\n // handle cases where desktop popovers need a close button for the mobile modal view\n if (type !== 'modal' && mobileType === 'modal') {\n isDismissable = true;\n }\n\n type = mobileType;\n }\n\n let state = useOverlayTriggerState(props);\n let wasOpen = useRef(false);\n useEffect(() => {\n wasOpen.current = state.isOpen;\n }, [state.isOpen]);\n\n let isExiting = useRef(false);\n let onExiting = () => isExiting.current = true;\n let onExited = () => isExiting.current = false;\n\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n return () => {\n if ((wasOpen.current || isExiting.current) && type !== 'popover' && type !== 'tray') {\n console.warn('A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.');\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (type === 'popover') {\n return (\n <PopoverTrigger\n {...positionProps}\n state={state}\n targetRef={targetRef}\n trigger={trigger}\n content={content}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}\n hideArrow={hideArrow} />\n );\n }\n\n let renderOverlay = () => {\n switch (type) {\n case 'fullscreen':\n case 'fullscreenTakeover':\n case 'modal':\n return (\n <Modal\n state={state}\n isDismissable={type === 'modal' ? isDismissable : false}\n type={type}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}\n onExiting={onExiting}\n onExited={onExited}>\n {typeof content === 'function' ? content(state.close) : content}\n </Modal>\n );\n case 'tray':\n return (\n <Tray\n state={state}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n {typeof content === 'function' ? content(state.close) : content}\n </Tray>\n );\n }\n };\n\n return (\n <DialogTriggerBase\n type={type}\n state={state}\n isDismissable={isDismissable}\n trigger={trigger}\n overlay={renderOverlay()} />\n );\n}\n\n// Support DialogTrigger inside components using CollectionBuilder.\nDialogTrigger.getCollectionNode = function* (props: SpectrumDialogTriggerProps) {\n // @ts-ignore - seems like types are wrong. Function children work fine.\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, SpectrumDialogClose];\n yield {\n element: trigger,\n wrapper: (element) => (\n <DialogTrigger key={element.key} {...props}>\n {element}\n {content}\n </DialogTrigger>\n )\n };\n};\n\n/**\n * DialogTrigger serves as a wrapper around a Dialog and its associated trigger, linking the Dialog's\n * open state with the trigger's press state. Additionally, it allows you to customize the type and\n * positioning of the Dialog.\n */\n\n// We don't want getCollectionNode to show up in the type definition\nlet _DialogTrigger = DialogTrigger as (props: SpectrumDialogTriggerProps) => JSX.Element;\nexport {_DialogTrigger as DialogTrigger};\n\nfunction PopoverTrigger({state, targetRef, trigger, content, hideArrow, ...props}) {\n let triggerRef = useRef<HTMLElement>();\n let {triggerProps, overlayProps} = useOverlayTrigger({type: 'dialog'}, state, triggerRef);\n\n let triggerPropsWithRef = {\n ...triggerProps,\n ref: targetRef ? undefined : triggerRef\n };\n\n let overlay = (\n <Popover\n {...props}\n hideArrow={hideArrow}\n triggerRef={targetRef || triggerRef}\n state={state}>\n {typeof content === 'function' ? content(state.close) : content}\n </Popover>\n );\n\n return (\n <DialogTriggerBase\n type=\"popover\"\n state={state}\n triggerProps={triggerPropsWithRef}\n dialogProps={overlayProps}\n trigger={trigger}\n overlay={overlay} />\n );\n}\n\ninterface SpectrumDialogTriggerBase {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n state: OverlayTriggerState,\n isDismissable?: boolean,\n dialogProps?: SpectrumDialogProps | {},\n triggerProps?: any,\n overlay: ReactElement,\n trigger: ReactElement\n}\n\nfunction DialogTriggerBase({type, state, isDismissable, dialogProps = {}, triggerProps = {}, overlay, trigger}: SpectrumDialogTriggerBase) {\n let context = {\n type,\n onClose: state.close,\n isDismissable,\n ...dialogProps\n };\n\n return (\n <Fragment>\n <PressResponder\n {...triggerProps}\n onPress={state.toggle}\n isPressed={state.isOpen && type !== 'modal' && type !== 'fullscreen' && type !== 'fullscreenTakeover'}>\n {trigger}\n </PressResponder>\n <DialogContext.Provider value={context}>\n {overlay}\n </DialogContext.Provider>\n </Fragment>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {Modal} from '@react-spectrum/overlays';\nimport React, {ReactElement, useState} from 'react';\nimport {SpectrumDialogContainerProps} from '@react-types/dialog';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\n/**\n * A DialogContainer accepts a single Dialog as a child, and manages showing and hiding\n * it in a modal. Useful in cases where there is no trigger element\n * or when the trigger unmounts while the dialog is open.\n */\nexport function DialogContainer(props: SpectrumDialogContainerProps) {\n let {\n children,\n type = 'modal',\n onDismiss,\n isDismissable,\n isKeyboardDismissDisabled\n } = props;\n\n let childArray = React.Children.toArray(children);\n if (childArray.length > 1) {\n throw new Error('Only a single child can be passed to DialogContainer.');\n }\n\n let [lastChild, setLastChild] = useState<ReactElement | null>(null);\n\n // React.Children.toArray mutates the children, and we need them to be stable\n // between renders so that the lastChild comparison works.\n let child = null;\n if (Array.isArray(children)) {\n child = children.find(React.isValidElement);\n } else if (React.isValidElement(children)) {\n child = children;\n }\n\n if (child && child !== lastChild) {\n setLastChild(child);\n }\n\n let context = {\n type,\n onClose: onDismiss,\n isDismissable\n };\n\n let state = useOverlayTriggerState({\n isOpen: !!child,\n onOpenChange: isOpen => {\n if (!isOpen) {\n onDismiss();\n }\n }\n });\n\n return (\n <Modal\n state={state}\n type={type}\n isDismissable={isDismissable}\n isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n <DialogContext.Provider value={context}>\n {lastChild}\n </DialogContext.Provider>\n </Modal>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DialogContext} from './context';\nimport {useContext} from 'react';\n\nexport interface DialogContainerValue {\n type: 'modal' | 'popover' | 'tray' | 'fullscreen' | 'fullscreenTakeover',\n dismiss(): void\n}\n\nexport function useDialogContainer(): DialogContainerValue {\n let context = useContext(DialogContext);\n if (!context) {\n throw new Error('Cannot call useDialogContext outside a <DialogTrigger> or <DialogContainer>.');\n }\n\n return {\n type: context.type,\n dismiss() {\n context.onClose();\n }\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/dialog",
3
- "version": "3.8.2",
3
+ "version": "3.8.3",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,26 +36,26 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/dialog": "^3.5.5",
40
- "@react-aria/focus": "^3.14.1",
41
- "@react-aria/i18n": "^3.8.2",
42
- "@react-aria/interactions": "^3.18.0",
43
- "@react-aria/overlays": "^3.17.0",
44
- "@react-aria/utils": "^3.20.0",
45
- "@react-spectrum/button": "^3.13.0",
46
- "@react-spectrum/buttongroup": "^3.6.5",
47
- "@react-spectrum/divider": "^3.5.5",
48
- "@react-spectrum/layout": "^3.5.5",
49
- "@react-spectrum/overlays": "^5.4.0",
50
- "@react-spectrum/text": "^3.4.5",
51
- "@react-spectrum/utils": "^3.10.2",
52
- "@react-spectrum/view": "^3.6.2",
53
- "@react-stately/overlays": "^3.6.2",
54
- "@react-stately/utils": "^3.7.0",
55
- "@react-types/button": "^3.8.0",
56
- "@react-types/dialog": "^3.5.5",
57
- "@react-types/shared": "^3.20.0",
58
- "@spectrum-icons/ui": "^3.5.5",
39
+ "@react-aria/dialog": "^3.5.6",
40
+ "@react-aria/focus": "^3.14.2",
41
+ "@react-aria/i18n": "^3.8.3",
42
+ "@react-aria/interactions": "^3.19.0",
43
+ "@react-aria/overlays": "^3.18.0",
44
+ "@react-aria/utils": "^3.21.0",
45
+ "@react-spectrum/button": "^3.14.0",
46
+ "@react-spectrum/buttongroup": "^3.6.6",
47
+ "@react-spectrum/divider": "^3.5.6",
48
+ "@react-spectrum/layout": "^3.5.6",
49
+ "@react-spectrum/overlays": "^5.5.0",
50
+ "@react-spectrum/text": "^3.4.6",
51
+ "@react-spectrum/utils": "^3.11.0",
52
+ "@react-spectrum/view": "^3.6.3",
53
+ "@react-stately/overlays": "^3.6.3",
54
+ "@react-stately/utils": "^3.8.0",
55
+ "@react-types/button": "^3.9.0",
56
+ "@react-types/dialog": "^3.5.6",
57
+ "@react-types/shared": "^3.21.0",
58
+ "@spectrum-icons/ui": "^3.6.0",
59
59
  "@swc/helpers": "^0.5.0"
60
60
  },
61
61
  "devDependencies": {
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "54fbaa67cc56867506811819fef765546d403253"
73
+ "gitHead": "4122e44d1991c90507d630d35ed297f89db435d3"
74
74
  }