@meduza/ui-kit-2 0.1.47 → 0.1.48
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/dist/ui-kit-2.cjs.development.js +3 -3
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +3 -3
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1131 -1131
- package/package.json +1 -1
- package/src/GroupedBlock/index.tsx +6 -3
|
@@ -1744,11 +1744,11 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1744
1744
|
onlyOn = _ref.block.only_on,
|
|
1745
1745
|
styleContext = _ref.styleContext;
|
|
1746
1746
|
var maxHeight = Math.min.apply(Math, block.data.map(function (item) {
|
|
1747
|
-
return item.data && item.data.height || item.item.data.height;
|
|
1747
|
+
return item.data && item.data.height || item.item && item.item.data.height;
|
|
1748
1748
|
}));
|
|
1749
1749
|
var normalizedBoxesWidth = block.data.map(function (item) {
|
|
1750
|
-
var width = item.data && item.data.width || item.item.data.heigh;
|
|
1751
|
-
var height = item.data && item.data.height || item.item.data.heigh;
|
|
1750
|
+
var width = item.data && item.data.width || item.item && item.item.data.heigh;
|
|
1751
|
+
var height = item.data && item.data.height || item.item && item.item.data.heigh;
|
|
1752
1752
|
return width / (height / maxHeight);
|
|
1753
1753
|
});
|
|
1754
1754
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|