@jobber/components 6.110.2 → 6.110.3
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.
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from "react";
|
|
2
|
-
|
|
2
|
+
interface DataTableTableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Controls the table layout.
|
|
5
|
+
* - `auto` (default): Columns size to content.
|
|
6
|
+
* - `fixed`: Column widths can be set explicitly; columns without widths share remaining space.
|
|
7
|
+
*/
|
|
8
|
+
readonly layout?: "auto" | "fixed";
|
|
9
|
+
}
|
|
10
|
+
export declare function DataTableTable(props: PropsWithChildren<DataTableTableProps>): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -106,7 +106,8 @@ function DataTableSortableHeader(props) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
function DataTableTable(props) {
|
|
109
|
-
|
|
109
|
+
const { layout = "auto", className, style } = props, rest = tslib_es6.__rest(props, ["layout", "className", "style"]);
|
|
110
|
+
return (React.createElement("table", Object.assign({}, rest, { className: classnames(styles.tableElement, className), style: Object.assign(Object.assign({}, style), { tableLayout: layout }) }), props.children));
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
exports.DataTableActions = DataTableActions;
|
|
@@ -104,7 +104,8 @@ function DataTableSortableHeader(props) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
function DataTableTable(props) {
|
|
107
|
-
|
|
107
|
+
const { layout = "auto", className, style } = props, rest = __rest(props, ["layout", "className", "style"]);
|
|
108
|
+
return (React__default.createElement("table", Object.assign({}, rest, { className: classnames(styles.tableElement, className), style: Object.assign(Object.assign({}, style), { tableLayout: layout }) }), props.children));
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
export { DataTableActions as D, SortIcon as S, SortDirection as a, DataTableBody as b, DataTableCell as c, DataTableContainer as d, DataTableFooter as e, DataTableHeader as f, DataTableHeaderCell as g, DataTablePagination as h, DataTablePaginationButton as i, DataTableRow as j, DataTableRowActions as k, DataTableSortableHeader as l, DataTableTable as m };
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.110.
|
|
3
|
+
"version": "6.110.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "48dbbb2378f14bdc572c0d1857312cf83eeb6fbb"
|
|
542
542
|
}
|