@hipay/hipay-material-ui 2.2.0 → 2.3.0-rc.2
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.
- package/CHANGELOG.md +8 -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 +3 -3
- 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 +36 -12
- 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 +9 -8
- 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 +10 -9
- 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 +2 -2
- 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 +34 -9
- 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 +5 -4
- 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 +7 -6
- 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 -2
- package/es/styles/createMixins.js +4 -4
- package/es/styles/spacing.js +2 -5
- package/es/test-utils/getClasses.js +2 -16
- package/es/withMobileDialog/withMobileDialog.js +1 -1
- 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 -3
- package/index.js +1 -17
- package/package.json +4 -5
- package/styles/createMixins.js +4 -4
- package/styles/spacing.js +5 -4
- package/test-utils/getClasses.js +5 -29
- package/withMobileDialog/withMobileDialog.js +1 -1
- package/es/withWidth/index.js +0 -2
- package/es/withWidth/withWidth.js +0 -176
- package/withWidth/index.js +0 -27
- package/withWidth/withWidth.js +0 -229
|
@@ -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: {
|
|
@@ -71,6 +71,9 @@ export const styles = theme => ({
|
|
|
71
71
|
panelDetails: {
|
|
72
72
|
padding: '8px 0 24px 0'
|
|
73
73
|
},
|
|
74
|
+
panelDetailsExited: {
|
|
75
|
+
display: 'none'
|
|
76
|
+
},
|
|
74
77
|
disabledPanel: {
|
|
75
78
|
backgroundColor: '#ffffff',
|
|
76
79
|
opacity: 1
|
|
@@ -88,6 +91,13 @@ var _ref = React.createElement(HiIcon, {
|
|
|
88
91
|
});
|
|
89
92
|
|
|
90
93
|
class HiExpansionPanel extends React.PureComponent {
|
|
94
|
+
constructor(props) {
|
|
95
|
+
super(props);
|
|
96
|
+
this.state = {
|
|
97
|
+
panelDetailsExited: !(props.collapseDisable || props.expanded)
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
render() {
|
|
92
102
|
const _this$props = this.props,
|
|
93
103
|
{
|
|
@@ -111,7 +121,20 @@ class HiExpansionPanel extends React.PureComponent {
|
|
|
111
121
|
disabled: classes.disabledPanel
|
|
112
122
|
},
|
|
113
123
|
expanded: collapseDisable || expanded
|
|
114
|
-
}, props
|
|
124
|
+
}, props, {
|
|
125
|
+
CollapseProps: {
|
|
126
|
+
onExited: () => {
|
|
127
|
+
this.setState({
|
|
128
|
+
panelDetailsExited: true
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
onEnter: () => {
|
|
132
|
+
this.setState({
|
|
133
|
+
panelDetailsExited: false
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}), React.createElement(ExpansionPanelSummary, {
|
|
115
138
|
classes: {
|
|
116
139
|
root: classes.summaryRoot,
|
|
117
140
|
content: classes.summaryContent,
|
|
@@ -129,7 +152,9 @@ class HiExpansionPanel extends React.PureComponent {
|
|
|
129
152
|
}, React.createElement("span", {
|
|
130
153
|
className: classes.secondaryHeadingSpan
|
|
131
154
|
}, !effectiveDisabled ? secondaryHeading : secondaryHeadingDisabled), secondaryHeadingIcon)), !!children && React.createElement(ExpansionPanelDetails, {
|
|
132
|
-
className: classes.panelDetails
|
|
155
|
+
className: classNames(classes.panelDetails, {
|
|
156
|
+
[classes.panelDetailsExited]: this.state.panelDetailsExited
|
|
157
|
+
})
|
|
133
158
|
}, children));
|
|
134
159
|
}
|
|
135
160
|
|
|
@@ -152,6 +177,11 @@ HiExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
152
177
|
*/
|
|
153
178
|
classes: PropTypes.object,
|
|
154
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Désactive l'action d'ouverture et de fermeture du composant
|
|
182
|
+
*/
|
|
183
|
+
collapseDisable: PropTypes.bool,
|
|
184
|
+
|
|
155
185
|
/**
|
|
156
186
|
* Désactivé
|
|
157
187
|
*/
|
|
@@ -175,12 +205,7 @@ HiExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
175
205
|
/**
|
|
176
206
|
* Icone dans le titre secondaire du panel
|
|
177
207
|
*/
|
|
178
|
-
secondaryHeadingIcon: PropTypes.any
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Désactive l'action d'ouverture et de fermeture du composant
|
|
182
|
-
*/
|
|
183
|
-
collapseDisable: PropTypes.bool
|
|
208
|
+
secondaryHeadingIcon: PropTypes.any
|
|
184
209
|
} : {};
|
|
185
210
|
export default withStyles(styles, {
|
|
186
211
|
hiComponent: true,
|
|
@@ -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: {
|
|
@@ -45,14 +45,15 @@ class HiPasswordField extends React.Component {
|
|
|
45
45
|
const endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
|
|
46
46
|
const type = this.state.showText ? 'text' : 'password';
|
|
47
47
|
const inputClassName = classNames({
|
|
48
|
-
[classes.inputPassword]: !this.state.showText
|
|
48
|
+
[classes.inputPassword]: !this.state.showText && otherProps.value !== ""
|
|
49
49
|
});
|
|
50
50
|
return React.createElement(HiTextField, _extends({}, otherProps, {
|
|
51
51
|
type: type,
|
|
52
52
|
onRightIconClick: this.handlePasswordToggle,
|
|
53
|
-
HiInputProps: _objectSpread({
|
|
53
|
+
HiInputProps: _objectSpread({
|
|
54
|
+
placeholder: ''
|
|
55
|
+
}, HiInputProps, {
|
|
54
56
|
endAdornment,
|
|
55
|
-
placeholder: '',
|
|
56
57
|
inputClassName,
|
|
57
58
|
autocomplete: 'on'
|
|
58
59
|
})
|
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';
|
|
@@ -4,8 +4,8 @@ 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 { withStyles } from '
|
|
8
|
-
import { fade } from '
|
|
7
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
8
|
+
import { fade } from '@material-ui/core/styles/colorManipulator';
|
|
9
9
|
import IconButton from '@material-ui/core/IconButton';
|
|
10
10
|
export const styles = theme => ({
|
|
11
11
|
label: {},
|
package/es/HiLoader/HiLoader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import PropagateLoader from 'react-spinners/PropagateLoader';
|
|
4
|
-
import withStyles from '
|
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
5
5
|
|
|
6
6
|
function HiLoader(props) {
|
|
7
7
|
const {
|
package/es/HiMap/HiMap.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 HiButton from '../HiButton';
|
|
5
5
|
import HiIcon from '../HiIcon';
|
|
6
6
|
import HiLoader from '../HiLoader';
|
package/es/HiMap/HiMapExpand.js
CHANGED
|
@@ -5,7 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import ExpansionPanel from '@material-ui/core/ExpansionPanel';
|
|
6
6
|
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
|
|
7
7
|
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
|
|
8
|
-
import { withStyles } from '
|
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
9
9
|
import HiMap from './HiMap';
|
|
10
10
|
import HiIcon from '../HiIcon/HiIcon';
|
|
11
11
|
|
package/es/HiNotice/HiKPI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { withStyles } from '
|
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
5
5
|
import ButtonBase from '@material-ui/core/ButtonBase';
|
|
6
6
|
import Collapse from '@material-ui/core/Collapse';
|
|
7
7
|
export const styles = theme => ({
|
|
@@ -23,25 +23,25 @@ export const styles = theme => ({
|
|
|
23
23
|
},
|
|
24
24
|
error: {
|
|
25
25
|
boxShadow: '0px 2px 4px 0px rgba(213, 0, 0, 0.24)',
|
|
26
|
-
'&:hover': {
|
|
26
|
+
'&:hover, &:focus': {
|
|
27
27
|
boxShadow: '0px 3px 5px 0px rgba(213, 0, 0, 0.32)'
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
warning: {
|
|
31
31
|
boxShadow: '0px 2px 4px 0px rgba(249, 148, 8, 0.32)',
|
|
32
|
-
'&:hover': {
|
|
32
|
+
'&:hover, &:focus': {
|
|
33
33
|
boxShadow: '0px 3px 5px 0px rgba(249, 148, 8, 0.40)'
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
inherit: {
|
|
37
37
|
boxShadow: '0px 1px 3px 0px rgba(0, 0, 0, 0.16)',
|
|
38
|
-
'&:hover': {
|
|
38
|
+
'&:hover, &:focus': {
|
|
39
39
|
boxShadow: '0px 3px 5px 0px rgba(0, 0, 0, 0.24)'
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
positive: {
|
|
43
43
|
boxShadow: '0px 1px 3px 0px rgba(0, 175, 1, 0.36)',
|
|
44
|
-
'&:hover': {
|
|
44
|
+
'&:hover, &:focus': {
|
|
45
45
|
boxShadow: '0px 3px 5px 0px rgba(0, 175, 1, 0.44)'
|
|
46
46
|
}
|
|
47
47
|
},
|
|
@@ -122,7 +122,8 @@ class HiKPI extends React.Component {
|
|
|
122
122
|
className: rootclass,
|
|
123
123
|
onClick: !disable ? this.handleClick(id) : undefined,
|
|
124
124
|
title: tooltip,
|
|
125
|
-
disableRipple: disable
|
|
125
|
+
disableRipple: disable,
|
|
126
|
+
disabled: disable
|
|
126
127
|
}, title && React.createElement("h3", {
|
|
127
128
|
className: classes.title
|
|
128
129
|
}, title), React.createElement("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { withStyles } from '
|
|
4
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
5
5
|
export const styles = theme => ({
|
|
6
6
|
bankCard: {
|
|
7
7
|
position: 'relative',
|
|
@@ -7,7 +7,7 @@ import HiIcon from '../HiIcon'; // import ChevronLeftIcon from '@material-ui/ico
|
|
|
7
7
|
// import ChevronRightIcon from '@material-ui/icons/ChevronRight/';
|
|
8
8
|
|
|
9
9
|
import CircularProgress from '@material-ui/core/CircularProgress/';
|
|
10
|
-
import { withStyles } from '
|
|
10
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
11
11
|
export const styles = theme => ({
|
|
12
12
|
root: {
|
|
13
13
|
position: 'relative'
|
package/es/HiPin/HiPin.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
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
|
export const styles = theme => ({
|
|
7
7
|
root: {
|
|
8
8
|
display: 'inline-block',
|
|
@@ -50,7 +50,7 @@ export const styles = theme => ({
|
|
|
50
50
|
/**
|
|
51
51
|
* HiPins
|
|
52
52
|
*
|
|
53
|
-
* Tiny
|
|
53
|
+
* Tiny contained button used to display subsidiary datas like item count, (...), and throw an onClick event.
|
|
54
54
|
* Used in:
|
|
55
55
|
* - CellStatus to display operations count and to deploy operation rows on click.
|
|
56
56
|
*
|
package/es/HiRadio/HiRadio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @inheritedComponent Radio
|
|
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 Radio from '@material-ui/core/Radio';
|
|
6
6
|
export const styles = theme => ({
|
|
7
7
|
checked: {
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import HiSelect from './HiSelect';
|
|
8
8
|
import HiIcon from '../HiIcon';
|
|
9
|
-
import withStyles from '
|
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
10
10
|
import { foldAccents } from '../utils/helpers';
|
|
11
11
|
/**
|
|
12
12
|
* Return array of final item id in nested list (via props chlidren)
|
package/es/HiSelect/HiSelect.js
CHANGED
|
@@ -10,7 +10,7 @@ import ClickAwayListener from '@material-ui/core/ClickAwayListener';
|
|
|
10
10
|
import HiSelectableList from '../HiSelectableList';
|
|
11
11
|
import HiInput from '../HiForm/HiInput';
|
|
12
12
|
import HiSelectInput from './HiSelectInput';
|
|
13
|
-
import withStyles from '
|
|
13
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
14
14
|
import { foldAccents } from '../utils/helpers';
|
|
15
15
|
import HiIcon from '../HiIcon';
|
|
16
16
|
import keycode from 'keycode';
|
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import Scrollbars from 'react-custom-scrollbars';
|
|
6
6
|
import HiSelectableList from '../HiSelectableList';
|
|
7
7
|
import HiInput from '../HiForm/HiInput';
|
|
8
|
-
import withStyles from '
|
|
8
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
9
9
|
import { getNextItemSelectable, foldAccents } from '../utils/helpers';
|
|
10
10
|
import keycode from 'keycode';
|
|
11
11
|
export const styles = theme => ({
|
|
@@ -6,7 +6,7 @@ import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
|
|
|
6
6
|
import ButtonBase from '@material-ui/core/ButtonBase';
|
|
7
7
|
import Icon from '@material-ui/core/Icon';
|
|
8
8
|
import HiIcon from '../HiIcon';
|
|
9
|
-
import withStyles from '
|
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
10
10
|
import keycode from 'keycode';
|
|
11
11
|
import { isMobile } from 'react-device-detect';
|
|
12
12
|
export const styles = theme => ({
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
|
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
|
export const styles = theme => ({
|
|
7
7
|
root: {
|
|
8
8
|
position: 'absolute',
|
|
@@ -9,7 +9,7 @@ import Paper from '@material-ui/core/Paper';
|
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import HiSelectableList from '../HiSelectableList';
|
|
11
11
|
import HiInput from '../HiForm/HiInput';
|
|
12
|
-
import { withStyles } from '
|
|
12
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
13
13
|
import Popper from '@material-ui/core/Popper';
|
|
14
14
|
import { getNextItemSelectable } from '../utils/helpers';
|
|
15
15
|
import keycode from 'keycode';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import List from '@material-ui/core/List';
|
|
6
|
-
import withStyles from '
|
|
6
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
7
7
|
import HiSelectableListItem from './HiSelectableListItem';
|
|
8
8
|
import { getNextItemSelectable, foldAccents } from '../utils/helpers';
|
|
9
9
|
import keycode from 'keycode';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import List from '@material-ui/core/List';
|
|
6
|
-
import withStyles from '
|
|
6
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
7
7
|
import HiSelectableListItem from './HiSelectableListItem';
|
|
8
8
|
export const styles = () => ({
|
|
9
9
|
root: {}
|
|
@@ -9,7 +9,7 @@ import HiIcon from '../HiIcon';
|
|
|
9
9
|
import HiCheckbox from '../HiCheckbox';
|
|
10
10
|
import HiColoredLabel from '../HiColoredLabel';
|
|
11
11
|
import HiLoader from '../HiLoader';
|
|
12
|
-
import withStyles from '
|
|
12
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
13
13
|
import { escapeHTML } from '../utils/helpers';
|
|
14
14
|
import pure from 'recompose/pure';
|
|
15
15
|
import keycode from 'keycode';
|
package/es/HiSwitch/HiSwitch.js
CHANGED
|
@@ -6,7 +6,7 @@ import classNames from 'classnames';
|
|
|
6
6
|
import SwitchBase from '@material-ui/core/internal/SwitchBase';
|
|
7
7
|
import Check from '@material-ui/icons/Check';
|
|
8
8
|
import { capitalize } from '../utils/helpers';
|
|
9
|
-
import withStyles from '
|
|
9
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
10
10
|
export const styles = theme => ({
|
|
11
11
|
root: {
|
|
12
12
|
display: 'inline-flex',
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import HiButton from '../HiButton';
|
|
5
|
-
import withStyles from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
import { capitalize } from '../utils/helpers';
|
|
7
7
|
export const styles = theme => ({
|
|
8
8
|
root: {
|
package/es/HiTable/HiTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @inheritedComponent Table
|
|
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 Table from '@material-ui/core/Table';
|
|
6
6
|
import HiTableHeader from './HiTableHeader';
|
|
7
7
|
import HiTableBody from './HiTableBody';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @inheritedComponent TableHeader
|
|
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 TableCell from '@material-ui/core/TableCell';
|
|
6
6
|
import TableHead from '@material-ui/core/TableHead';
|
|
7
7
|
import TableRow from '@material-ui/core/TableRow';
|
|
@@ -66,7 +66,7 @@ class HiTableHeader extends React.PureComponent {
|
|
|
66
66
|
key: colId,
|
|
67
67
|
className: classes.cell,
|
|
68
68
|
sortDirection: orderBy === colId ? order : false,
|
|
69
|
-
|
|
69
|
+
align: cst.ALIGN_RIGHT_TYPES.includes(type) || align === 'right' ? 'right' : 'inherit',
|
|
70
70
|
title: headerTooltip
|
|
71
71
|
}, sortable ? React.createElement(TableSortLabel, {
|
|
72
72
|
active: orderBy === colId,
|
package/es/HiTable/HiTableRow.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import keycode from 'keycode';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import withStyles from '
|
|
6
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
7
7
|
import TableRow from '@material-ui/core/TableRow';
|
|
8
8
|
import HiCellBuilder from './HiCellBuilder';
|
|
9
9
|
import * as cst from './constants';
|
|
@@ -23,7 +23,8 @@ export const styles = theme => ({
|
|
|
23
23
|
border: 'none',
|
|
24
24
|
padding: '0px 13px',
|
|
25
25
|
minHeight: '32px',
|
|
26
|
-
maxHeight: '40px'
|
|
26
|
+
maxHeight: '40px',
|
|
27
|
+
fontWeight: theme.typography.fontWeightRegular
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
package/es/hi-svg-icons/HiAll.js
CHANGED
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|
|
@@ -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 pure from 'recompose/pure';
|
|
5
|
-
import { withStyles } from '
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
8
8
|
*/
|