@apexcura/ui-components 0.0.15-Beta5 → 0.0.15-Beta51

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/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
1
  import React$1 from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
+ import { CheckboxOptionType } from 'antd';
4
5
 
5
- type ElementType = {
6
+ type ElementType$1 = {
6
7
  [x: string]: any;
7
8
  selectedStyle?: boolean;
8
9
  style?: boolean;
@@ -13,6 +14,8 @@ type ElementType = {
13
14
  disabled?: boolean;
14
15
  prefix?: React.ReactNode;
15
16
  type?: string;
17
+ firstValue?: string;
18
+ secondValue?: string;
16
19
  size?: SizeType;
17
20
  value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
18
21
  status?: "error" | "warning";
@@ -28,6 +31,9 @@ type ElementType = {
28
31
  options?: any[];
29
32
  firstOptions?: any[];
30
33
  secondOptions?: any[];
34
+ firstPlaceholder?: string;
35
+ secondPlaceholder?: string;
36
+ enabled_dates?: string;
31
37
  view?: boolean;
32
38
  onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
33
39
  onClick?: () => void;
@@ -46,7 +52,7 @@ type ElementType = {
46
52
  primaryText?: string;
47
53
  secondaryText?: string;
48
54
  count?: number;
49
- icon?: string;
55
+ icon?: string | any;
50
56
  placement?: string;
51
57
  profileImage?: string;
52
58
  buttonClassName?: string;
@@ -65,61 +71,112 @@ type ElementType = {
65
71
  length?: number;
66
72
  imgClassName?: string;
67
73
  loading?: boolean;
74
+ fillText1?: string;
75
+ fillText2?: string;
76
+ labels?: any[];
77
+ data?: any[];
78
+ pagination?: boolean;
79
+ is_detail?: boolean;
80
+ dateTime?: string;
81
+ minRows?: number;
82
+ maxRows?: number;
83
+ mode?: "multiple" | "tags" | undefined;
84
+ picker?: "date" | "week" | "month" | "quarter" | "year";
85
+ weekrange?: boolean;
86
+ message?: string;
87
+ description?: string;
88
+ notificationType?: "success" | "info" | "warning" | "error";
89
+ showProgress?: boolean;
68
90
  };
69
91
 
70
- declare const TextElement: (props: ElementType) => React$1.JSX.Element;
92
+ declare const TextElement: (props: ElementType$1) => React$1.JSX.Element;
71
93
 
72
- declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
94
+ declare const PasswordElement: (props: ElementType$1) => React$1.JSX.Element;
73
95
 
74
- declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
96
+ declare const NumberElement: (props: ElementType$1) => React$1.JSX.Element;
75
97
 
76
- declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
98
+ declare const TextareaElement: (props: ElementType$1) => React$1.JSX.Element;
77
99
 
78
- declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
100
+ declare const SelectElement: (props: ElementType$1) => React$1.JSX.Element;
79
101
 
80
- declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
102
+ declare const RadioElement: (props: ElementType$1) => React$1.JSX.Element;
81
103
 
104
+ type CheckboxValueType = string | undefined;
105
+ interface OptionType extends CheckboxOptionType {
106
+ value: CheckboxValueType;
107
+ }
108
+ interface ElementType {
109
+ options: OptionType[];
110
+ onChange?: (selectedOptions: OptionType[]) => void;
111
+ disabled?: boolean;
112
+ name?: string;
113
+ styles?: React$1.CSSProperties;
114
+ className?: string;
115
+ }
82
116
  declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
83
117
 
84
- interface ElementExecuterProps extends ElementType {
118
+ interface ElementExecuterProps extends ElementType$1 {
85
119
  onChange: (value: string | number | object | boolean | any[] | undefined) => void;
86
120
  }
87
121
  declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
88
122
 
89
- declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
123
+ declare const SingleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
90
124
 
91
- declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
125
+ declare const MultipleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
92
126
 
93
- declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
127
+ declare const ButtonElement: (props: ElementType$1) => React$1.JSX.Element;
94
128
 
95
- declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
129
+ declare const AddMoreTable: (props: ElementType$1) => React$1.JSX.Element;
96
130
 
97
- declare const Sidebar: (props: ElementType) => React$1.JSX.Element;
131
+ declare const Sidebar: (props: ElementType$1) => React$1.JSX.Element;
98
132
 
99
- declare const Navbar: (props: ElementType) => React$1.JSX.Element;
133
+ declare const Navbar: (props: ElementType$1) => React$1.JSX.Element;
100
134
 
101
- declare const TableElement: (props: ElementType) => React$1.JSX.Element;
135
+ interface PaginationType {
136
+ page?: number;
137
+ pageSize?: number;
138
+ }
139
+ interface TableElementProps extends ElementType$1 {
140
+ value?: PaginationType;
141
+ }
142
+ declare const TableElement: (props: TableElementProps) => React$1.JSX.Element;
102
143
 
103
- declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
144
+ declare const DatePickerElement: (props: ElementType$1) => React$1.JSX.Element;
104
145
 
105
- declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
146
+ declare const DateRangePickerElement: (props: ElementType$1) => React$1.JSX.Element;
106
147
 
107
- declare const Image: (props: ElementType) => React$1.JSX.Element;
148
+ declare const Image: (props: ElementType$1) => React$1.JSX.Element;
108
149
 
109
- declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
150
+ declare const SingleCheckbox: (props: ElementType$1) => React$1.JSX.Element;
110
151
 
111
- declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
152
+ declare const DropDownGroup: (props: ElementType$1) => React$1.JSX.Element;
112
153
 
113
- declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
154
+ declare const FileUpload: (props: ElementType$1) => React$1.JSX.Element;
114
155
 
115
- declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
156
+ declare const TabsElement: (props: ElementType$1) => React$1.JSX.Element;
116
157
 
117
158
  declare const SwitchElement: () => React$1.JSX.Element;
118
159
 
119
- declare const Upload: (props: ElementType) => React$1.JSX.Element;
160
+ declare const Upload: (props: ElementType$1) => React$1.JSX.Element;
161
+
162
+ declare const OtpElement: (props: ElementType$1) => React$1.JSX.Element;
163
+
164
+ declare const CircleDonut: (props: ElementType$1) => React$1.JSX.Element;
165
+
166
+ declare const SemiCircleDonut: (props: ElementType$1) => React$1.JSX.Element;
167
+
168
+ declare const HorizontalBarChart: (props: ElementType$1) => React$1.JSX.Element;
169
+
170
+ declare const LineChart: (props: ElementType$1) => React$1.JSX.Element;
171
+
172
+ declare const DoubleBarChart: (props: ElementType$1) => React$1.JSX.Element;
173
+
174
+ declare const BarChart: (props: ElementType$1) => React$1.JSX.Element;
175
+
176
+ declare const DivContainer: (props: ElementType$1) => React$1.JSX.Element;
120
177
 
121
- declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
178
+ declare const ColorPickerElement: (props: ElementType$1) => React$1.JSX.Element;
122
179
 
123
- declare const Donut: (props: ElementType) => React$1.JSX.Element;
180
+ declare const NotificationAlert: (props: ElementType$1) => React$1.JSX.Element;
124
181
 
125
- export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
182
+ export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import React$1 from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
+ import { CheckboxOptionType } from 'antd';
4
5
 
5
- type ElementType = {
6
+ type ElementType$1 = {
6
7
  [x: string]: any;
7
8
  selectedStyle?: boolean;
8
9
  style?: boolean;
@@ -13,6 +14,8 @@ type ElementType = {
13
14
  disabled?: boolean;
14
15
  prefix?: React.ReactNode;
15
16
  type?: string;
17
+ firstValue?: string;
18
+ secondValue?: string;
16
19
  size?: SizeType;
17
20
  value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
18
21
  status?: "error" | "warning";
@@ -28,6 +31,9 @@ type ElementType = {
28
31
  options?: any[];
29
32
  firstOptions?: any[];
30
33
  secondOptions?: any[];
34
+ firstPlaceholder?: string;
35
+ secondPlaceholder?: string;
36
+ enabled_dates?: string;
31
37
  view?: boolean;
32
38
  onChange?: (value: string | number | boolean | object | any[] | undefined) => void;
33
39
  onClick?: () => void;
@@ -46,7 +52,7 @@ type ElementType = {
46
52
  primaryText?: string;
47
53
  secondaryText?: string;
48
54
  count?: number;
49
- icon?: string;
55
+ icon?: string | any;
50
56
  placement?: string;
51
57
  profileImage?: string;
52
58
  buttonClassName?: string;
@@ -65,61 +71,112 @@ type ElementType = {
65
71
  length?: number;
66
72
  imgClassName?: string;
67
73
  loading?: boolean;
74
+ fillText1?: string;
75
+ fillText2?: string;
76
+ labels?: any[];
77
+ data?: any[];
78
+ pagination?: boolean;
79
+ is_detail?: boolean;
80
+ dateTime?: string;
81
+ minRows?: number;
82
+ maxRows?: number;
83
+ mode?: "multiple" | "tags" | undefined;
84
+ picker?: "date" | "week" | "month" | "quarter" | "year";
85
+ weekrange?: boolean;
86
+ message?: string;
87
+ description?: string;
88
+ notificationType?: "success" | "info" | "warning" | "error";
89
+ showProgress?: boolean;
68
90
  };
69
91
 
70
- declare const TextElement: (props: ElementType) => React$1.JSX.Element;
92
+ declare const TextElement: (props: ElementType$1) => React$1.JSX.Element;
71
93
 
72
- declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
94
+ declare const PasswordElement: (props: ElementType$1) => React$1.JSX.Element;
73
95
 
74
- declare const NumberElement: (props: ElementType) => React$1.JSX.Element;
96
+ declare const NumberElement: (props: ElementType$1) => React$1.JSX.Element;
75
97
 
76
- declare const TextareaElement: (props: ElementType) => React$1.JSX.Element;
98
+ declare const TextareaElement: (props: ElementType$1) => React$1.JSX.Element;
77
99
 
78
- declare const SelectElement: (props: ElementType) => React$1.JSX.Element;
100
+ declare const SelectElement: (props: ElementType$1) => React$1.JSX.Element;
79
101
 
80
- declare const RadioElement: (props: ElementType) => React$1.JSX.Element;
102
+ declare const RadioElement: (props: ElementType$1) => React$1.JSX.Element;
81
103
 
104
+ type CheckboxValueType = string | undefined;
105
+ interface OptionType extends CheckboxOptionType {
106
+ value: CheckboxValueType;
107
+ }
108
+ interface ElementType {
109
+ options: OptionType[];
110
+ onChange?: (selectedOptions: OptionType[]) => void;
111
+ disabled?: boolean;
112
+ name?: string;
113
+ styles?: React$1.CSSProperties;
114
+ className?: string;
115
+ }
82
116
  declare const CheckboxElement: (props: ElementType) => React$1.JSX.Element;
83
117
 
84
- interface ElementExecuterProps extends ElementType {
118
+ interface ElementExecuterProps extends ElementType$1 {
85
119
  onChange: (value: string | number | object | boolean | any[] | undefined) => void;
86
120
  }
87
121
  declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
88
122
 
89
- declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
123
+ declare const SingleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
90
124
 
91
- declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
125
+ declare const MultipleSelectElement: (props: ElementType$1) => React$1.JSX.Element;
92
126
 
93
- declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
127
+ declare const ButtonElement: (props: ElementType$1) => React$1.JSX.Element;
94
128
 
95
- declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
129
+ declare const AddMoreTable: (props: ElementType$1) => React$1.JSX.Element;
96
130
 
97
- declare const Sidebar: (props: ElementType) => React$1.JSX.Element;
131
+ declare const Sidebar: (props: ElementType$1) => React$1.JSX.Element;
98
132
 
99
- declare const Navbar: (props: ElementType) => React$1.JSX.Element;
133
+ declare const Navbar: (props: ElementType$1) => React$1.JSX.Element;
100
134
 
101
- declare const TableElement: (props: ElementType) => React$1.JSX.Element;
135
+ interface PaginationType {
136
+ page?: number;
137
+ pageSize?: number;
138
+ }
139
+ interface TableElementProps extends ElementType$1 {
140
+ value?: PaginationType;
141
+ }
142
+ declare const TableElement: (props: TableElementProps) => React$1.JSX.Element;
102
143
 
103
- declare const DatePickerElement: (props: ElementType) => React$1.JSX.Element;
144
+ declare const DatePickerElement: (props: ElementType$1) => React$1.JSX.Element;
104
145
 
105
- declare const DateRangePickerElement: (props: ElementType) => React$1.JSX.Element;
146
+ declare const DateRangePickerElement: (props: ElementType$1) => React$1.JSX.Element;
106
147
 
107
- declare const Image: (props: ElementType) => React$1.JSX.Element;
148
+ declare const Image: (props: ElementType$1) => React$1.JSX.Element;
108
149
 
109
- declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
150
+ declare const SingleCheckbox: (props: ElementType$1) => React$1.JSX.Element;
110
151
 
111
- declare const DropDownGroup: (props: ElementType) => React$1.JSX.Element;
152
+ declare const DropDownGroup: (props: ElementType$1) => React$1.JSX.Element;
112
153
 
113
- declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
154
+ declare const FileUpload: (props: ElementType$1) => React$1.JSX.Element;
114
155
 
115
- declare const TabsElement: (props: ElementType) => React$1.JSX.Element;
156
+ declare const TabsElement: (props: ElementType$1) => React$1.JSX.Element;
116
157
 
117
158
  declare const SwitchElement: () => React$1.JSX.Element;
118
159
 
119
- declare const Upload: (props: ElementType) => React$1.JSX.Element;
160
+ declare const Upload: (props: ElementType$1) => React$1.JSX.Element;
161
+
162
+ declare const OtpElement: (props: ElementType$1) => React$1.JSX.Element;
163
+
164
+ declare const CircleDonut: (props: ElementType$1) => React$1.JSX.Element;
165
+
166
+ declare const SemiCircleDonut: (props: ElementType$1) => React$1.JSX.Element;
167
+
168
+ declare const HorizontalBarChart: (props: ElementType$1) => React$1.JSX.Element;
169
+
170
+ declare const LineChart: (props: ElementType$1) => React$1.JSX.Element;
171
+
172
+ declare const DoubleBarChart: (props: ElementType$1) => React$1.JSX.Element;
173
+
174
+ declare const BarChart: (props: ElementType$1) => React$1.JSX.Element;
175
+
176
+ declare const DivContainer: (props: ElementType$1) => React$1.JSX.Element;
120
177
 
121
- declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
178
+ declare const ColorPickerElement: (props: ElementType$1) => React$1.JSX.Element;
122
179
 
123
- declare const Donut: (props: ElementType) => React$1.JSX.Element;
180
+ declare const NotificationAlert: (props: ElementType$1) => React$1.JSX.Element;
124
181
 
125
- export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
182
+ export { AddMoreTable, BarChart, ButtonElement, CheckboxElement, CircleDonut, CkEditor, ColorPickerElement, DatePickerElement, DateRangePickerElement, DivContainer, DoubleBarChart, DropDownGroup, FileUpload, HorizontalBarChart, Image, LineChart, MultipleSelectElement, Navbar, NotificationAlert, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, SemiCircleDonut, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };