qbs-react-grid 1.0.37 → 1.0.38

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.
@@ -82,7 +82,7 @@ export var CustomTableCell = /*#__PURE__*/React.memo(function (_ref4) {
82
82
  link = _ref4.link,
83
83
  props = _objectWithoutPropertiesLoose(_ref4, _excluded3);
84
84
  return /*#__PURE__*/React.createElement(TooltipComponent, {
85
- title: renderCell ? (_renderCell = renderCell(rowData)) === null || _renderCell === void 0 ? void 0 : _renderCell.tooltip : toolTip
85
+ title: renderCell ? (_renderCell = renderCell(rowData)) === null || _renderCell === void 0 ? void 0 : _renderCell.toolTip : toolTip
86
86
  }, /*#__PURE__*/React.createElement(Cell, _extends({}, props, {
87
87
  dataKey: dataKey
88
88
  }), link ? /*#__PURE__*/React.createElement("a", {
@@ -6,7 +6,7 @@ declare enum Align {
6
6
  }
7
7
  interface Content {
8
8
  cell: ReactNode | string;
9
- tooltip: string;
9
+ toolTip?: string;
10
10
  }
11
11
  export interface ColumnBase {
12
12
  title: string;
@@ -90,7 +90,7 @@ var CustomTableCell = /*#__PURE__*/_react["default"].memo(function (_ref4) {
90
90
  link = _ref4.link,
91
91
  props = (0, _objectWithoutPropertiesLoose2["default"])(_ref4, _excluded3);
92
92
  return /*#__PURE__*/_react["default"].createElement(_ToolTip["default"], {
93
- title: renderCell ? (_renderCell = renderCell(rowData)) === null || _renderCell === void 0 ? void 0 : _renderCell.tooltip : toolTip
93
+ title: renderCell ? (_renderCell = renderCell(rowData)) === null || _renderCell === void 0 ? void 0 : _renderCell.toolTip : toolTip
94
94
  }, /*#__PURE__*/_react["default"].createElement(_Cell["default"], (0, _extends2["default"])({}, props, {
95
95
  dataKey: dataKey
96
96
  }), link ? /*#__PURE__*/_react["default"].createElement("a", {
@@ -6,7 +6,7 @@ declare enum Align {
6
6
  }
7
7
  interface Content {
8
8
  cell: ReactNode | string;
9
- tooltip: string;
9
+ toolTip?: string;
10
10
  }
11
11
  export interface ColumnBase {
12
12
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qbs-react-grid",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "A React table component",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -64,7 +64,7 @@ export const ExpandCell: React.FC<any> = React.memo(
64
64
  export const CustomTableCell: React.FC<any> = React.memo(
65
65
  ({ rowData, renderCell, toolTip, dataKey, onChange, rowClick, link, ...props }) => {
66
66
  return (
67
- <TooltipComponent title={renderCell ? renderCell(rowData)?.tooltip : toolTip}>
67
+ <TooltipComponent title={renderCell ? renderCell(rowData)?.toolTip : toolTip}>
68
68
  <Cell {...props} dataKey={dataKey}>
69
69
  {link ? (
70
70
  <a onClick={() => rowClick?.(rowData)} className="qbs-table-row-link">
@@ -7,7 +7,7 @@ enum Align {
7
7
  }
8
8
  interface Content {
9
9
  cell: ReactNode | string;
10
- tooltip: string;
10
+ toolTip?: string;
11
11
  }
12
12
  export interface ColumnBase {
13
13
  title: string;