@apexcura/ui-components 0.0.13-Beta48 → 0.0.13-Beta49

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
@@ -794,7 +794,8 @@ var UploadElement = (props) => {
794
794
  const uploadChange = (fileList) => {
795
795
  console.log(fileList);
796
796
  if (!fileList || fileList.length === 0) return;
797
- const selectedFile = fileList[0];
797
+ const fileArray = Array.from(fileList);
798
+ const selectedFile = fileArray[0];
798
799
  if (!selectedFile) return;
799
800
  const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(selectedFile.type);
800
801
  if (!isCorrectFile) {
@@ -870,7 +871,7 @@ var UploadElement = (props) => {
870
871
  showUploadList: true
871
872
  },
872
873
  props.list_type === "picture-card" && /* @__PURE__ */ import_react23.default.createElement("div", null, /* @__PURE__ */ import_react23.default.createElement(import_icons5.PlusOutlined, null), /* @__PURE__ */ import_react23.default.createElement("div", { style: { marginTop: 8 } }, "Upload ", /* @__PURE__ */ import_react23.default.createElement("small", { className: "d-flex" }, "(Max:", props.max_count, ")"))),
873
- props.list_type === "picture" && /* @__PURE__ */ import_react23.default.createElement(import_antd17.Button, { icon: /* @__PURE__ */ import_react23.default.createElement(import_icons5.UploadOutlined, null) }, props.feildData.max_count ? `Upload (Max:${props.max_count})` : "Upload")
874
+ props.list_type === "picture" && /* @__PURE__ */ import_react23.default.createElement(import_antd17.Button, { icon: /* @__PURE__ */ import_react23.default.createElement(import_icons5.UploadOutlined, null) }, props.max_count ? `Upload (Max:${props.max_count})` : "Upload")
874
875
  ), props.errors && props.errors.length > 0 && props.errors.map((error, eKey) => /* @__PURE__ */ import_react23.default.createElement("small", { key: eKey, className: "text-danger animated flash" }, error.message)), /* @__PURE__ */ import_react23.default.createElement(
875
876
  import_antd17.Modal,
876
877
  {
package/dist/index.mjs CHANGED
@@ -738,7 +738,8 @@ var UploadElement = (props) => {
738
738
  const uploadChange = (fileList) => {
739
739
  console.log(fileList);
740
740
  if (!fileList || fileList.length === 0) return;
741
- const selectedFile = fileList[0];
741
+ const fileArray = Array.from(fileList);
742
+ const selectedFile = fileArray[0];
742
743
  if (!selectedFile) return;
743
744
  const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(selectedFile.type);
744
745
  if (!isCorrectFile) {
@@ -814,7 +815,7 @@ var UploadElement = (props) => {
814
815
  showUploadList: true
815
816
  },
816
817
  props.list_type === "picture-card" && /* @__PURE__ */ React23.createElement("div", null, /* @__PURE__ */ React23.createElement(PlusOutlined2, null), /* @__PURE__ */ React23.createElement("div", { style: { marginTop: 8 } }, "Upload ", /* @__PURE__ */ React23.createElement("small", { className: "d-flex" }, "(Max:", props.max_count, ")"))),
817
- props.list_type === "picture" && /* @__PURE__ */ React23.createElement(Button3, { icon: /* @__PURE__ */ React23.createElement(UploadOutlined, null) }, props.feildData.max_count ? `Upload (Max:${props.max_count})` : "Upload")
818
+ props.list_type === "picture" && /* @__PURE__ */ React23.createElement(Button3, { icon: /* @__PURE__ */ React23.createElement(UploadOutlined, null) }, props.max_count ? `Upload (Max:${props.max_count})` : "Upload")
818
819
  ), props.errors && props.errors.length > 0 && props.errors.map((error, eKey) => /* @__PURE__ */ React23.createElement("small", { key: eKey, className: "text-danger animated flash" }, error.message)), /* @__PURE__ */ React23.createElement(
819
820
  Modal2,
820
821
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta48",
3
+ "version": "0.0.13-Beta49",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",