@dxc-technology/halstack-react 0.0.0-b7f3ffd → 0.0.0-b915415

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 (224) hide show
  1. package/README.md +1 -1
  2. package/babel.config.js +0 -1
  3. package/dist/ThemeContext.js +134 -100
  4. package/dist/V3Select/V3Select.js +549 -0
  5. package/dist/V3Select/index.d.ts +27 -0
  6. package/dist/V3Textarea/V3Textarea.js +264 -0
  7. package/dist/V3Textarea/index.d.ts +27 -0
  8. package/dist/accordion/Accordion.js +80 -83
  9. package/dist/accordion/index.d.ts +28 -0
  10. package/dist/accordion-group/AccordionGroup.js +1 -3
  11. package/dist/accordion-group/index.d.ts +16 -0
  12. package/dist/alert/Alert.js +168 -83
  13. package/dist/alert/index.d.ts +51 -0
  14. package/dist/badge/Badge.js +3 -1
  15. package/dist/box/Box.js +1 -9
  16. package/dist/box/index.d.ts +25 -0
  17. package/dist/button/Button.js +32 -22
  18. package/dist/button/Button.stories.js +14 -211
  19. package/dist/button/index.d.ts +24 -0
  20. package/dist/card/Card.js +15 -8
  21. package/dist/card/index.d.ts +22 -0
  22. package/dist/checkbox/Checkbox.js +89 -23
  23. package/dist/checkbox/index.d.ts +24 -0
  24. package/dist/chip/Chip.js +63 -21
  25. package/dist/chip/index.d.ts +22 -0
  26. package/dist/common/variables.js +1114 -422
  27. package/dist/date/Date.js +60 -38
  28. package/dist/date/index.d.ts +27 -0
  29. package/dist/date-input/DateInput.js +400 -0
  30. package/dist/date-input/index.d.ts +95 -0
  31. package/dist/dialog/Dialog.js +44 -29
  32. package/dist/dialog/index.d.ts +18 -0
  33. package/dist/dropdown/Dropdown.js +162 -74
  34. package/dist/dropdown/index.d.ts +26 -0
  35. package/dist/file-input/FileInput.js +644 -0
  36. package/dist/file-input/FileItem.js +287 -0
  37. package/dist/file-input/index.d.ts +81 -0
  38. package/dist/footer/Footer.js +69 -53
  39. package/dist/footer/Icons.js +77 -0
  40. package/dist/footer/index.d.ts +25 -0
  41. package/dist/header/Header.js +123 -84
  42. package/dist/header/Icons.js +59 -0
  43. package/dist/header/index.d.ts +25 -0
  44. package/dist/heading/Heading.js +13 -5
  45. package/dist/heading/index.d.ts +17 -0
  46. package/dist/input-text/Icons.js +22 -0
  47. package/dist/input-text/InputText.js +159 -63
  48. package/dist/input-text/index.d.ts +36 -0
  49. package/dist/layout/ApplicationLayout.js +7 -11
  50. package/dist/layout/Icons.js +55 -0
  51. package/dist/link/Link.js +71 -46
  52. package/dist/link/index.d.ts +23 -0
  53. package/dist/main.d.ts +40 -0
  54. package/dist/main.js +63 -15
  55. package/dist/number-input/NumberInput.js +136 -0
  56. package/dist/number-input/NumberInputContext.js +16 -0
  57. package/dist/number-input/index.d.ts +113 -0
  58. package/dist/paginator/Icons.js +66 -0
  59. package/dist/paginator/Paginator.js +60 -38
  60. package/dist/paginator/index.d.ts +20 -0
  61. package/dist/password-input/PasswordInput.js +203 -0
  62. package/dist/password-input/index.d.ts +94 -0
  63. package/dist/progress-bar/ProgressBar.js +63 -27
  64. package/dist/progress-bar/index.d.ts +18 -0
  65. package/dist/radio/Radio.js +28 -9
  66. package/dist/radio/index.d.ts +23 -0
  67. package/dist/resultsetTable/ResultsetTable.js +64 -38
  68. package/dist/resultsetTable/index.d.ts +19 -0
  69. package/dist/select/Select.js +888 -282
  70. package/dist/select/index.d.ts +53 -0
  71. package/dist/sidenav/Sidenav.js +11 -15
  72. package/dist/sidenav/index.d.ts +13 -0
  73. package/dist/slider/Slider.js +204 -67
  74. package/dist/slider/index.d.ts +29 -0
  75. package/dist/spinner/Spinner.js +226 -59
  76. package/dist/spinner/index.d.ts +17 -0
  77. package/dist/switch/Switch.js +3 -3
  78. package/dist/switch/index.d.ts +24 -0
  79. package/dist/table/Table.js +19 -5
  80. package/dist/table/index.d.ts +13 -0
  81. package/dist/tabs/Tabs.js +6 -10
  82. package/dist/tabs/index.d.ts +19 -0
  83. package/dist/tag/Tag.js +50 -36
  84. package/dist/tag/index.d.ts +24 -0
  85. package/dist/text-input/TextInput.js +974 -0
  86. package/dist/text-input/index.d.ts +135 -0
  87. package/dist/textarea/Textarea.js +238 -107
  88. package/dist/textarea/index.d.ts +117 -0
  89. package/dist/toggle/index.d.ts +21 -0
  90. package/dist/toggle-group/ToggleGroup.js +137 -40
  91. package/dist/toggle-group/index.d.ts +21 -0
  92. package/dist/upload/Upload.js +1 -5
  93. package/dist/upload/buttons-upload/ButtonsUpload.js +28 -16
  94. package/dist/upload/buttons-upload/Icons.js +40 -0
  95. package/dist/upload/dragAndDropArea/DragAndDropArea.js +61 -25
  96. package/dist/upload/dragAndDropArea/Icons.js +39 -0
  97. package/dist/upload/file-upload/FileToUpload.js +52 -25
  98. package/dist/upload/file-upload/Icons.js +66 -0
  99. package/dist/upload/files-upload/FilesToUpload.js +3 -3
  100. package/dist/upload/index.d.ts +15 -0
  101. package/dist/upload/transaction/Icons.js +160 -0
  102. package/dist/upload/transaction/Transaction.js +37 -41
  103. package/dist/upload/transactions/Transactions.js +24 -8
  104. package/dist/wizard/Icons.js +65 -0
  105. package/dist/wizard/Wizard.js +85 -63
  106. package/dist/wizard/index.d.ts +18 -0
  107. package/package.json +17 -11
  108. package/test/Date.test.js +15 -13
  109. package/test/DateInput.test.js +242 -0
  110. package/test/Dropdown.test.js +15 -0
  111. package/test/FileInput.test.js +201 -0
  112. package/test/Footer.test.js +2 -7
  113. package/test/Header.test.js +5 -10
  114. package/test/Heading.test.js +60 -12
  115. package/test/InputText.test.js +1 -2
  116. package/test/Link.test.js +3 -2
  117. package/test/NumberInput.test.js +259 -0
  118. package/test/Paginator.test.js +6 -2
  119. package/test/PasswordInput.test.js +83 -0
  120. package/test/ResultsetTable.test.js +6 -6
  121. package/test/Select.test.js +371 -148
  122. package/test/Slider.test.js +9 -17
  123. package/test/Spinner.test.js +5 -0
  124. package/test/TextInput.test.js +732 -0
  125. package/test/Textarea.test.js +193 -0
  126. package/test/ToggleGroup.test.js +5 -1
  127. package/test/Upload.test.js +1 -1
  128. package/test/V3Select.test.js +212 -0
  129. package/test/{TextArea.test.js → V3TextArea.test.js} +6 -7
  130. package/dist/accordion/Accordion.stories.js +0 -207
  131. package/dist/accordion/readme.md +0 -96
  132. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  133. package/dist/accordion-group/readme.md +0 -70
  134. package/dist/alert/Alert.stories.js +0 -158
  135. package/dist/alert/close.svg +0 -4
  136. package/dist/alert/error.svg +0 -4
  137. package/dist/alert/info.svg +0 -4
  138. package/dist/alert/readme.md +0 -43
  139. package/dist/alert/success.svg +0 -4
  140. package/dist/alert/warning.svg +0 -4
  141. package/dist/button/readme.md +0 -93
  142. package/dist/checkbox/Checkbox.stories.js +0 -144
  143. package/dist/checkbox/readme.md +0 -116
  144. package/dist/date/Date.stories.js +0 -205
  145. package/dist/date/calendar.svg +0 -1
  146. package/dist/date/calendar_dark.svg +0 -1
  147. package/dist/date/readme.md +0 -73
  148. package/dist/dialog/Dialog.stories.js +0 -217
  149. package/dist/dialog/readme.md +0 -32
  150. package/dist/dropdown/Dropdown.stories.js +0 -249
  151. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  152. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  153. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  154. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  155. package/dist/dropdown/readme.md +0 -69
  156. package/dist/footer/Footer.stories.js +0 -94
  157. package/dist/footer/dxc_logo_wht.png +0 -0
  158. package/dist/footer/readme.md +0 -41
  159. package/dist/header/Header.stories.js +0 -176
  160. package/dist/header/close_icon.svg +0 -1
  161. package/dist/header/dxc_logo_black.png +0 -0
  162. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  163. package/dist/header/dxc_logo_white.png +0 -0
  164. package/dist/header/hamb_menu_black.svg +0 -1
  165. package/dist/header/hamb_menu_white.svg +0 -1
  166. package/dist/header/readme.md +0 -33
  167. package/dist/input-text/InputText.stories.js +0 -209
  168. package/dist/input-text/error.svg +0 -1
  169. package/dist/input-text/readme.md +0 -91
  170. package/dist/layout/facebook.svg +0 -45
  171. package/dist/layout/linkedin.svg +0 -50
  172. package/dist/layout/twitter.svg +0 -53
  173. package/dist/link/readme.md +0 -51
  174. package/dist/paginator/images/next.svg +0 -3
  175. package/dist/paginator/images/nextPage.svg +0 -3
  176. package/dist/paginator/images/previous.svg +0 -3
  177. package/dist/paginator/images/previousPage.svg +0 -3
  178. package/dist/paginator/readme.md +0 -50
  179. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  180. package/dist/progress-bar/readme.md +0 -63
  181. package/dist/radio/Radio.stories.js +0 -166
  182. package/dist/radio/readme.md +0 -70
  183. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  184. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  185. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  186. package/dist/select/Select.stories.js +0 -235
  187. package/dist/select/readme.md +0 -72
  188. package/dist/slider/Slider.stories.js +0 -241
  189. package/dist/slider/readme.md +0 -64
  190. package/dist/spinner/Spinner.stories.js +0 -183
  191. package/dist/spinner/readme.md +0 -65
  192. package/dist/switch/Switch.stories.js +0 -134
  193. package/dist/switch/readme.md +0 -133
  194. package/dist/tabs/Tabs.stories.js +0 -130
  195. package/dist/tabs/readme.md +0 -78
  196. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  197. package/dist/tabs-for-sections/readme.md +0 -78
  198. package/dist/toggle/Toggle.stories.js +0 -297
  199. package/dist/toggle/readme.md +0 -80
  200. package/dist/toggle-group/readme.md +0 -82
  201. package/dist/upload/Upload.stories.js +0 -72
  202. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  203. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  204. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  205. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  206. package/dist/upload/file-upload/audio-icon.svg +0 -4
  207. package/dist/upload/file-upload/close.svg +0 -4
  208. package/dist/upload/file-upload/file-icon.svg +0 -4
  209. package/dist/upload/file-upload/video-icon.svg +0 -4
  210. package/dist/upload/readme.md +0 -37
  211. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  212. package/dist/upload/transaction/audio-icon.svg +0 -4
  213. package/dist/upload/transaction/error-icon.svg +0 -4
  214. package/dist/upload/transaction/file-icon-err.svg +0 -4
  215. package/dist/upload/transaction/file-icon.svg +0 -4
  216. package/dist/upload/transaction/image-icon-err.svg +0 -4
  217. package/dist/upload/transaction/image-icon.svg +0 -4
  218. package/dist/upload/transaction/success-icon.svg +0 -4
  219. package/dist/upload/transaction/video-icon-err.svg +0 -4
  220. package/dist/upload/transaction/video-icon.svg +0 -4
  221. package/dist/wizard/invalid_icon.svg +0 -6
  222. package/dist/wizard/valid_icon.svg +0 -6
  223. package/dist/wizard/validation-wrong.svg +0 -6
  224. package/test/TabsForSections.test.js +0 -34
@@ -19,32 +19,16 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
19
19
 
20
20
  var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
21
21
 
22
- var _successIcon = _interopRequireDefault(require("./success-icon.svg"));
23
-
24
- var _errorIcon = _interopRequireDefault(require("./error-icon.svg"));
25
-
26
- var _fileIcon = _interopRequireDefault(require("./file-icon.svg"));
27
-
28
- var _imageIcon = _interopRequireDefault(require("./image-icon.svg"));
29
-
30
- var _videoIcon = _interopRequireDefault(require("./video-icon.svg"));
31
-
32
- var _audioIcon = _interopRequireDefault(require("./audio-icon.svg"));
33
-
34
- var _fileIconErr = _interopRequireDefault(require("./file-icon-err.svg"));
35
-
36
- var _imageIconErr = _interopRequireDefault(require("./image-icon-err.svg"));
37
-
38
- var _videoIconErr = _interopRequireDefault(require("./video-icon-err.svg"));
39
-
40
- var _audioIconErr = _interopRequireDefault(require("./audio-icon-err.svg"));
22
+ var _Icons = require("./Icons");
41
23
 
42
24
  var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
43
25
 
44
26
  var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
45
27
 
28
+ var _BackgroundColorContext = require("../../BackgroundColorContext.js");
29
+
46
30
  function _templateObject5() {
47
- 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"]);
48
32
 
49
33
  _templateObject5 = function _templateObject5() {
50
34
  return data;
@@ -54,7 +38,7 @@ function _templateObject5() {
54
38
  }
55
39
 
56
40
  function _templateObject4() {
57
- 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"]);
58
42
 
59
43
  _templateObject4 = function _templateObject4() {
60
44
  return data;
@@ -64,7 +48,7 @@ function _templateObject4() {
64
48
  }
65
49
 
66
50
  function _templateObject3() {
67
- 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"]);
68
52
 
69
53
  _templateObject3 = function _templateObject3() {
70
54
  return data;
@@ -74,7 +58,7 @@ function _templateObject3() {
74
58
  }
75
59
 
76
60
  function _templateObject2() {
77
- 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"]);
78
62
 
79
63
  _templateObject2 = function _templateObject2() {
80
64
  return data;
@@ -84,7 +68,7 @@ function _templateObject2() {
84
68
  }
85
69
 
86
70
  function _templateObject() {
87
- 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"]);
88
72
 
89
73
  _templateObject = function _templateObject() {
90
74
  return data;
@@ -104,23 +88,21 @@ var DxcTransaction = function DxcTransaction(_ref) {
104
88
  message = _ref$message === void 0 ? "" : _ref$message;
105
89
  var colorsTheme = (0, _useTheme["default"])();
106
90
 
107
- 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;
108
92
 
109
93
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
110
94
  theme: colorsTheme.upload
111
95
  }, _react["default"].createElement(DXCTransaction, {
112
96
  status: status
113
97
  }, _react["default"].createElement(FileImage, {
114
- src: icon
115
- }), status === "processing" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_Spinner["default"], {
116
- mode: "small"
117
- })) || status === "success" && _react["default"].createElement(Prueba, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, {
118
98
  status: status
119
- })) || 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"], {
120
104
  title: message
121
- }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, {
122
- status: status
123
- }))));
105
+ }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, null, _Icons.errorIcon), " ")));
124
106
  };
125
107
 
126
108
  DxcTransaction.propTypes = {
@@ -133,20 +115,34 @@ DxcTransaction.propTypes = {
133
115
  var DXCTransaction = _styledComponents["default"].div(_templateObject(), function (props) {
134
116
  return props.theme.fontFamily;
135
117
  }, function (props) {
136
- return props.status === "error" && "".concat(props.theme.errorColor);
118
+ return props.status === "error" && props.theme.errorColor;
137
119
  });
138
120
 
139
- var FileImage = _styledComponents["default"].img(_templateObject2(), function (props) {
140
- 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;
141
129
  });
142
130
 
143
- 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
+ });
144
142
 
145
- var FileName = _styledComponents["default"].div(_templateObject4());
143
+ var FileStatus = _styledComponents["default"].div(_templateObject4());
146
144
 
147
- var FileStatus = _styledComponents["default"].div(_templateObject5(), function (props) {
148
- return props.status === "success" && "url('".concat(_successIcon["default"], "') no-repeat padding-box") || props.status === "error" && "url('".concat(_errorIcon["default"], "') no-repeat padding-box");
149
- });
145
+ var FileData = _styledComponents["default"].div(_templateObject5());
150
146
 
151
147
  var _default = DxcTransaction;
152
148
  exports["default"] = _default;
@@ -32,7 +32,7 @@ function _templateObject5() {
32
32
  }
33
33
 
34
34
  function _templateObject4() {
35
- 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"]);
36
36
 
37
37
  _templateObject4 = function _templateObject4() {
38
38
  return data;
@@ -42,7 +42,7 @@ function _templateObject4() {
42
42
  }
43
43
 
44
44
  function _templateObject3() {
45
- 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"]);
46
46
 
47
47
  _templateObject3 = function _templateObject3() {
48
48
  return data;
@@ -62,7 +62,7 @@ function _templateObject2() {
62
62
  }
63
63
 
64
64
  function _templateObject() {
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 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"]);
66
66
 
67
67
  _templateObject = function _templateObject() {
68
68
  return data;
@@ -95,7 +95,9 @@ DxcTransactions.propTypes = {
95
95
  var DXCTransactions = _styledComponents["default"].div(_templateObject(), function (props) {
96
96
  return props.theme.fontFamily;
97
97
  }, function (props) {
98
- return props.theme.lightWhite;
98
+ return props.theme.shadowColor;
99
+ }, function (props) {
100
+ return props.theme.backgroundColor;
99
101
  }, function (props) {
100
102
  return props.theme.scrollBarTrackColor;
101
103
  }, function (props) {
@@ -105,17 +107,31 @@ var DXCTransactions = _styledComponents["default"].div(_templateObject(), functi
105
107
  var TransactionsText = _styledComponents["default"].span(_templateObject2());
106
108
 
107
109
  var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), function (props) {
108
- 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;
109
119
  });
110
120
 
111
121
  var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(), function (props) {
112
- 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;
127
+ }, function (props) {
128
+ return props.theme.uploadedFilesSubtitleFontTextTransform;
113
129
  }, function (props) {
114
- return props.theme.fontColor;
130
+ return props.theme.uploadedFilesSubtitleFontColor;
115
131
  });
116
132
 
117
133
  var TransactionsNumber = _styledComponents["default"].span(_templateObject5(), function (props) {
118
- return props.theme.fontWeight;
134
+ return props.theme.uploadedFilesNumberFontWeight;
119
135
  });
120
136
 
121
137
  var _default = DxcTransactions;
@@ -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,7 +17,7 @@ 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
 
@@ -27,12 +27,20 @@ var _variables = require("../common/variables.js");
27
27
 
28
28
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
29
29
 
30
- var _valid_icon = _interopRequireDefault(require("./valid_icon.svg"));
30
+ var _Icons = require("./Icons");
31
31
 
32
- var _invalid_icon = _interopRequireDefault(require("./invalid_icon.svg"));
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
+ };
38
+
39
+ return data;
40
+ }
33
41
 
34
42
  function _templateObject13() {
35
- 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"]);
36
44
 
37
45
  _templateObject13 = function _templateObject13() {
38
46
  return data;
@@ -42,7 +50,7 @@ function _templateObject13() {
42
50
  }
43
51
 
44
52
  function _templateObject12() {
45
- 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"]);
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"]);
46
54
 
47
55
  _templateObject12 = function _templateObject12() {
48
56
  return data;
@@ -52,7 +60,7 @@ function _templateObject12() {
52
60
  }
53
61
 
54
62
  function _templateObject11() {
55
- 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"]);
63
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 12px;\n"]);
56
64
 
57
65
  _templateObject11 = function _templateObject11() {
58
66
  return data;
@@ -62,7 +70,7 @@ function _templateObject11() {
62
70
  }
63
71
 
64
72
  function _templateObject10() {
65
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 10px;\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"]);
66
74
 
67
75
  _templateObject10 = function _templateObject10() {
68
76
  return data;
@@ -72,7 +80,7 @@ function _templateObject10() {
72
80
  }
73
81
 
74
82
  function _templateObject9() {
75
- 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"]);
76
84
 
77
85
  _templateObject9 = function _templateObject9() {
78
86
  return data;
@@ -82,7 +90,7 @@ function _templateObject9() {
82
90
  }
83
91
 
84
92
  function _templateObject8() {
85
- 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: 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"]);
86
94
 
87
95
  _templateObject8 = function _templateObject8() {
88
96
  return data;
@@ -122,7 +130,7 @@ function _templateObject5() {
122
130
  }
123
131
 
124
132
  function _templateObject4() {
125
- 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"]);
126
134
 
127
135
  _templateObject4 = function _templateObject4() {
128
136
  return data;
@@ -132,7 +140,7 @@ function _templateObject4() {
132
140
  }
133
141
 
134
142
  function _templateObject3() {
135
- 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"]);
136
144
 
137
145
  _templateObject3 = function _templateObject3() {
138
146
  return data;
@@ -171,10 +179,10 @@ var DxcWizard = function DxcWizard(_ref) {
171
179
  _ref$tabIndex = _ref.tabIndex,
172
180
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
173
181
 
174
- var _React$useState = _react["default"].useState(currentStep || 0),
175
- _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
176
- innerCurrent = _React$useState2[0],
177
- 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];
178
186
 
179
187
  var renderedCurrent = currentStep == null ? innerCurrent : currentStep;
180
188
  var colorsTheme = (0, _useTheme["default"])();
@@ -190,7 +198,7 @@ var DxcWizard = function DxcWizard(_ref) {
190
198
  };
191
199
 
192
200
  return _react["default"].createElement(_styledComponents.ThemeProvider, {
193
- theme: colorsTheme
201
+ theme: colorsTheme.wizard
194
202
  }, _react["default"].createElement(StepsContainer, {
195
203
  mode: mode,
196
204
  margin: margin
@@ -214,21 +222,20 @@ var DxcWizard = function DxcWizard(_ref) {
214
222
  disabled: step.disabled
215
223
  }, step.icon ? _react["default"].createElement(StepIconContainer, {
216
224
  disabled: step.disabled
217
- }, (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, {
218
229
  src: step.iconSrc
219
230
  }) : _react["default"].createElement(Number, {
220
231
  disabled: step.disabled,
221
232
  current: i === renderedCurrent
222
- }, i + 1)), step.valid !== undefined ? step.valid ? _react["default"].createElement(ValidityIcon, {
223
- src: _valid_icon["default"]
224
- }) : _react["default"].createElement(ValidityIcon, {
225
- src: _invalid_icon["default"]
226
- }) : ""), step.label || step.description ? _react["default"].createElement(InfoContainer, null, step.label ? _react["default"].createElement(Label, {
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, {
227
234
  disabled: step.disabled,
228
- active: i <= innerCurrent
235
+ visited: i <= innerCurrent
229
236
  }, step.label) : "", step.description ? _react["default"].createElement(Description, {
230
237
  disabled: step.disabled,
231
- active: i <= innerCurrent
238
+ visited: i <= innerCurrent
232
239
  }, step.description) : "") : ""), i === steps.length - 1 ? "" : _react["default"].createElement(StepSeparator, {
233
240
  mode: mode
234
241
  }));
@@ -240,7 +247,7 @@ var StepsContainer = _styledComponents["default"].div(_templateObject(), functio
240
247
  }, function (props) {
241
248
  return props.mode === "vertical" ? "height: 500px" : "width: 100%";
242
249
  }, function (props) {
243
- return props.theme.wizard.fontFamily;
250
+ return props.theme.fontFamily;
244
251
  }, function (props) {
245
252
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
246
253
  }, function (props) {
@@ -264,99 +271,114 @@ var StepContainer = _styledComponents["default"].div(_templateObject2(), functio
264
271
  });
265
272
 
266
273
  var Step = _styledComponents["default"].button(_templateObject3(), function (props) {
267
- 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";
268
275
  }, function (props) {
269
276
  return props.disabled ? "cursor: not-allowed" : "";
270
277
  }, function (props) {
271
278
  return props.disabled ? "" : "cursor: pointer";
279
+ }, function (props) {
280
+ return props.theme.focusColor;
272
281
  });
273
282
 
274
283
  var StepHeader = _styledComponents["default"].div(_templateObject4());
275
284
 
276
285
  var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
277
- return !props.current && !props.disabled ? "".concat(props.theme.wizard.circleSelectedWidth) : "".concat(props.theme.wizard.circleWidth);
286
+ return props.disabled ? props.theme.disabledCircleWidth : props.current ? props.theme.selectedCircleWidth : props.theme.circleWidth;
278
287
  }, function (props) {
279
- return !props.current && !props.disabled ? "".concat(props.theme.wizard.circleSelectedHeight) : "".concat(props.theme.wizard.circleHeight);
288
+ return props.disabled ? props.theme.disabledCircleHeight : props.current ? props.theme.selectedCircleHeight : props.theme.circleHeight;
280
289
  }, function (props) {
281
- return "\n ".concat(!props.current && !props.disabled ? "border: ".concat(props.theme.wizard.circleBorderThickness, " ").concat(props.theme.wizard.circleBorderStyle, " ").concat(props.theme.wizard.circleBorderColor, ";") : props.current ? "border: ".concat(props.theme.wizard.circleSelectedBorderThickness, " ").concat(props.theme.wizard.circleSelectedBorderStyle, " ").concat(props.theme.wizard.circleSelectedBorderColor, ";") : props.disabled ? "border: ".concat(props.theme.wizard.circleDisabledBorderThickness, " ").concat(props.theme.wizard.circleDisabledBorderStyle, " ").concat(props.theme.wizard.circleDisabledBorderColor, ";") : "", "\n background: ").concat(props.disabled ? "".concat(props.theme.wizard.disabledBackgroundColor) : props.current ? "".concat(props.theme.wizard.stepContainerSelectedBackgroundColor) : "".concat(props.theme.wizard.stepContainerBackgroundColor), ";\n ");
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 ");
282
291
  }, function (props) {
283
- return props.disabled ? "color: ".concat(props.theme.wizard.disabledFontColor, ";") : "color: ".concat(props.current ? props.theme.wizard.stepContainerSelectedFontColor : props.theme.wizard.stepContainerFontColor, ";");
292
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.current ? props.theme.stepContainerSelectedFontColor : props.theme.stepContainerFontColor, ";");
284
293
  }, function (props) {
285
- return !props.current && !props.disabled ? props.theme.wizard.circleBorderRadius : props.current ? props.theme.wizard.circleSelectedBorderRadius : props.disabled ? props.theme.wizard.circleDisabledBorderRadius : "";
294
+ return !props.current && !props.disabled ? props.theme.circleBorderRadius : props.current ? props.theme.selectedCircleBorderRadius : props.disabled ? props.theme.disabledCircleBorderRadius : "";
286
295
  });
287
296
 
288
297
  var Icon = _styledComponents["default"].img(_templateObject6(), function (props) {
289
- return props.theme.wizard.stepContainerIconWidth;
298
+ return props.theme.stepContainerIconSize;
290
299
  }, function (props) {
291
- return props.theme.wizard.stepContainerIconHeight;
300
+ return props.theme.stepContainerIconSize;
292
301
  });
293
302
 
294
303
  var StepIconContainer = _styledComponents["default"].div(_templateObject7(), function (props) {
295
- return props.theme.wizard.stepContainerIconWidth;
304
+ return props.theme.stepContainerIconSize;
305
+ }, function (props) {
306
+ return props.theme.stepContainerIconSize;
307
+ });
308
+
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);
316
+ }, function (props) {
317
+ return props.theme.stepContainerIconSize;
296
318
  }, function (props) {
297
- return props.theme.wizard.stepContainerIconHeight;
319
+ return props.theme.stepContainerIconSize;
298
320
  });
299
321
 
300
- var Number = _styledComponents["default"].p(_templateObject8(), function (props) {
301
- return props.theme.wizard.stepContainerFontSize;
322
+ var Number = _styledComponents["default"].p(_templateObject9(), function (props) {
323
+ return props.theme.stepContainerFontSize;
302
324
  }, function (props) {
303
- return props.theme.wizard.stepContainerFontFamily;
325
+ return props.theme.stepContainerFontFamily;
304
326
  }, function (props) {
305
- return props.theme.wizard.stepContainerFontStyle;
327
+ return props.theme.stepContainerFontStyle;
306
328
  }, function (props) {
307
- return props.theme.wizard.stepContainerFontWeight;
329
+ return props.theme.stepContainerFontWeight;
308
330
  }, function (props) {
309
- return props.theme.wizard.stepContainerLetterSpacing;
331
+ return props.theme.stepContainerLetterSpacing;
310
332
  });
311
333
 
312
- var ValidityIcon = _styledComponents["default"].img(_templateObject9());
334
+ var ValidityIconContainer = _styledComponents["default"].div(_templateObject10());
313
335
 
314
- var InfoContainer = _styledComponents["default"].div(_templateObject10());
336
+ var InfoContainer = _styledComponents["default"].div(_templateObject11());
315
337
 
316
- var Label = _styledComponents["default"].p(_templateObject11(), function (props) {
317
- return props.theme.wizard.labelTextAlign;
338
+ var Label = _styledComponents["default"].p(_templateObject12(), function (props) {
339
+ return props.theme.labelTextAlign;
318
340
  }, function (props) {
319
- return props.theme.wizard.labelFontFamily;
341
+ return props.theme.labelFontFamily;
320
342
  }, function (props) {
321
- return props.theme.wizard.labelFontSize;
343
+ return props.theme.labelFontSize;
322
344
  }, function (props) {
323
- return props.theme.wizard.labelFontStyle;
345
+ return props.theme.labelFontStyle;
324
346
  }, function (props) {
325
- return props.theme.wizard.labelFontWeight;
347
+ return props.theme.labelFontWeight;
326
348
  }, function (props) {
327
- return props.theme.wizard.labelLetterSpacing;
349
+ return props.theme.labelLetterSpacing;
328
350
  }, function (props) {
329
- return props.disabled ? "color: ".concat(props.theme.wizard.disabledFontColor, ";") : "color: ".concat(props.active ? props.theme.wizard.labelActiveFontColor : props.theme.wizard.labelFontColor, ";");
351
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.visited ? props.theme.visitedLabelFontColor : props.theme.labelFontColor, ";");
330
352
  }, function (props) {
331
- return props.theme.wizard.labelFontTextTransform;
353
+ return props.theme.labelFontTextTransform;
332
354
  });
333
355
 
334
- var Description = _styledComponents["default"].p(_templateObject12(), function (props) {
335
- return props.theme.wizard.descriptionTextAlign;
356
+ var Description = _styledComponents["default"].p(_templateObject13(), function (props) {
357
+ return props.theme.descriptionTextAlign;
336
358
  }, function (props) {
337
- return props.theme.wizard.descriptionFontFamily;
359
+ return props.theme.descriptionFontFamily;
338
360
  }, function (props) {
339
- return props.theme.wizard.descriptionFontSize;
361
+ return props.theme.descriptionFontSize;
340
362
  }, function (props) {
341
- return props.theme.wizard.descriptionFontStyle;
363
+ return props.theme.descriptionFontStyle;
342
364
  }, function (props) {
343
- return props.theme.wizard.descriptionFontWeight;
365
+ return props.theme.descriptionFontWeight;
344
366
  }, function (props) {
345
- return props.theme.wizard.descriptionLetterSpacing;
367
+ return props.theme.descriptionLetterSpacing;
346
368
  }, function (props) {
347
- return props.theme.wizard.descriptionFontTextTransform;
369
+ return props.theme.descriptionFontTextTransform;
348
370
  }, function (props) {
349
- return props.disabled ? "color: ".concat(props.theme.wizard.disabledFontColor, ";") : "color: ".concat(props.active ? props.theme.wizard.descriptionActiveFontColor : props.theme.wizard.descriptionFontColor, ";");
371
+ return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.visited ? props.theme.visitedDescriptionFontColor : props.theme.descriptionFontColor, ";");
350
372
  });
351
373
 
352
- var StepSeparator = _styledComponents["default"].div(_templateObject13(), function (props) {
374
+ var StepSeparator = _styledComponents["default"].div(_templateObject14(), function (props) {
353
375
  return props.mode === "horizontal" ? "" : "0";
354
376
  }, function (props) {
355
377
  return props.mode === "horizontal" ? "0" : "";
356
378
  }, function (props) {
357
379
  return props.mode === "vertical" ? "margin: 0 18px;" : "";
358
380
  }, function (props) {
359
- return "".concat(props.theme.wizard.separatorBorderStyle, " ").concat(props.theme.wizard.separatorBorderThickness, " ").concat(props.theme.wizard.separatorColor);
381
+ return "".concat(props.theme.separatorBorderStyle, " ").concat(props.theme.separatorBorderThickness, " ").concat(props.theme.separatorColor);
360
382
  });
361
383
 
362
384
  DxcWizard.propTypes = {
@@ -0,0 +1,18 @@
1
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2
+ type Margin = {
3
+ top?: Space;
4
+ bottom?: Space;
5
+ left?: Space;
6
+ right?: Space;
7
+ };
8
+
9
+ type Props = {
10
+ mode?: "horizontal" | "vertical";
11
+ currentStep?: number;
12
+ onStepClick?: void;
13
+ steps?: any;
14
+ margin?: Space | Margin;
15
+ tabIndex?: number;
16
+ };
17
+
18
+ export default function DxcWizard(props: Props): JSX.Element;