@goodhood-web/ui 3.0.0-development.41 → 3.0.0-development.43

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,3 +1,3 @@
1
- import { RadioButtonTypes } from './RadioButton.types';
2
- export declare function RadioButton({ checked, disabled, id, label, onChange, size, value, }: RadioButtonTypes): import("react/jsx-runtime").JSX.Element;
1
+ import { RadioButtonPropsType } from './RadioButton.types';
2
+ export declare function RadioButton({ checked, disabled, id, label, onChange, pill, secondaryText, size, value, }: RadioButtonPropsType): import("react/jsx-runtime").JSX.Element;
3
3
  export default RadioButton;
@@ -1,6 +1,13 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export interface RadioButtonTypes extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
2
+ export type RadioButtonPropsType = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
3
3
  id: string;
4
4
  label: string;
5
- size: 'tiny' | 'small' | 'medium';
6
- }
5
+ } & ({
6
+ pill?: never;
7
+ secondaryText?: never;
8
+ size: 'tiny' | 'small';
9
+ } | {
10
+ pill?: string;
11
+ secondaryText?: string;
12
+ size: 'medium';
13
+ });
@@ -9,7 +9,7 @@ interface NoticePropsBase {
9
9
  onClick: TextButtonProps['onClick'];
10
10
  text: string;
11
11
  };
12
- headline: string;
12
+ headline?: string;
13
13
  icon?: {
14
14
  name: Icon24;
15
15
  size?: '24';
@@ -25,6 +25,7 @@ interface NoticePropsBase {
25
25
  }
26
26
  type NoticeProps = (NoticePropsBase & ({
27
27
  bodyText?: never;
28
+ headline: string;
28
29
  variant?: 'simple';
29
30
  } | {
30
31
  bodyText: string;
@@ -37,6 +38,7 @@ type NoticeProps = (NoticePropsBase & ({
37
38
  variant: 'detailed';
38
39
  } | {
39
40
  bodyText?: never;
41
+ headline: string;
40
42
  variant?: 'simple';
41
43
  }) & {
42
44
  dismissible?: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.41",
3
+ "version": "3.0.0-development.43",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",