@widergy/energy-ui 2.12.1 → 2.12.2

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.
Files changed (277) hide show
  1. package/dist/components/EnergyThemeProvider/index.js +36 -13
  2. package/dist/components/Loading/constants.js +2 -1
  3. package/dist/components/Loading/index.js +12 -13
  4. package/dist/components/Loading/theme.js +2 -4
  5. package/dist/components/UTAlert/AlertHandler.js +101 -75
  6. package/dist/components/UTAlert/index.js +87 -65
  7. package/dist/components/UTAlert/theme.js +32 -32
  8. package/dist/components/UTAttachment/components/Preview/index.js +9 -8
  9. package/dist/components/UTAttachment/constants.js +13 -7
  10. package/dist/components/UTAttachment/index.js +250 -159
  11. package/dist/components/UTAttachment/layout.js +27 -26
  12. package/dist/components/UTAttachment/theme.js +2 -4
  13. package/dist/components/UTAttachment/utils.js +117 -34
  14. package/dist/components/UTAutocomplete/components/ListBox/index.js +21 -13
  15. package/dist/components/UTAutocomplete/components/ListBox/utils.js +11 -9
  16. package/dist/components/UTAutocomplete/constants.js +23 -12
  17. package/dist/components/UTAutocomplete/index.js +94 -54
  18. package/dist/components/UTAutocomplete/theme.js +4 -6
  19. package/dist/components/UTAvatar/constants.js +3 -2
  20. package/dist/components/UTAvatar/index.js +17 -18
  21. package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +22 -22
  22. package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -1
  23. package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +22 -21
  24. package/dist/components/UTBarChart/components/Bars/constants.js +6 -3
  25. package/dist/components/UTBarChart/components/Bars/index.js +80 -70
  26. package/dist/components/UTBarChart/components/Legend/constants.js +18 -12
  27. package/dist/components/UTBarChart/components/Legend/index.js +93 -75
  28. package/dist/components/UTBarChart/components/Legend/utils.js +5 -1
  29. package/dist/components/UTBarChart/components/Levels/index.js +14 -16
  30. package/dist/components/UTBarChart/components/Levels/utils.js +27 -25
  31. package/dist/components/UTBarChart/components/LinearPlot/constants.js +5 -3
  32. package/dist/components/UTBarChart/components/LinearPlot/index.js +20 -25
  33. package/dist/components/UTBarChart/components/LinearPlot/utils.js +39 -37
  34. package/dist/components/UTBarChart/components/Pagination/constants.js +2 -1
  35. package/dist/components/UTBarChart/components/Pagination/index.js +24 -20
  36. package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +32 -21
  37. package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +4 -2
  38. package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +19 -20
  39. package/dist/components/UTBarChart/components/XAxis/constants.js +2 -1
  40. package/dist/components/UTBarChart/components/XAxis/index.js +65 -54
  41. package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +11 -12
  42. package/dist/components/UTBarChart/components/YAxis/constants.js +2 -1
  43. package/dist/components/UTBarChart/components/YAxis/index.js +37 -30
  44. package/dist/components/UTBarChart/components/YAxis/utils.js +6 -4
  45. package/dist/components/UTBarChart/constants.js +8 -4
  46. package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +40 -23
  47. package/dist/components/UTBarChart/index.js +166 -152
  48. package/dist/components/UTBarChart/theme.js +2 -4
  49. package/dist/components/UTBarChart/types.js +19 -10
  50. package/dist/components/UTBarChart/utils.js +111 -107
  51. package/dist/components/UTBreadcrumbs/constants.js +31 -23
  52. package/dist/components/UTBreadcrumbs/index.js +101 -76
  53. package/dist/components/UTBreadcrumbs/theme.js +2 -4
  54. package/dist/components/UTButton/constants.js +17 -11
  55. package/dist/components/UTButton/index.js +31 -28
  56. package/dist/components/UTButton/theme.js +23 -23
  57. package/dist/components/UTCBUInput/index.js +40 -36
  58. package/dist/components/UTCBUInput/theme.js +2 -4
  59. package/dist/components/UTCaptcha/index.js +45 -19
  60. package/dist/components/UTCard/components/UTCardFooter/index.js +16 -15
  61. package/dist/components/UTCard/index.js +120 -85
  62. package/dist/components/UTCard/theme.js +12 -11
  63. package/dist/components/UTCard/types.js +3 -2
  64. package/dist/components/UTCarousel/components/Button/index.js +13 -13
  65. package/dist/components/UTCarousel/components/Legend/index.js +15 -13
  66. package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +16 -16
  67. package/dist/components/UTCarousel/components/Slider/constants.js +10 -5
  68. package/dist/components/UTCarousel/components/Slider/index.js +273 -204
  69. package/dist/components/UTCarousel/components/Slider/layout.js +94 -67
  70. package/dist/components/UTCarousel/index.js +15 -14
  71. package/dist/components/UTCarousel/theme.js +2 -4
  72. package/dist/components/UTCheckList/constants.js +2 -1
  73. package/dist/components/UTCheckList/index.js +93 -72
  74. package/dist/components/UTCheckList/theme.js +31 -31
  75. package/dist/components/UTCheckbox/constants.js +6 -3
  76. package/dist/components/UTCheckbox/index.js +44 -32
  77. package/dist/components/UTCheckbox/theme.js +35 -35
  78. package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
  79. package/dist/components/UTConsumptionBar/constants.js +6 -3
  80. package/dist/components/UTConsumptionBar/index.js +80 -53
  81. package/dist/components/UTCuit/index.js +133 -109
  82. package/dist/components/UTCuit/theme.js +53 -51
  83. package/dist/components/UTDatePicker/components/Day/constants.js +2 -1
  84. package/dist/components/UTDatePicker/components/Day/index.js +12 -12
  85. package/dist/components/UTDatePicker/constants.js +31 -20
  86. package/dist/components/UTDatePicker/index.js +102 -60
  87. package/dist/components/UTDatePicker/theme.js +3 -5
  88. package/dist/components/UTDatePicker/types.js +3 -2
  89. package/dist/components/UTDatePicker/utils.js +6 -2
  90. package/dist/components/UTDialog/constants.js +4 -2
  91. package/dist/components/UTDialog/index.js +37 -38
  92. package/dist/components/UTDialog/theme.js +2 -4
  93. package/dist/components/UTDialog/types.js +3 -2
  94. package/dist/components/UTDotMenu/index.js +61 -39
  95. package/dist/components/UTEmojiPicker/constants.js +11 -6
  96. package/dist/components/UTEmojiPicker/index.js +65 -45
  97. package/dist/components/UTEmojiPicker/theme.js +2 -4
  98. package/dist/components/UTEmojiPicker/utils.js +51 -21
  99. package/dist/components/UTExternalLink/constants.js +5 -3
  100. package/dist/components/UTExternalLink/index.js +15 -18
  101. package/dist/components/UTExternalLink/theme.js +6 -8
  102. package/dist/components/UTFileInput/constants.js +4 -2
  103. package/dist/components/UTFileInput/index.js +31 -7
  104. package/dist/components/UTFileInput/layout.js +97 -68
  105. package/dist/components/UTIconButton/index.js +72 -49
  106. package/dist/components/UTIconButton/theme.js +2 -4
  107. package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +58 -53
  108. package/dist/components/UTImageRadio/constants.js +6 -3
  109. package/dist/components/UTImageRadio/index.js +47 -39
  110. package/dist/components/UTImageRadio/theme.js +12 -11
  111. package/dist/components/UTImageRadio/types.js +3 -2
  112. package/dist/components/UTImageRadio/utils.js +6 -2
  113. package/dist/components/UTLabel/constants.js +20 -14
  114. package/dist/components/UTLabel/index.js +20 -18
  115. package/dist/components/UTLabel/theme.js +15 -15
  116. package/dist/components/UTList/index.js +18 -15
  117. package/dist/components/UTLoading/index.js +15 -15
  118. package/dist/components/UTMap/components/GoogleMaps/constants.js +11 -8
  119. package/dist/components/UTMap/components/GoogleMaps/index.js +91 -63
  120. package/dist/components/UTMap/components/GoogleMaps/styles.js +3 -2
  121. package/dist/components/UTMap/constants.js +12 -6
  122. package/dist/components/UTMap/index.js +198 -163
  123. package/dist/components/UTMap/types.js +6 -4
  124. package/dist/components/UTMap/utils.js +46 -29
  125. package/dist/components/UTMap/withGoogleMapScript.js +22 -18
  126. package/dist/components/UTMenu/index.js +69 -52
  127. package/dist/components/UTMenu/theme.js +3 -5
  128. package/dist/components/UTMenu/utils.js +11 -5
  129. package/dist/components/UTModal/constants.js +13 -9
  130. package/dist/components/UTModal/index.js +30 -26
  131. package/dist/components/UTModal/theme.js +2 -4
  132. package/dist/components/UTPagination/components/PageSizeSelector/index.js +10 -11
  133. package/dist/components/UTPagination/components/PageSizeSelector/utils.js +13 -7
  134. package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +12 -12
  135. package/dist/components/UTPagination/components/Pagination/index.js +39 -28
  136. package/dist/components/UTPagination/components/Pagination/utils.js +14 -8
  137. package/dist/components/UTPagination/constants.js +6 -3
  138. package/dist/components/UTPagination/index.js +17 -16
  139. package/dist/components/UTPagination/theme.js +2 -4
  140. package/dist/components/UTPanel/index.js +44 -38
  141. package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +10 -13
  142. package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +19 -22
  143. package/dist/components/UTPasswordField/components/PasswordValidations/index.js +50 -63
  144. package/dist/components/UTPasswordField/components/PasswordWarning/index.js +26 -25
  145. package/dist/components/UTPasswordField/index.js +23 -26
  146. package/dist/components/UTPasswordField/theme.js +2 -4
  147. package/dist/components/UTPhoneInput/constants.js +6 -3
  148. package/dist/components/UTPhoneInput/index.js +205 -180
  149. package/dist/components/UTPhoneInput/theme.js +77 -77
  150. package/dist/components/UTPieChart/components/ArrowLabel/constants.js +8 -4
  151. package/dist/components/UTPieChart/components/ArrowLabel/index.js +23 -24
  152. package/dist/components/UTPieChart/components/Legend/contants.js +6 -3
  153. package/dist/components/UTPieChart/components/Legend/index.js +24 -27
  154. package/dist/components/UTPieChart/constants.js +26 -13
  155. package/dist/components/UTPieChart/hooks/use-animated-value/index.js +33 -15
  156. package/dist/components/UTPieChart/index.js +76 -73
  157. package/dist/components/UTPieChart/theme.js +2 -4
  158. package/dist/components/UTPieChart/utils.js +2 -4
  159. package/dist/components/UTProgressBar/constants.js +4 -2
  160. package/dist/components/UTProgressBar/index.js +17 -15
  161. package/dist/components/UTProgressBar/theme.js +2 -4
  162. package/dist/components/UTProgressBar/types.js +3 -2
  163. package/dist/components/UTRadioGroup/index.js +83 -56
  164. package/dist/components/UTRadioGroup/theme.js +52 -52
  165. package/dist/components/UTRating/components/Circle/index.js +56 -41
  166. package/dist/components/UTRating/components/Faces/constants.js +4 -2
  167. package/dist/components/UTRating/components/Faces/index.js +36 -34
  168. package/dist/components/UTRating/components/Star/index.js +40 -36
  169. package/dist/components/UTRating/constants.js +8 -4
  170. package/dist/components/UTRating/index.js +46 -31
  171. package/dist/components/UTRating/theme.js +2 -4
  172. package/dist/components/UTRipple/Ripple.js +39 -22
  173. package/dist/components/UTRipple/index.js +37 -18
  174. package/dist/components/UTSelect/components/Option/index.js +13 -13
  175. package/dist/components/UTSelect/constants.js +8 -4
  176. package/dist/components/UTSelect/index.js +85 -63
  177. package/dist/components/UTSelect/stylesJS.js +3 -2
  178. package/dist/components/UTSelect/theme.js +4 -6
  179. package/dist/components/UTSelect/utils.js +13 -3
  180. package/dist/components/UTSidebar/components/ListOption/index.js +49 -34
  181. package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +8 -8
  182. package/dist/components/UTSidebar/components/LogosContainer/index.js +14 -14
  183. package/dist/components/UTSidebar/components/Option/constants.js +3 -2
  184. package/dist/components/UTSidebar/components/Option/index.js +32 -28
  185. package/dist/components/UTSidebar/components/Toggler/index.js +11 -11
  186. package/dist/components/UTSidebar/index.js +53 -42
  187. package/dist/components/UTSidebar/theme.js +2 -4
  188. package/dist/components/UTSidebar/types.js +10 -5
  189. package/dist/components/UTSkeleton/index.js +36 -10
  190. package/dist/components/UTStatus/constants.js +9 -5
  191. package/dist/components/UTStatus/index.js +15 -16
  192. package/dist/components/UTStatus/theme.js +49 -66
  193. package/dist/components/UTSwitch/constants.js +6 -3
  194. package/dist/components/UTSwitch/index.js +57 -42
  195. package/dist/components/UTSwitch/theme.js +2 -4
  196. package/dist/components/UTTable/components/ActionIcons/constants.js +2 -1
  197. package/dist/components/UTTable/components/ActionIcons/index.js +85 -47
  198. package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +12 -10
  199. package/dist/components/UTTable/components/Cell/index.js +23 -18
  200. package/dist/components/UTTable/components/HeaderCell/constants.js +3 -2
  201. package/dist/components/UTTable/components/HeaderCell/index.js +30 -23
  202. package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
  203. package/dist/components/UTTable/components/PrimaryAction/index.js +11 -12
  204. package/dist/components/UTTable/components/ResponsiveCell/index.js +20 -19
  205. package/dist/components/UTTable/components/Status/index.js +19 -18
  206. package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +9 -10
  207. package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +13 -7
  208. package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +12 -12
  209. package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +32 -21
  210. package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +14 -8
  211. package/dist/components/UTTable/components/TableFooter/constants.js +2 -1
  212. package/dist/components/UTTable/components/TableFooter/index.js +15 -15
  213. package/dist/components/UTTable/components/TableHeader/index.js +11 -11
  214. package/dist/components/UTTable/components/TableRow/constants.js +6 -3
  215. package/dist/components/UTTable/components/TableRow/index.js +94 -79
  216. package/dist/components/UTTable/constants.js +43 -26
  217. package/dist/components/UTTable/hook.js +26 -11
  218. package/dist/components/UTTable/index.js +223 -132
  219. package/dist/components/UTTable/theme.js +17 -17
  220. package/dist/components/UTTable/types.js +8 -4
  221. package/dist/components/UTTable/utils.js +74 -70
  222. package/dist/components/UTTabs/components/TooltipTab/index.js +30 -20
  223. package/dist/components/UTTabs/constants.js +8 -4
  224. package/dist/components/UTTabs/index.js +86 -57
  225. package/dist/components/UTTabs/theme.js +2 -4
  226. package/dist/components/UTTabs/utils.js +1 -1
  227. package/dist/components/UTTextArea/constants.js +6 -3
  228. package/dist/components/UTTextArea/index.js +23 -23
  229. package/dist/components/UTTextArea/theme.js +2 -4
  230. package/dist/components/UTTextInput/constants.js +3 -2
  231. package/dist/components/UTTextInput/index.js +165 -137
  232. package/dist/components/UTTextInput/theme.js +4 -6
  233. package/dist/components/UTThirdPartyCookieChecker/index.js +21 -17
  234. package/dist/components/UTToggle/components/ToggleOption/index.js +17 -16
  235. package/dist/components/UTToggle/index.js +26 -25
  236. package/dist/components/UTToggle/theme.js +2 -4
  237. package/dist/components/UTTooltip/index.js +30 -23
  238. package/dist/components/UTTooltip/theme.js +2 -4
  239. package/dist/components/UTTopbar/components/Notifications/index.js +14 -11
  240. package/dist/components/UTTopbar/components/UserMenu/index.js +15 -15
  241. package/dist/components/UTTopbar/index.js +31 -28
  242. package/dist/components/UTTopbar/theme.js +2 -4
  243. package/dist/components/UTTopbar/types.js +9 -5
  244. package/dist/components/UTTouchableWithoutFeedback/index.js +27 -14
  245. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +4 -2
  246. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +31 -34
  247. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
  248. package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +12 -6
  249. package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +18 -8
  250. package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +47 -23
  251. package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +34 -31
  252. package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +93 -81
  253. package/dist/components/UTVirtualizedList/constants.js +8 -4
  254. package/dist/components/UTVirtualizedList/index.js +38 -26
  255. package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +21 -17
  256. package/dist/components/UTWorkflowContainer/constants.js +6 -3
  257. package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
  258. package/dist/components/UTWorkflowContainer/index.js +51 -32
  259. package/dist/components/UTWorkflowContainer/theme.js +53 -60
  260. package/dist/components/UTWorkflowContainer/types.js +3 -2
  261. package/dist/components/WithLoading/index.js +15 -10
  262. package/dist/components/WithTheme/index.js +17 -10
  263. package/dist/components/WithTheme/layout.js +28 -22
  264. package/dist/components/WithTouch/index.js +19 -12
  265. package/dist/constants/UTTable.js +3 -2
  266. package/dist/index.js +58 -58
  267. package/dist/theme.js +5 -6
  268. package/dist/types/commonTypes.js +5 -3
  269. package/dist/types/consumptionTypes.js +5 -3
  270. package/dist/types/formTypes.js +7 -4
  271. package/dist/types/tableTypes.js +3 -2
  272. package/dist/utils/classesUtils.js +13 -5
  273. package/dist/utils/componentUtils.js +13 -10
  274. package/dist/utils/helperFunctions.js +4 -4
  275. package/dist/utils/shadowUtils.js +11 -13
  276. package/dist/utils/useScreenSize.js +3 -2
  277. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5,349 +5,349 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "AlertHandler", {
7
7
  enumerable: true,
8
- get: function () {
8
+ get: function get() {
9
9
  return _AlertHandler.default;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "EnergyThemeProvider", {
13
13
  enumerable: true,
14
- get: function () {
14
+ get: function get() {
15
15
  return _EnergyThemeProvider.default;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "UTAlert", {
19
19
  enumerable: true,
20
- get: function () {
20
+ get: function get() {
21
21
  return _UTAlert.default;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "UTAttachment", {
25
25
  enumerable: true,
26
- get: function () {
26
+ get: function get() {
27
27
  return _UTAttachment.default;
28
28
  }
29
29
  });
30
30
  Object.defineProperty(exports, "UTAutocomplete", {
31
31
  enumerable: true,
32
- get: function () {
32
+ get: function get() {
33
33
  return _UTAutocomplete.default;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "UTAvatar", {
37
37
  enumerable: true,
38
- get: function () {
38
+ get: function get() {
39
39
  return _UTAvatar.default;
40
40
  }
41
41
  });
42
42
  Object.defineProperty(exports, "UTBarChart", {
43
43
  enumerable: true,
44
- get: function () {
44
+ get: function get() {
45
45
  return _UTBarChart.default;
46
46
  }
47
47
  });
48
48
  Object.defineProperty(exports, "UTBreadcrumbs", {
49
49
  enumerable: true,
50
- get: function () {
50
+ get: function get() {
51
51
  return _UTBreadcrumbs.default;
52
52
  }
53
53
  });
54
54
  Object.defineProperty(exports, "UTButton", {
55
55
  enumerable: true,
56
- get: function () {
56
+ get: function get() {
57
57
  return _UTButton.default;
58
58
  }
59
59
  });
60
60
  Object.defineProperty(exports, "UTCBUInput", {
61
61
  enumerable: true,
62
- get: function () {
62
+ get: function get() {
63
63
  return _UTCBUInput.default;
64
64
  }
65
65
  });
66
66
  Object.defineProperty(exports, "UTCaptcha", {
67
67
  enumerable: true,
68
- get: function () {
68
+ get: function get() {
69
69
  return _UTCaptcha.default;
70
70
  }
71
71
  });
72
72
  Object.defineProperty(exports, "UTCard", {
73
73
  enumerable: true,
74
- get: function () {
74
+ get: function get() {
75
75
  return _UTCard.default;
76
76
  }
77
77
  });
78
78
  Object.defineProperty(exports, "UTCarousel", {
79
79
  enumerable: true,
80
- get: function () {
80
+ get: function get() {
81
81
  return _UTCarousel.default;
82
82
  }
83
83
  });
84
84
  Object.defineProperty(exports, "UTCheckList", {
85
85
  enumerable: true,
86
- get: function () {
86
+ get: function get() {
87
87
  return _UTCheckList.default;
88
88
  }
89
89
  });
90
90
  Object.defineProperty(exports, "UTCheckbox", {
91
91
  enumerable: true,
92
- get: function () {
92
+ get: function get() {
93
93
  return _UTCheckbox.default;
94
94
  }
95
95
  });
96
96
  Object.defineProperty(exports, "UTConsumptionBar", {
97
97
  enumerable: true,
98
- get: function () {
98
+ get: function get() {
99
99
  return _UTConsumptionBar.default;
100
100
  }
101
101
  });
102
102
  Object.defineProperty(exports, "UTCuit", {
103
103
  enumerable: true,
104
- get: function () {
104
+ get: function get() {
105
105
  return _UTCuit.default;
106
106
  }
107
107
  });
108
108
  Object.defineProperty(exports, "UTDatePicker", {
109
109
  enumerable: true,
110
- get: function () {
110
+ get: function get() {
111
111
  return _UTDatePicker.default;
112
112
  }
113
113
  });
114
114
  Object.defineProperty(exports, "UTDialog", {
115
115
  enumerable: true,
116
- get: function () {
116
+ get: function get() {
117
117
  return _UTDialog.default;
118
118
  }
119
119
  });
120
120
  Object.defineProperty(exports, "UTDotMenu", {
121
121
  enumerable: true,
122
- get: function () {
122
+ get: function get() {
123
123
  return _UTDotMenu.default;
124
124
  }
125
125
  });
126
126
  Object.defineProperty(exports, "UTEmojiPicker", {
127
127
  enumerable: true,
128
- get: function () {
128
+ get: function get() {
129
129
  return _UTEmojiPicker.default;
130
130
  }
131
131
  });
132
132
  Object.defineProperty(exports, "UTExternalLink", {
133
133
  enumerable: true,
134
- get: function () {
134
+ get: function get() {
135
135
  return _UTExternalLink.default;
136
136
  }
137
137
  });
138
138
  Object.defineProperty(exports, "UTFileInput", {
139
139
  enumerable: true,
140
- get: function () {
140
+ get: function get() {
141
141
  return _UTFileInput.default;
142
142
  }
143
143
  });
144
144
  Object.defineProperty(exports, "UTIconButton", {
145
145
  enumerable: true,
146
- get: function () {
146
+ get: function get() {
147
147
  return _UTIconButton.default;
148
148
  }
149
149
  });
150
150
  Object.defineProperty(exports, "UTImageRadio", {
151
151
  enumerable: true,
152
- get: function () {
152
+ get: function get() {
153
153
  return _UTImageRadio.default;
154
154
  }
155
155
  });
156
156
  Object.defineProperty(exports, "UTLabel", {
157
157
  enumerable: true,
158
- get: function () {
158
+ get: function get() {
159
159
  return _UTLabel.default;
160
160
  }
161
161
  });
162
162
  Object.defineProperty(exports, "UTList", {
163
163
  enumerable: true,
164
- get: function () {
164
+ get: function get() {
165
165
  return _UTList.default;
166
166
  }
167
167
  });
168
168
  Object.defineProperty(exports, "UTLoading", {
169
169
  enumerable: true,
170
- get: function () {
170
+ get: function get() {
171
171
  return _UTLoading.default;
172
172
  }
173
173
  });
174
174
  Object.defineProperty(exports, "UTMap", {
175
175
  enumerable: true,
176
- get: function () {
176
+ get: function get() {
177
177
  return _UTMap.default;
178
178
  }
179
179
  });
180
180
  Object.defineProperty(exports, "UTMenu", {
181
181
  enumerable: true,
182
- get: function () {
182
+ get: function get() {
183
183
  return _UTMenu.default;
184
184
  }
185
185
  });
186
186
  Object.defineProperty(exports, "UTModal", {
187
187
  enumerable: true,
188
- get: function () {
188
+ get: function get() {
189
189
  return _UTModal.default;
190
190
  }
191
191
  });
192
192
  Object.defineProperty(exports, "UTPagination", {
193
193
  enumerable: true,
194
- get: function () {
194
+ get: function get() {
195
195
  return _UTPagination.default;
196
196
  }
197
197
  });
198
198
  Object.defineProperty(exports, "UTPanel", {
199
199
  enumerable: true,
200
- get: function () {
200
+ get: function get() {
201
201
  return _UTPanel.default;
202
202
  }
203
203
  });
204
204
  Object.defineProperty(exports, "UTPasswordField", {
205
205
  enumerable: true,
206
- get: function () {
206
+ get: function get() {
207
207
  return _UTPasswordField.default;
208
208
  }
209
209
  });
210
210
  Object.defineProperty(exports, "UTPhoneInput", {
211
211
  enumerable: true,
212
- get: function () {
212
+ get: function get() {
213
213
  return _UTPhoneInput.default;
214
214
  }
215
215
  });
216
216
  Object.defineProperty(exports, "UTPieChart", {
217
217
  enumerable: true,
218
- get: function () {
218
+ get: function get() {
219
219
  return _UTPieChart.default;
220
220
  }
221
221
  });
222
222
  Object.defineProperty(exports, "UTProgressBar", {
223
223
  enumerable: true,
224
- get: function () {
224
+ get: function get() {
225
225
  return _UTProgressBar.default;
226
226
  }
227
227
  });
228
228
  Object.defineProperty(exports, "UTRadioGroup", {
229
229
  enumerable: true,
230
- get: function () {
230
+ get: function get() {
231
231
  return _UTRadioGroup.default;
232
232
  }
233
233
  });
234
234
  Object.defineProperty(exports, "UTRating", {
235
235
  enumerable: true,
236
- get: function () {
236
+ get: function get() {
237
237
  return _UTRating.default;
238
238
  }
239
239
  });
240
240
  Object.defineProperty(exports, "UTSelect", {
241
241
  enumerable: true,
242
- get: function () {
242
+ get: function get() {
243
243
  return _UTSelect.default;
244
244
  }
245
245
  });
246
246
  Object.defineProperty(exports, "UTSidebar", {
247
247
  enumerable: true,
248
- get: function () {
248
+ get: function get() {
249
249
  return _UTSidebar.default;
250
250
  }
251
251
  });
252
252
  Object.defineProperty(exports, "UTSkeleton", {
253
253
  enumerable: true,
254
- get: function () {
254
+ get: function get() {
255
255
  return _UTSkeleton.default;
256
256
  }
257
257
  });
258
258
  Object.defineProperty(exports, "UTStatus", {
259
259
  enumerable: true,
260
- get: function () {
260
+ get: function get() {
261
261
  return _UTStatus.default;
262
262
  }
263
263
  });
264
264
  Object.defineProperty(exports, "UTSwitch", {
265
265
  enumerable: true,
266
- get: function () {
266
+ get: function get() {
267
267
  return _UTSwitch.default;
268
268
  }
269
269
  });
270
270
  Object.defineProperty(exports, "UTTable", {
271
271
  enumerable: true,
272
- get: function () {
272
+ get: function get() {
273
273
  return _UTTable.default;
274
274
  }
275
275
  });
276
276
  Object.defineProperty(exports, "UTTabs", {
277
277
  enumerable: true,
278
- get: function () {
278
+ get: function get() {
279
279
  return _UTTabs.default;
280
280
  }
281
281
  });
282
282
  Object.defineProperty(exports, "UTTextArea", {
283
283
  enumerable: true,
284
- get: function () {
284
+ get: function get() {
285
285
  return _UTTextArea.default;
286
286
  }
287
287
  });
288
288
  Object.defineProperty(exports, "UTTextInput", {
289
289
  enumerable: true,
290
- get: function () {
290
+ get: function get() {
291
291
  return _UTTextInput.default;
292
292
  }
293
293
  });
294
294
  Object.defineProperty(exports, "UTThirdPartyCookieChecker", {
295
295
  enumerable: true,
296
- get: function () {
296
+ get: function get() {
297
297
  return _UTThirdPartyCookieChecker.default;
298
298
  }
299
299
  });
300
300
  Object.defineProperty(exports, "UTToggle", {
301
301
  enumerable: true,
302
- get: function () {
302
+ get: function get() {
303
303
  return _UTToggle.default;
304
304
  }
305
305
  });
306
306
  Object.defineProperty(exports, "UTTooltip", {
307
307
  enumerable: true,
308
- get: function () {
308
+ get: function get() {
309
309
  return _UTTooltip.default;
310
310
  }
311
311
  });
312
312
  Object.defineProperty(exports, "UTTopbar", {
313
313
  enumerable: true,
314
- get: function () {
314
+ get: function get() {
315
315
  return _UTTopbar.default;
316
316
  }
317
317
  });
318
318
  Object.defineProperty(exports, "UTTouchableWithoutFeedback", {
319
319
  enumerable: true,
320
- get: function () {
320
+ get: function get() {
321
321
  return _UTTouchableWithoutFeedback.default;
322
322
  }
323
323
  });
324
324
  Object.defineProperty(exports, "UTVirtualizedList", {
325
325
  enumerable: true,
326
- get: function () {
326
+ get: function get() {
327
327
  return _UTVirtualizedList.default;
328
328
  }
329
329
  });
330
330
  Object.defineProperty(exports, "UTWorkflowContainer", {
331
331
  enumerable: true,
332
- get: function () {
332
+ get: function get() {
333
333
  return _UTWorkflowContainer.default;
334
334
  }
335
335
  });
336
336
  Object.defineProperty(exports, "WithLoading", {
337
337
  enumerable: true,
338
- get: function () {
338
+ get: function get() {
339
339
  return _WithLoading.default;
340
340
  }
341
341
  });
342
342
  Object.defineProperty(exports, "WithTouch", {
343
343
  enumerable: true,
344
- get: function () {
344
+ get: function get() {
345
345
  return _WithTouch.default;
346
346
  }
347
347
  });
348
348
  Object.defineProperty(exports, "componentUtils", {
349
349
  enumerable: true,
350
- get: function () {
350
+ get: function get() {
351
351
  return _componentUtils.default;
352
352
  }
353
353
  });
package/dist/theme.js CHANGED
@@ -7,11 +7,10 @@ exports.manager = exports.EnergyThemeProvider = exports.EnergyThemeConsumer = vo
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _jss = require("jss");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const ThemeContext = /*#__PURE__*/_react.default.createContext({});
11
- const manager = exports.manager = new _jss.SheetsManager();
12
- const {
13
- Provider: EnergyThemeProvider,
14
- Consumer: EnergyThemeConsumer
15
- } = ThemeContext;
10
+ var ThemeContext = /*#__PURE__*/_react.default.createContext({});
11
+ var manager = new _jss.SheetsManager();
12
+ exports.manager = manager;
13
+ var EnergyThemeProvider = ThemeContext.Provider,
14
+ EnergyThemeConsumer = ThemeContext.Consumer;
16
15
  exports.EnergyThemeConsumer = EnergyThemeConsumer;
17
16
  exports.EnergyThemeProvider = EnergyThemeProvider;
@@ -5,13 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.refType = exports.classesType = void 0;
7
7
  var _propTypes = require("prop-types");
8
- const classesType = exports.classesType = (0, _propTypes.shape)({
8
+ var classesType = (0, _propTypes.shape)({
9
9
  container: _propTypes.string,
10
10
  root: _propTypes.string,
11
11
  colorPrimary: _propTypes.string,
12
12
  barColorPrimary: _propTypes.string,
13
13
  label: _propTypes.string
14
14
  });
15
- const refType = exports.refType = (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
15
+ exports.classesType = classesType;
16
+ var refType = (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
16
17
  current: _propTypes.any
17
- })]);
18
+ })]);
19
+ exports.refType = refType;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.consumptionLevelsTypes = exports.consumptionCategoriesTypes = void 0;
7
7
  var _propTypes = require("prop-types");
8
- const consumptionLevelsTypes = exports.consumptionLevelsTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
8
+ var consumptionLevelsTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
9
9
  charge: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
10
10
  date: _propTypes.string,
11
11
  value: _propTypes.number
@@ -14,7 +14,8 @@ const consumptionLevelsTypes = exports.consumptionLevelsTypes = (0, _propTypes.a
14
14
  name: _propTypes.string,
15
15
  range: (0, _propTypes.arrayOf)(_propTypes.number)
16
16
  }));
17
- const consumptionCategoriesTypes = exports.consumptionCategoriesTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
17
+ exports.consumptionLevelsTypes = consumptionLevelsTypes;
18
+ var consumptionCategoriesTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
18
19
  name: _propTypes.string,
19
20
  title: _propTypes.string,
20
21
  usage: _propTypes.any,
@@ -25,4 +26,5 @@ const consumptionCategoriesTypes = exports.consumptionCategoriesTypes = (0, _pro
25
26
  kWh: _propTypes.number,
26
27
  name: _propTypes.string
27
28
  }))
28
- }));
29
+ }));
30
+ exports.consumptionCategoriesTypes = consumptionCategoriesTypes;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.metaPropTypes = exports.inputPropTypes = exports.fieldType = void 0;
7
7
  var _propTypes = require("prop-types");
8
- const inputPropTypes = exports.inputPropTypes = (0, _propTypes.shape)({
8
+ var inputPropTypes = (0, _propTypes.shape)({
9
9
  name: _propTypes.string,
10
10
  onBlur: _propTypes.func,
11
11
  onChange: _propTypes.func,
@@ -14,7 +14,8 @@ const inputPropTypes = exports.inputPropTypes = (0, _propTypes.shape)({
14
14
  onFocus: _propTypes.func,
15
15
  value: (0, _propTypes.oneOfType)([_propTypes.array, _propTypes.bool, _propTypes.number, _propTypes.object, _propTypes.string])
16
16
  });
17
- const metaPropTypes = exports.metaPropTypes = (0, _propTypes.shape)({
17
+ exports.inputPropTypes = inputPropTypes;
18
+ var metaPropTypes = (0, _propTypes.shape)({
18
19
  active: _propTypes.bool,
19
20
  asyncValidating: _propTypes.bool,
20
21
  autofilled: _propTypes.bool,
@@ -30,7 +31,8 @@ const metaPropTypes = exports.metaPropTypes = (0, _propTypes.shape)({
30
31
  valid: _propTypes.bool,
31
32
  visited: _propTypes.bool
32
33
  });
33
- const fieldType = exports.fieldType = (0, _propTypes.shape)({
34
+ exports.metaPropTypes = metaPropTypes;
35
+ var fieldType = (0, _propTypes.shape)({
34
36
  id: _propTypes.number,
35
37
  type: _propTypes.string,
36
38
  order: _propTypes.number,
@@ -71,4 +73,5 @@ const fieldType = exports.fieldType = (0, _propTypes.shape)({
71
73
  editable: _propTypes.bool,
72
74
  linked_default_value_key: _propTypes.string,
73
75
  external_field_options: _propTypes.bool
74
- });
76
+ });
77
+ exports.fieldType = fieldType;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.columnsType = void 0;
7
7
  var _propTypes = require("prop-types");
8
- const columnsType = exports.columnsType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
8
+ var columnsType = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
9
9
  key: _propTypes.string.isRequired,
10
10
  label: _propTypes.string,
11
11
  headerRender: _propTypes.node,
@@ -13,4 +13,5 @@ const columnsType = exports.columnsType = (0, _propTypes.arrayOf)((0, _propTypes
13
13
  sortable: _propTypes.bool,
14
14
  sortKey: _propTypes.string,
15
15
  align: _propTypes.string
16
- }));
16
+ }));
17
+ exports.columnsType = columnsType;
@@ -4,15 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.withImportant = exports.mergeClasses = void 0;
7
- const mergeClasses = (themeClasses, classNames) => {
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ var mergeClasses = function mergeClasses(themeClasses, classNames) {
8
14
  if (!classNames) return themeClasses;
9
- const classes = {};
10
- const allClassNames = [...Object.keys(classNames), ...Object.keys(themeClasses)];
11
- allClassNames.forEach(name => {
15
+ var classes = {};
16
+ var allClassNames = [].concat(_toConsumableArray(Object.keys(classNames)), _toConsumableArray(Object.keys(themeClasses)));
17
+ allClassNames.forEach(function (name) {
12
18
  classes[name] = "".concat(themeClasses[name] || '', " ").concat(classNames[name] || '').trim();
13
19
  });
14
20
  return classes;
15
21
  };
16
22
  exports.mergeClasses = mergeClasses;
17
- const withImportant = style => style && "".concat(style, " !important");
23
+ var withImportant = function withImportant(style) {
24
+ return style && "".concat(style, " !important");
25
+ };
18
26
  exports.withImportant = withImportant;
@@ -4,17 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- const A_CHAR_CODE = 65;
8
- const Z_CHAR_CODE = 90;
9
- const getFirstLetter = userName => (userName === null || userName === void 0 ? void 0 : userName.trim().slice(0, 1).toUpperCase()) || 'A';
10
- const getAvatarColors = (userName, colors) => {
11
- const hashIndex = (userName === null || userName === void 0 ? void 0 : userName.split('').reduce((acum, _letter, index) => {
12
- const letterCode = userName.toUpperCase().charCodeAt(index);
7
+ var A_CHAR_CODE = 65;
8
+ var Z_CHAR_CODE = 90;
9
+ var getFirstLetter = function getFirstLetter(userName) {
10
+ return (userName === null || userName === void 0 ? void 0 : userName.trim().slice(0, 1).toUpperCase()) || 'A';
11
+ };
12
+ var getAvatarColors = function getAvatarColors(userName, colors) {
13
+ var hashIndex = (userName === null || userName === void 0 ? void 0 : userName.split('').reduce(function (acum, _letter, index) {
14
+ var letterCode = userName.toUpperCase().charCodeAt(index);
13
15
  return letterCode >= A_CHAR_CODE && letterCode <= Z_CHAR_CODE ? acum + letterCode - A_CHAR_CODE + 1 : acum;
14
16
  }, 0)) || 0;
15
17
  return colors[hashIndex % colors.length];
16
18
  };
17
- var _default = exports.default = {
18
- getFirstLetter,
19
- getAvatarColors
20
- };
19
+ var _default = {
20
+ getFirstLetter: getFirstLetter,
21
+ getAvatarColors: getAvatarColors
22
+ };
23
+ exports.default = _default;
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.throttle = void 0;
7
- const throttle = (func, limit) => {
8
- let inThrottle;
7
+ var throttle = function throttle(func, limit) {
8
+ var inThrottle;
9
9
  return function throttled() {
10
- const context = this;
10
+ var context = this;
11
11
  if (!inThrottle) {
12
12
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13
13
  args[_key] = arguments[_key];
14
14
  }
15
15
  func.apply(context, args);
16
16
  inThrottle = true;
17
- setTimeout(() => {
17
+ setTimeout(function () {
18
18
  inThrottle = false;
19
19
  }, limit);
20
20
  }
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getShadow = void 0;
7
- const defaultOrientation = 'bottom';
8
- const defaultLevel = 1;
9
- const levels = {
7
+ var defaultOrientation = 'bottom';
8
+ var defaultLevel = 1;
9
+ var levels = {
10
10
  1: 6,
11
11
  2: 12,
12
12
  3: 24
13
13
  };
14
- const orientations = {
14
+ var orientations = {
15
15
  bottom: {
16
16
  1: 3,
17
17
  2: 6,
@@ -28,15 +28,13 @@ const orientations = {
28
28
  3: -24
29
29
  }
30
30
  };
31
- const getShadow = _ref => {
32
- let {
33
- color,
34
- level,
35
- orientation
36
- } = _ref;
37
- const shadowLevel = levels[level] || levels[defaultLevel];
38
- const shadowOrientation = orientations[orientation] || orientations[defaultOrientation];
39
- const shadowOrientationLevel = shadowOrientation[level] || shadowOrientation[defaultLevel];
31
+ var getShadow = function getShadow(_ref) {
32
+ var color = _ref.color,
33
+ level = _ref.level,
34
+ orientation = _ref.orientation;
35
+ var shadowLevel = levels[level] || levels[defaultLevel];
36
+ var shadowOrientation = orientations[orientation] || orientations[defaultOrientation];
37
+ var shadowOrientationLevel = shadowOrientation[level] || shadowOrientation[defaultLevel];
40
38
  return "0 ".concat(shadowOrientationLevel, "px ").concat(shadowLevel, "px 0 ").concat(color);
41
39
  };
42
40
  exports.getShadow = getShadow;
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useScreenSize = void 0;
7
7
  var _energyHooks = require("@widergy/energy-hooks");
8
- const useScreenSize = exports.useScreenSize = (0, _energyHooks.createUseScreenSize)({
8
+ var useScreenSize = (0, _energyHooks.createUseScreenSize)({
9
9
  mobileBP: 767,
10
10
  tabletBP: 1024
11
- });
11
+ });
12
+ exports.useScreenSize = useScreenSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",