@mycause/ui 1.1.8 → 1.1.10
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 React from "react";
|
|
2
|
+
import { HybridNavigationLink } from "./nav-list";
|
|
3
|
+
import { NavMenuProps } from "./nav";
|
|
4
|
+
export type NavigationExpandedProps = {
|
|
5
|
+
links?: Array<HybridNavigationLink>;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
onRequestClose: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
menu: NavMenuProps;
|
|
10
|
+
};
|
|
11
|
+
declare function NavigationExpandedCharityV2({ children, onRequestClose, className, menu, }: NavigationExpandedProps): React.JSX.Element;
|
|
12
|
+
export default NavigationExpandedCharityV2;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ColorSpecifier } from "../../theme/theme";
|
|
3
3
|
import { ButtonProps } from "../button/button";
|
|
4
|
-
import NavigationMenu from "./nav-menu";
|
|
5
4
|
import { HybridNavigationLink } from "./nav-list";
|
|
6
5
|
import { UserData } from "./nav-user-menu";
|
|
7
6
|
import { UserMenuItemWithSubmenu } from "./nav-user-menu-items";
|
|
8
|
-
type
|
|
7
|
+
export type NavMenuProps = {
|
|
9
8
|
id: string;
|
|
10
9
|
label: React.ReactNode;
|
|
11
10
|
analyticsId?: string;
|
|
@@ -16,7 +15,13 @@ type NavigationMenu = {
|
|
|
16
15
|
action?: HybridNavigationLink;
|
|
17
16
|
actionRaised?: HybridNavigationLink;
|
|
18
17
|
loginRaised?: HybridNavigationLink | null;
|
|
18
|
+
fundraisingRaised?: HybridNavigationLink;
|
|
19
19
|
onClick?: () => void;
|
|
20
|
+
imageBackground?: {
|
|
21
|
+
desktop?: string;
|
|
22
|
+
tablet?: string;
|
|
23
|
+
mobile?: string;
|
|
24
|
+
} | string;
|
|
20
25
|
};
|
|
21
26
|
type SearchAction = {
|
|
22
27
|
analyticsId?: string;
|
|
@@ -36,7 +41,7 @@ type StatsItemProps = {
|
|
|
36
41
|
};
|
|
37
42
|
export type NavigationProps = {
|
|
38
43
|
logo?: React.ReactNode;
|
|
39
|
-
menus?: Array<
|
|
44
|
+
menus?: Array<NavMenuProps>;
|
|
40
45
|
links?: Array<HybridNavigationLink>;
|
|
41
46
|
stats?: Array<StatsItemProps>;
|
|
42
47
|
cta?: ButtonProps | null;
|