@npm-questionpro/wick-ui-lib 1.24.2 → 1.25.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/src/components/activityLog/WuActivityLog.d.ts +18 -0
- package/dist/src/components/activityLog/WuActivityLog.test.d.ts +1 -0
- package/dist/src/components/activityLog/index.d.ts +2 -0
- package/dist/src/components/contentEditor/WuContentEditor.d.ts +1 -0
- package/dist/src/components/table/types/IWuRowSelection.d.ts +4 -0
- package/dist/src/components/table/ui/_body.d.ts +2 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +3312 -3228
- package/dist/wick-ui-lib/umd/index.js +7 -7
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const getValueByPath: <T>(obj: T, path: string) => unknown;
|
|
3
|
+
export interface IWuActivityLogAccessorKey {
|
|
4
|
+
id: string;
|
|
5
|
+
date: string;
|
|
6
|
+
time: string;
|
|
7
|
+
userName: string;
|
|
8
|
+
userInitials: string;
|
|
9
|
+
userImage?: string;
|
|
10
|
+
tags?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IWuActivityLogProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
logs: T[];
|
|
15
|
+
accessorKey: IWuActivityLogAccessorKey;
|
|
16
|
+
}
|
|
17
|
+
export declare const WuActivityLog: <T>({ logs, accessorKey, className, ...props }: IWuActivityLogProps<T>) => React.JSX.Element;
|
|
18
|
+
export default WuActivityLog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,5 +9,6 @@ export interface IWuContentEditorProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
9
9
|
classNames?: Record<string, string>;
|
|
10
10
|
customToolbarChildren?: React.ReactNode;
|
|
11
11
|
toolbarItems?: IToolbarExtensionKey[];
|
|
12
|
+
hideToolbar?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const WuContentEditor: React.FC<IWuContentEditorProps>;
|
|
@@ -5,4 +5,8 @@ export interface IWuTableRowSelection<T> {
|
|
|
5
5
|
onRowSelect: React.Dispatch<React.SetStateAction<T[]>>;
|
|
6
6
|
rowUniqueKey: string;
|
|
7
7
|
size?: number;
|
|
8
|
+
/** Function to determine if a row should be disabled for selection */
|
|
9
|
+
isRowDisabled?: (row: T) => boolean;
|
|
10
|
+
/** Whether to hide the select-all checkbox in the header */
|
|
11
|
+
hideSelectAll?: boolean;
|
|
8
12
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Table } from '@tanstack/react-table';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
export declare const WuTableBody: <T>({ table, size, NoDataContent, isLoading, CustomLoader, }: {
|
|
3
|
+
export declare const WuTableBody: <T>({ table, size, NoDataContent, isLoading, CustomLoader, isRowDisabled, }: {
|
|
4
4
|
table: Table<T>;
|
|
5
5
|
size?: "compact" | "default";
|
|
6
6
|
NoDataContent?: React.ReactNode;
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
CustomLoader?: React.ReactNode;
|
|
9
|
+
isRowDisabled?: (row: T) => boolean;
|
|
9
10
|
}) => React.JSX.Element;
|