@apexcura/ui-components 0.0.13-Beta26 → 0.0.13-Beta28

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.js CHANGED
@@ -58,7 +58,7 @@ module.exports = __toCommonJS(src_exports);
58
58
  var import_react = __toESM(require("react"));
59
59
  var import_antd = require("antd");
60
60
  var TextElement = (props) => {
61
- const handleChange = (e) => {
61
+ const handleChange2 = (e) => {
62
62
  if (props.onChange) {
63
63
  props.onChange(e.target.value);
64
64
  }
@@ -80,7 +80,7 @@ var TextElement = (props) => {
80
80
  variant: props.variant,
81
81
  name: props.name,
82
82
  onChange: (e) => {
83
- handleChange(e);
83
+ handleChange2(e);
84
84
  }
85
85
  }
86
86
  ));
@@ -95,22 +95,20 @@ var PasswordElement = (props) => {
95
95
  const handleVisibilityToggle = () => {
96
96
  setPasswordVisible((prev) => !prev);
97
97
  };
98
- const handleChange = (e) => {
98
+ const handleChange2 = (e) => {
99
99
  if (props.onChange) {
100
100
  props.onChange(e.target.value);
101
101
  }
102
102
  };
103
103
  const renderVisibilityIcon = (visible) => visible ? /* @__PURE__ */ import_react2.default.createElement(import_icons.EyeTwoTone, null) : /* @__PURE__ */ import_react2.default.createElement(import_icons.EyeInvisibleOutlined, null);
104
- const renderPasswordInput = () => /* @__PURE__ */ import_react2.default.createElement(
104
+ return /* @__PURE__ */ import_react2.default.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ import_react2.default.createElement("label", { className: props.labelClassName }, props.label), /* @__PURE__ */ import_react2.default.createElement(
105
105
  import_antd2.Input.Password,
106
106
  {
107
107
  placeholder: props.placeholder,
108
- prefix: props.prefix,
109
- addonBefore: props.addonBefore,
110
108
  className: props.className,
111
109
  type: props.type,
112
110
  onChange: (e) => {
113
- handleChange(e);
111
+ handleChange2(e);
114
112
  },
115
113
  iconRender: renderVisibilityIcon,
116
114
  visibilityToggle: {
@@ -118,15 +116,14 @@ var PasswordElement = (props) => {
118
116
  onVisibleChange: handleVisibilityToggle
119
117
  }
120
118
  }
121
- );
122
- return /* @__PURE__ */ import_react2.default.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ import_react2.default.createElement("label", { className: props.labelClassName }, props.label), /* @__PURE__ */ import_react2.default.createElement(import_antd2.Space, null, renderPasswordInput()));
119
+ ));
123
120
  };
124
121
 
125
122
  // src/Components/NumberElement.tsx
126
123
  var import_react3 = __toESM(require("react"));
127
124
  var import_antd3 = require("antd");
128
125
  var NumberElement = (props) => {
129
- const handleChange = (e) => {
126
+ const handleChange2 = (e) => {
130
127
  const newValue = e.target.value.replace(/[^0-9]/g, "");
131
128
  if (props.onChange) {
132
129
  props.onChange(newValue);
@@ -148,7 +145,7 @@ var NumberElement = (props) => {
148
145
  variant: props.variant,
149
146
  name: props.name,
150
147
  onChange: (e) => {
151
- handleChange(e);
148
+ handleChange2(e);
152
149
  }
153
150
  }
154
151
  ));
@@ -159,7 +156,7 @@ var import_react4 = __toESM(require("react"));
159
156
  var import_antd4 = require("antd");
160
157
  var { TextArea } = import_antd4.Input;
161
158
  var TextareaElement = (props) => {
162
- const handleChange = (e) => {
159
+ const handleChange2 = (e) => {
163
160
  if (props.onChange) {
164
161
  props.onChange(e.target.value);
165
162
  }
@@ -179,7 +176,7 @@ var TextareaElement = (props) => {
179
176
  showCount: true,
180
177
  maxLength: props.maxLength,
181
178
  onChange: (e) => {
182
- handleChange(e);
179
+ handleChange2(e);
183
180
  }
184
181
  }
185
182
  ));
@@ -196,7 +193,7 @@ var labelRender = (props) => {
196
193
  return /* @__PURE__ */ import_react5.default.createElement("span", null, "select gender");
197
194
  };
198
195
  var SelectElement = (props) => {
199
- const handleChange = (value) => {
196
+ const handleChange2 = (value) => {
200
197
  if (props.onChange) {
201
198
  props.onChange(value);
202
199
  }
@@ -215,7 +212,7 @@ var SelectElement = (props) => {
215
212
  style: props.styles,
216
213
  className: props.className,
217
214
  variant: props.variant,
218
- onChange: handleChange
215
+ onChange: handleChange2
219
216
  }
220
217
  );
221
218
  };
@@ -229,7 +226,7 @@ var RadioElement = (props) => {
229
226
  const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
230
227
  const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
231
228
  const optionType = props.optionType === "button" ? "button" : void 0;
232
- const handleChange = (option) => {
229
+ const handleChange2 = (option) => {
233
230
  console.log(option);
234
231
  setSelectedValue(option);
235
232
  setIsDisabled(true);
@@ -252,7 +249,7 @@ var RadioElement = (props) => {
252
249
  import_antd6.Radio,
253
250
  {
254
251
  onChange: () => {
255
- handleChange(option);
252
+ handleChange2(option);
256
253
  },
257
254
  key: option.value,
258
255
  value: option.value,
@@ -274,7 +271,7 @@ var defaultCheckedList = [];
274
271
  var CheckboxElement = (props) => {
275
272
  const [checkedList, setCheckedList] = (0, import_react7.useState)(defaultCheckedList);
276
273
  const checkAll = props.options && props.options.length === checkedList.length;
277
- const handleChange = (list) => {
274
+ const handleChange2 = (list) => {
278
275
  setCheckedList(list);
279
276
  if (props.onChange) {
280
277
  const selectedOptions = props.options && props.options.filter((option) => list.includes(option.value));
@@ -307,7 +304,7 @@ var CheckboxElement = (props) => {
307
304
  className: props.className,
308
305
  options: props.options,
309
306
  value: checkedList,
310
- onChange: handleChange
307
+ onChange: handleChange2
311
308
  }
312
309
  ));
313
310
  };
@@ -372,7 +369,7 @@ var onSearch = (value) => {
372
369
  };
373
370
  var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
374
371
  var SingleSelectElement = (props) => {
375
- const handleChange = (values) => {
372
+ const handleChange2 = (values) => {
376
373
  if (props.onChange) {
377
374
  const option = props.dropDownOptions?.find(
378
375
  (option2) => String(option2.title) === values
@@ -387,7 +384,7 @@ var SingleSelectElement = (props) => {
387
384
  showSearch: true,
388
385
  placeholder: props.placeholder,
389
386
  optionFilterProp: "children",
390
- onChange: handleChange,
387
+ onChange: handleChange2,
391
388
  onSearch,
392
389
  filterOption,
393
390
  options: props.dropDownOptions?.map((eachOption) => ({
@@ -403,7 +400,7 @@ var SingleSelectElement = (props) => {
403
400
  var import_react11 = __toESM(require("react"));
404
401
  var import_antd9 = require("antd");
405
402
  var MultipleSelectElement = (props) => {
406
- const handleChange = (values) => {
403
+ const handleChange2 = (values) => {
407
404
  if (props.onChange) {
408
405
  const selectedOptions = values.map((value) => {
409
406
  const option = props.dropDownOptions?.find((option2) => String(option2.title) === value);
@@ -417,7 +414,7 @@ var MultipleSelectElement = (props) => {
417
414
  {
418
415
  mode: "multiple",
419
416
  placeholder: props.placeholder,
420
- onChange: handleChange,
417
+ onChange: handleChange2,
421
418
  options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title), id: String(eachOption.id) }))
422
419
  }
423
420
  );
@@ -570,14 +567,14 @@ var AddMoreTable = (props) => {
570
567
  // src/Components/Sidebar.tsx
571
568
  var import_react14 = __toESM(require("react"));
572
569
  var Sidebar = (props) => {
573
- const handleChange = (item) => {
570
+ const handleChange2 = (item) => {
574
571
  if (props.onChange) {
575
572
  props.onChange(item);
576
573
  }
577
574
  };
578
575
  return /* @__PURE__ */ import_react14.default.createElement("div", { className: props.className, key: props.name }, /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement("img", { src: props.img, alt: "logo" })), /* @__PURE__ */ import_react14.default.createElement("ul", { className: props.listClassName }, props.items?.map((item) => {
579
576
  return /* @__PURE__ */ import_react14.default.createElement("li", { onClick: () => {
580
- handleChange(item);
577
+ handleChange2(item);
581
578
  }, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ import_react14.default.createElement("img", { src: item.icon, className: props.className }), /* @__PURE__ */ import_react14.default.createElement("p", null, item.label));
582
579
  })));
583
580
  };
@@ -703,7 +700,7 @@ var TableElement = (props) => {
703
700
  const { thead, tbody } = props;
704
701
  const [selectedRecord, setSelectedRecord] = (0, import_react21.useState)({});
705
702
  const [model, setModel] = (0, import_react21.useState)(false);
706
- const handleChange = (record) => {
703
+ const handleChange2 = (record) => {
707
704
  if (props.onChange) {
708
705
  props.onChange(record);
709
706
  }
@@ -753,7 +750,7 @@ var TableElement = (props) => {
753
750
  return {
754
751
  onClick: () => {
755
752
  setSelectedRecord(record);
756
- handleChange(record);
753
+ handleChange2(record);
757
754
  setModel(true);
758
755
  },
759
756
  style: { cursor: "pointer" }
@@ -770,7 +767,7 @@ var import_icons4 = require("@ant-design/icons");
770
767
  var import_moment = __toESM(require("moment"));
771
768
  var DatePickerElement = (props) => {
772
769
  const [date, setDate] = (0, import_react22.useState)(null);
773
- const handleChange = (date2, dateString) => {
770
+ const handleChange2 = (date2, dateString) => {
774
771
  console.log("date---------", date2);
775
772
  console.log("datestring", dateString);
776
773
  if (date2) {
@@ -810,7 +807,7 @@ var DatePickerElement = (props) => {
810
807
  placeholder: props.placeholder,
811
808
  value: date,
812
809
  variant: "borderless",
813
- onChange: handleChange
810
+ onChange: handleChange2
814
811
  }
815
812
  ), /* @__PURE__ */ import_react22.default.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ import_react22.default.createElement(import_icons4.RightOutlined, null)));
816
813
  };
@@ -821,7 +818,7 @@ var import_antd16 = require("antd");
821
818
  var import_dayjs = __toESM(require("dayjs"));
822
819
  var DateRangePickerElement = (props) => {
823
820
  const { RangePicker } = import_antd16.DatePicker;
824
- const handleChange = (dates, dateStrings) => {
821
+ const handleChange2 = (dates, dateStrings) => {
825
822
  if (dates && props.onChange) {
826
823
  props.onChange(dateStrings);
827
824
  } else {
@@ -834,7 +831,7 @@ var DateRangePickerElement = (props) => {
834
831
  { label: "Last 30 Days", value: [(0, import_dayjs.default)().add(-30, "d"), (0, import_dayjs.default)()] },
835
832
  { label: "Last 90 Days", value: [(0, import_dayjs.default)().add(-90, "d"), (0, import_dayjs.default)()] }
836
833
  ];
837
- return /* @__PURE__ */ import_react23.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react23.default.createElement(RangePicker, { presets: rangePresets, onChange: handleChange }));
834
+ return /* @__PURE__ */ import_react23.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react23.default.createElement(RangePicker, { presets: rangePresets, onChange: handleChange2 }));
838
835
  };
839
836
 
840
837
  // src/Components/UploadElement.tsx
@@ -873,19 +870,48 @@ var Image = (props) => {
873
870
  var import_react26 = __toESM(require("react"));
874
871
  var import_antd18 = require("antd");
875
872
  var SingleCheckbox = (props) => {
876
- const handleChange = (e) => {
873
+ const handleChange2 = (e) => {
877
874
  if (props.onChange) {
878
875
  props.onChange(e.target.checked);
879
876
  }
880
877
  };
881
- return /* @__PURE__ */ import_react26.default.createElement(import_antd18.Checkbox, { onChange: (e) => handleChange(e), className: props.className }, props.label);
878
+ return /* @__PURE__ */ import_react26.default.createElement(import_antd18.Checkbox, { onChange: (e) => handleChange2(e), className: props.className }, props.label);
882
879
  };
883
880
 
884
881
  // src/Components/MultiSelect.tsx
885
882
  var import_react27 = __toESM(require("react"));
886
883
  var import_antd19 = require("antd");
884
+ var options = [];
885
+ for (let i = 10; i < 36; i++) {
886
+ options.push({
887
+ value: i.toString(36) + i,
888
+ label: i.toString(36) + i
889
+ });
890
+ }
891
+ var handleChange = (value) => {
892
+ console.log(`Selected: ${value}`);
893
+ };
887
894
  var MultiSelect = (props) => {
888
- return /* @__PURE__ */ import_react27.default.createElement(import_antd19.Space, null, /* @__PURE__ */ import_react27.default.createElement(import_antd19.Select, { options: props.selectAfter }), /* @__PURE__ */ import_react27.default.createElement(import_antd19.Select, { options: props.selectAfter }));
895
+ return /* @__PURE__ */ import_react27.default.createElement("div", { style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray" } }, /* @__PURE__ */ import_react27.default.createElement(
896
+ import_antd19.Select,
897
+ {
898
+ defaultValue: "a1",
899
+ onChange: handleChange,
900
+ style: { width: 70, border: "none", borderRadius: 0 },
901
+ variant: "borderless",
902
+ options
903
+ }
904
+ ), /* @__PURE__ */ import_react27.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react27.default.createElement(
905
+ import_antd19.Select,
906
+ {
907
+ placeholder: "Please select",
908
+ defaultValue: ["a10"],
909
+ onChange: handleChange,
910
+ variant: "borderless",
911
+ style: { width: 70, borderRadius: 0, border: "0px none" },
912
+ options
913
+ }
914
+ ));
889
915
  };
890
916
  // Annotate the CommonJS export names for ESM import in node:
891
917
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import React from "react";
3
3
  import { Input as AntInput } from "antd";
4
4
  var TextElement = (props) => {
5
- const handleChange = (e) => {
5
+ const handleChange2 = (e) => {
6
6
  if (props.onChange) {
7
7
  props.onChange(e.target.value);
8
8
  }
@@ -24,7 +24,7 @@ var TextElement = (props) => {
24
24
  variant: props.variant,
25
25
  name: props.name,
26
26
  onChange: (e) => {
27
- handleChange(e);
27
+ handleChange2(e);
28
28
  }
29
29
  }
30
30
  ));
@@ -33,28 +33,26 @@ var TextElement = (props) => {
33
33
  // src/Components/PasswordElement.tsx
34
34
  import React2, { useState } from "react";
35
35
  import { EyeInvisibleOutlined, EyeTwoTone } from "@ant-design/icons";
36
- import { Input, Space } from "antd";
36
+ import { Input } from "antd";
37
37
  var PasswordElement = (props) => {
38
38
  const [passwordVisible, setPasswordVisible] = useState(false);
39
39
  const handleVisibilityToggle = () => {
40
40
  setPasswordVisible((prev) => !prev);
41
41
  };
42
- const handleChange = (e) => {
42
+ const handleChange2 = (e) => {
43
43
  if (props.onChange) {
44
44
  props.onChange(e.target.value);
45
45
  }
46
46
  };
47
47
  const renderVisibilityIcon = (visible) => visible ? /* @__PURE__ */ React2.createElement(EyeTwoTone, null) : /* @__PURE__ */ React2.createElement(EyeInvisibleOutlined, null);
48
- const renderPasswordInput = () => /* @__PURE__ */ React2.createElement(
48
+ return /* @__PURE__ */ React2.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ React2.createElement("label", { className: props.labelClassName }, props.label), /* @__PURE__ */ React2.createElement(
49
49
  Input.Password,
50
50
  {
51
51
  placeholder: props.placeholder,
52
- prefix: props.prefix,
53
- addonBefore: props.addonBefore,
54
52
  className: props.className,
55
53
  type: props.type,
56
54
  onChange: (e) => {
57
- handleChange(e);
55
+ handleChange2(e);
58
56
  },
59
57
  iconRender: renderVisibilityIcon,
60
58
  visibilityToggle: {
@@ -62,15 +60,14 @@ var PasswordElement = (props) => {
62
60
  onVisibleChange: handleVisibilityToggle
63
61
  }
64
62
  }
65
- );
66
- return /* @__PURE__ */ React2.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ React2.createElement("label", { className: props.labelClassName }, props.label), /* @__PURE__ */ React2.createElement(Space, null, renderPasswordInput()));
63
+ ));
67
64
  };
68
65
 
69
66
  // src/Components/NumberElement.tsx
70
67
  import React3 from "react";
71
68
  import { Input as AntInput2 } from "antd";
72
69
  var NumberElement = (props) => {
73
- const handleChange = (e) => {
70
+ const handleChange2 = (e) => {
74
71
  const newValue = e.target.value.replace(/[^0-9]/g, "");
75
72
  if (props.onChange) {
76
73
  props.onChange(newValue);
@@ -92,7 +89,7 @@ var NumberElement = (props) => {
92
89
  variant: props.variant,
93
90
  name: props.name,
94
91
  onChange: (e) => {
95
- handleChange(e);
92
+ handleChange2(e);
96
93
  }
97
94
  }
98
95
  ));
@@ -103,7 +100,7 @@ import React4 from "react";
103
100
  import { Input as Input2 } from "antd";
104
101
  var { TextArea } = Input2;
105
102
  var TextareaElement = (props) => {
106
- const handleChange = (e) => {
103
+ const handleChange2 = (e) => {
107
104
  if (props.onChange) {
108
105
  props.onChange(e.target.value);
109
106
  }
@@ -123,7 +120,7 @@ var TextareaElement = (props) => {
123
120
  showCount: true,
124
121
  maxLength: props.maxLength,
125
122
  onChange: (e) => {
126
- handleChange(e);
123
+ handleChange2(e);
127
124
  }
128
125
  }
129
126
  ));
@@ -140,7 +137,7 @@ var labelRender = (props) => {
140
137
  return /* @__PURE__ */ React5.createElement("span", null, "select gender");
141
138
  };
142
139
  var SelectElement = (props) => {
143
- const handleChange = (value) => {
140
+ const handleChange2 = (value) => {
144
141
  if (props.onChange) {
145
142
  props.onChange(value);
146
143
  }
@@ -159,7 +156,7 @@ var SelectElement = (props) => {
159
156
  style: props.styles,
160
157
  className: props.className,
161
158
  variant: props.variant,
162
- onChange: handleChange
159
+ onChange: handleChange2
163
160
  }
164
161
  );
165
162
  };
@@ -173,7 +170,7 @@ var RadioElement = (props) => {
173
170
  const [isDisabled, setIsDisabled] = useState2(props.disabled);
174
171
  const [selectedValue, setSelectedValue] = useState2(props.value);
175
172
  const optionType = props.optionType === "button" ? "button" : void 0;
176
- const handleChange = (option) => {
173
+ const handleChange2 = (option) => {
177
174
  console.log(option);
178
175
  setSelectedValue(option);
179
176
  setIsDisabled(true);
@@ -196,7 +193,7 @@ var RadioElement = (props) => {
196
193
  Radio,
197
194
  {
198
195
  onChange: () => {
199
- handleChange(option);
196
+ handleChange2(option);
200
197
  },
201
198
  key: option.value,
202
199
  value: option.value,
@@ -218,7 +215,7 @@ var defaultCheckedList = [];
218
215
  var CheckboxElement = (props) => {
219
216
  const [checkedList, setCheckedList] = useState3(defaultCheckedList);
220
217
  const checkAll = props.options && props.options.length === checkedList.length;
221
- const handleChange = (list) => {
218
+ const handleChange2 = (list) => {
222
219
  setCheckedList(list);
223
220
  if (props.onChange) {
224
221
  const selectedOptions = props.options && props.options.filter((option) => list.includes(option.value));
@@ -251,7 +248,7 @@ var CheckboxElement = (props) => {
251
248
  className: props.className,
252
249
  options: props.options,
253
250
  value: checkedList,
254
- onChange: handleChange
251
+ onChange: handleChange2
255
252
  }
256
253
  ));
257
254
  };
@@ -316,7 +313,7 @@ var onSearch = (value) => {
316
313
  };
317
314
  var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
318
315
  var SingleSelectElement = (props) => {
319
- const handleChange = (values) => {
316
+ const handleChange2 = (values) => {
320
317
  if (props.onChange) {
321
318
  const option = props.dropDownOptions?.find(
322
319
  (option2) => String(option2.title) === values
@@ -331,7 +328,7 @@ var SingleSelectElement = (props) => {
331
328
  showSearch: true,
332
329
  placeholder: props.placeholder,
333
330
  optionFilterProp: "children",
334
- onChange: handleChange,
331
+ onChange: handleChange2,
335
332
  onSearch,
336
333
  filterOption,
337
334
  options: props.dropDownOptions?.map((eachOption) => ({
@@ -347,7 +344,7 @@ var SingleSelectElement = (props) => {
347
344
  import React10 from "react";
348
345
  import { Select as Select3 } from "antd";
349
346
  var MultipleSelectElement = (props) => {
350
- const handleChange = (values) => {
347
+ const handleChange2 = (values) => {
351
348
  if (props.onChange) {
352
349
  const selectedOptions = values.map((value) => {
353
350
  const option = props.dropDownOptions?.find((option2) => String(option2.title) === value);
@@ -361,7 +358,7 @@ var MultipleSelectElement = (props) => {
361
358
  {
362
359
  mode: "multiple",
363
360
  placeholder: props.placeholder,
364
- onChange: handleChange,
361
+ onChange: handleChange2,
365
362
  options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title), id: String(eachOption.id) }))
366
363
  }
367
364
  );
@@ -514,14 +511,14 @@ var AddMoreTable = (props) => {
514
511
  // src/Components/Sidebar.tsx
515
512
  import React13 from "react";
516
513
  var Sidebar = (props) => {
517
- const handleChange = (item) => {
514
+ const handleChange2 = (item) => {
518
515
  if (props.onChange) {
519
516
  props.onChange(item);
520
517
  }
521
518
  };
522
519
  return /* @__PURE__ */ React13.createElement("div", { className: props.className, key: props.name }, /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("img", { src: props.img, alt: "logo" })), /* @__PURE__ */ React13.createElement("ul", { className: props.listClassName }, props.items?.map((item) => {
523
520
  return /* @__PURE__ */ React13.createElement("li", { onClick: () => {
524
- handleChange(item);
521
+ handleChange2(item);
525
522
  }, key: item.label, className: `${props.listItemClassName} ${item.active && props.activeClassName}` }, /* @__PURE__ */ React13.createElement("img", { src: item.icon, className: props.className }), /* @__PURE__ */ React13.createElement("p", null, item.label));
526
523
  })));
527
524
  };
@@ -647,7 +644,7 @@ var TableElement = (props) => {
647
644
  const { thead, tbody } = props;
648
645
  const [selectedRecord, setSelectedRecord] = useState5({});
649
646
  const [model, setModel] = useState5(false);
650
- const handleChange = (record) => {
647
+ const handleChange2 = (record) => {
651
648
  if (props.onChange) {
652
649
  props.onChange(record);
653
650
  }
@@ -697,7 +694,7 @@ var TableElement = (props) => {
697
694
  return {
698
695
  onClick: () => {
699
696
  setSelectedRecord(record);
700
- handleChange(record);
697
+ handleChange2(record);
701
698
  setModel(true);
702
699
  },
703
700
  style: { cursor: "pointer" }
@@ -714,7 +711,7 @@ import { LeftOutlined, RightOutlined } from "@ant-design/icons";
714
711
  import moment from "moment";
715
712
  var DatePickerElement = (props) => {
716
713
  const [date, setDate] = useState6(null);
717
- const handleChange = (date2, dateString) => {
714
+ const handleChange2 = (date2, dateString) => {
718
715
  console.log("date---------", date2);
719
716
  console.log("datestring", dateString);
720
717
  if (date2) {
@@ -754,18 +751,18 @@ var DatePickerElement = (props) => {
754
751
  placeholder: props.placeholder,
755
752
  value: date,
756
753
  variant: "borderless",
757
- onChange: handleChange
754
+ onChange: handleChange2
758
755
  }
759
756
  ), /* @__PURE__ */ React21.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ React21.createElement(RightOutlined, null)));
760
757
  };
761
758
 
762
759
  // src/Components/DateRangePickerElement.tsx
763
760
  import React22 from "react";
764
- import { DatePicker as DatePicker2, Space as Space2 } from "antd";
761
+ import { DatePicker as DatePicker2, Space } from "antd";
765
762
  import dayjs from "dayjs";
766
763
  var DateRangePickerElement = (props) => {
767
764
  const { RangePicker } = DatePicker2;
768
- const handleChange = (dates, dateStrings) => {
765
+ const handleChange2 = (dates, dateStrings) => {
769
766
  if (dates && props.onChange) {
770
767
  props.onChange(dateStrings);
771
768
  } else {
@@ -778,7 +775,7 @@ var DateRangePickerElement = (props) => {
778
775
  { label: "Last 30 Days", value: [dayjs().add(-30, "d"), dayjs()] },
779
776
  { label: "Last 90 Days", value: [dayjs().add(-90, "d"), dayjs()] }
780
777
  ];
781
- return /* @__PURE__ */ React22.createElement(Space2, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(RangePicker, { presets: rangePresets, onChange: handleChange }));
778
+ return /* @__PURE__ */ React22.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(RangePicker, { presets: rangePresets, onChange: handleChange2 }));
782
779
  };
783
780
 
784
781
  // src/Components/UploadElement.tsx
@@ -817,19 +814,48 @@ var Image = (props) => {
817
814
  import React25 from "react";
818
815
  import { Checkbox as Checkbox2 } from "antd";
819
816
  var SingleCheckbox = (props) => {
820
- const handleChange = (e) => {
817
+ const handleChange2 = (e) => {
821
818
  if (props.onChange) {
822
819
  props.onChange(e.target.checked);
823
820
  }
824
821
  };
825
- return /* @__PURE__ */ React25.createElement(Checkbox2, { onChange: (e) => handleChange(e), className: props.className }, props.label);
822
+ return /* @__PURE__ */ React25.createElement(Checkbox2, { onChange: (e) => handleChange2(e), className: props.className }, props.label);
826
823
  };
827
824
 
828
825
  // src/Components/MultiSelect.tsx
829
826
  import React26 from "react";
830
- import { Select as Select4, Space as Space3 } from "antd";
827
+ import { Select as Select4 } from "antd";
828
+ var options = [];
829
+ for (let i = 10; i < 36; i++) {
830
+ options.push({
831
+ value: i.toString(36) + i,
832
+ label: i.toString(36) + i
833
+ });
834
+ }
835
+ var handleChange = (value) => {
836
+ console.log(`Selected: ${value}`);
837
+ };
831
838
  var MultiSelect = (props) => {
832
- return /* @__PURE__ */ React26.createElement(Space3, null, /* @__PURE__ */ React26.createElement(Select4, { options: props.selectAfter }), /* @__PURE__ */ React26.createElement(Select4, { options: props.selectAfter }));
839
+ return /* @__PURE__ */ React26.createElement("div", { style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray" } }, /* @__PURE__ */ React26.createElement(
840
+ Select4,
841
+ {
842
+ defaultValue: "a1",
843
+ onChange: handleChange,
844
+ style: { width: 70, border: "none", borderRadius: 0 },
845
+ variant: "borderless",
846
+ options
847
+ }
848
+ ), /* @__PURE__ */ React26.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React26.createElement(
849
+ Select4,
850
+ {
851
+ placeholder: "Please select",
852
+ defaultValue: ["a10"],
853
+ onChange: handleChange,
854
+ variant: "borderless",
855
+ style: { width: 70, borderRadius: 0, border: "0px none" },
856
+ options
857
+ }
858
+ ));
833
859
  };
834
860
  export {
835
861
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta26",
3
+ "version": "0.0.13-Beta28",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",