@apexcura/ui-components 0.0.13-Beta76 → 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 +12 -6
- package/dist/index.mjs +11 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -843,8 +843,8 @@ var MultiSelect = (props) => {
|
|
|
843
843
|
var import_react26 = __toESM(require("react"));
|
|
844
844
|
var import_antd19 = require("antd");
|
|
845
845
|
var import_icons5 = require("@ant-design/icons");
|
|
846
|
-
var import_Dragger = __toESM(require("antd/es/upload/Dragger"));
|
|
847
846
|
var FileUpload = (props) => {
|
|
847
|
+
const { Dragger } = import_antd19.Upload;
|
|
848
848
|
const [files, setFiles] = (0, import_react26.useState)([]);
|
|
849
849
|
const beforeUpload = (file) => {
|
|
850
850
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "application/pdf"].includes(file.type);
|
|
@@ -869,7 +869,7 @@ var FileUpload = (props) => {
|
|
|
869
869
|
}, 0);
|
|
870
870
|
};
|
|
871
871
|
return /* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement(
|
|
872
|
-
|
|
872
|
+
Dragger,
|
|
873
873
|
{
|
|
874
874
|
action: "",
|
|
875
875
|
accept: props.accept,
|
|
@@ -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
|
@@ -786,8 +786,8 @@ var MultiSelect = (props) => {
|
|
|
786
786
|
import React26, { useState as useState8 } from "react";
|
|
787
787
|
import { Upload, message } from "antd";
|
|
788
788
|
import { InboxOutlined } from "@ant-design/icons";
|
|
789
|
-
import Dragger from "antd/es/upload/Dragger";
|
|
790
789
|
var FileUpload = (props) => {
|
|
790
|
+
const { Dragger } = Upload;
|
|
791
791
|
const [files, setFiles] = useState8([]);
|
|
792
792
|
const beforeUpload = (file) => {
|
|
793
793
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "application/pdf"].includes(file.type);
|
|
@@ -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,
|