@commonsku/styles 1.17.25 → 1.17.26
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles/Popup.d.ts +2 -2
- package/dist/styles/Popup.d.ts.map +1 -1
- package/dist/styles/tables/VirtualTable.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -945,7 +945,7 @@ declare const Overlay: styled_components.StyledComponent<"div", any, {
|
|
|
945
945
|
}, never>;
|
|
946
946
|
declare const PopupHeader: styled_components.StyledComponent<"div", any, SharedStyleTypes & SizerTypes, never>;
|
|
947
947
|
type PopupProps = React__default.PropsWithChildren<{
|
|
948
|
-
header?: React__default.
|
|
948
|
+
header?: React__default.ReactNode;
|
|
949
949
|
noHeader?: boolean;
|
|
950
950
|
title?: string | React__default.Component;
|
|
951
951
|
controls?: Array<React__default.ReactNode>;
|
|
@@ -963,7 +963,7 @@ type PopupProps = React__default.PropsWithChildren<{
|
|
|
963
963
|
PopupWindowComponent?: React__default.ComponentType<React__default.ComponentPropsWithRef<any>>;
|
|
964
964
|
} & SharedStyleTypes> & React__default.HTMLAttributes<HTMLDivElement>;
|
|
965
965
|
declare const Popup: React__default.ForwardRefExoticComponent<{
|
|
966
|
-
header?: React__default.
|
|
966
|
+
header?: React__default.ReactNode;
|
|
967
967
|
noHeader?: boolean | undefined;
|
|
968
968
|
title?: string | React__default.Component<{}, {}, any> | undefined;
|
|
969
969
|
controls?: React__default.ReactNode[] | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -7285,7 +7285,7 @@ function InputStepper(props) {
|
|
|
7285
7285
|
var templateObject_1$c, templateObject_2$1, templateObject_3, templateObject_4;
|
|
7286
7286
|
|
|
7287
7287
|
var VirtualTable = function (props) {
|
|
7288
|
-
var columns = props.columns, data = props.data, itemSize = props.itemSize, _a = props.height, height = _a === void 0 ? 500 : _a, _b = props.minWidth, minWidth = _b === void 0 ? 140 : _b, _c = props.maxWidth, maxWidth = _c === void 0 ? 500 : _c, defaultSort = props.defaultSort, onClickRow = props.onClickRow, onScroll = props.onScroll, onUpdateData = props.onUpdateData, _d = props.useTableProps, useTableProps = _d === void 0 ? {} : _d, _e = props.tableHeaderProps, tableHeaderProps = _e === void 0 ? {} : _e, _f = props.tableFooterProps, tableFooterProps = _f === void 0 ? {} : _f, _g = props.hideFooter, hideFooter = _g === void 0 ? true : _g, _h = props.hideHeader, hideHeader = _h === void 0 ? false : _h, _j = props.className, className = _j === void 0 ?
|
|
7288
|
+
var columns = props.columns, data = props.data, itemSize = props.itemSize, _a = props.height, height = _a === void 0 ? 500 : _a, _b = props.minWidth, minWidth = _b === void 0 ? 140 : _b, _c = props.maxWidth, maxWidth = _c === void 0 ? 500 : _c, defaultSort = props.defaultSort, onClickRow = props.onClickRow, onScroll = props.onScroll, onUpdateData = props.onUpdateData, _d = props.useTableProps, useTableProps = _d === void 0 ? {} : _d, _e = props.tableHeaderProps, tableHeaderProps = _e === void 0 ? {} : _e, _f = props.tableFooterProps, tableFooterProps = _f === void 0 ? {} : _f, _g = props.hideFooter, hideFooter = _g === void 0 ? true : _g, _h = props.hideHeader, hideHeader = _h === void 0 ? false : _h, _j = props.className, className = _j === void 0 ? "" : _j, NoRowsFound = props.NoRowsFound, renderRowSubComponent = props.renderRowSubComponent; props.onResize; var rowGroupStyles = props.rowGroupStyles, rowStyles = props.rowStyles, _k = props.gutterSize, gutterSize = _k === void 0 ? 0 : _k, _l = props.customTableFooterProps, customTableFooterProps = _l === void 0 ? {} : _l, TableFooter = props.TableFooter, onSortChange = props.onSortChange;
|
|
7289
7289
|
var defaultColumn = useMemo(function () { return ({
|
|
7290
7290
|
minWidth: minWidth,
|
|
7291
7291
|
maxWidth: maxWidth,
|
|
@@ -7413,6 +7413,12 @@ var VirtualTable = function (props) {
|
|
|
7413
7413
|
useEffect(function () {
|
|
7414
7414
|
onSortChange && onSortChange({ sortBy: sortBy });
|
|
7415
7415
|
}, [sortBy]);
|
|
7416
|
+
var scrollToTop = useCallback(function () {
|
|
7417
|
+
listRef.current && listRef.current.scrollTo(0);
|
|
7418
|
+
}, []);
|
|
7419
|
+
useEffect(function () {
|
|
7420
|
+
scrollToTop();
|
|
7421
|
+
}, [data, scrollToTop]);
|
|
7416
7422
|
return (React.createElement("div", __assign({}, getTableProps(), { className: "table ".concat(className || '') }),
|
|
7417
7423
|
renderTableHeader(),
|
|
7418
7424
|
React.createElement("div", __assign({ className: "tbody" }, getTableBodyProps()), rows.length === 0 && NoRowsFound ? React.createElement(NoRowsFound, null) :
|