@widergy/energy-ui 1.136.0 → 1.136.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 (256) hide show
  1. package/dist/components/EnergyThemeProvider/index.js +13 -36
  2. package/dist/components/Loading/constants.js +1 -2
  3. package/dist/components/Loading/index.js +13 -12
  4. package/dist/components/Loading/theme.js +9 -11
  5. package/dist/components/UTAlert/AlertHandler.js +75 -101
  6. package/dist/components/UTAlert/index.js +65 -87
  7. package/dist/components/UTAlert/theme.js +29 -31
  8. package/dist/components/UTAttachment/components/Preview/index.js +8 -9
  9. package/dist/components/UTAttachment/constants.js +7 -13
  10. package/dist/components/UTAttachment/index.js +153 -232
  11. package/dist/components/UTAttachment/layout.js +25 -26
  12. package/dist/components/UTAttachment/theme.js +12 -14
  13. package/dist/components/UTAttachment/utils.js +34 -117
  14. package/dist/components/UTAutocomplete/components/ListBox/index.js +13 -21
  15. package/dist/components/UTAutocomplete/components/ListBox/utils.js +9 -11
  16. package/dist/components/UTAutocomplete/constants.js +12 -23
  17. package/dist/components/UTAutocomplete/index.js +45 -66
  18. package/dist/components/UTAutocomplete/theme.js +3 -3
  19. package/dist/components/UTAvatar/constants.js +2 -3
  20. package/dist/components/UTAvatar/index.js +15 -12
  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 +21 -22
  24. package/dist/components/UTBarChart/components/Bars/constants.js +3 -6
  25. package/dist/components/UTBarChart/components/Bars/index.js +70 -80
  26. package/dist/components/UTBarChart/components/Legend/constants.js +12 -18
  27. package/dist/components/UTBarChart/components/Legend/index.js +73 -91
  28. package/dist/components/UTBarChart/components/Legend/utils.js +1 -5
  29. package/dist/components/UTBarChart/components/Levels/index.js +16 -14
  30. package/dist/components/UTBarChart/components/Levels/utils.js +25 -27
  31. package/dist/components/UTBarChart/components/LinearPlot/constants.js +3 -5
  32. package/dist/components/UTBarChart/components/LinearPlot/index.js +25 -20
  33. package/dist/components/UTBarChart/components/LinearPlot/utils.js +37 -39
  34. package/dist/components/UTBarChart/components/Pagination/constants.js +1 -2
  35. package/dist/components/UTBarChart/components/Pagination/index.js +20 -24
  36. package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +21 -32
  37. package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -4
  38. package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +20 -19
  39. package/dist/components/UTBarChart/components/XAxis/constants.js +1 -2
  40. package/dist/components/UTBarChart/components/XAxis/index.js +54 -65
  41. package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +12 -11
  42. package/dist/components/UTBarChart/components/YAxis/constants.js +1 -2
  43. package/dist/components/UTBarChart/components/YAxis/index.js +24 -31
  44. package/dist/components/UTBarChart/components/YAxis/utils.js +4 -6
  45. package/dist/components/UTBarChart/constants.js +4 -8
  46. package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +23 -40
  47. package/dist/components/UTBarChart/index.js +148 -162
  48. package/dist/components/UTBarChart/theme.js +102 -104
  49. package/dist/components/UTBarChart/types.js +9 -17
  50. package/dist/components/UTBarChart/utils.js +107 -111
  51. package/dist/components/UTBreadcrumbs/constants.js +3 -6
  52. package/dist/components/UTBreadcrumbs/index.js +79 -106
  53. package/dist/components/UTBreadcrumbs/theme.js +21 -23
  54. package/dist/components/UTButton/index.js +48 -71
  55. package/dist/components/UTButton/theme.js +172 -174
  56. package/dist/components/UTCBUInput/index.js +36 -40
  57. package/dist/components/UTCBUInput/theme.js +5 -7
  58. package/dist/components/UTCaptcha/index.js +19 -45
  59. package/dist/components/UTCard/components/UTCardFooter/index.js +16 -17
  60. package/dist/components/UTCard/index.js +87 -122
  61. package/dist/components/UTCard/theme.js +8 -11
  62. package/dist/components/UTCard/types.js +2 -3
  63. package/dist/components/UTCarousel/components/Button/index.js +13 -13
  64. package/dist/components/UTCarousel/components/Legend/index.js +14 -16
  65. package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +16 -16
  66. package/dist/components/UTCarousel/components/Slider/constants.js +5 -10
  67. package/dist/components/UTCarousel/components/Slider/index.js +181 -252
  68. package/dist/components/UTCarousel/components/Slider/layout.js +66 -93
  69. package/dist/components/UTCarousel/index.js +14 -15
  70. package/dist/components/UTCarousel/theme.js +35 -37
  71. package/dist/components/UTCheckList/constants.js +1 -2
  72. package/dist/components/UTCheckList/index.js +72 -91
  73. package/dist/components/UTCheckList/theme.js +66 -70
  74. package/dist/components/UTCheckbox/constants.js +3 -6
  75. package/dist/components/UTCheckbox/index.js +31 -42
  76. package/dist/components/UTCheckbox/theme.js +49 -53
  77. package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
  78. package/dist/components/UTConsumptionBar/constants.js +3 -6
  79. package/dist/components/UTConsumptionBar/index.js +49 -74
  80. package/dist/components/UTCuit/index.js +109 -133
  81. package/dist/components/UTCuit/theme.js +47 -49
  82. package/dist/components/UTDatePicker/components/Day/constants.js +1 -2
  83. package/dist/components/UTDatePicker/components/Day/index.js +12 -12
  84. package/dist/components/UTDatePicker/constants.js +20 -31
  85. package/dist/components/UTDatePicker/index.js +59 -101
  86. package/dist/components/UTDatePicker/theme.js +173 -177
  87. package/dist/components/UTDatePicker/types.js +2 -3
  88. package/dist/components/UTDatePicker/utils.js +2 -6
  89. package/dist/components/UTDialog/components/ActionButton/index.js +10 -9
  90. package/dist/components/UTDialog/constants.js +2 -4
  91. package/dist/components/UTDialog/index.js +39 -38
  92. package/dist/components/UTDialog/theme.js +93 -95
  93. package/dist/components/UTDialog/types.js +2 -3
  94. package/dist/components/UTDotMenu/index.js +33 -57
  95. package/dist/components/UTEmojiPicker/constants.js +6 -11
  96. package/dist/components/UTEmojiPicker/index.js +45 -65
  97. package/dist/components/UTEmojiPicker/theme.js +1 -1
  98. package/dist/components/UTEmojiPicker/utils.js +21 -51
  99. package/dist/components/UTExternalLink/index.js +17 -14
  100. package/dist/components/UTFileInput/constants.js +2 -4
  101. package/dist/components/UTFileInput/index.js +7 -31
  102. package/dist/components/UTFileInput/layout.js +67 -96
  103. package/dist/components/UTIconButton/index.js +49 -72
  104. package/dist/components/UTIconButton/theme.js +53 -55
  105. package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +53 -58
  106. package/dist/components/UTImageRadio/constants.js +3 -6
  107. package/dist/components/UTImageRadio/index.js +39 -47
  108. package/dist/components/UTImageRadio/theme.js +8 -11
  109. package/dist/components/UTImageRadio/types.js +2 -3
  110. package/dist/components/UTImageRadio/utils.js +2 -6
  111. package/dist/components/UTLabel/index.js +69 -90
  112. package/dist/components/UTLabel/theme.js +84 -86
  113. package/dist/components/UTList/index.js +15 -18
  114. package/dist/components/UTLoading/index.js +15 -15
  115. package/dist/components/UTMap/components/GoogleMaps/constants.js +8 -11
  116. package/dist/components/UTMap/components/GoogleMaps/index.js +63 -91
  117. package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -3
  118. package/dist/components/UTMap/constants.js +6 -12
  119. package/dist/components/UTMap/index.js +163 -198
  120. package/dist/components/UTMap/types.js +4 -6
  121. package/dist/components/UTMap/utils.js +29 -46
  122. package/dist/components/UTMap/withGoogleMapScript.js +12 -17
  123. package/dist/components/UTMenu/index.js +52 -69
  124. package/dist/components/UTMenu/theme.js +2 -2
  125. package/dist/components/UTMenu/utils.js +5 -11
  126. package/dist/components/UTPagination/theme.js +4 -2
  127. package/dist/components/UTPanel/index.js +38 -44
  128. package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +14 -11
  129. package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +24 -21
  130. package/dist/components/UTPasswordField/components/PasswordValidations/index.js +63 -50
  131. package/dist/components/UTPasswordField/components/PasswordWarning/index.js +26 -27
  132. package/dist/components/UTPasswordField/index.js +26 -23
  133. package/dist/components/UTPasswordField/theme.js +37 -39
  134. package/dist/components/UTPhoneInput/constants.js +3 -6
  135. package/dist/components/UTPhoneInput/index.js +180 -205
  136. package/dist/components/UTPhoneInput/theme.js +109 -113
  137. package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -8
  138. package/dist/components/UTPieChart/components/ArrowLabel/index.js +24 -23
  139. package/dist/components/UTPieChart/components/Legend/contants.js +3 -6
  140. package/dist/components/UTPieChart/components/Legend/index.js +27 -24
  141. package/dist/components/UTPieChart/constants.js +13 -26
  142. package/dist/components/UTPieChart/hooks/use-animated-value/index.js +15 -33
  143. package/dist/components/UTPieChart/index.js +73 -76
  144. package/dist/components/UTPieChart/theme.js +23 -25
  145. package/dist/components/UTPieChart/utils.js +4 -2
  146. package/dist/components/UTProgressBar/constants.js +2 -4
  147. package/dist/components/UTProgressBar/index.js +12 -11
  148. package/dist/components/UTProgressBar/theme.js +25 -27
  149. package/dist/components/UTProgressBar/types.js +2 -3
  150. package/dist/components/UTRadioGroup/index.js +45 -71
  151. package/dist/components/UTRadioGroup/theme.js +82 -86
  152. package/dist/components/UTRating/components/Circle/index.js +41 -56
  153. package/dist/components/UTRating/components/Faces/constants.js +2 -4
  154. package/dist/components/UTRating/components/Faces/index.js +34 -36
  155. package/dist/components/UTRating/components/Star/index.js +36 -40
  156. package/dist/components/UTRating/constants.js +4 -8
  157. package/dist/components/UTRating/index.js +31 -46
  158. package/dist/components/UTRating/theme.js +77 -79
  159. package/dist/components/UTRipple/Ripple.js +22 -39
  160. package/dist/components/UTRipple/index.js +18 -37
  161. package/dist/components/UTSelect/components/Option/index.js +13 -13
  162. package/dist/components/UTSelect/constants.js +4 -8
  163. package/dist/components/UTSelect/index.js +61 -81
  164. package/dist/components/UTSelect/stylesJS.js +2 -3
  165. package/dist/components/UTSelect/theme.js +43 -45
  166. package/dist/components/UTSelect/utils.js +3 -13
  167. package/dist/components/UTSidebar/components/ListOption/index.js +32 -47
  168. package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +8 -8
  169. package/dist/components/UTSidebar/components/LogosContainer/index.js +14 -14
  170. package/dist/components/UTSidebar/components/Option/constants.js +2 -3
  171. package/dist/components/UTSidebar/components/Option/index.js +28 -32
  172. package/dist/components/UTSidebar/components/Toggler/index.js +11 -11
  173. package/dist/components/UTSidebar/index.js +42 -53
  174. package/dist/components/UTSidebar/theme.js +1 -1
  175. package/dist/components/UTSidebar/types.js +5 -10
  176. package/dist/components/UTSkeleton/index.js +10 -36
  177. package/dist/components/UTSwitch/constants.js +3 -6
  178. package/dist/components/UTSwitch/index.js +42 -57
  179. package/dist/components/UTSwitch/theme.js +115 -117
  180. package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
  181. package/dist/components/UTTable/components/ActionIcons/index.js +44 -81
  182. package/dist/components/UTTable/components/Cell/index.js +18 -23
  183. package/dist/components/UTTable/components/HeaderCell/constants.js +2 -3
  184. package/dist/components/UTTable/components/HeaderCell/index.js +23 -30
  185. package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
  186. package/dist/components/UTTable/components/PrimaryAction/index.js +12 -11
  187. package/dist/components/UTTable/components/ResponsiveCell/index.js +19 -20
  188. package/dist/components/UTTable/components/Status/index.js +18 -19
  189. package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +10 -9
  190. package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +7 -13
  191. package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +12 -12
  192. package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +21 -32
  193. package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +8 -14
  194. package/dist/components/UTTable/components/TableFooter/constants.js +1 -2
  195. package/dist/components/UTTable/components/TableFooter/index.js +15 -15
  196. package/dist/components/UTTable/components/TableHeader/index.js +11 -11
  197. package/dist/components/UTTable/components/TableRow/constants.js +3 -6
  198. package/dist/components/UTTable/components/TableRow/index.js +79 -94
  199. package/dist/components/UTTable/constants.js +26 -43
  200. package/dist/components/UTTable/hook.js +11 -26
  201. package/dist/components/UTTable/index.js +125 -213
  202. package/dist/components/UTTable/theme.js +13 -16
  203. package/dist/components/UTTable/types.js +4 -8
  204. package/dist/components/UTTable/utils.js +70 -74
  205. package/dist/components/UTTabs/components/TooltipTab/index.js +20 -30
  206. package/dist/components/UTTabs/constants.js +4 -8
  207. package/dist/components/UTTabs/index.js +55 -84
  208. package/dist/components/UTTabs/theme.js +112 -114
  209. package/dist/components/UTTabs/utils.js +1 -1
  210. package/dist/components/UTTextArea/constants.js +4 -6
  211. package/dist/components/UTTextArea/index.js +40 -24
  212. package/dist/components/UTTextArea/styles.module.scss +20 -1
  213. package/dist/components/UTTextArea/theme.js +1 -1
  214. package/dist/components/UTTextInput/constants.js +2 -3
  215. package/dist/components/UTTextInput/index.js +116 -146
  216. package/dist/components/UTTextInput/theme.js +28 -30
  217. package/dist/components/UTThirdPartyCookieChecker/index.js +17 -21
  218. package/dist/components/UTToggle/components/ToggleOption/index.js +16 -17
  219. package/dist/components/UTToggle/index.js +25 -26
  220. package/dist/components/UTToggle/theme.js +47 -49
  221. package/dist/components/UTTooltip/index.js +23 -30
  222. package/dist/components/UTTooltip/theme.js +1 -1
  223. package/dist/components/UTTopbar/theme.js +4 -2
  224. package/dist/components/UTTouchableWithoutFeedback/index.js +14 -27
  225. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -4
  226. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +34 -31
  227. package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
  228. package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +6 -12
  229. package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +8 -18
  230. package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +23 -47
  231. package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +31 -34
  232. package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +81 -93
  233. package/dist/components/UTVirtualizedList/constants.js +4 -8
  234. package/dist/components/UTVirtualizedList/index.js +26 -38
  235. package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +11 -11
  236. package/dist/components/UTWorkflowContainer/constants.js +5 -9
  237. package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
  238. package/dist/components/UTWorkflowContainer/index.js +31 -50
  239. package/dist/components/UTWorkflowContainer/theme.js +70 -64
  240. package/dist/components/UTWorkflowContainer/types.js +2 -3
  241. package/dist/components/WithLoading/index.js +10 -15
  242. package/dist/components/WithTheme/index.js +10 -17
  243. package/dist/components/WithTheme/layout.js +18 -41
  244. package/dist/components/WithTouch/index.js +12 -19
  245. package/dist/index.js +54 -54
  246. package/dist/scss/variables/colors.module.scss +1 -0
  247. package/dist/theme.js +5 -3
  248. package/dist/types/commonTypes.js +3 -5
  249. package/dist/types/consumptionTypes.js +3 -5
  250. package/dist/types/formTypes.js +4 -7
  251. package/dist/types/tableTypes.js +2 -3
  252. package/dist/utils/classesUtils.js +4 -10
  253. package/dist/utils/componentUtils.js +10 -13
  254. package/dist/utils/helperFunctions.js +4 -4
  255. package/dist/utils/useScreenSize.js +2 -3
  256. package/package.json +1 -1
@@ -5,28 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.retrieveStyle = void 0;
7
7
  var _seamlessImmutable = require("seamless-immutable");
8
- var retrieveStyle = function retrieveStyle(theme) {
9
- return {
10
- item: {
11
- borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'borderRadius']),
12
- color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'color']),
13
- fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontFamily']),
14
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontSize']),
15
- fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontWeight']),
16
- lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'lineHeight']),
17
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'padding'], '4px 8px'),
18
- '&:hover': {
19
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'hover', 'backgroundColor'])
20
- }
21
- },
22
- separator: {
23
- color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'color']),
24
- fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontFamily']),
25
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontSize']),
26
- fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontWeight']),
27
- lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'lineHeight']),
28
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'padding'], '4px 16px')
8
+ const retrieveStyle = theme => ({
9
+ item: {
10
+ borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'borderRadius']),
11
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'color']),
12
+ fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontFamily']),
13
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontSize']),
14
+ fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'fontWeight']),
15
+ lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'lineHeight']),
16
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'padding'], '4px 8px'),
17
+ '&:hover': {
18
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'item', 'hover', 'backgroundColor'])
29
19
  }
30
- };
31
- };
20
+ },
21
+ separator: {
22
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'color']),
23
+ fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontFamily']),
24
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontSize']),
25
+ fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'fontWeight']),
26
+ lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'lineHeight']),
27
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTBreadcrumbs', 'separator', 'padding'], '4px 16px')
28
+ }
29
+ });
32
30
  exports.retrieveStyle = retrieveStyle;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -12,75 +11,54 @@ var _CircularProgress = _interopRequireDefault(require("@material-ui/core/Circul
12
11
  var _WithTheme = _interopRequireDefault(require("../WithTheme"));
13
12
  var _theme = require("./theme");
14
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- var UTButton = /*#__PURE__*/function (_PureComponent) {
30
- _inherits(UTButton, _PureComponent);
31
- var _super = _createSuper(UTButton);
32
- function UTButton() {
33
- _classCallCheck(this, UTButton);
34
- return _super.apply(this, arguments);
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ class UTButton extends _react.PureComponent {
17
+ render() {
18
+ const {
19
+ text,
20
+ fab,
21
+ outlined,
22
+ extendedFab,
23
+ type,
24
+ onPress,
25
+ disabled,
26
+ loading,
27
+ small,
28
+ large,
29
+ lowercase,
30
+ uppercase,
31
+ classes,
32
+ className,
33
+ children,
34
+ autoFocus,
35
+ style,
36
+ secondary,
37
+ alternative,
38
+ gray
39
+ } = this.props;
40
+ const size = small ? 'small' : large ? 'large' : 'medium';
41
+ return /*#__PURE__*/_react.default.createElement(_Button.default, {
42
+ type: type,
43
+ size: size,
44
+ autoFocus: autoFocus,
45
+ style: style,
46
+ variant: text ? 'text' : fab ? 'fab' : extendedFab ? 'extendedFab' : outlined ? 'outlined' : 'contained',
47
+ disabled: disabled || loading,
48
+ onClick: onPress,
49
+ classes: {
50
+ root: "".concat(small ? classes.small : large && classes.large, " ").concat(uppercase ? classes.uppercase : lowercase && classes.lowercase, " ").concat(className),
51
+ label: classes.labelFullWidth,
52
+ contained: "".concat(classes.base, " ").concat(secondary && classes.secondary, " ").concat(alternative && classes.alternative, " ").concat(gray && classes.gray),
53
+ text: "".concat(classes.baseText, " ").concat(secondary && classes.secondaryText, " ").concat(alternative && classes.alternativeText, " ").concat(gray && classes.grayText),
54
+ outlined: "".concat(classes.baseOutlined, " ").concat(secondary && classes.secondaryOutlined, " ").concat(alternative && classes.alternativeOutlined, " ").concat(gray && classes.grayOutlined)
55
+ }
56
+ }, children, loading && /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
57
+ size: 24,
58
+ className: classes["loading".concat(outlined ? 'Outlined' : text ? 'Text' : '')]
59
+ }));
35
60
  }
36
- _createClass(UTButton, [{
37
- key: "render",
38
- value: function render() {
39
- var _this$props = this.props,
40
- text = _this$props.text,
41
- fab = _this$props.fab,
42
- outlined = _this$props.outlined,
43
- extendedFab = _this$props.extendedFab,
44
- type = _this$props.type,
45
- onPress = _this$props.onPress,
46
- disabled = _this$props.disabled,
47
- loading = _this$props.loading,
48
- small = _this$props.small,
49
- large = _this$props.large,
50
- lowercase = _this$props.lowercase,
51
- uppercase = _this$props.uppercase,
52
- classes = _this$props.classes,
53
- className = _this$props.className,
54
- children = _this$props.children,
55
- autoFocus = _this$props.autoFocus,
56
- style = _this$props.style,
57
- secondary = _this$props.secondary,
58
- alternative = _this$props.alternative,
59
- gray = _this$props.gray;
60
- var size = small ? 'small' : large ? 'large' : 'medium';
61
- return /*#__PURE__*/_react.default.createElement(_Button.default, {
62
- type: type,
63
- size: size,
64
- autoFocus: autoFocus,
65
- style: style,
66
- variant: text ? 'text' : fab ? 'fab' : extendedFab ? 'extendedFab' : outlined ? 'outlined' : 'contained',
67
- disabled: disabled || loading,
68
- onClick: onPress,
69
- classes: {
70
- root: "".concat(small ? classes.small : large && classes.large, " ").concat(uppercase ? classes.uppercase : lowercase && classes.lowercase, " ").concat(className),
71
- label: classes.labelFullWidth,
72
- contained: "".concat(classes.base, " ").concat(secondary && classes.secondary, " ").concat(alternative && classes.alternative, " ").concat(gray && classes.gray),
73
- text: "".concat(classes.baseText, " ").concat(secondary && classes.secondaryText, " ").concat(alternative && classes.alternativeText, " ").concat(gray && classes.grayText),
74
- outlined: "".concat(classes.baseOutlined, " ").concat(secondary && classes.secondaryOutlined, " ").concat(alternative && classes.alternativeOutlined, " ").concat(gray && classes.grayOutlined)
75
- }
76
- }, children, loading && /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
77
- size: 24,
78
- className: classes["loading".concat(outlined ? 'Outlined' : text ? 'Text' : '')]
79
- }));
80
- }
81
- }]);
82
- return UTButton;
83
- }(_react.PureComponent);
61
+ }
84
62
  UTButton.propTypes = {
85
63
  text: _propTypes.bool,
86
64
  small: _propTypes.bool,
@@ -101,5 +79,4 @@ UTButton.propTypes = {
101
79
  classes: (0, _propTypes.objectOf)(_propTypes.string),
102
80
  className: _propTypes.string
103
81
  };
104
- var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
105
- exports.default = _default;
82
+ var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTButton);
@@ -7,181 +7,179 @@ exports.retrieveStyle = void 0;
7
7
  var _seamlessImmutable = require("seamless-immutable");
8
8
  var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var retrieveStyle = function retrieveStyle(theme) {
11
- return {
12
- base: {
13
- textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'textTransform'], 'none'),
14
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'backgroundColor']),
15
- borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'borderRadius']),
16
- boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'boxShadow']),
17
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'color']),
18
- fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
19
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
20
- fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontWeight']),
21
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'padding']),
22
- '&:hover': {
23
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'backgroundColor']),
24
- boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'boxShadow'])
25
- },
26
- '&:disabled': {
27
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'backgroundColor']),
28
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'color']),
29
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'padding'])
30
- }
31
- },
32
- baseText: {
33
- textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'textTransform'], 'none'),
34
- backgroundColor: _colorsModule.default.transparent,
35
- borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'borderRadius']),
36
- boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'boxShadow']),
37
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'color']),
38
- fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
39
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
40
- fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontWeight']),
41
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'padding']),
42
- '&:hover': {
43
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'backgroundColor']),
44
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'color'])
45
- },
46
- '&:disabled': {
47
- backgroundColor: _colorsModule.default.transparent,
48
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'borderColor']),
49
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'color']),
50
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'padding'])
51
- }
52
- },
53
- baseOutlined: {
54
- textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'textTransform'], 'none'),
55
- backgroundColor: _colorsModule.default.transparent,
56
- border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'border']),
57
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderColor']),
58
- borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderRadius']),
59
- boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'boxShadow']),
60
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'color']),
61
- fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
62
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
63
- fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontWeight']),
64
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'padding']),
65
- '&:hover': {
66
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'backgroundColor']),
67
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'color'])
68
- },
69
- '&:disabled': {
70
- backgroundColor: _colorsModule.default.transparent,
71
- border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'border']),
72
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'borderColor']),
73
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'color']),
74
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'padding'])
75
- }
76
- },
77
- secondary: {
78
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'backgroundColor']),
79
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'color']),
80
- '&:hover': {
81
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'hover', 'backgroundColor'])
82
- },
83
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'padding'])
84
- },
85
- secondaryText: {
86
- backgroundColor: _colorsModule.default.transparent,
87
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'color']),
88
- '&:hover': {
89
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'hover', 'backgroundColor'])
90
- },
91
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'padding'])
92
- },
93
- secondaryOutlined: {
94
- backgroundColor: _colorsModule.default.transparent,
95
- border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'border']),
96
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'borderColor']),
97
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'color']),
98
- '&:hover': {
99
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'hover', 'backgroundColor'])
100
- },
101
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'padding'])
102
- },
103
- alternative: {
104
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'backgroundColor']),
105
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'color']),
106
- '&:hover': {
107
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'hover', 'backgroundColor'])
108
- },
109
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'padding'])
110
- },
111
- alternativeText: {
112
- backgroundColor: _colorsModule.default.transparent,
113
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'color']),
114
- '&:hover': {
115
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'hover', 'backgroundColor'])
116
- },
117
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'padding'])
118
- },
119
- alternativeOutlined: {
120
- backgroundColor: _colorsModule.default.transparent,
121
- border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'border']),
122
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'borderColor']),
123
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'color']),
124
- '&:hover': {
125
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'hover', 'backgroundColor'])
126
- },
127
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'padding'])
128
- },
129
- gray: {
130
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'backgroundColor']),
131
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'color']),
132
- '&:hover': {
133
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'hover', 'backgroundColor'])
134
- },
135
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'padding'])
136
- },
137
- grayText: {
10
+ const retrieveStyle = theme => ({
11
+ base: {
12
+ textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'textTransform'], 'none'),
13
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'backgroundColor']),
14
+ borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'borderRadius']),
15
+ boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'boxShadow']),
16
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'color']),
17
+ fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
18
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
19
+ fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'fontWeight']),
20
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'padding']),
21
+ '&:hover': {
22
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'backgroundColor']),
23
+ boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'base', 'hover', 'boxShadow'])
24
+ },
25
+ '&:disabled': {
26
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'backgroundColor']),
27
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'color']),
28
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabled', 'padding'])
29
+ }
30
+ },
31
+ baseText: {
32
+ textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'textTransform'], 'none'),
33
+ backgroundColor: _colorsModule.default.transparent,
34
+ borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'borderRadius']),
35
+ boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'boxShadow']),
36
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'color']),
37
+ fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
38
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
39
+ fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'fontWeight']),
40
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'padding']),
41
+ '&:hover': {
42
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'backgroundColor']),
43
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseText', 'hover', 'color'])
44
+ },
45
+ '&:disabled': {
138
46
  backgroundColor: _colorsModule.default.transparent,
139
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'color']),
140
- '&:hover': {
141
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'hover', 'backgroundColor'])
142
- },
143
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'padding'])
144
- },
145
- grayOutlined: {
47
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'borderColor']),
48
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'color']),
49
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledText', 'padding'])
50
+ }
51
+ },
52
+ baseOutlined: {
53
+ textTransform: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'textTransform'], 'none'),
54
+ backgroundColor: _colorsModule.default.transparent,
55
+ border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'border']),
56
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderColor']),
57
+ borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'borderRadius']),
58
+ boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'boxShadow']),
59
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'color']),
60
+ fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
61
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])),
62
+ fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'fontWeight']),
63
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'padding']),
64
+ '&:hover': {
65
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'backgroundColor']),
66
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'baseOutlined', 'hover', 'color'])
67
+ },
68
+ '&:disabled': {
146
69
  backgroundColor: _colorsModule.default.transparent,
147
- border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'border']),
148
- borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'borderColor']),
149
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'color']),
150
- '&:hover': {
151
- backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'hover', 'backgroundColor'])
152
- },
153
- padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'padding'])
154
- },
155
- small: {
156
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'small'])
157
- },
158
- large: {
159
- fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'large'])
160
- },
161
- lowercase: {
162
- textTransform: 'lowercase'
163
- },
164
- uppercase: {
165
- textTransform: 'uppercase'
166
- },
167
- labelFullWidth: {
168
- width: '100%'
169
- },
170
- loading: {
171
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color']),
172
- position: 'absolute',
173
- left: 'calc(50% - 12px)'
174
- },
175
- loadingText: {
176
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingText', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
177
- position: 'absolute',
178
- left: 'calc(50% - 12px)'
179
- },
180
- loadingOutlined: {
181
- color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingOutlined', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
182
- position: 'absolute',
183
- left: 'calc(50% - 12px)'
70
+ border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'border']),
71
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'borderColor']),
72
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'color']),
73
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'disabledOutlined', 'padding'])
184
74
  }
185
- };
186
- };
75
+ },
76
+ secondary: {
77
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'backgroundColor']),
78
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'color']),
79
+ '&:hover': {
80
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'hover', 'backgroundColor'])
81
+ },
82
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondary', 'padding'])
83
+ },
84
+ secondaryText: {
85
+ backgroundColor: _colorsModule.default.transparent,
86
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'color']),
87
+ '&:hover': {
88
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'hover', 'backgroundColor'])
89
+ },
90
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryText', 'padding'])
91
+ },
92
+ secondaryOutlined: {
93
+ backgroundColor: _colorsModule.default.transparent,
94
+ border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'border']),
95
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'borderColor']),
96
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'color']),
97
+ '&:hover': {
98
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'hover', 'backgroundColor'])
99
+ },
100
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'secondaryOutlined', 'padding'])
101
+ },
102
+ alternative: {
103
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'backgroundColor']),
104
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'color']),
105
+ '&:hover': {
106
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'hover', 'backgroundColor'])
107
+ },
108
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternative', 'padding'])
109
+ },
110
+ alternativeText: {
111
+ backgroundColor: _colorsModule.default.transparent,
112
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'color']),
113
+ '&:hover': {
114
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'hover', 'backgroundColor'])
115
+ },
116
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeText', 'padding'])
117
+ },
118
+ alternativeOutlined: {
119
+ backgroundColor: _colorsModule.default.transparent,
120
+ border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'border']),
121
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'borderColor']),
122
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'color']),
123
+ '&:hover': {
124
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'hover', 'backgroundColor'])
125
+ },
126
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'alternativeOutlined', 'padding'])
127
+ },
128
+ gray: {
129
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'backgroundColor']),
130
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'color']),
131
+ '&:hover': {
132
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'hover', 'backgroundColor'])
133
+ },
134
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'gray', 'padding'])
135
+ },
136
+ grayText: {
137
+ backgroundColor: _colorsModule.default.transparent,
138
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'color']),
139
+ '&:hover': {
140
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'hover', 'backgroundColor'])
141
+ },
142
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayText', 'padding'])
143
+ },
144
+ grayOutlined: {
145
+ backgroundColor: _colorsModule.default.transparent,
146
+ border: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'border']),
147
+ borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'borderColor']),
148
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'color']),
149
+ '&:hover': {
150
+ backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'hover', 'backgroundColor'])
151
+ },
152
+ padding: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'grayOutlined', 'padding'])
153
+ },
154
+ small: {
155
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'small'])
156
+ },
157
+ large: {
158
+ fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'large'])
159
+ },
160
+ lowercase: {
161
+ textTransform: 'lowercase'
162
+ },
163
+ uppercase: {
164
+ textTransform: 'uppercase'
165
+ },
166
+ labelFullWidth: {
167
+ width: '100%'
168
+ },
169
+ loading: {
170
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color']),
171
+ position: 'absolute',
172
+ left: 'calc(50% - 12px)'
173
+ },
174
+ loadingText: {
175
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingText', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
176
+ position: 'absolute',
177
+ left: 'calc(50% - 12px)'
178
+ },
179
+ loadingOutlined: {
180
+ color: (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loadingOutlined', 'color'], (0, _seamlessImmutable.getIn)(theme, ['UTButton', 'loading', 'color'])),
181
+ position: 'absolute',
182
+ left: 'calc(50% - 12px)'
183
+ }
184
+ });
187
185
  exports.retrieveStyle = retrieveStyle;