@apexcura/ui-components 0.0.16-Beta7 → 0.0.16-Beta70
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/.env.defaults +2 -0
- package/dist/index.d.mts +46 -12
- package/dist/index.d.ts +46 -12
- package/dist/index.js +671 -92628
- package/dist/index.mjs +555 -92561
- package/jest.config.js +10 -0
- package/package.json +12 -11
- package/postcss.config.js +7 -0
- package/tailwind.config.js +9 -0
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/.env.defaults
ADDED
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
1
|
+
import React$1, { CSSProperties } from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
4
4
|
|
|
5
|
+
type pagenationType = {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
5
9
|
type ElementType = {
|
|
6
10
|
[x: string]: any;
|
|
11
|
+
required?: boolean;
|
|
7
12
|
selectedStyle?: boolean;
|
|
8
|
-
style?:
|
|
13
|
+
style?: CSSProperties;
|
|
9
14
|
className?: string | undefined;
|
|
10
15
|
placeholder?: string;
|
|
11
16
|
addonBefore?: React.ReactNode;
|
|
@@ -13,8 +18,12 @@ type ElementType = {
|
|
|
13
18
|
disabled?: boolean;
|
|
14
19
|
prefix?: React.ReactNode;
|
|
15
20
|
type?: string;
|
|
21
|
+
checkedChildren?: string;
|
|
22
|
+
unCheckedChildren?: string;
|
|
23
|
+
firstValue?: string;
|
|
24
|
+
secondValue?: string;
|
|
16
25
|
size?: SizeType;
|
|
17
|
-
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile
|
|
26
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
|
|
18
27
|
status?: "error" | "warning";
|
|
19
28
|
styles?: React.CSSProperties;
|
|
20
29
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -28,6 +37,9 @@ type ElementType = {
|
|
|
28
37
|
options?: any[];
|
|
29
38
|
firstOptions?: any[];
|
|
30
39
|
secondOptions?: any[];
|
|
40
|
+
firstPlaceholder?: string;
|
|
41
|
+
secondPlaceholder?: string;
|
|
42
|
+
enabled_dates?: string;
|
|
31
43
|
view?: boolean;
|
|
32
44
|
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
33
45
|
onClick?: () => void;
|
|
@@ -61,7 +73,7 @@ type ElementType = {
|
|
|
61
73
|
selectBefore?: any[];
|
|
62
74
|
selectAfter?: any[];
|
|
63
75
|
isSVGStylesOverride?: boolean;
|
|
64
|
-
rowSelection?:
|
|
76
|
+
rowSelection?: boolean;
|
|
65
77
|
length?: number;
|
|
66
78
|
imgClassName?: string;
|
|
67
79
|
loading?: boolean;
|
|
@@ -79,7 +91,9 @@ type ElementType = {
|
|
|
79
91
|
weekrange?: boolean;
|
|
80
92
|
message?: string;
|
|
81
93
|
description?: string;
|
|
82
|
-
notificationType?:
|
|
94
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
95
|
+
showProgress?: boolean;
|
|
96
|
+
ellipsis?: boolean;
|
|
83
97
|
};
|
|
84
98
|
|
|
85
99
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
@@ -96,10 +110,9 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
96
110
|
|
|
97
111
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
98
112
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
113
|
+
declare const CkEditor: (props: ElementType) => React$1.JSX.Element;
|
|
114
|
+
|
|
115
|
+
declare const Editor: (props: ElementType) => React$1.JSX.Element;
|
|
103
116
|
|
|
104
117
|
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
105
118
|
|
|
@@ -123,13 +136,28 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
|
123
136
|
|
|
124
137
|
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
125
138
|
|
|
126
|
-
|
|
139
|
+
type dropDownValueProps = {
|
|
140
|
+
firstValue: {
|
|
141
|
+
key?: string | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
143
|
+
value?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
secondValue: {
|
|
146
|
+
key?: string | undefined;
|
|
147
|
+
label?: string | undefined;
|
|
148
|
+
value?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
};
|
|
151
|
+
type dropDownGroupProps = ElementType & {
|
|
152
|
+
value: dropDownValueProps;
|
|
153
|
+
};
|
|
154
|
+
declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
|
|
127
155
|
|
|
128
156
|
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
129
157
|
|
|
130
158
|
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
131
159
|
|
|
132
|
-
declare const SwitchElement: () => React$1.JSX.Element;
|
|
160
|
+
declare const SwitchElement: (props: ElementType) => React$1.JSX.Element;
|
|
133
161
|
|
|
134
162
|
declare const Upload: (props: ElementType) => React$1.JSX.Element;
|
|
135
163
|
|
|
@@ -151,4 +179,10 @@ declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
|
|
|
151
179
|
|
|
152
180
|
declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
181
|
|
|
154
|
-
|
|
182
|
+
declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
|
|
183
|
+
|
|
184
|
+
declare const TooltipElement: (props: ElementType) => React$1.JSX.Element;
|
|
185
|
+
|
|
186
|
+
declare const DateTimePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
187
|
+
|
|
188
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DateTimePickerElement, DivContainer, DoubleBarChart, DropDownGroup, Editor, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, TooltipElement, Upload };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
1
|
+
import React$1, { CSSProperties } from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
4
4
|
|
|
5
|
+
type pagenationType = {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
5
9
|
type ElementType = {
|
|
6
10
|
[x: string]: any;
|
|
11
|
+
required?: boolean;
|
|
7
12
|
selectedStyle?: boolean;
|
|
8
|
-
style?:
|
|
13
|
+
style?: CSSProperties;
|
|
9
14
|
className?: string | undefined;
|
|
10
15
|
placeholder?: string;
|
|
11
16
|
addonBefore?: React.ReactNode;
|
|
@@ -13,8 +18,12 @@ type ElementType = {
|
|
|
13
18
|
disabled?: boolean;
|
|
14
19
|
prefix?: React.ReactNode;
|
|
15
20
|
type?: string;
|
|
21
|
+
checkedChildren?: string;
|
|
22
|
+
unCheckedChildren?: string;
|
|
23
|
+
firstValue?: string;
|
|
24
|
+
secondValue?: string;
|
|
16
25
|
size?: SizeType;
|
|
17
|
-
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile
|
|
26
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
|
|
18
27
|
status?: "error" | "warning";
|
|
19
28
|
styles?: React.CSSProperties;
|
|
20
29
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -28,6 +37,9 @@ type ElementType = {
|
|
|
28
37
|
options?: any[];
|
|
29
38
|
firstOptions?: any[];
|
|
30
39
|
secondOptions?: any[];
|
|
40
|
+
firstPlaceholder?: string;
|
|
41
|
+
secondPlaceholder?: string;
|
|
42
|
+
enabled_dates?: string;
|
|
31
43
|
view?: boolean;
|
|
32
44
|
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
33
45
|
onClick?: () => void;
|
|
@@ -61,7 +73,7 @@ type ElementType = {
|
|
|
61
73
|
selectBefore?: any[];
|
|
62
74
|
selectAfter?: any[];
|
|
63
75
|
isSVGStylesOverride?: boolean;
|
|
64
|
-
rowSelection?:
|
|
76
|
+
rowSelection?: boolean;
|
|
65
77
|
length?: number;
|
|
66
78
|
imgClassName?: string;
|
|
67
79
|
loading?: boolean;
|
|
@@ -79,7 +91,9 @@ type ElementType = {
|
|
|
79
91
|
weekrange?: boolean;
|
|
80
92
|
message?: string;
|
|
81
93
|
description?: string;
|
|
82
|
-
notificationType?:
|
|
94
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
95
|
+
showProgress?: boolean;
|
|
96
|
+
ellipsis?: boolean;
|
|
83
97
|
};
|
|
84
98
|
|
|
85
99
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
@@ -96,10 +110,9 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
|
96
110
|
|
|
97
111
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
98
112
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
113
|
+
declare const CkEditor: (props: ElementType) => React$1.JSX.Element;
|
|
114
|
+
|
|
115
|
+
declare const Editor: (props: ElementType) => React$1.JSX.Element;
|
|
103
116
|
|
|
104
117
|
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
105
118
|
|
|
@@ -123,13 +136,28 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
|
123
136
|
|
|
124
137
|
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
125
138
|
|
|
126
|
-
|
|
139
|
+
type dropDownValueProps = {
|
|
140
|
+
firstValue: {
|
|
141
|
+
key?: string | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
143
|
+
value?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
secondValue: {
|
|
146
|
+
key?: string | undefined;
|
|
147
|
+
label?: string | undefined;
|
|
148
|
+
value?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
};
|
|
151
|
+
type dropDownGroupProps = ElementType & {
|
|
152
|
+
value: dropDownValueProps;
|
|
153
|
+
};
|
|
154
|
+
declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
|
|
127
155
|
|
|
128
156
|
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
129
157
|
|
|
130
158
|
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
131
159
|
|
|
132
|
-
declare const SwitchElement: () => React$1.JSX.Element;
|
|
160
|
+
declare const SwitchElement: (props: ElementType) => React$1.JSX.Element;
|
|
133
161
|
|
|
134
162
|
declare const Upload: (props: ElementType) => React$1.JSX.Element;
|
|
135
163
|
|
|
@@ -151,4 +179,10 @@ declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
|
|
|
151
179
|
|
|
152
180
|
declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
181
|
|
|
154
|
-
|
|
182
|
+
declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
|
|
183
|
+
|
|
184
|
+
declare const TooltipElement: (props: ElementType) => React$1.JSX.Element;
|
|
185
|
+
|
|
186
|
+
declare const DateTimePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
187
|
+
|
|
188
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DateTimePickerElement, DivContainer, DoubleBarChart, DropDownGroup, Editor, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, TooltipElement, Upload };
|