@equinor/apollo-components 3.1.7 → 3.1.8

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
@@ -3367,7 +3367,7 @@ var import_jsx_runtime19 = require("react/jsx-runtime");
3367
3367
  function canUseContainStrict(height) {
3368
3368
  if (!height)
3369
3369
  return false;
3370
- const heightIsANumber = !isNaN(parseFloat(height));
3370
+ const heightIsANumber = !isNaN(Number(height)) && !isNaN(parseFloat(height));
3371
3371
  if (heightIsANumber)
3372
3372
  return false;
3373
3373
  const heightIsPercentage = height.endsWith("%");
package/dist/index.mjs CHANGED
@@ -3331,7 +3331,7 @@ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
3331
3331
  function canUseContainStrict(height) {
3332
3332
  if (!height)
3333
3333
  return false;
3334
- const heightIsANumber = !isNaN(parseFloat(height));
3334
+ const heightIsANumber = !isNaN(Number(height)) && !isNaN(parseFloat(height));
3335
3335
  if (heightIsANumber)
3336
3336
  return false;
3337
3337
  const heightIsPercentage = height.endsWith("%");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",