@elastic/eui 78.0.0 → 79.0.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/es/components/loading/index.js +0 -1
- package/es/components/page/page_header/page_header_content.js +15 -11
- package/es/components/skeleton/skeleton_circle.js +24 -3
- package/es/components/skeleton/skeleton_loading.js +11 -5
- package/es/components/skeleton/skeleton_rectangle.js +24 -3
- package/es/components/skeleton/skeleton_text.js +24 -3
- package/es/components/skeleton/skeleton_title.js +24 -3
- package/eui.d.ts +419 -418
- package/i18ntokens.json +14 -14
- package/lib/components/loading/index.js +0 -7
- package/lib/components/page/page_header/page_header_content.js +15 -11
- package/lib/components/skeleton/skeleton_circle.js +24 -3
- package/lib/components/skeleton/skeleton_loading.js +11 -5
- package/lib/components/skeleton/skeleton_rectangle.js +24 -3
- package/lib/components/skeleton/skeleton_text.js +24 -3
- package/lib/components/skeleton/skeleton_title.js +24 -3
- package/optimize/es/components/loading/index.js +0 -1
- package/optimize/es/components/page/page_header/page_header_content.js +10 -11
- package/optimize/es/components/skeleton/skeleton_circle.js +8 -2
- package/optimize/es/components/skeleton/skeleton_loading.js +11 -5
- package/optimize/es/components/skeleton/skeleton_rectangle.js +8 -2
- package/optimize/es/components/skeleton/skeleton_text.js +8 -2
- package/optimize/es/components/skeleton/skeleton_title.js +8 -2
- package/optimize/lib/components/loading/index.js +0 -7
- package/optimize/lib/components/page/page_header/page_header_content.js +10 -11
- package/optimize/lib/components/skeleton/skeleton_circle.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_loading.js +11 -5
- package/optimize/lib/components/skeleton/skeleton_rectangle.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_text.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_title.js +8 -2
- package/package.json +1 -1
- package/test-env/components/loading/index.js +0 -7
- package/test-env/components/page/page_header/page_header_content.js +10 -11
- package/test-env/components/skeleton/skeleton_circle.js +24 -3
- package/test-env/components/skeleton/skeleton_loading.js +11 -5
- package/test-env/components/skeleton/skeleton_rectangle.js +24 -3
- package/test-env/components/skeleton/skeleton_text.js +24 -3
- package/test-env/components/skeleton/skeleton_title.js +24 -3
- package/es/components/loading/loading_content.js +0 -50
- package/lib/components/loading/loading_content.js +0 -54
- package/optimize/es/components/loading/loading_content.js +0 -21
- package/optimize/lib/components/loading/loading_content.js +0 -25
- package/test-env/components/loading/loading_content.js +0 -54
package/i18ntokens.json
CHANGED
|
@@ -6300,37 +6300,37 @@
|
|
|
6300
6300
|
"filepath": "src/components/selectable/selectable.tsx"
|
|
6301
6301
|
},
|
|
6302
6302
|
{
|
|
6303
|
-
"token": "euiSkeletonLoading.
|
|
6304
|
-
"defString": "
|
|
6303
|
+
"token": "euiSkeletonLoading.loadedAriaText",
|
|
6304
|
+
"defString": "Loaded {contentAriaLabel}",
|
|
6305
6305
|
"highlighting": "string",
|
|
6306
6306
|
"loc": {
|
|
6307
6307
|
"start": {
|
|
6308
|
-
"line":
|
|
6309
|
-
"column":
|
|
6310
|
-
"index":
|
|
6308
|
+
"line": 73,
|
|
6309
|
+
"column": 25,
|
|
6310
|
+
"index": 2343
|
|
6311
6311
|
},
|
|
6312
6312
|
"end": {
|
|
6313
|
-
"line":
|
|
6313
|
+
"line": 77,
|
|
6314
6314
|
"column": 3,
|
|
6315
|
-
"index":
|
|
6315
|
+
"index": 2457
|
|
6316
6316
|
}
|
|
6317
6317
|
},
|
|
6318
6318
|
"filepath": "src/components/skeleton/skeleton_loading.tsx"
|
|
6319
6319
|
},
|
|
6320
6320
|
{
|
|
6321
|
-
"token": "euiSkeletonLoading.
|
|
6322
|
-
"defString": "
|
|
6321
|
+
"token": "euiSkeletonLoading.loadingAriaText",
|
|
6322
|
+
"defString": "Loading {contentAriaLabel}",
|
|
6323
6323
|
"highlighting": "string",
|
|
6324
6324
|
"loc": {
|
|
6325
6325
|
"start": {
|
|
6326
|
-
"line":
|
|
6327
|
-
"column":
|
|
6328
|
-
"index":
|
|
6326
|
+
"line": 79,
|
|
6327
|
+
"column": 27,
|
|
6328
|
+
"index": 2487
|
|
6329
6329
|
},
|
|
6330
6330
|
"end": {
|
|
6331
|
-
"line":
|
|
6331
|
+
"line": 83,
|
|
6332
6332
|
"column": 3,
|
|
6333
|
-
"index":
|
|
6333
|
+
"index": 2603
|
|
6334
6334
|
}
|
|
6335
6335
|
},
|
|
6336
6336
|
"filepath": "src/components/skeleton/skeleton_loading.tsx"
|
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "EuiLoadingChart", {
|
|
|
9
9
|
return _loading_chart.EuiLoadingChart;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "EuiLoadingContent", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _loading_content.EuiLoadingContent;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "EuiLoadingElastic", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
@@ -35,6 +29,5 @@ Object.defineProperty(exports, "EuiLoadingSpinner", {
|
|
|
35
29
|
});
|
|
36
30
|
var _loading_elastic = require("./loading_elastic");
|
|
37
31
|
var _loading_chart = require("./loading_chart");
|
|
38
|
-
var _loading_content = require("./loading_content");
|
|
39
32
|
var _loading_spinner = require("./loading_spinner");
|
|
40
33
|
var _loading_logo = require("./loading_logo");
|
|
@@ -24,6 +24,12 @@ var _react2 = require("@emotion/react");
|
|
|
24
24
|
var _excluded = ["className", "pageTitle", "pageTitleProps", "iconType", "iconProps", "tabs", "tabsProps", "description", "breadcrumbs", "breadcrumbProps", "alignItems", "responsive", "rightSideItems", "rightSideGroupProps", "children", "restrictWidth", "paddingSize", "bottomBorder", "style"],
|
|
25
25
|
_excluded2 = ["label"];
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
28
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
30
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
31
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
32
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
33
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
28
34
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
35
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -157,21 +163,19 @@ var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
157
163
|
}
|
|
158
164
|
var rightSideFlexItem;
|
|
159
165
|
if (rightSideItems && rightSideItems.length) {
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
};
|
|
166
|
+
var itemsToRender = isResponsiveBreakpoint ? rightSideItems : _toConsumableArray(rightSideItems).reverse();
|
|
167
|
+
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
168
|
+
return (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
169
|
+
grow: false,
|
|
170
|
+
key: index
|
|
171
|
+
}, item);
|
|
172
|
+
});
|
|
168
173
|
rightSideFlexItem = (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
169
174
|
grow: false
|
|
170
175
|
}, (0, _react2.jsx)(_flex.EuiFlexGroup, _extends({
|
|
171
176
|
wrap: true,
|
|
172
|
-
responsive: false
|
|
173
|
-
|
|
174
|
-
}, rightSideGroupProps), wrapWithFlex()));
|
|
177
|
+
responsive: false
|
|
178
|
+
}, rightSideGroupProps), rightSideFlexItems));
|
|
175
179
|
}
|
|
176
180
|
return alignItems === 'top' || isResponsiveBreakpoint ? (0, _react2.jsx)("div", _extends({
|
|
177
181
|
className: classes,
|
|
@@ -11,7 +11,7 @@ var _services = require("../../services");
|
|
|
11
11
|
var _skeleton_loading = require("./skeleton_loading");
|
|
12
12
|
var _skeleton_circle = require("./skeleton_circle.styles");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
14
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -25,6 +25,9 @@ var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
25
25
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
28
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
29
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
30
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
28
31
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
29
32
|
children = _ref.children,
|
|
30
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -38,7 +41,10 @@ var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
38
41
|
css: cssStyles
|
|
39
42
|
}, rest)),
|
|
40
43
|
loadedContent: children || '',
|
|
41
|
-
contentAriaLabel: contentAriaLabel
|
|
44
|
+
contentAriaLabel: contentAriaLabel,
|
|
45
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
46
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
47
|
+
ariaLiveProps: ariaLiveProps
|
|
42
48
|
}, ariaWrapperProps));
|
|
43
49
|
};
|
|
44
50
|
exports.EuiSkeletonCircle = EuiSkeletonCircle;
|
|
@@ -58,7 +64,22 @@ EuiSkeletonCircle.propTypes = {
|
|
|
58
64
|
*/
|
|
59
65
|
contentAriaLabel: _propTypes.default.string,
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
67
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
71
|
+
/**
|
|
72
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
73
|
+
* @default true
|
|
74
|
+
*/
|
|
75
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
76
|
+
/**
|
|
77
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
78
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
79
|
+
*/
|
|
80
|
+
ariaLiveProps: _propTypes.default.any,
|
|
81
|
+
/**
|
|
82
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
62
83
|
*/
|
|
63
84
|
ariaWrapperProps: _propTypes.default.any,
|
|
64
85
|
size: _propTypes.default.any
|
|
@@ -9,7 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _screen_reader_live = require("../accessibility/screen_reader_live");
|
|
10
10
|
var _i18n = require("../i18n");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
12
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -18,23 +18,29 @@ var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
|
18
18
|
var _ref$isLoading = _ref.isLoading,
|
|
19
19
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
20
20
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
21
|
-
|
|
21
|
+
_loadingContent = _ref.loadingContent,
|
|
22
22
|
loadedContent = _ref.loadedContent,
|
|
23
|
+
_ref$announceLoadingS = _ref.announceLoadingStatus,
|
|
24
|
+
announceLoadingStatus = _ref$announceLoadingS === void 0 ? false : _ref$announceLoadingS,
|
|
25
|
+
_ref$announceLoadedSt = _ref.announceLoadedStatus,
|
|
26
|
+
announceLoadedStatus = _ref$announceLoadedSt === void 0 ? true : _ref$announceLoadedSt,
|
|
27
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
23
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
var
|
|
29
|
+
var loadedAriaLive = (0, _i18n.useEuiI18n)('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
25
30
|
contentAriaLabel: contentAriaLabel
|
|
26
31
|
});
|
|
27
|
-
var
|
|
32
|
+
var loadingAriaLabel = (0, _i18n.useEuiI18n)('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
28
33
|
contentAriaLabel: contentAriaLabel
|
|
29
34
|
});
|
|
30
35
|
var loadingProps = {
|
|
31
36
|
'aria-label': loadingAriaLabel,
|
|
32
37
|
role: 'progressbar'
|
|
33
38
|
};
|
|
39
|
+
var loadingContent = /*#__PURE__*/_react.default.cloneElement(_loadingContent, loadingProps);
|
|
34
40
|
return (0, _react2.jsx)("div", _extends({
|
|
35
41
|
"aria-busy": isLoading,
|
|
36
42
|
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
37
|
-
}, rest), isLoading ?
|
|
43
|
+
}, rest), isLoading ? (0, _react2.jsx)(_react.default.Fragment, null, announceLoadingStatus && (0, _react2.jsx)(_screen_reader_live.EuiScreenReaderLive, ariaLiveProps, loadingAriaLabel), loadingContent) : (0, _react2.jsx)(_react.default.Fragment, null, announceLoadedStatus && (0, _react2.jsx)(_screen_reader_live.EuiScreenReaderLive, ariaLiveProps, loadedAriaLive), loadedContent));
|
|
38
44
|
};
|
|
39
45
|
exports.EuiSkeletonLoading = EuiSkeletonLoading;
|
|
40
46
|
EuiSkeletonLoading.propTypes = {
|
|
@@ -13,7 +13,7 @@ var _global_styling = require("../../global_styling");
|
|
|
13
13
|
var _skeleton_loading = require("./skeleton_loading");
|
|
14
14
|
var _skeleton_rectangle = require("./skeleton_rectangle.styles");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
16
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -37,6 +37,9 @@ var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
37
37
|
style = _ref.style,
|
|
38
38
|
className = _ref.className,
|
|
39
39
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
40
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
41
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
42
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
40
43
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
41
44
|
children = _ref.children,
|
|
42
45
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -54,7 +57,10 @@ var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
54
57
|
}))
|
|
55
58
|
}, rest)),
|
|
56
59
|
loadedContent: children || '',
|
|
57
|
-
contentAriaLabel: contentAriaLabel
|
|
60
|
+
contentAriaLabel: contentAriaLabel,
|
|
61
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
62
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
63
|
+
ariaLiveProps: ariaLiveProps
|
|
58
64
|
}, ariaWrapperProps));
|
|
59
65
|
};
|
|
60
66
|
exports.EuiSkeletonRectangle = EuiSkeletonRectangle;
|
|
@@ -74,7 +80,22 @@ EuiSkeletonRectangle.propTypes = {
|
|
|
74
80
|
*/
|
|
75
81
|
contentAriaLabel: _propTypes.default.string,
|
|
76
82
|
/**
|
|
77
|
-
*
|
|
83
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
87
|
+
/**
|
|
88
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
92
|
+
/**
|
|
93
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
94
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
95
|
+
*/
|
|
96
|
+
ariaLiveProps: _propTypes.default.any,
|
|
97
|
+
/**
|
|
98
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
78
99
|
*/
|
|
79
100
|
ariaWrapperProps: _propTypes.default.any,
|
|
80
101
|
width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
|
|
@@ -11,7 +11,7 @@ var _services = require("../../services");
|
|
|
11
11
|
var _skeleton_loading = require("./skeleton_loading");
|
|
12
12
|
var _skeleton_text = require("./skeleton_text.styles");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
14
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -27,6 +27,9 @@ var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
27
27
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
28
|
className = _ref.className,
|
|
29
29
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
30
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
31
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
32
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
30
33
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
31
34
|
children = _ref.children,
|
|
32
35
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -46,7 +49,10 @@ var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
46
49
|
className: (0, _classnames.default)('euiSkeletonText', className)
|
|
47
50
|
}, rest), lineElements),
|
|
48
51
|
loadedContent: children || '',
|
|
49
|
-
contentAriaLabel: contentAriaLabel
|
|
52
|
+
contentAriaLabel: contentAriaLabel,
|
|
53
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
54
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
55
|
+
ariaLiveProps: ariaLiveProps
|
|
50
56
|
}, ariaWrapperProps));
|
|
51
57
|
};
|
|
52
58
|
exports.EuiSkeletonText = EuiSkeletonText;
|
|
@@ -66,7 +72,22 @@ EuiSkeletonText.propTypes = {
|
|
|
66
72
|
*/
|
|
67
73
|
contentAriaLabel: _propTypes.default.string,
|
|
68
74
|
/**
|
|
69
|
-
*
|
|
75
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
79
|
+
/**
|
|
80
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
84
|
+
/**
|
|
85
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
86
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
87
|
+
*/
|
|
88
|
+
ariaLiveProps: _propTypes.default.any,
|
|
89
|
+
/**
|
|
90
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
70
91
|
*/
|
|
71
92
|
ariaWrapperProps: _propTypes.default.any,
|
|
72
93
|
/**
|
|
@@ -11,7 +11,7 @@ var _services = require("../../services");
|
|
|
11
11
|
var _skeleton_loading = require("./skeleton_loading");
|
|
12
12
|
var _skeleton_title = require("./skeleton_title.styles");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
14
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -23,6 +23,9 @@ var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
23
23
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
24
24
|
className = _ref.className,
|
|
25
25
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
26
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
27
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
28
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
26
29
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
27
30
|
children = _ref.children,
|
|
28
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -36,7 +39,10 @@ var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
36
39
|
css: cssStyles
|
|
37
40
|
}, rest)),
|
|
38
41
|
loadedContent: children || '',
|
|
39
|
-
contentAriaLabel: contentAriaLabel
|
|
42
|
+
contentAriaLabel: contentAriaLabel,
|
|
43
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
44
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
45
|
+
ariaLiveProps: ariaLiveProps
|
|
40
46
|
}, ariaWrapperProps));
|
|
41
47
|
};
|
|
42
48
|
exports.EuiSkeletonTitle = EuiSkeletonTitle;
|
|
@@ -56,7 +62,22 @@ EuiSkeletonTitle.propTypes = {
|
|
|
56
62
|
*/
|
|
57
63
|
contentAriaLabel: _propTypes.default.string,
|
|
58
64
|
/**
|
|
59
|
-
*
|
|
65
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
69
|
+
/**
|
|
70
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
74
|
+
/**
|
|
75
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
76
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
77
|
+
*/
|
|
78
|
+
ariaLiveProps: _propTypes.default.any,
|
|
79
|
+
/**
|
|
80
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
60
81
|
*/
|
|
61
82
|
ariaWrapperProps: _propTypes.default.any,
|
|
62
83
|
/**
|
|
@@ -8,6 +8,5 @@
|
|
|
8
8
|
|
|
9
9
|
export { EuiLoadingElastic } from './loading_elastic';
|
|
10
10
|
export { EuiLoadingChart } from './loading_chart';
|
|
11
|
-
export { EuiLoadingContent } from './loading_content';
|
|
12
11
|
export { EuiLoadingSpinner } from './loading_spinner';
|
|
13
12
|
export { EuiLoadingLogo } from './loading_logo';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["className", "pageTitle", "pageTitleProps", "iconType", "iconProps", "tabs", "tabsProps", "description", "breadcrumbs", "breadcrumbProps", "alignItems", "responsive", "rightSideItems", "rightSideGroupProps", "children", "restrictWidth", "paddingSize", "bottomBorder", "style"],
|
|
@@ -156,21 +157,19 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
156
157
|
}
|
|
157
158
|
var rightSideFlexItem;
|
|
158
159
|
if (rightSideItems && rightSideItems.length) {
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
};
|
|
160
|
+
var itemsToRender = isResponsiveBreakpoint ? rightSideItems : _toConsumableArray(rightSideItems).reverse();
|
|
161
|
+
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
162
|
+
return ___EmotionJSX(EuiFlexItem, {
|
|
163
|
+
grow: false,
|
|
164
|
+
key: index
|
|
165
|
+
}, item);
|
|
166
|
+
});
|
|
167
167
|
rightSideFlexItem = ___EmotionJSX(EuiFlexItem, {
|
|
168
168
|
grow: false
|
|
169
169
|
}, ___EmotionJSX(EuiFlexGroup, _extends({
|
|
170
170
|
wrap: true,
|
|
171
|
-
responsive: false
|
|
172
|
-
|
|
173
|
-
}, rightSideGroupProps), wrapWithFlex()));
|
|
171
|
+
responsive: false
|
|
172
|
+
}, rightSideGroupProps), rightSideFlexItems));
|
|
174
173
|
}
|
|
175
174
|
return alignItems === 'top' || isResponsiveBreakpoint ? ___EmotionJSX("div", _extends({
|
|
176
175
|
className: classes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
3
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -23,6 +23,9 @@ export var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
23
23
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
24
24
|
className = _ref.className,
|
|
25
25
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
26
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
27
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
28
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
26
29
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
27
30
|
children = _ref.children,
|
|
28
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -36,6 +39,9 @@ export var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
36
39
|
css: cssStyles
|
|
37
40
|
}, rest)),
|
|
38
41
|
loadedContent: children || '',
|
|
39
|
-
contentAriaLabel: contentAriaLabel
|
|
42
|
+
contentAriaLabel: contentAriaLabel,
|
|
43
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
44
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
45
|
+
ariaLiveProps: ariaLiveProps
|
|
40
46
|
}, ariaWrapperProps));
|
|
41
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
3
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -17,21 +17,27 @@ export var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
|
17
17
|
var _ref$isLoading = _ref.isLoading,
|
|
18
18
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
19
19
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
20
|
-
|
|
20
|
+
_loadingContent = _ref.loadingContent,
|
|
21
21
|
loadedContent = _ref.loadedContent,
|
|
22
|
+
_ref$announceLoadingS = _ref.announceLoadingStatus,
|
|
23
|
+
announceLoadingStatus = _ref$announceLoadingS === void 0 ? false : _ref$announceLoadingS,
|
|
24
|
+
_ref$announceLoadedSt = _ref.announceLoadedStatus,
|
|
25
|
+
announceLoadedStatus = _ref$announceLoadedSt === void 0 ? true : _ref$announceLoadedSt,
|
|
26
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
22
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
var
|
|
28
|
+
var loadedAriaLive = useEuiI18n('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
24
29
|
contentAriaLabel: contentAriaLabel
|
|
25
30
|
});
|
|
26
|
-
var
|
|
31
|
+
var loadingAriaLabel = useEuiI18n('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
27
32
|
contentAriaLabel: contentAriaLabel
|
|
28
33
|
});
|
|
29
34
|
var loadingProps = {
|
|
30
35
|
'aria-label': loadingAriaLabel,
|
|
31
36
|
role: 'progressbar'
|
|
32
37
|
};
|
|
38
|
+
var loadingContent = /*#__PURE__*/React.cloneElement(_loadingContent, loadingProps);
|
|
33
39
|
return ___EmotionJSX("div", _extends({
|
|
34
40
|
"aria-busy": isLoading,
|
|
35
41
|
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
36
|
-
}, rest), isLoading ?
|
|
42
|
+
}, rest), isLoading ? ___EmotionJSX(React.Fragment, null, announceLoadingStatus && ___EmotionJSX(EuiScreenReaderLive, ariaLiveProps, loadingAriaLabel), loadingContent) : ___EmotionJSX(React.Fragment, null, announceLoadedStatus && ___EmotionJSX(EuiScreenReaderLive, ariaLiveProps, loadedAriaLive), loadedContent));
|
|
37
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
4
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
/*
|
|
@@ -32,6 +32,9 @@ export var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
32
32
|
style = _ref.style,
|
|
33
33
|
className = _ref.className,
|
|
34
34
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
35
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
36
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
37
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
35
38
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
36
39
|
children = _ref.children,
|
|
37
40
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -49,6 +52,9 @@ export var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
49
52
|
}))
|
|
50
53
|
}, rest)),
|
|
51
54
|
loadedContent: children || '',
|
|
52
|
-
contentAriaLabel: contentAriaLabel
|
|
55
|
+
contentAriaLabel: contentAriaLabel,
|
|
56
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
57
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
58
|
+
ariaLiveProps: ariaLiveProps
|
|
53
59
|
}, ariaWrapperProps));
|
|
54
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
3
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -25,6 +25,9 @@ export var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
25
25
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
28
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
29
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
30
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
28
31
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
29
32
|
children = _ref.children,
|
|
30
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -44,6 +47,9 @@ export var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
44
47
|
className: classNames('euiSkeletonText', className)
|
|
45
48
|
}, rest), lineElements),
|
|
46
49
|
loadedContent: children || '',
|
|
47
|
-
contentAriaLabel: contentAriaLabel
|
|
50
|
+
contentAriaLabel: contentAriaLabel,
|
|
51
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
52
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
53
|
+
ariaLiveProps: ariaLiveProps
|
|
48
54
|
}, ariaWrapperProps));
|
|
49
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
3
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -22,6 +22,9 @@ export var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
22
22
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
23
23
|
className = _ref.className,
|
|
24
24
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
25
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
26
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
27
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
25
28
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
26
29
|
children = _ref.children,
|
|
27
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -35,6 +38,9 @@ export var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
35
38
|
css: cssStyles
|
|
36
39
|
}, rest)),
|
|
37
40
|
loadedContent: children || '',
|
|
38
|
-
contentAriaLabel: contentAriaLabel
|
|
41
|
+
contentAriaLabel: contentAriaLabel,
|
|
42
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
43
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
44
|
+
ariaLiveProps: ariaLiveProps
|
|
39
45
|
}, ariaWrapperProps));
|
|
40
46
|
};
|
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "EuiLoadingChart", {
|
|
|
9
9
|
return _loading_chart.EuiLoadingChart;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "EuiLoadingContent", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _loading_content.EuiLoadingContent;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "EuiLoadingElastic", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
@@ -35,6 +29,5 @@ Object.defineProperty(exports, "EuiLoadingSpinner", {
|
|
|
35
29
|
});
|
|
36
30
|
var _loading_elastic = require("./loading_elastic");
|
|
37
31
|
var _loading_chart = require("./loading_chart");
|
|
38
|
-
var _loading_content = require("./loading_content");
|
|
39
32
|
var _loading_spinner = require("./loading_spinner");
|
|
40
33
|
var _loading_logo = require("./loading_logo");
|