@react-aria/breadcrumbs 3.5.11 → 3.5.12
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/import.mjs +2 -174
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- 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/main.js +4 -176
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -174
- package/dist/module.js.map +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 +45 -0
- package/dist/useBreadcrumbItem.main.js.map +1 -0
- package/dist/useBreadcrumbItem.mjs +40 -0
- package/dist/useBreadcrumbItem.module.js +40 -0
- package/dist/useBreadcrumbItem.module.js.map +1 -0
- package/dist/useBreadcrumbs.main.js +42 -0
- package/dist/useBreadcrumbs.main.js.map +1 -0
- package/dist/useBreadcrumbs.mjs +37 -0
- package/dist/useBreadcrumbs.module.js +37 -0
- package/dist/useBreadcrumbs.module.js.map +1 -0
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +7 -7
package/dist/lv-LV.mjs
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,98 +1,13 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $e48681b1dc80258f$exports = require("./cs-CZ.main.js");
|
|
4
|
-
var $526eff8a033de63f$exports = require("./da-DK.main.js");
|
|
5
|
-
var $7f7267bb8a1d1662$exports = require("./de-DE.main.js");
|
|
6
|
-
var $0b3e72b767c9c5b3$exports = require("./el-GR.main.js");
|
|
7
|
-
var $8013ecad7b80bc6e$exports = require("./en-US.main.js");
|
|
8
|
-
var $8193bd3309f169ce$exports = require("./es-ES.main.js");
|
|
9
|
-
var $7f47590ede0d21d1$exports = require("./et-EE.main.js");
|
|
10
|
-
var $fedbf3ad45bbd615$exports = require("./fi-FI.main.js");
|
|
11
|
-
var $6383f908645d7728$exports = require("./fr-FR.main.js");
|
|
12
|
-
var $299c10c6ab4bac38$exports = require("./he-IL.main.js");
|
|
13
|
-
var $592de6075df6565f$exports = require("./hr-HR.main.js");
|
|
14
|
-
var $3254f62b1e6ffcdf$exports = require("./hu-HU.main.js");
|
|
15
|
-
var $af79bd6e06d0bafc$exports = require("./it-IT.main.js");
|
|
16
|
-
var $ed35043e56c9ef04$exports = require("./ja-JP.main.js");
|
|
17
|
-
var $f58ec35afca1f567$exports = require("./ko-KR.main.js");
|
|
18
|
-
var $3307b3bb9c99bd7d$exports = require("./lt-LT.main.js");
|
|
19
|
-
var $9d434ee576a846f1$exports = require("./lv-LV.main.js");
|
|
20
|
-
var $443fe4201b655279$exports = require("./nb-NO.main.js");
|
|
21
|
-
var $c71565b8a4b2e14c$exports = require("./nl-NL.main.js");
|
|
22
|
-
var $fd06abc31ca2d9f9$exports = require("./pl-PL.main.js");
|
|
23
|
-
var $edac5269f16efde1$exports = require("./pt-BR.main.js");
|
|
24
|
-
var $3e3bf6af9d6c8c74$exports = require("./pt-PT.main.js");
|
|
25
|
-
var $9d34b5bd98d02fb7$exports = require("./ro-RO.main.js");
|
|
26
|
-
var $e7e947d72b4d0249$exports = require("./ru-RU.main.js");
|
|
27
|
-
var $d609946db34cbe1a$exports = require("./sk-SK.main.js");
|
|
28
|
-
var $c1ca8f5a39bf35b7$exports = require("./sl-SI.main.js");
|
|
29
|
-
var $67542feabb08cdf6$exports = require("./sr-SP.main.js");
|
|
30
|
-
var $aa3bbc636c202880$exports = require("./sv-SE.main.js");
|
|
31
|
-
var $c1fa2374ad960a0b$exports = require("./tr-TR.main.js");
|
|
32
|
-
var $b6a913e54307774b$exports = require("./uk-UA.main.js");
|
|
33
|
-
var $d246de3cea90219f$exports = require("./zh-CN.main.js");
|
|
34
|
-
var $de04860896c81313$exports = require("./zh-TW.main.js");
|
|
35
|
-
var $ceFFG$reactarialink = require("@react-aria/link");
|
|
36
|
-
var $ceFFG$reactariautils = require("@react-aria/utils");
|
|
37
|
-
var $ceFFG$reactariai18n = require("@react-aria/i18n");
|
|
1
|
+
var $a993edba0f043554$exports = require("./useBreadcrumbItem.main.js");
|
|
2
|
+
var $2b6c6844f922ad13$exports = require("./useBreadcrumbs.main.js");
|
|
38
3
|
|
|
39
4
|
|
|
40
5
|
function $parcel$export(e, n, v, s) {
|
|
41
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
42
7
|
}
|
|
43
8
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$parcel$export(module.exports, "useBreadcrumbItem", () => $a993edba0f043554$export$452b38fce62c9384);
|
|
49
|
-
$parcel$export(module.exports, "useBreadcrumbs", () => $2b6c6844f922ad13$export$8cefe241bd876ca0);
|
|
50
|
-
/*
|
|
51
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
52
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
53
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
54
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
55
|
-
*
|
|
56
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
57
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
58
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59
|
-
* governing permissions and limitations under the License.
|
|
60
|
-
*/ /*
|
|
61
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
62
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
63
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
64
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
65
|
-
*
|
|
66
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
67
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
68
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
69
|
-
* governing permissions and limitations under the License.
|
|
70
|
-
*/
|
|
71
|
-
function $a993edba0f043554$export$452b38fce62c9384(props, ref) {
|
|
72
|
-
let { isCurrent: isCurrent, isDisabled: isDisabled, "aria-current": ariaCurrent, elementType: elementType = "a", ...otherProps } = props;
|
|
73
|
-
let { linkProps: linkProps } = (0, $ceFFG$reactarialink.useLink)({
|
|
74
|
-
isDisabled: isDisabled || isCurrent,
|
|
75
|
-
elementType: elementType,
|
|
76
|
-
...otherProps
|
|
77
|
-
}, ref);
|
|
78
|
-
let isHeading = /^h[1-6]$/.test(elementType);
|
|
79
|
-
let itemProps = {};
|
|
80
|
-
if (!isHeading) itemProps = linkProps;
|
|
81
|
-
if (isCurrent) {
|
|
82
|
-
itemProps["aria-current"] = ariaCurrent || "page";
|
|
83
|
-
// isCurrent sets isDisabled === true for the current item,
|
|
84
|
-
// so we have to restore the tabIndex in order to support autoFocus.
|
|
85
|
-
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
itemProps: {
|
|
89
|
-
"aria-disabled": isDisabled,
|
|
90
|
-
...itemProps
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
9
|
+
$parcel$export(module.exports, "useBreadcrumbItem", () => $a993edba0f043554$exports.useBreadcrumbItem);
|
|
10
|
+
$parcel$export(module.exports, "useBreadcrumbs", () => $2b6c6844f922ad13$exports.useBreadcrumbs);
|
|
96
11
|
/*
|
|
97
12
|
* Copyright 2020 Adobe. All rights reserved.
|
|
98
13
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -104,93 +19,6 @@ function $a993edba0f043554$export$452b38fce62c9384(props, ref) {
|
|
|
104
19
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
105
20
|
* governing permissions and limitations under the License.
|
|
106
21
|
*/
|
|
107
|
-
var $907e591fa8a9456d$exports = {};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
$907e591fa8a9456d$exports = {
|
|
143
|
-
"ar-AE": $9f815b0e65822168$exports,
|
|
144
|
-
"bg-BG": $340712f3db10d7a4$exports,
|
|
145
|
-
"cs-CZ": $e48681b1dc80258f$exports,
|
|
146
|
-
"da-DK": $526eff8a033de63f$exports,
|
|
147
|
-
"de-DE": $7f7267bb8a1d1662$exports,
|
|
148
|
-
"el-GR": $0b3e72b767c9c5b3$exports,
|
|
149
|
-
"en-US": $8013ecad7b80bc6e$exports,
|
|
150
|
-
"es-ES": $8193bd3309f169ce$exports,
|
|
151
|
-
"et-EE": $7f47590ede0d21d1$exports,
|
|
152
|
-
"fi-FI": $fedbf3ad45bbd615$exports,
|
|
153
|
-
"fr-FR": $6383f908645d7728$exports,
|
|
154
|
-
"he-IL": $299c10c6ab4bac38$exports,
|
|
155
|
-
"hr-HR": $592de6075df6565f$exports,
|
|
156
|
-
"hu-HU": $3254f62b1e6ffcdf$exports,
|
|
157
|
-
"it-IT": $af79bd6e06d0bafc$exports,
|
|
158
|
-
"ja-JP": $ed35043e56c9ef04$exports,
|
|
159
|
-
"ko-KR": $f58ec35afca1f567$exports,
|
|
160
|
-
"lt-LT": $3307b3bb9c99bd7d$exports,
|
|
161
|
-
"lv-LV": $9d434ee576a846f1$exports,
|
|
162
|
-
"nb-NO": $443fe4201b655279$exports,
|
|
163
|
-
"nl-NL": $c71565b8a4b2e14c$exports,
|
|
164
|
-
"pl-PL": $fd06abc31ca2d9f9$exports,
|
|
165
|
-
"pt-BR": $edac5269f16efde1$exports,
|
|
166
|
-
"pt-PT": $3e3bf6af9d6c8c74$exports,
|
|
167
|
-
"ro-RO": $9d34b5bd98d02fb7$exports,
|
|
168
|
-
"ru-RU": $e7e947d72b4d0249$exports,
|
|
169
|
-
"sk-SK": $d609946db34cbe1a$exports,
|
|
170
|
-
"sl-SI": $c1ca8f5a39bf35b7$exports,
|
|
171
|
-
"sr-SP": $67542feabb08cdf6$exports,
|
|
172
|
-
"sv-SE": $aa3bbc636c202880$exports,
|
|
173
|
-
"tr-TR": $c1fa2374ad960a0b$exports,
|
|
174
|
-
"uk-UA": $b6a913e54307774b$exports,
|
|
175
|
-
"zh-CN": $d246de3cea90219f$exports,
|
|
176
|
-
"zh-TW": $de04860896c81313$exports
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
function $2b6c6844f922ad13$export$8cefe241bd876ca0(props) {
|
|
182
|
-
let { "aria-label": ariaLabel, ...otherProps } = props;
|
|
183
|
-
let strings = (0, $ceFFG$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($907e591fa8a9456d$exports))), "@react-aria/breadcrumbs");
|
|
184
|
-
return {
|
|
185
|
-
navProps: {
|
|
186
|
-
...(0, $ceFFG$reactariautils.filterDOMProps)(otherProps, {
|
|
187
|
-
labelable: true
|
|
188
|
-
}),
|
|
189
|
-
"aria-label": ariaLabel || strings.format("breadcrumbs")
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
|
|
194
22
|
|
|
195
23
|
|
|
196
24
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/breadcrumbs/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 {useBreadcrumbItem} from './useBreadcrumbItem';\nexport {useBreadcrumbs} from './useBreadcrumbs';\nexport type {AriaBreadcrumbItemProps, AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nexport type {BreadcrumbItemAria} from './useBreadcrumbItem';\nexport type {BreadcrumbsAria} from './useBreadcrumbs';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,56 +1,7 @@
|
|
|
1
|
-
import $
|
|
2
|
-
import $
|
|
3
|
-
import $6ec1ed7729e948cc$exports from "./cs-CZ.module.js";
|
|
4
|
-
import $5a41bb2baa6861e4$exports from "./da-DK.module.js";
|
|
5
|
-
import $f28bbea439e87eca$exports from "./de-DE.module.js";
|
|
6
|
-
import $b3eca51cb720961a$exports from "./el-GR.module.js";
|
|
7
|
-
import $0b39b205118db415$exports from "./en-US.module.js";
|
|
8
|
-
import $f467c0ee7bfb0950$exports from "./es-ES.module.js";
|
|
9
|
-
import $ab711d2ffb4cdf3d$exports from "./et-EE.module.js";
|
|
10
|
-
import $b63105d663e6f9d5$exports from "./fi-FI.module.js";
|
|
11
|
-
import $9d2ed7be7fcdc2a1$exports from "./fr-FR.module.js";
|
|
12
|
-
import $c5704294d85c7b5d$exports from "./he-IL.module.js";
|
|
13
|
-
import $20c975671d6bbc63$exports from "./hr-HR.module.js";
|
|
14
|
-
import $2569ca3917233115$exports from "./hu-HU.module.js";
|
|
15
|
-
import $caa152f7f8e96c85$exports from "./it-IT.module.js";
|
|
16
|
-
import $cbc6af0cc98fad10$exports from "./ja-JP.module.js";
|
|
17
|
-
import $ad9be5d332b4d607$exports from "./ko-KR.module.js";
|
|
18
|
-
import $659de19a00ff9617$exports from "./lt-LT.module.js";
|
|
19
|
-
import $173e9fb4d14fe309$exports from "./lv-LV.module.js";
|
|
20
|
-
import $d8e2640a066567a9$exports from "./nb-NO.module.js";
|
|
21
|
-
import $d71fd764236c0d12$exports from "./nl-NL.module.js";
|
|
22
|
-
import $f4ad3faf9f4aaec6$exports from "./pl-PL.module.js";
|
|
23
|
-
import $9703be9d55d8e9c2$exports from "./pt-BR.module.js";
|
|
24
|
-
import $7e23baec8a14f309$exports from "./pt-PT.module.js";
|
|
25
|
-
import $568f95594049d56e$exports from "./ro-RO.module.js";
|
|
26
|
-
import $625df06cecc70764$exports from "./ru-RU.module.js";
|
|
27
|
-
import $b5a67525f3a2f594$exports from "./sk-SK.module.js";
|
|
28
|
-
import $16125922964febca$exports from "./sl-SI.module.js";
|
|
29
|
-
import $de104bf355206bcf$exports from "./sr-SP.module.js";
|
|
30
|
-
import $d5ab76bcbadc9c07$exports from "./sv-SE.module.js";
|
|
31
|
-
import $a6a1af5968159b55$exports from "./tr-TR.module.js";
|
|
32
|
-
import $5204a30f0d17ffec$exports from "./uk-UA.module.js";
|
|
33
|
-
import $8d15e736e12d3dfd$exports from "./zh-CN.module.js";
|
|
34
|
-
import $f8c49dd804b75140$exports from "./zh-TW.module.js";
|
|
35
|
-
import {useLink as $i081u$useLink} from "@react-aria/link";
|
|
36
|
-
import {filterDOMProps as $i081u$filterDOMProps} from "@react-aria/utils";
|
|
37
|
-
import {useLocalizedStringFormatter as $i081u$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
1
|
+
import {useBreadcrumbItem as $dafd15390222438a$export$452b38fce62c9384} from "./useBreadcrumbItem.module.js";
|
|
2
|
+
import {useBreadcrumbs as $848231d7a2b3998e$export$8cefe241bd876ca0} from "./useBreadcrumbs.module.js";
|
|
38
3
|
|
|
39
|
-
|
|
40
|
-
function $parcel$interopDefault(a) {
|
|
41
|
-
return a && a.__esModule ? a.default : a;
|
|
42
|
-
}
|
|
43
4
|
/*
|
|
44
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
45
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
46
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
47
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
-
*
|
|
49
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
50
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
51
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
52
|
-
* governing permissions and limitations under the License.
|
|
53
|
-
*/ /*
|
|
54
5
|
* Copyright 2020 Adobe. All rights reserved.
|
|
55
6
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
56
7
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
@@ -61,129 +12,6 @@ function $parcel$interopDefault(a) {
|
|
|
61
12
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
62
13
|
* governing permissions and limitations under the License.
|
|
63
14
|
*/
|
|
64
|
-
function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
65
|
-
let { isCurrent: isCurrent, isDisabled: isDisabled, "aria-current": ariaCurrent, elementType: elementType = "a", ...otherProps } = props;
|
|
66
|
-
let { linkProps: linkProps } = (0, $i081u$useLink)({
|
|
67
|
-
isDisabled: isDisabled || isCurrent,
|
|
68
|
-
elementType: elementType,
|
|
69
|
-
...otherProps
|
|
70
|
-
}, ref);
|
|
71
|
-
let isHeading = /^h[1-6]$/.test(elementType);
|
|
72
|
-
let itemProps = {};
|
|
73
|
-
if (!isHeading) itemProps = linkProps;
|
|
74
|
-
if (isCurrent) {
|
|
75
|
-
itemProps["aria-current"] = ariaCurrent || "page";
|
|
76
|
-
// isCurrent sets isDisabled === true for the current item,
|
|
77
|
-
// so we have to restore the tabIndex in order to support autoFocus.
|
|
78
|
-
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
itemProps: {
|
|
82
|
-
"aria-disabled": isDisabled,
|
|
83
|
-
...itemProps
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/*
|
|
90
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
91
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
92
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
93
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
94
|
-
*
|
|
95
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
96
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
97
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
98
|
-
* governing permissions and limitations under the License.
|
|
99
|
-
*/
|
|
100
|
-
var $8229b34715874f89$exports = {};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
$8229b34715874f89$exports = {
|
|
136
|
-
"ar-AE": $b91590b2dc47de39$exports,
|
|
137
|
-
"bg-BG": $55b0693b2cf3fe91$exports,
|
|
138
|
-
"cs-CZ": $6ec1ed7729e948cc$exports,
|
|
139
|
-
"da-DK": $5a41bb2baa6861e4$exports,
|
|
140
|
-
"de-DE": $f28bbea439e87eca$exports,
|
|
141
|
-
"el-GR": $b3eca51cb720961a$exports,
|
|
142
|
-
"en-US": $0b39b205118db415$exports,
|
|
143
|
-
"es-ES": $f467c0ee7bfb0950$exports,
|
|
144
|
-
"et-EE": $ab711d2ffb4cdf3d$exports,
|
|
145
|
-
"fi-FI": $b63105d663e6f9d5$exports,
|
|
146
|
-
"fr-FR": $9d2ed7be7fcdc2a1$exports,
|
|
147
|
-
"he-IL": $c5704294d85c7b5d$exports,
|
|
148
|
-
"hr-HR": $20c975671d6bbc63$exports,
|
|
149
|
-
"hu-HU": $2569ca3917233115$exports,
|
|
150
|
-
"it-IT": $caa152f7f8e96c85$exports,
|
|
151
|
-
"ja-JP": $cbc6af0cc98fad10$exports,
|
|
152
|
-
"ko-KR": $ad9be5d332b4d607$exports,
|
|
153
|
-
"lt-LT": $659de19a00ff9617$exports,
|
|
154
|
-
"lv-LV": $173e9fb4d14fe309$exports,
|
|
155
|
-
"nb-NO": $d8e2640a066567a9$exports,
|
|
156
|
-
"nl-NL": $d71fd764236c0d12$exports,
|
|
157
|
-
"pl-PL": $f4ad3faf9f4aaec6$exports,
|
|
158
|
-
"pt-BR": $9703be9d55d8e9c2$exports,
|
|
159
|
-
"pt-PT": $7e23baec8a14f309$exports,
|
|
160
|
-
"ro-RO": $568f95594049d56e$exports,
|
|
161
|
-
"ru-RU": $625df06cecc70764$exports,
|
|
162
|
-
"sk-SK": $b5a67525f3a2f594$exports,
|
|
163
|
-
"sl-SI": $16125922964febca$exports,
|
|
164
|
-
"sr-SP": $de104bf355206bcf$exports,
|
|
165
|
-
"sv-SE": $d5ab76bcbadc9c07$exports,
|
|
166
|
-
"tr-TR": $a6a1af5968159b55$exports,
|
|
167
|
-
"uk-UA": $5204a30f0d17ffec$exports,
|
|
168
|
-
"zh-CN": $8d15e736e12d3dfd$exports,
|
|
169
|
-
"zh-TW": $f8c49dd804b75140$exports
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
|
|
175
|
-
let { "aria-label": ariaLabel, ...otherProps } = props;
|
|
176
|
-
let strings = (0, $i081u$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($8229b34715874f89$exports))), "@react-aria/breadcrumbs");
|
|
177
|
-
return {
|
|
178
|
-
navProps: {
|
|
179
|
-
...(0, $i081u$filterDOMProps)(otherProps, {
|
|
180
|
-
labelable: true
|
|
181
|
-
}),
|
|
182
|
-
"aria-label": ariaLabel || strings.format("breadcrumbs")
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
|
|
187
15
|
|
|
188
16
|
|
|
189
17
|
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/breadcrumbs/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 {useBreadcrumbItem} from './useBreadcrumbItem';\nexport {useBreadcrumbs} from './useBreadcrumbs';\nexport type {AriaBreadcrumbItemProps, AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nexport type {BreadcrumbItemAria} from './useBreadcrumbItem';\nexport type {BreadcrumbsAria} from './useBreadcrumbs';\n"],"names":[],"version":3,"file":"module.js.map"}
|
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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var $1D7I8$reactarialink = require("@react-aria/link");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
function $parcel$export(e, n, v, s) {
|
|
5
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$parcel$export(module.exports, "useBreadcrumbItem", () => $a993edba0f043554$export$452b38fce62c9384);
|
|
9
|
+
/*
|
|
10
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
11
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
12
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
13
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
16
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
17
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
18
|
+
* governing permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
function $a993edba0f043554$export$452b38fce62c9384(props, ref) {
|
|
21
|
+
let { isCurrent: isCurrent, isDisabled: isDisabled, "aria-current": ariaCurrent, elementType: elementType = "a", ...otherProps } = props;
|
|
22
|
+
let { linkProps: linkProps } = (0, $1D7I8$reactarialink.useLink)({
|
|
23
|
+
isDisabled: isDisabled || isCurrent,
|
|
24
|
+
elementType: elementType,
|
|
25
|
+
...otherProps
|
|
26
|
+
}, ref);
|
|
27
|
+
let isHeading = /^h[1-6]$/.test(elementType);
|
|
28
|
+
let itemProps = {};
|
|
29
|
+
if (!isHeading) itemProps = linkProps;
|
|
30
|
+
if (isCurrent) {
|
|
31
|
+
itemProps["aria-current"] = ariaCurrent || "page";
|
|
32
|
+
// isCurrent sets isDisabled === true for the current item,
|
|
33
|
+
// so we have to restore the tabIndex in order to support autoFocus.
|
|
34
|
+
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
itemProps: {
|
|
38
|
+
"aria-disabled": isDisabled,
|
|
39
|
+
...itemProps
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=useBreadcrumbItem.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAgBM,SAAS,0CAAkB,KAA8B,EAAE,GAAgC;IAChG,IAAI,aACF,SAAS,cACT,UAAU,EACV,gBAAgB,WAAW,eAC3B,cAAc,KACd,GAAG,YACJ,GAAG;IAEJ,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,4BAAM,EAAE;QAAC,YAAY,cAAc;qBAAW;QAAa,GAAG,UAAU;IAAA,GAAG;IAC7F,IAAI,YAAY,WAAW,IAAI,CAAC;IAChC,IAAI,YAA2B,CAAC;IAEhC,IAAI,CAAC,WACH,YAAY;IAGd,IAAI,WAAW;QACb,SAAS,CAAC,eAAe,GAAG,eAAe;QAC3C,2DAA2D;QAC3D,oEAAoE;QACpE,UAAU,QAAQ,GAAG,MAAM,SAAS,GAAG,KAAK;IAC9C;IAEA,OAAO;QACL,WAAW;YACT,iBAAiB;YACjB,GAAG,SAAS;QACd;IACF;AACF","sources":["packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.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 {AriaBreadcrumbItemProps} from '@react-types/breadcrumbs';\nimport {DOMAttributes, FocusableElement} from '@react-types/shared';\nimport {RefObject} from 'react';\nimport {useLink} from '@react-aria/link';\n\nexport interface BreadcrumbItemAria {\n /** Props for the breadcrumb item link element. */\n itemProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for an in a breadcrumbs component.\n * See `useBreadcrumbs` for details about breadcrumbs.\n */\nexport function useBreadcrumbItem(props: AriaBreadcrumbItemProps, ref: RefObject<FocusableElement>): BreadcrumbItemAria {\n let {\n isCurrent,\n isDisabled,\n 'aria-current': ariaCurrent,\n elementType = 'a',\n ...otherProps\n } = props;\n\n let {linkProps} = useLink({isDisabled: isDisabled || isCurrent, elementType, ...otherProps}, ref);\n let isHeading = /^h[1-6]$/.test(elementType);\n let itemProps: DOMAttributes = {};\n\n if (!isHeading) {\n itemProps = linkProps;\n }\n\n if (isCurrent) {\n itemProps['aria-current'] = ariaCurrent || 'page';\n // isCurrent sets isDisabled === true for the current item,\n // so we have to restore the tabIndex in order to support autoFocus.\n itemProps.tabIndex = props.autoFocus ? -1 : undefined;\n }\n\n return {\n itemProps: {\n 'aria-disabled': isDisabled,\n ...itemProps\n }\n };\n}\n"],"names":[],"version":3,"file":"useBreadcrumbItem.main.js.map"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {useLink as $iYMrm$useLink} from "@react-aria/link";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
5
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
7
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
10
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
11
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
12
|
+
* governing permissions and limitations under the License.
|
|
13
|
+
*/
|
|
14
|
+
function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
15
|
+
let { isCurrent: isCurrent, isDisabled: isDisabled, "aria-current": ariaCurrent, elementType: elementType = "a", ...otherProps } = props;
|
|
16
|
+
let { linkProps: linkProps } = (0, $iYMrm$useLink)({
|
|
17
|
+
isDisabled: isDisabled || isCurrent,
|
|
18
|
+
elementType: elementType,
|
|
19
|
+
...otherProps
|
|
20
|
+
}, ref);
|
|
21
|
+
let isHeading = /^h[1-6]$/.test(elementType);
|
|
22
|
+
let itemProps = {};
|
|
23
|
+
if (!isHeading) itemProps = linkProps;
|
|
24
|
+
if (isCurrent) {
|
|
25
|
+
itemProps["aria-current"] = ariaCurrent || "page";
|
|
26
|
+
// isCurrent sets isDisabled === true for the current item,
|
|
27
|
+
// so we have to restore the tabIndex in order to support autoFocus.
|
|
28
|
+
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
itemProps: {
|
|
32
|
+
"aria-disabled": isDisabled,
|
|
33
|
+
...itemProps
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export {$dafd15390222438a$export$452b38fce62c9384 as useBreadcrumbItem};
|
|
40
|
+
//# sourceMappingURL=useBreadcrumbItem.mjs.map
|