@apexcura/ui-components 0.0.15-Beta71 → 0.0.15-Beta73
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 +5 -6
- package/dist/index.mjs +5 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1094,9 +1094,7 @@ var import_antd18 = require("antd");
|
|
|
1094
1094
|
var import_icons5 = require("@ant-design/icons");
|
|
1095
1095
|
var FileUpload = (props) => {
|
|
1096
1096
|
const { Dragger } = import_antd18.Upload;
|
|
1097
|
-
const [files, setFiles] = (0, import_react26.useState)(
|
|
1098
|
-
props.value && props.value.length > 0 ? props.value : []
|
|
1099
|
-
);
|
|
1097
|
+
const [files, setFiles] = (0, import_react26.useState)([]);
|
|
1100
1098
|
const handleChange = ({ fileList }) => {
|
|
1101
1099
|
setFiles(fileList);
|
|
1102
1100
|
if (props.onChange) {
|
|
@@ -1111,14 +1109,14 @@ var FileUpload = (props) => {
|
|
|
1111
1109
|
onSuccess("ok");
|
|
1112
1110
|
}, 0);
|
|
1113
1111
|
};
|
|
1114
|
-
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1112
|
+
return /* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement(
|
|
1115
1113
|
Dragger,
|
|
1116
1114
|
{
|
|
1117
1115
|
action: "",
|
|
1118
1116
|
accept: props.accept,
|
|
1119
1117
|
listType: "picture",
|
|
1120
1118
|
maxCount: props.max_count,
|
|
1121
|
-
multiple:
|
|
1119
|
+
multiple: true,
|
|
1122
1120
|
fileList: files,
|
|
1123
1121
|
onChange: handleChange,
|
|
1124
1122
|
showUploadList: true,
|
|
@@ -1126,7 +1124,7 @@ var FileUpload = (props) => {
|
|
|
1126
1124
|
},
|
|
1127
1125
|
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1128
1126
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
1129
|
-
);
|
|
1127
|
+
));
|
|
1130
1128
|
};
|
|
1131
1129
|
|
|
1132
1130
|
// src/Components/TabsElement.tsx
|
|
@@ -1677,6 +1675,7 @@ var ColorPickerElement = (props) => {
|
|
|
1677
1675
|
const onHandleChange = (value, hex) => {
|
|
1678
1676
|
props.onChange && props.onChange(hex);
|
|
1679
1677
|
};
|
|
1678
|
+
console.log(props.value);
|
|
1680
1679
|
return /* @__PURE__ */ import_react38.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react38.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react38.default.createElement("br", null), /* @__PURE__ */ import_react38.default.createElement(
|
|
1681
1680
|
import_antd22.ColorPicker,
|
|
1682
1681
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1025,9 +1025,7 @@ import { Upload } from "antd";
|
|
|
1025
1025
|
import { InboxOutlined } from "@ant-design/icons";
|
|
1026
1026
|
var FileUpload = (props) => {
|
|
1027
1027
|
const { Dragger } = Upload;
|
|
1028
|
-
const [files, setFiles] = useState8(
|
|
1029
|
-
props.value && props.value.length > 0 ? props.value : []
|
|
1030
|
-
);
|
|
1028
|
+
const [files, setFiles] = useState8([]);
|
|
1031
1029
|
const handleChange = ({ fileList }) => {
|
|
1032
1030
|
setFiles(fileList);
|
|
1033
1031
|
if (props.onChange) {
|
|
@@ -1042,14 +1040,14 @@ var FileUpload = (props) => {
|
|
|
1042
1040
|
onSuccess("ok");
|
|
1043
1041
|
}, 0);
|
|
1044
1042
|
};
|
|
1045
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1043
|
+
return /* @__PURE__ */ React25.createElement("div", null, /* @__PURE__ */ React25.createElement(
|
|
1046
1044
|
Dragger,
|
|
1047
1045
|
{
|
|
1048
1046
|
action: "",
|
|
1049
1047
|
accept: props.accept,
|
|
1050
1048
|
listType: "picture",
|
|
1051
1049
|
maxCount: props.max_count,
|
|
1052
|
-
multiple:
|
|
1050
|
+
multiple: true,
|
|
1053
1051
|
fileList: files,
|
|
1054
1052
|
onChange: handleChange,
|
|
1055
1053
|
showUploadList: true,
|
|
@@ -1057,7 +1055,7 @@ var FileUpload = (props) => {
|
|
|
1057
1055
|
},
|
|
1058
1056
|
/* @__PURE__ */ React25.createElement("p", null, /* @__PURE__ */ React25.createElement(InboxOutlined, null)),
|
|
1059
1057
|
/* @__PURE__ */ React25.createElement("p", null, "Click or drag file to upload")
|
|
1060
|
-
);
|
|
1058
|
+
));
|
|
1061
1059
|
};
|
|
1062
1060
|
|
|
1063
1061
|
// src/Components/TabsElement.tsx
|
|
@@ -1632,6 +1630,7 @@ var ColorPickerElement = (props) => {
|
|
|
1632
1630
|
const onHandleChange = (value, hex) => {
|
|
1633
1631
|
props.onChange && props.onChange(hex);
|
|
1634
1632
|
};
|
|
1633
|
+
console.log(props.value);
|
|
1635
1634
|
return /* @__PURE__ */ React37.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React37.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React37.createElement("br", null), /* @__PURE__ */ React37.createElement(
|
|
1636
1635
|
ColorPicker,
|
|
1637
1636
|
{
|