@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.
@@ -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,2 @@
1
+ export { WuDrilldown } from './WuDrilldown';
2
+ export type { IWuDrilldownProps } from './WuDrilldown';
@@ -1,12 +1,15 @@
1
- import { default as React } from 'react';
1
+ import * as React from 'react';
2
2
  export interface IWuStepperProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
- onChange?: (e: number) => void;
3
+ onChange?: (value: number) => void;
4
4
  readonly?: boolean;
5
- resetInvalidValueOnBlur?: boolean;
6
5
  invalid?: boolean;
7
- label?: string;
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.ForwardRefExoticComponent<IWuStepperProps & React.RefAttributes<HTMLInputElement>>;
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
+ };
@@ -1,6 +1,7 @@
1
1
  export type IMockData = {
2
2
  id: number;
3
3
  name: string;
4
+ email: string;
4
5
  age: number;
5
6
  occupation: string;
6
7
  catchphrase: string;
@@ -0,0 +1,3 @@
1
+ export declare const variantClasses: (props?: ({
2
+ variant?: "striped" | "unstyled" | "bordered" | null | undefined;
3
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
@@ -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>>;
@@ -43,3 +43,4 @@ export * from './components/toggle';
43
43
  export * from './components/tooltip';
44
44
  export * from './components/typography';
45
45
  export * from './components/virtualScroll';
46
+ export * from './components/drilldown';