unifyedx-storybook-new 0.2.42 → 0.2.43
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.
|
@@ -1603,9 +1603,19 @@ const zn = {
|
|
|
1603
1603
|
// From RHF's <Controller>
|
|
1604
1604
|
showSearch: g = !0
|
|
1605
1605
|
}) => {
|
|
1606
|
-
const [f, x] = L("")
|
|
1606
|
+
const [f, x] = L("");
|
|
1607
|
+
console.log("Select component - value:", a, "type:", typeof a), console.log("Select component - options:", o);
|
|
1608
|
+
const r = f === "" ? o : o.filter(
|
|
1607
1609
|
(d) => d.label.toLowerCase().includes(f.toLowerCase())
|
|
1608
|
-
), N = o.find((d) =>
|
|
1610
|
+
), N = o.find((d) => {
|
|
1611
|
+
if (typeof a == "object" && a !== null) {
|
|
1612
|
+
if (a === d) return !0;
|
|
1613
|
+
if (a.id && d.id) return d.id === a.id;
|
|
1614
|
+
if (a.value && d.value) return d.value === a.value;
|
|
1615
|
+
if (a.label && d.label) return d.label === a.label;
|
|
1616
|
+
}
|
|
1617
|
+
return d.id === a || d.value === a || d.label === a;
|
|
1618
|
+
});
|
|
1609
1619
|
return /* @__PURE__ */ e(K, { value: a, onChange: s, disabled: m, children: /* @__PURE__ */ n("div", { className: "select-wrapper", ref: u, children: [
|
|
1610
1620
|
t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
|
|
1611
1621
|
/* @__PURE__ */ n("div", { className: "select-button-container", children: [
|
|
Binary file
|
|
Binary file
|