@elastic/eui 74.1.0 → 75.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +0 -323
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -323
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/code/code_block.js +5 -3
- package/es/components/code/code_block_annotations.js +94 -0
- package/es/components/code/code_block_annotations.style.js +18 -0
- package/es/components/code/code_block_full_screen.js +9 -3
- package/es/components/code/code_block_line.styles.js +3 -2
- package/es/components/code/utils.js +53 -13
- package/es/components/collapsible_nav/collapsible_nav.js +10 -11
- package/es/components/flyout/flyout.js +88 -24
- package/es/components/form/range/range_track.js +1 -1
- package/es/components/header/header.js +3 -1
- package/es/components/icon/assets/app_agent.js +2 -10
- package/es/components/icon/assets/app_fleet.js +10 -2
- package/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/es/components/selectable/selectable_list/selectable_list.js +19 -5
- package/es/components/steps/step.js +19 -12
- package/es/components/steps/step.styles.js +73 -0
- package/es/components/steps/step_horizontal.js +55 -42
- package/es/components/steps/step_horizontal.styles.js +55 -0
- package/es/components/steps/step_number.js +82 -73
- package/es/components/steps/step_number.styles.js +76 -0
- package/es/components/steps/steps_horizontal.js +11 -7
- package/es/components/steps/steps_horizontal.styles.js +35 -0
- package/es/components/steps/sub_steps.js +7 -1
- package/es/components/steps/sub_steps.styles.js +14 -0
- package/es/components/tour/tour_step_indicator.js +0 -3
- package/es/global_styling/utility/animations.js +4 -3
- package/eui.d.ts +130 -16
- package/i18ntokens.json +76 -12
- package/lib/components/code/code_block.js +5 -3
- package/lib/components/code/code_block_annotations.js +113 -0
- package/lib/components/code/code_block_annotations.style.js +29 -0
- package/lib/components/code/code_block_full_screen.js +9 -3
- package/lib/components/code/code_block_line.styles.js +3 -2
- package/lib/components/code/utils.js +54 -13
- package/lib/components/collapsible_nav/collapsible_nav.js +10 -11
- package/lib/components/flyout/flyout.js +85 -22
- package/lib/components/form/range/range_track.js +1 -1
- package/lib/components/header/header.js +3 -1
- package/lib/components/icon/assets/app_agent.js +2 -10
- package/lib/components/icon/assets/app_fleet.js +10 -2
- package/lib/components/icon/svgs/app_agent.svg +2 -4
- package/lib/components/icon/svgs/app_fleet.svg +4 -2
- package/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/lib/components/selectable/selectable_list/selectable_list.js +19 -5
- package/lib/components/steps/step.js +21 -12
- package/lib/components/steps/step.styles.js +93 -0
- package/lib/components/steps/step_horizontal.js +56 -41
- package/lib/components/steps/step_horizontal.styles.js +66 -0
- package/lib/components/steps/step_number.js +86 -75
- package/lib/components/steps/step_number.styles.js +84 -0
- package/lib/components/steps/steps_horizontal.js +12 -7
- package/lib/components/steps/steps_horizontal.styles.js +38 -0
- package/lib/components/steps/sub_steps.js +9 -1
- package/lib/components/steps/sub_steps.styles.js +24 -0
- package/lib/components/tour/tour_step_indicator.js +0 -3
- package/lib/global_styling/utility/animations.js +6 -4
- package/optimize/es/components/code/code_block_annotations.js +79 -0
- package/optimize/es/components/code/code_block_annotations.style.js +18 -0
- package/optimize/es/components/code/code_block_full_screen.js +9 -3
- package/optimize/es/components/code/code_block_line.styles.js +3 -2
- package/optimize/es/components/code/utils.js +53 -13
- package/optimize/es/components/collapsible_nav/collapsible_nav.js +1 -4
- package/optimize/es/components/flyout/flyout.js +81 -24
- package/optimize/es/components/form/range/range_track.js +1 -1
- package/optimize/es/components/header/header.js +3 -1
- package/optimize/es/components/icon/assets/app_agent.js +2 -10
- package/optimize/es/components/icon/assets/app_fleet.js +10 -2
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +19 -5
- package/optimize/es/components/steps/step.js +19 -12
- package/optimize/es/components/steps/step.styles.js +73 -0
- package/optimize/es/components/steps/step_horizontal.js +54 -41
- package/optimize/es/components/steps/step_horizontal.styles.js +55 -0
- package/optimize/es/components/steps/step_number.js +82 -73
- package/optimize/es/components/steps/step_number.styles.js +76 -0
- package/optimize/es/components/steps/steps_horizontal.js +11 -7
- package/optimize/es/components/steps/steps_horizontal.styles.js +35 -0
- package/optimize/es/components/steps/sub_steps.js +7 -1
- package/optimize/es/components/steps/sub_steps.styles.js +14 -0
- package/optimize/es/components/tour/tour_step_indicator.js +0 -3
- package/optimize/es/global_styling/utility/animations.js +4 -3
- package/optimize/lib/components/code/code_block_annotations.js +105 -0
- package/optimize/lib/components/code/code_block_annotations.style.js +29 -0
- package/optimize/lib/components/code/code_block_full_screen.js +9 -3
- package/optimize/lib/components/code/code_block_line.styles.js +3 -2
- package/optimize/lib/components/code/utils.js +54 -13
- package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -4
- package/optimize/lib/components/flyout/flyout.js +80 -22
- package/optimize/lib/components/form/range/range_track.js +1 -1
- package/optimize/lib/components/header/header.js +3 -1
- package/optimize/lib/components/icon/assets/app_agent.js +2 -10
- package/optimize/lib/components/icon/assets/app_fleet.js +10 -2
- package/optimize/lib/components/icon/svgs/app_agent.svg +2 -4
- package/optimize/lib/components/icon/svgs/app_fleet.svg +4 -2
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +16 -5
- package/optimize/lib/components/steps/step.js +21 -12
- package/optimize/lib/components/steps/step.styles.js +93 -0
- package/optimize/lib/components/steps/step_horizontal.js +55 -40
- package/optimize/lib/components/steps/step_horizontal.styles.js +66 -0
- package/optimize/lib/components/steps/step_number.js +86 -75
- package/optimize/lib/components/steps/step_number.styles.js +84 -0
- package/optimize/lib/components/steps/steps_horizontal.js +12 -7
- package/optimize/lib/components/steps/steps_horizontal.styles.js +38 -0
- package/optimize/lib/components/steps/sub_steps.js +9 -1
- package/optimize/lib/components/steps/sub_steps.styles.js +24 -0
- package/optimize/lib/components/tour/tour_step_indicator.js +0 -3
- package/optimize/lib/global_styling/utility/animations.js +6 -4
- package/package.json +3 -3
- package/src/components/index.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/code/code_block_annotations.js +110 -0
- package/test-env/components/code/code_block_annotations.style.js +29 -0
- package/test-env/components/code/code_block_full_screen.js +9 -3
- package/test-env/components/code/code_block_line.styles.js +3 -2
- package/test-env/components/code/utils.js +54 -13
- package/test-env/components/collapsible_nav/collapsible_nav.js +10 -11
- package/test-env/components/form/range/range_track.js +1 -1
- package/test-env/components/header/header.js +3 -1
- package/test-env/components/icon/assets/app_agent.js +2 -10
- package/test-env/components/icon/assets/app_fleet.js +10 -2
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/test-env/components/selectable/selectable_list/selectable_list.js +16 -5
- package/test-env/components/steps/step.js +21 -12
- package/test-env/components/steps/step.styles.js +93 -0
- package/test-env/components/steps/step_horizontal.js +56 -41
- package/test-env/components/steps/step_horizontal.styles.js +66 -0
- package/test-env/components/steps/step_number.js +86 -75
- package/test-env/components/steps/step_number.styles.js +84 -0
- package/test-env/components/steps/steps_horizontal.js +12 -7
- package/test-env/components/steps/steps_horizontal.styles.js +38 -0
- package/test-env/components/steps/sub_steps.js +9 -1
- package/test-env/components/steps/sub_steps.styles.js +24 -0
- package/test-env/components/tour/tour_step_indicator.js +0 -3
- package/test-env/global_styling/utility/animations.js +6 -4
- package/src/components/steps/_index.scss +0 -7
- package/src/components/steps/_mixins.scss +0 -12
- package/src/components/steps/_step_number.scss +0 -52
- package/src/components/steps/_steps.scss +0 -57
- package/src/components/steps/_steps_horizontal.scss +0 -135
- package/src/components/steps/_sub_steps.scss +0 -15
- package/src/components/steps/_variables.scss +0 -11
- package/src/themes/amsterdam/global_styling/variables/_steps.scss +0 -8
- package/src/themes/amsterdam/overrides/_steps.scss +0 -101
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react'; // 1. Make each step the same width
|
|
11
|
+
|
|
12
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
|
+
name: "1pmkwst-euiStepsHorizontal__item",
|
|
14
|
+
styles: "flex-grow:1;flex-basis:0%;&:first-of-type>.euiStepHorizontal::before,&:last-of-type>.euiStepHorizontal::after{display:none;};label:euiStepsHorizontal__item;"
|
|
15
|
+
} : {
|
|
16
|
+
name: "1pmkwst-euiStepsHorizontal__item",
|
|
17
|
+
styles: "flex-grow:1;flex-basis:0%;&:first-of-type>.euiStepHorizontal::before,&:last-of-type>.euiStepHorizontal::after{display:none;};label:euiStepsHorizontal__item;",
|
|
18
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
22
|
+
name: "44yl7r-euiStepsHorizontal",
|
|
23
|
+
styles: "display:flex;align-items:stretch;label:euiStepsHorizontal;"
|
|
24
|
+
} : {
|
|
25
|
+
name: "44yl7r-euiStepsHorizontal",
|
|
26
|
+
styles: "display:flex;align-items:stretch;label:euiStepsHorizontal;",
|
|
27
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export var euiStepsHorizontalStyles = function euiStepsHorizontalStyles() {
|
|
31
|
+
return {
|
|
32
|
+
euiStepsHorizontal: _ref2,
|
|
33
|
+
euiStepsHorizontal__item: _ref
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -16,6 +16,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
|
+
import { euiSubStepsStyles } from './sub_steps.styles';
|
|
19
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
22
|
export var EuiSubSteps = function EuiSubSteps(_ref) {
|
|
21
23
|
var children = _ref.children,
|
|
@@ -23,8 +25,12 @@ export var EuiSubSteps = function EuiSubSteps(_ref) {
|
|
|
23
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
26
|
|
|
25
27
|
var classes = classNames('euiSubSteps', className);
|
|
28
|
+
var euiTheme = useEuiTheme();
|
|
29
|
+
var styles = euiSubStepsStyles(euiTheme);
|
|
30
|
+
var cssStyles = [styles.euiSubSteps];
|
|
26
31
|
return ___EmotionJSX("div", _extends({
|
|
27
|
-
className: classes
|
|
32
|
+
className: classes,
|
|
33
|
+
css: cssStyles
|
|
28
34
|
}, rest), children);
|
|
29
35
|
};
|
|
30
36
|
EuiSubSteps.propTypes = {
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import { css } from '@emotion/react';
|
|
9
|
+
export var euiSubStepsStyles = function euiSubStepsStyles(_ref) {
|
|
10
|
+
var euiTheme = _ref.euiTheme;
|
|
11
|
+
return {
|
|
12
|
+
euiSubSteps: /*#__PURE__*/css("padding:", euiTheme.size.base, ";background-color:", euiTheme.colors.lightestShade, ";margin-block-end:", euiTheme.size.base, ";>*:last-child{margin-block-end:0;}& ol,.euiText & ol{list-style-type:lower-alpha;};label:euiSubSteps;")
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -49,7 +49,6 @@ export var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
|
|
|
49
49
|
}, function (isActive) {
|
|
50
50
|
return ___EmotionJSX(EuiIcon, {
|
|
51
51
|
type: "dot",
|
|
52
|
-
className: "euiStepNumber__icon",
|
|
53
52
|
"aria-label": isActive,
|
|
54
53
|
color: "success",
|
|
55
54
|
"aria-current": "step"
|
|
@@ -62,7 +61,6 @@ export var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
|
|
|
62
61
|
}, function (isComplete) {
|
|
63
62
|
return ___EmotionJSX(EuiIcon, {
|
|
64
63
|
type: "dot",
|
|
65
|
-
className: "euiStepNumber__icon",
|
|
66
64
|
"aria-label": isComplete,
|
|
67
65
|
color: "subdued"
|
|
68
66
|
});
|
|
@@ -74,7 +72,6 @@ export var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
|
|
|
74
72
|
}, function (isIncomplete) {
|
|
75
73
|
return ___EmotionJSX(EuiIcon, {
|
|
76
74
|
type: "dot",
|
|
77
|
-
className: "euiStepNumber__icon",
|
|
78
75
|
"aria-label": isIncomplete,
|
|
79
76
|
color: "subdued"
|
|
80
77
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
2
|
|
|
3
3
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
4
|
|
|
@@ -15,5 +15,6 @@ export var euiAnimSlideInUp = function euiAnimSlideInUp(size) {
|
|
|
15
15
|
return keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
16
16
|
};
|
|
17
17
|
export var euiAnimSlideX = function euiAnimSlideX(size) {
|
|
18
|
-
return keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n transform: translateX(", ");\n }\n\n 100% {\n transform: translateX(0);\n }\n"])), size);
|
|
19
|
-
};
|
|
18
|
+
return keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n transform: translateX(", ");\n }\n\n 100% {\n transform: translateX(0);\n\n }\n"])), size);
|
|
19
|
+
};
|
|
20
|
+
export var euiAnimScale = keyframes(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n }\n\n 1% {\n opacity: 0;\n transform: scale(0);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n"])));
|
package/eui.d.ts
CHANGED
|
@@ -1733,6 +1733,7 @@ declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
|
1733
1733
|
export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
|
|
1734
1734
|
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1735
1735
|
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1736
|
+
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
1736
1737
|
|
|
1737
1738
|
}
|
|
1738
1739
|
declare module '@elastic/eui/src/components/skeleton/utils' {
|
|
@@ -9216,6 +9217,22 @@ declare module '@elastic/eui/src/components/card' {
|
|
|
9216
9217
|
export type { EuiCheckableCardProps } from '@elastic/eui/src/components/card/checkable_card';
|
|
9217
9218
|
export { EuiCheckableCard } from '@elastic/eui/src/components/card/checkable_card';
|
|
9218
9219
|
|
|
9220
|
+
}
|
|
9221
|
+
declare module '@elastic/eui/src/components/code/code_block_annotations.style' {
|
|
9222
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
9223
|
+
export const euiCodeBlockAnnotationsStyles: (euiTheme: UseEuiTheme['euiTheme']) => {
|
|
9224
|
+
euiCodeBlockAnnotation: import("@emotion/utils").SerializedStyles;
|
|
9225
|
+
euiCodeBlockAnnotation__buttonIcon: import("@emotion/utils").SerializedStyles;
|
|
9226
|
+
};
|
|
9227
|
+
|
|
9228
|
+
}
|
|
9229
|
+
declare module '@elastic/eui/src/components/code/code_block_annotations' {
|
|
9230
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
9231
|
+
export type LineAnnotationMap = Record<number, ReactNode>;
|
|
9232
|
+
export const EuiCodeBlockAnnotation: FunctionComponent<{
|
|
9233
|
+
lineNumber: number;
|
|
9234
|
+
}>;
|
|
9235
|
+
|
|
9219
9236
|
}
|
|
9220
9237
|
declare module '@elastic/eui/src/components/code/code_block_line.styles' {
|
|
9221
9238
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -9227,6 +9244,7 @@ declare module '@elastic/eui/src/components/code/code_block_line.styles' {
|
|
|
9227
9244
|
isHighlighted: string;
|
|
9228
9245
|
};
|
|
9229
9246
|
lineNumber: {
|
|
9247
|
+
euiCodeBlock__lineNumberWrapper: string;
|
|
9230
9248
|
euiCodeBlock__lineNumber: string;
|
|
9231
9249
|
};
|
|
9232
9250
|
};
|
|
@@ -9237,6 +9255,7 @@ declare module '@elastic/eui/src/components/code/utils' {
|
|
|
9237
9255
|
import { AST, RefractorNode } from 'refractor';
|
|
9238
9256
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
9239
9257
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
9258
|
+
import { LineAnnotationMap } from '@elastic/eui/src/components/code/code_block_annotations';
|
|
9240
9259
|
/**
|
|
9241
9260
|
* Utils shared between EuiCode and EuiCodeBlock
|
|
9242
9261
|
*/
|
|
@@ -9258,6 +9277,7 @@ declare module '@elastic/eui/src/components/code/utils' {
|
|
|
9258
9277
|
start: number;
|
|
9259
9278
|
show: boolean;
|
|
9260
9279
|
highlight?: string;
|
|
9280
|
+
annotations?: LineAnnotationMap;
|
|
9261
9281
|
}
|
|
9262
9282
|
export const parseLineRanges: (ranges: string) => number[];
|
|
9263
9283
|
export const highlightByLine: (children: string, language: string, data: LineNumbersConfig, euiTheme: UseEuiTheme) => RefractorNode[];
|
|
@@ -9547,6 +9567,7 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
9547
9567
|
import { FunctionComponent } from 'react';
|
|
9548
9568
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
9549
9569
|
import { EuiCodeSharedProps } from '@elastic/eui/src/components/code/utils';
|
|
9570
|
+
import { LineAnnotationMap } from '@elastic/eui/src/components/code/code_block_annotations';
|
|
9550
9571
|
export const FONT_SIZES: readonly ["s", "m", "l"];
|
|
9551
9572
|
export type EuiCodeBlockFontSize = typeof FONT_SIZES[number];
|
|
9552
9573
|
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
@@ -9562,6 +9583,7 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
9562
9583
|
interface LineNumbersConfig {
|
|
9563
9584
|
start?: number;
|
|
9564
9585
|
highlight?: string;
|
|
9586
|
+
annotations?: LineAnnotationMap;
|
|
9565
9587
|
}
|
|
9566
9588
|
export type EuiCodeBlockProps = EuiCodeSharedProps & {
|
|
9567
9589
|
paddingSize?: EuiCodeBlockPaddingSize;
|
|
@@ -9578,8 +9600,9 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
9578
9600
|
isCopyable?: boolean;
|
|
9579
9601
|
/**
|
|
9580
9602
|
* Displays line numbers.
|
|
9581
|
-
* Optionally accepts a configuration object for setting the starting number
|
|
9582
|
-
*
|
|
9603
|
+
* Optionally accepts a configuration object for setting the starting number,
|
|
9604
|
+
* visually highlighting ranges, or annotating specific lines:
|
|
9605
|
+
* `{ start: 100, highlight: '1, 5-10, 20-30, 40', annotations: { 6: 'A special note about this line' } }`
|
|
9583
9606
|
*/
|
|
9584
9607
|
lineNumbers?: boolean | LineNumbersConfig;
|
|
9585
9608
|
/**
|
|
@@ -9765,11 +9788,6 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
9765
9788
|
* @default false
|
|
9766
9789
|
*/
|
|
9767
9790
|
hideCloseButton?: boolean;
|
|
9768
|
-
/**
|
|
9769
|
-
* Specify a custom aria-label for the close button of the flyout.
|
|
9770
|
-
* @default "Close this dialog"
|
|
9771
|
-
*/
|
|
9772
|
-
closeButtonAriaLabel?: string;
|
|
9773
9791
|
/**
|
|
9774
9792
|
* Extends EuiButtonIconProps onto the close button
|
|
9775
9793
|
*/
|
|
@@ -9802,12 +9820,6 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
9802
9820
|
* @default right
|
|
9803
9821
|
*/
|
|
9804
9822
|
side?: _EuiFlyoutSide;
|
|
9805
|
-
/**
|
|
9806
|
-
* Defaults to `dialog` which is best for most cases of the flyout.
|
|
9807
|
-
* Otherwise pass in your own, aria-role, or `null` to remove it and use the semantic `as` element instead
|
|
9808
|
-
* @default dialog
|
|
9809
|
-
*/
|
|
9810
|
-
role?: null | string;
|
|
9811
9823
|
/**
|
|
9812
9824
|
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable the `push` type
|
|
9813
9825
|
* @default l
|
|
@@ -9820,6 +9832,14 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
9820
9832
|
* `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
|
|
9821
9833
|
*/
|
|
9822
9834
|
focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards'>;
|
|
9835
|
+
/**
|
|
9836
|
+
* By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
|
|
9837
|
+
* as part of the flyout's focus trap. This prevents focus fighting with interactive elements
|
|
9838
|
+
* within fixed headers.
|
|
9839
|
+
*
|
|
9840
|
+
* Set this to `false` if you need to disable this behavior for a specific reason.
|
|
9841
|
+
*/
|
|
9842
|
+
includeFixedHeadersInFocusTrap?: boolean;
|
|
9823
9843
|
} const defaultElement = "div"; type Props<T extends ElementType> = CommonProps & {
|
|
9824
9844
|
/**
|
|
9825
9845
|
* Sets the HTML element for `EuiFlyout`
|
|
@@ -9901,7 +9921,7 @@ declare module '@elastic/eui/src/components/flyout' {
|
|
|
9901
9921
|
declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav' {
|
|
9902
9922
|
import { FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
9903
9923
|
import { EuiFlyoutProps } from '@elastic/eui/src/components/flyout';
|
|
9904
|
-
export type EuiCollapsibleNavProps = Omit<EuiFlyoutProps, '
|
|
9924
|
+
export type EuiCollapsibleNavProps = Omit<EuiFlyoutProps, 'type' | 'pushBreakpoint'> & {
|
|
9905
9925
|
/**
|
|
9906
9926
|
* ReactNode to render as this component's content
|
|
9907
9927
|
*/
|
|
@@ -18238,6 +18258,9 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
18238
18258
|
setListBoxRef: (ref: HTMLUListElement | null) => void;
|
|
18239
18259
|
componentDidUpdate(): void;
|
|
18240
18260
|
constructor(props: EuiSelectableListProps<T>);
|
|
18261
|
+
ariaSetSize: number;
|
|
18262
|
+
ariaPosInSetMap: Record<number, number>;
|
|
18263
|
+
calculateAriaSetAttrs: (optionArray: Array<EuiSelectableOption<T>>) => void;
|
|
18241
18264
|
ListRow: React.MemoExoticComponent<({ data, index, style }: ListChildComponentProps<T>) => JSX.Element>;
|
|
18242
18265
|
render(): JSX.Element;
|
|
18243
18266
|
onAddOrRemoveOption: (option: EuiSelectableOption<T>, event: EuiSelectableOnChangeEvent) => void;
|
|
@@ -19048,12 +19071,69 @@ declare module '@elastic/eui/src/components/steps/step_strings' {
|
|
|
19048
19071
|
export const useI18nCurrentStep: ({ number, title }: Props) => string;
|
|
19049
19072
|
export {};
|
|
19050
19073
|
|
|
19074
|
+
}
|
|
19075
|
+
declare module '@elastic/eui/src/components/steps/step.styles' {
|
|
19076
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19077
|
+
export const euiStepVariables: (euiTheme: UseEuiTheme['euiTheme']) => {
|
|
19078
|
+
numberSize: string;
|
|
19079
|
+
numberXSSize: string;
|
|
19080
|
+
numberMargin: string;
|
|
19081
|
+
};
|
|
19082
|
+
export const euiStepStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19083
|
+
euiStep: import("@emotion/utils").SerializedStyles;
|
|
19084
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19085
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19086
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19087
|
+
};
|
|
19088
|
+
export const euiStepContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19089
|
+
euiStep__content: import("@emotion/utils").SerializedStyles;
|
|
19090
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19091
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19092
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19093
|
+
};
|
|
19094
|
+
export const euiStepTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19095
|
+
euiStep__titleWrapper: import("@emotion/utils").SerializedStyles;
|
|
19096
|
+
euiStep__title: import("@emotion/utils").SerializedStyles;
|
|
19097
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
19098
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19099
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19100
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19101
|
+
};
|
|
19102
|
+
|
|
19103
|
+
}
|
|
19104
|
+
declare module '@elastic/eui/src/components/steps/step_number.styles' {
|
|
19105
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19106
|
+
export const euiStepNumberStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19107
|
+
euiStepNumber: import("@emotion/utils").SerializedStyles;
|
|
19108
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19109
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19110
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19111
|
+
incomplete: import("@emotion/utils").SerializedStyles;
|
|
19112
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
19113
|
+
loading: import("@emotion/utils").SerializedStyles;
|
|
19114
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
19115
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
19116
|
+
complete: import("@emotion/utils").SerializedStyles;
|
|
19117
|
+
current: import("@emotion/utils").SerializedStyles;
|
|
19118
|
+
};
|
|
19119
|
+
export const euiStepNumberContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
19120
|
+
euiStepNumber__icon: import("@emotion/utils").SerializedStyles;
|
|
19121
|
+
complete: import("@emotion/utils").SerializedStyles;
|
|
19122
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
19123
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
19124
|
+
euiStepNumber__number: import("@emotion/utils").SerializedStyles;
|
|
19125
|
+
incomplete: import("@emotion/utils").SerializedStyles;
|
|
19126
|
+
loading: import("@emotion/utils").SerializedStyles;
|
|
19127
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
19128
|
+
current: import("@emotion/utils").SerializedStyles;
|
|
19129
|
+
};
|
|
19130
|
+
|
|
19051
19131
|
}
|
|
19052
19132
|
declare module '@elastic/eui/src/components/steps/step_number' {
|
|
19053
19133
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19054
19134
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19055
19135
|
import { EuiStepProps } from '@elastic/eui/src/components/steps/step';
|
|
19056
|
-
export const STATUS:
|
|
19136
|
+
export const STATUS: readonly ["incomplete", "disabled", "loading", "warning", "danger", "complete", "current"];
|
|
19057
19137
|
export type EuiStepStatus = typeof STATUS[number];
|
|
19058
19138
|
export interface EuiStepNumberProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
19059
19139
|
/**
|
|
@@ -19126,6 +19206,13 @@ declare module '@elastic/eui/src/components/steps/steps' {
|
|
|
19126
19206
|
}
|
|
19127
19207
|
export const EuiSteps: FunctionComponent<EuiStepsProps>;
|
|
19128
19208
|
|
|
19209
|
+
}
|
|
19210
|
+
declare module '@elastic/eui/src/components/steps/sub_steps.styles' {
|
|
19211
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19212
|
+
export const euiSubStepsStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
19213
|
+
euiSubSteps: import("@emotion/utils").SerializedStyles;
|
|
19214
|
+
};
|
|
19215
|
+
|
|
19129
19216
|
}
|
|
19130
19217
|
declare module '@elastic/eui/src/components/steps/sub_steps' {
|
|
19131
19218
|
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
@@ -19133,6 +19220,22 @@ declare module '@elastic/eui/src/components/steps/sub_steps' {
|
|
|
19133
19220
|
export type EuiSubStepsProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps>;
|
|
19134
19221
|
export const EuiSubSteps: EuiSubStepsProps;
|
|
19135
19222
|
|
|
19223
|
+
}
|
|
19224
|
+
declare module '@elastic/eui/src/components/steps/step_horizontal.styles' {
|
|
19225
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19226
|
+
export const euiStepHorizontalStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19227
|
+
euiStepHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19228
|
+
enabled: import("@emotion/utils").SerializedStyles;
|
|
19229
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
19230
|
+
};
|
|
19231
|
+
export const euiStepHorizontalNumberStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19232
|
+
euiStepHorizontal__number: import("@emotion/utils").SerializedStyles;
|
|
19233
|
+
};
|
|
19234
|
+
export const euiStepHorizontalTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19235
|
+
euiStepHorizontal__title: import("@emotion/utils").SerializedStyles;
|
|
19236
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
19237
|
+
};
|
|
19238
|
+
|
|
19136
19239
|
}
|
|
19137
19240
|
declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
19138
19241
|
import { ButtonHTMLAttributes, FunctionComponent, MouseEventHandler } from 'react';
|
|
@@ -19152,12 +19255,19 @@ declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
|
19152
19255
|
/**
|
|
19153
19256
|
* Visual representation of the step number indicator.
|
|
19154
19257
|
* May replace the number provided in props.step with alternate styling.
|
|
19155
|
-
* The `
|
|
19258
|
+
* The `disabled` prop will override this.
|
|
19156
19259
|
*/
|
|
19157
19260
|
status?: EuiStepStatus;
|
|
19158
19261
|
}
|
|
19159
19262
|
export const EuiStepHorizontal: FunctionComponent<EuiStepHorizontalProps>;
|
|
19160
19263
|
|
|
19264
|
+
}
|
|
19265
|
+
declare module '@elastic/eui/src/components/steps/steps_horizontal.styles' {
|
|
19266
|
+
export const euiStepsHorizontalStyles: () => {
|
|
19267
|
+
euiStepsHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19268
|
+
euiStepsHorizontal__item: import("@emotion/utils").SerializedStyles;
|
|
19269
|
+
};
|
|
19270
|
+
|
|
19161
19271
|
}
|
|
19162
19272
|
declare module '@elastic/eui/src/components/steps/steps_horizontal' {
|
|
19163
19273
|
import { FunctionComponent, OlHTMLAttributes } from 'react';
|
|
@@ -25913,6 +26023,7 @@ declare module '@elastic/eui' {
|
|
|
25913
26023
|
"euiCardSelect.selected": any;
|
|
25914
26024
|
"euiCardSelect.unavailable": any;
|
|
25915
26025
|
"euiCardSelect.select": any;
|
|
26026
|
+
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
25916
26027
|
"euiCodeBlockCopy.copy": any;
|
|
25917
26028
|
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
25918
26029
|
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
@@ -26146,6 +26257,9 @@ declare module '@elastic/eui' {
|
|
|
26146
26257
|
"euiFilterButton.filterBadgeActiveAriaLabel": any;
|
|
26147
26258
|
"euiFilterButton.filterBadgeAvailableAriaLabel": any;
|
|
26148
26259
|
"euiFlyout.closeAriaLabel": any;
|
|
26260
|
+
"euiFlyout.screenReaderModalDialog": any;
|
|
26261
|
+
"euiFlyout.screenReaderNonModalDialog": any;
|
|
26262
|
+
"euiFlyout.screenReaderFixedHeaders": any;
|
|
26149
26263
|
"euiFieldPassword.showPassword": any;
|
|
26150
26264
|
"euiFieldPassword.maskPassword": any;
|
|
26151
26265
|
"euiFilePicker.promptText": any;
|
package/i18ntokens.json
CHANGED
|
@@ -303,6 +303,22 @@
|
|
|
303
303
|
},
|
|
304
304
|
"filepath": "src/components/card/card_select/card_select.tsx"
|
|
305
305
|
},
|
|
306
|
+
{
|
|
307
|
+
"token": "euiCodeBlockAnnotations.ariaLabel",
|
|
308
|
+
"defString": "Click to view a code annotation for line {lineNumber}",
|
|
309
|
+
"highlighting": "string",
|
|
310
|
+
"loc": {
|
|
311
|
+
"start": {
|
|
312
|
+
"line": 26,
|
|
313
|
+
"column": 20
|
|
314
|
+
},
|
|
315
|
+
"end": {
|
|
316
|
+
"line": 30,
|
|
317
|
+
"column": 3
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"filepath": "src/components/code/code_block_annotations.tsx"
|
|
321
|
+
},
|
|
306
322
|
{
|
|
307
323
|
"token": "euiCodeBlockCopy.copy",
|
|
308
324
|
"defString": "Copy",
|
|
@@ -325,11 +341,11 @@
|
|
|
325
341
|
"highlighting": "string",
|
|
326
342
|
"loc": {
|
|
327
343
|
"start": {
|
|
328
|
-
"line":
|
|
344
|
+
"line": 54,
|
|
329
345
|
"column": 49
|
|
330
346
|
},
|
|
331
347
|
"end": {
|
|
332
|
-
"line":
|
|
348
|
+
"line": 60,
|
|
333
349
|
"column": 3
|
|
334
350
|
}
|
|
335
351
|
},
|
|
@@ -341,11 +357,11 @@
|
|
|
341
357
|
"highlighting": "string",
|
|
342
358
|
"loc": {
|
|
343
359
|
"start": {
|
|
344
|
-
"line":
|
|
360
|
+
"line": 54,
|
|
345
361
|
"column": 49
|
|
346
362
|
},
|
|
347
363
|
"end": {
|
|
348
|
-
"line":
|
|
364
|
+
"line": 60,
|
|
349
365
|
"column": 3
|
|
350
366
|
}
|
|
351
367
|
},
|
|
@@ -4085,16 +4101,64 @@
|
|
|
4085
4101
|
"highlighting": "string",
|
|
4086
4102
|
"loc": {
|
|
4087
4103
|
"start": {
|
|
4088
|
-
"line":
|
|
4104
|
+
"line": 296,
|
|
4089
4105
|
"column": 8
|
|
4090
4106
|
},
|
|
4091
4107
|
"end": {
|
|
4092
|
-
"line":
|
|
4108
|
+
"line": 296,
|
|
4093
4109
|
"column": 78
|
|
4094
4110
|
}
|
|
4095
4111
|
},
|
|
4096
4112
|
"filepath": "src/components/flyout/flyout.tsx"
|
|
4097
4113
|
},
|
|
4114
|
+
{
|
|
4115
|
+
"token": "euiFlyout.screenReaderModalDialog",
|
|
4116
|
+
"defString": "You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close.",
|
|
4117
|
+
"highlighting": "string",
|
|
4118
|
+
"loc": {
|
|
4119
|
+
"start": {
|
|
4120
|
+
"line": 359,
|
|
4121
|
+
"column": 12
|
|
4122
|
+
},
|
|
4123
|
+
"end": {
|
|
4124
|
+
"line": 362,
|
|
4125
|
+
"column": 14
|
|
4126
|
+
}
|
|
4127
|
+
},
|
|
4128
|
+
"filepath": "src/components/flyout/flyout.tsx"
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
"token": "euiFlyout.screenReaderNonModalDialog",
|
|
4132
|
+
"defString": "You are in a non-modal dialog. To close the dialog, press Escape.",
|
|
4133
|
+
"highlighting": "string",
|
|
4134
|
+
"loc": {
|
|
4135
|
+
"start": {
|
|
4136
|
+
"line": 364,
|
|
4137
|
+
"column": 12
|
|
4138
|
+
},
|
|
4139
|
+
"end": {
|
|
4140
|
+
"line": 367,
|
|
4141
|
+
"column": 14
|
|
4142
|
+
}
|
|
4143
|
+
},
|
|
4144
|
+
"filepath": "src/components/flyout/flyout.tsx"
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
"token": "euiFlyout.screenReaderFixedHeaders",
|
|
4148
|
+
"defString": "You can still continue tabbing through the page headers in addition to the dialog.",
|
|
4149
|
+
"highlighting": "string",
|
|
4150
|
+
"loc": {
|
|
4151
|
+
"start": {
|
|
4152
|
+
"line": 370,
|
|
4153
|
+
"column": 12
|
|
4154
|
+
},
|
|
4155
|
+
"end": {
|
|
4156
|
+
"line": 373,
|
|
4157
|
+
"column": 14
|
|
4158
|
+
}
|
|
4159
|
+
},
|
|
4160
|
+
"filepath": "src/components/flyout/flyout.tsx"
|
|
4161
|
+
},
|
|
4098
4162
|
{
|
|
4099
4163
|
"token": "euiFieldPassword.showPassword",
|
|
4100
4164
|
"defString": "Show password as plain text. Note: this will visually expose your password on the screen.",
|
|
@@ -6053,11 +6117,11 @@
|
|
|
6053
6117
|
"highlighting": "string",
|
|
6054
6118
|
"loc": {
|
|
6055
6119
|
"start": {
|
|
6056
|
-
"line":
|
|
6120
|
+
"line": 51,
|
|
6057
6121
|
"column": 6
|
|
6058
6122
|
},
|
|
6059
6123
|
"end": {
|
|
6060
|
-
"line":
|
|
6124
|
+
"line": 51,
|
|
6061
6125
|
"column": 74
|
|
6062
6126
|
}
|
|
6063
6127
|
},
|
|
@@ -6069,11 +6133,11 @@
|
|
|
6069
6133
|
"highlighting": "string",
|
|
6070
6134
|
"loc": {
|
|
6071
6135
|
"start": {
|
|
6072
|
-
"line":
|
|
6136
|
+
"line": 59,
|
|
6073
6137
|
"column": 6
|
|
6074
6138
|
},
|
|
6075
6139
|
"end": {
|
|
6076
|
-
"line":
|
|
6140
|
+
"line": 59,
|
|
6077
6141
|
"column": 78
|
|
6078
6142
|
}
|
|
6079
6143
|
},
|
|
@@ -6085,11 +6149,11 @@
|
|
|
6085
6149
|
"highlighting": "string",
|
|
6086
6150
|
"loc": {
|
|
6087
6151
|
"start": {
|
|
6088
|
-
"line":
|
|
6152
|
+
"line": 68,
|
|
6089
6153
|
"column": 4
|
|
6090
6154
|
},
|
|
6091
6155
|
"end": {
|
|
6092
|
-
"line":
|
|
6156
|
+
"line": 72,
|
|
6093
6157
|
"column": 5
|
|
6094
6158
|
}
|
|
6095
6159
|
},
|
|
@@ -242,12 +242,14 @@ EuiCodeBlock.propTypes = {
|
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Displays line numbers.
|
|
245
|
-
* Optionally accepts a configuration object for setting the starting number
|
|
246
|
-
*
|
|
245
|
+
* Optionally accepts a configuration object for setting the starting number,
|
|
246
|
+
* visually highlighting ranges, or annotating specific lines:
|
|
247
|
+
* `{ start: 100, highlight: '1, 5-10, 20-30, 40', annotations: { 6: 'A special note about this line' } }`
|
|
247
248
|
*/
|
|
248
249
|
lineNumbers: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.shape({
|
|
249
250
|
start: _propTypes.default.number,
|
|
250
|
-
highlight: _propTypes.default.string
|
|
251
|
+
highlight: _propTypes.default.string,
|
|
252
|
+
annotations: _propTypes.default.any
|
|
251
253
|
}).isRequired]),
|
|
252
254
|
|
|
253
255
|
/**
|