@dxc-technology/halstack-react 0.0.0-3466161 → 0.0.0-34d2259
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 +123 -108
- 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 +2 -4
- package/dist/checkbox/Checkbox.js +30 -21
- package/dist/chip/Chip.js +37 -49
- package/dist/common/variables.js +951 -590
- package/dist/date/Date.js +17 -29
- package/dist/dialog/Dialog.js +21 -39
- package/dist/dropdown/Dropdown.js +129 -83
- 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 +93 -55
- package/dist/layout/ApplicationLayout.js +1 -1
- 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-input-text/NewInputText.js +967 -0
- package/dist/new-input-text/index.d.ts +135 -0
- package/dist/new-select/NewSelect.js +836 -0
- package/dist/new-select/index.d.ts +53 -0
- package/dist/new-textarea/NewTextarea.js +365 -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/Password.js +200 -0
- package/dist/password/index.d.ts +94 -0
- package/dist/password/styles.css +3 -0
- package/dist/progress-bar/ProgressBar.js +63 -27
- package/dist/resultsetTable/ResultsetTable.js +5 -22
- package/dist/select/Select.js +189 -165
- package/dist/sidenav/Sidenav.js +11 -15
- package/dist/slider/Slider.js +60 -56
- package/dist/spinner/Spinner.js +226 -59
- package/dist/switch/Switch.js +3 -3
- package/dist/table/Table.js +15 -5
- package/dist/tabs/Tabs.js +4 -8
- package/dist/tag/Tag.js +38 -36
- package/dist/textarea/Textarea.js +26 -22
- package/dist/toggle-group/ToggleGroup.js +25 -43
- package/dist/upload/buttons-upload/ButtonsUpload.js +8 -4
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +16 -12
- package/dist/upload/file-upload/FileToUpload.js +4 -4
- package/dist/upload/transaction/Transaction.js +13 -9
- package/dist/upload/transactions/Transactions.js +11 -11
- 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/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/NewInputText.test.js +734 -0
- package/test/NewTextarea.test.js +195 -0
- package/test/Number.test.js +257 -0
- package/test/Paginator.test.js +1 -1
- package/test/Password.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/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/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/select/Select.stories.js +0 -235
- package/dist/select/readme.md +0 -72
- package/dist/toggle-group/readme.md +0 -82
package/dist/tag/Tag.js
CHANGED
|
@@ -30,7 +30,7 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
|
30
30
|
var _Box = _interopRequireDefault(require("../box/Box"));
|
|
31
31
|
|
|
32
32
|
function _templateObject8() {
|
|
33
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n padding:
|
|
33
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n flex-grow: 1;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n"]);
|
|
34
34
|
|
|
35
35
|
_templateObject8 = function _templateObject8() {
|
|
36
36
|
return data;
|
|
@@ -40,7 +40,7 @@ function _templateObject8() {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
function _templateObject7() {
|
|
43
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n background: ", ";\n width: ", ";\n justify-content: center;\n align-items: center;\n color: ", ";\n
|
|
43
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n background: ", ";\n width: ", ";\n height: 100%;\n justify-content: center;\n align-items: center;\n color: ", ";\n"]);
|
|
44
44
|
|
|
45
45
|
_templateObject7 = function _templateObject7() {
|
|
46
46
|
return data;
|
|
@@ -50,7 +50,7 @@ function _templateObject7() {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
function _templateObject6() {
|
|
53
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
53
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n\n img,\n svg {\n width: ", ";\n height: ", ";\n }\n"]);
|
|
54
54
|
|
|
55
55
|
_templateObject6 = function _templateObject6() {
|
|
56
56
|
return data;
|
|
@@ -60,7 +60,7 @@ function _templateObject6() {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
function _templateObject5() {
|
|
63
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
63
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n width: ", ";\n height: ", ";\n"]);
|
|
64
64
|
|
|
65
65
|
_templateObject5 = function _templateObject5() {
|
|
66
66
|
return data;
|
|
@@ -70,7 +70,7 @@ function _templateObject5() {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
function _templateObject4() {
|
|
73
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n
|
|
73
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border-radius: 4px;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: inherit;\n\n :focus {\n outline: 2px solid ", ";\n }\n"]);
|
|
74
74
|
|
|
75
75
|
_templateObject4 = function _templateObject4() {
|
|
76
76
|
return data;
|
|
@@ -80,7 +80,7 @@ function _templateObject4() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
function _templateObject3() {
|
|
83
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: none;\n"]);
|
|
83
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: none;\n border-radius: 4px;\n\n :focus {\n outline: 2px solid ", ";\n outline-offset: 0px;\n }\n"]);
|
|
84
84
|
|
|
85
85
|
_templateObject3 = function _templateObject3() {
|
|
86
86
|
return data;
|
|
@@ -100,7 +100,7 @@ function _templateObject2() {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
function _templateObject() {
|
|
103
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
103
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n cursor: ", ";\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
|
|
104
104
|
|
|
105
105
|
_templateObject = function _templateObject() {
|
|
106
106
|
return data;
|
|
@@ -117,7 +117,7 @@ var DxcTag = function DxcTag(_ref) {
|
|
|
117
117
|
linkHref = _ref.linkHref,
|
|
118
118
|
onClick = _ref.onClick,
|
|
119
119
|
_ref$iconBgColor = _ref.iconBgColor,
|
|
120
|
-
iconBgColor = _ref$iconBgColor === void 0 ? "#
|
|
120
|
+
iconBgColor = _ref$iconBgColor === void 0 ? "#5f249f" : _ref$iconBgColor,
|
|
121
121
|
_ref$labelPosition = _ref.labelPosition,
|
|
122
122
|
labelPosition = _ref$labelPosition === void 0 ? "after" : _ref$labelPosition,
|
|
123
123
|
_ref$newWindow = _ref.newWindow,
|
|
@@ -125,7 +125,7 @@ var DxcTag = function DxcTag(_ref) {
|
|
|
125
125
|
_ref$size = _ref.size,
|
|
126
126
|
size = _ref$size === void 0 ? "fitContent" : _ref$size,
|
|
127
127
|
_ref$tabIndex = _ref.tabIndex,
|
|
128
|
-
tabIndex = _ref$tabIndex === void 0 ?
|
|
128
|
+
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
129
129
|
var colorsTheme = (0, _useTheme["default"])();
|
|
130
130
|
|
|
131
131
|
var _useState = (0, _react.useState)(false),
|
|
@@ -134,9 +134,7 @@ var DxcTag = function DxcTag(_ref) {
|
|
|
134
134
|
changeIsHovered = _useState2[1];
|
|
135
135
|
|
|
136
136
|
var clickHandler = function clickHandler() {
|
|
137
|
-
|
|
138
|
-
onClick();
|
|
139
|
-
}
|
|
137
|
+
onClick && onClick();
|
|
140
138
|
};
|
|
141
139
|
|
|
142
140
|
var tagContent = _react["default"].createElement(_Box["default"], {
|
|
@@ -144,7 +142,6 @@ var DxcTag = function DxcTag(_ref) {
|
|
|
144
142
|
shadowDepth: isHovered && (onClick || linkHref) && 2 || 1
|
|
145
143
|
}, _react["default"].createElement(TagContent, {
|
|
146
144
|
labelPosition: labelPosition,
|
|
147
|
-
margin: margin,
|
|
148
145
|
size: size
|
|
149
146
|
}, _react["default"].createElement(IconContainer, {
|
|
150
147
|
iconBgColor: iconBgColor
|
|
@@ -185,9 +182,7 @@ var calculateWidth = function calculateWidth(size) {
|
|
|
185
182
|
return sizes[size];
|
|
186
183
|
};
|
|
187
184
|
|
|
188
|
-
var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (
|
|
189
|
-
return props.theme.fontStyle;
|
|
190
|
-
}, function (_ref2) {
|
|
185
|
+
var StyledDxcTag = _styledComponents["default"].div(_templateObject(), function (_ref2) {
|
|
191
186
|
var hasAction = _ref2.hasAction;
|
|
192
187
|
return hasAction && "pointer" || "unset";
|
|
193
188
|
}, function (_ref3) {
|
|
@@ -216,20 +211,24 @@ var TagContent = _styledComponents["default"].div(_templateObject2(), function (
|
|
|
216
211
|
return props.theme.height;
|
|
217
212
|
});
|
|
218
213
|
|
|
219
|
-
var StyledLink = _styledComponents["default"].a(_templateObject3())
|
|
214
|
+
var StyledLink = _styledComponents["default"].a(_templateObject3(), function (props) {
|
|
215
|
+
return props.theme.focusColor;
|
|
216
|
+
});
|
|
220
217
|
|
|
221
|
-
var StyledButton = _styledComponents["default"].button(_templateObject4())
|
|
218
|
+
var StyledButton = _styledComponents["default"].button(_templateObject4(), function (props) {
|
|
219
|
+
return props.theme.focusColor;
|
|
220
|
+
});
|
|
222
221
|
|
|
223
222
|
var TagIcon = _styledComponents["default"].img(_templateObject5(), function (props) {
|
|
224
|
-
return props.theme.iconHeight;
|
|
225
|
-
}, function (props) {
|
|
226
223
|
return props.theme.iconWidth;
|
|
224
|
+
}, function (props) {
|
|
225
|
+
return props.theme.iconHeight;
|
|
227
226
|
});
|
|
228
227
|
|
|
229
228
|
var TagIconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
230
|
-
return props.theme.iconHeight;
|
|
231
|
-
}, function (props) {
|
|
232
229
|
return props.theme.iconWidth;
|
|
230
|
+
}, function (props) {
|
|
231
|
+
return props.theme.iconHeight;
|
|
233
232
|
});
|
|
234
233
|
|
|
235
234
|
var IconContainer = _styledComponents["default"].div(_templateObject7(), function (_ref9) {
|
|
@@ -239,12 +238,26 @@ var IconContainer = _styledComponents["default"].div(_templateObject7(), functio
|
|
|
239
238
|
return props.theme.iconSectionWidth;
|
|
240
239
|
}, function (props) {
|
|
241
240
|
return props.theme.iconColor;
|
|
242
|
-
}, function (props) {
|
|
243
|
-
return props.theme.height;
|
|
244
241
|
});
|
|
245
242
|
|
|
246
243
|
var TagLabel = _styledComponents["default"].div(_templateObject8(), function (props) {
|
|
247
|
-
return props.theme.
|
|
244
|
+
return props.theme.fontFamily;
|
|
245
|
+
}, function (props) {
|
|
246
|
+
return props.theme.fontSize;
|
|
247
|
+
}, function (props) {
|
|
248
|
+
return props.theme.fontStyle;
|
|
249
|
+
}, function (props) {
|
|
250
|
+
return props.theme.fontWeight;
|
|
251
|
+
}, function (props) {
|
|
252
|
+
return props.theme.fontColor;
|
|
253
|
+
}, function (props) {
|
|
254
|
+
return props.theme.labelPaddingTop;
|
|
255
|
+
}, function (props) {
|
|
256
|
+
return props.theme.labelPaddingBottom;
|
|
257
|
+
}, function (props) {
|
|
258
|
+
return props.theme.labelPaddingLeft;
|
|
259
|
+
}, function (props) {
|
|
260
|
+
return props.theme.labelPaddingRight;
|
|
248
261
|
});
|
|
249
262
|
|
|
250
263
|
DxcTag.propTypes = {
|
|
@@ -265,16 +278,5 @@ DxcTag.propTypes = {
|
|
|
265
278
|
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
266
279
|
tabIndex: _propTypes["default"].number
|
|
267
280
|
};
|
|
268
|
-
DxcTag.defaultProps = {
|
|
269
|
-
icon: null,
|
|
270
|
-
iconSrc: null,
|
|
271
|
-
label: null,
|
|
272
|
-
margin: null,
|
|
273
|
-
linkHref: null,
|
|
274
|
-
onClick: null,
|
|
275
|
-
iconBgColor: "#6f2c91",
|
|
276
|
-
labelPosition: "after",
|
|
277
|
-
newWindow: false
|
|
278
|
-
};
|
|
279
281
|
var _default = DxcTag;
|
|
280
282
|
exports["default"] = _default;
|
|
@@ -36,7 +36,7 @@ var _RequiredComponent = _interopRequireDefault(require("../common/RequiredCompo
|
|
|
36
36
|
var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext.js"));
|
|
37
37
|
|
|
38
38
|
function _templateObject() {
|
|
39
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: inline-block;\n position: relative;\n height: auto;\n width: ", ";\n\n .MuiTextField-root {\n width: 100%;\n\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n margin-top: 6px;\n }\n .MuiFormLabel-root {\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n padding-left: \"inherit\";\n\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n\n &.Mui-focused {\n color: ", ";\n &.MuiInputLabel-shrink {\n transform: \"translate(0, 1.5px) scale(0.75);\";\n }\n }\n\n &.MuiInputLabel-shrink {\n font-family: ", ";\n transform: \"translate(0, 1.5px) scale(0.75)\";\n }\n\n &.Mui-error {\n color: ", ";\n }\n\n &:not(.MuiInputLabel-shrink) {\n font-family: ", ";\n color: ", ";\n & + div,\n & + div + p {\n color: ", ";\n }\n }\n\n &.MuiInputLabel-shrink {\n & + div::before {\n border-color: ", ";\n }\n & + div + p {\n color: ", ";\n }\n }\n }\n .MuiInputBase-root.MuiInput-root.MuiInput-underline {\n &::before {\n border-bottom: ", ";\n }\n &:not(.Mui-error)::before,\n &:not(&.Mui-focused)::before {\n border-bottom: ", ";\n }\n &::after {\n border-bottom: ", ";\n }\n\n .MuiInputBase-inputMultiline {\n overflow: auto !important;\n\n ::-webkit-scrollbar {\n width: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n }\n\n &.Mui-error {\n &::before {\n border-width:
|
|
39
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: inline-block;\n position: relative;\n height: auto;\n width: ", ";\n\n .MuiTextField-root {\n width: 100%;\n\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n margin-top: 6px;\n }\n .MuiFormLabel-root {\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n padding-left: \"inherit\";\n\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n\n &.Mui-focused {\n color: ", ";\n &.MuiInputLabel-shrink {\n transform: \"translate(0, 1.5px) scale(0.75);\";\n }\n }\n\n &.MuiInputLabel-shrink {\n font-family: ", ";\n transform: \"translate(0, 1.5px) scale(0.75)\";\n }\n\n &.Mui-error {\n color: ", ";\n }\n\n &:not(.MuiInputLabel-shrink) {\n font-family: ", ";\n color: ", ";\n & + div,\n & + div + p {\n color: ", ";\n }\n }\n\n &.MuiInputLabel-shrink {\n & + div::before {\n border-color: ", ";\n }\n & + div + p {\n color: ", ";\n }\n }\n }\n .MuiInputBase-root.MuiInput-root.MuiInput-underline {\n &::before {\n border-bottom: ", ";\n }\n\n &:not(.Mui-error)::before,\n &:not(&.Mui-focused)::before {\n border-bottom: ", ";\n }\n\n &::after {\n border-bottom: ", ";\n }\n\n .MuiInputBase-inputMultiline {\n overflow: auto !important;\n\n ::-webkit-scrollbar {\n width: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n }\n\n &.Mui-error {\n &::before {\n border-width: ", ";\n border-color: ", ";\n }\n &::after {\n transform: scaleX(0);\n }\n }\n\n &.Mui-focused {\n &::after {\n border-width: calc(", " + 1px);\n border-color: ", ";\n }\n &.Mui-error::after {\n border-color: ", ";\n }\n }\n\n &.Mui-disabled {\n cursor: not-allowed;\n\n &::before {\n border-bottom: ", ";\n border-bottom-style: solid;\n }\n }\n\n .MuiInputBase-input {\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n color: ", ";\n line-height: ", ";\n padding-left: \"inherit\";\n text-overflow: ellipsis;\n\n &.Mui-disabled {\n cursor: not-allowed;\n color: ", ";\n }\n }\n\n &:hover:not(.Mui-disabled):before &:hover:not(.Mui-error):before {\n border-bottom-color: ", ";\n }\n }\n\n & > p {\n &.Mui-error {\n color: ", ";\n }\n &.Mui-disabled {\n color: ", " !important;\n cursor: not-allowed;\n }\n }\n }\n"]);
|
|
40
40
|
|
|
41
41
|
_templateObject = function _templateObject() {
|
|
42
42
|
return data;
|
|
@@ -156,7 +156,7 @@ var TextContainer = _styledComponents["default"].div(_templateObject(), function
|
|
|
156
156
|
}, function (props) {
|
|
157
157
|
return calculateWidth(props.margin, props.size);
|
|
158
158
|
}, function (props) {
|
|
159
|
-
return props.theme.
|
|
159
|
+
return props.theme.fontFamily;
|
|
160
160
|
}, function (props) {
|
|
161
161
|
return props.theme.assistiveTextFontSize;
|
|
162
162
|
}, function (props) {
|
|
@@ -176,63 +176,67 @@ var TextContainer = _styledComponents["default"].div(_templateObject(), function
|
|
|
176
176
|
}, function (props) {
|
|
177
177
|
return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
|
|
178
178
|
}, function (props) {
|
|
179
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
179
|
+
return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
|
|
180
180
|
}, function (props) {
|
|
181
181
|
return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
|
|
182
182
|
}, function (props) {
|
|
183
|
-
return props.theme.
|
|
183
|
+
return props.theme.fontFamily;
|
|
184
184
|
}, function (props) {
|
|
185
185
|
return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
|
|
186
186
|
}, function (props) {
|
|
187
|
-
return props.theme.
|
|
187
|
+
return props.theme.fontFamily;
|
|
188
188
|
}, function (props) {
|
|
189
189
|
return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
|
|
190
190
|
}, function (props) {
|
|
191
191
|
return props.backgroundType === "dark" ? props.theme.assistiveTextFontColorOnDark : props.theme.assistiveTextFontColor;
|
|
192
192
|
}, function (props) {
|
|
193
|
-
return props.backgroundType ? props.theme.
|
|
193
|
+
return props.backgroundType ? props.theme.underlineColorOnDark : props.theme.underlineColor;
|
|
194
194
|
}, function (props) {
|
|
195
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
195
|
+
return props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
|
|
196
196
|
}, function (props) {
|
|
197
|
-
return "
|
|
197
|
+
return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.underlineColorOnDark : props.theme.underlineColor);
|
|
198
198
|
}, function (props) {
|
|
199
|
-
return "
|
|
199
|
+
return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.underlineColorOnDark : props.theme.underlineColor);
|
|
200
200
|
}, function (props) {
|
|
201
|
-
return "
|
|
201
|
+
return "calc(".concat(props.theme.underlineThickness, " + 1px) solid ").concat(props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor);
|
|
202
202
|
}, function (props) {
|
|
203
203
|
return props.backgroundType === "dark" ? props.theme.scrollBarTrackColorOnDark : props.theme.scrollBarTrackColor;
|
|
204
204
|
}, function (props) {
|
|
205
205
|
return props.backgroundType === "dark" ? props.theme.scrollBarThumbColorOnDark : props.theme.scrollBarThumbColor;
|
|
206
|
+
}, function (props) {
|
|
207
|
+
return props.theme.underlineThickness;
|
|
206
208
|
}, function (props) {
|
|
207
209
|
return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
|
|
208
210
|
}, function (props) {
|
|
209
|
-
return props.
|
|
211
|
+
return props.theme.underlineThickness;
|
|
212
|
+
}, function (props) {
|
|
213
|
+
return props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor;
|
|
210
214
|
}, function (props) {
|
|
211
215
|
return props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor;
|
|
212
216
|
}, function (props) {
|
|
213
|
-
return "
|
|
217
|
+
return "".concat(props.theme.underlineThickness, " solid ").concat(props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor, " !important");
|
|
214
218
|
}, function (props) {
|
|
215
|
-
return props.theme.
|
|
219
|
+
return props.theme.fontFamily;
|
|
216
220
|
}, function (props) {
|
|
217
|
-
return props.theme.
|
|
221
|
+
return props.theme.valueFontSize;
|
|
218
222
|
}, function (props) {
|
|
219
|
-
return props.theme.
|
|
223
|
+
return props.theme.valueFontStyle;
|
|
220
224
|
}, function (props) {
|
|
221
|
-
return props.theme.
|
|
225
|
+
return props.theme.valueFontWeight;
|
|
222
226
|
}, function (props) {
|
|
223
|
-
return props.theme.
|
|
227
|
+
return props.theme.valueLetterSpacing;
|
|
224
228
|
}, function (props) {
|
|
225
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
229
|
+
return props.backgroundType === "dark" ? props.theme.valueFontColorOnDark : props.theme.valueFontColor;
|
|
226
230
|
}, function (props) {
|
|
227
|
-
return props.theme.
|
|
231
|
+
return props.theme.valueLineHeight;
|
|
228
232
|
}, function (props) {
|
|
229
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
233
|
+
return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
|
|
230
234
|
}, function (props) {
|
|
231
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
235
|
+
return props.backgroundType === "dark" ? props.theme.underlineFocusColorOnDark : props.theme.underlineFocusColor;
|
|
232
236
|
}, function (props) {
|
|
233
237
|
return "".concat(props.backgroundType === "dark" ? props.theme.errorColorOnDark : props.theme.errorColor, " !important");
|
|
234
238
|
}, function (props) {
|
|
235
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
239
|
+
return props.backgroundType === "dark" ? props.theme.disabledColorOnDark : props.theme.disabledColor;
|
|
236
240
|
});
|
|
237
241
|
|
|
238
242
|
DxcTextarea.propTypes = {
|
|
@@ -27,18 +27,8 @@ var _variables = require("../common/variables.js");
|
|
|
27
27
|
|
|
28
28
|
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
29
29
|
|
|
30
|
-
function _templateObject6() {
|
|
31
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n overflow: hidden;\n display: flex;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
|
|
32
|
-
|
|
33
|
-
_templateObject6 = function _templateObject6() {
|
|
34
|
-
return data;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
30
|
function _templateObject5() {
|
|
41
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n"]);
|
|
31
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n overflow: hidden;\n display: flex;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
|
|
42
32
|
|
|
43
33
|
_templateObject5 = function _templateObject5() {
|
|
44
34
|
return data;
|
|
@@ -48,7 +38,7 @@ function _templateObject5() {
|
|
|
48
38
|
}
|
|
49
39
|
|
|
50
40
|
function _templateObject4() {
|
|
51
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
41
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n"]);
|
|
52
42
|
|
|
53
43
|
_templateObject4 = function _templateObject4() {
|
|
54
44
|
return data;
|
|
@@ -58,7 +48,7 @@ function _templateObject4() {
|
|
|
58
48
|
}
|
|
59
49
|
|
|
60
50
|
function _templateObject3() {
|
|
61
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
51
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n"]);
|
|
62
52
|
|
|
63
53
|
_templateObject3 = function _templateObject3() {
|
|
64
54
|
return data;
|
|
@@ -68,7 +58,7 @@ function _templateObject3() {
|
|
|
68
58
|
}
|
|
69
59
|
|
|
70
60
|
function _templateObject2() {
|
|
71
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"]);
|
|
61
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n ", "\n"]);
|
|
72
62
|
|
|
73
63
|
_templateObject2 = function _templateObject2() {
|
|
74
64
|
return data;
|
|
@@ -78,7 +68,7 @@ function _templateObject2() {
|
|
|
78
68
|
}
|
|
79
69
|
|
|
80
70
|
function _templateObject() {
|
|
81
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: flex;\n flex-direction:
|
|
71
|
+
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: flex;\n flex-direction: row;\n opacity: 1;\n min-height: 40px;\n"]);
|
|
82
72
|
|
|
83
73
|
_templateObject = function _templateObject() {
|
|
84
74
|
return data;
|
|
@@ -123,27 +113,25 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
|
|
|
123
113
|
}
|
|
124
114
|
|
|
125
115
|
setSelectedValue(newSelectedOptions);
|
|
126
|
-
} else
|
|
127
|
-
setSelectedValue(selectedOption === selectedValue ? null : selectedOption);
|
|
128
|
-
}
|
|
116
|
+
} else setSelectedValue(selectedOption === selectedValue ? null : selectedOption);
|
|
129
117
|
} else if (multiple) {
|
|
130
118
|
newSelectedOptions = value.map(function (v) {
|
|
131
119
|
return v;
|
|
132
120
|
});
|
|
133
|
-
newSelectedOptions.push(selectedOption);
|
|
134
|
-
}
|
|
135
121
|
|
|
136
|
-
|
|
137
|
-
|
|
122
|
+
if (newSelectedOptions.includes(selectedOption)) {
|
|
123
|
+
var _index = newSelectedOptions.indexOf(selectedOption);
|
|
124
|
+
|
|
125
|
+
newSelectedOptions.splice(_index, 1);
|
|
126
|
+
} else newSelectedOptions.push(selectedOption);
|
|
138
127
|
}
|
|
128
|
+
|
|
129
|
+
typeof onChange === "function" && onChange(multiple ? newSelectedOptions : selectedOption);
|
|
139
130
|
};
|
|
140
131
|
|
|
141
132
|
var handleKeyPress = function handleKeyPress(event, optionValue) {
|
|
142
133
|
event.preventDefault();
|
|
143
|
-
|
|
144
|
-
if (!disabled && (event.nativeEvent.code === "Enter" || event.nativeEvent.code === "Space")) {
|
|
145
|
-
handleToggleChange(optionValue);
|
|
146
|
-
}
|
|
134
|
+
if (!disabled && (event.nativeEvent.code === "Enter" || event.nativeEvent.code === "Space")) handleToggleChange(optionValue);
|
|
147
135
|
};
|
|
148
136
|
|
|
149
137
|
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
@@ -151,7 +139,7 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
|
|
|
151
139
|
}, _react["default"].createElement(ToggleGroup, {
|
|
152
140
|
margin: margin,
|
|
153
141
|
disabled: disabled
|
|
154
|
-
},
|
|
142
|
+
}, options.map(function (option, i) {
|
|
155
143
|
return _react["default"].createElement(ToggleContainer, {
|
|
156
144
|
selected: multiple ? value ? value.includes(option.value) : selectedValue.includes(option.value) : value ? option.value === value : option.value === selectedValue,
|
|
157
145
|
tabIndex: !disabled ? tabIndex : -1,
|
|
@@ -171,7 +159,7 @@ var DxcToggleGroup = function DxcToggleGroup(_ref) {
|
|
|
171
159
|
}) : _react["default"].createElement(LabelContainer, {
|
|
172
160
|
disabled: disabled
|
|
173
161
|
}, option.label));
|
|
174
|
-
})))
|
|
162
|
+
})));
|
|
175
163
|
};
|
|
176
164
|
|
|
177
165
|
var ToggleGroup = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
@@ -186,13 +174,11 @@ var ToggleGroup = _styledComponents["default"].div(_templateObject(), function (
|
|
|
186
174
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
|
|
187
175
|
});
|
|
188
176
|
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
var ToggleContainer = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
192
|
-
return "\n background-color: ".concat(props.selected ? props.disabled ? props.theme.disabledSelectedBackgroundColor : props.theme.selectedBackgroundColor : props.disabled ? props.theme.disabledUnselectedBackgroundColor : props.theme.unselectedBackgroundColor, ";\n &:focus {\n outline: ").concat(props.theme.focusColor, " auto 1px;\n }\n border-radius: ").concat(props.isFirst ? "4px 0 0 4px" : props.isLast ? "0 4px 4px 0" : "0", ";\n color: ").concat(props.selected ? props.theme.selectedFontColor : props.theme.unselectedFontColor, ";\n padding: ").concat(props.isIcon ? "".concat(props.theme.iconPaddingTop, " ").concat(props.theme.iconPaddingRight, " ").concat(props.theme.iconPaddingBottom, " ").concat(props.theme.iconPaddingLeft) : "".concat(props.theme.labelPaddingTop, " ").concat(props.theme.labelPaddingRight, " ").concat(props.theme.labelPaddingBottom, " ").concat(props.theme.labelPaddingLeft), ";\n ").concat(!props.disabled ? "&:hover {\n background-color: ".concat(props.selected ? props.theme.selectedBackgroundHoverColor : props.theme.unselectedBackgroundHoverColor, ";\n color: ").concat(props.selected ? props.theme.selectedHoverFontColor : props.theme.unselectedHoverFontColor, " !important;\n }\n cursor: pointer;") : "color: ".concat(props.selected ? props.theme.disabledSelectedFontColor : props.theme.disabledUnselectedFontColor, " !important;\n cursor: not-allowed;"), "\n ");
|
|
177
|
+
var ToggleContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
178
|
+
return "\n background-color: ".concat(props.selected ? props.disabled ? props.theme.selectedDisabledBackgroundColor : props.theme.selectedBackgroundColor : props.disabled ? props.theme.unselectedDisabledBackgroundColor : props.theme.unselectedBackgroundColor, ";\n border-radius: ").concat(props.isFirst ? "4px 0 0 4px" : props.isLast ? "0 4px 4px 0" : "0", ";\n color: ").concat(props.selected ? props.theme.selectedFontColor : props.theme.unselectedFontColor, ";\n padding: ").concat(props.isIcon ? "".concat(props.theme.iconPaddingTop, " ").concat(props.theme.iconPaddingRight, " ").concat(props.theme.iconPaddingBottom, " ").concat(props.theme.iconPaddingLeft) : "".concat(props.theme.labelPaddingTop, " ").concat(props.theme.labelPaddingRight, " ").concat(props.theme.labelPaddingBottom, " ").concat(props.theme.labelPaddingLeft), ";\n \n ").concat(!props.disabled ? ":hover {\n background-color: ".concat(props.selected ? props.theme.selectedHoverBackgroundColor : props.theme.unselectedHoverBackgroundColor, ";\n }\n :active {\n background-color: ").concat(props.selected ? props.theme.selectedActiveBackgroundColor : props.theme.unselectedActiveBackgroundColor, ";\n color: #ffffff;\n } \n :focus {\n outline: ").concat(props.theme.focusColor, " solid 2px;\n outline-offset: -2px;\n }\n cursor: pointer;") : "color: ".concat(props.selected ? props.theme.selectedDisabledFontColor : props.theme.unselectedDisabledFontColor, " !important;\n cursor: not-allowed;"), "\n ");
|
|
193
179
|
});
|
|
194
180
|
|
|
195
|
-
var LabelContainer = _styledComponents["default"].span(
|
|
181
|
+
var LabelContainer = _styledComponents["default"].span(_templateObject3(), function (props) {
|
|
196
182
|
return props.theme.fontFamily;
|
|
197
183
|
}, function (props) {
|
|
198
184
|
return props.theme.fontSize;
|
|
@@ -200,22 +186,18 @@ var LabelContainer = _styledComponents["default"].span(_templateObject4(), funct
|
|
|
200
186
|
return props.theme.fontStyle;
|
|
201
187
|
}, function (props) {
|
|
202
188
|
return props.theme.fontWeight;
|
|
203
|
-
}, function (props) {
|
|
204
|
-
return props.theme.fontTextTransform;
|
|
205
|
-
}, function (props) {
|
|
206
|
-
return props.theme.fontLetterSpacing;
|
|
207
189
|
});
|
|
208
190
|
|
|
209
|
-
var Icon = _styledComponents["default"].img(
|
|
210
|
-
return props.theme.
|
|
191
|
+
var Icon = _styledComponents["default"].img(_templateObject4(), function (props) {
|
|
192
|
+
return props.theme.iconSize;
|
|
211
193
|
}, function (props) {
|
|
212
|
-
return props.theme.
|
|
194
|
+
return props.theme.iconSize;
|
|
213
195
|
});
|
|
214
196
|
|
|
215
|
-
var IconContainer = _styledComponents["default"].div(
|
|
216
|
-
return props.theme.
|
|
197
|
+
var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
|
|
198
|
+
return props.theme.iconSize;
|
|
217
199
|
}, function (props) {
|
|
218
|
-
return props.theme.
|
|
200
|
+
return props.theme.iconSize;
|
|
219
201
|
});
|
|
220
202
|
|
|
221
203
|
DxcToggleGroup.propTypes = {
|
|
@@ -25,6 +25,8 @@ 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
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
|
|
|
@@ -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 = {
|
|
@@ -124,11 +128,11 @@ var DragAndDropLabel = _styledComponents["default"].div(_templateObject2(), func
|
|
|
124
128
|
var DragAndDropIcon = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
125
129
|
return props.theme.dragAndDropAreaIconColor;
|
|
126
130
|
}, _dragDropIcon["default"], function (props) {
|
|
127
|
-
return "".concat(props.theme.
|
|
131
|
+
return "".concat(props.theme.dragAndDropAreaIconSize, " ").concat(props.theme.dragAndDropAreaIconSize);
|
|
128
132
|
}, function (props) {
|
|
129
|
-
return props.theme.
|
|
133
|
+
return props.theme.dragAndDropAreaIconSize;
|
|
130
134
|
}, function (props) {
|
|
131
|
-
return props.theme.
|
|
135
|
+
return props.theme.dragAndDropAreaIconSize;
|
|
132
136
|
});
|
|
133
137
|
|
|
134
138
|
var _default = DxcButtonsUpload;
|
|
@@ -29,6 +29,8 @@ 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
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
|
|
|
@@ -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 = {
|
|
@@ -260,11 +264,11 @@ var DragAndDropContent = _styledComponents["default"].div(_templateObject3());
|
|
|
260
264
|
var DragAndDropIcon = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
261
265
|
return props.theme.dragAndDropIconColor;
|
|
262
266
|
}, _upload_file["default"], function (props) {
|
|
263
|
-
return "".concat(props.theme.
|
|
267
|
+
return "".concat(props.theme.dragAndDropIconSize, " ").concat(props.theme.dragAndDropIconSize);
|
|
264
268
|
}, function (props) {
|
|
265
|
-
return props.theme.
|
|
269
|
+
return props.theme.dragAndDropIconSize;
|
|
266
270
|
}, function (props) {
|
|
267
|
-
return props.theme.
|
|
271
|
+
return props.theme.dragAndDropIconSize;
|
|
268
272
|
});
|
|
269
273
|
|
|
270
274
|
var DragAndDropText = _styledComponents["default"].div(_templateObject5());
|
|
@@ -288,25 +292,25 @@ var DragAndDropDescription = _styledComponents["default"].div(_templateObject7()
|
|
|
288
292
|
}, function (props) {
|
|
289
293
|
return props.theme.dragAndDropDescriptionFontWeight;
|
|
290
294
|
}, function (props) {
|
|
291
|
-
return props.theme.
|
|
295
|
+
return props.theme.dragAndDropDescriptionFontTextTransform;
|
|
292
296
|
}, function (props) {
|
|
293
|
-
return props.theme.
|
|
297
|
+
return props.theme.dragAndDropDescriptionFontColor;
|
|
294
298
|
});
|
|
295
299
|
|
|
296
300
|
var ButtonChooseFiles = _styledComponents["default"].div(_templateObject8());
|
|
297
301
|
|
|
298
302
|
var DragAndDropContentHover = _styledComponents["default"].div(_templateObject9(), function (props) {
|
|
299
|
-
return props.theme.
|
|
303
|
+
return props.theme.draggingStateBackgroundColor;
|
|
300
304
|
});
|
|
301
305
|
|
|
302
306
|
var DragAndDropIconHover = _styledComponents["default"].div(_templateObject10(), function (props) {
|
|
303
307
|
return props.theme.dragAndDropDraggingStateIconColor;
|
|
304
308
|
}, _upload_drop["default"], function (props) {
|
|
305
|
-
return "".concat(props.theme.
|
|
309
|
+
return "".concat(props.theme.dragAndDropDraggingStateIconSize, " ").concat(props.theme.dragAndDropDraggingStateIconSize);
|
|
306
310
|
}, function (props) {
|
|
307
|
-
return props.theme.
|
|
311
|
+
return props.theme.dragAndDropDraggingStateIconSize;
|
|
308
312
|
}, function (props) {
|
|
309
|
-
return props.theme.
|
|
313
|
+
return props.theme.dragAndDropDraggingStateIconSize;
|
|
310
314
|
});
|
|
311
315
|
|
|
312
316
|
var DragAndDropTextHover = _styledComponents["default"].div(_templateObject11(), function (props) {
|
|
@@ -316,9 +320,9 @@ var DragAndDropTextHover = _styledComponents["default"].div(_templateObject11(),
|
|
|
316
320
|
}, function (props) {
|
|
317
321
|
return props.theme.dragAndDropDraggingStateFontWeight;
|
|
318
322
|
}, function (props) {
|
|
319
|
-
return props.theme.
|
|
323
|
+
return props.theme.dragAndDropDraggingStateFontTextTransform;
|
|
320
324
|
}, function (props) {
|
|
321
|
-
return props.theme.
|
|
325
|
+
return props.theme.dragAndDropDraggingStateFontColor;
|
|
322
326
|
});
|
|
323
327
|
|
|
324
328
|
var _default = DxcDragAndDropArea;
|
|
@@ -137,7 +137,7 @@ var DXCFileToUpload = _styledComponents["default"].div(_templateObject(), functi
|
|
|
137
137
|
}, function (props) {
|
|
138
138
|
return props.theme.fileUnderlineColor;
|
|
139
139
|
}, function (props) {
|
|
140
|
-
return props.theme.
|
|
140
|
+
return props.theme.hoverFileColor;
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
var FileContent = _styledComponents["default"].div(_templateObject2());
|
|
@@ -173,11 +173,11 @@ var FileType = _styledComponents["default"].div(_templateObject6(), function (pr
|
|
|
173
173
|
var DeleteFile = _styledComponents["default"].button(_templateObject7(), function (props) {
|
|
174
174
|
return props.theme.fileDeleteIconColor;
|
|
175
175
|
}, _close["default"], function (props) {
|
|
176
|
-
return "".concat(props.theme.
|
|
176
|
+
return "".concat(props.theme.fileDeleteIconSize, " ").concat(props.theme.fileDeleteIconSize);
|
|
177
177
|
}, function (props) {
|
|
178
|
-
return props.theme.
|
|
178
|
+
return props.theme.fileDeleteIconSize;
|
|
179
179
|
}, function (props) {
|
|
180
|
-
return props.theme.
|
|
180
|
+
return props.theme.fileDeleteIconSize;
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
var _default = DxcFileToUpload;
|