@hipay/hipay-material-ui 3.7.6 → 3.7.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,10 @@ var styles = {
33
33
  overflow: 'hidden',
34
34
  textOverflow: 'ellipsis',
35
35
  whiteSpace: 'pre',
36
- width: '100%'
36
+ width: '100%',
37
+ textAlign: function textAlign(props) {
38
+ return props.align === 'right' ? 'right' : 'left';
39
+ }
37
40
  }
38
41
  };
39
42
  /**
@@ -86,6 +86,9 @@ var CellTextStyled = function CellTextStyled(_ref) {
86
86
  styleRoot = (0, _objectSpread2.default)({}, styleRoot, {
87
87
  textAlign: 'right'
88
88
  });
89
+ styleColorLabel = (0, _objectSpread2.default)({}, styleColorLabel, {
90
+ justifyContent: 'flex-end'
91
+ });
89
92
  } else {
90
93
  styleRoot = (0, _objectSpread2.default)({}, styleRoot, {
91
94
  textAlign: 'left'
@@ -165,6 +165,7 @@ var HiCellBuilder = /*#__PURE__*/function (_React$PureComponent) {
165
165
  case cst.TYPE_DATE:
166
166
  case cst.TYPE_MONTH:
167
167
  return /*#__PURE__*/_react.default.createElement(_CellDate.default, {
168
+ align: cell.align,
168
169
  date: datacell.date,
169
170
  displayTime: datacell.displayTime,
170
171
  formatShort: datacell.formatShort,
@@ -120,7 +120,7 @@ var HiTableRow = /*#__PURE__*/function (_React$PureComponent) {
120
120
  height: dense ? cst.CELL_HEIGHT_DENSE : cst.CELL_HEIGHT
121
121
  },
122
122
  tabIndex: 0,
123
- dataId: rowdata.rowId
123
+ "data-id": rowdata.rowId
124
124
  }, Object.keys(columns).map(function (column) {
125
125
  return /*#__PURE__*/_react.default.createElement(_HiCellBuilder.default, {
126
126
  key: columns[column].colId,
@@ -33,7 +33,10 @@ var styles = {
33
33
  overflow: 'hidden',
34
34
  textOverflow: 'ellipsis',
35
35
  whiteSpace: 'pre',
36
- width: '100%'
36
+ width: '100%',
37
+ textAlign: function textAlign(props) {
38
+ return props.align === 'right' ? 'right' : 'left';
39
+ }
37
40
  }
38
41
  };
39
42
  /**
@@ -86,6 +86,9 @@ var CellTextStyled = function CellTextStyled(_ref) {
86
86
  styleRoot = (0, _objectSpread2.default)({}, styleRoot, {
87
87
  textAlign: 'right'
88
88
  });
89
+ styleColorLabel = (0, _objectSpread2.default)({}, styleColorLabel, {
90
+ justifyContent: 'flex-end'
91
+ });
89
92
  } else {
90
93
  styleRoot = (0, _objectSpread2.default)({}, styleRoot, {
91
94
  textAlign: 'left'
@@ -165,6 +165,7 @@ var HiCellBuilder = /*#__PURE__*/function (_React$PureComponent) {
165
165
  case cst.TYPE_DATE:
166
166
  case cst.TYPE_MONTH:
167
167
  return /*#__PURE__*/_react.default.createElement(_CellDate.default, {
168
+ align: cell.align,
168
169
  date: datacell.date,
169
170
  displayTime: datacell.displayTime,
170
171
  formatShort: datacell.formatShort,
@@ -120,7 +120,7 @@ var HiTableRow = /*#__PURE__*/function (_React$PureComponent) {
120
120
  height: dense ? cst.CELL_HEIGHT_DENSE : cst.CELL_HEIGHT
121
121
  },
122
122
  tabIndex: 0,
123
- dataId: rowdata.rowId
123
+ "data-id": rowdata.rowId
124
124
  }, Object.keys(columns).map(function (column) {
125
125
  return /*#__PURE__*/_react.default.createElement(_HiCellBuilder.default, {
126
126
  key: columns[column].colId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "3.7.6",
4
+ "version": "3.7.7",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -69,4 +69,4 @@
69
69
  },
70
70
  "main": "./index.js",
71
71
  "module": "./esm/index.js"
72
- }
72
+ }