@rescui/icons 1.8.2 → 1.8.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14

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,4 +1,4 @@
1
- ._icon_18p83uf_4{
1
+ ._icon_19upof9_4{
2
2
  --_rs-theme-dark:var(
3
3
  --_rs-internal-force-theme-dark-consult-rescui-before-using,
4
4
  var(--rs-theme-dark, 0)
@@ -8,7 +8,7 @@
8
8
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
9
9
  }
10
10
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
11
- ._icon_18p83uf_4{
11
+ ._icon_19upof9_4{
12
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
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
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)));
@@ -17,7 +17,7 @@
17
17
  }
18
18
  }
19
19
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
20
- ._icon_18p83uf_4{
20
+ ._icon_19upof9_4{
21
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
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
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));
@@ -25,30 +25,30 @@
25
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
26
  }
27
27
  }
28
- ._icon_18p83uf_4{
28
+ ._icon_19upof9_4{
29
29
 
30
30
  fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
31
31
 
32
32
  width:var(--rs-icons-width, auto);
33
33
  height:var(--rs-icons-height, var(--_rs-icons-height));
34
34
  }
35
- ._sizeXS_18p83uf_14{
35
+ ._sizeXS_19upof9_14{
36
36
  --_rs-icons-height:16px;
37
37
  }
38
- ._sizeS_18p83uf_18{
38
+ ._sizeS_19upof9_18{
39
39
  --_rs-icons-height:20px;
40
40
  }
41
- ._sizeM_18p83uf_22{
41
+ ._sizeM_19upof9_22{
42
42
  --_rs-icons-height:24px;
43
43
  }
44
- ._sizeL_18p83uf_26{
44
+ ._sizeL_19upof9_26{
45
45
  --_rs-icons-height:28px;
46
46
  }
47
- ._light_18p83uf_30{
47
+ ._light_19upof9_30{
48
48
  --rs-theme-dark:0;
49
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
50
  }
51
- ._dark_18p83uf_34{
51
+ ._dark_19upof9_34{
52
52
  --rs-theme-dark:1;
53
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
54
  }
@@ -60,39 +60,39 @@
60
60
  transform:rotate(360deg);
61
61
  }
62
62
  }
63
- ._allVariants_18p83uf_48{
63
+ ._allVariants_19upof9_48{
64
64
  aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
65
65
  container:rs-icon / size;
66
66
  }
67
- ._variant16_18p83uf_53,
68
- ._variant20_18p83uf_54,
69
- ._variant24_18p83uf_55{
67
+ ._variant16_19upof9_53,
68
+ ._variant20_19upof9_54,
69
+ ._variant24_19upof9_55{
70
70
  display:none;
71
71
  }
72
- ._variant28_18p83uf_58{
72
+ ._variant28_19upof9_58{
73
73
  display:block;
74
74
  }
75
75
  @container rs-icon (max-height: 24px){
76
- ._variant24_18p83uf_55{
76
+ ._variant24_19upof9_55{
77
77
  display:block;
78
78
  }
79
- ._variant28_18p83uf_58{
79
+ ._variant28_19upof9_58{
80
80
  display:none;
81
81
  }
82
82
  }
83
83
  @container rs-icon (max-height: 20px){
84
- ._variant20_18p83uf_54{
84
+ ._variant20_19upof9_54{
85
85
  display:block;
86
86
  }
87
- ._variant24_18p83uf_55{
87
+ ._variant24_19upof9_55{
88
88
  display:none;
89
89
  }
90
90
  }
91
91
  @container rs-icon (max-height: 16px){
92
- ._variant16_18p83uf_53{
92
+ ._variant16_19upof9_53{
93
93
  display:block;
94
94
  }
95
- ._variant20_18p83uf_54{
95
+ ._variant20_19upof9_54{
96
96
  display:none;
97
97
  }
98
98
  }
package/lib/index.css.js CHANGED
@@ -1,15 +1,15 @@
1
1
  export default {
2
- "icon": "_icon_18p83uf_4",
3
- "sizeXS": "_sizeXS_18p83uf_14",
4
- "sizeS": "_sizeS_18p83uf_18",
5
- "sizeM": "_sizeM_18p83uf_22",
6
- "sizeL": "_sizeL_18p83uf_26",
7
- "light": "_light_18p83uf_30",
8
- "dark": "_dark_18p83uf_34",
9
- "allVariants": "_allVariants_18p83uf_48",
10
- "variant16": "_variant16_18p83uf_53",
11
- "variant20": "_variant20_18p83uf_54",
12
- "variant24": "_variant24_18p83uf_55",
13
- "variant28": "_variant28_18p83uf_58"
2
+ "icon": "_icon_19upof9_4",
3
+ "sizeXS": "_sizeXS_19upof9_14",
4
+ "sizeS": "_sizeS_19upof9_18",
5
+ "sizeM": "_sizeM_19upof9_22",
6
+ "sizeL": "_sizeL_19upof9_26",
7
+ "light": "_light_19upof9_30",
8
+ "dark": "_dark_19upof9_34",
9
+ "allVariants": "_allVariants_19upof9_48",
10
+ "variant16": "_variant16_19upof9_53",
11
+ "variant20": "_variant20_19upof9_54",
12
+ "variant24": "_variant24_19upof9_55",
13
+ "variant28": "_variant28_19upof9_58"
14
14
  };
15
15
  //# sourceMappingURL=index.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.css.js","names":[],"sources":["index.css.js"],"sourcesContent":["export default {\"icon\":\"_icon_18p83uf_4\",\"sizeXS\":\"_sizeXS_18p83uf_14\",\"sizeS\":\"_sizeS_18p83uf_18\",\"sizeM\":\"_sizeM_18p83uf_22\",\"sizeL\":\"_sizeL_18p83uf_26\",\"light\":\"_light_18p83uf_30\",\"dark\":\"_dark_18p83uf_34\",\"allVariants\":\"_allVariants_18p83uf_48\",\"variant16\":\"_variant16_18p83uf_53\",\"variant20\":\"_variant20_18p83uf_54\",\"variant24\":\"_variant24_18p83uf_55\",\"variant28\":\"_variant28_18p83uf_58\"}"],"mappings":"AAAA,eAAe;EAAC,QAAO,iBAAR;EAA0B,UAAS,oBAAnC;EAAwD,SAAQ,mBAAhE;EAAoF,SAAQ,mBAA5F;EAAgH,SAAQ,mBAAxH;EAA4I,SAAQ,mBAApJ;EAAwK,QAAO,kBAA/K;EAAkM,eAAc,yBAAhN;EAA0O,aAAY,uBAAtP;EAA8Q,aAAY,uBAA1R;EAAkT,aAAY,uBAA9T;EAAsV,aAAY;AAAlW,CAAf"}
1
+ {"version":3,"file":"index.css.js","names":[],"sources":["index.css.js"],"sourcesContent":["export default {\"icon\":\"_icon_19upof9_4\",\"sizeXS\":\"_sizeXS_19upof9_14\",\"sizeS\":\"_sizeS_19upof9_18\",\"sizeM\":\"_sizeM_19upof9_22\",\"sizeL\":\"_sizeL_19upof9_26\",\"light\":\"_light_19upof9_30\",\"dark\":\"_dark_19upof9_34\",\"allVariants\":\"_allVariants_19upof9_48\",\"variant16\":\"_variant16_19upof9_53\",\"variant20\":\"_variant20_19upof9_54\",\"variant24\":\"_variant24_19upof9_55\",\"variant28\":\"_variant28_19upof9_58\"}"],"mappings":"AAAA,eAAe;EAAC,QAAO,iBAAR;EAA0B,UAAS,oBAAnC;EAAwD,SAAQ,mBAAhE;EAAoF,SAAQ,mBAA5F;EAAgH,SAAQ,mBAAxH;EAA4I,SAAQ,mBAApJ;EAAwK,QAAO,kBAA/K;EAAkM,eAAc,yBAAhN;EAA0O,aAAY,uBAAtP;EAA8Q,aAAY,uBAA1R;EAAkT,aAAY,uBAA9T;EAAsV,aAAY;AAAlW,CAAf"}
@@ -523,45 +523,30 @@ render(<Benchmark />);
523
523
 
524
524
  Must be used with `data-render-all-sizes` prop
525
525
 
526
- Instead of separate classes, it may be a single class with `@media` queries inside:
526
+ Use the controls to see the effect at different viewport widths.
527
527
 
528
528
  ```tsx
529
529
  import { PersonOutlineIcon } from '@rescui/icons';
530
530
 
531
- const MyIcon = ({ className }) => {
531
+ const MyIcon = () => {
532
532
  return (
533
- <div style={{ padding: 12, backgroundColor: 'var(--rs-color-black-t5)' }}>
534
- <PersonOutlineIcon className={className} size="m" data-render-all-sizes />
535
- </div>
533
+ <PersonOutlineIcon className="my-icon" size="m" data-render-all-sizes />
536
534
  );
537
535
  };
538
536
 
539
- render(
540
- <div style={{ display: 'flex', flexDirection: 'column', gap: 24 }}>
541
- <div>
542
- <p>Default:</p>
543
- <MyIcon />
544
- </div>
545
- <div>
546
- <p>Var1:</p>
547
- <MyIcon className={`my-icon-var-1`} />
548
- </div>
549
- <div>
550
- <p>Var1 & Var2 combined:</p>
551
- <MyIcon className={`my-icon-var-1 my-icon-var-2`} />
552
- </div>
553
- </div>
554
- );
537
+ render(<MyIcon />);
555
538
  ```
556
539
 
557
540
  ```postcss attached
558
541
  @import '@rescui/icons/lib/public-api.p.css';
559
542
 
560
- .my-icon-var-1 {
561
- @mixin rs-icon-size-l;
562
- }
563
- .my-icon-var-2 {
564
- @mixin rs-icon-size-s;
543
+ .my-icon {
544
+ @media (max-width: 640px) {
545
+ @mixin rs-icon-size-l;
546
+ }
547
+ @media (max-width: 500px) {
548
+ @mixin rs-icon-size-s;
549
+ }
565
550
  }
566
551
  ```
567
552
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/icons",
3
- "version": "1.8.2",
3
+ "version": "1.8.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14+dbbefd7b8",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "prop-types": "^15",
30
- "react": ">=16.8.0 <20"
30
+ "react": ">=17.0.0 <20"
31
31
  },
32
32
  "devDependencies": {
33
- "@rescui/babel-plugin-postcss-modules": "^0.0.5",
34
- "@rescui/colors": "^0.3.2",
35
- "@rescui/postcss-preset-library": "^0.2.2",
36
- "@rescui/scripts": "^0.5.2",
37
- "@rescui/typography": "^0.27.2",
33
+ "@rescui/babel-plugin-postcss-modules": "0.0.5",
34
+ "@rescui/colors": "0.3.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14+dbbefd7b8",
35
+ "@rescui/postcss-preset-library": "0.2.2",
36
+ "@rescui/scripts": "0.5.2",
37
+ "@rescui/typography": "0.27.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14+dbbefd7b8",
38
38
  "postcss-modules": "^4.0.0",
39
39
  "postsvg": "2.2.7",
40
40
  "react-copy-to-clipboard": "^5.0.3"
@@ -45,5 +45,5 @@
45
45
  "svg-to-jsx": "rescui-scripts svg-to-jsx --src=svg --out=lib --template=template.js --ts-template=ts-template.js --typings-dir=lib"
46
46
  },
47
47
  "nx": {},
48
- "gitHead": "d60e4f3491c7cdb9ef684d08940869914492a61b"
48
+ "gitHead": "dbbefd7b8e24da18262edf3baffa35039ae01af3"
49
49
  }