@goodhood-web/ui 4.2.0 → 4.3.0-development.2

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,6 @@
1
1
  export default interface InputDetailsProps {
2
2
  charCount?: number;
3
3
  charLimit?: number;
4
- errorText?: string;
4
+ errorText?: string | string[];
5
5
  hintText?: string;
6
6
  }
@@ -13,7 +13,7 @@ export interface CommonTextInputProps extends UseInputParameters {
13
13
  autocomplete?: string;
14
14
  charLimit?: number;
15
15
  colorScheme?: 'outline' | 'filled';
16
- errorText?: string;
16
+ errorText?: string | string[];
17
17
  hintText?: string;
18
18
  id: string;
19
19
  label: string;
@@ -1,2 +1,5 @@
1
- declare const Loader: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const Loader: ({ className, size, }: {
2
+ className?: string;
3
+ size?: "medium" | "small";
4
+ }) => import("react/jsx-runtime").JSX.Element;
2
5
  export default Loader;
@@ -1,10 +1,9 @@
1
+ import { ButtonSecondaryProps } from '../../../Atoms/Buttons/ButtonSecondary/ButtonSecondary.types';
1
2
  export interface NeighbourListItemBaseProps {
2
3
  address: string;
3
4
  altText: string;
4
- callToAction?: {
5
+ callToAction?: ButtonSecondaryProps & {
5
6
  label: string;
6
- target?: string;
7
- url: string;
8
7
  };
9
8
  fullName: string;
10
9
  imageUrl: string;
@@ -1,3 +1,3 @@
1
1
  import { default as SnackbarProps } from './Snackbar.types';
2
- declare const Snackbar: ({ color, dismissable, isOpen, leftIconClassName, leftIconLarge, leftIconSmall, onClick, onClose, rightIconClassName, rightIconLarge, rightIconSmall, textButton, textLabel, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Snackbar: ({ color, dismissable, hideDuration, isNested, isOpen, leftIconClassName, leftIconLarge, leftIconSmall, onClick, onClose, rightIconClassName, rightIconLarge, rightIconSmall, textButton, textLabel, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Snackbar;
@@ -3,6 +3,8 @@ import { Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
3
3
  export default interface SnackbarProps {
4
4
  color?: TextButtonProps['color'];
5
5
  dismissable?: boolean;
6
+ hideDuration?: number;
7
+ isNested?: boolean;
6
8
  isOpen: boolean;
7
9
  leftIconClassName?: string;
8
10
  leftIconLarge?: Icon32;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-development.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",