carbon-react 106.2.2 → 106.3.2
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/input-presentation.component.js +13 -0
- package/esm/__internal__/input/input.component.js +294 -0
- package/esm/__internal__/input-behaviour/input-behaviour.component.js +4 -0
- package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +5 -0
- package/esm/__internal__/validation-message/validation-message.component.js +5 -0
- package/esm/__internal__/validations/validation-icon.component.js +41 -1
- package/esm/components/alert/alert.component.js +38 -252
- package/esm/components/alert/index.d.ts +1 -0
- package/esm/components/badge/badge.component.js +20 -60
- package/esm/components/button/button.component.js +760 -3310
- package/esm/components/carbon-provider/carbon-provider.component.js +48 -106
- package/esm/components/date/__internal__/utils.js +1 -1
- package/esm/components/date/date.component.js +3 -1
- package/esm/components/heading/heading.style.d.ts +2 -2
- package/esm/components/hr/hr.component.js +171 -1305
- package/esm/components/hr/index.d.ts +1 -0
- package/esm/components/inline-inputs/inline-inputs.component.js +35 -90
- package/esm/components/link/index.d.ts +1 -0
- package/esm/components/link/link.component.js +123 -1228
- package/esm/components/navigation-bar/index.d.ts +1 -0
- package/esm/components/navigation-bar/navigation-bar.component.js +1018 -10761
- package/esm/components/pager/pager.style.d.ts +1 -1
- package/esm/components/pod/pod.style.d.ts +1 -1
- package/esm/components/progress-tracker/progress-tracker.component.d.ts +4 -1
- package/esm/components/progress-tracker/progress-tracker.component.js +25 -2
- package/esm/components/progress-tracker/progress-tracker.config.d.ts +0 -1
- package/esm/components/progress-tracker/progress-tracker.config.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.d.ts +5 -3
- package/esm/components/progress-tracker/progress-tracker.style.js +9 -7
- package/esm/components/radio-button/radio-button-svg.component.js +16 -29
- package/esm/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
- package/esm/components/tooltip/tooltip.component.js +85 -254
- package/esm/components/vertical-divider/index.d.ts +1 -0
- package/esm/components/vertical-divider/vertical-divider.component.d.ts +2 -2
- package/esm/components/vertical-divider/vertical-divider.component.js +328 -1406
- package/esm/components/vertical-divider/vertical-divider.style.d.ts +3 -3
- package/lib/__internal__/input/input-presentation.component.js +16 -0
- package/lib/__internal__/input/input.component.js +295 -0
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +6 -1
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +7 -1
- package/lib/__internal__/validation-message/validation-message.component.js +6 -0
- package/lib/__internal__/validations/validation-icon.component.js +39 -0
- package/lib/components/alert/alert.component.js +42 -143
- package/lib/components/alert/index.d.ts +1 -0
- package/lib/components/badge/badge.component.js +24 -50
- package/lib/components/button/button.component.js +768 -3378
- package/lib/components/carbon-provider/carbon-provider.component.js +54 -110
- package/lib/components/date/__internal__/utils.js +1 -1
- package/lib/components/date/date.component.js +3 -1
- package/lib/components/heading/heading.style.d.ts +2 -2
- package/lib/components/hr/hr.component.js +175 -676
- package/lib/components/hr/index.d.ts +1 -0
- package/lib/components/inline-inputs/inline-inputs.component.js +43 -137
- package/lib/components/link/index.d.ts +1 -0
- package/lib/components/link/link.component.js +142 -746
- package/lib/components/navigation-bar/index.d.ts +1 -0
- package/lib/components/navigation-bar/navigation-bar.component.js +1022 -5426
- package/lib/components/pager/pager.style.d.ts +1 -1
- package/lib/components/pod/pod.style.d.ts +1 -1
- package/lib/components/progress-tracker/progress-tracker.component.d.ts +4 -1
- package/lib/components/progress-tracker/progress-tracker.component.js +30 -2
- package/lib/components/progress-tracker/progress-tracker.config.d.ts +0 -1
- package/lib/components/progress-tracker/progress-tracker.config.js +3 -3
- package/lib/components/progress-tracker/progress-tracker.d.ts +5 -3
- package/lib/components/progress-tracker/progress-tracker.style.js +8 -6
- package/lib/components/radio-button/radio-button-svg.component.js +20 -38
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
- package/lib/components/tooltip/tooltip.component.js +98 -215
- package/lib/components/vertical-divider/index.d.ts +1 -0
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +2 -2
- package/lib/components/vertical-divider/vertical-divider.component.js +334 -1457
- package/lib/components/vertical-divider/vertical-divider.style.d.ts +3 -3
- package/package.json +4 -3
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends =
|
|
3
|
-
Object.assign ||
|
|
4
|
-
function (target) {
|
|
5
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
-
var source = arguments[i];
|
|
7
|
-
for (var key in source) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9
|
-
target[key] = source[key];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return target;
|
|
14
|
-
};
|
|
15
|
-
return _extends.apply(this, arguments);
|
|
16
|
-
}
|
|
1
|
+
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); }
|
|
17
2
|
|
|
18
3
|
import React, { useMemo } from "react";
|
|
19
4
|
import PropTypes from "prop-types";
|
|
@@ -22,1258 +7,168 @@ import Event from "../../__internal__/utils/helpers/events";
|
|
|
22
7
|
import { StyledLink, StyledContent } from "./link.style";
|
|
23
8
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
24
9
|
import useLocale from "../../hooks/__internal__/useLocale";
|
|
25
|
-
const Link = /*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
ref
|
|
47
|
-
) => {
|
|
48
|
-
const l = useLocale();
|
|
49
|
-
const tabIndex = tabbable && !disabled ? "0" : "-1";
|
|
10
|
+
const Link = /*#__PURE__*/React.forwardRef(({
|
|
11
|
+
children,
|
|
12
|
+
className,
|
|
13
|
+
onKeyDown,
|
|
14
|
+
href,
|
|
15
|
+
onClick,
|
|
16
|
+
onMouseDown,
|
|
17
|
+
icon,
|
|
18
|
+
iconAlign = "left",
|
|
19
|
+
isSkipLink,
|
|
20
|
+
disabled,
|
|
21
|
+
ariaLabel,
|
|
22
|
+
rel,
|
|
23
|
+
tooltipMessage,
|
|
24
|
+
tooltipPosition,
|
|
25
|
+
tabbable = true,
|
|
26
|
+
target,
|
|
27
|
+
...rest
|
|
28
|
+
}, ref) => {
|
|
29
|
+
const l = useLocale();
|
|
30
|
+
const tabIndex = tabbable && !disabled ? "0" : "-1";
|
|
50
31
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
32
|
+
const handleOnKeyDown = ev => {
|
|
33
|
+
if (onKeyDown) {
|
|
34
|
+
onKeyDown(ev);
|
|
35
|
+
} // return early if there is no onClick or there is a href prop
|
|
36
|
+
// or the event is not an enter key
|
|
56
37
|
|
|
57
|
-
if (href || (!Event.isEnterKey(ev) && !Event.isSpaceKey(ev))) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
38
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
39
|
+
if (href || !Event.isEnterKey(ev) && !Event.isSpaceKey(ev)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
65
42
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type: icon,
|
|
71
|
-
bgSize: "extra-small",
|
|
72
|
-
color: "--colorsActionMajor500",
|
|
73
|
-
disabled: disabled,
|
|
74
|
-
ariaLabel: ariaLabel,
|
|
75
|
-
tooltipMessage: tooltipMessage,
|
|
76
|
-
tooltipPosition: tooltipPosition,
|
|
77
|
-
})
|
|
78
|
-
: null;
|
|
79
|
-
};
|
|
43
|
+
if (onClick) {
|
|
44
|
+
onClick(ev);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
80
47
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
onClick,
|
|
94
|
-
disabled,
|
|
95
|
-
tabIndex,
|
|
96
|
-
target,
|
|
97
|
-
ref,
|
|
98
|
-
href,
|
|
99
|
-
rel,
|
|
100
|
-
"aria-label": ariaLabel,
|
|
101
|
-
...ariaProps,
|
|
102
|
-
};
|
|
48
|
+
const renderLinkIcon = (currentAlignment = "left") => {
|
|
49
|
+
const hasProperAlignment = icon && iconAlign === currentAlignment;
|
|
50
|
+
return hasProperAlignment ? /*#__PURE__*/React.createElement(Icon, {
|
|
51
|
+
type: icon,
|
|
52
|
+
bgSize: "extra-small",
|
|
53
|
+
color: "--colorsActionMajor500",
|
|
54
|
+
disabled: disabled,
|
|
55
|
+
ariaLabel: ariaLabel,
|
|
56
|
+
tooltipMessage: tooltipMessage,
|
|
57
|
+
tooltipPosition: tooltipPosition
|
|
58
|
+
}) : null;
|
|
59
|
+
};
|
|
103
60
|
|
|
104
|
-
|
|
105
|
-
|
|
61
|
+
const ariaProps = useMemo(() => {
|
|
62
|
+
const restObject = rest;
|
|
63
|
+
return Object.keys(restObject).filter(key => key.startsWith("aria")).reduce((obj, key) => {
|
|
64
|
+
obj[key] = restObject[key];
|
|
65
|
+
return obj;
|
|
66
|
+
}, {});
|
|
67
|
+
}, [rest]);
|
|
68
|
+
const componentProps = {
|
|
69
|
+
onKeyDown: handleOnKeyDown,
|
|
70
|
+
onMouseDown,
|
|
71
|
+
onClick,
|
|
72
|
+
disabled,
|
|
73
|
+
tabIndex,
|
|
74
|
+
target,
|
|
75
|
+
ref,
|
|
76
|
+
href,
|
|
77
|
+
rel,
|
|
78
|
+
"aria-label": ariaLabel,
|
|
79
|
+
...ariaProps
|
|
80
|
+
};
|
|
106
81
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
82
|
+
const createLinkBasedOnType = () => {
|
|
83
|
+
let type = "a";
|
|
110
84
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
...componentProps,
|
|
115
|
-
...(type === "button" && {
|
|
116
|
-
role: "link",
|
|
117
|
-
}),
|
|
118
|
-
},
|
|
119
|
-
/*#__PURE__*/ React.createElement(
|
|
120
|
-
React.Fragment,
|
|
121
|
-
null,
|
|
122
|
-
renderLinkIcon(),
|
|
123
|
-
/*#__PURE__*/ React.createElement(
|
|
124
|
-
StyledContent,
|
|
125
|
-
null,
|
|
126
|
-
isSkipLink ? l.link.skipLinkLabel() : children
|
|
127
|
-
),
|
|
128
|
-
renderLinkIcon("right")
|
|
129
|
-
)
|
|
130
|
-
);
|
|
131
|
-
};
|
|
85
|
+
if (onClick && !href) {
|
|
86
|
+
type = "button";
|
|
87
|
+
}
|
|
132
88
|
|
|
133
|
-
return /*#__PURE__*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
className: className,
|
|
140
|
-
iconAlign: iconAlign,
|
|
141
|
-
hasContent: Boolean(children),
|
|
142
|
-
},
|
|
143
|
-
tagComponent("link", rest),
|
|
144
|
-
isSkipLink && {
|
|
145
|
-
"data-element": "skip-link",
|
|
146
|
-
}
|
|
147
|
-
),
|
|
148
|
-
createLinkBasedOnType()
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
);
|
|
89
|
+
return /*#__PURE__*/React.createElement(type, { ...componentProps,
|
|
90
|
+
...(type === "button" && {
|
|
91
|
+
role: "link"
|
|
92
|
+
})
|
|
93
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, renderLinkIcon(), /*#__PURE__*/React.createElement(StyledContent, null, isSkipLink ? l.link.skipLinkLabel() : children), renderLinkIcon("right")));
|
|
94
|
+
};
|
|
152
95
|
|
|
96
|
+
return /*#__PURE__*/React.createElement(StyledLink, _extends({
|
|
97
|
+
isSkipLink: isSkipLink,
|
|
98
|
+
disabled: disabled,
|
|
99
|
+
className: className,
|
|
100
|
+
iconAlign: iconAlign,
|
|
101
|
+
hasContent: Boolean(children)
|
|
102
|
+
}, tagComponent("link", rest), isSkipLink && {
|
|
103
|
+
"data-element": "skip-link"
|
|
104
|
+
}), createLinkBasedOnType());
|
|
105
|
+
});
|
|
153
106
|
Link.propTypes = {
|
|
154
|
-
/**
|
|
155
|
-
* Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
|
|
156
|
-
*/
|
|
157
107
|
"aria-activedescendant": PropTypes.string,
|
|
158
|
-
|
|
159
|
-
* 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.
|
|
160
|
-
*/
|
|
161
|
-
"aria-atomic": PropTypes.oneOfType([
|
|
162
|
-
PropTypes.oneOf(["false", "true"]),
|
|
163
|
-
PropTypes.bool,
|
|
164
|
-
]),
|
|
165
|
-
/**
|
|
166
|
-
* 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
|
|
167
|
-
* presented if they are made.
|
|
168
|
-
*/
|
|
108
|
+
"aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
169
109
|
"aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
*/
|
|
173
|
-
"aria-busy": PropTypes.oneOfType([
|
|
174
|
-
PropTypes.oneOf(["false", "true"]),
|
|
175
|
-
PropTypes.bool,
|
|
176
|
-
]),
|
|
177
|
-
/**
|
|
178
|
-
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
179
|
-
* @see aria-pressed @see aria-selected.
|
|
180
|
-
*/
|
|
181
|
-
"aria-checked": PropTypes.oneOfType([
|
|
182
|
-
PropTypes.oneOf(["false", "mixed", "true"]),
|
|
183
|
-
PropTypes.bool,
|
|
184
|
-
]),
|
|
185
|
-
/**
|
|
186
|
-
* Defines the total number of columns in a table, grid, or treegrid.
|
|
187
|
-
* @see aria-colindex.
|
|
188
|
-
*/
|
|
110
|
+
"aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
111
|
+
"aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
189
112
|
"aria-colcount": PropTypes.number,
|
|
190
|
-
/**
|
|
191
|
-
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
192
|
-
* @see aria-colcount @see aria-colspan.
|
|
193
|
-
*/
|
|
194
113
|
"aria-colindex": PropTypes.number,
|
|
195
|
-
/**
|
|
196
|
-
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
197
|
-
* @see aria-colindex @see aria-rowspan.
|
|
198
|
-
*/
|
|
199
114
|
"aria-colspan": PropTypes.number,
|
|
200
|
-
/**
|
|
201
|
-
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
202
|
-
* @see aria-owns.
|
|
203
|
-
*/
|
|
204
115
|
"aria-controls": PropTypes.string,
|
|
205
|
-
|
|
206
|
-
* Indicates the element that represents the current item within a container or set of related elements.
|
|
207
|
-
*/
|
|
208
|
-
"aria-current": PropTypes.oneOfType([
|
|
209
|
-
PropTypes.oneOf([
|
|
210
|
-
"date",
|
|
211
|
-
"false",
|
|
212
|
-
"location",
|
|
213
|
-
"page",
|
|
214
|
-
"step",
|
|
215
|
-
"time",
|
|
216
|
-
"true",
|
|
217
|
-
]),
|
|
218
|
-
PropTypes.bool,
|
|
219
|
-
]),
|
|
220
|
-
/**
|
|
221
|
-
* Identifies the element (or elements) that describes the object.
|
|
222
|
-
* @see aria-labelledby
|
|
223
|
-
*/
|
|
116
|
+
"aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
|
|
224
117
|
"aria-describedby": PropTypes.string,
|
|
225
|
-
/**
|
|
226
|
-
* Identifies the element that provides a detailed, extended description for the object.
|
|
227
|
-
* @see aria-describedby.
|
|
228
|
-
*/
|
|
229
118
|
"aria-details": PropTypes.string,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
* @see aria-hidden @see aria-readonly.
|
|
233
|
-
*/
|
|
234
|
-
"aria-disabled": PropTypes.oneOfType([
|
|
235
|
-
PropTypes.oneOf(["false", "true"]),
|
|
236
|
-
PropTypes.bool,
|
|
237
|
-
]),
|
|
238
|
-
/**
|
|
239
|
-
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
240
|
-
* @deprecated in ARIA 1.1
|
|
241
|
-
*/
|
|
242
|
-
"aria-dropeffect": PropTypes.oneOf([
|
|
243
|
-
"copy",
|
|
244
|
-
"execute",
|
|
245
|
-
"link",
|
|
246
|
-
"move",
|
|
247
|
-
"none",
|
|
248
|
-
"popup",
|
|
249
|
-
]),
|
|
250
|
-
/**
|
|
251
|
-
* Identifies the element that provides an error message for the object.
|
|
252
|
-
* @see aria-invalid @see aria-describedby.
|
|
253
|
-
*/
|
|
119
|
+
"aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
120
|
+
"aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
254
121
|
"aria-errormessage": PropTypes.string,
|
|
255
|
-
|
|
256
|
-
* Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
|
|
257
|
-
*/
|
|
258
|
-
"aria-expanded": PropTypes.oneOfType([
|
|
259
|
-
PropTypes.oneOf(["false", "true"]),
|
|
260
|
-
PropTypes.bool,
|
|
261
|
-
]),
|
|
262
|
-
/**
|
|
263
|
-
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
264
|
-
* allows assistive technology to override the general default of reading in document source order.
|
|
265
|
-
*/
|
|
122
|
+
"aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
266
123
|
"aria-flowto": PropTypes.string,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
"aria-grabbed": PropTypes.oneOfType([
|
|
272
|
-
PropTypes.oneOf(["false", "true"]),
|
|
273
|
-
PropTypes.bool,
|
|
274
|
-
]),
|
|
275
|
-
/**
|
|
276
|
-
* Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
|
|
277
|
-
*/
|
|
278
|
-
"aria-haspopup": PropTypes.oneOfType([
|
|
279
|
-
PropTypes.oneOf([
|
|
280
|
-
"dialog",
|
|
281
|
-
"false",
|
|
282
|
-
"grid",
|
|
283
|
-
"listbox",
|
|
284
|
-
"menu",
|
|
285
|
-
"tree",
|
|
286
|
-
"true",
|
|
287
|
-
]),
|
|
288
|
-
PropTypes.bool,
|
|
289
|
-
]),
|
|
290
|
-
/**
|
|
291
|
-
* Indicates whether the element is exposed to an accessibility API.
|
|
292
|
-
* @see aria-disabled.
|
|
293
|
-
*/
|
|
294
|
-
"aria-hidden": PropTypes.oneOfType([
|
|
295
|
-
PropTypes.oneOf(["false", "true"]),
|
|
296
|
-
PropTypes.bool,
|
|
297
|
-
]),
|
|
298
|
-
/**
|
|
299
|
-
* Indicates the entered value does not conform to the format expected by the application.
|
|
300
|
-
* @see aria-errormessage.
|
|
301
|
-
*/
|
|
302
|
-
"aria-invalid": PropTypes.oneOfType([
|
|
303
|
-
PropTypes.oneOf(["false", "grammar", "spelling", "true"]),
|
|
304
|
-
PropTypes.bool,
|
|
305
|
-
]),
|
|
306
|
-
/**
|
|
307
|
-
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
308
|
-
*/
|
|
124
|
+
"aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
125
|
+
"aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
|
|
126
|
+
"aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
127
|
+
"aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
|
|
309
128
|
"aria-keyshortcuts": PropTypes.string,
|
|
310
|
-
/**
|
|
311
|
-
* Defines a string value that labels the current element.
|
|
312
|
-
* @see aria-labelledby.
|
|
313
|
-
*/
|
|
314
129
|
"aria-label": PropTypes.string,
|
|
315
|
-
/**
|
|
316
|
-
* Identifies the element (or elements) that labels the current element.
|
|
317
|
-
* @see aria-describedby.
|
|
318
|
-
*/
|
|
319
130
|
"aria-labelledby": PropTypes.string,
|
|
320
|
-
/**
|
|
321
|
-
* Defines the hierarchical level of an element within a structure.
|
|
322
|
-
*/
|
|
323
131
|
"aria-level": PropTypes.number,
|
|
324
|
-
/**
|
|
325
|
-
* 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.
|
|
326
|
-
*/
|
|
327
132
|
"aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"aria-modal": PropTypes.oneOfType([
|
|
332
|
-
PropTypes.oneOf(["false", "true"]),
|
|
333
|
-
PropTypes.bool,
|
|
334
|
-
]),
|
|
335
|
-
/**
|
|
336
|
-
* Indicates whether a text box accepts multiple lines of input or only a single line.
|
|
337
|
-
*/
|
|
338
|
-
"aria-multiline": PropTypes.oneOfType([
|
|
339
|
-
PropTypes.oneOf(["false", "true"]),
|
|
340
|
-
PropTypes.bool,
|
|
341
|
-
]),
|
|
342
|
-
/**
|
|
343
|
-
* Indicates that the user may select more than one item from the current selectable descendants.
|
|
344
|
-
*/
|
|
345
|
-
"aria-multiselectable": PropTypes.oneOfType([
|
|
346
|
-
PropTypes.oneOf(["false", "true"]),
|
|
347
|
-
PropTypes.bool,
|
|
348
|
-
]),
|
|
349
|
-
/**
|
|
350
|
-
* Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
|
|
351
|
-
*/
|
|
133
|
+
"aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
134
|
+
"aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
135
|
+
"aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
352
136
|
"aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
|
|
353
|
-
/**
|
|
354
|
-
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
355
|
-
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
356
|
-
* @see aria-controls.
|
|
357
|
-
*/
|
|
358
137
|
"aria-owns": PropTypes.string,
|
|
359
|
-
/**
|
|
360
|
-
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
361
|
-
* A hint could be a sample value or a brief description of the expected format.
|
|
362
|
-
*/
|
|
363
138
|
"aria-placeholder": PropTypes.string,
|
|
364
|
-
/**
|
|
365
|
-
* 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.
|
|
366
|
-
* @see aria-setsize.
|
|
367
|
-
*/
|
|
368
139
|
"aria-posinset": PropTypes.number,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
"aria-pressed": PropTypes.oneOfType([
|
|
374
|
-
PropTypes.oneOf(["false", "mixed", "true"]),
|
|
375
|
-
PropTypes.bool,
|
|
376
|
-
]),
|
|
377
|
-
/**
|
|
378
|
-
* Indicates that the element is not editable, but is otherwise operable.
|
|
379
|
-
* @see aria-disabled.
|
|
380
|
-
*/
|
|
381
|
-
"aria-readonly": PropTypes.oneOfType([
|
|
382
|
-
PropTypes.oneOf(["false", "true"]),
|
|
383
|
-
PropTypes.bool,
|
|
384
|
-
]),
|
|
385
|
-
/**
|
|
386
|
-
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
387
|
-
* @see aria-atomic.
|
|
388
|
-
*/
|
|
389
|
-
"aria-relevant": PropTypes.oneOf([
|
|
390
|
-
"additions removals",
|
|
391
|
-
"additions text",
|
|
392
|
-
"additions",
|
|
393
|
-
"all",
|
|
394
|
-
"removals additions",
|
|
395
|
-
"removals text",
|
|
396
|
-
"removals",
|
|
397
|
-
"text additions",
|
|
398
|
-
"text removals",
|
|
399
|
-
"text",
|
|
400
|
-
]),
|
|
401
|
-
/**
|
|
402
|
-
* Indicates that user input is required on the element before a form may be submitted.
|
|
403
|
-
*/
|
|
404
|
-
"aria-required": PropTypes.oneOfType([
|
|
405
|
-
PropTypes.oneOf(["false", "true"]),
|
|
406
|
-
PropTypes.bool,
|
|
407
|
-
]),
|
|
408
|
-
/**
|
|
409
|
-
* Defines a human-readable, author-localized description for the role of an element.
|
|
410
|
-
*/
|
|
140
|
+
"aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
141
|
+
"aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
142
|
+
"aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
143
|
+
"aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
411
144
|
"aria-roledescription": PropTypes.string,
|
|
412
|
-
/**
|
|
413
|
-
* Defines the total number of rows in a table, grid, or treegrid.
|
|
414
|
-
* @see aria-rowindex.
|
|
415
|
-
*/
|
|
416
145
|
"aria-rowcount": PropTypes.number,
|
|
417
|
-
/**
|
|
418
|
-
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
419
|
-
* @see aria-rowcount @see aria-rowspan.
|
|
420
|
-
*/
|
|
421
146
|
"aria-rowindex": PropTypes.number,
|
|
422
|
-
/**
|
|
423
|
-
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
424
|
-
* @see aria-rowindex @see aria-colspan.
|
|
425
|
-
*/
|
|
426
147
|
"aria-rowspan": PropTypes.number,
|
|
427
|
-
|
|
428
|
-
* Indicates the current "selected" state of various widgets.
|
|
429
|
-
* @see aria-checked @see aria-pressed.
|
|
430
|
-
*/
|
|
431
|
-
"aria-selected": PropTypes.oneOfType([
|
|
432
|
-
PropTypes.oneOf(["false", "true"]),
|
|
433
|
-
PropTypes.bool,
|
|
434
|
-
]),
|
|
435
|
-
/**
|
|
436
|
-
* 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.
|
|
437
|
-
* @see aria-posinset.
|
|
438
|
-
*/
|
|
148
|
+
"aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
439
149
|
"aria-setsize": PropTypes.number,
|
|
440
|
-
/**
|
|
441
|
-
* Indicates if items in a table or grid are sorted in ascending or descending order.
|
|
442
|
-
*/
|
|
443
150
|
"aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
|
|
444
|
-
/**
|
|
445
|
-
* Defines the maximum allowed value for a range widget.
|
|
446
|
-
*/
|
|
447
151
|
"aria-valuemax": PropTypes.number,
|
|
448
|
-
/**
|
|
449
|
-
* Defines the minimum allowed value for a range widget.
|
|
450
|
-
*/
|
|
451
152
|
"aria-valuemin": PropTypes.number,
|
|
452
|
-
/**
|
|
453
|
-
* Defines the current value for a range widget.
|
|
454
|
-
* @see aria-valuetext.
|
|
455
|
-
*/
|
|
456
153
|
"aria-valuenow": PropTypes.number,
|
|
457
|
-
/**
|
|
458
|
-
* Defines the human readable text alternative of aria-valuenow for a range widget.
|
|
459
|
-
*/
|
|
460
154
|
"aria-valuetext": PropTypes.string,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* An href for an anchor tag.
|
|
479
|
-
*/
|
|
480
|
-
href: PropTypes.string,
|
|
481
|
-
/**
|
|
482
|
-
* An icon to display next to the link.
|
|
483
|
-
*/
|
|
484
|
-
icon: PropTypes.oneOf([
|
|
485
|
-
"add",
|
|
486
|
-
"alert",
|
|
487
|
-
"analysis",
|
|
488
|
-
"arrow_down",
|
|
489
|
-
"arrow_left_boxed",
|
|
490
|
-
"arrow_left_right_small",
|
|
491
|
-
"arrow_left_small",
|
|
492
|
-
"arrow_left",
|
|
493
|
-
"arrow_right_small",
|
|
494
|
-
"arrow_right",
|
|
495
|
-
"arrow_up",
|
|
496
|
-
"attach",
|
|
497
|
-
"bank",
|
|
498
|
-
"basket_with_squares",
|
|
499
|
-
"basket",
|
|
500
|
-
"bin",
|
|
501
|
-
"block_arrow_right",
|
|
502
|
-
"blocked_square",
|
|
503
|
-
"blocked",
|
|
504
|
-
"bold",
|
|
505
|
-
"boxed_shapes",
|
|
506
|
-
"bulk_destroy",
|
|
507
|
-
"bullet_list_dotted",
|
|
508
|
-
"bullet_list_numbers",
|
|
509
|
-
"bullet_list",
|
|
510
|
-
"business",
|
|
511
|
-
"calendar_today",
|
|
512
|
-
"calendar",
|
|
513
|
-
"call",
|
|
514
|
-
"camera",
|
|
515
|
-
"card_view",
|
|
516
|
-
"caret_down",
|
|
517
|
-
"caret_large_down",
|
|
518
|
-
"caret_large_left",
|
|
519
|
-
"caret_large_right",
|
|
520
|
-
"caret_large_up",
|
|
521
|
-
"caret_left",
|
|
522
|
-
"caret_right",
|
|
523
|
-
"caret_up",
|
|
524
|
-
"cart",
|
|
525
|
-
"chart_bar",
|
|
526
|
-
"chart_line",
|
|
527
|
-
"chart_pie",
|
|
528
|
-
"chat_notes",
|
|
529
|
-
"chat",
|
|
530
|
-
"chevron_down_thick",
|
|
531
|
-
"chevron_down",
|
|
532
|
-
"chevron_left_thick",
|
|
533
|
-
"chevron_left",
|
|
534
|
-
"chevron_right_thick",
|
|
535
|
-
"chevron_right",
|
|
536
|
-
"chevron_up_thick",
|
|
537
|
-
"chevron_up",
|
|
538
|
-
"circle_with_dots",
|
|
539
|
-
"circles_connection",
|
|
540
|
-
"clock",
|
|
541
|
-
"close",
|
|
542
|
-
"coins",
|
|
543
|
-
"collaborate",
|
|
544
|
-
"computer_clock",
|
|
545
|
-
"connect",
|
|
546
|
-
"copy",
|
|
547
|
-
"credit_card_slash",
|
|
548
|
-
"credit_card",
|
|
549
|
-
"cross_circle",
|
|
550
|
-
"cross",
|
|
551
|
-
"csv",
|
|
552
|
-
"delete",
|
|
553
|
-
"delivery",
|
|
554
|
-
"disconnect",
|
|
555
|
-
"disputed",
|
|
556
|
-
"document_right_align",
|
|
557
|
-
"document_tick",
|
|
558
|
-
"document_vertical_lines",
|
|
559
|
-
"download",
|
|
560
|
-
"draft",
|
|
561
|
-
"drag_vertical",
|
|
562
|
-
"drag",
|
|
563
|
-
"dropdown",
|
|
564
|
-
"duplicate",
|
|
565
|
-
"edit",
|
|
566
|
-
"edited",
|
|
567
|
-
"ellipsis_horizontal",
|
|
568
|
-
"ellipsis_vertical",
|
|
569
|
-
"email_switch",
|
|
570
|
-
"email",
|
|
571
|
-
"error_square",
|
|
572
|
-
"error",
|
|
573
|
-
"euro",
|
|
574
|
-
"expand",
|
|
575
|
-
"factory",
|
|
576
|
-
"favourite_lined",
|
|
577
|
-
"favourite",
|
|
578
|
-
"fax",
|
|
579
|
-
"feedback",
|
|
580
|
-
"file_excel",
|
|
581
|
-
"file_generic",
|
|
582
|
-
"file_image",
|
|
583
|
-
"file_pdf",
|
|
584
|
-
"file_word",
|
|
585
|
-
"files_leaning",
|
|
586
|
-
"filter_new",
|
|
587
|
-
"filter",
|
|
588
|
-
"fit_height",
|
|
589
|
-
"fit_width",
|
|
590
|
-
"flag",
|
|
591
|
-
"folder",
|
|
592
|
-
"gift",
|
|
593
|
-
"graph",
|
|
594
|
-
"grid",
|
|
595
|
-
"help",
|
|
596
|
-
"hide",
|
|
597
|
-
"home",
|
|
598
|
-
"image",
|
|
599
|
-
"in_progress",
|
|
600
|
-
"in_transit",
|
|
601
|
-
"individual",
|
|
602
|
-
"info",
|
|
603
|
-
"italic",
|
|
604
|
-
"key",
|
|
605
|
-
"ledger_arrow_left",
|
|
606
|
-
"ledger_arrow_right",
|
|
607
|
-
"ledger",
|
|
608
|
-
"link",
|
|
609
|
-
"list_view",
|
|
610
|
-
"location",
|
|
611
|
-
"locked",
|
|
612
|
-
"logout",
|
|
613
|
-
"lookup",
|
|
614
|
-
"marker",
|
|
615
|
-
"message",
|
|
616
|
-
"messages",
|
|
617
|
-
"minus_large",
|
|
618
|
-
"minus",
|
|
619
|
-
"mobile",
|
|
620
|
-
"money_bag",
|
|
621
|
-
"pause_circle",
|
|
622
|
-
"pause",
|
|
623
|
-
"pdf",
|
|
624
|
-
"people_switch",
|
|
625
|
-
"people",
|
|
626
|
-
"person_info",
|
|
627
|
-
"person_tick",
|
|
628
|
-
"person",
|
|
629
|
-
"phone",
|
|
630
|
-
"play_circle",
|
|
631
|
-
"play",
|
|
632
|
-
"plus_large",
|
|
633
|
-
"plus",
|
|
634
|
-
"pound",
|
|
635
|
-
"print",
|
|
636
|
-
"progress",
|
|
637
|
-
"progressed",
|
|
638
|
-
"question",
|
|
639
|
-
"refresh_clock",
|
|
640
|
-
"refresh",
|
|
641
|
-
"remove",
|
|
642
|
-
"sage_coin",
|
|
643
|
-
"save",
|
|
644
|
-
"scan",
|
|
645
|
-
"search",
|
|
646
|
-
"services",
|
|
647
|
-
"settings",
|
|
648
|
-
"share",
|
|
649
|
-
"shop",
|
|
650
|
-
"sort_down",
|
|
651
|
-
"sort_up",
|
|
652
|
-
"spanner",
|
|
653
|
-
"split_container",
|
|
654
|
-
"split",
|
|
655
|
-
"square_dot",
|
|
656
|
-
"squares_nine",
|
|
657
|
-
"stacked_boxes",
|
|
658
|
-
"stacked_squares",
|
|
659
|
-
"submitted",
|
|
660
|
-
"sync",
|
|
661
|
-
"tag",
|
|
662
|
-
"three_boxes",
|
|
663
|
-
"tick_circle",
|
|
664
|
-
"tick",
|
|
665
|
-
"unlocked",
|
|
666
|
-
"upload",
|
|
667
|
-
"uploaded",
|
|
668
|
-
"video",
|
|
669
|
-
"view",
|
|
670
|
-
"warning",
|
|
671
|
-
]),
|
|
672
|
-
/**
|
|
673
|
-
* Which side of the link to the render the link.
|
|
674
|
-
*/
|
|
675
|
-
iconAlign: PropTypes.oneOf(["left", "right"]),
|
|
676
|
-
/**
|
|
677
|
-
* Allows to create skip link
|
|
678
|
-
*/
|
|
679
|
-
isSkipLink: PropTypes.bool,
|
|
680
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
681
|
-
/**
|
|
682
|
-
* Function called when the mouse is clicked.
|
|
683
|
-
*/
|
|
684
|
-
onClick: PropTypes.func,
|
|
685
|
-
/**
|
|
686
|
-
* Function called when a key is pressed.
|
|
687
|
-
*/
|
|
688
|
-
onKeyDown: PropTypes.func,
|
|
689
|
-
/**
|
|
690
|
-
* Function called when a mouse down event triggers.
|
|
691
|
-
*/
|
|
692
|
-
onMouseDown: PropTypes.func,
|
|
693
|
-
/**
|
|
694
|
-
* allows to set rel property in <a> tag
|
|
695
|
-
*/
|
|
696
|
-
rel: PropTypes.string,
|
|
697
|
-
/**
|
|
698
|
-
* Whether to include the link in the tab order of the page
|
|
699
|
-
*/
|
|
700
|
-
tabbable: PropTypes.bool,
|
|
701
|
-
/**
|
|
702
|
-
* Target property in which link should open ie: _blank, _self, _parent, _top
|
|
703
|
-
*/
|
|
704
|
-
target: PropTypes.string,
|
|
705
|
-
/**
|
|
706
|
-
* A message to display as a tooltip to the link.
|
|
707
|
-
*/
|
|
708
|
-
tooltipMessage: PropTypes.string,
|
|
709
|
-
/**
|
|
710
|
-
* Positions the tooltip with the link.
|
|
711
|
-
*/
|
|
712
|
-
tooltipPosition: PropTypes.oneOf(["bottom", "left", "right", "top"]),
|
|
155
|
+
"ariaLabel": PropTypes.string,
|
|
156
|
+
"children": PropTypes.node,
|
|
157
|
+
"className": PropTypes.string,
|
|
158
|
+
"disabled": PropTypes.bool,
|
|
159
|
+
"href": PropTypes.string,
|
|
160
|
+
"icon": PropTypes.oneOf(["add", "alert", "analysis", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_up", "attach", "bank", "basket_with_squares", "basket", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_today", "calendar", "call", "camera", "card_view", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "coins", "collaborate", "computer_clock", "connect", "copy", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "gift", "graph", "grid", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "italic", "key", "ledger_arrow_left", "ledger_arrow_right", "ledger", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "messages", "minus_large", "minus", "mobile", "money_bag", "pause_circle", "pause", "pdf", "people_switch", "people", "person_info", "person_tick", "person", "phone", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "question", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "services", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "sync", "tag", "three_boxes", "tick_circle", "tick", "unlocked", "upload", "uploaded", "video", "view", "warning"]),
|
|
161
|
+
"iconAlign": PropTypes.oneOf(["left", "right"]),
|
|
162
|
+
"isSkipLink": PropTypes.bool,
|
|
163
|
+
"onClick": PropTypes.func,
|
|
164
|
+
"onKeyDown": PropTypes.func,
|
|
165
|
+
"onMouseDown": PropTypes.func,
|
|
166
|
+
"rel": PropTypes.string,
|
|
167
|
+
"tabbable": PropTypes.bool,
|
|
168
|
+
"target": PropTypes.string,
|
|
169
|
+
"tooltipMessage": PropTypes.string,
|
|
170
|
+
"tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"])
|
|
713
171
|
};
|
|
714
|
-
|
|
715
|
-
Link.propTypes = {
|
|
716
|
-
/**
|
|
717
|
-
* Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
|
|
718
|
-
*/
|
|
719
|
-
"aria-activedescendant": PropTypes.string,
|
|
720
|
-
/**
|
|
721
|
-
* 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.
|
|
722
|
-
*/
|
|
723
|
-
"aria-atomic": PropTypes.oneOfType([
|
|
724
|
-
PropTypes.oneOf(["false", "true"]),
|
|
725
|
-
PropTypes.bool,
|
|
726
|
-
]),
|
|
727
|
-
/**
|
|
728
|
-
* 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
|
|
729
|
-
* presented if they are made.
|
|
730
|
-
*/
|
|
731
|
-
"aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
|
|
732
|
-
/**
|
|
733
|
-
* 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.
|
|
734
|
-
*/
|
|
735
|
-
"aria-busy": PropTypes.oneOfType([
|
|
736
|
-
PropTypes.oneOf(["false", "true"]),
|
|
737
|
-
PropTypes.bool,
|
|
738
|
-
]),
|
|
739
|
-
/**
|
|
740
|
-
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
741
|
-
* @see aria-pressed @see aria-selected.
|
|
742
|
-
*/
|
|
743
|
-
"aria-checked": PropTypes.oneOfType([
|
|
744
|
-
PropTypes.oneOf(["false", "mixed", "true"]),
|
|
745
|
-
PropTypes.bool,
|
|
746
|
-
]),
|
|
747
|
-
/**
|
|
748
|
-
* Defines the total number of columns in a table, grid, or treegrid.
|
|
749
|
-
* @see aria-colindex.
|
|
750
|
-
*/
|
|
751
|
-
"aria-colcount": PropTypes.number,
|
|
752
|
-
/**
|
|
753
|
-
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
754
|
-
* @see aria-colcount @see aria-colspan.
|
|
755
|
-
*/
|
|
756
|
-
"aria-colindex": PropTypes.number,
|
|
757
|
-
/**
|
|
758
|
-
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
759
|
-
* @see aria-colindex @see aria-rowspan.
|
|
760
|
-
*/
|
|
761
|
-
"aria-colspan": PropTypes.number,
|
|
762
|
-
/**
|
|
763
|
-
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
764
|
-
* @see aria-owns.
|
|
765
|
-
*/
|
|
766
|
-
"aria-controls": PropTypes.string,
|
|
767
|
-
/**
|
|
768
|
-
* Indicates the element that represents the current item within a container or set of related elements.
|
|
769
|
-
*/
|
|
770
|
-
"aria-current": PropTypes.oneOfType([
|
|
771
|
-
PropTypes.oneOf([
|
|
772
|
-
"date",
|
|
773
|
-
"false",
|
|
774
|
-
"location",
|
|
775
|
-
"page",
|
|
776
|
-
"step",
|
|
777
|
-
"time",
|
|
778
|
-
"true",
|
|
779
|
-
]),
|
|
780
|
-
PropTypes.bool,
|
|
781
|
-
]),
|
|
782
|
-
/**
|
|
783
|
-
* Identifies the element (or elements) that describes the object.
|
|
784
|
-
* @see aria-labelledby
|
|
785
|
-
*/
|
|
786
|
-
"aria-describedby": PropTypes.string,
|
|
787
|
-
/**
|
|
788
|
-
* Identifies the element that provides a detailed, extended description for the object.
|
|
789
|
-
* @see aria-describedby.
|
|
790
|
-
*/
|
|
791
|
-
"aria-details": PropTypes.string,
|
|
792
|
-
/**
|
|
793
|
-
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
794
|
-
* @see aria-hidden @see aria-readonly.
|
|
795
|
-
*/
|
|
796
|
-
"aria-disabled": PropTypes.oneOfType([
|
|
797
|
-
PropTypes.oneOf(["false", "true"]),
|
|
798
|
-
PropTypes.bool,
|
|
799
|
-
]),
|
|
800
|
-
/**
|
|
801
|
-
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
802
|
-
* @deprecated in ARIA 1.1
|
|
803
|
-
*/
|
|
804
|
-
"aria-dropeffect": PropTypes.oneOf([
|
|
805
|
-
"copy",
|
|
806
|
-
"execute",
|
|
807
|
-
"link",
|
|
808
|
-
"move",
|
|
809
|
-
"none",
|
|
810
|
-
"popup",
|
|
811
|
-
]),
|
|
812
|
-
/**
|
|
813
|
-
* Identifies the element that provides an error message for the object.
|
|
814
|
-
* @see aria-invalid @see aria-describedby.
|
|
815
|
-
*/
|
|
816
|
-
"aria-errormessage": PropTypes.string,
|
|
817
|
-
/**
|
|
818
|
-
* Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
|
|
819
|
-
*/
|
|
820
|
-
"aria-expanded": PropTypes.oneOfType([
|
|
821
|
-
PropTypes.oneOf(["false", "true"]),
|
|
822
|
-
PropTypes.bool,
|
|
823
|
-
]),
|
|
824
|
-
/**
|
|
825
|
-
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
826
|
-
* allows assistive technology to override the general default of reading in document source order.
|
|
827
|
-
*/
|
|
828
|
-
"aria-flowto": PropTypes.string,
|
|
829
|
-
/**
|
|
830
|
-
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
831
|
-
* @deprecated in ARIA 1.1
|
|
832
|
-
*/
|
|
833
|
-
"aria-grabbed": PropTypes.oneOfType([
|
|
834
|
-
PropTypes.oneOf(["false", "true"]),
|
|
835
|
-
PropTypes.bool,
|
|
836
|
-
]),
|
|
837
|
-
/**
|
|
838
|
-
* Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
|
|
839
|
-
*/
|
|
840
|
-
"aria-haspopup": PropTypes.oneOfType([
|
|
841
|
-
PropTypes.oneOf([
|
|
842
|
-
"dialog",
|
|
843
|
-
"false",
|
|
844
|
-
"grid",
|
|
845
|
-
"listbox",
|
|
846
|
-
"menu",
|
|
847
|
-
"tree",
|
|
848
|
-
"true",
|
|
849
|
-
]),
|
|
850
|
-
PropTypes.bool,
|
|
851
|
-
]),
|
|
852
|
-
/**
|
|
853
|
-
* Indicates whether the element is exposed to an accessibility API.
|
|
854
|
-
* @see aria-disabled.
|
|
855
|
-
*/
|
|
856
|
-
"aria-hidden": PropTypes.oneOfType([
|
|
857
|
-
PropTypes.oneOf(["false", "true"]),
|
|
858
|
-
PropTypes.bool,
|
|
859
|
-
]),
|
|
860
|
-
/**
|
|
861
|
-
* Indicates the entered value does not conform to the format expected by the application.
|
|
862
|
-
* @see aria-errormessage.
|
|
863
|
-
*/
|
|
864
|
-
"aria-invalid": PropTypes.oneOfType([
|
|
865
|
-
PropTypes.oneOf(["false", "grammar", "spelling", "true"]),
|
|
866
|
-
PropTypes.bool,
|
|
867
|
-
]),
|
|
868
|
-
/**
|
|
869
|
-
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
870
|
-
*/
|
|
871
|
-
"aria-keyshortcuts": PropTypes.string,
|
|
872
|
-
/**
|
|
873
|
-
* Defines a string value that labels the current element.
|
|
874
|
-
* @see aria-labelledby.
|
|
875
|
-
*/
|
|
876
|
-
"aria-label": PropTypes.string,
|
|
877
|
-
/**
|
|
878
|
-
* Identifies the element (or elements) that labels the current element.
|
|
879
|
-
* @see aria-describedby.
|
|
880
|
-
*/
|
|
881
|
-
"aria-labelledby": PropTypes.string,
|
|
882
|
-
/**
|
|
883
|
-
* Defines the hierarchical level of an element within a structure.
|
|
884
|
-
*/
|
|
885
|
-
"aria-level": PropTypes.number,
|
|
886
|
-
/**
|
|
887
|
-
* 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.
|
|
888
|
-
*/
|
|
889
|
-
"aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
|
|
890
|
-
/**
|
|
891
|
-
* Indicates whether an element is modal when displayed.
|
|
892
|
-
*/
|
|
893
|
-
"aria-modal": PropTypes.oneOfType([
|
|
894
|
-
PropTypes.oneOf(["false", "true"]),
|
|
895
|
-
PropTypes.bool,
|
|
896
|
-
]),
|
|
897
|
-
/**
|
|
898
|
-
* Indicates whether a text box accepts multiple lines of input or only a single line.
|
|
899
|
-
*/
|
|
900
|
-
"aria-multiline": PropTypes.oneOfType([
|
|
901
|
-
PropTypes.oneOf(["false", "true"]),
|
|
902
|
-
PropTypes.bool,
|
|
903
|
-
]),
|
|
904
|
-
/**
|
|
905
|
-
* Indicates that the user may select more than one item from the current selectable descendants.
|
|
906
|
-
*/
|
|
907
|
-
"aria-multiselectable": PropTypes.oneOfType([
|
|
908
|
-
PropTypes.oneOf(["false", "true"]),
|
|
909
|
-
PropTypes.bool,
|
|
910
|
-
]),
|
|
911
|
-
/**
|
|
912
|
-
* Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
|
|
913
|
-
*/
|
|
914
|
-
"aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
|
|
915
|
-
/**
|
|
916
|
-
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
917
|
-
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
918
|
-
* @see aria-controls.
|
|
919
|
-
*/
|
|
920
|
-
"aria-owns": PropTypes.string,
|
|
921
|
-
/**
|
|
922
|
-
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
923
|
-
* A hint could be a sample value or a brief description of the expected format.
|
|
924
|
-
*/
|
|
925
|
-
"aria-placeholder": PropTypes.string,
|
|
926
|
-
/**
|
|
927
|
-
* 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.
|
|
928
|
-
* @see aria-setsize.
|
|
929
|
-
*/
|
|
930
|
-
"aria-posinset": PropTypes.number,
|
|
931
|
-
/**
|
|
932
|
-
* Indicates the current "pressed" state of toggle buttons.
|
|
933
|
-
* @see aria-checked @see aria-selected.
|
|
934
|
-
*/
|
|
935
|
-
"aria-pressed": PropTypes.oneOfType([
|
|
936
|
-
PropTypes.oneOf(["false", "mixed", "true"]),
|
|
937
|
-
PropTypes.bool,
|
|
938
|
-
]),
|
|
939
|
-
/**
|
|
940
|
-
* Indicates that the element is not editable, but is otherwise operable.
|
|
941
|
-
* @see aria-disabled.
|
|
942
|
-
*/
|
|
943
|
-
"aria-readonly": PropTypes.oneOfType([
|
|
944
|
-
PropTypes.oneOf(["false", "true"]),
|
|
945
|
-
PropTypes.bool,
|
|
946
|
-
]),
|
|
947
|
-
/**
|
|
948
|
-
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
949
|
-
* @see aria-atomic.
|
|
950
|
-
*/
|
|
951
|
-
"aria-relevant": PropTypes.oneOf([
|
|
952
|
-
"additions removals",
|
|
953
|
-
"additions text",
|
|
954
|
-
"additions",
|
|
955
|
-
"all",
|
|
956
|
-
"removals additions",
|
|
957
|
-
"removals text",
|
|
958
|
-
"removals",
|
|
959
|
-
"text additions",
|
|
960
|
-
"text removals",
|
|
961
|
-
"text",
|
|
962
|
-
]),
|
|
963
|
-
/**
|
|
964
|
-
* Indicates that user input is required on the element before a form may be submitted.
|
|
965
|
-
*/
|
|
966
|
-
"aria-required": PropTypes.oneOfType([
|
|
967
|
-
PropTypes.oneOf(["false", "true"]),
|
|
968
|
-
PropTypes.bool,
|
|
969
|
-
]),
|
|
970
|
-
/**
|
|
971
|
-
* Defines a human-readable, author-localized description for the role of an element.
|
|
972
|
-
*/
|
|
973
|
-
"aria-roledescription": PropTypes.string,
|
|
974
|
-
/**
|
|
975
|
-
* Defines the total number of rows in a table, grid, or treegrid.
|
|
976
|
-
* @see aria-rowindex.
|
|
977
|
-
*/
|
|
978
|
-
"aria-rowcount": PropTypes.number,
|
|
979
|
-
/**
|
|
980
|
-
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
981
|
-
* @see aria-rowcount @see aria-rowspan.
|
|
982
|
-
*/
|
|
983
|
-
"aria-rowindex": PropTypes.number,
|
|
984
|
-
/**
|
|
985
|
-
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
986
|
-
* @see aria-rowindex @see aria-colspan.
|
|
987
|
-
*/
|
|
988
|
-
"aria-rowspan": PropTypes.number,
|
|
989
|
-
/**
|
|
990
|
-
* Indicates the current "selected" state of various widgets.
|
|
991
|
-
* @see aria-checked @see aria-pressed.
|
|
992
|
-
*/
|
|
993
|
-
"aria-selected": PropTypes.oneOfType([
|
|
994
|
-
PropTypes.oneOf(["false", "true"]),
|
|
995
|
-
PropTypes.bool,
|
|
996
|
-
]),
|
|
997
|
-
/**
|
|
998
|
-
* 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.
|
|
999
|
-
* @see aria-posinset.
|
|
1000
|
-
*/
|
|
1001
|
-
"aria-setsize": PropTypes.number,
|
|
1002
|
-
/**
|
|
1003
|
-
* Indicates if items in a table or grid are sorted in ascending or descending order.
|
|
1004
|
-
*/
|
|
1005
|
-
"aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
|
|
1006
|
-
/**
|
|
1007
|
-
* Defines the maximum allowed value for a range widget.
|
|
1008
|
-
*/
|
|
1009
|
-
"aria-valuemax": PropTypes.number,
|
|
1010
|
-
/**
|
|
1011
|
-
* Defines the minimum allowed value for a range widget.
|
|
1012
|
-
*/
|
|
1013
|
-
"aria-valuemin": PropTypes.number,
|
|
1014
|
-
/**
|
|
1015
|
-
* Defines the current value for a range widget.
|
|
1016
|
-
* @see aria-valuetext.
|
|
1017
|
-
*/
|
|
1018
|
-
"aria-valuenow": PropTypes.number,
|
|
1019
|
-
/**
|
|
1020
|
-
* Defines the human readable text alternative of aria-valuenow for a range widget.
|
|
1021
|
-
*/
|
|
1022
|
-
"aria-valuetext": PropTypes.string,
|
|
1023
|
-
/**
|
|
1024
|
-
* Aria label for accessibility purposes
|
|
1025
|
-
*/
|
|
1026
|
-
ariaLabel: PropTypes.string,
|
|
1027
|
-
/**
|
|
1028
|
-
* Child content to render in the link.
|
|
1029
|
-
*/
|
|
1030
|
-
children: PropTypes.node,
|
|
1031
|
-
/**
|
|
1032
|
-
* Classes to apply to the component.
|
|
1033
|
-
*/
|
|
1034
|
-
className: PropTypes.string,
|
|
1035
|
-
/**
|
|
1036
|
-
* The disabled state of the link.
|
|
1037
|
-
*/
|
|
1038
|
-
disabled: PropTypes.bool,
|
|
1039
|
-
/**
|
|
1040
|
-
* An href for an anchor tag.
|
|
1041
|
-
*/
|
|
1042
|
-
href: PropTypes.string,
|
|
1043
|
-
/**
|
|
1044
|
-
* An icon to display next to the link.
|
|
1045
|
-
*/
|
|
1046
|
-
icon: PropTypes.oneOf([
|
|
1047
|
-
"add",
|
|
1048
|
-
"alert",
|
|
1049
|
-
"analysis",
|
|
1050
|
-
"arrow_down",
|
|
1051
|
-
"arrow_left_boxed",
|
|
1052
|
-
"arrow_left_right_small",
|
|
1053
|
-
"arrow_left_small",
|
|
1054
|
-
"arrow_left",
|
|
1055
|
-
"arrow_right_small",
|
|
1056
|
-
"arrow_right",
|
|
1057
|
-
"arrow_up",
|
|
1058
|
-
"attach",
|
|
1059
|
-
"bank",
|
|
1060
|
-
"basket_with_squares",
|
|
1061
|
-
"basket",
|
|
1062
|
-
"bin",
|
|
1063
|
-
"block_arrow_right",
|
|
1064
|
-
"blocked_square",
|
|
1065
|
-
"blocked",
|
|
1066
|
-
"bold",
|
|
1067
|
-
"boxed_shapes",
|
|
1068
|
-
"bulk_destroy",
|
|
1069
|
-
"bullet_list_dotted",
|
|
1070
|
-
"bullet_list_numbers",
|
|
1071
|
-
"bullet_list",
|
|
1072
|
-
"business",
|
|
1073
|
-
"calendar_today",
|
|
1074
|
-
"calendar",
|
|
1075
|
-
"call",
|
|
1076
|
-
"camera",
|
|
1077
|
-
"card_view",
|
|
1078
|
-
"caret_down",
|
|
1079
|
-
"caret_large_down",
|
|
1080
|
-
"caret_large_left",
|
|
1081
|
-
"caret_large_right",
|
|
1082
|
-
"caret_large_up",
|
|
1083
|
-
"caret_left",
|
|
1084
|
-
"caret_right",
|
|
1085
|
-
"caret_up",
|
|
1086
|
-
"cart",
|
|
1087
|
-
"chart_bar",
|
|
1088
|
-
"chart_line",
|
|
1089
|
-
"chart_pie",
|
|
1090
|
-
"chat_notes",
|
|
1091
|
-
"chat",
|
|
1092
|
-
"chevron_down_thick",
|
|
1093
|
-
"chevron_down",
|
|
1094
|
-
"chevron_left_thick",
|
|
1095
|
-
"chevron_left",
|
|
1096
|
-
"chevron_right_thick",
|
|
1097
|
-
"chevron_right",
|
|
1098
|
-
"chevron_up_thick",
|
|
1099
|
-
"chevron_up",
|
|
1100
|
-
"circle_with_dots",
|
|
1101
|
-
"circles_connection",
|
|
1102
|
-
"clock",
|
|
1103
|
-
"close",
|
|
1104
|
-
"coins",
|
|
1105
|
-
"collaborate",
|
|
1106
|
-
"computer_clock",
|
|
1107
|
-
"connect",
|
|
1108
|
-
"copy",
|
|
1109
|
-
"credit_card_slash",
|
|
1110
|
-
"credit_card",
|
|
1111
|
-
"cross_circle",
|
|
1112
|
-
"cross",
|
|
1113
|
-
"csv",
|
|
1114
|
-
"delete",
|
|
1115
|
-
"delivery",
|
|
1116
|
-
"disconnect",
|
|
1117
|
-
"disputed",
|
|
1118
|
-
"document_right_align",
|
|
1119
|
-
"document_tick",
|
|
1120
|
-
"document_vertical_lines",
|
|
1121
|
-
"download",
|
|
1122
|
-
"draft",
|
|
1123
|
-
"drag_vertical",
|
|
1124
|
-
"drag",
|
|
1125
|
-
"dropdown",
|
|
1126
|
-
"duplicate",
|
|
1127
|
-
"edit",
|
|
1128
|
-
"edited",
|
|
1129
|
-
"ellipsis_horizontal",
|
|
1130
|
-
"ellipsis_vertical",
|
|
1131
|
-
"email_switch",
|
|
1132
|
-
"email",
|
|
1133
|
-
"error_square",
|
|
1134
|
-
"error",
|
|
1135
|
-
"euro",
|
|
1136
|
-
"expand",
|
|
1137
|
-
"factory",
|
|
1138
|
-
"favourite_lined",
|
|
1139
|
-
"favourite",
|
|
1140
|
-
"fax",
|
|
1141
|
-
"feedback",
|
|
1142
|
-
"file_excel",
|
|
1143
|
-
"file_generic",
|
|
1144
|
-
"file_image",
|
|
1145
|
-
"file_pdf",
|
|
1146
|
-
"file_word",
|
|
1147
|
-
"files_leaning",
|
|
1148
|
-
"filter_new",
|
|
1149
|
-
"filter",
|
|
1150
|
-
"fit_height",
|
|
1151
|
-
"fit_width",
|
|
1152
|
-
"flag",
|
|
1153
|
-
"folder",
|
|
1154
|
-
"gift",
|
|
1155
|
-
"graph",
|
|
1156
|
-
"grid",
|
|
1157
|
-
"help",
|
|
1158
|
-
"hide",
|
|
1159
|
-
"home",
|
|
1160
|
-
"image",
|
|
1161
|
-
"in_progress",
|
|
1162
|
-
"in_transit",
|
|
1163
|
-
"individual",
|
|
1164
|
-
"info",
|
|
1165
|
-
"italic",
|
|
1166
|
-
"key",
|
|
1167
|
-
"ledger_arrow_left",
|
|
1168
|
-
"ledger_arrow_right",
|
|
1169
|
-
"ledger",
|
|
1170
|
-
"link",
|
|
1171
|
-
"list_view",
|
|
1172
|
-
"location",
|
|
1173
|
-
"locked",
|
|
1174
|
-
"logout",
|
|
1175
|
-
"lookup",
|
|
1176
|
-
"marker",
|
|
1177
|
-
"message",
|
|
1178
|
-
"messages",
|
|
1179
|
-
"minus_large",
|
|
1180
|
-
"minus",
|
|
1181
|
-
"mobile",
|
|
1182
|
-
"money_bag",
|
|
1183
|
-
"pause_circle",
|
|
1184
|
-
"pause",
|
|
1185
|
-
"pdf",
|
|
1186
|
-
"people_switch",
|
|
1187
|
-
"people",
|
|
1188
|
-
"person_info",
|
|
1189
|
-
"person_tick",
|
|
1190
|
-
"person",
|
|
1191
|
-
"phone",
|
|
1192
|
-
"play_circle",
|
|
1193
|
-
"play",
|
|
1194
|
-
"plus_large",
|
|
1195
|
-
"plus",
|
|
1196
|
-
"pound",
|
|
1197
|
-
"print",
|
|
1198
|
-
"progress",
|
|
1199
|
-
"progressed",
|
|
1200
|
-
"question",
|
|
1201
|
-
"refresh_clock",
|
|
1202
|
-
"refresh",
|
|
1203
|
-
"remove",
|
|
1204
|
-
"sage_coin",
|
|
1205
|
-
"save",
|
|
1206
|
-
"scan",
|
|
1207
|
-
"search",
|
|
1208
|
-
"services",
|
|
1209
|
-
"settings",
|
|
1210
|
-
"share",
|
|
1211
|
-
"shop",
|
|
1212
|
-
"sort_down",
|
|
1213
|
-
"sort_up",
|
|
1214
|
-
"spanner",
|
|
1215
|
-
"split_container",
|
|
1216
|
-
"split",
|
|
1217
|
-
"square_dot",
|
|
1218
|
-
"squares_nine",
|
|
1219
|
-
"stacked_boxes",
|
|
1220
|
-
"stacked_squares",
|
|
1221
|
-
"submitted",
|
|
1222
|
-
"sync",
|
|
1223
|
-
"tag",
|
|
1224
|
-
"three_boxes",
|
|
1225
|
-
"tick_circle",
|
|
1226
|
-
"tick",
|
|
1227
|
-
"unlocked",
|
|
1228
|
-
"upload",
|
|
1229
|
-
"uploaded",
|
|
1230
|
-
"video",
|
|
1231
|
-
"view",
|
|
1232
|
-
"warning",
|
|
1233
|
-
]),
|
|
1234
|
-
/**
|
|
1235
|
-
* Which side of the link to the render the link.
|
|
1236
|
-
*/
|
|
1237
|
-
iconAlign: PropTypes.oneOf(["left", "right"]),
|
|
1238
|
-
/**
|
|
1239
|
-
* Allows to create skip link
|
|
1240
|
-
*/
|
|
1241
|
-
isSkipLink: PropTypes.bool,
|
|
1242
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1243
|
-
/**
|
|
1244
|
-
* Function called when the mouse is clicked.
|
|
1245
|
-
*/
|
|
1246
|
-
onClick: PropTypes.func,
|
|
1247
|
-
/**
|
|
1248
|
-
* Function called when a key is pressed.
|
|
1249
|
-
*/
|
|
1250
|
-
onKeyDown: PropTypes.func,
|
|
1251
|
-
/**
|
|
1252
|
-
* Function called when a mouse down event triggers.
|
|
1253
|
-
*/
|
|
1254
|
-
onMouseDown: PropTypes.func,
|
|
1255
|
-
/**
|
|
1256
|
-
* allows to set rel property in <a> tag
|
|
1257
|
-
*/
|
|
1258
|
-
rel: PropTypes.string,
|
|
1259
|
-
/**
|
|
1260
|
-
* Whether to include the link in the tab order of the page
|
|
1261
|
-
*/
|
|
1262
|
-
tabbable: PropTypes.bool,
|
|
1263
|
-
/**
|
|
1264
|
-
* Target property in which link should open ie: _blank, _self, _parent, _top
|
|
1265
|
-
*/
|
|
1266
|
-
target: PropTypes.string,
|
|
1267
|
-
/**
|
|
1268
|
-
* A message to display as a tooltip to the link.
|
|
1269
|
-
*/
|
|
1270
|
-
tooltipMessage: PropTypes.string,
|
|
1271
|
-
/**
|
|
1272
|
-
* Positions the tooltip with the link.
|
|
1273
|
-
*/
|
|
1274
|
-
tooltipPosition: PropTypes.oneOf(["bottom", "left", "right", "top"]),
|
|
1275
|
-
};
|
|
1276
|
-
|
|
1277
172
|
export { Link };
|
|
1278
173
|
Link.displayName = "Link";
|
|
1279
|
-
export default Link;
|
|
174
|
+
export default Link;
|