@goodhood-web/ui 3.4.0 → 3.5.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.
@@ -19,6 +19,7 @@ interface CommonProps {
19
19
  export interface BaseButtonProps extends ButtonOwnProps, CommonProps {
20
20
  ariaSelected?: boolean;
21
21
  onClick: (event: MouseEvent<HTMLElement>) => void;
22
+ onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
22
23
  }
23
24
  export interface LinkProps extends CommonProps {
24
25
  children?: ReactNode;
@@ -1,3 +1,3 @@
1
1
  import { DropdownItemProps } from './DropdownItem.types';
2
- export declare const DropdownItem: ({ alt, isSelected, label, onClick, src, value, }: DropdownItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DropdownItem: ({ alt, isSelected, label, onClick, onMouseDown, src, userId, value, }: DropdownItemProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DropdownItem;
@@ -4,6 +4,8 @@ export type DropdownItemProps = {
4
4
  isSelected?: boolean;
5
5
  label: string;
6
6
  onClick?: (value: SelectValueType) => void;
7
+ onMouseDown?: (value: SelectValueType) => void;
7
8
  src?: string;
9
+ userId?: number;
8
10
  value: SelectValueType;
9
11
  };
@@ -1,3 +1,3 @@
1
1
  import { TextAreaInputProps } from './TextAreaInput.types';
2
- declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, limitCharInput, name, ref, showInputHints, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, limitCharInput, name, ref, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TextAreaInput;
@@ -24,7 +24,6 @@ export interface CommonTextInputProps extends UseInputParameters {
24
24
  progressBar?: React.ReactNode;
25
25
  readonly?: boolean;
26
26
  role?: 'combobox';
27
- showInputHints?: boolean;
28
27
  wrapperClassName?: string;
29
28
  }
30
29
  export interface TextInputProps extends CommonTextInputProps {
@@ -1,9 +1,14 @@
1
1
  import { NeighbourListItemProps } from './Neighbour/Neighbour.types';
2
+ import { POIListItemProps } from './PointOfInterest/PointOfInterest.types';
2
3
  export declare enum EListItem {
3
4
  neighbour = "neighbour",
4
- notification = "notification"
5
+ notification = "notification",
6
+ poi = "poi"
5
7
  }
6
8
  export type ListItemProps = {
7
9
  data: NeighbourListItemProps;
8
10
  type: EListItem.neighbour;
11
+ } | {
12
+ data: POIListItemProps;
13
+ type: EListItem.poi;
9
14
  };
@@ -0,0 +1,3 @@
1
+ import { POIListItemProps } from './PointOfInterest.types';
2
+ declare const PointOfInterest: ({ address, altText, businessOfferData, businessUrl, category, imageUrl, linkTarget, onClick, recommendationNumber, recommended, showBusinessOffer, showRecommendation, title, }: POIListItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PointOfInterest;
@@ -0,0 +1,25 @@
1
+ export type POIListItemProps = {
2
+ address: string;
3
+ altText?: string;
4
+ businessOfferData?: {
5
+ ctaLabel: string;
6
+ onClick: () => void;
7
+ text: string;
8
+ };
9
+ businessUrl?: string;
10
+ category: string;
11
+ imageUrl: string;
12
+ linkTarget?: string;
13
+ onClick?: () => void;
14
+ showBusinessOffer?: boolean;
15
+ showRecommendation?: boolean;
16
+ title: string;
17
+ } & ({
18
+ recommendationNumber?: never;
19
+ recommended?: never;
20
+ showRecommendation: false;
21
+ } | {
22
+ recommendationNumber: number;
23
+ recommended: boolean;
24
+ showRecommendation: true;
25
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.4.0",
3
+ "version": "3.5.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",