@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.
- package/Component.js +10 -12
- package/components/step/Component.js +20 -22
- package/components/step/index.css +32 -29
- package/components/step/index.js +3 -5
- package/components/step-indicator/Component.js +5 -7
- package/components/step-indicator/index.css +2 -2
- package/components/step-indicator/index.js +1 -3
- package/cssm/Component.js +12 -14
- package/cssm/components/step/Component.js +36 -38
- package/cssm/components/step/index.js +3 -5
- package/cssm/components/step/index.module.css +6 -3
- package/cssm/components/step-indicator/Component.js +5 -7
- package/cssm/components/step-indicator/index.js +1 -3
- package/cssm/index.js +3 -5
- package/esm/Component.js +3 -3
- package/esm/components/step/Component.js +4 -4
- package/esm/components/step/index.css +32 -29
- package/esm/components/step/index.js +3 -3
- package/esm/components/step-indicator/Component.js +1 -1
- package/esm/components/step-indicator/index.css +2 -2
- package/esm/components/step-indicator/index.js +1 -1
- package/esm/index.css +3 -3
- package/esm/index.js +3 -3
- package/index.css +3 -3
- package/index.js +3 -5
- package/modern/Component.js +4 -4
- package/modern/components/step/Component.js +4 -4
- package/modern/components/step/index.css +32 -29
- package/modern/components/step/index.js +3 -3
- package/modern/components/step-indicator/Component.js +2 -4
- package/modern/components/step-indicator/index.css +2 -2
- package/modern/components/step-indicator/index.js +1 -1
- package/modern/index.css +3 -3
- package/modern/index.js +4 -4
- package/package.json +2 -2
- 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:
|
|
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:
|
|
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:
|
|
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
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
9
|
|
|
12
|
-
var React__default = /*#__PURE__*/
|
|
13
|
-
var cn__default = /*#__PURE__*/
|
|
14
|
-
var styles__default = /*#__PURE__*/
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
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":"
|
|
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/
|
|
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":"
|
|
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:
|
|
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
|
-
.
|
|
36
|
+
.steps__step_1wzux {
|
|
34
37
|
display: flex;
|
|
35
38
|
outline: none
|
|
36
39
|
}
|
|
37
|
-
.
|
|
40
|
+
.steps__step_1wzux:not(.steps__vertical_1wzux) {
|
|
38
41
|
align-items: center;
|
|
39
42
|
}
|
|
40
|
-
.
|
|
43
|
+
.steps__step_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
|
|
41
44
|
cursor: pointer;
|
|
42
45
|
}
|
|
43
|
-
.
|
|
46
|
+
.steps__step_1wzux.steps__disabled_1wzux:hover .steps__text_1wzux {
|
|
44
47
|
background: unset;
|
|
45
48
|
}
|
|
46
|
-
.
|
|
49
|
+
.steps__step_1wzux.steps__disabled_1wzux .steps__indicator_1wzux {
|
|
47
50
|
cursor: unset;
|
|
48
51
|
}
|
|
49
|
-
.
|
|
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
|
-
.
|
|
58
|
+
.steps__indicator_1wzux.steps__vertical_1wzux {
|
|
56
59
|
flex-direction: column;
|
|
57
60
|
margin-right: var(--gap-xs);
|
|
58
61
|
}
|
|
59
|
-
.
|
|
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:
|
|
74
|
+
border-radius: var(--border-radius-circle)
|
|
72
75
|
}
|
|
73
|
-
.
|
|
76
|
+
.steps__option_1wzux.steps__vertical_1wzux {
|
|
74
77
|
margin-top: var(--gap-xs);
|
|
75
78
|
}
|
|
76
|
-
.
|
|
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
|
-
.
|
|
85
|
+
.steps__dash_1wzux.steps__completed_1wzux {
|
|
83
86
|
border-top: var(--steps-dash-border);
|
|
84
87
|
}
|
|
85
|
-
.
|
|
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
|
-
.
|
|
96
|
+
.steps__dash_1wzux.steps__completed_1wzux.steps__vertical_1wzux {
|
|
94
97
|
border-left: var(--steps-dash-border);
|
|
95
98
|
}
|
|
96
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
116
|
+
.steps__focused_1wzux {
|
|
114
117
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
115
118
|
outline-offset: var(--gap-3xs);
|
|
116
119
|
}
|
|
117
|
-
.
|
|
120
|
+
.steps__selected_1wzux .steps__text_1wzux {
|
|
118
121
|
color: var(--color-light-graphic-primary);
|
|
119
122
|
}
|
|
120
|
-
.
|
|
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
|
-
.
|
|
127
|
+
.steps__checkbox_1wzux {
|
|
125
128
|
display: flex;
|
|
126
129
|
justify-content: center;
|
|
127
130
|
align-items: center;
|
|
128
|
-
border-radius:
|
|
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
|
-
.
|
|
136
|
+
.steps__dot_1wzux {
|
|
134
137
|
width: 10px;
|
|
135
138
|
height: 10px;
|
|
136
|
-
border-radius:
|
|
139
|
+
border-radius: var(--border-radius-circle);
|
|
137
140
|
background: var(--color-light-graphic-quaternary);
|
|
138
141
|
}
|
|
139
|
-
.
|
|
142
|
+
.steps__selected_1wzux .steps__checkbox_1wzux {
|
|
140
143
|
border: 2px solid var(--color-light-graphic-primary)
|
|
141
144
|
}
|
|
142
|
-
.
|
|
145
|
+
.steps__selected_1wzux .steps__checkbox_1wzux .steps__dot_1wzux {
|
|
143
146
|
background: var(--color-light-graphic-primary);
|
|
144
147
|
}
|
|
145
|
-
.
|
|
148
|
+
.steps__option_1wzux:not(.steps__error_1wzux).steps__unordered_1wzux {
|
|
146
149
|
background: unset;
|
|
147
150
|
}
|
|
148
|
-
.
|
|
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/
|
|
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":"
|
|
5
|
+
var styles = {"component":"steps__component_89css"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var StepIndicator = function (_a) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: li0ej */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.steps__component_1qx39 {
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
flex-direction: row
|
|
14
14
|
}
|
|
15
|
-
.
|
|
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/
|
|
8
|
+
import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
9
9
|
import './components/step-indicator/Component.js';
|
|
10
|
-
|
|
10
|
+
import '@alfalab/core-components-badge/esm';
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: li0ej */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.steps__component_1qx39 {
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
flex-direction: row
|
|
14
14
|
}
|
|
15
|
-
.
|
|
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
|
-
|
|
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/
|
|
10
|
+
require('@alfalab/icons-glyph/ExclamationCircleMIcon');
|
|
13
11
|
require('./components/step-indicator/Component.js');
|
|
14
|
-
|
|
12
|
+
require('@alfalab/core-components-badge');
|
|
15
13
|
|
|
16
14
|
|
|
17
15
|
|
package/modern/Component.js
CHANGED
|
@@ -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/
|
|
7
|
+
import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
8
8
|
import './components/step-indicator/Component.js';
|
|
9
|
-
import
|
|
9
|
+
import '@alfalab/core-components-badge/modern';
|
|
10
10
|
|
|
11
|
-
|
|
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/
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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
|
-
.
|
|
36
|
+
.steps__step_1wzux {
|
|
34
37
|
display: flex;
|
|
35
38
|
outline: none
|
|
36
39
|
}
|
|
37
|
-
.
|
|
40
|
+
.steps__step_1wzux:not(.steps__vertical_1wzux) {
|
|
38
41
|
align-items: center;
|
|
39
42
|
}
|
|
40
|
-
.
|
|
43
|
+
.steps__step_1wzux.steps__interactive_1wzux:not(.steps__disabled_1wzux):hover {
|
|
41
44
|
cursor: pointer;
|
|
42
45
|
}
|
|
43
|
-
.
|
|
46
|
+
.steps__step_1wzux.steps__disabled_1wzux:hover .steps__text_1wzux {
|
|
44
47
|
background: unset;
|
|
45
48
|
}
|
|
46
|
-
.
|
|
49
|
+
.steps__step_1wzux.steps__disabled_1wzux .steps__indicator_1wzux {
|
|
47
50
|
cursor: unset;
|
|
48
51
|
}
|
|
49
|
-
.
|
|
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
|
-
.
|
|
58
|
+
.steps__indicator_1wzux.steps__vertical_1wzux {
|
|
56
59
|
flex-direction: column;
|
|
57
60
|
margin-right: var(--gap-xs);
|
|
58
61
|
}
|
|
59
|
-
.
|
|
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:
|
|
74
|
+
border-radius: var(--border-radius-circle)
|
|
72
75
|
}
|
|
73
|
-
.
|
|
76
|
+
.steps__option_1wzux.steps__vertical_1wzux {
|
|
74
77
|
margin-top: var(--gap-xs);
|
|
75
78
|
}
|
|
76
|
-
.
|
|
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
|
-
.
|
|
85
|
+
.steps__dash_1wzux.steps__completed_1wzux {
|
|
83
86
|
border-top: var(--steps-dash-border);
|
|
84
87
|
}
|
|
85
|
-
.
|
|
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
|
-
.
|
|
96
|
+
.steps__dash_1wzux.steps__completed_1wzux.steps__vertical_1wzux {
|
|
94
97
|
border-left: var(--steps-dash-border);
|
|
95
98
|
}
|
|
96
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
116
|
+
.steps__focused_1wzux {
|
|
114
117
|
outline: var(--gap-3xs) solid var(--focus-color);
|
|
115
118
|
outline-offset: var(--gap-3xs);
|
|
116
119
|
}
|
|
117
|
-
.
|
|
120
|
+
.steps__selected_1wzux .steps__text_1wzux {
|
|
118
121
|
color: var(--color-light-graphic-primary);
|
|
119
122
|
}
|
|
120
|
-
.
|
|
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
|
-
.
|
|
127
|
+
.steps__checkbox_1wzux {
|
|
125
128
|
display: flex;
|
|
126
129
|
justify-content: center;
|
|
127
130
|
align-items: center;
|
|
128
|
-
border-radius:
|
|
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
|
-
.
|
|
136
|
+
.steps__dot_1wzux {
|
|
134
137
|
width: 10px;
|
|
135
138
|
height: 10px;
|
|
136
|
-
border-radius:
|
|
139
|
+
border-radius: var(--border-radius-circle);
|
|
137
140
|
background: var(--color-light-graphic-quaternary);
|
|
138
141
|
}
|
|
139
|
-
.
|
|
142
|
+
.steps__selected_1wzux .steps__checkbox_1wzux {
|
|
140
143
|
border: 2px solid var(--color-light-graphic-primary)
|
|
141
144
|
}
|
|
142
|
-
.
|
|
145
|
+
.steps__selected_1wzux .steps__checkbox_1wzux .steps__dot_1wzux {
|
|
143
146
|
background: var(--color-light-graphic-primary);
|
|
144
147
|
}
|
|
145
|
-
.
|
|
148
|
+
.steps__option_1wzux:not(.steps__error_1wzux).steps__unordered_1wzux {
|
|
146
149
|
background: unset;
|
|
147
150
|
}
|
|
148
|
-
.
|
|
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/
|
|
7
|
+
import '@alfalab/icons-glyph/ExclamationCircleMIcon';
|
|
8
8
|
import '../step-indicator/Component.js';
|
|
9
|
-
|
|
9
|
+
import '@alfalab/core-components-badge/modern';
|