@thecb/components 8.4.2 → 8.4.3-beta.0

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,8 @@ 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,
41245
41247
  _ref$canEdit = _ref.canEdit,
41246
41248
  canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,
41247
41249
  _ref$canRemove = _ref.canRemove,
@@ -41252,7 +41254,8 @@ var TableListItem = function TableListItem(_ref) {
41252
41254
  padding: "0px",
41253
41255
  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 ")
41254
41256
  }, /*#__PURE__*/React.createElement(ItemWrapper, null, /*#__PURE__*/React.createElement(EditableTableListItem, {
41255
- isMobile: isMobile
41257
+ isMobile: isMobile,
41258
+ onClick: onClick
41256
41259
  }, /*#__PURE__*/React.createElement(TableItemKey, {
41257
41260
  isMobile: isMobile
41258
41261
  }, /*#__PURE__*/React.createElement(Text$1, {