@apexcura/ui-components 0.0.16-Beta112 → 0.0.16-Beta1121

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.
Files changed (34) hide show
  1. package/dist/Components/AadharComponent.d.ts +3 -0
  2. package/dist/Components/AbhaNumberComponent.d.ts +3 -0
  3. package/dist/Components/AntdButton.d.ts +4 -0
  4. package/dist/Components/AutoCompleteInput.d.ts +14 -0
  5. package/dist/Components/AvatarUpload.d.ts +3 -0
  6. package/dist/Components/Capcha.d.ts +3 -0
  7. package/dist/Components/CardElement.d.ts +3 -0
  8. package/dist/Components/CheckBoxTable.d.ts +12 -0
  9. package/dist/Components/CustomStepper.d.ts +3 -0
  10. package/dist/Components/DateRangeSegments.d.ts +16 -0
  11. package/dist/Components/DisplayTimeline.d.ts +3 -0
  12. package/dist/Components/DropdownElement.d.ts +3 -0
  13. package/dist/Components/GoogleMapWidget.d.ts +3 -0
  14. package/dist/Components/ImageUpload.d.ts +3 -0
  15. package/dist/Components/KanbanBoard.d.ts +2 -0
  16. package/dist/Components/ProfileContainer.d.ts +3 -0
  17. package/dist/Components/RadioElement.d.ts +12 -1
  18. package/dist/Components/SegmentedElement.d.ts +3 -0
  19. package/dist/Components/Sidebar.d.ts +2 -2
  20. package/dist/Components/SplitButton.d.ts +3 -0
  21. package/dist/Components/TableCopyComponent.d.ts +3 -0
  22. package/dist/Components/TableElement.d.ts +1 -0
  23. package/dist/Components/TextElement.d.ts +0 -1
  24. package/dist/Components/TimePicker.d.ts +3 -0
  25. package/dist/Components/TimeRangeComponent.d.ts +3 -0
  26. package/dist/Components/TimeScheduleTable.d.ts +3 -0
  27. package/dist/Types/types.d.ts +176 -14
  28. package/dist/constants/icons.d.ts +8 -0
  29. package/dist/index.d.ts +24 -0
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.LICENSE.txt +120 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/report.html +2 -2
  34. package/package.json +10 -9
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const AadharComponent: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const AbhaNumberComponent: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ import '../styles/styles.css';
4
+ export declare const AntButton: (props: ElementType) => React.JSX.Element;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const AvatarUpload: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const Capcha: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const CardElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ interface PaginationType {
4
+ name?: string;
5
+ page?: number;
6
+ pageSize?: number;
7
+ }
8
+ interface TableElementProps extends ElementType {
9
+ value?: PaginationType | null;
10
+ }
11
+ export declare const TableElement: (props: TableElementProps) => React.JSX.Element;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const CustomStepper: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ interface DateRangeSegmentType {
4
+ values?: string[];
5
+ segmentedValue?: string;
6
+ }
7
+ interface DateRangeSegmentsProps extends ElementType {
8
+ value?: DateRangeSegmentType | null;
9
+ segmentedOptions?: {
10
+ tooltip: string;
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ }
15
+ export declare const DateRangeSegments: (props: DateRangeSegmentsProps) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const DisplayTimeline: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const DropdownElement: (props: ElementType) => React.JSX.Element | undefined;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const GoogleMapWidget: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const ImageUpload: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const KanbanBoard: React.FC;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const ProfileContainer: (props: ElementType) => React.JSX.Element;
@@ -1,3 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ElementType } from '../Types/types';
3
- export declare const RadioElement: (props: ElementType) => React.JSX.Element;
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 {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const SegmentedElement: (props: ElementType) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ElementType } from '../Types/types';
3
- import '../styles/sidebar.css';
4
- export declare const Sidebar: (props: ElementType) => React.JSX.Element;
3
+ export declare const Sidebar: React.FC<ElementType>;
4
+ export default Sidebar;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const SplitButton: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const TableCopyComponent: (props: ElementType) => React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ElementType } from '../Types/types';
3
3
  interface PaginationType {
4
+ name?: string;
4
5
  page?: number;
5
6
  pageSize?: number;
6
7
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ElementType } from '../Types/types';
3
- import '../styles/sidebar.css';
4
3
  import '../styles/index.css';
5
4
  export declare const TextElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const TimePickerElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const TimeRangeComponent: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const TimeScheduleTable: (props: ElementType) => React.JSX.Element;
@@ -1,11 +1,31 @@
1
- import { UploadFile } from 'antd';
1
+ import { InputRef, 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, LegacyRef, ReactElement, ReactNode } from 'react';
5
7
  type PaginationType = {
8
+ name?: string;
6
9
  page?: number;
7
10
  pageSize?: number;
8
11
  };
12
+ type DateRangeSegmentType = {
13
+ values?: string[];
14
+ segmentedValue?: string;
15
+ };
16
+ interface ScheduleType {
17
+ from: string | null;
18
+ to: string | null;
19
+ }
20
+ interface WeekSchedule {
21
+ Sunday: ScheduleType;
22
+ Monday: ScheduleType;
23
+ Tuesday: ScheduleType;
24
+ Wednesday: ScheduleType;
25
+ Thursday: ScheduleType;
26
+ Friday: ScheduleType;
27
+ Saturday: ScheduleType;
28
+ }
9
29
  type dropDownValueProps = {
10
30
  firstValue: {
11
31
  key?: string | undefined;
@@ -18,11 +38,53 @@ type dropDownValueProps = {
18
38
  value?: string | undefined;
19
39
  } | undefined;
20
40
  };
41
+ type radioValueProps = {
42
+ value: {
43
+ key?: string | undefined;
44
+ label?: string | undefined;
45
+ value?: string | undefined;
46
+ } | undefined;
47
+ };
48
+ type autoCompleteProps = {
49
+ value?: {
50
+ key?: string;
51
+ value?: string;
52
+ };
53
+ };
54
+ interface ChildRecordType {
55
+ _id?: string;
56
+ id?: string;
57
+ name?: string;
58
+ label?: string;
59
+ element?: string;
60
+ type?: string;
61
+ value?: boolean;
62
+ children?: ChildRecordType[];
63
+ }
21
64
  export type ElementType = {
65
+ disabledColor?: string;
66
+ tooltip?: {
67
+ title: string;
68
+ placement: 'top' | 'bottom' | 'left' | 'right';
69
+ };
70
+ varient?: 'solid' | 'outlined' | 'light';
71
+ color?: string;
72
+ buttonStyle?: RadioGroupButtonStyle;
73
+ tableHeight?: string;
74
+ buttonVariant?: string;
75
+ optionRender?: (option: {
76
+ key?: string | number | bigint;
77
+ label?: string | ReactNode;
78
+ value?: string | number;
79
+ color?: string;
80
+ }) => React.ReactNode;
81
+ active?: number;
82
+ visitedClassName?: string;
22
83
  accept?: string | undefined;
23
84
  max_count?: number | undefined;
24
85
  multiple?: boolean | undefined;
25
86
  activeClassName?: string;
87
+ fileList?: UploadFile[];
26
88
  radioGroupClassName?: string | undefined;
27
89
  selectedStyle?: boolean;
28
90
  style?: CSSProperties;
@@ -31,23 +93,56 @@ export type ElementType = {
31
93
  className?: string | undefined;
32
94
  placeholder?: string;
33
95
  addonBefore?: React.ReactNode;
34
- defaultValue?: string;
96
+ format?: string;
97
+ indexWidth?: number;
98
+ tabPosition?: TabsPosition;
99
+ defaultValue?: string | {
100
+ label: string;
101
+ value: string;
102
+ search?: string;
103
+ };
104
+ limit?: number;
105
+ ref?: LegacyRef<InputRef> | undefined;
35
106
  disabled?: boolean;
36
107
  prefix?: React.ReactNode;
37
108
  type?: string;
109
+ searchable?: boolean;
110
+ expandIcon?: boolean;
38
111
  size?: SizeType;
39
- value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | dropDownValueProps;
40
- status?: 'error' | 'warning';
112
+ colWidth?: string;
113
+ errorText?: string;
114
+ errorClassName?: string;
115
+ expandIconStyles?: boolean;
116
+ enableRowSelection?: boolean;
117
+ showSelectionControls?: boolean;
118
+ isIconOnly?: boolean;
119
+ value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | DateRangeSegmentType | dropDownValueProps | radioValueProps | WeekSchedule | autoCompleteProps;
120
+ status?: string | undefined;
41
121
  styles?: React.CSSProperties;
42
122
  variant?: 'outlined' | 'borderless' | 'filled';
123
+ enable_all?: boolean;
43
124
  label?: string;
44
125
  name?: string;
45
126
  suffix?: React.ReactNode;
127
+ rowClickExpandable?: boolean;
128
+ expandable?: boolean;
46
129
  maxLength?: number;
130
+ sortable?: boolean;
131
+ indexClickable?: boolean;
132
+ splitButton?: {
133
+ value: string;
134
+ icon: string;
135
+ label: string;
136
+ isSVGStylesOverride: boolean;
137
+ tooltip: string;
138
+ }[];
47
139
  options?: {
48
140
  key?: string;
49
141
  label?: string;
50
142
  value?: string;
143
+ icon?: string;
144
+ tooltip?: string;
145
+ color?: string;
51
146
  }[];
52
147
  firstOptions?: {
53
148
  key?: string;
@@ -64,42 +159,81 @@ export type ElementType = {
64
159
  view?: boolean;
65
160
  enabled_dates?: string;
66
161
  onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
67
- onClick?: () => void;
162
+ onClick?: (value: string | number | boolean | object | object[] | undefined) => void;
68
163
  dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
69
- id?: number;
164
+ id?: number | string;
165
+ fullHeight?: boolean;
70
166
  thead?: {
71
- id: number;
167
+ width?: number;
168
+ _id?: string;
72
169
  name?: string;
73
170
  label?: string;
74
171
  visible?: boolean;
75
172
  required?: boolean;
76
173
  key?: string;
77
174
  render?: (text: string) => React.JSX.Element;
175
+ renderCell?: (value: number, record: string, index: number) => React.ReactNode;
78
176
  ellipsis?: boolean;
177
+ sortable?: boolean;
178
+ filtered?: boolean;
179
+ filters?: {
180
+ text: string;
181
+ value: string;
182
+ }[];
183
+ fixed?: string | boolean | undefined;
184
+ disabled?: boolean;
185
+ clickable?: boolean;
79
186
  }[];
80
- tbody?: {
81
- id?: number;
187
+ childHead?: {
188
+ _id?: string;
82
189
  name?: string;
83
190
  label?: string;
84
- element?: string;
85
- type?: string;
191
+ visible?: boolean;
192
+ required?: boolean;
193
+ key?: string;
194
+ render?: (text: string) => React.JSX.Element;
195
+ ellipsis?: boolean;
196
+ sortable?: boolean;
197
+ filtered?: boolean;
198
+ filters?: {
199
+ text: string;
200
+ value: string;
201
+ }[];
86
202
  }[];
203
+ tbody?: ChildRecordType[];
87
204
  optionType?: string;
88
205
  selectedClassName?: string;
89
206
  action?: React.MouseEventHandler<HTMLElement> | string;
90
207
  listClassName?: string;
91
208
  listItemClassName?: string;
92
209
  img?: string;
210
+ imgExpand?: string;
211
+ segmentedValue?: string;
212
+ useSegments?: string;
213
+ imgCollapse?: string;
93
214
  items?: {
94
- element: string;
215
+ id?: number;
216
+ key?: number | string;
217
+ element?: string;
95
218
  icon?: string;
96
219
  label?: string;
97
- active?: boolean;
220
+ active?: number;
98
221
  text?: string;
99
222
  time?: string;
100
223
  name?: string;
101
224
  y?: number;
102
225
  color?: string;
226
+ isCount?: boolean;
227
+ count?: number;
228
+ isNewMenuItem?: boolean;
229
+ progress?: number;
230
+ className?: string;
231
+ contact?: string;
232
+ status?: string;
233
+ assignedTo?: string;
234
+ user?: string;
235
+ dot?: React.ReactNode;
236
+ children?: string;
103
237
  }[];
104
238
  primaryText?: string;
105
239
  secondaryText?: string;
@@ -124,6 +258,7 @@ export type ElementType = {
124
258
  fillText1?: string;
125
259
  fillText2?: string;
126
260
  pagination?: boolean;
261
+ antdButton?: boolean;
127
262
  required?: boolean;
128
263
  is_detail?: boolean;
129
264
  checkedChildren?: string;
@@ -136,11 +271,38 @@ export type ElementType = {
136
271
  mode?: 'multiple' | 'tags' | undefined;
137
272
  picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
138
273
  weekrange?: boolean;
274
+ rangePresets?: boolean;
139
275
  message?: string;
140
276
  isStatus?: boolean;
277
+ isDelete?: boolean;
141
278
  description?: string;
142
279
  notificationType?: 'success' | 'info' | 'warning' | 'error';
143
280
  showProgress?: boolean;
144
281
  isLoading?: boolean;
282
+ isNotChatbot?: boolean;
283
+ allowClear?: boolean;
284
+ isBack?: boolean;
285
+ showCount?: boolean;
286
+ avatarClassName?: string;
287
+ segmentedOptions?: string[] | {
288
+ tooltip: string;
289
+ label: string;
290
+ value: string;
291
+ }[];
292
+ manageRadioButton?: boolean;
293
+ cardClassname?: string;
294
+ autoFocus?: boolean;
295
+ titleClassName?: string;
296
+ fileType?: string[];
297
+ fileSize?: number;
298
+ allowOne?: boolean;
299
+ showSerialNumber?: boolean;
300
+ isTextSelect?: boolean;
301
+ autoSize?: boolean;
302
+ rowClick?: boolean;
303
+ dropdownRender?: (menu: ReactElement<string | JSXElementConstructor<string>>) => ReactElement<string | JSXElementConstructor<string>>;
304
+ isopen?: boolean;
305
+ clickedVal?: string;
306
+ customColor?: boolean;
145
307
  };
146
308
  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,3 +21,27 @@ 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';
42
+ export * from './Components/GoogleMapWidget';
43
+ export * from './Components/AntdButton';
44
+ export * from './Components/DisplayTimeline';
45
+ export * from './Components/DateRangeSegments';
46
+ export * from './Components/DropdownElement';
47
+ export * from './Components/ImageUpload';