@luscii-healthtech/web-ui 2.50.3 → 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.
- package/dist/components/BaseList/BaseList.types.d.ts +8 -0
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -0
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -0
- package/dist/components/BaseList/DraggableBaseList/index.d.ts +2 -0
- package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
- package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
- package/dist/components/BaseList/SortableBaseList/index.d.ts +2 -0
- package/dist/components/BaseList/index.d.ts +3 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.types.d.ts +12 -2
- package/dist/components/List/ListItem.d.ts +4 -0
- package/dist/components/List/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/web-ui-tailwind.css +4 -0
- package/dist/web-ui.cjs.development.js +318 -166
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +319 -168
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,3 +39,11 @@ export declare type BaseListHeaderProps = {
|
|
|
39
39
|
button?: ButtonDefinition<PrimaryButtonProps>;
|
|
40
40
|
transparent?: boolean;
|
|
41
41
|
};
|
|
42
|
+
export declare type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
|
|
43
|
+
export declare type DraggableBaseListItemProps = BaseListItemProps & {
|
|
44
|
+
draggableIdentifier: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type SortableBaseListProps = DraggableBaseListProps & {
|
|
47
|
+
draggableIdentifier: string;
|
|
48
|
+
};
|
|
49
|
+
export declare type SortableBaseListItemProps = DraggableBaseListItemProps;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { BaseList } from "./BaseList";
|
|
2
2
|
export { BaseListItem } from "./BaseListItem";
|
|
3
|
-
export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, } from "./BaseList.types";
|
|
3
|
+
export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, DraggableBaseListItemProps, } from "./BaseList.types";
|
|
4
|
+
export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
|
|
5
|
+
export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListItemProps, ListProps } from "./List.types";
|
|
2
3
|
import "./List.scss";
|
|
3
4
|
export { ListProps, ListItemProps };
|
|
4
|
-
|
|
5
|
+
declare const List: React.FC<ListProps>;
|
|
5
6
|
export default List;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload } 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
|
};
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type DefaultListProps = Omit<BaseListProps<ListItemProps>, "renderItem" | "itemComponent"> & {
|
|
6
6
|
onDragEnd?: (itemId: string | number, newIndex: number) => void;
|
|
7
7
|
onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
|
|
8
8
|
};
|
|
9
|
+
export declare type DraggableListProps = DraggableBaseListProps;
|
|
10
|
+
export declare type SortableListProps = SortableBaseListProps;
|
|
11
|
+
export declare type SortableListItemProps = SortableListProps["items"][number];
|
|
12
|
+
export declare type ListProps = ({
|
|
13
|
+
draggableListType: "default";
|
|
14
|
+
} & DefaultListProps) | ({
|
|
15
|
+
draggableListType: "draggable";
|
|
16
|
+
} & DraggableListProps) | ({
|
|
17
|
+
draggableListType: "sortable";
|
|
18
|
+
} & SortableListProps) | DefaultListProps;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as List } from "./List";
|
|
2
|
-
export
|
|
2
|
+
export { ListItem } from "./ListItem";
|
|
3
|
+
export type { ListProps, ListItemProps, DraggableListProps, SortableListProps, SortableListItemProps, } from "./List.types";
|
|
3
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, ListProps, ListItemProps, 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";
|