uibee 3.1.0 → 3.1.1
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.
|
@@ -825,14 +825,17 @@ function SearchInput({ placeholder = "Search...", variant = "default" }) {
|
|
|
825
825
|
className: "pl-10 pr-4 py-2 border-b outline-none w-64"
|
|
826
826
|
})]
|
|
827
827
|
});
|
|
828
|
-
else return /* @__PURE__ */ jsx(
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
828
|
+
else return /* @__PURE__ */ jsx("div", {
|
|
829
|
+
className: "w-fit min-w-48",
|
|
830
|
+
children: /* @__PURE__ */ jsx(Input, {
|
|
831
|
+
name: "search",
|
|
832
|
+
icon: /* @__PURE__ */ jsx(Search, { className: "w-5 h-5" }),
|
|
833
|
+
value: searchValue,
|
|
834
|
+
onChange: handleChange,
|
|
835
|
+
onKeyDown: handleKeyDown,
|
|
836
|
+
onBlur: () => handleSearch(searchValue),
|
|
837
|
+
placeholder
|
|
838
|
+
})
|
|
836
839
|
});
|
|
837
840
|
}
|
|
838
841
|
//#endregion
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -59,14 +59,18 @@ export default function SearchInput({ placeholder = 'Search...', variant = 'defa
|
|
|
59
59
|
</div>
|
|
60
60
|
)
|
|
61
61
|
} else {
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
return (
|
|
63
|
+
<div className='w-fit min-w-48'>
|
|
64
|
+
<Input
|
|
65
|
+
name='search'
|
|
66
|
+
icon={<Search className='w-5 h-5' />}
|
|
67
|
+
value={searchValue}
|
|
68
|
+
onChange={handleChange}
|
|
69
|
+
onKeyDown={handleKeyDown}
|
|
70
|
+
onBlur={() => handleSearch(searchValue)}
|
|
71
|
+
placeholder={placeholder}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
)
|
|
71
75
|
}
|
|
72
76
|
}
|