@luscii-healthtech/web-ui 2.51.0 → 2.52.0

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.
@@ -43,3 +43,7 @@ export declare type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseLis
43
43
  export declare type DraggableBaseListItemProps = BaseListItemProps & {
44
44
  draggableIdentifier: string;
45
45
  };
46
+ export declare type SortableBaseListProps = DraggableBaseListProps & {
47
+ draggableIdentifier: string;
48
+ };
49
+ export declare type SortableBaseListItemProps = DraggableBaseListItemProps;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { SortableBaseListProps } from "../BaseList.types";
3
+ export declare const SortableBaseList: React.FC<SortableBaseListProps>;
4
+ export default SortableBaseList;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SortableBaseListItemProps } from "../BaseList.types";
3
+ export declare const SortableBaseListItem: React.FC<SortableBaseListItemProps>;
@@ -0,0 +1,2 @@
1
+ export { SortableBaseList } from "./SortableBaseList";
2
+ export { SortableBaseListItem } from "./SortableBaseListItem";
@@ -2,3 +2,4 @@ export { BaseList } from "./BaseList";
2
2
  export { BaseListItem } from "./BaseListItem";
3
3
  export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, DraggableBaseListItemProps, } from "./BaseList.types";
4
4
  export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
5
+ export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
@@ -1,4 +1,4 @@
1
- import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps } from "../BaseList/BaseList.types";
1
+ import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, SortableBaseListProps } from "../BaseList/BaseList.types";
2
2
  export declare type ListItemProps = Omit<BaseListItemProps, "onClick"> & {
3
3
  handleItemClick?: () => void;
4
4
  };
@@ -7,8 +7,12 @@ export declare type DefaultListProps = Omit<BaseListProps<ListItemProps>, "rende
7
7
  onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
8
8
  };
9
9
  export declare type DraggableListProps = DraggableBaseListProps;
10
+ export declare type SortableListProps = SortableBaseListProps;
11
+ export declare type SortableListItemProps = SortableListProps["items"][number];
10
12
  export declare type ListProps = ({
11
13
  draggableListType: "default";
12
14
  } & DefaultListProps) | ({
13
15
  draggableListType: "draggable";
14
- } & DraggableListProps) | DefaultListProps;
16
+ } & DraggableListProps) | ({
17
+ draggableListType: "sortable";
18
+ } & SortableListProps) | DefaultListProps;
@@ -1,4 +1,4 @@
1
1
  export { default as List } from "./List";
2
2
  export { ListItem } from "./ListItem";
3
- export type { ListProps, ListItemProps, DraggableListProps, } from "./List.types";
3
+ export type { ListProps, ListItemProps, DraggableListProps, SortableListProps, SortableListItemProps, } from "./List.types";
4
4
  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, ListItem, ListProps, ListItemProps, DraggableListProps, OnAssetLoadErrorPayload, } from "./components/List";
34
+ export { List, ListItem, ListProps, ListItemProps, DraggableListProps, SortableListProps, SortableListItemProps, 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";