@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
- export declare function DataTableTable(props: PropsWithChildren<React.HTMLAttributes<HTMLTableElement>>): React.JSX.Element;
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
- return (React.createElement("table", Object.assign({}, props, { className: classnames(styles.tableElement, props.className) }), props.children));
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
- return (React__default.createElement("table", Object.assign({}, props, { className: classnames(styles.tableElement, props.className) }), props.children));
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
@@ -6611,7 +6611,6 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6611
6611
 
6612
6612
  .kJeYcsgg700- {
6613
6613
  width: 100%;
6614
- table-layout: auto;
6615
6614
  border-collapse: collapse;
6616
6615
  }
6617
6616
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.110.2",
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": "19007f2b577b510189751d8909ffee3bc1f7e9c7"
541
+ "gitHead": "48dbbb2378f14bdc572c0d1857312cf83eeb6fbb"
542
542
  }