@widergy/energy-ui 3.22.3 → 3.22.4
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 +7 -0
- package/dist/components/Loading/index.js +2 -2
- package/dist/components/UTActionCard/components/AdditionalMessage/index.js +1 -1
- package/dist/components/UTActionCard/components/BottomActions/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/utils.js +2 -2
- package/dist/components/UTActionCard/components/HeaderActions/index.js +5 -4
- package/dist/components/UTActionCard/components/HeaderActions/utils.js +2 -2
- package/dist/components/UTActionCard/index.js +6 -6
- package/dist/components/UTAlert/index.js +2 -2
- package/dist/components/UTAlert/theme.js +5 -4
- package/dist/components/UTAttachment/components/Preview/index.js +3 -3
- package/dist/components/UTAttachment/index.js +7 -5
- package/dist/components/UTAttachment/layout.js +2 -2
- package/dist/components/UTAttachment/utils.js +9 -8
- package/dist/components/UTAttachmentList/components/Preview/index.js +3 -3
- package/dist/components/UTAttachmentList/components/PreviewModal/index.js +3 -3
- package/dist/components/UTAttachmentList/index.js +14 -11
- package/dist/components/UTAttachmentList/layout.js +5 -5
- package/dist/components/UTAttachmentList/theme.js +9 -8
- package/dist/components/UTAttachmentList/utils.js +10 -9
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +1 -1
- package/dist/components/UTAutocomplete/index.js +2 -2
- package/dist/components/UTAutocomplete/theme.js +52 -50
- package/dist/components/UTBadge/index.js +1 -1
- package/dist/components/UTBadge/theme.js +2 -1
- package/dist/components/UTBanner/index.js +1 -1
- package/dist/components/UTBanner/theme.js +2 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +5 -5
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +2 -2
- package/dist/components/UTBarChart/components/Bars/index.js +2 -2
- package/dist/components/UTBarChart/components/Legend/index.js +6 -6
- package/dist/components/UTBarChart/components/Pagination/index.js +2 -1
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +4 -3
- package/dist/components/UTBarChart/components/XAxis/index.js +2 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +2 -1
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +5 -4
- package/dist/components/UTBarChart/index.js +3 -3
- package/dist/components/UTBarChart/theme.js +7 -6
- package/dist/components/UTBarChart/utils.js +26 -20
- package/dist/components/UTBreadcrumbs/index.js +3 -3
- package/dist/components/UTBreadcrumbs/theme.js +2 -1
- package/dist/components/UTButton/index.js +4 -8
- package/dist/components/UTButton/theme.js +18 -14
- package/dist/components/UTButton/utils.js +1 -6
- package/dist/components/UTButtonGroup/index.js +1 -1
- package/dist/components/UTButtonGroup/theme.js +2 -1
- package/dist/components/UTCard/components/UTCardFooter/index.js +2 -2
- package/dist/components/UTCard/index.js +4 -4
- package/dist/components/UTCard/theme.js +1 -1
- package/dist/components/UTCarousel/components/Button/index.js +2 -2
- package/dist/components/UTCarousel/components/Legend/index.js +1 -1
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +5 -5
- package/dist/components/UTCarousel/components/Slider/index.js +9 -8
- package/dist/components/UTCarousel/components/Slider/layout.js +6 -6
- package/dist/components/UTCheckList/index.js +5 -7
- package/dist/components/UTCheckList/theme.js +3 -2
- package/dist/components/UTCheckbox/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicatorTop/index.js +2 -2
- package/dist/components/UTConsumptionBar/index.js +8 -8
- package/dist/components/UTCuit/theme.js +6 -6
- package/dist/components/UTDatePicker/components/Day/index.js +1 -5
- package/dist/components/UTDatePicker/index.js +6 -5
- package/dist/components/UTDatePicker/theme.js +160 -157
- package/dist/components/UTDialog/index.js +8 -8
- package/dist/components/UTDialog/theme.js +2 -1
- package/dist/components/UTEmojiPicker/index.js +6 -11
- package/dist/components/UTEmojiPicker/theme.js +24 -23
- package/dist/components/UTExternalLink/index.js +1 -1
- package/dist/components/UTExternalLink/theme.js +2 -1
- package/dist/components/UTFileInput/layout.js +5 -11
- package/dist/components/UTGoogleAutocomplete/theme.js +2 -1
- package/dist/components/UTHeader/index.js +5 -5
- package/dist/components/UTHeader/theme.js +3 -2
- package/dist/components/UTIcon/theme.js +11 -9
- package/dist/components/UTIconButton/index.js +2 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +6 -6
- package/dist/components/UTImageRadio/index.js +3 -3
- package/dist/components/UTImageRadio/theme.js +14 -13
- package/dist/components/UTLabel/index.js +1 -1
- package/dist/components/UTLabel/theme.js +8 -6
- package/dist/components/UTList/index.js +1 -1
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -2
- package/dist/components/UTMenu/index.js +3 -3
- package/dist/components/UTMenu/theme.js +31 -27
- package/dist/components/UTMenu/utils.js +1 -1
- package/dist/components/UTModal/index.js +5 -9
- package/dist/components/UTModal/theme.js +2 -1
- package/dist/components/UTOnboarding/index.js +24 -16
- package/dist/components/UTOnboarding/theme.js +14 -12
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +1 -4
- package/dist/components/UTPagination/components/Pagination/index.js +3 -3
- package/dist/components/UTPagination/index.js +2 -2
- package/dist/components/UTPagination/theme.js +10 -9
- package/dist/components/UTPanel/versions/V0/index.js +5 -5
- package/dist/components/UTPanel/versions/V1/components/DataItem/index.js +1 -1
- package/dist/components/UTPanel/versions/V1/index.js +6 -8
- package/dist/components/UTPanel/versions/V1/theme.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +2 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +2 -2
- package/dist/components/UTPasswordField/theme.js +6 -5
- package/dist/components/UTPhoneInput/index.js +11 -10
- package/dist/components/UTPhoneInput/theme.js +10 -10
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +2 -2
- package/dist/components/UTPieChart/components/Legend/index.js +4 -4
- package/dist/components/UTPieChart/index.js +5 -5
- package/dist/components/UTProductItem/index.js +3 -3
- package/dist/components/UTProductItem/theme.js +4 -3
- package/dist/components/UTProgressBar/index.js +1 -1
- package/dist/components/UTProgressBar/theme.js +12 -11
- package/dist/components/UTRadioGroup/index.js +5 -11
- package/dist/components/UTRadioGroup/theme.js +17 -17
- package/dist/components/UTRating/components/Circle/index.js +5 -5
- package/dist/components/UTRating/components/Faces/index.js +4 -8
- package/dist/components/UTRating/components/Star/index.js +3 -3
- package/dist/components/UTRating/index.js +2 -2
- package/dist/components/UTRating/theme.js +21 -21
- package/dist/components/UTRipple/Ripple.js +2 -2
- package/dist/components/UTSelect/components/Option/index.js +1 -1
- package/dist/components/UTSelect/index.js +1 -1
- package/dist/components/UTSelect/theme.js +14 -14
- package/dist/components/UTSelectableCard/index.js +5 -9
- package/dist/components/UTSelectableCard/theme.js +20 -19
- package/dist/components/UTSidebar/components/ListOption/index.js +4 -1
- package/dist/components/UTSidebar/components/LogosContainer/index.js +3 -3
- package/dist/components/UTSidebar/components/Option/index.js +9 -31
- package/dist/components/UTSidebar/components/Toggler/index.js +2 -2
- package/dist/components/UTSidebar/index.js +3 -7
- package/dist/components/UTSidebar/theme.js +17 -16
- package/dist/components/UTSkeleton/index.js +3 -2
- package/dist/components/UTStatus/index.js +2 -2
- package/dist/components/UTStepper/components/Connectors/index.js +5 -7
- package/dist/components/UTStepper/components/Step/index.js +6 -16
- package/dist/components/UTStepper/index.js +1 -1
- package/dist/components/UTStepper/theme.js +12 -11
- package/dist/components/UTSwitch/index.js +6 -6
- package/dist/components/UTSwitch/theme.js +2 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +3 -8
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +2 -1
- package/dist/components/UTTable/components/Cell/index.js +2 -2
- package/dist/components/UTTable/components/HeaderCell/index.js +5 -16
- package/dist/components/UTTable/components/PrimaryAction/index.js +1 -1
- package/dist/components/UTTable/components/ResponsiveCell/index.js +4 -4
- package/dist/components/UTTable/components/Status/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +1 -6
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +2 -6
- package/dist/components/UTTable/components/TableFooter/index.js +1 -1
- package/dist/components/UTTable/components/TableHeader/index.js +3 -3
- package/dist/components/UTTable/components/TableRow/index.js +13 -42
- package/dist/components/UTTable/components/TableRow/utils.js +7 -1
- package/dist/components/UTTable/hook.js +4 -1
- package/dist/components/UTTable/index.js +19 -22
- package/dist/components/UTTable/theme.js +33 -32
- package/dist/components/UTTable/utils.js +14 -14
- package/dist/components/UTTabs/components/TooltipTab/index.js +1 -1
- package/dist/components/UTTabs/index.js +7 -7
- package/dist/components/UTTabs/theme.js +2 -2
- package/dist/components/UTTextArea/index.js +6 -6
- package/dist/components/UTTextArea/theme.js +22 -21
- package/dist/components/UTTextInput/index.js +6 -10
- package/dist/components/UTTextInput/theme.js +12 -12
- package/dist/components/UTToggle/components/ToggleOption/index.js +3 -3
- package/dist/components/UTToggle/index.js +2 -2
- package/dist/components/UTToggle/theme.js +2 -2
- package/dist/components/UTTooltip/index.js +2 -2
- package/dist/components/UTTooltip/theme.js +10 -9
- package/dist/components/UTTopbar/components/Notifications/index.js +1 -1
- package/dist/components/UTTopbar/components/UserMenu/index.js +4 -8
- package/dist/components/UTTopbar/index.js +3 -3
- package/dist/components/UTTopbar/theme.js +41 -40
- package/dist/components/UTTouchableWithoutFeedback/index.js +1 -1
- package/dist/components/UTTracker/components/Step/index.js +6 -22
- package/dist/components/UTTracker/index.js +23 -20
- package/dist/components/UTTracker/theme.js +6 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +5 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -3
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +1 -1
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +3 -2
- package/dist/components/UTVirtualizedList/index.js +1 -1
- package/dist/components/UTWizard/index.js +3 -3
- package/dist/components/UTWizard/theme.js +2 -2
- package/dist/components/UTWorkflowContainer/versions/V0/components/ActionButton/index.js +3 -6
- package/dist/components/UTWorkflowContainer/versions/V0/index.js +9 -14
- package/dist/components/UTWorkflowContainer/versions/V0/theme.js +5 -4
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/index.js +8 -8
- package/dist/components/UTWorkflowContainer/versions/V1/index.js +7 -7
- package/dist/components/UTWorkflowContainer/versions/V1/theme.js +7 -6
- package/dist/components/WithGoogleMaps/index.js +2 -2
- package/dist/components/WithTouch/index.js +1 -1
- package/dist/utils/classesUtils.js +2 -2
- package/dist/utils/componentUtils.js +3 -3
- package/dist/utils/shadowUtils.js +1 -1
- package/package.json +3 -2
|
@@ -102,13 +102,13 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
102
102
|
this.setState({
|
|
103
103
|
areaCode
|
|
104
104
|
}, () => {
|
|
105
|
-
this.handleChange(
|
|
105
|
+
this.handleChange("".concat(this.state.areaCode).concat(this.state.phoneNumber));
|
|
106
106
|
});
|
|
107
107
|
} else {
|
|
108
108
|
this.setState({
|
|
109
109
|
areaCode
|
|
110
110
|
}, () => {
|
|
111
|
-
this.handleChange(
|
|
111
|
+
this.handleChange("".concat(this.state.areaCode, "-").concat(this.state.phoneNumber));
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
this.handleCleanPhoneNumber();
|
|
@@ -119,7 +119,7 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
119
119
|
this.setState({
|
|
120
120
|
phoneNumber
|
|
121
121
|
}, () => {
|
|
122
|
-
this.handleChange(
|
|
122
|
+
this.handleChange("".concat(this.state.areaCode, "-").concat(this.state.phoneNumber));
|
|
123
123
|
});
|
|
124
124
|
this.handleValidatePhoneNumber(phoneNumber);
|
|
125
125
|
});
|
|
@@ -172,6 +172,7 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
+
var _field$configuration, _field$configuration2;
|
|
175
176
|
const {
|
|
176
177
|
areaCodeFieldProps,
|
|
177
178
|
phoneNumberFieldProps,
|
|
@@ -194,16 +195,16 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
194
195
|
} = this.state;
|
|
195
196
|
const classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
196
197
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
197
|
-
className:
|
|
198
|
+
className: "".concat(_stylesModule.default.container, " ").concat(this.props.style)
|
|
198
199
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
199
200
|
className: _stylesModule.default.inputContainer
|
|
200
201
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
201
|
-
className:
|
|
202
|
+
className: "".concat(_stylesModule.default.areaCode, " ").concat(_stylesModule.default["".concat(variant, "AreaCode")], " ").concat(classes.areaCodeContainer)
|
|
202
203
|
}, /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
|
|
203
204
|
name: "area_code",
|
|
204
205
|
type: "tel",
|
|
205
|
-
label: field.configuration
|
|
206
|
-
placeholder: field.configuration
|
|
206
|
+
label: ((_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.area_code_label) || _constants.AREA_CODE_LABEL,
|
|
207
|
+
placeholder: ((_field$configuration2 = field.configuration) === null || _field$configuration2 === void 0 ? void 0 : _field$configuration2.area_code_placeholder) || _constants.AREA_CODE_PLACEHOLDER,
|
|
207
208
|
autoComplete: "off",
|
|
208
209
|
fullWidth: true,
|
|
209
210
|
margin: "none",
|
|
@@ -224,12 +225,12 @@ class UTPhoneInput extends _react.PureComponent {
|
|
|
224
225
|
stringContentClassName: classes.tooltip,
|
|
225
226
|
content: city || ' '
|
|
226
227
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
227
|
-
className:
|
|
228
|
+
className: "".concat(_stylesModule.default.icon, " ").concat(_stylesModule.default["".concat(variant, "Icon")], " ").concat(city && _stylesModule.default.showCheckedIcon)
|
|
228
229
|
}, /*#__PURE__*/_react.default.createElement(_CheckCircleOutline.default, {
|
|
229
230
|
tabIndex: "-1",
|
|
230
|
-
className:
|
|
231
|
+
className: "".concat(_stylesModule.default.checkedIcon, " ").concat(classes.areaCodeIcon)
|
|
231
232
|
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
232
|
-
className:
|
|
233
|
+
className: "".concat(_stylesModule.default.phoneNumber, " ").concat(classes.phoneNumberContainer)
|
|
233
234
|
}, /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
|
|
234
235
|
name: "phone_number",
|
|
235
236
|
type: "tel",
|
|
@@ -67,20 +67,20 @@ const retrieveMuiTheme = theme => (0, _styles.createTheme)({
|
|
|
67
67
|
},
|
|
68
68
|
root: {
|
|
69
69
|
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
70
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'border'],
|
|
70
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
71
71
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
72
72
|
},
|
|
73
73
|
'&$focused $notchedOutline': {
|
|
74
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'focused', 'border'],
|
|
74
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'focused', 'border'], "2px solid ".concat(_colorsModule.default.primary)),
|
|
75
75
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
76
76
|
},
|
|
77
77
|
'&$disabled $notchedOutline': {
|
|
78
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'disabled', 'border'],
|
|
78
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'disabled', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
79
79
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
notchedOutline: {
|
|
83
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'unfocused', 'border'],
|
|
83
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'unfocused', 'border'], "1px solid ".concat(theme.Palette.error['05'])),
|
|
84
84
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
85
85
|
}
|
|
86
86
|
},
|
|
@@ -91,22 +91,22 @@ const retrieveMuiTheme = theme => (0, _styles.createTheme)({
|
|
|
91
91
|
},
|
|
92
92
|
underline: {
|
|
93
93
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
94
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'],
|
|
94
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
95
95
|
},
|
|
96
96
|
'&$disabled:before': {
|
|
97
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'],
|
|
97
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
98
98
|
},
|
|
99
99
|
'&:before': {
|
|
100
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'],
|
|
100
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
101
101
|
},
|
|
102
102
|
'&$focused:after': {
|
|
103
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'],
|
|
103
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
104
104
|
},
|
|
105
105
|
'&:after': {
|
|
106
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'],
|
|
106
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
107
107
|
},
|
|
108
108
|
'&$error:after': {
|
|
109
|
-
borderBottom:
|
|
109
|
+
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
110
110
|
borderBottomColor: theme.Palette.error['05']
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -32,7 +32,7 @@ const ArrowLabel = _ref => {
|
|
|
32
32
|
const valueX = segment2X + sign * _constants.TEXT_OFFSET;
|
|
33
33
|
const valueY = segment2Y + _constants.TEXT_OFFSET;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("path", {
|
|
35
|
-
d:
|
|
35
|
+
d: "M".concat(startX, ",").concat(startY, "L").concat(segment1X, ",").concat(segment1Y, "L").concat(segment2X, ",").concat(segment2Y),
|
|
36
36
|
stroke: color,
|
|
37
37
|
fill: "none"
|
|
38
38
|
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
@@ -51,7 +51,7 @@ const ArrowLabel = _ref => {
|
|
|
51
51
|
y: valueY,
|
|
52
52
|
fontSize: "12px",
|
|
53
53
|
textAnchor: textAnchor
|
|
54
|
-
},
|
|
54
|
+
}, "".concat((value * 100).toFixed(2), "%")));
|
|
55
55
|
};
|
|
56
56
|
ArrowLabel.propTypes = {
|
|
57
57
|
midAngle: _propTypes.number,
|
|
@@ -32,7 +32,7 @@ const Legend = _ref => {
|
|
|
32
32
|
legendItem
|
|
33
33
|
} = classes;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
-
className:
|
|
35
|
+
className: "".concat(_stylesModule.default.container, " ").concat(_stylesModule.default[position], " ").concat(legendsContainer)
|
|
36
36
|
}, data.map(_ref2 => {
|
|
37
37
|
let {
|
|
38
38
|
label,
|
|
@@ -40,9 +40,9 @@ const Legend = _ref => {
|
|
|
40
40
|
value
|
|
41
41
|
} = _ref2;
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
-
className:
|
|
43
|
+
className: "".concat(_stylesModule.default.item, " ").concat(legendItem)
|
|
44
44
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className:
|
|
45
|
+
className: "".concat(_stylesModule.default.indicator, " ").concat(_stylesModule.default[type]),
|
|
46
46
|
style: {
|
|
47
47
|
backgroundColor: color,
|
|
48
48
|
width: indicatorWidth,
|
|
@@ -52,7 +52,7 @@ const Legend = _ref => {
|
|
|
52
52
|
className: legendLabel
|
|
53
53
|
}, label), showPercentage && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
54
54
|
className: legendValueLabel
|
|
55
|
-
},
|
|
55
|
+
}, "".concat((value / totalConsumption * 100).toFixed(2), "%"))));
|
|
56
56
|
}));
|
|
57
57
|
};
|
|
58
58
|
Legend.propTypes = {
|
|
@@ -85,9 +85,9 @@ const UTPieChart = _ref => {
|
|
|
85
85
|
width,
|
|
86
86
|
height
|
|
87
87
|
},
|
|
88
|
-
className:
|
|
88
|
+
className: "".concat(_stylesModule.default.container, " ").concat(className, " ").concat(_stylesModule.default["".concat(position.split('-')[0], "Container")])
|
|
89
89
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
-
className:
|
|
90
|
+
className: "".concat(_stylesModule.default["".concat(position.split('-')[0], "LegendWrapper")], " ").concat(_stylesModule.default[position])
|
|
91
91
|
}, withLegend && /*#__PURE__*/_react.default.createElement(_Legend.default, {
|
|
92
92
|
classes: classes,
|
|
93
93
|
data: data,
|
|
@@ -95,13 +95,13 @@ const UTPieChart = _ref => {
|
|
|
95
95
|
showPercentage: showPercentageInLegend,
|
|
96
96
|
totalConsumption: totalSum
|
|
97
97
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
-
className:
|
|
98
|
+
className: "".concat(_stylesModule.default["".concat(position.split('-')[0], "PieWrapper")], " ").concat(classNames.chartContainer),
|
|
99
99
|
ref: ref
|
|
100
100
|
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
101
|
-
viewBox:
|
|
101
|
+
viewBox: "".concat(-containerWidth / 2, " ").concat(-containerHeight / 2, " ").concat(containerWidth, " ").concat(containerHeight),
|
|
102
102
|
width: containerWidth,
|
|
103
103
|
height: containerHeight
|
|
104
|
-
}, gradientGenerator
|
|
104
|
+
}, gradientGenerator === null || gradientGenerator === void 0 ? void 0 : gradientGenerator(), pie.map(slice => /*#__PURE__*/_react.default.createElement("path", {
|
|
105
105
|
d: arcGenerator(slice),
|
|
106
106
|
fill: slice.data.color
|
|
107
107
|
})), outlined && pie.map(slice => /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -58,13 +58,13 @@ const UTProductItem = _ref => {
|
|
|
58
58
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
59
59
|
colorTheme: "light",
|
|
60
60
|
variant: discountSize
|
|
61
|
-
},
|
|
61
|
+
}, "".concat(discount, "% OFF"))), !!previousAmount && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
62
62
|
colorTheme: "gray",
|
|
63
63
|
className: classes.previousAmount
|
|
64
|
-
},
|
|
64
|
+
}, "$ ".concat(previousAmount))), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
65
65
|
weight: "medium",
|
|
66
66
|
variant: "subtitle1"
|
|
67
|
-
},
|
|
67
|
+
}, "$ ".concat(amount)))), /*#__PURE__*/_react.default.createElement("div", {
|
|
68
68
|
className: classes.rightSection
|
|
69
69
|
}, !!selectedQuantity && /*#__PURE__*/_react.default.createElement("div", {
|
|
70
70
|
className: classes.selectedQuantity
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
const retrieveStyle = _ref => {
|
|
8
|
+
var _theme$Palette$action, _theme$Palette$action2;
|
|
8
9
|
let {
|
|
9
10
|
theme
|
|
10
11
|
} = _ref;
|
|
@@ -19,14 +20,14 @@ const retrieveStyle = _ref => {
|
|
|
19
20
|
width: '16px'
|
|
20
21
|
},
|
|
21
22
|
container: {
|
|
22
|
-
borderBottom:
|
|
23
|
+
borderBottom: "1px solid ".concat(theme.Palette.light['04']),
|
|
23
24
|
display: 'flex',
|
|
24
25
|
gridGap: '12px',
|
|
25
26
|
justifyContent: 'space-between',
|
|
26
27
|
paddingBottom: '24px'
|
|
27
28
|
},
|
|
28
29
|
discountChip: {
|
|
29
|
-
backgroundColor: theme.Palette.actions
|
|
30
|
+
backgroundColor: ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.accent['04']) || theme.Palette.accent['04'],
|
|
30
31
|
borderRadius: '4px',
|
|
31
32
|
padding: '4px 8px'
|
|
32
33
|
},
|
|
@@ -55,7 +56,7 @@ const retrieveStyle = _ref => {
|
|
|
55
56
|
gridGap: '12px'
|
|
56
57
|
},
|
|
57
58
|
selectedQuantity: {
|
|
58
|
-
backgroundColor: theme.Palette.actions
|
|
59
|
+
backgroundColor: ((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.neutral['04']) || theme.Palette.neutral['04'],
|
|
59
60
|
borderRadius: '4px',
|
|
60
61
|
padding: '4px 8px'
|
|
61
62
|
}
|
|
@@ -42,7 +42,7 @@ const UTProgressBar = _ref => {
|
|
|
42
42
|
className: classes.label
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
44
44
|
style: customLabelStyle
|
|
45
|
-
}, customLabel ||
|
|
45
|
+
}, customLabel || "".concat(clampedValue, "%"))));
|
|
46
46
|
};
|
|
47
47
|
UTProgressBar.defaultProps = {
|
|
48
48
|
classes: {},
|
|
@@ -7,6 +7,7 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const retrieveStyle = _ref => {
|
|
10
|
+
var _theme$UTProgressBar, _theme$UTProgressBar2, _theme$UTProgressBar3, _theme$UTProgressBar4, _theme$UTProgressBar5, _theme$UTProgressBar6, _theme$UTProgressBar7, _theme$UTProgressBar8, _theme$UTProgressBar9, _theme$UTProgressBar10, _theme$UTProgressBar11, _theme$UTProgressBar12;
|
|
10
11
|
let {
|
|
11
12
|
theme
|
|
12
13
|
} = _ref;
|
|
@@ -14,25 +15,25 @@ const retrieveStyle = _ref => {
|
|
|
14
15
|
container: {
|
|
15
16
|
alignItems: 'center',
|
|
16
17
|
display: 'flex',
|
|
17
|
-
width: theme
|
|
18
|
+
width: theme === null || theme === void 0 || (_theme$UTProgressBar = theme.UTProgressBar) === null || _theme$UTProgressBar === void 0 ? void 0 : _theme$UTProgressBar.width
|
|
18
19
|
},
|
|
19
20
|
root: {
|
|
20
|
-
border: theme
|
|
21
|
-
borderRadius: theme
|
|
22
|
-
height: theme
|
|
23
|
-
width: theme
|
|
21
|
+
border: theme === null || theme === void 0 || (_theme$UTProgressBar2 = theme.UTProgressBar) === null || _theme$UTProgressBar2 === void 0 ? void 0 : _theme$UTProgressBar2.border,
|
|
22
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTProgressBar3 = theme.UTProgressBar) === null || _theme$UTProgressBar3 === void 0 ? void 0 : _theme$UTProgressBar3.borderRadius,
|
|
23
|
+
height: theme === null || theme === void 0 || (_theme$UTProgressBar4 = theme.UTProgressBar) === null || _theme$UTProgressBar4 === void 0 ? void 0 : _theme$UTProgressBar4.height,
|
|
24
|
+
width: (theme === null || theme === void 0 || (_theme$UTProgressBar5 = theme.UTProgressBar) === null || _theme$UTProgressBar5 === void 0 ? void 0 : _theme$UTProgressBar5.width) || '100%'
|
|
24
25
|
},
|
|
25
26
|
colorPrimary: {
|
|
26
|
-
backgroundColor: theme
|
|
27
|
-
borderRadius: theme
|
|
27
|
+
backgroundColor: (theme === null || theme === void 0 || (_theme$UTProgressBar6 = theme.UTProgressBar) === null || _theme$UTProgressBar6 === void 0 || (_theme$UTProgressBar6 = _theme$UTProgressBar6.colorPrimary) === null || _theme$UTProgressBar6 === void 0 ? void 0 : _theme$UTProgressBar6.backgroundColor) || _colorsModule.default.white,
|
|
28
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTProgressBar7 = theme.UTProgressBar) === null || _theme$UTProgressBar7 === void 0 || (_theme$UTProgressBar7 = _theme$UTProgressBar7.colorPrimary) === null || _theme$UTProgressBar7 === void 0 ? void 0 : _theme$UTProgressBar7.borderRadius
|
|
28
29
|
},
|
|
29
30
|
barColorPrimary: {
|
|
30
|
-
background: theme
|
|
31
|
-
borderRadius: theme
|
|
32
|
-
transition: theme
|
|
31
|
+
background: (theme === null || theme === void 0 || (_theme$UTProgressBar8 = theme.UTProgressBar) === null || _theme$UTProgressBar8 === void 0 || (_theme$UTProgressBar8 = _theme$UTProgressBar8.barColorPrimary) === null || _theme$UTProgressBar8 === void 0 ? void 0 : _theme$UTProgressBar8.background) || (theme === null || theme === void 0 || (_theme$UTProgressBar9 = theme.UTProgressBar) === null || _theme$UTProgressBar9 === void 0 || (_theme$UTProgressBar9 = _theme$UTProgressBar9.barColorPrimary) === null || _theme$UTProgressBar9 === void 0 ? void 0 : _theme$UTProgressBar9.backgroundColor) || _colorsModule.default.blue,
|
|
32
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTProgressBar10 = theme.UTProgressBar) === null || _theme$UTProgressBar10 === void 0 || (_theme$UTProgressBar10 = _theme$UTProgressBar10.barColorPrimary) === null || _theme$UTProgressBar10 === void 0 ? void 0 : _theme$UTProgressBar10.borderRadius,
|
|
33
|
+
transition: theme === null || theme === void 0 || (_theme$UTProgressBar11 = theme.UTProgressBar) === null || _theme$UTProgressBar11 === void 0 || (_theme$UTProgressBar11 = _theme$UTProgressBar11.barColorPrimary) === null || _theme$UTProgressBar11 === void 0 ? void 0 : _theme$UTProgressBar11.transition
|
|
33
34
|
},
|
|
34
35
|
label: {
|
|
35
|
-
margin: theme
|
|
36
|
+
margin: (theme === null || theme === void 0 || (_theme$UTProgressBar12 = theme.UTProgressBar) === null || _theme$UTProgressBar12 === void 0 || (_theme$UTProgressBar12 = _theme$UTProgressBar12.label) === null || _theme$UTProgressBar12 === void 0 ? void 0 : _theme$UTProgressBar12.margin) || '0 0 0 10px'
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
};
|
|
@@ -46,11 +46,7 @@ class UTRadioGroup extends _react.PureComponent {
|
|
|
46
46
|
value: option[valueKey],
|
|
47
47
|
checked: isChecked,
|
|
48
48
|
classes: {
|
|
49
|
-
root:
|
|
50
|
-
${classes.root}
|
|
51
|
-
${isChecked && classes.checkedRoot}
|
|
52
|
-
${option.disabled && classes.disabledRoot}
|
|
53
|
-
`,
|
|
49
|
+
root: "\n ".concat(classes.root, "\n ").concat(isChecked && classes.checkedRoot, "\n ").concat(option.disabled && classes.disabledRoot, "\n "),
|
|
54
50
|
label: classes.label
|
|
55
51
|
},
|
|
56
52
|
disabled: disabled || option.disabled,
|
|
@@ -62,17 +58,15 @@ class UTRadioGroup extends _react.PureComponent {
|
|
|
62
58
|
disableRipple: disableRipple,
|
|
63
59
|
classes: {
|
|
64
60
|
root: classes.iconRoot,
|
|
65
|
-
checked:
|
|
61
|
+
checked: "".concat(classes.checked, " ").concat(classes.checkedIconRoot)
|
|
66
62
|
}
|
|
67
63
|
}),
|
|
68
|
-
className:
|
|
69
|
-
${this.props.divider && index === 0 && classes.topDivider}
|
|
70
|
-
${this.props.divider && classes.divider}
|
|
71
|
-
${className}`
|
|
64
|
+
className: "".concat(classes.formControlLabel, " \n ").concat(this.props.divider && index === 0 && classes.topDivider, " \n ").concat(this.props.divider && classes.divider, "\n ").concat(className)
|
|
72
65
|
});
|
|
73
66
|
});
|
|
74
67
|
}
|
|
75
68
|
render() {
|
|
69
|
+
var _field$configuration;
|
|
76
70
|
const {
|
|
77
71
|
classNames = {},
|
|
78
72
|
classes: themeClasses,
|
|
@@ -83,7 +77,7 @@ class UTRadioGroup extends _react.PureComponent {
|
|
|
83
77
|
titleProps,
|
|
84
78
|
withUpperTitle
|
|
85
79
|
} = this.props;
|
|
86
|
-
const shouldShowUpperTitle = field
|
|
80
|
+
const shouldShowUpperTitle = (field === null || field === void 0 || (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.ignore_title) && withUpperTitle;
|
|
87
81
|
const classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
88
82
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, shouldShowUpperTitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
89
83
|
className: classes.title
|
|
@@ -15,31 +15,31 @@ const retrieveStyle = _ref => {
|
|
|
15
15
|
return {
|
|
16
16
|
formControlLabel: {
|
|
17
17
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'backgroundColor'], 'transparent'),
|
|
18
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'color'],
|
|
18
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'color'], "".concat(_colorsModule.default.gray)),
|
|
19
19
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'height'], 36),
|
|
20
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'width'],
|
|
21
|
-
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'margin'],
|
|
20
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'width'], "100%"),
|
|
21
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'margin'], "0px 0px 0px 0px")
|
|
22
22
|
},
|
|
23
23
|
topDivider: {
|
|
24
|
-
borderTop: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'topDivider', 'borderTop'],
|
|
24
|
+
borderTop: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'topDivider', 'borderTop'], "solid 1px ".concat(_colorsModule.default.dividerBase))
|
|
25
25
|
},
|
|
26
26
|
divider: {
|
|
27
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'divider', 'borderBottom'],
|
|
27
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'divider', 'borderBottom'], "solid 1px ".concat(_colorsModule.default.dividerBase))
|
|
28
28
|
},
|
|
29
29
|
root: {
|
|
30
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'fontFamiliy'],
|
|
31
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'backgroundColor'],
|
|
30
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'fontFamiliy'], "Roboto, Helvetica, sans-serif"),
|
|
31
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'backgroundColor'], "".concat(_colorsModule.default.white)),
|
|
32
32
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'height'], 38),
|
|
33
|
-
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'margin'],
|
|
33
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'margin'], "0px 0px 10px 0px"),
|
|
34
34
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'], '100%'),
|
|
35
|
-
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'transition'],
|
|
35
|
+
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'transition'], "all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"),
|
|
36
36
|
willChange: 'left, width',
|
|
37
37
|
'&:hover:not($checkedRoot)': {
|
|
38
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hover', 'backgroundColor'],
|
|
38
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hover', 'backgroundColor'], "transparent"),
|
|
39
39
|
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hoverTransition', 'transition'], 'background-color 0.75s ease')
|
|
40
40
|
},
|
|
41
41
|
'&$checkedRoot': {
|
|
42
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'selectedColor', 'backgroundColor'],
|
|
42
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'selectedColor', 'backgroundColor'], "transparent")
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
disabledRoot: {
|
|
@@ -47,7 +47,7 @@ const retrieveStyle = _ref => {
|
|
|
47
47
|
},
|
|
48
48
|
textColorPrimary: {
|
|
49
49
|
'&$checkedRoot': {
|
|
50
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'textColorPrimary', 'color'],
|
|
50
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'textColorPrimary', 'color'], "".concat(_colorsModule.default.white))
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
checkedRoot: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected'], {})
|
|
@@ -62,19 +62,19 @@ const retrieveMuiTheme = theme => (0, _styles.createTheme)({
|
|
|
62
62
|
MuiTypography: {
|
|
63
63
|
body1: {
|
|
64
64
|
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'], 'Roboto'),
|
|
65
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontSize'],
|
|
66
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'color'],
|
|
65
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontSize'], "14px"),
|
|
66
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'color'], "currentColor"),
|
|
67
67
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'])
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
MuiRadio: {
|
|
71
71
|
colorSecondary: {
|
|
72
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'color'],
|
|
72
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'color'], "".concat(_colorsModule.default.gray)),
|
|
73
73
|
'&$checked': {
|
|
74
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected', 'color'],
|
|
74
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected', 'color'], "".concat(_colorsModule.default.inputPrimary))
|
|
75
75
|
},
|
|
76
76
|
'&$disabled': {
|
|
77
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabled', 'color'],
|
|
77
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabled', 'color'], "".concat(_colorsModule.default.disabledGray))
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
},
|
|
@@ -39,8 +39,8 @@ const Circle = _ref => {
|
|
|
39
39
|
showLabel: isFirst || isLast
|
|
40
40
|
},
|
|
41
41
|
[_constants.BOTTOM_TEXT]: {
|
|
42
|
-
containerClass:
|
|
43
|
-
labelClass:
|
|
42
|
+
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.circleWithTextBottom),
|
|
43
|
+
labelClass: "".concat(isFirst ? _stylesModule.default.labelBottomFirst : isLast && _stylesModule.default.labelBottomLast, " ").concat(classes.label, " ").concat(isFirst ? classes.labelBottomFirst : isLast && classes.labelBottomLast),
|
|
44
44
|
showLabel: isFirst || isLast
|
|
45
45
|
},
|
|
46
46
|
[_constants.NO_TEXT]: {
|
|
@@ -59,7 +59,7 @@ const Circle = _ref => {
|
|
|
59
59
|
borderColor: color
|
|
60
60
|
};
|
|
61
61
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
-
className:
|
|
62
|
+
className: "".concat(_stylesModule.default.container, " ").concat(textVariantToUse.containerClass)
|
|
63
63
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
64
64
|
onFocus: onFocus,
|
|
65
65
|
onClick: handleClick,
|
|
@@ -68,9 +68,9 @@ const Circle = _ref => {
|
|
|
68
68
|
className: _stylesModule.default.icon
|
|
69
69
|
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
70
70
|
style: color && (showPropColor ? avatarSelectedStyle : avatarStyle),
|
|
71
|
-
className:
|
|
71
|
+
className: "".concat(_stylesModule.default.avatar, " ").concat(classes.avatar, " ").concat(showPropColor && _stylesModule.default.selectedAvatar)
|
|
72
72
|
}, value)), textVariantToUse.showLabel && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
73
|
-
className:
|
|
73
|
+
className: "".concat(_stylesModule.default.text, " ").concat(textVariantToUse.labelClass)
|
|
74
74
|
}, name));
|
|
75
75
|
};
|
|
76
76
|
Circle.propTypes = {
|
|
@@ -34,7 +34,7 @@ const Faces = _ref => {
|
|
|
34
34
|
showLabel: isFirst || isLast
|
|
35
35
|
},
|
|
36
36
|
[_constants.BOTTOM_TEXT]: {
|
|
37
|
-
containerClass:
|
|
37
|
+
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.facesWithTextBottom),
|
|
38
38
|
labelClass: classes.label,
|
|
39
39
|
showLabel: true
|
|
40
40
|
},
|
|
@@ -48,14 +48,10 @@ const Faces = _ref => {
|
|
|
48
48
|
const Icon = _constants2.FACES_ICONS[order - 1];
|
|
49
49
|
const IconSelected = _constants2.FACES_ICONS_SELECTED[order - 1];
|
|
50
50
|
return Icon && IconSelected && /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
-
className:
|
|
51
|
+
className: "".concat(_stylesModule.default.container, " ").concat(textVariantToUse.containerClass)
|
|
52
52
|
}, /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
53
53
|
classNames: {
|
|
54
|
-
root:
|
|
55
|
-
${_stylesModule.default.faceButton}
|
|
56
|
-
${classes[_constants2.FACES_CLASSES[order - 1]]}
|
|
57
|
-
${selected && `${classes.faceButtonSelected} ${_stylesModule.default.faceButtonSelected}`}
|
|
58
|
-
`
|
|
54
|
+
root: "\n ".concat(_stylesModule.default.faceButton, "\n ").concat(classes[_constants2.FACES_CLASSES[order - 1]], "\n ").concat(selected && "".concat(classes.faceButtonSelected, " ").concat(_stylesModule.default.faceButtonSelected), "\n ")
|
|
59
55
|
},
|
|
60
56
|
Icon: () => /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
61
57
|
className: _stylesModule.default.faceIcon
|
|
@@ -65,7 +61,7 @@ const Faces = _ref => {
|
|
|
65
61
|
onClick: handleClick,
|
|
66
62
|
variant: "text"
|
|
67
63
|
}), textVariantToUse.showLabel && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
68
|
-
className:
|
|
64
|
+
className: "".concat(_stylesModule.default.text, " ").concat(textVariantToUse.labelClass),
|
|
69
65
|
colorTheme: "gray",
|
|
70
66
|
weight: "semibold"
|
|
71
67
|
}, name));
|
|
@@ -48,7 +48,7 @@ const Star = _ref => {
|
|
|
48
48
|
};
|
|
49
49
|
const textVariantToUse = textVariants[textVariant] || textVariants[_constants.SIDE_TEXT];
|
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
-
className:
|
|
51
|
+
className: "".concat(_stylesModule.default.container, " ").concat(textVariantToUse.containerClass)
|
|
52
52
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
53
53
|
onFocus: onFocus,
|
|
54
54
|
onMouseOver: handleHover,
|
|
@@ -57,11 +57,11 @@ const Star = _ref => {
|
|
|
57
57
|
style: showPropColor ? {
|
|
58
58
|
color
|
|
59
59
|
} : {},
|
|
60
|
-
className:
|
|
60
|
+
className: "".concat(_stylesModule.default.starButton, " ").concat(hovered && _stylesModule.default.starHovered, " ").concat(selected && _stylesModule.default.starsPainted)
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement(_StarRate.default, {
|
|
62
62
|
className: _stylesModule.default.starSize
|
|
63
63
|
})), textVariantToUse.showLabel && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
64
|
-
className:
|
|
64
|
+
className: "".concat(_stylesModule.default.text, " ").concat(classes.label),
|
|
65
65
|
colorTheme: "gray"
|
|
66
66
|
}, name));
|
|
67
67
|
};
|
|
@@ -83,11 +83,11 @@ const UTRatingContainer = _ref => {
|
|
|
83
83
|
}, defaultProps));
|
|
84
84
|
};
|
|
85
85
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, shouldShowUpperTitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
86
|
-
className:
|
|
86
|
+
className: "".concat(classes.title)
|
|
87
87
|
}, titleProps, {
|
|
88
88
|
withMarkdown: true
|
|
89
89
|
}), field.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
-
className:
|
|
90
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
91
91
|
}, options.map(handleMapOptions)));
|
|
92
92
|
};
|
|
93
93
|
UTRatingContainer.propTypes = {
|