@apexcura/ui-components 0.0.15-Beta4 → 0.0.15-Beta40

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