@dxc-technology/halstack-react 0.0.0-e832ef8 → 0.0.0-e884f9f
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 +50 -0
- package/ThemeContext.js +246 -0
- package/{dist/select/Select.js → V3Select/V3Select.js} +38 -132
- package/V3Select/index.d.ts +27 -0
- package/{dist/V3Textarea → V3Textarea}/V3Textarea.js +10 -14
- package/V3Textarea/index.d.ts +27 -0
- package/accordion/Accordion.d.ts +4 -0
- package/{dist/accordion → accordion}/Accordion.js +35 -130
- package/accordion/types.d.ts +68 -0
- package/accordion/types.js +5 -0
- package/accordion-group/AccordionGroup.d.ts +7 -0
- package/accordion-group/AccordionGroup.js +170 -0
- package/accordion-group/types.d.ts +72 -0
- package/accordion-group/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/{dist/alert → alert}/Alert.js +38 -151
- package/alert/Alert.stories.tsx +170 -0
- package/alert/types.d.ts +49 -0
- package/alert/types.js +5 -0
- package/badge/Badge.js +59 -0
- package/box/Box.d.ts +4 -0
- package/{dist/box → box}/Box.js +13 -43
- package/box/Box.stories.tsx +132 -0
- package/box/types.d.ts +43 -0
- package/box/types.js +5 -0
- package/button/Button.d.ts +4 -0
- package/{dist/button → button}/Button.js +23 -84
- package/button/Button.stories.tsx +276 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.d.ts +4 -0
- package/{dist/card → card}/Card.js +33 -123
- package/card/Card.stories.tsx +201 -0
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +67 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/{dist/checkbox → checkbox}/Checkbox.js +16 -63
- package/checkbox/Checkbox.stories.tsx +192 -0
- package/checkbox/types.d.ts +60 -0
- package/checkbox/types.js +5 -0
- package/{dist/chip → chip}/Chip.js +17 -61
- package/chip/Chip.stories.tsx +121 -0
- package/chip/index.d.ts +22 -0
- package/{dist/common → common}/OpenSans.css +0 -0
- package/{dist/common → common}/RequiredComponent.js +3 -11
- package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/{dist/common → common}/utils.js +0 -0
- package/{dist/common → common}/variables.js +160 -152
- package/{dist/date → date}/Date.js +21 -27
- package/date/index.d.ts +27 -0
- package/date-input/DateInput.d.ts +4 -0
- package/{dist/date-input → date-input}/DateInput.js +22 -61
- package/date-input/DateInput.stories.tsx +138 -0
- package/date-input/types.d.ts +100 -0
- package/date-input/types.js +5 -0
- package/dialog/Dialog.d.ts +4 -0
- package/{dist/dialog → dialog}/Dialog.js +20 -73
- package/dialog/Dialog.stories.tsx +212 -0
- package/dialog/types.d.ts +43 -0
- package/dialog/types.js +5 -0
- package/dropdown/Dropdown.d.ts +4 -0
- package/{dist/dropdown → dropdown}/Dropdown.js +44 -171
- package/dropdown/types.d.ts +89 -0
- package/dropdown/types.js +5 -0
- package/file-input/FileInput.d.ts +4 -0
- package/{dist/file-input → file-input}/FileInput.js +56 -189
- package/file-input/FileItem.d.ts +14 -0
- package/file-input/FileItem.js +182 -0
- package/file-input/types.d.ts +87 -0
- package/file-input/types.js +5 -0
- package/footer/Footer.d.ts +4 -0
- package/{dist/footer → footer}/Footer.js +38 -193
- package/footer/Footer.stories.jsx +151 -0
- package/{dist/footer → footer}/Icons.js +13 -13
- package/footer/types.d.ts +61 -0
- package/footer/types.js +5 -0
- package/header/Header.d.ts +7 -0
- package/header/Header.js +324 -0
- package/header/Header.stories.tsx +162 -0
- package/{dist/header → header}/Icons.js +7 -32
- package/header/types.d.ts +47 -0
- package/header/types.js +5 -0
- package/heading/Heading.d.ts +4 -0
- package/{dist/heading → heading}/Heading.js +30 -89
- package/heading/Heading.stories.tsx +53 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/{dist/input-text → input-text}/Icons.js +2 -2
- package/{dist/input-text → input-text}/InputText.js +36 -130
- package/input-text/index.d.ts +36 -0
- package/{dist/layout → layout}/ApplicationLayout.js +31 -123
- package/{dist/layout → layout}/Icons.js +7 -7
- package/link/Link.d.ts +3 -0
- package/{dist/link → link}/Link.js +18 -94
- package/link/Link.stories.tsx +146 -0
- package/link/types.d.ts +74 -0
- package/link/types.js +5 -0
- package/main.d.ts +44 -0
- package/{dist/main.js → main.js} +93 -97
- package/number-input/NumberInput.d.ts +4 -0
- package/number-input/NumberInput.js +86 -0
- package/number-input/NumberInput.stories.tsx +115 -0
- package/{dist/number-input → number-input}/NumberInputContext.js +1 -1
- package/number-input/types.d.ts +117 -0
- package/number-input/types.js +5 -0
- package/package.json +32 -25
- package/{dist/paginator → paginator}/Icons.js +9 -9
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +198 -0
- package/paginator/Paginator.stories.tsx +63 -0
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/password-input/PasswordInput.d.ts +4 -0
- package/{dist/password-input → password-input}/PasswordInput.js +24 -60
- package/password-input/PasswordInput.stories.tsx +131 -0
- package/password-input/types.d.ts +100 -0
- package/password-input/types.js +5 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/{dist/progress-bar → progress-bar}/ProgressBar.js +20 -92
- package/progress-bar/ProgressBar.stories.jsx +58 -0
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/radio/Radio.d.ts +4 -0
- package/{dist/radio → radio}/Radio.js +15 -50
- package/radio/Radio.stories.tsx +192 -0
- package/radio/types.d.ts +54 -0
- package/radio/types.js +5 -0
- package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +35 -119
- package/resultsetTable/index.d.ts +19 -0
- package/select/Select.js +865 -0
- package/select/Select.stories.tsx +572 -0
- package/select/index.d.ts +131 -0
- package/sidenav/Sidenav.d.ts +9 -0
- package/{dist/sidenav → sidenav}/Sidenav.js +19 -62
- package/sidenav/Sidenav.stories.tsx +165 -0
- package/sidenav/types.d.ts +50 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +4 -0
- package/{dist/slider → slider}/Slider.js +71 -158
- package/slider/Slider.stories.tsx +177 -0
- package/slider/types.d.ts +78 -0
- package/slider/types.js +5 -0
- package/spinner/Spinner.d.ts +4 -0
- package/spinner/Spinner.js +250 -0
- package/spinner/Spinner.stories.jsx +102 -0
- package/spinner/types.d.ts +32 -0
- package/spinner/types.js +5 -0
- package/switch/Switch.d.ts +4 -0
- package/{dist/switch → switch}/Switch.js +26 -69
- package/switch/Switch.stories.tsx +160 -0
- package/switch/types.d.ts +58 -0
- package/switch/types.js +5 -0
- package/table/Table.d.ts +4 -0
- package/{dist/table → table}/Table.js +10 -24
- package/table/Table.stories.jsx +276 -0
- package/table/types.d.ts +21 -0
- package/table/types.js +5 -0
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +213 -0
- package/tabs/types.d.ts +70 -0
- package/tabs/types.js +5 -0
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +193 -0
- package/tag/Tag.stories.tsx +145 -0
- package/tag/types.d.ts +60 -0
- package/tag/types.js +5 -0
- package/{dist/text-input → text-input}/TextInput.js +244 -390
- package/{dist/text-input → text-input}/index.d.ts +2 -2
- package/{dist/textarea → textarea}/Textarea.js +20 -72
- package/textarea/Textarea.stories.jsx +135 -0
- package/{dist/textarea → textarea}/index.d.ts +0 -0
- package/{dist/toggle → toggle}/Toggle.js +15 -49
- package/toggle/index.d.ts +21 -0
- package/{dist/toggle-group → toggle-group}/ToggleGroup.js +23 -107
- package/toggle-group/ToggleGroup.stories.tsx +178 -0
- package/toggle-group/index.d.ts +21 -0
- package/{dist/upload → upload}/Upload.js +14 -18
- package/{dist/upload → upload}/buttons-upload/ButtonsUpload.js +13 -37
- package/{dist/upload → upload}/buttons-upload/Icons.js +7 -7
- package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
- package/upload/dragAndDropArea/Icons.js +39 -0
- package/upload/file-upload/FileToUpload.js +115 -0
- package/{dist/upload → upload}/file-upload/Icons.js +13 -13
- package/{dist/upload → upload}/files-upload/FilesToUpload.js +12 -26
- package/upload/index.d.ts +15 -0
- package/{dist/upload → upload}/transaction/Icons.js +31 -31
- package/upload/transaction/Transaction.js +104 -0
- package/upload/transactions/Transactions.js +94 -0
- package/{dist/useTheme.js → useTheme.js} +0 -0
- package/{dist/wizard → wizard}/Icons.js +8 -8
- package/wizard/Wizard.d.ts +4 -0
- package/{dist/wizard → wizard}/Wizard.js +32 -206
- package/wizard/Wizard.stories.jsx +224 -0
- package/wizard/types.d.ts +64 -0
- package/wizard/types.js +5 -0
- package/README.md +0 -66
- package/babel.config.js +0 -8
- package/dist/BackgroundColorContext.js +0 -46
- package/dist/ThemeContext.js +0 -248
- package/dist/accordion-group/AccordionGroup.js +0 -186
- package/dist/alert/index.d.ts +0 -51
- package/dist/badge/Badge.js +0 -63
- package/dist/checkbox/Checkbox.stories.js +0 -144
- package/dist/checkbox/readme.md +0 -116
- package/dist/date/Date.stories.js +0 -205
- package/dist/date/readme.md +0 -73
- package/dist/date-input/index.d.ts +0 -95
- package/dist/file-input/FileItem.js +0 -280
- package/dist/file-input/index.d.ts +0 -81
- package/dist/header/Header.js +0 -434
- package/dist/link/readme.md +0 -51
- package/dist/main.d.ts +0 -8
- package/dist/new-select/NewSelect.js +0 -836
- package/dist/new-select/index.d.ts +0 -53
- package/dist/number-input/NumberInput.js +0 -136
- package/dist/number-input/index.d.ts +0 -113
- package/dist/paginator/Paginator.js +0 -283
- package/dist/password-input/index.d.ts +0 -94
- package/dist/progress-bar/ProgressBar.stories.js +0 -280
- package/dist/progress-bar/readme.md +0 -63
- package/dist/radio/Radio.stories.js +0 -166
- package/dist/radio/readme.md +0 -70
- package/dist/slider/readme.md +0 -64
- package/dist/spinner/Spinner.js +0 -381
- package/dist/spinner/Spinner.stories.js +0 -183
- package/dist/spinner/readme.md +0 -65
- package/dist/switch/Switch.stories.js +0 -134
- package/dist/switch/readme.md +0 -133
- package/dist/tabs/Tabs.js +0 -343
- package/dist/tabs/Tabs.stories.js +0 -130
- package/dist/tabs/readme.md +0 -78
- package/dist/tabs-for-sections/TabsForSections.js +0 -92
- package/dist/tabs-for-sections/readme.md +0 -78
- package/dist/tag/Tag.js +0 -282
- package/dist/toggle/Toggle.stories.js +0 -297
- package/dist/toggle/readme.md +0 -80
- package/dist/upload/Upload.stories.js +0 -72
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
- package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
- package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
- package/dist/upload/file-upload/FileToUpload.js +0 -189
- package/dist/upload/readme.md +0 -37
- package/dist/upload/transaction/Transaction.js +0 -148
- package/dist/upload/transactions/Transactions.js +0 -138
- package/test/Accordion.test.js +0 -33
- package/test/AccordionGroup.test.js +0 -125
- package/test/Alert.test.js +0 -53
- package/test/Box.test.js +0 -10
- package/test/Button.test.js +0 -18
- package/test/Card.test.js +0 -30
- package/test/Checkbox.test.js +0 -45
- package/test/Chip.test.js +0 -25
- package/test/Date.test.js +0 -397
- package/test/DateInput.test.js +0 -242
- package/test/Dialog.test.js +0 -23
- package/test/Dropdown.test.js +0 -145
- package/test/FileInput.test.js +0 -201
- package/test/Footer.test.js +0 -94
- package/test/Header.test.js +0 -34
- package/test/Heading.test.js +0 -35
- package/test/InputText.test.js +0 -248
- package/test/Link.test.js +0 -43
- package/test/NumberInput.test.js +0 -259
- package/test/Paginator.test.js +0 -177
- package/test/PasswordInput.test.js +0 -83
- package/test/ProgressBar.test.js +0 -35
- package/test/Radio.test.js +0 -37
- package/test/ResultsetTable.test.js +0 -329
- package/test/Select.test.js +0 -212
- package/test/Sidenav.test.js +0 -45
- package/test/Slider.test.js +0 -74
- package/test/Spinner.test.js +0 -32
- package/test/Switch.test.js +0 -45
- package/test/Table.test.js +0 -36
- package/test/Tabs.test.js +0 -109
- package/test/TabsForSections.test.js +0 -34
- package/test/Tag.test.js +0 -32
- package/test/TextInput.test.js +0 -732
- package/test/Textarea.test.js +0 -193
- package/test/ToggleGroup.test.js +0 -85
- package/test/Upload.test.js +0 -60
- package/test/V3TextArea.test.js +0 -51
- package/test/Wizard.test.js +0 -130
- package/test/mocks/pngMock.js +0 -1
- package/test/mocks/svgMock.js +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2
|
+
declare type Margin = {
|
|
3
|
+
top?: Space;
|
|
4
|
+
bottom?: Space;
|
|
5
|
+
left?: Space;
|
|
6
|
+
right?: Space;
|
|
7
|
+
};
|
|
8
|
+
declare type FileData = {
|
|
9
|
+
/**
|
|
10
|
+
* Selected file.
|
|
11
|
+
*/
|
|
12
|
+
file: File;
|
|
13
|
+
/**
|
|
14
|
+
* Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
|
|
15
|
+
*/
|
|
16
|
+
error?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Preview of the file.
|
|
19
|
+
*/
|
|
20
|
+
preview?: string;
|
|
21
|
+
};
|
|
22
|
+
declare type Props = {
|
|
23
|
+
/**
|
|
24
|
+
* Name attribute.
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Text to be placed above the component.
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Uses one of the available file input modes:
|
|
33
|
+
* 'file': Files are selected by clicking the button and selecting it through the file explorer.
|
|
34
|
+
* 'filedrop': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
|
|
35
|
+
* 'dropzone': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
|
|
36
|
+
* The drag and drop area of this mode is bigger than the one of the filedrop mode.
|
|
37
|
+
*/
|
|
38
|
+
mode?: "file" | "filedrop" | "dropzone";
|
|
39
|
+
/**
|
|
40
|
+
* Helper text to be placed above the component.
|
|
41
|
+
*/
|
|
42
|
+
helperText?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The file types that the component accepts. Its value must be one of all the possible values of the HTML file input's accept attribute.
|
|
45
|
+
*/
|
|
46
|
+
accept?: string;
|
|
47
|
+
/**
|
|
48
|
+
* An array of files representing the selected files.
|
|
49
|
+
*/
|
|
50
|
+
value: FileData[];
|
|
51
|
+
/**
|
|
52
|
+
* The minimum file size (in bytes) allowed. If the size of the file does not comply the minSize, the file will have an error.
|
|
53
|
+
*/
|
|
54
|
+
minSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
|
|
57
|
+
*/
|
|
58
|
+
maxSize?: number;
|
|
59
|
+
/**
|
|
60
|
+
* If true, if the file is an image, a preview of it will be shown. If not, an icon refering to the file type will be shown.
|
|
61
|
+
*/
|
|
62
|
+
showPreview?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* If true, the component allows multiple file items and will show all of them. If false, only one file will be shown, and if there is already one
|
|
65
|
+
* file selected and a new one is chosen, it will be replaced by the new selected one.
|
|
66
|
+
*/
|
|
67
|
+
multiple?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If true, the component will be disabled.
|
|
70
|
+
*/
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* This function will be called when the user selects or drops a file. The list of files will be sent as a parameter.
|
|
74
|
+
* In this function, the files can be updated or returned as they come. These files must be passed to the value in order to be shown.
|
|
75
|
+
*/
|
|
76
|
+
callbackFile: (files: FileData[]) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
79
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
80
|
+
*/
|
|
81
|
+
margin?: Space | Margin;
|
|
82
|
+
/**
|
|
83
|
+
* Value of the tabindex attribute.
|
|
84
|
+
*/
|
|
85
|
+
tabIndex?: number;
|
|
86
|
+
};
|
|
87
|
+
export default Props;
|
|
@@ -1,16 +1,14 @@
|
|
|
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
|
});
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
|
|
12
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
-
|
|
14
12
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
15
13
|
|
|
16
14
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -21,8 +19,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
21
19
|
|
|
22
20
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
23
21
|
|
|
24
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
|
-
|
|
26
22
|
var _variables = require("../common/variables.js");
|
|
27
23
|
|
|
28
24
|
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
@@ -31,141 +27,15 @@ var _BackgroundColorContext = require("../BackgroundColorContext.js");
|
|
|
31
27
|
|
|
32
28
|
var _Icons = _interopRequireDefault(require("./Icons"));
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n"]);
|
|
36
|
-
|
|
37
|
-
_templateObject13 = function _templateObject13() {
|
|
38
|
-
return data;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return data;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function _templateObject12() {
|
|
45
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px 10px;\n color: ", ";\n"]);
|
|
46
|
-
|
|
47
|
-
_templateObject12 = function _templateObject12() {
|
|
48
|
-
return data;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return data;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function _templateObject11() {
|
|
55
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n color: ", ";\n }\n\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
|
|
56
|
-
|
|
57
|
-
_templateObject11 = function _templateObject11() {
|
|
58
|
-
return data;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return data;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function _templateObject10() {
|
|
65
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n fill: ", ";\n }\n"]);
|
|
66
|
-
|
|
67
|
-
_templateObject10 = function _templateObject10() {
|
|
68
|
-
return data;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return data;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function _templateObject9() {
|
|
75
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n margin-left: ", ";\n }\n"]);
|
|
76
|
-
|
|
77
|
-
_templateObject9 = function _templateObject9() {
|
|
78
|
-
return data;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
return data;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function _templateObject8() {
|
|
85
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"]);
|
|
86
|
-
|
|
87
|
-
_templateObject8 = function _templateObject8() {
|
|
88
|
-
return data;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
return data;
|
|
92
|
-
}
|
|
30
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
93
31
|
|
|
94
|
-
function
|
|
95
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"]);
|
|
32
|
+
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); }
|
|
96
33
|
|
|
97
|
-
|
|
98
|
-
return data;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
return data;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function _templateObject6() {
|
|
105
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n max-width: ", ";\n width: ", ";\n text-align: ", ";\n padding-top: ", ";\n"]);
|
|
106
|
-
|
|
107
|
-
_templateObject6 = function _templateObject6() {
|
|
108
|
-
return data;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
return data;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function _templateObject5() {
|
|
115
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n min-height: 15px;\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n overflow: hidden;\n"]);
|
|
116
|
-
|
|
117
|
-
_templateObject5 = function _templateObject5() {
|
|
118
|
-
return data;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
return data;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function _templateObject4() {
|
|
125
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n padding-top: ", ";\n display: inline-flex;\n flex-wrap: wrap;\n max-width: ", ";\n width: ", ";\n & > span:last-child span {\n display: none;\n }\n margin: ", ";\n"]);
|
|
126
|
-
|
|
127
|
-
_templateObject4 = function _templateObject4() {
|
|
128
|
-
return data;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
return data;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function _templateObject3() {
|
|
135
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n flex-direction: ", ";\n align-items: ", ";\n border-top: ", ";\n"]);
|
|
136
|
-
|
|
137
|
-
_templateObject3 = function _templateObject3() {
|
|
138
|
-
return data;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
return data;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function _templateObject2() {
|
|
145
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n"]);
|
|
146
|
-
|
|
147
|
-
_templateObject2 = function _templateObject2() {
|
|
148
|
-
return data;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
return data;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function _templateObject() {
|
|
155
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n padding: ", ";\n background-color: ", ";\n margin-top: ", ";\n width: 100%;\n box-sizing: border-box;\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]);
|
|
156
|
-
|
|
157
|
-
_templateObject = function _templateObject() {
|
|
158
|
-
return data;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
return data;
|
|
162
|
-
}
|
|
34
|
+
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; }
|
|
163
35
|
|
|
164
36
|
var DxcFooter = function DxcFooter(_ref) {
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
_ref$bottomLinks = _ref.bottomLinks,
|
|
168
|
-
bottomLinks = _ref$bottomLinks === void 0 ? [] : _ref$bottomLinks,
|
|
37
|
+
var socialLinks = _ref.socialLinks,
|
|
38
|
+
bottomLinks = _ref.bottomLinks,
|
|
169
39
|
_ref$copyright = _ref.copyright,
|
|
170
40
|
copyright = _ref$copyright === void 0 ? "" : _ref$copyright,
|
|
171
41
|
children = _ref.children,
|
|
@@ -197,7 +67,7 @@ var DxcFooter = function DxcFooter(_ref) {
|
|
|
197
67
|
}
|
|
198
68
|
|
|
199
69
|
if (typeof colorsTheme.footer.logo === "string") {
|
|
200
|
-
return _react["default"].createElement(LogoImg, {
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(LogoImg, {
|
|
201
71
|
alt: "Logo",
|
|
202
72
|
src: colorsTheme.footer.logo
|
|
203
73
|
});
|
|
@@ -234,53 +104,53 @@ var DxcFooter = function DxcFooter(_ref) {
|
|
|
234
104
|
window.removeEventListener("resize", handleEventListener);
|
|
235
105
|
};
|
|
236
106
|
}, []);
|
|
237
|
-
var socialLink = socialLinks.map(function (link, index) {
|
|
238
|
-
return _react["default"].createElement(SocialAnchor, {
|
|
107
|
+
var socialLink = socialLinks === null || socialLinks === void 0 ? void 0 : socialLinks.map(function (link, index) {
|
|
108
|
+
return /*#__PURE__*/_react["default"].createElement(SocialAnchor, {
|
|
239
109
|
tabIndex: tabIndex,
|
|
240
110
|
key: "social".concat(index).concat(link.href),
|
|
241
111
|
index: index,
|
|
242
112
|
href: link && link.href ? link.href : ""
|
|
243
|
-
}, link.logo ? _react["default"].createElement(SocialIconContainer, null, (0, _typeof2["default"])(link.logo) === "object" ? link.logo : _react["default"].createElement(link.logo)) : link && link.logoSrc && _react["default"].createElement(SocialIcon, {
|
|
113
|
+
}, link.logo ? /*#__PURE__*/_react["default"].createElement(SocialIconContainer, null, (0, _typeof2["default"])(link.logo) === "object" ? link.logo : /*#__PURE__*/_react["default"].createElement(link.logo)) : link && link.logoSrc && /*#__PURE__*/_react["default"].createElement(SocialIcon, {
|
|
244
114
|
src: link.logoSrc
|
|
245
115
|
}));
|
|
246
116
|
});
|
|
247
|
-
var bottomLink = bottomLinks.map(function (link, index) {
|
|
248
|
-
return _react["default"].createElement("span", {
|
|
117
|
+
var bottomLink = bottomLinks === null || bottomLinks === void 0 ? void 0 : bottomLinks.map(function (link, index) {
|
|
118
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
249
119
|
key: "bottom".concat(index).concat(link.text)
|
|
250
|
-
}, _react["default"].createElement(BottomLink, {
|
|
120
|
+
}, /*#__PURE__*/_react["default"].createElement(BottomLink, {
|
|
251
121
|
tabIndex: tabIndex,
|
|
252
122
|
href: link && link.href ? link.href : ""
|
|
253
|
-
}, link && link.text ? link.text : ""), _react["default"].createElement(Point, {
|
|
123
|
+
}, link && link.text ? link.text : ""), /*#__PURE__*/_react["default"].createElement(Point, {
|
|
254
124
|
index: index
|
|
255
125
|
}, "\xB7"));
|
|
256
126
|
});
|
|
257
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
127
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
258
128
|
theme: colorsTheme.footer
|
|
259
|
-
}, _react["default"].createElement(FooterContainer, {
|
|
129
|
+
}, /*#__PURE__*/_react["default"].createElement(FooterContainer, {
|
|
260
130
|
margin: margin,
|
|
261
131
|
refSize: refSize,
|
|
262
132
|
ref: ref
|
|
263
|
-
}, _react["default"].createElement(FooterHeader, null, _react["default"].createElement(LogoContainer, null, footerLogo), _react["default"].createElement("div", null, socialLink)), isResponsivePhone && _react["default"].createElement("div", null, _react["default"].createElement(FooterFooter, {
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(FooterHeader, null, /*#__PURE__*/_react["default"].createElement(LogoContainer, null, footerLogo), /*#__PURE__*/_react["default"].createElement("div", null, socialLink)), isResponsivePhone && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(FooterFooter, {
|
|
264
134
|
className: "footerFooter",
|
|
265
135
|
refSize: refSize
|
|
266
|
-
}, _react["default"].createElement(BottomLinks, {
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(BottomLinks, {
|
|
267
137
|
refSize: refSize
|
|
268
|
-
}, bottomLink), _react["default"].createElement(Copyright, {
|
|
138
|
+
}, bottomLink), /*#__PURE__*/_react["default"].createElement(Copyright, {
|
|
269
139
|
refSize: refSize
|
|
270
|
-
}, copyright))), (!isResponsiveTablet && !isResponsivePhone || isResponsiveTablet) && _react["default"].createElement("div", null, _react["default"].createElement(ChildComponents, {
|
|
140
|
+
}, copyright))), (!isResponsiveTablet && !isResponsivePhone || isResponsiveTablet) && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(ChildComponents, {
|
|
271
141
|
padding: padding
|
|
272
|
-
}, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
273
143
|
color: colorsTheme.footer.backgroundColor
|
|
274
|
-
}, children)), _react["default"].createElement(FooterFooter, {
|
|
144
|
+
}, children)), /*#__PURE__*/_react["default"].createElement(FooterFooter, {
|
|
275
145
|
className: "footerFooter"
|
|
276
|
-
}, _react["default"].createElement(BottomLinks, {
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(BottomLinks, {
|
|
277
147
|
refSize: refSize
|
|
278
|
-
}, bottomLink), _react["default"].createElement(Copyright, {
|
|
148
|
+
}, bottomLink), /*#__PURE__*/_react["default"].createElement(Copyright, {
|
|
279
149
|
refSize: refSize
|
|
280
150
|
}, copyright)))));
|
|
281
151
|
};
|
|
282
152
|
|
|
283
|
-
var FooterContainer = _styledComponents["default"].footer(_templateObject(), function (props) {
|
|
153
|
+
var FooterContainer = _styledComponents["default"].footer(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n padding: ", ";\n background-color: ", ";\n margin-top: ", ";\n width: 100%;\n box-sizing: border-box;\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"])), function (props) {
|
|
284
154
|
return props.refSize <= _variables.responsiveSizes.mobileLarge ? "20px 20px 20px 20px" : "24px 36px 24px 36px";
|
|
285
155
|
}, function (props) {
|
|
286
156
|
return props.theme.backgroundColor;
|
|
@@ -290,9 +160,9 @@ var FooterContainer = _styledComponents["default"].footer(_templateObject(), fun
|
|
|
290
160
|
return props.theme.height;
|
|
291
161
|
});
|
|
292
162
|
|
|
293
|
-
var FooterHeader = _styledComponents["default"].div(_templateObject2());
|
|
163
|
+
var FooterHeader = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
294
164
|
|
|
295
|
-
var FooterFooter = _styledComponents["default"].div(_templateObject3(), function (props) {
|
|
165
|
+
var FooterFooter = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n flex-direction: ", ";\n align-items: ", ";\n border-top: ", ";\n"])), function (props) {
|
|
296
166
|
return props.refSize <= _variables.responsiveSizes.mobileLarge ? "column" : "row";
|
|
297
167
|
}, function (props) {
|
|
298
168
|
return props.refSize <= _variables.responsiveSizes.mobileLarge ? "center" : "";
|
|
@@ -300,7 +170,7 @@ var FooterFooter = _styledComponents["default"].div(_templateObject3(), function
|
|
|
300
170
|
return "".concat(props.theme.bottomLinksDividerThickness, " ").concat(props.theme.bottomLinksDividerStyle, " ").concat(props.theme.bottomLinksDividerColor);
|
|
301
171
|
});
|
|
302
172
|
|
|
303
|
-
var BottomLinks = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
173
|
+
var BottomLinks = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n padding-top: ", ";\n display: inline-flex;\n flex-wrap: wrap;\n max-width: ", ";\n width: ", ";\n & > span:last-child span {\n display: none;\n }\n margin: ", ";\n"])), function (props) {
|
|
304
174
|
return props.theme.bottomLinksDividerSpacing;
|
|
305
175
|
}, function (props) {
|
|
306
176
|
return props.refSize <= _variables.responsiveSizes.mobileLarge ? "100%" : "60%";
|
|
@@ -310,7 +180,7 @@ var BottomLinks = _styledComponents["default"].div(_templateObject4(), function
|
|
|
310
180
|
return props.refSize <= _variables.responsiveSizes.mobileLarge ? "40px 0 40px 0" : "";
|
|
311
181
|
});
|
|
312
182
|
|
|
313
|
-
var ChildComponents = _styledComponents["default"].div(_templateObject5(), function (props) {
|
|
183
|
+
var ChildComponents = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n min-height: 15px;\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n overflow: hidden;\n"])), function (props) {
|
|
314
184
|
return props.padding && (0, _typeof2["default"])(props.padding) !== "object" ? _variables.spaces[props.padding] : "0px";
|
|
315
185
|
}, function (props) {
|
|
316
186
|
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.top ? _variables.spaces[props.padding.top] : "";
|
|
@@ -322,7 +192,7 @@ var ChildComponents = _styledComponents["default"].div(_templateObject5(), funct
|
|
|
322
192
|
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
|
|
323
193
|
});
|
|
324
194
|
|
|
325
|
-
var Copyright = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
195
|
+
var Copyright = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n max-width: ", ";\n width: ", ";\n text-align: ", ";\n padding-top: ", ";\n"])), function (props) {
|
|
326
196
|
return props.theme.copyrightFontFamily;
|
|
327
197
|
}, function (props) {
|
|
328
198
|
return props.theme.copyrightFontSize;
|
|
@@ -342,23 +212,23 @@ var Copyright = _styledComponents["default"].div(_templateObject6(), function (p
|
|
|
342
212
|
return props.theme.bottomLinksDividerSpacing;
|
|
343
213
|
});
|
|
344
214
|
|
|
345
|
-
var LogoContainer = _styledComponents["default"].div(_templateObject7(), function (props) {
|
|
215
|
+
var LogoContainer = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"])), function (props) {
|
|
346
216
|
return props.theme.logoHeight;
|
|
347
217
|
}, function (props) {
|
|
348
218
|
return props.theme.logoWidth;
|
|
349
219
|
});
|
|
350
220
|
|
|
351
|
-
var LogoImg = _styledComponents["default"].img(_templateObject8(), function (props) {
|
|
221
|
+
var LogoImg = _styledComponents["default"].img(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n width: ", ";\n"])), function (props) {
|
|
352
222
|
return props.theme.logoHeight;
|
|
353
223
|
}, function (props) {
|
|
354
224
|
return props.theme.logoWidth;
|
|
355
225
|
});
|
|
356
226
|
|
|
357
|
-
var SocialAnchor = _styledComponents["default"].a(_templateObject9(), function (props) {
|
|
227
|
+
var SocialAnchor = _styledComponents["default"].a(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n margin-left: ", ";\n }\n"])), function (props) {
|
|
358
228
|
return props.index === 0 ? "0px" : props.theme.socialLinksGutter;
|
|
359
229
|
});
|
|
360
230
|
|
|
361
|
-
var SocialIcon = _styledComponents["default"].img(_templateObject10(), function (props) {
|
|
231
|
+
var SocialIcon = _styledComponents["default"].img(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n fill: ", ";\n }\n"])), function (props) {
|
|
362
232
|
return props.theme.socialLinksSize;
|
|
363
233
|
}, function (props) {
|
|
364
234
|
return props.theme.socialLinksSize;
|
|
@@ -366,7 +236,7 @@ var SocialIcon = _styledComponents["default"].img(_templateObject10(), function
|
|
|
366
236
|
return props.theme.socialLinksColor;
|
|
367
237
|
});
|
|
368
238
|
|
|
369
|
-
var SocialIconContainer = _styledComponents["default"].div(_templateObject11(), function (props) {
|
|
239
|
+
var SocialIconContainer = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n & {\n display: inline-flex;\n height: ", ";\n width: ", ";\n color: ", ";\n }\n\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"])), function (props) {
|
|
370
240
|
return props.theme.socialLinksSize;
|
|
371
241
|
}, function (props) {
|
|
372
242
|
return props.theme.socialLinksSize;
|
|
@@ -374,11 +244,11 @@ var SocialIconContainer = _styledComponents["default"].div(_templateObject11(),
|
|
|
374
244
|
return props.theme.socialLinksColor;
|
|
375
245
|
});
|
|
376
246
|
|
|
377
|
-
var Point = _styledComponents["default"].span(_templateObject12(), function (props) {
|
|
247
|
+
var Point = _styledComponents["default"].span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px 10px;\n color: ", ";\n"])), function (props) {
|
|
378
248
|
return props.theme.bottomLinksFontColor;
|
|
379
249
|
});
|
|
380
250
|
|
|
381
|
-
var BottomLink = _styledComponents["default"].a(_templateObject13(), function (props) {
|
|
251
|
+
var BottomLink = _styledComponents["default"].a(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n text-decoration: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n"])), function (props) {
|
|
382
252
|
return props.theme.bottomLinksTextDecoration;
|
|
383
253
|
}, function (props) {
|
|
384
254
|
return props.theme.bottomLinksFontColor;
|
|
@@ -392,30 +262,5 @@ var BottomLink = _styledComponents["default"].a(_templateObject13(), function (p
|
|
|
392
262
|
return props.theme.bottomLinksFontWeight;
|
|
393
263
|
});
|
|
394
264
|
|
|
395
|
-
DxcFooter.propTypes = {
|
|
396
|
-
socialLinks: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
397
|
-
logo: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].func]),
|
|
398
|
-
logoSrc: _propTypes["default"].string.isRequired,
|
|
399
|
-
href: _propTypes["default"].string
|
|
400
|
-
})),
|
|
401
|
-
bottomLinks: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
402
|
-
text: _propTypes["default"].string.isRequired,
|
|
403
|
-
href: _propTypes["default"].string
|
|
404
|
-
})),
|
|
405
|
-
copyright: _propTypes["default"].string,
|
|
406
|
-
margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
407
|
-
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
408
|
-
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
409
|
-
left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
410
|
-
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
411
|
-
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
412
|
-
padding: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
413
|
-
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
414
|
-
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
415
|
-
left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
416
|
-
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
417
|
-
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
418
|
-
tabIndex: _propTypes["default"].number
|
|
419
|
-
};
|
|
420
265
|
var _default = DxcFooter;
|
|
421
266
|
exports["default"] = _default;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DxcFooter from "./Footer";
|
|
3
|
+
import Title from "../../.storybook/components/Title";
|
|
4
|
+
import ExampleContainer from "../../.storybook/components/ExampleContainer";
|
|
5
|
+
|
|
6
|
+
const social = [
|
|
7
|
+
{
|
|
8
|
+
href: "https://www.linkedin.com/company/dxctechnology",
|
|
9
|
+
logo: (
|
|
10
|
+
<svg version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 438.536 438.536" fill="currentColor">
|
|
11
|
+
<g>
|
|
12
|
+
<path
|
|
13
|
+
d="M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123
|
|
14
|
+
C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126
|
|
15
|
+
h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225
|
|
16
|
+
C438.532,59.576,430.49,40.204,414.41,24.123z M133.618,367.157H67.666V169.016h65.952V367.157z M127.626,132.332
|
|
17
|
+
c-6.851,6.567-15.893,9.851-27.124,9.851h-0.288c-10.848,0-19.648-3.284-26.407-9.851c-6.76-6.567-10.138-14.703-10.138-24.41
|
|
18
|
+
c0-9.897,3.476-18.083,10.421-24.556c6.95-6.471,15.942-9.708,26.98-9.708c11.039,0,19.89,3.237,26.553,9.708
|
|
19
|
+
c6.661,6.473,10.088,14.659,10.277,24.556C137.899,117.625,134.477,125.761,127.626,132.332z M370.873,367.157h-65.952v-105.92
|
|
20
|
+
c0-29.879-11.036-44.823-33.116-44.823c-8.374,0-15.42,2.331-21.128,6.995c-5.715,4.661-9.996,10.324-12.847,16.991
|
|
21
|
+
c-1.335,3.422-1.999,8.75-1.999,15.981v110.775h-65.952c0.571-119.529,0.571-185.579,0-198.142h65.952v27.974
|
|
22
|
+
c13.867-21.681,33.558-32.544,59.101-32.544c22.84,0,41.21,7.52,55.104,22.554c13.895,15.037,20.841,37.214,20.841,66.519v113.64
|
|
23
|
+
H370.873z"
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
href: "https://twitter.com/dxctechnology",
|
|
31
|
+
logo: (
|
|
32
|
+
<svg version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 438.536 438.536" fill="currentColor">
|
|
33
|
+
<g>
|
|
34
|
+
<path
|
|
35
|
+
d="M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123
|
|
36
|
+
C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126
|
|
37
|
+
h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225
|
|
38
|
+
C438.532,59.576,430.49,40.204,414.41,24.123z M335.471,168.735c0.191,1.713,0.288,4.278,0.288,7.71
|
|
39
|
+
c0,15.989-2.334,32.025-6.995,48.104c-4.661,16.087-11.8,31.504-21.416,46.254c-9.606,14.749-21.074,27.791-34.396,39.115
|
|
40
|
+
c-13.325,11.32-29.311,20.365-47.968,27.117c-18.648,6.762-38.637,10.143-59.953,10.143c-33.116,0-63.76-8.952-91.931-26.836
|
|
41
|
+
c4.568,0.568,9.329,0.855,14.275,0.855c27.6,0,52.439-8.565,74.519-25.7c-12.941-0.185-24.506-4.179-34.688-11.991
|
|
42
|
+
c-10.185-7.803-17.273-17.699-21.271-29.691c4.947,0.76,8.658,1.137,11.132,1.137c4.187,0,9.042-0.76,14.56-2.279
|
|
43
|
+
c-13.894-2.669-25.598-9.562-35.115-20.697c-9.519-11.136-14.277-23.84-14.277-38.114v-0.571
|
|
44
|
+
c10.085,4.755,19.602,7.229,28.549,7.422c-17.321-11.613-25.981-28.265-25.981-49.963c0-10.66,2.758-20.747,8.278-30.264
|
|
45
|
+
c15.035,18.464,33.311,33.213,54.816,44.252c21.507,11.038,44.54,17.227,69.092,18.558c-0.95-3.616-1.427-8.186-1.427-13.704
|
|
46
|
+
c0-16.562,5.853-30.692,17.56-42.399c11.703-11.706,25.837-17.561,42.394-17.561c17.515,0,32.079,6.283,43.688,18.846
|
|
47
|
+
c13.134-2.474,25.892-7.33,38.26-14.56c-4.757,14.652-13.613,25.788-26.55,33.402c12.368-1.716,23.88-4.95,34.537-9.708
|
|
48
|
+
C357.458,149.793,347.462,160.166,335.471,168.735z"
|
|
49
|
+
/>
|
|
50
|
+
</g>
|
|
51
|
+
</svg>
|
|
52
|
+
),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
href: "https://www.facebook.com/DXCTechnology/",
|
|
56
|
+
logo: (
|
|
57
|
+
<svg
|
|
58
|
+
version="1.1"
|
|
59
|
+
id="Capa_1"
|
|
60
|
+
x="0px"
|
|
61
|
+
y="0px"
|
|
62
|
+
viewBox="0 0 438.536 438.536"
|
|
63
|
+
fill="currentColor"
|
|
64
|
+
width="1000px"
|
|
65
|
+
height="500px"
|
|
66
|
+
>
|
|
67
|
+
<g>
|
|
68
|
+
<path
|
|
69
|
+
d="M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123
|
|
70
|
+
C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126
|
|
71
|
+
h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225
|
|
72
|
+
C438.532,59.576,430.49,40.204,414.41,24.123z M373.155,225.548h-49.963V406.84h-74.802V225.548H210.99V163.02h37.401v-37.402
|
|
73
|
+
c0-26.838,6.283-47.107,18.843-60.813c12.559-13.706,33.304-20.555,62.242-20.555h49.963v62.526h-31.401
|
|
74
|
+
c-10.663,0-17.467,1.853-20.417,5.568c-2.949,3.711-4.428,10.23-4.428,19.558v31.119h56.534L373.155,225.548z"
|
|
75
|
+
/>
|
|
76
|
+
</g>
|
|
77
|
+
</svg>
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
const bottom = [
|
|
83
|
+
{
|
|
84
|
+
href: "https://www.linkedin.com/company/dxctechnology",
|
|
85
|
+
text: "Linkedin",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
href: "https://twitter.com/dxctechnology",
|
|
89
|
+
text: "Twitter",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
href: "https://www.facebook.com/DXCTechnology/",
|
|
93
|
+
text: "Facebook",
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
export default {
|
|
98
|
+
title: "Footer",
|
|
99
|
+
component: DxcFooter,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const Chromatic = () => (
|
|
103
|
+
<>
|
|
104
|
+
<ExampleContainer>
|
|
105
|
+
<Title title="Default" theme="light" level={4} />
|
|
106
|
+
<DxcFooter />
|
|
107
|
+
</ExampleContainer>
|
|
108
|
+
<ExampleContainer>
|
|
109
|
+
<Title title="With children, copyright, bottom links and social links" theme="light" level={4} />
|
|
110
|
+
<DxcFooter copyright="Copyright" socialLinks={social} bottomLinks={bottom}>
|
|
111
|
+
<div>
|
|
112
|
+
<a href="https://www.linkedin.com/company/dxctechnology">Linkedin</a>
|
|
113
|
+
</div>
|
|
114
|
+
</DxcFooter>
|
|
115
|
+
</ExampleContainer>
|
|
116
|
+
<Title title="Margins" theme="light" level={2} />
|
|
117
|
+
<ExampleContainer>
|
|
118
|
+
<Title title="Xxsmall margin" theme="light" level={4} />
|
|
119
|
+
<DxcFooter margin="xxsmall"></DxcFooter>
|
|
120
|
+
<Title title="Xsmall margin" theme="light" level={4} />
|
|
121
|
+
<DxcFooter margin="xsmall"></DxcFooter>
|
|
122
|
+
<Title title="Small margin" theme="light" level={4} />
|
|
123
|
+
<DxcFooter margin="small"></DxcFooter>
|
|
124
|
+
<Title title="Medium margin" theme="light" level={4} />
|
|
125
|
+
<DxcFooter margin="medium"></DxcFooter>
|
|
126
|
+
<Title title="Large margin" theme="light" level={4} />
|
|
127
|
+
<DxcFooter margin="large"></DxcFooter>
|
|
128
|
+
<Title title="Xlarge margin" theme="light" level={4} />
|
|
129
|
+
<DxcFooter margin="xlarge"></DxcFooter>
|
|
130
|
+
<Title title="Xxlarge margin" theme="light" level={4} />
|
|
131
|
+
<DxcFooter margin="xxlarge"></DxcFooter>
|
|
132
|
+
</ExampleContainer>
|
|
133
|
+
<Title title="Padding" theme="light" level={2} />
|
|
134
|
+
<ExampleContainer>
|
|
135
|
+
<Title title="Xxsmall padding" theme="light" level={4} />
|
|
136
|
+
<DxcFooter padding="xxsmall"></DxcFooter>
|
|
137
|
+
<Title title="Xsmall padding" theme="light" level={4} />
|
|
138
|
+
<DxcFooter padding="xsmall"></DxcFooter>
|
|
139
|
+
<Title title="Small padding" theme="light" level={4} />
|
|
140
|
+
<DxcFooter padding="small"></DxcFooter>
|
|
141
|
+
<Title title="Medium padding" theme="light" level={4} />
|
|
142
|
+
<DxcFooter padding="medium"></DxcFooter>
|
|
143
|
+
<Title title="Large padding" theme="light" level={4} />
|
|
144
|
+
<DxcFooter padding="large"></DxcFooter>
|
|
145
|
+
<Title title="Xlarge padding" theme="light" level={4} />
|
|
146
|
+
<DxcFooter padding="xlarge"></DxcFooter>
|
|
147
|
+
<Title title="Xxlarge padding" theme="light" level={4} />
|
|
148
|
+
<DxcFooter padding="xxlarge"></DxcFooter>
|
|
149
|
+
</ExampleContainer>
|
|
150
|
+
</>
|
|
151
|
+
);
|