@jobber/components 4.68.16 → 4.68.17
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/DataTable/Body.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Row, Table } from "@tanstack/react-table";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
interface BodyProps<T> {
|
|
4
|
-
table: Table<T>;
|
|
5
|
-
onRowClick?: (row: Row<T>) => void;
|
|
6
|
-
emptyState?: ReactNode | ReactNode[];
|
|
7
|
-
loading: boolean;
|
|
4
|
+
readonly table: Table<T>;
|
|
5
|
+
readonly onRowClick?: (row: Row<T>) => void;
|
|
6
|
+
readonly emptyState?: ReactNode | ReactNode[];
|
|
7
|
+
readonly loading: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare function Body<T extends object>({ table, onRowClick, emptyState, loading, }: BodyProps<T>): JSX.Element;
|
|
10
10
|
export {};
|
package/dist/DataTable/index.js
CHANGED
|
@@ -78,7 +78,9 @@ function Body({ table, onRowClick, emptyState, loading, }) {
|
|
|
78
78
|
maxWidth: cell.column.columnDef.maxSize,
|
|
79
79
|
} }, reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
80
80
|
})));
|
|
81
|
-
}))) : (React__default["default"].createElement("
|
|
81
|
+
}))) : (React__default["default"].createElement("tbody", null,
|
|
82
|
+
React__default["default"].createElement("tr", { className: bodyRowClasses },
|
|
83
|
+
React__default["default"].createElement("td", { colSpan: table.getAllColumns().length, className: classnames__default["default"](styles$3.emptyState) }, emptyState))))));
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
function createTableSettings(data, columns, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.68.
|
|
3
|
+
"version": "4.68.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"> 1%",
|
|
84
84
|
"IE 10"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "8418b113ace24b07be8e2917b90b2460d6954a5a"
|
|
87
87
|
}
|