@npm-questionpro/wick-ui-lib 1.10.0 → 1.12.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/drilldown/WuDrilldown.d.ts +13 -0
- package/dist/src/components/drilldown/WuDrilldown.test.d.ts +1 -0
- package/dist/src/components/drilldown/index.d.ts +2 -0
- package/dist/src/components/stepper/WuStepper.d.ts +8 -5
- package/dist/src/components/table/components/table/WuTable.d.ts +6 -9
- package/dist/src/components/table/hooks/useTableCore.d.ts +14 -0
- package/dist/src/components/table/utils/data.d.ts +1 -0
- package/dist/src/components/table/utils/variantClass.d.ts +3 -0
- package/dist/src/components/tooltip/WuTooltip.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +5231 -3504
- package/dist/wick-ui-lib/umd/index.js +7 -4
- package/package.json +10 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IWuDrilldownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
header?: (ref: React.RefObject<HTMLDivElement | null>) => React.JSX.Element;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
contentOffset?: number | string;
|
|
7
|
+
contentOffsetFactor?: number;
|
|
8
|
+
titles?: string[];
|
|
9
|
+
contentAnimation?: 'wu-fade-zoom' | 'wu-scale-left' | 'wu-slide-up-down' | 'wu-slide-left-right' | 'wu-scale-fade';
|
|
10
|
+
headerAnimation?: 'wu-scale-left' | 'wu-slide-up-down' | 'wu-slide-left-right';
|
|
11
|
+
dir?: 'ltr' | 'rtl';
|
|
12
|
+
}
|
|
13
|
+
export declare const WuDrilldown: React.ForwardRefExoticComponent<IWuDrilldownProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IWuStepperProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
-
onChange?: (
|
|
3
|
+
onChange?: (value: number) => void;
|
|
4
4
|
readonly?: boolean;
|
|
5
|
-
resetInvalidValueOnBlur?: boolean;
|
|
6
5
|
invalid?: boolean;
|
|
7
|
-
|
|
6
|
+
Label?: React.ReactNode;
|
|
8
7
|
defaultValue?: number;
|
|
9
8
|
dir?: 'ltr' | 'rtl';
|
|
9
|
+
step?: number;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
10
12
|
labelPosition?: 'left' | 'top';
|
|
13
|
+
resetInvalidValueOnBlur?: boolean;
|
|
11
14
|
}
|
|
12
|
-
export declare const WuStepper: React.
|
|
15
|
+
export declare const WuStepper: React.FC<IWuStepperProps>;
|
|
@@ -11,24 +11,21 @@ export interface IWuTableProps<T> extends React.TableHTMLAttributes<HTMLTableEle
|
|
|
11
11
|
enabled?: boolean;
|
|
12
12
|
initial?: ColumnSort[];
|
|
13
13
|
};
|
|
14
|
+
isLoading?: boolean;
|
|
14
15
|
filterText?: string;
|
|
15
16
|
pagination?: {
|
|
16
17
|
pageIndex: number;
|
|
17
18
|
pageSize: number;
|
|
18
19
|
};
|
|
20
|
+
stickyHeader?: boolean;
|
|
21
|
+
HeaderAction?: React.ReactNode;
|
|
22
|
+
CustomLoader?: React.ReactNode;
|
|
23
|
+
NoDataContent?: React.ReactNode;
|
|
19
24
|
rowSelection?: {
|
|
20
25
|
isEnabled: boolean;
|
|
21
26
|
selectedRows: T[];
|
|
22
27
|
onRowSelect: React.Dispatch<React.SetStateAction<T[]>>;
|
|
23
28
|
rowUniqueKey: string;
|
|
24
29
|
};
|
|
25
|
-
HeaderAction?: React.ReactNode;
|
|
26
|
-
NoDataContent?: React.ReactNode;
|
|
27
|
-
CustomLoader?: React.ReactNode;
|
|
28
|
-
isLoading?: boolean;
|
|
29
|
-
stickyHeader?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export declare const WuTable: {
|
|
32
|
-
<T>({ data, columns, caption, variant, sort, filterText, size, pagination, rowSelection, HeaderAction, NoDataContent, CustomLoader, isLoading, stickyHeader, ...rest }: IWuTableProps<T>): React.JSX.Element;
|
|
33
|
-
displayName: string;
|
|
34
|
-
};
|
|
31
|
+
export declare const WuTable: <T>({ data, columns, variant, size, sort, filterText, pagination, stickyHeader, HeaderAction, CustomLoader, NoDataContent, isLoading, caption, rowSelection, ...rest }: IWuTableProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IWuTableColumnDef } from '../types/IWuTableColumnDef';
|
|
2
|
+
export declare function useWuTableCore<T>({ data, columns, rowSelection, }: {
|
|
3
|
+
data: T[];
|
|
4
|
+
columns: IWuTableColumnDef<T>[];
|
|
5
|
+
rowSelection?: {
|
|
6
|
+
isEnabled: boolean;
|
|
7
|
+
selectedRows: T[];
|
|
8
|
+
onRowSelect: React.Dispatch<React.SetStateAction<T[]>>;
|
|
9
|
+
rowUniqueKey: string;
|
|
10
|
+
};
|
|
11
|
+
}): {
|
|
12
|
+
finalColumns: IWuTableColumnDef<T>[];
|
|
13
|
+
rowSelectionState: Record<number, boolean>;
|
|
14
|
+
};
|
|
@@ -7,5 +7,7 @@ export interface IWuTooltipProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
dir?: 'rtl' | 'ltr';
|
|
9
9
|
showArrow?: boolean;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
12
|
}
|
|
11
13
|
export declare const WuTooltip: React.ForwardRefExoticComponent<IWuTooltipProps & React.RefAttributes<HTMLSpanElement>>;
|
package/dist/src/index.d.ts
CHANGED