@equinor/eds-core-react 0.41.0 → 0.41.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.
@@ -1274,7 +1274,7 @@ const ToggleButton = /*#__PURE__*/react.forwardRef(function ToggleButton({
1274
1274
  }, [selectedIndexes]);
1275
1275
  function updateProps(child, isSelected, index) {
1276
1276
  const childElement = child;
1277
- if ( /*#__PURE__*/react.isValidElement(child) && child.type === Button$2) {
1277
+ if ( /*#__PURE__*/react.isValidElement(child)) {
1278
1278
  const buttonProps = {
1279
1279
  'aria-pressed': isSelected ? true : undefined,
1280
1280
  variant: isSelected ? 'contained' : 'outlined',
@@ -6193,7 +6193,8 @@ const Snackbar$1 = /*#__PURE__*/react.forwardRef(function Snackbar({
6193
6193
  }, autoHideDuration);
6194
6194
  }
6195
6195
  return () => clearTimeout(timer.current);
6196
- }, [open, setVisible, autoHideDuration, onClose]);
6196
+ // eslint-disable-next-line react-hooks/exhaustive-deps
6197
+ }, [open, autoHideDuration]);
6197
6198
  const props = {
6198
6199
  ref,
6199
6200
  ...rest
@@ -1,5 +1,4 @@
1
1
  import { forwardRef, useState, useEffect, Children, isValidElement, cloneElement } from 'react';
2
- import { Button } from '../Button.js';
3
2
  import { jsx } from 'react/jsx-runtime';
4
3
  import { Tooltip } from '../../Tooltip/Tooltip.js';
5
4
  import { ButtonGroup } from '../ButtonGroup/ButtonGroup.js';
@@ -19,7 +18,7 @@ const ToggleButton = /*#__PURE__*/forwardRef(function ToggleButton({
19
18
  }, [selectedIndexes]);
20
19
  function updateProps(child, isSelected, index) {
21
20
  const childElement = child;
22
- if ( /*#__PURE__*/isValidElement(child) && child.type === Button) {
21
+ if ( /*#__PURE__*/isValidElement(child)) {
23
22
  const buttonProps = {
24
23
  'aria-pressed': isSelected ? true : undefined,
25
24
  variant: isSelected ? 'contained' : 'outlined',
@@ -52,7 +52,8 @@ const Snackbar = /*#__PURE__*/forwardRef(function Snackbar({
52
52
  }, autoHideDuration);
53
53
  }
54
54
  return () => clearTimeout(timer.current);
55
- }, [open, setVisible, autoHideDuration, onClose]);
55
+ // eslint-disable-next-line react-hooks/exhaustive-deps
56
+ }, [open, autoHideDuration]);
56
57
  const props = {
57
58
  ref,
58
59
  ...rest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-core-react",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "The React implementation of the Equinor Design System",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -89,8 +89,8 @@
89
89
  "downshift": "9.0.7",
90
90
  "react-aria": "^3.34.1",
91
91
  "@equinor/eds-tokens": "0.9.2",
92
- "@equinor/eds-utils": "0.8.5",
93
- "@equinor/eds-icons": "^0.21.0"
92
+ "@equinor/eds-icons": "^0.21.0",
93
+ "@equinor/eds-utils": "0.8.5"
94
94
  },
95
95
  "scripts": {
96
96
  "build": "rollup -c --bundleConfigAsCjs && tsc -p tsconfig.build.json",