@apexcura/ui-components 0.0.16-Beta22 → 0.0.16-Beta24
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 +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +6 -8
- package/dist/index.mjs +6 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -136,7 +136,22 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
|
136
136
|
|
|
137
137
|
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
type dropDownValueProps = {
|
|
140
|
+
firstValue: {
|
|
141
|
+
key?: string | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
143
|
+
value?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
secondValue: {
|
|
146
|
+
key?: string | undefined;
|
|
147
|
+
label?: string | undefined;
|
|
148
|
+
value?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
};
|
|
151
|
+
type dropDownGroupProps = ElementType & {
|
|
152
|
+
value: dropDownValueProps;
|
|
153
|
+
};
|
|
154
|
+
declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
|
|
140
155
|
|
|
141
156
|
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
142
157
|
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,22 @@ declare const Image: (props: ElementType) => React$1.JSX.Element;
|
|
|
136
136
|
|
|
137
137
|
declare const SingleCheckbox: (props: ElementType) => React$1.JSX.Element;
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
type dropDownValueProps = {
|
|
140
|
+
firstValue: {
|
|
141
|
+
key?: string | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
143
|
+
value?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
secondValue: {
|
|
146
|
+
key?: string | undefined;
|
|
147
|
+
label?: string | undefined;
|
|
148
|
+
value?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
};
|
|
151
|
+
type dropDownGroupProps = ElementType & {
|
|
152
|
+
value: dropDownValueProps;
|
|
153
|
+
};
|
|
154
|
+
declare const DropDownGroup: (props: dropDownGroupProps) => React$1.JSX.Element;
|
|
140
155
|
|
|
141
156
|
declare const FileUpload: (props: ElementType) => React$1.JSX.Element;
|
|
142
157
|
|
package/dist/index.js
CHANGED
|
@@ -1093,7 +1093,7 @@ var DropDownGroup = (props) => {
|
|
|
1093
1093
|
);
|
|
1094
1094
|
setSelectedValue((prev) => {
|
|
1095
1095
|
const newValue = { ...prev, firstValue: filterOption2 };
|
|
1096
|
-
const {
|
|
1096
|
+
const { ...rest } = newValue;
|
|
1097
1097
|
if (newValue.firstValue) {
|
|
1098
1098
|
props.onChange?.(rest);
|
|
1099
1099
|
}
|
|
@@ -1106,7 +1106,7 @@ var DropDownGroup = (props) => {
|
|
|
1106
1106
|
);
|
|
1107
1107
|
setSelectedValue((prev) => {
|
|
1108
1108
|
const newValue = { ...prev, secondValue: filterOption2 };
|
|
1109
|
-
const {
|
|
1109
|
+
const { ...rest } = newValue;
|
|
1110
1110
|
if (newValue.secondValue) {
|
|
1111
1111
|
props.onChange?.(rest);
|
|
1112
1112
|
}
|
|
@@ -1119,7 +1119,7 @@ var DropDownGroup = (props) => {
|
|
|
1119
1119
|
const secondFilterOptions = (input, option) => {
|
|
1120
1120
|
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1121
1121
|
};
|
|
1122
|
-
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1122
|
+
return /* @__PURE__ */ import_react26.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react26.default.createElement("p", { className: props.labelClassName }, props.label, " ", props.required ? /* @__PURE__ */ import_react26.default.createElement("span", { style: { color: "red" } }, "*") : ""), /* @__PURE__ */ import_react26.default.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ import_react26.default.createElement(
|
|
1123
1123
|
import_antd17.Select,
|
|
1124
1124
|
{
|
|
1125
1125
|
onChange: handleFirstChange,
|
|
@@ -1127,11 +1127,9 @@ var DropDownGroup = (props) => {
|
|
|
1127
1127
|
options: props.firstOptions,
|
|
1128
1128
|
className: props.className,
|
|
1129
1129
|
filterOption: firstFilterOptions,
|
|
1130
|
-
placeholder: props.firstPlaceholder,
|
|
1131
|
-
value: props.value.firstValue,
|
|
1132
1130
|
showSearch: true
|
|
1133
1131
|
}
|
|
1134
|
-
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
1132
|
+
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
1135
1133
|
import_antd17.Select,
|
|
1136
1134
|
{
|
|
1137
1135
|
onChange: handleSecondChange,
|
|
@@ -1139,8 +1137,6 @@ var DropDownGroup = (props) => {
|
|
|
1139
1137
|
options: props.secondOptions,
|
|
1140
1138
|
className: props.className,
|
|
1141
1139
|
filterOption: secondFilterOptions,
|
|
1142
|
-
placeholder: props.secondPlaceholder,
|
|
1143
|
-
value: props.value.secondValue,
|
|
1144
1140
|
showSearch: true
|
|
1145
1141
|
}
|
|
1146
1142
|
)));
|
|
@@ -1165,10 +1161,12 @@ var FileUpload = (props) => {
|
|
|
1165
1161
|
}
|
|
1166
1162
|
};
|
|
1167
1163
|
const customRequest = ({ file, onSuccess }) => {
|
|
1164
|
+
console.log("onSuccess", onSuccess);
|
|
1168
1165
|
setTimeout(() => {
|
|
1169
1166
|
onSuccess("ok");
|
|
1170
1167
|
}, 0);
|
|
1171
1168
|
};
|
|
1169
|
+
console.log("customRequest----", customRequest);
|
|
1172
1170
|
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ import_react27.default.createElement(
|
|
1173
1171
|
Dragger,
|
|
1174
1172
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1022,7 +1022,7 @@ var DropDownGroup = (props) => {
|
|
|
1022
1022
|
);
|
|
1023
1023
|
setSelectedValue((prev) => {
|
|
1024
1024
|
const newValue = { ...prev, firstValue: filterOption2 };
|
|
1025
|
-
const {
|
|
1025
|
+
const { ...rest } = newValue;
|
|
1026
1026
|
if (newValue.firstValue) {
|
|
1027
1027
|
props.onChange?.(rest);
|
|
1028
1028
|
}
|
|
@@ -1035,7 +1035,7 @@ var DropDownGroup = (props) => {
|
|
|
1035
1035
|
);
|
|
1036
1036
|
setSelectedValue((prev) => {
|
|
1037
1037
|
const newValue = { ...prev, secondValue: filterOption2 };
|
|
1038
|
-
const {
|
|
1038
|
+
const { ...rest } = newValue;
|
|
1039
1039
|
if (newValue.secondValue) {
|
|
1040
1040
|
props.onChange?.(rest);
|
|
1041
1041
|
}
|
|
@@ -1048,7 +1048,7 @@ var DropDownGroup = (props) => {
|
|
|
1048
1048
|
const secondFilterOptions = (input, option) => {
|
|
1049
1049
|
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1050
1050
|
};
|
|
1051
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1051
|
+
return /* @__PURE__ */ React25.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React25.createElement("p", { className: props.labelClassName }, props.label, " ", props.required ? /* @__PURE__ */ React25.createElement("span", { style: { color: "red" } }, "*") : ""), /* @__PURE__ */ React25.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ React25.createElement(
|
|
1052
1052
|
Select4,
|
|
1053
1053
|
{
|
|
1054
1054
|
onChange: handleFirstChange,
|
|
@@ -1056,11 +1056,9 @@ var DropDownGroup = (props) => {
|
|
|
1056
1056
|
options: props.firstOptions,
|
|
1057
1057
|
className: props.className,
|
|
1058
1058
|
filterOption: firstFilterOptions,
|
|
1059
|
-
placeholder: props.firstPlaceholder,
|
|
1060
|
-
value: props.value.firstValue,
|
|
1061
1059
|
showSearch: true
|
|
1062
1060
|
}
|
|
1063
|
-
), /* @__PURE__ */ React25.createElement("div", { style: { borderLeft: "1px solid gray" } }), /* @__PURE__ */ React25.createElement(
|
|
1061
|
+
), /* @__PURE__ */ React25.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React25.createElement(
|
|
1064
1062
|
Select4,
|
|
1065
1063
|
{
|
|
1066
1064
|
onChange: handleSecondChange,
|
|
@@ -1068,8 +1066,6 @@ var DropDownGroup = (props) => {
|
|
|
1068
1066
|
options: props.secondOptions,
|
|
1069
1067
|
className: props.className,
|
|
1070
1068
|
filterOption: secondFilterOptions,
|
|
1071
|
-
placeholder: props.secondPlaceholder,
|
|
1072
|
-
value: props.value.secondValue,
|
|
1073
1069
|
showSearch: true
|
|
1074
1070
|
}
|
|
1075
1071
|
)));
|
|
@@ -1094,10 +1090,12 @@ var FileUpload = (props) => {
|
|
|
1094
1090
|
}
|
|
1095
1091
|
};
|
|
1096
1092
|
const customRequest = ({ file, onSuccess }) => {
|
|
1093
|
+
console.log("onSuccess", onSuccess);
|
|
1097
1094
|
setTimeout(() => {
|
|
1098
1095
|
onSuccess("ok");
|
|
1099
1096
|
}, 0);
|
|
1100
1097
|
};
|
|
1098
|
+
console.log("customRequest----", customRequest);
|
|
1101
1099
|
return /* @__PURE__ */ React26.createElement("div", { className: props.containerClassName }, /* @__PURE__ */ React26.createElement(
|
|
1102
1100
|
Dragger,
|
|
1103
1101
|
{
|