@rescui/checkbox 0.7.3 → 0.8.1

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.
@@ -1,4 +1,35 @@
1
1
  @define-mixin rs-checkbox-list-size-s{
2
+ &[class] [data-rs-internal='checkbox-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-color-hard,
20
+ 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))
21
+ );
22
+ --_rs-typography-text-auto-offset:0;
23
+ --_rs-typography-ul-list-li-padding-left:initial;
24
+ --_rs-typography-ol-list-li-padding-left:initial;
25
+ --_rs-typography-list-li-margin-top-from-text:initial;
26
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
27
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
28
+ --_rs-typography-link-border-bottom-width-from-text:2px;
29
+ }
30
+ &[class] [data-rs-internal='checkbox-list__error-icon']:not(html){
31
+ --_rs-icons-height:20px;
32
+ }
2
33
  & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
3
34
  --_rs-menu-mi-icon-offset:8px;
4
35
  --_rs-menu-mi-vertical-padding:6px;
@@ -65,6 +96,37 @@
65
96
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
66
97
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
67
98
  --_rs-typography-link-border-bottom-width-from-text:2px;
99
+ }
100
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-message']{
101
+ --_rs-typography-letter-spacing:normal;
102
+ --_rs-typography-text-transform:initial;
103
+ --_rs-typography-font-variant-numeric:initial;
104
+ --_rs-typography-font-family:var(
105
+ --rs-font-family-ui,
106
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
107
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
108
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
109
+ );
110
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
111
+ --_rs-typography-font-weight:var(
112
+ --rs-font-weight-semi-bold,
113
+ 600
114
+ );
115
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
116
+ --_rs-typography-base-color:var(
117
+ --rs-color-hard,
118
+ 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))
119
+ );
120
+ --_rs-typography-text-auto-offset:0;
121
+ --_rs-typography-ul-list-li-padding-left:initial;
122
+ --_rs-typography-ol-list-li-padding-left:initial;
123
+ --_rs-typography-list-li-margin-top-from-text:initial;
124
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
125
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
126
+ --_rs-typography-link-border-bottom-width-from-text:2px;
127
+ }
128
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-icon']:not(html){
129
+ --_rs-icons-height:20px;
68
130
  }
69
131
  & [data-rs-internal="checkbox__control"]{
70
132
  --_rs-checkbox-ci-mark-s-display:initial;
@@ -76,6 +138,37 @@
76
138
  }
77
139
  }
78
140
  @define-mixin rs-checkbox-list-size-m{
141
+ &[class] [data-rs-internal='checkbox-list__error-message']{
142
+ --_rs-typography-letter-spacing:normal;
143
+ --_rs-typography-text-transform:initial;
144
+ --_rs-typography-font-variant-numeric:initial;
145
+ --_rs-typography-font-family:var(
146
+ --rs-font-family-ui,
147
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
148
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
149
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
150
+ );
151
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
152
+ --_rs-typography-font-weight:var(
153
+ --rs-font-weight-semi-bold,
154
+ 600
155
+ );
156
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
157
+ --_rs-typography-base-color:var(
158
+ --rs-color-hard,
159
+ 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))
160
+ );
161
+ --_rs-typography-text-auto-offset:0;
162
+ --_rs-typography-ul-list-li-padding-left:initial;
163
+ --_rs-typography-ol-list-li-padding-left:initial;
164
+ --_rs-typography-list-li-margin-top-from-text:initial;
165
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
166
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
167
+ --_rs-typography-link-border-bottom-width-from-text:2px;
168
+ }
169
+ &[class] [data-rs-internal='checkbox-list__error-icon']:not(html){
170
+ --_rs-icons-height:20px;
171
+ }
79
172
  & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
80
173
  --_rs-menu-mi-icon-offset:8px;
81
174
  --_rs-menu-mi-vertical-padding:8px;
@@ -147,6 +240,37 @@
147
240
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
148
241
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
149
242
  --_rs-typography-link-border-bottom-width-from-text:2px;
243
+ }
244
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-message']{
245
+ --_rs-typography-letter-spacing:normal;
246
+ --_rs-typography-text-transform:initial;
247
+ --_rs-typography-font-variant-numeric:initial;
248
+ --_rs-typography-font-family:var(
249
+ --rs-font-family-ui,
250
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
251
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
252
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
253
+ );
254
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
255
+ --_rs-typography-font-weight:var(
256
+ --rs-font-weight-semi-bold,
257
+ 600
258
+ );
259
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
260
+ --_rs-typography-base-color:var(
261
+ --rs-color-hard,
262
+ 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))
263
+ );
264
+ --_rs-typography-text-auto-offset:0;
265
+ --_rs-typography-ul-list-li-padding-left:initial;
266
+ --_rs-typography-ol-list-li-padding-left:initial;
267
+ --_rs-typography-list-li-margin-top-from-text:initial;
268
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
269
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
270
+ --_rs-typography-link-border-bottom-width-from-text:2px;
271
+ }
272
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-icon']:not(html){
273
+ --_rs-icons-height:20px;
150
274
  }
151
275
  & [data-rs-internal="checkbox__control"]{
152
276
  --_rs-checkbox-ci-mark-s-display:none;
@@ -158,6 +282,37 @@
158
282
  }
159
283
  }
160
284
  @define-mixin rs-checkbox-list-size-l{
285
+ &[class] [data-rs-internal='checkbox-list__error-message']{
286
+ --_rs-typography-letter-spacing:normal;
287
+ --_rs-typography-text-transform:initial;
288
+ --_rs-typography-font-variant-numeric:initial;
289
+ --_rs-typography-font-family:var(
290
+ --rs-font-family-ui,
291
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
292
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
293
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
294
+ );
295
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
296
+ --_rs-typography-font-weight:var(
297
+ --rs-font-weight-semi-bold,
298
+ 600
299
+ );
300
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
301
+ --_rs-typography-base-color:var(
302
+ --rs-color-hard,
303
+ 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))
304
+ );
305
+ --_rs-typography-text-auto-offset:0;
306
+ --_rs-typography-ul-list-li-padding-left:initial;
307
+ --_rs-typography-ol-list-li-padding-left:initial;
308
+ --_rs-typography-list-li-margin-top-from-text:initial;
309
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
310
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
311
+ --_rs-typography-link-border-bottom-width-from-text:2px;
312
+ }
313
+ &[class] [data-rs-internal='checkbox-list__error-icon']:not(html){
314
+ --_rs-icons-height:24px;
315
+ }
161
316
  & [data-rs-internal="checkbox__menu"] [data-rs-internal="menu__menu-item"]{
162
317
  --_rs-menu-mi-icon-offset:16px;
163
318
  --_rs-menu-mi-vertical-padding:12px;
@@ -229,6 +384,37 @@
229
384
  --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
230
385
  --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
231
386
  --_rs-typography-link-border-bottom-width-from-text:2px;
387
+ }
388
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-message']{
389
+ --_rs-typography-letter-spacing:normal;
390
+ --_rs-typography-text-transform:initial;
391
+ --_rs-typography-font-variant-numeric:initial;
392
+ --_rs-typography-font-family:var(
393
+ --rs-font-family-ui,
394
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
395
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
396
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
397
+ );
398
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
399
+ --_rs-typography-font-weight:var(
400
+ --rs-font-weight-semi-bold,
401
+ 600
402
+ );
403
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
404
+ --_rs-typography-base-color:var(
405
+ --rs-color-hard,
406
+ 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))
407
+ );
408
+ --_rs-typography-text-auto-offset:0;
409
+ --_rs-typography-ul-list-li-padding-left:initial;
410
+ --_rs-typography-ol-list-li-padding-left:initial;
411
+ --_rs-typography-list-li-margin-top-from-text:initial;
412
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
413
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
414
+ --_rs-typography-link-border-bottom-width-from-text:2px;
415
+ }
416
+ & [data-rs-internal="checkbox"] [data-rs-internal='checkbox__error-icon']:not(html){
417
+ --_rs-icons-height:24px;
232
418
  }
233
419
  & [data-rs-internal="checkbox__control"]{
234
420
  --_rs-checkbox-ci-mark-s-display:none;
@@ -267,7 +453,38 @@
267
453
  }
268
454
  }
269
455
  @define-mixin rs-checkbox-size-s{
270
- &[class][class]{
456
+ &[class] [data-rs-internal='checkbox__error-message']{
457
+ --_rs-typography-letter-spacing:normal;
458
+ --_rs-typography-text-transform:initial;
459
+ --_rs-typography-font-variant-numeric:initial;
460
+ --_rs-typography-font-family:var(
461
+ --rs-font-family-ui,
462
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
463
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
464
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
465
+ );
466
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
467
+ --_rs-typography-font-weight:var(
468
+ --rs-font-weight-semi-bold,
469
+ 600
470
+ );
471
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
472
+ --_rs-typography-base-color:var(
473
+ --rs-color-hard,
474
+ 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))
475
+ );
476
+ --_rs-typography-text-auto-offset:0;
477
+ --_rs-typography-ul-list-li-padding-left:initial;
478
+ --_rs-typography-ol-list-li-padding-left:initial;
479
+ --_rs-typography-list-li-margin-top-from-text:initial;
480
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
481
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
482
+ --_rs-typography-link-border-bottom-width-from-text:2px;
483
+ }
484
+ &[class] [data-rs-internal='checkbox__error-icon']:not(html){
485
+ --_rs-icons-height:20px;
486
+ }
487
+ & [data-rs-internal="menu__menu-item"][class]{
271
488
  --_rs-menu-mi-icon-offset:8px;
272
489
  --_rs-menu-mi-vertical-padding:6px;
273
490
  --_rs-menu-mi-horizontal-padding:8px;
@@ -314,7 +531,38 @@
314
531
  }
315
532
  }
316
533
  @define-mixin rs-checkbox-size-m{
317
- &[class][class]{
534
+ &[class] [data-rs-internal='checkbox__error-message']{
535
+ --_rs-typography-letter-spacing:normal;
536
+ --_rs-typography-text-transform:initial;
537
+ --_rs-typography-font-variant-numeric:initial;
538
+ --_rs-typography-font-family:var(
539
+ --rs-font-family-ui,
540
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
541
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
542
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
543
+ );
544
+ --_rs-typography-font-size:var(--rs-h5-font-size, 13px);
545
+ --_rs-typography-font-weight:var(
546
+ --rs-font-weight-semi-bold,
547
+ 600
548
+ );
549
+ --_rs-typography-line-height:var(--rs-h5-line-height, 20px);
550
+ --_rs-typography-base-color:var(
551
+ --rs-color-hard,
552
+ 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))
553
+ );
554
+ --_rs-typography-text-auto-offset:0;
555
+ --_rs-typography-ul-list-li-padding-left:initial;
556
+ --_rs-typography-ol-list-li-padding-left:initial;
557
+ --_rs-typography-list-li-margin-top-from-text:initial;
558
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
559
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
560
+ --_rs-typography-link-border-bottom-width-from-text:2px;
561
+ }
562
+ &[class] [data-rs-internal='checkbox__error-icon']:not(html){
563
+ --_rs-icons-height:20px;
564
+ }
565
+ & [data-rs-internal="menu__menu-item"][class]{
318
566
  --_rs-menu-mi-icon-offset:8px;
319
567
  --_rs-menu-mi-vertical-padding:8px;
320
568
  --_rs-menu-mi-horizontal-padding:16px;
@@ -352,7 +600,7 @@
352
600
  --_rs-typography-link-border-bottom-width-from-text:1px;
353
601
  }
354
602
  @media screen and (max-width: 640px){
355
- &[class][class]{
603
+ & [data-rs-internal="menu__menu-item"][class]{
356
604
  --_rs-typography-list-li-margin-top-from-text:12px;
357
605
  }
358
606
  }
@@ -366,7 +614,38 @@
366
614
  }
367
615
  }
368
616
  @define-mixin rs-checkbox-size-l{
369
- &[class][class]{
617
+ &[class] [data-rs-internal='checkbox__error-message']{
618
+ --_rs-typography-letter-spacing:normal;
619
+ --_rs-typography-text-transform:initial;
620
+ --_rs-typography-font-variant-numeric:initial;
621
+ --_rs-typography-font-family:var(
622
+ --rs-font-family-ui,
623
+ var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system,
624
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
625
+ 'Droid Sans', 'Helvetica Neue', Arial, sans-serif)
626
+ );
627
+ --_rs-typography-font-size:var(--rs-h4-font-size, 16px);
628
+ --_rs-typography-font-weight:var(
629
+ --rs-font-weight-semi-bold,
630
+ 600
631
+ );
632
+ --_rs-typography-line-height:var(--rs-h4-line-height, 24px);
633
+ --_rs-typography-base-color:var(
634
+ --rs-color-hard,
635
+ 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))
636
+ );
637
+ --_rs-typography-text-auto-offset:0;
638
+ --_rs-typography-ul-list-li-padding-left:initial;
639
+ --_rs-typography-ol-list-li-padding-left:initial;
640
+ --_rs-typography-list-li-margin-top-from-text:initial;
641
+ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;
642
+ --_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
643
+ --_rs-typography-link-border-bottom-width-from-text:2px;
644
+ }
645
+ &[class] [data-rs-internal='checkbox__error-icon']:not(html){
646
+ --_rs-icons-height:24px;
647
+ }
648
+ & [data-rs-internal="menu__menu-item"][class]{
370
649
  --_rs-menu-mi-icon-offset:16px;
371
650
  --_rs-menu-mi-vertical-padding:12px;
372
651
  --_rs-menu-mi-horizontal-padding:16px;
@@ -404,7 +683,7 @@
404
683
  --_rs-typography-link-border-bottom-width-from-text:1px;
405
684
  }
406
685
  @media screen and (max-width: 640px){
407
- &[class][class]{
686
+ & [data-rs-internal="menu__menu-item"][class]{
408
687
  --_rs-typography-list-li-margin-top-from-text:16px;
409
688
  }
410
689
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/checkbox",
3
- "version": "0.7.3",
3
+ "version": "0.8.1",
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.3",
18
+ "@rescui/menu": "^0.10.5",
19
19
  "classnames": "^2.2.6",
20
20
  "core-js": "^3.9.1"
21
21
  },
@@ -25,10 +25,10 @@
25
25
  "react": ">=16.8.0 <19"
26
26
  },
27
27
  "devDependencies": {
28
- "@rescui/colors": "^0.2.1",
28
+ "@rescui/colors": "^0.2.3",
29
29
  "@rescui/postcss-preset-library": "^0.2.1",
30
- "@rescui/scripts": "^0.3.1",
31
- "@rescui/typography": "^0.16.3",
30
+ "@rescui/scripts": "^0.3.3",
31
+ "@rescui/typography": "^0.17.0",
32
32
  "@rescui/visual-regression": "^0.1.2"
33
33
  },
34
34
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
37
37
  },
38
38
  "nx": {},
39
- "gitHead": "950fab43f95d8788d3b4a266957a73233c5ea72e"
39
+ "gitHead": "b422496bacb5df4a601008c646abfb08cebe461c"
40
40
  }