@goodhood-web/ui 3.3.0-development.25 → 3.3.0-development.26

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
1
  import { StickerProps } from './Sticker.types';
2
- declare const Sticker: ({ color, icon, size }: StickerProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Sticker: ({ className, color, icon, size }: StickerProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Sticker;
@@ -1,5 +1,6 @@
1
1
  import { Icon32 } from '../../../Base/Icon/Icon.types';
2
2
  export interface StickerProps {
3
+ className?: string;
3
4
  color: 'green' | 'pink' | 'lavender' | 'teal' | 'orange' | 'grey' | 'lightGrey';
4
5
  icon: Icon32;
5
6
  size: 'small' | 'medium' | 'large';
@@ -0,0 +1,3 @@
1
+ import { ContentCreatorTileProps } from './ContentCreatorTile.types';
2
+ declare const ContentCreatorTile: ({ description, headline, isActive, isPending, onClick, selected, sticker, }: ContentCreatorTileProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ContentCreatorTile;
@@ -0,0 +1,11 @@
1
+ import { StickerProps } from '../../../Badges/Sticker/Sticker.types';
2
+ import { BaseButtonProps } from '../../Button/Button.types';
3
+ export interface ContentCreatorTileProps {
4
+ description?: string;
5
+ headline: string;
6
+ isActive: boolean;
7
+ isPending?: boolean;
8
+ onClick?: BaseButtonProps['onClick'];
9
+ selected?: boolean;
10
+ sticker: StickerProps;
11
+ }
@@ -1,3 +1,3 @@
1
1
  import { ImageProps } from './Image.type';
2
- declare const Image: ({ alt, className, src }: ImageProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Image: ({ alt, className, src }: ImageProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default Image;
@@ -2,5 +2,6 @@ import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types
2
2
  import { CommonTextInputProps } from '../TextInput/TextInput.types';
3
3
  export interface TextAreaInputProps extends CommonTextInputProps {
4
4
  attachment?: Pick<IconButtonIcon24Props, 'icon' | 'onClick' | 'ariaLabel' | 'disabled'>[];
5
+ ref?: React.RefObject<HTMLTextAreaElement>;
5
6
  size: 'medium' | 'large';
6
7
  }
@@ -1,3 +1,3 @@
1
1
  import { TextInputProps } from './TextInput.types';
2
- declare const TextInput: ({ ariaDescribedby, ariaExpanded, charLimit, colorScheme, errorText, hintText, icon, iconButton, id, inputFieldType, label, limitCharInput, name, onClick, onKeyDown, readonly, ref, role, showInputHints, size, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default TextInput;
@@ -1,10 +1,16 @@
1
1
  import { UseInputParameters } from '@mui/base';
2
2
  import { ForwardedRef, HTMLInputTypeAttribute, KeyboardEventHandler } from 'react';
3
+ import { CountryCode } from '../../../Base/FlagIcon/FlagIcon.types';
3
4
  import { IconProps } from '../../../Base/Icon/Icon.types';
4
- import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
5
+ import { IconButtonIcon16Props, IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
5
6
  export interface CommonTextInputProps extends UseInputParameters {
7
+ ariaActivedescendant?: string;
8
+ ariaAutocomplete?: 'none' | 'inline' | 'list' | 'both' | undefined;
9
+ ariaControls?: string;
6
10
  ariaDescribedby?: string;
7
11
  ariaExpanded?: boolean;
12
+ autoFocus?: boolean;
13
+ autocomplete?: string;
8
14
  charLimit?: number;
9
15
  colorScheme?: 'outline' | 'filled';
10
16
  errorText?: string;
@@ -14,18 +20,25 @@ export interface CommonTextInputProps extends UseInputParameters {
14
20
  limitCharInput?: boolean;
15
21
  name?: string;
16
22
  onKeyDown?: KeyboardEventHandler;
23
+ placeholder?: string;
24
+ progressBar?: React.ReactNode;
17
25
  readonly?: boolean;
18
- ref?: ForwardedRef<null>;
19
26
  role?: 'combobox';
20
27
  showInputHints?: boolean;
28
+ wrapperClassName?: string;
21
29
  }
22
30
  export interface TextInputProps extends CommonTextInputProps {
31
+ flagIcon?: CountryCode;
23
32
  icon?: IconProps;
24
- iconButton?: IconButtonIcon24Props & {
33
+ iconButton?: (IconButtonIcon24Props & {
25
34
  ariaExpanded?: boolean;
26
35
  ariaHaspopup?: boolean;
27
36
  ref?: ForwardedRef<null>;
28
- };
37
+ }) | (IconButtonIcon16Props & {
38
+ ariaExpanded?: boolean;
39
+ ariaHaspopup?: boolean;
40
+ ref?: ForwardedRef<null>;
41
+ });
29
42
  inputFieldType?: HTMLInputTypeAttribute;
30
- size: 'medium' | 'large' | 'small';
43
+ size?: 'medium' | 'large' | 'small';
31
44
  }
@@ -1,3 +1,3 @@
1
1
  import { ProgressBarProps } from './ProgressBar.types';
2
- export declare const ProgressBar: ({ progress, steps }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ProgressBar: ({ className, progress, steps, type, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ProgressBar;
@@ -1,4 +1,6 @@
1
1
  export type ProgressBarProps = {
2
+ className?: string;
2
3
  progress: number;
3
4
  steps: number;
5
+ type?: 'progress' | 'password';
4
6
  };
@@ -0,0 +1,3 @@
1
+ import { default as FlagIconProps } from './FlagIcon.types';
2
+ declare const FlagIcon: ({ countryCode, disabled }: FlagIconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FlagIcon;
@@ -0,0 +1,6 @@
1
+ import { IconMap } from './icons';
2
+ export type CountryCode = keyof typeof IconMap;
3
+ export default interface FlagIconProps {
4
+ countryCode: CountryCode;
5
+ disabled?: boolean;
6
+ }
@@ -0,0 +1,164 @@
1
+ export declare const IconMap: {
2
+ AT: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ titleId?: string;
5
+ desc?: string;
6
+ descId?: string;
7
+ }>;
8
+ BE: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
9
+ title?: string;
10
+ titleId?: string;
11
+ desc?: string;
12
+ descId?: string;
13
+ }>;
14
+ BG: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
15
+ title?: string;
16
+ titleId?: string;
17
+ desc?: string;
18
+ descId?: string;
19
+ }>;
20
+ CY: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
21
+ title?: string;
22
+ titleId?: string;
23
+ desc?: string;
24
+ descId?: string;
25
+ }>;
26
+ CZ: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
27
+ title?: string;
28
+ titleId?: string;
29
+ desc?: string;
30
+ descId?: string;
31
+ }>;
32
+ DE: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
33
+ title?: string;
34
+ titleId?: string;
35
+ desc?: string;
36
+ descId?: string;
37
+ }>;
38
+ DK: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
39
+ title?: string;
40
+ titleId?: string;
41
+ desc?: string;
42
+ descId?: string;
43
+ }>;
44
+ EE: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
45
+ title?: string;
46
+ titleId?: string;
47
+ desc?: string;
48
+ descId?: string;
49
+ }>;
50
+ ES: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
51
+ title?: string;
52
+ titleId?: string;
53
+ desc?: string;
54
+ descId?: string;
55
+ }>;
56
+ FI: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
57
+ title?: string;
58
+ titleId?: string;
59
+ desc?: string;
60
+ descId?: string;
61
+ }>;
62
+ FR: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
63
+ title?: string;
64
+ titleId?: string;
65
+ desc?: string;
66
+ descId?: string;
67
+ }>;
68
+ GR: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
69
+ title?: string;
70
+ titleId?: string;
71
+ desc?: string;
72
+ descId?: string;
73
+ }>;
74
+ HR: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
75
+ title?: string;
76
+ titleId?: string;
77
+ desc?: string;
78
+ descId?: string;
79
+ }>;
80
+ HU: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
81
+ title?: string;
82
+ titleId?: string;
83
+ desc?: string;
84
+ descId?: string;
85
+ }>;
86
+ IE: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
87
+ title?: string;
88
+ titleId?: string;
89
+ desc?: string;
90
+ descId?: string;
91
+ }>;
92
+ IT: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
93
+ title?: string;
94
+ titleId?: string;
95
+ desc?: string;
96
+ descId?: string;
97
+ }>;
98
+ LT: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
99
+ title?: string;
100
+ titleId?: string;
101
+ desc?: string;
102
+ descId?: string;
103
+ }>;
104
+ LU: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
105
+ title?: string;
106
+ titleId?: string;
107
+ desc?: string;
108
+ descId?: string;
109
+ }>;
110
+ LV: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
111
+ title?: string;
112
+ titleId?: string;
113
+ desc?: string;
114
+ descId?: string;
115
+ }>;
116
+ MT: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
117
+ title?: string;
118
+ titleId?: string;
119
+ desc?: string;
120
+ descId?: string;
121
+ }>;
122
+ NL: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
123
+ title?: string;
124
+ titleId?: string;
125
+ desc?: string;
126
+ descId?: string;
127
+ }>;
128
+ PL: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
129
+ title?: string;
130
+ titleId?: string;
131
+ desc?: string;
132
+ descId?: string;
133
+ }>;
134
+ PT: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
135
+ title?: string;
136
+ titleId?: string;
137
+ desc?: string;
138
+ descId?: string;
139
+ }>;
140
+ RO: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
141
+ title?: string;
142
+ titleId?: string;
143
+ desc?: string;
144
+ descId?: string;
145
+ }>;
146
+ SE: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
147
+ title?: string;
148
+ titleId?: string;
149
+ desc?: string;
150
+ descId?: string;
151
+ }>;
152
+ SI: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
153
+ title?: string;
154
+ titleId?: string;
155
+ desc?: string;
156
+ descId?: string;
157
+ }>;
158
+ SK: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
159
+ title?: string;
160
+ titleId?: string;
161
+ desc?: string;
162
+ descId?: string;
163
+ }>;
164
+ };
@@ -589,6 +589,12 @@ declare const iconsMap: {
589
589
  desc?: string;
590
590
  descId?: string;
591
591
  }>;
592
+ readonly checkmark: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
593
+ title?: string;
594
+ titleId?: string;
595
+ desc?: string;
596
+ descId?: string;
597
+ }>;
592
598
  readonly christmas_tree: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
593
599
  title?: string;
594
600
  titleId?: string;
@@ -95,6 +95,12 @@ declare const IconsMap: {
95
95
  desc?: string;
96
96
  descId?: string;
97
97
  }>;
98
+ readonly checkmark: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
99
+ title?: string;
100
+ titleId?: string;
101
+ desc?: string;
102
+ descId?: string;
103
+ }>;
98
104
  readonly christmas_tree: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
99
105
  title?: string;
100
106
  titleId?: string;
@@ -502,6 +502,12 @@ declare const iconsMap: {
502
502
  desc?: string;
503
503
  descId?: string;
504
504
  }>;
505
+ readonly checkmark: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
506
+ title?: string;
507
+ titleId?: string;
508
+ desc?: string;
509
+ descId?: string;
510
+ }>;
505
511
  readonly christmas_tree: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
506
512
  title?: string;
507
513
  titleId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.3.0-development.25",
3
+ "version": "3.3.0-development.26",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",