avine-react-components
Advanced tools
Comparing version 0.1.30 to 0.1.31
@@ -1078,3 +1078,3 @@ "use strict"; | ||
rowsPerPage = 10, | ||
searchable = false, | ||
searchable = true, | ||
fixed = false, | ||
@@ -1131,3 +1131,5 @@ viewOnly = false | ||
(0, import_react21.useEffect)(() => setInnerColumns(columns), [columns]); | ||
(0, import_react21.useEffect)(() => setInnerData(data), [data]); | ||
(0, import_react21.useEffect)(() => { | ||
handleFilterData(data, searchValue); | ||
}, [handleFilterData, data, searchValue]); | ||
return /* @__PURE__ */ import_react21.default.createElement("div", { className: " w-full bg-white my-4 rounded-lg py-4" }, !viewOnly && /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex space-x-4 justify-end mb-4 px-4" }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex space-x-4 items-center justify-end flex-col md:flex-row" }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex-1 my-4 md:my-0" }, searchable && !isLoading && /* @__PURE__ */ import_react21.default.createElement("div", { className: "relative flex-1 max-w-md" }, /* @__PURE__ */ import_react21.default.createElement(LuSearch, { className: "absolute top-2.5 left-2 text-gray-300", size: 20 }), /* @__PURE__ */ import_react21.default.createElement( | ||
@@ -1134,0 +1136,0 @@ "input", |
@@ -1086,3 +1086,3 @@ "use strict"; | ||
rowsPerPage = 10, | ||
searchable = false, | ||
searchable = true, | ||
fixed = false, | ||
@@ -1139,3 +1139,5 @@ viewOnly = false | ||
(0, import_react21.useEffect)(() => setInnerColumns(columns), [columns]); | ||
(0, import_react21.useEffect)(() => setInnerData(data), [data]); | ||
(0, import_react21.useEffect)(() => { | ||
handleFilterData(data, searchValue); | ||
}, [handleFilterData, data, searchValue]); | ||
return /* @__PURE__ */ import_react21.default.createElement("div", { className: " w-full bg-white my-4 rounded-lg py-4" }, !viewOnly && /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex space-x-4 justify-end mb-4 px-4" }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex space-x-4 items-center justify-end flex-col md:flex-row" }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "w-full flex-1 my-4 md:my-0" }, searchable && !isLoading && /* @__PURE__ */ import_react21.default.createElement("div", { className: "relative flex-1 max-w-md" }, /* @__PURE__ */ import_react21.default.createElement(LuSearch, { className: "absolute top-2.5 left-2 text-gray-300", size: 20 }), /* @__PURE__ */ import_react21.default.createElement( | ||
@@ -1142,0 +1144,0 @@ "input", |
{ | ||
"name": "avine-react-components", | ||
"version": "0.1.30", | ||
"version": "0.1.31", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6585817
11464