@dxc-technology/halstack-react 0.0.0-6e92c02 → 0.0.0-6f13c26
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 +66 -0
- package/babel.config.js +6 -2
- package/dist/BackgroundColorContext.js +46 -0
- package/dist/ThemeContext.js +235 -2
- package/dist/V3Textarea/V3Textarea.js +264 -0
- package/dist/accordion/Accordion.js +170 -81
- package/dist/accordion-group/AccordionGroup.js +186 -0
- package/dist/alert/Alert.js +184 -83
- package/dist/alert/index.d.ts +51 -0
- package/dist/badge/Badge.js +63 -0
- package/dist/box/Box.js +39 -19
- package/dist/button/Button.js +91 -40
- package/dist/card/Card.js +64 -56
- package/dist/checkbox/Checkbox.js +118 -39
- package/dist/checkbox/readme.md +2 -2
- package/dist/chip/Chip.js +265 -0
- package/dist/common/RequiredComponent.js +5 -15
- package/dist/common/variables.js +1502 -10
- package/dist/date/Date.js +115 -81
- package/dist/date-input/DateInput.js +400 -0
- package/dist/date-input/index.d.ts +95 -0
- package/dist/dialog/Dialog.js +87 -33
- package/dist/dropdown/Dropdown.js +226 -94
- package/dist/file-input/FileInput.js +644 -0
- package/dist/file-input/FileItem.js +280 -0
- package/dist/file-input/index.d.ts +81 -0
- package/dist/footer/Footer.js +90 -36
- package/dist/footer/dxc_logo.svg +15 -0
- package/dist/footer/readme.md +1 -1
- package/dist/header/Header.js +132 -72
- package/dist/header/dxc_logo_black.svg +8 -0
- package/dist/header/readme.md +1 -1
- package/dist/heading/Heading.js +81 -22
- package/dist/input-text/InputText.js +301 -104
- package/dist/layout/ApplicationLayout.js +331 -0
- package/dist/layout/facebook.svg +45 -0
- package/dist/layout/linkedin.svg +50 -0
- package/dist/layout/twitter.svg +53 -0
- package/dist/link/Link.js +142 -34
- package/dist/main.d.ts +8 -0
- package/dist/main.js +119 -15
- package/dist/new-select/NewSelect.js +836 -0
- package/dist/new-select/index.d.ts +53 -0
- package/dist/number-input/NumberInput.js +136 -0
- package/dist/number-input/NumberInputContext.js +16 -0
- package/dist/number-input/index.d.ts +113 -0
- package/dist/paginator/Paginator.js +160 -49
- package/dist/password-input/PasswordInput.js +198 -0
- package/dist/password-input/index.d.ts +94 -0
- package/dist/progress-bar/ProgressBar.js +97 -44
- package/dist/progress-bar/readme.md +2 -2
- package/dist/radio/Radio.js +39 -34
- package/dist/radio/readme.md +1 -1
- package/dist/resultsetTable/ResultsetTable.js +94 -70
- package/dist/select/Select.js +253 -129
- package/dist/sidenav/Sidenav.js +87 -125
- package/dist/slider/Slider.js +206 -80
- package/dist/slider/readme.md +1 -1
- package/dist/spinner/Spinner.js +249 -64
- package/dist/spinner/readme.md +2 -2
- package/dist/switch/Switch.js +54 -51
- package/dist/switch/readme.md +2 -2
- package/dist/table/Table.js +63 -15
- package/dist/tabs/Tabs.js +210 -50
- package/dist/tabs-for-sections/TabsForSections.js +1 -16
- package/dist/tag/Tag.js +100 -35
- package/dist/text-input/TextInput.js +971 -0
- package/dist/text-input/index.d.ts +135 -0
- package/dist/textarea/Textarea.js +250 -107
- package/dist/textarea/index.d.ts +117 -0
- package/dist/toggle/Toggle.js +16 -19
- package/dist/toggle/readme.md +2 -2
- package/dist/toggle-group/ToggleGroup.js +327 -0
- package/dist/upload/Upload.js +16 -11
- package/dist/upload/buttons-upload/ButtonsUpload.js +34 -20
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +78 -31
- package/dist/upload/file-upload/FileToUpload.js +50 -24
- package/dist/upload/files-upload/FilesToUpload.js +16 -16
- package/dist/upload/readme.md +2 -2
- package/dist/upload/transaction/Transaction.js +44 -24
- package/dist/upload/transactions/Transactions.js +38 -20
- package/dist/useTheme.js +22 -0
- package/dist/wizard/Wizard.js +156 -55
- package/dist/wizard/invalid_icon.svg +4 -5
- package/dist/wizard/valid_icon.svg +4 -5
- package/package.json +18 -7
- package/test/AccordionGroup.test.js +125 -0
- package/test/Chip.test.js +25 -0
- package/test/Date.test.js +49 -45
- package/test/DateInput.test.js +242 -0
- package/test/Dropdown.test.js +19 -4
- package/test/FileInput.test.js +201 -0
- package/test/InputText.test.js +53 -41
- package/test/Link.test.js +25 -7
- package/test/NumberInput.test.js +259 -0
- package/test/Paginator.test.js +72 -60
- package/test/PasswordInput.test.js +83 -0
- package/test/ResultsetTable.test.js +66 -19
- package/test/Select.test.js +55 -34
- package/test/Sidenav.test.js +22 -64
- package/test/Slider.test.js +17 -0
- package/test/Spinner.test.js +5 -0
- package/test/Tabs.test.js +21 -0
- package/test/TextInput.test.js +732 -0
- package/test/Textarea.test.js +193 -0
- package/test/ToggleGroup.test.js +85 -0
- package/test/Upload.test.js +5 -5
- package/test/{TextArea.test.js → V3TextArea.test.js} +6 -7
- package/dist/accordion/Accordion.stories.js +0 -207
- package/dist/accordion/readme.md +0 -96
- package/dist/alert/Alert.stories.js +0 -158
- package/dist/alert/close.svg +0 -4
- package/dist/alert/error.svg +0 -4
- package/dist/alert/info.svg +0 -4
- package/dist/alert/readme.md +0 -43
- package/dist/alert/success.svg +0 -4
- package/dist/alert/warning.svg +0 -4
- package/dist/button/Button.stories.js +0 -224
- package/dist/button/readme.md +0 -93
- package/dist/common/services/example-service.js +0 -10
- package/dist/common/services/example-service.test.js +0 -12
- package/dist/date/calendar.svg +0 -1
- package/dist/date/calendar_dark.svg +0 -1
- package/dist/dialog/Dialog.stories.js +0 -217
- package/dist/dialog/readme.md +0 -32
- package/dist/dropdown/Dropdown.stories.js +0 -249
- package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
- package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
- package/dist/dropdown/readme.md +0 -69
- package/dist/footer/Footer.stories.js +0 -94
- package/dist/footer/dxc_logo_wht.png +0 -0
- package/dist/header/dxc_logo_black.png +0 -0
- package/dist/header/dxc_logo_white.png +0 -0
- package/dist/input-text/InputText.stories.js +0 -209
- package/dist/select/Select.stories.js +0 -235
- package/dist/select/readme.md +0 -72
- package/dist/sidenav/arrow_icon.svg +0 -3
- package/dist/slider/Slider.stories.js +0 -241
- package/test/Toggle.test.js +0 -43
package/dist/link/Link.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
3
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -9,20 +11,62 @@ exports["default"] = void 0;
|
|
|
9
11
|
|
|
10
12
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
13
|
|
|
12
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
13
|
-
|
|
14
14
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
15
15
|
|
|
16
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
17
|
+
|
|
16
18
|
var _react = _interopRequireDefault(require("react"));
|
|
17
19
|
|
|
18
|
-
var _styledComponents =
|
|
20
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
19
21
|
|
|
20
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
23
|
|
|
22
24
|
var _variables = require("../common/variables.js");
|
|
23
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
|
+
|
|
24
68
|
function _templateObject2() {
|
|
25
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
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"]);
|
|
26
70
|
|
|
27
71
|
_templateObject2 = function _templateObject2() {
|
|
28
72
|
return data;
|
|
@@ -32,7 +76,7 @@ function _templateObject2() {
|
|
|
32
76
|
}
|
|
33
77
|
|
|
34
78
|
function _templateObject() {
|
|
35
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n
|
|
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"]);
|
|
36
80
|
|
|
37
81
|
_templateObject = function _templateObject() {
|
|
38
82
|
return data;
|
|
@@ -42,41 +86,56 @@ function _templateObject() {
|
|
|
42
86
|
}
|
|
43
87
|
|
|
44
88
|
var DxcLink = function DxcLink(_ref) {
|
|
45
|
-
var _ref$
|
|
46
|
-
underlined = _ref$underlined === void 0 ? true : _ref$underlined,
|
|
47
|
-
_ref$inheritColor = _ref.inheritColor,
|
|
89
|
+
var _ref$inheritColor = _ref.inheritColor,
|
|
48
90
|
inheritColor = _ref$inheritColor === void 0 ? false : _ref$inheritColor,
|
|
49
91
|
_ref$disabled = _ref.disabled,
|
|
50
92
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
51
93
|
iconSrc = _ref.iconSrc,
|
|
94
|
+
icon = _ref.icon,
|
|
52
95
|
_ref$iconPosition = _ref.iconPosition,
|
|
53
96
|
iconPosition = _ref$iconPosition === void 0 ? "before" : _ref$iconPosition,
|
|
54
97
|
_ref$href = _ref.href,
|
|
55
98
|
href = _ref$href === void 0 ? "" : _ref$href,
|
|
56
|
-
_ref$theme = _ref.theme,
|
|
57
|
-
theme = _ref$theme === void 0 ? "light" : _ref$theme,
|
|
58
99
|
_ref$newWindow = _ref.newWindow,
|
|
59
100
|
newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
|
|
101
|
+
onClick = _ref.onClick,
|
|
60
102
|
_ref$text = _ref.text,
|
|
61
103
|
text = _ref$text === void 0 ? "" : _ref$text,
|
|
62
|
-
margin = _ref.margin
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
iconPosition: iconPosition
|
|
71
|
-
|
|
72
|
-
}, text, iconSrc ? _react["default"].createElement(LinkIcon, {
|
|
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, {
|
|
73
114
|
src: iconSrc,
|
|
74
|
-
brightness: theme,
|
|
75
115
|
iconPosition: iconPosition
|
|
76
|
-
})
|
|
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)));
|
|
77
136
|
};
|
|
78
137
|
|
|
79
|
-
var
|
|
138
|
+
var DxcLinkContainer = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
80
139
|
return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
|
|
81
140
|
}, function (props) {
|
|
82
141
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
|
|
@@ -86,36 +145,84 @@ var LinkText = _styledComponents["default"].a(_templateObject(), function (props
|
|
|
86
145
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
|
|
87
146
|
}, function (props) {
|
|
88
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;");
|
|
89
162
|
}, function (props) {
|
|
90
|
-
return props.
|
|
163
|
+
return props.theme.focusColor;
|
|
91
164
|
}, function (props) {
|
|
92
|
-
return props.disabled
|
|
165
|
+
return props.disabled && "outline: none";
|
|
93
166
|
}, function (props) {
|
|
94
|
-
return
|
|
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;
|
|
95
176
|
}, function (props) {
|
|
96
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;
|
|
97
196
|
}, function (props) {
|
|
98
197
|
return props.iconPosition === "after" ? "row" : "row-reverse";
|
|
99
198
|
}, function (props) {
|
|
100
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;
|
|
101
204
|
}, function (props) {
|
|
102
|
-
return props.
|
|
205
|
+
return props.theme.iconSize;
|
|
103
206
|
}, function (props) {
|
|
104
|
-
return
|
|
207
|
+
return "".concat(props.iconPosition === "before" ? "margin-right" : "margin-left", ": ").concat(props.theme.iconSpacing);
|
|
105
208
|
});
|
|
106
209
|
|
|
107
|
-
var
|
|
108
|
-
return props.
|
|
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);
|
|
109
216
|
});
|
|
110
217
|
|
|
111
218
|
DxcLink.propTypes = {
|
|
112
|
-
underlined: _propTypes["default"].bool,
|
|
113
219
|
inheritColor: _propTypes["default"].bool,
|
|
114
220
|
disabled: _propTypes["default"].bool,
|
|
221
|
+
icon: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].func]),
|
|
115
222
|
iconSrc: _propTypes["default"].string,
|
|
116
223
|
iconPosition: _propTypes["default"].oneOf(["after", "before"]),
|
|
117
224
|
href: _propTypes["default"].string,
|
|
118
|
-
|
|
225
|
+
onClick: _propTypes["default"].func,
|
|
119
226
|
margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
120
227
|
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
121
228
|
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
@@ -123,7 +230,8 @@ DxcLink.propTypes = {
|
|
|
123
230
|
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
124
231
|
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
125
232
|
newWindow: _propTypes["default"].bool,
|
|
126
|
-
text: _propTypes["default"].string
|
|
233
|
+
text: _propTypes["default"].string,
|
|
234
|
+
tabIndex: _propTypes["default"].number
|
|
127
235
|
};
|
|
128
236
|
var _default = DxcLink;
|
|
129
237
|
exports["default"] = _default;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
3
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35,7 +37,7 @@ Object.defineProperty(exports, "DxcCheckbox", {
|
|
|
35
37
|
return _Checkbox["default"];
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
40
|
+
Object.defineProperty(exports, "V3DxcDate", {
|
|
39
41
|
enumerable: true,
|
|
40
42
|
get: function get() {
|
|
41
43
|
return _Date["default"];
|
|
@@ -65,7 +67,7 @@ Object.defineProperty(exports, "DxcHeader", {
|
|
|
65
67
|
return _Header["default"];
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
|
-
Object.defineProperty(exports, "
|
|
70
|
+
Object.defineProperty(exports, "V3DxcInputText", {
|
|
69
71
|
enumerable: true,
|
|
70
72
|
get: function get() {
|
|
71
73
|
return _InputText["default"];
|
|
@@ -119,18 +121,12 @@ Object.defineProperty(exports, "DxcSpinner", {
|
|
|
119
121
|
return _Spinner["default"];
|
|
120
122
|
}
|
|
121
123
|
});
|
|
122
|
-
Object.defineProperty(exports, "
|
|
124
|
+
Object.defineProperty(exports, "V3DxcUpload", {
|
|
123
125
|
enumerable: true,
|
|
124
126
|
get: function get() {
|
|
125
127
|
return _Upload["default"];
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
|
-
Object.defineProperty(exports, "DxcToggle", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function get() {
|
|
131
|
-
return _Toggle["default"];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
130
|
Object.defineProperty(exports, "DxcTable", {
|
|
135
131
|
enumerable: true,
|
|
136
132
|
get: function get() {
|
|
@@ -179,10 +175,10 @@ Object.defineProperty(exports, "DxcHeading", {
|
|
|
179
175
|
return _Heading["default"];
|
|
180
176
|
}
|
|
181
177
|
});
|
|
182
|
-
Object.defineProperty(exports, "
|
|
178
|
+
Object.defineProperty(exports, "V3DxcTextarea", {
|
|
183
179
|
enumerable: true,
|
|
184
180
|
get: function get() {
|
|
185
|
-
return
|
|
181
|
+
return _V3Textarea["default"];
|
|
186
182
|
}
|
|
187
183
|
});
|
|
188
184
|
Object.defineProperty(exports, "DxcResultsetTable", {
|
|
@@ -191,12 +187,96 @@ Object.defineProperty(exports, "DxcResultsetTable", {
|
|
|
191
187
|
return _ResultsetTable["default"];
|
|
192
188
|
}
|
|
193
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
|
+
});
|
|
194
262
|
Object.defineProperty(exports, "ThemeContext", {
|
|
195
263
|
enumerable: true,
|
|
196
264
|
get: function get() {
|
|
197
265
|
return _ThemeContext["default"];
|
|
198
266
|
}
|
|
199
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
|
+
});
|
|
200
280
|
|
|
201
281
|
var _Alert = _interopRequireDefault(require("./alert/Alert"));
|
|
202
282
|
|
|
@@ -238,8 +318,6 @@ var _Spinner = _interopRequireDefault(require("./spinner/Spinner"));
|
|
|
238
318
|
|
|
239
319
|
var _Upload = _interopRequireDefault(require("./upload/Upload"));
|
|
240
320
|
|
|
241
|
-
var _Toggle = _interopRequireDefault(require("./toggle/Toggle"));
|
|
242
|
-
|
|
243
321
|
var _Table = _interopRequireDefault(require("./table/Table"));
|
|
244
322
|
|
|
245
323
|
var _Box = _interopRequireDefault(require("./box/Box"));
|
|
@@ -256,8 +334,34 @@ var _Link = _interopRequireDefault(require("./link/Link"));
|
|
|
256
334
|
|
|
257
335
|
var _Heading = _interopRequireDefault(require("./heading/Heading"));
|
|
258
336
|
|
|
259
|
-
var
|
|
337
|
+
var _V3Textarea = _interopRequireDefault(require("./V3Textarea/V3Textarea"));
|
|
260
338
|
|
|
261
339
|
var _ResultsetTable = _interopRequireDefault(require("./resultsetTable/ResultsetTable"));
|
|
262
340
|
|
|
263
|
-
var
|
|
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");
|