@equinor/apollo-components 3.1.2-rowfix.18 → 3.1.2-rowfix.19

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
@@ -1042,7 +1042,7 @@ var DataTableWrapper = import_styled_components16.default.div`
1042
1042
  }
1043
1043
  `;
1044
1044
  function DataTable(props) {
1045
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
1045
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
1046
1046
  const { columns, data, bannerConfig, cellConfig, sorting } = props;
1047
1047
  const [internalColumnVisibility, setInternalColumnVisibility] = (0, import_react7.useState)({});
1048
1048
  const [columnVisibility, setColumnVisibility] = [
@@ -1124,10 +1124,6 @@ function DataTable(props) {
1124
1124
  tableContainerRef,
1125
1125
  props.infiniteScroll
1126
1126
  );
1127
- const [hasRef, setHasRef] = (0, import_react7.useState)(false);
1128
- (0, import_react7.useEffect)(() => {
1129
- setHasRef(Boolean(tableContainerRef.current));
1130
- }, [(_q = tableContainerRef.current) == null ? void 0 : _q.toString()]);
1131
1127
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DataTableWrapper, {
1132
1128
  height: props == null ? void 0 : props.height,
1133
1129
  width: props == null ? void 0 : props.width,
@@ -1141,9 +1137,9 @@ function DataTable(props) {
1141
1137
  }),
1142
1138
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
1143
1139
  ...props.tableContainerProps,
1144
- className: "--table-container " + (((_r = props.tableContainerProps) == null ? void 0 : _r.className) ?? ""),
1140
+ className: "--table-container " + (((_q = props.tableContainerProps) == null ? void 0 : _q.className) ?? ""),
1145
1141
  style: { contain: "strict" },
1146
- onScroll: ((_s = props.tableContainerProps) == null ? void 0 : _s.onScroll) ?? onTableContainerScroll,
1142
+ onScroll: ((_r = props.tableContainerProps) == null ? void 0 : _r.onScroll) ?? onTableContainerScroll,
1147
1143
  ref: (node) => {
1148
1144
  var _a2;
1149
1145
  console.log({ node });
package/dist/index.mjs CHANGED
@@ -999,7 +999,7 @@ var DataTableWrapper = styled16.div`
999
999
  }
1000
1000
  `;
1001
1001
  function DataTable(props) {
1002
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
1002
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
1003
1003
  const { columns, data, bannerConfig, cellConfig, sorting } = props;
1004
1004
  const [internalColumnVisibility, setInternalColumnVisibility] = useState5({});
1005
1005
  const [columnVisibility, setColumnVisibility] = [
@@ -1081,10 +1081,6 @@ function DataTable(props) {
1081
1081
  tableContainerRef,
1082
1082
  props.infiniteScroll
1083
1083
  );
1084
- const [hasRef, setHasRef] = useState5(false);
1085
- useEffect3(() => {
1086
- setHasRef(Boolean(tableContainerRef.current));
1087
- }, [(_q = tableContainerRef.current) == null ? void 0 : _q.toString()]);
1088
1084
  return /* @__PURE__ */ jsxs11(DataTableWrapper, {
1089
1085
  height: props == null ? void 0 : props.height,
1090
1086
  width: props == null ? void 0 : props.width,
@@ -1098,9 +1094,9 @@ function DataTable(props) {
1098
1094
  }),
1099
1095
  /* @__PURE__ */ jsx19("div", {
1100
1096
  ...props.tableContainerProps,
1101
- className: "--table-container " + (((_r = props.tableContainerProps) == null ? void 0 : _r.className) ?? ""),
1097
+ className: "--table-container " + (((_q = props.tableContainerProps) == null ? void 0 : _q.className) ?? ""),
1102
1098
  style: { contain: "strict" },
1103
- onScroll: ((_s = props.tableContainerProps) == null ? void 0 : _s.onScroll) ?? onTableContainerScroll,
1099
+ onScroll: ((_r = props.tableContainerProps) == null ? void 0 : _r.onScroll) ?? onTableContainerScroll,
1104
1100
  ref: (node) => {
1105
1101
  var _a2;
1106
1102
  console.log({ node });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "3.1.2-rowfix.18",
3
+ "version": "3.1.2-rowfix.19",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",