@hipay/hipay-material-ui 2.2.0-RC2 → 2.2.0-beta-core2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/HiAlertModal/HiAlertModal.js +5 -5
- package/HiAppBar/HiAppBar.js +4 -4
- package/HiBadge/HiBadge.js +2 -2
- package/HiBreadcrumb/HiStep.js +1 -1
- package/HiBreadcrumb/HiStepConnector.js +6 -6
- package/HiBreadcrumb/HiStepContent.js +1 -1
- package/HiBreadcrumb/HiStepIcon.js +1 -1
- package/HiBreadcrumb/HiStepLabel.js +1 -1
- package/HiBreadcrumb/HiStepper.js +1 -1
- package/HiButton/HiButton.js +41 -92
- package/HiCell/CellAddress.js +2 -2
- package/HiCell/CellDate.js +2 -2
- package/HiCell/CellIcon.js +2 -2
- package/HiCell/CellImage.js +2 -2
- package/HiCell/CellNumeric.js +2 -2
- package/HiCell/CellPinToAction.js +2 -2
- package/HiCell/CellRate.js +2 -2
- package/HiCell/CellSentinel.js +2 -2
- package/HiCell/CellSentinelScore.js +2 -2
- package/HiCell/CellText.js +5 -5
- package/HiCell/CellTextStyled.js +1 -1
- package/HiCheckbox/HiCheckbox.js +5 -5
- package/HiChip/HiChip.js +2 -2
- package/HiChip/HiChipSwitch.js +8 -8
- package/HiColoredLabel/HiColoredLabel.js +3 -3
- package/HiDatePicker/Caption.js +2 -2
- package/HiDatePicker/HiDatePicker.js +2 -2
- package/HiDatePicker/HiDatePickerMobile.js +2 -2
- package/HiDatePicker/HiDateRangePicker.js +2 -2
- package/HiDatePicker/HiDateRangeSelector.js +5 -4
- package/HiDatePicker/ListPicker.js +2 -2
- package/HiDatePicker/NavBar.js +2 -2
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +2 -2
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +2 -2
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +3 -3
- package/HiDatePicker/Overlays/Overlay.js +2 -2
- package/HiDatePicker/Overlays/TimePickerOverlay.js +6 -6
- package/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
- package/HiDatePicker/stylesheet.js +1 -1
- package/HiDotsStepper/HiDot.js +2 -2
- package/HiDotsStepper/HiDotsStepper.js +6 -6
- package/HiExpansionPanel/HiExpansionPanel.js +2 -2
- package/HiForm/HiAddressField.js +7 -7
- package/HiForm/HiEmailField.js +3 -3
- package/HiForm/HiFormControl.js +8 -8
- package/HiForm/HiFormLabel.js +3 -3
- package/HiForm/HiInput.js +13 -13
- package/HiForm/HiPasswordField.js +5 -5
- package/HiForm/HiSearchField.js +5 -5
- package/HiForm/HiSlider.js +2 -2
- package/HiForm/HiTextField.js +5 -5
- package/HiForm/HiUpload.js +2 -2
- package/HiForm/HiUploadInput.js +3 -3
- package/HiIcon/HiIcon.js +2 -2
- package/HiIconButton/HiIconButton.js +2 -2
- package/HiLoader/HiLoader.js +2 -2
- package/HiMap/HiMap.js +7 -7
- package/HiMap/HiMapExpand.js +5 -5
- package/HiNotice/HiKPI.js +4 -4
- package/HiPaymentMeans/HiPaymentMeans.js +1 -1
- package/HiPdfReader/HiPdfReader.js +1 -1
- package/HiPin/HiPin.js +2 -2
- package/HiRadio/HiRadio.js +1 -1
- package/HiSelect/HiDynamicSelect.js +7 -7
- package/HiSelect/HiNestedSelect.js +14 -14
- package/HiSelect/HiNestedSelectContent.js +9 -9
- package/HiSelect/HiSelect.js +9 -9
- package/HiSelect/HiSelectContent.js +15 -15
- package/HiSelect/HiSelectInput.js +9 -9
- package/HiSelect/HiSelectMobile.js +2 -2
- package/HiSelect/HiSuggestSelect.js +1 -1
- package/HiSelectableList/HiSelectableList.js +2 -2
- package/HiSelectableList/HiSelectableListHierarchic.js +2 -2
- package/HiSelectableList/HiSelectableListItem.js +6 -6
- package/HiSwitch/HiSwitch.js +2 -2
- package/HiSwitch/HiSwitchState.js +2 -2
- package/HiTable/HiTable.js +5 -5
- package/HiTable/HiTableHeader.js +3 -3
- package/HiTable/HiTableRow.js +7 -6
- package/es/HiAlertModal/HiAlertModal.js +1 -1
- package/es/HiAppBar/HiAppBar.js +1 -1
- package/es/HiBadge/HiBadge.js +1 -1
- package/es/HiBreadcrumb/HiStep.js +1 -1
- package/es/HiBreadcrumb/HiStepConnector.js +3 -3
- package/es/HiBreadcrumb/HiStepContent.js +1 -1
- package/es/HiBreadcrumb/HiStepIcon.js +1 -1
- package/es/HiBreadcrumb/HiStepLabel.js +1 -1
- package/es/HiBreadcrumb/HiStepper.js +1 -1
- package/es/HiButton/HiButton.js +56 -82
- package/es/HiCell/CellAddress.js +1 -1
- package/es/HiCell/CellDate.js +1 -1
- package/es/HiCell/CellIcon.js +1 -1
- package/es/HiCell/CellImage.js +1 -1
- package/es/HiCell/CellNumeric.js +1 -1
- package/es/HiCell/CellPinToAction.js +1 -1
- package/es/HiCell/CellRate.js +1 -1
- package/es/HiCell/CellSentinel.js +1 -1
- package/es/HiCell/CellSentinelScore.js +1 -1
- package/es/HiCell/CellText.js +1 -1
- package/es/HiCell/CellTextStyled.js +1 -1
- package/es/HiCheckbox/HiCheckbox.js +1 -1
- package/es/HiChip/HiChip.js +1 -1
- package/es/HiChip/HiChipSwitch.js +2 -2
- package/es/HiColoredLabel/HiColoredLabel.js +2 -2
- package/es/HiDatePicker/Caption.js +1 -1
- package/es/HiDatePicker/HiDatePicker.js +1 -1
- package/es/HiDatePicker/HiDatePickerMobile.js +1 -1
- package/es/HiDatePicker/HiDateRangePicker.js +1 -1
- package/es/HiDatePicker/HiDateRangeSelector.js +4 -3
- package/es/HiDatePicker/ListPicker.js +1 -1
- package/es/HiDatePicker/NavBar.js +1 -1
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -1
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +1 -1
- package/es/HiDatePicker/Overlays/Overlay.js +1 -1
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +1 -1
- package/es/HiDatePicker/stylesheet.js +1 -1
- package/es/HiDotsStepper/HiDot.js +1 -1
- package/es/HiDotsStepper/HiDotsStepper.js +1 -1
- package/es/HiExpansionPanel/HiExpansionPanel.js +1 -1
- package/es/HiForm/HiFormControl.js +1 -1
- package/es/HiForm/HiFormLabel.js +2 -2
- package/es/HiForm/HiInput.js +1 -1
- package/es/HiForm/HiPasswordField.js +1 -1
- package/es/HiForm/HiSlider.js +1 -1
- package/es/HiForm/HiUpload.js +1 -1
- package/es/HiForm/HiUploadInput.js +2 -2
- package/es/HiIcon/HiIcon.js +1 -1
- package/es/HiIconButton/HiIconButton.js +2 -2
- package/es/HiLoader/HiLoader.js +1 -1
- package/es/HiMap/HiMap.js +1 -1
- package/es/HiMap/HiMapExpand.js +1 -1
- package/es/HiNotice/HiKPI.js +1 -1
- package/es/HiPaymentMeans/HiPaymentMeans.js +1 -1
- package/es/HiPdfReader/HiPdfReader.js +1 -1
- package/es/HiPin/HiPin.js +2 -2
- package/es/HiRadio/HiRadio.js +1 -1
- package/es/HiSelect/HiNestedSelect.js +1 -1
- package/es/HiSelect/HiSelect.js +1 -1
- package/es/HiSelect/HiSelectContent.js +1 -1
- package/es/HiSelect/HiSelectInput.js +1 -1
- package/es/HiSelect/HiSelectMobile.js +1 -1
- package/es/HiSelect/HiSuggestSelect.js +1 -1
- package/es/HiSelectableList/HiSelectableList.js +1 -1
- package/es/HiSelectableList/HiSelectableListHierarchic.js +1 -1
- package/es/HiSelectableList/HiSelectableListItem.js +1 -1
- package/es/HiSwitch/HiSwitch.js +1 -1
- package/es/HiSwitch/HiSwitchState.js +1 -1
- package/es/HiTable/HiTable.js +1 -1
- package/es/HiTable/HiTableHeader.js +2 -2
- package/es/HiTable/HiTableRow.js +3 -2
- package/es/hi-svg-icons/HiAccount.js +1 -1
- package/es/hi-svg-icons/HiActivity.js +1 -1
- package/es/hi-svg-icons/HiAll.js +1 -1
- package/es/hi-svg-icons/HiBilling.js +1 -1
- package/es/hi-svg-icons/HiCatalog.js +1 -1
- package/es/hi-svg-icons/HiCustomer.js +1 -1
- package/es/hi-svg-icons/HiFinance.js +1 -1
- package/es/hi-svg-icons/HiPermission.js +1 -1
- package/es/hi-svg-icons/HiRoute.js +1 -1
- package/es/hi-svg-icons/HiSettlement.js +1 -1
- package/es/hi-svg-icons/HiTransaction.js +1 -1
- package/es/hi-svg-icons/HiUser.js +1 -1
- package/es/hi-svg-icons/HiWidget.js +1 -1
- package/es/index.js +0 -1
- package/es/styles/createMixins.js +4 -4
- package/es/styles/spacing.js +2 -5
- package/es/test-utils/getClasses.js +2 -16
- package/es/withWidth/withWidth.js +3 -3
- package/hi-svg-icons/HiAccount.js +1 -1
- package/hi-svg-icons/HiActivity.js +1 -1
- package/hi-svg-icons/HiAll.js +1 -1
- package/hi-svg-icons/HiBilling.js +1 -1
- package/hi-svg-icons/HiCatalog.js +1 -1
- package/hi-svg-icons/HiCustomer.js +1 -1
- package/hi-svg-icons/HiFinance.js +1 -1
- package/hi-svg-icons/HiPermission.js +1 -1
- package/hi-svg-icons/HiRoute.js +1 -1
- package/hi-svg-icons/HiSettlement.js +1 -1
- package/hi-svg-icons/HiTransaction.js +1 -1
- package/hi-svg-icons/HiUser.js +1 -1
- package/hi-svg-icons/HiWidget.js +1 -1
- package/index.es.js +1 -2
- package/index.js +1 -9
- package/package.json +4 -6
- package/styles/createMixins.js +4 -4
- package/styles/spacing.js +5 -4
- package/test-utils/getClasses.js +5 -29
- package/withWidth/withWidth.js +3 -3
package/es/HiButton/HiButton.js
CHANGED
@@ -4,24 +4,24 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
4
4
|
import React from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
|
-
import {
|
8
|
-
import { fade } from '
|
7
|
+
import { makeStyles } from '@material-ui/core/styles';
|
8
|
+
import { fade } from '@material-ui/core/styles/colorManipulator';
|
9
9
|
import Button from '@material-ui/core/Button';
|
10
|
-
|
10
|
+
const useStyles = makeStyles(theme => ({
|
11
11
|
root: {
|
12
|
-
'&$
|
12
|
+
'&$containedDisabled': {
|
13
13
|
color: theme.palette.neutral.contrastText,
|
14
14
|
backgroundColor: theme.palette.neutral.main
|
15
15
|
}
|
16
16
|
},
|
17
|
-
|
18
|
-
|
17
|
+
containedDisabled: {},
|
18
|
+
textNeutral: {
|
19
19
|
color: theme.palette.neutral.main,
|
20
20
|
'&$disabled': {
|
21
21
|
color: theme.palette.action.disabled
|
22
22
|
}
|
23
23
|
},
|
24
|
-
|
24
|
+
textPositive: {
|
25
25
|
color: theme.palette.positive.main,
|
26
26
|
'&:hover': {
|
27
27
|
backgroundColor: fade(theme.palette.positive.main, theme.palette.action.hoverOpacity),
|
@@ -34,7 +34,7 @@ export const styles = theme => ({
|
|
34
34
|
color: theme.palette.action.disabled
|
35
35
|
}
|
36
36
|
},
|
37
|
-
|
37
|
+
textNegative: {
|
38
38
|
color: theme.palette.negative.main,
|
39
39
|
'&:hover': {
|
40
40
|
backgroundColor: fade(theme.palette.negative.main, theme.palette.action.hoverOpacity),
|
@@ -47,7 +47,7 @@ export const styles = theme => ({
|
|
47
47
|
color: theme.palette.action.disabled
|
48
48
|
}
|
49
49
|
},
|
50
|
-
|
50
|
+
textMiddle: {
|
51
51
|
color: theme.palette.middle.main,
|
52
52
|
'&:hover': {
|
53
53
|
backgroundColor: fade(theme.palette.middle.main, theme.palette.action.hoverOpacity),
|
@@ -61,7 +61,7 @@ export const styles = theme => ({
|
|
61
61
|
}
|
62
62
|
},
|
63
63
|
|
64
|
-
/* Styles applied to the root element if `variant="[contained
|
64
|
+
/* Styles applied to the root element if `variant="[contained ]"` and `color="positive"`. */
|
65
65
|
containedPrimary: {
|
66
66
|
'&$disabled': {
|
67
67
|
color: theme.palette.neutral.contrastText,
|
@@ -84,7 +84,7 @@ export const styles = theme => ({
|
|
84
84
|
}
|
85
85
|
},
|
86
86
|
|
87
|
-
/* Styles applied to the root element if `variant="[contained
|
87
|
+
/* Styles applied to the root element if `variant="[contained]"` and `color="negative"`. */
|
88
88
|
containedNegative: {
|
89
89
|
color: theme.palette.negative.contrastText,
|
90
90
|
backgroundColor: theme.palette.negative.main,
|
@@ -101,7 +101,7 @@ export const styles = theme => ({
|
|
101
101
|
}
|
102
102
|
},
|
103
103
|
|
104
|
-
/* Styles applied to the root element if `variant="[contained
|
104
|
+
/* Styles applied to the root element if `variant="[contained]"` and `color="middle"`. */
|
105
105
|
containedMiddle: {
|
106
106
|
color: theme.palette.middle.contrastText,
|
107
107
|
backgroundColor: theme.palette.middle.main,
|
@@ -118,7 +118,7 @@ export const styles = theme => ({
|
|
118
118
|
}
|
119
119
|
},
|
120
120
|
|
121
|
-
/* Styles applied to the root element if `variant="[contained
|
121
|
+
/* Styles applied to the root element if `variant="[contained]"` and `color="neutral"`. */
|
122
122
|
containedNeutral: {
|
123
123
|
color: theme.palette.neutral.contrastText,
|
124
124
|
backgroundColor: theme.palette.neutral.main,
|
@@ -167,62 +167,49 @@ export const styles = theme => ({
|
|
167
167
|
}
|
168
168
|
},
|
169
169
|
disabled: {}
|
170
|
+
}));
|
171
|
+
const HiButton = React.forwardRef((props, ref) => {
|
172
|
+
const {
|
173
|
+
children,
|
174
|
+
className,
|
175
|
+
color,
|
176
|
+
variant,
|
177
|
+
disabled
|
178
|
+
} = props,
|
179
|
+
other = _objectWithoutProperties(props, ["children", "className", "color", "variant", "disabled"]);
|
180
|
+
|
181
|
+
const classes = useStyles();
|
182
|
+
const hcolor = ['positive', 'negative', 'middle', 'neutral'].includes(color) ? 'inherit' : color;
|
183
|
+
const contained = variant === 'contained';
|
184
|
+
const buttonClassNames = classNames(classes.root, {
|
185
|
+
[classes.containedDisabled]: variant === 'contained' && disabled,
|
186
|
+
[classes.textPositive]: (variant === 'text' || variant === 'outlined') && color === 'positive',
|
187
|
+
[classes.textNegative]: (variant === 'text' || variant === 'outlined') && color === 'negative',
|
188
|
+
[classes.textMiddle]: (variant === 'text' || variant === 'outlined') && color === 'middle',
|
189
|
+
[classes.textNeutral]: (variant === 'text' || variant === 'outlined') && (color === 'default' || color === 'neutral'),
|
190
|
+
[classes.containedPrimary]: contained && color === 'primary',
|
191
|
+
[classes.containedPositive]: contained && color === 'positive',
|
192
|
+
[classes.containedNegative]: contained && color === 'negative',
|
193
|
+
[classes.containedMiddle]: contained && color === 'middle',
|
194
|
+
[classes.containedNeutral]: contained && (color === 'default' || color === 'neutral'),
|
195
|
+
[classes.outlinedPositive]: variant === 'outlined' && color === 'positive',
|
196
|
+
[classes.outlinedNegative]: variant === 'outlined' && color === 'negative',
|
197
|
+
[classes.outlinedMiddle]: variant === 'outlined' && color === 'middle',
|
198
|
+
[classes.outlinedNeutral]: variant === 'outlined' && (color === 'default' || color === 'neutral'),
|
199
|
+
[classes.disabled]: disabled
|
200
|
+
});
|
201
|
+
return React.createElement(Button, _extends({
|
202
|
+
className: className,
|
203
|
+
classes: {
|
204
|
+
root: buttonClassNames
|
205
|
+
},
|
206
|
+
color: hcolor,
|
207
|
+
variant: variant,
|
208
|
+
disabled: disabled,
|
209
|
+
buttonRef: ref
|
210
|
+
}, other), children);
|
170
211
|
});
|
171
|
-
|
172
|
-
class HiButton extends React.Component {
|
173
|
-
render() {
|
174
|
-
const _this$props = this.props,
|
175
|
-
{
|
176
|
-
children,
|
177
|
-
classes,
|
178
|
-
className,
|
179
|
-
color,
|
180
|
-
variant,
|
181
|
-
disabled,
|
182
|
-
buttonRef
|
183
|
-
} = _this$props,
|
184
|
-
other = _objectWithoutProperties(_this$props, ["children", "classes", "className", "color", "variant", "disabled", "buttonRef"]);
|
185
|
-
|
186
|
-
const hcolor = ['positive', 'negative', 'middle', 'neutral'].includes(color) ? 'inherit' : color;
|
187
|
-
const fab = variant === 'fab' || variant === 'extendedFab';
|
188
|
-
const contained = variant === 'contained' || variant === 'raised';
|
189
|
-
const buttonClassNames = classNames(classes.root, {
|
190
|
-
[classes.raisedDisabled]: variant === 'raised' && disabled,
|
191
|
-
[classes.flatPositive]: (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'positive',
|
192
|
-
[classes.flatNegative]: (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'negative',
|
193
|
-
[classes.flatMiddle]: (variant === 'text' || variant === 'flat' || variant === 'outlined') && color === 'middle',
|
194
|
-
[classes.flatNeutral]: (variant === 'text' || variant === 'flat' || variant === 'outlined') && (color === 'default' || color === 'neutral'),
|
195
|
-
[classes.containedPrimary]: (contained || fab) && color === 'primary',
|
196
|
-
[classes.containedPositive]: (contained || fab) && color === 'positive',
|
197
|
-
[classes.containedNegative]: (contained || fab) && color === 'negative',
|
198
|
-
[classes.containedMiddle]: (contained || fab) && color === 'middle',
|
199
|
-
[classes.containedNeutral]: (contained || fab) && (color === 'default' || color === 'neutral'),
|
200
|
-
[classes.outlinedPositive]: variant === 'outlined' && color === 'positive',
|
201
|
-
[classes.outlinedNegative]: variant === 'outlined' && color === 'negative',
|
202
|
-
[classes.outlinedMiddle]: variant === 'outlined' && color === 'middle',
|
203
|
-
[classes.outlinedNeutral]: variant === 'outlined' && (color === 'default' || color === 'neutral'),
|
204
|
-
[classes.disabled]: disabled
|
205
|
-
});
|
206
|
-
return React.createElement(Button, _extends({
|
207
|
-
className: className,
|
208
|
-
classes: {
|
209
|
-
root: buttonClassNames
|
210
|
-
},
|
211
|
-
color: hcolor,
|
212
|
-
variant: variant,
|
213
|
-
disabled: disabled,
|
214
|
-
buttonRef: buttonRef
|
215
|
-
}, other), children);
|
216
|
-
}
|
217
|
-
|
218
|
-
}
|
219
|
-
|
220
212
|
HiButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
221
|
-
/**
|
222
|
-
* Surcharge des classes
|
223
|
-
*/
|
224
|
-
classes: PropTypes.object,
|
225
|
-
|
226
213
|
/**
|
227
214
|
* Surcharge des classes
|
228
215
|
*/
|
@@ -236,23 +223,10 @@ HiButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
236
223
|
/**
|
237
224
|
* The variant to use.
|
238
225
|
*/
|
239
|
-
variant: PropTypes.oneOf(['text', '
|
226
|
+
variant: PropTypes.oneOf(['text', 'outlined', 'contained'])
|
240
227
|
} : {};
|
241
228
|
HiButton.defaultProps = {
|
242
229
|
color: 'neutral',
|
243
230
|
variant: 'text'
|
244
231
|
};
|
245
|
-
|
246
|
-
function forwardRef(props, ref) {
|
247
|
-
return React.createElement(HiButton, _extends({}, props, {
|
248
|
-
buttonRef: ref
|
249
|
-
}));
|
250
|
-
}
|
251
|
-
|
252
|
-
const name = HiButton.displayName || HiButton.name;
|
253
|
-
forwardRef.displayName = name;
|
254
|
-
const HiButtonForwardRef = React.forwardRef(forwardRef);
|
255
|
-
export default withStyles(styles, {
|
256
|
-
hiComponent: true,
|
257
|
-
name: 'HmuiHiButton'
|
258
|
-
})(HiButtonForwardRef);
|
232
|
+
export default HiButton;
|
package/es/HiCell/CellAddress.js
CHANGED
package/es/HiCell/CellDate.js
CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import moment from 'moment';
|
4
4
|
import 'moment/locale/fr';
|
5
|
-
import withStyles from '
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
6
6
|
export const styles = {
|
7
7
|
rightEllipsisSpan: {
|
8
8
|
display: 'inline-block',
|
package/es/HiCell/CellIcon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
|
-
import withStyles from '
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
4
4
|
import HiIcon from '../HiIcon';
|
5
5
|
import HiIconButton from '../HiIconButton';
|
6
6
|
export const styles = {
|
package/es/HiCell/CellImage.js
CHANGED
package/es/HiCell/CellNumeric.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
|
-
import withStyles from '
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
4
4
|
import { formatNumber, formatCurrencyAmount } from '../utils/helpers';
|
5
5
|
export const styles = () => ({
|
6
6
|
wrapper: {
|
package/es/HiCell/CellRate.js
CHANGED
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { ArrowBottomRight, ArrowTopRight, Equal } from 'mdi-material-ui';
|
5
5
|
import { formatRate } from '../utils/helpers';
|
6
|
-
import withStyles from '
|
6
|
+
import { withStyles } from '@material-ui/core/styles';
|
7
7
|
export const styles = theme => ({
|
8
8
|
flexContent: {
|
9
9
|
display: 'flex',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import HiColoredLabel from '../HiColoredLabel';
|
4
|
-
import withStyles from '
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
5
5
|
export const styles = {
|
6
6
|
flexContent: {
|
7
7
|
display: 'flex',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import HiColoredLabel from '../HiColoredLabel';
|
4
|
-
import withStyles from '
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
5
5
|
export const styles = {
|
6
6
|
flexContent: {
|
7
7
|
display: 'flex',
|
package/es/HiCell/CellText.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
|
-
import withStyles from '
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
4
4
|
import HiColoredLabel from '../HiColoredLabel';
|
5
5
|
export const styles = {
|
6
6
|
leftEllipsisSpan: {
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
5
5
|
import React from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import Checkbox from '@material-ui/core/Checkbox';
|
8
|
-
import withStyles from '
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
9
9
|
import HiIcon from '../HiIcon';
|
10
10
|
import classNames from 'classnames';
|
11
11
|
export const styles = theme => ({
|
package/es/HiChip/HiChip.js
CHANGED
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import keycode from 'keycode';
|
6
6
|
import HiIcon from '../HiIcon';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
export const styles = theme => ({
|
9
9
|
root: _objectSpread({}, theme.typography.b3, {
|
10
10
|
display: 'inline-flex',
|
@@ -5,8 +5,8 @@ import PropTypes from 'prop-types';
|
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import keycode from 'keycode/index';
|
7
7
|
import HiIcon from '../HiIcon';
|
8
|
-
import withStyles from '
|
9
|
-
import { emphasize } from '
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
9
|
+
import { emphasize } from '@material-ui/core/styles/colorManipulator';
|
10
10
|
export const styles = theme => ({
|
11
11
|
root: _objectSpread({}, theme.typography.b3, {
|
12
12
|
display: 'inline-flex',
|
@@ -4,9 +4,9 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
|
4
4
|
import React from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
import { capitalize } from '../utils/helpers';
|
9
|
-
import { fade } from '
|
9
|
+
import { fade } from '@material-ui/core/styles/colorManipulator';
|
10
10
|
export const styles = theme => ({
|
11
11
|
root: {
|
12
12
|
display: 'inline-block',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
2
2
|
import React from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
|
-
import withStyles from '
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
5
5
|
import HiButton from '../HiButton';
|
6
6
|
export const styles = theme => ({
|
7
7
|
caption: _objectSpread({
|
@@ -7,7 +7,7 @@ import moment from 'moment-timezone';
|
|
7
7
|
import MomentLocaleUtils from 'react-day-picker/moment';
|
8
8
|
import HiLocaleUtils from './hiLocaleUtils';
|
9
9
|
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
10
|
-
import withStyles from '
|
10
|
+
import { withStyles } from '@material-ui/core/styles';
|
11
11
|
import Caption from './Caption';
|
12
12
|
import Overlay from './Overlays/Overlay';
|
13
13
|
import TimePickerOverlay from './Overlays/TimePickerOverlay';
|
@@ -6,7 +6,7 @@ import HiFormControl from '../HiForm/HiFormControl';
|
|
6
6
|
import moment from 'moment-timezone';
|
7
7
|
import styles from './stylesheet';
|
8
8
|
import classNames from 'classnames';
|
9
|
-
import withStyles from '
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
10
10
|
import HiInput from '../HiForm/HiInput';
|
11
11
|
|
12
12
|
class HiDatePickerMobile extends React.Component {
|
@@ -8,7 +8,7 @@ import MomentLocaleUtils from 'react-day-picker/moment';
|
|
8
8
|
import HiLocaleUtils from './hiLocaleUtils';
|
9
9
|
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
10
10
|
import classNames from 'classnames';
|
11
|
-
import withStyles from '
|
11
|
+
import { withStyles } from '@material-ui/core/styles';
|
12
12
|
import Caption from './Caption';
|
13
13
|
import Overlay from './Overlays/Overlay';
|
14
14
|
import TimePickerOverlay from './Overlays/TimePickerOverlay';
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
5
5
|
import moment from 'moment-timezone';
|
6
6
|
import { findDOMNode } from 'react-dom';
|
7
7
|
import Grid from '@material-ui/core/Grid';
|
8
|
-
import withStyles from '
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
9
9
|
import HiSelectField from '../HiSelect/HiSelectField';
|
10
10
|
import HiDateRangePicker from './HiDateRangePicker';
|
11
11
|
import HiFormControl from '../HiForm/HiFormControl';
|
@@ -152,7 +152,6 @@ export function buildDateRangeOptionByKey(key, t, format, timezoneName) {
|
|
152
152
|
export const styles = () => ({
|
153
153
|
root: {
|
154
154
|
maxWidth: 500,
|
155
|
-
marginLeft: -4,
|
156
155
|
alignItems: 'flex-start'
|
157
156
|
},
|
158
157
|
dateSelect: {
|
@@ -163,7 +162,9 @@ export const styles = () => ({
|
|
163
162
|
width: 'calc(100% + 8px)',
|
164
163
|
marginTop: 0
|
165
164
|
},
|
166
|
-
smSelect: {
|
165
|
+
smSelect: {
|
166
|
+
padding: 4
|
167
|
+
},
|
167
168
|
smRangePicker: {}
|
168
169
|
});
|
169
170
|
|
@@ -4,7 +4,7 @@ import classNames from 'classnames';
|
|
4
4
|
import { Scrollbars } from 'react-custom-scrollbars';
|
5
5
|
import MenuList from '@material-ui/core/MenuList';
|
6
6
|
import MenuItem from '@material-ui/core/MenuItem';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
export const styles = theme => ({
|
9
9
|
itemRoot: {
|
10
10
|
'&:hover': {
|
@@ -5,7 +5,7 @@ import IconButton from '@material-ui/core/IconButton';
|
|
5
5
|
import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
|
6
6
|
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
|
7
7
|
import AccessTime from '@material-ui/icons/AccessTime';
|
8
|
-
import withStyles from '
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
9
9
|
export const styles = theme => ({
|
10
10
|
root: {
|
11
11
|
width: '100%',
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Paper from '@material-ui/core/Paper';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
export const styles = theme => ({
|
9
9
|
paper: {
|
10
10
|
width: '100%',
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Paper from '@material-ui/core/Paper';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
export const styles = theme => ({
|
9
9
|
paper: {
|
10
10
|
width: '100%',
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Paper from '@material-ui/core/Paper';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
export const styles = () => ({
|
9
9
|
paper: {
|
10
10
|
width: '100%',
|
@@ -7,7 +7,7 @@ import IconButton from '@material-ui/core/IconButton';
|
|
7
7
|
import CalendarIcon from 'mdi-material-ui/Calendar';
|
8
8
|
import CustomOverlayLayout from './CustomOverlayLayout';
|
9
9
|
import ListPicker from '../ListPicker';
|
10
|
-
import withStyles from '
|
10
|
+
import { withStyles } from '@material-ui/core/styles';
|
11
11
|
export const styles = theme => ({
|
12
12
|
paper: {
|
13
13
|
position: 'absolute',
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
3
|
import React from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
|
-
import withStyles from '
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
6
6
|
import HiIcon from '../HiIcon';
|
7
7
|
import HiIconButton from '../HiIconButton';
|
8
8
|
export const styles = () => ({
|
@@ -8,7 +8,7 @@ import ExpansionPanel from '@material-ui/core/ExpansionPanel';
|
|
8
8
|
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
|
9
9
|
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
|
10
10
|
import HiIcon from './../HiIcon';
|
11
|
-
import withStyles from '
|
11
|
+
import { withStyles } from '@material-ui/core/styles';
|
12
12
|
import classNames from 'classnames';
|
13
13
|
export const styles = theme => ({
|
14
14
|
summaryContent: {
|
@@ -9,7 +9,7 @@ import Warning from '@material-ui/icons/Warning';
|
|
9
9
|
import Info from '@material-ui/icons/Info';
|
10
10
|
import FormControl from '@material-ui/core/FormControl';
|
11
11
|
import FormHelperText from '@material-ui/core/FormHelperText';
|
12
|
-
import withStyles from '
|
12
|
+
import { withStyles } from '@material-ui/core/styles';
|
13
13
|
import HiFormLabel from './HiFormLabel';
|
14
14
|
import HiIconButton from '../HiIconButton';
|
15
15
|
import { escapeHTML } from '../utils/helpers';
|
package/es/HiForm/HiFormLabel.js
CHANGED
@@ -6,7 +6,7 @@ import React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import InputLabel from '@material-ui/core/InputLabel';
|
8
8
|
import classNames from 'classnames';
|
9
|
-
import withStyles from '
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
10
10
|
export const styles = theme => ({
|
11
11
|
root: _objectSpread({}, theme.typography.h4, {
|
12
12
|
fontWeight: theme.typography.fontWeightRegular,
|
@@ -57,7 +57,7 @@ class HiFormLabel extends React.PureComponent {
|
|
57
57
|
className: className,
|
58
58
|
focused: focused,
|
59
59
|
required: false,
|
60
|
-
|
60
|
+
classes: {
|
61
61
|
root: classes.root,
|
62
62
|
error: classes.error,
|
63
63
|
focused: classes.focused
|
package/es/HiForm/HiInput.js
CHANGED
@@ -6,7 +6,7 @@ import keycode from 'keycode/index';
|
|
6
6
|
import Input from '@material-ui/core/Input';
|
7
7
|
import HiIcon from '../HiIcon';
|
8
8
|
import HiIconButton from '../HiIconButton';
|
9
|
-
import withStyles from '
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
10
10
|
export const styles = theme => ({
|
11
11
|
root: _objectSpread({
|
12
12
|
position: 'relative'
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
5
5
|
import React from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import classNames from 'classnames';
|
8
|
-
import withStyles from '
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
9
9
|
import HiTextField from './HiTextField';
|
10
10
|
export const styles = () => ({
|
11
11
|
inputPassword: {
|
package/es/HiForm/HiSlider.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
2
2
|
import React from 'react';
|
3
|
-
import withStyles from '
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
4
4
|
import HiFormControl from './HiFormControl';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import HiIcon from '../HiIcon/HiIcon';
|
package/es/HiForm/HiUpload.js
CHANGED
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import keycode from 'keycode/index';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
import HiUploadInput from './HiUploadInput';
|
9
9
|
import HiIcon from '../HiIcon';
|
10
10
|
export const styles = theme => ({
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
|
2
2
|
import React from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
|
-
import withStyles from '
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
6
6
|
import HiIconButton from '../HiIconButton';
|
7
7
|
import RemoveRedEye from '@material-ui/icons/RemoveRedEye';
|
8
8
|
import Delete from '@material-ui/icons/Delete';
|
@@ -105,7 +105,7 @@ export const styles = theme => ({
|
|
105
105
|
whiteSpace: 'nowrap',
|
106
106
|
overflow: 'hidden',
|
107
107
|
textOverflow: 'ellipsis',
|
108
|
-
padding: `${theme.spacing
|
108
|
+
padding: `${theme.spacing(2) - 2}px 0 ${theme.spacing(2) - 1}px`,
|
109
109
|
height: 39,
|
110
110
|
display: 'inline-flex',
|
111
111
|
width: '100%',
|
package/es/HiIcon/HiIcon.js
CHANGED
@@ -4,7 +4,7 @@ import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Icon from '@material-ui/core/Icon';
|
7
|
-
import withStyles from '
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
8
8
|
import { camelize, capitalize } from '../utils/helpers';
|
9
9
|
import * as hiSvgIcons from '../hi-svg-icons';
|
10
10
|
import * as mdi from 'mdi-material-ui';
|