@equinor/apollo-components 3.2.0-fix.0 → 3.2.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
@@ -2792,6 +2792,7 @@ var import_eds_core_react8 = require("@equinor/eds-core-react");
2792
2792
  var import_react2 = require("react");
2793
2793
  var import_jsx_runtime9 = require("react/jsx-runtime");
2794
2794
  function PopoverCell(props) {
2795
+ var _a, _b;
2795
2796
  const [open, setOpen] = (0, import_react2.useState)(false);
2796
2797
  const anchorRef = (0, import_react2.useRef)(null);
2797
2798
  const handleClick = () => setOpen(!open);
@@ -2803,7 +2804,7 @@ function PopoverCell(props) {
2803
2804
  onClick: stopPropagation(handleClick),
2804
2805
  style: { cursor: "pointer" },
2805
2806
  truncate: true,
2806
- children: String(props.value)
2807
+ children: String((_a = props.value) != null ? _a : "")
2807
2808
  }
2808
2809
  ),
2809
2810
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
@@ -2817,7 +2818,7 @@ function PopoverCell(props) {
2817
2818
  placement: "bottom",
2818
2819
  children: [
2819
2820
  props.title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Popover.Title, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Popover.Header, { children: props.title }) }),
2820
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Popover.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Typography, { children: String(props.value) }) })
2821
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Popover.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_eds_core_react8.Typography, { children: String((_b = props.value) != null ? _b : "") }) })
2821
2822
  ]
2822
2823
  }
2823
2824
  )
package/dist/index.mjs CHANGED
@@ -2749,6 +2749,7 @@ import { Popover, Typography } from "@equinor/eds-core-react";
2749
2749
  import { useRef, useState as useState2 } from "react";
2750
2750
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
2751
2751
  function PopoverCell(props) {
2752
+ var _a, _b;
2752
2753
  const [open, setOpen] = useState2(false);
2753
2754
  const anchorRef = useRef(null);
2754
2755
  const handleClick = () => setOpen(!open);
@@ -2760,7 +2761,7 @@ function PopoverCell(props) {
2760
2761
  onClick: stopPropagation(handleClick),
2761
2762
  style: { cursor: "pointer" },
2762
2763
  truncate: true,
2763
- children: String(props.value)
2764
+ children: String((_a = props.value) != null ? _a : "")
2764
2765
  }
2765
2766
  ),
2766
2767
  /* @__PURE__ */ jsxs5(
@@ -2774,7 +2775,7 @@ function PopoverCell(props) {
2774
2775
  placement: "bottom",
2775
2776
  children: [
2776
2777
  props.title && /* @__PURE__ */ jsx9(Popover.Title, { children: /* @__PURE__ */ jsx9(Popover.Header, { children: props.title }) }),
2777
- /* @__PURE__ */ jsx9(Popover.Content, { children: /* @__PURE__ */ jsx9(Typography, { children: String(props.value) }) })
2778
+ /* @__PURE__ */ jsx9(Popover.Content, { children: /* @__PURE__ */ jsx9(Typography, { children: String((_b = props.value) != null ? _b : "") }) })
2778
2779
  ]
2779
2780
  }
2780
2781
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "3.2.0-fix.0",
3
+ "version": "3.2.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",