@goodhood-web/nebenan-base 2.1.0-development.10 → 2.1.0-development.12

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