@apexcura/ui-components 0.0.15-Beta6 → 0.0.15-Beta60
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 +82 -28
- package/dist/index.d.ts +82 -28
- package/dist/index.js +864 -325
- package/dist/index.mjs +861 -306
- package/package.json +11 -5
- package/postcss.config.js +7 -6
- package/tailwind.config.js +9 -10
- package/dist/index.css +0 -463
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
4
|
+
import { CheckboxOptionType } from 'antd';
|
|
4
5
|
|
|
5
|
-
type
|
|
6
|
+
type pagenationType = {
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
};
|
|
10
|
+
type ElementType$1 = {
|
|
6
11
|
[x: string]: any;
|
|
7
12
|
selectedStyle?: boolean;
|
|
8
13
|
style?: boolean;
|
|
@@ -13,8 +18,10 @@ type ElementType = {
|
|
|
13
18
|
disabled?: boolean;
|
|
14
19
|
prefix?: React.ReactNode;
|
|
15
20
|
type?: string;
|
|
21
|
+
firstValue?: string;
|
|
22
|
+
secondValue?: string;
|
|
16
23
|
size?: SizeType;
|
|
17
|
-
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile
|
|
24
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
|
|
18
25
|
status?: "error" | "warning";
|
|
19
26
|
styles?: React.CSSProperties;
|
|
20
27
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -28,6 +35,9 @@ type ElementType = {
|
|
|
28
35
|
options?: any[];
|
|
29
36
|
firstOptions?: any[];
|
|
30
37
|
secondOptions?: any[];
|
|
38
|
+
firstPlaceholder?: string;
|
|
39
|
+
secondPlaceholder?: string;
|
|
40
|
+
enabled_dates?: string;
|
|
31
41
|
view?: boolean;
|
|
32
42
|
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
33
43
|
onClick?: () => void;
|
|
@@ -46,7 +56,7 @@ type ElementType = {
|
|
|
46
56
|
primaryText?: string;
|
|
47
57
|
secondaryText?: string;
|
|
48
58
|
count?: number;
|
|
49
|
-
icon?: string;
|
|
59
|
+
icon?: string | any;
|
|
50
60
|
placement?: string;
|
|
51
61
|
profileImage?: string;
|
|
52
62
|
buttonClassName?: string;
|
|
@@ -65,61 +75,105 @@ type ElementType = {
|
|
|
65
75
|
length?: number;
|
|
66
76
|
imgClassName?: string;
|
|
67
77
|
loading?: boolean;
|
|
78
|
+
fillText1?: string;
|
|
79
|
+
fillText2?: string;
|
|
80
|
+
labels?: any[];
|
|
81
|
+
data?: any[];
|
|
82
|
+
pagination?: boolean;
|
|
83
|
+
is_detail?: boolean;
|
|
84
|
+
dateTime?: string;
|
|
85
|
+
minRows?: number;
|
|
86
|
+
maxRows?: number;
|
|
87
|
+
mode?: "multiple" | "tags" | undefined;
|
|
88
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
89
|
+
weekrange?: boolean;
|
|
90
|
+
message?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
93
|
+
showProgress?: boolean;
|
|
68
94
|
};
|
|
69
95
|
|
|
70
|
-
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
96
|
+
declare const TextElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
71
97
|
|
|
72
|
-
declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
|
|
98
|
+
declare const PasswordElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
73
99
|
|
|
74
|
-
declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
|
|
100
|
+
declare const NumberElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
75
101
|
|
|
76
|
-
declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
|
|
102
|
+
declare const TextareaElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
77
103
|
|
|
78
|
-
declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
104
|
+
declare const SelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
79
105
|
|
|
80
|
-
declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
106
|
+
declare const RadioElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
81
107
|
|
|
108
|
+
type CheckboxValueType = string | undefined;
|
|
109
|
+
interface OptionType extends CheckboxOptionType {
|
|
110
|
+
value: CheckboxValueType;
|
|
111
|
+
}
|
|
112
|
+
interface ElementType {
|
|
113
|
+
options: OptionType[];
|
|
114
|
+
onChange?: (selectedOptions: OptionType[]) => void;
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
name?: string;
|
|
117
|
+
styles?: React$1.CSSProperties;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
82
120
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
83
121
|
|
|
84
|
-
interface ElementExecuterProps extends ElementType {
|
|
122
|
+
interface ElementExecuterProps extends ElementType$1 {
|
|
85
123
|
onChange: (value: string | number | object | boolean | any[] | undefined) => void;
|
|
86
124
|
}
|
|
87
125
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
88
126
|
|
|
89
|
-
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
127
|
+
declare const SingleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
90
128
|
|
|
91
|
-
declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
129
|
+
declare const MultipleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
92
130
|
|
|
93
|
-
declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
|
|
131
|
+
declare const ButtonElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
94
132
|
|
|
95
|
-
declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
|
|
133
|
+
declare const AddMoreTable: (props: ElementType$1) => React$1.JSX.Element;
|
|
96
134
|
|
|
97
|
-
declare const Sidebar: (props: ElementType) => React$1.JSX.Element;
|
|
135
|
+
declare const Sidebar: (props: ElementType$1) => React$1.JSX.Element;
|
|
98
136
|
|
|
99
|
-
declare const Navbar: (props: ElementType) => React$1.JSX.Element;
|
|
137
|
+
declare const Navbar: (props: ElementType$1) => React$1.JSX.Element;
|
|
100
138
|
|
|
101
|
-
declare const TableElement: (props: ElementType) => React$1.JSX.Element;
|
|
139
|
+
declare const TableElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
102
140
|
|
|
103
|
-
declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
141
|
+
declare const DatePickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
104
142
|
|
|
105
|
-
declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
143
|
+
declare const DateRangePickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
106
144
|
|
|
107
|
-
declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
145
|
+
declare const Image: (props: ElementType$1) => React$1.JSX.Element;
|
|
108
146
|
|
|
109
|
-
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
147
|
+
declare const SingleCheckbox: (props: ElementType$1) => React$1.JSX.Element;
|
|
110
148
|
|
|
111
|
-
declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
|
|
149
|
+
declare const DropDownGroup: (props: ElementType$1) => React$1.JSX.Element;
|
|
112
150
|
|
|
113
|
-
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
151
|
+
declare const FileUpload: (props: ElementType$1) => React$1.JSX.Element;
|
|
114
152
|
|
|
115
|
-
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
|
+
declare const TabsElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
116
154
|
|
|
117
155
|
declare const SwitchElement: () => React$1.JSX.Element;
|
|
118
156
|
|
|
119
|
-
declare const Upload: (props: ElementType) => React$1.JSX.Element;
|
|
157
|
+
declare const Upload: (props: ElementType$1) => React$1.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare const OtpElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
160
|
+
|
|
161
|
+
declare const CircleDonut: (props: ElementType$1) => React$1.JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare const SemiCircleDonut: (props: ElementType$1) => React$1.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare const HorizontalBarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const LineChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare const DoubleBarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare const BarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
172
|
+
|
|
173
|
+
declare const DivContainer: (props: ElementType$1) => React$1.JSX.Element;
|
|
120
174
|
|
|
121
|
-
declare const
|
|
175
|
+
declare const ColorPickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
122
176
|
|
|
123
|
-
declare const
|
|
177
|
+
declare const NotificationAlert: (props: ElementType$1) => React$1.JSX.Element;
|
|
124
178
|
|
|
125
|
-
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement,
|
|
179
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
4
|
+
import { CheckboxOptionType } from 'antd';
|
|
4
5
|
|
|
5
|
-
type
|
|
6
|
+
type pagenationType = {
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
};
|
|
10
|
+
type ElementType$1 = {
|
|
6
11
|
[x: string]: any;
|
|
7
12
|
selectedStyle?: boolean;
|
|
8
13
|
style?: boolean;
|
|
@@ -13,8 +18,10 @@ type ElementType = {
|
|
|
13
18
|
disabled?: boolean;
|
|
14
19
|
prefix?: React.ReactNode;
|
|
15
20
|
type?: string;
|
|
21
|
+
firstValue?: string;
|
|
22
|
+
secondValue?: string;
|
|
16
23
|
size?: SizeType;
|
|
17
|
-
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile
|
|
24
|
+
value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
|
|
18
25
|
status?: "error" | "warning";
|
|
19
26
|
styles?: React.CSSProperties;
|
|
20
27
|
variant?: "outlined" | "borderless" | "filled";
|
|
@@ -28,6 +35,9 @@ type ElementType = {
|
|
|
28
35
|
options?: any[];
|
|
29
36
|
firstOptions?: any[];
|
|
30
37
|
secondOptions?: any[];
|
|
38
|
+
firstPlaceholder?: string;
|
|
39
|
+
secondPlaceholder?: string;
|
|
40
|
+
enabled_dates?: string;
|
|
31
41
|
view?: boolean;
|
|
32
42
|
onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
|
|
33
43
|
onClick?: () => void;
|
|
@@ -46,7 +56,7 @@ type ElementType = {
|
|
|
46
56
|
primaryText?: string;
|
|
47
57
|
secondaryText?: string;
|
|
48
58
|
count?: number;
|
|
49
|
-
icon?: string;
|
|
59
|
+
icon?: string | any;
|
|
50
60
|
placement?: string;
|
|
51
61
|
profileImage?: string;
|
|
52
62
|
buttonClassName?: string;
|
|
@@ -65,61 +75,105 @@ type ElementType = {
|
|
|
65
75
|
length?: number;
|
|
66
76
|
imgClassName?: string;
|
|
67
77
|
loading?: boolean;
|
|
78
|
+
fillText1?: string;
|
|
79
|
+
fillText2?: string;
|
|
80
|
+
labels?: any[];
|
|
81
|
+
data?: any[];
|
|
82
|
+
pagination?: boolean;
|
|
83
|
+
is_detail?: boolean;
|
|
84
|
+
dateTime?: string;
|
|
85
|
+
minRows?: number;
|
|
86
|
+
maxRows?: number;
|
|
87
|
+
mode?: "multiple" | "tags" | undefined;
|
|
88
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
89
|
+
weekrange?: boolean;
|
|
90
|
+
message?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
93
|
+
showProgress?: boolean;
|
|
68
94
|
};
|
|
69
95
|
|
|
70
|
-
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
|
96
|
+
declare const TextElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
71
97
|
|
|
72
|
-
declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
|
|
98
|
+
declare const PasswordElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
73
99
|
|
|
74
|
-
declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
|
|
100
|
+
declare const NumberElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
75
101
|
|
|
76
|
-
declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
|
|
102
|
+
declare const TextareaElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
77
103
|
|
|
78
|
-
declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
104
|
+
declare const SelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
79
105
|
|
|
80
|
-
declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
|
|
106
|
+
declare const RadioElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
81
107
|
|
|
108
|
+
type CheckboxValueType = string | undefined;
|
|
109
|
+
interface OptionType extends CheckboxOptionType {
|
|
110
|
+
value: CheckboxValueType;
|
|
111
|
+
}
|
|
112
|
+
interface ElementType {
|
|
113
|
+
options: OptionType[];
|
|
114
|
+
onChange?: (selectedOptions: OptionType[]) => void;
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
name?: string;
|
|
117
|
+
styles?: React$1.CSSProperties;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
82
120
|
declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
|
|
83
121
|
|
|
84
|
-
interface ElementExecuterProps extends ElementType {
|
|
122
|
+
interface ElementExecuterProps extends ElementType$1 {
|
|
85
123
|
onChange: (value: string | number | object | boolean | any[] | undefined) => void;
|
|
86
124
|
}
|
|
87
125
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
88
126
|
|
|
89
|
-
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
127
|
+
declare const SingleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
90
128
|
|
|
91
|
-
declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
129
|
+
declare const MultipleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
92
130
|
|
|
93
|
-
declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
|
|
131
|
+
declare const ButtonElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
94
132
|
|
|
95
|
-
declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
|
|
133
|
+
declare const AddMoreTable: (props: ElementType$1) => React$1.JSX.Element;
|
|
96
134
|
|
|
97
|
-
declare const Sidebar: (props: ElementType) => React$1.JSX.Element;
|
|
135
|
+
declare const Sidebar: (props: ElementType$1) => React$1.JSX.Element;
|
|
98
136
|
|
|
99
|
-
declare const Navbar: (props: ElementType) => React$1.JSX.Element;
|
|
137
|
+
declare const Navbar: (props: ElementType$1) => React$1.JSX.Element;
|
|
100
138
|
|
|
101
|
-
declare const TableElement: (props: ElementType) => React$1.JSX.Element;
|
|
139
|
+
declare const TableElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
102
140
|
|
|
103
|
-
declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
141
|
+
declare const DatePickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
104
142
|
|
|
105
|
-
declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
|
|
143
|
+
declare const DateRangePickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
106
144
|
|
|
107
|
-
declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
145
|
+
declare const Image: (props: ElementType$1) => React$1.JSX.Element;
|
|
108
146
|
|
|
109
|
-
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
147
|
+
declare const SingleCheckbox: (props: ElementType$1) => React$1.JSX.Element;
|
|
110
148
|
|
|
111
|
-
declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
|
|
149
|
+
declare const DropDownGroup: (props: ElementType$1) => React$1.JSX.Element;
|
|
112
150
|
|
|
113
|
-
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
151
|
+
declare const FileUpload: (props: ElementType$1) => React$1.JSX.Element;
|
|
114
152
|
|
|
115
|
-
declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
|
|
153
|
+
declare const TabsElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
116
154
|
|
|
117
155
|
declare const SwitchElement: () => React$1.JSX.Element;
|
|
118
156
|
|
|
119
|
-
declare const Upload: (props: ElementType) => React$1.JSX.Element;
|
|
157
|
+
declare const Upload: (props: ElementType$1) => React$1.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare const OtpElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
160
|
+
|
|
161
|
+
declare const CircleDonut: (props: ElementType$1) => React$1.JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare const SemiCircleDonut: (props: ElementType$1) => React$1.JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare const HorizontalBarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const LineChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare const DoubleBarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare const BarChart: (props: ElementType$1) => React$1.JSX.Element;
|
|
172
|
+
|
|
173
|
+
declare const DivContainer: (props: ElementType$1) => React$1.JSX.Element;
|
|
120
174
|
|
|
121
|
-
declare const
|
|
175
|
+
declare const ColorPickerElement: (props: ElementType$1) => React$1.JSX.Element;
|
|
122
176
|
|
|
123
|
-
declare const
|
|
177
|
+
declare const NotificationAlert: (props: ElementType$1) => React$1.JSX.Element;
|
|
124
178
|
|
|
125
|
-
export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement,
|
|
179
|
+
export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
|