@thecb/components 8.4.2 → 8.4.3-beta.1

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.d.ts CHANGED
@@ -952,6 +952,7 @@ declare const EditableTable: React.FC<Expand<EditableTableProps> &
952
952
  interface TableListItemProps {
953
953
  title: string | JSX.Element;
954
954
  value: string | JSX.Element;
955
+ onClick?: () => void;
955
956
  canEdit?: boolean;
956
957
  canRemove?: boolean;
957
958
  isMobile?: boolean;
package/dist/index.esm.js CHANGED
@@ -41242,6 +41242,10 @@ var EditableTable = function EditableTable(_ref) {
41242
41242
  var TableListItem = function TableListItem(_ref) {
41243
41243
  var title = _ref.title,
41244
41244
  value = _ref.value,
41245
+ _ref$onClick = _ref.onClick,
41246
+ onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
41247
+ _ref$hoverBackgroundC = _ref.hoverBackgroundColor,
41248
+ hoverBackgroundColor = _ref$hoverBackgroundC === void 0 ? undefined : _ref$hoverBackgroundC,
41245
41249
  _ref$canEdit = _ref.canEdit,
41246
41250
  canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,
41247
41251
  _ref$canRemove = _ref.canRemove,
@@ -41250,9 +41254,10 @@ var TableListItem = function TableListItem(_ref) {
41250
41254
  borderTopItem = _ref.borderTopItem;
41251
41255
  return /*#__PURE__*/React.createElement(Box, {
41252
41256
  padding: "0px",
41253
- extraStyles: "&:last-child {\n > * {\n border-bottom: none;\n }\n }\n ".concat(isMobile && borderTopItem && "&:first-child {\n > * {\n border-top: 1px solid ".concat(GHOST_GREY, ";\n }\n }"), "\n ")
41257
+ extraStyles: "&:last-child {\n > * {\n border-bottom: none;\n }\n }\n ".concat(isMobile && borderTopItem && "&:first-child {\n > * {\n border-top: 1px solid ".concat(GHOST_GREY, ";\n }\n }"), "\n ").concat(hoverBackgroundColor && "&:hover {\n background-color: ".concat(hoverBackgroundColor, ";\n cursor: pointer;\n }"), "\n ")
41254
41258
  }, /*#__PURE__*/React.createElement(ItemWrapper, null, /*#__PURE__*/React.createElement(EditableTableListItem, {
41255
- isMobile: isMobile
41259
+ isMobile: isMobile,
41260
+ onClick: onClick
41256
41261
  }, /*#__PURE__*/React.createElement(TableItemKey, {
41257
41262
  isMobile: isMobile
41258
41263
  }, /*#__PURE__*/React.createElement(Text$1, {