@nulogy/components 6.7.3 → 6.8.0
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 +481 -581
- package/dist/main.module.js +477 -578
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +1 -1
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +23 -0
- package/dist/src/Button/IconicButton.story.d.ts +8 -1
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +3 -6
- package/dist/src/DropdownMenu/DropdownText.d.ts +4 -0
- package/dist/src/DropdownMenu/index.d.ts +1 -0
- 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/dist/src/Table/Table.story.d.ts +1 -6
- package/dist/src/Type/Text.d.ts +4 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -45,3 +45,26 @@ export declare const WithReactRouter: {
|
|
|
45
45
|
name: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
+
export declare const WithHamburgerMenu: {
|
|
49
|
+
(): JSX.Element;
|
|
50
|
+
parameters: {
|
|
51
|
+
viewport: {
|
|
52
|
+
defaultViewport: string;
|
|
53
|
+
};
|
|
54
|
+
chromatic: {
|
|
55
|
+
viewports: number[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const CustomRendering: () => JSX.Element;
|
|
60
|
+
export declare const CustomRenderingInHamburger: {
|
|
61
|
+
(): JSX.Element;
|
|
62
|
+
parameters: {
|
|
63
|
+
viewport: {
|
|
64
|
+
defaultViewport: string;
|
|
65
|
+
};
|
|
66
|
+
chromatic: {
|
|
67
|
+
viewports: number[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -51,7 +51,14 @@ export declare const WithATooltipAndLabel: {
|
|
|
51
51
|
name: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
export declare const rightAligned:
|
|
54
|
+
export declare const rightAligned: {
|
|
55
|
+
(): JSX.Element;
|
|
56
|
+
parameters: {
|
|
57
|
+
chromatic: {
|
|
58
|
+
diffThreshold: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
55
62
|
export declare const WithACustomFontSize: {
|
|
56
63
|
(): JSX.Element;
|
|
57
64
|
story: {
|
|
@@ -27,18 +27,15 @@ export declare const WithButtonClosingMenu: {
|
|
|
27
27
|
name: string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export declare const
|
|
31
|
-
|
|
32
|
-
story: {
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
30
|
+
export declare const WithCustomLink: () => JSX.Element;
|
|
31
|
+
export declare const WithCustomText: () => JSX.Element;
|
|
36
32
|
export declare const SetToDefaultOpen: {
|
|
37
33
|
(): JSX.Element;
|
|
38
34
|
story: {
|
|
39
35
|
name: string;
|
|
40
36
|
};
|
|
41
37
|
};
|
|
38
|
+
export declare const WithVisitedLinks: () => JSX.Element;
|
|
42
39
|
export declare const SetToDisabled: {
|
|
43
40
|
(): JSX.Element;
|
|
44
41
|
story: {
|
|
@@ -2,3 +2,4 @@ export { default as DropdownMenu } from "./DropdownMenu";
|
|
|
2
2
|
export { default as DropdownButton } from "./DropdownButton";
|
|
3
3
|
export { default as DropdownLink } from "./DropdownLink";
|
|
4
4
|
export { default as DropdownItem } from "./DropdownItem";
|
|
5
|
+
export { default as DropdownText } from "./DropdownText";
|
|
@@ -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;
|
package/dist/src/Type/Text.d.ts
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
import { SpaceProps, TypographyProps, ColorProps, OverflowProps, LayoutProps } from "styled-system";
|
|
3
3
|
import { TextOverflowProps } from "../StyledProps/textOverflow";
|
|
4
4
|
import { CursorProps } from "../StyledProps/cursor";
|
|
5
|
+
import type { DefaultNDSThemeType } from "../theme.type";
|
|
5
6
|
export declare type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
6
7
|
inline?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
9
10
|
fontSize?: string;
|
|
10
|
-
} & SpaceProps & OverflowProps & LayoutProps & TextOverflowProps & TypographyProps & CursorProps & ColorProps
|
|
11
|
+
} & SpaceProps & OverflowProps & LayoutProps & TextOverflowProps & TypographyProps & CursorProps & ColorProps & {
|
|
12
|
+
theme?: DefaultNDSThemeType;
|
|
13
|
+
};
|
|
11
14
|
declare const Text: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, TextProps, never>;
|
|
12
15
|
export default Text;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { Link } from "./Link";
|
|
|
11
11
|
export { InlineValidation } from "./Validation";
|
|
12
12
|
export { Alert } from "./Alert";
|
|
13
13
|
export { Branding } from "./Branding";
|
|
14
|
-
export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, } from "./DropdownMenu";
|
|
14
|
+
export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText, } from "./DropdownMenu";
|
|
15
15
|
export { HelpText, RequirementText, FieldLabel } from "./FieldLabel";
|
|
16
16
|
export { Input } from "./Input";
|
|
17
17
|
export { NavBar } from "./NavBar";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"@babel/runtime": "^7.9.6",
|
|
141
|
-
"@nulogy/tokens": "^5.
|
|
141
|
+
"@nulogy/tokens": "^5.3.0",
|
|
142
142
|
"@styled-system/prop-types": "^5.1.4",
|
|
143
143
|
"@styled-system/theme-get": "^5.1.2",
|
|
144
144
|
"body-scroll-lock": "^3.1.5",
|