@luscii-healthtech/web-ui 2.71.6 → 2.71.7
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/components/AccordionList/AccordionList.d.ts +4 -4
- package/dist/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Badge/Badge.d.ts +1 -0
- package/dist/components/BaseList/BaseList.types.d.ts +7 -7
- package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
- package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +2 -1
- package/dist/components/BaseList/utils.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.types.d.ts +3 -3
- package/dist/components/Button/ButtonIcon.d.ts +1 -0
- package/dist/components/ButtonV2/ButtonProps.type.d.ts +2 -2
- package/dist/components/ButtonV2/ButtonV2.d.ts +1 -1
- package/dist/components/ButtonV2/PrimaryButton.d.ts +1 -0
- package/dist/components/ButtonV2/SecondaryButton.d.ts +1 -1
- package/dist/components/ButtonV2/TertiaryButton.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/CenteredHero/CenteredHero.d.ts +3 -2
- package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +2 -1
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +1 -0
- package/dist/components/CheckboxList/CheckboxList.d.ts +1 -0
- package/dist/components/CheckboxList/CheckboxList.types.d.ts +3 -3
- package/dist/components/CheckboxList/CheckboxListItem.d.ts +1 -0
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +4 -4
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/DragHandle/DragHandle.types.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +7 -7
- package/dist/components/Dropzone/Dropzone.types.d.ts +2 -2
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +2 -1
- package/dist/components/Form/Form.d.ts +1 -0
- package/dist/components/Form/FormFieldLabeler.d.ts +1 -0
- package/dist/components/Form/form.types.d.ts +5 -5
- package/dist/components/Icons/AddIcon.d.ts +1 -0
- package/dist/components/Icons/AlertsIcon.d.ts +1 -0
- package/dist/components/Icons/BellIcon.d.ts +1 -0
- package/dist/components/Icons/BluetoothIcon.d.ts +1 -0
- package/dist/components/Icons/ChartIcon.d.ts +1 -0
- package/dist/components/Icons/ChartLineColoredIcon.d.ts +1 -0
- package/dist/components/Icons/ChatBoxIcon.d.ts +1 -0
- package/dist/components/Icons/CheckIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronDownIcon.d.ts +1 -0
- package/dist/components/Icons/ChevronRightIcon.d.ts +1 -0
- package/dist/components/Icons/CrossIcon.d.ts +1 -0
- package/dist/components/Icons/DeleteIcon.d.ts +1 -0
- package/dist/components/Icons/DownArrowIcon.d.ts +1 -0
- package/dist/components/Icons/DragIcon.d.ts +1 -0
- package/dist/components/Icons/EditIcon.d.ts +1 -0
- package/dist/components/Icons/EmptyIcon.d.ts +1 -0
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +1 -0
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +1 -0
- package/dist/components/Icons/EyeIcon.d.ts +1 -0
- package/dist/components/Icons/GearColoredIcon.d.ts +1 -0
- package/dist/components/Icons/GearIcon.d.ts +1 -0
- package/dist/components/Icons/GroupColoredIcon.d.ts +1 -0
- package/dist/components/Icons/GroupIcon.d.ts +1 -0
- package/dist/components/Icons/HamburgerIcon.d.ts +1 -0
- package/dist/components/Icons/HeartIcon.d.ts +1 -0
- package/dist/components/Icons/ImageIcon.d.ts +1 -0
- package/dist/components/Icons/InfoIcon.d.ts +1 -0
- package/dist/components/Icons/LeftArrowIcon.d.ts +1 -0
- package/dist/components/Icons/LightBulbIcon.d.ts +1 -0
- package/dist/components/Icons/LinkIcon.d.ts +1 -0
- package/dist/components/Icons/LockIcon.d.ts +1 -0
- package/dist/components/Icons/MessagesIcon.d.ts +1 -0
- package/dist/components/Icons/MouseIcon.d.ts +1 -0
- package/dist/components/Icons/NotesIcon.d.ts +1 -0
- package/dist/components/Icons/PinIcon.d.ts +1 -0
- package/dist/components/Icons/PrintIcon.d.ts +1 -0
- package/dist/components/Icons/RightArrowIcon.d.ts +1 -0
- package/dist/components/Icons/SearchCancelIcon.d.ts +1 -0
- package/dist/components/Icons/SearchIcon.d.ts +1 -0
- package/dist/components/Icons/SmallCircleIcon.d.ts +1 -0
- package/dist/components/Icons/SmallDiamondIcon.d.ts +1 -0
- package/dist/components/Icons/SmallSquareIcon.d.ts +1 -0
- package/dist/components/Icons/SpaceRocketIcon.d.ts +1 -0
- package/dist/components/Icons/StarIcon.d.ts +1 -0
- package/dist/components/Icons/StatusColoredIcon.d.ts +1 -0
- package/dist/components/Icons/WarningIcon.d.ts +1 -0
- package/dist/components/Icons/types/IconProps.type.d.ts +1 -1
- package/dist/components/InfoBlock/InfoBlock.d.ts +2 -1
- package/dist/components/InfoField/InfoField.d.ts +2 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/SearchInput.d.ts +1 -1
- package/dist/components/Line/Line.d.ts +2 -1
- package/dist/components/List/List.types.d.ts +6 -6
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Modal/FullPageModal.d.ts +1 -1
- package/dist/components/Modal/FullPageModalHeader.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/ModalBase.d.ts +2 -2
- package/dist/components/Modal/ModalFooter.d.ts +2 -2
- package/dist/components/Modal/ModalHeader.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +2 -1
- package/dist/components/NavMenu/NavMenu.d.ts +2 -1
- package/dist/components/NavMenu/NavMenuItem.d.ts +1 -0
- package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +1 -1
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +2 -2
- package/dist/components/Page/CRUDPage.types.d.ts +5 -5
- package/dist/components/Page/Page.d.ts +8 -7
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +1 -0
- package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +3 -3
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +1 -0
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/components/Section/SectionItemWithContent.d.ts +1 -0
- package/dist/components/Select/SelectDropdownIndicator.d.ts +1 -0
- package/dist/components/Select/SelectLoadingIndicator.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +1 -0
- package/dist/components/Steps/Step.d.ts +1 -0
- package/dist/components/Steps/Steps.d.ts +1 -0
- package/dist/components/Switcher/Switcher.d.ts +4 -3
- package/dist/components/Switcher/SwitcherItem.d.ts +4 -3
- package/dist/components/TabLinks/TabLinks.d.ts +1 -0
- package/dist/components/Tabbar/Tabbar.d.ts +1 -0
- package/dist/components/Tabbar/TabbarItem.d.ts +1 -0
- package/dist/components/Table/Table.types.d.ts +7 -6
- package/dist/components/Table/TableBody.d.ts +1 -0
- package/dist/components/Table/TableBodyRow.d.ts +1 -0
- package/dist/components/Table/TableBodyRowDataCell.d.ts +1 -0
- package/dist/components/Table/TableFooter.d.ts +1 -0
- package/dist/components/Table/TableHeader.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +1 -0
- package/dist/components/Tag/TagGroup.d.ts +1 -0
- package/dist/components/Text/LegacyText.d.ts +2 -1
- package/dist/components/Text/Text.d.ts +4 -3
- package/dist/components/TextEditor/TextEditor.d.ts +2 -1
- package/dist/components/TextEditorV2/TextEditorV2.d.ts +2 -1
- package/dist/components/TextLink/TextLink.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -0
- package/dist/components/Timeline/TimelineHeader.d.ts +1 -1
- package/dist/components/Timeline/TimelineStep.d.ts +1 -1
- package/dist/components/Title/Title.d.ts +1 -1
- package/dist/components/Toaster/Toaster.d.ts +1 -1
- package/dist/components/Toaster/toast.d.ts +1 -1
- package/dist/components/ViewItem/ViewItem.d.ts +1 -0
- package/dist/types/general.types.d.ts +1 -1
- package/dist/web-ui.cjs.development.js +945 -1574
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +945 -1574
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +15 -12
|
@@ -3,7 +3,7 @@ declare function InfoBlock({ message, className, containsDangerousHtml }: {
|
|
|
3
3
|
message: any;
|
|
4
4
|
className: any;
|
|
5
5
|
containsDangerousHtml?: boolean | undefined;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
7
|
declare namespace InfoBlock {
|
|
8
8
|
namespace propTypes {
|
|
9
9
|
const message: PropTypes.Validator<string>;
|
|
@@ -11,4 +11,5 @@ declare namespace InfoBlock {
|
|
|
11
11
|
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
import React from "react";
|
|
14
15
|
import PropTypes from "prop-types";
|
|
@@ -8,10 +8,10 @@ export declare const INPUT_TYPES: Record<string, AllowedTextInputTypes>;
|
|
|
8
8
|
* It's very complicated to tap into the onChange events of inputs,
|
|
9
9
|
* so I omit the type it requires and add a easier one to deal with.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type CustomHTMLInputProps = Omit<React.HTMLProps<HTMLInputElement>, "onChange" | "ref"> & {
|
|
12
12
|
isError?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type FakeEventTarget = {
|
|
15
15
|
target: {
|
|
16
16
|
value: string;
|
|
17
17
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "./Input";
|
|
3
|
-
export
|
|
3
|
+
export type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
|
|
4
4
|
export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -3,7 +3,7 @@ declare function Line({ left, right, className }: {
|
|
|
3
3
|
left: any;
|
|
4
4
|
right: any;
|
|
5
5
|
className: any;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
7
|
declare namespace Line {
|
|
8
8
|
namespace propTypes {
|
|
9
9
|
const left: PropTypes.Requireable<any[]>;
|
|
@@ -11,4 +11,5 @@ declare namespace Line {
|
|
|
11
11
|
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
import React from "react";
|
|
14
15
|
import PropTypes from "prop-types";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, SortableBaseListProps } from "../BaseList/BaseList.types";
|
|
3
|
-
export
|
|
3
|
+
export type ListItemProps = Omit<BaseListItemProps, "onClick"> & {
|
|
4
4
|
handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type DefaultListProps = Omit<BaseListProps<ListItemProps>, "renderItem" | "itemComponent"> & {
|
|
7
7
|
onDragEnd?: (itemId: string | number, newIndex: number) => void;
|
|
8
8
|
onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
10
|
+
export type DraggableListProps = DraggableBaseListProps;
|
|
11
|
+
export type SortableListProps = SortableBaseListProps;
|
|
12
|
+
export type SortableListItemProps = SortableListProps["items"][number];
|
|
13
|
+
export type ListProps = ({
|
|
14
14
|
draggableListType: "default";
|
|
15
15
|
} & DefaultListProps) | ({
|
|
16
16
|
draggableListType: "draggable";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Menu;
|
|
2
2
|
declare class Menu extends React.PureComponent<any, any, any> {
|
|
3
3
|
static propTypes: {
|
|
4
|
-
children: PropTypes.Validator<
|
|
4
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
5
5
|
};
|
|
6
6
|
constructor(props: any);
|
|
7
7
|
state: {
|
|
@@ -13,7 +13,7 @@ declare class Menu extends React.PureComponent<any, any, any> {
|
|
|
13
13
|
handleIconClick: (event: any) => void;
|
|
14
14
|
openMenu: () => void;
|
|
15
15
|
closeMenu: () => void;
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
rootRef: HTMLDivElement | null | undefined;
|
|
18
18
|
}
|
|
19
19
|
import React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ModalBaseProps } from "./ModalBase";
|
|
3
|
-
export
|
|
3
|
+
export type ModalProps = Omit<ModalBaseProps, "title" | "withExtraMarginTop"> & {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ModalHeaderProps } from "./ModalHeader";
|
|
3
3
|
import { ModalFooterProps } from "./ModalFooter";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type ModalSize = "small" | "medium" | "wide";
|
|
5
|
+
export type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
size?: ModalSize;
|
|
8
8
|
withExtraMarginTop?: boolean;
|
|
@@ -4,8 +4,8 @@ export interface ModalFooterTrailingComponents {
|
|
|
4
4
|
primaryButtonProps: PrimaryButtonProps;
|
|
5
5
|
secondaryButtonProps?: NonPrimaryButtonProps;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
|
|
8
|
+
export type ModalFooterProps = {
|
|
9
9
|
footerLeadingComponent?: ModalFooterLeadingComponent;
|
|
10
10
|
footerTrailingComponents: ModalFooterTrailingComponents;
|
|
11
11
|
};
|
|
@@ -6,7 +6,7 @@ export function MultiSelect({ checkboxList, radioLabel, onChange, validationErro
|
|
|
6
6
|
name: any;
|
|
7
7
|
implicitSelect: any;
|
|
8
8
|
radioOnDemand: any;
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
export namespace MultiSelect {
|
|
11
11
|
namespace propTypes {
|
|
12
12
|
const name: PropTypes.Requireable<string>;
|
|
@@ -22,4 +22,5 @@ export namespace MultiSelect {
|
|
|
22
22
|
const radioOnDemand: PropTypes.Requireable<boolean>;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
import React from "react";
|
|
25
26
|
import PropTypes from "prop-types";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { NavMenuFooterProps } from "./types/NavMenuFooterProps.type";
|
|
2
3
|
import { NavMenuItemProps } from "./types/NavMenuItemProps.type";
|
|
3
4
|
import { NavMenuHeaderProps } from "./types/NavMenuHeaderProps.type";
|
|
4
|
-
export
|
|
5
|
+
export type NavMenuProps = {
|
|
5
6
|
roleItems: NavMenuItemProps[];
|
|
6
7
|
publicItems: NavMenuItemProps[];
|
|
7
8
|
authenticationItems: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconProps } from "../Icons/types/IconProps.type";
|
|
3
3
|
import "./NotificationBanner.css";
|
|
4
|
-
export
|
|
4
|
+
export type NotificationBannerColor = "base" | "blue" | "red" | "green" | "amber";
|
|
5
5
|
export interface NotificationBannerLinkProps {
|
|
6
6
|
text: string;
|
|
7
7
|
enabled: boolean;
|
|
@@ -17,7 +17,7 @@ interface NotificationBannerPropsWithChildren {
|
|
|
17
17
|
text?: never;
|
|
18
18
|
linkProps?: never;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type NotificationBannerProps = (NotificationBannerPropsWithChildren | NotificationBannerPropsWithText) & {
|
|
21
21
|
color?: NotificationBannerColor;
|
|
22
22
|
/**
|
|
23
23
|
* The icon can either be one of our icon components or an image url
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import type { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
3
3
|
import type { PageHeaderProps } from "../PageHeader";
|
|
4
4
|
import type { StepsProps } from "../Steps/Steps";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text">;
|
|
6
|
+
type CRUDPageTitle = {
|
|
7
7
|
text: string;
|
|
8
8
|
icon?: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type CRUDPageHeader = Omit<PageHeaderProps, "navigation" | "isPolling" | "accessories">;
|
|
11
|
+
type CRUDPagePropsWithoutHeaderOrTitle = {
|
|
12
12
|
dataTestId?: string;
|
|
13
13
|
submitButtonProps?: CRUDPageButtonProps;
|
|
14
14
|
cancelButtonProps?: CRUDPageButtonProps;
|
|
@@ -22,7 +22,7 @@ declare type CRUDPagePropsWithoutHeaderOrTitle = {
|
|
|
22
22
|
localization: StepsProps["localization"];
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type CRUDPageProps = (CRUDPagePropsWithoutHeaderOrTitle & {
|
|
26
26
|
title: CRUDPageTitle;
|
|
27
27
|
header?: never;
|
|
28
28
|
}) | (CRUDPagePropsWithoutHeaderOrTitle & {
|
|
@@ -31,26 +31,27 @@ declare function Page({ dataTestId, title, accessories, accessoryPosition, class
|
|
|
31
31
|
isPolling?: boolean | undefined;
|
|
32
32
|
spinnerColor?: string | undefined;
|
|
33
33
|
navLayoutProps?: {} | undefined;
|
|
34
|
-
feedbackBlock?: JSX.Element | undefined;
|
|
34
|
+
feedbackBlock?: React.JSX.Element | undefined;
|
|
35
35
|
navMenu: any;
|
|
36
36
|
id: any;
|
|
37
|
-
}): JSX.Element;
|
|
37
|
+
}): React.JSX.Element;
|
|
38
38
|
declare namespace Page {
|
|
39
39
|
namespace propTypes {
|
|
40
|
-
const breadcrumbs: PropTypes.Requireable<((...args: any[]) => any) | (PropTypes.InferProps<{
|
|
40
|
+
const breadcrumbs: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | (PropTypes.InferProps<{
|
|
41
41
|
name: PropTypes.Requireable<string>;
|
|
42
42
|
icon: PropTypes.Requireable<string>;
|
|
43
43
|
link: PropTypes.Requireable<string>;
|
|
44
|
-
}> | null | undefined)[]
|
|
44
|
+
}> | null | undefined)[] | null | undefined>>;
|
|
45
45
|
const isLoading: PropTypes.Requireable<boolean>;
|
|
46
46
|
const isFetching: PropTypes.Requireable<boolean>;
|
|
47
47
|
const spinnerColor: PropTypes.Requireable<string>;
|
|
48
|
-
const title: PropTypes.Requireable<string | ((...args: any[]) => any)
|
|
49
|
-
const accessories: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike
|
|
48
|
+
const title: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
49
|
+
const accessories: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | null | undefined>>;
|
|
50
50
|
const accessoryPosition: PropTypes.Requireable<string>;
|
|
51
|
-
const content: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]
|
|
51
|
+
const content: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[] | null | undefined>>;
|
|
52
52
|
const id: PropTypes.Requireable<string>;
|
|
53
53
|
const navLayoutProps: PropTypes.Requireable<object>;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
import React from "react";
|
|
56
57
|
import PropTypes from "prop-types";
|
|
@@ -22,8 +22,8 @@ export interface PaginationMenuLargeProps {
|
|
|
22
22
|
localization: Localization;
|
|
23
23
|
resultCount?: number;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
export
|
|
25
|
+
export type OnPaginationChange = (pageNumber: number, pageSize?: PageSize) => void;
|
|
26
|
+
export type PageSize = 25 | 50 | 75 | 100;
|
|
27
27
|
export interface Localization {
|
|
28
28
|
display: string;
|
|
29
29
|
page: string;
|
|
@@ -31,7 +31,7 @@ export interface Localization {
|
|
|
31
31
|
next: string;
|
|
32
32
|
of: string;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type Option = {
|
|
35
35
|
value: number;
|
|
36
36
|
label: string;
|
|
37
37
|
};
|
|
@@ -9,7 +9,7 @@ declare class Radio extends React.PureComponent<any, any, any> {
|
|
|
9
9
|
isChecked: PropTypes.Validator<boolean>;
|
|
10
10
|
isDisabled: PropTypes.Requireable<boolean>;
|
|
11
11
|
name: PropTypes.Validator<string>;
|
|
12
|
-
value: PropTypes.Requireable<string | number
|
|
12
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
13
13
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
};
|
|
15
15
|
constructor(props: any);
|
|
@@ -19,7 +19,7 @@ declare class Radio extends React.PureComponent<any, any, any> {
|
|
|
19
19
|
handleChange: (event: any) => void;
|
|
20
20
|
handleFocus: () => void;
|
|
21
21
|
handleBlur: () => void;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
import React from "react";
|
|
25
25
|
import PropTypes from "prop-types";
|
|
@@ -13,21 +13,22 @@ declare function RadioGroup({ className, radioClassName, name, selectedOption, i
|
|
|
13
13
|
onChange: any;
|
|
14
14
|
error: any;
|
|
15
15
|
isDisabled: any;
|
|
16
|
-
}): JSX.Element;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
17
|
declare namespace RadioGroup {
|
|
18
18
|
namespace propTypes {
|
|
19
19
|
const className: PropTypes.Requireable<string>;
|
|
20
20
|
const radioClassName: PropTypes.Requireable<string>;
|
|
21
21
|
const name: PropTypes.Requireable<string>;
|
|
22
|
-
const selectedOption: PropTypes.Requireable<string | number
|
|
22
|
+
const selectedOption: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
23
23
|
const isVertical: PropTypes.Requireable<boolean>;
|
|
24
24
|
const radioOptions: PropTypes.Validator<(PropTypes.InferProps<{
|
|
25
25
|
text: PropTypes.Requireable<string>;
|
|
26
26
|
info: PropTypes.Requireable<string>;
|
|
27
27
|
isDisabled: PropTypes.Requireable<boolean>;
|
|
28
|
-
value: PropTypes.Requireable<string | number
|
|
28
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
29
29
|
}> | null | undefined)[]>;
|
|
30
30
|
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
import React from "react";
|
|
33
34
|
import PropTypes from "prop-types";
|
|
@@ -5,14 +5,14 @@ declare function Switcher({ selectedIndex, onChange, className, itemClassName, i
|
|
|
5
5
|
className: any;
|
|
6
6
|
itemClassName: any;
|
|
7
7
|
items: any;
|
|
8
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
declare namespace Switcher {
|
|
10
10
|
namespace propTypes {
|
|
11
11
|
const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
12
12
|
name: PropTypes.Requireable<string>;
|
|
13
13
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
default: PropTypes.Requireable<string | PropTypes.ReactElementLike
|
|
15
|
-
active: PropTypes.Requireable<string | PropTypes.ReactElementLike
|
|
14
|
+
default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
15
|
+
active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
16
16
|
showBadge: PropTypes.Requireable<boolean>;
|
|
17
17
|
}>>;
|
|
18
18
|
key: PropTypes.Requireable<string>;
|
|
@@ -23,4 +23,5 @@ declare namespace Switcher {
|
|
|
23
23
|
const itemClassName: PropTypes.Requireable<string>;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
import React from "react";
|
|
26
27
|
import PropTypes from "prop-types";
|
|
@@ -6,13 +6,13 @@ declare function SwitcherItem({ className, icon, index, isSelected, name, onSele
|
|
|
6
6
|
isSelected?: boolean | undefined;
|
|
7
7
|
name: any;
|
|
8
8
|
onSelect: any;
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
declare namespace SwitcherItem {
|
|
11
11
|
namespace propTypes {
|
|
12
12
|
const name: PropTypes.Requireable<string>;
|
|
13
13
|
const icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
default: PropTypes.Requireable<string | PropTypes.ReactElementLike
|
|
15
|
-
active: PropTypes.Requireable<string | PropTypes.ReactElementLike
|
|
14
|
+
default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
15
|
+
active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
16
16
|
showBadge: PropTypes.Requireable<boolean>;
|
|
17
17
|
}>>;
|
|
18
18
|
const index: PropTypes.Validator<number>;
|
|
@@ -21,4 +21,5 @@ declare namespace SwitcherItem {
|
|
|
21
21
|
const className: PropTypes.Requireable<string>;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
import React from "react";
|
|
24
25
|
import PropTypes from "prop-types";
|