@helpdice/ui 2.4.4 → 2.4.5

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.js CHANGED
@@ -35750,9 +35750,9 @@ var TableCell = function TableCell(_ref) {
35750
35750
  onCellClick = _ref.onCellClick;
35751
35751
  /* eslint-disable react/jsx-no-useless-fragment */
35752
35752
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, columns.map(function (column, index) {
35753
- var _row$_id;
35753
+ var _ref2, _currentRowValue$valu, _row$_id;
35754
35754
  var currentRowValue = row[column.prop];
35755
- var cellValue = currentRowValue !== null && currentRowValue !== void 0 && currentRowValue.value ? currentRowValue.value : currentRowValue || emptyText;
35755
+ var cellValue = (_ref2 = (_currentRowValue$valu = currentRowValue === null || currentRowValue === void 0 ? void 0 : currentRowValue.value) !== null && _currentRowValue$valu !== void 0 ? _currentRowValue$valu : currentRowValue) !== null && _ref2 !== void 0 ? _ref2 : emptyText;
35756
35756
  var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
35757
35757
  return /*#__PURE__*/React$1.createElement("td", {
35758
35758
  style: _objectSpread2({
@@ -22830,9 +22830,9 @@ var TableCell = function TableCell(_ref) {
22830
22830
  onCellClick = _ref.onCellClick;
22831
22831
  /* eslint-disable react/jsx-no-useless-fragment */
22832
22832
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, columns.map(function (column, index) {
22833
- var _row$_id;
22833
+ var _ref2, _currentRowValue$valu, _row$_id;
22834
22834
  var currentRowValue = row[column.prop];
22835
- var cellValue = currentRowValue !== null && currentRowValue !== void 0 && currentRowValue.value ? currentRowValue.value : currentRowValue || emptyText;
22835
+ var cellValue = (_ref2 = (_currentRowValue$valu = currentRowValue === null || currentRowValue === void 0 ? void 0 : currentRowValue.value) !== null && _currentRowValue$valu !== void 0 ? _currentRowValue$valu : currentRowValue) !== null && _ref2 !== void 0 ? _ref2 : emptyText;
22836
22836
  var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
22837
22837
  return /*#__PURE__*/React$1.createElement("td", {
22838
22838
  style: _objectSpread2({
@@ -8,9 +8,9 @@ var TableCell = function TableCell(_ref) {
8
8
  onCellClick = _ref.onCellClick;
9
9
  /* eslint-disable react/jsx-no-useless-fragment */
10
10
  return /*#__PURE__*/React.createElement(React.Fragment, null, columns.map(function (column, index) {
11
- var _row$_id;
11
+ var _ref2, _currentRowValue$valu, _row$_id;
12
12
  var currentRowValue = row[column.prop];
13
- var cellValue = currentRowValue !== null && currentRowValue !== void 0 && currentRowValue.value ? currentRowValue.value : currentRowValue || emptyText;
13
+ var cellValue = (_ref2 = (_currentRowValue$valu = currentRowValue === null || currentRowValue === void 0 ? void 0 : currentRowValue.value) !== null && _currentRowValue$valu !== void 0 ? _currentRowValue$valu : currentRowValue) !== null && _ref2 !== void 0 ? _ref2 : emptyText;
14
14
  var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
15
15
  return /*#__PURE__*/React.createElement("td", {
16
16
  style: _extends({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",