@dxc-technology/halstack-react 0.0.0-67a8cc5 → 0.0.0-6bc7b92

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 (192) hide show
  1. package/dist/BackgroundColorContext.js +46 -0
  2. package/dist/ThemeContext.js +168 -105
  3. package/dist/V3Textarea/V3Textarea.js +264 -0
  4. package/dist/accordion/Accordion.js +122 -47
  5. package/dist/accordion-group/AccordionGroup.js +34 -4
  6. package/dist/alert/Alert.js +174 -81
  7. package/dist/alert/index.d.ts +51 -0
  8. package/dist/badge/Badge.js +28 -7
  9. package/dist/box/Box.js +28 -19
  10. package/dist/button/Button.js +44 -19
  11. package/dist/card/Card.js +15 -6
  12. package/dist/checkbox/Checkbox.js +88 -23
  13. package/dist/chip/Chip.js +62 -20
  14. package/dist/common/utils.js +2 -22
  15. package/dist/common/variables.js +1377 -239
  16. package/dist/date/Date.js +65 -41
  17. package/dist/date-input/DateInput.js +400 -0
  18. package/dist/date-input/index.d.ts +95 -0
  19. package/dist/dialog/Dialog.js +44 -31
  20. package/dist/dropdown/Dropdown.js +162 -74
  21. package/dist/file-input/FileInput.js +644 -0
  22. package/dist/file-input/FileItem.js +280 -0
  23. package/dist/file-input/index.d.ts +81 -0
  24. package/dist/footer/Footer.js +80 -36
  25. package/dist/footer/Icons.js +77 -0
  26. package/dist/header/Header.js +122 -67
  27. package/dist/header/Icons.js +59 -0
  28. package/dist/heading/Heading.js +86 -23
  29. package/dist/input-text/Icons.js +22 -0
  30. package/dist/input-text/InputText.js +184 -76
  31. package/dist/layout/ApplicationLayout.js +14 -18
  32. package/dist/layout/Icons.js +55 -0
  33. package/dist/link/Link.js +78 -34
  34. package/dist/main.d.ts +8 -0
  35. package/dist/main.js +71 -7
  36. package/dist/new-select/NewSelect.js +836 -0
  37. package/dist/new-select/index.d.ts +53 -0
  38. package/dist/number-input/NumberInput.js +136 -0
  39. package/dist/number-input/NumberInputContext.js +16 -0
  40. package/dist/number-input/index.d.ts +113 -0
  41. package/dist/paginator/Icons.js +66 -0
  42. package/dist/paginator/Paginator.js +46 -24
  43. package/dist/password-input/PasswordInput.js +198 -0
  44. package/dist/password-input/index.d.ts +94 -0
  45. package/dist/progress-bar/ProgressBar.js +89 -37
  46. package/dist/radio/Radio.js +28 -11
  47. package/dist/resultsetTable/ResultsetTable.js +67 -40
  48. package/dist/select/Select.js +207 -148
  49. package/dist/sidenav/Sidenav.js +64 -12
  50. package/dist/slider/Slider.js +204 -67
  51. package/dist/spinner/Spinner.js +245 -60
  52. package/dist/switch/Switch.js +42 -16
  53. package/dist/table/Table.js +46 -10
  54. package/dist/tabs/Tabs.js +38 -18
  55. package/dist/tag/Tag.js +56 -31
  56. package/dist/text-input/TextInput.js +971 -0
  57. package/dist/text-input/index.d.ts +135 -0
  58. package/dist/textarea/Textarea.js +239 -108
  59. package/dist/textarea/index.d.ts +117 -0
  60. package/dist/toggle/Toggle.js +0 -2
  61. package/dist/toggle-group/ToggleGroup.js +142 -32
  62. package/dist/upload/Upload.js +4 -8
  63. package/dist/upload/buttons-upload/ButtonsUpload.js +29 -17
  64. package/dist/upload/buttons-upload/Icons.js +40 -0
  65. package/dist/upload/dragAndDropArea/DragAndDropArea.js +64 -24
  66. package/dist/upload/dragAndDropArea/Icons.js +39 -0
  67. package/dist/upload/file-upload/FileToUpload.js +53 -26
  68. package/dist/upload/file-upload/Icons.js +66 -0
  69. package/dist/upload/files-upload/FilesToUpload.js +3 -5
  70. package/dist/upload/transaction/Icons.js +160 -0
  71. package/dist/upload/transaction/Transaction.js +37 -43
  72. package/dist/upload/transactions/Transactions.js +27 -11
  73. package/dist/wizard/Icons.js +65 -0
  74. package/dist/wizard/Wizard.js +114 -52
  75. package/package.json +6 -4
  76. package/test/AccordionGroup.test.js +16 -0
  77. package/test/Date.test.js +49 -45
  78. package/test/DateInput.test.js +242 -0
  79. package/test/Dropdown.test.js +15 -0
  80. package/test/FileInput.test.js +201 -0
  81. package/test/Footer.test.js +2 -7
  82. package/test/Header.test.js +5 -10
  83. package/test/InputText.test.js +24 -16
  84. package/test/Link.test.js +3 -2
  85. package/test/NumberInput.test.js +259 -0
  86. package/test/Paginator.test.js +1 -1
  87. package/test/PasswordInput.test.js +83 -0
  88. package/test/ResultsetTable.test.js +1 -2
  89. package/test/Select.test.js +44 -24
  90. package/test/Slider.test.js +9 -17
  91. package/test/Spinner.test.js +5 -0
  92. package/test/TextInput.test.js +732 -0
  93. package/test/Textarea.test.js +193 -0
  94. package/test/ToggleGroup.test.js +5 -1
  95. package/test/Upload.test.js +5 -5
  96. package/test/{TextArea.test.js → V3TextArea.test.js} +6 -7
  97. package/dist/accordion/Accordion.stories.js +0 -207
  98. package/dist/accordion/readme.md +0 -96
  99. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  100. package/dist/accordion-group/readme.md +0 -70
  101. package/dist/alert/Alert.stories.js +0 -158
  102. package/dist/alert/close.svg +0 -4
  103. package/dist/alert/error.svg +0 -4
  104. package/dist/alert/info.svg +0 -4
  105. package/dist/alert/readme.md +0 -43
  106. package/dist/alert/success.svg +0 -4
  107. package/dist/alert/warning.svg +0 -4
  108. package/dist/button/Button.stories.js +0 -224
  109. package/dist/button/readme.md +0 -93
  110. package/dist/checkbox/Checkbox.stories.js +0 -144
  111. package/dist/checkbox/readme.md +0 -116
  112. package/dist/common/services/example-service.js +0 -10
  113. package/dist/common/services/example-service.test.js +0 -12
  114. package/dist/date/Date.stories.js +0 -205
  115. package/dist/date/calendar.svg +0 -1
  116. package/dist/date/calendar_dark.svg +0 -1
  117. package/dist/date/readme.md +0 -73
  118. package/dist/dialog/Dialog.stories.js +0 -217
  119. package/dist/dialog/readme.md +0 -32
  120. package/dist/dropdown/Dropdown.stories.js +0 -249
  121. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  122. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  123. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  124. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  125. package/dist/dropdown/readme.md +0 -69
  126. package/dist/footer/Footer.stories.js +0 -94
  127. package/dist/footer/dxc_logo_wht.png +0 -0
  128. package/dist/footer/readme.md +0 -41
  129. package/dist/header/Header.stories.js +0 -176
  130. package/dist/header/close_icon.svg +0 -1
  131. package/dist/header/dxc_logo_black.png +0 -0
  132. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  133. package/dist/header/dxc_logo_white.png +0 -0
  134. package/dist/header/hamb_menu_black.svg +0 -1
  135. package/dist/header/hamb_menu_white.svg +0 -1
  136. package/dist/header/readme.md +0 -33
  137. package/dist/input-text/InputText.stories.js +0 -209
  138. package/dist/input-text/error.svg +0 -1
  139. package/dist/input-text/readme.md +0 -91
  140. package/dist/layout/facebook.svg +0 -45
  141. package/dist/layout/linkedin.svg +0 -50
  142. package/dist/layout/twitter.svg +0 -53
  143. package/dist/link/readme.md +0 -51
  144. package/dist/paginator/images/next.svg +0 -3
  145. package/dist/paginator/images/nextPage.svg +0 -3
  146. package/dist/paginator/images/previous.svg +0 -3
  147. package/dist/paginator/images/previousPage.svg +0 -3
  148. package/dist/paginator/readme.md +0 -50
  149. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  150. package/dist/progress-bar/readme.md +0 -63
  151. package/dist/radio/Radio.stories.js +0 -166
  152. package/dist/radio/readme.md +0 -70
  153. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  154. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  155. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  156. package/dist/select/Select.stories.js +0 -235
  157. package/dist/select/readme.md +0 -72
  158. package/dist/slider/Slider.stories.js +0 -241
  159. package/dist/slider/readme.md +0 -64
  160. package/dist/spinner/Spinner.stories.js +0 -183
  161. package/dist/spinner/readme.md +0 -65
  162. package/dist/switch/Switch.stories.js +0 -134
  163. package/dist/switch/readme.md +0 -133
  164. package/dist/tabs/Tabs.stories.js +0 -130
  165. package/dist/tabs/readme.md +0 -78
  166. package/dist/tabs-for-sections/readme.md +0 -78
  167. package/dist/toggle/Toggle.stories.js +0 -297
  168. package/dist/toggle/readme.md +0 -80
  169. package/dist/toggle-group/readme.md +0 -82
  170. package/dist/upload/Upload.stories.js +0 -72
  171. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  172. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  173. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  174. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  175. package/dist/upload/file-upload/audio-icon.svg +0 -4
  176. package/dist/upload/file-upload/close.svg +0 -4
  177. package/dist/upload/file-upload/file-icon.svg +0 -4
  178. package/dist/upload/file-upload/video-icon.svg +0 -4
  179. package/dist/upload/readme.md +0 -37
  180. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  181. package/dist/upload/transaction/audio-icon.svg +0 -4
  182. package/dist/upload/transaction/error-icon.svg +0 -4
  183. package/dist/upload/transaction/file-icon-err.svg +0 -4
  184. package/dist/upload/transaction/file-icon.svg +0 -4
  185. package/dist/upload/transaction/image-icon-err.svg +0 -4
  186. package/dist/upload/transaction/image-icon.svg +0 -4
  187. package/dist/upload/transaction/success-icon.svg +0 -4
  188. package/dist/upload/transaction/video-icon-err.svg +0 -4
  189. package/dist/upload/transaction/video-icon.svg +0 -4
  190. package/dist/wizard/invalid_icon.svg +0 -6
  191. package/dist/wizard/valid_icon.svg +0 -6
  192. package/dist/wizard/validation-wrong.svg +0 -6
@@ -17,36 +17,18 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
19
19
 
20
- require("../../common/OpenSans.css");
21
-
22
20
  var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
23
21
 
24
- var _successIcon = _interopRequireDefault(require("./success-icon.svg"));
25
-
26
- var _errorIcon = _interopRequireDefault(require("./error-icon.svg"));
27
-
28
- var _fileIcon = _interopRequireDefault(require("./file-icon.svg"));
29
-
30
- var _imageIcon = _interopRequireDefault(require("./image-icon.svg"));
31
-
32
- var _videoIcon = _interopRequireDefault(require("./video-icon.svg"));
33
-
34
- var _audioIcon = _interopRequireDefault(require("./audio-icon.svg"));
35
-
36
- var _fileIconErr = _interopRequireDefault(require("./file-icon-err.svg"));
37
-
38
- var _imageIconErr = _interopRequireDefault(require("./image-icon-err.svg"));
39
-
40
- var _videoIconErr = _interopRequireDefault(require("./video-icon-err.svg"));
41
-
42
- var _audioIconErr = _interopRequireDefault(require("./audio-icon-err.svg"));
22
+ var _Icons = require("./Icons");
43
23
 
44
24
  var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
45
25
 
46
26
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
47
27
 
28
+ var _BackgroundColorContext = require("../../BackgroundColorContext.js");
29
+
48
30
  function _templateObject5() {
49
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 25px;\n height: 20px;\n background: ", ";\n"]);
31
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n width: 80%;\n"]);
50
32
 
51
33
  _templateObject5 = function _templateObject5() {
52
34
  return data;
@@ -56,7 +38,7 @@ function _templateObject5() {
56
38
  }
57
39
 
58
40
  function _templateObject4() {
59
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 16px;\n"]);
41
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 25px;\n height: 20px;\n max-width: 20%;\n"]);
60
42
 
61
43
  _templateObject4 = function _templateObject4() {
62
44
  return data;
@@ -66,7 +48,7 @@ function _templateObject4() {
66
48
  }
67
49
 
68
50
  function _templateObject3() {
69
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n"]);
51
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-right: 16px;\n width: 80%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"]);
70
52
 
71
53
  _templateObject3 = function _templateObject3() {
72
54
  return data;
@@ -76,7 +58,7 @@ function _templateObject3() {
76
58
  }
77
59
 
78
60
  function _templateObject2() {
79
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: 24px;\n width: 24px;\n margin-right: 16px;\n svg {\n fill: ", ";\n }\n"]);
61
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-right: 16px;\n max-width: 20%;\n & svg {\n fill: ", ";\n }\n"]);
80
62
 
81
63
  _templateObject2 = function _templateObject2() {
82
64
  return data;
@@ -86,7 +68,7 @@ function _templateObject2() {
86
68
  }
87
69
 
88
70
  function _templateObject() {
89
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n display: flex;\n flex-direction: row;\n margin-bottom: 16px;\n color: ", ";\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n .MuiCircularProgress-root {\n width: 28px !important;\n height: 28px !important;\n }\n"]);
71
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n display: flex;\n flex-direction: row;\n margin-bottom: 16px;\n color: ", ";\n .MuiCircularProgress-root {\n width: 28px !important;\n height: 28px !important;\n }\n"]);
90
72
 
91
73
  _templateObject = function _templateObject() {
92
74
  return data;
@@ -106,23 +88,21 @@ var DxcTransaction = function DxcTransaction(_ref) {
106
88
  message = _ref$message === void 0 ? "" : _ref$message;
107
89
  var colorsTheme = (0, _useTheme["default"])();
108
90
 
109
- var icon = status === "error" && (type.includes("image") && _imageIconErr["default"] || type.includes("video") && _videoIconErr["default"] || type.includes("audio") && _audioIconErr["default"] || _fileIconErr["default"]) || type.includes("image") && _imageIcon["default"] || type.includes("video") && _videoIcon["default"] || type.includes("audio") && _audioIcon["default"] || _fileIcon["default"];
91
+ var icon = status === "error" && (type.includes("image") && _Icons.imageIconError || type.includes("video") && _Icons.videoIconError || type.includes("audio") && _Icons.audioIconError || _Icons.defaultIconError) || type.includes("image") && _Icons.imageIcon || type.includes("video") && _Icons.videoIcon || type.includes("audio") && _Icons.audioIcon || _Icons.defaultIcon;
110
92
 
111
93
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
112
94
  theme: colorsTheme.upload
113
95
  }, _react["default"].createElement(DXCTransaction, {
114
96
  status: status
115
97
  }, _react["default"].createElement(FileImage, {
116
- src: icon
117
- }), status === "processing" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_Spinner["default"], {
118
- mode: "small"
119
- })) || status === "success" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, {
120
98
  status: status
121
- })) || status === "error" && _react["default"].createElement(Prueba, null, _react["default"].createElement(_Tooltip["default"], {
99
+ }, icon), status === "processing" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
100
+ color: colorsTheme.upload.backgroundColor
101
+ }, _react["default"].createElement(_Spinner["default"], {
102
+ mode: "small"
103
+ }))) || status === "success" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, null, _Icons.successIcon)) || status === "error" && _react["default"].createElement(FileData, null, _react["default"].createElement(_Tooltip["default"], {
122
104
  title: message
123
- }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, {
124
- status: status
125
- }))));
105
+ }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, null, _Icons.errorIcon), " ")));
126
106
  };
127
107
 
128
108
  DxcTransaction.propTypes = {
@@ -135,20 +115,34 @@ DxcTransaction.propTypes = {
135
115
  var DXCTransaction = _styledComponents["default"].div(_templateObject(), function (props) {
136
116
  return props.theme.fontFamily;
137
117
  }, function (props) {
138
- return props.status === "error" && "".concat(props.theme.errorColor);
118
+ return props.status === "error" && props.theme.errorColor;
139
119
  });
140
120
 
141
- var FileImage = _styledComponents["default"].img(_templateObject2(), function (props) {
142
- return props.status === "error" && "#D0011B" || "".concat(props.theme.accentColor);
121
+ var FileImage = _styledComponents["default"].div(_templateObject2(), function (props) {
122
+ return "".concat(props.theme.uploadedFileIconSize, " ").concat(props.theme.uploadedFileIconSize);
123
+ }, function (props) {
124
+ return props.theme.uploadedFileIconSize;
125
+ }, function (props) {
126
+ return props.theme.uploadedFileIconSize;
127
+ }, function (props) {
128
+ return props.status === "error" && props.theme.errorColor || props.theme.uploadedFileIconColor;
143
129
  });
144
130
 
145
- var Prueba = _styledComponents["default"].div(_templateObject3());
131
+ var FileName = _styledComponents["default"].div(_templateObject3(), function (props) {
132
+ return props.theme.fileNameFontSize;
133
+ }, function (props) {
134
+ return props.theme.fileNameFontStyle;
135
+ }, function (props) {
136
+ return props.theme.fileNameFontWeight;
137
+ }, function (props) {
138
+ return props.theme.fileNameFontTextTransform;
139
+ }, function (props) {
140
+ return props.theme.fileNameFontColor;
141
+ });
146
142
 
147
- var FileName = _styledComponents["default"].div(_templateObject4());
143
+ var FileStatus = _styledComponents["default"].div(_templateObject4());
148
144
 
149
- var FileStatus = _styledComponents["default"].div(_templateObject5(), function (props) {
150
- return props.status === "success" && "url('".concat(_successIcon["default"], "') no-repeat padding-box") || props.status === "error" && "url('".concat(_errorIcon["default"], "') no-repeat padding-box");
151
- });
145
+ var FileData = _styledComponents["default"].div(_templateObject5());
152
146
 
153
147
  var _default = DxcTransaction;
154
148
  exports["default"] = _default;
@@ -15,8 +15,6 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
17
17
 
18
- require("../../common/OpenSans.css");
19
-
20
18
  var _propTypes = _interopRequireDefault(require("prop-types"));
21
19
 
22
20
  var _Transaction = _interopRequireDefault(require("../transaction/Transaction"));
@@ -24,7 +22,7 @@ var _Transaction = _interopRequireDefault(require("../transaction/Transaction"))
24
22
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
25
23
 
26
24
  function _templateObject5() {
27
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-weight: bold;\n"]);
25
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-weight: ", ";\n"]);
28
26
 
29
27
  _templateObject5 = function _templateObject5() {
30
28
  return data;
@@ -34,7 +32,7 @@ function _templateObject5() {
34
32
  }
35
33
 
36
34
  function _templateObject4() {
37
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n\n color: ", ";\n"]);
35
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n"]);
38
36
 
39
37
  _templateObject4 = function _templateObject4() {
40
38
  return data;
@@ -44,7 +42,7 @@ function _templateObject4() {
44
42
  }
45
43
 
46
44
  function _templateObject3() {
47
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-bottom: 4px;\n font-size: ", ";\n"]);
45
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 4px;\n"]);
48
46
 
49
47
  _templateObject3 = function _templateObject3() {
50
48
  return data;
@@ -64,7 +62,7 @@ function _templateObject2() {
64
62
  }
65
63
 
66
64
  function _templateObject() {
67
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n width: 35%;\n padding-top: 46px;\n padding-left: 65px;\n border-radius: 4px 0px 4px 4px;\n box-shadow: 0px 0px 1px ", ";\n overflow: auto;\n ::-webkit-scrollbar {\n width: 3px;\n }\n ::-webkit-scrollbar-track {\n border-radius: 3px;\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: ", ";\n }\n"]);
65
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n width: 35%;\n padding-top: 46px;\n padding-left: 65px;\n border-radius: 4px 0px 4px 4px;\n box-shadow: 0px 0px 1px ", ";\n background-color: ", ";\n overflow: auto;\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n ::-webkit-scrollbar-track {\n border-radius: 3px;\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: ", ";\n }\n"]);
68
66
 
69
67
  _templateObject = function _templateObject() {
70
68
  return data;
@@ -97,7 +95,9 @@ DxcTransactions.propTypes = {
97
95
  var DXCTransactions = _styledComponents["default"].div(_templateObject(), function (props) {
98
96
  return props.theme.fontFamily;
99
97
  }, function (props) {
100
- return props.theme.lightWhite;
98
+ return props.theme.shadowColor;
99
+ }, function (props) {
100
+ return props.theme.backgroundColor;
101
101
  }, function (props) {
102
102
  return props.theme.scrollBarTrackColor;
103
103
  }, function (props) {
@@ -107,16 +107,32 @@ var DXCTransactions = _styledComponents["default"].div(_templateObject(), functi
107
107
  var TransactionsText = _styledComponents["default"].span(_templateObject2());
108
108
 
109
109
  var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), function (props) {
110
- return props.theme.fontSize20;
110
+ return props.theme.uploadedFilesTitleFontSize;
111
+ }, function (props) {
112
+ return props.theme.uploadedFilesTitleFontStyle;
113
+ }, function (props) {
114
+ return props.theme.uploadedFilesTitleFontWeight;
115
+ }, function (props) {
116
+ return props.theme.uploadedFilesTitleFontTextTransform;
117
+ }, function (props) {
118
+ return props.theme.uploadedFilesTitleFontColor;
111
119
  });
112
120
 
113
121
  var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(), function (props) {
114
- return props.theme.fontSize12;
122
+ return props.theme.uploadedFilesSubtitleFontSize;
123
+ }, function (props) {
124
+ return props.theme.uploadedFilesSubtitleFontStyle;
125
+ }, function (props) {
126
+ return props.theme.uploadedFilesSubtitleFontWeight;
115
127
  }, function (props) {
116
- return props.theme.fontColor;
128
+ return props.theme.uploadedFilesSubtitleFontTextTransform;
129
+ }, function (props) {
130
+ return props.theme.uploadedFilesSubtitleFontColor;
117
131
  });
118
132
 
119
- var TransactionsNumber = _styledComponents["default"].span(_templateObject5());
133
+ var TransactionsNumber = _styledComponents["default"].span(_templateObject5(), function (props) {
134
+ return props.theme.uploadedFilesNumberFontWeight;
135
+ });
120
136
 
121
137
  var _default = DxcTransactions;
122
138
  exports["default"] = _default;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.validIcon = exports.invalidIcon = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var invalidIcon = _react["default"].createElement("svg", {
13
+ id: "highlight_off_black_18dp",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: "18",
16
+ height: "18",
17
+ viewBox: "0 0 18 18"
18
+ }, _react["default"].createElement("path", {
19
+ id: "Path_2943",
20
+ "data-name": "Path 2943",
21
+ d: "M0,0H18V18H0Z",
22
+ fill: "none"
23
+ }), _react["default"].createElement("path", {
24
+ id: "Path_2944",
25
+ "data-name": "Path 2944",
26
+ d: "M10,4a6,6,0,1,0,6,6A6.01,6.01,0,0,0,10,4Zm3,7.945L11.945,13,10,11.06,8.059,13,7,11.945,8.944,10,7,8.059,8.059,7,10,8.944,11.945,7,13,8.059,11.06,10Z",
27
+ transform: "translate(-1.002 -1.002)",
28
+ fill: "#ffe6e9"
29
+ }), _react["default"].createElement("path", {
30
+ id: "Path_2945",
31
+ "data-name": "Path 2945",
32
+ d: "M11.444,6.5,9.5,8.443,7.558,6.5,6.5,7.558,8.443,9.5,6.5,11.444,7.558,12.5,9.5,10.558,11.444,12.5,12.5,11.444,10.558,9.5,12.5,7.558ZM9.5,2A7.5,7.5,0,1,0,17,9.5,7.494,7.494,0,0,0,9.5,2Zm0,13.5a6,6,0,1,1,6-6A6.009,6.009,0,0,1,9.5,15.5Z",
33
+ transform: "translate(-0.501 -0.501)",
34
+ fill: "#d0011b"
35
+ }));
36
+
37
+ exports.invalidIcon = invalidIcon;
38
+
39
+ var validIcon = _react["default"].createElement("svg", {
40
+ id: "check_circle_black_18dp",
41
+ xmlns: "http://www.w3.org/2000/svg",
42
+ width: "18",
43
+ height: "18",
44
+ viewBox: "0 0 18 18"
45
+ }, _react["default"].createElement("path", {
46
+ id: "Path_2946",
47
+ "data-name": "Path 2946",
48
+ d: "M0,0H18V18H0Z",
49
+ fill: "none"
50
+ }), _react["default"].createElement("path", {
51
+ id: "Path_2947",
52
+ "data-name": "Path 2947",
53
+ d: "M9.986,4a5.986,5.986,0,1,0,5.986,5.986A5.994,5.994,0,0,0,9.986,4Zm-1.5,9.727L5.5,10.734,6.551,9.679l1.938,1.93L13.42,6.679l1.055,1.063Z",
54
+ transform: "translate(-0.986 -0.986)",
55
+ fill: "#eafaef",
56
+ opacity: "0.999"
57
+ }), _react["default"].createElement("path", {
58
+ id: "Path_2948",
59
+ "data-name": "Path 2948",
60
+ d: "M9.493,2a7.493,7.493,0,1,0,7.493,7.493A7.5,7.5,0,0,0,9.493,2Zm0,13.487a5.994,5.994,0,1,1,5.994-5.994A6,6,0,0,1,9.493,15.487Zm3.439-9.306L7.994,11.119,6.054,9.186,5,10.242l3,3,5.994-5.994Z",
61
+ transform: "translate(-0.493 -0.493)",
62
+ fill: "#24a148"
63
+ }));
64
+
65
+ exports.validIcon = validIcon;
@@ -17,24 +17,30 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
17
17
 
18
18
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
19
 
20
- var _react = _interopRequireDefault(require("react"));
20
+ var _react = _interopRequireWildcard(require("react"));
21
21
 
22
22
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
23
23
 
24
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
25
25
 
26
- require("../common/OpenSans.css");
27
-
28
26
  var _variables = require("../common/variables.js");
29
27
 
30
28
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
31
29
 
32
- var _valid_icon = _interopRequireDefault(require("./valid_icon.svg"));
30
+ var _Icons = require("./Icons");
31
+
32
+ function _templateObject14() {
33
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", "\n border: ", ";\n opacity: 1;\n flex-grow: 1;\n"]);
34
+
35
+ _templateObject14 = function _templateObject14() {
36
+ return data;
37
+ };
33
38
 
34
- var _invalid_icon = _interopRequireDefault(require("./invalid_icon.svg"));
39
+ return data;
40
+ }
35
41
 
36
42
  function _templateObject13() {
37
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", "\n border: ", ";\n opacity: 1;\n flex-grow: 1;\n"]);
43
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n ", ";\n margin: 0;\n"]);
38
44
 
39
45
  _templateObject13 = function _templateObject13() {
40
46
  return data;
@@ -44,7 +50,7 @@ function _templateObject13() {
44
50
  }
45
51
 
46
52
  function _templateObject12() {
47
- var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: left;\n font-family: ", ";\n font-size: ", ";\n letter-spacing: 0.58px;\n color: inherit;\n margin: 0;\n"]);
53
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n ", ";\n text-transform: ", ";\n margin: 0;\n"]);
48
54
 
49
55
  _templateObject12 = function _templateObject12() {
50
56
  return data;
@@ -54,7 +60,7 @@ function _templateObject12() {
54
60
  }
55
61
 
56
62
  function _templateObject11() {
57
- var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: left;\n font-family: ", ";\n font-size: ", ";\n letter-spacing: 0.77px;\n color: inherit;\n margin: 0;\n"]);
63
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 12px;\n"]);
58
64
 
59
65
  _templateObject11 = function _templateObject11() {
60
66
  return data;
@@ -64,7 +70,7 @@ function _templateObject11() {
64
70
  }
65
71
 
66
72
  function _templateObject10() {
67
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 10px;\n color: ", ";\n"]);
73
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 18px;\n height: 18px;\n position: absolute;\n top: 22.5px;\n left: 22.5px;\n"]);
68
74
 
69
75
  _templateObject10 = function _templateObject10() {
70
76
  return data;
@@ -74,7 +80,7 @@ function _templateObject10() {
74
80
  }
75
81
 
76
82
  function _templateObject9() {
77
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 18px;\n height: 18px;\n position: absolute;\n bottom: 0px;\n right: 0px;\n"]);
83
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n opacity: 1;\n margin: 0px 0px 0px 1px;\n"]);
78
84
 
79
85
  _templateObject9 = function _templateObject9() {
80
86
  return data;
@@ -84,7 +90,7 @@ function _templateObject9() {
84
90
  }
85
91
 
86
92
  function _templateObject8() {
87
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n letter-spacing: 0.77px;\n color: ", ";\n opacity: 1;\n margin: 0;\n"]);
93
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n"]);
88
94
 
89
95
  _templateObject8 = function _templateObject8() {
90
96
  return data;
@@ -94,7 +100,7 @@ function _templateObject8() {
94
100
  }
95
101
 
96
102
  function _templateObject7() {
97
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 19px;\n height: 19px;\n overflow: hidden;\n color: ", ";\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
103
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
98
104
 
99
105
  _templateObject7 = function _templateObject7() {
100
106
  return data;
@@ -104,7 +110,7 @@ function _templateObject7() {
104
110
  }
105
111
 
106
112
  function _templateObject6() {
107
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 19px;\n height: 19px;\n"]);
113
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n"]);
108
114
 
109
115
  _templateObject6 = function _templateObject6() {
110
116
  return data;
@@ -114,7 +120,7 @@ function _templateObject6() {
114
120
  }
115
121
 
116
122
  function _templateObject5() {
117
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n\n ", "\n\n border-radius: 45px;\n display: flex;\n justify-content: center;\n align-items: center;\n"]);
123
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n\n ", "\n ", ";\n\n border-radius: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"]);
118
124
 
119
125
  _templateObject5 = function _templateObject5() {
120
126
  return data;
@@ -124,7 +130,7 @@ function _templateObject5() {
124
130
  }
125
131
 
126
132
  function _templateObject4() {
127
- var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-flex;\n padding-bottom: 3px;\n"]);
133
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-flex;\n padding-bottom: 4px;\n"]);
128
134
 
129
135
  _templateObject4 = function _templateObject4() {
130
136
  return data;
@@ -134,7 +140,7 @@ function _templateObject4() {
134
140
  }
135
141
 
136
142
  function _templateObject3() {
137
- var data = (0, _taggedTemplateLiteral2["default"])(["\n border: none;\n background: inherit;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: ", ";\n\n padding: 0px;\n ", ";\n\n &:hover {\n ", ";\n }\n"]);
143
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n border: none;\n background: inherit;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: ", ";\n\n padding: 0px;\n ", ";\n\n &:hover {\n ", ";\n }\n &:focus {\n outline: ", " auto 1px;\n }\n"]);
138
144
 
139
145
  _templateObject3 = function _templateObject3() {
140
146
  return data;
@@ -154,7 +160,7 @@ function _templateObject2() {
154
160
  }
155
161
 
156
162
  function _templateObject() {
157
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n flex-direction: ", ";\n justify-content: \"center\";\n ", ";\n font-family: \"Open Sans\", sans-serif;\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
163
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n flex-direction: ", ";\n justify-content: \"center\";\n ", ";\n font-family: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
158
164
 
159
165
  _templateObject = function _templateObject() {
160
166
  return data;
@@ -173,10 +179,10 @@ var DxcWizard = function DxcWizard(_ref) {
173
179
  _ref$tabIndex = _ref.tabIndex,
174
180
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
175
181
 
176
- var _React$useState = _react["default"].useState(currentStep || 0),
177
- _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
178
- innerCurrent = _React$useState2[0],
179
- setInnerCurrentStep = _React$useState2[1];
182
+ var _useState = (0, _react.useState)(currentStep || 0),
183
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
184
+ innerCurrent = _useState2[0],
185
+ setInnerCurrentStep = _useState2[1];
180
186
 
181
187
  var renderedCurrent = currentStep == null ? innerCurrent : currentStep;
182
188
  var colorsTheme = (0, _useTheme["default"])();
@@ -192,7 +198,7 @@ var DxcWizard = function DxcWizard(_ref) {
192
198
  };
193
199
 
194
200
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
195
- theme: colorsTheme
201
+ theme: colorsTheme.wizard
196
202
  }, _react["default"].createElement(StepsContainer, {
197
203
  mode: mode,
198
204
  margin: margin
@@ -216,18 +222,21 @@ var DxcWizard = function DxcWizard(_ref) {
216
222
  disabled: step.disabled
217
223
  }, step.icon ? _react["default"].createElement(StepIconContainer, {
218
224
  disabled: step.disabled
219
- }, (0, _typeof2["default"])(step.icon) === "object" ? step.icon : _react["default"].createElement(step.icon)) : step.iconSrc ? _react["default"].createElement(Icon, {
225
+ }, (0, _typeof2["default"])(step.icon) === "object" ? step.icon.type === "img" ? _react["default"].createElement(ImgContainer, {
226
+ current: i === renderedCurrent,
227
+ img: step.icon.props.src
228
+ }) : step.icon : _react["default"].createElement(step.icon)) : step.iconSrc ? _react["default"].createElement(Icon, {
220
229
  src: step.iconSrc
221
230
  }) : _react["default"].createElement(Number, {
222
231
  disabled: step.disabled,
223
232
  current: i === renderedCurrent
224
- }, i + 1)), step.valid !== undefined ? step.valid ? _react["default"].createElement(ValidityIcon, {
225
- src: _valid_icon["default"]
226
- }) : _react["default"].createElement(ValidityIcon, {
227
- src: _invalid_icon["default"]
228
- }) : ""), step.label || step.description ? _react["default"].createElement(InfoContainer, {
229
- active: i <= innerCurrent
230
- }, step.label ? _react["default"].createElement(Label, null, step.label) : "", step.description ? _react["default"].createElement(Description, null, step.description) : "") : ""), i === steps.length - 1 ? "" : _react["default"].createElement(StepSeparator, {
233
+ }, i + 1)), step.valid !== undefined ? step.valid ? _react["default"].createElement(ValidityIconContainer, null, _Icons.validIcon) : _react["default"].createElement(ValidityIconContainer, null, _Icons.invalidIcon) : ""), step.label || step.description ? _react["default"].createElement(InfoContainer, null, step.label ? _react["default"].createElement(Label, {
234
+ disabled: step.disabled,
235
+ visited: i <= innerCurrent
236
+ }, step.label) : "", step.description ? _react["default"].createElement(Description, {
237
+ disabled: step.disabled,
238
+ visited: i <= innerCurrent
239
+ }, step.description) : "") : ""), i === steps.length - 1 ? "" : _react["default"].createElement(StepSeparator, {
231
240
  mode: mode
232
241
  }));
233
242
  })));
@@ -237,6 +246,8 @@ var StepsContainer = _styledComponents["default"].div(_templateObject(), functio
237
246
  return props.mode === "vertical" ? "column" : "row";
238
247
  }, function (props) {
239
248
  return props.mode === "vertical" ? "height: 500px" : "width: 100%";
249
+ }, function (props) {
250
+ return props.theme.fontFamily;
240
251
  }, function (props) {
241
252
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
242
253
  }, function (props) {
@@ -260,63 +271,114 @@ var StepContainer = _styledComponents["default"].div(_templateObject2(), functio
260
271
  });
261
272
 
262
273
  var Step = _styledComponents["default"].button(_templateObject3(), function (props) {
263
- return props.first ? props.mode === "vertical" ? "0 0 25px 0" : "0 25px 0 0" : props.last ? props.mode === "vertical" ? "25px 0 0 0" : "0 0 0 25px" : props.mode === "vertical" ? "25px 0" : "0 25px";
274
+ return props.first ? props.mode === "vertical" ? "0 0 24px 0" : "0 24px 0 0" : props.last ? props.mode === "vertical" ? "24px 0 0 0" : "0 0 0 24px" : props.mode === "vertical" ? "24px 0" : "0 24px";
264
275
  }, function (props) {
265
276
  return props.disabled ? "cursor: not-allowed" : "";
266
277
  }, function (props) {
267
278
  return props.disabled ? "" : "cursor: pointer";
279
+ }, function (props) {
280
+ return props.theme.focusColor;
268
281
  });
269
282
 
270
283
  var StepHeader = _styledComponents["default"].div(_templateObject4());
271
284
 
272
285
  var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
273
- return !props.current && !props.disabled ? "32px" : "36px";
286
+ return props.disabled ? props.theme.disabledCircleWidth : props.current ? props.theme.selectedCircleWidth : props.theme.circleWidth;
287
+ }, function (props) {
288
+ return props.disabled ? props.theme.disabledCircleHeight : props.current ? props.theme.selectedCircleHeight : props.theme.circleHeight;
274
289
  }, function (props) {
275
- return !props.current && !props.disabled ? "32px" : "36px";
290
+ return "\n ".concat(!props.current && !props.disabled ? "border: ".concat(props.theme.circleBorderThickness, " ").concat(props.theme.circleBorderStyle, " ").concat(props.theme.circleBorderColor, ";") : props.current ? "border: ".concat(props.theme.selectedCircleBorderThickness, " ").concat(props.theme.selectedCircleBorderStyle, " ").concat(props.theme.selectedCircleBorderColor, ";") : props.disabled ? "border: ".concat(props.theme.disabledCircleBorderThickness, " ").concat(props.theme.disabledCircleBorderStyle, " ").concat(props.theme.disabledCircleBorderColor, ";") : "", "\n background: ").concat(props.disabled ? "".concat(props.theme.disabledBackgroundColor) : props.current ? "".concat(props.theme.stepContainerSelectedBackgroundColor) : "".concat(props.theme.stepContainerBackgroundColor), ";\n ");
276
291
  }, function (props) {
277
- return "\n ".concat(!props.current && !props.disabled ? "border: 2px solid ".concat(props.theme.wizard.borderColor, ";") : "", "\n background: ").concat(props.disabled ? "".concat(props.theme.wizard.disabledBackground) : props.current ? "".concat(props.theme.wizard.selectedBackgroundColor) : "", ";\n ").concat(props.current ? "color: ".concat(props.theme.wizard.selectedFont, ";") : "", "\n ");
292
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.current ? props.theme.stepContainerSelectedFontColor : props.theme.stepContainerFontColor, ";");
293
+ }, function (props) {
294
+ return !props.current && !props.disabled ? props.theme.circleBorderRadius : props.current ? props.theme.selectedCircleBorderRadius : props.disabled ? props.theme.disabledCircleBorderRadius : "";
278
295
  });
279
296
 
280
- var Icon = _styledComponents["default"].img(_templateObject6());
297
+ var Icon = _styledComponents["default"].img(_templateObject6(), function (props) {
298
+ return props.theme.stepContainerIconSize;
299
+ }, function (props) {
300
+ return props.theme.stepContainerIconSize;
301
+ });
281
302
 
282
303
  var StepIconContainer = _styledComponents["default"].div(_templateObject7(), function (props) {
283
- return props.disabled ? "".concat(props.theme.wizard.disabledFont) : "".concat(props.theme.wizard.fontColor);
304
+ return props.theme.stepContainerIconSize;
305
+ }, function (props) {
306
+ return props.theme.stepContainerIconSize;
284
307
  });
285
308
 
286
- var Number = _styledComponents["default"].p(_templateObject8(), function (props) {
287
- return props.theme.wizard.fontSize16;
309
+ var ImgContainer = _styledComponents["default"].div(_templateObject8(), function (props) {
310
+ return props.current ? props.theme.stepContainerSelectedFontColor : props.theme.stepContainerFontColor;
311
+ }, function (_ref2) {
312
+ var img = _ref2.img;
313
+ return img;
314
+ }, function (props) {
315
+ return "".concat(props.theme.stepContainerIconSize, " ").concat(props.theme.stepContainerIconSize);
288
316
  }, function (props) {
289
- return props.theme.wizard.fontFamily;
317
+ return props.theme.stepContainerIconSize;
290
318
  }, function (props) {
291
- return props.disabled ? "".concat(props.theme.wizard.disabledFont) : "".concat(props.theme.wizard.fontColor);
319
+ return props.theme.stepContainerIconSize;
292
320
  });
293
321
 
294
- var ValidityIcon = _styledComponents["default"].img(_templateObject9());
295
-
296
- var InfoContainer = _styledComponents["default"].div(_templateObject10(), function (props) {
297
- return props.active ? "".concat(props.theme.wizard.fontColor) : "".concat(props.theme.wizard.disabledFont);
322
+ var Number = _styledComponents["default"].p(_templateObject9(), function (props) {
323
+ return props.theme.stepContainerFontSize;
324
+ }, function (props) {
325
+ return props.theme.stepContainerFontFamily;
326
+ }, function (props) {
327
+ return props.theme.stepContainerFontStyle;
328
+ }, function (props) {
329
+ return props.theme.stepContainerFontWeight;
330
+ }, function (props) {
331
+ return props.theme.stepContainerLetterSpacing;
298
332
  });
299
333
 
300
- var Label = _styledComponents["default"].p(_templateObject11(), function (props) {
301
- return props.theme.wizard.fontFamily;
334
+ var ValidityIconContainer = _styledComponents["default"].div(_templateObject10());
335
+
336
+ var InfoContainer = _styledComponents["default"].div(_templateObject11());
337
+
338
+ var Label = _styledComponents["default"].p(_templateObject12(), function (props) {
339
+ return props.theme.labelTextAlign;
340
+ }, function (props) {
341
+ return props.theme.labelFontFamily;
342
+ }, function (props) {
343
+ return props.theme.labelFontSize;
344
+ }, function (props) {
345
+ return props.theme.labelFontStyle;
302
346
  }, function (props) {
303
- return props.theme.wizard.fontSize16;
347
+ return props.theme.labelFontWeight;
348
+ }, function (props) {
349
+ return props.theme.labelLetterSpacing;
350
+ }, function (props) {
351
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.visited ? props.theme.visitedLabelFontColor : props.theme.labelFontColor, ";");
352
+ }, function (props) {
353
+ return props.theme.labelFontTextTransform;
304
354
  });
305
355
 
306
- var Description = _styledComponents["default"].p(_templateObject12(), function (props) {
307
- return props.theme.wizard.fontFamily;
356
+ var Description = _styledComponents["default"].p(_templateObject13(), function (props) {
357
+ return props.theme.descriptionTextAlign;
358
+ }, function (props) {
359
+ return props.theme.descriptionFontFamily;
360
+ }, function (props) {
361
+ return props.theme.descriptionFontSize;
362
+ }, function (props) {
363
+ return props.theme.descriptionFontStyle;
364
+ }, function (props) {
365
+ return props.theme.descriptionFontWeight;
366
+ }, function (props) {
367
+ return props.theme.descriptionLetterSpacing;
368
+ }, function (props) {
369
+ return props.theme.descriptionFontTextTransform;
308
370
  }, function (props) {
309
- return props.theme.wizard.fontSize12;
371
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.visited ? props.theme.visitedDescriptionFontColor : props.theme.descriptionFontColor, ";");
310
372
  });
311
373
 
312
- var StepSeparator = _styledComponents["default"].div(_templateObject13(), function (props) {
374
+ var StepSeparator = _styledComponents["default"].div(_templateObject14(), function (props) {
313
375
  return props.mode === "horizontal" ? "" : "0";
314
376
  }, function (props) {
315
377
  return props.mode === "horizontal" ? "0" : "";
316
378
  }, function (props) {
317
379
  return props.mode === "vertical" ? "margin: 0 18px;" : "";
318
380
  }, function (props) {
319
- return "solid 1px ".concat(props.theme.wizard.lineColor);
381
+ return "".concat(props.theme.separatorBorderStyle, " ").concat(props.theme.separatorBorderThickness, " ").concat(props.theme.separatorColor);
320
382
  });
321
383
 
322
384
  DxcWizard.propTypes = {