@pnkx-lib/ui 1.9.17 → 1.9.18
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/package.json +1 -1
- package/types/hooks.d.ts +5 -5
- package/types/index.d.ts +35 -35
- package/types/ui.d.ts +22 -22
package/package.json
CHANGED
package/types/hooks.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ArgsProps } from 'antd/
|
2
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
1
|
+
import { ArgsProps } from 'antd/es/notification';
|
2
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
|
3
3
|
import { default as default_2 } from 'react';
|
4
4
|
|
5
5
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
6
6
|
|
7
|
-
export declare type OptionalArgsMessage = Partial<
|
8
|
-
type?:
|
7
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
8
|
+
type?: ArgsProps_2["type"];
|
9
9
|
};
|
10
10
|
|
11
|
-
export declare type OptionalArgsToast = Partial<
|
11
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
12
12
|
message?: React.ReactNode;
|
13
13
|
};
|
14
14
|
|
package/types/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { AffixProps } from 'antd';
|
|
2
2
|
import { AlertProps as AlertProps_2 } from 'antd';
|
3
3
|
import { Anchor as Anchor_2 } from 'antd';
|
4
4
|
import { AnchorProps } from 'antd';
|
5
|
-
import { ArgsProps } from 'antd/
|
6
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
5
|
+
import { ArgsProps } from 'antd/es/notification';
|
6
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
|
7
7
|
import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
|
8
8
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
9
9
|
import { BasicProps } from 'antd/es/layout/layout';
|
@@ -23,8 +23,8 @@ import { Control } from 'react-hook-form';
|
|
23
23
|
import { ControllerFieldState } from 'react-hook-form';
|
24
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
25
25
|
import { Dayjs } from 'dayjs';
|
26
|
-
import { default as default_2 } from '
|
27
|
-
import { default as default_3 } from '
|
26
|
+
import { default as default_2 } from 'react';
|
27
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
28
28
|
import { DefaultOptionType } from 'antd/es/cascader';
|
29
29
|
import { DefaultValues } from 'react-hook-form';
|
30
30
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -105,7 +105,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
105
105
|
export declare type AlertProps = AlertProps_2;
|
106
106
|
|
107
107
|
export declare const Anchor: typeof Anchor_2 & {
|
108
|
-
Link: typeof
|
108
|
+
Link: typeof default_3;
|
109
109
|
};
|
110
110
|
|
111
111
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
@@ -113,7 +113,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
113
113
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
114
114
|
|
115
115
|
export declare interface AppfixProps extends AffixProps {
|
116
|
-
children:
|
116
|
+
children: default_2.ReactNode;
|
117
117
|
}
|
118
118
|
|
119
119
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
@@ -218,7 +218,7 @@ export declare interface BulkActionProps {
|
|
218
218
|
status?: number;
|
219
219
|
}
|
220
220
|
|
221
|
-
export declare const Button:
|
221
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
222
222
|
|
223
223
|
export declare type ButtonProps = ButtonProps_2;
|
224
224
|
|
@@ -278,15 +278,15 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
278
278
|
|
279
279
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
280
280
|
|
281
|
-
export declare const Container:
|
281
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
282
282
|
|
283
283
|
export declare interface ContainerProps {
|
284
|
-
children:
|
284
|
+
children: default_2.ReactNode;
|
285
285
|
size?: TailwindMaxWidth;
|
286
286
|
className?: string;
|
287
287
|
}
|
288
288
|
|
289
|
-
declare type CustomInputTypeAttribute =
|
289
|
+
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
290
290
|
|
291
291
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
292
292
|
field?: ControllerRenderProps<any, any>;
|
@@ -300,7 +300,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
300
300
|
label?: string;
|
301
301
|
maxDate?: Date;
|
302
302
|
showTimeSelect?: boolean;
|
303
|
-
customOnChange?: (date: any, event:
|
303
|
+
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
304
304
|
customValue?: Date | null;
|
305
305
|
size?: TSize;
|
306
306
|
}
|
@@ -343,7 +343,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
343
343
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
344
344
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
345
345
|
handleReload: () => void;
|
346
|
-
render():
|
346
|
+
render(): default_2.ReactNode;
|
347
347
|
}
|
348
348
|
|
349
349
|
export declare interface ErrorBoundaryProps {
|
@@ -356,7 +356,7 @@ export declare interface ErrorBoundaryState {
|
|
356
356
|
errorInfo: ErrorInfo | null;
|
357
357
|
}
|
358
358
|
|
359
|
-
export declare const ErrorMessage:
|
359
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
360
360
|
|
361
361
|
export declare interface ErrorMessageProps {
|
362
362
|
errorMessage?: string;
|
@@ -399,8 +399,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
399
399
|
customStyleInput?: string;
|
400
400
|
type?: CustomInputTypeAttribute;
|
401
401
|
afterOnChange?: (value: number | string | null) => void;
|
402
|
-
iconStartInput?:
|
403
|
-
iconEndInput?:
|
402
|
+
iconStartInput?: default_2.ReactNode;
|
403
|
+
iconEndInput?: default_2.ReactNode;
|
404
404
|
allowNegative?: boolean;
|
405
405
|
decimalScale?: number;
|
406
406
|
prefix?: string;
|
@@ -420,12 +420,12 @@ export declare interface LabelProps {
|
|
420
420
|
required?: boolean;
|
421
421
|
}
|
422
422
|
|
423
|
-
export declare const Layout:
|
424
|
-
Header:
|
425
|
-
Footer:
|
426
|
-
Content:
|
427
|
-
Sider:
|
428
|
-
_InternalSiderContext:
|
423
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
424
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
425
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
426
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
427
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
428
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
429
429
|
};
|
430
430
|
|
431
431
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -451,11 +451,11 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
451
451
|
multiple: true;
|
452
452
|
};
|
453
453
|
|
454
|
-
export declare type OptionalArgsMessage = Partial<
|
455
|
-
type?:
|
454
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
455
|
+
type?: ArgsProps_2["type"];
|
456
456
|
};
|
457
457
|
|
458
|
-
export declare type OptionalArgsToast = Partial<
|
458
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
459
459
|
message?: React.ReactNode;
|
460
460
|
};
|
461
461
|
|
@@ -573,7 +573,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
573
573
|
setValue?: UseFormSetValue<T>;
|
574
574
|
handleSubmit?: FormEventHandler<any>;
|
575
575
|
reset?: UseFormReset<T>;
|
576
|
-
}) =>
|
576
|
+
}) => default_2.ReactNode;
|
577
577
|
onReset?: () => void;
|
578
578
|
classNamesContainer?: string;
|
579
579
|
classNameWrapperForm?: string;
|
@@ -667,8 +667,8 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
667
667
|
|
668
668
|
declare type TabItem = {
|
669
669
|
key: string;
|
670
|
-
label:
|
671
|
-
children:
|
670
|
+
label: default_2.ReactNode;
|
671
|
+
children: default_2.ReactNode;
|
672
672
|
disabled?: boolean;
|
673
673
|
};
|
674
674
|
|
@@ -689,8 +689,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
689
689
|
onChangePage: (page: number) => void;
|
690
690
|
onChangePageSize: (size: number) => void;
|
691
691
|
onSort?: (sortField: string | number | symbol) => void;
|
692
|
-
rowsSelected?:
|
693
|
-
onSelect: (newSelectedRowKeys:
|
692
|
+
rowsSelected?: default_2.Key[];
|
693
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
694
694
|
onRowClick?: (record: T) => void;
|
695
695
|
rowKey?: string | ((record: T) => string);
|
696
696
|
className?: string;
|
@@ -701,7 +701,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
701
701
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
702
702
|
}
|
703
703
|
|
704
|
-
export declare const Tabs:
|
704
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
705
705
|
|
706
706
|
export declare type TabsProps = TabsProps_2 & {
|
707
707
|
items: TabItem[];
|
@@ -747,7 +747,7 @@ export declare interface TinyProps extends IAllProps {
|
|
747
747
|
text_patterns?: any;
|
748
748
|
}
|
749
749
|
|
750
|
-
export declare const Tooltip:
|
750
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
751
751
|
|
752
752
|
export declare type TooltipProps = TooltipProps_2;
|
753
753
|
|
@@ -791,13 +791,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
791
791
|
|
792
792
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
793
793
|
filters: InitialFiltersSearch<T>;
|
794
|
-
rowsSelected:
|
795
|
-
setRowsSelected:
|
796
|
-
setFilters:
|
794
|
+
rowsSelected: default_2.Key[];
|
795
|
+
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
796
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
797
797
|
goToPage: (PageIndex: number) => void;
|
798
798
|
changeRowlimit: (value: number) => void;
|
799
799
|
resetToInitialFilters: () => void;
|
800
|
-
handleCheckBox: (newSelectedRowKeys:
|
800
|
+
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
801
801
|
handleChangePage: (nextPage: number) => void;
|
802
802
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
803
803
|
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
package/types/ui.d.ts
CHANGED
@@ -17,8 +17,8 @@ import { ColProps as ColProps_2 } from 'antd';
|
|
17
17
|
import { ColSize } from 'antd/es/grid';
|
18
18
|
import { Component } from 'react';
|
19
19
|
import { Control } from 'react-hook-form';
|
20
|
-
import { default as default_2 } from '
|
21
|
-
import { default as default_3 } from '
|
20
|
+
import { default as default_2 } from 'react';
|
21
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
22
22
|
import { DefaultOptionType } from 'antd/es/cascader';
|
23
23
|
import { DefaultValues } from 'react-hook-form';
|
24
24
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -86,7 +86,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
86
86
|
export declare type AlertProps = AlertProps_2;
|
87
87
|
|
88
88
|
export declare const Anchor: typeof Anchor_2 & {
|
89
|
-
Link: typeof
|
89
|
+
Link: typeof default_3;
|
90
90
|
};
|
91
91
|
|
92
92
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
@@ -94,7 +94,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
94
94
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
95
95
|
|
96
96
|
export declare interface AppfixProps extends AffixProps {
|
97
|
-
children:
|
97
|
+
children: default_2.ReactNode;
|
98
98
|
}
|
99
99
|
|
100
100
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
@@ -199,7 +199,7 @@ export declare interface BulkActionProps {
|
|
199
199
|
status?: number;
|
200
200
|
}
|
201
201
|
|
202
|
-
export declare const Button:
|
202
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
203
203
|
|
204
204
|
export declare type ButtonProps = ButtonProps_2;
|
205
205
|
|
@@ -245,10 +245,10 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
245
245
|
|
246
246
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
247
247
|
|
248
|
-
export declare const Container:
|
248
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
249
249
|
|
250
250
|
export declare interface ContainerProps {
|
251
|
-
children:
|
251
|
+
children: default_2.ReactNode;
|
252
252
|
size?: TailwindMaxWidth;
|
253
253
|
className?: string;
|
254
254
|
}
|
@@ -289,7 +289,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
289
289
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
290
290
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
291
291
|
handleReload: () => void;
|
292
|
-
render():
|
292
|
+
render(): default_2.ReactNode;
|
293
293
|
}
|
294
294
|
|
295
295
|
export declare interface ErrorBoundaryProps {
|
@@ -302,7 +302,7 @@ export declare interface ErrorBoundaryState {
|
|
302
302
|
errorInfo: ErrorInfo | null;
|
303
303
|
}
|
304
304
|
|
305
|
-
export declare const ErrorMessage:
|
305
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
306
306
|
|
307
307
|
export declare interface ErrorMessageProps {
|
308
308
|
errorMessage?: string;
|
@@ -347,12 +347,12 @@ export declare interface LabelProps {
|
|
347
347
|
required?: boolean;
|
348
348
|
}
|
349
349
|
|
350
|
-
export declare const Layout:
|
351
|
-
Header:
|
352
|
-
Footer:
|
353
|
-
Content:
|
354
|
-
Sider:
|
355
|
-
_InternalSiderContext:
|
350
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
351
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
352
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
353
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
354
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
355
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
356
356
|
};
|
357
357
|
|
358
358
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -440,7 +440,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
440
440
|
setValue?: UseFormSetValue<T>;
|
441
441
|
handleSubmit?: FormEventHandler<any>;
|
442
442
|
reset?: UseFormReset<T>;
|
443
|
-
}) =>
|
443
|
+
}) => default_2.ReactNode;
|
444
444
|
onReset?: () => void;
|
445
445
|
classNamesContainer?: string;
|
446
446
|
classNameWrapperForm?: string;
|
@@ -512,8 +512,8 @@ export declare type SubMenuProps = SubMenuProps_2;
|
|
512
512
|
|
513
513
|
declare type TabItem = {
|
514
514
|
key: string;
|
515
|
-
label:
|
516
|
-
children:
|
515
|
+
label: default_2.ReactNode;
|
516
|
+
children: default_2.ReactNode;
|
517
517
|
disabled?: boolean;
|
518
518
|
};
|
519
519
|
|
@@ -534,8 +534,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
534
534
|
onChangePage: (page: number) => void;
|
535
535
|
onChangePageSize: (size: number) => void;
|
536
536
|
onSort?: (sortField: string | number | symbol) => void;
|
537
|
-
rowsSelected?:
|
538
|
-
onSelect: (newSelectedRowKeys:
|
537
|
+
rowsSelected?: default_2.Key[];
|
538
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
539
539
|
onRowClick?: (record: T) => void;
|
540
540
|
rowKey?: string | ((record: T) => string);
|
541
541
|
className?: string;
|
@@ -546,7 +546,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
546
546
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
547
547
|
}
|
548
548
|
|
549
|
-
export declare const Tabs:
|
549
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
550
550
|
|
551
551
|
export declare type TabsProps = TabsProps_2 & {
|
552
552
|
items: TabItem[];
|
@@ -565,7 +565,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
565
565
|
|
566
566
|
export declare type TimelineProps = TimelineProps_2;
|
567
567
|
|
568
|
-
export declare const Tooltip:
|
568
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
569
569
|
|
570
570
|
export declare type TooltipProps = TooltipProps_2;
|
571
571
|
|