@luscii-healthtech/web-ui 2.9.0 → 2.10.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/components/Avatar/Avatar.d.ts +11 -11
- package/dist/components/CenteredHero/CenteredHero.d.ts +1 -1
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +3 -2
- package/dist/components/Datepicker/Datepicker.d.ts +12 -11
- package/dist/components/Dropdown/Dropdown.d.ts +17 -7
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +3 -3
- package/dist/components/Form/form.transformer.d.ts +3 -20
- package/dist/components/Form/form.types.d.ts +5 -5
- package/dist/components/InfoBlock/InfoBlock.d.ts +4 -4
- package/dist/components/Input/SearchInput.d.ts +1 -1
- package/dist/components/Line/Line.d.ts +4 -4
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -7
- package/dist/components/Page/CRUDPage.d.ts +13 -13
- package/dist/components/Page/Page.d.ts +13 -13
- package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +5 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -10
- package/dist/components/Select/LegacySelect.d.ts +8 -9
- package/dist/components/Select/SelectV2.d.ts +1 -1
- package/dist/components/Switcher/Switcher.d.ts +6 -6
- package/dist/components/Switcher/SwitcherItem.d.ts +7 -7
- package/dist/components/Text/LegacyText.d.ts +18 -18
- package/dist/components/TextEditor/TextEditor.d.ts +4 -4
- package/dist/components/Textarea/Textarea.d.ts +16 -16
- package/dist/components/Title/LegacyTitle.d.ts +10 -10
- package/dist/web-ui-tailwind.css +8 -0
- package/dist/web-ui.cjs.development.js +81 -74
- 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 +81 -74
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +7 -3
- package/src/assets/add.svg +0 -5
- package/src/assets/add_hover.svg +0 -4
- package/src/assets/arrow-down-icon.svg +0 -3
- package/src/assets/big-menu-icon-hover.svg +0 -6
- package/src/assets/big-menu-icon.svg +0 -6
- package/src/assets/check-cross-icon.svg +0 -7
- package/src/assets/check-icon-primary.svg +0 -5
- package/src/assets/check-icon.svg +0 -3
- package/src/assets/chevron-double.svg +0 -3
- package/src/assets/close.svg +0 -3
- package/src/assets/color-variant-cross.svg +0 -3
- package/src/assets/cross-dark.svg +0 -3
- package/src/assets/delete.svg +0 -4
- package/src/assets/delete_hover.svg +0 -4
- package/src/assets/edit.svg +0 -6
- package/src/assets/edit_hover.svg +0 -6
- package/src/assets/error-icon.svg +0 -7
- package/src/assets/grid-view-icon-active.svg +0 -6
- package/src/assets/grid-view-icon.svg +0 -6
- package/src/assets/groups.svg +0 -3
- package/src/assets/hamburger.svg +0 -5
- package/src/assets/happy-star.svg +0 -9
- package/src/assets/hcps.svg +0 -3
- package/src/assets/indeterminate-icon.svg +0 -3
- package/src/assets/info-icon.svg +0 -6
- package/src/assets/left-arrow-blue.svg +0 -3
- package/src/assets/left-arrow-grey.svg +0 -3
- package/src/assets/list-view-icon-active.svg +0 -3
- package/src/assets/list-view-icon.svg +0 -3
- package/src/assets/loading.svg +0 -16
- package/src/assets/modal-close-icon-active.svg +0 -9
- package/src/assets/modal-close-icon.svg +0 -9
- package/src/assets/no-open-alerts.svg +0 -19
- package/src/assets/patients.svg +0 -3
- package/src/assets/phone-mockup.svg +0 -9
- package/src/assets/programs.svg +0 -3
- package/src/assets/right-arrow-blue.svg +0 -3
- package/src/assets/right-arrow-grey.svg +0 -3
- package/src/assets/search-cancel.svg +0 -3
- package/src/assets/search-not-found.svg +0 -70
- package/src/assets/search.svg +0 -3
- package/src/assets/spinner-gray.svg +0 -6
- package/src/assets/spinner.svg +0 -5
- package/src/assets/starIcon.svg +0 -3
- package/src/assets/success-icon.svg +0 -6
- package/src/components/Accordion/Accordion.tsx +0 -33
- package/src/components/Accordion/AccordionItem.tsx +0 -50
- package/src/components/Avatar/Avatar.js +0 -81
- package/src/components/Avatar/Avatar.scss +0 -153
- package/src/components/Badge/Badge.tsx +0 -23
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -46
- package/src/components/Button/Button.examples.md +0 -46
- package/src/components/Button/Button.tsx +0 -200
- package/src/components/Button/Button.types.ts +0 -41
- package/src/components/Button/ButtonIcon.tsx +0 -42
- package/src/components/ButtonV2/ButtonProps.type.ts +0 -44
- package/src/components/ButtonV2/ButtonV2.tsx +0 -97
- package/src/components/ButtonV2/PrimaryButton.tsx +0 -25
- package/src/components/ButtonV2/SecondaryButton.tsx +0 -26
- package/src/components/ButtonV2/TertiaryButton.tsx +0 -26
- package/src/components/Carousel/Carousel.tsx +0 -52
- package/src/components/Carousel/GliderContainer.scss +0 -13
- package/src/components/Carousel/GliderContainer.tsx +0 -22
- package/src/components/CenteredHero/CenteredHero.tsx +0 -63
- package/src/components/CheckBoxListModal/CheckboxListModal.tsx +0 -180
- package/src/components/Checkbox/Checkbox.scss +0 -125
- package/src/components/Checkbox/Checkbox.tsx +0 -147
- package/src/components/CheckboxList/CheckboxGroup.tsx +0 -120
- package/src/components/CheckboxList/CheckboxList.tsx +0 -46
- package/src/components/CheckboxList/CheckboxList.types.ts +0 -47
- package/src/components/CheckboxList/CheckboxListItem.tsx +0 -54
- package/src/components/ConfirmationDialog/ConfirmationDialog.scss +0 -15
- package/src/components/ConfirmationDialog/ConfirmationDialog.tsx +0 -84
- package/src/components/Container/FlexColumn.tsx +0 -18
- package/src/components/Container/FlexContainer.tsx +0 -46
- package/src/components/Container/FlexRow.tsx +0 -18
- package/src/components/Container/types/FlexContainerProps.type.ts +0 -18
- package/src/components/Datepicker/Datepicker.js +0 -96
- package/src/components/Datepicker/Datepicker.scss +0 -332
- package/src/components/Dropdown/Dropdown.js +0 -416
- package/src/components/Dropdown/Dropdown.scss +0 -83
- package/src/components/EmptyListMessage/EmptyListMessage.tsx +0 -34
- package/src/components/ErrorBlock/ErrorBlock.js +0 -24
- package/src/components/ErrorBlock/ErrorBlock.scss +0 -20
- package/src/components/Form/Form.tsx +0 -138
- package/src/components/Form/FormFieldDecorator.tsx +0 -66
- package/src/components/Form/FormInput.tsx +0 -47
- package/src/components/Form/FormRadioGroup.tsx +0 -23
- package/src/components/Form/FormSelect.tsx +0 -32
- package/src/components/Form/form.transformer.ts +0 -9
- package/src/components/Form/form.types.ts +0 -139
- package/src/components/Icons/AddIcon.tsx +0 -29
- package/src/components/Icons/AlertsIcon.tsx +0 -39
- package/src/components/Icons/BellIcon.tsx +0 -39
- package/src/components/Icons/ChartIcon.tsx +0 -22
- package/src/components/Icons/ChatBoxIcon.tsx +0 -23
- package/src/components/Icons/CheckIcon.tsx +0 -26
- package/src/components/Icons/ChevronDoubleIcon.tsx +0 -25
- package/src/components/Icons/ChevronDownIcon.tsx +0 -20
- package/src/components/Icons/ChevronRightIcon.tsx +0 -20
- package/src/components/Icons/CrossIcon.tsx +0 -24
- package/src/components/Icons/DeleteIcon.tsx +0 -23
- package/src/components/Icons/DownArrowIcon.tsx +0 -23
- package/src/components/Icons/DragIcon.tsx +0 -25
- package/src/components/Icons/DynamicIcon.tsx +0 -25
- package/src/components/Icons/EditIcon.tsx +0 -23
- package/src/components/Icons/EmptyIcon.tsx +0 -29
- package/src/components/Icons/EmptyStateDashboardIcon.tsx +0 -130
- package/src/components/Icons/ExclamationMarkIcon.tsx +0 -23
- package/src/components/Icons/EyeIcon.tsx +0 -23
- package/src/components/Icons/GearIcon.tsx +0 -23
- package/src/components/Icons/GroupIcon.tsx +0 -23
- package/src/components/Icons/HamburgerIcon.tsx +0 -31
- package/src/components/Icons/HeartIcon.tsx +0 -23
- package/src/components/Icons/ImageIcon.tsx +0 -23
- package/src/components/Icons/LeftArrowIcon.tsx +0 -23
- package/src/components/Icons/LightBulbIcon.tsx +0 -31
- package/src/components/Icons/LockIcon.tsx +0 -23
- package/src/components/Icons/MessagesIcon.tsx +0 -23
- package/src/components/Icons/NotesIcon.tsx +0 -23
- package/src/components/Icons/PinIcon.tsx +0 -23
- package/src/components/Icons/PrintIcon.tsx +0 -22
- package/src/components/Icons/RightArrowIcon.tsx +0 -23
- package/src/components/Icons/SearchCancelIcon.tsx +0 -23
- package/src/components/Icons/SearchIcon.tsx +0 -23
- package/src/components/Icons/SmallCircleIcon.tsx +0 -21
- package/src/components/Icons/SmallDiamondIcon.tsx +0 -31
- package/src/components/Icons/SmallSquareIcon.tsx +0 -21
- package/src/components/Icons/SpaceRocketIcon.tsx +0 -23
- package/src/components/Icons/StarIcon.tsx +0 -23
- package/src/components/Icons/WarningIcon.tsx +0 -24
- package/src/components/Icons/types/IconProps.type.ts +0 -5
- package/src/components/InfoBlock/InfoBlock.js +0 -24
- package/src/components/InfoBlock/InfoBlock.scss +0 -20
- package/src/components/InfoField/InfoField.tsx +0 -94
- package/src/components/Input/Input.css +0 -3
- package/src/components/Input/Input.tsx +0 -211
- package/src/components/Input/SearchInput.tsx +0 -24
- package/src/components/Line/Line.js +0 -38
- package/src/components/List/List.scss +0 -23
- package/src/components/List/List.tsx +0 -138
- package/src/components/List/List.types.ts +0 -41
- package/src/components/List/ListItem.tsx +0 -89
- package/src/components/List/ListItemSkeleton.tsx +0 -26
- package/src/components/List/ListSkeleton.scss +0 -5
- package/src/components/List/ListSkeleton.tsx +0 -30
- package/src/components/LoadingIndicator/LoadingIndicator.scss +0 -50
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +0 -46
- package/src/components/Menu/Menu.js +0 -74
- package/src/components/Menu/Menu.scss +0 -27
- package/src/components/Modal/Modal.scss +0 -117
- package/src/components/Modal/Modal.tsx +0 -104
- package/src/components/Modal/ModalWithButtons.tsx +0 -34
- package/src/components/MultiSelect/MultiSelect.js +0 -117
- package/src/components/MultiSelect/MultiSelect.scss +0 -29
- package/src/components/MultiSelect/MultiSelectUtils.js +0 -23
- package/src/components/NavMenu/NavLayout.tsx +0 -40
- package/src/components/NavMenu/NavMenu.tsx +0 -39
- package/src/components/NavMenu/NavMenu.utils.ts +0 -6
- package/src/components/NavMenu/NavMenuContent.tsx +0 -23
- package/src/components/NavMenu/NavMenuItem.tsx +0 -102
- package/src/components/NotificationBanner/NotificationBanner.tsx +0 -104
- package/src/components/Page/CRUDPage.js +0 -123
- package/src/components/Page/CRUDPage.scss +0 -32
- package/src/components/Page/Page.js +0 -102
- package/src/components/Page/Page.scss +0 -59
- package/src/components/PageHeader/PageHeader.tsx +0 -51
- package/src/components/PaginationMenu/PaginationMenu.tsx +0 -47
- package/src/components/PaginationMenu/PaginationMenu.types.ts +0 -46
- package/src/components/PaginationMenu/PaginationMenu.utils.ts +0 -49
- package/src/components/PaginationMenu/PaginationMenuLarge.tsx +0 -96
- package/src/components/PaginationMenu/PaginationMenuSmall.tsx +0 -43
- package/src/components/PreviewPhone/PreviewPhone.tsx +0 -52
- package/src/components/PreviewPhone/useWindowDimensions.js +0 -26
- package/src/components/Radio/Radio.js +0 -102
- package/src/components/Radio/Radio.scss +0 -58
- package/src/components/Radio/RadioV2.css +0 -15
- package/src/components/Radio/RadioV2.tsx +0 -87
- package/src/components/RadioGroup/RadioGroup.js +0 -66
- package/src/components/RadioGroup/RadioGroup.scss +0 -37
- package/src/components/RadioGroup/RadioGroupV2.tsx +0 -35
- package/src/components/Section/Section.scss +0 -74
- package/src/components/Section/Section.tsx +0 -68
- package/src/components/Section/SectionItem.scss +0 -20
- package/src/components/Section/SectionItem.tsx +0 -26
- package/src/components/Section/SectionItemWithContent.tsx +0 -30
- package/src/components/Select/LegacySelect.js +0 -114
- package/src/components/Select/Select.scss +0 -29
- package/src/components/Select/Select.tsx +0 -151
- package/src/components/Select/SelectV2.tsx +0 -171
- package/src/components/Select/options.transformer.ts +0 -36
- package/src/components/Select/select.utils.spec.ts +0 -63
- package/src/components/Select/select.utils.ts +0 -45
- package/src/components/SettingsMenuButton/SettingsMenuButton.tsx +0 -111
- package/src/components/Spinner/Spinner.tsx +0 -23
- package/src/components/Steps/Step.tsx +0 -31
- package/src/components/Steps/Steps.tsx +0 -24
- package/src/components/Switcher/Switcher.js +0 -58
- package/src/components/Switcher/SwitcherItem.js +0 -61
- package/src/components/Switcher/SwitcherItem.scss +0 -67
- package/src/components/TabLinks/TabLinks.tsx +0 -63
- package/src/components/Tabbar/Tabbar.tsx +0 -60
- package/src/components/Tabbar/TabbarItem.tsx +0 -66
- package/src/components/Table/Table.tsx +0 -91
- package/src/components/Table/Table.types.ts +0 -28
- package/src/components/Table/Table.utils.ts +0 -23
- package/src/components/Table/TableBody.tsx +0 -57
- package/src/components/Table/TableBodyRow.tsx +0 -47
- package/src/components/Table/TableBodyRowDataCell.tsx +0 -76
- package/src/components/Table/TableFooter.tsx +0 -21
- package/src/components/Table/TableHeader.tsx +0 -28
- package/src/components/Tag/Tag.tsx +0 -58
- package/src/components/Tag/Tag.utils.ts +0 -4
- package/src/components/Tag/TagGroup.tsx +0 -29
- package/src/components/Text/LegacyText.js +0 -78
- package/src/components/Text/Text.scss +0 -67
- package/src/components/Text/Text.tsx +0 -131
- package/src/components/TextEditor/TextEditor.js +0 -61
- package/src/components/TextEditor/TextEditor.scss +0 -14
- package/src/components/TextEditorV2/TextEditorV2.js +0 -52
- package/src/components/TextEditorV2/TextEditorV2.scss +0 -110
- package/src/components/TextLink/TextLink.tsx +0 -42
- package/src/components/Textarea/Textarea.js +0 -108
- package/src/components/Textarea/Textarea.scss +0 -56
- package/src/components/Timeline/Timeline.tsx +0 -28
- package/src/components/Timeline/TimelineStep.tsx +0 -36
- package/src/components/Title/LegacyTitle.js +0 -64
- package/src/components/Title/Title.scss +0 -6
- package/src/components/Title/Title.tsx +0 -62
- package/src/components/Toaster/Toaster.scss +0 -57
- package/src/components/Toaster/Toaster.tsx +0 -100
- package/src/components/Toaster/toast-elements-getter.ts +0 -72
- package/src/components/Toaster/toast-progress-animator.ts +0 -53
- package/src/components/Toaster/toast.ts +0 -112
- package/src/components/ViewItem/ViewItem.tsx +0 -85
- package/src/custom.d.ts +0 -4
- package/src/index.tsx +0 -170
- package/src/styles/_colors.scss +0 -59
- package/src/styles/_layout.scss +0 -64
- package/src/styles/_shadows.scss +0 -19
- package/src/styles/_skeleton.scss +0 -63
- package/src/styles/_typography.scss +0 -8
- package/src/styles/_utils.scss +0 -45
- package/src/styles/fonts/avenir/3A0AF8_0_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff2 +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff2 +0 -0
- package/src/types/general.types.ts +0 -11
- package/src/utils/useOutsideClick.js +0 -19
|
@@ -6,15 +6,15 @@ export function Avatar({ size, src, defaultImage, initials, className }: {
|
|
|
6
6
|
className: any;
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
export namespace Avatar {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const src: PropTypes.Requireable<string>;
|
|
11
|
+
const initials: PropTypes.Validator<string>;
|
|
12
|
+
const size: PropTypes.Requireable<string>;
|
|
13
|
+
const defaultImage: PropTypes.Requireable<string>;
|
|
14
|
+
const className: PropTypes.Requireable<string>;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
import size_1 = MEDIUM;
|
|
16
|
+
namespace defaultProps {
|
|
17
|
+
import size_1 = AVATAR_SIZE_OPTIONS.MEDIUM;
|
|
18
18
|
export { size_1 as size };
|
|
19
19
|
const defaultImage_1: null;
|
|
20
20
|
export { defaultImage_1 as defaultImage };
|
|
@@ -23,7 +23,7 @@ export namespace Avatar {
|
|
|
23
23
|
export default Avatar;
|
|
24
24
|
import PropTypes from "prop-types";
|
|
25
25
|
declare namespace AVATAR_SIZE_OPTIONS {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const LARGE: string;
|
|
27
|
+
const MEDIUM: string;
|
|
28
|
+
const SMALL: string;
|
|
29
29
|
}
|
|
@@ -5,7 +5,7 @@ export interface CenteredHeroProps {
|
|
|
5
5
|
title: string;
|
|
6
6
|
text: string;
|
|
7
7
|
image: string;
|
|
8
|
-
buttons
|
|
8
|
+
buttons?: ButtonProps[];
|
|
9
9
|
background?: BackgroundColor;
|
|
10
10
|
}
|
|
11
11
|
declare const CenteredHero: ({ title, text, image, buttons, background, }: CenteredHeroProps) => JSX.Element;
|
|
@@ -2,14 +2,15 @@ import React from "react";
|
|
|
2
2
|
declare type FlexContainerBase = {
|
|
3
3
|
alignItems?: "center" | "start" | "end";
|
|
4
4
|
justifyContent?: "center" | "start" | "end" | "between";
|
|
5
|
+
position?: "static" | "fixed" | "absolute" | "relative" | "sticky";
|
|
5
6
|
verticallySpaced?: boolean;
|
|
6
|
-
|
|
7
|
+
horizontallySpaced?: boolean;
|
|
7
8
|
hasPadding?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export declare type FlexContainerBaseProps = FlexContainerBase & {
|
|
10
11
|
children: React.ReactNode;
|
|
11
12
|
};
|
|
12
|
-
export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "
|
|
13
|
+
export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "horizontallySpaced"> & {
|
|
13
14
|
spaced?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export {};
|
|
@@ -3,20 +3,21 @@ declare class Datepicker extends React.Component<any, any, any> {
|
|
|
3
3
|
constructor(props: any, context: any);
|
|
4
4
|
handleCloseButtonClick: (event: any) => void;
|
|
5
5
|
getDateFormat: () => "L LT" | "L";
|
|
6
|
+
render(): JSX.Element;
|
|
6
7
|
datepickerRef: any;
|
|
7
8
|
}
|
|
8
9
|
declare namespace Datepicker {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
|
+
const selected: PropTypes.Requireable<object>;
|
|
13
|
+
const hasCloseButton: PropTypes.Requireable<boolean>;
|
|
14
|
+
const closeButtonText: PropTypes.Requireable<string>;
|
|
15
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
16
|
+
const showMonthDropdown: PropTypes.Requireable<boolean>;
|
|
17
|
+
const showYearDropdown: PropTypes.Requireable<boolean>;
|
|
18
|
+
const minDate: PropTypes.Requireable<any>;
|
|
19
|
+
const maxDate: PropTypes.Requireable<any>;
|
|
20
|
+
const isDisabled: PropTypes.Requireable<boolean>;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export default Datepicker;
|
|
@@ -4,6 +4,15 @@ declare class Dropdown extends React.PureComponent<any, any, any> {
|
|
|
4
4
|
static getTotalItemCount: (items: any) => any;
|
|
5
5
|
static getDerivedStateFromProps(nextProps: any, prevState: any): any;
|
|
6
6
|
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
totalItemCount: any;
|
|
9
|
+
isDropdownOpen: boolean;
|
|
10
|
+
highlightIndex: null;
|
|
11
|
+
selectedItem: any;
|
|
12
|
+
items: any;
|
|
13
|
+
};
|
|
14
|
+
componentDidMount(): void;
|
|
15
|
+
componentWillUnmount(): void;
|
|
7
16
|
handleClickOutside: (event: any) => void;
|
|
8
17
|
handleKeyDown: (event: any) => void;
|
|
9
18
|
findItem: (items: any, fieldName: any, fieldValue: any) => any;
|
|
@@ -19,11 +28,12 @@ declare class Dropdown extends React.PureComponent<any, any, any> {
|
|
|
19
28
|
renderGroupedItems: (item: any) => JSX.Element;
|
|
20
29
|
renderItems: () => JSX.Element;
|
|
21
30
|
dropdownListRef: HTMLDivElement | null | undefined;
|
|
31
|
+
render(): JSX.Element;
|
|
22
32
|
rootRef: HTMLDivElement | null | undefined;
|
|
23
33
|
}
|
|
24
34
|
declare namespace Dropdown {
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
namespace propTypes {
|
|
36
|
+
const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
27
37
|
id: PropTypes.Validator<string>;
|
|
28
38
|
text: PropTypes.Validator<string>;
|
|
29
39
|
key: PropTypes.Validator<string>;
|
|
@@ -36,11 +46,11 @@ declare namespace Dropdown {
|
|
|
36
46
|
title: PropTypes.Requireable<string>;
|
|
37
47
|
groupKey: PropTypes.Validator<string>;
|
|
38
48
|
}> | null | undefined)[]>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
const initialSelectedItemId: PropTypes.Requireable<string | number>;
|
|
50
|
+
const placeholder: PropTypes.Requireable<string>;
|
|
51
|
+
const className: PropTypes.Requireable<string>;
|
|
52
|
+
const onItemSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
53
|
+
const wider: PropTypes.Requireable<boolean>;
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
import React from "react";
|
|
@@ -5,9 +5,9 @@ declare function ErrorBlock({ message, className, ...otherProps }: {
|
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace ErrorBlock {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const message: PropTypes.Validator<string>;
|
|
10
|
+
const className: PropTypes.Requireable<string>;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
import PropTypes from "prop-types";
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
import { FieldErrors } from "react-hook-form";
|
|
2
|
-
export declare const hasError: (name?: string
|
|
3
|
-
export declare const isRequired: (options?:
|
|
4
|
-
required: string | boolean | import("react-hook-form").ValidationValueMessage<boolean>;
|
|
5
|
-
min: import("react-hook-form").ValidationRule<string | number>;
|
|
6
|
-
max: import("react-hook-form").ValidationRule<string | number>;
|
|
7
|
-
maxLength: import("react-hook-form").ValidationRule<number>;
|
|
8
|
-
minLength: import("react-hook-form").ValidationRule<number>;
|
|
9
|
-
pattern: import("react-hook-form").ValidationRule<RegExp>;
|
|
10
|
-
validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
|
|
11
|
-
valueAsNumber: boolean;
|
|
12
|
-
valueAsDate: boolean;
|
|
13
|
-
value: any;
|
|
14
|
-
setValueAs: (value: any) => any;
|
|
15
|
-
shouldUnregister?: boolean | undefined;
|
|
16
|
-
onChange?: ((event: any) => void) | undefined;
|
|
17
|
-
onBlur?: ((event: any) => void) | undefined;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
deps: string | string[];
|
|
20
|
-
}> | undefined) => boolean;
|
|
1
|
+
import { FieldErrors, RegisterOptions } from "react-hook-form";
|
|
2
|
+
export declare const hasError: (name?: string, errors?: FieldErrors) => boolean;
|
|
3
|
+
export declare const isRequired: (options?: RegisterOptions) => boolean;
|
|
@@ -5,13 +5,13 @@ import { RadioGroupProps } from "../RadioGroup/RadioGroupV2";
|
|
|
5
5
|
import { SelectProps } from "../Select/SelectV2";
|
|
6
6
|
export declare type AllowedTextInputTypes = Extract<HTMLInputTypeAttribute, "email" | "number" | "password" | "text">;
|
|
7
7
|
export interface GenericFormProps<TFieldValues extends FieldValues> {
|
|
8
|
-
fields:
|
|
8
|
+
fields: FormFieldProps<TFieldValues>[];
|
|
9
9
|
onValid: SubmitHandler<TFieldValues>;
|
|
10
10
|
onError?: SubmitErrorHandler<TFieldValues>;
|
|
11
11
|
defaultValues?: DeepPartial<TFieldValues>;
|
|
12
12
|
}
|
|
13
13
|
export interface FormProps<TFieldValues extends FieldValues, TContext> {
|
|
14
|
-
fields:
|
|
14
|
+
fields: FormFieldProps<TFieldValues>[];
|
|
15
15
|
useFormReturn: UseFormReturn<TFieldValues, TContext>;
|
|
16
16
|
}
|
|
17
17
|
interface FormFieldGenericProps<TFieldType, TFieldValues> extends FormFieldDecoratorProps {
|
|
@@ -19,13 +19,13 @@ interface FormFieldGenericProps<TFieldType, TFieldValues> extends FormFieldDecor
|
|
|
19
19
|
options?: RegisterOptions;
|
|
20
20
|
fieldProps?: TFieldType;
|
|
21
21
|
}
|
|
22
|
-
interface FormFieldDecoratorProps {
|
|
22
|
+
export interface FormFieldDecoratorProps {
|
|
23
23
|
label?: string;
|
|
24
24
|
info?: string;
|
|
25
25
|
decoratorClassname?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues>;
|
|
28
|
-
export interface FormFieldRowProps<TFieldValues> {
|
|
27
|
+
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues> | FormFieldRowProps<TFieldValues>;
|
|
28
|
+
export interface FormFieldRowProps<TFieldValues> extends Record<keyof FormFieldGenericProps<never, TFieldValues>, never> {
|
|
29
29
|
type: "row";
|
|
30
30
|
key: string;
|
|
31
31
|
fields: FormFieldProps<TFieldValues>[];
|
|
@@ -5,10 +5,10 @@ declare function InfoBlock({ message, className, containsDangerousHtml }: {
|
|
|
5
5
|
containsDangerousHtml?: boolean | undefined;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace InfoBlock {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const message: PropTypes.Validator<string>;
|
|
10
|
+
const containsDangerousHtml: PropTypes.Requireable<boolean>;
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
import PropTypes from "prop-types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "./Input";
|
|
3
3
|
export declare type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
|
|
4
|
-
export declare const SearchInput: React.ForwardRefExoticComponent<Pick<Pick<InputProps, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key" | "isDisabled" | "isError">, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "isDisabled" | "isError"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<Pick<SearchInputProps, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "isDisabled" | "isError"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -5,10 +5,10 @@ declare function Line({ left, right, className }: {
|
|
|
5
5
|
className: any;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace Line {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const left: PropTypes.Requireable<any[]>;
|
|
10
|
+
const right: PropTypes.Requireable<any[]>;
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
import PropTypes from "prop-types";
|
|
@@ -4,10 +4,16 @@ declare class Menu extends React.PureComponent<any, any, any> {
|
|
|
4
4
|
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
5
5
|
};
|
|
6
6
|
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
};
|
|
10
|
+
componentDidMount(): void;
|
|
11
|
+
componentWillUnmount(): void;
|
|
7
12
|
handleClickOutside: (event: any) => void;
|
|
8
13
|
handleIconClick: (event: any) => void;
|
|
9
14
|
openMenu: () => void;
|
|
10
15
|
closeMenu: () => void;
|
|
16
|
+
render(): JSX.Element;
|
|
11
17
|
rootRef: HTMLDivElement | null | undefined;
|
|
12
18
|
}
|
|
13
19
|
import React from "react";
|
|
@@ -8,18 +8,18 @@ export function MultiSelect({ checkboxList, radioLabel, onChange, validationErro
|
|
|
8
8
|
radioOnDemand: any;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
export namespace MultiSelect {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
const name: PropTypes.Requireable<string>;
|
|
13
|
+
const checkboxList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
14
14
|
isChecked: PropTypes.Requireable<boolean>;
|
|
15
15
|
name: PropTypes.Validator<string>;
|
|
16
16
|
description: PropTypes.Requireable<string>;
|
|
17
17
|
identifier: PropTypes.Validator<string>;
|
|
18
18
|
}> | null | undefined)[]>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
const validationError: PropTypes.Requireable<string>;
|
|
21
|
+
const implicitSelect: PropTypes.Requireable<object>;
|
|
22
|
+
const radioOnDemand: PropTypes.Requireable<boolean>;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
import PropTypes from "prop-types";
|
|
@@ -16,28 +16,28 @@ declare function CRUDPage({ dataTestId, title, stepTitles, currentStep, submitBu
|
|
|
16
16
|
localization: any;
|
|
17
17
|
}): JSX.Element;
|
|
18
18
|
declare namespace CRUDPage {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
namespace propTypes {
|
|
20
|
+
const isLoading: PropTypes.Requireable<boolean>;
|
|
21
|
+
const title: PropTypes.Validator<string>;
|
|
22
|
+
const stepTitles: PropTypes.Requireable<any[]>;
|
|
23
|
+
const currentStep: PropTypes.Requireable<number>;
|
|
24
|
+
const submitButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
25
|
name: PropTypes.Requireable<string>;
|
|
26
26
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
27
|
}>>;
|
|
28
|
-
|
|
28
|
+
const deleteButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
29
|
name: PropTypes.Requireable<string>;
|
|
30
30
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
31
|
}>>;
|
|
32
|
-
|
|
32
|
+
const cancelButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
33
|
name: PropTypes.Requireable<string>;
|
|
34
34
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
35
|
}>>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const className: PropTypes.Requireable<string>;
|
|
37
|
+
const icon: PropTypes.Requireable<string>;
|
|
38
|
+
const isSubmitting: PropTypes.Requireable<boolean>;
|
|
39
|
+
const navMenuComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
40
|
+
const localization: PropTypes.Requireable<object>;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
import PropTypes from "prop-types";
|
|
@@ -6,9 +6,9 @@ export default Page;
|
|
|
6
6
|
* `children` property has priority over `content` property.
|
|
7
7
|
*/
|
|
8
8
|
export type Breadcrumb = {
|
|
9
|
-
name?: string
|
|
9
|
+
name?: string;
|
|
10
10
|
icon?: string | any;
|
|
11
|
-
link?: string
|
|
11
|
+
link?: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Renders page's content, if `isLoading` is false otherwise shows loading indicator.
|
|
@@ -38,21 +38,21 @@ declare function Page({ dataTestId, breadcrumbs, title, accessories, accessoryPo
|
|
|
38
38
|
id: any;
|
|
39
39
|
}): JSX.Element;
|
|
40
40
|
declare namespace Page {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
namespace propTypes {
|
|
42
|
+
const breadcrumbs: PropTypes.Requireable<((...args: any[]) => any) | (PropTypes.InferProps<{
|
|
43
43
|
name: PropTypes.Requireable<string>;
|
|
44
44
|
icon: PropTypes.Requireable<string>;
|
|
45
45
|
link: PropTypes.Requireable<string>;
|
|
46
46
|
}> | null | undefined)[]>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
const isLoading: PropTypes.Requireable<boolean>;
|
|
48
|
+
const isFetching: PropTypes.Requireable<boolean>;
|
|
49
|
+
const spinnerColor: PropTypes.Requireable<string>;
|
|
50
|
+
const title: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
51
|
+
const accessories: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike>;
|
|
52
|
+
const accessoryPosition: PropTypes.Requireable<string>;
|
|
53
|
+
const content: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
|
|
54
|
+
const id: PropTypes.Requireable<string>;
|
|
55
|
+
const navLayoutProps: PropTypes.Requireable<object>;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
import PropTypes from "prop-types";
|
|
@@ -12,4 +12,4 @@ export declare const getPageNumberOptions: (pageCount: number) => Option[];
|
|
|
12
12
|
* @example 1-50 of 100
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
export declare const getSummaryText: (pageCount: number, currentPageNumber: number, localization: Localization, pageSize?: number
|
|
15
|
+
export declare const getSummaryText: (pageCount: number, currentPageNumber: number, localization: Localization, pageSize?: number, resultCount?: number) => string;
|
|
@@ -9,13 +9,17 @@ 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<
|
|
12
|
+
value: PropTypes.Requireable<string | number>;
|
|
13
13
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
};
|
|
15
15
|
constructor(props: any);
|
|
16
|
+
state: {
|
|
17
|
+
isFocused: boolean;
|
|
18
|
+
};
|
|
16
19
|
handleChange: (event: any) => void;
|
|
17
20
|
handleFocus: () => void;
|
|
18
21
|
handleBlur: () => void;
|
|
22
|
+
render(): JSX.Element;
|
|
19
23
|
}
|
|
20
24
|
import React from "react";
|
|
21
25
|
import PropTypes from "prop-types";
|
|
@@ -15,20 +15,19 @@ declare function RadioGroup({ className, radioClassName, name, selectedOption, i
|
|
|
15
15
|
isDisabled: any;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace RadioGroup {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const radioClassName: PropTypes.Requireable<string>;
|
|
21
|
+
const name: PropTypes.Requireable<string>;
|
|
22
|
+
const selectedOption: PropTypes.Requireable<string | number>;
|
|
23
|
+
const isVertical: PropTypes.Requireable<boolean>;
|
|
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<
|
|
28
|
+
value: PropTypes.Requireable<string | number>;
|
|
29
29
|
}> | null | undefined)[]>;
|
|
30
|
-
|
|
30
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
import PropTypes from "prop-types";
|
|
34
|
-
import React from "react";
|
|
@@ -15,18 +15,17 @@ declare function LegacySelect({ className, value, name, placeholder, options, on
|
|
|
15
15
|
isSearchable?: boolean | undefined;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace LegacySelect {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
value: PropTypes.Validator<
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const value: PropTypes.Requireable<string | number>;
|
|
21
|
+
const name: PropTypes.Validator<string>;
|
|
22
|
+
const placeholder: PropTypes.Requireable<string>;
|
|
23
|
+
const options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
24
|
+
value: PropTypes.Validator<string | number>;
|
|
25
25
|
text: PropTypes.Validator<string>;
|
|
26
26
|
disabled: PropTypes.Requireable<boolean>;
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
|
-
|
|
28
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
|
-
import React from "react";
|
|
@@ -27,5 +27,5 @@ export interface SelectProps<Option extends OptionMinimal = OptionMinimal, IsMul
|
|
|
27
27
|
* Care when using defaultValue: this still requires the complete Option (instead of the value of the Option).
|
|
28
28
|
* So far there wasn't a use-case for this.
|
|
29
29
|
*/
|
|
30
|
-
export declare const Select: React.ForwardRefExoticComponent<SelectProps<OptionMinimal, boolean, GroupBase<
|
|
30
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps<OptionMinimal, boolean, GroupBase<OptionMinimal>> & React.RefAttributes<unknown>>;
|
|
31
31
|
export {};
|
|
@@ -7,8 +7,8 @@ declare function Switcher({ selectedIndex, onChange, className, itemClassName, i
|
|
|
7
7
|
items: any;
|
|
8
8
|
}): JSX.Element;
|
|
9
9
|
declare namespace Switcher {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
12
12
|
name: PropTypes.Requireable<string>;
|
|
13
13
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
@@ -17,10 +17,10 @@ declare namespace Switcher {
|
|
|
17
17
|
}>>;
|
|
18
18
|
key: PropTypes.Requireable<string>;
|
|
19
19
|
}> | null | undefined)[]>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const selectedIndex: PropTypes.Requireable<number>;
|
|
22
|
+
const className: PropTypes.Requireable<string>;
|
|
23
|
+
const itemClassName: PropTypes.Requireable<string>;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
import PropTypes from "prop-types";
|
|
@@ -8,17 +8,17 @@ declare function SwitcherItem({ className, icon, index, isSelected, name, onSele
|
|
|
8
8
|
onSelect: any;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
declare namespace SwitcherItem {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
const name: PropTypes.Requireable<string>;
|
|
13
|
+
const icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
15
15
|
active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
16
16
|
showBadge: PropTypes.Requireable<boolean>;
|
|
17
17
|
}>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const index: PropTypes.Validator<number>;
|
|
19
|
+
const isSelected: PropTypes.Requireable<boolean>;
|
|
20
|
+
const onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const className: PropTypes.Requireable<string>;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
import PropTypes from "prop-types";
|