@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.
- package/index.js +47 -47
- package/index.mjs +5865 -5974
- package/lib/NPEAggregator/NPEAggregator.d.ts +5 -9
- package/lib/NPEAggregator/NPEAggregator.types.d.ts +9 -29
- package/lib/NPEAggregator/NPEAggregatorCardAddress/NPEAggregatorCardAddress.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardAddress/types.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardRecommendation/NPEAggregatorCardRecommendation.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardRecommendation/types.d.ts +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/NPEAggregator/NPEAggregatorCardV1/NPEAggregatorCardV1.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV1/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV2/NPEAggregatorCardV2.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV2/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV3/NPEAggregatorCardV3.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV3/types.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV4/NPEAggregatorCardV4.d.ts +0 -2
- package/lib/NPEAggregator/NPEAggregatorCardV4/types.d.ts +0 -2
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { NPEAggregatorProps } from './NPEAggregator.types';
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
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
|
|
8
|
-
readonly
|
|
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
|
|
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
|
|
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:
|
|
49
|
-
variant: '
|
|
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:
|
|
58
|
-
variant: '
|
|
37
|
+
items: NPEAggregatorRecommendationItem[];
|
|
38
|
+
variant: 'profiles_with_written_recommendations';
|
|
59
39
|
});
|
|
60
40
|
export {};
|