@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
|
@@ -7,46 +7,47 @@ 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$UTEmojiPicker, _theme$UTEmojiPicker2, _theme$UTEmojiPicker3, _theme$UTEmojiPicker4, _theme$UTEmojiPicker5, _theme$UTEmojiPicker6, _theme$UTEmojiPicker7, _theme$UTEmojiPicker8, _theme$UTEmojiPicker9, _theme$UTEmojiPicker10, _theme$UTEmojiPicker11, _theme$UTEmojiPicker12, _theme$UTEmojiPicker13, _theme$UTEmojiPicker14, _theme$UTEmojiPicker15, _theme$UTEmojiPicker16, _theme$UTEmojiPicker17, _theme$UTEmojiPicker18, _theme$UTEmojiPicker19, _theme$UTEmojiPicker20, _theme$UTEmojiPicker21, _theme$UTEmojiPicker22, _theme$UTEmojiPicker23;
|
|
10
11
|
let {
|
|
11
12
|
theme
|
|
12
13
|
} = _ref;
|
|
13
14
|
return {
|
|
14
15
|
container: {
|
|
15
|
-
backgroundColor: theme
|
|
16
|
-
borderRadius: theme
|
|
17
|
-
bottom: theme
|
|
18
|
-
boxShadow: theme
|
|
19
|
-
left: theme
|
|
20
|
-
right: theme
|
|
21
|
-
top: theme
|
|
16
|
+
backgroundColor: (theme === null || theme === void 0 || (_theme$UTEmojiPicker = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker === void 0 || (_theme$UTEmojiPicker = _theme$UTEmojiPicker.container) === null || _theme$UTEmojiPicker === void 0 ? void 0 : _theme$UTEmojiPicker.backgroundColor) || _colorsModule.default.white,
|
|
17
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTEmojiPicker2 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker2 === void 0 || (_theme$UTEmojiPicker2 = _theme$UTEmojiPicker2.container) === null || _theme$UTEmojiPicker2 === void 0 ? void 0 : _theme$UTEmojiPicker2.borderRadius,
|
|
18
|
+
bottom: theme === null || theme === void 0 || (_theme$UTEmojiPicker3 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker3 === void 0 || (_theme$UTEmojiPicker3 = _theme$UTEmojiPicker3.container) === null || _theme$UTEmojiPicker3 === void 0 ? void 0 : _theme$UTEmojiPicker3.bottom,
|
|
19
|
+
boxShadow: (theme === null || theme === void 0 || (_theme$UTEmojiPicker4 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker4 === void 0 || (_theme$UTEmojiPicker4 = _theme$UTEmojiPicker4.container) === null || _theme$UTEmojiPicker4 === void 0 ? void 0 : _theme$UTEmojiPicker4.boxShadow) || '0px 3px 6px #E4E6EA',
|
|
20
|
+
left: theme === null || theme === void 0 || (_theme$UTEmojiPicker5 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker5 === void 0 || (_theme$UTEmojiPicker5 = _theme$UTEmojiPicker5.container) === null || _theme$UTEmojiPicker5 === void 0 ? void 0 : _theme$UTEmojiPicker5.left,
|
|
21
|
+
right: theme === null || theme === void 0 || (_theme$UTEmojiPicker6 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker6 === void 0 || (_theme$UTEmojiPicker6 = _theme$UTEmojiPicker6.container) === null || _theme$UTEmojiPicker6 === void 0 ? void 0 : _theme$UTEmojiPicker6.right,
|
|
22
|
+
top: theme === null || theme === void 0 || (_theme$UTEmojiPicker7 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker7 === void 0 || (_theme$UTEmojiPicker7 = _theme$UTEmojiPicker7.container) === null || _theme$UTEmojiPicker7 === void 0 ? void 0 : _theme$UTEmojiPicker7.top
|
|
22
23
|
},
|
|
23
24
|
listContainer: {
|
|
24
|
-
height: theme
|
|
25
|
-
width: theme
|
|
25
|
+
height: (theme === null || theme === void 0 || (_theme$UTEmojiPicker8 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker8 === void 0 || (_theme$UTEmojiPicker8 = _theme$UTEmojiPicker8.listContainer) === null || _theme$UTEmojiPicker8 === void 0 ? void 0 : _theme$UTEmojiPicker8.height) || 216,
|
|
26
|
+
width: (theme === null || theme === void 0 || (_theme$UTEmojiPicker9 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker9 === void 0 || (_theme$UTEmojiPicker9 = _theme$UTEmojiPicker9.listContainer) === null || _theme$UTEmojiPicker9 === void 0 ? void 0 : _theme$UTEmojiPicker9.width) || 336
|
|
26
27
|
},
|
|
27
28
|
emoji: {
|
|
28
|
-
borderRadius: theme
|
|
29
|
-
fontSize: theme
|
|
30
|
-
height: theme
|
|
31
|
-
margin: theme
|
|
32
|
-
width: theme
|
|
29
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTEmojiPicker10 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker10 === void 0 || (_theme$UTEmojiPicker10 = _theme$UTEmojiPicker10.emoji) === null || _theme$UTEmojiPicker10 === void 0 ? void 0 : _theme$UTEmojiPicker10.borderRadius) || 4,
|
|
30
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTEmojiPicker11 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker11 === void 0 || (_theme$UTEmojiPicker11 = _theme$UTEmojiPicker11.emoji) === null || _theme$UTEmojiPicker11 === void 0 ? void 0 : _theme$UTEmojiPicker11.fontSize) || 20,
|
|
31
|
+
height: (theme === null || theme === void 0 || (_theme$UTEmojiPicker12 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker12 === void 0 || (_theme$UTEmojiPicker12 = _theme$UTEmojiPicker12.emoji) === null || _theme$UTEmojiPicker12 === void 0 ? void 0 : _theme$UTEmojiPicker12.height) || 32,
|
|
32
|
+
margin: (theme === null || theme === void 0 || (_theme$UTEmojiPicker13 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker13 === void 0 || (_theme$UTEmojiPicker13 = _theme$UTEmojiPicker13.emoji) === null || _theme$UTEmojiPicker13 === void 0 ? void 0 : _theme$UTEmojiPicker13.margin) || 4,
|
|
33
|
+
width: (theme === null || theme === void 0 || (_theme$UTEmojiPicker14 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker14 === void 0 || (_theme$UTEmojiPicker14 = _theme$UTEmojiPicker14.emoji) === null || _theme$UTEmojiPicker14 === void 0 ? void 0 : _theme$UTEmojiPicker14.width) || 32,
|
|
33
34
|
'&:hover': {
|
|
34
|
-
backgroundColor: theme
|
|
35
|
+
backgroundColor: (theme === null || theme === void 0 || (_theme$UTEmojiPicker15 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker15 === void 0 || (_theme$UTEmojiPicker15 = _theme$UTEmojiPicker15.emoji) === null || _theme$UTEmojiPicker15 === void 0 || (_theme$UTEmojiPicker15 = _theme$UTEmojiPicker15.hover) === null || _theme$UTEmojiPicker15 === void 0 ? void 0 : _theme$UTEmojiPicker15.backgroundColor) || '#E9F0FD'
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
groupItem: {
|
|
38
|
-
height: theme
|
|
39
|
-
fill: theme
|
|
40
|
-
stroke: theme
|
|
39
|
+
height: (theme === null || theme === void 0 || (_theme$UTEmojiPicker16 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker16 === void 0 || (_theme$UTEmojiPicker16 = _theme$UTEmojiPicker16.groupItem) === null || _theme$UTEmojiPicker16 === void 0 ? void 0 : _theme$UTEmojiPicker16.height) || 40,
|
|
40
|
+
fill: (theme === null || theme === void 0 || (_theme$UTEmojiPicker17 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker17 === void 0 || (_theme$UTEmojiPicker17 = _theme$UTEmojiPicker17.groupItem) === null || _theme$UTEmojiPicker17 === void 0 ? void 0 : _theme$UTEmojiPicker17.color) || '#677489',
|
|
41
|
+
stroke: (theme === null || theme === void 0 || (_theme$UTEmojiPicker18 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker18 === void 0 || (_theme$UTEmojiPicker18 = _theme$UTEmojiPicker18.groupItem) === null || _theme$UTEmojiPicker18 === void 0 ? void 0 : _theme$UTEmojiPicker18.color) || '#677489'
|
|
41
42
|
},
|
|
42
43
|
activeIcon: {
|
|
43
|
-
backgroundColor: theme
|
|
44
|
-
borderRadius: theme
|
|
45
|
-
stroke: theme
|
|
44
|
+
backgroundColor: (theme === null || theme === void 0 || (_theme$UTEmojiPicker19 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker19 === void 0 || (_theme$UTEmojiPicker19 = _theme$UTEmojiPicker19.groupItem) === null || _theme$UTEmojiPicker19 === void 0 || (_theme$UTEmojiPicker19 = _theme$UTEmojiPicker19.active) === null || _theme$UTEmojiPicker19 === void 0 ? void 0 : _theme$UTEmojiPicker19.backgroundColor) || '#E9F0FD',
|
|
45
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTEmojiPicker20 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker20 === void 0 || (_theme$UTEmojiPicker20 = _theme$UTEmojiPicker20.groupItem) === null || _theme$UTEmojiPicker20 === void 0 || (_theme$UTEmojiPicker20 = _theme$UTEmojiPicker20.active) === null || _theme$UTEmojiPicker20 === void 0 ? void 0 : _theme$UTEmojiPicker20.borderRadius) || 5,
|
|
46
|
+
stroke: (theme === null || theme === void 0 || (_theme$UTEmojiPicker21 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker21 === void 0 || (_theme$UTEmojiPicker21 = _theme$UTEmojiPicker21.groupItem) === null || _theme$UTEmojiPicker21 === void 0 || (_theme$UTEmojiPicker21 = _theme$UTEmojiPicker21.active) === null || _theme$UTEmojiPicker21 === void 0 ? void 0 : _theme$UTEmojiPicker21.color) || '#2b70fb'
|
|
46
47
|
},
|
|
47
48
|
groups: {
|
|
48
|
-
borderBottom: theme
|
|
49
|
-
padding: theme
|
|
49
|
+
borderBottom: (theme === null || theme === void 0 || (_theme$UTEmojiPicker22 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker22 === void 0 || (_theme$UTEmojiPicker22 = _theme$UTEmojiPicker22.groups) === null || _theme$UTEmojiPicker22 === void 0 ? void 0 : _theme$UTEmojiPicker22.borderBottom) || '1px solid #E4E6EA',
|
|
50
|
+
padding: (theme === null || theme === void 0 || (_theme$UTEmojiPicker23 = theme.UTEmojiPicker) === null || _theme$UTEmojiPicker23 === void 0 || (_theme$UTEmojiPicker23 = _theme$UTEmojiPicker23.groups) === null || _theme$UTEmojiPicker23 === void 0 ? void 0 : _theme$UTEmojiPicker23.padding) || 8
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
};
|
|
@@ -21,7 +21,7 @@ const UTExternalLink = _ref => {
|
|
|
21
21
|
href: url,
|
|
22
22
|
target: "_blank",
|
|
23
23
|
rel: "noopener noreferrer",
|
|
24
|
-
className:
|
|
24
|
+
className: "".concat(classes.root, " ").concat(className),
|
|
25
25
|
onClick: openProps && (event => {
|
|
26
26
|
event.preventDefault();
|
|
27
27
|
const {
|
|
@@ -7,8 +7,9 @@ exports.variantsColorTheme = exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _classesUtils = require("../../utils/classesUtils");
|
|
8
8
|
var _constants = require("./constants");
|
|
9
9
|
const variantsColorTheme = (colorTheme, theme) => {
|
|
10
|
+
var _theme$Palette$action;
|
|
10
11
|
const actionColorName = _constants.COLORS_MAPPER[colorTheme] || _constants.COLORS_MAPPER[_constants.DEFAULT_PROPS.colorTheme];
|
|
11
|
-
const actionTheme = theme.Palette.actions
|
|
12
|
+
const actionTheme = ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action[actionColorName]) || theme.Palette[actionColorName];
|
|
12
13
|
return actionTheme['05'];
|
|
13
14
|
};
|
|
14
15
|
exports.variantsColorTheme = variantsColorTheme;
|
|
@@ -68,30 +68,24 @@ class UTFileInput extends _react.PureComponent {
|
|
|
68
68
|
} = this.props;
|
|
69
69
|
const UploadImage = uploadIcon;
|
|
70
70
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className:
|
|
72
|
-
${_stylesModule.default.inputContainer}
|
|
73
|
-
${this.state.hasDrag && _stylesModule.default.inputContainerDrag}
|
|
74
|
-
${loading && _stylesModule.default.inputContainerLoading}
|
|
75
|
-
${classes.container}
|
|
76
|
-
${containerClassname}
|
|
77
|
-
`,
|
|
71
|
+
className: "\n ".concat(_stylesModule.default.inputContainer, "\n ").concat(this.state.hasDrag && _stylesModule.default.inputContainerDrag, "\n ").concat(loading && _stylesModule.default.inputContainerLoading, "\n ").concat(classes.container, "\n ").concat(containerClassname, "\n "),
|
|
78
72
|
onDragLeave: this.handleDragLeave,
|
|
79
73
|
onDragOver: this.handleDragOver,
|
|
80
74
|
onDrop: this.handleOnDrop
|
|
81
75
|
}, loading ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
82
76
|
colorTheme: "gray",
|
|
83
|
-
className:
|
|
77
|
+
className: "".concat(_stylesModule.default.loadingLabel, " ").concat(loadingTextClassname)
|
|
84
78
|
}, uploadingText), /*#__PURE__*/_react.default.createElement("div", {
|
|
85
79
|
className: _stylesModule.default.loading
|
|
86
80
|
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
87
81
|
className: _stylesModule.default.insideContainer
|
|
88
82
|
}, Icon || /*#__PURE__*/_react.default.createElement(UploadImage, {
|
|
89
|
-
className:
|
|
83
|
+
className: "".concat(_stylesModule.default.icon, " ").concat(classes.icon)
|
|
90
84
|
}), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
91
85
|
variant: "small",
|
|
92
|
-
className:
|
|
86
|
+
className: "".concat(_stylesModule.default.label, " ").concat(classes.fileInputLabel)
|
|
93
87
|
}, label)), /*#__PURE__*/_react.default.createElement("input", {
|
|
94
|
-
className:
|
|
88
|
+
className: "".concat(_stylesModule.default.input, " ").concat(inputClassname),
|
|
95
89
|
accept: fileType,
|
|
96
90
|
type: "file",
|
|
97
91
|
onChange: onChange,
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
const retrieveStyle = _ref => {
|
|
8
|
+
var _theme$Palette$action;
|
|
8
9
|
let {
|
|
9
10
|
theme
|
|
10
11
|
} = _ref;
|
|
@@ -43,7 +44,7 @@ const retrieveStyle = _ref => {
|
|
|
43
44
|
padding: '12px 0'
|
|
44
45
|
},
|
|
45
46
|
resultIcon: {
|
|
46
|
-
color: theme.Palette.actions
|
|
47
|
+
color: ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.neutral['05']) || theme.Palette.neutral['05'],
|
|
47
48
|
minWidth: '20px'
|
|
48
49
|
}
|
|
49
50
|
};
|
|
@@ -61,7 +61,7 @@ const UTHeader = _ref => {
|
|
|
61
61
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
62
62
|
const mainAction = actions.find(action => action.main);
|
|
63
63
|
const moreActions = actions.filter((_action, index) => index !== actions.indexOf(mainAction));
|
|
64
|
-
const MainIcon = mainAction
|
|
64
|
+
const MainIcon = (mainAction === null || mainAction === void 0 ? void 0 : mainAction.Icon) || Edit;
|
|
65
65
|
const hasHeader = tagline || title || subtitle || requiredFieldInfo || helpText || banner;
|
|
66
66
|
const [menuAnchor, setMenuAnchor] = (0, _react.useState)();
|
|
67
67
|
const openMenu = event => setMenuAnchor(event.target);
|
|
@@ -98,11 +98,11 @@ const UTHeader = _ref => {
|
|
|
98
98
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
99
99
|
className: classes.outerContainer
|
|
100
100
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
101
|
-
className:
|
|
101
|
+
className: "".concat(_stylesModule.default.container, " ").concat(!hasHeader && _stylesModule.default.containerMargin, " ")
|
|
102
102
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
className:
|
|
103
|
+
className: "".concat(_stylesModule.default.header, " ").concat((banner === null || banner === void 0 ? void 0 : banner.text) && _stylesModule.default.bottomPadding)
|
|
104
104
|
}, tagline && !isLastStep && Tagline, /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
-
className:
|
|
105
|
+
className: "".concat(_stylesModule.default.titles, " ").concat(classes.titles)
|
|
106
106
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
107
107
|
className: _stylesModule.default.titleAndActionsContainer
|
|
108
108
|
}, TitleIcon && /*#__PURE__*/_react.default.createElement(TitleIcon, {
|
|
@@ -133,7 +133,7 @@ const UTHeader = _ref => {
|
|
|
133
133
|
}),
|
|
134
134
|
menuPlacement: "bottom-end",
|
|
135
135
|
onClose: closeMenu
|
|
136
|
-
})))), subtitle && Subtitle), requiredFieldInfo && RequiredFieldInfo, helpText && HelpText), banner
|
|
136
|
+
})))), subtitle && Subtitle), requiredFieldInfo && RequiredFieldInfo, helpText && HelpText), (banner === null || banner === void 0 ? void 0 : banner.text) && /*#__PURE__*/_react.default.createElement(_UTBanner.default, {
|
|
137
137
|
Icon: banner.Icon,
|
|
138
138
|
iconProps: {
|
|
139
139
|
height: BANNER_ICON_SIZE,
|
|
@@ -5,15 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
const retrieveStyle = _ref => {
|
|
8
|
+
var _theme$UTWorkflowCont, _theme$Palette$action;
|
|
8
9
|
let {
|
|
9
10
|
theme
|
|
10
11
|
} = _ref;
|
|
11
12
|
return {
|
|
12
13
|
titleIcon: {
|
|
13
|
-
color: theme.UTWorkflowContainer
|
|
14
|
+
color: (_theme$UTWorkflowCont = theme.UTWorkflowContainer) === null || _theme$UTWorkflowCont === void 0 || (_theme$UTWorkflowCont = _theme$UTWorkflowCont.titleIcon) === null || _theme$UTWorkflowCont === void 0 ? void 0 : _theme$UTWorkflowCont.color
|
|
14
15
|
},
|
|
15
16
|
mainAction: {
|
|
16
|
-
fill: theme.Palette.actions
|
|
17
|
+
fill: (_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.accent['04']
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
};
|
|
@@ -9,12 +9,13 @@ var _constants = require("./constants");
|
|
|
9
9
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const retrieveColor = _ref => {
|
|
12
|
+
var _theme$Palette$action;
|
|
12
13
|
let {
|
|
13
14
|
colorTheme,
|
|
14
15
|
shade,
|
|
15
16
|
theme
|
|
16
17
|
} = _ref;
|
|
17
|
-
const colorThemeDefinition = theme.Palette[colorTheme] || theme.Palette.actions
|
|
18
|
+
const colorThemeDefinition = theme.Palette[colorTheme] || ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action[colorTheme]) || theme.Palette[_constants.DEFAULT_COLOR_THEME];
|
|
18
19
|
const colorShade = shade || (0, _componentUtils.getDefaultColorShade)(colorTheme);
|
|
19
20
|
return colorThemeDefinition[colorShade];
|
|
20
21
|
};
|
|
@@ -82,11 +83,12 @@ const getClassNames = _ref3 => {
|
|
|
82
83
|
size,
|
|
83
84
|
variant
|
|
84
85
|
} = _ref3;
|
|
85
|
-
const variantStyle = VARIANT_STYLE_MAPPER(classes)[
|
|
86
|
-
return
|
|
86
|
+
const variantStyle = VARIANT_STYLE_MAPPER(classes)["".concat(colorTheme || color).concat((0, _componentUtils.capitalize)(variant))];
|
|
87
|
+
return "".concat(className, " ").concat(_stylesModule.default.icon, " ").concat(area && "".concat(_stylesModule.default.withArea, " ").concat(variantStyle, " ").concat(_stylesModule.default["size".concat(size)]));
|
|
87
88
|
};
|
|
88
89
|
exports.getClassNames = getClassNames;
|
|
89
90
|
const retrieveStyle = _ref4 => {
|
|
91
|
+
var _theme$Palette$action2, _theme$Palette$action3, _theme$Palette$action4;
|
|
90
92
|
let {
|
|
91
93
|
color,
|
|
92
94
|
colorTheme,
|
|
@@ -98,24 +100,24 @@ const retrieveStyle = _ref4 => {
|
|
|
98
100
|
theme,
|
|
99
101
|
shade
|
|
100
102
|
});
|
|
101
|
-
const border =
|
|
103
|
+
const border = "2px solid ".concat(borderColor);
|
|
102
104
|
const defaultBackgrounds = {
|
|
103
|
-
accent: theme.Palette.actions
|
|
105
|
+
accent: ((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.accent['01']) || theme.Palette.accent['01'],
|
|
104
106
|
dark: theme.Palette.light['03'],
|
|
105
107
|
error: theme.Palette.error['01'],
|
|
106
108
|
gray: theme.Palette.light['03'],
|
|
107
109
|
information: theme.Palette.information['01'],
|
|
108
110
|
light: theme.Palette.light['03'],
|
|
109
|
-
negative: theme.Palette.actions
|
|
110
|
-
neutral: theme.Palette.actions
|
|
111
|
+
negative: ((_theme$Palette$action3 = theme.Palette.actions) === null || _theme$Palette$action3 === void 0 ? void 0 : _theme$Palette$action3.negative['01']) || theme.Palette.negative['01'],
|
|
112
|
+
neutral: ((_theme$Palette$action4 = theme.Palette.actions) === null || _theme$Palette$action4 === void 0 ? void 0 : _theme$Palette$action4.neutral['01']) || theme.Palette.neutral['01'],
|
|
111
113
|
success: theme.Palette.success['01'],
|
|
112
114
|
warning: theme.Palette.warning['01']
|
|
113
115
|
};
|
|
114
116
|
const variantStyles = Object.keys(defaultBackgrounds).reduce((acc, type) => {
|
|
115
|
-
acc[
|
|
117
|
+
acc["".concat(type, "Default")] = {
|
|
116
118
|
backgroundColor: defaultBackgrounds[type]
|
|
117
119
|
};
|
|
118
|
-
acc[
|
|
120
|
+
acc["".concat(type, "Outlined")] = {
|
|
119
121
|
border
|
|
120
122
|
};
|
|
121
123
|
return acc;
|
|
@@ -38,7 +38,7 @@ class UTIconButton extends _react.Component {
|
|
|
38
38
|
const size = small ? 'small' : large ? 'large' : 'medium';
|
|
39
39
|
const classNames = (0, _style.retrieveClassNamesFromProps)(variants, classes, this.props);
|
|
40
40
|
return loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
className:
|
|
41
|
+
className: "".concat(_stylesModule.default.loadingContainer, " ").concat(loadingClassName)
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
43
43
|
size: 24,
|
|
44
44
|
className: classes.loading
|
|
@@ -58,7 +58,7 @@ class UTIconButton extends _react.Component {
|
|
|
58
58
|
autoFocus: autoFocus,
|
|
59
59
|
style: style,
|
|
60
60
|
classes: {
|
|
61
|
-
root:
|
|
61
|
+
root: "".concat(classNames, " ").concat(small ? classes.small : large && classes.large, " ").concat(className)
|
|
62
62
|
}
|
|
63
63
|
}, children);
|
|
64
64
|
}
|
|
@@ -52,17 +52,17 @@ const ImageRadioCard = _ref => {
|
|
|
52
52
|
src: imageUrl
|
|
53
53
|
}), [imageUrl, selectedImageUrl]);
|
|
54
54
|
const Content = () => /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
55
|
-
className:
|
|
55
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes.containerCard, " ").concat(isSelected && "".concat(_stylesModule.default.isSelected, " ").concat(classes.isSelected), " ").concat(oneColumn && _stylesModule.default.oneColumn, " ").concat(compact && _stylesModule.default.compact, " ").concat(disabled && _stylesModule.default.disabled, " ").concat(transparent && _stylesModule.default.transparent, " ").concat(vertical && classes.vertical, " ").concat(tooltip && _stylesModule.default.contentWithTooltip, " "),
|
|
56
56
|
onClick: handleOnChange
|
|
57
57
|
}, (imageUrl || ImageComponent) && /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
-
className:
|
|
58
|
+
className: "".concat(classes.image, " ").concat(_stylesModule.default.image)
|
|
59
59
|
}, imageUrl && renderImage(isSelected), ImageComponent && /*#__PURE__*/_react.default.createElement(ImageComponent, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className:
|
|
60
|
+
className: "".concat(_stylesModule.default.containerText, " ").concat(classes.containerText)
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
62
|
-
className:
|
|
62
|
+
className: "".concat(classes.name, " ").concat(_stylesModule.default.text, " ").concat(isSelected && !transparent && classes.selectedText)
|
|
63
63
|
}, name), description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
64
64
|
weight: "light",
|
|
65
|
-
className:
|
|
65
|
+
className: "".concat(classes.description, " ").concat(_stylesModule.default.text, " ").concat(isSelected && _stylesModule.default.selectedText)
|
|
66
66
|
}, description)));
|
|
67
67
|
return tooltip ? /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
|
|
68
68
|
content: tooltip,
|
|
@@ -70,7 +70,7 @@ const ImageRadioCard = _ref => {
|
|
|
70
70
|
hideOnClick: true
|
|
71
71
|
}
|
|
72
72
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
73
|
-
className:
|
|
73
|
+
className: "".concat(_stylesModule.default.contentContainer, " ").concat(oneColumn ? _stylesModule.default.oneColumn : _stylesModule.default.twoColumns, " ")
|
|
74
74
|
}, /*#__PURE__*/_react.default.createElement(Content, null))) : /*#__PURE__*/_react.default.createElement(Content, null);
|
|
75
75
|
};
|
|
76
76
|
ImageRadioCard.propTypes = {
|
|
@@ -44,15 +44,15 @@ const UTImageRadio = _ref => {
|
|
|
44
44
|
ref: containerRef,
|
|
45
45
|
width: containerWidth
|
|
46
46
|
} = (0, _energyHooks.useComponentDimensions)();
|
|
47
|
-
const alignToLeft = leftAligned || field
|
|
47
|
+
const alignToLeft = leftAligned || (field === null || field === void 0 ? void 0 : field.configuration.left_aligned);
|
|
48
48
|
const classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
49
49
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
50
50
|
ref: containerRef,
|
|
51
|
-
className:
|
|
51
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes.container, " ").concat(alignToLeft && _stylesModule.default.leftAligned)
|
|
52
52
|
}, mutableOptions.sort(_utils.sortOptions).map(item => /*#__PURE__*/_react.default.createElement(_ImageRadioCard.default, {
|
|
53
53
|
key: item.value,
|
|
54
54
|
option: item,
|
|
55
|
-
variant: field
|
|
55
|
+
variant: field === null || field === void 0 ? void 0 : field.configuration,
|
|
56
56
|
compact: compact,
|
|
57
57
|
disabled: disabled,
|
|
58
58
|
oneColumn: oneColumn || containerWidth < oneColumnBreakpoint,
|
|
@@ -11,6 +11,7 @@ var _constants = require("./constants");
|
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
const retrieveStyle = _ref => {
|
|
14
|
+
var _theme$UTImageRadio, _theme$UTImageRadio2, _theme$UTImageRadio3, _theme$UTImageRadio4, _theme$UTImageRadio5, _theme$UTImageRadio6, _theme$UTImageRadio7, _theme$UTImageRadio8, _theme$UTImageRadio9, _theme$UTImageRadio10, _theme$UTImageRadio11;
|
|
14
15
|
let {
|
|
15
16
|
theme
|
|
16
17
|
} = _ref;
|
|
@@ -18,10 +19,10 @@ const retrieveStyle = _ref => {
|
|
|
18
19
|
return {
|
|
19
20
|
containerCard: {
|
|
20
21
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'backgroundColor'], _colorsModule.default.imageRadioBackground),
|
|
21
|
-
gap: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'gap'],
|
|
22
|
+
gap: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'gap'], "".concat(_constants.defaultGridGap, "px")),
|
|
22
23
|
padding: (0, _utils.standarizePadding)((0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'padding'], '24px')),
|
|
23
24
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'height'], 'fit-content'),
|
|
24
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'width'],
|
|
25
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'width'], "calc(50% - 2 * ".concat(_constants.defaultGridGap, "px)")),
|
|
25
26
|
'&:hover': {
|
|
26
27
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'hover', 'backgroundColor']),
|
|
27
28
|
filter: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'containerCard', 'hover', 'filter'], 'brightness(0.95)')
|
|
@@ -33,7 +34,7 @@ const retrieveStyle = _ref => {
|
|
|
33
34
|
pointerEvents: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'isSelected', 'pointerEvents'], 'none')
|
|
34
35
|
},
|
|
35
36
|
containerText: {
|
|
36
|
-
width: (0, _classesUtils.withImportant)(theme
|
|
37
|
+
width: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio = theme.UTImageRadio) === null || _theme$UTImageRadio === void 0 || (_theme$UTImageRadio = _theme$UTImageRadio.containerText) === null || _theme$UTImageRadio === void 0 ? void 0 : _theme$UTImageRadio.width) || '100%'),
|
|
37
38
|
[tabletMobile]: {
|
|
38
39
|
width: '100%'
|
|
39
40
|
}
|
|
@@ -45,27 +46,27 @@ const retrieveStyle = _ref => {
|
|
|
45
46
|
vertical: {
|
|
46
47
|
flexDirection: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'vertical', 'flexDirection'], 'column'),
|
|
47
48
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'vertical', 'border'], '2px solid transparent'),
|
|
48
|
-
borderWidth: (0, _classesUtils.withImportant)(theme
|
|
49
|
+
borderWidth: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio2 = theme.UTImageRadio) === null || _theme$UTImageRadio2 === void 0 || (_theme$UTImageRadio2 = _theme$UTImageRadio2.vertical) === null || _theme$UTImageRadio2 === void 0 ? void 0 : _theme$UTImageRadio2.borderWidth) || '2px'),
|
|
49
50
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'vertical', 'alignItems'], 'center'),
|
|
50
51
|
textAlign: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'vertical', 'textAlign'], 'center'),
|
|
51
|
-
width: (0, _classesUtils.withImportant)(theme
|
|
52
|
+
width: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio3 = theme.UTImageRadio) === null || _theme$UTImageRadio3 === void 0 || (_theme$UTImageRadio3 = _theme$UTImageRadio3.vertical) === null || _theme$UTImageRadio3 === void 0 ? void 0 : _theme$UTImageRadio3.width) || 'fit-content'),
|
|
52
53
|
pointerEvents: (0, _seamlessImmutable.getIn)(theme, ['UTImageRadio', 'vertical', 'pointerEvents'], 'auto'),
|
|
53
54
|
'&:hover': {
|
|
54
|
-
border: (0, _classesUtils.withImportant)(theme
|
|
55
|
+
border: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio4 = theme.UTImageRadio) === null || _theme$UTImageRadio4 === void 0 || (_theme$UTImageRadio4 = _theme$UTImageRadio4.vertical) === null || _theme$UTImageRadio4 === void 0 ? void 0 : _theme$UTImageRadio4.border) || "2px solid ".concat(_colorsModule.default.imageRadioBackground))
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
description: {
|
|
58
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
59
|
-
fontSize: (0, _classesUtils.withImportant)(
|
|
60
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
59
|
+
color: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio5 = theme.UTImageRadio) === null || _theme$UTImageRadio5 === void 0 || (_theme$UTImageRadio5 = _theme$UTImageRadio5.description) === null || _theme$UTImageRadio5 === void 0 ? void 0 : _theme$UTImageRadio5.color) || _colorsModule.default.black),
|
|
60
|
+
fontSize: (0, _classesUtils.withImportant)("".concat((theme === null || theme === void 0 || (_theme$UTImageRadio6 = theme.UTImageRadio) === null || _theme$UTImageRadio6 === void 0 || (_theme$UTImageRadio6 = _theme$UTImageRadio6.description) === null || _theme$UTImageRadio6 === void 0 ? void 0 : _theme$UTImageRadio6.fontSize) || 14, "px")),
|
|
61
|
+
fontWeight: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio7 = theme.UTImageRadio) === null || _theme$UTImageRadio7 === void 0 || (_theme$UTImageRadio7 = _theme$UTImageRadio7.description) === null || _theme$UTImageRadio7 === void 0 ? void 0 : _theme$UTImageRadio7.fontWeight) || 400)
|
|
61
62
|
},
|
|
62
63
|
name: {
|
|
63
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
64
|
-
fontSize: (0, _classesUtils.withImportant)(
|
|
65
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
64
|
+
color: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio8 = theme.UTImageRadio) === null || _theme$UTImageRadio8 === void 0 || (_theme$UTImageRadio8 = _theme$UTImageRadio8.name) === null || _theme$UTImageRadio8 === void 0 ? void 0 : _theme$UTImageRadio8.color) || _colorsModule.default.black),
|
|
65
|
+
fontSize: (0, _classesUtils.withImportant)("".concat((theme === null || theme === void 0 || (_theme$UTImageRadio9 = theme.UTImageRadio) === null || _theme$UTImageRadio9 === void 0 || (_theme$UTImageRadio9 = _theme$UTImageRadio9.name) === null || _theme$UTImageRadio9 === void 0 ? void 0 : _theme$UTImageRadio9.fontSize) || 18, "px")),
|
|
66
|
+
fontWeight: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio10 = theme.UTImageRadio) === null || _theme$UTImageRadio10 === void 0 || (_theme$UTImageRadio10 = _theme$UTImageRadio10.name) === null || _theme$UTImageRadio10 === void 0 ? void 0 : _theme$UTImageRadio10.fontWeight) || 600)
|
|
66
67
|
},
|
|
67
68
|
selectedText: {
|
|
68
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
69
|
+
color: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTImageRadio11 = theme.UTImageRadio) === null || _theme$UTImageRadio11 === void 0 || (_theme$UTImageRadio11 = _theme$UTImageRadio11.selectedText) === null || _theme$UTImageRadio11 === void 0 ? void 0 : _theme$UTImageRadio11.color) || _colorsModule.default.white)
|
|
69
70
|
}
|
|
70
71
|
};
|
|
71
72
|
};
|
|
@@ -35,7 +35,7 @@ const UTLabel = _ref => {
|
|
|
35
35
|
className
|
|
36
36
|
}), [theme, className]);
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_UTSkeleton.default, null, /*#__PURE__*/_react.default.createElement(Component, {
|
|
38
|
-
className:
|
|
38
|
+
className: "".concat(classes.root, " ").concat(classes.className).trim(),
|
|
39
39
|
title: title
|
|
40
40
|
}, withMarkdown && /*#__PURE__*/_react.default.createElement(_reactMarkdown.default, {
|
|
41
41
|
children: children,
|
|
@@ -10,7 +10,8 @@ var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.
|
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const variantsColorTheme = (colorTheme, shade, theme) => {
|
|
13
|
-
|
|
13
|
+
var _theme$Palette$action;
|
|
14
|
+
const colorThemeDefinition = theme.Palette[colorTheme] || ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action[colorTheme]) || theme.Palette[_constants.DEFAULT_PROPS.colorTheme];
|
|
14
15
|
const colorShade = Object.values(_Palette.COLOR_SHADES).includes(shade) ? shade : (0, _componentUtils.getDefaultColorShade)(colorTheme);
|
|
15
16
|
return colorThemeDefinition[colorShade] || _colorsModule.default.black;
|
|
16
17
|
};
|
|
@@ -20,6 +21,7 @@ const linkColor = (theme, colorTheme) => {
|
|
|
20
21
|
return color;
|
|
21
22
|
};
|
|
22
23
|
const retrieveStyle = _ref => {
|
|
24
|
+
var _field$configuration$, _field$configuration, _field$configuration$2, _field$configuration2, _theme$Fonts, _field$configuration$3, _field$configuration3, _field$configuration$4, _field$configuration4, _field$configuration$5, _field$configuration5;
|
|
23
25
|
let {
|
|
24
26
|
colorTheme,
|
|
25
27
|
field,
|
|
@@ -30,11 +32,11 @@ const retrieveStyle = _ref => {
|
|
|
30
32
|
} = _ref;
|
|
31
33
|
return {
|
|
32
34
|
root: {
|
|
33
|
-
color: variantsColorTheme(field
|
|
34
|
-
fontFamily: theme
|
|
35
|
-
fontSize: _constants.VARIANTS_SIZES[field
|
|
36
|
-
fontWeight: _constants.WEIGHTS[field
|
|
37
|
-
lineHeight: _constants.VARIANTS_LINE_HEIGHT[field
|
|
35
|
+
color: variantsColorTheme((_field$configuration$ = field === null || field === void 0 || (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.colorTheme) !== null && _field$configuration$ !== void 0 ? _field$configuration$ : colorTheme, (_field$configuration$2 = field === null || field === void 0 || (_field$configuration2 = field.configuration) === null || _field$configuration2 === void 0 ? void 0 : _field$configuration2.shade) !== null && _field$configuration$2 !== void 0 ? _field$configuration$2 : shade, theme),
|
|
36
|
+
fontFamily: theme === null || theme === void 0 || (_theme$Fonts = theme.Fonts) === null || _theme$Fonts === void 0 ? void 0 : _theme$Fonts.fontFamily,
|
|
37
|
+
fontSize: _constants.VARIANTS_SIZES[(_field$configuration$3 = field === null || field === void 0 || (_field$configuration3 = field.configuration) === null || _field$configuration3 === void 0 ? void 0 : _field$configuration3.variant) !== null && _field$configuration$3 !== void 0 ? _field$configuration$3 : variant] || _constants.VARIANTS_SIZES[_constants.DEFAULT_PROPS.variant],
|
|
38
|
+
fontWeight: _constants.WEIGHTS[(_field$configuration$4 = field === null || field === void 0 || (_field$configuration4 = field.configuration) === null || _field$configuration4 === void 0 ? void 0 : _field$configuration4.weight) !== null && _field$configuration$4 !== void 0 ? _field$configuration$4 : weight] || _constants.WEIGHTS[_constants.DEFAULT_PROPS.weight],
|
|
39
|
+
lineHeight: _constants.VARIANTS_LINE_HEIGHT[(_field$configuration$5 = field === null || field === void 0 || (_field$configuration5 = field.configuration) === null || _field$configuration5 === void 0 ? void 0 : _field$configuration5.variant) !== null && _field$configuration$5 !== void 0 ? _field$configuration$5 : variant] || _constants.VARIANTS_LINE_HEIGHT[_constants.DEFAULT_PROPS.variant],
|
|
38
40
|
margin: 0,
|
|
39
41
|
'& > a': {
|
|
40
42
|
color: linkColor(theme, colorTheme)
|
|
@@ -10,7 +10,7 @@ var _WithTouch = _interopRequireDefault(require("../WithTouch"));
|
|
|
10
10
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const renderItem = Component => (item, i) => /*#__PURE__*/_react.default.createElement(Component, {
|
|
13
|
-
key:
|
|
13
|
+
key: "listItem".concat(i, "_").concat(Math.random()),
|
|
14
14
|
item: item
|
|
15
15
|
});
|
|
16
16
|
const UTList = props => {
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = exports.default = {
|
|
8
8
|
searchBox: {
|
|
9
|
-
border:
|
|
9
|
+
border: "1px solid rgba(0,0,0,0.24)",
|
|
10
10
|
boxSizing: 'border-box',
|
|
11
11
|
width: '75%',
|
|
12
12
|
maxWidth: '75%',
|
|
13
13
|
height: 30,
|
|
14
14
|
margin: 10,
|
|
15
15
|
borderRadius: 1,
|
|
16
|
-
boxShadow:
|
|
16
|
+
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.3)",
|
|
17
17
|
outline: 'none',
|
|
18
18
|
padding: '0px 10px',
|
|
19
19
|
textOverflow: 'ellipses',
|
|
@@ -112,13 +112,13 @@ const UTMenu = _ref => {
|
|
|
112
112
|
}, menuListProps), /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, _extends({
|
|
113
113
|
onSync: handleScrollbarSync,
|
|
114
114
|
className: classes.scrollBar
|
|
115
|
-
}, scrollBarProps), items
|
|
115
|
+
}, scrollBarProps), items === null || items === void 0 ? void 0 : items.map((item, index) => {
|
|
116
116
|
const handleClick = event => {
|
|
117
117
|
if (item.onClick) item.onClick(event, contextData);else if (onClickItem) onClickItem(event, contextData);
|
|
118
118
|
if (contextData.clickCallback) contextData.clickCallback();
|
|
119
119
|
};
|
|
120
120
|
return ItemComponent ? withMenuItem ? /*#__PURE__*/_react.default.createElement(_MenuItem.default, _extends({
|
|
121
|
-
className:
|
|
121
|
+
className: "".concat(classes.menuItemContainer, " ").concat(item.menuItemClassName),
|
|
122
122
|
disabled: item.disabled,
|
|
123
123
|
divider: withDivider && index < lastItem,
|
|
124
124
|
key: item.key,
|
|
@@ -128,7 +128,7 @@ const UTMenu = _ref => {
|
|
|
128
128
|
}, itemProps, item))) : /*#__PURE__*/_react.default.createElement(ItemComponent, _extends({
|
|
129
129
|
className: classes.menuItem
|
|
130
130
|
}, itemProps, item)) : /*#__PURE__*/_react.default.createElement(_MenuItem.default, _extends({
|
|
131
|
-
className:
|
|
131
|
+
className: "".concat(classes.menuItemContainer, " ").concat(item.menuItemClassName),
|
|
132
132
|
disabled: item.disabled,
|
|
133
133
|
divider: withDivider && index < lastItem,
|
|
134
134
|
key: item.key,
|