@oliasoft-open-source/react-ui-library 3.11.0-beta-7 → 3.11.0-beta-8
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 +13 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60341,7 +60341,9 @@ const Table = (props) => {
|
|
|
60341
60341
|
draggable: draggable2,
|
|
60342
60342
|
defaultEmptyRow = null,
|
|
60343
60343
|
onAddRow = null,
|
|
60344
|
-
bordered: bordered2 = true
|
|
60344
|
+
bordered: bordered2 = true,
|
|
60345
|
+
maxHeight,
|
|
60346
|
+
fixedWidth: width
|
|
60345
60347
|
} = propTable;
|
|
60346
60348
|
const targetRef = useRef();
|
|
60347
60349
|
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
|
|
@@ -60392,9 +60394,16 @@ const Table = (props) => {
|
|
|
60392
60394
|
...propTable,
|
|
60393
60395
|
rows
|
|
60394
60396
|
};
|
|
60397
|
+
const wrapperClass = cx$2(styles$a.wrapper, bordered2 ? styles$a.bordered : "");
|
|
60398
|
+
const wrapperStyles = {
|
|
60399
|
+
maxHeight,
|
|
60400
|
+
width,
|
|
60401
|
+
display: width === "auto" ? "inline-flex" : "flex"
|
|
60402
|
+
};
|
|
60395
60403
|
return draggable2 ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60396
60404
|
ref: targetRef,
|
|
60397
|
-
className:
|
|
60405
|
+
className: wrapperClass,
|
|
60406
|
+
style: wrapperStyles,
|
|
60398
60407
|
children: [
|
|
60399
60408
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
|
|
60400
60409
|
actions: actions2,
|
|
@@ -60477,7 +60486,8 @@ const Table = (props) => {
|
|
|
60477
60486
|
})
|
|
60478
60487
|
]
|
|
60479
60488
|
}) : /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60480
|
-
className:
|
|
60489
|
+
className: wrapperClass,
|
|
60490
|
+
style: wrapperStyles,
|
|
60481
60491
|
children: [
|
|
60482
60492
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
|
|
60483
60493
|
actions: actions2,
|