@nulogy/components 10.2.5 → 11.0.0-beta.2
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 +1296 -197
- package/dist/main.module.js +1295 -196
- package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/Branding/BrandingText.d.ts +1 -1
- package/dist/src/Branding/LettermarkLogo.d.ts +1 -1
- package/dist/src/Branding/WordmarkLogo.d.ts +1 -1
- package/dist/src/Button/Button.d.ts +1 -1
- package/dist/src/Button/DangerButton.d.ts +1 -1
- package/dist/src/Button/PrimaryButton.d.ts +1 -1
- package/dist/src/Button/QuietButton.d.ts +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/src/Card/Card.d.ts +1 -1
- package/dist/src/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/src/DatePicker/DatePickerHeader.d.ts +1 -1
- package/dist/src/DateRange/DateRange.d.ts +1 -1
- package/dist/src/DateRange/EndTime.d.ts +2 -2
- package/dist/src/DateRange/StartTime.d.ts +2 -2
- package/dist/src/DropdownMenu/DropdownItem.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownText.d.ts +1 -1
- package/dist/src/Form/Fieldset.d.ts +1 -1
- package/dist/src/Form/FormSection.d.ts +1 -1
- package/dist/src/Icon/LoadingIcon.d.ts +1 -1
- package/dist/src/Layout/Header.d.ts +1 -1
- package/dist/src/Layout/Page.d.ts +1 -1
- package/dist/src/List/List.d.ts +1 -1
- package/dist/src/List/ListItem.d.ts +1 -1
- package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +1 -1
- package/dist/src/Modal/Modal.d.ts +1 -1
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/NDSProvider/ComponentSizeContext.d.ts +1 -1
- package/dist/src/NDSProvider/NDSProvider.d.ts +1 -1
- package/dist/src/Overlay/Overlay.d.ts +1 -1
- package/dist/src/Popper/Popper.d.ts +1 -1
- package/dist/src/Radio/Radio.d.ts +1 -1
- package/dist/src/RangeContainer/RangeContainer.d.ts +1 -1
- package/dist/src/Select/MenuList.d.ts +3 -0
- package/dist/src/Select/Select.d.ts +20 -53
- package/dist/src/Select/Select.story.d.ts +0 -1
- package/dist/src/Select/Select.story.fixture.d.ts +19 -0
- package/dist/src/Select/SelectComponents.d.ts +9 -7
- package/dist/src/Select/SelectOption.d.ts +7 -6
- package/dist/src/Select/index.d.ts +1 -1
- package/dist/src/Select/lib.d.ts +20 -0
- 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/Switcher.d.ts +1 -1
- package/dist/src/Table/TableCell.d.ts +1 -1
- package/dist/src/Tabs/Tab.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
- package/dist/src/TimePicker/TimePicker.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/Validation/InlineValidation.d.ts +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/PopperArrow.d.ts +1 -1
- package/dist/src/utils/ts/FocusManager.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { OptionProps } from "react-select";
|
|
5
5
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
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;
|
|
@@ -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.FC<
|
|
18
|
+
declare const MobileMenu: import("styled-components").StyledComponent<React.FC<BaseMobileMenuProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
19
19
|
export default MobileMenu;
|
|
@@ -13,5 +13,5 @@ export type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"button"> & {
|
|
|
13
13
|
theme?: DefaultNDSThemeType;
|
|
14
14
|
href?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const Button: React.FC<
|
|
16
|
+
declare const Button: React.FC<ButtonProps>;
|
|
17
17
|
export default Button;
|
|
@@ -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").FC<
|
|
3
|
+
declare const DangerButton: import("styled-components").StyledComponent<import("react").FC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default DangerButton;
|
|
@@ -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").FC<
|
|
3
|
+
declare const QuietButton: import("styled-components").StyledComponent<import("react").FC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default QuietButton;
|
|
@@ -4,5 +4,5 @@ type ButtonGroupProps = FlexProps & {
|
|
|
4
4
|
alignment?: "left" | "spaced" | "right";
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const ButtonGroup: React.FC<
|
|
7
|
+
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
8
8
|
export default ButtonGroup;
|
package/dist/src/Card/Card.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ type CheckboxProps = NativeInputProps & SpaceProps & {
|
|
|
13
13
|
indeterminate?: boolean;
|
|
14
14
|
theme?: DefaultNDSThemeType;
|
|
15
15
|
};
|
|
16
|
-
declare const Checkbox: React.FC<
|
|
16
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
17
17
|
export default Checkbox;
|
|
@@ -7,5 +7,5 @@ type DatePickerHeaderProps = {
|
|
|
7
7
|
nextMonthButtonDisabled: boolean;
|
|
8
8
|
locale?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const DatePickerHeader: React.FC<
|
|
10
|
+
declare const DatePickerHeader: React.FC<DatePickerHeaderProps>;
|
|
11
11
|
export default DatePickerHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const EndTime: import("styled-components").StyledComponent<import("react").FC<import("
|
|
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
3
|
size?: import("../NDSProvider/ComponentSizeContext").ComponentSize;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
value?: 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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const StartTime: import("styled-components").StyledComponent<import("react").FC<import("
|
|
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
3
|
size?: import("../NDSProvider/ComponentSizeContext").ComponentSize;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
value?: 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;
|
|
@@ -18,5 +18,5 @@ type DropdownMenuProps = {
|
|
|
18
18
|
closeAriaLabel?: string;
|
|
19
19
|
openOnHover?: boolean;
|
|
20
20
|
} & StyledProps;
|
|
21
|
-
declare const DropdownMenu: React.FC<
|
|
21
|
+
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
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<
|
|
11
|
+
declare const DropdownMenuContainer: React.FC<DropdownMenuContainerProps>;
|
|
12
12
|
export default DropdownMenuContainer;
|
|
@@ -2,5 +2,5 @@ import React from "react";
|
|
|
2
2
|
type BaseFormSectionProps = React.ComponentPropsWithRef<"fieldset"> & {
|
|
3
3
|
title?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const FormSection: import("styled-components").StyledComponent<React.FC<
|
|
5
|
+
declare const FormSection: import("styled-components").StyledComponent<React.FC<BaseFormSectionProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export default FormSection;
|
package/dist/src/List/List.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { SpaceProps, ColorProps, TypographyProps } from "styled-system";
|
|
|
3
3
|
type ListItemProps = React.ComponentPropsWithRef<"li"> & SpaceProps & ColorProps & TypographyProps & {
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const ListItem: React.FC<
|
|
6
|
+
declare const ListItem: React.FC<ListItemProps>;
|
|
7
7
|
export default ListItem;
|
|
@@ -2,5 +2,5 @@ import React from "react";
|
|
|
2
2
|
type LoadingAnimationProps = React.ComponentPropsWithRef<"svg"> & {
|
|
3
3
|
inactive?: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare const LoadingAnimation: React.FC<
|
|
5
|
+
declare const LoadingAnimation: React.FC<LoadingAnimationProps>;
|
|
6
6
|
export default LoadingAnimation;
|
|
@@ -19,7 +19,7 @@ type ModalProps = {
|
|
|
19
19
|
footerContent?: React.ReactNode;
|
|
20
20
|
parentSelector?: (...args: any) => HTMLElement;
|
|
21
21
|
};
|
|
22
|
-
declare const Modal: React.FC<
|
|
22
|
+
declare const Modal: React.FC<ModalProps> & {
|
|
23
23
|
setAppElement: (element: string | HTMLElement) => void;
|
|
24
24
|
};
|
|
25
25
|
export default Modal;
|
|
@@ -4,5 +4,5 @@ type ModalContentProps = React.ComponentPropsWithRef<"div"> & {
|
|
|
4
4
|
hasFooter?: any;
|
|
5
5
|
theme?: DefaultNDSThemeType;
|
|
6
6
|
};
|
|
7
|
-
declare const ModalContent: React.FC<
|
|
7
|
+
declare const ModalContent: React.FC<ModalContentProps>;
|
|
8
8
|
export default ModalContent;
|
|
@@ -5,5 +5,5 @@ type ComponentSizeContextValue = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const ComponentSizeContext: React.Context<ComponentSizeContextValue>;
|
|
7
7
|
export declare function useComponentSize(selectedSize?: ComponentSize): ComponentSize;
|
|
8
|
-
declare const ComponentSizeContextProvider: React.FC<
|
|
8
|
+
declare const ComponentSizeContextProvider: React.FC<ComponentSizeContextValue>;
|
|
9
9
|
export default ComponentSizeContextProvider;
|
|
@@ -7,5 +7,5 @@ type RangeContainerProps = {
|
|
|
7
7
|
size?: ComponentSize;
|
|
8
8
|
errorMessages?: (string | undefined)[];
|
|
9
9
|
};
|
|
10
|
-
declare const RangeContainer: React.FC<
|
|
10
|
+
declare const RangeContainer: React.FC<RangeContainerProps>;
|
|
11
11
|
export default RangeContainer;
|
|
@@ -1,64 +1,31 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import Select from "react-select/base";
|
|
3
|
+
import { PropsValue } from "react-select";
|
|
4
|
+
import type { GroupBase, Props } from "react-select";
|
|
4
5
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
interface NDSOptionType {
|
|
6
|
+
export type NDSOptionValue = string | number | boolean | null;
|
|
7
|
+
export interface NDSOption {
|
|
9
8
|
label: string;
|
|
10
|
-
value:
|
|
9
|
+
value: NDSOptionValue;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
autocomplete?:
|
|
11
|
+
type CustomProps<IsMulti extends boolean, Group extends GroupBase<NDSOption>> = {
|
|
12
|
+
autocomplete?: Props<NDSOption, IsMulti, Group>["isSearchable"];
|
|
14
13
|
labelText?: string;
|
|
14
|
+
size?: ComponentSize;
|
|
15
15
|
requirementText?: string;
|
|
16
16
|
helpText?: ReactNode;
|
|
17
|
-
disabled?:
|
|
17
|
+
disabled?: Props<NDSOption, IsMulti, Group>["isDisabled"];
|
|
18
18
|
errorMessage?: string;
|
|
19
19
|
errorList?: string[];
|
|
20
|
-
initialIsOpen?:
|
|
21
|
-
multiselect?:
|
|
20
|
+
initialIsOpen?: Props<NDSOption, IsMulti, Group>["defaultMenuIsOpen"];
|
|
21
|
+
multiselect?: Props<NDSOption, IsMulti, Group>["isMulti"];
|
|
22
22
|
maxHeight?: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options:
|
|
26
|
-
onChange?: (newValue:
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
export type NDSSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Omit<WindowedSelectProps, "isSearchable" | "isDisabled" | "isMulti" | "defaultMenuIsOpen" | "defaultInputValue" | "options" | "onChange"> & CustomProps<Option, IsMulti, Group>;
|
|
30
|
-
export declare const SelectDefaultProps: {
|
|
31
|
-
autocomplete: boolean;
|
|
32
|
-
disabled: any;
|
|
33
|
-
defaultValue: any;
|
|
34
|
-
error: any;
|
|
35
|
-
errorMessage: any;
|
|
36
|
-
errorList: any;
|
|
37
|
-
labelText: any;
|
|
38
|
-
helpText: any;
|
|
39
|
-
noOptionsMessage: any;
|
|
40
|
-
requirementText: any;
|
|
41
|
-
id: any;
|
|
42
|
-
initialIsOpen: any;
|
|
43
|
-
maxHeight: string;
|
|
44
|
-
menuPosition: MenuPosition;
|
|
45
|
-
menuPlacement: MenuPlacement;
|
|
46
|
-
multiselect: boolean;
|
|
47
|
-
name: any;
|
|
48
|
-
onBlur: any;
|
|
49
|
-
onChange: any;
|
|
50
|
-
placeholder: any;
|
|
51
|
-
required: boolean;
|
|
52
|
-
value: any;
|
|
53
|
-
className: any;
|
|
54
|
-
classNamePrefix: string;
|
|
55
|
-
menuIsOpen: any;
|
|
56
|
-
onMenuOpen: any;
|
|
57
|
-
onMenuClose: any;
|
|
58
|
-
onInputChange: any;
|
|
59
|
-
components: any;
|
|
60
|
-
closeMenuOnSelect: boolean;
|
|
23
|
+
defaultValue?: PropsValue<NDSOptionValue>;
|
|
24
|
+
value?: PropsValue<NDSOptionValue>;
|
|
25
|
+
options: NDSOption[];
|
|
26
|
+
onChange?: (newValue: PropsValue<NDSOptionValue>) => void;
|
|
27
|
+
windowThreshold?: number;
|
|
61
28
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export default
|
|
29
|
+
export type NDSSelectProps<IsMulti extends boolean = boolean, Group extends GroupBase<NDSOption> = GroupBase<NDSOption>> = Omit<Props<NDSOption, IsMulti, Group>, keyof CustomProps<IsMulti, Group> | "isSearchable" | "isDisabled" | "defaultMenuIsOpen" | "isMulti"> & CustomProps<IsMulti, Group>;
|
|
30
|
+
declare const NDSSelect: React.ForwardRefExoticComponent<Omit<Props<NDSOption, boolean, GroupBase<NDSOption>>, "isDisabled" | "isMulti" | "isSearchable" | "defaultMenuIsOpen" | keyof CustomProps<IsMulti, Group>> & CustomProps<boolean, GroupBase<NDSOption>> & React.RefAttributes<Select<NDSOption, boolean, GroupBase<NDSOption>>>>;
|
|
31
|
+
export default NDSSelect;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SelectOptionProps } from "./SelectOption";
|
|
3
|
+
import { NDSOption } from "./Select";
|
|
4
|
+
export declare const errorList: string[];
|
|
5
|
+
export declare const options: NDSOption[];
|
|
6
|
+
export declare const partnerCompanyName: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const wrappingOptions: {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const PCNList: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const getPhotos: () => Promise<any>;
|
|
19
|
+
export declare const CustomOption: ({ children, ...props }: SelectOptionProps) => React.JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
7
|
-
export declare
|
|
8
|
-
export declare
|
|
2
|
+
import { ClearIndicatorProps, ContainerProps, ControlProps, DropdownIndicatorProps, InputProps, MenuProps, MultiValueProps, GroupBase } from "react-select";
|
|
3
|
+
import { NDSOption } from "./Select";
|
|
4
|
+
export declare function SelectControl<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
5
|
+
export declare function SelectMultiValue<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
6
|
+
export declare function SelectClearIndicator<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
7
|
+
export declare function SelectDropdownIndicator<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
8
|
+
export declare function SelectMenu<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
9
|
+
export declare function SelectContainer<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: ContainerProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
10
|
+
export declare function SelectInput<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { OptionProps } from "react-
|
|
2
|
+
import { GroupBase, OptionProps } from "react-select";
|
|
3
3
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
4
|
-
|
|
4
|
+
import { NDSOption } from "./Select";
|
|
5
|
+
type StyledOptionProps = {
|
|
5
6
|
isSelected: boolean;
|
|
6
7
|
isFocused: boolean;
|
|
7
8
|
size: ComponentSize;
|
|
8
9
|
};
|
|
9
|
-
export declare const StyledOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
10
|
-
|
|
10
|
+
export declare const StyledOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledOptionProps, never>;
|
|
11
|
+
export type SelectOptionProps<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = OptionProps<Option, IsMulti, Group> & {
|
|
11
12
|
size?: ComponentSize;
|
|
12
|
-
}
|
|
13
|
-
export declare function SelectOption(props:
|
|
13
|
+
};
|
|
14
|
+
export declare function SelectOption<Option = NDSOption, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectOptionProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Options, PropsValue } from "react-select";
|
|
2
|
+
import { NDSOption, NDSOptionValue } from "./Select";
|
|
3
|
+
export declare function calcOptionsLength(options: any): any;
|
|
4
|
+
export declare function flattenGroupedChildren(children: any): any;
|
|
5
|
+
export declare function isFocused({ props: { isFocused } }: {
|
|
6
|
+
props: {
|
|
7
|
+
isFocused: any;
|
|
8
|
+
};
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare function getCurrentIndex(children: any): number;
|
|
11
|
+
export declare function createGetHeight({ groupHeadingStyles, noOptionsMsgStyles, optionStyles, loadingMsgStyles }: {
|
|
12
|
+
groupHeadingStyles: any;
|
|
13
|
+
noOptionsMsgStyles: any;
|
|
14
|
+
optionStyles: any;
|
|
15
|
+
loadingMsgStyles: any;
|
|
16
|
+
}): (child: any) => any;
|
|
17
|
+
export declare function checkOptionsAreValid(options: Options<NDSOption>): void;
|
|
18
|
+
export declare function getOption(options: Options<NDSOption>, value: PropsValue<NDSOptionValue>): any;
|
|
19
|
+
export declare function getReactSelectValue(options: Options<NDSOption>, input: PropsValue<NDSOptionValue>): any;
|
|
20
|
+
export declare function extractValue(options: Options<NDSOption> | NDSOption, isMulti: boolean): NDSOptionValue[] | NDSOptionValue;
|
|
@@ -3,5 +3,5 @@ type SummaryContextValue = {
|
|
|
3
3
|
breakpoint: number;
|
|
4
4
|
};
|
|
5
5
|
export declare function useSummaryContext(): SummaryContextValue;
|
|
6
|
-
export declare const SummaryContextProvider: React.FC<
|
|
6
|
+
export declare const SummaryContextProvider: React.FC<SummaryContextValue>;
|
|
7
7
|
export {};
|
|
@@ -4,5 +4,5 @@ type SummaryItemProps = Omit<FlexProps, "as"> & {
|
|
|
4
4
|
value: number | string;
|
|
5
5
|
status: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
declare const SummaryItem: React.FC<
|
|
7
|
+
declare const SummaryItem: React.FC<SummaryItemProps>;
|
|
8
8
|
export default SummaryItem;
|
package/dist/src/Tabs/Tab.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ type TabScrollIndicatorProps = {
|
|
|
6
6
|
ariaLabelLeft?: string;
|
|
7
7
|
ariaLabelRight?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const TabScrollIndicator: React.FC<
|
|
9
|
+
declare const TabScrollIndicator: React.FC<TabScrollIndicatorProps>;
|
|
10
10
|
export default TabScrollIndicator;
|
|
@@ -38,5 +38,5 @@ export declare const getTimeOptions: (interval: any, timeFormat: any, minTime: a
|
|
|
38
38
|
value: string;
|
|
39
39
|
label: string;
|
|
40
40
|
}[];
|
|
41
|
-
declare const TimePicker: React.FC<
|
|
41
|
+
declare const TimePicker: React.FC<TimePickerProps>;
|
|
42
42
|
export default TimePicker;
|
|
@@ -7,5 +7,5 @@ type ToggleButtonProps = React.ComponentPropsWithRef<"input"> & {
|
|
|
7
7
|
name?: string;
|
|
8
8
|
theme?: DefaultNDSThemeType;
|
|
9
9
|
};
|
|
10
|
-
declare const ToggleButton: React.FC<
|
|
10
|
+
declare const ToggleButton: React.FC<ToggleButtonProps>;
|
|
11
11
|
export default ToggleButton;
|
|
@@ -6,5 +6,5 @@ type InlineValidationProps = SpaceProps & {
|
|
|
6
6
|
errorList?: string[];
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
declare const InlineValidation: React.FC<
|
|
9
|
+
declare const InlineValidation: React.FC<InlineValidationProps>;
|
|
10
10
|
export default InlineValidation;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export { Overlay } from "./Overlay";
|
|
|
32
32
|
export { Pagination } from "./Pagination";
|
|
33
33
|
export { Radio, RadioGroup } from "./Radio";
|
|
34
34
|
export { RangeContainer } from "./RangeContainer";
|
|
35
|
-
export { Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, } from "./Select";
|
|
35
|
+
export { Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, type NDSOption, type NDSOptionValue, } from "./Select";
|
|
36
36
|
export { SortingTable } from "./SortingTable";
|
|
37
37
|
export { StatusIndicator, StatusIndicatorValues } from "./StatusIndicator";
|
|
38
38
|
export type { StatusIndicatorType } from "./StatusIndicator";
|