@apexcura/ui-components 0.0.13-Beta89 → 0.0.13-Beta90

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
@@ -68,18 +68,12 @@ var TextElement = (props) => {
68
68
  import_antd.Input,
69
69
  {
70
70
  placeholder: props.placeholder,
71
- addonBefore: props.addonBefore,
72
71
  allowClear: true,
73
- defaultValue: props.defaultValue,
74
- disabled: props.disabled,
75
72
  id: props.name,
76
73
  prefix: props.prefix,
77
74
  type: props.type,
78
75
  status: props.status,
79
- style: props.styles,
80
76
  className: props.className,
81
- variant: props.variant,
82
- name: props.name,
83
77
  onChange: (e) => {
84
78
  handleChange(e);
85
79
  }
@@ -684,13 +678,17 @@ var TableElement = (props) => {
684
678
  [columns[0].key]: index + 1
685
679
  }));
686
680
  const count = dataSource ? dataSource.length : 0;
681
+ const onChangePage = (page) => {
682
+ console.log("page==========", page);
683
+ };
687
684
  return /* @__PURE__ */ import_react20.default.createElement(import_react20.default.Fragment, null, /* @__PURE__ */ import_react20.default.createElement(
688
685
  import_antd14.Table,
689
686
  {
690
687
  pagination: {
691
688
  showTotal: (total) => `Total: ${total} items`,
692
689
  total: count,
693
- showSizeChanger: count > 10
690
+ showSizeChanger: count > 10,
691
+ onChange: (page) => onChangePage(page)
694
692
  },
695
693
  dataSource,
696
694
  columns,
@@ -807,7 +805,6 @@ var import_react25 = __toESM(require("react"));
807
805
  var import_antd18 = require("antd");
808
806
  var DropDownGroup = (props) => {
809
807
  const [selectedValue, setSelectedValue] = (0, import_react25.useState)({ firstValue: {}, secondValue: {} });
810
- console.log(selectedValue);
811
808
  const handleFirstChange = (value) => {
812
809
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
813
810
  setSelectedValue((prev) => {
@@ -815,7 +812,7 @@ var DropDownGroup = (props) => {
815
812
  if (newValue.firstValue) {
816
813
  props.onChange?.(newValue);
817
814
  }
818
- return newValue;
815
+ return selectedValue;
819
816
  });
820
817
  };
821
818
  const handleSecondChange = (value) => {
@@ -825,10 +822,10 @@ var DropDownGroup = (props) => {
825
822
  if (newValue.secondValue) {
826
823
  props.onChange?.(newValue);
827
824
  }
828
- return newValue;
825
+ return selectedValue;
829
826
  });
830
827
  };
831
- return /* @__PURE__ */ import_react25.default.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ import_react25.default.createElement(
828
+ return /* @__PURE__ */ import_react25.default.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray" } }, /* @__PURE__ */ import_react25.default.createElement(
832
829
  import_antd18.Select,
833
830
  {
834
831
  onChange: handleFirstChange,
package/dist/index.mjs CHANGED
@@ -11,18 +11,12 @@ var TextElement = (props) => {
11
11
  AntInput,
12
12
  {
13
13
  placeholder: props.placeholder,
14
- addonBefore: props.addonBefore,
15
14
  allowClear: true,
16
- defaultValue: props.defaultValue,
17
- disabled: props.disabled,
18
15
  id: props.name,
19
16
  prefix: props.prefix,
20
17
  type: props.type,
21
18
  status: props.status,
22
- style: props.styles,
23
19
  className: props.className,
24
- variant: props.variant,
25
- name: props.name,
26
20
  onChange: (e) => {
27
21
  handleChange(e);
28
22
  }
@@ -627,13 +621,17 @@ var TableElement = (props) => {
627
621
  [columns[0].key]: index + 1
628
622
  }));
629
623
  const count = dataSource ? dataSource.length : 0;
624
+ const onChangePage = (page) => {
625
+ console.log("page==========", page);
626
+ };
630
627
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
631
628
  Table2,
632
629
  {
633
630
  pagination: {
634
631
  showTotal: (total) => `Total: ${total} items`,
635
632
  total: count,
636
- showSizeChanger: count > 10
633
+ showSizeChanger: count > 10,
634
+ onChange: (page) => onChangePage(page)
637
635
  },
638
636
  dataSource,
639
637
  columns,
@@ -750,7 +748,6 @@ import React25, { useState as useState7 } from "react";
750
748
  import { Select as Select4 } from "antd";
751
749
  var DropDownGroup = (props) => {
752
750
  const [selectedValue, setSelectedValue] = useState7({ firstValue: {}, secondValue: {} });
753
- console.log(selectedValue);
754
751
  const handleFirstChange = (value) => {
755
752
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
756
753
  setSelectedValue((prev) => {
@@ -758,7 +755,7 @@ var DropDownGroup = (props) => {
758
755
  if (newValue.firstValue) {
759
756
  props.onChange?.(newValue);
760
757
  }
761
- return newValue;
758
+ return selectedValue;
762
759
  });
763
760
  };
764
761
  const handleSecondChange = (value) => {
@@ -768,10 +765,10 @@ var DropDownGroup = (props) => {
768
765
  if (newValue.secondValue) {
769
766
  props.onChange?.(newValue);
770
767
  }
771
- return newValue;
768
+ return selectedValue;
772
769
  });
773
770
  };
774
- return /* @__PURE__ */ React25.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ React25.createElement(
771
+ return /* @__PURE__ */ React25.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray" } }, /* @__PURE__ */ React25.createElement(
775
772
  Select4,
776
773
  {
777
774
  onChange: handleFirstChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta89",
3
+ "version": "0.0.13-Beta90",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",