@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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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
|
|
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
|
|
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;
|