@rescui/checkbox 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.
@@ -0,0 +1,503 @@
1
+ @define-mixin rs-checkbox-list-size-s{
2
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
3
+ --_rs-menu-mi-icon-offset:8px;
4
+ --_rs-menu-mi-vertical-padding:6px;
5
+ --_rs-menu-mi-horizontal-padding:8px;
6
+ --_rs-typography-letter-spacing:0.0045em;
7
+ --_rs-typography-text-transform:initial;
8
+ --_rs-typography-font-variant-numeric:initial;
9
+ --_rs-typography-font-family:var(
10
+ --rs-font-family-ui,
11
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
12
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
13
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
14
+ );
15
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
16
+ --_rs-typography-font-weight:var(
17
+ --rs-font-weight-regular,
18
+ 400
19
+ );
20
+ --_rs-typography-line-height:var(
21
+ --rs-text-3-line-height,
22
+ 20px
23
+ );
24
+ --_rs-typography-base-color:var(
25
+ --_rs-typography-hardness-color,
26
+ var(
27
+ --rs-color-average,
28
+ 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)
29
+ )
30
+ );
31
+ --_rs-typography-text-auto-offset:8px;
32
+ --_rs-typography-ul-list-li-padding-left:28px;
33
+ --_rs-typography-ol-list-li-padding-left:21px;
34
+ --_rs-typography-list-li-margin-top-from-text:8px;
35
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
36
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
37
+ --_rs-typography-link-border-bottom-width-from-text:1px;
38
+ }
39
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__group-header"]{
40
+ --_rs-menu-gh-vertical-padding:6px;
41
+ --_rs-menu-gh-horizontal-padding:8px;
42
+ --_rs-typography-letter-spacing:normal;
43
+ --_rs-typography-text-transform:initial;
44
+ --_rs-typography-font-variant-numeric:initial;
45
+ --_rs-typography-font-family:var(
46
+ --rs-font-family-ui,
47
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
48
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
49
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
50
+ );
51
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
52
+ --_rs-typography-font-weight:var(
53
+ --rs-font-weight-semi-bold,
54
+ 600
55
+ );
56
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
57
+ --_rs-typography-base-color:var(
58
+ --rs-color-hard,
59
+ 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
+ );
61
+ --_rs-typography-text-auto-offset:0;
62
+ --_rs-typography-ul-list-li-padding-left:initial;
63
+ --_rs-typography-ol-list-li-padding-left:initial;
64
+ --_rs-typography-list-li-margin-top-from-text:initial;
65
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
66
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
67
+ --_rs-typography-link-border-bottom-width-from-text:2px;
68
+ }
69
+ & [data-rs-internal="checkbox__control"]{
70
+ --_rs-checkbox-ci-mark-s-display:initial;
71
+ --_rs-checkbox-ci-mark-m-display:none;
72
+ --_rs-checkbox-ci-mark-l-display:none;
73
+ --_rs-checkbox-ci-size:14px;
74
+ --_rs-checkbox-ci-shadow-size:3px;
75
+ --_rs-checkbox-ci-indeterminate-icon-border-width:6px 3px;
76
+ }
77
+ }
78
+ @define-mixin rs-checkbox-list-size-m{
79
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
80
+ --_rs-menu-mi-icon-offset:8px;
81
+ --_rs-menu-mi-vertical-padding:8px;
82
+ --_rs-menu-mi-horizontal-padding:16px;
83
+ --_rs-typography-letter-spacing:0.0015em;
84
+ --_rs-typography-text-transform:initial;
85
+ --_rs-typography-font-variant-numeric:initial;
86
+ --_rs-typography-font-family:var(
87
+ --rs-font-family-ui,
88
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
89
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
90
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
91
+ );
92
+ --_rs-typography-font-size:var(--rs-text-2-font-size, 16px);
93
+ --_rs-typography-font-weight:var(
94
+ --rs-font-weight-regular,
95
+ 400
96
+ );
97
+ --_rs-typography-line-height:var(
98
+ --rs-text-2-line-height,
99
+ 24px
100
+ );
101
+ --_rs-typography-base-color:var(
102
+ --_rs-typography-hardness-color,
103
+ var(
104
+ --rs-color-average,
105
+ 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)
106
+ )
107
+ );
108
+ --_rs-typography-text-auto-offset:16px;
109
+ --_rs-typography-ul-list-li-padding-left:22px;
110
+ --_rs-typography-ol-list-li-padding-left:26px;
111
+ --_rs-typography-list-li-margin-top-from-text:16px;
112
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
113
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
114
+ --_rs-typography-link-border-bottom-width-from-text:1px;
115
+ }
116
+ @media screen and (max-width: 640px){
117
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
118
+ --_rs-typography-list-li-margin-top-from-text:12px;
119
+ }
120
+ }
121
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__group-header"]{
122
+ --_rs-menu-gh-vertical-padding:8px;
123
+ --_rs-menu-gh-horizontal-padding:16px;
124
+ --_rs-typography-letter-spacing:normal;
125
+ --_rs-typography-text-transform:initial;
126
+ --_rs-typography-font-variant-numeric:initial;
127
+ --_rs-typography-font-family:var(
128
+ --rs-font-family-ui,
129
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
130
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
131
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
132
+ );
133
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
134
+ --_rs-typography-font-weight:var(
135
+ --rs-font-weight-semi-bold,
136
+ 600
137
+ );
138
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
139
+ --_rs-typography-base-color:var(
140
+ --rs-color-hard,
141
+ 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))
142
+ );
143
+ --_rs-typography-text-auto-offset:0;
144
+ --_rs-typography-ul-list-li-padding-left:initial;
145
+ --_rs-typography-ol-list-li-padding-left:initial;
146
+ --_rs-typography-list-li-margin-top-from-text:initial;
147
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
148
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
149
+ --_rs-typography-link-border-bottom-width-from-text:2px;
150
+ }
151
+ & [data-rs-internal="checkbox__control"]{
152
+ --_rs-checkbox-ci-mark-s-display:none;
153
+ --_rs-checkbox-ci-mark-m-display:initial;
154
+ --_rs-checkbox-ci-mark-l-display:none;
155
+ --_rs-checkbox-ci-size:18px;
156
+ --_rs-checkbox-ci-shadow-size:3px;
157
+ --_rs-checkbox-ci-indeterminate-icon-border-width:8px 3px;
158
+ }
159
+ }
160
+ @define-mixin rs-checkbox-list-size-l{
161
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
162
+ --_rs-menu-mi-icon-offset:16px;
163
+ --_rs-menu-mi-vertical-padding:12px;
164
+ --_rs-menu-mi-horizontal-padding:16px;
165
+ --_rs-typography-letter-spacing:normal;
166
+ --_rs-typography-text-transform:initial;
167
+ --_rs-typography-font-variant-numeric:initial;
168
+ --_rs-typography-font-family:var(
169
+ --rs-font-family-ui,
170
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
171
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
172
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
173
+ );
174
+ --_rs-typography-font-size:var(--rs-text-1-font-size, 20px);
175
+ --_rs-typography-font-weight:var(
176
+ --rs-font-weight-regular,
177
+ 400
178
+ );
179
+ --_rs-typography-line-height:var(
180
+ --rs-text-1-line-height,
181
+ 28px
182
+ );
183
+ --_rs-typography-base-color:var(
184
+ --_rs-typography-hardness-color,
185
+ var(
186
+ --rs-color-average,
187
+ 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)
188
+ )
189
+ );
190
+ --_rs-typography-text-auto-offset:32px;
191
+ --_rs-typography-ul-list-li-padding-left:26px;
192
+ --_rs-typography-ol-list-li-padding-left:32px;
193
+ --_rs-typography-list-li-margin-top-from-text:24px;
194
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
195
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
196
+ --_rs-typography-link-border-bottom-width-from-text:1px;
197
+ }
198
+ @media screen and (max-width: 640px){
199
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
200
+ --_rs-typography-list-li-margin-top-from-text:16px;
201
+ }
202
+ }
203
+ & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__group-header"]{
204
+ --_rs-menu-gh-vertical-padding:12px;
205
+ --_rs-menu-gh-horizontal-padding:16px;
206
+ --_rs-typography-letter-spacing:normal;
207
+ --_rs-typography-text-transform:initial;
208
+ --_rs-typography-font-variant-numeric:initial;
209
+ --_rs-typography-font-family:var(
210
+ --rs-font-family-ui,
211
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
212
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
213
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
214
+ );
215
+ --_rs-typography-font-size:var(--rs-h3-font-size, 20px);
216
+ --_rs-typography-font-weight:var(
217
+ --rs-font-weight-semi-bold,
218
+ 600
219
+ );
220
+ --_rs-typography-line-height:var(--rs-h3-line-height, 28px);
221
+ --_rs-typography-base-color:var(
222
+ --rs-color-hard,
223
+ 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))
224
+ );
225
+ --_rs-typography-text-auto-offset:0;
226
+ --_rs-typography-ul-list-li-padding-left:initial;
227
+ --_rs-typography-ol-list-li-padding-left:initial;
228
+ --_rs-typography-list-li-margin-top-from-text:initial;
229
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
230
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
231
+ --_rs-typography-link-border-bottom-width-from-text:2px;
232
+ }
233
+ & [data-rs-internal="checkbox__control"]{
234
+ --_rs-checkbox-ci-mark-s-display:none;
235
+ --_rs-checkbox-ci-mark-m-display:none;
236
+ --_rs-checkbox-ci-mark-l-display:initial;
237
+ --_rs-checkbox-ci-size:20px;
238
+ --_rs-checkbox-ci-shadow-size:4px;
239
+ --_rs-checkbox-ci-indeterminate-icon-border-width:9px 3px;
240
+ }
241
+ }
242
+ @define-mixin rs-checkbox-list-mode-classic{
243
+ & [data-rs-internal="checkbox__control"]{
244
+ --_rs-checkbox-ci-mark-color:#FFFFFF;
245
+ --_rs-checkbox-ci-indeterminate-icon-border-color:var(--_rs-color-primary);
246
+ --_rs-checkbox-ci-indeterminate-icon-background-color:#FFFFFF;
247
+ --_rs-checkbox-ci-checked-icon-border-color:var(--_rs-color-primary);
248
+ --_rs-checkbox-ci-hover-icon-box-shadow:var(--_rs-color-primary-t-fog);
249
+ }
250
+ }
251
+ @define-mixin rs-checkbox-list-mode-rock{
252
+ & [data-rs-internal="checkbox__control"]{
253
+ --_rs-checkbox-ci-mark-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));
254
+ --_rs-checkbox-ci-indeterminate-icon-border-color:rgb(
255
+ 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)
256
+ );
257
+ --_rs-checkbox-ci-indeterminate-icon-background-color:rgb(
258
+ 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)
259
+ );
260
+ --_rs-checkbox-ci-checked-icon-border-color:rgb(
261
+ 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)
262
+ );
263
+ --_rs-checkbox-ci-hover-icon-box-shadow:rgba(
264
+ 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),
265
+ 0.1
266
+ );
267
+ }
268
+ }
269
+ @define-mixin rs-checkbox-size-s{
270
+ &[class][class]{
271
+ --_rs-menu-mi-icon-offset:8px;
272
+ --_rs-menu-mi-vertical-padding:6px;
273
+ --_rs-menu-mi-horizontal-padding:8px;
274
+ --_rs-typography-letter-spacing:0.0045em;
275
+ --_rs-typography-text-transform:initial;
276
+ --_rs-typography-font-variant-numeric:initial;
277
+ --_rs-typography-font-family:var(
278
+ --rs-font-family-ui,
279
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
280
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
281
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
282
+ );
283
+ --_rs-typography-font-size:var(--rs-text-3-font-size, 13px);
284
+ --_rs-typography-font-weight:var(
285
+ --rs-font-weight-regular,
286
+ 400
287
+ );
288
+ --_rs-typography-line-height:var(
289
+ --rs-text-3-line-height,
290
+ 20px
291
+ );
292
+ --_rs-typography-base-color:var(
293
+ --_rs-typography-hardness-color,
294
+ var(
295
+ --rs-color-average,
296
+ 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)
297
+ )
298
+ );
299
+ --_rs-typography-text-auto-offset:8px;
300
+ --_rs-typography-ul-list-li-padding-left:28px;
301
+ --_rs-typography-ol-list-li-padding-left:21px;
302
+ --_rs-typography-list-li-margin-top-from-text:8px;
303
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
304
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
305
+ --_rs-typography-link-border-bottom-width-from-text:1px;
306
+ }
307
+ & [data-rs-internal="checkbox__control"]{
308
+ --_rs-checkbox-ci-mark-s-display:initial;
309
+ --_rs-checkbox-ci-mark-m-display:none;
310
+ --_rs-checkbox-ci-mark-l-display:none;
311
+ --_rs-checkbox-ci-size:14px;
312
+ --_rs-checkbox-ci-shadow-size:3px;
313
+ --_rs-checkbox-ci-indeterminate-icon-border-width:6px 3px;
314
+ }
315
+ }
316
+ @define-mixin rs-checkbox-size-m{
317
+ &[class][class]{
318
+ --_rs-menu-mi-icon-offset:8px;
319
+ --_rs-menu-mi-vertical-padding:8px;
320
+ --_rs-menu-mi-horizontal-padding:16px;
321
+ --_rs-typography-letter-spacing:0.0015em;
322
+ --_rs-typography-text-transform:initial;
323
+ --_rs-typography-font-variant-numeric:initial;
324
+ --_rs-typography-font-family:var(
325
+ --rs-font-family-ui,
326
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
327
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
328
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
329
+ );
330
+ --_rs-typography-font-size:var(--rs-text-2-font-size, 16px);
331
+ --_rs-typography-font-weight:var(
332
+ --rs-font-weight-regular,
333
+ 400
334
+ );
335
+ --_rs-typography-line-height:var(
336
+ --rs-text-2-line-height,
337
+ 24px
338
+ );
339
+ --_rs-typography-base-color:var(
340
+ --_rs-typography-hardness-color,
341
+ var(
342
+ --rs-color-average,
343
+ 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)
344
+ )
345
+ );
346
+ --_rs-typography-text-auto-offset:16px;
347
+ --_rs-typography-ul-list-li-padding-left:22px;
348
+ --_rs-typography-ol-list-li-padding-left:26px;
349
+ --_rs-typography-list-li-margin-top-from-text:16px;
350
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
351
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
352
+ --_rs-typography-link-border-bottom-width-from-text:1px;
353
+ }
354
+ @media screen and (max-width: 640px){
355
+ &[class][class]{
356
+ --_rs-typography-list-li-margin-top-from-text:12px;
357
+ }
358
+ }
359
+ & [data-rs-internal="checkbox__control"]{
360
+ --_rs-checkbox-ci-mark-s-display:none;
361
+ --_rs-checkbox-ci-mark-m-display:initial;
362
+ --_rs-checkbox-ci-mark-l-display:none;
363
+ --_rs-checkbox-ci-size:18px;
364
+ --_rs-checkbox-ci-shadow-size:3px;
365
+ --_rs-checkbox-ci-indeterminate-icon-border-width:8px 3px;
366
+ }
367
+ }
368
+ @define-mixin rs-checkbox-size-l{
369
+ &[class][class]{
370
+ --_rs-menu-mi-icon-offset:16px;
371
+ --_rs-menu-mi-vertical-padding:12px;
372
+ --_rs-menu-mi-horizontal-padding:16px;
373
+ --_rs-typography-letter-spacing:normal;
374
+ --_rs-typography-text-transform:initial;
375
+ --_rs-typography-font-variant-numeric:initial;
376
+ --_rs-typography-font-family:var(
377
+ --rs-font-family-ui,
378
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
379
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
380
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
381
+ );
382
+ --_rs-typography-font-size:var(--rs-text-1-font-size, 20px);
383
+ --_rs-typography-font-weight:var(
384
+ --rs-font-weight-regular,
385
+ 400
386
+ );
387
+ --_rs-typography-line-height:var(
388
+ --rs-text-1-line-height,
389
+ 28px
390
+ );
391
+ --_rs-typography-base-color:var(
392
+ --_rs-typography-hardness-color,
393
+ var(
394
+ --rs-color-average,
395
+ 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)
396
+ )
397
+ );
398
+ --_rs-typography-text-auto-offset:32px;
399
+ --_rs-typography-ul-list-li-padding-left:26px;
400
+ --_rs-typography-ol-list-li-padding-left:32px;
401
+ --_rs-typography-list-li-margin-top-from-text:24px;
402
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
403
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
404
+ --_rs-typography-link-border-bottom-width-from-text:1px;
405
+ }
406
+ @media screen and (max-width: 640px){
407
+ &[class][class]{
408
+ --_rs-typography-list-li-margin-top-from-text:16px;
409
+ }
410
+ }
411
+ & [data-rs-internal="checkbox__control"]{
412
+ --_rs-checkbox-ci-mark-s-display:none;
413
+ --_rs-checkbox-ci-mark-m-display:none;
414
+ --_rs-checkbox-ci-mark-l-display:initial;
415
+ --_rs-checkbox-ci-size:20px;
416
+ --_rs-checkbox-ci-shadow-size:4px;
417
+ --_rs-checkbox-ci-indeterminate-icon-border-width:9px 3px;
418
+ }
419
+ }
420
+ @define-mixin rs-checkbox-mode-classic{
421
+ & [data-rs-internal="checkbox__control"]{
422
+ --_rs-checkbox-ci-mark-color:#FFFFFF;
423
+ --_rs-checkbox-ci-indeterminate-icon-border-color:var(--_rs-color-primary);
424
+ --_rs-checkbox-ci-indeterminate-icon-background-color:#FFFFFF;
425
+ --_rs-checkbox-ci-checked-icon-border-color:var(--_rs-color-primary);
426
+ --_rs-checkbox-ci-hover-icon-box-shadow:var(--_rs-color-primary-t-fog);
427
+ }
428
+ }
429
+ @define-mixin rs-checkbox-mode-rock{
430
+ & [data-rs-internal="checkbox__control"]{
431
+ --_rs-checkbox-ci-mark-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));
432
+ --_rs-checkbox-ci-indeterminate-icon-border-color:rgb(
433
+ 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)
434
+ );
435
+ --_rs-checkbox-ci-indeterminate-icon-background-color:rgb(
436
+ 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)
437
+ );
438
+ --_rs-checkbox-ci-checked-icon-border-color:rgb(
439
+ 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)
440
+ );
441
+ --_rs-checkbox-ci-hover-icon-box-shadow:rgba(
442
+ 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),
443
+ 0.1
444
+ );
445
+ }
446
+ }
447
+ @define-mixin rs-checkbox-control-size-s{
448
+ &[class]{
449
+ --_rs-checkbox-ci-mark-s-display:initial;
450
+ --_rs-checkbox-ci-mark-m-display:none;
451
+ --_rs-checkbox-ci-mark-l-display:none;
452
+ --_rs-checkbox-ci-size:14px;
453
+ --_rs-checkbox-ci-shadow-size:3px;
454
+ --_rs-checkbox-ci-indeterminate-icon-border-width:6px 3px;
455
+ }
456
+ }
457
+ @define-mixin rs-checkbox-control-size-m{
458
+ &[class]{
459
+ --_rs-checkbox-ci-mark-s-display:none;
460
+ --_rs-checkbox-ci-mark-m-display:initial;
461
+ --_rs-checkbox-ci-mark-l-display:none;
462
+ --_rs-checkbox-ci-size:18px;
463
+ --_rs-checkbox-ci-shadow-size:3px;
464
+ --_rs-checkbox-ci-indeterminate-icon-border-width:8px 3px;
465
+ }
466
+ }
467
+ @define-mixin rs-checkbox-control-size-l{
468
+ &[class]{
469
+ --_rs-checkbox-ci-mark-s-display:none;
470
+ --_rs-checkbox-ci-mark-m-display:none;
471
+ --_rs-checkbox-ci-mark-l-display:initial;
472
+ --_rs-checkbox-ci-size:20px;
473
+ --_rs-checkbox-ci-shadow-size:4px;
474
+ --_rs-checkbox-ci-indeterminate-icon-border-width:9px 3px;
475
+ }
476
+ }
477
+ @define-mixin rs-checkbox-control-mode-classic{
478
+ &[class]{
479
+ --_rs-checkbox-ci-mark-color:#FFFFFF;
480
+ --_rs-checkbox-ci-indeterminate-icon-border-color:var(--_rs-color-primary);
481
+ --_rs-checkbox-ci-indeterminate-icon-background-color:#FFFFFF;
482
+ --_rs-checkbox-ci-checked-icon-border-color:var(--_rs-color-primary);
483
+ --_rs-checkbox-ci-hover-icon-box-shadow:var(--_rs-color-primary-t-fog);
484
+ }
485
+ }
486
+ @define-mixin rs-checkbox-control-mode-rock{
487
+ &[class]{
488
+ --_rs-checkbox-ci-mark-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));
489
+ --_rs-checkbox-ci-indeterminate-icon-border-color:rgb(
490
+ 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)
491
+ );
492
+ --_rs-checkbox-ci-indeterminate-icon-background-color:rgb(
493
+ 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)
494
+ );
495
+ --_rs-checkbox-ci-checked-icon-border-color:rgb(
496
+ 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)
497
+ );
498
+ --_rs-checkbox-ci-hover-icon-box-shadow:rgba(
499
+ 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),
500
+ 0.1
501
+ );
502
+ }
503
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/checkbox",
3
- "version": "0.6.4",
3
+ "version": "0.7.0",
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.9.8",
18
+ "@rescui/menu": "^0.10.0",
19
19
  "classnames": "^2.2.6",
20
20
  "core-js": "^3.9.1"
21
21
  },
@@ -25,14 +25,15 @@
25
25
  "react": ">=16.8.0 <19"
26
26
  },
27
27
  "devDependencies": {
28
- "@rescui/colors": "^0.1.11",
29
- "@rescui/postcss-preset-library": "^0.1.1",
30
- "@rescui/scripts": "^0.2.3",
31
- "@rescui/typography": "^0.15.0",
28
+ "@rescui/colors": "^0.2.0",
29
+ "@rescui/postcss-preset-library": "^0.2.0",
30
+ "@rescui/scripts": "^0.3.0",
31
+ "@rescui/typography": "^0.16.0",
32
32
  "@rescui/visual-regression": "^0.1.1"
33
33
  },
34
34
  "scripts": {
35
- "build": "rescui-scripts build"
35
+ "build": "rescui-scripts build && yarn run build-pcss-api",
36
+ "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
36
37
  },
37
- "gitHead": "e21b6f80037993b094ceaff022db6d4cd176a88d"
38
+ "gitHead": "51da8a7188f4c558c563065a4ff4ef5c8e74994c"
38
39
  }