@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
|
@@ -6,55 +6,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _styles = require("@material-ui/core/styles");
|
|
8
8
|
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$UTMenu, _theme$UTMenu2, _theme$UTMenu3, _theme$UTMenu4, _theme$UTMenu5, _theme$UTMenu6, _theme$UTMenu7, _theme$UTMenu8, _theme$UTMenu9, _theme$UTMenu10, _theme$UTMenu11, _theme$UTMenu12, _theme$UTMenu13, _theme$UTMenu14, _theme$UTMenu15, _theme$UTMenu16, _theme$UTMenu17, _theme$UTMenu18, _theme$UTMenu19;
|
|
9
10
|
let {
|
|
10
11
|
theme
|
|
11
12
|
} = _ref;
|
|
12
13
|
return {
|
|
13
14
|
paper: {
|
|
14
|
-
padding: theme
|
|
15
|
-
borderRadius: theme
|
|
16
|
-
boxShadow: theme
|
|
15
|
+
padding: theme === null || theme === void 0 || (_theme$UTMenu = theme.UTMenu) === null || _theme$UTMenu === void 0 || (_theme$UTMenu = _theme$UTMenu.paper) === null || _theme$UTMenu === void 0 ? void 0 : _theme$UTMenu.padding,
|
|
16
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTMenu2 = theme.UTMenu) === null || _theme$UTMenu2 === void 0 || (_theme$UTMenu2 = _theme$UTMenu2.paper) === null || _theme$UTMenu2 === void 0 ? void 0 : _theme$UTMenu2.borderRadius,
|
|
17
|
+
boxShadow: theme === null || theme === void 0 || (_theme$UTMenu3 = theme.UTMenu) === null || _theme$UTMenu3 === void 0 || (_theme$UTMenu3 = _theme$UTMenu3.paper) === null || _theme$UTMenu3 === void 0 ? void 0 : _theme$UTMenu3.boxShadow
|
|
17
18
|
},
|
|
18
19
|
menuList: {
|
|
19
|
-
borderRadius: theme
|
|
20
|
-
padding: theme
|
|
21
|
-
outline: theme
|
|
22
|
-
width: theme
|
|
20
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTMenu4 = theme.UTMenu) === null || _theme$UTMenu4 === void 0 || (_theme$UTMenu4 = _theme$UTMenu4.menuList) === null || _theme$UTMenu4 === void 0 ? void 0 : _theme$UTMenu4.borderRadius,
|
|
21
|
+
padding: theme === null || theme === void 0 || (_theme$UTMenu5 = theme.UTMenu) === null || _theme$UTMenu5 === void 0 || (_theme$UTMenu5 = _theme$UTMenu5.menuList) === null || _theme$UTMenu5 === void 0 ? void 0 : _theme$UTMenu5.padding,
|
|
22
|
+
outline: theme === null || theme === void 0 || (_theme$UTMenu6 = theme.UTMenu) === null || _theme$UTMenu6 === void 0 || (_theme$UTMenu6 = _theme$UTMenu6.menuList) === null || _theme$UTMenu6 === void 0 ? void 0 : _theme$UTMenu6.outline,
|
|
23
|
+
width: theme === null || theme === void 0 || (_theme$UTMenu7 = theme.UTMenu) === null || _theme$UTMenu7 === void 0 || (_theme$UTMenu7 = _theme$UTMenu7.menuList) === null || _theme$UTMenu7 === void 0 ? void 0 : _theme$UTMenu7.width
|
|
23
24
|
},
|
|
24
25
|
menuItem: {
|
|
25
|
-
fontSize: theme
|
|
26
|
-
color: theme
|
|
27
|
-
backgroundColor: theme
|
|
26
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTMenu8 = theme.UTMenu) === null || _theme$UTMenu8 === void 0 || (_theme$UTMenu8 = _theme$UTMenu8.menuItem) === null || _theme$UTMenu8 === void 0 ? void 0 : _theme$UTMenu8.fontSize,
|
|
27
|
+
color: theme === null || theme === void 0 || (_theme$UTMenu9 = theme.UTMenu) === null || _theme$UTMenu9 === void 0 || (_theme$UTMenu9 = _theme$UTMenu9.menuItem) === null || _theme$UTMenu9 === void 0 ? void 0 : _theme$UTMenu9.color,
|
|
28
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTMenu10 = theme.UTMenu) === null || _theme$UTMenu10 === void 0 || (_theme$UTMenu10 = _theme$UTMenu10.menuItem) === null || _theme$UTMenu10 === void 0 ? void 0 : _theme$UTMenu10.backgroundColor
|
|
28
29
|
},
|
|
29
30
|
popper: {
|
|
30
31
|
zIndex: 9999,
|
|
31
|
-
margin: theme
|
|
32
|
+
margin: theme === null || theme === void 0 || (_theme$UTMenu11 = theme.UTMenu) === null || _theme$UTMenu11 === void 0 || (_theme$UTMenu11 = _theme$UTMenu11.popper) === null || _theme$UTMenu11 === void 0 ? void 0 : _theme$UTMenu11.margin
|
|
32
33
|
},
|
|
33
34
|
menuItemIcon: {
|
|
34
|
-
height: theme
|
|
35
|
-
color: theme
|
|
36
|
-
fontSize: theme
|
|
37
|
-
margin: theme
|
|
38
|
-
width: theme
|
|
35
|
+
height: theme === null || theme === void 0 || (_theme$UTMenu12 = theme.UTMenu) === null || _theme$UTMenu12 === void 0 || (_theme$UTMenu12 = _theme$UTMenu12.menuItemIcon) === null || _theme$UTMenu12 === void 0 ? void 0 : _theme$UTMenu12.height,
|
|
36
|
+
color: theme === null || theme === void 0 || (_theme$UTMenu13 = theme.UTMenu) === null || _theme$UTMenu13 === void 0 || (_theme$UTMenu13 = _theme$UTMenu13.menuItemIcon) === null || _theme$UTMenu13 === void 0 ? void 0 : _theme$UTMenu13.color,
|
|
37
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTMenu14 = theme.UTMenu) === null || _theme$UTMenu14 === void 0 || (_theme$UTMenu14 = _theme$UTMenu14.menuItemIcon) === null || _theme$UTMenu14 === void 0 ? void 0 : _theme$UTMenu14.fontSize,
|
|
38
|
+
margin: theme === null || theme === void 0 || (_theme$UTMenu15 = theme.UTMenu) === null || _theme$UTMenu15 === void 0 || (_theme$UTMenu15 = _theme$UTMenu15.menuItemIcon) === null || _theme$UTMenu15 === void 0 ? void 0 : _theme$UTMenu15.margin,
|
|
39
|
+
width: theme === null || theme === void 0 || (_theme$UTMenu16 = theme.UTMenu) === null || _theme$UTMenu16 === void 0 || (_theme$UTMenu16 = _theme$UTMenu16.menuItemIcon) === null || _theme$UTMenu16 === void 0 ? void 0 : _theme$UTMenu16.width
|
|
39
40
|
},
|
|
40
41
|
menuItemContainer: {
|
|
41
|
-
padding: theme
|
|
42
|
-
position: theme
|
|
42
|
+
padding: theme === null || theme === void 0 || (_theme$UTMenu17 = theme.UTMenu) === null || _theme$UTMenu17 === void 0 || (_theme$UTMenu17 = _theme$UTMenu17.menuItemContainer) === null || _theme$UTMenu17 === void 0 ? void 0 : _theme$UTMenu17.padding,
|
|
43
|
+
position: theme === null || theme === void 0 || (_theme$UTMenu18 = theme.UTMenu) === null || _theme$UTMenu18 === void 0 || (_theme$UTMenu18 = _theme$UTMenu18.menuItemContainer) === null || _theme$UTMenu18 === void 0 ? void 0 : _theme$UTMenu18.position
|
|
43
44
|
},
|
|
44
45
|
scrollBar: {
|
|
45
|
-
maxHeight: theme
|
|
46
|
+
maxHeight: theme === null || theme === void 0 || (_theme$UTMenu19 = theme.UTMenu) === null || _theme$UTMenu19 === void 0 || (_theme$UTMenu19 = _theme$UTMenu19.scrollBar) === null || _theme$UTMenu19 === void 0 ? void 0 : _theme$UTMenu19.maxHeight
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
50
|
exports.retrieveStyle = retrieveStyle;
|
|
50
|
-
const retrieveMuiTheme = theme =>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
const retrieveMuiTheme = theme => {
|
|
52
|
+
var _theme$UTMenu20, _theme$UTMenu21;
|
|
53
|
+
return (0, _styles.createTheme)({
|
|
54
|
+
overrides: {
|
|
55
|
+
MuiListItem: {
|
|
56
|
+
divider: {
|
|
57
|
+
borderBottomColor: theme === null || theme === void 0 || (_theme$UTMenu20 = theme.UTMenu) === null || _theme$UTMenu20 === void 0 || (_theme$UTMenu20 = _theme$UTMenu20.divider) === null || _theme$UTMenu20 === void 0 ? void 0 : _theme$UTMenu20.color,
|
|
58
|
+
borderBottomWidth: theme === null || theme === void 0 || (_theme$UTMenu21 = theme.UTMenu) === null || _theme$UTMenu21 === void 0 || (_theme$UTMenu21 = _theme$UTMenu21.divider) === null || _theme$UTMenu21 === void 0 ? void 0 : _theme$UTMenu21.width
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
62
|
+
});
|
|
63
|
+
};
|
|
60
64
|
exports.retrieveMuiTheme = retrieveMuiTheme;
|
|
@@ -13,7 +13,7 @@ const getScrollbarWidth = () => document.body && document.body.clientWidth && wi
|
|
|
13
13
|
exports.getScrollbarWidth = getScrollbarWidth;
|
|
14
14
|
const lockScreen = (blocker, lock) => {
|
|
15
15
|
const body = document.getElementsByTagName('body')[0];
|
|
16
|
-
body.style.paddingRight = lock && (0, _browser.isDesktop)(1024) && bodyHasScroll() ?
|
|
16
|
+
body.style.paddingRight = lock && (0, _browser.isDesktop)(1024) && bodyHasScroll() ? "".concat(getScrollbarWidth(), "px") : '';
|
|
17
17
|
body.style.overflow = lock ? 'hidden' : '';
|
|
18
18
|
blocker.current.style.display = lock ? 'initial' : '';
|
|
19
19
|
};
|
|
@@ -45,13 +45,13 @@ const UTModal = _ref => {
|
|
|
45
45
|
const StatusIcon = _constants.STATUS_ICONS[status];
|
|
46
46
|
const withSecondaryActions = !(0, _object.objectIsEmpty)(secondaryAction) || SecondaryActionComponent;
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement("dialog", {
|
|
48
|
-
className:
|
|
48
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes.container, " ").concat(size ? _stylesModule.default["container".concat((0, _componentUtils.capitalize)(size))] : _stylesModule.default.containerM),
|
|
49
49
|
onClick: onClickDialog,
|
|
50
50
|
ref: dialogRef
|
|
51
51
|
}, /*#__PURE__*/_react.default.createElement("div", null, StatusIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
52
|
-
className:
|
|
52
|
+
className: "".concat(_stylesModule.default.status, " ").concat(classes["status".concat((0, _componentUtils.capitalize)(status))])
|
|
53
53
|
}, /*#__PURE__*/_react.default.createElement(StatusIcon, {
|
|
54
|
-
className:
|
|
54
|
+
className: "".concat(_stylesModule.default.icon, " ").concat(classes["icon".concat((0, _componentUtils.capitalize)(status))])
|
|
55
55
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
56
|
className: _stylesModule.default.header
|
|
57
57
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
@@ -60,13 +60,9 @@ const UTModal = _ref => {
|
|
|
60
60
|
}, title), description && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
61
61
|
colorTheme: "gray"
|
|
62
62
|
}, description)), children && /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
-
className:
|
|
63
|
+
className: "".concat(_stylesModule.default.body, " ").concat(!removeBodyPadding && _stylesModule.default.bodyPadding)
|
|
64
64
|
}, children), /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className:
|
|
66
|
-
${_stylesModule.default.actions}
|
|
67
|
-
${classes.actions}
|
|
68
|
-
${withSecondaryActions && _stylesModule.default.withSecondaryActions}
|
|
69
|
-
`
|
|
65
|
+
className: "\n ".concat(_stylesModule.default.actions, "\n ").concat(classes.actions, "\n ").concat(withSecondaryActions && _stylesModule.default.withSecondaryActions, "\n ")
|
|
70
66
|
}, withSecondaryActions && /*#__PURE__*/_react.default.createElement("div", null, SecondaryActionComponent ? /*#__PURE__*/_react.default.createElement(SecondaryActionComponent, null) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
|
|
71
67
|
colorTheme: "secondary",
|
|
72
68
|
variant: "semitransparent"
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _shadowUtils = require("../../utils/shadowUtils");
|
|
8
8
|
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$Palette$shadow;
|
|
9
10
|
let {
|
|
10
11
|
theme
|
|
11
12
|
} = _ref;
|
|
@@ -13,7 +14,7 @@ const retrieveStyle = _ref => {
|
|
|
13
14
|
container: {
|
|
14
15
|
backgroundColor: theme.Palette.light['01'],
|
|
15
16
|
boxShadow: (0, _shadowUtils.getShadow)({
|
|
16
|
-
color: theme.Palette.shadows
|
|
17
|
+
color: (_theme$Palette$shadow = theme.Palette.shadows) === null || _theme$Palette$shadow === void 0 ? void 0 : _theme$Palette$shadow.grayscale,
|
|
17
18
|
level: 2
|
|
18
19
|
}),
|
|
19
20
|
'&::backdrop': {
|
|
@@ -18,6 +18,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
const UTOnboarding = _ref => {
|
|
21
|
+
var _steps$currentStep$is, _steps$currentStep, _steps$currentStep$hi, _steps$currentStep2, _steps$currentStep3, _steps$currentStep4;
|
|
21
22
|
let {
|
|
22
23
|
classes: themeClasses,
|
|
23
24
|
classNames,
|
|
@@ -31,8 +32,8 @@ const UTOnboarding = _ref => {
|
|
|
31
32
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [themeClasses, classNames]) || {};
|
|
32
33
|
const [currentStep, setCurrentStep] = (0, _react.useState)(0);
|
|
33
34
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
34
|
-
const currentStepIsSuggestion = steps[currentStep]
|
|
35
|
-
const hideFooter = steps[currentStep]
|
|
35
|
+
const currentStepIsSuggestion = (_steps$currentStep$is = (_steps$currentStep = steps[currentStep]) === null || _steps$currentStep === void 0 ? void 0 : _steps$currentStep.isSuggestion) !== null && _steps$currentStep$is !== void 0 ? _steps$currentStep$is : false;
|
|
36
|
+
const hideFooter = (_steps$currentStep$hi = (_steps$currentStep2 = steps[currentStep]) === null || _steps$currentStep2 === void 0 ? void 0 : _steps$currentStep2.hideFooter) !== null && _steps$currentStep$hi !== void 0 ? _steps$currentStep$hi : false;
|
|
36
37
|
const totalSteps = steps.length;
|
|
37
38
|
(0, _react.useEffect)(() => {
|
|
38
39
|
setLoading(false);
|
|
@@ -40,15 +41,19 @@ const UTOnboarding = _ref => {
|
|
|
40
41
|
(0, _react.useEffect)(() => {
|
|
41
42
|
const referenceLayer = document.querySelector('.introjs-tooltipReferenceLayer');
|
|
42
43
|
if (currentStepIsSuggestion) {
|
|
43
|
-
|
|
44
|
+
var _referenceLayer$class;
|
|
45
|
+
referenceLayer === null || referenceLayer === void 0 || (_referenceLayer$class = referenceLayer.classList) === null || _referenceLayer$class === void 0 || _referenceLayer$class.add(_stylesModule.default.suggestionReference);
|
|
44
46
|
} else {
|
|
45
|
-
|
|
47
|
+
var _referenceLayer$class2;
|
|
48
|
+
referenceLayer === null || referenceLayer === void 0 || (_referenceLayer$class2 = referenceLayer.classList) === null || _referenceLayer$class2 === void 0 || _referenceLayer$class2.remove(_stylesModule.default.suggestionReference);
|
|
46
49
|
}
|
|
47
50
|
const footer = document.querySelector('.introjs-tooltipbuttons');
|
|
48
51
|
if (hideFooter) {
|
|
49
|
-
|
|
52
|
+
var _footer$classList;
|
|
53
|
+
footer === null || footer === void 0 || (_footer$classList = footer.classList) === null || _footer$classList === void 0 || _footer$classList.add(_stylesModule.default.displayNone);
|
|
50
54
|
} else {
|
|
51
|
-
|
|
55
|
+
var _footer$classList2;
|
|
56
|
+
footer === null || footer === void 0 || (_footer$classList2 = footer.classList) === null || _footer$classList2 === void 0 || _footer$classList2.remove(_stylesModule.default.displayNone);
|
|
52
57
|
}
|
|
53
58
|
});
|
|
54
59
|
return loading ? null : /*#__PURE__*/_react.default.createElement(_intro.Steps, {
|
|
@@ -61,26 +66,29 @@ const UTOnboarding = _ref => {
|
|
|
61
66
|
currentStep: index,
|
|
62
67
|
totalSteps: totalSteps,
|
|
63
68
|
classes: classes,
|
|
64
|
-
hideFooter: step
|
|
65
|
-
buttonPreviousTitle: step
|
|
66
|
-
nextStep: step
|
|
69
|
+
hideFooter: step === null || step === void 0 ? void 0 : step.hideFooter,
|
|
70
|
+
buttonPreviousTitle: step === null || step === void 0 ? void 0 : step.buttonPreviousTitle,
|
|
71
|
+
nextStep: step === null || step === void 0 ? void 0 : step.nextStep,
|
|
67
72
|
variant: variant
|
|
68
73
|
}) : step.intro
|
|
69
74
|
})),
|
|
70
75
|
initialStep: 0,
|
|
71
76
|
onExit: handleOnClose,
|
|
72
77
|
onBeforeChange: nextStep => {
|
|
78
|
+
var _steps$nextStep;
|
|
73
79
|
const overlay = document.querySelector('.introjs-overlay');
|
|
74
80
|
setCurrentStep(nextStep);
|
|
75
|
-
if (steps[nextStep]
|
|
76
|
-
|
|
81
|
+
if ((_steps$nextStep = steps[nextStep]) !== null && _steps$nextStep !== void 0 && _steps$nextStep.isSuggestion) {
|
|
82
|
+
var _overlay$classList;
|
|
83
|
+
overlay === null || overlay === void 0 || (_overlay$classList = overlay.classList) === null || _overlay$classList === void 0 || _overlay$classList.add(_stylesModule.default.suggestionOverlay);
|
|
77
84
|
} else {
|
|
78
|
-
|
|
85
|
+
var _overlay$classList2;
|
|
86
|
+
overlay === null || overlay === void 0 || (_overlay$classList2 = overlay.classList) === null || _overlay$classList2 === void 0 || _overlay$classList2.remove(_stylesModule.default.suggestionOverlay);
|
|
79
87
|
}
|
|
80
88
|
},
|
|
81
89
|
onComplete: handleComplete || {},
|
|
82
90
|
options: {
|
|
83
|
-
buttonClass:
|
|
91
|
+
buttonClass: "".concat(_stylesModule.default.button, " ").concat(classes.buttons),
|
|
84
92
|
doneLabel: _constants.DONE_LABEL,
|
|
85
93
|
exitOnEsc: false,
|
|
86
94
|
exitOnOverlayClick: false,
|
|
@@ -90,9 +98,9 @@ const UTOnboarding = _ref => {
|
|
|
90
98
|
prevLabel: _constants.PREV_LABEL,
|
|
91
99
|
showBullets: false,
|
|
92
100
|
showProgress: false,
|
|
93
|
-
tooltipClass:
|
|
94
|
-
highlightClass: steps[currentStep]
|
|
95
|
-
...(steps[currentStep]
|
|
101
|
+
tooltipClass: "".concat(_stylesModule.default.tooltipContainer, " ").concat(classes.onboardingContainer),
|
|
102
|
+
highlightClass: (_steps$currentStep3 = steps[currentStep]) !== null && _steps$currentStep3 !== void 0 && _steps$currentStep3.isSuggestion ? _stylesModule.default.suggestionHighlight : _stylesModule.default.highlight,
|
|
103
|
+
...((_steps$currentStep4 = steps[currentStep]) !== null && _steps$currentStep4 !== void 0 && _steps$currentStep4.hideFooter ? {
|
|
96
104
|
hidePrev: true,
|
|
97
105
|
hideNext: true,
|
|
98
106
|
showProgress: false,
|
|
@@ -24,17 +24,19 @@ const getLabelTheme = _ref2 => {
|
|
|
24
24
|
}[variant];
|
|
25
25
|
};
|
|
26
26
|
const getButtonTheme = _ref3 => {
|
|
27
|
+
var _theme$Palette$action, _theme$Palette$action2, _theme$Palette$action3;
|
|
27
28
|
let {
|
|
28
29
|
theme,
|
|
29
30
|
variant
|
|
30
31
|
} = _ref3;
|
|
31
32
|
return {
|
|
32
|
-
[_constants.VARIANTS.dark]: theme.Palette.actions
|
|
33
|
-
[_constants.VARIANTS.information]: theme.Palette.actions
|
|
34
|
-
[_constants.VARIANTS.light]: theme.Palette.actions
|
|
33
|
+
[_constants.VARIANTS.dark]: ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.negative['04']) || theme.Palette.negative['04'],
|
|
34
|
+
[_constants.VARIANTS.information]: ((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.negative['04']) || theme.Palette.negative['04'],
|
|
35
|
+
[_constants.VARIANTS.light]: ((_theme$Palette$action3 = theme.Palette.actions) === null || _theme$Palette$action3 === void 0 ? void 0 : _theme$Palette$action3.accent['04']) || theme.Palette.accent['04']
|
|
35
36
|
}[variant];
|
|
36
37
|
};
|
|
37
38
|
const getButtonNextTextTheme = _ref4 => {
|
|
39
|
+
var _theme$Palette$action4;
|
|
38
40
|
let {
|
|
39
41
|
theme,
|
|
40
42
|
variant
|
|
@@ -42,7 +44,7 @@ const getButtonNextTextTheme = _ref4 => {
|
|
|
42
44
|
return {
|
|
43
45
|
[_constants.VARIANTS.dark]: theme.Palette.dark['05'],
|
|
44
46
|
[_constants.VARIANTS.information]: theme.Palette.dark['05'],
|
|
45
|
-
[_constants.VARIANTS.light]: theme.Palette.actions
|
|
47
|
+
[_constants.VARIANTS.light]: ((_theme$Palette$action4 = theme.Palette.actions) === null || _theme$Palette$action4 === void 0 ? void 0 : _theme$Palette$action4.negative['05']) || theme.Palette.negative['05']
|
|
46
48
|
}[variant];
|
|
47
49
|
};
|
|
48
50
|
const validateProps = _ref5 => {
|
|
@@ -61,12 +63,12 @@ const retrieveStyle = _ref6 => {
|
|
|
61
63
|
} = _ref6;
|
|
62
64
|
return {
|
|
63
65
|
onboardingContainer: {
|
|
64
|
-
backgroundColor:
|
|
66
|
+
backgroundColor: " ".concat(getBackgroundColor({
|
|
65
67
|
theme,
|
|
66
68
|
...validateProps({
|
|
67
69
|
variant
|
|
68
70
|
})
|
|
69
|
-
})
|
|
71
|
+
}), " !important"),
|
|
70
72
|
color: getLabelTheme({
|
|
71
73
|
theme,
|
|
72
74
|
...validateProps({
|
|
@@ -82,26 +84,26 @@ const retrieveStyle = _ref6 => {
|
|
|
82
84
|
})
|
|
83
85
|
},
|
|
84
86
|
'& .introjs-nextbutton': {
|
|
85
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: "".concat(getButtonTheme({
|
|
86
88
|
theme,
|
|
87
89
|
...validateProps({
|
|
88
90
|
variant
|
|
89
91
|
})
|
|
90
|
-
})
|
|
91
|
-
color:
|
|
92
|
+
}), " !important"),
|
|
93
|
+
color: "".concat(getButtonNextTextTheme({
|
|
92
94
|
theme,
|
|
93
95
|
...validateProps({
|
|
94
96
|
variant
|
|
95
97
|
})
|
|
96
|
-
})
|
|
98
|
+
}), " !important")
|
|
97
99
|
},
|
|
98
100
|
'& .introjs-tooltip': {
|
|
99
|
-
backgroundColor:
|
|
101
|
+
backgroundColor: " ".concat(getBackgroundColor({
|
|
100
102
|
theme,
|
|
101
103
|
...validateProps({
|
|
102
104
|
variant
|
|
103
105
|
})
|
|
104
|
-
})
|
|
106
|
+
}), " !important")
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
};
|
|
@@ -37,13 +37,13 @@ const PageSizeSelector = _ref => {
|
|
|
37
37
|
disableFirstOption: true,
|
|
38
38
|
variant: "outlined",
|
|
39
39
|
selectProps: {
|
|
40
|
-
className:
|
|
40
|
+
className: "".concat(_stylesModule.default.pageSizeSelectContainer, " ").concat(classes.pageSizeSelectContainer),
|
|
41
41
|
classes: {
|
|
42
42
|
select: classes.pageSizeSelect
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
})), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
46
|
-
className:
|
|
46
|
+
className: "".concat(_stylesModule.default.label, " ").concat(classes.totalRowsLabel),
|
|
47
47
|
colorTheme: colorThemes.totalRows || 'gray'
|
|
48
48
|
}, label));
|
|
49
49
|
};
|
package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js
CHANGED
|
@@ -22,10 +22,7 @@ const NavigationButton = _ref => {
|
|
|
22
22
|
} = _ref;
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
24
24
|
classNames: {
|
|
25
|
-
root:
|
|
26
|
-
${className}
|
|
27
|
-
${_stylesModule.default.navigationButton}
|
|
28
|
-
`
|
|
25
|
+
root: "\n ".concat(className, "\n ").concat(_stylesModule.default.navigationButton, "\n ")
|
|
29
26
|
},
|
|
30
27
|
colorTheme: colorTheme,
|
|
31
28
|
disabled: disabled,
|
|
@@ -83,7 +83,7 @@ const Pagination = _ref => {
|
|
|
83
83
|
const pageList = (0, _utils.getPageNumbers)(totalPages, currentPage, isResponsive);
|
|
84
84
|
const navigationButtonColorTheme = colorThemes.navigationButton || 'secondary';
|
|
85
85
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
className:
|
|
86
|
+
className: "".concat(_stylesModule.default.pagination, " ").concat(classes.pagination)
|
|
87
87
|
}, totalPages > _constants.PAGINATION_LIMIT_DOUBLE_ARROWS && !isResponsive && /*#__PURE__*/_react.default.createElement(_NavigationButton.default, {
|
|
88
88
|
className: _stylesModule.default.invertNavigationLabel,
|
|
89
89
|
colorTheme: navigationButtonColorTheme,
|
|
@@ -97,10 +97,10 @@ const Pagination = _ref => {
|
|
|
97
97
|
disabled: currentPage === 0,
|
|
98
98
|
onClick: () => onChangePage(currentPage - 1)
|
|
99
99
|
}), pageList.map(page => /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
100
|
-
key:
|
|
100
|
+
key: "page_".concat(page),
|
|
101
101
|
classNames: {
|
|
102
102
|
childrenContainer: _stylesModule.default.pageButtonChildrenContainer,
|
|
103
|
-
root:
|
|
103
|
+
root: "".concat(_stylesModule.default.pageButton, " ").concat(currentPage === page && _stylesModule.default.pageButtondisabled)
|
|
104
104
|
},
|
|
105
105
|
colorTheme: colorThemes.pageButton || currentPage === page ? 'primary' : 'secondary',
|
|
106
106
|
onClick: () => onChangePage(page),
|
|
@@ -30,11 +30,11 @@ const UTPagination = _ref => {
|
|
|
30
30
|
totalRowsLabel
|
|
31
31
|
} = _ref;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
-
className:
|
|
33
|
+
className: "".concat(_stylesModule.default.paginationContainer, " ").concat(classes.paginationContainer)
|
|
34
34
|
}, /*#__PURE__*/_react.default.createElement(_PageSizeSelector.default, {
|
|
35
35
|
classes: classes,
|
|
36
36
|
colorThemes: colorThemes,
|
|
37
|
-
label:
|
|
37
|
+
label: "".concat(_constants.PREPOSITION, " ").concat(totalRows, " ").concat(totalRowsLabel),
|
|
38
38
|
onChangeRowPerPage: onChangeRowPerPage,
|
|
39
39
|
options: rowsPerPageOptions,
|
|
40
40
|
rowsPerPage: rowsPerPage,
|
|
@@ -7,30 +7,31 @@ 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$UTPagination, _theme$UTPagination2, _theme$Fonts, _theme$UTPagination3, _theme$UTPagination4, _theme$UTPagination5, _theme$UTPagination6, _theme$UTPagination7, _theme$UTPagination8;
|
|
10
11
|
let {
|
|
11
12
|
theme
|
|
12
13
|
} = _ref;
|
|
13
14
|
return {
|
|
14
15
|
paginationContainer: {
|
|
15
|
-
marginTop: theme
|
|
16
|
+
marginTop: (theme === null || theme === void 0 || (_theme$UTPagination = theme.UTPagination) === null || _theme$UTPagination === void 0 || (_theme$UTPagination = _theme$UTPagination.paginationContainer) === null || _theme$UTPagination === void 0 ? void 0 : _theme$UTPagination.marginTop) || 32
|
|
16
17
|
},
|
|
17
18
|
pageSizeSelect: {
|
|
18
|
-
background: theme
|
|
19
|
-
fontFamily: theme
|
|
20
|
-
fontSize: theme
|
|
21
|
-
padding: theme
|
|
22
|
-
textAlign: theme
|
|
19
|
+
background: theme === null || theme === void 0 || (_theme$UTPagination2 = theme.UTPagination) === null || _theme$UTPagination2 === void 0 || (_theme$UTPagination2 = _theme$UTPagination2.pageSizeSelect) === null || _theme$UTPagination2 === void 0 ? void 0 : _theme$UTPagination2.background,
|
|
20
|
+
fontFamily: theme === null || theme === void 0 || (_theme$Fonts = theme.Fonts) === null || _theme$Fonts === void 0 ? void 0 : _theme$Fonts.fontFamily,
|
|
21
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTPagination3 = theme.UTPagination) === null || _theme$UTPagination3 === void 0 || (_theme$UTPagination3 = _theme$UTPagination3.pageSizeSelect) === null || _theme$UTPagination3 === void 0 ? void 0 : _theme$UTPagination3.fontSize,
|
|
22
|
+
padding: (theme === null || theme === void 0 || (_theme$UTPagination4 = theme.UTPagination) === null || _theme$UTPagination4 === void 0 || (_theme$UTPagination4 = _theme$UTPagination4.pageSizeSelect) === null || _theme$UTPagination4 === void 0 ? void 0 : _theme$UTPagination4.padding) || 6,
|
|
23
|
+
textAlign: theme === null || theme === void 0 || (_theme$UTPagination5 = theme.UTPagination) === null || _theme$UTPagination5 === void 0 || (_theme$UTPagination5 = _theme$UTPagination5.pageSizeSelect) === null || _theme$UTPagination5 === void 0 ? void 0 : _theme$UTPagination5.textAlign
|
|
23
24
|
},
|
|
24
25
|
pageSizeSelectContainer: {
|
|
25
26
|
'& fieldset': {
|
|
26
|
-
border: theme
|
|
27
|
+
border: (theme === null || theme === void 0 || (_theme$UTPagination6 = theme.UTPagination) === null || _theme$UTPagination6 === void 0 || (_theme$UTPagination6 = _theme$UTPagination6.pageSizeSelect) === null || _theme$UTPagination6 === void 0 ? void 0 : _theme$UTPagination6.border) || "1px solid ".concat(_colorsModule.default.gray3)
|
|
27
28
|
},
|
|
28
29
|
'&:hover fieldset': {
|
|
29
|
-
border: theme
|
|
30
|
+
border: (theme === null || theme === void 0 || (_theme$UTPagination7 = theme.UTPagination) === null || _theme$UTPagination7 === void 0 || (_theme$UTPagination7 = _theme$UTPagination7.pageSizeSelect) === null || _theme$UTPagination7 === void 0 || (_theme$UTPagination7 = _theme$UTPagination7.hover) === null || _theme$UTPagination7 === void 0 ? void 0 : _theme$UTPagination7.border) || "1px solid ".concat(_colorsModule.default.gray2)
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
pagination: {
|
|
33
|
-
gridGap: theme
|
|
34
|
+
gridGap: (theme === null || theme === void 0 || (_theme$UTPagination8 = theme.UTPagination) === null || _theme$UTPagination8 === void 0 || (_theme$UTPagination8 = _theme$UTPagination8.pagination) === null || _theme$UTPagination8 === void 0 ? void 0 : _theme$UTPagination8.gridGap) || '16px'
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
};
|
|
@@ -57,15 +57,15 @@ const UTPanel = _ref => {
|
|
|
57
57
|
},
|
|
58
58
|
classes: {
|
|
59
59
|
...drawerClasses,
|
|
60
|
-
paper:
|
|
61
|
-
root:
|
|
60
|
+
paper: "".concat(_stylesModule.default.paper, " ").concat(drawerClasses.paper),
|
|
61
|
+
root: "".concat(containerRef && _stylesModule.default.root, " ").concat(drawerClasses.root)
|
|
62
62
|
}
|
|
63
63
|
}, props), /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
-
className:
|
|
64
|
+
className: "".concat(_stylesModule.default.titleContainer, " ").concat(titleContainerClass)
|
|
65
65
|
}, TitleComponent || /*#__PURE__*/_react.default.createElement("div", {
|
|
66
66
|
className: _stylesModule.default.iconTitleContainer
|
|
67
67
|
}, TitleIcon && /*#__PURE__*/_react.default.createElement(TitleIcon, {
|
|
68
|
-
className:
|
|
68
|
+
className: "".concat(_stylesModule.default.titleIcon, " ").concat(titleIconClass)
|
|
69
69
|
}), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
70
70
|
weight: "semibold",
|
|
71
71
|
className: classes.title
|
|
@@ -79,7 +79,7 @@ const UTPanel = _ref => {
|
|
|
79
79
|
variant: "text"
|
|
80
80
|
})), disableScrollbar ? children : /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
81
81
|
onYReachEnd: onEndReachedCallback,
|
|
82
|
-
className:
|
|
82
|
+
className: "".concat(_stylesModule.default.perfectScrollbar, " ").concat(perfectScrollbarClass),
|
|
83
83
|
options: {
|
|
84
84
|
suppressScrollX: true,
|
|
85
85
|
...perfectScrollbarOptions
|
|
@@ -19,7 +19,7 @@ const DataItem = _ref => {
|
|
|
19
19
|
title
|
|
20
20
|
} = _ref;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
|
-
className:
|
|
22
|
+
className: "".concat(_stylesModule.default.container, " ").concat(_stylesModule.default[_constants.SIZES[size]])
|
|
23
23
|
}, /*#__PURE__*/_react.default.createElement(_UTIcon.default, {
|
|
24
24
|
className: _stylesModule.default.icon,
|
|
25
25
|
colorTheme: "gray",
|
|
@@ -69,7 +69,7 @@ const UTPanel = _ref => {
|
|
|
69
69
|
anchor: panelSide,
|
|
70
70
|
classes: {
|
|
71
71
|
...drawerClasses,
|
|
72
|
-
paper:
|
|
72
|
+
paper: "".concat(_stylesModule.default.paper, " ").concat(drawerClasses.paper, " ").concat(_stylesModule.default[_constants.SIZES[size]]),
|
|
73
73
|
root: drawerClasses.root
|
|
74
74
|
},
|
|
75
75
|
disableSwipeToOpen: true,
|
|
@@ -100,7 +100,7 @@ const UTPanel = _ref => {
|
|
|
100
100
|
},
|
|
101
101
|
value: currentStep * 100 / stepsCount
|
|
102
102
|
})), !hideHeader && /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
className:
|
|
103
|
+
className: "".concat(_stylesModule.default.headerContainer, " ").concat(headerContainerClass)
|
|
104
104
|
}, HeaderComponent || /*#__PURE__*/_react.default.createElement("div", {
|
|
105
105
|
className: _stylesModule.default.headerArea
|
|
106
106
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -131,13 +131,11 @@ const UTPanel = _ref => {
|
|
|
131
131
|
onClick: headerMainActionButton.callBack,
|
|
132
132
|
variant: headerMainActionButton.variant || 'filled'
|
|
133
133
|
}, headerMainActionButton.text)))), !(0, _isEmpty.default)(headerItems) && /*#__PURE__*/_react.default.createElement("div", {
|
|
134
|
-
className:
|
|
135
|
-
${collapseHeader ? _stylesModule.default.expandedContainer : _stylesModule.default.collapsedContainer}
|
|
136
|
-
${singleHeaderItemsColumn && _stylesModule.default.singleHeaderItemsColumn || ''}`
|
|
134
|
+
className: "".concat(_stylesModule.default.headerItemsContainer, " \n ").concat(collapseHeader ? _stylesModule.default.expandedContainer : _stylesModule.default.collapsedContainer, " \n ").concat(singleHeaderItemsColumn && _stylesModule.default.singleHeaderItemsColumn || '')
|
|
137
135
|
}, headerItems.map(_DataItem.default)), /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
-
className:
|
|
136
|
+
className: "".concat(_stylesModule.default.bodyContainer, " ").concat(classes.bodyContainer)
|
|
139
137
|
}, disableScrollbar ? children : /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
140
|
-
className:
|
|
138
|
+
className: "".concat(_stylesModule.default.perfectScrollbar, " ").concat(perfectScrollbarClass),
|
|
141
139
|
onYReachEnd: onEndReachedCallback,
|
|
142
140
|
options: {
|
|
143
141
|
suppressScrollX: true,
|
|
@@ -148,7 +146,7 @@ const UTPanel = _ref => {
|
|
|
148
146
|
root: _stylesModule.default.mainButton
|
|
149
147
|
},
|
|
150
148
|
size: "large"
|
|
151
|
-
}, mainButton), mainButton
|
|
149
|
+
}, mainButton), (mainButton === null || mainButton === void 0 ? void 0 : mainButton.text) || _constants.ACCEPT_BUTTON_TEXT));
|
|
152
150
|
};
|
|
153
151
|
UTPanel.propTypes = {
|
|
154
152
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
@@ -14,7 +14,7 @@ const retrieveStyle = _ref => {
|
|
|
14
14
|
background: (0, _seamlessImmutable.getIn)(theme, ['UTPanel', 'progressBar', 'barColorPrimary', 'background'], 'linear-gradient(90deg, #25E0A6 0%, #20BBFC 100%) !important')
|
|
15
15
|
},
|
|
16
16
|
colorPrimary: {
|
|
17
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTPanel', 'progressBar', 'colorPrimary', 'backgroundColor'],
|
|
17
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTPanel', 'progressBar', 'colorPrimary', 'backgroundColor'], "".concat(theme.Palette.light['04'], " !important"))
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
};
|
package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const ErrorMessage = _ref => {
|
|
|
25
25
|
return !assertion && /*#__PURE__*/_react.default.createElement("div", {
|
|
26
26
|
className: _stylesModule.default.container
|
|
27
27
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
28
|
-
className:
|
|
28
|
+
className: "".concat(iconStyle, " ").concat(failedIconStyle)
|
|
29
29
|
}), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
30
30
|
className: _stylesModule.default.label,
|
|
31
31
|
colorTheme: "error",
|
|
@@ -36,9 +36,9 @@ const Validation = _ref => {
|
|
|
36
36
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
37
37
|
className: _stylesModule.default.container
|
|
38
38
|
}, value || shouldShowError && !disabled ? assertion ? /*#__PURE__*/_react.default.createElement(PassedIcon, {
|
|
39
|
-
className:
|
|
39
|
+
className: "".concat(_stylesModule.default.passedIcon, " ").concat(iconStyle, " ").concat(passedIconStyle)
|
|
40
40
|
}) : /*#__PURE__*/_react.default.createElement(FailedIcon, {
|
|
41
|
-
className:
|
|
41
|
+
className: "".concat(_stylesModule.default.failedIcon, " ").concat(iconStyle, " ").concat(failedIconStyle)
|
|
42
42
|
}) : /*#__PURE__*/_react.default.createElement(NoValue, {
|
|
43
43
|
className: iconStyle
|
|
44
44
|
}), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
@@ -67,12 +67,12 @@ const PasswordValidations = _ref => {
|
|
|
67
67
|
assertion,
|
|
68
68
|
error
|
|
69
69
|
} = _ref6;
|
|
70
|
-
return !assertion && !passwordValidationsWarning
|
|
70
|
+
return !assertion && !(passwordValidationsWarning !== null && passwordValidationsWarning !== void 0 && passwordValidationsWarning.some(_ref7 => {
|
|
71
71
|
let {
|
|
72
72
|
error: warningError
|
|
73
73
|
} = _ref7;
|
|
74
74
|
return error === warningError;
|
|
75
|
-
});
|
|
75
|
+
}));
|
|
76
76
|
});
|
|
77
77
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, validations.map(_ref8 => {
|
|
78
78
|
let {
|
|
@@ -6,14 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _classesUtils = require("../../utils/classesUtils");
|
|
8
8
|
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$UTPasswordFiel, _theme$UTPasswordFiel2, _theme$UTPasswordFiel3, _theme$UTPasswordFiel4;
|
|
9
10
|
let {
|
|
10
11
|
theme
|
|
11
12
|
} = _ref;
|
|
12
13
|
return {
|
|
13
14
|
iconStyle: {
|
|
14
|
-
height: theme
|
|
15
|
-
width: theme
|
|
16
|
-
borderRadius: theme
|
|
15
|
+
height: (theme === null || theme === void 0 || (_theme$UTPasswordFiel = theme.UTPasswordField) === null || _theme$UTPasswordFiel === void 0 || (_theme$UTPasswordFiel = _theme$UTPasswordFiel.icon) === null || _theme$UTPasswordFiel === void 0 ? void 0 : _theme$UTPasswordFiel.size) || '1rem',
|
|
16
|
+
width: (theme === null || theme === void 0 || (_theme$UTPasswordFiel2 = theme.UTPasswordField) === null || _theme$UTPasswordFiel2 === void 0 || (_theme$UTPasswordFiel2 = _theme$UTPasswordFiel2.icon) === null || _theme$UTPasswordFiel2 === void 0 ? void 0 : _theme$UTPasswordFiel2.size) || '1rem',
|
|
17
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTPasswordFiel3 = theme.UTPasswordField) === null || _theme$UTPasswordFiel3 === void 0 || (_theme$UTPasswordFiel3 = _theme$UTPasswordFiel3.icon) === null || _theme$UTPasswordFiel3 === void 0 ? void 0 : _theme$UTPasswordFiel3.borderRadius) || '50%'
|
|
17
18
|
},
|
|
18
19
|
passedIconStyle: {
|
|
19
20
|
fill: theme.Palette.success['05']
|
|
@@ -22,14 +23,14 @@ const retrieveStyle = _ref => {
|
|
|
22
23
|
fill: theme.Palette.error['05']
|
|
23
24
|
},
|
|
24
25
|
errorsContainerStyle: {
|
|
25
|
-
borderTop:
|
|
26
|
+
borderTop: "1px solid ".concat(theme.Palette.error['05']),
|
|
26
27
|
marginTop: 7
|
|
27
28
|
},
|
|
28
29
|
warningDivider: {
|
|
29
30
|
backgroundColor: (0, _classesUtils.withImportant)(theme.Palette.warning['05'])
|
|
30
31
|
},
|
|
31
32
|
validationContainer: {
|
|
32
|
-
margin: (0, _classesUtils.withImportant)(theme
|
|
33
|
+
margin: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTPasswordFiel4 = theme.UTPasswordField) === null || _theme$UTPasswordFiel4 === void 0 || (_theme$UTPasswordFiel4 = _theme$UTPasswordFiel4.validationContainer) === null || _theme$UTPasswordFiel4 === void 0 ? void 0 : _theme$UTPasswordFiel4.margin)
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
};
|