@apexcura/ui-components 0.0.16-Beta69 → 0.0.16-Beta70

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
@@ -1136,10 +1136,15 @@ var FileUpload = (props) => {
1136
1136
  originalFile: file
1137
1137
  };
1138
1138
  setFiles((prevFileList) => [...prevFileList, newFile]);
1139
+ if (props.onChange) {
1140
+ props.onChange({
1141
+ name: props.name,
1142
+ value: newFile
1143
+ });
1144
+ }
1139
1145
  });
1140
1146
  return false;
1141
1147
  };
1142
- console.log(files);
1143
1148
  const customRequest = (options) => {
1144
1149
  const { onSuccess } = options;
1145
1150
  setTimeout(() => {
package/dist/index.mjs CHANGED
@@ -1064,10 +1064,15 @@ var FileUpload = (props) => {
1064
1064
  originalFile: file
1065
1065
  };
1066
1066
  setFiles((prevFileList) => [...prevFileList, newFile]);
1067
+ if (props.onChange) {
1068
+ props.onChange({
1069
+ name: props.name,
1070
+ value: newFile
1071
+ });
1072
+ }
1067
1073
  });
1068
1074
  return false;
1069
1075
  };
1070
- console.log(files);
1071
1076
  const customRequest = (options) => {
1072
1077
  const { onSuccess } = options;
1073
1078
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.16-Beta69",
3
+ "version": "0.0.16-Beta70",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",