@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.
@@ -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
- { tabIndex: 0, className: classNames__default.default("ui-group", {
3879
- "ui-cursor-pointer ui-transition-colors ui-duration-300 ui-ease-in-out hover:ui-bg-blue-50 focus:ui-outline-primary": props.onRowClick,
3880
- "ui-cursor-default hover:ui-bg-white": !props.onRowClick,
3881
- "ui-bg-blue-100": isItemChecked(index)
3882
- }, props.className), onClick: generateRowClickHandler(item) },
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, className } = props, rest = __rest(props, ["children", "className"]);
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("div", Object.assign({}, rest, { className: classNames__default.default("ui-m-4", className) }), children)
6194
+ React__namespace.default.createElement(Box, Object.assign({ m: "l" }, rest), children)
6186
6195
  );
6187
6196
  };
6188
6197