@luscii-healthtech/web-ui 0.0.0-alpha.ab3fdb2 → 0.0.0-alpha.caf5372
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/Accordion/Accordion.d.ts +11 -10
- package/dist/components/Accordion/AccordionItem.d.ts +10 -9
- package/dist/components/AccordionList/AccordionList.d.ts +5 -32
- package/dist/components/Badge/Badge.d.ts +5 -7
- package/dist/components/BaseList/BaseList.d.ts +13 -7
- package/dist/components/BaseList/BaseList.types.d.ts +55 -55
- package/dist/components/BaseList/BaseListEmptyState.d.ts +9 -7
- package/dist/components/BaseList/BaseListHeader.d.ts +11 -4
- package/dist/components/BaseList/BaseListIcon.d.ts +7 -5
- package/dist/components/BaseList/BaseListItem.d.ts +3 -4
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +14 -4
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +2 -3
- package/dist/components/BaseList/DraggableBaseList/index.d.ts +2 -2
- package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +4 -2
- package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +9 -8
- package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +3 -4
- package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +7 -3
- package/dist/components/BaseList/SortableBaseList/index.d.ts +2 -2
- package/dist/components/BaseList/index.d.ts +5 -6
- package/dist/components/BaseList/utils.d.ts +18 -10
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +12 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +8 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -14
- package/dist/components/Breadcrumbs/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +7 -9
- package/dist/components/Button/Button.types.d.ts +11 -32
- package/dist/components/Button/ButtonIcon.d.ts +5 -7
- package/dist/components/ButtonV2/ButtonProps.type.d.ts +0 -49
- package/dist/components/ButtonV2/ButtonV2.d.ts +2 -3
- package/dist/components/ButtonV2/PrimaryButton.d.ts +2 -3
- package/dist/components/ButtonV2/SecondaryButton.d.ts +2 -3
- package/dist/components/ButtonV2/TertiaryButton.d.ts +2 -3
- package/dist/components/Card/Card.d.ts +9 -12
- package/dist/components/Carousel/Carousel.d.ts +9 -8
- package/dist/components/Carousel/GliderContainer.d.ts +5 -7
- package/dist/components/CenteredHero/CenteredHero.d.ts +12 -14
- package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +11 -30
- package/dist/components/Checkbox/Checkbox.d.ts +4 -19
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +12 -3
- package/dist/components/CheckboxList/CheckboxList.d.ts +12 -5
- package/dist/components/CheckboxList/CheckboxList.types.d.ts +1 -52
- package/dist/components/CheckboxList/CheckboxListItem.d.ts +13 -3
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +2 -3
- package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +4 -7
- package/dist/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -4
- package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +5 -3
- package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +41 -41
- package/dist/components/Container/FlexColumn.d.ts +15 -7
- package/dist/components/Container/FlexContainer.d.ts +4 -9
- package/dist/components/Container/FlexRow.d.ts +2 -7
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +26 -26
- package/dist/components/Divider/Divider.d.ts +4 -6
- package/dist/components/DragHandle/DragHandle.d.ts +3 -7
- package/dist/components/DragHandle/DragHandle.types.d.ts +6 -6
- package/dist/components/DragHandle/index.d.ts +1 -2
- package/dist/components/Dropzone/Dropzone.d.ts +8 -6
- package/dist/components/Dropzone/Dropzone.types.d.ts +33 -33
- package/dist/components/Dropzone/index.d.ts +1 -2
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +10 -14
- package/dist/components/Form/Form.d.ts +15 -30
- package/dist/components/Form/FormFieldCheckbox.d.ts +2 -9
- package/dist/components/Form/FormFieldCheckboxList.d.ts +15 -9
- package/dist/components/Form/FormFieldErrorMessages.d.ts +4 -8
- package/dist/components/Form/FormFieldLabeler.d.ts +12 -8
- package/dist/components/Form/FormImagePicker.d.ts +2 -9
- package/dist/components/Form/FormInput.d.ts +2 -14
- package/dist/components/Form/FormRadioGroup.d.ts +2 -13
- package/dist/components/Form/FormSelect.d.ts +2 -10
- package/dist/components/Form/FormTextarea.d.ts +2 -14
- package/dist/components/Form/form.transformer.d.ts +1 -3
- package/dist/components/Form/form.types.d.ts +91 -91
- package/dist/components/Icon/Icon.d.ts +3 -17
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icons/AddIcon.d.ts +3 -4
- package/dist/components/Icons/AlertsIcon.d.ts +3 -4
- package/dist/components/Icons/BellIcon.d.ts +3 -4
- package/dist/components/Icons/BluetoothIcon.d.ts +3 -4
- package/dist/components/Icons/ChartIcon.d.ts +3 -4
- package/dist/components/Icons/ChartLineColoredIcon.d.ts +3 -4
- package/dist/components/Icons/ChatBoxIcon.d.ts +3 -4
- package/dist/components/Icons/CheckIcon.d.ts +3 -4
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +3 -4
- package/dist/components/Icons/ChevronDownIcon.d.ts +3 -4
- package/dist/components/Icons/ChevronRightIcon.d.ts +3 -4
- package/dist/components/Icons/CrossIcon.d.ts +3 -4
- package/dist/components/Icons/DeleteIcon.d.ts +3 -4
- package/dist/components/Icons/DownArrowIcon.d.ts +3 -4
- package/dist/components/Icons/DragIcon.d.ts +3 -4
- package/dist/components/Icons/EditIcon.d.ts +3 -4
- package/dist/components/Icons/EmptyIcon.d.ts +3 -4
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +3 -4
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +3 -4
- package/dist/components/Icons/EyeIcon.d.ts +3 -4
- package/dist/components/Icons/GearColoredIcon.d.ts +3 -4
- package/dist/components/Icons/GearIcon.d.ts +3 -4
- package/dist/components/Icons/GroupColoredIcon.d.ts +3 -4
- package/dist/components/Icons/GroupIcon.d.ts +3 -4
- package/dist/components/Icons/HamburgerIcon.d.ts +3 -4
- package/dist/components/Icons/HeartIcon.d.ts +3 -4
- package/dist/components/Icons/ImageIcon.d.ts +3 -4
- package/dist/components/Icons/InfoIcon.d.ts +3 -4
- package/dist/components/Icons/LeftArrowIcon.d.ts +3 -4
- package/dist/components/Icons/LightBulbIcon.d.ts +3 -4
- package/dist/components/Icons/LinkIcon.d.ts +3 -4
- package/dist/components/Icons/LockIcon.d.ts +3 -4
- package/dist/components/Icons/MessagesIcon.d.ts +3 -4
- package/dist/components/Icons/MouseIcon.d.ts +3 -4
- package/dist/components/Icons/NotesIcon.d.ts +3 -4
- package/dist/components/Icons/PinIcon.d.ts +3 -4
- package/dist/components/Icons/PrintIcon.d.ts +3 -4
- package/dist/components/Icons/RightArrowIcon.d.ts +3 -4
- package/dist/components/Icons/SearchCancelIcon.d.ts +3 -4
- package/dist/components/Icons/SearchIcon.d.ts +3 -4
- package/dist/components/Icons/SmallCircleIcon.d.ts +3 -4
- package/dist/components/Icons/SmallDiamondIcon.d.ts +3 -4
- package/dist/components/Icons/SmallSquareIcon.d.ts +3 -4
- package/dist/components/Icons/SpaceRocketIcon.d.ts +3 -4
- package/dist/components/Icons/StarIcon.d.ts +3 -4
- package/dist/components/Icons/StatusColoredIcon.d.ts +3 -4
- package/dist/components/Icons/WarningIcon.d.ts +3 -4
- package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +3 -4
- package/dist/components/Icons/iconWrapper/index.d.ts +1 -1
- package/dist/components/Icons/index.d.ts +47 -47
- package/dist/components/Icons/templates/component.d.ts +3 -3
- package/dist/components/Icons/templates/index.d.ts +2 -2
- package/dist/components/Icons/types/IconProps.type.d.ts +8 -8
- package/dist/components/Image/Image.d.ts +5 -10
- package/dist/components/ImagePicker/ImageCategory.d.ts +4 -14
- package/dist/components/ImagePicker/ImagePicker.d.ts +17 -29
- package/dist/components/InfoField/InfoField.d.ts +9 -18
- package/dist/components/Input/Input.d.ts +10 -57
- package/dist/components/Input/SearchInput.d.ts +2 -4
- package/dist/components/List/List.d.ts +5 -6
- package/dist/components/List/List.types.d.ts +19 -19
- package/dist/components/List/ListItem.d.ts +3 -4
- package/dist/components/List/index.d.ts +3 -5
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +4 -12
- package/dist/components/Modal/FullPageModal.d.ts +29 -11
- package/dist/components/Modal/FullPageModalHeader.d.ts +7 -7
- package/dist/components/Modal/Modal.d.ts +2 -6
- package/dist/components/Modal/ModalBase.d.ts +5 -16
- package/dist/components/Modal/ModalFooter.d.ts +4 -12
- package/dist/components/Modal/ModalHeader.d.ts +4 -6
- package/dist/components/NavMenu/NavLayout.d.ts +4 -20
- package/dist/components/NavMenu/NavMenu.d.ts +4 -16
- package/dist/components/NavMenu/NavMenuContent.d.ts +11 -3
- package/dist/components/NavMenu/NavMenuFooter.d.ts +8 -3
- package/dist/components/NavMenu/NavMenuHeader.d.ts +7 -3
- package/dist/components/NavMenu/NavMenuItem.d.ts +9 -3
- package/dist/components/NavMenu/types/NavMenuFooterProps.type.d.ts +5 -5
- package/dist/components/NavMenu/types/NavMenuHeaderProps.type.d.ts +5 -5
- package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +11 -11
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +12 -41
- package/dist/components/Page/CRUDPage.d.ts +17 -4
- package/dist/components/Page/CRUDPage.types.d.ts +32 -32
- package/dist/components/Page/index.d.ts +2 -3
- package/dist/components/PageHeader/PageHeader.d.ts +17 -4
- package/dist/components/PageHeader/PageHeader.types.d.ts +28 -28
- package/dist/components/PageHeader/index.d.ts +1 -2
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +4 -3
- package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +0 -37
- package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +4 -15
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +4 -3
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +4 -3
- package/dist/components/PreviewPhone/PreviewPhone.d.ts +11 -7
- package/dist/components/Radio/RadioV2.d.ts +3 -17
- package/dist/components/RadioGroup/RadioGroupV2.d.ts +2 -10
- package/dist/components/Section/Section.d.ts +4 -25
- package/dist/components/Section/SectionItem.d.ts +4 -9
- package/dist/components/Section/SectionItemWithContent.d.ts +3 -9
- package/dist/components/Section/subcomponents/SectionActions.d.ts +21 -21
- package/dist/components/Select/Select.d.ts +3 -40
- package/dist/components/Select/SelectDropdownIndicator.d.ts +2 -3
- package/dist/components/Select/SelectLoadingIndicator.d.ts +2 -3
- package/dist/components/SettingsMenuButton/SettingsMenuButton.d.ts +5 -19
- package/dist/components/Spinner/Spinner.d.ts +2 -6
- package/dist/components/Steps/Step.d.ts +9 -10
- package/dist/components/Steps/Steps.d.ts +9 -10
- package/dist/components/TabLinks/TabLinks.d.ts +10 -14
- package/dist/components/Tabbar/Tabbar.d.ts +13 -18
- package/dist/components/Tabbar/TabbarItem.d.ts +16 -16
- package/dist/components/Table/Table.d.ts +2 -16
- package/dist/components/Table/Table.types.d.ts +0 -43
- package/dist/components/Table/Table.utils.d.ts +2 -3
- package/dist/components/Table/TableBody.d.ts +4 -13
- package/dist/components/Table/TableBodyRow.d.ts +6 -10
- package/dist/components/Table/TableBodyRowDataCell.d.ts +4 -8
- package/dist/components/Table/TableFooter.d.ts +2 -8
- package/dist/components/Table/TableHeader.d.ts +4 -7
- package/dist/components/Tag/Tag.d.ts +12 -17
- package/dist/components/Tag/Tag.utils.d.ts +1 -4
- package/dist/components/Tag/TagGroup.d.ts +9 -10
- package/dist/components/Text/Text.d.ts +24 -66
- package/dist/components/TextLink/TextLink.d.ts +8 -11
- package/dist/components/Textarea/Textarea.d.ts +3 -29
- package/dist/components/Timeline/Timeline.d.ts +12 -14
- package/dist/components/Timeline/TimelineHeader.d.ts +10 -10
- package/dist/components/Timeline/TimelineStep.d.ts +2 -10
- package/dist/components/Title/Title.d.ts +8 -17
- package/dist/components/Toaster/Toaster.d.ts +19 -17
- package/dist/components/Toaster/toast-elements-getter.d.ts +9 -22
- package/dist/components/Toaster/toast-progress-animator.d.ts +1 -12
- package/dist/components/Toaster/toast.d.ts +5 -12
- package/dist/components/ViewItem/ViewItem.d.ts +3 -16
- package/dist/index.d.ts +78 -81
- package/dist/index.js +30 -30
- package/dist/index.js.map +1 -1
- package/dist/types/general.types.d.ts +8 -8
- package/dist/utils/string.utils.d.ts +1 -7
- package/dist/web-ui-tailwind.css +0 -5
- package/dist/web-ui.esm.js +30 -30
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
items:
|
|
6
|
-
className
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import p from "react";
|
|
2
|
+
declare const I: ({ dataTestId: a, isCollapsedByDefault: o, items: r, className: i }: {
|
|
3
|
+
dataTestId: any;
|
|
4
|
+
isCollapsedByDefault?: boolean | undefined;
|
|
5
|
+
items: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}) => p.DetailedReactHTMLElement<{
|
|
8
|
+
"data-test-id": any;
|
|
9
|
+
className: any;
|
|
10
|
+
}, HTMLElement>;
|
|
11
|
+
export default I;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
id:
|
|
4
|
-
title:
|
|
5
|
-
content:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
export declare const AccordionItem: ({ id: t, title: s, content: i, isCollapsedByDefault: l }: {
|
|
3
|
+
id: any;
|
|
4
|
+
title: any;
|
|
5
|
+
content: any;
|
|
6
|
+
isCollapsedByDefault?: boolean | undefined;
|
|
7
|
+
}) => e.DetailedReactHTMLElement<{
|
|
8
|
+
className: string;
|
|
9
|
+
"data-test-id": any;
|
|
10
|
+
}, HTMLElement>;
|
|
@@ -1,32 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface AccordionListProps extends Omit<AccordionProps, "items"> {
|
|
7
|
-
localisations: {
|
|
8
|
-
title: string;
|
|
9
|
-
searchPlaceholder?: string;
|
|
10
|
-
emptyListText?: string;
|
|
11
|
-
};
|
|
12
|
-
accordionItems: AccordionItem[];
|
|
13
|
-
buttonProps?: BaseButtonProps;
|
|
14
|
-
isSearchEnabled?: boolean;
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export type AccordionListItemProps<T = ListItemProps> = Omit<AccordionItemProps, "content"> & {
|
|
18
|
-
listItems: T[];
|
|
19
|
-
draggableListType?: "default";
|
|
20
|
-
};
|
|
21
|
-
export type DraggableAccordionListItemProps = Omit<AccordionItemProps, "content"> & {
|
|
22
|
-
draggableListType: "draggable";
|
|
23
|
-
listItems: DraggableListProps["items"];
|
|
24
|
-
};
|
|
25
|
-
export type SortableAccordionListItemProps = Omit<AccordionItemProps, "content"> & {
|
|
26
|
-
draggableListType: "sortable";
|
|
27
|
-
draggableIdentifier: string;
|
|
28
|
-
listItems: SortableListProps["items"];
|
|
29
|
-
};
|
|
30
|
-
export type AccordionItem = AccordionListItemProps | DraggableAccordionListItemProps | SortableAccordionListItemProps;
|
|
31
|
-
export declare const AccordionList: React.FC<AccordionListProps>;
|
|
32
|
-
export default AccordionList;
|
|
1
|
+
import n from "react";
|
|
2
|
+
export declare const AccordionList: (z: any) => n.DetailedReactHTMLElement<{
|
|
3
|
+
className: string;
|
|
4
|
+
}, HTMLElement>;
|
|
5
|
+
export default AccordionList;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
7
|
-
export default Badge;
|
|
1
|
+
import s from "react";
|
|
2
|
+
declare const o: (e: any) => s.DetailedReactHTMLElement<{
|
|
3
|
+
className: string;
|
|
4
|
+
}, HTMLElement>;
|
|
5
|
+
export default o;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import o from "react";
|
|
2
|
+
export declare const BaseList: o.ForwardRefExoticComponent<{
|
|
3
|
+
dataTestId: any;
|
|
4
|
+
title: any;
|
|
5
|
+
headerButton: any;
|
|
6
|
+
emptyStateMessage: any;
|
|
7
|
+
isLoading: any;
|
|
8
|
+
items: any;
|
|
9
|
+
headerTransparent: any;
|
|
10
|
+
itemComponent: any;
|
|
11
|
+
footer: any;
|
|
12
|
+
withBorder?: boolean | undefined;
|
|
13
|
+
} & o.RefAttributes<unknown>>;
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import React, { Ref, ReactNode } from "react";
|
|
2
|
-
import { PrimaryButtonProps } from "../..";
|
|
3
|
-
import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
|
|
4
|
-
import { IconProps } from "../Icons/types/IconProps.type";
|
|
5
|
-
import { TitleProps } from "../Title/Title";
|
|
6
|
-
export type BaseListItemProps = {
|
|
7
|
-
itemId: string | number;
|
|
8
|
-
title: string;
|
|
9
|
-
subtitle?: string;
|
|
10
|
-
icon?: React.FunctionComponent<IconProps> | string;
|
|
11
|
-
accessories?: JSX.Element[];
|
|
12
|
-
onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
13
|
-
/** Same as onClick to be compatible with listItem */
|
|
14
|
-
handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
15
|
-
onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
|
|
16
|
-
tooltipId?: string;
|
|
17
|
-
isSelected?: boolean;
|
|
18
|
-
roundTop?: boolean;
|
|
19
|
-
roundBottom?: boolean;
|
|
20
|
-
withBorder?: boolean;
|
|
21
|
-
isDraggable?: boolean;
|
|
22
|
-
dataTestId?: string;
|
|
23
|
-
ref?: Ref<HTMLLIElement>;
|
|
24
|
-
renderDragHandle?: () => ReactNode;
|
|
25
|
-
htmlProps?: React.HTMLProps<HTMLLIElement>;
|
|
26
|
-
};
|
|
27
|
-
export type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
|
|
28
|
-
export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
|
|
29
|
-
items: T[];
|
|
30
|
-
title?: string | TitleProps;
|
|
31
|
-
headerButton?: ButtonDefinition<PrimaryButtonProps>;
|
|
32
|
-
headerTransparent?: boolean;
|
|
33
|
-
itemComponent?: React.FC<T>;
|
|
34
|
-
emptyStateMessage?: string;
|
|
35
|
-
isLoading?: boolean;
|
|
36
|
-
dataTestId?: string;
|
|
37
|
-
footer?: ReactNode;
|
|
38
|
-
withBorder?: boolean;
|
|
39
|
-
ref?: Ref<HTMLUListElement>;
|
|
40
|
-
}
|
|
41
|
-
export type BaseListHeaderProps = {
|
|
42
|
-
title?: string | TitleProps;
|
|
43
|
-
button?: ButtonDefinition<PrimaryButtonProps>;
|
|
44
|
-
transparent?: boolean;
|
|
45
|
-
withBorder?: boolean;
|
|
46
|
-
};
|
|
47
|
-
export type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
|
|
48
|
-
export type DraggableBaseListItemProps = BaseListItemProps & {
|
|
49
|
-
draggableIdentifier: string;
|
|
50
|
-
draggableData?: Record<string, unknown>;
|
|
51
|
-
};
|
|
52
|
-
export type SortableBaseListProps = DraggableBaseListProps & {
|
|
53
|
-
draggableIdentifier: string;
|
|
54
|
-
};
|
|
55
|
-
export type SortableBaseListItemProps = DraggableBaseListItemProps;
|
|
1
|
+
import React, { Ref, ReactNode } from "react";
|
|
2
|
+
import { PrimaryButtonProps } from "../..";
|
|
3
|
+
import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
|
|
4
|
+
import { IconProps } from "../Icons/types/IconProps.type";
|
|
5
|
+
import { TitleProps } from "../Title/Title";
|
|
6
|
+
export type BaseListItemProps = {
|
|
7
|
+
itemId: string | number;
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
icon?: React.FunctionComponent<IconProps> | string;
|
|
11
|
+
accessories?: JSX.Element[];
|
|
12
|
+
onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
13
|
+
/** Same as onClick to be compatible with listItem */
|
|
14
|
+
handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
15
|
+
onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
|
|
16
|
+
tooltipId?: string;
|
|
17
|
+
isSelected?: boolean;
|
|
18
|
+
roundTop?: boolean;
|
|
19
|
+
roundBottom?: boolean;
|
|
20
|
+
withBorder?: boolean;
|
|
21
|
+
isDraggable?: boolean;
|
|
22
|
+
dataTestId?: string;
|
|
23
|
+
ref?: Ref<HTMLLIElement>;
|
|
24
|
+
renderDragHandle?: () => ReactNode;
|
|
25
|
+
htmlProps?: React.HTMLProps<HTMLLIElement>;
|
|
26
|
+
};
|
|
27
|
+
export type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
|
|
28
|
+
export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
|
|
29
|
+
items: T[];
|
|
30
|
+
title?: string | TitleProps;
|
|
31
|
+
headerButton?: ButtonDefinition<PrimaryButtonProps>;
|
|
32
|
+
headerTransparent?: boolean;
|
|
33
|
+
itemComponent?: React.FC<T>;
|
|
34
|
+
emptyStateMessage?: string;
|
|
35
|
+
isLoading?: boolean;
|
|
36
|
+
dataTestId?: string;
|
|
37
|
+
footer?: ReactNode;
|
|
38
|
+
withBorder?: boolean;
|
|
39
|
+
ref?: Ref<HTMLUListElement>;
|
|
40
|
+
}
|
|
41
|
+
export type BaseListHeaderProps = {
|
|
42
|
+
title?: string | TitleProps;
|
|
43
|
+
button?: ButtonDefinition<PrimaryButtonProps>;
|
|
44
|
+
transparent?: boolean;
|
|
45
|
+
withBorder?: boolean;
|
|
46
|
+
};
|
|
47
|
+
export type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
|
|
48
|
+
export type DraggableBaseListItemProps = BaseListItemProps & {
|
|
49
|
+
draggableIdentifier: string;
|
|
50
|
+
draggableData?: Record<string, unknown>;
|
|
51
|
+
};
|
|
52
|
+
export type SortableBaseListProps = DraggableBaseListProps & {
|
|
53
|
+
draggableIdentifier: string;
|
|
54
|
+
};
|
|
55
|
+
export type SortableBaseListItemProps = DraggableBaseListItemProps;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const BaseListEmptyState:
|
|
3
|
-
message:
|
|
4
|
-
roundTop
|
|
5
|
-
withBorder
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
export declare const BaseListEmptyState: ({ message: t, roundTop: o, withBorder: r }: {
|
|
3
|
+
message: any;
|
|
4
|
+
roundTop: any;
|
|
5
|
+
withBorder: any;
|
|
6
|
+
}) => e.DetailedReactHTMLElement<{
|
|
7
|
+
className: string;
|
|
8
|
+
}, HTMLElement>;
|
|
9
|
+
export default BaseListEmptyState;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import p from "react";
|
|
2
|
+
export declare const BaseListHeader: ({ title: s, button: e, transparent: r, withBorder: o }: {
|
|
3
|
+
title: any;
|
|
4
|
+
button: any;
|
|
5
|
+
transparent: any;
|
|
6
|
+
withBorder: any;
|
|
7
|
+
}) => p.DetailedReactHTMLElement<{
|
|
8
|
+
"data-test-id": string;
|
|
9
|
+
className: string;
|
|
10
|
+
}, HTMLElement>;
|
|
11
|
+
export default BaseListHeader;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onAssetLoadError
|
|
5
|
-
}
|
|
1
|
+
import o from "react";
|
|
2
|
+
export declare const BaseListIcon: ({ icon: t, onAssetLoadError: e }: {
|
|
3
|
+
icon: any;
|
|
4
|
+
onAssetLoadError: any;
|
|
5
|
+
}) => o.FunctionComponentElement<{
|
|
6
|
+
children?: o.ReactNode;
|
|
7
|
+
}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export default BaseListItem;
|
|
1
|
+
import s from "react";
|
|
2
|
+
export declare const BaseListItem: s.ForwardRefExoticComponent<s.RefAttributes<unknown>>;
|
|
3
|
+
export default BaseListItem;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import b from "react";
|
|
2
|
+
export declare const DraggableBaseList: (r: any) => b.FunctionComponentElement<{
|
|
3
|
+
dataTestId: any;
|
|
4
|
+
title: any;
|
|
5
|
+
headerButton: any;
|
|
6
|
+
emptyStateMessage: any;
|
|
7
|
+
isLoading: any;
|
|
8
|
+
items: any;
|
|
9
|
+
headerTransparent: any;
|
|
10
|
+
itemComponent: any;
|
|
11
|
+
footer: any;
|
|
12
|
+
withBorder?: boolean | undefined;
|
|
13
|
+
} & b.RefAttributes<unknown>>;
|
|
14
|
+
export default DraggableBaseList;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const DraggableBaseListItem: React.FC<DraggableBaseListItemProps>;
|
|
1
|
+
import d from "react";
|
|
2
|
+
export declare const DraggableBaseListItem: (r: any) => d.FunctionComponentElement<d.RefAttributes<unknown>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DraggableBaseList } from "./DraggableBaseList";
|
|
2
|
-
export { DraggableBaseListItem } from "./DraggableBaseListItem";
|
|
1
|
+
export { DraggableBaseList } from "./DraggableBaseList";
|
|
2
|
+
export { DraggableBaseListItem } from "./DraggableBaseListItem";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import "./ListSkeleton.scss";
|
|
3
|
-
|
|
4
|
-
items:
|
|
5
|
-
dataTestId?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import "./ListSkeleton.scss";
|
|
3
|
+
export declare const ListSkeleton: ({ items: t, dataTestId: s }: {
|
|
4
|
+
items: any;
|
|
5
|
+
dataTestId?: string | undefined;
|
|
6
|
+
}) => e.DetailedReactHTMLElement<{
|
|
7
|
+
"data-test-id": string;
|
|
8
|
+
className: string;
|
|
9
|
+
}, HTMLElement>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export default SortableBaseList;
|
|
1
|
+
import f from "react";
|
|
2
|
+
export declare const SortableBaseList: (o: any) => f.DetailedReactHTMLElement<f.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
3
|
+
export default SortableBaseList;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import i from "react";
|
|
2
|
+
export declare const SortableBaseListItem: (a: any) => i.FunctionComponentElement<i.RefAttributes<unknown>> | i.DetailedReactHTMLElement<{
|
|
3
|
+
style: {
|
|
4
|
+
transform: string | undefined;
|
|
5
|
+
position: "relative";
|
|
6
|
+
};
|
|
7
|
+
}, HTMLElement>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SortableBaseList } from "./SortableBaseList";
|
|
2
|
-
export { SortableBaseListItem } from "./SortableBaseListItem";
|
|
1
|
+
export { SortableBaseList } from "./SortableBaseList";
|
|
2
|
+
export { SortableBaseListItem } from "./SortableBaseListItem";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { BaseList } from "./BaseList";
|
|
2
|
-
export { BaseListItem } from "./BaseListItem";
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { getDndListItemProps } from "./utils";
|
|
1
|
+
export { BaseList } from "./BaseList";
|
|
2
|
+
export { BaseListItem } from "./BaseListItem";
|
|
3
|
+
export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
|
|
4
|
+
export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
|
|
5
|
+
export { getDndListItemProps } from "./utils";
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export declare const createDraggableListProps: ({ itemId: t, title: e, subtitle: s, icon: r, isDraggable: o, isSelected: i }: {
|
|
2
|
+
itemId: any;
|
|
3
|
+
title: any;
|
|
4
|
+
subtitle: any;
|
|
5
|
+
icon: any;
|
|
6
|
+
isDraggable: any;
|
|
7
|
+
isSelected: any;
|
|
8
|
+
}) => WeakMap<{
|
|
9
|
+
symbol: symbol;
|
|
10
|
+
}, Readonly<{
|
|
11
|
+
itemId: any;
|
|
12
|
+
title: any;
|
|
13
|
+
subtitle: any;
|
|
14
|
+
icon: any;
|
|
15
|
+
isDraggable: any;
|
|
16
|
+
isSelected: any;
|
|
17
|
+
}>>;
|
|
18
|
+
export declare const draggableListPropsKey = "listItem", getDndListItemProps: (t: any) => any;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import r from "react";
|
|
2
|
+
export declare const BreadcrumbItem: ({ name: e, link: t }: {
|
|
3
|
+
name: any;
|
|
4
|
+
link: any;
|
|
5
|
+
}) => r.DetailedReactHTMLElement<{
|
|
6
|
+
className: string;
|
|
7
|
+
}, HTMLElement>, BreadcrumbDividerItem: ({ onClick: e, truncatedCrumbs: t }: {
|
|
8
|
+
onClick: any;
|
|
9
|
+
truncatedCrumbs: any;
|
|
10
|
+
}) => r.DetailedReactHTMLElement<{
|
|
11
|
+
className: string;
|
|
12
|
+
}, HTMLElement>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import a from "react";
|
|
2
|
+
export declare const Breadcrumbs: ({ crumbs: t, truncateAfter: e }: {
|
|
3
|
+
crumbs: any;
|
|
4
|
+
truncateAfter?: number | undefined;
|
|
5
|
+
}) => a.DetailedReactHTMLElement<{
|
|
6
|
+
"data-test-id": string;
|
|
7
|
+
className: string;
|
|
8
|
+
}, HTMLElement>;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
name: string;
|
|
3
|
-
key?: string;
|
|
4
|
-
link?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BreadcrumbProps {
|
|
7
|
-
crumbs: Crumb[];
|
|
8
|
-
truncateAfter?: number;
|
|
9
|
-
}
|
|
10
|
-
export type BreadcrumbDividerProps = {
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
truncatedCrumbs: Crumb[];
|
|
13
|
-
};
|
|
14
|
-
export declare const isBreadcrumbDividerProps: (subject: unknown) => subject is BreadcrumbDividerProps;
|
|
1
|
+
export declare const isBreadcrumbDividerProps: (r: any) => boolean;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { Breadcrumbs } from "./Breadcrumbs";
|
|
1
|
+
export { Breadcrumbs } from "./Breadcrumbs";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { BUTTON_ROLES
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default Button;
|
|
9
|
-
export { BUTTON_ROLES };
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { BUTTON_ROLES as r } from "./Button.types";
|
|
3
|
+
declare function ct(e: any): n.DetailedReactHTMLElement<any, HTMLElement> | n.FunctionComponentElement<{
|
|
4
|
+
children?: n.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default ct;
|
|
7
|
+
export { r as BUTTON_ROLES };
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly LINK: "link";
|
|
13
|
-
readonly ICON: "icon";
|
|
14
|
-
};
|
|
15
|
-
type BUTTON_KEYS = keyof typeof BUTTON_ROLES;
|
|
16
|
-
export type BUTTON_TYPE = (typeof BUTTON_ROLES)[BUTTON_KEYS];
|
|
17
|
-
export type ButtonType = "button" | "submit";
|
|
18
|
-
export interface ButtonProps extends RestPropped {
|
|
19
|
-
text?: string;
|
|
20
|
-
role?: BUTTON_TYPE;
|
|
21
|
-
type?: ButtonType;
|
|
22
|
-
title?: string;
|
|
23
|
-
link?: string;
|
|
24
|
-
isPending?: boolean;
|
|
25
|
-
isDisabled?: boolean;
|
|
26
|
-
onClick?: (arg: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
iconName?: string;
|
|
29
|
-
hasIcon?: boolean;
|
|
30
|
-
dynamicIcon?: React.FunctionComponent<IconProps>;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
1
|
+
export declare const BUTTON_ROLES: {
|
|
2
|
+
PRIMARY: string;
|
|
3
|
+
SECONDARY: string;
|
|
4
|
+
SECONDARY_DARK: string;
|
|
5
|
+
TERTIARY: string;
|
|
6
|
+
QUATERNARY: string;
|
|
7
|
+
NEGATIVE: string;
|
|
8
|
+
TEXT: string;
|
|
9
|
+
LINK: string;
|
|
10
|
+
ICON: string;
|
|
11
|
+
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className
|
|
5
|
-
}
|
|
6
|
-
export declare const ButtonIcon: (props: ButtonIconProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
export declare const ButtonIcon: (r: any) => o.DetailedReactHTMLElement<{
|
|
3
|
+
src: any;
|
|
4
|
+
className: any;
|
|
5
|
+
}, HTMLElement>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
-
import { TextColor, TextHoverColor } from "../Text/Text";
|
|
4
|
-
/**
|
|
5
|
-
* Properties that are present in all variants of the button
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export interface BaseButtonProps extends React.ComponentPropsWithRef<"button"> {
|
|
9
|
-
text?: string;
|
|
10
|
-
icon?: React.FunctionComponent<IconProps> | IconKey;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
className?: string;
|
|
13
|
-
dataTestId?: string;
|
|
14
|
-
}
|
|
15
|
-
export type NonPrimaryButtonProps = BaseButtonProps;
|
|
16
|
-
/**
|
|
17
|
-
* Extra properties that can be set when the variant of the button
|
|
18
|
-
* supports the pending state
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export interface ButtonWithPendingStateProps extends BaseButtonProps {
|
|
22
|
-
isPending?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export type PrimaryButtonProps = ButtonWithPendingStateProps;
|
|
25
|
-
/**
|
|
26
|
-
* All properties of BaseButtonProps and ButtonWithPendingStateProps,
|
|
27
|
-
* plus other properties that are assigned internally by the button variants.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export interface ButtonProps extends BaseButtonProps, ButtonWithPendingStateProps {
|
|
31
|
-
textColor?: TextColor;
|
|
32
|
-
textHoverColor?: TextHoverColor;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Interface for defining a button
|
|
36
|
-
*/
|
|
37
|
-
export interface ButtonDefinition<Props extends BaseButtonProps = BaseButtonProps> {
|
|
38
|
-
buttonType: React.FunctionComponent<Props>;
|
|
39
|
-
buttonProps: React.Attributes & Props;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Interface for defining a button with mandatory key
|
|
43
|
-
*/
|
|
44
|
-
export interface ButtonDefinitionWithKey<Props extends BaseButtonProps = BaseButtonProps> {
|
|
45
|
-
buttonType: React.FunctionComponent<Props>;
|
|
46
|
-
buttonProps: {
|
|
47
|
-
key: string | number;
|
|
48
|
-
} & Props;
|
|
49
|
-
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const ButtonV2: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import s from "react";
|
|
2
|
+
export declare const ButtonV2: s.ForwardRefExoticComponent<s.RefAttributes<unknown>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const PrimaryButton: (props: ButtonWithPendingStateProps) => JSX.Element;
|
|
1
|
+
import h from "react";
|
|
2
|
+
export declare const PrimaryButton: (t: any) => h.FunctionComponentElement<h.RefAttributes<unknown>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const SecondaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import m from "react";
|
|
2
|
+
export declare const SecondaryButton: m.ForwardRefExoticComponent<m.RefAttributes<unknown>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const TertiaryButton: (props: BaseButtonProps) => JSX.Element;
|
|
1
|
+
import c from "react";
|
|
2
|
+
export declare const TertiaryButton: (t: any) => c.FunctionComponentElement<c.RefAttributes<unknown>>;
|