@goodhood-web/ui 4.4.0 → 4.5.0-development.1

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
- export type Color = 'teal' | 'lavender' | 'grey';
1
+ export type Color = 'teal' | 'lavender' | 'grey' | 'inherit';
2
2
  interface CommonProps {
3
3
  className?: string;
4
4
  label: string;
@@ -1,3 +1,3 @@
1
1
  import { StickerProps } from './Sticker.types';
2
- declare const Sticker: ({ className, color, icon, size, value }: StickerProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Sticker: ({ className, color, disabled, icon, iconSize, size, value, }: StickerProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Sticker;
@@ -1,12 +1,15 @@
1
- import { Icon32 } from '../../../Base/Icon/Icon.types';
1
+ import { Icon16, Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
2
2
  export type StickerProps = {
3
3
  className?: string;
4
4
  color: 'green' | 'pink' | 'lavender' | 'teal' | 'tealAlt' | 'orange' | 'grey' | 'lightGrey' | 'darkGrey';
5
+ disabled?: boolean;
5
6
  size: 'tiny' | 'small' | 'medium' | 'large';
6
7
  } & ({
7
8
  icon?: never;
9
+ iconSize?: never;
8
10
  value: number;
9
11
  } | {
10
- icon: Icon32;
12
+ icon: Icon32 | Icon24 | Icon16;
13
+ iconSize?: '32' | '24' | '16';
11
14
  value?: never;
12
15
  });
@@ -0,0 +1,11 @@
1
+ import { Icon16, Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
2
+ export declare const getIconProps: (size: "16" | "24" | "32", name: string) => {
3
+ name: Icon16;
4
+ size: "16";
5
+ } | {
6
+ name: Icon24;
7
+ size: "24";
8
+ } | {
9
+ name: Icon32;
10
+ size: "32";
11
+ };
@@ -6,6 +6,7 @@ type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
6
6
  ariaLabel?: string;
7
7
  ariaLabelledBy?: string;
8
8
  className?: string;
9
+ defaultSize?: boolean;
9
10
  iconClassName?: string;
10
11
  loading?: boolean;
11
12
  type?: 'button' | 'submit' | 'reset';
@@ -0,0 +1,3 @@
1
+ import { RadioButtonSpecialProps } from './RadioButtonSpecial.types';
2
+ export declare function RadioButtonSpecial({ checked, className, disabled, id, infoIcon, label, name, onChange, onClick, pill, size, sticker, text, title, value, }: RadioButtonSpecialProps): import("react/jsx-runtime").JSX.Element;
3
+ export default RadioButtonSpecial;
@@ -0,0 +1,17 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ import { StickerProps } from '../../Badges/Sticker/Sticker.types';
3
+ export type RadioButtonSpecialProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'disabled' | 'id' | 'onChange' | 'value' | 'onClick' | 'name'> & {
4
+ className?: string;
5
+ infoIcon?: React.ReactNode;
6
+ label?: string;
7
+ sticker?: StickerProps;
8
+ title: string;
9
+ } & ({
10
+ pill?: never;
11
+ size: 'tiny' | 'small';
12
+ text?: never;
13
+ } | {
14
+ pill?: string;
15
+ size: 'medium';
16
+ text?: string;
17
+ });
@@ -5,5 +5,17 @@ declare const IconsMap: {
5
5
  desc?: string;
6
6
  descId?: string;
7
7
  }>;
8
+ sparkles_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
9
+ title?: string;
10
+ titleId?: string;
11
+ desc?: string;
12
+ descId?: string;
13
+ }>;
14
+ star_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
15
+ title?: string;
16
+ titleId?: string;
17
+ desc?: string;
18
+ descId?: string;
19
+ }>;
8
20
  };
9
21
  export default IconsMap;
@@ -6,6 +6,18 @@ declare const iconsMap: {
6
6
  desc?: string;
7
7
  descId?: string;
8
8
  }>;
9
+ sparkles_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
10
+ title?: string;
11
+ titleId?: string;
12
+ desc?: string;
13
+ descId?: string;
14
+ }>;
15
+ star_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
16
+ title?: string;
17
+ titleId?: string;
18
+ desc?: string;
19
+ descId?: string;
20
+ }>;
9
21
  };
10
22
  '24': {
11
23
  readonly bookmark_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
@@ -63,6 +63,18 @@ declare const iconsMap: {
63
63
  desc?: string;
64
64
  descId?: string;
65
65
  }>;
66
+ sparkles_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
67
+ title?: string;
68
+ titleId?: string;
69
+ desc?: string;
70
+ descId?: string;
71
+ }>;
72
+ star_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
73
+ title?: string;
74
+ titleId?: string;
75
+ desc?: string;
76
+ descId?: string;
77
+ }>;
66
78
  };
67
79
  '24': {
68
80
  readonly bookmark_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
@@ -107,6 +119,12 @@ declare const iconsMap: {
107
119
  };
108
120
  outline: {
109
121
  '16': {
122
+ arrow_up: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
123
+ title?: string;
124
+ titleId?: string;
125
+ desc?: string;
126
+ descId?: string;
127
+ }>;
110
128
  chevron_down: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
111
129
  title?: string;
112
130
  titleId?: string;
@@ -1,4 +1,10 @@
1
1
  declare const IconsMap: {
2
+ arrow_up: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ titleId?: string;
5
+ desc?: string;
6
+ descId?: string;
7
+ }>;
2
8
  chevron_down: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
3
9
  title?: string;
4
10
  titleId?: string;
@@ -1,5 +1,11 @@
1
1
  declare const iconsMap: {
2
2
  '16': {
3
+ arrow_up: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
4
+ title?: string;
5
+ titleId?: string;
6
+ desc?: string;
7
+ descId?: string;
8
+ }>;
3
9
  chevron_down: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
4
10
  title?: string;
5
11
  titleId?: string;
@@ -7,6 +7,7 @@ interface NoticePropsBase {
7
7
  cta?: {
8
8
  color?: TextButtonProps['color'];
9
9
  onClick: TextButtonProps['onClick'];
10
+ rightIcon?: TextButtonProps['rightIcon'];
10
11
  text: string;
11
12
  };
12
13
  headline?: string;
@@ -1,6 +1,7 @@
1
1
  import { ChangeEvent, ReactNode } from 'react';
2
2
  export interface RadioButtonClusterTypes {
3
3
  children: ReactNode;
4
+ className?: string;
4
5
  disabled?: boolean;
5
6
  onChange: (event: ChangeEvent<HTMLInputElement>) => void;
6
7
  value?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "4.4.0",
3
+ "version": "4.5.0-development.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",