@dxc-technology/halstack-react 0.0.0-b821bfb → 0.0.0-ba408d4
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.js +8 -4
- package/ThemeContext.js +84 -88
- package/V3Select/V3Select.js +33 -127
- package/V3Textarea/V3Textarea.js +10 -14
- package/accordion/Accordion.js +23 -87
- package/accordion-group/AccordionGroup.js +13 -15
- package/alert/Alert.js +38 -132
- package/badge/Badge.js +9 -13
- package/box/Box.js +9 -13
- package/button/Button.d.ts +4 -0
- package/button/Button.js +15 -71
- package/button/Button.stories.tsx +306 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.js +19 -73
- package/checkbox/Checkbox.js +13 -37
- package/chip/Chip.js +17 -61
- package/common/RequiredComponent.js +3 -11
- package/common/variables.js +3 -1
- package/date/Date.js +16 -22
- package/date-input/DateInput.js +18 -22
- package/dialog/Dialog.js +16 -50
- package/dropdown/Dropdown.js +37 -131
- package/file-input/FileInput.js +48 -160
- package/file-input/FileItem.js +29 -123
- package/footer/Footer.js +34 -158
- package/footer/Icons.js +13 -13
- package/header/Header.js +35 -179
- package/header/Icons.js +11 -11
- package/heading/Heading.js +18 -72
- package/input-text/Icons.js +2 -2
- package/input-text/InputText.js +36 -130
- package/input-text/index.d.ts +1 -1
- package/layout/ApplicationLayout.js +31 -123
- package/layout/Icons.js +7 -7
- package/link/Link.js +18 -72
- package/main.d.ts +44 -40
- package/main.js +91 -87
- package/number-input/NumberInput.js +5 -13
- package/number-input/NumberInputContext.js +1 -1
- package/package.json +14 -11
- package/paginator/Icons.js +9 -9
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +24 -131
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/password-input/PasswordInput.js +15 -19
- package/progress-bar/ProgressBar.js +18 -72
- package/radio/Radio.js +12 -26
- package/resultsetTable/ResultsetTable.js +35 -119
- package/select/Select.js +161 -434
- package/sidenav/Sidenav.js +15 -49
- package/slider/Slider.js +19 -83
- package/spinner/Spinner.js +38 -152
- package/switch/Switch.js +12 -26
- package/table/Table.js +10 -24
- package/tabs/Tabs.js +26 -110
- package/tag/Tag.js +22 -96
- package/text-input/TextInput.js +104 -271
- package/textarea/Textarea.js +20 -72
- package/toggle/Toggle.js +15 -49
- package/toggle-group/ToggleGroup.js +23 -107
- package/upload/Upload.js +11 -15
- package/upload/buttons-upload/ButtonsUpload.js +13 -37
- package/upload/buttons-upload/Icons.js +7 -7
- package/upload/dragAndDropArea/DragAndDropArea.js +24 -128
- package/upload/dragAndDropArea/Icons.js +6 -6
- package/upload/file-upload/FileToUpload.js +16 -90
- package/upload/file-upload/Icons.js +13 -13
- package/upload/files-upload/FilesToUpload.js +12 -26
- package/upload/transaction/Icons.js +31 -31
- package/upload/transaction/Transaction.js +17 -61
- package/upload/transactions/Transactions.js +13 -57
- package/wizard/Icons.js +8 -8
- package/wizard/Wizard.js +31 -165
- package/button/Button.stories.js +0 -27
- package/button/index.d.ts +0 -24
- package/paginator/index.d.ts +0 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -33,20 +33,18 @@ var _variables = require("../common/variables.js");
|
|
|
33
33
|
|
|
34
34
|
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n cursor: ", ";\n\n & > :not(div:last-child) {\n & > div:first-child {\n border-radius: 0;\n border-bottom: ", ";\n border-color: ", ";\n\n & > .Mui-expanded {\n border-radius: 0;\n }\n\n & > .MuiButtonBase-root {\n border-radius: 0;\n }\n }\n }\n\n & > div:first-child {\n & > div:first-child {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom: ", ";\n border-color: ", ";\n\n & > .Mui-expanded {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n }\n\n & > .MuiButtonBase-root {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n }\n }\n }\n\n & > div:last-child {\n & > div:first-child {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n\n & > .Mui-expanded {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n & > .MuiButtonBase-root {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n }\n"]);
|
|
36
|
+
var _templateObject;
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
var _excluded = ["margin"];
|
|
39
|
+
|
|
40
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
}
|
|
42
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
45
43
|
|
|
46
44
|
var Accordion = function Accordion(_ref) {
|
|
47
45
|
var margin = _ref.margin,
|
|
48
|
-
childProps = (0, _objectWithoutProperties2["default"])(_ref,
|
|
49
|
-
return _react["default"].createElement(_Accordion["default"], childProps, childProps.children);
|
|
46
|
+
childProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_Accordion["default"], childProps, childProps.children);
|
|
50
48
|
};
|
|
51
49
|
|
|
52
50
|
var DxcAccordionGroup = function DxcAccordionGroup(_ref2) {
|
|
@@ -80,15 +78,15 @@ var DxcAccordionGroup = function DxcAccordionGroup(_ref2) {
|
|
|
80
78
|
(0, _react.useEffect)(function () {
|
|
81
79
|
setInnerIsExpanded(indexActive);
|
|
82
80
|
}, [indexActive]);
|
|
83
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
84
82
|
theme: colorsTheme.accordion
|
|
85
|
-
}, _react["default"].createElement(AccordionGroupContainer, {
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(AccordionGroupContainer, {
|
|
86
84
|
margin: margin,
|
|
87
85
|
disabled: disabled
|
|
88
86
|
}, (Array.isArray(children) ? children : [children]).filter(function (el) {
|
|
89
87
|
return el.type === Accordion;
|
|
90
88
|
}).map(function (el, index) {
|
|
91
|
-
return _react["default"].cloneElement(el, {
|
|
89
|
+
return /*#__PURE__*/_react["default"].cloneElement(el, {
|
|
92
90
|
onChange: function onChange() {
|
|
93
91
|
handlerActiveChange(index);
|
|
94
92
|
},
|
|
@@ -102,7 +100,7 @@ var calculateWidth = function calculateWidth(margin) {
|
|
|
102
100
|
return "calc(100% - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
|
|
103
101
|
};
|
|
104
102
|
|
|
105
|
-
var AccordionGroupContainer = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
103
|
+
var AccordionGroupContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n cursor: ", ";\n\n & > :not(div:last-child) {\n & > div:first-child {\n border-radius: 0;\n border-bottom: ", ";\n border-color: ", ";\n\n & > .Mui-expanded {\n border-radius: 0;\n }\n\n & > .MuiButtonBase-root {\n border-radius: 0;\n }\n }\n }\n\n & > div:first-child {\n & > div:first-child {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom: ", ";\n border-color: ", ";\n\n & > .Mui-expanded {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n }\n\n & > .MuiButtonBase-root {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n }\n }\n }\n\n & > div:last-child {\n & > div:first-child {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n\n & > .Mui-expanded {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n & > .MuiButtonBase-root {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n }\n"])), function (props) {
|
|
106
104
|
return calculateWidth(props.margin);
|
|
107
105
|
}, function (_ref3) {
|
|
108
106
|
var margin = _ref3.margin;
|
package/alert/Alert.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -29,165 +29,71 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
|
29
29
|
|
|
30
30
|
var _BackgroundColorContext = require("../BackgroundColorContext.js");
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n border: 1px solid transparent;\n border-radius: 2px;\n box-shadow: 0 0 0 2px transparent;\n padding: 3px;\n margin-left: 12px;\n background-color: transparent;\n color: #000000;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:active {\n background-color: ", ";\n }\n"]);
|
|
34
|
-
|
|
35
|
-
_templateObject10 = function _templateObject10() {
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _templateObject9() {
|
|
43
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n flex: 1 1 auto;\n padding: ", ";\n overflow-y: auto;\n"]);
|
|
44
|
-
|
|
45
|
-
_templateObject9 = function _templateObject9() {
|
|
46
|
-
return data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _templateObject8() {
|
|
53
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n align-items: center;\n overflow: hidden;\n"]);
|
|
54
|
-
|
|
55
|
-
_templateObject8 = function _templateObject8() {
|
|
56
|
-
return data;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function _templateObject7() {
|
|
63
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n margin-right: 12px;\n padding-right: ", ";\n padding-left: ", ";\n\n color: ", ";\n\n svg {\n width: ", ";\n height: ", ";\n }\n"]);
|
|
64
|
-
|
|
65
|
-
_templateObject7 = function _templateObject7() {
|
|
66
|
-
return data;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _templateObject6() {
|
|
73
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 8px;\n padding-right: ", ";\n padding-left: ", ";\n flex-grow: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n"]);
|
|
74
|
-
|
|
75
|
-
_templateObject6 = function _templateObject6() {
|
|
76
|
-
return data;
|
|
77
|
-
};
|
|
32
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
78
33
|
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function _templateObject5() {
|
|
83
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 8px;\n padding-right: ", ";\n padding-left: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n text-transform: ", ";\n"]);
|
|
84
|
-
|
|
85
|
-
_templateObject5 = function _templateObject5() {
|
|
86
|
-
return data;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return data;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _templateObject4() {
|
|
93
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n height: calc(48px - calc(", " * 2));\n align-items: center;\n width: 100%;\n"]);
|
|
94
|
-
|
|
95
|
-
_templateObject4 = function _templateObject4() {
|
|
96
|
-
return data;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
return data;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function _templateObject3() {
|
|
103
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: ", ";\n overflow: hidden;\n box-sizing: border-box;\n\n background-color: ", ";\n\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n\n padding-left: 12px;\n padding-right: 12px;\n justify-content: ", ";\n align-items: ", ";\n max-width: ", ";\n width: ", ";\n z-index: ", ";\n"]);
|
|
104
|
-
|
|
105
|
-
_templateObject3 = function _templateObject3() {
|
|
106
|
-
return data;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
return data;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function _templateObject2() {
|
|
113
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n"]);
|
|
114
|
-
|
|
115
|
-
_templateObject2 = function _templateObject2() {
|
|
116
|
-
return data;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
return data;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _templateObject() {
|
|
123
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n width: ", ";\n height: ", ";\n justify-content: ", ";\n align-items: ", ";\n top: ", ";\n left: ", ";\n position: ", ";\n display: ", ";\n z-index: ", ";\n"]);
|
|
124
|
-
|
|
125
|
-
_templateObject = function _templateObject() {
|
|
126
|
-
return data;
|
|
127
|
-
};
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
128
35
|
|
|
129
|
-
|
|
130
|
-
}
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
131
37
|
|
|
132
38
|
var alertIcons = {
|
|
133
|
-
close: _react["default"].createElement("svg", {
|
|
39
|
+
close: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
134
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
135
41
|
width: "20",
|
|
136
42
|
height: "20",
|
|
137
43
|
viewBox: "0 0 24 24",
|
|
138
44
|
fill: "currentColor"
|
|
139
|
-
}, _react["default"].createElement("path", {
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
140
46
|
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"
|
|
141
|
-
}), _react["default"].createElement("path", {
|
|
47
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
142
48
|
d: "M0 0h24v24H0z",
|
|
143
49
|
fill: "none"
|
|
144
50
|
})),
|
|
145
|
-
info: _react["default"].createElement("svg", {
|
|
51
|
+
info: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
146
52
|
xmlns: "http://www.w3.org/2000/svg",
|
|
147
53
|
width: "23",
|
|
148
54
|
height: "23",
|
|
149
55
|
viewBox: "0 0 24 24",
|
|
150
56
|
fill: "currentColor"
|
|
151
|
-
}, _react["default"].createElement("path", {
|
|
57
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
152
58
|
d: "M0 0h24v24H0z",
|
|
153
59
|
fill: "none"
|
|
154
|
-
}), _react["default"].createElement("path", {
|
|
60
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
155
61
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
156
62
|
})),
|
|
157
|
-
success: _react["default"].createElement("svg", {
|
|
63
|
+
success: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
158
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
159
65
|
width: "23",
|
|
160
66
|
height: "23",
|
|
161
67
|
viewBox: "0 0 24 24",
|
|
162
68
|
fill: "currentColor"
|
|
163
|
-
}, _react["default"].createElement("path", {
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
164
70
|
d: "M0 0h24v24H0z",
|
|
165
71
|
fill: "none"
|
|
166
|
-
}), _react["default"].createElement("path", {
|
|
72
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
167
73
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
168
74
|
})),
|
|
169
|
-
warning: _react["default"].createElement("svg", {
|
|
75
|
+
warning: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
170
76
|
xmlns: "http://www.w3.org/2000/svg",
|
|
171
77
|
width: "23",
|
|
172
78
|
height: "23",
|
|
173
79
|
viewBox: "0 0 24 24",
|
|
174
80
|
fill: "currentColor"
|
|
175
|
-
}, _react["default"].createElement("path", {
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
176
82
|
d: "M0 0h24v24H0z",
|
|
177
83
|
fill: "none"
|
|
178
|
-
}), _react["default"].createElement("path", {
|
|
84
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
179
85
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
180
86
|
})),
|
|
181
|
-
error: _react["default"].createElement("svg", {
|
|
87
|
+
error: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
182
88
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
89
|
width: "23",
|
|
184
90
|
height: "23",
|
|
185
91
|
viewBox: "0 0 24 24",
|
|
186
92
|
fill: "currentColor"
|
|
187
|
-
}, _react["default"].createElement("path", {
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
188
94
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z",
|
|
189
95
|
fill: "currentColor"
|
|
190
|
-
}), _react["default"].createElement("path", {
|
|
96
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
191
97
|
d: "M0 0h24v24H0z",
|
|
192
98
|
fill: "none"
|
|
193
99
|
}))
|
|
@@ -212,26 +118,26 @@ var DxcAlert = function DxcAlert(_ref) {
|
|
|
212
118
|
return type === "info" ? "information" : type === "confirm" ? "success" : type === "warning" ? "warning" : "error";
|
|
213
119
|
};
|
|
214
120
|
|
|
215
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
216
122
|
theme: colorsTheme.alert
|
|
217
|
-
}, _react["default"].createElement(AlertModal, {
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement(AlertModal, {
|
|
218
124
|
mode: mode
|
|
219
|
-
}, mode === "modal" && _react["default"].createElement(OverlayContainer, {
|
|
125
|
+
}, mode === "modal" && /*#__PURE__*/_react["default"].createElement(OverlayContainer, {
|
|
220
126
|
mode: mode,
|
|
221
127
|
onClick: onClose
|
|
222
|
-
}), _react["default"].createElement(AlertContainer, {
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement(AlertContainer, {
|
|
223
129
|
mode: mode,
|
|
224
130
|
type: type,
|
|
225
131
|
margin: margin,
|
|
226
132
|
size: size
|
|
227
|
-
}, _react["default"].createElement(AlertInfo, null, _react["default"].createElement(AlertIcon, {
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(AlertInfo, null, /*#__PURE__*/_react["default"].createElement(AlertIcon, {
|
|
228
134
|
type: type
|
|
229
|
-
}, type === "info" && alertIcons.info || type === "confirm" && alertIcons.success || type === "warning" && alertIcons.warning || type === "error" && alertIcons.error), _react["default"].createElement(AlertText, null, _react["default"].createElement(AlertTitle, {
|
|
135
|
+
}, type === "info" && alertIcons.info || type === "confirm" && alertIcons.success || type === "warning" && alertIcons.warning || type === "error" && alertIcons.error), /*#__PURE__*/_react["default"].createElement(AlertText, null, /*#__PURE__*/_react["default"].createElement(AlertTitle, {
|
|
230
136
|
type: type
|
|
231
|
-
}, getTypeText(type)), inlineText && inlineText !== "" && "-", _react["default"].createElement(AlertInlineText, null, inlineText)), onClose && _react["default"].createElement(AlertCloseAction, {
|
|
137
|
+
}, getTypeText(type)), inlineText && inlineText !== "" && "-", /*#__PURE__*/_react["default"].createElement(AlertInlineText, null, inlineText)), onClose && /*#__PURE__*/_react["default"].createElement(AlertCloseAction, {
|
|
232
138
|
onClick: onClose,
|
|
233
139
|
tabIndex: tabIndex
|
|
234
|
-
}, alertIcons.close)), children && _react["default"].createElement(AlertContent, null, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
140
|
+
}, alertIcons.close)), children && /*#__PURE__*/_react["default"].createElement(AlertContent, null, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
235
141
|
color: type === "info" && colorsTheme.alert.infoBackgroundColor || type === "confirm" && colorsTheme.alert.successBackgroundColor || type === "warning" && colorsTheme.alert.warningBackgroundColor || type === "error" && colorsTheme.alert.errorBackgroundColor
|
|
236
142
|
}, children)))));
|
|
237
143
|
};
|
|
@@ -248,7 +154,7 @@ var calculateWidth = function calculateWidth(margin, size) {
|
|
|
248
154
|
return size === "fillParent" ? "calc(".concat(sizes[size], " - ").concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")") : sizes[size];
|
|
249
155
|
};
|
|
250
156
|
|
|
251
|
-
var AlertModal = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
157
|
+
var AlertModal = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n width: ", ";\n height: ", ";\n justify-content: ", ";\n align-items: ", ";\n top: ", ";\n left: ", ";\n position: ", ";\n display: ", ";\n z-index: ", ";\n"])), function (props) {
|
|
252
158
|
return props.theme.fontSizeBase;
|
|
253
159
|
}, function (props) {
|
|
254
160
|
return props.mode === "modal" ? "100%" : "";
|
|
@@ -270,7 +176,7 @@ var AlertModal = _styledComponents["default"].div(_templateObject(), function (p
|
|
|
270
176
|
return props.mode === "modal" ? "1200" : "";
|
|
271
177
|
});
|
|
272
178
|
|
|
273
|
-
var OverlayContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
179
|
+
var OverlayContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n"])), function (props) {
|
|
274
180
|
return props.mode === "modal" ? "".concat(props.theme.overlayColor) : "transparent";
|
|
275
181
|
}, function (props) {
|
|
276
182
|
return props.mode === "modal" ? "fixed" : "";
|
|
@@ -284,7 +190,7 @@ var OverlayContainer = _styledComponents["default"].div(_templateObject2(), func
|
|
|
284
190
|
return props.mode === "modal" ? "0" : "";
|
|
285
191
|
});
|
|
286
192
|
|
|
287
|
-
var AlertContainer = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
193
|
+
var AlertContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: ", ";\n overflow: hidden;\n box-sizing: border-box;\n\n background-color: ", ";\n\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n\n padding-left: 12px;\n padding-right: 12px;\n justify-content: ", ";\n align-items: ", ";\n max-width: ", ";\n width: ", ";\n z-index: ", ";\n"])), function (props) {
|
|
288
194
|
return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
|
|
289
195
|
}, function (props) {
|
|
290
196
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
|
|
@@ -318,11 +224,11 @@ var AlertContainer = _styledComponents["default"].div(_templateObject3(), functi
|
|
|
318
224
|
return props.mode === "modal" ? "1300" : "";
|
|
319
225
|
});
|
|
320
226
|
|
|
321
|
-
var AlertInfo = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
227
|
+
var AlertInfo = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n height: calc(48px - calc(", " * 2));\n align-items: center;\n width: 100%;\n"])), function (props) {
|
|
322
228
|
return props.theme.borderThickness;
|
|
323
229
|
});
|
|
324
230
|
|
|
325
|
-
var AlertTitle = _styledComponents["default"].div(_templateObject5(), function (props) {
|
|
231
|
+
var AlertTitle = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 8px;\n padding-right: ", ";\n padding-left: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n text-transform: ", ";\n"])), function (props) {
|
|
326
232
|
return props.theme.titlePaddingRight;
|
|
327
233
|
}, function (props) {
|
|
328
234
|
return props.theme.titlePaddingLeft;
|
|
@@ -340,7 +246,7 @@ var AlertTitle = _styledComponents["default"].div(_templateObject5(), function (
|
|
|
340
246
|
return props.theme.titleTextTransform;
|
|
341
247
|
});
|
|
342
248
|
|
|
343
|
-
var AlertInlineText = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
249
|
+
var AlertInlineText = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 8px;\n padding-right: ", ";\n padding-left: ", ";\n flex-grow: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n"])), function (props) {
|
|
344
250
|
return props.theme.inlineTextPaddingRight;
|
|
345
251
|
}, function (props) {
|
|
346
252
|
return props.theme.inlineTextPaddingLeft;
|
|
@@ -356,7 +262,7 @@ var AlertInlineText = _styledComponents["default"].div(_templateObject6(), funct
|
|
|
356
262
|
return props.theme.inlineTextFontColor;
|
|
357
263
|
});
|
|
358
264
|
|
|
359
|
-
var AlertIcon = _styledComponents["default"].span(_templateObject7(), function (props) {
|
|
265
|
+
var AlertIcon = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n margin-right: 12px;\n padding-right: ", ";\n padding-left: ", ";\n\n color: ", ";\n\n svg {\n width: ", ";\n height: ", ";\n }\n"])), function (props) {
|
|
360
266
|
return props.theme.iconPaddingRight;
|
|
361
267
|
}, function (props) {
|
|
362
268
|
return props.theme.iconPaddingLeft;
|
|
@@ -368,13 +274,13 @@ var AlertIcon = _styledComponents["default"].span(_templateObject7(), function (
|
|
|
368
274
|
return props.theme.iconSize;
|
|
369
275
|
});
|
|
370
276
|
|
|
371
|
-
var AlertText = _styledComponents["default"].div(_templateObject8());
|
|
277
|
+
var AlertText = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n align-items: center;\n overflow: hidden;\n"])));
|
|
372
278
|
|
|
373
|
-
var AlertContent = _styledComponents["default"].div(_templateObject9(), function (props) {
|
|
279
|
+
var AlertContent = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n flex: 1 1 auto;\n padding: ", ";\n overflow-y: auto;\n"])), function (props) {
|
|
374
280
|
return "".concat(props.theme.contentPaddingTop, " ").concat(props.theme.contentPaddingRight, " ").concat(props.theme.contentPaddingBottom, " ").concat(props.theme.contentPaddingLeft);
|
|
375
281
|
});
|
|
376
282
|
|
|
377
|
-
var AlertCloseAction = _styledComponents["default"].button(_templateObject10(), function (props) {
|
|
283
|
+
var AlertCloseAction = _styledComponents["default"].button(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n border: 1px solid transparent;\n border-radius: 2px;\n box-shadow: 0 0 0 2px transparent;\n padding: 3px;\n margin-left: 12px;\n background-color: transparent;\n color: #000000;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:active {\n background-color: ", ";\n }\n"])), function (props) {
|
|
378
284
|
return props.theme.hoverActionBackgroundColor;
|
|
379
285
|
}, function (props) {
|
|
380
286
|
return props.theme.focusActionBorderColor;
|
package/badge/Badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -17,27 +17,23 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
17
17
|
|
|
18
18
|
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n display: flex;\n padding-bottom: 1px;\n padding-right: 1px;\n flex-wrap: wrap;\n box-sizing: border-box;\n align-items: center;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n"]);
|
|
20
|
+
var _templateObject;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
return data;
|
|
25
|
-
};
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
25
|
|
|
30
26
|
var DxcBadge = function DxcBadge(_ref) {
|
|
31
27
|
var notificationText = _ref.notificationText;
|
|
32
28
|
var colorsTheme = (0, _useTheme["default"])();
|
|
33
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
34
30
|
theme: colorsTheme.tabs
|
|
35
|
-
}, _react["default"].createElement(StyledDxcBadge, {
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement(StyledDxcBadge, {
|
|
36
32
|
notificationText: notificationText
|
|
37
|
-
}, _react["default"].createElement("span", null, notificationText)));
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, notificationText)));
|
|
38
34
|
};
|
|
39
35
|
|
|
40
|
-
var StyledDxcBadge = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
36
|
+
var StyledDxcBadge = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n display: flex;\n padding-bottom: 1px;\n padding-right: 1px;\n flex-wrap: wrap;\n box-sizing: border-box;\n align-items: center;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n"])), function (props) {
|
|
41
37
|
return props.theme.badgeBackgroundColor;
|
|
42
38
|
}, function (props) {
|
|
43
39
|
return props.theme.badgeFontFamily;
|
package/box/Box.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -29,15 +29,11 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
|
29
29
|
|
|
30
30
|
var _BackgroundColorContext = require("../BackgroundColorContext.js");
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n letter-spacing: ", ";\n overflow: hidden;\n width: ", ";\n background-color: ", ";\n box-shadow: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"]);
|
|
32
|
+
var _templateObject;
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
}
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
37
|
|
|
42
38
|
var DxcBox = function DxcBox(_ref) {
|
|
43
39
|
var shadowDepth = _ref.shadowDepth,
|
|
@@ -49,15 +45,15 @@ var DxcBox = function DxcBox(_ref) {
|
|
|
49
45
|
_ref$size = _ref.size,
|
|
50
46
|
size = _ref$size === void 0 ? "fitContent" : _ref$size;
|
|
51
47
|
var colorsTheme = (0, _useTheme["default"])();
|
|
52
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
53
49
|
theme: colorsTheme.box
|
|
54
|
-
}, _react["default"].createElement(StyledDxcBox, {
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement(StyledDxcBox, {
|
|
55
51
|
shadowDepth: shadowDepth,
|
|
56
52
|
display: display,
|
|
57
53
|
margin: margin,
|
|
58
54
|
padding: padding,
|
|
59
55
|
size: size
|
|
60
|
-
}, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
61
57
|
color: colorsTheme.box.backgroundColor
|
|
62
58
|
}, children)));
|
|
63
59
|
};
|
|
@@ -78,7 +74,7 @@ var calculateWidth = function calculateWidth(margin, size, padding) {
|
|
|
78
74
|
return sizes[size];
|
|
79
75
|
};
|
|
80
76
|
|
|
81
|
-
var StyledDxcBox = _styledComponents["default"].div(_templateObject(), function (_ref2) {
|
|
77
|
+
var StyledDxcBox = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n letter-spacing: ", ";\n overflow: hidden;\n width: ", ";\n background-color: ", ";\n box-shadow: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (_ref2) {
|
|
82
78
|
var display = _ref2.display;
|
|
83
79
|
return display;
|
|
84
80
|
}, function (props) {
|