@alfalab/core-components-radio-group 4.1.1 → 4.2.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/Component.desktop.js +1 -1
- package/Component.mobile.js +1 -1
- package/components/base-radio-group/Component.js +1 -1
- package/components/base-radio-group/index.css +20 -20
- package/cssm/desktop/index.d.ts +2 -0
- package/cssm/{desktop.js → desktop/index.js} +4 -4
- package/cssm/mobile/index.d.ts +2 -0
- package/cssm/{mobile.js → mobile/index.js} +4 -4
- package/desktop/index.d.ts +2 -0
- package/{desktop.js → desktop/index.js} +2 -2
- package/desktop/package.json +3 -0
- package/desktop.css +4 -4
- package/esm/Component.desktop.js +1 -1
- package/esm/Component.mobile.js +1 -1
- package/esm/components/base-radio-group/Component.js +1 -1
- package/esm/components/base-radio-group/index.css +20 -20
- package/esm/desktop/index.d.ts +2 -0
- package/esm/desktop/index.js +6 -0
- package/esm/desktop.css +4 -4
- package/esm/mobile/index.d.ts +2 -0
- package/esm/mobile/index.js +6 -0
- package/esm/mobile.css +4 -4
- package/mobile/index.d.ts +2 -0
- package/{mobile.js → mobile/index.js} +2 -2
- package/mobile/package.json +3 -0
- package/mobile.css +4 -4
- package/modern/Component.desktop.js +1 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/components/base-radio-group/Component.js +1 -1
- package/modern/components/base-radio-group/index.css +20 -20
- package/modern/desktop/index.d.ts +2 -0
- package/modern/desktop/index.js +5 -0
- package/modern/desktop.css +4 -4
- package/modern/mobile/index.d.ts +2 -0
- package/modern/mobile/index.js +5 -0
- package/modern/mobile.css +4 -4
- package/package.json +1 -21
- package/src/desktop/index.ts +1 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +1 -0
- package/src/mobile/package.json +3 -0
- package/cssm/desktop.d.ts +0 -2
- package/cssm/mobile.d.ts +0 -2
- package/desktop.d.ts +0 -2
- package/esm/desktop.d.ts +0 -2
- package/esm/desktop.js +0 -6
- package/esm/mobile.d.ts +0 -2
- package/esm/mobile.js +0 -6
- package/mobile.d.ts +0 -2
- package/modern/desktop.d.ts +0 -2
- package/modern/desktop.js +0 -5
- package/modern/mobile.d.ts +0 -2
- package/modern/mobile.js +0 -5
- package/src/desktop.ts +0 -1
- package/src/mobile.ts +0 -1
package/Component.desktop.js
CHANGED
|
@@ -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_1arjj","label":"radio-group__label_1arjj","sub":"radio-group__sub_1arjj"};
|
|
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/Component.mobile.js
CHANGED
|
@@ -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_19nbj","label":"radio-group__label_19nbj","sub":"radio-group__sub_19nbj"};
|
|
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 }))); });
|
|
@@ -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_179iy","error":"radio-group__error_179iy","tag":"radio-group__tag_179iy","radioList":"radio-group__radioList_179iy","verticalRadioList":"radio-group__verticalRadioList_179iy","horizontalRadioList":"radio-group__horizontalRadioList_179iy","verticalRadio":"radio-group__verticalRadio_179iy","horizontalRadio":"radio-group__horizontalRadio_179iy","horizontalTagLabel":"radio-group__horizontalTagLabel_179iy","label":"radio-group__label_179iy","sub":"radio-group__sub_179iy","errorMessage":"radio-group__errorMessage_179iy","hint":"radio-group__hint_179iy","hiddenInput":"radio-group__hiddenInput_179iy","tagLabel":"radio-group__tagLabel_179iy"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var BaseRadioGroup = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tmfa */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -28,55 +28,55 @@
|
|
|
28
28
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
29
|
|
|
30
30
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
31
|
+
} .radio-group__component_179iy {
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__error_179iy {
|
|
35
35
|
padding-left: var(--gap-s);
|
|
36
36
|
border-left: 1px solid var(--radio-group-error-color)
|
|
37
|
-
} .radio-
|
|
37
|
+
} .radio-group__error_179iy.radio-group__tag_179iy {
|
|
38
38
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
39
|
+
} .radio-group__radioList_179iy {
|
|
40
40
|
display: flex;
|
|
41
|
-
} .radio-
|
|
41
|
+
} .radio-group__verticalRadioList_179iy {
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
44
|
+
} .radio-group__horizontalRadioList_179iy {
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
47
|
+
} .radio-group__verticalRadio_179iy {
|
|
48
48
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
49
|
+
} .radio-group__verticalRadio_179iy:last-child {
|
|
50
50
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
51
|
+
} .radio-group__horizontalRadio_179iy {
|
|
52
52
|
margin-right: var(--gap-xl);
|
|
53
53
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
54
|
+
} .radio-group__horizontalTagLabel_179iy {
|
|
55
55
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
56
|
+
} .radio-group__horizontalRadio_179iy:last-child,
|
|
57
|
+
.radio-group__horizontalTagLabel_179iy:last-child {
|
|
58
58
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
59
|
+
} .radio-group__label_179iy {
|
|
60
60
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
61
|
+
} .radio-group__sub_179iy {
|
|
62
62
|
font-size: 14px;
|
|
63
63
|
line-height: 18px;
|
|
64
64
|
font-weight: 400;
|
|
65
65
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
66
|
+
} .radio-group__errorMessage_179iy {
|
|
67
67
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
68
|
+
} .radio-group__hint_179iy {
|
|
69
69
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
70
|
+
} .radio-group__hiddenInput_179iy {
|
|
71
71
|
position: absolute;
|
|
72
72
|
z-index: -1;
|
|
73
73
|
top: 0;
|
|
74
74
|
left: 0;
|
|
75
75
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
76
|
+
} .radio-group__hiddenInput_179iy:focus ~ button {
|
|
77
77
|
outline: 2px solid var(--focus-color);
|
|
78
78
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
79
|
+
} .radio-group__tagLabel_179iy {
|
|
80
80
|
position: relative;
|
|
81
81
|
max-width: 100%;
|
|
82
82
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
-
require('
|
|
8
|
+
require('../components/base-radio-group/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
|
-
require('
|
|
12
|
-
require('
|
|
11
|
+
require('../components/base-radio-group/index.module.css');
|
|
12
|
+
require('../desktop.module.css');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
-
require('
|
|
8
|
+
require('../components/base-radio-group/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
|
-
require('
|
|
12
|
-
require('
|
|
11
|
+
require('../components/base-radio-group/index.module.css');
|
|
12
|
+
require('../mobile.module.css');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
-
require('
|
|
8
|
+
require('../components/base-radio-group/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
11
|
|
package/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcm4 */
|
|
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_1arjj {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_1arjj {
|
|
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_1arjj {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
package/esm/Component.desktop.js
CHANGED
|
@@ -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_1arjj","label":"radio-group__label_1arjj","sub":"radio-group__sub_1arjj"};
|
|
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/Component.mobile.js
CHANGED
|
@@ -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_19nbj","label":"radio-group__label_19nbj","sub":"radio-group__sub_19nbj"};
|
|
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 }))); });
|
|
@@ -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_179iy","error":"radio-group__error_179iy","tag":"radio-group__tag_179iy","radioList":"radio-group__radioList_179iy","verticalRadioList":"radio-group__verticalRadioList_179iy","horizontalRadioList":"radio-group__horizontalRadioList_179iy","verticalRadio":"radio-group__verticalRadio_179iy","horizontalRadio":"radio-group__horizontalRadio_179iy","horizontalTagLabel":"radio-group__horizontalTagLabel_179iy","label":"radio-group__label_179iy","sub":"radio-group__sub_179iy","errorMessage":"radio-group__errorMessage_179iy","hint":"radio-group__hint_179iy","hiddenInput":"radio-group__hiddenInput_179iy","tagLabel":"radio-group__tagLabel_179iy"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseRadioGroup = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tmfa */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -28,55 +28,55 @@
|
|
|
28
28
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
29
|
|
|
30
30
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
31
|
+
} .radio-group__component_179iy {
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__error_179iy {
|
|
35
35
|
padding-left: var(--gap-s);
|
|
36
36
|
border-left: 1px solid var(--radio-group-error-color)
|
|
37
|
-
} .radio-
|
|
37
|
+
} .radio-group__error_179iy.radio-group__tag_179iy {
|
|
38
38
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
39
|
+
} .radio-group__radioList_179iy {
|
|
40
40
|
display: flex;
|
|
41
|
-
} .radio-
|
|
41
|
+
} .radio-group__verticalRadioList_179iy {
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
44
|
+
} .radio-group__horizontalRadioList_179iy {
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
47
|
+
} .radio-group__verticalRadio_179iy {
|
|
48
48
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
49
|
+
} .radio-group__verticalRadio_179iy:last-child {
|
|
50
50
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
51
|
+
} .radio-group__horizontalRadio_179iy {
|
|
52
52
|
margin-right: var(--gap-xl);
|
|
53
53
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
54
|
+
} .radio-group__horizontalTagLabel_179iy {
|
|
55
55
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
56
|
+
} .radio-group__horizontalRadio_179iy:last-child,
|
|
57
|
+
.radio-group__horizontalTagLabel_179iy:last-child {
|
|
58
58
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
59
|
+
} .radio-group__label_179iy {
|
|
60
60
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
61
|
+
} .radio-group__sub_179iy {
|
|
62
62
|
font-size: 14px;
|
|
63
63
|
line-height: 18px;
|
|
64
64
|
font-weight: 400;
|
|
65
65
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
66
|
+
} .radio-group__errorMessage_179iy {
|
|
67
67
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
68
|
+
} .radio-group__hint_179iy {
|
|
69
69
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
70
|
+
} .radio-group__hiddenInput_179iy {
|
|
71
71
|
position: absolute;
|
|
72
72
|
z-index: -1;
|
|
73
73
|
top: 0;
|
|
74
74
|
left: 0;
|
|
75
75
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
76
|
+
} .radio-group__hiddenInput_179iy:focus ~ button {
|
|
77
77
|
outline: 2px solid var(--focus-color);
|
|
78
78
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
79
|
+
} .radio-group__tagLabel_179iy {
|
|
80
80
|
position: relative;
|
|
81
81
|
max-width: 100%;
|
|
82
82
|
}
|
package/esm/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcm4 */
|
|
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_1arjj {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_1arjj {
|
|
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_1arjj {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
package/esm/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: n4bof */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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_19nbj {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_19nbj {
|
|
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_19nbj {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
-
require('
|
|
8
|
+
require('../components/base-radio-group/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
11
|
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: n4bof */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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_19nbj {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_19nbj {
|
|
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_19nbj {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
|
@@ -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_1arjj","label":"radio-group__label_1arjj","sub":"radio-group__sub_1arjj"};
|
|
7
7
|
require('./desktop.css')
|
|
8
8
|
|
|
9
9
|
const RadioGroupDesktop = forwardRef((props, ref) => React.createElement(BaseRadioGroup, { ...props, ref: ref, styles: styles }));
|
|
@@ -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_19nbj","label":"radio-group__label_19nbj","sub":"radio-group__sub_19nbj"};
|
|
7
7
|
require('./mobile.css')
|
|
8
8
|
|
|
9
9
|
const RadioGroupMobile = forwardRef((props, ref) => (React.createElement(BaseRadioGroup, { ...props, ref: ref, styles: styles })));
|
|
@@ -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_179iy","error":"radio-group__error_179iy","tag":"radio-group__tag_179iy","radioList":"radio-group__radioList_179iy","verticalRadioList":"radio-group__verticalRadioList_179iy","horizontalRadioList":"radio-group__horizontalRadioList_179iy","verticalRadio":"radio-group__verticalRadio_179iy","horizontalRadio":"radio-group__horizontalRadio_179iy","horizontalTagLabel":"radio-group__horizontalTagLabel_179iy","label":"radio-group__label_179iy","sub":"radio-group__sub_179iy","errorMessage":"radio-group__errorMessage_179iy","hint":"radio-group__hint_179iy","hiddenInput":"radio-group__hiddenInput_179iy","tagLabel":"radio-group__tagLabel_179iy"};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tmfa */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -28,55 +28,55 @@
|
|
|
28
28
|
--radio-group-hint-color: var(--color-light-text-secondary);
|
|
29
29
|
|
|
30
30
|
/* mobile */
|
|
31
|
-
} .radio-
|
|
31
|
+
} .radio-group__component_179iy {
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
} .radio-
|
|
34
|
+
} .radio-group__error_179iy {
|
|
35
35
|
padding-left: var(--gap-s);
|
|
36
36
|
border-left: 1px solid var(--radio-group-error-color)
|
|
37
|
-
} .radio-
|
|
37
|
+
} .radio-group__error_179iy.radio-group__tag_179iy {
|
|
38
38
|
padding-left: var(--gap-xs);
|
|
39
|
-
} .radio-
|
|
39
|
+
} .radio-group__radioList_179iy {
|
|
40
40
|
display: flex;
|
|
41
|
-
} .radio-
|
|
41
|
+
} .radio-group__verticalRadioList_179iy {
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
align-items: flex-start;
|
|
44
|
-
} .radio-
|
|
44
|
+
} .radio-group__horizontalRadioList_179iy {
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
margin-bottom: var(--gap-xs-neg);
|
|
47
|
-
} .radio-
|
|
47
|
+
} .radio-group__verticalRadio_179iy {
|
|
48
48
|
margin-bottom: var(--gap-m)
|
|
49
|
-
} .radio-
|
|
49
|
+
} .radio-group__verticalRadio_179iy:last-child {
|
|
50
50
|
margin-bottom: 0;
|
|
51
|
-
} .radio-
|
|
51
|
+
} .radio-group__horizontalRadio_179iy {
|
|
52
52
|
margin-right: var(--gap-xl);
|
|
53
53
|
margin-bottom: var(--gap-xs);
|
|
54
|
-
} .radio-
|
|
54
|
+
} .radio-group__horizontalTagLabel_179iy {
|
|
55
55
|
margin-right: var(--gap-xs);
|
|
56
|
-
} .radio-
|
|
57
|
-
.radio-
|
|
56
|
+
} .radio-group__horizontalRadio_179iy:last-child,
|
|
57
|
+
.radio-group__horizontalTagLabel_179iy:last-child {
|
|
58
58
|
margin-right: 0;
|
|
59
|
-
} .radio-
|
|
59
|
+
} .radio-group__label_179iy {
|
|
60
60
|
margin-bottom: var(--gap-s);
|
|
61
|
-
} .radio-
|
|
61
|
+
} .radio-group__sub_179iy {
|
|
62
62
|
font-size: 14px;
|
|
63
63
|
line-height: 18px;
|
|
64
64
|
font-weight: 400;
|
|
65
65
|
margin-top: var(--gap-s);
|
|
66
|
-
} .radio-
|
|
66
|
+
} .radio-group__errorMessage_179iy {
|
|
67
67
|
color: var(--radio-group-error-color);
|
|
68
|
-
} .radio-
|
|
68
|
+
} .radio-group__hint_179iy {
|
|
69
69
|
color: var(--radio-group-hint-color);
|
|
70
|
-
} .radio-
|
|
70
|
+
} .radio-group__hiddenInput_179iy {
|
|
71
71
|
position: absolute;
|
|
72
72
|
z-index: -1;
|
|
73
73
|
top: 0;
|
|
74
74
|
left: 0;
|
|
75
75
|
opacity: 0
|
|
76
|
-
} .radio-
|
|
76
|
+
} .radio-group__hiddenInput_179iy:focus ~ button {
|
|
77
77
|
outline: 2px solid var(--focus-color);
|
|
78
78
|
outline-offset: 2px;
|
|
79
|
-
} .radio-
|
|
79
|
+
} .radio-group__tagLabel_179iy {
|
|
80
80
|
position: relative;
|
|
81
81
|
max-width: 100%;
|
|
82
82
|
}
|
package/modern/desktop.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcm4 */
|
|
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_1arjj {
|
|
25
25
|
padding-left: var(--radio-group-list-padding-left);
|
|
26
|
-
} .radio-
|
|
26
|
+
} .radio-group__label_1arjj {
|
|
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_1arjj {
|
|
33
33
|
padding-left: var(--radio-group-sub-padding-left);
|
|
34
34
|
}
|
package/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: n4bof */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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_19nbj {
|
|
27
27
|
padding-left: var(--radio-group-mobile-list-padding-left);
|
|
28
|
-
} .radio-
|
|
28
|
+
} .radio-group__label_19nbj {
|
|
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_19nbj {
|
|
35
35
|
padding-left: var(--radio-group-mobile-sub-padding-left);
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-radio-group",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Radio group",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./index.js"
|
|
13
|
-
},
|
|
14
|
-
"./mobile": {
|
|
15
|
-
"import": "./esm/mobile.js",
|
|
16
|
-
"require": "./mobile.js"
|
|
17
|
-
},
|
|
18
|
-
"./desktop": {
|
|
19
|
-
"import": "./esm/desktop.js",
|
|
20
|
-
"require": "./desktop.js"
|
|
21
|
-
},
|
|
22
|
-
"./esm": "./esm/index.js",
|
|
23
|
-
"./cssm": "./cssm/index.js",
|
|
24
|
-
"./modern": "./modern/index.js",
|
|
25
|
-
"./esm/*": "./esm/*",
|
|
26
|
-
"./cssm/*": "./cssm/*",
|
|
27
|
-
"./modern/*": "./modern/*"
|
|
28
|
-
},
|
|
29
9
|
"publishConfig": {
|
|
30
10
|
"access": "public",
|
|
31
11
|
"directory": "dist"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../Component.desktop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../Component.mobile';
|
package/cssm/desktop.d.ts
DELETED
package/cssm/mobile.d.ts
DELETED
package/desktop.d.ts
DELETED
package/esm/desktop.d.ts
DELETED
package/esm/desktop.js
DELETED
package/esm/mobile.d.ts
DELETED
package/esm/mobile.js
DELETED
package/mobile.d.ts
DELETED
package/modern/desktop.d.ts
DELETED
package/modern/desktop.js
DELETED
package/modern/mobile.d.ts
DELETED
package/modern/mobile.js
DELETED
package/src/desktop.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Component.desktop';
|
package/src/mobile.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Component.mobile';
|