x-ui-design 0.2.17 → 0.2.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.
@@ -66,7 +66,7 @@ export type FormItemProps = DefaultProps & {
66
66
  feedbackIcons?: boolean;
67
67
  };
68
68
  export interface FormItemChildComponentProps {
69
- child: React.ReactElement;
69
+ child: ReactElement;
70
70
  name: string;
71
71
  error: boolean;
72
72
  fieldValue: RuleTypes;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties, DragEvent, ReactNode } from 'react';
1
2
  import { DefaultProps, RuleType } from '.';
2
3
  export interface RcFile extends File {
3
4
  uid: string;
@@ -32,7 +33,7 @@ export type UploadProps = DefaultProps & {
32
33
  accept?: string;
33
34
  beforeUpload?: (file: RcFile, fileList: File[]) => boolean | Promise<boolean>;
34
35
  onChange?: (info: UploadChangeParam) => void;
35
- onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
36
+ onDrop?: (event: DragEvent<HTMLDivElement>) => void;
36
37
  listType?: string;
37
38
  className?: string;
38
39
  rootClassName?: string;
@@ -40,7 +41,7 @@ export type UploadProps = DefaultProps & {
40
41
  onDownload?: (file: UploadFile<RuleType>) => void;
41
42
  onRemove?: (file: UploadFile<RuleType>) => void | boolean | Promise<void | boolean>;
42
43
  disabled?: boolean;
43
- style?: React.CSSProperties;
44
+ style?: CSSProperties;
44
45
  customRequest?: (options: {
45
46
  file: RcFile;
46
47
  onSuccess: (response: RuleType) => void;
@@ -50,5 +51,5 @@ export type UploadProps = DefaultProps & {
50
51
  withCredentials?: boolean;
51
52
  openFileDialogOnClick?: boolean;
52
53
  maxCount?: number;
53
- children?: React.ReactNode;
54
+ children?: ReactNode;
54
55
  };
package/lib/types/form.ts CHANGED
@@ -88,7 +88,7 @@ export type FormItemProps = DefaultProps & {
88
88
  };
89
89
 
90
90
  export interface FormItemChildComponentProps {
91
- child: React.ReactElement;
91
+ child: ReactElement;
92
92
  name: string;
93
93
  error: boolean;
94
94
  fieldValue: RuleTypes;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties, DragEvent, ReactNode } from 'react';
1
2
  import { DefaultProps, RuleType } from '.';
2
3
 
3
4
  export interface RcFile extends File {
@@ -43,7 +44,7 @@ export type UploadProps = DefaultProps & {
43
44
  accept?: string;
44
45
  beforeUpload?: (file: RcFile, fileList: File[]) => boolean | Promise<boolean>;
45
46
  onChange?: (info: UploadChangeParam) => void;
46
- onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
47
+ onDrop?: (event: DragEvent<HTMLDivElement>) => void;
47
48
  listType?: string;
48
49
  className?: string;
49
50
  rootClassName?: string;
@@ -53,7 +54,7 @@ export type UploadProps = DefaultProps & {
53
54
  file: UploadFile<RuleType>
54
55
  ) => void | boolean | Promise<void | boolean>;
55
56
  disabled?: boolean;
56
- style?: React.CSSProperties;
57
+ style?: CSSProperties;
57
58
  customRequest?: (options: {
58
59
  file: RcFile;
59
60
  onSuccess: (response: RuleType) => void;
@@ -63,5 +64,5 @@ export type UploadProps = DefaultProps & {
63
64
  withCredentials?: boolean;
64
65
  openFileDialogOnClick?: boolean;
65
66
  maxCount?: number;
66
- children?: React.ReactNode;
67
+ children?: ReactNode;
67
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-ui-design",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "license": "ISC",
5
5
  "author": "Gabriel Boyajyan",
6
6
  "main": "dist/index.js",