reshaped 3.7.0 → 3.7.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.
@@ -2,6 +2,6 @@ declare const useToggle: (defaultValue?: boolean) => {
2
2
  active: boolean;
3
3
  activate: () => void;
4
4
  deactivate: () => void;
5
- toggle: (targetValue?: boolean) => void;
5
+ toggle: (targetValue?: any) => void;
6
6
  };
7
7
  export default useToggle;
@@ -8,6 +8,7 @@ const useToggle = (defaultValue) => {
8
8
  const deactivate = React.useCallback(() => {
9
9
  setActive(false);
10
10
  }, []);
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
12
  const toggle = React.useCallback((targetValue) => {
12
13
  // Checking the targetValue type for backwards compatibility if something like handler events
13
14
  // are passed automatically e.g. onClick={toggle}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reshaped",
3
3
  "description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
4
- "version": "3.7.0",
4
+ "version": "3.7.1",
5
5
  "license": "MIT",
6
6
  "email": "hello@reshaped.so",
7
7
  "homepage": "https://reshaped.so",