@dxc-technology/halstack-react 0.0.0-51a5c42 → 0.0.0-51b0da8
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/README.md +27 -47
- package/dist/index.d.mts +6520 -0
- package/dist/index.d.ts +6520 -0
- package/dist/index.js +14559 -0
- package/dist/index.mjs +14471 -0
- package/package.json +83 -68
- package/babel.config.js +0 -8
- package/dist/BackgroundColorContext.js +0 -46
- package/dist/ThemeContext.js +0 -248
- package/dist/V3Textarea/V3Textarea.js +0 -264
- package/dist/accordion/Accordion.js +0 -353
- package/dist/accordion-group/AccordionGroup.js +0 -186
- package/dist/alert/Alert.js +0 -403
- package/dist/alert/index.d.ts +0 -51
- package/dist/badge/Badge.js +0 -63
- package/dist/box/Box.js +0 -156
- package/dist/button/Button.js +0 -238
- package/dist/card/Card.js +0 -254
- package/dist/checkbox/Checkbox.js +0 -300
- package/dist/checkbox/Checkbox.stories.js +0 -144
- package/dist/checkbox/readme.md +0 -116
- package/dist/chip/Chip.js +0 -265
- package/dist/common/OpenSans.css +0 -81
- package/dist/common/RequiredComponent.js +0 -40
- package/dist/common/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/common/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/dist/common/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/dist/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/dist/common/fonts/OpenSans-Italic.ttf +0 -0
- package/dist/common/fonts/OpenSans-Light.ttf +0 -0
- package/dist/common/fonts/OpenSans-LightItalic.ttf +0 -0
- package/dist/common/fonts/OpenSans-Regular.ttf +0 -0
- package/dist/common/fonts/OpenSans-SemiBold.ttf +0 -0
- package/dist/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/dist/common/utils.js +0 -22
- package/dist/common/variables.js +0 -1569
- package/dist/date/Date.js +0 -379
- package/dist/date/Date.stories.js +0 -205
- package/dist/date/readme.md +0 -73
- package/dist/date-input/DateInput.js +0 -400
- package/dist/date-input/index.d.ts +0 -95
- package/dist/dialog/Dialog.js +0 -218
- package/dist/dropdown/Dropdown.js +0 -544
- package/dist/file-input/FileInput.js +0 -644
- package/dist/file-input/FileItem.js +0 -280
- package/dist/file-input/index.d.ts +0 -81
- package/dist/footer/Footer.js +0 -395
- package/dist/footer/dxc_logo.svg +0 -15
- package/dist/footer/readme.md +0 -41
- package/dist/header/Header.js +0 -434
- package/dist/header/Icons.js +0 -59
- package/dist/heading/Heading.js +0 -218
- package/dist/input-text/InputText.js +0 -707
- package/dist/input-text/error.svg +0 -1
- package/dist/input-text/readme.md +0 -91
- package/dist/layout/ApplicationLayout.js +0 -331
- package/dist/layout/facebook.svg +0 -45
- package/dist/layout/linkedin.svg +0 -50
- package/dist/layout/twitter.svg +0 -53
- package/dist/link/Link.js +0 -237
- package/dist/link/readme.md +0 -51
- package/dist/main.d.ts +0 -8
- package/dist/main.js +0 -367
- 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/NumberInputContext.js +0 -16
- package/dist/number-input/index.d.ts +0 -113
- package/dist/paginator/Paginator.js +0 -289
- package/dist/paginator/images/next.svg +0 -3
- package/dist/paginator/images/nextPage.svg +0 -3
- package/dist/paginator/images/previous.svg +0 -3
- package/dist/paginator/images/previousPage.svg +0 -3
- package/dist/paginator/readme.md +0 -50
- package/dist/password-input/PasswordInput.js +0 -198
- package/dist/password-input/index.d.ts +0 -94
- package/dist/progress-bar/ProgressBar.js +0 -242
- package/dist/progress-bar/ProgressBar.stories.js +0 -280
- package/dist/progress-bar/readme.md +0 -63
- package/dist/radio/Radio.js +0 -209
- package/dist/radio/Radio.stories.js +0 -166
- package/dist/radio/readme.md +0 -70
- package/dist/resultsetTable/ResultsetTable.js +0 -358
- package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
- package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
- package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
- package/dist/select/Select.js +0 -549
- package/dist/sidenav/Sidenav.js +0 -179
- package/dist/slider/Slider.js +0 -394
- 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.js +0 -222
- package/dist/switch/Switch.stories.js +0 -134
- package/dist/switch/readme.md +0 -133
- package/dist/table/Table.js +0 -132
- 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/text-input/TextInput.js +0 -971
- package/dist/text-input/index.d.ts +0 -135
- package/dist/textarea/Textarea.js +0 -369
- package/dist/textarea/index.d.ts +0 -117
- package/dist/toggle/Toggle.js +0 -220
- package/dist/toggle/Toggle.stories.js +0 -297
- package/dist/toggle/readme.md +0 -80
- package/dist/toggle-group/ToggleGroup.js +0 -327
- package/dist/upload/Upload.js +0 -205
- package/dist/upload/Upload.stories.js +0 -72
- package/dist/upload/buttons-upload/ButtonsUpload.js +0 -139
- package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
- package/dist/upload/buttons-upload/upload-button.svg +0 -1
- 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 -184
- package/dist/upload/file-upload/audio-icon.svg +0 -4
- package/dist/upload/file-upload/close.svg +0 -4
- package/dist/upload/file-upload/file-icon.svg +0 -4
- package/dist/upload/file-upload/video-icon.svg +0 -4
- package/dist/upload/files-upload/FilesToUpload.js +0 -123
- package/dist/upload/readme.md +0 -37
- package/dist/upload/transaction/Transaction.js +0 -175
- package/dist/upload/transaction/audio-icon-err.svg +0 -4
- package/dist/upload/transaction/audio-icon.svg +0 -4
- package/dist/upload/transaction/error-icon.svg +0 -4
- package/dist/upload/transaction/file-icon-err.svg +0 -4
- package/dist/upload/transaction/file-icon.svg +0 -4
- package/dist/upload/transaction/image-icon-err.svg +0 -4
- package/dist/upload/transaction/image-icon.svg +0 -4
- package/dist/upload/transaction/success-icon.svg +0 -4
- package/dist/upload/transaction/video-icon-err.svg +0 -4
- package/dist/upload/transaction/video-icon.svg +0 -4
- package/dist/upload/transactions/Transactions.js +0 -138
- package/dist/useTheme.js +0 -22
- package/dist/wizard/Wizard.js +0 -411
- package/dist/wizard/invalid_icon.svg +0 -5
- package/dist/wizard/valid_icon.svg +0 -5
- package/dist/wizard/validation-wrong.svg +0 -6
- 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 -99
- 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 -82
- 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
package/dist/link/Link.js
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
-
|
|
14
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
15
|
-
|
|
16
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireDefault(require("react"));
|
|
19
|
-
|
|
20
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
21
|
-
|
|
22
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
|
-
|
|
24
|
-
var _variables = require("../common/variables.js");
|
|
25
|
-
|
|
26
|
-
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
27
|
-
|
|
28
|
-
function _templateObject6() {
|
|
29
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", ";\n overflow: hidden;\n \n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
|
|
30
|
-
|
|
31
|
-
_templateObject6 = function _templateObject6() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _templateObject5() {
|
|
39
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", ";\n"]);
|
|
40
|
-
|
|
41
|
-
_templateObject5 = function _templateObject5() {
|
|
42
|
-
return data;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _templateObject4() {
|
|
49
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-weight: ", ";\n font-style: ", ";\n font-family: ", ";\n display: inline-flex;\n flex-direction: ", ";\n justify-content: ", ";\n align-items: center;\n max-width: 100%;\n"]);
|
|
50
|
-
|
|
51
|
-
_templateObject4 = function _templateObject4() {
|
|
52
|
-
return data;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
return data;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function _templateObject3() {
|
|
59
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font-family: inherit;\n text-decoration-color: transparent;\n\n ", "\n ", "\n color: ", ";\n ", "\n\n &:hover {\n ", "\n }\n &:focus {\n outline-color: ", ";\n outline-width: 2px;\n outline-offset: 1px;\n ", "\n }\n &:active {\n ", "\n }\n"]);
|
|
60
|
-
|
|
61
|
-
_templateObject3 = function _templateObject3() {
|
|
62
|
-
return data;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function _templateObject2() {
|
|
69
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n ", "\n\n text-decoration-color: transparent;\n ", "\n\n &:visited {\n color: ", ";\n &:hover {\n ", "\n }\n }\n &:hover {\n ", "\n }\n &:focus {\n outline-color: ", ";\n outline-width: 2px;\n ", "\n }\n &:active {\n ", "\n }\n"]);
|
|
70
|
-
|
|
71
|
-
_templateObject2 = function _templateObject2() {
|
|
72
|
-
return data;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return data;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function _templateObject() {
|
|
79
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
|
|
80
|
-
|
|
81
|
-
_templateObject = function _templateObject() {
|
|
82
|
-
return data;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return data;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
var DxcLink = function DxcLink(_ref) {
|
|
89
|
-
var _ref$inheritColor = _ref.inheritColor,
|
|
90
|
-
inheritColor = _ref$inheritColor === void 0 ? false : _ref$inheritColor,
|
|
91
|
-
_ref$disabled = _ref.disabled,
|
|
92
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
93
|
-
iconSrc = _ref.iconSrc,
|
|
94
|
-
icon = _ref.icon,
|
|
95
|
-
_ref$iconPosition = _ref.iconPosition,
|
|
96
|
-
iconPosition = _ref$iconPosition === void 0 ? "before" : _ref$iconPosition,
|
|
97
|
-
_ref$href = _ref.href,
|
|
98
|
-
href = _ref$href === void 0 ? "" : _ref$href,
|
|
99
|
-
_ref$newWindow = _ref.newWindow,
|
|
100
|
-
newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
|
|
101
|
-
onClick = _ref.onClick,
|
|
102
|
-
_ref$text = _ref.text,
|
|
103
|
-
text = _ref$text === void 0 ? "" : _ref$text,
|
|
104
|
-
margin = _ref.margin,
|
|
105
|
-
_ref$tabIndex = _ref.tabIndex,
|
|
106
|
-
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
107
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
108
|
-
|
|
109
|
-
var linkContent = _react["default"].createElement(LinkText, {
|
|
110
|
-
iconPosition: iconPosition
|
|
111
|
-
}, text, icon ? _react["default"].createElement(LinkIconContainer, {
|
|
112
|
-
iconPosition: iconPosition
|
|
113
|
-
}, (0, _typeof2["default"])(icon) === "object" ? icon : _react["default"].createElement(icon)) : iconSrc && _react["default"].createElement(LinkIcon, {
|
|
114
|
-
src: iconSrc,
|
|
115
|
-
iconPosition: iconPosition
|
|
116
|
-
}));
|
|
117
|
-
|
|
118
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
119
|
-
theme: colorsTheme.link
|
|
120
|
-
}, _react["default"].createElement(DxcLinkContainer, {
|
|
121
|
-
margin: margin
|
|
122
|
-
}, onClick ? _react["default"].createElement(StyledButton, {
|
|
123
|
-
type: "button",
|
|
124
|
-
onClick: !disabled && onClick,
|
|
125
|
-
margin: margin,
|
|
126
|
-
disabled: disabled,
|
|
127
|
-
inheritColor: inheritColor
|
|
128
|
-
}, linkContent) : _react["default"].createElement(StyledLink, {
|
|
129
|
-
tabIndex: tabIndex,
|
|
130
|
-
href: !disabled && href,
|
|
131
|
-
target: newWindow ? "_blank" : "_self",
|
|
132
|
-
margin: margin,
|
|
133
|
-
disabled: disabled,
|
|
134
|
-
inheritColor: inheritColor
|
|
135
|
-
}, linkContent)));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
var DxcLinkContainer = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
139
|
-
return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
|
|
140
|
-
}, function (props) {
|
|
141
|
-
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
|
|
142
|
-
}, function (props) {
|
|
143
|
-
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.right ? _variables.spaces[props.margin.right] : "";
|
|
144
|
-
}, function (props) {
|
|
145
|
-
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
|
|
146
|
-
}, function (props) {
|
|
147
|
-
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
var StyledLink = _styledComponents["default"].a(_templateObject2(), function (props) {
|
|
151
|
-
return props.inheritColor ? "inherit" : !props.disabled ? props.theme.fontColor : props.theme.disabledColor;
|
|
152
|
-
}, function (props) {
|
|
153
|
-
return props.disabled ? "pointer-events: none;" : "";
|
|
154
|
-
}, function (props) {
|
|
155
|
-
return "padding-bottom: ".concat(props.theme.underlineSpacing, ";\n border-bottom: ").concat(props.theme.underlineThickness, " ").concat(props.theme.underlineStyle, " transparent;");
|
|
156
|
-
}, function (props) {
|
|
157
|
-
return !props.inheritColor ? props.theme.visitedFontColor : "";
|
|
158
|
-
}, function (props) {
|
|
159
|
-
return "color: ".concat(props.theme.visitedFontColor, ";\n border-bottom-color: ").concat(props.theme.visitedUnderlineColor, ";");
|
|
160
|
-
}, function (props) {
|
|
161
|
-
return "color: ".concat(props.theme.hoverFontColor, ";\n border-bottom-color: ").concat(props.theme.hoverUnderlineColor, ";\n cursor: pointer;");
|
|
162
|
-
}, function (props) {
|
|
163
|
-
return props.theme.focusColor;
|
|
164
|
-
}, function (props) {
|
|
165
|
-
return props.disabled && "outline: none";
|
|
166
|
-
}, function (props) {
|
|
167
|
-
return "color: ".concat(props.theme.activeFontColor, " !important;\n border-bottom-color: ").concat(props.theme.activeUnderlineColor, " !important;");
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
var StyledButton = _styledComponents["default"].button(_templateObject3(), function (props) {
|
|
171
|
-
return "padding-bottom: ".concat(props.theme.underlineSpacing, ";\n border-bottom: ").concat(props.theme.underlineThickness, " ").concat(props.theme.underlineStyle, " transparent;");
|
|
172
|
-
}, function (props) {
|
|
173
|
-
return props.disabled && "cursor: default;";
|
|
174
|
-
}, function (props) {
|
|
175
|
-
return props.inheritColor ? "inherit" : !props.disabled ? props.theme.fontColor : props.theme.disabledColor;
|
|
176
|
-
}, function (props) {
|
|
177
|
-
return props.disabled ? "pointer-events: none;" : "";
|
|
178
|
-
}, function (props) {
|
|
179
|
-
return "color: ".concat(props.theme.hoverFontColor, ";\n border-bottom-color: ").concat(props.theme.hoverUnderlineColor, ";\n cursor: pointer;");
|
|
180
|
-
}, function (props) {
|
|
181
|
-
return props.theme.focusColor;
|
|
182
|
-
}, function (props) {
|
|
183
|
-
return props.disabled && "outline: none";
|
|
184
|
-
}, function (props) {
|
|
185
|
-
return "color: ".concat(props.theme.activeFontColor, " !important;\n border-bottom-color: ").concat(props.theme.activeUnderlineColor, " !important;");
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
var LinkText = _styledComponents["default"].div(_templateObject4(), function (props) {
|
|
189
|
-
return props.theme.fontSize;
|
|
190
|
-
}, function (props) {
|
|
191
|
-
return props.theme.fontWeight;
|
|
192
|
-
}, function (props) {
|
|
193
|
-
return props.theme.fontStyle;
|
|
194
|
-
}, function (props) {
|
|
195
|
-
return props.theme.fontFamily;
|
|
196
|
-
}, function (props) {
|
|
197
|
-
return props.iconPosition === "after" ? "row" : "row-reverse";
|
|
198
|
-
}, function (props) {
|
|
199
|
-
return props.iconPosition === "after" ? "flex-start" : "flex-end";
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
var LinkIcon = _styledComponents["default"].img(_templateObject5(), function (props) {
|
|
203
|
-
return props.theme.iconSize;
|
|
204
|
-
}, function (props) {
|
|
205
|
-
return props.theme.iconSize;
|
|
206
|
-
}, function (props) {
|
|
207
|
-
return "".concat(props.iconPosition === "before" ? "margin-right" : "margin-left", ": ").concat(props.theme.iconSpacing);
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
var LinkIconContainer = _styledComponents["default"].div(_templateObject6(), function (props) {
|
|
211
|
-
return props.theme.iconSize;
|
|
212
|
-
}, function (props) {
|
|
213
|
-
return props.theme.iconSize;
|
|
214
|
-
}, function (props) {
|
|
215
|
-
return "".concat(props.iconPosition === "before" ? "margin-right" : "margin-left", ": ").concat(props.theme.iconSpacing);
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
DxcLink.propTypes = {
|
|
219
|
-
inheritColor: _propTypes["default"].bool,
|
|
220
|
-
disabled: _propTypes["default"].bool,
|
|
221
|
-
icon: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].func]),
|
|
222
|
-
iconSrc: _propTypes["default"].string,
|
|
223
|
-
iconPosition: _propTypes["default"].oneOf(["after", "before"]),
|
|
224
|
-
href: _propTypes["default"].string,
|
|
225
|
-
onClick: _propTypes["default"].func,
|
|
226
|
-
margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
227
|
-
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
228
|
-
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
229
|
-
left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
230
|
-
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
231
|
-
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
232
|
-
newWindow: _propTypes["default"].bool,
|
|
233
|
-
text: _propTypes["default"].string,
|
|
234
|
-
tabIndex: _propTypes["default"].number
|
|
235
|
-
};
|
|
236
|
-
var _default = DxcLink;
|
|
237
|
-
exports["default"] = _default;
|
package/dist/link/readme.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# DXC Input Text Component
|
|
2
|
-
|
|
3
|
-
## Props
|
|
4
|
-
|
|
5
|
-
<table>
|
|
6
|
-
<tr style="background-color: grey">
|
|
7
|
-
<td>Name</td>
|
|
8
|
-
<td>Default</td>
|
|
9
|
-
<td>Description</td>
|
|
10
|
-
</tr>
|
|
11
|
-
<tr>
|
|
12
|
-
<td>underlined: 'boolean'</td>
|
|
13
|
-
<td><code>false</code></td>
|
|
14
|
-
<td>If true, the text is underlined.</td>
|
|
15
|
-
</tr>
|
|
16
|
-
<tr>
|
|
17
|
-
<td>color: boolean</td>
|
|
18
|
-
<td><code>false</code></td>
|
|
19
|
-
<td>If true, the link have the default colors.</td>
|
|
20
|
-
</tr>
|
|
21
|
-
<tr>
|
|
22
|
-
<td>text: string</td>
|
|
23
|
-
<td></td>
|
|
24
|
-
<td>Link text.</td>
|
|
25
|
-
</tr>
|
|
26
|
-
<tr>
|
|
27
|
-
<td>iconSrc: string</td>
|
|
28
|
-
<td></td>
|
|
29
|
-
<td>Source of the icon.</td>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr>
|
|
32
|
-
<td>iconPosition: 'before' | 'after'</td>
|
|
33
|
-
<td><code>before</code></td>
|
|
34
|
-
<td>Indicates the position of the icon in the component.</td>
|
|
35
|
-
</tr>
|
|
36
|
-
<tr>
|
|
37
|
-
<td>href: string</td>
|
|
38
|
-
<td></td>
|
|
39
|
-
<td>Page to be opened when the user clicks on the link.</td>
|
|
40
|
-
</tr>
|
|
41
|
-
<tr>
|
|
42
|
-
<td>theme: 'light' | 'dark'</td>
|
|
43
|
-
<td><code>light</code></td>
|
|
44
|
-
<td>Theme of the component.</td>
|
|
45
|
-
</tr>
|
|
46
|
-
<tr>
|
|
47
|
-
<td>newWindow: boolean</td>
|
|
48
|
-
<td><code>false</code></td>
|
|
49
|
-
<td>If true, the page is opened in a new browser tab.</td>
|
|
50
|
-
</tr>
|
|
51
|
-
</table>
|
package/dist/main.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as DxcAlert } from "./alert/index";
|
|
2
|
-
export { default as DxcNewSelect } from "./new-select/index";
|
|
3
|
-
export { default as DxcTextInput } from "./text-input/index";
|
|
4
|
-
export { default as DxcDateInput } from "./date-input/index";
|
|
5
|
-
export { default as DxcTextarea } from "./textarea/index";
|
|
6
|
-
export { default as DxcNumberInput } from "./number-input/index";
|
|
7
|
-
export { default as DxcPasswordInput } from "./password-input/index";
|
|
8
|
-
export { default as DxcFileInput } from "./file-input/index";
|
package/dist/main.js
DELETED
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
Object.defineProperty(exports, "DxcAlert", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _Alert["default"];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "DxcAccordion", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _Accordion["default"];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "DxcButton", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _Button["default"];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "DxcCard", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function get() {
|
|
31
|
-
return _Card["default"];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "DxcCheckbox", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function get() {
|
|
37
|
-
return _Checkbox["default"];
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "V3DxcDate", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function get() {
|
|
43
|
-
return _Date["default"];
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "DxcDialog", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function get() {
|
|
49
|
-
return _Dialog["default"];
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "DxcDropdown", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function get() {
|
|
55
|
-
return _Dropdown["default"];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "DxcFooter", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function get() {
|
|
61
|
-
return _Footer["default"];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "DxcHeader", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function get() {
|
|
67
|
-
return _Header["default"];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "V3DxcInputText", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function get() {
|
|
73
|
-
return _InputText["default"];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "DxcRadio", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _Radio["default"];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "DxcSelect", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function get() {
|
|
85
|
-
return _Select["default"];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, "DxcSlider", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function get() {
|
|
91
|
-
return _Slider["default"];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, "DxcSwitch", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function get() {
|
|
97
|
-
return _Switch["default"];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, "DxcTabs", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function get() {
|
|
103
|
-
return _Tabs["default"];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, "DxcTabsForSections", {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function get() {
|
|
109
|
-
return _TabsForSections["default"];
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, "DxcProgressBar", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function get() {
|
|
115
|
-
return _ProgressBar["default"];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, "DxcSpinner", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function get() {
|
|
121
|
-
return _Spinner["default"];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "V3DxcUpload", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function get() {
|
|
127
|
-
return _Upload["default"];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(exports, "DxcTable", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function get() {
|
|
133
|
-
return _Table["default"];
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "DxcBox", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function get() {
|
|
139
|
-
return _Box["default"];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(exports, "DxcTag", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function get() {
|
|
145
|
-
return _Tag["default"];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(exports, "DxcPaginator", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function get() {
|
|
151
|
-
return _Paginator["default"];
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(exports, "DxcSidenav", {
|
|
155
|
-
enumerable: true,
|
|
156
|
-
get: function get() {
|
|
157
|
-
return _Sidenav["default"];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "DxcWizard", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function get() {
|
|
163
|
-
return _Wizard["default"];
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(exports, "DxcLink", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
get: function get() {
|
|
169
|
-
return _Link["default"];
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(exports, "DxcHeading", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function get() {
|
|
175
|
-
return _Heading["default"];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(exports, "V3DxcTextarea", {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
get: function get() {
|
|
181
|
-
return _V3Textarea["default"];
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(exports, "DxcResultsetTable", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function get() {
|
|
187
|
-
return _ResultsetTable["default"];
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(exports, "DxcChip", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
get: function get() {
|
|
193
|
-
return _Chip["default"];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(exports, "DxcApplicationLayout", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function get() {
|
|
199
|
-
return _ApplicationLayout["default"];
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
Object.defineProperty(exports, "DxcToggleGroup", {
|
|
203
|
-
enumerable: true,
|
|
204
|
-
get: function get() {
|
|
205
|
-
return _ToggleGroup["default"];
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(exports, "DxcAccordionGroup", {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function get() {
|
|
211
|
-
return _AccordionGroup["default"];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
Object.defineProperty(exports, "DxcBadge", {
|
|
215
|
-
enumerable: true,
|
|
216
|
-
get: function get() {
|
|
217
|
-
return _Badge["default"];
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
Object.defineProperty(exports, "DxcTextInput", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function get() {
|
|
223
|
-
return _TextInput["default"];
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
Object.defineProperty(exports, "DxcPasswordInput", {
|
|
227
|
-
enumerable: true,
|
|
228
|
-
get: function get() {
|
|
229
|
-
return _PasswordInput["default"];
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(exports, "DxcDateInput", {
|
|
233
|
-
enumerable: true,
|
|
234
|
-
get: function get() {
|
|
235
|
-
return _DateInput["default"];
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
Object.defineProperty(exports, "DxcNumberInput", {
|
|
239
|
-
enumerable: true,
|
|
240
|
-
get: function get() {
|
|
241
|
-
return _NumberInput["default"];
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(exports, "DxcTextarea", {
|
|
245
|
-
enumerable: true,
|
|
246
|
-
get: function get() {
|
|
247
|
-
return _Textarea["default"];
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
Object.defineProperty(exports, "DxcNewSelect", {
|
|
251
|
-
enumerable: true,
|
|
252
|
-
get: function get() {
|
|
253
|
-
return _NewSelect["default"];
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
Object.defineProperty(exports, "DxcFileInput", {
|
|
257
|
-
enumerable: true,
|
|
258
|
-
get: function get() {
|
|
259
|
-
return _FileInput["default"];
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
Object.defineProperty(exports, "ThemeContext", {
|
|
263
|
-
enumerable: true,
|
|
264
|
-
get: function get() {
|
|
265
|
-
return _ThemeContext["default"];
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
Object.defineProperty(exports, "ThemeProvider", {
|
|
269
|
-
enumerable: true,
|
|
270
|
-
get: function get() {
|
|
271
|
-
return _ThemeContext.ThemeProvider;
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
Object.defineProperty(exports, "BackgroundColorProvider", {
|
|
275
|
-
enumerable: true,
|
|
276
|
-
get: function get() {
|
|
277
|
-
return _BackgroundColorContext.BackgroundColorProvider;
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
|
|
281
|
-
var _Alert = _interopRequireDefault(require("./alert/Alert"));
|
|
282
|
-
|
|
283
|
-
var _Accordion = _interopRequireDefault(require("./accordion/Accordion"));
|
|
284
|
-
|
|
285
|
-
var _Button = _interopRequireDefault(require("./button/Button"));
|
|
286
|
-
|
|
287
|
-
var _Card = _interopRequireDefault(require("./card/Card"));
|
|
288
|
-
|
|
289
|
-
var _Checkbox = _interopRequireDefault(require("./checkbox/Checkbox"));
|
|
290
|
-
|
|
291
|
-
var _Date = _interopRequireDefault(require("./date/Date"));
|
|
292
|
-
|
|
293
|
-
var _Dialog = _interopRequireDefault(require("./dialog/Dialog"));
|
|
294
|
-
|
|
295
|
-
var _Dropdown = _interopRequireDefault(require("./dropdown/Dropdown"));
|
|
296
|
-
|
|
297
|
-
var _Footer = _interopRequireDefault(require("./footer/Footer"));
|
|
298
|
-
|
|
299
|
-
var _Header = _interopRequireDefault(require("./header/Header"));
|
|
300
|
-
|
|
301
|
-
var _InputText = _interopRequireDefault(require("./input-text/InputText"));
|
|
302
|
-
|
|
303
|
-
var _Radio = _interopRequireDefault(require("./radio/Radio"));
|
|
304
|
-
|
|
305
|
-
var _Select = _interopRequireDefault(require("./select/Select"));
|
|
306
|
-
|
|
307
|
-
var _Slider = _interopRequireDefault(require("./slider/Slider"));
|
|
308
|
-
|
|
309
|
-
var _Switch = _interopRequireDefault(require("./switch/Switch"));
|
|
310
|
-
|
|
311
|
-
var _Tabs = _interopRequireDefault(require("./tabs/Tabs"));
|
|
312
|
-
|
|
313
|
-
var _TabsForSections = _interopRequireDefault(require("./tabs-for-sections/TabsForSections"));
|
|
314
|
-
|
|
315
|
-
var _ProgressBar = _interopRequireDefault(require("./progress-bar/ProgressBar"));
|
|
316
|
-
|
|
317
|
-
var _Spinner = _interopRequireDefault(require("./spinner/Spinner"));
|
|
318
|
-
|
|
319
|
-
var _Upload = _interopRequireDefault(require("./upload/Upload"));
|
|
320
|
-
|
|
321
|
-
var _Table = _interopRequireDefault(require("./table/Table"));
|
|
322
|
-
|
|
323
|
-
var _Box = _interopRequireDefault(require("./box/Box"));
|
|
324
|
-
|
|
325
|
-
var _Tag = _interopRequireDefault(require("./tag/Tag"));
|
|
326
|
-
|
|
327
|
-
var _Paginator = _interopRequireDefault(require("./paginator/Paginator"));
|
|
328
|
-
|
|
329
|
-
var _Sidenav = _interopRequireDefault(require("./sidenav/Sidenav"));
|
|
330
|
-
|
|
331
|
-
var _Wizard = _interopRequireDefault(require("./wizard/Wizard"));
|
|
332
|
-
|
|
333
|
-
var _Link = _interopRequireDefault(require("./link/Link"));
|
|
334
|
-
|
|
335
|
-
var _Heading = _interopRequireDefault(require("./heading/Heading"));
|
|
336
|
-
|
|
337
|
-
var _V3Textarea = _interopRequireDefault(require("./V3Textarea/V3Textarea"));
|
|
338
|
-
|
|
339
|
-
var _ResultsetTable = _interopRequireDefault(require("./resultsetTable/ResultsetTable"));
|
|
340
|
-
|
|
341
|
-
var _Chip = _interopRequireDefault(require("./chip/Chip"));
|
|
342
|
-
|
|
343
|
-
var _ApplicationLayout = _interopRequireDefault(require("./layout/ApplicationLayout"));
|
|
344
|
-
|
|
345
|
-
var _ToggleGroup = _interopRequireDefault(require("./toggle-group/ToggleGroup"));
|
|
346
|
-
|
|
347
|
-
var _AccordionGroup = _interopRequireDefault(require("./accordion-group/AccordionGroup"));
|
|
348
|
-
|
|
349
|
-
var _Badge = _interopRequireDefault(require("./badge/Badge"));
|
|
350
|
-
|
|
351
|
-
var _TextInput = _interopRequireDefault(require("./text-input/TextInput"));
|
|
352
|
-
|
|
353
|
-
var _PasswordInput = _interopRequireDefault(require("./password-input/PasswordInput"));
|
|
354
|
-
|
|
355
|
-
var _DateInput = _interopRequireDefault(require("./date-input/DateInput"));
|
|
356
|
-
|
|
357
|
-
var _NumberInput = _interopRequireDefault(require("./number-input/NumberInput"));
|
|
358
|
-
|
|
359
|
-
var _Textarea = _interopRequireDefault(require("./textarea/Textarea"));
|
|
360
|
-
|
|
361
|
-
var _NewSelect = _interopRequireDefault(require("./new-select/NewSelect"));
|
|
362
|
-
|
|
363
|
-
var _FileInput = _interopRequireDefault(require("./file-input/FileInput"));
|
|
364
|
-
|
|
365
|
-
var _ThemeContext = _interopRequireWildcard(require("./ThemeContext.js"));
|
|
366
|
-
|
|
367
|
-
var _BackgroundColorContext = require("./BackgroundColorContext.js");
|