@luscii-healthtech/web-ui 0.6.1 → 0.6.2
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/web-ui.cjs.development.js +5 -5
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +5 -5
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.tsx +12 -10
|
@@ -2468,12 +2468,12 @@ function Table(_ref) {
|
|
|
2468
2468
|
var showEmptyView = !isPristine && !isLoading && !(items && items.length > 0);
|
|
2469
2469
|
return /*#__PURE__*/React__default.createElement("table", Object.assign({
|
|
2470
2470
|
className: classNames("w-full rounded-lg bg-white border-collapse table-auto", className)
|
|
2471
|
-
}, otherAttributes), showHeader
|
|
2471
|
+
}, otherAttributes), showHeader ? /*#__PURE__*/React__default.createElement(TableHeader, {
|
|
2472
2472
|
className: "border-b border-slate-100",
|
|
2473
2473
|
fieldConfigurations: fieldConfigurations
|
|
2474
|
-
}), /*#__PURE__*/React__default.createElement(TableBody, {
|
|
2474
|
+
}) : null, /*#__PURE__*/React__default.createElement(TableBody, {
|
|
2475
2475
|
className: classNames({
|
|
2476
|
-
"border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.pageCount >
|
|
2476
|
+
"border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0
|
|
2477
2477
|
}),
|
|
2478
2478
|
items: items,
|
|
2479
2479
|
fieldConfigurations: fieldConfigurations,
|
|
@@ -2482,10 +2482,10 @@ function Table(_ref) {
|
|
|
2482
2482
|
isLoading: isLoading,
|
|
2483
2483
|
showEmptyView: showEmptyView,
|
|
2484
2484
|
onRowClick: onRowClick
|
|
2485
|
-
}), !showEmptyView && paginationMenuProps && paginationMenuProps.
|
|
2485
|
+
}), !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0 ? /*#__PURE__*/React__default.createElement(TableFooter, {
|
|
2486
2486
|
colSpan: fieldConfigurations.length,
|
|
2487
2487
|
paginationMenuProps: paginationMenuProps
|
|
2488
|
-
}));
|
|
2488
|
+
}) : null);
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
var css_248z$d = ".cweb-menu > .cweb-menu-content {\n min-width: 300px;\n border-radius: 4px;\n background-color: #ffffff;\n}\n\n.cweb-menu > .cweb-menu-button {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n align-items: flex-start;\n width: 44px;\n height: 44px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect width%3D%2244%22 height%3D%2244%22 rx%3D%2222%22 fill%3D%22%23E5F5FC%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2215%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2222%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2230%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n transition: 0.2s ease;\n background-size: contain;\n}\n\n.cweb-menu > .cweb-menu-button:hover {\n width: 44px;\n height: 44px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2244%22 height%3D%2244%22 viewBox%3D%220 0 44 44%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect width%3D%2244%22 height%3D%2244%22 rx%3D%2222%22 fill%3D%22%23B3E3F7%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2215%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2222%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3Ccircle cx%3D%2222%22 cy%3D%2230%22 r%3D%223%22 fill%3D%22%23009FE3%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n transition: 0.2s ease;\n}\n";
|