@hipay/hipay-material-ui 3.5.1 → 3.6.0

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.
@@ -20,7 +20,8 @@ var styleRoot = {
20
20
  height: 19,
21
21
  margin: 'auto 0',
22
22
  display: 'flex',
23
- lineHeight: '15px'
23
+ lineHeight: '15px',
24
+ alignItems: 'center'
24
25
  };
25
26
  var styleColorLabel = {
26
27
  display: 'inline-block',
@@ -47,7 +47,8 @@ function (_React$PureComponent) {
47
47
  helperText = _this$props.helperText,
48
48
  values = _this$props.values,
49
49
  fullWidth = _this$props.fullWidth,
50
- others = (0, _objectWithoutProperties2.default)(_this$props, ["className", "label", "helperIcon", "helperText", "values", "fullWidth"]);
50
+ required = _this$props.required,
51
+ others = (0, _objectWithoutProperties2.default)(_this$props, ["className", "label", "helperIcon", "helperText", "values", "fullWidth", "required"]);
51
52
  var empty = true;
52
53
  var error = false;
53
54
  var errorText = '';
@@ -69,7 +70,8 @@ function (_React$PureComponent) {
69
70
  error: error,
70
71
  helperIcon: helperIcon,
71
72
  helperText: helperText,
72
- fullWidth: fullWidth
73
+ fullWidth: fullWidth,
74
+ required: required
73
75
  }, _react.default.createElement(_HiUpload.default, (0, _extends2.default)({
74
76
  values: values
75
77
  }, others)));
@@ -82,7 +84,8 @@ HiUploadField.defaultProps = {
82
84
  helperText: '',
83
85
  helperIcon: false,
84
86
  seeFile: true,
85
- fullWidth: false
87
+ fullWidth: false,
88
+ required: true
86
89
  };
87
90
  var _default = HiUploadField;
88
91
  exports.default = _default;