affiliate-front-shared 1.3.13 → 1.3.15
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/components/upload-files/index.d.ts +13 -0
- package/dist/components/upload-files/style.d.ts +12 -0
- package/dist/index.cjs +334 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +2263 -1930
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadFileProps {
|
|
3
|
+
value?: any[];
|
|
4
|
+
onChange: (fileList: any[]) => void;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
inputDesign?: boolean;
|
|
7
|
+
addFilesService: (formData: FormData) => Promise<any>;
|
|
8
|
+
maxCount?: number;
|
|
9
|
+
showUploadList?: boolean;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare const UploadFiles: React.FC<UploadFileProps>;
|
|
13
|
+
export default UploadFiles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const StyledUploadFile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').UploadProps<any> & {
|
|
2
|
+
height?: number;
|
|
3
|
+
} & import('react').RefAttributes<import('antd/es/upload/Upload').UploadRef<any>>, "ref"> & {
|
|
4
|
+
ref?: ((instance: import('antd/es/upload/Upload').UploadRef<any> | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('antd/es/upload/Upload').UploadRef<any>> | null | undefined;
|
|
5
|
+
}, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').UploadProps<any> & {
|
|
6
|
+
height?: number;
|
|
7
|
+
} & import('react').RefAttributes<import('antd/es/upload/Upload').UploadRef<any>>>, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
export declare const StyledUploadFileButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
|
|
10
|
+
}, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
11
|
+
Group: import('react').FC<import('antd/es/button').ButtonGroupProps>;
|
|
12
|
+
}, keyof import('react').Component<any, {}, any>>;
|