@alfalab/core-components-steps 1.1.5 → 1.1.7

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.
@@ -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_1mmvm","vertical":"steps__vertical_1mmvm","interactive":"steps__interactive_1mmvm","disabled":"steps__disabled_1mmvm","text":"steps__text_1mmvm","indicator":"steps__indicator_1mmvm","option":"steps__option_1mmvm","dash":"steps__dash_1mmvm","completed":"steps__completed_1mmvm","focused":"steps__focused_1mmvm","selected":"steps__selected_1mmvm","checkbox":"steps__checkbox_1mmvm","dot":"steps__dot_1mmvm","error":"steps__error_1mmvm","unordered":"steps__unordered_1mmvm","completedIndicator":"steps__completedIndicator_1mmvm"};
11
+ var styles = {"step":"steps__step_1s0c8","vertical":"steps__vertical_1s0c8","interactive":"steps__interactive_1s0c8","disabled":"steps__disabled_1s0c8","text":"steps__text_1s0c8","indicator":"steps__indicator_1s0c8","option":"steps__option_1s0c8","dash":"steps__dash_1s0c8","completed":"steps__completed_1s0c8","focused":"steps__focused_1s0c8","selected":"steps__selected_1s0c8","checkbox":"steps__checkbox_1s0c8","dot":"steps__dot_1s0c8","error":"steps__error_1s0c8","unordered":"steps__unordered_1s0c8","completedIndicator":"steps__completedIndicator_1s0c8"};
38
12
  require('./index.css')
39
13
 
40
14
  var Step = function (_a) {
@@ -1,65 +1,56 @@
1
- /* hash: leby6 */
1
+ /* hash: 9lg60 */
2
2
  :root {
3
- --color-light-border-link: #007aff;
4
- --color-light-border-primary: #dbdee1;
3
+ } /* deprecated */ :root {
4
+ --color-light-border-link: #0072ef;
5
+ --color-light-border-primary: #dcdcdd;
5
6
  --color-light-graphic-positive: #2fc26e;
6
- --color-light-graphic-primary: #0b1f35;
7
+ --color-light-graphic-primary: #0e0e0e;
7
8
  --color-light-graphic-primary-inverted: #fff;
8
- --color-light-graphic-quaternary: #dbdee1;
9
- --color-light-text-primary: #0b1f35;
10
- --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
11
- --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
12
- }
13
- :root {
9
+ --color-light-graphic-quaternary: #dcdcdd;
10
+ --color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
11
+ --color-light-bg-primary-inverted-alpha-7: rgba(18, 18, 18, 0.07);
12
+ --color-light-bg-primary-inverted-alpha-15: rgba(18, 18, 18, 0.15);
13
+ } :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
+ } :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_1mmvm {
34
+ } .steps__step_1s0c8 {
37
35
  display: flex;
38
36
  outline: none
39
- }
40
- .steps__step_1mmvm:not(.steps__vertical_1mmvm) {
37
+ } .steps__step_1s0c8:not(.steps__vertical_1s0c8) {
41
38
  align-items: center;
42
- }
43
- .steps__step_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):hover {
39
+ } .steps__step_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):hover {
44
40
  cursor: pointer;
45
- }
46
- .steps__step_1mmvm.steps__disabled_1mmvm:hover .steps__text_1mmvm {
41
+ } .steps__step_1s0c8.steps__disabled_1s0c8:hover .steps__text_1s0c8 {
47
42
  background: unset;
48
- }
49
- .steps__step_1mmvm.steps__disabled_1mmvm .steps__indicator_1mmvm {
43
+ } .steps__step_1s0c8.steps__disabled_1s0c8 .steps__indicator_1s0c8 {
50
44
  cursor: unset;
51
- }
52
- .steps__indicator_1mmvm {
45
+ } .steps__indicator_1s0c8 {
53
46
  cursor: pointer;
54
47
  display: flex;
55
48
  align-items: center;
56
49
  margin-right: var(--gap-2xs)
57
- }
58
- .steps__indicator_1mmvm.steps__vertical_1mmvm {
50
+ } .steps__indicator_1s0c8.steps__vertical_1s0c8 {
59
51
  flex-direction: column;
60
52
  margin-right: var(--gap-xs);
61
- }
62
- .steps__option_1mmvm {
53
+ } .steps__option_1s0c8 {
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_1mmvm.steps__vertical_1mmvm {
66
+ } .steps__option_1s0c8.steps__vertical_1s0c8 {
77
67
  margin-top: var(--gap-xs);
78
- }
79
- .steps__dash_1mmvm {
68
+ } .steps__dash_1s0c8 {
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_1mmvm.steps__completed_1mmvm {
73
+ } .steps__dash_1s0c8.steps__completed_1s0c8 {
86
74
  border-top: var(--steps-dash-border);
87
- }
88
- .steps__dash_1mmvm.steps__vertical_1mmvm {
75
+ } .steps__dash_1s0c8.steps__vertical_1s0c8 {
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_1mmvm.steps__completed_1mmvm.steps__vertical_1mmvm {
82
+ } .steps__dash_1s0c8.steps__completed_1s0c8.steps__vertical_1s0c8 {
97
83
  border-left: var(--steps-dash-border);
98
- }
99
- .steps__text_1mmvm {
84
+ } .steps__text_1s0c8 {
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_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):hover {
94
+ } .steps__text_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):hover {
111
95
  background: var(--color-light-bg-primary-inverted-alpha-7);
112
- }
113
- .steps__text_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):active {
96
+ } .steps__text_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):active {
114
97
  background: var(--color-light-bg-primary-inverted-alpha-15);
115
- }
116
- .steps__focused_1mmvm {
98
+ } .steps__focused_1s0c8 {
117
99
  outline: var(--gap-3xs) solid var(--focus-color);
118
100
  outline-offset: var(--gap-3xs);
119
- }
120
- .steps__selected_1mmvm .steps__text_1mmvm {
101
+ } .steps__selected_1s0c8 .steps__text_1s0c8 {
121
102
  color: var(--color-light-graphic-primary);
122
- }
123
- .steps__selected_1mmvm .steps__option_1mmvm {
103
+ } .steps__selected_1s0c8 .steps__option_1s0c8 {
124
104
  color: var(--color-light-graphic-primary-inverted);
125
105
  background: var(--color-light-graphic-primary);
126
- }
127
- .steps__checkbox_1mmvm {
106
+ } .steps__checkbox_1s0c8 {
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_1mmvm {
114
+ } .steps__dot_1s0c8 {
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_1mmvm .steps__checkbox_1mmvm {
119
+ } .steps__selected_1s0c8 .steps__checkbox_1s0c8 {
143
120
  border: 2px solid var(--color-light-graphic-primary)
144
- }
145
- .steps__selected_1mmvm .steps__checkbox_1mmvm .steps__dot_1mmvm {
121
+ } .steps__selected_1s0c8 .steps__checkbox_1s0c8 .steps__dot_1s0c8 {
146
122
  background: var(--color-light-graphic-primary);
147
- }
148
- .steps__option_1mmvm:not(.steps__error_1mmvm).steps__unordered_1mmvm {
123
+ } .steps__option_1s0c8:not(.steps__error_1s0c8).steps__unordered_1s0c8 {
149
124
  background: unset;
150
- }
151
- .steps__completedIndicator_1mmvm > [class*='positive'] {
125
+ } .steps__completedIndicator_1s0c8 > [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_1lzbr"};
5
+ var styles = {"component":"steps__component_f3cx7"};
6
6
  require('./index.css')
7
7
 
8
8
  var StepIndicator = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xpqo1 */
2
- .steps__component_1lzbr {
1
+ /* hash: lwuvw */
2
+ .steps__component_f3cx7 {
3
3
  padding: 0;
4
4
  }
package/esm/index.css CHANGED
@@ -1,18 +1,24 @@
1
- /* hash: 1302x */
1
+ /* hash: ljgg7 */
2
2
  :root {
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
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1cb0a {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_1nzqd {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1cb0a.steps__vertical_1cb0a {
21
+ } .steps__component_1nzqd.steps__vertical_1nzqd {
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: 1302x */
1
+ /* hash: ljgg7 */
2
2
  :root {
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
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1cb0a {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_1nzqd {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1cb0a.steps__vertical_1cb0a {
21
+ } .steps__component_1nzqd.steps__vertical_1nzqd {
16
22
  flex-direction: column;
17
23
  align-items: flex-start;
18
24
  }
package/index.js CHANGED
@@ -1,9 +1,12 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var Component = require('./Component.js');
4
6
  require('react');
5
7
  require('classnames');
6
8
  require('./components/step/Component.js');
9
+ require('tslib');
7
10
  require('@alfalab/hooks');
8
11
  require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
9
12
  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_1cb0a","vertical":"steps__vertical_1cb0a"};
11
+ const styles = {"component":"steps__component_1nzqd","vertical":"steps__vertical_1nzqd"};
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":"steps__step_1mmvm","vertical":"steps__vertical_1mmvm","interactive":"steps__interactive_1mmvm","disabled":"steps__disabled_1mmvm","text":"steps__text_1mmvm","indicator":"steps__indicator_1mmvm","option":"steps__option_1mmvm","dash":"steps__dash_1mmvm","completed":"steps__completed_1mmvm","focused":"steps__focused_1mmvm","selected":"steps__selected_1mmvm","checkbox":"steps__checkbox_1mmvm","dot":"steps__dot_1mmvm","error":"steps__error_1mmvm","unordered":"steps__unordered_1mmvm","completedIndicator":"steps__completedIndicator_1mmvm"};
10
+ const styles = {"step":"steps__step_1s0c8","vertical":"steps__vertical_1s0c8","interactive":"steps__interactive_1s0c8","disabled":"steps__disabled_1s0c8","text":"steps__text_1s0c8","indicator":"steps__indicator_1s0c8","option":"steps__option_1s0c8","dash":"steps__dash_1s0c8","completed":"steps__completed_1s0c8","focused":"steps__focused_1s0c8","selected":"steps__selected_1s0c8","checkbox":"steps__checkbox_1s0c8","dot":"steps__dot_1s0c8","error":"steps__error_1s0c8","unordered":"steps__unordered_1s0c8","completedIndicator":"steps__completedIndicator_1s0c8"};
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,65 +1,56 @@
1
- /* hash: leby6 */
1
+ /* hash: 9lg60 */
2
2
  :root {
3
- --color-light-border-link: #007aff;
4
- --color-light-border-primary: #dbdee1;
3
+ } /* deprecated */ :root {
4
+ --color-light-border-link: #0072ef;
5
+ --color-light-border-primary: #dcdcdd;
5
6
  --color-light-graphic-positive: #2fc26e;
6
- --color-light-graphic-primary: #0b1f35;
7
+ --color-light-graphic-primary: #0e0e0e;
7
8
  --color-light-graphic-primary-inverted: #fff;
8
- --color-light-graphic-quaternary: #dbdee1;
9
- --color-light-text-primary: #0b1f35;
10
- --color-light-bg-primary-inverted-alpha-7: rgba(11, 31, 53, 0.07);
11
- --color-light-bg-primary-inverted-alpha-15: rgba(11, 31, 53, 0.15);
12
- }
13
- :root {
9
+ --color-light-graphic-quaternary: #dcdcdd;
10
+ --color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
11
+ --color-light-bg-primary-inverted-alpha-7: rgba(18, 18, 18, 0.07);
12
+ --color-light-bg-primary-inverted-alpha-15: rgba(18, 18, 18, 0.15);
13
+ } :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
+ } :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_1mmvm {
34
+ } .steps__step_1s0c8 {
37
35
  display: flex;
38
36
  outline: none
39
- }
40
- .steps__step_1mmvm:not(.steps__vertical_1mmvm) {
37
+ } .steps__step_1s0c8:not(.steps__vertical_1s0c8) {
41
38
  align-items: center;
42
- }
43
- .steps__step_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):hover {
39
+ } .steps__step_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):hover {
44
40
  cursor: pointer;
45
- }
46
- .steps__step_1mmvm.steps__disabled_1mmvm:hover .steps__text_1mmvm {
41
+ } .steps__step_1s0c8.steps__disabled_1s0c8:hover .steps__text_1s0c8 {
47
42
  background: unset;
48
- }
49
- .steps__step_1mmvm.steps__disabled_1mmvm .steps__indicator_1mmvm {
43
+ } .steps__step_1s0c8.steps__disabled_1s0c8 .steps__indicator_1s0c8 {
50
44
  cursor: unset;
51
- }
52
- .steps__indicator_1mmvm {
45
+ } .steps__indicator_1s0c8 {
53
46
  cursor: pointer;
54
47
  display: flex;
55
48
  align-items: center;
56
49
  margin-right: var(--gap-2xs)
57
- }
58
- .steps__indicator_1mmvm.steps__vertical_1mmvm {
50
+ } .steps__indicator_1s0c8.steps__vertical_1s0c8 {
59
51
  flex-direction: column;
60
52
  margin-right: var(--gap-xs);
61
- }
62
- .steps__option_1mmvm {
53
+ } .steps__option_1s0c8 {
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_1mmvm.steps__vertical_1mmvm {
66
+ } .steps__option_1s0c8.steps__vertical_1s0c8 {
77
67
  margin-top: var(--gap-xs);
78
- }
79
- .steps__dash_1mmvm {
68
+ } .steps__dash_1s0c8 {
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_1mmvm.steps__completed_1mmvm {
73
+ } .steps__dash_1s0c8.steps__completed_1s0c8 {
86
74
  border-top: var(--steps-dash-border);
87
- }
88
- .steps__dash_1mmvm.steps__vertical_1mmvm {
75
+ } .steps__dash_1s0c8.steps__vertical_1s0c8 {
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_1mmvm.steps__completed_1mmvm.steps__vertical_1mmvm {
82
+ } .steps__dash_1s0c8.steps__completed_1s0c8.steps__vertical_1s0c8 {
97
83
  border-left: var(--steps-dash-border);
98
- }
99
- .steps__text_1mmvm {
84
+ } .steps__text_1s0c8 {
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_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):hover {
94
+ } .steps__text_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):hover {
111
95
  background: var(--color-light-bg-primary-inverted-alpha-7);
112
- }
113
- .steps__text_1mmvm.steps__interactive_1mmvm:not(.steps__disabled_1mmvm):active {
96
+ } .steps__text_1s0c8.steps__interactive_1s0c8:not(.steps__disabled_1s0c8):active {
114
97
  background: var(--color-light-bg-primary-inverted-alpha-15);
115
- }
116
- .steps__focused_1mmvm {
98
+ } .steps__focused_1s0c8 {
117
99
  outline: var(--gap-3xs) solid var(--focus-color);
118
100
  outline-offset: var(--gap-3xs);
119
- }
120
- .steps__selected_1mmvm .steps__text_1mmvm {
101
+ } .steps__selected_1s0c8 .steps__text_1s0c8 {
121
102
  color: var(--color-light-graphic-primary);
122
- }
123
- .steps__selected_1mmvm .steps__option_1mmvm {
103
+ } .steps__selected_1s0c8 .steps__option_1s0c8 {
124
104
  color: var(--color-light-graphic-primary-inverted);
125
105
  background: var(--color-light-graphic-primary);
126
- }
127
- .steps__checkbox_1mmvm {
106
+ } .steps__checkbox_1s0c8 {
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_1mmvm {
114
+ } .steps__dot_1s0c8 {
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_1mmvm .steps__checkbox_1mmvm {
119
+ } .steps__selected_1s0c8 .steps__checkbox_1s0c8 {
143
120
  border: 2px solid var(--color-light-graphic-primary)
144
- }
145
- .steps__selected_1mmvm .steps__checkbox_1mmvm .steps__dot_1mmvm {
121
+ } .steps__selected_1s0c8 .steps__checkbox_1s0c8 .steps__dot_1s0c8 {
146
122
  background: var(--color-light-graphic-primary);
147
- }
148
- .steps__option_1mmvm:not(.steps__error_1mmvm).steps__unordered_1mmvm {
123
+ } .steps__option_1s0c8:not(.steps__error_1s0c8).steps__unordered_1s0c8 {
149
124
  background: unset;
150
- }
151
- .steps__completedIndicator_1mmvm > [class*='positive'] {
125
+ } .steps__completedIndicator_1s0c8 > [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_1lzbr"};
5
+ const styles = {"component":"steps__component_f3cx7"};
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: xpqo1 */
2
- .steps__component_1lzbr {
1
+ /* hash: lwuvw */
2
+ .steps__component_f3cx7 {
3
3
  padding: 0;
4
4
  }
package/modern/index.css CHANGED
@@ -1,18 +1,24 @@
1
- /* hash: 1302x */
1
+ /* hash: ljgg7 */
2
2
  :root {
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
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ } :root {
6
+ } :root {
3
7
 
4
8
  /* Hard */
5
9
 
6
10
  /* Up */
7
11
 
8
12
  /* Hard up */
9
- }
10
- .steps__component_1cb0a {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ } .steps__component_1nzqd {
11
18
  display: flex;
12
19
  align-items: center;
13
20
  flex-direction: row
14
- }
15
- .steps__component_1cb0a.steps__vertical_1cb0a {
21
+ } .steps__component_1nzqd.steps__vertical_1nzqd {
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.5",
3
+ "version": "1.1.7",
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.2",
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
  }