@react-aria/breadcrumbs 3.5.11 → 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/import.mjs CHANGED
@@ -1,56 +1,7 @@
1
- import $b91590b2dc47de39$exports from "./ar-AE.mjs";
2
- import $55b0693b2cf3fe91$exports from "./bg-BG.mjs";
3
- import $6ec1ed7729e948cc$exports from "./cs-CZ.mjs";
4
- import $5a41bb2baa6861e4$exports from "./da-DK.mjs";
5
- import $f28bbea439e87eca$exports from "./de-DE.mjs";
6
- import $b3eca51cb720961a$exports from "./el-GR.mjs";
7
- import $0b39b205118db415$exports from "./en-US.mjs";
8
- import $f467c0ee7bfb0950$exports from "./es-ES.mjs";
9
- import $ab711d2ffb4cdf3d$exports from "./et-EE.mjs";
10
- import $b63105d663e6f9d5$exports from "./fi-FI.mjs";
11
- import $9d2ed7be7fcdc2a1$exports from "./fr-FR.mjs";
12
- import $c5704294d85c7b5d$exports from "./he-IL.mjs";
13
- import $20c975671d6bbc63$exports from "./hr-HR.mjs";
14
- import $2569ca3917233115$exports from "./hu-HU.mjs";
15
- import $caa152f7f8e96c85$exports from "./it-IT.mjs";
16
- import $cbc6af0cc98fad10$exports from "./ja-JP.mjs";
17
- import $ad9be5d332b4d607$exports from "./ko-KR.mjs";
18
- import $659de19a00ff9617$exports from "./lt-LT.mjs";
19
- import $173e9fb4d14fe309$exports from "./lv-LV.mjs";
20
- import $d8e2640a066567a9$exports from "./nb-NO.mjs";
21
- import $d71fd764236c0d12$exports from "./nl-NL.mjs";
22
- import $f4ad3faf9f4aaec6$exports from "./pl-PL.mjs";
23
- import $9703be9d55d8e9c2$exports from "./pt-BR.mjs";
24
- import $7e23baec8a14f309$exports from "./pt-PT.mjs";
25
- import $568f95594049d56e$exports from "./ro-RO.mjs";
26
- import $625df06cecc70764$exports from "./ru-RU.mjs";
27
- import $b5a67525f3a2f594$exports from "./sk-SK.mjs";
28
- import $16125922964febca$exports from "./sl-SI.mjs";
29
- import $de104bf355206bcf$exports from "./sr-SP.mjs";
30
- import $d5ab76bcbadc9c07$exports from "./sv-SE.mjs";
31
- import $a6a1af5968159b55$exports from "./tr-TR.mjs";
32
- import $5204a30f0d17ffec$exports from "./uk-UA.mjs";
33
- import $8d15e736e12d3dfd$exports from "./zh-CN.mjs";
34
- import $f8c49dd804b75140$exports from "./zh-TW.mjs";
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.mjs";
2
+ import {useBreadcrumbs as $848231d7a2b3998e$export$8cefe241bd876ca0} from "./useBreadcrumbs.mjs";
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
 
@@ -0,0 +1,108 @@
1
+ var $9f815b0e65822168$exports = require("./ar-AE.main.js");
2
+ var $340712f3db10d7a4$exports = require("./bg-BG.main.js");
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
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+ module.exports = {
71
+ "ar-AE": $9f815b0e65822168$exports,
72
+ "bg-BG": $340712f3db10d7a4$exports,
73
+ "cs-CZ": $e48681b1dc80258f$exports,
74
+ "da-DK": $526eff8a033de63f$exports,
75
+ "de-DE": $7f7267bb8a1d1662$exports,
76
+ "el-GR": $0b3e72b767c9c5b3$exports,
77
+ "en-US": $8013ecad7b80bc6e$exports,
78
+ "es-ES": $8193bd3309f169ce$exports,
79
+ "et-EE": $7f47590ede0d21d1$exports,
80
+ "fi-FI": $fedbf3ad45bbd615$exports,
81
+ "fr-FR": $6383f908645d7728$exports,
82
+ "he-IL": $299c10c6ab4bac38$exports,
83
+ "hr-HR": $592de6075df6565f$exports,
84
+ "hu-HU": $3254f62b1e6ffcdf$exports,
85
+ "it-IT": $af79bd6e06d0bafc$exports,
86
+ "ja-JP": $ed35043e56c9ef04$exports,
87
+ "ko-KR": $f58ec35afca1f567$exports,
88
+ "lt-LT": $3307b3bb9c99bd7d$exports,
89
+ "lv-LV": $9d434ee576a846f1$exports,
90
+ "nb-NO": $443fe4201b655279$exports,
91
+ "nl-NL": $c71565b8a4b2e14c$exports,
92
+ "pl-PL": $fd06abc31ca2d9f9$exports,
93
+ "pt-BR": $edac5269f16efde1$exports,
94
+ "pt-PT": $3e3bf6af9d6c8c74$exports,
95
+ "ro-RO": $9d34b5bd98d02fb7$exports,
96
+ "ru-RU": $e7e947d72b4d0249$exports,
97
+ "sk-SK": $d609946db34cbe1a$exports,
98
+ "sl-SI": $c1ca8f5a39bf35b7$exports,
99
+ "sr-SP": $67542feabb08cdf6$exports,
100
+ "sv-SE": $aa3bbc636c202880$exports,
101
+ "tr-TR": $c1fa2374ad960a0b$exports,
102
+ "uk-UA": $b6a913e54307774b$exports,
103
+ "zh-CN": $d246de3cea90219f$exports,
104
+ "zh-TW": $de04860896c81313$exports
105
+ };
106
+
107
+
108
+ //# sourceMappingURL=intlStrings.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,iBAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-aria/breadcrumbs/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.main.js.map"}
@@ -0,0 +1,110 @@
1
+ import $g4LcJ$arAEmodulejs from "./ar-AE.mjs";
2
+ import $g4LcJ$bgBGmodulejs from "./bg-BG.mjs";
3
+ import $g4LcJ$csCZmodulejs from "./cs-CZ.mjs";
4
+ import $g4LcJ$daDKmodulejs from "./da-DK.mjs";
5
+ import $g4LcJ$deDEmodulejs from "./de-DE.mjs";
6
+ import $g4LcJ$elGRmodulejs from "./el-GR.mjs";
7
+ import $g4LcJ$enUSmodulejs from "./en-US.mjs";
8
+ import $g4LcJ$esESmodulejs from "./es-ES.mjs";
9
+ import $g4LcJ$etEEmodulejs from "./et-EE.mjs";
10
+ import $g4LcJ$fiFImodulejs from "./fi-FI.mjs";
11
+ import $g4LcJ$frFRmodulejs from "./fr-FR.mjs";
12
+ import $g4LcJ$heILmodulejs from "./he-IL.mjs";
13
+ import $g4LcJ$hrHRmodulejs from "./hr-HR.mjs";
14
+ import $g4LcJ$huHUmodulejs from "./hu-HU.mjs";
15
+ import $g4LcJ$itITmodulejs from "./it-IT.mjs";
16
+ import $g4LcJ$jaJPmodulejs from "./ja-JP.mjs";
17
+ import $g4LcJ$koKRmodulejs from "./ko-KR.mjs";
18
+ import $g4LcJ$ltLTmodulejs from "./lt-LT.mjs";
19
+ import $g4LcJ$lvLVmodulejs from "./lv-LV.mjs";
20
+ import $g4LcJ$nbNOmodulejs from "./nb-NO.mjs";
21
+ import $g4LcJ$nlNLmodulejs from "./nl-NL.mjs";
22
+ import $g4LcJ$plPLmodulejs from "./pl-PL.mjs";
23
+ import $g4LcJ$ptBRmodulejs from "./pt-BR.mjs";
24
+ import $g4LcJ$ptPTmodulejs from "./pt-PT.mjs";
25
+ import $g4LcJ$roROmodulejs from "./ro-RO.mjs";
26
+ import $g4LcJ$ruRUmodulejs from "./ru-RU.mjs";
27
+ import $g4LcJ$skSKmodulejs from "./sk-SK.mjs";
28
+ import $g4LcJ$slSImodulejs from "./sl-SI.mjs";
29
+ import $g4LcJ$srSPmodulejs from "./sr-SP.mjs";
30
+ import $g4LcJ$svSEmodulejs from "./sv-SE.mjs";
31
+ import $g4LcJ$trTRmodulejs from "./tr-TR.mjs";
32
+ import $g4LcJ$ukUAmodulejs from "./uk-UA.mjs";
33
+ import $g4LcJ$zhCNmodulejs from "./zh-CN.mjs";
34
+ import $g4LcJ$zhTWmodulejs from "./zh-TW.mjs";
35
+
36
+ var $8229b34715874f89$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $8229b34715874f89$exports = {
72
+ "ar-AE": $g4LcJ$arAEmodulejs,
73
+ "bg-BG": $g4LcJ$bgBGmodulejs,
74
+ "cs-CZ": $g4LcJ$csCZmodulejs,
75
+ "da-DK": $g4LcJ$daDKmodulejs,
76
+ "de-DE": $g4LcJ$deDEmodulejs,
77
+ "el-GR": $g4LcJ$elGRmodulejs,
78
+ "en-US": $g4LcJ$enUSmodulejs,
79
+ "es-ES": $g4LcJ$esESmodulejs,
80
+ "et-EE": $g4LcJ$etEEmodulejs,
81
+ "fi-FI": $g4LcJ$fiFImodulejs,
82
+ "fr-FR": $g4LcJ$frFRmodulejs,
83
+ "he-IL": $g4LcJ$heILmodulejs,
84
+ "hr-HR": $g4LcJ$hrHRmodulejs,
85
+ "hu-HU": $g4LcJ$huHUmodulejs,
86
+ "it-IT": $g4LcJ$itITmodulejs,
87
+ "ja-JP": $g4LcJ$jaJPmodulejs,
88
+ "ko-KR": $g4LcJ$koKRmodulejs,
89
+ "lt-LT": $g4LcJ$ltLTmodulejs,
90
+ "lv-LV": $g4LcJ$lvLVmodulejs,
91
+ "nb-NO": $g4LcJ$nbNOmodulejs,
92
+ "nl-NL": $g4LcJ$nlNLmodulejs,
93
+ "pl-PL": $g4LcJ$plPLmodulejs,
94
+ "pt-BR": $g4LcJ$ptBRmodulejs,
95
+ "pt-PT": $g4LcJ$ptPTmodulejs,
96
+ "ro-RO": $g4LcJ$roROmodulejs,
97
+ "ru-RU": $g4LcJ$ruRUmodulejs,
98
+ "sk-SK": $g4LcJ$skSKmodulejs,
99
+ "sl-SI": $g4LcJ$slSImodulejs,
100
+ "sr-SP": $g4LcJ$srSPmodulejs,
101
+ "sv-SE": $g4LcJ$svSEmodulejs,
102
+ "tr-TR": $g4LcJ$trTRmodulejs,
103
+ "uk-UA": $g4LcJ$ukUAmodulejs,
104
+ "zh-CN": $g4LcJ$zhCNmodulejs,
105
+ "zh-TW": $g4LcJ$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$8229b34715874f89$exports as default};
110
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1,110 @@
1
+ import $g4LcJ$arAEmodulejs from "./ar-AE.module.js";
2
+ import $g4LcJ$bgBGmodulejs from "./bg-BG.module.js";
3
+ import $g4LcJ$csCZmodulejs from "./cs-CZ.module.js";
4
+ import $g4LcJ$daDKmodulejs from "./da-DK.module.js";
5
+ import $g4LcJ$deDEmodulejs from "./de-DE.module.js";
6
+ import $g4LcJ$elGRmodulejs from "./el-GR.module.js";
7
+ import $g4LcJ$enUSmodulejs from "./en-US.module.js";
8
+ import $g4LcJ$esESmodulejs from "./es-ES.module.js";
9
+ import $g4LcJ$etEEmodulejs from "./et-EE.module.js";
10
+ import $g4LcJ$fiFImodulejs from "./fi-FI.module.js";
11
+ import $g4LcJ$frFRmodulejs from "./fr-FR.module.js";
12
+ import $g4LcJ$heILmodulejs from "./he-IL.module.js";
13
+ import $g4LcJ$hrHRmodulejs from "./hr-HR.module.js";
14
+ import $g4LcJ$huHUmodulejs from "./hu-HU.module.js";
15
+ import $g4LcJ$itITmodulejs from "./it-IT.module.js";
16
+ import $g4LcJ$jaJPmodulejs from "./ja-JP.module.js";
17
+ import $g4LcJ$koKRmodulejs from "./ko-KR.module.js";
18
+ import $g4LcJ$ltLTmodulejs from "./lt-LT.module.js";
19
+ import $g4LcJ$lvLVmodulejs from "./lv-LV.module.js";
20
+ import $g4LcJ$nbNOmodulejs from "./nb-NO.module.js";
21
+ import $g4LcJ$nlNLmodulejs from "./nl-NL.module.js";
22
+ import $g4LcJ$plPLmodulejs from "./pl-PL.module.js";
23
+ import $g4LcJ$ptBRmodulejs from "./pt-BR.module.js";
24
+ import $g4LcJ$ptPTmodulejs from "./pt-PT.module.js";
25
+ import $g4LcJ$roROmodulejs from "./ro-RO.module.js";
26
+ import $g4LcJ$ruRUmodulejs from "./ru-RU.module.js";
27
+ import $g4LcJ$skSKmodulejs from "./sk-SK.module.js";
28
+ import $g4LcJ$slSImodulejs from "./sl-SI.module.js";
29
+ import $g4LcJ$srSPmodulejs from "./sr-SP.module.js";
30
+ import $g4LcJ$svSEmodulejs from "./sv-SE.module.js";
31
+ import $g4LcJ$trTRmodulejs from "./tr-TR.module.js";
32
+ import $g4LcJ$ukUAmodulejs from "./uk-UA.module.js";
33
+ import $g4LcJ$zhCNmodulejs from "./zh-CN.module.js";
34
+ import $g4LcJ$zhTWmodulejs from "./zh-TW.module.js";
35
+
36
+ var $8229b34715874f89$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $8229b34715874f89$exports = {
72
+ "ar-AE": $g4LcJ$arAEmodulejs,
73
+ "bg-BG": $g4LcJ$bgBGmodulejs,
74
+ "cs-CZ": $g4LcJ$csCZmodulejs,
75
+ "da-DK": $g4LcJ$daDKmodulejs,
76
+ "de-DE": $g4LcJ$deDEmodulejs,
77
+ "el-GR": $g4LcJ$elGRmodulejs,
78
+ "en-US": $g4LcJ$enUSmodulejs,
79
+ "es-ES": $g4LcJ$esESmodulejs,
80
+ "et-EE": $g4LcJ$etEEmodulejs,
81
+ "fi-FI": $g4LcJ$fiFImodulejs,
82
+ "fr-FR": $g4LcJ$frFRmodulejs,
83
+ "he-IL": $g4LcJ$heILmodulejs,
84
+ "hr-HR": $g4LcJ$hrHRmodulejs,
85
+ "hu-HU": $g4LcJ$huHUmodulejs,
86
+ "it-IT": $g4LcJ$itITmodulejs,
87
+ "ja-JP": $g4LcJ$jaJPmodulejs,
88
+ "ko-KR": $g4LcJ$koKRmodulejs,
89
+ "lt-LT": $g4LcJ$ltLTmodulejs,
90
+ "lv-LV": $g4LcJ$lvLVmodulejs,
91
+ "nb-NO": $g4LcJ$nbNOmodulejs,
92
+ "nl-NL": $g4LcJ$nlNLmodulejs,
93
+ "pl-PL": $g4LcJ$plPLmodulejs,
94
+ "pt-BR": $g4LcJ$ptBRmodulejs,
95
+ "pt-PT": $g4LcJ$ptPTmodulejs,
96
+ "ro-RO": $g4LcJ$roROmodulejs,
97
+ "ru-RU": $g4LcJ$ruRUmodulejs,
98
+ "sk-SK": $g4LcJ$skSKmodulejs,
99
+ "sl-SI": $g4LcJ$slSImodulejs,
100
+ "sr-SP": $g4LcJ$srSPmodulejs,
101
+ "sv-SE": $g4LcJ$svSEmodulejs,
102
+ "tr-TR": $g4LcJ$trTRmodulejs,
103
+ "uk-UA": $g4LcJ$ukUAmodulejs,
104
+ "zh-CN": $g4LcJ$zhCNmodulejs,
105
+ "zh-TW": $g4LcJ$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$8229b34715874f89$exports as default};
110
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-aria/breadcrumbs/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.module.js.map"}
package/dist/main.js CHANGED
@@ -1,98 +1,13 @@
1
- var $9f815b0e65822168$exports = require("./ar-AE.main.js");
2
- var $340712f3db10d7a4$exports = require("./bg-BG.main.js");
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
- function $parcel$interopDefault(a) {
45
- return a && a.__esModule ? a.default : a;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;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;;CD9CC;AEVD;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwBD,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;ADzCO,SAAS,0CAAe,KAA2B;IACxD,IAAI,EACF,cAAc,SAAS,EACvB,GAAG,YACJ,GAAG;IAEJ,IAAI,UAAU,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,gEAAW,GAAG;IACxD,OAAO;QACL,UAAU;YACR,GAAG,CAAA,GAAA,oCAAa,EAAE,YAAY;gBAAC,WAAW;YAAI,EAAE;YAChD,cAAc,aAAa,QAAQ,MAAM,CAAC;QAC5C;IACF;AACF;","sources":["packages/@react-aria/breadcrumbs/src/index.ts","packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts","packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts","packages/@react-aria/breadcrumbs/src/*.js"],"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","/*\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","/*\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 {AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nimport {DOMAttributes} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface BreadcrumbsAria {\n /** Props for the breadcrumbs navigation element. */\n navProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a breadcrumbs component.\n * Breadcrumbs display a hierarchy of links to the current page or resource in an application.\n */\nexport function useBreadcrumbs(props: AriaBreadcrumbsProps): BreadcrumbsAria {\n let {\n 'aria-label': ariaLabel,\n ...otherProps\n } = props;\n\n let strings = useLocalizedStringFormatter(intlMessages, '@react-aria/breadcrumbs');\n return {\n navProps: {\n ...filterDOMProps(otherProps, {labelable: true}),\n 'aria-label': ariaLabel || strings.format('breadcrumbs')\n }\n };\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"main.js.map"}
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 $b91590b2dc47de39$exports from "./ar-AE.module.js";
2
- import $55b0693b2cf3fe91$exports from "./bg-BG.module.js";
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
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;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,cAAM,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;;CD9CC;AEVD;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwBD,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;ADzCO,SAAS,0CAAe,KAA2B;IACxD,IAAI,EACF,cAAc,SAAS,EACvB,GAAG,YACJ,GAAG;IAEJ,IAAI,UAAU,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,gEAAW,GAAG;IACxD,OAAO;QACL,UAAU;YACR,GAAG,CAAA,GAAA,qBAAa,EAAE,YAAY;gBAAC,WAAW;YAAI,EAAE;YAChD,cAAc,aAAa,QAAQ,MAAM,CAAC;QAC5C;IACF;AACF;","sources":["packages/@react-aria/breadcrumbs/src/index.ts","packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts","packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts","packages/@react-aria/breadcrumbs/src/*.js"],"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","/*\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","/*\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 {AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nimport {DOMAttributes} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface BreadcrumbsAria {\n /** Props for the breadcrumbs navigation element. */\n navProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a breadcrumbs component.\n * Breadcrumbs display a hierarchy of links to the current page or resource in an application.\n */\nexport function useBreadcrumbs(props: AriaBreadcrumbsProps): BreadcrumbsAria {\n let {\n 'aria-label': ariaLabel,\n ...otherProps\n } = props;\n\n let strings = useLocalizedStringFormatter(intlMessages, '@react-aria/breadcrumbs');\n return {\n navProps: {\n ...filterDOMProps(otherProps, {labelable: true}),\n 'aria-label': ariaLabel || strings.format('breadcrumbs')\n }\n };\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"module.js.map"}
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"}
@@ -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.module.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.module.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,cAAM,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.module.js.map"}
@@ -0,0 +1,42 @@
1
+ var $907e591fa8a9456d$exports = require("./intlStrings.main.js");
2
+ var $3qDYu$reactariautils = require("@react-aria/utils");
3
+ var $3qDYu$reactariai18n = require("@react-aria/i18n");
4
+
5
+
6
+ function $parcel$interopDefault(a) {
7
+ return a && a.__esModule ? a.default : a;
8
+ }
9
+
10
+ function $parcel$export(e, n, v, s) {
11
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
+ }
13
+
14
+ $parcel$export(module.exports, "useBreadcrumbs", () => $2b6c6844f922ad13$export$8cefe241bd876ca0);
15
+ /*
16
+ * Copyright 2020 Adobe. All rights reserved.
17
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
+ * you may not use this file except in compliance with the License. You may obtain a copy
19
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
+ *
21
+ * Unless required by applicable law or agreed to in writing, software distributed under
22
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
+ * OF ANY KIND, either express or implied. See the License for the specific language
24
+ * governing permissions and limitations under the License.
25
+ */
26
+
27
+
28
+ function $2b6c6844f922ad13$export$8cefe241bd876ca0(props) {
29
+ let { 'aria-label': ariaLabel, ...otherProps } = props;
30
+ let strings = (0, $3qDYu$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($907e591fa8a9456d$exports))), '@react-aria/breadcrumbs');
31
+ return {
32
+ navProps: {
33
+ ...(0, $3qDYu$reactariautils.filterDOMProps)(otherProps, {
34
+ labelable: true
35
+ }),
36
+ 'aria-label': ariaLabel || strings.format('breadcrumbs')
37
+ }
38
+ };
39
+ }
40
+
41
+
42
+ //# sourceMappingURL=useBreadcrumbs.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAkBM,SAAS,0CAAe,KAA2B;IACxD,IAAI,EACF,cAAc,SAAS,EACvB,GAAG,YACJ,GAAG;IAEJ,IAAI,UAAU,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IACxD,OAAO;QACL,UAAU;YACR,GAAG,CAAA,GAAA,oCAAa,EAAE,YAAY;gBAAC,WAAW;YAAI,EAAE;YAChD,cAAc,aAAa,QAAQ,MAAM,CAAC;QAC5C;IACF;AACF","sources":["packages/@react-aria/breadcrumbs/src/useBreadcrumbs.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 {AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nimport {DOMAttributes} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface BreadcrumbsAria {\n /** Props for the breadcrumbs navigation element. */\n navProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a breadcrumbs component.\n * Breadcrumbs display a hierarchy of links to the current page or resource in an application.\n */\nexport function useBreadcrumbs(props: AriaBreadcrumbsProps): BreadcrumbsAria {\n let {\n 'aria-label': ariaLabel,\n ...otherProps\n } = props;\n\n let strings = useLocalizedStringFormatter(intlMessages, '@react-aria/breadcrumbs');\n return {\n navProps: {\n ...filterDOMProps(otherProps, {labelable: true}),\n 'aria-label': ariaLabel || strings.format('breadcrumbs')\n }\n };\n}\n"],"names":[],"version":3,"file":"useBreadcrumbs.main.js.map"}
@@ -0,0 +1,37 @@
1
+ import $lFxPb$intlStringsmodulejs from "./intlStrings.mjs";
2
+ import {filterDOMProps as $lFxPb$filterDOMProps} from "@react-aria/utils";
3
+ import {useLocalizedStringFormatter as $lFxPb$useLocalizedStringFormatter} from "@react-aria/i18n";
4
+
5
+
6
+ function $parcel$interopDefault(a) {
7
+ return a && a.__esModule ? a.default : a;
8
+ }
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
+
21
+
22
+ function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
23
+ let { 'aria-label': ariaLabel, ...otherProps } = props;
24
+ let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))), '@react-aria/breadcrumbs');
25
+ return {
26
+ navProps: {
27
+ ...(0, $lFxPb$filterDOMProps)(otherProps, {
28
+ labelable: true
29
+ }),
30
+ 'aria-label': ariaLabel || strings.format('breadcrumbs')
31
+ }
32
+ };
33
+ }
34
+
35
+
36
+ export {$848231d7a2b3998e$export$8cefe241bd876ca0 as useBreadcrumbs};
37
+ //# sourceMappingURL=useBreadcrumbs.module.js.map
@@ -0,0 +1,37 @@
1
+ import $lFxPb$intlStringsmodulejs from "./intlStrings.module.js";
2
+ import {filterDOMProps as $lFxPb$filterDOMProps} from "@react-aria/utils";
3
+ import {useLocalizedStringFormatter as $lFxPb$useLocalizedStringFormatter} from "@react-aria/i18n";
4
+
5
+
6
+ function $parcel$interopDefault(a) {
7
+ return a && a.__esModule ? a.default : a;
8
+ }
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
+
21
+
22
+ function $848231d7a2b3998e$export$8cefe241bd876ca0(props) {
23
+ let { 'aria-label': ariaLabel, ...otherProps } = props;
24
+ let strings = (0, $lFxPb$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lFxPb$intlStringsmodulejs))), '@react-aria/breadcrumbs');
25
+ return {
26
+ navProps: {
27
+ ...(0, $lFxPb$filterDOMProps)(otherProps, {
28
+ labelable: true
29
+ }),
30
+ 'aria-label': ariaLabel || strings.format('breadcrumbs')
31
+ }
32
+ };
33
+ }
34
+
35
+
36
+ export {$848231d7a2b3998e$export$8cefe241bd876ca0 as useBreadcrumbs};
37
+ //# sourceMappingURL=useBreadcrumbs.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAkBM,SAAS,0CAAe,KAA2B;IACxD,IAAI,EACF,cAAc,SAAS,EACvB,GAAG,YACJ,GAAG;IAEJ,IAAI,UAAU,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IACxD,OAAO;QACL,UAAU;YACR,GAAG,CAAA,GAAA,qBAAa,EAAE,YAAY;gBAAC,WAAW;YAAI,EAAE;YAChD,cAAc,aAAa,QAAQ,MAAM,CAAC;QAC5C;IACF;AACF","sources":["packages/@react-aria/breadcrumbs/src/useBreadcrumbs.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 {AriaBreadcrumbsProps} from '@react-types/breadcrumbs';\nimport {DOMAttributes} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface BreadcrumbsAria {\n /** Props for the breadcrumbs navigation element. */\n navProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a breadcrumbs component.\n * Breadcrumbs display a hierarchy of links to the current page or resource in an application.\n */\nexport function useBreadcrumbs(props: AriaBreadcrumbsProps): BreadcrumbsAria {\n let {\n 'aria-label': ariaLabel,\n ...otherProps\n } = props;\n\n let strings = useLocalizedStringFormatter(intlMessages, '@react-aria/breadcrumbs');\n return {\n navProps: {\n ...filterDOMProps(otherProps, {labelable: true}),\n 'aria-label': ariaLabel || strings.format('breadcrumbs')\n }\n };\n}\n"],"names":[],"version":3,"file":"useBreadcrumbs.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/breadcrumbs",
3
- "version": "3.5.11",
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.10.2",
26
- "@react-aria/link": "^3.6.5",
27
- "@react-aria/utils": "^3.23.2",
28
- "@react-types/breadcrumbs": "^3.7.3",
29
- "@react-types/shared": "^3.22.1",
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": "de9f84a22583fc741c29b341d14cd35ef4cca161"
38
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
39
39
  }