@react-aria/breadcrumbs 3.5.12 → 3.5.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.
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/intlStrings.mjs +1 -1
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/useBreadcrumbItem.main.js +3 -3
- package/dist/useBreadcrumbItem.mjs +4 -4
- package/dist/useBreadcrumbItem.module.js +3 -3
- package/dist/useBreadcrumbs.main.js +3 -3
- package/dist/useBreadcrumbs.mjs +4 -4
- package/dist/useBreadcrumbs.module.js +3 -3
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +7 -7
package/dist/ar-AE.mjs
CHANGED
package/dist/bg-BG.mjs
CHANGED
package/dist/cs-CZ.mjs
CHANGED
package/dist/da-DK.mjs
CHANGED
package/dist/de-DE.mjs
CHANGED
package/dist/el-GR.mjs
CHANGED
package/dist/en-US.mjs
CHANGED
package/dist/es-ES.mjs
CHANGED
package/dist/et-EE.mjs
CHANGED
package/dist/fi-FI.mjs
CHANGED
package/dist/fr-FR.mjs
CHANGED
package/dist/he-IL.mjs
CHANGED
package/dist/hr-HR.mjs
CHANGED
package/dist/hu-HU.mjs
CHANGED
package/dist/intlStrings.mjs
CHANGED
package/dist/it-IT.mjs
CHANGED
package/dist/ja-JP.mjs
CHANGED
package/dist/ko-KR.mjs
CHANGED
package/dist/lt-LT.mjs
CHANGED
package/dist/lv-LV.mjs
CHANGED
package/dist/nb-NO.mjs
CHANGED
package/dist/nl-NL.mjs
CHANGED
package/dist/pl-PL.mjs
CHANGED
package/dist/pt-BR.mjs
CHANGED
package/dist/pt-PT.mjs
CHANGED
package/dist/ro-RO.mjs
CHANGED
package/dist/ru-RU.mjs
CHANGED
package/dist/sk-SK.mjs
CHANGED
package/dist/sl-SI.mjs
CHANGED
package/dist/sr-SP.mjs
CHANGED
package/dist/sv-SE.mjs
CHANGED
package/dist/tr-TR.mjs
CHANGED
package/dist/uk-UA.mjs
CHANGED
|
@@ -18,7 +18,7 @@ $parcel$export(module.exports, "useBreadcrumbItem", () => $a993edba0f043554$expo
|
|
|
18
18
|
* governing permissions and limitations under the License.
|
|
19
19
|
*/
|
|
20
20
|
function $a993edba0f043554$export$452b38fce62c9384(props, ref) {
|
|
21
|
-
let { isCurrent: isCurrent, isDisabled: isDisabled,
|
|
21
|
+
let { isCurrent: isCurrent, isDisabled: isDisabled, 'aria-current': ariaCurrent, elementType: elementType = 'a', ...otherProps } = props;
|
|
22
22
|
let { linkProps: linkProps } = (0, $1D7I8$reactarialink.useLink)({
|
|
23
23
|
isDisabled: isDisabled || isCurrent,
|
|
24
24
|
elementType: elementType,
|
|
@@ -28,14 +28,14 @@ function $a993edba0f043554$export$452b38fce62c9384(props, ref) {
|
|
|
28
28
|
let itemProps = {};
|
|
29
29
|
if (!isHeading) itemProps = linkProps;
|
|
30
30
|
if (isCurrent) {
|
|
31
|
-
itemProps[
|
|
31
|
+
itemProps['aria-current'] = ariaCurrent || 'page';
|
|
32
32
|
// isCurrent sets isDisabled === true for the current item,
|
|
33
33
|
// so we have to restore the tabIndex in order to support autoFocus.
|
|
34
34
|
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
itemProps: {
|
|
38
|
-
|
|
38
|
+
'aria-disabled': isDisabled,
|
|
39
39
|
...itemProps
|
|
40
40
|
}
|
|
41
41
|
};
|
|
@@ -12,7 +12,7 @@ import {useLink as $iYMrm$useLink} from "@react-aria/link";
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
15
|
-
let { isCurrent: isCurrent, isDisabled: isDisabled,
|
|
15
|
+
let { isCurrent: isCurrent, isDisabled: isDisabled, 'aria-current': ariaCurrent, elementType: elementType = 'a', ...otherProps } = props;
|
|
16
16
|
let { linkProps: linkProps } = (0, $iYMrm$useLink)({
|
|
17
17
|
isDisabled: isDisabled || isCurrent,
|
|
18
18
|
elementType: elementType,
|
|
@@ -22,14 +22,14 @@ function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
|
22
22
|
let itemProps = {};
|
|
23
23
|
if (!isHeading) itemProps = linkProps;
|
|
24
24
|
if (isCurrent) {
|
|
25
|
-
itemProps[
|
|
25
|
+
itemProps['aria-current'] = ariaCurrent || 'page';
|
|
26
26
|
// isCurrent sets isDisabled === true for the current item,
|
|
27
27
|
// so we have to restore the tabIndex in order to support autoFocus.
|
|
28
28
|
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
itemProps: {
|
|
32
|
-
|
|
32
|
+
'aria-disabled': isDisabled,
|
|
33
33
|
...itemProps
|
|
34
34
|
}
|
|
35
35
|
};
|
|
@@ -37,4 +37,4 @@ function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
export {$dafd15390222438a$export$452b38fce62c9384 as useBreadcrumbItem};
|
|
40
|
-
//# sourceMappingURL=useBreadcrumbItem.
|
|
40
|
+
//# sourceMappingURL=useBreadcrumbItem.module.js.map
|
|
@@ -12,7 +12,7 @@ import {useLink as $iYMrm$useLink} from "@react-aria/link";
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
15
|
-
let { isCurrent: isCurrent, isDisabled: isDisabled,
|
|
15
|
+
let { isCurrent: isCurrent, isDisabled: isDisabled, 'aria-current': ariaCurrent, elementType: elementType = 'a', ...otherProps } = props;
|
|
16
16
|
let { linkProps: linkProps } = (0, $iYMrm$useLink)({
|
|
17
17
|
isDisabled: isDisabled || isCurrent,
|
|
18
18
|
elementType: elementType,
|
|
@@ -22,14 +22,14 @@ function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
|
22
22
|
let itemProps = {};
|
|
23
23
|
if (!isHeading) itemProps = linkProps;
|
|
24
24
|
if (isCurrent) {
|
|
25
|
-
itemProps[
|
|
25
|
+
itemProps['aria-current'] = ariaCurrent || 'page';
|
|
26
26
|
// isCurrent sets isDisabled === true for the current item,
|
|
27
27
|
// so we have to restore the tabIndex in order to support autoFocus.
|
|
28
28
|
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
itemProps: {
|
|
32
|
-
|
|
32
|
+
'aria-disabled': isDisabled,
|
|
33
33
|
...itemProps
|
|
34
34
|
}
|
|
35
35
|
};
|
|
@@ -26,14 +26,14 @@ $parcel$export(module.exports, "useBreadcrumbs", () => $2b6c6844f922ad13$export$
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
function $2b6c6844f922ad13$export$8cefe241bd876ca0(props) {
|
|
29
|
-
let {
|
|
30
|
-
let strings = (0, $3qDYu$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($907e591fa8a9456d$exports))),
|
|
29
|
+
let { 'aria-label': ariaLabel, ...otherProps } = props;
|
|
30
|
+
let strings = (0, $3qDYu$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($907e591fa8a9456d$exports))), '@react-aria/breadcrumbs');
|
|
31
31
|
return {
|
|
32
32
|
navProps: {
|
|
33
33
|
...(0, $3qDYu$reactariautils.filterDOMProps)(otherProps, {
|
|
34
34
|
labelable: true
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
'aria-label': ariaLabel || strings.format('breadcrumbs')
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
package/dist/useBreadcrumbs.mjs
CHANGED
|
@@ -20,18 +20,18 @@ function $parcel$interopDefault(a) {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
|
|
23
|
-
let {
|
|
24
|
-
let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))),
|
|
23
|
+
let { 'aria-label': ariaLabel, ...otherProps } = props;
|
|
24
|
+
let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))), '@react-aria/breadcrumbs');
|
|
25
25
|
return {
|
|
26
26
|
navProps: {
|
|
27
27
|
...(0, $lFxPb$filterDOMProps)(otherProps, {
|
|
28
28
|
labelable: true
|
|
29
29
|
}),
|
|
30
|
-
|
|
30
|
+
'aria-label': ariaLabel || strings.format('breadcrumbs')
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export {$848231d7a2b3998e$export$8cefe241bd876ca0 as useBreadcrumbs};
|
|
37
|
-
//# sourceMappingURL=useBreadcrumbs.
|
|
37
|
+
//# sourceMappingURL=useBreadcrumbs.module.js.map
|
|
@@ -20,14 +20,14 @@ function $parcel$interopDefault(a) {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
|
|
23
|
-
let {
|
|
24
|
-
let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))),
|
|
23
|
+
let { 'aria-label': ariaLabel, ...otherProps } = props;
|
|
24
|
+
let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))), '@react-aria/breadcrumbs');
|
|
25
25
|
return {
|
|
26
26
|
navProps: {
|
|
27
27
|
...(0, $lFxPb$filterDOMProps)(otherProps, {
|
|
28
28
|
labelable: true
|
|
29
29
|
}),
|
|
30
|
-
|
|
30
|
+
'aria-label': ariaLabel || strings.format('breadcrumbs')
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
}
|
package/dist/zh-CN.mjs
CHANGED
package/dist/zh-TW.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/breadcrumbs",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.13",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-aria/i18n": "^3.11.
|
|
26
|
-
"@react-aria/link": "^3.7.
|
|
27
|
-
"@react-aria/utils": "^3.24.
|
|
28
|
-
"@react-types/breadcrumbs": "^3.7.
|
|
29
|
-
"@react-types/shared": "^3.23.
|
|
25
|
+
"@react-aria/i18n": "^3.11.1",
|
|
26
|
+
"@react-aria/link": "^3.7.1",
|
|
27
|
+
"@react-aria/utils": "^3.24.1",
|
|
28
|
+
"@react-types/breadcrumbs": "^3.7.5",
|
|
29
|
+
"@react-types/shared": "^3.23.1",
|
|
30
30
|
"@swc/helpers": "^0.5.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
39
39
|
}
|