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

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.
@@ -2,7 +2,7 @@ import { 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
- size: 'small' | 'medium' | 'large';
5
+ size: 'tiny' | 'small' | 'medium' | 'large';
6
6
  } & ({
7
7
  icon?: never;
8
8
  value: number;
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
2
2
  import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
3
3
  export interface ButtonPrimaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
4
4
  children?: ReactNode;
5
- color?: 'highlight' | 'primary' | 'transparent';
5
+ color?: 'highlight' | 'primary' | 'transparent' | 'teal';
6
6
  }
@@ -4,7 +4,7 @@ import { NotificationBubbleProps } from '../../NotificationBubble/NotificationBu
4
4
  import { ButtonProps } from '../Button/Button.types';
5
5
  export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
6
6
  className?: string;
7
- color: 'green' | 'blue' | 'deepPurple' | 'pinkLight' | 'pinkDark' | 'default';
7
+ color: 'green' | 'blue' | 'deepPurple' | 'pinkLight' | 'pinkDark' | 'default' | 'teal';
8
8
  inline?: boolean;
9
9
  leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
10
10
  rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
@@ -1,3 +1,3 @@
1
1
  import { ContentCreatorTileProps } from './ContentCreatorTile.types';
2
- declare const ContentCreatorTile: ({ description, headline, isActive, isPending, onClick, selected, sticker, }: ContentCreatorTileProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ContentCreatorTile: ({ dataTestId, description, headline, isActive, isPending, onClick, selected, sticker, }: ContentCreatorTileProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ContentCreatorTile;
@@ -1,6 +1,7 @@
1
1
  import { StickerProps } from '../../../Badges/Sticker/Sticker.types';
2
2
  import { BaseButtonProps } from '../../Button/Button.types';
3
3
  export interface ContentCreatorTileProps {
4
+ dataTestId?: string;
4
5
  description?: string;
5
6
  headline: string;
6
7
  isActive: boolean;
@@ -1,3 +1,5 @@
1
1
  import { default as DateInputProps } from './DateInput.types';
2
- declare const DateInput: ({ dateFormat, label, minDate, onChange, size, withPortal, }: DateInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DateInput: ({ dateFormat, errorText, label, minDate, onChange, size, value, withPortal, }: DateInputProps & {
3
+ value?: Date | null;
4
+ }) => import("react/jsx-runtime").JSX.Element;
3
5
  export default DateInput;
@@ -1,9 +1,11 @@
1
1
  import { TextInputProps } from '../../TextInput/TextInput.types';
2
2
  export default interface DateInputProps {
3
3
  dateFormat?: 'dd. MMMM' | 'dd. MMMM YYYY' | 'dd.MM.' | 'dd.MM.YY' | 'dd.MM.YYYY';
4
+ errorText?: string;
4
5
  label: string;
5
6
  minDate?: Date;
6
7
  onChange?: (date: Date) => void;
7
8
  size?: TextInputProps['size'];
9
+ value?: Date | null;
8
10
  withPortal?: boolean;
9
11
  }
@@ -1,3 +1,3 @@
1
1
  import { default as TimeInputProps } from './TimeInput.types';
2
- declare const TimeInput: ({ interval, label, minDate, onChange, size, withPortal, }: TimeInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TimeInput: ({ errorText, interval, label, minDate, onChange, size, value, withPortal, }: TimeInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TimeInput;
@@ -1,10 +1,12 @@
1
1
  import { NearestMinutes } from 'date-fns';
2
2
  import { TextInputProps } from '../../TextInput/TextInput.types';
3
3
  export default interface TimeInputProps {
4
- interval?: Extract<NearestMinutes, 15 | 30>;
4
+ errorText?: string;
5
+ interval?: Extract<NearestMinutes, 15 | 30 | 5>;
5
6
  label: string;
6
7
  minDate?: Date;
7
8
  onChange?: (date: Date) => void;
8
9
  size?: TextInputProps['size'];
10
+ value?: Date | null;
9
11
  withPortal?: boolean;
10
12
  }
@@ -38,6 +38,7 @@ export interface TextInputProps extends CommonTextInputProps {
38
38
  ariaHaspopup?: boolean;
39
39
  ref?: ForwardedRef<null>;
40
40
  });
41
+ iconRight?: IconProps;
41
42
  inputFieldType?: HTMLInputTypeAttribute;
42
43
  size?: 'medium' | 'large' | 'small';
43
44
  }
@@ -143,6 +143,12 @@ declare const iconsMap: {
143
143
  desc?: string;
144
144
  descId?: string;
145
145
  }>;
146
+ euro: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
147
+ title?: string;
148
+ titleId?: string;
149
+ desc?: string;
150
+ descId?: string;
151
+ }>;
146
152
  external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
147
153
  title?: string;
148
154
  titleId?: string;
@@ -161,6 +167,12 @@ declare const iconsMap: {
161
167
  desc?: string;
162
168
  descId?: string;
163
169
  }>;
170
+ plus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
171
+ title?: string;
172
+ titleId?: string;
173
+ desc?: string;
174
+ descId?: string;
175
+ }>;
164
176
  privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
165
177
  title?: string;
166
178
  titleId?: string;
@@ -35,6 +35,12 @@ declare const IconsMap: {
35
35
  desc?: string;
36
36
  descId?: string;
37
37
  }>;
38
+ euro: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
39
+ title?: string;
40
+ titleId?: string;
41
+ desc?: string;
42
+ descId?: string;
43
+ }>;
38
44
  external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
39
45
  title?: string;
40
46
  titleId?: string;
@@ -53,6 +59,12 @@ declare const IconsMap: {
53
59
  desc?: string;
54
60
  descId?: string;
55
61
  }>;
62
+ plus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
63
+ title?: string;
64
+ titleId?: string;
65
+ desc?: string;
66
+ descId?: string;
67
+ }>;
56
68
  privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
57
69
  title?: string;
58
70
  titleId?: string;
@@ -36,6 +36,12 @@ declare const iconsMap: {
36
36
  desc?: string;
37
37
  descId?: string;
38
38
  }>;
39
+ euro: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
40
+ title?: string;
41
+ titleId?: string;
42
+ desc?: string;
43
+ descId?: string;
44
+ }>;
39
45
  external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
40
46
  title?: string;
41
47
  titleId?: string;
@@ -54,6 +60,12 @@ declare const iconsMap: {
54
60
  desc?: string;
55
61
  descId?: string;
56
62
  }>;
63
+ plus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
64
+ title?: string;
65
+ titleId?: string;
66
+ desc?: string;
67
+ descId?: string;
68
+ }>;
57
69
  privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
58
70
  title?: string;
59
71
  titleId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "4.4.0-development.1",
3
+ "version": "4.4.0-development.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",