@widergy/energy-ui 1.134.2 → 2.0.0

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 (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/Loading/index.js +1 -2
  3. package/dist/components/Loading/styles.module.scss +1 -1
  4. package/dist/components/Loading/theme.js +2 -1
  5. package/dist/components/UTAlert/theme.js +3 -2
  6. package/dist/components/UTAttachment/layout.js +9 -7
  7. package/dist/components/UTAttachment/styles.module.scss +0 -1
  8. package/dist/components/UTAttachment/theme.js +2 -1
  9. package/dist/components/UTAutocomplete/theme.js +8 -6
  10. package/dist/components/UTAvatar/index.js +21 -8
  11. package/dist/components/UTBarChart/components/Legend/index.js +24 -20
  12. package/dist/components/UTBarChart/components/Pagination/index.js +26 -20
  13. package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +1 -1
  14. package/dist/components/UTBarChart/components/YAxis/index.js +1 -1
  15. package/dist/components/UTBarChart/index.js +7 -4
  16. package/dist/components/UTBarChart/theme.js +10 -7
  17. package/dist/components/UTBarChart/types.js +2 -2
  18. package/dist/components/UTBreadcrumbs/index.js +14 -8
  19. package/dist/components/UTBreadcrumbs/styles.module.scss +0 -6
  20. package/dist/components/UTBreadcrumbs/theme.js +2 -13
  21. package/dist/components/UTButton/README.md +35 -0
  22. package/dist/components/UTButton/constants.js +42 -0
  23. package/dist/components/UTButton/index.js +63 -83
  24. package/dist/components/UTButton/styles.module.scss +36 -0
  25. package/dist/components/UTButton/theme.js +143 -158
  26. package/dist/components/UTCBUInput/theme.js +2 -1
  27. package/dist/components/UTCard/components/UTCardFooter/index.js +5 -6
  28. package/dist/components/UTCard/index.js +23 -29
  29. package/dist/components/UTCard/theme.js +2 -1
  30. package/dist/components/UTCarousel/components/Button/index.js +1 -1
  31. package/dist/components/UTCarousel/components/Legend/index.js +1 -4
  32. package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +2 -5
  33. package/dist/components/UTCarousel/components/Slider/index.js +45 -18
  34. package/dist/components/UTCarousel/components/Slider/layout.js +13 -12
  35. package/dist/components/UTCarousel/theme.js +2 -1
  36. package/dist/components/UTCheckList/index.js +11 -9
  37. package/dist/components/UTCheckList/theme.js +8 -3
  38. package/dist/components/UTCheckbox/index.js +34 -28
  39. package/dist/components/UTCheckbox/theme.js +11 -3
  40. package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +7 -8
  41. package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/styles.module.scss +1 -2
  42. package/dist/components/UTConsumptionBar/index.js +22 -13
  43. package/dist/components/UTConsumptionBar/styles.module.scss +0 -14
  44. package/dist/components/UTCuit/index.js +2 -2
  45. package/dist/components/UTCuit/theme.js +1 -1
  46. package/dist/components/UTDatePicker/index.js +29 -27
  47. package/dist/components/UTDatePicker/theme.js +22 -7
  48. package/dist/components/UTDialog/index.js +19 -23
  49. package/dist/components/UTDialog/theme.js +8 -23
  50. package/dist/components/UTDialog/types.js +5 -6
  51. package/dist/components/UTDotMenu/index.js +16 -8
  52. package/dist/components/UTEmojiPicker/theme.js +2 -1
  53. package/dist/components/UTFileInput/layout.js +5 -4
  54. package/dist/components/UTFileInput/styles.module.scss +0 -1
  55. package/dist/components/UTIconButton/theme.js +2 -1
  56. package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +2 -2
  57. package/dist/components/UTImageRadio/index.js +2 -1
  58. package/dist/components/UTImageRadio/theme.js +15 -12
  59. package/dist/components/UTLabel/README.md +169 -0
  60. package/dist/components/UTLabel/constants.js +91 -0
  61. package/dist/components/UTLabel/index.js +41 -104
  62. package/dist/components/UTLabel/theme.js +29 -84
  63. package/dist/components/UTMap/index.js +7 -7
  64. package/dist/components/UTMap/styles.module.scss +0 -5
  65. package/dist/components/UTMenu/theme.js +3 -2
  66. package/dist/components/UTPanel/index.js +11 -10
  67. package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +4 -3
  68. package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/styles.module.scss +2 -2
  69. package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +16 -16
  70. package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/styles.module.scss +2 -2
  71. package/dist/components/UTPasswordField/components/PasswordValidations/index.js +11 -9
  72. package/dist/components/UTPasswordField/components/PasswordWarning/index.js +3 -3
  73. package/dist/components/UTPasswordField/components/PasswordWarning/styles.module.scss +1 -1
  74. package/dist/components/UTPasswordField/theme.js +13 -27
  75. package/dist/components/UTPhoneInput/index.js +4 -4
  76. package/dist/components/UTPhoneInput/theme.js +3 -6
  77. package/dist/components/UTPieChart/theme.js +2 -1
  78. package/dist/components/UTProgressBar/index.js +27 -20
  79. package/dist/components/UTProgressBar/theme.js +14 -13
  80. package/dist/components/UTRadioGroup/index.js +35 -22
  81. package/dist/components/UTRadioGroup/theme.js +10 -6
  82. package/dist/components/UTRating/components/Star/index.js +2 -1
  83. package/dist/components/UTRating/index.js +3 -1
  84. package/dist/components/UTRating/theme.js +3 -2
  85. package/dist/components/UTSelect/index.js +13 -3
  86. package/dist/components/UTSelect/styles.module.scss +5 -0
  87. package/dist/components/UTSelect/theme.js +7 -2
  88. package/dist/components/UTSidebar/theme.js +6 -5
  89. package/dist/components/UTSkeleton/index.js +3 -2
  90. package/dist/components/UTSwitch/index.js +2 -1
  91. package/dist/components/UTSwitch/theme.js +2 -1
  92. package/dist/components/UTTable/components/TableHeader/index.js +11 -7
  93. package/dist/components/UTTable/theme.js +31 -29
  94. package/dist/components/UTTabs/index.js +25 -20
  95. package/dist/components/UTTabs/theme.js +2 -1
  96. package/dist/components/UTTextArea/index.js +2 -1
  97. package/dist/components/UTTextArea/theme.js +2 -1
  98. package/dist/components/UTTextInput/index.js +16 -8
  99. package/dist/components/UTTextInput/styles.module.scss +3 -2
  100. package/dist/components/UTTextInput/theme.js +3 -2
  101. package/dist/components/UTToggle/components/ToggleOption/index.js +1 -0
  102. package/dist/components/UTToggle/theme.js +2 -1
  103. package/dist/components/UTTooltip/index.js +6 -4
  104. package/dist/components/UTTooltip/styles.module.scss +4 -2
  105. package/dist/components/UTTooltip/theme.js +2 -1
  106. package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +12 -4
  107. package/dist/components/UTWorkflowContainer/index.js +19 -15
  108. package/dist/components/UTWorkflowContainer/styles.module.scss +0 -34
  109. package/dist/components/UTWorkflowContainer/theme.js +12 -58
  110. package/dist/components/UTWorkflowContainer/types.js +1 -1
  111. package/dist/components/WithTheme/layout.js +46 -42
  112. package/dist/scss/variables/_colors.scss +8 -0
  113. package/dist/theme.js +4 -1
  114. package/dist/types/formTypes.js +3 -3
  115. package/dist/utils/classesUtils.js +7 -3
  116. package/dist/utils/shadowUtils.js +40 -0
  117. package/package.json +5 -3
  118. package/dist/components/UTDialog/components/ActionButton/index.js +0 -35
  119. package/dist/components/UTLabel/styles.module.scss +0 -3
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.retrieveStyle = void 0;
7
7
  var _seamlessImmutable = require("seamless-immutable");
8
8
  var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
9
+ var _classesUtils = require("../../utils/classesUtils");
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
14
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
- var retrieveStyle = function retrieveStyle(theme) {
15
- var _responsiveCell;
15
+ var retrieveStyle = function retrieveStyle(_ref) {
16
+ var _theme$UTTable, _theme$UTTable$header, _theme$UTTable2, _theme$UTTable2$heade, _theme$Fonts, _theme$UTTable3, _theme$UTTable3$heade, _theme$UTTable4, _theme$UTTable4$heade, _theme$UTTable5, _theme$UTTable5$heade, _theme$Fonts2, _theme$UTTable6, _theme$UTTable6$heade, _theme$UTTable7, _theme$UTTable7$table, _theme$UTTable8, _theme$UTTable8$table, _theme$UTTable9, _theme$UTTable9$table, _theme$UTTable10, _theme$UTTable10$tabl, _theme$UTTable11, _theme$UTTable11$resp, _theme$UTTable12, _theme$UTTable12$resp, _responsiveCell, _theme$UTTable13, _theme$UTTable13$rowC, _theme$UTTable14, _theme$UTTable14$tabl, _theme$UTTable15, _theme$UTTable15$tabl, _theme$UTTable16, _theme$UTTable16$tabl, _theme$UTTable17, _theme$UTTable17$tabl, _theme$UTTable18, _theme$UTTable18$tabl, _theme$UTTable19, _theme$UTTable19$tabl, _theme$UTTable20, _theme$UTTable20$tabl, _theme$UTTable21, _theme$UTTable21$tabl, _theme$UTTable22, _theme$UTTable22$tabl, _theme$Fonts3, _theme$UTTable23, _theme$UTTable23$tabl, _theme$UTTable24, _theme$UTTable24$noRe, _theme$UTTable25, _theme$UTTable25$noRe, _theme$Fonts4, _theme$UTTable26, _theme$UTTable26$noRe, _theme$UTTable27, _theme$UTTable27$chec, _theme$UTTable27$chec2;
17
+ var theme = _ref.theme;
16
18
  var tabletMobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'tabletMobile']);
17
19
  return {
18
20
  table: {
@@ -53,15 +55,15 @@ var retrieveStyle = function retrieveStyle(theme) {
53
55
  }
54
56
  },
55
57
  headerCellCategoryName: {
56
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellCategoryName', 'color']), " !important"),
57
- fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellCategoryName', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'small'])), " !important"),
58
- fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellCategoryName', 'fontWeight']), " !important"),
58
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable = theme.UTTable) === null || _theme$UTTable === void 0 ? void 0 : (_theme$UTTable$header = _theme$UTTable.headerCellCategoryName) === null || _theme$UTTable$header === void 0 ? void 0 : _theme$UTTable$header.color),
59
+ fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTTable2 = theme.UTTable) === null || _theme$UTTable2 === void 0 ? void 0 : (_theme$UTTable2$heade = _theme$UTTable2.headerCellCategoryName) === null || _theme$UTTable2$heade === void 0 ? void 0 : _theme$UTTable2$heade.fontSize) || (theme === null || theme === void 0 ? void 0 : (_theme$Fonts = theme.Fonts) === null || _theme$Fonts === void 0 ? void 0 : _theme$Fonts.small)),
60
+ fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable3 = theme.UTTable) === null || _theme$UTTable3 === void 0 ? void 0 : (_theme$UTTable3$heade = _theme$UTTable3.headerCellCategoryName) === null || _theme$UTTable3$heade === void 0 ? void 0 : _theme$UTTable3$heade.fontWeight),
59
61
  marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellCategoryName', 'marginBottom'], 5)
60
62
  },
61
63
  headerCellUnit: {
62
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellUnit', 'color']), " !important"),
63
- fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellUnit', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])), " !important"),
64
- fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellUnit', 'fontWeight'], 400), " !important")
64
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable4 = theme.UTTable) === null || _theme$UTTable4 === void 0 ? void 0 : (_theme$UTTable4$heade = _theme$UTTable4.headerCellUnit) === null || _theme$UTTable4$heade === void 0 ? void 0 : _theme$UTTable4$heade.color),
65
+ fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTTable5 = theme.UTTable) === null || _theme$UTTable5 === void 0 ? void 0 : (_theme$UTTable5$heade = _theme$UTTable5.headerCellUnit) === null || _theme$UTTable5$heade === void 0 ? void 0 : _theme$UTTable5$heade.fontSize) || (theme === null || theme === void 0 ? void 0 : (_theme$Fonts2 = theme.Fonts) === null || _theme$Fonts2 === void 0 ? void 0 : _theme$Fonts2.medium)),
66
+ fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable6 = theme.UTTable) === null || _theme$UTTable6 === void 0 ? void 0 : (_theme$UTTable6$heade = _theme$UTTable6.headerCellUnit) === null || _theme$UTTable6$heade === void 0 ? void 0 : _theme$UTTable6$heade.fontWeight)
65
67
  },
66
68
  orderIcon: {
67
69
  color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'orderIcon', 'color'])
@@ -107,12 +109,12 @@ var retrieveStyle = function retrieveStyle(theme) {
107
109
  borderStyle: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'borderStyle'], 'solid')
108
110
  },
109
111
  firstRow: {
110
- borderTopLeftRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important"),
111
- borderTopRightRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
112
+ borderTopLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable7 = theme.UTTable) === null || _theme$UTTable7 === void 0 ? void 0 : (_theme$UTTable7$table = _theme$UTTable7.table) === null || _theme$UTTable7$table === void 0 ? void 0 : _theme$UTTable7$table.borderRadius),
113
+ borderTopRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable8 = theme.UTTable) === null || _theme$UTTable8 === void 0 ? void 0 : (_theme$UTTable8$table = _theme$UTTable8.table) === null || _theme$UTTable8$table === void 0 ? void 0 : _theme$UTTable8$table.borderRadius)
112
114
  },
113
115
  lastRow: {
114
- borderBottomRightRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important"),
115
- borderBottomLeftRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
116
+ borderBottomRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable9 = theme.UTTable) === null || _theme$UTTable9 === void 0 ? void 0 : (_theme$UTTable9$table = _theme$UTTable9.table) === null || _theme$UTTable9$table === void 0 ? void 0 : _theme$UTTable9$table.borderRadius),
117
+ borderBottomLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable10 = theme.UTTable) === null || _theme$UTTable10 === void 0 ? void 0 : (_theme$UTTable10$tabl = _theme$UTTable10.table) === null || _theme$UTTable10$tabl === void 0 ? void 0 : _theme$UTTable10$tabl.borderRadius)
116
118
  },
117
119
  rowCell: {
118
120
  color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'color']),
@@ -130,8 +132,8 @@ var retrieveStyle = function retrieveStyle(theme) {
130
132
  fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'tabletMobile', 'fontSize']),
131
133
  fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'tabletMobile', 'fontWeight'])
132
134
  }), _defineProperty(_responsiveCell, '&:first-child', {
133
- borderTopLeftRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'responsiveRow', 'borderRadius']), " !important"),
134
- borderTopRightRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'responsiveRow', 'borderRadius']), " !important")
135
+ borderTopLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable11 = theme.UTTable) === null || _theme$UTTable11 === void 0 ? void 0 : (_theme$UTTable11$resp = _theme$UTTable11.responsiveRow) === null || _theme$UTTable11$resp === void 0 ? void 0 : _theme$UTTable11$resp.borderRadius),
136
+ borderTopRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable12 = theme.UTTable) === null || _theme$UTTable12 === void 0 ? void 0 : (_theme$UTTable12$resp = _theme$UTTable12.responsiveRow) === null || _theme$UTTable12$resp === void 0 ? void 0 : _theme$UTTable12$resp.borderRadius)
135
137
  }), _responsiveCell),
136
138
  lastCellContainer: {
137
139
  borderBottomRightRadius: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'responsiveRow', 'borderRadius']),
@@ -171,7 +173,7 @@ var retrieveStyle = function retrieveStyle(theme) {
171
173
  fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'actionCell', 'fontWeight']),
172
174
  borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'borderColor']),
173
175
  borderStyle: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'borderStyle'], 'solid'),
174
- borderWidth: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'borderWidth'], '1px !important')
176
+ borderWidth: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTTable13 = theme.UTTable) === null || _theme$UTTable13 === void 0 ? void 0 : (_theme$UTTable13$rowC = _theme$UTTable13.rowCell) === null || _theme$UTTable13$rowC === void 0 ? void 0 : _theme$UTTable13$rowC.borderWidth) || '1px')
175
177
  },
176
178
  categoryNameCell: {
177
179
  backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'categoryNameCell', 'backgroundColor'], _colors.default.white),
@@ -179,10 +181,10 @@ var retrieveStyle = function retrieveStyle(theme) {
179
181
  fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'categoryNameCell', 'fontWeight'])
180
182
  },
181
183
  firstFixedRowLeft: {
182
- borderTopLeftRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
184
+ borderTopLeftRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 ? void 0 : (_theme$UTTable14 = theme.UTTable) === null || _theme$UTTable14 === void 0 ? void 0 : (_theme$UTTable14$tabl = _theme$UTTable14.table) === null || _theme$UTTable14$tabl === void 0 ? void 0 : _theme$UTTable14$tabl.borderRadius, "px"))
183
185
  },
184
186
  lastFixedRowLeft: {
185
- borderBottomLeftRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
187
+ borderBottomLeftRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 ? void 0 : (_theme$UTTable15 = theme.UTTable) === null || _theme$UTTable15 === void 0 ? void 0 : (_theme$UTTable15$tabl = _theme$UTTable15.table) === null || _theme$UTTable15$tabl === void 0 ? void 0 : _theme$UTTable15$tabl.borderRadius, "px"))
186
188
  },
187
189
  fixedRowLeft: {
188
190
  backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowLeft', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'backgroundColor'], _colors.default.white)),
@@ -197,10 +199,10 @@ var retrieveStyle = function retrieveStyle(theme) {
197
199
  boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowLeft', 'boxShadow'])
198
200
  },
199
201
  firstFixedRowRight: {
200
- borderTopRightRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
202
+ borderTopRightRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 ? void 0 : (_theme$UTTable16 = theme.UTTable) === null || _theme$UTTable16 === void 0 ? void 0 : (_theme$UTTable16$tabl = _theme$UTTable16.table) === null || _theme$UTTable16$tabl === void 0 ? void 0 : _theme$UTTable16$tabl.borderRadius, "px"))
201
203
  },
202
204
  lastFixedRowRight: {
203
- borderBottomRightRadius: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'table', 'borderRadius']), "px !important")
205
+ borderTopRightRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 ? void 0 : (_theme$UTTable17 = theme.UTTable) === null || _theme$UTTable17 === void 0 ? void 0 : (_theme$UTTable17$tabl = _theme$UTTable17.table) === null || _theme$UTTable17$tabl === void 0 ? void 0 : _theme$UTTable17$tabl.borderRadius, "px"))
204
206
  },
205
207
  fixedRowRight: {
206
208
  backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowRight', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'backgroundColor'], _colors.default.white)),
@@ -291,17 +293,17 @@ var retrieveStyle = function retrieveStyle(theme) {
291
293
  pointerEvents: 'none'
292
294
  },
293
295
  tableTitle: {
294
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'color']), " !important"),
295
- fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'xlarge'])), " !important"),
296
- fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'fontWeight'], 500), " !important")
296
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable18 = theme.UTTable) === null || _theme$UTTable18 === void 0 ? void 0 : (_theme$UTTable18$tabl = _theme$UTTable18.tableTitle) === null || _theme$UTTable18$tabl === void 0 ? void 0 : _theme$UTTable18$tabl.color),
297
+ fontSize: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable19 = theme.UTTable) === null || _theme$UTTable19 === void 0 ? void 0 : (_theme$UTTable19$tabl = _theme$UTTable19.tableTitle) === null || _theme$UTTable19$tabl === void 0 ? void 0 : _theme$UTTable19$tabl.fontSize),
298
+ fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable20 = theme.UTTable) === null || _theme$UTTable20 === void 0 ? void 0 : (_theme$UTTable20$tabl = _theme$UTTable20.tableTitle) === null || _theme$UTTable20$tabl === void 0 ? void 0 : _theme$UTTable20$tabl.fontWeight)
297
299
  },
298
300
  headerContainer: {
299
301
  margin: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerContainer', 'margin'])
300
302
  },
301
303
  totalRowsLabel: {
302
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'color']), " !important"),
303
- fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])), " !important"),
304
- fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'tableTitle', 'fontWeight']), " !important")
304
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable21 = theme.UTTable) === null || _theme$UTTable21 === void 0 ? void 0 : (_theme$UTTable21$tabl = _theme$UTTable21.tableTitle) === null || _theme$UTTable21$tabl === void 0 ? void 0 : _theme$UTTable21$tabl.color),
305
+ fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTTable22 = theme.UTTable) === null || _theme$UTTable22 === void 0 ? void 0 : (_theme$UTTable22$tabl = _theme$UTTable22.tableTitle) === null || _theme$UTTable22$tabl === void 0 ? void 0 : _theme$UTTable22$tabl.fontSize) || (theme === null || theme === void 0 ? void 0 : (_theme$Fonts3 = theme.Fonts) === null || _theme$Fonts3 === void 0 ? void 0 : _theme$Fonts3.medium)),
306
+ fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable23 = theme.UTTable) === null || _theme$UTTable23 === void 0 ? void 0 : (_theme$UTTable23$tabl = _theme$UTTable23.tableTitle) === null || _theme$UTTable23$tabl === void 0 ? void 0 : _theme$UTTable23$tabl.fontWeight)
305
307
  },
306
308
  pageSizeSelect: {
307
309
  fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
@@ -324,15 +326,15 @@ var retrieveStyle = function retrieveStyle(theme) {
324
326
  height: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'noResultsContainer', 'height'], 200)
325
327
  },
326
328
  noResultsLabel: {
327
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'noResultsLabel', 'color']), " !important"),
328
- fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'noResultsLabel', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'])), " !important"),
329
- fontWeight: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'noResultsLabel', 'fontWeight']), " !important")
329
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable24 = theme.UTTable) === null || _theme$UTTable24 === void 0 ? void 0 : (_theme$UTTable24$noRe = _theme$UTTable24.noResultsLabel) === null || _theme$UTTable24$noRe === void 0 ? void 0 : _theme$UTTable24$noRe.color),
330
+ fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTTable25 = theme.UTTable) === null || _theme$UTTable25 === void 0 ? void 0 : (_theme$UTTable25$noRe = _theme$UTTable25.noResultsLabel) === null || _theme$UTTable25$noRe === void 0 ? void 0 : _theme$UTTable25$noRe.fontSize) || (theme === null || theme === void 0 ? void 0 : (_theme$Fonts4 = theme.Fonts) === null || _theme$Fonts4 === void 0 ? void 0 : _theme$Fonts4.medium)),
331
+ fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable26 = theme.UTTable) === null || _theme$UTTable26 === void 0 ? void 0 : (_theme$UTTable26$noRe = _theme$UTTable26.noResultsLabel) === null || _theme$UTTable26$noRe === void 0 ? void 0 : _theme$UTTable26$noRe.fontWeight)
330
332
  },
331
333
  checkBoxRoot: {
332
334
  color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'checkbox', 'root', 'color'])
333
335
  },
334
336
  checkboxColorChecked: {
335
- color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTTable', 'checkbox', 'selected', 'color']), " !important")
337
+ color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 ? void 0 : (_theme$UTTable27 = theme.UTTable) === null || _theme$UTTable27 === void 0 ? void 0 : (_theme$UTTable27$chec = _theme$UTTable27.checkbox) === null || _theme$UTTable27$chec === void 0 ? void 0 : (_theme$UTTable27$chec2 = _theme$UTTable27$chec.selected) === null || _theme$UTTable27$chec2 === void 0 ? void 0 : _theme$UTTable27$chec2.color)
336
338
  },
337
339
  tableLoading: {
338
340
  backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'checkbox', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'header', 'backgroundColor'], _colors.default.white))
@@ -10,6 +10,7 @@ var _Tab = _interopRequireDefault(require("@material-ui/core/Tab"));
10
10
  var _propTypes = require("prop-types");
11
11
  var _array = require("@widergy/web-utils/lib/array");
12
12
  var _WithTheme = _interopRequireDefault(require("../WithTheme"));
13
+ var _classesUtils = require("../../utils/classesUtils");
13
14
  var _TooltipTab = _interopRequireDefault(require("./components/TooltipTab"));
14
15
  var _constants = require("./constants");
15
16
  var _utils = require("./utils");
@@ -52,13 +53,15 @@ var UTTabs = /*#__PURE__*/function (_PureComponent) {
52
53
  key: "render",
53
54
  value: function render() {
54
55
  var _this$props = this.props,
55
- classes = _this$props.classes,
56
- variant = _this$props.variant,
56
+ badges = _this$props.badges,
57
+ themeClasses = _this$props.classes,
58
+ classNames = _this$props.classNames,
59
+ options = _this$props.options,
57
60
  tabProps = _this$props.tabProps,
58
61
  tabsProps = _this$props.tabsProps,
59
62
  tabTooltipProps = _this$props.tabTooltipProps,
60
- options = _this$props.options,
61
- badges = _this$props.badges;
63
+ variant = _this$props.variant;
64
+ var classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
62
65
  var styles = (0, _utils.retrieveClassNamesFromVariants)(variant, classes);
63
66
  return /*#__PURE__*/_react.default.createElement(_Tabs.default, _extends({
64
67
  value: this.props.value,
@@ -104,15 +107,18 @@ var UTTabs = /*#__PURE__*/function (_PureComponent) {
104
107
  return UTTabs;
105
108
  }(_react.PureComponent);
106
109
  UTTabs.defaultProps = {
110
+ badges: [],
107
111
  classes: {},
108
- variant: _constants.DEFAULT_VARIANT,
109
- tabsProps: _constants.DEFAULT_TABS_PROPS,
112
+ classNames: {},
110
113
  options: [],
111
- badges: []
114
+ variant: _constants.DEFAULT_VARIANT,
115
+ tabsProps: _constants.DEFAULT_TABS_PROPS
112
116
  };
113
117
  UTTabs.propTypes = {
114
- value: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.number]),
115
- onChange: _propTypes.func.isRequired,
118
+ badges: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
119
+ show: _propTypes.bool,
120
+ styles: _propTypes.string
121
+ })),
116
122
  classes: (0, _propTypes.shape)({
117
123
  tabsRoot: _propTypes.string,
118
124
  tabRoot: _propTypes.string,
@@ -121,23 +127,22 @@ UTTabs.propTypes = {
121
127
  textColorPrimary: _propTypes.string,
122
128
  label: _propTypes.string
123
129
  }),
124
- variant: _propTypes.string,
125
- tabProps: _propTypes.object,
126
- tabTooltipProps: _propTypes.object,
127
- tabsProps: (0, _propTypes.shape)({
128
- variant: _propTypes.string,
129
- orientation: _propTypes.string
130
- }),
130
+ classNames: (0, _propTypes.objectOf)(_propTypes.string),
131
+ onChange: _propTypes.func.isRequired,
131
132
  options: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
132
133
  label: _propTypes.string,
133
134
  disabled: _propTypes.bool,
134
135
  icon: (0, _propTypes.oneOfType)([_propTypes.node, _propTypes.elementType, _propTypes.string]),
135
136
  tooltip: (0, _propTypes.oneOfType)([_propTypes.bool, _propTypes.string])
136
137
  })),
137
- badges: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
138
- show: _propTypes.bool,
139
- styles: _propTypes.string
140
- }))
138
+ variant: _propTypes.string,
139
+ tabProps: _propTypes.object,
140
+ tabsProps: (0, _propTypes.shape)({
141
+ variant: _propTypes.string,
142
+ orientation: _propTypes.string
143
+ }),
144
+ tabTooltipProps: _propTypes.object,
145
+ value: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.number])
141
146
  };
142
147
  var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTTabs);
143
148
  exports.default = _default;
@@ -7,7 +7,8 @@ exports.retrieveStyle = void 0;
7
7
  var _seamlessImmutable = require("seamless-immutable");
8
8
  var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var retrieveStyle = function retrieveStyle(theme) {
10
+ var retrieveStyle = function retrieveStyle(_ref) {
11
+ var theme = _ref.theme;
11
12
  return {
12
13
  baseTabsRoot: {
13
14
  border: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabsRoot', 'border'], 0),
@@ -41,7 +41,8 @@ var UTTextArea = function UTTextArea(_ref) {
41
41
  }, /*#__PURE__*/_react.default.createElement("div", {
42
42
  className: _stylesModule.default.titleContainer
43
43
  }, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
44
- className: "".concat(label, " ").concat(_stylesModule.default.label)
44
+ className: "".concat(label, " ").concat(_stylesModule.default.label),
45
+ withMarkdown: true
45
46
  }, title)), /*#__PURE__*/_react.default.createElement("div", {
46
47
  className: _stylesModule.default.textAreaContainer
47
48
  }, /*#__PURE__*/_react.default.createElement("textarea", _extends({}, inputProps, {
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.retrieveStyle = void 0;
7
7
  var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var retrieveStyle = function retrieveStyle(theme) {
9
+ var retrieveStyle = function retrieveStyle(_ref) {
10
10
  var _theme$UTTextArea, _theme$UTTextArea$tex, _theme$UTTextArea2, _theme$UTTextArea2$te, _theme$UTTextArea3, _theme$UTTextArea3$te, _theme$UTTextArea4, _theme$UTTextArea4$te, _theme$Fonts, _theme$UTTextArea5, _theme$UTTextArea5$te, _theme$Fonts2, _theme$UTTextArea6, _theme$UTTextArea6$te, _theme$UTTextArea7, _theme$UTTextArea7$te, _theme$UTTextArea8, _theme$UTTextArea8$te, _theme$UTTextArea9, _theme$UTTextArea9$te, _theme$UTTextArea10, _theme$UTTextArea10$t, _theme$UTTextArea10$t2, _theme$UTTextArea11, _theme$UTTextArea11$t, _theme$UTTextArea11$t2, _theme$UTTextArea12, _theme$UTTextArea12$t, _theme$UTTextArea12$t2, _theme$UTTextArea13, _theme$UTTextArea13$t, _theme$UTTextArea13$t2, _theme$UTTextArea14, _theme$UTTextArea14$t, _theme$UTTextArea14$t2, _theme$UTTextArea15, _theme$UTTextArea15$t, _theme$UTTextArea15$t2, _theme$UTTextArea16, _theme$UTTextArea16$t, _theme$UTTextArea16$t2, _theme$UTTextArea17, _theme$UTTextArea17$t, _theme$UTTextArea17$t2, _theme$UTTextArea18, _theme$UTTextArea18$t, _theme$UTTextArea18$t2, _theme$UTTextArea19, _theme$UTTextArea19$t, _theme$UTTextArea19$t2, _theme$UTTextArea20, _theme$UTTextArea20$i;
11
+ var theme = _ref.theme;
11
12
  return {
12
13
  textarea: {
13
14
  background: theme === null || theme === void 0 ? void 0 : (_theme$UTTextArea = theme.UTTextArea) === null || _theme$UTTextArea === void 0 ? void 0 : (_theme$UTTextArea$tex = _theme$UTTextArea.textarea) === null || _theme$UTTextArea$tex === void 0 ? void 0 : _theme$UTTextArea$tex.background,
@@ -10,12 +10,12 @@ var _Visibility = _interopRequireDefault(require("@material-ui/icons/Visibility"
10
10
  var _VisibilityOff = _interopRequireDefault(require("@material-ui/icons/VisibilityOff"));
11
11
  var _HelpOutline = _interopRequireDefault(require("@material-ui/icons/HelpOutline"));
12
12
  var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
13
- var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
14
13
  var _InputAdornment = _interopRequireDefault(require("@material-ui/core/InputAdornment"));
15
14
  var _form = require("@widergy/web-utils/lib/form");
16
15
  var _WithTheme = _interopRequireDefault(require("../WithTheme"));
17
16
  var _UTTooltip = _interopRequireDefault(require("../UTTooltip"));
18
17
  var _formTypes = require("../../types/formTypes");
18
+ var _UTButton = _interopRequireDefault(require("../UTButton"));
19
19
  var _UTLabel = _interopRequireDefault(require("../UTLabel"));
20
20
  var _constants = require("./constants");
21
21
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
@@ -117,10 +117,13 @@ var UTTextInput = /*#__PURE__*/function (_PureComponent) {
117
117
  Component = others.Component,
118
118
  muiTheme = others.muiTheme,
119
119
  textFieldPropsToForward = _objectWithoutProperties(others, _excluded2);
120
- var endAction = type === _constants.INPUT_TYPES.PASSWORD ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
121
- onClick: this.handleClickShowPassword
122
- }, !this.state.visible ? /*#__PURE__*/_react.default.createElement(PasswordInvisibleIcon, null) : /*#__PURE__*/_react.default.createElement(PasswordVisibleIcon, null)) : adornment;
120
+ var endAction = type === _constants.INPUT_TYPES.PASSWORD ? /*#__PURE__*/_react.default.createElement(_UTButton.default, {
121
+ Icon: this.state.visible ? PasswordVisibleIcon : PasswordInvisibleIcon,
122
+ onClick: this.handleClickShowPassword,
123
+ variant: "text"
124
+ }) : adornment;
123
125
  var value = inputObjectKey ? input.value[inputObjectKey] : input.value;
126
+ var errorMessage = (0, _form.shouldShowErrors)(meta) && meta.error || captionLabel || '';
124
127
  var TextInput = /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
125
128
  id: id || '',
126
129
  placeholder: placeholder,
@@ -132,9 +135,14 @@ var UTTextInput = /*#__PURE__*/function (_PureComponent) {
132
135
  }), /*#__PURE__*/_react.default.createElement("div", null, label)) : label,
133
136
  onKeyPress: preventEnterSubmit ? preventDefault : undefined,
134
137
  error: (0, _form.shouldShowErrors)(meta),
135
- helperText: /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
136
- className: _stylesModule.default.error
137
- }, (0, _form.shouldShowErrors)(meta) && meta.error || captionLabel || ''),
138
+ FormHelperTextProps: {
139
+ component: 'div'
140
+ },
141
+ helperText: errorMessage ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
142
+ className: _stylesModule.default.errorLabel,
143
+ colorTheme: "error",
144
+ variant: "small"
145
+ }, errorMessage) : undefined,
138
146
  disabled: disabled,
139
147
  onChange: handleChange,
140
148
  value: value,
@@ -145,7 +153,7 @@ var UTTextInput = /*#__PURE__*/function (_PureComponent) {
145
153
  InputProps: {
146
154
  endAdornment: endAction && /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
147
155
  position: "end",
148
- className: adornmentInside && _stylesModule.default.adornmentInside
156
+ className: "".concat(adornmentInside && _stylesModule.default.adornmentInside)
149
157
  }, endAction),
150
158
  type: type === _constants.INPUT_TYPES.PASSWORD ? !this.state.visible ? _constants.INPUT_TYPES.PASSWORD : _constants.INPUT_TYPES.TEXT : type || _constants.INPUT_TYPES.TEXT,
151
159
  classes: {
@@ -36,6 +36,7 @@
36
36
  margin-bottom: -4px;
37
37
  }
38
38
 
39
- .error {
40
- color: inherit;
39
+ .errorLabel {
40
+ margin-top: 4px;
41
+ text-align: left;
41
42
  }
@@ -9,7 +9,8 @@ var _styles = require("@material-ui/core/styles");
9
9
  var _lodash = _interopRequireDefault(require("lodash"));
10
10
  var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var retrieveStyle = function retrieveStyle(theme) {
12
+ var retrieveStyle = function retrieveStyle(_ref) {
13
+ var theme = _ref.theme;
13
14
  return {
14
15
  container: {
15
16
  display: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'container', 'display'], 'flex'),
@@ -122,6 +123,6 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
122
123
  }
123
124
  }
124
125
  };
125
- return (0, _styles.createMuiTheme)(_lodash.default.merge(muiTheme, mui));
126
+ return (0, _styles.createTheme)(_lodash.default.merge(muiTheme, mui));
126
127
  };
127
128
  exports.retrieveMuiTheme = retrieveMuiTheme;
@@ -33,6 +33,7 @@ var ToggleOption = function ToggleOption(_ref) {
33
33
  className: "".concat(classes.option, " ").concat(isSelected && classes.selectedOption, " ").concat(className),
34
34
  keyName: keyName
35
35
  }, Icon ? IconComponent : /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
36
+ variant: "small",
36
37
  className: isSelected ? classes.selectedLabel : classes.unSelectedLabel
37
38
  }, label));
38
39
  };
@@ -7,7 +7,8 @@ exports.retrieveStyle = void 0;
7
7
  var _seamlessImmutable = require("seamless-immutable");
8
8
  var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var retrieveStyle = function retrieveStyle(theme) {
10
+ var retrieveStyle = function retrieveStyle(_ref) {
11
+ var theme = _ref.theme;
11
12
  return {
12
13
  container: {
13
14
  alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTToggle', 'container', 'alignItems'], 'center'),
@@ -54,9 +54,12 @@ var UTTooltip = function UTTooltip(_ref) {
54
54
  className: "".concat(theme.container, " ").concat(forceArrow && _stylesModule.default.arrow),
55
55
  interactive: interactive
56
56
  }, tippyProps, {
57
- content: /*#__PURE__*/_react.default.isValidElement(content) ? content : /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({}, stringContentProps, {
58
- className: "".concat(_stylesModule.default.baseContent, " ").concat(theme.stringContent)
59
- }), content)
57
+ content: /*#__PURE__*/_react.default.isValidElement(content) ? content : /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
58
+ className: "".concat(_stylesModule.default.baseContent, " ").concat(stringContentClassName),
59
+ colorTheme: "light",
60
+ variant: "xsmall",
61
+ withMarkdown: true
62
+ }, stringContentProps), content)
60
63
  }), children);
61
64
  };
62
65
  UTTooltip.propTypes = {
@@ -67,7 +70,6 @@ UTTooltip.propTypes = {
67
70
  duration: (0, _propTypes.arrayOf)(_propTypes.number),
68
71
  forceArrow: _propTypes.bool,
69
72
  hideOnClick: _propTypes.bool,
70
- icon: _propTypes.element,
71
73
  inertia: _propTypes.bool,
72
74
  interactive: _propTypes.bool,
73
75
  placement: _propTypes.string,
@@ -1,9 +1,11 @@
1
1
  @import '../../scss/variables/_colors.scss';
2
2
 
3
3
  .baseContent {
4
- color: $white;
5
- font-size: 13px;
6
4
  text-align: left;
5
+
6
+ & a {
7
+ color: $white;
8
+ }
7
9
  }
8
10
 
9
11
  .arrow {
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.retrieveStyle = void 0;
7
- var retrieveStyle = function retrieveStyle(theme) {
7
+ var retrieveStyle = function retrieveStyle(_ref) {
8
8
  var _theme$UTTooltip, _theme$UTTooltip$cont, _theme$UTTooltip2, _theme$UTTooltip2$con, _theme$UTTooltip3, _theme$UTTooltip3$con, _theme$UTTooltip4, _theme$UTTooltip4$con, _theme$UTTooltip5, _theme$UTTooltip5$arr, _theme$UTTooltip6, _theme$UTTooltip6$str, _theme$UTTooltip7, _theme$UTTooltip7$str, _theme$UTTooltip8, _theme$UTTooltip8$str, _theme$UTTooltip9, _theme$UTTooltip9$str;
9
+ var theme = _ref.theme;
9
10
  return {
10
11
  container: {
11
12
  backgroundColor: theme === null || theme === void 0 ? void 0 : (_theme$UTTooltip = theme.UTTooltip) === null || _theme$UTTooltip === void 0 ? void 0 : (_theme$UTTooltip$cont = _theme$UTTooltip.container) === null || _theme$UTTooltip$cont === void 0 ? void 0 : _theme$UTTooltip$cont.backgroundColor,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -13,7 +12,13 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
13
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
13
  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); }
15
14
  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; }
15
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
16
16
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ 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); }
17
22
  var ActionButton = function ActionButton(_ref) {
18
23
  var _button$buttonProps;
19
24
  var button = _ref.button,
@@ -24,10 +29,13 @@ var ActionButton = function ActionButton(_ref) {
24
29
  return /*#__PURE__*/(0, _react.isValidElement)(button) ? /*#__PURE__*/(0, _react.cloneElement)(button, {
25
30
  className: "".concat(button.props.className, " ").concat(isHidden && _stylesModule.default.hiddenButton)
26
31
  }) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
27
- onPress: button.onPress,
28
- disabled: button.disabled
32
+ disabled: button.disabled,
33
+ hideTextOnResponsive: true,
34
+ onClick: button.onClick
29
35
  }, buttonProps, button.buttonProps, {
30
- className: "\n ".concat(className, "\n ").concat(isHidden && _stylesModule.default.hiddenButton, "\n ").concat(button === null || button === void 0 ? void 0 : (_button$buttonProps = button.buttonProps) === null || _button$buttonProps === void 0 ? void 0 : _button$buttonProps.className, "\n ")
36
+ classNames: _objectSpread({
37
+ root: "\n ".concat(className, "\n ").concat(isHidden && _stylesModule.default.hiddenButton, "\n ").concat(button === null || button === void 0 ? void 0 : (_button$buttonProps = button.buttonProps) === null || _button$buttonProps === void 0 ? void 0 : _button$buttonProps.className, "\n ")
38
+ }, buttonProps.classNames)
31
39
  }), children);
32
40
  };
33
41
  ActionButton.propTypes = {
@@ -84,25 +84,26 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
84
84
  }, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
85
85
  button: backButton,
86
86
  isHidden: currentStep === 1 && !backButton.isVisible || backButton.isHidden,
87
- className: "".concat(classes.backButton, " ").concat(_stylesModule.default.backButton, " ").concat(backButton.disabled && classes.backButtonDisabled),
87
+ className: "".concat(classes.backButton, " ").concat(_stylesModule.default.backButton),
88
88
  buttonProps: {
89
- text: true
89
+ colorTheme: 'primary',
90
+ Icon: (withIcon || smallButtons) && BackIcon,
91
+ iconPlacement: 'left',
92
+ variant: 'semitransparent'
90
93
  }
91
- }, (withIcon || smallButtons) && /*#__PURE__*/_react.default.createElement(BackIcon, {
92
- className: "".concat(_stylesModule.default.icon, " ").concat(!smallButtons && _stylesModule.default.iconMarginRight, " ").concat(classes.buttonIcon)
93
- }), !smallButtons && (backButton.label || _constants.BACK)), !hideStepCounter && actionsPosition === _constants.ACTIONS_POSITIONS.TOP && stepsCount && (StepCounter ? /*#__PURE__*/_react.default.createElement(StepCounter, null) : /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
94
- primary: true,
94
+ }, !smallButtons && (backButton.label || _constants.BACK)), !hideStepCounter && actionsPosition === _constants.ACTIONS_POSITIONS.TOP && stepsCount && (StepCounter ? /*#__PURE__*/_react.default.createElement(StepCounter, null) : /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
95
95
  className: "".concat(_stylesModule.default.stepInfo, " ").concat(classes.stepCounter)
96
96
  }, "".concat(_constants.STEP, " ").concat(visibleStepNumber))), extraActions, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
97
97
  isHidden: nextButton.isHidden,
98
98
  button: nextButton,
99
- className: "".concat(classes.nextButton, " ").concat(_stylesModule.default.nextButton, " ").concat(nextButton.disabled && classes.nextButtonDisabled),
99
+ className: "".concat(classes.nextButton, " ").concat(_stylesModule.default.nextButton),
100
100
  buttonProps: {
101
- outlined: true
101
+ colorTheme: 'primary',
102
+ Icon: (withIcon || smallButtons) && NextIcon,
103
+ iconPlacement: 'right',
104
+ variant: 'outlined'
102
105
  }
103
- }, !smallButtons && (nextButton.label || _constants.NEXT), (withIcon || smallButtons) && /*#__PURE__*/_react.default.createElement(NextIcon, {
104
- className: "".concat(_stylesModule.default.icon, " ").concat(!smallButtons && _stylesModule.default.iconMarginLeft, " ").concat(classes.buttonIcon)
105
- }))), /*#__PURE__*/_react.default.createElement("div", {
106
+ }, !smallButtons && (nextButton.label || _constants.NEXT))), /*#__PURE__*/_react.default.createElement("div", {
106
107
  className: "".concat(_stylesModule.default.workflowContent, " ").concat(classes.content)
107
108
  }, (title || subtitle) && /*#__PURE__*/_react.default.createElement("div", {
108
109
  className: classes.titles
@@ -111,11 +112,14 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
111
112
  }, TitleIcon && /*#__PURE__*/_react.default.createElement(TitleIcon, {
112
113
  className: classes.titleIcon
113
114
  }), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
114
- large: true,
115
- bold: true,
116
- className: "".concat(_stylesModule.default.title, " ").concat(classes.title)
115
+ className: classes.title,
116
+ variant: "title3",
117
+ weight: "bold",
118
+ withMarkdown: true
117
119
  }, title)), subtitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
118
- className: "".concat(_stylesModule.default.subtitle, " ").concat(classes.subtitle)
120
+ className: classes.subtitle,
121
+ variant: "subtitle2",
122
+ withMarkdown: true
119
123
  }, subtitle)), children));
120
124
  };
121
125
  UTWorkflowContainer.propTypes = {
@@ -1,5 +1,3 @@
1
- @import '../../scss/variables/mediaQueries';
2
-
3
1
  .container {
4
2
  display: flex;
5
3
  flex-direction: column;
@@ -23,44 +21,12 @@
23
21
  display: flex;
24
22
  }
25
23
 
26
- .subtitle {
27
- margin-bottom: 10px;
28
- }
29
-
30
- .icon {
31
- height: 20px;
32
- width: auto;
33
- }
34
-
35
- .iconMarginLeft {
36
- margin-left: 5px;
37
- }
38
-
39
- .iconMarginRight {
40
- margin-right: 5px;
41
- }
42
-
43
24
  .backButton {
44
25
  left: 20px;
45
- padding-left: 5px;
46
26
  position: absolute;
47
27
  }
48
28
 
49
29
  .nextButton {
50
- padding-right: 5px;
51
30
  position: absolute;
52
31
  right: 20px;
53
32
  }
54
-
55
- .bottomActions {
56
- .progress {
57
- :first-child {
58
- border-radius: 0;
59
- }
60
- }
61
-
62
- .workflowContent {
63
- order: -1;
64
- overflow-y: auto;
65
- }
66
- }