@apexcura/ui-components 0.0.15-Beta72 → 0.0.15-Beta73

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
@@ -1094,9 +1094,7 @@ var import_antd18 = require("antd");
1094
1094
  var import_icons5 = require("@ant-design/icons");
1095
1095
  var FileUpload = (props) => {
1096
1096
  const { Dragger } = import_antd18.Upload;
1097
- const [files, setFiles] = (0, import_react26.useState)(
1098
- props.value && props.value.length > 0 ? props.value : []
1099
- );
1097
+ const [files, setFiles] = (0, import_react26.useState)([]);
1100
1098
  const handleChange = ({ fileList }) => {
1101
1099
  setFiles(fileList);
1102
1100
  if (props.onChange) {
@@ -1118,7 +1116,7 @@ var FileUpload = (props) => {
1118
1116
  accept: props.accept,
1119
1117
  listType: "picture",
1120
1118
  maxCount: props.max_count,
1121
- multiple: props.multiple,
1119
+ multiple: true,
1122
1120
  fileList: files,
1123
1121
  onChange: handleChange,
1124
1122
  showUploadList: true,
package/dist/index.mjs CHANGED
@@ -1025,9 +1025,7 @@ import { Upload } from "antd";
1025
1025
  import { InboxOutlined } from "@ant-design/icons";
1026
1026
  var FileUpload = (props) => {
1027
1027
  const { Dragger } = Upload;
1028
- const [files, setFiles] = useState8(
1029
- props.value && props.value.length > 0 ? props.value : []
1030
- );
1028
+ const [files, setFiles] = useState8([]);
1031
1029
  const handleChange = ({ fileList }) => {
1032
1030
  setFiles(fileList);
1033
1031
  if (props.onChange) {
@@ -1049,7 +1047,7 @@ var FileUpload = (props) => {
1049
1047
  accept: props.accept,
1050
1048
  listType: "picture",
1051
1049
  maxCount: props.max_count,
1052
- multiple: props.multiple,
1050
+ multiple: true,
1053
1051
  fileList: files,
1054
1052
  onChange: handleChange,
1055
1053
  showUploadList: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta72",
3
+ "version": "0.0.15-Beta73",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",