@oc-digital/react-component-library 4.3.2-beta.2 → 4.8.2-0

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,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { IButtonProps } from "./Button.types";
3
- declare function Button<C extends React.ElementType>({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps<C>): React.JSX.Element | null;
3
+ declare function Button({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps): React.JSX.Element | null;
4
4
  export default Button;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IAuthoriserProp } from "../globals";
3
3
  import { ButtonProps } from "@mui/material/Button";
4
- export type IButtonProps<C extends React.ElementType> = ButtonProps<C, {
4
+ export type IButtonProps<C extends React.ElementType = React.ElementType> = ButtonProps<C, {
5
5
  component?: C;
6
6
  }> & IAuthoriserProp & {
7
7
  loading?: boolean;