@hipay/hipay-material-ui 1.0.0-beta.14 → 1.0.0-beta.15
Sign up to get free protection for your applications and to get access to all the features.
- package/HiBreadcrumb/HiBreadcrumb.js +28 -22
- package/HiBreadcrumb/HiStep.js +96 -60
- package/HiBreadcrumb/HiStepConnector.js +91 -26
- package/HiBreadcrumb/HiStepContent.js +122 -0
- package/HiBreadcrumb/HiStepIcon.js +86 -29
- package/HiBreadcrumb/HiStepLabel.js +128 -62
- package/HiBreadcrumb/HiStepper.js +5 -24
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
- package/HiDatePicker/Overlays/Overlay.js +14 -2
- package/HiForm/HiInput.js +24 -11
- package/HiForm/HiSlider.js +399 -0
- package/HiForm/index.js +9 -0
- package/HiTable/BodyCellBuilder.js +3 -0
- package/HiTable/BodyCells/CellIcon.js +26 -19
- package/HiTable/BodyCells/CellImage.js +17 -13
- package/HiTable/BodyCells/CellNumeric.js +7 -2
- package/HiTable/BodyCells/CellSentinel.js +14 -13
- package/HiTable/BodyCells/CellThirdPartySecurity.js +43 -19
- package/HiTable/HeaderCell.js +3 -2
- package/es/HiBreadcrumb/HiBreadcrumb.js +27 -19
- package/es/HiBreadcrumb/HiStep.js +55 -54
- package/es/HiBreadcrumb/HiStepConnector.js +86 -26
- package/es/HiBreadcrumb/HiStepContent.js +63 -0
- package/es/HiBreadcrumb/HiStepIcon.js +103 -35
- package/es/HiBreadcrumb/HiStepLabel.js +106 -63
- package/es/HiBreadcrumb/HiStepper.js +5 -21
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
- package/es/HiDatePicker/Overlays/Overlay.js +9 -2
- package/es/HiForm/HiInput.js +19 -10
- package/es/HiForm/HiSlider.js +309 -0
- package/es/HiForm/index.js +1 -0
- package/es/HiTable/BodyCellBuilder.js +3 -0
- package/es/HiTable/BodyCells/CellIcon.js +15 -8
- package/es/HiTable/BodyCells/CellImage.js +16 -14
- package/es/HiTable/BodyCells/CellNumeric.js +6 -2
- package/es/HiTable/BodyCells/CellSentinel.js +8 -5
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +40 -15
- package/es/HiTable/HeaderCell.js +3 -2
- package/es/utils/hiHelpers.js +4 -3
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +43 -43
- package/umd/hipay-material-ui.development.js +7679 -7170
- package/umd/hipay-material-ui.production.min.js +5 -5
- package/utils/hiHelpers.js +4 -2
package/es/HiTable/HeaderCell.js
CHANGED
@@ -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
|
),
|
package/es/utils/hiHelpers.js
CHANGED
@@ -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
package/index.js
CHANGED
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.
|
5
|
+
"version": "1.0.0-beta.15",
|
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": "
|
18
|
+
"react-dom": "15.3.0 || 16.0.0"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@types/jss": "
|
22
|
-
"@types/react-transition-group": "
|
23
|
-
"babel-runtime": "
|
24
|
-
"brcast": "
|
25
|
-
"classnames": "
|
26
|
-
"deepmerge": "
|
27
|
-
"dom-helpers": "
|
28
|
-
"hoist-non-react-statics": "
|
29
|
-
"jss": "
|
30
|
-
"jss-camel-case": "
|
31
|
-
"jss-default-unit": "
|
32
|
-
"jss-global": "
|
33
|
-
"jss-nested": "
|
34
|
-
"jss-props-sort": "
|
35
|
-
"jss-vendor-prefixer": "
|
36
|
-
"keycode": "
|
37
|
-
"lodash": "
|
38
|
-
"lz-string": "
|
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": "
|
41
|
-
"moment": "
|
42
|
-
"moment-timezone": "
|
43
|
-
"normalize-scroll-left": "
|
44
|
-
"prop-types": "
|
45
|
-
"react-addons-update": "
|
46
|
-
"react-contextmenu": "
|
47
|
-
"react-custom-scrollbars": "
|
48
|
-
"react-day-picker": "
|
49
|
-
"react-event-listener": "
|
50
|
-
"react-jss": "
|
51
|
-
"react-lifecycles-compat": "
|
52
|
-
"react-pdf": "
|
53
|
-
"react-popper": "
|
54
|
-
"react-proptype-conditional-require": "
|
55
|
-
"react-scrollbar-size": "
|
56
|
-
"react-sortable-hoc": "
|
57
|
-
"react-spinners": "
|
58
|
-
"react-transition-group": "
|
59
|
-
"recompose": "
|
60
|
-
"scroll": "
|
61
|
-
"validator": "
|
62
|
-
"warning": "
|
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": ".0.0"
|
63
63
|
},
|
64
64
|
"resolutions": {
|
65
65
|
"@types/react": "16.0.38"
|