@knymbus/voxel-ui 1.0.0 → 1.0.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.
package/dist/index.js
CHANGED
|
@@ -889,7 +889,7 @@ function W({ variant: e = "simple", value: t, onChange: n, onClear: r, placehold
|
|
|
889
889
|
if (e === "simple") {
|
|
890
890
|
let e = a > 0 && t.length > 0;
|
|
891
891
|
return /* @__PURE__ */ (0, d.jsxs)("div", {
|
|
892
|
-
className:
|
|
892
|
+
className: `${D} ${p}`.trim(),
|
|
893
893
|
children: [/* @__PURE__ */ (0, d.jsxs)("div", {
|
|
894
894
|
className: "relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 group hover:border-vsc-accent transition-colors z-20",
|
|
895
895
|
children: [
|
|
@@ -907,6 +907,7 @@ function W({ variant: e = "simple", value: t, onChange: n, onClear: r, placehold
|
|
|
907
907
|
}),
|
|
908
908
|
t && /* @__PURE__ */ (0, d.jsx)("div", {
|
|
909
909
|
className: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center",
|
|
910
|
+
style: { marginRight: "4px" },
|
|
910
911
|
children: /* @__PURE__ */ (0, d.jsx)(m, {
|
|
911
912
|
icon: v,
|
|
912
913
|
color: "ghost",
|
|
@@ -917,7 +918,7 @@ function W({ variant: e = "simple", value: t, onChange: n, onClear: r, placehold
|
|
|
917
918
|
})
|
|
918
919
|
]
|
|
919
920
|
}), /* @__PURE__ */ (0, d.jsx)("div", {
|
|
920
|
-
className: `absolute left-0 right-0 top-8 z-
|
|
921
|
+
className: `absolute left-0 right-0 top-8 z-50 overflow-hidden transition-all duration-200 cubic-bezier(0.34, 1.56, 0.64, 1) ${e ? "" : "pointer-events-none"}`,
|
|
921
922
|
style: {
|
|
922
923
|
height: e ? "auto" : "0px",
|
|
923
924
|
opacity: +!!e,
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export default function SearchInput({
|
|
|
62
62
|
const hasResults = resultsCount > 0 && value.length > 0;
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
|
-
<div className={
|
|
65
|
+
<div className={`${baseWrapper} ${className}`.trim()}>
|
|
66
66
|
{/* Core Input Box Frame */}
|
|
67
67
|
<div className="relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 group hover:border-vsc-accent transition-colors z-20">
|
|
68
68
|
<Search size={14} className="absolute left-2.5 text-vsc-muted group-hover:text-vsc-text" />
|
|
@@ -75,7 +75,7 @@ export default function SearchInput({
|
|
|
75
75
|
className="w-full h-full pl-8 pr-10 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
|
|
76
76
|
/>
|
|
77
77
|
{value && (
|
|
78
|
-
<div className="absolute right-1 top-1/2 -translate-y-1/2 flex items-center">
|
|
78
|
+
<div className="absolute right-1 top-1/2 -translate-y-1/2 flex items-center" style={{ marginRight: '4px' }}>
|
|
79
79
|
<Button
|
|
80
80
|
icon={Close}
|
|
81
81
|
color="ghost"
|
|
@@ -93,7 +93,7 @@ export default function SearchInput({
|
|
|
93
93
|
- Utilizes hardware-accelerated transforms (translateY) for a smooth glide effect.
|
|
94
94
|
*/}
|
|
95
95
|
<div
|
|
96
|
-
className={`absolute left-0 right-0 top-8 z-
|
|
96
|
+
className={`absolute left-0 right-0 top-8 z-50 overflow-hidden transition-all duration-200 cubic-bezier(0.34, 1.56, 0.64, 1) ${!hasResults ? 'pointer-events-none' : ''}`}
|
|
97
97
|
style={{
|
|
98
98
|
height: hasResults ? 'auto' : '0px',
|
|
99
99
|
opacity: hasResults ? 1 : 0,
|