@apexcura/ui-components 0.0.16-Beta27 → 0.0.16-Beta29
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 +13 -16
- package/dist/index.mjs +13 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -617,7 +617,7 @@ var icons = {
|
|
|
617
617
|
fill: "#D9363E"
|
|
618
618
|
}
|
|
619
619
|
)),
|
|
620
|
-
profile: /* @__PURE__ */ import_react13.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react13.default.createElement("path", { d: "M17 19.5C18.3411 19.5 19.5979 18.3735 19.2664 16.9062C19.1476 16.3806 18.9841 15.8647 18.7769 15.3645C18.2994 14.2119 17.5997 13.1646 16.7175 12.2825C15.8354 11.4003 14.7881 10.7006 13.6355 10.2231C12.4829 9.74572 11.2476 9.5 10 9.5C8.75244 9.5 7.5171 9.74572 6.36451 10.2231C5.21191 10.7006 4.16464 11.4003 3.28249 12.2825C2.40033 13.1646 1.70056 14.2119 1.22314 15.3645C1.01594 15.8647 0.852378 16.3806 0.733607 16.9062C0.402069 18.3735 1.65891 19.5 3 19.5L10 19.5H17Z", fill: "#505050" }), /* @__PURE__ */ import_react13.default.createElement("circle", { cx: "10", cy: "6", r: "5.5", fill: "#505050" }))
|
|
620
|
+
profile: /* @__PURE__ */ import_react13.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react13.default.createElement("path", { d: "M17 19.5C18.3411 19.5 19.5979 18.3735 19.2664 16.9062C19.1476 16.3806 18.9841 15.8647 18.7769 15.3645C18.2994 14.2119 17.5997 13.1646 16.7175 12.2825C15.8354 11.4003 14.7881 10.7006 13.6355 10.2231C12.4829 9.74572 11.2476 9.5 10 9.5C8.75244 9.5 7.5171 9.74572 6.36451 10.2231C5.21191 10.7006 4.16464 11.4003 3.28249 12.2825C2.40033 13.1646 1.70056 14.2119 1.22314 15.3645C1.01594 15.8647 0.852378 16.3806 0.733607 16.9062C0.402069 18.3735 1.65891 19.5 3 19.5L10 19.5H17Z", fill: "#505050", stroke: "white" }), /* @__PURE__ */ import_react13.default.createElement("circle", { cx: "10", cy: "6", r: "5.5", fill: "#505050", stroke: "white" }))
|
|
621
621
|
};
|
|
622
622
|
|
|
623
623
|
// src/Components/Button.tsx
|
|
@@ -1083,11 +1083,9 @@ var import_antd17 = require("antd");
|
|
|
1083
1083
|
var DropDownGroup = (props) => {
|
|
1084
1084
|
const [selectedValue, setSelectedValue] = (0, import_react26.useState)({
|
|
1085
1085
|
firstValue: props.value.firstValue,
|
|
1086
|
-
secondValue: props.value.secondValue
|
|
1087
|
-
temp: ""
|
|
1086
|
+
secondValue: props.value.secondValue
|
|
1088
1087
|
});
|
|
1089
1088
|
const handleFirstChange = (value) => {
|
|
1090
|
-
console.log(selectedValue.temp);
|
|
1091
1089
|
const filterOption2 = props.firstOptions?.find(
|
|
1092
1090
|
(eachOption) => eachOption.value === value
|
|
1093
1091
|
);
|
|
@@ -1128,7 +1126,7 @@ var DropDownGroup = (props) => {
|
|
|
1128
1126
|
className: props.className,
|
|
1129
1127
|
filterOption: firstFilterOptions,
|
|
1130
1128
|
placeholder: props.firstPlaceholder,
|
|
1131
|
-
value:
|
|
1129
|
+
value: selectedValue.firstValue,
|
|
1132
1130
|
showSearch: true
|
|
1133
1131
|
}
|
|
1134
1132
|
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
@@ -1140,21 +1138,20 @@ var DropDownGroup = (props) => {
|
|
|
1140
1138
|
className: props.className,
|
|
1141
1139
|
filterOption: secondFilterOptions,
|
|
1142
1140
|
placeholder: props.secondPlaceholder,
|
|
1143
|
-
value:
|
|
1141
|
+
value: selectedValue.secondValue,
|
|
1144
1142
|
showSearch: true
|
|
1145
1143
|
}
|
|
1146
1144
|
)));
|
|
1147
1145
|
};
|
|
1148
1146
|
|
|
1149
1147
|
// src/Components/FilesUpload.tsx
|
|
1150
|
-
var import_react27 = __toESM(require("react"));
|
|
1151
1148
|
var import_antd18 = require("antd");
|
|
1152
1149
|
var import_icons5 = require("@ant-design/icons");
|
|
1150
|
+
var import_react27 = __toESM(require("react"));
|
|
1153
1151
|
var FileUpload = (props) => {
|
|
1154
1152
|
const { Dragger } = import_antd18.Upload;
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1157
|
-
);
|
|
1153
|
+
const initialFiles = Array.isArray(props.value) ? props.value : [];
|
|
1154
|
+
const [files, setFiles] = (0, import_react27.useState)(initialFiles);
|
|
1158
1155
|
const handleChange = ({ fileList }) => {
|
|
1159
1156
|
setFiles(fileList);
|
|
1160
1157
|
if (props.onChange) {
|
|
@@ -1164,17 +1161,17 @@ var FileUpload = (props) => {
|
|
|
1164
1161
|
});
|
|
1165
1162
|
}
|
|
1166
1163
|
};
|
|
1167
|
-
const customRequest = (
|
|
1168
|
-
|
|
1164
|
+
const customRequest = (options) => {
|
|
1165
|
+
const { onSuccess } = options;
|
|
1169
1166
|
setTimeout(() => {
|
|
1170
|
-
onSuccess
|
|
1167
|
+
if (onSuccess) {
|
|
1168
|
+
onSuccess("ok");
|
|
1169
|
+
}
|
|
1171
1170
|
}, 0);
|
|
1172
1171
|
};
|
|
1173
|
-
|
|
1174
|
-
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ import_react27.default.createElement(
|
|
1172
|
+
return /* @__PURE__ */ import_react27.default.createElement("div", null, /* @__PURE__ */ import_react27.default.createElement(
|
|
1175
1173
|
Dragger,
|
|
1176
1174
|
{
|
|
1177
|
-
className: props.className,
|
|
1178
1175
|
action: "",
|
|
1179
1176
|
accept: props.accept,
|
|
1180
1177
|
listType: "picture",
|
package/dist/index.mjs
CHANGED
|
@@ -546,7 +546,7 @@ var icons = {
|
|
|
546
546
|
fill: "#D9363E"
|
|
547
547
|
}
|
|
548
548
|
)),
|
|
549
|
-
profile: /* @__PURE__ */ React12.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("path", { d: "M17 19.5C18.3411 19.5 19.5979 18.3735 19.2664 16.9062C19.1476 16.3806 18.9841 15.8647 18.7769 15.3645C18.2994 14.2119 17.5997 13.1646 16.7175 12.2825C15.8354 11.4003 14.7881 10.7006 13.6355 10.2231C12.4829 9.74572 11.2476 9.5 10 9.5C8.75244 9.5 7.5171 9.74572 6.36451 10.2231C5.21191 10.7006 4.16464 11.4003 3.28249 12.2825C2.40033 13.1646 1.70056 14.2119 1.22314 15.3645C1.01594 15.8647 0.852378 16.3806 0.733607 16.9062C0.402069 18.3735 1.65891 19.5 3 19.5L10 19.5H17Z", fill: "#505050" }), /* @__PURE__ */ React12.createElement("circle", { cx: "10", cy: "6", r: "5.5", fill: "#505050" }))
|
|
549
|
+
profile: /* @__PURE__ */ React12.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("path", { d: "M17 19.5C18.3411 19.5 19.5979 18.3735 19.2664 16.9062C19.1476 16.3806 18.9841 15.8647 18.7769 15.3645C18.2994 14.2119 17.5997 13.1646 16.7175 12.2825C15.8354 11.4003 14.7881 10.7006 13.6355 10.2231C12.4829 9.74572 11.2476 9.5 10 9.5C8.75244 9.5 7.5171 9.74572 6.36451 10.2231C5.21191 10.7006 4.16464 11.4003 3.28249 12.2825C2.40033 13.1646 1.70056 14.2119 1.22314 15.3645C1.01594 15.8647 0.852378 16.3806 0.733607 16.9062C0.402069 18.3735 1.65891 19.5 3 19.5L10 19.5H17Z", fill: "#505050", stroke: "white" }), /* @__PURE__ */ React12.createElement("circle", { cx: "10", cy: "6", r: "5.5", fill: "#505050", stroke: "white" }))
|
|
550
550
|
};
|
|
551
551
|
|
|
552
552
|
// src/Components/Button.tsx
|
|
@@ -1012,11 +1012,9 @@ import { Select as Select4 } from "antd";
|
|
|
1012
1012
|
var DropDownGroup = (props) => {
|
|
1013
1013
|
const [selectedValue, setSelectedValue] = useState7({
|
|
1014
1014
|
firstValue: props.value.firstValue,
|
|
1015
|
-
secondValue: props.value.secondValue
|
|
1016
|
-
temp: ""
|
|
1015
|
+
secondValue: props.value.secondValue
|
|
1017
1016
|
});
|
|
1018
1017
|
const handleFirstChange = (value) => {
|
|
1019
|
-
console.log(selectedValue.temp);
|
|
1020
1018
|
const filterOption2 = props.firstOptions?.find(
|
|
1021
1019
|
(eachOption) => eachOption.value === value
|
|
1022
1020
|
);
|
|
@@ -1057,7 +1055,7 @@ var DropDownGroup = (props) => {
|
|
|
1057
1055
|
className: props.className,
|
|
1058
1056
|
filterOption: firstFilterOptions,
|
|
1059
1057
|
placeholder: props.firstPlaceholder,
|
|
1060
|
-
value:
|
|
1058
|
+
value: selectedValue.firstValue,
|
|
1061
1059
|
showSearch: true
|
|
1062
1060
|
}
|
|
1063
1061
|
), /* @__PURE__ */ React25.createElement("div", { style: { borderLeft: "1px solid gray" } }), /* @__PURE__ */ React25.createElement(
|
|
@@ -1069,21 +1067,20 @@ var DropDownGroup = (props) => {
|
|
|
1069
1067
|
className: props.className,
|
|
1070
1068
|
filterOption: secondFilterOptions,
|
|
1071
1069
|
placeholder: props.secondPlaceholder,
|
|
1072
|
-
value:
|
|
1070
|
+
value: selectedValue.secondValue,
|
|
1073
1071
|
showSearch: true
|
|
1074
1072
|
}
|
|
1075
1073
|
)));
|
|
1076
1074
|
};
|
|
1077
1075
|
|
|
1078
1076
|
// src/Components/FilesUpload.tsx
|
|
1079
|
-
import React26, { useState as useState8 } from "react";
|
|
1080
1077
|
import { Upload } from "antd";
|
|
1081
1078
|
import { InboxOutlined } from "@ant-design/icons";
|
|
1079
|
+
import React26, { useState as useState8 } from "react";
|
|
1082
1080
|
var FileUpload = (props) => {
|
|
1083
1081
|
const { Dragger } = Upload;
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1086
|
-
);
|
|
1082
|
+
const initialFiles = Array.isArray(props.value) ? props.value : [];
|
|
1083
|
+
const [files, setFiles] = useState8(initialFiles);
|
|
1087
1084
|
const handleChange = ({ fileList }) => {
|
|
1088
1085
|
setFiles(fileList);
|
|
1089
1086
|
if (props.onChange) {
|
|
@@ -1093,17 +1090,17 @@ var FileUpload = (props) => {
|
|
|
1093
1090
|
});
|
|
1094
1091
|
}
|
|
1095
1092
|
};
|
|
1096
|
-
const customRequest = (
|
|
1097
|
-
|
|
1093
|
+
const customRequest = (options) => {
|
|
1094
|
+
const { onSuccess } = options;
|
|
1098
1095
|
setTimeout(() => {
|
|
1099
|
-
onSuccess
|
|
1096
|
+
if (onSuccess) {
|
|
1097
|
+
onSuccess("ok");
|
|
1098
|
+
}
|
|
1100
1099
|
}, 0);
|
|
1101
1100
|
};
|
|
1102
|
-
|
|
1103
|
-
return /* @__PURE__ */ React26.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ React26.createElement(
|
|
1101
|
+
return /* @__PURE__ */ React26.createElement("div", null, /* @__PURE__ */ React26.createElement(
|
|
1104
1102
|
Dragger,
|
|
1105
1103
|
{
|
|
1106
|
-
className: props.className,
|
|
1107
1104
|
action: "",
|
|
1108
1105
|
accept: props.accept,
|
|
1109
1106
|
listType: "picture",
|