unifyedx-storybook-new 0.2.41 → 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(""), r = f === "" ? o : o.filter(
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) => a?.id ? d.id === a.id : d.id === a || d.value === a);
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: [
@@ -5641,9 +5651,9 @@ function zs({
5641
5651
  P[F.key] = z[F.key] || "";
5642
5652
  }), P;
5643
5653
  }) : b[D] = u[D];
5644
- }));
5654
+ })), (!b.appkey || b.appkey === "") && (b.appkey = t);
5645
5655
  let y = await Ze(A, b);
5646
- if (console.log(), y && y.status != "fail") {
5656
+ if (y && y.status != "fail") {
5647
5657
  p({});
5648
5658
  const D = y.message || "Configuration has been saved successfully";
5649
5659
  Ie.success(D), l && typeof l == "function" && l(u);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unifyedx-storybook-new",
3
3
  "private": false,
4
- "version": "0.2.41",
4
+ "version": "0.2.43",
5
5
  "type": "module",
6
6
  "main": "dist/unifyedx-storybook-new.es.js",
7
7
  "module": "dist/unifyedx-storybook-new.es.js",