@apexcura/ui-components 0.0.16-Beta93 → 0.0.16-Beta930
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/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 +135 -12
- package/dist/constants/icons.d.ts +8 -0
- package/dist/index.d.ts +20 -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,25 @@
|
|
|
1
1
|
import { UploadFile } from 'antd';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
import { TooltipPlacement } from 'antd/es/tooltip';
|
|
4
|
-
import { CSSProperties } from 'react';
|
|
4
|
+
import React, { CSSProperties, JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
5
5
|
type PaginationType = {
|
|
6
|
+
name?: string;
|
|
6
7
|
page?: number;
|
|
7
8
|
pageSize?: number;
|
|
8
9
|
};
|
|
10
|
+
interface ScheduleType {
|
|
11
|
+
from: string | null;
|
|
12
|
+
to: string | null;
|
|
13
|
+
}
|
|
14
|
+
interface WeekSchedule {
|
|
15
|
+
Sunday: ScheduleType;
|
|
16
|
+
Monday: ScheduleType;
|
|
17
|
+
Tuesday: ScheduleType;
|
|
18
|
+
Wednesday: ScheduleType;
|
|
19
|
+
Thursday: ScheduleType;
|
|
20
|
+
Friday: ScheduleType;
|
|
21
|
+
Saturday: ScheduleType;
|
|
22
|
+
}
|
|
9
23
|
type dropDownValueProps = {
|
|
10
24
|
firstValue: {
|
|
11
25
|
key?: string | undefined;
|
|
@@ -18,7 +32,39 @@ type dropDownValueProps = {
|
|
|
18
32
|
value?: string | undefined;
|
|
19
33
|
} | undefined;
|
|
20
34
|
};
|
|
35
|
+
type radioValueProps = {
|
|
36
|
+
value: {
|
|
37
|
+
key?: string | undefined;
|
|
38
|
+
label?: string | undefined;
|
|
39
|
+
value?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
type autoCompleteProps = {
|
|
43
|
+
value?: {
|
|
44
|
+
key?: string;
|
|
45
|
+
value?: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
interface ChildRecordType {
|
|
49
|
+
id?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
element?: string;
|
|
53
|
+
type?: string;
|
|
54
|
+
value?: boolean;
|
|
55
|
+
children?: ChildRecordType[];
|
|
56
|
+
}
|
|
21
57
|
export type ElementType = {
|
|
58
|
+
tableHeight?: string;
|
|
59
|
+
buttonVariant?: string;
|
|
60
|
+
optionRender?: (option: {
|
|
61
|
+
key?: string | number | bigint;
|
|
62
|
+
label?: string | ReactNode;
|
|
63
|
+
value?: string | number;
|
|
64
|
+
color?: string;
|
|
65
|
+
}) => React.ReactNode;
|
|
66
|
+
active?: number;
|
|
67
|
+
visitedClassName?: string;
|
|
22
68
|
accept?: string | undefined;
|
|
23
69
|
max_count?: number | undefined;
|
|
24
70
|
multiple?: boolean | undefined;
|
|
@@ -31,23 +77,44 @@ export type ElementType = {
|
|
|
31
77
|
className?: string | undefined;
|
|
32
78
|
placeholder?: string;
|
|
33
79
|
addonBefore?: React.ReactNode;
|
|
34
|
-
defaultValue?: string
|
|
80
|
+
defaultValue?: string | {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
35
84
|
disabled?: boolean;
|
|
36
85
|
prefix?: React.ReactNode;
|
|
37
86
|
type?: string;
|
|
87
|
+
expandIcon?: boolean;
|
|
38
88
|
size?: SizeType;
|
|
39
|
-
|
|
89
|
+
colWidth?: string;
|
|
90
|
+
errorText?: string;
|
|
91
|
+
errorClassName?: string;
|
|
92
|
+
expandIconStyles?: boolean;
|
|
93
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | dropDownValueProps | radioValueProps | WeekSchedule | autoCompleteProps;
|
|
40
94
|
status?: 'error' | 'warning';
|
|
41
95
|
styles?: React.CSSProperties;
|
|
42
96
|
variant?: 'outlined' | 'borderless' | 'filled';
|
|
43
97
|
label?: string;
|
|
44
98
|
name?: string;
|
|
45
99
|
suffix?: React.ReactNode;
|
|
100
|
+
rowClickExpandable?: boolean;
|
|
101
|
+
expandable?: boolean;
|
|
46
102
|
maxLength?: number;
|
|
103
|
+
sortable?: boolean;
|
|
104
|
+
indexClickable?: boolean;
|
|
105
|
+
splitButton?: {
|
|
106
|
+
value: string;
|
|
107
|
+
icon: string;
|
|
108
|
+
label: string;
|
|
109
|
+
isSVGStylesOverride: boolean;
|
|
110
|
+
tooltip: string;
|
|
111
|
+
}[];
|
|
47
112
|
options?: {
|
|
48
113
|
key?: string;
|
|
49
114
|
label?: string;
|
|
50
115
|
value?: string;
|
|
116
|
+
icon?: string;
|
|
117
|
+
color?: string;
|
|
51
118
|
}[];
|
|
52
119
|
firstOptions?: {
|
|
53
120
|
key?: string;
|
|
@@ -64,11 +131,11 @@ export type ElementType = {
|
|
|
64
131
|
view?: boolean;
|
|
65
132
|
enabled_dates?: string;
|
|
66
133
|
onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
67
|
-
onClick?: () => void;
|
|
134
|
+
onClick?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
68
135
|
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
69
136
|
id?: number;
|
|
70
137
|
thead?: {
|
|
71
|
-
|
|
138
|
+
_id?: string;
|
|
72
139
|
name?: string;
|
|
73
140
|
label?: string;
|
|
74
141
|
visible?: boolean;
|
|
@@ -76,30 +143,59 @@ export type ElementType = {
|
|
|
76
143
|
key?: string;
|
|
77
144
|
render?: (text: string) => React.JSX.Element;
|
|
78
145
|
ellipsis?: boolean;
|
|
146
|
+
sortable?: boolean;
|
|
147
|
+
filtered?: boolean;
|
|
148
|
+
filters?: {
|
|
149
|
+
text: string;
|
|
150
|
+
value: string;
|
|
151
|
+
}[];
|
|
152
|
+
fixed?: string | boolean | undefined;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
clickable?: boolean;
|
|
79
155
|
}[];
|
|
80
|
-
|
|
81
|
-
|
|
156
|
+
childHead?: {
|
|
157
|
+
_id?: string;
|
|
82
158
|
name?: string;
|
|
83
159
|
label?: string;
|
|
84
|
-
|
|
85
|
-
|
|
160
|
+
visible?: boolean;
|
|
161
|
+
required?: boolean;
|
|
162
|
+
key?: string;
|
|
163
|
+
render?: (text: string) => React.JSX.Element;
|
|
164
|
+
ellipsis?: boolean;
|
|
165
|
+
sortable?: boolean;
|
|
166
|
+
filtered?: boolean;
|
|
167
|
+
filters?: {
|
|
168
|
+
text: string;
|
|
169
|
+
value: string;
|
|
170
|
+
}[];
|
|
86
171
|
}[];
|
|
172
|
+
tbody?: ChildRecordType[];
|
|
87
173
|
optionType?: string;
|
|
88
174
|
selectedClassName?: string;
|
|
89
175
|
action?: React.MouseEventHandler<HTMLElement> | string;
|
|
90
176
|
listClassName?: string;
|
|
91
177
|
listItemClassName?: string;
|
|
92
178
|
img?: string;
|
|
179
|
+
imgExpand?: string;
|
|
180
|
+
imgCollapse?: string;
|
|
93
181
|
items?: {
|
|
94
|
-
|
|
182
|
+
id?: number;
|
|
183
|
+
key?: number | string;
|
|
184
|
+
element?: string;
|
|
95
185
|
icon?: string;
|
|
96
186
|
label?: string;
|
|
97
|
-
active?:
|
|
187
|
+
active?: number;
|
|
98
188
|
text?: string;
|
|
99
189
|
time?: string;
|
|
100
190
|
name?: string;
|
|
101
191
|
y?: number;
|
|
102
192
|
color?: string;
|
|
193
|
+
isCount?: boolean;
|
|
194
|
+
count?: number;
|
|
195
|
+
isNewMenuItem?: boolean;
|
|
196
|
+
progress?: number;
|
|
197
|
+
className?: string;
|
|
198
|
+
contact?: string;
|
|
103
199
|
}[];
|
|
104
200
|
primaryText?: string;
|
|
105
201
|
secondaryText?: string;
|
|
@@ -124,19 +220,46 @@ export type ElementType = {
|
|
|
124
220
|
fillText1?: string;
|
|
125
221
|
fillText2?: string;
|
|
126
222
|
pagination?: boolean;
|
|
223
|
+
antdButton?: boolean;
|
|
127
224
|
required?: boolean;
|
|
128
225
|
is_detail?: boolean;
|
|
129
226
|
checkedChildren?: string;
|
|
130
227
|
unCheckedChildren?: string;
|
|
131
|
-
dateTime?:
|
|
228
|
+
dateTime?: string;
|
|
229
|
+
isDateTime?: boolean;
|
|
132
230
|
minRows?: number;
|
|
133
231
|
maxRows?: number;
|
|
232
|
+
isSearch?: boolean;
|
|
134
233
|
mode?: 'multiple' | 'tags' | undefined;
|
|
135
234
|
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
136
235
|
weekrange?: boolean;
|
|
236
|
+
rangePresets?: boolean;
|
|
137
237
|
message?: string;
|
|
238
|
+
isStatus?: boolean;
|
|
239
|
+
isDelete?: boolean;
|
|
138
240
|
description?: string;
|
|
139
241
|
notificationType?: 'success' | 'info' | 'warning' | 'error';
|
|
140
242
|
showProgress?: boolean;
|
|
243
|
+
isLoading?: boolean;
|
|
244
|
+
isNotChatbot?: boolean;
|
|
245
|
+
allowClear?: boolean;
|
|
246
|
+
isBack?: boolean;
|
|
247
|
+
showCount?: boolean;
|
|
248
|
+
avatarClassName?: string;
|
|
249
|
+
segmentedOptions?: string[];
|
|
250
|
+
manageRadioButton?: boolean;
|
|
251
|
+
cardClassname?: string;
|
|
252
|
+
titleClassName?: string;
|
|
253
|
+
fileType?: string[];
|
|
254
|
+
fileSize?: number;
|
|
255
|
+
allowOne?: boolean;
|
|
256
|
+
showSerialNumber?: boolean;
|
|
257
|
+
isTextSelect?: boolean;
|
|
258
|
+
autoSize?: boolean;
|
|
259
|
+
rowClick?: boolean;
|
|
260
|
+
dropdownRender?: (menu: ReactElement<string | JSXElementConstructor<string>>) => ReactElement<string | JSXElementConstructor<string>>;
|
|
261
|
+
isopen?: boolean;
|
|
262
|
+
clickedVal?: string;
|
|
263
|
+
customColor?: boolean;
|
|
141
264
|
};
|
|
142
265
|
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,23 @@ 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';
|