@luscii-healthtech/web-ui 2.49.1 → 2.50.1

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.
@@ -0,0 +1,7 @@
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, }: 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 {};
@@ -0,0 +1,41 @@
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 declare 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
+ onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
14
+ tooltipId?: string;
15
+ isSelected?: boolean;
16
+ roundTop?: boolean;
17
+ roundBottom?: boolean;
18
+ isDraggable?: boolean;
19
+ dataTestId?: string;
20
+ ref?: Ref<HTMLLIElement>;
21
+ renderDragHandle?: () => ReactNode;
22
+ htmlProps?: React.HTMLProps<HTMLLIElement>;
23
+ };
24
+ export declare type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
25
+ export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
26
+ items: T[];
27
+ title?: string | TitleProps;
28
+ headerButton?: ButtonDefinition<PrimaryButtonProps>;
29
+ headerTransparent?: boolean;
30
+ itemComponent?: React.FC<T>;
31
+ emptyStateMessage?: string;
32
+ isLoading?: boolean;
33
+ dataTestId?: string;
34
+ footer?: ReactNode;
35
+ ref?: Ref<HTMLUListElement>;
36
+ }
37
+ export declare type BaseListHeaderProps = {
38
+ title?: string | TitleProps;
39
+ button?: ButtonDefinition<PrimaryButtonProps>;
40
+ transparent?: boolean;
41
+ };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export declare const BaseListEmptyState: React.FC<{
3
+ message: string;
4
+ roundTop?: boolean;
5
+ }>;
6
+ export default BaseListEmptyState;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BaseListHeaderProps } from "./BaseList.types";
3
+ export declare const BaseListHeader: React.FC<BaseListHeaderProps>;
4
+ export default BaseListHeader;
@@ -0,0 +1,5 @@
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
+ }>;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BaseListItemProps } from "./BaseList.types";
3
+ export declare const BaseListItem: React.FC<BaseListItemProps>;
4
+ export default BaseListItem;
@@ -0,0 +1,3 @@
1
+ export { BaseList } from "./BaseList";
2
+ export { BaseListItem } from "./BaseListItem";
3
+ export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, } from "./BaseList.types";
@@ -0,0 +1,3 @@
1
+ import { ListItemProps } from "../List/List";
2
+ import { BaseListItemProps } from ".";
3
+ export declare const toBaseListItemProps: (props: ListItemProps) => BaseListItemProps;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { DropzoneProps, DropzonePresentationProps } from "./Dropzone.types";
3
+ export declare const DropzonePresentation: React.FC<DropzonePresentationProps>;
4
+ export declare const Dropzone: React.FC<DropzoneProps>;
5
+ export default Dropzone;
@@ -0,0 +1,17 @@
1
+ import { ReactNode, Ref } from "react";
2
+ import type { IconKey } from "../Icons/types/IconProps.type";
3
+ export declare type DropzonePresentationProps = {
4
+ message?: string;
5
+ icon?: IconKey;
6
+ isHighlighted?: boolean;
7
+ ref?: Ref<HTMLDivElement>;
8
+ children?: ReactNode;
9
+ className?: string;
10
+ dataTestId?: string;
11
+ };
12
+ export declare type DropzoneProps = Omit<DropzonePresentationProps, "isHighlighted"> & {
13
+ draggableIdentifier: string | number;
14
+ disabled?: boolean;
15
+ data?: Record<string, unknown>;
16
+ dataTestId?: string;
17
+ };
@@ -0,0 +1,2 @@
1
+ export { Dropzone, DropzonePresentation } from "./Dropzone";
2
+ export type { DropzoneProps } from "./Dropzone.types";
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./types/IconProps.type";
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -30,6 +30,7 @@ export { default as LightBulbIcon } from "./LightBulbIcon";
30
30
  export { default as LinkIcon } from "./LinkIcon";
31
31
  export { default as LockIcon } from "./LockIcon";
32
32
  export { default as MessagesIcon } from "./MessagesIcon";
33
+ export { default as MouseIcon } from "./MouseIcon";
33
34
  export { default as NotesIcon } from "./NotesIcon";
34
35
  export { default as PinIcon } from "./PinIcon";
35
36
  export { default as PrintIcon } from "./PrintIcon";
@@ -1,5 +1,5 @@
1
- import { ListItemProps, ListProps, OnAssetLoadErrorPayload } from "./List.types";
1
+ import { ListItemProps, ListProps } from "./List.types";
2
2
  import "./List.scss";
3
- export { ListProps, ListItemProps, OnAssetLoadErrorPayload };
4
- export declare const List: ({ title, headerButton, headerTransparent, items, onAssetLoadError, onDragEnd, emptyStateMessage, isLoading, dataTestId, }: ListProps) => JSX.Element;
3
+ export { ListProps, ListItemProps };
4
+ export declare const List: ({ title, headerButton, headerTransparent, items, onDragEnd, emptyStateMessage, isLoading, dataTestId, onAssetLoadError, }: ListProps) => JSX.Element;
5
5
  export default List;
@@ -1,37 +1,8 @@
1
- import React from "react";
2
- import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
3
- import { IconProps } from "../Icons/types/IconProps.type";
4
- import { PrimaryButtonProps } from "../../index";
5
- import { TitleProps } from "../Title/Title";
6
- export interface ListItemProps {
7
- itemId: string | number;
8
- title: string;
9
- subtitle?: string;
10
- icon?: React.FunctionComponent<IconProps> | string;
11
- accessories?: JSX.Element[];
1
+ import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload } from "../BaseList/BaseList.types";
2
+ export declare type ListItemProps = Omit<BaseListItemProps, "onClick"> & {
12
3
  handleItemClick?: () => void;
13
- onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
14
- tooltipId?: string;
15
- isSelected?: boolean;
16
- /**
17
- *
18
- * If the parent list component can have a header,
19
- * the list items don't need to add a border radius on top of the first item.
20
- *
21
- * The header is an optional <li> on top that contains the title and accessories (buttons)
22
- */
23
- roundTop?: boolean;
24
- isDraggable?: boolean;
25
- }
26
- export declare type OnAssetLoadErrorPayload = Pick<ListItemProps, "itemId" | "subtitle" | "title" | "icon">;
27
- export declare type ListProps = {
28
- title?: string | TitleProps;
29
- headerButton?: ButtonDefinition<PrimaryButtonProps>;
30
- headerTransparent?: boolean;
31
- items: ListItemProps[];
32
- onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
4
+ };
5
+ export declare type ListProps = Omit<BaseListProps<ListItemProps>, "renderItem" | "itemComponent"> & {
33
6
  onDragEnd?: (itemId: string | number, newIndex: number) => void;
34
- emptyStateMessage?: string;
35
- isLoading?: boolean;
36
- dataTestId?: string;
7
+ onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
37
8
  };
@@ -0,0 +1,3 @@
1
+ export { default as List } from "./List";
2
+ export type { ListProps, ListItemProps } from "./List.types";
3
+ export type { OnAssetLoadErrorPayload } from "./../BaseList";
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ export { Table, TableProps } from "./components/Table/Table";
31
31
  export { TableFieldConfig, TableFieldContent, TableFieldText, TableFieldAction, } from "./components/Table/Table.types";
32
32
  export { LoadingIndicator, LoadingIndicatorProps, } from "./components/LoadingIndicator/LoadingIndicator";
33
33
  export { default as Menu } from "./components/Menu/Menu";
34
- export { List, ListProps, ListItemProps, OnAssetLoadErrorPayload, } from "./components/List/List";
34
+ export { List, ListProps, ListItemProps, OnAssetLoadErrorPayload, } from "./components/List";
35
35
  export { CheckboxList, CheckboxListProps, } from "./components/CheckboxList/CheckboxList";
36
36
  export { CheckboxListModal, CheckboxListModalProps, } from "./components/CheckBoxListModal/CheckboxListModal";
37
37
  export { MultiSelect } from "./components/MultiSelect/MultiSelect";
@@ -78,3 +78,4 @@ export * from "./components/Icons";
78
78
  export { Divider } from "./components/Divider/Divider";
79
79
  export { FullPageModal } from "./components/Modal/FullPageModal";
80
80
  export { Card, type CardProps } from "./components/Card/Card";
81
+ export { Dropzone, DropzoneProps } from "./components/Dropzone";
@@ -1078,6 +1078,10 @@ video {
1078
1078
  border-style: solid;
1079
1079
  }
1080
1080
 
1081
+ .border-dashed {
1082
+ border-style: dashed;
1083
+ }
1084
+
1081
1085
  .last\:border-none:last-child {
1082
1086
  border-style: none;
1083
1087
  }