@widergy/energy-ui 2.7.3 → 2.7.5
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 +14 -0
- package/dist/components/EnergyThemeProvider/index.js +1 -2
- package/dist/components/Loading/constants.js +1 -2
- package/dist/components/Loading/index.js +1 -2
- package/dist/components/Loading/theme.js +2 -3
- package/dist/components/UTAlert/AlertHandler.js +1 -2
- package/dist/components/UTAlert/index.js +1 -2
- package/dist/components/UTAlert/theme.js +3 -5
- package/dist/components/UTAttachment/components/Preview/index.js +1 -2
- package/dist/components/UTAttachment/constants.js +7 -13
- package/dist/components/UTAttachment/index.js +65 -42
- package/dist/components/UTAttachment/layout.js +10 -6
- package/dist/components/UTAttachment/styles.module.scss +1 -1
- package/dist/components/UTAttachment/theme.js +2 -3
- package/dist/components/UTAttachment/utils.js +30 -32
- package/dist/components/UTAutocomplete/components/ListBox/index.js +1 -2
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +2 -3
- package/dist/components/UTAutocomplete/constants.js +12 -23
- package/dist/components/UTAutocomplete/index.js +8 -3
- package/dist/components/UTAutocomplete/theme.js +10 -12
- package/dist/components/UTAvatar/constants.js +52 -28
- package/dist/components/UTAvatar/index.js +1 -2
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +1 -2
- package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -2
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +1 -2
- package/dist/components/UTBarChart/components/Bars/constants.js +3 -6
- package/dist/components/UTBarChart/components/Bars/index.js +1 -2
- package/dist/components/UTBarChart/components/Legend/constants.js +4 -7
- package/dist/components/UTBarChart/components/Legend/index.js +4 -6
- package/dist/components/UTBarChart/components/Legend/utils.js +2 -3
- package/dist/components/UTBarChart/components/Levels/index.js +1 -2
- package/dist/components/UTBarChart/components/Levels/utils.js +2 -3
- package/dist/components/UTBarChart/components/LinearPlot/constants.js +3 -5
- package/dist/components/UTBarChart/components/LinearPlot/index.js +1 -2
- package/dist/components/UTBarChart/components/LinearPlot/utils.js +3 -5
- package/dist/components/UTBarChart/components/Pagination/constants.js +1 -2
- package/dist/components/UTBarChart/components/Pagination/index.js +2 -3
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -4
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/index.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/utils.js +3 -5
- package/dist/components/UTBarChart/constants.js +4 -8
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +1 -2
- package/dist/components/UTBarChart/index.js +1 -2
- package/dist/components/UTBarChart/theme.js +2 -3
- package/dist/components/UTBarChart/types.js +10 -19
- package/dist/components/UTBarChart/utils.js +12 -23
- package/dist/components/UTBreadcrumbs/constants.js +7 -13
- package/dist/components/UTBreadcrumbs/index.js +1 -2
- package/dist/components/UTBreadcrumbs/theme.js +2 -3
- package/dist/components/UTButton/constants.js +6 -12
- package/dist/components/UTButton/index.js +2 -3
- package/dist/components/UTButton/styles.module.scss +6 -0
- package/dist/components/UTButton/theme.js +3 -5
- package/dist/components/UTCBUInput/index.js +1 -2
- package/dist/components/UTCBUInput/theme.js +2 -3
- package/dist/components/UTCaptcha/index.js +1 -2
- package/dist/components/UTCard/components/UTCardFooter/index.js +1 -2
- package/dist/components/UTCard/index.js +1 -2
- package/dist/components/UTCard/theme.js +2 -3
- package/dist/components/UTCard/types.js +2 -3
- package/dist/components/UTCarousel/components/Button/index.js +1 -2
- package/dist/components/UTCarousel/components/Legend/index.js +1 -2
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +1 -2
- package/dist/components/UTCarousel/components/Slider/constants.js +5 -10
- package/dist/components/UTCarousel/components/Slider/index.js +1 -2
- package/dist/components/UTCarousel/components/Slider/layout.js +1 -2
- package/dist/components/UTCarousel/index.js +1 -2
- package/dist/components/UTCarousel/theme.js +2 -3
- package/dist/components/UTCheckList/constants.js +1 -2
- package/dist/components/UTCheckList/index.js +1 -2
- package/dist/components/UTCheckList/theme.js +7 -9
- package/dist/components/UTCheckbox/constants.js +2 -3
- package/dist/components/UTCheckbox/index.js +1 -2
- package/dist/components/UTCheckbox/theme.js +4 -6
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +1 -2
- package/dist/components/UTConsumptionBar/constants.js +3 -6
- package/dist/components/UTConsumptionBar/index.js +1 -2
- package/dist/components/UTCuit/index.js +1 -2
- package/dist/components/UTCuit/theme.js +4 -5
- package/dist/components/UTDatePicker/components/Day/constants.js +1 -2
- package/dist/components/UTDatePicker/components/Day/index.js +1 -2
- package/dist/components/UTDatePicker/constants.js +11 -21
- package/dist/components/UTDatePicker/index.js +7 -3
- package/dist/components/UTDatePicker/theme.js +10 -8
- package/dist/components/UTDatePicker/types.js +2 -3
- package/dist/components/UTDatePicker/utils.js +3 -5
- package/dist/components/UTDialog/constants.js +2 -4
- package/dist/components/UTDialog/index.js +1 -2
- package/dist/components/UTDialog/theme.js +2 -3
- package/dist/components/UTDialog/types.js +2 -3
- package/dist/components/UTDotMenu/index.js +1 -2
- package/dist/components/UTEmojiPicker/constants.js +6 -11
- package/dist/components/UTEmojiPicker/index.js +1 -2
- package/dist/components/UTEmojiPicker/theme.js +2 -3
- package/dist/components/UTEmojiPicker/utils.js +3 -5
- package/dist/components/UTExternalLink/constants.js +3 -5
- package/dist/components/UTExternalLink/index.js +1 -2
- package/dist/components/UTExternalLink/theme.js +3 -5
- package/dist/components/UTFileInput/constants.js +2 -4
- package/dist/components/UTFileInput/index.js +1 -2
- package/dist/components/UTFileInput/layout.js +1 -2
- package/dist/components/UTIconButton/index.js +1 -2
- package/dist/components/UTIconButton/theme.js +2 -3
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +1 -2
- package/dist/components/UTImageRadio/constants.js +3 -6
- package/dist/components/UTImageRadio/index.js +1 -2
- package/dist/components/UTImageRadio/theme.js +2 -3
- package/dist/components/UTImageRadio/types.js +2 -3
- package/dist/components/UTImageRadio/utils.js +3 -5
- package/dist/components/UTLabel/constants.js +9 -17
- package/dist/components/UTLabel/index.js +1 -2
- package/dist/components/UTLabel/theme.js +4 -7
- package/dist/components/UTList/index.js +1 -2
- package/dist/components/UTLoading/index.js +1 -2
- package/dist/components/UTMap/components/GoogleMaps/constants.js +3 -5
- package/dist/components/UTMap/components/GoogleMaps/index.js +1 -2
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -3
- package/dist/components/UTMap/constants.js +6 -12
- package/dist/components/UTMap/index.js +1 -2
- package/dist/components/UTMap/types.js +3 -5
- package/dist/components/UTMap/utils.js +7 -13
- package/dist/components/UTMap/withGoogleMapScript.js +1 -2
- package/dist/components/UTMenu/index.js +50 -52
- package/dist/components/UTMenu/theme.js +3 -5
- package/dist/components/UTMenu/utils.js +5 -9
- package/dist/components/UTModal/constants.js +4 -8
- package/dist/components/UTModal/index.js +1 -2
- package/dist/components/UTModal/theme.js +2 -3
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +1 -2
- package/dist/components/UTPagination/components/PageSizeSelector/utils.js +2 -3
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +1 -2
- package/dist/components/UTPagination/components/Pagination/index.js +1 -2
- package/dist/components/UTPagination/components/Pagination/utils.js +2 -3
- package/dist/components/UTPagination/constants.js +3 -6
- package/dist/components/UTPagination/index.js +1 -2
- package/dist/components/UTPagination/theme.js +2 -3
- package/dist/components/UTPanel/index.js +1 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +1 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +1 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +1 -2
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +1 -2
- package/dist/components/UTPasswordField/index.js +1 -2
- package/dist/components/UTPasswordField/theme.js +2 -3
- package/dist/components/UTPhoneInput/constants.js +3 -6
- package/dist/components/UTPhoneInput/index.js +1 -2
- package/dist/components/UTPhoneInput/theme.js +6 -8
- package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -8
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +1 -2
- package/dist/components/UTPieChart/components/Legend/contants.js +3 -6
- package/dist/components/UTPieChart/components/Legend/index.js +1 -2
- package/dist/components/UTPieChart/constants.js +13 -26
- package/dist/components/UTPieChart/hooks/use-animated-value/index.js +1 -2
- package/dist/components/UTPieChart/index.js +1 -2
- package/dist/components/UTPieChart/theme.js +2 -3
- package/dist/components/UTPieChart/utils.js +2 -3
- package/dist/components/UTProgressBar/constants.js +2 -4
- package/dist/components/UTProgressBar/index.js +1 -2
- package/dist/components/UTProgressBar/theme.js +2 -3
- package/dist/components/UTProgressBar/types.js +2 -3
- package/dist/components/UTRadioGroup/index.js +1 -2
- package/dist/components/UTRadioGroup/theme.js +5 -7
- package/dist/components/UTRating/components/Circle/index.js +1 -2
- package/dist/components/UTRating/components/Star/index.js +1 -2
- package/dist/components/UTRating/constants.js +4 -8
- package/dist/components/UTRating/index.js +1 -2
- package/dist/components/UTRating/theme.js +2 -3
- package/dist/components/UTRipple/Ripple.js +1 -2
- package/dist/components/UTRipple/index.js +1 -2
- package/dist/components/UTSelect/components/Option/index.js +1 -2
- package/dist/components/UTSelect/constants.js +4 -8
- package/dist/components/UTSelect/index.js +2 -3
- package/dist/components/UTSelect/stylesJS.js +2 -3
- package/dist/components/UTSelect/theme.js +6 -8
- package/dist/components/UTSelect/utils.js +2 -3
- package/dist/components/UTSidebar/components/ListOption/index.js +14 -10
- package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +1 -2
- package/dist/components/UTSidebar/components/LogosContainer/index.js +1 -2
- package/dist/components/UTSidebar/components/Option/constants.js +2 -3
- package/dist/components/UTSidebar/components/Option/index.js +1 -2
- package/dist/components/UTSidebar/components/Toggler/index.js +1 -2
- package/dist/components/UTSidebar/index.js +2 -3
- package/dist/components/UTSidebar/theme.js +2 -3
- package/dist/components/UTSidebar/types.js +5 -10
- package/dist/components/UTSkeleton/index.js +1 -2
- package/dist/components/UTStatus/constants.js +5 -9
- package/dist/components/UTStatus/index.js +1 -2
- package/dist/components/UTStatus/theme.js +5 -9
- package/dist/components/UTSwitch/constants.js +3 -6
- package/dist/components/UTSwitch/index.js +1 -2
- package/dist/components/UTSwitch/theme.js +2 -3
- package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +2 -3
- package/dist/components/UTTable/components/ActionIcons/styles.module.scss +7 -5
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +1 -2
- package/dist/components/UTTable/components/Cell/index.js +1 -2
- package/dist/components/UTTable/components/HeaderCell/constants.js +2 -3
- package/dist/components/UTTable/components/HeaderCell/index.js +1 -2
- package/dist/components/UTTable/components/HeaderCell/utils.js +2 -3
- package/dist/components/UTTable/components/PrimaryAction/index.js +1 -2
- package/dist/components/UTTable/components/ResponsiveCell/index.js +1 -2
- package/dist/components/UTTable/components/Status/index.js +1 -2
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +1 -2
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +2 -3
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +1 -2
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +1 -2
- package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +2 -3
- package/dist/components/UTTable/components/TableFooter/constants.js +1 -2
- package/dist/components/UTTable/components/TableFooter/index.js +1 -2
- package/dist/components/UTTable/components/TableHeader/index.js +2 -3
- package/dist/components/UTTable/components/TableHeader/styles.module.scss +5 -0
- package/dist/components/UTTable/components/TableRow/constants.js +2 -3
- package/dist/components/UTTable/components/TableRow/index.js +1 -2
- package/dist/components/UTTable/constants.js +19 -38
- package/dist/components/UTTable/hook.js +2 -3
- package/dist/components/UTTable/index.js +1 -2
- package/dist/components/UTTable/theme.js +16 -9
- package/dist/components/UTTable/types.js +4 -8
- package/dist/components/UTTable/utils.js +10 -19
- package/dist/components/UTTabs/components/TooltipTab/index.js +1 -2
- package/dist/components/UTTabs/constants.js +4 -8
- package/dist/components/UTTabs/index.js +1 -2
- package/dist/components/UTTabs/theme.js +2 -3
- package/dist/components/UTTabs/utils.js +2 -3
- package/dist/components/UTTextArea/constants.js +2 -3
- package/dist/components/UTTextArea/index.js +6 -5
- package/dist/components/UTTextArea/theme.js +4 -5
- package/dist/components/UTTextInput/constants.js +2 -3
- package/dist/components/UTTextInput/index.js +1 -2
- package/dist/components/UTTextInput/theme.js +6 -8
- package/dist/components/UTThirdPartyCookieChecker/index.js +1 -2
- package/dist/components/UTToggle/components/ToggleOption/index.js +1 -2
- package/dist/components/UTToggle/index.js +1 -2
- package/dist/components/UTToggle/theme.js +2 -3
- package/dist/components/UTTooltip/index.js +1 -2
- package/dist/components/UTTooltip/theme.js +2 -3
- package/dist/components/UTTopbar/components/Notifications/index.js +1 -2
- package/dist/components/UTTopbar/components/UserMenu/index.js +3 -3
- package/dist/components/UTTopbar/index.js +9 -8
- package/dist/components/UTTopbar/theme.js +36 -45
- package/dist/components/UTTopbar/types.js +5 -9
- package/dist/components/UTTouchableWithoutFeedback/index.js +1 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +1 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +2 -3
- package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +6 -12
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +1 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +1 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +1 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +8 -15
- package/dist/components/UTVirtualizedList/constants.js +4 -8
- package/dist/components/UTVirtualizedList/index.js +1 -2
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +1 -2
- package/dist/components/UTWorkflowContainer/constants.js +4 -12
- package/dist/components/UTWorkflowContainer/hooks/use-previous.js +2 -3
- package/dist/components/UTWorkflowContainer/index.js +8 -12
- package/dist/components/UTWorkflowContainer/styles.module.scss +1 -1
- package/dist/components/UTWorkflowContainer/theme.js +2 -3
- package/dist/components/UTWorkflowContainer/types.js +2 -3
- package/dist/components/WithLoading/index.js +1 -2
- package/dist/components/WithTheme/index.js +1 -2
- package/dist/components/WithTheme/layout.js +1 -2
- package/dist/components/WithTouch/index.js +1 -2
- package/dist/constants/UTTable.js +2 -3
- package/dist/theme.js +3 -6
- package/dist/types/commonTypes.js +3 -5
- package/dist/types/consumptionTypes.js +3 -5
- package/dist/types/formTypes.js +7 -10
- package/dist/types/tableTypes.js +2 -3
- package/dist/utils/classesUtils.js +3 -5
- package/dist/utils/componentUtils.js +2 -3
- package/dist/utils/helperFunctions.js +2 -3
- package/dist/utils/shadowUtils.js +2 -3
- package/dist/utils/useScreenSize.js +2 -3
- package/package.json +2 -2
|
@@ -41,6 +41,7 @@ var UTTopbar = function UTTopbar(_ref) {
|
|
|
41
41
|
notificationIconActive = _ref.notificationIconActive,
|
|
42
42
|
notificationIconInactive = _ref.notificationIconInactive,
|
|
43
43
|
title = _ref.title,
|
|
44
|
+
titleProps = _ref.titleProps,
|
|
44
45
|
userSubtitle = _ref.userSubtitle,
|
|
45
46
|
userTitle = _ref.userTitle,
|
|
46
47
|
UTMenu = _ref.UTMenu;
|
|
@@ -52,9 +53,9 @@ var UTTopbar = function UTTopbar(_ref) {
|
|
|
52
53
|
}, handleMenu && isMobileSize && /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
53
54
|
onClick: handleMenu,
|
|
54
55
|
className: classes.menuIcon
|
|
55
|
-
}), (0, _array.isEmpty)(breadcrumbs) ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
56
|
-
className: "".concat(isMobileSize && _stylesModule.default.mobileTitle
|
|
57
|
-
}, title) : isMobileSize ? UTMenu : /*#__PURE__*/_react.default.createElement(_UTBreadcrumbs.default, _extends({
|
|
56
|
+
}), (0, _array.isEmpty)(breadcrumbs) ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
57
|
+
className: "".concat(isMobileSize && _stylesModule.default.mobileTitle)
|
|
58
|
+
}, titleProps), title) : isMobileSize ? UTMenu : /*#__PURE__*/_react.default.createElement(_UTBreadcrumbs.default, _extends({
|
|
58
59
|
breadcrumbs: breadcrumbs
|
|
59
60
|
}, breadcrumbsProps)), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
61
|
className: _stylesModule.default.rightSection
|
|
@@ -66,13 +67,13 @@ var UTTopbar = function UTTopbar(_ref) {
|
|
|
66
67
|
}), /*#__PURE__*/_react.default.createElement(_UserMenu.default, {
|
|
67
68
|
Arrow: Arrow,
|
|
68
69
|
avatar: avatar,
|
|
70
|
+
classes: classes,
|
|
69
71
|
handleClick: handleClick,
|
|
70
72
|
justAvatar: justAvatar,
|
|
71
73
|
MenuComponent: MenuComponent,
|
|
72
74
|
menuOpened: menuOpened,
|
|
73
|
-
|
|
74
|
-
title: userTitle
|
|
75
|
-
subtitle: userSubtitle
|
|
75
|
+
subtitle: userSubtitle,
|
|
76
|
+
title: userTitle
|
|
76
77
|
})));
|
|
77
78
|
};
|
|
78
79
|
UTTopbar.propTypes = {
|
|
@@ -95,9 +96,9 @@ UTTopbar.propTypes = {
|
|
|
95
96
|
label: _propTypes.string,
|
|
96
97
|
route: _propTypes.string
|
|
97
98
|
}))]),
|
|
99
|
+
titleProps: _propTypes.object,
|
|
98
100
|
userSubtitle: _propTypes.node,
|
|
99
101
|
userTitle: _propTypes.string,
|
|
100
102
|
UTMenu: _propTypes.node
|
|
101
103
|
};
|
|
102
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTTopbar);
|
|
103
|
-
exports.default = _default;
|
|
104
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTTopbar);
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
10
|
-
var _theme$UTTopbar, _theme$UTTopbar2, _theme$UTTopbar3, _theme$UTTopbar4, _theme$UTTopbar5, _theme$UTTopbar6, _theme$UTTopbar7, _theme$UTTopbar8, _theme$UTTopbar9, _theme$UTTopbar10, _theme$UTTopbar11, _theme$UTTopbar12, _theme$UTTopbar13, _theme$UTTopbar14, _theme$UTTopbar15, _theme$UTTopbar16, _theme$UTTopbar17, _theme$UTTopbar18, _theme$UTTopbar19, _theme$UTTopbar20, _theme$UTTopbar21, _theme$UTTopbar22, _theme$UTTopbar23, _theme$UTTopbar24, _theme$UTTopbar25, _theme$UTTopbar26, _theme$UTTopbar27, _theme$UTTopbar28, _theme$UTTopbar29, _theme$UTTopbar30, _theme$UTTopbar31, _theme$UTTopbar32, _theme$UTTopbar33, _theme$UTTopbar34, _theme$UTTopbar35, _theme$UTTopbar36, _theme$UTTopbar37, _theme$UTTopbar38, _theme$UTTopbar39, _theme$UTTopbar40
|
|
9
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
10
|
+
var _theme$UTTopbar, _theme$UTTopbar2, _theme$UTTopbar3, _theme$UTTopbar4, _theme$UTTopbar5, _theme$UTTopbar6, _theme$UTTopbar7, _theme$UTTopbar8, _theme$UTTopbar9, _theme$UTTopbar10, _theme$UTTopbar11, _theme$UTTopbar12, _theme$UTTopbar13, _theme$UTTopbar14, _theme$UTTopbar15, _theme$UTTopbar16, _theme$UTTopbar17, _theme$UTTopbar18, _theme$UTTopbar19, _theme$UTTopbar20, _theme$UTTopbar21, _theme$UTTopbar22, _theme$UTTopbar23, _theme$UTTopbar24, _theme$UTTopbar25, _theme$UTTopbar26, _theme$UTTopbar27, _theme$UTTopbar28, _theme$UTTopbar29, _theme$UTTopbar30, _theme$UTTopbar31, _theme$UTTopbar32, _theme$UTTopbar33, _theme$UTTopbar34, _theme$UTTopbar35, _theme$UTTopbar36, _theme$UTTopbar37, _theme$UTTopbar38, _theme$UTTopbar39, _theme$UTTopbar40;
|
|
11
11
|
var theme = _ref.theme;
|
|
12
12
|
return {
|
|
13
13
|
container: {
|
|
@@ -19,65 +19,56 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
19
19
|
top: theme === null || theme === void 0 || (_theme$UTTopbar6 = theme.UTTopbar) === null || _theme$UTTopbar6 === void 0 || (_theme$UTTopbar6 = _theme$UTTopbar6.container) === null || _theme$UTTopbar6 === void 0 ? void 0 : _theme$UTTopbar6.top,
|
|
20
20
|
zIndex: theme === null || theme === void 0 || (_theme$UTTopbar7 = theme.UTTopbar) === null || _theme$UTTopbar7 === void 0 || (_theme$UTTopbar7 = _theme$UTTopbar7.container) === null || _theme$UTTopbar7 === void 0 ? void 0 : _theme$UTTopbar7.zIndex
|
|
21
21
|
},
|
|
22
|
-
title: {
|
|
23
|
-
color: theme === null || theme === void 0 || (_theme$UTTopbar8 = theme.UTTopbar) === null || _theme$UTTopbar8 === void 0 || (_theme$UTTopbar8 = _theme$UTTopbar8.title) === null || _theme$UTTopbar8 === void 0 ? void 0 : _theme$UTTopbar8.color,
|
|
24
|
-
fontFamily: theme === null || theme === void 0 || (_theme$UTTopbar9 = theme.UTTopbar) === null || _theme$UTTopbar9 === void 0 || (_theme$UTTopbar9 = _theme$UTTopbar9.title) === null || _theme$UTTopbar9 === void 0 ? void 0 : _theme$UTTopbar9.fontFamily,
|
|
25
|
-
fontSize: theme === null || theme === void 0 || (_theme$UTTopbar10 = theme.UTTopbar) === null || _theme$UTTopbar10 === void 0 || (_theme$UTTopbar10 = _theme$UTTopbar10.title) === null || _theme$UTTopbar10 === void 0 ? void 0 : _theme$UTTopbar10.fontSize,
|
|
26
|
-
fontWeight: theme === null || theme === void 0 || (_theme$UTTopbar11 = theme.UTTopbar) === null || _theme$UTTopbar11 === void 0 || (_theme$UTTopbar11 = _theme$UTTopbar11.title) === null || _theme$UTTopbar11 === void 0 ? void 0 : _theme$UTTopbar11.fontWeight,
|
|
27
|
-
lineHeight: theme === null || theme === void 0 || (_theme$UTTopbar12 = theme.UTTopbar) === null || _theme$UTTopbar12 === void 0 || (_theme$UTTopbar12 = _theme$UTTopbar12.title) === null || _theme$UTTopbar12 === void 0 ? void 0 : _theme$UTTopbar12.lineHeight,
|
|
28
|
-
padding: theme === null || theme === void 0 || (_theme$UTTopbar13 = theme.UTTopbar) === null || _theme$UTTopbar13 === void 0 || (_theme$UTTopbar13 = _theme$UTTopbar13.title) === null || _theme$UTTopbar13 === void 0 ? void 0 : _theme$UTTopbar13.padding
|
|
29
|
-
},
|
|
30
22
|
breadCrumb: {
|
|
31
23
|
'&:hover': {
|
|
32
|
-
backgroundColor: theme === null || theme === void 0 || (_theme$
|
|
33
|
-
textDecoration: theme === null || theme === void 0 || (_theme$
|
|
34
|
-
cursor: theme === null || theme === void 0 || (_theme$
|
|
24
|
+
backgroundColor: theme === null || theme === void 0 || (_theme$UTTopbar8 = theme.UTTopbar) === null || _theme$UTTopbar8 === void 0 || (_theme$UTTopbar8 = _theme$UTTopbar8.breadCrumb) === null || _theme$UTTopbar8 === void 0 || (_theme$UTTopbar8 = _theme$UTTopbar8.hover) === null || _theme$UTTopbar8 === void 0 ? void 0 : _theme$UTTopbar8.backgroundColor,
|
|
25
|
+
textDecoration: theme === null || theme === void 0 || (_theme$UTTopbar9 = theme.UTTopbar) === null || _theme$UTTopbar9 === void 0 || (_theme$UTTopbar9 = _theme$UTTopbar9.breadCrumb) === null || _theme$UTTopbar9 === void 0 || (_theme$UTTopbar9 = _theme$UTTopbar9.hover) === null || _theme$UTTopbar9 === void 0 ? void 0 : _theme$UTTopbar9.textDecoration,
|
|
26
|
+
cursor: theme === null || theme === void 0 || (_theme$UTTopbar10 = theme.UTTopbar) === null || _theme$UTTopbar10 === void 0 || (_theme$UTTopbar10 = _theme$UTTopbar10.breadCrumb) === null || _theme$UTTopbar10 === void 0 || (_theme$UTTopbar10 = _theme$UTTopbar10.hover) === null || _theme$UTTopbar10 === void 0 ? void 0 : _theme$UTTopbar10.cursor
|
|
35
27
|
}
|
|
36
28
|
},
|
|
37
29
|
userMenu: {
|
|
38
|
-
borderLeft: theme === null || theme === void 0 || (_theme$
|
|
39
|
-
margin: (theme === null || theme === void 0 || (_theme$
|
|
40
|
-
minWidth: theme === null || theme === void 0 || (_theme$
|
|
41
|
-
padding: (theme === null || theme === void 0 || (_theme$
|
|
42
|
-
justifyContent: theme === null || theme === void 0 || (_theme$
|
|
30
|
+
borderLeft: theme === null || theme === void 0 || (_theme$UTTopbar11 = theme.UTTopbar) === null || _theme$UTTopbar11 === void 0 || (_theme$UTTopbar11 = _theme$UTTopbar11.userMenu) === null || _theme$UTTopbar11 === void 0 ? void 0 : _theme$UTTopbar11.borderLeft,
|
|
31
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar12 = theme.UTTopbar) === null || _theme$UTTopbar12 === void 0 || (_theme$UTTopbar12 = _theme$UTTopbar12.userMenu) === null || _theme$UTTopbar12 === void 0 ? void 0 : _theme$UTTopbar12.margin) || '0 0 0 20px',
|
|
32
|
+
minWidth: theme === null || theme === void 0 || (_theme$UTTopbar13 = theme.UTTopbar) === null || _theme$UTTopbar13 === void 0 || (_theme$UTTopbar13 = _theme$UTTopbar13.userMenu) === null || _theme$UTTopbar13 === void 0 ? void 0 : _theme$UTTopbar13.minWidth,
|
|
33
|
+
padding: (theme === null || theme === void 0 || (_theme$UTTopbar14 = theme.UTTopbar) === null || _theme$UTTopbar14 === void 0 || (_theme$UTTopbar14 = _theme$UTTopbar14.userMenu) === null || _theme$UTTopbar14 === void 0 ? void 0 : _theme$UTTopbar14.padding) || '0 0 0 20px',
|
|
34
|
+
justifyContent: theme === null || theme === void 0 || (_theme$UTTopbar15 = theme.UTTopbar) === null || _theme$UTTopbar15 === void 0 || (_theme$UTTopbar15 = _theme$UTTopbar15.userMenu) === null || _theme$UTTopbar15 === void 0 ? void 0 : _theme$UTTopbar15.justifyContent
|
|
43
35
|
},
|
|
44
36
|
userMenuAvatar: {
|
|
45
|
-
background: theme === null || theme === void 0 || (_theme$
|
|
46
|
-
border: theme === null || theme === void 0 || (_theme$
|
|
47
|
-
borderRadius: (theme === null || theme === void 0 || (_theme$
|
|
48
|
-
color: theme === null || theme === void 0 || (_theme$
|
|
49
|
-
fontSize: (theme === null || theme === void 0 || (_theme$
|
|
50
|
-
fontWeight: (theme === null || theme === void 0 || (_theme$
|
|
51
|
-
height: (theme === null || theme === void 0 || (_theme$
|
|
52
|
-
margin: (theme === null || theme === void 0 || (_theme$
|
|
53
|
-
width: (theme === null || theme === void 0 || (_theme$
|
|
37
|
+
background: theme === null || theme === void 0 || (_theme$UTTopbar16 = theme.UTTopbar) === null || _theme$UTTopbar16 === void 0 || (_theme$UTTopbar16 = _theme$UTTopbar16.userMenuAvatar) === null || _theme$UTTopbar16 === void 0 ? void 0 : _theme$UTTopbar16.background,
|
|
38
|
+
border: theme === null || theme === void 0 || (_theme$UTTopbar17 = theme.UTTopbar) === null || _theme$UTTopbar17 === void 0 || (_theme$UTTopbar17 = _theme$UTTopbar17.userMenuAvatar) === null || _theme$UTTopbar17 === void 0 ? void 0 : _theme$UTTopbar17.border,
|
|
39
|
+
borderRadius: (theme === null || theme === void 0 || (_theme$UTTopbar18 = theme.UTTopbar) === null || _theme$UTTopbar18 === void 0 || (_theme$UTTopbar18 = _theme$UTTopbar18.userMenuAvatar) === null || _theme$UTTopbar18 === void 0 ? void 0 : _theme$UTTopbar18.borderRadius) || '50%',
|
|
40
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar19 = theme.UTTopbar) === null || _theme$UTTopbar19 === void 0 || (_theme$UTTopbar19 = _theme$UTTopbar19.userMenuAvatar) === null || _theme$UTTopbar19 === void 0 ? void 0 : _theme$UTTopbar19.color,
|
|
41
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar20 = theme.UTTopbar) === null || _theme$UTTopbar20 === void 0 || (_theme$UTTopbar20 = _theme$UTTopbar20.userMenuAvatar) === null || _theme$UTTopbar20 === void 0 ? void 0 : _theme$UTTopbar20.fontSize) || 24,
|
|
42
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTTopbar21 = theme.UTTopbar) === null || _theme$UTTopbar21 === void 0 || (_theme$UTTopbar21 = _theme$UTTopbar21.userMenuAvatar) === null || _theme$UTTopbar21 === void 0 ? void 0 : _theme$UTTopbar21.fontWeight) || 500,
|
|
43
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar22 = theme.UTTopbar) === null || _theme$UTTopbar22 === void 0 || (_theme$UTTopbar22 = _theme$UTTopbar22.userMenuAvatar) === null || _theme$UTTopbar22 === void 0 ? void 0 : _theme$UTTopbar22.height) || 40,
|
|
44
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar23 = theme.UTTopbar) === null || _theme$UTTopbar23 === void 0 || (_theme$UTTopbar23 = _theme$UTTopbar23.userMenuAvatar) === null || _theme$UTTopbar23 === void 0 ? void 0 : _theme$UTTopbar23.margin) || '0 10px 0 0',
|
|
45
|
+
width: (theme === null || theme === void 0 || (_theme$UTTopbar24 = theme.UTTopbar) === null || _theme$UTTopbar24 === void 0 || (_theme$UTTopbar24 = _theme$UTTopbar24.userMenuAvatar) === null || _theme$UTTopbar24 === void 0 ? void 0 : _theme$UTTopbar24.width) || 40
|
|
54
46
|
},
|
|
55
47
|
userMenuArrow: {
|
|
56
|
-
alignSelf: theme === null || theme === void 0 || (_theme$
|
|
57
|
-
color: theme === null || theme === void 0 || (_theme$
|
|
58
|
-
fontSize: theme === null || theme === void 0 || (_theme$
|
|
59
|
-
height: (theme === null || theme === void 0 || (_theme$
|
|
60
|
-
margin: (theme === null || theme === void 0 || (_theme$
|
|
61
|
-
width: (theme === null || theme === void 0 || (_theme$
|
|
48
|
+
alignSelf: theme === null || theme === void 0 || (_theme$UTTopbar25 = theme.UTTopbar) === null || _theme$UTTopbar25 === void 0 || (_theme$UTTopbar25 = _theme$UTTopbar25.userMenuArrow) === null || _theme$UTTopbar25 === void 0 ? void 0 : _theme$UTTopbar25.alignSelf,
|
|
49
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar26 = theme.UTTopbar) === null || _theme$UTTopbar26 === void 0 || (_theme$UTTopbar26 = _theme$UTTopbar26.userMenuArrow) === null || _theme$UTTopbar26 === void 0 ? void 0 : _theme$UTTopbar26.color,
|
|
50
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTTopbar27 = theme.UTTopbar) === null || _theme$UTTopbar27 === void 0 || (_theme$UTTopbar27 = _theme$UTTopbar27.userMenuArrow) === null || _theme$UTTopbar27 === void 0 ? void 0 : _theme$UTTopbar27.fontSize,
|
|
51
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar28 = theme.UTTopbar) === null || _theme$UTTopbar28 === void 0 || (_theme$UTTopbar28 = _theme$UTTopbar28.userMenuArrow) === null || _theme$UTTopbar28 === void 0 ? void 0 : _theme$UTTopbar28.height) || 20,
|
|
52
|
+
margin: (theme === null || theme === void 0 || (_theme$UTTopbar29 = theme.UTTopbar) === null || _theme$UTTopbar29 === void 0 || (_theme$UTTopbar29 = _theme$UTTopbar29.userMenuArrow) === null || _theme$UTTopbar29 === void 0 ? void 0 : _theme$UTTopbar29.margin) || '0 0 0 6px',
|
|
53
|
+
width: (theme === null || theme === void 0 || (_theme$UTTopbar30 = theme.UTTopbar) === null || _theme$UTTopbar30 === void 0 || (_theme$UTTopbar30 = _theme$UTTopbar30.userMenuArrow) === null || _theme$UTTopbar30 === void 0 ? void 0 : _theme$UTTopbar30.width) || 'auto'
|
|
62
54
|
},
|
|
63
55
|
userMenuTitle: {
|
|
64
|
-
color: theme === null || theme === void 0 || (_theme$
|
|
65
|
-
fontSize: theme === null || theme === void 0 || (_theme$
|
|
66
|
-
fontWeight: (theme === null || theme === void 0 || (_theme$
|
|
67
|
-
margin: theme === null || theme === void 0 || (_theme$
|
|
56
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar31 = theme.UTTopbar) === null || _theme$UTTopbar31 === void 0 || (_theme$UTTopbar31 = _theme$UTTopbar31.userMenuTitle) === null || _theme$UTTopbar31 === void 0 ? void 0 : _theme$UTTopbar31.color,
|
|
57
|
+
fontSize: theme === null || theme === void 0 || (_theme$UTTopbar32 = theme.UTTopbar) === null || _theme$UTTopbar32 === void 0 || (_theme$UTTopbar32 = _theme$UTTopbar32.userMenuTitle) === null || _theme$UTTopbar32 === void 0 ? void 0 : _theme$UTTopbar32.fontSize,
|
|
58
|
+
fontWeight: (theme === null || theme === void 0 || (_theme$UTTopbar33 = theme.UTTopbar) === null || _theme$UTTopbar33 === void 0 || (_theme$UTTopbar33 = _theme$UTTopbar33.userMenuTitle) === null || _theme$UTTopbar33 === void 0 ? void 0 : _theme$UTTopbar33.fontWeight) || 500,
|
|
59
|
+
margin: theme === null || theme === void 0 || (_theme$UTTopbar34 = theme.UTTopbar) === null || _theme$UTTopbar34 === void 0 || (_theme$UTTopbar34 = _theme$UTTopbar34.userMenuTitle) === null || _theme$UTTopbar34 === void 0 ? void 0 : _theme$UTTopbar34.margin
|
|
68
60
|
},
|
|
69
61
|
notifications: {
|
|
70
|
-
padding: (theme === null || theme === void 0 || (_theme$
|
|
62
|
+
padding: (theme === null || theme === void 0 || (_theme$UTTopbar35 = theme.UTTopbar) === null || _theme$UTTopbar35 === void 0 || (_theme$UTTopbar35 = _theme$UTTopbar35.notifications) === null || _theme$UTTopbar35 === void 0 ? void 0 : _theme$UTTopbar35.padding) || '0 20px'
|
|
71
63
|
},
|
|
72
64
|
notificationsIcon: {
|
|
73
|
-
height: (theme === null || theme === void 0 || (_theme$
|
|
74
|
-
fontSize: (theme === null || theme === void 0 || (_theme$
|
|
75
|
-
padding: theme === null || theme === void 0 || (_theme$
|
|
65
|
+
height: (theme === null || theme === void 0 || (_theme$UTTopbar36 = theme.UTTopbar) === null || _theme$UTTopbar36 === void 0 || (_theme$UTTopbar36 = _theme$UTTopbar36.notificationsIcon) === null || _theme$UTTopbar36 === void 0 ? void 0 : _theme$UTTopbar36.height) || 32,
|
|
66
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar37 = theme.UTTopbar) === null || _theme$UTTopbar37 === void 0 || (_theme$UTTopbar37 = _theme$UTTopbar37.notificationsIcon) === null || _theme$UTTopbar37 === void 0 ? void 0 : _theme$UTTopbar37.fontSize) || 30,
|
|
67
|
+
padding: theme === null || theme === void 0 || (_theme$UTTopbar38 = theme.UTTopbar) === null || _theme$UTTopbar38 === void 0 || (_theme$UTTopbar38 = _theme$UTTopbar38.notificationsIcon) === null || _theme$UTTopbar38 === void 0 ? void 0 : _theme$UTTopbar38.padding
|
|
76
68
|
},
|
|
77
69
|
menuIcon: {
|
|
78
|
-
color: theme === null || theme === void 0 || (_theme$
|
|
79
|
-
fontSize: (theme === null || theme === void 0 || (_theme$
|
|
70
|
+
color: theme === null || theme === void 0 || (_theme$UTTopbar39 = theme.UTTopbar) === null || _theme$UTTopbar39 === void 0 || (_theme$UTTopbar39 = _theme$UTTopbar39.menuIcon) === null || _theme$UTTopbar39 === void 0 ? void 0 : _theme$UTTopbar39.color,
|
|
71
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTopbar40 = theme.UTTopbar) === null || _theme$UTTopbar40 === void 0 || (_theme$UTTopbar40 = _theme$UTTopbar40.menuIcon) === null || _theme$UTTopbar40 === void 0 ? void 0 : _theme$UTTopbar40.fontSize) || 25
|
|
80
72
|
}
|
|
81
73
|
};
|
|
82
|
-
};
|
|
83
|
-
exports.retrieveStyle = retrieveStyle;
|
|
74
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.menuPropsType = exports.iconType = exports.classType = exports.avatarType = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
|
-
var classType = (0, _propTypes.shape)({
|
|
8
|
+
var classType = exports.classType = (0, _propTypes.shape)({
|
|
9
9
|
container: _propTypes.string,
|
|
10
10
|
notifications: _propTypes.string,
|
|
11
11
|
title: _propTypes.string,
|
|
@@ -13,15 +13,11 @@ var classType = (0, _propTypes.shape)({
|
|
|
13
13
|
userMenuAvatar: _propTypes.string,
|
|
14
14
|
userMenuArrow: _propTypes.string
|
|
15
15
|
});
|
|
16
|
-
exports.
|
|
17
|
-
var
|
|
18
|
-
exports.
|
|
19
|
-
var iconType = (0, _propTypes.oneOfType)([_propTypes.elementType, _propTypes.func]);
|
|
20
|
-
exports.iconType = iconType;
|
|
21
|
-
var menuPropsType = (0, _propTypes.shape)({
|
|
16
|
+
var avatarType = exports.avatarType = (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.elementType, _propTypes.func]);
|
|
17
|
+
var iconType = exports.iconType = (0, _propTypes.oneOfType)([_propTypes.elementType, _propTypes.func]);
|
|
18
|
+
var menuPropsType = exports.menuPropsType = (0, _propTypes.shape)({
|
|
22
19
|
ItemComponent: _propTypes.elementType.isRequired,
|
|
23
20
|
items: _propTypes.array.isRequired,
|
|
24
21
|
itemComponentProps: _propTypes.object,
|
|
25
22
|
LastItem: _propTypes.elementType
|
|
26
|
-
});
|
|
27
|
-
exports.menuPropsType = menuPropsType;
|
|
23
|
+
});
|
package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js
CHANGED
|
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SUB_KEY = exports.KEY = void 0;
|
|
7
|
-
var KEY = 'UTV-ROW-';
|
|
8
|
-
exports.
|
|
9
|
-
var SUB_KEY = 'UTV-ITEM-';
|
|
10
|
-
exports.SUB_KEY = SUB_KEY;
|
|
7
|
+
var KEY = exports.KEY = 'UTV-ROW-';
|
|
8
|
+
var SUB_KEY = exports.SUB_KEY = 'UTV-ITEM-';
|
package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js
CHANGED
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getDynamicPosition = void 0;
|
|
7
|
-
var getDynamicPosition = function getDynamicPosition(ref, position, setPosition) {
|
|
7
|
+
var getDynamicPosition = exports.getDynamicPosition = function getDynamicPosition(ref, position, setPosition) {
|
|
8
8
|
var _ref$current, _sibling$clientHeight, _sibling$offsetTop;
|
|
9
9
|
var sibling = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.previousSibling;
|
|
10
10
|
var height = (_sibling$clientHeight = sibling === null || sibling === void 0 ? void 0 : sibling.clientHeight) !== null && _sibling$clientHeight !== void 0 ? _sibling$clientHeight : 0;
|
|
11
11
|
var offsetTop = (_sibling$offsetTop = sibling === null || sibling === void 0 ? void 0 : sibling.offsetTop) !== null && _sibling$offsetTop !== void 0 ? _sibling$offsetTop : 0;
|
|
12
12
|
if (position !== offsetTop + height) setPosition(sibling ? offsetTop + height : 0);
|
|
13
|
-
};
|
|
14
|
-
exports.getDynamicPosition = getDynamicPosition;
|
|
13
|
+
};
|
|
@@ -4,20 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SCROLL_THROTTLE_DELAY = exports.SCROLL_EVENT_OPTIONS = exports.SCROLL_EVENT = exports.MAX_LIMIT_MULTIPLIER = exports.DEFAULT_LIMIT_MULTIPLIER = exports.CACHE = void 0;
|
|
7
|
-
var CACHE = {
|
|
7
|
+
var CACHE = exports.CACHE = {
|
|
8
8
|
height: 200
|
|
9
9
|
};
|
|
10
|
-
exports.
|
|
11
|
-
var SCROLL_EVENT_OPTIONS = {
|
|
10
|
+
var SCROLL_EVENT_OPTIONS = exports.SCROLL_EVENT_OPTIONS = {
|
|
12
11
|
passive: true,
|
|
13
12
|
capture: true
|
|
14
13
|
};
|
|
15
|
-
exports.
|
|
16
|
-
var
|
|
17
|
-
exports.
|
|
18
|
-
var
|
|
19
|
-
exports.SCROLL_THROTTLE_DELAY = SCROLL_THROTTLE_DELAY;
|
|
20
|
-
var MAX_LIMIT_MULTIPLIER = 4;
|
|
21
|
-
exports.MAX_LIMIT_MULTIPLIER = MAX_LIMIT_MULTIPLIER;
|
|
22
|
-
var DEFAULT_LIMIT_MULTIPLIER = 2;
|
|
23
|
-
exports.DEFAULT_LIMIT_MULTIPLIER = DEFAULT_LIMIT_MULTIPLIER;
|
|
14
|
+
var SCROLL_EVENT = exports.SCROLL_EVENT = 'scroll';
|
|
15
|
+
var SCROLL_THROTTLE_DELAY = exports.SCROLL_THROTTLE_DELAY = 50;
|
|
16
|
+
var MAX_LIMIT_MULTIPLIER = exports.MAX_LIMIT_MULTIPLIER = 4;
|
|
17
|
+
var DEFAULT_LIMIT_MULTIPLIER = exports.DEFAULT_LIMIT_MULTIPLIER = 2;
|
|
@@ -69,5 +69,4 @@ VirtualizedData.propTypes = {
|
|
|
69
69
|
headerRenderer: _propTypes.func,
|
|
70
70
|
footerRenderer: _propTypes.func
|
|
71
71
|
};
|
|
72
|
-
var _default = /*#__PURE__*/(0, _react.memo)(VirtualizedData);
|
|
73
|
-
exports.default = _default;
|
|
72
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(VirtualizedData);
|
|
@@ -15,7 +15,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
17
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable react/no-array-index-key */ /* eslint-disable no-plusplus */
|
|
18
|
-
var createRows = function createRows(data, elementsPerRow) {
|
|
18
|
+
var createRows = exports.createRows = function createRows(data, elementsPerRow) {
|
|
19
19
|
var totalRows = Math.ceil(data.length / elementsPerRow);
|
|
20
20
|
var rows = new Array(totalRows).fill(0).map(function () {
|
|
21
21
|
return [];
|
|
@@ -25,12 +25,10 @@ var createRows = function createRows(data, elementsPerRow) {
|
|
|
25
25
|
}
|
|
26
26
|
return rows;
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var applyToIndex = function applyToIndex(index, target, object) {
|
|
28
|
+
var applyToIndex = exports.applyToIndex = function applyToIndex(index, target, object) {
|
|
30
29
|
return index === target ? object : null;
|
|
31
30
|
};
|
|
32
|
-
exports.
|
|
33
|
-
var createRowRenderer = function createRowRenderer(configItemRender, effect) {
|
|
31
|
+
var createRowRenderer = exports.createRowRenderer = function createRowRenderer(configItemRender, effect) {
|
|
34
32
|
return function (row, index, updateLedger, ledgerRef) {
|
|
35
33
|
return /*#__PURE__*/_react.default.createElement(_ListRow.default, {
|
|
36
34
|
row: row,
|
|
@@ -42,7 +40,6 @@ var createRowRenderer = function createRowRenderer(configItemRender, effect) {
|
|
|
42
40
|
});
|
|
43
41
|
};
|
|
44
42
|
};
|
|
45
|
-
exports.createRowRenderer = createRowRenderer;
|
|
46
43
|
var getOffsets = function getOffsets(ledger) {
|
|
47
44
|
return Object.values(ledger).map(function (_ref) {
|
|
48
45
|
var offset = _ref.offset;
|
|
@@ -75,7 +72,7 @@ var getListHeight = function getListHeight(ledger) {
|
|
|
75
72
|
offset = _ref3$offset === void 0 ? 0 : _ref3$offset;
|
|
76
73
|
return offset + height;
|
|
77
74
|
};
|
|
78
|
-
var renderVirtualScreen = function renderVirtualScreen(scrollPosition, overscan, totalElements, listViewportHeight, ledger) {
|
|
75
|
+
var renderVirtualScreen = exports.renderVirtualScreen = function renderVirtualScreen(scrollPosition, overscan, totalElements, listViewportHeight, ledger) {
|
|
79
76
|
var listHeight = getListHeight(ledger);
|
|
80
77
|
if (!listViewportHeight) return {
|
|
81
78
|
virtualScreenStart: 0,
|
|
@@ -96,18 +93,15 @@ var renderVirtualScreen = function renderVirtualScreen(scrollPosition, overscan,
|
|
|
96
93
|
listHeight: listHeight
|
|
97
94
|
};
|
|
98
95
|
};
|
|
99
|
-
exports.
|
|
100
|
-
var nullifyDataInBetween = function nullifyDataInBetween(data, startIndex, endIndex) {
|
|
96
|
+
var nullifyDataInBetween = exports.nullifyDataInBetween = function nullifyDataInBetween(data, startIndex, endIndex) {
|
|
101
97
|
for (var i = startIndex; i < endIndex; i++) data[i] = null;
|
|
102
98
|
};
|
|
103
|
-
exports.
|
|
104
|
-
var addVirtualizedElements = function addVirtualizedElements(data, virtualizedData, startIndex, endIndex, rowRenderer, updateLedger, ledgerRef) {
|
|
99
|
+
var addVirtualizedElements = exports.addVirtualizedElements = function addVirtualizedElements(data, virtualizedData, startIndex, endIndex, rowRenderer, updateLedger, ledgerRef) {
|
|
105
100
|
for (var i = startIndex; i < endIndex; i++) {
|
|
106
101
|
if (!virtualizedData[i]) virtualizedData[i] = rowRenderer(data[i], i, updateLedger, ledgerRef);
|
|
107
102
|
}
|
|
108
103
|
};
|
|
109
|
-
exports.
|
|
110
|
-
var updateLedger = function updateLedger(ledgerRef, setLedgerRef) {
|
|
104
|
+
var updateLedger = exports.updateLedger = function updateLedger(ledgerRef, setLedgerRef) {
|
|
111
105
|
return function (key, height) {
|
|
112
106
|
var _ledgerRef$current;
|
|
113
107
|
var currentHeight = (_ledgerRef$current = ledgerRef.current) === null || _ledgerRef$current === void 0 || (_ledgerRef$current = _ledgerRef$current[key]) === null || _ledgerRef$current === void 0 ? void 0 : _ledgerRef$current.height;
|
|
@@ -131,5 +125,4 @@ var updateLedger = function updateLedger(ledgerRef, setLedgerRef) {
|
|
|
131
125
|
setLedgerRef(newLedger);
|
|
132
126
|
}
|
|
133
127
|
};
|
|
134
|
-
};
|
|
135
|
-
exports.updateLedger = updateLedger;
|
|
128
|
+
};
|
|
@@ -4,11 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_OVERSCAN = exports.DEFAULT_ITEM_PADDING = exports.DEFAULT_ELEMENTS_PER_ROW = exports.DEFAULT_EFFECT = void 0;
|
|
7
|
-
var DEFAULT_ITEM_PADDING = 10;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var DEFAULT_EFFECT = 'fadeIn';
|
|
12
|
-
exports.DEFAULT_EFFECT = DEFAULT_EFFECT;
|
|
13
|
-
var DEFAULT_ELEMENTS_PER_ROW = 1;
|
|
14
|
-
exports.DEFAULT_ELEMENTS_PER_ROW = DEFAULT_ELEMENTS_PER_ROW;
|
|
7
|
+
var DEFAULT_ITEM_PADDING = exports.DEFAULT_ITEM_PADDING = 10;
|
|
8
|
+
var DEFAULT_OVERSCAN = exports.DEFAULT_OVERSCAN = 10;
|
|
9
|
+
var DEFAULT_EFFECT = exports.DEFAULT_EFFECT = 'fadeIn';
|
|
10
|
+
var DEFAULT_ELEMENTS_PER_ROW = exports.DEFAULT_ELEMENTS_PER_ROW = 1;
|
|
@@ -3,15 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.STEP = exports.NEXT = exports.BACK =
|
|
7
|
-
var NEXT = 'Siguiente';
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.BACK = BACK;
|
|
11
|
-
var STEP = 'Paso';
|
|
12
|
-
exports.STEP = STEP;
|
|
13
|
-
var ACTIONS_POSITIONS = {
|
|
14
|
-
TOP: 'top',
|
|
15
|
-
BOTTOM: 'bottom'
|
|
16
|
-
};
|
|
17
|
-
exports.ACTIONS_POSITIONS = ACTIONS_POSITIONS;
|
|
6
|
+
exports.STEP = exports.NEXT = exports.BACK = void 0;
|
|
7
|
+
var NEXT = exports.NEXT = 'Siguiente';
|
|
8
|
+
var BACK = exports.BACK = 'Atrás';
|
|
9
|
+
var STEP = exports.STEP = 'Paso';
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.usePrevious = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var usePrevious = function usePrevious(value) {
|
|
8
|
+
var usePrevious = exports.usePrevious = function usePrevious(value) {
|
|
9
9
|
var ref = (0, _react.useRef)();
|
|
10
10
|
(0, _react.useEffect)(function () {
|
|
11
11
|
ref.current = value;
|
|
12
12
|
});
|
|
13
13
|
return ref.current;
|
|
14
|
-
};
|
|
15
|
-
exports.usePrevious = usePrevious;
|
|
14
|
+
};
|
|
@@ -29,10 +29,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
29
29
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
30
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
31
|
var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
32
|
-
var
|
|
33
|
-
_ref$actionsPosition = _ref.actionsPosition,
|
|
34
|
-
actionsPosition = _ref$actionsPosition === void 0 ? _constants.ACTIONS_POSITIONS.TOP : _ref$actionsPosition,
|
|
35
|
-
backButton = _ref.backButton,
|
|
32
|
+
var backButton = _ref.backButton,
|
|
36
33
|
children = _ref.children,
|
|
37
34
|
classNames = _ref.classNames,
|
|
38
35
|
_ref$classes = _ref.classes,
|
|
@@ -50,6 +47,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
50
47
|
stepsCount = _ref.stepsCount,
|
|
51
48
|
subtitle = _ref.subtitle,
|
|
52
49
|
title = _ref.title,
|
|
50
|
+
TitleIcon = _ref.TitleIcon,
|
|
53
51
|
_ref$withIcon = _ref.withIcon,
|
|
54
52
|
withIcon = _ref$withIcon === void 0 ? false : _ref$withIcon;
|
|
55
53
|
(0, _react.useEffect)(function () {
|
|
@@ -73,7 +71,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
73
71
|
}, [currentStep]);
|
|
74
72
|
var hideActions = (currentStep === 1 && !backButton.isVisible || backButton.isHidden) && hideStepCounter && nextButton.isHidden;
|
|
75
73
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
-
className:
|
|
74
|
+
className: classes.container
|
|
77
75
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
78
76
|
className: "".concat(_stylesModule.default.progress, " ").concat(classes.progress)
|
|
79
77
|
}, stepsCount && /*#__PURE__*/_react.default.createElement(_UTProgressBar.default, {
|
|
@@ -83,9 +81,9 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
83
81
|
barColorPrimary: classes.barColorPrimary
|
|
84
82
|
}
|
|
85
83
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
className: classes.workflowContainer
|
|
84
|
+
className: "".concat(classes.workflowContainer, " ").concat(_stylesModule.default.workflowContainer)
|
|
87
85
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
-
className: "".concat(_stylesModule.default.actionsContainer, "
|
|
86
|
+
className: "\n ".concat(_stylesModule.default.actionsContainer, "\n ").concat(classes.actionsContainer, "\n ").concat(hideActions ? _stylesModule.default.hidden : '')
|
|
89
87
|
}, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
|
|
90
88
|
button: backButton,
|
|
91
89
|
isHidden: currentStep === 1 && !backButton.isVisible || backButton.isHidden,
|
|
@@ -96,7 +94,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
96
94
|
iconPlacement: 'left',
|
|
97
95
|
variant: 'semitransparent'
|
|
98
96
|
}
|
|
99
|
-
}, !smallButtons && (backButton.label || _constants.BACK)), !hideStepCounter &&
|
|
97
|
+
}, !smallButtons && (backButton.label || _constants.BACK)), !hideStepCounter && visibleStepNumber && (StepCounter ? /*#__PURE__*/_react.default.createElement(StepCounter, null) : /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
100
98
|
className: "".concat(_stylesModule.default.stepInfo, " ").concat(classes.stepCounter),
|
|
101
99
|
weight: "medium"
|
|
102
100
|
}, "".concat(_constants.STEP, " ").concat(forceStepNumber ? currentStep : visibleStepNumber))), extraActions, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
|
|
@@ -127,8 +125,6 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
127
125
|
}, subtitle)), children)));
|
|
128
126
|
};
|
|
129
127
|
UTWorkflowContainer.propTypes = {
|
|
130
|
-
TitleIcon: _propTypes.element,
|
|
131
|
-
actionsPosition: _propTypes.bool,
|
|
132
128
|
backButton: _types.buttonTypes,
|
|
133
129
|
children: _propTypes.element,
|
|
134
130
|
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
@@ -144,7 +140,7 @@ UTWorkflowContainer.propTypes = {
|
|
|
144
140
|
stepsCount: _propTypes.number,
|
|
145
141
|
subtitle: _propTypes.string,
|
|
146
142
|
title: _propTypes.string,
|
|
143
|
+
TitleIcon: _propTypes.element,
|
|
147
144
|
withIcon: _propTypes.bool
|
|
148
145
|
};
|
|
149
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTWorkflowContainer);
|
|
150
|
-
exports.default = _default;
|
|
146
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTWorkflowContainer);
|
|
@@ -12,7 +12,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
14
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
15
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
16
16
|
var _container, _theme$UTWorkflowCont, _theme$UTWorkflowCont2, _theme$UTWorkflowCont3;
|
|
17
17
|
var theme = _ref.theme;
|
|
18
18
|
var mobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'mobile']);
|
|
@@ -112,5 +112,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
112
112
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'workflowContainer', 'mobile', 'padding'])
|
|
113
113
|
})
|
|
114
114
|
};
|
|
115
|
-
};
|
|
116
|
-
exports.retrieveStyle = retrieveStyle;
|
|
115
|
+
};
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.buttonTypes = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
|
-
var buttonTypes = (0, _propTypes.oneOfType)([_propTypes.element, (0, _propTypes.shape)({
|
|
8
|
+
var buttonTypes = exports.buttonTypes = (0, _propTypes.oneOfType)([_propTypes.element, (0, _propTypes.shape)({
|
|
9
9
|
onClick: _propTypes.func,
|
|
10
10
|
disabled: _propTypes.bool,
|
|
11
11
|
label: _propTypes.string,
|
|
12
12
|
buttonProps: _propTypes.object,
|
|
13
13
|
Icon: (0, _propTypes.oneOfType)([_propTypes.bool, _propTypes.element, _propTypes.func, _propTypes.elementType])
|
|
14
|
-
})]);
|
|
15
|
-
exports.buttonTypes = buttonTypes;
|
|
14
|
+
})]);
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.INTEGRATION_TYPES = void 0;
|
|
7
|
-
var INTEGRATION_TYPES = {
|
|
7
|
+
var INTEGRATION_TYPES = exports.INTEGRATION_TYPES = {
|
|
8
8
|
EXTERNAL: 'external',
|
|
9
9
|
INTERNAL: 'internal'
|
|
10
|
-
};
|
|
11
|
-
exports.INTEGRATION_TYPES = INTEGRATION_TYPES;
|
|
10
|
+
};
|