@dxc-technology/halstack-react 4.0.1 → 5.0.0
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.
- package/BackgroundColorContext.d.ts +10 -0
- package/BackgroundColorContext.js +7 -6
- package/HalstackContext.d.ts +10 -0
- package/HalstackContext.js +243 -0
- package/accordion/Accordion.d.ts +4 -0
- package/accordion/Accordion.js +35 -162
- package/accordion/Accordion.stories.tsx +307 -0
- package/accordion/Accordion.test.js +72 -0
- package/accordion/types.d.ts +68 -0
- package/accordion/types.js +5 -0
- package/accordion-group/AccordionGroup.d.ts +7 -0
- package/accordion-group/AccordionGroup.js +67 -85
- package/accordion-group/AccordionGroup.stories.tsx +225 -0
- package/accordion-group/AccordionGroup.test.js +151 -0
- package/accordion-group/types.d.ts +72 -0
- package/accordion-group/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/alert/Alert.js +40 -153
- package/alert/Alert.stories.tsx +170 -0
- package/alert/Alert.test.js +92 -0
- package/alert/types.d.ts +49 -0
- package/alert/types.js +5 -0
- package/badge/Badge.d.ts +4 -0
- package/badge/Badge.js +10 -14
- package/badge/types.d.ts +4 -0
- package/badge/types.js +5 -0
- package/bleed/Bleed.d.ts +3 -0
- package/bleed/Bleed.js +84 -0
- package/bleed/Bleed.stories.tsx +342 -0
- package/bleed/types.d.ts +37 -0
- package/bleed/types.js +5 -0
- package/box/Box.d.ts +4 -0
- package/box/Box.js +15 -45
- package/box/Box.stories.tsx +132 -0
- package/box/Box.test.js +18 -0
- package/box/types.d.ts +43 -0
- package/box/types.js +5 -0
- package/button/Button.d.ts +4 -0
- package/button/Button.js +33 -99
- package/button/Button.stories.tsx +274 -0
- package/button/Button.test.js +35 -0
- package/button/types.d.ts +53 -0
- package/button/types.js +5 -0
- package/card/Card.d.ts +4 -0
- package/card/Card.js +53 -144
- package/card/Card.stories.tsx +201 -0
- package/card/Card.test.js +50 -0
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +67 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/Checkbox.js +50 -95
- package/checkbox/Checkbox.stories.tsx +188 -0
- package/checkbox/Checkbox.test.js +78 -0
- package/checkbox/types.d.ts +64 -0
- package/checkbox/types.js +5 -0
- package/chip/Chip.d.ts +4 -0
- package/chip/Chip.js +26 -130
- package/chip/Chip.stories.tsx +119 -0
- package/chip/Chip.test.js +56 -0
- package/chip/types.d.ts +45 -0
- package/chip/types.js +5 -0
- package/common/RequiredComponent.js +3 -11
- package/common/variables.js +94 -289
- package/date-input/DateInput.d.ts +4 -0
- package/date-input/DateInput.js +77 -108
- package/date-input/DateInput.stories.tsx +138 -0
- package/date-input/DateInput.test.js +479 -0
- package/date-input/types.d.ts +107 -0
- package/date-input/types.js +5 -0
- package/dialog/Dialog.d.ts +4 -0
- package/dialog/Dialog.js +25 -105
- package/dialog/Dialog.stories.tsx +212 -0
- package/dialog/Dialog.test.js +40 -0
- package/dialog/types.d.ts +43 -0
- package/dialog/types.js +5 -0
- package/dropdown/Dropdown.d.ts +4 -0
- package/dropdown/Dropdown.js +54 -207
- package/dropdown/Dropdown.stories.tsx +249 -0
- package/dropdown/Dropdown.test.js +189 -0
- package/dropdown/types.d.ts +80 -0
- package/dropdown/types.js +5 -0
- package/file-input/FileInput.d.ts +4 -0
- package/file-input/FileInput.js +195 -249
- package/file-input/FileInput.stories.tsx +507 -0
- package/file-input/FileInput.test.js +457 -0
- package/file-input/FileItem.d.ts +14 -0
- package/file-input/FileItem.js +40 -143
- package/file-input/types.d.ts +112 -0
- package/file-input/types.js +5 -0
- package/footer/Footer.d.ts +4 -0
- package/footer/Footer.js +47 -285
- package/footer/Footer.stories.tsx +130 -0
- package/footer/Footer.test.js +109 -0
- package/footer/Icons.d.ts +2 -0
- package/footer/Icons.js +15 -15
- package/footer/types.d.ts +65 -0
- package/footer/types.js +5 -0
- package/header/Header.d.ts +7 -0
- package/header/Header.js +76 -246
- package/header/Header.stories.tsx +172 -0
- package/header/Header.test.js +79 -0
- package/header/Icons.d.ts +2 -0
- package/header/Icons.js +7 -32
- package/header/types.d.ts +47 -0
- package/header/types.js +5 -0
- package/heading/Heading.d.ts +4 -0
- package/heading/Heading.js +25 -96
- package/heading/Heading.stories.tsx +54 -0
- package/heading/Heading.test.js +186 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/inset/Inset.d.ts +3 -0
- package/inset/Inset.js +84 -0
- package/inset/Inset.stories.tsx +229 -0
- package/inset/types.d.ts +37 -0
- package/inset/types.js +5 -0
- package/layout/ApplicationLayout.d.ts +10 -0
- package/layout/ApplicationLayout.js +44 -153
- package/layout/ApplicationLayout.stories.tsx +171 -0
- package/layout/Icons.js +7 -7
- package/layout/types.d.ts +57 -0
- package/layout/types.js +5 -0
- package/link/Link.d.ts +3 -0
- package/link/Link.js +22 -110
- package/link/Link.stories.tsx +151 -0
- package/link/Link.test.js +91 -0
- package/link/types.d.ts +70 -0
- package/link/types.js +5 -0
- package/list/List.d.ts +4 -0
- package/list/List.js +47 -0
- package/list/List.stories.tsx +95 -0
- package/list/types.d.ts +7 -0
- package/list/types.js +5 -0
- package/main.d.ts +47 -40
- package/main.js +124 -96
- package/number-input/NumberInput.d.ts +4 -0
- package/number-input/NumberInput.js +21 -81
- package/number-input/NumberInput.stories.tsx +115 -0
- package/number-input/NumberInput.test.js +506 -0
- package/number-input/NumberInputContext.d.ts +4 -0
- package/number-input/NumberInputContext.js +5 -2
- package/number-input/numberInputContextTypes.d.ts +19 -0
- package/number-input/numberInputContextTypes.js +5 -0
- package/number-input/types.d.ts +124 -0
- package/number-input/types.js +5 -0
- package/package.json +21 -16
- package/paginator/Icons.js +9 -9
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +26 -139
- package/paginator/Paginator.stories.tsx +63 -0
- package/paginator/Paginator.test.js +266 -0
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/password-input/PasswordInput.d.ts +4 -0
- package/password-input/PasswordInput.js +37 -77
- package/password-input/PasswordInput.stories.tsx +131 -0
- package/password-input/PasswordInput.test.js +181 -0
- package/password-input/types.d.ts +110 -0
- package/password-input/types.js +5 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/progress-bar/ProgressBar.js +22 -94
- package/progress-bar/ProgressBar.stories.jsx +58 -0
- package/progress-bar/ProgressBar.test.js +65 -0
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/quick-nav/QuickNav.d.ts +4 -0
- package/quick-nav/QuickNav.js +64 -0
- package/quick-nav/QuickNav.stories.tsx +237 -0
- package/quick-nav/types.d.ts +21 -0
- package/quick-nav/types.js +5 -0
- package/radio/Radio.d.ts +4 -0
- package/radio/Radio.js +23 -59
- package/radio/Radio.stories.tsx +192 -0
- package/radio/Radio.test.js +71 -0
- package/radio/types.d.ts +54 -0
- package/radio/types.js +5 -0
- package/radio-group/Radio.d.ts +4 -0
- package/radio-group/Radio.js +141 -0
- package/radio-group/RadioGroup.d.ts +4 -0
- package/radio-group/RadioGroup.js +280 -0
- package/radio-group/RadioGroup.stories.tsx +100 -0
- package/radio-group/RadioGroup.test.js +695 -0
- package/radio-group/types.d.ts +114 -0
- package/radio-group/types.js +5 -0
- package/resultsetTable/ResultsetTable.d.ts +4 -0
- package/resultsetTable/ResultsetTable.js +43 -147
- package/resultsetTable/ResultsetTable.stories.tsx +275 -0
- package/resultsetTable/ResultsetTable.test.js +306 -0
- package/resultsetTable/types.d.ts +67 -0
- package/resultsetTable/types.js +5 -0
- package/row/Row.d.ts +3 -0
- package/row/Row.js +127 -0
- package/row/Row.stories.tsx +237 -0
- package/row/types.d.ts +28 -0
- package/row/types.js +5 -0
- package/select/Icons.d.ts +10 -0
- package/select/Icons.js +93 -0
- package/select/Listbox.d.ts +4 -0
- package/select/Listbox.js +148 -0
- package/select/Option.d.ts +4 -0
- package/select/Option.js +110 -0
- package/select/Select.d.ts +4 -0
- package/select/Select.js +181 -664
- package/select/Select.stories.tsx +582 -0
- package/select/Select.test.js +2057 -0
- package/select/types.d.ts +213 -0
- package/select/types.js +5 -0
- package/sidenav/Sidenav.d.ts +9 -0
- package/sidenav/Sidenav.js +21 -64
- package/sidenav/Sidenav.stories.tsx +182 -0
- package/sidenav/Sidenav.test.js +56 -0
- package/sidenav/types.d.ts +50 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +4 -0
- package/slider/Slider.js +76 -162
- package/slider/Slider.stories.tsx +177 -0
- package/slider/Slider.test.js +150 -0
- package/slider/types.d.ts +82 -0
- package/slider/types.js +5 -0
- package/spinner/Spinner.d.ts +4 -0
- package/spinner/Spinner.js +45 -176
- package/spinner/Spinner.stories.jsx +103 -0
- package/spinner/Spinner.test.js +64 -0
- package/spinner/types.d.ts +32 -0
- package/spinner/types.js +5 -0
- package/stack/Stack.d.ts +3 -0
- package/stack/Stack.js +97 -0
- package/stack/Stack.stories.tsx +164 -0
- package/stack/types.d.ts +24 -0
- package/stack/types.js +5 -0
- package/switch/Switch.d.ts +4 -0
- package/switch/Switch.js +53 -83
- package/switch/Switch.stories.tsx +160 -0
- package/switch/Switch.test.js +98 -0
- package/switch/types.d.ts +62 -0
- package/switch/types.js +5 -0
- package/table/Table.d.ts +4 -0
- package/table/Table.js +12 -26
- package/table/Table.stories.jsx +277 -0
- package/table/Table.test.js +26 -0
- package/table/types.d.ts +21 -0
- package/table/types.js +5 -0
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +43 -175
- package/tabs/Tabs.stories.tsx +118 -0
- package/tabs/Tabs.test.js +140 -0
- package/tabs/types.d.ts +82 -0
- package/tabs/types.js +5 -0
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +44 -143
- package/tag/Tag.stories.tsx +142 -0
- package/tag/Tag.test.js +60 -0
- package/tag/types.d.ts +69 -0
- package/tag/types.js +5 -0
- package/text/Text.d.ts +7 -0
- package/text/Text.js +30 -0
- package/text/Text.stories.tsx +19 -0
- package/text-input/TextInput.d.ts +4 -0
- package/text-input/TextInput.js +156 -352
- package/text-input/TextInput.stories.tsx +474 -0
- package/text-input/TextInput.test.js +1712 -0
- package/text-input/types.d.ts +166 -0
- package/text-input/types.js +5 -0
- package/textarea/Textarea.d.ts +4 -0
- package/textarea/Textarea.js +48 -131
- package/textarea/Textarea.stories.jsx +157 -0
- package/textarea/Textarea.test.js +437 -0
- package/textarea/types.d.ts +137 -0
- package/textarea/types.js +5 -0
- package/toggle-group/ToggleGroup.d.ts +4 -0
- package/toggle-group/ToggleGroup.js +36 -148
- package/toggle-group/ToggleGroup.stories.tsx +173 -0
- package/toggle-group/ToggleGroup.test.js +156 -0
- package/toggle-group/types.d.ts +105 -0
- package/toggle-group/types.js +5 -0
- package/useTheme.d.ts +2 -0
- package/useTheme.js +2 -2
- package/wizard/Wizard.d.ts +4 -0
- package/wizard/Wizard.js +106 -221
- package/wizard/Wizard.stories.tsx +214 -0
- package/wizard/Wizard.test.js +141 -0
- package/wizard/types.d.ts +64 -0
- package/wizard/types.js +5 -0
- package/ThemeContext.js +0 -250
- package/V3Select/V3Select.js +0 -549
- package/V3Select/index.d.ts +0 -27
- package/V3Textarea/V3Textarea.js +0 -264
- package/V3Textarea/index.d.ts +0 -27
- package/accordion/index.d.ts +0 -28
- package/accordion-group/index.d.ts +0 -16
- package/alert/index.d.ts +0 -51
- package/box/index.d.ts +0 -25
- package/button/Button.stories.js +0 -27
- package/button/index.d.ts +0 -24
- package/card/index.d.ts +0 -22
- package/checkbox/index.d.ts +0 -24
- package/chip/index.d.ts +0 -22
- package/date/Date.js +0 -379
- package/date/index.d.ts +0 -27
- package/date-input/index.d.ts +0 -95
- package/dialog/index.d.ts +0 -18
- package/dropdown/index.d.ts +0 -26
- package/file-input/index.d.ts +0 -81
- package/footer/index.d.ts +0 -25
- package/header/index.d.ts +0 -25
- package/heading/index.d.ts +0 -17
- package/input-text/Icons.js +0 -22
- package/input-text/InputText.js +0 -705
- package/input-text/index.d.ts +0 -36
- package/link/index.d.ts +0 -23
- package/number-input/index.d.ts +0 -113
- package/paginator/index.d.ts +0 -20
- package/password-input/index.d.ts +0 -94
- package/progress-bar/index.d.ts +0 -18
- package/radio/index.d.ts +0 -23
- package/resultsetTable/index.d.ts +0 -19
- package/select/index.d.ts +0 -131
- package/sidenav/index.d.ts +0 -13
- package/slider/index.d.ts +0 -29
- package/spinner/index.d.ts +0 -17
- package/switch/index.d.ts +0 -24
- package/table/index.d.ts +0 -13
- package/tabs/index.d.ts +0 -19
- package/tag/index.d.ts +0 -24
- package/text-input/index.d.ts +0 -135
- package/textarea/index.d.ts +0 -117
- package/toggle/Toggle.js +0 -220
- package/toggle/index.d.ts +0 -21
- package/toggle-group/index.d.ts +0 -21
- package/upload/Upload.js +0 -205
- package/upload/buttons-upload/ButtonsUpload.js +0 -135
- package/upload/buttons-upload/Icons.js +0 -40
- package/upload/dragAndDropArea/DragAndDropArea.js +0 -329
- package/upload/dragAndDropArea/Icons.js +0 -39
- package/upload/file-upload/FileToUpload.js +0 -189
- package/upload/file-upload/Icons.js +0 -66
- package/upload/files-upload/FilesToUpload.js +0 -123
- package/upload/index.d.ts +0 -15
- package/upload/transaction/Icons.js +0 -160
- package/upload/transaction/Transaction.js +0 -148
- package/upload/transactions/Transactions.js +0 -138
- package/wizard/Icons.js +0 -65
- package/wizard/index.d.ts +0 -18
|
@@ -1,123 +0,0 @@
|
|
|
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 _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
20
|
-
var _FileToUpload = _interopRequireDefault(require("../file-upload/FileToUpload"));
|
|
21
|
-
|
|
22
|
-
var _ButtonsUpload = _interopRequireDefault(require("../buttons-upload/ButtonsUpload"));
|
|
23
|
-
|
|
24
|
-
var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
|
|
25
|
-
|
|
26
|
-
function _templateObject2() {
|
|
27
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n height: 83%;\n overflow: auto;\n margin-top: 2px;\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"]);
|
|
28
|
-
|
|
29
|
-
_templateObject2 = function _templateObject2() {
|
|
30
|
-
return data;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return data;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _templateObject() {
|
|
37
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n padding: 20px;\n border-radius: 4px 4px 0px 4px;\n box-shadow: 0px 0px 1px ", ";\n background-color: ", ";\n"]);
|
|
38
|
-
|
|
39
|
-
_templateObject = function _templateObject() {
|
|
40
|
-
return data;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return data;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
var DxcFilesToUpload = function DxcFilesToUpload(_ref) {
|
|
47
|
-
var filesToUpload = _ref.filesToUpload,
|
|
48
|
-
onUpload = _ref.onUpload,
|
|
49
|
-
addFile = _ref.addFile,
|
|
50
|
-
tabIndexValue = _ref.tabIndexValue;
|
|
51
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
52
|
-
|
|
53
|
-
var handleDrag = function handleDrag(e) {
|
|
54
|
-
e.preventDefault();
|
|
55
|
-
e.stopPropagation();
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var handleDragIn = function handleDragIn(e) {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
e.stopPropagation();
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var handleDragOut = function handleDragOut(e) {
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
e.stopPropagation();
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var handleDrop = function handleDrop(e) {
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
e.stopPropagation();
|
|
71
|
-
var filesObject = e.dataTransfer.files;
|
|
72
|
-
|
|
73
|
-
if (filesObject && filesObject.length > 0) {
|
|
74
|
-
var filesArray = Object.keys(filesObject).map(function (key) {
|
|
75
|
-
return filesObject[key];
|
|
76
|
-
});
|
|
77
|
-
addFile(filesArray);
|
|
78
|
-
e.dataTransfer.clearData();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
83
|
-
theme: colorsTheme.upload
|
|
84
|
-
}, _react["default"].createElement(DXCFilesToUpload, {
|
|
85
|
-
onDrop: handleDrop,
|
|
86
|
-
onDragEnter: handleDragIn,
|
|
87
|
-
onDragOver: handleDrag,
|
|
88
|
-
onDragLeave: handleDragOut
|
|
89
|
-
}, _react["default"].createElement(FilesToUpload, null, filesToUpload.map(function (fileToUpload) {
|
|
90
|
-
return _react["default"].createElement(_FileToUpload["default"], {
|
|
91
|
-
name: fileToUpload.name,
|
|
92
|
-
type: fileToUpload.type,
|
|
93
|
-
image: fileToUpload.image,
|
|
94
|
-
onDelete: fileToUpload.deleteFile,
|
|
95
|
-
tabIndexValue: tabIndexValue
|
|
96
|
-
});
|
|
97
|
-
})), _react["default"].createElement(_ButtonsUpload["default"], {
|
|
98
|
-
addFile: addFile,
|
|
99
|
-
onUpload: onUpload,
|
|
100
|
-
tabIndex: tabIndexValue
|
|
101
|
-
})));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
DxcFilesToUpload.propTypes = {
|
|
105
|
-
filesToUpload: _propTypes["default"].array,
|
|
106
|
-
addFile: _propTypes["default"].func,
|
|
107
|
-
onUpload: _propTypes["default"].func
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var DXCFilesToUpload = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
111
|
-
return props.theme.shadowColor;
|
|
112
|
-
}, function (props) {
|
|
113
|
-
return props.theme.backgroundColor;
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
var FilesToUpload = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
117
|
-
return props.theme.scrollBarTrackColor;
|
|
118
|
-
}, function (props) {
|
|
119
|
-
return props.theme.scrollBarThumbColor;
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
var _default = DxcFilesToUpload;
|
|
123
|
-
exports["default"] = _default;
|
package/upload/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
callbackUpload?: void;
|
|
11
|
-
margin?: Space | Margin;
|
|
12
|
-
tabIndex?: number;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default function DxcUpload(props: Props): JSX.Element;
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.audioIconError = exports.videoIconError = exports.imageIconError = exports.defaultIconError = exports.audioIcon = exports.videoIcon = exports.imageIcon = exports.defaultIcon = exports.errorIcon = exports.successIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var successIcon = _react["default"].createElement("svg", {
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
width: "24",
|
|
15
|
-
height: "24",
|
|
16
|
-
viewBox: "0 0 24 24",
|
|
17
|
-
fill: "#50B50F"
|
|
18
|
-
}, _react["default"].createElement("path", {
|
|
19
|
-
fill: "none",
|
|
20
|
-
d: "M0 0h24v24H0z"
|
|
21
|
-
}), _react["default"].createElement("path", {
|
|
22
|
-
d: "M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
exports.successIcon = successIcon;
|
|
26
|
-
|
|
27
|
-
var errorIcon = _react["default"].createElement("svg", {
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
-
width: "24",
|
|
30
|
-
height: "24",
|
|
31
|
-
viewBox: "0 0 24 24",
|
|
32
|
-
fill: "#D0011B"
|
|
33
|
-
}, _react["default"].createElement("path", {
|
|
34
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
35
|
-
}), _react["default"].createElement("path", {
|
|
36
|
-
d: "M0 0h24v24H0z",
|
|
37
|
-
fill: "none"
|
|
38
|
-
}));
|
|
39
|
-
|
|
40
|
-
exports.errorIcon = errorIcon;
|
|
41
|
-
|
|
42
|
-
var defaultIcon = _react["default"].createElement("svg", {
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
-
width: "24",
|
|
45
|
-
height: "24",
|
|
46
|
-
viewBox: "0 0 24 24",
|
|
47
|
-
fill: "#D9D9D9"
|
|
48
|
-
}, _react["default"].createElement("path", {
|
|
49
|
-
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"
|
|
50
|
-
}), _react["default"].createElement("path", {
|
|
51
|
-
d: "M0 0h24v24H0z",
|
|
52
|
-
fill: "none"
|
|
53
|
-
}));
|
|
54
|
-
|
|
55
|
-
exports.defaultIcon = defaultIcon;
|
|
56
|
-
|
|
57
|
-
var imageIcon = _react["default"].createElement("svg", {
|
|
58
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
-
width: "24",
|
|
60
|
-
height: "24",
|
|
61
|
-
viewBox: "0 0 24 24",
|
|
62
|
-
fill: "#D9D9D9"
|
|
63
|
-
}, _react["default"].createElement("path", {
|
|
64
|
-
d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"
|
|
65
|
-
}), _react["default"].createElement("path", {
|
|
66
|
-
d: "M0 0h24v24H0z",
|
|
67
|
-
fill: "none"
|
|
68
|
-
}));
|
|
69
|
-
|
|
70
|
-
exports.imageIcon = imageIcon;
|
|
71
|
-
|
|
72
|
-
var videoIcon = _react["default"].createElement("svg", {
|
|
73
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
74
|
-
width: "24",
|
|
75
|
-
height: "24",
|
|
76
|
-
viewBox: "0 0 24 24",
|
|
77
|
-
fill: "#D9D9D9"
|
|
78
|
-
}, _react["default"].createElement("path", {
|
|
79
|
-
d: "M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"
|
|
80
|
-
}), _react["default"].createElement("path", {
|
|
81
|
-
d: "M0 0h24v24H0z",
|
|
82
|
-
fill: "none"
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
exports.videoIcon = videoIcon;
|
|
86
|
-
|
|
87
|
-
var audioIcon = _react["default"].createElement("svg", {
|
|
88
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
-
width: "24",
|
|
90
|
-
height: "24",
|
|
91
|
-
viewBox: "0 0 24 24",
|
|
92
|
-
fill: "#D9D9D9"
|
|
93
|
-
}, _react["default"].createElement("path", {
|
|
94
|
-
fill: "none",
|
|
95
|
-
d: "M0 0h24v24H0V0z"
|
|
96
|
-
}), _react["default"].createElement("path", {
|
|
97
|
-
d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"
|
|
98
|
-
}));
|
|
99
|
-
|
|
100
|
-
exports.audioIcon = audioIcon;
|
|
101
|
-
|
|
102
|
-
var defaultIconError = _react["default"].createElement("svg", {
|
|
103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
104
|
-
width: "24",
|
|
105
|
-
height: "24",
|
|
106
|
-
viewBox: "0 0 24 24",
|
|
107
|
-
fill: "#D0011B"
|
|
108
|
-
}, _react["default"].createElement("path", {
|
|
109
|
-
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"
|
|
110
|
-
}), _react["default"].createElement("path", {
|
|
111
|
-
d: "M0 0h24v24H0z",
|
|
112
|
-
fill: "none"
|
|
113
|
-
}));
|
|
114
|
-
|
|
115
|
-
exports.defaultIconError = defaultIconError;
|
|
116
|
-
|
|
117
|
-
var imageIconError = _react["default"].createElement("svg", {
|
|
118
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
119
|
-
width: "24",
|
|
120
|
-
height: "24",
|
|
121
|
-
viewBox: "0 0 24 24",
|
|
122
|
-
fill: "#D0011B"
|
|
123
|
-
}, _react["default"].createElement("path", {
|
|
124
|
-
d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"
|
|
125
|
-
}), _react["default"].createElement("path", {
|
|
126
|
-
d: "M0 0h24v24H0z",
|
|
127
|
-
fill: "none"
|
|
128
|
-
}));
|
|
129
|
-
|
|
130
|
-
exports.imageIconError = imageIconError;
|
|
131
|
-
|
|
132
|
-
var videoIconError = _react["default"].createElement("svg", {
|
|
133
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
134
|
-
width: "24",
|
|
135
|
-
height: "24",
|
|
136
|
-
viewBox: "0 0 24 24",
|
|
137
|
-
fill: "#D0011B"
|
|
138
|
-
}, _react["default"].createElement("path", {
|
|
139
|
-
d: "M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"
|
|
140
|
-
}), _react["default"].createElement("path", {
|
|
141
|
-
d: "M0 0h24v24H0z",
|
|
142
|
-
fill: "none"
|
|
143
|
-
}));
|
|
144
|
-
|
|
145
|
-
exports.videoIconError = videoIconError;
|
|
146
|
-
|
|
147
|
-
var audioIconError = _react["default"].createElement("svg", {
|
|
148
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
149
|
-
width: "24",
|
|
150
|
-
height: "24",
|
|
151
|
-
viewBox: "0 0 24 24",
|
|
152
|
-
fill: "#D0011B"
|
|
153
|
-
}, _react["default"].createElement("path", {
|
|
154
|
-
fill: "none",
|
|
155
|
-
d: "M0 0h24v24H0V0z"
|
|
156
|
-
}), _react["default"].createElement("path", {
|
|
157
|
-
d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"
|
|
158
|
-
}));
|
|
159
|
-
|
|
160
|
-
exports.audioIconError = audioIconError;
|
|
@@ -1,148 +0,0 @@
|
|
|
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 _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
21
|
-
|
|
22
|
-
var _Icons = require("./Icons");
|
|
23
|
-
|
|
24
|
-
var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
|
|
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
|
-
};
|
|
66
|
-
|
|
67
|
-
return data;
|
|
68
|
-
}
|
|
69
|
-
|
|
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"]);
|
|
72
|
-
|
|
73
|
-
_templateObject = function _templateObject() {
|
|
74
|
-
return data;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
return data;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
var DxcTransaction = function DxcTransaction(_ref) {
|
|
81
|
-
var _ref$name = _ref.name,
|
|
82
|
-
name = _ref$name === void 0 ? "" : _ref$name,
|
|
83
|
-
_ref$type = _ref.type,
|
|
84
|
-
type = _ref$type === void 0 ? "" : _ref$type,
|
|
85
|
-
_ref$status = _ref.status,
|
|
86
|
-
status = _ref$status === void 0 ? "" : _ref$status,
|
|
87
|
-
_ref$message = _ref.message,
|
|
88
|
-
message = _ref$message === void 0 ? "" : _ref$message;
|
|
89
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
90
|
-
|
|
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;
|
|
92
|
-
|
|
93
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
94
|
-
theme: colorsTheme.upload
|
|
95
|
-
}, _react["default"].createElement(DXCTransaction, {
|
|
96
|
-
status: status
|
|
97
|
-
}, _react["default"].createElement(FileImage, {
|
|
98
|
-
status: status
|
|
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"], {
|
|
104
|
-
title: message
|
|
105
|
-
}, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, null, _Icons.errorIcon), " ")));
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
DxcTransaction.propTypes = {
|
|
109
|
-
name: _propTypes["default"].string,
|
|
110
|
-
type: _propTypes["default"].string,
|
|
111
|
-
status: _propTypes["default"].string,
|
|
112
|
-
message: _propTypes["default"].string
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
var DXCTransaction = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
116
|
-
return props.theme.fontFamily;
|
|
117
|
-
}, function (props) {
|
|
118
|
-
return props.status === "error" && props.theme.errorColor;
|
|
119
|
-
});
|
|
120
|
-
|
|
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;
|
|
129
|
-
});
|
|
130
|
-
|
|
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
|
-
});
|
|
142
|
-
|
|
143
|
-
var FileStatus = _styledComponents["default"].div(_templateObject4());
|
|
144
|
-
|
|
145
|
-
var FileData = _styledComponents["default"].div(_templateObject5());
|
|
146
|
-
|
|
147
|
-
var _default = DxcTransaction;
|
|
148
|
-
exports["default"] = _default;
|
|
@@ -1,138 +0,0 @@
|
|
|
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 _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
20
|
-
var _Transaction = _interopRequireDefault(require("../transaction/Transaction"));
|
|
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
|
-
}
|
|
63
|
-
|
|
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"]);
|
|
66
|
-
|
|
67
|
-
_templateObject = function _templateObject() {
|
|
68
|
-
return data;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return data;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var DxcTransactions = function DxcTransactions(_ref) {
|
|
75
|
-
var transactions = _ref.transactions;
|
|
76
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
77
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
78
|
-
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) {
|
|
80
|
-
return file.status === "success";
|
|
81
|
-
}).length), " ", "documents in total")), transactions.map(function (transaction) {
|
|
82
|
-
return _react["default"].createElement(_Transaction["default"], {
|
|
83
|
-
name: transaction.name,
|
|
84
|
-
type: transaction.type,
|
|
85
|
-
status: transaction.status,
|
|
86
|
-
message: transaction.message
|
|
87
|
-
});
|
|
88
|
-
})));
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
DxcTransactions.propTypes = {
|
|
92
|
-
transactions: _propTypes["default"].array
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
var DXCTransactions = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
96
|
-
return props.theme.fontFamily;
|
|
97
|
-
}, function (props) {
|
|
98
|
-
return props.theme.shadowColor;
|
|
99
|
-
}, function (props) {
|
|
100
|
-
return props.theme.backgroundColor;
|
|
101
|
-
}, function (props) {
|
|
102
|
-
return props.theme.scrollBarTrackColor;
|
|
103
|
-
}, function (props) {
|
|
104
|
-
return props.theme.scrollBarThumbColor;
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
var TransactionsText = _styledComponents["default"].span(_templateObject2());
|
|
108
|
-
|
|
109
|
-
var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), function (props) {
|
|
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;
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(), function (props) {
|
|
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;
|
|
129
|
-
}, function (props) {
|
|
130
|
-
return props.theme.uploadedFilesSubtitleFontColor;
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
var TransactionsNumber = _styledComponents["default"].span(_templateObject5(), function (props) {
|
|
134
|
-
return props.theme.uploadedFilesNumberFontWeight;
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
var _default = DxcTransactions;
|
|
138
|
-
exports["default"] = _default;
|
package/wizard/Icons.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
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;
|
package/wizard/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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;
|