@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
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiPageHeaderContent = exports.ALIGN_ITEMS = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -155,21 +156,19 @@ var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
155
156
|
}
|
|
156
157
|
var rightSideFlexItem;
|
|
157
158
|
if (rightSideItems && rightSideItems.length) {
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
};
|
|
159
|
+
var itemsToRender = isResponsiveBreakpoint ? rightSideItems : (0, _toConsumableArray2.default)(rightSideItems).reverse();
|
|
160
|
+
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
161
|
+
return (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
162
|
+
grow: false,
|
|
163
|
+
key: index
|
|
164
|
+
}, item);
|
|
165
|
+
});
|
|
166
166
|
rightSideFlexItem = (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
167
167
|
grow: false
|
|
168
168
|
}, (0, _react2.jsx)(_flex.EuiFlexGroup, (0, _extends2.default)({
|
|
169
169
|
wrap: true,
|
|
170
|
-
responsive: false
|
|
171
|
-
|
|
172
|
-
}, rightSideGroupProps), wrapWithFlex()));
|
|
170
|
+
responsive: false
|
|
171
|
+
}, rightSideGroupProps), rightSideFlexItems));
|
|
173
172
|
}
|
|
174
173
|
return alignItems === 'top' || isResponsiveBreakpoint ? (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
175
174
|
className: classes,
|
|
@@ -13,7 +13,7 @@ var _services = require("../../services");
|
|
|
13
13
|
var _skeleton_loading = require("./skeleton_loading");
|
|
14
14
|
var _skeleton_circle = require("./skeleton_circle.styles");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
16
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
17
17
|
var SIZES = ['s', 'm', 'l', 'xl'];
|
|
18
18
|
exports.SIZES = SIZES;
|
|
19
19
|
var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
@@ -23,6 +23,9 @@ 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 = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -36,7 +39,10 @@ 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
|
};
|
|
42
48
|
exports.EuiSkeletonCircle = EuiSkeletonCircle;
|
|
@@ -11,27 +11,33 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _screen_reader_live = require("../accessibility/screen_reader_live");
|
|
12
12
|
var _i18n = require("../i18n");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
14
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps"];
|
|
15
15
|
var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
16
16
|
var _ref$isLoading = _ref.isLoading,
|
|
17
17
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
18
18
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
19
|
-
|
|
19
|
+
_loadingContent = _ref.loadingContent,
|
|
20
20
|
loadedContent = _ref.loadedContent,
|
|
21
|
+
_ref$announceLoadingS = _ref.announceLoadingStatus,
|
|
22
|
+
announceLoadingStatus = _ref$announceLoadingS === void 0 ? false : _ref$announceLoadingS,
|
|
23
|
+
_ref$announceLoadedSt = _ref.announceLoadedStatus,
|
|
24
|
+
announceLoadedStatus = _ref$announceLoadedSt === void 0 ? true : _ref$announceLoadedSt,
|
|
25
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
21
26
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
-
var
|
|
27
|
+
var loadedAriaLive = (0, _i18n.useEuiI18n)('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
23
28
|
contentAriaLabel: contentAriaLabel
|
|
24
29
|
});
|
|
25
|
-
var
|
|
30
|
+
var loadingAriaLabel = (0, _i18n.useEuiI18n)('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
26
31
|
contentAriaLabel: contentAriaLabel
|
|
27
32
|
});
|
|
28
33
|
var loadingProps = {
|
|
29
34
|
'aria-label': loadingAriaLabel,
|
|
30
35
|
role: 'progressbar'
|
|
31
36
|
};
|
|
37
|
+
var loadingContent = /*#__PURE__*/_react.default.cloneElement(_loadingContent, loadingProps);
|
|
32
38
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
33
39
|
"aria-busy": isLoading,
|
|
34
40
|
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
35
|
-
}, rest), isLoading ?
|
|
41
|
+
}, 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));
|
|
36
42
|
};
|
|
37
43
|
exports.EuiSkeletonLoading = EuiSkeletonLoading;
|
|
@@ -15,7 +15,7 @@ var _global_styling = require("../../global_styling");
|
|
|
15
15
|
var _skeleton_loading = require("./skeleton_loading");
|
|
16
16
|
var _skeleton_rectangle = require("./skeleton_rectangle.styles");
|
|
17
17
|
var _react2 = require("@emotion/react");
|
|
18
|
-
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
18
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
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; }
|
|
20
20
|
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) { (0, _defineProperty2.default)(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; }
|
|
21
21
|
var RADIUS = ['s', 'm', 'none'];
|
|
@@ -32,6 +32,9 @@ 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 = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -49,7 +52,10 @@ 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
|
};
|
|
55
61
|
exports.EuiSkeletonRectangle = EuiSkeletonRectangle;
|
|
@@ -13,7 +13,7 @@ var _services = require("../../services");
|
|
|
13
13
|
var _skeleton_loading = require("./skeleton_loading");
|
|
14
14
|
var _skeleton_text = require("./skeleton_text.styles");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
16
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
17
17
|
var LINES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
18
18
|
exports.LINES = LINES;
|
|
19
19
|
var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
@@ -25,6 +25,9 @@ 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 = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -44,7 +47,10 @@ var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
44
47
|
className: (0, _classnames.default)('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
|
};
|
|
50
56
|
exports.EuiSkeletonText = EuiSkeletonText;
|
|
@@ -13,7 +13,7 @@ var _services = require("../../services");
|
|
|
13
13
|
var _skeleton_loading = require("./skeleton_loading");
|
|
14
14
|
var _skeleton_title = require("./skeleton_title.styles");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
16
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
17
17
|
var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
18
18
|
var _ref$isLoading = _ref.isLoading,
|
|
19
19
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
@@ -21,6 +21,9 @@ var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
21
21
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
22
22
|
className = _ref.className,
|
|
23
23
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
24
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
25
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
26
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
24
27
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
25
28
|
children = _ref.children,
|
|
26
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +37,10 @@ var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
|
34
37
|
css: cssStyles
|
|
35
38
|
}, rest)),
|
|
36
39
|
loadedContent: children || '',
|
|
37
|
-
contentAriaLabel: contentAriaLabel
|
|
40
|
+
contentAriaLabel: contentAriaLabel,
|
|
41
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
42
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
43
|
+
ariaLiveProps: ariaLiveProps
|
|
38
44
|
}, ariaWrapperProps));
|
|
39
45
|
};
|
|
40
46
|
exports.EuiSkeletonTitle = EuiSkeletonTitle;
|
package/package.json
CHANGED
|
@@ -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");
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiPageHeaderContent = exports.ALIGN_ITEMS = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -156,21 +157,19 @@ 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 : (0, _toConsumableArray2.default)(rightSideItems).reverse();
|
|
161
|
+
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
162
|
+
return (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
163
|
+
grow: false,
|
|
164
|
+
key: index
|
|
165
|
+
}, item);
|
|
166
|
+
});
|
|
167
167
|
rightSideFlexItem = (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
168
168
|
grow: false
|
|
169
169
|
}, (0, _react2.jsx)(_flex.EuiFlexGroup, (0, _extends2.default)({
|
|
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 ? (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
176
175
|
className: classes,
|
|
@@ -14,7 +14,7 @@ var _services = require("../../services");
|
|
|
14
14
|
var _skeleton_loading = require("./skeleton_loading");
|
|
15
15
|
var _skeleton_circle = require("./skeleton_circle.styles");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
17
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
18
18
|
var SIZES = ['s', 'm', 'l', 'xl'];
|
|
19
19
|
exports.SIZES = SIZES;
|
|
20
20
|
var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
@@ -24,6 +24,9 @@ var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
24
24
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
25
25
|
className = _ref.className,
|
|
26
26
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
27
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
28
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
29
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
27
30
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
28
31
|
children = _ref.children,
|
|
29
32
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -37,7 +40,10 @@ var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
|
37
40
|
css: cssStyles
|
|
38
41
|
}, rest)),
|
|
39
42
|
loadedContent: children || '',
|
|
40
|
-
contentAriaLabel: contentAriaLabel
|
|
43
|
+
contentAriaLabel: contentAriaLabel,
|
|
44
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
45
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
46
|
+
ariaLiveProps: ariaLiveProps
|
|
41
47
|
}, ariaWrapperProps));
|
|
42
48
|
};
|
|
43
49
|
exports.EuiSkeletonCircle = EuiSkeletonCircle;
|
|
@@ -57,7 +63,22 @@ EuiSkeletonCircle.propTypes = {
|
|
|
57
63
|
*/
|
|
58
64
|
contentAriaLabel: _propTypes.default.string,
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
66
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
70
|
+
/**
|
|
71
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
75
|
+
/**
|
|
76
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
77
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
78
|
+
*/
|
|
79
|
+
ariaLiveProps: _propTypes.default.any,
|
|
80
|
+
/**
|
|
81
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
61
82
|
*/
|
|
62
83
|
ariaWrapperProps: _propTypes.default.any,
|
|
63
84
|
size: _propTypes.default.any
|
|
@@ -12,28 +12,34 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _screen_reader_live = require("../accessibility/screen_reader_live");
|
|
13
13
|
var _i18n = require("../i18n");
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
|
-
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
15
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps"];
|
|
16
16
|
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 = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
23
|
-
var
|
|
28
|
+
var loadedAriaLive = (0, _i18n.useEuiI18n)('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
24
29
|
contentAriaLabel: contentAriaLabel
|
|
25
30
|
});
|
|
26
|
-
var
|
|
31
|
+
var loadingAriaLabel = (0, _i18n.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.default.cloneElement(_loadingContent, loadingProps);
|
|
33
39
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
34
40
|
"aria-busy": isLoading,
|
|
35
41
|
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
36
|
-
}, rest), isLoading ?
|
|
42
|
+
}, 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));
|
|
37
43
|
};
|
|
38
44
|
exports.EuiSkeletonLoading = EuiSkeletonLoading;
|
|
39
45
|
EuiSkeletonLoading.propTypes = {
|
|
@@ -16,7 +16,7 @@ var _global_styling = require("../../global_styling");
|
|
|
16
16
|
var _skeleton_loading = require("./skeleton_loading");
|
|
17
17
|
var _skeleton_rectangle = require("./skeleton_rectangle.styles");
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
19
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
20
20
|
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; }
|
|
21
21
|
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) { (0, _defineProperty2.default)(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; }
|
|
22
22
|
var RADIUS = ['s', 'm', 'none'];
|
|
@@ -33,6 +33,9 @@ var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
33
33
|
style = _ref.style,
|
|
34
34
|
className = _ref.className,
|
|
35
35
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
36
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
37
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
38
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
36
39
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
37
40
|
children = _ref.children,
|
|
38
41
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -50,7 +53,10 @@ var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
|
50
53
|
}))
|
|
51
54
|
}, rest)),
|
|
52
55
|
loadedContent: children || '',
|
|
53
|
-
contentAriaLabel: contentAriaLabel
|
|
56
|
+
contentAriaLabel: contentAriaLabel,
|
|
57
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
58
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
59
|
+
ariaLiveProps: ariaLiveProps
|
|
54
60
|
}, ariaWrapperProps));
|
|
55
61
|
};
|
|
56
62
|
exports.EuiSkeletonRectangle = EuiSkeletonRectangle;
|
|
@@ -70,7 +76,22 @@ EuiSkeletonRectangle.propTypes = {
|
|
|
70
76
|
*/
|
|
71
77
|
contentAriaLabel: _propTypes.default.string,
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
83
|
+
/**
|
|
84
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
88
|
+
/**
|
|
89
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
90
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
91
|
+
*/
|
|
92
|
+
ariaLiveProps: _propTypes.default.any,
|
|
93
|
+
/**
|
|
94
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
74
95
|
*/
|
|
75
96
|
ariaWrapperProps: _propTypes.default.any,
|
|
76
97
|
width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
|
|
@@ -14,7 +14,7 @@ var _services = require("../../services");
|
|
|
14
14
|
var _skeleton_loading = require("./skeleton_loading");
|
|
15
15
|
var _skeleton_text = require("./skeleton_text.styles");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
17
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
18
18
|
var LINES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
19
19
|
exports.LINES = LINES;
|
|
20
20
|
var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
@@ -26,6 +26,9 @@ var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
29
|
+
announceLoadingStatus = _ref.announceLoadingStatus,
|
|
30
|
+
announceLoadedStatus = _ref.announceLoadedStatus,
|
|
31
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
29
32
|
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
30
33
|
children = _ref.children,
|
|
31
34
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -45,7 +48,10 @@ var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
45
48
|
className: (0, _classnames.default)('euiSkeletonText', className)
|
|
46
49
|
}, rest), lineElements),
|
|
47
50
|
loadedContent: children || '',
|
|
48
|
-
contentAriaLabel: contentAriaLabel
|
|
51
|
+
contentAriaLabel: contentAriaLabel,
|
|
52
|
+
announceLoadingStatus: announceLoadingStatus,
|
|
53
|
+
announceLoadedStatus: announceLoadedStatus,
|
|
54
|
+
ariaLiveProps: ariaLiveProps
|
|
49
55
|
}, ariaWrapperProps));
|
|
50
56
|
};
|
|
51
57
|
exports.EuiSkeletonText = EuiSkeletonText;
|
|
@@ -65,7 +71,22 @@ EuiSkeletonText.propTypes = {
|
|
|
65
71
|
*/
|
|
66
72
|
contentAriaLabel: _propTypes.default.string,
|
|
67
73
|
/**
|
|
68
|
-
*
|
|
74
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
78
|
+
/**
|
|
79
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
83
|
+
/**
|
|
84
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
85
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
86
|
+
*/
|
|
87
|
+
ariaLiveProps: _propTypes.default.any,
|
|
88
|
+
/**
|
|
89
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
69
90
|
*/
|
|
70
91
|
ariaWrapperProps: _propTypes.default.any,
|
|
71
92
|
/**
|
|
@@ -14,7 +14,7 @@ var _services = require("../../services");
|
|
|
14
14
|
var _skeleton_loading = require("./skeleton_loading");
|
|
15
15
|
var _skeleton_title = require("./skeleton_title.styles");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
17
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
18
18
|
var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
19
19
|
var _ref$isLoading = _ref.isLoading,
|
|
20
20
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
@@ -22,6 +22,9 @@ 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 = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -35,7 +38,10 @@ 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
|
};
|
|
41
47
|
exports.EuiSkeletonTitle = EuiSkeletonTitle;
|
|
@@ -55,7 +61,22 @@ EuiSkeletonTitle.propTypes = {
|
|
|
55
61
|
*/
|
|
56
62
|
contentAriaLabel: _propTypes.default.string,
|
|
57
63
|
/**
|
|
58
|
-
*
|
|
64
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
announceLoadingStatus: _propTypes.default.bool,
|
|
68
|
+
/**
|
|
69
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
announceLoadedStatus: _propTypes.default.bool,
|
|
73
|
+
/**
|
|
74
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
75
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
76
|
+
*/
|
|
77
|
+
ariaLiveProps: _propTypes.default.any,
|
|
78
|
+
/**
|
|
79
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
59
80
|
*/
|
|
60
81
|
ariaWrapperProps: _propTypes.default.any,
|
|
61
82
|
/**
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
-
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
-
* Side Public License, v 1.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from "prop-types";
|
|
11
|
-
import { EuiSkeletonText } from '../skeleton';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `EuiSkeletonTextProps` instead
|
|
15
|
-
*/
|
|
16
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `EuiSkeletonText` instead
|
|
19
|
-
*/
|
|
20
|
-
export var EuiLoadingContent = function EuiLoadingContent(props) {
|
|
21
|
-
return ___EmotionJSX(EuiSkeletonText, props);
|
|
22
|
-
};
|
|
23
|
-
EuiLoadingContent.propTypes = {
|
|
24
|
-
className: PropTypes.string,
|
|
25
|
-
"aria-label": PropTypes.string,
|
|
26
|
-
"data-test-subj": PropTypes.string,
|
|
27
|
-
css: PropTypes.any,
|
|
28
|
-
/**
|
|
29
|
-
* When true, shows the loading skeleton component.
|
|
30
|
-
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
31
|
-
*/
|
|
32
|
-
isLoading: PropTypes.bool,
|
|
33
|
-
/**
|
|
34
|
-
* Label your loading sections to provide more helpful context to screen readers.
|
|
35
|
-
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
36
|
-
*/
|
|
37
|
-
contentAriaLabel: PropTypes.string,
|
|
38
|
-
/**
|
|
39
|
-
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
40
|
-
*/
|
|
41
|
-
ariaWrapperProps: PropTypes.any,
|
|
42
|
-
/**
|
|
43
|
-
* Number of lines to display (between 1 to 10)
|
|
44
|
-
*/
|
|
45
|
-
lines: PropTypes.any,
|
|
46
|
-
/**
|
|
47
|
-
* EuiText size to render
|
|
48
|
-
*/
|
|
49
|
-
size: PropTypes.any
|
|
50
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EuiLoadingContent = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _skeleton = require("../skeleton");
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
/*
|
|
13
|
-
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
14
|
-
* or more contributor license agreements. Licensed under the Elastic License
|
|
15
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
16
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
17
|
-
* Side Public License, v 1.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use `EuiSkeletonText` instead
|
|
22
|
-
*/
|
|
23
|
-
var EuiLoadingContent = function EuiLoadingContent(props) {
|
|
24
|
-
return (0, _react2.jsx)(_skeleton.EuiSkeletonText, props);
|
|
25
|
-
};
|
|
26
|
-
exports.EuiLoadingContent = EuiLoadingContent;
|
|
27
|
-
EuiLoadingContent.propTypes = {
|
|
28
|
-
className: _propTypes.default.string,
|
|
29
|
-
"aria-label": _propTypes.default.string,
|
|
30
|
-
"data-test-subj": _propTypes.default.string,
|
|
31
|
-
css: _propTypes.default.any,
|
|
32
|
-
/**
|
|
33
|
-
* When true, shows the loading skeleton component.
|
|
34
|
-
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
35
|
-
*/
|
|
36
|
-
isLoading: _propTypes.default.bool,
|
|
37
|
-
/**
|
|
38
|
-
* Label your loading sections to provide more helpful context to screen readers.
|
|
39
|
-
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
40
|
-
*/
|
|
41
|
-
contentAriaLabel: _propTypes.default.string,
|
|
42
|
-
/**
|
|
43
|
-
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
44
|
-
*/
|
|
45
|
-
ariaWrapperProps: _propTypes.default.any,
|
|
46
|
-
/**
|
|
47
|
-
* Number of lines to display (between 1 to 10)
|
|
48
|
-
*/
|
|
49
|
-
lines: _propTypes.default.any,
|
|
50
|
-
/**
|
|
51
|
-
* EuiText size to render
|
|
52
|
-
*/
|
|
53
|
-
size: _propTypes.default.any
|
|
54
|
-
};
|