@megafon/ui-core 3.0.0-beta.3 → 3.0.0-beta.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.4](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@3.0.0-beta.3...@megafon/ui-core@3.0.0-beta.4) (2022-01-27)
7
+
8
+ **Note:** Version bump only for package @megafon/ui-core
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.0.0-beta.3](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@3.0.0-beta.2...@megafon/ui-core@3.0.0-beta.3) (2022-01-24)
7
15
 
8
16
 
@@ -128,6 +128,19 @@ var Colors = function Colors() {
128
128
  _React$useState2 = _slicedToArray(_React$useState, 2),
129
129
  setCurrentTheme = _React$useState2[1];
130
130
 
131
+ var _React$useState3 = React.useState(false),
132
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
133
+ setLoad = _React$useState4[1];
134
+
135
+ React.useEffect(function () {
136
+ function load() {
137
+ setLoad(true);
138
+ document.removeEventListener('css-var-load', load);
139
+ }
140
+
141
+ document.addEventListener('css-var-load', load);
142
+ }, []);
143
+
131
144
  var getCurrentColorValue = function getCurrentColorValue(code) {
132
145
  return typeof document !== 'undefined' ? document.documentElement.style.getPropertyValue("--".concat(code)) : '';
133
146
  };
@@ -157,6 +157,16 @@ var Colors = function Colors() {
157
157
  _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
158
158
  setCurrentTheme = _React$useState2[1];
159
159
 
160
+ var _React$useState3 = React.useState(false),
161
+ _React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
162
+ setLoad = _React$useState4[1];
163
+
164
+ React.useEffect(function () {
165
+ function load() {
166
+ setLoad(true);
167
+ }
168
+ }, []);
169
+
160
170
  var getCurrentColorValue = function getCurrentColorValue(code) {
161
171
  return typeof document !== 'undefined' ? document.documentElement.style.getPropertyValue("--".concat(code)) : '';
162
172
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-core",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "styles"
@@ -96,5 +96,5 @@
96
96
  "react-popper": "^2.2.3",
97
97
  "swiper": "^6.5.6"
98
98
  },
99
- "gitHead": "c7d00f10bbf88ff8049558ee9b7fbe6cb9691547"
99
+ "gitHead": "f1a27a97bad3748ab25616ac3a7d8eb8143e97db"
100
100
  }