@equinor/apollo-components 1.6.0 → 1.6.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.
package/dist/index.js CHANGED
@@ -222,6 +222,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
222
222
  var StyledStickyCell = (0, import_styled_components6.default)(StickyCell)`
223
223
  background-clip: padding-box;
224
224
  ${leftCellShadow}
225
+ ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor} !important;` : ``}
225
226
  `;
226
227
  var StyledCell = (0, import_styled_components6.default)(import_eds_core_react4.Table.Cell)`
227
228
  ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor} !important;` : ``}
@@ -549,6 +550,8 @@ function BasicTable({ table, config, stickyHeader, isLoading }) {
549
550
  }),
550
551
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react10.Table.Body, {
551
552
  children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_eds_core_react10.Table.Row, {
553
+ active: row.getIsSelected(),
554
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
552
555
  onClick: () => {
553
556
  var _a;
554
557
  return (_a = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a.call(config, row);
@@ -838,6 +841,7 @@ function VirtualTable({ table, config, containerRef, ...props }) {
838
841
  const row = rows[virtualRow.index];
839
842
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_eds_core_react15.Table.Row, {
840
843
  active: row.getIsSelected(),
844
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
841
845
  onClick: () => {
842
846
  var _a2;
843
847
  return (_a2 = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a2.call(config, row);
package/dist/index.mjs CHANGED
@@ -176,6 +176,7 @@ import { jsx as jsx4 } from "react/jsx-runtime";
176
176
  var StyledStickyCell = styled5(StickyCell)`
177
177
  background-clip: padding-box;
178
178
  ${leftCellShadow}
179
+ ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor} !important;` : ``}
179
180
  `;
180
181
  var StyledCell = styled5(Table2.Cell)`
181
182
  ${(props) => props.backgroundColor ? `background-color: ${props.backgroundColor} !important;` : ``}
@@ -511,6 +512,8 @@ function BasicTable({ table, config, stickyHeader, isLoading }) {
511
512
  }),
512
513
  /* @__PURE__ */ jsx11(EdsTable.Body, {
513
514
  children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ jsx11(EdsTable.Row, {
515
+ active: row.getIsSelected(),
516
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
514
517
  onClick: () => {
515
518
  var _a;
516
519
  return (_a = config == null ? void 0 : config.onRowClick) == null ? void 0 : _a.call(config, row);
@@ -800,6 +803,7 @@ function VirtualTable({ table, config, containerRef, ...props }) {
800
803
  const row = rows[virtualRow.index];
801
804
  return /* @__PURE__ */ jsx16(Table8.Row, {
802
805
  active: row.getIsSelected(),
806
+ style: { cursor: (config == null ? void 0 : config.onRowClick) ? "pointer" : "initial" },
803
807
  onClick: () => {
804
808
  var _a2;
805
809
  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.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",