@equinor/apollo-components 1.6.0 → 1.6.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.
package/dist/index.js CHANGED
@@ -549,6 +549,8 @@ function BasicTable({ table, config, stickyHeader, isLoading }) {
549
549
  }),
550
550
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react10.Table.Body, {
551
551
  children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react10.Table.Row, {
552
+ active: row.getIsSelected(),
553
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
552
554
  onClick: () => {
553
555
  var _a;
554
556
  return (_a = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a.call(config, row);
@@ -838,6 +840,7 @@ function VirtualTable({ table, config, containerRef, ...props }) {
838
840
  const row = rows[virtualRow.index];
839
841
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_eds_core_react15.Table.Row, {
840
842
  active: row.getIsSelected(),
843
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
841
844
  onClick: () => {
842
845
  var _a2;
843
846
  return (_a2 = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a2.call(config, row);
package/dist/index.mjs CHANGED
@@ -511,6 +511,8 @@ function BasicTable({ table, config, stickyHeader, isLoading }) {
511
511
  }),
512
512
  /* @__PURE__ */ jsx11(EdsTable.Body, {
513
513
  children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ jsx11(EdsTable.Row, {
514
+ active: row.getIsSelected(),
515
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
514
516
  onClick: () => {
515
517
  var _a;
516
518
  return (_a = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a.call(config, row);
@@ -800,6 +802,7 @@ function VirtualTable({ table, config, containerRef, ...props }) {
800
802
  const row = rows[virtualRow.index];
801
803
  return /* @__PURE__ */ jsx16(Table8.Row, {
802
804
  active: row.getIsSelected(),
805
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
803
806
  onClick: () => {
804
807
  var _a2;
805
808
  return (_a2 = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a2.call(config, row);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",