@apexcura/ui-components 0.0.16-Beta76 → 0.0.16-Beta760
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/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/DropDownGroup.d.ts +1 -1
- package/dist/Components/Editor.d.ts +0 -3
- package/dist/Components/KanbanBoard.d.ts +2 -0
- package/dist/Components/ProfileContainer.d.ts +3 -0
- package/dist/Components/SegmentedElement.d.ts +3 -0
- package/dist/Components/Sidebar.d.ts +2 -1
- 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 +1 -0
- 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 +141 -11
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +120 -2
- package/dist/index.js.map +1 -1
- package/dist/report.html +2 -2
- package/package.json +20 -11
|
@@ -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 {};
|
|
@@ -13,7 +13,7 @@ type dropDownValueProps = {
|
|
|
13
13
|
} | undefined;
|
|
14
14
|
};
|
|
15
15
|
type dropDownGroupProps = ElementType & {
|
|
16
|
-
value?: dropDownValueProps
|
|
16
|
+
value?: dropDownValueProps;
|
|
17
17
|
};
|
|
18
18
|
export declare const DropDownGroup: (props: dropDownGroupProps) => React.JSX.Element;
|
|
19
19
|
export {};
|
package/dist/Types/types.d.ts
CHANGED
|
@@ -1,8 +1,68 @@
|
|
|
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
|
+
type PaginationType = {
|
|
6
|
+
name?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize?: number;
|
|
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
|
+
}
|
|
23
|
+
type dropDownValueProps = {
|
|
24
|
+
firstValue: {
|
|
25
|
+
key?: string | undefined;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
value?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
secondValue: {
|
|
30
|
+
key?: string | undefined;
|
|
31
|
+
label?: string | undefined;
|
|
32
|
+
value?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
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
|
+
}
|
|
5
57
|
export type ElementType = {
|
|
58
|
+
optionRender?: (option: {
|
|
59
|
+
key?: string | number | bigint;
|
|
60
|
+
label?: string | ReactNode;
|
|
61
|
+
value?: string | number;
|
|
62
|
+
color?: string;
|
|
63
|
+
}) => React.ReactNode;
|
|
64
|
+
active?: number;
|
|
65
|
+
visitedClassName?: string;
|
|
6
66
|
accept?: string | undefined;
|
|
7
67
|
max_count?: number | undefined;
|
|
8
68
|
multiple?: boolean | undefined;
|
|
@@ -15,23 +75,40 @@ export type ElementType = {
|
|
|
15
75
|
className?: string | undefined;
|
|
16
76
|
placeholder?: string;
|
|
17
77
|
addonBefore?: React.ReactNode;
|
|
18
|
-
defaultValue?: string
|
|
78
|
+
defaultValue?: string | {
|
|
79
|
+
label: string;
|
|
80
|
+
value: string;
|
|
81
|
+
};
|
|
19
82
|
disabled?: boolean;
|
|
20
83
|
prefix?: React.ReactNode;
|
|
21
84
|
type?: string;
|
|
22
85
|
size?: SizeType;
|
|
23
|
-
|
|
86
|
+
colWidth?: string;
|
|
87
|
+
errorText?: string;
|
|
88
|
+
errorClassName?: string;
|
|
89
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | dropDownValueProps | radioValueProps | WeekSchedule | autoCompleteProps;
|
|
24
90
|
status?: 'error' | 'warning';
|
|
25
91
|
styles?: React.CSSProperties;
|
|
26
92
|
variant?: 'outlined' | 'borderless' | 'filled';
|
|
27
93
|
label?: string;
|
|
28
94
|
name?: string;
|
|
29
95
|
suffix?: React.ReactNode;
|
|
96
|
+
expandable?: boolean;
|
|
30
97
|
maxLength?: number;
|
|
98
|
+
sortable?: boolean;
|
|
99
|
+
splitButton?: {
|
|
100
|
+
value: string;
|
|
101
|
+
icon: string;
|
|
102
|
+
label: string;
|
|
103
|
+
isSVGStylesOverride: boolean;
|
|
104
|
+
tooltip: string;
|
|
105
|
+
}[];
|
|
31
106
|
options?: {
|
|
32
107
|
key?: string;
|
|
33
108
|
label?: string;
|
|
34
109
|
value?: string;
|
|
110
|
+
icon?: string;
|
|
111
|
+
color?: string;
|
|
35
112
|
}[];
|
|
36
113
|
firstOptions?: {
|
|
37
114
|
key?: string;
|
|
@@ -48,11 +125,11 @@ export type ElementType = {
|
|
|
48
125
|
view?: boolean;
|
|
49
126
|
enabled_dates?: string;
|
|
50
127
|
onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
51
|
-
onClick?: () => void;
|
|
128
|
+
onClick?: (value: string | number | boolean | object | object[] | undefined) => void;
|
|
52
129
|
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
53
130
|
id?: number;
|
|
54
131
|
thead?: {
|
|
55
|
-
|
|
132
|
+
_id?: string;
|
|
56
133
|
name?: string;
|
|
57
134
|
label?: string;
|
|
58
135
|
visible?: boolean;
|
|
@@ -60,14 +137,32 @@ export type ElementType = {
|
|
|
60
137
|
key?: string;
|
|
61
138
|
render?: (text: string) => React.JSX.Element;
|
|
62
139
|
ellipsis?: boolean;
|
|
140
|
+
sortable?: boolean;
|
|
141
|
+
filtered?: boolean;
|
|
142
|
+
filters?: {
|
|
143
|
+
text: string;
|
|
144
|
+
value: string;
|
|
145
|
+
}[];
|
|
146
|
+
fixed?: string | boolean | undefined;
|
|
147
|
+
disabled?: boolean;
|
|
63
148
|
}[];
|
|
64
|
-
|
|
65
|
-
|
|
149
|
+
childHead?: {
|
|
150
|
+
_id?: string;
|
|
66
151
|
name?: string;
|
|
67
152
|
label?: string;
|
|
68
|
-
|
|
69
|
-
|
|
153
|
+
visible?: boolean;
|
|
154
|
+
required?: boolean;
|
|
155
|
+
key?: string;
|
|
156
|
+
render?: (text: string) => React.JSX.Element;
|
|
157
|
+
ellipsis?: boolean;
|
|
158
|
+
sortable?: boolean;
|
|
159
|
+
filtered?: boolean;
|
|
160
|
+
filters?: {
|
|
161
|
+
text: string;
|
|
162
|
+
value: string;
|
|
163
|
+
}[];
|
|
70
164
|
}[];
|
|
165
|
+
tbody?: ChildRecordType[];
|
|
71
166
|
optionType?: string;
|
|
72
167
|
selectedClassName?: string;
|
|
73
168
|
action?: React.MouseEventHandler<HTMLElement> | string;
|
|
@@ -75,15 +170,23 @@ export type ElementType = {
|
|
|
75
170
|
listItemClassName?: string;
|
|
76
171
|
img?: string;
|
|
77
172
|
items?: {
|
|
78
|
-
|
|
173
|
+
id?: number;
|
|
174
|
+
key?: number | string;
|
|
175
|
+
element?: string;
|
|
79
176
|
icon?: string;
|
|
80
177
|
label?: string;
|
|
81
|
-
active?:
|
|
178
|
+
active?: number;
|
|
82
179
|
text?: string;
|
|
83
180
|
time?: string;
|
|
84
181
|
name?: string;
|
|
85
182
|
y?: number;
|
|
86
183
|
color?: string;
|
|
184
|
+
isCount?: boolean;
|
|
185
|
+
count?: number;
|
|
186
|
+
isNewMenuItem?: boolean;
|
|
187
|
+
progress?: number;
|
|
188
|
+
className?: string;
|
|
189
|
+
contact?: string;
|
|
87
190
|
}[];
|
|
88
191
|
primaryText?: string;
|
|
89
192
|
secondaryText?: string;
|
|
@@ -113,13 +216,40 @@ export type ElementType = {
|
|
|
113
216
|
checkedChildren?: string;
|
|
114
217
|
unCheckedChildren?: string;
|
|
115
218
|
dateTime?: string;
|
|
219
|
+
isDateTime?: boolean;
|
|
116
220
|
minRows?: number;
|
|
117
221
|
maxRows?: number;
|
|
222
|
+
isSearch?: boolean;
|
|
118
223
|
mode?: 'multiple' | 'tags' | undefined;
|
|
119
224
|
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
120
225
|
weekrange?: boolean;
|
|
226
|
+
rangePresets?: boolean;
|
|
121
227
|
message?: string;
|
|
228
|
+
isStatus?: boolean;
|
|
229
|
+
isDelete?: boolean;
|
|
122
230
|
description?: string;
|
|
123
231
|
notificationType?: 'success' | 'info' | 'warning' | 'error';
|
|
124
232
|
showProgress?: boolean;
|
|
233
|
+
isLoading?: boolean;
|
|
234
|
+
isNotChatbot?: boolean;
|
|
235
|
+
allowClear?: boolean;
|
|
236
|
+
isBack?: boolean;
|
|
237
|
+
showCount?: boolean;
|
|
238
|
+
avatarClassName?: string;
|
|
239
|
+
segmentedOptions?: string[];
|
|
240
|
+
manageRadioButton?: boolean;
|
|
241
|
+
cardClassname?: string;
|
|
242
|
+
titleClassName?: string;
|
|
243
|
+
fileType?: string[];
|
|
244
|
+
fileSize?: number;
|
|
245
|
+
allowOne?: boolean;
|
|
246
|
+
showSerialNumber?: boolean;
|
|
247
|
+
isTextSelect?: boolean;
|
|
248
|
+
autoSize?: boolean;
|
|
249
|
+
rowClick?: boolean;
|
|
250
|
+
dropdownRender?: (menu: ReactElement<string | JSXElementConstructor<string>>) => ReactElement<string | JSXElementConstructor<string>>;
|
|
251
|
+
isopen?: boolean;
|
|
252
|
+
clickedVal?: string;
|
|
253
|
+
customColor?: boolean;
|
|
125
254
|
};
|
|
255
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,3 +21,21 @@ 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/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';
|