@apexcura/ui-components 0.0.16-Beta6 → 0.0.16-Beta60

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.
package/.env.defaults ADDED
@@ -0,0 +1,2 @@
1
+ GOOGLE_CLIENT_ID=1234
2
+ GOOGLE_AUTH_ORIGINS=1234
package/dist/index.d.mts CHANGED
@@ -1,11 +1,16 @@
1
- import React$1 from 'react';
1
+ import React$1, { CSSProperties } from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
4
 
5
+ type pagenationType = {
6
+ page?: number;
7
+ pageSize?: number;
8
+ };
5
9
  type ElementType = {
6
10
  [x: string]: any;
11
+ required?: boolean;
7
12
  selectedStyle?: boolean;
8
- style?: boolean;
13
+ style?: CSSProperties;
9
14
  className?: string | undefined;
10
15
  placeholder?: string;
11
16
  addonBefore?: React.ReactNode;
@@ -13,8 +18,12 @@ type ElementType = {
13
18
  disabled?: boolean;
14
19
  prefix?: React.ReactNode;
15
20
  type?: string;
21
+ checkedChildren?: string;
22
+ unCheckedChildren?: string;
23
+ firstValue?: string;
24
+ secondValue?: string;
16
25
  size?: SizeType;
17
- value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
26
+ value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
18
27
  status?: "error" | "warning";
19
28
  styles?: React.CSSProperties;
20
29
  variant?: "outlined" | "borderless" | "filled";
@@ -28,6 +37,9 @@ type ElementType = {
28
37
  options?: any[];
29
38
  firstOptions?: any[];
30
39
  secondOptions?: any[];
40
+ firstPlaceholder?: string;
41
+ secondPlaceholder?: string;
42
+ enabled_dates?: string;
31
43
  view?: boolean;
32
44
  onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
33
45
  onClick?: () => void;
@@ -61,7 +73,7 @@ type ElementType = {
61
73
  selectBefore?: any[];
62
74
  selectAfter?: any[];
63
75
  isSVGStylesOverride?: boolean;
64
- rowSelection?: string;
76
+ rowSelection?: boolean;
65
77
  length?: number;
66
78
  imgClassName?: string;
67
79
  loading?: boolean;
@@ -77,6 +89,11 @@ type ElementType = {
77
89
  mode?: "multiple" | "tags" | undefined;
78
90
  picker?: "date" | "week" | "month" | "quarter" | "year";
79
91
  weekrange?: boolean;
92
+ message?: string;
93
+ description?: string;
94
+ notificationType?: "success" | "info" | "warning" | "error";
95
+ showProgress?: boolean;
96
+ ellipsis?: boolean;
80
97
  };
81
98
 
82
99
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
@@ -93,10 +110,9 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
93
110
 
94
111
  declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
95
112
 
96
- interface ElementExecuterProps extends ElementType {
97
- onChange: (value: string | number | object | boolean | any[] | undefined) => void;
98
- }
99
- declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
113
+ declare const CkEditor: (props: ElementType) => React$1.JSX.Element;
114
+
115
+ declare const Editor: (props: ElementType) => React$1.JSX.Element;
100
116
 
101
117
  declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
102
118
 
@@ -120,13 +136,28 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
120
136
 
121
137
  declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
122
138
 
123
- declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
139
+ type dropDownValueProps = {
140
+ firstValue: {
141
+ key?: string | undefined;
142
+ label?: string | undefined;
143
+ value?: string | undefined;
144
+ } | undefined;
145
+ secondValue: {
146
+ key?: string | undefined;
147
+ label?: string | undefined;
148
+ value?: string | undefined;
149
+ } | undefined;
150
+ };
151
+ type dropDownGroupProps = ElementType & {
152
+ value: dropDownValueProps;
153
+ };
154
+ declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
124
155
 
125
156
  declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
126
157
 
127
158
  declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
128
159
 
129
- declare const SwitchElement: () => React$1.JSX.Element;
160
+ declare const SwitchElement: (props: ElementType) => React$1.JSX.Element;
130
161
 
131
162
  declare const Upload: (props: ElementType) => React$1.JSX.Element;
132
163
 
@@ -148,4 +179,10 @@ declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
148
179
 
149
180
  declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
150
181
 
151
- export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
182
+ declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
183
+
184
+ declare const TooltipElement: (props: ElementType) => React$1.JSX.Element;
185
+
186
+ declare const DateTimePickerElement: (props: ElementType) => React$1.JSX.Element;
187
+
188
+ export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DateTimePickerElement, 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 };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,16 @@
1
- import React$1 from 'react';
1
+ import React$1, { CSSProperties } from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
4
 
5
+ type pagenationType = {
6
+ page?: number;
7
+ pageSize?: number;
8
+ };
5
9
  type ElementType = {
6
10
  [x: string]: any;
11
+ required?: boolean;
7
12
  selectedStyle?: boolean;
8
- style?: boolean;
13
+ style?: CSSProperties;
9
14
  className?: string | undefined;
10
15
  placeholder?: string;
11
16
  addonBefore?: React.ReactNode;
@@ -13,8 +18,12 @@ type ElementType = {
13
18
  disabled?: boolean;
14
19
  prefix?: React.ReactNode;
15
20
  type?: string;
21
+ checkedChildren?: string;
22
+ unCheckedChildren?: string;
23
+ firstValue?: string;
24
+ secondValue?: string;
16
25
  size?: SizeType;
17
- value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
26
+ value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile[] | pagenationType;
18
27
  status?: "error" | "warning";
19
28
  styles?: React.CSSProperties;
20
29
  variant?: "outlined" | "borderless" | "filled";
@@ -28,6 +37,9 @@ type ElementType = {
28
37
  options?: any[];
29
38
  firstOptions?: any[];
30
39
  secondOptions?: any[];
40
+ firstPlaceholder?: string;
41
+ secondPlaceholder?: string;
42
+ enabled_dates?: string;
31
43
  view?: boolean;
32
44
  onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
33
45
  onClick?: () => void;
@@ -61,7 +73,7 @@ type ElementType = {
61
73
  selectBefore?: any[];
62
74
  selectAfter?: any[];
63
75
  isSVGStylesOverride?: boolean;
64
- rowSelection?: string;
76
+ rowSelection?: boolean;
65
77
  length?: number;
66
78
  imgClassName?: string;
67
79
  loading?: boolean;
@@ -77,6 +89,11 @@ type ElementType = {
77
89
  mode?: "multiple" | "tags" | undefined;
78
90
  picker?: "date" | "week" | "month" | "quarter" | "year";
79
91
  weekrange?: boolean;
92
+ message?: string;
93
+ description?: string;
94
+ notificationType?: "success" | "info" | "warning" | "error";
95
+ showProgress?: boolean;
96
+ ellipsis?: boolean;
80
97
  };
81
98
 
82
99
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
@@ -93,10 +110,9 @@ declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
93
110
 
94
111
  declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
95
112
 
96
- interface ElementExecuterProps extends ElementType {
97
- onChange: (value: string | number | object | boolean | any[] | undefined) => void;
98
- }
99
- declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
113
+ declare const CkEditor: (props: ElementType) => React$1.JSX.Element;
114
+
115
+ declare const Editor: (props: ElementType) => React$1.JSX.Element;
100
116
 
101
117
  declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
102
118
 
@@ -120,13 +136,28 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
120
136
 
121
137
  declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
122
138
 
123
- declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
139
+ type dropDownValueProps = {
140
+ firstValue: {
141
+ key?: string | undefined;
142
+ label?: string | undefined;
143
+ value?: string | undefined;
144
+ } | undefined;
145
+ secondValue: {
146
+ key?: string | undefined;
147
+ label?: string | undefined;
148
+ value?: string | undefined;
149
+ } | undefined;
150
+ };
151
+ type dropDownGroupProps = ElementType & {
152
+ value: dropDownValueProps;
153
+ };
154
+ declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
124
155
 
125
156
  declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
126
157
 
127
158
  declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
128
159
 
129
- declare const SwitchElement: () => React$1.JSX.Element;
160
+ declare const SwitchElement: (props: ElementType) => React$1.JSX.Element;
130
161
 
131
162
  declare const Upload: (props: ElementType) => React$1.JSX.Element;
132
163
 
@@ -148,4 +179,10 @@ declare const DivContainer: (props: ElementType) => React$1.JSX.Element;
148
179
 
149
180
  declare const ColorPickerElement: (props: ElementType) => React$1.JSX.Element;
150
181
 
151
- export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
182
+ declare const NotificationAlert: (props: ElementType) => React$1.JSX.Element;
183
+
184
+ declare const TooltipElement: (props: ElementType) => React$1.JSX.Element;
185
+
186
+ declare const DateTimePickerElement: (props: ElementType) => React$1.JSX.Element;
187
+
188
+ export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DateTimePickerElement, 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 };