@salutejs/plasma-new-hope 0.192.1-canary.1525.11803660289.0 → 0.192.2-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Steps/Steps.css +10 -10
- package/cjs/components/Steps/Steps.js +21 -14
- package/cjs/components/Steps/Steps.js.map +1 -1
- package/cjs/components/Steps/Steps.styles.js +1 -1
- package/cjs/components/Steps/Steps.styles.js.map +1 -1
- package/cjs/components/Steps/{Steps.styles_1xmqxqu.css → Steps.styles_wa45kj.css} +1 -1
- package/cjs/components/Steps/Steps.tokens.js +1 -0
- package/cjs/components/Steps/Steps.tokens.js.map +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
- package/cjs/components/Steps/ui/StepItem/StepItem.js +32 -8
- package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles_acxstj.css +9 -0
- package/cjs/index.css +11 -11
- package/emotion/cjs/components/Steps/Steps.js +23 -14
- package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
- package/emotion/cjs/components/Steps/Steps.tokens.js +1 -0
- package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +32 -8
- package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +22 -11
- package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
- package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +5 -5
- package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/es/components/Steps/Steps.js +24 -15
- package/emotion/es/components/Steps/Steps.styles.js +1 -1
- package/emotion/es/components/Steps/Steps.tokens.js +1 -0
- package/emotion/es/components/Steps/ui/StepItem/StepItem.js +32 -8
- package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +22 -11
- package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +5 -5
- package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +5 -5
- package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/es/components/Steps/Steps.css +10 -10
- package/es/components/Steps/Steps.js +23 -16
- package/es/components/Steps/Steps.js.map +1 -1
- package/es/components/Steps/Steps.styles.js +1 -1
- package/es/components/Steps/Steps.styles.js.map +1 -1
- package/es/components/Steps/{Steps.styles_1xmqxqu.css → Steps.styles_wa45kj.css} +1 -1
- package/es/components/Steps/Steps.tokens.js +1 -0
- package/es/components/Steps/Steps.tokens.js.map +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
- package/es/components/Steps/ui/StepItem/StepItem.js +33 -9
- package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js +6 -6
- package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles_acxstj.css +9 -0
- package/es/index.css +11 -11
- package/package.json +2 -2
- package/styled-components/cjs/components/Steps/Steps.js +23 -14
- package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
- package/styled-components/cjs/components/Steps/Steps.tokens.js +1 -0
- package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +32 -8
- package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +17 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/es/components/Steps/Steps.js +24 -15
- package/styled-components/es/components/Steps/Steps.styles.js +1 -1
- package/styled-components/es/components/Steps/Steps.tokens.js +1 -0
- package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +32 -8
- package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +17 -6
- package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/types/components/Steps/Steps.d.ts.map +1 -1
- package/types/components/Steps/Steps.styles.d.ts.map +1 -1
- package/types/components/Steps/Steps.tokens.d.ts +1 -0
- package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
- package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
- package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +2 -2
- package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
- package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +0 -9
@@ -5,14 +5,14 @@
|
|
5
5
|
.Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
|
6
6
|
.Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
|
7
7
|
|
8
|
-
.
|
9
|
-
.
|
10
|
-
.
|
11
|
-
.
|
12
|
-
.
|
13
|
-
.
|
14
|
-
.
|
15
|
-
.
|
16
|
-
.StepItem_styles_sp9rcd_s12pqpa3__20446152{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_verticalOrientation__20446152{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_verticalOrientation__20446152 .StepItem_styles_sp9rcd_sxskc3q__20446152{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemActive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_sv5tpso__20446152{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_b9hdug__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_b1eo1o32__20446152{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_b9hdug__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_b1eo1o32__20446152{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152 .StepItem_styles_sp9rcd_b1kcj14__20446152{cursor:pointer;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{width:100%;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_s529fhk__20446152{padding-right:0;text-align:center;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_simple__20446152{-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemDisabled__20446152{opacity:var(--plasma-step-item-disabled-opacity);}
|
8
|
+
.StepItem_styles_acxstj_snf9dn9__065935cf{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
|
9
|
+
.StepItem_styles_acxstj_sv5tpso__065935cf{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
|
10
|
+
.StepItem_styles_acxstj_s529fhk__065935cf{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
|
11
|
+
.StepItem_styles_acxstj_b1kcj14__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf).StepItem_styles_acxstj_itemHasIndicator__065935cf{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf{padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf{-webkit-flex:0;-ms-flex:0;flex:0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{min-width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){min-width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_itemCentered__065935cf{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
12
|
+
.StepItem_styles_acxstj_b9hdug__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;outline:none;padding:0;margin:0;border:none;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);position:relative;}.StepItem_styles_acxstj_b9hdug__065935cf::before{content:'';position:absolute;top:-0.0625rem;left:-0.0625rem;right:-0.0625rem;bottom:-0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_focusVisible__065935cf:focus::before,.StepItem_styles_acxstj_b9hdug__065935cf[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-step-item-focus-color);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);position:relative;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf::before{content:'';position:absolute;top:-0.1875rem;left:-0.1875rem;right:-0.1875rem;bottom:-0.1875rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf.StepItem_styles_acxstj_focusVisible__065935cf:focus::before,.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-step-item-focus-color);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_simple__065935cf:before,.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_simple__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);}
|
13
|
+
.StepItem_styles_acxstj_b1eo1o32__065935cf.StepItem_styles_acxstj_b9hdug__065935cf{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_acxstj_b1eo1o32__065935cf.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background:var(--plasma-step-item-active-indicator-background);}
|
14
|
+
.StepItem_styles_acxstj_sxskc3q__065935cf{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf{opacity:var(--plasma-step-item-disabled-opacity);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf{background:transparent;}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_indentDivider__065935cf{height:var(--sxskc3q-0);min-height:var(--sxskc3q-0);max-height:var(--sxskc3q-0);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_indentDivider__065935cf.StepItem_styles_acxstj_simple__065935cf{height:auto;max-height:none;}
|
15
|
+
.StepItem_styles_acxstj_s4zgmmr__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_acxstj_s4zgmmr__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_s529fhk__065935cf{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
|
16
|
+
.StepItem_styles_acxstj_s12pqpa3__065935cf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_sxskc3q__065935cf{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemActive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{color:var(--plasma-step-item-inactive-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf{-webkit-flex:0;-ms-flex:0;flex:0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{min-width:var(--plasma-step-item-active-indicator-size);min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:var(--plasma-step-item-active-bullet-size);min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):after{content:'';display:block;width:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);height:var(--plasma-step-item-divider-thickness);background:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after{width:calc((var(--plasma-step-item-active-bullet-size) - var(--plasma-step-item-bullet-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:after{width:var(--plasma-step-item-divider-thickness);height:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);margin:0 auto;-webkit-align-self:auto;-ms-flex-item-align:auto;align-self:auto;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after{height:calc((var(--plasma-step-item-active-bullet-size) - var(--plasma-step-item-bullet-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:after{margin:0 auto;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_isFirst__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_isFirst__065935cf:before{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_isLast__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_isLast__065935cf:after{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:before{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_isPrevInactive__065935cf:before{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_isNextInactive__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);opacity:1;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf:after{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_verticalOrientation__065935cf).StepItem_styles_acxstj_isNextActive__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{width:calc(100% - (var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_verticalOrientation__065935cf).StepItem_styles_acxstj_itemActive__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{margin-left:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / -2);width:calc(100% + (var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_sv5tpso__065935cf{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_b9hdug__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_b1eo1o32__065935cf{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_b9hdug__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_b1eo1o32__065935cf{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{cursor:pointer;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{width:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_s529fhk__065935cf{padding-right:0;text-align:center;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf{opacity:var(--plasma-step-item-disabled-opacity);}
|
17
17
|
|
18
|
-
.
|
18
|
+
.Steps_styles_wa45kj_b7q3upx__4cedcb88{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88:not(.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88.Steps_styles_wa45kj_verticalOrientation__4cedcb88).Steps_styles_wa45kj_itemHasIndicator__4cedcb88{height:var(--plasma-step-item-active-indicator-size);}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88:not(.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88.Steps_styles_wa45kj_verticalOrientation__4cedcb88):not(.Steps_styles_wa45kj_itemHasIndicator__4cedcb88){height:var(--plasma-step-item-active-bullet-size);}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88.Steps_styles_wa45kj_verticalOrientation__4cedcb88.Steps_styles_wa45kj_itemHasIndicator__4cedcb88{width:var(--plasma-step-item-active-indicator-size);}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_simple__4cedcb88.Steps_styles_wa45kj_verticalOrientation__4cedcb88:not(.Steps_styles_wa45kj_itemHasIndicator__4cedcb88){width:var(--plasma-step-item-active-bullet-size);}.Steps_styles_wa45kj_b7q3upx__4cedcb88.Steps_styles_wa45kj_verticalOrientation__4cedcb88{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
-
import React, { forwardRef, useState, useEffect } from 'react';
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { forwardRef, useState, useMemo, useEffect } from 'react';
|
3
3
|
import cls from 'classnames';
|
4
4
|
import { classes } from './Steps.tokens.js';
|
5
5
|
import { base } from './Steps.styles.js';
|
@@ -33,19 +33,33 @@ var stepsRoot = function stepsRoot(Root) {
|
|
33
33
|
_useState2 = _slicedToArray(_useState, 2),
|
34
34
|
prevIndex = _useState2[0],
|
35
35
|
setPrevIndex = _useState2[1];
|
36
|
-
var isUncontrolled = current !== undefined;
|
37
36
|
var hasIndicator = items.some(function (item) {
|
38
37
|
return item.indicator != null;
|
39
38
|
});
|
40
39
|
var isSimple = items.every(function (item) {
|
41
40
|
return !item.title && !item.content;
|
42
41
|
});
|
42
|
+
var innerItems = useMemo(function () {
|
43
|
+
var isUncontrolled = current !== undefined;
|
44
|
+
return items.map(function (item, index) {
|
45
|
+
var itemStatus = getItemStatus({
|
46
|
+
isUncontrolled: isUncontrolled,
|
47
|
+
current: current,
|
48
|
+
status: status,
|
49
|
+
index: index,
|
50
|
+
item: item
|
51
|
+
});
|
52
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
53
|
+
status: itemStatus
|
54
|
+
});
|
55
|
+
});
|
56
|
+
}, [status, current, items]);
|
43
57
|
useEffect(function () {
|
44
58
|
var calcPrevIndex = function calcPrevIndex() {
|
45
59
|
if (current !== undefined) {
|
46
60
|
setPrevIndex(current);
|
47
61
|
} else {
|
48
|
-
var index =
|
62
|
+
var index = innerItems.findIndex(function (item) {
|
49
63
|
return item.status === 'active';
|
50
64
|
});
|
51
65
|
setPrevIndex(index !== -1 ? index : undefined);
|
@@ -55,21 +69,14 @@ var stepsRoot = function stepsRoot(Root) {
|
|
55
69
|
return function () {
|
56
70
|
calcPrevIndex();
|
57
71
|
};
|
58
|
-
}, [current,
|
72
|
+
}, [current, innerItems]);
|
59
73
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
60
74
|
size: size,
|
61
75
|
view: view,
|
62
76
|
ref: outerRef,
|
63
77
|
className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, orientation === 'vertical'), classes.simple, isSimple), classes.hasIndicator, hasIndicator))
|
64
|
-
}, rest),
|
65
|
-
var
|
66
|
-
isUncontrolled: isUncontrolled,
|
67
|
-
current: current,
|
68
|
-
status: status,
|
69
|
-
index: index,
|
70
|
-
item: item
|
71
|
-
});
|
72
|
-
var isActive = itemStatus === 'active';
|
78
|
+
}, rest), innerItems.map(function (item, index) {
|
79
|
+
var isActive = item.status === 'active';
|
73
80
|
var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
|
74
81
|
var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
|
75
82
|
var onClick = onChange ? function () {
|
@@ -81,14 +88,14 @@ var stepsRoot = function stepsRoot(Root) {
|
|
81
88
|
title: item.title,
|
82
89
|
content: itemContent,
|
83
90
|
indicator: item.indicator,
|
84
|
-
status:
|
91
|
+
status: item.status,
|
85
92
|
size: size,
|
86
93
|
orientation: orientation,
|
87
94
|
contentAlign: itemContentAlign,
|
88
95
|
hasLine: hasLine,
|
89
96
|
hasLoader: hasLoader && isActive,
|
90
97
|
onClick: onClick,
|
91
|
-
items:
|
98
|
+
items: innerItems
|
92
99
|
});
|
93
100
|
}));
|
94
101
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Steps.js","sources":["../../../src/components/Steps/Steps.tsx"],"sourcesContent":["import React, { forwardRef, useState, useEffect, HTMLAttributes } from 'react';\nimport cls from 'classnames';\n\nimport type { RootPropsOmitOnChange } from '../../engines/types';\n\nimport { classes } from './Steps.tokens';\nimport { StepsProps as BaseStepsProps } from './Steps.types';\nimport { StepItem } from './ui';\nimport { base } from './Steps.styles';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { getItemStatus } from './utils/getItemStatus';\n\ntype StepsProps = BaseStepsProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;\n\nexport const stepsRoot = (Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps>) =>\n forwardRef<HTMLDivElement, StepsProps>((props, outerRef) => {\n const {\n view = 'default',\n size,\n orientation = 'horizontal',\n contentAlign = 'left',\n hasLine = true,\n hasContent = 'all',\n hasLoader,\n items = [],\n onChange,\n current,\n status,\n ...rest\n } = props;\n\n const [prevIndex, setPrevIndex] = useState<number | undefined>();\n\n const
|
1
|
+
{"version":3,"file":"Steps.js","sources":["../../../src/components/Steps/Steps.tsx"],"sourcesContent":["import React, { forwardRef, useState, useEffect, HTMLAttributes, useMemo } from 'react';\nimport cls from 'classnames';\n\nimport type { RootPropsOmitOnChange } from '../../engines/types';\n\nimport { classes } from './Steps.tokens';\nimport { StepsProps as BaseStepsProps } from './Steps.types';\nimport { StepItem } from './ui';\nimport { base } from './Steps.styles';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { getItemStatus } from './utils/getItemStatus';\n\ntype StepsProps = BaseStepsProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;\n\nexport const stepsRoot = (Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps>) =>\n forwardRef<HTMLDivElement, StepsProps>((props, outerRef) => {\n const {\n view = 'default',\n size,\n orientation = 'horizontal',\n contentAlign = 'left',\n hasLine = true,\n hasContent = 'all',\n hasLoader,\n items = [],\n onChange,\n current,\n status,\n ...rest\n } = props;\n\n const [prevIndex, setPrevIndex] = useState<number | undefined>();\n\n const hasIndicator = items.some((item) => item.indicator != null);\n const isSimple = items.every((item) => !item.title && !item.content);\n\n const innerItems = useMemo(() => {\n const isUncontrolled = current !== undefined;\n\n return items.map((item, index) => {\n const itemStatus = getItemStatus({\n isUncontrolled,\n current,\n status,\n index,\n item,\n });\n\n return {\n ...item,\n status: itemStatus,\n };\n });\n }, [status, current, items]);\n\n useEffect(() => {\n const calcPrevIndex = () => {\n if (current !== undefined) {\n setPrevIndex(current);\n } else {\n const index = innerItems.findIndex((item) => item.status === 'active');\n setPrevIndex(index !== -1 ? index : undefined);\n }\n };\n\n calcPrevIndex();\n\n return () => {\n calcPrevIndex();\n };\n }, [current, innerItems]);\n\n return (\n <Root\n size={size}\n view={view}\n ref={outerRef}\n className={cls({\n [classes.verticalOrientation]: orientation === 'vertical',\n [classes.simple]: isSimple,\n [classes.hasIndicator]: hasIndicator,\n })}\n {...rest}\n >\n {innerItems.map((item, index) => {\n const isActive = item.status === 'active';\n\n const itemContent =\n (hasContent === 'active' && !isActive) || hasContent === 'none' ? '' : item.content;\n\n const itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';\n const onClick = onChange ? () => onChange(item, index, prevIndex) : undefined;\n\n return (\n <StepItem\n key={index}\n index={index}\n title={item.title}\n content={itemContent}\n indicator={item.indicator}\n status={item.status}\n size={size!}\n orientation={orientation}\n contentAlign={itemContentAlign}\n hasLine={hasLine}\n hasLoader={hasLoader && isActive}\n onClick={onClick}\n items={innerItems}\n />\n );\n })}\n </Root>\n );\n });\n\nexport const stepsConfig = {\n name: 'Steps',\n tag: 'div',\n layout: stepsRoot,\n base,\n variations: {\n size: sizeCSS,\n view: viewCSS,\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["stepsRoot","Root","forwardRef","props","outerRef","_props$view","view","size","_props$orientation","orientation","_props$contentAlign","contentAlign","_props$hasLine","hasLine","_props$hasContent","hasContent","hasLoader","_props$items","items","onChange","current","status","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","prevIndex","setPrevIndex","hasIndicator","some","item","indicator","isSimple","every","title","content","innerItems","useMemo","isUncontrolled","undefined","map","index","itemStatus","getItemStatus","_objectSpread","useEffect","calcPrevIndex","findIndex","React","createElement","_extends","ref","className","cls","_defineProperty","classes","verticalOrientation","simple","isActive","itemContent","itemContentAlign","onClick","StepItem","key","stepsConfig","name","tag","layout","base","variations","sizeCSS","viewCSS","defaults"],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Steps.styles.js","sources":["../../../src/components/Steps/Steps.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from './Steps.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: row;\n\n &.${classes.simple} {\n align-items: center;\n\n &:not(&.${classes.verticalOrientation}) {\n &.${classes.hasIndicator} {\n height: var(${tokens.activeIndicatorSize});\n }\n\n &:not(.${classes.hasIndicator}) {\n height: var(${tokens.activeBulletSize});\n }\n }\n\n &.${classes.verticalOrientation} {\n &.${classes.hasIndicator} {\n width: var(${tokens.activeIndicatorSize});\n }\n &:not(.${classes.hasIndicator}) {\n width: var(${tokens.activeBulletSize});\n }\n }\n }\n\n &.${classes.verticalOrientation} {\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n
|
1
|
+
{"version":3,"file":"Steps.styles.js","sources":["../../../src/components/Steps/Steps.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from './Steps.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: row;\n\n &.${classes.simple} {\n align-items: center;\n\n &:not(&.${classes.verticalOrientation}) {\n &.${classes.hasIndicator} {\n height: var(${tokens.activeIndicatorSize});\n }\n\n &:not(.${classes.hasIndicator}) {\n height: var(${tokens.activeBulletSize});\n }\n }\n\n &.${classes.verticalOrientation} {\n &.${classes.hasIndicator} {\n width: var(${tokens.activeIndicatorSize});\n }\n &:not(.${classes.hasIndicator}) {\n width: var(${tokens.activeBulletSize});\n }\n }\n }\n\n &.${classes.verticalOrientation} {\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n }\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAiChB;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
.b7q3upx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.b7q3upx.simple{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.b7q3upx.simple:not(.b7q3upx.simple.vertical-orientation).item-has-indicator{height:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple:not(.b7q3upx.simple.vertical-orientation):not(.item-has-indicator){height:var(--plasma-step-item-active-bullet-size);}.b7q3upx.simple.vertical-orientation.item-has-indicator{width:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple.vertical-orientation:not(.item-has-indicator){width:var(--plasma-step-item-active-bullet-size);}.b7q3upx.vertical-orientation{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;}
|
1
|
+
.b7q3upx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.b7q3upx.simple{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.b7q3upx.simple:not(.b7q3upx.simple.vertical-orientation).item-has-indicator{height:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple:not(.b7q3upx.simple.vertical-orientation):not(.item-has-indicator){height:var(--plasma-step-item-active-bullet-size);}.b7q3upx.simple.vertical-orientation.item-has-indicator{width:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple.vertical-orientation:not(.item-has-indicator){width:var(--plasma-step-item-active-bullet-size);}.b7q3upx.vertical-orientation{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;}
|
@@ -56,6 +56,7 @@ var tokens = {
|
|
56
56
|
inactiveTitleColor: '--plasma-step-item-inactive-title-color',
|
57
57
|
inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',
|
58
58
|
contentColor: '--plasma-step-item-content-color',
|
59
|
+
focusColor: '--plasma-step-item-focus-color',
|
59
60
|
activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
|
60
61
|
activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
|
61
62
|
activeIndicatorColor: '--plasma-step-item-active-indicator-color',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Steps.tokens.js","sources":["../../../src/components/Steps/Steps.tokens.ts"],"sourcesContent":["export const classes = {\n simple: 'simple',\n centered: 'item-centered',\n active: 'item-active',\n inactive: 'item-inactive',\n clickable: 'item-clickable',\n hovered: 'item-hovered',\n disabled: 'item-disabled',\n verticalOrientation: 'vertical-orientation',\n hasIndicator: 'item-has-indicator',\n activeItem: 'item-active',\n indentDivider: 'indent-divider',\n transparentDivider: 'transparent-divider',\n};\n\nexport const tokens = {\n indicatorSize: '--plasma-step-item-indicator-size',\n activeIndicatorSize: '--plasma-step-item-active-indicator-size',\n bulletSize: '--plasma-step-item-bullet-size',\n activeBulletSize: '--plasma-step-item-active-bullet-size',\n\n titlePaddingTop: '--plasma-step-item-title-padding-top',\n contentPaddingTop: '--plasma-step-item-content-padding-top',\n contentPaddingRight: '--plasma-step-item-content-padding-right',\n contentSidePadding: '--plasma-step-item-content-side-padding',\n contentVerticalPadding: '--plasma-step-item-content-vertical-padding',\n verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',\n\n smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',\n largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',\n smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',\n largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',\n\n titleFontFamily: '--plasma-step-item-title-font-family',\n titleFontSize: '--plasma-step-item-title-font-size',\n titleFontStyle: '--plasma-step-item-title-font-style',\n titleFontWeight: '--plasma-step-item-title-font-weight',\n titleLetterSpacing: '--plasma-step-item-title-letter-spacing',\n titleLineHeight: '--plasma-step-item-title-line-height',\n\n contentFontFamily: '--plasma-step-item-content-font-family',\n contentFontSize: '--plasma-step-item-content-font-size',\n contentFontStyle: '--plasma-step-item-content-font-style',\n contentFontWeight: '--plasma-step-item-content-font-weight',\n contentLetterSpacing: '--plasma-step-item-content-letter-spacing',\n contentLineHeight: '--plasma-step-item-content-line-height',\n\n indicatorFontFamily: '--plasma-step-item-indicator-font-family',\n indicatorFontSize: '--plasma-step-item-indicator-font-size',\n indicatorFontStyle: '--plasma-step-item-indicator-font-style',\n indicatorFontWeight: '--plasma-step-item-indicator-font-weight',\n indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',\n indicatorLineHeight: '--plasma-step-item-indicator-line-height',\n\n activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',\n activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',\n activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',\n activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',\n activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',\n activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',\n\n activeTitleColor: '--plasma-step-item-active-title-color',\n activeTitleColorHover: '--plasma-step-item-active-title-color-hover',\n inactiveTitleColor: '--plasma-step-item-inactive-title-color',\n inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',\n\n contentColor: '--plasma-step-item-content-color',\n\n activeIndicatorBorder: '--plasma-step-item-active-indicator-border',\n activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',\n\n activeIndicatorColor: '--plasma-step-item-active-indicator-color',\n activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',\n activeIndicatorBackground: '--plasma-step-item-active-indicator-background',\n\n completedIndicatorColor: '--plasma-step-item-completed-indicator-color',\n completedIndicatorColorHover: '--plasma-step-item-completed-indicator-color-hover',\n completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',\n completedIndicatorBackgroundHover: '--plasma-step-item-completed-indicator-background-hover',\n\n inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',\n inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',\n inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',\n inactiveIndicatorBackgroundHover: '--plasma-step-item-inactive-indicator-background-hover',\n\n disabledOpacity: '--plasma-step-item-disabled-opacity',\n\n dividerThickness: '--plasma-step-item-divider-thickness',\n};\n"],"names":["classes","simple","centered","active","inactive","clickable","hovered","disabled","verticalOrientation","hasIndicator","activeItem","indentDivider","transparentDivider","tokens","indicatorSize","activeIndicatorSize","bulletSize","activeBulletSize","titlePaddingTop","contentPaddingTop","contentPaddingRight","contentSidePadding","contentVerticalPadding","verticalContentPaddingLeft","smallIndicatorIndentHeight","largeIndicatorIndentHeight","smallBulletIndentHeight","largeBulletIndentHeight","titleFontFamily","titleFontSize","titleFontStyle","titleFontWeight","titleLetterSpacing","titleLineHeight","contentFontFamily","contentFontSize","contentFontStyle","contentFontWeight","contentLetterSpacing","contentLineHeight","indicatorFontFamily","indicatorFontSize","indicatorFontStyle","indicatorFontWeight","indicatorLetterSpacing","indicatorLineHeight","activeIndicatorFontFamily","activeIndicatorFontSize","activeIndicatorFontStyle","activeIndicatorFontWeight","activeIndicatorLetterSpacing","activeIndicatorLineHeight","activeTitleColor","activeTitleColorHover","inactiveTitleColor","inactiveTitleColorHover","contentColor","activeIndicatorBorder","activeIndicatorBorderHover","activeIndicatorColor","activeIndicatorColorHover","activeIndicatorBackground","completedIndicatorColor","completedIndicatorColorHover","completedIndicatorBackground","completedIndicatorBackgroundHover","inactiveIndicatorColor","inactiveIndicatorColorHover","inactiveIndicatorBackground","inactiveIndicatorBackgroundHover","disabledOpacity","dividerThickness"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,MAAM,EAAE,aAAa;AACrBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,SAAS,EAAE,gBAAgB;AAC3BC,EAAAA,OAAO,EAAE,cAAc;AACvBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,mBAAmB,EAAE,sBAAsB;AAC3CC,EAAAA,YAAY,EAAE,oBAAoB;AAClCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,kBAAkB,EAAE,qBAAA;AACxB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,UAAU,EAAE,gCAAgC;AAC5CC,EAAAA,gBAAgB,EAAE,uCAAuC;AAEzDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,0BAA0B,EAAE,kDAAkD;AAE9EC,EAAAA,0BAA0B,EAAE,8CAA8C;AAC1EC,EAAAA,0BAA0B,EAAE,8CAA8C;AAC1EC,EAAAA,uBAAuB,EAAE,2CAA2C;AACpEC,EAAAA,uBAAuB,EAAE,2CAA2C;AAEpEC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,aAAa,EAAE,oCAAoC;AACnDC,EAAAA,cAAc,EAAE,qCAAqC;AACrDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,eAAe,EAAE,sCAAsC;AAEvDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,iBAAiB,EAAE,wCAAwC;AAE3DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,mBAAmB,EAAE,0CAA0C;AAE/DC,EAAAA,yBAAyB,EAAE,iDAAiD;AAC5EC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,wBAAwB,EAAE,gDAAgD;AAC1EC,EAAAA,yBAAyB,EAAE,iDAAiD;AAC5EC,EAAAA,4BAA4B,EAAE,oDAAoD;AAClFC,EAAAA,yBAAyB,EAAE,iDAAiD;AAE5EC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,qBAAqB,EAAE,6CAA6C;AACpEC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,uBAAuB,EAAE,+CAA+C;AAExEC,EAAAA,YAAY,EAAE,kCAAkC;
|
1
|
+
{"version":3,"file":"Steps.tokens.js","sources":["../../../src/components/Steps/Steps.tokens.ts"],"sourcesContent":["export const classes = {\n simple: 'simple',\n centered: 'item-centered',\n active: 'item-active',\n inactive: 'item-inactive',\n clickable: 'item-clickable',\n hovered: 'item-hovered',\n disabled: 'item-disabled',\n verticalOrientation: 'vertical-orientation',\n hasIndicator: 'item-has-indicator',\n activeItem: 'item-active',\n indentDivider: 'indent-divider',\n transparentDivider: 'transparent-divider',\n};\n\nexport const tokens = {\n indicatorSize: '--plasma-step-item-indicator-size',\n activeIndicatorSize: '--plasma-step-item-active-indicator-size',\n bulletSize: '--plasma-step-item-bullet-size',\n activeBulletSize: '--plasma-step-item-active-bullet-size',\n\n titlePaddingTop: '--plasma-step-item-title-padding-top',\n contentPaddingTop: '--plasma-step-item-content-padding-top',\n contentPaddingRight: '--plasma-step-item-content-padding-right',\n contentSidePadding: '--plasma-step-item-content-side-padding',\n contentVerticalPadding: '--plasma-step-item-content-vertical-padding',\n verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',\n\n smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',\n largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',\n smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',\n largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',\n\n titleFontFamily: '--plasma-step-item-title-font-family',\n titleFontSize: '--plasma-step-item-title-font-size',\n titleFontStyle: '--plasma-step-item-title-font-style',\n titleFontWeight: '--plasma-step-item-title-font-weight',\n titleLetterSpacing: '--plasma-step-item-title-letter-spacing',\n titleLineHeight: '--plasma-step-item-title-line-height',\n\n contentFontFamily: '--plasma-step-item-content-font-family',\n contentFontSize: '--plasma-step-item-content-font-size',\n contentFontStyle: '--plasma-step-item-content-font-style',\n contentFontWeight: '--plasma-step-item-content-font-weight',\n contentLetterSpacing: '--plasma-step-item-content-letter-spacing',\n contentLineHeight: '--plasma-step-item-content-line-height',\n\n indicatorFontFamily: '--plasma-step-item-indicator-font-family',\n indicatorFontSize: '--plasma-step-item-indicator-font-size',\n indicatorFontStyle: '--plasma-step-item-indicator-font-style',\n indicatorFontWeight: '--plasma-step-item-indicator-font-weight',\n indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',\n indicatorLineHeight: '--plasma-step-item-indicator-line-height',\n\n activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',\n activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',\n activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',\n activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',\n activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',\n activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',\n\n activeTitleColor: '--plasma-step-item-active-title-color',\n activeTitleColorHover: '--plasma-step-item-active-title-color-hover',\n inactiveTitleColor: '--plasma-step-item-inactive-title-color',\n inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',\n\n contentColor: '--plasma-step-item-content-color',\n focusColor: '--plasma-step-item-focus-color',\n\n activeIndicatorBorder: '--plasma-step-item-active-indicator-border',\n activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',\n\n activeIndicatorColor: '--plasma-step-item-active-indicator-color',\n activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',\n activeIndicatorBackground: '--plasma-step-item-active-indicator-background',\n\n completedIndicatorColor: '--plasma-step-item-completed-indicator-color',\n completedIndicatorColorHover: '--plasma-step-item-completed-indicator-color-hover',\n completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',\n completedIndicatorBackgroundHover: '--plasma-step-item-completed-indicator-background-hover',\n\n inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',\n inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',\n inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',\n inactiveIndicatorBackgroundHover: '--plasma-step-item-inactive-indicator-background-hover',\n\n disabledOpacity: '--plasma-step-item-disabled-opacity',\n\n dividerThickness: '--plasma-step-item-divider-thickness',\n};\n"],"names":["classes","simple","centered","active","inactive","clickable","hovered","disabled","verticalOrientation","hasIndicator","activeItem","indentDivider","transparentDivider","tokens","indicatorSize","activeIndicatorSize","bulletSize","activeBulletSize","titlePaddingTop","contentPaddingTop","contentPaddingRight","contentSidePadding","contentVerticalPadding","verticalContentPaddingLeft","smallIndicatorIndentHeight","largeIndicatorIndentHeight","smallBulletIndentHeight","largeBulletIndentHeight","titleFontFamily","titleFontSize","titleFontStyle","titleFontWeight","titleLetterSpacing","titleLineHeight","contentFontFamily","contentFontSize","contentFontStyle","contentFontWeight","contentLetterSpacing","contentLineHeight","indicatorFontFamily","indicatorFontSize","indicatorFontStyle","indicatorFontWeight","indicatorLetterSpacing","indicatorLineHeight","activeIndicatorFontFamily","activeIndicatorFontSize","activeIndicatorFontStyle","activeIndicatorFontWeight","activeIndicatorLetterSpacing","activeIndicatorLineHeight","activeTitleColor","activeTitleColorHover","inactiveTitleColor","inactiveTitleColorHover","contentColor","focusColor","activeIndicatorBorder","activeIndicatorBorderHover","activeIndicatorColor","activeIndicatorColorHover","activeIndicatorBackground","completedIndicatorColor","completedIndicatorColorHover","completedIndicatorBackground","completedIndicatorBackgroundHover","inactiveIndicatorColor","inactiveIndicatorColorHover","inactiveIndicatorBackground","inactiveIndicatorBackgroundHover","disabledOpacity","dividerThickness"],"mappings":"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"}
|
@@ -5,12 +5,12 @@
|
|
5
5
|
.Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
|
6
6
|
.Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
|
7
7
|
|
8
|
-
.
|
9
|
-
.
|
10
|
-
.
|
11
|
-
.
|
12
|
-
.
|
13
|
-
.
|
14
|
-
.
|
15
|
-
.
|
16
|
-
.StepItem_styles_sp9rcd_s12pqpa3__20446152{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_verticalOrientation__20446152{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_verticalOrientation__20446152 .StepItem_styles_sp9rcd_sxskc3q__20446152{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemActive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_sv5tpso__20446152{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_b9hdug__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152:not(.StepItem_styles_sp9rcd_itemActive__20446152) .StepItem_styles_sp9rcd_b1eo1o32__20446152{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_b9hdug__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152.StepItem_styles_sp9rcd_itemInactive__20446152 .StepItem_styles_sp9rcd_b1eo1o32__20446152{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemHovered__20446152 .StepItem_styles_sp9rcd_b1kcj14__20446152{cursor:pointer;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152{width:100%;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_sv5tpso__20446152,.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemCentered__20446152 .StepItem_styles_sp9rcd_s4zgmmr__20446152 .StepItem_styles_sp9rcd_s529fhk__20446152{padding-right:0;text-align:center;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_simple__20446152{-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_sp9rcd_s12pqpa3__20446152.StepItem_styles_sp9rcd_itemDisabled__20446152{opacity:var(--plasma-step-item-disabled-opacity);}
|
8
|
+
.StepItem_styles_acxstj_snf9dn9__065935cf{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
|
9
|
+
.StepItem_styles_acxstj_sv5tpso__065935cf{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
|
10
|
+
.StepItem_styles_acxstj_s529fhk__065935cf{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
|
11
|
+
.StepItem_styles_acxstj_b1kcj14__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf).StepItem_styles_acxstj_itemHasIndicator__065935cf{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf:not(.StepItem_styles_acxstj_simple__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf{padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf{-webkit-flex:0;-ms-flex:0;flex:0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{min-width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){min-width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_b1kcj14__065935cf.StepItem_styles_acxstj_itemCentered__065935cf{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
12
|
+
.StepItem_styles_acxstj_b9hdug__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;outline:none;padding:0;margin:0;border:none;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);position:relative;}.StepItem_styles_acxstj_b9hdug__065935cf::before{content:'';position:absolute;top:-0.0625rem;left:-0.0625rem;right:-0.0625rem;bottom:-0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_focusVisible__065935cf:focus::before,.StepItem_styles_acxstj_b9hdug__065935cf[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-step-item-focus-color);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);position:relative;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf::before{content:'';position:absolute;top:-0.1875rem;left:-0.1875rem;right:-0.1875rem;bottom:-0.1875rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf.StepItem_styles_acxstj_focusVisible__065935cf:focus::before,.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-step-item-focus-color);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_simple__065935cf:before,.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_simple__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);}
|
13
|
+
.StepItem_styles_acxstj_b1eo1o32__065935cf.StepItem_styles_acxstj_b9hdug__065935cf{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_acxstj_b1eo1o32__065935cf.StepItem_styles_acxstj_b9hdug__065935cf.StepItem_styles_acxstj_itemActive__065935cf{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background:var(--plasma-step-item-active-indicator-background);}
|
14
|
+
.StepItem_styles_acxstj_sxskc3q__065935cf{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf{opacity:var(--plasma-step-item-disabled-opacity);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf{background:transparent;}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_indentDivider__065935cf{height:var(--sxskc3q-0);min-height:var(--sxskc3q-0);max-height:var(--sxskc3q-0);}.StepItem_styles_acxstj_sxskc3q__065935cf.StepItem_styles_acxstj_indentDivider__065935cf.StepItem_styles_acxstj_simple__065935cf{height:auto;max-height:none;}
|
15
|
+
.StepItem_styles_acxstj_s4zgmmr__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_acxstj_s4zgmmr__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_s529fhk__065935cf{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
|
16
|
+
.StepItem_styles_acxstj_s12pqpa3__065935cf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf .StepItem_styles_acxstj_sxskc3q__065935cf{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemActive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemInactive__065935cf{color:var(--plasma-step-item-inactive-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf{-webkit-flex:0;-ms-flex:0;flex:0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemHasIndicator__065935cf{min-width:var(--plasma-step-item-active-indicator-size);min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf){width:var(--plasma-step-item-active-bullet-size);min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):after{content:'';display:block;width:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);height:var(--plasma-step-item-divider-thickness);background:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf):not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after{width:calc((var(--plasma-step-item-active-bullet-size) - var(--plasma-step-item-bullet-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:after{width:var(--plasma-step-item-divider-thickness);height:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);margin:0 auto;-webkit-align-self:auto;-ms-flex-item-align:auto;align-self:auto;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:not(.StepItem_styles_acxstj_itemHasIndicator__065935cf):after{height:calc((var(--plasma-step-item-active-bullet-size) - var(--plasma-step-item-bullet-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_verticalOrientation__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_verticalOrientation__065935cf:after{margin:0 auto;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_isFirst__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_isFirst__065935cf:before{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf.StepItem_styles_acxstj_isLast__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf).StepItem_styles_acxstj_isLast__065935cf:after{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:after,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemInactive__065935cf:before{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_isPrevInactive__065935cf:before{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_isNextInactive__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf:after{background:var(--plasma-step-item-inactive-indicator-background);opacity:1;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf:before,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_simple__065935cf.StepItem_styles_acxstj_transparentDivider__065935cf:after{background:transparent;}.StepItem_styles_acxstj_s12pqpa3__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_verticalOrientation__065935cf).StepItem_styles_acxstj_isNextActive__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{width:calc(100% - (var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf:not(.StepItem_styles_acxstj_simple__065935cf):not(.StepItem_styles_acxstj_verticalOrientation__065935cf).StepItem_styles_acxstj_itemActive__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{margin-left:calc((var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / -2);width:calc(100% + (var(--plasma-step-item-active-indicator-size) - var(--plasma-step-item-indicator-size)) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_sv5tpso__065935cf{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_b9hdug__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf:not(.StepItem_styles_acxstj_itemActive__065935cf) .StepItem_styles_acxstj_b1eo1o32__065935cf{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_b9hdug__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf.StepItem_styles_acxstj_itemInactive__065935cf .StepItem_styles_acxstj_b1eo1o32__065935cf{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemHovered__065935cf .StepItem_styles_acxstj_b1kcj14__065935cf{cursor:pointer;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf{width:100%;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_sv5tpso__065935cf,.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemCentered__065935cf .StepItem_styles_acxstj_s4zgmmr__065935cf .StepItem_styles_acxstj_s529fhk__065935cf{padding-right:0;text-align:center;}.StepItem_styles_acxstj_s12pqpa3__065935cf.StepItem_styles_acxstj_itemDisabled__065935cf{opacity:var(--plasma-step-item-disabled-opacity);}
|
@@ -2,7 +2,7 @@ import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } fr
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
3
3
|
import cls from 'classnames';
|
4
4
|
import { classes, tokens } from '../../Steps.tokens.js';
|
5
|
-
import { StepItemStyled, BulletIndicatorWrapper,
|
5
|
+
import { StepItemStyled, BulletIndicatorWrapper, SpinnerStyled, StepItemDivider, StepItemContentWrapper, StepItemTitle, StepItemContent, BulletIndicator, Bullet } from './StepItem.styles.js';
|
6
6
|
|
7
7
|
// todo попробовать заменить через baseline выравнивание
|
8
8
|
var indicatorSizesIndentsMap = {
|
@@ -34,6 +34,7 @@ var StepItem = function StepItem(_ref) {
|
|
34
34
|
var prevItem = items[index - 1];
|
35
35
|
var nextItem = items[index + 1];
|
36
36
|
var isActive = status === 'active';
|
37
|
+
var isNextActive = (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'active';
|
37
38
|
var isInactive = status === 'inactive';
|
38
39
|
var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
|
39
40
|
var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
|
@@ -71,8 +72,32 @@ var StepItem = function StepItem(_ref) {
|
|
71
72
|
setIsHovered(false);
|
72
73
|
}
|
73
74
|
}, [isDisabled]);
|
75
|
+
if (isSimple) {
|
76
|
+
var _cls;
|
77
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
|
78
|
+
className: cls((_cls = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cls, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.transparentDivider, !hasLine), classes.verticalOrientation, isVertical), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cls, "isFirst", isFirst), "isLast", isLast), "isPrevInactive", isPrevInactive), "isNextInactive", isNextInactive)))
|
79
|
+
}, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
|
80
|
+
className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
|
81
|
+
onClick: onClickHandler,
|
82
|
+
onFocus: onMouseOver,
|
83
|
+
onBlur: onMouseOut,
|
84
|
+
onMouseOver: onMouseOver,
|
85
|
+
onMouseOut: onMouseOut
|
86
|
+
}, hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
|
87
|
+
hasIndicator: hasIndicator
|
88
|
+
}), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
|
89
|
+
className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive)),
|
90
|
+
disabled: isDisabled
|
91
|
+
}, typeof indicator === 'function' && indicator({
|
92
|
+
status: status,
|
93
|
+
item: item,
|
94
|
+
size: size
|
95
|
+
}), typeof indicator !== 'function' && indicator))), !isLast && /*#__PURE__*/React.createElement(StepItemDivider, {
|
96
|
+
className: cls(classes.simple, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.transparentDivider, !hasLine), classes.active, isActive), classes.inactive, isInactive || isNextInactive), classes.disabled, isDisabled))
|
97
|
+
}));
|
98
|
+
}
|
74
99
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
|
75
|
-
className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical))
|
100
|
+
className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical), "isNextActive", isNextActive))
|
76
101
|
}, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
|
77
102
|
className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
|
78
103
|
onClick: onClickHandler,
|
@@ -82,20 +107,21 @@ var StepItem = function StepItem(_ref) {
|
|
82
107
|
onMouseOut: onMouseOut
|
83
108
|
}, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
|
84
109
|
className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive))
|
85
|
-
}), isVertical &&
|
110
|
+
}), isVertical && /*#__PURE__*/React.createElement(StepItemDivider, {
|
86
111
|
className: cls(classes.indentDivider, _defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive)),
|
87
112
|
indentToken: indentToken
|
88
113
|
}), hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
|
89
114
|
hasIndicator: hasIndicator
|
90
115
|
}), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
|
91
|
-
className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive))
|
116
|
+
className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive)),
|
117
|
+
disabled: isDisabled
|
92
118
|
}, typeof indicator === 'function' && indicator({
|
93
119
|
status: status,
|
94
120
|
item: item,
|
95
121
|
size: size
|
96
|
-
}), typeof indicator !== 'function' && indicator),
|
122
|
+
}), typeof indicator !== 'function' && indicator), /*#__PURE__*/React.createElement(StepItemDivider, {
|
97
123
|
className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isLast), classes.inactive, isInactive || isNextInactive))
|
98
|
-
})),
|
124
|
+
})), /*#__PURE__*/React.createElement(StepItemContentWrapper, {
|
99
125
|
className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.active, isActive), classes.hasIndicator, hasIndicator))
|
100
126
|
}, /*#__PURE__*/React.createElement(StepItemTitle, {
|
101
127
|
onClick: onClickHandler,
|
@@ -103,9 +129,7 @@ var StepItem = function StepItem(_ref) {
|
|
103
129
|
onBlur: onMouseOut,
|
104
130
|
onMouseOver: onMouseOver,
|
105
131
|
onMouseOut: onMouseOut
|
106
|
-
}, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content)))
|
107
|
-
className: cls(classes.simple, _defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.transparentDivider, !hasLine), classes.inactive, isInactive || isNextInactive))
|
108
|
-
}));
|
132
|
+
}, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))));
|
109
133
|
};
|
110
134
|
|
111
135
|
export { StepItem };
|