@dxc-technology/halstack-react 0.0.0-ba36a4a → 0.0.0-beebecd

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 (51) hide show
  1. package/dist/ThemeContext.js +69 -61
  2. package/dist/alert/Alert.js +5 -5
  3. package/dist/alert/index.d.ts +51 -0
  4. package/dist/common/variables.js +298 -90
  5. package/dist/date/Date.js +4 -6
  6. package/dist/{new-date/NewDate.js → date-input/DateInput.js} +69 -72
  7. package/dist/date-input/index.d.ts +95 -0
  8. package/dist/file-input/FileInput.js +644 -0
  9. package/dist/file-input/FileItem.js +280 -0
  10. package/dist/file-input/index.d.ts +81 -0
  11. package/dist/input-text/InputText.js +3 -3
  12. package/dist/layout/ApplicationLayout.js +1 -1
  13. package/dist/link/Link.js +4 -8
  14. package/dist/main.d.ts +8 -0
  15. package/dist/main.js +29 -13
  16. package/dist/new-select/NewSelect.js +836 -0
  17. package/dist/new-select/index.d.ts +53 -0
  18. package/dist/new-textarea/NewTextarea.js +62 -39
  19. package/dist/new-textarea/index.d.ts +117 -0
  20. package/dist/{number/Number.js → number-input/NumberInput.js} +9 -11
  21. package/dist/{number/NumberContext.js → number-input/NumberInputContext.js} +2 -2
  22. package/dist/number-input/index.d.ts +113 -0
  23. package/dist/{password/Password.js → password-input/PasswordInput.js} +11 -13
  24. package/dist/password-input/index.d.ts +94 -0
  25. package/dist/progress-bar/ProgressBar.js +1 -1
  26. package/dist/select/Select.js +122 -158
  27. package/dist/sidenav/Sidenav.js +6 -4
  28. package/dist/slider/Slider.js +89 -14
  29. package/dist/tag/Tag.js +26 -32
  30. package/dist/{new-input-text/NewInputText.js → text-input/TextInput.js} +180 -170
  31. package/dist/text-input/index.d.ts +135 -0
  32. package/dist/toggle-group/ToggleGroup.js +132 -28
  33. package/package.json +2 -1
  34. package/test/{NewDate.test.js → DateInput.test.js} +66 -27
  35. package/test/FileInput.test.js +201 -0
  36. package/test/InputText.test.js +24 -16
  37. package/test/NewTextarea.test.js +95 -101
  38. package/test/{Number.test.js → NumberInput.test.js} +84 -66
  39. package/test/Paginator.test.js +1 -1
  40. package/test/PasswordInput.test.js +83 -0
  41. package/test/ResultsetTable.test.js +1 -2
  42. package/test/Select.test.js +40 -17
  43. package/test/{NewInputText.test.js → TextInput.test.js} +146 -231
  44. package/test/ToggleGroup.test.js +5 -1
  45. package/dist/footer/Footer.stories.js +0 -94
  46. package/dist/input-text/InputText.stories.js +0 -209
  47. package/dist/password/styles.css +0 -3
  48. package/dist/select/Select.stories.js +0 -235
  49. package/dist/select/readme.md +0 -72
  50. package/dist/slider/Slider.stories.js +0 -241
  51. package/test/Password.test.js +0 -76
@@ -35,9 +35,39 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
35
35
 
36
36
  var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext.js"));
37
37
 
38
- function _templateObject4() {
38
+ function _templateObject7() {
39
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: ", ";\n label + .MuiInput-formControl {\n margin-top: 2px;\n }\n"]);
40
+
41
+ _templateObject7 = function _templateObject7() {
42
+ return data;
43
+ };
44
+
45
+ return data;
46
+ }
47
+
48
+ function _templateObject6() {
39
49
  var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n margin-left: ", ";\n"]);
40
50
 
51
+ _templateObject6 = function _templateObject6() {
52
+ return data;
53
+ };
54
+
55
+ return data;
56
+ }
57
+
58
+ function _templateObject5() {
59
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n margin-right: ", ";\n"]);
60
+
61
+ _templateObject5 = function _templateObject5() {
62
+ return data;
63
+ };
64
+
65
+ return data;
66
+ }
67
+
68
+ function _templateObject4() {
69
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n height: 48px;\n align-items: center;\n\n .MultiSlider-root {\n display: flex;\n align-items: center;\n }\n .MuiSlider-container {\n padding: 30px 24px;\n }\n .MuiSlider-root.Mui-disabled {\n color: ", ";\n cursor: not-allowed;\n }\n .Mui-disabled {\n & .MuiSlider-thumb {\n height: ", ";\n width: ", ";\n background-color: ", ";\n top: ", ";\n }\n & .MuiSlider-track {\n background-color: ", ";\n }\n & .MuiSlider-rail {\n background-color: ", ";\n }\n & > .MuiSlider-mark.MuiSlider-markActive {\n background-color: ", " !important;\n }\n & > .MuiSlider-mark {\n background-color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 18px;\n top: ", ";\n }\n }\n .MuiSlider-thumb {\n height: ", ";\n width: ", ";\n background-color: ", ";\n top: ", ";\n border-radius: 9999px;\n\n :hover,\n &.Mui-focusVisible {\n box-shadow: none;\n }\n &.MuiSlider-active {\n box-shadow: none;\n }\n :focus {\n outline: ", "\n auto 1px;\n outline-offset: 2px;\n background-color: ", ";\n }\n :hover {\n background-color: ", ";\n transform: scale(", ");\n transform-origin: center;\n height: ", ";\n width: ", ";\n top: ", ";\n }\n :active {\n background-color: ", ";\n transform: scale(", ");\n transform-origin: center;\n }\n }\n .MuiSlider-track {\n background-color: ", ";\n height: ", ";\n top: ", ";\n border-radius: 9999px;\n }\n .MuiSlider-track.MuiSlider-trackAfter {\n background-color: ", ";\n }\n .MuiSlider-rail {\n background-color: ", ";\n height: ", ";\n top: ", ";\n }\n .MuiSlider-mark.MuiSlider-markActive {\n background-color: ", ";\n }\n .MuiSlider-mark {\n background-color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 18px;\n top: ", ";\n }\n"]);
70
+
41
71
  _templateObject4 = function _templateObject4() {
42
72
  return data;
43
73
  };
@@ -46,7 +76,7 @@ function _templateObject4() {
46
76
  }
47
77
 
48
78
  function _templateObject3() {
49
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n margin-right: 16px;\n"]);
79
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"]);
50
80
 
51
81
  _templateObject3 = function _templateObject3() {
52
82
  return data;
@@ -56,7 +86,7 @@ function _templateObject3() {
56
86
  }
57
87
 
58
88
  function _templateObject2() {
59
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n\n .MultiSlider-root {\n display: flex;\n align-items: center;\n }\n .MuiSlider-container {\n padding: 30px 24px;\n }\n .MuiSlider-root.Mui-disabled {\n color: ", ";\n cursor: not-allowed;\n }\n .Mui-disabled {\n & .MuiSlider-thumb {\n height: ", ";\n width: ", ";\n background-color: ", ";\n top: ", ";\n }\n & .MuiSlider-track {\n background-color: ", ";\n }\n & .MuiSlider-rail {\n background-color: ", ";\n }\n & > .MuiSlider-mark.MuiSlider-markActive {\n background-color: ", " !important;\n }\n & > .MuiSlider-mark {\n background-color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 18px;\n top: ", ";\n }\n }\n .MuiSlider-thumb {\n height: ", ";\n width: ", ";\n background-color: ", ";\n top: ", ";\n border-radius: 9999px;\n\n :hover,\n &.Mui-focusVisible {\n box-shadow: none;\n }\n &.MuiSlider-active {\n box-shadow: none;\n }\n :focus {\n outline: ", "\n auto 1px;\n outline-offset: 2px;\n background-color: ", ";\n }\n :hover {\n background-color: ", ";\n transform: scale(", ");\n transform-origin: center;\n }\n :active {\n background-color: ", ";\n transform: scale(", ");\n transform-origin: center;\n }\n }\n .MuiSlider-track {\n background-color: ", ";\n height: ", ";\n top: ", ";\n border-radius: 9999px;\n }\n .MuiSlider-track.MuiSlider-trackAfter {\n background-color: ", ";\n }\n .MuiSlider-rail {\n background-color: ", ";\n height: ", ";\n top: ", ";\n }\n .MuiSlider-mark.MuiSlider-markActive {\n background-color: ", ";\n }\n .MuiSlider-mark {\n background-color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 18px;\n top: ", ";\n }\n"]);
89
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"]);
60
90
 
61
91
  _templateObject2 = function _templateObject2() {
62
92
  return data;
@@ -66,7 +96,7 @@ function _templateObject2() {
66
96
  }
67
97
 
68
98
  function _templateObject() {
69
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 32px;\n\n label + .MuiInput-formControl {\n margin-top: 2px;\n }\n"]);
99
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n"]);
70
100
 
71
101
  _templateObject = function _templateObject() {
72
102
  return data;
@@ -76,7 +106,9 @@ function _templateObject() {
76
106
  }
77
107
 
78
108
  var DxcSlider = function DxcSlider(_ref) {
79
- var _ref$minValue = _ref.minValue,
109
+ var label = _ref.label,
110
+ helperText = _ref.helperText,
111
+ _ref$minValue = _ref.minValue,
80
112
  minValue = _ref$minValue === void 0 ? 0 : _ref$minValue,
81
113
  _ref$maxValue = _ref.maxValue,
82
114
  maxValue = _ref$maxValue === void 0 ? 100 : _ref$maxValue,
@@ -139,9 +171,10 @@ var DxcSlider = function DxcSlider(_ref) {
139
171
 
140
172
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
141
173
  theme: colorsTheme.slider
142
- }, _react["default"].createElement(SliderContainer, {
174
+ }, _react["default"].createElement(Container, {
143
175
  margin: margin,
144
- size: size,
176
+ size: size
177
+ }, _react["default"].createElement(Label, null, label), _react["default"].createElement(HelperText, null, helperText), _react["default"].createElement(SliderContainer, {
145
178
  backgroundType: backgroundType
146
179
  }, showLimitsValues && _react["default"].createElement(MinLabelContainer, {
147
180
  backgroundType: backgroundType,
@@ -167,7 +200,7 @@ var DxcSlider = function DxcSlider(_ref) {
167
200
  disabled: disabled,
168
201
  onChange: handlerInputChange,
169
202
  size: "small"
170
- }))));
203
+ })))));
171
204
  };
172
205
 
173
206
  var sizes = {
@@ -180,9 +213,7 @@ var calculateWidth = function calculateWidth(margin, size) {
180
213
  return size === "fillParent" ? "calc(".concat(sizes[size], " - ").concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")") : sizes[size];
181
214
  };
182
215
 
183
- var StyledTextInput = _styledComponents["default"].div(_templateObject());
184
-
185
- var SliderContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
216
+ var Container = _styledComponents["default"].div(_templateObject(), function (props) {
186
217
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
187
218
  }, function (props) {
188
219
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
@@ -194,7 +225,37 @@ var SliderContainer = _styledComponents["default"].div(_templateObject2(), funct
194
225
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
195
226
  }, function (props) {
196
227
  return calculateWidth(props.margin, props.size);
228
+ });
229
+
230
+ var Label = _styledComponents["default"].label(_templateObject2(), function (props) {
231
+ return props.theme.labelFontColor;
232
+ }, function (props) {
233
+ return props.theme.labelFontFamily;
234
+ }, function (props) {
235
+ return props.theme.labelFontSize;
236
+ }, function (props) {
237
+ return props.theme.labelFontStyle;
238
+ }, function (props) {
239
+ return props.theme.labelFontWeight;
240
+ }, function (props) {
241
+ return props.theme.labelLineHeight;
242
+ });
243
+
244
+ var HelperText = _styledComponents["default"].span(_templateObject3(), function (props) {
245
+ return props.theme.helperTextFontColor;
246
+ }, function (props) {
247
+ return props.theme.helperTextFontFamily;
197
248
  }, function (props) {
249
+ return props.theme.helperTextFontSize;
250
+ }, function (props) {
251
+ return props.theme.helperTextFontstyle;
252
+ }, function (props) {
253
+ return props.theme.helperTextFontWeight;
254
+ }, function (props) {
255
+ return props.theme.helperTextLineHeight;
256
+ });
257
+
258
+ var SliderContainer = _styledComponents["default"].div(_templateObject4(), function (props) {
198
259
  return props.backgroundType === "dark" ? props.theme.disabledThumbBackgroundColorOnDark : props.theme.disabledThumbBackgroundColor;
199
260
  }, function (props) {
200
261
  return props.theme.thumbHeight;
@@ -234,6 +295,12 @@ var SliderContainer = _styledComponents["default"].div(_templateObject2(), funct
234
295
  return props.backgroundType === "dark" ? props.theme.hoverThumbBackgroundColorOnDark : props.theme.hoverThumbBackgroundColor;
235
296
  }, function (props) {
236
297
  return props.theme.hoverThumbScale;
298
+ }, function (props) {
299
+ return props.theme.hoverThumbHeight;
300
+ }, function (props) {
301
+ return props.theme.hoverThumbWidth;
302
+ }, function (props) {
303
+ return props.theme.hoverThumbVerticalPosition;
237
304
  }, function (props) {
238
305
  return props.backgroundType === "dark" ? props.theme.activeThumbBackgroundColorOnDark : props.theme.activeThumbBackgroundColor;
239
306
  }, function (props) {
@@ -264,7 +331,7 @@ var SliderContainer = _styledComponents["default"].div(_templateObject2(), funct
264
331
  return props.theme.tickVerticalPosition;
265
332
  });
266
333
 
267
- var MinLabelContainer = _styledComponents["default"].span(_templateObject3(), function (props) {
334
+ var MinLabelContainer = _styledComponents["default"].span(_templateObject5(), function (props) {
268
335
  return props.theme.fontFamily;
269
336
  }, function (props) {
270
337
  return props.theme.fontSize;
@@ -276,9 +343,11 @@ var MinLabelContainer = _styledComponents["default"].span(_templateObject3(), fu
276
343
  return props.disabled ? props.theme.disabledFontColor : props.backgroundType === "dark" ? props.theme.fontColorOnDark : props.theme.fontColor;
277
344
  }, function (props) {
278
345
  return props.theme.fontLetterSpacing;
346
+ }, function (props) {
347
+ return props.theme.floorLabelMarginRight;
279
348
  });
280
349
 
281
- var MaxLabelContainer = _styledComponents["default"].span(_templateObject4(), function (props) {
350
+ var MaxLabelContainer = _styledComponents["default"].span(_templateObject6(), function (props) {
282
351
  return props.theme.fontFamily;
283
352
  }, function (props) {
284
353
  return props.theme.fontSize;
@@ -291,10 +360,16 @@ var MaxLabelContainer = _styledComponents["default"].span(_templateObject4(), fu
291
360
  }, function (props) {
292
361
  return props.theme.fontLetterSpacing;
293
362
  }, function (props) {
294
- return props.step === 1 ? "16px" : "20px";
363
+ return props.step === 1 ? props.theme.ceilLabelMarginLeft : "1.25rem";
364
+ });
365
+
366
+ var StyledTextInput = _styledComponents["default"].div(_templateObject7(), function (props) {
367
+ return props.theme.inputMarginLeft;
295
368
  });
296
369
 
297
370
  DxcSlider.propTypes = {
371
+ label: _propTypes["default"].string,
372
+ helperText: _propTypes["default"].string,
298
373
  size: _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(sizes))),
299
374
  minValue: _propTypes["default"].number,
300
375
  maxValue: _propTypes["default"].number,
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 font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n padding: 0px 30px;\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;
@@ -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
@@ -214,20 +211,24 @@ var TagContent = _styledComponents["default"].div(_templateObject2(), function (
214
211
  return props.theme.height;
215
212
  });
216
213
 
217
- var StyledLink = _styledComponents["default"].a(_templateObject3());
214
+ var StyledLink = _styledComponents["default"].a(_templateObject3(), function (props) {
215
+ return props.theme.focusColor;
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
222
  var TagIcon = _styledComponents["default"].img(_templateObject5(), function (props) {
222
- return props.theme.iconHeight;
223
- }, function (props) {
224
223
  return props.theme.iconWidth;
224
+ }, function (props) {
225
+ return props.theme.iconHeight;
225
226
  });
226
227
 
227
228
  var TagIconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
228
- return props.theme.iconHeight;
229
- }, function (props) {
230
229
  return props.theme.iconWidth;
230
+ }, function (props) {
231
+ return props.theme.iconHeight;
231
232
  });
232
233
 
233
234
  var IconContainer = _styledComponents["default"].div(_templateObject7(), function (_ref9) {
@@ -237,8 +238,6 @@ var IconContainer = _styledComponents["default"].div(_templateObject7(), functio
237
238
  return props.theme.iconSectionWidth;
238
239
  }, function (props) {
239
240
  return props.theme.iconColor;
240
- }, function (props) {
241
- return props.theme.height;
242
241
  });
243
242
 
244
243
  var TagLabel = _styledComponents["default"].div(_templateObject8(), function (props) {
@@ -249,10 +248,16 @@ var TagLabel = _styledComponents["default"].div(_templateObject8(), function (pr
249
248
  return props.theme.fontStyle;
250
249
  }, function (props) {
251
250
  return props.theme.fontWeight;
252
- }, function (props) {
253
- return props.theme.fontTextTransform;
254
251
  }, function (props) {
255
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;
256
261
  });
257
262
 
258
263
  DxcTag.propTypes = {
@@ -273,16 +278,5 @@ DxcTag.propTypes = {
273
278
  }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
274
279
  tabIndex: _propTypes["default"].number
275
280
  };
276
- DxcTag.defaultProps = {
277
- icon: null,
278
- iconSrc: null,
279
- label: null,
280
- margin: null,
281
- linkHref: null,
282
- onClick: null,
283
- iconBgColor: "#5f249f",
284
- labelPosition: "after",
285
- newWindow: false
286
- };
287
281
  var _default = DxcTag;
288
282
  exports["default"] = _default;