@portnet/ui 0.0.73 → 0.0.74

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.
@@ -281,19 +281,15 @@ const PuiTable = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
281
281
  headerClassName: "tableActionColumn"
282
282
  }] : columns;
283
283
  setAppColumns(newColumns.map(column => {
284
- const renderCell = Boolean(column.renderCell) ? column.renderCell : Boolean(column.valueGetter) ? columnData => {
285
- var _column$title;
286
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
287
- title: (_column$title = column.title) !== null && _column$title !== void 0 ? _column$title : String(column.valueGetter(columnData)),
288
- children: column.valueGetter(columnData)
289
- });
290
- } : Boolean(column.field) ? _ref5 => {
291
- var _column$title2;
284
+ const renderCell = Boolean(column.renderCell) ? column.renderCell : Boolean(column.valueGetter) ? columnData => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
285
+ title: Boolean(column.titleGetter) ? column.titleGetter(columnData.row) : String(column.valueGetter(columnData)),
286
+ children: column.valueGetter(columnData)
287
+ }) : Boolean(column.field) ? _ref5 => {
292
288
  let {
293
289
  row
294
290
  } = _ref5;
295
291
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
296
- title: (_column$title2 = column.title) !== null && _column$title2 !== void 0 ? _column$title2 : String(row[column.field]),
292
+ title: Boolean(column.titleGetter) ? column.titleGetter(row) : String(row[column.field]),
297
293
  children: row[column.field]
298
294
  });
299
295
  } : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",