@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
|
-
.
|
|
1
|
+
._main_xksgkf_3{
|
|
2
2
|
display:inline-block;
|
|
3
|
+
|
|
3
4
|
vertical-align:middle;
|
|
4
5
|
}
|
|
5
|
-
.
|
|
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-
|
|
15
|
+
._rs-reset-letter-spacing_xksgkf_1 ._errorMessage_xksgkf_9{
|
|
15
16
|
letter-spacing:normal;
|
|
16
17
|
}
|
|
17
|
-
.
|
|
18
|
+
._errorMessage_xksgkf_9 {
|
|
18
19
|
|
|
19
20
|
margin-bottom:8px;
|
|
20
21
|
|
|
21
22
|
color:#F45C4A;
|
|
22
23
|
}
|
|
23
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
52
|
+
._enabled_xksgkf_42 ._icon_xksgkf_30{
|
|
47
53
|
cursor:pointer;
|
|
48
54
|
}
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
.
|
|
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
|
-
.
|
|
72
|
+
._sizeM_xksgkf_66 ._icon_xksgkf_30{
|
|
81
73
|
width:18px;
|
|
82
74
|
height:18px;
|
|
83
75
|
margin:3px;
|
|
84
76
|
}
|
|
85
|
-
.
|
|
77
|
+
._sizeL_xksgkf_72 ._icon_xksgkf_30{
|
|
86
78
|
width:20px;
|
|
87
79
|
height:20px;
|
|
88
80
|
margin:4px;
|
|
89
81
|
}
|
|
90
|
-
.
|
|
82
|
+
._error_xksgkf_9 ._icon_xksgkf_30{
|
|
91
83
|
border-color:#F45C4A !important;
|
|
92
84
|
}
|
|
93
|
-
.
|
|
85
|
+
._sizeS_xksgkf_60{
|
|
94
86
|
width:20px;
|
|
95
87
|
height:20px;
|
|
96
88
|
}
|
|
97
|
-
.
|
|
98
|
-
.
|
|
99
|
-
.
|
|
100
|
-
width:
|
|
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
|
-
.
|
|
94
|
+
._sizeM_xksgkf_66{
|
|
104
95
|
width:24px;
|
|
105
96
|
height:24px;
|
|
106
97
|
}
|
|
107
|
-
.
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
-
width:
|
|
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
|
-
.
|
|
103
|
+
._sizeL_xksgkf_72{
|
|
114
104
|
width:28px;
|
|
115
105
|
height:28px;
|
|
116
106
|
}
|
|
117
|
-
.
|
|
118
|
-
.
|
|
119
|
-
.
|
|
120
|
-
width:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
background-color
|
|
133
|
-
}
|
|
134
|
-
.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
.
|
|
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
|
-
.
|
|
148
|
-
.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
background
|
|
163
|
-
}
|
|
164
|
-
.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
.
|
|
169
|
-
.
|
|
170
|
-
.
|
|
171
|
-
|
|
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 .
|
|
181
|
-
.
|
|
182
|
-
.
|
|
183
|
-
.
|
|
184
|
-
label:hover .
|
|
185
|
-
.
|
|
186
|
-
.
|
|
187
|
-
.
|
|
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 .
|
|
194
|
-
.
|
|
195
|
-
.
|
|
196
|
-
.
|
|
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 .
|
|
203
|
-
.
|
|
204
|
-
.
|
|
205
|
-
.
|
|
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
|
-
.
|
|
212
|
-
.
|
|
213
|
-
|
|
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
|
-
.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
.
|
|
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
|
-
.
|
|
235
|
-
.
|
|
236
|
-
|
|
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
|
-
.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
.
|
|
255
|
-
.
|
|
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 .
|
|
265
|
-
.
|
|
266
|
-
.
|
|
267
|
-
.
|
|
268
|
-
label:hover .
|
|
269
|
-
.
|
|
270
|
-
.
|
|
271
|
-
.
|
|
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 .
|
|
276
|
-
.
|
|
277
|
-
.
|
|
278
|
-
.
|
|
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 .
|
|
283
|
-
.
|
|
284
|
-
.
|
|
285
|
-
.
|
|
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
|
-
|
|
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
|
-
|
|
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": "
|
|
3
|
-
"errorMessage": "
|
|
4
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-
|
|
5
|
-
"input": "
|
|
6
|
-
"icon": "
|
|
7
|
-
"enabled": "
|
|
8
|
-
"themeLight": "
|
|
9
|
-
"classic": "
|
|
10
|
-
"rock": "
|
|
11
|
-
"themeDark": "
|
|
12
|
-
"sizeS": "
|
|
13
|
-
"sizeM": "
|
|
14
|
-
"sizeL": "
|
|
15
|
-
"error": "
|
|
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;
|
package/lib/radio-button.js
CHANGED
|
@@ -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.
|
|
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": "
|
|
35
|
+
"gitHead": "d31278a5136a7cb38364fc89345e1a7326298c9a"
|
|
36
36
|
}
|