@react-aria/visually-hidden 3.8.11 → 3.8.13
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.
|
@@ -28,15 +28,15 @@ $parcel$export(module.exports, "VisuallyHidden", () => $b5c81b25cdf7a43c$export$
|
|
|
28
28
|
|
|
29
29
|
const $b5c81b25cdf7a43c$var$styles = {
|
|
30
30
|
border: 0,
|
|
31
|
-
clip:
|
|
32
|
-
clipPath:
|
|
33
|
-
height:
|
|
34
|
-
margin:
|
|
35
|
-
overflow:
|
|
31
|
+
clip: 'rect(0 0 0 0)',
|
|
32
|
+
clipPath: 'inset(50%)',
|
|
33
|
+
height: '1px',
|
|
34
|
+
margin: '-1px',
|
|
35
|
+
overflow: 'hidden',
|
|
36
36
|
padding: 0,
|
|
37
|
-
position:
|
|
38
|
-
width:
|
|
39
|
-
whiteSpace:
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
width: '1px',
|
|
39
|
+
whiteSpace: 'nowrap'
|
|
40
40
|
};
|
|
41
41
|
function $b5c81b25cdf7a43c$export$a966af930f325cab(props = {}) {
|
|
42
42
|
let { style: style, isFocusable: isFocusable } = props;
|
|
@@ -66,7 +66,7 @@ function $b5c81b25cdf7a43c$export$a966af930f325cab(props = {}) {
|
|
|
66
66
|
}
|
|
67
67
|
function $b5c81b25cdf7a43c$export$439d29a4e110a164(props) {
|
|
68
68
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
|
-
let { children: children, elementType: Element =
|
|
69
|
+
let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;
|
|
70
70
|
let { visuallyHiddenProps: visuallyHiddenProps } = $b5c81b25cdf7a43c$export$a966af930f325cab(props);
|
|
71
71
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($2ohTN$react))).createElement(Element, (0, $2ohTN$reactariautils.mergeProps)(otherProps, visuallyHiddenProps), children);
|
|
72
72
|
}
|
package/dist/VisuallyHidden.mjs
CHANGED
|
@@ -17,15 +17,15 @@ import {useFocusWithin as $7JYt2$useFocusWithin} from "@react-aria/interactions"
|
|
|
17
17
|
|
|
18
18
|
const $5c3e21d68f1c4674$var$styles = {
|
|
19
19
|
border: 0,
|
|
20
|
-
clip:
|
|
21
|
-
clipPath:
|
|
22
|
-
height:
|
|
23
|
-
margin:
|
|
24
|
-
overflow:
|
|
20
|
+
clip: 'rect(0 0 0 0)',
|
|
21
|
+
clipPath: 'inset(50%)',
|
|
22
|
+
height: '1px',
|
|
23
|
+
margin: '-1px',
|
|
24
|
+
overflow: 'hidden',
|
|
25
25
|
padding: 0,
|
|
26
|
-
position:
|
|
27
|
-
width:
|
|
28
|
-
whiteSpace:
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
width: '1px',
|
|
28
|
+
whiteSpace: 'nowrap'
|
|
29
29
|
};
|
|
30
30
|
function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
|
|
31
31
|
let { style: style, isFocusable: isFocusable } = props;
|
|
@@ -55,11 +55,11 @@ function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
-
let { children: children, elementType: Element =
|
|
58
|
+
let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;
|
|
59
59
|
let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
|
|
60
60
|
return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
export {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};
|
|
65
|
-
//# sourceMappingURL=VisuallyHidden.
|
|
65
|
+
//# sourceMappingURL=VisuallyHidden.module.js.map
|
|
@@ -17,15 +17,15 @@ import {useFocusWithin as $7JYt2$useFocusWithin} from "@react-aria/interactions"
|
|
|
17
17
|
|
|
18
18
|
const $5c3e21d68f1c4674$var$styles = {
|
|
19
19
|
border: 0,
|
|
20
|
-
clip:
|
|
21
|
-
clipPath:
|
|
22
|
-
height:
|
|
23
|
-
margin:
|
|
24
|
-
overflow:
|
|
20
|
+
clip: 'rect(0 0 0 0)',
|
|
21
|
+
clipPath: 'inset(50%)',
|
|
22
|
+
height: '1px',
|
|
23
|
+
margin: '-1px',
|
|
24
|
+
overflow: 'hidden',
|
|
25
25
|
padding: 0,
|
|
26
|
-
position:
|
|
27
|
-
width:
|
|
28
|
-
whiteSpace:
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
width: '1px',
|
|
28
|
+
whiteSpace: 'nowrap'
|
|
29
29
|
};
|
|
30
30
|
function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
|
|
31
31
|
let { style: style, isFocusable: isFocusable } = props;
|
|
@@ -55,7 +55,7 @@ function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
-
let { children: children, elementType: Element =
|
|
58
|
+
let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;
|
|
59
59
|
let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
|
|
60
60
|
return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);
|
|
61
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/visually-hidden",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.13",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"url": "https://github.com/adobe/react-spectrum"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@react-aria/interactions": "^3.
|
|
28
|
-
"@react-aria/utils": "^3.
|
|
29
|
-
"@react-types/shared": "^3.
|
|
27
|
+
"@react-aria/interactions": "^3.22.0",
|
|
28
|
+
"@react-aria/utils": "^3.25.0",
|
|
29
|
+
"@react-types/shared": "^3.24.0",
|
|
30
30
|
"@swc/helpers": "^0.5.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
33
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
39
39
|
}
|