@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.
Files changed (213) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +11 -10
  2. package/dist/components/Accordion/AccordionItem.d.ts +10 -9
  3. package/dist/components/AccordionList/AccordionList.d.ts +5 -32
  4. package/dist/components/Badge/Badge.d.ts +5 -7
  5. package/dist/components/BaseList/BaseList.d.ts +13 -7
  6. package/dist/components/BaseList/BaseList.types.d.ts +55 -55
  7. package/dist/components/BaseList/BaseListEmptyState.d.ts +9 -7
  8. package/dist/components/BaseList/BaseListHeader.d.ts +11 -4
  9. package/dist/components/BaseList/BaseListIcon.d.ts +7 -5
  10. package/dist/components/BaseList/BaseListItem.d.ts +3 -4
  11. package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +14 -4
  12. package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +2 -3
  13. package/dist/components/BaseList/DraggableBaseList/index.d.ts +2 -2
  14. package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +4 -2
  15. package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +9 -8
  16. package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +3 -4
  17. package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +7 -3
  18. package/dist/components/BaseList/SortableBaseList/index.d.ts +2 -2
  19. package/dist/components/BaseList/index.d.ts +5 -6
  20. package/dist/components/BaseList/utils.d.ts +18 -10
  21. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +12 -4
  22. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +8 -3
  23. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -14
  24. package/dist/components/Breadcrumbs/index.d.ts +1 -2
  25. package/dist/components/Button/Button.d.ts +7 -9
  26. package/dist/components/Button/Button.types.d.ts +11 -32
  27. package/dist/components/Button/ButtonIcon.d.ts +5 -7
  28. package/dist/components/ButtonV2/ButtonProps.type.d.ts +0 -49
  29. package/dist/components/ButtonV2/ButtonV2.d.ts +2 -3
  30. package/dist/components/ButtonV2/PrimaryButton.d.ts +2 -3
  31. package/dist/components/ButtonV2/SecondaryButton.d.ts +2 -3
  32. package/dist/components/ButtonV2/TertiaryButton.d.ts +2 -3
  33. package/dist/components/Card/Card.d.ts +9 -12
  34. package/dist/components/Carousel/Carousel.d.ts +9 -8
  35. package/dist/components/Carousel/GliderContainer.d.ts +5 -7
  36. package/dist/components/CenteredHero/CenteredHero.d.ts +12 -14
  37. package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +11 -30
  38. package/dist/components/Checkbox/Checkbox.d.ts +4 -19
  39. package/dist/components/CheckboxList/CheckboxGroup.d.ts +12 -3
  40. package/dist/components/CheckboxList/CheckboxList.d.ts +12 -5
  41. package/dist/components/CheckboxList/CheckboxList.types.d.ts +1 -52
  42. package/dist/components/CheckboxList/CheckboxListItem.d.ts +13 -3
  43. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +2 -3
  44. package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +4 -7
  45. package/dist/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -4
  46. package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +5 -3
  47. package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +41 -41
  48. package/dist/components/Container/FlexColumn.d.ts +15 -7
  49. package/dist/components/Container/FlexContainer.d.ts +4 -9
  50. package/dist/components/Container/FlexRow.d.ts +2 -7
  51. package/dist/components/Container/types/FlexContainerProps.type.d.ts +26 -26
  52. package/dist/components/Divider/Divider.d.ts +4 -6
  53. package/dist/components/DragHandle/DragHandle.d.ts +3 -7
  54. package/dist/components/DragHandle/DragHandle.types.d.ts +6 -6
  55. package/dist/components/DragHandle/index.d.ts +1 -2
  56. package/dist/components/Dropzone/Dropzone.d.ts +8 -6
  57. package/dist/components/Dropzone/Dropzone.types.d.ts +33 -33
  58. package/dist/components/Dropzone/index.d.ts +1 -2
  59. package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +10 -14
  60. package/dist/components/Form/Form.d.ts +15 -30
  61. package/dist/components/Form/FormFieldCheckbox.d.ts +2 -9
  62. package/dist/components/Form/FormFieldCheckboxList.d.ts +15 -9
  63. package/dist/components/Form/FormFieldErrorMessages.d.ts +4 -8
  64. package/dist/components/Form/FormFieldLabeler.d.ts +12 -8
  65. package/dist/components/Form/FormImagePicker.d.ts +2 -9
  66. package/dist/components/Form/FormInput.d.ts +2 -14
  67. package/dist/components/Form/FormRadioGroup.d.ts +2 -13
  68. package/dist/components/Form/FormSelect.d.ts +2 -10
  69. package/dist/components/Form/FormTextarea.d.ts +2 -14
  70. package/dist/components/Form/form.transformer.d.ts +1 -3
  71. package/dist/components/Form/form.types.d.ts +91 -91
  72. package/dist/components/Icon/Icon.d.ts +3 -17
  73. package/dist/components/Icon/index.d.ts +1 -1
  74. package/dist/components/Icons/AddIcon.d.ts +3 -4
  75. package/dist/components/Icons/AlertsIcon.d.ts +3 -4
  76. package/dist/components/Icons/BellIcon.d.ts +3 -4
  77. package/dist/components/Icons/BluetoothIcon.d.ts +3 -4
  78. package/dist/components/Icons/ChartIcon.d.ts +3 -4
  79. package/dist/components/Icons/ChartLineColoredIcon.d.ts +3 -4
  80. package/dist/components/Icons/ChatBoxIcon.d.ts +3 -4
  81. package/dist/components/Icons/CheckIcon.d.ts +3 -4
  82. package/dist/components/Icons/ChevronDoubleIcon.d.ts +3 -4
  83. package/dist/components/Icons/ChevronDownIcon.d.ts +3 -4
  84. package/dist/components/Icons/ChevronRightIcon.d.ts +3 -4
  85. package/dist/components/Icons/CrossIcon.d.ts +3 -4
  86. package/dist/components/Icons/DeleteIcon.d.ts +3 -4
  87. package/dist/components/Icons/DownArrowIcon.d.ts +3 -4
  88. package/dist/components/Icons/DragIcon.d.ts +3 -4
  89. package/dist/components/Icons/EditIcon.d.ts +3 -4
  90. package/dist/components/Icons/EmptyIcon.d.ts +3 -4
  91. package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +3 -4
  92. package/dist/components/Icons/ExclamationMarkIcon.d.ts +3 -4
  93. package/dist/components/Icons/EyeIcon.d.ts +3 -4
  94. package/dist/components/Icons/GearColoredIcon.d.ts +3 -4
  95. package/dist/components/Icons/GearIcon.d.ts +3 -4
  96. package/dist/components/Icons/GroupColoredIcon.d.ts +3 -4
  97. package/dist/components/Icons/GroupIcon.d.ts +3 -4
  98. package/dist/components/Icons/HamburgerIcon.d.ts +3 -4
  99. package/dist/components/Icons/HeartIcon.d.ts +3 -4
  100. package/dist/components/Icons/ImageIcon.d.ts +3 -4
  101. package/dist/components/Icons/InfoIcon.d.ts +3 -4
  102. package/dist/components/Icons/LeftArrowIcon.d.ts +3 -4
  103. package/dist/components/Icons/LightBulbIcon.d.ts +3 -4
  104. package/dist/components/Icons/LinkIcon.d.ts +3 -4
  105. package/dist/components/Icons/LockIcon.d.ts +3 -4
  106. package/dist/components/Icons/MessagesIcon.d.ts +3 -4
  107. package/dist/components/Icons/MouseIcon.d.ts +3 -4
  108. package/dist/components/Icons/NotesIcon.d.ts +3 -4
  109. package/dist/components/Icons/PinIcon.d.ts +3 -4
  110. package/dist/components/Icons/PrintIcon.d.ts +3 -4
  111. package/dist/components/Icons/RightArrowIcon.d.ts +3 -4
  112. package/dist/components/Icons/SearchCancelIcon.d.ts +3 -4
  113. package/dist/components/Icons/SearchIcon.d.ts +3 -4
  114. package/dist/components/Icons/SmallCircleIcon.d.ts +3 -4
  115. package/dist/components/Icons/SmallDiamondIcon.d.ts +3 -4
  116. package/dist/components/Icons/SmallSquareIcon.d.ts +3 -4
  117. package/dist/components/Icons/SpaceRocketIcon.d.ts +3 -4
  118. package/dist/components/Icons/StarIcon.d.ts +3 -4
  119. package/dist/components/Icons/StatusColoredIcon.d.ts +3 -4
  120. package/dist/components/Icons/WarningIcon.d.ts +3 -4
  121. package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +3 -4
  122. package/dist/components/Icons/iconWrapper/index.d.ts +1 -1
  123. package/dist/components/Icons/index.d.ts +47 -47
  124. package/dist/components/Icons/templates/component.d.ts +3 -3
  125. package/dist/components/Icons/templates/index.d.ts +2 -2
  126. package/dist/components/Icons/types/IconProps.type.d.ts +8 -8
  127. package/dist/components/Image/Image.d.ts +5 -10
  128. package/dist/components/ImagePicker/ImageCategory.d.ts +4 -14
  129. package/dist/components/ImagePicker/ImagePicker.d.ts +17 -29
  130. package/dist/components/InfoField/InfoField.d.ts +9 -18
  131. package/dist/components/Input/Input.d.ts +10 -57
  132. package/dist/components/Input/SearchInput.d.ts +2 -4
  133. package/dist/components/List/List.d.ts +5 -6
  134. package/dist/components/List/List.types.d.ts +19 -19
  135. package/dist/components/List/ListItem.d.ts +3 -4
  136. package/dist/components/List/index.d.ts +3 -5
  137. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +4 -12
  138. package/dist/components/Modal/FullPageModal.d.ts +29 -11
  139. package/dist/components/Modal/FullPageModalHeader.d.ts +7 -7
  140. package/dist/components/Modal/Modal.d.ts +2 -6
  141. package/dist/components/Modal/ModalBase.d.ts +5 -16
  142. package/dist/components/Modal/ModalFooter.d.ts +4 -12
  143. package/dist/components/Modal/ModalHeader.d.ts +4 -6
  144. package/dist/components/NavMenu/NavLayout.d.ts +4 -20
  145. package/dist/components/NavMenu/NavMenu.d.ts +4 -16
  146. package/dist/components/NavMenu/NavMenuContent.d.ts +11 -3
  147. package/dist/components/NavMenu/NavMenuFooter.d.ts +8 -3
  148. package/dist/components/NavMenu/NavMenuHeader.d.ts +7 -3
  149. package/dist/components/NavMenu/NavMenuItem.d.ts +9 -3
  150. package/dist/components/NavMenu/types/NavMenuFooterProps.type.d.ts +5 -5
  151. package/dist/components/NavMenu/types/NavMenuHeaderProps.type.d.ts +5 -5
  152. package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +11 -11
  153. package/dist/components/NotificationBanner/NotificationBanner.d.ts +12 -41
  154. package/dist/components/Page/CRUDPage.d.ts +17 -4
  155. package/dist/components/Page/CRUDPage.types.d.ts +32 -32
  156. package/dist/components/Page/index.d.ts +2 -3
  157. package/dist/components/PageHeader/PageHeader.d.ts +17 -4
  158. package/dist/components/PageHeader/PageHeader.types.d.ts +28 -28
  159. package/dist/components/PageHeader/index.d.ts +1 -2
  160. package/dist/components/PaginationMenu/PaginationMenu.d.ts +4 -3
  161. package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +0 -37
  162. package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +4 -15
  163. package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +4 -3
  164. package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +4 -3
  165. package/dist/components/PreviewPhone/PreviewPhone.d.ts +11 -7
  166. package/dist/components/Radio/RadioV2.d.ts +3 -17
  167. package/dist/components/RadioGroup/RadioGroupV2.d.ts +2 -10
  168. package/dist/components/Section/Section.d.ts +4 -25
  169. package/dist/components/Section/SectionItem.d.ts +4 -9
  170. package/dist/components/Section/SectionItemWithContent.d.ts +3 -9
  171. package/dist/components/Section/subcomponents/SectionActions.d.ts +21 -21
  172. package/dist/components/Select/Select.d.ts +3 -40
  173. package/dist/components/Select/SelectDropdownIndicator.d.ts +2 -3
  174. package/dist/components/Select/SelectLoadingIndicator.d.ts +2 -3
  175. package/dist/components/SettingsMenuButton/SettingsMenuButton.d.ts +5 -19
  176. package/dist/components/Spinner/Spinner.d.ts +2 -6
  177. package/dist/components/Steps/Step.d.ts +9 -10
  178. package/dist/components/Steps/Steps.d.ts +9 -10
  179. package/dist/components/TabLinks/TabLinks.d.ts +10 -14
  180. package/dist/components/Tabbar/Tabbar.d.ts +13 -18
  181. package/dist/components/Tabbar/TabbarItem.d.ts +16 -16
  182. package/dist/components/Table/Table.d.ts +2 -16
  183. package/dist/components/Table/Table.types.d.ts +0 -43
  184. package/dist/components/Table/Table.utils.d.ts +2 -3
  185. package/dist/components/Table/TableBody.d.ts +4 -13
  186. package/dist/components/Table/TableBodyRow.d.ts +6 -10
  187. package/dist/components/Table/TableBodyRowDataCell.d.ts +4 -8
  188. package/dist/components/Table/TableFooter.d.ts +2 -8
  189. package/dist/components/Table/TableHeader.d.ts +4 -7
  190. package/dist/components/Tag/Tag.d.ts +12 -17
  191. package/dist/components/Tag/Tag.utils.d.ts +1 -4
  192. package/dist/components/Tag/TagGroup.d.ts +9 -10
  193. package/dist/components/Text/Text.d.ts +24 -66
  194. package/dist/components/TextLink/TextLink.d.ts +8 -11
  195. package/dist/components/Textarea/Textarea.d.ts +3 -29
  196. package/dist/components/Timeline/Timeline.d.ts +12 -14
  197. package/dist/components/Timeline/TimelineHeader.d.ts +10 -10
  198. package/dist/components/Timeline/TimelineStep.d.ts +2 -10
  199. package/dist/components/Title/Title.d.ts +8 -17
  200. package/dist/components/Toaster/Toaster.d.ts +19 -17
  201. package/dist/components/Toaster/toast-elements-getter.d.ts +9 -22
  202. package/dist/components/Toaster/toast-progress-animator.d.ts +1 -12
  203. package/dist/components/Toaster/toast.d.ts +5 -12
  204. package/dist/components/ViewItem/ViewItem.d.ts +3 -16
  205. package/dist/index.d.ts +78 -81
  206. package/dist/index.js +30 -30
  207. package/dist/index.js.map +1 -1
  208. package/dist/types/general.types.d.ts +8 -8
  209. package/dist/utils/string.utils.d.ts +1 -7
  210. package/dist/web-ui-tailwind.css +0 -5
  211. package/dist/web-ui.esm.js +30 -30
  212. package/dist/web-ui.esm.js.map +1 -1
  213. package/package.json +2 -2
@@ -1,10 +1,11 @@
1
- import React from "react";
2
- import { AccordionItemProps } from "./AccordionItem";
3
- export interface AccordionProps {
4
- dataTestId?: string;
5
- items: AccordionItemProps[];
6
- className?: string;
7
- isCollapsedByDefault?: boolean;
8
- }
9
- declare const Accordion: React.VFC<AccordionProps>;
10
- export default Accordion;
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 React from "react";
2
- export interface AccordionItemProps {
3
- id: string | number;
4
- title: string;
5
- content: React.ReactNode;
6
- className?: string;
7
- isCollapsedByDefault?: boolean;
8
- }
9
- export declare const AccordionItem: React.VFC<AccordionItemProps>;
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 React from "react";
2
- import { AccordionProps } from "../Accordion/Accordion";
3
- import { DraggableListProps, ListItemProps, SortableListProps } from "../List/List.types";
4
- import { AccordionItemProps } from "../Accordion/AccordionItem";
5
- import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
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
- /// <reference types="react" />
2
- interface BadgeProps {
3
- badgeCount: number;
4
- className?: string;
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 React from "react";
2
- import type { BaseListItemProps, BaseListProps } from "./BaseList.types";
3
- declare const BaseListInner: <T extends BaseListItemProps>({ dataTestId, title, headerButton, emptyStateMessage, isLoading, items, headerTransparent, itemComponent, footer, withBorder, }: BaseListProps<T>, ref: React.ForwardedRef<HTMLUListElement>) => JSX.Element;
4
- export declare const BaseList: <T extends BaseListItemProps>(props: BaseListProps<T> & {
5
- ref?: React.ForwardedRef<HTMLUListElement> | undefined;
6
- }) => ReturnType<typeof BaseListInner>;
7
- export {};
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 React from "react";
2
- export declare const BaseListEmptyState: React.FC<{
3
- message: string;
4
- roundTop?: boolean;
5
- withBorder?: boolean;
6
- }>;
7
- export default BaseListEmptyState;
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 React from "react";
2
- import type { BaseListHeaderProps } from "./BaseList.types";
3
- export declare const BaseListHeader: React.FC<BaseListHeaderProps>;
4
- export default BaseListHeader;
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 React from "react";
2
- import { BaseListItemProps } from "./BaseList.types";
3
- export declare const BaseListIcon: React.FC<Pick<BaseListItemProps, "icon"> & {
4
- onAssetLoadError?: () => void;
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 React from "react";
2
- import type { BaseListItemProps } from "./BaseList.types";
3
- export declare const BaseListItem: React.FC<BaseListItemProps>;
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 React from "react";
2
- import type { DraggableBaseListProps } from "../BaseList.types";
3
- export declare const DraggableBaseList: React.FC<DraggableBaseListProps>;
4
- export default DraggableBaseList;
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 React from "react";
2
- import { DraggableBaseListItemProps } from "../BaseList.types";
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,2 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ListItemSkeleton: () => JSX.Element;
1
+ import e from "react";
2
+ export declare const ListItemSkeleton: () => e.DetailedReactHTMLElement<{
3
+ className: string;
4
+ }, HTMLElement>;
@@ -1,8 +1,9 @@
1
- /// <reference types="react" />
2
- import "./ListSkeleton.scss";
3
- type ListSkeletonProps = {
4
- items: number;
5
- dataTestId?: string;
6
- };
7
- export declare const ListSkeleton: ({ items, dataTestId, }: ListSkeletonProps) => JSX.Element;
8
- export {};
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 React from "react";
2
- import type { SortableBaseListProps } from "../BaseList.types";
3
- export declare const SortableBaseList: React.FC<SortableBaseListProps>;
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 React from "react";
2
- import { SortableBaseListItemProps } from "../BaseList.types";
3
- export declare const SortableBaseListItem: React.FC<SortableBaseListItemProps>;
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 type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, DraggableBaseListItemProps, } from "./BaseList.types";
4
- export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
5
- export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
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
- import { Active, Over } from "@dnd-kit/core";
2
- import { ListItemProps } from "../List/List";
3
- declare const draggableListItemPropsPointer: {
4
- readonly symbol: symbol;
5
- };
6
- type DraggableListItemProps = WeakMap<typeof draggableListItemPropsPointer, Pick<ListItemProps, "itemId" | "title" | "subtitle" | "icon" | "isDraggable" | "isSelected">>;
7
- export declare const createDraggableListProps: ({ itemId, title, subtitle, icon, isDraggable, isSelected, }: ListItemProps) => DraggableListItemProps;
8
- export declare const draggableListPropsKey: "listItem";
9
- export declare const getDndListItemProps: (subject: Active | Over) => ListItemProps | null;
10
- export {};
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 React from "react";
2
- import type { BreadcrumbDividerProps, Crumb } from "./Breadcrumbs.types";
3
- export declare const BreadcrumbItem: React.FC<Crumb>;
4
- export declare const BreadcrumbDividerItem: React.FC<BreadcrumbDividerProps>;
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 React from "react";
2
- import type { BreadcrumbProps } from "./Breadcrumbs.types";
3
- export declare const Breadcrumbs: React.FC<BreadcrumbProps>;
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 interface Crumb {
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 type { BreadcrumbProps, Crumb } from "./Breadcrumbs.types";
2
- export { Breadcrumbs } from "./Breadcrumbs";
1
+ export { Breadcrumbs } from "./Breadcrumbs";
@@ -1,9 +1,7 @@
1
- /// <reference types="react" />
2
- import { BUTTON_ROLES, ButtonProps } from "./Button.types";
3
- /**
4
- * TODO: We have to probably use [ButtonV2.tsx](../../components/ButtonV2/ButtonV2.tsx)
5
- * to replace this component at some point.
6
- */
7
- declare function Button(props: ButtonProps): JSX.Element;
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
- import React from "react";
2
- import { RestPropped } from "../../types/general.types";
3
- import { IconProps } from "../Icons/types/IconProps.type";
4
- export declare const BUTTON_ROLES: {
5
- readonly PRIMARY: "primary";
6
- readonly SECONDARY: "secondary";
7
- readonly SECONDARY_DARK: "secondaryDark";
8
- readonly TERTIARY: "tertiary";
9
- readonly QUATERNARY: "quaternary";
10
- readonly NEGATIVE: "negative";
11
- readonly TEXT: "text";
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
- /// <reference types="react" />
2
- interface ButtonIconProps {
3
- name: string;
4
- className?: string;
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 React from "react";
2
- import { ButtonProps } from "./ButtonProps.type";
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
- /// <reference types="react" />
2
- import { ButtonWithPendingStateProps } from "./ButtonProps.type";
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 React from "react";
2
- import { ButtonProps } from "./ButtonProps.type";
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
- /// <reference types="react" />
2
- import { BaseButtonProps } from "./ButtonProps.type";
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>>;