@alfalab/core-components-steps 1.1.4 → 1.1.6

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 CHANGED
@@ -3,6 +3,7 @@
3
3
  var React = require('react');
4
4
  var cn = require('classnames');
5
5
  var components_step_Component = require('./components/step/Component.js');
6
+ require('tslib');
6
7
  require('@alfalab/hooks');
7
8
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
8
9
  require('@alfalab/icons-glyph/ClockMIcon');
@@ -15,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
18
 
18
- var styles = {"component":"steps__component_1iwpf","vertical":"steps__vertical_1iwpf"};
19
+ var styles = {"component":"steps__component_tjr9k","vertical":"steps__vertical_tjr9k"};
19
20
  require('./index.css')
20
21
 
21
22
  var Steps = function (_a) {
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var tslib = require('tslib');
3
4
  var React = require('react');
4
5
  var cn = require('classnames');
5
6
  var hooks = require('@alfalab/hooks');
@@ -14,34 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
17
 
17
- /******************************************************************************
18
- Copyright (c) Microsoft Corporation.
19
-
20
- Permission to use, copy, modify, and/or distribute this software for any
21
- purpose with or without fee is hereby granted.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
- PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */
31
- var __assign = function () {
32
- __assign = Object.assign || function __assign(t) {
33
- for (var s, i = 1, n = arguments.length; i < n; i++) {
34
- s = arguments[i];
35
- for (var p in s)
36
- if (Object.prototype.hasOwnProperty.call(s, p))
37
- t[p] = s[p];
38
- }
39
- return t;
40
- };
41
- return __assign.apply(this, arguments);
42
- };
43
-
44
- var styles = {"step":"steps__step_e4b5n","vertical":"steps__vertical_e4b5n","interactive":"steps__interactive_e4b5n","disabled":"steps__disabled_e4b5n","text":"steps__text_e4b5n","indicator":"steps__indicator_e4b5n","option":"steps__option_e4b5n","dash":"steps__dash_e4b5n","completed":"steps__completed_e4b5n","focused":"steps__focused_e4b5n","selected":"steps__selected_e4b5n","checkbox":"steps__checkbox_e4b5n","dot":"steps__dot_e4b5n","error":"steps__error_e4b5n","unordered":"steps__unordered_e4b5n","completedIndicator":"steps__completedIndicator_e4b5n"};
18
+ var styles = {"step":"steps__step_y0cu8","vertical":"steps__vertical_y0cu8","interactive":"steps__interactive_y0cu8","disabled":"steps__disabled_y0cu8","text":"steps__text_y0cu8","indicator":"steps__indicator_y0cu8","option":"steps__option_y0cu8","dash":"steps__dash_y0cu8","completed":"steps__completed_y0cu8","focused":"steps__focused_y0cu8","selected":"steps__selected_y0cu8","checkbox":"steps__checkbox_y0cu8","dot":"steps__dot_y0cu8","error":"steps__error_y0cu8","unordered":"steps__unordered_y0cu8","completedIndicator":"steps__completedIndicator_y0cu8"};
45
19
  require('./index.css')
46
20
 
47
21
  var Step = function (_a) {
@@ -50,7 +24,7 @@ var Step = function (_a) {
50
24
  var stepRef = React.useRef(null);
51
25
  var focused = hooks.useFocus(stepRef, 'keyboard')[0];
52
26
  var handleButtonClick = function () {
53
- if (!disabled && onClick) {
27
+ if (!disabled && interactive && onClick) {
54
28
  onClick(stepNumber);
55
29
  }
56
30
  };
@@ -66,7 +40,7 @@ var Step = function (_a) {
66
40
  };
67
41
  var getStepIndicator = function () {
68
42
  if (customStepIndicator) {
69
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, __assign({}, customStepIndicator));
43
+ return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, tslib.__assign({}, customStepIndicator));
70
44
  }
71
45
  if (isError) {
72
46
  return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
@@ -1,5 +1,6 @@
1
- /* hash: 1teo0 */
1
+ /* hash: 1a6jp */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-border-link: #007aff;
4
5
  --color-light-border-primary: #dbdee1;
5
6
  --color-light-graphic-positive: #2fc26e;
@@ -9,57 +10,47 @@
9
10
  --color-light-text-primary: #0b1f35;
10
11
  --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
11
12
  --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
12
- }
13
- :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
14
16
 
15
17
  /* Hard */
16
18
 
17
19
  /* Up */
18
20
 
19
21
  /* Hard up */
20
- }
21
- :root {
22
+ } :root {
23
+ --border-radius-circle: 50%;
24
+ } :root {
22
25
  --gap-3xs: 2px;
23
26
  --gap-2xs: 4px;
24
27
  --gap-xs: 8px;
25
- }
26
- :root {
27
- --border-radius-circle: 50%;
28
- }
29
- :root {
28
+ } :root {
29
+ } :root {
30
30
  --focus-color: var(--color-light-border-link);
31
- }
32
- :root {
31
+ } :root {
33
32
  --steps-option-svg-color: var(--color-light-graphic-positive);
34
33
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
35
- }
36
- .steps__step_e4b5n {
34
+ } .steps__step_y0cu8 {
37
35
  display: flex;
38
36
  outline: none
39
- }
40
- .steps__step_e4b5n:not(.steps__vertical_e4b5n) {
37
+ } .steps__step_y0cu8:not(.steps__vertical_y0cu8) {
41
38
  align-items: center;
42
- }
43
- .steps__step_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
39
+ } .steps__step_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
44
40
  cursor: pointer;
45
- }
46
- .steps__step_e4b5n.steps__disabled_e4b5n:hover .steps__text_e4b5n {
41
+ } .steps__step_y0cu8.steps__disabled_y0cu8:hover .steps__text_y0cu8 {
47
42
  background: unset;
48
- }
49
- .steps__step_e4b5n.steps__disabled_e4b5n .steps__indicator_e4b5n {
43
+ } .steps__step_y0cu8.steps__disabled_y0cu8 .steps__indicator_y0cu8 {
50
44
  cursor: unset;
51
- }
52
- .steps__indicator_e4b5n {
45
+ } .steps__indicator_y0cu8 {
53
46
  cursor: pointer;
54
47
  display: flex;
55
48
  align-items: center;
56
49
  margin-right: var(--gap-2xs)
57
- }
58
- .steps__indicator_e4b5n.steps__vertical_e4b5n {
50
+ } .steps__indicator_y0cu8.steps__vertical_y0cu8 {
59
51
  flex-direction: column;
60
52
  margin-right: var(--gap-xs);
61
- }
62
- .steps__option_e4b5n {
53
+ } .steps__option_y0cu8 {
63
54
  font-size: 14px;
64
55
  line-height: 20px;
65
56
  font-weight: 700;
@@ -72,31 +63,25 @@
72
63
  min-width: 24px;
73
64
  height: 24px;
74
65
  border-radius: var(--border-radius-circle)
75
- }
76
- .steps__option_e4b5n.steps__vertical_e4b5n {
66
+ } .steps__option_y0cu8.steps__vertical_y0cu8 {
77
67
  margin-top: var(--gap-xs);
78
- }
79
- .steps__dash_e4b5n {
68
+ } .steps__dash_y0cu8 {
80
69
  flex: 1 1 auto;
81
70
  min-width: 24px;
82
71
  border-top: 2px solid var(--color-light-border-primary);
83
72
  margin-right: var(--gap-xs)
84
- }
85
- .steps__dash_e4b5n.steps__completed_e4b5n {
73
+ } .steps__dash_y0cu8.steps__completed_y0cu8 {
86
74
  border-top: var(--steps-dash-border);
87
- }
88
- .steps__dash_e4b5n.steps__vertical_e4b5n {
75
+ } .steps__dash_y0cu8.steps__vertical_y0cu8 {
89
76
  min-width: unset;
90
77
  min-height: 24px;
91
78
  margin-right: 0;
92
79
  margin-top: var(--gap-xs);
93
80
  border-left: 2px solid var(--color-light-border-primary);
94
81
  border-top: none;
95
- }
96
- .steps__dash_e4b5n.steps__completed_e4b5n.steps__vertical_e4b5n {
82
+ } .steps__dash_y0cu8.steps__completed_y0cu8.steps__vertical_y0cu8 {
97
83
  border-left: var(--steps-dash-border);
98
- }
99
- .steps__text_e4b5n {
84
+ } .steps__text_y0cu8 {
100
85
  font-size: 16px;
101
86
  line-height: 24px;
102
87
  font-weight: 400;
@@ -106,25 +91,19 @@
106
91
  color: var(--color-light-text-primary);
107
92
  border-radius: var(--gap-xs);
108
93
  height: min-content
109
- }
110
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
94
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
111
95
  background: var(--color-light-bg-primary-inverted-alpha-7);
112
- }
113
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):active {
96
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):active {
114
97
  background: var(--color-light-bg-primary-inverted-alpha-15);
115
- }
116
- .steps__focused_e4b5n {
98
+ } .steps__focused_y0cu8 {
117
99
  outline: var(--gap-3xs) solid var(--focus-color);
118
100
  outline-offset: var(--gap-3xs);
119
- }
120
- .steps__selected_e4b5n .steps__text_e4b5n {
101
+ } .steps__selected_y0cu8 .steps__text_y0cu8 {
121
102
  color: var(--color-light-graphic-primary);
122
- }
123
- .steps__selected_e4b5n .steps__option_e4b5n {
103
+ } .steps__selected_y0cu8 .steps__option_y0cu8 {
124
104
  color: var(--color-light-graphic-primary-inverted);
125
105
  background: var(--color-light-graphic-primary);
126
- }
127
- .steps__checkbox_e4b5n {
106
+ } .steps__checkbox_y0cu8 {
128
107
  display: flex;
129
108
  justify-content: center;
130
109
  align-items: center;
@@ -132,23 +111,18 @@
132
111
  width: 20px;
133
112
  height: 20px;
134
113
  border: 2px solid var(--color-light-graphic-quaternary);
135
- }
136
- .steps__dot_e4b5n {
114
+ } .steps__dot_y0cu8 {
137
115
  width: 10px;
138
116
  height: 10px;
139
117
  border-radius: var(--border-radius-circle);
140
118
  background: var(--color-light-graphic-quaternary);
141
- }
142
- .steps__selected_e4b5n .steps__checkbox_e4b5n {
119
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 {
143
120
  border: 2px solid var(--color-light-graphic-primary)
144
- }
145
- .steps__selected_e4b5n .steps__checkbox_e4b5n .steps__dot_e4b5n {
121
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 .steps__dot_y0cu8 {
146
122
  background: var(--color-light-graphic-primary);
147
- }
148
- .steps__option_e4b5n:not(.steps__error_e4b5n).steps__unordered_e4b5n {
123
+ } .steps__option_y0cu8:not(.steps__error_y0cu8).steps__unordered_y0cu8 {
149
124
  background: unset;
150
- }
151
- .steps__completedIndicator_e4b5n > [class*='positive'] {
125
+ } .steps__completedIndicator_y0cu8 > [class*='positive'] {
152
126
  color: var(--steps-option-svg-color);
153
127
  background-color: var(--steps-option-svg-color);
154
128
  }
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var components_step_Component = require('./Component.js');
4
+ require('tslib');
4
5
  require('react');
5
6
  require('classnames');
6
7
  require('@alfalab/hooks');
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"component":"steps__component_oex2k"};
12
+ var styles = {"component":"steps__component_7cufd"};
13
13
  require('./index.css')
14
14
 
15
15
  var StepIndicator = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 6m2l1 */
2
- .steps__component_oex2k {
1
+ /* hash: 1mhye */
2
+ .steps__component_7cufd {
3
3
  padding: 0;
4
4
  }
package/cssm/Component.js CHANGED
@@ -4,6 +4,7 @@ var React = require('react');
4
4
  var cn = require('classnames');
5
5
  var components_step_Component = require('./components/step/Component.js');
6
6
  var styles = require('./index.module.css');
7
+ require('tslib');
7
8
  require('@alfalab/hooks');
8
9
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
9
10
  require('@alfalab/icons-glyph/ClockMIcon');
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var tslib = require('tslib');
3
4
  var React = require('react');
4
5
  var cn = require('classnames');
5
6
  var hooks = require('@alfalab/hooks');
@@ -17,40 +18,13 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
19
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
19
20
 
20
- /******************************************************************************
21
- Copyright (c) Microsoft Corporation.
22
-
23
- Permission to use, copy, modify, and/or distribute this software for any
24
- purpose with or without fee is hereby granted.
25
-
26
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
27
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
28
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
29
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
30
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
31
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32
- PERFORMANCE OF THIS SOFTWARE.
33
- ***************************************************************************** */
34
- var __assign = function () {
35
- __assign = Object.assign || function __assign(t) {
36
- for (var s, i = 1, n = arguments.length; i < n; i++) {
37
- s = arguments[i];
38
- for (var p in s)
39
- if (Object.prototype.hasOwnProperty.call(s, p))
40
- t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
21
  var Step = function (_a) {
48
22
  var _b, _c, _d, _e;
49
23
  var children = _a.children, stepNumber = _a.stepNumber, isSelected = _a.isSelected, disabled = _a.disabled, ordered = _a.ordered, isPositive = _a.isPositive, isError = _a.isError, isWarning = _a.isWarning, isWaiting = _a.isWaiting, customStepIndicator = _a.customStepIndicator, isStepCompleted = _a.isStepCompleted, onClick = _a.onClick, interactive = _a.interactive, isVerticalAlign = _a.isVerticalAlign, isNotLastStep = _a.isNotLastStep;
50
24
  var stepRef = React.useRef(null);
51
25
  var focused = hooks.useFocus(stepRef, 'keyboard')[0];
52
26
  var handleButtonClick = function () {
53
- if (!disabled && onClick) {
27
+ if (!disabled && interactive && onClick) {
54
28
  onClick(stepNumber);
55
29
  }
56
30
  };
@@ -66,7 +40,7 @@ var Step = function (_a) {
66
40
  };
67
41
  var getStepIndicator = function () {
68
42
  if (customStepIndicator) {
69
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, __assign({}, customStepIndicator));
43
+ return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, tslib.__assign({}, customStepIndicator));
70
44
  }
71
45
  if (isError) {
72
46
  return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var components_step_Component = require('./Component.js');
4
+ require('tslib');
4
5
  require('react');
5
6
  require('classnames');
6
7
  require('@alfalab/hooks');
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
2
3
  --color-light-border-link: #007aff;
3
4
  --color-light-border-primary: #dbdee1;
4
5
  --color-light-graphic-positive: #2fc26e;
@@ -8,57 +9,47 @@
8
9
  --color-light-text-primary: #0b1f35;
9
10
  --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
10
11
  --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
11
- }
12
- :root {
12
+ } :root {
13
+ } :root {
14
+ } :root {
13
15
 
14
16
  /* Hard */
15
17
 
16
18
  /* Up */
17
19
 
18
20
  /* Hard up */
19
- }
20
- :root {
21
+ } :root {
22
+ --border-radius-circle: 50%;
23
+ } :root {
21
24
  --gap-3xs: 2px;
22
25
  --gap-2xs: 4px;
23
26
  --gap-xs: 8px;
24
- }
25
- :root {
26
- --border-radius-circle: 50%;
27
- }
28
- :root {
27
+ } :root {
28
+ } :root {
29
29
  --focus-color: var(--color-light-border-link);
30
- }
31
- :root {
30
+ } :root {
32
31
  --steps-option-svg-color: var(--color-light-graphic-positive);
33
32
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
34
- }
35
- .step {
33
+ } .step {
36
34
  display: flex;
37
35
  outline: none
38
- }
39
- .step:not(.vertical) {
36
+ } .step:not(.vertical) {
40
37
  align-items: center;
41
- }
42
- .step.interactive:not(.disabled):hover {
38
+ } .step.interactive:not(.disabled):hover {
43
39
  cursor: pointer;
44
- }
45
- .step.disabled:hover .text {
40
+ } .step.disabled:hover .text {
46
41
  background: unset;
47
- }
48
- .step.disabled .indicator {
42
+ } .step.disabled .indicator {
49
43
  cursor: unset;
50
- }
51
- .indicator {
44
+ } .indicator {
52
45
  cursor: pointer;
53
46
  display: flex;
54
47
  align-items: center;
55
48
  margin-right: var(--gap-2xs)
56
- }
57
- .indicator.vertical {
49
+ } .indicator.vertical {
58
50
  flex-direction: column;
59
51
  margin-right: var(--gap-xs);
60
- }
61
- .option {
52
+ } .option {
62
53
  font-size: 14px;
63
54
  line-height: 20px;
64
55
  font-weight: 700;
@@ -71,31 +62,25 @@
71
62
  min-width: 24px;
72
63
  height: 24px;
73
64
  border-radius: var(--border-radius-circle)
74
- }
75
- .option.vertical {
65
+ } .option.vertical {
76
66
  margin-top: var(--gap-xs);
77
- }
78
- .dash {
67
+ } .dash {
79
68
  flex: 1 1 auto;
80
69
  min-width: 24px;
81
70
  border-top: 2px solid var(--color-light-border-primary);
82
71
  margin-right: var(--gap-xs)
83
- }
84
- .dash.completed {
72
+ } .dash.completed {
85
73
  border-top: var(--steps-dash-border);
86
- }
87
- .dash.vertical {
74
+ } .dash.vertical {
88
75
  min-width: unset;
89
76
  min-height: 24px;
90
77
  margin-right: 0;
91
78
  margin-top: var(--gap-xs);
92
79
  border-left: 2px solid var(--color-light-border-primary);
93
80
  border-top: none;
94
- }
95
- .dash.completed.vertical {
81
+ } .dash.completed.vertical {
96
82
  border-left: var(--steps-dash-border);
97
- }
98
- .text {
83
+ } .text {
99
84
  font-size: 16px;
100
85
  line-height: 24px;
101
86
  font-weight: 400;
@@ -105,25 +90,19 @@
105
90
  color: var(--color-light-text-primary);
106
91
  border-radius: var(--gap-xs);
107
92
  height: min-content
108
- }
109
- .text.interactive:not(.disabled):hover {
93
+ } .text.interactive:not(.disabled):hover {
110
94
  background: var(--color-light-bg-primary-inverted-alpha-7);
111
- }
112
- .text.interactive:not(.disabled):active {
95
+ } .text.interactive:not(.disabled):active {
113
96
  background: var(--color-light-bg-primary-inverted-alpha-15);
114
- }
115
- .focused {
97
+ } .focused {
116
98
  outline: var(--gap-3xs) solid var(--focus-color);
117
99
  outline-offset: var(--gap-3xs);
118
- }
119
- .selected .text {
100
+ } .selected .text {
120
101
  color: var(--color-light-graphic-primary);
121
- }
122
- .selected .option {
102
+ } .selected .option {
123
103
  color: var(--color-light-graphic-primary-inverted);
124
104
  background: var(--color-light-graphic-primary);
125
- }
126
- .checkbox {
105
+ } .checkbox {
127
106
  display: flex;
128
107
  justify-content: center;
129
108
  align-items: center;
@@ -131,23 +110,18 @@
131
110
  width: 20px;
132
111
  height: 20px;
133
112
  border: 2px solid var(--color-light-graphic-quaternary);
134
- }
135
- .dot {
113
+ } .dot {
136
114
  width: 10px;
137
115
  height: 10px;
138
116
  border-radius: var(--border-radius-circle);
139
117
  background: var(--color-light-graphic-quaternary);
140
- }
141
- .selected .checkbox {
118
+ } .selected .checkbox {
142
119
  border: 2px solid var(--color-light-graphic-primary)
143
- }
144
- .selected .checkbox .dot {
120
+ } .selected .checkbox .dot {
145
121
  background: var(--color-light-graphic-primary);
146
- }
147
- .option:not(.error).unordered {
122
+ } .option:not(.error).unordered {
148
123
  background: unset;
149
- }
150
- .completedIndicator > [class*='positive'] {
124
+ } .completedIndicator > [class*='positive'] {
151
125
  color: var(--steps-option-svg-color);
152
126
  background-color: var(--steps-option-svg-color);
153
127
  }
package/cssm/index.js CHANGED
@@ -4,6 +4,7 @@ var Component = require('./Component.js');
4
4
  require('react');
5
5
  require('classnames');
6
6
  require('./components/step/Component.js');
7
+ require('tslib');
7
8
  require('@alfalab/hooks');
8
9
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
9
10
  require('@alfalab/icons-glyph/ClockMIcon');
@@ -1,17 +1,23 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
3
+ } :root {
4
+ } :root {
5
+ } :root {
2
6
 
3
7
  /* Hard */
4
8
 
5
9
  /* Up */
6
10
 
7
11
  /* Hard up */
8
- }
9
- .component {
12
+ } :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } .component {
10
17
  display: flex;
11
18
  align-items: center;
12
19
  flex-direction: row
13
- }
14
- .component.vertical {
20
+ } .component.vertical {
15
21
  flex-direction: column;
16
22
  align-items: flex-start;
17
23
  }
package/esm/Component.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Step } from './components/step/Component.js';
4
+ import 'tslib';
4
5
  import '@alfalab/hooks';
5
6
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
7
  import '@alfalab/icons-glyph/ClockMIcon';
@@ -8,7 +9,7 @@ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
8
9
  import './components/step-indicator/Component.js';
9
10
  import '@alfalab/core-components-badge/esm';
10
11
 
11
- var styles = {"component":"steps__component_1iwpf","vertical":"steps__vertical_1iwpf"};
12
+ var styles = {"component":"steps__component_tjr9k","vertical":"steps__vertical_tjr9k"};
12
13
  require('./index.css')
13
14
 
14
15
  var Steps = function (_a) {
@@ -1,3 +1,4 @@
1
+ import { __assign } from 'tslib';
1
2
  import React, { useRef } from 'react';
2
3
  import cn from 'classnames';
3
4
  import { useFocus } from '@alfalab/hooks';
@@ -7,34 +8,7 @@ import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMI
7
8
  import { StepIndicator } from '../step-indicator/Component.js';
8
9
  import '@alfalab/core-components-badge/esm';
9
10
 
10
- /******************************************************************************
11
- Copyright (c) Microsoft Corporation.
12
-
13
- Permission to use, copy, modify, and/or distribute this software for any
14
- purpose with or without fee is hereby granted.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
- PERFORMANCE OF THIS SOFTWARE.
23
- ***************************************************************************** */
24
- var __assign = function () {
25
- __assign = Object.assign || function __assign(t) {
26
- for (var s, i = 1, n = arguments.length; i < n; i++) {
27
- s = arguments[i];
28
- for (var p in s)
29
- if (Object.prototype.hasOwnProperty.call(s, p))
30
- t[p] = s[p];
31
- }
32
- return t;
33
- };
34
- return __assign.apply(this, arguments);
35
- };
36
-
37
- var styles = {"step":"steps__step_e4b5n","vertical":"steps__vertical_e4b5n","interactive":"steps__interactive_e4b5n","disabled":"steps__disabled_e4b5n","text":"steps__text_e4b5n","indicator":"steps__indicator_e4b5n","option":"steps__option_e4b5n","dash":"steps__dash_e4b5n","completed":"steps__completed_e4b5n","focused":"steps__focused_e4b5n","selected":"steps__selected_e4b5n","checkbox":"steps__checkbox_e4b5n","dot":"steps__dot_e4b5n","error":"steps__error_e4b5n","unordered":"steps__unordered_e4b5n","completedIndicator":"steps__completedIndicator_e4b5n"};
11
+ var styles = {"step":"steps__step_y0cu8","vertical":"steps__vertical_y0cu8","interactive":"steps__interactive_y0cu8","disabled":"steps__disabled_y0cu8","text":"steps__text_y0cu8","indicator":"steps__indicator_y0cu8","option":"steps__option_y0cu8","dash":"steps__dash_y0cu8","completed":"steps__completed_y0cu8","focused":"steps__focused_y0cu8","selected":"steps__selected_y0cu8","checkbox":"steps__checkbox_y0cu8","dot":"steps__dot_y0cu8","error":"steps__error_y0cu8","unordered":"steps__unordered_y0cu8","completedIndicator":"steps__completedIndicator_y0cu8"};
38
12
  require('./index.css')
39
13
 
40
14
  var Step = function (_a) {
@@ -43,7 +17,7 @@ var Step = function (_a) {
43
17
  var stepRef = useRef(null);
44
18
  var focused = useFocus(stepRef, 'keyboard')[0];
45
19
  var handleButtonClick = function () {
46
- if (!disabled && onClick) {
20
+ if (!disabled && interactive && onClick) {
47
21
  onClick(stepNumber);
48
22
  }
49
23
  };
@@ -1,5 +1,6 @@
1
- /* hash: 1teo0 */
1
+ /* hash: 1a6jp */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-border-link: #007aff;
4
5
  --color-light-border-primary: #dbdee1;
5
6
  --color-light-graphic-positive: #2fc26e;
@@ -9,57 +10,47 @@
9
10
  --color-light-text-primary: #0b1f35;
10
11
  --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
11
12
  --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
12
- }
13
- :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
14
16
 
15
17
  /* Hard */
16
18
 
17
19
  /* Up */
18
20
 
19
21
  /* Hard up */
20
- }
21
- :root {
22
+ } :root {
23
+ --border-radius-circle: 50%;
24
+ } :root {
22
25
  --gap-3xs: 2px;
23
26
  --gap-2xs: 4px;
24
27
  --gap-xs: 8px;
25
- }
26
- :root {
27
- --border-radius-circle: 50%;
28
- }
29
- :root {
28
+ } :root {
29
+ } :root {
30
30
  --focus-color: var(--color-light-border-link);
31
- }
32
- :root {
31
+ } :root {
33
32
  --steps-option-svg-color: var(--color-light-graphic-positive);
34
33
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
35
- }
36
- .steps__step_e4b5n {
34
+ } .steps__step_y0cu8 {
37
35
  display: flex;
38
36
  outline: none
39
- }
40
- .steps__step_e4b5n:not(.steps__vertical_e4b5n) {
37
+ } .steps__step_y0cu8:not(.steps__vertical_y0cu8) {
41
38
  align-items: center;
42
- }
43
- .steps__step_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
39
+ } .steps__step_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
44
40
  cursor: pointer;
45
- }
46
- .steps__step_e4b5n.steps__disabled_e4b5n:hover .steps__text_e4b5n {
41
+ } .steps__step_y0cu8.steps__disabled_y0cu8:hover .steps__text_y0cu8 {
47
42
  background: unset;
48
- }
49
- .steps__step_e4b5n.steps__disabled_e4b5n .steps__indicator_e4b5n {
43
+ } .steps__step_y0cu8.steps__disabled_y0cu8 .steps__indicator_y0cu8 {
50
44
  cursor: unset;
51
- }
52
- .steps__indicator_e4b5n {
45
+ } .steps__indicator_y0cu8 {
53
46
  cursor: pointer;
54
47
  display: flex;
55
48
  align-items: center;
56
49
  margin-right: var(--gap-2xs)
57
- }
58
- .steps__indicator_e4b5n.steps__vertical_e4b5n {
50
+ } .steps__indicator_y0cu8.steps__vertical_y0cu8 {
59
51
  flex-direction: column;
60
52
  margin-right: var(--gap-xs);
61
- }
62
- .steps__option_e4b5n {
53
+ } .steps__option_y0cu8 {
63
54
  font-size: 14px;
64
55
  line-height: 20px;
65
56
  font-weight: 700;
@@ -72,31 +63,25 @@
72
63
  min-width: 24px;
73
64
  height: 24px;
74
65
  border-radius: var(--border-radius-circle)
75
- }
76
- .steps__option_e4b5n.steps__vertical_e4b5n {
66
+ } .steps__option_y0cu8.steps__vertical_y0cu8 {
77
67
  margin-top: var(--gap-xs);
78
- }
79
- .steps__dash_e4b5n {
68
+ } .steps__dash_y0cu8 {
80
69
  flex: 1 1 auto;
81
70
  min-width: 24px;
82
71
  border-top: 2px solid var(--color-light-border-primary);
83
72
  margin-right: var(--gap-xs)
84
- }
85
- .steps__dash_e4b5n.steps__completed_e4b5n {
73
+ } .steps__dash_y0cu8.steps__completed_y0cu8 {
86
74
  border-top: var(--steps-dash-border);
87
- }
88
- .steps__dash_e4b5n.steps__vertical_e4b5n {
75
+ } .steps__dash_y0cu8.steps__vertical_y0cu8 {
89
76
  min-width: unset;
90
77
  min-height: 24px;
91
78
  margin-right: 0;
92
79
  margin-top: var(--gap-xs);
93
80
  border-left: 2px solid var(--color-light-border-primary);
94
81
  border-top: none;
95
- }
96
- .steps__dash_e4b5n.steps__completed_e4b5n.steps__vertical_e4b5n {
82
+ } .steps__dash_y0cu8.steps__completed_y0cu8.steps__vertical_y0cu8 {
97
83
  border-left: var(--steps-dash-border);
98
- }
99
- .steps__text_e4b5n {
84
+ } .steps__text_y0cu8 {
100
85
  font-size: 16px;
101
86
  line-height: 24px;
102
87
  font-weight: 400;
@@ -106,25 +91,19 @@
106
91
  color: var(--color-light-text-primary);
107
92
  border-radius: var(--gap-xs);
108
93
  height: min-content
109
- }
110
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
94
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
111
95
  background: var(--color-light-bg-primary-inverted-alpha-7);
112
- }
113
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):active {
96
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):active {
114
97
  background: var(--color-light-bg-primary-inverted-alpha-15);
115
- }
116
- .steps__focused_e4b5n {
98
+ } .steps__focused_y0cu8 {
117
99
  outline: var(--gap-3xs) solid var(--focus-color);
118
100
  outline-offset: var(--gap-3xs);
119
- }
120
- .steps__selected_e4b5n .steps__text_e4b5n {
101
+ } .steps__selected_y0cu8 .steps__text_y0cu8 {
121
102
  color: var(--color-light-graphic-primary);
122
- }
123
- .steps__selected_e4b5n .steps__option_e4b5n {
103
+ } .steps__selected_y0cu8 .steps__option_y0cu8 {
124
104
  color: var(--color-light-graphic-primary-inverted);
125
105
  background: var(--color-light-graphic-primary);
126
- }
127
- .steps__checkbox_e4b5n {
106
+ } .steps__checkbox_y0cu8 {
128
107
  display: flex;
129
108
  justify-content: center;
130
109
  align-items: center;
@@ -132,23 +111,18 @@
132
111
  width: 20px;
133
112
  height: 20px;
134
113
  border: 2px solid var(--color-light-graphic-quaternary);
135
- }
136
- .steps__dot_e4b5n {
114
+ } .steps__dot_y0cu8 {
137
115
  width: 10px;
138
116
  height: 10px;
139
117
  border-radius: var(--border-radius-circle);
140
118
  background: var(--color-light-graphic-quaternary);
141
- }
142
- .steps__selected_e4b5n .steps__checkbox_e4b5n {
119
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 {
143
120
  border: 2px solid var(--color-light-graphic-primary)
144
- }
145
- .steps__selected_e4b5n .steps__checkbox_e4b5n .steps__dot_e4b5n {
121
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 .steps__dot_y0cu8 {
146
122
  background: var(--color-light-graphic-primary);
147
- }
148
- .steps__option_e4b5n:not(.steps__error_e4b5n).steps__unordered_e4b5n {
123
+ } .steps__option_y0cu8:not(.steps__error_y0cu8).steps__unordered_y0cu8 {
149
124
  background: unset;
150
- }
151
- .steps__completedIndicator_e4b5n > [class*='positive'] {
125
+ } .steps__completedIndicator_y0cu8 > [class*='positive'] {
152
126
  color: var(--steps-option-svg-color);
153
127
  background-color: var(--steps-option-svg-color);
154
128
  }
@@ -1,4 +1,5 @@
1
1
  export { Step } from './Component.js';
2
+ import 'tslib';
2
3
  import 'react';
3
4
  import 'classnames';
4
5
  import '@alfalab/hooks';
@@ -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":"steps__component_oex2k"};
5
+ var styles = {"component":"steps__component_7cufd"};
6
6
  require('./index.css')
7
7
 
8
8
  var StepIndicator = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 6m2l1 */
2
- .steps__component_oex2k {
1
+ /* hash: 1mhye */
2
+ .steps__component_7cufd {
3
3
  padding: 0;
4
4
  }
package/esm/index.css CHANGED
@@ -1,18 +1,24 @@
1
- /* hash: kwtjc */
1
+ /* hash: ht7qu */
2
2
  :root {
3
+ } /* deprecated */ :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1iwpf {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_tjr9k {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1iwpf.steps__vertical_1iwpf {
21
+ } .steps__component_tjr9k.steps__vertical_tjr9k {
16
22
  flex-direction: column;
17
23
  align-items: flex-start;
18
24
  }
package/esm/index.js CHANGED
@@ -2,6 +2,7 @@ export { Steps } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import './components/step/Component.js';
5
+ import 'tslib';
5
6
  import '@alfalab/hooks';
6
7
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
7
8
  import '@alfalab/icons-glyph/ClockMIcon';
package/index.css CHANGED
@@ -1,18 +1,24 @@
1
- /* hash: kwtjc */
1
+ /* hash: ht7qu */
2
2
  :root {
3
+ } /* deprecated */ :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1iwpf {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_tjr9k {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1iwpf.steps__vertical_1iwpf {
21
+ } .steps__component_tjr9k.steps__vertical_tjr9k {
16
22
  flex-direction: column;
17
23
  align-items: flex-start;
18
24
  }
package/index.js CHANGED
@@ -4,6 +4,7 @@ var Component = require('./Component.js');
4
4
  require('react');
5
5
  require('classnames');
6
6
  require('./components/step/Component.js');
7
+ require('tslib');
7
8
  require('@alfalab/hooks');
8
9
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
9
10
  require('@alfalab/icons-glyph/ClockMIcon');
@@ -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":"steps__component_1iwpf","vertical":"steps__vertical_1iwpf"};
11
+ const styles = {"component":"steps__component_tjr9k","vertical":"steps__vertical_tjr9k"};
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,14 +7,14 @@ 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":"steps__step_e4b5n","vertical":"steps__vertical_e4b5n","interactive":"steps__interactive_e4b5n","disabled":"steps__disabled_e4b5n","text":"steps__text_e4b5n","indicator":"steps__indicator_e4b5n","option":"steps__option_e4b5n","dash":"steps__dash_e4b5n","completed":"steps__completed_e4b5n","focused":"steps__focused_e4b5n","selected":"steps__selected_e4b5n","checkbox":"steps__checkbox_e4b5n","dot":"steps__dot_e4b5n","error":"steps__error_e4b5n","unordered":"steps__unordered_e4b5n","completedIndicator":"steps__completedIndicator_e4b5n"};
10
+ const styles = {"step":"steps__step_y0cu8","vertical":"steps__vertical_y0cu8","interactive":"steps__interactive_y0cu8","disabled":"steps__disabled_y0cu8","text":"steps__text_y0cu8","indicator":"steps__indicator_y0cu8","option":"steps__option_y0cu8","dash":"steps__dash_y0cu8","completed":"steps__completed_y0cu8","focused":"steps__focused_y0cu8","selected":"steps__selected_y0cu8","checkbox":"steps__checkbox_y0cu8","dot":"steps__dot_y0cu8","error":"steps__error_y0cu8","unordered":"steps__unordered_y0cu8","completedIndicator":"steps__completedIndicator_y0cu8"};
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, }) => {
14
14
  const stepRef = useRef(null);
15
15
  const [focused] = useFocus(stepRef, 'keyboard');
16
16
  const handleButtonClick = () => {
17
- if (!disabled && onClick) {
17
+ if (!disabled && interactive && onClick) {
18
18
  onClick(stepNumber);
19
19
  }
20
20
  };
@@ -1,5 +1,6 @@
1
- /* hash: 1teo0 */
1
+ /* hash: 1a6jp */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-border-link: #007aff;
4
5
  --color-light-border-primary: #dbdee1;
5
6
  --color-light-graphic-positive: #2fc26e;
@@ -9,57 +10,47 @@
9
10
  --color-light-text-primary: #0b1f35;
10
11
  --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
11
12
  --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
12
- }
13
- :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
14
16
 
15
17
  /* Hard */
16
18
 
17
19
  /* Up */
18
20
 
19
21
  /* Hard up */
20
- }
21
- :root {
22
+ } :root {
23
+ --border-radius-circle: 50%;
24
+ } :root {
22
25
  --gap-3xs: 2px;
23
26
  --gap-2xs: 4px;
24
27
  --gap-xs: 8px;
25
- }
26
- :root {
27
- --border-radius-circle: 50%;
28
- }
29
- :root {
28
+ } :root {
29
+ } :root {
30
30
  --focus-color: var(--color-light-border-link);
31
- }
32
- :root {
31
+ } :root {
33
32
  --steps-option-svg-color: var(--color-light-graphic-positive);
34
33
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
35
- }
36
- .steps__step_e4b5n {
34
+ } .steps__step_y0cu8 {
37
35
  display: flex;
38
36
  outline: none
39
- }
40
- .steps__step_e4b5n:not(.steps__vertical_e4b5n) {
37
+ } .steps__step_y0cu8:not(.steps__vertical_y0cu8) {
41
38
  align-items: center;
42
- }
43
- .steps__step_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
39
+ } .steps__step_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
44
40
  cursor: pointer;
45
- }
46
- .steps__step_e4b5n.steps__disabled_e4b5n:hover .steps__text_e4b5n {
41
+ } .steps__step_y0cu8.steps__disabled_y0cu8:hover .steps__text_y0cu8 {
47
42
  background: unset;
48
- }
49
- .steps__step_e4b5n.steps__disabled_e4b5n .steps__indicator_e4b5n {
43
+ } .steps__step_y0cu8.steps__disabled_y0cu8 .steps__indicator_y0cu8 {
50
44
  cursor: unset;
51
- }
52
- .steps__indicator_e4b5n {
45
+ } .steps__indicator_y0cu8 {
53
46
  cursor: pointer;
54
47
  display: flex;
55
48
  align-items: center;
56
49
  margin-right: var(--gap-2xs)
57
- }
58
- .steps__indicator_e4b5n.steps__vertical_e4b5n {
50
+ } .steps__indicator_y0cu8.steps__vertical_y0cu8 {
59
51
  flex-direction: column;
60
52
  margin-right: var(--gap-xs);
61
- }
62
- .steps__option_e4b5n {
53
+ } .steps__option_y0cu8 {
63
54
  font-size: 14px;
64
55
  line-height: 20px;
65
56
  font-weight: 700;
@@ -72,31 +63,25 @@
72
63
  min-width: 24px;
73
64
  height: 24px;
74
65
  border-radius: var(--border-radius-circle)
75
- }
76
- .steps__option_e4b5n.steps__vertical_e4b5n {
66
+ } .steps__option_y0cu8.steps__vertical_y0cu8 {
77
67
  margin-top: var(--gap-xs);
78
- }
79
- .steps__dash_e4b5n {
68
+ } .steps__dash_y0cu8 {
80
69
  flex: 1 1 auto;
81
70
  min-width: 24px;
82
71
  border-top: 2px solid var(--color-light-border-primary);
83
72
  margin-right: var(--gap-xs)
84
- }
85
- .steps__dash_e4b5n.steps__completed_e4b5n {
73
+ } .steps__dash_y0cu8.steps__completed_y0cu8 {
86
74
  border-top: var(--steps-dash-border);
87
- }
88
- .steps__dash_e4b5n.steps__vertical_e4b5n {
75
+ } .steps__dash_y0cu8.steps__vertical_y0cu8 {
89
76
  min-width: unset;
90
77
  min-height: 24px;
91
78
  margin-right: 0;
92
79
  margin-top: var(--gap-xs);
93
80
  border-left: 2px solid var(--color-light-border-primary);
94
81
  border-top: none;
95
- }
96
- .steps__dash_e4b5n.steps__completed_e4b5n.steps__vertical_e4b5n {
82
+ } .steps__dash_y0cu8.steps__completed_y0cu8.steps__vertical_y0cu8 {
97
83
  border-left: var(--steps-dash-border);
98
- }
99
- .steps__text_e4b5n {
84
+ } .steps__text_y0cu8 {
100
85
  font-size: 16px;
101
86
  line-height: 24px;
102
87
  font-weight: 400;
@@ -106,25 +91,19 @@
106
91
  color: var(--color-light-text-primary);
107
92
  border-radius: var(--gap-xs);
108
93
  height: min-content
109
- }
110
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):hover {
94
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):hover {
111
95
  background: var(--color-light-bg-primary-inverted-alpha-7);
112
- }
113
- .steps__text_e4b5n.steps__interactive_e4b5n:not(.steps__disabled_e4b5n):active {
96
+ } .steps__text_y0cu8.steps__interactive_y0cu8:not(.steps__disabled_y0cu8):active {
114
97
  background: var(--color-light-bg-primary-inverted-alpha-15);
115
- }
116
- .steps__focused_e4b5n {
98
+ } .steps__focused_y0cu8 {
117
99
  outline: var(--gap-3xs) solid var(--focus-color);
118
100
  outline-offset: var(--gap-3xs);
119
- }
120
- .steps__selected_e4b5n .steps__text_e4b5n {
101
+ } .steps__selected_y0cu8 .steps__text_y0cu8 {
121
102
  color: var(--color-light-graphic-primary);
122
- }
123
- .steps__selected_e4b5n .steps__option_e4b5n {
103
+ } .steps__selected_y0cu8 .steps__option_y0cu8 {
124
104
  color: var(--color-light-graphic-primary-inverted);
125
105
  background: var(--color-light-graphic-primary);
126
- }
127
- .steps__checkbox_e4b5n {
106
+ } .steps__checkbox_y0cu8 {
128
107
  display: flex;
129
108
  justify-content: center;
130
109
  align-items: center;
@@ -132,23 +111,18 @@
132
111
  width: 20px;
133
112
  height: 20px;
134
113
  border: 2px solid var(--color-light-graphic-quaternary);
135
- }
136
- .steps__dot_e4b5n {
114
+ } .steps__dot_y0cu8 {
137
115
  width: 10px;
138
116
  height: 10px;
139
117
  border-radius: var(--border-radius-circle);
140
118
  background: var(--color-light-graphic-quaternary);
141
- }
142
- .steps__selected_e4b5n .steps__checkbox_e4b5n {
119
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 {
143
120
  border: 2px solid var(--color-light-graphic-primary)
144
- }
145
- .steps__selected_e4b5n .steps__checkbox_e4b5n .steps__dot_e4b5n {
121
+ } .steps__selected_y0cu8 .steps__checkbox_y0cu8 .steps__dot_y0cu8 {
146
122
  background: var(--color-light-graphic-primary);
147
- }
148
- .steps__option_e4b5n:not(.steps__error_e4b5n).steps__unordered_e4b5n {
123
+ } .steps__option_y0cu8:not(.steps__error_y0cu8).steps__unordered_y0cu8 {
149
124
  background: unset;
150
- }
151
- .steps__completedIndicator_e4b5n > [class*='positive'] {
125
+ } .steps__completedIndicator_y0cu8 > [class*='positive'] {
152
126
  color: var(--steps-option-svg-color);
153
127
  background-color: var(--steps-option-svg-color);
154
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":"steps__component_oex2k"};
5
+ const styles = {"component":"steps__component_7cufd"};
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 }));
@@ -1,4 +1,4 @@
1
- /* hash: 6m2l1 */
2
- .steps__component_oex2k {
1
+ /* hash: 1mhye */
2
+ .steps__component_7cufd {
3
3
  padding: 0;
4
4
  }
package/modern/index.css CHANGED
@@ -1,18 +1,24 @@
1
- /* hash: kwtjc */
1
+ /* hash: ht7qu */
2
2
  :root {
3
+ } /* deprecated */ :root {
4
+ } :root {
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1iwpf {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_tjr9k {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1iwpf.steps__vertical_1iwpf {
21
+ } .steps__component_tjr9k.steps__vertical_tjr9k {
16
22
  flex-direction: column;
17
23
  align-items: flex-start;
18
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-steps",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,9 +17,10 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-badge": "^5.0.0",
20
+ "@alfalab/core-components-badge": "^5.0.1",
21
21
  "@alfalab/hooks": "^1.13.0",
22
22
  "@alfalab/icons-glyph": "^2.89.0",
23
- "classnames": "^2.3.1"
23
+ "classnames": "^2.3.1",
24
+ "tslib": "^2.4.0"
24
25
  }
25
26
  }