@dxc-technology/halstack-react 0.0.0-bfa479f → 0.0.0-c060fff

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 (264) hide show
  1. package/{dist/BackgroundColorContext.js → BackgroundColorContext.js} +0 -0
  2. package/ThemeContext.js +250 -0
  3. package/V3Select/V3Select.js +549 -0
  4. package/V3Select/index.d.ts +27 -0
  5. package/V3Textarea/V3Textarea.js +264 -0
  6. package/V3Textarea/index.d.ts +27 -0
  7. package/{dist/accordion → accordion}/Accordion.js +119 -50
  8. package/accordion/index.d.ts +28 -0
  9. package/{dist/accordion-group → accordion-group}/AccordionGroup.js +33 -1
  10. package/accordion-group/index.d.ts +16 -0
  11. package/alert/Alert.js +403 -0
  12. package/alert/index.d.ts +51 -0
  13. package/badge/Badge.js +63 -0
  14. package/{dist/box → box}/Box.js +27 -18
  15. package/box/index.d.ts +25 -0
  16. package/button/Button.js +238 -0
  17. package/button/Button.stories.js +27 -0
  18. package/button/index.d.ts +24 -0
  19. package/{dist/card → card}/Card.js +15 -8
  20. package/card/index.d.ts +22 -0
  21. package/{dist/checkbox → checkbox}/Checkbox.js +89 -23
  22. package/checkbox/index.d.ts +24 -0
  23. package/{dist/chip → chip}/Chip.js +63 -21
  24. package/chip/index.d.ts +22 -0
  25. package/{dist/common → common}/OpenSans.css +0 -0
  26. package/{dist/common → common}/RequiredComponent.js +0 -0
  27. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  28. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  29. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  30. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  31. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  32. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  33. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  34. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  35. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  36. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  37. package/{dist/common → common}/utils.js +0 -0
  38. package/common/variables.js +1574 -0
  39. package/{dist/date → date}/Date.js +60 -38
  40. package/date/index.d.ts +27 -0
  41. package/date-input/DateInput.js +400 -0
  42. package/date-input/index.d.ts +95 -0
  43. package/{dist/dialog → dialog}/Dialog.js +44 -29
  44. package/dialog/index.d.ts +18 -0
  45. package/{dist/dropdown → dropdown}/Dropdown.js +162 -74
  46. package/dropdown/index.d.ts +26 -0
  47. package/file-input/FileInput.js +644 -0
  48. package/file-input/FileItem.js +287 -0
  49. package/file-input/index.d.ts +81 -0
  50. package/{dist/footer → footer}/Footer.js +96 -42
  51. package/footer/Icons.js +77 -0
  52. package/footer/index.d.ts +25 -0
  53. package/{dist/header → header}/Header.js +157 -72
  54. package/header/Icons.js +59 -0
  55. package/header/index.d.ts +25 -0
  56. package/heading/Heading.js +230 -0
  57. package/heading/index.d.ts +17 -0
  58. package/input-text/Icons.js +22 -0
  59. package/{dist/input-text → input-text}/InputText.js +159 -63
  60. package/input-text/index.d.ts +36 -0
  61. package/{dist/layout → layout}/ApplicationLayout.js +7 -11
  62. package/layout/Icons.js +55 -0
  63. package/{dist/link → link}/Link.js +76 -39
  64. package/link/index.d.ts +23 -0
  65. package/main.d.ts +40 -0
  66. package/{dist/main.js → main.js} +63 -15
  67. package/number-input/NumberInput.js +136 -0
  68. package/number-input/NumberInputContext.js +16 -0
  69. package/number-input/index.d.ts +113 -0
  70. package/package.json +25 -19
  71. package/paginator/Icons.js +66 -0
  72. package/{dist/paginator → paginator}/Paginator.js +86 -42
  73. package/paginator/index.d.ts +20 -0
  74. package/password-input/PasswordInput.js +203 -0
  75. package/password-input/index.d.ts +94 -0
  76. package/{dist/progress-bar → progress-bar}/ProgressBar.js +88 -38
  77. package/progress-bar/index.d.ts +18 -0
  78. package/{dist/radio → radio}/Radio.js +28 -9
  79. package/radio/index.d.ts +23 -0
  80. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +64 -38
  81. package/resultsetTable/index.d.ts +19 -0
  82. package/select/Select.js +1137 -0
  83. package/select/index.d.ts +131 -0
  84. package/{dist/sidenav → sidenav}/Sidenav.js +47 -23
  85. package/sidenav/index.d.ts +13 -0
  86. package/slider/Slider.js +404 -0
  87. package/slider/index.d.ts +29 -0
  88. package/spinner/Spinner.js +381 -0
  89. package/spinner/index.d.ts +17 -0
  90. package/{dist/switch → switch}/Switch.js +42 -14
  91. package/switch/index.d.ts +24 -0
  92. package/{dist/table → table}/Table.js +45 -11
  93. package/table/index.d.ts +13 -0
  94. package/{dist/tabs → tabs}/Tabs.js +37 -19
  95. package/tabs/index.d.ts +19 -0
  96. package/{dist/tag → tag}/Tag.js +50 -36
  97. package/tag/index.d.ts +24 -0
  98. package/text-input/TextInput.js +974 -0
  99. package/text-input/index.d.ts +135 -0
  100. package/textarea/Textarea.js +369 -0
  101. package/textarea/index.d.ts +117 -0
  102. package/{dist/toggle → toggle}/Toggle.js +0 -0
  103. package/toggle/index.d.ts +21 -0
  104. package/toggle-group/ToggleGroup.js +327 -0
  105. package/toggle-group/index.d.ts +21 -0
  106. package/{dist/upload → upload}/Upload.js +1 -5
  107. package/{dist/upload → upload}/buttons-upload/ButtonsUpload.js +28 -16
  108. package/upload/buttons-upload/Icons.js +40 -0
  109. package/{dist/upload → upload}/dragAndDropArea/DragAndDropArea.js +61 -25
  110. package/upload/dragAndDropArea/Icons.js +39 -0
  111. package/{dist/upload → upload}/file-upload/FileToUpload.js +52 -25
  112. package/upload/file-upload/Icons.js +66 -0
  113. package/{dist/upload → upload}/files-upload/FilesToUpload.js +3 -3
  114. package/upload/index.d.ts +15 -0
  115. package/upload/transaction/Icons.js +160 -0
  116. package/{dist/upload → upload}/transaction/Transaction.js +37 -41
  117. package/{dist/upload → upload}/transactions/Transactions.js +24 -8
  118. package/{dist/useTheme.js → useTheme.js} +0 -0
  119. package/wizard/Icons.js +65 -0
  120. package/{dist/wizard → wizard}/Wizard.js +106 -56
  121. package/wizard/index.d.ts +18 -0
  122. package/README.md +0 -66
  123. package/babel.config.js +0 -8
  124. package/dist/ThemeContext.js +0 -216
  125. package/dist/accordion/Accordion.stories.js +0 -207
  126. package/dist/accordion/readme.md +0 -96
  127. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  128. package/dist/accordion-group/readme.md +0 -70
  129. package/dist/alert/Alert.js +0 -318
  130. package/dist/alert/Alert.stories.js +0 -158
  131. package/dist/alert/close.svg +0 -4
  132. package/dist/alert/error.svg +0 -4
  133. package/dist/alert/info.svg +0 -4
  134. package/dist/alert/readme.md +0 -43
  135. package/dist/alert/success.svg +0 -4
  136. package/dist/alert/warning.svg +0 -4
  137. package/dist/badge/Badge.js +0 -40
  138. package/dist/button/Button.js +0 -219
  139. package/dist/button/Button.stories.js +0 -224
  140. package/dist/button/readme.md +0 -93
  141. package/dist/checkbox/Checkbox.stories.js +0 -144
  142. package/dist/checkbox/readme.md +0 -116
  143. package/dist/common/variables.js +0 -521
  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/heading/Heading.js +0 -163
  168. package/dist/input-text/InputText.stories.js +0 -209
  169. package/dist/input-text/error.svg +0 -1
  170. package/dist/input-text/readme.md +0 -91
  171. package/dist/layout/facebook.svg +0 -45
  172. package/dist/layout/linkedin.svg +0 -50
  173. package/dist/layout/twitter.svg +0 -53
  174. package/dist/link/readme.md +0 -51
  175. package/dist/paginator/images/next.svg +0 -3
  176. package/dist/paginator/images/nextPage.svg +0 -3
  177. package/dist/paginator/images/previous.svg +0 -3
  178. package/dist/paginator/images/previousPage.svg +0 -3
  179. package/dist/paginator/readme.md +0 -50
  180. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  181. package/dist/progress-bar/readme.md +0 -63
  182. package/dist/radio/Radio.stories.js +0 -166
  183. package/dist/radio/readme.md +0 -70
  184. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  185. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  186. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  187. package/dist/select/Select.js +0 -490
  188. package/dist/select/Select.stories.js +0 -235
  189. package/dist/select/readme.md +0 -72
  190. package/dist/slider/Slider.js +0 -267
  191. package/dist/slider/Slider.stories.js +0 -241
  192. package/dist/slider/readme.md +0 -64
  193. package/dist/spinner/Spinner.js +0 -198
  194. package/dist/spinner/Spinner.stories.js +0 -183
  195. package/dist/spinner/readme.md +0 -65
  196. package/dist/switch/Switch.stories.js +0 -134
  197. package/dist/switch/readme.md +0 -133
  198. package/dist/tabs/Tabs.stories.js +0 -130
  199. package/dist/tabs/readme.md +0 -78
  200. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  201. package/dist/tabs-for-sections/readme.md +0 -78
  202. package/dist/textarea/Textarea.js +0 -238
  203. package/dist/toggle/Toggle.stories.js +0 -297
  204. package/dist/toggle/readme.md +0 -80
  205. package/dist/toggle-group/ToggleGroup.js +0 -223
  206. package/dist/toggle-group/readme.md +0 -82
  207. package/dist/upload/Upload.stories.js +0 -72
  208. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  209. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  210. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  211. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  212. package/dist/upload/file-upload/audio-icon.svg +0 -4
  213. package/dist/upload/file-upload/close.svg +0 -4
  214. package/dist/upload/file-upload/file-icon.svg +0 -4
  215. package/dist/upload/file-upload/video-icon.svg +0 -4
  216. package/dist/upload/readme.md +0 -37
  217. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  218. package/dist/upload/transaction/audio-icon.svg +0 -4
  219. package/dist/upload/transaction/error-icon.svg +0 -4
  220. package/dist/upload/transaction/file-icon-err.svg +0 -4
  221. package/dist/upload/transaction/file-icon.svg +0 -4
  222. package/dist/upload/transaction/image-icon-err.svg +0 -4
  223. package/dist/upload/transaction/image-icon.svg +0 -4
  224. package/dist/upload/transaction/success-icon.svg +0 -4
  225. package/dist/upload/transaction/video-icon-err.svg +0 -4
  226. package/dist/upload/transaction/video-icon.svg +0 -4
  227. package/dist/wizard/invalid_icon.svg +0 -6
  228. package/dist/wizard/valid_icon.svg +0 -6
  229. package/dist/wizard/validation-wrong.svg +0 -6
  230. package/test/Accordion.test.js +0 -33
  231. package/test/AccordionGroup.test.js +0 -125
  232. package/test/Alert.test.js +0 -53
  233. package/test/Box.test.js +0 -10
  234. package/test/Button.test.js +0 -18
  235. package/test/Card.test.js +0 -30
  236. package/test/Checkbox.test.js +0 -45
  237. package/test/Chip.test.js +0 -25
  238. package/test/Date.test.js +0 -393
  239. package/test/Dialog.test.js +0 -23
  240. package/test/Dropdown.test.js +0 -130
  241. package/test/Footer.test.js +0 -99
  242. package/test/Header.test.js +0 -39
  243. package/test/Heading.test.js +0 -35
  244. package/test/InputText.test.js +0 -240
  245. package/test/Link.test.js +0 -42
  246. package/test/Paginator.test.js +0 -177
  247. package/test/ProgressBar.test.js +0 -35
  248. package/test/Radio.test.js +0 -37
  249. package/test/ResultsetTable.test.js +0 -330
  250. package/test/Select.test.js +0 -192
  251. package/test/Sidenav.test.js +0 -45
  252. package/test/Slider.test.js +0 -82
  253. package/test/Spinner.test.js +0 -27
  254. package/test/Switch.test.js +0 -45
  255. package/test/Table.test.js +0 -36
  256. package/test/Tabs.test.js +0 -109
  257. package/test/TabsForSections.test.js +0 -34
  258. package/test/Tag.test.js +0 -32
  259. package/test/TextArea.test.js +0 -52
  260. package/test/ToggleGroup.test.js +0 -81
  261. package/test/Upload.test.js +0 -60
  262. package/test/Wizard.test.js +0 -130
  263. package/test/mocks/pngMock.js +0 -1
  264. package/test/mocks/svgMock.js +0 -1
@@ -0,0 +1,287 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
19
+
20
+ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
21
+
22
+ function _templateObject10() {
23
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"]);
24
+
25
+ _templateObject10 = function _templateObject10() {
26
+ return data;
27
+ };
28
+
29
+ return data;
30
+ }
31
+
32
+ function _templateObject9() {
33
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n font-size: 1rem;\n font-family: ", ";\n border: 1px solid transparent;\n border-radius: 4px;\n margin-left: 4px;\n background-color: transparent;\n padding: 3px;\n cursor: pointer;\n svg {\n line-height: 18px;\n }\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n }\n &:active {\n background-color: ", ";\n }\n"]);
34
+
35
+ _templateObject9 = function _templateObject9() {
36
+ return data;
37
+ };
38
+
39
+ return data;
40
+ }
41
+
42
+ function _templateObject8() {
43
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n padding: 3px;\n height: 18px;\n width: 18px;\n color: #d0011b;\n"]);
44
+
45
+ _templateObject8 = function _templateObject8() {
46
+ return data;
47
+ };
48
+
49
+ return data;
50
+ }
51
+
52
+ function _templateObject7() {
53
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n width: ", ";\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"]);
54
+
55
+ _templateObject7 = function _templateObject7() {
56
+ return data;
57
+ };
58
+
59
+ return data;
60
+ }
61
+
62
+ function _templateObject6() {
63
+ var data = (0, _taggedTemplateLiteral2["default"])([""]);
64
+
65
+ _templateObject6 = function _templateObject6() {
66
+ return data;
67
+ };
68
+
69
+ return data;
70
+ }
71
+
72
+ function _templateObject5() {
73
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n background-color: ", ";\n width: 48px;\n height: 48px;\n border-radius: 2px;\n color: ", ";\n"]);
74
+
75
+ _templateObject5 = function _templateObject5() {
76
+ return data;
77
+ };
78
+
79
+ return data;
80
+ }
81
+
82
+ function _templateObject4() {
83
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 48px;\n height: 48px;\n object-fit: contain;\n margin-right: 12px;\n border-radius: 2px;\n"]);
84
+
85
+ _templateObject4 = function _templateObject4() {
86
+ return data;
87
+ };
88
+
89
+ return data;
90
+ }
91
+
92
+ function _templateObject3() {
93
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"]);
94
+
95
+ _templateObject3 = function _templateObject3() {
96
+ return data;
97
+ };
98
+
99
+ return data;
100
+ }
101
+
102
+ function _templateObject2() {
103
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n"]);
104
+
105
+ _templateObject2 = function _templateObject2() {
106
+ return data;
107
+ };
108
+
109
+ return data;
110
+ }
111
+
112
+ function _templateObject() {
113
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n padding: ", ";\n background-color: ", ";\n border-radius: ", ";\n width: ", ";\n min-height: ", ";\n border-color: ", ";\n border-width: ", ";\n border-style: ", ";\n display: flex;\n justify-content: center;\n"]);
114
+
115
+ _templateObject = function _templateObject() {
116
+ return data;
117
+ };
118
+
119
+ return data;
120
+ }
121
+
122
+ var deleteIcon = _react["default"].createElement("svg", {
123
+ xmlns: "http://www.w3.org/2000/svg",
124
+ width: "24",
125
+ height: "24",
126
+ viewBox: "0 0 24 24",
127
+ fill: "currentColor"
128
+ }, _react["default"].createElement("path", {
129
+ d: "M0 0h24v24H0V0z",
130
+ fill: "none"
131
+ }), _react["default"].createElement("path", {
132
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
133
+ }));
134
+
135
+ var errorIcon = _react["default"].createElement("svg", {
136
+ xmlns: "http://www.w3.org/2000/svg",
137
+ height: "24px",
138
+ viewBox: "0 0 24 24",
139
+ width: "24px",
140
+ fill: "currentColor"
141
+ }, _react["default"].createElement("path", {
142
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
143
+ }));
144
+
145
+ var FileItem = function FileItem(_ref) {
146
+ var mode = _ref.mode,
147
+ multiple = _ref.multiple,
148
+ _ref$name = _ref.name,
149
+ name = _ref$name === void 0 ? "" : _ref$name,
150
+ _ref$error = _ref.error,
151
+ error = _ref$error === void 0 ? "" : _ref$error,
152
+ showPreview = _ref.showPreview,
153
+ preview = _ref.preview,
154
+ type = _ref.type,
155
+ numFiles = _ref.numFiles,
156
+ onDelete = _ref.onDelete;
157
+ var colorsTheme = (0, _useTheme["default"])();
158
+ var isImage = type.includes("image");
159
+
160
+ var getIconAriaLabel = function getIconAriaLabel() {
161
+ if (type.includes("video")) {
162
+ return "video";
163
+ }
164
+
165
+ if (type.includes("audio")) {
166
+ return "audio";
167
+ }
168
+
169
+ return "file";
170
+ };
171
+
172
+ return _react["default"].createElement(_styledComponents.ThemeProvider, {
173
+ theme: colorsTheme.fileInput
174
+ }, _react["default"].createElement(Container, {
175
+ mode: mode,
176
+ multiple: multiple,
177
+ error: error,
178
+ showPreview: showPreview,
179
+ numFiles: numFiles
180
+ }, showPreview && (isImage ? _react["default"].createElement(ImagePreview, {
181
+ src: preview,
182
+ alt: name
183
+ }) : _react["default"].createElement(IconPreviewContainer, {
184
+ error: error,
185
+ "aria-label": getIconAriaLabel()
186
+ }, _react["default"].createElement(IconPreview, {
187
+ error: error
188
+ }, preview))), _react["default"].createElement(FileItemContent, null, _react["default"].createElement(FileItemContainer, null, _react["default"].createElement(FileName, {
189
+ mode: mode,
190
+ multiple: multiple,
191
+ error: error,
192
+ showPreview: showPreview,
193
+ numFiles: numFiles
194
+ }, name), error && _react["default"].createElement(ErrorIcon, {
195
+ "aria-label": "Error"
196
+ }, errorIcon), _react["default"].createElement(DeleteIcon, {
197
+ error: error,
198
+ onClick: function onClick() {
199
+ return onDelete(name);
200
+ },
201
+ "aria-label": "Remove ".concat(name)
202
+ }, deleteIcon)), error && (multiple || numFiles > 1) && _react["default"].createElement(ErrorMessage, null, error))));
203
+ };
204
+
205
+ var Container = _styledComponents["default"].div(_templateObject(), function (props) {
206
+ return props.showPreview ? "8px" : "8px 8px 8px 16px";
207
+ }, function (props) {
208
+ return props.error && props.theme.errorFileItemBackgroundColor;
209
+ }, function (props) {
210
+ return props.theme.fileItemBorderRadius;
211
+ }, function (props) {
212
+ return props.mode === "file" && !props.multiple && props.numFiles === 1 ? "calc(230px - 26px)" : !props.showPreview ? "calc(320px - 26px)" : props.showPreview && "calc(320px - 18px)";
213
+ }, function (props) {
214
+ return props.mode === "file" && !props.multiple && props.numFiles === 1 || !props.showPreview && !props.error ? "calc(40px - 18px)" : !props.showPreview && props.error ? "calc(59px - 18px)" : "calc(64px - 18px)";
215
+ }, function (props) {
216
+ return props.error ? props.theme.errorFileItemBorderColor : props.theme.fileItemBorderColor;
217
+ }, function (props) {
218
+ return props.theme.fileItemBorderThickness;
219
+ }, function (props) {
220
+ return props.theme.fileItemBorderStyle;
221
+ });
222
+
223
+ var FileItemContent = _styledComponents["default"].div(_templateObject2());
224
+
225
+ var FileItemContainer = _styledComponents["default"].div(_templateObject3());
226
+
227
+ var ImagePreview = _styledComponents["default"].img(_templateObject4());
228
+
229
+ var IconPreviewContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
230
+ return props.error ? props.theme.errorFileItemIconBackgroundColor : props.theme.fileItemIconBackgroundColor;
231
+ }, function (props) {
232
+ return props.error ? props.theme.errorFileItemIconColor : props.theme.fileItemIconColor;
233
+ });
234
+
235
+ var IconPreview = _styledComponents["default"].div(_templateObject6());
236
+
237
+ var FileName = _styledComponents["default"].span(_templateObject7(), function (props) {
238
+ return props.theme.fileNameFontColor;
239
+ }, function (props) {
240
+ return props.mode === "file" && !props.multiple && props.error && props.numFiles === 1 ? "calc(230px - 76px)" : props.mode === "file" && !props.multiple && !props.error && props.numFiles === 1 ? "calc(230px - 50px)" : !props.showPreview && !props.error ? "calc(320px - 52px)" : !props.showPreview && props.error ? "calc(320px - 76px)" : props.showPreview && props.error ? "calc(320px - 128px)" : props.showPreview && !props.error && "calc(320px - 102px)";
241
+ }, function (props) {
242
+ return props.theme.fileItemFontFamily;
243
+ }, function (props) {
244
+ return props.theme.fileItemFontSize;
245
+ }, function (props) {
246
+ return props.theme.fileItemFontWeight;
247
+ }, function (props) {
248
+ return props.theme.fileItemLineHeight;
249
+ });
250
+
251
+ var ErrorIcon = _styledComponents["default"].span(_templateObject8());
252
+
253
+ var DeleteIcon = _styledComponents["default"].button(_templateObject9(), function (props) {
254
+ return props.theme.fontFamily;
255
+ }, function (props) {
256
+ return props.error ? props.theme.errorHoverDeleteFileItemBackgroundColor : props.theme.hoverDeleteFileItemBackgroundColor;
257
+ }, function (props) {
258
+ return props.error ? props.theme.errorHoverDeleteFileItemBackgroundColor : props.theme.hoverDeleteFileItemBackgroundColor;
259
+ }, function (props) {
260
+ return props.error ? props.theme.errorActiveDeleteFileItemBackgroundColor : props.theme.activeDeleteFileItemBackgroundColor;
261
+ });
262
+
263
+ var ErrorMessage = _styledComponents["default"].span(_templateObject10(), function (props) {
264
+ return props.theme.errorMessageFontColor;
265
+ }, function (props) {
266
+ return props.theme.errorMessageFontFamily;
267
+ }, function (props) {
268
+ return props.theme.errorMessageFontSize;
269
+ }, function (props) {
270
+ return props.theme.errorMessageFontWeight;
271
+ }, function (props) {
272
+ return props.theme.errorMessageLineHeight;
273
+ });
274
+
275
+ FileItem.propTypes = {
276
+ mode: _propTypes["default"].string,
277
+ multiple: _propTypes["default"].bool,
278
+ name: _propTypes["default"].string,
279
+ type: _propTypes["default"].string,
280
+ showPreview: _propTypes["default"]["boolean"],
281
+ numFiles: _propTypes["default"].number,
282
+ preview: _propTypes["default"].string,
283
+ error: _propTypes["default"].string,
284
+ onDelete: _propTypes["default"].func
285
+ };
286
+ var _default = FileItem;
287
+ exports["default"] = _default;
@@ -0,0 +1,81 @@
1
+ type Size = "small" | "medium" | "large" | "fillParent";
2
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3
+ type Margin = {
4
+ top?: Space;
5
+ bottom?: Space;
6
+ left?: Space;
7
+ right?: Space;
8
+ };
9
+ type FileData = {
10
+ error?: string;
11
+ file?: File;
12
+ preview?: string;
13
+ };
14
+
15
+ type Props = {
16
+ /**
17
+ * Name attribute of the file input element.
18
+ */
19
+ name?: string;
20
+ /**
21
+ * Text to be placed above the file input.
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Uses one of the available file input modes:
26
+ * 'file': Files are selected by clicking the button and selecting it through the file explorer.
27
+ * 'filedrop': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
28
+ * 'dropzone': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
29
+ * The drag and drop area of this mode is bigger than the one of the filedrop mode.
30
+ */
31
+ mode?: "file" | "filedrop" | "dropzone";
32
+ /**
33
+ * Helper text to be placed above the file input.
34
+ */
35
+ helperText?: string;
36
+ /**
37
+ * Defines the file types accepted by the component. It is not possible to select a file with a non valid type.
38
+ */
39
+ accept?: string;
40
+ /**
41
+ * An array of FileData representing the selected files.
42
+ */
43
+ value?: FileData[];
44
+ /**
45
+ * Minimum file size allowed (in bytes). If the file size does not comply the minSize, an error will be passed to the FileData.
46
+ */
47
+ minSize?: number;
48
+ /**
49
+ * Maximum file size allowed (in bytes). If the file size does not comply the maxSize, an error will be passed to the FileData.
50
+ */
51
+ maxSize?: number;
52
+ /**
53
+ * If true and if the file is an image, a preview of it will be shown. If it is not an image, an icon refering to the file's type will be shown.
54
+ * If mode is not multiple and there is one file already selected, the file will be replaced by the last selected one.
55
+ */
56
+ showPreview?: boolean;
57
+ /**
58
+ * If true, more than one file can be selected. If false, only one file can be selected.
59
+ */
60
+ multiple?: boolean;
61
+ /**
62
+ * If true, the component will be disabled.
63
+ */
64
+ disabled?: boolean;
65
+ /**
66
+ * This function will be called when the user selects or drops a file. The list of files will be sent as a parameter.
67
+ * In this function, the files can be updated or returned as they come. These files must be passed to the value in order to be shown.
68
+ */
69
+ callbackFile?: (files: FileData[]) => void;
70
+ /**
71
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
72
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
73
+ */
74
+ margin?: Space | Margin;
75
+ /**
76
+ * Value of the tabindex attribute.
77
+ */
78
+ tabIndex?: number;
79
+ };
80
+
81
+ export default function DxcFileInput(props: Props): JSX.Element;
@@ -27,8 +27,22 @@ var _variables = require("../common/variables.js");
27
27
 
28
28
  var _useTheme = _interopRequireDefault(require("../useTheme.js"));
29
29
 
30
+ var _BackgroundColorContext = require("../BackgroundColorContext.js");
31
+
32
+ var _Icons = _interopRequireDefault(require("./Icons"));
33
+
34
+ function _templateObject13() {
35
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n"]);
36
+
37
+ _templateObject13 = function _templateObject13() {
38
+ return data;
39
+ };
40
+
41
+ return data;
42
+ }
43
+
30
44
  function _templateObject12() {
31
- var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: ", ";\n color: ", ";\n font-size: ", ";\n"]);
45
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px 10px;\n color: ", ";\n"]);
32
46
 
33
47
  _templateObject12 = function _templateObject12() {
34
48
  return data;
@@ -38,7 +52,7 @@ function _templateObject12() {
38
52
  }
39
53
 
40
54
  function _templateObject11() {
41
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px 10px;\n color: ", ";\n"]);
55
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n color: ", ";\n }\n\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
42
56
 
43
57
  _templateObject11 = function _templateObject11() {
44
58
  return data;
@@ -48,7 +62,7 @@ function _templateObject11() {
48
62
  }
49
63
 
50
64
  function _templateObject10() {
51
- var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: 25px;\n width: 25px;\n color: ", ";\n }\n\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
65
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n fill: ", ";\n }\n"]);
52
66
 
53
67
  _templateObject10 = function _templateObject10() {
54
68
  return data;
@@ -58,7 +72,7 @@ function _templateObject10() {
58
72
  }
59
73
 
60
74
  function _templateObject9() {
61
- var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: 25px;\n width: 25px;\n fill: ", ";\n }\n"]);
75
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n margin-left: ", ";\n }\n"]);
62
76
 
63
77
  _templateObject9 = function _templateObject9() {
64
78
  return data;
@@ -68,7 +82,7 @@ function _templateObject9() {
68
82
  }
69
83
 
70
84
  function _templateObject8() {
71
- var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n margin-left: ", ";\n }\n"]);
85
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"]);
72
86
 
73
87
  _templateObject8 = function _templateObject8() {
74
88
  return data;
@@ -78,7 +92,7 @@ function _templateObject8() {
78
92
  }
79
93
 
80
94
  function _templateObject7() {
81
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: 34px;\n width: auto;\n"]);
95
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"]);
82
96
 
83
97
  _templateObject7 = function _templateObject7() {
84
98
  return data;
@@ -88,7 +102,7 @@ function _templateObject7() {
88
102
  }
89
103
 
90
104
  function _templateObject6() {
91
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n color: ", ";\n max-width: ", ";\n width: ", ";\n text-align: ", ";\n"]);
105
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n max-width: ", ";\n width: ", ";\n text-align: ", ";\n padding-top: ", ";\n"]);
92
106
 
93
107
  _templateObject6 = function _templateObject6() {
94
108
  return data;
@@ -98,7 +112,7 @@ function _templateObject6() {
98
112
  }
99
113
 
100
114
  function _templateObject5() {
101
- var data = (0, _taggedTemplateLiteral2["default"])(["\n min-height: 15px;\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n color: ", ";\n overflow: hidden;\n"]);
115
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n min-height: 15px;\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n overflow: hidden;\n"]);
102
116
 
103
117
  _templateObject5 = function _templateObject5() {
104
118
  return data;
@@ -108,7 +122,7 @@ function _templateObject5() {
108
122
  }
109
123
 
110
124
  function _templateObject4() {
111
- var data = (0, _taggedTemplateLiteral2["default"])(["\n padding-top: 6px;\n border-top: 2px solid ", ";\n display: inline-flex;\n flex-wrap: wrap;\n max-width: ", ";\n width: ", ";\n & > span:last-child span {\n display: none;\n }\n margin: ", ";\n"]);
125
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n padding-top: ", ";\n display: inline-flex;\n flex-wrap: wrap;\n max-width: ", ";\n width: ", ";\n & > span:last-child span {\n display: none;\n }\n margin: ", ";\n"]);
112
126
 
113
127
  _templateObject4 = function _templateObject4() {
114
128
  return data;
@@ -118,7 +132,7 @@ function _templateObject4() {
118
132
  }
119
133
 
120
134
  function _templateObject3() {
121
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n flex-direction: ", ";\n align-items: ", ";\n"]);
135
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n flex-direction: ", ";\n align-items: ", ";\n border-top: ", ";\n"]);
122
136
 
123
137
  _templateObject3 = function _templateObject3() {
124
138
  return data;
@@ -138,7 +152,7 @@ function _templateObject2() {
138
152
  }
139
153
 
140
154
  function _templateObject() {
141
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n padding: ", ";\n font-family: ", ";\n background-color: ", ";\n margin-top: ", ";\n width: 100%;\n box-sizing: border-box;\n min-height: 120px;\n"]);
155
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n padding: ", ";\n background-color: ", ";\n margin-top: ", ";\n width: 100%;\n box-sizing: border-box;\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]);
142
156
 
143
157
  _templateObject = function _templateObject() {
144
158
  return data;
@@ -154,8 +168,6 @@ var DxcFooter = function DxcFooter(_ref) {
154
168
  bottomLinks = _ref$bottomLinks === void 0 ? [] : _ref$bottomLinks,
155
169
  _ref$copyright = _ref.copyright,
156
170
  copyright = _ref$copyright === void 0 ? "" : _ref$copyright,
157
- _ref$logoSrc = _ref.logoSrc,
158
- logoSrc = _ref$logoSrc === void 0 ? "default" : _ref$logoSrc,
159
171
  children = _ref.children,
160
172
  padding = _ref.padding,
161
173
  margin = _ref.margin,
@@ -179,6 +191,20 @@ var DxcFooter = function DxcFooter(_ref) {
179
191
  setIsResponsivePhone = _useState6[1];
180
192
 
181
193
  var colorsTheme = (0, _useTheme["default"])();
194
+ var footerLogo = (0, _react.useMemo)(function () {
195
+ if (!colorsTheme.footer.logo) {
196
+ return _Icons["default"];
197
+ }
198
+
199
+ if (typeof colorsTheme.footer.logo === "string") {
200
+ return _react["default"].createElement(LogoImg, {
201
+ alt: "Logo",
202
+ src: colorsTheme.footer.logo
203
+ });
204
+ }
205
+
206
+ return colorsTheme.footer.logo;
207
+ }, [colorsTheme.footer.logo]);
182
208
 
183
209
  var handleResize = function handleResize(refWidth) {
184
210
  if (ref.current) {
@@ -234,10 +260,7 @@ var DxcFooter = function DxcFooter(_ref) {
234
260
  margin: margin,
235
261
  refSize: refSize,
236
262
  ref: ref
237
- }, _react["default"].createElement(FooterHeader, null, _react["default"].createElement(LogoIcon, {
238
- logoSrc: logoSrc,
239
- src: logoSrc === "default" ? colorsTheme.footer.logo : logoSrc
240
- }), _react["default"].createElement("div", null, socialLink)), isResponsivePhone && _react["default"].createElement("div", null, _react["default"].createElement(FooterFooter, {
263
+ }, _react["default"].createElement(FooterHeader, null, _react["default"].createElement(LogoContainer, null, footerLogo), _react["default"].createElement("div", null, socialLink)), isResponsivePhone && _react["default"].createElement("div", null, _react["default"].createElement(FooterFooter, {
241
264
  className: "footerFooter",
242
265
  refSize: refSize
243
266
  }, _react["default"].createElement(BottomLinks, {
@@ -246,7 +269,9 @@ var DxcFooter = function DxcFooter(_ref) {
246
269
  refSize: refSize
247
270
  }, copyright))), (!isResponsiveTablet && !isResponsivePhone || isResponsiveTablet) && _react["default"].createElement("div", null, _react["default"].createElement(ChildComponents, {
248
271
  padding: padding
249
- }, children), _react["default"].createElement(FooterFooter, {
272
+ }, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
273
+ color: colorsTheme.footer.backgroundColor
274
+ }, children)), _react["default"].createElement(FooterFooter, {
250
275
  className: "footerFooter"
251
276
  }, _react["default"].createElement(BottomLinks, {
252
277
  refSize: refSize
@@ -256,15 +281,13 @@ var DxcFooter = function DxcFooter(_ref) {
256
281
  };
257
282
 
258
283
  var FooterContainer = _styledComponents["default"].footer(_templateObject(), function (props) {
259
- return props.theme.fontSizeBase;
260
- }, function (props) {
261
- return props.refSize <= _variables.responsiveSizes.mobileLarge ? "20px 20px 20px 20px" : "20px 60px 20px 20px";
262
- }, function (props) {
263
- return props.theme.fontFamily;
284
+ return props.refSize <= _variables.responsiveSizes.mobileLarge ? "20px 20px 20px 20px" : "24px 36px 24px 36px";
264
285
  }, function (props) {
265
286
  return props.theme.backgroundColor;
266
287
  }, function (props) {
267
288
  return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
289
+ }, function (props) {
290
+ return props.theme.height;
268
291
  });
269
292
 
270
293
  var FooterHeader = _styledComponents["default"].div(_templateObject2());
@@ -273,10 +296,12 @@ var FooterFooter = _styledComponents["default"].div(_templateObject3(), function
273
296
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "column" : "row";
274
297
  }, function (props) {
275
298
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "center" : "";
299
+ }, function (props) {
300
+ return "".concat(props.theme.bottomLinksDividerThickness, " ").concat(props.theme.bottomLinksDividerStyle, " ").concat(props.theme.bottomLinksDividerColor);
276
301
  });
277
302
 
278
303
  var BottomLinks = _styledComponents["default"].div(_templateObject4(), function (props) {
279
- return props.theme.lineColor;
304
+ return props.theme.bottomLinksDividerSpacing;
280
305
  }, function (props) {
281
306
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "100%" : "60%";
282
307
  }, function (props) {
@@ -295,50 +320,79 @@ var ChildComponents = _styledComponents["default"].div(_templateObject5(), funct
295
320
  return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.bottom ? _variables.spaces[props.padding.bottom] : "";
296
321
  }, function (props) {
297
322
  return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
298
- }, function (props) {
299
- return props.theme.fontColor;
300
323
  });
301
324
 
302
325
  var Copyright = _styledComponents["default"].div(_templateObject6(), function (props) {
303
- return props.theme.fontSize;
326
+ return props.theme.copyrightFontFamily;
327
+ }, function (props) {
328
+ return props.theme.copyrightFontSize;
329
+ }, function (props) {
330
+ return props.theme.copyrightFontStyle;
304
331
  }, function (props) {
305
- return props.theme.fontColor;
332
+ return props.theme.copyrightFontWeight;
333
+ }, function (props) {
334
+ return props.theme.copyrightFontColor;
306
335
  }, function (props) {
307
336
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "100%" : "40%";
308
337
  }, function (props) {
309
338
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "100%" : "";
310
339
  }, function (props) {
311
340
  return props.refSize <= _variables.responsiveSizes.mobileLarge ? "center" : "right";
341
+ }, function (props) {
342
+ return props.theme.bottomLinksDividerSpacing;
312
343
  });
313
344
 
314
- var LogoIcon = _styledComponents["default"].img(_templateObject7());
345
+ var LogoContainer = _styledComponents["default"].div(_templateObject7(), function (props) {
346
+ return props.theme.logoHeight;
347
+ }, function (props) {
348
+ return props.theme.logoWidth;
349
+ });
315
350
 
316
- var SocialAnchor = _styledComponents["default"].a(_templateObject8(), function (props) {
317
- return props.index === 0 ? "0px" : "15px";
351
+ var LogoImg = _styledComponents["default"].img(_templateObject8(), function (props) {
352
+ return props.theme.logoHeight;
353
+ }, function (props) {
354
+ return props.theme.logoWidth;
318
355
  });
319
356
 
320
- var SocialIcon = _styledComponents["default"].img(_templateObject9(), function (props) {
321
- return props.theme.fontColor;
357
+ var SocialAnchor = _styledComponents["default"].a(_templateObject9(), function (props) {
358
+ return props.index === 0 ? "0px" : props.theme.socialLinksGutter;
322
359
  });
323
360
 
324
- var SocialIconContainer = _styledComponents["default"].div(_templateObject10(), function (props) {
325
- return props.theme.fontColor;
361
+ var SocialIcon = _styledComponents["default"].img(_templateObject10(), function (props) {
362
+ return props.theme.socialLinksSize;
363
+ }, function (props) {
364
+ return props.theme.socialLinksSize;
365
+ }, function (props) {
366
+ return props.theme.socialLinksColor;
326
367
  });
327
368
 
328
- var Point = _styledComponents["default"].span(_templateObject11(), function (props) {
329
- return props.theme.fontColor;
369
+ var SocialIconContainer = _styledComponents["default"].div(_templateObject11(), function (props) {
370
+ return props.theme.socialLinksSize;
371
+ }, function (props) {
372
+ return props.theme.socialLinksSize;
373
+ }, function (props) {
374
+ return props.theme.socialLinksColor;
330
375
  });
331
376
 
332
- var BottomLink = _styledComponents["default"].a(_templateObject12(), function (props) {
333
- return props.theme.textDecoration;
377
+ var Point = _styledComponents["default"].span(_templateObject12(), function (props) {
378
+ return props.theme.bottomLinksFontColor;
379
+ });
380
+
381
+ var BottomLink = _styledComponents["default"].a(_templateObject13(), function (props) {
382
+ return props.theme.bottomLinksTextDecoration;
383
+ }, function (props) {
384
+ return props.theme.bottomLinksFontColor;
385
+ }, function (props) {
386
+ return props.theme.bottomLinksFontFamily;
387
+ }, function (props) {
388
+ return props.theme.bottomLinksFontSize;
334
389
  }, function (props) {
335
- return props.theme.fontColor;
390
+ return props.theme.bottomLinksFontStyle;
336
391
  }, function (props) {
337
- return props.theme.fontSize;
392
+ return props.theme.bottomLinksFontWeight;
338
393
  });
339
394
 
340
395
  DxcFooter.propTypes = {
341
- logoSrc: _propTypes["default"].string,
342
396
  socialLinks: _propTypes["default"].arrayOf(_propTypes["default"].shape({
343
397
  logo: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].func]),
344
398
  logoSrc: _propTypes["default"].string.isRequired,