@alfalab/core-components-steps 1.5.1 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.d.ts +10 -0
- package/Component.js +4 -11
- package/components/step/Component.d.ts +10 -0
- package/components/step/Component.js +10 -4
- package/components/step/index.css +44 -34
- package/components/step/index.js +0 -9
- package/components/step-indicator/Component.js +1 -1
- package/components/step-indicator/index.css +2 -2
- package/components/step-indicator/index.js +0 -3
- package/cssm/Component.d.ts +10 -0
- package/cssm/Component.js +3 -12
- package/cssm/components/step/Component.d.ts +10 -0
- package/cssm/components/step/Component.js +9 -4
- package/cssm/components/step/index.js +0 -11
- package/cssm/components/step/index.module.css +20 -10
- package/cssm/components/step-indicator/index.js +0 -4
- package/cssm/index.js +0 -13
- package/cssm/index.module.css +1 -1
- package/esm/Component.d.ts +10 -0
- package/esm/Component.js +4 -11
- package/esm/components/step/Component.d.ts +10 -0
- package/esm/components/step/Component.js +10 -4
- package/esm/components/step/index.css +44 -34
- package/esm/components/step/index.js +0 -9
- package/esm/components/step-indicator/Component.js +1 -1
- package/esm/components/step-indicator/index.css +2 -2
- package/esm/components/step-indicator/index.js +0 -3
- package/esm/index.css +4 -4
- package/esm/index.js +0 -10
- package/index.css +4 -4
- package/index.js +0 -10
- package/modern/Component.d.ts +10 -0
- package/modern/Component.js +3 -9
- package/modern/components/step/Component.d.ts +10 -0
- package/modern/components/step/Component.js +10 -4
- package/modern/components/step/index.css +44 -34
- package/modern/components/step/index.js +0 -8
- package/modern/components/step-indicator/Component.js +1 -1
- package/modern/components/step-indicator/index.css +2 -2
- package/modern/components/step-indicator/index.js +0 -3
- package/modern/index.css +4 -4
- package/modern/index.js +0 -9
- package/package.json +2 -2
- package/src/Component.tsx +16 -0
- package/src/components/step/Component.tsx +30 -4
- package/src/components/step/index.module.css +23 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 1hf3o */
|
|
2
|
+
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
-
--color-light-neutral-
|
|
5
|
+
--color-light-neutral-translucent-1300: rgba(3, 3, 6, 0.88);
|
|
6
6
|
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
7
7
|
--color-light-status-positive: #0cc44d;
|
|
8
|
-
--color-light-text-primary:
|
|
9
|
-
--color-light-text-primary-inverted:
|
|
8
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
9
|
+
--color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
|
|
10
10
|
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
11
11
|
--color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
12
12
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
} :root {
|
|
31
31
|
--steps-option-svg-color: var(--color-light-status-positive);
|
|
32
32
|
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
33
|
-
} .
|
|
33
|
+
} .steps__step_1ohj2 {
|
|
34
34
|
display: flex;
|
|
35
35
|
outline: none
|
|
36
|
-
} .
|
|
36
|
+
} .steps__step_1ohj2:not(.steps__vertical_1ohj2) {
|
|
37
37
|
align-items: center;
|
|
38
|
-
} .
|
|
38
|
+
} .steps__step_1ohj2.steps__interactive_1ohj2:not(.steps__disabled_1ohj2):hover {
|
|
39
39
|
cursor: pointer;
|
|
40
|
-
} .
|
|
40
|
+
} .steps__step_1ohj2.steps__disabled_1ohj2:hover .steps__text_1ohj2 {
|
|
41
41
|
background: unset;
|
|
42
|
-
} .
|
|
42
|
+
} .steps__step_1ohj2.steps__disabled_1ohj2 .steps__indicator_1ohj2 {
|
|
43
43
|
cursor: unset;
|
|
44
|
-
} .
|
|
44
|
+
} .steps__indicator_1ohj2 {
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
48
|
margin-right: var(--gap-2xs)
|
|
49
|
-
} .
|
|
49
|
+
} .steps__indicator_1ohj2.steps__vertical_1ohj2 {
|
|
50
50
|
flex-direction: column;
|
|
51
51
|
margin-right: var(--gap-xs);
|
|
52
|
-
} .
|
|
52
|
+
} .steps__option_1ohj2 {
|
|
53
53
|
font-size: 14px;
|
|
54
54
|
line-height: 20px;
|
|
55
55
|
font-weight: 700;
|
|
@@ -62,25 +62,33 @@
|
|
|
62
62
|
min-width: 24px;
|
|
63
63
|
height: 24px;
|
|
64
64
|
border-radius: var(--border-radius-circle)
|
|
65
|
-
} .
|
|
65
|
+
} .steps__option_1ohj2.steps__vertical_1ohj2 {
|
|
66
66
|
margin-top: var(--gap-xs);
|
|
67
|
-
} .
|
|
67
|
+
} .steps__dash_1ohj2 {
|
|
68
68
|
flex: 1 1 auto;
|
|
69
69
|
min-width: 24px;
|
|
70
70
|
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
71
71
|
margin-right: var(--gap-xs)
|
|
72
|
-
} .
|
|
72
|
+
} .steps__dash_1ohj2.steps__size-16_1ohj2 {
|
|
73
|
+
min-width: 16px;
|
|
74
|
+
} .steps__dash_1ohj2.steps__size-8_1ohj2 {
|
|
75
|
+
min-width: 8px;
|
|
76
|
+
} .steps__dash_1ohj2.steps__completed_1ohj2 {
|
|
73
77
|
border-top: var(--steps-dash-border);
|
|
74
|
-
} .
|
|
78
|
+
} .steps__dash_1ohj2.steps__vertical_1ohj2 {
|
|
75
79
|
min-width: unset;
|
|
76
80
|
min-height: 24px;
|
|
77
81
|
margin-right: 0;
|
|
78
82
|
margin-top: var(--gap-xs);
|
|
79
83
|
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
80
|
-
border-top: none
|
|
81
|
-
} .
|
|
84
|
+
border-top: none
|
|
85
|
+
} .steps__dash_1ohj2.steps__vertical_1ohj2.steps__size-16_1ohj2 {
|
|
86
|
+
min-height: 16px;
|
|
87
|
+
} .steps__dash_1ohj2.steps__vertical_1ohj2.steps__size-8_1ohj2 {
|
|
88
|
+
min-height: 8px;
|
|
89
|
+
} .steps__dash_1ohj2.steps__completed_1ohj2.steps__vertical_1ohj2 {
|
|
82
90
|
border-left: var(--steps-dash-border);
|
|
83
|
-
} .
|
|
91
|
+
} .steps__text_1ohj2 {
|
|
84
92
|
font-size: 16px;
|
|
85
93
|
line-height: 24px;
|
|
86
94
|
font-weight: 400;
|
|
@@ -90,19 +98,19 @@
|
|
|
90
98
|
color: var(--color-light-text-primary);
|
|
91
99
|
border-radius: var(--gap-xs);
|
|
92
100
|
height: min-content
|
|
93
|
-
} .
|
|
101
|
+
} .steps__text_1ohj2.steps__interactive_1ohj2:not(.steps__disabled_1ohj2):hover {
|
|
94
102
|
background: var(--color-light-transparent-default-hover);
|
|
95
|
-
} .
|
|
103
|
+
} .steps__text_1ohj2.steps__interactive_1ohj2:not(.steps__disabled_1ohj2):active {
|
|
96
104
|
background: var(--color-light-transparent-default-press);
|
|
97
|
-
} .
|
|
105
|
+
} .steps__focused_1ohj2 {
|
|
98
106
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
99
107
|
outline-offset: var(--gap-3xs);
|
|
100
|
-
} .
|
|
108
|
+
} .steps__selected_1ohj2 .steps__text_1ohj2 {
|
|
101
109
|
color: var(--color-light-text-primary);
|
|
102
|
-
} .
|
|
110
|
+
} .steps__selected_1ohj2 .steps__option_1ohj2 {
|
|
103
111
|
color: var(--color-light-text-primary-inverted);
|
|
104
|
-
background: var(--color-light-neutral-
|
|
105
|
-
} .
|
|
112
|
+
background: var(--color-light-neutral-translucent-1300);
|
|
113
|
+
} .steps__checkbox_1ohj2 {
|
|
106
114
|
display: flex;
|
|
107
115
|
justify-content: center;
|
|
108
116
|
align-items: center;
|
|
@@ -110,18 +118,20 @@
|
|
|
110
118
|
width: 20px;
|
|
111
119
|
height: 20px;
|
|
112
120
|
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
113
|
-
} .
|
|
121
|
+
} .steps__dot_1ohj2 {
|
|
114
122
|
width: 10px;
|
|
115
123
|
height: 10px;
|
|
116
124
|
border-radius: var(--border-radius-circle);
|
|
117
125
|
background: var(--color-light-neutral-translucent-300);
|
|
118
|
-
} .
|
|
119
|
-
border: 2px solid var(--color-light-neutral-
|
|
120
|
-
} .
|
|
121
|
-
background: var(--color-light-neutral-
|
|
122
|
-
} .
|
|
126
|
+
} .steps__selected_1ohj2 .steps__checkbox_1ohj2 {
|
|
127
|
+
border: 2px solid var(--color-light-neutral-translucent-1300)
|
|
128
|
+
} .steps__selected_1ohj2 .steps__checkbox_1ohj2 .steps__dot_1ohj2 {
|
|
129
|
+
background: var(--color-light-neutral-translucent-1300);
|
|
130
|
+
} .steps__option_1ohj2:not(.steps__error_1ohj2).steps__unordered_1ohj2 {
|
|
123
131
|
background: unset;
|
|
124
|
-
} .
|
|
132
|
+
} .steps__completedIndicator_1ohj2 > [class*='positive'] {
|
|
125
133
|
color: var(--steps-option-svg-color);
|
|
126
134
|
background-color: var(--steps-option-svg-color);
|
|
135
|
+
} .steps__fullWidth_1ohj2 {
|
|
136
|
+
width: 100%;
|
|
127
137
|
}
|
|
@@ -1,9 +1 @@
|
|
|
1
1
|
export { Step } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
|
-
import '@alfalab/icons-glyph/ClockMIcon';
|
|
7
|
-
import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
8
|
-
import '../step-indicator/Component.js';
|
|
9
|
-
import '@alfalab/core-components-badge/modern';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Badge } from '@alfalab/core-components-badge/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"component":"
|
|
5
|
+
const styles = {"component":"steps__component_1akb5"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const StepIndicator = ({ content, iconColor, className }) => (React.createElement(Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn(styles.component, className), content: content }));
|
package/modern/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 4o5j9 */
|
|
2
|
+
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .steps__component_1n1l2 {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1n1l2.steps__vertical_1n1l2 {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
1
|
export { Steps } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import './components/step/Component.js';
|
|
5
|
-
import '@alfalab/hooks';
|
|
6
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
7
|
-
import '@alfalab/icons-glyph/ClockMIcon';
|
|
8
|
-
import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
9
|
-
import './components/step-indicator/Component.js';
|
|
10
|
-
import '@alfalab/core-components-badge/modern';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-steps",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-badge": "^5.5.
|
|
17
|
+
"@alfalab/core-components-badge": "^5.5.2",
|
|
18
18
|
"@alfalab/hooks": "^1.13.0",
|
|
19
19
|
"@alfalab/icons-glyph": "^2.139.0",
|
|
20
20
|
"classnames": "^2.3.1",
|
package/src/Component.tsx
CHANGED
|
@@ -50,6 +50,18 @@ export type StepsProps = {
|
|
|
50
50
|
*/
|
|
51
51
|
interactive?: boolean;
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Растягивание шагов на всю ширину блока для вертикальной ориентации
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
fullWidth?: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Минимальное расстояние между шагами
|
|
61
|
+
* @default 24
|
|
62
|
+
*/
|
|
63
|
+
minSpaceBetweenSteps?: 8 | 16 | 24;
|
|
64
|
+
|
|
53
65
|
/**
|
|
54
66
|
* Кастомный метод для управления состоянием disabled шага и
|
|
55
67
|
* возможностью перехода на этот шаг
|
|
@@ -114,6 +126,8 @@ export const Steps: React.FC<StepsProps> = ({
|
|
|
114
126
|
isVerticalAlign = false,
|
|
115
127
|
ordered = true,
|
|
116
128
|
interactive = true,
|
|
129
|
+
fullWidth = false,
|
|
130
|
+
minSpaceBetweenSteps = 24,
|
|
117
131
|
checkIsStepDisabled,
|
|
118
132
|
checkIsStepError,
|
|
119
133
|
checkIsStepWarning,
|
|
@@ -180,6 +194,8 @@ export const Steps: React.FC<StepsProps> = ({
|
|
|
180
194
|
isVerticalAlign={isVerticalAlign}
|
|
181
195
|
isNotLastStep={isNotLastStep}
|
|
182
196
|
key={stepNumber}
|
|
197
|
+
fullWidth={fullWidth}
|
|
198
|
+
minSpaceBetweenSteps={minSpaceBetweenSteps}
|
|
183
199
|
>
|
|
184
200
|
{step}
|
|
185
201
|
</Step>
|
|
@@ -82,6 +82,18 @@ export type StepProps = {
|
|
|
82
82
|
*/
|
|
83
83
|
isNotLastStep?: boolean;
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Маркер того, что шаг растягивается на всю ширину блока
|
|
87
|
+
* для вертикальной ориентации
|
|
88
|
+
*/
|
|
89
|
+
fullWidth?: boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Минимальное расстояние между шагами
|
|
93
|
+
* @default 24
|
|
94
|
+
*/
|
|
95
|
+
minSpaceBetweenSteps?: 8 | 16 | 24;
|
|
96
|
+
|
|
85
97
|
/**
|
|
86
98
|
* Обработчик нажатия на текущей шаг
|
|
87
99
|
* @param stepNumber - номер шага
|
|
@@ -89,6 +101,12 @@ export type StepProps = {
|
|
|
89
101
|
onClick: (stepNumber: number) => void;
|
|
90
102
|
};
|
|
91
103
|
|
|
104
|
+
const SIZE_TO_CLASSNAME_MAP = {
|
|
105
|
+
8: 'size-8',
|
|
106
|
+
16: 'size-16',
|
|
107
|
+
24: 'size-24',
|
|
108
|
+
};
|
|
109
|
+
|
|
92
110
|
export const Step: React.FC<StepProps> = ({
|
|
93
111
|
children,
|
|
94
112
|
stepNumber,
|
|
@@ -105,6 +123,8 @@ export const Step: React.FC<StepProps> = ({
|
|
|
105
123
|
interactive,
|
|
106
124
|
isVerticalAlign,
|
|
107
125
|
isNotLastStep,
|
|
126
|
+
fullWidth,
|
|
127
|
+
minSpaceBetweenSteps = 24,
|
|
108
128
|
}) => {
|
|
109
129
|
const stepRef = useRef<HTMLDivElement>(null);
|
|
110
130
|
|
|
@@ -166,10 +186,14 @@ export const Step: React.FC<StepProps> = ({
|
|
|
166
186
|
|
|
167
187
|
const renderDash = () => (
|
|
168
188
|
<div
|
|
169
|
-
className={cn(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
189
|
+
className={cn(
|
|
190
|
+
styles.dash,
|
|
191
|
+
{
|
|
192
|
+
[styles.vertical]: isVerticalAlign,
|
|
193
|
+
[styles.completed]: isStepCompleted,
|
|
194
|
+
},
|
|
195
|
+
styles[SIZE_TO_CLASSNAME_MAP[minSpaceBetweenSteps]],
|
|
196
|
+
)}
|
|
173
197
|
/>
|
|
174
198
|
);
|
|
175
199
|
|
|
@@ -186,6 +210,7 @@ export const Step: React.FC<StepProps> = ({
|
|
|
186
210
|
[styles.focused]: focused,
|
|
187
211
|
[styles.vertical]: isVerticalAlign,
|
|
188
212
|
[styles.interactive]: interactive,
|
|
213
|
+
[styles.fullWidth]: fullWidth && isVerticalAlign,
|
|
189
214
|
})}
|
|
190
215
|
onClick={handleButtonClick}
|
|
191
216
|
onKeyDown={handleKeyDown}
|
|
@@ -211,6 +236,7 @@ export const Step: React.FC<StepProps> = ({
|
|
|
211
236
|
<div
|
|
212
237
|
className={cn(styles.text, {
|
|
213
238
|
[styles.interactive]: interactive,
|
|
239
|
+
[styles.fullWidth]: fullWidth && isVerticalAlign,
|
|
214
240
|
})}
|
|
215
241
|
onClick={handleTextClick}
|
|
216
242
|
>
|
|
@@ -65,6 +65,14 @@
|
|
|
65
65
|
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
66
66
|
margin-right: var(--gap-xs);
|
|
67
67
|
|
|
68
|
+
&.size-16 {
|
|
69
|
+
min-width: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.size-8 {
|
|
73
|
+
min-width: 8px;
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
&.completed {
|
|
69
77
|
border-top: var(--steps-dash-border);
|
|
70
78
|
}
|
|
@@ -76,6 +84,14 @@
|
|
|
76
84
|
margin-top: var(--gap-xs);
|
|
77
85
|
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
78
86
|
border-top: none;
|
|
87
|
+
|
|
88
|
+
&.size-16 {
|
|
89
|
+
min-height: 16px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.size-8 {
|
|
93
|
+
min-height: 8px;
|
|
94
|
+
}
|
|
79
95
|
}
|
|
80
96
|
|
|
81
97
|
&.completed.vertical {
|
|
@@ -115,7 +131,7 @@
|
|
|
115
131
|
|
|
116
132
|
& .option {
|
|
117
133
|
color: var(--color-light-text-primary-inverted);
|
|
118
|
-
background: var(--color-light-neutral-
|
|
134
|
+
background: var(--color-light-neutral-translucent-1300);
|
|
119
135
|
}
|
|
120
136
|
}
|
|
121
137
|
|
|
@@ -137,10 +153,10 @@
|
|
|
137
153
|
}
|
|
138
154
|
|
|
139
155
|
.selected .checkbox {
|
|
140
|
-
border: 2px solid var(--color-light-neutral-
|
|
156
|
+
border: 2px solid var(--color-light-neutral-translucent-1300);
|
|
141
157
|
|
|
142
158
|
& .dot {
|
|
143
|
-
background: var(--color-light-neutral-
|
|
159
|
+
background: var(--color-light-neutral-translucent-1300);
|
|
144
160
|
}
|
|
145
161
|
}
|
|
146
162
|
|
|
@@ -152,3 +168,7 @@
|
|
|
152
168
|
color: var(--steps-option-svg-color);
|
|
153
169
|
background-color: var(--steps-option-svg-color);
|
|
154
170
|
}
|
|
171
|
+
|
|
172
|
+
.fullWidth {
|
|
173
|
+
width: 100%;
|
|
174
|
+
}
|