@nulogy/components 6.7.4 → 6.7.5
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/dist/main.js +266 -273
- package/dist/main.module.js +266 -273
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +1 -1
- package/dist/src/NavBar/DesktopMenu.d.ts +3 -2
- package/dist/src/NavBar/MenuTrigger.d.ts +8 -7
- package/dist/src/NavBar/MobileMenu.d.ts +3 -2
- package/dist/src/NavBar/NavBar.d.ts +58 -24
- package/dist/src/NavBar/NavBar.story.d.ts +76 -97
- package/dist/src/NavBar/NavBarDropdownMenu.d.ts +2 -1
- package/dist/src/NavBar/SmallNavBar.d.ts +8 -0
- package/dist/src/NavBar/SubMenuTrigger.d.ts +14 -15
- package/dist/src/NavBar/isValidMenuItem.d.ts +1 -1
- package/dist/src/NavBar/renderSubMenuItems.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from "prop-types";
|
|
2
3
|
declare const DesktopMenu: import("styled-components").StyledComponent<{
|
|
3
4
|
({ menuData, themeColorObject, ...props }: {
|
|
4
5
|
[x: string]: any;
|
|
@@ -14,4 +15,4 @@ declare const DesktopMenu: import("styled-components").StyledComponent<{
|
|
|
14
15
|
themeColorObject: any;
|
|
15
16
|
};
|
|
16
17
|
}, import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
|
|
18
|
+
export default DesktopMenu;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
declare const MenuTrigger: {
|
|
4
|
+
(props: any): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
5
6
|
name: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
6
7
|
"aria-label": PropTypes.Requireable<string>;
|
|
7
8
|
menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
@@ -9,12 +10,12 @@ declare namespace MenuTrigger {
|
|
|
9
10
|
hoverColor: PropTypes.Requireable<string>;
|
|
10
11
|
hoverBackground: PropTypes.Requireable<string>;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
defaultProps: {
|
|
13
14
|
menuData: any;
|
|
14
15
|
"aria-label": any;
|
|
15
16
|
color: string;
|
|
16
17
|
hoverColor: string;
|
|
17
18
|
hoverBackground: string;
|
|
18
19
|
};
|
|
19
|
-
}
|
|
20
|
-
|
|
20
|
+
};
|
|
21
|
+
export default MenuTrigger;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from "prop-types";
|
|
2
3
|
declare const MobileMenu: import("styled-components").StyledComponent<{
|
|
3
4
|
({ menuData, closeMenu, subtext, includeSubtext, themeColorObject, ...props }: {
|
|
4
5
|
[x: string]: any;
|
|
@@ -30,4 +31,4 @@ declare const MobileMenu: import("styled-components").StyledComponent<{
|
|
|
30
31
|
themeColorObject: any;
|
|
31
32
|
};
|
|
32
33
|
}, import("styled-components").DefaultTheme, {}, never>;
|
|
33
|
-
|
|
34
|
+
export default MobileMenu;
|
|
@@ -1,28 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
+
export declare const getThemeColor: (themeColor: any) => any;
|
|
5
|
+
export declare const NavBarBackground: import("styled-components").StyledComponent<React.FunctionComponent<import("../Box/Box").BoxProps>, import("styled-components").DefaultTheme, {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
theme?: DefaultNDSThemeType;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const BrandingLink: ({ to, href, children, ...props }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
to: any;
|
|
12
|
+
href: any;
|
|
13
|
+
children: any;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export declare const MenuDataPropTypes: {
|
|
16
|
+
primaryMenu: PropTypes.Requireable<unknown[]>;
|
|
17
|
+
secondaryMenu: PropTypes.Requireable<unknown[]>;
|
|
18
|
+
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
19
|
+
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
}>>;
|
|
21
|
+
};
|
|
22
|
+
export declare const MobileMenuTrigger: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
23
|
+
hoverColor: string;
|
|
24
|
+
hoverBackground: string;
|
|
25
|
+
}, never>;
|
|
26
|
+
export declare const SmallHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
}, never>;
|
|
29
|
+
export declare const pixelDigitsFrom: (pixelString: any) => number;
|
|
30
|
+
export declare const MenuIcon: {
|
|
31
|
+
({ isOpen }: {
|
|
32
|
+
isOpen: any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
propTypes: {
|
|
35
|
+
isOpen: PropTypes.Requireable<boolean>;
|
|
36
|
+
};
|
|
37
|
+
defaultProps: {
|
|
38
|
+
isOpen: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare const NavBar: {
|
|
42
|
+
(props: any): JSX.Element;
|
|
43
|
+
propTypes: {
|
|
44
|
+
menuData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
+
primaryMenu: PropTypes.Requireable<unknown[]>;
|
|
46
|
+
secondaryMenu: PropTypes.Requireable<unknown[]>;
|
|
8
47
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
48
|
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
49
|
}>>;
|
|
11
50
|
}>>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export { themeColor_1 as themeColor };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
import PropTypes from "prop-types";
|
|
28
|
-
import React from "react";
|
|
51
|
+
className: PropTypes.Requireable<string>;
|
|
52
|
+
breakpointUpper: PropTypes.Requireable<React.ReactText>;
|
|
53
|
+
themeColor: PropTypes.Requireable<string>;
|
|
54
|
+
};
|
|
55
|
+
defaultProps: {
|
|
56
|
+
menuData: any;
|
|
57
|
+
className: any;
|
|
58
|
+
breakpointUpper: string;
|
|
59
|
+
themeColor: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default NavBar;
|
|
@@ -1,98 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
4
5
|
export default _default;
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export namespace story_9 {
|
|
78
|
-
const name_9: string;
|
|
79
|
-
export { name_9 as name };
|
|
80
|
-
}
|
|
81
|
-
export { story_9 as story };
|
|
82
|
-
}
|
|
83
|
-
export function WithAlternateThemeColor(): JSX.Element;
|
|
84
|
-
export namespace WithAlternateThemeColor {
|
|
85
|
-
export namespace story_10 {
|
|
86
|
-
const name_10: string;
|
|
87
|
-
export { name_10 as name };
|
|
88
|
-
}
|
|
89
|
-
export { story_10 as story };
|
|
90
|
-
}
|
|
91
|
-
export function WithReactRouter(): JSX.Element;
|
|
92
|
-
export namespace WithReactRouter {
|
|
93
|
-
export namespace story_11 {
|
|
94
|
-
const name_11: string;
|
|
95
|
-
export { name_11 as name };
|
|
96
|
-
}
|
|
97
|
-
export { story_11 as story };
|
|
98
|
-
}
|
|
6
|
+
export declare const _NavBar: {
|
|
7
|
+
(): JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const WithoutSearch: {
|
|
13
|
+
(): JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const WithoutSecondaryMenu: {
|
|
19
|
+
(): JSX.Element;
|
|
20
|
+
story: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const WithoutSearchAndSecondaryMenu: {
|
|
25
|
+
(): JSX.Element;
|
|
26
|
+
story: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const WithoutSearchAndPrimaryMenu: {
|
|
31
|
+
(): JSX.Element;
|
|
32
|
+
story: {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const WithBrandingOnly: {
|
|
37
|
+
(): JSX.Element;
|
|
38
|
+
story: {
|
|
39
|
+
name: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const WithCustomLinkComponents: {
|
|
43
|
+
(): JSX.Element;
|
|
44
|
+
story: {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const WithTextInTheMenu: {
|
|
49
|
+
(): JSX.Element;
|
|
50
|
+
story: {
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const WithSubtext: {
|
|
55
|
+
(): JSX.Element;
|
|
56
|
+
story: {
|
|
57
|
+
name: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const WithAlternativeBrandingLink: {
|
|
61
|
+
(): JSX.Element;
|
|
62
|
+
story: {
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const WithAlternateThemeColor: {
|
|
67
|
+
(): JSX.Element;
|
|
68
|
+
story: {
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const WithReactRouter: {
|
|
73
|
+
(): JSX.Element;
|
|
74
|
+
story: {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare const NavBarDropdownMenu: ({ showDelay, hideDelay, defaultOpen, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
showDelay: any;
|
|
5
5
|
hideDelay: any;
|
|
6
6
|
defaultOpen: any;
|
|
7
7
|
}) => JSX.Element;
|
|
8
|
+
export default NavBarDropdownMenu;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
declare function SubMenuTrigger(props: any): JSX.Element;
|
|
3
|
-
declare namespace SubMenuTrigger {
|
|
4
|
-
export namespace propTypes {
|
|
5
|
-
export const name: PropTypes.Validator<string>;
|
|
6
|
-
export const menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
7
|
-
export const onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
}
|
|
9
|
-
export namespace defaultProps {
|
|
10
|
-
const menuData_1: any;
|
|
11
|
-
export { menuData_1 as menuData };
|
|
12
|
-
const onItemClick_1: any;
|
|
13
|
-
export { onItemClick_1 as onItemClick };
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
16
2
|
import PropTypes from "prop-types";
|
|
3
|
+
declare const SubMenuTrigger: {
|
|
4
|
+
(props: any): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
name: PropTypes.Validator<string>;
|
|
7
|
+
menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
8
|
+
onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
};
|
|
10
|
+
defaultProps: {
|
|
11
|
+
menuData: any;
|
|
12
|
+
onItemClick: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default SubMenuTrigger;
|