@jobber/components 6.111.0 → 6.111.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.
@@ -39,7 +39,7 @@ function SortIcon({ direction }) {
39
39
  React.createElement("path", { className: finalStyle.downArrowStyle, d: "M8.29292 13.3339C8.68345 12.9434 9.31661 12.9434 9.70714 13.3339L12.2968 15.8573L14.8787 13.3339C15.2692 12.9434 15.9024 12.9434 16.2929 13.3339C16.6834 13.7244 16.6834 14.3576 16.2929 14.7481L13 18.041C12.6095 18.4315 11.9763 18.4315 11.5858 18.041L8.29292 14.7481C7.9024 14.3576 7.9024 13.7244 8.29292 13.3339Z" }))));
40
40
  }
41
41
 
42
- var styles = {"container":"_1-DPmbxOkZ8-","tableElement":"kJeYcsgg700-","header":"_5d2OcsTVgzU-","headerCell":"LTx0tCU3F2I-","sortableButton":"WTQCrd2d8nw-","focusArea":"RipbH3rRU-E-","row":"sJQbtw-NEHU-","cell":"_1UpLYTK64uY-","footer":"qe-6UrAFLTo-","actions":"_2fZsLSaNPnI-","rowActions":"pElxuwpGmCI-","pagination":"thJ-CSoe0ps-","spinning":"EBpmC7cZzCs-"};
42
+ var styles = {"container":"_1-DPmbxOkZ8-","tableElement":"kJeYcsgg700-","header":"_5d2OcsTVgzU-","headerCell":"LTx0tCU3F2I-","sortableButton":"WTQCrd2d8nw-","focusArea":"RipbH3rRU-E-","row":"sJQbtw-NEHU-","clickableRow":"J2p1EeT252A-","cell":"_1UpLYTK64uY-","footer":"qe-6UrAFLTo-","actions":"_2fZsLSaNPnI-","rowActions":"pElxuwpGmCI-","pagination":"thJ-CSoe0ps-","spinning":"EBpmC7cZzCs-"};
43
43
 
44
44
  function DataTableActions(props) {
45
45
  return (React.createElement("div", Object.assign({}, props, { className: classnames(styles.actions, props.className) }), props.children));
@@ -83,8 +83,9 @@ function DataTablePaginationButton({ direction, onClick, disabled = false, ariaL
83
83
  return (React.createElement(Button.Button, { label: "", onClick: onClick, icon: isNext ? "arrowRight" : "arrowLeft", type: "secondary", variation: "learning", disabled: disabled, ariaLabel: ariaLabel(direction) }));
84
84
  }
85
85
 
86
- const DataTableRow = React.forwardRef((props, ref) => {
87
- return (React.createElement("tr", Object.assign({}, props, { className: classnames(styles.row, props.className), ref: ref }), props.children));
86
+ const DataTableRow = React.forwardRef((_a, ref) => {
87
+ var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
88
+ return (React.createElement("tr", Object.assign({}, props, { className: classnames(styles.row, props.onClick && styles.clickableRow, className), ref: ref }), props.children));
88
89
  });
89
90
  DataTableRow.displayName = "DataTableRow";
90
91
 
@@ -37,7 +37,7 @@ function SortIcon({ direction }) {
37
37
  React__default.createElement("path", { className: finalStyle.downArrowStyle, d: "M8.29292 13.3339C8.68345 12.9434 9.31661 12.9434 9.70714 13.3339L12.2968 15.8573L14.8787 13.3339C15.2692 12.9434 15.9024 12.9434 16.2929 13.3339C16.6834 13.7244 16.6834 14.3576 16.2929 14.7481L13 18.041C12.6095 18.4315 11.9763 18.4315 11.5858 18.041L8.29292 14.7481C7.9024 14.3576 7.9024 13.7244 8.29292 13.3339Z" }))));
38
38
  }
39
39
 
40
- var styles = {"container":"_1-DPmbxOkZ8-","tableElement":"kJeYcsgg700-","header":"_5d2OcsTVgzU-","headerCell":"LTx0tCU3F2I-","sortableButton":"WTQCrd2d8nw-","focusArea":"RipbH3rRU-E-","row":"sJQbtw-NEHU-","cell":"_1UpLYTK64uY-","footer":"qe-6UrAFLTo-","actions":"_2fZsLSaNPnI-","rowActions":"pElxuwpGmCI-","pagination":"thJ-CSoe0ps-","spinning":"EBpmC7cZzCs-"};
40
+ var styles = {"container":"_1-DPmbxOkZ8-","tableElement":"kJeYcsgg700-","header":"_5d2OcsTVgzU-","headerCell":"LTx0tCU3F2I-","sortableButton":"WTQCrd2d8nw-","focusArea":"RipbH3rRU-E-","row":"sJQbtw-NEHU-","clickableRow":"J2p1EeT252A-","cell":"_1UpLYTK64uY-","footer":"qe-6UrAFLTo-","actions":"_2fZsLSaNPnI-","rowActions":"pElxuwpGmCI-","pagination":"thJ-CSoe0ps-","spinning":"EBpmC7cZzCs-"};
41
41
 
42
42
  function DataTableActions(props) {
43
43
  return (React__default.createElement("div", Object.assign({}, props, { className: classnames(styles.actions, props.className) }), props.children));
@@ -81,8 +81,9 @@ function DataTablePaginationButton({ direction, onClick, disabled = false, ariaL
81
81
  return (React__default.createElement(Button, { label: "", onClick: onClick, icon: isNext ? "arrowRight" : "arrowLeft", type: "secondary", variation: "learning", disabled: disabled, ariaLabel: ariaLabel(direction) }));
82
82
  }
83
83
 
84
- const DataTableRow = forwardRef((props, ref) => {
85
- return (React__default.createElement("tr", Object.assign({}, props, { className: classnames(styles.row, props.className), ref: ref }), props.children));
84
+ const DataTableRow = forwardRef((_a, ref) => {
85
+ var { className } = _a, props = __rest(_a, ["className"]);
86
+ return (React__default.createElement("tr", Object.assign({}, props, { className: classnames(styles.row, props.onClick && styles.clickableRow, className), ref: ref }), props.children));
86
87
  });
87
88
  DataTableRow.displayName = "DataTableRow";
88
89
 
package/dist/styles.css CHANGED
@@ -6702,7 +6702,11 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6702
6702
  position: relative;
6703
6703
  }
6704
6704
 
6705
- .sJQbtw-NEHU-:hover {
6705
+ .sJQbtw-NEHU-.J2p1EeT252A- {
6706
+ cursor: pointer;
6707
+ }
6708
+
6709
+ .kJeYcsgg700- tbody tr.sJQbtw-NEHU-.J2p1EeT252A-:hover {
6706
6710
  background-color: hsl(53, 21%, 93%);
6707
6711
  background-color: var(--color-surface--hover);
6708
6712
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.111.0",
3
+ "version": "6.111.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": "2ead4b3048867c3ba81d72a130480f5a79e1c521"
541
+ "gitHead": "c91a8c3de71324d43190997b0c397ccebd868c04"
542
542
  }