@alfalab/core-components-steps 1.3.1 → 1.5.0
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.js +1 -1
- package/components/step/Component.js +1 -1
- package/components/step/index.css +48 -49
- package/components/step-indicator/Component.js +1 -1
- package/components/step-indicator/index.css +2 -2
- package/cssm/components/step/index.module.css +22 -23
- package/esm/Component.js +1 -1
- package/esm/components/step/Component.js +1 -1
- package/esm/components/step/index.css +48 -49
- package/esm/components/step-indicator/Component.js +1 -1
- package/esm/components/step-indicator/index.css +2 -2
- package/esm/index.css +3 -3
- package/index.css +3 -3
- package/modern/Component.js +1 -1
- package/modern/components/step/Component.js +1 -1
- package/modern/components/step/index.css +48 -49
- package/modern/components/step-indicator/Component.js +1 -1
- package/modern/components/step-indicator/index.css +2 -2
- package/modern/index.css +3 -3
- package/package.json +3 -3
- package/src/components/step/index.module.css +15 -15
package/Component.js
CHANGED
|
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
19
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
20
20
|
|
|
21
|
-
var styles = {"component":"
|
|
21
|
+
var styles = {"component":"steps__component_1o289","vertical":"steps__vertical_1o289"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var Steps = function (_a) {
|
|
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
19
|
|
|
20
|
-
var styles = {"step":"
|
|
20
|
+
var styles = {"step":"steps__step_1fcm4","vertical":"steps__vertical_1fcm4","interactive":"steps__interactive_1fcm4","disabled":"steps__disabled_1fcm4","text":"steps__text_1fcm4","indicator":"steps__indicator_1fcm4","option":"steps__option_1fcm4","dash":"steps__dash_1fcm4","completed":"steps__completed_1fcm4","focused":"steps__focused_1fcm4","selected":"steps__selected_1fcm4","checkbox":"steps__checkbox_1fcm4","dot":"steps__dot_1fcm4","error":"steps__error_1fcm4","unordered":"steps__unordered_1fcm4","completedIndicator":"steps__completedIndicator_1fcm4"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var Step = function (_a) {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yc90 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
-
--color-light-
|
|
6
|
-
--color-light-
|
|
7
|
-
--color-light-
|
|
8
|
-
--color-light-
|
|
9
|
-
--color-light-
|
|
10
|
-
--color-light-
|
|
11
|
-
--color-light-
|
|
12
|
-
--color-light-bg-primary-inverted-alpha-15: rgba(14, 14, 14, 0.15);
|
|
5
|
+
--color-light-neutral-1500: #0e0e0e;
|
|
6
|
+
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
7
|
+
--color-light-status-positive: #0cc44d;
|
|
8
|
+
--color-light-text-primary: #0e0e0e;
|
|
9
|
+
--color-light-text-primary-inverted: #fff;
|
|
10
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
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 */
|
|
13
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 */
|
|
14
13
|
} :root {
|
|
15
14
|
} :root {
|
|
@@ -29,28 +28,28 @@
|
|
|
29
28
|
} :root {
|
|
30
29
|
--focus-color: var(--color-light-border-link);
|
|
31
30
|
} :root {
|
|
32
|
-
--steps-option-svg-color: var(--color-light-
|
|
33
|
-
--steps-dash-border: 2px solid var(--color-light-
|
|
34
|
-
} .
|
|
31
|
+
--steps-option-svg-color: var(--color-light-status-positive);
|
|
32
|
+
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
33
|
+
} .steps__step_1fcm4 {
|
|
35
34
|
display: flex;
|
|
36
35
|
outline: none
|
|
37
|
-
} .
|
|
36
|
+
} .steps__step_1fcm4:not(.steps__vertical_1fcm4) {
|
|
38
37
|
align-items: center;
|
|
39
|
-
} .
|
|
38
|
+
} .steps__step_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
40
39
|
cursor: pointer;
|
|
41
|
-
} .
|
|
40
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4:hover .steps__text_1fcm4 {
|
|
42
41
|
background: unset;
|
|
43
|
-
} .
|
|
42
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4 .steps__indicator_1fcm4 {
|
|
44
43
|
cursor: unset;
|
|
45
|
-
} .
|
|
44
|
+
} .steps__indicator_1fcm4 {
|
|
46
45
|
cursor: pointer;
|
|
47
46
|
display: flex;
|
|
48
47
|
align-items: center;
|
|
49
48
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
49
|
+
} .steps__indicator_1fcm4.steps__vertical_1fcm4 {
|
|
51
50
|
flex-direction: column;
|
|
52
51
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
52
|
+
} .steps__option_1fcm4 {
|
|
54
53
|
font-size: 14px;
|
|
55
54
|
line-height: 20px;
|
|
56
55
|
font-weight: 700;
|
|
@@ -58,30 +57,30 @@
|
|
|
58
57
|
display: flex;
|
|
59
58
|
align-items: center;
|
|
60
59
|
justify-content: center;
|
|
61
|
-
color: var(--color-light-
|
|
62
|
-
background: var(--color-light-
|
|
60
|
+
color: var(--color-light-text-primary);
|
|
61
|
+
background: var(--color-light-neutral-translucent-300);
|
|
63
62
|
min-width: 24px;
|
|
64
63
|
height: 24px;
|
|
65
64
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
65
|
+
} .steps__option_1fcm4.steps__vertical_1fcm4 {
|
|
67
66
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
67
|
+
} .steps__dash_1fcm4 {
|
|
69
68
|
flex: 1 1 auto;
|
|
70
69
|
min-width: 24px;
|
|
71
|
-
border-top: 2px solid var(--color-light-
|
|
70
|
+
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
72
71
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
72
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4 {
|
|
74
73
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
74
|
+
} .steps__dash_1fcm4.steps__vertical_1fcm4 {
|
|
76
75
|
min-width: unset;
|
|
77
76
|
min-height: 24px;
|
|
78
77
|
margin-right: 0;
|
|
79
78
|
margin-top: var(--gap-xs);
|
|
80
|
-
border-left: 2px solid var(--color-light-
|
|
79
|
+
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
81
80
|
border-top: none;
|
|
82
|
-
} .
|
|
81
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4.steps__vertical_1fcm4 {
|
|
83
82
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
83
|
+
} .steps__text_1fcm4 {
|
|
85
84
|
font-size: 16px;
|
|
86
85
|
line-height: 24px;
|
|
87
86
|
font-weight: 400;
|
|
@@ -91,38 +90,38 @@
|
|
|
91
90
|
color: var(--color-light-text-primary);
|
|
92
91
|
border-radius: var(--gap-xs);
|
|
93
92
|
height: min-content
|
|
94
|
-
} .
|
|
95
|
-
background: var(--color-light-
|
|
96
|
-
} .
|
|
97
|
-
background: var(--color-light-
|
|
98
|
-
} .
|
|
93
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
94
|
+
background: var(--color-light-transparent-default-hover);
|
|
95
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):active {
|
|
96
|
+
background: var(--color-light-transparent-default-press);
|
|
97
|
+
} .steps__focused_1fcm4 {
|
|
99
98
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
99
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
102
|
-
color: var(--color-light-
|
|
103
|
-
} .
|
|
104
|
-
color: var(--color-light-
|
|
105
|
-
background: var(--color-light-
|
|
106
|
-
} .
|
|
100
|
+
} .steps__selected_1fcm4 .steps__text_1fcm4 {
|
|
101
|
+
color: var(--color-light-text-primary);
|
|
102
|
+
} .steps__selected_1fcm4 .steps__option_1fcm4 {
|
|
103
|
+
color: var(--color-light-text-primary-inverted);
|
|
104
|
+
background: var(--color-light-neutral-1500);
|
|
105
|
+
} .steps__checkbox_1fcm4 {
|
|
107
106
|
display: flex;
|
|
108
107
|
justify-content: center;
|
|
109
108
|
align-items: center;
|
|
110
109
|
border-radius: var(--border-radius-circle);
|
|
111
110
|
width: 20px;
|
|
112
111
|
height: 20px;
|
|
113
|
-
border: 2px solid var(--color-light-
|
|
114
|
-
} .
|
|
112
|
+
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
113
|
+
} .steps__dot_1fcm4 {
|
|
115
114
|
width: 10px;
|
|
116
115
|
height: 10px;
|
|
117
116
|
border-radius: var(--border-radius-circle);
|
|
118
|
-
background: var(--color-light-
|
|
119
|
-
} .
|
|
120
|
-
border: 2px solid var(--color-light-
|
|
121
|
-
} .
|
|
122
|
-
background: var(--color-light-
|
|
123
|
-
} .
|
|
117
|
+
background: var(--color-light-neutral-translucent-300);
|
|
118
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 {
|
|
119
|
+
border: 2px solid var(--color-light-neutral-1500)
|
|
120
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 .steps__dot_1fcm4 {
|
|
121
|
+
background: var(--color-light-neutral-1500);
|
|
122
|
+
} .steps__option_1fcm4:not(.steps__error_1fcm4).steps__unordered_1fcm4 {
|
|
124
123
|
background: unset;
|
|
125
|
-
} .
|
|
124
|
+
} .steps__completedIndicator_1fcm4 > [class*='positive'] {
|
|
126
125
|
color: var(--steps-option-svg-color);
|
|
127
126
|
background-color: var(--steps-option-svg-color);
|
|
128
127
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"
|
|
14
|
+
var styles = {"component":"steps__component_11fe7"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var StepIndicator = function (_a) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-border-link: #2288fa;
|
|
4
|
-
--color-light-
|
|
5
|
-
--color-light-
|
|
6
|
-
--color-light-
|
|
7
|
-
--color-light-
|
|
8
|
-
--color-light-
|
|
9
|
-
--color-light-
|
|
10
|
-
--color-light-
|
|
11
|
-
--color-light-bg-primary-inverted-alpha-15: rgba(14, 14, 14, 0.15);
|
|
4
|
+
--color-light-neutral-1500: #0e0e0e;
|
|
5
|
+
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
6
|
+
--color-light-status-positive: #0cc44d;
|
|
7
|
+
--color-light-text-primary: #0e0e0e;
|
|
8
|
+
--color-light-text-primary-inverted: #fff;
|
|
9
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
10
|
+
--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
11
|
} :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 */
|
|
13
12
|
} :root {
|
|
14
13
|
} :root {
|
|
@@ -28,8 +27,8 @@
|
|
|
28
27
|
} :root {
|
|
29
28
|
--focus-color: var(--color-light-border-link);
|
|
30
29
|
} :root {
|
|
31
|
-
--steps-option-svg-color: var(--color-light-
|
|
32
|
-
--steps-dash-border: 2px solid var(--color-light-
|
|
30
|
+
--steps-option-svg-color: var(--color-light-status-positive);
|
|
31
|
+
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
33
32
|
} .step {
|
|
34
33
|
display: flex;
|
|
35
34
|
outline: none
|
|
@@ -57,8 +56,8 @@
|
|
|
57
56
|
display: flex;
|
|
58
57
|
align-items: center;
|
|
59
58
|
justify-content: center;
|
|
60
|
-
color: var(--color-light-
|
|
61
|
-
background: var(--color-light-
|
|
59
|
+
color: var(--color-light-text-primary);
|
|
60
|
+
background: var(--color-light-neutral-translucent-300);
|
|
62
61
|
min-width: 24px;
|
|
63
62
|
height: 24px;
|
|
64
63
|
border-radius: var(--border-radius-circle)
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
} .dash {
|
|
68
67
|
flex: 1 1 auto;
|
|
69
68
|
min-width: 24px;
|
|
70
|
-
border-top: 2px solid var(--color-light-
|
|
69
|
+
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
71
70
|
margin-right: var(--gap-xs)
|
|
72
71
|
} .dash.completed {
|
|
73
72
|
border-top: var(--steps-dash-border);
|
|
@@ -76,7 +75,7 @@
|
|
|
76
75
|
min-height: 24px;
|
|
77
76
|
margin-right: 0;
|
|
78
77
|
margin-top: var(--gap-xs);
|
|
79
|
-
border-left: 2px solid var(--color-light-
|
|
78
|
+
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
80
79
|
border-top: none;
|
|
81
80
|
} .dash.completed.vertical {
|
|
82
81
|
border-left: var(--steps-dash-border);
|
|
@@ -91,17 +90,17 @@
|
|
|
91
90
|
border-radius: var(--gap-xs);
|
|
92
91
|
height: min-content
|
|
93
92
|
} .text.interactive:not(.disabled):hover {
|
|
94
|
-
background: var(--color-light-
|
|
93
|
+
background: var(--color-light-transparent-default-hover);
|
|
95
94
|
} .text.interactive:not(.disabled):active {
|
|
96
|
-
background: var(--color-light-
|
|
95
|
+
background: var(--color-light-transparent-default-press);
|
|
97
96
|
} .focused {
|
|
98
97
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
99
98
|
outline-offset: var(--gap-3xs);
|
|
100
99
|
} .selected .text {
|
|
101
|
-
color: var(--color-light-
|
|
100
|
+
color: var(--color-light-text-primary);
|
|
102
101
|
} .selected .option {
|
|
103
|
-
color: var(--color-light-
|
|
104
|
-
background: var(--color-light-
|
|
102
|
+
color: var(--color-light-text-primary-inverted);
|
|
103
|
+
background: var(--color-light-neutral-1500);
|
|
105
104
|
} .checkbox {
|
|
106
105
|
display: flex;
|
|
107
106
|
justify-content: center;
|
|
@@ -109,16 +108,16 @@
|
|
|
109
108
|
border-radius: var(--border-radius-circle);
|
|
110
109
|
width: 20px;
|
|
111
110
|
height: 20px;
|
|
112
|
-
border: 2px solid var(--color-light-
|
|
111
|
+
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
113
112
|
} .dot {
|
|
114
113
|
width: 10px;
|
|
115
114
|
height: 10px;
|
|
116
115
|
border-radius: var(--border-radius-circle);
|
|
117
|
-
background: var(--color-light-
|
|
116
|
+
background: var(--color-light-neutral-translucent-300);
|
|
118
117
|
} .selected .checkbox {
|
|
119
|
-
border: 2px solid var(--color-light-
|
|
118
|
+
border: 2px solid var(--color-light-neutral-1500)
|
|
120
119
|
} .selected .checkbox .dot {
|
|
121
|
-
background: var(--color-light-
|
|
120
|
+
background: var(--color-light-neutral-1500);
|
|
122
121
|
} .option:not(.error).unordered {
|
|
123
122
|
background: unset;
|
|
124
123
|
} .completedIndicator > [class*='positive'] {
|
package/esm/Component.js
CHANGED
|
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
|
9
9
|
import './components/step-indicator/Component.js';
|
|
10
10
|
import '@alfalab/core-components-badge/esm';
|
|
11
11
|
|
|
12
|
-
var styles = {"component":"
|
|
12
|
+
var styles = {"component":"steps__component_1o289","vertical":"steps__vertical_1o289"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var Steps = function (_a) {
|
|
@@ -8,7 +8,7 @@ import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMI
|
|
|
8
8
|
import { StepIndicator } from '../step-indicator/Component.js';
|
|
9
9
|
import '@alfalab/core-components-badge/esm';
|
|
10
10
|
|
|
11
|
-
var styles = {"step":"
|
|
11
|
+
var styles = {"step":"steps__step_1fcm4","vertical":"steps__vertical_1fcm4","interactive":"steps__interactive_1fcm4","disabled":"steps__disabled_1fcm4","text":"steps__text_1fcm4","indicator":"steps__indicator_1fcm4","option":"steps__option_1fcm4","dash":"steps__dash_1fcm4","completed":"steps__completed_1fcm4","focused":"steps__focused_1fcm4","selected":"steps__selected_1fcm4","checkbox":"steps__checkbox_1fcm4","dot":"steps__dot_1fcm4","error":"steps__error_1fcm4","unordered":"steps__unordered_1fcm4","completedIndicator":"steps__completedIndicator_1fcm4"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Step = function (_a) {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yc90 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
-
--color-light-
|
|
6
|
-
--color-light-
|
|
7
|
-
--color-light-
|
|
8
|
-
--color-light-
|
|
9
|
-
--color-light-
|
|
10
|
-
--color-light-
|
|
11
|
-
--color-light-
|
|
12
|
-
--color-light-bg-primary-inverted-alpha-15: rgba(14, 14, 14, 0.15);
|
|
5
|
+
--color-light-neutral-1500: #0e0e0e;
|
|
6
|
+
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
7
|
+
--color-light-status-positive: #0cc44d;
|
|
8
|
+
--color-light-text-primary: #0e0e0e;
|
|
9
|
+
--color-light-text-primary-inverted: #fff;
|
|
10
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
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 */
|
|
13
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 */
|
|
14
13
|
} :root {
|
|
15
14
|
} :root {
|
|
@@ -29,28 +28,28 @@
|
|
|
29
28
|
} :root {
|
|
30
29
|
--focus-color: var(--color-light-border-link);
|
|
31
30
|
} :root {
|
|
32
|
-
--steps-option-svg-color: var(--color-light-
|
|
33
|
-
--steps-dash-border: 2px solid var(--color-light-
|
|
34
|
-
} .
|
|
31
|
+
--steps-option-svg-color: var(--color-light-status-positive);
|
|
32
|
+
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
33
|
+
} .steps__step_1fcm4 {
|
|
35
34
|
display: flex;
|
|
36
35
|
outline: none
|
|
37
|
-
} .
|
|
36
|
+
} .steps__step_1fcm4:not(.steps__vertical_1fcm4) {
|
|
38
37
|
align-items: center;
|
|
39
|
-
} .
|
|
38
|
+
} .steps__step_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
40
39
|
cursor: pointer;
|
|
41
|
-
} .
|
|
40
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4:hover .steps__text_1fcm4 {
|
|
42
41
|
background: unset;
|
|
43
|
-
} .
|
|
42
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4 .steps__indicator_1fcm4 {
|
|
44
43
|
cursor: unset;
|
|
45
|
-
} .
|
|
44
|
+
} .steps__indicator_1fcm4 {
|
|
46
45
|
cursor: pointer;
|
|
47
46
|
display: flex;
|
|
48
47
|
align-items: center;
|
|
49
48
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
49
|
+
} .steps__indicator_1fcm4.steps__vertical_1fcm4 {
|
|
51
50
|
flex-direction: column;
|
|
52
51
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
52
|
+
} .steps__option_1fcm4 {
|
|
54
53
|
font-size: 14px;
|
|
55
54
|
line-height: 20px;
|
|
56
55
|
font-weight: 700;
|
|
@@ -58,30 +57,30 @@
|
|
|
58
57
|
display: flex;
|
|
59
58
|
align-items: center;
|
|
60
59
|
justify-content: center;
|
|
61
|
-
color: var(--color-light-
|
|
62
|
-
background: var(--color-light-
|
|
60
|
+
color: var(--color-light-text-primary);
|
|
61
|
+
background: var(--color-light-neutral-translucent-300);
|
|
63
62
|
min-width: 24px;
|
|
64
63
|
height: 24px;
|
|
65
64
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
65
|
+
} .steps__option_1fcm4.steps__vertical_1fcm4 {
|
|
67
66
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
67
|
+
} .steps__dash_1fcm4 {
|
|
69
68
|
flex: 1 1 auto;
|
|
70
69
|
min-width: 24px;
|
|
71
|
-
border-top: 2px solid var(--color-light-
|
|
70
|
+
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
72
71
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
72
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4 {
|
|
74
73
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
74
|
+
} .steps__dash_1fcm4.steps__vertical_1fcm4 {
|
|
76
75
|
min-width: unset;
|
|
77
76
|
min-height: 24px;
|
|
78
77
|
margin-right: 0;
|
|
79
78
|
margin-top: var(--gap-xs);
|
|
80
|
-
border-left: 2px solid var(--color-light-
|
|
79
|
+
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
81
80
|
border-top: none;
|
|
82
|
-
} .
|
|
81
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4.steps__vertical_1fcm4 {
|
|
83
82
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
83
|
+
} .steps__text_1fcm4 {
|
|
85
84
|
font-size: 16px;
|
|
86
85
|
line-height: 24px;
|
|
87
86
|
font-weight: 400;
|
|
@@ -91,38 +90,38 @@
|
|
|
91
90
|
color: var(--color-light-text-primary);
|
|
92
91
|
border-radius: var(--gap-xs);
|
|
93
92
|
height: min-content
|
|
94
|
-
} .
|
|
95
|
-
background: var(--color-light-
|
|
96
|
-
} .
|
|
97
|
-
background: var(--color-light-
|
|
98
|
-
} .
|
|
93
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
94
|
+
background: var(--color-light-transparent-default-hover);
|
|
95
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):active {
|
|
96
|
+
background: var(--color-light-transparent-default-press);
|
|
97
|
+
} .steps__focused_1fcm4 {
|
|
99
98
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
99
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
102
|
-
color: var(--color-light-
|
|
103
|
-
} .
|
|
104
|
-
color: var(--color-light-
|
|
105
|
-
background: var(--color-light-
|
|
106
|
-
} .
|
|
100
|
+
} .steps__selected_1fcm4 .steps__text_1fcm4 {
|
|
101
|
+
color: var(--color-light-text-primary);
|
|
102
|
+
} .steps__selected_1fcm4 .steps__option_1fcm4 {
|
|
103
|
+
color: var(--color-light-text-primary-inverted);
|
|
104
|
+
background: var(--color-light-neutral-1500);
|
|
105
|
+
} .steps__checkbox_1fcm4 {
|
|
107
106
|
display: flex;
|
|
108
107
|
justify-content: center;
|
|
109
108
|
align-items: center;
|
|
110
109
|
border-radius: var(--border-radius-circle);
|
|
111
110
|
width: 20px;
|
|
112
111
|
height: 20px;
|
|
113
|
-
border: 2px solid var(--color-light-
|
|
114
|
-
} .
|
|
112
|
+
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
113
|
+
} .steps__dot_1fcm4 {
|
|
115
114
|
width: 10px;
|
|
116
115
|
height: 10px;
|
|
117
116
|
border-radius: var(--border-radius-circle);
|
|
118
|
-
background: var(--color-light-
|
|
119
|
-
} .
|
|
120
|
-
border: 2px solid var(--color-light-
|
|
121
|
-
} .
|
|
122
|
-
background: var(--color-light-
|
|
123
|
-
} .
|
|
117
|
+
background: var(--color-light-neutral-translucent-300);
|
|
118
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 {
|
|
119
|
+
border: 2px solid var(--color-light-neutral-1500)
|
|
120
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 .steps__dot_1fcm4 {
|
|
121
|
+
background: var(--color-light-neutral-1500);
|
|
122
|
+
} .steps__option_1fcm4:not(.steps__error_1fcm4).steps__unordered_1fcm4 {
|
|
124
123
|
background: unset;
|
|
125
|
-
} .
|
|
124
|
+
} .steps__completedIndicator_1fcm4 > [class*='positive'] {
|
|
126
125
|
color: var(--steps-option-svg-color);
|
|
127
126
|
background-color: var(--steps-option-svg-color);
|
|
128
127
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Badge } from '@alfalab/core-components-badge/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"steps__component_11fe7"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var StepIndicator = function (_a) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j4zlv */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .steps__component_1o289 {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1o289.steps__vertical_1o289 {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j4zlv */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .steps__component_1o289 {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1o289.steps__vertical_1o289 {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/modern/Component.js
CHANGED
|
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
|
8
8
|
import './components/step-indicator/Component.js';
|
|
9
9
|
import '@alfalab/core-components-badge/modern';
|
|
10
10
|
|
|
11
|
-
const styles = {"component":"
|
|
11
|
+
const styles = {"component":"steps__component_1o289","vertical":"steps__vertical_1o289"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const Steps = ({ className, children, defaultActiveStep = 1, activeStep: activeStepProp, isMarkCompletedSteps = true, isVerticalAlign = false, ordered = true, interactive = true, checkIsStepDisabled, checkIsStepError, checkIsStepWarning, checkIsStepWaiting, checkIsStepPositive, checkIsStepCustom, onChange, dataTestId, }) => {
|
|
@@ -7,7 +7,7 @@ import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMI
|
|
|
7
7
|
import { StepIndicator } from '../step-indicator/Component.js';
|
|
8
8
|
import '@alfalab/core-components-badge/modern';
|
|
9
9
|
|
|
10
|
-
const styles = {"step":"
|
|
10
|
+
const styles = {"step":"steps__step_1fcm4","vertical":"steps__vertical_1fcm4","interactive":"steps__interactive_1fcm4","disabled":"steps__disabled_1fcm4","text":"steps__text_1fcm4","indicator":"steps__indicator_1fcm4","option":"steps__option_1fcm4","dash":"steps__dash_1fcm4","completed":"steps__completed_1fcm4","focused":"steps__focused_1fcm4","selected":"steps__selected_1fcm4","checkbox":"steps__checkbox_1fcm4","dot":"steps__dot_1fcm4","error":"steps__error_1fcm4","unordered":"steps__unordered_1fcm4","completedIndicator":"steps__completedIndicator_1fcm4"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Step = ({ children, stepNumber, isSelected, disabled, ordered, isPositive, isError, isWarning, isWaiting, customStepIndicator, isStepCompleted, onClick, interactive, isVerticalAlign, isNotLastStep, }) => {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yc90 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
-
--color-light-
|
|
6
|
-
--color-light-
|
|
7
|
-
--color-light-
|
|
8
|
-
--color-light-
|
|
9
|
-
--color-light-
|
|
10
|
-
--color-light-
|
|
11
|
-
--color-light-
|
|
12
|
-
--color-light-bg-primary-inverted-alpha-15: rgba(14, 14, 14, 0.15);
|
|
5
|
+
--color-light-neutral-1500: #0e0e0e;
|
|
6
|
+
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
7
|
+
--color-light-status-positive: #0cc44d;
|
|
8
|
+
--color-light-text-primary: #0e0e0e;
|
|
9
|
+
--color-light-text-primary-inverted: #fff;
|
|
10
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
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 */
|
|
13
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 */
|
|
14
13
|
} :root {
|
|
15
14
|
} :root {
|
|
@@ -29,28 +28,28 @@
|
|
|
29
28
|
} :root {
|
|
30
29
|
--focus-color: var(--color-light-border-link);
|
|
31
30
|
} :root {
|
|
32
|
-
--steps-option-svg-color: var(--color-light-
|
|
33
|
-
--steps-dash-border: 2px solid var(--color-light-
|
|
34
|
-
} .
|
|
31
|
+
--steps-option-svg-color: var(--color-light-status-positive);
|
|
32
|
+
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
33
|
+
} .steps__step_1fcm4 {
|
|
35
34
|
display: flex;
|
|
36
35
|
outline: none
|
|
37
|
-
} .
|
|
36
|
+
} .steps__step_1fcm4:not(.steps__vertical_1fcm4) {
|
|
38
37
|
align-items: center;
|
|
39
|
-
} .
|
|
38
|
+
} .steps__step_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
40
39
|
cursor: pointer;
|
|
41
|
-
} .
|
|
40
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4:hover .steps__text_1fcm4 {
|
|
42
41
|
background: unset;
|
|
43
|
-
} .
|
|
42
|
+
} .steps__step_1fcm4.steps__disabled_1fcm4 .steps__indicator_1fcm4 {
|
|
44
43
|
cursor: unset;
|
|
45
|
-
} .
|
|
44
|
+
} .steps__indicator_1fcm4 {
|
|
46
45
|
cursor: pointer;
|
|
47
46
|
display: flex;
|
|
48
47
|
align-items: center;
|
|
49
48
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
49
|
+
} .steps__indicator_1fcm4.steps__vertical_1fcm4 {
|
|
51
50
|
flex-direction: column;
|
|
52
51
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
52
|
+
} .steps__option_1fcm4 {
|
|
54
53
|
font-size: 14px;
|
|
55
54
|
line-height: 20px;
|
|
56
55
|
font-weight: 700;
|
|
@@ -58,30 +57,30 @@
|
|
|
58
57
|
display: flex;
|
|
59
58
|
align-items: center;
|
|
60
59
|
justify-content: center;
|
|
61
|
-
color: var(--color-light-
|
|
62
|
-
background: var(--color-light-
|
|
60
|
+
color: var(--color-light-text-primary);
|
|
61
|
+
background: var(--color-light-neutral-translucent-300);
|
|
63
62
|
min-width: 24px;
|
|
64
63
|
height: 24px;
|
|
65
64
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
65
|
+
} .steps__option_1fcm4.steps__vertical_1fcm4 {
|
|
67
66
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
67
|
+
} .steps__dash_1fcm4 {
|
|
69
68
|
flex: 1 1 auto;
|
|
70
69
|
min-width: 24px;
|
|
71
|
-
border-top: 2px solid var(--color-light-
|
|
70
|
+
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
72
71
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
72
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4 {
|
|
74
73
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
74
|
+
} .steps__dash_1fcm4.steps__vertical_1fcm4 {
|
|
76
75
|
min-width: unset;
|
|
77
76
|
min-height: 24px;
|
|
78
77
|
margin-right: 0;
|
|
79
78
|
margin-top: var(--gap-xs);
|
|
80
|
-
border-left: 2px solid var(--color-light-
|
|
79
|
+
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
81
80
|
border-top: none;
|
|
82
|
-
} .
|
|
81
|
+
} .steps__dash_1fcm4.steps__completed_1fcm4.steps__vertical_1fcm4 {
|
|
83
82
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
83
|
+
} .steps__text_1fcm4 {
|
|
85
84
|
font-size: 16px;
|
|
86
85
|
line-height: 24px;
|
|
87
86
|
font-weight: 400;
|
|
@@ -91,38 +90,38 @@
|
|
|
91
90
|
color: var(--color-light-text-primary);
|
|
92
91
|
border-radius: var(--gap-xs);
|
|
93
92
|
height: min-content
|
|
94
|
-
} .
|
|
95
|
-
background: var(--color-light-
|
|
96
|
-
} .
|
|
97
|
-
background: var(--color-light-
|
|
98
|
-
} .
|
|
93
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):hover {
|
|
94
|
+
background: var(--color-light-transparent-default-hover);
|
|
95
|
+
} .steps__text_1fcm4.steps__interactive_1fcm4:not(.steps__disabled_1fcm4):active {
|
|
96
|
+
background: var(--color-light-transparent-default-press);
|
|
97
|
+
} .steps__focused_1fcm4 {
|
|
99
98
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
99
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
102
|
-
color: var(--color-light-
|
|
103
|
-
} .
|
|
104
|
-
color: var(--color-light-
|
|
105
|
-
background: var(--color-light-
|
|
106
|
-
} .
|
|
100
|
+
} .steps__selected_1fcm4 .steps__text_1fcm4 {
|
|
101
|
+
color: var(--color-light-text-primary);
|
|
102
|
+
} .steps__selected_1fcm4 .steps__option_1fcm4 {
|
|
103
|
+
color: var(--color-light-text-primary-inverted);
|
|
104
|
+
background: var(--color-light-neutral-1500);
|
|
105
|
+
} .steps__checkbox_1fcm4 {
|
|
107
106
|
display: flex;
|
|
108
107
|
justify-content: center;
|
|
109
108
|
align-items: center;
|
|
110
109
|
border-radius: var(--border-radius-circle);
|
|
111
110
|
width: 20px;
|
|
112
111
|
height: 20px;
|
|
113
|
-
border: 2px solid var(--color-light-
|
|
114
|
-
} .
|
|
112
|
+
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
113
|
+
} .steps__dot_1fcm4 {
|
|
115
114
|
width: 10px;
|
|
116
115
|
height: 10px;
|
|
117
116
|
border-radius: var(--border-radius-circle);
|
|
118
|
-
background: var(--color-light-
|
|
119
|
-
} .
|
|
120
|
-
border: 2px solid var(--color-light-
|
|
121
|
-
} .
|
|
122
|
-
background: var(--color-light-
|
|
123
|
-
} .
|
|
117
|
+
background: var(--color-light-neutral-translucent-300);
|
|
118
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 {
|
|
119
|
+
border: 2px solid var(--color-light-neutral-1500)
|
|
120
|
+
} .steps__selected_1fcm4 .steps__checkbox_1fcm4 .steps__dot_1fcm4 {
|
|
121
|
+
background: var(--color-light-neutral-1500);
|
|
122
|
+
} .steps__option_1fcm4:not(.steps__error_1fcm4).steps__unordered_1fcm4 {
|
|
124
123
|
background: unset;
|
|
125
|
-
} .
|
|
124
|
+
} .steps__completedIndicator_1fcm4 > [class*='positive'] {
|
|
126
125
|
color: var(--steps-option-svg-color);
|
|
127
126
|
background-color: var(--steps-option-svg-color);
|
|
128
127
|
}
|
|
@@ -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_11fe7"};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j4zlv */
|
|
2
2
|
:root {
|
|
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 */
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .
|
|
17
|
+
} .steps__component_1o289 {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1o289.steps__vertical_1o289 {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-steps",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-badge": "^5.
|
|
17
|
+
"@alfalab/core-components-badge": "^5.5.0",
|
|
18
18
|
"@alfalab/hooks": "^1.13.0",
|
|
19
|
-
"@alfalab/icons-glyph": "^2.
|
|
19
|
+
"@alfalab/icons-glyph": "^2.139.0",
|
|
20
20
|
"classnames": "^2.3.1",
|
|
21
21
|
"tslib": "^2.4.0"
|
|
22
22
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '@alfalab/core-components-themes/src/default.css';
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
--steps-option-svg-color: var(--color-light-
|
|
5
|
-
--steps-dash-border: 2px solid var(--color-light-
|
|
4
|
+
--steps-option-svg-color: var(--color-light-status-positive);
|
|
5
|
+
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.step {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
|
-
color: var(--color-light-
|
|
52
|
-
background: var(--color-light-
|
|
51
|
+
color: var(--color-light-text-primary);
|
|
52
|
+
background: var(--color-light-neutral-translucent-300);
|
|
53
53
|
min-width: 24px;
|
|
54
54
|
height: 24px;
|
|
55
55
|
border-radius: var(--border-radius-circle);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.dash {
|
|
63
63
|
flex: 1 1 auto;
|
|
64
64
|
min-width: 24px;
|
|
65
|
-
border-top: 2px solid var(--color-light-
|
|
65
|
+
border-top: 2px solid var(--color-light-neutral-translucent-300);
|
|
66
66
|
margin-right: var(--gap-xs);
|
|
67
67
|
|
|
68
68
|
&.completed {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
min-height: 24px;
|
|
75
75
|
margin-right: 0;
|
|
76
76
|
margin-top: var(--gap-xs);
|
|
77
|
-
border-left: 2px solid var(--color-light-
|
|
77
|
+
border-left: 2px solid var(--color-light-neutral-translucent-300);
|
|
78
78
|
border-top: none;
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
|
|
95
95
|
&.interactive:not(.disabled) {
|
|
96
96
|
&:hover {
|
|
97
|
-
background: var(--color-light-
|
|
97
|
+
background: var(--color-light-transparent-default-hover);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&:active {
|
|
101
|
-
background: var(--color-light-
|
|
101
|
+
background: var(--color-light-transparent-default-press);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
|
|
111
111
|
.selected {
|
|
112
112
|
& .text {
|
|
113
|
-
color: var(--color-light-
|
|
113
|
+
color: var(--color-light-text-primary);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
& .option {
|
|
117
|
-
color: var(--color-light-
|
|
118
|
-
background: var(--color-light-
|
|
117
|
+
color: var(--color-light-text-primary-inverted);
|
|
118
|
+
background: var(--color-light-neutral-1500);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -126,21 +126,21 @@
|
|
|
126
126
|
border-radius: var(--border-radius-circle);
|
|
127
127
|
width: 20px;
|
|
128
128
|
height: 20px;
|
|
129
|
-
border: 2px solid var(--color-light-
|
|
129
|
+
border: 2px solid var(--color-light-neutral-translucent-300);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.dot {
|
|
133
133
|
width: 10px;
|
|
134
134
|
height: 10px;
|
|
135
135
|
border-radius: var(--border-radius-circle);
|
|
136
|
-
background: var(--color-light-
|
|
136
|
+
background: var(--color-light-neutral-translucent-300);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.selected .checkbox {
|
|
140
|
-
border: 2px solid var(--color-light-
|
|
140
|
+
border: 2px solid var(--color-light-neutral-1500);
|
|
141
141
|
|
|
142
142
|
& .dot {
|
|
143
|
-
background: var(--color-light-
|
|
143
|
+
background: var(--color-light-neutral-1500);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|