@apexcura/ui-components 0.0.13-Beta52 → 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,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta52",
3
+ "version": "0.0.13-Beta53",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",