@oncehub/ui-react 2.0.4-beta.2 → 2.0.4-beta.3

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.
@@ -6469,12 +6469,12 @@ const N3 = "_autocomplete_1uhaj_1", I3 = "_autocompleteContainer_1uhaj_4", _3 =
6469
6469
  [m, I]
6470
6470
  ), le = () => {
6471
6471
  h(!1);
6472
- }, se = $e(() => {
6473
- u(!0), F(v), B(!0);
6474
- }, [v, B, F]), ae = () => {
6472
+ }, se = () => {
6473
+ I(), u(!0), d.current && n && (d.current.value = n.label || ""), d.current && l.current && (o && (d.current.value = "", p(""), F("")), l.current.click());
6474
+ }, ae = $e(() => {
6475
+ u(!0);
6476
+ }, []), re = () => {
6475
6477
  m ? le() : B();
6476
- }, re = () => {
6477
- o && d.current && (d.current.value = "", F("")), I(), ae();
6478
6478
  }, z = (C) => {
6479
6479
  C.key === "Escape" ? le() : (C.key === "ArrowDown" || C.key === "ArrowUp") && !m ? B(!0) : (C.key === " " || C.code === "Space") && I();
6480
6480
  };
@@ -6499,11 +6499,11 @@ const N3 = "_autocomplete_1uhaj_1", I3 = "_autocompleteContainer_1uhaj_4", _3 =
6499
6499
  const R = C.target.value;
6500
6500
  p(R), F(R), I(), m || B(!0);
6501
6501
  },
6502
- onClick: re,
6502
+ onClick: se,
6503
+ onFocus: ae,
6503
6504
  onKeyDown: z,
6504
- onFocus: se,
6505
6505
  onBlur: J,
6506
- style: k,
6506
+ style: { ...k },
6507
6507
  placeholder: "Select your option",
6508
6508
  autoComplete: "off"
6509
6509
  }
@@ -6515,7 +6515,7 @@ const N3 = "_autocomplete_1uhaj_1", I3 = "_autocompleteContainer_1uhaj_4", _3 =
6515
6515
  "data-testid": "select-button",
6516
6516
  ref: l,
6517
6517
  onClick: () => {
6518
- I(), ae();
6518
+ d.current && (d.current.value = "", p(""), F("")), I(), re();
6519
6519
  },
6520
6520
  children: /* @__PURE__ */ D.jsx(
6521
6521
  rs,