@top-message/ui-lib 1.19.1 → 1.19.5

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 CHANGED
@@ -53501,7 +53501,7 @@ const V_ = /* @__PURE__ */ Wa(G_), W_ = "_wrapper_1wmsl_1", F_ = "_icon_1wmsl_55
53501
53501
  ),
53502
53502
  l && s && /* @__PURE__ */ B("span", { className: `${$a.message} ${$a[s]}`, children: l })
53503
53503
  ] });
53504
- }, uee = "_wrapper_6pvph_1", dee = "_dropdown_6pvph_5", vee = "_strong_6pvph_21", gee = "_empty_6pvph_26", $c = {
53504
+ }, uee = "_wrapper_lxi2s_1", dee = "_dropdown_lxi2s_5", vee = "_strong_lxi2s_23", gee = "_empty_lxi2s_28", $c = {
53505
53505
  wrapper: uee,
53506
53506
  dropdown: dee,
53507
53507
  strong: vee,
@@ -53517,31 +53517,35 @@ const V_ = /* @__PURE__ */ Wa(G_), W_ = "_wrapper_1wmsl_1", F_ = "_icon_1wmsl_55
53517
53517
  isDropdownMenuOpen: a,
53518
53518
  setDropdownMenuOpen: o,
53519
53519
  style: i,
53520
- className: l = ""
53520
+ className: l = "",
53521
+ afterClose: s = () => {
53522
+ }
53521
53523
  }) => {
53522
- const s = Le(null), c = Le(null), u = Yt(() => r.map((v) => ({
53523
- ...v,
53524
- children: /* @__PURE__ */ B("span", { children: mee(v.children, t) })
53525
- })), [r, t]), d = Qt(
53526
- (v) => {
53527
- !s.current || !c.current || s.current.contains(v.target) || o(!1);
53524
+ const c = Le(null), u = Le(null), d = Yt(() => r.map((g) => ({
53525
+ ...g,
53526
+ children: /* @__PURE__ */ B("span", { children: mee(g.children, t) })
53527
+ })), [r, t]), v = Qt(
53528
+ (g) => {
53529
+ !c.current || !u.current || c.current.contains(g.target) || o(!1);
53528
53530
  },
53529
- [s.current, c.current]
53531
+ [c.current, u.current]
53530
53532
  );
53531
- return vt(() => (document.addEventListener("mousedown", d), () => {
53532
- document.removeEventListener("mousedown", d);
53533
- }), [d]), /* @__PURE__ */ lt("div", { className: `${$c.wrapper} ${l}`, style: i, children: [
53533
+ return vt(() => (document.addEventListener("mousedown", v), () => {
53534
+ document.removeEventListener("mousedown", v);
53535
+ }), [v]), vt(() => {
53536
+ a || s();
53537
+ }, [a]), /* @__PURE__ */ lt("div", { className: `${$c.wrapper} ${l}`, style: i, children: [
53534
53538
  /* @__PURE__ */ B(
53535
53539
  JC,
53536
53540
  {
53537
53541
  placeholder: e,
53538
53542
  value: t,
53539
53543
  onChange: n,
53540
- ref: c,
53544
+ ref: u,
53541
53545
  prefix: /* @__PURE__ */ B(On, { name: "search", size: 20 })
53542
53546
  }
53543
53547
  ),
53544
- t && a ? /* @__PURE__ */ B("div", { className: $c.dropdown, ref: s, children: u.length ? /* @__PURE__ */ B(Ry, { menuItems: u }) : /* @__PURE__ */ B("div", { className: $c.empty, children: "No Results" }) }) : null
53548
+ t && a ? /* @__PURE__ */ B("div", { className: $c.dropdown, ref: c, children: d.length ? /* @__PURE__ */ B(Ry, { menuItems: d }) : /* @__PURE__ */ B("div", { className: $c.empty, children: "No Results" }) }) : null
53545
53549
  ] });
53546
53550
  }, pee = "_wrapper_1uccl_1", bee = "_item_1uccl_6", hee = "_label_1uccl_11", Cee = "_active_1uccl_22", yee = "_icon_1uccl_27", Pi = {
53547
53551
  wrapper: pee,