@rescui/radio-button 0.3.1 → 0.3.2

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/lib/index.css CHANGED
@@ -1,8 +1,9 @@
1
- ._main_hc77gb_3{
1
+ ._main_xksgkf_3{
2
2
  display:inline-block;
3
+
3
4
  vertical-align:middle;
4
5
  }
5
- ._errorMessage_hc77gb_8{
6
+ ._errorMessage_xksgkf_9{
6
7
  letter-spacing:0.0045em;
7
8
  font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
8
9
  font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
@@ -11,20 +12,21 @@
11
12
  line-height:20px;
12
13
  line-height:var(--rs-text-3-line-height, 20px);
13
14
  }
14
- ._rs-reset-letter-spacing_hc77gb_1 ._errorMessage_hc77gb_8{
15
+ ._rs-reset-letter-spacing_xksgkf_1 ._errorMessage_xksgkf_9{
15
16
  letter-spacing:normal;
16
17
  }
17
- ._errorMessage_hc77gb_8 {
18
+ ._errorMessage_xksgkf_9 {
18
19
 
19
20
  margin-bottom:8px;
20
21
 
21
22
  color:#F45C4A;
22
23
  }
23
- ._input_hc77gb_16{
24
+ ._input_xksgkf_17{
24
25
  position:absolute;
25
26
  -webkit-appearance:none;
26
27
  -moz-appearance:none;
27
28
  appearance:none;
29
+
28
30
  z-index:-1;
29
31
 
30
32
  opacity:0;
@@ -33,256 +35,231 @@
33
35
 
34
36
  border:0;
35
37
  }
36
- ._icon_hc77gb_28{
37
- display:inline-block;
38
+ ._icon_xksgkf_30{
38
39
  position:relative;
39
40
 
41
+ display:inline-block;
42
+
40
43
  -webkit-box-sizing:border-box;
41
44
 
42
45
  box-sizing:border-box;
43
46
 
47
+ border-width:1px;
48
+ border-style:solid;
49
+
44
50
  border-radius:50%;
45
51
  }
46
- ._enabled_hc77gb_36 ._icon_hc77gb_28{
52
+ ._enabled_xksgkf_42 ._icon_xksgkf_30{
47
53
  cursor:pointer;
48
54
  }
49
- ._icon_hc77gb_28::before{
50
- content:'';
51
- display:block;
52
- position:absolute;
53
- width:calc(100% - 2px);
54
- height:calc(100% - 2px);
55
- top:50%;
56
- left:50%;
57
- -webkit-transform:translate(-50%, -50%);
58
- transform:translate(-50%, -50%);
59
- border-radius:50%;
60
- }
61
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._icon_hc77gb_28,
62
- ._themeLight_hc77gb_52._rock_hc77gb_53 ._icon_hc77gb_28{
63
- background-color:rgba(25,25,28,0.4);
64
- }
65
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._icon_hc77gb_28::before, ._themeLight_hc77gb_52._rock_hc77gb_53 ._icon_hc77gb_28::before{
66
- background-color:#FFFFFF;
67
- }
68
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._icon_hc77gb_28,
69
- ._themeDark_hc77gb_61._rock_hc77gb_53 ._icon_hc77gb_28{
70
- background-color:rgba(255,255,255,0.4);
71
- }
72
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._icon_hc77gb_28::before, ._themeDark_hc77gb_61._rock_hc77gb_53 ._icon_hc77gb_28::before{
73
- background-color:#303033;
74
- }
75
- ._sizeS_hc77gb_70 ._icon_hc77gb_28{
55
+ ._themeLight_xksgkf_46._classic_xksgkf_46 ._icon_xksgkf_30,
56
+ ._themeLight_xksgkf_46._rock_xksgkf_47 ._icon_xksgkf_30{
57
+ border-color:rgba(25,25,28,0.4);
58
+
59
+ background-color:#FFFFFF;
60
+ }
61
+ ._themeDark_xksgkf_53._classic_xksgkf_46 ._icon_xksgkf_30,
62
+ ._themeDark_xksgkf_53._rock_xksgkf_47 ._icon_xksgkf_30{
63
+ border-color:rgba(255,255,255,0.4);
64
+
65
+ background-color:#303033;
66
+ }
67
+ ._sizeS_xksgkf_60 ._icon_xksgkf_30{
76
68
  width:14px;
77
69
  height:14px;
78
70
  margin:3px;
79
71
  }
80
- ._sizeM_hc77gb_76 ._icon_hc77gb_28{
72
+ ._sizeM_xksgkf_66 ._icon_xksgkf_30{
81
73
  width:18px;
82
74
  height:18px;
83
75
  margin:3px;
84
76
  }
85
- ._sizeL_hc77gb_82 ._icon_hc77gb_28{
77
+ ._sizeL_xksgkf_72 ._icon_xksgkf_30{
86
78
  width:20px;
87
79
  height:20px;
88
80
  margin:4px;
89
81
  }
90
- ._error_hc77gb_8 ._icon_hc77gb_28{
82
+ ._error_xksgkf_9 ._icon_xksgkf_30{
91
83
  border-color:#F45C4A !important;
92
84
  }
93
- ._sizeS_hc77gb_70{
85
+ ._sizeS_xksgkf_60{
94
86
  width:20px;
95
87
  height:20px;
96
88
  }
97
- ._sizeS_hc77gb_70._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before,
98
- ._sizeS_hc77gb_70._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before,
99
- ._sizeS_hc77gb_70 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
100
- width:calc(100% - 10px);
101
- height:calc(100% - 10px);
89
+ ._sizeS_xksgkf_60._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
90
+ ._sizeS_xksgkf_60._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30,
91
+ ._sizeS_xksgkf_60 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
92
+ border-width:5px;
102
93
  }
103
- ._sizeM_hc77gb_76{
94
+ ._sizeM_xksgkf_66{
104
95
  width:24px;
105
96
  height:24px;
106
97
  }
107
- ._sizeM_hc77gb_76._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before,
108
- ._sizeM_hc77gb_76._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before,
109
- ._sizeM_hc77gb_76 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
110
- width:calc(100% - 12px);
111
- height:calc(100% - 12px);
98
+ ._sizeM_xksgkf_66._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
99
+ ._sizeM_xksgkf_66._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30,
100
+ ._sizeM_xksgkf_66 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
101
+ border-width:6px;
112
102
  }
113
- ._sizeL_hc77gb_82{
103
+ ._sizeL_xksgkf_72{
114
104
  width:28px;
115
105
  height:28px;
116
106
  }
117
- ._sizeL_hc77gb_82._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before,
118
- ._sizeL_hc77gb_82._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before,
119
- ._sizeL_hc77gb_82 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
120
- width:calc(100% - 12px);
121
- height:calc(100% - 12px);
122
- }
123
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28,
124
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28{
125
- background-color:#6B57FF;
126
- background-color:var(--rs-color-primary-light-theme, #6B57FF);
127
- }
128
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before, ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before{
129
- background-color:#FFFFFF;
130
- }
131
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._input_hc77gb_16:disabled + ._icon_hc77gb_28{
132
- background-color:rgba(25,25,28,0.2);
133
- }
134
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._input_hc77gb_16:disabled + ._icon_hc77gb_28::before{
135
- background-color:#F4F4F4;
136
- }
137
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28{
138
- background-color:rgba(25,25,28,0.2);
139
- }
140
- ._themeLight_hc77gb_52._classic_hc77gb_52 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
141
- background-color:rgba(255,255,255,0.5);
142
- }
143
- label:hover ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36 > ._icon_hc77gb_28::before,
144
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36:hover > ._icon_hc77gb_28::before{
107
+ ._sizeL_xksgkf_72._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
108
+ ._sizeL_xksgkf_72._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30,
109
+ ._sizeL_xksgkf_72 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
110
+ border-width:6px;
111
+ }
112
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
113
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30{
114
+ border-color:#6B57FF;
115
+ border-color:var(--rs-color-primary-light-theme, #6B57FF);
116
+
117
+ background-color:#FFFFFF;
118
+ }
119
+ ._themeLight_xksgkf_46._classic_xksgkf_46 ._input_xksgkf_17:disabled + ._icon_xksgkf_30{
120
+ border-color:rgba(25,25,28,0.2);
121
+
122
+ background-color:#F4F4F4;
123
+ }
124
+ ._themeLight_xksgkf_46._classic_xksgkf_46 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
125
+ border-color:rgba(25,25,28,0.1);
126
+
127
+ background:rgba(25,25,28,0.1);
128
+ }
129
+ label:hover ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42 > ._icon_xksgkf_30,
130
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42:hover > ._icon_xksgkf_30{
145
131
  background-color:#474749;
146
132
  }
147
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28,
148
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28{
149
- background-color:#8473FF;
150
- background-color:var(--rs-color-primary-dark-theme, #8473FF);
151
- }
152
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before, ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before{
153
- background-color:#FFFFFF;
154
- }
155
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._input_hc77gb_16:disabled + ._icon_hc77gb_28{
156
- background-color:rgba(255,255,255,0.2);
157
- }
158
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._input_hc77gb_16:disabled + ._icon_hc77gb_28::before{
159
- background-color:#19191C;
160
- }
161
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28{
162
- background-color:rgba(255,255,255,0.2);
163
- }
164
- ._themeDark_hc77gb_61._classic_hc77gb_52 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
165
- background-color:rgba(25,25,28,0.5);
166
- }
167
- label:hover ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 > ._icon_hc77gb_28,
168
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70:hover > ._icon_hc77gb_28,
169
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
170
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28,
171
- label:hover ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 > ._icon_hc77gb_28,
172
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76:hover > ._icon_hc77gb_28,
173
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
174
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
133
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
134
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30{
135
+ border-color:#8473FF;
136
+ border-color:var(--rs-color-primary-dark-theme, #8473FF);
137
+
138
+ background-color:#FFFFFF;
139
+ }
140
+ ._themeDark_xksgkf_53._classic_xksgkf_46 ._input_xksgkf_17:disabled + ._icon_xksgkf_30{
141
+ border-color:rgba(255,255,255,0.2);
142
+
143
+ background-color:#19191C;
144
+ }
145
+ ._themeDark_xksgkf_53._classic_xksgkf_46 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
146
+ border-color:rgba(255,255,255,0.1);
147
+
148
+ background:rgba(255,255,255,0.1);
149
+ }
150
+ label:hover ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 > ._icon_xksgkf_30,
151
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60:hover > ._icon_xksgkf_30,
152
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
153
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30,
154
+ label:hover ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 > ._icon_xksgkf_30,
155
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66:hover > ._icon_xksgkf_30,
156
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
157
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
175
158
  -webkit-box-shadow:0 0 0 3px #e1ddff;
176
159
  -webkit-box-shadow:0 0 0 3px var(--rs-color-primary-fog-light-theme, #e1ddff);
177
160
  box-shadow:0 0 0 3px #e1ddff;
178
161
  box-shadow:0 0 0 3px var(--rs-color-primary-fog-light-theme, #e1ddff);
179
162
  }
180
- label:hover ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 > ._icon_hc77gb_28,
181
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70:hover > ._icon_hc77gb_28,
182
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
183
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28,
184
- label:hover ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 > ._icon_hc77gb_28,
185
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76:hover > ._icon_hc77gb_28,
186
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
187
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
163
+ label:hover ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 > ._icon_xksgkf_30,
164
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60:hover > ._icon_xksgkf_30,
165
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
166
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30,
167
+ label:hover ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 > ._icon_xksgkf_30,
168
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66:hover > ._icon_xksgkf_30,
169
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
170
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
188
171
  -webkit-box-shadow:0 0 0 3px #2e2b49;
189
172
  -webkit-box-shadow:0 0 0 3px var(--rs-color-primary-fog-dark-theme, #2e2b49);
190
173
  box-shadow:0 0 0 3px #2e2b49;
191
174
  box-shadow:0 0 0 3px var(--rs-color-primary-fog-dark-theme, #2e2b49);
192
175
  }
193
- label:hover ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 > ._icon_hc77gb_28,
194
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82:hover > ._icon_hc77gb_28,
195
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
196
- ._themeLight_hc77gb_52._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
176
+ label:hover ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 > ._icon_xksgkf_30,
177
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72:hover > ._icon_xksgkf_30,
178
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
179
+ ._themeLight_xksgkf_46._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
197
180
  -webkit-box-shadow:0 0 0 4px #e1ddff;
198
181
  -webkit-box-shadow:0 0 0 4px var(--rs-color-primary-fog-light-theme, #e1ddff);
199
182
  box-shadow:0 0 0 4px #e1ddff;
200
183
  box-shadow:0 0 0 4px var(--rs-color-primary-fog-light-theme, #e1ddff);
201
184
  }
202
- label:hover ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 > ._icon_hc77gb_28,
203
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82:hover > ._icon_hc77gb_28,
204
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
205
- ._themeDark_hc77gb_61._classic_hc77gb_52._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
185
+ label:hover ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 > ._icon_xksgkf_30,
186
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72:hover > ._icon_xksgkf_30,
187
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
188
+ ._themeDark_xksgkf_53._classic_xksgkf_46._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
206
189
  -webkit-box-shadow:0 0 0 4px #2e2b49;
207
190
  -webkit-box-shadow:0 0 0 4px var(--rs-color-primary-fog-dark-theme, #2e2b49);
208
191
  box-shadow:0 0 0 4px #2e2b49;
209
192
  box-shadow:0 0 0 4px var(--rs-color-primary-fog-dark-theme, #2e2b49);
210
193
  }
211
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28,
212
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28{
213
- background-color:#19191C;
194
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
195
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30{
196
+ border-color:#19191C;
197
+
198
+ background-color:#FFFFFF;
199
+ }
200
+ ._themeLight_xksgkf_46._rock_xksgkf_47 ._input_xksgkf_17:disabled + ._icon_xksgkf_30{
201
+ border-color:rgba(25,25,28,0.2);
202
+
203
+ background-color:#F4F4F4;
214
204
  }
215
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before, ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before{
216
- background-color:#FFFFFF;
217
- }
218
- ._themeLight_hc77gb_52._rock_hc77gb_53 ._input_hc77gb_16:disabled + ._icon_hc77gb_28{
219
- background-color:rgba(25,25,28,0.2);
220
- }
221
- ._themeLight_hc77gb_52._rock_hc77gb_53 ._input_hc77gb_16:disabled + ._icon_hc77gb_28::before{
222
- background-color:#F4F4F4;
223
- }
224
- ._themeLight_hc77gb_52._rock_hc77gb_53 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28{
225
- background-color:rgba(25,25,28,0.2);
226
- }
227
- ._themeLight_hc77gb_52._rock_hc77gb_53 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
228
- background-color:rgba(255,255,255,0.5);
229
- }
230
- label:hover ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36 > ._icon_hc77gb_28::before,
231
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36:hover > ._icon_hc77gb_28::before{
205
+ ._themeLight_xksgkf_46._rock_xksgkf_47 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
206
+ border-color:rgba(25,25,28,0.1);
207
+
208
+ background:rgba(25,25,28,0.1);
209
+ }
210
+ label:hover ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42 > ._icon_xksgkf_30,
211
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42:hover > ._icon_xksgkf_30{
232
212
  background-color:#474749;
233
213
  }
234
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28,
235
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28{
236
- background-color:#FFFFFF;
214
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42 ._input_xksgkf_17:active + ._icon_xksgkf_30,
215
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42 ._input_xksgkf_17:checked + ._icon_xksgkf_30{
216
+ border-color:#FFFFFF;
217
+
218
+ background-color:#19191C;
237
219
  }
238
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:active + ._icon_hc77gb_28::before, ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36 ._input_hc77gb_16:checked + ._icon_hc77gb_28::before{
239
- background-color:#19191C;
240
- }
241
- ._themeDark_hc77gb_61._rock_hc77gb_53 ._input_hc77gb_16:disabled + ._icon_hc77gb_28{
242
- background-color:rgba(255,255,255,0.2);
243
- }
244
- ._themeDark_hc77gb_61._rock_hc77gb_53 ._input_hc77gb_16:disabled + ._icon_hc77gb_28::before{
245
- background-color:#19191C;
246
- }
247
- ._themeDark_hc77gb_61._rock_hc77gb_53 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28{
248
- background-color:rgba(255,255,255,0.2);
249
- }
250
- ._themeDark_hc77gb_61._rock_hc77gb_53 ._input_hc77gb_16:checked:disabled + ._icon_hc77gb_28::before{
251
- background-color:rgba(25,25,28,0.5);
252
- }
253
- label:hover ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 > ._icon_hc77gb_28,
254
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70:hover > ._icon_hc77gb_28,
255
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
256
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28,
257
- label:hover ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 > ._icon_hc77gb_28,
258
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76:hover > ._icon_hc77gb_28,
259
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
260
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
220
+ ._themeDark_xksgkf_53._rock_xksgkf_47 ._input_xksgkf_17:disabled + ._icon_xksgkf_30{
221
+ border-color:rgba(255,255,255,0.2);
222
+
223
+ background-color:#19191C;
224
+ }
225
+ ._themeDark_xksgkf_53._rock_xksgkf_47 ._input_xksgkf_17:checked:disabled + ._icon_xksgkf_30{
226
+ border-color:rgba(255,255,255,0.1);
227
+
228
+ background:rgba(255,255,255,0.1);
229
+ }
230
+ label:hover ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 > ._icon_xksgkf_30,
231
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60:hover > ._icon_xksgkf_30,
232
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
233
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30,
234
+ label:hover ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 > ._icon_xksgkf_30,
235
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66:hover > ._icon_xksgkf_30,
236
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
237
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
261
238
  -webkit-box-shadow:0 0 0 3px rgba(25,25,28,0.1);
262
239
  box-shadow:0 0 0 3px rgba(25,25,28,0.1);
263
240
  }
264
- label:hover ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 > ._icon_hc77gb_28,
265
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70:hover > ._icon_hc77gb_28,
266
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
267
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeS_hc77gb_70 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28,
268
- label:hover ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 > ._icon_hc77gb_28,
269
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76:hover > ._icon_hc77gb_28,
270
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
271
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeM_hc77gb_76 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
241
+ label:hover ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 > ._icon_xksgkf_30,
242
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60:hover > ._icon_xksgkf_30,
243
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
244
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeS_xksgkf_60 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30,
245
+ label:hover ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 > ._icon_xksgkf_30,
246
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66:hover > ._icon_xksgkf_30,
247
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
248
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeM_xksgkf_66 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
272
249
  -webkit-box-shadow:0 0 0 3px rgba(255,255,255,0.1);
273
250
  box-shadow:0 0 0 3px rgba(255,255,255,0.1);
274
251
  }
275
- label:hover ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 > ._icon_hc77gb_28,
276
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82:hover > ._icon_hc77gb_28,
277
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
278
- ._themeLight_hc77gb_52._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
252
+ label:hover ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 > ._icon_xksgkf_30,
253
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72:hover > ._icon_xksgkf_30,
254
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
255
+ ._themeLight_xksgkf_46._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
279
256
  -webkit-box-shadow:0 0 0 4px rgba(25,25,28,0.1);
280
257
  box-shadow:0 0 0 4px rgba(25,25,28,0.1);
281
258
  }
282
- label:hover ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 > ._icon_hc77gb_28,
283
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82:hover > ._icon_hc77gb_28,
284
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:focus[data-focus-method='key'] + ._icon_hc77gb_28,
285
- ._themeDark_hc77gb_61._rock_hc77gb_53._enabled_hc77gb_36._sizeL_hc77gb_82 ._input_hc77gb_16:active:not(:checked) + ._icon_hc77gb_28{
259
+ label:hover ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 > ._icon_xksgkf_30,
260
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72:hover > ._icon_xksgkf_30,
261
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:focus[data-focus-method='key'] + ._icon_xksgkf_30,
262
+ ._themeDark_xksgkf_53._rock_xksgkf_47._enabled_xksgkf_42._sizeL_xksgkf_72 ._input_xksgkf_17:active:not(:checked) + ._icon_xksgkf_30{
286
263
  -webkit-box-shadow:0 0 0 4px rgba(255,255,255,0.1);
287
264
  box-shadow:0 0 0 4px rgba(255,255,255,0.1);
288
265
  }
@@ -23,4 +23,8 @@ export interface RadioButtonManagerProps {
23
23
  /** Name of the each radio button in the list */
24
24
  name?: string;
25
25
  }
26
- export declare const RadioButtonManager: React.FC<RadioButtonManagerProps>;
26
+ declare type TRadioButtonManager = React.FC<RadioButtonManagerProps> & {
27
+ idCounter: number;
28
+ };
29
+ export declare const RadioButtonManager: TRadioButtonManager;
30
+ export {};
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import "core-js/modules/es.function.name.js";
3
- import React, { useState, useCallback } from 'react';
3
+ import React, { useState, useRef, useCallback } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { useTheme } from '@rescui/ui-contexts';
6
6
  import RadioContext from './radio-group-context.js';
@@ -13,7 +13,7 @@ var RadioButtonManager = function RadioButtonManager(_ref) {
13
13
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
14
14
  _ref$error = _ref.error,
15
15
  error = _ref$error === void 0 ? false : _ref$error,
16
- name = _ref.name,
16
+ nameFromProps = _ref.name,
17
17
  onChange = _ref.onChange,
18
18
  _ref$size = _ref.size,
19
19
  size = _ref$size === void 0 ? 'm' : _ref$size,
@@ -26,8 +26,16 @@ var RadioButtonManager = function RadioButtonManager(_ref) {
26
26
  var _useState = useState(isControlled ? valueFromProps : defaultValue),
27
27
  _useState2 = _slicedToArray(_useState, 2),
28
28
  value = _useState2[0],
29
- setValue = _useState2[1];
29
+ setValue = _useState2[1]; // set unique id to the component on mount without rerender
30
30
 
31
+
32
+ var nameId = useRef(null);
33
+
34
+ if (nameId.current === null) {
35
+ nameId.current = RadioButtonManager.idCounter++;
36
+ }
37
+
38
+ var name = nameFromProps !== null && nameFromProps !== void 0 ? nameFromProps : "_placeholder-radio-name-".concat(nameId.current);
31
39
  var handleSetValue = useCallback(function (val) {
32
40
  setValue(val);
33
41
 
@@ -49,6 +57,7 @@ var RadioButtonManager = function RadioButtonManager(_ref) {
49
57
  }, children);
50
58
  };
51
59
 
60
+ RadioButtonManager.idCounter = 0;
52
61
  RadioButtonManager.propTypes = {
53
62
  children: PropTypes.node,
54
63
  defaultValue: PropTypes.string,
@@ -1,17 +1,17 @@
1
1
  var styles = {
2
- "main": "_main_hc77gb_3",
3
- "errorMessage": "_errorMessage_hc77gb_8",
4
- "rs-reset-letter-spacing": "_rs-reset-letter-spacing_hc77gb_1",
5
- "input": "_input_hc77gb_16",
6
- "icon": "_icon_hc77gb_28",
7
- "enabled": "_enabled_hc77gb_36",
8
- "themeLight": "_themeLight_hc77gb_52",
9
- "classic": "_classic_hc77gb_52",
10
- "rock": "_rock_hc77gb_53",
11
- "themeDark": "_themeDark_hc77gb_61",
12
- "sizeS": "_sizeS_hc77gb_70",
13
- "sizeM": "_sizeM_hc77gb_76",
14
- "sizeL": "_sizeL_hc77gb_82",
15
- "error": "_error_hc77gb_8"
2
+ "main": "_main_xksgkf_3",
3
+ "errorMessage": "_errorMessage_xksgkf_9",
4
+ "rs-reset-letter-spacing": "_rs-reset-letter-spacing_xksgkf_1",
5
+ "input": "_input_xksgkf_17",
6
+ "icon": "_icon_xksgkf_30",
7
+ "enabled": "_enabled_xksgkf_42",
8
+ "themeLight": "_themeLight_xksgkf_46",
9
+ "classic": "_classic_xksgkf_46",
10
+ "rock": "_rock_xksgkf_47",
11
+ "themeDark": "_themeDark_xksgkf_53",
12
+ "sizeS": "_sizeS_xksgkf_60",
13
+ "sizeM": "_sizeM_xksgkf_66",
14
+ "sizeL": "_sizeL_xksgkf_72",
15
+ "error": "_error_xksgkf_9"
16
16
  };
17
17
  export default styles;
@@ -26,6 +26,7 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function RadioButton(_ref, ref)
26
26
  tag: 'label',
27
27
  disabled: disabled,
28
28
  className: className,
29
+ tabIndex: null,
29
30
  icon: /*#__PURE__*/React.createElement(RadioButtonControl, _objectSpread({
30
31
  ref: ref,
31
32
  disabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/radio-button",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -32,5 +32,5 @@
32
32
  "scripts": {
33
33
  "build": "rescui-scripts build"
34
34
  },
35
- "gitHead": "90715a8ea8c558b23c243bc092be4ded23e4192c"
35
+ "gitHead": "d31278a5136a7cb38364fc89345e1a7326298c9a"
36
36
  }