@react-aria/steplist 3.0.0-nightly.4552 → 3.0.0-nightly.4558
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/import.mjs +2 -193
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/main.js +4 -195
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -193
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/useStepList.main.js +54 -0
- package/dist/useStepList.main.js.map +1 -0
- package/dist/useStepList.mjs +49 -0
- package/dist/useStepList.module.js +49 -0
- package/dist/useStepList.module.js.map +1 -0
- package/dist/useStepListItem.main.js +53 -0
- package/dist/useStepListItem.main.js.map +1 -0
- package/dist/useStepListItem.mjs +48 -0
- package/dist/useStepListItem.module.js +48 -0
- package/dist/useStepListItem.module.js.map +1 -0
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +7 -7
package/dist/ko-KR.mjs
CHANGED
package/dist/lt-LT.mjs
CHANGED
package/dist/lv-LV.mjs
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,63 +1,14 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $3963809eec74715b$exports = require("./cs-CZ.main.js");
|
|
4
|
-
var $57c330cac85ba96b$exports = require("./da-DK.main.js");
|
|
5
|
-
var $ffb8e323340faead$exports = require("./de-DE.main.js");
|
|
6
|
-
var $d0ce41d4568b07e2$exports = require("./el-GR.main.js");
|
|
7
|
-
var $6d2b885b76dde49c$exports = require("./en-US.main.js");
|
|
8
|
-
var $fa76e6b93db3f55d$exports = require("./es-ES.main.js");
|
|
9
|
-
var $89d31cc7a1f25788$exports = require("./et-EE.main.js");
|
|
10
|
-
var $23364ba8e12370d6$exports = require("./fi-FI.main.js");
|
|
11
|
-
var $9ddcb95170035b46$exports = require("./fr-FR.main.js");
|
|
12
|
-
var $fbf0b3dcd6e9884a$exports = require("./he-IL.main.js");
|
|
13
|
-
var $696f47a4ac589929$exports = require("./hr-HR.main.js");
|
|
14
|
-
var $1edeb7543dd0e82e$exports = require("./hu-HU.main.js");
|
|
15
|
-
var $1d471c3ba33cdcdd$exports = require("./it-IT.main.js");
|
|
16
|
-
var $9a61dba1c517e6c9$exports = require("./ja-JP.main.js");
|
|
17
|
-
var $5f2efdd97e2f4df8$exports = require("./ko-KR.main.js");
|
|
18
|
-
var $9604ef8886e5cdf9$exports = require("./lt-LT.main.js");
|
|
19
|
-
var $465b095301af3bfb$exports = require("./lv-LV.main.js");
|
|
20
|
-
var $d68b5dffc2c471c7$exports = require("./nb-NO.main.js");
|
|
21
|
-
var $fe6c1807527b0392$exports = require("./nl-NL.main.js");
|
|
22
|
-
var $09ea18e986ae9831$exports = require("./pl-PL.main.js");
|
|
23
|
-
var $ab9ab64130316d13$exports = require("./pt-BR.main.js");
|
|
24
|
-
var $f0cfd6f7f89f6e04$exports = require("./pt-PT.main.js");
|
|
25
|
-
var $0049339b4f7587ff$exports = require("./ro-RO.main.js");
|
|
26
|
-
var $c2fa00c28ab4f31c$exports = require("./ru-RU.main.js");
|
|
27
|
-
var $af1183d34147cd80$exports = require("./sk-SK.main.js");
|
|
28
|
-
var $db5b334d4d89f2d4$exports = require("./sl-SI.main.js");
|
|
29
|
-
var $6be4329b45c97779$exports = require("./sr-SP.main.js");
|
|
30
|
-
var $dc1f3b2ae45ec441$exports = require("./sv-SE.main.js");
|
|
31
|
-
var $b5e6369bfbf3f615$exports = require("./tr-TR.main.js");
|
|
32
|
-
var $1dfe65162b36a08e$exports = require("./uk-UA.main.js");
|
|
33
|
-
var $00f21b4e54a5ebf8$exports = require("./zh-CN.main.js");
|
|
34
|
-
var $2c4a7ad506404497$exports = require("./zh-TW.main.js");
|
|
35
|
-
var $fsHsD$reactariautils = require("@react-aria/utils");
|
|
36
|
-
var $fsHsD$reactariai18n = require("@react-aria/i18n");
|
|
37
|
-
var $fsHsD$reactariaselection = require("@react-aria/selection");
|
|
1
|
+
var $900a30dd63582698$exports = require("./useStepList.main.js");
|
|
2
|
+
var $0246bc8e841080a9$exports = require("./useStepListItem.main.js");
|
|
38
3
|
|
|
39
4
|
|
|
40
5
|
function $parcel$export(e, n, v, s) {
|
|
41
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
42
7
|
}
|
|
43
8
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$parcel$export(module.exports, "useStepList", () => $900a30dd63582698$export$c51c7b7354499d04);
|
|
49
|
-
$parcel$export(module.exports, "useStepListItem", () => $0246bc8e841080a9$export$fd9dc107b7325b53);
|
|
9
|
+
$parcel$export(module.exports, "useStepList", () => $900a30dd63582698$exports.useStepList);
|
|
10
|
+
$parcel$export(module.exports, "useStepListItem", () => $0246bc8e841080a9$exports.useStepListItem);
|
|
50
11
|
/*
|
|
51
|
-
* Copyright 2023 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
12
|
* Copyright 2023 Adobe. All rights reserved.
|
|
62
13
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
63
14
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
@@ -68,148 +19,6 @@ $parcel$export(module.exports, "useStepListItem", () => $0246bc8e841080a9$export
|
|
|
68
19
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
69
20
|
* governing permissions and limitations under the License.
|
|
70
21
|
*/
|
|
71
|
-
var $819d2f6398427998$exports = {};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
$819d2f6398427998$exports = {
|
|
107
|
-
"ar-AE": $0648fe10bf72bc17$exports,
|
|
108
|
-
"bg-BG": $af277134eba8b5d0$exports,
|
|
109
|
-
"cs-CZ": $3963809eec74715b$exports,
|
|
110
|
-
"da-DK": $57c330cac85ba96b$exports,
|
|
111
|
-
"de-DE": $ffb8e323340faead$exports,
|
|
112
|
-
"el-GR": $d0ce41d4568b07e2$exports,
|
|
113
|
-
"en-US": $6d2b885b76dde49c$exports,
|
|
114
|
-
"es-ES": $fa76e6b93db3f55d$exports,
|
|
115
|
-
"et-EE": $89d31cc7a1f25788$exports,
|
|
116
|
-
"fi-FI": $23364ba8e12370d6$exports,
|
|
117
|
-
"fr-FR": $9ddcb95170035b46$exports,
|
|
118
|
-
"he-IL": $fbf0b3dcd6e9884a$exports,
|
|
119
|
-
"hr-HR": $696f47a4ac589929$exports,
|
|
120
|
-
"hu-HU": $1edeb7543dd0e82e$exports,
|
|
121
|
-
"it-IT": $1d471c3ba33cdcdd$exports,
|
|
122
|
-
"ja-JP": $9a61dba1c517e6c9$exports,
|
|
123
|
-
"ko-KR": $5f2efdd97e2f4df8$exports,
|
|
124
|
-
"lt-LT": $9604ef8886e5cdf9$exports,
|
|
125
|
-
"lv-LV": $465b095301af3bfb$exports,
|
|
126
|
-
"nb-NO": $d68b5dffc2c471c7$exports,
|
|
127
|
-
"nl-NL": $fe6c1807527b0392$exports,
|
|
128
|
-
"pl-PL": $09ea18e986ae9831$exports,
|
|
129
|
-
"pt-BR": $ab9ab64130316d13$exports,
|
|
130
|
-
"pt-PT": $f0cfd6f7f89f6e04$exports,
|
|
131
|
-
"ro-RO": $0049339b4f7587ff$exports,
|
|
132
|
-
"ru-RU": $c2fa00c28ab4f31c$exports,
|
|
133
|
-
"sk-SK": $af1183d34147cd80$exports,
|
|
134
|
-
"sl-SI": $db5b334d4d89f2d4$exports,
|
|
135
|
-
"sr-SP": $6be4329b45c97779$exports,
|
|
136
|
-
"sv-SE": $dc1f3b2ae45ec441$exports,
|
|
137
|
-
"tr-TR": $b5e6369bfbf3f615$exports,
|
|
138
|
-
"uk-UA": $1dfe65162b36a08e$exports,
|
|
139
|
-
"zh-CN": $00f21b4e54a5ebf8$exports,
|
|
140
|
-
"zh-TW": $2c4a7ad506404497$exports
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
function $900a30dd63582698$export$c51c7b7354499d04(props, state, ref) {
|
|
147
|
-
let { "aria-label": ariaLabel } = props;
|
|
148
|
-
let { listProps: listProps } = (0, $fsHsD$reactariaselection.useSelectableList)({
|
|
149
|
-
...props,
|
|
150
|
-
...state,
|
|
151
|
-
allowsTabNavigation: true,
|
|
152
|
-
ref: ref
|
|
153
|
-
});
|
|
154
|
-
const strings = (0, $fsHsD$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($819d2f6398427998$exports))), "@react-aria/steplist");
|
|
155
|
-
const stepListProps = {
|
|
156
|
-
...(0, $fsHsD$reactariautils.mergeProps)(listProps, (0, $fsHsD$reactariautils.filterDOMProps)(props, {
|
|
157
|
-
labelable: true
|
|
158
|
-
})),
|
|
159
|
-
"aria-label": ariaLabel || strings.format("steplist")
|
|
160
|
-
};
|
|
161
|
-
return {
|
|
162
|
-
listProps: {
|
|
163
|
-
...stepListProps,
|
|
164
|
-
tabIndex: undefined
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/*
|
|
171
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
172
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
173
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
174
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
175
|
-
*
|
|
176
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
177
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
178
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
179
|
-
* governing permissions and limitations under the License.
|
|
180
|
-
*/
|
|
181
|
-
function $0246bc8e841080a9$export$fd9dc107b7325b53(props, state, ref) {
|
|
182
|
-
const { key: key } = props;
|
|
183
|
-
let { selectionManager: manager, selectedKey: selectedKey } = state;
|
|
184
|
-
let isDisabled = !state.isSelectable(key);
|
|
185
|
-
let { itemProps: itemProps } = (0, $fsHsD$reactariaselection.useSelectableItem)({
|
|
186
|
-
isDisabled: isDisabled,
|
|
187
|
-
key: key,
|
|
188
|
-
ref: ref,
|
|
189
|
-
selectionManager: manager
|
|
190
|
-
});
|
|
191
|
-
const isSelected = selectedKey === key;
|
|
192
|
-
let onKeyDown = (event)=>{
|
|
193
|
-
var _itemProps_onKeyDown;
|
|
194
|
-
const { key: eventKey } = event;
|
|
195
|
-
if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
|
|
196
|
-
event.preventDefault();
|
|
197
|
-
event.stopPropagation();
|
|
198
|
-
}
|
|
199
|
-
(_itemProps_onKeyDown = itemProps.onKeyDown) === null || _itemProps_onKeyDown === void 0 ? void 0 : _itemProps_onKeyDown.call(itemProps, event);
|
|
200
|
-
};
|
|
201
|
-
return {
|
|
202
|
-
stepProps: {
|
|
203
|
-
...itemProps,
|
|
204
|
-
onKeyDown: onKeyDown,
|
|
205
|
-
role: "link",
|
|
206
|
-
"aria-current": isSelected ? "step" : undefined,
|
|
207
|
-
"aria-disabled": isDisabled ? true : undefined,
|
|
208
|
-
tabIndex: !isDisabled ? 0 : undefined
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
|
|
213
22
|
|
|
214
23
|
|
|
215
24
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/steplist/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,164 +1,5 @@
|
|
|
1
|
-
import $
|
|
2
|
-
import $
|
|
3
|
-
import $bfa85a8c5befb5e3$exports from "./cs-CZ.module.js";
|
|
4
|
-
import $3d36be428ae11e4c$exports from "./da-DK.module.js";
|
|
5
|
-
import $6f5df5d1361b7046$exports from "./de-DE.module.js";
|
|
6
|
-
import $ead0949d0a522600$exports from "./el-GR.module.js";
|
|
7
|
-
import $e1f058b80d8aafc5$exports from "./en-US.module.js";
|
|
8
|
-
import $5ea5b4d9848b4554$exports from "./es-ES.module.js";
|
|
9
|
-
import $12c199cff6112f17$exports from "./et-EE.module.js";
|
|
10
|
-
import $cee48bc9348acd34$exports from "./fi-FI.module.js";
|
|
11
|
-
import $431ecace1ad6a520$exports from "./fr-FR.module.js";
|
|
12
|
-
import $4a82c7d4f8c5f85e$exports from "./he-IL.module.js";
|
|
13
|
-
import $dde7b99faa55b742$exports from "./hr-HR.module.js";
|
|
14
|
-
import $ac6a3ef7f586e156$exports from "./hu-HU.module.js";
|
|
15
|
-
import $216136a07e27fb81$exports from "./it-IT.module.js";
|
|
16
|
-
import $1368fd8886cdede5$exports from "./ja-JP.module.js";
|
|
17
|
-
import $b0f5383621af3b9b$exports from "./ko-KR.module.js";
|
|
18
|
-
import $c9860d172f3b15ce$exports from "./lt-LT.module.js";
|
|
19
|
-
import $959d78475ac0df02$exports from "./lv-LV.module.js";
|
|
20
|
-
import $f05a0d5a4ee0ad95$exports from "./nb-NO.module.js";
|
|
21
|
-
import $1e675e17f5239298$exports from "./nl-NL.module.js";
|
|
22
|
-
import $ea8c18ed5953abce$exports from "./pl-PL.module.js";
|
|
23
|
-
import $4a66519f5fdc2316$exports from "./pt-BR.module.js";
|
|
24
|
-
import $e794e3fb754025f9$exports from "./pt-PT.module.js";
|
|
25
|
-
import $27736caf9fb5f8de$exports from "./ro-RO.module.js";
|
|
26
|
-
import $5fdbb1e29b12b436$exports from "./ru-RU.module.js";
|
|
27
|
-
import $6dbbd9e0ca5f0f9c$exports from "./sk-SK.module.js";
|
|
28
|
-
import $0c3f21e646593621$exports from "./sl-SI.module.js";
|
|
29
|
-
import $a8c78296446307f5$exports from "./sr-SP.module.js";
|
|
30
|
-
import $c631089a2357cb55$exports from "./sv-SE.module.js";
|
|
31
|
-
import $c4fa8dbc62816b3f$exports from "./tr-TR.module.js";
|
|
32
|
-
import $49a297f4b13082b0$exports from "./uk-UA.module.js";
|
|
33
|
-
import $149dc62f4be0749a$exports from "./zh-CN.module.js";
|
|
34
|
-
import $a71aa6ab92482f8d$exports from "./zh-TW.module.js";
|
|
35
|
-
import {mergeProps as $2aUC2$mergeProps, filterDOMProps as $2aUC2$filterDOMProps} from "@react-aria/utils";
|
|
36
|
-
import {useLocalizedStringFormatter as $2aUC2$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
37
|
-
import {useSelectableList as $2aUC2$useSelectableList, useSelectableItem as $2aUC2$useSelectableItem} from "@react-aria/selection";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function $parcel$interopDefault(a) {
|
|
41
|
-
return a && a.__esModule ? a.default : a;
|
|
42
|
-
}
|
|
43
|
-
/*
|
|
44
|
-
* Copyright 2023 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
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
55
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
56
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
57
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
58
|
-
*
|
|
59
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
60
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
61
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
62
|
-
* governing permissions and limitations under the License.
|
|
63
|
-
*/
|
|
64
|
-
var $2b61d31ef4d39c33$exports = {};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
$2b61d31ef4d39c33$exports = {
|
|
100
|
-
"ar-AE": $ac9195bd6c155e9a$exports,
|
|
101
|
-
"bg-BG": $566091aba1cc94bd$exports,
|
|
102
|
-
"cs-CZ": $bfa85a8c5befb5e3$exports,
|
|
103
|
-
"da-DK": $3d36be428ae11e4c$exports,
|
|
104
|
-
"de-DE": $6f5df5d1361b7046$exports,
|
|
105
|
-
"el-GR": $ead0949d0a522600$exports,
|
|
106
|
-
"en-US": $e1f058b80d8aafc5$exports,
|
|
107
|
-
"es-ES": $5ea5b4d9848b4554$exports,
|
|
108
|
-
"et-EE": $12c199cff6112f17$exports,
|
|
109
|
-
"fi-FI": $cee48bc9348acd34$exports,
|
|
110
|
-
"fr-FR": $431ecace1ad6a520$exports,
|
|
111
|
-
"he-IL": $4a82c7d4f8c5f85e$exports,
|
|
112
|
-
"hr-HR": $dde7b99faa55b742$exports,
|
|
113
|
-
"hu-HU": $ac6a3ef7f586e156$exports,
|
|
114
|
-
"it-IT": $216136a07e27fb81$exports,
|
|
115
|
-
"ja-JP": $1368fd8886cdede5$exports,
|
|
116
|
-
"ko-KR": $b0f5383621af3b9b$exports,
|
|
117
|
-
"lt-LT": $c9860d172f3b15ce$exports,
|
|
118
|
-
"lv-LV": $959d78475ac0df02$exports,
|
|
119
|
-
"nb-NO": $f05a0d5a4ee0ad95$exports,
|
|
120
|
-
"nl-NL": $1e675e17f5239298$exports,
|
|
121
|
-
"pl-PL": $ea8c18ed5953abce$exports,
|
|
122
|
-
"pt-BR": $4a66519f5fdc2316$exports,
|
|
123
|
-
"pt-PT": $e794e3fb754025f9$exports,
|
|
124
|
-
"ro-RO": $27736caf9fb5f8de$exports,
|
|
125
|
-
"ru-RU": $5fdbb1e29b12b436$exports,
|
|
126
|
-
"sk-SK": $6dbbd9e0ca5f0f9c$exports,
|
|
127
|
-
"sl-SI": $0c3f21e646593621$exports,
|
|
128
|
-
"sr-SP": $a8c78296446307f5$exports,
|
|
129
|
-
"sv-SE": $c631089a2357cb55$exports,
|
|
130
|
-
"tr-TR": $c4fa8dbc62816b3f$exports,
|
|
131
|
-
"uk-UA": $49a297f4b13082b0$exports,
|
|
132
|
-
"zh-CN": $149dc62f4be0749a$exports,
|
|
133
|
-
"zh-TW": $a71aa6ab92482f8d$exports
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
function $8ca870e256ef9d32$export$c51c7b7354499d04(props, state, ref) {
|
|
140
|
-
let { "aria-label": ariaLabel } = props;
|
|
141
|
-
let { listProps: listProps } = (0, $2aUC2$useSelectableList)({
|
|
142
|
-
...props,
|
|
143
|
-
...state,
|
|
144
|
-
allowsTabNavigation: true,
|
|
145
|
-
ref: ref
|
|
146
|
-
});
|
|
147
|
-
const strings = (0, $2aUC2$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($2b61d31ef4d39c33$exports))), "@react-aria/steplist");
|
|
148
|
-
const stepListProps = {
|
|
149
|
-
...(0, $2aUC2$mergeProps)(listProps, (0, $2aUC2$filterDOMProps)(props, {
|
|
150
|
-
labelable: true
|
|
151
|
-
})),
|
|
152
|
-
"aria-label": ariaLabel || strings.format("steplist")
|
|
153
|
-
};
|
|
154
|
-
return {
|
|
155
|
-
listProps: {
|
|
156
|
-
...stepListProps,
|
|
157
|
-
tabIndex: undefined
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
|
|
1
|
+
import {useStepList as $8ca870e256ef9d32$export$c51c7b7354499d04} from "./useStepList.module.js";
|
|
2
|
+
import {useStepListItem as $dd7f9f4bee5b11b8$export$fd9dc107b7325b53} from "./useStepListItem.module.js";
|
|
162
3
|
|
|
163
4
|
/*
|
|
164
5
|
* Copyright 2023 Adobe. All rights reserved.
|
|
@@ -171,38 +12,6 @@ function $8ca870e256ef9d32$export$c51c7b7354499d04(props, state, ref) {
|
|
|
171
12
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
172
13
|
* governing permissions and limitations under the License.
|
|
173
14
|
*/
|
|
174
|
-
function $dd7f9f4bee5b11b8$export$fd9dc107b7325b53(props, state, ref) {
|
|
175
|
-
const { key: key } = props;
|
|
176
|
-
let { selectionManager: manager, selectedKey: selectedKey } = state;
|
|
177
|
-
let isDisabled = !state.isSelectable(key);
|
|
178
|
-
let { itemProps: itemProps } = (0, $2aUC2$useSelectableItem)({
|
|
179
|
-
isDisabled: isDisabled,
|
|
180
|
-
key: key,
|
|
181
|
-
ref: ref,
|
|
182
|
-
selectionManager: manager
|
|
183
|
-
});
|
|
184
|
-
const isSelected = selectedKey === key;
|
|
185
|
-
let onKeyDown = (event)=>{
|
|
186
|
-
var _itemProps_onKeyDown;
|
|
187
|
-
const { key: eventKey } = event;
|
|
188
|
-
if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
|
|
189
|
-
event.preventDefault();
|
|
190
|
-
event.stopPropagation();
|
|
191
|
-
}
|
|
192
|
-
(_itemProps_onKeyDown = itemProps.onKeyDown) === null || _itemProps_onKeyDown === void 0 ? void 0 : _itemProps_onKeyDown.call(itemProps, event);
|
|
193
|
-
};
|
|
194
|
-
return {
|
|
195
|
-
stepProps: {
|
|
196
|
-
...itemProps,
|
|
197
|
-
onKeyDown: onKeyDown,
|
|
198
|
-
role: "link",
|
|
199
|
-
"aria-current": isSelected ? "step" : undefined,
|
|
200
|
-
"aria-disabled": isDisabled ? true : undefined,
|
|
201
|
-
tabIndex: !isDisabled ? 0 : undefined
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
|
|
206
15
|
|
|
207
16
|
|
|
208
17
|
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/steplist/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nexport {useStepList} from './useStepList';\nexport {useStepListItem} from './useStepListItem';\n\nexport type {AriaStepListProps, StepListAria} from './useStepList';\nexport type {AriaStepListItemProps, StepListItemAria} from './useStepListItem';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/nb-NO.mjs
CHANGED
package/dist/nl-NL.mjs
CHANGED
package/dist/pl-PL.mjs
CHANGED
package/dist/pt-BR.mjs
CHANGED
package/dist/pt-PT.mjs
CHANGED
package/dist/ro-RO.mjs
CHANGED
package/dist/ru-RU.mjs
CHANGED
package/dist/sk-SK.mjs
CHANGED
package/dist/sl-SI.mjs
CHANGED
package/dist/sr-SP.mjs
CHANGED
package/dist/sv-SE.mjs
CHANGED
package/dist/tr-TR.mjs
CHANGED
package/dist/uk-UA.mjs
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var $819d2f6398427998$exports = require("./intlStrings.main.js");
|
|
2
|
+
var $7WRFn$reactariautils = require("@react-aria/utils");
|
|
3
|
+
var $7WRFn$reactariai18n = require("@react-aria/i18n");
|
|
4
|
+
var $7WRFn$reactariaselection = require("@react-aria/selection");
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function $parcel$interopDefault(a) {
|
|
8
|
+
return a && a.__esModule ? a.default : a;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function $parcel$export(e, n, v, s) {
|
|
12
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$parcel$export(module.exports, "useStepList", () => $900a30dd63582698$export$c51c7b7354499d04);
|
|
16
|
+
/*
|
|
17
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
18
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
19
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
20
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
23
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
24
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
25
|
+
* governing permissions and limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
function $900a30dd63582698$export$c51c7b7354499d04(props, state, ref) {
|
|
31
|
+
let { "aria-label": ariaLabel } = props;
|
|
32
|
+
let { listProps: listProps } = (0, $7WRFn$reactariaselection.useSelectableList)({
|
|
33
|
+
...props,
|
|
34
|
+
...state,
|
|
35
|
+
allowsTabNavigation: true,
|
|
36
|
+
ref: ref
|
|
37
|
+
});
|
|
38
|
+
const strings = (0, $7WRFn$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($819d2f6398427998$exports))), "@react-aria/steplist");
|
|
39
|
+
const stepListProps = {
|
|
40
|
+
...(0, $7WRFn$reactariautils.mergeProps)(listProps, (0, $7WRFn$reactariautils.filterDOMProps)(props, {
|
|
41
|
+
labelable: true
|
|
42
|
+
})),
|
|
43
|
+
"aria-label": ariaLabel || strings.format("steplist")
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
listProps: {
|
|
47
|
+
...stepListProps,
|
|
48
|
+
tabIndex: undefined
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=useStepList.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAiBM,SAAS,0CAAe,KAA2B,EAAE,KAAuB,EAAE,GAAgC;IACnH,IAAI,EACF,cAAc,SAAS,EACxB,GAAG;IACJ,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,2CAAgB,EAAE;QAClC,GAAG,KAAK;QACR,GAAG,KAAK;QACR,qBAAqB;aACrB;IACF;IAEA,MAAM,UAAU,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAC1D,MAAM,gBAA6C;QACjD,GAAG,CAAA,GAAA,gCAAS,EAAE,WAAW,CAAA,GAAA,oCAAa,EAAE,OAAO;YAAC,WAAW;QAAI,GAAG;QAClE,cAAc,aAAa,QAAQ,MAAM,CAAC;IAC5C;IAEA,OAAO;QACL,WAAW;YACT,GAAG,aAAa;YAChB,UAAU;QACZ;IACF;AACF","sources":["packages/@react-aria/steplist/src/useStepList.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {AriaLabelingProps, DOMProps} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {StepListProps, StepListState} from '@react-stately/steplist';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSelectableList} from '@react-aria/selection';\n\nexport interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {}\n\nexport interface StepListAria {\n listProps: HTMLAttributes<HTMLElement>\n}\n\nexport function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria {\n let {\n 'aria-label': ariaLabel\n } = props;\n let {listProps} = useSelectableList({\n ...props,\n ...state,\n allowsTabNavigation: true,\n ref\n });\n\n const strings = useLocalizedStringFormatter(intlMessages, '@react-aria/steplist');\n const stepListProps: HTMLAttributes<HTMLElement> = {\n ...mergeProps(listProps, filterDOMProps(props, {labelable: true})),\n 'aria-label': ariaLabel || strings.format('steplist')\n };\n\n return {\n listProps: {\n ...stepListProps,\n tabIndex: undefined\n }\n };\n}\n\n\n"],"names":[],"version":3,"file":"useStepList.main.js.map"}
|