@visns-studio/visns-components 1.1.18 → 1.1.19

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.
@@ -60,6 +60,7 @@ const DataGrid = (props) => {
60
60
  form,
61
61
  columns,
62
62
  settings,
63
+ style,
63
64
  tableFilters,
64
65
  historySearch,
65
66
  historyUrl,
@@ -105,7 +106,6 @@ const DataGrid = (props) => {
105
106
  [ajaxSetting, dataReload, dSearch]
106
107
  );
107
108
  const [gridColumns, setGridColumns] = useState([]);
108
- const [gridHeight, setGridHeight] = useState(550);
109
109
  const limit = ajaxSetting.take || 10;
110
110
  const [search, setSearch] = useState("");
111
111
  const sortInfo =
@@ -741,15 +741,7 @@ const DataGrid = (props) => {
741
741
  minHeight: windowHeight * 0.6 > 550 ? windowHeight * 0.6 : 550,
742
742
  };
743
743
  const headerProps = {
744
- style: {
745
- color: import.meta.env.VITE_VISNS_COMPONENT_HEADER_STYLE_COLOR
746
- ? import.meta.env.VITE_VISNS_COMPONENT_HEADER_STYLE_COLOR
747
- : null,
748
- background: import.meta.env
749
- .VITE_VISNS_COMPONENT_HEADER_STYLE_BACKGROUND
750
- ? import.meta.env.VITE_VISNS_COMPONENT_HEADER_STYLE_BACKGROUND
751
- : null,
752
- },
744
+ style: style ? style : {},
753
745
  };
754
746
 
755
747
  useEffect(() => {
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "react-dom": ">=18.2.0"
34
34
  },
35
35
  "name": "@visns-studio/visns-components",
36
- "version": "1.1.18",
36
+ "version": "1.1.19",
37
37
  "description": "Various packages to assist in the development of our Custom Applications.",
38
38
  "main": "index.js",
39
39
  "devDependencies": {},