@apexcura/ui-components 0.0.14-Beta59 → 0.0.14-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/dist/index.js CHANGED
@@ -776,13 +776,12 @@ var TableElement = (props) => {
776
776
  }
777
777
  };
778
778
  const rowSelectionConfig = props.rowSelection ? {
779
- // onChange: (selectedRowKeys: React.Key[], selectedRows: any) => {
780
- // console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
781
- // // Set the selected rows as the selected record
782
- // if (onChange) {
783
- // onChange(selectedRows); // Trigger the onChange callback with selected rows
784
- // }
785
- // },
779
+ onChange: (selectedRowKeys, selectedRows) => {
780
+ console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
781
+ if (props.onChange) {
782
+ props.onChange(selectedRows);
783
+ }
784
+ }
786
785
  } : void 0;
787
786
  return /* @__PURE__ */ import_react20.default.createElement(import_react20.default.Fragment, null, /* @__PURE__ */ import_react20.default.createElement(
788
787
  import_antd14.Table,
@@ -1020,6 +1019,7 @@ var Upload2 = (props) => {
1020
1019
  var import_react30 = __toESM(require("react"));
1021
1020
  var import_antd22 = require("antd");
1022
1021
  var OtpElement = (props) => {
1022
+ const length = props.length;
1023
1023
  const [otp, setOtp] = (0, import_react30.useState)(Array(length).fill(""));
1024
1024
  const inputRefs = (0, import_react30.useRef)([]);
1025
1025
  const handleChange = (e, index) => {
package/dist/index.mjs CHANGED
@@ -716,13 +716,12 @@ var TableElement = (props) => {
716
716
  }
717
717
  };
718
718
  const rowSelectionConfig = props.rowSelection ? {
719
- // onChange: (selectedRowKeys: React.Key[], selectedRows: any) => {
720
- // console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
721
- // // Set the selected rows as the selected record
722
- // if (onChange) {
723
- // onChange(selectedRows); // Trigger the onChange callback with selected rows
724
- // }
725
- // },
719
+ onChange: (selectedRowKeys, selectedRows) => {
720
+ console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
721
+ if (props.onChange) {
722
+ props.onChange(selectedRows);
723
+ }
724
+ }
726
725
  } : void 0;
727
726
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
728
727
  Table2,
@@ -960,6 +959,7 @@ var Upload2 = (props) => {
960
959
  import React30, { useState as useState11, useRef, useEffect as useEffect3 } from "react";
961
960
  import { Input as Input3 } from "antd";
962
961
  var OtpElement = (props) => {
962
+ const length = props.length;
963
963
  const [otp, setOtp] = useState11(Array(length).fill(""));
964
964
  const inputRefs = useRef([]);
965
965
  const handleChange = (e, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta59",
3
+ "version": "0.0.14-Beta60",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",