@widergy/energy-ui 2.7.4 → 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 +7 -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 +51 -33
- 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 +11 -21
- 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
|
@@ -19,20 +19,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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; }
|
|
20
20
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
21
|
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); }
|
|
22
|
-
var getPages = function getPages() {
|
|
22
|
+
var getPages = exports.getPages = function getPages() {
|
|
23
23
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
24
24
|
var pagination = arguments.length > 1 ? arguments[1] : undefined;
|
|
25
25
|
return Math.ceil(data.length / pagination);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
var getFormattedData = function getFormattedData() {
|
|
27
|
+
var getFormattedData = exports.getFormattedData = function getFormattedData() {
|
|
29
28
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
30
29
|
var pagination = arguments.length > 1 ? arguments[1] : undefined;
|
|
31
30
|
var index = arguments.length > 2 ? arguments[2] : undefined;
|
|
32
31
|
return data.slice(index * pagination, (index + 1) * pagination);
|
|
33
32
|
};
|
|
34
|
-
exports.
|
|
35
|
-
var getFormattedLinearData = function getFormattedLinearData() {
|
|
33
|
+
var getFormattedLinearData = exports.getFormattedLinearData = function getFormattedLinearData() {
|
|
36
34
|
var linearData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
37
35
|
var currentPage = arguments.length > 1 ? arguments[1] : undefined;
|
|
38
36
|
var pagination = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -45,36 +43,32 @@ var getFormattedLinearData = function getFormattedLinearData() {
|
|
|
45
43
|
});
|
|
46
44
|
});
|
|
47
45
|
};
|
|
48
|
-
exports.
|
|
49
|
-
var getMaxValue = function getMaxValue(dataSet) {
|
|
46
|
+
var getMaxValue = exports.getMaxValue = function getMaxValue(dataSet) {
|
|
50
47
|
return dataSet && !(0, _array.isEmpty)(dataSet) && (d3.max(dataSet, function (_ref2) {
|
|
51
48
|
var value = _ref2.value;
|
|
52
49
|
return value;
|
|
53
50
|
}) || 0);
|
|
54
51
|
};
|
|
55
|
-
exports.
|
|
56
|
-
var getMinValue = function getMinValue(dataSet) {
|
|
52
|
+
var getMinValue = exports.getMinValue = function getMinValue(dataSet) {
|
|
57
53
|
return dataSet && !(0, _array.isEmpty)(dataSet) && d3.min(dataSet, function (_ref3) {
|
|
58
54
|
var value = _ref3.value;
|
|
59
55
|
return value;
|
|
60
56
|
}) || 0;
|
|
61
57
|
};
|
|
62
|
-
exports.getMinValue = getMinValue;
|
|
63
58
|
var maxValueOrDefault = function maxValueOrDefault(value) {
|
|
64
59
|
return value === 0 ? _constants.DEFAULT_MAX_VALUE : value;
|
|
65
60
|
};
|
|
66
|
-
var getMaxValues = function getMaxValues(flatBarData, flatLinearData, levels) {
|
|
61
|
+
var getMaxValues = exports.getMaxValues = function getMaxValues(flatBarData, flatLinearData, levels) {
|
|
67
62
|
return {
|
|
68
63
|
maxLinearValue: maxValueOrDefault(getMaxValue(flatLinearData)),
|
|
69
64
|
maxBarValue: maxValueOrDefault(Math.max(getMaxValue(flatBarData), getMaxValue(levels)))
|
|
70
65
|
};
|
|
71
66
|
};
|
|
72
|
-
exports.getMaxValues = getMaxValues;
|
|
73
67
|
var calculateTotalWidth = function calculateTotalWidth(minBarWidth, dataLength, padding, containerWidth, marginLeft, marginRight, groups) {
|
|
74
68
|
var minimumNeededWidth = dataLength * groups * (minBarWidth + 2 * padding) + marginLeft + marginRight;
|
|
75
69
|
return Math.max(containerWidth, minimumNeededWidth);
|
|
76
70
|
};
|
|
77
|
-
var getGraphAttributes = function getGraphAttributes(containerWidth, containerHeight, marginLeft, marginRight, marginBottom, minBarWidth, dataLength, padding, groups, spacingOptions) {
|
|
71
|
+
var getGraphAttributes = exports.getGraphAttributes = function getGraphAttributes(containerWidth, containerHeight, marginLeft, marginRight, marginBottom, minBarWidth, dataLength, padding, groups, spacingOptions) {
|
|
78
72
|
var totalWidth = minBarWidth ? calculateTotalWidth(minBarWidth, dataLength, padding, containerWidth, marginLeft, marginRight, groups) : containerWidth;
|
|
79
73
|
var _spacingOptions$axisP = spacingOptions.axisPadding,
|
|
80
74
|
axisPadding = _spacingOptions$axisP === void 0 ? _constants.DEFAULT_AXIS_PADDING : _spacingOptions$axisP,
|
|
@@ -91,7 +85,6 @@ var getGraphAttributes = function getGraphAttributes(containerWidth, containerHe
|
|
|
91
85
|
GRAPH_Y_END: marginTop + 4 * axisPadding
|
|
92
86
|
};
|
|
93
87
|
};
|
|
94
|
-
exports.getGraphAttributes = getGraphAttributes;
|
|
95
88
|
var flattenBarData = function flattenBarData(data) {
|
|
96
89
|
var _data$0$;
|
|
97
90
|
return data && Array.isArray((_data$0$ = data[0][0]) === null || _data$0$ === void 0 ? void 0 : _data$0$.values) ? data.flat().map(function (_ref4) {
|
|
@@ -99,7 +92,7 @@ var flattenBarData = function flattenBarData(data) {
|
|
|
99
92
|
return values;
|
|
100
93
|
}).flat() : data.flat();
|
|
101
94
|
};
|
|
102
|
-
var flattenAndReduceBarData = function flattenAndReduceBarData(data) {
|
|
95
|
+
var flattenAndReduceBarData = exports.flattenAndReduceBarData = function flattenAndReduceBarData(data) {
|
|
103
96
|
var _data$0$2;
|
|
104
97
|
return data && (Array.isArray((_data$0$2 = data[0][0]) === null || _data$0$2 === void 0 ? void 0 : _data$0$2.values) ? data.flat().map(function (_ref5) {
|
|
105
98
|
var values = _ref5.values;
|
|
@@ -111,21 +104,19 @@ var flattenAndReduceBarData = function flattenAndReduceBarData(data) {
|
|
|
111
104
|
};
|
|
112
105
|
}) : data.flat());
|
|
113
106
|
};
|
|
114
|
-
exports.flattenAndReduceBarData = flattenAndReduceBarData;
|
|
115
107
|
var flattenLinearData = function flattenLinearData(linearData) {
|
|
116
108
|
return linearData === null || linearData === void 0 ? void 0 : linearData.map(function (_ref7) {
|
|
117
109
|
var data = _ref7.data;
|
|
118
110
|
return data;
|
|
119
111
|
}).flat();
|
|
120
112
|
};
|
|
121
|
-
var flattenData = function flattenData(barData, linearData) {
|
|
113
|
+
var flattenData = exports.flattenData = function flattenData(barData, linearData) {
|
|
122
114
|
return {
|
|
123
115
|
flatBarData: flattenBarData(barData),
|
|
124
116
|
flatLinearData: flattenLinearData(linearData)
|
|
125
117
|
};
|
|
126
118
|
};
|
|
127
|
-
exports.
|
|
128
|
-
var getFormattedDecorators = function getFormattedDecorators(xAxis) {
|
|
119
|
+
var getFormattedDecorators = exports.getFormattedDecorators = function getFormattedDecorators(xAxis) {
|
|
129
120
|
var decorators = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
130
121
|
var currentPage = arguments.length > 2 ? arguments[2] : undefined;
|
|
131
122
|
var pagination = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -153,8 +144,7 @@ var getFormattedDecorators = function getFormattedDecorators(xAxis) {
|
|
|
153
144
|
}, config);
|
|
154
145
|
});
|
|
155
146
|
};
|
|
156
|
-
exports.
|
|
157
|
-
var getGrid = function getGrid(ticks, maxValue) {
|
|
147
|
+
var getGrid = exports.getGrid = function getGrid(ticks, maxValue) {
|
|
158
148
|
return new Array(ticks).fill(0).map(function (_, index) {
|
|
159
149
|
return {
|
|
160
150
|
value: maxValue - index * maxValue / (ticks - 1),
|
|
@@ -164,5 +154,4 @@ var getGrid = function getGrid(ticks, maxValue) {
|
|
|
164
154
|
var value = _ref11.value;
|
|
165
155
|
return !!value;
|
|
166
156
|
});
|
|
167
|
-
};
|
|
168
|
-
exports.getGrid = getGrid;
|
|
157
|
+
};
|
|
@@ -9,18 +9,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
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; }
|
|
10
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
11
|
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); }
|
|
12
|
-
var DEFAULT_SEPARATOR = '/';
|
|
13
|
-
exports.
|
|
14
|
-
var
|
|
15
|
-
exports.
|
|
16
|
-
var DEFAULT_ELIPSIS_WIDTH_ESTIMATE = 100;
|
|
17
|
-
exports.DEFAULT_ELIPSIS_WIDTH_ESTIMATE = DEFAULT_ELIPSIS_WIDTH_ESTIMATE;
|
|
18
|
-
var COLOR_THEMES = {
|
|
12
|
+
var DEFAULT_SEPARATOR = exports.DEFAULT_SEPARATOR = '/';
|
|
13
|
+
var DEFAULT_ELIPSIS = exports.DEFAULT_ELIPSIS = '...';
|
|
14
|
+
var DEFAULT_ELIPSIS_WIDTH_ESTIMATE = exports.DEFAULT_ELIPSIS_WIDTH_ESTIMATE = 100;
|
|
15
|
+
var COLOR_THEMES = exports.COLOR_THEMES = {
|
|
19
16
|
DARK: 'dark',
|
|
20
17
|
LIGHT: 'light'
|
|
21
18
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var COMPONENTS_THEME_PROPS = (_COMPONENTS_THEME_PRO = {}, _defineProperty(_COMPONENTS_THEME_PRO, COLOR_THEMES.DARK, {
|
|
19
|
+
var COMPONENTS_THEME_PROPS = exports.COMPONENTS_THEME_PROPS = (_COMPONENTS_THEME_PRO = {}, _defineProperty(_COMPONENTS_THEME_PRO, COLOR_THEMES.DARK, {
|
|
24
20
|
button: {
|
|
25
21
|
colorTheme: 'secondary'
|
|
26
22
|
},
|
|
@@ -38,10 +34,8 @@ var COMPONENTS_THEME_PROPS = (_COMPONENTS_THEME_PRO = {}, _defineProperty(_COMPO
|
|
|
38
34
|
}), _COMPONENTS_THEME_PRO);
|
|
39
35
|
|
|
40
36
|
// temporary mapper for compatibility with 'buttonColorTheme' attribute in office-web-edenor
|
|
41
|
-
exports.
|
|
42
|
-
var COLOR_THEMES_MAPPER = {
|
|
37
|
+
var COLOR_THEMES_MAPPER = exports.COLOR_THEMES_MAPPER = {
|
|
43
38
|
negative: COLOR_THEMES.LIGHT,
|
|
44
39
|
primary: COLOR_THEMES.DARK,
|
|
45
40
|
secondary: COLOR_THEMES.DARK
|
|
46
|
-
};
|
|
47
|
-
exports.COLOR_THEMES_MAPPER = COLOR_THEMES_MAPPER;
|
|
41
|
+
};
|
|
@@ -193,5 +193,4 @@ UTBreadcrumbs.propTypes = {
|
|
|
193
193
|
menuProps: _propTypes.object,
|
|
194
194
|
separator: _propTypes.string
|
|
195
195
|
};
|
|
196
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTBreadcrumbs);
|
|
197
|
-
exports.default = _default;
|
|
196
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTBreadcrumbs);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _classesUtils = require("../../utils/classesUtils");
|
|
8
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
8
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
9
9
|
var _theme$UTBreadcrumbs;
|
|
10
10
|
var theme = _ref.theme;
|
|
11
11
|
return {
|
|
@@ -13,5 +13,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
13
13
|
margin: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTBreadcrumbs = theme.UTBreadcrumbs) === null || _theme$UTBreadcrumbs === void 0 || (_theme$UTBreadcrumbs = _theme$UTBreadcrumbs.separator) === null || _theme$UTBreadcrumbs === void 0 ? void 0 : _theme$UTBreadcrumbs.margin) || '0 12px')
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
};
|
|
17
|
-
exports.retrieveStyle = retrieveStyle;
|
|
16
|
+
};
|
|
@@ -9,26 +9,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
9
9
|
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; }
|
|
10
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
11
|
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); }
|
|
12
|
-
var VARIANTS = {
|
|
12
|
+
var VARIANTS = exports.VARIANTS = {
|
|
13
13
|
filled: 'contained',
|
|
14
14
|
outlined: 'outlined',
|
|
15
15
|
semitransparent: 'contained',
|
|
16
16
|
text: 'text',
|
|
17
17
|
shadow: 'text'
|
|
18
18
|
};
|
|
19
|
-
exports.
|
|
20
|
-
var SIZES = {
|
|
19
|
+
var SIZES = exports.SIZES = {
|
|
21
20
|
small: 'small',
|
|
22
21
|
medium: 'medium',
|
|
23
22
|
large: 'large'
|
|
24
23
|
};
|
|
25
|
-
exports.
|
|
26
|
-
var ICON_PLACEMENTS = {
|
|
24
|
+
var ICON_PLACEMENTS = exports.ICON_PLACEMENTS = {
|
|
27
25
|
left: 'left',
|
|
28
26
|
right: 'right'
|
|
29
27
|
};
|
|
30
|
-
exports.
|
|
31
|
-
var DEFAULT_PROPS = {
|
|
28
|
+
var DEFAULT_PROPS = exports.DEFAULT_PROPS = {
|
|
32
29
|
colorTheme: 'secondary',
|
|
33
30
|
disabled: false,
|
|
34
31
|
hideTextOnResponsive: false,
|
|
@@ -37,13 +34,10 @@ var DEFAULT_PROPS = {
|
|
|
37
34
|
size: SIZES.medium,
|
|
38
35
|
variant: 'filled'
|
|
39
36
|
};
|
|
40
|
-
exports.
|
|
41
|
-
var COLORS_MAPPER = {
|
|
37
|
+
var COLORS_MAPPER = exports.COLORS_MAPPER = {
|
|
42
38
|
primary: 'accent',
|
|
43
39
|
secondary: 'neutral',
|
|
44
40
|
error: 'error',
|
|
45
41
|
negative: 'negative'
|
|
46
42
|
};
|
|
47
|
-
exports.
|
|
48
|
-
var SHADOW_MAPPER = (_SHADOW_MAPPER = {}, _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.primary, 'accent'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.secondary, 'grayscale'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.error, 'accentError'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.negative, 'accentNeutral'), _SHADOW_MAPPER);
|
|
49
|
-
exports.SHADOW_MAPPER = SHADOW_MAPPER;
|
|
43
|
+
var SHADOW_MAPPER = exports.SHADOW_MAPPER = (_SHADOW_MAPPER = {}, _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.primary, 'accent'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.secondary, 'grayscale'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.error, 'accentError'), _defineProperty(_SHADOW_MAPPER, COLORS_MAPPER.negative, 'accentNeutral'), _SHADOW_MAPPER);
|
|
@@ -46,7 +46,7 @@ var UTButton = function UTButton(_ref) {
|
|
|
46
46
|
className: "\n ".concat(childrenContainer, "\n ").concat(_stylesModule.default.childrenContainer, "\n ")
|
|
47
47
|
}, iconPlacement === _constants.ICON_PLACEMENTS.left && Icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
48
48
|
className: iconClassname
|
|
49
|
-
}), children && /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
}), children !== null && children !== undefined && /*#__PURE__*/_react.default.createElement("div", {
|
|
50
50
|
className: "".concat(_stylesModule.default.text, " ").concat(hideTextOnResponsive && _stylesModule.default.hideTextOnResponsive, " ").concat(classes.text)
|
|
51
51
|
}, children), iconPlacement !== _constants.ICON_PLACEMENTS.left && Icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
52
52
|
className: iconClassname
|
|
@@ -80,5 +80,4 @@ UTButton.propTypes = {
|
|
|
80
80
|
type: _propTypes.string,
|
|
81
81
|
variant: _propTypes.string
|
|
82
82
|
};
|
|
83
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
|
|
84
|
-
exports.default = _default;
|
|
83
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
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; }
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
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); }
|
|
16
|
-
var variantsColorTheme = function variantsColorTheme(theme, colorTheme, variant) {
|
|
16
|
+
var variantsColorTheme = exports.variantsColorTheme = function variantsColorTheme(theme, colorTheme, variant) {
|
|
17
17
|
var _theme$Palette$shadow;
|
|
18
18
|
var actionColorName = _constants.COLORS_MAPPER[colorTheme] || _constants.COLORS_MAPPER[_constants.DEFAULT_PROPS.colorTheme];
|
|
19
19
|
var actionTheme = theme.Palette.actions[actionColorName];
|
|
@@ -130,7 +130,6 @@ var variantsColorTheme = function variantsColorTheme(theme, colorTheme, variant)
|
|
|
130
130
|
};
|
|
131
131
|
return definition[variant] || definition[_constants.DEFAULT_PROPS.variant];
|
|
132
132
|
};
|
|
133
|
-
exports.variantsColorTheme = variantsColorTheme;
|
|
134
133
|
var baseButtonTheme = function baseButtonTheme(theme) {
|
|
135
134
|
var _theme$Fonts, _theme$UTButton;
|
|
136
135
|
return {
|
|
@@ -161,7 +160,7 @@ var baseButtonTheme = function baseButtonTheme(theme) {
|
|
|
161
160
|
}
|
|
162
161
|
};
|
|
163
162
|
};
|
|
164
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
163
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
165
164
|
var colorTheme = _ref.colorTheme,
|
|
166
165
|
variant = _ref.variant,
|
|
167
166
|
theme = _ref.theme;
|
|
@@ -171,5 +170,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
171
170
|
disabled: variantTheme.disabled,
|
|
172
171
|
root: _objectSpread(_objectSpread({}, baseTheme.root), variantTheme)
|
|
173
172
|
});
|
|
174
|
-
};
|
|
175
|
-
exports.retrieveStyle = retrieveStyle;
|
|
173
|
+
};
|
|
@@ -88,5 +88,4 @@ UTCBUInput.propTypes = {
|
|
|
88
88
|
}),
|
|
89
89
|
meta: _formTypes.metaPropTypes
|
|
90
90
|
};
|
|
91
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCBUInput);
|
|
92
|
-
exports.default = _default;
|
|
91
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCBUInput);
|
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
8
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
9
9
|
var theme = _ref.theme;
|
|
10
10
|
return {
|
|
11
11
|
helper: {
|
|
12
12
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTCBUInput', 'helper', 'color'])
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
};
|
|
16
|
-
exports.retrieveStyle = retrieveStyle;
|
|
15
|
+
};
|
|
@@ -11,7 +11,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
14
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
15
15
|
var theme = _ref.theme;
|
|
16
16
|
var tabletMobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'tabletMobile']);
|
|
17
17
|
return {
|
|
@@ -32,5 +32,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
32
32
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTCard', 'flat', 'backgroundColor'], _colorsModule.default.white)
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
};
|
|
36
|
-
exports.retrieveStyle = retrieveStyle;
|
|
35
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.cardActionsTypes = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
|
-
var cardActionsTypes = {
|
|
8
|
+
var cardActionsTypes = exports.cardActionsTypes = {
|
|
9
9
|
header: (0, _propTypes.shape)({
|
|
10
10
|
title: _propTypes.string,
|
|
11
11
|
subtitle: _propTypes.string,
|
|
@@ -18,5 +18,4 @@ var cardActionsTypes = {
|
|
|
18
18
|
name: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.element]),
|
|
19
19
|
onPress: _propTypes.func
|
|
20
20
|
}))
|
|
21
|
-
};
|
|
22
|
-
exports.cardActionsTypes = cardActionsTypes;
|
|
21
|
+
};
|
|
@@ -41,5 +41,4 @@ Button.propTypes = {
|
|
|
41
41
|
ArrowCustom: _propTypes.node,
|
|
42
42
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
43
43
|
};
|
|
44
|
-
var _default = /*#__PURE__*/(0, _react.memo)(Button);
|
|
45
|
-
exports.default = _default;
|
|
44
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(Button);
|
|
@@ -37,5 +37,4 @@ LegendContainer.propTypes = {
|
|
|
37
37
|
LegendCustom: _propTypes.node,
|
|
38
38
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
39
39
|
};
|
|
40
|
-
var _default = /*#__PURE__*/(0, _react.memo)(LegendContainer);
|
|
41
|
-
exports.default = _default;
|
|
40
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(LegendContainer);
|
|
@@ -4,13 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SLOW_ANIMATION = exports.OUTSIDE = exports.MIN_TIME_MOVE = exports.INSIDE = exports.FAST_ANIMATION = void 0;
|
|
7
|
-
var FAST_ANIMATION = 35;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.MIN_TIME_MOVE = MIN_TIME_MOVE;
|
|
13
|
-
var OUTSIDE = 'outside';
|
|
14
|
-
exports.OUTSIDE = OUTSIDE;
|
|
15
|
-
var INSIDE = 'inside';
|
|
16
|
-
exports.INSIDE = INSIDE;
|
|
7
|
+
var FAST_ANIMATION = exports.FAST_ANIMATION = 35;
|
|
8
|
+
var SLOW_ANIMATION = exports.SLOW_ANIMATION = 400;
|
|
9
|
+
var MIN_TIME_MOVE = exports.MIN_TIME_MOVE = 150;
|
|
10
|
+
var OUTSIDE = exports.OUTSIDE = 'outside';
|
|
11
|
+
var INSIDE = exports.INSIDE = 'inside';
|
|
@@ -60,5 +60,4 @@ UTCarousel.propTypes = {
|
|
|
60
60
|
className: _propTypes.string,
|
|
61
61
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
62
62
|
};
|
|
63
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCarousel);
|
|
64
|
-
exports.default = _default;
|
|
63
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCarousel);
|
|
@@ -8,7 +8,7 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
var _sizesModule = _interopRequireDefault(require("../../scss/variables/sizes.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
11
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var theme = _ref.theme;
|
|
13
13
|
return {
|
|
14
14
|
arrowStyle: {
|
|
@@ -46,5 +46,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
46
46
|
userSelect: 'none'
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
};
|
|
50
|
-
exports.retrieveStyle = retrieveStyle;
|
|
49
|
+
};
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultAdditionalInfoHeader = void 0;
|
|
7
|
-
var defaultAdditionalInfoHeader = 'Seleccionar Todo';
|
|
8
|
-
exports.defaultAdditionalInfoHeader = defaultAdditionalInfoHeader;
|
|
7
|
+
var defaultAdditionalInfoHeader = exports.defaultAdditionalInfoHeader = 'Seleccionar Todo';
|
|
@@ -191,5 +191,4 @@ UTCheckList.propTypes = {
|
|
|
191
191
|
withCheckRow: _propTypes.bool,
|
|
192
192
|
withUpperTitle: _propTypes.bool
|
|
193
193
|
};
|
|
194
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckList);
|
|
195
|
-
exports.default = _default;
|
|
194
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckList);
|
|
@@ -9,7 +9,7 @@ var _styles = require("@material-ui/core/styles");
|
|
|
9
9
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
var _classesUtils = require("../../utils/classesUtils");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
12
|
+
var retrieveMuiTheme = exports.retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
13
13
|
return (0, _styles.createTheme)({
|
|
14
14
|
typography: {
|
|
15
15
|
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])
|
|
@@ -26,7 +26,7 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
26
26
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'fontSize'], 14),
|
|
27
27
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'color'], _colorsModule.default.primary),
|
|
28
28
|
'&$error': {
|
|
29
|
-
color:
|
|
29
|
+
color: theme.Palette.error['05']
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -44,9 +44,8 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
var
|
|
49
|
-
var _theme$UTCheckList, _theme$Fonts, _theme$UTCheckList2, _theme$Fonts2;
|
|
47
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
48
|
+
var _theme$UTCheckList, _theme$UTCheckList2;
|
|
50
49
|
var theme = _ref.theme;
|
|
51
50
|
return {
|
|
52
51
|
selectAllRowRoot: {
|
|
@@ -69,7 +68,7 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
69
68
|
},
|
|
70
69
|
headerItem: {
|
|
71
70
|
marginRight: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'customCheckRow', 'headerItem', 'marginRight'], '60px'),
|
|
72
|
-
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTCheckList = theme.UTCheckList) === null || _theme$UTCheckList === void 0 || (_theme$UTCheckList = _theme$UTCheckList.customCheckRow) === null || _theme$UTCheckList === void 0 || (_theme$UTCheckList = _theme$UTCheckList.headerItem) === null || _theme$UTCheckList === void 0 ? void 0 : _theme$UTCheckList.fontSize) ||
|
|
71
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTCheckList = theme.UTCheckList) === null || _theme$UTCheckList === void 0 || (_theme$UTCheckList = _theme$UTCheckList.customCheckRow) === null || _theme$UTCheckList === void 0 || (_theme$UTCheckList = _theme$UTCheckList.headerItem) === null || _theme$UTCheckList === void 0 ? void 0 : _theme$UTCheckList.fontSize) || 14)
|
|
73
72
|
},
|
|
74
73
|
checkRowContainer: {
|
|
75
74
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'customCheckRow', 'container', 'alignItems']),
|
|
@@ -84,10 +83,9 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
84
83
|
},
|
|
85
84
|
rowItem: {
|
|
86
85
|
display: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'customCheckRow', 'rowItem', 'display']),
|
|
87
|
-
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTCheckList2 = theme.UTCheckList) === null || _theme$UTCheckList2 === void 0 || (_theme$UTCheckList2 = _theme$UTCheckList2.customCheckRow) === null || _theme$UTCheckList2 === void 0 || (_theme$UTCheckList2 = _theme$UTCheckList2.rowItem) === null || _theme$UTCheckList2 === void 0 ? void 0 : _theme$UTCheckList2.fontSize) ||
|
|
86
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTCheckList2 = theme.UTCheckList) === null || _theme$UTCheckList2 === void 0 || (_theme$UTCheckList2 = _theme$UTCheckList2.customCheckRow) === null || _theme$UTCheckList2 === void 0 || (_theme$UTCheckList2 = _theme$UTCheckList2.rowItem) === null || _theme$UTCheckList2 === void 0 ? void 0 : _theme$UTCheckList2.fontSize) || 12),
|
|
88
87
|
justifyContent: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'customCheckRow', 'rowItem', 'justifyContent']),
|
|
89
88
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'customCheckRow', 'rowItem', 'width'])
|
|
90
89
|
}
|
|
91
90
|
};
|
|
92
|
-
};
|
|
93
|
-
exports.retrieveStyle = retrieveStyle;
|
|
91
|
+
};
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.tippyProps = void 0;
|
|
7
|
-
var tippyProps = {
|
|
7
|
+
var tippyProps = exports.tippyProps = {
|
|
8
8
|
appendTo: function appendTo() {
|
|
9
9
|
return document.body;
|
|
10
10
|
},
|
|
11
11
|
interactive: false,
|
|
12
12
|
maxWidth: 'none'
|
|
13
|
-
};
|
|
14
|
-
exports.tippyProps = tippyProps;
|
|
13
|
+
};
|
|
@@ -142,5 +142,4 @@ UTCheckbox.propTypes = {
|
|
|
142
142
|
useCustomIcons: _propTypes.bool,
|
|
143
143
|
value: (0, _propTypes.oneOfType)([_propTypes.bool, _propTypes.string])
|
|
144
144
|
};
|
|
145
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckbox);
|
|
146
|
-
exports.default = _default;
|
|
145
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckbox);
|
|
@@ -8,7 +8,7 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
9
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
11
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var theme = _ref.theme;
|
|
13
13
|
return {
|
|
14
14
|
checkedIcon: {
|
|
@@ -33,8 +33,7 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
36
|
+
var retrieveMuiTheme = exports.retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
38
37
|
return (0, _styles.createTheme)({
|
|
39
38
|
typography: {
|
|
40
39
|
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])
|
|
@@ -58,7 +57,7 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
58
57
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'fontSize'], 14),
|
|
59
58
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckbox', 'helperText', 'color'], _colorsModule.default.primary),
|
|
60
59
|
'&$error': {
|
|
61
|
-
color:
|
|
60
|
+
color: theme.Palette.error['05']
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
},
|
|
@@ -75,5 +74,4 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
});
|
|
78
|
-
};
|
|
79
|
-
exports.retrieveMuiTheme = retrieveMuiTheme;
|
|
77
|
+
};
|
|
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UP = exports.MIN_LINE_WIDTH = exports.DOWN = void 0;
|
|
7
|
-
var UP = 'up';
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.DOWN = DOWN;
|
|
11
|
-
var MIN_LINE_WIDTH = '550';
|
|
12
|
-
exports.MIN_LINE_WIDTH = MIN_LINE_WIDTH;
|
|
7
|
+
var UP = exports.UP = 'up';
|
|
8
|
+
var DOWN = exports.DOWN = 'down';
|
|
9
|
+
var MIN_LINE_WIDTH = exports.MIN_LINE_WIDTH = '550';
|
|
@@ -176,5 +176,4 @@ UTCuit.propTypes = {
|
|
|
176
176
|
meta: _formTypes.metaPropTypes,
|
|
177
177
|
field: _formTypes.fieldType
|
|
178
178
|
};
|
|
179
|
-
var _default = (0, _WithTheme.default)(null, _theme.retrieveMuiTheme)(UTCuit);
|
|
180
|
-
exports.default = _default;
|
|
179
|
+
var _default = exports.default = (0, _WithTheme.default)(null, _theme.retrieveMuiTheme)(UTCuit);
|