@react-spectrum/steplist 3.0.0-nightly.4321 → 3.0.0-nightly.4380
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +4 -2
- package/dist/main.css +512 -1
- package/dist/main.css.map +1 -0
- package/dist/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/package.json +14 -14
- package/src/StepListContext.ts +1 -1
- package/src/StepListItem.tsx +3 -3
package/dist/import.mjs
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
import "./main.css";
|
2
4
|
import {Item as $6f77c10bf951cb4f$re_export$Item} from "@react-stately/collections";
|
3
5
|
import {useStepList as $gZOFb$useStepList, useStepListItem as $gZOFb$useStepListItem} from "@react-aria/steplist";
|
@@ -186,7 +188,7 @@ $b2477f17b7c66618$export$f92a1d2b4a328a95 = `Y9ExmG_spectrum-Steplist-segmentLin
|
|
186
188
|
function $24c3cb1adfb0acc5$export$87c2a8a94eda1754(props) {
|
187
189
|
let { isDisabled: isDisabled, item: item } = props;
|
188
190
|
let { key: key } = item;
|
189
|
-
let ref = (0, $gZOFb$useRef)();
|
191
|
+
let ref = (0, $gZOFb$useRef)(null);
|
190
192
|
let { direction: direction } = (0, $gZOFb$useLocale)();
|
191
193
|
let state = (0, $gZOFb$useContext)((0, $739a883ac33f90d8$export$66136572efa4af6e));
|
192
194
|
const isSelected = state.selectedKey === key;
|
@@ -201,7 +203,7 @@ function $24c3cb1adfb0acc5$export$87c2a8a94eda1754(props) {
|
|
201
203
|
isDisabled: isItemDisabled || isSelected || props.isReadOnly
|
202
204
|
});
|
203
205
|
let stepStateText = "";
|
204
|
-
const stringFormatter = (0, $gZOFb$useLocalizedStringFormatter)((0, $62132693388ec24a$export$2e2bcd8739ae039));
|
206
|
+
const stringFormatter = (0, $gZOFb$useLocalizedStringFormatter)((0, $62132693388ec24a$export$2e2bcd8739ae039), "@react-spectrum/steplist");
|
205
207
|
const numberFormatter = (0, $gZOFb$useNumberFormatter)();
|
206
208
|
if (isSelected) stepStateText = stringFormatter.format("current");
|
207
209
|
else if (isCompleted) stepStateText = stringFormatter.format("completed");
|
package/dist/main.css
CHANGED
@@ -1 +1,512 @@
|
|
1
|
-
.Y9ExmG_i18nFontFamily{font-synthesis:weight;font-family:adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.Y9ExmG_i18nFontFamily:lang(ar){font-family:myriad-arabic,adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.Y9ExmG_i18nFontFamily:lang(he){font-family:myriad-hebrew,adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.Y9ExmG_i18nFontFamily:lang(zh){font-family:adobe-clean-han-traditional,source-han-traditional,MingLiu,Heiti TC Light,sans-serif}.Y9ExmG_i18nFontFamily:lang(zh-Hans){font-family:adobe-clean-han-simplified-c,source-han-simplified-c,SimSun,Heiti SC Light,sans-serif}.Y9ExmG_i18nFontFamily:lang(zh-Hant){font-family:adobe-clean-han-traditional,source-han-traditional,MingLiu,Microsoft JhengHei UI,Microsoft JhengHei,Heiti TC Light,sans-serif}.Y9ExmG_i18nFontFamily:lang(zh-SG),.Y9ExmG_i18nFontFamily:lang(zh-CN){font-family:adobe-clean-han-simplified-c,source-han-simplified-c,SimSun,Heiti SC Light,sans-serif}.Y9ExmG_i18nFontFamily:lang(ko){font-family:adobe-clean-han-korean,source-han-korean,Malgun Gothic,Apple Gothic,sans-serif}.Y9ExmG_i18nFontFamily:lang(ja){font-family:adobe-clean-han-japanese,Hiragino Kaku Gothic ProN,ヒラギノ角ゴ ProN W3,Osaka,YuGothic,Yu Gothic,メイリオ,Meiryo,MS Pゴシック,MS PGothic,sans-serif}.Y9ExmG_spectrum-FocusRing-ring{--spectrum-focus-ring-border-radius:var(--spectrum-textfield-border-radius,var(--spectrum-alias-border-radius-regular));--spectrum-focus-ring-gap:var(--spectrum-alias-input-focusring-gap);--spectrum-focus-ring-size:var(--spectrum-alias-input-focusring-size);--spectrum-focus-ring-border-size:0px;--spectrum-focus-ring-color:var(--spectrum-high-contrast-focus-ring-color,var(--spectrum-alias-focus-ring-color,var(--spectrum-alias-focus-color)))}.Y9ExmG_spectrum-FocusRing-ring:after{border-radius:calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));content:"";margin:calc(-1*var(--spectrum-focus-ring-border-size));pointer-events:none;transition:box-shadow var(--spectrum-global-animation-duration-100,.13s)ease-out,margin var(--spectrum-global-animation-duration-100,.13s)ease-out;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.Y9ExmG_spectrum-FocusRing.Y9ExmG_focus-ring:after{margin:calc(var(--spectrum-focus-ring-gap)*-1 - var(--spectrum-focus-ring-border-size));box-shadow:0 0 0 var(--spectrum-focus-ring-size)var(--spectrum-focus-ring-color)}.Y9ExmG_spectrum-FocusRing--quiet:after{border-radius:0}.Y9ExmG_spectrum-FocusRing--quiet.Y9ExmG_focus-ring:after{margin:0 0 calc(var(--spectrum-focus-ring-gap)*-1 - var(--spectrum-focus-ring-border-size))0;box-shadow:0 var(--spectrum-focus-ring-size)0 var(--spectrum-focus-ring-color)}.Y9ExmG_spectrum-Steplist{flex-wrap:nowrap;margin:0;padding:0;display:flex}.Y9ExmG_spectrum-Steplist-item{min-width:0;display:grid}.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-segment{align-items:center;display:inline-flex}.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-segment.Y9ExmG_is-completed svg line{stroke-dasharray:none}.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-chevron.Y9ExmG_is-reversed{transform:scaleX(-1)}.Y9ExmG_spectrum-Steplist-link{cursor:default;outline:none;text-decoration:none;display:grid}.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-markerWrapper{grid-area:Y9ExmG_marker}.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker{box-sizing:border-box;border-style:solid;border-width:2px;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;font-weight:700;display:flex}.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-label{grid-area:Y9ExmG_label}.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker,.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-marker,.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-hovered.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker{border-style:none;border-width:0}.Y9ExmG_spectrum-Steplist{font-size:var(--spectrum-steplist-font-size);gap:var(--spectrum-steplist-chevron-gap)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-link{gap:var(--spectrum-steplist-marker-label-gap)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker{width:var(--spectrum-steplist-marker-diameter);height:var(--spectrum-steplist-marker-diameter);font-size:var(--spectrum-steplist-counter-font-size);padding-block-end:1px}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-chevron{transform:scale(var(--spectrum-steplist-chevron-scale))}.Y9ExmG_spectrum-Steplist--small{--spectrum-steplist-font-size:var(--spectrum-global-dimension-font-size-75);--spectrum-steplist-chevron-gap:10px;--spectrum-steplist-marker-label-gap:10px;--spectrum-steplist-marker-diameter:8px;--spectrum-steplist-counter-font-size:0;--spectrum-steplist-chevron-scale:.75;--spectrum-steplist-segment-height-adjust:-4px}.Y9ExmG_spectrum-Steplist--small .Y9ExmG_spectrum-Steplist-marker{padding-top:1px}.Y9ExmG_spectrum-Steplist--small.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-marker{margin-top:1px}.Y9ExmG_spectrum-Steplist--small.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-chevron{padding-top:2px}.Y9ExmG_spectrum-Steplist--medium{--spectrum-steplist-font-size:var(--spectrum-global-dimension-font-size-100);--spectrum-steplist-chevron-gap:16px;--spectrum-steplist-marker-label-gap:12px;--spectrum-steplist-marker-diameter:16px;--spectrum-steplist-counter-font-size:var(--spectrum-global-dimension-font-size-75);--spectrum-steplist-chevron-scale:1;--spectrum-steplist-segment-height-adjust:0px}.Y9ExmG_spectrum-Steplist--large{--spectrum-steplist-font-size:var(--spectrum-global-dimension-font-size-200);--spectrum-steplist-chevron-gap:20px;--spectrum-steplist-marker-label-gap:14px;--spectrum-steplist-marker-diameter:24px;--spectrum-steplist-counter-font-size:var(--spectrum-global-dimension-font-size-100);--spectrum-steplist-chevron-scale:1.25;--spectrum-steplist-segment-height-adjust:6px}.Y9ExmG_spectrum-Steplist--xlarge{--spectrum-steplist-font-size:var(--spectrum-global-dimension-font-size-300);--spectrum-steplist-chevron-gap:24px;--spectrum-steplist-marker-label-gap:16px;--spectrum-steplist-marker-diameter:32px;--spectrum-steplist-counter-font-size:var(--spectrum-global-dimension-font-size-200);--spectrum-steplist-chevron-scale:1.5;--spectrum-steplist-segment-height-adjust:6px}.Y9ExmG_spectrum-Steplist-item:last-child .Y9ExmG_spectrum-Steplist-segment{display:none}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-link{align-items:baseline;display:flex}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segment{order:2;align-items:center;padding-inline-start:calc(var(--spectrum-steplist-chevron-gap) - var(--spectrum-steplist-marker-label-gap));display:flex}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segment:before{content:"*";visibility:hidden;width:0}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-chevron{padding-top:1px}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-label{order:1}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-markerWrapper{flex:none;order:0;align-items:center;display:flex}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-markerWrapper:before{content:"*";visibility:hidden;width:0}.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segmentLine{display:none}.Y9ExmG_spectrum-Steplist--vertical{flex-direction:column;gap:0 2px}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-item{display:unset;list-style:none}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-link{grid-template:"Y9ExmG_marker Y9ExmG_label"minmax(16px,min-content)"Y9ExmG_line Y9ExmG_label"1fr/minmax(0,min-content) 1fr;justify-items:start;gap:0 6px;display:grid}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-chevron{display:none}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-markerWrapper{align-self:baseline;align-items:center;min-width:0;min-height:0;display:flex}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-markerWrapper:before{content:"*";visibility:hidden;width:0}.Y9ExmG_spectrum-Steplist--vertical.Y9ExmG_spectrum-Steplist--small .Y9ExmG_spectrum-Steplist-marker{align-self:center}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-label{align-self:baseline;min-width:0;min-height:0;line-height:16px}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment{box-sizing:content-box;pointer-events:none;grid-area:Y9ExmG_line;justify-self:center;width:2px;min-width:0;min-height:32px}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-segmentLine{height:calc(100% - var(--spectrum-steplist-segment-height-adjust));width:2px;overflow:visible}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-segmentLine line{stroke-width:2px;stroke-dasharray:6 4;stroke-linecap:round}.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-item:last-child .Y9ExmG_spectrum-Steplist-link{grid-template-rows:minmax(16px,min-content);grid-template-areas:"Y9ExmG_marker Y9ExmG_label"}.Y9ExmG_spectrum-Steplist{--spectrum-steplist-complete-segment-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-complete-label-text-color:var(--spectrum-global-color-gray-700);--spectrum-steplist-complete-marker-text-color:var(--spectrum-global-color-gray-50);--spectrum-steplist-complete-marker-color:var(--spectrum-global-color-gray-600);--spectrum-steplist-complete-marker-color-hover:var(--spectrum-global-color-gray-700);--spectrum-steplist-current-label-text-color:var(--spectrum-global-color-gray-800);--spectrum-steplist-current-marker-text-color:var(--spectrum-global-color-gray-50);--spectrum-steplist-current-marker-color:var(--spectrum-global-color-gray-800);--spectrum-steplist-incomplete-segment-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-incomplete-label-text-color:var(--spectrum-global-color-gray-600);--spectrum-steplist-incomplete-marker-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-incomplete-marker-text-color:var(--spectrum-global-color-gray-500);--spectrum-steplist-emphasized-current-label-text-color:var(--spectrum-accent-color-900);--spectrum-steplist-emphasized-current-marker-color:var(--spectrum-accent-color-900);--spectrum-steplist-disabled-complete-marker-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-disabled-complete-marker-text-color:var(--spectrum-global-color-gray-50);--spectrum-steplist-disabled-complete-segment-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-disabled-complete-label-text-color:var(--spectrum-global-color-gray-500);--spectrum-steplist-disabled-incomplete-marker-color:var(--spectrum-global-color-gray-300);--spectrum-steplist-disabled-incomplete-marker-text-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-disabled-incomplete-segment-color:var(--spectrum-global-color-gray-400);--spectrum-steplist-disabled-incomplete-label-text-color:var(--spectrum-global-color-gray-400)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-label{color:var(--spectrum-steplist-incomplete-label-text-color,var(--spectrum-global-color-gray-600))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-marker{border-color:var(--spectrum-steplist-incomplete-marker-color,var(--spectrum-global-color-gray-300));color:var(--spectrum-steplist-incomplete-marker-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron{color:var(--spectrum-steplist-incomplete-segment-color,var(--spectrum-global-color-gray-300))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-segment svg line{stroke:var(--spectrum-steplist-incomplete-segment-color,var(--spectrum-global-color-gray-300))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-label{color:var(--spectrum-steplist-disabled-incomplete-label-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker{border-color:var(--spectrum-steplist-disabled-incomplete-marker-color);color:var(--spectrum-steplist-disabled-incomplete-marker-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron{color:var(--spectrum-steplist-disabled-incomplete-segment-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment svg line{stroke:var(--spectrum-steplist-disabled-incomplete-segment-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-label{color:var(--spectrum-steplist-complete-label-text-color,var(--spectrum-global-color-gray-700))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker{background-color:var(--spectrum-steplist-complete-marker-color,var(--spectrum-global-color-gray-600));border-color:var(--spectrum-steplist-complete-marker-color,var(--spectrum-global-color-gray-600));color:var(--spectrum-steplist-complete-marker-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron{color:var(--spectrum-steplist-complete-segment-color,var(--spectrum-global-color-gray-500))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-segment svg line{stroke:var(--spectrum-steplist-complete-segment-color,var(--spectrum-global-color-gray-500))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-hovered .Y9ExmG_spectrum-Steplist-marker{background-color:var(--spectrum-steplist-complete-marker-color-hover,var(--spectrum-global-color-gray-700));border-color:var(--spectrum-steplist-complete-marker-color-hover,var(--spectrum-global-color-gray-700))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-label{color:var(--spectrum-steplist-disabled-complete-label-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker{background-color:var(--spectrum-steplist-disabled-complete-marker-color);border-color:var(--spectrum-steplist-disabled-complete-marker-color);color:var(--spectrum-steplist-disabled-complete-marker-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron{color:var(--spectrum-steplist-disabled-complete-segment-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment svg line{stroke:var(--spectrum-steplist-disabled-complete-segment-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-label{color:var(--spectrum-steplist-current-label-text-color,var(--spectrum-global-color-gray-800))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-marker{background-color:var(--spectrum-steplist-current-marker-color,var(--spectrum-global-color-gray-800));border-color:var(--spectrum-steplist-current-marker-color,var(--spectrum-global-color-gray-800));color:var(--spectrum-steplist-current-marker-text-color)}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron{color:var(--spectrum-steplist-complete-segment-color,var(--spectrum-global-color-gray-500))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-segment svg line{stroke:var(--spectrum-steplist-complete-segment-color,var(--spectrum-global-color-gray-500))}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_focus-ring .Y9ExmG_spectrum-Steplist-marker{outline:solid 2px var(--spectrum-high-contrast-focus-ring-color,var(--spectrum-alias-focus-ring-color,var(--spectrum-alias-focus-color)));outline-offset:2px}.Y9ExmG_spectrum-Steplist--medium .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link:not(.Y9ExmG_is-completed):not(.Y9ExmG_is-selected) .Y9ExmG_spectrum-Steplist-marker,.Y9ExmG_spectrum-Steplist--medium .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link:not(.Y9ExmG_is-completed):not(.Y9ExmG_is-selected).Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker{color:#0000}.Y9ExmG_spectrum-Steplist--emphasized{--spectrum-steplist-current-label-text-color:var(--spectrum-steplist-emphasized-current-label-text-color);--spectrum-steplist-current-marker-color:var(--spectrum-steplist-emphasized-current-marker-color)}@media (forced-colors:active){.Y9ExmG_spectrum-Steplist{forced-color-adjust:none;--spectrum-steplist-complete-segment-color:CanvasText;--spectrum-steplist-complete-label-text-color:LinkText;--spectrum-steplist-complete-marker-text-color:Canvas;--spectrum-steplist-complete-marker-color:LinkText;--spectrum-steplist-complete-marker-color-hover:LinkText;--spectrum-steplist-current-label-text-color:Highlight;--spectrum-steplist-current-marker-text-color:Canvas;--spectrum-steplist-current-marker-color:Highlight;--spectrum-steplist-incomplete-segment-color:CanvasText;--spectrum-steplist-incomplete-label-text-color:ButtonText;--spectrum-steplist-incomplete-marker-color:ButtonText;--spectrum-steplist-incomplete-marker-text-color:ButtonText;--spectrum-steplist-emphasized-current-label-text-color:CanvasText;--spectrum-steplist-emphasized-current-marker-color:ButtonText;--spectrum-steplist-disabled-complete-marker-color:GrayText;--spectrum-steplist-disabled-complete-marker-text-color:Canvas;--spectrum-steplist-disabled-complete-segment-color:CanvasText;--spectrum-steplist-disabled-complete-label-text-color:GrayText;--spectrum-steplist-disabled-incomplete-marker-color:GrayText;--spectrum-steplist-disabled-incomplete-marker-text-color:ButtonText;--spectrum-steplist-disabled-incomplete-segment-color:CanvasText;--spectrum-steplist-disabled-incomplete-label-text-color:GrayText;--spectrum-high-contrast-focus-ring-color:ButtonText}.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker{border-style:solid;border-width:2px}}
|
1
|
+
.Y9ExmG_i18nFontFamily {
|
2
|
+
font-synthesis: weight;
|
3
|
+
font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
4
|
+
}
|
5
|
+
|
6
|
+
.Y9ExmG_i18nFontFamily:lang(ar) {
|
7
|
+
font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
8
|
+
}
|
9
|
+
|
10
|
+
.Y9ExmG_i18nFontFamily:lang(he) {
|
11
|
+
font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
12
|
+
}
|
13
|
+
|
14
|
+
.Y9ExmG_i18nFontFamily:lang(zh) {
|
15
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
16
|
+
}
|
17
|
+
|
18
|
+
.Y9ExmG_i18nFontFamily:lang(zh-Hans) {
|
19
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
20
|
+
}
|
21
|
+
|
22
|
+
.Y9ExmG_i18nFontFamily:lang(zh-Hant) {
|
23
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
24
|
+
}
|
25
|
+
|
26
|
+
.Y9ExmG_i18nFontFamily:lang(zh-SG) {
|
27
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
28
|
+
}
|
29
|
+
|
30
|
+
.Y9ExmG_i18nFontFamily:lang(zh-CN) {
|
31
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
32
|
+
}
|
33
|
+
|
34
|
+
.Y9ExmG_i18nFontFamily:lang(ko) {
|
35
|
+
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
36
|
+
}
|
37
|
+
|
38
|
+
.Y9ExmG_i18nFontFamily:lang(ja) {
|
39
|
+
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
40
|
+
}
|
41
|
+
|
42
|
+
.Y9ExmG_spectrum-FocusRing-ring {
|
43
|
+
--spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
|
44
|
+
--spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
|
45
|
+
--spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
|
46
|
+
--spectrum-focus-ring-border-size: 0px;
|
47
|
+
--spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
|
48
|
+
}
|
49
|
+
|
50
|
+
.Y9ExmG_spectrum-FocusRing-ring:after {
|
51
|
+
border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
|
52
|
+
content: "";
|
53
|
+
margin: calc(-1 * var(--spectrum-focus-ring-border-size));
|
54
|
+
pointer-events: none;
|
55
|
+
transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
|
56
|
+
display: block;
|
57
|
+
position: absolute;
|
58
|
+
top: 0;
|
59
|
+
bottom: 0;
|
60
|
+
left: 0;
|
61
|
+
right: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
.Y9ExmG_spectrum-FocusRing {
|
65
|
+
}
|
66
|
+
|
67
|
+
.Y9ExmG_spectrum-FocusRing.Y9ExmG_focus-ring:after {
|
68
|
+
margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
|
69
|
+
box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
|
70
|
+
}
|
71
|
+
|
72
|
+
.Y9ExmG_spectrum-FocusRing--quiet:after {
|
73
|
+
border-radius: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.Y9ExmG_spectrum-FocusRing--quiet.Y9ExmG_focus-ring:after {
|
77
|
+
margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
|
78
|
+
box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
|
79
|
+
}
|
80
|
+
|
81
|
+
.Y9ExmG_spectrum-Steplist {
|
82
|
+
flex-wrap: nowrap;
|
83
|
+
margin: 0;
|
84
|
+
padding: 0;
|
85
|
+
display: flex;
|
86
|
+
}
|
87
|
+
|
88
|
+
.Y9ExmG_spectrum-Steplist-item {
|
89
|
+
min-width: 0;
|
90
|
+
display: grid;
|
91
|
+
}
|
92
|
+
|
93
|
+
.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-segment {
|
94
|
+
align-items: center;
|
95
|
+
display: inline-flex;
|
96
|
+
}
|
97
|
+
|
98
|
+
.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-segment.Y9ExmG_is-completed svg line {
|
99
|
+
stroke-dasharray: none;
|
100
|
+
}
|
101
|
+
|
102
|
+
.Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-chevron.Y9ExmG_is-reversed {
|
103
|
+
transform: scaleX(-1);
|
104
|
+
}
|
105
|
+
|
106
|
+
.Y9ExmG_spectrum-Steplist-link {
|
107
|
+
cursor: default;
|
108
|
+
outline: none;
|
109
|
+
text-decoration: none;
|
110
|
+
display: grid;
|
111
|
+
}
|
112
|
+
|
113
|
+
.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-markerWrapper {
|
114
|
+
grid-area: Y9ExmG_marker;
|
115
|
+
}
|
116
|
+
|
117
|
+
.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker {
|
118
|
+
box-sizing: border-box;
|
119
|
+
border-style: solid;
|
120
|
+
border-width: 2px;
|
121
|
+
border-radius: 50%;
|
122
|
+
flex-direction: column;
|
123
|
+
justify-content: center;
|
124
|
+
align-items: center;
|
125
|
+
font-weight: bold;
|
126
|
+
display: flex;
|
127
|
+
}
|
128
|
+
|
129
|
+
.Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-label {
|
130
|
+
grid-area: Y9ExmG_label;
|
131
|
+
}
|
132
|
+
|
133
|
+
.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker {
|
134
|
+
border-style: none;
|
135
|
+
border-width: 0;
|
136
|
+
}
|
137
|
+
|
138
|
+
.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-marker {
|
139
|
+
border-style: none;
|
140
|
+
border-width: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
.Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-hovered.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker {
|
144
|
+
border-style: none;
|
145
|
+
border-width: 0;
|
146
|
+
}
|
147
|
+
|
148
|
+
.Y9ExmG_spectrum-Steplist {
|
149
|
+
font-size: var(--spectrum-steplist-font-size);
|
150
|
+
gap: var(--spectrum-steplist-chevron-gap);
|
151
|
+
}
|
152
|
+
|
153
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-link {
|
154
|
+
gap: var(--spectrum-steplist-marker-label-gap);
|
155
|
+
}
|
156
|
+
|
157
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker {
|
158
|
+
width: var(--spectrum-steplist-marker-diameter);
|
159
|
+
height: var(--spectrum-steplist-marker-diameter);
|
160
|
+
font-size: var(--spectrum-steplist-counter-font-size);
|
161
|
+
padding-block-end: 1px;
|
162
|
+
}
|
163
|
+
|
164
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-chevron {
|
165
|
+
transform: scale(var(--spectrum-steplist-chevron-scale));
|
166
|
+
}
|
167
|
+
|
168
|
+
.Y9ExmG_spectrum-Steplist--small {
|
169
|
+
--spectrum-steplist-font-size: var(--spectrum-global-dimension-font-size-75);
|
170
|
+
--spectrum-steplist-chevron-gap: 10px;
|
171
|
+
--spectrum-steplist-marker-label-gap: 10px;
|
172
|
+
--spectrum-steplist-marker-diameter: 8px;
|
173
|
+
--spectrum-steplist-counter-font-size: 0;
|
174
|
+
--spectrum-steplist-chevron-scale: .75;
|
175
|
+
--spectrum-steplist-segment-height-adjust: -4px;
|
176
|
+
}
|
177
|
+
|
178
|
+
.Y9ExmG_spectrum-Steplist--small .Y9ExmG_spectrum-Steplist-marker {
|
179
|
+
padding-top: 1px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.Y9ExmG_spectrum-Steplist--small.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-marker {
|
183
|
+
margin-top: 1px;
|
184
|
+
}
|
185
|
+
|
186
|
+
.Y9ExmG_spectrum-Steplist--small.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-chevron {
|
187
|
+
padding-top: 2px;
|
188
|
+
}
|
189
|
+
|
190
|
+
.Y9ExmG_spectrum-Steplist--medium {
|
191
|
+
--spectrum-steplist-font-size: var(--spectrum-global-dimension-font-size-100);
|
192
|
+
--spectrum-steplist-chevron-gap: 16px;
|
193
|
+
--spectrum-steplist-marker-label-gap: 12px;
|
194
|
+
--spectrum-steplist-marker-diameter: 16px;
|
195
|
+
--spectrum-steplist-counter-font-size: var(--spectrum-global-dimension-font-size-75);
|
196
|
+
--spectrum-steplist-chevron-scale: 1;
|
197
|
+
--spectrum-steplist-segment-height-adjust: 0px;
|
198
|
+
}
|
199
|
+
|
200
|
+
.Y9ExmG_spectrum-Steplist--large {
|
201
|
+
--spectrum-steplist-font-size: var(--spectrum-global-dimension-font-size-200);
|
202
|
+
--spectrum-steplist-chevron-gap: 20px;
|
203
|
+
--spectrum-steplist-marker-label-gap: 14px;
|
204
|
+
--spectrum-steplist-marker-diameter: 24px;
|
205
|
+
--spectrum-steplist-counter-font-size: var(--spectrum-global-dimension-font-size-100);
|
206
|
+
--spectrum-steplist-chevron-scale: 1.25;
|
207
|
+
--spectrum-steplist-segment-height-adjust: 6px;
|
208
|
+
}
|
209
|
+
|
210
|
+
.Y9ExmG_spectrum-Steplist--xlarge {
|
211
|
+
--spectrum-steplist-font-size: var(--spectrum-global-dimension-font-size-300);
|
212
|
+
--spectrum-steplist-chevron-gap: 24px;
|
213
|
+
--spectrum-steplist-marker-label-gap: 16px;
|
214
|
+
--spectrum-steplist-marker-diameter: 32px;
|
215
|
+
--spectrum-steplist-counter-font-size: var(--spectrum-global-dimension-font-size-200);
|
216
|
+
--spectrum-steplist-chevron-scale: 1.5;
|
217
|
+
--spectrum-steplist-segment-height-adjust: 6px;
|
218
|
+
}
|
219
|
+
|
220
|
+
.Y9ExmG_spectrum-Steplist-item:last-child .Y9ExmG_spectrum-Steplist-segment {
|
221
|
+
display: none;
|
222
|
+
}
|
223
|
+
|
224
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-link {
|
225
|
+
align-items: baseline;
|
226
|
+
display: flex;
|
227
|
+
}
|
228
|
+
|
229
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segment {
|
230
|
+
order: 2;
|
231
|
+
align-items: center;
|
232
|
+
padding-inline-start: calc(var(--spectrum-steplist-chevron-gap) - var(--spectrum-steplist-marker-label-gap));
|
233
|
+
display: flex;
|
234
|
+
}
|
235
|
+
|
236
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segment:before {
|
237
|
+
content: "*";
|
238
|
+
visibility: hidden;
|
239
|
+
width: 0;
|
240
|
+
}
|
241
|
+
|
242
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-chevron {
|
243
|
+
padding-top: 1px;
|
244
|
+
}
|
245
|
+
|
246
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-label {
|
247
|
+
order: 1;
|
248
|
+
}
|
249
|
+
|
250
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-markerWrapper {
|
251
|
+
flex: none;
|
252
|
+
order: 0;
|
253
|
+
align-items: center;
|
254
|
+
display: flex;
|
255
|
+
}
|
256
|
+
|
257
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-markerWrapper:before {
|
258
|
+
content: "*";
|
259
|
+
visibility: hidden;
|
260
|
+
width: 0;
|
261
|
+
}
|
262
|
+
|
263
|
+
.Y9ExmG_spectrum-Steplist--horizontal .Y9ExmG_spectrum-Steplist-segmentLine {
|
264
|
+
display: none;
|
265
|
+
}
|
266
|
+
|
267
|
+
.Y9ExmG_spectrum-Steplist--vertical {
|
268
|
+
flex-direction: column;
|
269
|
+
gap: 0 2px;
|
270
|
+
}
|
271
|
+
|
272
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-item {
|
273
|
+
display: unset;
|
274
|
+
list-style: none;
|
275
|
+
}
|
276
|
+
|
277
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-link {
|
278
|
+
grid-template: "Y9ExmG_marker Y9ExmG_label" minmax(16px, min-content)
|
279
|
+
"Y9ExmG_line Y9ExmG_label" 1fr
|
280
|
+
/ minmax(0, min-content) 1fr;
|
281
|
+
justify-items: start;
|
282
|
+
gap: 0 6px;
|
283
|
+
display: grid;
|
284
|
+
}
|
285
|
+
|
286
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-chevron {
|
287
|
+
display: none;
|
288
|
+
}
|
289
|
+
|
290
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-markerWrapper {
|
291
|
+
align-self: baseline;
|
292
|
+
align-items: center;
|
293
|
+
min-width: 0;
|
294
|
+
min-height: 0;
|
295
|
+
display: flex;
|
296
|
+
}
|
297
|
+
|
298
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-markerWrapper:before {
|
299
|
+
content: "*";
|
300
|
+
visibility: hidden;
|
301
|
+
width: 0;
|
302
|
+
}
|
303
|
+
|
304
|
+
.Y9ExmG_spectrum-Steplist--vertical.Y9ExmG_spectrum-Steplist--small .Y9ExmG_spectrum-Steplist-marker {
|
305
|
+
align-self: center;
|
306
|
+
}
|
307
|
+
|
308
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-label {
|
309
|
+
align-self: baseline;
|
310
|
+
min-width: 0;
|
311
|
+
min-height: 0;
|
312
|
+
line-height: 16px;
|
313
|
+
}
|
314
|
+
|
315
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment {
|
316
|
+
box-sizing: content-box;
|
317
|
+
pointer-events: none;
|
318
|
+
grid-area: Y9ExmG_line;
|
319
|
+
justify-self: center;
|
320
|
+
width: 2px;
|
321
|
+
min-width: 0;
|
322
|
+
min-height: 32px;
|
323
|
+
}
|
324
|
+
|
325
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-segmentLine {
|
326
|
+
height: calc(100% - var(--spectrum-steplist-segment-height-adjust));
|
327
|
+
width: 2px;
|
328
|
+
overflow: visible;
|
329
|
+
}
|
330
|
+
|
331
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-segmentLine line {
|
332
|
+
stroke-width: 2px;
|
333
|
+
stroke-dasharray: 6 4;
|
334
|
+
stroke-linecap: round;
|
335
|
+
}
|
336
|
+
|
337
|
+
.Y9ExmG_spectrum-Steplist--vertical .Y9ExmG_spectrum-Steplist-item:last-child .Y9ExmG_spectrum-Steplist-link {
|
338
|
+
grid-template-rows: minmax(16px, min-content);
|
339
|
+
grid-template-areas: "Y9ExmG_marker Y9ExmG_label";
|
340
|
+
}
|
341
|
+
|
342
|
+
.Y9ExmG_spectrum-Steplist {
|
343
|
+
--spectrum-steplist-complete-segment-color: var(--spectrum-global-color-gray-400);
|
344
|
+
--spectrum-steplist-complete-label-text-color: var(--spectrum-global-color-gray-700);
|
345
|
+
--spectrum-steplist-complete-marker-text-color: var(--spectrum-global-color-gray-50);
|
346
|
+
--spectrum-steplist-complete-marker-color: var(--spectrum-global-color-gray-600);
|
347
|
+
--spectrum-steplist-complete-marker-color-hover: var(--spectrum-global-color-gray-700);
|
348
|
+
--spectrum-steplist-current-label-text-color: var(--spectrum-global-color-gray-800);
|
349
|
+
--spectrum-steplist-current-marker-text-color: var(--spectrum-global-color-gray-50);
|
350
|
+
--spectrum-steplist-current-marker-color: var(--spectrum-global-color-gray-800);
|
351
|
+
--spectrum-steplist-incomplete-segment-color: var(--spectrum-global-color-gray-400);
|
352
|
+
--spectrum-steplist-incomplete-label-text-color: var(--spectrum-global-color-gray-600);
|
353
|
+
--spectrum-steplist-incomplete-marker-color: var(--spectrum-global-color-gray-400);
|
354
|
+
--spectrum-steplist-incomplete-marker-text-color: var(--spectrum-global-color-gray-500);
|
355
|
+
--spectrum-steplist-emphasized-current-label-text-color: var(--spectrum-accent-color-900);
|
356
|
+
--spectrum-steplist-emphasized-current-marker-color: var(--spectrum-accent-color-900);
|
357
|
+
--spectrum-steplist-disabled-complete-marker-color: var(--spectrum-global-color-gray-400);
|
358
|
+
--spectrum-steplist-disabled-complete-marker-text-color: var(--spectrum-global-color-gray-50);
|
359
|
+
--spectrum-steplist-disabled-complete-segment-color: var(--spectrum-global-color-gray-400);
|
360
|
+
--spectrum-steplist-disabled-complete-label-text-color: var(--spectrum-global-color-gray-500);
|
361
|
+
--spectrum-steplist-disabled-incomplete-marker-color: var(--spectrum-global-color-gray-300);
|
362
|
+
--spectrum-steplist-disabled-incomplete-marker-text-color: var(--spectrum-global-color-gray-400);
|
363
|
+
--spectrum-steplist-disabled-incomplete-segment-color: var(--spectrum-global-color-gray-400);
|
364
|
+
--spectrum-steplist-disabled-incomplete-label-text-color: var(--spectrum-global-color-gray-400);
|
365
|
+
}
|
366
|
+
|
367
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-label {
|
368
|
+
color: var(--spectrum-steplist-incomplete-label-text-color, var(--spectrum-global-color-gray-600));
|
369
|
+
}
|
370
|
+
|
371
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-marker {
|
372
|
+
border-color: var(--spectrum-steplist-incomplete-marker-color, var(--spectrum-global-color-gray-300));
|
373
|
+
color: var(--spectrum-steplist-incomplete-marker-text-color);
|
374
|
+
}
|
375
|
+
|
376
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron {
|
377
|
+
color: var(--spectrum-steplist-incomplete-segment-color, var(--spectrum-global-color-gray-300));
|
378
|
+
}
|
379
|
+
|
380
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-segment svg line {
|
381
|
+
stroke: var(--spectrum-steplist-incomplete-segment-color, var(--spectrum-global-color-gray-300));
|
382
|
+
}
|
383
|
+
|
384
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-label {
|
385
|
+
color: var(--spectrum-steplist-disabled-incomplete-label-text-color);
|
386
|
+
}
|
387
|
+
|
388
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker {
|
389
|
+
border-color: var(--spectrum-steplist-disabled-incomplete-marker-color);
|
390
|
+
color: var(--spectrum-steplist-disabled-incomplete-marker-text-color);
|
391
|
+
}
|
392
|
+
|
393
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron {
|
394
|
+
color: var(--spectrum-steplist-disabled-incomplete-segment-color);
|
395
|
+
}
|
396
|
+
|
397
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment svg line {
|
398
|
+
stroke: var(--spectrum-steplist-disabled-incomplete-segment-color);
|
399
|
+
}
|
400
|
+
|
401
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-label {
|
402
|
+
color: var(--spectrum-steplist-complete-label-text-color, var(--spectrum-global-color-gray-700));
|
403
|
+
}
|
404
|
+
|
405
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-marker {
|
406
|
+
background-color: var(--spectrum-steplist-complete-marker-color, var(--spectrum-global-color-gray-600));
|
407
|
+
border-color: var(--spectrum-steplist-complete-marker-color, var(--spectrum-global-color-gray-600));
|
408
|
+
color: var(--spectrum-steplist-complete-marker-text-color);
|
409
|
+
}
|
410
|
+
|
411
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron {
|
412
|
+
color: var(--spectrum-steplist-complete-segment-color, var(--spectrum-global-color-gray-500));
|
413
|
+
}
|
414
|
+
|
415
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed .Y9ExmG_spectrum-Steplist-segment svg line {
|
416
|
+
stroke: var(--spectrum-steplist-complete-segment-color, var(--spectrum-global-color-gray-500));
|
417
|
+
}
|
418
|
+
|
419
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-hovered .Y9ExmG_spectrum-Steplist-marker {
|
420
|
+
background-color: var(--spectrum-steplist-complete-marker-color-hover, var(--spectrum-global-color-gray-700));
|
421
|
+
border-color: var(--spectrum-steplist-complete-marker-color-hover, var(--spectrum-global-color-gray-700));
|
422
|
+
}
|
423
|
+
|
424
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-label {
|
425
|
+
color: var(--spectrum-steplist-disabled-complete-label-text-color);
|
426
|
+
}
|
427
|
+
|
428
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker {
|
429
|
+
background-color: var(--spectrum-steplist-disabled-complete-marker-color);
|
430
|
+
border-color: var(--spectrum-steplist-disabled-complete-marker-color);
|
431
|
+
color: var(--spectrum-steplist-disabled-complete-marker-text-color);
|
432
|
+
}
|
433
|
+
|
434
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron {
|
435
|
+
color: var(--spectrum-steplist-disabled-complete-segment-color);
|
436
|
+
}
|
437
|
+
|
438
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-completed.Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-segment svg line {
|
439
|
+
stroke: var(--spectrum-steplist-disabled-complete-segment-color);
|
440
|
+
}
|
441
|
+
|
442
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-label {
|
443
|
+
color: var(--spectrum-steplist-current-label-text-color, var(--spectrum-global-color-gray-800));
|
444
|
+
}
|
445
|
+
|
446
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-marker {
|
447
|
+
background-color: var(--spectrum-steplist-current-marker-color, var(--spectrum-global-color-gray-800));
|
448
|
+
border-color: var(--spectrum-steplist-current-marker-color, var(--spectrum-global-color-gray-800));
|
449
|
+
color: var(--spectrum-steplist-current-marker-text-color);
|
450
|
+
}
|
451
|
+
|
452
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-segment .Y9ExmG_spectrum-Steplist-chevron {
|
453
|
+
color: var(--spectrum-steplist-complete-segment-color, var(--spectrum-global-color-gray-500));
|
454
|
+
}
|
455
|
+
|
456
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_is-selected .Y9ExmG_spectrum-Steplist-segment svg line {
|
457
|
+
stroke: var(--spectrum-steplist-complete-segment-color, var(--spectrum-global-color-gray-500));
|
458
|
+
}
|
459
|
+
|
460
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link.Y9ExmG_focus-ring .Y9ExmG_spectrum-Steplist-marker {
|
461
|
+
outline: solid 2px var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
|
462
|
+
outline-offset: 2px;
|
463
|
+
}
|
464
|
+
|
465
|
+
.Y9ExmG_spectrum-Steplist--medium .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link:not(.Y9ExmG_is-completed):not(.Y9ExmG_is-selected) .Y9ExmG_spectrum-Steplist-marker {
|
466
|
+
color: #0000;
|
467
|
+
}
|
468
|
+
|
469
|
+
.Y9ExmG_spectrum-Steplist--medium .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link:not(.Y9ExmG_is-completed):not(.Y9ExmG_is-selected).Y9ExmG_is-disabled .Y9ExmG_spectrum-Steplist-marker {
|
470
|
+
color: #0000;
|
471
|
+
}
|
472
|
+
|
473
|
+
.Y9ExmG_spectrum-Steplist--emphasized {
|
474
|
+
--spectrum-steplist-current-label-text-color: var(--spectrum-steplist-emphasized-current-label-text-color);
|
475
|
+
--spectrum-steplist-current-marker-color: var(--spectrum-steplist-emphasized-current-marker-color);
|
476
|
+
}
|
477
|
+
|
478
|
+
@media (forced-colors: active) {
|
479
|
+
.Y9ExmG_spectrum-Steplist {
|
480
|
+
forced-color-adjust: none;
|
481
|
+
--spectrum-steplist-complete-segment-color: CanvasText;
|
482
|
+
--spectrum-steplist-complete-label-text-color: LinkText;
|
483
|
+
--spectrum-steplist-complete-marker-text-color: Canvas;
|
484
|
+
--spectrum-steplist-complete-marker-color: LinkText;
|
485
|
+
--spectrum-steplist-complete-marker-color-hover: LinkText;
|
486
|
+
--spectrum-steplist-current-label-text-color: Highlight;
|
487
|
+
--spectrum-steplist-current-marker-text-color: Canvas;
|
488
|
+
--spectrum-steplist-current-marker-color: Highlight;
|
489
|
+
--spectrum-steplist-incomplete-segment-color: CanvasText;
|
490
|
+
--spectrum-steplist-incomplete-label-text-color: ButtonText;
|
491
|
+
--spectrum-steplist-incomplete-marker-color: ButtonText;
|
492
|
+
--spectrum-steplist-incomplete-marker-text-color: ButtonText;
|
493
|
+
--spectrum-steplist-emphasized-current-label-text-color: CanvasText;
|
494
|
+
--spectrum-steplist-emphasized-current-marker-color: ButtonText;
|
495
|
+
--spectrum-steplist-disabled-complete-marker-color: GrayText;
|
496
|
+
--spectrum-steplist-disabled-complete-marker-text-color: Canvas;
|
497
|
+
--spectrum-steplist-disabled-complete-segment-color: CanvasText;
|
498
|
+
--spectrum-steplist-disabled-complete-label-text-color: GrayText;
|
499
|
+
--spectrum-steplist-disabled-incomplete-marker-color: GrayText;
|
500
|
+
--spectrum-steplist-disabled-incomplete-marker-text-color: ButtonText;
|
501
|
+
--spectrum-steplist-disabled-incomplete-segment-color: CanvasText;
|
502
|
+
--spectrum-steplist-disabled-incomplete-label-text-color: GrayText;
|
503
|
+
--spectrum-high-contrast-focus-ring-color: ButtonText;
|
504
|
+
}
|
505
|
+
|
506
|
+
.Y9ExmG_spectrum-Steplist .Y9ExmG_spectrum-Steplist-item .Y9ExmG_spectrum-Steplist-link .Y9ExmG_spectrum-Steplist-marker {
|
507
|
+
border-style: solid;
|
508
|
+
border-width: 2px;
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
/*# sourceMappingURL=main.css.map */
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;;;;AAiBF;;;AAII;;;;;AAQF;;;;AAKE;;;;;AAOJ;;;;;;;AAOA;;;;;AAIE;;;;;AAKI;;;;AAOF;;;;AAMJ;;;;;;;AAME;;;;AAGA;;;;;;;;;;;;AAWA;;;;AAME;;;;;AAQD;;;;;AAOC;;;;;AAOJ;;;;;AAIE;;;;AAGE;;;;;;;AAOF;;;;AAOF;;;;;;;;;;AAQE;;;;AAKE;;;;AAIA;;;;AAQJ;;;;;;;;;;AAYA;;;;;;;;;;AAYA;;;;;;;;;;AAaE;;;;AASA;;;;;AAKA;;;;;;;AAME;;;;;;AAOF;;;;AAKA;;;;AAIA;;;;;;;AAKE;;;;;;AAOF;;;;AAOF;;;;;AAKE;;;;;AAIA;;;;;;;;;AAUA;;;;AAGA;;;;;;;;AAME;;;;;;AAOA;;;;AAIF;;;;;;;AAOA;;;;;;;;;;AASE;;;;;;AAQE;;;;;;AAUF;;;;;AAmBJ;;;;;;;;;;;;;;;;;;;;;;;;;AAgCE;;;;AAKA;;;;;AAOE;;;;AAGA;;;;AAQI;;;;AAIA;;;;;AAME;;;;AAGA;;;;AAQF;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAMA;;;;;AAOA;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AASJ;;;;AAIA;;;;;;AAOE;;;;AAGA;;;;AAOF;;;;;AAcF;;;;AAIA;;;;AAON;;;;;AAKA;EACE;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCM","sources":["packages/@adobe/spectrum-css-temp/components/steplist/vars.css"],"sourcesContent":["/*\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.css.map"}
|
package/dist/main.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
require("./main.css");
|
2
4
|
var $5XIpf$reactstatelycollections = require("@react-stately/collections");
|
3
5
|
var $5XIpf$reactariasteplist = require("@react-aria/steplist");
|
@@ -189,7 +191,7 @@ $390add5aac6e4d73$export$f92a1d2b4a328a95 = `Y9ExmG_spectrum-Steplist-segmentLin
|
|
189
191
|
function $d2e2cd0667356b5d$export$87c2a8a94eda1754(props) {
|
190
192
|
let { isDisabled: isDisabled, item: item } = props;
|
191
193
|
let { key: key } = item;
|
192
|
-
let ref = (0, $5XIpf$react.useRef)();
|
194
|
+
let ref = (0, $5XIpf$react.useRef)(null);
|
193
195
|
let { direction: direction } = (0, $5XIpf$reactariai18n.useLocale)();
|
194
196
|
let state = (0, $5XIpf$react.useContext)((0, $b9b57d2de2195519$export$66136572efa4af6e));
|
195
197
|
const isSelected = state.selectedKey === key;
|
@@ -204,7 +206,7 @@ function $d2e2cd0667356b5d$export$87c2a8a94eda1754(props) {
|
|
204
206
|
isDisabled: isItemDisabled || isSelected || props.isReadOnly
|
205
207
|
});
|
206
208
|
let stepStateText = "";
|
207
|
-
const stringFormatter = (0, $5XIpf$reactariai18n.useLocalizedStringFormatter)((0, $fed92386245d94a4$export$2e2bcd8739ae039));
|
209
|
+
const stringFormatter = (0, $5XIpf$reactariai18n.useLocalizedStringFormatter)((0, $fed92386245d94a4$export$2e2bcd8739ae039), "@react-spectrum/steplist");
|
208
210
|
const numberFormatter = (0, $5XIpf$reactariai18n.useNumberFormatter)();
|
209
211
|
if (isSelected) stepStateText = stringFormatter.format("current");
|
210
212
|
else if (isCompleted) stepStateText = stringFormatter.format("completed");
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;ACVD;;;;;;;;;;CAUC;AAKM,MAAM,4CAAkB,CAAA,GAAA,sCAAI,EAAE,aAAa,CAAyB;;;ACf3E;;;;;;;;;;CAUC;;;;AEVD,4BAAiB;IAAG,aAAa,CAAC,WAAW,CAAC;IAC5C,gBAAgB,CAAC,eAAe,CAAC;IACjC,WAAW,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,SAAS,CAAC;AACzB;;;IDFA,2CAAe;IACb,SAAS,CAAA,GAAA,gEAAG;AACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEJA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA5BA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAiC,CAAC,mBAAmB,CAAC;AACtD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA0B,CAAC,YAAY,CAAC;AACxC,2CAAyB,CAAC,WAAW,CAAC;AACtC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4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,iCAAiC;YACjC,iCAAiC,gBAAgB;YACjD,+BAA+B,gBAAgB;QACjD;qBACA,0DAAC,CAAA,GAAA,yCAAc,EAAE,QAAQ;QAAC,OAAO;OAC9B;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAC,qBAC1B,0DAAC,CAAA,GAAA,yCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB;AAEA,MAAM,0DAAY,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","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);\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();\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);\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;ACZ1C;;;;;;;;;;CAUC;;;ACVD;;;;;;;;;;CAUC;AAKM,MAAM,4CAAkB,CAAA,GAAA,sCAAI,EAAE,aAAa,CAAgC;;;ACflF;;;;;;;;;;CAUC;;;;AEVD,4BAAiB;IAAG,aAAa,CAAC,WAAW,CAAC;IAC5C,gBAAgB,CAAC,eAAe,CAAC;IACjC,WAAW,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,SAAS,CAAC;AACzB;;;IDFA,2CAAe;IACb,SAAS,CAAA,GAAA,gEAAG;AACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEJA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA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6B;IAChG,MAAM,QAAC,OAAO,kBAAK,cAAc,cAAa,GAAG;IACjD,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,MAAM,cAAC,UAAU,gBAAE,YAAY,EAAC,GAAG;IACnC,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,QAAQ,CAAA,GAAA,4CAAe,EAAE;IAC7B,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,oCAAU,EAAE,OAAO,OAAO;IAG5C,qBACE,0DAAC;QACE,GAAG,SAAS;QACZ,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAK,GAAG,qBAAqB,WAAW,SAAS,EAAE;YACvE,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,iCAAiC;YACjC,iCAAiC,gBAAgB;YACjD,+BAA+B,gBAAgB;QACjD;qBACA,0DAAC,CAAA,GAAA,yCAAc,EAAE,QAAQ;QAAC,OAAO;OAC9B;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAC,qBAC1B,0DAAC,CAAA,GAAA,yCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB;AAEA,MAAM,0DAAY,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","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"}
|
package/dist/module.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
"use client";
|
2
|
+
|
1
3
|
import "./main.css";
|
2
4
|
import {Item as $6f77c10bf951cb4f$re_export$Item} from "@react-stately/collections";
|
3
5
|
import {useStepList as $gZOFb$useStepList, useStepListItem as $gZOFb$useStepListItem} from "@react-aria/steplist";
|
@@ -186,7 +188,7 @@ $b2477f17b7c66618$export$f92a1d2b4a328a95 = `Y9ExmG_spectrum-Steplist-segmentLin
|
|
186
188
|
function $24c3cb1adfb0acc5$export$87c2a8a94eda1754(props) {
|
187
189
|
let { isDisabled: isDisabled, item: item } = props;
|
188
190
|
let { key: key } = item;
|
189
|
-
let ref = (0, $gZOFb$useRef)();
|
191
|
+
let ref = (0, $gZOFb$useRef)(null);
|
190
192
|
let { direction: direction } = (0, $gZOFb$useLocale)();
|
191
193
|
let state = (0, $gZOFb$useContext)((0, $739a883ac33f90d8$export$66136572efa4af6e));
|
192
194
|
const isSelected = state.selectedKey === key;
|
@@ -201,7 +203,7 @@ function $24c3cb1adfb0acc5$export$87c2a8a94eda1754(props) {
|
|
201
203
|
isDisabled: isItemDisabled || isSelected || props.isReadOnly
|
202
204
|
});
|
203
205
|
let stepStateText = "";
|
204
|
-
const stringFormatter = (0, $gZOFb$useLocalizedStringFormatter)((0, $62132693388ec24a$export$2e2bcd8739ae039));
|
206
|
+
const stringFormatter = (0, $gZOFb$useLocalizedStringFormatter)((0, $62132693388ec24a$export$2e2bcd8739ae039), "@react-spectrum/steplist");
|
205
207
|
const numberFormatter = (0, $gZOFb$useNumberFormatter)();
|
206
208
|
if (isSelected) stepStateText = stringFormatter.format("current");
|
207
209
|
else if (isCompleted) stepStateText = stringFormatter.format("completed");
|
package/dist/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CA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CAAC,CAAA,GAAA,yCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB;AAEA,MAAM,0DAAY,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;","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);\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();\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);\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":"module.js.map"}
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;ACVD;;;;;;;;;;CAUC;AAKM,MAAM,4CAAkB,CAAA,GAAA,YAAI,EAAE,aAAa,CAAgC;;;ACflF;;;;;;;;;;CAUC;;;;AEVD,4BAAiB;IAAG,aAAa,CAAC,WAAW,CAAC;IAC5C,gBAAgB,CAAC,eAAe,CAAC;IACjC,WAAW,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,SAAS,CAAC;AACzB;;;IDFA,2CAAe;IACb,SAAS,CAAA,GAAA,gEAAG;AACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEJA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;A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AAQ,EAAE;IAEvB,IAAI,QAAQ,CAAA,GAAA,uBAAe,EAAE;IAC7B,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,kBAAU,EAAE,OAAO,OAAO;IAG5C,qBACE,gCAAC;QACE,GAAG,SAAS;QACZ,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,gEAAK,GAAG,qBAAqB,WAAW,SAAS,EAAE;YACvE,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,4BAA4B,SAAS;YACrC,6BAA6B,SAAS;YACtC,iCAAiC;YACjC,iCAAiC,gBAAgB;YACjD,+BAA+B,gBAAgB;QACjD;qBACA,gCAAC,CAAA,GAAA,yCAAc,EAAE,QAAQ;QAAC,OAAO;OAC9B;WAAI,MAAM,UAAU;KAAC,CAAC,GAAG,CAAC,CAAC,qBAC1B,gCAAC,CAAA,GAAA,yCAAW;YACV,KAAK,KAAK,GAAG;YACb,YAAY;YACZ,MAAM;;AAMlB;AAEA,MAAM,0DAAY,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;","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":"module.js.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/steplist",
|
3
|
-
"version": "3.0.0-nightly.
|
3
|
+
"version": "3.0.0-nightly.4380+86b38c878",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,21 +36,21 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/focus": "3.0.0-nightly.
|
40
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
41
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
42
|
-
"@react-aria/steplist": "3.0.0-nightly.
|
43
|
-
"@react-aria/utils": "3.0.0-nightly.
|
44
|
-
"@react-aria/visually-hidden": "3.0.0-nightly.
|
45
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
46
|
-
"@react-stately/collections": "3.0.0-nightly.
|
47
|
-
"@react-stately/steplist": "3.0.0-nightly.
|
48
|
-
"@react-types/shared": "3.0.0-nightly.
|
49
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
39
|
+
"@react-aria/focus": "3.0.0-nightly.2668+86b38c878",
|
40
|
+
"@react-aria/i18n": "3.0.0-nightly.2668+86b38c878",
|
41
|
+
"@react-aria/interactions": "3.0.0-nightly.2668+86b38c878",
|
42
|
+
"@react-aria/steplist": "3.0.0-nightly.4380+86b38c878",
|
43
|
+
"@react-aria/utils": "3.0.0-nightly.2668+86b38c878",
|
44
|
+
"@react-aria/visually-hidden": "3.0.0-nightly.2668+86b38c878",
|
45
|
+
"@react-spectrum/utils": "3.0.0-nightly.2668+86b38c878",
|
46
|
+
"@react-stately/collections": "3.0.0-nightly.2668+86b38c878",
|
47
|
+
"@react-stately/steplist": "3.0.0-nightly.4380+86b38c878",
|
48
|
+
"@react-types/shared": "3.0.0-nightly.2668+86b38c878",
|
49
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2668+86b38c878",
|
50
50
|
"@swc/helpers": "^0.5.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
53
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2668+86b38c878"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
56
|
"@react-spectrum/provider": "^3.0.0",
|
@@ -60,5 +60,5 @@
|
|
60
60
|
"publishConfig": {
|
61
61
|
"access": "public"
|
62
62
|
},
|
63
|
-
"gitHead": "
|
63
|
+
"gitHead": "86b38c87868ce7f262e0df905e5ac4eb2653791d"
|
64
64
|
}
|
package/src/StepListContext.ts
CHANGED
package/src/StepListItem.tsx
CHANGED
@@ -37,9 +37,9 @@ export function StepListItem<T>(props: SpectrumStepListItemProps<T>) {
|
|
37
37
|
} = props;
|
38
38
|
let {key} = item;
|
39
39
|
|
40
|
-
let ref = useRef();
|
40
|
+
let ref = useRef(null);
|
41
41
|
let {direction} = useLocale();
|
42
|
-
let state = useContext(StepListContext)
|
42
|
+
let state = useContext(StepListContext)!;
|
43
43
|
const isSelected = state.selectedKey === key;
|
44
44
|
const isCompleted = state.isCompleted(key);
|
45
45
|
const isItemDisabled = isDisabled || state.disabledKeys.has(key);
|
@@ -49,7 +49,7 @@ export function StepListItem<T>(props: SpectrumStepListItemProps<T>) {
|
|
49
49
|
|
50
50
|
|
51
51
|
let stepStateText = '';
|
52
|
-
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
52
|
+
const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/steplist');
|
53
53
|
const numberFormatter = useNumberFormatter();
|
54
54
|
|
55
55
|
if (isSelected) {
|