@widergy/energy-ui 2.6.1 → 2.7.0
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/styles.module.scss +1 -1
- package/dist/components/Loading/theme.js +3 -3
- package/dist/components/UTAlert/theme.js +5 -5
- package/dist/components/UTAttachment/styles.module.scss +1 -1
- package/dist/components/UTAttachment/utils.js +2 -1
- package/dist/components/UTAutocomplete/theme.js +15 -15
- package/dist/components/UTButton/styles.module.scss +1 -1
- package/dist/components/UTCard/theme.js +4 -4
- package/dist/components/UTCarousel/index.js +2 -2
- package/dist/components/UTCarousel/theme.js +14 -14
- package/dist/components/UTCheckList/theme.js +7 -7
- package/dist/components/UTCheckbox/theme.js +9 -9
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/styles.module.scss +2 -2
- package/dist/components/UTConsumptionBar/styles.module.scss +3 -3
- package/dist/components/UTCuit/theme.js +10 -10
- package/dist/components/UTDatePicker/theme.js +32 -32
- package/dist/components/UTDialog/theme.js +3 -3
- package/dist/components/UTEmojiPicker/styles.module.scss +2 -2
- package/dist/components/UTEmojiPicker/theme.js +2 -2
- package/dist/components/UTFileInput/styles.module.scss +2 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/styles.module.scss +2 -2
- package/dist/components/UTImageRadio/theme.js +7 -7
- package/dist/components/UTLabel/theme.js +2 -2
- package/dist/components/UTMap/components/GoogleMaps/constants.js +3 -3
- package/dist/components/UTPagination/theme.js +3 -3
- package/dist/components/UTPhoneInput/styles.module.scss +2 -2
- package/dist/components/UTPhoneInput/theme.js +17 -17
- package/dist/components/UTProgressBar/theme.js +3 -3
- package/dist/components/UTRadioGroup/theme.js +13 -13
- package/dist/components/UTRating/components/Circle/styles.module.scss +4 -4
- package/dist/components/UTRating/components/Star/styles.module.scss +3 -3
- package/dist/components/UTRating/index.js +2 -2
- package/dist/components/UTRating/styles.module.scss +1 -1
- package/dist/components/UTRating/theme.js +2 -2
- package/dist/components/UTSelect/stylesJS.js +2 -2
- package/dist/components/UTSelect/theme.js +21 -21
- package/dist/components/UTSidebar/styles.module.scss +1 -1
- package/dist/components/UTSidebar/theme.js +11 -11
- package/dist/components/UTSkeleton/styles.module.scss +1 -1
- package/dist/components/UTSwitch/theme.js +15 -15
- package/dist/components/UTTable/components/ActionIcons/styles.module.scss +1 -1
- package/dist/components/UTTable/components/TableRow/styles.module.scss +1 -1
- package/dist/components/UTTable/styles.module.scss +2 -2
- package/dist/components/UTTable/theme.js +17 -17
- package/dist/components/UTTabs/theme.js +7 -7
- package/dist/components/UTTextArea/theme.js +2 -2
- package/dist/components/UTTextInput/styles.module.scss +1 -1
- package/dist/components/UTTextInput/theme.js +16 -16
- package/dist/components/UTToggle/theme.js +3 -3
- package/dist/components/UTTooltip/styles.module.scss +1 -1
- package/dist/components/UTTopbar/theme.js +2 -2
- package/dist/components/UTWorkflowContainer/theme.js +3 -3
- package/package.json +4 -4
- package/dist/scss/variables/_fontFamilies.scss +0 -1
- /package/dist/scss/variables/{_colors.scss → colors.module.scss} +0 -0
- /package/dist/scss/variables/{_fontSizes.scss → fontSizes.module.scss} +0 -0
- /package/dist/scss/variables/{_mediaQueries.scss → mediaQueries.module.scss} +0 -0
- /package/dist/scss/variables/{_sizes.scss → sizes.module.scss} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.7.0](https://github.com/widergy/energy-ui/compare/v2.6.1...v2.7.0) (2023-09-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* node upgrade ([#373](https://github.com/widergy/energy-ui/issues/373)) ([0dab423](https://github.com/widergy/energy-ui/commit/0dab423890d25ab7db9b06276d00dd9da07db334))
|
|
7
|
+
|
|
1
8
|
## [2.6.1](https://github.com/widergy/energy-ui/compare/v2.6.0...v2.6.1) (2023-09-01)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
|
-
var
|
|
8
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
var retrieveStyle = function retrieveStyle(_ref) {
|
|
11
11
|
var theme = _ref.theme;
|
|
12
12
|
return {
|
|
13
13
|
base: {
|
|
14
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'color'],
|
|
14
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'color'], _colorsModule.default.loadingBase)
|
|
15
15
|
},
|
|
16
16
|
text: {
|
|
17
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'text', 'color'],
|
|
17
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'text', 'color'], _colorsModule.default.black),
|
|
18
18
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'text', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium']))
|
|
19
19
|
}
|
|
20
20
|
};
|
|
@@ -6,23 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
var
|
|
9
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
var retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var _theme$Palette, _theme$Palette2, _theme$Palette3, _theme$Palette4;
|
|
13
13
|
var theme = _ref.theme;
|
|
14
14
|
return {
|
|
15
15
|
error: {
|
|
16
|
-
backgroundColor: ((_theme$Palette = theme.Palette) === null || _theme$Palette === void 0 ? void 0 : _theme$Palette.error['04']) ||
|
|
16
|
+
backgroundColor: ((_theme$Palette = theme.Palette) === null || _theme$Palette === void 0 ? void 0 : _theme$Palette.error['04']) || _colorsModule.default.notificationError
|
|
17
17
|
},
|
|
18
18
|
info: {
|
|
19
|
-
backgroundColor: ((_theme$Palette2 = theme.Palette) === null || _theme$Palette2 === void 0 ? void 0 : _theme$Palette2.information['04']) ||
|
|
19
|
+
backgroundColor: ((_theme$Palette2 = theme.Palette) === null || _theme$Palette2 === void 0 ? void 0 : _theme$Palette2.information['04']) || _colorsModule.default.notificationInfo
|
|
20
20
|
},
|
|
21
21
|
success: {
|
|
22
|
-
backgroundColor: ((_theme$Palette3 = theme.Palette) === null || _theme$Palette3 === void 0 ? void 0 : _theme$Palette3.success['04']) ||
|
|
22
|
+
backgroundColor: ((_theme$Palette3 = theme.Palette) === null || _theme$Palette3 === void 0 ? void 0 : _theme$Palette3.success['04']) || _colorsModule.default.notificationSuccess
|
|
23
23
|
},
|
|
24
24
|
warning: {
|
|
25
|
-
backgroundColor: ((_theme$Palette4 = theme.Palette) === null || _theme$Palette4 === void 0 ? void 0 : _theme$Palette4.warning['04']) ||
|
|
25
|
+
backgroundColor: ((_theme$Palette4 = theme.Palette) === null || _theme$Palette4 === void 0 ? void 0 : _theme$Palette4.warning['04']) || _colorsModule.default.notificationWarning
|
|
26
26
|
},
|
|
27
27
|
action: {
|
|
28
28
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTAlert', 'action', 'padding']),
|
|
@@ -29,7 +29,8 @@ var getImage = /*#__PURE__*/function () {
|
|
|
29
29
|
return function getImage(_x) {
|
|
30
30
|
return _ref.apply(this, arguments);
|
|
31
31
|
};
|
|
32
|
-
}();
|
|
32
|
+
}(); // eslint-disable-line no-console
|
|
33
|
+
|
|
33
34
|
var getBlobFromUrl = /*#__PURE__*/function () {
|
|
34
35
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(imageUrl, callback) {
|
|
35
36
|
var response;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _styles = require("@material-ui/core/styles");
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
var
|
|
9
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
var _classesUtils = require("../../utils/classesUtils");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var retrieveStyle = function retrieveStyle(_ref) {
|
|
@@ -45,22 +45,22 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
45
45
|
},
|
|
46
46
|
underline: {
|
|
47
47
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
48
|
-
borderBottom: ((_theme$UTTextInput9 = theme.UTTextInput) === null || _theme$UTTextInput9 === void 0 || (_theme$UTTextInput9 = _theme$UTTextInput9.underline) === null || _theme$UTTextInput9 === void 0 || (_theme$UTTextInput9 = _theme$UTTextInput9.hover) === null || _theme$UTTextInput9 === void 0 ? void 0 : _theme$UTTextInput9.borderBottom) || "1px solid ".concat(
|
|
48
|
+
borderBottom: ((_theme$UTTextInput9 = theme.UTTextInput) === null || _theme$UTTextInput9 === void 0 || (_theme$UTTextInput9 = _theme$UTTextInput9.underline) === null || _theme$UTTextInput9 === void 0 || (_theme$UTTextInput9 = _theme$UTTextInput9.hover) === null || _theme$UTTextInput9 === void 0 ? void 0 : _theme$UTTextInput9.borderBottom) || "1px solid ".concat(_colorsModule.default.gray)
|
|
49
49
|
},
|
|
50
50
|
'&:hover:not($disabled):before': {
|
|
51
|
-
borderBottom: ((_theme$UTTextInput10 = theme.UTTextInput) === null || _theme$UTTextInput10 === void 0 || (_theme$UTTextInput10 = _theme$UTTextInput10.underline) === null || _theme$UTTextInput10 === void 0 || (_theme$UTTextInput10 = _theme$UTTextInput10.hover) === null || _theme$UTTextInput10 === void 0 ? void 0 : _theme$UTTextInput10.borderBottom) || "1px solid ".concat(
|
|
51
|
+
borderBottom: ((_theme$UTTextInput10 = theme.UTTextInput) === null || _theme$UTTextInput10 === void 0 || (_theme$UTTextInput10 = _theme$UTTextInput10.underline) === null || _theme$UTTextInput10 === void 0 || (_theme$UTTextInput10 = _theme$UTTextInput10.hover) === null || _theme$UTTextInput10 === void 0 ? void 0 : _theme$UTTextInput10.borderBottom) || "1px solid ".concat(_colorsModule.default.gray)
|
|
52
52
|
},
|
|
53
53
|
'&$disabled:before': {
|
|
54
|
-
borderBottom: ((_theme$UTTextInput11 = theme.UTTextInput) === null || _theme$UTTextInput11 === void 0 || (_theme$UTTextInput11 = _theme$UTTextInput11.underline) === null || _theme$UTTextInput11 === void 0 || (_theme$UTTextInput11 = _theme$UTTextInput11.disabled) === null || _theme$UTTextInput11 === void 0 ? void 0 : _theme$UTTextInput11.borderBottom) || "1px solid ".concat(
|
|
54
|
+
borderBottom: ((_theme$UTTextInput11 = theme.UTTextInput) === null || _theme$UTTextInput11 === void 0 || (_theme$UTTextInput11 = _theme$UTTextInput11.underline) === null || _theme$UTTextInput11 === void 0 || (_theme$UTTextInput11 = _theme$UTTextInput11.disabled) === null || _theme$UTTextInput11 === void 0 ? void 0 : _theme$UTTextInput11.borderBottom) || "1px solid ".concat(_colorsModule.default.gray)
|
|
55
55
|
},
|
|
56
56
|
'&:before': {
|
|
57
|
-
borderBottom: ((_theme$UTTextInput12 = theme.UTTextInput) === null || _theme$UTTextInput12 === void 0 || (_theme$UTTextInput12 = _theme$UTTextInput12.underline) === null || _theme$UTTextInput12 === void 0 || (_theme$UTTextInput12 = _theme$UTTextInput12.unfocused) === null || _theme$UTTextInput12 === void 0 ? void 0 : _theme$UTTextInput12.borderBottom) || "1px solid ".concat(
|
|
57
|
+
borderBottom: ((_theme$UTTextInput12 = theme.UTTextInput) === null || _theme$UTTextInput12 === void 0 || (_theme$UTTextInput12 = _theme$UTTextInput12.underline) === null || _theme$UTTextInput12 === void 0 || (_theme$UTTextInput12 = _theme$UTTextInput12.unfocused) === null || _theme$UTTextInput12 === void 0 ? void 0 : _theme$UTTextInput12.borderBottom) || "1px solid ".concat(_colorsModule.default.gray)
|
|
58
58
|
},
|
|
59
59
|
'&$focused:after': {
|
|
60
|
-
borderBottom: ((_theme$UTTextInput13 = theme.UTTextInput) === null || _theme$UTTextInput13 === void 0 || (_theme$UTTextInput13 = _theme$UTTextInput13.underline) === null || _theme$UTTextInput13 === void 0 || (_theme$UTTextInput13 = _theme$UTTextInput13.focused) === null || _theme$UTTextInput13 === void 0 ? void 0 : _theme$UTTextInput13.borderBottom) || "2px solid ".concat(
|
|
60
|
+
borderBottom: ((_theme$UTTextInput13 = theme.UTTextInput) === null || _theme$UTTextInput13 === void 0 || (_theme$UTTextInput13 = _theme$UTTextInput13.underline) === null || _theme$UTTextInput13 === void 0 || (_theme$UTTextInput13 = _theme$UTTextInput13.focused) === null || _theme$UTTextInput13 === void 0 ? void 0 : _theme$UTTextInput13.borderBottom) || "2px solid ".concat(_colorsModule.default.primary)
|
|
61
61
|
},
|
|
62
62
|
'&:after': {
|
|
63
|
-
borderBottom: ((_theme$UTTextInput14 = theme.UTTextInput) === null || _theme$UTTextInput14 === void 0 || (_theme$UTTextInput14 = _theme$UTTextInput14.underline) === null || _theme$UTTextInput14 === void 0 || (_theme$UTTextInput14 = _theme$UTTextInput14.base) === null || _theme$UTTextInput14 === void 0 ? void 0 : _theme$UTTextInput14.borderBottom) || "2px solid ".concat(
|
|
63
|
+
borderBottom: ((_theme$UTTextInput14 = theme.UTTextInput) === null || _theme$UTTextInput14 === void 0 || (_theme$UTTextInput14 = _theme$UTTextInput14.underline) === null || _theme$UTTextInput14 === void 0 || (_theme$UTTextInput14 = _theme$UTTextInput14.base) === null || _theme$UTTextInput14 === void 0 ? void 0 : _theme$UTTextInput14.borderBottom) || "2px solid ".concat(_colorsModule.default.primary)
|
|
64
64
|
},
|
|
65
65
|
'&$error:after': {
|
|
66
66
|
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
@@ -75,21 +75,21 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
75
75
|
},
|
|
76
76
|
root: {
|
|
77
77
|
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
78
|
-
border: ((_theme$UTTextInput17 = theme.UTTextInput) === null || _theme$UTTextInput17 === void 0 || (_theme$UTTextInput17 = _theme$UTTextInput17.notchedOutline) === null || _theme$UTTextInput17 === void 0 || (_theme$UTTextInput17 = _theme$UTTextInput17.hover) === null || _theme$UTTextInput17 === void 0 ? void 0 : _theme$UTTextInput17.border) || "1px solid ".concat(
|
|
78
|
+
border: ((_theme$UTTextInput17 = theme.UTTextInput) === null || _theme$UTTextInput17 === void 0 || (_theme$UTTextInput17 = _theme$UTTextInput17.notchedOutline) === null || _theme$UTTextInput17 === void 0 || (_theme$UTTextInput17 = _theme$UTTextInput17.hover) === null || _theme$UTTextInput17 === void 0 ? void 0 : _theme$UTTextInput17.border) || "1px solid ".concat(_colorsModule.default.gray),
|
|
79
79
|
borderColor: (_theme$UTTextInput18 = theme.UTTextInput) === null || _theme$UTTextInput18 === void 0 || (_theme$UTTextInput18 = _theme$UTTextInput18.notchedOutline) === null || _theme$UTTextInput18 === void 0 || (_theme$UTTextInput18 = _theme$UTTextInput18.hover) === null || _theme$UTTextInput18 === void 0 ? void 0 : _theme$UTTextInput18.borderColor
|
|
80
80
|
},
|
|
81
81
|
'&$focused $notchedOutline': {
|
|
82
|
-
border: ((_theme$UTTextInput19 = theme.UTTextInput) === null || _theme$UTTextInput19 === void 0 || (_theme$UTTextInput19 = _theme$UTTextInput19.notchedOutline) === null || _theme$UTTextInput19 === void 0 || (_theme$UTTextInput19 = _theme$UTTextInput19.focused) === null || _theme$UTTextInput19 === void 0 ? void 0 : _theme$UTTextInput19.border) || "2px solid ".concat(
|
|
82
|
+
border: ((_theme$UTTextInput19 = theme.UTTextInput) === null || _theme$UTTextInput19 === void 0 || (_theme$UTTextInput19 = _theme$UTTextInput19.notchedOutline) === null || _theme$UTTextInput19 === void 0 || (_theme$UTTextInput19 = _theme$UTTextInput19.focused) === null || _theme$UTTextInput19 === void 0 ? void 0 : _theme$UTTextInput19.border) || "2px solid ".concat(_colorsModule.default.primary),
|
|
83
83
|
borderColor: (_theme$UTTextInput20 = theme.UTTextInput) === null || _theme$UTTextInput20 === void 0 || (_theme$UTTextInput20 = _theme$UTTextInput20.notchedOutline) === null || _theme$UTTextInput20 === void 0 || (_theme$UTTextInput20 = _theme$UTTextInput20.hover) === null || _theme$UTTextInput20 === void 0 ? void 0 : _theme$UTTextInput20.borderColor
|
|
84
84
|
},
|
|
85
85
|
'&$disabled $notchedOutline': {
|
|
86
|
-
border: ((_theme$UTTextInput21 = theme.UTTextInput) === null || _theme$UTTextInput21 === void 0 || (_theme$UTTextInput21 = _theme$UTTextInput21.notchedOutline) === null || _theme$UTTextInput21 === void 0 || (_theme$UTTextInput21 = _theme$UTTextInput21.disabled) === null || _theme$UTTextInput21 === void 0 ? void 0 : _theme$UTTextInput21.border) || "1px solid ".concat(
|
|
86
|
+
border: ((_theme$UTTextInput21 = theme.UTTextInput) === null || _theme$UTTextInput21 === void 0 || (_theme$UTTextInput21 = _theme$UTTextInput21.notchedOutline) === null || _theme$UTTextInput21 === void 0 || (_theme$UTTextInput21 = _theme$UTTextInput21.disabled) === null || _theme$UTTextInput21 === void 0 ? void 0 : _theme$UTTextInput21.border) || "1px solid ".concat(_colorsModule.default.gray),
|
|
87
87
|
borderColor: (_theme$UTTextInput22 = theme.UTTextInput) === null || _theme$UTTextInput22 === void 0 || (_theme$UTTextInput22 = _theme$UTTextInput22.notchedOutline) === null || _theme$UTTextInput22 === void 0 || (_theme$UTTextInput22 = _theme$UTTextInput22.hover) === null || _theme$UTTextInput22 === void 0 ? void 0 : _theme$UTTextInput22.borderColor
|
|
88
88
|
},
|
|
89
89
|
padding: (_theme$UTTextInput23 = theme.UTTextInput) === null || _theme$UTTextInput23 === void 0 || (_theme$UTTextInput23 = _theme$UTTextInput23.notchedOutline) === null || _theme$UTTextInput23 === void 0 ? void 0 : _theme$UTTextInput23.padding
|
|
90
90
|
},
|
|
91
91
|
notchedOutline: {
|
|
92
|
-
border: ((_theme$UTTextInput24 = theme.UTTextInput) === null || _theme$UTTextInput24 === void 0 || (_theme$UTTextInput24 = _theme$UTTextInput24.notchedOutline) === null || _theme$UTTextInput24 === void 0 || (_theme$UTTextInput24 = _theme$UTTextInput24.unfocused) === null || _theme$UTTextInput24 === void 0 ? void 0 : _theme$UTTextInput24.border) || "1px solid ".concat(
|
|
92
|
+
border: ((_theme$UTTextInput24 = theme.UTTextInput) === null || _theme$UTTextInput24 === void 0 || (_theme$UTTextInput24 = _theme$UTTextInput24.notchedOutline) === null || _theme$UTTextInput24 === void 0 || (_theme$UTTextInput24 = _theme$UTTextInput24.unfocused) === null || _theme$UTTextInput24 === void 0 ? void 0 : _theme$UTTextInput24.border) || "1px solid ".concat(_colorsModule.default.error),
|
|
93
93
|
borderColor: (_theme$UTTextInput25 = theme.UTTextInput) === null || _theme$UTTextInput25 === void 0 || (_theme$UTTextInput25 = _theme$UTTextInput25.notchedOutline) === null || _theme$UTTextInput25 === void 0 || (_theme$UTTextInput25 = _theme$UTTextInput25.hover) === null || _theme$UTTextInput25 === void 0 ? void 0 : _theme$UTTextInput25.borderColor,
|
|
94
94
|
borderRadius: (_theme$UTTextInput26 = theme.UTTextInput) === null || _theme$UTTextInput26 === void 0 || (_theme$UTTextInput26 = _theme$UTTextInput26.notchedOutline) === null || _theme$UTTextInput26 === void 0 ? void 0 : _theme$UTTextInput26.borderRadius
|
|
95
95
|
}
|
|
@@ -105,12 +105,12 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
105
105
|
root: {
|
|
106
106
|
color: (_theme$UTTextInput27 = theme.UTTextInput) === null || _theme$UTTextInput27 === void 0 || (_theme$UTTextInput27 = _theme$UTTextInput27.formLabel) === null || _theme$UTTextInput27 === void 0 ? void 0 : _theme$UTTextInput27.color,
|
|
107
107
|
'&$error': {
|
|
108
|
-
color: ((_theme$UTTextInput28 = theme.UTTextInput) === null || _theme$UTTextInput28 === void 0 || (_theme$UTTextInput28 = _theme$UTTextInput28.formLabel) === null || _theme$UTTextInput28 === void 0 ? void 0 : _theme$UTTextInput28.errorColor) ||
|
|
108
|
+
color: ((_theme$UTTextInput28 = theme.UTTextInput) === null || _theme$UTTextInput28 === void 0 || (_theme$UTTextInput28 = _theme$UTTextInput28.formLabel) === null || _theme$UTTextInput28 === void 0 ? void 0 : _theme$UTTextInput28.errorColor) || _colorsModule.default.gray
|
|
109
109
|
},
|
|
110
110
|
'&$focused': {
|
|
111
|
-
color: ((_theme$UTTextInput29 = theme.UTTextInput) === null || _theme$UTTextInput29 === void 0 || (_theme$UTTextInput29 = _theme$UTTextInput29.formLabel) === null || _theme$UTTextInput29 === void 0 ? void 0 : _theme$UTTextInput29.focusedColor) ||
|
|
111
|
+
color: ((_theme$UTTextInput29 = theme.UTTextInput) === null || _theme$UTTextInput29 === void 0 || (_theme$UTTextInput29 = _theme$UTTextInput29.formLabel) === null || _theme$UTTextInput29 === void 0 ? void 0 : _theme$UTTextInput29.focusedColor) || _colorsModule.default.primary,
|
|
112
112
|
'&$error': {
|
|
113
|
-
color: ((_theme$UTTextInput30 = theme.UTTextInput) === null || _theme$UTTextInput30 === void 0 || (_theme$UTTextInput30 = _theme$UTTextInput30.formLabel) === null || _theme$UTTextInput30 === void 0 ? void 0 : _theme$UTTextInput30.focusedErrorColor) ||
|
|
113
|
+
color: ((_theme$UTTextInput30 = theme.UTTextInput) === null || _theme$UTTextInput30 === void 0 || (_theme$UTTextInput30 = _theme$UTTextInput30.formLabel) === null || _theme$UTTextInput30 === void 0 ? void 0 : _theme$UTTextInput30.focusedErrorColor) || _colorsModule.default.error
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
fontSize: ((_theme$UTTextInput31 = theme.UTTextInput) === null || _theme$UTTextInput31 === void 0 ? void 0 : _theme$UTTextInput31.fontSize) || ((_theme$Fonts4 = theme.Fonts) === null || _theme$Fonts4 === void 0 ? void 0 : _theme$Fonts4.medium) || 14
|
|
@@ -119,7 +119,7 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
119
119
|
MuiFormHelperText: {
|
|
120
120
|
root: {
|
|
121
121
|
fontSize: ((_theme$UTTextInput32 = theme.UTTextInput) === null || _theme$UTTextInput32 === void 0 || (_theme$UTTextInput32 = _theme$UTTextInput32.helperText) === null || _theme$UTTextInput32 === void 0 ? void 0 : _theme$UTTextInput32.fontSize) || 12,
|
|
122
|
-
color: ((_theme$UTTextInput33 = theme.UTTextInput) === null || _theme$UTTextInput33 === void 0 || (_theme$UTTextInput33 = _theme$UTTextInput33.helperText) === null || _theme$UTTextInput33 === void 0 ? void 0 : _theme$UTTextInput33.color) ||
|
|
122
|
+
color: ((_theme$UTTextInput33 = theme.UTTextInput) === null || _theme$UTTextInput33 === void 0 || (_theme$UTTextInput33 = _theme$UTTextInput33.helperText) === null || _theme$UTTextInput33 === void 0 ? void 0 : _theme$UTTextInput33.color) || _colorsModule.default.error,
|
|
123
123
|
letterSpacing: ((_theme$UTTextInput34 = theme.UTTextInput) === null || _theme$UTTextInput34 === void 0 || (_theme$UTTextInput34 = _theme$UTTextInput34.helperText) === null || _theme$UTTextInput34 === void 0 ? void 0 : _theme$UTTextInput34.letterSpacing) || 'normal'
|
|
124
124
|
}
|
|
125
125
|
},
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
|
-
var
|
|
8
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -18,8 +18,8 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
18
18
|
base: _defineProperty({
|
|
19
19
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'border'], 0),
|
|
20
20
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'borderRadius'], '4px'),
|
|
21
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'backgroundColor'],
|
|
22
|
-
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'boxShadow'], "1px 1px 3px 0 ".concat(
|
|
21
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'backgroundColor'], _colorsModule.default.cardBackground),
|
|
22
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'base', 'boxShadow'], "1px 1px 3px 0 ".concat(_colorsModule.default.cardShadow1, ", -0.5px -0.5px 2px 0 ").concat(_colorsModule.default.cardShadow2)),
|
|
23
23
|
boxSizing: 'border-box',
|
|
24
24
|
display: 'flex',
|
|
25
25
|
overflow: 'hidden',
|
|
@@ -29,7 +29,7 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
29
29
|
}),
|
|
30
30
|
flat: {
|
|
31
31
|
boxShadow: 'none',
|
|
32
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'flat', 'backgroundColor'],
|
|
32
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'flat', 'backgroundColor'], _colorsModule.default.white)
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = require("prop-types");
|
|
9
|
-
var
|
|
9
|
+
var _sizesModule = _interopRequireDefault(require("../../scss/variables/sizes.module.scss"));
|
|
10
10
|
var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
11
11
|
var _theme = require("./theme");
|
|
12
12
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
@@ -21,7 +21,7 @@ var UTCarousel = function UTCarousel(_ref) {
|
|
|
21
21
|
autoPlayDelay = _ref$autoPlayDelay === void 0 ? 2000 : _ref$autoPlayDelay,
|
|
22
22
|
classes = _ref.classes,
|
|
23
23
|
_ref$height = _ref.height,
|
|
24
|
-
height = _ref$height === void 0 ?
|
|
24
|
+
height = _ref$height === void 0 ? _sizesModule.default.defaultCarrouselHeight : _ref$height,
|
|
25
25
|
activeEvents = _ref.activeEvents,
|
|
26
26
|
className = _ref.className;
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement(_Slider.default, {
|
|
@@ -5,27 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
|
+
var _sizesModule = _interopRequireDefault(require("../../scss/variables/sizes.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
var retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var theme = _ref.theme;
|
|
13
13
|
return {
|
|
14
14
|
arrowStyle: {
|
|
15
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'fontSize'],
|
|
16
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'height'],
|
|
17
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'width'],
|
|
18
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'color'],
|
|
19
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'backgroundColor'],
|
|
15
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'fontSize'], _sizesModule.default.defaultCarrouselArrowSize),
|
|
16
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'height'], _sizesModule.default.defaultCarrouselArrowSize),
|
|
17
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'width'], _sizesModule.default.defaultCarrouselArrowSize),
|
|
18
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'color'], _colorsModule.default.white),
|
|
19
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'backgroundColor'], _colorsModule.default.lightBlue),
|
|
20
20
|
transition: 'opacity 0.5s ease-out',
|
|
21
21
|
'&:hover': {
|
|
22
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'hover', 'backgroundColor'],
|
|
22
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'hover', 'backgroundColor'], _colorsModule.default.lightBlue)
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
legendStyleContainer: {
|
|
26
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'backgroundColor'],
|
|
27
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'height'],
|
|
28
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'width'],
|
|
26
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'backgroundColor'], _colorsModule.default.gray2),
|
|
27
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'height'], _sizesModule.default.defaultCarrouselLegendSize),
|
|
28
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleContainer', 'width'], _sizesModule.default.defaultCarrouselLegendSize),
|
|
29
29
|
borderRadius: '100% ',
|
|
30
30
|
userSelect: 'none',
|
|
31
31
|
boxShadow: '0px 1px 2px 0px rgba(0,0,0,0.75)',
|
|
@@ -33,14 +33,14 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
33
33
|
transform: 'scale(0.8)'
|
|
34
34
|
},
|
|
35
35
|
legendStyleIsActive: {
|
|
36
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleIsActive', 'backgroundColor'],
|
|
36
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleIsActive', 'backgroundColor'], _colorsModule.default.white),
|
|
37
37
|
userSelect: 'none',
|
|
38
38
|
transform: 'scale(1)'
|
|
39
39
|
},
|
|
40
40
|
legendStyleTouchable: {
|
|
41
41
|
alignItems: 'center',
|
|
42
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleTouchable', 'height'],
|
|
43
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleTouchable', 'width'],
|
|
42
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleTouchable', 'height'], _sizesModule.default.defaultCarrouselLegendTouchable),
|
|
43
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'legendStyleTouchable', 'width'], _sizesModule.default.defaultCarrouselLegendTouchable),
|
|
44
44
|
justifyContent: 'center',
|
|
45
45
|
display: 'flex',
|
|
46
46
|
userSelect: 'none'
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
var
|
|
9
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
var _classesUtils = require("../../utils/classesUtils");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
@@ -18,26 +18,26 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
18
18
|
MuiFormControlLabel: {
|
|
19
19
|
label: {
|
|
20
20
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'label', 'fontSize'], 14),
|
|
21
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'label', 'color'],
|
|
21
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'label', 'color'], _colorsModule.default.primary)
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
MuiFormHelperText: {
|
|
25
25
|
root: {
|
|
26
26
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'fontSize'], 14),
|
|
27
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'color'],
|
|
27
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'color'], _colorsModule.default.primary),
|
|
28
28
|
'&$error': {
|
|
29
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'errorColor'],
|
|
29
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'errorColor'], _colorsModule.default.error)
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
MuiCheckbox: {
|
|
34
34
|
root: {
|
|
35
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'],
|
|
35
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'], _colorsModule.default.gray)
|
|
36
36
|
},
|
|
37
37
|
colorPrimary: {
|
|
38
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'],
|
|
38
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'], _colorsModule.default.gray),
|
|
39
39
|
'&$checked': {
|
|
40
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'checkedColor'],
|
|
40
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'checkedColor'], _colorsModule.default.inputPrimary)
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
var
|
|
9
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
var retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var theme = _ref.theme;
|
|
@@ -43,12 +43,12 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
43
43
|
MuiFormControlLabel: {
|
|
44
44
|
label: {
|
|
45
45
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'fontSize'], 14),
|
|
46
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'color'],
|
|
46
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'color'], _colorsModule.default.primary),
|
|
47
47
|
'& span': {
|
|
48
48
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'fontSize'], 14),
|
|
49
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'color'],
|
|
49
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'label', 'color'], _colorsModule.default.primary),
|
|
50
50
|
'& a': {
|
|
51
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'linkLabel', 'color'],
|
|
51
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'linkLabel', 'color'], _colorsModule.default.primary)
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -56,20 +56,20 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
56
56
|
MuiFormHelperText: {
|
|
57
57
|
root: {
|
|
58
58
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'fontSize'], 14),
|
|
59
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'color'],
|
|
59
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'color'], _colorsModule.default.primary),
|
|
60
60
|
'&$error': {
|
|
61
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'errorColor'],
|
|
61
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'errorColor'], _colorsModule.default.error)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
MuiCheckbox: {
|
|
66
66
|
root: {
|
|
67
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'color'],
|
|
67
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'color'], _colorsModule.default.gray)
|
|
68
68
|
},
|
|
69
69
|
colorPrimary: {
|
|
70
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'color'],
|
|
70
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'color'], _colorsModule.default.gray),
|
|
71
71
|
'&$checked': {
|
|
72
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'checkedColor'],
|
|
72
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'checkbox', 'checkedColor'], _colorsModule.default.inputPrimary)
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/styles.module.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
1
|
+
@import '../../../../scss/variables/colors.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/mediaQueries.module.scss';
|
|
3
3
|
|
|
4
4
|
.indicator {
|
|
5
5
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../scss/variables/
|
|
2
|
-
@import '../../scss/variables/mediaQueries';
|
|
3
|
-
@import '../../scss/variables/
|
|
1
|
+
@import '../../scss/variables/colors.module.scss';
|
|
2
|
+
@import '../../scss/variables/mediaQueries.module.scss';
|
|
3
|
+
@import '../../scss/variables/fontSizes.module.scss';
|
|
4
4
|
|
|
5
5
|
.container {
|
|
6
6
|
align-items: center;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
var
|
|
9
|
+
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
12
12
|
return (0, _styles.createTheme)({
|
|
@@ -21,19 +21,19 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
21
21
|
},
|
|
22
22
|
underline: {
|
|
23
23
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
24
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(
|
|
24
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
25
25
|
},
|
|
26
26
|
'&$disabled:before': {
|
|
27
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(
|
|
27
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
28
28
|
},
|
|
29
29
|
'&:before': {
|
|
30
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(
|
|
30
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
31
31
|
},
|
|
32
32
|
'&$focused:after': {
|
|
33
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(
|
|
33
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
34
34
|
},
|
|
35
35
|
'&:after': {
|
|
36
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(
|
|
36
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
37
37
|
},
|
|
38
38
|
'&$error:after': {
|
|
39
39
|
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
@@ -45,12 +45,12 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
45
45
|
root: {
|
|
46
46
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'color']),
|
|
47
47
|
'&$error': {
|
|
48
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'errorColor'],
|
|
48
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'errorColor'], _colorsModule.default.gray)
|
|
49
49
|
},
|
|
50
50
|
'&$focused': {
|
|
51
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'focusedColor'],
|
|
51
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'focusedColor'], _colorsModule.default.primary),
|
|
52
52
|
'&$error': {
|
|
53
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'focusedErrorColor'],
|
|
53
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'formLabel', 'focusedErrorColor'], _colorsModule.default.error)
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
@@ -60,7 +60,7 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
60
60
|
MuiFormHelperText: {
|
|
61
61
|
root: {
|
|
62
62
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'helperText', 'fontSize'], 12),
|
|
63
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'helperText', 'color'],
|
|
63
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'helperText', 'color'], _colorsModule.default.error)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|