indicator-ui 1.1.92 → 1.1.93

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
@@ -26128,22 +26128,22 @@ function BK(r) {
26128
26128
  }
26129
26129
  const VK = 1e3;
26130
26130
  function NK(r) {
26131
- const { search: e, setOptions: t, isOpenRef: n, curOptions: i } = r, [o, s] = Me(""), c = T((_) => {
26132
- n.current && s(_);
26133
- }, [s]), u = T(async () => {
26134
- if (!e) return;
26135
- const _ = await e({ search: o || "", curOptions: i });
26136
- _ != null && t(_);
26137
- }, [t, e, o, i]), [d, f] = $8(u), h = Io(d, VK);
26131
+ const { search: e, setOptions: t, isOpenRef: n, curOptions: i } = r, [o, s] = Me(""), [c, u] = Me(!0), d = T((y) => {
26132
+ n.current && s(y || void 0);
26133
+ }, [s]), f = T(async () => {
26134
+ if (!e || !c) return;
26135
+ const y = await e({ search: o || "", curOptions: i });
26136
+ y != null ? t(y) : u(!1);
26137
+ }, [t, u, c, e, o, i]), [h, p] = $8(f), _ = Io(h, VK);
26138
26138
  pe(() => {
26139
- h();
26139
+ _();
26140
26140
  }, [o]);
26141
- const p = U(() => e !== void 0, [e]);
26141
+ const g = U(() => e !== void 0, [e]);
26142
26142
  return {
26143
- onChangeSearchString: c,
26144
- canSearch: p,
26143
+ onChangeSearchString: d,
26144
+ canSearch: g,
26145
26145
  searchString: o,
26146
- isLoadingSearch: f
26146
+ isLoadingSearch: p
26147
26147
  };
26148
26148
  }
26149
26149
  const WK = 500;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.92",
14
+ "version": "1.1.93",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",