@react-spectrum/steplist 3.0.0-alpha.1 → 3.0.0-alpha.11

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 (41) hide show
  1. package/dist/StepList.main.js +72 -0
  2. package/dist/StepList.main.js.map +1 -0
  3. package/dist/StepList.mjs +67 -0
  4. package/dist/StepList.module.js +67 -0
  5. package/dist/StepList.module.js.map +1 -0
  6. package/dist/StepListContext.main.js +27 -0
  7. package/dist/StepListContext.main.js.map +1 -0
  8. package/dist/StepListContext.mjs +18 -0
  9. package/dist/StepListContext.module.js +18 -0
  10. package/dist/StepListContext.module.js.map +1 -0
  11. package/dist/StepListItem.main.js +122 -0
  12. package/dist/StepListItem.main.js.map +1 -0
  13. package/dist/StepListItem.mjs +117 -0
  14. package/dist/StepListItem.module.js +117 -0
  15. package/dist/StepListItem.module.js.map +1 -0
  16. package/dist/en-US.main.js +9 -0
  17. package/dist/en-US.main.js.map +1 -0
  18. package/dist/en-US.mjs +11 -0
  19. package/dist/en-US.module.js +11 -0
  20. package/dist/en-US.module.js.map +1 -0
  21. package/dist/import.mjs +1 -285
  22. package/dist/index.main.js +19 -0
  23. package/dist/index.main.js.map +1 -0
  24. package/dist/index.mjs +14 -0
  25. package/dist/index.module.js +14 -0
  26. package/dist/index.module.js.map +1 -0
  27. package/dist/main.js +2 -282
  28. package/dist/main.js.map +1 -1
  29. package/dist/module.js +1 -285
  30. package/dist/module.js.map +1 -1
  31. package/dist/steplist_vars_css.main.js +95 -0
  32. package/dist/steplist_vars_css.main.js.map +1 -0
  33. package/dist/steplist_vars_css.mjs +97 -0
  34. package/dist/steplist_vars_css.module.js +97 -0
  35. package/dist/steplist_vars_css.module.js.map +1 -0
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/{main.css → vars.09815770.css} +102 -117
  38. package/dist/vars.09815770.css.map +1 -0
  39. package/package.json +16 -16
  40. package/src/StepList.tsx +2 -5
  41. package/dist/main.css.map +0 -1
package/dist/main.js CHANGED
@@ -1,29 +1,12 @@
1
- "use client";
2
-
3
- require("./main.css");
1
+ var $a64198f1506264d6$exports = require("./StepList.main.js");
4
2
  var $5XIpf$reactstatelycollections = require("@react-stately/collections");
5
- var $5XIpf$reactariasteplist = require("@react-aria/steplist");
6
- var $5XIpf$reactspectrumutils = require("@react-spectrum/utils");
7
- var $5XIpf$react = require("react");
8
- var $5XIpf$reactspectrumprovider = require("@react-spectrum/provider");
9
- var $5XIpf$reactstatelysteplist = require("@react-stately/steplist");
10
- var $5XIpf$spectrumiconsuiChevronRightMedium = require("@spectrum-icons/ui/ChevronRightMedium");
11
- var $5XIpf$reactariafocus = require("@react-aria/focus");
12
- var $5XIpf$reactariautils = require("@react-aria/utils");
13
- var $5XIpf$reactariainteractions = require("@react-aria/interactions");
14
- var $5XIpf$reactariai18n = require("@react-aria/i18n");
15
- var $5XIpf$reactariavisuallyhidden = require("@react-aria/visually-hidden");
16
3
 
17
4
 
18
5
  function $parcel$export(e, n, v, s) {
19
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
20
7
  }
21
8
 
22
- function $parcel$interopDefault(a) {
23
- return a && a.__esModule ? a.default : a;
24
- }
25
-
26
- $parcel$export(module.exports, "StepList", () => $a64198f1506264d6$export$ff2e09ca3ba758a9);
9
+ $parcel$export(module.exports, "StepList", () => $a64198f1506264d6$exports.StepList);
27
10
  $parcel$export(module.exports, "Item", () => $5XIpf$reactstatelycollections.Item);
28
11
  /*
29
12
  * Copyright 2023 Adobe. All rights reserved.
@@ -36,269 +19,6 @@ $parcel$export(module.exports, "Item", () => $5XIpf$reactstatelycollections.Item
36
19
  * OF ANY KIND, either express or implied. See the License for the specific language
37
20
  * governing permissions and limitations under the License.
38
21
  */ /// <reference types="css-module-types" />
39
- /*
40
- * Copyright 2023 Adobe. All rights reserved.
41
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42
- * you may not use this file except in compliance with the License. You may obtain a copy
43
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
44
- *
45
- * Unless required by applicable law or agreed to in writing, software distributed under
46
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
47
- * OF ANY KIND, either express or implied. See the License for the specific language
48
- * governing permissions and limitations under the License.
49
- */
50
-
51
-
52
- /*
53
- * Copyright 202 Adobe. All rights reserved.
54
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
55
- * you may not use this file except in compliance with the License. You may obtain a copy
56
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
57
- *
58
- * Unless required by applicable law or agreed to in writing, software distributed under
59
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
60
- * OF ANY KIND, either express or implied. See the License for the specific language
61
- * governing permissions and limitations under the License.
62
- */
63
- const $b9b57d2de2195519$export$66136572efa4af6e = (0, ($parcel$interopDefault($5XIpf$react))).createContext(null);
64
-
65
-
66
- /*
67
- * Copyright 2023 Adobe. All rights reserved.
68
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
69
- * you may not use this file except in compliance with the License. You may obtain a copy
70
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
71
- *
72
- * Unless required by applicable law or agreed to in writing, software distributed under
73
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
74
- * OF ANY KIND, either express or implied. See the License for the specific language
75
- * governing permissions and limitations under the License.
76
- */
77
-
78
-
79
- var $17d0d848808abe0b$exports = {};
80
- $17d0d848808abe0b$exports = {
81
- "completed": `Completed: `,
82
- "notCompleted": `Not completed: `,
83
- "current": `Current: `,
84
- "steplist": `Step List`
85
- };
86
-
87
-
88
- var $fed92386245d94a4$export$2e2bcd8739ae039 = {
89
- "en-US": (0, (/*@__PURE__*/$parcel$interopDefault($17d0d848808abe0b$exports)))
90
- };
91
-
92
-
93
-
94
-
95
-
96
- var $390add5aac6e4d73$exports = {};
97
-
98
- $parcel$export($390add5aac6e4d73$exports, "focus-ring", () => $390add5aac6e4d73$export$f39a09f249340e2a, (v) => $390add5aac6e4d73$export$f39a09f249340e2a = v);
99
- $parcel$export($390add5aac6e4d73$exports, "i18nFontFamily", () => $390add5aac6e4d73$export$8c4ee2c50c22c514, (v) => $390add5aac6e4d73$export$8c4ee2c50c22c514 = v);
100
- $parcel$export($390add5aac6e4d73$exports, "is-completed", () => $390add5aac6e4d73$export$7e62df9ca2e410e4, (v) => $390add5aac6e4d73$export$7e62df9ca2e410e4 = v);
101
- $parcel$export($390add5aac6e4d73$exports, "is-disabled", () => $390add5aac6e4d73$export$d35bc1e505d1ebbf, (v) => $390add5aac6e4d73$export$d35bc1e505d1ebbf = v);
102
- $parcel$export($390add5aac6e4d73$exports, "is-hovered", () => $390add5aac6e4d73$export$b8813cd5d7824ce7, (v) => $390add5aac6e4d73$export$b8813cd5d7824ce7 = v);
103
- $parcel$export($390add5aac6e4d73$exports, "is-reversed", () => $390add5aac6e4d73$export$a4561bd665abb5db, (v) => $390add5aac6e4d73$export$a4561bd665abb5db = v);
104
- $parcel$export($390add5aac6e4d73$exports, "is-selected", () => $390add5aac6e4d73$export$1e0fb04f31d3c22a, (v) => $390add5aac6e4d73$export$1e0fb04f31d3c22a = v);
105
- $parcel$export($390add5aac6e4d73$exports, "label", () => $390add5aac6e4d73$export$1237798dc640739a, (v) => $390add5aac6e4d73$export$1237798dc640739a = v);
106
- $parcel$export($390add5aac6e4d73$exports, "line", () => $390add5aac6e4d73$export$53f1d5ea8de3d7c, (v) => $390add5aac6e4d73$export$53f1d5ea8de3d7c = v);
107
- $parcel$export($390add5aac6e4d73$exports, "marker", () => $390add5aac6e4d73$export$ffc4d0086f1a4c9, (v) => $390add5aac6e4d73$export$ffc4d0086f1a4c9 = v);
108
- $parcel$export($390add5aac6e4d73$exports, "spectrum-FocusRing-ring", () => $390add5aac6e4d73$export$4109102f950813a6, (v) => $390add5aac6e4d73$export$4109102f950813a6 = v);
109
- $parcel$export($390add5aac6e4d73$exports, "spectrum-FocusRing", () => $390add5aac6e4d73$export$24c7f46a6e3605dd, (v) => $390add5aac6e4d73$export$24c7f46a6e3605dd = v);
110
- $parcel$export($390add5aac6e4d73$exports, "spectrum-FocusRing--quiet", () => $390add5aac6e4d73$export$2927016961429360, (v) => $390add5aac6e4d73$export$2927016961429360 = v);
111
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist", () => $390add5aac6e4d73$export$35315228197e36b8, (v) => $390add5aac6e4d73$export$35315228197e36b8 = v);
112
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--emphasized", () => $390add5aac6e4d73$export$d2cf12460a777241, (v) => $390add5aac6e4d73$export$d2cf12460a777241 = v);
113
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--horizontal", () => $390add5aac6e4d73$export$6f0c4d0e9f29399d, (v) => $390add5aac6e4d73$export$6f0c4d0e9f29399d = v);
114
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--large", () => $390add5aac6e4d73$export$b0d9d5077004711a, (v) => $390add5aac6e4d73$export$b0d9d5077004711a = v);
115
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--medium", () => $390add5aac6e4d73$export$9666cb7894b7712a, (v) => $390add5aac6e4d73$export$9666cb7894b7712a = v);
116
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--small", () => $390add5aac6e4d73$export$43119eed81e90e13, (v) => $390add5aac6e4d73$export$43119eed81e90e13 = v);
117
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--vertical", () => $390add5aac6e4d73$export$146e7d67031e074f, (v) => $390add5aac6e4d73$export$146e7d67031e074f = v);
118
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist--xlarge", () => $390add5aac6e4d73$export$56195e68ddf7db1b, (v) => $390add5aac6e4d73$export$56195e68ddf7db1b = v);
119
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-chevron", () => $390add5aac6e4d73$export$e0b9c44558d2fb75, (v) => $390add5aac6e4d73$export$e0b9c44558d2fb75 = v);
120
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-item", () => $390add5aac6e4d73$export$df6f1d30f09c136e, (v) => $390add5aac6e4d73$export$df6f1d30f09c136e = v);
121
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-label", () => $390add5aac6e4d73$export$2393468f68ff8031, (v) => $390add5aac6e4d73$export$2393468f68ff8031 = v);
122
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-link", () => $390add5aac6e4d73$export$f622f4b07b665af3, (v) => $390add5aac6e4d73$export$f622f4b07b665af3 = v);
123
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-marker", () => $390add5aac6e4d73$export$9d44d123fa093f85, (v) => $390add5aac6e4d73$export$9d44d123fa093f85 = v);
124
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-markerWrapper", () => $390add5aac6e4d73$export$a7d0643524891b06, (v) => $390add5aac6e4d73$export$a7d0643524891b06 = v);
125
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-segment", () => $390add5aac6e4d73$export$1f36a6b1ab318f2f, (v) => $390add5aac6e4d73$export$1f36a6b1ab318f2f = v);
126
- $parcel$export($390add5aac6e4d73$exports, "spectrum-Steplist-segmentLine", () => $390add5aac6e4d73$export$f92a1d2b4a328a95, (v) => $390add5aac6e4d73$export$f92a1d2b4a328a95 = v);
127
- var $390add5aac6e4d73$export$f39a09f249340e2a;
128
- var $390add5aac6e4d73$export$8c4ee2c50c22c514;
129
- var $390add5aac6e4d73$export$7e62df9ca2e410e4;
130
- var $390add5aac6e4d73$export$d35bc1e505d1ebbf;
131
- var $390add5aac6e4d73$export$b8813cd5d7824ce7;
132
- var $390add5aac6e4d73$export$a4561bd665abb5db;
133
- var $390add5aac6e4d73$export$1e0fb04f31d3c22a;
134
- var $390add5aac6e4d73$export$1237798dc640739a;
135
- var $390add5aac6e4d73$export$53f1d5ea8de3d7c;
136
- var $390add5aac6e4d73$export$ffc4d0086f1a4c9;
137
- var $390add5aac6e4d73$export$4109102f950813a6;
138
- var $390add5aac6e4d73$export$24c7f46a6e3605dd;
139
- var $390add5aac6e4d73$export$2927016961429360;
140
- var $390add5aac6e4d73$export$35315228197e36b8;
141
- var $390add5aac6e4d73$export$d2cf12460a777241;
142
- var $390add5aac6e4d73$export$6f0c4d0e9f29399d;
143
- var $390add5aac6e4d73$export$b0d9d5077004711a;
144
- var $390add5aac6e4d73$export$9666cb7894b7712a;
145
- var $390add5aac6e4d73$export$43119eed81e90e13;
146
- var $390add5aac6e4d73$export$146e7d67031e074f;
147
- var $390add5aac6e4d73$export$56195e68ddf7db1b;
148
- var $390add5aac6e4d73$export$e0b9c44558d2fb75;
149
- var $390add5aac6e4d73$export$df6f1d30f09c136e;
150
- var $390add5aac6e4d73$export$2393468f68ff8031;
151
- var $390add5aac6e4d73$export$f622f4b07b665af3;
152
- var $390add5aac6e4d73$export$9d44d123fa093f85;
153
- var $390add5aac6e4d73$export$a7d0643524891b06;
154
- var $390add5aac6e4d73$export$1f36a6b1ab318f2f;
155
- var $390add5aac6e4d73$export$f92a1d2b4a328a95;
156
- $390add5aac6e4d73$export$f39a09f249340e2a = `Y9ExmG_focus-ring`;
157
- $390add5aac6e4d73$export$8c4ee2c50c22c514 = `Y9ExmG_i18nFontFamily`;
158
- $390add5aac6e4d73$export$7e62df9ca2e410e4 = `Y9ExmG_is-completed`;
159
- $390add5aac6e4d73$export$d35bc1e505d1ebbf = `Y9ExmG_is-disabled`;
160
- $390add5aac6e4d73$export$b8813cd5d7824ce7 = `Y9ExmG_is-hovered`;
161
- $390add5aac6e4d73$export$a4561bd665abb5db = `Y9ExmG_is-reversed`;
162
- $390add5aac6e4d73$export$1e0fb04f31d3c22a = `Y9ExmG_is-selected`;
163
- $390add5aac6e4d73$export$1237798dc640739a = `Y9ExmG_label`;
164
- $390add5aac6e4d73$export$53f1d5ea8de3d7c = `Y9ExmG_line`;
165
- $390add5aac6e4d73$export$ffc4d0086f1a4c9 = `Y9ExmG_marker`;
166
- $390add5aac6e4d73$export$4109102f950813a6 = `Y9ExmG_spectrum-FocusRing-ring`;
167
- $390add5aac6e4d73$export$24c7f46a6e3605dd = `Y9ExmG_spectrum-FocusRing ${$390add5aac6e4d73$export$4109102f950813a6}`;
168
- $390add5aac6e4d73$export$2927016961429360 = `Y9ExmG_spectrum-FocusRing--quiet`;
169
- $390add5aac6e4d73$export$35315228197e36b8 = `Y9ExmG_spectrum-Steplist`;
170
- $390add5aac6e4d73$export$d2cf12460a777241 = `Y9ExmG_spectrum-Steplist--emphasized`;
171
- $390add5aac6e4d73$export$6f0c4d0e9f29399d = `Y9ExmG_spectrum-Steplist--horizontal`;
172
- $390add5aac6e4d73$export$b0d9d5077004711a = `Y9ExmG_spectrum-Steplist--large`;
173
- $390add5aac6e4d73$export$9666cb7894b7712a = `Y9ExmG_spectrum-Steplist--medium`;
174
- $390add5aac6e4d73$export$43119eed81e90e13 = `Y9ExmG_spectrum-Steplist--small`;
175
- $390add5aac6e4d73$export$146e7d67031e074f = `Y9ExmG_spectrum-Steplist--vertical`;
176
- $390add5aac6e4d73$export$56195e68ddf7db1b = `Y9ExmG_spectrum-Steplist--xlarge`;
177
- $390add5aac6e4d73$export$e0b9c44558d2fb75 = `Y9ExmG_spectrum-Steplist-chevron`;
178
- $390add5aac6e4d73$export$df6f1d30f09c136e = `Y9ExmG_spectrum-Steplist-item`;
179
- $390add5aac6e4d73$export$2393468f68ff8031 = `Y9ExmG_spectrum-Steplist-label`;
180
- $390add5aac6e4d73$export$f622f4b07b665af3 = `Y9ExmG_spectrum-Steplist-link`;
181
- $390add5aac6e4d73$export$9d44d123fa093f85 = `Y9ExmG_spectrum-Steplist-marker`;
182
- $390add5aac6e4d73$export$a7d0643524891b06 = `Y9ExmG_spectrum-Steplist-markerWrapper`;
183
- $390add5aac6e4d73$export$1f36a6b1ab318f2f = `Y9ExmG_spectrum-Steplist-segment`;
184
- $390add5aac6e4d73$export$f92a1d2b4a328a95 = `Y9ExmG_spectrum-Steplist-segmentLine`;
185
-
186
-
187
-
188
-
189
-
190
-
191
- function $d2e2cd0667356b5d$export$87c2a8a94eda1754(props) {
192
- let { isDisabled: isDisabled, item: item } = props;
193
- let { key: key } = item;
194
- let ref = (0, $5XIpf$react.useRef)(null);
195
- let { direction: direction } = (0, $5XIpf$reactariai18n.useLocale)();
196
- let state = (0, $5XIpf$react.useContext)((0, $b9b57d2de2195519$export$66136572efa4af6e));
197
- const isSelected = state.selectedKey === key;
198
- const isCompleted = state.isCompleted(key);
199
- const isItemDisabled = isDisabled || state.disabledKeys.has(key);
200
- let { stepProps: stepProps, stepStateProps: stepStateProps } = (0, $5XIpf$reactariasteplist.useStepListItem)({
201
- ...props,
202
- key: key
203
- }, state, ref);
204
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $5XIpf$reactariainteractions.useHover)({
205
- ...props,
206
- isDisabled: isItemDisabled || isSelected || props.isReadOnly
207
- });
208
- let stepStateText = "";
209
- const stringFormatter = (0, $5XIpf$reactariai18n.useLocalizedStringFormatter)((0, $fed92386245d94a4$export$2e2bcd8739ae039), "@react-spectrum/steplist");
210
- const numberFormatter = (0, $5XIpf$reactariai18n.useNumberFormatter)();
211
- if (isSelected) stepStateText = stringFormatter.format("current");
212
- else if (isCompleted) stepStateText = stringFormatter.format("completed");
213
- else stepStateText = stringFormatter.format("notCompleted");
214
- let markerId = (0, $5XIpf$reactariautils.useId)();
215
- let labelId = (0, $5XIpf$reactariautils.useId)();
216
- return /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("li", {
217
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-item")
218
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement((0, $5XIpf$reactariafocus.FocusRing), {
219
- within: true,
220
- focusRingClass: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "focus-ring")
221
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("a", {
222
- ...(0, $5XIpf$reactariautils.mergeProps)(hoverProps, stepProps),
223
- "aria-labelledby": `${markerId} ${labelId}`,
224
- ref: ref,
225
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-link", {
226
- "is-selected": isSelected && !isItemDisabled,
227
- "is-disabled": isItemDisabled,
228
- "is-hovered": isHovered,
229
- "is-completed": isCompleted,
230
- "is-selectable": state.isSelectable(key) && !isSelected
231
- })
232
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement((0, $5XIpf$reactariavisuallyhidden.VisuallyHidden), stepStateProps, stepStateText), /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("div", {
233
- id: labelId,
234
- "aria-hidden": "true",
235
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-label")
236
- }, item.rendered), /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("div", {
237
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-segment", {
238
- "is-completed": isCompleted
239
- })
240
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("svg", {
241
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-segmentLine"),
242
- xmlns: "http://www.w3.org/2000/svg",
243
- height: "100%",
244
- viewBox: "0 0 2 8",
245
- preserveAspectRatio: "none"
246
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("line", {
247
- x1: "1",
248
- y1: "0",
249
- x2: "1",
250
- y2: "8",
251
- vectorEffect: "non-scaling-stroke"
252
- })), /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement((0, ($parcel$interopDefault($5XIpf$spectrumiconsuiChevronRightMedium))), {
253
- UNSAFE_className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-chevron", {
254
- "is-reversed": direction === "rtl"
255
- })
256
- })), /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("div", {
257
- "aria-hidden": "true",
258
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-markerWrapper")
259
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("div", {
260
- id: markerId,
261
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist-marker")
262
- }, numberFormatter.format((item.index || 0) + 1))))));
263
- }
264
-
265
-
266
-
267
-
268
-
269
- function $a64198f1506264d6$var$StepList(props, ref) {
270
- const { size: size = "M", orientation: orientation = "horizontal" } = props;
271
- props = (0, $5XIpf$reactspectrumprovider.useProviderProps)(props);
272
- const { isDisabled: isDisabled, isEmphasized: isEmphasized } = props;
273
- let { styleProps: styleProps } = (0, $5XIpf$reactspectrumutils.useStyleProps)(props);
274
- let domRef = (0, $5XIpf$reactspectrumutils.useDOMRef)(ref);
275
- let state = (0, $5XIpf$reactstatelysteplist.useStepListState)(props);
276
- let { listProps: listProps } = (0, $5XIpf$reactariasteplist.useStepList)(props, state, domRef);
277
- return /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement("ol", {
278
- ...listProps,
279
- ...styleProps,
280
- ref: domRef,
281
- className: (0, $5XIpf$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($390add5aac6e4d73$exports))), "spectrum-Steplist", styleProps.className, {
282
- "spectrum-Steplist--small": size === "S",
283
- "spectrum-Steplist--medium": size === "M",
284
- "spectrum-Steplist--large": size === "L",
285
- "spectrum-Steplist--xlarge": size === "XL",
286
- "spectrum-Steplist--emphasized": isEmphasized,
287
- "spectrum-Steplist--horizontal": orientation === "horizontal",
288
- "spectrum-Steplist--vertical": orientation === "vertical"
289
- })
290
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement((0, $b9b57d2de2195519$export$66136572efa4af6e).Provider, {
291
- value: state
292
- }, [
293
- ...state.collection
294
- ].map((item)=>/*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).createElement((0, $d2e2cd0667356b5d$export$87c2a8a94eda1754), {
295
- key: item.key,
296
- isDisabled: isDisabled,
297
- item: item
298
- }))));
299
- }
300
- const $a64198f1506264d6$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, ($parcel$interopDefault($5XIpf$react))).forwardRef($a64198f1506264d6$var$StepList);
301
-
302
22
 
303
23
 
304
24
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":"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","sources":["packages/@react-spectrum/steplist/src/index.ts","packages/@react-spectrum/steplist/src/StepList.tsx","packages/@react-spectrum/steplist/src/StepListContext.ts","packages/@react-spectrum/steplist/src/StepListItem.tsx","packages/@react-spectrum/steplist/intl/index.js","packages/@react-spectrum/steplist/intl/en-US.json","packages/@adobe/spectrum-css-temp/components/steplist/vars.css"],"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\n/// <reference types=\"css-module-types\" />\n\nexport {StepList} from './StepList';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumStepListProps} from './StepList';\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 {AriaStepListProps, useStepList} from '@react-aria/steplist';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Orientation, StyleProps} from '@react-types/shared';\nimport React, {ReactElement} from 'react';\nimport {StepListContext} from './StepListContext';\nimport {StepListItem} from './StepListItem';\nimport styles from '@adobe/spectrum-css-temp/components/steplist/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useStepListState} from '@react-stately/steplist';\n\nexport interface SpectrumStepListProps<T> extends AriaStepListProps<T>, StyleProps {\n /**\n * Whether the step list should be displayed with a emphasized style.\n * @default false\n */\n isEmphasized?: boolean,\n /**\n * The orientation of the step list.\n * @default 'horizontal'\n */\n orientation?: Orientation,\n /**\n * The size of the step list.\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\n\nfunction StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {\n const {size = 'M', orientation = 'horizontal'} = props;\n props = useProviderProps(props);\n const {isDisabled, isEmphasized} = props;\n let {styleProps} = useStyleProps(props);\n let domRef = useDOMRef(ref);\n\n let state = useStepListState(props);\n let {listProps} = useStepList(props, state, domRef);\n\n\n return (\n <ol\n {...listProps}\n {...styleProps}\n ref={domRef}\n className={classNames(styles, 'spectrum-Steplist', styleProps.className, {\n 'spectrum-Steplist--small': size === 'S',\n 'spectrum-Steplist--medium': size === 'M',\n 'spectrum-Steplist--large': size === 'L',\n 'spectrum-Steplist--xlarge': size === 'XL',\n 'spectrum-Steplist--emphasized': isEmphasized,\n 'spectrum-Steplist--horizontal': orientation === 'horizontal',\n 'spectrum-Steplist--vertical': orientation === 'vertical'\n })}>\n <StepListContext.Provider value={state}>\n {[...state.collection].map((item) => (\n <StepListItem\n key={item.key}\n isDisabled={isDisabled}\n item={item} />\n )\n )}\n </StepListContext.Provider>\n </ol>\n );\n}\n\nconst _StepList = React.forwardRef(StepList) as <T>(props: SpectrumStepListProps<T> & {ref?: DOMRef<HTMLOListElement>}) => ReactElement;\nexport {_StepList as StepList};\n","/*\n * Copyright 202 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 React from 'react';\nimport {StepListState} from '@react-stately/steplist';\n\nexport const StepListContext = React.createContext<StepListState<unknown> | null>(null);\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 */\nimport ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium';\nimport {classNames} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport intlMessages from '../intl';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {useContext, useRef} from 'react';\nimport {StepListContext} from './StepListContext';\nimport styles from '@adobe/spectrum-css-temp/components/steplist/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter, useNumberFormatter} from '@react-aria/i18n';\nimport {useStepListItem} from '@react-aria/steplist';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface SpectrumStepListItemProps<T> {\n item: Node<T>,\n isDisabled?: boolean,\n isEmphasized?: boolean,\n isReadOnly?: boolean\n}\n\nexport function StepListItem<T>(props: SpectrumStepListItemProps<T>) {\n let {\n isDisabled,\n item\n } = props;\n let {key} = item;\n\n let ref = useRef(null);\n let {direction} = useLocale();\n let state = useContext(StepListContext)!;\n const isSelected = state.selectedKey === key;\n const isCompleted = state.isCompleted(key);\n const isItemDisabled = isDisabled || state.disabledKeys.has(key);\n let {stepProps, stepStateProps} = useStepListItem({...props, key}, state, ref);\n\n let {hoverProps, isHovered} = useHover({...props, isDisabled: isItemDisabled || isSelected || props.isReadOnly});\n\n\n let stepStateText = '';\n const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/steplist');\n const numberFormatter = useNumberFormatter();\n\n if (isSelected) {\n stepStateText = stringFormatter.format('current');\n } else if (isCompleted) {\n stepStateText = stringFormatter.format('completed');\n } else {\n stepStateText = stringFormatter.format('notCompleted');\n }\n\n let markerId = useId();\n let labelId = useId();\n\n return (\n <li\n className={\n classNames(\n styles,\n 'spectrum-Steplist-item'\n )\n }>\n <FocusRing within focusRingClass={classNames(styles, 'focus-ring')}>\n <a\n {...mergeProps(hoverProps, stepProps)}\n aria-labelledby={`${markerId} ${labelId}`}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Steplist-link',\n {\n 'is-selected': isSelected && !isItemDisabled,\n 'is-disabled': isItemDisabled,\n 'is-hovered': isHovered,\n 'is-completed': isCompleted,\n 'is-selectable': state.isSelectable(key) && !isSelected\n }\n )}>\n <VisuallyHidden {...stepStateProps}>{stepStateText}</VisuallyHidden>\n <div id={labelId} aria-hidden=\"true\" className={classNames(styles, 'spectrum-Steplist-label')}>\n {item.rendered}\n </div>\n <div\n className={classNames(\n styles,\n 'spectrum-Steplist-segment', {\n 'is-completed': isCompleted\n })} >\n <svg className={classNames(styles, 'spectrum-Steplist-segmentLine')} xmlns=\"http://www.w3.org/2000/svg\" height=\"100%\" viewBox=\"0 0 2 8\" preserveAspectRatio=\"none\">\n <line x1=\"1\" y1=\"0\" x2=\"1\" y2=\"8\" vectorEffect=\"non-scaling-stroke\" />\n </svg>\n <ChevronRightMedium\n UNSAFE_className={classNames(styles, 'spectrum-Steplist-chevron', {\n 'is-reversed': direction === 'rtl'\n })} />\n </div>\n <div aria-hidden=\"true\" className={classNames(styles, 'spectrum-Steplist-markerWrapper')}>\n <div id={markerId} className={classNames(styles, 'spectrum-Steplist-marker')}>{numberFormatter.format((item.index || 0) + 1)}</div>\n </div>\n </a>\n </FocusRing>\n </li>\n );\n}\n","import enUS from './en-US.json';\n\nexport default {\n 'en-US': enUS\n};\n","{\n \"completed\": \"Completed: \",\n \"notCompleted\": \"Not completed: \",\n \"current\": \"Current: \",\n \"steplist\": \"Step List\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/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\n/// <reference types=\"css-module-types\" />\n\nexport {StepList} from './StepList';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumStepListProps} from './StepList';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,27 +1,6 @@
1
- "use client";
2
-
3
- import "./main.css";
1
+ import {StepList as $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9} from "./StepList.module.js";
4
2
  import {Item as $6f77c10bf951cb4f$re_export$Item} from "@react-stately/collections";
5
- import {useStepList as $gZOFb$useStepList, useStepListItem as $gZOFb$useStepListItem} from "@react-aria/steplist";
6
- import {useStyleProps as $gZOFb$useStyleProps, useDOMRef as $gZOFb$useDOMRef, classNames as $gZOFb$classNames} from "@react-spectrum/utils";
7
- import $gZOFb$react, {useRef as $gZOFb$useRef, useContext as $gZOFb$useContext} from "react";
8
- import {useProviderProps as $gZOFb$useProviderProps} from "@react-spectrum/provider";
9
- import {useStepListState as $gZOFb$useStepListState} from "@react-stately/steplist";
10
- import $gZOFb$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
11
- import {FocusRing as $gZOFb$FocusRing} from "@react-aria/focus";
12
- import {useId as $gZOFb$useId, mergeProps as $gZOFb$mergeProps} from "@react-aria/utils";
13
- import {useHover as $gZOFb$useHover} from "@react-aria/interactions";
14
- import {useLocale as $gZOFb$useLocale, useLocalizedStringFormatter as $gZOFb$useLocalizedStringFormatter, useNumberFormatter as $gZOFb$useNumberFormatter} from "@react-aria/i18n";
15
- import {VisuallyHidden as $gZOFb$VisuallyHidden} from "@react-aria/visually-hidden";
16
-
17
3
 
18
- function $parcel$interopDefault(a) {
19
- return a && a.__esModule ? a.default : a;
20
- }
21
-
22
- function $parcel$export(e, n, v, s) {
23
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
24
- }
25
4
  /*
26
5
  * Copyright 2023 Adobe. All rights reserved.
27
6
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -33,269 +12,6 @@ function $parcel$export(e, n, v, s) {
33
12
  * OF ANY KIND, either express or implied. See the License for the specific language
34
13
  * governing permissions and limitations under the License.
35
14
  */ /// <reference types="css-module-types" />
36
- /*
37
- * Copyright 2023 Adobe. All rights reserved.
38
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
39
- * you may not use this file except in compliance with the License. You may obtain a copy
40
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
41
- *
42
- * Unless required by applicable law or agreed to in writing, software distributed under
43
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44
- * OF ANY KIND, either express or implied. See the License for the specific language
45
- * governing permissions and limitations under the License.
46
- */
47
-
48
-
49
- /*
50
- * Copyright 202 Adobe. All rights reserved.
51
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
52
- * you may not use this file except in compliance with the License. You may obtain a copy
53
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
54
- *
55
- * Unless required by applicable law or agreed to in writing, software distributed under
56
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
57
- * OF ANY KIND, either express or implied. See the License for the specific language
58
- * governing permissions and limitations under the License.
59
- */
60
- const $739a883ac33f90d8$export$66136572efa4af6e = (0, $gZOFb$react).createContext(null);
61
-
62
-
63
- /*
64
- * Copyright 2023 Adobe. All rights reserved.
65
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
66
- * you may not use this file except in compliance with the License. You may obtain a copy
67
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
68
- *
69
- * Unless required by applicable law or agreed to in writing, software distributed under
70
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
71
- * OF ANY KIND, either express or implied. See the License for the specific language
72
- * governing permissions and limitations under the License.
73
- */
74
-
75
-
76
- var $08c8c4603e0a825e$exports = {};
77
- $08c8c4603e0a825e$exports = {
78
- "completed": `Completed: `,
79
- "notCompleted": `Not completed: `,
80
- "current": `Current: `,
81
- "steplist": `Step List`
82
- };
83
-
84
-
85
- var $62132693388ec24a$export$2e2bcd8739ae039 = {
86
- "en-US": (0, (/*@__PURE__*/$parcel$interopDefault($08c8c4603e0a825e$exports)))
87
- };
88
-
89
-
90
-
91
-
92
-
93
- var $b2477f17b7c66618$exports = {};
94
-
95
- $parcel$export($b2477f17b7c66618$exports, "focus-ring", () => $b2477f17b7c66618$export$f39a09f249340e2a, (v) => $b2477f17b7c66618$export$f39a09f249340e2a = v);
96
- $parcel$export($b2477f17b7c66618$exports, "i18nFontFamily", () => $b2477f17b7c66618$export$8c4ee2c50c22c514, (v) => $b2477f17b7c66618$export$8c4ee2c50c22c514 = v);
97
- $parcel$export($b2477f17b7c66618$exports, "is-completed", () => $b2477f17b7c66618$export$7e62df9ca2e410e4, (v) => $b2477f17b7c66618$export$7e62df9ca2e410e4 = v);
98
- $parcel$export($b2477f17b7c66618$exports, "is-disabled", () => $b2477f17b7c66618$export$d35bc1e505d1ebbf, (v) => $b2477f17b7c66618$export$d35bc1e505d1ebbf = v);
99
- $parcel$export($b2477f17b7c66618$exports, "is-hovered", () => $b2477f17b7c66618$export$b8813cd5d7824ce7, (v) => $b2477f17b7c66618$export$b8813cd5d7824ce7 = v);
100
- $parcel$export($b2477f17b7c66618$exports, "is-reversed", () => $b2477f17b7c66618$export$a4561bd665abb5db, (v) => $b2477f17b7c66618$export$a4561bd665abb5db = v);
101
- $parcel$export($b2477f17b7c66618$exports, "is-selected", () => $b2477f17b7c66618$export$1e0fb04f31d3c22a, (v) => $b2477f17b7c66618$export$1e0fb04f31d3c22a = v);
102
- $parcel$export($b2477f17b7c66618$exports, "label", () => $b2477f17b7c66618$export$1237798dc640739a, (v) => $b2477f17b7c66618$export$1237798dc640739a = v);
103
- $parcel$export($b2477f17b7c66618$exports, "line", () => $b2477f17b7c66618$export$53f1d5ea8de3d7c, (v) => $b2477f17b7c66618$export$53f1d5ea8de3d7c = v);
104
- $parcel$export($b2477f17b7c66618$exports, "marker", () => $b2477f17b7c66618$export$ffc4d0086f1a4c9, (v) => $b2477f17b7c66618$export$ffc4d0086f1a4c9 = v);
105
- $parcel$export($b2477f17b7c66618$exports, "spectrum-FocusRing-ring", () => $b2477f17b7c66618$export$4109102f950813a6, (v) => $b2477f17b7c66618$export$4109102f950813a6 = v);
106
- $parcel$export($b2477f17b7c66618$exports, "spectrum-FocusRing", () => $b2477f17b7c66618$export$24c7f46a6e3605dd, (v) => $b2477f17b7c66618$export$24c7f46a6e3605dd = v);
107
- $parcel$export($b2477f17b7c66618$exports, "spectrum-FocusRing--quiet", () => $b2477f17b7c66618$export$2927016961429360, (v) => $b2477f17b7c66618$export$2927016961429360 = v);
108
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist", () => $b2477f17b7c66618$export$35315228197e36b8, (v) => $b2477f17b7c66618$export$35315228197e36b8 = v);
109
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--emphasized", () => $b2477f17b7c66618$export$d2cf12460a777241, (v) => $b2477f17b7c66618$export$d2cf12460a777241 = v);
110
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--horizontal", () => $b2477f17b7c66618$export$6f0c4d0e9f29399d, (v) => $b2477f17b7c66618$export$6f0c4d0e9f29399d = v);
111
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--large", () => $b2477f17b7c66618$export$b0d9d5077004711a, (v) => $b2477f17b7c66618$export$b0d9d5077004711a = v);
112
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--medium", () => $b2477f17b7c66618$export$9666cb7894b7712a, (v) => $b2477f17b7c66618$export$9666cb7894b7712a = v);
113
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--small", () => $b2477f17b7c66618$export$43119eed81e90e13, (v) => $b2477f17b7c66618$export$43119eed81e90e13 = v);
114
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--vertical", () => $b2477f17b7c66618$export$146e7d67031e074f, (v) => $b2477f17b7c66618$export$146e7d67031e074f = v);
115
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist--xlarge", () => $b2477f17b7c66618$export$56195e68ddf7db1b, (v) => $b2477f17b7c66618$export$56195e68ddf7db1b = v);
116
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-chevron", () => $b2477f17b7c66618$export$e0b9c44558d2fb75, (v) => $b2477f17b7c66618$export$e0b9c44558d2fb75 = v);
117
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-item", () => $b2477f17b7c66618$export$df6f1d30f09c136e, (v) => $b2477f17b7c66618$export$df6f1d30f09c136e = v);
118
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-label", () => $b2477f17b7c66618$export$2393468f68ff8031, (v) => $b2477f17b7c66618$export$2393468f68ff8031 = v);
119
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-link", () => $b2477f17b7c66618$export$f622f4b07b665af3, (v) => $b2477f17b7c66618$export$f622f4b07b665af3 = v);
120
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-marker", () => $b2477f17b7c66618$export$9d44d123fa093f85, (v) => $b2477f17b7c66618$export$9d44d123fa093f85 = v);
121
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-markerWrapper", () => $b2477f17b7c66618$export$a7d0643524891b06, (v) => $b2477f17b7c66618$export$a7d0643524891b06 = v);
122
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-segment", () => $b2477f17b7c66618$export$1f36a6b1ab318f2f, (v) => $b2477f17b7c66618$export$1f36a6b1ab318f2f = v);
123
- $parcel$export($b2477f17b7c66618$exports, "spectrum-Steplist-segmentLine", () => $b2477f17b7c66618$export$f92a1d2b4a328a95, (v) => $b2477f17b7c66618$export$f92a1d2b4a328a95 = v);
124
- var $b2477f17b7c66618$export$f39a09f249340e2a;
125
- var $b2477f17b7c66618$export$8c4ee2c50c22c514;
126
- var $b2477f17b7c66618$export$7e62df9ca2e410e4;
127
- var $b2477f17b7c66618$export$d35bc1e505d1ebbf;
128
- var $b2477f17b7c66618$export$b8813cd5d7824ce7;
129
- var $b2477f17b7c66618$export$a4561bd665abb5db;
130
- var $b2477f17b7c66618$export$1e0fb04f31d3c22a;
131
- var $b2477f17b7c66618$export$1237798dc640739a;
132
- var $b2477f17b7c66618$export$53f1d5ea8de3d7c;
133
- var $b2477f17b7c66618$export$ffc4d0086f1a4c9;
134
- var $b2477f17b7c66618$export$4109102f950813a6;
135
- var $b2477f17b7c66618$export$24c7f46a6e3605dd;
136
- var $b2477f17b7c66618$export$2927016961429360;
137
- var $b2477f17b7c66618$export$35315228197e36b8;
138
- var $b2477f17b7c66618$export$d2cf12460a777241;
139
- var $b2477f17b7c66618$export$6f0c4d0e9f29399d;
140
- var $b2477f17b7c66618$export$b0d9d5077004711a;
141
- var $b2477f17b7c66618$export$9666cb7894b7712a;
142
- var $b2477f17b7c66618$export$43119eed81e90e13;
143
- var $b2477f17b7c66618$export$146e7d67031e074f;
144
- var $b2477f17b7c66618$export$56195e68ddf7db1b;
145
- var $b2477f17b7c66618$export$e0b9c44558d2fb75;
146
- var $b2477f17b7c66618$export$df6f1d30f09c136e;
147
- var $b2477f17b7c66618$export$2393468f68ff8031;
148
- var $b2477f17b7c66618$export$f622f4b07b665af3;
149
- var $b2477f17b7c66618$export$9d44d123fa093f85;
150
- var $b2477f17b7c66618$export$a7d0643524891b06;
151
- var $b2477f17b7c66618$export$1f36a6b1ab318f2f;
152
- var $b2477f17b7c66618$export$f92a1d2b4a328a95;
153
- $b2477f17b7c66618$export$f39a09f249340e2a = `Y9ExmG_focus-ring`;
154
- $b2477f17b7c66618$export$8c4ee2c50c22c514 = `Y9ExmG_i18nFontFamily`;
155
- $b2477f17b7c66618$export$7e62df9ca2e410e4 = `Y9ExmG_is-completed`;
156
- $b2477f17b7c66618$export$d35bc1e505d1ebbf = `Y9ExmG_is-disabled`;
157
- $b2477f17b7c66618$export$b8813cd5d7824ce7 = `Y9ExmG_is-hovered`;
158
- $b2477f17b7c66618$export$a4561bd665abb5db = `Y9ExmG_is-reversed`;
159
- $b2477f17b7c66618$export$1e0fb04f31d3c22a = `Y9ExmG_is-selected`;
160
- $b2477f17b7c66618$export$1237798dc640739a = `Y9ExmG_label`;
161
- $b2477f17b7c66618$export$53f1d5ea8de3d7c = `Y9ExmG_line`;
162
- $b2477f17b7c66618$export$ffc4d0086f1a4c9 = `Y9ExmG_marker`;
163
- $b2477f17b7c66618$export$4109102f950813a6 = `Y9ExmG_spectrum-FocusRing-ring`;
164
- $b2477f17b7c66618$export$24c7f46a6e3605dd = `Y9ExmG_spectrum-FocusRing ${$b2477f17b7c66618$export$4109102f950813a6}`;
165
- $b2477f17b7c66618$export$2927016961429360 = `Y9ExmG_spectrum-FocusRing--quiet`;
166
- $b2477f17b7c66618$export$35315228197e36b8 = `Y9ExmG_spectrum-Steplist`;
167
- $b2477f17b7c66618$export$d2cf12460a777241 = `Y9ExmG_spectrum-Steplist--emphasized`;
168
- $b2477f17b7c66618$export$6f0c4d0e9f29399d = `Y9ExmG_spectrum-Steplist--horizontal`;
169
- $b2477f17b7c66618$export$b0d9d5077004711a = `Y9ExmG_spectrum-Steplist--large`;
170
- $b2477f17b7c66618$export$9666cb7894b7712a = `Y9ExmG_spectrum-Steplist--medium`;
171
- $b2477f17b7c66618$export$43119eed81e90e13 = `Y9ExmG_spectrum-Steplist--small`;
172
- $b2477f17b7c66618$export$146e7d67031e074f = `Y9ExmG_spectrum-Steplist--vertical`;
173
- $b2477f17b7c66618$export$56195e68ddf7db1b = `Y9ExmG_spectrum-Steplist--xlarge`;
174
- $b2477f17b7c66618$export$e0b9c44558d2fb75 = `Y9ExmG_spectrum-Steplist-chevron`;
175
- $b2477f17b7c66618$export$df6f1d30f09c136e = `Y9ExmG_spectrum-Steplist-item`;
176
- $b2477f17b7c66618$export$2393468f68ff8031 = `Y9ExmG_spectrum-Steplist-label`;
177
- $b2477f17b7c66618$export$f622f4b07b665af3 = `Y9ExmG_spectrum-Steplist-link`;
178
- $b2477f17b7c66618$export$9d44d123fa093f85 = `Y9ExmG_spectrum-Steplist-marker`;
179
- $b2477f17b7c66618$export$a7d0643524891b06 = `Y9ExmG_spectrum-Steplist-markerWrapper`;
180
- $b2477f17b7c66618$export$1f36a6b1ab318f2f = `Y9ExmG_spectrum-Steplist-segment`;
181
- $b2477f17b7c66618$export$f92a1d2b4a328a95 = `Y9ExmG_spectrum-Steplist-segmentLine`;
182
-
183
-
184
-
185
-
186
-
187
-
188
- function $24c3cb1adfb0acc5$export$87c2a8a94eda1754(props) {
189
- let { isDisabled: isDisabled, item: item } = props;
190
- let { key: key } = item;
191
- let ref = (0, $gZOFb$useRef)(null);
192
- let { direction: direction } = (0, $gZOFb$useLocale)();
193
- let state = (0, $gZOFb$useContext)((0, $739a883ac33f90d8$export$66136572efa4af6e));
194
- const isSelected = state.selectedKey === key;
195
- const isCompleted = state.isCompleted(key);
196
- const isItemDisabled = isDisabled || state.disabledKeys.has(key);
197
- let { stepProps: stepProps, stepStateProps: stepStateProps } = (0, $gZOFb$useStepListItem)({
198
- ...props,
199
- key: key
200
- }, state, ref);
201
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $gZOFb$useHover)({
202
- ...props,
203
- isDisabled: isItemDisabled || isSelected || props.isReadOnly
204
- });
205
- let stepStateText = "";
206
- const stringFormatter = (0, $gZOFb$useLocalizedStringFormatter)((0, $62132693388ec24a$export$2e2bcd8739ae039), "@react-spectrum/steplist");
207
- const numberFormatter = (0, $gZOFb$useNumberFormatter)();
208
- if (isSelected) stepStateText = stringFormatter.format("current");
209
- else if (isCompleted) stepStateText = stringFormatter.format("completed");
210
- else stepStateText = stringFormatter.format("notCompleted");
211
- let markerId = (0, $gZOFb$useId)();
212
- let labelId = (0, $gZOFb$useId)();
213
- return /*#__PURE__*/ (0, $gZOFb$react).createElement("li", {
214
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-item")
215
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement((0, $gZOFb$FocusRing), {
216
- within: true,
217
- focusRingClass: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "focus-ring")
218
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement("a", {
219
- ...(0, $gZOFb$mergeProps)(hoverProps, stepProps),
220
- "aria-labelledby": `${markerId} ${labelId}`,
221
- ref: ref,
222
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-link", {
223
- "is-selected": isSelected && !isItemDisabled,
224
- "is-disabled": isItemDisabled,
225
- "is-hovered": isHovered,
226
- "is-completed": isCompleted,
227
- "is-selectable": state.isSelectable(key) && !isSelected
228
- })
229
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement((0, $gZOFb$VisuallyHidden), stepStateProps, stepStateText), /*#__PURE__*/ (0, $gZOFb$react).createElement("div", {
230
- id: labelId,
231
- "aria-hidden": "true",
232
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-label")
233
- }, item.rendered), /*#__PURE__*/ (0, $gZOFb$react).createElement("div", {
234
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-segment", {
235
- "is-completed": isCompleted
236
- })
237
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement("svg", {
238
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-segmentLine"),
239
- xmlns: "http://www.w3.org/2000/svg",
240
- height: "100%",
241
- viewBox: "0 0 2 8",
242
- preserveAspectRatio: "none"
243
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement("line", {
244
- x1: "1",
245
- y1: "0",
246
- x2: "1",
247
- y2: "8",
248
- vectorEffect: "non-scaling-stroke"
249
- })), /*#__PURE__*/ (0, $gZOFb$react).createElement((0, $gZOFb$spectrumiconsuiChevronRightMedium), {
250
- UNSAFE_className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-chevron", {
251
- "is-reversed": direction === "rtl"
252
- })
253
- })), /*#__PURE__*/ (0, $gZOFb$react).createElement("div", {
254
- "aria-hidden": "true",
255
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-markerWrapper")
256
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement("div", {
257
- id: markerId,
258
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist-marker")
259
- }, numberFormatter.format((item.index || 0) + 1))))));
260
- }
261
-
262
-
263
-
264
-
265
-
266
- function $6bd0589d5d2f8b66$var$StepList(props, ref) {
267
- const { size: size = "M", orientation: orientation = "horizontal" } = props;
268
- props = (0, $gZOFb$useProviderProps)(props);
269
- const { isDisabled: isDisabled, isEmphasized: isEmphasized } = props;
270
- let { styleProps: styleProps } = (0, $gZOFb$useStyleProps)(props);
271
- let domRef = (0, $gZOFb$useDOMRef)(ref);
272
- let state = (0, $gZOFb$useStepListState)(props);
273
- let { listProps: listProps } = (0, $gZOFb$useStepList)(props, state, domRef);
274
- return /*#__PURE__*/ (0, $gZOFb$react).createElement("ol", {
275
- ...listProps,
276
- ...styleProps,
277
- ref: domRef,
278
- className: (0, $gZOFb$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b2477f17b7c66618$exports))), "spectrum-Steplist", styleProps.className, {
279
- "spectrum-Steplist--small": size === "S",
280
- "spectrum-Steplist--medium": size === "M",
281
- "spectrum-Steplist--large": size === "L",
282
- "spectrum-Steplist--xlarge": size === "XL",
283
- "spectrum-Steplist--emphasized": isEmphasized,
284
- "spectrum-Steplist--horizontal": orientation === "horizontal",
285
- "spectrum-Steplist--vertical": orientation === "vertical"
286
- })
287
- }, /*#__PURE__*/ (0, $gZOFb$react).createElement((0, $739a883ac33f90d8$export$66136572efa4af6e).Provider, {
288
- value: state
289
- }, [
290
- ...state.collection
291
- ].map((item)=>/*#__PURE__*/ (0, $gZOFb$react).createElement((0, $24c3cb1adfb0acc5$export$87c2a8a94eda1754), {
292
- key: item.key,
293
- isDisabled: isDisabled,
294
- item: item
295
- }))));
296
- }
297
- const $6bd0589d5d2f8b66$export$ff2e09ca3ba758a9 = /*#__PURE__*/ (0, $gZOFb$react).forwardRef($6bd0589d5d2f8b66$var$StepList);
298
-
299
15
 
300
16
 
301
17