@apexcura/ui-components 0.0.16-Beta20 → 0.0.16-Beta201

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 (43) hide show
  1. package/dist/Components/AbhaNumberComponent.d.ts +3 -0
  2. package/dist/Components/Button.d.ts +3 -0
  3. package/dist/Components/Checkbox.d.ts +3 -0
  4. package/dist/Components/ColorPickerElement.d.ts +3 -0
  5. package/dist/Components/CustomStepper.d.ts +3 -0
  6. package/dist/Components/DatePicker.d.ts +3 -0
  7. package/dist/Components/DateRangePickerElement.d.ts +3 -0
  8. package/dist/Components/DivContainer.d.ts +3 -0
  9. package/dist/Components/DropDownGroup.d.ts +19 -0
  10. package/dist/Components/Editor.d.ts +0 -0
  11. package/dist/Components/FilesUpload.d.ts +3 -0
  12. package/dist/Components/Image.d.ts +3 -0
  13. package/dist/Components/Navbar.d.ts +3 -0
  14. package/dist/Components/Notification.d.ts +3 -0
  15. package/dist/Components/NotificationAlert.d.ts +3 -0
  16. package/dist/Components/NumberElement.d.ts +3 -0
  17. package/dist/Components/OtpElement.d.ts +3 -0
  18. package/dist/Components/PasswordElement.d.ts +3 -0
  19. package/dist/Components/Profile.d.ts +3 -0
  20. package/dist/Components/RadioElement.d.ts +3 -0
  21. package/dist/Components/SelectElement.d.ts +3 -0
  22. package/dist/Components/Sidebar.d.ts +4 -0
  23. package/dist/Components/SingleCheckbox.d.ts +3 -0
  24. package/dist/Components/SpanElement.d.ts +3 -0
  25. package/dist/Components/SwitchElement.d.ts +3 -0
  26. package/dist/Components/TableElement.d.ts +11 -0
  27. package/dist/Components/TabsElement.d.ts +3 -0
  28. package/dist/Components/TextElement.d.ts +5 -0
  29. package/dist/Components/TextareaElement.d.ts +3 -0
  30. package/dist/Types/types.d.ts +164 -0
  31. package/dist/constants/icons.d.ts +4 -0
  32. package/dist/index.d.ts +25 -170
  33. package/dist/index.js +3 -1831
  34. package/dist/index.js.LICENSE.txt +1537 -0
  35. package/dist/index.js.map +1 -0
  36. package/dist/report.html +39 -0
  37. package/package.json +52 -59
  38. package/.env.defaults +0 -2
  39. package/dist/index.d.mts +0 -170
  40. package/dist/index.mjs +0 -1783
  41. package/jest.config.js +0 -10
  42. package/postcss.config.js +0 -7
  43. package/tailwind.config.js +0 -9
@@ -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,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const ButtonElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const CheckboxElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const ColorPickerElement: (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;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const DatePickerElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const DateRangePickerElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const DivContainer: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ type dropDownValueProps = {
4
+ firstValue: {
5
+ key?: string | undefined;
6
+ label?: string | undefined;
7
+ value?: string | undefined;
8
+ } | undefined;
9
+ secondValue: {
10
+ key?: string | undefined;
11
+ label?: string | undefined;
12
+ value?: string | undefined;
13
+ } | undefined;
14
+ };
15
+ type dropDownGroupProps = ElementType & {
16
+ value?: dropDownValueProps;
17
+ };
18
+ export declare const DropDownGroup: (props: dropDownGroupProps) => React.JSX.Element;
19
+ export {};
File without changes
@@ -0,0 +1,3 @@
1
+ import { ElementType } from '../Types/types';
2
+ import React from 'react';
3
+ export declare const FileUpload: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const Image: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const Navbar: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const Notification: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const NotificationAlert: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const NumberElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const OtpElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const PasswordElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const Profile: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const RadioElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const SelectElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
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 SingleCheckbox: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const SpanElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const SwitchElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ interface PaginationType {
4
+ page?: number;
5
+ pageSize?: number;
6
+ }
7
+ interface TableElementProps extends ElementType {
8
+ value?: PaginationType | null;
9
+ }
10
+ export declare const TableElement: (props: TableElementProps) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ export declare const TabsElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ElementType } from '../Types/types';
3
+ import '../styles/sidebar.css';
4
+ import '../styles/index.css';
5
+ 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 TextareaElement: (props: ElementType) => React.JSX.Element;
@@ -0,0 +1,164 @@
1
+ import { UploadFile } from 'antd';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ import { TooltipPlacement } from 'antd/es/tooltip';
4
+ import { CSSProperties } from 'react';
5
+ type PaginationType = {
6
+ page?: number;
7
+ pageSize?: number;
8
+ };
9
+ type dropDownValueProps = {
10
+ firstValue: {
11
+ key?: string | undefined;
12
+ label?: string | undefined;
13
+ value?: string | undefined;
14
+ } | undefined;
15
+ secondValue: {
16
+ key?: string | undefined;
17
+ label?: string | undefined;
18
+ value?: string | undefined;
19
+ } | undefined;
20
+ };
21
+ type radioValueProps = {
22
+ value: {
23
+ key?: string | undefined;
24
+ label?: string | undefined;
25
+ value?: string | undefined;
26
+ } | undefined;
27
+ };
28
+ export type ElementType = {
29
+ active?: number;
30
+ visitedClassName?: string;
31
+ accept?: string | undefined;
32
+ max_count?: number | undefined;
33
+ multiple?: boolean | undefined;
34
+ activeClassName?: string;
35
+ radioGroupClassName?: string | undefined;
36
+ selectedStyle?: boolean;
37
+ style?: CSSProperties;
38
+ firstValue?: string;
39
+ secondValue?: string;
40
+ className?: string | undefined;
41
+ placeholder?: string;
42
+ addonBefore?: React.ReactNode;
43
+ defaultValue?: string;
44
+ disabled?: boolean;
45
+ prefix?: React.ReactNode;
46
+ type?: string;
47
+ size?: SizeType;
48
+ errorText?: string;
49
+ errorClassName?: string;
50
+ value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | PaginationType | dropDownValueProps | radioValueProps;
51
+ status?: 'error' | 'warning';
52
+ styles?: React.CSSProperties;
53
+ variant?: 'outlined' | 'borderless' | 'filled';
54
+ label?: string;
55
+ name?: string;
56
+ suffix?: React.ReactNode;
57
+ maxLength?: number;
58
+ options?: {
59
+ key?: string;
60
+ label?: string;
61
+ value?: string;
62
+ icon?: string;
63
+ }[];
64
+ firstOptions?: {
65
+ key?: string;
66
+ label: string;
67
+ value: string;
68
+ }[];
69
+ secondOptions?: {
70
+ key?: string;
71
+ label?: string;
72
+ value?: string;
73
+ }[];
74
+ firstPlaceholder?: string;
75
+ secondPlaceholder?: string;
76
+ view?: boolean;
77
+ enabled_dates?: string;
78
+ onChange?: (value: string | number | boolean | object | object[] | undefined) => void;
79
+ onClick?: () => void;
80
+ dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
81
+ id?: number;
82
+ thead?: {
83
+ _id?: string;
84
+ name?: string;
85
+ label?: string;
86
+ visible?: boolean;
87
+ required?: boolean;
88
+ key?: string;
89
+ render?: (text: string) => React.JSX.Element;
90
+ ellipsis?: boolean;
91
+ }[];
92
+ tbody?: {
93
+ _id?: string;
94
+ name?: string;
95
+ label?: string;
96
+ element?: string;
97
+ type?: string;
98
+ value?: boolean;
99
+ }[];
100
+ optionType?: string;
101
+ selectedClassName?: string;
102
+ action?: React.MouseEventHandler<HTMLElement> | string;
103
+ listClassName?: string;
104
+ listItemClassName?: string;
105
+ img?: string;
106
+ items?: {
107
+ _id?: string;
108
+ id?: number;
109
+ key?: number | string;
110
+ element?: string;
111
+ icon?: string;
112
+ label?: string;
113
+ active?: number;
114
+ text?: string;
115
+ time?: string;
116
+ name?: string;
117
+ y?: number;
118
+ color?: string;
119
+ }[];
120
+ primaryText?: string;
121
+ secondaryText?: string;
122
+ count?: number;
123
+ icon?: string;
124
+ placement?: TooltipPlacement;
125
+ profileImage?: string;
126
+ buttonClassName?: string;
127
+ profileImageClassName?: string;
128
+ profileSubClassName?: string;
129
+ subContainerClassName?: string;
130
+ element?: string;
131
+ secondTextClassName?: string;
132
+ iconsClassName?: string;
133
+ labelClassName?: string;
134
+ containerClassName?: string;
135
+ isSVGStylesOverride?: boolean;
136
+ rowSelection?: string;
137
+ length?: number;
138
+ imgClassName?: string;
139
+ loading?: boolean;
140
+ fillText1?: string;
141
+ fillText2?: string;
142
+ pagination?: boolean;
143
+ required?: boolean;
144
+ is_detail?: boolean;
145
+ checkedChildren?: string;
146
+ unCheckedChildren?: string;
147
+ dateTime?: string;
148
+ isDateTime?: boolean;
149
+ minRows?: number;
150
+ maxRows?: number;
151
+ isSearch?: boolean;
152
+ mode?: 'multiple' | 'tags' | undefined;
153
+ picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
154
+ weekrange?: boolean;
155
+ message?: string;
156
+ isStatus?: boolean;
157
+ isDelete?: boolean;
158
+ description?: string;
159
+ notificationType?: 'success' | 'info' | 'warning' | 'error';
160
+ showProgress?: boolean;
161
+ isLoading?: boolean;
162
+ isNotChatbot?: boolean;
163
+ };
164
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const icons: {
3
+ [key: string]: React.ReactNode;
4
+ };
package/dist/index.d.ts CHANGED
@@ -1,170 +1,25 @@
1
- import React$1, { CSSProperties } from 'react';
2
- import { SizeType } from 'antd/es/config-provider/SizeContext';
3
- import { UploadFile } from 'antd/lib/upload/interface';
4
-
5
- type pagenationType = {
6
- page?: number;
7
- pageSize?: number;
8
- };
9
- type ElementType = {
10
- [x: string]: any;
11
- selectedStyle?: boolean;
12
- style?: CSSProperties;
13
- className?: string | undefined;
14
- placeholder?: string;
15
- addonBefore?: React.ReactNode;
16
- defaultValue?: string;
17
- disabled?: boolean;
18
- prefix?: React.ReactNode;
19
- type?: string;
20
- checkedChildren?: string;
21
- unCheckedChildren?: string;
22
- firstValue?: string;
23
- secondValue?: string;
24
- size?: SizeType;
25
- value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
26
- status?: "error" | "warning";
27
- styles?: React.CSSProperties;
28
- variant?: "outlined" | "borderless" | "filled";
29
- label?: string;
30
- name?: string;
31
- suffix?: React.ReactNode;
32
- maxLength?: number;
33
- fieldNames?: any[];
34
- fields?: any[];
35
- schema?: any[];
36
- options?: any[];
37
- firstOptions?: any[];
38
- secondOptions?: any[];
39
- firstPlaceholder?: string;
40
- secondPlaceholder?: string;
41
- enabled_dates?: string;
42
- view?: boolean;
43
- onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
44
- onClick?: () => void;
45
- dropDownOptions?: any[];
46
- id?: number;
47
- thead?: any[];
48
- tbody?: any[];
49
- variable_data?: any[];
50
- optionType?: string;
51
- selectedClassName?: string;
52
- action?: React.MouseEventHandler<HTMLElement> | string;
53
- listClassName?: string;
54
- listItemClassName?: string;
55
- img?: string;
56
- items?: any[];
57
- primaryText?: string;
58
- secondaryText?: string;
59
- count?: number;
60
- icon?: string | any;
61
- placement?: string;
62
- profileImage?: string;
63
- buttonClassName?: string;
64
- profileImageClassName?: string;
65
- profileSubClassName?: string;
66
- subContainerClassName?: string;
67
- element?: string;
68
- secondTextClassName?: string;
69
- iconsClassName?: string;
70
- labelClassName?: string;
71
- containerClassName?: string;
72
- selectBefore?: any[];
73
- selectAfter?: any[];
74
- isSVGStylesOverride?: boolean;
75
- rowSelection?: boolean;
76
- length?: number;
77
- imgClassName?: string;
78
- loading?: boolean;
79
- fillText1?: string;
80
- fillText2?: string;
81
- labels?: any[];
82
- data?: any[];
83
- pagination?: boolean;
84
- is_detail?: boolean;
85
- dateTime?: string;
86
- minRows?: number;
87
- maxRows?: number;
88
- mode?: "multiple" | "tags" | undefined;
89
- picker?: "date" | "week" | "month" | "quarter" | "year";
90
- weekrange?: boolean;
91
- message?: string;
92
- description?: string;
93
- notificationType?: "success" | "info" | "warning" | "error";
94
- showProgress?: boolean;
95
- ellipsis?: boolean;
96
- };
97
-
98
- declare const TextElement: (props: ElementType) => React$1.JSX.Element;
99
-
100
- declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
101
-
102
- declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
103
-
104
- declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
105
-
106
- declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
107
-
108
- declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
109
-
110
- declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
111
-
112
- declare const CkEditor: (props: ElementType) => React$1.JSX.Element;
113
-
114
- declare const Editor: (props: ElementType) => React$1.JSX.Element;
115
-
116
- declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
117
-
118
- declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
119
-
120
- declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
121
-
122
- declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
123
-
124
- declare const Sidebar: (props: ElementType) => React$1.JSX.Element;
125
-
126
- declare const Navbar: (props: ElementType) => React$1.JSX.Element;
127
-
128
- declare const TableElement: (props: ElementType) => React$1.JSX.Element;
129
-
130
- declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
131
-
132
- declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
133
-
134
- declare const Image: (props: ElementType) => React$1.JSX.Element;
135
-
136
- declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
137
-
138
- declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
139
-
140
- declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
141
-
142
- declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
143
-
144
- declare const SwitchElement: (props: ElementType) => React$1.JSX.Element;
145
-
146
- declare const Upload: (props: ElementType) => React$1.JSX.Element;
147
-
148
- declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
149
-
150
- declare const CircleDonut: (props: ElementType) => React$1.JSX.Element;
151
-
152
- declare const SemiCircleDonut: (props: ElementType) => React$1.JSX.Element;
153
-
154
- declare const HorizontalBarChart: (props: ElementType) => React$1.JSX.Element;
155
-
156
- declare const LineChart: (props: ElementType) => React$1.JSX.Element;
157
-
158
- declare const DoubleBarChart: (props: ElementType) => React$1.JSX.Element;
159
-
160
- declare const BarChart: (props: ElementType) => React$1.JSX.Element;
161
-
162
- declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
163
-
164
- declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
165
-
166
- declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
167
-
168
- declare const TooltipElement: (props: ElementType) => React$1.JSX.Element;
169
-
170
- export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, Editor, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, TooltipElement, Upload };
1
+ export * from './Components/TextElement';
2
+ export * from './Components/PasswordElement';
3
+ export * from './Components/NumberElement';
4
+ export * from './Components/TextareaElement';
5
+ export * from './Components/SelectElement';
6
+ export * from './Components/RadioElement';
7
+ export * from './Components/Checkbox';
8
+ export * from './Components/Button';
9
+ export * from './Components/Sidebar';
10
+ export * from './Components/Navbar';
11
+ export * from './Components/TableElement';
12
+ export * from './Components/DatePicker';
13
+ export * from './Components/DateRangePickerElement';
14
+ export * from './Components/Image';
15
+ export * from './Components/SingleCheckbox';
16
+ export * from './Components/DropDownGroup';
17
+ export * from './Components/FilesUpload';
18
+ export * from './Components/TabsElement';
19
+ export * from './Components/SwitchElement';
20
+ export * from './Components/OtpElement';
21
+ export * from './Components/DivContainer';
22
+ export * from './Components/ColorPickerElement';
23
+ export * from './Components/NotificationAlert';
24
+ export * from './Components/CustomStepper';
25
+ export * from './Components/AbhaNumberComponent';