@dxc-technology/halstack-react 0.0.0-c5f6a2f → 0.0.0-c6243ef

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 (112) 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 +168 -83
  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 +63 -21
  12. package/dist/common/variables.js +1105 -418
  13. package/dist/date/Date.js +60 -40
  14. package/dist/dialog/Dialog.js +44 -29
  15. package/dist/dropdown/Dropdown.js +162 -74
  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 +132 -56
  25. package/dist/layout/ApplicationLayout.js +3 -3
  26. package/dist/link/Link.js +71 -46
  27. package/dist/main.d.ts +8 -0
  28. package/dist/main.js +56 -0
  29. package/dist/new-date/NewDate.js +400 -0
  30. package/dist/new-date/index.d.ts +95 -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 +369 -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-input/PasswordInput.js +198 -0
  40. package/dist/password-input/index.d.ts +94 -0
  41. package/dist/progress-bar/ProgressBar.js +63 -27
  42. package/dist/radio/Radio.js +28 -9
  43. package/dist/resultsetTable/ResultsetTable.js +64 -38
  44. package/dist/select/Select.js +207 -148
  45. package/dist/sidenav/Sidenav.js +11 -15
  46. package/dist/slider/Slider.js +190 -63
  47. package/dist/spinner/Spinner.js +226 -59
  48. package/dist/switch/Switch.js +3 -3
  49. package/dist/table/Table.js +19 -5
  50. package/dist/tabs/Tabs.js +6 -10
  51. package/dist/tag/Tag.js +50 -36
  52. package/dist/text-input/TextInput.js +971 -0
  53. package/dist/text-input/index.d.ts +135 -0
  54. package/dist/textarea/Textarea.js +59 -33
  55. package/dist/toggle-group/ToggleGroup.js +130 -44
  56. package/dist/upload/Upload.js +1 -5
  57. package/dist/upload/buttons-upload/ButtonsUpload.js +27 -11
  58. package/dist/upload/dragAndDropArea/DragAndDropArea.js +54 -18
  59. package/dist/upload/file-upload/FileToUpload.js +37 -15
  60. package/dist/upload/files-upload/FilesToUpload.js +3 -3
  61. package/dist/upload/transaction/Transaction.js +39 -16
  62. package/dist/upload/transactions/Transactions.js +24 -8
  63. package/dist/wizard/Wizard.js +84 -56
  64. package/dist/wizard/invalid_icon.svg +4 -5
  65. package/dist/wizard/valid_icon.svg +4 -5
  66. package/package.json +4 -2
  67. package/test/Date.test.js +13 -13
  68. package/test/Dropdown.test.js +15 -0
  69. package/test/FileInput.test.js +201 -0
  70. package/test/Link.test.js +3 -2
  71. package/test/NewDate.test.js +232 -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/PasswordInput.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/test/TextInput.test.js +732 -0
  80. package/test/ToggleGroup.test.js +5 -1
  81. package/dist/accordion/Accordion.stories.js +0 -207
  82. package/dist/accordion/readme.md +0 -96
  83. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  84. package/dist/accordion-group/readme.md +0 -70
  85. package/dist/alert/Alert.stories.js +0 -158
  86. package/dist/alert/close.svg +0 -4
  87. package/dist/alert/error.svg +0 -4
  88. package/dist/alert/info.svg +0 -4
  89. package/dist/alert/readme.md +0 -43
  90. package/dist/alert/success.svg +0 -4
  91. package/dist/alert/warning.svg +0 -4
  92. package/dist/button/Button.stories.js +0 -224
  93. package/dist/button/readme.md +0 -93
  94. package/dist/date/calendar.svg +0 -1
  95. package/dist/date/calendar_dark.svg +0 -1
  96. package/dist/dialog/Dialog.stories.js +0 -217
  97. package/dist/dialog/readme.md +0 -32
  98. package/dist/dropdown/Dropdown.stories.js +0 -249
  99. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  100. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  101. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  102. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  103. package/dist/dropdown/readme.md +0 -69
  104. package/dist/footer/Footer.stories.js +0 -94
  105. package/dist/footer/dxc_logo_wht.png +0 -0
  106. package/dist/header/dxc_logo_black.png +0 -0
  107. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  108. package/dist/header/dxc_logo_white.png +0 -0
  109. package/dist/input-text/InputText.stories.js +0 -209
  110. package/dist/select/Select.stories.js +0 -235
  111. package/dist/select/readme.md +0 -72
  112. package/dist/toggle-group/readme.md +0 -82
package/dist/date/Date.js CHANGED
@@ -39,14 +39,12 @@ var _InputText = _interopRequireDefault(require("../input-text/InputText"));
39
39
 
40
40
  var _variables = require("../common/variables.js");
41
41
 
42
- var _calendar = _interopRequireDefault(require("./calendar.svg"));
43
-
44
42
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
45
43
 
46
44
  var _DxcDate$propTypes;
47
45
 
48
46
  function _templateObject() {
49
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n"]);
47
+ var data = (0, _taggedTemplateLiteral2["default"])([""]);
50
48
 
51
49
  _templateObject = function _templateObject() {
52
50
  return data;
@@ -56,8 +54,6 @@ function _templateObject() {
56
54
  }
57
55
 
58
56
  var DxcDate = function DxcDate(_ref) {
59
- var _componentTokens$date, _componentTokens$date2, _componentTokens$date3, _componentTokens$date4, _componentTokens$date5;
60
-
61
57
  var value = _ref.value,
62
58
  _ref$format = _ref.format,
63
59
  format = _ref$format === void 0 ? "dd-MM-yyyy" : _ref$format,
@@ -100,20 +96,14 @@ var DxcDate = function DxcDate(_ref) {
100
96
 
101
97
  var colorsTheme = (0, _useTheme["default"])();
102
98
 
103
- function handleMenuItemClick(date) {
99
+ var handleMenuItemClick = function handleMenuItemClick(date) {
104
100
  var stringValue = (0, _moment["default"])(date).format(format.toUpperCase());
105
-
106
- if (value == null) {
107
- setInnerValue(stringValue);
108
- }
109
-
110
- if (typeof onChange === "function") {
111
- onChange({
112
- stringValue: stringValue,
113
- dateValue: date && date.toJSON() ? date : null
114
- });
115
- }
116
- }
101
+ if (value == null) setInnerValue(stringValue);
102
+ if (typeof onChange === "function") onChange({
103
+ stringValue: stringValue,
104
+ dateValue: date && date.toJSON() ? date : null
105
+ });
106
+ };
117
107
 
118
108
  var onChangeInput = function onChangeInput(string) {
119
109
  var momentDate = (0, _moment["default"])(string, format.toUpperCase(), true);
@@ -132,10 +122,7 @@ var DxcDate = function DxcDate(_ref) {
132
122
 
133
123
  var handlerInputBlur = function handlerInputBlur(inputString) {
134
124
  setInnerValue(inputString);
135
-
136
- if (onBlur) {
137
- onBlur(inputString);
138
- }
125
+ if (onBlur) onBlur(inputString);
139
126
  };
140
127
 
141
128
  var getValueForPicker = function getValueForPicker() {
@@ -154,19 +141,41 @@ var DxcDate = function DxcDate(_ref) {
154
141
  handlerInputBlur(value == null ? innerValue : value);
155
142
  };
156
143
 
144
+ var calendarSVG = function calendarSVG() {
145
+ return _react["default"].createElement("svg", {
146
+ xmlns: "http://www.w3.org/2000/svg",
147
+ height: "24",
148
+ viewBox: "0 0 24 24",
149
+ width: "24",
150
+ fill: "currentColor"
151
+ }, _react["default"].createElement("path", {
152
+ "data-testid": "calendarIcon",
153
+ d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"
154
+ }), _react["default"].createElement("path", {
155
+ d: "M0 0h24v24H0z",
156
+ fill: "none"
157
+ }));
158
+ };
159
+
157
160
  var dateTheme = (0, _core.createMuiTheme)({
158
161
  overrides: {
162
+ MuiTypography: {
163
+ root: {
164
+ fontFamily: "".concat(colorsTheme.date.fontFamily, " !important")
165
+ }
166
+ },
159
167
  MuiPickersYearSelection: {
160
168
  container: {
169
+ color: colorsTheme.date.pickerYearColor,
161
170
  "&::-webkit-scrollbar": {
162
171
  width: "3px"
163
172
  },
164
173
  "&::-webkit-scrollbar-track": {
165
- backgroundColor: colorsTheme.date.scrollBarTrackColor,
174
+ backgroundColor: "#D9D9D9",
166
175
  borderRadius: "3px"
167
176
  },
168
177
  "&::-webkit-scrollbar-thumb": {
169
- backgroundColor: colorsTheme.date.scrollBarThumbColor,
178
+ backgroundColor: "#666666",
170
179
  borderRadius: "3px"
171
180
  }
172
181
  }
@@ -192,7 +201,7 @@ var DxcDate = function DxcDate(_ref) {
192
201
  MuiButtonBase: {
193
202
  root: {
194
203
  "&:focus": {
195
- outline: colorsTheme.date.focusColor + " 2px solid"
204
+ outline: colorsTheme.date.focusColor + " solid 2px"
196
205
  }
197
206
  }
198
207
  },
@@ -202,24 +211,39 @@ var DxcDate = function DxcDate(_ref) {
202
211
  maxWidth: "unset",
203
212
  minHeight: "unset",
204
213
  padding: "0px 10px",
205
- height: "316px",
206
- fontFamily: _variables.componentTokens === null || _variables.componentTokens === void 0 ? void 0 : (_componentTokens$date = _variables.componentTokens.date) === null || _componentTokens$date === void 0 ? void 0 : _componentTokens$date.fontFamily
214
+ height: colorsTheme.date.pickerHeight,
215
+ width: colorsTheme.date.pickerWidth,
216
+ backgroundColor: colorsTheme.date.pickerBackgroundColor,
217
+ fontFamily: colorsTheme.date.fontFamily
207
218
  }
208
219
  },
209
220
  MuiPickersToolbarText: {
210
221
  toolbarTxt: {
211
- color: _variables.componentTokens === null || _variables.componentTokens === void 0 ? void 0 : (_componentTokens$date2 = _variables.componentTokens.date) === null || _componentTokens$date2 === void 0 ? void 0 : _componentTokens$date2.pickerFontColor,
212
- fontFamily: _variables.componentTokens === null || _variables.componentTokens === void 0 ? void 0 : (_componentTokens$date3 = _variables.componentTokens.date) === null || _componentTokens$date3 === void 0 ? void 0 : _componentTokens$date3.fontFamily,
213
- fontSize: _variables.componentTokens === null || _variables.componentTokens === void 0 ? void 0 : (_componentTokens$date4 = _variables.componentTokens.date) === null || _componentTokens$date4 === void 0 ? void 0 : _componentTokens$date4.fontSize
222
+ color: colorsTheme.date.pickerActualDateColor,
223
+ fontFamily: colorsTheme.date.fontFamily,
224
+ fontSize: "2rem"
214
225
  },
215
226
  toolbarBtnSelected: {
216
- color: colorsTheme.date.pickerFontColor
227
+ color: colorsTheme.date.pickerActualDateColor
217
228
  }
218
229
  },
219
230
  MuiPickersCalendarHeader: {
231
+ transitionContainer: {
232
+ color: colorsTheme.date.pickerMonthColor
233
+ },
234
+ dayLabel: {
235
+ color: colorsTheme.date.pickerWeekLabelColor,
236
+ fontFamily: colorsTheme.date.fontFamily
237
+ },
220
238
  switchHeader: {
221
239
  backgroundColor: colorsTheme.white,
222
240
  color: colorsTheme.date.pickerFontColor
241
+ },
242
+ iconButton: {
243
+ backgroundColor: colorsTheme.date.pickerBackgroundColorMonthArrows,
244
+ "&:hover": {
245
+ backgroundColor: colorsTheme.date.pickerBackgroundColorMonthArrows
246
+ }
223
247
  }
224
248
  },
225
249
  MuiPickersCalendar: {
@@ -229,10 +253,11 @@ var DxcDate = function DxcDate(_ref) {
229
253
  },
230
254
  MuiPickersDay: {
231
255
  current: {
232
- border: colorsTheme.date.pickerActualDate + " 2px solid",
256
+ border: colorsTheme.date.pickerActualDateColor + " 2px solid",
233
257
  color: colorsTheme.date.pickerFontColor
234
258
  },
235
259
  day: {
260
+ fontFamily: colorsTheme.date.fontFamily,
236
261
  color: colorsTheme.date.pickerFontColor,
237
262
  "&:hover": {
238
263
  backgroundColor: colorsTheme.date.pickerHoverDateBackgroundColor,
@@ -254,8 +279,7 @@ var DxcDate = function DxcDate(_ref) {
254
279
  color: colorsTheme.date.pickerSelectedDateColor,
255
280
  backgroundColor: colorsTheme.date.pickerSelectedDateBackgroundColor,
256
281
  margin: "0px 100px",
257
- borderRadius: "20px",
258
- fontSize: _variables.componentTokens === null || _variables.componentTokens === void 0 ? void 0 : (_componentTokens$date5 = _variables.componentTokens.date) === null || _componentTokens$date5 === void 0 ? void 0 : _componentTokens$date5.fontSize
282
+ borderRadius: "20px"
259
283
  },
260
284
  root: {
261
285
  "&:focus": {
@@ -282,9 +306,7 @@ var DxcDate = function DxcDate(_ref) {
282
306
  }, _react["default"].createElement(_InputText["default"], {
283
307
  label: label,
284
308
  name: name,
285
- suffixIcon: _react["default"].createElement("img", {
286
- src: _calendar["default"]
287
- }),
309
+ suffixIcon: calendarSVG,
288
310
  required: required,
289
311
  invalid: invalid,
290
312
  disabled: disabled,
@@ -332,9 +354,7 @@ var sizes = {
332
354
  fillParent: "100%"
333
355
  };
334
356
 
335
- var StyledDPicker = _styledComponents["default"].div(_templateObject(), function (props) {
336
- return props.theme.fontSizeBase;
337
- });
357
+ var StyledDPicker = _styledComponents["default"].div(_templateObject());
338
358
 
339
359
  DxcDate.propTypes = (_DxcDate$propTypes = {
340
360
  value: _propTypes["default"].string,
@@ -29,8 +29,10 @@ var _variables = require("../common/variables.js");
29
29
 
30
30
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
31
31
 
32
+ var _BackgroundColorContext = require("../BackgroundColorContext.js");
33
+
32
34
  function _templateObject4() {
33
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 34px;\n height: 34px;\n"]);
35
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n"]);
34
36
 
35
37
  _templateObject4 = function _templateObject4() {
36
38
  return data;
@@ -40,7 +42,7 @@ function _templateObject4() {
40
42
  }
41
43
 
42
44
  function _templateObject3() {
43
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-end;\n position: absolute;\n top: 20px;\n right: 20px;\n cursor: pointer;\n padding: 0;\n margin: 0;\n background: none;\n border: none;\n width: 34px;\n height: 34px;\n"]);
45
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-end;\n position: absolute;\n top: ", ";\n right: ", ";\n cursor: pointer;\n padding: 0;\n margin: 0;\n background: none;\n color: ", ";\n width: ", ";\n height: ", ";\n border: none;\n"]);
44
46
 
45
47
  _templateObject3 = function _templateObject3() {
46
48
  return data;
@@ -50,7 +52,7 @@ function _templateObject3() {
50
52
  }
51
53
 
52
54
  function _templateObject2() {
53
- var data = (0, _taggedTemplateLiteral2["default"])(["\n overflow-y: auto;\n font-family: ", ";\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 ::-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"]);
55
+ var data = (0, _taggedTemplateLiteral2["default"])([""]);
54
56
 
55
57
  _templateObject2 = function _templateObject2() {
56
58
  return data;
@@ -60,7 +62,7 @@ function _templateObject2() {
60
62
  }
61
63
 
62
64
  function _templateObject() {
63
- var data = (0, _taggedTemplateLiteral2["default"])(["\n overflow: unset;\n font-family: ", ";\n .MuiBackdrop-root {\n background-color: ", ";\n opacity: ", " !important;\n }\n .MuiDialog-paperWidthSm {\n background-color: ", ";\n max-width: ", ";\n min-width: ", ";\n box-sizing: border-box;\n min-height: ", ";\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"]);
65
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n overflow: unset;\n font-family: ", ";\n\n .MuiBackdrop-root {\n background-color: ", ";\n opacity: ", " !important;\n }\n .MuiDialog-paperWidthSm {\n background-color: ", ";\n max-width: ", ";\n min-width: ", ";\n box-sizing: border-box;\n min-height: ", ";\n box-shadow: ", ";\n\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"]);
64
66
 
65
67
  _templateObject = function _templateObject() {
66
68
  return data;
@@ -89,21 +91,15 @@ var DxcDialog = function DxcDialog(_ref) {
89
91
  var colorsTheme = (0, _useTheme["default"])();
90
92
 
91
93
  var handleClose = function handleClose() {
92
- if (typeof onCloseClick === "function") {
93
- onCloseClick();
94
- }
94
+ typeof onCloseClick === "function" && onCloseClick();
95
95
  };
96
96
 
97
97
  var handleOverlayClick = function handleOverlayClick() {
98
- if (typeof onBackgroundClick === "function") {
99
- onBackgroundClick();
100
- }
98
+ typeof onBackgroundClick === "function" && onBackgroundClick();
101
99
  };
102
100
 
103
101
  var handleResize = function handleResize(width) {
104
- if (width) {
105
- if (width <= _variables.responsiveSizes.tablet ? setIsResponsive(true) : setIsResponsive(false)) ;
106
- }
102
+ width && width <= _variables.responsiveSizes.tablet ? setIsResponsive(true) : setIsResponsive(false);
107
103
  };
108
104
 
109
105
  var handleEventListener = function handleEventListener() {
@@ -133,13 +129,16 @@ var DxcDialog = function DxcDialog(_ref) {
133
129
  xmlns: "http://www.w3.org/2000/svg",
134
130
  width: "24",
135
131
  height: "24",
136
- viewBox: "0 0 24 24"
132
+ viewBox: "0 0 24 24",
133
+ fill: "currentColor"
137
134
  }, _react["default"].createElement("path", {
138
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
139
- }), _react["default"].createElement("path", {
140
- d: "M0 0h24v24H0z",
135
+ d: "M0 0h24v24H0V0z",
141
136
  fill: "none"
142
- }))), _react["default"].createElement(Children, null, children)));
137
+ }), _react["default"].createElement("path", {
138
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
139
+ }))), _react["default"].createElement(Children, null, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
140
+ color: colorsTheme.dialog.backgroundColor
141
+ }, children))));
143
142
  };
144
143
 
145
144
  var DialogContainer = (0, _styledComponents["default"])(_Dialog["default"])(_templateObject(), function (props) {
@@ -147,7 +146,7 @@ var DialogContainer = (0, _styledComponents["default"])(_Dialog["default"])(_tem
147
146
  }, function (props) {
148
147
  return props.overlay === true ? props.theme.overlayColor : "transparent";
149
148
  }, function (props) {
150
- return props.overlay === true && "0.8";
149
+ return props.overlay === true && props.theme.overlayOpacity;
151
150
  }, function (props) {
152
151
  return props.theme.backgroundColor;
153
152
  }, function (props) {
@@ -157,7 +156,9 @@ var DialogContainer = (0, _styledComponents["default"])(_Dialog["default"])(_tem
157
156
  }, function (props) {
158
157
  return props.isCloseVisible ? "72px" : "";
159
158
  }, function (props) {
160
- return props.padding && (0, _typeof2["default"])(props.padding) !== "object" ? _variables.spaces[props.padding] : "0px";
159
+ return "".concat(props.theme.boxShadowOffsetX, " ").concat(props.theme.boxShadowOffsetY, " ").concat(props.theme.boxShadowBlur, " ").concat(props.theme.boxShadowColor);
160
+ }, function (props) {
161
+ return props.padding && (0, _typeof2["default"])(props.padding) !== "object" ? _variables.spaces[props.padding] : _variables.spaces["small"];
161
162
  }, function (props) {
162
163
  return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.top ? _variables.spaces[props.padding.top] : "";
163
164
  }, function (props) {
@@ -168,21 +169,35 @@ var DialogContainer = (0, _styledComponents["default"])(_Dialog["default"])(_tem
168
169
  return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
169
170
  });
170
171
 
171
- var Children = _styledComponents["default"].div(_templateObject2(), function (props) {
172
- return props.theme.fontFamily;
172
+ var Children = _styledComponents["default"].div(_templateObject2());
173
+
174
+ var CloseIconContainer = _styledComponents["default"].button(_templateObject3(), function (props) {
175
+ return props.theme.closeIconTopPosition;
173
176
  }, function (props) {
174
- return props.theme.scrollBarTrackColor;
177
+ return props.theme.closeIconRightPosition;
175
178
  }, function (props) {
176
- return props.theme.scrollBarThumbColor;
179
+ return props.theme.closeIconColor;
177
180
  }, function (props) {
178
- return props.theme.scrollBarTrackColor;
181
+ return props.theme.closeIconWidth;
179
182
  }, function (props) {
180
- return props.theme.scrollBarThumbColor;
183
+ return props.theme.closeIconHeight;
181
184
  });
182
185
 
183
- var CloseIconContainer = _styledComponents["default"].button(_templateObject3());
184
-
185
- var CloseIcon = _styledComponents["default"].svg(_templateObject4());
186
+ var CloseIcon = _styledComponents["default"].svg(_templateObject4(), function (props) {
187
+ return props.theme.closeIconBackgroundColor;
188
+ }, function (props) {
189
+ return props.theme.closeIconWidth;
190
+ }, function (props) {
191
+ return props.theme.closeIconHeight;
192
+ }, function (props) {
193
+ return props.theme.closeIconBorderRadius;
194
+ }, function (props) {
195
+ return props.theme.closeIconBorderThickness;
196
+ }, function (props) {
197
+ return props.theme.closeIconBorderStyle;
198
+ }, function (props) {
199
+ return props.theme.closeIconBorderColor;
200
+ });
186
201
 
187
202
  DxcDialog.propTypes = {
188
203
  padding: _propTypes["default"].oneOfType([_propTypes["default"].shape({