@hipay/hipay-material-ui 1.0.0-beta.14 → 1.0.0-beta.16

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 (45) hide show
  1. package/HiBreadcrumb/HiBreadcrumb.js +28 -22
  2. package/HiBreadcrumb/HiStep.js +96 -60
  3. package/HiBreadcrumb/HiStepConnector.js +91 -26
  4. package/HiBreadcrumb/HiStepContent.js +122 -0
  5. package/HiBreadcrumb/HiStepIcon.js +86 -29
  6. package/HiBreadcrumb/HiStepLabel.js +128 -62
  7. package/HiBreadcrumb/HiStepper.js +5 -24
  8. package/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
  9. package/HiDatePicker/Overlays/Overlay.js +14 -2
  10. package/HiForm/HiInput.js +24 -11
  11. package/HiForm/HiSlider.js +399 -0
  12. package/HiForm/index.js +9 -0
  13. package/HiTable/BodyCellBuilder.js +3 -0
  14. package/HiTable/BodyCells/CellIcon.js +26 -19
  15. package/HiTable/BodyCells/CellImage.js +17 -13
  16. package/HiTable/BodyCells/CellNumeric.js +7 -2
  17. package/HiTable/BodyCells/CellSentinel.js +14 -13
  18. package/HiTable/BodyCells/CellThirdPartySecurity.js +43 -19
  19. package/HiTable/HeaderCell.js +3 -2
  20. package/es/HiBreadcrumb/HiBreadcrumb.js +27 -19
  21. package/es/HiBreadcrumb/HiStep.js +55 -54
  22. package/es/HiBreadcrumb/HiStepConnector.js +86 -26
  23. package/es/HiBreadcrumb/HiStepContent.js +63 -0
  24. package/es/HiBreadcrumb/HiStepIcon.js +103 -35
  25. package/es/HiBreadcrumb/HiStepLabel.js +106 -63
  26. package/es/HiBreadcrumb/HiStepper.js +5 -21
  27. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
  28. package/es/HiDatePicker/Overlays/Overlay.js +9 -2
  29. package/es/HiForm/HiInput.js +19 -10
  30. package/es/HiForm/HiSlider.js +309 -0
  31. package/es/HiForm/index.js +1 -0
  32. package/es/HiTable/BodyCellBuilder.js +3 -0
  33. package/es/HiTable/BodyCells/CellIcon.js +15 -8
  34. package/es/HiTable/BodyCells/CellImage.js +16 -14
  35. package/es/HiTable/BodyCells/CellNumeric.js +6 -2
  36. package/es/HiTable/BodyCells/CellSentinel.js +8 -5
  37. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +40 -15
  38. package/es/HiTable/HeaderCell.js +3 -2
  39. package/es/utils/hiHelpers.js +4 -3
  40. package/index.es.js +1 -1
  41. package/index.js +1 -1
  42. package/package.json +43 -43
  43. package/umd/hipay-material-ui.development.js +7679 -7170
  44. package/umd/hipay-material-ui.production.min.js +5 -5
  45. package/utils/hiHelpers.js +4 -2
@@ -130,6 +130,7 @@ class HeaderCell extends React.PureComponent {
130
130
  classes,
131
131
  type,
132
132
  title,
133
+ smallTitle,
133
134
  selectable,
134
135
  selected,
135
136
  onSelect,
@@ -236,7 +237,7 @@ class HeaderCell extends React.PureComponent {
236
237
  {
237
238
  className: classes.labelContainer + (_sorted ? ' ' + classes.labelContainerOrdered : '')
238
239
  },
239
- title
240
+ view !== 's' ? title : smallTitle ? smallTitle : title
240
241
  ),
241
242
  align !== 'right' && _icons
242
243
  ) : React.createElement(
@@ -253,7 +254,7 @@ class HeaderCell extends React.PureComponent {
253
254
  React.createElement(
254
255
  'span',
255
256
  { className: classes.labelContainer, style: { width: '100%' } },
256
- title
257
+ view !== 's' ? title : smallTitle ? smallTitle : title
257
258
  )
258
259
  )
259
260
  ),
@@ -16,8 +16,9 @@ export function camelize(string) {
16
16
  * @param number
17
17
  * @param size
18
18
  * @param locale
19
+ * @param precision
19
20
  */
20
- export function formatNumber(number, size = 'l', locale = 'en-EN') {
21
+ export function formatNumber(number, size = 'l', locale = 'en-EN', precision) {
21
22
  // Round number
22
23
  switch (size) {
23
24
  case 'l':
@@ -33,8 +34,8 @@ export function formatNumber(number, size = 'l', locale = 'en-EN') {
33
34
 
34
35
  // To locale
35
36
  const options = {
36
- minimumFractionDigits: size === 'l' ? 2 : 0,
37
- maximumFractionDigits: size === 'l' ? 2 : 0,
37
+ minimumFractionDigits: typeof precision !== 'undefined' ? precision : size === 'l' ? 2 : 0,
38
+ maximumFractionDigits: typeof precision !== 'undefined' ? precision : size === 'l' ? 2 : 0,
38
39
  useGrouping: true
39
40
  };
40
41
 
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Material-UI v1.0.0-beta.14
1
+ /** @license Material-UI v1.0.0-beta.15
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 Material-UI v1.0.0-beta.14
1
+ /** @license Material-UI v1.0.0-beta.15
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": "1.0.0-beta.14",
5
+ "version": "1.0.0-beta.16",
6
6
  "description": "HiPay Material-UI Style Guide - React components that implement Google's Material Design from Material-UI.",
7
7
  "main": "./index.js",
8
8
  "repository": {
@@ -15,51 +15,51 @@
15
15
  "homepage": "http://material-ui.com/",
16
16
  "peerDependencies": {
17
17
  "react": "16.2.0",
18
- "react-dom": "^15.3.0 || ^16.0.0"
18
+ "react-dom": "15.3.0 || 16.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@types/jss": "^9.3.0",
22
- "@types/react-transition-group": "^2.0.6",
23
- "babel-runtime": "^6.26.0",
24
- "brcast": "^3.0.1",
25
- "classnames": "^2.2.5",
26
- "deepmerge": "^2.0.1",
27
- "dom-helpers": "^3.2.1",
28
- "hoist-non-react-statics": "^2.5.0",
29
- "jss": "^9.3.3",
30
- "jss-camel-case": "^6.0.0",
31
- "jss-default-unit": "^8.0.2",
32
- "jss-global": "^3.0.0",
33
- "jss-nested": "^6.0.1",
34
- "jss-props-sort": "^6.0.0",
35
- "jss-vendor-prefixer": "^7.0.0",
36
- "keycode": "^2.1.9",
37
- "lodash": "^4.2.0",
38
- "lz-string": "^1.4.4",
21
+ "@types/jss": "9.3.0",
22
+ "@types/react-transition-group": "2.0.6",
23
+ "babel-runtime": "6.26.0",
24
+ "brcast": "3.0.1",
25
+ "classnames": "2.2.5",
26
+ "deepmerge": "2.0.1",
27
+ "dom-helpers": "3.2.1",
28
+ "hoist-non-react-statics": "2.5.0",
29
+ "jss": "9.3.3",
30
+ "jss-camel-case": "6.0.0",
31
+ "jss-default-unit": "8.0.2",
32
+ "jss-global": "3.0.0",
33
+ "jss-nested": "6.0.1",
34
+ "jss-props-sort": "6.0.0",
35
+ "jss-vendor-prefixer": "7.0.0",
36
+ "keycode": "2.1.9",
37
+ "lodash": "4.2.0",
38
+ "lz-string": "1.4.4",
39
39
  "material-ui": "1.0.0-beta.36",
40
- "mdi-material-ui": "^2.0.0",
41
- "moment": "^2.19.1",
42
- "moment-timezone": "^0.5.14",
43
- "normalize-scroll-left": "^0.1.2",
44
- "prop-types": "^15.6.0",
45
- "react-addons-update": "^15.6.2",
46
- "react-contextmenu": "^2.9.2",
47
- "react-custom-scrollbars": "^4.2.1",
48
- "react-day-picker": "^7.0.7",
49
- "react-event-listener": "^0.5.1",
50
- "react-jss": "^8.1.0",
51
- "react-lifecycles-compat": "^1.0.2",
52
- "react-pdf": "^3.0.4",
53
- "react-popper": "^0.8.0",
54
- "react-proptype-conditional-require": "^1.0.4",
55
- "react-scrollbar-size": "^2.0.2",
56
- "react-sortable-hoc": "^0.6.8",
57
- "react-spinners": "^0.2.5",
58
- "react-transition-group": "^2.2.1",
59
- "recompose": "^0.26.0",
60
- "scroll": "^2.0.3",
61
- "validator": "^9.4.0",
62
- "warning": "^3.0.0"
40
+ "mdi-material-ui": "2.0.0",
41
+ "moment": "2.19.1",
42
+ "moment-timezone": "0.5.14",
43
+ "normalize-scroll-left": "0.1.2",
44
+ "prop-types": "15.6.0",
45
+ "react-addons-update": "15.6.2",
46
+ "react-contextmenu": "2.9.2",
47
+ "react-custom-scrollbars": "4.2.1",
48
+ "react-day-picker": "7.1.9",
49
+ "react-event-listener": "0.5.1",
50
+ "react-jss": "8.1.0",
51
+ "react-lifecycles-compat": "1.0.2",
52
+ "react-pdf": "3.0.4",
53
+ "react-popper": "0.8.0",
54
+ "react-proptype-conditional-require": "1.0.4",
55
+ "react-scrollbar-size": "2.0.2",
56
+ "react-sortable-hoc": "0.6.8",
57
+ "react-spinners": "0.2.5",
58
+ "react-transition-group": "2.2.1",
59
+ "recompose": "0.26.0",
60
+ "scroll": "2.0.3",
61
+ "validator": "9.4.0",
62
+ "warning": "3.0.0"
63
63
  },
64
64
  "resolutions": {
65
65
  "@types/react": "16.0.38"