@luscii-healthtech/web-ui 2.56.0 → 2.56.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.
@@ -47,6 +47,7 @@ export declare type BaseListHeaderProps = {
47
47
  export declare type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
48
48
  export declare type DraggableBaseListItemProps = BaseListItemProps & {
49
49
  draggableIdentifier: string;
50
+ draggableData?: Record<string, unknown>;
50
51
  };
51
52
  export declare type SortableBaseListProps = DraggableBaseListProps & {
52
53
  draggableIdentifier: string;
@@ -3,3 +3,4 @@ export { BaseListItem } from "./BaseListItem";
3
3
  export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, DraggableBaseListItemProps, } from "./BaseList.types";
4
4
  export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
5
5
  export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
6
+ export { getDndListItemProps } from "./utils";
@@ -1,3 +1,10 @@
1
+ import { Active, Over } from "@dnd-kit/core";
1
2
  import { ListItemProps } from "../List/List";
2
- import { BaseListItemProps } from ".";
3
- export declare const toBaseListItemProps: (props: ListItemProps) => BaseListItemProps;
3
+ declare const draggableListItemPropsPointer: {
4
+ readonly symbol: symbol;
5
+ };
6
+ declare 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,4 +1,5 @@
1
1
  export { default as List } from "./List";
2
2
  export { ListItem } from "./ListItem";
3
3
  export type { ListProps, ListItemProps, DraggableListProps, SortableListProps, SortableListItemProps, } from "./List.types";
4
- export type { OnAssetLoadErrorPayload } from "./../BaseList";
4
+ export type { OnAssetLoadErrorPayload } from "../BaseList";
5
+ export { getDndListItemProps } 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, SortableListProps, SortableListItemProps, OnAssetLoadErrorPayload, } from "./components/List";
34
+ export { List, ListItem, ListProps, ListItemProps, DraggableListProps, SortableListProps, SortableListItemProps, OnAssetLoadErrorPayload, getDndListItemProps, } 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";