@apexcura/ui-components 0.0.13-Beta51 → 0.0.13-Beta53

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.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React$1 from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ import { UploadFile } from 'antd/lib/upload/interface';
3
4
 
4
5
  type ElementType = {
5
6
  [x: string]: any;
@@ -13,7 +14,7 @@ type ElementType = {
13
14
  prefix?: React.ReactNode;
14
15
  type?: string;
15
16
  size?: SizeType;
16
- value?: string | number | boolean | any[] | null | object | undefined | any;
17
+ value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
17
18
  status?: "error" | "warning";
18
19
  styles?: React.CSSProperties;
19
20
  variant?: "outlined" | "borderless" | "filled";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React$1 from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ import { UploadFile } from 'antd/lib/upload/interface';
3
4
 
4
5
  type ElementType = {
5
6
  [x: string]: any;
@@ -13,7 +14,7 @@ type ElementType = {
13
14
  prefix?: React.ReactNode;
14
15
  type?: string;
15
16
  size?: SizeType;
16
- value?: string | number | boolean | any[] | null | object | undefined | any;
17
+ value?: string | number | boolean | any[] | null | object | undefined | any | UploadFile<any>[];
17
18
  status?: "error" | "warning";
18
19
  styles?: React.CSSProperties;
19
20
  variant?: "outlined" | "borderless" | "filled";
package/dist/index.js CHANGED
@@ -824,6 +824,7 @@ var UploadElement = (props) => {
824
824
  }
825
825
  };
826
826
  reader.readAsDataURL(selectedFile);
827
+ console.log(props.value);
827
828
  const newFileList = props.value ? [...props.value, newFile] : [newFile];
828
829
  props.onChange && props.onChange({
829
830
  name: props.name,
@@ -871,7 +872,6 @@ var UploadElement = (props) => {
871
872
  listType: props.list_type,
872
873
  maxCount: props.max_count,
873
874
  multiple: true,
874
- fileList: props.value,
875
875
  onChange: uploadChange2,
876
876
  onPreview: handlePreview,
877
877
  showUploadList: true
package/dist/index.mjs CHANGED
@@ -768,6 +768,7 @@ var UploadElement = (props) => {
768
768
  }
769
769
  };
770
770
  reader.readAsDataURL(selectedFile);
771
+ console.log(props.value);
771
772
  const newFileList = props.value ? [...props.value, newFile] : [newFile];
772
773
  props.onChange && props.onChange({
773
774
  name: props.name,
@@ -815,7 +816,6 @@ var UploadElement = (props) => {
815
816
  listType: props.list_type,
816
817
  maxCount: props.max_count,
817
818
  multiple: true,
818
- fileList: props.value,
819
819
  onChange: uploadChange2,
820
820
  onPreview: handlePreview,
821
821
  showUploadList: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta51",
3
+ "version": "0.0.13-Beta53",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",