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