@nulogy/components 11.0.0-beta.5 → 11.1.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 +34732 -37203
- package/dist/main.module.js +34757 -37226
- package/dist/src/Alert/Alert.d.ts +1 -1
- 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/BottomSheet/BottomSheet.d.ts +23 -0
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +44 -0
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +38 -0
- package/dist/src/BottomSheet/BottomSheetProvider.d.ts +12 -0
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +7 -0
- package/dist/src/BottomSheet/stories/BottomSheet.content.story.d.ts +7 -0
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +8 -0
- package/dist/src/BottomSheet/stories/BottomSheet.parts.story.d.ts +6 -0
- package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +6 -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 +11 -3
- 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 +8 -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 +2 -2
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/src/StyledProps/index.d.ts +5 -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/localized-date-fns.d.ts +1 -1
- package/dist/src/utils/noop.d.ts +5 -0
- package/dist/src/utils/story/dashed.d.ts +9 -0
- package/dist/src/utils/story/placeholder.d.ts +7 -0
- 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 +18 -15
- 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/DeprecatedComponent.d.ts +0 -2
- package/dist/src/utils/conditionallyRequiredProp.d.ts +0 -1
- package/dist/src/utils/dashed.d.ts +0 -6
- package/dist/src/utils/deprecatedProp.d.ts +0 -1
- package/dist/src/utils/story/simulatedAPIRequest.d.ts +0 -5
|
@@ -6,7 +6,7 @@ export declare const NotificationTypes: {
|
|
|
6
6
|
readonly success: "success";
|
|
7
7
|
readonly warning: "warning";
|
|
8
8
|
};
|
|
9
|
-
export type NotificationType =
|
|
9
|
+
export type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes];
|
|
10
10
|
export type AlertProps = FlexProps & {
|
|
11
11
|
isCloseable?: boolean;
|
|
12
12
|
closeAriaLabel?: string;
|
|
@@ -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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WidthProps } from "styled-system";
|
|
3
|
+
interface Props {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
"aria-label"?: string;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
helpText?: React.ReactNode;
|
|
9
|
+
closeButtonLabel?: string;
|
|
10
|
+
hideCloseButton?: boolean;
|
|
11
|
+
secondaryAction?: (props: {
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}) => React.ReactElement;
|
|
14
|
+
primaryAction?: (props: {
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}) => React.ReactElement;
|
|
17
|
+
disableCloseOnOverlayClick?: boolean;
|
|
18
|
+
sheetWidth?: WidthProps["width"];
|
|
19
|
+
contentWidth?: WidthProps["width"];
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export default function BottomSheet({ title, helpText, closeButtonLabel, secondaryAction, primaryAction, isOpen, onClose, sheetWidth, contentWidth, disableCloseOnOverlayClick, hideCloseButton, children, ...props }: Props): React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DialogContentProps, DialogOverlayProps } from "@reach/dialog";
|
|
2
|
+
import { AnimatePresenceProps } from "framer-motion";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { HeightProps, LayoutProps, MaxHeightProps, MaxWidthProps, SpaceProps, WidthProps } from "styled-system";
|
|
5
|
+
interface RootProps extends AnimatePresenceProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Root({ isOpen, onClose, children, ...props }: RootProps): React.JSX.Element;
|
|
11
|
+
interface OverlayPartProps extends DialogOverlayProps {
|
|
12
|
+
closeOnClick?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function OverlayPart({ closeOnClick, children, ...props }: OverlayPartProps): React.JSX.Element;
|
|
15
|
+
interface SheetPartProps extends DialogContentProps, WidthProps, MaxWidthProps, HeightProps, MaxHeightProps, SpaceProps, LayoutProps {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
"aria-label": string;
|
|
18
|
+
}
|
|
19
|
+
declare function SheetPart({ children, ...props }: SheetPartProps): React.JSX.Element;
|
|
20
|
+
export declare const BottomSheetParts: {
|
|
21
|
+
Root: typeof Root;
|
|
22
|
+
Overlay: typeof OverlayPart;
|
|
23
|
+
Sheet: typeof SheetPart;
|
|
24
|
+
ContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
|
+
Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
26
|
+
Title: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, React.HTMLAttributes<HTMLParagraphElement> & {
|
|
27
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
28
|
+
inline?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
31
|
+
fontSize?: string;
|
|
32
|
+
} & import("..").StyledProps & {
|
|
33
|
+
as: string;
|
|
34
|
+
}, "as">;
|
|
35
|
+
HelpText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, React.HTMLAttributes<HTMLParagraphElement> & {
|
|
36
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
37
|
+
inline?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
40
|
+
fontSize?: string;
|
|
41
|
+
} & import("..").StyledProps, never>;
|
|
42
|
+
Footer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DialogContentProps } from "@reach/dialog";
|
|
3
|
+
import type { AnimationProps } from "framer-motion";
|
|
4
|
+
import type { HeightProps, LayoutProps, MaxHeightProps, MaxWidthProps, SpaceProps, WidthProps } from "styled-system";
|
|
5
|
+
declare const Overlay: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<import("@reach/utils/dist/declarations/src/polymorphic").Merge<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
+
}, import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
8
|
+
as?: "div";
|
|
9
|
+
}>>, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
interface SheetProps extends DialogContentProps, AnimationProps, WidthProps, MaxWidthProps, HeightProps, MaxHeightProps, SpaceProps, LayoutProps {
|
|
11
|
+
}
|
|
12
|
+
declare const Sheet: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<import("@reach/utils/dist/declarations/src/polymorphic").Merge<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
14
|
+
}, DialogContentProps & {
|
|
15
|
+
as?: "div";
|
|
16
|
+
}>>, import("styled-components").DefaultTheme, {
|
|
17
|
+
[x: string]: {};
|
|
18
|
+
} & SheetProps, never>;
|
|
19
|
+
declare const ContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
+
declare const Footer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
+
declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
+
declare const Title: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
23
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
24
|
+
inline?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
27
|
+
fontSize?: string;
|
|
28
|
+
} & import("../StyledProps").StyledProps & {
|
|
29
|
+
as: string;
|
|
30
|
+
}, "as">;
|
|
31
|
+
declare const HelpText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
32
|
+
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
33
|
+
inline?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
36
|
+
fontSize?: string;
|
|
37
|
+
} & import("../StyledProps").StyledProps, never>;
|
|
38
|
+
export { Overlay, Sheet, ContentContainer, Footer, Header, Title, HelpText };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BottomSheetContextType {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function useBottomSheet(): BottomSheetContextType;
|
|
7
|
+
declare function BottomSheetProvider({ isOpen, onClose, children, }: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export { BottomSheetProvider, useBottomSheet };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WithCustomWidths: () => React.JSX.Element;
|
|
7
|
+
export declare const DisableCloseOnOverlayClick: () => React.JSX.Element;
|
|
8
|
+
export declare const AdvancedUsage: () => 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;
|