@react-aria/utils 3.24.0 → 3.24.1

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.
Files changed (74) hide show
  1. package/dist/chain.main.js +1 -1
  2. package/dist/chain.mjs +2 -2
  3. package/dist/chain.module.js +1 -1
  4. package/dist/domHelpers.main.js +1 -1
  5. package/dist/domHelpers.mjs +2 -2
  6. package/dist/domHelpers.module.js +1 -1
  7. package/dist/filterDOMProps.main.js +12 -12
  8. package/dist/filterDOMProps.mjs +13 -13
  9. package/dist/filterDOMProps.module.js +12 -12
  10. package/dist/focusWithoutScrolling.main.js +1 -1
  11. package/dist/focusWithoutScrolling.mjs +2 -2
  12. package/dist/focusWithoutScrolling.module.js +1 -1
  13. package/dist/getOffset.main.js +3 -3
  14. package/dist/getOffset.mjs +4 -4
  15. package/dist/getOffset.module.js +3 -3
  16. package/dist/getScrollParent.mjs +1 -1
  17. package/dist/getScrollParents.mjs +1 -1
  18. package/dist/isScrollable.mjs +1 -1
  19. package/dist/isVirtualEvent.main.js +2 -2
  20. package/dist/isVirtualEvent.mjs +3 -3
  21. package/dist/isVirtualEvent.module.js +2 -2
  22. package/dist/mergeProps.main.js +4 -4
  23. package/dist/mergeProps.mjs +5 -5
  24. package/dist/mergeProps.module.js +4 -4
  25. package/dist/mergeRefs.main.js +1 -1
  26. package/dist/mergeRefs.mjs +2 -2
  27. package/dist/mergeRefs.module.js +1 -1
  28. package/dist/openLink.main.js +20 -20
  29. package/dist/openLink.mjs +21 -21
  30. package/dist/openLink.module.js +20 -20
  31. package/dist/platform.main.js +3 -3
  32. package/dist/platform.mjs +4 -4
  33. package/dist/platform.module.js +3 -3
  34. package/dist/runAfterTransition.main.js +9 -9
  35. package/dist/runAfterTransition.mjs +10 -10
  36. package/dist/runAfterTransition.module.js +9 -9
  37. package/dist/scrollIntoView.main.js +8 -8
  38. package/dist/scrollIntoView.mjs +9 -9
  39. package/dist/scrollIntoView.module.js +8 -8
  40. package/dist/useDeepMemo.mjs +1 -1
  41. package/dist/useDescription.main.js +3 -3
  42. package/dist/useDescription.mjs +4 -4
  43. package/dist/useDescription.module.js +3 -3
  44. package/dist/useDrag1D.main.js +21 -21
  45. package/dist/useDrag1D.mjs +22 -22
  46. package/dist/useDrag1D.module.js +21 -21
  47. package/dist/useEffectEvent.mjs +1 -1
  48. package/dist/useEvent.mjs +1 -1
  49. package/dist/useFormReset.main.js +2 -2
  50. package/dist/useFormReset.mjs +3 -3
  51. package/dist/useFormReset.module.js +2 -2
  52. package/dist/useGlobalListeners.mjs +1 -1
  53. package/dist/useId.main.js +1 -1
  54. package/dist/useId.mjs +2 -2
  55. package/dist/useId.module.js +1 -1
  56. package/dist/useLabels.main.js +5 -5
  57. package/dist/useLabels.mjs +6 -6
  58. package/dist/useLabels.module.js +5 -5
  59. package/dist/useLayoutEffect.main.js +1 -1
  60. package/dist/useLayoutEffect.mjs +2 -2
  61. package/dist/useLayoutEffect.module.js +1 -1
  62. package/dist/useObjectRef.main.js +1 -1
  63. package/dist/useObjectRef.mjs +2 -2
  64. package/dist/useObjectRef.module.js +1 -1
  65. package/dist/useResizeObserver.main.js +3 -3
  66. package/dist/useResizeObserver.mjs +4 -4
  67. package/dist/useResizeObserver.module.js +3 -3
  68. package/dist/useSyncRef.mjs +1 -1
  69. package/dist/useUpdateEffect.mjs +1 -1
  70. package/dist/useValueEffect.mjs +1 -1
  71. package/dist/useViewportSize.main.js +5 -5
  72. package/dist/useViewportSize.mjs +6 -6
  73. package/dist/useViewportSize.module.js +5 -5
  74. package/package.json +5 -5
@@ -44,8 +44,8 @@ function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
44
44
  }
45
45
  function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
46
46
  // Use getAttribute here instead of link.target. Firefox will default link.target to "_parent" when inside an iframe.
47
- let target = link.getAttribute("target");
48
- return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && // open in new tab (mac)
47
+ let target = link.getAttribute('target');
48
+ return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)
49
49
  !modifiers.ctrlKey && // open in new tab (windows)
50
50
  !modifiers.altKey && // download
51
51
  !modifiers.shiftKey;
@@ -57,19 +57,19 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
57
57
  // will prevent links with target="_blank" from opening. However, it does allow the event if the
58
58
  // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
59
59
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
60
- if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith("key")) && target.target === "_blank") {
60
+ if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
61
61
  if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
62
62
  else ctrlKey = true;
63
63
  }
64
64
  // WebKit does not support firing click events with modifier keys, but does support keyboard events.
65
65
  // https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184
66
- let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && true ? new KeyboardEvent("keydown", {
67
- keyIdentifier: "Enter",
66
+ let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && true ? new KeyboardEvent('keydown', {
67
+ keyIdentifier: 'Enter',
68
68
  metaKey: metaKey,
69
69
  ctrlKey: ctrlKey,
70
70
  altKey: altKey,
71
71
  shiftKey: shiftKey
72
- }) : new MouseEvent("click", {
72
+ }) : new MouseEvent('click', {
73
73
  metaKey: metaKey,
74
74
  ctrlKey: ctrlKey,
75
75
  altKey: altKey,
@@ -86,14 +86,14 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
86
86
  $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
87
87
  function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {
88
88
  if (target instanceof HTMLAnchorElement) open(target);
89
- else if (target.hasAttribute("data-href")) {
90
- let link = document.createElement("a");
91
- link.href = target.getAttribute("data-href");
92
- if (target.hasAttribute("data-target")) link.target = target.getAttribute("data-target");
93
- if (target.hasAttribute("data-rel")) link.rel = target.getAttribute("data-rel");
94
- if (target.hasAttribute("data-download")) link.download = target.getAttribute("data-download");
95
- if (target.hasAttribute("data-ping")) link.ping = target.getAttribute("data-ping");
96
- if (target.hasAttribute("data-referrer-policy")) link.referrerPolicy = target.getAttribute("data-referrer-policy");
89
+ else if (target.hasAttribute('data-href')) {
90
+ let link = document.createElement('a');
91
+ link.href = target.getAttribute('data-href');
92
+ if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');
93
+ if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');
94
+ if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');
95
+ if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');
96
+ if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');
97
97
  target.appendChild(link);
98
98
  open(link);
99
99
  target.removeChild(link);
@@ -104,12 +104,12 @@ function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
104
104
  }
105
105
  function $ea8dcbcb9ea1b556$export$51437d503373d223(props) {
106
106
  return {
107
- "data-href": props.href,
108
- "data-target": props.target,
109
- "data-rel": props.rel,
110
- "data-download": props.download,
111
- "data-ping": props.ping,
112
- "data-referrer-policy": props.referrerPolicy
107
+ 'data-href': props.href,
108
+ 'data-target': props.target,
109
+ 'data-rel': props.rel,
110
+ 'data-download': props.download,
111
+ 'data-ping': props.ping,
112
+ 'data-referrer-policy': props.referrerPolicy
113
113
  };
114
114
  }
115
115
  function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
@@ -24,12 +24,12 @@ $parcel$export(module.exports, "isFirefox", () => $9e20cff0af27e8cc$export$b7d78
24
24
  * governing permissions and limitations under the License.
25
25
  */ function $9e20cff0af27e8cc$var$testUserAgent(re) {
26
26
  var _window_navigator_userAgentData;
27
- if (typeof window === "undefined" || window.navigator == null) return false;
28
- return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
27
+ if (typeof window === 'undefined' || window.navigator == null) return false;
28
+ return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
29
29
  }
30
30
  function $9e20cff0af27e8cc$var$testPlatform(re) {
31
31
  var _window_navigator_userAgentData;
32
- return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
32
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
33
33
  }
34
34
  function $9e20cff0af27e8cc$export$9ac100e40613ea10() {
35
35
  return $9e20cff0af27e8cc$var$testPlatform(/^Mac/i);
package/dist/platform.mjs CHANGED
@@ -10,12 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */ function $c87311424ea30a05$var$testUserAgent(re) {
12
12
  var _window_navigator_userAgentData;
13
- if (typeof window === "undefined" || window.navigator == null) return false;
14
- return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
13
+ if (typeof window === 'undefined' || window.navigator == null) return false;
14
+ return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
15
15
  }
16
16
  function $c87311424ea30a05$var$testPlatform(re) {
17
17
  var _window_navigator_userAgentData;
18
- return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
18
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
19
19
  }
20
20
  function $c87311424ea30a05$export$9ac100e40613ea10() {
21
21
  return $c87311424ea30a05$var$testPlatform(/^Mac/i);
@@ -48,4 +48,4 @@ function $c87311424ea30a05$export$b7d78993b74f766d() {
48
48
 
49
49
 
50
50
  export {$c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox};
51
- //# sourceMappingURL=platform.mjs.map
51
+ //# sourceMappingURL=platform.module.js.map
@@ -10,12 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */ function $c87311424ea30a05$var$testUserAgent(re) {
12
12
  var _window_navigator_userAgentData;
13
- if (typeof window === "undefined" || window.navigator == null) return false;
14
- return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
13
+ if (typeof window === 'undefined' || window.navigator == null) return false;
14
+ return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
15
15
  }
16
16
  function $c87311424ea30a05$var$testPlatform(re) {
17
17
  var _window_navigator_userAgentData;
18
- return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
18
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
19
19
  }
20
20
  function $c87311424ea30a05$export$9ac100e40613ea10() {
21
21
  return $c87311424ea30a05$var$testPlatform(/^Mac/i);
@@ -24,9 +24,9 @@ let $e8117ebcab55be6a$var$transitionsByElement = new Map();
24
24
  // A list of callbacks to call once there are no transitioning elements.
25
25
  let $e8117ebcab55be6a$var$transitionCallbacks = new Set();
26
26
  function $e8117ebcab55be6a$var$setupGlobalEvents() {
27
- if (typeof window === "undefined") return;
27
+ if (typeof window === 'undefined') return;
28
28
  function isTransitionEvent(event) {
29
- return "propertyName" in event;
29
+ return 'propertyName' in event;
30
30
  }
31
31
  let onTransitionStart = (e)=>{
32
32
  if (!isTransitionEvent(e) || !e.target) return;
@@ -38,7 +38,7 @@ function $e8117ebcab55be6a$var$setupGlobalEvents() {
38
38
  // The transitioncancel event must be registered on the element itself, rather than as a global
39
39
  // event. This enables us to handle when the node is deleted from the document while it is transitioning.
40
40
  // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
41
- e.target.addEventListener("transitioncancel", onTransitionEnd, {
41
+ e.target.addEventListener('transitioncancel', onTransitionEnd, {
42
42
  once: true
43
43
  });
44
44
  }
@@ -52,7 +52,7 @@ function $e8117ebcab55be6a$var$setupGlobalEvents() {
52
52
  properties.delete(e.propertyName);
53
53
  // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
54
54
  if (properties.size === 0) {
55
- e.target.removeEventListener("transitioncancel", onTransitionEnd);
55
+ e.target.removeEventListener('transitioncancel', onTransitionEnd);
56
56
  $e8117ebcab55be6a$var$transitionsByElement.delete(e.target);
57
57
  }
58
58
  // If no transitioning elements, call all of the queued callbacks.
@@ -61,12 +61,12 @@ function $e8117ebcab55be6a$var$setupGlobalEvents() {
61
61
  $e8117ebcab55be6a$var$transitionCallbacks.clear();
62
62
  }
63
63
  };
64
- document.body.addEventListener("transitionrun", onTransitionStart);
65
- document.body.addEventListener("transitionend", onTransitionEnd);
64
+ document.body.addEventListener('transitionrun', onTransitionStart);
65
+ document.body.addEventListener('transitionend', onTransitionEnd);
66
66
  }
67
- if (typeof document !== "undefined") {
68
- if (document.readyState !== "loading") $e8117ebcab55be6a$var$setupGlobalEvents();
69
- else document.addEventListener("DOMContentLoaded", $e8117ebcab55be6a$var$setupGlobalEvents);
67
+ if (typeof document !== 'undefined') {
68
+ if (document.readyState !== 'loading') $e8117ebcab55be6a$var$setupGlobalEvents();
69
+ else document.addEventListener('DOMContentLoaded', $e8117ebcab55be6a$var$setupGlobalEvents);
70
70
  }
71
71
  function $e8117ebcab55be6a$export$24490316f764c430(fn) {
72
72
  // Wait one frame to see if an animation starts, e.g. a transition on mount.
@@ -18,9 +18,9 @@ let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
18
18
  // A list of callbacks to call once there are no transitioning elements.
19
19
  let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
20
20
  function $bbed8b41f857bcc0$var$setupGlobalEvents() {
21
- if (typeof window === "undefined") return;
21
+ if (typeof window === 'undefined') return;
22
22
  function isTransitionEvent(event) {
23
- return "propertyName" in event;
23
+ return 'propertyName' in event;
24
24
  }
25
25
  let onTransitionStart = (e)=>{
26
26
  if (!isTransitionEvent(e) || !e.target) return;
@@ -32,7 +32,7 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
32
32
  // The transitioncancel event must be registered on the element itself, rather than as a global
33
33
  // event. This enables us to handle when the node is deleted from the document while it is transitioning.
34
34
  // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
35
- e.target.addEventListener("transitioncancel", onTransitionEnd, {
35
+ e.target.addEventListener('transitioncancel', onTransitionEnd, {
36
36
  once: true
37
37
  });
38
38
  }
@@ -46,7 +46,7 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
46
46
  properties.delete(e.propertyName);
47
47
  // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
48
48
  if (properties.size === 0) {
49
- e.target.removeEventListener("transitioncancel", onTransitionEnd);
49
+ e.target.removeEventListener('transitioncancel', onTransitionEnd);
50
50
  $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
51
51
  }
52
52
  // If no transitioning elements, call all of the queued callbacks.
@@ -55,12 +55,12 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
55
55
  $bbed8b41f857bcc0$var$transitionCallbacks.clear();
56
56
  }
57
57
  };
58
- document.body.addEventListener("transitionrun", onTransitionStart);
59
- document.body.addEventListener("transitionend", onTransitionEnd);
58
+ document.body.addEventListener('transitionrun', onTransitionStart);
59
+ document.body.addEventListener('transitionend', onTransitionEnd);
60
60
  }
61
- if (typeof document !== "undefined") {
62
- if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
63
- else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
61
+ if (typeof document !== 'undefined') {
62
+ if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();
63
+ else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);
64
64
  }
65
65
  function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
66
66
  // Wait one frame to see if an animation starts, e.g. a transition on mount.
@@ -74,4 +74,4 @@ function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
74
74
 
75
75
 
76
76
  export {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};
77
- //# sourceMappingURL=runAfterTransition.mjs.map
77
+ //# sourceMappingURL=runAfterTransition.module.js.map
@@ -18,9 +18,9 @@ let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
18
18
  // A list of callbacks to call once there are no transitioning elements.
19
19
  let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
20
20
  function $bbed8b41f857bcc0$var$setupGlobalEvents() {
21
- if (typeof window === "undefined") return;
21
+ if (typeof window === 'undefined') return;
22
22
  function isTransitionEvent(event) {
23
- return "propertyName" in event;
23
+ return 'propertyName' in event;
24
24
  }
25
25
  let onTransitionStart = (e)=>{
26
26
  if (!isTransitionEvent(e) || !e.target) return;
@@ -32,7 +32,7 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
32
32
  // The transitioncancel event must be registered on the element itself, rather than as a global
33
33
  // event. This enables us to handle when the node is deleted from the document while it is transitioning.
34
34
  // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
35
- e.target.addEventListener("transitioncancel", onTransitionEnd, {
35
+ e.target.addEventListener('transitioncancel', onTransitionEnd, {
36
36
  once: true
37
37
  });
38
38
  }
@@ -46,7 +46,7 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
46
46
  properties.delete(e.propertyName);
47
47
  // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
48
48
  if (properties.size === 0) {
49
- e.target.removeEventListener("transitioncancel", onTransitionEnd);
49
+ e.target.removeEventListener('transitioncancel', onTransitionEnd);
50
50
  $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
51
51
  }
52
52
  // If no transitioning elements, call all of the queued callbacks.
@@ -55,12 +55,12 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
55
55
  $bbed8b41f857bcc0$var$transitionCallbacks.clear();
56
56
  }
57
57
  };
58
- document.body.addEventListener("transitionrun", onTransitionStart);
59
- document.body.addEventListener("transitionend", onTransitionEnd);
58
+ document.body.addEventListener('transitionrun', onTransitionStart);
59
+ document.body.addEventListener('transitionend', onTransitionEnd);
60
60
  }
61
- if (typeof document !== "undefined") {
62
- if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
63
- else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
61
+ if (typeof document !== 'undefined') {
62
+ if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();
63
+ else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);
64
64
  }
65
65
  function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
66
66
  // Wait one frame to see if an animation starts, e.g. a transition on mount.
@@ -19,8 +19,8 @@ $parcel$export(module.exports, "scrollIntoViewport", () => $449412113267a1fe$exp
19
19
  * governing permissions and limitations under the License.
20
20
  */
21
21
  function $449412113267a1fe$export$53a0910f038337bd(scrollView, element) {
22
- let offsetX = $449412113267a1fe$var$relativeOffset(scrollView, element, "left");
23
- let offsetY = $449412113267a1fe$var$relativeOffset(scrollView, element, "top");
22
+ let offsetX = $449412113267a1fe$var$relativeOffset(scrollView, element, 'left');
23
+ let offsetY = $449412113267a1fe$var$relativeOffset(scrollView, element, 'top');
24
24
  let width = element.offsetWidth;
25
25
  let height = element.offsetHeight;
26
26
  let x = scrollView.scrollLeft;
@@ -43,7 +43,7 @@ function $449412113267a1fe$export$53a0910f038337bd(scrollView, element) {
43
43
  * Computes the offset left or top from child to ancestor by accumulating
44
44
  * offsetLeft or offsetTop through intervening offsetParents.
45
45
  */ function $449412113267a1fe$var$relativeOffset(ancestor, child, axis) {
46
- const prop = axis === "left" ? "offsetLeft" : "offsetTop";
46
+ const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';
47
47
  let sum = 0;
48
48
  while(child.offsetParent){
49
49
  sum += child[prop];
@@ -62,7 +62,7 @@ function $449412113267a1fe$export$53a0910f038337bd(scrollView, element) {
62
62
  function $449412113267a1fe$export$c826860796309d1b(targetElement, opts) {
63
63
  if (document.contains(targetElement)) {
64
64
  let root = document.scrollingElement || document.documentElement;
65
- let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
65
+ let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';
66
66
  // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view
67
67
  if (!isScrollPrevented) {
68
68
  var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()
@@ -70,18 +70,18 @@ function $449412113267a1fe$export$c826860796309d1b(targetElement, opts) {
70
70
  _targetElement_scrollIntoView;
71
71
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
72
72
  targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
73
- block: "nearest"
73
+ block: 'nearest'
74
74
  });
75
75
  let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
76
76
  // Account for sub pixel differences from rounding
77
77
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
78
78
  var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
79
79
  opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
80
- block: "center",
81
- inline: "center"
80
+ block: 'center',
81
+ inline: 'center'
82
82
  });
83
83
  (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {
84
- block: "nearest"
84
+ block: 'nearest'
85
85
  });
86
86
  }
87
87
  } else {
@@ -12,8 +12,8 @@ import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from "./g
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
15
- let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left");
16
- let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top");
15
+ let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'left');
16
+ let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'top');
17
17
  let width = element.offsetWidth;
18
18
  let height = element.offsetHeight;
19
19
  let x = scrollView.scrollLeft;
@@ -36,7 +36,7 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
36
36
  * Computes the offset left or top from child to ancestor by accumulating
37
37
  * offsetLeft or offsetTop through intervening offsetParents.
38
38
  */ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
39
- const prop = axis === "left" ? "offsetLeft" : "offsetTop";
39
+ const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';
40
40
  let sum = 0;
41
41
  while(child.offsetParent){
42
42
  sum += child[prop];
@@ -55,7 +55,7 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
55
55
  function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
56
56
  if (document.contains(targetElement)) {
57
57
  let root = document.scrollingElement || document.documentElement;
58
- let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
58
+ let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';
59
59
  // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view
60
60
  if (!isScrollPrevented) {
61
61
  var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()
@@ -63,18 +63,18 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
63
63
  _targetElement_scrollIntoView;
64
64
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
65
65
  targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
66
- block: "nearest"
66
+ block: 'nearest'
67
67
  });
68
68
  let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
69
69
  // Account for sub pixel differences from rounding
70
70
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
71
71
  var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
72
72
  opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
73
- block: "center",
74
- inline: "center"
73
+ block: 'center',
74
+ inline: 'center'
75
75
  });
76
76
  (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {
77
- block: "nearest"
77
+ block: 'nearest'
78
78
  });
79
79
  }
80
80
  } else {
@@ -87,4 +87,4 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
87
87
 
88
88
 
89
89
  export {$2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport};
90
- //# sourceMappingURL=scrollIntoView.mjs.map
90
+ //# sourceMappingURL=scrollIntoView.module.js.map
@@ -12,8 +12,8 @@ import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from "./g
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
15
- let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left");
16
- let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top");
15
+ let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'left');
16
+ let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'top');
17
17
  let width = element.offsetWidth;
18
18
  let height = element.offsetHeight;
19
19
  let x = scrollView.scrollLeft;
@@ -36,7 +36,7 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
36
36
  * Computes the offset left or top from child to ancestor by accumulating
37
37
  * offsetLeft or offsetTop through intervening offsetParents.
38
38
  */ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
39
- const prop = axis === "left" ? "offsetLeft" : "offsetTop";
39
+ const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';
40
40
  let sum = 0;
41
41
  while(child.offsetParent){
42
42
  sum += child[prop];
@@ -55,7 +55,7 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
55
55
  function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
56
56
  if (document.contains(targetElement)) {
57
57
  let root = document.scrollingElement || document.documentElement;
58
- let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
58
+ let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';
59
59
  // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view
60
60
  if (!isScrollPrevented) {
61
61
  var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()
@@ -63,18 +63,18 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
63
63
  _targetElement_scrollIntoView;
64
64
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
65
65
  targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
66
- block: "nearest"
66
+ block: 'nearest'
67
67
  });
68
68
  let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
69
69
  // Account for sub pixel differences from rounding
70
70
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
71
71
  var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
72
72
  opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
73
- block: "center",
74
- inline: "center"
73
+ block: 'center',
74
+ inline: 'center'
75
75
  });
76
76
  (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {
77
- block: "nearest"
77
+ block: 'nearest'
78
78
  });
79
79
  }
80
80
  } else {
@@ -22,4 +22,4 @@ function $5a387cc49350e6db$export$722debc0e56fea39(value, isEqual) {
22
22
 
23
23
 
24
24
  export {$5a387cc49350e6db$export$722debc0e56fea39 as useDeepMemo};
25
- //# sourceMappingURL=useDeepMemo.mjs.map
25
+ //# sourceMappingURL=useDeepMemo.module.js.map
@@ -29,9 +29,9 @@ function $34da4502ea8120db$export$f8aeda7b10753fa1(description) {
29
29
  if (!desc) {
30
30
  let id = `react-aria-description-${$34da4502ea8120db$var$descriptionId++}`;
31
31
  setId(id);
32
- let node = document.createElement("div");
32
+ let node = document.createElement('div');
33
33
  node.id = id;
34
- node.style.display = "none";
34
+ node.style.display = 'none';
35
35
  node.textContent = description;
36
36
  document.body.appendChild(node);
37
37
  desc = {
@@ -51,7 +51,7 @@ function $34da4502ea8120db$export$f8aeda7b10753fa1(description) {
51
51
  description
52
52
  ]);
53
53
  return {
54
- "aria-describedby": description ? id : undefined
54
+ 'aria-describedby': description ? id : undefined
55
55
  };
56
56
  }
57
57
 
@@ -23,9 +23,9 @@ function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
23
23
  if (!desc) {
24
24
  let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
25
25
  setId(id);
26
- let node = document.createElement("div");
26
+ let node = document.createElement('div');
27
27
  node.id = id;
28
- node.style.display = "none";
28
+ node.style.display = 'none';
29
29
  node.textContent = description;
30
30
  document.body.appendChild(node);
31
31
  desc = {
@@ -45,10 +45,10 @@ function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
45
45
  description
46
46
  ]);
47
47
  return {
48
- "aria-describedby": description ? id : undefined
48
+ 'aria-describedby': description ? id : undefined
49
49
  };
50
50
  }
51
51
 
52
52
 
53
53
  export {$ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription};
54
- //# sourceMappingURL=useDescription.mjs.map
54
+ //# sourceMappingURL=useDescription.module.js.map
@@ -23,9 +23,9 @@ function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
23
23
  if (!desc) {
24
24
  let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
25
25
  setId(id);
26
- let node = document.createElement("div");
26
+ let node = document.createElement('div');
27
27
  node.id = id;
28
- node.style.display = "none";
28
+ node.style.display = 'none';
29
29
  node.textContent = description;
30
30
  document.body.appendChild(node);
31
31
  desc = {
@@ -45,7 +45,7 @@ function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
45
45
  description
46
46
  ]);
47
47
  return {
48
- "aria-describedby": description ? id : undefined
48
+ 'aria-describedby': description ? id : undefined
49
49
  };
50
50
  }
51
51