pixel-react 1.8.6 → 1.8.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.8.6",
4
+ "version": "1.8.7",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "vite": "^5.4.10"
48
48
  },
49
49
  "peerDependencies": {
50
- "react": "18.2.0",
51
- "react-dom": "18.2.0"
50
+ "react": "^18.2.0",
51
+ "react-dom": "^18.2.0"
52
52
  },
53
53
  "scripts": {
54
54
  "storybook": "storybook dev -p 6006",
@@ -1,4 +1,4 @@
1
- import { forwardRef, memo } from 'react';
1
+ import { forwardRef } from 'react';
2
2
  import './Button.scss';
3
3
  import '../../assets/styles/_colors.scss';
4
4
  import Icon from '../Icon';
@@ -6,8 +6,7 @@ import { ButtonProps } from './types';
6
6
  import classNames from 'classnames';
7
7
  import Typography from '../Typography';
8
8
 
9
- const areEqual = (prevProps: ButtonProps, nextProps: ButtonProps) =>
10
- prevProps.selectedFile?.name === nextProps.selectedFile?.name;
9
+
11
10
 
12
11
  const Button = forwardRef<HTMLButtonElement, ButtonProps>(
13
12
  (
@@ -88,4 +87,4 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
88
87
  );
89
88
  }
90
89
  );
91
- export default memo(Button, areEqual);
90
+ export default Button;
@@ -1,9 +1,8 @@
1
- import { memo, type FC } from 'react'
1
+ import { type FC } from 'react'
2
2
  import { ChooseFileProps } from './types'
3
3
  import Button from '../Button'
4
4
 
5
- const areEqual = (prevProps: ChooseFileProps, nextProps: ChooseFileProps) =>
6
- prevProps.selectedFile?.name === nextProps.selectedFile?.name;
5
+
7
6
 
8
7
  const ChooseFile:FC<ChooseFileProps> = ({
9
8
  variant = 'primary',
@@ -43,4 +42,4 @@ const ChooseFile:FC<ChooseFileProps> = ({
43
42
  )
44
43
  }
45
44
 
46
- export default memo(ChooseFile, areEqual);
45
+ export default ChooseFile;