@react-aria/separator 3.3.12 → 3.3.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.
|
@@ -24,13 +24,13 @@ function $8fe2a70229d5746b$export$52210f68a14655d0(props) {
|
|
|
24
24
|
let ariaOrientation;
|
|
25
25
|
// if orientation is horizontal, aria-orientation default is horizontal, so we leave it undefined
|
|
26
26
|
// if it's vertical, we need to specify it
|
|
27
|
-
if (props.orientation ===
|
|
27
|
+
if (props.orientation === 'vertical') ariaOrientation = 'vertical';
|
|
28
28
|
// hr elements implicitly have role = separator and a horizontal orientation
|
|
29
|
-
if (props.elementType !==
|
|
29
|
+
if (props.elementType !== 'hr') return {
|
|
30
30
|
separatorProps: {
|
|
31
31
|
...domProps,
|
|
32
|
-
role:
|
|
33
|
-
|
|
32
|
+
role: 'separator',
|
|
33
|
+
'aria-orientation': ariaOrientation
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
return {
|
package/dist/useSeparator.mjs
CHANGED
|
@@ -18,13 +18,13 @@ function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
|
18
18
|
let ariaOrientation;
|
|
19
19
|
// if orientation is horizontal, aria-orientation default is horizontal, so we leave it undefined
|
|
20
20
|
// if it's vertical, we need to specify it
|
|
21
|
-
if (props.orientation ===
|
|
21
|
+
if (props.orientation === 'vertical') ariaOrientation = 'vertical';
|
|
22
22
|
// hr elements implicitly have role = separator and a horizontal orientation
|
|
23
|
-
if (props.elementType !==
|
|
23
|
+
if (props.elementType !== 'hr') return {
|
|
24
24
|
separatorProps: {
|
|
25
25
|
...domProps,
|
|
26
|
-
role:
|
|
27
|
-
|
|
26
|
+
role: 'separator',
|
|
27
|
+
'aria-orientation': ariaOrientation
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
return {
|
|
@@ -34,4 +34,4 @@ function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export {$f4b273590fab9f93$export$52210f68a14655d0 as useSeparator};
|
|
37
|
-
//# sourceMappingURL=useSeparator.
|
|
37
|
+
//# sourceMappingURL=useSeparator.module.js.map
|
|
@@ -18,13 +18,13 @@ function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
|
18
18
|
let ariaOrientation;
|
|
19
19
|
// if orientation is horizontal, aria-orientation default is horizontal, so we leave it undefined
|
|
20
20
|
// if it's vertical, we need to specify it
|
|
21
|
-
if (props.orientation ===
|
|
21
|
+
if (props.orientation === 'vertical') ariaOrientation = 'vertical';
|
|
22
22
|
// hr elements implicitly have role = separator and a horizontal orientation
|
|
23
|
-
if (props.elementType !==
|
|
23
|
+
if (props.elementType !== 'hr') return {
|
|
24
24
|
separatorProps: {
|
|
25
25
|
...domProps,
|
|
26
|
-
role:
|
|
27
|
-
|
|
26
|
+
role: 'separator',
|
|
27
|
+
'aria-orientation': ariaOrientation
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/separator",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-aria/utils": "^3.24.
|
|
26
|
-
"@react-types/shared": "^3.23.
|
|
25
|
+
"@react-aria/utils": "^3.24.1",
|
|
26
|
+
"@react-types/shared": "^3.23.1",
|
|
27
27
|
"@swc/helpers": "^0.5.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
36
36
|
}
|