@alfalab/core-components-radio-group 4.2.1 → 4.3.0
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/components/base-radio-group/Component.js +1 -1
- package/components/base-radio-group/index.css +22 -21
- package/cssm/components/base-radio-group/index.module.css +2 -1
- package/desktop/Component.desktop.js +1 -1
- package/desktop/desktop.css +4 -4
- package/esm/components/base-radio-group/Component.js +1 -1
- package/esm/components/base-radio-group/index.css +22 -21
- package/esm/desktop/Component.desktop.js +1 -1
- package/esm/desktop/desktop.css +4 -4
- package/esm/mobile/Component.mobile.js +1 -1
- package/esm/mobile/mobile.css +4 -4
- package/mobile/Component.mobile.js +1 -1
- package/mobile/mobile.css +4 -4
- package/modern/components/base-radio-group/Component.js +1 -1
- package/modern/components/base-radio-group/index.css +22 -21
- package/modern/desktop/Component.desktop.js +1 -1
- package/modern/desktop/desktop.css +4 -4
- package/modern/mobile/Component.mobile.js +1 -1
- package/modern/mobile/mobile.css +4 -4
- package/package.json +1 -1
- package/src/components/base-radio-group/index.module.css +1 -1
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var commonStyles = {"component":"radio-
|
|
15
|
+
var commonStyles = {"component":"radio-group__component_1w2vg","error":"radio-group__error_1w2vg","tag":"radio-group__tag_1w2vg","radioList":"radio-group__radioList_1w2vg","verticalRadioList":"radio-group__verticalRadioList_1w2vg","horizontalRadioList":"radio-group__horizontalRadioList_1w2vg","verticalRadio":"radio-group__verticalRadio_1w2vg","horizontalRadio":"radio-group__horizontalRadio_1w2vg","horizontalTagLabel":"radio-group__horizontalTagLabel_1w2vg","label":"radio-group__label_1w2vg","sub":"radio-group__sub_1w2vg","errorMessage":"radio-group__errorMessage_1w2vg","hint":"radio-group__hint_1w2vg","hiddenInput":"radio-group__hiddenInput_1w2vg","tagLabel":"radio-group__tagLabel_1w2vg"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var BaseRadioGroup = React.forwardRef(function (_a, ref) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: t7flr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
+
--color-light-status-negative: #ff5431;
|
|
5
6
|
--color-light-text-negative: #ec2e14;
|
|
6
7
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
7
8
|
} :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 */
|
|
@@ -28,55 +29,55 @@
|
|
|
28
29
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
30
|
|
|
30
31
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
32
|
+
} .radio-group__component_1w2vg {
|
|
32
33
|
display: flex;
|
|
33
34
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
35
|
+
} .radio-group__error_1w2vg {
|
|
35
36
|
padding-left: var(--gap-s);
|
|
36
|
-
border-left: 1px solid var(--
|
|
37
|
-
} .radio-
|
|
37
|
+
border-left: 1px solid var(--color-light-status-negative)
|
|
38
|
+
} .radio-group__error_1w2vg.radio-group__tag_1w2vg {
|
|
38
39
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
40
|
+
} .radio-group__radioList_1w2vg {
|
|
40
41
|
display: flex;
|
|
41
|
-
} .radio-
|
|
42
|
+
} .radio-group__verticalRadioList_1w2vg {
|
|
42
43
|
flex-direction: column;
|
|
43
44
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
45
|
+
} .radio-group__horizontalRadioList_1w2vg {
|
|
45
46
|
flex-wrap: wrap;
|
|
46
47
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
48
|
+
} .radio-group__verticalRadio_1w2vg {
|
|
48
49
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
50
|
+
} .radio-group__verticalRadio_1w2vg:last-child {
|
|
50
51
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
52
|
+
} .radio-group__horizontalRadio_1w2vg {
|
|
52
53
|
margin-right: var(--gap-xl);
|
|
53
54
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
55
|
+
} .radio-group__horizontalTagLabel_1w2vg {
|
|
55
56
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
57
|
+
} .radio-group__horizontalRadio_1w2vg:last-child,
|
|
58
|
+
.radio-group__horizontalTagLabel_1w2vg:last-child {
|
|
58
59
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
60
|
+
} .radio-group__label_1w2vg {
|
|
60
61
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
62
|
+
} .radio-group__sub_1w2vg {
|
|
62
63
|
font-size: 14px;
|
|
63
64
|
line-height: 18px;
|
|
64
65
|
font-weight: 400;
|
|
65
66
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
67
|
+
} .radio-group__errorMessage_1w2vg {
|
|
67
68
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
69
|
+
} .radio-group__hint_1w2vg {
|
|
69
70
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
71
|
+
} .radio-group__hiddenInput_1w2vg {
|
|
71
72
|
position: absolute;
|
|
72
73
|
z-index: -1;
|
|
73
74
|
top: 0;
|
|
74
75
|
left: 0;
|
|
75
76
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
77
|
+
} .radio-group__hiddenInput_1w2vg:focus ~ button {
|
|
77
78
|
outline: 2px solid var(--focus-color);
|
|
78
79
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
80
|
+
} .radio-group__tagLabel_1w2vg {
|
|
80
81
|
position: relative;
|
|
81
82
|
max-width: 100%;
|
|
82
83
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-border-link: #2288fa;
|
|
4
|
+
--color-light-status-negative: #ff5431;
|
|
4
5
|
--color-light-text-negative: #ec2e14;
|
|
5
6
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
6
7
|
} :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 */
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
flex-direction: column;
|
|
33
34
|
} .error {
|
|
34
35
|
padding-left: var(--gap-s);
|
|
35
|
-
border-left: 1px solid var(--
|
|
36
|
+
border-left: 1px solid var(--color-light-status-negative)
|
|
36
37
|
} .error.tag {
|
|
37
38
|
padding-left: var(--gap-xs);
|
|
38
39
|
} .radioList {
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
|
|
15
|
-
var styles = {"radioList":"radio-
|
|
15
|
+
var styles = {"radioList":"radio-group__radioList_34bk4","label":"radio-group__label_34bk4","sub":"radio-group__sub_34bk4"};
|
|
16
16
|
require('./desktop.css')
|
|
17
17
|
|
|
18
18
|
var RadioGroupDesktop = React.forwardRef(function (props, ref) { return React__default.default.createElement(components_baseRadioGroup_Component.BaseRadioGroup, tslib.__assign({}, props, { ref: ref, styles: styles })); });
|
package/desktop/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: uor4e */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--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 */
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
--radio-group-list-padding-left: 0;
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
|
-
} .radio-
|
|
24
|
+
} .radio-group__radioList_34bk4 {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_34bk4 {
|
|
27
27
|
font-size: 16px;
|
|
28
28
|
line-height: 24px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
color: var(--radio-group-label-color);
|
|
31
31
|
padding-left: var(--radio-group-sub-padding-left);
|
|
32
|
-
} .radio-
|
|
32
|
+
} .radio-group__sub_34bk4 {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
|
@@ -3,7 +3,7 @@ import React, { forwardRef, useState, Children, isValidElement, cloneElement } f
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useDidUpdateEffect } from '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
var commonStyles = {"component":"radio-
|
|
6
|
+
var commonStyles = {"component":"radio-group__component_1w2vg","error":"radio-group__error_1w2vg","tag":"radio-group__tag_1w2vg","radioList":"radio-group__radioList_1w2vg","verticalRadioList":"radio-group__verticalRadioList_1w2vg","horizontalRadioList":"radio-group__horizontalRadioList_1w2vg","verticalRadio":"radio-group__verticalRadio_1w2vg","horizontalRadio":"radio-group__horizontalRadio_1w2vg","horizontalTagLabel":"radio-group__horizontalTagLabel_1w2vg","label":"radio-group__label_1w2vg","sub":"radio-group__sub_1w2vg","errorMessage":"radio-group__errorMessage_1w2vg","hint":"radio-group__hint_1w2vg","hiddenInput":"radio-group__hiddenInput_1w2vg","tagLabel":"radio-group__tagLabel_1w2vg"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseRadioGroup = forwardRef(function (_a, ref) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: t7flr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
+
--color-light-status-negative: #ff5431;
|
|
5
6
|
--color-light-text-negative: #ec2e14;
|
|
6
7
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
7
8
|
} :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 */
|
|
@@ -28,55 +29,55 @@
|
|
|
28
29
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
30
|
|
|
30
31
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
32
|
+
} .radio-group__component_1w2vg {
|
|
32
33
|
display: flex;
|
|
33
34
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
35
|
+
} .radio-group__error_1w2vg {
|
|
35
36
|
padding-left: var(--gap-s);
|
|
36
|
-
border-left: 1px solid var(--
|
|
37
|
-
} .radio-
|
|
37
|
+
border-left: 1px solid var(--color-light-status-negative)
|
|
38
|
+
} .radio-group__error_1w2vg.radio-group__tag_1w2vg {
|
|
38
39
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
40
|
+
} .radio-group__radioList_1w2vg {
|
|
40
41
|
display: flex;
|
|
41
|
-
} .radio-
|
|
42
|
+
} .radio-group__verticalRadioList_1w2vg {
|
|
42
43
|
flex-direction: column;
|
|
43
44
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
45
|
+
} .radio-group__horizontalRadioList_1w2vg {
|
|
45
46
|
flex-wrap: wrap;
|
|
46
47
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
48
|
+
} .radio-group__verticalRadio_1w2vg {
|
|
48
49
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
50
|
+
} .radio-group__verticalRadio_1w2vg:last-child {
|
|
50
51
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
52
|
+
} .radio-group__horizontalRadio_1w2vg {
|
|
52
53
|
margin-right: var(--gap-xl);
|
|
53
54
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
55
|
+
} .radio-group__horizontalTagLabel_1w2vg {
|
|
55
56
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
57
|
+
} .radio-group__horizontalRadio_1w2vg:last-child,
|
|
58
|
+
.radio-group__horizontalTagLabel_1w2vg:last-child {
|
|
58
59
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
60
|
+
} .radio-group__label_1w2vg {
|
|
60
61
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
62
|
+
} .radio-group__sub_1w2vg {
|
|
62
63
|
font-size: 14px;
|
|
63
64
|
line-height: 18px;
|
|
64
65
|
font-weight: 400;
|
|
65
66
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
67
|
+
} .radio-group__errorMessage_1w2vg {
|
|
67
68
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
69
|
+
} .radio-group__hint_1w2vg {
|
|
69
70
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
71
|
+
} .radio-group__hiddenInput_1w2vg {
|
|
71
72
|
position: absolute;
|
|
72
73
|
z-index: -1;
|
|
73
74
|
top: 0;
|
|
74
75
|
left: 0;
|
|
75
76
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
77
|
+
} .radio-group__hiddenInput_1w2vg:focus ~ button {
|
|
77
78
|
outline: 2px solid var(--focus-color);
|
|
78
79
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
80
|
+
} .radio-group__tagLabel_1w2vg {
|
|
80
81
|
position: relative;
|
|
81
82
|
max-width: 100%;
|
|
82
83
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseRadioGroup } from '../components/base-radio-group/Component.js';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
var styles = {"radioList":"radio-
|
|
7
|
+
var styles = {"radioList":"radio-group__radioList_34bk4","label":"radio-group__label_34bk4","sub":"radio-group__sub_34bk4"};
|
|
8
8
|
require('./desktop.css')
|
|
9
9
|
|
|
10
10
|
var RadioGroupDesktop = forwardRef(function (props, ref) { return React.createElement(BaseRadioGroup, __assign({}, props, { ref: ref, styles: styles })); });
|
package/esm/desktop/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: uor4e */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--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 */
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
--radio-group-list-padding-left: 0;
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
|
-
} .radio-
|
|
24
|
+
} .radio-group__radioList_34bk4 {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_34bk4 {
|
|
27
27
|
font-size: 16px;
|
|
28
28
|
line-height: 24px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
color: var(--radio-group-label-color);
|
|
31
31
|
padding-left: var(--radio-group-sub-padding-left);
|
|
32
|
-
} .radio-
|
|
32
|
+
} .radio-group__sub_34bk4 {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseRadioGroup } from '../components/base-radio-group/Component.js';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
var styles = {"radioList":"radio-
|
|
7
|
+
var styles = {"radioList":"radio-group__radioList_1t2kx","label":"radio-group__label_1t2kx","sub":"radio-group__sub_1t2kx"};
|
|
8
8
|
require('./mobile.css')
|
|
9
9
|
|
|
10
10
|
var RadioGroupMobile = forwardRef(function (props, ref) { return (React.createElement(BaseRadioGroup, __assign({}, props, { ref: ref, styles: styles }))); });
|
package/esm/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r22d2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
--radio-group-mobile-sub-padding-left: var(--gap-2xs);
|
|
24
24
|
--radio-group-mobile-list-padding-left: var(--gap-3xs);
|
|
25
25
|
--radio-group-mobile-label-color: var(--color-light-text-secondary);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__radioList_1t2kx {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_1t2kx {
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
line-height: 18px;
|
|
31
31
|
font-weight: 400;
|
|
32
32
|
color: var(--radio-group-mobile-label-color);
|
|
33
33
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__sub_1t2kx {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
|
|
15
|
-
var styles = {"radioList":"radio-
|
|
15
|
+
var styles = {"radioList":"radio-group__radioList_1t2kx","label":"radio-group__label_1t2kx","sub":"radio-group__sub_1t2kx"};
|
|
16
16
|
require('./mobile.css')
|
|
17
17
|
|
|
18
18
|
var RadioGroupMobile = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_baseRadioGroup_Component.BaseRadioGroup, tslib.__assign({}, props, { ref: ref, styles: styles }))); });
|
package/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r22d2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
--radio-group-mobile-sub-padding-left: var(--gap-2xs);
|
|
24
24
|
--radio-group-mobile-list-padding-left: var(--gap-3xs);
|
|
25
25
|
--radio-group-mobile-label-color: var(--color-light-text-secondary);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__radioList_1t2kx {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_1t2kx {
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
line-height: 18px;
|
|
31
31
|
font-weight: 400;
|
|
32
32
|
color: var(--radio-group-mobile-label-color);
|
|
33
33
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__sub_1t2kx {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef, useState, Children, isValidElement, cloneElement } f
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { useDidUpdateEffect } from '@alfalab/hooks';
|
|
4
4
|
|
|
5
|
-
const commonStyles = {"component":"radio-
|
|
5
|
+
const commonStyles = {"component":"radio-group__component_1w2vg","error":"radio-group__error_1w2vg","tag":"radio-group__tag_1w2vg","radioList":"radio-group__radioList_1w2vg","verticalRadioList":"radio-group__verticalRadioList_1w2vg","horizontalRadioList":"radio-group__horizontalRadioList_1w2vg","verticalRadio":"radio-group__verticalRadio_1w2vg","horizontalRadio":"radio-group__horizontalRadio_1w2vg","horizontalTagLabel":"radio-group__horizontalTagLabel_1w2vg","label":"radio-group__label_1w2vg","sub":"radio-group__sub_1w2vg","errorMessage":"radio-group__errorMessage_1w2vg","hint":"radio-group__hint_1w2vg","hiddenInput":"radio-group__hiddenInput_1w2vg","tagLabel":"radio-group__tagLabel_1w2vg"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const BaseRadioGroup = forwardRef(({ children, className, radioListClassName, direction = 'vertical', label, error, hint, onChange, onBlur, onFocus, type = 'radio', dataTestId, disabled = false, name, value, styles, }, ref) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: t7flr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
|
+
--color-light-status-negative: #ff5431;
|
|
5
6
|
--color-light-text-negative: #ec2e14;
|
|
6
7
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
7
8
|
} :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 */
|
|
@@ -28,55 +29,55 @@
|
|
|
28
29
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
30
|
|
|
30
31
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
32
|
+
} .radio-group__component_1w2vg {
|
|
32
33
|
display: flex;
|
|
33
34
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
35
|
+
} .radio-group__error_1w2vg {
|
|
35
36
|
padding-left: var(--gap-s);
|
|
36
|
-
border-left: 1px solid var(--
|
|
37
|
-
} .radio-
|
|
37
|
+
border-left: 1px solid var(--color-light-status-negative)
|
|
38
|
+
} .radio-group__error_1w2vg.radio-group__tag_1w2vg {
|
|
38
39
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
40
|
+
} .radio-group__radioList_1w2vg {
|
|
40
41
|
display: flex;
|
|
41
|
-
} .radio-
|
|
42
|
+
} .radio-group__verticalRadioList_1w2vg {
|
|
42
43
|
flex-direction: column;
|
|
43
44
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
45
|
+
} .radio-group__horizontalRadioList_1w2vg {
|
|
45
46
|
flex-wrap: wrap;
|
|
46
47
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
48
|
+
} .radio-group__verticalRadio_1w2vg {
|
|
48
49
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
50
|
+
} .radio-group__verticalRadio_1w2vg:last-child {
|
|
50
51
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
52
|
+
} .radio-group__horizontalRadio_1w2vg {
|
|
52
53
|
margin-right: var(--gap-xl);
|
|
53
54
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
55
|
+
} .radio-group__horizontalTagLabel_1w2vg {
|
|
55
56
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
57
|
+
} .radio-group__horizontalRadio_1w2vg:last-child,
|
|
58
|
+
.radio-group__horizontalTagLabel_1w2vg:last-child {
|
|
58
59
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
60
|
+
} .radio-group__label_1w2vg {
|
|
60
61
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
62
|
+
} .radio-group__sub_1w2vg {
|
|
62
63
|
font-size: 14px;
|
|
63
64
|
line-height: 18px;
|
|
64
65
|
font-weight: 400;
|
|
65
66
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
67
|
+
} .radio-group__errorMessage_1w2vg {
|
|
67
68
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
69
|
+
} .radio-group__hint_1w2vg {
|
|
69
70
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
71
|
+
} .radio-group__hiddenInput_1w2vg {
|
|
71
72
|
position: absolute;
|
|
72
73
|
z-index: -1;
|
|
73
74
|
top: 0;
|
|
74
75
|
left: 0;
|
|
75
76
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
77
|
+
} .radio-group__hiddenInput_1w2vg:focus ~ button {
|
|
77
78
|
outline: 2px solid var(--focus-color);
|
|
78
79
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
80
|
+
} .radio-group__tagLabel_1w2vg {
|
|
80
81
|
position: relative;
|
|
81
82
|
max-width: 100%;
|
|
82
83
|
}
|
|
@@ -3,7 +3,7 @@ import { BaseRadioGroup } from '../components/base-radio-group/Component.js';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
const styles = {"radioList":"radio-
|
|
6
|
+
const styles = {"radioList":"radio-group__radioList_34bk4","label":"radio-group__label_34bk4","sub":"radio-group__sub_34bk4"};
|
|
7
7
|
require('./desktop.css')
|
|
8
8
|
|
|
9
9
|
const RadioGroupDesktop = forwardRef((props, ref) => React.createElement(BaseRadioGroup, { ...props, ref: ref, styles: styles }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: uor4e */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--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 */
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
--radio-group-list-padding-left: 0;
|
|
22
22
|
|
|
23
23
|
/* mobile */
|
|
24
|
-
} .radio-
|
|
24
|
+
} .radio-group__radioList_34bk4 {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_34bk4 {
|
|
27
27
|
font-size: 16px;
|
|
28
28
|
line-height: 24px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
color: var(--radio-group-label-color);
|
|
31
31
|
padding-left: var(--radio-group-sub-padding-left);
|
|
32
|
-
} .radio-
|
|
32
|
+
} .radio-group__sub_34bk4 {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
|
@@ -3,7 +3,7 @@ import { BaseRadioGroup } from '../components/base-radio-group/Component.js';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
const styles = {"radioList":"radio-
|
|
6
|
+
const styles = {"radioList":"radio-group__radioList_1t2kx","label":"radio-group__label_1t2kx","sub":"radio-group__sub_1t2kx"};
|
|
7
7
|
require('./mobile.css')
|
|
8
8
|
|
|
9
9
|
const RadioGroupMobile = forwardRef((props, ref) => (React.createElement(BaseRadioGroup, { ...props, ref: ref, styles: styles })));
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r22d2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
--radio-group-mobile-sub-padding-left: var(--gap-2xs);
|
|
24
24
|
--radio-group-mobile-list-padding-left: var(--gap-3xs);
|
|
25
25
|
--radio-group-mobile-label-color: var(--color-light-text-secondary);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__radioList_1t2kx {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_1t2kx {
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
line-height: 18px;
|
|
31
31
|
font-weight: 400;
|
|
32
32
|
color: var(--radio-group-mobile-label-color);
|
|
33
33
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__sub_1t2kx {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
package/package.json
CHANGED