@alfalab/core-components-steps 1.1.1 → 1.1.3

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.
Files changed (36) hide show
  1. package/Component.js +10 -12
  2. package/components/step/Component.js +20 -22
  3. package/components/step/index.css +32 -29
  4. package/components/step/index.js +3 -5
  5. package/components/step-indicator/Component.js +5 -7
  6. package/components/step-indicator/index.css +2 -2
  7. package/components/step-indicator/index.js +1 -3
  8. package/cssm/Component.js +12 -14
  9. package/cssm/components/step/Component.js +36 -38
  10. package/cssm/components/step/index.js +3 -5
  11. package/cssm/components/step/index.module.css +6 -3
  12. package/cssm/components/step-indicator/Component.js +5 -7
  13. package/cssm/components/step-indicator/index.js +1 -3
  14. package/cssm/index.js +3 -5
  15. package/esm/Component.js +3 -3
  16. package/esm/components/step/Component.js +4 -4
  17. package/esm/components/step/index.css +32 -29
  18. package/esm/components/step/index.js +3 -3
  19. package/esm/components/step-indicator/Component.js +1 -1
  20. package/esm/components/step-indicator/index.css +2 -2
  21. package/esm/components/step-indicator/index.js +1 -1
  22. package/esm/index.css +3 -3
  23. package/esm/index.js +3 -3
  24. package/index.css +3 -3
  25. package/index.js +3 -5
  26. package/modern/Component.js +4 -4
  27. package/modern/components/step/Component.js +4 -4
  28. package/modern/components/step/index.css +32 -29
  29. package/modern/components/step/index.js +3 -3
  30. package/modern/components/step-indicator/Component.js +2 -4
  31. package/modern/components/step-indicator/index.css +2 -2
  32. package/modern/components/step-indicator/index.js +1 -1
  33. package/modern/index.css +3 -3
  34. package/modern/index.js +4 -4
  35. package/package.json +2 -2
  36. package/send-stats.js +1 -1
@@ -22,6 +22,9 @@
22
22
  --gap-2xs: 4px;
23
23
  --gap-xs: 8px;
24
24
  }
25
+ :root {
26
+ --border-radius-circle: 50%;
27
+ }
25
28
  :root {
26
29
  --focus-color: var(--color-light-border-link);
27
30
  }
@@ -67,7 +70,7 @@
67
70
  background: var(--color-light-graphic-quaternary);
68
71
  min-width: 24px;
69
72
  height: 24px;
70
- border-radius: 50%
73
+ border-radius: var(--border-radius-circle)
71
74
  }
72
75
  .option.vertical {
73
76
  margin-top: var(--gap-xs);
@@ -124,7 +127,7 @@
124
127
  display: flex;
125
128
  justify-content: center;
126
129
  align-items: center;
127
- border-radius: 50%;
130
+ border-radius: var(--border-radius-circle);
128
131
  width: 20px;
129
132
  height: 20px;
130
133
  border: 2px solid var(--color-light-graphic-quaternary);
@@ -132,7 +135,7 @@
132
135
  .dot {
133
136
  width: 10px;
134
137
  height: 10px;
135
- border-radius: 50%;
138
+ border-radius: var(--border-radius-circle);
136
139
  background: var(--color-light-graphic-quaternary);
137
140
  }
138
141
  .selected .checkbox {
@@ -1,21 +1,19 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var React = require('react');
6
4
  var cn = require('classnames');
7
5
  var coreComponentsBadge = require('@alfalab/core-components-badge/cssm');
8
6
  var styles = require('./index.module.css');
9
7
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
9
 
12
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
- var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
14
- var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
+ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
15
13
 
16
14
  var StepIndicator = function (_a) {
17
15
  var content = _a.content, iconColor = _a.iconColor, className = _a.className;
18
- return (React__default['default'].createElement(coreComponentsBadge.Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn__default['default'](styles__default['default'].component, className), content: content }));
16
+ return (React__default.default.createElement(coreComponentsBadge.Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn__default.default(styles__default.default.component, className), content: content }));
19
17
  };
20
18
 
21
19
  exports.StepIndicator = StepIndicator;
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
3
+ var components_stepIndicator_Component = require('./Component.js');
5
4
  require('react');
6
5
  require('classnames');
7
6
  require('@alfalab/core-components-badge/cssm');
8
7
  require('./index.module.css');
9
- var components_stepIndicator_Component = require('./Component.js');
10
8
 
11
9
 
12
10
 
package/cssm/index.js CHANGED
@@ -1,20 +1,18 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
3
+ var Component = require('./Component.js');
5
4
  require('react');
6
5
  require('classnames');
7
6
  require('./components/step/Component.js');
8
7
  require('@alfalab/hooks');
9
8
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
10
- require('@alfalab/icons-glyph/ExclamationCircleMIcon');
11
9
  require('@alfalab/icons-glyph/ClockMIcon');
10
+ require('@alfalab/icons-glyph/ExclamationCircleMIcon');
11
+ require('./components/step-indicator/Component.js');
12
12
  require('@alfalab/core-components-badge/cssm');
13
13
  require('./components/step-indicator/index.module.css');
14
- require('./components/step-indicator/Component.js');
15
14
  require('./components/step/index.module.css');
16
15
  require('./index.module.css');
17
- var Component = require('./Component.js');
18
16
 
19
17
 
20
18
 
package/esm/Component.js CHANGED
@@ -3,12 +3,12 @@ import cn from 'classnames';
3
3
  import { Step } from './components/step/Component.js';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
- import '@alfalab/icons-glyph/ExclamationCircleMIcon';
7
6
  import '@alfalab/icons-glyph/ClockMIcon';
8
- import '@alfalab/core-components-badge/esm';
7
+ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
9
8
  import './components/step-indicator/Component.js';
9
+ import '@alfalab/core-components-badge/esm';
10
10
 
11
- var styles = {"component":"steps__component_87mpb","vertical":"steps__vertical_87mpb"};
11
+ var styles = {"component":"steps__component_1qx39","vertical":"steps__vertical_1qx39"};
12
12
  require('./index.css')
13
13
 
14
14
  var Steps = function (_a) {
@@ -2,12 +2,12 @@ import React, { useRef } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { useFocus } from '@alfalab/hooks';
4
4
  import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
5
- import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';
6
5
  import { ClockMIcon } from '@alfalab/icons-glyph/ClockMIcon';
7
- import '@alfalab/core-components-badge/esm';
6
+ import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';
8
7
  import { StepIndicator } from '../step-indicator/Component.js';
8
+ import '@alfalab/core-components-badge/esm';
9
9
 
10
- /*! *****************************************************************************
10
+ /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
12
12
 
13
13
  Permission to use, copy, modify, and/or distribute this software for any
@@ -34,7 +34,7 @@ var __assign = function () {
34
34
  return __assign.apply(this, arguments);
35
35
  };
36
36
 
37
- var styles = {"step":"steps__step_js9jf","vertical":"steps__vertical_js9jf","interactive":"steps__interactive_js9jf","disabled":"steps__disabled_js9jf","text":"steps__text_js9jf","indicator":"steps__indicator_js9jf","option":"steps__option_js9jf","dash":"steps__dash_js9jf","completed":"steps__completed_js9jf","focused":"steps__focused_js9jf","selected":"steps__selected_js9jf","checkbox":"steps__checkbox_js9jf","dot":"steps__dot_js9jf","error":"steps__error_js9jf","unordered":"steps__unordered_js9jf","completedIndicator":"steps__completedIndicator_js9jf"};
37
+ var styles = {"step":"steps__step_1wzux","vertical":"steps__vertical_1wzux","interactive":"steps__interactive_1wzux","disabled":"steps__disabled_1wzux","text":"steps__text_1wzux","indicator":"steps__indicator_1wzux","option":"steps__option_1wzux","dash":"steps__dash_1wzux","completed":"steps__completed_1wzux","focused":"steps__focused_1wzux","selected":"steps__selected_1wzux","checkbox":"steps__checkbox_1wzux","dot":"steps__dot_1wzux","error":"steps__error_1wzux","unordered":"steps__unordered_1wzux","completedIndicator":"steps__completedIndicator_1wzux"};
38
38
  require('./index.css')
39
39
 
40
40
  var Step = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: lfrzu */
1
+ /* hash: 9mw7p */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -23,6 +23,9 @@
23
23
  --gap-2xs: 4px;
24
24
  --gap-xs: 8px;
25
25
  }
26
+ :root {
27
+ --border-radius-circle: 50%;
28
+ }
26
29
  :root {
27
30
  --focus-color: var(--color-light-border-link);
28
31
  }
@@ -30,33 +33,33 @@
30
33
  --steps-option-svg-color: var(--color-light-graphic-positive);
31
34
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
32
35
  }
33
- .steps__step_js9jf {
36
+ .steps__step_1wzux {
34
37
  display: flex;
35
38
  outline: none
36
39
  }
37
- .steps__step_js9jf:not(.steps__vertical_js9jf) {
40
+ .steps__step_1wzux:not(.steps__vertical_1wzux) {
38
41
  align-items: center;
39
42
  }
40
- .steps__step_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):hover {
43
+ .steps__step_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
41
44
  cursor: pointer;
42
45
  }
43
- .steps__step_js9jf.steps__disabled_js9jf:hover .steps__text_js9jf {
46
+ .steps__step_1wzux.steps__disabled_1wzux:hover .steps__text_1wzux {
44
47
  background: unset;
45
48
  }
46
- .steps__step_js9jf.steps__disabled_js9jf .steps__indicator_js9jf {
49
+ .steps__step_1wzux.steps__disabled_1wzux .steps__indicator_1wzux {
47
50
  cursor: unset;
48
51
  }
49
- .steps__indicator_js9jf {
52
+ .steps__indicator_1wzux {
50
53
  cursor: pointer;
51
54
  display: flex;
52
55
  align-items: center;
53
56
  margin-right: var(--gap-2xs)
54
57
  }
55
- .steps__indicator_js9jf.steps__vertical_js9jf {
58
+ .steps__indicator_1wzux.steps__vertical_1wzux {
56
59
  flex-direction: column;
57
60
  margin-right: var(--gap-xs);
58
61
  }
59
- .steps__option_js9jf {
62
+ .steps__option_1wzux {
60
63
  font-size: 14px;
61
64
  line-height: 20px;
62
65
  font-weight: 700;
@@ -68,21 +71,21 @@
68
71
  background: var(--color-light-graphic-quaternary);
69
72
  min-width: 24px;
70
73
  height: 24px;
71
- border-radius: 50%
74
+ border-radius: var(--border-radius-circle)
72
75
  }
73
- .steps__option_js9jf.steps__vertical_js9jf {
76
+ .steps__option_1wzux.steps__vertical_1wzux {
74
77
  margin-top: var(--gap-xs);
75
78
  }
76
- .steps__dash_js9jf {
79
+ .steps__dash_1wzux {
77
80
  flex: 1 1 auto;
78
81
  min-width: 24px;
79
82
  border-top: 2px solid var(--color-light-border-primary);
80
83
  margin-right: var(--gap-xs)
81
84
  }
82
- .steps__dash_js9jf.steps__completed_js9jf {
85
+ .steps__dash_1wzux.steps__completed_1wzux {
83
86
  border-top: var(--steps-dash-border);
84
87
  }
85
- .steps__dash_js9jf.steps__vertical_js9jf {
88
+ .steps__dash_1wzux.steps__vertical_1wzux {
86
89
  min-width: unset;
87
90
  min-height: 24px;
88
91
  margin-right: 0;
@@ -90,10 +93,10 @@
90
93
  border-left: 2px solid var(--color-light-border-primary);
91
94
  border-top: none;
92
95
  }
93
- .steps__dash_js9jf.steps__completed_js9jf.steps__vertical_js9jf {
96
+ .steps__dash_1wzux.steps__completed_1wzux.steps__vertical_1wzux {
94
97
  border-left: var(--steps-dash-border);
95
98
  }
96
- .steps__text_js9jf {
99
+ .steps__text_1wzux {
97
100
  font-size: 16px;
98
101
  line-height: 24px;
99
102
  font-weight: 400;
@@ -104,48 +107,48 @@
104
107
  border-radius: var(--gap-xs);
105
108
  height: min-content
106
109
  }
107
- .steps__text_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):hover {
110
+ .steps__text_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
108
111
  background: var(--color-light-bg-primary-inverted-alpha-7);
109
112
  }
110
- .steps__text_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):active {
113
+ .steps__text_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):active {
111
114
  background: var(--color-light-bg-primary-inverted-alpha-15);
112
115
  }
113
- .steps__focused_js9jf {
116
+ .steps__focused_1wzux {
114
117
  outline: var(--gap-3xs) solid var(--focus-color);
115
118
  outline-offset: var(--gap-3xs);
116
119
  }
117
- .steps__selected_js9jf .steps__text_js9jf {
120
+ .steps__selected_1wzux .steps__text_1wzux {
118
121
  color: var(--color-light-graphic-primary);
119
122
  }
120
- .steps__selected_js9jf .steps__option_js9jf {
123
+ .steps__selected_1wzux .steps__option_1wzux {
121
124
  color: var(--color-light-graphic-primary-inverted);
122
125
  background: var(--color-light-graphic-primary);
123
126
  }
124
- .steps__checkbox_js9jf {
127
+ .steps__checkbox_1wzux {
125
128
  display: flex;
126
129
  justify-content: center;
127
130
  align-items: center;
128
- border-radius: 50%;
131
+ border-radius: var(--border-radius-circle);
129
132
  width: 20px;
130
133
  height: 20px;
131
134
  border: 2px solid var(--color-light-graphic-quaternary);
132
135
  }
133
- .steps__dot_js9jf {
136
+ .steps__dot_1wzux {
134
137
  width: 10px;
135
138
  height: 10px;
136
- border-radius: 50%;
139
+ border-radius: var(--border-radius-circle);
137
140
  background: var(--color-light-graphic-quaternary);
138
141
  }
139
- .steps__selected_js9jf .steps__checkbox_js9jf {
142
+ .steps__selected_1wzux .steps__checkbox_1wzux {
140
143
  border: 2px solid var(--color-light-graphic-primary)
141
144
  }
142
- .steps__selected_js9jf .steps__checkbox_js9jf .steps__dot_js9jf {
145
+ .steps__selected_1wzux .steps__checkbox_1wzux .steps__dot_1wzux {
143
146
  background: var(--color-light-graphic-primary);
144
147
  }
145
- .steps__option_js9jf:not(.steps__error_js9jf).steps__unordered_js9jf {
148
+ .steps__option_1wzux:not(.steps__error_1wzux).steps__unordered_1wzux {
146
149
  background: unset;
147
150
  }
148
- .steps__completedIndicator_js9jf > [class*='positive'] {
151
+ .steps__completedIndicator_1wzux > [class*='positive'] {
149
152
  color: var(--steps-option-svg-color);
150
153
  background-color: var(--steps-option-svg-color);
151
154
  }
@@ -1,9 +1,9 @@
1
+ export { Step } from './Component.js';
1
2
  import 'react';
2
3
  import 'classnames';
3
- export { Step } from './Component.js';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
- import '@alfalab/icons-glyph/ExclamationCircleMIcon';
7
6
  import '@alfalab/icons-glyph/ClockMIcon';
8
- import '@alfalab/core-components-badge/esm';
7
+ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
9
8
  import '../step-indicator/Component.js';
9
+ import '@alfalab/core-components-badge/esm';
@@ -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_w5s8e"};
5
+ var styles = {"component":"steps__component_89css"};
6
6
  require('./index.css')
7
7
 
8
8
  var StepIndicator = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xoamc */
2
- .steps__component_w5s8e {
1
+ /* hash: lveu7 */
2
+ .steps__component_89css {
3
3
  padding: 0;
4
4
  }
@@ -1,4 +1,4 @@
1
+ export { StepIndicator } from './Component.js';
1
2
  import 'react';
2
3
  import 'classnames';
3
4
  import '@alfalab/core-components-badge/esm';
4
- export { StepIndicator } from './Component.js';
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 11k18 */
1
+ /* hash: li0ej */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,12 +7,12 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .steps__component_87mpb {
10
+ .steps__component_1qx39 {
11
11
  display: flex;
12
12
  align-items: center;
13
13
  flex-direction: row
14
14
  }
15
- .steps__component_87mpb.steps__vertical_87mpb {
15
+ .steps__component_1qx39.steps__vertical_1qx39 {
16
16
  flex-direction: column;
17
17
  align-items: flex-start;
18
18
  }
package/esm/index.js CHANGED
@@ -1,10 +1,10 @@
1
+ export { Steps } from './Component.js';
1
2
  import 'react';
2
3
  import 'classnames';
3
4
  import './components/step/Component.js';
4
5
  import '@alfalab/hooks';
5
6
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
- import '@alfalab/icons-glyph/ExclamationCircleMIcon';
7
7
  import '@alfalab/icons-glyph/ClockMIcon';
8
- import '@alfalab/core-components-badge/esm';
8
+ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
9
9
  import './components/step-indicator/Component.js';
10
- export { Steps } from './Component.js';
10
+ import '@alfalab/core-components-badge/esm';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 11k18 */
1
+ /* hash: li0ej */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,12 +7,12 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .steps__component_87mpb {
10
+ .steps__component_1qx39 {
11
11
  display: flex;
12
12
  align-items: center;
13
13
  flex-direction: row
14
14
  }
15
- .steps__component_87mpb.steps__vertical_87mpb {
15
+ .steps__component_1qx39.steps__vertical_1qx39 {
16
16
  flex-direction: column;
17
17
  align-items: flex-start;
18
18
  }
package/index.js CHANGED
@@ -1,17 +1,15 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
3
+ var Component = require('./Component.js');
5
4
  require('react');
6
5
  require('classnames');
7
6
  require('./components/step/Component.js');
8
7
  require('@alfalab/hooks');
9
8
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
10
- require('@alfalab/icons-glyph/ExclamationCircleMIcon');
11
9
  require('@alfalab/icons-glyph/ClockMIcon');
12
- require('@alfalab/core-components-badge');
10
+ require('@alfalab/icons-glyph/ExclamationCircleMIcon');
13
11
  require('./components/step-indicator/Component.js');
14
- var Component = require('./Component.js');
12
+ require('@alfalab/core-components-badge');
15
13
 
16
14
 
17
15
 
@@ -1,14 +1,14 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
+ import { Step } from './components/step/Component.js';
3
4
  import '@alfalab/hooks';
4
5
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
5
- import '@alfalab/icons-glyph/ExclamationCircleMIcon';
6
6
  import '@alfalab/icons-glyph/ClockMIcon';
7
- import '@alfalab/core-components-badge/modern';
7
+ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
8
8
  import './components/step-indicator/Component.js';
9
- import { Step } from './components/step/Component.js';
9
+ import '@alfalab/core-components-badge/modern';
10
10
 
11
- var styles = {"component":"steps__component_87mpb","vertical":"steps__vertical_87mpb"};
11
+ const styles = {"component":"steps__component_1qx39","vertical":"steps__vertical_1qx39"};
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, }) => {
@@ -2,12 +2,12 @@ import React, { useRef } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { useFocus } from '@alfalab/hooks';
4
4
  import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
5
- import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';
6
5
  import { ClockMIcon } from '@alfalab/icons-glyph/ClockMIcon';
7
- import '@alfalab/core-components-badge/modern';
6
+ import { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';
8
7
  import { StepIndicator } from '../step-indicator/Component.js';
8
+ import '@alfalab/core-components-badge/modern';
9
9
 
10
- var styles = {"step":"steps__step_js9jf","vertical":"steps__vertical_js9jf","interactive":"steps__interactive_js9jf","disabled":"steps__disabled_js9jf","text":"steps__text_js9jf","indicator":"steps__indicator_js9jf","option":"steps__option_js9jf","dash":"steps__dash_js9jf","completed":"steps__completed_js9jf","focused":"steps__focused_js9jf","selected":"steps__selected_js9jf","checkbox":"steps__checkbox_js9jf","dot":"steps__dot_js9jf","error":"steps__error_js9jf","unordered":"steps__unordered_js9jf","completedIndicator":"steps__completedIndicator_js9jf"};
10
+ const styles = {"step":"steps__step_1wzux","vertical":"steps__vertical_1wzux","interactive":"steps__interactive_1wzux","disabled":"steps__disabled_1wzux","text":"steps__text_1wzux","indicator":"steps__indicator_1wzux","option":"steps__option_1wzux","dash":"steps__dash_1wzux","completed":"steps__completed_1wzux","focused":"steps__focused_1wzux","selected":"steps__selected_1wzux","checkbox":"steps__checkbox_1wzux","dot":"steps__dot_1wzux","error":"steps__error_1wzux","unordered":"steps__unordered_1wzux","completedIndicator":"steps__completedIndicator_1wzux"};
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, }) => {
@@ -30,7 +30,7 @@ const Step = ({ children, stepNumber, isSelected, disabled, ordered, isPositive,
30
30
  };
31
31
  const getStepIndicator = () => {
32
32
  if (customStepIndicator) {
33
- return React.createElement(StepIndicator, Object.assign({}, customStepIndicator));
33
+ return React.createElement(StepIndicator, { ...customStepIndicator });
34
34
  }
35
35
  if (isError) {
36
36
  return React.createElement(StepIndicator, { iconColor: 'negative', content: React.createElement(ExclamationCircleMIcon, null) });
@@ -1,4 +1,4 @@
1
- /* hash: lfrzu */
1
+ /* hash: 9mw7p */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -23,6 +23,9 @@
23
23
  --gap-2xs: 4px;
24
24
  --gap-xs: 8px;
25
25
  }
26
+ :root {
27
+ --border-radius-circle: 50%;
28
+ }
26
29
  :root {
27
30
  --focus-color: var(--color-light-border-link);
28
31
  }
@@ -30,33 +33,33 @@
30
33
  --steps-option-svg-color: var(--color-light-graphic-positive);
31
34
  --steps-dash-border: 2px solid var(--color-light-graphic-positive);
32
35
  }
33
- .steps__step_js9jf {
36
+ .steps__step_1wzux {
34
37
  display: flex;
35
38
  outline: none
36
39
  }
37
- .steps__step_js9jf:not(.steps__vertical_js9jf) {
40
+ .steps__step_1wzux:not(.steps__vertical_1wzux) {
38
41
  align-items: center;
39
42
  }
40
- .steps__step_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):hover {
43
+ .steps__step_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
41
44
  cursor: pointer;
42
45
  }
43
- .steps__step_js9jf.steps__disabled_js9jf:hover .steps__text_js9jf {
46
+ .steps__step_1wzux.steps__disabled_1wzux:hover .steps__text_1wzux {
44
47
  background: unset;
45
48
  }
46
- .steps__step_js9jf.steps__disabled_js9jf .steps__indicator_js9jf {
49
+ .steps__step_1wzux.steps__disabled_1wzux .steps__indicator_1wzux {
47
50
  cursor: unset;
48
51
  }
49
- .steps__indicator_js9jf {
52
+ .steps__indicator_1wzux {
50
53
  cursor: pointer;
51
54
  display: flex;
52
55
  align-items: center;
53
56
  margin-right: var(--gap-2xs)
54
57
  }
55
- .steps__indicator_js9jf.steps__vertical_js9jf {
58
+ .steps__indicator_1wzux.steps__vertical_1wzux {
56
59
  flex-direction: column;
57
60
  margin-right: var(--gap-xs);
58
61
  }
59
- .steps__option_js9jf {
62
+ .steps__option_1wzux {
60
63
  font-size: 14px;
61
64
  line-height: 20px;
62
65
  font-weight: 700;
@@ -68,21 +71,21 @@
68
71
  background: var(--color-light-graphic-quaternary);
69
72
  min-width: 24px;
70
73
  height: 24px;
71
- border-radius: 50%
74
+ border-radius: var(--border-radius-circle)
72
75
  }
73
- .steps__option_js9jf.steps__vertical_js9jf {
76
+ .steps__option_1wzux.steps__vertical_1wzux {
74
77
  margin-top: var(--gap-xs);
75
78
  }
76
- .steps__dash_js9jf {
79
+ .steps__dash_1wzux {
77
80
  flex: 1 1 auto;
78
81
  min-width: 24px;
79
82
  border-top: 2px solid var(--color-light-border-primary);
80
83
  margin-right: var(--gap-xs)
81
84
  }
82
- .steps__dash_js9jf.steps__completed_js9jf {
85
+ .steps__dash_1wzux.steps__completed_1wzux {
83
86
  border-top: var(--steps-dash-border);
84
87
  }
85
- .steps__dash_js9jf.steps__vertical_js9jf {
88
+ .steps__dash_1wzux.steps__vertical_1wzux {
86
89
  min-width: unset;
87
90
  min-height: 24px;
88
91
  margin-right: 0;
@@ -90,10 +93,10 @@
90
93
  border-left: 2px solid var(--color-light-border-primary);
91
94
  border-top: none;
92
95
  }
93
- .steps__dash_js9jf.steps__completed_js9jf.steps__vertical_js9jf {
96
+ .steps__dash_1wzux.steps__completed_1wzux.steps__vertical_1wzux {
94
97
  border-left: var(--steps-dash-border);
95
98
  }
96
- .steps__text_js9jf {
99
+ .steps__text_1wzux {
97
100
  font-size: 16px;
98
101
  line-height: 24px;
99
102
  font-weight: 400;
@@ -104,48 +107,48 @@
104
107
  border-radius: var(--gap-xs);
105
108
  height: min-content
106
109
  }
107
- .steps__text_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):hover {
110
+ .steps__text_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
108
111
  background: var(--color-light-bg-primary-inverted-alpha-7);
109
112
  }
110
- .steps__text_js9jf.steps__interactive_js9jf:not(.steps__disabled_js9jf):active {
113
+ .steps__text_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):active {
111
114
  background: var(--color-light-bg-primary-inverted-alpha-15);
112
115
  }
113
- .steps__focused_js9jf {
116
+ .steps__focused_1wzux {
114
117
  outline: var(--gap-3xs) solid var(--focus-color);
115
118
  outline-offset: var(--gap-3xs);
116
119
  }
117
- .steps__selected_js9jf .steps__text_js9jf {
120
+ .steps__selected_1wzux .steps__text_1wzux {
118
121
  color: var(--color-light-graphic-primary);
119
122
  }
120
- .steps__selected_js9jf .steps__option_js9jf {
123
+ .steps__selected_1wzux .steps__option_1wzux {
121
124
  color: var(--color-light-graphic-primary-inverted);
122
125
  background: var(--color-light-graphic-primary);
123
126
  }
124
- .steps__checkbox_js9jf {
127
+ .steps__checkbox_1wzux {
125
128
  display: flex;
126
129
  justify-content: center;
127
130
  align-items: center;
128
- border-radius: 50%;
131
+ border-radius: var(--border-radius-circle);
129
132
  width: 20px;
130
133
  height: 20px;
131
134
  border: 2px solid var(--color-light-graphic-quaternary);
132
135
  }
133
- .steps__dot_js9jf {
136
+ .steps__dot_1wzux {
134
137
  width: 10px;
135
138
  height: 10px;
136
- border-radius: 50%;
139
+ border-radius: var(--border-radius-circle);
137
140
  background: var(--color-light-graphic-quaternary);
138
141
  }
139
- .steps__selected_js9jf .steps__checkbox_js9jf {
142
+ .steps__selected_1wzux .steps__checkbox_1wzux {
140
143
  border: 2px solid var(--color-light-graphic-primary)
141
144
  }
142
- .steps__selected_js9jf .steps__checkbox_js9jf .steps__dot_js9jf {
145
+ .steps__selected_1wzux .steps__checkbox_1wzux .steps__dot_1wzux {
143
146
  background: var(--color-light-graphic-primary);
144
147
  }
145
- .steps__option_js9jf:not(.steps__error_js9jf).steps__unordered_js9jf {
148
+ .steps__option_1wzux:not(.steps__error_1wzux).steps__unordered_1wzux {
146
149
  background: unset;
147
150
  }
148
- .steps__completedIndicator_js9jf > [class*='positive'] {
151
+ .steps__completedIndicator_1wzux > [class*='positive'] {
149
152
  color: var(--steps-option-svg-color);
150
153
  background-color: var(--steps-option-svg-color);
151
154
  }
@@ -1,9 +1,9 @@
1
+ export { Step } from './Component.js';
1
2
  import 'react';
2
3
  import 'classnames';
3
4
  import '@alfalab/hooks';
4
5
  import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
5
- import '@alfalab/icons-glyph/ExclamationCircleMIcon';
6
6
  import '@alfalab/icons-glyph/ClockMIcon';
7
- import '@alfalab/core-components-badge/modern';
7
+ import '@alfalab/icons-glyph/ExclamationCircleMIcon';
8
8
  import '../step-indicator/Component.js';
9
- export { Step } from './Component.js';
9
+ import '@alfalab/core-components-badge/modern';