@dxc-technology/halstack-react 0.0.0-4d89cae → 0.0.0-4e5859a

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/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +7 -5
  3. package/ThemeContext.d.ts +15 -0
  4. package/ThemeContext.js +84 -91
  5. package/V3Select/V3Select.js +35 -129
  6. package/V3Textarea/V3Textarea.js +12 -16
  7. package/accordion/Accordion.d.ts +4 -0
  8. package/accordion/Accordion.js +37 -132
  9. package/accordion/Accordion.stories.tsx +300 -0
  10. package/accordion/types.d.ts +68 -0
  11. package/accordion/types.js +5 -0
  12. package/accordion-group/AccordionGroup.d.ts +7 -0
  13. package/accordion-group/AccordionGroup.js +66 -82
  14. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  15. package/accordion-group/types.d.ts +72 -0
  16. package/accordion-group/types.js +5 -0
  17. package/alert/Alert.d.ts +4 -0
  18. package/alert/Alert.js +40 -153
  19. package/alert/Alert.stories.tsx +170 -0
  20. package/alert/types.d.ts +49 -0
  21. package/alert/types.js +5 -0
  22. package/badge/Badge.js +10 -14
  23. package/box/Box.d.ts +4 -0
  24. package/box/Box.js +15 -45
  25. package/box/Box.stories.tsx +132 -0
  26. package/box/types.d.ts +43 -0
  27. package/box/types.js +5 -0
  28. package/button/Button.d.ts +4 -0
  29. package/button/Button.js +24 -83
  30. package/button/Button.stories.tsx +276 -0
  31. package/button/types.d.ts +57 -0
  32. package/button/types.js +5 -0
  33. package/card/Card.d.ts +4 -0
  34. package/card/Card.js +34 -124
  35. package/card/Card.stories.tsx +201 -0
  36. package/card/ice-cream.jpg +0 -0
  37. package/card/types.d.ts +67 -0
  38. package/card/types.js +5 -0
  39. package/checkbox/Checkbox.d.ts +4 -0
  40. package/checkbox/Checkbox.js +15 -61
  41. package/checkbox/Checkbox.stories.tsx +192 -0
  42. package/checkbox/types.d.ts +60 -0
  43. package/checkbox/types.js +5 -0
  44. package/chip/Chip.d.ts +4 -0
  45. package/chip/Chip.js +22 -88
  46. package/chip/Chip.stories.tsx +121 -0
  47. package/chip/types.d.ts +53 -0
  48. package/chip/types.js +5 -0
  49. package/common/RequiredComponent.js +3 -11
  50. package/common/variables.js +52 -45
  51. package/date/Date.js +17 -23
  52. package/date-input/DateInput.d.ts +4 -0
  53. package/date-input/DateInput.js +26 -68
  54. package/date-input/DateInput.stories.tsx +138 -0
  55. package/date-input/types.d.ts +100 -0
  56. package/date-input/types.js +5 -0
  57. package/dialog/Dialog.d.ts +4 -0
  58. package/dialog/Dialog.js +22 -75
  59. package/dialog/Dialog.stories.tsx +212 -0
  60. package/dialog/types.d.ts +43 -0
  61. package/dialog/types.js +5 -0
  62. package/dropdown/Dropdown.d.ts +4 -0
  63. package/dropdown/Dropdown.js +45 -172
  64. package/dropdown/Dropdown.stories.tsx +247 -0
  65. package/dropdown/types.d.ts +89 -0
  66. package/dropdown/types.js +5 -0
  67. package/file-input/FileInput.d.ts +4 -0
  68. package/file-input/FileInput.js +98 -221
  69. package/file-input/FileItem.d.ts +14 -0
  70. package/file-input/FileItem.js +40 -143
  71. package/file-input/types.d.ts +112 -0
  72. package/file-input/types.js +5 -0
  73. package/footer/Footer.d.ts +4 -0
  74. package/footer/Footer.js +46 -207
  75. package/footer/Footer.stories.tsx +130 -0
  76. package/footer/Icons.d.ts +2 -0
  77. package/footer/Icons.js +15 -15
  78. package/footer/types.d.ts +65 -0
  79. package/footer/types.js +5 -0
  80. package/header/Header.d.ts +7 -0
  81. package/header/Header.js +58 -204
  82. package/header/Header.stories.tsx +162 -0
  83. package/header/Icons.d.ts +2 -0
  84. package/header/Icons.js +7 -32
  85. package/header/types.d.ts +47 -0
  86. package/header/types.js +5 -0
  87. package/heading/Heading.d.ts +4 -0
  88. package/heading/Heading.js +25 -96
  89. package/heading/Heading.stories.tsx +53 -0
  90. package/heading/types.d.ts +33 -0
  91. package/heading/types.js +5 -0
  92. package/input-text/Icons.js +2 -2
  93. package/input-text/InputText.js +35 -129
  94. package/layout/ApplicationLayout.d.ts +10 -0
  95. package/layout/ApplicationLayout.js +39 -141
  96. package/layout/ApplicationLayout.stories.tsx +171 -0
  97. package/layout/Icons.js +7 -7
  98. package/layout/types.d.ts +57 -0
  99. package/layout/types.js +5 -0
  100. package/link/Link.d.ts +3 -0
  101. package/link/Link.js +19 -95
  102. package/link/Link.stories.tsx +146 -0
  103. package/link/types.d.ts +74 -0
  104. package/link/types.js +5 -0
  105. package/list/List.d.ts +8 -0
  106. package/list/List.js +47 -0
  107. package/list/List.stories.tsx +85 -0
  108. package/main.d.ts +48 -40
  109. package/main.js +118 -82
  110. package/number-input/NumberInput.d.ts +4 -0
  111. package/number-input/NumberInput.js +10 -63
  112. package/number-input/NumberInput.stories.tsx +115 -0
  113. package/number-input/NumberInputContext.d.ts +4 -0
  114. package/number-input/NumberInputContext.js +5 -2
  115. package/number-input/numberInputContextTypes.d.ts +19 -0
  116. package/number-input/numberInputContextTypes.js +5 -0
  117. package/number-input/types.d.ts +117 -0
  118. package/number-input/types.js +5 -0
  119. package/package.json +15 -12
  120. package/paginator/Icons.js +9 -9
  121. package/paginator/Paginator.d.ts +4 -0
  122. package/paginator/Paginator.js +26 -139
  123. package/paginator/Paginator.stories.tsx +63 -0
  124. package/paginator/types.d.ts +38 -0
  125. package/paginator/types.js +5 -0
  126. package/password-input/PasswordInput.d.ts +4 -0
  127. package/password-input/PasswordInput.js +37 -77
  128. package/password-input/PasswordInput.stories.tsx +131 -0
  129. package/password-input/types.d.ts +107 -0
  130. package/password-input/types.js +5 -0
  131. package/progress-bar/ProgressBar.d.ts +4 -0
  132. package/progress-bar/ProgressBar.js +22 -94
  133. package/progress-bar/ProgressBar.stories.jsx +58 -0
  134. package/progress-bar/types.d.ts +37 -0
  135. package/progress-bar/types.js +5 -0
  136. package/radio/Radio.d.ts +4 -0
  137. package/radio/Radio.js +17 -52
  138. package/radio/Radio.stories.tsx +192 -0
  139. package/radio/types.d.ts +54 -0
  140. package/radio/types.js +5 -0
  141. package/resultsetTable/ResultsetTable.d.ts +4 -0
  142. package/resultsetTable/ResultsetTable.js +39 -146
  143. package/resultsetTable/ResultsetTable.stories.tsx +276 -0
  144. package/resultsetTable/types.d.ts +67 -0
  145. package/resultsetTable/types.js +5 -0
  146. package/row/Row.d.ts +11 -0
  147. package/row/Row.js +124 -0
  148. package/row/Row.stories.tsx +223 -0
  149. package/select/Select.d.ts +4 -0
  150. package/select/Select.js +173 -448
  151. package/select/Select.stories.tsx +572 -0
  152. package/select/types.d.ts +170 -0
  153. package/select/types.js +5 -0
  154. package/sidenav/Sidenav.d.ts +9 -0
  155. package/sidenav/Sidenav.js +21 -64
  156. package/sidenav/Sidenav.stories.tsx +165 -0
  157. package/sidenav/types.d.ts +50 -0
  158. package/sidenav/types.js +5 -0
  159. package/slider/Slider.d.ts +4 -0
  160. package/slider/Slider.js +74 -161
  161. package/slider/Slider.stories.tsx +177 -0
  162. package/slider/types.d.ts +78 -0
  163. package/slider/types.js +5 -0
  164. package/spinner/Spinner.d.ts +4 -0
  165. package/spinner/Spinner.js +45 -176
  166. package/spinner/Spinner.stories.jsx +102 -0
  167. package/spinner/types.d.ts +32 -0
  168. package/spinner/types.js +5 -0
  169. package/stack/Stack.d.ts +10 -0
  170. package/stack/Stack.js +94 -0
  171. package/stack/Stack.stories.tsx +150 -0
  172. package/switch/Switch.d.ts +4 -0
  173. package/switch/Switch.js +28 -71
  174. package/switch/Switch.stories.tsx +160 -0
  175. package/switch/types.d.ts +58 -0
  176. package/switch/types.js +5 -0
  177. package/table/Table.d.ts +4 -0
  178. package/table/Table.js +12 -26
  179. package/table/Table.stories.jsx +276 -0
  180. package/table/types.d.ts +21 -0
  181. package/table/types.js +5 -0
  182. package/tabs/Tabs.d.ts +4 -0
  183. package/tabs/Tabs.js +32 -162
  184. package/tabs/Tabs.stories.tsx +121 -0
  185. package/tabs/types.d.ts +70 -0
  186. package/tabs/types.js +5 -0
  187. package/tag/Tag.d.ts +4 -0
  188. package/tag/Tag.js +38 -127
  189. package/tag/Tag.stories.tsx +145 -0
  190. package/tag/types.d.ts +60 -0
  191. package/tag/types.js +5 -0
  192. package/text/Text.d.ts +7 -0
  193. package/text/Text.js +30 -0
  194. package/text/Text.stories.tsx +19 -0
  195. package/text-input/TextInput.d.ts +4 -0
  196. package/text-input/TextInput.js +134 -340
  197. package/text-input/TextInput.stories.tsx +456 -0
  198. package/text-input/types.d.ts +159 -0
  199. package/text-input/types.js +5 -0
  200. package/textarea/Textarea.d.ts +4 -0
  201. package/textarea/Textarea.js +38 -123
  202. package/textarea/Textarea.stories.jsx +135 -0
  203. package/textarea/types.d.ts +130 -0
  204. package/textarea/types.js +5 -0
  205. package/toggle/Toggle.js +16 -50
  206. package/toggle-group/ToggleGroup.d.ts +4 -0
  207. package/toggle-group/ToggleGroup.js +35 -148
  208. package/toggle-group/ToggleGroup.stories.tsx +173 -0
  209. package/toggle-group/types.d.ts +97 -0
  210. package/toggle-group/types.js +5 -0
  211. package/upload/Upload.js +11 -15
  212. package/upload/buttons-upload/ButtonsUpload.js +15 -39
  213. package/upload/buttons-upload/Icons.js +7 -7
  214. package/upload/dragAndDropArea/DragAndDropArea.js +26 -130
  215. package/upload/dragAndDropArea/Icons.js +6 -6
  216. package/upload/file-upload/FileToUpload.js +17 -91
  217. package/upload/file-upload/Icons.js +13 -13
  218. package/upload/files-upload/FilesToUpload.js +13 -27
  219. package/upload/transaction/Icons.js +31 -31
  220. package/upload/transaction/Transaction.js +19 -63
  221. package/upload/transactions/Transactions.js +14 -58
  222. package/useTheme.d.ts +2 -0
  223. package/useTheme.js +1 -1
  224. package/wizard/Wizard.d.ts +4 -0
  225. package/wizard/Wizard.js +90 -214
  226. package/wizard/Wizard.stories.tsx +224 -0
  227. package/wizard/types.d.ts +60 -0
  228. package/wizard/types.js +5 -0
  229. package/accordion/index.d.ts +0 -28
  230. package/accordion-group/index.d.ts +0 -16
  231. package/alert/index.d.ts +0 -51
  232. package/box/index.d.ts +0 -25
  233. package/button/Button.stories.js +0 -27
  234. package/button/index.d.ts +0 -24
  235. package/card/index.d.ts +0 -22
  236. package/checkbox/index.d.ts +0 -24
  237. package/chip/index.d.ts +0 -22
  238. package/date-input/index.d.ts +0 -95
  239. package/dialog/index.d.ts +0 -18
  240. package/dropdown/index.d.ts +0 -26
  241. package/file-input/index.d.ts +0 -81
  242. package/footer/index.d.ts +0 -25
  243. package/header/index.d.ts +0 -25
  244. package/heading/index.d.ts +0 -17
  245. package/link/index.d.ts +0 -23
  246. package/number-input/index.d.ts +0 -113
  247. package/paginator/index.d.ts +0 -20
  248. package/password-input/index.d.ts +0 -94
  249. package/progress-bar/index.d.ts +0 -18
  250. package/radio/index.d.ts +0 -23
  251. package/resultsetTable/index.d.ts +0 -19
  252. package/select/index.d.ts +0 -131
  253. package/sidenav/index.d.ts +0 -13
  254. package/slider/index.d.ts +0 -29
  255. package/spinner/index.d.ts +0 -17
  256. package/switch/index.d.ts +0 -24
  257. package/table/index.d.ts +0 -13
  258. package/tabs/index.d.ts +0 -19
  259. package/tag/index.d.ts +0 -24
  260. package/text-input/index.d.ts +0 -135
  261. package/textarea/index.d.ts +0 -117
  262. package/toggle-group/index.d.ts +0 -21
  263. package/wizard/Icons.js +0 -65
  264. package/wizard/index.d.ts +0 -18
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
@@ -23,59 +23,15 @@ var _Icons = require("./Icons");
23
23
 
24
24
  var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
25
25
 
26
- var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
27
-
28
- var _BackgroundColorContext = require("../../BackgroundColorContext.js");
29
-
30
- function _templateObject5() {
31
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n width: 80%;\n"]);
32
-
33
- _templateObject5 = function _templateObject5() {
34
- return data;
35
- };
36
-
37
- return data;
38
- }
39
-
40
- function _templateObject4() {
41
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 25px;\n height: 20px;\n max-width: 20%;\n"]);
42
-
43
- _templateObject4 = function _templateObject4() {
44
- return data;
45
- };
46
-
47
- return data;
48
- }
49
-
50
- function _templateObject3() {
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"]);
52
-
53
- _templateObject3 = function _templateObject3() {
54
- return data;
55
- };
56
-
57
- return data;
58
- }
59
-
60
- function _templateObject2() {
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"]);
62
-
63
- _templateObject2 = function _templateObject2() {
64
- return data;
65
- };
26
+ var _useTheme = _interopRequireDefault(require("../../useTheme"));
66
27
 
67
- return data;
68
- }
28
+ var _BackgroundColorContext = require("../../BackgroundColorContext");
69
29
 
70
- function _templateObject() {
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"]);
30
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
72
31
 
73
- _templateObject = function _templateObject() {
74
- return data;
75
- };
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
76
33
 
77
- return data;
78
- }
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
79
35
 
80
36
  var DxcTransaction = function DxcTransaction(_ref) {
81
37
  var _ref$name = _ref.name,
@@ -90,19 +46,19 @@ var DxcTransaction = function DxcTransaction(_ref) {
90
46
 
91
47
  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;
92
48
 
93
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
49
+ return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
94
50
  theme: colorsTheme.upload
95
- }, _react["default"].createElement(DXCTransaction, {
51
+ }, /*#__PURE__*/_react["default"].createElement(DXCTransaction, {
96
52
  status: status
97
- }, _react["default"].createElement(FileImage, {
53
+ }, /*#__PURE__*/_react["default"].createElement(FileImage, {
98
54
  status: status
99
- }, icon), status === "processing" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
55
+ }, icon), status === "processing" && /*#__PURE__*/_react["default"].createElement(FileData, null, /*#__PURE__*/_react["default"].createElement(FileName, null, name), /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
100
56
  color: colorsTheme.upload.backgroundColor
101
- }, _react["default"].createElement(_Spinner["default"], {
57
+ }, /*#__PURE__*/_react["default"].createElement(_Spinner["default"], {
102
58
  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"], {
59
+ }))) || status === "success" && /*#__PURE__*/_react["default"].createElement(FileData, null, /*#__PURE__*/_react["default"].createElement(FileName, null, name), /*#__PURE__*/_react["default"].createElement(FileStatus, null, _Icons.successIcon)) || status === "error" && /*#__PURE__*/_react["default"].createElement(FileData, null, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
104
60
  title: message
105
- }, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, null, _Icons.errorIcon), " ")));
61
+ }, /*#__PURE__*/_react["default"].createElement(FileName, null, name)), /*#__PURE__*/_react["default"].createElement(FileStatus, null, _Icons.errorIcon), " ")));
106
62
  };
107
63
 
108
64
  DxcTransaction.propTypes = {
@@ -112,13 +68,13 @@ DxcTransaction.propTypes = {
112
68
  message: _propTypes["default"].string
113
69
  };
114
70
 
115
- var DXCTransaction = _styledComponents["default"].div(_templateObject(), function (props) {
71
+ var DXCTransaction = _styledComponents["default"].div(_templateObject || (_templateObject = (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"])), function (props) {
116
72
  return props.theme.fontFamily;
117
73
  }, function (props) {
118
74
  return props.status === "error" && props.theme.errorColor;
119
75
  });
120
76
 
121
- var FileImage = _styledComponents["default"].div(_templateObject2(), function (props) {
77
+ var FileImage = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-right: 16px;\n max-width: 20%;\n & svg {\n fill: ", ";\n }\n"])), function (props) {
122
78
  return "".concat(props.theme.uploadedFileIconSize, " ").concat(props.theme.uploadedFileIconSize);
123
79
  }, function (props) {
124
80
  return props.theme.uploadedFileIconSize;
@@ -128,7 +84,7 @@ var FileImage = _styledComponents["default"].div(_templateObject2(), function (p
128
84
  return props.status === "error" && props.theme.errorColor || props.theme.uploadedFileIconColor;
129
85
  });
130
86
 
131
- var FileName = _styledComponents["default"].div(_templateObject3(), function (props) {
87
+ var FileName = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (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"])), function (props) {
132
88
  return props.theme.fileNameFontSize;
133
89
  }, function (props) {
134
90
  return props.theme.fileNameFontStyle;
@@ -140,9 +96,9 @@ var FileName = _styledComponents["default"].div(_templateObject3(), function (pr
140
96
  return props.theme.fileNameFontColor;
141
97
  });
142
98
 
143
- var FileStatus = _styledComponents["default"].div(_templateObject4());
99
+ var FileStatus = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n width: 25px;\n height: 20px;\n max-width: 20%;\n"])));
144
100
 
145
- var FileData = _styledComponents["default"].div(_templateObject5());
101
+ var FileData = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n width: 80%;\n"])));
146
102
 
147
103
  var _default = DxcTransaction;
148
104
  exports["default"] = _default;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
@@ -19,67 +19,23 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
20
  var _Transaction = _interopRequireDefault(require("../transaction/Transaction"));
21
21
 
22
- var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
23
-
24
- function _templateObject5() {
25
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-weight: ", ";\n"]);
26
-
27
- _templateObject5 = function _templateObject5() {
28
- return data;
29
- };
30
-
31
- return data;
32
- }
33
-
34
- function _templateObject4() {
35
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n"]);
36
-
37
- _templateObject4 = function _templateObject4() {
38
- return data;
39
- };
40
-
41
- return data;
42
- }
43
-
44
- function _templateObject3() {
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
-
47
- _templateObject3 = function _templateObject3() {
48
- return data;
49
- };
50
-
51
- return data;
52
- }
53
-
54
- function _templateObject2() {
55
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n padding-bottom: 35px;\n"]);
56
-
57
- _templateObject2 = function _templateObject2() {
58
- return data;
59
- };
60
-
61
- return data;
62
- }
22
+ var _useTheme = _interopRequireDefault(require("../../useTheme"));
63
23
 
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 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"]);
24
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
66
25
 
67
- _templateObject = function _templateObject() {
68
- return data;
69
- };
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
70
27
 
71
- return data;
72
- }
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
73
29
 
74
30
  var DxcTransactions = function DxcTransactions(_ref) {
75
31
  var transactions = _ref.transactions;
76
32
  var colorsTheme = (0, _useTheme["default"])();
77
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
33
+ return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
78
34
  theme: colorsTheme.upload
79
- }, _react["default"].createElement(DXCTransactions, null, _react["default"].createElement(TransactionsText, null, _react["default"].createElement(TransactionsTitle, null, "Files uploaded"), _react["default"].createElement(TransactionsSubTitle, null, _react["default"].createElement(TransactionsNumber, null, transactions && transactions.filter(function (file) {
35
+ }, /*#__PURE__*/_react["default"].createElement(DXCTransactions, null, /*#__PURE__*/_react["default"].createElement(TransactionsText, null, /*#__PURE__*/_react["default"].createElement(TransactionsTitle, null, "Files uploaded"), /*#__PURE__*/_react["default"].createElement(TransactionsSubTitle, null, /*#__PURE__*/_react["default"].createElement(TransactionsNumber, null, transactions && transactions.filter(function (file) {
80
36
  return file.status === "success";
81
37
  }).length), " ", "documents in total")), transactions.map(function (transaction) {
82
- return _react["default"].createElement(_Transaction["default"], {
38
+ return /*#__PURE__*/_react["default"].createElement(_Transaction["default"], {
83
39
  name: transaction.name,
84
40
  type: transaction.type,
85
41
  status: transaction.status,
@@ -92,7 +48,7 @@ DxcTransactions.propTypes = {
92
48
  transactions: _propTypes["default"].array
93
49
  };
94
50
 
95
- var DXCTransactions = _styledComponents["default"].div(_templateObject(), function (props) {
51
+ var DXCTransactions = _styledComponents["default"].div(_templateObject || (_templateObject = (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"])), function (props) {
96
52
  return props.theme.fontFamily;
97
53
  }, function (props) {
98
54
  return props.theme.shadowColor;
@@ -104,9 +60,9 @@ var DXCTransactions = _styledComponents["default"].div(_templateObject(), functi
104
60
  return props.theme.scrollBarThumbColor;
105
61
  });
106
62
 
107
- var TransactionsText = _styledComponents["default"].span(_templateObject2());
63
+ var TransactionsText = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n padding-bottom: 35px;\n"])));
108
64
 
109
- var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), function (props) {
65
+ var TransactionsTitle = _styledComponents["default"].span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 4px;\n"])), function (props) {
110
66
  return props.theme.uploadedFilesTitleFontSize;
111
67
  }, function (props) {
112
68
  return props.theme.uploadedFilesTitleFontStyle;
@@ -118,7 +74,7 @@ var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), fu
118
74
  return props.theme.uploadedFilesTitleFontColor;
119
75
  });
120
76
 
121
- var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(), function (props) {
77
+ var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n"])), function (props) {
122
78
  return props.theme.uploadedFilesSubtitleFontSize;
123
79
  }, function (props) {
124
80
  return props.theme.uploadedFilesSubtitleFontStyle;
@@ -130,7 +86,7 @@ var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(),
130
86
  return props.theme.uploadedFilesSubtitleFontColor;
131
87
  });
132
88
 
133
- var TransactionsNumber = _styledComponents["default"].span(_templateObject5(), function (props) {
89
+ var TransactionsNumber = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n font-weight: ", ";\n"])), function (props) {
134
90
  return props.theme.uploadedFilesNumberFontWeight;
135
91
  });
136
92
 
package/useTheme.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const useTheme: () => any;
2
+ export default useTheme;
package/useTheme.js CHANGED
@@ -11,7 +11,7 @@ var _react = require("react");
11
11
 
12
12
  var _variables = require("./common/variables.js");
13
13
 
14
- var _ThemeContext = _interopRequireDefault(require("./ThemeContext.js"));
14
+ var _ThemeContext = _interopRequireDefault(require("./ThemeContext"));
15
15
 
16
16
  var useTheme = function useTheme() {
17
17
  var colorsTheme = (0, _react.useContext)(_ThemeContext["default"]);
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import WizardPropsType from "./types";
3
+ declare const DxcWizard: ({ mode, currentStep, onStepClick, steps, margin, tabIndex, }: WizardPropsType) => JSX.Element;
4
+ export default DxcWizard;