@apexcura/ui-components 0.0.16-Beta99 → 0.0.16-Beta991
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/AadharComponent.d.ts +3 -0
- package/dist/Components/AbhaNumberComponent.d.ts +3 -0
- package/dist/Components/AntdButton.d.ts +3 -0
- package/dist/Components/AutoCompleteInput.d.ts +14 -0
- package/dist/Components/AvatarUpload.d.ts +3 -0
- package/dist/Components/Capcha.d.ts +3 -0
- package/dist/Components/CardElement.d.ts +3 -0
- package/dist/Components/CustomStepper.d.ts +3 -0
- package/dist/Components/DisplayTimeline.d.ts +3 -0
- package/dist/Components/Editor.d.ts +0 -3
- package/dist/Components/GoogleMapWidget.d.ts +3 -0
- package/dist/Components/KanbanBoard.d.ts +2 -0
- package/dist/Components/ProfileContainer.d.ts +3 -0
- package/dist/Components/RadioElement.d.ts +12 -1
- package/dist/Components/SegmentedElement.d.ts +3 -0
- package/dist/Components/Sidebar.d.ts +2 -2
- package/dist/Components/SplitButton.d.ts +3 -0
- package/dist/Components/TableCopyComponent.d.ts +3 -0
- package/dist/Components/TableElement.d.ts +1 -0
- package/dist/Components/TextElement.d.ts +0 -1
- package/dist/Components/TimePicker.d.ts +3 -0
- package/dist/Components/TimeRangeComponent.d.ts +3 -0
- package/dist/Components/TimeScheduleTable.d.ts +3 -0
- package/dist/Types/types.d.ts +148 -13
- package/dist/constants/icons.d.ts +8 -0
- package/dist/index.d.ts +21 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +119 -6
- package/dist/index.js.map +1 -1
- package/dist/report.html +2 -2
- package/package.json +10 -9
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ElementType } from '../Types/types';
|
|
3
|
+
import '../styles/index.css';
|
|
4
|
+
interface autoCompleteProps {
|
|
5
|
+
value?: {
|
|
6
|
+
key?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface customProps extends ElementType {
|
|
11
|
+
value?: autoCompleteProps;
|
|
12
|
+
}
|
|
13
|
+
export declare const AutoCompleteInput: (props: customProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ElementType } from '../Types/types';
|
|
3
|
-
|
|
3
|
+
type radioValueProps = {
|
|
4
|
+
value: {
|
|
5
|
+
key?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
value?: string | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
};
|
|
10
|
+
interface RadioElementProps extends ElementType {
|
|
11
|
+
value?: radioValueProps | null;
|
|
12
|
+
}
|
|
13
|
+
export declare const RadioElement: (props: RadioElementProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
package/dist/Types/types.d.ts
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { UploadFile } from 'antd';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { RadioGroupButtonStyle } from 'antd/es/radio';
|
|
4
|
+
import { TabsPosition } from 'antd/es/tabs';
|
|
3
5
|
import { TooltipPlacement } from 'antd/es/tooltip';
|
|
4
|
-
import { CSSProperties } from 'react';
|
|
6
|
+
import React, { CSSProperties, JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
5
7
|
type PaginationType = {
|
|
8
|
+
name?: string;
|
|
6
9
|
page?: number;
|
|
7
10
|
pageSize?: number;
|
|
8
11
|
};
|
|
12
|
+
interface ScheduleType {
|
|
13
|
+
from: string | null;
|
|
14
|
+
to: string | null;
|
|
15
|
+
}
|
|
16
|
+
interface WeekSchedule {
|
|
17
|
+
Sunday: ScheduleType;
|
|
18
|
+
Monday: ScheduleType;
|
|
19
|
+
Tuesday: ScheduleType;
|
|
20
|
+
Wednesday: ScheduleType;
|
|
21
|
+
Thursday: ScheduleType;
|
|
22
|
+
Friday: ScheduleType;
|
|
23
|
+
Saturday: ScheduleType;
|
|
24
|
+
}
|
|
9
25
|
type dropDownValueProps = {
|
|
10
26
|
firstValue: {
|
|
11
27
|
key?: string | undefined;
|
|
@@ -18,7 +34,40 @@ type dropDownValueProps = {
|
|
|
18
34
|
value?: string | undefined;
|
|
19
35
|
} | undefined;
|
|
20
36
|
};
|
|
37
|
+
type radioValueProps = {
|
|
38
|
+
value: {
|
|
39
|
+
key?: string | undefined;
|
|
40
|
+
label?: string | undefined;
|
|
41
|
+
value?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
};
|
|
44
|
+
type autoCompleteProps = {
|
|
45
|
+
value?: {
|
|
46
|
+
key?: string;
|
|
47
|
+
value?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
interface ChildRecordType {
|
|
51
|
+
id?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
label?: string;
|
|
54
|
+
element?: string;
|
|
55
|
+
type?: string;
|
|
56
|
+
value?: boolean;
|
|
57
|
+
children?: ChildRecordType[];
|
|
58
|
+
}
|
|
21
59
|
export type ElementType = {
|
|
60
|
+
buttonStyle?: RadioGroupButtonStyle;
|
|
61
|
+
tableHeight?: string;
|
|
62
|
+
buttonVariant?: string;
|
|
63
|
+
optionRender?: (option: {
|
|
64
|
+
key?: string | number | bigint;
|
|
65
|
+
label?: string | ReactNode;
|
|
66
|
+
value?: string | number;
|
|
67
|
+
color?: string;
|
|
68
|
+
}) => React.ReactNode;
|
|
69
|
+
active?: number;
|
|
70
|
+
visitedClassName?: string;
|
|
22
71
|
accept?: string | undefined;
|
|
23
72
|
max_count?: number | undefined;
|
|
24
73
|
multiple?: boolean | undefined;
|
|
@@ -31,23 +80,48 @@ export type ElementType = {
|
|
|
31
80
|
className?: string | undefined;
|
|
32
81
|
placeholder?: string;
|
|
33
82
|
addonBefore?: React.ReactNode;
|
|
34
|
-
|
|
83
|
+
format?: string;
|
|
84
|
+
indexWidth?: number;
|
|
85
|
+
tabPosition?: TabsPosition;
|
|
86
|
+
defaultValue?: string | {
|
|
87
|
+
label: string;
|
|
88
|
+
value: string;
|
|
89
|
+
};
|
|
35
90
|
disabled?: boolean;
|
|
36
91
|
prefix?: React.ReactNode;
|
|
37
92
|
type?: string;
|
|
93
|
+
expandIcon?: boolean;
|
|
38
94
|
size?: SizeType;
|
|
39
|
-
|
|
40
|
-
|
|
95
|
+
colWidth?: string;
|
|
96
|
+
errorText?: string;
|
|
97
|
+
errorClassName?: string;
|
|
98
|
+
expandIconStyles?: boolean;
|
|
99
|
+
isIconOnly?: boolean;
|
|
100
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | dropDownValueProps | radioValueProps | WeekSchedule | autoCompleteProps;
|
|
101
|
+
status?: string | undefined;
|
|
41
102
|
styles?: React.CSSProperties;
|
|
42
103
|
variant?: 'outlined' | 'borderless' | 'filled';
|
|
43
104
|
label?: string;
|
|
44
105
|
name?: string;
|
|
45
106
|
suffix?: React.ReactNode;
|
|
107
|
+
rowClickExpandable?: boolean;
|
|
108
|
+
expandable?: boolean;
|
|
46
109
|
maxLength?: number;
|
|
110
|
+
sortable?: boolean;
|
|
111
|
+
indexClickable?: boolean;
|
|
112
|
+
splitButton?: {
|
|
113
|
+
value: string;
|
|
114
|
+
icon: string;
|
|
115
|
+
label: string;
|
|
116
|
+
isSVGStylesOverride: boolean;
|
|
117
|
+
tooltip: string;
|
|
118
|
+
}[];
|
|
47
119
|
options?: {
|
|
48
120
|
key?: string;
|
|
49
121
|
label?: string;
|
|
50
122
|
value?: string;
|
|
123
|
+
icon?: string;
|
|
124
|
+
color?: string;
|
|
51
125
|
}[];
|
|
52
126
|
firstOptions?: {
|
|
53
127
|
key?: string;
|
|
@@ -64,11 +138,12 @@ export type ElementType = {
|
|
|
64
138
|
view?: boolean;
|
|
65
139
|
enabled_dates?: string;
|
|
66
140
|
onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
67
|
-
onClick?: () => void;
|
|
141
|
+
onClick?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
68
142
|
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
69
143
|
id?: number;
|
|
70
144
|
thead?: {
|
|
71
|
-
|
|
145
|
+
width?: number;
|
|
146
|
+
_id?: string;
|
|
72
147
|
name?: string;
|
|
73
148
|
label?: string;
|
|
74
149
|
visible?: boolean;
|
|
@@ -76,30 +151,64 @@ export type ElementType = {
|
|
|
76
151
|
key?: string;
|
|
77
152
|
render?: (text: string) => React.JSX.Element;
|
|
78
153
|
ellipsis?: boolean;
|
|
154
|
+
sortable?: boolean;
|
|
155
|
+
filtered?: boolean;
|
|
156
|
+
filters?: {
|
|
157
|
+
text: string;
|
|
158
|
+
value: string;
|
|
159
|
+
}[];
|
|
160
|
+
fixed?: string | boolean | undefined;
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
clickable?: boolean;
|
|
79
163
|
}[];
|
|
80
|
-
|
|
81
|
-
|
|
164
|
+
childHead?: {
|
|
165
|
+
_id?: string;
|
|
82
166
|
name?: string;
|
|
83
167
|
label?: string;
|
|
84
|
-
|
|
85
|
-
|
|
168
|
+
visible?: boolean;
|
|
169
|
+
required?: boolean;
|
|
170
|
+
key?: string;
|
|
171
|
+
render?: (text: string) => React.JSX.Element;
|
|
172
|
+
ellipsis?: boolean;
|
|
173
|
+
sortable?: boolean;
|
|
174
|
+
filtered?: boolean;
|
|
175
|
+
filters?: {
|
|
176
|
+
text: string;
|
|
177
|
+
value: string;
|
|
178
|
+
}[];
|
|
86
179
|
}[];
|
|
180
|
+
tbody?: ChildRecordType[];
|
|
87
181
|
optionType?: string;
|
|
88
182
|
selectedClassName?: string;
|
|
89
183
|
action?: React.MouseEventHandler<HTMLElement> | string;
|
|
90
184
|
listClassName?: string;
|
|
91
185
|
listItemClassName?: string;
|
|
92
186
|
img?: string;
|
|
187
|
+
imgExpand?: string;
|
|
188
|
+
imgCollapse?: string;
|
|
93
189
|
items?: {
|
|
94
|
-
|
|
190
|
+
id?: number;
|
|
191
|
+
key?: number | string;
|
|
192
|
+
element?: string;
|
|
95
193
|
icon?: string;
|
|
96
194
|
label?: string;
|
|
97
|
-
active?:
|
|
195
|
+
active?: number;
|
|
98
196
|
text?: string;
|
|
99
197
|
time?: string;
|
|
100
198
|
name?: string;
|
|
101
199
|
y?: number;
|
|
102
200
|
color?: string;
|
|
201
|
+
isCount?: boolean;
|
|
202
|
+
count?: number;
|
|
203
|
+
isNewMenuItem?: boolean;
|
|
204
|
+
progress?: number;
|
|
205
|
+
className?: string;
|
|
206
|
+
contact?: string;
|
|
207
|
+
status?: string;
|
|
208
|
+
assignedTo?: string;
|
|
209
|
+
user?: string;
|
|
210
|
+
dot?: React.ReactNode;
|
|
211
|
+
children?: string;
|
|
103
212
|
}[];
|
|
104
213
|
primaryText?: string;
|
|
105
214
|
secondaryText?: string;
|
|
@@ -124,20 +233,46 @@ export type ElementType = {
|
|
|
124
233
|
fillText1?: string;
|
|
125
234
|
fillText2?: string;
|
|
126
235
|
pagination?: boolean;
|
|
236
|
+
antdButton?: boolean;
|
|
127
237
|
required?: boolean;
|
|
128
238
|
is_detail?: boolean;
|
|
129
239
|
checkedChildren?: string;
|
|
130
240
|
unCheckedChildren?: string;
|
|
131
|
-
dateTime?:
|
|
241
|
+
dateTime?: string;
|
|
242
|
+
isDateTime?: boolean;
|
|
132
243
|
minRows?: number;
|
|
133
244
|
maxRows?: number;
|
|
245
|
+
isSearch?: boolean;
|
|
134
246
|
mode?: 'multiple' | 'tags' | undefined;
|
|
135
247
|
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
136
248
|
weekrange?: boolean;
|
|
249
|
+
rangePresets?: boolean;
|
|
137
250
|
message?: string;
|
|
251
|
+
isStatus?: boolean;
|
|
252
|
+
isDelete?: boolean;
|
|
138
253
|
description?: string;
|
|
139
254
|
notificationType?: 'success' | 'info' | 'warning' | 'error';
|
|
140
255
|
showProgress?: boolean;
|
|
141
256
|
isLoading?: boolean;
|
|
257
|
+
isNotChatbot?: boolean;
|
|
258
|
+
allowClear?: boolean;
|
|
259
|
+
isBack?: boolean;
|
|
260
|
+
showCount?: boolean;
|
|
261
|
+
avatarClassName?: string;
|
|
262
|
+
segmentedOptions?: string[];
|
|
263
|
+
manageRadioButton?: boolean;
|
|
264
|
+
cardClassname?: string;
|
|
265
|
+
titleClassName?: string;
|
|
266
|
+
fileType?: string[];
|
|
267
|
+
fileSize?: number;
|
|
268
|
+
allowOne?: boolean;
|
|
269
|
+
showSerialNumber?: boolean;
|
|
270
|
+
isTextSelect?: boolean;
|
|
271
|
+
autoSize?: boolean;
|
|
272
|
+
rowClick?: boolean;
|
|
273
|
+
dropdownRender?: (menu: ReactElement<string | JSXElementConstructor<string>>) => ReactElement<string | JSXElementConstructor<string>>;
|
|
274
|
+
isopen?: boolean;
|
|
275
|
+
clickedVal?: string;
|
|
276
|
+
customColor?: boolean;
|
|
142
277
|
};
|
|
143
278
|
export {};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare const testIcons: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const sidenavIcons: {
|
|
6
|
+
[key: string]: (props: {
|
|
7
|
+
fill?: string;
|
|
8
|
+
}) => React.ReactNode;
|
|
9
|
+
};
|
|
2
10
|
export declare const icons: {
|
|
3
11
|
[key: string]: React.ReactNode;
|
|
4
12
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,4 +21,24 @@ export * from './Components/OtpElement';
|
|
|
21
21
|
export * from './Components/DivContainer';
|
|
22
22
|
export * from './Components/ColorPickerElement';
|
|
23
23
|
export * from './Components/NotificationAlert';
|
|
24
|
-
export * from './Components/
|
|
24
|
+
export * from './Components/CustomStepper';
|
|
25
|
+
export * from './Components/AbhaNumberComponent';
|
|
26
|
+
export * from './Components/SpanElement';
|
|
27
|
+
export * from './Components/AadharComponent';
|
|
28
|
+
export * from './Components/ProfileContainer';
|
|
29
|
+
export * from './Components/Notification';
|
|
30
|
+
export * from './Components/Profile';
|
|
31
|
+
export * from './Components/SegmentedElement';
|
|
32
|
+
export * from './Components/Capcha';
|
|
33
|
+
export * from './Components/CardElement';
|
|
34
|
+
export * from './Components/AvatarUpload';
|
|
35
|
+
export * from './Components/TimePicker';
|
|
36
|
+
export * from './Components/TimeScheduleTable';
|
|
37
|
+
export * from './Components/KanbanBoard';
|
|
38
|
+
export * from './Components/AutoCompleteInput';
|
|
39
|
+
export * from './Components/TimeRangeComponent';
|
|
40
|
+
export * from './Components/SplitButton';
|
|
41
|
+
export * from './Components/TableCopyComponent';
|
|
42
|
+
export * from './Components/GoogleMapWidget';
|
|
43
|
+
export * from './Components/AntdButton';
|
|
44
|
+
export * from './Components/DisplayTimeline';
|