@apexcura/ui-components 0.0.13-Beta77 → 0.0.13-Beta78

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
@@ -887,13 +887,19 @@ var FileUpload = (props) => {
887
887
  ));
888
888
  };
889
889
 
890
- // src/Components/Tabs.tsx
890
+ // src/Components/TabsElement.tsx
891
891
  var import_react27 = __toESM(require("react"));
892
892
  var import_antd20 = require("antd");
893
- var onChange = (key) => {
894
- console.log(key);
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/Tabs.tsx
833
+ // src/Components/TabsElement.tsx
834
834
  import React27 from "react";
835
835
  import { Tabs } from "antd";
836
- var onChange = (key) => {
837
- console.log(key);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta77",
3
+ "version": "0.0.13-Beta78",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",