@hipay/hipay-material-ui 3.12.2 → 3.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/HiAccordionSummary/HiAccordionSummary.js +4 -6
  2. package/HiAlertModal/HiAlertModal.js +2 -2
  3. package/HiBreadcrumb/HiStepLabel.js +1 -2
  4. package/HiChip/HiChip.js +1 -2
  5. package/HiChip/HiChipSwitch.js +1 -2
  6. package/HiColoredLabel/HiColoredLabel.js +5 -5
  7. package/HiDatePicker/Caption.js +1 -1
  8. package/HiDatePicker/HiDateRangePicker.js +1 -1
  9. package/HiDatePicker/HiDateRangeSelector.js +23 -20
  10. package/HiDatePicker/Overlays/CustomOverlayLayout.js +2 -4
  11. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +2 -4
  12. package/HiDatePicker/Overlays/TimePickerOverlay.js +2 -4
  13. package/HiDatePicker/stylesheet.js +2 -4
  14. package/HiDialog/HiDialog.js +1 -1
  15. package/HiExpansionPanel/HiExpansionPanel.js +3 -6
  16. package/HiForm/HiFormControl.js +5 -8
  17. package/HiForm/HiFormLabel.js +4 -5
  18. package/HiForm/HiInput.js +4 -5
  19. package/HiForm/HiSlider.js +1 -1
  20. package/HiForm/HiUploadInput.js +2 -3
  21. package/HiIconButton/HiIconButton.js +2 -2
  22. package/HiSelect/HiNestedSelect.js +2 -2
  23. package/HiSelect/HiSelect.js +2 -2
  24. package/HiSelect/HiSelectContent.js +2 -2
  25. package/HiSelect/HiSelectInput.js +1 -1
  26. package/HiSelectableList/HiSelectableListItem.js +3 -5
  27. package/HiTable/HiTableHeader.js +3 -2
  28. package/HiTable/HiTableRow.js +1 -2
  29. package/es/HiAccordionSummary/HiAccordionSummary.js +4 -6
  30. package/es/HiAlertModal/HiAlertModal.js +2 -2
  31. package/es/HiBreadcrumb/HiStepLabel.js +1 -2
  32. package/es/HiChip/HiChip.js +1 -2
  33. package/es/HiChip/HiChipSwitch.js +1 -2
  34. package/es/HiColoredLabel/HiColoredLabel.js +5 -5
  35. package/es/HiDatePicker/Caption.js +1 -1
  36. package/es/HiDatePicker/HiDateRangePicker.js +1 -1
  37. package/es/HiDatePicker/HiDateRangeSelector.js +23 -20
  38. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +2 -4
  39. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +2 -4
  40. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +2 -4
  41. package/es/HiDatePicker/stylesheet.js +2 -4
  42. package/es/HiDialog/HiDialog.js +1 -1
  43. package/es/HiExpansionPanel/HiExpansionPanel.js +3 -6
  44. package/es/HiForm/HiFormControl.js +5 -8
  45. package/es/HiForm/HiFormLabel.js +4 -5
  46. package/es/HiForm/HiInput.js +4 -5
  47. package/es/HiForm/HiSlider.js +1 -1
  48. package/es/HiForm/HiUploadInput.js +2 -3
  49. package/es/HiIconButton/HiIconButton.js +2 -2
  50. package/es/HiSelect/HiNestedSelect.js +2 -2
  51. package/es/HiSelect/HiSelect.js +2 -2
  52. package/es/HiSelect/HiSelectContent.js +2 -2
  53. package/es/HiSelect/HiSelectInput.js +1 -1
  54. package/es/HiSelectableList/HiSelectableListItem.js +3 -5
  55. package/es/HiTable/HiTableHeader.js +3 -2
  56. package/es/HiTable/HiTableRow.js +1 -2
  57. package/package.json +3 -2
@@ -182,7 +182,7 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
182
182
  padding: theme.spacing(2, 0),
183
183
  margin: 'auto'
184
184
  },
185
- listItemContent: (0, _objectSpread2.default)({}, theme.typography.b1, {
185
+ listItemContent: (0, _objectSpread2.default)({}, theme.typography.body2, {
186
186
  fontWeight: 'inherit',
187
187
  width: '100%',
188
188
  minWidth: '50%',
@@ -207,17 +207,15 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
207
207
  color: theme.palette.primary.main,
208
208
  textTransform: 'uppercase'
209
209
  },
210
- secondaryLabel: (0, _objectSpread2.default)({}, theme.typography.b3, {
210
+ secondaryLabel: (0, _objectSpread2.default)({}, theme.typography.caption, {
211
211
  color: theme.palette.neutral.main,
212
212
  fontWeight: theme.typography.fontWeightLight,
213
- fontSize: 11,
214
213
  marginLeft: theme.spacing(1)
215
214
  }),
216
215
  inline: {},
217
- info: (0, _objectSpread2.default)({}, theme.typography.b3, {
216
+ info: (0, _objectSpread2.default)({}, theme.typography.body3, {
218
217
  color: theme.palette.neutral.main,
219
218
  fontWeight: theme.typography.fontWeightLight,
220
- fontSize: 12,
221
219
  textOverflow: 'ellipsis',
222
220
  textAlign: 'right',
223
221
  alignSelf: 'center'
@@ -56,9 +56,10 @@ var styles = function styles(theme) {
56
56
  overflow: 'hidden',
57
57
  textOverflow: 'ellipsis',
58
58
  whiteSpace: 'nowrap',
59
- fontWeight: theme.typography.fontWeightLight,
60
59
  color: '#000000'
61
- }, theme.typography.b4),
60
+ }, theme.typography.body3, {
61
+ fontWeight: theme.typography.fontWeightLight
62
+ }),
62
63
  icon: {
63
64
  color: '#00ADE9'
64
65
  }
@@ -65,9 +65,8 @@ var styles = function styles(theme) {
65
65
  padding: '0px 13px',
66
66
  minHeight: '32px',
67
67
  maxHeight: '40px',
68
- fontWeight: theme.typography.fontWeightRegular,
69
68
  lineHeight: 'unset'
70
- }, theme.typography.b3)
69
+ }, theme.typography.body3)
71
70
  };
72
71
  };
73
72
 
@@ -40,13 +40,14 @@ var HiAccordionSummary = function HiAccordionSummary(props) {
40
40
  }),
41
41
  expandIcon: props.editMode ? null : _ref
42
42
  }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
43
- variant: "h2",
43
+ variant: "h3",
44
44
  className: "heading"
45
45
  }, props.heading), !props.editMode && /*#__PURE__*/_react.default.createElement("div", {
46
46
  className: "secondary"
47
47
  }, !!props.secondaryHeading && /*#__PURE__*/_react.default.createElement(_Typography.default, {
48
48
  className: "secondaryHeading",
49
- variant: "h5"
49
+ variant: "caption",
50
+ color: "textSecondary"
50
51
  }, props.secondaryHeading), props.editable && /*#__PURE__*/_react.default.createElement(_HiButton.default, {
51
52
  className: "editButton",
52
53
  color: "primary",
@@ -65,9 +66,6 @@ HiAccordionSummary.defaultProps = {
65
66
  var StyledHiAccordionSummary = (0, _styledComponents.default)(HiAccordionSummary).withConfig({
66
67
  displayName: "HiAccordionSummary__StyledHiAccordionSummary",
67
68
  componentId: "sc-x8gl70-0"
68
- })(["&.summary{border-bottom:1px solid #e3e6e7;height:48px;min-height:48px;padding:0;&.editMode{border-bottom:none;cursor:default;.heading{font-weight:bold;}}.summaryContent{display:flex;justify-content:space-between;align-items:center;.secondary{display:flex;align-items:center;.secondaryHeading{color:", ";font-size:11px;}}}.saveLabel{margin-left:6px;}}"], function (_ref3) {
69
- var theme = _ref3.theme;
70
- return theme.palette.neutral.light;
71
- });
69
+ })(["&.summary{border-bottom:1px solid #e3e6e7;height:48px;min-height:48px;padding:0;&.editMode{border-bottom:none;cursor:default;.heading{font-weight:bold;}}.summaryContent{display:flex;justify-content:space-between;align-items:center;.secondary{display:flex;align-items:center;}}.saveLabel{margin-left:6px;}}"]);
72
70
  var _default = StyledHiAccordionSummary;
73
71
  exports.default = _default;
@@ -67,8 +67,8 @@ var HiAlertModal = function HiAlertModal(props) {
67
67
  }, props.title), /*#__PURE__*/_react.default.createElement(_DialogContent.default, {
68
68
  className: "dialog-content"
69
69
  }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
70
- component: 'div',
71
- variant: "body1",
70
+ component: "div",
71
+ variant: "body2",
72
72
  color: "textSecondary"
73
73
  }, props.content)), /*#__PURE__*/_react.default.createElement(_DialogActions.default, {
74
74
  className: "dialog-actions"
@@ -51,10 +51,9 @@ var styles = function styles(theme) {
51
51
  label: (0, _objectSpread2.default)({
52
52
  display: 'inline-block',
53
53
  marginLeft: 4,
54
- fontWeight: theme.typography.fontWeightRegular,
55
54
  color: theme.palette.neutral.main,
56
55
  marginBottom: -4
57
- }, theme.typography.b2),
56
+ }, theme.typography.body3),
58
57
  labelHover: {
59
58
  '&:hover': {
60
59
  cursor: 'pointer'
@@ -27,13 +27,12 @@ var _makeStyles = _interopRequireDefault(require("@mui/styles/makeStyles"));
27
27
 
28
28
  var useStyles = (0, _makeStyles.default)(function (theme) {
29
29
  return {
30
- root: (0, _objectSpread2.default)({}, theme.typography.b3, {
30
+ root: (0, _objectSpread2.default)({}, theme.typography.body3, {
31
31
  display: 'inline-flex',
32
32
  marginRight: 4,
33
33
  width: 'fit-content',
34
34
  height: 24,
35
35
  borderRadius: 12,
36
- fontSize: 13,
37
36
  backgroundColor: theme.palette.grey[300],
38
37
  color: theme.palette.neutral.dark,
39
38
  padding: 8,
@@ -43,14 +43,13 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
43
43
 
44
44
  var styles = function styles(theme) {
45
45
  return {
46
- root: (0, _objectSpread2.default)({}, theme.typography.b3, {
46
+ root: (0, _objectSpread2.default)({}, theme.typography.body3, {
47
47
  display: 'inline-flex',
48
48
  alignItems: 'center',
49
49
  marginRight: 4,
50
50
  width: 'fit-content',
51
51
  height: 24,
52
52
  borderRadius: 12,
53
- fontSize: 13,
54
53
  cursor: 'pointer',
55
54
  padding: '0 4px',
56
55
  outline: 'none',
@@ -38,11 +38,11 @@ var styles = function styles(theme) {
38
38
  whiteSpace: 'nowrap',
39
39
  lineHeight: 1
40
40
  },
41
- body1: (0, _objectSpread2.default)({}, theme.typography.b1),
42
- body2: (0, _objectSpread2.default)({}, theme.typography.b2),
43
- body3: (0, _objectSpread2.default)({}, theme.typography.b3),
44
- body4: (0, _objectSpread2.default)({}, theme.typography.b4),
45
- body5: (0, _objectSpread2.default)({}, theme.typography.b5),
41
+ body1: (0, _objectSpread2.default)({}, theme.typography.body2),
42
+ body2: (0, _objectSpread2.default)({}, theme.typography.body2),
43
+ body3: (0, _objectSpread2.default)({}, theme.typography.body3),
44
+ body4: (0, _objectSpread2.default)({}, theme.typography.body3),
45
+ body5: (0, _objectSpread2.default)({}, theme.typography.body3),
46
46
  color: {
47
47
  fontWeight: 400
48
48
  },
@@ -22,7 +22,7 @@ var styles = function styles(theme) {
22
22
  height: 40,
23
23
  textAlign: 'center',
24
24
  padding: '4px 0'
25
- }, theme.typography.body1, {
25
+ }, theme.typography.body2, {
26
26
  color: theme.palette.neutral.main
27
27
  })
28
28
  };
@@ -117,7 +117,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
117
117
  var today = (0, _momentTimezone.default)();
118
118
  var todayDate = new Date(today.year(), today.month(), today.date(), 23, 59, 59);
119
119
 
120
- if (change && day > todayDate) {
120
+ if (change && day > todayDate && _this.props.disableFutureDays) {
121
121
  change = false;
122
122
  }
123
123
 
@@ -131,11 +131,11 @@ function buildDateRangeInfo(t, from, to, format) {
131
131
 
132
132
 
133
133
  switch (prefix) {
134
- case "week":
134
+ case 'week':
135
135
  info = "".concat(t.short_week).concat(from.format('w'), ", ").concat(info);
136
136
  break;
137
137
 
138
- case "quarter":
138
+ case 'quarter':
139
139
  info = "".concat(t.short_quarter).concat(from.format('Q'), ", ").concat(info);
140
140
  break;
141
141
 
@@ -186,7 +186,7 @@ function buildDateRangeOptionByKey(key, t, format) {
186
186
  from = (0, _momentTimezone.default)().startOf('week');
187
187
  to = (0, _momentTimezone.default)();
188
188
  info = buildDateRangeInfo(t, from, to, format, {
189
- prefix: "week",
189
+ prefix: 'week',
190
190
  toNow: true,
191
191
  displayDays: true
192
192
  });
@@ -197,7 +197,7 @@ function buildDateRangeOptionByKey(key, t, format) {
197
197
  from = (0, _momentTimezone.default)().subtract(1, 'week').startOf('week');
198
198
  to = (0, _momentTimezone.default)().subtract(1, 'week').endOf('week');
199
199
  info = buildDateRangeInfo(t, from, to, format, {
200
- prefix: "week",
200
+ prefix: 'week',
201
201
  toNow: false,
202
202
  displayDays: true
203
203
  });
@@ -227,7 +227,7 @@ function buildDateRangeOptionByKey(key, t, format) {
227
227
  from = (0, _momentTimezone.default)().startOf('quarter');
228
228
  to = (0, _momentTimezone.default)();
229
229
  info = buildDateRangeInfo(t, from, to, format, {
230
- prefix: "quarter",
230
+ prefix: 'quarter',
231
231
  toNow: true,
232
232
  displayDays: true
233
233
  });
@@ -238,7 +238,7 @@ function buildDateRangeOptionByKey(key, t, format) {
238
238
  from = (0, _momentTimezone.default)().subtract(1, 'quarter').startOf('quarter');
239
239
  to = (0, _momentTimezone.default)().subtract(1, 'quarter').endOf('quarter');
240
240
  info = buildDateRangeInfo(t, from, to, format, {
241
- prefix: "quarter",
241
+ prefix: 'quarter',
242
242
  toNow: false,
243
243
  displayDays: true
244
244
  });
@@ -255,11 +255,11 @@ function buildDateRangeOptionByKey(key, t, format) {
255
255
  });
256
256
  break;
257
257
 
258
- case "1":
259
- label = "24h";
258
+ case '1':
259
+ label = '24h';
260
260
  from = (0, _momentTimezone.default)().subtract(1, 'day');
261
261
  to = (0, _momentTimezone.default)();
262
- info = "".concat(t.from, " ").concat(from.format("HH:mm"), " ").concat(t.yesterday.toLowerCase(), " ").concat(t.to_now);
262
+ info = "".concat(t.from, " ").concat(from.format('HH:mm'), " ").concat(t.yesterday.toLowerCase(), " ").concat(t.to_now);
263
263
  break;
264
264
 
265
265
  default:
@@ -327,7 +327,7 @@ var styles = function styles(theme) {
327
327
  },
328
328
  formControlLabel: {
329
329
  top: theme.spacing(5),
330
- overflow: "unset"
330
+ overflow: 'unset'
331
331
  }
332
332
  };
333
333
  };
@@ -352,7 +352,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
352
352
  var _this;
353
353
 
354
354
  (0, _classCallCheck2.default)(this, HiDateRangeSelector);
355
- _this = _super.call(this);
355
+ _this = _super.call(this, props);
356
356
  _this.options = [];
357
357
 
358
358
  _this.handleBlur = function (event) {
@@ -441,8 +441,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
441
441
 
442
442
  if (customOptionsAvailable.length) {
443
443
  options.push({
444
- id: "custom_periods_subheader",
445
- type: CUSTOM_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
444
+ id: 'custom_periods_subheader',
445
+ type: CUSTOM_PERIOD_LIST.includes(selectedPreset) ? 'primary-highlight' : 'highlight',
446
446
  icon: _ref2,
447
447
  label: translations.custom_periods,
448
448
  children: this.options.filter(function (o) {
@@ -454,8 +454,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
454
454
 
455
455
  if (presetOptionsAvailable.length) {
456
456
  options.push({
457
- id: "preset_periods_subheader",
458
- type: PRESET_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
457
+ id: 'preset_periods_subheader',
458
+ type: PRESET_PERIOD_LIST.includes(selectedPreset) ? 'primary-highlight' : 'highlight',
459
459
  icon: _ref3,
460
460
  label: translations.preset_periods,
461
461
  children: this.options.filter(function (o) {
@@ -467,8 +467,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
467
467
 
468
468
  if (slidingOptionsAvailable.length) {
469
469
  options.push({
470
- id: "sliding_periods_subheader",
471
- type: SLIDING_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
470
+ id: 'sliding_periods_subheader',
471
+ type: SLIDING_PERIOD_LIST.includes(selectedPreset) ? 'primary-highlight' : 'highlight',
472
472
  icon: _ref4,
473
473
  label: translations.sliding_periods,
474
474
  children: this.options.filter(function (o) {
@@ -497,6 +497,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
497
497
  idRange = _this$props2.idRange,
498
498
  idSelect = _this$props2.idSelect,
499
499
  minimumDate = _this$props2.minimumDate,
500
+ disableFutureDays = _this$props2.disableFutureDays,
500
501
  label = _this$props2.label,
501
502
  from = _this$props2.from,
502
503
  onChange = _this$props2.onChange,
@@ -507,7 +508,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
507
508
  selectProps = _this$props2.selectProps,
508
509
  staticPosition = _this$props2.staticPosition,
509
510
  className = _this$props2.className,
510
- props = (0, _objectWithoutProperties2.default)(_this$props2, ["availableOptionKeys", "disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition", "className"]);
511
+ props = (0, _objectWithoutProperties2.default)(_this$props2, ["availableOptionKeys", "disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "disableFutureDays", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition", "className"]);
511
512
  var _this$state = this.state,
512
513
  selectedPreset = _this$state.selectedPreset,
513
514
  containerWidth = _this$state.containerWidth;
@@ -577,6 +578,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
577
578
  onChange: onChange,
578
579
  toError: toError,
579
580
  fromError: fromError,
581
+ disableFutureDays: disableFutureDays,
580
582
  minimumDate: minimumDate,
581
583
  errorText: null,
582
584
  onReset: this.handleReset,
@@ -604,6 +606,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
604
606
 
605
607
  HiDateRangeSelector.defaultProps = {
606
608
  availableOptionKeys: [].concat(PRESET_PERIOD_LIST, CUSTOM_PERIOD_LIST),
609
+ disableFutureDays: true,
607
610
  enableTime: false,
608
611
  returnSelectValue: false,
609
612
  staticPosition: false,
@@ -638,7 +641,7 @@ HiDateRangeSelector.defaultProps = {
638
641
  current_quarter: 'Current Quarter',
639
642
  previous_quarter: 'Previous Quarter',
640
643
  current_year: 'Current Year',
641
- year_on_year: "Last twelve months",
644
+ year_on_year: 'Last twelve months',
642
645
  invalid_format: 'The date format is not valid',
643
646
  to_superior_from: 'Date from cannot be greater than date to',
644
647
  date_superior_max_date: 'Date from cannot be greater than %s',
@@ -647,7 +650,7 @@ HiDateRangeSelector.defaultProps = {
647
650
  missing_date_to: 'Missing date to',
648
651
  preset_periods: 'Preset periods',
649
652
  custom_periods: 'Custom periods',
650
- custom_period_info: "Select a custom period",
653
+ custom_period_info: 'Select a custom period',
651
654
  sliding_periods: 'Sliding periods'
652
655
  }
653
656
  };
@@ -45,15 +45,13 @@ var styles = function styles(theme) {
45
45
  padding: 0,
46
46
  height: 325,
47
47
  textAlign: 'center'
48
- }, theme.typography.body2, {
49
- fontWeight: theme.typography.fontWeightRegular
50
- }),
48
+ }, theme.typography.body2),
51
49
  header: (0, _objectSpread2.default)({
52
50
  display: 'block',
53
51
  height: 40,
54
52
  textAlign: 'center',
55
53
  padding: '10px 0'
56
- }, theme.typography.body1, {
54
+ }, theme.typography.body2, {
57
55
  color: theme.palette.neutral.main,
58
56
  borderBottom: '1px solid',
59
57
  borderBottomColor: theme.palette.divider
@@ -45,15 +45,13 @@ var styles = function styles(theme) {
45
45
  padding: 0,
46
46
  height: 325,
47
47
  textAlign: 'center'
48
- }, theme.typography.body2, {
49
- fontWeight: theme.typography.fontWeightRegular
50
- }),
48
+ }, theme.typography.body2),
51
49
  header: (0, _objectSpread2.default)({
52
50
  display: 'block',
53
51
  height: 40,
54
52
  textAlign: 'center',
55
53
  padding: '10px 0'
56
- }, theme.typography.body1, {
54
+ }, theme.typography.body2, {
57
55
  color: theme.palette.neutral.main,
58
56
  borderBottom: '1px solid',
59
57
  borderBottomColor: theme.palette.divider
@@ -52,15 +52,13 @@ var styles = function styles(theme) {
52
52
  padding: 0,
53
53
  height: 325,
54
54
  textAlign: 'center'
55
- }, theme.typography.body2, {
56
- fontWeight: theme.typography.fontWeightRegular
57
- }),
55
+ }, theme.typography.body2),
58
56
  header: (0, _objectSpread2.default)({
59
57
  display: 'block',
60
58
  height: 40,
61
59
  textAlign: 'center',
62
60
  padding: '10px 0'
63
- }, theme.typography.body1, {
61
+ }, theme.typography.body2, {
64
62
  color: theme.palette.neutral.main,
65
63
  borderBottom: '1px solid',
66
64
  borderBottomColor: theme.palette.divider
@@ -19,7 +19,7 @@ var _default = function _default(theme) {
19
19
  width: '100%',
20
20
  maxWidth: 500
21
21
  },
22
- rootMobile: (0, _objectSpread2.default)({}, theme.typography.b1, {
22
+ rootMobile: (0, _objectSpread2.default)({}, theme.typography.body2, {
23
23
  backgroundColor: theme.palette.background2,
24
24
  borderBottom: '1px solid #E0E0E0',
25
25
  borderLeft: 'none',
@@ -128,7 +128,6 @@ var _default = function _default(theme) {
128
128
  display: 'table-cell'
129
129
  }, theme.typography.body2, {
130
130
  color: theme.palette.neutral.main,
131
- fontWeight: theme.typography.fontWeightRegular,
132
131
  textAlign: 'center',
133
132
  verticalAlign: 'middle'
134
133
  }),
@@ -161,8 +160,7 @@ var _default = function _default(theme) {
161
160
  verticalAlign: 'middle',
162
161
  outline: 'none'
163
162
  }, theme.typography.body2, {
164
- color: theme.palette.neutral.dark,
165
- fontWeight: theme.typography.fontWeightRegular
163
+ color: theme.palette.neutral.dark
166
164
  }),
167
165
  // The calendar footer (only with todayButton prop)
168
166
  footer: {
@@ -37,7 +37,7 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
37
37
  marginTop: theme.spacing(-2),
38
38
  marginRight: theme.spacing(-6)
39
39
  },
40
- title: (0, _objectSpread2.default)({}, theme.typography.h1, {
40
+ title: (0, _objectSpread2.default)({}, theme.typography.h2, {
41
41
  margin: 0
42
42
  })
43
43
  };
@@ -63,20 +63,17 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
63
63
  cursor: 'default',
64
64
  pointerEvents: 'none'
65
65
  },
66
- heading: (0, _objectSpread2.default)({}, theme.typography.b1, {
66
+ heading: (0, _objectSpread2.default)({}, theme.typography.h3, {
67
67
  height: 48,
68
68
  display: 'flex',
69
69
  alignItems: 'center',
70
- fontSize: 20,
71
- lineHeight: '24px',
72
70
  fontWeight: theme.typography.fontWeightLight
73
71
  }),
74
- secondaryHeading: (0, _objectSpread2.default)({}, theme.typography.b3, {
75
- color: theme.palette.neutral.light,
72
+ secondaryHeading: (0, _objectSpread2.default)({}, theme.typography.caption, {
73
+ color: theme.palette.text.secondary,
76
74
  height: 48,
77
75
  display: 'flex',
78
76
  alignItems: 'center',
79
- fontSize: 11,
80
77
  '&>svg': {
81
78
  fontSize: 18,
82
79
  marginLeft: 3
@@ -87,15 +87,14 @@ var styles = function styles(theme) {
87
87
  iconButtonInfo: {},
88
88
  iconButtonInfoActive: {},
89
89
  iconFullWidth: {},
90
- errorDiv: (0, _objectSpread2.default)({}, theme.typography.b3, {
90
+ errorDiv: (0, _objectSpread2.default)({}, theme.typography.body3, {
91
91
  backgroundColor: theme.palette.negative.main,
92
92
  color: '#FFFFFF',
93
93
  padding: theme.spacing(4, 2),
94
94
  verticalAlign: 'middle',
95
95
  borderRadius: 2,
96
96
  position: 'relative',
97
- marginBottom: theme.spacing(2),
98
- fontWeight: theme.typography.fontWeightRegular
97
+ marginBottom: theme.spacing(2)
99
98
  }),
100
99
  arrowDown: {
101
100
  width: 0,
@@ -117,7 +116,7 @@ var styles = function styles(theme) {
117
116
  errorDivArrowDown: {
118
117
  borderTopColor: theme.palette.negative.main
119
118
  },
120
- helperDiv: (0, _objectSpread2.default)({}, theme.typography.b2, {
119
+ helperDiv: (0, _objectSpread2.default)({}, theme.typography.body2, {
121
120
  width: '100%',
122
121
  backgroundColor: '#ffffff',
123
122
  color: theme.palette.neutral.normal,
@@ -125,9 +124,7 @@ var styles = function styles(theme) {
125
124
  borderRadius: 2,
126
125
  position: 'relative',
127
126
  marginBottom: theme.spacing(2),
128
- fontWeight: theme.typography.fontWeightRegular,
129
- boxShadow: '0px 1px 7px rgba(0, 0, 0, 0.16)',
130
- lineHeight: 1.5
127
+ boxShadow: '0px 1px 7px rgba(0, 0, 0, 0.16)'
131
128
  }),
132
129
  helperDivArrowDown: {
133
130
  borderTopColor: '#ffffff'
@@ -135,7 +132,7 @@ var styles = function styles(theme) {
135
132
  icon: {
136
133
  position: 'absolute',
137
134
  fontSize: 20,
138
- top: 4
135
+ top: 5
139
136
  }
140
137
  };
141
138
  };
@@ -37,8 +37,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
37
37
 
38
38
  var styles = function styles(theme) {
39
39
  return {
40
- root: (0, _objectSpread2.default)({}, theme.typography.h4, {
41
- fontWeight: theme.typography.fontWeightRegular,
40
+ root: (0, _objectSpread2.default)({}, theme.typography.body2, {
41
+ lineHeight: '18px',
42
42
  color: theme.palette.neutral.main,
43
43
  position: 'inherit',
44
44
  transform: 'inherit',
@@ -52,11 +52,10 @@ var styles = function styles(theme) {
52
52
  display: 'flex',
53
53
  alignItems: 'baseline'
54
54
  }),
55
- optional: {
56
- fontSize: 11,
55
+ optional: (0, _objectSpread2.default)({}, theme.typography.caption, {
57
56
  marginLeft: 4,
58
57
  color: theme.palette.neutral.main
59
- },
58
+ }),
60
59
  focused: {},
61
60
  error: {}
62
61
  };
@@ -49,7 +49,7 @@ var styles = function styles(theme) {
49
49
  return {
50
50
  root: (0, _objectSpread2.default)({
51
51
  position: 'relative'
52
- }, theme.typography.b1, {
52
+ }, theme.typography.body2, {
53
53
  borderBottom: "1px solid ".concat(theme.palette.input.bottomLine),
54
54
  paddingLeft: 8,
55
55
  backgroundColor: theme.palette.background2,
@@ -123,13 +123,12 @@ var styles = function styles(theme) {
123
123
  // Ajout d'1px pour ne pas avoir de décalage en mode error avec le border right
124
124
  marginRight: '-1px'
125
125
  },
126
- input: (0, _objectSpread2.default)({}, theme.typography.b1, {
127
- fontWeight: theme.typography.fontWeightRegular,
126
+ input: (0, _objectSpread2.default)({}, theme.typography.body2, {
128
127
  caretColor: theme.palette.primary.main,
129
128
  display: 'flex',
130
129
  alignItems: 'center'
131
130
  }),
132
- inputPropsClassName: (0, _objectSpread2.default)({}, theme.typography.b1, {
131
+ inputPropsClassName: (0, _objectSpread2.default)({}, theme.typography.body2, {
133
132
  padding: 0
134
133
  }),
135
134
  inputText: {
@@ -396,7 +395,7 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) {
396
395
  },
397
396
  onClick: this.handleReset,
398
397
  onBlur: this.handleBlur,
399
- buttonRef: function buttonRef(el) {
398
+ ref: function ref(el) {
400
399
  _this2.eraseIconNode = el;
401
400
  }
402
401
  }, _ref);
@@ -50,7 +50,7 @@ var styles = function styles(theme) {
50
50
  zIndex: '2',
51
51
  cursor: 'pointer'
52
52
  },
53
- mainContainer: (0, _objectSpread2.default)({}, theme.typography.body1, {
53
+ mainContainer: (0, _objectSpread2.default)({}, theme.typography.body2, {
54
54
  display: 'flex',
55
55
  flexWrap: 'nowrap',
56
56
  alignItems: 'center'
@@ -41,7 +41,7 @@ var styles = function styles(theme) {
41
41
  return {
42
42
  root: (0, _objectSpread2.default)({
43
43
  position: 'relative'
44
- }, theme.typography.body1, {
44
+ }, theme.typography.body2, {
45
45
  borderBottom: "1px solid ".concat(theme.palette.input.bottomLine),
46
46
  paddingLeft: 8,
47
47
  backgroundColor: theme.palette.background2,
@@ -130,8 +130,7 @@ var styles = function styles(theme) {
130
130
  backgroundColor: theme.palette.background3
131
131
  },
132
132
  error: {},
133
- label: (0, _objectSpread2.default)({}, theme.typography.body1, {
134
- fontWeight: theme.typography.fontWeightRegular,
133
+ label: (0, _objectSpread2.default)({}, theme.typography.body2, {
135
134
  caretColor: theme.palette.primary.main,
136
135
  alignItems: 'center',
137
136
  whiteSpace: 'nowrap',
@@ -52,7 +52,7 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
52
52
  });
53
53
  exports.useStyles = useStyles;
54
54
 
55
- function HiIconButton(props) {
55
+ var HiIconButton = _react.default.forwardRef(function (props, ref) {
56
56
  var children = props.children,
57
57
  className = props.className,
58
58
  color = props.color,
@@ -71,7 +71,7 @@ function HiIconButton(props) {
71
71
  color: isCustomColor ? 'inherit' : color,
72
72
  size: "large"
73
73
  }, other), children);
74
- }
74
+ });
75
75
 
76
76
  HiIconButton.defaultProps = {
77
77
  color: 'default'
@@ -191,7 +191,7 @@ var styles = function styles(theme) {
191
191
  overflow: 'hidden',
192
192
  textOverflow: 'ellipsis',
193
193
  paddingRight: 16
194
- }, theme.typography.b1, {
194
+ }, theme.typography.body2, {
195
195
  display: 'inline-flex',
196
196
  width: '100%'
197
197
  }),
@@ -200,7 +200,7 @@ var styles = function styles(theme) {
200
200
  overflow: 'hidden',
201
201
  textOverflow: 'ellipsis',
202
202
  paddingRight: 16
203
- }, theme.typography.b1, {
203
+ }, theme.typography.body2, {
204
204
  display: 'inline-flex',
205
205
  width: '100%'
206
206
  })
@@ -106,7 +106,7 @@ var styles = function styles(theme) {
106
106
  overflow: 'hidden',
107
107
  textOverflow: 'ellipsis',
108
108
  paddingRight: 16
109
- }, theme.typography.b1, {
109
+ }, theme.typography.body2, {
110
110
  display: 'inline-block',
111
111
  width: '100%'
112
112
  }),
@@ -115,7 +115,7 @@ var styles = function styles(theme) {
115
115
  overflow: 'hidden',
116
116
  textOverflow: 'ellipsis',
117
117
  paddingRight: 16
118
- }, theme.typography.b1, {
118
+ }, theme.typography.body2, {
119
119
  display: 'inline-flex',
120
120
  width: '100%'
121
121
  }),