@jobber/components 6.101.0 → 6.101.1
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.
|
@@ -95,12 +95,12 @@ function DataTableRowActions(props) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function DataTableSortableHeader(props) {
|
|
98
|
-
const { children, direction, onSort } = props;
|
|
98
|
+
const { children, direction, onSort } = props, rest = tslib_es6.__rest(props, ["children", "direction", "onSort"]);
|
|
99
99
|
const isSortable = direction !== undefined && onSort !== undefined;
|
|
100
100
|
if (!isSortable) {
|
|
101
|
-
return React.createElement(DataTableHeaderCell, Object.assign({},
|
|
101
|
+
return React.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
|
|
102
102
|
}
|
|
103
|
-
return (React.createElement(DataTableHeaderCell, Object.assign({},
|
|
103
|
+
return (React.createElement(DataTableHeaderCell, Object.assign({}, rest),
|
|
104
104
|
React.createElement("button", { type: "button", onClick: onSort, className: styles.sortableButton },
|
|
105
105
|
React.createElement("span", { className: styles.focusArea },
|
|
106
106
|
children,
|
|
@@ -93,12 +93,12 @@ function DataTableRowActions(props) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
function DataTableSortableHeader(props) {
|
|
96
|
-
const { children, direction, onSort } = props;
|
|
96
|
+
const { children, direction, onSort } = props, rest = __rest(props, ["children", "direction", "onSort"]);
|
|
97
97
|
const isSortable = direction !== undefined && onSort !== undefined;
|
|
98
98
|
if (!isSortable) {
|
|
99
|
-
return React__default.createElement(DataTableHeaderCell, Object.assign({},
|
|
99
|
+
return React__default.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
|
|
100
100
|
}
|
|
101
|
-
return (React__default.createElement(DataTableHeaderCell, Object.assign({},
|
|
101
|
+
return (React__default.createElement(DataTableHeaderCell, Object.assign({}, rest),
|
|
102
102
|
React__default.createElement("button", { type: "button", onClick: onSort, className: styles.sortableButton },
|
|
103
103
|
React__default.createElement("span", { className: styles.focusArea },
|
|
104
104
|
children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.101.
|
|
3
|
+
"version": "6.101.1",
|
|
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": "44867f421c6cc5a37de6c82af077a6b3a62f060d"
|
|
542
542
|
}
|