@zjlab-fe/data-hub-ui 0.12.5 → 0.13.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/types/components/operator-chain/components/AddButton.d.ts +12 -0
- package/dist/types/components/operator-chain/components/IOCard.d.ts +7 -0
- package/dist/types/components/operator-chain/components/SingleCard.d.ts +11 -0
- package/dist/types/components/operator-chain/demo/index.d.ts +1 -0
- package/dist/types/components/operator-chain/index.d.ts +19 -0
- package/dist/types/index.d.ts +2 -0
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +144 -144
- package/tailwind.config.js +2 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type SingleCardItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
interface AddButtonProps {
|
|
7
|
+
menu: Array<SingleCardItem> | [];
|
|
8
|
+
isEdit?: boolean;
|
|
9
|
+
onClick: (id: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function AddButton({ menu, isEdit, onClick }: AddButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AddButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface SingleCardProps {
|
|
2
|
+
isEdit?: boolean;
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
onClick?: (id: string) => void;
|
|
8
|
+
onDelete?: (id: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function SingleCard({ isEdit, isActive, onClick, onDelete, title, description, id }: SingleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default SingleCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Demo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type SingleCardItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
export type OperatorChainProps = {
|
|
7
|
+
type?: 'default' | 'dataIO';
|
|
8
|
+
isEdit?: boolean;
|
|
9
|
+
defaultValues?: Array<SingleCardItem> | [];
|
|
10
|
+
menu?: Array<SingleCardItem> | [];
|
|
11
|
+
onClick?: (id: string) => void;
|
|
12
|
+
onChange?: (values: SingleCardItem[]) => void;
|
|
13
|
+
width?: string;
|
|
14
|
+
};
|
|
15
|
+
export type OperatorChainRef = {
|
|
16
|
+
getCards: () => SingleCardItem[];
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import("react").ForwardRefExoticComponent<OperatorChainProps & import("react").RefAttributes<unknown>>;
|
|
19
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -32,3 +32,5 @@ export { default as ApplyPermModal } from './components/apply-perm-modal';
|
|
|
32
32
|
export { default as Menu } from './components/menu';
|
|
33
33
|
export { default as RadioCard } from './components/radio-card';
|
|
34
34
|
export type { RadioCardProps, RadioOption } from './components/radio-card';
|
|
35
|
+
export { default as OperatorChain } from './components/operator-chain';
|
|
36
|
+
export type { OperatorChainProps, SingleCardItem, OperatorChainRef } from './components/operator-chain';
|