@pnkx-lib/ui 1.6.4 → 1.6.6
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 +36 -35
- package/types/ui.d.ts +23 -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 as AnchorProps_2 } 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';
|
@@ -22,8 +22,8 @@ import { Control } from 'react-hook-form';
|
|
22
22
|
import { ControllerFieldState } from 'react-hook-form';
|
23
23
|
import { ControllerRenderProps } from 'react-hook-form';
|
24
24
|
import { Dayjs } from 'dayjs';
|
25
|
-
import { default as default_2 } from '
|
26
|
-
import { default as default_3 } from '
|
25
|
+
import { default as default_2 } from 'react';
|
26
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
27
27
|
import { DefaultOptionType } from 'antd/es/cascader';
|
28
28
|
import { DefaultValues } from 'react-hook-form';
|
29
29
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -103,7 +103,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
103
103
|
export declare type AlertProps = AlertProps_2;
|
104
104
|
|
105
105
|
export declare const Anchor: typeof Anchor_2 & {
|
106
|
-
Link: typeof
|
106
|
+
Link: typeof default_3;
|
107
107
|
};
|
108
108
|
|
109
109
|
export declare interface AnchorProps extends AnchorProps_2 {
|
@@ -114,18 +114,19 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
114
114
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
115
115
|
|
116
116
|
export declare interface AppfixProps extends AffixProps {
|
117
|
-
children:
|
117
|
+
children: default_2.ReactNode;
|
118
118
|
}
|
119
119
|
|
120
120
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
121
121
|
|
122
122
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
123
123
|
|
124
|
-
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
124
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
125
125
|
|
126
126
|
export declare interface BadgeProps extends BadgeProps_2 {
|
127
127
|
type?: "error" | "info" | "success" | "warning";
|
128
128
|
children?: React.ReactNode;
|
129
|
+
customColor?: string;
|
129
130
|
}
|
130
131
|
|
131
132
|
declare type BaseProps = {
|
@@ -217,7 +218,7 @@ export declare interface BulkActionProps {
|
|
217
218
|
handleLock?: () => void;
|
218
219
|
}
|
219
220
|
|
220
|
-
export declare const Button:
|
221
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
221
222
|
|
222
223
|
export declare type ButtonProps = ButtonProps_2;
|
223
224
|
|
@@ -272,15 +273,15 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
272
273
|
handleSubmit?: () => void;
|
273
274
|
}
|
274
275
|
|
275
|
-
export declare const Container:
|
276
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
276
277
|
|
277
278
|
export declare interface ContainerProps {
|
278
|
-
children:
|
279
|
+
children: default_2.ReactNode;
|
279
280
|
size?: TailwindMaxWidth;
|
280
281
|
className?: string;
|
281
282
|
}
|
282
283
|
|
283
|
-
declare type CustomInputTypeAttribute =
|
284
|
+
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
284
285
|
|
285
286
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
286
287
|
field?: ControllerRenderProps<any, any>;
|
@@ -294,7 +295,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
294
295
|
label?: string;
|
295
296
|
maxDate?: Date;
|
296
297
|
showTimeSelect?: boolean;
|
297
|
-
customOnChange?: (date: any, event:
|
298
|
+
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
298
299
|
customValue?: Date | null;
|
299
300
|
size?: TSize;
|
300
301
|
}
|
@@ -330,7 +331,7 @@ export declare const Empty: React.FC<EmptyProps>;
|
|
330
331
|
|
331
332
|
export declare type EmptyProps = EmptyProps_2;
|
332
333
|
|
333
|
-
export declare const ErrorMessage:
|
334
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
334
335
|
|
335
336
|
export declare interface ErrorMessageProps {
|
336
337
|
errorMessage?: string;
|
@@ -373,8 +374,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
373
374
|
customStyleInput?: string;
|
374
375
|
type?: CustomInputTypeAttribute;
|
375
376
|
afterOnChange?: (value: number | string | null) => void;
|
376
|
-
iconStartInput?:
|
377
|
-
iconEndInput?:
|
377
|
+
iconStartInput?: default_2.ReactNode;
|
378
|
+
iconEndInput?: default_2.ReactNode;
|
378
379
|
allowNegative?: boolean;
|
379
380
|
decimalScale?: number;
|
380
381
|
prefix?: string;
|
@@ -394,12 +395,12 @@ export declare interface LabelProps {
|
|
394
395
|
required?: boolean;
|
395
396
|
}
|
396
397
|
|
397
|
-
export declare const Layout:
|
398
|
-
Header:
|
399
|
-
Footer:
|
400
|
-
Content:
|
401
|
-
Sider:
|
402
|
-
_InternalSiderContext:
|
398
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
399
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
400
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
401
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
402
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
403
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
403
404
|
};
|
404
405
|
|
405
406
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -427,11 +428,11 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
427
428
|
multiple: true;
|
428
429
|
};
|
429
430
|
|
430
|
-
export declare type OptionalArgsMessage = Partial<
|
431
|
-
type?:
|
431
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
432
|
+
type?: ArgsProps_2["type"];
|
432
433
|
};
|
433
434
|
|
434
|
-
export declare type OptionalArgsToast = Partial<
|
435
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
435
436
|
message?: React.ReactNode;
|
436
437
|
};
|
437
438
|
|
@@ -553,7 +554,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
553
554
|
setValue?: UseFormSetValue<T>;
|
554
555
|
handleSubmit?: FormEventHandler<any>;
|
555
556
|
reset?: UseFormReset<T>;
|
556
|
-
}) =>
|
557
|
+
}) => default_2.ReactNode;
|
557
558
|
onReset?: () => void;
|
558
559
|
classNamesContainer?: string;
|
559
560
|
classNameWrapperForm?: string;
|
@@ -655,8 +656,8 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
655
656
|
|
656
657
|
declare type TabItem = {
|
657
658
|
key: string;
|
658
|
-
label:
|
659
|
-
children:
|
659
|
+
label: default_2.ReactNode;
|
660
|
+
children: default_2.ReactNode;
|
660
661
|
disabled?: boolean;
|
661
662
|
};
|
662
663
|
|
@@ -677,8 +678,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
677
678
|
onChangePage: (page: number) => void;
|
678
679
|
onChangePageSize: (size: number) => void;
|
679
680
|
onSort?: (sortField: string | number | symbol) => void;
|
680
|
-
rowsSelected?:
|
681
|
-
onSelect: (newSelectedRowKeys:
|
681
|
+
rowsSelected?: default_2.Key[];
|
682
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
682
683
|
onRowClick?: (record: T) => void;
|
683
684
|
rowKey?: string | ((record: T) => string);
|
684
685
|
className?: string;
|
@@ -686,7 +687,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
686
687
|
onSave?: (data: T) => void;
|
687
688
|
}
|
688
689
|
|
689
|
-
export declare const Tabs:
|
690
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
690
691
|
|
691
692
|
export declare type TabsProps = TabsProps_2 & {
|
692
693
|
items: TabItem[];
|
@@ -732,7 +733,7 @@ export declare interface TinyProps extends IAllProps {
|
|
732
733
|
text_patterns?: any;
|
733
734
|
}
|
734
735
|
|
735
|
-
export declare const Tooltip:
|
736
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
736
737
|
|
737
738
|
export declare type TooltipProps = TooltipProps_2;
|
738
739
|
|
@@ -776,13 +777,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
776
777
|
|
777
778
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
778
779
|
filters: InitialFiltersSearch<T>;
|
779
|
-
rowsSelected:
|
780
|
-
setRowsSelected:
|
781
|
-
setFilters:
|
780
|
+
rowsSelected: default_2.Key[];
|
781
|
+
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
782
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
782
783
|
goToPage: (PageIndex: number) => void;
|
783
784
|
changeRowlimit: (value: number) => void;
|
784
785
|
resetToInitialFilters: () => void;
|
785
|
-
handleCheckBox: (newSelectedRowKeys:
|
786
|
+
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
786
787
|
handleChangePage: (nextPage: number) => void;
|
787
788
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
788
789
|
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
package/types/ui.d.ts
CHANGED
@@ -16,8 +16,8 @@ import { ColorPickerProps } from 'antd';
|
|
16
16
|
import { ColProps as ColProps_2 } from 'antd';
|
17
17
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
18
18
|
import { Control } from 'react-hook-form';
|
19
|
-
import { default as default_2 } from '
|
20
|
-
import { default as default_3 } from '
|
19
|
+
import { default as default_2 } from 'react';
|
20
|
+
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
21
21
|
import { DefaultOptionType } from 'antd/es/cascader';
|
22
22
|
import { DefaultValues } from 'react-hook-form';
|
23
23
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -84,7 +84,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
84
84
|
export declare type AlertProps = AlertProps_2;
|
85
85
|
|
86
86
|
export declare const Anchor: typeof Anchor_2 & {
|
87
|
-
Link: typeof
|
87
|
+
Link: typeof default_3;
|
88
88
|
};
|
89
89
|
|
90
90
|
export declare interface AnchorProps extends AnchorProps_2 {
|
@@ -95,18 +95,19 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
95
95
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
96
96
|
|
97
97
|
export declare interface AppfixProps extends AffixProps {
|
98
|
-
children:
|
98
|
+
children: default_2.ReactNode;
|
99
99
|
}
|
100
100
|
|
101
101
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
102
102
|
|
103
103
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
104
104
|
|
105
|
-
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
105
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
106
106
|
|
107
107
|
export declare interface BadgeProps extends BadgeProps_2 {
|
108
108
|
type?: "error" | "info" | "success" | "warning";
|
109
109
|
children?: React.ReactNode;
|
110
|
+
customColor?: string;
|
110
111
|
}
|
111
112
|
|
112
113
|
declare type BaseProps = {
|
@@ -198,7 +199,7 @@ export declare interface BulkActionProps {
|
|
198
199
|
handleLock?: () => void;
|
199
200
|
}
|
200
201
|
|
201
|
-
export declare const Button:
|
202
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
202
203
|
|
203
204
|
export declare type ButtonProps = ButtonProps_2;
|
204
205
|
|
@@ -239,10 +240,10 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
239
240
|
handleSubmit?: () => void;
|
240
241
|
}
|
241
242
|
|
242
|
-
export declare const Container:
|
243
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
243
244
|
|
244
245
|
export declare interface ContainerProps {
|
245
|
-
children:
|
246
|
+
children: default_2.ReactNode;
|
246
247
|
size?: TailwindMaxWidth;
|
247
248
|
className?: string;
|
248
249
|
}
|
@@ -276,7 +277,7 @@ export declare const Empty: React.FC<EmptyProps>;
|
|
276
277
|
|
277
278
|
export declare type EmptyProps = EmptyProps_2;
|
278
279
|
|
279
|
-
export declare const ErrorMessage:
|
280
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
280
281
|
|
281
282
|
export declare interface ErrorMessageProps {
|
282
283
|
errorMessage?: string;
|
@@ -321,12 +322,12 @@ export declare interface LabelProps {
|
|
321
322
|
required?: boolean;
|
322
323
|
}
|
323
324
|
|
324
|
-
export declare const Layout:
|
325
|
-
Header:
|
326
|
-
Footer:
|
327
|
-
Content:
|
328
|
-
Sider:
|
329
|
-
_InternalSiderContext:
|
325
|
+
export declare const Layout: default_2.FC<LayoutProps> & {
|
326
|
+
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
327
|
+
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
328
|
+
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
329
|
+
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
330
|
+
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
330
331
|
};
|
331
332
|
|
332
333
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -420,7 +421,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
420
421
|
setValue?: UseFormSetValue<T>;
|
421
422
|
handleSubmit?: FormEventHandler<any>;
|
422
423
|
reset?: UseFormReset<T>;
|
423
|
-
}) =>
|
424
|
+
}) => default_2.ReactNode;
|
424
425
|
onReset?: () => void;
|
425
426
|
classNamesContainer?: string;
|
426
427
|
classNameWrapperForm?: string;
|
@@ -500,8 +501,8 @@ export declare interface SubMenuProps extends SubMenuProps_2 {
|
|
500
501
|
|
501
502
|
declare type TabItem = {
|
502
503
|
key: string;
|
503
|
-
label:
|
504
|
-
children:
|
504
|
+
label: default_2.ReactNode;
|
505
|
+
children: default_2.ReactNode;
|
505
506
|
disabled?: boolean;
|
506
507
|
};
|
507
508
|
|
@@ -522,8 +523,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
522
523
|
onChangePage: (page: number) => void;
|
523
524
|
onChangePageSize: (size: number) => void;
|
524
525
|
onSort?: (sortField: string | number | symbol) => void;
|
525
|
-
rowsSelected?:
|
526
|
-
onSelect: (newSelectedRowKeys:
|
526
|
+
rowsSelected?: default_2.Key[];
|
527
|
+
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
527
528
|
onRowClick?: (record: T) => void;
|
528
529
|
rowKey?: string | ((record: T) => string);
|
529
530
|
className?: string;
|
@@ -531,7 +532,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
531
532
|
onSave?: (data: T) => void;
|
532
533
|
}
|
533
534
|
|
534
|
-
export declare const Tabs:
|
535
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
535
536
|
|
536
537
|
export declare type TabsProps = TabsProps_2 & {
|
537
538
|
items: TabItem[];
|
@@ -550,7 +551,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
550
551
|
|
551
552
|
export declare type TimelineProps = TimelineProps_2;
|
552
553
|
|
553
|
-
export declare const Tooltip:
|
554
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
554
555
|
|
555
556
|
export declare type TooltipProps = TooltipProps_2;
|
556
557
|
|