@react-aria/utils 3.24.0 → 3.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) 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/import.mjs +4 -2
  19. package/dist/isScrollable.mjs +1 -1
  20. package/dist/isVirtualEvent.main.js +2 -2
  21. package/dist/isVirtualEvent.mjs +3 -3
  22. package/dist/isVirtualEvent.module.js +2 -2
  23. package/dist/main.js +4 -1
  24. package/dist/main.js.map +1 -1
  25. package/dist/mergeProps.main.js +4 -4
  26. package/dist/mergeProps.mjs +5 -5
  27. package/dist/mergeProps.module.js +4 -4
  28. package/dist/mergeRefs.main.js +2 -2
  29. package/dist/mergeRefs.main.js.map +1 -1
  30. package/dist/mergeRefs.mjs +3 -3
  31. package/dist/mergeRefs.module.js +2 -2
  32. package/dist/mergeRefs.module.js.map +1 -1
  33. package/dist/module.js +4 -2
  34. package/dist/module.js.map +1 -1
  35. package/dist/openLink.main.js +23 -22
  36. package/dist/openLink.main.js.map +1 -1
  37. package/dist/openLink.mjs +24 -23
  38. package/dist/openLink.module.js +23 -22
  39. package/dist/openLink.module.js.map +1 -1
  40. package/dist/platform.main.js +28 -21
  41. package/dist/platform.main.js.map +1 -1
  42. package/dist/platform.mjs +29 -22
  43. package/dist/platform.module.js +28 -21
  44. package/dist/platform.module.js.map +1 -1
  45. package/dist/runAfterTransition.main.js +9 -9
  46. package/dist/runAfterTransition.mjs +10 -10
  47. package/dist/runAfterTransition.module.js +9 -9
  48. package/dist/scrollIntoView.main.js +8 -8
  49. package/dist/scrollIntoView.mjs +9 -9
  50. package/dist/scrollIntoView.module.js +8 -8
  51. package/dist/types.d.ts +35 -17
  52. package/dist/types.d.ts.map +1 -1
  53. package/dist/useDeepMemo.mjs +1 -1
  54. package/dist/useDescription.main.js +3 -3
  55. package/dist/useDescription.mjs +4 -4
  56. package/dist/useDescription.module.js +3 -3
  57. package/dist/useDrag1D.main.js +21 -21
  58. package/dist/useDrag1D.mjs +22 -22
  59. package/dist/useDrag1D.module.js +21 -21
  60. package/dist/useEffectEvent.mjs +1 -1
  61. package/dist/useEvent.main.js.map +1 -1
  62. package/dist/useEvent.mjs +1 -1
  63. package/dist/useEvent.module.js.map +1 -1
  64. package/dist/useFormReset.main.js +2 -2
  65. package/dist/useFormReset.main.js.map +1 -1
  66. package/dist/useFormReset.mjs +3 -3
  67. package/dist/useFormReset.module.js +2 -2
  68. package/dist/useFormReset.module.js.map +1 -1
  69. package/dist/useGlobalListeners.mjs +1 -1
  70. package/dist/useId.main.js +1 -1
  71. package/dist/useId.mjs +2 -2
  72. package/dist/useId.module.js +1 -1
  73. package/dist/useLabels.main.js +5 -5
  74. package/dist/useLabels.mjs +6 -6
  75. package/dist/useLabels.module.js +5 -5
  76. package/dist/useLayoutEffect.main.js +1 -1
  77. package/dist/useLayoutEffect.mjs +2 -2
  78. package/dist/useLayoutEffect.module.js +1 -1
  79. package/dist/useLoadMore.main.js +72 -0
  80. package/dist/useLoadMore.main.js.map +1 -0
  81. package/dist/useLoadMore.mjs +67 -0
  82. package/dist/useLoadMore.module.js +67 -0
  83. package/dist/useLoadMore.module.js.map +1 -0
  84. package/dist/useObjectRef.main.js +1 -1
  85. package/dist/useObjectRef.mjs +2 -2
  86. package/dist/useObjectRef.module.js +1 -1
  87. package/dist/useResizeObserver.main.js +9 -6
  88. package/dist/useResizeObserver.main.js.map +1 -1
  89. package/dist/useResizeObserver.mjs +10 -7
  90. package/dist/useResizeObserver.module.js +9 -6
  91. package/dist/useResizeObserver.module.js.map +1 -1
  92. package/dist/useSyncRef.main.js.map +1 -1
  93. package/dist/useSyncRef.mjs +1 -1
  94. package/dist/useSyncRef.module.js.map +1 -1
  95. package/dist/useUpdateEffect.mjs +1 -1
  96. package/dist/useValueEffect.mjs +1 -1
  97. package/dist/useViewportSize.main.js +5 -5
  98. package/dist/useViewportSize.mjs +6 -6
  99. package/dist/useViewportSize.module.js +5 -5
  100. package/package.json +6 -6
  101. package/src/index.ts +2 -1
  102. package/src/mergeRefs.ts +2 -2
  103. package/src/openLink.tsx +3 -2
  104. package/src/platform.ts +32 -18
  105. package/src/useEvent.ts +4 -3
  106. package/src/useFormReset.ts +4 -2
  107. package/src/useLoadMore.ts +82 -0
  108. package/src/useResizeObserver.ts +8 -5
  109. package/src/useSyncRef.ts +3 -2
@@ -18,7 +18,7 @@ $parcel$export(module.exports, "chain", () => $1e2191638e54f613$export$e08e3b67e
18
18
  * Calls all functions in the order they were chained with the same arguments.
19
19
  */ function $1e2191638e54f613$export$e08e3b67e392101e(...callbacks) {
20
20
  return (...args)=>{
21
- for (let callback of callbacks)if (typeof callback === "function") callback(...args);
21
+ for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
22
22
  };
23
23
  }
24
24
 
package/dist/chain.mjs CHANGED
@@ -12,10 +12,10 @@
12
12
  * Calls all functions in the order they were chained with the same arguments.
13
13
  */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
14
14
  return (...args)=>{
15
- for (let callback of callbacks)if (typeof callback === "function") callback(...args);
15
+ for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
16
16
  };
17
17
  }
18
18
 
19
19
 
20
20
  export {$ff5963eb1fccf552$export$e08e3b67e392101e as chain};
21
- //# sourceMappingURL=chain.mjs.map
21
+ //# sourceMappingURL=chain.module.js.map
@@ -12,7 +12,7 @@
12
12
  * Calls all functions in the order they were chained with the same arguments.
13
13
  */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
14
14
  return (...args)=>{
15
- for (let callback of callbacks)if (typeof callback === "function") callback(...args);
15
+ for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
16
16
  };
17
17
  }
18
18
 
@@ -10,7 +10,7 @@ const $aaa611146751592e$export$b204af158042fbac = (el)=>{
10
10
  return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
11
11
  };
12
12
  const $aaa611146751592e$export$f21a1ffae260145a = (el)=>{
13
- if (el && "window" in el && el.window === el) return el;
13
+ if (el && 'window' in el && el.window === el) return el;
14
14
  const doc = $aaa611146751592e$export$b204af158042fbac(el);
15
15
  return doc.defaultView || window;
16
16
  };
@@ -3,11 +3,11 @@ const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
3
3
  return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
4
4
  };
5
5
  const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
6
- if (el && "window" in el && el.window === el) return el;
6
+ if (el && 'window' in el && el.window === el) return el;
7
7
  const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
8
8
  return doc.defaultView || window;
9
9
  };
10
10
 
11
11
 
12
12
  export {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow};
13
- //# sourceMappingURL=domHelpers.mjs.map
13
+ //# sourceMappingURL=domHelpers.module.js.map
@@ -3,7 +3,7 @@ const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
3
3
  return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
4
4
  };
5
5
  const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
6
- if (el && "window" in el && el.window === el) return el;
6
+ if (el && 'window' in el && el.window === el) return el;
7
7
  const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
8
8
  return doc.defaultView || window;
9
9
  };
@@ -15,23 +15,23 @@ $parcel$export(module.exports, "filterDOMProps", () => $8d15d0e1797d4238$export$
15
15
  * OF ANY KIND, either express or implied. See the License for the specific language
16
16
  * governing permissions and limitations under the License.
17
17
  */ const $8d15d0e1797d4238$var$DOMPropNames = new Set([
18
- "id"
18
+ 'id'
19
19
  ]);
20
20
  const $8d15d0e1797d4238$var$labelablePropNames = new Set([
21
- "aria-label",
22
- "aria-labelledby",
23
- "aria-describedby",
24
- "aria-details"
21
+ 'aria-label',
22
+ 'aria-labelledby',
23
+ 'aria-describedby',
24
+ 'aria-details'
25
25
  ]);
26
26
  // See LinkDOMProps in dom.d.ts.
27
27
  const $8d15d0e1797d4238$var$linkPropNames = new Set([
28
- "href",
29
- "hrefLang",
30
- "target",
31
- "rel",
32
- "download",
33
- "ping",
34
- "referrerPolicy"
28
+ 'href',
29
+ 'hrefLang',
30
+ 'target',
31
+ 'rel',
32
+ 'download',
33
+ 'ping',
34
+ 'referrerPolicy'
35
35
  ]);
36
36
  const $8d15d0e1797d4238$var$propRe = /^(data-.*)$/;
37
37
  function $8d15d0e1797d4238$export$457c3d6518dd4c6f(props, opts = {}) {
@@ -9,23 +9,23 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([
12
- "id"
12
+ 'id'
13
13
  ]);
14
14
  const $65484d02dcb7eb3e$var$labelablePropNames = new Set([
15
- "aria-label",
16
- "aria-labelledby",
17
- "aria-describedby",
18
- "aria-details"
15
+ 'aria-label',
16
+ 'aria-labelledby',
17
+ 'aria-describedby',
18
+ 'aria-details'
19
19
  ]);
20
20
  // See LinkDOMProps in dom.d.ts.
21
21
  const $65484d02dcb7eb3e$var$linkPropNames = new Set([
22
- "href",
23
- "hrefLang",
24
- "target",
25
- "rel",
26
- "download",
27
- "ping",
28
- "referrerPolicy"
22
+ 'href',
23
+ 'hrefLang',
24
+ 'target',
25
+ 'rel',
26
+ 'download',
27
+ 'ping',
28
+ 'referrerPolicy'
29
29
  ]);
30
30
  const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
31
31
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
@@ -37,4 +37,4 @@ function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
37
37
 
38
38
 
39
39
  export {$65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps};
40
- //# sourceMappingURL=filterDOMProps.mjs.map
40
+ //# sourceMappingURL=filterDOMProps.module.js.map
@@ -9,23 +9,23 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([
12
- "id"
12
+ 'id'
13
13
  ]);
14
14
  const $65484d02dcb7eb3e$var$labelablePropNames = new Set([
15
- "aria-label",
16
- "aria-labelledby",
17
- "aria-describedby",
18
- "aria-details"
15
+ 'aria-label',
16
+ 'aria-labelledby',
17
+ 'aria-describedby',
18
+ 'aria-details'
19
19
  ]);
20
20
  // See LinkDOMProps in dom.d.ts.
21
21
  const $65484d02dcb7eb3e$var$linkPropNames = new Set([
22
- "href",
23
- "hrefLang",
24
- "target",
25
- "rel",
26
- "download",
27
- "ping",
28
- "referrerPolicy"
22
+ 'href',
23
+ 'hrefLang',
24
+ 'target',
25
+ 'rel',
26
+ 'download',
27
+ 'ping',
28
+ 'referrerPolicy'
29
29
  ]);
30
30
  const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
31
31
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
@@ -29,7 +29,7 @@ function $1117b6c0d4c4c164$var$supportsPreventScroll() {
29
29
  if ($1117b6c0d4c4c164$var$supportsPreventScrollCached == null) {
30
30
  $1117b6c0d4c4c164$var$supportsPreventScrollCached = false;
31
31
  try {
32
- let focusElem = document.createElement("div");
32
+ let focusElem = document.createElement('div');
33
33
  focusElem.focus({
34
34
  get preventScroll () {
35
35
  $1117b6c0d4c4c164$var$supportsPreventScrollCached = true;
@@ -23,7 +23,7 @@ function $7215afc6de606d6b$var$supportsPreventScroll() {
23
23
  if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
24
24
  $7215afc6de606d6b$var$supportsPreventScrollCached = false;
25
25
  try {
26
- let focusElem = document.createElement("div");
26
+ let focusElem = document.createElement('div');
27
27
  focusElem.focus({
28
28
  get preventScroll () {
29
29
  $7215afc6de606d6b$var$supportsPreventScrollCached = true;
@@ -64,4 +64,4 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
64
64
 
65
65
 
66
66
  export {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};
67
- //# sourceMappingURL=focusWithoutScrolling.mjs.map
67
+ //# sourceMappingURL=focusWithoutScrolling.module.js.map
@@ -23,7 +23,7 @@ function $7215afc6de606d6b$var$supportsPreventScroll() {
23
23
  if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
24
24
  $7215afc6de606d6b$var$supportsPreventScrollCached = false;
25
25
  try {
26
- let focusElem = document.createElement("div");
26
+ let focusElem = document.createElement('div');
27
27
  focusElem.focus({
28
28
  get preventScroll () {
29
29
  $7215afc6de606d6b$var$supportsPreventScrollCached = true;
@@ -14,10 +14,10 @@ $parcel$export(module.exports, "getOffset", () => $16ec41ef3e36c19c$export$622ce
14
14
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
15
  * OF ANY KIND, either express or implied. See the License for the specific language
16
16
  * governing permissions and limitations under the License.
17
- */ function $16ec41ef3e36c19c$export$622cea445a1c5b7d(element, reverse, orientation = "horizontal") {
17
+ */ function $16ec41ef3e36c19c$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
18
18
  let rect = element.getBoundingClientRect();
19
- if (reverse) return orientation === "horizontal" ? rect.right : rect.bottom;
20
- return orientation === "horizontal" ? rect.left : rect.top;
19
+ if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
20
+ return orientation === 'horizontal' ? rect.left : rect.top;
21
21
  }
22
22
 
23
23
 
@@ -8,12 +8,12 @@
8
8
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
- */ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = "horizontal") {
11
+ */ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
12
12
  let rect = element.getBoundingClientRect();
13
- if (reverse) return orientation === "horizontal" ? rect.right : rect.bottom;
14
- return orientation === "horizontal" ? rect.left : rect.top;
13
+ if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
14
+ return orientation === 'horizontal' ? rect.left : rect.top;
15
15
  }
16
16
 
17
17
 
18
18
  export {$ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset};
19
- //# sourceMappingURL=getOffset.mjs.map
19
+ //# sourceMappingURL=getOffset.module.js.map
@@ -8,10 +8,10 @@
8
8
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
- */ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = "horizontal") {
11
+ */ function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element, reverse, orientation = 'horizontal') {
12
12
  let rect = element.getBoundingClientRect();
13
- if (reverse) return orientation === "horizontal" ? rect.right : rect.bottom;
14
- return orientation === "horizontal" ? rect.left : rect.top;
13
+ if (reverse) return orientation === 'horizontal' ? rect.right : rect.bottom;
14
+ return orientation === 'horizontal' ? rect.left : rect.top;
15
15
  }
16
16
 
17
17
 
@@ -20,4 +20,4 @@ function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
20
20
 
21
21
 
22
22
  export {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};
23
- //# sourceMappingURL=getScrollParent.mjs.map
23
+ //# sourceMappingURL=getScrollParent.module.js.map
@@ -22,4 +22,4 @@ function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
22
22
 
23
23
 
24
24
  export {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};
25
- //# sourceMappingURL=getScrollParents.mjs.map
25
+ //# sourceMappingURL=getScrollParents.module.js.map
package/dist/import.mjs CHANGED
@@ -6,7 +6,7 @@ import {mergeRefs as $5dc95899b306f630$export$c9058316764c140e} from "./mergeRef
6
6
  import {filterDOMProps as $65484d02dcb7eb3e$export$457c3d6518dd4c6f} from "./filterDOMProps.mjs";
7
7
  import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from "./focusWithoutScrolling.mjs";
8
8
  import {getOffset as $ab71dadb03a6fb2e$export$622cea445a1c5b7d} from "./getOffset.mjs";
9
- import {getSyntheticLinkProps as $ea8dcbcb9ea1b556$export$51437d503373d223, openLink as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, RouterProvider as $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, shouldClientNavigate as $ea8dcbcb9ea1b556$export$efa8c9099e530235, useLinkProps as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, useRouter as $ea8dcbcb9ea1b556$export$9a302a45f65d0572} from "./openLink.mjs";
9
+ import {openLink as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, RouterProvider as $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, shouldClientNavigate as $ea8dcbcb9ea1b556$export$efa8c9099e530235, useLinkProps as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, useRouter as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, useSyntheticLinkProps as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6} from "./openLink.mjs";
10
10
  import {runAfterTransition as $bbed8b41f857bcc0$export$24490316f764c430} from "./runAfterTransition.mjs";
11
11
  import {useDrag1D as $9cc09df9fd7676be$export$7bbed75feba39706} from "./useDrag1D.mjs";
12
12
  import {useGlobalListeners as $03deb23ff14920c4$export$4eaf04e54aa8eed6} from "./useGlobalListeners.mjs";
@@ -29,6 +29,7 @@ import {isVirtualClick as $6a7db85432448f7f$export$60278871457622de, isVirtualPo
29
29
  import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from "./useEffectEvent.mjs";
30
30
  import {useDeepMemo as $5a387cc49350e6db$export$722debc0e56fea39} from "./useDeepMemo.mjs";
31
31
  import {useFormReset as $99facab73266f662$export$5add1d006293d136} from "./useFormReset.mjs";
32
+ import {useLoadMore as $26f7f3da73fcd9d6$export$7717c92ee915373e} from "./useLoadMore.mjs";
32
33
  import {clamp as $4507461a1b870123$re_export$clamp, snapValueToStep as $4507461a1b870123$re_export$snapValueToStep} from "@react-stately/utils";
33
34
 
34
35
  /*
@@ -75,5 +76,6 @@ import {clamp as $4507461a1b870123$re_export$clamp, snapValueToStep as $4507461a
75
76
 
76
77
 
77
78
 
78
- export {$bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId, $ff5963eb1fccf552$export$e08e3b67e392101e as chain, $431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps, $5dc95899b306f630$export$c9058316764c140e as mergeRefs, $65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps, $7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling, $ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps, $bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition, $9cc09df9fd7676be$export$7bbed75feba39706 as useDrag1D, $03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners, $313b98861ee5dd6c$export$d6875122194c7b44 as useLabels, $df56164dff5785e2$export$4338b53315abf666 as useObjectRef, $4f58c5f72bcf79f7$export$496315a1608d9602 as useUpdateEffect, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect, $9daab02d461809db$export$683480f191c0e3ea as useResizeObserver, $e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef, $62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents, $cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable, $5df64b3807dc15ee$export$d699905dd57c73ca as useViewportSize, $ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription, $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, $e9faafb641e167db$export$90fc3a17d93f704c as useEvent, $1dbecbe27a04f9af$export$14d238f342723f25 as useValueEffect, $2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport, $4507461a1b870123$re_export$clamp as clamp, $4507461a1b870123$re_export$snapValueToStep as snapValueToStep, $6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent, $8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent, $5a387cc49350e6db$export$722debc0e56fea39 as useDeepMemo, $99facab73266f662$export$5add1d006293d136 as useFormReset};
79
+
80
+ export {$bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId, $ff5963eb1fccf552$export$e08e3b67e392101e as chain, $431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps, $5dc95899b306f630$export$c9058316764c140e as mergeRefs, $65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps, $7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling, $ab71dadb03a6fb2e$export$622cea445a1c5b7d as getOffset, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps, $bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition, $9cc09df9fd7676be$export$7bbed75feba39706 as useDrag1D, $03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners, $313b98861ee5dd6c$export$d6875122194c7b44 as useLabels, $df56164dff5785e2$export$4338b53315abf666 as useObjectRef, $4f58c5f72bcf79f7$export$496315a1608d9602 as useUpdateEffect, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect, $9daab02d461809db$export$683480f191c0e3ea as useResizeObserver, $e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef, $62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents, $cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable, $5df64b3807dc15ee$export$d699905dd57c73ca as useViewportSize, $ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription, $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, $e9faafb641e167db$export$90fc3a17d93f704c as useEvent, $1dbecbe27a04f9af$export$14d238f342723f25 as useValueEffect, $2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport, $4507461a1b870123$re_export$clamp as clamp, $4507461a1b870123$re_export$snapValueToStep as snapValueToStep, $6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent, $8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent, $5a387cc49350e6db$export$722debc0e56fea39 as useDeepMemo, $99facab73266f662$export$5add1d006293d136 as useFormReset, $26f7f3da73fcd9d6$export$7717c92ee915373e as useLoadMore};
79
81
  //# sourceMappingURL=module.js.map
@@ -17,4 +17,4 @@
17
17
 
18
18
 
19
19
  export {$cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable};
20
- //# sourceMappingURL=isScrollable.mjs.map
20
+ //# sourceMappingURL=isScrollable.module.js.map
@@ -24,7 +24,7 @@ function $577e795361f19be9$export$60278871457622de(event) {
24
24
  // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
25
25
  // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
26
26
  // to detect TalkBack virtual clicks.
27
- if ((0, $9e20cff0af27e8cc$exports.isAndroid)() && event.pointerType) return event.type === "click" && event.buttons === 1;
27
+ if ((0, $9e20cff0af27e8cc$exports.isAndroid)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
28
28
  return event.detail === 0 && !event.pointerType;
29
29
  }
30
30
  function $577e795361f19be9$export$29bf1b5f2c56cf63(event) {
@@ -34,7 +34,7 @@ function $577e795361f19be9$export$29bf1b5f2c56cf63(event) {
34
34
  // Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
35
35
  // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
36
36
  // Talkback double tap from Windows Firefox touch screen press
37
- return !(0, $9e20cff0af27e8cc$exports.isAndroid)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
37
+ return !(0, $9e20cff0af27e8cc$exports.isAndroid)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
38
38
  }
39
39
 
40
40
 
@@ -17,7 +17,7 @@ function $6a7db85432448f7f$export$60278871457622de(event) {
17
17
  // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
18
18
  // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
19
19
  // to detect TalkBack virtual clicks.
20
- if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === "click" && event.buttons === 1;
20
+ if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
21
21
  return event.detail === 0 && !event.pointerType;
22
22
  }
23
23
  function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
@@ -27,9 +27,9 @@ function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
27
27
  // Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
28
28
  // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
29
29
  // Talkback double tap from Windows Firefox touch screen press
30
- return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
30
+ return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
31
31
  }
32
32
 
33
33
 
34
34
  export {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};
35
- //# sourceMappingURL=isVirtualEvent.mjs.map
35
+ //# sourceMappingURL=isVirtualEvent.module.js.map
@@ -17,7 +17,7 @@ function $6a7db85432448f7f$export$60278871457622de(event) {
17
17
  // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
18
18
  // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
19
19
  // to detect TalkBack virtual clicks.
20
- if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === "click" && event.buttons === 1;
20
+ if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
21
21
  return event.detail === 0 && !event.pointerType;
22
22
  }
23
23
  function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
@@ -27,7 +27,7 @@ function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
27
27
  // Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
28
28
  // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
29
29
  // Talkback double tap from Windows Firefox touch screen press
30
- return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
30
+ return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
31
31
  }
32
32
 
33
33
 
package/dist/main.js CHANGED
@@ -29,6 +29,7 @@ var $577e795361f19be9$exports = require("./isVirtualEvent.main.js");
29
29
  var $1254e5bb94ac8761$exports = require("./useEffectEvent.main.js");
30
30
  var $20e6e72fbf5dc81e$exports = require("./useDeepMemo.main.js");
31
31
  var $1f205e845604a423$exports = require("./useFormReset.main.js");
32
+ var $faa6ccd6fb62f877$exports = require("./useLoadMore.main.js");
32
33
  var $1Yh1N$reactstatelyutils = require("@react-stately/utils");
33
34
 
34
35
 
@@ -48,7 +49,7 @@ $parcel$export(module.exports, "filterDOMProps", () => $8d15d0e1797d4238$exports
48
49
  $parcel$export(module.exports, "focusWithoutScrolling", () => $1117b6c0d4c4c164$exports.focusWithoutScrolling);
49
50
  $parcel$export(module.exports, "getOffset", () => $16ec41ef3e36c19c$exports.getOffset);
50
51
  $parcel$export(module.exports, "openLink", () => $4068a0fae83b6d84$exports.openLink);
51
- $parcel$export(module.exports, "getSyntheticLinkProps", () => $4068a0fae83b6d84$exports.getSyntheticLinkProps);
52
+ $parcel$export(module.exports, "useSyntheticLinkProps", () => $4068a0fae83b6d84$exports.useSyntheticLinkProps);
52
53
  $parcel$export(module.exports, "RouterProvider", () => $4068a0fae83b6d84$exports.RouterProvider);
53
54
  $parcel$export(module.exports, "shouldClientNavigate", () => $4068a0fae83b6d84$exports.shouldClientNavigate);
54
55
  $parcel$export(module.exports, "useRouter", () => $4068a0fae83b6d84$exports.useRouter);
@@ -87,6 +88,7 @@ $parcel$export(module.exports, "isVirtualPointerEvent", () => $577e795361f19be9$
87
88
  $parcel$export(module.exports, "useEffectEvent", () => $1254e5bb94ac8761$exports.useEffectEvent);
88
89
  $parcel$export(module.exports, "useDeepMemo", () => $20e6e72fbf5dc81e$exports.useDeepMemo);
89
90
  $parcel$export(module.exports, "useFormReset", () => $1f205e845604a423$exports.useFormReset);
91
+ $parcel$export(module.exports, "useLoadMore", () => $faa6ccd6fb62f877$exports.useLoadMore);
90
92
  /*
91
93
  * Copyright 2020 Adobe. All rights reserved.
92
94
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -129,6 +131,7 @@ $parcel$export(module.exports, "useFormReset", () => $1f205e845604a423$exports.u
129
131
 
130
132
 
131
133
 
134
+
132
135
 
133
136
 
134
137
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/utils/src/index.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 */\nexport {useId, mergeIds, useSlotId} from './useId';\nexport {chain} from './chain';\nexport {getOwnerDocument, getOwnerWindow} from './domHelpers';\nexport {mergeProps} from './mergeProps';\nexport {mergeRefs} from './mergeRefs';\nexport {filterDOMProps} from './filterDOMProps';\nexport {focusWithoutScrolling} from './focusWithoutScrolling';\nexport {getOffset} from './getOffset';\nexport {openLink, getSyntheticLinkProps, RouterProvider, shouldClientNavigate, useRouter, useLinkProps} from './openLink';\nexport {runAfterTransition} from './runAfterTransition';\nexport {useDrag1D} from './useDrag1D';\nexport {useGlobalListeners} from './useGlobalListeners';\nexport {useLabels} from './useLabels';\nexport {useObjectRef} from './useObjectRef';\nexport {useUpdateEffect} from './useUpdateEffect';\nexport {useLayoutEffect} from './useLayoutEffect';\nexport {useResizeObserver} from './useResizeObserver';\nexport {useSyncRef} from './useSyncRef';\nexport {getScrollParent} from './getScrollParent';\nexport {getScrollParents} from './getScrollParents';\nexport {isScrollable} from './isScrollable';\nexport {useViewportSize} from './useViewportSize';\nexport {useDescription} from './useDescription';\nexport {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAndroid, isFirefox} from './platform';\nexport {useEvent} from './useEvent';\nexport {useValueEffect} from './useValueEffect';\nexport {scrollIntoView, scrollIntoViewport} from './scrollIntoView';\nexport {clamp, snapValueToStep} from '@react-stately/utils';\nexport {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent';\nexport {useEffectEvent} from './useEffectEvent';\nexport {useDeepMemo} from './useDeepMemo';\nexport {useFormReset} from './useFormReset';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/utils/src/index.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 */\nexport {useId, mergeIds, useSlotId} from './useId';\nexport {chain} from './chain';\nexport {getOwnerDocument, getOwnerWindow} from './domHelpers';\nexport {mergeProps} from './mergeProps';\nexport {mergeRefs} from './mergeRefs';\nexport {filterDOMProps} from './filterDOMProps';\nexport {focusWithoutScrolling} from './focusWithoutScrolling';\nexport {getOffset} from './getOffset';\nexport {openLink, useSyntheticLinkProps, RouterProvider, shouldClientNavigate, useRouter, useLinkProps} from './openLink';\nexport {runAfterTransition} from './runAfterTransition';\nexport {useDrag1D} from './useDrag1D';\nexport {useGlobalListeners} from './useGlobalListeners';\nexport {useLabels} from './useLabels';\nexport {useObjectRef} from './useObjectRef';\nexport {useUpdateEffect} from './useUpdateEffect';\nexport {useLayoutEffect} from './useLayoutEffect';\nexport {useResizeObserver} from './useResizeObserver';\nexport {useSyncRef} from './useSyncRef';\nexport {getScrollParent} from './getScrollParent';\nexport {getScrollParents} from './getScrollParents';\nexport {isScrollable} from './isScrollable';\nexport {useViewportSize} from './useViewportSize';\nexport {useDescription} from './useDescription';\nexport {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAndroid, isFirefox} from './platform';\nexport {useEvent} from './useEvent';\nexport {useValueEffect} from './useValueEffect';\nexport {scrollIntoView, scrollIntoViewport} from './scrollIntoView';\nexport {clamp, snapValueToStep} from '@react-stately/utils';\nexport {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent';\nexport {useEffectEvent} from './useEffectEvent';\nexport {useDeepMemo} from './useDeepMemo';\nexport {useFormReset} from './useFormReset';\nexport {useLoadMore} from './useLoadMore';\n"],"names":[],"version":3,"file":"main.js.map"}
@@ -37,10 +37,10 @@ function $f847cd1382ea7cd4$export$9d1611c77c2fe928(...args) {
37
37
  let a = result[key];
38
38
  let b = props[key];
39
39
  // Chain events
40
- if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
41
- key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $1e2191638e54f613$exports.chain)(a, b);
42
- else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (0, ($parcel$interopDefault($eVrjB$clsx)))(a, b);
43
- else if (key === "id" && a && b) result.id = (0, $8c61827343eed941$exports.mergeIds)(a, b);
40
+ if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
41
+ key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $1e2191638e54f613$exports.chain)(a, b);
42
+ else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, ($parcel$interopDefault($eVrjB$clsx)))(a, b);
43
+ else if (key === 'id' && a && b) result.id = (0, $8c61827343eed941$exports.mergeIds)(a, b);
44
44
  else result[key] = b !== undefined ? b : a;
45
45
  }
46
46
  }
@@ -27,10 +27,10 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
27
27
  let a = result[key];
28
28
  let b = props[key];
29
29
  // Chain events
30
- if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
31
- key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
32
- else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (0, $7jXr9$clsx)(a, b);
33
- else if (key === "id" && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
30
+ if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
31
+ key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
32
+ else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);
33
+ else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
34
34
  else result[key] = b !== undefined ? b : a;
35
35
  }
36
36
  }
@@ -39,4 +39,4 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
39
39
 
40
40
 
41
41
  export {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps};
42
- //# sourceMappingURL=mergeProps.mjs.map
42
+ //# sourceMappingURL=mergeProps.module.js.map
@@ -27,10 +27,10 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
27
27
  let a = result[key];
28
28
  let b = props[key];
29
29
  // Chain events
30
- if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
31
- key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
32
- else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (0, $7jXr9$clsx)(a, b);
33
- else if (key === "id" && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
30
+ if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
31
+ key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
32
+ else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);
33
+ else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
34
34
  else result[key] = b !== undefined ? b : a;
35
35
  }
36
36
  }
@@ -15,10 +15,10 @@ $parcel$export(module.exports, "mergeRefs", () => $f05dc24eafaeb7e2$export$c9058
15
15
  * OF ANY KIND, either express or implied. See the License for the specific language
16
16
  * governing permissions and limitations under the License.
17
17
  */ function $f05dc24eafaeb7e2$export$c9058316764c140e(...refs) {
18
- if (refs.length === 1) return refs[0];
18
+ if (refs.length === 1 && refs[0]) return refs[0];
19
19
  return (value)=>{
20
20
  for (let ref of refs){
21
- if (typeof ref === "function") ref(value);
21
+ if (typeof ref === 'function') ref(value);
22
22
  else if (ref != null) ref.current = value;
23
23
  }
24
24
  };
@@ -1 +1 @@
1
- {"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAAkD;IAChF,IAAI,KAAK,MAAM,KAAK,GAClB,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,KAAK,IAAI,OAAO,KAAM;YACpB,IAAI,OAAO,QAAQ,YACjB,IAAI;iBACC,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;QAElB;IACF;AACF","sources":["packages/@react-aria/utils/src/mergeRefs.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\nimport {ForwardedRef, MutableRefObject} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<ForwardedRef<T> | MutableRefObject<T>>): ForwardedRef<T> {\n if (refs.length === 1) {\n return refs[0];\n }\n\n return (value: T | null) => {\n for (let ref of refs) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"mergeRefs.main.js.map"}
1
+ {"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAAqE;IACnG,IAAI,KAAK,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,EAC9B,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,KAAK,IAAI,OAAO,KAAM;YACpB,IAAI,OAAO,QAAQ,YACjB,IAAI;iBACC,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;QAElB;IACF;AACF","sources":["packages/@react-aria/utils/src/mergeRefs.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\nimport {ForwardedRef, MutableRefObject} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<ForwardedRef<T> | MutableRefObject<T> | null | undefined>): ForwardedRef<T> {\n if (refs.length === 1 && refs[0]) {\n return refs[0];\n }\n\n return (value: T | null) => {\n for (let ref of refs) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"mergeRefs.main.js.map"}
@@ -9,10 +9,10 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
12
- if (refs.length === 1) return refs[0];
12
+ if (refs.length === 1 && refs[0]) return refs[0];
13
13
  return (value)=>{
14
14
  for (let ref of refs){
15
- if (typeof ref === "function") ref(value);
15
+ if (typeof ref === 'function') ref(value);
16
16
  else if (ref != null) ref.current = value;
17
17
  }
18
18
  };
@@ -20,4 +20,4 @@
20
20
 
21
21
 
22
22
  export {$5dc95899b306f630$export$c9058316764c140e as mergeRefs};
23
- //# sourceMappingURL=mergeRefs.mjs.map
23
+ //# sourceMappingURL=mergeRefs.module.js.map
@@ -9,10 +9,10 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
12
- if (refs.length === 1) return refs[0];
12
+ if (refs.length === 1 && refs[0]) return refs[0];
13
13
  return (value)=>{
14
14
  for (let ref of refs){
15
- if (typeof ref === "function") ref(value);
15
+ if (typeof ref === 'function') ref(value);
16
16
  else if (ref != null) ref.current = value;
17
17
  }
18
18
  };
@@ -1 +1 @@
1
- {"mappings":"AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAAkD;IAChF,IAAI,KAAK,MAAM,KAAK,GAClB,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,KAAK,IAAI,OAAO,KAAM;YACpB,IAAI,OAAO,QAAQ,YACjB,IAAI;iBACC,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;QAElB;IACF;AACF","sources":["packages/@react-aria/utils/src/mergeRefs.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\nimport {ForwardedRef, MutableRefObject} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<ForwardedRef<T> | MutableRefObject<T>>): ForwardedRef<T> {\n if (refs.length === 1) {\n return refs[0];\n }\n\n return (value: T | null) => {\n for (let ref of refs) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"mergeRefs.module.js.map"}
1
+ {"mappings":"AAAA;;;;;;;;;;CAUC,GAOM,SAAS,0CAAa,GAAG,IAAqE;IACnG,IAAI,KAAK,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,EAC9B,OAAO,IAAI,CAAC,EAAE;IAGhB,OAAO,CAAC;QACN,KAAK,IAAI,OAAO,KAAM;YACpB,IAAI,OAAO,QAAQ,YACjB,IAAI;iBACC,IAAI,OAAO,MAChB,IAAI,OAAO,GAAG;QAElB;IACF;AACF","sources":["packages/@react-aria/utils/src/mergeRefs.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\nimport {ForwardedRef, MutableRefObject} from 'react';\n\n/**\n * Merges multiple refs into one. Works with either callback or object refs.\n */\nexport function mergeRefs<T>(...refs: Array<ForwardedRef<T> | MutableRefObject<T> | null | undefined>): ForwardedRef<T> {\n if (refs.length === 1 && refs[0]) {\n return refs[0];\n }\n\n return (value: T | null) => {\n for (let ref of refs) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"mergeRefs.module.js.map"}