sy-ui-lib 1.0.44 → 1.0.45
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
|
@@ -9374,21 +9374,23 @@ const dt = (e) => {
|
|
|
9374
9374
|
onSearch: o = () => {
|
|
9375
9375
|
},
|
|
9376
9376
|
debounceTime: i = 500,
|
|
9377
|
-
|
|
9378
|
-
|
|
9377
|
+
defaultValue: l = "",
|
|
9378
|
+
...a
|
|
9379
|
+
} = e, [C, c] = I(l), d = `flex justify-between items-center gap-1 bg-white border border-brightgray rounded-lg ${k4[r].size} ${s ? "w-full" : k4[r].width}`, u = "w-full text-xs text-smokyblack font-normal leading-4 tracking-tight outline-none border-none focus:outline-none focus:border-none";
|
|
9379
9380
|
return J(() => {
|
|
9380
|
-
const
|
|
9381
|
-
o(
|
|
9381
|
+
const f = setTimeout(() => {
|
|
9382
|
+
o(C);
|
|
9382
9383
|
}, i);
|
|
9383
|
-
return () => clearTimeout(
|
|
9384
|
-
}, [
|
|
9384
|
+
return () => clearTimeout(f);
|
|
9385
|
+
}, [C, i, o]), /* @__PURE__ */ n.jsxs("div", { className: d, children: [
|
|
9385
9386
|
/* @__PURE__ */ n.jsx(
|
|
9386
9387
|
"input",
|
|
9387
9388
|
{
|
|
9388
9389
|
placeholder: t,
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9390
|
+
value: C,
|
|
9391
|
+
onChange: (f) => c(f.target.value),
|
|
9392
|
+
className: u,
|
|
9393
|
+
...a
|
|
9392
9394
|
}
|
|
9393
9395
|
),
|
|
9394
9396
|
/* @__PURE__ */ n.jsx("span", { className: "ml-2 flex items-center", children: /* @__PURE__ */ n.jsx(z, { icon: "search", size: k4[r].icon }) })
|