@dxc-technology/halstack-react 0.0.0-c5f6a2f → 0.0.0-c6243ef
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/dist/ThemeContext.js +130 -98
- package/dist/accordion/Accordion.js +80 -83
- package/dist/accordion-group/AccordionGroup.js +1 -3
- package/dist/alert/Alert.js +168 -83
- package/dist/alert/index.d.ts +51 -0
- package/dist/badge/Badge.js +3 -1
- package/dist/box/Box.js +1 -9
- package/dist/button/Button.js +30 -20
- package/dist/card/Card.js +15 -8
- package/dist/checkbox/Checkbox.js +88 -21
- package/dist/chip/Chip.js +63 -21
- package/dist/common/variables.js +1105 -418
- package/dist/date/Date.js +60 -40
- package/dist/dialog/Dialog.js +44 -29
- package/dist/dropdown/Dropdown.js +162 -74
- package/dist/file-input/FileInput.js +644 -0
- package/dist/file-input/FileItem.js +280 -0
- package/dist/file-input/index.d.ts +81 -0
- package/dist/footer/Footer.js +25 -35
- package/dist/footer/dxc_logo.svg +15 -0
- package/dist/header/Header.js +14 -42
- package/dist/header/dxc_logo_black.svg +8 -0
- package/dist/heading/Heading.js +1 -5
- package/dist/input-text/InputText.js +132 -56
- package/dist/layout/ApplicationLayout.js +3 -3
- package/dist/link/Link.js +71 -46
- package/dist/main.d.ts +8 -0
- package/dist/main.js +56 -0
- package/dist/new-date/NewDate.js +400 -0
- package/dist/new-date/index.d.ts +95 -0
- package/dist/new-select/NewSelect.js +836 -0
- package/dist/new-select/index.d.ts +53 -0
- package/dist/new-textarea/NewTextarea.js +369 -0
- package/dist/new-textarea/index.d.ts +117 -0
- package/dist/number/Number.js +136 -0
- package/dist/number/NumberContext.js +16 -0
- package/dist/number/index.d.ts +113 -0
- package/dist/paginator/Paginator.js +10 -4
- package/dist/password-input/PasswordInput.js +198 -0
- package/dist/password-input/index.d.ts +94 -0
- package/dist/progress-bar/ProgressBar.js +63 -27
- package/dist/radio/Radio.js +28 -9
- package/dist/resultsetTable/ResultsetTable.js +64 -38
- package/dist/select/Select.js +207 -148
- package/dist/sidenav/Sidenav.js +11 -15
- package/dist/slider/Slider.js +190 -63
- package/dist/spinner/Spinner.js +226 -59
- package/dist/switch/Switch.js +3 -3
- package/dist/table/Table.js +19 -5
- package/dist/tabs/Tabs.js +6 -10
- package/dist/tag/Tag.js +50 -36
- package/dist/text-input/TextInput.js +971 -0
- package/dist/text-input/index.d.ts +135 -0
- package/dist/textarea/Textarea.js +59 -33
- package/dist/toggle-group/ToggleGroup.js +130 -44
- package/dist/upload/Upload.js +1 -5
- package/dist/upload/buttons-upload/ButtonsUpload.js +27 -11
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +54 -18
- package/dist/upload/file-upload/FileToUpload.js +37 -15
- package/dist/upload/files-upload/FilesToUpload.js +3 -3
- package/dist/upload/transaction/Transaction.js +39 -16
- package/dist/upload/transactions/Transactions.js +24 -8
- package/dist/wizard/Wizard.js +84 -56
- package/dist/wizard/invalid_icon.svg +4 -5
- package/dist/wizard/valid_icon.svg +4 -5
- package/package.json +4 -2
- package/test/Date.test.js +13 -13
- package/test/Dropdown.test.js +15 -0
- package/test/FileInput.test.js +201 -0
- package/test/Link.test.js +3 -2
- package/test/NewDate.test.js +232 -0
- package/test/NewTextarea.test.js +195 -0
- package/test/Number.test.js +257 -0
- package/test/Paginator.test.js +1 -1
- package/test/PasswordInput.test.js +83 -0
- package/test/ResultsetTable.test.js +1 -2
- package/test/Select.test.js +44 -24
- package/test/Spinner.test.js +5 -0
- package/test/TextInput.test.js +732 -0
- package/test/ToggleGroup.test.js +5 -1
- package/dist/accordion/Accordion.stories.js +0 -207
- package/dist/accordion/readme.md +0 -96
- package/dist/accordion-group/AccordionGroup.stories.js +0 -207
- package/dist/accordion-group/readme.md +0 -70
- package/dist/alert/Alert.stories.js +0 -158
- package/dist/alert/close.svg +0 -4
- package/dist/alert/error.svg +0 -4
- package/dist/alert/info.svg +0 -4
- package/dist/alert/readme.md +0 -43
- package/dist/alert/success.svg +0 -4
- package/dist/alert/warning.svg +0 -4
- package/dist/button/Button.stories.js +0 -224
- package/dist/button/readme.md +0 -93
- package/dist/date/calendar.svg +0 -1
- package/dist/date/calendar_dark.svg +0 -1
- package/dist/dialog/Dialog.stories.js +0 -217
- package/dist/dialog/readme.md +0 -32
- package/dist/dropdown/Dropdown.stories.js +0 -249
- package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
- package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
- package/dist/dropdown/readme.md +0 -69
- package/dist/footer/Footer.stories.js +0 -94
- package/dist/footer/dxc_logo_wht.png +0 -0
- package/dist/header/dxc_logo_black.png +0 -0
- package/dist/header/dxc_logo_blk_rgb.svg +0 -6
- package/dist/header/dxc_logo_white.png +0 -0
- package/dist/input-text/InputText.stories.js +0 -209
- package/dist/select/Select.stories.js +0 -235
- package/dist/select/readme.md +0 -72
- package/dist/toggle-group/readme.md +0 -82
|
@@ -25,8 +25,10 @@ var _dragDropIcon = _interopRequireDefault(require("./drag-drop-icon.svg"));
|
|
|
25
25
|
|
|
26
26
|
var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
|
|
27
27
|
|
|
28
|
+
var _BackgroundColorContext = require("../../BackgroundColorContext.js");
|
|
29
|
+
|
|
28
30
|
function _templateObject3() {
|
|
29
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background: url(
|
|
31
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-right: 5px;\n"]);
|
|
30
32
|
|
|
31
33
|
_templateObject3 = function _templateObject3() {
|
|
32
34
|
return data;
|
|
@@ -36,7 +38,7 @@ function _templateObject3() {
|
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
function _templateObject2() {
|
|
39
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n align-items: center;\n font-
|
|
41
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n align-items: center;\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-right: 50px;\n"]);
|
|
40
42
|
|
|
41
43
|
_templateObject2 = function _templateObject2() {
|
|
42
44
|
return data;
|
|
@@ -46,7 +48,7 @@ function _templateObject2() {
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
function _templateObject() {
|
|
49
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
51
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 80px;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n"]);
|
|
50
52
|
|
|
51
53
|
_templateObject = function _templateObject() {
|
|
52
54
|
return data;
|
|
@@ -77,6 +79,8 @@ var DxcButtonsUpload = function DxcButtonsUpload(_ref) {
|
|
|
77
79
|
|
|
78
80
|
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
79
81
|
theme: colorsTheme.upload
|
|
82
|
+
}, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
83
|
+
color: colorsTheme.upload.backgroundColor
|
|
80
84
|
}, _react["default"].createElement(DXCButtonsUpload, null, _react["default"].createElement(DragAndDropLabel, null, _react["default"].createElement(DragAndDropIcon, null), "Drag and Drop area"), _react["default"].createElement(_Button["default"], {
|
|
81
85
|
margin: {
|
|
82
86
|
right: "small"
|
|
@@ -97,7 +101,7 @@ var DxcButtonsUpload = function DxcButtonsUpload(_ref) {
|
|
|
97
101
|
iconPosition: "after",
|
|
98
102
|
iconSrc: _uploadButton["default"],
|
|
99
103
|
onClick: onUpload
|
|
100
|
-
})));
|
|
104
|
+
}))));
|
|
101
105
|
};
|
|
102
106
|
|
|
103
107
|
DxcButtonsUpload.propTypes = {
|
|
@@ -105,19 +109,31 @@ DxcButtonsUpload.propTypes = {
|
|
|
105
109
|
onUpload: _propTypes["default"].func
|
|
106
110
|
};
|
|
107
111
|
|
|
108
|
-
var DXCButtonsUpload = _styledComponents["default"].div(_templateObject()
|
|
109
|
-
return props.theme.fontFamily;
|
|
110
|
-
});
|
|
112
|
+
var DXCButtonsUpload = _styledComponents["default"].div(_templateObject());
|
|
111
113
|
|
|
112
114
|
var DragAndDropLabel = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
113
|
-
return props.theme.
|
|
115
|
+
return props.theme.fontFamily;
|
|
116
|
+
}, function (props) {
|
|
117
|
+
return props.theme.dragAndDropAreaTextFontSize;
|
|
114
118
|
}, function (props) {
|
|
115
|
-
return props.theme.
|
|
119
|
+
return props.theme.dragAndDropAreaTextFontStyle;
|
|
116
120
|
}, function (props) {
|
|
117
|
-
return props.theme.
|
|
121
|
+
return props.theme.dragAndDropAreaTextFontWeight;
|
|
122
|
+
}, function (props) {
|
|
123
|
+
return props.theme.dragAndDropAreaTextFontTextTransform;
|
|
124
|
+
}, function (props) {
|
|
125
|
+
return props.theme.dragAndDropAreaTextFontColor;
|
|
118
126
|
});
|
|
119
127
|
|
|
120
|
-
var DragAndDropIcon = _styledComponents["default"].div(_templateObject3(),
|
|
128
|
+
var DragAndDropIcon = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
129
|
+
return props.theme.dragAndDropAreaIconColor;
|
|
130
|
+
}, _dragDropIcon["default"], function (props) {
|
|
131
|
+
return "".concat(props.theme.dragAndDropAreaIconSize, " ").concat(props.theme.dragAndDropAreaIconSize);
|
|
132
|
+
}, function (props) {
|
|
133
|
+
return props.theme.dragAndDropAreaIconSize;
|
|
134
|
+
}, function (props) {
|
|
135
|
+
return props.theme.dragAndDropAreaIconSize;
|
|
136
|
+
});
|
|
121
137
|
|
|
122
138
|
var _default = DxcButtonsUpload;
|
|
123
139
|
exports["default"] = _default;
|
|
@@ -29,8 +29,10 @@ var _Button = _interopRequireDefault(require("../../button/Button"));
|
|
|
29
29
|
|
|
30
30
|
var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
|
|
31
31
|
|
|
32
|
+
var _BackgroundColorContext = require("../../BackgroundColorContext.js");
|
|
33
|
+
|
|
32
34
|
function _templateObject11() {
|
|
33
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n
|
|
35
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 10px;\n"]);
|
|
34
36
|
|
|
35
37
|
_templateObject11 = function _templateObject11() {
|
|
36
38
|
return data;
|
|
@@ -40,7 +42,7 @@ function _templateObject11() {
|
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
function _templateObject10() {
|
|
43
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
45
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n"]);
|
|
44
46
|
|
|
45
47
|
_templateObject10 = function _templateObject10() {
|
|
46
48
|
return data;
|
|
@@ -70,7 +72,7 @@ function _templateObject8() {
|
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
function _templateObject7() {
|
|
73
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n
|
|
75
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 40px;\n"]);
|
|
74
76
|
|
|
75
77
|
_templateObject7 = function _templateObject7() {
|
|
76
78
|
return data;
|
|
@@ -80,7 +82,7 @@ function _templateObject7() {
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
function _templateObject6() {
|
|
83
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-weight: ", ";\n margin-bottom: 10px;\n"]);
|
|
85
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 10px;\n"]);
|
|
84
86
|
|
|
85
87
|
_templateObject6 = function _templateObject6() {
|
|
86
88
|
return data;
|
|
@@ -100,7 +102,7 @@ function _templateObject5() {
|
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
function _templateObject4() {
|
|
103
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
105
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-bottom: 20px;\n"]);
|
|
104
106
|
|
|
105
107
|
_templateObject4 = function _templateObject4() {
|
|
106
108
|
return data;
|
|
@@ -130,7 +132,7 @@ function _templateObject2() {
|
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
function _templateObject() {
|
|
133
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n width: 100%;\n height: 100%;\n"]);
|
|
135
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n background-color: ", ";\n width: 100%;\n height: 100%;\n"]);
|
|
134
136
|
|
|
135
137
|
_templateObject = function _templateObject() {
|
|
136
138
|
return data;
|
|
@@ -206,6 +208,8 @@ var DxcDragAndDropArea = function DxcDragAndDropArea(_ref) {
|
|
|
206
208
|
|
|
207
209
|
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
208
210
|
theme: colorsTheme.upload
|
|
211
|
+
}, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
212
|
+
color: colorsTheme.upload.backgroundColor
|
|
209
213
|
}, _react["default"].createElement(DXCDragAndDrop, {
|
|
210
214
|
onDrop: handleDrop,
|
|
211
215
|
onDragEnter: handleDragIn,
|
|
@@ -237,7 +241,7 @@ var DxcDragAndDropArea = function DxcDragAndDropArea(_ref) {
|
|
|
237
241
|
style: {
|
|
238
242
|
display: "none"
|
|
239
243
|
}
|
|
240
|
-
})))), dragging && _react["default"].createElement(DragAndDropContentHover, null, _react["default"].createElement(DragAndDropTextHover, null, textHover), _react["default"].createElement(DragAndDropIconHover, null))));
|
|
244
|
+
})))), dragging && _react["default"].createElement(DragAndDropContentHover, null, _react["default"].createElement(DragAndDropTextHover, null, textHover), _react["default"].createElement(DragAndDropIconHover, null)))));
|
|
241
245
|
};
|
|
242
246
|
|
|
243
247
|
DxcDragAndDropArea.propTypes = {
|
|
@@ -247,6 +251,8 @@ DxcDragAndDropArea.propTypes = {
|
|
|
247
251
|
|
|
248
252
|
var DXCDragAndDrop = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
249
253
|
return props.theme.fontFamily;
|
|
254
|
+
}, function (props) {
|
|
255
|
+
return props.theme.backgroundColor;
|
|
250
256
|
});
|
|
251
257
|
|
|
252
258
|
var DXCDragAndDropArea = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
@@ -255,38 +261,68 @@ var DXCDragAndDropArea = _styledComponents["default"].div(_templateObject2(), fu
|
|
|
255
261
|
|
|
256
262
|
var DragAndDropContent = _styledComponents["default"].div(_templateObject3());
|
|
257
263
|
|
|
258
|
-
var DragAndDropIcon = _styledComponents["default"].div(_templateObject4(),
|
|
264
|
+
var DragAndDropIcon = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
265
|
+
return props.theme.dragAndDropIconColor;
|
|
266
|
+
}, _upload_file["default"], function (props) {
|
|
267
|
+
return "".concat(props.theme.dragAndDropIconSize, " ").concat(props.theme.dragAndDropIconSize);
|
|
268
|
+
}, function (props) {
|
|
269
|
+
return props.theme.dragAndDropIconSize;
|
|
270
|
+
}, function (props) {
|
|
271
|
+
return props.theme.dragAndDropIconSize;
|
|
272
|
+
});
|
|
259
273
|
|
|
260
274
|
var DragAndDropText = _styledComponents["default"].div(_templateObject5());
|
|
261
275
|
|
|
262
276
|
var DragAndDropTitle = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
263
|
-
return props.theme.
|
|
277
|
+
return props.theme.dragAndDropTitleFontSize;
|
|
278
|
+
}, function (props) {
|
|
279
|
+
return props.theme.dragAndDropTitleFontStyle;
|
|
280
|
+
}, function (props) {
|
|
281
|
+
return props.theme.dragAndDropTitleFontWeight;
|
|
282
|
+
}, function (props) {
|
|
283
|
+
return props.theme.dragAndDropTitleFontTextTransform;
|
|
264
284
|
}, function (props) {
|
|
265
|
-
return props.theme.
|
|
285
|
+
return props.theme.dragAndDropTitleFontColor;
|
|
266
286
|
});
|
|
267
287
|
|
|
268
288
|
var DragAndDropDescription = _styledComponents["default"].div(_templateObject7(), function (props) {
|
|
269
|
-
return props.theme.
|
|
289
|
+
return props.theme.dragAndDropDescriptionFontSize;
|
|
270
290
|
}, function (props) {
|
|
271
|
-
return props.theme.
|
|
291
|
+
return props.theme.dragAndDropDescriptionFontStyle;
|
|
272
292
|
}, function (props) {
|
|
273
|
-
return props.theme.
|
|
293
|
+
return props.theme.dragAndDropDescriptionFontWeight;
|
|
294
|
+
}, function (props) {
|
|
295
|
+
return props.theme.dragAndDropDescriptionFontTextTransform;
|
|
296
|
+
}, function (props) {
|
|
297
|
+
return props.theme.dragAndDropDescriptionFontColor;
|
|
274
298
|
});
|
|
275
299
|
|
|
276
300
|
var ButtonChooseFiles = _styledComponents["default"].div(_templateObject8());
|
|
277
301
|
|
|
278
302
|
var DragAndDropContentHover = _styledComponents["default"].div(_templateObject9(), function (props) {
|
|
279
|
-
return props.theme.
|
|
303
|
+
return props.theme.draggingStateBackgroundColor;
|
|
280
304
|
});
|
|
281
305
|
|
|
282
|
-
var DragAndDropIconHover = _styledComponents["default"].div(_templateObject10(),
|
|
306
|
+
var DragAndDropIconHover = _styledComponents["default"].div(_templateObject10(), function (props) {
|
|
307
|
+
return props.theme.dragAndDropDraggingStateIconColor;
|
|
308
|
+
}, _upload_drop["default"], function (props) {
|
|
309
|
+
return "".concat(props.theme.dragAndDropDraggingStateIconSize, " ").concat(props.theme.dragAndDropDraggingStateIconSize);
|
|
310
|
+
}, function (props) {
|
|
311
|
+
return props.theme.dragAndDropDraggingStateIconSize;
|
|
312
|
+
}, function (props) {
|
|
313
|
+
return props.theme.dragAndDropDraggingStateIconSize;
|
|
314
|
+
});
|
|
283
315
|
|
|
284
316
|
var DragAndDropTextHover = _styledComponents["default"].div(_templateObject11(), function (props) {
|
|
285
|
-
return props.theme.
|
|
317
|
+
return props.theme.dragAndDropDraggingStateFontSize;
|
|
318
|
+
}, function (props) {
|
|
319
|
+
return props.theme.dragAndDropDraggingStateFontStyle;
|
|
320
|
+
}, function (props) {
|
|
321
|
+
return props.theme.dragAndDropDraggingStateFontWeight;
|
|
286
322
|
}, function (props) {
|
|
287
|
-
return props.theme.
|
|
323
|
+
return props.theme.dragAndDropDraggingStateFontTextTransform;
|
|
288
324
|
}, function (props) {
|
|
289
|
-
return props.theme.
|
|
325
|
+
return props.theme.dragAndDropDraggingStateFontColor;
|
|
290
326
|
});
|
|
291
327
|
|
|
292
328
|
var _default = DxcDragAndDropArea;
|
|
@@ -28,7 +28,7 @@ var _audioIcon = _interopRequireDefault(require("./audio-icon.svg"));
|
|
|
28
28
|
var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
|
|
29
29
|
|
|
30
30
|
function _templateObject7() {
|
|
31
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
31
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n border: none;\n display: flex;\n margin-right: 30px;\n margin-top: 11px;\n &:focus {\n visibility: visible;\n }\n"]);
|
|
32
32
|
|
|
33
33
|
_templateObject7 = function _templateObject7() {
|
|
34
34
|
return data;
|
|
@@ -38,7 +38,7 @@ function _templateObject7() {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
function _templateObject6() {
|
|
41
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
41
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n"]);
|
|
42
42
|
|
|
43
43
|
_templateObject6 = function _templateObject6() {
|
|
44
44
|
return data;
|
|
@@ -48,7 +48,7 @@ function _templateObject6() {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function _templateObject5() {
|
|
51
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
51
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 12px;\n"]);
|
|
52
52
|
|
|
53
53
|
_templateObject5 = function _templateObject5() {
|
|
54
54
|
return data;
|
|
@@ -58,7 +58,7 @@ function _templateObject5() {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function _templateObject4() {
|
|
61
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
61
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]);
|
|
62
62
|
|
|
63
63
|
_templateObject4 = function _templateObject4() {
|
|
64
64
|
return data;
|
|
@@ -88,7 +88,7 @@ function _templateObject2() {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
function _templateObject() {
|
|
91
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n height: 52px;\n display: flex;\n flex-direction: column;\n padding-bottom: 25px;\n padding-top: 25px;\n border-bottom:
|
|
91
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n height: 52px;\n display: flex;\n flex-direction: column;\n padding-bottom: 25px;\n padding-top: 25px;\n border-bottom: ", " solid ", ";\n :hover {\n background: ", ";\n &:hover {\n cursor: pointer;\n }\n }\n"]);
|
|
92
92
|
|
|
93
93
|
_templateObject = function _templateObject() {
|
|
94
94
|
return data;
|
|
@@ -133,30 +133,52 @@ DxcFileToUpload.propTypes = {
|
|
|
133
133
|
var DXCFileToUpload = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
134
134
|
return props.theme.fontFamily;
|
|
135
135
|
}, function (props) {
|
|
136
|
-
return props.theme.
|
|
136
|
+
return props.theme.fileUnderlineThickness;
|
|
137
137
|
}, function (props) {
|
|
138
|
-
return props.theme.
|
|
138
|
+
return props.theme.fileUnderlineColor;
|
|
139
|
+
}, function (props) {
|
|
140
|
+
return props.theme.hoverFileColor;
|
|
139
141
|
});
|
|
140
142
|
|
|
141
143
|
var FileContent = _styledComponents["default"].div(_templateObject2());
|
|
142
144
|
|
|
143
145
|
var FileImage = _styledComponents["default"].img(_templateObject3());
|
|
144
146
|
|
|
145
|
-
var
|
|
146
|
-
return props.theme.fontSize16;
|
|
147
|
-
});
|
|
147
|
+
var FileInfo = _styledComponents["default"].div(_templateObject4());
|
|
148
148
|
|
|
149
|
-
var
|
|
149
|
+
var FileName = _styledComponents["default"].div(_templateObject5(), function (props) {
|
|
150
|
+
return props.theme.fileNameFontSize;
|
|
151
|
+
}, function (props) {
|
|
152
|
+
return props.theme.fileNameFontStyle;
|
|
153
|
+
}, function (props) {
|
|
154
|
+
return props.theme.fileNameFontWeight;
|
|
155
|
+
}, function (props) {
|
|
156
|
+
return props.theme.fileNameFontTextTransform;
|
|
157
|
+
}, function (props) {
|
|
158
|
+
return props.theme.fileNameFontColor;
|
|
159
|
+
});
|
|
150
160
|
|
|
151
161
|
var FileType = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
152
|
-
return props.theme.
|
|
162
|
+
return props.theme.fileTypeFontSize;
|
|
163
|
+
}, function (props) {
|
|
164
|
+
return props.theme.fileTypeFontStyle;
|
|
165
|
+
}, function (props) {
|
|
166
|
+
return props.theme.fileTypeFontWeight;
|
|
153
167
|
}, function (props) {
|
|
154
|
-
return props.theme.
|
|
168
|
+
return props.theme.fileTypeFontTextTransform;
|
|
155
169
|
}, function (props) {
|
|
156
|
-
return props.theme.
|
|
170
|
+
return props.theme.fileTypeFontColor;
|
|
157
171
|
});
|
|
158
172
|
|
|
159
|
-
var DeleteFile = _styledComponents["default"].button(_templateObject7(),
|
|
173
|
+
var DeleteFile = _styledComponents["default"].button(_templateObject7(), function (props) {
|
|
174
|
+
return props.theme.fileDeleteIconColor;
|
|
175
|
+
}, _close["default"], function (props) {
|
|
176
|
+
return "".concat(props.theme.fileDeleteIconSize, " ").concat(props.theme.fileDeleteIconSize);
|
|
177
|
+
}, function (props) {
|
|
178
|
+
return props.theme.fileDeleteIconSize;
|
|
179
|
+
}, function (props) {
|
|
180
|
+
return props.theme.fileDeleteIconSize;
|
|
181
|
+
});
|
|
160
182
|
|
|
161
183
|
var _default = DxcFileToUpload;
|
|
162
184
|
exports["default"] = _default;
|
|
@@ -34,7 +34,7 @@ function _templateObject2() {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
function _templateObject() {
|
|
37
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
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
38
|
|
|
39
39
|
_templateObject = function _templateObject() {
|
|
40
40
|
return data;
|
|
@@ -108,9 +108,9 @@ DxcFilesToUpload.propTypes = {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
var DXCFilesToUpload = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
111
|
-
return props.theme.fontFamily;
|
|
112
|
-
}, function (props) {
|
|
113
111
|
return props.theme.shadowColor;
|
|
112
|
+
}, function (props) {
|
|
113
|
+
return props.theme.backgroundColor;
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
var FilesToUpload = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
@@ -43,8 +43,10 @@ var _Spinner = _interopRequireDefault(require("../../spinner/Spinner"));
|
|
|
43
43
|
|
|
44
44
|
var _useTheme = _interopRequireDefault(require("../../useTheme.js"));
|
|
45
45
|
|
|
46
|
+
var _BackgroundColorContext = require("../../BackgroundColorContext.js");
|
|
47
|
+
|
|
46
48
|
function _templateObject5() {
|
|
47
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
49
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n width: 80%;\n"]);
|
|
48
50
|
|
|
49
51
|
_templateObject5 = function _templateObject5() {
|
|
50
52
|
return data;
|
|
@@ -54,7 +56,7 @@ function _templateObject5() {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
function _templateObject4() {
|
|
57
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
59
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background: ", ";\n width: 25px;\n height: 20px;\n max-width: 20%;\n"]);
|
|
58
60
|
|
|
59
61
|
_templateObject4 = function _templateObject4() {
|
|
60
62
|
return data;
|
|
@@ -64,7 +66,7 @@ function _templateObject4() {
|
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
function _templateObject3() {
|
|
67
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
69
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-right: 16px;\n width: 80%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"]);
|
|
68
70
|
|
|
69
71
|
_templateObject3 = function _templateObject3() {
|
|
70
72
|
return data;
|
|
@@ -74,7 +76,7 @@ function _templateObject3() {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
function _templateObject2() {
|
|
77
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
79
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n margin-right: 16px;\n max-width: 20%;\n"]);
|
|
78
80
|
|
|
79
81
|
_templateObject2 = function _templateObject2() {
|
|
80
82
|
return data;
|
|
@@ -84,7 +86,7 @@ function _templateObject2() {
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
function _templateObject() {
|
|
87
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n display: flex;\n flex-direction: row;\n margin-bottom: 16px;\n color: ", ";\n
|
|
89
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n display: flex;\n flex-direction: row;\n margin-bottom: 16px;\n color: ", ";\n .MuiCircularProgress-root {\n width: 28px !important;\n height: 28px !important;\n }\n"]);
|
|
88
90
|
|
|
89
91
|
_templateObject = function _templateObject() {
|
|
90
92
|
return data;
|
|
@@ -111,12 +113,15 @@ var DxcTransaction = function DxcTransaction(_ref) {
|
|
|
111
113
|
}, _react["default"].createElement(DXCTransaction, {
|
|
112
114
|
status: status
|
|
113
115
|
}, _react["default"].createElement(FileImage, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
status: status,
|
|
117
|
+
img: icon
|
|
118
|
+
}), status === "processing" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
119
|
+
color: colorsTheme.upload.backgroundColor
|
|
120
|
+
}, _react["default"].createElement(_Spinner["default"], {
|
|
116
121
|
mode: "small"
|
|
117
|
-
})) || status === "success" && _react["default"].createElement(
|
|
122
|
+
}))) || status === "success" && _react["default"].createElement(FileData, null, _react["default"].createElement(FileName, null, name), _react["default"].createElement(FileStatus, {
|
|
118
123
|
status: status
|
|
119
|
-
})) || status === "error" && _react["default"].createElement(
|
|
124
|
+
})) || status === "error" && _react["default"].createElement(FileData, null, _react["default"].createElement(_Tooltip["default"], {
|
|
120
125
|
title: message
|
|
121
126
|
}, _react["default"].createElement(FileName, null, name)), _react["default"].createElement(FileStatus, {
|
|
122
127
|
status: status
|
|
@@ -133,20 +138,38 @@ DxcTransaction.propTypes = {
|
|
|
133
138
|
var DXCTransaction = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
134
139
|
return props.theme.fontFamily;
|
|
135
140
|
}, function (props) {
|
|
136
|
-
return props.status === "error" &&
|
|
141
|
+
return props.status === "error" && props.theme.errorColor;
|
|
137
142
|
});
|
|
138
143
|
|
|
139
|
-
var FileImage = _styledComponents["default"].
|
|
140
|
-
return props.status === "error" &&
|
|
144
|
+
var FileImage = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
145
|
+
return props.status === "error" && props.theme.errorColor || props.theme.uploadedFileIconColor;
|
|
146
|
+
}, function (props) {
|
|
147
|
+
return props.img;
|
|
148
|
+
}, function (props) {
|
|
149
|
+
return "".concat(props.theme.uploadedFileIconSize, " ").concat(props.theme.uploadedFileIconSize);
|
|
150
|
+
}, function (props) {
|
|
151
|
+
return props.theme.uploadedFileIconSize;
|
|
152
|
+
}, function (props) {
|
|
153
|
+
return props.theme.uploadedFileIconSize;
|
|
141
154
|
});
|
|
142
155
|
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
156
|
+
var FileName = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
157
|
+
return props.theme.fileNameFontSize;
|
|
158
|
+
}, function (props) {
|
|
159
|
+
return props.theme.fileNameFontStyle;
|
|
160
|
+
}, function (props) {
|
|
161
|
+
return props.theme.fileNameFontWeight;
|
|
162
|
+
}, function (props) {
|
|
163
|
+
return props.theme.fileNameFontTextTransform;
|
|
164
|
+
}, function (props) {
|
|
165
|
+
return props.theme.fileNameFontColor;
|
|
166
|
+
});
|
|
146
167
|
|
|
147
|
-
var FileStatus = _styledComponents["default"].div(
|
|
168
|
+
var FileStatus = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
148
169
|
return props.status === "success" && "url('".concat(_successIcon["default"], "') no-repeat padding-box") || props.status === "error" && "url('".concat(_errorIcon["default"], "') no-repeat padding-box");
|
|
149
170
|
});
|
|
150
171
|
|
|
172
|
+
var FileData = _styledComponents["default"].div(_templateObject5());
|
|
173
|
+
|
|
151
174
|
var _default = DxcTransaction;
|
|
152
175
|
exports["default"] = _default;
|
|
@@ -32,7 +32,7 @@ function _templateObject5() {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function _templateObject4() {
|
|
35
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n
|
|
35
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n"]);
|
|
36
36
|
|
|
37
37
|
_templateObject4 = function _templateObject4() {
|
|
38
38
|
return data;
|
|
@@ -42,7 +42,7 @@ function _templateObject4() {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function _templateObject3() {
|
|
45
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
45
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n text-transform: ", ";\n color: ", ";\n margin-bottom: 4px;\n"]);
|
|
46
46
|
|
|
47
47
|
_templateObject3 = function _templateObject3() {
|
|
48
48
|
return data;
|
|
@@ -62,7 +62,7 @@ function _templateObject2() {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
function _templateObject() {
|
|
65
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n width: 35%;\n padding-top: 46px;\n padding-left: 65px;\n border-radius: 4px 0px 4px 4px;\n box-shadow: 0px 0px 1px ", ";\n overflow: auto;\n ::-webkit-scrollbar {\n width: 3px;\n }\n ::-webkit-scrollbar-track {\n border-radius: 3px;\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: ", ";\n }\n"]);
|
|
65
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n max-width: 100%;\n width: 35%;\n padding-top: 46px;\n padding-left: 65px;\n border-radius: 4px 0px 4px 4px;\n box-shadow: 0px 0px 1px ", ";\n background-color: ", ";\n overflow: auto;\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n ::-webkit-scrollbar-track {\n border-radius: 3px;\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: ", ";\n }\n"]);
|
|
66
66
|
|
|
67
67
|
_templateObject = function _templateObject() {
|
|
68
68
|
return data;
|
|
@@ -95,7 +95,9 @@ DxcTransactions.propTypes = {
|
|
|
95
95
|
var DXCTransactions = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
96
96
|
return props.theme.fontFamily;
|
|
97
97
|
}, function (props) {
|
|
98
|
-
return props.theme.
|
|
98
|
+
return props.theme.shadowColor;
|
|
99
|
+
}, function (props) {
|
|
100
|
+
return props.theme.backgroundColor;
|
|
99
101
|
}, function (props) {
|
|
100
102
|
return props.theme.scrollBarTrackColor;
|
|
101
103
|
}, function (props) {
|
|
@@ -105,17 +107,31 @@ var DXCTransactions = _styledComponents["default"].div(_templateObject(), functi
|
|
|
105
107
|
var TransactionsText = _styledComponents["default"].span(_templateObject2());
|
|
106
108
|
|
|
107
109
|
var TransactionsTitle = _styledComponents["default"].span(_templateObject3(), function (props) {
|
|
108
|
-
return props.theme.
|
|
110
|
+
return props.theme.uploadedFilesTitleFontSize;
|
|
111
|
+
}, function (props) {
|
|
112
|
+
return props.theme.uploadedFilesTitleFontStyle;
|
|
113
|
+
}, function (props) {
|
|
114
|
+
return props.theme.uploadedFilesTitleFontWeight;
|
|
115
|
+
}, function (props) {
|
|
116
|
+
return props.theme.uploadedFilesTitleFontTextTransform;
|
|
117
|
+
}, function (props) {
|
|
118
|
+
return props.theme.uploadedFilesTitleFontColor;
|
|
109
119
|
});
|
|
110
120
|
|
|
111
121
|
var TransactionsSubTitle = _styledComponents["default"].span(_templateObject4(), function (props) {
|
|
112
|
-
return props.theme.
|
|
122
|
+
return props.theme.uploadedFilesSubtitleFontSize;
|
|
123
|
+
}, function (props) {
|
|
124
|
+
return props.theme.uploadedFilesSubtitleFontStyle;
|
|
125
|
+
}, function (props) {
|
|
126
|
+
return props.theme.uploadedFilesSubtitleFontWeight;
|
|
127
|
+
}, function (props) {
|
|
128
|
+
return props.theme.uploadedFilesSubtitleFontTextTransform;
|
|
113
129
|
}, function (props) {
|
|
114
|
-
return props.theme.
|
|
130
|
+
return props.theme.uploadedFilesSubtitleFontColor;
|
|
115
131
|
});
|
|
116
132
|
|
|
117
133
|
var TransactionsNumber = _styledComponents["default"].span(_templateObject5(), function (props) {
|
|
118
|
-
return props.theme.
|
|
134
|
+
return props.theme.uploadedFilesNumberFontWeight;
|
|
119
135
|
});
|
|
120
136
|
|
|
121
137
|
var _default = DxcTransactions;
|