fone-design-system_v2 1.0.70 → 1.0.72

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.
@@ -1,6 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonProps as MuiButtonProps } from '@mui/material';
3
- export interface ButtonProps extends MuiButtonProps<"button"> {
2
+ import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
3
+ type MuiColor = NonNullable<MuiButtonProps["color"]>;
4
+ type MuiSize = NonNullable<MuiButtonProps["size"]>;
5
+ type DSButtonSize = MuiSize | "xxsmall" | "xsmall";
6
+ type DSButtonColor = MuiColor | string;
7
+ export interface ButtonProps extends Omit<MuiButtonProps<"button">, "color" | "size"> {
8
+ color?: DSButtonColor;
9
+ size?: DSButtonSize;
4
10
  iconOnly?: boolean;
5
11
  }
6
12
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;