@hipay/hipay-material-ui 2.0.0-beta.55 → 2.0.0-beta.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/HiBreadcrumb/HiBreadcrumb.js +14 -4
  3. package/HiBreadcrumb/HiStep.js +4 -1
  4. package/HiBreadcrumb/HiStepContent.js +0 -1
  5. package/HiBreadcrumb/HiStepLabel.js +12 -4
  6. package/HiBreadcrumb/HiStepper.js +1 -1
  7. package/HiButton/HiButton.js +7 -1
  8. package/HiCell/CellIcon.js +4 -4
  9. package/HiCell/CellImage.js +13 -1
  10. package/HiCell/CellRate.js +6 -3
  11. package/HiCell/CellSentinel.js +7 -10
  12. package/HiCell/CellTextStyled.js +29 -1
  13. package/HiColoredLabel/HiColoredLabel.js +1 -1
  14. package/HiDatePicker/Caption.js +16 -10
  15. package/HiDatePicker/HiDatePicker.js +9 -3
  16. package/HiDatePicker/HiDateRangePicker.js +36 -22
  17. package/HiDatePicker/HiDateRangeSelector.js +75 -21
  18. package/HiDatePicker/NavBar.js +8 -1
  19. package/HiDatePicker/Overlays/CustomOverlayLayout.js +26 -17
  20. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +123 -0
  21. package/HiDatePicker/Overlays/MonthPickerOverlay.js +4 -4
  22. package/HiDatePicker/Overlays/MonthPickerOverlay.spec.js +1 -0
  23. package/HiDatePicker/Overlays/Overlay.js +15 -8
  24. package/HiDatePicker/Overlays/Overlay.spec.js +1 -0
  25. package/HiDatePicker/Overlays/TimePickerOverlay.js +2 -2
  26. package/HiDatePicker/Overlays/TimePickerOverlay.spec.js +1 -0
  27. package/HiDatePicker/Overlays/YearPickerOverlay.js +4 -6
  28. package/HiDatePicker/Overlays/YearPickerOverlay.spec.js +1 -0
  29. package/HiDatePicker/hiLocaleUtils.js +144 -0
  30. package/HiDatePicker/stylesheet.js +33 -7
  31. package/HiDotsStepper/HiDot.js +108 -0
  32. package/HiDotsStepper/HiDotsStepper.js +121 -0
  33. package/HiExpansionPanel/HiExpansionPanel.js +1 -1
  34. package/HiForm/HiAddressField.js +176 -0
  35. package/HiForm/HiFormControl.js +2 -0
  36. package/HiForm/HiInput.js +3 -3
  37. package/HiForm/HiSlider.js +352 -0
  38. package/HiForm/HiUpload.js +204 -0
  39. package/HiForm/HiUploadField.js +182 -0
  40. package/HiForm/HiUploadInput.js +459 -0
  41. package/HiForm/index.js +16 -0
  42. package/HiMap/HiMap.js +345 -0
  43. package/HiMap/HiMapExpand.js +210 -0
  44. package/HiMap/index.js +23 -0
  45. package/HiNotice/HiKPI.js +238 -0
  46. package/HiNotice/HiKPINotice.js +96 -0
  47. package/HiNotice/index.js +23 -0
  48. package/HiPdfReader/HiPdfReader.js +269 -0
  49. package/HiPdfReader/index.js +15 -0
  50. package/HiPin/HiPin.js +1 -1
  51. package/HiRadio/HiRadio.js +74 -0
  52. package/HiRadio/index.js +15 -0
  53. package/HiSelect/HiSelect.js +73 -84
  54. package/HiSelect/HiSuggestSelect.js +35 -4
  55. package/HiSelect/SelectInput.js +9 -1
  56. package/HiSelectNew/HiNestedSelectContent.js +5 -1
  57. package/HiSelectNew/HiSelect.js +260 -179
  58. package/HiSelectNew/HiSelectContent.js +0 -8
  59. package/HiSelectNew/HiSelectInput.js +8 -9
  60. package/HiSelectableList/HiSelectableList.js +39 -4
  61. package/HiSelectableList/HiSelectableListItem.js +81 -38
  62. package/HiTable/HiCellBuilder.js +25 -12
  63. package/HiTable/HiTableHeader.js +16 -17
  64. package/HiTable/constants.js +3 -1
  65. package/README.md +248 -98
  66. package/es/HiBreadcrumb/HiBreadcrumb.js +14 -4
  67. package/es/HiBreadcrumb/HiStep.js +4 -1
  68. package/es/HiBreadcrumb/HiStepContent.js +0 -1
  69. package/es/HiBreadcrumb/HiStepLabel.js +13 -4
  70. package/es/HiBreadcrumb/HiStepper.js +1 -1
  71. package/es/HiButton/HiButton.js +7 -0
  72. package/es/HiCell/CellIcon.js +5 -5
  73. package/es/HiCell/CellImage.js +13 -1
  74. package/es/HiCell/CellRate.js +6 -3
  75. package/es/HiCell/CellSentinel.js +7 -10
  76. package/es/HiCell/CellTextStyled.js +28 -1
  77. package/es/HiColoredLabel/HiColoredLabel.js +1 -1
  78. package/es/HiDatePicker/Caption.js +14 -10
  79. package/es/HiDatePicker/HiDatePicker.js +8 -3
  80. package/es/HiDatePicker/HiDateRangePicker.js +40 -28
  81. package/es/HiDatePicker/HiDateRangeSelector.js +69 -21
  82. package/es/HiDatePicker/ListPicker.js +1 -1
  83. package/es/HiDatePicker/NavBar.js +7 -1
  84. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +30 -19
  85. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +106 -0
  86. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +5 -5
  87. package/es/HiDatePicker/Overlays/MonthPickerOverlay.spec.js +1 -0
  88. package/es/HiDatePicker/Overlays/Overlay.js +16 -9
  89. package/es/HiDatePicker/Overlays/Overlay.spec.js +1 -0
  90. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +2 -2
  91. package/es/HiDatePicker/Overlays/TimePickerOverlay.spec.js +1 -0
  92. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +4 -6
  93. package/es/HiDatePicker/Overlays/YearPickerOverlay.spec.js +1 -0
  94. package/es/HiDatePicker/hiLocaleUtils.js +131 -0
  95. package/es/HiDatePicker/stylesheet.js +32 -7
  96. package/es/HiDotsStepper/HiDot.js +66 -0
  97. package/es/HiDotsStepper/HiDotsStepper.js +73 -0
  98. package/es/HiExpansionPanel/HiExpansionPanel.js +1 -1
  99. package/es/HiForm/HiAddressField.js +134 -0
  100. package/es/HiForm/HiFormControl.js +2 -0
  101. package/es/HiForm/HiInput.js +3 -3
  102. package/es/HiForm/HiSlider.js +302 -0
  103. package/es/HiForm/HiUpload.js +158 -0
  104. package/es/HiForm/HiUploadField.js +140 -0
  105. package/es/HiForm/HiUploadInput.js +411 -0
  106. package/es/HiForm/index.js +2 -0
  107. package/es/HiMap/HiMap.js +290 -0
  108. package/es/HiMap/HiMapExpand.js +162 -0
  109. package/es/HiMap/index.js +2 -0
  110. package/es/HiNotice/HiKPI.js +196 -0
  111. package/es/HiNotice/HiKPINotice.js +78 -0
  112. package/es/HiNotice/index.js +2 -0
  113. package/es/HiPdfReader/HiPdfReader.js +214 -0
  114. package/es/HiPdfReader/index.js +1 -0
  115. package/es/HiPin/HiPin.js +1 -1
  116. package/es/HiRadio/HiRadio.js +55 -0
  117. package/es/HiRadio/index.js +1 -0
  118. package/es/HiSelect/HiSelect.js +68 -78
  119. package/es/HiSelect/HiSuggestSelect.js +30 -4
  120. package/es/HiSelect/SelectInput.js +9 -1
  121. package/es/HiSelectNew/HiNestedSelectContent.js +5 -1
  122. package/es/HiSelectNew/HiSelect.js +246 -162
  123. package/es/HiSelectNew/HiSelectContent.js +0 -7
  124. package/es/HiSelectNew/HiSelectInput.js +8 -9
  125. package/es/HiSelectableList/HiSelectableList.js +34 -6
  126. package/es/HiSelectableList/HiSelectableListItem.js +92 -40
  127. package/es/HiTable/HiCellBuilder.js +130 -123
  128. package/es/HiTable/HiTableHeader.js +14 -12
  129. package/es/HiTable/constants.js +1 -0
  130. package/es/index.js +9 -1
  131. package/es/utils/helpers.js +1 -1
  132. package/index.es.js +9 -1
  133. package/index.js +66 -2
  134. package/package.json +5 -2
  135. package/umd/hipay-material-ui.development.js +44450 -40930
  136. package/umd/hipay-material-ui.production.min.js +2 -2
  137. package/utils/helpers.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,119 @@
1
+ <a name="2.0.0-beta.41"></a>
2
+ # [2.0.0-beta.41](https://gitlab.hipay.org/backend/hipay-material-ui/compare/0.0.1...2.0.0-beta.41) (2018-12-07)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **eslint:** remove eslint warrnings in components (ignore test files) ([d236c62](https://gitlab.hipay.org/backend/hipay-material-ui/commit/d236c62))
8
+ * **HiBreadcrumb:** clean eslint warnings ([6db12fb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6db12fb))
9
+ * **HiDatePicker:** add static positions for custom overlays ([c3edf24](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c3edf24))
10
+ * **HiExpansionPanel:** Fix props type a requirement ([cbc3b48](https://gitlab.hipay.org/backend/hipay-material-ui/commit/cbc3b48))
11
+ * **HiInput:** handle focus state through prop when needed to override default comportment ([9a133cc](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9a133cc))
12
+ * **HiKpiNotice:** eslint clean warnings ([11b5552](https://gitlab.hipay.org/backend/hipay-material-ui/commit/11b5552))
13
+ * **HiSelect:** Fix build of HiSelectContent ([4b87f78](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4b87f78))
14
+ * **HiSelect:** focus on undefined item ([2d084e6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/2d084e6))
15
+ * **HiSelect:** handle staticPosition & width properly for HiDateRangeSelector usage ([7b19ffb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7b19ffb))
16
+ * **HiSelectableListItem:** disabled item checkbox color ([9f10552](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9f10552))
17
+ * **HiSelectableListItem:** remove item width ([a913945](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a913945))
18
+ * **HiSelectContent:** Remove compute of input value ([b86db83](https://gitlab.hipay.org/backend/hipay-material-ui/commit/b86db83))
19
+ * **HiSlider:** eslint clean warnings ([08964b1](https://gitlab.hipay.org/backend/hipay-material-ui/commit/08964b1))
20
+ * **HiUploadField:** clean eslint warnings ([c76aaf1](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c76aaf1))
21
+ * **migration:** fix contrast threshold ... ([6fb3b18](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6fb3b18))
22
+ * **package:** add cross-env ([7098fd6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7098fd6))
23
+
24
+
25
+ ### Features
26
+
27
+ * **CellImage:** Handle fallbackImage ([254799d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/254799d))
28
+ * **CellSentinel:** Uniformize cell api with front CellSentinel ([4e2975b](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4e2975b))
29
+ * **CellSentinel:** Update CellSentinel to the new way (split each result in different column) ([efe2711](https://gitlab.hipay.org/backend/hipay-material-ui/commit/efe2711))
30
+ * **CellSentinelScore:** Add CellSentinelScore ([2fff04d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/2fff04d))
31
+ * **CellText:** Handle active prop in CellText & column views in HiTable ([4366e60](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4366e60))
32
+ * **HiCells:** Add simple cells types (Address, Date, Icon, Image, Numeric, PinToAction, Rate, Senti ([f688517](https://gitlab.hipay.org/backend/hipay-material-ui/commit/f688517))
33
+ * **HiDatePicker:** BREAKING CHANGE - add local prop to handle calendar translations ([b1b3743](https://gitlab.hipay.org/backend/hipay-material-ui/commit/b1b3743))
34
+ * **HiIcon:** Add mdi-material-ui as available icons via 'mdi_' prefix ([1091d6d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/1091d6d))
35
+ * **HiMap:** unregister fetch on unmount ([0afa931](https://gitlab.hipay.org/backend/hipay-material-ui/commit/0afa931))
36
+ * **HiSelect:** Add (NEW) HiSelect, HiNestedSelect, HiDynamicSelect ([4c6447e](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4c6447e))
37
+ * **HiSelect:** Reset search input on blur & on close ([d9af584](https://gitlab.hipay.org/backend/hipay-material-ui/commit/d9af584))
38
+ * **HiSelectableList:** Add sort props to sort item list on label ([f412ddc](https://gitlab.hipay.org/backend/hipay-material-ui/commit/f412ddc))
39
+ * **HiSelectContent:** Add new HiSelectContent & HiNestedSelectContent ([215ad8f](https://gitlab.hipay.org/backend/hipay-material-ui/commit/215ad8f))
40
+ * **HiSelectContent:** export utils functions ([7c41d87](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7c41d87))
41
+ * **HiUploadField:** rename component HiUploadField ([593f77e](https://gitlab.hipay.org/backend/hipay-material-ui/commit/593f77e))
42
+ * **notice:** Création notice KPI ([bba3f89](https://gitlab.hipay.org/backend/hipay-material-ui/commit/bba3f89))
43
+
44
+
45
+ ### Performance Improvements
46
+
47
+ * **PureFunction:** Use pure & functional components ([220c686](https://gitlab.hipay.org/backend/hipay-material-ui/commit/220c686))
48
+
49
+
50
+ ### BREAKING CHANGES
51
+
52
+ * **HiDatePicker:** Required "local" props (use polyglot, p.currentLocal)
53
+ * **HiUploadField:** Components names changes
54
+ * **HiCells:** Remove CellCountry, CellThirdParty, CellStatus & CellAccount (use generic type
55
+ CellImage & CellText)
56
+ * **HiSelect:** HiSelect API change, use HiNestedSelect or HiDynamicSelect relative to situation
57
+
58
+
59
+
60
+ <a name="2.0.0-beta.41"></a>
61
+ # [2.0.0-beta.41](https://gitlab.hipay.org/backend/hipay-material-ui/compare/0.0.1...2.0.0-beta.41) (2018-11-12)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * **eslint:** remove eslint warrnings in components (ignore test files) ([d236c62](https://gitlab.hipay.org/backend/hipay-material-ui/commit/d236c62))
67
+ * **HiBreadcrumb:** clean eslint warnings ([6db12fb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6db12fb))
68
+ * **HiDatePicker:** add static positions for custom overlays ([c3edf24](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c3edf24))
69
+ * **HiExpansionPanel:** Fix props type a requirement ([cbc3b48](https://gitlab.hipay.org/backend/hipay-material-ui/commit/cbc3b48))
70
+ * **HiInput:** handle focus state through prop when needed to override default comportment ([9a133cc](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9a133cc))
71
+ * **HiKpiNotice:** eslint clean warnings ([11b5552](https://gitlab.hipay.org/backend/hipay-material-ui/commit/11b5552))
72
+ * **HiSelect:** Fix build of HiSelectContent ([4b87f78](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4b87f78))
73
+ * **HiSelect:** focus on undefined item ([2d084e6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/2d084e6))
74
+ * **HiSelect:** handle staticPosition & width properly for HiDateRangeSelector usage ([7b19ffb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7b19ffb))
75
+ * **HiSelectableListItem:** disabled item checkbox color ([9f10552](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9f10552))
76
+ * **HiSelectableListItem:** remove item width ([a913945](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a913945))
77
+ * **HiSelectContent:** Remove compute of input value ([b86db83](https://gitlab.hipay.org/backend/hipay-material-ui/commit/b86db83))
78
+ * **HiSlider:** eslint clean warnings ([08964b1](https://gitlab.hipay.org/backend/hipay-material-ui/commit/08964b1))
79
+ * **HiUploadField:** clean eslint warnings ([c76aaf1](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c76aaf1))
80
+ * **migration:** fix contrast threshold ... ([6fb3b18](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6fb3b18))
81
+ * **package:** add cross-env ([7098fd6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7098fd6))
82
+
83
+
84
+ ### Features
85
+
86
+ * **CellImage:** Handle fallbackImage ([254799d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/254799d))
87
+ * **CellSentinel:** Uniformize cell api with front CellSentinel ([4e2975b](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4e2975b))
88
+ * **CellSentinel:** Update CellSentinel to the new way (split each result in different column) ([efe2711](https://gitlab.hipay.org/backend/hipay-material-ui/commit/efe2711))
89
+ * **CellSentinelScore:** Add CellSentinelScore ([2fff04d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/2fff04d))
90
+ * **CellText:** Handle active prop in CellText & column views in HiTable ([4366e60](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4366e60))
91
+ * **HiCells:** Add simple cells types (Address, Date, Icon, Image, Numeric, PinToAction, Rate, Senti ([f688517](https://gitlab.hipay.org/backend/hipay-material-ui/commit/f688517))
92
+ * **HiIcon:** Add mdi-material-ui as available icons via 'mdi_' prefix ([1091d6d](https://gitlab.hipay.org/backend/hipay-material-ui/commit/1091d6d))
93
+ * **HiMap:** unregister fetch on unmount ([0afa931](https://gitlab.hipay.org/backend/hipay-material-ui/commit/0afa931))
94
+ * **HiSelect:** Add (NEW) HiSelect, HiNestedSelect, HiDynamicSelect ([4c6447e](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4c6447e))
95
+ * **HiSelect:** Reset search input on blur & on close ([d9af584](https://gitlab.hipay.org/backend/hipay-material-ui/commit/d9af584))
96
+ * **HiSelectableList:** Add sort props to sort item list on label ([f412ddc](https://gitlab.hipay.org/backend/hipay-material-ui/commit/f412ddc))
97
+ * **HiSelectContent:** Add new HiSelectContent & HiNestedSelectContent ([215ad8f](https://gitlab.hipay.org/backend/hipay-material-ui/commit/215ad8f))
98
+ * **HiSelectContent:** export utils functions ([7c41d87](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7c41d87))
99
+ * **HiUploadField:** rename component HiUploadField ([593f77e](https://gitlab.hipay.org/backend/hipay-material-ui/commit/593f77e))
100
+ * **notice:** Création notice KPI ([bba3f89](https://gitlab.hipay.org/backend/hipay-material-ui/commit/bba3f89))
101
+
102
+
103
+ ### Performance Improvements
104
+
105
+ * **PureFunction:** Use pure & functional components ([220c686](https://gitlab.hipay.org/backend/hipay-material-ui/commit/220c686))
106
+
107
+
108
+ ### BREAKING CHANGES
109
+
110
+ * **HiUploadField:** Components names changes
111
+ * **HiCells:** Remove CellCountry, CellThirdParty, CellStatus & CellAccount (use generic type
112
+ CellImage & CellText)
113
+ * **HiSelect:** HiSelect API change, use HiNestedSelect or HiDynamicSelect relative to situation
114
+
115
+
116
+
1
117
  <a name="2.0.0-beta.35"></a>
2
118
  # 2.0.0-beta.35 (2018-09-14)
3
119
 
@@ -47,7 +47,9 @@ function (_React$PureComponent) {
47
47
 
48
48
  _this.handleStep = function (idx) {
49
49
  return function () {
50
- _this.props.handleStep(idx);
50
+ if (_this.props.disableNavigation === false) {
51
+ _this.props.handleStep(idx);
52
+ }
51
53
  };
52
54
  };
53
55
 
@@ -62,7 +64,8 @@ function (_React$PureComponent) {
62
64
  var _this$props = this.props,
63
65
  activeStep = _this$props.activeStep,
64
66
  steps = _this$props.steps,
65
- type = _this$props.type;
67
+ type = _this$props.type,
68
+ disableNavigation = _this$props.disableNavigation;
66
69
  return _react.default.createElement(_HiStepper.default, {
67
70
  activeStep: activeStep,
68
71
  type: type
@@ -81,7 +84,8 @@ function (_React$PureComponent) {
81
84
  active: activeStep === index,
82
85
  status: step.status,
83
86
  notificationNumber: step.notificationNumber,
84
- type: type
87
+ type: type,
88
+ disableNavigation: disableNavigation
85
89
  }, step.label));
86
90
  })));
87
91
  }
@@ -91,7 +95,8 @@ function (_React$PureComponent) {
91
95
 
92
96
  HiBreadcrumb.defaultProps = {
93
97
  activeStep: 0,
94
- type: 'back'
98
+ type: 'back',
99
+ disableNavigation: false
95
100
  };
96
101
  HiBreadcrumb.propTypes = process.env.NODE_ENV !== "production" ? {
97
102
  /**
@@ -99,6 +104,11 @@ HiBreadcrumb.propTypes = process.env.NODE_ENV !== "production" ? {
99
104
  */
100
105
  activeStep: _propTypes.default.number,
101
106
 
107
+ /**
108
+ * Disable navigation in steps
109
+ */
110
+ disableNavigation: _propTypes.default.bool,
111
+
102
112
  /**
103
113
  * The callback function handling the flow from one step to another
104
114
  */
@@ -37,6 +37,9 @@ var styles = function styles() {
37
37
  return {
38
38
  lastStep: {
39
39
  marginBottom: 40
40
+ },
41
+ step: {
42
+ outline: 'none'
40
43
  }
41
44
  };
42
45
  };
@@ -89,7 +92,7 @@ function (_React$PureComponent) {
89
92
  return _react.default.createElement("div", {
90
93
  role: "button",
91
94
  tabIndex: index,
92
- className: (0, _classnames.default)((0, _defineProperty2.default)({}, classes.lastStep, isLast && type !== 'back')),
95
+ className: (0, _classnames.default)(classes.step, (0, _defineProperty2.default)({}, classes.lastStep, isLast && type !== 'back')),
93
96
  onClick: onClick,
94
97
  onKeyDown: onClick
95
98
  }, _react.default.Children.map(children, function (child) {
@@ -39,7 +39,6 @@ var styles = function styles() {
39
39
  contentContainer: {
40
40
  height: 'fit-content',
41
41
  maxHeight: 300,
42
- maxWidth: 323,
43
42
  marginTop: 35,
44
43
  marginLeft: 24,
45
44
  padding: 24,
@@ -59,11 +59,13 @@ var styles = function styles(theme) {
59
59
  marginLeft: 4,
60
60
  fontWeight: theme.typography.fontWeightRegular,
61
61
  color: theme.palette.neutral.main,
62
- marginBottom: -4,
62
+ marginBottom: -4
63
+ }, theme.typography.b2),
64
+ labelHover: {
63
65
  '&:hover': {
64
66
  cursor: 'pointer'
65
67
  }
66
- }, theme.typography.b2),
68
+ },
67
69
  labelContainer: {
68
70
  marginBottom: 4
69
71
  },
@@ -141,7 +143,8 @@ function (_React$PureComponent) {
141
143
  notificationNumber = _this$props.notificationNumber,
142
144
  status = _this$props.status,
143
145
  type = _this$props.type,
144
- other = (0, _objectWithoutProperties2.default)(_this$props, ["active", "children", "classes", "className", "notificationNumber", "status", "type"]);
146
+ disableNavigation = _this$props.disableNavigation,
147
+ other = (0, _objectWithoutProperties2.default)(_this$props, ["active", "children", "classes", "className", "notificationNumber", "status", "type", "disableNavigation"]);
145
148
  return _react.default.createElement("span", (0, _extends2.default)({
146
149
  className: (0, _classnames.default)(classes.root, classNameProp, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.frontRoot, type === 'front-light'), (0, _defineProperty2.default)(_classNames, classes.frontDarkRoot, type === 'front-dark'), _classNames))
147
150
  }, other), _react.default.createElement("span", {
@@ -153,7 +156,7 @@ function (_React$PureComponent) {
153
156
  })), _react.default.createElement("span", {
154
157
  className: (0, _classnames.default)(classes.labelContainer, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, classes.largeLabelContainer, type !== 'back'), (0, _defineProperty2.default)(_classNames2, classes.shortLabelContainer, type === 'back'), _classNames2))
155
158
  }, _react.default.createElement("div", {
156
- className: (0, _classnames.default)(classes.label, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, classes.validated, status === 'validated'), (0, _defineProperty2.default)(_classNames3, classes.refused, status === 'refused'), (0, _defineProperty2.default)(_classNames3, classes.warning, status === 'warning'), (0, _defineProperty2.default)(_classNames3, classes.active, status === 'active'), (0, _defineProperty2.default)(_classNames3, classes.light, type === 'front-light'), (0, _defineProperty2.default)(_classNames3, classes.activeStep, active), (0, _defineProperty2.default)(_classNames3, classes.frontLabel, type !== 'back'), (0, _defineProperty2.default)(_classNames3, classes.shortEllipsis, notificationNumber > 0), (0, _defineProperty2.default)(_classNames3, classes.longEllipsis, notificationNumber === 0 && type === 'back'), _classNames3))
159
+ className: (0, _classnames.default)(classes.label, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, classes.labelHover, disableNavigation === false), (0, _defineProperty2.default)(_classNames3, classes.validated, status === 'validated'), (0, _defineProperty2.default)(_classNames3, classes.refused, status === 'refused'), (0, _defineProperty2.default)(_classNames3, classes.warning, status === 'warning'), (0, _defineProperty2.default)(_classNames3, classes.active, status === 'active'), (0, _defineProperty2.default)(_classNames3, classes.light, type === 'front-light'), (0, _defineProperty2.default)(_classNames3, classes.activeStep, active), (0, _defineProperty2.default)(_classNames3, classes.frontLabel, type !== 'back'), (0, _defineProperty2.default)(_classNames3, classes.shortEllipsis, notificationNumber > 0), (0, _defineProperty2.default)(_classNames3, classes.longEllipsis, notificationNumber === 0 && type === 'back'), _classNames3))
157
160
  }, children), notificationNumber > 0 && _react.default.createElement("span", {
158
161
  className: classes.pin
159
162
  }, _react.default.createElement(_HiPin.default, {
@@ -194,6 +197,11 @@ HiStepLabel.propTypes = process.env.NODE_ENV !== "production" ? {
194
197
  */
195
198
  className: _propTypes.default.string,
196
199
 
200
+ /**
201
+ * Disable navigation in steps
202
+ */
203
+ disableNavigation: _propTypes.default.bool,
204
+
197
205
  /**
198
206
  * The value to be displayed in the HiPin on the right of the label
199
207
  */
@@ -28,7 +28,7 @@ var _styles = require("../styles");
28
28
  var styles = function styles() {
29
29
  return {
30
30
  root: {
31
- width: 340
31
+ width: '100%'
32
32
  }
33
33
  };
34
34
  };
@@ -82,6 +82,12 @@ var styles = function styles(theme) {
82
82
  },
83
83
 
84
84
  /* Styles applied to the root element if `variant="[contained | fab]"` and `color="positive"`. */
85
+ containedPrimary: {
86
+ '&$disabled': {
87
+ color: theme.palette.neutral.contrastText,
88
+ backgroundColor: theme.palette.neutral.main
89
+ }
90
+ },
85
91
  containedPositive: {
86
92
  color: theme.palette.positive.contrastText,
87
93
  backgroundColor: theme.palette.positive.main,
@@ -199,7 +205,7 @@ function HiButton(props) {
199
205
  var hcolor = ['positive', 'negative', 'middle', 'neutral'].includes(color) ? 'inherit' : color;
200
206
  var fab = variant === 'fab' || variant === 'extendedFab';
201
207
  var contained = variant === 'contained' || variant === 'raised';
202
- var buttonClassNames = (0, _classnames.default)(classes.root, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.raisedDisabled, variant === 'raised' && disabled), (0, _defineProperty2.default)(_classNames, classes.flatPositive, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.flatNegative, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.flatMiddle, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.flatNeutral, (variant === 'text' || variant === 'flat' || variant === 'outlined') && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.containedPositive, (contained || fab) && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.containedNegative, (contained || fab) && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.containedMiddle, (contained || fab) && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.containedNeutral, (contained || fab) && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.outlinedPositive, variant === 'outlined' && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.outlinedNegative, variant === 'outlined' && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.outlinedMiddle, variant === 'outlined' && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.outlinedNeutral, variant === 'outlined' && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.disabled, disabled), _classNames));
208
+ var buttonClassNames = (0, _classnames.default)(classes.root, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.raisedDisabled, variant === 'raised' && disabled), (0, _defineProperty2.default)(_classNames, classes.flatPositive, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.flatNegative, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.flatMiddle, (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.flatNeutral, (variant === 'text' || variant === 'flat' || variant === 'outlined') && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.containedPrimary, (contained || fab) && color === 'primary'), (0, _defineProperty2.default)(_classNames, classes.containedPositive, (contained || fab) && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.containedNegative, (contained || fab) && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.containedMiddle, (contained || fab) && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.containedNeutral, (contained || fab) && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.outlinedPositive, variant === 'outlined' && color === 'positive'), (0, _defineProperty2.default)(_classNames, classes.outlinedNegative, variant === 'outlined' && color === 'negative'), (0, _defineProperty2.default)(_classNames, classes.outlinedMiddle, variant === 'outlined' && color === 'middle'), (0, _defineProperty2.default)(_classNames, classes.outlinedNeutral, variant === 'outlined' && (color === 'default' || color === 'neutral')), (0, _defineProperty2.default)(_classNames, classes.disabled, disabled), _classNames));
203
209
  return _react.default.createElement(_Button.default, (0, _extends2.default)({
204
210
  className: className,
205
211
  classes: {
@@ -71,10 +71,10 @@ function (_React$PureComponent) {
71
71
  className: classes.wrapper,
72
72
  title: label
73
73
  }, icon && _react.default.createElement(_HiIcon.default, {
74
- color: "inherit",
74
+ color: 'inherit',
75
75
  style: {
76
76
  color: color,
77
- fontSize: size ? size : 24
77
+ fontSize: size || 24
78
78
  },
79
79
  className: classes.icon,
80
80
  icon: icon
@@ -115,12 +115,12 @@ CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
115
115
  /**
116
116
  * View (L/M/S)
117
117
  */
118
- view: _propTypes.default.oneOf(['l', 'm', 's']),
118
+ size: _propTypes.default.number,
119
119
 
120
120
  /**
121
121
  * Icon size
122
122
  */
123
- size: _propTypes.default.number
123
+ view: _propTypes.default.oneOf(['l', 'm', 's'])
124
124
  } : {};
125
125
 
126
126
  var _default = (0, _withStyles.default)(styles, {
@@ -80,7 +80,8 @@ function (_React$PureComponent) {
80
80
  shortLabel = _this$props.shortLabel,
81
81
  view = _this$props.view,
82
82
  size = _this$props.size,
83
- fallbackImage = _this$props.fallbackImage;
83
+ fallbackImage = _this$props.fallbackImage,
84
+ title = _this$props.title;
84
85
  if (!path || path === '') return '';
85
86
  return _react.default.createElement("div", {
86
87
  className: classes.wrapper,
@@ -88,6 +89,7 @@ function (_React$PureComponent) {
88
89
  }, _react.default.createElement("img", {
89
90
  src: path,
90
91
  alt: label,
92
+ title: title,
91
93
  className: classes.img,
92
94
  width: size,
93
95
  onError: handleError(fallbackImage)
@@ -111,6 +113,11 @@ CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
111
113
  */
112
114
  classes: _propTypes.default.object,
113
115
 
116
+ /**
117
+ * Fallback image path
118
+ */
119
+ fallbackImage: _propTypes.default.string,
120
+
114
121
  /**
115
122
  * Label
116
123
  */
@@ -131,6 +138,11 @@ CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
131
138
  */
132
139
  size: _propTypes.default.number,
133
140
 
141
+ /**
142
+ * Title.
143
+ */
144
+ title: _propTypes.default.string,
145
+
134
146
  /**
135
147
  * View (L/M/S)
136
148
  */
@@ -39,7 +39,8 @@ var styles = function styles(theme) {
39
39
  justifyContent: 'center',
40
40
  overflow: 'hidden',
41
41
  position: 'relative',
42
- textAlign: 'right'
42
+ textAlign: 'right',
43
+ paddingTop: '1em'
43
44
  },
44
45
  trendChipIcon: {
45
46
  width: 14,
@@ -57,7 +58,6 @@ var styles = function styles(theme) {
57
58
  color: theme.palette.neutral.main
58
59
  },
59
60
  spanIndicator: {
60
- fontSize: 11,
61
61
  float: 'right',
62
62
  color: '#737373',
63
63
  position: 'relative',
@@ -130,7 +130,10 @@ function (_React$PureComponent) {
130
130
  }, _react.default.createElement("div", {
131
131
  className: typeof indicator === 'undefined' && classes.rateDiv || ''
132
132
  }, displayedRate, trendIcon), typeof indicator !== 'undefined' && _react.default.createElement("span", {
133
- className: classes.spanIndicator
133
+ className: classes.spanIndicator,
134
+ style: {
135
+ fontSize: view !== 'l' ? 10 : 11
136
+ }
134
137
  }, indicator));
135
138
  }
136
139
  }]);
@@ -60,21 +60,18 @@ function (_React$PureComponent) {
60
60
  outlined = _this$props.outlined,
61
61
  reviewer = _this$props.reviewer,
62
62
  value = _this$props.value;
63
-
64
- var _label = label ? label : value;
65
-
66
- var _letter = letter ? letter : _label[0];
67
-
63
+ var effectiveLabel = label || value;
64
+ var effectiveLetter = letter || effectiveLabel[0];
68
65
  return _react.default.createElement("div", {
69
66
  className: classes.flexContent,
70
- title: reviewer ? "".concat(_label, "\n").concat(reviewer) : _label
67
+ title: reviewer ? "".concat(effectiveLabel, "\n").concat(reviewer) : effectiveLabel
71
68
  }, _react.default.createElement(_HiColoredLabel.default, {
72
69
  active: active,
73
70
  classes: {
74
71
  root: classes.label
75
72
  },
76
73
  color: color,
77
- label: _letter,
74
+ label: effectiveLetter,
78
75
  outlined: outlined
79
76
  }));
80
77
  }
@@ -87,14 +84,14 @@ CellSentinel.defaultProps = {
87
84
  outlined: false
88
85
  };
89
86
  CellSentinel.propTypes = process.env.NODE_ENV !== "production" ? {
87
+ active: _propTypes.default.bool,
90
88
  classes: _propTypes.default.object,
91
- value: _propTypes.default.string,
92
89
  color: _propTypes.default.string,
93
90
  label: _propTypes.default.string,
94
91
  letter: _propTypes.default.string,
95
- active: _propTypes.default.bool,
92
+ outlined: _propTypes.default.bool,
96
93
  reviewer: _propTypes.default.string,
97
- outlined: _propTypes.default.bool
94
+ value: _propTypes.default.string
98
95
  } : {};
99
96
 
100
97
  var _default = (0, _withStyles.default)(styles, {
@@ -9,6 +9,8 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
12
14
  var _HiColoredLabel = _interopRequireDefault(require("../HiColoredLabel"));
13
15
 
14
16
  var styleRoot = {
@@ -56,7 +58,7 @@ var CellTextStyled = function CellTextStyled(_ref) {
56
58
  var valueString = label ? label.toString() : value.toString();
57
59
  return _react.default.createElement("div", {
58
60
  style: styleRoot,
59
- title: title ? title : valueString
61
+ title: title || valueString
60
62
  }, color ? _react.default.createElement(_HiColoredLabel.default, {
61
63
  style: styleColorLabel,
62
64
  label: valueString,
@@ -67,5 +69,31 @@ var CellTextStyled = function CellTextStyled(_ref) {
67
69
  }, valueString));
68
70
  };
69
71
 
72
+ CellTextStyled.propTypes = process.env.NODE_ENV !== "production" ? {
73
+ /**
74
+ * Will forward active prop to HiColoredLabel
75
+ */
76
+ active: _propTypes.default.bool,
77
+
78
+ /**
79
+ * Couleur du text & du background
80
+ */
81
+ color: _propTypes.default.string,
82
+
83
+ /**
84
+ * Label
85
+ */
86
+ label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
87
+
88
+ /**
89
+ * Tooltip
90
+ */
91
+ title: _propTypes.default.string,
92
+
93
+ /**
94
+ * Value
95
+ */
96
+ value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
97
+ } : {};
70
98
  var _default = CellTextStyled;
71
99
  exports.default = _default;
@@ -27,7 +27,7 @@ var _colorManipulator = require("../styles/colorManipulator");
27
27
 
28
28
  var styles = function styles(theme) {
29
29
  return {
30
- root: (0, _extends2.default)({}, theme.typography.b1, {
30
+ root: (0, _extends2.default)({}, theme.typography.b3, {
31
31
  display: 'inline-block',
32
32
  alignItems: 'baseline',
33
33
  maxWidth: '100%',
@@ -15,19 +15,18 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
 
16
16
  var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
17
17
 
18
+ var _HiButton = _interopRequireDefault(require("../HiButton"));
19
+
18
20
  var styles = function styles(theme) {
19
21
  return {
20
22
  caption: (0, _extends2.default)({
21
23
  display: 'table-caption',
22
24
  height: 40,
23
25
  textAlign: 'center',
24
- padding: '10px 0'
26
+ padding: '4px 0'
25
27
  }, theme.typography.body1, {
26
28
  color: theme.palette.neutral.main
27
- }),
28
- clickableSpan: {
29
- cursor: 'pointer'
30
- }
29
+ })
31
30
  };
32
31
  };
33
32
 
@@ -36,17 +35,19 @@ exports.styles = styles;
36
35
  var Caption = function Caption(_ref) {
37
36
  var classes = _ref.classes,
38
37
  date = _ref.date,
38
+ _ref$locale = _ref.locale,
39
+ locale = _ref$locale === void 0 ? 'en_US' : _ref$locale,
39
40
  localeUtils = _ref.localeUtils,
40
41
  onMonthClick = _ref.onMonthClick,
41
42
  onYearClick = _ref.onYearClick;
42
- var months = localeUtils.getMonths();
43
+ var months = localeUtils.getMonths(locale);
43
44
  return _react.default.createElement("div", {
44
45
  className: classes.caption
45
- }, _react.default.createElement("span", {
46
- className: classes.clickableSpan,
46
+ }, _react.default.createElement(_HiButton.default, {
47
+ size: "small",
47
48
  onClick: onMonthClick
48
- }, months[date.getMonth()]), "\xA0", _react.default.createElement("span", {
49
- className: classes.clickableSpan,
49
+ }, months[date.getMonth()]), _react.default.createElement(_HiButton.default, {
50
+ size: "small",
50
51
  onClick: onYearClick
51
52
  }, date.getFullYear()));
52
53
  };
@@ -62,6 +63,11 @@ Caption.propTypes = process.env.NODE_ENV !== "production" ? {
62
63
  */
63
64
  date: _propTypes.default.object.isRequired,
64
65
 
66
+ /**
67
+ * ReactDayPicker prop
68
+ */
69
+ locale: _propTypes.default.string,
70
+
65
71
  /**
66
72
  * ReactDayPicker prop
67
73
  */
@@ -31,6 +31,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
31
31
 
32
32
  var _moment = _interopRequireDefault(require("react-day-picker/moment"));
33
33
 
34
+ var _hiLocaleUtils = _interopRequireDefault(require("./hiLocaleUtils"));
35
+
34
36
  var _DayPickerInput = _interopRequireDefault(require("react-day-picker/DayPickerInput"));
35
37
 
36
38
  var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
@@ -274,13 +276,14 @@ function (_React$Component) {
274
276
  return _react.default.createElement(_NavBar.default, (0, _extends2.default)({
275
277
  showClockButton: enableTime,
276
278
  onClockClick: _this2.handleClockClick
277
- }, props2));
279
+ }, props2, {
280
+ localeUtils: _hiLocaleUtils.default
281
+ }));
278
282
  },
279
283
  captionElement: this.renderCaption,
280
284
  classNames: classes,
281
285
  disabledDays: effectiveDisabledDays,
282
286
  selectedDays: (0, _typeof2.default)(value) === 'object' ? value : undefined,
283
- locale: locale,
284
287
  firstDayOfWeek: 1,
285
288
  fromMonth: minimumDate,
286
289
  modifiers: {
@@ -289,7 +292,10 @@ function (_React$Component) {
289
292
  },
290
293
  modifiersStyles: modifiersStyles,
291
294
  month: currentMonth
292
- }, props);
295
+ }, props, {
296
+ locale: locale,
297
+ localeUtils: _hiLocaleUtils.default
298
+ });
293
299
  var inputProps = (0, _extends2.default)({}, onReset && {
294
300
  onReset: this.handleReset
295
301
  }, props, {