@npm_leadtech/legal-contracts-ui 0.54.5 → 0.54.7
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/components/SearchBar.js +8 -8
- package/dist/globals.css +1 -1
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -862
|
@@ -4,8 +4,8 @@ import { SearchIcon as u } from "./SearchIcon.js";
|
|
|
4
4
|
import { CloseIcon as p } from "./CloseIcon.js";
|
|
5
5
|
import { HighlightedText as f } from "./HighlightedText.js";
|
|
6
6
|
const y = ({
|
|
7
|
-
items:
|
|
8
|
-
placeholder:
|
|
7
|
+
items: o,
|
|
8
|
+
placeholder: n,
|
|
9
9
|
isOpen: h = !1,
|
|
10
10
|
onToggle: d,
|
|
11
11
|
searchValue: i = "",
|
|
@@ -37,7 +37,7 @@ const y = ({
|
|
|
37
37
|
type: "text",
|
|
38
38
|
value: i,
|
|
39
39
|
onChange: s,
|
|
40
|
-
placeholder:
|
|
40
|
+
placeholder: n,
|
|
41
41
|
className: "flex-1 text-base text-neutral-800 outline-none placeholder:text-neutral-400",
|
|
42
42
|
autoFocus: !0
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ const y = ({
|
|
|
53
53
|
)
|
|
54
54
|
] }) }),
|
|
55
55
|
/* @__PURE__ */ e("div", { className: "overflow-y-auto", children: /* @__PURE__ */ r("ul", { className: t ? "py-4" : "", children: [
|
|
56
|
-
|
|
56
|
+
o.length > 0 && t && o.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
57
57
|
"a",
|
|
58
58
|
{
|
|
59
59
|
href: a.href,
|
|
@@ -83,7 +83,7 @@ const y = ({
|
|
|
83
83
|
name: "search",
|
|
84
84
|
value: i,
|
|
85
85
|
onChange: s,
|
|
86
|
-
placeholder:
|
|
86
|
+
placeholder: n,
|
|
87
87
|
className: "flex-1 bg-transparent text-base text-neutral-800 outline-none placeholder:text-neutral-400"
|
|
88
88
|
}
|
|
89
89
|
),
|
|
@@ -97,12 +97,12 @@ const y = ({
|
|
|
97
97
|
}
|
|
98
98
|
) : /* @__PURE__ */ e(u, { fill: "var(--neutral-500)", width: 20, height: 20 })
|
|
99
99
|
] }),
|
|
100
|
-
t && /* @__PURE__ */ e("div", { className: "absolute mt-2 overflow-y-auto bg-white", children: /* @__PURE__ */ r("ul", { className: "py-4", children: [
|
|
101
|
-
|
|
100
|
+
t && /* @__PURE__ */ e("div", { className: "absolute left-0 mt-2 w-full overflow-x-hidden overflow-y-auto bg-white", children: /* @__PURE__ */ r("ul", { className: "py-4 pl-4", children: [
|
|
101
|
+
o.length > 0 && o.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
102
102
|
"a",
|
|
103
103
|
{
|
|
104
104
|
href: a.href,
|
|
105
|
-
className: "hover:bg-primary-50 block py-2.5 text-base text-neutral-800 transition-colors",
|
|
105
|
+
className: "hover:bg-primary-50 block px-2 py-2.5 text-base text-neutral-800 transition-colors",
|
|
106
106
|
children: /* @__PURE__ */ e(f, { text: a.label, highlight: i })
|
|
107
107
|
}
|
|
108
108
|
) }, a.href)),
|