@apexcura/ui-components 0.0.13-Beta32 → 0.0.13-Beta33
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 +8 -7
- package/dist/index.mjs +8 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -189,7 +189,8 @@ var SelectElement = (props) => {
|
|
|
189
189
|
const handleChange = (value) => {
|
|
190
190
|
console.log("sigleselectvalue----", value);
|
|
191
191
|
if (props.onChange) {
|
|
192
|
-
props.
|
|
192
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
193
|
+
props.onChange(filterOption2);
|
|
193
194
|
}
|
|
194
195
|
};
|
|
195
196
|
return /* @__PURE__ */ import_react5.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react5.default.createElement(
|
|
@@ -888,12 +889,12 @@ var MultiSelect = (props) => {
|
|
|
888
889
|
setOptions(newOptions);
|
|
889
890
|
console.log("options========", options);
|
|
890
891
|
}, []);
|
|
891
|
-
const handleChange = (
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
[
|
|
896
|
-
}
|
|
892
|
+
const handleChange = (value) => {
|
|
893
|
+
const filterOption2 = options.find((eachOption) => eachOption.value === value);
|
|
894
|
+
console.log(filterOption2);
|
|
895
|
+
if (filterOption2) {
|
|
896
|
+
setSelectedOptions((prev) => [...prev, filterOption2]);
|
|
897
|
+
}
|
|
897
898
|
};
|
|
898
899
|
console.log("selectedOptions", selectedOptions);
|
|
899
900
|
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.className, style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "200px" } }, /* @__PURE__ */ import_react27.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -133,7 +133,8 @@ var SelectElement = (props) => {
|
|
|
133
133
|
const handleChange = (value) => {
|
|
134
134
|
console.log("sigleselectvalue----", value);
|
|
135
135
|
if (props.onChange) {
|
|
136
|
-
props.
|
|
136
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
137
|
+
props.onChange(filterOption2);
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
return /* @__PURE__ */ React5.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React5.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React5.createElement(
|
|
@@ -832,12 +833,12 @@ var MultiSelect = (props) => {
|
|
|
832
833
|
setOptions(newOptions);
|
|
833
834
|
console.log("options========", options);
|
|
834
835
|
}, []);
|
|
835
|
-
const handleChange = (
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
[
|
|
840
|
-
}
|
|
836
|
+
const handleChange = (value) => {
|
|
837
|
+
const filterOption2 = options.find((eachOption) => eachOption.value === value);
|
|
838
|
+
console.log(filterOption2);
|
|
839
|
+
if (filterOption2) {
|
|
840
|
+
setSelectedOptions((prev) => [...prev, filterOption2]);
|
|
841
|
+
}
|
|
841
842
|
};
|
|
842
843
|
console.log("selectedOptions", selectedOptions);
|
|
843
844
|
return /* @__PURE__ */ React26.createElement("div", { className: props.className, style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "200px" } }, /* @__PURE__ */ React26.createElement(
|