@elastic/eui 75.0.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/form/range/range_track.js +1 -1
- package/es/components/icon/assets/app_agent.js +2 -10
- package/es/components/icon/assets/app_fleet.js +10 -2
- 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 +115 -4
- package/i18ntokens.json +26 -10
- 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/form/range/range_track.js +1 -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/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/form/range/range_track.js +1 -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/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/form/range/range_track.js +1 -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/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 +2 -2
- 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/form/range/range_track.js +1 -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/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,79 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
import React, { useState } from 'react';
|
|
12
|
+
import { useEuiTheme } from '../../services';
|
|
13
|
+
import { useEuiI18n } from '../i18n';
|
|
14
|
+
import { EuiPopover } from '../popover';
|
|
15
|
+
import { EuiIcon } from '../icon';
|
|
16
|
+
import { useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
|
|
17
|
+
import { euiCodeBlockAnnotationsStyles } from './code_block_annotations.style';
|
|
18
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
|
+
export var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
|
|
20
|
+
var lineNumber = _ref.lineNumber,
|
|
21
|
+
children = _ref.children;
|
|
22
|
+
|
|
23
|
+
var _useState = useState(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
isOpen = _useState2[0],
|
|
26
|
+
setIsOpen = _useState2[1];
|
|
27
|
+
|
|
28
|
+
var ariaLabel = useEuiI18n('euiCodeBlockAnnotations.ariaLabel', 'Click to view a code annotation for line {lineNumber}', {
|
|
29
|
+
lineNumber: lineNumber
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
var _useEuiTheme = useEuiTheme(),
|
|
33
|
+
euiTheme = _useEuiTheme.euiTheme,
|
|
34
|
+
colorMode = _useEuiTheme.colorMode;
|
|
35
|
+
|
|
36
|
+
var styles = euiCodeBlockAnnotationsStyles(euiTheme);
|
|
37
|
+
var buttonIconFocusStyle = useEuiButtonFocusCSS();
|
|
38
|
+
var cssButtonIconStyles = [styles.euiCodeBlockAnnotation__buttonIcon, buttonIconFocusStyle];
|
|
39
|
+
var isDarkMode = colorMode === 'DARK';
|
|
40
|
+
return ___EmotionJSX(EuiPopover, {
|
|
41
|
+
isOpen: isOpen,
|
|
42
|
+
closePopover: function closePopover() {
|
|
43
|
+
return setIsOpen(false);
|
|
44
|
+
},
|
|
45
|
+
button: ___EmotionJSX("button", {
|
|
46
|
+
onClick: function onClick() {
|
|
47
|
+
return setIsOpen(!isOpen);
|
|
48
|
+
},
|
|
49
|
+
"aria-label": ariaLabel,
|
|
50
|
+
css: cssButtonIconStyles,
|
|
51
|
+
"data-test-subj": "euiCodeBlockAnnotationIcon"
|
|
52
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
53
|
+
type: AnnotationInfoIcon,
|
|
54
|
+
size: "s",
|
|
55
|
+
color: isDarkMode ? euiTheme.colors.ink : 'ghost'
|
|
56
|
+
})),
|
|
57
|
+
css: styles.euiCodeBlockAnnotation,
|
|
58
|
+
zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
|
|
59
|
+
,
|
|
60
|
+
anchorPosition: "leftCenter",
|
|
61
|
+
panelProps: {
|
|
62
|
+
'data-test-subj': 'euiCodeBlockAnnotationPopover'
|
|
63
|
+
}
|
|
64
|
+
}, children);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var AnnotationInfoIcon = function AnnotationInfoIcon(props) {
|
|
68
|
+
return ___EmotionJSX("svg", _extends({
|
|
69
|
+
width: 11,
|
|
70
|
+
height: 11,
|
|
71
|
+
viewBox: "0 0 16 16",
|
|
72
|
+
fill: "none",
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
74
|
+
}, props), ___EmotionJSX("path", {
|
|
75
|
+
fillRule: "evenodd",
|
|
76
|
+
clipRule: "evenodd",
|
|
77
|
+
d: "M7.139 14l-.052-6.007H5V6.28h4.111l.052 6.007h1.915V14h-3.94zM6.712 3.38c0-.396.118-.725.354-.987S7.639 2 8.077 2c.438 0 .777.131 1.016.393.24.262.359.591.359.987 0 .39-.12.714-.359.972s-.578.388-1.016.388c-.438 0-.775-.13-1.011-.388-.236-.258-.354-.582-.354-.972z"
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
|
|
10
|
+
export var euiCodeBlockAnnotationsStyles = function euiCodeBlockAnnotationsStyles(euiTheme) {
|
|
11
|
+
var buttonIconSize = mathWithUnits(euiTheme.size.base, function (x) {
|
|
12
|
+
return x - 1.5;
|
|
13
|
+
});
|
|
14
|
+
return {
|
|
15
|
+
euiCodeBlockAnnotation: /*#__PURE__*/css("position:absolute;", logicalCSS('right', 0), " ", logicalCSS('top', '50%'), " transform:translate(50%, -50%);line-height:1;;label:euiCodeBlockAnnotation;"),
|
|
16
|
+
euiCodeBlockAnnotation__buttonIcon: /*#__PURE__*/css(logicalSizeCSS(buttonIconSize), " display:flex;align-items:center;justify-content:center;background-color:", euiTheme.colors.primary, ";border-radius:50%;;label:euiCodeBlockAnnotation__buttonIcon;")
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -35,9 +35,15 @@ export var useFullScreen = function useFullScreen(_ref) {
|
|
|
35
35
|
}, []);
|
|
36
36
|
var onKeyDown = useCallback(function (event) {
|
|
37
37
|
if (event.key === keys.ESCAPE) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
// We need to make sure annotation Escape keypresses don't also cause fullscreen mode to close
|
|
39
|
+
var focus = document.activeElement;
|
|
40
|
+
var isAnnotationPopover = !!(focus !== null && focus !== void 0 && focus.dataset.popoverOpen) || !!(focus !== null && focus !== void 0 && focus.closest('[data-popover-open]'));
|
|
41
|
+
|
|
42
|
+
if (!isAnnotationPopover) {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
setIsFullScreen(false);
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
}, []);
|
|
43
49
|
|
|
@@ -39,11 +39,12 @@ export var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeCont
|
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
}),
|
|
41
41
|
lineText: {
|
|
42
|
-
euiCodeBlock__lineText: /*#__PURE__*/css("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.
|
|
42
|
+
euiCodeBlock__lineText: /*#__PURE__*/css("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
|
|
43
43
|
isHighlighted: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
|
|
44
44
|
},
|
|
45
45
|
lineNumber: {
|
|
46
|
-
|
|
46
|
+
euiCodeBlock__lineNumberWrapper: /*#__PURE__*/css("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
|
|
47
|
+
euiCodeBlock__lineNumber: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";text-align:end;display:block;;label:euiCodeBlock__lineNumber;")
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
};
|
|
@@ -14,6 +14,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
14
14
|
import React, { createElement } from 'react';
|
|
15
15
|
import { listLanguages, highlight } from 'refractor';
|
|
16
16
|
import { cx } from '@emotion/css';
|
|
17
|
+
import { EuiCodeBlockAnnotation } from './code_block_annotations';
|
|
17
18
|
import { euiCodeBlockLineStyles } from './code_block_line.styles';
|
|
18
19
|
/**
|
|
19
20
|
* Utils shared between EuiCode and EuiCodeBlock
|
|
@@ -47,7 +48,15 @@ export var nodeToHtml = function nodeToHtml(node, idx, nodes) {
|
|
|
47
48
|
key: key,
|
|
48
49
|
className: cx(properties.className)
|
|
49
50
|
}), children && children.map(function (el, i) {
|
|
50
|
-
return
|
|
51
|
+
return (// @ts-ignore - using a custom type here to handle JSX annotations
|
|
52
|
+
el.type === 'annotation' ? // @ts-ignore - custom keys are passed by annotationElement below
|
|
53
|
+
___EmotionJSX(EuiCodeBlockAnnotation, {
|
|
54
|
+
lineNumber: el.lineNumber,
|
|
55
|
+
children: el.annotation,
|
|
56
|
+
key: i
|
|
57
|
+
}) // prettier-ignore
|
|
58
|
+
: nodeToHtml(el, i, nodes, depth + 1)
|
|
59
|
+
);
|
|
51
60
|
}));
|
|
52
61
|
}
|
|
53
62
|
|
|
@@ -151,31 +160,61 @@ function wrapLines(nodes, options, euiTheme) {
|
|
|
151
160
|
var lineStyles = cx([styles.euiCodeBlock__line, options.showLineNumbers && styles.hasLineNumbers]);
|
|
152
161
|
|
|
153
162
|
if (options.showLineNumbers) {
|
|
154
|
-
var _properties;
|
|
163
|
+
var _properties, _options$annotations;
|
|
155
164
|
|
|
156
165
|
var lineNumber = i + 1;
|
|
157
166
|
var digits = grouped.length.toString().length;
|
|
158
|
-
var width = digits * CHAR_SIZE;
|
|
167
|
+
var width = digits * CHAR_SIZE; // Line text element and highlights
|
|
168
|
+
|
|
159
169
|
var highlights = options.highlight ? parseLineRanges(options.highlight) : [];
|
|
160
170
|
var lineTextStyles = cx([styles.lineText.euiCodeBlock__lineText, highlights.includes(lineNumber) && styles.lineText.isHighlighted]);
|
|
161
|
-
var
|
|
162
|
-
|
|
171
|
+
var lineTextElement = {
|
|
172
|
+
type: 'element',
|
|
173
|
+
tagName: 'span',
|
|
174
|
+
properties: {
|
|
175
|
+
className: ['euiCodeBlock__lineText', lineTextStyles]
|
|
176
|
+
},
|
|
177
|
+
children: node
|
|
178
|
+
}; // Line number column/wrapper
|
|
179
|
+
|
|
180
|
+
var lineNumberWrapperStyles = cx(styles.lineNumber.euiCodeBlock__lineNumberWrapper);
|
|
181
|
+
var lineNumberWrapperElement = {
|
|
163
182
|
type: 'element',
|
|
164
183
|
tagName: 'span',
|
|
165
184
|
properties: (_properties = {
|
|
166
185
|
style: {
|
|
167
186
|
inlineSize: width
|
|
168
187
|
}
|
|
169
|
-
}, _defineProperty(_properties, 'data-line-number', lineNumber), _defineProperty(_properties,
|
|
188
|
+
}, _defineProperty(_properties, 'data-line-number', lineNumber), _defineProperty(_properties, "className", ['euiCodeBlock__lineNumber', lineNumberWrapperStyles]), _properties),
|
|
170
189
|
children: []
|
|
171
|
-
}
|
|
190
|
+
}; // Line number element
|
|
191
|
+
|
|
192
|
+
var lineNumberStyles = cx(styles.lineNumber.euiCodeBlock__lineNumber);
|
|
193
|
+
var lineNumberElement = {
|
|
172
194
|
type: 'element',
|
|
173
195
|
tagName: 'span',
|
|
174
|
-
properties: {
|
|
175
|
-
className: [
|
|
176
|
-
},
|
|
177
|
-
children:
|
|
178
|
-
|
|
196
|
+
properties: _defineProperty({
|
|
197
|
+
className: [lineNumberStyles]
|
|
198
|
+
}, 'aria-hidden', true),
|
|
199
|
+
children: [{
|
|
200
|
+
type: 'text',
|
|
201
|
+
value: String(lineNumber)
|
|
202
|
+
}]
|
|
203
|
+
};
|
|
204
|
+
lineNumberWrapperElement.children.push(lineNumberElement); // Annotation element
|
|
205
|
+
|
|
206
|
+
var hasAnnotation = (_options$annotations = options.annotations) === null || _options$annotations === void 0 ? void 0 : _options$annotations.hasOwnProperty(lineNumber);
|
|
207
|
+
|
|
208
|
+
if (hasAnnotation) {
|
|
209
|
+
var annotationElement = {
|
|
210
|
+
type: 'annotation',
|
|
211
|
+
annotation: options.annotations[lineNumber],
|
|
212
|
+
lineNumber: lineNumber
|
|
213
|
+
};
|
|
214
|
+
lineNumberWrapperElement.children.push(annotationElement);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
children = [lineNumberWrapperElement, lineTextElement];
|
|
179
218
|
}
|
|
180
219
|
|
|
181
220
|
wrapped.push({
|
|
@@ -195,6 +234,7 @@ export var highlightByLine = function highlightByLine(children, language, data,
|
|
|
195
234
|
lineNumber: data.start
|
|
196
235
|
}), {
|
|
197
236
|
showLineNumbers: data.show,
|
|
198
|
-
highlight: data.highlight
|
|
237
|
+
highlight: data.highlight,
|
|
238
|
+
annotations: data.annotations
|
|
199
239
|
}, euiTheme);
|
|
200
240
|
};
|
|
@@ -85,7 +85,7 @@ export var EuiRangeTrack = function EuiRangeTrack(_ref) {
|
|
|
85
85
|
}, [showTicks, ticks, min, max, tickInterval, step]);
|
|
86
86
|
var euiTheme = useEuiTheme();
|
|
87
87
|
var styles = euiRangeTrackStyles(euiTheme);
|
|
88
|
-
var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, (tickSequence || ticks) && styles.hasTicks];
|
|
88
|
+
var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, showTicks && (tickSequence || ticks) && styles.hasTicks];
|
|
89
89
|
|
|
90
90
|
var _useState = useState(0),
|
|
91
91
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -27,18 +27,10 @@ var EuiIconAppAgent = function EuiIconAppAgent(_ref) {
|
|
|
27
27
|
}, props), title ? ___EmotionJSX("title", {
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
-
|
|
31
|
-
d: "M21 2.82L16 .038 11 2.82v2.289l5-2.782 5 2.782v-2.29z"
|
|
32
|
-
}), ___EmotionJSX("path", {
|
|
33
|
-
className: "euiIcon__fillSecondary",
|
|
34
|
-
d: "M21 7.282L16 4.5l-5 2.782V9.57l5-2.781 5 2.781V7.282z"
|
|
35
|
-
}), ___EmotionJSX("path", {
|
|
36
|
-
d: "M7 5.045L2 7.827v15.577l14 7.788 14-7.788V7.827l-5-2.782v2.289l3 1.669v13.225l-12 6.676-12-6.676V9.003l3-1.669V5.045z"
|
|
30
|
+
d: "M2.996 18.636L0 20.434v6.132l6 3.6 5-3 5 3 5-3 5 3 6-3.6v-6.132l-5-3v-5l-5-3v-5l-6-3.6-6 3.6v2.832l2 .033V5.566l4-2.4 4 2.4v3.868l-1.996 1.197 1 1.733L21 11.166l4 2.4v3.868l-4 2.4-2.257-1.354-.971 1.75L20 21.565v3.868l-4 2.4-4-2.4v-1.7l-2-.033v1.733l-4 2.4-4-2.4v-3.868l1.996-1.197-1-1.733zM22 25.434v-3.868l4-2.4 4 2.4v3.868l-4 2.4-4-2.4z"
|
|
37
31
|
}), ___EmotionJSX("path", {
|
|
38
32
|
className: "euiIcon__fillSecondary",
|
|
39
|
-
|
|
40
|
-
clipRule: "evenodd",
|
|
41
|
-
d: "M22 12.5L16 9l-6 3.5v7l6 3.5 6-3.5v-7zm-9.974 1.205L16 11.387l3.974 2.318v4.59L16 20.613l-3.974-2.318v-4.59z"
|
|
33
|
+
d: "M11 22.166l-6-3.6v-6.132l6-3.6 6 3.6v6.132l-6 3.6zm4-4.732v-3.868l-4-2.4-4 2.4v3.868l4 2.4 4-2.4z"
|
|
42
34
|
}));
|
|
43
35
|
};
|
|
44
36
|
|
|
@@ -27,10 +27,18 @@ var EuiIconAppFleet = function EuiIconAppFleet(_ref) {
|
|
|
27
27
|
}, props), title ? ___EmotionJSX("title", {
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
-
|
|
30
|
+
className: "euiIcon__fillSecondary",
|
|
31
|
+
d: "M21 2.82L16 .038 11 2.82v2.289l5-2.782 5 2.782v-2.29z"
|
|
32
|
+
}), ___EmotionJSX("path", {
|
|
33
|
+
className: "euiIcon__fillSecondary",
|
|
34
|
+
d: "M21 7.282L16 4.5l-5 2.782V9.57l5-2.781 5 2.781V7.282z"
|
|
35
|
+
}), ___EmotionJSX("path", {
|
|
36
|
+
d: "M7 5.045L2 7.827v15.577l14 7.788 14-7.788V7.827l-5-2.782v2.289l3 1.669v13.225l-12 6.676-12-6.676V9.003l3-1.669V5.045z"
|
|
31
37
|
}), ___EmotionJSX("path", {
|
|
32
38
|
className: "euiIcon__fillSecondary",
|
|
33
|
-
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
d: "M22 12.5L16 9l-6 3.5v7l6 3.5 6-3.5v-7zm-9.974 1.205L16 11.387l3.974 2.318v4.59L16 20.613l-3.974-2.318v-4.59z"
|
|
34
42
|
}));
|
|
35
43
|
};
|
|
36
44
|
|
|
@@ -13,6 +13,8 @@ import classNames from 'classnames';
|
|
|
13
13
|
import React, { createElement } from 'react';
|
|
14
14
|
import { EuiTitle } from '../title';
|
|
15
15
|
import { EuiStepNumber } from './step_number';
|
|
16
|
+
import { useEuiTheme } from '../../services';
|
|
17
|
+
import { euiStepStyles, euiStepContentStyles, euiStepTitleStyles } from './step.styles';
|
|
16
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
19
|
export var EuiStep = function EuiStep(_ref) {
|
|
18
20
|
var className = _ref.className,
|
|
@@ -27,26 +29,31 @@ export var EuiStep = function EuiStep(_ref) {
|
|
|
27
29
|
status = _ref.status,
|
|
28
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
|
|
30
|
-
var classes = classNames('euiStep',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
var classes = classNames('euiStep', className);
|
|
33
|
+
var euiTheme = useEuiTheme();
|
|
34
|
+
var styles = euiStepStyles(euiTheme);
|
|
35
|
+
var cssStyles = [styles.euiStep, styles[titleSize]];
|
|
36
|
+
var contentStyles = euiStepContentStyles(euiTheme);
|
|
37
|
+
var cssContentStyles = [contentStyles.euiStep__content, contentStyles[titleSize]];
|
|
38
|
+
var titleStyles = euiStepTitleStyles(euiTheme);
|
|
39
|
+
var cssStepTitleStyles = [titleStyles.euiStep__title, status === 'disabled' && titleStyles.isDisabled, titleStyles[titleSize]];
|
|
40
|
+
var cssTitleWrapperStyles = titleStyles.euiStep__titleWrapper;
|
|
37
41
|
return ___EmotionJSX("div", _extends({
|
|
38
|
-
className: classes
|
|
42
|
+
className: classes,
|
|
43
|
+
css: cssStyles
|
|
39
44
|
}, rest), ___EmotionJSX("div", {
|
|
40
|
-
className: "euiStep__titleWrapper"
|
|
45
|
+
className: "euiStep__titleWrapper",
|
|
46
|
+
css: cssTitleWrapperStyles
|
|
41
47
|
}, ___EmotionJSX(EuiStepNumber, {
|
|
42
|
-
className: numberClasses,
|
|
43
48
|
number: step,
|
|
44
49
|
status: status,
|
|
45
50
|
titleSize: titleSize
|
|
46
51
|
}), ___EmotionJSX(EuiTitle, {
|
|
47
52
|
size: titleSize,
|
|
48
|
-
className: "euiStep__title"
|
|
53
|
+
className: "euiStep__title",
|
|
54
|
+
css: cssStepTitleStyles
|
|
49
55
|
}, /*#__PURE__*/createElement(headingElement, null, title))), ___EmotionJSX("div", {
|
|
50
|
-
className: "euiStep__content"
|
|
56
|
+
className: "euiStep__content",
|
|
57
|
+
css: cssContentStyles
|
|
51
58
|
}, children));
|
|
52
59
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import { mathWithUnits, logicalCSS } from '../../global_styling';
|
|
10
|
+
export var euiStepVariables = function euiStepVariables(euiTheme) {
|
|
11
|
+
return {
|
|
12
|
+
numberSize: euiTheme.size.xl,
|
|
13
|
+
numberXSSize: euiTheme.size.l,
|
|
14
|
+
numberMargin: euiTheme.size.base
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export var euiStepStyles = function euiStepStyles(euiThemeContext) {
|
|
18
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
19
|
+
var euiStep = euiStepVariables(euiTheme); // the vertical line is centered on the number, so we need to offset the line
|
|
20
|
+
// by half of the number size & half of the line size to center it
|
|
21
|
+
|
|
22
|
+
var lineStartPosition = mathWithUnits([euiStep.numberSize, euiTheme.border.width.thick], function (x, y) {
|
|
23
|
+
return x / 2 - y / 2;
|
|
24
|
+
});
|
|
25
|
+
var lineEndPosition = mathWithUnits([euiStep.numberSize, euiTheme.border.width.thick], function (x, y) {
|
|
26
|
+
return x / 2 + y / 2;
|
|
27
|
+
});
|
|
28
|
+
var lineGradient = "linear-gradient(to right,\n transparent 0,\n transparent ".concat(lineStartPosition, ",\n ").concat(euiTheme.border.color, " ").concat(lineStartPosition, ",\n ").concat(euiTheme.border.color, " ").concat(lineEndPosition, ",\n transparent ").concat(lineEndPosition, ",\n transparent 100%)");
|
|
29
|
+
return {
|
|
30
|
+
euiStep: /*#__PURE__*/css("&:not(:last-of-type){background-image:", lineGradient, ";background-repeat:no-repeat;};label:euiStep;"),
|
|
31
|
+
// Sizes
|
|
32
|
+
m: /*#__PURE__*/css("&:not(:last-of-type){background-position:left ", euiTheme.size.xl, ";};label:m;"),
|
|
33
|
+
s: /*#__PURE__*/css("&:not(:last-of-type){background-position:left ", euiTheme.size.xl, ";};label:s;"),
|
|
34
|
+
xs: /*#__PURE__*/css("&:not(:last-of-type){background-position:-", euiTheme.size.xs, " ", euiTheme.size.l, ";};label:xs;")
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export var euiStepContentStyles = function euiStepContentStyles(euiThemeContext) {
|
|
38
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
39
|
+
var euiStep = euiStepVariables(euiTheme);
|
|
40
|
+
var styles = {
|
|
41
|
+
euiStep__content: /*#__PURE__*/css(logicalCSS('margin-top', euiTheme.size.s), " ", logicalCSS('padding-top', euiTheme.size.base), " ", logicalCSS('padding-bottom', mathWithUnits([euiTheme.size.xl, euiTheme.size.s], function (x, y) {
|
|
42
|
+
return x + y;
|
|
43
|
+
})), " ", logicalCSS('padding-right', euiTheme.size.base), ";;label:euiStep__content;"),
|
|
44
|
+
// Sizes
|
|
45
|
+
m: /*#__PURE__*/css(logicalCSS('padding-left', mathWithUnits([euiStep.numberSize, euiStep.numberMargin], function (x, y) {
|
|
46
|
+
return x / 2 + y;
|
|
47
|
+
})), logicalCSS('margin-left', mathWithUnits(euiStep.numberSize, function (x) {
|
|
48
|
+
return x / 2;
|
|
49
|
+
})), ";;label:m;"),
|
|
50
|
+
s: /*#__PURE__*/css(";label:s;"),
|
|
51
|
+
// s is the same as m, so we'll programmatically duplicate it below
|
|
52
|
+
xs: /*#__PURE__*/css(logicalCSS('padding-left', mathWithUnits([euiStep.numberXSSize, euiStep.numberMargin], function (x, y) {
|
|
53
|
+
return x / 2 + y;
|
|
54
|
+
})), logicalCSS('margin-left', mathWithUnits(euiStep.numberXSSize, function (x) {
|
|
55
|
+
return x / 2;
|
|
56
|
+
})), ";;label:xs;")
|
|
57
|
+
};
|
|
58
|
+
styles.s = styles.m;
|
|
59
|
+
return styles;
|
|
60
|
+
};
|
|
61
|
+
export var euiStepTitleStyles = function euiStepTitleStyles(euiThemeContext) {
|
|
62
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
63
|
+
var euiStep = euiStepVariables(euiTheme);
|
|
64
|
+
return {
|
|
65
|
+
euiStep__titleWrapper: /*#__PURE__*/css("display:flex;gap:", euiStep.numberMargin, ";;label:euiStep__titleWrapper;"),
|
|
66
|
+
euiStep__title: /*#__PURE__*/css(";label:euiStep__title;"),
|
|
67
|
+
isDisabled: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";;label:isDisabled;"),
|
|
68
|
+
// Sizes
|
|
69
|
+
m: /*#__PURE__*/css(";label:m;"),
|
|
70
|
+
s: /*#__PURE__*/css(logicalCSS('padding-top', euiTheme.size.xs), ";;label:s;"),
|
|
71
|
+
xs: /*#__PURE__*/css(";label:xs;")
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -12,7 +12,9 @@ var _excluded = ["className", "step", "title", "onClick", "disabled", "status"];
|
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { EuiStepNumber } from './step_number';
|
|
15
|
-
import { useI18nCompleteStep, useI18nCurrentStep, useI18nDisabledStep, useI18nIncompleteStep, useI18nStep, useI18nWarningStep } from './step_strings';
|
|
15
|
+
import { useI18nCompleteStep, useI18nCurrentStep, useI18nDisabledStep, useI18nIncompleteStep, useI18nStep, useI18nWarningStep, useI18nErrorsStep, useI18nLoadingStep } from './step_strings';
|
|
16
|
+
import { useEuiTheme } from '../../services';
|
|
17
|
+
import { euiStepHorizontalStyles, euiStepHorizontalNumberStyles, euiStepHorizontalTitleStyles } from './step_horizontal.styles';
|
|
16
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
19
|
export var EuiStepHorizontal = function EuiStepHorizontal(_ref) {
|
|
18
20
|
var className = _ref.className,
|
|
@@ -25,43 +27,50 @@ export var EuiStepHorizontal = function EuiStepHorizontal(_ref) {
|
|
|
25
27
|
status = _ref$status === void 0 ? 'incomplete' : _ref$status,
|
|
26
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
29
|
|
|
28
|
-
var buttonTitle = useI18nStep({
|
|
29
|
-
number: step,
|
|
30
|
-
title: title
|
|
31
|
-
});
|
|
32
|
-
var completeTitle = useI18nCompleteStep({
|
|
33
|
-
number: step,
|
|
34
|
-
title: title
|
|
35
|
-
});
|
|
36
|
-
var disabledTitle = useI18nDisabledStep({
|
|
37
|
-
number: step,
|
|
38
|
-
title: title
|
|
39
|
-
});
|
|
40
|
-
var incompleteTitle = useI18nIncompleteStep({
|
|
41
|
-
number: step,
|
|
42
|
-
title: title
|
|
43
|
-
});
|
|
44
|
-
var warningTitle = useI18nWarningStep({
|
|
45
|
-
number: step,
|
|
46
|
-
title: title
|
|
47
|
-
});
|
|
48
|
-
var currentTitle = useI18nCurrentStep({
|
|
49
|
-
number: step,
|
|
50
|
-
title: title
|
|
51
|
-
});
|
|
52
30
|
if (disabled) status = 'disabled';
|
|
53
|
-
var classes = classNames('euiStepHorizontal', className
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
31
|
+
var classes = classNames('euiStepHorizontal', className);
|
|
32
|
+
var euiTheme = useEuiTheme();
|
|
33
|
+
var styles = euiStepHorizontalStyles(euiTheme);
|
|
34
|
+
var cssStyles = [styles.euiStepHorizontal, status === 'disabled' ? styles.disabled : styles.enabled];
|
|
35
|
+
var numberStyles = euiStepHorizontalNumberStyles(euiTheme);
|
|
36
|
+
var cssNumberStyles = [numberStyles.euiStepHorizontal__number];
|
|
37
|
+
var titleStyles = euiStepHorizontalTitleStyles(euiTheme);
|
|
38
|
+
var cssTitleStyles = [titleStyles.euiStepHorizontal__title, status === 'disabled' && titleStyles.disabled];
|
|
39
|
+
var titleAttrsMap = {
|
|
40
|
+
step: useI18nStep({
|
|
41
|
+
number: step,
|
|
42
|
+
title: title
|
|
43
|
+
}),
|
|
44
|
+
current: useI18nCurrentStep({
|
|
45
|
+
number: step,
|
|
46
|
+
title: title
|
|
47
|
+
}),
|
|
48
|
+
disabled: useI18nDisabledStep({
|
|
49
|
+
number: step,
|
|
50
|
+
title: title
|
|
51
|
+
}),
|
|
52
|
+
incomplete: useI18nIncompleteStep({
|
|
53
|
+
number: step,
|
|
54
|
+
title: title
|
|
55
|
+
}),
|
|
56
|
+
complete: useI18nCompleteStep({
|
|
57
|
+
number: step,
|
|
58
|
+
title: title
|
|
59
|
+
}),
|
|
60
|
+
warning: useI18nWarningStep({
|
|
61
|
+
number: step,
|
|
62
|
+
title: title
|
|
63
|
+
}),
|
|
64
|
+
danger: useI18nErrorsStep({
|
|
65
|
+
number: step,
|
|
66
|
+
title: title
|
|
67
|
+
}),
|
|
68
|
+
loading: useI18nLoadingStep({
|
|
69
|
+
number: step,
|
|
70
|
+
title: title
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
var titleAttr = titleAttrsMap[status || 'step'];
|
|
65
74
|
|
|
66
75
|
var onStepClick = function onStepClick(event) {
|
|
67
76
|
if (!disabled) onClick(event);
|
|
@@ -69,14 +78,18 @@ export var EuiStepHorizontal = function EuiStepHorizontal(_ref) {
|
|
|
69
78
|
|
|
70
79
|
return ___EmotionJSX("button", _extends({
|
|
71
80
|
className: classes,
|
|
72
|
-
title:
|
|
81
|
+
title: titleAttr,
|
|
73
82
|
onClick: onStepClick,
|
|
74
|
-
disabled: disabled
|
|
83
|
+
disabled: disabled,
|
|
84
|
+
css: cssStyles,
|
|
85
|
+
"data-step-status": status
|
|
75
86
|
}, rest), ___EmotionJSX(EuiStepNumber, {
|
|
76
87
|
className: "euiStepHorizontal__number",
|
|
77
88
|
status: status,
|
|
78
|
-
number: step
|
|
89
|
+
number: step,
|
|
90
|
+
css: cssNumberStyles
|
|
79
91
|
}), ___EmotionJSX("span", {
|
|
80
|
-
className: "euiStepHorizontal__title"
|
|
92
|
+
className: "euiStepHorizontal__title",
|
|
93
|
+
css: cssTitleStyles
|
|
81
94
|
}, title));
|
|
82
95
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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';
|
|
11
|
+
import { euiBreakpoint, logicalShorthandCSS, euiFocusRing, euiCanAnimate, mathWithUnits } from '../../global_styling/';
|
|
12
|
+
import { euiTitle } from '../title/title.styles';
|
|
13
|
+
import { euiStepVariables } from './step.styles';
|
|
14
|
+
|
|
15
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
16
|
+
name: "b86pnw-disabled",
|
|
17
|
+
styles: "cursor:not-allowed;label:disabled;"
|
|
18
|
+
} : {
|
|
19
|
+
name: "b86pnw-disabled",
|
|
20
|
+
styles: "cursor:not-allowed;label:disabled;",
|
|
21
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export var euiStepHorizontalStyles = function euiStepHorizontalStyles(euiThemeContext) {
|
|
25
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
26
|
+
var euiStep = euiStepVariables(euiTheme);
|
|
27
|
+
/**
|
|
28
|
+
* 1. Ensure the connecting lines stays behind the number
|
|
29
|
+
* 2. Make the content of each step align to the top, even if the steps are of varying heights,
|
|
30
|
+
* e.g. due to some of their titles wrapping to multiple lines
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
euiStepHorizontal: /*#__PURE__*/css(logicalShorthandCSS('padding', "".concat(euiTheme.size.l, " ").concat(euiTheme.size.base, " ").concat(euiTheme.size.base)), " display:flex;flex-direction:column;align-items:center;justify-content:flex-start;cursor:pointer;position:relative;inline-size:100%;&::before,&::after{content:'';position:absolute;background-color:", euiTheme.border.color, ";block-size:", euiTheme.border.width.thick, ";inline-size:calc(50% - (", euiStep.numberSize, " / 2));inset-block-start:", mathWithUnits([euiTheme.size.l, euiStep.numberSize], function (x, y) {
|
|
35
|
+
return x + y / 2;
|
|
36
|
+
}), ";z-index:", euiTheme.levels.content, ";}&::before{inset-inline-start:0;}&::after{inset-inline-end:0;};label:euiStepHorizontal;"),
|
|
37
|
+
// Note: these selectors must be nested because focus/hover state
|
|
38
|
+
// is on the parent container, but affects specific children
|
|
39
|
+
enabled: /*#__PURE__*/css("&:focus,&:hover{.euiStepHorizontal__title{text-decoration:underline;}}&:focus{outline:none;.euiStepHorizontal__number{", euiFocusRing(euiThemeContext), ";}.euiStepHorizontal__number:not(:focus-visible){outline:", euiTheme.focus.width, " solid ", euiTheme.colors.darkestShade, ";}};label:enabled;"),
|
|
40
|
+
disabled: _ref
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export var euiStepHorizontalNumberStyles = function euiStepHorizontalNumberStyles(euiThemeContext) {
|
|
44
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
45
|
+
return {
|
|
46
|
+
euiStepHorizontal__number: /*#__PURE__*/css("position:relative;z-index:", Number(euiTheme.levels.content) + 1, ";", euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in-out;};label:euiStepHorizontal__number;")
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export var euiStepHorizontalTitleStyles = function euiStepHorizontalTitleStyles(euiThemeContext) {
|
|
50
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
51
|
+
return {
|
|
52
|
+
euiStepHorizontal__title: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xs'), ";margin-block-start:", euiTheme.size.s, ";font-weight:", euiTheme.font.weight.bold, ";text-align:center;", euiBreakpoint(euiThemeContext, ['xs', 's']), "{display:none;};label:euiStepHorizontal__title;"),
|
|
53
|
+
disabled: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";;label:disabled;")
|
|
54
|
+
};
|
|
55
|
+
};
|