@widergy/energy-ui 1.136.0 → 1.136.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/dist/components/EnergyThemeProvider/index.js +13 -36
- package/dist/components/Loading/constants.js +1 -2
- package/dist/components/Loading/index.js +13 -12
- package/dist/components/Loading/theme.js +9 -11
- package/dist/components/UTAlert/AlertHandler.js +75 -101
- package/dist/components/UTAlert/index.js +65 -87
- package/dist/components/UTAlert/theme.js +29 -31
- package/dist/components/UTAttachment/components/Preview/index.js +8 -9
- package/dist/components/UTAttachment/constants.js +7 -13
- package/dist/components/UTAttachment/index.js +153 -232
- package/dist/components/UTAttachment/layout.js +25 -26
- package/dist/components/UTAttachment/theme.js +12 -14
- package/dist/components/UTAttachment/utils.js +34 -117
- package/dist/components/UTAutocomplete/components/ListBox/index.js +13 -21
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +9 -11
- package/dist/components/UTAutocomplete/constants.js +12 -23
- package/dist/components/UTAutocomplete/index.js +45 -66
- package/dist/components/UTAutocomplete/theme.js +3 -3
- package/dist/components/UTAvatar/constants.js +2 -3
- package/dist/components/UTAvatar/index.js +15 -12
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +22 -22
- package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +21 -22
- package/dist/components/UTBarChart/components/Bars/constants.js +3 -6
- package/dist/components/UTBarChart/components/Bars/index.js +70 -80
- package/dist/components/UTBarChart/components/Legend/constants.js +12 -18
- package/dist/components/UTBarChart/components/Legend/index.js +73 -91
- package/dist/components/UTBarChart/components/Legend/utils.js +1 -5
- package/dist/components/UTBarChart/components/Levels/index.js +16 -14
- package/dist/components/UTBarChart/components/Levels/utils.js +25 -27
- package/dist/components/UTBarChart/components/LinearPlot/constants.js +3 -5
- package/dist/components/UTBarChart/components/LinearPlot/index.js +25 -20
- package/dist/components/UTBarChart/components/LinearPlot/utils.js +37 -39
- package/dist/components/UTBarChart/components/Pagination/constants.js +1 -2
- package/dist/components/UTBarChart/components/Pagination/index.js +20 -24
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +21 -32
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -4
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +20 -19
- package/dist/components/UTBarChart/components/XAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/index.js +54 -65
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +12 -11
- package/dist/components/UTBarChart/components/YAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +24 -31
- package/dist/components/UTBarChart/components/YAxis/utils.js +4 -6
- package/dist/components/UTBarChart/constants.js +4 -8
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +23 -40
- package/dist/components/UTBarChart/index.js +148 -162
- package/dist/components/UTBarChart/theme.js +102 -104
- package/dist/components/UTBarChart/types.js +9 -17
- package/dist/components/UTBarChart/utils.js +107 -111
- package/dist/components/UTBreadcrumbs/constants.js +3 -6
- package/dist/components/UTBreadcrumbs/index.js +79 -106
- package/dist/components/UTBreadcrumbs/theme.js +21 -23
- package/dist/components/UTButton/index.js +48 -71
- package/dist/components/UTButton/theme.js +172 -174
- package/dist/components/UTCBUInput/index.js +36 -40
- package/dist/components/UTCBUInput/theme.js +5 -7
- package/dist/components/UTCaptcha/index.js +19 -45
- package/dist/components/UTCard/components/UTCardFooter/index.js +16 -17
- package/dist/components/UTCard/index.js +87 -122
- package/dist/components/UTCard/theme.js +8 -11
- package/dist/components/UTCard/types.js +2 -3
- package/dist/components/UTCarousel/components/Button/index.js +13 -13
- package/dist/components/UTCarousel/components/Legend/index.js +14 -16
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +16 -16
- package/dist/components/UTCarousel/components/Slider/constants.js +5 -10
- package/dist/components/UTCarousel/components/Slider/index.js +181 -252
- package/dist/components/UTCarousel/components/Slider/layout.js +66 -93
- package/dist/components/UTCarousel/index.js +14 -15
- package/dist/components/UTCarousel/theme.js +35 -37
- package/dist/components/UTCheckList/constants.js +1 -2
- package/dist/components/UTCheckList/index.js +72 -91
- package/dist/components/UTCheckList/theme.js +66 -70
- package/dist/components/UTCheckbox/constants.js +3 -6
- package/dist/components/UTCheckbox/index.js +31 -42
- package/dist/components/UTCheckbox/theme.js +49 -53
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
- package/dist/components/UTConsumptionBar/constants.js +3 -6
- package/dist/components/UTConsumptionBar/index.js +49 -74
- package/dist/components/UTCuit/index.js +109 -133
- package/dist/components/UTCuit/theme.js +47 -49
- package/dist/components/UTDatePicker/components/Day/constants.js +1 -2
- package/dist/components/UTDatePicker/components/Day/index.js +12 -12
- package/dist/components/UTDatePicker/constants.js +20 -31
- package/dist/components/UTDatePicker/index.js +59 -101
- package/dist/components/UTDatePicker/theme.js +173 -177
- package/dist/components/UTDatePicker/types.js +2 -3
- package/dist/components/UTDatePicker/utils.js +2 -6
- package/dist/components/UTDialog/components/ActionButton/index.js +10 -9
- package/dist/components/UTDialog/constants.js +2 -4
- package/dist/components/UTDialog/index.js +39 -38
- package/dist/components/UTDialog/theme.js +93 -95
- package/dist/components/UTDialog/types.js +2 -3
- package/dist/components/UTDotMenu/index.js +33 -57
- package/dist/components/UTEmojiPicker/constants.js +6 -11
- package/dist/components/UTEmojiPicker/index.js +45 -65
- package/dist/components/UTEmojiPicker/theme.js +1 -1
- package/dist/components/UTEmojiPicker/utils.js +21 -51
- package/dist/components/UTExternalLink/index.js +17 -14
- package/dist/components/UTFileInput/constants.js +2 -4
- package/dist/components/UTFileInput/index.js +7 -31
- package/dist/components/UTFileInput/layout.js +67 -96
- package/dist/components/UTIconButton/index.js +49 -72
- package/dist/components/UTIconButton/theme.js +53 -55
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +53 -58
- package/dist/components/UTImageRadio/constants.js +3 -6
- package/dist/components/UTImageRadio/index.js +39 -47
- package/dist/components/UTImageRadio/theme.js +8 -11
- package/dist/components/UTImageRadio/types.js +2 -3
- package/dist/components/UTImageRadio/utils.js +2 -6
- package/dist/components/UTLabel/index.js +69 -90
- package/dist/components/UTLabel/theme.js +84 -86
- package/dist/components/UTList/index.js +15 -18
- package/dist/components/UTLoading/index.js +15 -15
- package/dist/components/UTMap/components/GoogleMaps/constants.js +8 -11
- package/dist/components/UTMap/components/GoogleMaps/index.js +63 -91
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -3
- package/dist/components/UTMap/constants.js +6 -12
- package/dist/components/UTMap/index.js +163 -198
- package/dist/components/UTMap/types.js +4 -6
- package/dist/components/UTMap/utils.js +29 -46
- package/dist/components/UTMap/withGoogleMapScript.js +12 -17
- package/dist/components/UTMenu/index.js +52 -69
- package/dist/components/UTMenu/theme.js +2 -2
- package/dist/components/UTMenu/utils.js +5 -11
- package/dist/components/UTPagination/theme.js +4 -2
- package/dist/components/UTPanel/index.js +38 -44
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +14 -11
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +24 -21
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +63 -50
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +26 -27
- package/dist/components/UTPasswordField/index.js +26 -23
- package/dist/components/UTPasswordField/theme.js +37 -39
- package/dist/components/UTPhoneInput/constants.js +3 -6
- package/dist/components/UTPhoneInput/index.js +180 -205
- package/dist/components/UTPhoneInput/theme.js +109 -113
- package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -8
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +24 -23
- package/dist/components/UTPieChart/components/Legend/contants.js +3 -6
- package/dist/components/UTPieChart/components/Legend/index.js +27 -24
- package/dist/components/UTPieChart/constants.js +13 -26
- package/dist/components/UTPieChart/hooks/use-animated-value/index.js +15 -33
- package/dist/components/UTPieChart/index.js +73 -76
- package/dist/components/UTPieChart/theme.js +23 -25
- package/dist/components/UTPieChart/utils.js +4 -2
- package/dist/components/UTProgressBar/constants.js +2 -4
- package/dist/components/UTProgressBar/index.js +12 -11
- package/dist/components/UTProgressBar/theme.js +25 -27
- package/dist/components/UTProgressBar/types.js +2 -3
- package/dist/components/UTRadioGroup/index.js +45 -71
- package/dist/components/UTRadioGroup/theme.js +82 -86
- package/dist/components/UTRating/components/Circle/index.js +41 -56
- package/dist/components/UTRating/components/Faces/constants.js +2 -4
- package/dist/components/UTRating/components/Faces/index.js +34 -36
- package/dist/components/UTRating/components/Star/index.js +36 -40
- package/dist/components/UTRating/constants.js +4 -8
- package/dist/components/UTRating/index.js +31 -46
- package/dist/components/UTRating/theme.js +77 -79
- package/dist/components/UTRipple/Ripple.js +22 -39
- package/dist/components/UTRipple/index.js +18 -37
- package/dist/components/UTSelect/components/Option/index.js +13 -13
- package/dist/components/UTSelect/constants.js +4 -8
- package/dist/components/UTSelect/index.js +61 -81
- package/dist/components/UTSelect/stylesJS.js +2 -3
- package/dist/components/UTSelect/theme.js +43 -45
- package/dist/components/UTSelect/utils.js +3 -13
- package/dist/components/UTSidebar/components/ListOption/index.js +32 -47
- package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +8 -8
- package/dist/components/UTSidebar/components/LogosContainer/index.js +14 -14
- package/dist/components/UTSidebar/components/Option/constants.js +2 -3
- package/dist/components/UTSidebar/components/Option/index.js +28 -32
- package/dist/components/UTSidebar/components/Toggler/index.js +11 -11
- package/dist/components/UTSidebar/index.js +42 -53
- package/dist/components/UTSidebar/theme.js +1 -1
- package/dist/components/UTSidebar/types.js +5 -10
- package/dist/components/UTSkeleton/index.js +10 -36
- package/dist/components/UTSwitch/constants.js +3 -6
- package/dist/components/UTSwitch/index.js +42 -57
- package/dist/components/UTSwitch/theme.js +115 -117
- package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +44 -81
- package/dist/components/UTTable/components/Cell/index.js +18 -23
- package/dist/components/UTTable/components/HeaderCell/constants.js +2 -3
- package/dist/components/UTTable/components/HeaderCell/index.js +23 -30
- package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
- package/dist/components/UTTable/components/PrimaryAction/index.js +12 -11
- package/dist/components/UTTable/components/ResponsiveCell/index.js +19 -20
- package/dist/components/UTTable/components/Status/index.js +18 -19
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +10 -9
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +12 -12
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +21 -32
- package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +8 -14
- package/dist/components/UTTable/components/TableFooter/constants.js +1 -2
- package/dist/components/UTTable/components/TableFooter/index.js +15 -15
- package/dist/components/UTTable/components/TableHeader/index.js +11 -11
- package/dist/components/UTTable/components/TableRow/constants.js +3 -6
- package/dist/components/UTTable/components/TableRow/index.js +79 -94
- package/dist/components/UTTable/constants.js +26 -43
- package/dist/components/UTTable/hook.js +11 -26
- package/dist/components/UTTable/index.js +125 -213
- package/dist/components/UTTable/theme.js +13 -16
- package/dist/components/UTTable/types.js +4 -8
- package/dist/components/UTTable/utils.js +70 -74
- package/dist/components/UTTabs/components/TooltipTab/index.js +20 -30
- package/dist/components/UTTabs/constants.js +4 -8
- package/dist/components/UTTabs/index.js +55 -84
- package/dist/components/UTTabs/theme.js +112 -114
- package/dist/components/UTTabs/utils.js +1 -1
- package/dist/components/UTTextArea/constants.js +4 -6
- package/dist/components/UTTextArea/index.js +40 -24
- package/dist/components/UTTextArea/styles.module.scss +20 -1
- package/dist/components/UTTextArea/theme.js +1 -1
- package/dist/components/UTTextInput/constants.js +2 -3
- package/dist/components/UTTextInput/index.js +116 -146
- package/dist/components/UTTextInput/theme.js +28 -30
- package/dist/components/UTThirdPartyCookieChecker/index.js +17 -21
- package/dist/components/UTToggle/components/ToggleOption/index.js +16 -17
- package/dist/components/UTToggle/index.js +25 -26
- package/dist/components/UTToggle/theme.js +47 -49
- package/dist/components/UTTooltip/index.js +23 -30
- package/dist/components/UTTooltip/theme.js +1 -1
- package/dist/components/UTTopbar/theme.js +4 -2
- package/dist/components/UTTouchableWithoutFeedback/index.js +14 -27
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +34 -31
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +6 -12
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +8 -18
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +23 -47
- package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +31 -34
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +81 -93
- package/dist/components/UTVirtualizedList/constants.js +4 -8
- package/dist/components/UTVirtualizedList/index.js +26 -38
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +11 -11
- package/dist/components/UTWorkflowContainer/constants.js +5 -9
- package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
- package/dist/components/UTWorkflowContainer/index.js +31 -50
- package/dist/components/UTWorkflowContainer/theme.js +70 -64
- package/dist/components/UTWorkflowContainer/types.js +2 -3
- package/dist/components/WithLoading/index.js +10 -15
- package/dist/components/WithTheme/index.js +10 -17
- package/dist/components/WithTheme/layout.js +18 -41
- package/dist/components/WithTouch/index.js +12 -19
- package/dist/index.js +54 -54
- package/dist/scss/variables/colors.module.scss +1 -0
- package/dist/theme.js +5 -3
- package/dist/types/commonTypes.js +3 -5
- package/dist/types/consumptionTypes.js +3 -5
- package/dist/types/formTypes.js +4 -7
- package/dist/types/tableTypes.js +2 -3
- package/dist/utils/classesUtils.js +4 -10
- package/dist/utils/componentUtils.js +10 -13
- package/dist/utils/helperFunctions.js +4 -4
- package/dist/utils/useScreenSize.js +2 -3
- package/package.json +1 -1
|
@@ -5,28 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'hover', 'backgroundColor'])
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
separator: {
|
|
23
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'color']),
|
|
24
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontFamily']),
|
|
25
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontSize']),
|
|
26
|
-
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontWeight']),
|
|
27
|
-
lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'lineHeight']),
|
|
28
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'padding'], '4px 16px')
|
|
8
|
+
const retrieveStyle = theme => ({
|
|
9
|
+
item: {
|
|
10
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'borderRadius']),
|
|
11
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'color']),
|
|
12
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontFamily']),
|
|
13
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontSize']),
|
|
14
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontWeight']),
|
|
15
|
+
lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'lineHeight']),
|
|
16
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'padding'], '4px 8px'),
|
|
17
|
+
'&:hover': {
|
|
18
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'hover', 'backgroundColor'])
|
|
29
19
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
20
|
+
},
|
|
21
|
+
separator: {
|
|
22
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'color']),
|
|
23
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontFamily']),
|
|
24
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontSize']),
|
|
25
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontWeight']),
|
|
26
|
+
lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'lineHeight']),
|
|
27
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'padding'], '4px 16px')
|
|
28
|
+
}
|
|
29
|
+
});
|
|
32
30
|
exports.retrieveStyle = retrieveStyle;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -12,75 +11,54 @@ var _CircularProgress = _interopRequireDefault(require("@material-ui/core/Circul
|
|
|
12
11
|
var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
13
12
|
var _theme = require("./theme");
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
class UTButton extends _react.PureComponent {
|
|
17
|
+
render() {
|
|
18
|
+
const {
|
|
19
|
+
text,
|
|
20
|
+
fab,
|
|
21
|
+
outlined,
|
|
22
|
+
extendedFab,
|
|
23
|
+
type,
|
|
24
|
+
onPress,
|
|
25
|
+
disabled,
|
|
26
|
+
loading,
|
|
27
|
+
small,
|
|
28
|
+
large,
|
|
29
|
+
lowercase,
|
|
30
|
+
uppercase,
|
|
31
|
+
classes,
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
autoFocus,
|
|
35
|
+
style,
|
|
36
|
+
secondary,
|
|
37
|
+
alternative,
|
|
38
|
+
gray
|
|
39
|
+
} = this.props;
|
|
40
|
+
const size = small ? 'small' : large ? 'large' : 'medium';
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
42
|
+
type: type,
|
|
43
|
+
size: size,
|
|
44
|
+
autoFocus: autoFocus,
|
|
45
|
+
style: style,
|
|
46
|
+
variant: text ? 'text' : fab ? 'fab' : extendedFab ? 'extendedFab' : outlined ? 'outlined' : 'contained',
|
|
47
|
+
disabled: disabled || loading,
|
|
48
|
+
onClick: onPress,
|
|
49
|
+
classes: {
|
|
50
|
+
root: "".concat(small ? classes.small : large && classes.large, " ").concat(uppercase ? classes.uppercase : lowercase && classes.lowercase, " ").concat(className),
|
|
51
|
+
label: classes.labelFullWidth,
|
|
52
|
+
contained: "".concat(classes.base, " ").concat(secondary && classes.secondary, " ").concat(alternative && classes.alternative, " ").concat(gray && classes.gray),
|
|
53
|
+
text: "".concat(classes.baseText, " ").concat(secondary && classes.secondaryText, " ").concat(alternative && classes.alternativeText, " ").concat(gray && classes.grayText),
|
|
54
|
+
outlined: "".concat(classes.baseOutlined, " ").concat(secondary && classes.secondaryOutlined, " ").concat(alternative && classes.alternativeOutlined, " ").concat(gray && classes.grayOutlined)
|
|
55
|
+
}
|
|
56
|
+
}, children, loading && /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
57
|
+
size: 24,
|
|
58
|
+
className: classes["loading".concat(outlined ? 'Outlined' : text ? 'Text' : '')]
|
|
59
|
+
}));
|
|
35
60
|
}
|
|
36
|
-
|
|
37
|
-
key: "render",
|
|
38
|
-
value: function render() {
|
|
39
|
-
var _this$props = this.props,
|
|
40
|
-
text = _this$props.text,
|
|
41
|
-
fab = _this$props.fab,
|
|
42
|
-
outlined = _this$props.outlined,
|
|
43
|
-
extendedFab = _this$props.extendedFab,
|
|
44
|
-
type = _this$props.type,
|
|
45
|
-
onPress = _this$props.onPress,
|
|
46
|
-
disabled = _this$props.disabled,
|
|
47
|
-
loading = _this$props.loading,
|
|
48
|
-
small = _this$props.small,
|
|
49
|
-
large = _this$props.large,
|
|
50
|
-
lowercase = _this$props.lowercase,
|
|
51
|
-
uppercase = _this$props.uppercase,
|
|
52
|
-
classes = _this$props.classes,
|
|
53
|
-
className = _this$props.className,
|
|
54
|
-
children = _this$props.children,
|
|
55
|
-
autoFocus = _this$props.autoFocus,
|
|
56
|
-
style = _this$props.style,
|
|
57
|
-
secondary = _this$props.secondary,
|
|
58
|
-
alternative = _this$props.alternative,
|
|
59
|
-
gray = _this$props.gray;
|
|
60
|
-
var size = small ? 'small' : large ? 'large' : 'medium';
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
62
|
-
type: type,
|
|
63
|
-
size: size,
|
|
64
|
-
autoFocus: autoFocus,
|
|
65
|
-
style: style,
|
|
66
|
-
variant: text ? 'text' : fab ? 'fab' : extendedFab ? 'extendedFab' : outlined ? 'outlined' : 'contained',
|
|
67
|
-
disabled: disabled || loading,
|
|
68
|
-
onClick: onPress,
|
|
69
|
-
classes: {
|
|
70
|
-
root: "".concat(small ? classes.small : large && classes.large, " ").concat(uppercase ? classes.uppercase : lowercase && classes.lowercase, " ").concat(className),
|
|
71
|
-
label: classes.labelFullWidth,
|
|
72
|
-
contained: "".concat(classes.base, " ").concat(secondary && classes.secondary, " ").concat(alternative && classes.alternative, " ").concat(gray && classes.gray),
|
|
73
|
-
text: "".concat(classes.baseText, " ").concat(secondary && classes.secondaryText, " ").concat(alternative && classes.alternativeText, " ").concat(gray && classes.grayText),
|
|
74
|
-
outlined: "".concat(classes.baseOutlined, " ").concat(secondary && classes.secondaryOutlined, " ").concat(alternative && classes.alternativeOutlined, " ").concat(gray && classes.grayOutlined)
|
|
75
|
-
}
|
|
76
|
-
}, children, loading && /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
77
|
-
size: 24,
|
|
78
|
-
className: classes["loading".concat(outlined ? 'Outlined' : text ? 'Text' : '')]
|
|
79
|
-
}));
|
|
80
|
-
}
|
|
81
|
-
}]);
|
|
82
|
-
return UTButton;
|
|
83
|
-
}(_react.PureComponent);
|
|
61
|
+
}
|
|
84
62
|
UTButton.propTypes = {
|
|
85
63
|
text: _propTypes.bool,
|
|
86
64
|
small: _propTypes.bool,
|
|
@@ -101,5 +79,4 @@ UTButton.propTypes = {
|
|
|
101
79
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
102
80
|
className: _propTypes.string
|
|
103
81
|
};
|
|
104
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
|
|
105
|
-
exports.default = _default;
|
|
82
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
|
|
@@ -7,181 +7,179 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
'
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'&:disabled': {
|
|
47
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
48
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'borderColor']),
|
|
49
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'color']),
|
|
50
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'padding'])
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
baseOutlined: {
|
|
54
|
-
textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'textTransform'], 'none'),
|
|
55
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
56
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'border']),
|
|
57
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderColor']),
|
|
58
|
-
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderRadius']),
|
|
59
|
-
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'boxShadow']),
|
|
60
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'color']),
|
|
61
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
62
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
|
|
63
|
-
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontWeight']),
|
|
64
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'padding']),
|
|
65
|
-
'&:hover': {
|
|
66
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'backgroundColor']),
|
|
67
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'color'])
|
|
68
|
-
},
|
|
69
|
-
'&:disabled': {
|
|
70
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
71
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'border']),
|
|
72
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'borderColor']),
|
|
73
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'color']),
|
|
74
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'padding'])
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
secondary: {
|
|
78
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'backgroundColor']),
|
|
79
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'color']),
|
|
80
|
-
'&:hover': {
|
|
81
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'hover', 'backgroundColor'])
|
|
82
|
-
},
|
|
83
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'padding'])
|
|
84
|
-
},
|
|
85
|
-
secondaryText: {
|
|
86
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
87
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'color']),
|
|
88
|
-
'&:hover': {
|
|
89
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'hover', 'backgroundColor'])
|
|
90
|
-
},
|
|
91
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'padding'])
|
|
92
|
-
},
|
|
93
|
-
secondaryOutlined: {
|
|
94
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
95
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'border']),
|
|
96
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'borderColor']),
|
|
97
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'color']),
|
|
98
|
-
'&:hover': {
|
|
99
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'hover', 'backgroundColor'])
|
|
100
|
-
},
|
|
101
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'padding'])
|
|
102
|
-
},
|
|
103
|
-
alternative: {
|
|
104
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'backgroundColor']),
|
|
105
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'color']),
|
|
106
|
-
'&:hover': {
|
|
107
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'hover', 'backgroundColor'])
|
|
108
|
-
},
|
|
109
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'padding'])
|
|
110
|
-
},
|
|
111
|
-
alternativeText: {
|
|
112
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
113
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'color']),
|
|
114
|
-
'&:hover': {
|
|
115
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'hover', 'backgroundColor'])
|
|
116
|
-
},
|
|
117
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'padding'])
|
|
118
|
-
},
|
|
119
|
-
alternativeOutlined: {
|
|
120
|
-
backgroundColor: _colorsModule.default.transparent,
|
|
121
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'border']),
|
|
122
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'borderColor']),
|
|
123
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'color']),
|
|
124
|
-
'&:hover': {
|
|
125
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'hover', 'backgroundColor'])
|
|
126
|
-
},
|
|
127
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'padding'])
|
|
128
|
-
},
|
|
129
|
-
gray: {
|
|
130
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'backgroundColor']),
|
|
131
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'color']),
|
|
132
|
-
'&:hover': {
|
|
133
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'hover', 'backgroundColor'])
|
|
134
|
-
},
|
|
135
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'padding'])
|
|
136
|
-
},
|
|
137
|
-
grayText: {
|
|
10
|
+
const retrieveStyle = theme => ({
|
|
11
|
+
base: {
|
|
12
|
+
textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'textTransform'], 'none'),
|
|
13
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'backgroundColor']),
|
|
14
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'borderRadius']),
|
|
15
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'boxShadow']),
|
|
16
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'color']),
|
|
17
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
18
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
|
|
19
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontWeight']),
|
|
20
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'padding']),
|
|
21
|
+
'&:hover': {
|
|
22
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'backgroundColor']),
|
|
23
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'boxShadow'])
|
|
24
|
+
},
|
|
25
|
+
'&:disabled': {
|
|
26
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'backgroundColor']),
|
|
27
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'color']),
|
|
28
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'padding'])
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
baseText: {
|
|
32
|
+
textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'textTransform'], 'none'),
|
|
33
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
34
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'borderRadius']),
|
|
35
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'boxShadow']),
|
|
36
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'color']),
|
|
37
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
38
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
|
|
39
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontWeight']),
|
|
40
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'padding']),
|
|
41
|
+
'&:hover': {
|
|
42
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'backgroundColor']),
|
|
43
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'color'])
|
|
44
|
+
},
|
|
45
|
+
'&:disabled': {
|
|
138
46
|
backgroundColor: _colorsModule.default.transparent,
|
|
139
|
-
|
|
140
|
-
'
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
47
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'borderColor']),
|
|
48
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'color']),
|
|
49
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'padding'])
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
baseOutlined: {
|
|
53
|
+
textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'textTransform'], 'none'),
|
|
54
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
55
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'border']),
|
|
56
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderColor']),
|
|
57
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderRadius']),
|
|
58
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'boxShadow']),
|
|
59
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'color']),
|
|
60
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
61
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
|
|
62
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontWeight']),
|
|
63
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'padding']),
|
|
64
|
+
'&:hover': {
|
|
65
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'backgroundColor']),
|
|
66
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'color'])
|
|
67
|
+
},
|
|
68
|
+
'&:disabled': {
|
|
146
69
|
backgroundColor: _colorsModule.default.transparent,
|
|
147
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', '
|
|
148
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', '
|
|
149
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', '
|
|
150
|
-
'
|
|
151
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'hover', 'backgroundColor'])
|
|
152
|
-
},
|
|
153
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'padding'])
|
|
154
|
-
},
|
|
155
|
-
small: {
|
|
156
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'small'])
|
|
157
|
-
},
|
|
158
|
-
large: {
|
|
159
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'large'])
|
|
160
|
-
},
|
|
161
|
-
lowercase: {
|
|
162
|
-
textTransform: 'lowercase'
|
|
163
|
-
},
|
|
164
|
-
uppercase: {
|
|
165
|
-
textTransform: 'uppercase'
|
|
166
|
-
},
|
|
167
|
-
labelFullWidth: {
|
|
168
|
-
width: '100%'
|
|
169
|
-
},
|
|
170
|
-
loading: {
|
|
171
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color']),
|
|
172
|
-
position: 'absolute',
|
|
173
|
-
left: 'calc(50% - 12px)'
|
|
174
|
-
},
|
|
175
|
-
loadingText: {
|
|
176
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingText', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
|
|
177
|
-
position: 'absolute',
|
|
178
|
-
left: 'calc(50% - 12px)'
|
|
179
|
-
},
|
|
180
|
-
loadingOutlined: {
|
|
181
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingOutlined', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
|
|
182
|
-
position: 'absolute',
|
|
183
|
-
left: 'calc(50% - 12px)'
|
|
70
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'border']),
|
|
71
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'borderColor']),
|
|
72
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'color']),
|
|
73
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'padding'])
|
|
184
74
|
}
|
|
185
|
-
}
|
|
186
|
-
|
|
75
|
+
},
|
|
76
|
+
secondary: {
|
|
77
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'backgroundColor']),
|
|
78
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'color']),
|
|
79
|
+
'&:hover': {
|
|
80
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'hover', 'backgroundColor'])
|
|
81
|
+
},
|
|
82
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'padding'])
|
|
83
|
+
},
|
|
84
|
+
secondaryText: {
|
|
85
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
86
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'color']),
|
|
87
|
+
'&:hover': {
|
|
88
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'hover', 'backgroundColor'])
|
|
89
|
+
},
|
|
90
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'padding'])
|
|
91
|
+
},
|
|
92
|
+
secondaryOutlined: {
|
|
93
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
94
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'border']),
|
|
95
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'borderColor']),
|
|
96
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'color']),
|
|
97
|
+
'&:hover': {
|
|
98
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'hover', 'backgroundColor'])
|
|
99
|
+
},
|
|
100
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'padding'])
|
|
101
|
+
},
|
|
102
|
+
alternative: {
|
|
103
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'backgroundColor']),
|
|
104
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'color']),
|
|
105
|
+
'&:hover': {
|
|
106
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'hover', 'backgroundColor'])
|
|
107
|
+
},
|
|
108
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'padding'])
|
|
109
|
+
},
|
|
110
|
+
alternativeText: {
|
|
111
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
112
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'color']),
|
|
113
|
+
'&:hover': {
|
|
114
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'hover', 'backgroundColor'])
|
|
115
|
+
},
|
|
116
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'padding'])
|
|
117
|
+
},
|
|
118
|
+
alternativeOutlined: {
|
|
119
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
120
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'border']),
|
|
121
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'borderColor']),
|
|
122
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'color']),
|
|
123
|
+
'&:hover': {
|
|
124
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'hover', 'backgroundColor'])
|
|
125
|
+
},
|
|
126
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'padding'])
|
|
127
|
+
},
|
|
128
|
+
gray: {
|
|
129
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'backgroundColor']),
|
|
130
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'color']),
|
|
131
|
+
'&:hover': {
|
|
132
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'hover', 'backgroundColor'])
|
|
133
|
+
},
|
|
134
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'padding'])
|
|
135
|
+
},
|
|
136
|
+
grayText: {
|
|
137
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
138
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'color']),
|
|
139
|
+
'&:hover': {
|
|
140
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'hover', 'backgroundColor'])
|
|
141
|
+
},
|
|
142
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'padding'])
|
|
143
|
+
},
|
|
144
|
+
grayOutlined: {
|
|
145
|
+
backgroundColor: _colorsModule.default.transparent,
|
|
146
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'border']),
|
|
147
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'borderColor']),
|
|
148
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'color']),
|
|
149
|
+
'&:hover': {
|
|
150
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'hover', 'backgroundColor'])
|
|
151
|
+
},
|
|
152
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'padding'])
|
|
153
|
+
},
|
|
154
|
+
small: {
|
|
155
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'small'])
|
|
156
|
+
},
|
|
157
|
+
large: {
|
|
158
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'large'])
|
|
159
|
+
},
|
|
160
|
+
lowercase: {
|
|
161
|
+
textTransform: 'lowercase'
|
|
162
|
+
},
|
|
163
|
+
uppercase: {
|
|
164
|
+
textTransform: 'uppercase'
|
|
165
|
+
},
|
|
166
|
+
labelFullWidth: {
|
|
167
|
+
width: '100%'
|
|
168
|
+
},
|
|
169
|
+
loading: {
|
|
170
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color']),
|
|
171
|
+
position: 'absolute',
|
|
172
|
+
left: 'calc(50% - 12px)'
|
|
173
|
+
},
|
|
174
|
+
loadingText: {
|
|
175
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingText', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
|
|
176
|
+
position: 'absolute',
|
|
177
|
+
left: 'calc(50% - 12px)'
|
|
178
|
+
},
|
|
179
|
+
loadingOutlined: {
|
|
180
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingOutlined', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
|
|
181
|
+
position: 'absolute',
|
|
182
|
+
left: 'calc(50% - 12px)'
|
|
183
|
+
}
|
|
184
|
+
});
|
|
187
185
|
exports.retrieveStyle = retrieveStyle;
|