@apexcura/ui-components 0.0.13-Beta76 → 0.0.13-Beta77
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 +2 -2
- package/dist/index.mjs +1 -1
- 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,
|
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);
|