@apexcura/ui-components 0.0.13-Beta1 → 0.0.13-Beta100
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/index.d.mts +22 -27
- package/dist/index.d.ts +22 -27
- package/dist/index.js +291 -169
- package/dist/index.mjs +241 -124
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { UploadFile } from 'antd/lib/upload/interface';
|
|
3
4
|
|
|
4
5
|
type ElementType = {
|
|
5
6
|
[x: string]: any;
|
|
@@ -13,7 +14,7 @@ type ElementType = {
|
|
|
13
14
|
prefix?: React.ReactNode;
|
|
14
15
|
type?: string;
|
|
15
16
|
size?: SizeType;
|
|
16
|
-
value?: string | number | boolean | any[] | null | undefined;
|
|
17
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
|
|
17
18
|
status?: "error" | "warning";
|
|
18
19
|
styles?: React.CSSProperties;
|
|
19
20
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -25,7 +26,8 @@ type ElementType = {
|
|
|
25
26
|
fields?: any[];
|
|
26
27
|
schema?: any[];
|
|
27
28
|
options?: any[];
|
|
28
|
-
onChange?: (value: string | number | boolean | object | any[]) => void;
|
|
29
|
+
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
30
|
+
onClick?: () => void;
|
|
29
31
|
dropDownOptions?: any[];
|
|
30
32
|
id?: number;
|
|
31
33
|
thead?: any[];
|
|
@@ -53,34 +55,17 @@ type ElementType = {
|
|
|
53
55
|
iconsClassName?: string;
|
|
54
56
|
labelClassName?: string;
|
|
55
57
|
containerClassName?: string;
|
|
58
|
+
selectBefore?: any[];
|
|
59
|
+
selectAfter?: any[];
|
|
56
60
|
};
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
onChange: (value: string | number | boolean | object | any[]) => void;
|
|
60
|
-
}
|
|
61
|
-
declare const TextElement: (props: ElementExecuterProps$3) => React$1.JSX.Element;
|
|
62
|
+
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
placeholder?: string;
|
|
65
|
-
id?: string;
|
|
66
|
-
prefix?: React$1.ReactNode;
|
|
67
|
-
addonBefore?: React$1.ReactNode;
|
|
68
|
-
type?: string;
|
|
69
|
-
}
|
|
70
|
-
interface PasswordProps {
|
|
71
|
-
inputData: InputData;
|
|
72
|
-
}
|
|
73
|
-
declare const PasswordElement: React$1.FC<PasswordProps>;
|
|
64
|
+
declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
|
|
74
65
|
|
|
75
|
-
|
|
76
|
-
onChange: (value: string | number | object | boolean | any[]) => void;
|
|
77
|
-
}
|
|
78
|
-
declare const NumberElement: (props: ElementExecuterProps$2) => React$1.JSX.Element;
|
|
66
|
+
declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
|
|
79
67
|
|
|
80
|
-
|
|
81
|
-
onChange: (value: string | number | boolean | object | any[]) => void;
|
|
82
|
-
}
|
|
83
|
-
declare const TextareaElement: (props: ElementExecuterProps$1) => React$1.JSX.Element;
|
|
68
|
+
declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
|
|
84
69
|
|
|
85
70
|
declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
86
71
|
|
|
@@ -89,7 +74,7 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
89
74
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
90
75
|
|
|
91
76
|
interface ElementExecuterProps extends ElementType {
|
|
92
|
-
onChange: (value: string | number | object | boolean | any[]) => void;
|
|
77
|
+
onChange: (value: string | number | object | boolean | any[] | undefined) => void;
|
|
93
78
|
}
|
|
94
79
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
95
80
|
|
|
@@ -111,4 +96,14 @@ declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
111
96
|
|
|
112
97
|
declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
102
|
+
|
|
103
|
+
declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
108
|
+
|
|
109
|
+
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, TableElement, TabsElement, TextElement, TextareaElement };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { UploadFile } from 'antd/lib/upload/interface';
|
|
3
4
|
|
|
4
5
|
type ElementType = {
|
|
5
6
|
[x: string]: any;
|
|
@@ -13,7 +14,7 @@ type ElementType = {
|
|
|
13
14
|
prefix?: React.ReactNode;
|
|
14
15
|
type?: string;
|
|
15
16
|
size?: SizeType;
|
|
16
|
-
value?: string | number | boolean | any[] | null | undefined;
|
|
17
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
|
|
17
18
|
status?: "error" | "warning";
|
|
18
19
|
styles?: React.CSSProperties;
|
|
19
20
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -25,7 +26,8 @@ type ElementType = {
|
|
|
25
26
|
fields?: any[];
|
|
26
27
|
schema?: any[];
|
|
27
28
|
options?: any[];
|
|
28
|
-
onChange?: (value: string | number | boolean | object | any[]) => void;
|
|
29
|
+
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
30
|
+
onClick?: () => void;
|
|
29
31
|
dropDownOptions?: any[];
|
|
30
32
|
id?: number;
|
|
31
33
|
thead?: any[];
|
|
@@ -53,34 +55,17 @@ type ElementType = {
|
|
|
53
55
|
iconsClassName?: string;
|
|
54
56
|
labelClassName?: string;
|
|
55
57
|
containerClassName?: string;
|
|
58
|
+
selectBefore?: any[];
|
|
59
|
+
selectAfter?: any[];
|
|
56
60
|
};
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
onChange: (value: string | number | boolean | object | any[]) => void;
|
|
60
|
-
}
|
|
61
|
-
declare const TextElement: (props: ElementExecuterProps$3) => React$1.JSX.Element;
|
|
62
|
+
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
placeholder?: string;
|
|
65
|
-
id?: string;
|
|
66
|
-
prefix?: React$1.ReactNode;
|
|
67
|
-
addonBefore?: React$1.ReactNode;
|
|
68
|
-
type?: string;
|
|
69
|
-
}
|
|
70
|
-
interface PasswordProps {
|
|
71
|
-
inputData: InputData;
|
|
72
|
-
}
|
|
73
|
-
declare const PasswordElement: React$1.FC<PasswordProps>;
|
|
64
|
+
declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
|
|
74
65
|
|
|
75
|
-
|
|
76
|
-
onChange: (value: string | number | object | boolean | any[]) => void;
|
|
77
|
-
}
|
|
78
|
-
declare const NumberElement: (props: ElementExecuterProps$2) => React$1.JSX.Element;
|
|
66
|
+
declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
|
|
79
67
|
|
|
80
|
-
|
|
81
|
-
onChange: (value: string | number | boolean | object | any[]) => void;
|
|
82
|
-
}
|
|
83
|
-
declare const TextareaElement: (props: ElementExecuterProps$1) => React$1.JSX.Element;
|
|
68
|
+
declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
|
|
84
69
|
|
|
85
70
|
declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
86
71
|
|
|
@@ -89,7 +74,7 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
89
74
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
90
75
|
|
|
91
76
|
interface ElementExecuterProps extends ElementType {
|
|
92
|
-
onChange: (value: string | number | object | boolean | any[]) => void;
|
|
77
|
+
onChange: (value: string | number | object | boolean | any[] | undefined) => void;
|
|
93
78
|
}
|
|
94
79
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
95
80
|
|
|
@@ -111,4 +96,14 @@ declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
111
96
|
|
|
112
97
|
declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
102
|
+
|
|
103
|
+
declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
108
|
+
|
|
109
|
+
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, TableElement, TabsElement, TextElement, TextareaElement };
|