@pnkx-lib/ui 1.9.21 → 1.9.23
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
|
|
@@ -272,15 +272,15 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
272
272
|
|
273
273
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
274
274
|
|
275
|
-
export declare const Container:
|
275
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
276
276
|
|
277
277
|
export declare interface ContainerProps {
|
278
|
-
children:
|
278
|
+
children: default_2.ReactNode;
|
279
279
|
size?: TailwindMaxWidth;
|
280
280
|
className?: string;
|
281
281
|
}
|
282
282
|
|
283
|
-
declare type CustomInputTypeAttribute =
|
283
|
+
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
284
284
|
|
285
285
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
286
286
|
field?: ControllerRenderProps<any, any>;
|
@@ -294,7 +294,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
294
294
|
label?: string;
|
295
295
|
maxDate?: Date;
|
296
296
|
showTimeSelect?: boolean;
|
297
|
-
customOnChange?: (date: any, event:
|
297
|
+
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
298
298
|
customValue?: Date | null;
|
299
299
|
size?: TSize;
|
300
300
|
}
|
@@ -337,7 +337,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
337
337
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
338
338
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
339
339
|
handleReload: () => void;
|
340
|
-
render():
|
340
|
+
render(): default_2.ReactNode;
|
341
341
|
}
|
342
342
|
|
343
343
|
export declare interface ErrorBoundaryProps {
|
@@ -350,7 +350,7 @@ export declare interface ErrorBoundaryState {
|
|
350
350
|
errorInfo: ErrorInfo | null;
|
351
351
|
}
|
352
352
|
|
353
|
-
export declare const ErrorMessage:
|
353
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
354
354
|
|
355
355
|
export declare interface ErrorMessageProps {
|
356
356
|
errorMessage?: string;
|
@@ -393,8 +393,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
393
393
|
customStyleInput?: string;
|
394
394
|
type?: CustomInputTypeAttribute;
|
395
395
|
afterOnChange?: (value: number | string | null) => void;
|
396
|
-
iconStartInput?:
|
397
|
-
iconEndInput?:
|
396
|
+
iconStartInput?: default_2.ReactNode;
|
397
|
+
iconEndInput?: default_2.ReactNode;
|
398
398
|
allowNegative?: boolean;
|
399
399
|
decimalScale?: number;
|
400
400
|
prefix?: string;
|
@@ -414,12 +414,12 @@ export declare interface LabelProps {
|
|
414
414
|
required?: boolean;
|
415
415
|
}
|
416
416
|
|
417
|
-
export declare const Layout:
|
418
|
-
Header:
|
419
|
-
Footer:
|
420
|
-
Content:
|
421
|
-
Sider:
|
422
|
-
_InternalSiderContext:
|
417
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
418
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
419
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
420
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
421
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
422
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
423
423
|
};
|
424
424
|
|
425
425
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -445,11 +445,11 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
445
445
|
multiple: true;
|
446
446
|
};
|
447
447
|
|
448
|
-
export declare type OptionalArgsMessage = Partial<
|
449
|
-
type?:
|
448
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
449
|
+
type?: ArgsProps_2["type"];
|
450
450
|
};
|
451
451
|
|
452
|
-
export declare type OptionalArgsToast = Partial<
|
452
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
453
453
|
message?: React.ReactNode;
|
454
454
|
};
|
455
455
|
|
@@ -567,7 +567,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
567
567
|
setValue?: UseFormSetValue<T>;
|
568
568
|
handleSubmit?: FormEventHandler<any>;
|
569
569
|
reset?: UseFormReset<T>;
|
570
|
-
}) =>
|
570
|
+
}) => default_2.ReactNode;
|
571
571
|
onReset?: () => void;
|
572
572
|
classNamesContainer?: string;
|
573
573
|
classNameWrapperForm?: string;
|
@@ -661,8 +661,8 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
661
661
|
|
662
662
|
declare type TabItem = {
|
663
663
|
key: string;
|
664
|
-
label:
|
665
|
-
children:
|
664
|
+
label: default_2.ReactNode;
|
665
|
+
children: default_2.ReactNode;
|
666
666
|
disabled?: boolean;
|
667
667
|
};
|
668
668
|
|
@@ -683,8 +683,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
683
683
|
onChangePage: (page: number) => void;
|
684
684
|
onChangePageSize: (size: number) => void;
|
685
685
|
onSort?: (sortField: string | number | symbol) => void;
|
686
|
-
rowsSelected?:
|
687
|
-
onSelect: (newSelectedRowKeys:
|
686
|
+
rowsSelected?: default_2.Key[];
|
687
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
688
688
|
onRowClick?: (record: T) => void;
|
689
689
|
rowKey?: string | ((record: T) => string);
|
690
690
|
className?: string;
|
@@ -695,7 +695,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
695
695
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
696
696
|
}
|
697
697
|
|
698
|
-
export declare const Tabs:
|
698
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
699
699
|
|
700
700
|
export declare type TabsProps = TabsProps_2 & {
|
701
701
|
items: TabItem[];
|
@@ -741,7 +741,7 @@ export declare interface TinyProps extends IAllProps {
|
|
741
741
|
text_patterns?: any;
|
742
742
|
}
|
743
743
|
|
744
|
-
export declare const Tooltip:
|
744
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
745
745
|
|
746
746
|
export declare type TooltipProps = TooltipProps_2;
|
747
747
|
|
@@ -785,13 +785,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
785
785
|
|
786
786
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
787
787
|
filters: InitialFiltersSearch<T>;
|
788
|
-
rowsSelected:
|
789
|
-
setRowsSelected:
|
790
|
-
setFilters:
|
788
|
+
rowsSelected: default_2.Key[];
|
789
|
+
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
790
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
791
791
|
goToPage: (PageIndex: number) => void;
|
792
792
|
changeRowlimit: (value: number) => void;
|
793
793
|
resetToInitialFilters: () => void;
|
794
|
-
handleCheckBox: (newSelectedRowKeys:
|
794
|
+
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
795
795
|
handleChangePage: (nextPage: number) => void;
|
796
796
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
797
797
|
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
|
|
@@ -239,10 +239,10 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
239
239
|
|
240
240
|
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
241
241
|
|
242
|
-
export declare const Container:
|
242
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
243
243
|
|
244
244
|
export declare interface ContainerProps {
|
245
|
-
children:
|
245
|
+
children: default_2.ReactNode;
|
246
246
|
size?: TailwindMaxWidth;
|
247
247
|
className?: string;
|
248
248
|
}
|
@@ -283,7 +283,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
283
283
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
284
284
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
285
285
|
handleReload: () => void;
|
286
|
-
render():
|
286
|
+
render(): default_2.ReactNode;
|
287
287
|
}
|
288
288
|
|
289
289
|
export declare interface ErrorBoundaryProps {
|
@@ -296,7 +296,7 @@ export declare interface ErrorBoundaryState {
|
|
296
296
|
errorInfo: ErrorInfo | null;
|
297
297
|
}
|
298
298
|
|
299
|
-
export declare const ErrorMessage:
|
299
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
300
300
|
|
301
301
|
export declare interface ErrorMessageProps {
|
302
302
|
errorMessage?: string;
|
@@ -341,12 +341,12 @@ export declare interface LabelProps {
|
|
341
341
|
required?: boolean;
|
342
342
|
}
|
343
343
|
|
344
|
-
export declare const Layout:
|
345
|
-
Header:
|
346
|
-
Footer:
|
347
|
-
Content:
|
348
|
-
Sider:
|
349
|
-
_InternalSiderContext:
|
344
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
345
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
346
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
347
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
348
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
349
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
350
350
|
};
|
351
351
|
|
352
352
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -434,7 +434,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
434
434
|
setValue?: UseFormSetValue<T>;
|
435
435
|
handleSubmit?: FormEventHandler<any>;
|
436
436
|
reset?: UseFormReset<T>;
|
437
|
-
}) =>
|
437
|
+
}) => default_2.ReactNode;
|
438
438
|
onReset?: () => void;
|
439
439
|
classNamesContainer?: string;
|
440
440
|
classNameWrapperForm?: string;
|
@@ -506,8 +506,8 @@ export declare type SubMenuProps = SubMenuProps_2;
|
|
506
506
|
|
507
507
|
declare type TabItem = {
|
508
508
|
key: string;
|
509
|
-
label:
|
510
|
-
children:
|
509
|
+
label: default_2.ReactNode;
|
510
|
+
children: default_2.ReactNode;
|
511
511
|
disabled?: boolean;
|
512
512
|
};
|
513
513
|
|
@@ -528,8 +528,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
528
528
|
onChangePage: (page: number) => void;
|
529
529
|
onChangePageSize: (size: number) => void;
|
530
530
|
onSort?: (sortField: string | number | symbol) => void;
|
531
|
-
rowsSelected?:
|
532
|
-
onSelect: (newSelectedRowKeys:
|
531
|
+
rowsSelected?: default_2.Key[];
|
532
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
533
533
|
onRowClick?: (record: T) => void;
|
534
534
|
rowKey?: string | ((record: T) => string);
|
535
535
|
className?: string;
|
@@ -540,7 +540,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
540
540
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
541
541
|
}
|
542
542
|
|
543
|
-
export declare const Tabs:
|
543
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
544
544
|
|
545
545
|
export declare type TabsProps = TabsProps_2 & {
|
546
546
|
items: TabItem[];
|
@@ -559,7 +559,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
559
559
|
|
560
560
|
export declare type TimelineProps = TimelineProps_2;
|
561
561
|
|
562
|
-
export declare const Tooltip:
|
562
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
563
563
|
|
564
564
|
export declare type TooltipProps = TooltipProps_2;
|
565
565
|
|