@rescui/radio-button 0.7.2-RUI-201-Support-css-modules-in-typography-6efea65f.26 → 0.7.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18

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.
@@ -0,0 +1,10 @@
1
+ var styles = {
2
+ "icon": "_icon_9r22zb_4",
3
+ "sizeXS": "_sizeXS_9r22zb_14",
4
+ "sizeS": "_sizeS_9r22zb_18",
5
+ "sizeM": "_sizeM_9r22zb_22",
6
+ "sizeL": "_sizeL_9r22zb_26",
7
+ "light": "_light_9r22zb_30",
8
+ "dark": "_dark_9r22zb_34"
9
+ };
10
+ export { styles as default };
@@ -0,0 +1,37 @@
1
+ import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import cn from 'classnames';
6
+ import styles from './index.css.js';
7
+ var _excluded = ["theme", "size", "className"];
8
+ var sizeStyles = {
9
+ "xs": styles.sizeXS,
10
+ "s": styles.sizeS,
11
+ "m": styles.sizeM,
12
+ "l": styles.sizeL
13
+ };
14
+ var WarningIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15
+ var theme = _ref.theme,
16
+ size = _ref.size,
17
+ className = _ref.className,
18
+ props = _objectWithoutProperties(_ref, _excluded);
19
+
20
+ return /*#__PURE__*/React.createElement("svg", _extends({
21
+ viewBox: "0 0 24 24"
22
+ }, props, {
23
+ className: cn(styles.icon, styles[theme], sizeStyles[size], className),
24
+ ref: ref
25
+ }), /*#__PURE__*/React.createElement("path", {
26
+ d: "M2.769 20h18.363a.615.615 0 00.546-.891L12.504 2.8a.566.566 0 00-.989-.002C9.8 5.891 4.026 16.101 2.322 19.112A.61.61 0 002.77 20zm8.229-12h2v6h-2V8zm0 8h2v2h-2v-2z"
27
+ }));
28
+ });
29
+ WarningIcon.propTypes = {
30
+ className: PropTypes.string,
31
+ theme: PropTypes.oneOf(["light", "dark"]),
32
+ size: PropTypes.oneOf(["xs", "s", "m", "l"])
33
+ };
34
+ WarningIcon.defaultProps = {
35
+ size: "m"
36
+ };
37
+ export { WarningIcon as default };
package/lib/index.css CHANGED
@@ -1,35 +1,238 @@
1
- ._themeLight_1d737ar_8{
1
+ ._icon_9r22zb_4{
2
+ --_rs-theme-dark:var(
3
+ --_rs-internal-force-theme-dark-consult-rescui-before-using,
4
+ var(--rs-theme-dark, 0)
5
+ );
6
+ --_rs-theme-flip:var(--rs-theme-flip, 0);
7
+ --_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
8
+ --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
9
+ }
10
+ @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
11
+ ._icon_9r22zb_4{
12
+ --_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)));
13
+ --_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)));
14
+ --_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)));
15
+ --_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)));
16
+ --_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)));
17
+ }
18
+ }
19
+ @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
20
+ ._icon_9r22zb_4{
21
+ --_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);
22
+ --_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));
23
+ --_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));
24
+ --_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);
25
+ --_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));
26
+ }
27
+ }
28
+ ._icon_9r22zb_4{
29
+
30
+ fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
31
+
32
+ width:auto;
33
+ height:var(--_rs-icons-height);
34
+ }
35
+ ._sizeXS_9r22zb_14{
36
+ --_rs-icons-height:16px;
37
+ }
38
+ ._sizeS_9r22zb_18{
39
+ --_rs-icons-height:20px;
40
+ }
41
+ ._sizeM_9r22zb_22{
42
+ --_rs-icons-height:24px;
43
+ }
44
+ ._sizeL_9r22zb_26{
45
+ --_rs-icons-height:28px;
46
+ }
47
+ ._light_9r22zb_30{
48
+ --rs-theme-dark:0;
49
+ --_rs-icons-themed-fill-or-initial: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));
50
+ }
51
+ ._dark_9r22zb_34{
52
+ --rs-theme-dark:1;
53
+ --_rs-icons-themed-fill-or-initial: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));
54
+ }
55
+ @-webkit-keyframes rs-icon-rotate{
56
+ from{
57
+ -webkit-transform:rotate(0deg);
58
+ transform:rotate(0deg);
59
+ }
60
+ to{
61
+ -webkit-transform:rotate(360deg);
62
+ transform:rotate(360deg);
63
+ }
64
+ }
65
+ @keyframes rs-icon-rotate{
66
+ from{
67
+ -webkit-transform:rotate(0deg);
68
+ transform:rotate(0deg);
69
+ }
70
+ to{
71
+ -webkit-transform:rotate(360deg);
72
+ transform:rotate(360deg);
73
+ }
74
+ }
75
+ ._themeLight_13jhuq1_8{
2
76
  --rs-theme-dark:0;
3
77
  }
4
- ._themeDark_1d737ar_11{
78
+ ._themeDark_13jhuq1_11{
5
79
  --rs-theme-dark:1;
6
80
  }
7
- ._sizeS_1d737ar_15{
81
+ ._container_13jhuq1_15{
82
+ --_rs-theme-dark:var(
83
+ --_rs-internal-force-theme-dark-consult-rescui-before-using,
84
+ var(--rs-theme-dark, 0)
85
+ );
86
+ --_rs-theme-flip:var(--rs-theme-flip, 0);
87
+ --_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
88
+ --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
89
+ }
90
+ @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
91
+ ._container_13jhuq1_15{
92
+ --_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)));
93
+ --_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)));
94
+ --_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)));
95
+ --_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)));
96
+ --_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)));
97
+ }
98
+ }
99
+ @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
100
+ ._container_13jhuq1_15{
101
+ --_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);
102
+ --_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));
103
+ --_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));
104
+ --_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);
105
+ --_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));
106
+ }
107
+ }
108
+ ._listSizeS_13jhuq1_20 [data-rs-internal='radio-button-list__error-message']{
109
+ --_rs-typography-letter-spacing:normal;
110
+ --_rs-typography-text-transform:initial;
111
+ --_rs-typography-font-variant-numeric:initial;
112
+ --_rs-typography-font-family:var(
113
+ --rs-font-family-ui,
114
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
115
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
116
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
117
+ );
118
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
119
+ --_rs-typography-font-weight:var(
120
+ --rs-font-weight-semi-bold,
121
+ 600
122
+ );
123
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
124
+ --_rs-typography-base-color:var(
125
+ --_rs-typography-heading-hardness-color,
126
+ var(
127
+ --rs-color-hard,
128
+ 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))
129
+ )
130
+ );
131
+ --_rs-typography-text-auto-offset:0;
132
+ --_rs-typography-ul-list-li-padding-left:initial;
133
+ --_rs-typography-ol-list-li-padding-left:initial;
134
+ --_rs-typography-list-li-margin-top-from-text:initial;
135
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
136
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
137
+ --_rs-typography-link-border-bottom-width-from-text:2px;
138
+ }
139
+ ._listSizeS_13jhuq1_20 [data-rs-internal='radio-button-list__error-icon']:not(html){
140
+ --_rs-icons-height:20px;
141
+ }
142
+ ._listSizeM_13jhuq1_23 [data-rs-internal='radio-button-list__error-message']{
143
+ --_rs-typography-letter-spacing:normal;
144
+ --_rs-typography-text-transform:initial;
145
+ --_rs-typography-font-variant-numeric:initial;
146
+ --_rs-typography-font-family:var(
147
+ --rs-font-family-ui,
148
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
149
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
150
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
151
+ );
152
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
153
+ --_rs-typography-font-weight:var(
154
+ --rs-font-weight-semi-bold,
155
+ 600
156
+ );
157
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
158
+ --_rs-typography-base-color:var(
159
+ --_rs-typography-heading-hardness-color,
160
+ var(
161
+ --rs-color-hard,
162
+ 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))
163
+ )
164
+ );
165
+ --_rs-typography-text-auto-offset:0;
166
+ --_rs-typography-ul-list-li-padding-left:initial;
167
+ --_rs-typography-ol-list-li-padding-left:initial;
168
+ --_rs-typography-list-li-margin-top-from-text:initial;
169
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
170
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
171
+ --_rs-typography-link-border-bottom-width-from-text:2px;
172
+ }
173
+ ._listSizeM_13jhuq1_23 [data-rs-internal='radio-button-list__error-icon']:not(html){
174
+ --_rs-icons-height:20px;
175
+ }
176
+ ._listSizeL_13jhuq1_26 [data-rs-internal='radio-button-list__error-message']{
177
+ --_rs-typography-letter-spacing:normal;
178
+ --_rs-typography-text-transform:initial;
179
+ --_rs-typography-font-variant-numeric:initial;
180
+ --_rs-typography-font-family:var(
181
+ --rs-font-family-ui,
182
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
183
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
184
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
185
+ );
186
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
187
+ --_rs-typography-font-weight:var(
188
+ --rs-font-weight-semi-bold,
189
+ 600
190
+ );
191
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
192
+ --_rs-typography-base-color:var(
193
+ --_rs-typography-heading-hardness-color,
194
+ var(
195
+ --rs-color-hard,
196
+ 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))
197
+ )
198
+ );
199
+ --_rs-typography-text-auto-offset:0;
200
+ --_rs-typography-ul-list-li-padding-left:initial;
201
+ --_rs-typography-ol-list-li-padding-left:initial;
202
+ --_rs-typography-list-li-margin-top-from-text:initial;
203
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
204
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
205
+ --_rs-typography-link-border-bottom-width-from-text:2px;
206
+ }
207
+ ._listSizeL_13jhuq1_26 [data-rs-internal='radio-button-list__error-icon']:not(html){
208
+ --_rs-icons-height:24px;
209
+ }
210
+ ._sizeS_13jhuq1_30{
8
211
  --_rs-radio-button-size:20px;
9
212
  --_rs-radio-button-box-shadow-size:3px;
10
213
  --_rs-radio-button-active-icon-border-width:5px;
11
214
  }
12
- ._sizeM_1d737ar_18{
215
+ ._sizeM_13jhuq1_33{
13
216
  --_rs-radio-button-size:24px;
14
217
  --_rs-radio-button-box-shadow-size:3px;
15
218
  --_rs-radio-button-active-icon-border-width:6px;
16
219
  }
17
- ._sizeL_1d737ar_21{
220
+ ._sizeL_13jhuq1_36{
18
221
  --_rs-radio-button-size:28px;
19
222
  --_rs-radio-button-box-shadow-size:4px;
20
223
  --_rs-radio-button-active-icon-border-width:6px;
21
224
  }
22
- ._classic_1d737ar_25{
225
+ ._classic_13jhuq1_40{
23
226
  --_rs-radio-button-active-icon-border-color:var(--_rs-color-primary);
24
227
  --_rs-radio-button-active-icon-background-color:#FFFFFF;
25
228
  --_rs-radio-button-active-icon-hover-box-shadow-color:var(--_rs-color-primary-t-fog);
26
229
  }
27
- ._rock_1d737ar_28{
230
+ ._rock_13jhuq1_43{
28
231
  --_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
232
  --_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
233
  --_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
234
  }
32
- ._main_1d737ar_32{
235
+ ._main_13jhuq1_47{
33
236
  --_rs-theme-dark:var(
34
237
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
35
238
  var(--rs-theme-dark, 0)
@@ -39,7 +242,7 @@
39
242
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
40
243
  }
41
244
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
42
- ._main_1d737ar_32{
245
+ ._main_13jhuq1_47{
43
246
  --_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
247
  --_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
248
  --_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)));
@@ -48,7 +251,7 @@
48
251
  }
49
252
  }
50
253
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
51
- ._main_1d737ar_32{
254
+ ._main_13jhuq1_47{
52
255
  --_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
256
  --_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
257
  --_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));
@@ -56,7 +259,7 @@
56
259
  --_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
260
  }
58
261
  }
59
- ._main_1d737ar_32 {
262
+ ._main_13jhuq1_47 {
60
263
 
61
264
  display:inline-block;
62
265
 
@@ -65,7 +268,7 @@
65
268
 
66
269
  vertical-align:middle;
67
270
  }
68
- ._errorMessage_1d737ar_44{
271
+ ._errorMessage_13jhuq1_59{
69
272
  letter-spacing:var(
70
273
  --rs-text-base-letter-spacing,
71
274
  var(--_rs-typography-letter-spacing)
@@ -78,44 +281,30 @@
78
281
  font-variant-numeric:var(--_rs-typography-font-variant-numeric);
79
282
  -webkit-font-feature-settings:'kern', 'liga', 'calt';
80
283
  font-feature-settings:'kern', 'liga', 'calt';
81
- --_rs-typography-letter-spacing:0.0045em;
82
- --_rs-typography-text-transform:initial;
83
- --_rs-typography-font-variant-numeric:initial;
84
- --_rs-typography-font-family:var(
85
- --rs-font-family-ui,
86
- var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
87
- BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
88
- 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
89
- );
90
- --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
91
- --_rs-typography-font-weight:var(
92
- --rs-font-weight-regular,
93
- 400
94
- );
95
- --_rs-typography-line-height:var(
96
- --rs-text-3-line-height,
97
- 20px
98
- );
99
- --_rs-typography-base-color:var(
100
- --_rs-typography-hardness-color,
101
- var(
102
- --rs-color-average,
103
- 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)
104
- )
105
- );
106
- --_rs-typography-text-auto-offset:8px;
107
- --_rs-typography-ul-list-li-padding-left:28px;
108
- --_rs-typography-ol-list-li-padding-left:21px;
109
- --_rs-typography-list-li-margin-top-from-text:8px;
110
- --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
111
- --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
112
- --_rs-typography-link-border-bottom-width-from-text:1px;
284
+
285
+ display:-webkit-box;
286
+
287
+ display:-ms-flexbox;
288
+
289
+ display:flex;
290
+ -ms-flex-wrap:nowrap;
291
+ flex-wrap:nowrap;
113
292
 
114
293
  margin-bottom:8px;
115
294
 
295
+ 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));
296
+ -webkit-column-gap:8px;
297
+ -moz-column-gap:8px;
298
+ column-gap:8px;
299
+ }
300
+ ._errorIcon_13jhuq1_71{
301
+ -webkit-box-flex:0;
302
+ -ms-flex:0 0 auto;
303
+ flex:0 0 auto;
304
+
116
305
  color:#F45C4A;
117
306
  }
118
- ._input_1d737ar_53{
307
+ ._input_13jhuq1_77{
119
308
  position:absolute;
120
309
  -webkit-appearance:none;
121
310
  -moz-appearance:none;
@@ -129,7 +318,7 @@
129
318
 
130
319
  border:0;
131
320
  }
132
- ._icon_1d737ar_66{
321
+ ._icon_13jhuq1_90{
133
322
  position:relative;
134
323
 
135
324
  display:inline-block;
@@ -148,16 +337,16 @@
148
337
 
149
338
  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));
150
339
  }
151
- ._enabled_1d737ar_87 ._icon_1d737ar_66{
340
+ ._enabled_13jhuq1_111 ._icon_13jhuq1_90{
152
341
  cursor:pointer;
153
342
  }
154
- ._enabled_1d737ar_87:hover > ._icon_1d737ar_66,
155
- label:hover ._enabled_1d737ar_87 > ._icon_1d737ar_66{
343
+ ._enabled_13jhuq1_111:hover > ._icon_13jhuq1_90,
344
+ label:hover ._enabled_13jhuq1_111 > ._icon_13jhuq1_90{
156
345
  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));
157
346
  }
158
- ._disabled_1d737ar_96 ._icon_1d737ar_66._icon_1d737ar_66,
159
- ._input_1d737ar_53:disabled + ._icon_1d737ar_66._icon_1d737ar_66,
160
- ._input_1d737ar_53:checked:disabled + ._icon_1d737ar_66{
347
+ ._disabled_13jhuq1_120 ._icon_13jhuq1_90._icon_13jhuq1_90,
348
+ ._input_13jhuq1_77:disabled + ._icon_13jhuq1_90._icon_13jhuq1_90,
349
+ ._input_13jhuq1_77:checked:disabled + ._icon_13jhuq1_90{
161
350
  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));
162
351
 
163
352
  cursor:not-allowed;
@@ -165,27 +354,27 @@
165
354
 
166
355
  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));
167
356
  }
168
- ._enabled_1d737ar_87 ._input_1d737ar_53:active + ._icon_1d737ar_66,
169
- ._enabled_1d737ar_87 ._input_1d737ar_53:checked + ._icon_1d737ar_66{
357
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:active + ._icon_13jhuq1_90,
358
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:checked + ._icon_13jhuq1_90{
170
359
  border-color:var(--_rs-radio-button-active-icon-border-color);
171
360
 
172
361
  background-color:var(--_rs-radio-button-active-icon-background-color);
173
362
  }
174
- ._enabled_1d737ar_87 ._input_1d737ar_53:active + ._icon_1d737ar_66,
175
- ._enabled_1d737ar_87 ._input_1d737ar_53:checked + ._icon_1d737ar_66,
176
- ._main_1d737ar_32 ._input_1d737ar_53:checked:disabled + ._icon_1d737ar_66{
363
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:active + ._icon_13jhuq1_90,
364
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:checked + ._icon_13jhuq1_90,
365
+ ._main_13jhuq1_47 ._input_13jhuq1_77:checked:disabled + ._icon_13jhuq1_90{
177
366
  border-width:var(--_rs-radio-button-active-icon-border-width);
178
367
  }
179
- ._error_1d737ar_44 ._icon_1d737ar_66._icon_1d737ar_66._icon_1d737ar_66{
368
+ ._error_13jhuq1_59 ._icon_13jhuq1_90._icon_13jhuq1_90._icon_13jhuq1_90{
180
369
  border-color:#F45C4A;
181
370
  }
182
- ._enabled_1d737ar_87:hover > ._icon_1d737ar_66._icon_1d737ar_66,
183
- label:hover ._enabled_1d737ar_87 > ._icon_1d737ar_66._icon_1d737ar_66,
184
- ._enabled_1d737ar_87 ._input_1d737ar_53:active:not(:checked) + ._icon_1d737ar_66{
371
+ ._enabled_13jhuq1_111:hover > ._icon_13jhuq1_90._icon_13jhuq1_90,
372
+ label:hover ._enabled_13jhuq1_111 > ._icon_13jhuq1_90._icon_13jhuq1_90,
373
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:active:not(:checked) + ._icon_13jhuq1_90{
185
374
  -webkit-box-shadow:0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-radio-button-active-icon-hover-box-shadow-color);
186
375
  box-shadow:0 0 0 var(--_rs-radio-button-box-shadow-size) var(--_rs-radio-button-active-icon-hover-box-shadow-color);
187
376
  }
188
- ._enabled_1d737ar_87 ._input_1d737ar_53:focus[data-focus-method='key'] + ._icon_1d737ar_66{
377
+ ._enabled_13jhuq1_111 ._input_13jhuq1_77:focus[data-focus-method='key'] + ._icon_13jhuq1_90{
189
378
  -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);
190
379
  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);
191
380
  }
@@ -15,10 +15,21 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15
15
 
16
16
  import React from 'react';
17
17
  import PropTypes from 'prop-types';
18
+ import cn from 'classnames';
18
19
  import { Menu } from '@rescui/menu';
19
20
  import { useThemeWithUndefined } from '@rescui/ui-contexts';
21
+ import WarningIcon from '../_virtual/warning.js';
20
22
  import { RadioButtonManager } from './radio-button-manager.js';
21
23
  import styles from './radio-button.p.module.css.js';
24
+ var THEME_STYLES = {
25
+ light: styles.themeLight,
26
+ dark: styles.themeDark
27
+ };
28
+ var SIZE_STYLES = {
29
+ s: styles.listSizeS,
30
+ m: styles.listSizeM,
31
+ l: styles.listSizeL
32
+ };
22
33
 
23
34
  var RadioButtonList = function RadioButtonList(_ref) {
24
35
  var children = _ref.children,
@@ -40,11 +51,15 @@ var RadioButtonList = function RadioButtonList(_ref) {
40
51
  mode: mode,
41
52
  theme: theme
42
53
  }, restProps), /*#__PURE__*/React.createElement("div", {
43
- className: className,
54
+ className: cn(className, styles.container, THEME_STYLES[theme], SIZE_STYLES[size]),
44
55
  style: style
45
56
  }, error && typeof error !== 'boolean' && /*#__PURE__*/React.createElement("div", {
46
- className: styles.errorMessage
47
- }, error), /*#__PURE__*/React.createElement(Menu, {
57
+ className: styles.errorMessage,
58
+ "data-rs-internal": "radio-button-list__error-message"
59
+ }, /*#__PURE__*/React.createElement(WarningIcon, {
60
+ "data-rs-internal": "radio-button-list__error-icon",
61
+ className: styles.errorIcon
62
+ }), /*#__PURE__*/React.createElement("span", null, error)), /*#__PURE__*/React.createElement(Menu, {
48
63
  disabled: disabled,
49
64
  theme: theme,
50
65
  size: size,
@@ -1,17 +1,22 @@
1
1
  var styles = {
2
- "themeLight": "_themeLight_1d737ar_8",
3
- "themeDark": "_themeDark_1d737ar_11",
4
- "sizeS": "_sizeS_1d737ar_15",
5
- "sizeM": "_sizeM_1d737ar_18",
6
- "sizeL": "_sizeL_1d737ar_21",
7
- "classic": "_classic_1d737ar_25",
8
- "rock": "_rock_1d737ar_28",
9
- "main": "_main_1d737ar_32",
10
- "errorMessage": "_errorMessage_1d737ar_44",
11
- "input": "_input_1d737ar_53",
12
- "icon": "_icon_1d737ar_66",
13
- "enabled": "_enabled_1d737ar_87",
14
- "disabled": "_disabled_1d737ar_96",
15
- "error": "_error_1d737ar_44"
2
+ "themeLight": "_themeLight_13jhuq1_8",
3
+ "themeDark": "_themeDark_13jhuq1_11",
4
+ "container": "_container_13jhuq1_15",
5
+ "listSizeS": "_listSizeS_13jhuq1_20",
6
+ "listSizeM": "_listSizeM_13jhuq1_23",
7
+ "listSizeL": "_listSizeL_13jhuq1_26",
8
+ "sizeS": "_sizeS_13jhuq1_30",
9
+ "sizeM": "_sizeM_13jhuq1_33",
10
+ "sizeL": "_sizeL_13jhuq1_36",
11
+ "classic": "_classic_13jhuq1_40",
12
+ "rock": "_rock_13jhuq1_43",
13
+ "main": "_main_13jhuq1_47",
14
+ "errorMessage": "_errorMessage_13jhuq1_59",
15
+ "errorIcon": "_errorIcon_13jhuq1_71",
16
+ "input": "_input_13jhuq1_77",
17
+ "icon": "_icon_13jhuq1_90",
18
+ "enabled": "_enabled_13jhuq1_111",
19
+ "disabled": "_disabled_13jhuq1_120",
20
+ "error": "_error_13jhuq1_59"
16
21
  };
17
22
  export { styles as default };
@@ -1,4 +1,38 @@
1
1
  @define-mixin rs-radio-button-list-size-s{
2
+ &[class] [data-rs-internal='radio-button-list__error-message']{
3
+ --_rs-typography-letter-spacing:normal;
4
+ --_rs-typography-text-transform:initial;
5
+ --_rs-typography-font-variant-numeric:initial;
6
+ --_rs-typography-font-family:var(
7
+ --rs-font-family-ui,
8
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
9
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
10
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
11
+ );
12
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
13
+ --_rs-typography-font-weight:var(
14
+ --rs-font-weight-semi-bold,
15
+ 600
16
+ );
17
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
18
+ --_rs-typography-base-color:var(
19
+ --_rs-typography-heading-hardness-color,
20
+ var(
21
+ --rs-color-hard,
22
+ 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))
23
+ )
24
+ );
25
+ --_rs-typography-text-auto-offset:0;
26
+ --_rs-typography-ul-list-li-padding-left:initial;
27
+ --_rs-typography-ol-list-li-padding-left:initial;
28
+ --_rs-typography-list-li-margin-top-from-text:initial;
29
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
30
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
31
+ --_rs-typography-link-border-bottom-width-from-text:2px;
32
+ }
33
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
34
+ --_rs-icons-height:20px;
35
+ }
2
36
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
3
37
  --_rs-menu-mi-icon-offset:8px;
4
38
  --_rs-menu-mi-vertical-padding:6px;
@@ -55,9 +89,12 @@
55
89
  );
56
90
  --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
57
91
  --_rs-typography-base-color:var(
92
+ --_rs-typography-heading-hardness-color,
93
+ var(
58
94
  --rs-color-hard,
59
95
  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))
60
- );
96
+ )
97
+ );
61
98
  --_rs-typography-text-auto-offset:0;
62
99
  --_rs-typography-ul-list-li-padding-left:initial;
63
100
  --_rs-typography-ol-list-li-padding-left:initial;
@@ -73,6 +110,40 @@
73
110
  }
74
111
  }
75
112
  @define-mixin rs-radio-button-list-size-m{
113
+ &[class] [data-rs-internal='radio-button-list__error-message']{
114
+ --_rs-typography-letter-spacing:normal;
115
+ --_rs-typography-text-transform:initial;
116
+ --_rs-typography-font-variant-numeric:initial;
117
+ --_rs-typography-font-family:var(
118
+ --rs-font-family-ui,
119
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
120
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
121
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
122
+ );
123
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
124
+ --_rs-typography-font-weight:var(
125
+ --rs-font-weight-semi-bold,
126
+ 600
127
+ );
128
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
129
+ --_rs-typography-base-color:var(
130
+ --_rs-typography-heading-hardness-color,
131
+ var(
132
+ --rs-color-hard,
133
+ 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))
134
+ )
135
+ );
136
+ --_rs-typography-text-auto-offset:0;
137
+ --_rs-typography-ul-list-li-padding-left:initial;
138
+ --_rs-typography-ol-list-li-padding-left:initial;
139
+ --_rs-typography-list-li-margin-top-from-text:initial;
140
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
141
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
142
+ --_rs-typography-link-border-bottom-width-from-text:2px;
143
+ }
144
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
145
+ --_rs-icons-height:20px;
146
+ }
76
147
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
77
148
  --_rs-menu-mi-icon-offset:8px;
78
149
  --_rs-menu-mi-vertical-padding:8px;
@@ -134,9 +205,12 @@
134
205
  );
135
206
  --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
136
207
  --_rs-typography-base-color:var(
208
+ --_rs-typography-heading-hardness-color,
209
+ var(
137
210
  --rs-color-hard,
138
211
  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))
139
- );
212
+ )
213
+ );
140
214
  --_rs-typography-text-auto-offset:0;
141
215
  --_rs-typography-ul-list-li-padding-left:initial;
142
216
  --_rs-typography-ol-list-li-padding-left:initial;
@@ -152,6 +226,40 @@
152
226
  }
153
227
  }
154
228
  @define-mixin rs-radio-button-list-size-l{
229
+ &[class] [data-rs-internal='radio-button-list__error-message']{
230
+ --_rs-typography-letter-spacing:normal;
231
+ --_rs-typography-text-transform:initial;
232
+ --_rs-typography-font-variant-numeric:initial;
233
+ --_rs-typography-font-family:var(
234
+ --rs-font-family-ui,
235
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
236
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
237
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
238
+ );
239
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
240
+ --_rs-typography-font-weight:var(
241
+ --rs-font-weight-semi-bold,
242
+ 600
243
+ );
244
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
245
+ --_rs-typography-base-color:var(
246
+ --_rs-typography-heading-hardness-color,
247
+ var(
248
+ --rs-color-hard,
249
+ 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))
250
+ )
251
+ );
252
+ --_rs-typography-text-auto-offset:0;
253
+ --_rs-typography-ul-list-li-padding-left:initial;
254
+ --_rs-typography-ol-list-li-padding-left:initial;
255
+ --_rs-typography-list-li-margin-top-from-text:initial;
256
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
257
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
258
+ --_rs-typography-link-border-bottom-width-from-text:2px;
259
+ }
260
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
261
+ --_rs-icons-height:24px;
262
+ }
155
263
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
156
264
  --_rs-menu-mi-icon-offset:16px;
157
265
  --_rs-menu-mi-vertical-padding:12px;
@@ -213,9 +321,12 @@
213
321
  );
214
322
  --_rs-typography-line-height:var(--rs-h3-line-height, 28px);
215
323
  --_rs-typography-base-color:var(
324
+ --_rs-typography-heading-hardness-color,
325
+ var(
216
326
  --rs-color-hard,
217
327
  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))
218
- );
328
+ )
329
+ );
219
330
  --_rs-typography-text-auto-offset:0;
220
331
  --_rs-typography-ul-list-li-padding-left:initial;
221
332
  --_rs-typography-ol-list-li-padding-left:initial;
@@ -1,4 +1,38 @@
1
1
  @define-mixin rs-radio-button-list-size-s{
2
+ &[class] [data-rs-internal='radio-button-list__error-message']{
3
+ --_rs-typography-letter-spacing:normal;
4
+ --_rs-typography-text-transform:initial;
5
+ --_rs-typography-font-variant-numeric:initial;
6
+ --_rs-typography-font-family:var(
7
+ --rs-font-family-ui,
8
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
9
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
10
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
11
+ );
12
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
13
+ --_rs-typography-font-weight:var(
14
+ --rs-font-weight-semi-bold,
15
+ 600
16
+ );
17
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
18
+ --_rs-typography-base-color:var(
19
+ --_rs-typography-heading-hardness-color,
20
+ var(
21
+ --rs-color-hard,
22
+ 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))
23
+ )
24
+ );
25
+ --_rs-typography-text-auto-offset:0;
26
+ --_rs-typography-ul-list-li-padding-left:initial;
27
+ --_rs-typography-ol-list-li-padding-left:initial;
28
+ --_rs-typography-list-li-margin-top-from-text:initial;
29
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
30
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
31
+ --_rs-typography-link-border-bottom-width-from-text:2px;
32
+ }
33
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
34
+ --_rs-icons-height:20px;
35
+ }
2
36
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
3
37
  --_rs-menu-mi-icon-offset:8px;
4
38
  --_rs-menu-mi-vertical-padding:6px;
@@ -55,9 +89,12 @@
55
89
  );
56
90
  --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
57
91
  --_rs-typography-base-color:var(
92
+ --_rs-typography-heading-hardness-color,
93
+ var(
58
94
  --rs-color-hard,
59
95
  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))
60
- );
96
+ )
97
+ );
61
98
  --_rs-typography-text-auto-offset:0;
62
99
  --_rs-typography-ul-list-li-padding-left:initial;
63
100
  --_rs-typography-ol-list-li-padding-left:initial;
@@ -73,6 +110,40 @@
73
110
  }
74
111
  }
75
112
  @define-mixin rs-radio-button-list-size-m{
113
+ &[class] [data-rs-internal='radio-button-list__error-message']{
114
+ --_rs-typography-letter-spacing:normal;
115
+ --_rs-typography-text-transform:initial;
116
+ --_rs-typography-font-variant-numeric:initial;
117
+ --_rs-typography-font-family:var(
118
+ --rs-font-family-ui,
119
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
120
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
121
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
122
+ );
123
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
124
+ --_rs-typography-font-weight:var(
125
+ --rs-font-weight-semi-bold,
126
+ 600
127
+ );
128
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
129
+ --_rs-typography-base-color:var(
130
+ --_rs-typography-heading-hardness-color,
131
+ var(
132
+ --rs-color-hard,
133
+ 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))
134
+ )
135
+ );
136
+ --_rs-typography-text-auto-offset:0;
137
+ --_rs-typography-ul-list-li-padding-left:initial;
138
+ --_rs-typography-ol-list-li-padding-left:initial;
139
+ --_rs-typography-list-li-margin-top-from-text:initial;
140
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
141
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
142
+ --_rs-typography-link-border-bottom-width-from-text:2px;
143
+ }
144
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
145
+ --_rs-icons-height:20px;
146
+ }
76
147
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
77
148
  --_rs-menu-mi-icon-offset:8px;
78
149
  --_rs-menu-mi-vertical-padding:8px;
@@ -134,9 +205,12 @@
134
205
  );
135
206
  --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
136
207
  --_rs-typography-base-color:var(
208
+ --_rs-typography-heading-hardness-color,
209
+ var(
137
210
  --rs-color-hard,
138
211
  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))
139
- );
212
+ )
213
+ );
140
214
  --_rs-typography-text-auto-offset:0;
141
215
  --_rs-typography-ul-list-li-padding-left:initial;
142
216
  --_rs-typography-ol-list-li-padding-left:initial;
@@ -152,6 +226,40 @@
152
226
  }
153
227
  }
154
228
  @define-mixin rs-radio-button-list-size-l{
229
+ &[class] [data-rs-internal='radio-button-list__error-message']{
230
+ --_rs-typography-letter-spacing:normal;
231
+ --_rs-typography-text-transform:initial;
232
+ --_rs-typography-font-variant-numeric:initial;
233
+ --_rs-typography-font-family:var(
234
+ --rs-font-family-ui,
235
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
236
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
237
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
238
+ );
239
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
240
+ --_rs-typography-font-weight:var(
241
+ --rs-font-weight-semi-bold,
242
+ 600
243
+ );
244
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
245
+ --_rs-typography-base-color:var(
246
+ --_rs-typography-heading-hardness-color,
247
+ var(
248
+ --rs-color-hard,
249
+ 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))
250
+ )
251
+ );
252
+ --_rs-typography-text-auto-offset:0;
253
+ --_rs-typography-ul-list-li-padding-left:initial;
254
+ --_rs-typography-ol-list-li-padding-left:initial;
255
+ --_rs-typography-list-li-margin-top-from-text:initial;
256
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
257
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
258
+ --_rs-typography-link-border-bottom-width-from-text:2px;
259
+ }
260
+ &[class] [data-rs-internal='radio-button-list__error-icon']:not(html){
261
+ --_rs-icons-height:24px;
262
+ }
155
263
  & [data-rs-internal="radio-button-list__menu"] [data-rs-internal="menu__menu-item"]{
156
264
  --_rs-menu-mi-icon-offset:16px;
157
265
  --_rs-menu-mi-vertical-padding:12px;
@@ -213,9 +321,12 @@
213
321
  );
214
322
  --_rs-typography-line-height:var(--rs-h3-line-height, 28px);
215
323
  --_rs-typography-base-color:var(
324
+ --_rs-typography-heading-hardness-color,
325
+ var(
216
326
  --rs-color-hard,
217
327
  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))
218
- );
328
+ )
329
+ );
219
330
  --_rs-typography-text-auto-offset:0;
220
331
  --_rs-typography-ul-list-li-padding-left:initial;
221
332
  --_rs-typography-ol-list-li-padding-left:initial;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/radio-button",
3
- "version": "0.7.2-RUI-201-Support-css-modules-in-typography-6efea65f.26+6efea65f",
3
+ "version": "0.7.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/runtime-corejs3": "^7.14.0",
18
- "@rescui/menu": "0.10.2-RUI-201-Support-css-modules-in-typography-6efea65f.26+6efea65f",
18
+ "@rescui/menu": "0.10.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1",
19
19
  "classnames": "^2.2.6",
20
20
  "core-js": "^3.9.1"
21
21
  },
@@ -25,14 +25,14 @@
25
25
  "react": ">=16.8.0 <19"
26
26
  },
27
27
  "devDependencies": {
28
- "@rescui/colors": "0.2.1-RUI-201-Support-css-modules-in-typography-6efea65f.28+6efea65f",
29
- "@rescui/scripts": "0.3.1",
30
- "@rescui/typography": "0.16.2-RUI-201-Support-css-modules-in-typography-6efea65f.26+6efea65f"
28
+ "@rescui/colors": "0.2.1-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.41+48b1e9e1",
29
+ "@rescui/scripts": "0.3.2",
30
+ "@rescui/typography": "0.16.3-RUI-198-Support-different-hardness-for-headings-in-mixins-api-48b1e9e1.18+48b1e9e1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rescui-scripts build && yarn run build-pcss-api",
34
34
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
35
35
  },
36
36
  "nx": {},
37
- "gitHead": "6efea65fdcd5dea2f275be4be0e30ee7eb6ad136"
37
+ "gitHead": "48b1e9e1ea4e38ec28a5bc9f9be82e5b69f7fe44"
38
38
  }