@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
|
@@ -54,39 +54,39 @@ const retrieveStyle = _ref => {
|
|
|
54
54
|
},
|
|
55
55
|
faceButtonSelected: {},
|
|
56
56
|
label: {
|
|
57
|
-
color:
|
|
58
|
-
fontSize:
|
|
59
|
-
right:
|
|
57
|
+
color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'color'])),
|
|
58
|
+
fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'fontSize'])),
|
|
59
|
+
right: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'right']))
|
|
60
60
|
},
|
|
61
61
|
labelBottomFirst: {
|
|
62
|
-
alignSelf:
|
|
63
|
-
position:
|
|
64
|
-
right:
|
|
65
|
-
top:
|
|
66
|
-
width:
|
|
62
|
+
alignSelf: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomFirst', 'alignSelf'])),
|
|
63
|
+
position: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomFirst', 'position'])),
|
|
64
|
+
right: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomFirst', 'right'])),
|
|
65
|
+
top: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomFirst', 'top'])),
|
|
66
|
+
width: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomFirst', 'width']))
|
|
67
67
|
},
|
|
68
68
|
labelBottomLast: {
|
|
69
|
-
alignSelf:
|
|
70
|
-
position:
|
|
71
|
-
right:
|
|
72
|
-
top:
|
|
73
|
-
width:
|
|
69
|
+
alignSelf: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomLast', 'alignSelf'])),
|
|
70
|
+
position: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomLast', 'position'])),
|
|
71
|
+
right: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomLast', 'right'])),
|
|
72
|
+
top: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomLast', 'top'])),
|
|
73
|
+
width: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'labelBottomLast', 'width']))
|
|
74
74
|
},
|
|
75
75
|
avatar: {
|
|
76
|
-
color:
|
|
76
|
+
color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'avatar', 'color'], _colorsModule.default.gray3), " !important")
|
|
77
77
|
},
|
|
78
78
|
container: {
|
|
79
|
-
justifyContent:
|
|
80
|
-
pointerEvents:
|
|
79
|
+
justifyContent: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'container', 'justifyContent'])),
|
|
80
|
+
pointerEvents: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'container', 'pointerEvents']))
|
|
81
81
|
},
|
|
82
82
|
circleWithTextBottom: {
|
|
83
|
-
margin:
|
|
84
|
-
width:
|
|
83
|
+
margin: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'circleWithTextBottom', 'margin'])),
|
|
84
|
+
width: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'circleWithTextBottom', 'width']))
|
|
85
85
|
},
|
|
86
86
|
title: {
|
|
87
|
-
fontWeight:
|
|
88
|
-
marginBottom:
|
|
89
|
-
textAlign:
|
|
87
|
+
fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'title', 'fontWeight'])),
|
|
88
|
+
marginBottom: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'title', 'marginBottom'])),
|
|
89
|
+
textAlign: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'title', 'textAlign']))
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
};
|
|
@@ -56,10 +56,10 @@ const Ripple = _ref => {
|
|
|
56
56
|
unmountOnExit: true,
|
|
57
57
|
onExit: handleExit
|
|
58
58
|
}, other), /*#__PURE__*/_react.default.createElement("span", {
|
|
59
|
-
className:
|
|
59
|
+
className: "".concat(_stylesModule.default.ripple, " ").concat(enter && _stylesModule.default.rippleEnter),
|
|
60
60
|
style: rippleStyles
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
62
|
-
className:
|
|
62
|
+
className: "".concat(_stylesModule.default.child, " ").concat(leaving && _stylesModule.default.rippleExit)
|
|
63
63
|
})));
|
|
64
64
|
};
|
|
65
65
|
Ripple.propTypes = {
|
|
@@ -22,7 +22,7 @@ const Option = _ref => {
|
|
|
22
22
|
const OptionIcon = optionProps.icon;
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, isMultiple && /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
24
24
|
color: "primary",
|
|
25
|
-
checked: value
|
|
25
|
+
checked: (value === null || value === void 0 ? void 0 : value.indexOf(optionProps[valueKey])) > -1
|
|
26
26
|
}), OptionIcon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
27
27
|
className: classes.labelContainer
|
|
28
28
|
}, /*#__PURE__*/_react.default.createElement(OptionIcon, {
|
|
@@ -59,7 +59,7 @@ const UTSelect = _ref => {
|
|
|
59
59
|
const {
|
|
60
60
|
multiple: isMultiple,
|
|
61
61
|
upperTitle
|
|
62
|
-
} = field
|
|
62
|
+
} = (field === null || field === void 0 ? void 0 : field.configuration) || {};
|
|
63
63
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
64
64
|
(0, _react.useEffect)(() => {
|
|
65
65
|
if (withAutoReset && (0, _utils.shouldReset)(input.value, options, valueKey, isMultiple)) input.onChange(null);
|
|
@@ -19,7 +19,7 @@ const retrieveStyle = _ref => {
|
|
|
19
19
|
flexShrink: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'flexShrink'], '0'),
|
|
20
20
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'width'], '100%'),
|
|
21
21
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'margin'], '0'),
|
|
22
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'color'],
|
|
22
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'color'], "".concat(_colorsModule.default.gray)),
|
|
23
23
|
flexDirection: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'flexDirection'], 'column'),
|
|
24
24
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'alignItems'])
|
|
25
25
|
},
|
|
@@ -32,13 +32,13 @@ const retrieveStyle = _ref => {
|
|
|
32
32
|
labelIcon: {
|
|
33
33
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'height'], '12px'),
|
|
34
34
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'width'], 'auto'),
|
|
35
|
-
fill: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'fill'],
|
|
35
|
+
fill: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'fill'], "".concat(_colorsModule.default.gray)),
|
|
36
36
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'padding'], '0px 5px 0px 0px')
|
|
37
37
|
},
|
|
38
38
|
optionIcon: {
|
|
39
39
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'height'], '20px'),
|
|
40
40
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'width'], 'auto'),
|
|
41
|
-
fill: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'fill'],
|
|
41
|
+
fill: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'fill'], "".concat(_colorsModule.default.gray)),
|
|
42
42
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'inputIcon', 'padding'], '0px 10px 0px 0px')
|
|
43
43
|
},
|
|
44
44
|
labelContainer: {
|
|
@@ -76,20 +76,20 @@ const retrieveMuiTheme = (theme, muiTheme) => {
|
|
|
76
76
|
},
|
|
77
77
|
root: {
|
|
78
78
|
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
79
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'border'],
|
|
79
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
80
80
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
81
81
|
},
|
|
82
82
|
'&$focused $notchedOutline': {
|
|
83
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'focused', 'border'],
|
|
83
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'focused', 'border'], "2px solid ".concat(_colorsModule.default.primary)),
|
|
84
84
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
85
85
|
},
|
|
86
86
|
'&$disabled $notchedOutline': {
|
|
87
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'disabled', 'border'],
|
|
87
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'disabled', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
88
88
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
notchedOutline: {
|
|
92
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'unfocused', 'border'],
|
|
92
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'unfocused', 'border'], "1px solid ".concat(theme.Palette.error['05'])),
|
|
93
93
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -108,25 +108,25 @@ const retrieveMuiTheme = (theme, muiTheme) => {
|
|
|
108
108
|
},
|
|
109
109
|
underline: {
|
|
110
110
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
111
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'hover', 'borderBottom'],
|
|
111
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
112
112
|
},
|
|
113
113
|
'&:hover:not($disabled):before': {
|
|
114
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'hover', 'borderBottom'],
|
|
114
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
115
115
|
},
|
|
116
116
|
'&$disabled:before': {
|
|
117
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'disabled', 'borderBottom'],
|
|
117
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
118
118
|
},
|
|
119
119
|
'&:before': {
|
|
120
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'unfocused', 'borderBottom'],
|
|
120
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
121
121
|
},
|
|
122
122
|
'&$focused:after': {
|
|
123
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'focused', 'borderBottom'],
|
|
123
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.inputPrimary))
|
|
124
124
|
},
|
|
125
125
|
'&:after': {
|
|
126
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'base', 'borderBottom'],
|
|
126
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.inputPrimary))
|
|
127
127
|
},
|
|
128
128
|
'&$error:after': {
|
|
129
|
-
borderBottom:
|
|
129
|
+
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
130
130
|
borderBottomColor: theme.Palette.error['05']
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -62,15 +62,11 @@ const UTSelectableCard = _ref => {
|
|
|
62
62
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
63
63
|
role: "button",
|
|
64
64
|
onClick: () => !disabled && onClick(),
|
|
65
|
-
className:
|
|
66
|
-
${classes.item}
|
|
67
|
-
${disabled ? classes[`${appearance}DisabledContainer`] : selected ? classes[`${appearance}SelectedContainer`] : classes[`${appearance}Apareance`]}
|
|
68
|
-
${classes[`${size}Size`]}
|
|
69
|
-
`
|
|
65
|
+
className: "\n ".concat(classes.item, "\n ").concat(disabled ? classes["".concat(appearance, "DisabledContainer")] : selected ? classes["".concat(appearance, "SelectedContainer")] : classes["".concat(appearance, "Apareance")], "\n ").concat(classes["".concat(size, "Size")], "\n ")
|
|
70
66
|
}, Icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
71
|
-
className:
|
|
67
|
+
className: "".concat(classes.icon, " ").concat(classNames.icon)
|
|
72
68
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
-
className:
|
|
69
|
+
className: "".concat(classes.textContainer, " ").concat(checkIcon && classes.textContainerWithCheckedIcon)
|
|
74
70
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
75
71
|
className: classes.column
|
|
76
72
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -84,11 +80,11 @@ const UTSelectableCard = _ref => {
|
|
|
84
80
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
85
81
|
className: classes.tooltip
|
|
86
82
|
}, /*#__PURE__*/_react.default.createElement(HelpIcon, {
|
|
87
|
-
className:
|
|
83
|
+
className: "".concat(classes.infoIcon)
|
|
88
84
|
})))), description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
89
85
|
className: classes.description
|
|
90
86
|
}, description)), !(0, _object.objectIsEmpty)(aditionalInfo) && /*#__PURE__*/_react.default.createElement("div", {
|
|
91
|
-
className:
|
|
87
|
+
className: "".concat(classes.column, " ").concat(classes.aditionalInfoColumn)
|
|
92
88
|
}, !!aditionalInfo.title && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
93
89
|
className: classes.aditionalInfoTitle,
|
|
94
90
|
variant: "small",
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _shadowUtils = require("../../utils/shadowUtils");
|
|
8
8
|
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$Palette$shadow, _theme$Palette$action, _theme$Palette$action2, _theme$Palette$action3, _theme$Palette$action4, _theme$Palette$action5, _theme$Palette$action6, _theme$Palette$action7, _theme$Palette$action8, _theme$Palette$action9, _theme$Palette$action10, _theme$Palette$action11, _theme$Palette$action12, _theme$Palette$action13;
|
|
9
10
|
let {
|
|
10
11
|
theme
|
|
11
12
|
} = _ref;
|
|
@@ -85,10 +86,10 @@ const retrieveStyle = _ref => {
|
|
|
85
86
|
whiteApareance: {
|
|
86
87
|
backgroundColor: theme.Palette.light['01'],
|
|
87
88
|
boxShadow: (0, _shadowUtils.getShadow)({
|
|
88
|
-
color: theme.Palette.shadows
|
|
89
|
+
color: (_theme$Palette$shadow = theme.Palette.shadows) === null || _theme$Palette$shadow === void 0 ? void 0 : _theme$Palette$shadow.grayscale,
|
|
89
90
|
level: 1
|
|
90
91
|
}),
|
|
91
|
-
outline:
|
|
92
|
+
outline: "2px solid transparent",
|
|
92
93
|
'& $titleText, & $aditionalInfoTitle': {
|
|
93
94
|
color: theme.Palette.dark['05']
|
|
94
95
|
},
|
|
@@ -112,26 +113,26 @@ const retrieveStyle = _ref => {
|
|
|
112
113
|
},
|
|
113
114
|
whiteSelectedContainer: {
|
|
114
115
|
boxShadow: 'none',
|
|
115
|
-
outline:
|
|
116
|
+
outline: "2px solid ".concat(((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.accent['05']) || theme.Palette.accent['05']),
|
|
116
117
|
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
117
|
-
color: theme.Palette.actions
|
|
118
|
+
color: ((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.accent['05']) || theme.Palette.accent['05']
|
|
118
119
|
},
|
|
119
120
|
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
120
|
-
fill: theme.Palette.actions
|
|
121
|
+
fill: ((_theme$Palette$action3 = theme.Palette.actions) === null || _theme$Palette$action3 === void 0 ? void 0 : _theme$Palette$action3.accent['05']) || theme.Palette.accent['05']
|
|
121
122
|
},
|
|
122
123
|
'&:hover': {
|
|
123
|
-
backgroundColor: theme.Palette.actions
|
|
124
|
-
outline:
|
|
124
|
+
backgroundColor: ((_theme$Palette$action4 = theme.Palette.actions) === null || _theme$Palette$action4 === void 0 ? void 0 : _theme$Palette$action4.accent['01']) || theme.Palette.accent['01'],
|
|
125
|
+
outline: "2px solid ".concat(((_theme$Palette$action5 = theme.Palette.actions) === null || _theme$Palette$action5 === void 0 ? void 0 : _theme$Palette$action5.accent['05']) || theme.Palette.accent['05'])
|
|
125
126
|
},
|
|
126
127
|
'&:active': {
|
|
127
|
-
backgroundColor: theme.Palette.actions
|
|
128
|
-
outline:
|
|
128
|
+
backgroundColor: ((_theme$Palette$action6 = theme.Palette.actions) === null || _theme$Palette$action6 === void 0 ? void 0 : _theme$Palette$action6.accent['02']) || theme.Palette.accent['02'],
|
|
129
|
+
outline: "2px solid ".concat(((_theme$Palette$action7 = theme.Palette.actions) === null || _theme$Palette$action7 === void 0 ? void 0 : _theme$Palette$action7.accent['05']) || theme.Palette.accent['05'])
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
132
|
whiteDisabledContainer: {
|
|
132
133
|
backgroundColor: theme.Palette.light['03'],
|
|
133
134
|
boxShadow: 'none',
|
|
134
|
-
outline:
|
|
135
|
+
outline: "2px solid transparent",
|
|
135
136
|
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
136
137
|
color: theme.Palette.gray['04']
|
|
137
138
|
},
|
|
@@ -140,14 +141,14 @@ const retrieveStyle = _ref => {
|
|
|
140
141
|
},
|
|
141
142
|
'&:hover': {
|
|
142
143
|
backgroundColor: theme.Palette.light['03'],
|
|
143
|
-
outline:
|
|
144
|
+
outline: "2px solid transparent",
|
|
144
145
|
pointerEvents: 'none'
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
// Gray apareance
|
|
148
149
|
grayApareance: {
|
|
149
150
|
backgroundColor: theme.Palette.light['03'],
|
|
150
|
-
outline:
|
|
151
|
+
outline: "1px solid ".concat(theme.Palette.light['05']),
|
|
151
152
|
'& $titleText, & $aditionalInfoTitle': {
|
|
152
153
|
color: theme.Palette.dark['05']
|
|
153
154
|
},
|
|
@@ -168,19 +169,19 @@ const retrieveStyle = _ref => {
|
|
|
168
169
|
}
|
|
169
170
|
},
|
|
170
171
|
graySelectedContainer: {
|
|
171
|
-
backgroundColor: theme.Palette.actions
|
|
172
|
-
outline:
|
|
172
|
+
backgroundColor: ((_theme$Palette$action8 = theme.Palette.actions) === null || _theme$Palette$action8 === void 0 ? void 0 : _theme$Palette$action8.accent['01']) || theme.Palette.accent['01'],
|
|
173
|
+
outline: "2px solid ".concat(((_theme$Palette$action9 = theme.Palette.actions) === null || _theme$Palette$action9 === void 0 ? void 0 : _theme$Palette$action9.accent['03']) || theme.Palette.accent['03']),
|
|
173
174
|
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
174
|
-
color: theme.Palette.actions
|
|
175
|
+
color: ((_theme$Palette$action10 = theme.Palette.actions) === null || _theme$Palette$action10 === void 0 ? void 0 : _theme$Palette$action10.accent['05']) || theme.Palette.accent['05']
|
|
175
176
|
},
|
|
176
177
|
'& $icon path, & $infoIcon path, & $checkIcon path': {
|
|
177
|
-
fill: theme.Palette.actions
|
|
178
|
+
fill: ((_theme$Palette$action11 = theme.Palette.actions) === null || _theme$Palette$action11 === void 0 ? void 0 : _theme$Palette$action11.accent['05']) || theme.Palette.accent['05']
|
|
178
179
|
},
|
|
179
180
|
'&:hover': {
|
|
180
|
-
backgroundColor: theme.Palette.actions
|
|
181
|
+
backgroundColor: ((_theme$Palette$action12 = theme.Palette.actions) === null || _theme$Palette$action12 === void 0 ? void 0 : _theme$Palette$action12.accent['02']) || theme.Palette.accent['02']
|
|
181
182
|
},
|
|
182
183
|
'&:active': {
|
|
183
|
-
backgroundColor: theme.Palette.actions
|
|
184
|
+
backgroundColor: ((_theme$Palette$action13 = theme.Palette.actions) === null || _theme$Palette$action13 === void 0 ? void 0 : _theme$Palette$action13.accent['03']) || theme.Palette.accent['03'],
|
|
184
185
|
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
185
186
|
color: theme.Palette.light['01']
|
|
186
187
|
},
|
|
@@ -191,7 +192,7 @@ const retrieveStyle = _ref => {
|
|
|
191
192
|
},
|
|
192
193
|
grayDisabledContainer: {
|
|
193
194
|
backgroundColor: theme.Palette.light['03'],
|
|
194
|
-
outline:
|
|
195
|
+
outline: "2px solid ".concat(theme.Palette.light['05']),
|
|
195
196
|
'& $titleText, & $description, & $aditionalInfoTitle, & $aditionalInfoDescription': {
|
|
196
197
|
color: theme.Palette.gray['04']
|
|
197
198
|
},
|
|
@@ -37,7 +37,10 @@ const ListOption = _ref => {
|
|
|
37
37
|
setOpenMenu(true);
|
|
38
38
|
} else setOpenMenu(!openMenu);
|
|
39
39
|
};
|
|
40
|
-
const optionHeight = (0, _react.useMemo)(() =>
|
|
40
|
+
const optionHeight = (0, _react.useMemo)(() => {
|
|
41
|
+
var _optionRef$current;
|
|
42
|
+
return openMenu && open ? options.length * (optionRef === null || optionRef === void 0 || (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.clientHeight) : 0;
|
|
43
|
+
}, [openMenu, open]);
|
|
41
44
|
const hasSelectedItem = (0, _react.useMemo)(() => options.some(opt => opt.link === location), [location, options]);
|
|
42
45
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Option.default, {
|
|
43
46
|
classes: classes,
|
|
@@ -24,13 +24,13 @@ const LogosContainer = _ref => {
|
|
|
24
24
|
showBigLogo
|
|
25
25
|
} = _ref;
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
-
className:
|
|
27
|
+
className: "".concat(containerClassName, " ").concat(_stylesModule.default.logoContainer)
|
|
28
28
|
}, BigLogo && /*#__PURE__*/_react.default.createElement(_DynamicIcon.default, {
|
|
29
29
|
Icon: BigLogo,
|
|
30
|
-
className:
|
|
30
|
+
className: "".concat(bigLogoClassName, " ").concat(_stylesModule.default.logo, " ").concat(showBigLogo && _stylesModule.default.visibleIcon)
|
|
31
31
|
}), SmallLogo && /*#__PURE__*/_react.default.createElement(_DynamicIcon.default, {
|
|
32
32
|
Icon: SmallLogo,
|
|
33
|
-
className:
|
|
33
|
+
className: "".concat(smallLogoClassName, " ").concat(_stylesModule.default.logo, " ").concat(!showBigLogo && _stylesModule.default.visibleIcon)
|
|
34
34
|
}), badgeContent && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
35
35
|
className: badgeClassName
|
|
36
36
|
}, badgeContent));
|
|
@@ -55,53 +55,31 @@ const Option = _ref => {
|
|
|
55
55
|
className: classes.tooltip
|
|
56
56
|
};
|
|
57
57
|
return /*#__PURE__*/_react.default.createElement(Container, containerProps, /*#__PURE__*/_react.default.createElement(_ListItem.default, {
|
|
58
|
-
className:
|
|
59
|
-
${_stylesModule.default.option}
|
|
60
|
-
${classes.option}
|
|
61
|
-
${isSelected && `${_stylesModule.default.optionSelected} ${classes.optionSelected}`}
|
|
62
|
-
${isSelected && open && classes.optionSelectedOpened}
|
|
63
|
-
${isSelected && !isSelectedGroup && !withTooltip && _stylesModule.default.removeEvents}
|
|
64
|
-
`,
|
|
58
|
+
className: "\n ".concat(_stylesModule.default.option, "\n ").concat(classes.option, "\n ").concat(isSelected && "".concat(_stylesModule.default.optionSelected, " ").concat(classes.optionSelected), "\n ").concat(isSelected && open && classes.optionSelectedOpened, "\n ").concat(isSelected && !isSelectedGroup && !withTooltip && _stylesModule.default.removeEvents, "\n "),
|
|
65
59
|
onClick: onClick || handleRedirection,
|
|
66
60
|
ref: optionRef
|
|
67
61
|
}, /*#__PURE__*/_react.default.createElement(_ListItemIcon.default, {
|
|
68
|
-
className:
|
|
69
|
-
${classes.optionIconContainer}
|
|
70
|
-
${isSelected && `${classes.optionIconContainerSelected} ${_stylesModule.default.optionIconContainerSelected}`}
|
|
71
|
-
${_stylesModule.default.optionIconContainer}
|
|
72
|
-
`
|
|
62
|
+
className: "\n ".concat(classes.optionIconContainer, "\n ").concat(isSelected && "".concat(classes.optionIconContainerSelected, " ").concat(_stylesModule.default.optionIconContainerSelected), "\n ").concat(_stylesModule.default.optionIconContainer, "\n ")
|
|
73
63
|
}, IconInactive && ((0, _componentUtils.isUTIcon)(IconInactive) ? /*#__PURE__*/_react.default.createElement(_UTIcon.default, _extends({
|
|
74
64
|
name: IconInactive,
|
|
75
|
-
className:
|
|
65
|
+
className: "".concat(classes.optionIcon, " ").concat(_stylesModule.default.optionIcon)
|
|
76
66
|
}, iconProps.inactive)) : /*#__PURE__*/_react.default.createElement(IconInactive, {
|
|
77
|
-
className:
|
|
67
|
+
className: "".concat(classes.optionIcon, " ").concat(_stylesModule.default.optionIcon)
|
|
78
68
|
})), IconActive && ((0, _componentUtils.isUTIcon)(IconActive) ? /*#__PURE__*/_react.default.createElement(_UTIcon.default, _extends({
|
|
79
69
|
name: IconActive,
|
|
80
|
-
className:
|
|
70
|
+
className: "".concat(classes.optionIcon, " ").concat(_stylesModule.default.optionIconSelected, " ").concat(classes.optionIconSelected)
|
|
81
71
|
}, iconProps.active)) : /*#__PURE__*/_react.default.createElement(IconActive, {
|
|
82
|
-
className:
|
|
72
|
+
className: "".concat(classes.optionIcon, " ").concat(_stylesModule.default.optionIconSelected, " ").concat(classes.optionIconSelected)
|
|
83
73
|
}))), /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
|
|
84
74
|
disableTypography: true,
|
|
85
|
-
className:
|
|
86
|
-
${classes.optionLabel}
|
|
87
|
-
${isSelected && classes.optionLabelSelected}
|
|
88
|
-
${!open && _stylesModule.default.hidden}
|
|
89
|
-
`,
|
|
75
|
+
className: "\n ".concat(classes.optionLabel, "\n ").concat(isSelected && classes.optionLabelSelected, "\n ").concat(!open && _stylesModule.default.hidden, "\n "),
|
|
90
76
|
primary: label
|
|
91
77
|
}), !open && labelAlwaysVisible && /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
|
|
92
78
|
disableTypography: true,
|
|
93
|
-
className:
|
|
94
|
-
${_stylesModule.default.optionLabelBottom}
|
|
95
|
-
${classes.optionLabelBottom}
|
|
96
|
-
${isSelected && classes.optionLabelBottomSelected}
|
|
97
|
-
`,
|
|
79
|
+
className: "\n ".concat(_stylesModule.default.optionLabelBottom, "\n ").concat(classes.optionLabelBottom, "\n ").concat(isSelected && classes.optionLabelBottomSelected, "\n "),
|
|
98
80
|
primary: label
|
|
99
81
|
}), open && withToggleArrow && /*#__PURE__*/_react.default.createElement(_ExpandMore.default, {
|
|
100
|
-
className:
|
|
101
|
-
${_stylesModule.default.toggleArrow}
|
|
102
|
-
${classes.toggleArrow}
|
|
103
|
-
${toggleArrowActive && _stylesModule.default.toggleArrowActive}
|
|
104
|
-
`
|
|
82
|
+
className: "\n ".concat(_stylesModule.default.toggleArrow, "\n ").concat(classes.toggleArrow, "\n ").concat(toggleArrowActive && _stylesModule.default.toggleArrowActive, "\n ")
|
|
105
83
|
})));
|
|
106
84
|
};
|
|
107
85
|
Option.propTypes = {
|
|
@@ -24,9 +24,9 @@ const Toggler = _ref => {
|
|
|
24
24
|
subtitle
|
|
25
25
|
} = _ref;
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
-
className:
|
|
27
|
+
className: "".concat(classes.togglerContainer, " ").concat(_stylesModule.default.togglerContainer)
|
|
28
28
|
}, open ? /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
-
className:
|
|
29
|
+
className: "".concat(classes.closeDrawerContainer, " ").concat(_stylesModule.default.closeDrawerContainer)
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
31
31
|
onClick: toggleDrawer
|
|
32
32
|
}, /*#__PURE__*/_react.default.createElement(_Close.default, {
|
|
@@ -58,11 +58,7 @@ const UTSidebar = _ref => {
|
|
|
58
58
|
variant: isTabletOrDesktop ? 'persistent' : 'temporary',
|
|
59
59
|
classes: {
|
|
60
60
|
root: classes.drawerRoot,
|
|
61
|
-
paper:
|
|
62
|
-
${classes.drawer}
|
|
63
|
-
${_stylesModule.default.drawer}
|
|
64
|
-
${open ? classes.openedDrawer : _stylesModule.default.removeShadow}
|
|
65
|
-
`
|
|
61
|
+
paper: "\n ".concat(classes.drawer, "\n ").concat(_stylesModule.default.drawer, "\n ").concat(open ? classes.openedDrawer : _stylesModule.default.removeShadow, "\n ")
|
|
66
62
|
},
|
|
67
63
|
ModalProps: {
|
|
68
64
|
onClose: handleClose
|
|
@@ -87,9 +83,9 @@ const UTSidebar = _ref => {
|
|
|
87
83
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
88
84
|
className: _stylesModule.default.sidebarContent
|
|
89
85
|
}, /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
90
|
-
className:
|
|
86
|
+
className: "".concat(classes.list, " ").concat(open && classes.listOpened, " ").concat(_stylesModule.default.list)
|
|
91
87
|
}, /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
92
|
-
className:
|
|
88
|
+
className: "".concat(!open && _stylesModule.default.scrollbarClosed, " ").concat(classes.listScrollbar),
|
|
93
89
|
options: {
|
|
94
90
|
suppressScrollX: true
|
|
95
91
|
}
|
|
@@ -9,6 +9,7 @@ var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.
|
|
|
9
9
|
var _fontSizesModule = _interopRequireDefault(require("../../scss/variables/fontSizes.module.scss"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const retrieveStyle = _ref => {
|
|
12
|
+
var _theme$UTSidebar, _theme$UTSidebar2, _theme$UTSidebar3, _theme$UTSidebar4, _theme$UTSidebar5, _theme$UTSidebar6, _theme$UTSidebar7, _theme$UTSidebar8, _theme$UTSidebar9, _theme$UTSidebar10, _theme$UTSidebar11, _theme$UTSidebar12, _theme$UTSidebar13, _theme$UTSidebar14, _theme$UTSidebar15, _theme$UTSidebar16;
|
|
12
13
|
let {
|
|
13
14
|
theme
|
|
14
15
|
} = _ref;
|
|
@@ -107,24 +108,24 @@ const retrieveStyle = _ref => {
|
|
|
107
108
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTSidebar', 'listOpened', 'width'])
|
|
108
109
|
},
|
|
109
110
|
logoBadgeOpen: {
|
|
110
|
-
backgroundColor: theme
|
|
111
|
-
borderRadius: theme
|
|
112
|
-
color: theme
|
|
113
|
-
fontSize: theme
|
|
114
|
-
fontWeight: theme
|
|
115
|
-
margin: theme
|
|
116
|
-
maxWidth: theme
|
|
117
|
-
padding: theme
|
|
111
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTSidebar = theme.UTSidebar) === null || _theme$UTSidebar === void 0 || (_theme$UTSidebar = _theme$UTSidebar.logoBadgeOpen) === null || _theme$UTSidebar === void 0 ? void 0 : _theme$UTSidebar.backgroundColor,
|
|
112
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTSidebar2 = theme.UTSidebar) === null || _theme$UTSidebar2 === void 0 || (_theme$UTSidebar2 = _theme$UTSidebar2.logoBadgeOpen) === null || _theme$UTSidebar2 === void 0 ? void 0 : _theme$UTSidebar2.borderRadius) || 8,
|
|
113
|
+
color: theme === null || theme === void 0 || (_theme$UTSidebar3 = theme.UTSidebar) === null || _theme$UTSidebar3 === void 0 || (_theme$UTSidebar3 = _theme$UTSidebar3.logoBadgeOpen) === null || _theme$UTSidebar3 === void 0 ? void 0 : _theme$UTSidebar3.color,
|
|
114
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTSidebar4 = theme.UTSidebar) === null || _theme$UTSidebar4 === void 0 || (_theme$UTSidebar4 = _theme$UTSidebar4.logoBadgeOpen) === null || _theme$UTSidebar4 === void 0 ? void 0 : _theme$UTSidebar4.fontSize) || _fontSizesModule.default.small,
|
|
115
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTSidebar5 = theme.UTSidebar) === null || _theme$UTSidebar5 === void 0 || (_theme$UTSidebar5 = _theme$UTSidebar5.logoBadgeOpen) === null || _theme$UTSidebar5 === void 0 ? void 0 : _theme$UTSidebar5.fontWeight) || 600,
|
|
116
|
+
margin: (theme === null || theme === void 0 || (_theme$UTSidebar6 = theme.UTSidebar) === null || _theme$UTSidebar6 === void 0 || (_theme$UTSidebar6 = _theme$UTSidebar6.logoBadgeOpen) === null || _theme$UTSidebar6 === void 0 ? void 0 : _theme$UTSidebar6.margin) || '12px auto 24px',
|
|
117
|
+
maxWidth: (theme === null || theme === void 0 || (_theme$UTSidebar7 = theme.UTSidebar) === null || _theme$UTSidebar7 === void 0 || (_theme$UTSidebar7 = _theme$UTSidebar7.logoBadgeOpen) === null || _theme$UTSidebar7 === void 0 ? void 0 : _theme$UTSidebar7.maxWidth) || '96%',
|
|
118
|
+
padding: (theme === null || theme === void 0 || (_theme$UTSidebar8 = theme.UTSidebar) === null || _theme$UTSidebar8 === void 0 || (_theme$UTSidebar8 = _theme$UTSidebar8.logoBadgeOpen) === null || _theme$UTSidebar8 === void 0 ? void 0 : _theme$UTSidebar8.padding) || '2px 8px'
|
|
118
119
|
},
|
|
119
120
|
logoBadgeClose: {
|
|
120
|
-
backgroundColor: theme
|
|
121
|
-
borderRadius: theme
|
|
122
|
-
color: theme
|
|
123
|
-
fontSize: theme
|
|
124
|
-
fontWeight: theme
|
|
125
|
-
margin: theme
|
|
126
|
-
maxWidth: theme
|
|
127
|
-
padding: theme
|
|
121
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTSidebar9 = theme.UTSidebar) === null || _theme$UTSidebar9 === void 0 || (_theme$UTSidebar9 = _theme$UTSidebar9.logoBadgeClose) === null || _theme$UTSidebar9 === void 0 ? void 0 : _theme$UTSidebar9.backgroundColor,
|
|
122
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTSidebar10 = theme.UTSidebar) === null || _theme$UTSidebar10 === void 0 || (_theme$UTSidebar10 = _theme$UTSidebar10.logoBadgeClose) === null || _theme$UTSidebar10 === void 0 ? void 0 : _theme$UTSidebar10.borderRadius) || 8,
|
|
123
|
+
color: theme === null || theme === void 0 || (_theme$UTSidebar11 = theme.UTSidebar) === null || _theme$UTSidebar11 === void 0 || (_theme$UTSidebar11 = _theme$UTSidebar11.logoBadgeClose) === null || _theme$UTSidebar11 === void 0 ? void 0 : _theme$UTSidebar11.color,
|
|
124
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTSidebar12 = theme.UTSidebar) === null || _theme$UTSidebar12 === void 0 || (_theme$UTSidebar12 = _theme$UTSidebar12.logoBadgeClose) === null || _theme$UTSidebar12 === void 0 ? void 0 : _theme$UTSidebar12.fontSize) || _fontSizesModule.default.small,
|
|
125
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTSidebar13 = theme.UTSidebar) === null || _theme$UTSidebar13 === void 0 || (_theme$UTSidebar13 = _theme$UTSidebar13.logoBadgeClose) === null || _theme$UTSidebar13 === void 0 ? void 0 : _theme$UTSidebar13.fontWeight) || 600,
|
|
126
|
+
margin: (theme === null || theme === void 0 || (_theme$UTSidebar14 = theme.UTSidebar) === null || _theme$UTSidebar14 === void 0 || (_theme$UTSidebar14 = _theme$UTSidebar14.logoBadgeClose) === null || _theme$UTSidebar14 === void 0 ? void 0 : _theme$UTSidebar14.margin) || '12px auto 24px',
|
|
127
|
+
maxWidth: (theme === null || theme === void 0 || (_theme$UTSidebar15 = theme.UTSidebar) === null || _theme$UTSidebar15 === void 0 || (_theme$UTSidebar15 = _theme$UTSidebar15.logoBadgeClose) === null || _theme$UTSidebar15 === void 0 ? void 0 : _theme$UTSidebar15.maxWidth) || '96%',
|
|
128
|
+
padding: (theme === null || theme === void 0 || (_theme$UTSidebar16 = theme.UTSidebar) === null || _theme$UTSidebar16 === void 0 || (_theme$UTSidebar16 = _theme$UTSidebar16.logoBadgeClose) === null || _theme$UTSidebar16 === void 0 ? void 0 : _theme$UTSidebar16.padding) || '2px 8px'
|
|
128
129
|
},
|
|
129
130
|
option: {
|
|
130
131
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTSidebar', 'option', 'backgroundColor']),
|
|
@@ -10,11 +10,12 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const SkeletonWrapper = (0, _reactSkeletor.createSkeletonElement)('div', _stylesModule.default.skeleton);
|
|
12
12
|
const hasMock = string => {
|
|
13
|
+
var _string$props$childre;
|
|
13
14
|
if (string && string.props.source) return string.props.source.toString().includes('MOCK');
|
|
14
|
-
if (string && string.props.children) return string.props.children.toString().includes('MOCK') || string.props.children
|
|
15
|
+
if (string && string.props.children) return string.props.children.toString().includes('MOCK') || ((_string$props$childre = string.props.children) === null || _string$props$childre === void 0 || (_string$props$childre = _string$props$childre.props) === null || _string$props$childre === void 0 || (_string$props$childre = _string$props$childre.children) === null || _string$props$childre === void 0 ? void 0 : _string$props$childre.toString().includes('MOCK'));
|
|
15
16
|
};
|
|
16
17
|
const hiddenChildren = child => /*#__PURE__*/_react.default.cloneElement(child, {
|
|
17
|
-
className:
|
|
18
|
+
className: "".concat(child.className, " ").concat(_stylesModule.default.skeletonHiddenChild)
|
|
18
19
|
});
|
|
19
20
|
class Skeleton extends _react.default.PureComponent {
|
|
20
21
|
render() {
|
|
@@ -26,9 +26,9 @@ const UTStatus = _ref => {
|
|
|
26
26
|
variant,
|
|
27
27
|
withoutIcon
|
|
28
28
|
} = _ref;
|
|
29
|
-
const StatusIcon = Icon
|
|
29
|
+
const StatusIcon = Icon !== null && Icon !== void 0 ? Icon : (0, _theme.defaultIconMapper)(variant);
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement(_UTSkeleton.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
-
className:
|
|
31
|
+
className: "".concat(classes.root, " ").concat(className),
|
|
32
32
|
title: title
|
|
33
33
|
}, withoutIcon ? null : /*#__PURE__*/_react.default.createElement(StatusIcon, {
|
|
34
34
|
className: classes.icon
|
|
@@ -16,15 +16,13 @@ const Connectors = _ref => {
|
|
|
16
16
|
isCompleted,
|
|
17
17
|
numberOfSteps
|
|
18
18
|
} = _ref;
|
|
19
|
-
const connectorMaxWidth =
|
|
20
|
-
const containerMaxWidth =
|
|
19
|
+
const connectorMaxWidth = "".concat(100 / (numberOfSteps - 1), "%");
|
|
20
|
+
const containerMaxWidth = "".concat(100 - 100 / numberOfSteps, "%");
|
|
21
21
|
const connectors = new Array(numberOfSteps - 1).fill(null).map((key, index) => /*#__PURE__*/_react.default.createElement("div", {
|
|
22
|
-
className:
|
|
23
|
-
${_stylesModule.default.connector} ${classes.connector} ${isCompleted(index + 1) && classes.coloredProgress}
|
|
24
|
-
`
|
|
22
|
+
className: "\n ".concat(_stylesModule.default.connector, " ").concat(classes.connector, " ").concat(isCompleted(index + 1) && classes.coloredProgress, "\n ")
|
|
25
23
|
// eslint-disable-next-line react/no-array-index-key
|
|
26
24
|
,
|
|
27
|
-
key:
|
|
25
|
+
key: "connector_".concat(index),
|
|
28
26
|
style: {
|
|
29
27
|
maxWidth: withPadding ? connectorMaxWidth : null,
|
|
30
28
|
height: 2
|
|
@@ -33,7 +31,7 @@ const Connectors = _ref => {
|
|
|
33
31
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
32
|
className: _stylesModule.default.wrapper
|
|
35
33
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
-
className:
|
|
34
|
+
className: "".concat(_stylesModule.default.connectorContainer),
|
|
37
35
|
style: {
|
|
38
36
|
maxWidth: withPadding ? containerMaxWidth : null
|
|
39
37
|
}
|