@react-aria/steplist 3.0.0-nightly.4555 → 3.0.0-nightly.4560

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.
Files changed (55) hide show
  1. package/dist/ar-AE.mjs +1 -1
  2. package/dist/bg-BG.mjs +1 -1
  3. package/dist/cs-CZ.mjs +1 -1
  4. package/dist/da-DK.mjs +1 -1
  5. package/dist/de-DE.mjs +1 -1
  6. package/dist/el-GR.mjs +1 -1
  7. package/dist/en-US.mjs +1 -1
  8. package/dist/es-ES.mjs +1 -1
  9. package/dist/et-EE.mjs +1 -1
  10. package/dist/fi-FI.mjs +1 -1
  11. package/dist/fr-FR.mjs +1 -1
  12. package/dist/he-IL.mjs +1 -1
  13. package/dist/hr-HR.mjs +1 -1
  14. package/dist/hu-HU.mjs +1 -1
  15. package/dist/import.mjs +2 -193
  16. package/dist/intlStrings.main.js +108 -0
  17. package/dist/intlStrings.main.js.map +1 -0
  18. package/dist/intlStrings.mjs +110 -0
  19. package/dist/intlStrings.module.js +110 -0
  20. package/dist/intlStrings.module.js.map +1 -0
  21. package/dist/it-IT.mjs +1 -1
  22. package/dist/ja-JP.mjs +1 -1
  23. package/dist/ko-KR.mjs +1 -1
  24. package/dist/lt-LT.mjs +1 -1
  25. package/dist/lv-LV.mjs +1 -1
  26. package/dist/main.js +4 -195
  27. package/dist/main.js.map +1 -1
  28. package/dist/module.js +2 -193
  29. package/dist/module.js.map +1 -1
  30. package/dist/nb-NO.mjs +1 -1
  31. package/dist/nl-NL.mjs +1 -1
  32. package/dist/pl-PL.mjs +1 -1
  33. package/dist/pt-BR.mjs +1 -1
  34. package/dist/pt-PT.mjs +1 -1
  35. package/dist/ro-RO.mjs +1 -1
  36. package/dist/ru-RU.mjs +1 -1
  37. package/dist/sk-SK.mjs +1 -1
  38. package/dist/sl-SI.mjs +1 -1
  39. package/dist/sr-SP.mjs +1 -1
  40. package/dist/sv-SE.mjs +1 -1
  41. package/dist/tr-TR.mjs +1 -1
  42. package/dist/uk-UA.mjs +1 -1
  43. package/dist/useStepList.main.js +54 -0
  44. package/dist/useStepList.main.js.map +1 -0
  45. package/dist/useStepList.mjs +49 -0
  46. package/dist/useStepList.module.js +49 -0
  47. package/dist/useStepList.module.js.map +1 -0
  48. package/dist/useStepListItem.main.js +53 -0
  49. package/dist/useStepListItem.main.js.map +1 -0
  50. package/dist/useStepListItem.mjs +48 -0
  51. package/dist/useStepListItem.module.js +48 -0
  52. package/dist/useStepListItem.module.js.map +1 -0
  53. package/dist/zh-CN.mjs +1 -1
  54. package/dist/zh-TW.mjs +1 -1
  55. package/package.json +7 -7
package/dist/ko-KR.mjs CHANGED
@@ -5,4 +5,4 @@ $b0f5383621af3b9b$exports = {
5
5
 
6
6
 
7
7
  export {$b0f5383621af3b9b$exports as default};
8
- //# sourceMappingURL=ko-KR.module.js.map
8
+ //# sourceMappingURL=ko-KR.mjs.map
package/dist/lt-LT.mjs CHANGED
@@ -5,4 +5,4 @@ $c9860d172f3b15ce$exports = {
5
5
 
6
6
 
7
7
  export {$c9860d172f3b15ce$exports as default};
8
- //# sourceMappingURL=lt-LT.module.js.map
8
+ //# sourceMappingURL=lt-LT.mjs.map
package/dist/lv-LV.mjs CHANGED
@@ -5,4 +5,4 @@ $959d78475ac0df02$exports = {
5
5
 
6
6
 
7
7
  export {$959d78475ac0df02$exports as default};
8
- //# sourceMappingURL=lv-LV.module.js.map
8
+ //# sourceMappingURL=lv-LV.mjs.map
package/dist/main.js CHANGED
@@ -1,63 +1,14 @@
1
- var $0648fe10bf72bc17$exports = require("./ar-AE.main.js");
2
- var $af277134eba8b5d0$exports = require("./bg-BG.main.js");
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
- function $parcel$interopDefault(a) {
45
- return a && a.__esModule ? a.default : a;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;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;;;;;AD1CO,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,gEAAW,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;;CDxCC;AGVD;;;;;;;;;;CAUC;AAoBM,SAAS,0CAAmB,KAA4B,EAAE,KAAuB,EAAE,GAA2B;IACnH,MAAM,OAAC,GAAG,EAAC,GAAG;IACd,IAAI,EAAC,kBAAkB,OAAO,eAAE,WAAW,EAAC,GAAG;IAE/C,IAAI,aAAa,CAAC,MAAM,YAAY,CAAC;IAErC,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,2CAAgB,EAAE;oBAClC;aACA;aACA;QACA,kBAAkB;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;YAQf;QAPA,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;SAEA,uBAAA,UAAU,SAAS,cAAnB,2CAAA,0BAAA,WAAsB;IACxB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/src/useStepListItem.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","/*\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","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}","/*\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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown?.(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
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 $ac9195bd6c155e9a$exports from "./ar-AE.module.js";
2
- import $566091aba1cc94bd$exports from "./bg-BG.module.js";
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
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;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;;;;;AD1CO,SAAS,0CAAe,KAA2B,EAAE,KAAuB,EAAE,GAAgC;IACnH,IAAI,EACF,cAAc,SAAS,EACxB,GAAG;IACJ,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,wBAAgB,EAAE;QAClC,GAAG,KAAK;QACR,GAAG,KAAK;QACR,qBAAqB;aACrB;IACF;IAEA,MAAM,UAAU,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,gEAAW,GAAG;IAC1D,MAAM,gBAA6C;QACjD,GAAG,CAAA,GAAA,iBAAS,EAAE,WAAW,CAAA,GAAA,qBAAa,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;;CDxCC;AGVD;;;;;;;;;;CAUC;AAoBM,SAAS,0CAAmB,KAA4B,EAAE,KAAuB,EAAE,GAA2B;IACnH,MAAM,OAAC,GAAG,EAAC,GAAG;IACd,IAAI,EAAC,kBAAkB,OAAO,eAAE,WAAW,EAAC,GAAG;IAE/C,IAAI,aAAa,CAAC,MAAM,YAAY,CAAC;IAErC,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,wBAAgB,EAAE;oBAClC;aACA;aACA;QACA,kBAAkB;IACpB;IAEA,MAAM,aAAa,gBAAgB;IAEnC,IAAI,YAAY,CAAC;YAQf;QAPA,MAAM,EAAC,KAAK,QAAQ,EAAC,GAAG;QAExB,IAAI,aAAa,eAAe,aAAa,WAAW;YACtD,MAAM,cAAc;YACpB,MAAM,eAAe;QACvB;SAEA,uBAAA,UAAU,SAAS,cAAnB,2CAAA,0BAAA,WAAsB;IACxB;IAEA,OAAO;QACL,WAAW;YACT,GAAG,SAAS;uBACZ;YACA,MAAM;YACN,gBAAgB,aAAa,SAAS;YACtC,iBAAiB,aAAa,OAAO;YACrC,UAAU,CAAC,aAAa,IAAI;QAC9B;IACF;AACF;","sources":["packages/@react-aria/steplist/src/index.ts","packages/@react-aria/steplist/src/useStepList.ts","packages/@react-aria/steplist/src/*.js","packages/@react-aria/steplist/src/useStepListItem.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","/*\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","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}","/*\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 {HTMLAttributes, RefObject} from 'react';\nimport {Key} from '@react-types/shared';\nimport {StepListState} from '@react-stately/steplist';\nimport {useSelectableItem} from '@react-aria/selection';\n\nexport interface AriaStepListItemProps {\n key: Key\n}\n\nexport interface StepListItemAria {\n /** Props for the step link element. */\n stepProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden element indicating the step state. */\n stepStateProps?: HTMLAttributes<HTMLElement>,\n /** Text content for the visually hidden message indicating the status of the step state. */\n stepStateText?: String\n}\n\nexport function useStepListItem<T>(props: AriaStepListItemProps, state: StepListState<T>, ref: RefObject<HTMLElement>): StepListItemAria {\n const {key} = props;\n let {selectionManager: manager, selectedKey} = state;\n\n let isDisabled = !state.isSelectable(key);\n\n let {itemProps} = useSelectableItem({\n isDisabled,\n key,\n ref,\n selectionManager: manager\n });\n\n const isSelected = selectedKey === key;\n\n let onKeyDown = (event) => {\n const {key: eventKey} = event;\n\n if (eventKey === 'ArrowDown' || eventKey === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n }\n\n itemProps.onKeyDown?.(event);\n };\n\n return {\n stepProps: {\n ...itemProps,\n onKeyDown,\n role: 'link',\n 'aria-current': isSelected ? 'step' : undefined,\n 'aria-disabled': isDisabled ? true : undefined,\n tabIndex: !isDisabled ? 0 : undefined\n }\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
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
@@ -5,4 +5,4 @@ $f05a0d5a4ee0ad95$exports = {
5
5
 
6
6
 
7
7
  export {$f05a0d5a4ee0ad95$exports as default};
8
- //# sourceMappingURL=nb-NO.module.js.map
8
+ //# sourceMappingURL=nb-NO.mjs.map
package/dist/nl-NL.mjs CHANGED
@@ -5,4 +5,4 @@ $1e675e17f5239298$exports = {
5
5
 
6
6
 
7
7
  export {$1e675e17f5239298$exports as default};
8
- //# sourceMappingURL=nl-NL.module.js.map
8
+ //# sourceMappingURL=nl-NL.mjs.map
package/dist/pl-PL.mjs CHANGED
@@ -5,4 +5,4 @@ $ea8c18ed5953abce$exports = {
5
5
 
6
6
 
7
7
  export {$ea8c18ed5953abce$exports as default};
8
- //# sourceMappingURL=pl-PL.module.js.map
8
+ //# sourceMappingURL=pl-PL.mjs.map
package/dist/pt-BR.mjs CHANGED
@@ -5,4 +5,4 @@ $4a66519f5fdc2316$exports = {
5
5
 
6
6
 
7
7
  export {$4a66519f5fdc2316$exports as default};
8
- //# sourceMappingURL=pt-BR.module.js.map
8
+ //# sourceMappingURL=pt-BR.mjs.map
package/dist/pt-PT.mjs CHANGED
@@ -5,4 +5,4 @@ $e794e3fb754025f9$exports = {
5
5
 
6
6
 
7
7
  export {$e794e3fb754025f9$exports as default};
8
- //# sourceMappingURL=pt-PT.module.js.map
8
+ //# sourceMappingURL=pt-PT.mjs.map
package/dist/ro-RO.mjs CHANGED
@@ -5,4 +5,4 @@ $27736caf9fb5f8de$exports = {
5
5
 
6
6
 
7
7
  export {$27736caf9fb5f8de$exports as default};
8
- //# sourceMappingURL=ro-RO.module.js.map
8
+ //# sourceMappingURL=ro-RO.mjs.map
package/dist/ru-RU.mjs CHANGED
@@ -5,4 +5,4 @@ $5fdbb1e29b12b436$exports = {
5
5
 
6
6
 
7
7
  export {$5fdbb1e29b12b436$exports as default};
8
- //# sourceMappingURL=ru-RU.module.js.map
8
+ //# sourceMappingURL=ru-RU.mjs.map
package/dist/sk-SK.mjs CHANGED
@@ -5,4 +5,4 @@ $6dbbd9e0ca5f0f9c$exports = {
5
5
 
6
6
 
7
7
  export {$6dbbd9e0ca5f0f9c$exports as default};
8
- //# sourceMappingURL=sk-SK.module.js.map
8
+ //# sourceMappingURL=sk-SK.mjs.map
package/dist/sl-SI.mjs CHANGED
@@ -5,4 +5,4 @@ $0c3f21e646593621$exports = {
5
5
 
6
6
 
7
7
  export {$0c3f21e646593621$exports as default};
8
- //# sourceMappingURL=sl-SI.module.js.map
8
+ //# sourceMappingURL=sl-SI.mjs.map
package/dist/sr-SP.mjs CHANGED
@@ -5,4 +5,4 @@ $a8c78296446307f5$exports = {
5
5
 
6
6
 
7
7
  export {$a8c78296446307f5$exports as default};
8
- //# sourceMappingURL=sr-SP.module.js.map
8
+ //# sourceMappingURL=sr-SP.mjs.map
package/dist/sv-SE.mjs CHANGED
@@ -5,4 +5,4 @@ $c631089a2357cb55$exports = {
5
5
 
6
6
 
7
7
  export {$c631089a2357cb55$exports as default};
8
- //# sourceMappingURL=sv-SE.module.js.map
8
+ //# sourceMappingURL=sv-SE.mjs.map
package/dist/tr-TR.mjs CHANGED
@@ -5,4 +5,4 @@ $c4fa8dbc62816b3f$exports = {
5
5
 
6
6
 
7
7
  export {$c4fa8dbc62816b3f$exports as default};
8
- //# sourceMappingURL=tr-TR.module.js.map
8
+ //# sourceMappingURL=tr-TR.mjs.map
package/dist/uk-UA.mjs CHANGED
@@ -5,4 +5,4 @@ $49a297f4b13082b0$exports = {
5
5
 
6
6
 
7
7
  export {$49a297f4b13082b0$exports as default};
8
- //# sourceMappingURL=uk-UA.module.js.map
8
+ //# sourceMappingURL=uk-UA.mjs.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,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"}