@react-aria/breadcrumbs 3.4.1 → 3.5.1
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/import.mjs +326 -0
- package/package.json +13 -8
package/dist/import.mjs
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import {useLink as $i081u$useLink} from "@react-aria/link";
|
|
2
|
+
import {filterDOMProps as $i081u$filterDOMProps} from "@react-aria/utils";
|
|
3
|
+
import {useLocalizedStringFormatter as $i081u$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
4
|
+
|
|
5
|
+
function $parcel$interopDefault(a) {
|
|
6
|
+
return a && a.__esModule ? a.default : a;
|
|
7
|
+
}
|
|
8
|
+
/*
|
|
9
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
10
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
+
* governing permissions and limitations under the License.
|
|
18
|
+
*/ /*
|
|
19
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
function $dafd15390222438a$export$452b38fce62c9384(props, ref) {
|
|
30
|
+
let { isCurrent: isCurrent , isDisabled: isDisabled , "aria-current": ariaCurrent , elementType: elementType = "a" , ...otherProps } = props;
|
|
31
|
+
let { linkProps: linkProps } = (0, $i081u$useLink)({
|
|
32
|
+
isDisabled: isDisabled || isCurrent,
|
|
33
|
+
elementType: elementType,
|
|
34
|
+
...otherProps
|
|
35
|
+
}, ref);
|
|
36
|
+
let isHeading = /^h[1-6]$/.test(elementType);
|
|
37
|
+
let itemProps = {};
|
|
38
|
+
if (!isHeading) itemProps = linkProps;
|
|
39
|
+
if (isCurrent) {
|
|
40
|
+
itemProps["aria-current"] = ariaCurrent || "page";
|
|
41
|
+
// isCurrent sets isDisabled === true for the current item,
|
|
42
|
+
// so we have to restore the tabIndex in order to support autoFocus.
|
|
43
|
+
itemProps.tabIndex = props.autoFocus ? -1 : undefined;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
itemProps: {
|
|
47
|
+
"aria-disabled": isDisabled,
|
|
48
|
+
...itemProps
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
56
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
57
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
58
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
59
|
+
*
|
|
60
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
61
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
62
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
63
|
+
* governing permissions and limitations under the License.
|
|
64
|
+
*/
|
|
65
|
+
var $28dc7e2f5ed40c80$exports = {};
|
|
66
|
+
var $b91590b2dc47de39$exports = {};
|
|
67
|
+
$b91590b2dc47de39$exports = {
|
|
68
|
+
"breadcrumbs": `عناصر الواجهة`
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
var $55b0693b2cf3fe91$exports = {};
|
|
73
|
+
$55b0693b2cf3fe91$exports = {
|
|
74
|
+
"breadcrumbs": `Трохи хляб`
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
var $6ec1ed7729e948cc$exports = {};
|
|
79
|
+
$6ec1ed7729e948cc$exports = {
|
|
80
|
+
"breadcrumbs": `Popis cesty`
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
var $5a41bb2baa6861e4$exports = {};
|
|
85
|
+
$5a41bb2baa6861e4$exports = {
|
|
86
|
+
"breadcrumbs": `Brødkrummer`
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
var $f28bbea439e87eca$exports = {};
|
|
91
|
+
$f28bbea439e87eca$exports = {
|
|
92
|
+
"breadcrumbs": `Breadcrumbs`
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
var $b3eca51cb720961a$exports = {};
|
|
97
|
+
$b3eca51cb720961a$exports = {
|
|
98
|
+
"breadcrumbs": `Πλοηγήσεις breadcrumb`
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
var $0b39b205118db415$exports = {};
|
|
103
|
+
$0b39b205118db415$exports = {
|
|
104
|
+
"breadcrumbs": `Breadcrumbs`
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var $f467c0ee7bfb0950$exports = {};
|
|
109
|
+
$f467c0ee7bfb0950$exports = {
|
|
110
|
+
"breadcrumbs": `Migas de pan`
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
var $ab711d2ffb4cdf3d$exports = {};
|
|
115
|
+
$ab711d2ffb4cdf3d$exports = {
|
|
116
|
+
"breadcrumbs": `Lingiread`
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
var $b63105d663e6f9d5$exports = {};
|
|
121
|
+
$b63105d663e6f9d5$exports = {
|
|
122
|
+
"breadcrumbs": `Navigointilinkit`
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var $9d2ed7be7fcdc2a1$exports = {};
|
|
127
|
+
$9d2ed7be7fcdc2a1$exports = {
|
|
128
|
+
"breadcrumbs": `Chemin de navigation`
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
var $c5704294d85c7b5d$exports = {};
|
|
133
|
+
$c5704294d85c7b5d$exports = {
|
|
134
|
+
"breadcrumbs": `שבילי ניווט`
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
var $20c975671d6bbc63$exports = {};
|
|
139
|
+
$20c975671d6bbc63$exports = {
|
|
140
|
+
"breadcrumbs": `Navigacijski putovi`
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
var $2569ca3917233115$exports = {};
|
|
145
|
+
$2569ca3917233115$exports = {
|
|
146
|
+
"breadcrumbs": `Morzsamenü`
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
var $caa152f7f8e96c85$exports = {};
|
|
151
|
+
$caa152f7f8e96c85$exports = {
|
|
152
|
+
"breadcrumbs": `Breadcrumb`
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
var $cbc6af0cc98fad10$exports = {};
|
|
157
|
+
$cbc6af0cc98fad10$exports = {
|
|
158
|
+
"breadcrumbs": `パンくずリスト`
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
var $ad9be5d332b4d607$exports = {};
|
|
163
|
+
$ad9be5d332b4d607$exports = {
|
|
164
|
+
"breadcrumbs": `탐색 표시`
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
var $659de19a00ff9617$exports = {};
|
|
169
|
+
$659de19a00ff9617$exports = {
|
|
170
|
+
"breadcrumbs": `Naršymo kelias`
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
var $173e9fb4d14fe309$exports = {};
|
|
175
|
+
$173e9fb4d14fe309$exports = {
|
|
176
|
+
"breadcrumbs": `Atpakaļceļi`
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
var $d8e2640a066567a9$exports = {};
|
|
181
|
+
$d8e2640a066567a9$exports = {
|
|
182
|
+
"breadcrumbs": `Navigasjonsstier`
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
var $d71fd764236c0d12$exports = {};
|
|
187
|
+
$d71fd764236c0d12$exports = {
|
|
188
|
+
"breadcrumbs": `Broodkruimels`
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
var $f4ad3faf9f4aaec6$exports = {};
|
|
193
|
+
$f4ad3faf9f4aaec6$exports = {
|
|
194
|
+
"breadcrumbs": `Struktura nawigacyjna`
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
var $9703be9d55d8e9c2$exports = {};
|
|
199
|
+
$9703be9d55d8e9c2$exports = {
|
|
200
|
+
"breadcrumbs": `Caminho detalhado`
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
var $7e23baec8a14f309$exports = {};
|
|
205
|
+
$7e23baec8a14f309$exports = {
|
|
206
|
+
"breadcrumbs": `Categorias`
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
var $568f95594049d56e$exports = {};
|
|
211
|
+
$568f95594049d56e$exports = {
|
|
212
|
+
"breadcrumbs": `Miez de pâine`
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
var $625df06cecc70764$exports = {};
|
|
217
|
+
$625df06cecc70764$exports = {
|
|
218
|
+
"breadcrumbs": `Навигация`
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
var $b5a67525f3a2f594$exports = {};
|
|
223
|
+
$b5a67525f3a2f594$exports = {
|
|
224
|
+
"breadcrumbs": `Navigačné prvky Breadcrumbs`
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
var $16125922964febca$exports = {};
|
|
229
|
+
$16125922964febca$exports = {
|
|
230
|
+
"breadcrumbs": `Drobtine`
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
var $de104bf355206bcf$exports = {};
|
|
235
|
+
$de104bf355206bcf$exports = {
|
|
236
|
+
"breadcrumbs": `Putanje navigacije`
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
var $d5ab76bcbadc9c07$exports = {};
|
|
241
|
+
$d5ab76bcbadc9c07$exports = {
|
|
242
|
+
"breadcrumbs": `Sökvägar`
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
var $a6a1af5968159b55$exports = {};
|
|
247
|
+
$a6a1af5968159b55$exports = {
|
|
248
|
+
"breadcrumbs": `İçerik haritaları`
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
var $5204a30f0d17ffec$exports = {};
|
|
253
|
+
$5204a30f0d17ffec$exports = {
|
|
254
|
+
"breadcrumbs": `Навігаційна стежка`
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
var $8d15e736e12d3dfd$exports = {};
|
|
259
|
+
$8d15e736e12d3dfd$exports = {
|
|
260
|
+
"breadcrumbs": `导航栏`
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
var $f8c49dd804b75140$exports = {};
|
|
265
|
+
$f8c49dd804b75140$exports = {
|
|
266
|
+
"breadcrumbs": `導覽列`
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
$28dc7e2f5ed40c80$exports = {
|
|
271
|
+
"ar-AE": $b91590b2dc47de39$exports,
|
|
272
|
+
"bg-BG": $55b0693b2cf3fe91$exports,
|
|
273
|
+
"cs-CZ": $6ec1ed7729e948cc$exports,
|
|
274
|
+
"da-DK": $5a41bb2baa6861e4$exports,
|
|
275
|
+
"de-DE": $f28bbea439e87eca$exports,
|
|
276
|
+
"el-GR": $b3eca51cb720961a$exports,
|
|
277
|
+
"en-US": $0b39b205118db415$exports,
|
|
278
|
+
"es-ES": $f467c0ee7bfb0950$exports,
|
|
279
|
+
"et-EE": $ab711d2ffb4cdf3d$exports,
|
|
280
|
+
"fi-FI": $b63105d663e6f9d5$exports,
|
|
281
|
+
"fr-FR": $9d2ed7be7fcdc2a1$exports,
|
|
282
|
+
"he-IL": $c5704294d85c7b5d$exports,
|
|
283
|
+
"hr-HR": $20c975671d6bbc63$exports,
|
|
284
|
+
"hu-HU": $2569ca3917233115$exports,
|
|
285
|
+
"it-IT": $caa152f7f8e96c85$exports,
|
|
286
|
+
"ja-JP": $cbc6af0cc98fad10$exports,
|
|
287
|
+
"ko-KR": $ad9be5d332b4d607$exports,
|
|
288
|
+
"lt-LT": $659de19a00ff9617$exports,
|
|
289
|
+
"lv-LV": $173e9fb4d14fe309$exports,
|
|
290
|
+
"nb-NO": $d8e2640a066567a9$exports,
|
|
291
|
+
"nl-NL": $d71fd764236c0d12$exports,
|
|
292
|
+
"pl-PL": $f4ad3faf9f4aaec6$exports,
|
|
293
|
+
"pt-BR": $9703be9d55d8e9c2$exports,
|
|
294
|
+
"pt-PT": $7e23baec8a14f309$exports,
|
|
295
|
+
"ro-RO": $568f95594049d56e$exports,
|
|
296
|
+
"ru-RU": $625df06cecc70764$exports,
|
|
297
|
+
"sk-SK": $b5a67525f3a2f594$exports,
|
|
298
|
+
"sl-SI": $16125922964febca$exports,
|
|
299
|
+
"sr-SP": $de104bf355206bcf$exports,
|
|
300
|
+
"sv-SE": $d5ab76bcbadc9c07$exports,
|
|
301
|
+
"tr-TR": $a6a1af5968159b55$exports,
|
|
302
|
+
"uk-UA": $5204a30f0d17ffec$exports,
|
|
303
|
+
"zh-CN": $8d15e736e12d3dfd$exports,
|
|
304
|
+
"zh-TW": $f8c49dd804b75140$exports
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
|
|
310
|
+
let { "aria-label": ariaLabel , ...otherProps } = props;
|
|
311
|
+
let strings = (0, $i081u$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($28dc7e2f5ed40c80$exports))));
|
|
312
|
+
return {
|
|
313
|
+
navProps: {
|
|
314
|
+
...(0, $i081u$filterDOMProps)(otherProps, {
|
|
315
|
+
labelable: true
|
|
316
|
+
}),
|
|
317
|
+
"aria-label": ariaLabel || strings.format("breadcrumbs")
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
export {$dafd15390222438a$export$452b38fce62c9384 as useBreadcrumbItem, $848231d7a2b3998e$export$8cefe241bd876ca0 as useBreadcrumbs};
|
|
326
|
+
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/breadcrumbs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"types": "./dist/types.d.ts",
|
|
10
|
+
"import": "./dist/import.mjs",
|
|
11
|
+
"require": "./dist/main.js"
|
|
12
|
+
},
|
|
8
13
|
"types": "dist/types.d.ts",
|
|
9
14
|
"source": "src/index.ts",
|
|
10
15
|
"files": [
|
|
@@ -17,12 +22,12 @@
|
|
|
17
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
18
23
|
},
|
|
19
24
|
"dependencies": {
|
|
20
|
-
"@react-aria/i18n": "^3.
|
|
21
|
-
"@react-aria/interactions": "^3.
|
|
22
|
-
"@react-aria/link": "^3.
|
|
23
|
-
"@react-aria/utils": "^3.
|
|
24
|
-
"@react-types/breadcrumbs": "^3.
|
|
25
|
-
"@react-types/shared": "^3.
|
|
25
|
+
"@react-aria/i18n": "^3.7.1",
|
|
26
|
+
"@react-aria/interactions": "^3.15.0",
|
|
27
|
+
"@react-aria/link": "^3.5.0",
|
|
28
|
+
"@react-aria/utils": "^3.16.0",
|
|
29
|
+
"@react-types/breadcrumbs": "^3.5.1",
|
|
30
|
+
"@react-types/shared": "^3.18.0",
|
|
26
31
|
"@swc/helpers": "^0.4.14"
|
|
27
32
|
},
|
|
28
33
|
"peerDependencies": {
|
|
@@ -31,5 +36,5 @@
|
|
|
31
36
|
"publishConfig": {
|
|
32
37
|
"access": "public"
|
|
33
38
|
},
|
|
34
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "9d1ba9bd8ebcd63bf3495ade16d349bcb71795ce"
|
|
35
40
|
}
|