@synerise/ds-button 0.21.3 → 0.21.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.21.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.4...@synerise/ds-button@0.21.5) (2024-08-19)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-button
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.21.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.3...@synerise/ds-button@0.21.4) (2024-07-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **button:** fix warnings in tests ([3c623c8](https://github.com/synerise/synerise-design/commit/3c623c85d6f9ec4730c153bb67bec8aed2e929c0))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.21.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.2...@synerise/ds-button@0.21.3) (2024-07-15)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-button
package/dist/Button.js CHANGED
@@ -36,13 +36,18 @@ var Button = function Button(_ref) {
36
36
 
37
37
  var _useState2 = useState(false),
38
38
  pressed = _useState2[0],
39
- setPressed = _useState2[1];
39
+ setPressed = _useState2[1]; // @ts-expect-error TS7030: Not all code paths return a value
40
+ // eslint-disable-next-line consistent-return
41
+
40
42
 
41
43
  useEffect(function () {
42
44
  if (rippleClassName !== '') {
43
- setTimeout(function () {
45
+ var rippleAnimation = setTimeout(function () {
44
46
  setRippleClassName('');
45
47
  }, S.RIPPLE_ANIMATION_TIME - RIPPLE_ANIMATION_OFFSET);
48
+ return function () {
49
+ clearTimeout(rippleAnimation);
50
+ };
46
51
  }
47
52
  }, [rippleClassName]);
48
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-button",
3
- "version": "0.21.3",
3
+ "version": "0.21.5",
4
4
  "description": "Button UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-icon": "^0.64.1",
36
+ "@synerise/ds-icon": "^0.65.0",
37
37
  "classnames": "2.3.2"
38
38
  },
39
39
  "peerDependencies": {
@@ -42,5 +42,5 @@
42
42
  "react": ">=16.9.0 <= 17.0.2",
43
43
  "styled-components": "5.0.1"
44
44
  },
45
- "gitHead": "6f4996380356c1e5cb9a9d8b553069ad9cea7c27"
45
+ "gitHead": "2e6de17b64023536c24be8fcb67b1e53e8bffa3d"
46
46
  }