@rescui/radio-button 0.6.4 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.css CHANGED
@@ -1,29 +1,127 @@
1
- ._main_1nfhjz5_3{
1
+ ._themeLight_1uxdzim_8{
2
+ --rs-theme-dark:0;
3
+ }
4
+ ._themeDark_1uxdzim_11{
5
+ --rs-theme-dark:1;
6
+ }
7
+ ._sizeS_1uxdzim_15{
8
+ --_rs-radio-button-size:20px;
9
+ --_rs-radio-button-box-shadow-size:3px;
10
+ --_rs-radio-button-active-icon-border-width:5px;
11
+ }
12
+ ._sizeM_1uxdzim_18{
13
+ --_rs-radio-button-size:24px;
14
+ --_rs-radio-button-box-shadow-size:3px;
15
+ --_rs-radio-button-active-icon-border-width:6px;
16
+ }
17
+ ._sizeL_1uxdzim_21{
18
+ --_rs-radio-button-size:28px;
19
+ --_rs-radio-button-box-shadow-size:4px;
20
+ --_rs-radio-button-active-icon-border-width:6px;
21
+ }
22
+ ._classic_1uxdzim_25{
23
+ --_rs-radio-button-active-icon-border-color:var(--_rs-color-primary);
24
+ --_rs-radio-button-active-icon-background-color:#FFFFFF;
25
+ --_rs-radio-button-active-icon-hover-box-shadow-color:var(--_rs-color-primary-t-fog);
26
+ }
27
+ ._rock_1uxdzim_28{
28
+ --_rs-radio-button-active-icon-border-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
29
+ --_rs-radio-button-active-icon-background-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227));
30
+ --_rs-radio-button-active-icon-hover-box-shadow-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.1);
31
+ }
32
+ ._main_1uxdzim_32{
33
+ --_rs-theme-dark:var(
34
+ --_rs-internal-force-theme-dark-consult-rescui-before-using,
35
+ var(--rs-theme-dark, 0)
36
+ );
37
+ --_rs-theme-flip:var(--rs-theme-flip, 0);
38
+ --_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
39
+ --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
40
+ }
41
+ @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
42
+ ._main_1uxdzim_32{
43
+ --_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
44
+ --_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
45
+ --_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
46
+ --_rs-color-primary-t-dim:color-mix(in srgb, var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
47
+ --_rs-color-primary-t-fog:color-mix(in srgb, var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2)) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3)) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
48
+ }
49
+ }
50
+ @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
51
+ ._main_1uxdzim_32{
52
+ --_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
53
+ --_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
54
+ --_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
55
+ --_rs-color-primary-t-dim:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, 0.8);
56
+ --_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
57
+ }
58
+ }
59
+ ._main_1uxdzim_32 {
60
+
2
61
  display:inline-block;
3
62
 
63
+ width:var(--_rs-radio-button-size);
64
+ height:var(--_rs-radio-button-size);
65
+
4
66
  vertical-align:middle;
5
67
  }
6
- ._errorMessage_1nfhjz5_9{
7
- letter-spacing:0.0045em;
8
- font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
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));
10
- -webkit-font-feature-settings:"kern", "liga", "calt";
11
- font-feature-settings:"kern", "liga", "calt";
12
- font-size:13px;
13
- font-size:var(--rs-text-3-font-size, 13px);
14
- line-height:20px;
15
- line-height:var(--rs-text-3-line-height, 20px);
68
+ ._errorMessage_1uxdzim_44{
69
+ letter-spacing:var(
70
+ --rs-text-base-letter-spacing,
71
+ var(--_rs-typography-letter-spacing)
72
+ );
73
+ text-transform:var(--_rs-typography-text-transform);
74
+ font-family:var(--_rs-typography-font-family);
75
+ font-size:var(--_rs-typography-font-size);
76
+ font-weight:var(--_rs-typography-font-weight);
77
+ line-height:var(--_rs-typography-line-height);
78
+ font-variant-numeric:var(--_rs-typography-font-variant-numeric);
79
+ -webkit-font-feature-settings:'kern', 'liga', 'calt';
80
+ font-feature-settings:'kern', 'liga', 'calt';
16
81
  }
17
- ._rs-reset-letter-spacing_1nfhjz5_1 ._errorMessage_1nfhjz5_9{
18
- letter-spacing:normal;
19
- }
20
- ._errorMessage_1nfhjz5_9 {
82
+ ._errorMessage_1uxdzim_44 > p:not(:nth-child(1)),
83
+ ._errorMessage_1uxdzim_44 > pre:not(:nth-child(1)){
84
+ padding-top:var(--_rs-typography-auto-offset-or-initial);
85
+ }
86
+ ._errorMessage_1uxdzim_44 {
87
+ --_rs-typography-letter-spacing:0.0045em;
88
+ --_rs-typography-text-transform:initial;
89
+ --_rs-typography-font-variant-numeric:initial;
90
+ --_rs-typography-font-family:var(
91
+ --rs-font-family-ui,
92
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
93
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
94
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
95
+ );
96
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
97
+ --_rs-typography-font-weight:var(
98
+ --rs-font-weight-regular,
99
+ 400
100
+ );
101
+ --_rs-typography-line-height:var(
102
+ --rs-text-3-line-height,
103
+ 20px
104
+ );
105
+ --_rs-typography-base-color:var(
106
+ --_rs-typography-hardness-color,
107
+ var(
108
+ --rs-color-average,
109
+ rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
110
+ )
111
+ );
112
+ --_rs-typography-text-auto-offset:8px;
113
+ --_rs-typography-ul-list-li-padding-left:28px;
114
+ --_rs-typography-ol-list-li-padding-left:21px;
115
+ --_rs-typography-list-li-margin-top-from-text:8px;
116
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
117
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
118
+ --_rs-typography-link-border-bottom-width-from-text:1px;
21
119
 
22
120
  margin-bottom:8px;
23
121
 
24
122
  color:#F45C4A;
25
123
  }
26
- ._input_1nfhjz5_17{
124
+ ._input_1uxdzim_53{
27
125
  position:absolute;
28
126
  -webkit-appearance:none;
29
127
  -moz-appearance:none;
@@ -37,7 +135,7 @@
37
135
 
38
136
  border:0;
39
137
  }
40
- ._icon_1nfhjz5_30{
138
+ ._icon_1uxdzim_66{
41
139
  position:relative;
42
140
 
43
141
  display:inline-block;
@@ -45,203 +143,55 @@
45
143
  -webkit-box-sizing:border-box;
46
144
 
47
145
  box-sizing:border-box;
146
+ width:calc(var(--_rs-radio-button-size) - var(--_rs-radio-button-box-shadow-size)*2);
147
+ height:calc(var(--_rs-radio-button-size) - var(--_rs-radio-button-box-shadow-size)*2);
148
+ margin:var(--_rs-radio-button-box-shadow-size);
48
149
 
49
150
  border-width:1px;
50
151
  border-style:solid;
51
-
152
+ border-color:#A3A3A4;
52
153
  border-radius:50%;
53
- }
54
- ._enabled_1nfhjz5_42 ._icon_1nfhjz5_30{
55
- cursor:pointer;
56
- }
57
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46 ._icon_1nfhjz5_30,
58
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47 ._icon_1nfhjz5_30{
59
- border-color:#A3A3A4;
60
-
61
- background-color:#FFFFFF;
62
- }
63
- ._themeLight_1nfhjz5_46 ._input_1nfhjz5_17:disabled + ._icon_1nfhjz5_30,
64
- ._themeLight_1nfhjz5_46 ._input_1nfhjz5_17:checked:disabled + ._icon_1nfhjz5_30{
65
- border-color:#BABABB;
66
-
67
- background-color:#F4F4F4;
68
- }
69
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46 ._icon_1nfhjz5_30,
70
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47 ._icon_1nfhjz5_30{
71
- border-color:#A3A3A4;
72
154
 
73
- background-color:#303033;
74
- }
75
- label:hover ._themeDark_1nfhjz5_60._enabled_1nfhjz5_42 > ._icon_1nfhjz5_30,
76
- ._themeDark_1nfhjz5_60._enabled_1nfhjz5_42:hover > ._icon_1nfhjz5_30{
77
- background-color:#474749;
78
- }
79
- ._themeDark_1nfhjz5_60 ._input_1nfhjz5_17:disabled + ._icon_1nfhjz5_30,
80
- ._themeDark_1nfhjz5_60 ._input_1nfhjz5_17:checked:disabled + ._icon_1nfhjz5_30{
81
- border-color:#5E5E60;
82
-
83
- background-color:#303033;
84
- }
85
- ._sizeS_1nfhjz5_79 ._icon_1nfhjz5_30{
86
- width:14px;
87
- height:14px;
88
- margin:3px;
89
- }
90
- ._sizeM_1nfhjz5_85 ._icon_1nfhjz5_30{
91
- width:18px;
92
- height:18px;
93
- margin:3px;
94
- }
95
- ._sizeL_1nfhjz5_91 ._icon_1nfhjz5_30{
96
- width:20px;
97
- height:20px;
98
- margin:4px;
99
- }
100
- ._error_1nfhjz5_9 ._icon_1nfhjz5_30{
101
- border-color:#F45C4A !important;
102
- }
103
- ._sizeS_1nfhjz5_79{
104
- width:20px;
105
- height:20px;
106
- }
107
- ._sizeS_1nfhjz5_79._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
108
- ._sizeS_1nfhjz5_79._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30,
109
- ._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:checked:disabled + ._icon_1nfhjz5_30{
110
- border-width:5px;
111
- }
112
- ._sizeM_1nfhjz5_85{
113
- width:24px;
114
- height:24px;
115
- }
116
- ._sizeM_1nfhjz5_85._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
117
- ._sizeM_1nfhjz5_85._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30,
118
- ._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:checked:disabled + ._icon_1nfhjz5_30{
119
- border-width:6px;
120
- }
121
- ._sizeL_1nfhjz5_91{
122
- width:28px;
123
- height:28px;
155
+ background-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*204));
124
156
  }
125
- ._sizeL_1nfhjz5_91._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
126
- ._sizeL_1nfhjz5_91._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30,
127
- ._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:checked:disabled + ._icon_1nfhjz5_30{
128
- border-width:6px;
157
+ ._enabled_1uxdzim_87 ._icon_1uxdzim_66{
158
+ cursor:pointer;
129
159
  }
130
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
131
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30{
132
- border-color:#6B57FF;
133
- border-color:var(--rs-color-primary-light-theme, #6B57FF);
134
-
135
- background-color:#FFFFFF;
160
+ ._enabled_1uxdzim_87:hover > ._icon_1uxdzim_66,
161
+ label:hover ._enabled_1uxdzim_87 > ._icon_1uxdzim_66{
162
+ background-color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*184), calc(255 - var(--_rs-theme-dark-coefficient, 0)*182));
136
163
  }
137
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
138
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30{
139
- border-color:#8473FF;
140
- border-color:var(--rs-color-primary-dark-theme, #8473FF);
164
+ ._disabled_1uxdzim_96 ._icon_1uxdzim_66._icon_1uxdzim_66,
165
+ ._input_1uxdzim_53:disabled + ._icon_1uxdzim_66._icon_1uxdzim_66,
166
+ ._input_1uxdzim_53:checked:disabled + ._icon_1uxdzim_66{
167
+ border-color:rgb(calc(186 - var(--_rs-theme-dark-coefficient, 0)*92), calc(186 - var(--_rs-theme-dark-coefficient, 0)*92), calc(187 - var(--_rs-theme-dark-coefficient, 0)*91));
141
168
 
142
- background-color:#FFFFFF;
143
- }
144
- label:hover ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 > ._icon_1nfhjz5_30,
145
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79:hover > ._icon_1nfhjz5_30,
146
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30,
147
- label:hover ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 > ._icon_1nfhjz5_30,
148
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85:hover > ._icon_1nfhjz5_30,
149
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
150
- -webkit-box-shadow:0 0 0 3px rgba(107, 87, 255,0.2);
151
- -webkit-box-shadow:0 0 0 3px var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
152
- box-shadow:0 0 0 3px rgba(107, 87, 255,0.2);
153
- box-shadow:0 0 0 3px var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
154
- }
155
- label:hover ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 > ._icon_1nfhjz5_30,
156
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79:hover > ._icon_1nfhjz5_30,
157
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30,
158
- label:hover ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 > ._icon_1nfhjz5_30,
159
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85:hover > ._icon_1nfhjz5_30,
160
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
161
- -webkit-box-shadow:0 0 0 3px rgba(132, 115, 255,0.3);
162
- -webkit-box-shadow:0 0 0 3px var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
163
- box-shadow:0 0 0 3px rgba(132, 115, 255,0.3);
164
- box-shadow:0 0 0 3px var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
165
- }
166
- label:hover ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 > ._icon_1nfhjz5_30,
167
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91:hover > ._icon_1nfhjz5_30,
168
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
169
- -webkit-box-shadow:0 0 0 4px rgba(107, 87, 255,0.2);
170
- -webkit-box-shadow:0 0 0 4px var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
171
- box-shadow:0 0 0 4px rgba(107, 87, 255,0.2);
172
- box-shadow:0 0 0 4px var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
173
- }
174
- label:hover ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 > ._icon_1nfhjz5_30,
175
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91:hover > ._icon_1nfhjz5_30,
176
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
177
- -webkit-box-shadow:0 0 0 4px rgba(132, 115, 255,0.3);
178
- -webkit-box-shadow:0 0 0 4px var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
179
- box-shadow:0 0 0 4px rgba(132, 115, 255,0.3);
180
- box-shadow:0 0 0 4px var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
181
- }
182
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
183
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30{
184
- border-color:#19191C;
169
+ cursor:not-allowed;
170
+ pointer-events:none;
185
171
 
186
- background-color:#FFFFFF;
172
+ background-color:rgb(calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*193));
187
173
  }
188
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42 ._input_1nfhjz5_17:active + ._icon_1nfhjz5_30,
189
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42 ._input_1nfhjz5_17:checked + ._icon_1nfhjz5_30{
190
- border-color:#FFFFFF;
174
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:active + ._icon_1uxdzim_66,
175
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:checked + ._icon_1uxdzim_66{
176
+ border-color:var(--_rs-radio-button-active-icon-border-color);
191
177
 
192
- background-color:#19191C;
193
- }
194
- label:hover ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 > ._icon_1nfhjz5_30,
195
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79:hover > ._icon_1nfhjz5_30,
196
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30,
197
- label:hover ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 > ._icon_1nfhjz5_30,
198
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85:hover > ._icon_1nfhjz5_30,
199
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
200
- -webkit-box-shadow:0 0 0 3px rgba(25,25,28,0.1);
201
- box-shadow:0 0 0 3px rgba(25,25,28,0.1);
202
- }
203
- label:hover ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 > ._icon_1nfhjz5_30,
204
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79:hover > ._icon_1nfhjz5_30,
205
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30,
206
- label:hover ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 > ._icon_1nfhjz5_30,
207
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85:hover > ._icon_1nfhjz5_30,
208
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
209
- -webkit-box-shadow:0 0 0 3px rgba(255,255,255,0.1);
210
- box-shadow:0 0 0 3px rgba(255,255,255,0.1);
211
- }
212
- label:hover ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 > ._icon_1nfhjz5_30,
213
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91:hover > ._icon_1nfhjz5_30,
214
- ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
215
- -webkit-box-shadow:0 0 0 4px rgba(25,25,28,0.1);
216
- box-shadow:0 0 0 4px rgba(25,25,28,0.1);
217
- }
218
- label:hover ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 > ._icon_1nfhjz5_30,
219
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91:hover > ._icon_1nfhjz5_30,
220
- ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:active:not(:checked) + ._icon_1nfhjz5_30{
221
- -webkit-box-shadow:0 0 0 4px rgba(255,255,255,0.1);
222
- box-shadow:0 0 0 4px rgba(255,255,255,0.1);
178
+ background-color:var(--_rs-radio-button-active-icon-background-color);
223
179
  }
224
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30{
225
- -webkit-box-shadow:0 0 0 1px #E8E8E8, 0 0 0 3px rgba(107, 87, 255, 0.8);
226
- -webkit-box-shadow:0 0 0 1px #E8E8E8, 0 0 0 3px var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8));
227
- box-shadow:0 0 0 1px #E8E8E8, 0 0 0 3px rgba(107, 87, 255, 0.8);
228
- box-shadow:0 0 0 1px #E8E8E8, 0 0 0 3px var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8));
180
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:active + ._icon_1uxdzim_66,
181
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:checked + ._icon_1uxdzim_66,
182
+ ._main_1uxdzim_32 ._input_1uxdzim_53:checked:disabled + ._icon_1uxdzim_66{
183
+ border-width:var(--_rs-radio-button-active-icon-border-width);
229
184
  }
230
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeS_1nfhjz5_79 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeM_1nfhjz5_85 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30{
231
- -webkit-box-shadow:0 0 0 1px #303033, 0 0 0 3px rgba(132, 115, 255,0.8);
232
- -webkit-box-shadow:0 0 0 1px #303033, 0 0 0 3px var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8));
233
- box-shadow:0 0 0 1px #303033, 0 0 0 3px rgba(132, 115, 255,0.8);
234
- box-shadow:0 0 0 1px #303033, 0 0 0 3px var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8));
185
+ ._error_1uxdzim_44 ._icon_1uxdzim_66._icon_1uxdzim_66._icon_1uxdzim_66{
186
+ border-color:#F45C4A;
235
187
  }
236
- ._themeLight_1nfhjz5_46._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30, ._themeLight_1nfhjz5_46._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30{
237
- -webkit-box-shadow:0 0 0 1px #E8E8E8, 0 0 0 4px rgba(107, 87, 255, 0.8);
238
- -webkit-box-shadow:0 0 0 1px #E8E8E8, 0 0 0 4px var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8));
239
- box-shadow:0 0 0 1px #E8E8E8, 0 0 0 4px rgba(107, 87, 255, 0.8);
240
- box-shadow:0 0 0 1px #E8E8E8, 0 0 0 4px var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8));
188
+ ._enabled_1uxdzim_87:hover > ._icon_1uxdzim_66._icon_1uxdzim_66,
189
+ label:hover ._enabled_1uxdzim_87 > ._icon_1uxdzim_66._icon_1uxdzim_66,
190
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:active:not(:checked) + ._icon_1uxdzim_66{
191
+ -webkit-box-shadow:0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-radio-button-active-icon-hover-box-shadow-color);
192
+ box-shadow:0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-radio-button-active-icon-hover-box-shadow-color);
241
193
  }
242
- ._themeDark_1nfhjz5_60._classic_1nfhjz5_46._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30,._themeDark_1nfhjz5_60._rock_1nfhjz5_47._enabled_1nfhjz5_42._sizeL_1nfhjz5_91 ._input_1nfhjz5_17:focus[data-focus-method='key'] + ._icon_1nfhjz5_30{
243
- -webkit-box-shadow:0 0 0 1px #303033, 0 0 0 4px rgba(132, 115, 255,0.8);
244
- -webkit-box-shadow:0 0 0 1px #303033, 0 0 0 4px var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8));
245
- box-shadow:0 0 0 1px #303033, 0 0 0 4px rgba(132, 115, 255,0.8);
246
- box-shadow:0 0 0 1px #303033, 0 0 0 4px var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8));
194
+ ._enabled_1uxdzim_87 ._input_1uxdzim_53:focus[data-focus-method='key'] + ._icon_1uxdzim_66{
195
+ -webkit-box-shadow:0 0 0 1px rgb(calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*181)), 0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-color-primary-t-dim);
196
+ box-shadow:0 0 0 1px rgb(calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*181)), 0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-color-primary-t-dim);
247
197
  }
@@ -56,7 +56,8 @@ var RadioButtonControl = /*#__PURE__*/React.forwardRef(function RadioButtonContr
56
56
  disabled = _ref.disabled;
57
57
  return /*#__PURE__*/React.createElement(RootTag, {
58
58
  className: cn(styles.main, THEME_STYLES[theme], SIZE_STYLES[size], MODE_STYLES[mode], (error || errorFromContext) && styles.error, disabled || disabledFromProps ? styles.disabled : styles.enabled, className),
59
- "data-test": 'radio-button-control-root'
59
+ "data-test": 'radio-button-control-root',
60
+ "data-rs-internal": "radio-button__control"
60
61
  }, /*#__PURE__*/React.createElement("input", _objectSpread({
61
62
  className: styles.input,
62
63
  type: "radio",
@@ -16,7 +16,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
16
  import React from 'react';
17
17
  import PropTypes from 'prop-types';
18
18
  import { Menu } from '@rescui/menu';
19
- import { useTheme } from '@rescui/ui-contexts';
19
+ import { useThemeWithUndefined } from '@rescui/ui-contexts';
20
20
  import { RadioButtonManager } from './radio-button-manager.js';
21
21
  import styles from './radio-button.p.module.css.js';
22
22
 
@@ -33,7 +33,7 @@ var RadioButtonList = function RadioButtonList(_ref) {
33
33
  style = _ref.style,
34
34
  restProps = _objectWithoutProperties(_ref, _excluded);
35
35
 
36
- var theme = useTheme(themeFromProps);
36
+ var theme = useThemeWithUndefined(themeFromProps);
37
37
  return /*#__PURE__*/React.createElement(RadioButtonManager, _objectSpread({
38
38
  disabled: disabled,
39
39
  size: size,
@@ -50,7 +50,8 @@ var RadioButtonList = function RadioButtonList(_ref) {
50
50
  size: size,
51
51
  tag: 'div',
52
52
  itemTag: null,
53
- mode: 'clear'
53
+ mode: 'clear',
54
+ "data-rs-internal": 'radio-button-list__menu'
54
55
  }, children)));
55
56
  };
56
57
 
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import "core-js/modules/es.function.name.js";
3
3
  import React, { useState, useRef, useCallback } from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import { useTheme } from '@rescui/ui-contexts';
5
+ import { useThemeWithUndefined } from '@rescui/ui-contexts';
6
6
  import RadioContext from './radio-group-context.js';
7
7
 
8
8
  var RadioButtonManager = function RadioButtonManager(_ref) {
@@ -20,7 +20,7 @@ var RadioButtonManager = function RadioButtonManager(_ref) {
20
20
  _ref$mode = _ref.mode,
21
21
  mode = _ref$mode === void 0 ? 'classic' : _ref$mode,
22
22
  themeFromProps = _ref.theme;
23
- var theme = useTheme(themeFromProps);
23
+ var theme = useThemeWithUndefined(themeFromProps);
24
24
  var isControlled = typeof valueFromProps !== 'undefined';
25
25
 
26
26
  var _useState = useState(isControlled ? valueFromProps : defaultValue),
@@ -1,17 +1,17 @@
1
1
  var styles = {
2
- "main": "_main_1nfhjz5_3",
3
- "errorMessage": "_errorMessage_1nfhjz5_9",
4
- "rs-reset-letter-spacing": "_rs-reset-letter-spacing_1nfhjz5_1",
5
- "input": "_input_1nfhjz5_17",
6
- "icon": "_icon_1nfhjz5_30",
7
- "enabled": "_enabled_1nfhjz5_42",
8
- "themeLight": "_themeLight_1nfhjz5_46",
9
- "classic": "_classic_1nfhjz5_46",
10
- "rock": "_rock_1nfhjz5_47",
11
- "themeDark": "_themeDark_1nfhjz5_60",
12
- "sizeS": "_sizeS_1nfhjz5_79",
13
- "sizeM": "_sizeM_1nfhjz5_85",
14
- "sizeL": "_sizeL_1nfhjz5_91",
15
- "error": "_error_1nfhjz5_9"
2
+ "themeLight": "_themeLight_1uxdzim_8",
3
+ "themeDark": "_themeDark_1uxdzim_11",
4
+ "sizeS": "_sizeS_1uxdzim_15",
5
+ "sizeM": "_sizeM_1uxdzim_18",
6
+ "sizeL": "_sizeL_1uxdzim_21",
7
+ "classic": "_classic_1uxdzim_25",
8
+ "rock": "_rock_1uxdzim_28",
9
+ "main": "_main_1uxdzim_32",
10
+ "errorMessage": "_errorMessage_1uxdzim_44",
11
+ "input": "_input_1uxdzim_53",
12
+ "icon": "_icon_1uxdzim_66",
13
+ "enabled": "_enabled_1uxdzim_87",
14
+ "disabled": "_disabled_1uxdzim_96",
15
+ "error": "_error_1uxdzim_44"
16
16
  };
17
17
  export { styles as default };