carbon-react 106.0.1 → 106.1.0
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/esm/__internal__/input/index.d.ts +5 -5
- package/esm/__internal__/input/input-presentation.component.d.ts +21 -27
- package/esm/__internal__/input/input-presentation.component.js +7 -20
- package/esm/__internal__/input/input-presentation.style.d.ts +5 -8
- package/esm/__internal__/input/input-presentation.style.js +37 -53
- package/esm/__internal__/input/input-sizes.style.d.ts +8 -18
- package/esm/__internal__/input/input-sizes.style.js +3 -2
- package/esm/__internal__/input/input.component.d.ts +39 -2
- package/esm/__internal__/input/input.component.js +84 -66
- package/esm/__internal__/input/input.style.d.ts +2 -1
- package/esm/__internal__/input/input.style.js +0 -4
- package/esm/__internal__/input-behaviour/index.d.ts +2 -1
- package/esm/__internal__/input-behaviour/input-behaviour.component.d.ts +7 -10
- package/esm/__internal__/input-behaviour/input-behaviour.component.js +2 -7
- package/esm/__internal__/input-behaviour/input-group-behaviour.component.d.ts +8 -12
- package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +1 -7
- package/esm/__internal__/input-behaviour/useInputBehaviour.d.ts +14 -10
- package/esm/__internal__/label/label.d.ts +1 -1
- package/esm/components/badge/badge.component.d.ts +10 -13
- package/esm/components/badge/badge.component.js +60 -24
- package/esm/components/badge/badge.style.d.ts +7 -5
- package/esm/components/badge/index.d.ts +2 -1
- package/esm/components/carbon-provider/carbon-provider.component.d.ts +8 -14
- package/esm/components/carbon-provider/carbon-provider.component.js +110 -14
- package/esm/components/carbon-provider/index.d.ts +2 -1
- package/esm/components/date-range/date-range.style.js +2 -2
- package/esm/components/decimal/decimal.component.js +2 -1
- package/esm/components/heading/heading.style.d.ts +1 -2
- package/esm/components/inline-inputs/index.d.ts +2 -1
- package/esm/components/inline-inputs/index.js +1 -1
- package/esm/components/inline-inputs/inline-inputs.component.d.ts +25 -22
- package/esm/components/inline-inputs/inline-inputs.component.js +96 -60
- package/esm/components/inline-inputs/inline-inputs.config.d.ts +1 -1
- package/esm/components/inline-inputs/inline-inputs.style.d.ts +5 -3
- package/esm/components/inline-inputs/inline-inputs.style.js +2 -2
- package/esm/components/link/index.d.ts +1 -2
- package/esm/components/link/link.component.d.ts +37 -2
- package/esm/components/link/link.component.js +1243 -124
- package/esm/components/link/link.config.d.ts +2 -2
- package/esm/components/link/link.style.d.ts +7 -2
- package/esm/components/link/link.style.js +0 -5
- package/esm/components/pager/pager.style.d.ts +1 -2
- package/esm/components/pod/pod.style.d.ts +1 -2
- package/esm/components/simple-color-picker/simple-color-input/simple-color-input.style.d.ts +1 -1
- package/esm/components/split-button/index.d.ts +1 -0
- package/esm/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -2
- package/esm/components/textarea/textarea-test.stories.js +21 -1
- package/esm/components/tile-select/tile-select.style.d.ts +1 -1
- package/esm/style/fonts.css +22 -16
- package/lib/__internal__/input/index.d.ts +5 -5
- package/lib/__internal__/input/input-presentation.component.d.ts +21 -27
- package/lib/__internal__/input/input-presentation.component.js +7 -23
- package/lib/__internal__/input/input-presentation.style.d.ts +5 -8
- package/lib/__internal__/input/input-presentation.style.js +37 -54
- package/lib/__internal__/input/input-sizes.style.d.ts +8 -18
- package/lib/__internal__/input/input-sizes.style.js +2 -1
- package/lib/__internal__/input/input.component.d.ts +39 -2
- package/lib/__internal__/input/input.component.js +85 -69
- package/lib/__internal__/input/input.style.d.ts +2 -1
- package/lib/__internal__/input/input.style.js +0 -7
- package/lib/__internal__/input-behaviour/index.d.ts +2 -1
- package/lib/__internal__/input-behaviour/input-behaviour.component.d.ts +7 -10
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +3 -10
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.d.ts +8 -12
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +2 -10
- package/lib/__internal__/input-behaviour/useInputBehaviour.d.ts +14 -10
- package/lib/__internal__/label/label.d.ts +1 -1
- package/lib/components/badge/badge.component.d.ts +10 -13
- package/lib/components/badge/badge.component.js +51 -29
- package/lib/components/badge/badge.style.d.ts +7 -5
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/carbon-provider/carbon-provider.component.d.ts +8 -14
- package/lib/components/carbon-provider/carbon-provider.component.js +115 -20
- package/lib/components/carbon-provider/index.d.ts +2 -1
- package/lib/components/date-range/date-range.style.js +4 -4
- package/lib/components/decimal/decimal.component.js +2 -1
- package/lib/components/heading/heading.style.d.ts +1 -2
- package/lib/components/inline-inputs/index.d.ts +2 -1
- package/lib/components/inline-inputs/index.js +10 -2
- package/lib/components/inline-inputs/inline-inputs.component.d.ts +25 -22
- package/lib/components/inline-inputs/inline-inputs.component.js +143 -68
- package/lib/components/inline-inputs/inline-inputs.config.d.ts +1 -1
- package/lib/components/inline-inputs/inline-inputs.style.d.ts +5 -3
- package/lib/components/inline-inputs/inline-inputs.style.js +2 -2
- package/lib/components/link/index.d.ts +1 -2
- package/lib/components/link/link.component.d.ts +37 -2
- package/lib/components/link/link.component.js +764 -146
- package/lib/components/link/link.config.d.ts +2 -2
- package/lib/components/link/link.style.d.ts +7 -2
- package/lib/components/link/link.style.js +0 -6
- package/lib/components/pager/pager.style.d.ts +1 -2
- package/lib/components/pod/pod.style.d.ts +1 -2
- package/lib/components/simple-color-picker/simple-color-input/simple-color-input.style.d.ts +1 -1
- package/lib/components/split-button/index.d.ts +1 -0
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -2
- package/lib/components/textarea/textarea-test.stories.js +21 -1
- package/lib/components/tile-select/tile-select.style.d.ts +1 -1
- package/lib/style/fonts.css +22 -16
- package/package.json +1 -2
- package/esm/__internal__/input/extract-props/extract-props.d.ts +0 -1
- package/esm/__internal__/input/extract-props/extract-props.js +0 -11
- package/esm/__internal__/input/extract-props/index.d.ts +0 -1
- package/esm/__internal__/input/extract-props/index.js +0 -1
- package/esm/__internal__/input/input-presentation.d.ts +0 -24
- package/esm/__internal__/input/input.d.ts +0 -54
- package/esm/components/badge/badge.d.ts +0 -14
- package/esm/components/carbon-provider/carbon-provider.d.ts +0 -12
- package/esm/components/inline-inputs/inline-inputs.d.ts +0 -30
- package/esm/components/link/link.d.ts +0 -47
- package/lib/__internal__/input/extract-props/extract-props.d.ts +0 -1
- package/lib/__internal__/input/extract-props/extract-props.js +0 -18
- package/lib/__internal__/input/extract-props/index.d.ts +0 -1
- package/lib/__internal__/input/extract-props/index.js +0 -15
- package/lib/__internal__/input/extract-props/package.json +0 -6
- package/lib/__internal__/input/input-presentation.d.ts +0 -24
- package/lib/__internal__/input/input.d.ts +0 -54
- package/lib/components/badge/badge.d.ts +0 -14
- package/lib/components/carbon-provider/carbon-provider.d.ts +0 -12
- package/lib/components/inline-inputs/inline-inputs.d.ts +0 -30
- package/lib/components/link/link.d.ts +0 -47
|
@@ -1,182 +1,800 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
4
|
+
value: true,
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
exports.default = exports.Link = void 0;
|
|
9
8
|
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
12
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
13
13
|
|
|
14
|
-
var _events = _interopRequireDefault(
|
|
14
|
+
var _events = _interopRequireDefault(
|
|
15
|
+
require("../../__internal__/utils/helpers/events")
|
|
16
|
+
);
|
|
15
17
|
|
|
16
18
|
var _link = require("./link.style");
|
|
17
19
|
|
|
18
|
-
var _tags = _interopRequireDefault(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
27
|
-
|
|
28
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
|
-
const Link = /*#__PURE__*/_react.default.forwardRef(({
|
|
31
|
-
children,
|
|
32
|
-
className,
|
|
33
|
-
onKeyDown,
|
|
34
|
-
href,
|
|
35
|
-
onClick,
|
|
36
|
-
onMouseDown,
|
|
37
|
-
icon,
|
|
38
|
-
iconAlign,
|
|
39
|
-
isSkipLink,
|
|
40
|
-
disabled,
|
|
41
|
-
ariaLabel,
|
|
42
|
-
rel,
|
|
43
|
-
tooltipMessage,
|
|
44
|
-
tooltipPosition,
|
|
45
|
-
tabbable,
|
|
46
|
-
target,
|
|
47
|
-
...rest
|
|
48
|
-
}, ref) => {
|
|
49
|
-
const l = (0, _useLocale.default)();
|
|
50
|
-
const tabIndex = tabbable && !disabled ? "0" : "-1";
|
|
51
|
-
|
|
52
|
-
const handleOnKeyDown = ev => {
|
|
53
|
-
if (onKeyDown) {
|
|
54
|
-
onKeyDown(ev);
|
|
55
|
-
} // return early if there is no onClick or there is a href prop
|
|
56
|
-
// or the event is not an enter key
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (href || !_events.default.isEnterKey(ev) && !_events.default.isSpaceKey(ev)) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
20
|
+
var _tags = _interopRequireDefault(
|
|
21
|
+
require("../../__internal__/utils/helpers/tags/tags")
|
|
22
|
+
);
|
|
62
23
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
24
|
+
var _useLocale = _interopRequireDefault(
|
|
25
|
+
require("../../hooks/__internal__/useLocale")
|
|
26
|
+
);
|
|
67
27
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type: icon,
|
|
72
|
-
bgSize: "extra-small",
|
|
73
|
-
color: "--colorsActionMajor500",
|
|
74
|
-
disabled: disabled,
|
|
75
|
-
ariaLabel: ariaLabel,
|
|
76
|
-
tooltipMessage: tooltipMessage,
|
|
77
|
-
tooltipPosition: tooltipPosition
|
|
78
|
-
}) : null;
|
|
79
|
-
};
|
|
28
|
+
function _interopRequireDefault(obj) {
|
|
29
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
30
|
+
}
|
|
80
31
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
onKeyDown: handleOnKeyDown,
|
|
87
|
-
onMouseDown,
|
|
88
|
-
onClick,
|
|
89
|
-
disabled,
|
|
90
|
-
tabIndex,
|
|
91
|
-
target,
|
|
92
|
-
ref,
|
|
93
|
-
href,
|
|
94
|
-
rel,
|
|
95
|
-
"aria-label": ariaLabel,
|
|
96
|
-
...ariaProps
|
|
32
|
+
function _getRequireWildcardCache() {
|
|
33
|
+
if (typeof WeakMap !== "function") return null;
|
|
34
|
+
var cache = new WeakMap();
|
|
35
|
+
_getRequireWildcardCache = function () {
|
|
36
|
+
return cache;
|
|
97
37
|
};
|
|
38
|
+
return cache;
|
|
39
|
+
}
|
|
98
40
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
41
|
+
function _interopRequireWildcard(obj) {
|
|
42
|
+
if (obj && obj.__esModule) {
|
|
43
|
+
return obj;
|
|
44
|
+
}
|
|
45
|
+
if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {
|
|
46
|
+
return { default: obj };
|
|
47
|
+
}
|
|
48
|
+
var cache = _getRequireWildcardCache();
|
|
49
|
+
if (cache && cache.has(obj)) {
|
|
50
|
+
return cache.get(obj);
|
|
51
|
+
}
|
|
52
|
+
var newObj = {};
|
|
53
|
+
var hasPropertyDescriptor =
|
|
54
|
+
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
55
|
+
for (var key in obj) {
|
|
56
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
57
|
+
var desc = hasPropertyDescriptor
|
|
58
|
+
? Object.getOwnPropertyDescriptor(obj, key)
|
|
59
|
+
: null;
|
|
60
|
+
if (desc && (desc.get || desc.set)) {
|
|
61
|
+
Object.defineProperty(newObj, key, desc);
|
|
62
|
+
} else {
|
|
63
|
+
newObj[key] = obj[key];
|
|
64
|
+
}
|
|
104
65
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
66
|
+
}
|
|
67
|
+
newObj.default = obj;
|
|
68
|
+
if (cache) {
|
|
69
|
+
cache.set(obj, newObj);
|
|
70
|
+
}
|
|
71
|
+
return newObj;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _extends() {
|
|
75
|
+
_extends =
|
|
76
|
+
Object.assign ||
|
|
77
|
+
function (target) {
|
|
78
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
79
|
+
var source = arguments[i];
|
|
80
|
+
for (var key in source) {
|
|
81
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
82
|
+
target[key] = source[key];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return target;
|
|
87
|
+
};
|
|
88
|
+
return _extends.apply(this, arguments);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const Link = /*#__PURE__*/ _react.default.forwardRef(
|
|
92
|
+
(
|
|
93
|
+
{
|
|
94
|
+
children,
|
|
95
|
+
className,
|
|
96
|
+
onKeyDown,
|
|
97
|
+
href,
|
|
98
|
+
onClick,
|
|
99
|
+
onMouseDown,
|
|
100
|
+
icon,
|
|
101
|
+
iconAlign = "left",
|
|
102
|
+
isSkipLink,
|
|
103
|
+
disabled,
|
|
104
|
+
ariaLabel,
|
|
105
|
+
rel,
|
|
106
|
+
tooltipMessage,
|
|
107
|
+
tooltipPosition,
|
|
108
|
+
tabbable = true,
|
|
109
|
+
target,
|
|
110
|
+
...rest
|
|
111
|
+
},
|
|
112
|
+
ref
|
|
113
|
+
) => {
|
|
114
|
+
const l = (0, _useLocale.default)();
|
|
115
|
+
const tabIndex = tabbable && !disabled ? "0" : "-1";
|
|
116
|
+
|
|
117
|
+
const handleOnKeyDown = (ev) => {
|
|
118
|
+
if (onKeyDown) {
|
|
119
|
+
onKeyDown(ev);
|
|
120
|
+
} // return early if there is no onClick or there is a href prop
|
|
121
|
+
// or the event is not an enter key
|
|
122
|
+
|
|
123
|
+
if (
|
|
124
|
+
href ||
|
|
125
|
+
(!_events.default.isEnterKey(ev) && !_events.default.isSpaceKey(ev))
|
|
126
|
+
) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (onClick) {
|
|
131
|
+
onClick(ev);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const renderLinkIcon = (currentAlignment = "left") => {
|
|
136
|
+
const hasProperAlignment = icon && iconAlign === currentAlignment;
|
|
137
|
+
return hasProperAlignment
|
|
138
|
+
? /*#__PURE__*/ _react.default.createElement(_icon.default, {
|
|
139
|
+
type: icon,
|
|
140
|
+
bgSize: "extra-small",
|
|
141
|
+
color: "--colorsActionMajor500",
|
|
142
|
+
disabled: disabled,
|
|
143
|
+
ariaLabel: ariaLabel,
|
|
144
|
+
tooltipMessage: tooltipMessage,
|
|
145
|
+
tooltipPosition: tooltipPosition,
|
|
146
|
+
})
|
|
147
|
+
: null;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const ariaProps = (0, _react.useMemo)(() => {
|
|
151
|
+
const restObject = rest;
|
|
152
|
+
return Object.keys(restObject)
|
|
153
|
+
.filter((key) => key.startsWith("aria"))
|
|
154
|
+
.reduce((obj, key) => {
|
|
155
|
+
obj[key] = restObject[key];
|
|
156
|
+
return obj;
|
|
157
|
+
}, {});
|
|
158
|
+
}, [rest]);
|
|
159
|
+
const componentProps = {
|
|
160
|
+
onKeyDown: handleOnKeyDown,
|
|
161
|
+
onMouseDown,
|
|
162
|
+
onClick,
|
|
163
|
+
disabled,
|
|
164
|
+
tabIndex,
|
|
165
|
+
target,
|
|
166
|
+
ref,
|
|
167
|
+
href,
|
|
168
|
+
rel,
|
|
169
|
+
"aria-label": ariaLabel,
|
|
170
|
+
...ariaProps,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
const createLinkBasedOnType = () => {
|
|
174
|
+
let type = "a";
|
|
175
|
+
|
|
176
|
+
if (onClick && !href) {
|
|
177
|
+
type = "button";
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return /*#__PURE__*/ _react.default.createElement(
|
|
181
|
+
type,
|
|
182
|
+
{
|
|
183
|
+
...componentProps,
|
|
184
|
+
...(type === "button" && {
|
|
185
|
+
role: "link",
|
|
186
|
+
}),
|
|
187
|
+
},
|
|
188
|
+
/*#__PURE__*/ _react.default.createElement(
|
|
189
|
+
_react.default.Fragment,
|
|
190
|
+
null,
|
|
191
|
+
renderLinkIcon(),
|
|
192
|
+
/*#__PURE__*/ _react.default.createElement(
|
|
193
|
+
_link.StyledContent,
|
|
194
|
+
null,
|
|
195
|
+
isSkipLink ? l.link.skipLinkLabel() : children
|
|
196
|
+
),
|
|
197
|
+
renderLinkIcon("right")
|
|
198
|
+
)
|
|
199
|
+
);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
return /*#__PURE__*/ _react.default.createElement(
|
|
203
|
+
_link.StyledLink,
|
|
204
|
+
_extends(
|
|
205
|
+
{
|
|
206
|
+
isSkipLink: isSkipLink,
|
|
207
|
+
disabled: disabled,
|
|
208
|
+
className: className,
|
|
209
|
+
iconAlign: iconAlign,
|
|
210
|
+
hasContent: Boolean(children),
|
|
211
|
+
},
|
|
212
|
+
(0, _tags.default)("link", rest),
|
|
213
|
+
isSkipLink && {
|
|
214
|
+
"data-element": "skip-link",
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
createLinkBasedOnType()
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
);
|
|
123
221
|
|
|
124
222
|
Link.propTypes = {
|
|
125
|
-
/**
|
|
223
|
+
/**
|
|
224
|
+
* Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
|
|
225
|
+
*/
|
|
226
|
+
"aria-activedescendant": _propTypes.default.string,
|
|
227
|
+
/**
|
|
228
|
+
* Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
|
|
229
|
+
*/
|
|
230
|
+
"aria-atomic": _propTypes.default.oneOfType([
|
|
231
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
232
|
+
_propTypes.default.bool,
|
|
233
|
+
]),
|
|
234
|
+
/**
|
|
235
|
+
* Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
|
|
236
|
+
* presented if they are made.
|
|
237
|
+
*/
|
|
238
|
+
"aria-autocomplete": _propTypes.default.oneOf([
|
|
239
|
+
"both",
|
|
240
|
+
"inline",
|
|
241
|
+
"list",
|
|
242
|
+
"none",
|
|
243
|
+
]),
|
|
244
|
+
/**
|
|
245
|
+
* Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
|
|
246
|
+
*/
|
|
247
|
+
"aria-busy": _propTypes.default.oneOfType([
|
|
248
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
249
|
+
_propTypes.default.bool,
|
|
250
|
+
]),
|
|
251
|
+
/**
|
|
252
|
+
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
253
|
+
* @see aria-pressed @see aria-selected.
|
|
254
|
+
*/
|
|
255
|
+
"aria-checked": _propTypes.default.oneOfType([
|
|
256
|
+
_propTypes.default.oneOf(["false", "mixed", "true"]),
|
|
257
|
+
_propTypes.default.bool,
|
|
258
|
+
]),
|
|
259
|
+
/**
|
|
260
|
+
* Defines the total number of columns in a table, grid, or treegrid.
|
|
261
|
+
* @see aria-colindex.
|
|
262
|
+
*/
|
|
263
|
+
"aria-colcount": _propTypes.default.number,
|
|
264
|
+
/**
|
|
265
|
+
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
266
|
+
* @see aria-colcount @see aria-colspan.
|
|
267
|
+
*/
|
|
268
|
+
"aria-colindex": _propTypes.default.number,
|
|
269
|
+
/**
|
|
270
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
271
|
+
* @see aria-colindex @see aria-rowspan.
|
|
272
|
+
*/
|
|
273
|
+
"aria-colspan": _propTypes.default.number,
|
|
274
|
+
/**
|
|
275
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
276
|
+
* @see aria-owns.
|
|
277
|
+
*/
|
|
278
|
+
"aria-controls": _propTypes.default.string,
|
|
279
|
+
/**
|
|
280
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
281
|
+
*/
|
|
282
|
+
"aria-current": _propTypes.default.oneOfType([
|
|
283
|
+
_propTypes.default.oneOf([
|
|
284
|
+
"date",
|
|
285
|
+
"false",
|
|
286
|
+
"location",
|
|
287
|
+
"page",
|
|
288
|
+
"step",
|
|
289
|
+
"time",
|
|
290
|
+
"true",
|
|
291
|
+
]),
|
|
292
|
+
_propTypes.default.bool,
|
|
293
|
+
]),
|
|
294
|
+
/**
|
|
295
|
+
* Identifies the element (or elements) that describes the object.
|
|
296
|
+
* @see aria-labelledby
|
|
297
|
+
*/
|
|
298
|
+
"aria-describedby": _propTypes.default.string,
|
|
299
|
+
/**
|
|
300
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
301
|
+
* @see aria-describedby.
|
|
302
|
+
*/
|
|
303
|
+
"aria-details": _propTypes.default.string,
|
|
304
|
+
/**
|
|
305
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
306
|
+
* @see aria-hidden @see aria-readonly.
|
|
307
|
+
*/
|
|
308
|
+
"aria-disabled": _propTypes.default.oneOfType([
|
|
309
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
310
|
+
_propTypes.default.bool,
|
|
311
|
+
]),
|
|
312
|
+
/**
|
|
313
|
+
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
314
|
+
* @deprecated in ARIA 1.1
|
|
315
|
+
*/
|
|
316
|
+
"aria-dropeffect": _propTypes.default.oneOf([
|
|
317
|
+
"copy",
|
|
318
|
+
"execute",
|
|
319
|
+
"link",
|
|
320
|
+
"move",
|
|
321
|
+
"none",
|
|
322
|
+
"popup",
|
|
323
|
+
]),
|
|
324
|
+
/**
|
|
325
|
+
* Identifies the element that provides an error message for the object.
|
|
326
|
+
* @see aria-invalid @see aria-describedby.
|
|
327
|
+
*/
|
|
328
|
+
"aria-errormessage": _propTypes.default.string,
|
|
329
|
+
/**
|
|
330
|
+
* Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
|
|
331
|
+
*/
|
|
332
|
+
"aria-expanded": _propTypes.default.oneOfType([
|
|
333
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
334
|
+
_propTypes.default.bool,
|
|
335
|
+
]),
|
|
336
|
+
/**
|
|
337
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
338
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
339
|
+
*/
|
|
340
|
+
"aria-flowto": _propTypes.default.string,
|
|
341
|
+
/**
|
|
342
|
+
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
343
|
+
* @deprecated in ARIA 1.1
|
|
344
|
+
*/
|
|
345
|
+
"aria-grabbed": _propTypes.default.oneOfType([
|
|
346
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
347
|
+
_propTypes.default.bool,
|
|
348
|
+
]),
|
|
349
|
+
/**
|
|
350
|
+
* Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
|
|
351
|
+
*/
|
|
352
|
+
"aria-haspopup": _propTypes.default.oneOfType([
|
|
353
|
+
_propTypes.default.oneOf([
|
|
354
|
+
"dialog",
|
|
355
|
+
"false",
|
|
356
|
+
"grid",
|
|
357
|
+
"listbox",
|
|
358
|
+
"menu",
|
|
359
|
+
"tree",
|
|
360
|
+
"true",
|
|
361
|
+
]),
|
|
362
|
+
_propTypes.default.bool,
|
|
363
|
+
]),
|
|
364
|
+
/**
|
|
365
|
+
* Indicates whether the element is exposed to an accessibility API.
|
|
366
|
+
* @see aria-disabled.
|
|
367
|
+
*/
|
|
368
|
+
"aria-hidden": _propTypes.default.oneOfType([
|
|
369
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
370
|
+
_propTypes.default.bool,
|
|
371
|
+
]),
|
|
372
|
+
/**
|
|
373
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
374
|
+
* @see aria-errormessage.
|
|
375
|
+
*/
|
|
376
|
+
"aria-invalid": _propTypes.default.oneOfType([
|
|
377
|
+
_propTypes.default.oneOf(["false", "grammar", "spelling", "true"]),
|
|
378
|
+
_propTypes.default.bool,
|
|
379
|
+
]),
|
|
380
|
+
/**
|
|
381
|
+
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
382
|
+
*/
|
|
383
|
+
"aria-keyshortcuts": _propTypes.default.string,
|
|
384
|
+
/**
|
|
385
|
+
* Defines a string value that labels the current element.
|
|
386
|
+
* @see aria-labelledby.
|
|
387
|
+
*/
|
|
388
|
+
"aria-label": _propTypes.default.string,
|
|
389
|
+
/**
|
|
390
|
+
* Identifies the element (or elements) that labels the current element.
|
|
391
|
+
* @see aria-describedby.
|
|
392
|
+
*/
|
|
393
|
+
"aria-labelledby": _propTypes.default.string,
|
|
394
|
+
/**
|
|
395
|
+
* Defines the hierarchical level of an element within a structure.
|
|
396
|
+
*/
|
|
397
|
+
"aria-level": _propTypes.default.number,
|
|
398
|
+
/**
|
|
399
|
+
* Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
|
|
400
|
+
*/
|
|
401
|
+
"aria-live": _propTypes.default.oneOf(["assertive", "off", "polite"]),
|
|
402
|
+
/**
|
|
403
|
+
* Indicates whether an element is modal when displayed.
|
|
404
|
+
*/
|
|
405
|
+
"aria-modal": _propTypes.default.oneOfType([
|
|
406
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
407
|
+
_propTypes.default.bool,
|
|
408
|
+
]),
|
|
409
|
+
/**
|
|
410
|
+
* Indicates whether a text box accepts multiple lines of input or only a single line.
|
|
411
|
+
*/
|
|
412
|
+
"aria-multiline": _propTypes.default.oneOfType([
|
|
413
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
414
|
+
_propTypes.default.bool,
|
|
415
|
+
]),
|
|
416
|
+
/**
|
|
417
|
+
* Indicates that the user may select more than one item from the current selectable descendants.
|
|
418
|
+
*/
|
|
419
|
+
"aria-multiselectable": _propTypes.default.oneOfType([
|
|
420
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
421
|
+
_propTypes.default.bool,
|
|
422
|
+
]),
|
|
423
|
+
/**
|
|
424
|
+
* Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
|
|
425
|
+
*/
|
|
426
|
+
"aria-orientation": _propTypes.default.oneOf(["horizontal", "vertical"]),
|
|
427
|
+
/**
|
|
428
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
429
|
+
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
430
|
+
* @see aria-controls.
|
|
431
|
+
*/
|
|
432
|
+
"aria-owns": _propTypes.default.string,
|
|
433
|
+
/**
|
|
434
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
435
|
+
* A hint could be a sample value or a brief description of the expected format.
|
|
436
|
+
*/
|
|
437
|
+
"aria-placeholder": _propTypes.default.string,
|
|
438
|
+
/**
|
|
439
|
+
* Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
440
|
+
* @see aria-setsize.
|
|
441
|
+
*/
|
|
442
|
+
"aria-posinset": _propTypes.default.number,
|
|
443
|
+
/**
|
|
444
|
+
* Indicates the current "pressed" state of toggle buttons.
|
|
445
|
+
* @see aria-checked @see aria-selected.
|
|
446
|
+
*/
|
|
447
|
+
"aria-pressed": _propTypes.default.oneOfType([
|
|
448
|
+
_propTypes.default.oneOf(["false", "mixed", "true"]),
|
|
449
|
+
_propTypes.default.bool,
|
|
450
|
+
]),
|
|
451
|
+
/**
|
|
452
|
+
* Indicates that the element is not editable, but is otherwise operable.
|
|
453
|
+
* @see aria-disabled.
|
|
454
|
+
*/
|
|
455
|
+
"aria-readonly": _propTypes.default.oneOfType([
|
|
456
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
457
|
+
_propTypes.default.bool,
|
|
458
|
+
]),
|
|
459
|
+
/**
|
|
460
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
461
|
+
* @see aria-atomic.
|
|
462
|
+
*/
|
|
463
|
+
"aria-relevant": _propTypes.default.oneOf([
|
|
464
|
+
"additions removals",
|
|
465
|
+
"additions text",
|
|
466
|
+
"additions",
|
|
467
|
+
"all",
|
|
468
|
+
"removals additions",
|
|
469
|
+
"removals text",
|
|
470
|
+
"removals",
|
|
471
|
+
"text additions",
|
|
472
|
+
"text removals",
|
|
473
|
+
"text",
|
|
474
|
+
]),
|
|
475
|
+
/**
|
|
476
|
+
* Indicates that user input is required on the element before a form may be submitted.
|
|
477
|
+
*/
|
|
478
|
+
"aria-required": _propTypes.default.oneOfType([
|
|
479
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
480
|
+
_propTypes.default.bool,
|
|
481
|
+
]),
|
|
482
|
+
/**
|
|
483
|
+
* Defines a human-readable, author-localized description for the role of an element.
|
|
484
|
+
*/
|
|
485
|
+
"aria-roledescription": _propTypes.default.string,
|
|
486
|
+
/**
|
|
487
|
+
* Defines the total number of rows in a table, grid, or treegrid.
|
|
488
|
+
* @see aria-rowindex.
|
|
489
|
+
*/
|
|
490
|
+
"aria-rowcount": _propTypes.default.number,
|
|
491
|
+
/**
|
|
492
|
+
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
493
|
+
* @see aria-rowcount @see aria-rowspan.
|
|
494
|
+
*/
|
|
495
|
+
"aria-rowindex": _propTypes.default.number,
|
|
496
|
+
/**
|
|
497
|
+
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
498
|
+
* @see aria-rowindex @see aria-colspan.
|
|
499
|
+
*/
|
|
500
|
+
"aria-rowspan": _propTypes.default.number,
|
|
501
|
+
/**
|
|
502
|
+
* Indicates the current "selected" state of various widgets.
|
|
503
|
+
* @see aria-checked @see aria-pressed.
|
|
504
|
+
*/
|
|
505
|
+
"aria-selected": _propTypes.default.oneOfType([
|
|
506
|
+
_propTypes.default.oneOf(["false", "true"]),
|
|
507
|
+
_propTypes.default.bool,
|
|
508
|
+
]),
|
|
509
|
+
/**
|
|
510
|
+
* Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
511
|
+
* @see aria-posinset.
|
|
512
|
+
*/
|
|
513
|
+
"aria-setsize": _propTypes.default.number,
|
|
514
|
+
/**
|
|
515
|
+
* Indicates if items in a table or grid are sorted in ascending or descending order.
|
|
516
|
+
*/
|
|
517
|
+
"aria-sort": _propTypes.default.oneOf([
|
|
518
|
+
"ascending",
|
|
519
|
+
"descending",
|
|
520
|
+
"none",
|
|
521
|
+
"other",
|
|
522
|
+
]),
|
|
523
|
+
/**
|
|
524
|
+
* Defines the maximum allowed value for a range widget.
|
|
525
|
+
*/
|
|
526
|
+
"aria-valuemax": _propTypes.default.number,
|
|
527
|
+
/**
|
|
528
|
+
* Defines the minimum allowed value for a range widget.
|
|
529
|
+
*/
|
|
530
|
+
"aria-valuemin": _propTypes.default.number,
|
|
531
|
+
/**
|
|
532
|
+
* Defines the current value for a range widget.
|
|
533
|
+
* @see aria-valuetext.
|
|
534
|
+
*/
|
|
535
|
+
"aria-valuenow": _propTypes.default.number,
|
|
536
|
+
/**
|
|
537
|
+
* Defines the human readable text alternative of aria-valuenow for a range widget.
|
|
538
|
+
*/
|
|
539
|
+
"aria-valuetext": _propTypes.default.string,
|
|
540
|
+
/**
|
|
541
|
+
* Aria label for accessibility purposes
|
|
542
|
+
*/
|
|
543
|
+
ariaLabel: _propTypes.default.string,
|
|
544
|
+
/**
|
|
545
|
+
* Child content to render in the link.
|
|
546
|
+
*/
|
|
126
547
|
children: _propTypes.default.node,
|
|
127
|
-
|
|
128
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Classes to apply to the component.
|
|
550
|
+
*/
|
|
129
551
|
className: _propTypes.default.string,
|
|
130
|
-
|
|
131
|
-
|
|
552
|
+
/**
|
|
553
|
+
* The disabled state of the link.
|
|
554
|
+
*/
|
|
132
555
|
disabled: _propTypes.default.bool,
|
|
133
|
-
|
|
134
|
-
|
|
556
|
+
/**
|
|
557
|
+
* An href for an anchor tag.
|
|
558
|
+
*/
|
|
135
559
|
href: _propTypes.default.string,
|
|
136
|
-
|
|
137
560
|
/**
|
|
138
|
-
* <a href="https://brand.sage.com/d/NdbrveWvNheA/foundations#/icons/icons" target="_blank">List of supported icons</a>
|
|
139
|
-
*
|
|
140
561
|
* An icon to display next to the link.
|
|
141
562
|
*/
|
|
142
|
-
icon: _propTypes.default.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
563
|
+
icon: _propTypes.default.oneOf([
|
|
564
|
+
"add",
|
|
565
|
+
"alert",
|
|
566
|
+
"analysis",
|
|
567
|
+
"arrow_down",
|
|
568
|
+
"arrow_left_boxed",
|
|
569
|
+
"arrow_left_right_small",
|
|
570
|
+
"arrow_left_small",
|
|
571
|
+
"arrow_left",
|
|
572
|
+
"arrow_right_small",
|
|
573
|
+
"arrow_right",
|
|
574
|
+
"arrow_up",
|
|
575
|
+
"attach",
|
|
576
|
+
"bank",
|
|
577
|
+
"basket_with_squares",
|
|
578
|
+
"basket",
|
|
579
|
+
"bin",
|
|
580
|
+
"block_arrow_right",
|
|
581
|
+
"blocked_square",
|
|
582
|
+
"blocked",
|
|
583
|
+
"bold",
|
|
584
|
+
"boxed_shapes",
|
|
585
|
+
"bulk_destroy",
|
|
586
|
+
"bullet_list_dotted",
|
|
587
|
+
"bullet_list_numbers",
|
|
588
|
+
"bullet_list",
|
|
589
|
+
"business",
|
|
590
|
+
"calendar_today",
|
|
591
|
+
"calendar",
|
|
592
|
+
"call",
|
|
593
|
+
"camera",
|
|
594
|
+
"card_view",
|
|
595
|
+
"caret_down",
|
|
596
|
+
"caret_large_down",
|
|
597
|
+
"caret_large_left",
|
|
598
|
+
"caret_large_right",
|
|
599
|
+
"caret_large_up",
|
|
600
|
+
"caret_left",
|
|
601
|
+
"caret_right",
|
|
602
|
+
"caret_up",
|
|
603
|
+
"cart",
|
|
604
|
+
"chart_bar",
|
|
605
|
+
"chart_line",
|
|
606
|
+
"chart_pie",
|
|
607
|
+
"chat_notes",
|
|
608
|
+
"chat",
|
|
609
|
+
"chevron_down_thick",
|
|
610
|
+
"chevron_down",
|
|
611
|
+
"chevron_left_thick",
|
|
612
|
+
"chevron_left",
|
|
613
|
+
"chevron_right_thick",
|
|
614
|
+
"chevron_right",
|
|
615
|
+
"chevron_up_thick",
|
|
616
|
+
"chevron_up",
|
|
617
|
+
"circle_with_dots",
|
|
618
|
+
"circles_connection",
|
|
619
|
+
"clock",
|
|
620
|
+
"close",
|
|
621
|
+
"coins",
|
|
622
|
+
"collaborate",
|
|
623
|
+
"computer_clock",
|
|
624
|
+
"connect",
|
|
625
|
+
"copy",
|
|
626
|
+
"credit_card_slash",
|
|
627
|
+
"credit_card",
|
|
628
|
+
"cross_circle",
|
|
629
|
+
"cross",
|
|
630
|
+
"csv",
|
|
631
|
+
"delete",
|
|
632
|
+
"delivery",
|
|
633
|
+
"disconnect",
|
|
634
|
+
"disputed",
|
|
635
|
+
"document_right_align",
|
|
636
|
+
"document_tick",
|
|
637
|
+
"document_vertical_lines",
|
|
638
|
+
"download",
|
|
639
|
+
"draft",
|
|
640
|
+
"drag_vertical",
|
|
641
|
+
"drag",
|
|
642
|
+
"dropdown",
|
|
643
|
+
"duplicate",
|
|
644
|
+
"edit",
|
|
645
|
+
"edited",
|
|
646
|
+
"ellipsis_horizontal",
|
|
647
|
+
"ellipsis_vertical",
|
|
648
|
+
"email_switch",
|
|
649
|
+
"email",
|
|
650
|
+
"error_square",
|
|
651
|
+
"error",
|
|
652
|
+
"euro",
|
|
653
|
+
"expand",
|
|
654
|
+
"factory",
|
|
655
|
+
"favourite_lined",
|
|
656
|
+
"favourite",
|
|
657
|
+
"fax",
|
|
658
|
+
"feedback",
|
|
659
|
+
"file_excel",
|
|
660
|
+
"file_generic",
|
|
661
|
+
"file_image",
|
|
662
|
+
"file_pdf",
|
|
663
|
+
"file_word",
|
|
664
|
+
"files_leaning",
|
|
665
|
+
"filter_new",
|
|
666
|
+
"filter",
|
|
667
|
+
"fit_height",
|
|
668
|
+
"fit_width",
|
|
669
|
+
"flag",
|
|
670
|
+
"folder",
|
|
671
|
+
"gift",
|
|
672
|
+
"graph",
|
|
673
|
+
"grid",
|
|
674
|
+
"help",
|
|
675
|
+
"hide",
|
|
676
|
+
"home",
|
|
677
|
+
"image",
|
|
678
|
+
"in_progress",
|
|
679
|
+
"in_transit",
|
|
680
|
+
"individual",
|
|
681
|
+
"info",
|
|
682
|
+
"italic",
|
|
683
|
+
"key",
|
|
684
|
+
"ledger_arrow_left",
|
|
685
|
+
"ledger_arrow_right",
|
|
686
|
+
"ledger",
|
|
687
|
+
"link",
|
|
688
|
+
"list_view",
|
|
689
|
+
"location",
|
|
690
|
+
"locked",
|
|
691
|
+
"logout",
|
|
692
|
+
"lookup",
|
|
693
|
+
"marker",
|
|
694
|
+
"message",
|
|
695
|
+
"messages",
|
|
696
|
+
"minus_large",
|
|
697
|
+
"minus",
|
|
698
|
+
"mobile",
|
|
699
|
+
"money_bag",
|
|
700
|
+
"pause_circle",
|
|
701
|
+
"pause",
|
|
702
|
+
"pdf",
|
|
703
|
+
"people_switch",
|
|
704
|
+
"people",
|
|
705
|
+
"person_info",
|
|
706
|
+
"person_tick",
|
|
707
|
+
"person",
|
|
708
|
+
"phone",
|
|
709
|
+
"play_circle",
|
|
710
|
+
"play",
|
|
711
|
+
"plus_large",
|
|
712
|
+
"plus",
|
|
713
|
+
"pound",
|
|
714
|
+
"print",
|
|
715
|
+
"progress",
|
|
716
|
+
"progressed",
|
|
717
|
+
"question",
|
|
718
|
+
"refresh_clock",
|
|
719
|
+
"refresh",
|
|
720
|
+
"remove",
|
|
721
|
+
"sage_coin",
|
|
722
|
+
"save",
|
|
723
|
+
"scan",
|
|
724
|
+
"search",
|
|
725
|
+
"services",
|
|
726
|
+
"settings",
|
|
727
|
+
"share",
|
|
728
|
+
"shop",
|
|
729
|
+
"sort_down",
|
|
730
|
+
"sort_up",
|
|
731
|
+
"spanner",
|
|
732
|
+
"split_container",
|
|
733
|
+
"split",
|
|
734
|
+
"square_dot",
|
|
735
|
+
"squares_nine",
|
|
736
|
+
"stacked_boxes",
|
|
737
|
+
"stacked_squares",
|
|
738
|
+
"submitted",
|
|
739
|
+
"sync",
|
|
740
|
+
"tag",
|
|
741
|
+
"three_boxes",
|
|
742
|
+
"tick_circle",
|
|
743
|
+
"tick",
|
|
744
|
+
"unlocked",
|
|
745
|
+
"upload",
|
|
746
|
+
"uploaded",
|
|
747
|
+
"video",
|
|
748
|
+
"view",
|
|
749
|
+
"warning",
|
|
750
|
+
]),
|
|
751
|
+
/**
|
|
752
|
+
* Which side of the link to the render the link.
|
|
753
|
+
*/
|
|
754
|
+
iconAlign: _propTypes.default.oneOf(["left", "right"]),
|
|
755
|
+
/**
|
|
756
|
+
* Allows to create skip link
|
|
757
|
+
*/
|
|
758
|
+
isSkipLink: _propTypes.default.bool,
|
|
759
|
+
key: _propTypes.default.oneOfType([
|
|
760
|
+
_propTypes.default.number,
|
|
761
|
+
_propTypes.default.string,
|
|
762
|
+
]),
|
|
763
|
+
/**
|
|
764
|
+
* Function called when the mouse is clicked.
|
|
765
|
+
*/
|
|
148
766
|
onClick: _propTypes.default.func,
|
|
149
|
-
|
|
150
|
-
|
|
767
|
+
/**
|
|
768
|
+
* Function called when a key is pressed.
|
|
769
|
+
*/
|
|
151
770
|
onKeyDown: _propTypes.default.func,
|
|
152
|
-
|
|
153
|
-
|
|
771
|
+
/**
|
|
772
|
+
* Function called when a mouse down event triggers.
|
|
773
|
+
*/
|
|
154
774
|
onMouseDown: _propTypes.default.func,
|
|
155
|
-
|
|
156
|
-
|
|
775
|
+
/**
|
|
776
|
+
* allows to set rel property in <a> tag
|
|
777
|
+
*/
|
|
778
|
+
rel: _propTypes.default.string,
|
|
779
|
+
/**
|
|
780
|
+
* Whether to include the link in the tab order of the page
|
|
781
|
+
*/
|
|
157
782
|
tabbable: _propTypes.default.bool,
|
|
158
|
-
|
|
159
|
-
|
|
783
|
+
/**
|
|
784
|
+
* Target property in which link should open ie: _blank, _self, _parent, _top
|
|
785
|
+
*/
|
|
786
|
+
target: _propTypes.default.string,
|
|
787
|
+
/**
|
|
788
|
+
* A message to display as a tooltip to the link.
|
|
789
|
+
*/
|
|
160
790
|
tooltipMessage: _propTypes.default.string,
|
|
161
|
-
|
|
162
|
-
|
|
791
|
+
/**
|
|
792
|
+
* Positions the tooltip with the link.
|
|
793
|
+
*/
|
|
163
794
|
tooltipPosition: _propTypes.default.oneOf(["bottom", "left", "right", "top"]),
|
|
164
|
-
|
|
165
|
-
/** Allows to create skip link */
|
|
166
|
-
isSkipLink: _propTypes.default.bool,
|
|
167
|
-
|
|
168
|
-
/** Target property in which link should open ie: _blank, _self, _parent, _top */
|
|
169
|
-
target: _propTypes.default.string,
|
|
170
|
-
|
|
171
|
-
/** Aria label for accessibility purposes */
|
|
172
|
-
ariaLabel: _propTypes.default.string,
|
|
173
|
-
|
|
174
|
-
/** allows to set rel property in <a> tag */
|
|
175
|
-
rel: _propTypes.default.string
|
|
176
|
-
};
|
|
177
|
-
Link.defaultProps = {
|
|
178
|
-
iconAlign: "left",
|
|
179
|
-
tabbable: true
|
|
180
795
|
};
|
|
796
|
+
|
|
797
|
+
exports.Link = Link;
|
|
798
|
+
Link.displayName = "Link";
|
|
181
799
|
var _default = Link;
|
|
182
|
-
exports.default = _default;
|
|
800
|
+
exports.default = _default;
|