@react-aria/steplist 3.0.0-alpha.1 → 3.0.0-alpha.10
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 +2 -192
- 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/main.js +4 -194
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -192
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +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/package.json +10 -11
- package/src/useStepList.ts +3 -3
- package/src/useStepListItem.ts +4 -4
- package/LICENSE +0 -201
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,147 +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
|
-
const { key: eventKey } = event;
|
|
194
|
-
if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
event.stopPropagation();
|
|
197
|
-
}
|
|
198
|
-
itemProps.onKeyDown(event);
|
|
199
|
-
};
|
|
200
|
-
return {
|
|
201
|
-
stepProps: {
|
|
202
|
-
...itemProps,
|
|
203
|
-
onKeyDown: onKeyDown,
|
|
204
|
-
role: "link",
|
|
205
|
-
"aria-current": isSelected ? "step" : undefined,
|
|
206
|
-
"aria-disabled": isDisabled ? true : undefined,
|
|
207
|
-
tabIndex: !isDisabled ? 0 : undefined
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
|
|
212
22
|
|
|
213
23
|
|
|
214
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,37 +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
|
-
const { key: eventKey } = event;
|
|
187
|
-
if (eventKey === "ArrowDown" || eventKey === "ArrowUp") {
|
|
188
|
-
event.preventDefault();
|
|
189
|
-
event.stopPropagation();
|
|
190
|
-
}
|
|
191
|
-
itemProps.onKeyDown(event);
|
|
192
|
-
};
|
|
193
|
-
return {
|
|
194
|
-
stepProps: {
|
|
195
|
-
...itemProps,
|
|
196
|
-
onKeyDown: onKeyDown,
|
|
197
|
-
role: "link",
|
|
198
|
-
"aria-current": isSelected ? "step" : undefined,
|
|
199
|
-
"aria-disabled": isDisabled ? true : undefined,
|
|
200
|
-
tabIndex: !isDisabled ? 0 : undefined
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
|
|
205
15
|
|
|
206
16
|
|
|
207
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/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AriaLabelingProps, DOMProps, Key } from "@react-types/shared";
|
|
2
|
-
import { HTMLAttributes
|
|
1
|
+
import { AriaLabelingProps, DOMProps, RefObject, Key } from "@react-types/shared";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
3
|
import { StepListProps, StepListState } from "@react-stately/steplist";
|
|
4
4
|
export interface AriaStepListProps<T> extends StepListProps<T>, AriaLabelingProps, DOMProps {
|
|
5
5
|
}
|
|
6
6
|
export interface StepListAria {
|
|
7
7
|
listProps: HTMLAttributes<HTMLElement>;
|
|
8
8
|
}
|
|
9
|
-
export function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement>): StepListAria;
|
|
9
|
+
export function useStepList<T>(props: AriaStepListProps<T>, state: StepListState<T>, ref: RefObject<HTMLOListElement | null>): StepListAria;
|
|
10
10
|
export interface AriaStepListItemProps {
|
|
11
11
|
key: Key;
|
|
12
12
|
}
|
|
@@ -18,6 +18,6 @@ export interface StepListItemAria {
|
|
|
18
18
|
/** Text content for the visually hidden message indicating the status of the step state. */
|
|
19
19
|
stepStateText?: String;
|
|
20
20
|
}
|
|
21
|
-
export function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria;
|
|
21
|
+
export function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement | null>): StepListItemAria;
|
|
22
22
|
|
|
23
23
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;AAqBA,mCAAmC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,EAAE,iBAAiB,EAAE,QAAQ;CAAG;AAE9F;IACE,SAAS,EAAE,eAAe,WAAW,CAAC,CAAA;CACvC;AAED,4BAA4B,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,CAAC,GAAG,YAAY,
|
|
1
|
+
{"mappings":";;;AAqBA,mCAAmC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,EAAE,iBAAiB,EAAE,QAAQ;CAAG;AAE9F;IACE,SAAS,EAAE,eAAe,WAAW,CAAC,CAAA;CACvC;AAED,4BAA4B,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,YAAY,CAuB1I;ACjCD;IACE,GAAG,EAAE,GAAG,CAAA;CACT;AAED;IACE,uCAAuC;IACvC,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC;IACvC,uEAAuE;IACvE,cAAc,CAAC,EAAE,eAAe,WAAW,CAAC,CAAC;IAC7C,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,gCAAgC,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,GAAG,gBAAgB,CAoC9I","sources":["packages/@react-aria/steplist/src/packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/packages/@react-aria/steplist/src/useStepListItem.ts","packages/@react-aria/steplist/src/packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/index.ts"],"sourcesContent":[null,null,null,"/*\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":"types.d.ts.map"}
|
|
@@ -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,GAAuC;IAC1H,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, RefObject} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {HTMLAttributes} 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 | null>): 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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import $lejUC$intlStringsmodulejs from "./intlStrings.mjs";
|
|
2
|
+
import {mergeProps as $lejUC$mergeProps, filterDOMProps as $lejUC$filterDOMProps} from "@react-aria/utils";
|
|
3
|
+
import {useLocalizedStringFormatter as $lejUC$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
4
|
+
import {useSelectableList as $lejUC$useSelectableList} from "@react-aria/selection";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function $parcel$interopDefault(a) {
|
|
8
|
+
return a && a.__esModule ? a.default : a;
|
|
9
|
+
}
|
|
10
|
+
/*
|
|
11
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
12
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
14
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
17
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
18
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
19
|
+
* governing permissions and limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
function $8ca870e256ef9d32$export$c51c7b7354499d04(props, state, ref) {
|
|
25
|
+
let { 'aria-label': ariaLabel } = props;
|
|
26
|
+
let { listProps: listProps } = (0, $lejUC$useSelectableList)({
|
|
27
|
+
...props,
|
|
28
|
+
...state,
|
|
29
|
+
allowsTabNavigation: true,
|
|
30
|
+
ref: ref
|
|
31
|
+
});
|
|
32
|
+
const strings = (0, $lejUC$useLocalizedStringFormatter)((0, ($parcel$interopDefault($lejUC$intlStringsmodulejs))), '@react-aria/steplist');
|
|
33
|
+
const stepListProps = {
|
|
34
|
+
...(0, $lejUC$mergeProps)(listProps, (0, $lejUC$filterDOMProps)(props, {
|
|
35
|
+
labelable: true
|
|
36
|
+
})),
|
|
37
|
+
'aria-label': ariaLabel || strings.format('steplist')
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
listProps: {
|
|
41
|
+
...stepListProps,
|
|
42
|
+
tabIndex: undefined
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export {$8ca870e256ef9d32$export$c51c7b7354499d04 as useStepList};
|
|
49
|
+
//# sourceMappingURL=useStepList.module.js.map
|