@dhis2-ui/table 8.14.0 → 8.14.2

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.
@@ -19,6 +19,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+
22
24
  const DataTableCell = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
23
25
  let {
24
26
  active,
@@ -41,10 +43,11 @@ const DataTableCell = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
41
43
  tag,
42
44
  valid,
43
45
  width,
44
- onClick
46
+ onClick,
47
+ ...props
45
48
  } = _ref;
46
49
  const TableCell = !tag && fixed || tag && tag === 'th' ? _index.TableHeaderCell : _index.TableDataCell;
47
- return /*#__PURE__*/_react.default.createElement(TableCell, {
50
+ return /*#__PURE__*/_react.default.createElement(TableCell, _extends({}, props, {
48
51
  active: active,
49
52
  align: align,
50
53
  backgroundColor: backgroundColor,
@@ -65,7 +68,7 @@ const DataTableCell = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
65
68
  valid: valid,
66
69
  width: width,
67
70
  onClick: onClick
68
- }, children);
71
+ }), children);
69
72
  });
70
73
  exports.DataTableCell = DataTableCell;
71
74
  DataTableCell.displayName = 'DataTableCell';
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  import { mutuallyExclusive, requiredIf } from '@dhis2/prop-types';
2
4
  import PropTypes from 'prop-types';
3
5
  import React, { forwardRef } from 'react';
@@ -24,10 +26,11 @@ export const DataTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
24
26
  tag,
25
27
  valid,
26
28
  width,
27
- onClick
29
+ onClick,
30
+ ...props
28
31
  } = _ref;
29
32
  const TableCell = !tag && fixed || tag && tag === 'th' ? TableHeaderCell : TableDataCell;
30
- return /*#__PURE__*/React.createElement(TableCell, {
33
+ return /*#__PURE__*/React.createElement(TableCell, _extends({}, props, {
31
34
  active: active,
32
35
  align: align,
33
36
  backgroundColor: backgroundColor,
@@ -48,7 +51,7 @@ export const DataTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
48
51
  valid: valid,
49
52
  width: width,
50
53
  onClick: onClick
51
- }, children);
54
+ }), children);
52
55
  });
53
56
  DataTableCell.displayName = 'DataTableCell';
54
57
  DataTableCell.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/table",
3
- "version": "8.14.0",
3
+ "version": "8.14.2",
4
4
  "description": "UI Table",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2/ui-constants": "8.14.0",
37
- "@dhis2/ui-icons": "8.14.0",
36
+ "@dhis2/ui-constants": "8.14.2",
37
+ "@dhis2/ui-icons": "8.14.2",
38
38
  "classnames": "^2.3.1",
39
39
  "prop-types": "^15.7.2"
40
40
  },