@goodhood-web/nebenan-base 3.0.0-development.56 → 3.0.0-development.58

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,12 +1,8 @@
1
1
  import { NPEAggregatorProps } from './NPEAggregator.types';
2
- import { default as NPEAggregatorCardV1 } from './NPEAggregatorCardV1/NPEAggregatorCardV1';
3
- import { default as NPEAggregatorCardV2 } from './NPEAggregatorCardV2/NPEAggregatorCardV2';
4
- import { default as NPEAggregatorCardV3 } from './NPEAggregatorCardV3/NPEAggregatorCardV3';
5
- import { default as NPEAggregatorCardV4 } from './NPEAggregatorCardV4/NPEAggregatorCardV4';
2
+ import { default as NPEAggregatorCardAddress } from './NPEAggregatorCardAddress/NPEAggregatorCardAddress';
3
+ import { default as NPEAggregatorCardV4 } from './NPEAggregatorCardRecommendation/NPEAggregatorCardRecommendation';
6
4
  export declare const slideComponentMap: {
7
- readonly v1: typeof NPEAggregatorCardV1;
8
- readonly v2: typeof NPEAggregatorCardV2;
9
- readonly v3: typeof NPEAggregatorCardV3;
10
- readonly v4: typeof NPEAggregatorCardV4;
5
+ readonly profiles_with_address: typeof NPEAggregatorCardAddress;
6
+ readonly profiles_with_written_recommendations: typeof NPEAggregatorCardV4;
11
7
  };
12
- export default function NPEAggregator({ className, items, linkLabel, onLinkClick, onSwipe, title, variant, }: NPEAggregatorProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function NPEAggregator({ className, headerClassname, items, linkLabel, onLinkClick, onSwipe, sliderOffsetDesktop, sliderOffsetMobile, title, variant, }: NPEAggregatorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
2
  type NPEAggregatorBaseProps = {
3
3
  className?: string;
4
+ headerClassname?: string;
4
5
  linkLabel: string;
5
6
  onLinkClick: () => void;
6
7
  onSwipe?: (direction: 'next' | 'prev') => void;
8
+ sliderOffsetDesktop?: number;
9
+ sliderOffsetMobile?: number;
7
10
  title: string;
8
11
  };
9
12
  type RenderImageType = ({ className }: {
10
13
  className?: string;
11
14
  }) => ReactNode;
12
- export type NPEv1Item = {
13
- categories: string[];
14
- heartAriaLabel: string;
15
- heartCounter: number;
16
- heartFilled?: boolean;
17
- onCardClick: () => void;
18
- onHeartClick: () => void;
19
- renderImage?: RenderImageType;
20
- title: string;
21
- };
22
- export type NPEv2Item = {
15
+ export type NPEAggregatorAddressItem = {
23
16
  address: string;
24
17
  categories: string[];
25
18
  heartAriaLabel: string;
@@ -29,14 +22,7 @@ export type NPEv2Item = {
29
22
  renderImage?: RenderImageType;
30
23
  title: string;
31
24
  };
32
- export type NPEv3Item = {
33
- businessName: string;
34
- onCardClick: () => void;
35
- renderImage?: RenderImageType;
36
- text: string;
37
- title: string;
38
- };
39
- export type NPEv4Item = {
25
+ export type NPEAggregatorRecommendationItem = {
40
26
  authorName: string;
41
27
  categories: string[];
42
28
  onCardClick: () => void;
@@ -45,16 +31,10 @@ export type NPEv4Item = {
45
31
  title: string;
46
32
  };
47
33
  export type NPEAggregatorProps = (NPEAggregatorBaseProps & {
48
- items: NPEv1Item[];
49
- variant: 'v1';
50
- }) | (NPEAggregatorBaseProps & {
51
- items: NPEv2Item[];
52
- variant: 'v2';
53
- }) | (NPEAggregatorBaseProps & {
54
- items: NPEv3Item[];
55
- variant: 'v3';
34
+ items: NPEAggregatorAddressItem[];
35
+ variant: 'profiles_with_address';
56
36
  }) | (NPEAggregatorBaseProps & {
57
- items: NPEv4Item[];
58
- variant: 'v4';
37
+ items: NPEAggregatorRecommendationItem[];
38
+ variant: 'profiles_with_written_recommendations';
59
39
  });
60
40
  export {};
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardAddressProps } from './types';
2
+ export default function NPEAggregatorCardAddress({ address, categories, heartFilled, onCardClick, onHeartClick, renderImage, title, }: NPEAggregatorCardAddressProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorAddressItem } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardAddressProps = NPEAggregatorAddressItem;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorCardRecommendationProps } from './types';
2
+ export default function NPEAggregatorCardRecommendation({ authorName, categories, onCardClick, renderImage, text, title, }: NPEAggregatorCardRecommendationProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NPEAggregatorRecommendationItem } from '../NPEAggregator.types';
2
+ export type NPEAggregatorCardRecommendationProps = NPEAggregatorRecommendationItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.0.0-development.56",
3
+ "version": "3.0.0-development.58",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",