lecom-ui 5.2.21 → 5.2.22

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.
@@ -31,10 +31,6 @@ function DataTable({
31
31
  sorting
32
32
  }
33
33
  });
34
- const styleDataTableContainer = () => ({
35
- width: vwDiff ? `calc(100vw - ${vwDiff}px)` : "100%",
36
- height: vhDiff ? `calc(100vh - ${vhDiff}px)` : "100%"
37
- });
38
34
  const hasPagination = () => {
39
35
  if (!pagination) {
40
36
  return null;
@@ -59,14 +55,12 @@ function DataTable({
59
55
  className: cn(
60
56
  "bg-white rounded-[8px] p-2 transition-all duration-500",
61
57
  className
62
- ),
63
- style: noScroll ? void 0 : { width: styleDataTableContainer().width }
58
+ )
64
59
  },
65
60
  noScroll ? renderTable() : /* @__PURE__ */ React.createElement(ScrollArea, { type: "always", className: "p-2" }, /* @__PURE__ */ React.createElement(
66
61
  "div",
67
62
  {
68
- className: "transition-all duration-500",
69
- style: { maxHeight: styleDataTableContainer().height }
63
+ className: "transition-all duration-500"
70
64
  },
71
65
  renderTable()
72
66
  ), /* @__PURE__ */ React.createElement(ScrollBar, { orientation: "horizontal" }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.2.21",
3
+ "version": "5.2.22",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",