@dxc-technology/halstack-react 0.0.0-d3ac293 → 0.0.0-d3df47e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BackgroundColorContext.d.ts +1 -10
- package/BackgroundColorContext.js +4 -21
- package/HalstackContext.d.ts +24 -139
- package/HalstackContext.js +11 -36
- package/README.md +47 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +26 -83
- package/accordion/Accordion.stories.tsx +2 -114
- package/accordion/Accordion.test.js +18 -33
- package/accordion/types.d.ts +5 -17
- package/accordion-group/AccordionGroup.d.ts +4 -3
- package/accordion-group/AccordionGroup.js +27 -75
- package/accordion-group/AccordionGroup.stories.tsx +78 -77
- package/accordion-group/AccordionGroup.test.js +43 -71
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +31 -0
- package/accordion-group/types.d.ts +6 -18
- package/action-icon/ActionIcon.d.ts +4 -0
- package/action-icon/ActionIcon.js +47 -0
- package/action-icon/ActionIcon.stories.tsx +41 -0
- package/action-icon/ActionIcon.test.js +64 -0
- package/action-icon/types.d.ts +26 -0
- package/alert/Alert.js +17 -56
- package/alert/Alert.test.js +28 -45
- package/alert/types.d.ts +5 -5
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +142 -42
- package/badge/Badge.stories.tsx +210 -0
- package/badge/Badge.test.js +30 -0
- package/badge/types.d.ts +52 -3
- package/bleed/Bleed.js +13 -21
- package/bleed/Bleed.stories.tsx +1 -0
- package/bleed/types.d.ts +2 -2
- package/box/Box.d.ts +1 -1
- package/box/Box.js +16 -55
- package/box/Box.stories.tsx +25 -53
- package/box/Box.test.js +1 -6
- package/box/types.d.ts +3 -15
- package/bulleted-list/BulletedList.js +19 -53
- package/bulleted-list/BulletedList.stories.tsx +8 -93
- package/bulleted-list/types.d.ts +32 -5
- package/button/Button.d.ts +1 -1
- package/button/Button.js +66 -100
- package/button/Button.stories.tsx +9 -90
- package/button/Button.test.js +19 -16
- package/button/types.d.ts +8 -4
- package/card/Card.d.ts +1 -1
- package/card/Card.js +47 -88
- package/card/Card.stories.tsx +12 -42
- package/card/Card.test.js +10 -21
- package/card/types.d.ts +6 -12
- package/checkbox/Checkbox.js +85 -120
- package/checkbox/Checkbox.stories.tsx +16 -54
- package/checkbox/Checkbox.test.js +107 -63
- package/checkbox/types.d.ts +8 -4
- package/chip/Chip.js +34 -68
- package/chip/Chip.stories.tsx +25 -17
- package/chip/Chip.test.js +15 -28
- package/chip/types.d.ts +4 -4
- package/common/OpenSans.css +68 -80
- package/common/coreTokens.d.ts +237 -0
- package/common/coreTokens.js +184 -0
- package/common/utils.js +2 -8
- package/common/variables.d.ts +24 -282
- package/common/variables.js +860 -1125
- package/container/Container.d.ts +4 -0
- package/container/Container.js +194 -0
- package/container/Container.stories.tsx +214 -0
- package/container/types.d.ts +74 -0
- package/date-input/Calendar.js +15 -59
- package/date-input/DateInput.js +50 -96
- package/date-input/DateInput.stories.tsx +11 -30
- package/date-input/DateInput.test.js +674 -701
- package/date-input/DatePicker.js +11 -42
- package/date-input/Icons.d.ts +6 -6
- package/date-input/Icons.js +6 -23
- package/date-input/YearPicker.js +8 -34
- package/date-input/types.d.ts +27 -21
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +15 -60
- package/dialog/Dialog.stories.tsx +215 -169
- package/dialog/Dialog.test.js +125 -187
- package/dialog/types.d.ts +18 -26
- package/dropdown/Dropdown.js +39 -93
- package/dropdown/Dropdown.test.js +391 -378
- package/dropdown/DropdownMenu.js +13 -20
- package/dropdown/DropdownMenuItem.js +5 -19
- package/dropdown/types.d.ts +17 -19
- package/file-input/FileInput.js +180 -249
- package/file-input/FileInput.stories.tsx +1 -1
- package/file-input/FileInput.test.js +356 -354
- package/file-input/FileItem.js +14 -41
- package/file-input/types.d.ts +10 -10
- package/flex/Flex.js +27 -39
- package/flex/Flex.stories.tsx +35 -26
- package/flex/types.d.ts +74 -9
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +69 -116
- package/footer/Footer.stories.tsx +38 -95
- package/footer/Footer.test.js +21 -33
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +66 -7
- package/footer/types.d.ts +25 -27
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +76 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.d.ts +4 -3
- package/header/Header.js +33 -116
- package/header/Header.stories.tsx +7 -71
- package/header/Header.test.js +12 -25
- package/header/Icons.d.ts +2 -2
- package/header/Icons.js +2 -7
- package/header/types.d.ts +5 -20
- package/heading/Heading.js +9 -31
- package/heading/Heading.test.js +70 -87
- package/heading/types.d.ts +7 -7
- package/image/Image.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +127 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.js +13 -21
- package/inset/Inset.stories.tsx +2 -1
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +5 -5
- package/layout/ApplicationLayout.js +28 -65
- package/layout/ApplicationLayout.stories.tsx +1 -1
- package/layout/Icons.d.ts +8 -5
- package/layout/Icons.js +51 -59
- package/layout/SidenavContext.d.ts +1 -1
- package/layout/SidenavContext.js +3 -9
- package/layout/types.d.ts +5 -6
- package/link/Link.js +23 -44
- package/link/Link.test.js +23 -41
- package/link/types.d.ts +14 -14
- package/main.d.ts +7 -4
- package/main.js +32 -58
- package/nav-tabs/NavTabs.d.ts +2 -2
- package/nav-tabs/NavTabs.js +22 -54
- package/nav-tabs/NavTabs.stories.tsx +21 -5
- package/nav-tabs/NavTabs.test.js +38 -44
- package/nav-tabs/Tab.js +40 -72
- package/nav-tabs/types.d.ts +14 -15
- package/number-input/NumberInput.d.ts +7 -0
- package/number-input/NumberInput.js +26 -35
- package/number-input/NumberInput.stories.tsx +42 -26
- package/number-input/NumberInput.test.js +700 -412
- package/number-input/types.d.ts +11 -5
- package/package.json +30 -28
- package/paginator/Icons.d.ts +5 -5
- package/paginator/Icons.js +5 -19
- package/paginator/Paginator.js +17 -47
- package/paginator/Paginator.test.js +229 -199
- package/paginator/types.d.ts +3 -3
- package/paragraph/Paragraph.d.ts +2 -3
- package/paragraph/Paragraph.js +3 -19
- package/paragraph/Paragraph.stories.tsx +0 -17
- package/password-input/Icons.d.ts +6 -0
- package/password-input/Icons.js +35 -0
- package/password-input/PasswordInput.js +57 -126
- package/password-input/PasswordInput.stories.tsx +1 -33
- package/password-input/PasswordInput.test.js +157 -140
- package/password-input/types.d.ts +8 -7
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +21 -53
- package/progress-bar/{ProgressBar.stories.jsx → ProgressBar.stories.tsx} +1 -1
- package/progress-bar/ProgressBar.test.js +35 -52
- package/progress-bar/types.d.ts +4 -3
- package/quick-nav/QuickNav.js +4 -27
- package/quick-nav/QuickNav.stories.tsx +1 -1
- package/quick-nav/types.d.ts +10 -10
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +31 -63
- package/radio-group/RadioGroup.js +45 -93
- package/radio-group/RadioGroup.stories.tsx +10 -10
- package/radio-group/RadioGroup.test.js +504 -470
- package/radio-group/types.d.ts +8 -8
- package/resultset-table/Icons.d.ts +7 -0
- package/{resultsetTable → resultset-table}/Icons.js +1 -5
- package/{resultsetTable → resultset-table}/ResultsetTable.d.ts +1 -1
- package/{resultsetTable → resultset-table}/ResultsetTable.js +33 -63
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +19 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.test.js +72 -92
- package/{resultsetTable → resultset-table}/types.d.ts +13 -7
- package/resultset-table/types.js +5 -0
- package/select/Icons.d.ts +7 -7
- package/select/Icons.js +1 -5
- package/select/Listbox.js +13 -39
- package/select/Option.js +17 -27
- package/select/Select.js +92 -166
- package/select/Select.stories.tsx +3 -3
- package/select/Select.test.js +1946 -1804
- package/select/types.d.ts +14 -15
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +47 -0
- package/sidenav/Sidenav.d.ts +2 -2
- package/sidenav/Sidenav.js +80 -150
- package/sidenav/Sidenav.stories.tsx +60 -60
- package/sidenav/Sidenav.test.js +3 -10
- package/sidenav/types.d.ts +31 -28
- package/slider/Slider.js +68 -126
- package/slider/Slider.test.js +107 -103
- package/slider/types.d.ts +4 -4
- package/spinner/Spinner.js +28 -72
- package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +28 -28
- package/spinner/Spinner.test.js +25 -34
- package/spinner/types.d.ts +3 -3
- package/status-light/StatusLight.d.ts +4 -0
- package/status-light/StatusLight.js +51 -0
- package/status-light/StatusLight.stories.tsx +74 -0
- package/status-light/StatusLight.test.js +25 -0
- package/status-light/types.d.ts +17 -0
- package/status-light/types.js +5 -0
- package/switch/Switch.js +49 -97
- package/switch/Switch.stories.tsx +0 -34
- package/switch/Switch.test.js +51 -96
- package/switch/types.d.ts +4 -4
- package/table/Table.d.ts +1 -1
- package/table/Table.js +23 -30
- package/table/{Table.stories.jsx → Table.stories.tsx} +98 -0
- package/table/Table.test.js +1 -6
- package/table/types.d.ts +12 -6
- package/tabs/Tab.js +19 -36
- package/tabs/Tabs.js +61 -144
- package/tabs/Tabs.stories.tsx +1 -1
- package/tabs/Tabs.test.js +65 -121
- package/tabs/types.d.ts +19 -19
- package/tag/Tag.js +26 -58
- package/tag/Tag.test.js +19 -30
- package/tag/types.d.ts +7 -7
- package/text-input/Icons.d.ts +5 -5
- package/text-input/Icons.js +1 -5
- package/text-input/Suggestion.js +11 -28
- package/text-input/Suggestions.d.ts +1 -1
- package/text-input/Suggestions.js +15 -65
- package/text-input/TextInput.js +217 -318
- package/text-input/TextInput.stories.tsx +48 -152
- package/text-input/TextInput.test.js +1210 -1194
- package/text-input/types.d.ts +25 -17
- package/textarea/Textarea.js +68 -111
- package/textarea/{Textarea.stories.jsx → Textarea.stories.tsx} +58 -100
- package/textarea/Textarea.test.js +151 -182
- package/textarea/types.d.ts +9 -5
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/toggle-group/ToggleGroup.js +91 -105
- package/toggle-group/ToggleGroup.stories.tsx +7 -4
- package/toggle-group/ToggleGroup.test.js +68 -87
- package/toggle-group/types.d.ts +26 -17
- package/typography/Typography.js +4 -13
- package/typography/types.d.ts +1 -1
- package/useTheme.d.ts +21 -136
- package/useTheme.js +1 -8
- package/useTranslatedLabels.js +1 -7
- package/utils/BaseTypography.d.ts +2 -2
- package/utils/BaseTypography.js +16 -30
- package/utils/FocusLock.js +28 -43
- package/wizard/Wizard.js +15 -50
- package/wizard/Wizard.test.js +53 -80
- package/wizard/types.d.ts +8 -9
- package/card/ice-cream.jpg +0 -0
- package/number-input/NumberInputContext.d.ts +0 -4
- package/number-input/NumberInputContext.js +0 -19
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/resultsetTable/Icons.d.ts +0 -7
- package/slider/Slider.stories.tsx +0 -240
- /package/{resultsetTable → action-icon}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → container/types.js} +0 -0
package/file-input/FileItem.js
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports["default"] = void 0;
|
|
11
|
-
|
|
12
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
11
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
|
-
var _main = require("../main");
|
|
19
|
-
|
|
12
|
+
var _Flex = _interopRequireDefault(require("../flex/Flex"));
|
|
20
13
|
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
21
|
-
|
|
22
14
|
var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
|
|
23
|
-
|
|
24
15
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
30
18
|
var deleteIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
31
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
20
|
width: "24",
|
|
@@ -39,7 +27,6 @@ var deleteIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
|
39
27
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
40
28
|
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 12 19 6.41z"
|
|
41
29
|
}));
|
|
42
|
-
|
|
43
30
|
var errorIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
44
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
32
|
height: "24px",
|
|
@@ -49,25 +36,22 @@ var errorIcon = /*#__PURE__*/_react["default"].createElement("svg", {
|
|
|
49
36
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
50
37
|
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-2h2v2zm0-4h-2V7h2v6z"
|
|
51
38
|
}));
|
|
52
|
-
|
|
53
39
|
var FileItem = function FileItem(_ref) {
|
|
54
40
|
var _ref$fileName = _ref.fileName,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
fileName = _ref$fileName === void 0 ? "" : _ref$fileName,
|
|
42
|
+
_ref$error = _ref.error,
|
|
43
|
+
error = _ref$error === void 0 ? "" : _ref$error,
|
|
44
|
+
singleFileMode = _ref.singleFileMode,
|
|
45
|
+
showPreview = _ref.showPreview,
|
|
46
|
+
preview = _ref.preview,
|
|
47
|
+
type = _ref.type,
|
|
48
|
+
onDelete = _ref.onDelete,
|
|
49
|
+
tabIndex = _ref.tabIndex;
|
|
64
50
|
var colorsTheme = (0, _useTheme["default"])();
|
|
65
51
|
var translatedLabels = (0, _useTranslatedLabels["default"])();
|
|
66
|
-
|
|
67
52
|
var getIconAriaLabel = function getIconAriaLabel() {
|
|
68
53
|
if (type.includes("video")) return "video";else if (type.includes("audio")) return "audio";else return "file";
|
|
69
54
|
};
|
|
70
|
-
|
|
71
55
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
72
56
|
theme: colorsTheme.fileInput
|
|
73
57
|
}, /*#__PURE__*/_react["default"].createElement(MainContainer, {
|
|
@@ -80,7 +64,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
80
64
|
}) : /*#__PURE__*/_react["default"].createElement(IconPreview, {
|
|
81
65
|
error: error,
|
|
82
66
|
"aria-label": getIconAriaLabel()
|
|
83
|
-
}, preview)), /*#__PURE__*/_react["default"].createElement(FileItemContent, null, /*#__PURE__*/_react["default"].createElement(FileName, null, fileName), /*#__PURE__*/_react["default"].createElement(
|
|
67
|
+
}, preview)), /*#__PURE__*/_react["default"].createElement(FileItemContent, null, /*#__PURE__*/_react["default"].createElement(FileName, null, fileName), /*#__PURE__*/_react["default"].createElement(_Flex["default"], {
|
|
84
68
|
gap: "0.25rem"
|
|
85
69
|
}, error && /*#__PURE__*/_react["default"].createElement(ErrorIcon, null, errorIcon), /*#__PURE__*/_react["default"].createElement(DeleteFileAction, {
|
|
86
70
|
onClick: function onClick() {
|
|
@@ -92,7 +76,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
92
76
|
tabIndex: tabIndex
|
|
93
77
|
}, deleteIcon)), error && !singleFileMode && /*#__PURE__*/_react["default"].createElement(ErrorMessage, null, error))));
|
|
94
78
|
};
|
|
95
|
-
|
|
96
79
|
var MainContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n gap: 0.75rem;\n width: ", ";\n padding: ", ";\n ", ";\n border-color: ", ";\n border-width: ", ";\n border-style: ", ";\n border-radius: ", ";\n"])), function (props) {
|
|
97
80
|
return props.singleFileMode ? "230px" : "320px";
|
|
98
81
|
}, function (props) {
|
|
@@ -108,17 +91,13 @@ var MainContainer = _styledComponents["default"].div(_templateObject || (_templa
|
|
|
108
91
|
}, function (props) {
|
|
109
92
|
return props.theme.fileItemBorderRadius;
|
|
110
93
|
});
|
|
111
|
-
|
|
112
94
|
var ImagePreview = _styledComponents["default"].img(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n width: 48px;\n height: 48px;\n border-radius: 2px;\n object-fit: contain;\n"])));
|
|
113
|
-
|
|
114
95
|
var IconPreview = _styledComponents["default"].span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n width: 48px;\n height: 48px;\n padding: 15px;\n border-radius: 2px;\n color: ", ";\n\n svg {\n height: 18px;\n width: 18px;\n }\n"])), function (props) {
|
|
115
96
|
return props.error ? props.theme.errorFilePreviewBackgroundColor : props.theme.filePreviewBackgroundColor;
|
|
116
97
|
}, function (props) {
|
|
117
98
|
return props.error ? props.theme.errorFilePreviewIconColor : props.theme.filePreviewIconColor;
|
|
118
99
|
});
|
|
119
|
-
|
|
120
100
|
var FileItemContent = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n flex-grow: 1;\n display: grid;\n grid-template-columns: auto min-content;\n grid-template-rows: min-content auto;\n column-gap: 0.25rem;\n"])));
|
|
121
|
-
|
|
122
101
|
var FileName = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n align-self: center;\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) {
|
|
123
102
|
return props.theme.fileNameFontColor;
|
|
124
103
|
}, function (props) {
|
|
@@ -130,9 +109,7 @@ var FileName = _styledComponents["default"].span(_templateObject5 || (_templateO
|
|
|
130
109
|
}, function (props) {
|
|
131
110
|
return props.theme.fileItemLineHeight;
|
|
132
111
|
});
|
|
133
|
-
|
|
134
112
|
var ErrorIcon = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n padding: 3px;\n height: 18px;\n width: 18px;\n color: #d0011b;\n"])));
|
|
135
|
-
|
|
136
113
|
var DeleteFileAction = _styledComponents["default"].button(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n font-size: 1rem;\n font-family: ", ";\n border: 1px solid transparent;\n border-radius: 2px;\n background-color: transparent;\n box-shadow: 0 0 0 2px transparent;\n padding: 3px;\n cursor: pointer;\n color: ", ";\n\n svg {\n line-height: 18px;\n }\n &:hover {\n background-color: ", ";\n }\n &:focus,\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:active {\n background-color: ", ";\n }\n"])), function (props) {
|
|
137
114
|
return props.theme.fontFamily;
|
|
138
115
|
}, function (props) {
|
|
@@ -144,7 +121,6 @@ var DeleteFileAction = _styledComponents["default"].button(_templateObject7 || (
|
|
|
144
121
|
}, function (props) {
|
|
145
122
|
return props.theme.activeDeleteFileItemBackgroundColor;
|
|
146
123
|
});
|
|
147
|
-
|
|
148
124
|
var ErrorMessage = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) {
|
|
149
125
|
return props.theme.errorMessageFontColor;
|
|
150
126
|
}, function (props) {
|
|
@@ -156,7 +132,4 @@ var ErrorMessage = _styledComponents["default"].span(_templateObject8 || (_templ
|
|
|
156
132
|
}, function (props) {
|
|
157
133
|
return props.theme.errorMessageLineHeight;
|
|
158
134
|
});
|
|
159
|
-
|
|
160
|
-
var _default = /*#__PURE__*/_react["default"].memo(FileItem);
|
|
161
|
-
|
|
162
|
-
exports["default"] = _default;
|
|
135
|
+
var _default = exports["default"] = /*#__PURE__*/_react["default"].memo(FileItem);
|
package/file-input/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
+
type Margin = {
|
|
3
3
|
top?: Space;
|
|
4
4
|
bottom?: Space;
|
|
5
5
|
left?: Space;
|
|
6
6
|
right?: Space;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
export type FileData = {
|
|
9
9
|
/**
|
|
10
10
|
* Selected file.
|
|
11
11
|
*/
|
|
@@ -19,9 +19,9 @@ declare type FileData = {
|
|
|
19
19
|
*/
|
|
20
20
|
preview?: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
type CommonProps = {
|
|
23
23
|
/**
|
|
24
|
-
* Name attribute.
|
|
24
|
+
* @deprecated Name attribute.
|
|
25
25
|
*/
|
|
26
26
|
name?: string;
|
|
27
27
|
/**
|
|
@@ -80,7 +80,7 @@ declare type CommonProps = {
|
|
|
80
80
|
*/
|
|
81
81
|
tabIndex?: number;
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
type DropModeProps = CommonProps & {
|
|
84
84
|
/**
|
|
85
85
|
* Uses one of the available file input modes:
|
|
86
86
|
* 'file': Files are selected by clicking the button and selecting it through the file explorer.
|
|
@@ -94,7 +94,7 @@ declare type DropModeProps = CommonProps & {
|
|
|
94
94
|
*/
|
|
95
95
|
dropAreaLabel?: string;
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
type FileModeProps = CommonProps & {
|
|
98
98
|
/**
|
|
99
99
|
* Uses one of the available file input modes:
|
|
100
100
|
* 'file': Files are selected by clicking the button and selecting it through the file explorer.
|
|
@@ -111,12 +111,12 @@ declare type FileModeProps = CommonProps & {
|
|
|
111
111
|
/**
|
|
112
112
|
* Reference to the component.
|
|
113
113
|
*/
|
|
114
|
-
export
|
|
115
|
-
|
|
114
|
+
export type RefType = HTMLDivElement;
|
|
115
|
+
type Props = DropModeProps | FileModeProps;
|
|
116
116
|
/**
|
|
117
117
|
* Single file item preview.
|
|
118
118
|
*/
|
|
119
|
-
export
|
|
119
|
+
export type FileItemProps = {
|
|
120
120
|
fileName?: string;
|
|
121
121
|
error?: string;
|
|
122
122
|
showPreview: boolean;
|
package/flex/Flex.js
CHANGED
|
@@ -1,46 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
|
|
12
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
-
|
|
14
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
-
|
|
16
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
-
|
|
18
12
|
var _react = _interopRequireDefault(require("react"));
|
|
19
|
-
|
|
20
13
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
21
|
-
|
|
22
14
|
var _templateObject;
|
|
23
|
-
|
|
24
15
|
var _excluded = ["direction", "wrap", "gap", "order", "grow", "shrink", "basis", "children"],
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
_excluded2 = ["justifyContent", "alignItems", "alignContent", "alignSelf"];
|
|
27
17
|
var DxcFlex = function DxcFlex(_ref) {
|
|
28
18
|
var _ref$direction = _ref.direction,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
19
|
+
direction = _ref$direction === void 0 ? "row" : _ref$direction,
|
|
20
|
+
_ref$wrap = _ref.wrap,
|
|
21
|
+
wrap = _ref$wrap === void 0 ? "nowrap" : _ref$wrap,
|
|
22
|
+
_ref$gap = _ref.gap,
|
|
23
|
+
gap = _ref$gap === void 0 ? "0rem" : _ref$gap,
|
|
24
|
+
_ref$order = _ref.order,
|
|
25
|
+
order = _ref$order === void 0 ? 0 : _ref$order,
|
|
26
|
+
_ref$grow = _ref.grow,
|
|
27
|
+
grow = _ref$grow === void 0 ? 0 : _ref$grow,
|
|
28
|
+
_ref$shrink = _ref.shrink,
|
|
29
|
+
shrink = _ref$shrink === void 0 ? 1 : _ref$shrink,
|
|
30
|
+
_ref$basis = _ref.basis,
|
|
31
|
+
basis = _ref$basis === void 0 ? "auto" : _ref$basis,
|
|
32
|
+
children = _ref.children,
|
|
33
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
44
34
|
return /*#__PURE__*/_react["default"].createElement(Flex, (0, _extends2["default"])({
|
|
45
35
|
$direction: direction,
|
|
46
36
|
$wrap: wrap,
|
|
@@ -51,19 +41,17 @@ var DxcFlex = function DxcFlex(_ref) {
|
|
|
51
41
|
$gap: gap
|
|
52
42
|
}, props), children);
|
|
53
43
|
};
|
|
54
|
-
|
|
55
44
|
var Flex = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n ", "\n"])), function (_ref2) {
|
|
45
|
+
var _props$$gap, _props$$gap$rowGap, _props$$gap$columnGap;
|
|
56
46
|
var _ref2$justifyContent = _ref2.justifyContent,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return "\n flex-direction: ".concat(props.$direction, "; \n flex-wrap: ").concat(props.$wrap, "; \n justify-content: ").concat(justifyContent, "; \n align-items: ").concat(alignItems, ";\n align-content: ").concat(alignContent, ";\n align-self: ").concat(alignSelf, ";\n gap: ").concat((0, _typeof2["default"])(props.$gap) === "object" ?
|
|
47
|
+
justifyContent = _ref2$justifyContent === void 0 ? "flex-start" : _ref2$justifyContent,
|
|
48
|
+
_ref2$alignItems = _ref2.alignItems,
|
|
49
|
+
alignItems = _ref2$alignItems === void 0 ? "stretch" : _ref2$alignItems,
|
|
50
|
+
_ref2$alignContent = _ref2.alignContent,
|
|
51
|
+
alignContent = _ref2$alignContent === void 0 ? "normal" : _ref2$alignContent,
|
|
52
|
+
_ref2$alignSelf = _ref2.alignSelf,
|
|
53
|
+
alignSelf = _ref2$alignSelf === void 0 ? "auto" : _ref2$alignSelf,
|
|
54
|
+
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
|
|
55
|
+
return "\n flex-direction: ".concat(props.$direction, "; \n flex-wrap: ").concat(props.$wrap, "; \n justify-content: ").concat(justifyContent, "; \n align-items: ").concat(alignItems, ";\n align-content: ").concat(alignContent, ";\n align-self: ").concat(alignSelf, ";\n gap: ").concat(props.$gap != null && typeof props.$gap === "string" ? (_props$$gap = props.$gap) !== null && _props$$gap !== void 0 ? _props$$gap : "" : "", "}\n row-gap: ").concat(props.$gap != null && (0, _typeof2["default"])(props.$gap) === "object" ? (_props$$gap$rowGap = props.$gap.rowGap) !== null && _props$$gap$rowGap !== void 0 ? _props$$gap$rowGap : "" : "", "}\n column-gap: ").concat(props.$gap != null && (0, _typeof2["default"])(props.$gap) === "object" ? (_props$$gap$columnGap = props.$gap.columnGap) !== null && _props$$gap$columnGap !== void 0 ? _props$$gap$columnGap : "" : "", "}\n order: ").concat(props.$order, ";\n flex-grow: ").concat(props.$grow, ";\n flex-shrink: ").concat(props.$shrink, ";\n flex-basis: ").concat(props.$basis, ";\n ");
|
|
66
56
|
});
|
|
67
|
-
|
|
68
|
-
var _default = DxcFlex;
|
|
69
|
-
exports["default"] = _default;
|
|
57
|
+
var _default = exports["default"] = DxcFlex;
|
package/flex/Flex.stories.tsx
CHANGED
|
@@ -14,36 +14,36 @@ export const Chromatic = () => (
|
|
|
14
14
|
<Container>
|
|
15
15
|
<DxcFlex>
|
|
16
16
|
<Placeholder />
|
|
17
|
-
<Placeholder
|
|
17
|
+
<Placeholder minWidth="50px" />
|
|
18
18
|
<Placeholder />
|
|
19
|
-
<Placeholder
|
|
20
|
-
<Placeholder
|
|
19
|
+
<Placeholder minWidth="50px" />
|
|
20
|
+
<Placeholder minWidth="50px" />
|
|
21
21
|
</DxcFlex>
|
|
22
22
|
</Container>
|
|
23
23
|
<Title title="Direction column, wrap, justify content end, align items center and gap" level={4} />
|
|
24
24
|
<Container>
|
|
25
|
-
<DxcFlex direction="column" wrap="wrap" justifyContent="end" alignItems="center" gap="
|
|
25
|
+
<DxcFlex direction="column" wrap="wrap" justifyContent="end" alignItems="center" gap="1.5rem">
|
|
26
26
|
<Placeholder />
|
|
27
|
-
<Placeholder
|
|
27
|
+
<Placeholder minWidth="100px" />
|
|
28
28
|
<Placeholder />
|
|
29
|
-
<Placeholder
|
|
29
|
+
<Placeholder minWidth="100px" />
|
|
30
30
|
<Placeholder />
|
|
31
31
|
</DxcFlex>
|
|
32
32
|
</Container>
|
|
33
33
|
<Title title="Wrap with align content space between, row and column gaps, and as a span" level={4} />
|
|
34
34
|
<Container height="250px">
|
|
35
|
-
<DxcFlex wrap="wrap" alignContent="space-between" as="span" gap={{ rowGap: "
|
|
35
|
+
<DxcFlex wrap="wrap" alignContent="space-between" as="span" gap={{ rowGap: "0.5rem", columnGap: "1.5rem" }}>
|
|
36
36
|
<Placeholder />
|
|
37
37
|
<Placeholder />
|
|
38
38
|
<Placeholder />
|
|
39
39
|
<Placeholder />
|
|
40
|
-
<Placeholder
|
|
40
|
+
<Placeholder minWidth="100px" />
|
|
41
41
|
<Placeholder />
|
|
42
42
|
<Placeholder />
|
|
43
|
-
<Placeholder
|
|
43
|
+
<Placeholder minWidth="100px" />
|
|
44
44
|
<Placeholder />
|
|
45
45
|
<Placeholder />
|
|
46
|
-
<Placeholder
|
|
46
|
+
<Placeholder minWidth="100px" />
|
|
47
47
|
<Placeholder />
|
|
48
48
|
</DxcFlex>
|
|
49
49
|
</Container>
|
|
@@ -51,16 +51,24 @@ export const Chromatic = () => (
|
|
|
51
51
|
<Container height="75px">
|
|
52
52
|
<DxcFlex basis="100%">
|
|
53
53
|
<DxcFlex order={3} grow={1} alignSelf="flex-end">
|
|
54
|
-
<
|
|
54
|
+
<Placeholder width="100%" minWidth="0">
|
|
55
|
+
order 3, grow 1, align self end
|
|
56
|
+
</Placeholder>
|
|
55
57
|
</DxcFlex>
|
|
56
58
|
<DxcFlex order={-1} grow={4}>
|
|
57
|
-
<
|
|
59
|
+
<Placeholder width="100%" minWidth="0">
|
|
60
|
+
order -1, grow 4
|
|
61
|
+
</Placeholder>
|
|
58
62
|
</DxcFlex>
|
|
59
63
|
<DxcFlex order={5} grow={1}>
|
|
60
|
-
<
|
|
64
|
+
<Placeholder width="100%" minWidth="0">
|
|
65
|
+
order 5, grow 1
|
|
66
|
+
</Placeholder>
|
|
61
67
|
</DxcFlex>
|
|
62
68
|
<DxcFlex order={2} grow={2}>
|
|
63
|
-
<
|
|
69
|
+
<Placeholder width="100%" minWidth="0">
|
|
70
|
+
order 2. grow 2
|
|
71
|
+
</Placeholder>
|
|
64
72
|
</DxcFlex>
|
|
65
73
|
</DxcFlex>
|
|
66
74
|
</Container>
|
|
@@ -68,13 +76,19 @@ export const Chromatic = () => (
|
|
|
68
76
|
<Container>
|
|
69
77
|
<DxcFlex basis="600px">
|
|
70
78
|
<DxcFlex shrink={4} basis="400px">
|
|
71
|
-
<
|
|
79
|
+
<Placeholder width="100%" minWidth="0">
|
|
80
|
+
shrink 4
|
|
81
|
+
</Placeholder>
|
|
72
82
|
</DxcFlex>
|
|
73
83
|
<DxcFlex shrink={2} basis="400px">
|
|
74
|
-
<
|
|
84
|
+
<Placeholder width="100%" minWidth="0">
|
|
85
|
+
shrink 2
|
|
86
|
+
</Placeholder>
|
|
75
87
|
</DxcFlex>
|
|
76
88
|
<DxcFlex shrink={1} basis="400px">
|
|
77
|
-
<
|
|
89
|
+
<Placeholder width="100%" minWidth="0">
|
|
90
|
+
shrink 1
|
|
91
|
+
</Placeholder>
|
|
78
92
|
</DxcFlex>
|
|
79
93
|
</DxcFlex>
|
|
80
94
|
</Container>
|
|
@@ -88,16 +102,11 @@ const Container = styled.div<{ height?: string }>`
|
|
|
88
102
|
${({ height }) => (height ? `height: ${height}` : "max-height: 150px")};
|
|
89
103
|
`;
|
|
90
104
|
|
|
91
|
-
const Placeholder = styled.div<{ width?: string }>`
|
|
105
|
+
const Placeholder = styled.div<{ minWidth?: string; width?: string }>`
|
|
92
106
|
height: 40px;
|
|
93
|
-
min-width: ${({
|
|
94
|
-
|
|
95
|
-
background-color: #e5d5f6;
|
|
96
|
-
`;
|
|
97
|
-
|
|
98
|
-
const PlaceholderGrowAndShrink = styled.div`
|
|
99
|
-
height: 40px;
|
|
100
|
-
width: 100%;
|
|
107
|
+
min-width: ${({ minWidth }) => minWidth ?? "200px"};
|
|
108
|
+
width: ${({ width }) => width};
|
|
101
109
|
border: 1px solid #a46ede;
|
|
110
|
+
border-radius: 0.5rem;
|
|
102
111
|
background-color: #e5d5f6;
|
|
103
112
|
`;
|
package/flex/types.d.ts
CHANGED
|
@@ -1,29 +1,94 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
type Spaces = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
|
|
3
|
+
type Gap = {
|
|
4
|
+
rowGap: Spaces;
|
|
5
|
+
columnGap?: Spaces;
|
|
6
|
+
} | {
|
|
7
|
+
rowGap?: Spaces;
|
|
8
|
+
columnGap: Spaces;
|
|
9
|
+
} | Spaces;
|
|
10
|
+
type CommonProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Sets the justify-content CSS property.
|
|
13
|
+
*
|
|
14
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
15
|
+
*/
|
|
7
16
|
justifyContent?: "flex-start" | "flex-end" | "start" | "end" | "left" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
17
|
+
/**
|
|
18
|
+
* Sets the align-items CSS property.
|
|
19
|
+
*
|
|
20
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
21
|
+
*/
|
|
8
22
|
alignItems?: "stretch" | "flex-start" | "flex-end" | "start" | "end" | "self-start" | "self-end" | "center" | "baseline";
|
|
23
|
+
/**
|
|
24
|
+
* Sets the align-content CSS property.
|
|
25
|
+
*
|
|
26
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
27
|
+
*/
|
|
9
28
|
alignContent?: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
29
|
+
/**
|
|
30
|
+
* Sets the align-self CSS property.
|
|
31
|
+
*
|
|
32
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-self
|
|
33
|
+
*/
|
|
10
34
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
11
35
|
};
|
|
12
|
-
|
|
36
|
+
type Props = CommonProps & {
|
|
37
|
+
/**
|
|
38
|
+
* Sets the flex-direction CSS property.
|
|
39
|
+
*
|
|
40
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
|
|
41
|
+
*/
|
|
13
42
|
direction?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
43
|
+
/**
|
|
44
|
+
* Sets the flex-wrap CSS property.
|
|
45
|
+
*
|
|
46
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
|
|
47
|
+
*/
|
|
14
48
|
wrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
15
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Sets the gap CSS property.
|
|
51
|
+
*
|
|
52
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
53
|
+
*/
|
|
54
|
+
gap?: Gap;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the order CSS property.
|
|
57
|
+
*
|
|
58
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/order
|
|
59
|
+
*/
|
|
16
60
|
order?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the flex-grow CSS property.
|
|
63
|
+
*
|
|
64
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow
|
|
65
|
+
*/
|
|
17
66
|
grow?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the flex-shrink CSS property.
|
|
69
|
+
*
|
|
70
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink
|
|
71
|
+
*/
|
|
18
72
|
shrink?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the flex-basis CSS property.
|
|
75
|
+
*
|
|
76
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis
|
|
77
|
+
*/
|
|
19
78
|
basis?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Sets a custom HTML tag.
|
|
81
|
+
*/
|
|
20
82
|
as?: keyof HTMLElementTagNameMap;
|
|
83
|
+
/**
|
|
84
|
+
* Custom content inside the flex container.
|
|
85
|
+
*/
|
|
21
86
|
children: React.ReactNode;
|
|
22
87
|
};
|
|
23
|
-
export
|
|
88
|
+
export type StyledProps = CommonProps & {
|
|
24
89
|
$direction?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
25
90
|
$wrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
26
|
-
$gap?:
|
|
91
|
+
$gap?: Spaces | Gap;
|
|
27
92
|
$order?: number;
|
|
28
93
|
$grow?: number;
|
|
29
94
|
$shrink?: number;
|
package/footer/Footer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import FooterPropsType from "./types";
|
|
3
|
-
declare const DxcFooter: ({ socialLinks, bottomLinks, copyright, children,
|
|
3
|
+
declare const DxcFooter: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
|
|
4
4
|
export default DxcFooter;
|