@nulogy/components 10.2.10 → 10.2.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/dist/main.js +684 -1293
- package/dist/main.module.js +680 -1289
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/isValidMenuItem.d.ts +1 -2
- package/dist/src/Branding/BrandingText.d.ts +5 -2
- package/dist/src/Branding/LettermarkLogo.d.ts +2 -2
- package/dist/src/Branding/WordmarkLogo.d.ts +3 -2
- package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +1 -6
- package/dist/src/Button/ControlIcon.d.ts +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +7 -5
- package/dist/src/Card/Card.d.ts +2 -3
- package/dist/src/Card/CardSet.d.ts +5 -3
- package/dist/src/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/src/DatePicker/DatePickerHeader.d.ts +6 -6
- package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -5
- package/dist/src/DropdownMenu/DropdownLink.d.ts +3 -5
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/FieldLabel/FieldLabel.d.ts +1 -10
- package/dist/src/Form/FormSection.d.ts +3 -3
- package/dist/src/Icon/Icon.d.ts +1 -1
- package/dist/src/Input/Suffix.d.ts +4 -11
- package/dist/src/List/List.d.ts +3 -5
- package/dist/src/List/ListItem.d.ts +4 -5
- package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +4 -4
- package/dist/src/NavBar/DesktopMenu.d.ts +5 -16
- package/dist/src/NavBar/MenuTrigger.d.ts +3 -21
- package/dist/src/NavBar/MobileMenu.d.ts +0 -15
- package/dist/src/NavBar/NavBar.d.ts +0 -23
- package/dist/src/NavBar/SubMenuTrigger.d.ts +0 -6
- package/dist/src/NavBarSearch/NavBarSearch.d.ts +0 -5
- package/dist/src/Overlay/Overlay.d.ts +7 -6
- package/dist/src/Pagination/NextButton.d.ts +1 -14
- package/dist/src/Pagination/Pagination.d.ts +1 -26
- package/dist/src/Pagination/PreviousButton.d.ts +1 -14
- package/dist/src/Popper/Popper.d.ts +2 -2
- package/dist/src/Radio/Radio.d.ts +1 -1
- package/dist/src/Radio/RadioGroup.d.ts +6 -16
- package/dist/src/RangeContainer/RangeContainer.d.ts +2 -1
- package/dist/src/Select/Select.d.ts +1 -33
- package/dist/src/Table/BaseTable.d.ts +1 -17
- package/dist/src/Table/SortingColumnHeader.d.ts +8 -23
- package/dist/src/Table/StatefulTable.d.ts +8 -8
- package/dist/src/Table/Table.d.ts +2 -22
- package/dist/src/Table/Table.types.d.ts +0 -27
- package/dist/src/Table/TableCell.d.ts +2 -2
- package/dist/src/Table/TableFoot.d.ts +0 -26
- package/dist/src/Tabs/Tab.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.d.ts +3 -2
- package/dist/src/Toast/Toast.d.ts +1 -11
- package/dist/src/ToastContainer/ToastContainer.d.ts +1 -12
- package/dist/src/Toggle/Toggle.d.ts +1 -1
- package/dist/src/Toggle/ToggleButton.d.ts +1 -1
- package/dist/src/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/TruncatedText/MaybeTooltip.d.ts +1 -12
- package/dist/src/TruncatedText/TruncatedText.d.ts +1 -24
- package/dist/src/TruncatedText/TruncatedTextProps.d.ts +2 -1
- package/dist/src/Validation/InlineValidation.d.ts +2 -2
- package/dist/src/locales.const.d.ts +9 -9
- package/dist/src/utils/DetectOutsideClick.d.ts +1 -16
- package/dist/src/utils/PreventBodyElementScrolling.d.ts +1 -15
- package/dist/src/utils/ScrollIndicators.d.ts +0 -6
- package/dist/src/utils/localized-date-fns.d.ts +1 -1
- package/dist/src/utils/subset.d.ts +1 -0
- package/package.json +5 -6
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default isValidMenuItem;
|
|
1
|
+
export default function isValidMenuItem(arr: any, idx: any, componentName: any, location: any, propFullName: any): Error;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type BrandingTextProps = {
|
|
2
|
+
logoColor?: "blue" | "white";
|
|
3
|
+
size?: "small" | "medium" | "large";
|
|
4
|
+
};
|
|
5
|
+
declare const BrandingText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, BrandingTextProps, never>;
|
|
3
6
|
export default BrandingText;
|
|
@@ -3,5 +3,5 @@ type LettermarkLogoProps = {
|
|
|
3
3
|
letterFill?: string;
|
|
4
4
|
size?: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
export default function LettermarkLogo({ size, letterFill, ...props }: LettermarkLogoProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -3,6 +3,7 @@ type WordmarkLogoProps = {
|
|
|
3
3
|
logoFill?: string;
|
|
4
4
|
letterFill?: string;
|
|
5
5
|
size?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
export
|
|
8
|
+
export default function WordmarkLogo({ size, logoFill, letterFill, ...props }: WordmarkLogoProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -4,10 +4,5 @@ import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
|
4
4
|
type BreadcrumbsProps = Omit<FlexProps, "size"> & {
|
|
5
5
|
size?: ComponentSize;
|
|
6
6
|
};
|
|
7
|
-
declare const Breadcrumbs: {
|
|
8
|
-
({ size, children, ...props }: BreadcrumbsProps): React.JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
as: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
7
|
+
declare const Breadcrumbs: ({ size, as, children, ...props }: BreadcrumbsProps) => React.JSX.Element;
|
|
13
8
|
export default Breadcrumbs;
|
|
@@ -3,7 +3,7 @@ import { SpaceProps } from "styled-system";
|
|
|
3
3
|
declare const ControlIcon: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
4
|
ref?: React.Ref<HTMLButtonElement>;
|
|
5
5
|
} & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
6
|
-
onClick?:
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
7
|
icon: string;
|
|
8
8
|
toggled?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
declare const ButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
2
|
+
gap?: import("csstype").Property.Gap<string | number>;
|
|
3
|
+
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
4
|
+
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
5
|
+
} & {
|
|
6
|
+
children?: React.ReactNode;
|
|
4
7
|
alignment?: "left" | "spaced" | "right";
|
|
5
8
|
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const ButtonGroup: React.FC<React.PropsWithChildren<ButtonGroupProps>>;
|
|
9
|
+
}, never>;
|
|
8
10
|
export default ButtonGroup;
|
package/dist/src/Card/Card.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { BoxProps } from "../Box/Box";
|
|
3
|
-
|
|
4
|
-
export default Card;
|
|
3
|
+
export default function Card({ children, borderRadius, boxShadow, bg, py, px, position, ...props }: BoxProps): React.JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
declare const CardSet: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
2
|
+
gap?: import("csstype").Property.Gap<string | number>;
|
|
3
|
+
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
4
|
+
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
5
|
+
}, never>;
|
|
4
6
|
export default CardSet;
|
|
@@ -4,6 +4,7 @@ import { DefaultNDSThemeType } from "../theme.type";
|
|
|
4
4
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
5
|
type NativeInputProps = Omit<React.ComponentPropsWithRef<"input">, "size">;
|
|
6
6
|
type CheckboxProps = NativeInputProps & SpaceProps & {
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
htmlSize?: number;
|
|
8
9
|
size?: ComponentSize;
|
|
9
10
|
labelText?: string;
|
|
@@ -13,5 +14,5 @@ type CheckboxProps = NativeInputProps & SpaceProps & {
|
|
|
13
14
|
indeterminate?: boolean;
|
|
14
15
|
theme?: DefaultNDSThemeType;
|
|
15
16
|
};
|
|
16
|
-
declare const Checkbox: React.
|
|
17
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
17
18
|
export default Checkbox;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface CheckboxGroupProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
errorMessage?: string;
|
|
4
5
|
errorList?: string[];
|
|
5
6
|
labelText: string;
|
|
@@ -14,5 +15,5 @@ interface CheckboxGroupProps {
|
|
|
14
15
|
required?: boolean;
|
|
15
16
|
disabled?: boolean;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
export
|
|
18
|
+
export default function CheckboxGroup({ className, id, errorMessage, errorList, labelText, helpText, requirementText, ...props }: CheckboxGroupProps): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type
|
|
3
|
-
date:
|
|
4
|
-
decreaseMonth:
|
|
5
|
-
increaseMonth:
|
|
2
|
+
type Props = {
|
|
3
|
+
date: number;
|
|
4
|
+
decreaseMonth: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
increaseMonth: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
6
|
prevMonthButtonDisabled: boolean;
|
|
7
7
|
nextMonthButtonDisabled: boolean;
|
|
8
8
|
locale?: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
export default function DatePickerHeader({ date, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, locale, }: Props): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
-
type DropdownItemProps = {
|
|
4
|
-
theme?: DefaultNDSThemeType;
|
|
1
|
+
type Props = {
|
|
5
2
|
color?: string;
|
|
6
3
|
hoverColor?: string;
|
|
7
4
|
bgHoverColor?: string;
|
|
8
5
|
};
|
|
9
|
-
declare const DropdownItem:
|
|
6
|
+
declare const DropdownItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Props, never>;
|
|
10
7
|
export default DropdownItem;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StyledProps } from "../StyledProps";
|
|
3
|
-
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
3
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
|
-
|
|
4
|
+
interface Props extends React.ComponentPropsWithRef<"a">, StyledProps {
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
size?: ComponentSize;
|
|
8
7
|
color?: string;
|
|
9
|
-
theme?: DefaultNDSThemeType;
|
|
10
8
|
hoverColor?: string;
|
|
11
9
|
bgHoverColor?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const DropdownLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme,
|
|
10
|
+
}
|
|
11
|
+
declare const DropdownLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Props, never>;
|
|
14
12
|
export default DropdownLink;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
3
3
|
import { StyledProps } from "../StyledProps";
|
|
4
|
-
|
|
4
|
+
declare const DropdownMenu: React.ForwardRefExoticComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
size?: ComponentSize;
|
|
7
8
|
id?: string;
|
|
@@ -17,6 +18,5 @@ type DropdownMenuProps = {
|
|
|
17
18
|
openAriaLabel?: string;
|
|
18
19
|
closeAriaLabel?: string;
|
|
19
20
|
openOnHover?: boolean;
|
|
20
|
-
} & StyledProps
|
|
21
|
-
declare const DropdownMenu: React.FC<React.PropsWithChildren<DropdownMenuProps>>;
|
|
21
|
+
} & StyledProps & React.RefAttributes<React.Ref<unknown>>>;
|
|
22
22
|
export default DropdownMenu;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FieldLabelProps } from "./FieldLabel.type";
|
|
3
|
-
|
|
4
|
-
({ labelText, requirementText, helpText, hint, children, ...props }: FieldLabelProps): React.JSX.Element;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
children: any;
|
|
7
|
-
requirementText: any;
|
|
8
|
-
helpText: any;
|
|
9
|
-
id: any;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default FieldLabel;
|
|
3
|
+
export default function FieldLabel({ labelText, requirementText, helpText, hint, children, ...props }: FieldLabelProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
interface BaseFormSectionProps extends React.ComponentPropsWithRef<"fieldset"> {
|
|
3
3
|
title?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const FormSection: import("styled-components").StyledComponent<React.
|
|
4
|
+
}
|
|
5
|
+
declare const FormSection: import("styled-components").StyledComponent<({ title, children, ...props }: BaseFormSectionProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export default FormSection;
|
package/dist/src/Icon/Icon.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ interface IconProps extends SpaceProps {
|
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
}
|
|
12
12
|
declare const Icon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, IconProps, never>;
|
|
13
|
-
export declare
|
|
13
|
+
export declare function InlineIcon(props: IconProps): React.JSX.Element;
|
|
14
14
|
export default Icon;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextProps } from "../Type/Text";
|
|
3
|
-
|
|
3
|
+
interface SuffixProps extends TextProps {
|
|
4
4
|
suffix?: string;
|
|
5
5
|
suffixWidth?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
defaultProps: {
|
|
10
|
-
suffix: any;
|
|
11
|
-
children: any;
|
|
12
|
-
suffixWidth: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default Suffix;
|
|
6
|
+
}
|
|
7
|
+
export default function Suffix({ suffix, suffixWidth, ...props }: SuffixProps): React.JSX.Element;
|
|
8
|
+
export {};
|
package/dist/src/List/List.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
2
|
import { StyledProps } from "../StyledProps";
|
|
4
|
-
|
|
5
|
-
theme?: DefaultNDSThemeType;
|
|
3
|
+
interface Props extends React.ComponentPropsWithRef<"ul">, StyledProps {
|
|
6
4
|
className?: string;
|
|
7
5
|
compact?: boolean;
|
|
8
6
|
leftAlign?: boolean;
|
|
9
7
|
listStyle?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const List:
|
|
8
|
+
}
|
|
9
|
+
declare const List: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, Props, never>;
|
|
12
10
|
export default List;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SpaceProps, ColorProps, TypographyProps } from "styled-system";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const ListItem: React.FC<React.PropsWithChildren<ListItemProps>>;
|
|
3
|
+
declare const ListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
4
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
5
|
+
} & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, never>;
|
|
7
6
|
export default ListItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
interface Props extends React.ComponentPropsWithRef<"svg"> {
|
|
3
3
|
inactive?: boolean;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export
|
|
4
|
+
}
|
|
5
|
+
export default function LoadingAnimation({ inactive }: Props): React.JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
themeColorObject: any;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
11
|
-
themeColorObject: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
12
|
-
};
|
|
13
|
-
defaultProps: {
|
|
14
|
-
menuData: any;
|
|
15
|
-
themeColorObject: any;
|
|
16
|
-
};
|
|
17
|
-
}, import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
declare const DesktopMenu: import("styled-components").StyledComponent<({ menuData, themeColorObject, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
menuData: any;
|
|
5
|
+
themeColorObject: any;
|
|
6
|
+
}) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
18
7
|
export default DesktopMenu;
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
3
2
|
export type MenuTriggerProps = {
|
|
4
|
-
name?:
|
|
3
|
+
name?: ReactNode;
|
|
5
4
|
"aria-label"?: string;
|
|
6
5
|
color?: string;
|
|
7
6
|
hoverColor?: string;
|
|
8
7
|
hoverBackground?: string;
|
|
9
8
|
menuData?: any[];
|
|
10
9
|
};
|
|
11
|
-
declare
|
|
12
|
-
(props: any): React.JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
name: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
|
-
"aria-label": PropTypes.Requireable<string>;
|
|
16
|
-
menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
17
|
-
color: PropTypes.Requireable<string>;
|
|
18
|
-
hoverColor: PropTypes.Requireable<string>;
|
|
19
|
-
hoverBackground: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
|
-
defaultProps: {
|
|
22
|
-
menuData: any;
|
|
23
|
-
"aria-label": any;
|
|
24
|
-
color: string;
|
|
25
|
-
hoverColor: string;
|
|
26
|
-
hoverBackground: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
10
|
+
declare function MenuTrigger({ menuData, name, color, hoverColor, hoverBackground, "aria-label": ariaLabel, ...otherProps }: MenuTriggerProps): React.JSX.Element;
|
|
29
11
|
export default MenuTrigger;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
declare const MobileMenu: import("styled-components").StyledComponent<{
|
|
4
3
|
({ menuData, closeMenu, subtext, includeSubtext, themeColorObject, ...props }: {
|
|
5
4
|
[x: string]: any;
|
|
@@ -9,20 +8,6 @@ declare const MobileMenu: import("styled-components").StyledComponent<{
|
|
|
9
8
|
includeSubtext: any;
|
|
10
9
|
themeColorObject: any;
|
|
11
10
|
}): React.JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
menuData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
primaryMenu: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
15
|
-
secondaryMenu: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
16
|
-
}>>;
|
|
17
|
-
subtext: PropTypes.Requireable<string>;
|
|
18
|
-
includeSubtext: PropTypes.Requireable<boolean>;
|
|
19
|
-
closeMenu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
themeColorObject: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
-
textColor: PropTypes.Requireable<string>;
|
|
22
|
-
background: PropTypes.Requireable<string>;
|
|
23
|
-
logoColor: PropTypes.Requireable<string>;
|
|
24
|
-
}>>;
|
|
25
|
-
};
|
|
26
11
|
defaultProps: {
|
|
27
12
|
menuData: any;
|
|
28
13
|
subtext: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
3
|
export declare const getThemeColor: (themeColor: any) => any;
|
|
5
4
|
export declare const NavBarBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
@@ -16,13 +15,6 @@ export declare const BrandingLink: ({ to, href, children, ...props }: {
|
|
|
16
15
|
href: any;
|
|
17
16
|
children: any;
|
|
18
17
|
}) => React.JSX.Element;
|
|
19
|
-
export declare const MenuDataPropTypes: {
|
|
20
|
-
primaryMenu: PropTypes.Requireable<unknown[]>;
|
|
21
|
-
secondaryMenu: PropTypes.Requireable<unknown[]>;
|
|
22
|
-
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
-
}>>;
|
|
25
|
-
};
|
|
26
18
|
export declare const MobileMenuTrigger: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
27
19
|
hoverColor: string;
|
|
28
20
|
hoverBackground: string;
|
|
@@ -35,27 +27,12 @@ export declare const MenuIcon: {
|
|
|
35
27
|
({ isOpen }: {
|
|
36
28
|
isOpen: any;
|
|
37
29
|
}): React.JSX.Element;
|
|
38
|
-
propTypes: {
|
|
39
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
40
|
-
};
|
|
41
30
|
defaultProps: {
|
|
42
31
|
isOpen: boolean;
|
|
43
32
|
};
|
|
44
33
|
};
|
|
45
34
|
declare const NavBar: {
|
|
46
35
|
(props: any): React.JSX.Element;
|
|
47
|
-
propTypes: {
|
|
48
|
-
menuData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
49
|
-
primaryMenu: PropTypes.Requireable<unknown[]>;
|
|
50
|
-
secondaryMenu: PropTypes.Requireable<unknown[]>;
|
|
51
|
-
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
52
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
}>>;
|
|
54
|
-
}>>;
|
|
55
|
-
className: PropTypes.Requireable<string>;
|
|
56
|
-
breakpointUpper: PropTypes.Requireable<NonNullable<string | number>>;
|
|
57
|
-
themeColor: PropTypes.Requireable<string>;
|
|
58
|
-
};
|
|
59
36
|
defaultProps: {
|
|
60
37
|
menuData: any;
|
|
61
38
|
className: any;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
declare const SubMenuTrigger: {
|
|
4
3
|
(props: any): React.JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
name: PropTypes.Validator<string>;
|
|
7
|
-
menuData: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
8
|
-
onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
};
|
|
10
4
|
defaultProps: {
|
|
11
5
|
menuData: any;
|
|
12
6
|
onItemClick: any;
|
|
@@ -5,14 +5,9 @@ declare const NavBarSearch: import("styled-components").StyledComponent<{
|
|
|
5
5
|
name: any;
|
|
6
6
|
onSubmit: any;
|
|
7
7
|
}): React.JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
name: PropTypes.Requireable<string>;
|
|
10
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
};
|
|
12
8
|
defaultProps: {
|
|
13
9
|
name: string;
|
|
14
10
|
onSubmit: () => void;
|
|
15
11
|
};
|
|
16
12
|
}, import("styled-components").DefaultTheme, {}, never>;
|
|
17
13
|
import React from "react";
|
|
18
|
-
import PropTypes from "prop-types";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexProps } from "../Flex/Flex";
|
|
3
|
-
|
|
4
|
-
type OverlayProps = FlexProps & {
|
|
2
|
+
interface Props extends FlexProps {
|
|
5
3
|
dark?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
}
|
|
5
|
+
declare const Overlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
6
|
+
gap?: import("csstype").Property.Gap<string | number>;
|
|
7
|
+
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
8
|
+
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
9
|
+
} & Props, never>;
|
|
9
10
|
export default Overlay;
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
type NextButtonProps = {
|
|
4
3
|
disabled: boolean;
|
|
5
4
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
5
|
label: ReactNode;
|
|
7
6
|
ariaLabel: string;
|
|
8
7
|
};
|
|
9
|
-
declare const NextButton: {
|
|
10
|
-
({ disabled, onClick, label, ariaLabel }: NextButtonProps): React.JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
13
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
defaultProps: {
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
onClick: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
8
|
+
declare const NextButton: ({ disabled, onClick, label, ariaLabel }: NextButtonProps) => React.JSX.Element;
|
|
22
9
|
export default NextButton;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ReactNode, RefObject } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { FlexProps } from "../Flex/Flex";
|
|
4
3
|
declare const SEPARATOR: "...";
|
|
5
4
|
export declare const getPageItemsToDisplay: (totalPages: number, currentPage: number) => Array<typeof SEPARATOR | number>;
|
|
@@ -16,29 +15,5 @@ interface PaginationProps extends FlexProps {
|
|
|
16
15
|
scrollToTopAfterPagination?: boolean;
|
|
17
16
|
scrollTargetRef?: RefObject<HTMLElement>;
|
|
18
17
|
}
|
|
19
|
-
declare function Pagination({
|
|
20
|
-
declare namespace Pagination {
|
|
21
|
-
var propTypes: {
|
|
22
|
-
currentPage: PropTypes.Validator<number>;
|
|
23
|
-
totalPages: PropTypes.Validator<number>;
|
|
24
|
-
onNext: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
onPrevious: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
onSelectPage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
nextLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
|
-
nextAriaLabel: PropTypes.Requireable<string>;
|
|
29
|
-
previousLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
|
-
previousAriaLabel: PropTypes.Requireable<string>;
|
|
31
|
-
"aria-label": PropTypes.Requireable<string>;
|
|
32
|
-
};
|
|
33
|
-
var defaultProps: {
|
|
34
|
-
onNext: any;
|
|
35
|
-
onPrevious: any;
|
|
36
|
-
onSelectPage: any;
|
|
37
|
-
nextLabel: any;
|
|
38
|
-
nextAriaLabel: any;
|
|
39
|
-
previousLabel: any;
|
|
40
|
-
previousAriaLabel: any;
|
|
41
|
-
"aria-label": any;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
18
|
+
declare function Pagination({ onNext, onPrevious, onSelectPage, currentPage, totalPages, nextAriaLabel, nextLabel, previousAriaLabel, previousLabel, scrollToTopAfterPagination, scrollTargetRef, "aria-label": ariaLabel, ...restProps }: PaginationProps): React.JSX.Element;
|
|
44
19
|
export default Pagination;
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
type PreviousButtonProps = {
|
|
4
3
|
disabled: boolean;
|
|
5
4
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
5
|
label: ReactNode;
|
|
7
6
|
ariaLabel: string;
|
|
8
7
|
};
|
|
9
|
-
declare const PreviousButton: {
|
|
10
|
-
({ disabled, onClick, label, ariaLabel }: PreviousButtonProps): React.JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
13
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
defaultProps: {
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
onClick: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
8
|
+
declare const PreviousButton: ({ disabled, onClick, label, ariaLabel }: PreviousButtonProps) => React.JSX.Element;
|
|
22
9
|
export default PreviousButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type PopperProps = {
|
|
3
|
-
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
popperPlacement?: string;
|
|
5
5
|
defaultOpen?: boolean;
|
|
6
6
|
showDelay?: string | number;
|
|
@@ -16,5 +16,5 @@ type PopperProps = {
|
|
|
16
16
|
openAriaLabel?: string;
|
|
17
17
|
closeAriaLabel?: string;
|
|
18
18
|
};
|
|
19
|
-
declare const Popper: React.
|
|
19
|
+
declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<React.Ref<unknown>>>;
|
|
20
20
|
export default Popper;
|
|
@@ -10,5 +10,5 @@ type RadioProps = NativeInputProps & SpaceProps & {
|
|
|
10
10
|
defaultChecked?: boolean;
|
|
11
11
|
error?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const Radio: React.
|
|
13
|
+
declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
14
|
export default Radio;
|
|
@@ -11,20 +11,10 @@ interface RadioGroupProps {
|
|
|
11
11
|
children?: any;
|
|
12
12
|
name?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
checkedValue?: string;
|
|
16
|
+
default?: boolean;
|
|
17
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
18
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultProps: {
|
|
18
|
-
errorMessage: any;
|
|
19
|
-
errorList: any;
|
|
20
|
-
defaultValue: any;
|
|
21
|
-
checkedValue: any;
|
|
22
|
-
onChange: any;
|
|
23
|
-
className: any;
|
|
24
|
-
id: any;
|
|
25
|
-
helpText: any;
|
|
26
|
-
requirementText: any;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export default RadioGroup;
|
|
19
|
+
export default function RadioGroup({ className, id, errorMessage, errorList, labelText, helpText, requirementText, ...props }: RadioGroupProps): React.JSX.Element;
|
|
20
|
+
export {};
|