@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
|
@@ -30,7 +30,7 @@ const retrieveStyle = _ref => {
|
|
|
30
30
|
labelIcon: {
|
|
31
31
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'inputIcon', 'height'], '12px'),
|
|
32
32
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'inputIcon', 'width'], 'auto'),
|
|
33
|
-
fill: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'inputIcon', 'fill'],
|
|
33
|
+
fill: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'inputIcon', 'fill'], "".concat(_colorsModule.default.gray)),
|
|
34
34
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'inputIcon', 'padding'], '0px 5px 0px 0px')
|
|
35
35
|
},
|
|
36
36
|
labelContainer: {
|
|
@@ -54,20 +54,20 @@ const retrieveMuiTheme = (theme, muiTheme) => {
|
|
|
54
54
|
},
|
|
55
55
|
root: {
|
|
56
56
|
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
57
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'border'],
|
|
57
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
58
58
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
59
59
|
},
|
|
60
60
|
'&$focused $notchedOutline': {
|
|
61
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'focused', 'border'],
|
|
61
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'focused', 'border'], "2px solid ".concat(_colorsModule.default.primary)),
|
|
62
62
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
63
63
|
},
|
|
64
64
|
'&$disabled $notchedOutline': {
|
|
65
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'disabled', 'border'],
|
|
65
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'disabled', 'border'], "1px solid ".concat(_colorsModule.default.gray)),
|
|
66
66
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
notchedOutline: {
|
|
70
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'unfocused', 'border'],
|
|
70
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'unfocused', 'border'], "1px solid ".concat(theme.Palette.error['05'])),
|
|
71
71
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'notchedOutline', 'hover', 'borderColor'], 'none')
|
|
72
72
|
}
|
|
73
73
|
},
|
|
@@ -81,25 +81,25 @@ const retrieveMuiTheme = (theme, muiTheme) => {
|
|
|
81
81
|
},
|
|
82
82
|
underline: {
|
|
83
83
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
84
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'],
|
|
84
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
85
85
|
},
|
|
86
86
|
'&:hover:not($disabled):before': {
|
|
87
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'],
|
|
87
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
88
88
|
},
|
|
89
89
|
'&$disabled:before': {
|
|
90
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'],
|
|
90
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
91
91
|
},
|
|
92
92
|
'&:before': {
|
|
93
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'],
|
|
93
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
94
94
|
},
|
|
95
95
|
'&$focused:after': {
|
|
96
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'],
|
|
96
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
97
97
|
},
|
|
98
98
|
'&:after': {
|
|
99
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'],
|
|
99
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
100
100
|
},
|
|
101
101
|
'&$error:after': {
|
|
102
|
-
borderBottom:
|
|
102
|
+
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
103
103
|
borderBottomColor: theme.Palette.error['05']
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -24,13 +24,13 @@ const ToggleOption = _ref => {
|
|
|
24
24
|
} = _ref;
|
|
25
25
|
const onHandleClick = () => onChange(value);
|
|
26
26
|
const IconComponent = Icon && (SelectedIcon && isSelected ? /*#__PURE__*/_react.default.createElement(SelectedIcon, {
|
|
27
|
-
className:
|
|
27
|
+
className: "".concat(classes.icon, " ").concat(iconClassName)
|
|
28
28
|
}) : /*#__PURE__*/_react.default.createElement(Icon, {
|
|
29
|
-
className:
|
|
29
|
+
className: "".concat(classes.icon, " ").concat(isSelected ? classes.selectedIcon : classes.unselectedIcon, " ").concat(iconClassName)
|
|
30
30
|
}));
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
32
32
|
onClick: onHandleClick,
|
|
33
|
-
className:
|
|
33
|
+
className: "".concat(classes.option, " ").concat(isSelected && classes.selectedOption, " ").concat(className),
|
|
34
34
|
keyName: keyName
|
|
35
35
|
}, Icon ? IconComponent : /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
36
36
|
variant: "small",
|
|
@@ -20,7 +20,7 @@ const UTToggle = _ref => {
|
|
|
20
20
|
orientation,
|
|
21
21
|
classes
|
|
22
22
|
} = _ref;
|
|
23
|
-
const containerStyle =
|
|
23
|
+
const containerStyle = "".concat(classes.container, " ").concat(orientation === 'horizontal' ? classes.horizontalContainer : classes.verticalContainer, " ").concat(className, " ");
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
25
|
className: containerStyle
|
|
26
26
|
}, options.map(option => /*#__PURE__*/_react.default.createElement(_ToggleOption.default, {
|
|
@@ -31,7 +31,7 @@ const UTToggle = _ref => {
|
|
|
31
31
|
SelectedIcon: option.SelectedIcon,
|
|
32
32
|
isSelected: option.value === selectedOption,
|
|
33
33
|
onChange: onChangeOption,
|
|
34
|
-
keyName:
|
|
34
|
+
keyName: "toggle-option-".concat(option.value),
|
|
35
35
|
className: optionClassName,
|
|
36
36
|
iconClassName: option.iconClassName,
|
|
37
37
|
classes: classes
|
|
@@ -42,7 +42,7 @@ const retrieveStyle = _ref => {
|
|
|
42
42
|
pointerEvents: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'selectedOption', 'pointerEvents'], 'none')
|
|
43
43
|
},
|
|
44
44
|
selectedLabel: {
|
|
45
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'selectedLabel', 'color'],
|
|
45
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'selectedLabel', 'color'], "".concat(_colorsModule.default.white))
|
|
46
46
|
},
|
|
47
47
|
unSelectedLabel: {
|
|
48
48
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'unSelectedLabel', 'color'])
|
|
@@ -55,7 +55,7 @@ const retrieveStyle = _ref => {
|
|
|
55
55
|
fill: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'unselectedIcon', 'fill'])
|
|
56
56
|
},
|
|
57
57
|
selectedIcon: {
|
|
58
|
-
fill: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'selectedIcon', 'fill'],
|
|
58
|
+
fill: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'selectedIcon', 'fill'], "".concat(_colorsModule.default.white))
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
};
|
|
@@ -45,11 +45,11 @@ const UTTooltip = _ref => {
|
|
|
45
45
|
duration: duration,
|
|
46
46
|
arrow: arrow,
|
|
47
47
|
hideOnClick: hideOnClick,
|
|
48
|
-
className:
|
|
48
|
+
className: "".concat(theme.container, " ").concat(forceArrow && _stylesModule.default.arrow),
|
|
49
49
|
interactive: interactive
|
|
50
50
|
}, tippyProps, {
|
|
51
51
|
content: /*#__PURE__*/_react.default.isValidElement(content) ? content : /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
52
|
-
className:
|
|
52
|
+
className: "".concat(_stylesModule.default.baseContent, " ").concat(stringContentClassName),
|
|
53
53
|
colorTheme: "light",
|
|
54
54
|
variant: "xsmall",
|
|
55
55
|
withMarkdown: true
|
|
@@ -5,24 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
const retrieveStyle = _ref => {
|
|
8
|
+
var _theme$UTTooltip, _theme$UTTooltip2, _theme$UTTooltip3, _theme$UTTooltip4, _theme$UTTooltip5, _theme$UTTooltip6, _theme$UTTooltip7, _theme$UTTooltip8, _theme$UTTooltip9;
|
|
8
9
|
let {
|
|
9
10
|
theme
|
|
10
11
|
} = _ref;
|
|
11
12
|
return {
|
|
12
13
|
container: {
|
|
13
|
-
backgroundColor: theme
|
|
14
|
-
borderRadius: theme
|
|
15
|
-
boxShadow: theme
|
|
16
|
-
padding: theme
|
|
14
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTTooltip = theme.UTTooltip) === null || _theme$UTTooltip === void 0 || (_theme$UTTooltip = _theme$UTTooltip.container) === null || _theme$UTTooltip === void 0 ? void 0 : _theme$UTTooltip.backgroundColor,
|
|
15
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTTooltip2 = theme.UTTooltip) === null || _theme$UTTooltip2 === void 0 || (_theme$UTTooltip2 = _theme$UTTooltip2.container) === null || _theme$UTTooltip2 === void 0 ? void 0 : _theme$UTTooltip2.borderRadius,
|
|
16
|
+
boxShadow: theme === null || theme === void 0 || (_theme$UTTooltip3 = theme.UTTooltip) === null || _theme$UTTooltip3 === void 0 || (_theme$UTTooltip3 = _theme$UTTooltip3.container) === null || _theme$UTTooltip3 === void 0 ? void 0 : _theme$UTTooltip3.boxShadow,
|
|
17
|
+
padding: theme === null || theme === void 0 || (_theme$UTTooltip4 = theme.UTTooltip) === null || _theme$UTTooltip4 === void 0 || (_theme$UTTooltip4 = _theme$UTTooltip4.container) === null || _theme$UTTooltip4 === void 0 ? void 0 : _theme$UTTooltip4.padding,
|
|
17
18
|
'& > .tippy-arrow': {
|
|
18
|
-
display: theme
|
|
19
|
+
display: theme === null || theme === void 0 || (_theme$UTTooltip5 = theme.UTTooltip) === null || _theme$UTTooltip5 === void 0 || (_theme$UTTooltip5 = _theme$UTTooltip5.arrow) === null || _theme$UTTooltip5 === void 0 ? void 0 : _theme$UTTooltip5.display
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
stringContent: {
|
|
22
|
-
fontSize: theme
|
|
23
|
-
fontWeight: theme
|
|
24
|
-
lineHeight: theme
|
|
25
|
-
color: theme
|
|
23
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTTooltip6 = theme.UTTooltip) === null || _theme$UTTooltip6 === void 0 || (_theme$UTTooltip6 = _theme$UTTooltip6.stringContent) === null || _theme$UTTooltip6 === void 0 ? void 0 : _theme$UTTooltip6.fontSize,
|
|
24
|
+
fontWeight: theme === null || theme === void 0 || (_theme$UTTooltip7 = theme.UTTooltip) === null || _theme$UTTooltip7 === void 0 || (_theme$UTTooltip7 = _theme$UTTooltip7.stringContent) === null || _theme$UTTooltip7 === void 0 ? void 0 : _theme$UTTooltip7.fontWeight,
|
|
25
|
+
lineHeight: theme === null || theme === void 0 || (_theme$UTTooltip8 = theme.UTTooltip) === null || _theme$UTTooltip8 === void 0 || (_theme$UTTooltip8 = _theme$UTTooltip8.stringContent) === null || _theme$UTTooltip8 === void 0 ? void 0 : _theme$UTTooltip8.lineHeight,
|
|
26
|
+
color: theme === null || theme === void 0 || (_theme$UTTooltip9 = theme.UTTooltip) === null || _theme$UTTooltip9 === void 0 || (_theme$UTTooltip9 = _theme$UTTooltip9.stringContent) === null || _theme$UTTooltip9 === void 0 ? void 0 : _theme$UTTooltip9.color
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
29
|
};
|
|
@@ -22,7 +22,7 @@ const Notifications = _ref => {
|
|
|
22
22
|
} = _ref;
|
|
23
23
|
const IconComponent = (0, _array.isEmpty)(notifications) ? IconActive : IconInactive;
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement(IconComponent, {
|
|
25
|
-
className:
|
|
25
|
+
className: "".concat(_stylesModule.default.notificationsIcon, " ").concat(classes.notificationsIcon)
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
Notifications.propTypes = {
|
|
@@ -28,20 +28,16 @@ const UserMenu = _ref => {
|
|
|
28
28
|
} = _ref;
|
|
29
29
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
30
30
|
onClick: handleClick,
|
|
31
|
-
className:
|
|
31
|
+
className: "".concat(justAvatar ? _stylesModule.default.justAvatarUserMenu : _stylesModule.default.userMenu, " ").concat(classes.userMenu, " ").concat(!handleClick && _stylesModule.default.disableMenu)
|
|
32
32
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
33
|
-
className:
|
|
33
|
+
className: "".concat(_stylesModule.default.userMenuAvatar, " ").concat(classes.userMenuAvatar)
|
|
34
34
|
}, avatar), !justAvatar && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
35
35
|
className: _stylesModule.default.labelWithArrow
|
|
36
36
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
37
|
-
className:
|
|
37
|
+
className: "".concat(classes.userMenuTitle, " ").concat(_stylesModule.default.userMenuTitle),
|
|
38
38
|
withMarkdown: true
|
|
39
39
|
}, title), handleClick && MenuComponent && /*#__PURE__*/_react.default.createElement(Arrow, {
|
|
40
|
-
className:
|
|
41
|
-
${classes.userMenuArrow}
|
|
42
|
-
${_stylesModule.default.userMenuArrow}
|
|
43
|
-
${!!menuOpened && _stylesModule.default.opened}
|
|
44
|
-
`
|
|
40
|
+
className: "\n ".concat(classes.userMenuArrow, "\n ").concat(_stylesModule.default.userMenuArrow, "\n ").concat(!!menuOpened && _stylesModule.default.opened, "\n ")
|
|
45
41
|
})), subtitle)), MenuComponent);
|
|
46
42
|
};
|
|
47
43
|
UserMenu.propTypes = {
|
|
@@ -50,12 +50,12 @@ const UTTopbar = _ref => {
|
|
|
50
50
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
51
51
|
const showSideBarMenu = handleMenu && (isMobileSize || isMobileOrTablet);
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
className:
|
|
53
|
+
className: "".concat(_stylesModule.default.container, " ").concat(showSideBarMenu && _stylesModule.default.containerWithMenu, " ").concat(classes.container)
|
|
54
54
|
}, showSideBarMenu && /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
55
55
|
onClick: handleMenu,
|
|
56
56
|
className: classes.menuIcon
|
|
57
57
|
}), (0, _array.isEmpty)(breadcrumbs) ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
58
|
-
className:
|
|
58
|
+
className: "".concat(isMobileSize && _stylesModule.default.mobileTitle)
|
|
59
59
|
}, titleProps), title) : isMobileSize ? /*#__PURE__*/_react.default.createElement("div", {
|
|
60
60
|
className: _stylesModule.default.showLastBreadcrumbContainer
|
|
61
61
|
}, breadcrumbs.length > 1 && UTMenu, breadcrumbs.length > 1 && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
@@ -70,7 +70,7 @@ const UTTopbar = _ref => {
|
|
|
70
70
|
}, breadcrumbs[breadcrumbs.length - 1].label)) : /*#__PURE__*/_react.default.createElement(_UTBreadcrumbs.default, _extends({
|
|
71
71
|
breadcrumbs: breadcrumbs
|
|
72
72
|
}, breadcrumbsProps)), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
-
className:
|
|
73
|
+
className: "".concat(_stylesModule.default.rightSection, " ").concat(showSideBarMenu && _stylesModule.default.rightSectionWithMenu)
|
|
74
74
|
}, children, enableNotifications && /*#__PURE__*/_react.default.createElement(_Notifications.default, {
|
|
75
75
|
classes: classes,
|
|
76
76
|
IconActive: notificationIconActive,
|
|
@@ -7,69 +7,70 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const retrieveStyle = _ref => {
|
|
10
|
+
var _theme$UTTopbar, _theme$UTTopbar2, _theme$UTTopbar3, _theme$UTTopbar4, _theme$UTTopbar5, _theme$UTTopbar6, _theme$UTTopbar7, _theme$UTTopbar8, _theme$UTTopbar9, _theme$UTTopbar10, _theme$UTTopbar11, _theme$UTTopbar12, _theme$UTTopbar13, _theme$UTTopbar14, _theme$UTTopbar15, _theme$UTTopbar16, _theme$UTTopbar17, _theme$UTTopbar18, _theme$UTTopbar19, _theme$UTTopbar20, _theme$UTTopbar21, _theme$UTTopbar22, _theme$UTTopbar23, _theme$UTTopbar24, _theme$UTTopbar25, _theme$UTTopbar26, _theme$UTTopbar27, _theme$UTTopbar28, _theme$UTTopbar29, _theme$UTTopbar30, _theme$UTTopbar31, _theme$UTTopbar32, _theme$UTTopbar33, _theme$UTTopbar34, _theme$UTTopbar35, _theme$UTTopbar36, _theme$UTTopbar37, _theme$UTTopbar38, _theme$UTTopbar39, _theme$UTTopbar40;
|
|
10
11
|
let {
|
|
11
12
|
theme
|
|
12
13
|
} = _ref;
|
|
13
14
|
return {
|
|
14
15
|
container: {
|
|
15
|
-
background: theme
|
|
16
|
-
borderBottom: theme
|
|
17
|
-
height: theme
|
|
18
|
-
padding: theme
|
|
19
|
-
position: theme
|
|
20
|
-
top: theme
|
|
21
|
-
zIndex: theme
|
|
16
|
+
background: (theme === null || theme === void 0 || (_theme$UTTopbar = theme.UTTopbar) === null || _theme$UTTopbar === void 0 || (_theme$UTTopbar = _theme$UTTopbar.container) === null || _theme$UTTopbar === void 0 ? void 0 : _theme$UTTopbar.background) || _colorsModule.default.white,
|
|
17
|
+
borderBottom: theme === null || theme === void 0 || (_theme$UTTopbar2 = theme.UTTopbar) === null || _theme$UTTopbar2 === void 0 || (_theme$UTTopbar2 = _theme$UTTopbar2.container) === null || _theme$UTTopbar2 === void 0 ? void 0 : _theme$UTTopbar2.borderBottom,
|
|
18
|
+
height: theme === null || theme === void 0 || (_theme$UTTopbar3 = theme.UTTopbar) === null || _theme$UTTopbar3 === void 0 || (_theme$UTTopbar3 = _theme$UTTopbar3.container) === null || _theme$UTTopbar3 === void 0 ? void 0 : _theme$UTTopbar3.height,
|
|
19
|
+
padding: (theme === null || theme === void 0 || (_theme$UTTopbar4 = theme.UTTopbar) === null || _theme$UTTopbar4 === void 0 || (_theme$UTTopbar4 = _theme$UTTopbar4.container) === null || _theme$UTTopbar4 === void 0 ? void 0 : _theme$UTTopbar4.padding) || '10px 20px',
|
|
20
|
+
position: theme === null || theme === void 0 || (_theme$UTTopbar5 = theme.UTTopbar) === null || _theme$UTTopbar5 === void 0 || (_theme$UTTopbar5 = _theme$UTTopbar5.container) === null || _theme$UTTopbar5 === void 0 ? void 0 : _theme$UTTopbar5.position,
|
|
21
|
+
top: theme === null || theme === void 0 || (_theme$UTTopbar6 = theme.UTTopbar) === null || _theme$UTTopbar6 === void 0 || (_theme$UTTopbar6 = _theme$UTTopbar6.container) === null || _theme$UTTopbar6 === void 0 ? void 0 : _theme$UTTopbar6.top,
|
|
22
|
+
zIndex: theme === null || theme === void 0 || (_theme$UTTopbar7 = theme.UTTopbar) === null || _theme$UTTopbar7 === void 0 || (_theme$UTTopbar7 = _theme$UTTopbar7.container) === null || _theme$UTTopbar7 === void 0 ? void 0 : _theme$UTTopbar7.zIndex
|
|
22
23
|
},
|
|
23
24
|
breadCrumb: {
|
|
24
25
|
'&:hover': {
|
|
25
|
-
backgroundColor: theme
|
|
26
|
-
textDecoration: theme
|
|
27
|
-
cursor: theme
|
|
26
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTTopbar8 = theme.UTTopbar) === null || _theme$UTTopbar8 === void 0 || (_theme$UTTopbar8 = _theme$UTTopbar8.breadCrumb) === null || _theme$UTTopbar8 === void 0 || (_theme$UTTopbar8 = _theme$UTTopbar8.hover) === null || _theme$UTTopbar8 === void 0 ? void 0 : _theme$UTTopbar8.backgroundColor,
|
|
27
|
+
textDecoration: theme === null || theme === void 0 || (_theme$UTTopbar9 = theme.UTTopbar) === null || _theme$UTTopbar9 === void 0 || (_theme$UTTopbar9 = _theme$UTTopbar9.breadCrumb) === null || _theme$UTTopbar9 === void 0 || (_theme$UTTopbar9 = _theme$UTTopbar9.hover) === null || _theme$UTTopbar9 === void 0 ? void 0 : _theme$UTTopbar9.textDecoration,
|
|
28
|
+
cursor: theme === null || theme === void 0 || (_theme$UTTopbar10 = theme.UTTopbar) === null || _theme$UTTopbar10 === void 0 || (_theme$UTTopbar10 = _theme$UTTopbar10.breadCrumb) === null || _theme$UTTopbar10 === void 0 || (_theme$UTTopbar10 = _theme$UTTopbar10.hover) === null || _theme$UTTopbar10 === void 0 ? void 0 : _theme$UTTopbar10.cursor
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
userMenu: {
|
|
31
|
-
borderLeft: theme
|
|
32
|
-
margin: theme
|
|
33
|
-
minWidth: theme
|
|
34
|
-
padding: theme
|
|
35
|
-
justifyContent: theme
|
|
32
|
+
borderLeft: theme === null || theme === void 0 || (_theme$UTTopbar11 = theme.UTTopbar) === null || _theme$UTTopbar11 === void 0 || (_theme$UTTopbar11 = _theme$UTTopbar11.userMenu) === null || _theme$UTTopbar11 === void 0 ? void 0 : _theme$UTTopbar11.borderLeft,
|
|
33
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar12 = theme.UTTopbar) === null || _theme$UTTopbar12 === void 0 || (_theme$UTTopbar12 = _theme$UTTopbar12.userMenu) === null || _theme$UTTopbar12 === void 0 ? void 0 : _theme$UTTopbar12.margin) || '0 0 0 20px',
|
|
34
|
+
minWidth: theme === null || theme === void 0 || (_theme$UTTopbar13 = theme.UTTopbar) === null || _theme$UTTopbar13 === void 0 || (_theme$UTTopbar13 = _theme$UTTopbar13.userMenu) === null || _theme$UTTopbar13 === void 0 ? void 0 : _theme$UTTopbar13.minWidth,
|
|
35
|
+
padding: (theme === null || theme === void 0 || (_theme$UTTopbar14 = theme.UTTopbar) === null || _theme$UTTopbar14 === void 0 || (_theme$UTTopbar14 = _theme$UTTopbar14.userMenu) === null || _theme$UTTopbar14 === void 0 ? void 0 : _theme$UTTopbar14.padding) || '0 0 0 20px',
|
|
36
|
+
justifyContent: theme === null || theme === void 0 || (_theme$UTTopbar15 = theme.UTTopbar) === null || _theme$UTTopbar15 === void 0 || (_theme$UTTopbar15 = _theme$UTTopbar15.userMenu) === null || _theme$UTTopbar15 === void 0 ? void 0 : _theme$UTTopbar15.justifyContent
|
|
36
37
|
},
|
|
37
38
|
userMenuAvatar: {
|
|
38
|
-
background: theme
|
|
39
|
-
border: theme
|
|
40
|
-
borderRadius: theme
|
|
41
|
-
color: theme
|
|
42
|
-
fontSize: theme
|
|
43
|
-
fontWeight: theme
|
|
44
|
-
height: theme
|
|
45
|
-
margin: theme
|
|
46
|
-
width: theme
|
|
39
|
+
background: theme === null || theme === void 0 || (_theme$UTTopbar16 = theme.UTTopbar) === null || _theme$UTTopbar16 === void 0 || (_theme$UTTopbar16 = _theme$UTTopbar16.userMenuAvatar) === null || _theme$UTTopbar16 === void 0 ? void 0 : _theme$UTTopbar16.background,
|
|
40
|
+
border: theme === null || theme === void 0 || (_theme$UTTopbar17 = theme.UTTopbar) === null || _theme$UTTopbar17 === void 0 || (_theme$UTTopbar17 = _theme$UTTopbar17.userMenuAvatar) === null || _theme$UTTopbar17 === void 0 ? void 0 : _theme$UTTopbar17.border,
|
|
41
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTTopbar18 = theme.UTTopbar) === null || _theme$UTTopbar18 === void 0 || (_theme$UTTopbar18 = _theme$UTTopbar18.userMenuAvatar) === null || _theme$UTTopbar18 === void 0 ? void 0 : _theme$UTTopbar18.borderRadius) || '50%',
|
|
42
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar19 = theme.UTTopbar) === null || _theme$UTTopbar19 === void 0 || (_theme$UTTopbar19 = _theme$UTTopbar19.userMenuAvatar) === null || _theme$UTTopbar19 === void 0 ? void 0 : _theme$UTTopbar19.color,
|
|
43
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar20 = theme.UTTopbar) === null || _theme$UTTopbar20 === void 0 || (_theme$UTTopbar20 = _theme$UTTopbar20.userMenuAvatar) === null || _theme$UTTopbar20 === void 0 ? void 0 : _theme$UTTopbar20.fontSize) || 24,
|
|
44
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTTopbar21 = theme.UTTopbar) === null || _theme$UTTopbar21 === void 0 || (_theme$UTTopbar21 = _theme$UTTopbar21.userMenuAvatar) === null || _theme$UTTopbar21 === void 0 ? void 0 : _theme$UTTopbar21.fontWeight) || 500,
|
|
45
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar22 = theme.UTTopbar) === null || _theme$UTTopbar22 === void 0 || (_theme$UTTopbar22 = _theme$UTTopbar22.userMenuAvatar) === null || _theme$UTTopbar22 === void 0 ? void 0 : _theme$UTTopbar22.height) || 40,
|
|
46
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar23 = theme.UTTopbar) === null || _theme$UTTopbar23 === void 0 || (_theme$UTTopbar23 = _theme$UTTopbar23.userMenuAvatar) === null || _theme$UTTopbar23 === void 0 ? void 0 : _theme$UTTopbar23.margin) || '0 10px 0 0',
|
|
47
|
+
width: (theme === null || theme === void 0 || (_theme$UTTopbar24 = theme.UTTopbar) === null || _theme$UTTopbar24 === void 0 || (_theme$UTTopbar24 = _theme$UTTopbar24.userMenuAvatar) === null || _theme$UTTopbar24 === void 0 ? void 0 : _theme$UTTopbar24.width) || 40
|
|
47
48
|
},
|
|
48
49
|
userMenuArrow: {
|
|
49
|
-
alignSelf: theme
|
|
50
|
-
color: theme
|
|
51
|
-
fontSize: theme
|
|
52
|
-
height: theme
|
|
53
|
-
margin: theme
|
|
54
|
-
width: theme
|
|
50
|
+
alignSelf: theme === null || theme === void 0 || (_theme$UTTopbar25 = theme.UTTopbar) === null || _theme$UTTopbar25 === void 0 || (_theme$UTTopbar25 = _theme$UTTopbar25.userMenuArrow) === null || _theme$UTTopbar25 === void 0 ? void 0 : _theme$UTTopbar25.alignSelf,
|
|
51
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar26 = theme.UTTopbar) === null || _theme$UTTopbar26 === void 0 || (_theme$UTTopbar26 = _theme$UTTopbar26.userMenuArrow) === null || _theme$UTTopbar26 === void 0 ? void 0 : _theme$UTTopbar26.color,
|
|
52
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTTopbar27 = theme.UTTopbar) === null || _theme$UTTopbar27 === void 0 || (_theme$UTTopbar27 = _theme$UTTopbar27.userMenuArrow) === null || _theme$UTTopbar27 === void 0 ? void 0 : _theme$UTTopbar27.fontSize,
|
|
53
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar28 = theme.UTTopbar) === null || _theme$UTTopbar28 === void 0 || (_theme$UTTopbar28 = _theme$UTTopbar28.userMenuArrow) === null || _theme$UTTopbar28 === void 0 ? void 0 : _theme$UTTopbar28.height) || 20,
|
|
54
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar29 = theme.UTTopbar) === null || _theme$UTTopbar29 === void 0 || (_theme$UTTopbar29 = _theme$UTTopbar29.userMenuArrow) === null || _theme$UTTopbar29 === void 0 ? void 0 : _theme$UTTopbar29.margin) || '0 0 0 6px',
|
|
55
|
+
width: (theme === null || theme === void 0 || (_theme$UTTopbar30 = theme.UTTopbar) === null || _theme$UTTopbar30 === void 0 || (_theme$UTTopbar30 = _theme$UTTopbar30.userMenuArrow) === null || _theme$UTTopbar30 === void 0 ? void 0 : _theme$UTTopbar30.width) || 'auto'
|
|
55
56
|
},
|
|
56
57
|
userMenuTitle: {
|
|
57
|
-
color: theme
|
|
58
|
-
fontSize: theme
|
|
59
|
-
fontWeight: theme
|
|
60
|
-
margin: theme
|
|
58
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar31 = theme.UTTopbar) === null || _theme$UTTopbar31 === void 0 || (_theme$UTTopbar31 = _theme$UTTopbar31.userMenuTitle) === null || _theme$UTTopbar31 === void 0 ? void 0 : _theme$UTTopbar31.color,
|
|
59
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTTopbar32 = theme.UTTopbar) === null || _theme$UTTopbar32 === void 0 || (_theme$UTTopbar32 = _theme$UTTopbar32.userMenuTitle) === null || _theme$UTTopbar32 === void 0 ? void 0 : _theme$UTTopbar32.fontSize,
|
|
60
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTTopbar33 = theme.UTTopbar) === null || _theme$UTTopbar33 === void 0 || (_theme$UTTopbar33 = _theme$UTTopbar33.userMenuTitle) === null || _theme$UTTopbar33 === void 0 ? void 0 : _theme$UTTopbar33.fontWeight) || 500,
|
|
61
|
+
margin: theme === null || theme === void 0 || (_theme$UTTopbar34 = theme.UTTopbar) === null || _theme$UTTopbar34 === void 0 || (_theme$UTTopbar34 = _theme$UTTopbar34.userMenuTitle) === null || _theme$UTTopbar34 === void 0 ? void 0 : _theme$UTTopbar34.margin
|
|
61
62
|
},
|
|
62
63
|
notifications: {
|
|
63
|
-
padding: theme
|
|
64
|
+
padding: (theme === null || theme === void 0 || (_theme$UTTopbar35 = theme.UTTopbar) === null || _theme$UTTopbar35 === void 0 || (_theme$UTTopbar35 = _theme$UTTopbar35.notifications) === null || _theme$UTTopbar35 === void 0 ? void 0 : _theme$UTTopbar35.padding) || '0 20px'
|
|
64
65
|
},
|
|
65
66
|
notificationsIcon: {
|
|
66
|
-
height: theme
|
|
67
|
-
fontSize: theme
|
|
68
|
-
padding: theme
|
|
67
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar36 = theme.UTTopbar) === null || _theme$UTTopbar36 === void 0 || (_theme$UTTopbar36 = _theme$UTTopbar36.notificationsIcon) === null || _theme$UTTopbar36 === void 0 ? void 0 : _theme$UTTopbar36.height) || 32,
|
|
68
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar37 = theme.UTTopbar) === null || _theme$UTTopbar37 === void 0 || (_theme$UTTopbar37 = _theme$UTTopbar37.notificationsIcon) === null || _theme$UTTopbar37 === void 0 ? void 0 : _theme$UTTopbar37.fontSize) || 30,
|
|
69
|
+
padding: theme === null || theme === void 0 || (_theme$UTTopbar38 = theme.UTTopbar) === null || _theme$UTTopbar38 === void 0 || (_theme$UTTopbar38 = _theme$UTTopbar38.notificationsIcon) === null || _theme$UTTopbar38 === void 0 ? void 0 : _theme$UTTopbar38.padding
|
|
69
70
|
},
|
|
70
71
|
menuIcon: {
|
|
71
|
-
color: theme
|
|
72
|
-
fontSize: theme
|
|
72
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar39 = theme.UTTopbar) === null || _theme$UTTopbar39 === void 0 || (_theme$UTTopbar39 = _theme$UTTopbar39.menuIcon) === null || _theme$UTTopbar39 === void 0 ? void 0 : _theme$UTTopbar39.color,
|
|
73
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar40 = theme.UTTopbar) === null || _theme$UTTopbar40 === void 0 || (_theme$UTTopbar40 = _theme$UTTopbar40.menuIcon) === null || _theme$UTTopbar40 === void 0 ? void 0 : _theme$UTTopbar40.fontSize) || 25
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
76
|
};
|
|
@@ -30,7 +30,7 @@ const UTTouchableWithoutFeedback = _ref => {
|
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, props, {
|
|
31
31
|
role: "button",
|
|
32
32
|
onClick: onClick,
|
|
33
|
-
className:
|
|
33
|
+
className: "".concat(_stylesModule.default.container, " ").concat(className),
|
|
34
34
|
key: keyName,
|
|
35
35
|
ref: setRef
|
|
36
36
|
}), children, /*#__PURE__*/_react.default.createElement(_UTRipple.default, {
|
|
@@ -28,43 +28,27 @@ const Step = _ref => {
|
|
|
28
28
|
const stepActive = isActive(step.id);
|
|
29
29
|
const themedStyles = (0, _classesUtils.mergeClasses)(classes, _stylesModule.default);
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
-
className:
|
|
32
|
-
${themedStyles.outerContainer}
|
|
33
|
-
${stepActive && themedStyles.activeOuterContainer}
|
|
34
|
-
${first && _stylesModule.default.stepMargin}
|
|
35
|
-
`
|
|
31
|
+
className: "\n ".concat(themedStyles.outerContainer, "\n ").concat(stepActive && themedStyles.activeOuterContainer, "\n ").concat(first && _stylesModule.default.stepMargin, "\n ")
|
|
36
32
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
37
33
|
className: themedStyles.containerStep
|
|
38
34
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
-
className:
|
|
40
|
-
${themedStyles.container}
|
|
41
|
-
${classes.containerStep}
|
|
42
|
-
${stepCompleted && classes.completedLight}
|
|
43
|
-
${stepActive && classes.activeContainer}
|
|
44
|
-
${stepActive && variant === _constants.ERROR && classes.fullContainer}
|
|
45
|
-
`
|
|
35
|
+
className: "\n ".concat(themedStyles.container, "\n ").concat(classes.containerStep, "\n ").concat(stepCompleted && classes.completedLight, "\n ").concat(stepActive && classes.activeContainer, "\n ").concat(stepActive && variant === _constants.ERROR && classes.fullContainer, "\n ")
|
|
46
36
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
className:
|
|
48
|
-
${themedStyles.innerContainer}
|
|
49
|
-
${classes.innerContainer}
|
|
50
|
-
${stepCompleted && classes.completedInnerContainer}
|
|
51
|
-
${stepActive && classes.activeInnerContainer}
|
|
52
|
-
${stepCompleted && themedStyles.completedOuterContainer}
|
|
53
|
-
`
|
|
37
|
+
className: "\n ".concat(themedStyles.innerContainer, "\n ").concat(classes.innerContainer, "\n ").concat(stepCompleted && classes.completedInnerContainer, "\n ").concat(stepActive && classes.activeInnerContainer, "\n ").concat(stepCompleted && themedStyles.completedOuterContainer, "\n ")
|
|
54
38
|
}, stepActive && variant === _constants.ERROR && /*#__PURE__*/_react.default.createElement(_UTIcon.default, {
|
|
55
39
|
colorTheme: "light",
|
|
56
40
|
name: "IconX",
|
|
57
41
|
size: ERROR_ICON_SIZE,
|
|
58
42
|
className: themedStyles.icon
|
|
59
43
|
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className:
|
|
44
|
+
className: "".concat(themedStyles.textContainer, " ").concat(stepCompleted && themedStyles.completedOuterContainer)
|
|
61
45
|
}, step.title && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
62
|
-
className:
|
|
46
|
+
className: "".concat(stepCompleted ? themedStyles.completedTitleColor : stepActive ? themedStyles.activeTitleColor : themedStyles.titleColor),
|
|
63
47
|
colorTheme: stepActive ? (0, _utils.getLabelTheme)(variant) : 'dark',
|
|
64
48
|
variant: "small",
|
|
65
49
|
weight: "medium"
|
|
66
50
|
}, step.title), step.subtitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
67
|
-
className:
|
|
51
|
+
className: "".concat(themedStyles.subtitleColor, " ").concat(themedStyles.subtitle)
|
|
68
52
|
}, step.subtitle), step.description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
69
53
|
variant: "small",
|
|
70
54
|
colorTheme: "gray",
|
|
@@ -38,10 +38,10 @@ const UTTracker = _ref => {
|
|
|
38
38
|
const isCompleted = stepNumber => stepNumber < currentStep;
|
|
39
39
|
const isActive = stepNumber => stepNumber === currentStep;
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
className:
|
|
41
|
+
className: "".concat(classes.outerContainer)
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
-
className:
|
|
44
|
-
}, title && (mode === _constants.FLAT && detailsTab
|
|
43
|
+
className: "".concat(classes.container, " ").concat(mode !== _constants.FLAT ? _stylesModule.default.container : _stylesModule.default.containerFlat, " ").concat(!detailsTab && _stylesModule.default.roundedBorders)
|
|
44
|
+
}, title && (mode === _constants.FLAT && detailsTab !== null && detailsTab !== void 0 && detailsTab.enabled ? /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
45
45
|
onClick: () => setIsCollapsed(!isCollapsed),
|
|
46
46
|
classNames: {
|
|
47
47
|
childrenContainer: _stylesModule.default.button,
|
|
@@ -58,28 +58,31 @@ const UTTracker = _ref => {
|
|
|
58
58
|
style: {
|
|
59
59
|
height
|
|
60
60
|
},
|
|
61
|
-
className:
|
|
61
|
+
className: "".concat(title && _stylesModule.default.connectorTitle, " ").concat(isCollapsed ? _stylesModule.default.connectorCollapsed : _stylesModule.default.connector, " ").concat(classes.connector)
|
|
62
62
|
}), steps && /*#__PURE__*/_react.default.createElement("div", {
|
|
63
63
|
ref: el => {
|
|
64
64
|
if (!el) return;
|
|
65
65
|
setHeight(el.getBoundingClientRect().height - 45);
|
|
66
66
|
}
|
|
67
|
-
}, steps
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
}, steps === null || steps === void 0 ? void 0 : steps.map((step, index) => {
|
|
68
|
+
var _step$subSteps;
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
70
|
+
key: step.id
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_Step.default, {
|
|
72
|
+
first: index === 0,
|
|
73
|
+
index,
|
|
74
|
+
isActive,
|
|
75
|
+
isCompleted,
|
|
76
|
+
step,
|
|
77
|
+
variant,
|
|
78
|
+
classes: classes
|
|
79
|
+
}), isCollapsed && /*#__PURE__*/_react.default.createElement("div", null, !(0, _isEmpty.default)(step.subSteps) && ((_step$subSteps = step.subSteps) === null || _step$subSteps === void 0 ? void 0 : _step$subSteps.map(subStep => /*#__PURE__*/_react.default.createElement(_SubStep.default, _extends({
|
|
80
|
+
key: subStep.id
|
|
81
|
+
}, subStep, {
|
|
82
|
+
className: classes.subStep
|
|
83
|
+
}))))));
|
|
84
|
+
})))), (detailsTab === null || detailsTab === void 0 ? void 0 : detailsTab.enabled) && mode === _constants.CARD && /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
className: "".concat(_stylesModule.default.detailButtonContainer, " ").concat(classes.detailButtonContainer)
|
|
83
86
|
}, /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
84
87
|
classNames: {
|
|
85
88
|
childrenContainer: _stylesModule.default.button,
|
|
@@ -7,18 +7,20 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _constants = require("./constants");
|
|
8
8
|
var _utils = require("./utils");
|
|
9
9
|
const getBorderColor = _ref => {
|
|
10
|
+
var _theme$Palette$action, _theme$Palette$accent;
|
|
10
11
|
let {
|
|
11
12
|
theme,
|
|
12
13
|
variant
|
|
13
14
|
} = _ref;
|
|
14
|
-
return variant === _constants.VARIANTS.error ?
|
|
15
|
+
return variant === _constants.VARIANTS.error ? "".concat(theme.Palette.error['04'], " !important") : "".concat(((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.accent['04']) || ((_theme$Palette$accent = theme.Palette.accent) === null || _theme$Palette$accent === void 0 ? void 0 : _theme$Palette$accent['04']), " !important");
|
|
15
16
|
};
|
|
16
17
|
const getBorderLightColor = _ref2 => {
|
|
18
|
+
var _theme$Palette$action2, _theme$Palette$accent2;
|
|
17
19
|
let {
|
|
18
20
|
theme,
|
|
19
21
|
variant
|
|
20
22
|
} = _ref2;
|
|
21
|
-
return variant === _constants.VARIANTS.error ?
|
|
23
|
+
return variant === _constants.VARIANTS.error ? "".concat(theme.Palette.error['04'], " !important") : "".concat(((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.accent['04']) || ((_theme$Palette$accent2 = theme.Palette.accent) === null || _theme$Palette$accent2 === void 0 ? void 0 : _theme$Palette$accent2['04']), " !important");
|
|
22
24
|
};
|
|
23
25
|
const retrieveStyle = _ref3 => {
|
|
24
26
|
let {
|
|
@@ -64,11 +66,11 @@ const retrieveStyle = _ref3 => {
|
|
|
64
66
|
backgroundColor: theme.Palette.light['01']
|
|
65
67
|
},
|
|
66
68
|
connector: {
|
|
67
|
-
borderLeft:
|
|
69
|
+
borderLeft: "2px dashed ".concat(theme.Palette.gray['04'])
|
|
68
70
|
},
|
|
69
71
|
detailButtonContainer: {
|
|
70
72
|
backgroundColor: theme.Palette.light['01'],
|
|
71
|
-
borderTop:
|
|
73
|
+
borderTop: "1px solid ".concat(theme.Palette.light['04'])
|
|
72
74
|
},
|
|
73
75
|
containerStep: {
|
|
74
76
|
backgroundColor: theme.Palette.light['01'],
|
package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
13
13
|
/* eslint-disable react/no-array-index-key */
|
|
14
14
|
|
|
15
15
|
const ListRow = _ref => {
|
|
16
|
+
var _ledgerRef$current$el, _ledgerRef$current;
|
|
16
17
|
let {
|
|
17
18
|
row,
|
|
18
19
|
index,
|
|
@@ -21,7 +22,7 @@ const ListRow = _ref => {
|
|
|
21
22
|
updateLedger,
|
|
22
23
|
ledgerRef
|
|
23
24
|
} = _ref;
|
|
24
|
-
const elementKey =
|
|
25
|
+
const elementKey = "".concat(_constants.KEY).concat(index);
|
|
25
26
|
const {
|
|
26
27
|
setRef
|
|
27
28
|
} = (0, _energyHooks.useResizeEvent)(element => {
|
|
@@ -38,13 +39,13 @@ const ListRow = _ref => {
|
|
|
38
39
|
const width = elementWidth - itemPadding;
|
|
39
40
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
40
41
|
key: elementKey,
|
|
41
|
-
className:
|
|
42
|
+
className: "".concat(_stylesModule.default.row, " ").concat(_stylesModule.default[effect]),
|
|
42
43
|
style: {
|
|
43
|
-
top: ledgerRef.current
|
|
44
|
+
top: (_ledgerRef$current$el = (_ledgerRef$current = ledgerRef.current) === null || _ledgerRef$current === void 0 || (_ledgerRef$current = _ledgerRef$current[elementKey]) === null || _ledgerRef$current === void 0 ? void 0 : _ledgerRef$current.offset) !== null && _ledgerRef$current$el !== void 0 ? _ledgerRef$current$el : 0
|
|
44
45
|
},
|
|
45
46
|
ref: setRef
|
|
46
47
|
}, row.map((item, itemIndex) => item && /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
key:
|
|
48
|
+
key: "".concat(_constants.SUB_KEY).concat(itemIndex),
|
|
48
49
|
style: {
|
|
49
50
|
padding: itemPadding / 2,
|
|
50
51
|
width,
|
package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js
CHANGED
|
@@ -5,9 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getDynamicPosition = void 0;
|
|
7
7
|
const getDynamicPosition = (ref, position, setPosition) => {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
8
|
+
var _ref$current, _sibling$clientHeight, _sibling$offsetTop;
|
|
9
|
+
const sibling = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.previousSibling;
|
|
10
|
+
const height = (_sibling$clientHeight = sibling === null || sibling === void 0 ? void 0 : sibling.clientHeight) !== null && _sibling$clientHeight !== void 0 ? _sibling$clientHeight : 0;
|
|
11
|
+
const offsetTop = (_sibling$offsetTop = sibling === null || sibling === void 0 ? void 0 : sibling.offsetTop) !== null && _sibling$offsetTop !== void 0 ? _sibling$offsetTop : 0;
|
|
11
12
|
if (position !== offsetTop + height) setPosition(sibling ? offsetTop + height : 0);
|
|
12
13
|
};
|
|
13
14
|
exports.getDynamicPosition = getDynamicPosition;
|