@apexcura/ui-components 0.0.16-Beta75 → 0.0.16-Beta750

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;
@@ -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 {};
@@ -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,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,11 +1,12 @@
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
  }
7
8
  interface TableElementProps extends ElementType {
8
- value?: PaginationType;
9
+ value?: PaginationType | null;
9
10
  }
10
11
  export declare const TableElement: (props: TableElementProps) => React.JSX.Element;
11
12
  export {};
@@ -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,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,39 @@ 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
- value?: string | number | boolean | null | object | undefined | string[] | UploadFile[];
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
+ tooltip: string;
104
+ }[];
31
105
  options?: {
32
106
  key?: string;
33
107
  label?: string;
34
108
  value?: string;
109
+ icon?: string;
110
+ color?: string;
35
111
  }[];
36
112
  firstOptions?: {
37
113
  key?: string;
@@ -48,11 +124,11 @@ export type ElementType = {
48
124
  view?: boolean;
49
125
  enabled_dates?: string;
50
126
  onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
51
- onClick?: () => void;
127
+ onClick?: (value: string | number | boolean | object | object[] | undefined) => void;
52
128
  dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
53
129
  id?: number;
54
130
  thead?: {
55
- id: number;
131
+ _id?: string;
56
132
  name?: string;
57
133
  label?: string;
58
134
  visible?: boolean;
@@ -60,14 +136,32 @@ export type ElementType = {
60
136
  key?: string;
61
137
  render?: (text: string) => React.JSX.Element;
62
138
  ellipsis?: boolean;
139
+ sortable?: boolean;
140
+ filtered?: boolean;
141
+ filters?: {
142
+ text: string;
143
+ value: string;
144
+ }[];
145
+ fixed?: string | boolean | undefined;
146
+ disabled?: boolean;
63
147
  }[];
64
- tbody?: {
65
- id?: number;
148
+ childHead?: {
149
+ _id?: string;
66
150
  name?: string;
67
151
  label?: string;
68
- element?: string;
69
- type?: string;
152
+ visible?: boolean;
153
+ required?: boolean;
154
+ key?: string;
155
+ render?: (text: string) => React.JSX.Element;
156
+ ellipsis?: boolean;
157
+ sortable?: boolean;
158
+ filtered?: boolean;
159
+ filters?: {
160
+ text: string;
161
+ value: string;
162
+ }[];
70
163
  }[];
164
+ tbody?: ChildRecordType[];
71
165
  optionType?: string;
72
166
  selectedClassName?: string;
73
167
  action?: React.MouseEventHandler<HTMLElement> | string;
@@ -75,15 +169,23 @@ export type ElementType = {
75
169
  listItemClassName?: string;
76
170
  img?: string;
77
171
  items?: {
78
- element: string;
172
+ id?: number;
173
+ key?: number | string;
174
+ element?: string;
79
175
  icon?: string;
80
176
  label?: string;
81
- active?: boolean;
177
+ active?: number;
82
178
  text?: string;
83
179
  time?: string;
84
180
  name?: string;
85
181
  y?: number;
86
182
  color?: string;
183
+ isCount?: boolean;
184
+ count?: number;
185
+ isNewMenuItem?: boolean;
186
+ progress?: number;
187
+ className?: string;
188
+ contact?: string;
87
189
  }[];
88
190
  primaryText?: string;
89
191
  secondaryText?: string;
@@ -113,13 +215,40 @@ export type ElementType = {
113
215
  checkedChildren?: string;
114
216
  unCheckedChildren?: string;
115
217
  dateTime?: string;
218
+ isDateTime?: boolean;
116
219
  minRows?: number;
117
220
  maxRows?: number;
221
+ isSearch?: boolean;
118
222
  mode?: 'multiple' | 'tags' | undefined;
119
223
  picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
120
224
  weekrange?: boolean;
225
+ rangePresets?: boolean;
121
226
  message?: string;
227
+ isStatus?: boolean;
228
+ isDelete?: boolean;
122
229
  description?: string;
123
230
  notificationType?: 'success' | 'info' | 'warning' | 'error';
124
231
  showProgress?: boolean;
232
+ isLoading?: boolean;
233
+ isNotChatbot?: boolean;
234
+ allowClear?: boolean;
235
+ isBack?: boolean;
236
+ showCount?: boolean;
237
+ avatarClassName?: string;
238
+ segmentedOptions?: string[];
239
+ manageRadioButton?: boolean;
240
+ cardClassname?: string;
241
+ titleClassName?: string;
242
+ fileType?: string[];
243
+ fileSize?: number;
244
+ allowOne?: boolean;
245
+ showSerialNumber?: boolean;
246
+ isTextSelect?: boolean;
247
+ autoSize?: boolean;
248
+ rowClick?: boolean;
249
+ dropdownRender?: (menu: ReactElement<string | JSXElementConstructor<string>>) => ReactElement<string | JSXElementConstructor<string>>;
250
+ isopen?: boolean;
251
+ clickedVal?: string;
252
+ customColor?: boolean;
125
253
  };
254
+ 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';