@goodhood-web/ui 1.12.0-development.20 → 1.12.0-development.21

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,8 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { StickerProps } from '../../../Atoms/Badges/Sticker/Sticker.types';
3
3
  import { ButtonPrimaryProps } from '../../../Atoms/Buttons/ButtonPrimary/ButtonPrimary.types';
4
+ import { ButtonSecondaryProps } from '../../../Atoms/Buttons/ButtonSecondary/ButtonSecondary.types';
5
+ import { ButtonTertiaryProps } from '../../../Atoms/Buttons/ButtonTertiary/ButtonTertiary.types';
4
6
  import { TextButtonProps } from '../../../Atoms/Buttons/TextButton/TextButton.types';
5
7
 
6
8
  type TextButton = Omit<TextButtonProps, 'size'> & {
@@ -9,7 +11,13 @@ type TextButton = Omit<TextButtonProps, 'size'> & {
9
11
  type ButtonPrimary = Omit<ButtonPrimaryProps, 'size'> & {
10
12
  buttonType: 'primary';
11
13
  };
12
- export type ButtonProps = TextButton | ButtonPrimary;
14
+ type ButtonSecondary = Omit<ButtonSecondaryProps, 'size'> & {
15
+ buttonType: 'secondary';
16
+ };
17
+ type ButtonTertiary = Omit<ButtonTertiaryProps, 'size'> & {
18
+ buttonType: 'tertiary';
19
+ };
20
+ export type ButtonProps = TextButton | ButtonPrimary | ButtonSecondary | ButtonTertiary;
13
21
  export default interface EmptyStateProps {
14
22
  buttons?: ButtonProps[];
15
23
  customVisual?: ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.12.0-development.20",
3
+ "version": "1.12.0-development.21",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",