@elastic/eui 77.2.2 → 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/README.md +7 -21
- package/dist/eui_theme_dark.css +28 -29
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +28 -29
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/avatar/avatar.js +15 -3
- package/es/components/avatar/avatar.styles.js +46 -9
- package/es/components/form/form.styles.js +2 -2
- package/es/components/loading/index.js +0 -1
- package/es/components/page/page_header/page_header_content.js +15 -11
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- 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/es/test/rtl/custom_render.js +11 -1
- package/es/test/rtl/index.d.ts +1 -1
- package/es/test/rtl/index.js +1 -1
- package/eui.d.ts +433 -419
- package/i18ntokens.json +14 -14
- package/lib/components/avatar/avatar.js +17 -4
- package/lib/components/avatar/avatar.styles.js +46 -9
- package/lib/components/form/form.styles.js +2 -2
- package/lib/components/loading/index.js +0 -7
- package/lib/components/page/page_header/page_header_content.js +15 -11
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- 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/lib/test/rtl/custom_render.js +11 -2
- package/lib/test/rtl/index.d.ts +1 -1
- package/lib/test/rtl/index.js +8 -1
- package/optimize/es/components/avatar/avatar.js +8 -3
- package/optimize/es/components/avatar/avatar.styles.js +46 -9
- package/optimize/es/components/form/form.styles.js +2 -2
- 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/search_bar/query/ast_to_es_query_dsl.js +2 -2
- 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/es/test/rtl/custom_render.js +11 -1
- package/optimize/es/test/rtl/index.d.ts +1 -1
- package/optimize/es/test/rtl/index.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +10 -4
- package/optimize/lib/components/avatar/avatar.styles.js +46 -9
- package/optimize/lib/components/form/form.styles.js +2 -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/search_bar/query/ast_to_es_query_dsl.js +2 -2
- 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/optimize/lib/test/rtl/custom_render.js +11 -2
- package/optimize/lib/test/rtl/index.d.ts +1 -1
- package/optimize/lib/test/rtl/index.js +8 -1
- package/package.json +2 -2
- package/src/components/form/switch/_switch.scss +30 -26
- package/src/global_styling/variables/_form.scss +2 -2
- package/test-env/components/avatar/avatar.js +17 -4
- package/test-env/components/avatar/avatar.styles.js +46 -9
- package/test-env/components/form/form.styles.js +2 -2
- 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/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- 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/test-env/test/rtl/custom_render.js +11 -2
- package/test-env/test/rtl/index.js +8 -1
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["className", "color", "imageUrl", "initials", "initialsLength", "iconType", "iconSize", "iconColor", "name", "size", "type", "isDisabled", "style"]
|
|
2
|
+
var _excluded = ["className", "color", "imageUrl", "initials", "initialsLength", "iconType", "iconSize", "iconColor", "name", "size", "type", "isDisabled", "style"],
|
|
3
|
+
_excluded2 = ["casing"];
|
|
3
4
|
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); }
|
|
4
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
6
|
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."); }
|
|
@@ -32,6 +33,7 @@ import { euiAvatarStyles } from './avatar.styles';
|
|
|
32
33
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
33
34
|
export var SIZES = ['s', 'm', 'l', 'xl'];
|
|
34
35
|
export var TYPES = ['space', 'user'];
|
|
36
|
+
export var CASING = ['capitalize', 'uppercase', 'lowercase', 'none'];
|
|
35
37
|
export var EuiAvatar = function EuiAvatar(_ref) {
|
|
36
38
|
var _classNames;
|
|
37
39
|
var className = _ref.className,
|
|
@@ -50,14 +52,17 @@ export var EuiAvatar = function EuiAvatar(_ref) {
|
|
|
50
52
|
_ref$isDisabled = _ref.isDisabled,
|
|
51
53
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
52
54
|
style = _ref.style,
|
|
53
|
-
|
|
55
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
+
var _props$casing = props.casing,
|
|
57
|
+
casing = _props$casing === void 0 ? type === 'space' ? 'none' : 'uppercase' : _props$casing,
|
|
58
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
|
54
59
|
var euiTheme = useEuiTheme();
|
|
55
60
|
var styles = euiAvatarStyles(euiTheme);
|
|
56
61
|
var visColors = euiPaletteColorBlindBehindText();
|
|
57
62
|
var isPlain = color === 'plain';
|
|
58
63
|
var isSubdued = color === 'subdued';
|
|
59
64
|
var classes = classNames('euiAvatar', (_classNames = {}, _defineProperty(_classNames, "euiAvatar--".concat(size), size), _defineProperty(_classNames, "euiAvatar--".concat(type), type), _defineProperty(_classNames, 'euiAvatar-isDisabled', isDisabled), _classNames), className);
|
|
60
|
-
var cssStyles = [styles.euiAvatar, styles[size], styles[
|
|
65
|
+
var cssStyles = [styles.euiAvatar, styles[type], styles[size], styles[casing], isPlain && styles.plain, isSubdued && styles.subdued, isDisabled && styles.isDisabled];
|
|
61
66
|
checkValidInitials(initials);
|
|
62
67
|
var avatarStyle = _objectSpread({}, style);
|
|
63
68
|
var iconCustomColor = iconColor;
|
|
@@ -149,6 +154,13 @@ EuiAvatar.propTypes = {
|
|
|
149
154
|
*/
|
|
150
155
|
type: PropTypes.any,
|
|
151
156
|
size: PropTypes.any,
|
|
157
|
+
/**
|
|
158
|
+
* Sets the letter casing of the displayed initials.
|
|
159
|
+
* Defaults to `uppercase` for `type="user"` avatars.
|
|
160
|
+
* Defaults to `none` (uses the existing casing of the passed `name` or `initials`) for `type="space"` avatars.
|
|
161
|
+
* @default uppercase
|
|
162
|
+
*/
|
|
163
|
+
casing: PropTypes.any,
|
|
152
164
|
/**
|
|
153
165
|
* Grays out the avatar to simulate being disabled
|
|
154
166
|
*/
|
|
@@ -9,12 +9,44 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { logicalCSS, logicalTextAlignCSS } from '../../global_styling';
|
|
12
|
-
var _avatarSize = function _avatarSize(
|
|
13
|
-
var size =
|
|
14
|
-
fontSize =
|
|
12
|
+
var _avatarSize = function _avatarSize(_ref7) {
|
|
13
|
+
var size = _ref7.size,
|
|
14
|
+
fontSize = _ref7.fontSize;
|
|
15
15
|
return "\n ".concat(logicalCSS('width', size), ";\n ").concat(logicalCSS('height', size), ";\n line-height: ").concat(size, ";\n font-size: ").concat(fontSize, ";\n ");
|
|
16
16
|
};
|
|
17
17
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "4wfy2n-none",
|
|
19
|
+
styles: "text-transform:none;label:none;"
|
|
20
|
+
} : {
|
|
21
|
+
name: "4wfy2n-none",
|
|
22
|
+
styles: "text-transform:none;label:none;",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
};
|
|
25
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "5xhpzh-lowercase",
|
|
27
|
+
styles: "text-transform:lowercase;label:lowercase;"
|
|
28
|
+
} : {
|
|
29
|
+
name: "5xhpzh-lowercase",
|
|
30
|
+
styles: "text-transform:lowercase;label:lowercase;",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
};
|
|
33
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
34
|
+
name: "1x2qsb1-uppercase",
|
|
35
|
+
styles: "text-transform:uppercase;label:uppercase;"
|
|
36
|
+
} : {
|
|
37
|
+
name: "1x2qsb1-uppercase",
|
|
38
|
+
styles: "text-transform:uppercase;label:uppercase;",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
};
|
|
41
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
42
|
+
name: "mxeh3g-capitalize",
|
|
43
|
+
styles: "text-transform:capitalize;label:capitalize;"
|
|
44
|
+
} : {
|
|
45
|
+
name: "mxeh3g-capitalize",
|
|
46
|
+
styles: "text-transform:capitalize;label:capitalize;",
|
|
47
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
48
|
+
};
|
|
49
|
+
var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
18
50
|
name: "14sj6wh-isDisabled",
|
|
19
51
|
styles: "cursor:not-allowed;filter:grayscale(100%);label:isDisabled;"
|
|
20
52
|
} : {
|
|
@@ -22,7 +54,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
22
54
|
styles: "cursor:not-allowed;filter:grayscale(100%);label:isDisabled;",
|
|
23
55
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
56
|
};
|
|
25
|
-
var
|
|
57
|
+
var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
26
58
|
name: "ont6vs-user",
|
|
27
59
|
styles: "border-radius:50%;label:user;"
|
|
28
60
|
} : {
|
|
@@ -30,18 +62,18 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
30
62
|
styles: "border-radius:50%;label:user;",
|
|
31
63
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
64
|
};
|
|
33
|
-
export var euiAvatarStyles = function euiAvatarStyles(
|
|
34
|
-
var euiTheme =
|
|
65
|
+
export var euiAvatarStyles = function euiAvatarStyles(_ref8) {
|
|
66
|
+
var euiTheme = _ref8.euiTheme;
|
|
35
67
|
return {
|
|
36
68
|
// Base
|
|
37
69
|
euiAvatar: /*#__PURE__*/css("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;background-size:cover;", logicalTextAlignCSS('center'), ";", logicalCSS('overflow-x', 'hidden'), "font-weight:", euiTheme.font.weight.medium, ";;label:euiAvatar;"),
|
|
38
70
|
// Variants
|
|
39
71
|
plain: /*#__PURE__*/css("background-color:", euiTheme.colors.emptyShade, ";;label:plain;"),
|
|
40
72
|
subdued: /*#__PURE__*/css("background-color:", euiTheme.colors.lightestShade, ";;label:subdued;"),
|
|
41
|
-
user:
|
|
73
|
+
user: _ref6,
|
|
42
74
|
space: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";;label:space;"),
|
|
43
75
|
// States
|
|
44
|
-
isDisabled:
|
|
76
|
+
isDisabled: _ref5,
|
|
45
77
|
// Sizes
|
|
46
78
|
s: /*#__PURE__*/css(_avatarSize({
|
|
47
79
|
size: euiTheme.size.l,
|
|
@@ -58,6 +90,11 @@ export var euiAvatarStyles = function euiAvatarStyles(_ref4) {
|
|
|
58
90
|
xl: /*#__PURE__*/css(_avatarSize({
|
|
59
91
|
size: "calc(".concat(euiTheme.size.base, " * 4)"),
|
|
60
92
|
fontSize: "calc(".concat(euiTheme.size.xl, " * 0.8)")
|
|
61
|
-
}), ";label:xl;")
|
|
93
|
+
}), ";label:xl;"),
|
|
94
|
+
// Casing
|
|
95
|
+
capitalize: _ref4,
|
|
96
|
+
uppercase: _ref3,
|
|
97
|
+
lowercase: _ref2,
|
|
98
|
+
none: _ref
|
|
62
99
|
};
|
|
63
100
|
};
|
|
@@ -45,10 +45,10 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
|
45
45
|
inputGroupBorder: 'none'
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// Colors - specific
|
|
48
|
+
// Colors - specific to checkboxes, radios, switches, and range thumbs
|
|
49
49
|
var customControlColors = {
|
|
50
50
|
customControlDisabledIconColor: isColorDark ? shade(euiTheme.colors.mediumShade, 0.38) : tint(euiTheme.colors.mediumShade, 0.485),
|
|
51
|
-
customControlBorderColor: isColorDark ? shade(euiTheme.colors.lightestShade, 0.
|
|
51
|
+
customControlBorderColor: isColorDark ? shade(euiTheme.colors.lightestShade, 0.4) : tint(euiTheme.colors.lightestShade, 0.31)
|
|
52
52
|
};
|
|
53
53
|
var controlLayout = {
|
|
54
54
|
controlLayoutGroupInputHeight: mathWithUnits(controlHeight, function (x) {
|
|
@@ -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,5 +1,11 @@
|
|
|
1
1
|
var _excluded = ["className", "pageTitle", "pageTitleProps", "iconType", "iconProps", "tabs", "tabsProps", "description", "breadcrumbs", "breadcrumbProps", "alignItems", "responsive", "rightSideItems", "rightSideGroupProps", "children", "restrictWidth", "paddingSize", "bottomBorder", "style"],
|
|
2
2
|
_excluded2 = ["label"];
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
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."); }
|
|
5
|
+
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); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
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; }
|
|
3
9
|
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); }
|
|
4
10
|
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; }
|
|
5
11
|
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; }
|
|
@@ -158,21 +164,19 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
158
164
|
}
|
|
159
165
|
var rightSideFlexItem;
|
|
160
166
|
if (rightSideItems && rightSideItems.length) {
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
};
|
|
167
|
+
var itemsToRender = isResponsiveBreakpoint ? rightSideItems : _toConsumableArray(rightSideItems).reverse();
|
|
168
|
+
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
169
|
+
return ___EmotionJSX(EuiFlexItem, {
|
|
170
|
+
grow: false,
|
|
171
|
+
key: index
|
|
172
|
+
}, item);
|
|
173
|
+
});
|
|
169
174
|
rightSideFlexItem = ___EmotionJSX(EuiFlexItem, {
|
|
170
175
|
grow: false
|
|
171
176
|
}, ___EmotionJSX(EuiFlexGroup, _extends({
|
|
172
177
|
wrap: true,
|
|
173
|
-
responsive: false
|
|
174
|
-
|
|
175
|
-
}, rightSideGroupProps), wrapWithFlex()));
|
|
178
|
+
responsive: false
|
|
179
|
+
}, rightSideGroupProps), rightSideFlexItems));
|
|
176
180
|
}
|
|
177
181
|
return alignItems === 'top' || isResponsiveBreakpoint ? ___EmotionJSX("div", _extends({
|
|
178
182
|
className: classes,
|
|
@@ -68,9 +68,9 @@ export var _termValuesToQuery = function _termValuesToQuery(values, options) {
|
|
|
68
68
|
var body = {
|
|
69
69
|
query: values.map(function (value) {
|
|
70
70
|
if (isString(value) && value.match(/\s/)) {
|
|
71
|
-
return "
|
|
71
|
+
return "+\"".concat(value, "\"");
|
|
72
72
|
}
|
|
73
|
-
return value;
|
|
73
|
+
return "+".concat(value);
|
|
74
74
|
}).join(' ')
|
|
75
75
|
};
|
|
76
76
|
if (body.query === '') {
|
|
@@ -303,6 +303,13 @@ EuiSelectableTemplateSitewide.propTypes = {
|
|
|
303
303
|
*/
|
|
304
304
|
type: PropTypes.any,
|
|
305
305
|
size: PropTypes.any,
|
|
306
|
+
/**
|
|
307
|
+
* Sets the letter casing of the displayed initials.
|
|
308
|
+
* Defaults to `uppercase` for `type="user"` avatars.
|
|
309
|
+
* Defaults to `none` (uses the existing casing of the passed `name` or `initials`) for `type="space"` avatars.
|
|
310
|
+
* @default uppercase
|
|
311
|
+
*/
|
|
312
|
+
casing: PropTypes.any,
|
|
306
313
|
/**
|
|
307
314
|
* Grays out the avatar to simulate being disabled
|
|
308
315
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
1
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -25,6 +25,9 @@ export 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 @@ export 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
|
EuiSkeletonCircle.propTypes = {
|
|
@@ -57,7 +63,22 @@ EuiSkeletonCircle.propTypes = {
|
|
|
57
63
|
*/
|
|
58
64
|
contentAriaLabel: PropTypes.string,
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
66
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
announceLoadingStatus: PropTypes.bool,
|
|
70
|
+
/**
|
|
71
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
announceLoadedStatus: PropTypes.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.any,
|
|
80
|
+
/**
|
|
81
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
61
82
|
*/
|
|
62
83
|
ariaWrapperProps: PropTypes.any,
|
|
63
84
|
size: PropTypes.any
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
1
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps"];
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -19,23 +19,29 @@ export var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
|
19
19
|
var _ref$isLoading = _ref.isLoading,
|
|
20
20
|
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
21
21
|
contentAriaLabel = _ref.contentAriaLabel,
|
|
22
|
-
|
|
22
|
+
_loadingContent = _ref.loadingContent,
|
|
23
23
|
loadedContent = _ref.loadedContent,
|
|
24
|
+
_ref$announceLoadingS = _ref.announceLoadingStatus,
|
|
25
|
+
announceLoadingStatus = _ref$announceLoadingS === void 0 ? false : _ref$announceLoadingS,
|
|
26
|
+
_ref$announceLoadedSt = _ref.announceLoadedStatus,
|
|
27
|
+
announceLoadedStatus = _ref$announceLoadedSt === void 0 ? true : _ref$announceLoadedSt,
|
|
28
|
+
ariaLiveProps = _ref.ariaLiveProps,
|
|
24
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
var
|
|
30
|
+
var loadedAriaLive = useEuiI18n('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
26
31
|
contentAriaLabel: contentAriaLabel
|
|
27
32
|
});
|
|
28
|
-
var
|
|
33
|
+
var loadingAriaLabel = useEuiI18n('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
29
34
|
contentAriaLabel: contentAriaLabel
|
|
30
35
|
});
|
|
31
36
|
var loadingProps = {
|
|
32
37
|
'aria-label': loadingAriaLabel,
|
|
33
38
|
role: 'progressbar'
|
|
34
39
|
};
|
|
40
|
+
var loadingContent = /*#__PURE__*/React.cloneElement(_loadingContent, loadingProps);
|
|
35
41
|
return ___EmotionJSX("div", _extends({
|
|
36
42
|
"aria-busy": isLoading,
|
|
37
43
|
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
38
|
-
}, rest), isLoading ?
|
|
44
|
+
}, rest), isLoading ? ___EmotionJSX(React.Fragment, null, announceLoadingStatus && ___EmotionJSX(EuiScreenReaderLive, ariaLiveProps, loadingAriaLabel), loadingContent) : ___EmotionJSX(React.Fragment, null, announceLoadedStatus && ___EmotionJSX(EuiScreenReaderLive, ariaLiveProps, loadedAriaLive), loadedContent));
|
|
39
45
|
};
|
|
40
46
|
EuiSkeletonLoading.propTypes = {
|
|
41
47
|
className: PropTypes.string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
2
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
3
3
|
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); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -37,6 +37,9 @@ export 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 @@ export 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
|
EuiSkeletonRectangle.propTypes = {
|
|
@@ -73,7 +79,22 @@ EuiSkeletonRectangle.propTypes = {
|
|
|
73
79
|
*/
|
|
74
80
|
contentAriaLabel: PropTypes.string,
|
|
75
81
|
/**
|
|
76
|
-
*
|
|
82
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
announceLoadingStatus: PropTypes.bool,
|
|
86
|
+
/**
|
|
87
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
announceLoadedStatus: PropTypes.bool,
|
|
91
|
+
/**
|
|
92
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
93
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
94
|
+
*/
|
|
95
|
+
ariaLiveProps: PropTypes.any,
|
|
96
|
+
/**
|
|
97
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
77
98
|
*/
|
|
78
99
|
ariaWrapperProps: PropTypes.any,
|
|
79
100
|
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
1
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -27,6 +27,9 @@ export 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 @@ export var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
|
46
49
|
className: classNames('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
|
EuiSkeletonText.propTypes = {
|
|
@@ -65,7 +71,22 @@ EuiSkeletonText.propTypes = {
|
|
|
65
71
|
*/
|
|
66
72
|
contentAriaLabel: PropTypes.string,
|
|
67
73
|
/**
|
|
68
|
-
*
|
|
74
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
announceLoadingStatus: PropTypes.bool,
|
|
78
|
+
/**
|
|
79
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
announceLoadedStatus: PropTypes.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.any,
|
|
88
|
+
/**
|
|
89
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
69
90
|
*/
|
|
70
91
|
ariaWrapperProps: PropTypes.any,
|
|
71
92
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
1
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "announceLoadingStatus", "announceLoadedStatus", "ariaLiveProps", "ariaWrapperProps", "children"];
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -24,6 +24,9 @@ export var EuiSkeletonTitle = function EuiSkeletonTitle(_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 = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -37,7 +40,10 @@ export var EuiSkeletonTitle = function EuiSkeletonTitle(_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
|
EuiSkeletonTitle.propTypes = {
|
|
@@ -56,7 +62,22 @@ EuiSkeletonTitle.propTypes = {
|
|
|
56
62
|
*/
|
|
57
63
|
contentAriaLabel: PropTypes.string,
|
|
58
64
|
/**
|
|
59
|
-
*
|
|
65
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
announceLoadingStatus: PropTypes.bool,
|
|
69
|
+
/**
|
|
70
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
announceLoadedStatus: PropTypes.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.any,
|
|
79
|
+
/**
|
|
80
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
60
81
|
*/
|
|
61
82
|
ariaWrapperProps: PropTypes.any,
|
|
62
83
|
/**
|
|
@@ -44,4 +44,14 @@ export { customRender as render };
|
|
|
44
44
|
* @see https://github.com/testing-library/dom-testing-library/issues/516
|
|
45
45
|
*/
|
|
46
46
|
var customScreen = _objectSpread(_objectSpread({}, screen), within(document.body, dataTestSubjQueries));
|
|
47
|
-
export { customScreen as screen };
|
|
47
|
+
export { customScreen as screen };
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Custom within util with EUI query helpers
|
|
51
|
+
*
|
|
52
|
+
* @see https://testing-library.com/docs/dom-testing-library/api-within/
|
|
53
|
+
*/
|
|
54
|
+
var customWithin = function customWithin(element) {
|
|
55
|
+
return within(element, _objectSpread(_objectSpread({}, queries), dataTestSubjQueries));
|
|
56
|
+
};
|
|
57
|
+
export { customWithin as within };
|
package/es/test/rtl/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './component_helpers';
|
|
2
2
|
export { queryByTestSubject, queryAllByTestSubject, getByTestSubject, getAllByTestSubject, findAllByTestSubject, findByTestSubject, } from './data_test_subj_queries';
|
|
3
|
-
export { render, screen } from './custom_render';
|
|
3
|
+
export { render, screen, within } from './custom_render';
|
package/es/test/rtl/index.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
export * from './component_helpers';
|
|
10
10
|
export { queryByTestSubject, queryAllByTestSubject, getByTestSubject, getAllByTestSubject, findAllByTestSubject, findByTestSubject } from './data_test_subj_queries';
|
|
11
|
-
export { render, screen } from './custom_render';
|
|
11
|
+
export { render, screen, within } from './custom_render';
|