@symply.io/basic-components 1.7.10-alpha.2 → 1.7.10-beta.2

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.
@@ -355,6 +355,6 @@ var VirtualDataTable = function (props, ref) {
355
355
  TableBody: forwardRef(function (props, ref) { return (_jsx(TableBody, __assign({}, props, { ref: ref }))); }),
356
356
  TableFoot: forwardRef(function (props, ref) { return (_jsx(TableFooter, __assign({}, props, { ref: ref }))); }),
357
357
  }); }, [onRowClick, onContextMenu, handleCustomizeRowBgColor]);
358
- return (_jsx(TableVirtuoso, { data: visableRows || rows, increaseViewportBy: { top: 320, bottom: 480 }, initialTopMostItemIndex: 0, style: { height: tableHeight, maxHeight: maxHeight }, onScroll: onScroll, onResize: onScroll, components: VirtuosoTableComponents, fixedHeaderContent: fixedHeaderContent, fixedFooterContent: fixedFooterContent, itemContent: itemContent, scrollerRef: reflectScrollerRef, totalListHeightChanged: onTotalListHeightChanged }));
358
+ return (_jsx(TableVirtuoso, { data: visableRows || rows, increaseViewportBy: { top: 320, bottom: 480 }, initialTopMostItemIndex: 0, style: { height: tableHeight, minHeight: 112, maxHeight: maxHeight }, onScroll: onScroll, onResize: onScroll, components: VirtuosoTableComponents, fixedHeaderContent: fixedHeaderContent, fixedFooterContent: fixedFooterContent, itemContent: itemContent, scrollerRef: reflectScrollerRef, totalListHeightChanged: onTotalListHeightChanged }));
359
359
  };
360
360
  export default forwardRef(VirtualDataTable);
@@ -17,7 +17,7 @@ function useInteractions(props) {
17
17
  var theme = useTheme();
18
18
  var isUpMd = useMediaQuery(theme.breakpoints.up("md"));
19
19
  var _a = useState(null), scrollerRef = _a[0], setScrollerRef = _a[1];
20
- var _b = useState(144), tableHeight = _b[0], setTableHeight = _b[1];
20
+ var _b = useState(112), tableHeight = _b[0], setTableHeight = _b[1];
21
21
  var _c = useState(false), leftShadowVisible = _c[0], setLeftShadowVisible = _c[1];
22
22
  var _d = useState(columns.filter(function (c) { return c.fixable === "right"; }).length > 0 || false), rightShadowVisible = _d[0], setRightShadowVisible = _d[1];
23
23
  var initialSortingProps = useMemo(function () {
@@ -80,7 +80,7 @@ function useInteractions(props) {
80
80
  }
81
81
  }, [scrollerRef]);
82
82
  var onTotalListHeightChanged = useCallback(function (height) {
83
- setTableHeight(height);
83
+ setTableHeight(height + 2);
84
84
  }, []);
85
85
  var _f = useMemo(function () {
86
86
  var hasData = rows.length > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symply.io/basic-components",
3
- "version": "1.7.10-alpha.2",
3
+ "version": "1.7.10-beta.2",
4
4
  "description": "Basic and reusable components for all frontend of Symply apps",
5
5
  "keywords": [
6
6
  "react",