@apexcura/ui-components 0.0.13-Beta77 → 0.0.13-Beta79
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 +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -887,13 +887,19 @@ var FileUpload = (props) => {
|
|
|
887
887
|
));
|
|
888
888
|
};
|
|
889
889
|
|
|
890
|
-
// src/Components/
|
|
890
|
+
// src/Components/TabsElement.tsx
|
|
891
891
|
var import_react27 = __toESM(require("react"));
|
|
892
892
|
var import_antd20 = require("antd");
|
|
893
|
-
var
|
|
894
|
-
console.log(
|
|
893
|
+
var TabsElement = (props) => {
|
|
894
|
+
console.log(props);
|
|
895
|
+
const handleChange = (key) => {
|
|
896
|
+
if (props.onChange) {
|
|
897
|
+
props.onChange(props.options?.filter((eachOption) => eachOption.key === key));
|
|
898
|
+
}
|
|
899
|
+
console.log(key);
|
|
900
|
+
};
|
|
901
|
+
return /* @__PURE__ */ import_react27.default.createElement(import_antd20.Tabs, { defaultActiveKey: "1", items: props.options, onChange: handleChange });
|
|
895
902
|
};
|
|
896
|
-
var TabsElement = (props) => /* @__PURE__ */ import_react27.default.createElement(import_antd20.Tabs, { defaultActiveKey: "1", items: props.fields, onChange });
|
|
897
903
|
// Annotate the CommonJS export names for ESM import in node:
|
|
898
904
|
0 && (module.exports = {
|
|
899
905
|
AddMoreTable,
|
package/dist/index.mjs
CHANGED
|
@@ -830,13 +830,19 @@ var FileUpload = (props) => {
|
|
|
830
830
|
));
|
|
831
831
|
};
|
|
832
832
|
|
|
833
|
-
// src/Components/
|
|
833
|
+
// src/Components/TabsElement.tsx
|
|
834
834
|
import React27 from "react";
|
|
835
835
|
import { Tabs } from "antd";
|
|
836
|
-
var
|
|
837
|
-
console.log(
|
|
836
|
+
var TabsElement = (props) => {
|
|
837
|
+
console.log(props);
|
|
838
|
+
const handleChange = (key) => {
|
|
839
|
+
if (props.onChange) {
|
|
840
|
+
props.onChange(props.options?.filter((eachOption) => eachOption.key === key));
|
|
841
|
+
}
|
|
842
|
+
console.log(key);
|
|
843
|
+
};
|
|
844
|
+
return /* @__PURE__ */ React27.createElement(Tabs, { defaultActiveKey: "1", items: props.options, onChange: handleChange });
|
|
838
845
|
};
|
|
839
|
-
var TabsElement = (props) => /* @__PURE__ */ React27.createElement(Tabs, { defaultActiveKey: "1", items: props.fields, onChange });
|
|
840
846
|
export {
|
|
841
847
|
AddMoreTable,
|
|
842
848
|
ButtonElement,
|