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

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.
Files changed (52) hide show
  1. package/HiCell/CellImage.js +16 -4
  2. package/HiCell/CellNumeric.js +1 -2
  3. package/HiCell/CellSentinel.js +33 -109
  4. package/HiCell/CellSentinelScore.js +100 -0
  5. package/HiCell/CellTextStyled.js +71 -0
  6. package/HiCell/index.js +9 -1
  7. package/HiChip/HiChip.js +2 -1
  8. package/HiColoredLabel/HiColoredLabel.js +14 -4
  9. package/HiDatePicker/HiDatePicker.js +1 -1
  10. package/HiDatePicker/HiDateRangePicker.js +349 -420
  11. package/HiDatePicker/HiDateRangeSelector.js +80 -62
  12. package/HiDatePicker/NavBar.js +2 -1
  13. package/HiDatePicker/Overlays/TimePickerOverlay.js +1 -1
  14. package/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
  15. package/HiForm/HiFormControl.js +5 -4
  16. package/HiSelect/HiSuggestSelect.js +16 -2
  17. package/HiSelectNew/HiSelect.js +4 -1
  18. package/HiSelectableList/HiSelectableListItem.js +3 -1
  19. package/HiSwitch/HiSwitch.js +2 -1
  20. package/HiTable/HiCellBuilder.js +31 -27
  21. package/HiTable/HiTableHeader.js +21 -13
  22. package/HiTable/constants.js +7 -5
  23. package/es/HiCell/CellImage.js +13 -2
  24. package/es/HiCell/CellNumeric.js +1 -2
  25. package/es/HiCell/CellSentinel.js +32 -108
  26. package/es/HiCell/CellSentinelScore.js +60 -0
  27. package/es/HiCell/CellTextStyled.js +57 -0
  28. package/es/HiCell/index.js +2 -1
  29. package/es/HiChip/HiChip.js +2 -1
  30. package/es/HiColoredLabel/HiColoredLabel.js +14 -3
  31. package/es/HiDatePicker/HiDatePicker.js +1 -1
  32. package/es/HiDatePicker/HiDateRangePicker.js +312 -363
  33. package/es/HiDatePicker/HiDateRangeSelector.js +70 -56
  34. package/es/HiDatePicker/NavBar.js +2 -1
  35. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +1 -1
  36. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
  37. package/es/HiForm/HiFormControl.js +5 -4
  38. package/es/HiSelect/HiSuggestSelect.js +16 -3
  39. package/es/HiSelectNew/HiSelect.js +4 -1
  40. package/es/HiSelectableList/HiSelectableListItem.js +3 -1
  41. package/es/HiSwitch/HiSwitch.js +2 -1
  42. package/es/HiTable/HiCellBuilder.js +30 -27
  43. package/es/HiTable/HiTableHeader.js +20 -14
  44. package/es/HiTable/constants.js +8 -1
  45. package/es/styles/createPalette.js +3 -3
  46. package/index.es.js +1 -1
  47. package/index.js +1 -1
  48. package/package.json +1 -1
  49. package/styles/createPalette.js +3 -3
  50. package/umd/hipay-material-ui.development.js +9843 -6197
  51. package/umd/hipay-material-ui.production.min.js +2 -2
  52. package/yarn-error.log +0 -110
@@ -120,7 +120,7 @@ export default function createPalette(palette) {
120
120
  contrastText: '#FFFFFF'
121
121
  },
122
122
  secondary = {
123
- light: '#ffcf21',
123
+ light: '#ffd94f',
124
124
  main: '#ffcf21',
125
125
  dark: '#E9BE30',
126
126
  contrastText: '#FFFFFF'
@@ -161,7 +161,7 @@ export default function createPalette(palette) {
161
161
  main: '#EDED14'
162
162
  },
163
163
  type = 'light',
164
- contrastThreshold = 2.8,
164
+ contrastThreshold = 2.2,
165
165
  // max light contrast
166
166
  tonalOffset = 0.2,
167
167
  context = 'local'
@@ -176,7 +176,7 @@ export default function createPalette(palette) {
176
176
 
177
177
  if (process.env.NODE_ENV !== 'production') {
178
178
  const contrast = getContrastRatio(background, contrastText);
179
- process.env.NODE_ENV !== "production" ? warning(contrast >= 2.8, [`Material-UI: the contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WACG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')) : void 0;
179
+ process.env.NODE_ENV !== "production" ? warning(contrast >= 2.2, [`Material-UI: the contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WACG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')) : void 0;
180
180
  }
181
181
 
182
182
  return contrastText;
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.0.0-beta.53
1
+ /** @license HiPay-Material-UI v2.0.0-beta.55
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license HiPay-Material-UI v2.0.0-beta.53
1
+ /** @license HiPay-Material-UI v2.0.0-beta.55
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
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.0.0-beta.53",
5
+ "version": "2.0.0-beta.55",
6
6
  "description": "React components that implement Google's Material Design.",
7
7
  "keywords": [
8
8
  "react",
@@ -141,7 +141,7 @@ function createPalette(palette) {
141
141
  } : _palette$primary,
142
142
  _palette$secondary = palette.secondary,
143
143
  secondary = _palette$secondary === void 0 ? {
144
- light: '#ffcf21',
144
+ light: '#ffd94f',
145
145
  main: '#ffcf21',
146
146
  dark: '#E9BE30',
147
147
  contrastText: '#FFFFFF'
@@ -190,7 +190,7 @@ function createPalette(palette) {
190
190
  _palette$type = palette.type,
191
191
  type = _palette$type === void 0 ? 'light' : _palette$type,
192
192
  _palette$contrastThre = palette.contrastThreshold,
193
- contrastThreshold = _palette$contrastThre === void 0 ? 2.8 : _palette$contrastThre,
193
+ contrastThreshold = _palette$contrastThre === void 0 ? 2.2 : _palette$contrastThre,
194
194
  _palette$tonalOffset = palette.tonalOffset,
195
195
  tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
196
196
  _palette$context = palette.context,
@@ -205,7 +205,7 @@ function createPalette(palette) {
205
205
 
206
206
  if (process.env.NODE_ENV !== 'production') {
207
207
  var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText);
208
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(contrast >= 2.8, ["Material-UI: the contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), 'falls below the WACG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')) : void 0;
208
+ process.env.NODE_ENV !== "production" ? (0, _warning.default)(contrast >= 2.2, ["Material-UI: the contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), 'falls below the WACG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')) : void 0;
209
209
  }
210
210
 
211
211
  return contrastText;