react-better-html 1.1.149 → 1.1.150
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -738,6 +738,7 @@ type TableProps<DataItem> = {
|
|
|
738
738
|
pageCount?: number;
|
|
739
739
|
isInsideTableExpandRow?: boolean;
|
|
740
740
|
containsOverflowComponents?: boolean;
|
|
741
|
+
wrapperComponentRef?: React.Ref<HTMLDivElement>;
|
|
741
742
|
getRowStyle?: (item: DataItem, index: number) => ComponentStyle;
|
|
742
743
|
onClickRow?: (item: DataItem, index: number) => void;
|
|
743
744
|
onClickAllCheckboxes?: (checked: boolean) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -738,6 +738,7 @@ type TableProps<DataItem> = {
|
|
|
738
738
|
pageCount?: number;
|
|
739
739
|
isInsideTableExpandRow?: boolean;
|
|
740
740
|
containsOverflowComponents?: boolean;
|
|
741
|
+
wrapperComponentRef?: React.Ref<HTMLDivElement>;
|
|
741
742
|
getRowStyle?: (item: DataItem, index: number) => ComponentStyle;
|
|
742
743
|
onClickRow?: (item: DataItem, index: number) => void;
|
|
743
744
|
onClickAllCheckboxes?: (checked: boolean) => void;
|
package/dist/index.js
CHANGED
|
@@ -7583,6 +7583,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
|
|
|
7583
7583
|
pageCount,
|
|
7584
7584
|
isInsideTableExpandRow,
|
|
7585
7585
|
containsOverflowComponents,
|
|
7586
|
+
wrapperComponentRef,
|
|
7586
7587
|
getRowStyle,
|
|
7587
7588
|
onClickRow,
|
|
7588
7589
|
onClickAllCheckboxes,
|
|
@@ -7963,6 +7964,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
|
|
|
7963
7964
|
borderRadius: theme2.styles.borderRadius * 2,
|
|
7964
7965
|
overflow: !containsOverflowComponents ? "auto" : void 0,
|
|
7965
7966
|
...props,
|
|
7967
|
+
ref: wrapperComponentRef,
|
|
7966
7968
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
7967
7969
|
TableStyledComponent,
|
|
7968
7970
|
{
|
|
@@ -8033,7 +8035,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
|
|
|
8033
8035
|
}
|
|
8034
8036
|
),
|
|
8035
8037
|
expandedRows[rowIndex] && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { colSpan: columns.length, children: renderExpandedRow(item, rowIndex) }) })
|
|
8036
|
-
] }, JSON.stringify(item) + rowIndex
|
|
8038
|
+
] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
|
|
8037
8039
|
withFooter && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: "isFooter", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("td", { colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
8038
8040
|
Div_default.column,
|
|
8039
8041
|
{
|