@apexcura/ui-components 0.0.13-Beta72 → 0.0.13-Beta74

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
@@ -909,7 +909,7 @@ var import_icons6 = require("@ant-design/icons");
909
909
  var FileUpload = (props) => {
910
910
  const [files, setFiles] = (0, import_react27.useState)([]);
911
911
  const beforeUpload = (file) => {
912
- const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(file.type);
912
+ const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "file/pdf"].includes(file.type);
913
913
  if (!isCorrectFile) {
914
914
  import_antd20.message.error(`(${file.name}) is an invalid file. Please upload files with the following extensions only (.png/.jpg/.jpeg)`);
915
915
  return import_antd20.Upload.LIST_IGNORE;
@@ -930,7 +930,7 @@ var FileUpload = (props) => {
930
930
  import_antd20.Upload,
931
931
  {
932
932
  accept: props.accept,
933
- listType: props.list_type,
933
+ listType: "picture",
934
934
  maxCount: props.max_count,
935
935
  multiple: true,
936
936
  fileList: files,
@@ -938,7 +938,7 @@ var FileUpload = (props) => {
938
938
  onChange: handleChange,
939
939
  showUploadList: true
940
940
  },
941
- /* @__PURE__ */ import_react27.default.createElement("div", null, /* @__PURE__ */ import_react27.default.createElement(import_icons6.PlusOutlined, null), /* @__PURE__ */ import_react27.default.createElement("div", { style: { marginTop: 8 } }, "Upload"))
941
+ /* @__PURE__ */ import_react27.default.createElement(import_antd20.Button, { icon: /* @__PURE__ */ import_react27.default.createElement(import_icons6.UploadOutlined, null) }, "Click to Upload")
942
942
  ));
943
943
  };
944
944
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -847,12 +847,12 @@ var MultiSelect = (props) => {
847
847
 
848
848
  // src/Components/FilesUpload.tsx
849
849
  import React27, { useState as useState9 } from "react";
850
- import { Upload as Upload2, message } from "antd";
851
- import { PlusOutlined as PlusOutlined3 } from "@ant-design/icons";
850
+ import { Button as Button3, Upload as Upload2, message } from "antd";
851
+ import { UploadOutlined } from "@ant-design/icons";
852
852
  var FileUpload = (props) => {
853
853
  const [files, setFiles] = useState9([]);
854
854
  const beforeUpload = (file) => {
855
- const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(file.type);
855
+ const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "file/pdf"].includes(file.type);
856
856
  if (!isCorrectFile) {
857
857
  message.error(`(${file.name}) is an invalid file. Please upload files with the following extensions only (.png/.jpg/.jpeg)`);
858
858
  return Upload2.LIST_IGNORE;
@@ -873,7 +873,7 @@ var FileUpload = (props) => {
873
873
  Upload2,
874
874
  {
875
875
  accept: props.accept,
876
- listType: props.list_type,
876
+ listType: "picture",
877
877
  maxCount: props.max_count,
878
878
  multiple: true,
879
879
  fileList: files,
@@ -881,7 +881,7 @@ var FileUpload = (props) => {
881
881
  onChange: handleChange,
882
882
  showUploadList: true
883
883
  },
884
- /* @__PURE__ */ React27.createElement("div", null, /* @__PURE__ */ React27.createElement(PlusOutlined3, null), /* @__PURE__ */ React27.createElement("div", { style: { marginTop: 8 } }, "Upload"))
884
+ /* @__PURE__ */ React27.createElement(Button3, { icon: /* @__PURE__ */ React27.createElement(UploadOutlined, null) }, "Click to Upload")
885
885
  ));
886
886
  };
887
887
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta72",
3
+ "version": "0.0.13-Beta74",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",