@widergy/energy-ui 2.7.4 → 2.7.6
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 +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 +9 -13
- package/dist/components/UTWorkflowContainer/styles.module.scss +1 -1
- package/dist/components/UTWorkflowContainer/theme.js +4 -4
- 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
|
@@ -4,80 +4,104 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultPalette = void 0;
|
|
7
|
-
var defaultPalette = [{
|
|
7
|
+
var defaultPalette = exports.defaultPalette = [{
|
|
8
8
|
backgroundColor: 'rgb(0, 0, 180)',
|
|
9
|
-
color: '#FFF'
|
|
9
|
+
color: '#FFF',
|
|
10
|
+
colorTheme: 'light'
|
|
10
11
|
}, {
|
|
11
12
|
backgroundColor: 'rgb(175, 13, 102)',
|
|
12
|
-
color: '#FFF'
|
|
13
|
+
color: '#FFF',
|
|
14
|
+
colorTheme: 'light'
|
|
13
15
|
}, {
|
|
14
16
|
backgroundColor: 'rgb(146,248,70)',
|
|
15
|
-
color: '#000'
|
|
17
|
+
color: '#000',
|
|
18
|
+
colorTheme: 'dark'
|
|
16
19
|
}, {
|
|
17
20
|
backgroundColor: 'rgb(255, 200, 47)',
|
|
18
|
-
color: '#000'
|
|
21
|
+
color: '#000',
|
|
22
|
+
colorTheme: 'dark'
|
|
19
23
|
}, {
|
|
20
24
|
backgroundColor: 'rgb(255,118,0)',
|
|
21
|
-
color: '#000'
|
|
25
|
+
color: '#000',
|
|
26
|
+
colorTheme: 'dark'
|
|
22
27
|
}, {
|
|
23
28
|
backgroundColor: 'rgb(0, 0, 180)',
|
|
24
|
-
color: '#000'
|
|
29
|
+
color: '#000',
|
|
30
|
+
colorTheme: 'dark'
|
|
25
31
|
}, {
|
|
26
32
|
backgroundColor: 'rgb(235,235,222)',
|
|
27
|
-
color: '#000'
|
|
33
|
+
color: '#000',
|
|
34
|
+
colorTheme: 'dark'
|
|
28
35
|
}, {
|
|
29
36
|
backgroundColor: 'rgb(100,100,100)',
|
|
30
|
-
color: '#FFF'
|
|
37
|
+
color: '#FFF',
|
|
38
|
+
colorTheme: 'light'
|
|
31
39
|
}, {
|
|
32
40
|
backgroundColor: 'rgb(255,255,0)',
|
|
33
|
-
color: '#000'
|
|
41
|
+
color: '#000',
|
|
42
|
+
colorTheme: 'dark'
|
|
34
43
|
}, {
|
|
35
44
|
backgroundColor: 'rgb(55,19,112)',
|
|
36
|
-
color: '#FFF'
|
|
45
|
+
color: '#FFF',
|
|
46
|
+
colorTheme: 'light'
|
|
37
47
|
}, {
|
|
38
48
|
backgroundColor: 'rgb(255,255,150)',
|
|
39
|
-
color: '#000'
|
|
49
|
+
color: '#000',
|
|
50
|
+
colorTheme: 'dark'
|
|
40
51
|
}, {
|
|
41
52
|
backgroundColor: 'rgb(202,62,94)',
|
|
42
|
-
color: '#FFF'
|
|
53
|
+
color: '#FFF',
|
|
54
|
+
colorTheme: 'light'
|
|
43
55
|
}, {
|
|
44
56
|
backgroundColor: 'rgb(205,145,63)',
|
|
45
|
-
color: '#000'
|
|
57
|
+
color: '#000',
|
|
58
|
+
colorTheme: 'dark'
|
|
46
59
|
}, {
|
|
47
60
|
backgroundColor: 'rgb(12,75,100)',
|
|
48
|
-
color: '#FFF'
|
|
61
|
+
color: '#FFF',
|
|
62
|
+
colorTheme: 'light'
|
|
49
63
|
}, {
|
|
50
64
|
backgroundColor: 'rgb(175,155,50)',
|
|
51
|
-
color: '#000'
|
|
65
|
+
color: '#000',
|
|
66
|
+
colorTheme: 'dark'
|
|
52
67
|
}, {
|
|
53
68
|
backgroundColor: '#000',
|
|
54
|
-
color: '#FFF'
|
|
69
|
+
color: '#FFF',
|
|
70
|
+
colorTheme: 'light'
|
|
55
71
|
}, {
|
|
56
72
|
backgroundColor: 'rgb(37,70,25)',
|
|
57
|
-
color: '#FFF'
|
|
73
|
+
color: '#FFF',
|
|
74
|
+
colorTheme: 'light'
|
|
58
75
|
}, {
|
|
59
76
|
backgroundColor: 'rgb(121,33,135)',
|
|
60
|
-
color: '#FFF'
|
|
77
|
+
color: '#FFF',
|
|
78
|
+
colorTheme: 'light'
|
|
61
79
|
}, {
|
|
62
80
|
backgroundColor: 'rgb(83,140,208)',
|
|
63
|
-
color: '#FFF'
|
|
81
|
+
color: '#FFF',
|
|
82
|
+
colorTheme: 'light'
|
|
64
83
|
}, {
|
|
65
84
|
backgroundColor: 'rgb(0,154,37)',
|
|
66
|
-
color: '#000'
|
|
85
|
+
color: '#000',
|
|
86
|
+
colorTheme: 'dark'
|
|
67
87
|
}, {
|
|
68
88
|
backgroundColor: 'rgb(178,220,205)',
|
|
69
|
-
color: '#000'
|
|
89
|
+
color: '#000',
|
|
90
|
+
colorTheme: 'dark'
|
|
70
91
|
}, {
|
|
71
92
|
backgroundColor: 'rgb(255,152,213)',
|
|
72
|
-
color: '#000'
|
|
93
|
+
color: '#000',
|
|
94
|
+
colorTheme: 'dark'
|
|
73
95
|
}, {
|
|
74
96
|
backgroundColor: 'rgb(0,0,74)',
|
|
75
|
-
color: '#FFF'
|
|
97
|
+
color: '#FFF',
|
|
98
|
+
colorTheme: 'light'
|
|
76
99
|
}, {
|
|
77
100
|
backgroundColor: 'rgb(175,200,74)',
|
|
78
|
-
color: '#000'
|
|
101
|
+
color: '#000',
|
|
102
|
+
colorTheme: 'dark'
|
|
79
103
|
}, {
|
|
80
104
|
backgroundColor: 'rgb(63,25,12)',
|
|
81
|
-
color: '#
|
|
82
|
-
|
|
83
|
-
|
|
105
|
+
color: '#FFF',
|
|
106
|
+
colorTheme: 'light'
|
|
107
|
+
}];
|
|
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HIGHLIGHT_KEY = exports.DEFAULT_TOP_LABEL_PADDING = exports.BAR_KEY = void 0;
|
|
7
|
-
var HIGHLIGHT_KEY = 'HIGHLIGHT';
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.BAR_KEY = BAR_KEY;
|
|
11
|
-
var DEFAULT_TOP_LABEL_PADDING = '8';
|
|
12
|
-
exports.DEFAULT_TOP_LABEL_PADDING = DEFAULT_TOP_LABEL_PADDING;
|
|
7
|
+
var HIGHLIGHT_KEY = exports.HIGHLIGHT_KEY = 'HIGHLIGHT';
|
|
8
|
+
var BAR_KEY = exports.BAR_KEY = 'BAR';
|
|
9
|
+
var DEFAULT_TOP_LABEL_PADDING = exports.DEFAULT_TOP_LABEL_PADDING = '8';
|
|
@@ -12,10 +12,8 @@ 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 BLOCK_KEY = 'block';
|
|
16
|
-
exports.
|
|
17
|
-
var MODAL_KEY = 'modal';
|
|
18
|
-
exports.MODAL_KEY = MODAL_KEY;
|
|
15
|
+
var BLOCK_KEY = exports.BLOCK_KEY = 'block';
|
|
16
|
+
var MODAL_KEY = exports.MODAL_KEY = 'modal';
|
|
19
17
|
var options = (_options = {}, _defineProperty(_options, BLOCK_KEY, {
|
|
20
18
|
Component: _reactPerfectScrollbar.default,
|
|
21
19
|
withButton: false
|
|
@@ -23,7 +21,6 @@ var options = (_options = {}, _defineProperty(_options, BLOCK_KEY, {
|
|
|
23
21
|
Component: _UTDialog.default,
|
|
24
22
|
withButton: true
|
|
25
23
|
}), _options);
|
|
26
|
-
var displayOptions = function displayOptions(displayAs) {
|
|
24
|
+
var displayOptions = exports.displayOptions = function displayOptions(displayAs) {
|
|
27
25
|
return options[displayAs] || options[BLOCK_KEY];
|
|
28
|
-
};
|
|
29
|
-
exports.displayOptions = displayOptions;
|
|
26
|
+
};
|
|
@@ -126,16 +126,15 @@ var Legend = function Legend(_ref) {
|
|
|
126
126
|
}, title), withButton && /*#__PURE__*/_react.default.createElement(_.UTButton, _extends({
|
|
127
127
|
classNames: {
|
|
128
128
|
icon: classes.showLegendIcon,
|
|
129
|
-
root: "".concat(_stylesModule.default.button, " ").concat(classes.showLegendButton)
|
|
129
|
+
root: "".concat(_stylesModule.default.button, " ").concat(classes.showLegendButton),
|
|
130
|
+
text: classes.showLegendLabel
|
|
130
131
|
},
|
|
131
132
|
disabled: !hasReferences,
|
|
132
133
|
Icon: _InfoOutlined.default,
|
|
133
134
|
onClick: function onClick() {
|
|
134
135
|
return setShowLegend(true);
|
|
135
136
|
}
|
|
136
|
-
}, buttonProps), /*#__PURE__*/_react.default.createElement(
|
|
137
|
-
className: classes.showLegendLabel
|
|
138
|
-
}, showReferencesLabel)), /*#__PURE__*/_react.default.createElement(Wrapper, wrapperProps, referencesToShow.map(function (row) {
|
|
137
|
+
}, buttonProps), showReferencesLabel), /*#__PURE__*/_react.default.createElement(Wrapper, wrapperProps, referencesToShow.map(function (row) {
|
|
139
138
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
140
139
|
className: _stylesModule.default["row".concat(displayAs)]
|
|
141
140
|
}, row.map(function (item) {
|
|
@@ -157,5 +156,4 @@ Legend.propTypes = {
|
|
|
157
156
|
style: _propTypes.object,
|
|
158
157
|
title: _propTypes.string
|
|
159
158
|
};
|
|
160
|
-
var _default = Legend;
|
|
161
|
-
exports.default = _default;
|
|
159
|
+
var _default = exports.default = Legend;
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.orderLegend = void 0;
|
|
7
|
-
var orderLegend = function orderLegend(legendOrderFunction) {
|
|
7
|
+
var orderLegend = exports.orderLegend = function orderLegend(legendOrderFunction) {
|
|
8
8
|
return function (levels, linear, bar) {
|
|
9
9
|
return legendOrderFunction ? legendOrderFunction(levels, linear, bar) : [levels, linear, bar];
|
|
10
10
|
};
|
|
11
|
-
};
|
|
12
|
-
exports.orderLegend = orderLegend;
|
|
11
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLineConfiguration = void 0;
|
|
7
|
-
var getLineConfiguration = function getLineConfiguration(type, classes) {
|
|
7
|
+
var getLineConfiguration = exports.getLineConfiguration = function getLineConfiguration(type, classes) {
|
|
8
8
|
return {
|
|
9
9
|
solid: {
|
|
10
10
|
fill: 'none',
|
|
@@ -30,5 +30,4 @@ var getLineConfiguration = function getLineConfiguration(type, classes) {
|
|
|
30
30
|
className: classes.gridLine
|
|
31
31
|
}
|
|
32
32
|
}[type];
|
|
33
|
-
};
|
|
34
|
-
exports.getLineConfiguration = getLineConfiguration;
|
|
33
|
+
};
|
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MARKER_TYPES = exports.DEFAULT_MARKER_SIZE = void 0;
|
|
7
|
-
var DEFAULT_MARKER_SIZE = 4;
|
|
8
|
-
exports.
|
|
9
|
-
var MARKER_TYPES = {
|
|
7
|
+
var DEFAULT_MARKER_SIZE = exports.DEFAULT_MARKER_SIZE = 4;
|
|
8
|
+
var MARKER_TYPES = exports.MARKER_TYPES = {
|
|
10
9
|
DOT: 'dot'
|
|
11
|
-
};
|
|
12
|
-
exports.MARKER_TYPES = MARKER_TYPES;
|
|
10
|
+
};
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _constants = require("./constants");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
var DEFAULT_LINE_TYPE = 'solid';
|
|
11
|
-
var getLineConfiguration = function getLineConfiguration(type) {
|
|
11
|
+
var getLineConfiguration = exports.getLineConfiguration = function getLineConfiguration(type) {
|
|
12
12
|
return {
|
|
13
13
|
solid: {
|
|
14
14
|
props: {
|
|
@@ -26,8 +26,7 @@ var getLineConfiguration = function getLineConfiguration(type) {
|
|
|
26
26
|
custom: {}
|
|
27
27
|
}[type || DEFAULT_LINE_TYPE];
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var getMarkers = function getMarkers(data, xAxis, yAxis, barWidth, color, markersConfig) {
|
|
29
|
+
var getMarkers = exports.getMarkers = function getMarkers(data, xAxis, yAxis, barWidth, color, markersConfig) {
|
|
31
30
|
return data.map(function (_ref) {
|
|
32
31
|
var xCoordinate = _ref.xCoordinate,
|
|
33
32
|
value = _ref.value;
|
|
@@ -46,5 +45,4 @@ var getMarkers = function getMarkers(data, xAxis, yAxis, barWidth, color, marker
|
|
|
46
45
|
fill: color
|
|
47
46
|
}));
|
|
48
47
|
});
|
|
49
|
-
};
|
|
50
|
-
exports.getMarkers = getMarkers;
|
|
48
|
+
};
|
|
@@ -49,7 +49,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
49
49
|
},
|
|
50
50
|
variant: "text"
|
|
51
51
|
}), /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
52
|
-
|
|
52
|
+
classNames: {
|
|
53
53
|
icon: currentPage + 1 === totalPages ? classes.paginationButtonDisabled : classes.paginationButton,
|
|
54
54
|
root: _stylesModule.default.button
|
|
55
55
|
},
|
|
@@ -75,5 +75,4 @@ Pagination.propTypes = {
|
|
|
75
75
|
setCurrentPage: _propTypes.func,
|
|
76
76
|
totalPages: _propTypes.number
|
|
77
77
|
};
|
|
78
|
-
var _default = Pagination;
|
|
79
|
-
exports.default = _default;
|
|
78
|
+
var _default = exports.default = Pagination;
|
|
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.LINE_PADDING_Y = exports.LINE_PADDING_X = void 0;
|
|
7
|
-
var LINE_PADDING_X = 5;
|
|
8
|
-
exports.
|
|
9
|
-
var LINE_PADDING_Y = 20;
|
|
10
|
-
exports.LINE_PADDING_Y = LINE_PADDING_Y;
|
|
7
|
+
var LINE_PADDING_X = exports.LINE_PADDING_X = 5;
|
|
8
|
+
var LINE_PADDING_Y = exports.LINE_PADDING_Y = 20;
|
|
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.yAxisMaxValueRounder = exports.applyToIndex = void 0;
|
|
7
|
-
var applyToIndex = function applyToIndex(targetIndex, currentIndex, prop) {
|
|
7
|
+
var applyToIndex = exports.applyToIndex = function applyToIndex(targetIndex, currentIndex, prop) {
|
|
8
8
|
var defaultValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
9
9
|
return currentIndex === targetIndex ? prop : defaultValue;
|
|
10
10
|
};
|
|
11
|
-
exports.applyToIndex = applyToIndex;
|
|
12
11
|
var TICKS_MULTIPLIER_DISTANCE = 5;
|
|
13
|
-
var yAxisMaxValueRounder = function yAxisMaxValueRounder(maxValue, yAxisTicks) {
|
|
12
|
+
var yAxisMaxValueRounder = exports.yAxisMaxValueRounder = function yAxisMaxValueRounder(maxValue, yAxisTicks) {
|
|
14
13
|
return maxValue < 25 ? maxValue : Math.ceil(maxValue / (yAxisTicks - 1) / TICKS_MULTIPLIER_DISTANCE) * TICKS_MULTIPLIER_DISTANCE * (yAxisTicks - 1);
|
|
15
|
-
};
|
|
16
|
-
exports.yAxisMaxValueRounder = yAxisMaxValueRounder;
|
|
14
|
+
};
|
|
@@ -4,11 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_SCROLL_PADDING = exports.DEFAULT_MAX_VALUE = exports.DEFAULT_MARGIN_TOP = exports.DEFAULT_AXIS_PADDING = void 0;
|
|
7
|
-
var DEFAULT_AXIS_PADDING = 10;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var DEFAULT_MARGIN_TOP = 40;
|
|
12
|
-
exports.DEFAULT_MARGIN_TOP = DEFAULT_MARGIN_TOP;
|
|
13
|
-
var DEFAULT_MAX_VALUE = 100;
|
|
14
|
-
exports.DEFAULT_MAX_VALUE = DEFAULT_MAX_VALUE;
|
|
7
|
+
var DEFAULT_AXIS_PADDING = exports.DEFAULT_AXIS_PADDING = 10;
|
|
8
|
+
var DEFAULT_SCROLL_PADDING = exports.DEFAULT_SCROLL_PADDING = 20;
|
|
9
|
+
var DEFAULT_MARGIN_TOP = exports.DEFAULT_MARGIN_TOP = 40;
|
|
10
|
+
var DEFAULT_MAX_VALUE = exports.DEFAULT_MAX_VALUE = 100;
|
|
@@ -54,5 +54,4 @@ var useDynamicMargins = function useDynamicMargins(center, options) {
|
|
|
54
54
|
marginRight: center ? Math.max(marginLeft, marginRight) : marginRight
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
var _default = useDynamicMargins;
|
|
58
|
-
exports.default = _default;
|
|
57
|
+
var _default = exports.default = useDynamicMargins;
|
|
@@ -358,5 +358,4 @@ UTBarChart.defaultProps = {
|
|
|
358
358
|
linearData: [],
|
|
359
359
|
transitionDuration: 0
|
|
360
360
|
};
|
|
361
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTBarChart);
|
|
362
|
-
exports.default = _default;
|
|
361
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTBarChart);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _classesUtils = require("../../utils/classesUtils");
|
|
9
|
-
var retrieveStyle = function retrieveStyle(_ref) {
|
|
9
|
+
var retrieveStyle = exports.retrieveStyle = function retrieveStyle(_ref) {
|
|
10
10
|
var _theme$UTBarChart, _theme$UTBarChart2, _theme$UTBarChart3, _theme$UTBarChart4, _theme$UTBarChart5, _theme$UTBarChart6;
|
|
11
11
|
var theme = _ref.theme;
|
|
12
12
|
return {
|
|
@@ -111,5 +111,4 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
111
111
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'tooltip', 'width'])
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
};
|
|
115
|
-
exports.retrieveStyle = retrieveStyle;
|
|
114
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.xAxisDefinitionType = exports.referencesType = exports.linearType = exports.linearMarkersType = exports.linearDataType = exports.levelsType = exports.buttonPropsTypes = exports.barType = exports.barDataType = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
|
-
var barType = (0, _propTypes.shape)({
|
|
8
|
+
var barType = exports.barType = (0, _propTypes.shape)({
|
|
9
9
|
clickable: _propTypes.bool,
|
|
10
10
|
color: _propTypes.string,
|
|
11
11
|
highlightColor: _propTypes.string,
|
|
@@ -21,14 +21,11 @@ var barType = (0, _propTypes.shape)({
|
|
|
21
21
|
value: _propTypes.number
|
|
22
22
|
}))
|
|
23
23
|
});
|
|
24
|
-
exports.
|
|
25
|
-
var
|
|
26
|
-
exports.barDataType = barDataType;
|
|
27
|
-
var linearMarkersType = (0, _propTypes.shape)({
|
|
24
|
+
var barDataType = exports.barDataType = (0, _propTypes.arrayOf)((0, _propTypes.oneOfType)([(0, _propTypes.arrayOf)(barType), barType]));
|
|
25
|
+
var linearMarkersType = exports.linearMarkersType = (0, _propTypes.shape)({
|
|
28
26
|
type: _propTypes.string
|
|
29
27
|
});
|
|
30
|
-
exports.
|
|
31
|
-
var linearType = (0, _propTypes.shape)({
|
|
28
|
+
var linearType = exports.linearType = (0, _propTypes.shape)({
|
|
32
29
|
color: _propTypes.string,
|
|
33
30
|
data: (0, _propTypes.arrayOf)({
|
|
34
31
|
xCoodrinate: _propTypes.number,
|
|
@@ -37,16 +34,13 @@ var linearType = (0, _propTypes.shape)({
|
|
|
37
34
|
marker: linearMarkersType,
|
|
38
35
|
type: _propTypes.string
|
|
39
36
|
});
|
|
40
|
-
exports.
|
|
41
|
-
var
|
|
42
|
-
exports.linearDataType = linearDataType;
|
|
43
|
-
var levelsType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
37
|
+
var linearDataType = exports.linearDataType = (0, _propTypes.arrayOf)(linearType);
|
|
38
|
+
var levelsType = exports.levelsType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
44
39
|
value: _propTypes.number,
|
|
45
40
|
color: _propTypes.string,
|
|
46
41
|
id: _propTypes.string
|
|
47
42
|
}));
|
|
48
|
-
exports.
|
|
49
|
-
var referencesType = (0, _propTypes.shape)({
|
|
43
|
+
var referencesType = exports.referencesType = (0, _propTypes.shape)({
|
|
50
44
|
check: _propTypes.func,
|
|
51
45
|
className: _propTypes.string,
|
|
52
46
|
CustomIcon: _propTypes.elementType,
|
|
@@ -54,18 +48,15 @@ var referencesType = (0, _propTypes.shape)({
|
|
|
54
48
|
label: _propTypes.string,
|
|
55
49
|
orderFunction: _propTypes.func
|
|
56
50
|
});
|
|
57
|
-
exports.
|
|
58
|
-
var xAxisDefinitionType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
51
|
+
var xAxisDefinitionType = exports.xAxisDefinitionType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
59
52
|
labelBackgroundPadding: _propTypes.number,
|
|
60
53
|
mainLabel: _propTypes.string,
|
|
61
54
|
secondaryLabel: _propTypes.string,
|
|
62
55
|
selectedLabelBackground: _propTypes.string
|
|
63
56
|
}));
|
|
64
|
-
exports.
|
|
65
|
-
var buttonPropsTypes = (0, _propTypes.shape)({
|
|
57
|
+
var buttonPropsTypes = exports.buttonPropsTypes = (0, _propTypes.shape)({
|
|
66
58
|
colorTheme: _propTypes.string,
|
|
67
59
|
iconPlacement: _propTypes.string,
|
|
68
60
|
size: _propTypes.string,
|
|
69
61
|
variant: _propTypes.string
|
|
70
|
-
});
|
|
71
|
-
exports.buttonPropsTypes = buttonPropsTypes;
|
|
62
|
+
});
|