@dxc-technology/halstack-react 0.0.0-11cad3f → 0.0.0-1418b62

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 (96) hide show
  1. package/dist/ThemeContext.js +130 -98
  2. package/dist/accordion/Accordion.js +66 -59
  3. package/dist/accordion-group/AccordionGroup.js +1 -3
  4. package/dist/alert/Alert.js +126 -111
  5. package/dist/alert/index.d.ts +51 -0
  6. package/dist/box/Box.js +1 -9
  7. package/dist/button/Button.js +31 -25
  8. package/dist/checkbox/Checkbox.js +23 -17
  9. package/dist/chip/Chip.js +21 -25
  10. package/dist/common/variables.js +906 -536
  11. package/dist/date/Date.js +7 -9
  12. package/dist/dialog/Dialog.js +15 -32
  13. package/dist/dropdown/Dropdown.js +118 -69
  14. package/dist/file-input/FileInput.js +644 -0
  15. package/dist/file-input/FileItem.js +280 -0
  16. package/dist/file-input/index.d.ts +81 -0
  17. package/dist/footer/Footer.js +25 -35
  18. package/dist/footer/dxc_logo.svg +15 -0
  19. package/dist/header/Header.js +14 -42
  20. package/dist/header/dxc_logo_black.svg +8 -0
  21. package/dist/heading/Heading.js +1 -5
  22. package/dist/input-text/InputText.js +93 -55
  23. package/dist/layout/ApplicationLayout.js +1 -1
  24. package/dist/link/Link.js +4 -8
  25. package/dist/main.d.ts +8 -0
  26. package/dist/main.js +56 -0
  27. package/dist/new-date/NewDate.js +400 -0
  28. package/dist/new-date/index.d.ts +95 -0
  29. package/dist/new-input-text/NewInputText.js +967 -0
  30. package/dist/new-input-text/index.d.ts +135 -0
  31. package/dist/new-select/NewSelect.js +836 -0
  32. package/dist/new-select/index.d.ts +53 -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/select/Select.js +171 -185
  44. package/dist/sidenav/Sidenav.js +11 -15
  45. package/dist/slider/Slider.js +56 -52
  46. package/dist/spinner/Spinner.js +225 -58
  47. package/dist/table/Table.js +5 -1
  48. package/dist/tag/Tag.js +38 -36
  49. package/dist/textarea/Textarea.js +26 -22
  50. package/dist/toggle-group/ToggleGroup.js +21 -39
  51. package/dist/upload/buttons-upload/ButtonsUpload.js +5 -1
  52. package/dist/upload/dragAndDropArea/DragAndDropArea.js +10 -6
  53. package/dist/upload/file-upload/FileToUpload.js +1 -1
  54. package/dist/upload/transaction/Transaction.js +12 -8
  55. package/dist/upload/transactions/Transactions.js +11 -11
  56. package/dist/wizard/Wizard.js +8 -8
  57. package/package.json +4 -2
  58. package/test/Dropdown.test.js +15 -0
  59. package/test/FileInput.test.js +201 -0
  60. package/test/NewDate.test.js +232 -0
  61. package/test/NewInputText.test.js +734 -0
  62. package/test/NewTextarea.test.js +195 -0
  63. package/test/Number.test.js +257 -0
  64. package/test/Paginator.test.js +1 -1
  65. package/test/Password.test.js +83 -0
  66. package/test/ResultsetTable.test.js +1 -2
  67. package/test/Select.test.js +44 -24
  68. package/test/Spinner.test.js +5 -0
  69. package/dist/accordion/Accordion.stories.js +0 -207
  70. package/dist/accordion/readme.md +0 -96
  71. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  72. package/dist/accordion-group/readme.md +0 -70
  73. package/dist/alert/Alert.stories.js +0 -158
  74. package/dist/alert/close.svg +0 -4
  75. package/dist/alert/error.svg +0 -4
  76. package/dist/alert/info.svg +0 -4
  77. package/dist/alert/readme.md +0 -43
  78. package/dist/alert/success.svg +0 -4
  79. package/dist/alert/warning.svg +0 -4
  80. package/dist/button/Button.stories.js +0 -224
  81. package/dist/button/readme.md +0 -93
  82. package/dist/dialog/Dialog.stories.js +0 -217
  83. package/dist/dialog/readme.md +0 -32
  84. package/dist/dropdown/Dropdown.stories.js +0 -249
  85. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  86. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  87. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  88. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  89. package/dist/dropdown/readme.md +0 -69
  90. package/dist/footer/dxc_logo_wht.png +0 -0
  91. package/dist/header/dxc_logo_black.png +0 -0
  92. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  93. package/dist/header/dxc_logo_white.png +0 -0
  94. package/dist/select/Select.stories.js +0 -235
  95. package/dist/select/readme.md +0 -72
  96. 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 text-transform: ", ";\n letter-spacing: 0.025em;\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: ", ";\n justify-content: center;\n align-items: center;\n color: ", ";\n height: ", ";\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: ", ";\n width: ", ";\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: ", ";\n width: ", ";\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: none;\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;
@@ -100,7 +100,7 @@ function _templateObject2() {
100
100
  }
101
101
 
102
102
  function _templateObject() {
103
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-style: ", ";\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 ? "#6f2c91" : _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
@@ -185,9 +182,7 @@ var calculateWidth = function calculateWidth(size) {
185
182
  return sizes[size];
186
183
  };
187
184
 
188
- var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (props) {
189
- return props.theme.fontStyle;
190
- }, function (_ref2) {
185
+ var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (_ref2) {
191
186
  var hasAction = _ref2.hasAction;
192
187
  return hasAction && "pointer" || "unset";
193
188
  }, function (_ref3) {
@@ -216,20 +211,24 @@ var TagContent = _styledComponents["default"].div(_templateObject2(), function (
216
211
  return props.theme.height;
217
212
  });
218
213
 
219
- var StyledLink = _styledComponents["default"].a(_templateObject3());
214
+ var StyledLink = _styledComponents["default"].a(_templateObject3(), function (props) {
215
+ return props.theme.focusColor;
216
+ });
220
217
 
221
- var StyledButton = _styledComponents["default"].button(_templateObject4());
218
+ var StyledButton = _styledComponents["default"].button(_templateObject4(), function (props) {
219
+ return props.theme.focusColor;
220
+ });
222
221
 
223
222
  var TagIcon = _styledComponents["default"].img(_templateObject5(), function (props) {
224
- return props.theme.iconHeight;
225
- }, function (props) {
226
223
  return props.theme.iconWidth;
224
+ }, function (props) {
225
+ return props.theme.iconHeight;
227
226
  });
228
227
 
229
228
  var TagIconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
230
- return props.theme.iconHeight;
231
- }, function (props) {
232
229
  return props.theme.iconWidth;
230
+ }, function (props) {
231
+ return props.theme.iconHeight;
233
232
  });
234
233
 
235
234
  var IconContainer = _styledComponents["default"].div(_templateObject7(), function (_ref9) {
@@ -239,12 +238,26 @@ var IconContainer = _styledComponents["default"].div(_templateObject7(), functio
239
238
  return props.theme.iconSectionWidth;
240
239
  }, function (props) {
241
240
  return props.theme.iconColor;
242
- }, function (props) {
243
- return props.theme.height;
244
241
  });
245
242
 
246
243
  var TagLabel = _styledComponents["default"].div(_templateObject8(), function (props) {
247
- return props.theme.fontTextTransform;
244
+ return props.theme.fontFamily;
245
+ }, function (props) {
246
+ return props.theme.fontSize;
247
+ }, function (props) {
248
+ return props.theme.fontStyle;
249
+ }, function (props) {
250
+ return props.theme.fontWeight;
251
+ }, function (props) {
252
+ return props.theme.fontColor;
253
+ }, function (props) {
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;
248
261
  });
249
262
 
250
263
  DxcTag.propTypes = {
@@ -265,16 +278,5 @@ DxcTag.propTypes = {
265
278
  }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
266
279
  tabIndex: _propTypes["default"].number
267
280
  };
268
- DxcTag.defaultProps = {
269
- icon: null,
270
- iconSrc: null,
271
- label: null,
272
- margin: null,
273
- linkHref: null,
274
- onClick: null,
275
- iconBgColor: "#6f2c91",
276
- labelPosition: "after",
277
- newWindow: false
278
- };
279
281
  var _default = DxcTag;
280
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,19 +186,15 @@ 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) {
191
+ var Icon = _styledComponents["default"].img(_templateObject4(), function (props) {
210
192
  return props.theme.iconSize;
211
193
  }, function (props) {
212
194
  return props.theme.iconSize;
213
195
  });
214
196
 
215
- var IconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
197
+ var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
216
198
  return props.theme.iconSize;
217
199
  }, function (props) {
218
200
  return props.theme.iconSize;
@@ -25,6 +25,8 @@ 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
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
 
@@ -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 = {
@@ -29,6 +29,8 @@ var _Button = _interopRequireDefault(require("../../button/Button"));
29
29
 
30
30
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
31
31
 
32
+ var _BackgroundColorContext = require("../../BackgroundColorContext.js");
33
+
32
34
  function _templateObject11() {
33
35
  var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 10px;\n"]);
34
36
 
@@ -206,6 +208,8 @@ var DxcDragAndDropArea = function DxcDragAndDropArea(_ref) {
206
208
 
207
209
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
208
210
  theme: colorsTheme.upload
211
+ }, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
212
+ color: colorsTheme.upload.backgroundColor
209
213
  }, _react["default"].createElement(DXCDragAndDrop, {
210
214
  onDrop: handleDrop,
211
215
  onDragEnter: handleDragIn,
@@ -237,7 +241,7 @@ var DxcDragAndDropArea = function DxcDragAndDropArea(_ref) {
237
241
  style: {
238
242
  display: "none"
239
243
  }
240
- })))), dragging && _react["default"].createElement(DragAndDropContentHover, null, _react["default"].createElement(DragAndDropTextHover, null, textHover), _react["default"].createElement(DragAndDropIconHover, null))));
244
+ })))), dragging && _react["default"].createElement(DragAndDropContentHover, null, _react["default"].createElement(DragAndDropTextHover, null, textHover), _react["default"].createElement(DragAndDropIconHover, null)))));
241
245
  };
242
246
 
243
247
  DxcDragAndDropArea.propTypes = {
@@ -288,15 +292,15 @@ var DragAndDropDescription = _styledComponents["default"].div(_templateObject7()
288
292
  }, function (props) {
289
293
  return props.theme.dragAndDropDescriptionFontWeight;
290
294
  }, function (props) {
291
- return props.theme.dragAndDropTextDescriptionFontTextTransform;
295
+ return props.theme.dragAndDropDescriptionFontTextTransform;
292
296
  }, function (props) {
293
- return props.theme.dragAndDropTextDescriptionFontColor;
297
+ return props.theme.dragAndDropDescriptionFontColor;
294
298
  });
295
299
 
296
300
  var ButtonChooseFiles = _styledComponents["default"].div(_templateObject8());
297
301
 
298
302
  var DragAndDropContentHover = _styledComponents["default"].div(_templateObject9(), function (props) {
299
- return props.theme.draggingAreaBackgroundColor;
303
+ return props.theme.draggingStateBackgroundColor;
300
304
  });
301
305
 
302
306
  var DragAndDropIconHover = _styledComponents["default"].div(_templateObject10(), function (props) {
@@ -316,9 +320,9 @@ var DragAndDropTextHover = _styledComponents["default"].div(_templateObject11(),
316
320
  }, function (props) {
317
321
  return props.theme.dragAndDropDraggingStateFontWeight;
318
322
  }, function (props) {
319
- return props.theme.dragAndDropTextDraggingStateFontTextTransform;
323
+ return props.theme.dragAndDropDraggingStateFontTextTransform;
320
324
  }, function (props) {
321
- return props.theme.dragAndDropTextDraggingStateFontColor;
325
+ return props.theme.dragAndDropDraggingStateFontColor;
322
326
  });
323
327
 
324
328
  var _default = DxcDragAndDropArea;
@@ -137,7 +137,7 @@ var DXCFileToUpload = _styledComponents["default"].div(_templateObject(), functi
137
137
  }, function (props) {
138
138
  return props.theme.fileUnderlineColor;
139
139
  }, function (props) {
140
- return props.theme.fileHoverColor;
140
+ return props.theme.hoverFileColor;
141
141
  });
142
142
 
143
143
  var FileContent = _styledComponents["default"].div(_templateObject2());
@@ -43,6 +43,8 @@ var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
43
43
 
44
44
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
45
45
 
46
+ var _BackgroundColorContext = require("../../BackgroundColorContext.js");
47
+
46
48
  function _templateObject5() {
47
49
  var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n width: 80%;\n"]);
48
50
 
@@ -113,11 +115,13 @@ var DxcTransaction = function DxcTransaction(_ref) {
113
115
  }, _react["default"].createElement(FileImage, {
114
116
  status: status,
115
117
  img: icon
116
- }), status === "processing" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_Spinner["default"], {
118
+ }), status === "processing" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
119
+ color: colorsTheme.upload.backgroundColor
120
+ }, _react["default"].createElement(_Spinner["default"], {
117
121
  mode: "small"
118
- })) || status === "success" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, {
122
+ }))) || status === "success" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, {
119
123
  status: status
120
- })) || status === "error" && _react["default"].createElement(Prueba, null, _react["default"].createElement(_Tooltip["default"], {
124
+ })) || status === "error" && _react["default"].createElement(FileData, null, _react["default"].createElement(_Tooltip["default"], {
121
125
  title: message
122
126
  }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, {
123
127
  status: status
@@ -138,15 +142,15 @@ var DXCTransaction = _styledComponents["default"].div(_templateObject(), functio
138
142
  });
139
143
 
140
144
  var FileImage = _styledComponents["default"].div(_templateObject2(), function (props) {
141
- return props.status === "error" && props.theme.errorColor || props.theme.fileUploadedIconColor;
145
+ return props.status === "error" && props.theme.errorColor || props.theme.uploadedFileIconColor;
142
146
  }, function (props) {
143
147
  return props.img;
144
148
  }, function (props) {
145
- return "".concat(props.theme.fileUploadedIconSize, " ").concat(props.theme.fileUploadedIconSize);
149
+ return "".concat(props.theme.uploadedFileIconSize, " ").concat(props.theme.uploadedFileIconSize);
146
150
  }, function (props) {
147
- return props.theme.fileUploadedIconSize;
151
+ return props.theme.uploadedFileIconSize;
148
152
  }, function (props) {
149
- return props.theme.fileUploadedIconSize;
153
+ return props.theme.uploadedFileIconSize;
150
154
  });
151
155
 
152
156
  var FileName = _styledComponents["default"].div(_templateObject3(), function (props) {
@@ -165,7 +169,7 @@ var FileStatus = _styledComponents["default"].div(_templateObject4(), function (
165
169
  return props.status === "success" && "url('".concat(_successIcon["default"], "') no-repeat padding-box") || props.status === "error" && "url('".concat(_errorIcon["default"], "') no-repeat padding-box");
166
170
  });
167
171
 
168
- var Prueba = _styledComponents["default"].div(_templateObject5());
172
+ var FileData = _styledComponents["default"].div(_templateObject5());
169
173
 
170
174
  var _default = DxcTransaction;
171
175
  exports["default"] = _default;