@goodhood-web/nebenan-base 2.1.0-development.1 → 2.1.0-development.11
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.d.ts +2 -1
- package/index.js +56 -30
- package/index.mjs +11772 -7708
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.d.ts +1 -1
- package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types.d.ts +1 -0
- package/lib/MobileLayout/MobileLayout.d.ts +1 -1
- package/lib/MobileLayout/MobileLayout.types.d.ts +1 -0
- package/lib/NPEAggregator/NPEAggregator.d.ts +12 -0
- package/lib/NPEAggregator/NPEAggregator.example.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregator.types.d.ts +59 -0
- package/lib/NPEAggregator/NPEAggregatorCardV1/NPEAggregatorCardV1.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV1/types.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV2/NPEAggregatorCardV2.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV2/types.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV3/NPEAggregatorCardV3.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV3/types.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV4/NPEAggregatorCardV4.d.ts +2 -0
- package/lib/NPEAggregator/NPEAggregatorCardV4/types.d.ts +2 -0
- package/lib/Reactions/ReactionStack/components/ReactionItem/ReactionItem.d.ts +1 -1
- package/lib/utils/breakpoints.d.ts +4 -0
- package/lib/utils/index.d.ts +2 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesktopLayoutTwoColumnProps } from './DesktopLayoutTwoColumn.types';
|
|
2
|
-
declare const DesktopLayoutTwoColumn: ({ children, navbar, right, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const DesktopLayoutTwoColumn: ({ banner, children, navbar, right, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DesktopLayoutTwoColumn;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MobileLayoutProps } from './MobileLayout.types';
|
|
2
|
-
declare const MobileLayout: ({ action, children, footer, header }: MobileLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MobileLayout: ({ action, banner, children, footer, header, }: MobileLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MobileLayout;
|
|
@@ -4,6 +4,7 @@ import { NavBarProps } from '../../../../ui/src/lib/Molecules/Navigation/NavBar/
|
|
|
4
4
|
import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
|
|
5
5
|
export interface MobileLayoutProps {
|
|
6
6
|
action?: ReactElement<IconButtonProps>;
|
|
7
|
+
banner?: ReactElement;
|
|
7
8
|
children: ReactNode;
|
|
8
9
|
footer: ReactElement<NavBarProps>;
|
|
9
10
|
header: ReactElement<MobileHeaderBarProps>;
|
|
@@ -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,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 {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReactionItemProps } from './ReactionItem.types';
|
|
2
|
-
export declare const ReactionItem: ({ count, expanded, onSelect, reaction, selected, size, stack, tooltip, }: ReactionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ReactionItem: ({ activeReaction, count, expanded, onSelect, reaction, selected, size, stack, tooltip, }: ReactionItemProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -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;
|