@jobber/components 6.107.2 → 6.107.3-TAYLORdat-7af62e9.2

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.
@@ -2,8 +2,10 @@ import React from "react";
2
2
  export interface DataTableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
3
3
  readonly children: React.ReactNode;
4
4
  /**
5
- * Number of columns to span across. This should match the number of columns in your table.
5
+ * Number of columns to span across. When provided, children are wrapped in a
6
+ * single cell that spans all columns. When omitted, children are rendered
7
+ * directly, allowing custom row/cell structures.
6
8
  */
7
- readonly colSpan: number;
9
+ readonly colSpan?: number;
8
10
  }
9
11
  export declare function DataTableFooter({ children, className, colSpan, ...props }: DataTableFooterProps): React.JSX.Element;
@@ -60,9 +60,8 @@ function DataTableContainer(props) {
60
60
 
61
61
  function DataTableFooter(_a) {
62
62
  var { children, className, colSpan } = _a, props = tslib_es6.__rest(_a, ["children", "className", "colSpan"]);
63
- return (React.createElement("tfoot", Object.assign({}, props, { className: classnames(styles.footer, className) }),
64
- React.createElement("tr", null,
65
- React.createElement("td", { colSpan: colSpan }, children))));
63
+ return (React.createElement("tfoot", Object.assign({}, props, { className: classnames(styles.footer, className) }), colSpan !== undefined ? (React.createElement("tr", null,
64
+ React.createElement("td", { colSpan: colSpan }, children))) : (children)));
66
65
  }
67
66
 
68
67
  function DataTableHeader(props) {
@@ -58,9 +58,8 @@ function DataTableContainer(props) {
58
58
 
59
59
  function DataTableFooter(_a) {
60
60
  var { children, className, colSpan } = _a, props = __rest(_a, ["children", "className", "colSpan"]);
61
- return (React__default.createElement("tfoot", Object.assign({}, props, { className: classnames(styles.footer, className) }),
62
- React__default.createElement("tr", null,
63
- React__default.createElement("td", { colSpan: colSpan }, children))));
61
+ return (React__default.createElement("tfoot", Object.assign({}, props, { className: classnames(styles.footer, className) }), colSpan !== undefined ? (React__default.createElement("tr", null,
62
+ React__default.createElement("td", { colSpan: colSpan }, children))) : (children)));
64
63
  }
65
64
 
66
65
  function DataTableHeader(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.107.2",
3
+ "version": "6.107.3-TAYLORdat-7af62e9.2+7af62e995",
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": "fab61b9fab49e4a4aec72472893c389ddb77e19f"
541
+ "gitHead": "7af62e9958b8b325f0f20ba04134bf4aa7e3cfc2"
542
542
  }