@rescui/icons 1.7.7-RUI-293-Update-menu-component-7a032357e.20 → 1.7.7-RUI-293-Update-menu-component-hover-icon-d8a5b0551.33

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_11g9wvk_4{
1
+ ._icon_selttq_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_11g9wvk_4{
11
+ ._icon_selttq_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_11g9wvk_4{
20
+ ._icon_selttq_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_11g9wvk_4{
28
+ ._icon_selttq_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_11g9wvk_14{
35
+ ._sizeXS_selttq_14{
36
36
  --_rs-icons-height:16px;
37
37
  }
38
- ._sizeS_11g9wvk_18{
38
+ ._sizeS_selttq_18{
39
39
  --_rs-icons-height:20px;
40
40
  }
41
- ._sizeM_11g9wvk_22{
41
+ ._sizeM_selttq_22{
42
42
  --_rs-icons-height:24px;
43
43
  }
44
- ._sizeL_11g9wvk_26{
44
+ ._sizeL_selttq_26{
45
45
  --_rs-icons-height:28px;
46
46
  }
47
- ._light_11g9wvk_30{
47
+ ._light_selttq_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_11g9wvk_34{
51
+ ._dark_selttq_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_11g9wvk_48{
63
+ ._allVariants_selttq_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_11g9wvk_53,
68
- ._variant20_11g9wvk_54,
69
- ._variant24_11g9wvk_55{
67
+ ._variant16_selttq_53,
68
+ ._variant20_selttq_54,
69
+ ._variant24_selttq_55{
70
70
  display:none;
71
71
  }
72
- ._variant28_11g9wvk_58{
72
+ ._variant28_selttq_58{
73
73
  display:block;
74
74
  }
75
75
  @container rs-icon (max-height: 24px){
76
- ._variant24_11g9wvk_55{
76
+ ._variant24_selttq_55{
77
77
  display:block;
78
78
  }
79
- ._variant28_11g9wvk_58{
79
+ ._variant28_selttq_58{
80
80
  display:none;
81
81
  }
82
82
  }
83
83
  @container rs-icon (max-height: 20px){
84
- ._variant20_11g9wvk_54{
84
+ ._variant20_selttq_54{
85
85
  display:block;
86
86
  }
87
- ._variant24_11g9wvk_55{
87
+ ._variant24_selttq_55{
88
88
  display:none;
89
89
  }
90
90
  }
91
91
  @container rs-icon (max-height: 16px){
92
- ._variant16_11g9wvk_53{
92
+ ._variant16_selttq_53{
93
93
  display:block;
94
94
  }
95
- ._variant20_11g9wvk_54{
95
+ ._variant20_selttq_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_11g9wvk_4",
3
- "sizeXS": "_sizeXS_11g9wvk_14",
4
- "sizeS": "_sizeS_11g9wvk_18",
5
- "sizeM": "_sizeM_11g9wvk_22",
6
- "sizeL": "_sizeL_11g9wvk_26",
7
- "light": "_light_11g9wvk_30",
8
- "dark": "_dark_11g9wvk_34",
9
- "allVariants": "_allVariants_11g9wvk_48",
10
- "variant16": "_variant16_11g9wvk_53",
11
- "variant20": "_variant20_11g9wvk_54",
12
- "variant24": "_variant24_11g9wvk_55",
13
- "variant28": "_variant28_11g9wvk_58"
2
+ "icon": "_icon_selttq_4",
3
+ "sizeXS": "_sizeXS_selttq_14",
4
+ "sizeS": "_sizeS_selttq_18",
5
+ "sizeM": "_sizeM_selttq_22",
6
+ "sizeL": "_sizeL_selttq_26",
7
+ "light": "_light_selttq_30",
8
+ "dark": "_dark_selttq_34",
9
+ "allVariants": "_allVariants_selttq_48",
10
+ "variant16": "_variant16_selttq_53",
11
+ "variant20": "_variant20_selttq_54",
12
+ "variant24": "_variant24_selttq_55",
13
+ "variant28": "_variant28_selttq_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_11g9wvk_4\",\"sizeXS\":\"_sizeXS_11g9wvk_14\",\"sizeS\":\"_sizeS_11g9wvk_18\",\"sizeM\":\"_sizeM_11g9wvk_22\",\"sizeL\":\"_sizeL_11g9wvk_26\",\"light\":\"_light_11g9wvk_30\",\"dark\":\"_dark_11g9wvk_34\",\"allVariants\":\"_allVariants_11g9wvk_48\",\"variant16\":\"_variant16_11g9wvk_53\",\"variant20\":\"_variant20_11g9wvk_54\",\"variant24\":\"_variant24_11g9wvk_55\",\"variant28\":\"_variant28_11g9wvk_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_selttq_4\",\"sizeXS\":\"_sizeXS_selttq_14\",\"sizeS\":\"_sizeS_selttq_18\",\"sizeM\":\"_sizeM_selttq_22\",\"sizeL\":\"_sizeL_selttq_26\",\"light\":\"_light_selttq_30\",\"dark\":\"_dark_selttq_34\",\"allVariants\":\"_allVariants_selttq_48\",\"variant16\":\"_variant16_selttq_53\",\"variant20\":\"_variant20_selttq_54\",\"variant24\":\"_variant24_selttq_55\",\"variant28\":\"_variant28_selttq_58\"}"],"mappings":"AAAA,eAAe;EAAC,QAAO,gBAAR;EAAyB,UAAS,mBAAlC;EAAsD,SAAQ,kBAA9D;EAAiF,SAAQ,kBAAzF;EAA4G,SAAQ,kBAApH;EAAuI,SAAQ,kBAA/I;EAAkK,QAAO,iBAAzK;EAA2L,eAAc,wBAAzM;EAAkO,aAAY,sBAA9O;EAAqQ,aAAY,sBAAjR;EAAwS,aAAY,sBAApT;EAA2U,aAAY;AAAvV,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.7.7-RUI-293-Update-menu-component-7a032357e.20+7a032357e",
3
+ "version": "1.7.7-RUI-293-Update-menu-component-hover-icon-d8a5b0551.33+d8a5b0551",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -31,10 +31,10 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rescui/babel-plugin-postcss-modules": "0.0.5",
34
- "@rescui/colors": "0.3.1-RUI-293-Update-menu-component-7a032357e.55+7a032357e",
34
+ "@rescui/colors": "0.3.1-RUI-293-Update-menu-component-hover-icon-d8a5b0551.68+d8a5b0551",
35
35
  "@rescui/postcss-preset-library": "0.2.2",
36
36
  "@rescui/scripts": "0.5.2",
37
- "@rescui/typography": "0.27.1-RUI-293-Update-menu-component-7a032357e.20+7a032357e",
37
+ "@rescui/typography": "0.27.1-RUI-293-Update-menu-component-hover-icon-d8a5b0551.33+d8a5b0551",
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": "7a032357e8f31abbf69e18aa6b7ef2d75e40f42e"
48
+ "gitHead": "d8a5b055167d8b1ea55c32621655b8e0acc98a1a"
49
49
  }