@apexcura/ui-components 0.0.16-Beta77 → 0.0.16-Beta771

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