@dxc-technology/halstack-react 0.0.0-7d25f33 → 0.0.0-7d46b9f

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 (108) hide show
  1. package/dist/ThemeContext.js +130 -98
  2. package/dist/accordion/Accordion.js +80 -83
  3. package/dist/accordion-group/AccordionGroup.js +1 -3
  4. package/dist/alert/Alert.js +123 -108
  5. package/dist/alert/index.d.ts +51 -0
  6. package/dist/badge/Badge.js +3 -1
  7. package/dist/box/Box.js +1 -9
  8. package/dist/button/Button.js +30 -20
  9. package/dist/card/Card.js +15 -8
  10. package/dist/checkbox/Checkbox.js +88 -21
  11. package/dist/chip/Chip.js +37 -49
  12. package/dist/common/variables.js +935 -500
  13. package/dist/date/Date.js +60 -40
  14. package/dist/dialog/Dialog.js +21 -39
  15. package/dist/dropdown/Dropdown.js +129 -83
  16. package/dist/file-input/FileInput.js +644 -0
  17. package/dist/file-input/FileItem.js +280 -0
  18. package/dist/file-input/index.d.ts +81 -0
  19. package/dist/footer/Footer.js +25 -35
  20. package/dist/footer/dxc_logo.svg +15 -0
  21. package/dist/header/Header.js +14 -42
  22. package/dist/header/dxc_logo_black.svg +8 -0
  23. package/dist/heading/Heading.js +1 -5
  24. package/dist/input-text/InputText.js +130 -54
  25. package/dist/layout/ApplicationLayout.js +1 -1
  26. package/dist/link/Link.js +71 -46
  27. package/dist/main.d.ts +7 -0
  28. package/dist/main.js +48 -0
  29. package/dist/new-date/NewDate.js +400 -0
  30. package/dist/new-date/index.d.ts +95 -0
  31. package/dist/new-input-text/NewInputText.js +967 -0
  32. package/dist/new-input-text/index.d.ts +135 -0
  33. package/dist/new-textarea/NewTextarea.js +365 -0
  34. package/dist/new-textarea/index.d.ts +117 -0
  35. package/dist/number/Number.js +136 -0
  36. package/dist/number/NumberContext.js +16 -0
  37. package/dist/number/index.d.ts +113 -0
  38. package/dist/paginator/Paginator.js +10 -4
  39. package/dist/password/Password.js +200 -0
  40. package/dist/password/index.d.ts +94 -0
  41. package/dist/password/styles.css +3 -0
  42. package/dist/progress-bar/ProgressBar.js +63 -27
  43. package/dist/radio/Radio.js +2 -2
  44. package/dist/resultsetTable/ResultsetTable.js +64 -38
  45. package/dist/select/Select.js +207 -148
  46. package/dist/sidenav/Sidenav.js +11 -15
  47. package/dist/slider/Slider.js +109 -57
  48. package/dist/spinner/Spinner.js +226 -59
  49. package/dist/switch/Switch.js +3 -3
  50. package/dist/table/Table.js +19 -5
  51. package/dist/tabs/Tabs.js +4 -8
  52. package/dist/tag/Tag.js +50 -36
  53. package/dist/textarea/Textarea.js +26 -22
  54. package/dist/toggle-group/ToggleGroup.js +25 -43
  55. package/dist/upload/Upload.js +1 -5
  56. package/dist/upload/buttons-upload/ButtonsUpload.js +27 -11
  57. package/dist/upload/dragAndDropArea/DragAndDropArea.js +54 -18
  58. package/dist/upload/file-upload/FileToUpload.js +37 -15
  59. package/dist/upload/files-upload/FilesToUpload.js +3 -3
  60. package/dist/upload/transaction/Transaction.js +39 -16
  61. package/dist/upload/transactions/Transactions.js +24 -8
  62. package/dist/wizard/Wizard.js +84 -56
  63. package/dist/wizard/invalid_icon.svg +4 -5
  64. package/dist/wizard/valid_icon.svg +4 -5
  65. package/package.json +4 -2
  66. package/test/Date.test.js +13 -13
  67. package/test/Dropdown.test.js +15 -0
  68. package/test/FileInput.test.js +201 -0
  69. package/test/Link.test.js +3 -2
  70. package/test/NewDate.test.js +232 -0
  71. package/test/NewInputText.test.js +734 -0
  72. package/test/NewTextarea.test.js +195 -0
  73. package/test/Number.test.js +257 -0
  74. package/test/Paginator.test.js +1 -1
  75. package/test/Password.test.js +83 -0
  76. package/test/ResultsetTable.test.js +1 -2
  77. package/test/Select.test.js +44 -24
  78. package/test/Spinner.test.js +5 -0
  79. package/dist/accordion/Accordion.stories.js +0 -207
  80. package/dist/accordion/readme.md +0 -96
  81. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  82. package/dist/accordion-group/readme.md +0 -70
  83. package/dist/alert/Alert.stories.js +0 -158
  84. package/dist/alert/close.svg +0 -4
  85. package/dist/alert/error.svg +0 -4
  86. package/dist/alert/info.svg +0 -4
  87. package/dist/alert/readme.md +0 -43
  88. package/dist/alert/success.svg +0 -4
  89. package/dist/alert/warning.svg +0 -4
  90. package/dist/button/Button.stories.js +0 -224
  91. package/dist/button/readme.md +0 -93
  92. package/dist/date/calendar.svg +0 -1
  93. package/dist/date/calendar_dark.svg +0 -1
  94. package/dist/dialog/Dialog.stories.js +0 -217
  95. package/dist/dialog/readme.md +0 -32
  96. package/dist/dropdown/Dropdown.stories.js +0 -249
  97. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  98. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  99. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  100. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  101. package/dist/dropdown/readme.md +0 -69
  102. package/dist/footer/dxc_logo_wht.png +0 -0
  103. package/dist/header/dxc_logo_black.png +0 -0
  104. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  105. package/dist/header/dxc_logo_white.png +0 -0
  106. package/dist/select/Select.stories.js +0 -235
  107. package/dist/select/readme.md +0 -72
  108. package/dist/toggle-group/readme.md +0 -82
package/dist/tag/Tag.js CHANGED
@@ -30,7 +30,7 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
30
30
  var _Box = _interopRequireDefault(require("../box/Box"));
31
31
 
32
32
  function _templateObject8() {
33
- var data = (0, _taggedTemplateLiteral2["default"])(["\n padding: 0px 30px;\n font-size: ", ";\n text-transform: ", ";\n letter-spacing: ", ";\n color: black;\n flex-grow: 1;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n"]);
33
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n flex-grow: 1;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n"]);
34
34
 
35
35
  _templateObject8 = function _templateObject8() {
36
36
  return data;
@@ -40,7 +40,7 @@ function _templateObject8() {
40
40
  }
41
41
 
42
42
  function _templateObject7() {
43
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n background: ", ";\n width: 48px;\n justify-content: center;\n"]);
43
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n background: ", ";\n width: ", ";\n height: 100%;\n justify-content: center;\n align-items: center;\n color: ", ";\n"]);
44
44
 
45
45
  _templateObject7 = function _templateObject7() {
46
46
  return data;
@@ -50,7 +50,7 @@ function _templateObject7() {
50
50
  }
51
51
 
52
52
  function _templateObject6() {
53
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: 43px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n img,\n svg {\n height: 23px;\n }\n"]);
53
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n\n img,\n svg {\n width: ", ";\n height: ", ";\n }\n"]);
54
54
 
55
55
  _templateObject6 = function _templateObject6() {
56
56
  return data;
@@ -60,7 +60,7 @@ function _templateObject6() {
60
60
  }
61
61
 
62
62
  function _templateObject5() {
63
- var data = (0, _taggedTemplateLiteral2["default"])(["\n padding: 10px 12px;\n height: 23px;\n"]);
63
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n width: ", ";\n height: ", ";\n"]);
64
64
 
65
65
  _templateObject5 = function _templateObject5() {
66
66
  return data;
@@ -70,7 +70,7 @@ function _templateObject5() {
70
70
  }
71
71
 
72
72
  function _templateObject4() {
73
- var data = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n outline: 0;\n font-family: inherit;\n"]);
73
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border-radius: 4px;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: inherit;\n\n :focus {\n outline: 2px solid ", ";\n }\n"]);
74
74
 
75
75
  _templateObject4 = function _templateObject4() {
76
76
  return data;
@@ -80,7 +80,7 @@ function _templateObject4() {
80
80
  }
81
81
 
82
82
  function _templateObject3() {
83
- var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: ", ";\n"]);
83
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: none;\n border-radius: 4px;\n\n :focus {\n outline: 2px solid ", ";\n outline-offset: 0px;\n }\n"]);
84
84
 
85
85
  _templateObject3 = function _templateObject3() {
86
86
  return data;
@@ -90,7 +90,7 @@ function _templateObject3() {
90
90
  }
91
91
 
92
92
  function _templateObject2() {
93
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n align-items: center;\n flex-direction: ", ";\n width: ", ";\n"]);
93
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n align-items: center;\n flex-direction: ", ";\n width: ", ";\n height: ", ";\n"]);
94
94
 
95
95
  _templateObject2 = function _templateObject2() {
96
96
  return data;
@@ -100,7 +100,7 @@ function _templateObject2() {
100
100
  }
101
101
 
102
102
  function _templateObject() {
103
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n\n display: inline-flex;\n cursor: ", ";\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
103
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n cursor: ", ";\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
104
104
 
105
105
  _templateObject = function _templateObject() {
106
106
  return data;
@@ -117,7 +117,7 @@ var DxcTag = function DxcTag(_ref) {
117
117
  linkHref = _ref.linkHref,
118
118
  onClick = _ref.onClick,
119
119
  _ref$iconBgColor = _ref.iconBgColor,
120
- iconBgColor = _ref$iconBgColor === void 0 ? "black" : _ref$iconBgColor,
120
+ iconBgColor = _ref$iconBgColor === void 0 ? "#5f249f" : _ref$iconBgColor,
121
121
  _ref$labelPosition = _ref.labelPosition,
122
122
  labelPosition = _ref$labelPosition === void 0 ? "after" : _ref$labelPosition,
123
123
  _ref$newWindow = _ref.newWindow,
@@ -125,7 +125,7 @@ var DxcTag = function DxcTag(_ref) {
125
125
  _ref$size = _ref.size,
126
126
  size = _ref$size === void 0 ? "fitContent" : _ref$size,
127
127
  _ref$tabIndex = _ref.tabIndex,
128
- tabIndex = _ref$tabIndex === void 0 ? 1 : _ref$tabIndex;
128
+ tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
129
129
  var colorsTheme = (0, _useTheme["default"])();
130
130
 
131
131
  var _useState = (0, _react.useState)(false),
@@ -134,9 +134,7 @@ var DxcTag = function DxcTag(_ref) {
134
134
  changeIsHovered = _useState2[1];
135
135
 
136
136
  var clickHandler = function clickHandler() {
137
- if (onClick) {
138
- onClick();
139
- }
137
+ onClick && onClick();
140
138
  };
141
139
 
142
140
  var tagContent = _react["default"].createElement(_Box["default"], {
@@ -144,7 +142,6 @@ var DxcTag = function DxcTag(_ref) {
144
142
  shadowDepth: isHovered && (onClick || linkHref) && 2 || 1
145
143
  }, _react["default"].createElement(TagContent, {
146
144
  labelPosition: labelPosition,
147
- margin: margin,
148
145
  size: size
149
146
  }, _react["default"].createElement(IconContainer, {
150
147
  iconBgColor: iconBgColor
@@ -152,7 +149,9 @@ var DxcTag = function DxcTag(_ref) {
152
149
  src: iconSrc
153
150
  })), size !== "small" && _react["default"].createElement(TagLabel, null, label)));
154
151
 
155
- return _react["default"].createElement(StyledDxcTag, {
152
+ return _react["default"].createElement(_styledComponents.ThemeProvider, {
153
+ theme: colorsTheme.tag
154
+ }, _react["default"].createElement(StyledDxcTag, {
156
155
  margin: margin,
157
156
  onMouseEnter: function onMouseEnter() {
158
157
  return changeIsHovered(true);
@@ -168,7 +167,7 @@ var DxcTag = function DxcTag(_ref) {
168
167
  tabIndex: tabIndex,
169
168
  href: linkHref,
170
169
  target: newWindow ? "_blank" : "_self"
171
- }, tagContent) : tagContent);
170
+ }, tagContent) : tagContent));
172
171
  };
173
172
 
174
173
  var sizes = {
@@ -183,9 +182,7 @@ var calculateWidth = function calculateWidth(size) {
183
182
  return sizes[size];
184
183
  };
185
184
 
186
- var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (props) {
187
- return props.theme.fontSizeBase;
188
- }, function (_ref2) {
185
+ var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (_ref2) {
189
186
  var hasAction = _ref2.hasAction;
190
187
  return hasAction && "pointer" || "unset";
191
188
  }, function (_ref3) {
@@ -210,29 +207,57 @@ var TagContent = _styledComponents["default"].div(_templateObject2(), function (
210
207
  return labelPosition === "before" && "row-reverse" || "row";
211
208
  }, function (props) {
212
209
  return calculateWidth(props.size);
210
+ }, function (props) {
211
+ return props.theme.height;
213
212
  });
214
213
 
215
214
  var StyledLink = _styledComponents["default"].a(_templateObject3(), function (props) {
216
- return props.theme.textDecoration;
215
+ return props.theme.focusColor;
217
216
  });
218
217
 
219
- var StyledButton = _styledComponents["default"].button(_templateObject4());
218
+ var StyledButton = _styledComponents["default"].button(_templateObject4(), function (props) {
219
+ return props.theme.focusColor;
220
+ });
220
221
 
221
- var TagIcon = _styledComponents["default"].img(_templateObject5());
222
+ var TagIcon = _styledComponents["default"].img(_templateObject5(), function (props) {
223
+ return props.theme.iconWidth;
224
+ }, function (props) {
225
+ return props.theme.iconHeight;
226
+ });
222
227
 
223
- var TagIconContainer = _styledComponents["default"].div(_templateObject6());
228
+ var TagIconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
229
+ return props.theme.iconWidth;
230
+ }, function (props) {
231
+ return props.theme.iconHeight;
232
+ });
224
233
 
225
234
  var IconContainer = _styledComponents["default"].div(_templateObject7(), function (_ref9) {
226
235
  var iconBgColor = _ref9.iconBgColor;
227
236
  return iconBgColor;
237
+ }, function (props) {
238
+ return props.theme.iconSectionWidth;
239
+ }, function (props) {
240
+ return props.theme.iconColor;
228
241
  });
229
242
 
230
243
  var TagLabel = _styledComponents["default"].div(_templateObject8(), function (props) {
244
+ return props.theme.fontFamily;
245
+ }, function (props) {
231
246
  return props.theme.fontSize;
232
247
  }, function (props) {
233
- return props.theme.fontTextTransform;
248
+ return props.theme.fontStyle;
249
+ }, function (props) {
250
+ return props.theme.fontWeight;
251
+ }, function (props) {
252
+ return props.theme.fontColor;
234
253
  }, function (props) {
235
- return props.theme.fontLetterSpacingWide01;
254
+ return props.theme.labelPaddingTop;
255
+ }, function (props) {
256
+ return props.theme.labelPaddingBottom;
257
+ }, function (props) {
258
+ return props.theme.labelPaddingLeft;
259
+ }, function (props) {
260
+ return props.theme.labelPaddingRight;
236
261
  });
237
262
 
238
263
  DxcTag.propTypes = {
@@ -253,16 +278,5 @@ DxcTag.propTypes = {
253
278
  }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
254
279
  tabIndex: _propTypes["default"].number
255
280
  };
256
- DxcTag.defaultProps = {
257
- icon: null,
258
- iconSrc: null,
259
- label: null,
260
- margin: null,
261
- linkHref: null,
262
- onClick: null,
263
- iconBgColor: "black",
264
- labelPosition: "after",
265
- newWindow: false
266
- };
267
281
  var _default = DxcTag;
268
282
  exports["default"] = _default;
@@ -36,7 +36,7 @@ var _RequiredComponent = _interopRequireDefault(require("../common/RequiredCompo
36
36
  var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext.js"));
37
37
 
38
38
  function _templateObject() {
39
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: inline-block;\n position: relative;\n height: auto;\n width: ", ";\n\n .MuiTextField-root {\n width: 100%;\n\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n margin-top: 6px;\n }\n .MuiFormLabel-root {\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n padding-left: \"inherit\";\n\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n\n &.Mui-focused {\n color: ", ";\n &.MuiInputLabel-shrink {\n transform: \"translate(0, 1.5px) scale(0.75);\";\n }\n }\n\n &.MuiInputLabel-shrink {\n font-family: ", ";\n transform: \"translate(0, 1.5px) scale(0.75)\";\n }\n\n &.Mui-error {\n color: ", ";\n }\n\n &:not(.MuiInputLabel-shrink) {\n font-family: ", ";\n color: ", ";\n & + div,\n & + div + p {\n color: ", ";\n }\n }\n\n &.MuiInputLabel-shrink {\n & + div::before {\n border-color: ", ";\n }\n & + div + p {\n color: ", ";\n }\n }\n }\n .MuiInputBase-root.MuiInput-root.MuiInput-underline {\n &::before {\n border-bottom: ", ";\n }\n &:not(.Mui-error)::before,\n &:not(&.Mui-focused)::before {\n border-bottom: ", ";\n }\n &::after {\n border-bottom: ", ";\n }\n\n .MuiInputBase-inputMultiline {\n overflow: auto !important;\n\n ::-webkit-scrollbar {\n width: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n }\n\n &.Mui-error {\n &::before {\n border-width: 1px;\n border-color: ", ";\n }\n &::after {\n transform: scaleX(0);\n }\n }\n\n &.Mui-focused {\n &::after {\n border-width: 2px;\n border-color: ", ";\n transform: scaleX(1);\n }\n &.Mui-error::after {\n border-color: ", ";\n }\n }\n\n &.Mui-disabled {\n cursor: not-allowed;\n\n &::before {\n border-bottom: ", ";\n border-bottom-style: solid;\n }\n }\n\n .MuiInputBase-input {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n line-height: ", ";\n padding-left: \"inherit\";\n text-overflow: ellipsis;\n\n &.Mui-disabled {\n cursor: not-allowed;\n color: ", ";\n }\n }\n\n &:hover:not(.Mui-disabled):before &:hover:not(.Mui-error):before {\n border-bottom: ", ";\n }\n }\n\n & > p {\n &.Mui-error {\n color: ", ";\n }\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n }\n }\n"]);
39
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: inline-block;\n position: relative;\n height: auto;\n width: ", ";\n\n .MuiTextField-root {\n width: 100%;\n\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n margin-top: 6px;\n }\n .MuiFormLabel-root {\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n padding-left: \"inherit\";\n\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n\n &.Mui-focused {\n color: ", ";\n &.MuiInputLabel-shrink {\n transform: \"translate(0, 1.5px) scale(0.75);\";\n }\n }\n\n &.MuiInputLabel-shrink {\n font-family: ", ";\n transform: \"translate(0, 1.5px) scale(0.75)\";\n }\n\n &.Mui-error {\n color: ", ";\n }\n\n &:not(.MuiInputLabel-shrink) {\n font-family: ", ";\n color: ", ";\n & + div,\n & + div + p {\n color: ", ";\n }\n }\n\n &.MuiInputLabel-shrink {\n & + div::before {\n border-color: ", ";\n }\n & + div + p {\n color: ", ";\n }\n }\n }\n .MuiInputBase-root.MuiInput-root.MuiInput-underline {\n &::before {\n border-bottom: ", ";\n }\n\n &:not(.Mui-error)::before,\n &:not(&.Mui-focused)::before {\n border-bottom: ", ";\n }\n\n &::after {\n border-bottom: ", ";\n }\n\n .MuiInputBase-inputMultiline {\n overflow: auto !important;\n\n ::-webkit-scrollbar {\n width: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n }\n\n &.Mui-error {\n &::before {\n border-width: ", ";\n border-color: ", ";\n }\n &::after {\n transform: scaleX(0);\n }\n }\n\n &.Mui-focused {\n &::after {\n border-width: calc(", " + 1px);\n border-color: ", ";\n }\n &.Mui-error::after {\n border-color: ", ";\n }\n }\n\n &.Mui-disabled {\n cursor: not-allowed;\n\n &::before {\n border-bottom: ", ";\n border-bottom-style: solid;\n }\n }\n\n .MuiInputBase-input {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n line-height: ", ";\n padding-left: \"inherit\";\n text-overflow: ellipsis;\n\n &.Mui-disabled {\n cursor: not-allowed;\n color: ", ";\n }\n }\n\n &:hover:not(.Mui-disabled):before &:hover:not(.Mui-error):before {\n border-bottom-color: ", ";\n }\n }\n\n & > p {\n &.Mui-error {\n color: ", ";\n }\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n }\n }\n"]);
40
40
 
41
41
  _templateObject = function _templateObject() {
42
42
  return data;
@@ -156,7 +156,7 @@ var TextContainer = _styledComponents["default"].div(_templateObject(), function
156
156
  }, function (props) {
157
157
  return calculateWidth(props.margin, props.size);
158
158
  }, function (props) {
159
- return props.theme.assistiveTextFontFamily;
159
+ return props.theme.fontFamily;
160
160
  }, function (props) {
161
161
  return props.theme.assistiveTextFontSize;
162
162
  }, function (props) {
@@ -176,63 +176,67 @@ var TextContainer = _styledComponents["default"].div(_templateObject(), function
176
176
  }, function (props) {
177
177
  return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
178
178
  }, function (props) {
179
- return props.backgroundType === "dark" ? props.theme.disabledFontColorOnDark : props.theme.disabledFontColor;
179
+ return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
180
180
  }, function (props) {
181
181
  return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
182
182
  }, function (props) {
183
- return props.theme.labelFontFamily;
183
+ return props.theme.fontFamily;
184
184
  }, function (props) {
185
185
  return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
186
186
  }, function (props) {
187
- return props.theme.labelFontFamily;
187
+ return props.theme.fontFamily;
188
188
  }, function (props) {
189
189
  return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
190
190
  }, function (props) {
191
191
  return props.backgroundType === "dark" ? props.theme.assistiveTextFontColorOnDark : props.theme.assistiveTextFontColor;
192
192
  }, function (props) {
193
- return props.backgroundType ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
193
+ return props.backgroundType ? props.theme.underlineColorOnDark : props.theme.underlineColor;
194
194
  }, function (props) {
195
- return props.backgroundType === "dark" ? props.theme.assistiveTextFontColorOnDark : props.theme.assistiveTextFontColor;
195
+ return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
196
196
  }, function (props) {
197
- return "1px solid ".concat(props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor);
197
+ return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.underlineColorOnDark : props.theme.underlineColor);
198
198
  }, function (props) {
199
- return "1px solid ".concat(props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor);
199
+ return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.underlineColorOnDark : props.theme.underlineColor);
200
200
  }, function (props) {
201
- return "2px solid ".concat(props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor);
201
+ return "calc(".concat(props.theme.underlineThickness, " + 1px) solid ").concat(props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor);
202
202
  }, function (props) {
203
203
  return props.backgroundType === "dark" ? props.theme.scrollBarTrackColorOnDark : props.theme.scrollBarTrackColor;
204
204
  }, function (props) {
205
205
  return props.backgroundType === "dark" ? props.theme.scrollBarThumbColorOnDark : props.theme.scrollBarThumbColor;
206
+ }, function (props) {
207
+ return props.theme.underlineThickness;
206
208
  }, function (props) {
207
209
  return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
208
210
  }, function (props) {
209
- return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
211
+ return props.theme.underlineThickness;
212
+ }, function (props) {
213
+ return props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor;
210
214
  }, function (props) {
211
215
  return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
212
216
  }, function (props) {
213
- return "1px solid ".concat(props.backgroundType === "dark" ? props.theme.disabledFontColorOnDark : props.theme.disabledFontColor, " !important");
217
+ return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor, " !important");
214
218
  }, function (props) {
215
- return props.theme.customContentFontFamily;
219
+ return props.theme.fontFamily;
216
220
  }, function (props) {
217
- return props.theme.customContentFontSize;
221
+ return props.theme.valueFontSize;
218
222
  }, function (props) {
219
- return props.theme.customContentFontStyle;
223
+ return props.theme.valueFontStyle;
220
224
  }, function (props) {
221
- return props.theme.customContentFontWeight;
225
+ return props.theme.valueFontWeight;
222
226
  }, function (props) {
223
- return props.theme.customContentLetterSpacing;
227
+ return props.theme.valueLetterSpacing;
224
228
  }, function (props) {
225
- return props.backgroundType === "dark" ? props.theme.customContentFontColorOnDark : props.theme.customContentFontColor;
229
+ return props.backgroundType === "dark" ? props.theme.valueFontColorOnDark : props.theme.valueFontColor;
226
230
  }, function (props) {
227
- return props.theme.customContentLineHeight;
231
+ return props.theme.valueLineHeight;
228
232
  }, function (props) {
229
- return props.backgroundType === "dark" ? props.theme.disabledFontColorOnDark : props.theme.disabledFontColor;
233
+ return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
230
234
  }, function (props) {
231
- return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
235
+ return props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor;
232
236
  }, function (props) {
233
237
  return "".concat(props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor, " !important");
234
238
  }, function (props) {
235
- return props.backgroundType === "dark" ? props.theme.disabledFontColorOnDark : props.theme.disabledFontColor;
239
+ return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
236
240
  });
237
241
 
238
242
  DxcTextarea.propTypes = {
@@ -27,18 +27,8 @@ var _variables = require("../common/variables.js");
27
27
 
28
28
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
29
29
 
30
- function _templateObject6() {
31
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n overflow: hidden;\n display: flex;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
32
-
33
- _templateObject6 = function _templateObject6() {
34
- return data;
35
- };
36
-
37
- return data;
38
- }
39
-
40
30
  function _templateObject5() {
41
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n"]);
31
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n overflow: hidden;\n display: flex;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
42
32
 
43
33
  _templateObject5 = function _templateObject5() {
44
34
  return data;
@@ -48,7 +38,7 @@ function _templateObject5() {
48
38
  }
49
39
 
50
40
  function _templateObject4() {
51
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n letter-spacing: ", ";\n"]);
41
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n"]);
52
42
 
53
43
  _templateObject4 = function _templateObject4() {
54
44
  return data;
@@ -58,7 +48,7 @@ function _templateObject4() {
58
48
  }
59
49
 
60
50
  function _templateObject3() {
61
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n ", "\n"]);
51
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n"]);
62
52
 
63
53
  _templateObject3 = function _templateObject3() {
64
54
  return data;
@@ -68,7 +58,7 @@ function _templateObject3() {
68
58
  }
69
59
 
70
60
  function _templateObject2() {
71
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"]);
61
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n ", "\n"]);
72
62
 
73
63
  _templateObject2 = function _templateObject2() {
74
64
  return data;
@@ -78,7 +68,7 @@ function _templateObject2() {
78
68
  }
79
69
 
80
70
  function _templateObject() {
81
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: flex;\n flex-direction: column;\n opacity: 1;\n"]);
71
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: flex;\n flex-direction: row;\n opacity: 1;\n min-height: 40px;\n"]);
82
72
 
83
73
  _templateObject = function _templateObject() {
84
74
  return data;
@@ -123,27 +113,25 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
123
113
  }
124
114
 
125
115
  setSelectedValue(newSelectedOptions);
126
- } else {
127
- setSelectedValue(selectedOption === selectedValue ? null : selectedOption);
128
- }
116
+ } else setSelectedValue(selectedOption === selectedValue ? null : selectedOption);
129
117
  } else if (multiple) {
130
118
  newSelectedOptions = value.map(function (v) {
131
119
  return v;
132
120
  });
133
- newSelectedOptions.push(selectedOption);
134
- }
135
121
 
136
- if (typeof onChange === "function") {
137
- onChange(multiple ? newSelectedOptions : selectedOption);
122
+ if (newSelectedOptions.includes(selectedOption)) {
123
+ var _index = newSelectedOptions.indexOf(selectedOption);
124
+
125
+ newSelectedOptions.splice(_index, 1);
126
+ } else newSelectedOptions.push(selectedOption);
138
127
  }
128
+
129
+ typeof onChange === "function" && onChange(multiple ? newSelectedOptions : selectedOption);
139
130
  };
140
131
 
141
132
  var handleKeyPress = function handleKeyPress(event, optionValue) {
142
133
  event.preventDefault();
143
-
144
- if (!disabled && (event.nativeEvent.code === "Enter" || event.nativeEvent.code === "Space")) {
145
- handleToggleChange(optionValue);
146
- }
134
+ if (!disabled && (event.nativeEvent.code === "Enter" || event.nativeEvent.code === "Space")) handleToggleChange(optionValue);
147
135
  };
148
136
 
149
137
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
@@ -151,7 +139,7 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
151
139
  }, _react["default"].createElement(ToggleGroup, {
152
140
  margin: margin,
153
141
  disabled: disabled
154
- }, _react["default"].createElement(ToggleGroupContainer, null, options.map(function (option, i) {
142
+ }, options.map(function (option, i) {
155
143
  return _react["default"].createElement(ToggleContainer, {
156
144
  selected: multiple ? value ? value.includes(option.value) : selectedValue.includes(option.value) : value ? option.value === value : option.value === selectedValue,
157
145
  tabIndex: !disabled ? tabIndex : -1,
@@ -171,7 +159,7 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
171
159
  }) : _react["default"].createElement(LabelContainer, {
172
160
  disabled: disabled
173
161
  }, option.label));
174
- }))));
162
+ })));
175
163
  };
176
164
 
177
165
  var ToggleGroup = _styledComponents["default"].div(_templateObject(), function (props) {
@@ -186,13 +174,11 @@ var ToggleGroup = _styledComponents["default"].div(_templateObject(), function (
186
174
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
187
175
  });
188
176
 
189
- var ToggleGroupContainer = _styledComponents["default"].div(_templateObject2());
190
-
191
- var ToggleContainer = _styledComponents["default"].div(_templateObject3(), function (props) {
192
- return "\n background-color: ".concat(props.selected ? props.disabled ? props.theme.disabledSelectedBackgroundColor : props.theme.selectedBackgroundColor : props.disabled ? props.theme.disabledUnselectedBackgroundColor : props.theme.unselectedBackgroundColor, ";\n &:focus {\n outline: ").concat(props.theme.focusColor, " auto 1px;\n }\n border-radius: ").concat(props.isFirst ? "4px 0 0 4px" : props.isLast ? "0 4px 4px 0" : "0", ";\n color: ").concat(props.selected ? props.theme.selectedFontColor : props.theme.unselectedFontColor, ";\n padding: ").concat(props.isIcon ? "".concat(props.theme.iconPaddingTop, " ").concat(props.theme.iconPaddingRight, " ").concat(props.theme.iconPaddingBottom, " ").concat(props.theme.iconPaddingLeft) : "".concat(props.theme.labelPaddingTop, " ").concat(props.theme.labelPaddingRight, " ").concat(props.theme.labelPaddingBottom, " ").concat(props.theme.labelPaddingLeft), ";\n ").concat(!props.disabled ? "&:hover {\n background-color: ".concat(props.selected ? props.theme.selectedBackgroundHoverColor : props.theme.unselectedBackgroundHoverColor, ";\n color: ").concat(props.selected ? props.theme.selectedHoverFontColor : props.theme.unselectedHoverFontColor, " !important;\n }\n cursor: pointer;") : "color: ".concat(props.selected ? props.theme.disabledSelectedFontColor : props.theme.disabledUnselectedFontColor, " !important;\n cursor: not-allowed;"), "\n ");
177
+ var ToggleContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
178
+ return "\n background-color: ".concat(props.selected ? props.disabled ? props.theme.selectedDisabledBackgroundColor : props.theme.selectedBackgroundColor : props.disabled ? props.theme.unselectedDisabledBackgroundColor : props.theme.unselectedBackgroundColor, ";\n border-radius: ").concat(props.isFirst ? "4px 0 0 4px" : props.isLast ? "0 4px 4px 0" : "0", ";\n color: ").concat(props.selected ? props.theme.selectedFontColor : props.theme.unselectedFontColor, ";\n padding: ").concat(props.isIcon ? "".concat(props.theme.iconPaddingTop, " ").concat(props.theme.iconPaddingRight, " ").concat(props.theme.iconPaddingBottom, " ").concat(props.theme.iconPaddingLeft) : "".concat(props.theme.labelPaddingTop, " ").concat(props.theme.labelPaddingRight, " ").concat(props.theme.labelPaddingBottom, " ").concat(props.theme.labelPaddingLeft), ";\n \n ").concat(!props.disabled ? ":hover {\n background-color: ".concat(props.selected ? props.theme.selectedHoverBackgroundColor : props.theme.unselectedHoverBackgroundColor, ";\n }\n :active {\n background-color: ").concat(props.selected ? props.theme.selectedActiveBackgroundColor : props.theme.unselectedActiveBackgroundColor, ";\n color: #ffffff;\n } \n :focus {\n outline: ").concat(props.theme.focusColor, " solid 2px;\n outline-offset: -2px;\n }\n cursor: pointer;") : "color: ".concat(props.selected ? props.theme.selectedDisabledFontColor : props.theme.unselectedDisabledFontColor, " !important;\n cursor: not-allowed;"), "\n ");
193
179
  });
194
180
 
195
- var LabelContainer = _styledComponents["default"].span(_templateObject4(), function (props) {
181
+ var LabelContainer = _styledComponents["default"].span(_templateObject3(), function (props) {
196
182
  return props.theme.fontFamily;
197
183
  }, function (props) {
198
184
  return props.theme.fontSize;
@@ -200,22 +186,18 @@ var LabelContainer = _styledComponents["default"].span(_templateObject4(), funct
200
186
  return props.theme.fontStyle;
201
187
  }, function (props) {
202
188
  return props.theme.fontWeight;
203
- }, function (props) {
204
- return props.theme.fontTextTransform;
205
- }, function (props) {
206
- return props.theme.fontLetterSpacing;
207
189
  });
208
190
 
209
- var Icon = _styledComponents["default"].img(_templateObject5(), function (props) {
210
- return props.theme.iconHeight;
191
+ var Icon = _styledComponents["default"].img(_templateObject4(), function (props) {
192
+ return props.theme.iconSize;
211
193
  }, function (props) {
212
- return props.theme.iconWidth;
194
+ return props.theme.iconSize;
213
195
  });
214
196
 
215
- var IconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
216
- return props.theme.iconHeight;
197
+ var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
198
+ return props.theme.iconSize;
217
199
  }, function (props) {
218
- return props.theme.iconWidth;
200
+ return props.theme.iconSize;
219
201
  });
220
202
 
221
203
  DxcToggleGroup.propTypes = {
@@ -32,7 +32,7 @@ var _Transactions = _interopRequireDefault(require("./transactions/Transactions"
32
32
  var _variables = require("../common/variables.js");
33
33
 
34
34
  function _templateObject() {
35
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n max-width: 100%;\n height: 400px;\n box-shadow: 0px 3px 6px #00000029;\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
35
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n max-width: 100%;\n height: 400px;\n box-shadow: 0px 3px 6px #00000029;\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
36
36
 
37
37
  _templateObject = function _templateObject() {
38
38
  return data;
@@ -190,10 +190,6 @@ DxcUpload.propTypes = {
190
190
  };
191
191
 
192
192
  var DXCUpload = _styledComponents["default"].div(_templateObject(), function (props) {
193
- return props.theme.fontSizeBase;
194
- }, function (props) {
195
- return props.theme.fontFamily;
196
- }, function (props) {
197
193
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
198
194
  }, function (props) {
199
195
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
@@ -25,8 +25,10 @@ var _dragDropIcon = _interopRequireDefault(require("./drag-drop-icon.svg"));
25
25
 
26
26
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
27
27
 
28
+ var _BackgroundColorContext = require("../../BackgroundColorContext.js");
29
+
28
30
  function _templateObject3() {
29
- var data = (0, _taggedTemplateLiteral2["default"])(["\n background: url(\"", "\") no-repeat padding-box;\n width: 24px;\n height: 24px;\n margin-right: 5px;\n"]);
31
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-right: 5px;\n"]);
30
32
 
31
33
  _templateObject3 = function _templateObject3() {
32
34
  return data;
@@ -36,7 +38,7 @@ function _templateObject3() {
36
38
  }
37
39
 
38
40
  function _templateObject2() {
39
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n align-items: center;\n font-style: ", ";\n font-size: ", ";\n color: ", ";\n margin-right: 50px;\n"]);
41
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n align-items: center;\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-right: 50px;\n"]);
40
42
 
41
43
  _templateObject2 = function _templateObject2() {
42
44
  return data;
@@ -46,7 +48,7 @@ function _templateObject2() {
46
48
  }
47
49
 
48
50
  function _templateObject() {
49
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n margin-right: 80px;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n"]);
51
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 80px;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n"]);
50
52
 
51
53
  _templateObject = function _templateObject() {
52
54
  return data;
@@ -77,6 +79,8 @@ var DxcButtonsUpload = function DxcButtonsUpload(_ref) {
77
79
 
78
80
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
79
81
  theme: colorsTheme.upload
82
+ }, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
83
+ color: colorsTheme.upload.backgroundColor
80
84
  }, _react["default"].createElement(DXCButtonsUpload, null, _react["default"].createElement(DragAndDropLabel, null, _react["default"].createElement(DragAndDropIcon, null), "Drag and Drop area"), _react["default"].createElement(_Button["default"], {
81
85
  margin: {
82
86
  right: "small"
@@ -97,7 +101,7 @@ var DxcButtonsUpload = function DxcButtonsUpload(_ref) {
97
101
  iconPosition: "after",
98
102
  iconSrc: _uploadButton["default"],
99
103
  onClick: onUpload
100
- })));
104
+ }))));
101
105
  };
102
106
 
103
107
  DxcButtonsUpload.propTypes = {
@@ -105,19 +109,31 @@ DxcButtonsUpload.propTypes = {
105
109
  onUpload: _propTypes["default"].func
106
110
  };
107
111
 
108
- var DXCButtonsUpload = _styledComponents["default"].div(_templateObject(), function (props) {
109
- return props.theme.fontFamily;
110
- });
112
+ var DXCButtonsUpload = _styledComponents["default"].div(_templateObject());
111
113
 
112
114
  var DragAndDropLabel = _styledComponents["default"].div(_templateObject2(), function (props) {
113
- return props.theme.fontStyle;
115
+ return props.theme.fontFamily;
116
+ }, function (props) {
117
+ return props.theme.dragAndDropAreaTextFontSize;
114
118
  }, function (props) {
115
- return props.theme.fontSize12;
119
+ return props.theme.dragAndDropAreaTextFontStyle;
116
120
  }, function (props) {
117
- return props.theme.fontColor;
121
+ return props.theme.dragAndDropAreaTextFontWeight;
122
+ }, function (props) {
123
+ return props.theme.dragAndDropAreaTextFontTextTransform;
124
+ }, function (props) {
125
+ return props.theme.dragAndDropAreaTextFontColor;
118
126
  });
119
127
 
120
- var DragAndDropIcon = _styledComponents["default"].div(_templateObject3(), _dragDropIcon["default"]);
128
+ var DragAndDropIcon = _styledComponents["default"].div(_templateObject3(), function (props) {
129
+ return props.theme.dragAndDropAreaIconColor;
130
+ }, _dragDropIcon["default"], function (props) {
131
+ return "".concat(props.theme.dragAndDropAreaIconSize, " ").concat(props.theme.dragAndDropAreaIconSize);
132
+ }, function (props) {
133
+ return props.theme.dragAndDropAreaIconSize;
134
+ }, function (props) {
135
+ return props.theme.dragAndDropAreaIconSize;
136
+ });
121
137
 
122
138
  var _default = DxcButtonsUpload;
123
139
  exports["default"] = _default;