@apexcura/ui-components 0.0.14-Beta14 → 0.0.14-Beta16

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
@@ -761,7 +761,7 @@ var DatePickerElement = (props) => {
761
761
  import_antd15.DatePicker,
762
762
  {
763
763
  placeholder: props.placeholder,
764
- value: date,
764
+ value: date.format(dateFormat),
765
765
  variant: "borderless",
766
766
  onChange: handleChange
767
767
  }
@@ -867,7 +867,7 @@ var FileUpload = (props) => {
867
867
  const { Dragger } = import_antd19.Upload;
868
868
  const [files, setFiles] = (0, import_react26.useState)([]);
869
869
  const beforeUpload = (file) => {
870
- const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "application/pdf"].includes(file.type);
870
+ const isCorrectFile = ["image/*", "video/*", "application/*"].includes(file.type);
871
871
  if (!isCorrectFile) {
872
872
  import_antd19.message.error(`(${file.name}) is an invalid file. Please upload files with the following extensions only (.png/.jpg/.jpeg/.pdf)`);
873
873
  return import_antd19.Upload.LIST_IGNORE;
package/dist/index.mjs CHANGED
@@ -704,7 +704,7 @@ var DatePickerElement = (props) => {
704
704
  DatePicker,
705
705
  {
706
706
  placeholder: props.placeholder,
707
- value: date,
707
+ value: date.format(dateFormat),
708
708
  variant: "borderless",
709
709
  onChange: handleChange
710
710
  }
@@ -810,7 +810,7 @@ var FileUpload = (props) => {
810
810
  const { Dragger } = Upload;
811
811
  const [files, setFiles] = useState8([]);
812
812
  const beforeUpload = (file) => {
813
- const isCorrectFile = ["image/png", "image/jpg", "image/jpeg", "application/pdf"].includes(file.type);
813
+ const isCorrectFile = ["image/*", "video/*", "application/*"].includes(file.type);
814
814
  if (!isCorrectFile) {
815
815
  message.error(`(${file.name}) is an invalid file. Please upload files with the following extensions only (.png/.jpg/.jpeg/.pdf)`);
816
816
  return Upload.LIST_IGNORE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta14",
3
+ "version": "0.0.14-Beta16",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",