@pnkx-lib/ui 1.0.0 → 1.0.2
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/chunks/AntdIcon-DV7aA2xc.js +2609 -0
- package/dist/chunks/{Badge-D0BZUAPX.js → Badge-BNUFNpvB.js} +8 -8
- package/dist/chunks/{Switch-DzSE8Syl.js → Switch-B0z-9IsF.js} +3 -21
- package/dist/fields/index.js +1 -1
- package/dist/index.js +21 -893
- package/dist/types/index.d.ts +3 -27
- package/dist/types/ui.d.ts +3 -3
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/AntdIcon-BppsuyXF.js +0 -2260
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ArgsProps } from 'antd/es/notification';
|
2
1
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
3
2
|
import { ButtonProps as ButtonProps_2 } from 'antd';
|
4
3
|
import { CascaderProps } from 'antd/es/cascader';
|
@@ -16,7 +15,6 @@ import { IAllProps } from '@tinymce/tinymce-react';
|
|
16
15
|
import { InputProps } from 'antd';
|
17
16
|
import { JSX } from 'react/jsx-runtime';
|
18
17
|
import { ModalProps } from 'antd';
|
19
|
-
import { PaginationFilters } from '../../../../../../../../../../src/interface/common';
|
20
18
|
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
21
19
|
import { PopoverProps as PopoverProps_2 } from 'antd';
|
22
20
|
import { RadioGroupProps } from 'antd';
|
@@ -53,8 +51,8 @@ declare type BaseProps = {
|
|
53
51
|
};
|
54
52
|
|
55
53
|
declare type BaseProps_2 = {
|
56
|
-
|
57
|
-
|
54
|
+
containerClassName?: string;
|
55
|
+
popoverClassName?: string;
|
58
56
|
};
|
59
57
|
|
60
58
|
export declare const Button: default_2.FC<ButtonProps>;
|
@@ -117,8 +115,6 @@ export declare interface ErrorMessageProps {
|
|
117
115
|
isSubmitted?: boolean;
|
118
116
|
}
|
119
117
|
|
120
|
-
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
121
|
-
|
122
118
|
export declare const Input: (props: Props) => JSX.Element;
|
123
119
|
|
124
120
|
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
@@ -134,10 +130,6 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
134
130
|
multiple: true;
|
135
131
|
};
|
136
132
|
|
137
|
-
export declare type OptionalArgs = Partial<ArgsProps> & {
|
138
|
-
message?: React.ReactNode;
|
139
|
-
};
|
140
|
-
|
141
133
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
142
134
|
render(): JSX.Element;
|
143
135
|
}
|
@@ -150,7 +142,7 @@ export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>
|
|
150
142
|
|
151
143
|
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
152
144
|
|
153
|
-
declare type PopoverProps = PopoverProps_2;
|
145
|
+
export declare type PopoverProps = PopoverProps_2;
|
154
146
|
|
155
147
|
export declare type PopoverPropsUnion = BaseProps_2 & PopoverProps;
|
156
148
|
|
@@ -328,20 +320,4 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
328
320
|
afterOnChange?: (fileList: UploadFile[]) => void;
|
329
321
|
}
|
330
322
|
|
331
|
-
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
332
|
-
filters: InitialFiltersSearch<T>;
|
333
|
-
rowsSelected: default_2.Key[];
|
334
|
-
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
335
|
-
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
336
|
-
goToPage: (PageIndex: number) => void;
|
337
|
-
changeRowlimit: (value: number) => void;
|
338
|
-
resetToInitialFilters: () => void;
|
339
|
-
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
340
|
-
handleChangePage: (nextPage: number) => void;
|
341
|
-
handleRequestSort: (sortField: string | number | symbol) => void;
|
342
|
-
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
343
|
-
};
|
344
|
-
|
345
|
-
export declare const useToast: (defaultProps?: OptionalArgs) => () => void;
|
346
|
-
|
347
323
|
export { }
|
package/dist/types/ui.d.ts
CHANGED
@@ -35,8 +35,8 @@ declare type BaseProps = {
|
|
35
35
|
};
|
36
36
|
|
37
37
|
declare type BaseProps_2 = {
|
38
|
-
|
39
|
-
|
38
|
+
containerClassName?: string;
|
39
|
+
popoverClassName?: string;
|
40
40
|
};
|
41
41
|
|
42
42
|
export declare const Button: default_2.FC<ButtonProps>;
|
@@ -83,7 +83,7 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
83
83
|
|
84
84
|
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
85
85
|
|
86
|
-
declare type PopoverProps = PopoverProps_2;
|
86
|
+
export declare type PopoverProps = PopoverProps_2;
|
87
87
|
|
88
88
|
export declare type PopoverPropsUnion = BaseProps_2 & PopoverProps;
|
89
89
|
|
package/dist/ui/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-
|
2
|
-
import { E as c, L as g, T as m } from "../chunks/AntdIcon-
|
1
|
+
import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-BNUFNpvB.js";
|
2
|
+
import { E as c, L as g, T as m } from "../chunks/AntdIcon-DV7aA2xc.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
5
5
|
o as Button,
|