@appquality/unguess-design-system 2.12.45 → 2.12.46
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 +14 -0
- package/build/index.js +1 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# v2.12.46 (Tue Dec 06 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Revert bullet fix [#142](https://github.com/AppQuality/unguess-design-system/pull/142) ([@d-beezee](https://github.com/d-beezee) [@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
- revert: Remove resize from bullet chart [#141](https://github.com/AppQuality/unguess-design-system/pull/141) ([@d-beezee](https://github.com/d-beezee))
|
|
7
|
+
|
|
8
|
+
#### Authors: 2
|
|
9
|
+
|
|
10
|
+
- [@d-beezee](https://github.com/d-beezee)
|
|
11
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
1
15
|
# v2.12.45 (Mon Dec 05 2022)
|
|
2
16
|
|
|
3
17
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -1162,22 +1162,9 @@ var CustomTooltip = function (_a) {
|
|
|
1162
1162
|
};
|
|
1163
1163
|
|
|
1164
1164
|
var UgBulletChart = styled__default["default"](bullet.ResponsiveBullet)(templateObject_1$19 || (templateObject_1$19 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
1165
|
-
var useResizeOfReference = function () {
|
|
1166
|
-
var ref = React.createRef();
|
|
1167
|
-
var _a = React.useState({ width: 0 }), setDimensions = _a[1];
|
|
1168
|
-
React.useEffect(function () {
|
|
1169
|
-
if (ref.current) {
|
|
1170
|
-
setDimensions({
|
|
1171
|
-
width: ref.current.clientWidth,
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
}, [ref]);
|
|
1175
|
-
return { ref: ref };
|
|
1176
|
-
};
|
|
1177
1165
|
var BulletChart = function (_a) {
|
|
1178
1166
|
var width = _a.width, height = _a.height, ranges = _a.ranges, values = _a.values;
|
|
1179
|
-
|
|
1180
|
-
return (jsxRuntime.jsx(ChartContainer, __assign({ width: width, height: height }, { children: jsxRuntime.jsx("div", __assign({ style: { width: "100%", height: height }, ref: ref }, { children: jsxRuntime.jsx(UgBulletChart, { theme: DEFAULT_CHARTS_THEME, data: [
|
|
1167
|
+
return (jsxRuntime.jsx(ChartContainer, __assign({ width: width, height: height }, { children: jsxRuntime.jsx("div", __assign({ style: { width: "100%", height: height } }, { children: jsxRuntime.jsx(UgBulletChart, { theme: DEFAULT_CHARTS_THEME, data: [
|
|
1181
1168
|
{
|
|
1182
1169
|
id: "",
|
|
1183
1170
|
title: "",
|