@luscii-healthtech/web-ui 30.10.0 → 30.10.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/index.development.js +16 -7
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3875,11 +3875,20 @@ function TableBody(props) {
|
|
|
3875
3875
|
) },
|
|
3876
3876
|
!props.isLoading && ((_a = props.items) === null || _a === void 0 ? void 0 : _a.map((item, index) => React__namespace.default.createElement(
|
|
3877
3877
|
"tr",
|
|
3878
|
-
{
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3878
|
+
{
|
|
3879
|
+
/**
|
|
3880
|
+
* Not the best, but I'm re-adding what it existed in the TableBodyRow:
|
|
3881
|
+
* https://github.com/Luscii/web-ui/pull/820/files#diff-a4cc940bcb5cc070b340404e9d7fb626ab529bac099dba0cb0b8b2b0cbc274bfL67
|
|
3882
|
+
*/
|
|
3883
|
+
key: JSON.stringify(item),
|
|
3884
|
+
tabIndex: 0,
|
|
3885
|
+
className: classNames__default.default("ui-group", {
|
|
3886
|
+
"ui-cursor-pointer ui-transition-colors ui-duration-300 ui-ease-in-out hover:ui-bg-blue-50 focus:ui-outline-primary": props.onRowClick,
|
|
3887
|
+
"ui-cursor-default hover:ui-bg-white": !props.onRowClick,
|
|
3888
|
+
"ui-bg-blue-100": isItemChecked(index)
|
|
3889
|
+
}, props.className),
|
|
3890
|
+
onClick: generateRowClickHandler(item)
|
|
3891
|
+
},
|
|
3883
3892
|
props.isSelectable && React__namespace.default.createElement(
|
|
3884
3893
|
"td",
|
|
3885
3894
|
{ className: "ui-px-2 first:ui-pl-6 last:ui-pr-6" },
|
|
@@ -6179,10 +6188,10 @@ const Actions = (props) => {
|
|
|
6179
6188
|
};
|
|
6180
6189
|
|
|
6181
6190
|
const Padding = (props) => {
|
|
6182
|
-
const { children
|
|
6191
|
+
const { children } = props, rest = __rest(props, ["children"]);
|
|
6183
6192
|
return (
|
|
6184
6193
|
// Using margin here, because adjacent margins collapse.
|
|
6185
|
-
React__namespace.default.createElement(
|
|
6194
|
+
React__namespace.default.createElement(Box, Object.assign({ m: "l" }, rest), children)
|
|
6186
6195
|
);
|
|
6187
6196
|
};
|
|
6188
6197
|
|