@nulogy/components 11.0.0-beta.4 → 11.0.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 +34935 -37522
- package/dist/main.module.js +34930 -37515
- package/dist/src/Alert/Alert.story.d.ts +1 -4
- package/dist/src/Alert/CloseButton.d.ts +1 -1
- package/dist/src/AsyncSelect/AsyncSelect.d.ts +2 -2
- package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +3 -3
- package/dist/src/AsyncSelect/fixtures.d.ts +5 -0
- package/dist/src/Box/index.d.ts +1 -0
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +2 -2
- package/dist/src/BrandedNavBar/NavBarBackground.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 +4 -9
- package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +0 -1
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +2 -2
- package/dist/src/Button/Button.d.ts +4 -3
- package/dist/src/Button/CloseButton.d.ts +3 -1
- package/dist/src/Button/ControlIcon.d.ts +5 -6
- package/dist/src/Button/DangerButton.d.ts +1 -1
- package/dist/src/Button/IconicButton.d.ts +2 -2
- package/dist/src/Button/IconicButton.story.d.ts +0 -1
- package/dist/src/Button/PrimaryButton.d.ts +2 -1
- package/dist/src/Button/QuietButton.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 +4 -3
- package/dist/src/Checkbox/Checkbox.story.d.ts +0 -1
- package/dist/src/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/src/DatePicker/DatePicker.d.ts +3 -3
- package/dist/src/DatePicker/DatePicker.story.d.ts +0 -1
- package/dist/src/DatePicker/DatePickerHeader.d.ts +6 -6
- package/dist/src/DatePicker/DatePickerInput.d.ts +3 -3
- package/dist/src/DatePicker/DatePickerStyles.d.ts +4 -1
- package/dist/src/DateRange/DateRange.d.ts +3 -3
- package/dist/src/DateRange/DateRange.story.d.ts +0 -1
- package/dist/src/DateRange/EndTime.d.ts +3 -3
- package/dist/src/DateRange/StartTime.d.ts +3 -3
- package/dist/src/Divider/Divider.d.ts +2 -3
- package/dist/src/Divider/Divider.story.d.ts +4 -2
- package/dist/src/DropdownMenu/DropdownButton.d.ts +2 -2
- package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -5
- package/dist/src/DropdownMenu/DropdownLink.d.ts +5 -7
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +5 -5
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +0 -1
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownText.d.ts +7 -3
- package/dist/src/FieldLabel/FieldLabel.d.ts +1 -10
- package/dist/src/FieldLabel/HelpText.d.ts +2 -3
- package/dist/src/Form/Fieldset.d.ts +1 -2
- package/dist/src/Form/FormSection.d.ts +3 -3
- package/dist/src/Icon/Icon.d.ts +1 -1
- package/dist/src/Icon/LoadingIcon.d.ts +4 -2
- package/dist/src/Input/Input.d.ts +3 -4
- package/dist/src/Input/Input.story.d.ts +1 -1
- package/dist/src/Input/InputField.d.ts +8 -6
- package/dist/src/Input/Suffix.d.ts +4 -11
- package/dist/src/Layout/Header.d.ts +1 -1
- package/dist/src/Layout/Page.d.ts +1 -1
- package/dist/src/Link/Link.d.ts +2 -2
- package/dist/src/Link/Link.story.d.ts +0 -1
- 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/Modal/Modal.d.ts +1 -1
- package/dist/src/Modal/ModalCloseButton.d.ts +3 -1
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/NDSProvider/ComponentVariantContext.d.ts +10 -0
- package/dist/src/NDSProvider/GlobalStylesComposer.d.ts +10 -0
- package/dist/src/NDSProvider/NDSProvider.d.ts +5 -13
- package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.d.ts +1 -1
- package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +1 -1
- package/dist/src/NDSProvider/useNDSTheme.d.ts +12 -0
- package/dist/src/NavBarSearch/NavBarSearch.d.ts +5 -16
- package/dist/src/Overlay/Overlay.d.ts +7 -6
- package/dist/src/Pagination/NextButton.d.ts +1 -14
- package/dist/src/Pagination/PageNumber.d.ts +4 -1
- package/dist/src/Pagination/Pagination.d.ts +5 -29
- package/dist/src/Pagination/PaginationButton.d.ts +4 -1
- 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 +3 -3
- package/dist/src/Radio/Radio.story.d.ts +0 -1
- package/dist/src/Radio/RadioGroup.d.ts +7 -17
- package/dist/src/RangeContainer/RangeContainer.d.ts +4 -3
- package/dist/src/Select/Select.d.ts +23 -24
- package/dist/src/Select/Select.story.d.ts +7 -4
- package/dist/src/Select/SelectComponents.d.ts +7 -9
- package/dist/src/Select/SelectOption.d.ts +9 -10
- package/dist/src/Select/customReactSelectStyles.d.ts +8 -8
- package/dist/src/Select/index.d.ts +1 -1
- package/dist/src/Summary/Summary.d.ts +1 -1
- package/dist/src/Summary/SummaryContext.d.ts +1 -1
- package/dist/src/Summary/SummaryItem.d.ts +1 -1
- package/dist/src/Switcher/Switch.d.ts +2 -2
- package/dist/src/Switcher/Switcher.d.ts +3 -3
- package/dist/src/Switcher/Switcher.story.d.ts +0 -1
- 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/StyledTh.d.ts +0 -2
- package/dist/src/Table/Table.d.ts +5 -25
- 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 +4 -4
- package/dist/src/Tabs/TabContainer.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.d.ts +4 -3
- package/dist/src/Tabs/Tabs.d.ts +4 -3
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Textarea/StyledTextarea.d.ts +3 -3
- package/dist/src/Textarea/Textarea.story.d.ts +0 -1
- package/dist/src/TimePicker/TimePicker.d.ts +3 -3
- package/dist/src/TimePicker/TimePicker.story.d.ts +0 -1
- package/dist/src/TimePicker/TimePickerOption.d.ts +2 -2
- package/dist/src/TimeRange/TimeRange.d.ts +2 -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 +3 -3
- package/dist/src/Toggle/Toggle.story.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/Tooltip/TooltipContainer.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/Type/Headings.d.ts +4 -8
- package/dist/src/Type/Text.d.ts +5 -7
- package/dist/src/Validation/InlineValidation.d.ts +2 -2
- package/dist/src/VisualTests/KitchenSink.story.d.ts +6 -0
- package/dist/src/index.d.ts +1 -3
- package/dist/src/locales.const.d.ts +9 -9
- package/dist/src/pages/ErrorPage.story.d.ts +8 -0
- package/dist/src/scripts/generateTheme.d.ts +1 -0
- package/dist/src/theme.d.ts +5 -3
- package/dist/src/theme.type.d.ts +15 -3
- package/dist/src/utils/ClickInputLabel.d.ts +3 -3
- package/dist/src/utils/DetectOutsideClick.d.ts +1 -16
- package/dist/src/utils/PopperArrow.d.ts +4 -3
- package/dist/src/utils/PreventBodyElementScrolling.d.ts +1 -15
- package/dist/src/utils/ScrollIndicators.d.ts +0 -6
- package/dist/src/utils/dashed.d.ts +4 -1
- package/dist/src/utils/localized-date-fns.d.ts +1 -1
- package/dist/src/utils/story/simulatedAPIRequests.d.ts +4 -0
- package/dist/src/utils/subPx.d.ts +9 -2
- package/dist/src/utils/subset.d.ts +1 -0
- package/dist/src/utils/ts/FocusManager.d.ts +1 -1
- package/dist/src/utils/useWindowDimensions.d.ts +1 -1
- package/package.json +17 -14
- package/dist/src/NDSProvider/ComponentSizeContext.d.ts +0 -9
- package/dist/src/NavBar/DesktopMenu.d.ts +0 -18
- package/dist/src/NavBar/MenuTrigger.d.ts +0 -29
- package/dist/src/NavBar/MobileMenu.d.ts +0 -34
- package/dist/src/NavBar/NavBar.d.ts +0 -66
- package/dist/src/NavBar/NavBar.story.d.ts +0 -77
- package/dist/src/NavBar/NavBarDropdownMenu.d.ts +0 -3
- package/dist/src/NavBar/SmallNavBar.d.ts +0 -3
- package/dist/src/NavBar/SubMenuTrigger.d.ts +0 -15
- package/dist/src/NavBar/index.d.ts +0 -1
- package/dist/src/NavBar/isValidMenuItem.d.ts +0 -2
- package/dist/src/NavBar/renderSubMenuItems.d.ts +0 -2
- package/dist/src/Select/MenuList.d.ts +0 -3
- package/dist/src/Select/Select.story.fixture.d.ts +0 -19
- package/dist/src/Select/lib.d.ts +0 -20
- package/dist/src/utils/story/simulatedAPIRequest.d.ts +0 -5
|
@@ -3,10 +3,7 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Informative: () => React.JSX.Element;
|
|
8
|
-
export declare const Success: () => React.JSX.Element;
|
|
9
|
-
export declare const Warning: () => React.JSX.Element;
|
|
6
|
+
export declare const AlertTypes: () => React.JSX.Element;
|
|
10
7
|
export declare const WithACloseButton: {
|
|
11
8
|
(): React.JSX.Element;
|
|
12
9
|
story: {
|
|
@@ -2,11 +2,11 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
import Select from "react-select/base";
|
|
3
3
|
import { AsyncProps } from "react-select/async";
|
|
4
4
|
import { GroupBase } from "react-select";
|
|
5
|
-
import {
|
|
5
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
6
|
type AsyncCustomProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = {
|
|
7
7
|
autocomplete?: AsyncProps<Option, IsMulti, Group>["isSearchable"];
|
|
8
8
|
labelText?: string;
|
|
9
|
-
|
|
9
|
+
variant?: ComponentVariant;
|
|
10
10
|
requirementText?: string;
|
|
11
11
|
helpText?: ReactNode;
|
|
12
12
|
disabled?: AsyncProps<Option, IsMulti, Group>["isDisabled"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ClearIndicatorProps, ContainerProps, ControlProps, DropdownIndicatorProps, InputProps, MenuProps, MultiValueProps } from "react-select";
|
|
3
3
|
import { GroupBase } from "react-select";
|
|
4
|
-
import { OptionProps } from "react-select";
|
|
5
|
-
import {
|
|
4
|
+
import type { OptionProps } from "react-windowed-select";
|
|
5
|
+
import type { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
6
|
export declare const SelectControl: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
7
7
|
export declare const SelectMultiValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
8
8
|
export declare const SelectClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
@@ -11,5 +11,5 @@ export declare const SelectContainer: <Option, IsMulti extends boolean, Group ex
|
|
|
11
11
|
export declare const SelectInput: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
12
12
|
export declare const SelectMenu: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
13
13
|
export declare function SelectOption<Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group> & {
|
|
14
|
-
|
|
14
|
+
variant?: ComponentVariant;
|
|
15
15
|
}): React.JSX.Element;
|
package/dist/src/Box/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
type ThemeColorObject = {
|
|
3
3
|
textColor?: string;
|
|
4
4
|
background?: string;
|
|
5
|
-
logoColor?:
|
|
5
|
+
logoColor?: "white" | "blue";
|
|
6
6
|
};
|
|
7
7
|
type MenuData = {
|
|
8
8
|
primaryMenu?: any[];
|
|
@@ -15,5 +15,5 @@ type BaseMobileMenuProps = {
|
|
|
15
15
|
themeColorObject?: ThemeColorObject;
|
|
16
16
|
showNulogyLogo?: boolean;
|
|
17
17
|
};
|
|
18
|
-
declare const MobileMenu: import("styled-components").StyledComponent<React.
|
|
18
|
+
declare const MobileMenu: import("styled-components").StyledComponent<({ menuData, closeMenu, subtext, themeColorObject, showNulogyLogo, ...props }: BaseMobileMenuProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
19
19
|
export default MobileMenu;
|
|
@@ -3,7 +3,7 @@ import { StyledProps } from "../StyledProps";
|
|
|
3
3
|
export type NavBarBackgroundProps = {
|
|
4
4
|
theme?: DefaultNDSThemeType;
|
|
5
5
|
} & StyledProps;
|
|
6
|
-
declare const NavBarBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box
|
|
6
|
+
declare const NavBarBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & {
|
|
7
7
|
gap?: import("csstype").Property.Gap<string | number>;
|
|
8
8
|
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
9
9
|
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
@@ -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 {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlexProps } from "../Flex/Flex";
|
|
3
|
-
import {
|
|
4
|
-
type BreadcrumbsProps =
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
declare const Breadcrumbs: {
|
|
8
|
-
({ size, children, ...props }: BreadcrumbsProps): React.JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
as: string;
|
|
11
|
-
};
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
+
type BreadcrumbsProps = FlexProps & {
|
|
5
|
+
variant?: ComponentVariant;
|
|
12
6
|
};
|
|
7
|
+
declare const Breadcrumbs: ({ variant, as, children, ...props }: BreadcrumbsProps) => React.JSX.Element;
|
|
13
8
|
export default Breadcrumbs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
2
2
|
export declare const BreadcrumbsListSeparator: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const BreadcrumbsListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
4
|
-
|
|
4
|
+
variant: ComponentVariant;
|
|
5
5
|
}, never>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
|
|
4
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
5
5
|
export type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"button"> & {
|
|
6
6
|
className?: string;
|
|
7
7
|
icon?: any;
|
|
8
8
|
iconSide?: "left" | "right";
|
|
9
|
-
size?:
|
|
9
|
+
size?: "small" | "medium";
|
|
10
|
+
variant?: ComponentVariant;
|
|
10
11
|
fullWidth?: boolean;
|
|
11
12
|
asLink?: boolean;
|
|
12
13
|
children?: React.ReactNode;
|
|
13
14
|
theme?: DefaultNDSThemeType;
|
|
14
15
|
href?: string;
|
|
15
16
|
};
|
|
16
|
-
declare const Button: React.
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
18
|
export default Button;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const CloseButton: React.ForwardRefExoticComponent<Omit<
|
|
2
|
+
declare const CloseButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
4
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
5
|
export default CloseButton;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { SpaceProps } from "styled-system";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
6
|
-
onClick?: (...args: any[]) => any;
|
|
2
|
+
import { LayoutProps, SpaceProps } from "styled-system";
|
|
3
|
+
type ControlIconProps = React.ComponentPropsWithRef<"button"> & SpaceProps & LayoutProps & {
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
5
|
icon: string;
|
|
8
6
|
toggled?: boolean;
|
|
9
7
|
disabled?: boolean;
|
|
10
8
|
size?: string;
|
|
11
9
|
type?: string;
|
|
12
10
|
label?: string;
|
|
13
|
-
}
|
|
11
|
+
};
|
|
12
|
+
declare const ControlIcon: React.ForwardRefExoticComponent<Omit<ControlIconProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
13
|
export default ControlIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./Button";
|
|
3
|
-
declare const DangerButton: import("styled-components").StyledComponent<import("react").
|
|
3
|
+
declare const DangerButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default DangerButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
4
|
interface BaseProps {
|
|
5
|
-
|
|
5
|
+
variant?: ComponentVariant;
|
|
6
6
|
color?: string;
|
|
7
7
|
labelHidden?: boolean;
|
|
8
8
|
icon?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { ButtonProps } from "./Button";
|
|
3
|
+
declare const PrimaryButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export default PrimaryButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./Button";
|
|
3
|
-
declare const QuietButton: import("styled-components").StyledComponent<import("react").
|
|
3
|
+
declare const QuietButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default QuietButton;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
declare const ButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../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<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({ borderRadius, boxShadow, py, px, position, children, ...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").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;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
import {
|
|
4
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
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
|
+
variant?: ComponentVariant;
|
|
9
10
|
labelText?: string;
|
|
10
11
|
checked?: boolean;
|
|
11
12
|
defaultChecked?: boolean;
|
|
@@ -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
2
|
import type { ReactDatePickerProps } from "react-datepicker";
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
4
|
import { InputFieldProps } from "../Input/InputField";
|
|
5
5
|
import { FieldProps } from "../Form/Field";
|
|
6
|
-
type OmittedFieldProps = "
|
|
6
|
+
type OmittedFieldProps = "onChange" | "onBlur" | "onFocus";
|
|
7
7
|
interface DatePickerProps extends Omit<FieldProps, OmittedFieldProps> {
|
|
8
|
-
|
|
8
|
+
variant?: ComponentVariant;
|
|
9
9
|
onChange?: (date: Date) => void;
|
|
10
10
|
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
11
11
|
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputFieldProps } from "../Input/InputField";
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
4
|
interface InputProps extends InputFieldProps {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
}
|
|
7
|
-
type DatePickerInputProps =
|
|
8
|
-
|
|
7
|
+
type DatePickerInputProps = React.ComponentPropsWithRef<"input"> & {
|
|
8
|
+
variant?: ComponentVariant;
|
|
9
9
|
dateFormat?: string;
|
|
10
10
|
inputProps?: InputProps;
|
|
11
11
|
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { DefaultNDSThemeType } from "../theme.type";
|
|
2
|
+
export declare const DatePickerStyles: import("styled-components").GlobalStyleComponent<{
|
|
3
|
+
theme: DefaultNDSThemeType;
|
|
4
|
+
}, import("styled-components").DefaultTheme>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FieldProps } from "../Form/Field";
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
4
|
type DateRangeProps = FieldProps & {
|
|
5
5
|
dateFormat?: string;
|
|
6
6
|
onRangeChange?: (...args: any[]) => any;
|
|
@@ -30,7 +30,7 @@ type DateRangeProps = FieldProps & {
|
|
|
30
30
|
disableFlipping?: boolean;
|
|
31
31
|
endTimeProps?: any;
|
|
32
32
|
startTimeProps?: any;
|
|
33
|
-
|
|
33
|
+
variant?: ComponentVariant;
|
|
34
34
|
};
|
|
35
|
-
declare const DateRange: React.
|
|
35
|
+
declare const DateRange: React.ForwardRefExoticComponent<Omit<DateRangeProps, "ref"> & React.RefAttributes<unknown>>;
|
|
36
36
|
export default DateRange;
|
|
@@ -4,7 +4,6 @@ declare const _default: {
|
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: () => React.JSX.Element;
|
|
7
|
-
export declare const WithDifferentSizes: () => React.JSX.Element;
|
|
8
7
|
export declare const DefaultStartAndEndDate: () => React.JSX.Element;
|
|
9
8
|
export declare const DisabledRangeValidation: () => React.JSX.Element;
|
|
10
9
|
export declare const WithCustomError: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const EndTime: import("styled-components").StyledComponent<import("react").FC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
3
|
-
|
|
2
|
+
declare const EndTime: import("styled-components").StyledComponent<import("react").FC<import("react").PropsWithChildren<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
3
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
value?: string;
|
|
6
6
|
timeFormat?: string;
|
|
@@ -20,5 +20,5 @@ declare const EndTime: import("styled-components").StyledComponent<import("react
|
|
|
20
20
|
onBlur?: (...args: any[]) => any;
|
|
21
21
|
onFocus?: (...args: any[]) => any;
|
|
22
22
|
onClick?: (...args: any[]) => any;
|
|
23
|
-
}
|
|
23
|
+
}>>, import("styled-components").DefaultTheme, {}, never>;
|
|
24
24
|
export default EndTime;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const StartTime: import("styled-components").StyledComponent<import("react").FC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
3
|
-
|
|
2
|
+
declare const StartTime: import("styled-components").StyledComponent<import("react").FC<import("react").PropsWithChildren<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
3
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
value?: string;
|
|
6
6
|
timeFormat?: string;
|
|
@@ -20,5 +20,5 @@ declare const StartTime: import("styled-components").StyledComponent<import("rea
|
|
|
20
20
|
onBlur?: (...args: any[]) => any;
|
|
21
21
|
onFocus?: (...args: any[]) => any;
|
|
22
22
|
onClick?: (...args: any[]) => any;
|
|
23
|
-
}
|
|
23
|
+
}>>, import("styled-components").DefaultTheme, {}, never>;
|
|
24
24
|
export default StartTime;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const Divider: ({ borderColor, ...props }: BoxProps) => React.JSX.Element;
|
|
1
|
+
import { StyledProps } from "../StyledProps";
|
|
2
|
+
declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledProps, never>;
|
|
4
3
|
export default Divider;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").StyledProps, never>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const Default: () => React.JSX.Element;
|
|
8
|
+
export declare const WithCustomColourAndSpacing: () => React.JSX.Element;
|
|
9
|
+
export declare const WithCustomProperties: () => React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
3
|
import { StyledProps } from "../StyledProps";
|
|
4
|
-
import {
|
|
4
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
5
5
|
declare const DropdownButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
6
6
|
ref?: React.Ref<HTMLButtonElement>;
|
|
7
7
|
} & StyledProps & {
|
|
8
|
-
|
|
8
|
+
variant?: ComponentVariant;
|
|
9
9
|
color?: string;
|
|
10
10
|
theme?: DefaultNDSThemeType;
|
|
11
11
|
hoverColor?: string;
|
|
@@ -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 {
|
|
4
|
-
|
|
5
|
-
type DropdownLinkProps = React.ComponentPropsWithRef<"a"> & StyledProps & {
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
+
interface Props extends React.ComponentPropsWithRef<"a">, StyledProps {
|
|
6
5
|
disabled?: boolean;
|
|
7
|
-
|
|
6
|
+
variant?: ComponentVariant;
|
|
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,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
3
3
|
import { StyledProps } from "../StyledProps";
|
|
4
|
-
|
|
4
|
+
declare const DropdownMenu: React.ForwardRefExoticComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
|
-
|
|
7
|
+
variant?: ComponentVariant;
|
|
7
8
|
id?: string;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
trigger?: () => React.FunctionComponentElement<unknown>;
|
|
@@ -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<DropdownMenuProps>;
|
|
21
|
+
} & StyledProps & React.RefAttributes<React.Ref<unknown>>>;
|
|
22
22
|
export default DropdownMenu;
|
|
@@ -8,5 +8,5 @@ type DropdownMenuContainerProps = {
|
|
|
8
8
|
dataPlacement?: any;
|
|
9
9
|
theme?: DefaultNDSThemeType;
|
|
10
10
|
};
|
|
11
|
-
declare const DropdownMenuContainer: React.FC<DropdownMenuContainerProps
|
|
11
|
+
declare const DropdownMenuContainer: React.FC<React.PropsWithChildren<DropdownMenuContainerProps>>;
|
|
12
12
|
export default DropdownMenuContainer;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
declare const DropdownText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
2
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
3
|
+
inline?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
6
|
+
fontSize?: string;
|
|
7
|
+
} & import("../StyledProps").StyledProps, never>;
|
|
4
8
|
export default DropdownText;
|