@goodhood-web/ui 1.12.0-development.2 → 1.12.0-development.4

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.
@@ -20,5 +20,12 @@ export interface LinkProps extends CommonProps {
20
20
  rel?: string;
21
21
  target?: string;
22
22
  }
23
+ export interface ButtonVariationProps {
24
+ fullWidth?: boolean;
25
+ loading?: boolean;
26
+ size?: 'small' | 'medium' | 'large' | 'extraLarge';
27
+ target?: string;
28
+ text?: string;
29
+ }
23
30
  export type ButtonProps = BaseButtonProps | LinkProps;
24
31
  export {};
@@ -1,12 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { ButtonProps } from '../Button/Button.types';
2
+ import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
3
3
 
4
- export interface ButtonPrimaryProps extends Omit<ButtonProps, 'children'> {
4
+ export interface ButtonPrimaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
5
5
  children?: ReactNode;
6
6
  color?: 'highlight' | 'primary' | 'transparent';
7
- fullWidth?: boolean;
8
- loading?: boolean;
9
- size?: 'tiny' | 'small' | 'medium' | 'large';
10
- target?: string;
11
- text?: string;
12
7
  }
@@ -1,12 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { ButtonProps } from '../Button/Button.types';
2
+ import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
3
3
 
4
- export interface ButtonSecondaryProps extends Omit<ButtonProps, 'children'> {
4
+ export interface ButtonSecondaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
5
5
  children?: ReactNode;
6
- color?: 'green' | 'pink' | 'grey';
7
- fullWidth?: boolean;
8
- loading?: boolean;
9
- size?: 'tiny' | 'small' | 'medium' | 'large';
10
- target?: string;
11
- text?: string;
6
+ color?: 'green' | 'pink' | 'grey' | 'teal' | 'lavender' | 'orange';
12
7
  }
@@ -1,12 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { ButtonProps } from '../Button/Button.types';
2
+ import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
3
3
 
4
- export interface ButtonTertiaryProps extends Omit<ButtonProps, 'children'> {
4
+ export interface ButtonTertiaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
5
5
  children?: ReactNode;
6
- color?: 'green' | 'pink' | 'blue';
7
- fullWidth?: boolean;
8
- loading?: boolean;
9
- size?: 'tiny' | 'small' | 'medium' | 'large';
10
- target?: string;
11
- text?: string;
6
+ color?: 'green' | 'pink' | 'blue' | 'deepPurple';
12
7
  }
@@ -1,5 +1,5 @@
1
- import { ButtonProps } from '@mui/base';
2
1
  import { Icon32 } from '../../../../Base/Icon/Icon.types';
2
+ import { ButtonProps } from '../../Button/Button.types';
3
3
 
4
4
  export default interface MenuTileProps extends Omit<ButtonProps, 'children'> {
5
5
  fullWidth?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.12.0-development.2",
3
+ "version": "1.12.0-development.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {