@apexcura/ui-components 0.0.16-Beta74 → 0.0.16-Beta740

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