@react-aria/visually-hidden 3.2.5 → 3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
- var $l9SOU$reactariautils = require("@react-aria/utils");
2
- var $l9SOU$react = require("react");
3
- var $l9SOU$reactariainteractions = require("@react-aria/interactions");
1
+ var $2Agrv$reactariautils = require("@react-aria/utils");
2
+ var $2Agrv$react = require("react");
3
+ var $2Agrv$reactariainteractions = require("@react-aria/interactions");
4
4
 
5
5
  function $parcel$exportWildcard(dest, source) {
6
6
  Object.keys(source).forEach(function(key) {
@@ -24,14 +24,14 @@ function $parcel$interopDefault(a) {
24
24
  function $parcel$export(e, n, v, s) {
25
25
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
26
26
  }
27
- var $8b518376223642b1$exports = {};
27
+ var $b5c81b25cdf7a43c$exports = {};
28
28
 
29
- $parcel$export($8b518376223642b1$exports, "useVisuallyHidden", () => $8b518376223642b1$export$a966af930f325cab);
30
- $parcel$export($8b518376223642b1$exports, "VisuallyHidden", () => $8b518376223642b1$export$439d29a4e110a164);
29
+ $parcel$export($b5c81b25cdf7a43c$exports, "useVisuallyHidden", () => $b5c81b25cdf7a43c$export$a966af930f325cab);
30
+ $parcel$export($b5c81b25cdf7a43c$exports, "VisuallyHidden", () => $b5c81b25cdf7a43c$export$439d29a4e110a164);
31
31
 
32
32
 
33
33
 
34
- const $8b518376223642b1$var$styles = {
34
+ const $b5c81b25cdf7a43c$var$styles = {
35
35
  border: 0,
36
36
  clip: 'rect(0 0 0 0)',
37
37
  clipPath: 'inset(50%)',
@@ -43,22 +43,22 @@ const $8b518376223642b1$var$styles = {
43
43
  width: 1,
44
44
  whiteSpace: 'nowrap'
45
45
  };
46
- function $8b518376223642b1$export$a966af930f325cab(props = {
46
+ function $b5c81b25cdf7a43c$export$a966af930f325cab(props = {
47
47
  }) {
48
48
  let { style: style , isFocusable: isFocusable } = props;
49
- let [isFocused, setFocused] = $l9SOU$react.useState(false);
50
- let { focusProps: focusProps } = $l9SOU$reactariainteractions.useFocus({
49
+ let [isFocused, setFocused] = $2Agrv$react.useState(false);
50
+ let { focusProps: focusProps } = $2Agrv$reactariainteractions.useFocus({
51
51
  isDisabled: !isFocusable,
52
52
  onFocusChange: setFocused
53
53
  });
54
54
  // If focused, don't hide the element.
55
- let combinedStyles = $l9SOU$react.useMemo(()=>{
55
+ let combinedStyles = $2Agrv$react.useMemo(()=>{
56
56
  if (isFocused) return style;
57
57
  else if (style) return {
58
- ...$8b518376223642b1$var$styles,
58
+ ...$b5c81b25cdf7a43c$var$styles,
59
59
  ...style
60
60
  };
61
- else return $8b518376223642b1$var$styles;
61
+ else return $b5c81b25cdf7a43c$var$styles;
62
62
  }, [
63
63
  isFocused
64
64
  ]);
@@ -69,15 +69,15 @@ function $8b518376223642b1$export$a966af930f325cab(props = {
69
69
  }
70
70
  };
71
71
  }
72
- function $8b518376223642b1$export$439d29a4e110a164(props) {
72
+ function $b5c81b25cdf7a43c$export$439d29a4e110a164(props) {
73
73
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
74
74
  let { children: children , elementType: Element = 'div' , isFocusable: isFocusable , style: style , ...otherProps } = props;
75
- let { visuallyHiddenProps: visuallyHiddenProps } = $8b518376223642b1$export$a966af930f325cab(props);
76
- return(/*#__PURE__*/ ($parcel$interopDefault($l9SOU$react)).createElement(Element, $l9SOU$reactariautils.mergeProps(otherProps, visuallyHiddenProps), children));
75
+ let { visuallyHiddenProps: visuallyHiddenProps } = $b5c81b25cdf7a43c$export$a966af930f325cab(props);
76
+ return(/*#__PURE__*/ ($parcel$interopDefault($2Agrv$react)).createElement(Element, $2Agrv$reactariautils.mergeProps(otherProps, visuallyHiddenProps), children));
77
77
  }
78
78
 
79
79
 
80
- $parcel$exportWildcard(module.exports, $8b518376223642b1$exports);
80
+ $parcel$exportWildcard(module.exports, $b5c81b25cdf7a43c$exports);
81
81
 
82
82
 
83
83
  //# sourceMappingURL=main.js.map
package/dist/module.js CHANGED
@@ -1,18 +1,18 @@
1
- import {mergeProps as $hZMlr$mergeProps} from "@react-aria/utils";
2
- import $hZMlr$react, {useState as $hZMlr$useState, useMemo as $hZMlr$useMemo} from "react";
3
- import {useFocus as $hZMlr$useFocus} from "@react-aria/interactions";
1
+ import {mergeProps as $9BxnE$mergeProps} from "@react-aria/utils";
2
+ import $9BxnE$react, {useState as $9BxnE$useState, useMemo as $9BxnE$useMemo} from "react";
3
+ import {useFocus as $9BxnE$useFocus} from "@react-aria/interactions";
4
4
 
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
7
  }
8
- var $2b1a1e0abf5e6e14$exports = {};
8
+ var $5c3e21d68f1c4674$exports = {};
9
9
 
10
- $parcel$export($2b1a1e0abf5e6e14$exports, "useVisuallyHidden", () => $2b1a1e0abf5e6e14$export$a966af930f325cab);
11
- $parcel$export($2b1a1e0abf5e6e14$exports, "VisuallyHidden", () => $2b1a1e0abf5e6e14$export$439d29a4e110a164);
10
+ $parcel$export($5c3e21d68f1c4674$exports, "useVisuallyHidden", () => $5c3e21d68f1c4674$export$a966af930f325cab);
11
+ $parcel$export($5c3e21d68f1c4674$exports, "VisuallyHidden", () => $5c3e21d68f1c4674$export$439d29a4e110a164);
12
12
 
13
13
 
14
14
 
15
- const $2b1a1e0abf5e6e14$var$styles = {
15
+ const $5c3e21d68f1c4674$var$styles = {
16
16
  border: 0,
17
17
  clip: 'rect(0 0 0 0)',
18
18
  clipPath: 'inset(50%)',
@@ -24,22 +24,22 @@ const $2b1a1e0abf5e6e14$var$styles = {
24
24
  width: 1,
25
25
  whiteSpace: 'nowrap'
26
26
  };
27
- function $2b1a1e0abf5e6e14$export$a966af930f325cab(props = {
27
+ function $5c3e21d68f1c4674$export$a966af930f325cab(props = {
28
28
  }) {
29
29
  let { style: style , isFocusable: isFocusable } = props;
30
- let [isFocused, setFocused] = $hZMlr$useState(false);
31
- let { focusProps: focusProps } = $hZMlr$useFocus({
30
+ let [isFocused, setFocused] = $9BxnE$useState(false);
31
+ let { focusProps: focusProps } = $9BxnE$useFocus({
32
32
  isDisabled: !isFocusable,
33
33
  onFocusChange: setFocused
34
34
  });
35
35
  // If focused, don't hide the element.
36
- let combinedStyles = $hZMlr$useMemo(()=>{
36
+ let combinedStyles = $9BxnE$useMemo(()=>{
37
37
  if (isFocused) return style;
38
38
  else if (style) return {
39
- ...$2b1a1e0abf5e6e14$var$styles,
39
+ ...$5c3e21d68f1c4674$var$styles,
40
40
  ...style
41
41
  };
42
- else return $2b1a1e0abf5e6e14$var$styles;
42
+ else return $5c3e21d68f1c4674$var$styles;
43
43
  }, [
44
44
  isFocused
45
45
  ]);
@@ -50,15 +50,15 @@ function $2b1a1e0abf5e6e14$export$a966af930f325cab(props = {
50
50
  }
51
51
  };
52
52
  }
53
- function $2b1a1e0abf5e6e14$export$439d29a4e110a164(props) {
53
+ function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
54
54
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
55
55
  let { children: children , elementType: Element = 'div' , isFocusable: isFocusable , style: style , ...otherProps } = props;
56
- let { visuallyHiddenProps: visuallyHiddenProps } = $2b1a1e0abf5e6e14$export$a966af930f325cab(props);
57
- return(/*#__PURE__*/ $hZMlr$react.createElement(Element, $hZMlr$mergeProps(otherProps, visuallyHiddenProps), children));
56
+ let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
57
+ return(/*#__PURE__*/ $9BxnE$react.createElement(Element, $9BxnE$mergeProps(otherProps, visuallyHiddenProps), children));
58
58
  }
59
59
 
60
60
 
61
61
 
62
62
 
63
- export {$2b1a1e0abf5e6e14$export$a966af930f325cab as useVisuallyHidden, $2b1a1e0abf5e6e14$export$439d29a4e110a164 as VisuallyHidden};
63
+ export {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};
64
64
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/visually-hidden",
3
- "version": "3.2.5",
3
+ "version": "3.2.8",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.6.2",
23
- "@react-aria/interactions": "^3.8.1",
24
- "@react-aria/utils": "^3.11.2",
23
+ "@react-aria/interactions": "^3.8.4",
24
+ "@react-aria/utils": "^3.12.0",
25
25
  "clsx": "^1.1.1"
26
26
  },
27
27
  "peerDependencies": {
@@ -30,5 +30,5 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
33
+ "gitHead": "6a503b715e0dbbf92038cd7f08b1bcdde4c78e82"
34
34
  }