@konstructio/ui 0.1.2-alpha.30 → 0.1.2-alpha.32

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.
@@ -1,32 +1,32 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { useCallback as d } from "react";
3
- import { Input as p } from "../../../Input/Input.js";
4
- import { FlagSelectorList as c } from "../FlagSelectorList/FlagSelectorList.js";
3
+ import { Input as c } from "../../../Input/Input.js";
4
+ import { FlagSelectorList as p } from "../FlagSelectorList/FlagSelectorList.js";
5
5
  import { usePhoneNumberContext as u } from "../../contexts/phone-number.hook.js";
6
6
  const S = ({
7
7
  placeholder: r = "Search",
8
8
  showFlagOnSearch: o,
9
- showInputFilter: t,
10
- showNameOnSearch: a,
11
- showPlaceHolder: s = !0
9
+ showInputFilter: a,
10
+ showNameOnSearch: t,
11
+ showPlaceHolder: l = !0
12
12
  }) => {
13
- const { onChangeTermOfSearch: l } = u(), n = d((m) => {
14
- l(m.target.value);
13
+ const { onChangeTermOfSearch: s } = u(), m = d((n) => {
14
+ s(n.target.value);
15
15
  }, []);
16
- return /* @__PURE__ */ i("div", { className: "absolute top-full mt-1.5 animate-in fade-in-0 zoom-in-95 w-full border border-transparent bg-white shadow-sm py-2 z-10 rounded-sm dark:bg-slate-800 dark:border-slate-600", children: [
17
- t && /* @__PURE__ */ e("div", { className: "px-6 py-2.5", children: /* @__PURE__ */ e(
18
- p,
16
+ return /* @__PURE__ */ i("div", { className: "absolute top-full mt-1.5 animate-in fade-in-0 zoom-in-95 w-full border border-gray-100 bg-white shadow-sm py-2 z-10 rounded-sm dark:bg-slate-800 dark:border-slate-600", children: [
17
+ a && /* @__PURE__ */ e("div", { className: "px-6 py-2.5", children: /* @__PURE__ */ e(
18
+ c,
19
19
  {
20
20
  isSearch: !0,
21
- placeholder: s ? r : void 0,
22
- onChange: n
21
+ placeholder: l ? r : void 0,
22
+ onChange: m
23
23
  }
24
24
  ) }),
25
25
  /* @__PURE__ */ e(
26
- c,
26
+ p,
27
27
  {
28
28
  showFlagOnSearch: o,
29
- showNameOnSearch: a
29
+ showNameOnSearch: t
30
30
  }
31
31
  )
32
32
  ] });