@7shifts/sous-chef 3.57.3-beta3 → 3.57.3-beta4
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/index.modern.js
CHANGED
|
@@ -6400,17 +6400,9 @@ var styles$19 = {"data-table-scroll-fake-border":"_wZ8Xg","data-table-scroll-fak
|
|
|
6400
6400
|
*/
|
|
6401
6401
|
const DataTableScrollFakeBorder = ({
|
|
6402
6402
|
placement,
|
|
6403
|
-
tableRef,
|
|
6404
6403
|
hasSort
|
|
6405
6404
|
}) => {
|
|
6406
|
-
const
|
|
6407
|
-
useLayoutEffect(() => {
|
|
6408
|
-
if (!tableRef.current) {
|
|
6409
|
-
return;
|
|
6410
|
-
}
|
|
6411
|
-
const header = tableRef.current.getElementsByTagName('thead')[0];
|
|
6412
|
-
setTopHeaderHeight(header.clientHeight);
|
|
6413
|
-
}, [tableRef]);
|
|
6405
|
+
const topHeaderheight = hasSort ? 29 : 24;
|
|
6414
6406
|
const backgroundColor = useBackgroundColor();
|
|
6415
6407
|
return React__default.createElement("div", {
|
|
6416
6408
|
className: classnames(styles$19['data-table-scroll-fake-border'], {
|
|
@@ -9505,8 +9497,7 @@ const DataTable = _ref => {
|
|
|
9505
9497
|
tableRef: tableRef
|
|
9506
9498
|
}, isShowingColumns && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
9507
9499
|
placement: "top",
|
|
9508
|
-
hasSort: !!onSort
|
|
9509
|
-
tableRef: tableRef
|
|
9500
|
+
hasSort: !!onSort
|
|
9510
9501
|
}), React__default.createElement("div", {
|
|
9511
9502
|
className: classnames(styles$1a['data-table__content'], {
|
|
9512
9503
|
[styles$1a['data-table__content--with-scroll']]: isScrollableTable
|
|
@@ -9545,8 +9536,7 @@ const DataTable = _ref => {
|
|
|
9545
9536
|
className: styles$1a['data-table__footer'],
|
|
9546
9537
|
"data-testid": testId && `${testId}-footer`
|
|
9547
9538
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default.createElement(DataTableScrollFakeBorder, {
|
|
9548
|
-
placement: "bottom"
|
|
9549
|
-
tableRef: tableRef
|
|
9539
|
+
placement: "bottom"
|
|
9550
9540
|
})), React__default.createElement(Pagination, null));
|
|
9551
9541
|
};
|
|
9552
9542
|
|