@alfalab/core-components-steps 1.1.9 → 1.2.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 +2 -2
- package/Component.js +1 -1
- package/components/step/Component.d.ts +1 -1
- package/components/step/Component.js +1 -1
- package/components/step/index.css +26 -26
- package/components/step-indicator/Component.js +1 -1
- package/components/step-indicator/index.css +2 -2
- package/cssm/Component.d.ts +2 -2
- package/cssm/components/step/Component.d.ts +1 -1
- package/esm/Component.d.ts +2 -2
- package/esm/Component.js +1 -1
- package/esm/components/step/Component.d.ts +1 -1
- package/esm/components/step/Component.js +1 -1
- package/esm/components/step/index.css +26 -26
- 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.d.ts +2 -2
- package/modern/Component.js +1 -1
- package/modern/components/step/Component.d.ts +1 -1
- package/modern/components/step/Component.js +1 -1
- package/modern/components/step/index.css +26 -26
- 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 +2 -5
- package/send-stats.js +0 -82
package/Component.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ type StepsProps = {
|
|
|
72
72
|
/**
|
|
73
73
|
* Кастомный метод для установки кастомного индикатора шага
|
|
74
74
|
* @param stepNumber - номер шага
|
|
75
|
-
* @return Объект StepIndicatorProps { className, content, iconColor }
|
|
75
|
+
* @return Объект StepIndicatorProps { className, content, iconColor } или null
|
|
76
76
|
*/
|
|
77
|
-
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps;
|
|
77
|
+
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;
|
|
78
78
|
/**
|
|
79
79
|
* Обработчик клика на шаг
|
|
80
80
|
* @param stepNumber - номер активного шага
|
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_1f08b","vertical":"steps__vertical_1f08b"};
|
|
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_a1mj1","vertical":"steps__vertical_a1mj1","interactive":"steps__interactive_a1mj1","disabled":"steps__disabled_a1mj1","text":"steps__text_a1mj1","indicator":"steps__indicator_a1mj1","option":"steps__option_a1mj1","dash":"steps__dash_a1mj1","completed":"steps__completed_a1mj1","focused":"steps__focused_a1mj1","selected":"steps__selected_a1mj1","checkbox":"steps__checkbox_a1mj1","dot":"steps__dot_a1mj1","error":"steps__error_a1mj1","unordered":"steps__unordered_a1mj1","completedIndicator":"steps__completedIndicator_a1mj1"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var Step = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1in2w */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
} :root {
|
|
32
32
|
--steps-option-svg-color: var(--color-light-graphic-positive);
|
|
33
33
|
--steps-dash-border: 2px solid var(--color-light-graphic-positive);
|
|
34
|
-
} .
|
|
34
|
+
} .steps__step_a1mj1 {
|
|
35
35
|
display: flex;
|
|
36
36
|
outline: none
|
|
37
|
-
} .
|
|
37
|
+
} .steps__step_a1mj1:not(.steps__vertical_a1mj1) {
|
|
38
38
|
align-items: center;
|
|
39
|
-
} .
|
|
39
|
+
} .steps__step_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
40
40
|
cursor: pointer;
|
|
41
|
-
} .
|
|
41
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1:hover .steps__text_a1mj1 {
|
|
42
42
|
background: unset;
|
|
43
|
-
} .
|
|
43
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1 .steps__indicator_a1mj1 {
|
|
44
44
|
cursor: unset;
|
|
45
|
-
} .
|
|
45
|
+
} .steps__indicator_a1mj1 {
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
50
|
+
} .steps__indicator_a1mj1.steps__vertical_a1mj1 {
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
53
|
+
} .steps__option_a1mj1 {
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
line-height: 20px;
|
|
56
56
|
font-weight: 700;
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
min-width: 24px;
|
|
64
64
|
height: 24px;
|
|
65
65
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
66
|
+
} .steps__option_a1mj1.steps__vertical_a1mj1 {
|
|
67
67
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
68
|
+
} .steps__dash_a1mj1 {
|
|
69
69
|
flex: 1 1 auto;
|
|
70
70
|
min-width: 24px;
|
|
71
71
|
border-top: 2px solid var(--color-light-border-primary);
|
|
72
72
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
73
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1 {
|
|
74
74
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
75
|
+
} .steps__dash_a1mj1.steps__vertical_a1mj1 {
|
|
76
76
|
min-width: unset;
|
|
77
77
|
min-height: 24px;
|
|
78
78
|
margin-right: 0;
|
|
79
79
|
margin-top: var(--gap-xs);
|
|
80
80
|
border-left: 2px solid var(--color-light-border-primary);
|
|
81
81
|
border-top: none;
|
|
82
|
-
} .
|
|
82
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1.steps__vertical_a1mj1 {
|
|
83
83
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
84
|
+
} .steps__text_a1mj1 {
|
|
85
85
|
font-size: 16px;
|
|
86
86
|
line-height: 24px;
|
|
87
87
|
font-weight: 400;
|
|
@@ -91,19 +91,19 @@
|
|
|
91
91
|
color: var(--color-light-text-primary);
|
|
92
92
|
border-radius: var(--gap-xs);
|
|
93
93
|
height: min-content
|
|
94
|
-
} .
|
|
94
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
95
95
|
background: var(--color-light-bg-primary-inverted-alpha-7);
|
|
96
|
-
} .
|
|
96
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):active {
|
|
97
97
|
background: var(--color-light-bg-primary-inverted-alpha-15);
|
|
98
|
-
} .
|
|
98
|
+
} .steps__focused_a1mj1 {
|
|
99
99
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
100
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
101
|
+
} .steps__selected_a1mj1 .steps__text_a1mj1 {
|
|
102
102
|
color: var(--color-light-graphic-primary);
|
|
103
|
-
} .
|
|
103
|
+
} .steps__selected_a1mj1 .steps__option_a1mj1 {
|
|
104
104
|
color: var(--color-light-graphic-primary-inverted);
|
|
105
105
|
background: var(--color-light-graphic-primary);
|
|
106
|
-
} .
|
|
106
|
+
} .steps__checkbox_a1mj1 {
|
|
107
107
|
display: flex;
|
|
108
108
|
justify-content: center;
|
|
109
109
|
align-items: center;
|
|
@@ -111,18 +111,18 @@
|
|
|
111
111
|
width: 20px;
|
|
112
112
|
height: 20px;
|
|
113
113
|
border: 2px solid var(--color-light-graphic-quaternary);
|
|
114
|
-
} .
|
|
114
|
+
} .steps__dot_a1mj1 {
|
|
115
115
|
width: 10px;
|
|
116
116
|
height: 10px;
|
|
117
117
|
border-radius: var(--border-radius-circle);
|
|
118
118
|
background: var(--color-light-graphic-quaternary);
|
|
119
|
-
} .
|
|
119
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 {
|
|
120
120
|
border: 2px solid var(--color-light-graphic-primary)
|
|
121
|
-
} .
|
|
121
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 .steps__dot_a1mj1 {
|
|
122
122
|
background: var(--color-light-graphic-primary);
|
|
123
|
-
} .
|
|
123
|
+
} .steps__option_a1mj1:not(.steps__error_a1mj1).steps__unordered_a1mj1 {
|
|
124
124
|
background: unset;
|
|
125
|
-
} .
|
|
125
|
+
} .steps__completedIndicator_a1mj1 > [class*='positive'] {
|
|
126
126
|
color: var(--steps-option-svg-color);
|
|
127
127
|
background-color: var(--steps-option-svg-color);
|
|
128
128
|
}
|
|
@@ -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_1gant"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var StepIndicator = function (_a) {
|
package/cssm/Component.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ type StepsProps = {
|
|
|
72
72
|
/**
|
|
73
73
|
* Кастомный метод для установки кастомного индикатора шага
|
|
74
74
|
* @param stepNumber - номер шага
|
|
75
|
-
* @return Объект StepIndicatorProps { className, content, iconColor }
|
|
75
|
+
* @return Объект StepIndicatorProps { className, content, iconColor } или null
|
|
76
76
|
*/
|
|
77
|
-
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps;
|
|
77
|
+
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;
|
|
78
78
|
/**
|
|
79
79
|
* Обработчик клика на шаг
|
|
80
80
|
* @param stepNumber - номер активного шага
|
package/esm/Component.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ type StepsProps = {
|
|
|
72
72
|
/**
|
|
73
73
|
* Кастомный метод для установки кастомного индикатора шага
|
|
74
74
|
* @param stepNumber - номер шага
|
|
75
|
-
* @return Объект StepIndicatorProps { className, content, iconColor }
|
|
75
|
+
* @return Объект StepIndicatorProps { className, content, iconColor } или null
|
|
76
76
|
*/
|
|
77
|
-
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps;
|
|
77
|
+
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;
|
|
78
78
|
/**
|
|
79
79
|
* Обработчик клика на шаг
|
|
80
80
|
* @param stepNumber - номер активного шага
|
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_1f08b","vertical":"steps__vertical_1f08b"};
|
|
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_a1mj1","vertical":"steps__vertical_a1mj1","interactive":"steps__interactive_a1mj1","disabled":"steps__disabled_a1mj1","text":"steps__text_a1mj1","indicator":"steps__indicator_a1mj1","option":"steps__option_a1mj1","dash":"steps__dash_a1mj1","completed":"steps__completed_a1mj1","focused":"steps__focused_a1mj1","selected":"steps__selected_a1mj1","checkbox":"steps__checkbox_a1mj1","dot":"steps__dot_a1mj1","error":"steps__error_a1mj1","unordered":"steps__unordered_a1mj1","completedIndicator":"steps__completedIndicator_a1mj1"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Step = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1in2w */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
} :root {
|
|
32
32
|
--steps-option-svg-color: var(--color-light-graphic-positive);
|
|
33
33
|
--steps-dash-border: 2px solid var(--color-light-graphic-positive);
|
|
34
|
-
} .
|
|
34
|
+
} .steps__step_a1mj1 {
|
|
35
35
|
display: flex;
|
|
36
36
|
outline: none
|
|
37
|
-
} .
|
|
37
|
+
} .steps__step_a1mj1:not(.steps__vertical_a1mj1) {
|
|
38
38
|
align-items: center;
|
|
39
|
-
} .
|
|
39
|
+
} .steps__step_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
40
40
|
cursor: pointer;
|
|
41
|
-
} .
|
|
41
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1:hover .steps__text_a1mj1 {
|
|
42
42
|
background: unset;
|
|
43
|
-
} .
|
|
43
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1 .steps__indicator_a1mj1 {
|
|
44
44
|
cursor: unset;
|
|
45
|
-
} .
|
|
45
|
+
} .steps__indicator_a1mj1 {
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
50
|
+
} .steps__indicator_a1mj1.steps__vertical_a1mj1 {
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
53
|
+
} .steps__option_a1mj1 {
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
line-height: 20px;
|
|
56
56
|
font-weight: 700;
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
min-width: 24px;
|
|
64
64
|
height: 24px;
|
|
65
65
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
66
|
+
} .steps__option_a1mj1.steps__vertical_a1mj1 {
|
|
67
67
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
68
|
+
} .steps__dash_a1mj1 {
|
|
69
69
|
flex: 1 1 auto;
|
|
70
70
|
min-width: 24px;
|
|
71
71
|
border-top: 2px solid var(--color-light-border-primary);
|
|
72
72
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
73
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1 {
|
|
74
74
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
75
|
+
} .steps__dash_a1mj1.steps__vertical_a1mj1 {
|
|
76
76
|
min-width: unset;
|
|
77
77
|
min-height: 24px;
|
|
78
78
|
margin-right: 0;
|
|
79
79
|
margin-top: var(--gap-xs);
|
|
80
80
|
border-left: 2px solid var(--color-light-border-primary);
|
|
81
81
|
border-top: none;
|
|
82
|
-
} .
|
|
82
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1.steps__vertical_a1mj1 {
|
|
83
83
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
84
|
+
} .steps__text_a1mj1 {
|
|
85
85
|
font-size: 16px;
|
|
86
86
|
line-height: 24px;
|
|
87
87
|
font-weight: 400;
|
|
@@ -91,19 +91,19 @@
|
|
|
91
91
|
color: var(--color-light-text-primary);
|
|
92
92
|
border-radius: var(--gap-xs);
|
|
93
93
|
height: min-content
|
|
94
|
-
} .
|
|
94
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
95
95
|
background: var(--color-light-bg-primary-inverted-alpha-7);
|
|
96
|
-
} .
|
|
96
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):active {
|
|
97
97
|
background: var(--color-light-bg-primary-inverted-alpha-15);
|
|
98
|
-
} .
|
|
98
|
+
} .steps__focused_a1mj1 {
|
|
99
99
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
100
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
101
|
+
} .steps__selected_a1mj1 .steps__text_a1mj1 {
|
|
102
102
|
color: var(--color-light-graphic-primary);
|
|
103
|
-
} .
|
|
103
|
+
} .steps__selected_a1mj1 .steps__option_a1mj1 {
|
|
104
104
|
color: var(--color-light-graphic-primary-inverted);
|
|
105
105
|
background: var(--color-light-graphic-primary);
|
|
106
|
-
} .
|
|
106
|
+
} .steps__checkbox_a1mj1 {
|
|
107
107
|
display: flex;
|
|
108
108
|
justify-content: center;
|
|
109
109
|
align-items: center;
|
|
@@ -111,18 +111,18 @@
|
|
|
111
111
|
width: 20px;
|
|
112
112
|
height: 20px;
|
|
113
113
|
border: 2px solid var(--color-light-graphic-quaternary);
|
|
114
|
-
} .
|
|
114
|
+
} .steps__dot_a1mj1 {
|
|
115
115
|
width: 10px;
|
|
116
116
|
height: 10px;
|
|
117
117
|
border-radius: var(--border-radius-circle);
|
|
118
118
|
background: var(--color-light-graphic-quaternary);
|
|
119
|
-
} .
|
|
119
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 {
|
|
120
120
|
border: 2px solid var(--color-light-graphic-primary)
|
|
121
|
-
} .
|
|
121
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 .steps__dot_a1mj1 {
|
|
122
122
|
background: var(--color-light-graphic-primary);
|
|
123
|
-
} .
|
|
123
|
+
} .steps__option_a1mj1:not(.steps__error_a1mj1).steps__unordered_a1mj1 {
|
|
124
124
|
background: unset;
|
|
125
|
-
} .
|
|
125
|
+
} .steps__completedIndicator_a1mj1 > [class*='positive'] {
|
|
126
126
|
color: var(--steps-option-svg-color);
|
|
127
127
|
background-color: var(--steps-option-svg-color);
|
|
128
128
|
}
|
|
@@ -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_1gant"};
|
|
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: 3g6be */
|
|
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_1f08b {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1f08b.steps__vertical_1f08b {
|
|
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: 3g6be */
|
|
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_1f08b {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1f08b.steps__vertical_1f08b {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/modern/Component.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ type StepsProps = {
|
|
|
72
72
|
/**
|
|
73
73
|
* Кастомный метод для установки кастомного индикатора шага
|
|
74
74
|
* @param stepNumber - номер шага
|
|
75
|
-
* @return Объект StepIndicatorProps { className, content, iconColor }
|
|
75
|
+
* @return Объект StepIndicatorProps { className, content, iconColor } или null
|
|
76
76
|
*/
|
|
77
|
-
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps;
|
|
77
|
+
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;
|
|
78
78
|
/**
|
|
79
79
|
* Обработчик клика на шаг
|
|
80
80
|
* @param stepNumber - номер активного шага
|
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_1f08b","vertical":"steps__vertical_1f08b"};
|
|
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_a1mj1","vertical":"steps__vertical_a1mj1","interactive":"steps__interactive_a1mj1","disabled":"steps__disabled_a1mj1","text":"steps__text_a1mj1","indicator":"steps__indicator_a1mj1","option":"steps__option_a1mj1","dash":"steps__dash_a1mj1","completed":"steps__completed_a1mj1","focused":"steps__focused_a1mj1","selected":"steps__selected_a1mj1","checkbox":"steps__checkbox_a1mj1","dot":"steps__dot_a1mj1","error":"steps__error_a1mj1","unordered":"steps__unordered_a1mj1","completedIndicator":"steps__completedIndicator_a1mj1"};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1in2w */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
} :root {
|
|
32
32
|
--steps-option-svg-color: var(--color-light-graphic-positive);
|
|
33
33
|
--steps-dash-border: 2px solid var(--color-light-graphic-positive);
|
|
34
|
-
} .
|
|
34
|
+
} .steps__step_a1mj1 {
|
|
35
35
|
display: flex;
|
|
36
36
|
outline: none
|
|
37
|
-
} .
|
|
37
|
+
} .steps__step_a1mj1:not(.steps__vertical_a1mj1) {
|
|
38
38
|
align-items: center;
|
|
39
|
-
} .
|
|
39
|
+
} .steps__step_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
40
40
|
cursor: pointer;
|
|
41
|
-
} .
|
|
41
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1:hover .steps__text_a1mj1 {
|
|
42
42
|
background: unset;
|
|
43
|
-
} .
|
|
43
|
+
} .steps__step_a1mj1.steps__disabled_a1mj1 .steps__indicator_a1mj1 {
|
|
44
44
|
cursor: unset;
|
|
45
|
-
} .
|
|
45
|
+
} .steps__indicator_a1mj1 {
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
margin-right: var(--gap-2xs)
|
|
50
|
-
} .
|
|
50
|
+
} .steps__indicator_a1mj1.steps__vertical_a1mj1 {
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
|
-
} .
|
|
53
|
+
} .steps__option_a1mj1 {
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
line-height: 20px;
|
|
56
56
|
font-weight: 700;
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
min-width: 24px;
|
|
64
64
|
height: 24px;
|
|
65
65
|
border-radius: var(--border-radius-circle)
|
|
66
|
-
} .
|
|
66
|
+
} .steps__option_a1mj1.steps__vertical_a1mj1 {
|
|
67
67
|
margin-top: var(--gap-xs);
|
|
68
|
-
} .
|
|
68
|
+
} .steps__dash_a1mj1 {
|
|
69
69
|
flex: 1 1 auto;
|
|
70
70
|
min-width: 24px;
|
|
71
71
|
border-top: 2px solid var(--color-light-border-primary);
|
|
72
72
|
margin-right: var(--gap-xs)
|
|
73
|
-
} .
|
|
73
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1 {
|
|
74
74
|
border-top: var(--steps-dash-border);
|
|
75
|
-
} .
|
|
75
|
+
} .steps__dash_a1mj1.steps__vertical_a1mj1 {
|
|
76
76
|
min-width: unset;
|
|
77
77
|
min-height: 24px;
|
|
78
78
|
margin-right: 0;
|
|
79
79
|
margin-top: var(--gap-xs);
|
|
80
80
|
border-left: 2px solid var(--color-light-border-primary);
|
|
81
81
|
border-top: none;
|
|
82
|
-
} .
|
|
82
|
+
} .steps__dash_a1mj1.steps__completed_a1mj1.steps__vertical_a1mj1 {
|
|
83
83
|
border-left: var(--steps-dash-border);
|
|
84
|
-
} .
|
|
84
|
+
} .steps__text_a1mj1 {
|
|
85
85
|
font-size: 16px;
|
|
86
86
|
line-height: 24px;
|
|
87
87
|
font-weight: 400;
|
|
@@ -91,19 +91,19 @@
|
|
|
91
91
|
color: var(--color-light-text-primary);
|
|
92
92
|
border-radius: var(--gap-xs);
|
|
93
93
|
height: min-content
|
|
94
|
-
} .
|
|
94
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):hover {
|
|
95
95
|
background: var(--color-light-bg-primary-inverted-alpha-7);
|
|
96
|
-
} .
|
|
96
|
+
} .steps__text_a1mj1.steps__interactive_a1mj1:not(.steps__disabled_a1mj1):active {
|
|
97
97
|
background: var(--color-light-bg-primary-inverted-alpha-15);
|
|
98
|
-
} .
|
|
98
|
+
} .steps__focused_a1mj1 {
|
|
99
99
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
100
100
|
outline-offset: var(--gap-3xs);
|
|
101
|
-
} .
|
|
101
|
+
} .steps__selected_a1mj1 .steps__text_a1mj1 {
|
|
102
102
|
color: var(--color-light-graphic-primary);
|
|
103
|
-
} .
|
|
103
|
+
} .steps__selected_a1mj1 .steps__option_a1mj1 {
|
|
104
104
|
color: var(--color-light-graphic-primary-inverted);
|
|
105
105
|
background: var(--color-light-graphic-primary);
|
|
106
|
-
} .
|
|
106
|
+
} .steps__checkbox_a1mj1 {
|
|
107
107
|
display: flex;
|
|
108
108
|
justify-content: center;
|
|
109
109
|
align-items: center;
|
|
@@ -111,18 +111,18 @@
|
|
|
111
111
|
width: 20px;
|
|
112
112
|
height: 20px;
|
|
113
113
|
border: 2px solid var(--color-light-graphic-quaternary);
|
|
114
|
-
} .
|
|
114
|
+
} .steps__dot_a1mj1 {
|
|
115
115
|
width: 10px;
|
|
116
116
|
height: 10px;
|
|
117
117
|
border-radius: var(--border-radius-circle);
|
|
118
118
|
background: var(--color-light-graphic-quaternary);
|
|
119
|
-
} .
|
|
119
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 {
|
|
120
120
|
border: 2px solid var(--color-light-graphic-primary)
|
|
121
|
-
} .
|
|
121
|
+
} .steps__selected_a1mj1 .steps__checkbox_a1mj1 .steps__dot_a1mj1 {
|
|
122
122
|
background: var(--color-light-graphic-primary);
|
|
123
|
-
} .
|
|
123
|
+
} .steps__option_a1mj1:not(.steps__error_a1mj1).steps__unordered_a1mj1 {
|
|
124
124
|
background: unset;
|
|
125
|
-
} .
|
|
125
|
+
} .steps__completedIndicator_a1mj1 > [class*='positive'] {
|
|
126
126
|
color: var(--steps-option-svg-color);
|
|
127
127
|
background-color: var(--steps-option-svg-color);
|
|
128
128
|
}
|
|
@@ -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_1gant"};
|
|
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: 3g6be */
|
|
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_1f08b {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
flex-direction: row
|
|
21
|
-
} .
|
|
21
|
+
} .steps__component_1f08b.steps__vertical_1f08b {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-steps",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
|
-
},
|
|
12
9
|
"publishConfig": {
|
|
13
10
|
"access": "public",
|
|
14
11
|
"directory": "dist"
|
|
@@ -17,7 +14,7 @@
|
|
|
17
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
15
|
},
|
|
19
16
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-badge": "^5.1.
|
|
17
|
+
"@alfalab/core-components-badge": "^5.1.1",
|
|
21
18
|
"@alfalab/hooks": "^1.13.0",
|
|
22
19
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
23
20
|
"classnames": "^2.3.1",
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|