@hipay/hipay-material-ui 2.2.0-beta-core → 2.2.0-beta-core2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/HiAlertModal/HiAlertModal.js +1 -1
  2. package/HiAppBar/HiAppBar.js +1 -1
  3. package/HiBreadcrumb/HiStep.js +1 -1
  4. package/HiBreadcrumb/HiStepConnector.js +1 -1
  5. package/HiBreadcrumb/HiStepContent.js +1 -1
  6. package/HiBreadcrumb/HiStepIcon.js +1 -1
  7. package/HiBreadcrumb/HiStepLabel.js +1 -1
  8. package/HiBreadcrumb/HiStepper.js +1 -1
  9. package/HiButton/HiButton.js +3 -3
  10. package/HiChip/HiChipSwitch.js +1 -1
  11. package/HiColoredLabel/HiColoredLabel.js +1 -1
  12. package/HiDatePicker/HiDateRangeSelector.js +0 -1
  13. package/HiDatePicker/stylesheet.js +1 -1
  14. package/HiIconButton/HiIconButton.js +2 -2
  15. package/HiMap/HiMap.js +1 -1
  16. package/HiMap/HiMapExpand.js +1 -1
  17. package/HiNotice/HiKPI.js +1 -1
  18. package/HiPaymentMeans/HiPaymentMeans.js +1 -1
  19. package/HiPdfReader/HiPdfReader.js +1 -1
  20. package/HiPin/HiPin.js +1 -1
  21. package/HiRadio/HiRadio.js +1 -1
  22. package/HiSelect/HiSuggestSelect.js +1 -1
  23. package/HiTable/HiTableHeader.js +1 -1
  24. package/HiTable/HiTableRow.js +2 -1
  25. package/es/HiAlertModal/HiAlertModal.js +1 -1
  26. package/es/HiAppBar/HiAppBar.js +1 -1
  27. package/es/HiBreadcrumb/HiStep.js +1 -1
  28. package/es/HiBreadcrumb/HiStepConnector.js +1 -1
  29. package/es/HiBreadcrumb/HiStepContent.js +1 -1
  30. package/es/HiBreadcrumb/HiStepIcon.js +1 -1
  31. package/es/HiBreadcrumb/HiStepLabel.js +1 -1
  32. package/es/HiBreadcrumb/HiStepper.js +1 -1
  33. package/es/HiButton/HiButton.js +2 -2
  34. package/es/HiChip/HiChipSwitch.js +1 -1
  35. package/es/HiColoredLabel/HiColoredLabel.js +1 -1
  36. package/es/HiDatePicker/HiDateRangeSelector.js +0 -1
  37. package/es/HiDatePicker/stylesheet.js +1 -1
  38. package/es/HiIconButton/HiIconButton.js +2 -2
  39. package/es/HiMap/HiMap.js +1 -1
  40. package/es/HiMap/HiMapExpand.js +1 -1
  41. package/es/HiNotice/HiKPI.js +1 -1
  42. package/es/HiPaymentMeans/HiPaymentMeans.js +1 -1
  43. package/es/HiPdfReader/HiPdfReader.js +1 -1
  44. package/es/HiPin/HiPin.js +1 -1
  45. package/es/HiRadio/HiRadio.js +1 -1
  46. package/es/HiSelect/HiSuggestSelect.js +1 -1
  47. package/es/HiTable/HiTableHeader.js +1 -1
  48. package/es/HiTable/HiTableRow.js +2 -1
  49. package/es/hi-svg-icons/HiAccount.js +1 -1
  50. package/es/hi-svg-icons/HiActivity.js +1 -1
  51. package/es/hi-svg-icons/HiAll.js +1 -1
  52. package/es/hi-svg-icons/HiBilling.js +1 -1
  53. package/es/hi-svg-icons/HiCatalog.js +1 -1
  54. package/es/hi-svg-icons/HiCustomer.js +1 -1
  55. package/es/hi-svg-icons/HiFinance.js +1 -1
  56. package/es/hi-svg-icons/HiPermission.js +1 -1
  57. package/es/hi-svg-icons/HiRoute.js +1 -1
  58. package/es/hi-svg-icons/HiSettlement.js +1 -1
  59. package/es/hi-svg-icons/HiTransaction.js +1 -1
  60. package/es/hi-svg-icons/HiUser.js +1 -1
  61. package/es/hi-svg-icons/HiWidget.js +1 -1
  62. package/es/index.js +0 -1
  63. package/es/test-utils/getClasses.js +2 -16
  64. package/es/withWidth/withWidth.js +3 -3
  65. package/hi-svg-icons/HiAccount.js +1 -1
  66. package/hi-svg-icons/HiActivity.js +1 -1
  67. package/hi-svg-icons/HiAll.js +1 -1
  68. package/hi-svg-icons/HiBilling.js +1 -1
  69. package/hi-svg-icons/HiCatalog.js +1 -1
  70. package/hi-svg-icons/HiCustomer.js +1 -1
  71. package/hi-svg-icons/HiFinance.js +1 -1
  72. package/hi-svg-icons/HiPermission.js +1 -1
  73. package/hi-svg-icons/HiRoute.js +1 -1
  74. package/hi-svg-icons/HiSettlement.js +1 -1
  75. package/hi-svg-icons/HiTransaction.js +1 -1
  76. package/hi-svg-icons/HiUser.js +1 -1
  77. package/hi-svg-icons/HiWidget.js +1 -1
  78. package/index.es.js +0 -1
  79. package/index.js +0 -8
  80. package/package.json +1 -2
  81. package/test-utils/getClasses.js +5 -29
  82. package/withWidth/withWidth.js +3 -3
@@ -37,7 +37,7 @@ var _DialogContentText = _interopRequireDefault(require("@material-ui/core/Dialo
37
37
 
38
38
  var _DialogTitle = _interopRequireDefault(require("@material-ui/core/DialogTitle"));
39
39
 
40
- var _styles = require("../styles");
40
+ var _styles = require("@material-ui/core/styles");
41
41
 
42
42
  var _HiButton = _interopRequireDefault(require("../HiButton"));
43
43
 
@@ -31,7 +31,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
31
31
 
32
32
  var _classnames = _interopRequireDefault(require("classnames"));
33
33
 
34
- var _styles = require("../styles");
34
+ var _styles = require("@material-ui/core/styles");
35
35
 
36
36
  var _AppBar = _interopRequireDefault(require("@material-ui/core/AppBar"));
37
37
 
@@ -25,7 +25,7 @@ var _react = _interopRequireDefault(require("react"));
25
25
 
26
26
  var _propTypes = _interopRequireDefault(require("prop-types"));
27
27
 
28
- var _styles = require("../styles");
28
+ var _styles = require("@material-ui/core/styles");
29
29
 
30
30
  var _classnames = _interopRequireDefault(require("classnames"));
31
31
 
@@ -31,7 +31,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
31
31
 
32
32
  var _classnames = _interopRequireDefault(require("classnames"));
33
33
 
34
- var _styles = require("../styles");
34
+ var _styles = require("@material-ui/core/styles");
35
35
 
36
36
  var _HiStepContent = _interopRequireDefault(require("./HiStepContent"));
37
37
 
@@ -27,7 +27,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
27
27
 
28
28
  var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
29
29
 
30
- var _styles = require("../styles");
30
+ var _styles = require("@material-ui/core/styles");
31
31
 
32
32
  var styles = function styles() {
33
33
  return {
@@ -25,7 +25,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
25
25
 
26
26
  var _classnames = _interopRequireDefault(require("classnames"));
27
27
 
28
- var _styles = require("../styles");
28
+ var _styles = require("@material-ui/core/styles");
29
29
 
30
30
  var styles = function styles(theme) {
31
31
  return {
@@ -29,7 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
29
29
 
30
30
  var _classnames = _interopRequireDefault(require("classnames"));
31
31
 
32
- var _styles = require("../styles");
32
+ var _styles = require("@material-ui/core/styles");
33
33
 
34
34
  var _HiStepIcon = _interopRequireDefault(require("./HiStepIcon"));
35
35
 
@@ -23,7 +23,7 @@ var _react = _interopRequireDefault(require("react"));
23
23
 
24
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
25
25
 
26
- var _styles = require("../styles");
26
+ var _styles = require("@material-ui/core/styles");
27
27
 
28
28
  var styles = function styles() {
29
29
  return {
@@ -19,11 +19,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
- var _colorManipulator = require("../styles/colorManipulator");
22
+ var _styles = require("@material-ui/core/styles");
23
23
 
24
- var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
24
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
25
25
 
26
- var _styles = require("@material-ui/core/styles");
26
+ var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
27
27
 
28
28
  // @inheritedComponent Button
29
29
  var useStyles = (0, _styles.makeStyles)(function (theme) {
@@ -35,7 +35,7 @@ var _HiIcon = _interopRequireDefault(require("../HiIcon"));
35
35
 
36
36
  var _styles = require("@material-ui/core/styles");
37
37
 
38
- var _colorManipulator = require("../styles/colorManipulator");
38
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
39
39
 
40
40
  var styles = function styles(theme) {
41
41
  return {
@@ -23,7 +23,7 @@ var _styles = require("@material-ui/core/styles");
23
23
 
24
24
  var _helpers = require("../utils/helpers");
25
25
 
26
- var _colorManipulator = require("../styles/colorManipulator");
26
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
27
27
 
28
28
  var styles = function styles(theme) {
29
29
  return {
@@ -195,7 +195,6 @@ var styles = function styles() {
195
195
  return {
196
196
  root: {
197
197
  maxWidth: 500,
198
- marginLeft: -4,
199
198
  alignItems: 'flex-start'
200
199
  },
201
200
  dateSelect: {
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
12
- var _colorManipulator = require("../styles/colorManipulator");
12
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
13
13
 
14
14
  var _default = function _default(theme) {
15
15
  return {
@@ -19,9 +19,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
- var _styles = require("../styles");
22
+ var _styles = require("@material-ui/core/styles");
23
23
 
24
- var _colorManipulator = require("../styles/colorManipulator");
24
+ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
25
25
 
26
26
  var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
27
27
 
package/HiMap/HiMap.js CHANGED
@@ -23,7 +23,7 @@ var _react = _interopRequireDefault(require("react"));
23
23
 
24
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
25
25
 
26
- var _styles = require("../styles");
26
+ var _styles = require("@material-ui/core/styles");
27
27
 
28
28
  var _HiButton = _interopRequireDefault(require("../HiButton"));
29
29
 
@@ -35,7 +35,7 @@ var _ExpansionPanelDetails = _interopRequireDefault(require("@material-ui/core/E
35
35
 
36
36
  var _ExpansionPanelSummary = _interopRequireDefault(require("@material-ui/core/ExpansionPanelSummary"));
37
37
 
38
- var _styles = require("../styles");
38
+ var _styles = require("@material-ui/core/styles");
39
39
 
40
40
  var _HiMap = _interopRequireDefault(require("./HiMap"));
41
41
 
package/HiNotice/HiKPI.js CHANGED
@@ -27,7 +27,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
27
27
 
28
28
  var _classnames = _interopRequireDefault(require("classnames"));
29
29
 
30
- var _styles = require("../styles");
30
+ var _styles = require("@material-ui/core/styles");
31
31
 
32
32
  var _ButtonBase = _interopRequireDefault(require("@material-ui/core/ButtonBase"));
33
33
 
@@ -25,7 +25,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
25
25
 
26
26
  var _classnames = _interopRequireDefault(require("classnames"));
27
27
 
28
- var _styles = require("../styles");
28
+ var _styles = require("@material-ui/core/styles");
29
29
 
30
30
  var styles = function styles(theme) {
31
31
  return {
@@ -31,7 +31,7 @@ var _HiIcon = _interopRequireDefault(require("../HiIcon"));
31
31
 
32
32
  var _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress/"));
33
33
 
34
- var _styles = require("../styles");
34
+ var _styles = require("@material-ui/core/styles");
35
35
 
36
36
  // import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
37
37
  // import ChevronRightIcon from '@material-ui/icons/ChevronRight/';
package/HiPin/HiPin.js CHANGED
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
- var _styles = require("../styles");
20
+ var _styles = require("@material-ui/core/styles");
21
21
 
22
22
  var styles = function styles(theme) {
23
23
  return {
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
- var _styles = require("../styles");
14
+ var _styles = require("@material-ui/core/styles");
15
15
 
16
16
  var _Radio = _interopRequireDefault(require("@material-ui/core/Radio"));
17
17
 
@@ -39,7 +39,7 @@ var _HiSelectableList = _interopRequireDefault(require("../HiSelectableList"));
39
39
 
40
40
  var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
41
41
 
42
- var _styles = require("../styles");
42
+ var _styles = require("@material-ui/core/styles");
43
43
 
44
44
  var _Popper = _interopRequireDefault(require("@material-ui/core/Popper"));
45
45
 
@@ -116,7 +116,7 @@ function (_React$PureComponent) {
116
116
  key: colId,
117
117
  className: classes.cell,
118
118
  sortDirection: orderBy === colId ? order : false,
119
- numeric: cst.ALIGN_RIGHT_TYPES.includes(type) || align === 'right',
119
+ align: cst.ALIGN_RIGHT_TYPES.includes(type) || align === 'right' ? 'right' : 'inherit',
120
120
  title: headerTooltip
121
121
  }, sortable ? _react.default.createElement(_TableSortLabel.default, {
122
122
  active: orderBy === colId,
@@ -57,7 +57,8 @@ var styles = function styles(theme) {
57
57
  border: 'none',
58
58
  padding: '0px 13px',
59
59
  minHeight: '32px',
60
- maxHeight: '40px'
60
+ maxHeight: '40px',
61
+ fontWeight: theme.typography.fontWeightRegular
61
62
  }
62
63
  };
63
64
  };
@@ -8,7 +8,7 @@ import DialogActions from '@material-ui/core/DialogActions';
8
8
  import DialogContent from '@material-ui/core/DialogContent';
9
9
  import DialogContentText from '@material-ui/core/DialogContentText';
10
10
  import DialogTitle from '@material-ui/core/DialogTitle';
11
- import { withStyles, withTheme } from '../styles';
11
+ import { withStyles } from '@material-ui/core/styles';
12
12
  import HiButton from '../HiButton';
13
13
  import HiIcon from '../HiIcon';
14
14
  import { escapeHTML } from '../utils/helpers';
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- import { withStyles } from '../styles';
7
+ import { withStyles } from '@material-ui/core/styles';
8
8
  import AppBar from '@material-ui/core/AppBar';
9
9
  import Collapse from '@material-ui/core/Collapse';
10
10
  import Toolbar from '@material-ui/core/Toolbar';
@@ -1,7 +1,7 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  import classNames from 'classnames';
6
6
  import HiStepConnector from './HiStepConnector';
7
7
  import HiStepContent from './HiStepContent';
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import classNames from 'classnames';
6
- import { withStyles } from '../styles';
6
+ import { withStyles } from '@material-ui/core/styles';
7
7
  import HiStepContent from './HiStepContent';
8
8
  export const styles = theme => ({
9
9
  root: {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import Paper from '@material-ui/core/Paper';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  export const styles = () => ({
7
7
  root: {
8
8
  display: 'flex',
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  export const styles = theme => ({
6
6
  circle: {
7
7
  borderRadius: '50%',
@@ -4,7 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread";
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- import { withStyles } from '../styles';
7
+ import { withStyles } from '@material-ui/core/styles';
8
8
  import HiStepIcon from './HiStepIcon';
9
9
  import HiPin from '../HiPin';
10
10
  export const styles = theme => ({
@@ -1,7 +1,7 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  export const styles = () => ({
6
6
  root: {
7
7
  width: '100%'
@@ -4,9 +4,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- import { fade } from '../styles/colorManipulator';
8
- import Button from '@material-ui/core/Button';
9
7
  import { makeStyles } from '@material-ui/core/styles';
8
+ import { fade } from '@material-ui/core/styles/colorManipulator';
9
+ import Button from '@material-ui/core/Button';
10
10
  const useStyles = makeStyles(theme => ({
11
11
  root: {
12
12
  '&$containedDisabled': {
@@ -6,7 +6,7 @@ import classNames from 'classnames';
6
6
  import keycode from 'keycode/index';
7
7
  import HiIcon from '../HiIcon';
8
8
  import { withStyles } from '@material-ui/core/styles';
9
- import { emphasize } from '../styles/colorManipulator';
9
+ import { emphasize } from '@material-ui/core/styles/colorManipulator';
10
10
  export const styles = theme => ({
11
11
  root: _objectSpread({}, theme.typography.b3, {
12
12
  display: 'inline-flex',
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import { withStyles } from '@material-ui/core/styles';
8
8
  import { capitalize } from '../utils/helpers';
9
- import { fade } from '../styles/colorManipulator';
9
+ import { fade } from '@material-ui/core/styles/colorManipulator';
10
10
  export const styles = theme => ({
11
11
  root: {
12
12
  display: 'inline-block',
@@ -152,7 +152,6 @@ export function buildDateRangeOptionByKey(key, t, format, timezoneName) {
152
152
  export const styles = () => ({
153
153
  root: {
154
154
  maxWidth: 500,
155
- marginLeft: -4,
156
155
  alignItems: 'flex-start'
157
156
  },
158
157
  dateSelect: {
@@ -1,5 +1,5 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/objectSpread";
2
- import { fade } from '../styles/colorManipulator';
2
+ import { fade } from '@material-ui/core/styles/colorManipulator';
3
3
  export default (theme => ({
4
4
  root: {
5
5
  position: 'relative',
@@ -4,8 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- import { withStyles } from '../styles';
8
- import { fade } from '../styles/colorManipulator';
7
+ import { withStyles } from '@material-ui/core/styles';
8
+ import { fade } from '@material-ui/core/styles/colorManipulator';
9
9
  import IconButton from '@material-ui/core/IconButton';
10
10
  export const styles = theme => ({
11
11
  label: {},
package/es/HiMap/HiMap.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { withStyles } from '../styles';
3
+ import { withStyles } from '@material-ui/core/styles';
4
4
  import HiButton from '../HiButton';
5
5
  import HiIcon from '../HiIcon';
6
6
  import HiLoader from '../HiLoader';
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import ExpansionPanel from '@material-ui/core/ExpansionPanel';
6
6
  import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
7
7
  import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
8
- import { withStyles } from '../styles';
8
+ import { withStyles } from '@material-ui/core/styles';
9
9
  import HiMap from './HiMap';
10
10
  import HiIcon from '../HiIcon/HiIcon';
11
11
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  import ButtonBase from '@material-ui/core/ButtonBase';
6
6
  import Collapse from '@material-ui/core/Collapse';
7
7
  export const styles = theme => ({
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  export const styles = theme => ({
6
6
  bankCard: {
7
7
  position: 'relative',
@@ -7,7 +7,7 @@ import HiIcon from '../HiIcon'; // import ChevronLeftIcon from '@material-ui/ico
7
7
  // import ChevronRightIcon from '@material-ui/icons/ChevronRight/';
8
8
 
9
9
  import CircularProgress from '@material-ui/core/CircularProgress/';
10
- import { withStyles } from '../styles';
10
+ import { withStyles } from '@material-ui/core/styles';
11
11
  export const styles = theme => ({
12
12
  root: {
13
13
  position: 'relative'
package/es/HiPin/HiPin.js CHANGED
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  export const styles = theme => ({
7
7
  root: {
8
8
  display: 'inline-block',
@@ -1,7 +1,7 @@
1
1
  // @inheritedComponent Radio
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { withStyles } from '../styles';
4
+ import { withStyles } from '@material-ui/core/styles';
5
5
  import Radio from '@material-ui/core/Radio';
6
6
  export const styles = theme => ({
7
7
  checked: {
@@ -9,7 +9,7 @@ import Paper from '@material-ui/core/Paper';
9
9
  import classNames from 'classnames';
10
10
  import HiSelectableList from '../HiSelectableList';
11
11
  import HiInput from '../HiForm/HiInput';
12
- import { withStyles } from '../styles';
12
+ import { withStyles } from '@material-ui/core/styles';
13
13
  import Popper from '@material-ui/core/Popper';
14
14
  import { getNextItemSelectable } from '../utils/helpers';
15
15
  import keycode from 'keycode';
@@ -66,7 +66,7 @@ class HiTableHeader extends React.PureComponent {
66
66
  key: colId,
67
67
  className: classes.cell,
68
68
  sortDirection: orderBy === colId ? order : false,
69
- numeric: cst.ALIGN_RIGHT_TYPES.includes(type) || align === 'right',
69
+ align: cst.ALIGN_RIGHT_TYPES.includes(type) || align === 'right' ? 'right' : 'inherit',
70
70
  title: headerTooltip
71
71
  }, sortable ? React.createElement(TableSortLabel, {
72
72
  active: orderBy === colId,
@@ -23,7 +23,8 @@ export const styles = theme => ({
23
23
  border: 'none',
24
24
  padding: '0px 13px',
25
25
  minHeight: '32px',
26
- maxHeight: '40px'
26
+ maxHeight: '40px',
27
+ fontWeight: theme.typography.fontWeightRegular
27
28
  }
28
29
  });
29
30
 
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import React from 'react';
4
4
  import pure from 'recompose/pure';
5
- import { withStyles } from '../styles';
5
+ import { withStyles } from '@material-ui/core/styles';
6
6
  /**
7
7
  * @ignore - internal component.
8
8
  */
package/es/index.js CHANGED
@@ -13,7 +13,6 @@ export { default as HiMap } from './HiMap/HiMap';
13
13
  export { default as HiMapExpand } from './HiMap/HiMapExpand';
14
14
  export { default as HiTextField } from './HiForm/HiTextField';
15
15
  export { default as HiPasswordField } from './HiForm/HiPasswordField';
16
- export { default as HiPdfReader } from './HiPdfReader/HiPdfReader';
17
16
  export { default as HiSlider } from './HiForm/HiSlider';
18
17
  export { default as HiSwitch } from './HiSwitch';
19
18
  export { default as HiSwitchState } from './HiSwitch/HiSwitchState';
@@ -1,17 +1,3 @@
1
- import _objectSpread from "@babel/runtime/helpers/objectSpread";
2
- import * as ns from 'react-jss/lib/ns';
3
- import { SheetsRegistry } from 'jss';
4
- import createShallow from './createShallow';
5
- import { sheetsManager } from '../styles/withStyles';
6
- const shallow = createShallow(); // Helper function to extract the classes from a styleSheet.
1
+ import { getClasses } from '@material-ui/core/test-utils'; // Helper function to extract the classes from a styleSheet.
7
2
 
8
- export default function getClasses(element, options = {}) {
9
- const sheetsRegistry = new SheetsRegistry();
10
- sheetsManager.clear();
11
- shallow(element, _objectSpread({}, options, {
12
- context: _objectSpread({
13
- [ns.sheetsRegistry]: sheetsRegistry
14
- }, options.context)
15
- }));
16
- return sheetsRegistry.registry[0].classes;
17
- }
3
+ export default getClasses;
@@ -10,9 +10,9 @@ import debounce from 'debounce'; // < 1kb payload overhead when lodash/debounce
10
10
 
11
11
  import wrapDisplayName from 'recompose/wrapDisplayName';
12
12
  import hoistNonReactStatics from 'hoist-non-react-statics';
13
- import withTheme from '../styles/withTheme';
14
- import { keys as breakpointKeys } from '../styles/createBreakpoints';
15
- import getThemeProps from '../styles/getThemeProps'; // By default, returns true if screen width is the same or greater than the given breakpoint.
13
+ import withTheme from '@material-ui/core/styles/withTheme';
14
+ import { keys as breakpointKeys } from '@material-ui/core/styles/createBreakpoints';
15
+ import getThemeProps from '@material-ui/core/styles/getThemeProps'; // By default, returns true if screen width is the same or greater than the given breakpoint.
16
16
 
17
17
  export const isWidthUp = (breakpoint, width, inclusive = true) => {
18
18
  if (inclusive) {
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  var _ref = _react.default.createElement("path", {
21
21
  fill: "none",
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  /**
21
21
  * @ignore - internal component.
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _pure = _interopRequireDefault(require("recompose/pure"));
17
17
 
18
- var _styles = require("../styles");
18
+ var _styles = require("@material-ui/core/styles");
19
19
 
20
20
  var _ref = _react.default.createElement("path", {
21
21
  fill: "none",
package/index.es.js CHANGED
@@ -18,7 +18,6 @@ export { default as HiMap } from './HiMap/HiMap';
18
18
  export { default as HiMapExpand } from './HiMap/HiMapExpand';
19
19
  export { default as HiTextField } from './HiForm/HiTextField';
20
20
  export { default as HiPasswordField } from './HiForm/HiPasswordField';
21
- export { default as HiPdfReader } from './HiPdfReader/HiPdfReader';
22
21
  export { default as HiSlider } from './HiForm/HiSlider';
23
22
  export { default as HiSwitch } from './HiSwitch';
24
23
  export { default as HiSwitchState } from './HiSwitch/HiSwitchState';
package/index.js CHANGED
@@ -136,12 +136,6 @@ Object.defineProperty(exports, "HiPasswordField", {
136
136
  return _HiPasswordField.default;
137
137
  }
138
138
  });
139
- Object.defineProperty(exports, "HiPdfReader", {
140
- enumerable: true,
141
- get: function get() {
142
- return _HiPdfReader.default;
143
- }
144
- });
145
139
  Object.defineProperty(exports, "HiSlider", {
146
140
  enumerable: true,
147
141
  get: function get() {
@@ -245,8 +239,6 @@ var _HiTextField = _interopRequireDefault(require("./HiForm/HiTextField"));
245
239
 
246
240
  var _HiPasswordField = _interopRequireDefault(require("./HiForm/HiPasswordField"));
247
241
 
248
- var _HiPdfReader = _interopRequireDefault(require("./HiPdfReader/HiPdfReader"));
249
-
250
242
  var _HiSlider = _interopRequireDefault(require("./HiForm/HiSlider"));
251
243
 
252
244
  var _HiSwitch = _interopRequireDefault(require("./HiSwitch"));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
4
  "author": "HiPay PSYCHE Team",
5
- "version": "2.2.0-beta-core",
5
+ "version": "2.2.0-beta-core2",
6
6
  "description": "React components that implement Google's Material Design.",
7
7
  "keywords": [
8
8
  "react",
@@ -60,7 +60,6 @@
60
60
  "react-jss": "^8.1.0",
61
61
  "react-lazyload": "^2.5.0",
62
62
  "react-leaflet": "^2.3.0",
63
- "react-pdf": "^3.0.5",
64
63
  "react-spinners": "^0.4.5",
65
64
  "react-transition-group": "^2.2.1",
66
65
  "recompose": "^0.29.0",
@@ -1,36 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
3
  Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
- exports.default = getClasses;
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
- var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
-
16
- var ns = _interopRequireWildcard(require("react-jss/lib/ns"));
17
-
18
- var _jss = require("jss");
19
-
20
- var _createShallow = _interopRequireDefault(require("./createShallow"));
21
-
22
- var _withStyles = require("../styles/withStyles");
23
-
24
- var shallow = (0, _createShallow.default)(); // Helper function to extract the classes from a styleSheet.
25
-
26
- function getClasses(element) {
27
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28
- var sheetsRegistry = new _jss.SheetsRegistry();
6
+ exports.default = void 0;
29
7
 
30
- _withStyles.sheetsManager.clear();
8
+ var _testUtils = require("@material-ui/core/test-utils");
31
9
 
32
- shallow(element, (0, _extends3.default)({}, options, {
33
- context: (0, _extends3.default)((0, _defineProperty2.default)({}, ns.sheetsRegistry, sheetsRegistry), options.context)
34
- }));
35
- return sheetsRegistry.registry[0].classes;
36
- }
10
+ // Helper function to extract the classes from a styleSheet.
11
+ var _default = _testUtils.getClasses;
12
+ exports.default = _default;
@@ -33,11 +33,11 @@ var _wrapDisplayName = _interopRequireDefault(require("recompose/wrapDisplayName
33
33
 
34
34
  var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
35
35
 
36
- var _withTheme = _interopRequireDefault(require("../styles/withTheme"));
36
+ var _withTheme = _interopRequireDefault(require("@material-ui/core/styles/withTheme"));
37
37
 
38
- var _createBreakpoints = require("../styles/createBreakpoints");
38
+ var _createBreakpoints = require("@material-ui/core/styles/createBreakpoints");
39
39
 
40
- var _getThemeProps = _interopRequireDefault(require("../styles/getThemeProps"));
40
+ var _getThemeProps = _interopRequireDefault(require("@material-ui/core/styles/getThemeProps"));
41
41
 
42
42
  /* eslint-disable react/no-did-mount-set-state */
43
43
  // < 1kb payload overhead when lodash/debounce is > 3kb.