@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.js
CHANGED
|
@@ -6280,18 +6280,8 @@ var styles$19 = {"data-table-scroll-fake-border":"_wZ8Xg","data-table-scroll-fak
|
|
|
6280
6280
|
var DataTableScrollFakeBorder = function DataTableScrollFakeBorder(_ref) {
|
|
6281
6281
|
var _classNames, _classNames2, _classNames3;
|
|
6282
6282
|
var placement = _ref.placement,
|
|
6283
|
-
tableRef = _ref.tableRef,
|
|
6284
6283
|
hasSort = _ref.hasSort;
|
|
6285
|
-
var
|
|
6286
|
-
topHeaderheight = _React$useState[0],
|
|
6287
|
-
setTopHeaderHeight = _React$useState[1];
|
|
6288
|
-
React.useLayoutEffect(function () {
|
|
6289
|
-
if (!tableRef.current) {
|
|
6290
|
-
return;
|
|
6291
|
-
}
|
|
6292
|
-
var header = tableRef.current.getElementsByTagName('thead')[0];
|
|
6293
|
-
setTopHeaderHeight(header.clientHeight);
|
|
6294
|
-
}, [tableRef]);
|
|
6284
|
+
var topHeaderheight = hasSort ? 29 : 24;
|
|
6295
6285
|
var backgroundColor = useBackgroundColor();
|
|
6296
6286
|
return React__default["default"].createElement("div", {
|
|
6297
6287
|
className: classnames__default["default"](styles$19['data-table-scroll-fake-border'], (_classNames = {}, _classNames[styles$19['data-table-scroll-fake-border--top']] = placement === 'top', _classNames[styles$19['data-table-scroll-fake-border--bottom']] = placement === 'bottom', _classNames)),
|
|
@@ -9332,8 +9322,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
9332
9322
|
tableRef: tableRef
|
|
9333
9323
|
}, isShowingColumns && isScrollableTable && React__default["default"].createElement(DataTableScrollFakeBorder, {
|
|
9334
9324
|
placement: "top",
|
|
9335
|
-
hasSort: !!onSort
|
|
9336
|
-
tableRef: tableRef
|
|
9325
|
+
hasSort: !!onSort
|
|
9337
9326
|
}), React__default["default"].createElement("div", {
|
|
9338
9327
|
className: classnames__default["default"](styles$1a['data-table__content'], (_classNames = {}, _classNames[styles$1a['data-table__content--with-scroll']] = isScrollableTable, _classNames)),
|
|
9339
9328
|
style: conditionalStyles
|
|
@@ -9368,8 +9357,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
9368
9357
|
className: styles$1a['data-table__footer'],
|
|
9369
9358
|
"data-testid": testId && testId + "-footer"
|
|
9370
9359
|
}, footerComponent)))), !isShowingFooter && isScrollableTable && React__default["default"].createElement(DataTableScrollFakeBorder, {
|
|
9371
|
-
placement: "bottom"
|
|
9372
|
-
tableRef: tableRef
|
|
9360
|
+
placement: "bottom"
|
|
9373
9361
|
})), React__default["default"].createElement(Pagination, null));
|
|
9374
9362
|
};
|
|
9375
9363
|
|