@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.
Files changed (55) hide show
  1. package/Component.desktop.js +1 -1
  2. package/Component.mobile.js +1 -1
  3. package/components/base-radio-group/Component.js +1 -1
  4. package/components/base-radio-group/index.css +20 -20
  5. package/cssm/desktop/index.d.ts +2 -0
  6. package/cssm/{desktop.js → desktop/index.js} +4 -4
  7. package/cssm/mobile/index.d.ts +2 -0
  8. package/cssm/{mobile.js → mobile/index.js} +4 -4
  9. package/desktop/index.d.ts +2 -0
  10. package/{desktop.js → desktop/index.js} +2 -2
  11. package/desktop/package.json +3 -0
  12. package/desktop.css +4 -4
  13. package/esm/Component.desktop.js +1 -1
  14. package/esm/Component.mobile.js +1 -1
  15. package/esm/components/base-radio-group/Component.js +1 -1
  16. package/esm/components/base-radio-group/index.css +20 -20
  17. package/esm/desktop/index.d.ts +2 -0
  18. package/esm/desktop/index.js +6 -0
  19. package/esm/desktop.css +4 -4
  20. package/esm/mobile/index.d.ts +2 -0
  21. package/esm/mobile/index.js +6 -0
  22. package/esm/mobile.css +4 -4
  23. package/mobile/index.d.ts +2 -0
  24. package/{mobile.js → mobile/index.js} +2 -2
  25. package/mobile/package.json +3 -0
  26. package/mobile.css +4 -4
  27. package/modern/Component.desktop.js +1 -1
  28. package/modern/Component.mobile.js +1 -1
  29. package/modern/components/base-radio-group/Component.js +1 -1
  30. package/modern/components/base-radio-group/index.css +20 -20
  31. package/modern/desktop/index.d.ts +2 -0
  32. package/modern/desktop/index.js +5 -0
  33. package/modern/desktop.css +4 -4
  34. package/modern/mobile/index.d.ts +2 -0
  35. package/modern/mobile/index.js +5 -0
  36. package/modern/mobile.css +4 -4
  37. package/package.json +1 -21
  38. package/src/desktop/index.ts +1 -0
  39. package/src/desktop/package.json +3 -0
  40. package/src/mobile/index.ts +1 -0
  41. package/src/mobile/package.json +3 -0
  42. package/cssm/desktop.d.ts +0 -2
  43. package/cssm/mobile.d.ts +0 -2
  44. package/desktop.d.ts +0 -2
  45. package/esm/desktop.d.ts +0 -2
  46. package/esm/desktop.js +0 -6
  47. package/esm/mobile.d.ts +0 -2
  48. package/esm/mobile.js +0 -6
  49. package/mobile.d.ts +0 -2
  50. package/modern/desktop.d.ts +0 -2
  51. package/modern/desktop.js +0 -5
  52. package/modern/mobile.d.ts +0 -2
  53. package/modern/mobile.js +0 -5
  54. package/src/desktop.ts +0 -1
  55. package/src/mobile.ts +0 -1
@@ -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-group__radioList_jar3i","label":"radio-group__label_jar3i","sub":"radio-group__sub_jar3i"};
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 })); });
@@ -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-group__radioList_4mstm","label":"radio-group__label_4mstm","sub":"radio-group__sub_4mstm"};
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-group__component_11qfb","error":"radio-group__error_11qfb","tag":"radio-group__tag_11qfb","radioList":"radio-group__radioList_11qfb","verticalRadioList":"radio-group__verticalRadioList_11qfb","horizontalRadioList":"radio-group__horizontalRadioList_11qfb","verticalRadio":"radio-group__verticalRadio_11qfb","horizontalRadio":"radio-group__horizontalRadio_11qfb","horizontalTagLabel":"radio-group__horizontalTagLabel_11qfb","label":"radio-group__label_11qfb","sub":"radio-group__sub_11qfb","errorMessage":"radio-group__errorMessage_11qfb","hint":"radio-group__hint_11qfb","hiddenInput":"radio-group__hiddenInput_11qfb","tagLabel":"radio-group__tagLabel_11qfb"};
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: 7lhr8 */
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-group__component_11qfb {
31
+ } .radio-group__component_179iy {
32
32
  display: flex;
33
33
  flex-direction: column;
34
- } .radio-group__error_11qfb {
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-group__error_11qfb.radio-group__tag_11qfb {
37
+ } .radio-group__error_179iy.radio-group__tag_179iy {
38
38
  padding-left: var(--gap-xs);
39
- } .radio-group__radioList_11qfb {
39
+ } .radio-group__radioList_179iy {
40
40
  display: flex;
41
- } .radio-group__verticalRadioList_11qfb {
41
+ } .radio-group__verticalRadioList_179iy {
42
42
  flex-direction: column;
43
43
  align-items: flex-start;
44
- } .radio-group__horizontalRadioList_11qfb {
44
+ } .radio-group__horizontalRadioList_179iy {
45
45
  flex-wrap: wrap;
46
46
  margin-bottom: var(--gap-xs-neg);
47
- } .radio-group__verticalRadio_11qfb {
47
+ } .radio-group__verticalRadio_179iy {
48
48
  margin-bottom: var(--gap-m)
49
- } .radio-group__verticalRadio_11qfb:last-child {
49
+ } .radio-group__verticalRadio_179iy:last-child {
50
50
  margin-bottom: 0;
51
- } .radio-group__horizontalRadio_11qfb {
51
+ } .radio-group__horizontalRadio_179iy {
52
52
  margin-right: var(--gap-xl);
53
53
  margin-bottom: var(--gap-xs);
54
- } .radio-group__horizontalTagLabel_11qfb {
54
+ } .radio-group__horizontalTagLabel_179iy {
55
55
  margin-right: var(--gap-xs);
56
- } .radio-group__horizontalRadio_11qfb:last-child,
57
- .radio-group__horizontalTagLabel_11qfb:last-child {
56
+ } .radio-group__horizontalRadio_179iy:last-child,
57
+ .radio-group__horizontalTagLabel_179iy:last-child {
58
58
  margin-right: 0;
59
- } .radio-group__label_11qfb {
59
+ } .radio-group__label_179iy {
60
60
  margin-bottom: var(--gap-s);
61
- } .radio-group__sub_11qfb {
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-group__errorMessage_11qfb {
66
+ } .radio-group__errorMessage_179iy {
67
67
  color: var(--radio-group-error-color);
68
- } .radio-group__hint_11qfb {
68
+ } .radio-group__hint_179iy {
69
69
  color: var(--radio-group-hint-color);
70
- } .radio-group__hiddenInput_11qfb {
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-group__hiddenInput_11qfb:focus ~ button {
76
+ } .radio-group__hiddenInput_179iy:focus ~ button {
77
77
  outline: 2px solid var(--focus-color);
78
78
  outline-offset: 2px;
79
- } .radio-group__tagLabel_11qfb {
79
+ } .radio-group__tagLabel_179iy {
80
80
  position: relative;
81
81
  max-width: 100%;
82
82
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.desktop";
2
+ export {};
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_desktop = require('./Component.desktop.js');
5
+ var Component_desktop = require('../Component.desktop.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('./components/base-radio-group/Component.js');
8
+ require('../components/base-radio-group/Component.js');
9
9
  require('classnames');
10
10
  require('@alfalab/hooks');
11
- require('./components/base-radio-group/index.module.css');
12
- require('./desktop.module.css');
11
+ require('../components/base-radio-group/index.module.css');
12
+ require('../desktop.module.css');
13
13
 
14
14
 
15
15
 
@@ -0,0 +1,2 @@
1
+ export * from "../Component.mobile";
2
+ export {};
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_mobile = require('./Component.mobile.js');
5
+ var Component_mobile = require('../Component.mobile.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('./components/base-radio-group/Component.js');
8
+ require('../components/base-radio-group/Component.js');
9
9
  require('classnames');
10
10
  require('@alfalab/hooks');
11
- require('./components/base-radio-group/index.module.css');
12
- require('./mobile.module.css');
11
+ require('../components/base-radio-group/index.module.css');
12
+ require('../mobile.module.css');
13
13
 
14
14
 
15
15
 
@@ -0,0 +1,2 @@
1
+ export * from "../Component.desktop";
2
+ export {};
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_desktop = require('./Component.desktop.js');
5
+ var Component_desktop = require('../Component.desktop.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('./components/base-radio-group/Component.js');
8
+ require('../components/base-radio-group/Component.js');
9
9
  require('classnames');
10
10
  require('@alfalab/hooks');
11
11
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/desktop/index.js"
3
+ }
package/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ezy2i */
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-group__radioList_jar3i {
24
+ } .radio-group__radioList_1arjj {
25
25
  padding-left: var(--radio-group-list-padding-left);
26
- } .radio-group__label_jar3i {
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-group__sub_jar3i {
32
+ } .radio-group__sub_1arjj {
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-group__radioList_jar3i","label":"radio-group__label_jar3i","sub":"radio-group__sub_jar3i"};
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 })); });
@@ -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-group__radioList_4mstm","label":"radio-group__label_4mstm","sub":"radio-group__sub_4mstm"};
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-group__component_11qfb","error":"radio-group__error_11qfb","tag":"radio-group__tag_11qfb","radioList":"radio-group__radioList_11qfb","verticalRadioList":"radio-group__verticalRadioList_11qfb","horizontalRadioList":"radio-group__horizontalRadioList_11qfb","verticalRadio":"radio-group__verticalRadio_11qfb","horizontalRadio":"radio-group__horizontalRadio_11qfb","horizontalTagLabel":"radio-group__horizontalTagLabel_11qfb","label":"radio-group__label_11qfb","sub":"radio-group__sub_11qfb","errorMessage":"radio-group__errorMessage_11qfb","hint":"radio-group__hint_11qfb","hiddenInput":"radio-group__hiddenInput_11qfb","tagLabel":"radio-group__tagLabel_11qfb"};
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: 7lhr8 */
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-group__component_11qfb {
31
+ } .radio-group__component_179iy {
32
32
  display: flex;
33
33
  flex-direction: column;
34
- } .radio-group__error_11qfb {
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-group__error_11qfb.radio-group__tag_11qfb {
37
+ } .radio-group__error_179iy.radio-group__tag_179iy {
38
38
  padding-left: var(--gap-xs);
39
- } .radio-group__radioList_11qfb {
39
+ } .radio-group__radioList_179iy {
40
40
  display: flex;
41
- } .radio-group__verticalRadioList_11qfb {
41
+ } .radio-group__verticalRadioList_179iy {
42
42
  flex-direction: column;
43
43
  align-items: flex-start;
44
- } .radio-group__horizontalRadioList_11qfb {
44
+ } .radio-group__horizontalRadioList_179iy {
45
45
  flex-wrap: wrap;
46
46
  margin-bottom: var(--gap-xs-neg);
47
- } .radio-group__verticalRadio_11qfb {
47
+ } .radio-group__verticalRadio_179iy {
48
48
  margin-bottom: var(--gap-m)
49
- } .radio-group__verticalRadio_11qfb:last-child {
49
+ } .radio-group__verticalRadio_179iy:last-child {
50
50
  margin-bottom: 0;
51
- } .radio-group__horizontalRadio_11qfb {
51
+ } .radio-group__horizontalRadio_179iy {
52
52
  margin-right: var(--gap-xl);
53
53
  margin-bottom: var(--gap-xs);
54
- } .radio-group__horizontalTagLabel_11qfb {
54
+ } .radio-group__horizontalTagLabel_179iy {
55
55
  margin-right: var(--gap-xs);
56
- } .radio-group__horizontalRadio_11qfb:last-child,
57
- .radio-group__horizontalTagLabel_11qfb:last-child {
56
+ } .radio-group__horizontalRadio_179iy:last-child,
57
+ .radio-group__horizontalTagLabel_179iy:last-child {
58
58
  margin-right: 0;
59
- } .radio-group__label_11qfb {
59
+ } .radio-group__label_179iy {
60
60
  margin-bottom: var(--gap-s);
61
- } .radio-group__sub_11qfb {
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-group__errorMessage_11qfb {
66
+ } .radio-group__errorMessage_179iy {
67
67
  color: var(--radio-group-error-color);
68
- } .radio-group__hint_11qfb {
68
+ } .radio-group__hint_179iy {
69
69
  color: var(--radio-group-hint-color);
70
- } .radio-group__hiddenInput_11qfb {
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-group__hiddenInput_11qfb:focus ~ button {
76
+ } .radio-group__hiddenInput_179iy:focus ~ button {
77
77
  outline: 2px solid var(--focus-color);
78
78
  outline-offset: 2px;
79
- } .radio-group__tagLabel_11qfb {
79
+ } .radio-group__tagLabel_179iy {
80
80
  position: relative;
81
81
  max-width: 100%;
82
82
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.desktop";
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export { RadioGroupDesktop } from '../Component.desktop.js';
2
+ import 'tslib';
3
+ import 'react';
4
+ import '../components/base-radio-group/Component.js';
5
+ import 'classnames';
6
+ import '@alfalab/hooks';
package/esm/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ezy2i */
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-group__radioList_jar3i {
24
+ } .radio-group__radioList_1arjj {
25
25
  padding-left: var(--radio-group-list-padding-left);
26
- } .radio-group__label_jar3i {
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-group__sub_jar3i {
32
+ } .radio-group__sub_1arjj {
33
33
  padding-left: var(--radio-group-sub-padding-left);
34
34
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.mobile";
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export { RadioGroupMobile } from '../Component.mobile.js';
2
+ import 'tslib';
3
+ import 'react';
4
+ import '../components/base-radio-group/Component.js';
5
+ import 'classnames';
6
+ import '@alfalab/hooks';
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 8spym */
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-group__radioList_4mstm {
26
+ } .radio-group__radioList_19nbj {
27
27
  padding-left: var(--radio-group-mobile-list-padding-left);
28
- } .radio-group__label_4mstm {
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-group__sub_4mstm {
34
+ } .radio-group__sub_19nbj {
35
35
  padding-left: var(--radio-group-mobile-sub-padding-left);
36
36
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.mobile";
2
+ export {};
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_mobile = require('./Component.mobile.js');
5
+ var Component_mobile = require('../Component.mobile.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('./components/base-radio-group/Component.js');
8
+ require('../components/base-radio-group/Component.js');
9
9
  require('classnames');
10
10
  require('@alfalab/hooks');
11
11
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/mobile/index.js"
3
+ }
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 8spym */
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-group__radioList_4mstm {
26
+ } .radio-group__radioList_19nbj {
27
27
  padding-left: var(--radio-group-mobile-list-padding-left);
28
- } .radio-group__label_4mstm {
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-group__sub_4mstm {
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-group__radioList_jar3i","label":"radio-group__label_jar3i","sub":"radio-group__sub_jar3i"};
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-group__radioList_4mstm","label":"radio-group__label_4mstm","sub":"radio-group__sub_4mstm"};
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-group__component_11qfb","error":"radio-group__error_11qfb","tag":"radio-group__tag_11qfb","radioList":"radio-group__radioList_11qfb","verticalRadioList":"radio-group__verticalRadioList_11qfb","horizontalRadioList":"radio-group__horizontalRadioList_11qfb","verticalRadio":"radio-group__verticalRadio_11qfb","horizontalRadio":"radio-group__horizontalRadio_11qfb","horizontalTagLabel":"radio-group__horizontalTagLabel_11qfb","label":"radio-group__label_11qfb","sub":"radio-group__sub_11qfb","errorMessage":"radio-group__errorMessage_11qfb","hint":"radio-group__hint_11qfb","hiddenInput":"radio-group__hiddenInput_11qfb","tagLabel":"radio-group__tagLabel_11qfb"};
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: 7lhr8 */
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-group__component_11qfb {
31
+ } .radio-group__component_179iy {
32
32
  display: flex;
33
33
  flex-direction: column;
34
- } .radio-group__error_11qfb {
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-group__error_11qfb.radio-group__tag_11qfb {
37
+ } .radio-group__error_179iy.radio-group__tag_179iy {
38
38
  padding-left: var(--gap-xs);
39
- } .radio-group__radioList_11qfb {
39
+ } .radio-group__radioList_179iy {
40
40
  display: flex;
41
- } .radio-group__verticalRadioList_11qfb {
41
+ } .radio-group__verticalRadioList_179iy {
42
42
  flex-direction: column;
43
43
  align-items: flex-start;
44
- } .radio-group__horizontalRadioList_11qfb {
44
+ } .radio-group__horizontalRadioList_179iy {
45
45
  flex-wrap: wrap;
46
46
  margin-bottom: var(--gap-xs-neg);
47
- } .radio-group__verticalRadio_11qfb {
47
+ } .radio-group__verticalRadio_179iy {
48
48
  margin-bottom: var(--gap-m)
49
- } .radio-group__verticalRadio_11qfb:last-child {
49
+ } .radio-group__verticalRadio_179iy:last-child {
50
50
  margin-bottom: 0;
51
- } .radio-group__horizontalRadio_11qfb {
51
+ } .radio-group__horizontalRadio_179iy {
52
52
  margin-right: var(--gap-xl);
53
53
  margin-bottom: var(--gap-xs);
54
- } .radio-group__horizontalTagLabel_11qfb {
54
+ } .radio-group__horizontalTagLabel_179iy {
55
55
  margin-right: var(--gap-xs);
56
- } .radio-group__horizontalRadio_11qfb:last-child,
57
- .radio-group__horizontalTagLabel_11qfb:last-child {
56
+ } .radio-group__horizontalRadio_179iy:last-child,
57
+ .radio-group__horizontalTagLabel_179iy:last-child {
58
58
  margin-right: 0;
59
- } .radio-group__label_11qfb {
59
+ } .radio-group__label_179iy {
60
60
  margin-bottom: var(--gap-s);
61
- } .radio-group__sub_11qfb {
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-group__errorMessage_11qfb {
66
+ } .radio-group__errorMessage_179iy {
67
67
  color: var(--radio-group-error-color);
68
- } .radio-group__hint_11qfb {
68
+ } .radio-group__hint_179iy {
69
69
  color: var(--radio-group-hint-color);
70
- } .radio-group__hiddenInput_11qfb {
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-group__hiddenInput_11qfb:focus ~ button {
76
+ } .radio-group__hiddenInput_179iy:focus ~ button {
77
77
  outline: 2px solid var(--focus-color);
78
78
  outline-offset: 2px;
79
- } .radio-group__tagLabel_11qfb {
79
+ } .radio-group__tagLabel_179iy {
80
80
  position: relative;
81
81
  max-width: 100%;
82
82
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.desktop";
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export { RadioGroupDesktop } from '../Component.desktop.js';
2
+ import 'react';
3
+ import '../components/base-radio-group/Component.js';
4
+ import 'classnames';
5
+ import '@alfalab/hooks';
@@ -1,4 +1,4 @@
1
- /* hash: ezy2i */
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-group__radioList_jar3i {
24
+ } .radio-group__radioList_1arjj {
25
25
  padding-left: var(--radio-group-list-padding-left);
26
- } .radio-group__label_jar3i {
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-group__sub_jar3i {
32
+ } .radio-group__sub_1arjj {
33
33
  padding-left: var(--radio-group-sub-padding-left);
34
34
  }
@@ -0,0 +1,2 @@
1
+ export * from "../Component.mobile";
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export { RadioGroupMobile } from '../Component.mobile.js';
2
+ import 'react';
3
+ import '../components/base-radio-group/Component.js';
4
+ import 'classnames';
5
+ import '@alfalab/hooks';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 8spym */
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-group__radioList_4mstm {
26
+ } .radio-group__radioList_19nbj {
27
27
  padding-left: var(--radio-group-mobile-list-padding-left);
28
- } .radio-group__label_4mstm {
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-group__sub_4mstm {
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.1.1",
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,3 @@
1
+ {
2
+ "module": "../esm/desktop/index.js"
3
+ }
@@ -0,0 +1 @@
1
+ export * from '../Component.mobile';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/mobile/index.js"
3
+ }
package/cssm/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop";
2
- export {};
package/cssm/mobile.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.mobile";
2
- export {};
package/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop";
2
- export {};
package/esm/desktop.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop";
2
- export {};
package/esm/desktop.js DELETED
@@ -1,6 +0,0 @@
1
- export { RadioGroupDesktop } from './Component.desktop.js';
2
- import 'tslib';
3
- import 'react';
4
- import './components/base-radio-group/Component.js';
5
- import 'classnames';
6
- import '@alfalab/hooks';
package/esm/mobile.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.mobile";
2
- export {};
package/esm/mobile.js DELETED
@@ -1,6 +0,0 @@
1
- export { RadioGroupMobile } from './Component.mobile.js';
2
- import 'tslib';
3
- import 'react';
4
- import './components/base-radio-group/Component.js';
5
- import 'classnames';
6
- import '@alfalab/hooks';
package/mobile.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./Component.mobile";
2
- export {};
@@ -1,2 +0,0 @@
1
- export * from "./Component.desktop";
2
- export {};
package/modern/desktop.js DELETED
@@ -1,5 +0,0 @@
1
- export { RadioGroupDesktop } from './Component.desktop.js';
2
- import 'react';
3
- import './components/base-radio-group/Component.js';
4
- import 'classnames';
5
- import '@alfalab/hooks';
@@ -1,2 +0,0 @@
1
- export * from "./Component.mobile";
2
- export {};
package/modern/mobile.js DELETED
@@ -1,5 +0,0 @@
1
- export { RadioGroupMobile } from './Component.mobile.js';
2
- import 'react';
3
- import './components/base-radio-group/Component.js';
4
- import 'classnames';
5
- import '@alfalab/hooks';
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';