@apexcura/ui-components 0.0.13-Beta82 → 0.0.13-Beta83
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 +3 -17
- package/dist/index.mjs +3 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -891,26 +891,12 @@ var FileUpload = (props) => {
|
|
|
891
891
|
var import_react27 = __toESM(require("react"));
|
|
892
892
|
var import_antd20 = require("antd");
|
|
893
893
|
var TabsElement = (props) => {
|
|
894
|
-
|
|
895
|
-
const handleChange = (label) => {
|
|
894
|
+
const handleChange = (key) => {
|
|
896
895
|
if (props.onChange) {
|
|
897
|
-
props.onChange(props.options?.find((eachOption) => eachOption.
|
|
896
|
+
props.onChange(props.options?.find((eachOption) => eachOption.key === key));
|
|
898
897
|
}
|
|
899
898
|
};
|
|
900
|
-
return /* @__PURE__ */ import_react27.default.createElement(
|
|
901
|
-
import_antd20.Tabs,
|
|
902
|
-
{
|
|
903
|
-
className: props.containerClassName,
|
|
904
|
-
onChange: handleChange,
|
|
905
|
-
items: props.options?.map((item, i) => {
|
|
906
|
-
const id = String(i + 1);
|
|
907
|
-
return {
|
|
908
|
-
label: item.label,
|
|
909
|
-
key: id
|
|
910
|
-
};
|
|
911
|
-
})
|
|
912
|
-
}
|
|
913
|
-
);
|
|
899
|
+
return /* @__PURE__ */ import_react27.default.createElement(import_antd20.Tabs, { className: props.containerClassName, items: props.options, onChange: handleChange });
|
|
914
900
|
};
|
|
915
901
|
// Annotate the CommonJS export names for ESM import in node:
|
|
916
902
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -834,26 +834,12 @@ var FileUpload = (props) => {
|
|
|
834
834
|
import React27 from "react";
|
|
835
835
|
import { Tabs } from "antd";
|
|
836
836
|
var TabsElement = (props) => {
|
|
837
|
-
|
|
838
|
-
const handleChange = (label) => {
|
|
837
|
+
const handleChange = (key) => {
|
|
839
838
|
if (props.onChange) {
|
|
840
|
-
props.onChange(props.options?.find((eachOption) => eachOption.
|
|
839
|
+
props.onChange(props.options?.find((eachOption) => eachOption.key === key));
|
|
841
840
|
}
|
|
842
841
|
};
|
|
843
|
-
return /* @__PURE__ */ React27.createElement(
|
|
844
|
-
Tabs,
|
|
845
|
-
{
|
|
846
|
-
className: props.containerClassName,
|
|
847
|
-
onChange: handleChange,
|
|
848
|
-
items: props.options?.map((item, i) => {
|
|
849
|
-
const id = String(i + 1);
|
|
850
|
-
return {
|
|
851
|
-
label: item.label,
|
|
852
|
-
key: id
|
|
853
|
-
};
|
|
854
|
-
})
|
|
855
|
-
}
|
|
856
|
-
);
|
|
842
|
+
return /* @__PURE__ */ React27.createElement(Tabs, { className: props.containerClassName, items: props.options, onChange: handleChange });
|
|
857
843
|
};
|
|
858
844
|
export {
|
|
859
845
|
AddMoreTable,
|