@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,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiStepVariables = exports.euiStepTitleStyles = exports.euiStepStyles = exports.euiStepContentStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
14
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
15
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
16
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
17
|
+
* Side Public License, v 1.
|
|
18
|
+
*/
|
|
19
|
+
var euiStepVariables = function euiStepVariables(euiTheme) {
|
|
20
|
+
return {
|
|
21
|
+
numberSize: euiTheme.size.xl,
|
|
22
|
+
numberXSSize: euiTheme.size.l,
|
|
23
|
+
numberMargin: euiTheme.size.base
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.euiStepVariables = euiStepVariables;
|
|
28
|
+
|
|
29
|
+
var euiStepStyles = function euiStepStyles(euiThemeContext) {
|
|
30
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
31
|
+
var euiStep = euiStepVariables(euiTheme); // the vertical line is centered on the number, so we need to offset the line
|
|
32
|
+
// by half of the number size & half of the line size to center it
|
|
33
|
+
|
|
34
|
+
var lineStartPosition = (0, _global_styling.mathWithUnits)([euiStep.numberSize, euiTheme.border.width.thick], function (x, y) {
|
|
35
|
+
return x / 2 - y / 2;
|
|
36
|
+
});
|
|
37
|
+
var lineEndPosition = (0, _global_styling.mathWithUnits)([euiStep.numberSize, euiTheme.border.width.thick], function (x, y) {
|
|
38
|
+
return x / 2 + y / 2;
|
|
39
|
+
});
|
|
40
|
+
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%)");
|
|
41
|
+
return {
|
|
42
|
+
euiStep: /*#__PURE__*/(0, _react.css)("&:not(:last-of-type){background-image:", lineGradient, ";background-repeat:no-repeat;};label:euiStep;"),
|
|
43
|
+
// Sizes
|
|
44
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:last-of-type){background-position:left ", euiTheme.size.xl, ";};label:m;"),
|
|
45
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:last-of-type){background-position:left ", euiTheme.size.xl, ";};label:s;"),
|
|
46
|
+
xs: /*#__PURE__*/(0, _react.css)("&:not(:last-of-type){background-position:-", euiTheme.size.xs, " ", euiTheme.size.l, ";};label:xs;")
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.euiStepStyles = euiStepStyles;
|
|
51
|
+
|
|
52
|
+
var euiStepContentStyles = function euiStepContentStyles(euiThemeContext) {
|
|
53
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
54
|
+
var euiStep = euiStepVariables(euiTheme);
|
|
55
|
+
var styles = {
|
|
56
|
+
euiStep__content: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-top', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('padding-bottom', (0, _global_styling.mathWithUnits)([euiTheme.size.xl, euiTheme.size.s], function (x, y) {
|
|
57
|
+
return x + y;
|
|
58
|
+
})), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.base), ";;label:euiStep__content;"),
|
|
59
|
+
// Sizes
|
|
60
|
+
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-left', (0, _global_styling.mathWithUnits)([euiStep.numberSize, euiStep.numberMargin], function (x, y) {
|
|
61
|
+
return x / 2 + y;
|
|
62
|
+
})), (0, _global_styling.logicalCSS)('margin-left', (0, _global_styling.mathWithUnits)(euiStep.numberSize, function (x) {
|
|
63
|
+
return x / 2;
|
|
64
|
+
})), ";;label:m;"),
|
|
65
|
+
s: /*#__PURE__*/(0, _react.css)(";label:s;"),
|
|
66
|
+
// s is the same as m, so we'll programmatically duplicate it below
|
|
67
|
+
xs: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-left', (0, _global_styling.mathWithUnits)([euiStep.numberXSSize, euiStep.numberMargin], function (x, y) {
|
|
68
|
+
return x / 2 + y;
|
|
69
|
+
})), (0, _global_styling.logicalCSS)('margin-left', (0, _global_styling.mathWithUnits)(euiStep.numberXSSize, function (x) {
|
|
70
|
+
return x / 2;
|
|
71
|
+
})), ";;label:xs;")
|
|
72
|
+
};
|
|
73
|
+
styles.s = styles.m;
|
|
74
|
+
return styles;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.euiStepContentStyles = euiStepContentStyles;
|
|
78
|
+
|
|
79
|
+
var euiStepTitleStyles = function euiStepTitleStyles(euiThemeContext) {
|
|
80
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
81
|
+
var euiStep = euiStepVariables(euiTheme);
|
|
82
|
+
return {
|
|
83
|
+
euiStep__titleWrapper: /*#__PURE__*/(0, _react.css)("display:flex;gap:", euiStep.numberMargin, ";;label:euiStep__titleWrapper;"),
|
|
84
|
+
euiStep__title: /*#__PURE__*/(0, _react.css)(";label:euiStep__title;"),
|
|
85
|
+
isDisabled: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.disabledText, ";;label:isDisabled;"),
|
|
86
|
+
// Sizes
|
|
87
|
+
m: /*#__PURE__*/(0, _react.css)(";label:m;"),
|
|
88
|
+
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-top', euiTheme.size.xs), ";;label:s;"),
|
|
89
|
+
xs: /*#__PURE__*/(0, _react.css)(";label:xs;")
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
exports.euiStepTitleStyles = euiStepTitleStyles;
|
|
@@ -21,6 +21,10 @@ var _step_number = require("./step_number");
|
|
|
21
21
|
|
|
22
22
|
var _step_strings = require("./step_strings");
|
|
23
23
|
|
|
24
|
+
var _services = require("../../services");
|
|
25
|
+
|
|
26
|
+
var _step_horizontal = require("./step_horizontal.styles");
|
|
27
|
+
|
|
24
28
|
var _react2 = require("@emotion/react");
|
|
25
29
|
|
|
26
30
|
var _excluded = ["className", "step", "title", "onClick", "disabled", "status"];
|
|
@@ -35,43 +39,50 @@ var EuiStepHorizontal = function EuiStepHorizontal(_ref) {
|
|
|
35
39
|
_ref$status = _ref.status,
|
|
36
40
|
status = _ref$status === void 0 ? 'incomplete' : _ref$status,
|
|
37
41
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
|
-
var buttonTitle = (0, _step_strings.useI18nStep)({
|
|
39
|
-
number: step,
|
|
40
|
-
title: title
|
|
41
|
-
});
|
|
42
|
-
var completeTitle = (0, _step_strings.useI18nCompleteStep)({
|
|
43
|
-
number: step,
|
|
44
|
-
title: title
|
|
45
|
-
});
|
|
46
|
-
var disabledTitle = (0, _step_strings.useI18nDisabledStep)({
|
|
47
|
-
number: step,
|
|
48
|
-
title: title
|
|
49
|
-
});
|
|
50
|
-
var incompleteTitle = (0, _step_strings.useI18nIncompleteStep)({
|
|
51
|
-
number: step,
|
|
52
|
-
title: title
|
|
53
|
-
});
|
|
54
|
-
var warningTitle = (0, _step_strings.useI18nWarningStep)({
|
|
55
|
-
number: step,
|
|
56
|
-
title: title
|
|
57
|
-
});
|
|
58
|
-
var currentTitle = (0, _step_strings.useI18nCurrentStep)({
|
|
59
|
-
number: step,
|
|
60
|
-
title: title
|
|
61
|
-
});
|
|
62
42
|
if (disabled) status = 'disabled';
|
|
63
|
-
var classes = (0, _classnames.default)('euiStepHorizontal', className
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
43
|
+
var classes = (0, _classnames.default)('euiStepHorizontal', className);
|
|
44
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
45
|
+
var styles = (0, _step_horizontal.euiStepHorizontalStyles)(euiTheme);
|
|
46
|
+
var cssStyles = [styles.euiStepHorizontal, status === 'disabled' ? styles.disabled : styles.enabled];
|
|
47
|
+
var numberStyles = (0, _step_horizontal.euiStepHorizontalNumberStyles)(euiTheme);
|
|
48
|
+
var cssNumberStyles = [numberStyles.euiStepHorizontal__number];
|
|
49
|
+
var titleStyles = (0, _step_horizontal.euiStepHorizontalTitleStyles)(euiTheme);
|
|
50
|
+
var cssTitleStyles = [titleStyles.euiStepHorizontal__title, status === 'disabled' && titleStyles.disabled];
|
|
51
|
+
var titleAttrsMap = {
|
|
52
|
+
step: (0, _step_strings.useI18nStep)({
|
|
53
|
+
number: step,
|
|
54
|
+
title: title
|
|
55
|
+
}),
|
|
56
|
+
current: (0, _step_strings.useI18nCurrentStep)({
|
|
57
|
+
number: step,
|
|
58
|
+
title: title
|
|
59
|
+
}),
|
|
60
|
+
disabled: (0, _step_strings.useI18nDisabledStep)({
|
|
61
|
+
number: step,
|
|
62
|
+
title: title
|
|
63
|
+
}),
|
|
64
|
+
incomplete: (0, _step_strings.useI18nIncompleteStep)({
|
|
65
|
+
number: step,
|
|
66
|
+
title: title
|
|
67
|
+
}),
|
|
68
|
+
complete: (0, _step_strings.useI18nCompleteStep)({
|
|
69
|
+
number: step,
|
|
70
|
+
title: title
|
|
71
|
+
}),
|
|
72
|
+
warning: (0, _step_strings.useI18nWarningStep)({
|
|
73
|
+
number: step,
|
|
74
|
+
title: title
|
|
75
|
+
}),
|
|
76
|
+
danger: (0, _step_strings.useI18nErrorsStep)({
|
|
77
|
+
number: step,
|
|
78
|
+
title: title
|
|
79
|
+
}),
|
|
80
|
+
loading: (0, _step_strings.useI18nLoadingStep)({
|
|
81
|
+
number: step,
|
|
82
|
+
title: title
|
|
83
|
+
})
|
|
84
|
+
};
|
|
85
|
+
var titleAttr = titleAttrsMap[status || 'step'];
|
|
75
86
|
|
|
76
87
|
var onStepClick = function onStepClick(event) {
|
|
77
88
|
if (!disabled) onClick(event);
|
|
@@ -79,15 +90,19 @@ var EuiStepHorizontal = function EuiStepHorizontal(_ref) {
|
|
|
79
90
|
|
|
80
91
|
return (0, _react2.jsx)("button", (0, _extends2.default)({
|
|
81
92
|
className: classes,
|
|
82
|
-
title:
|
|
93
|
+
title: titleAttr,
|
|
83
94
|
onClick: onStepClick,
|
|
84
|
-
disabled: disabled
|
|
95
|
+
disabled: disabled,
|
|
96
|
+
css: cssStyles,
|
|
97
|
+
"data-step-status": status
|
|
85
98
|
}, rest), (0, _react2.jsx)(_step_number.EuiStepNumber, {
|
|
86
99
|
className: "euiStepHorizontal__number",
|
|
87
100
|
status: status,
|
|
88
|
-
number: step
|
|
101
|
+
number: step,
|
|
102
|
+
css: cssNumberStyles
|
|
89
103
|
}), (0, _react2.jsx)("span", {
|
|
90
|
-
className: "euiStepHorizontal__title"
|
|
104
|
+
className: "euiStepHorizontal__title",
|
|
105
|
+
css: cssTitleStyles
|
|
91
106
|
}, title));
|
|
92
107
|
};
|
|
93
108
|
|
|
@@ -109,7 +124,7 @@ EuiStepHorizontal.propTypes = {
|
|
|
109
124
|
/**
|
|
110
125
|
* Visual representation of the step number indicator.
|
|
111
126
|
* May replace the number provided in props.step with alternate styling.
|
|
112
|
-
* The `
|
|
127
|
+
* The `disabled` prop will override this.
|
|
113
128
|
*/
|
|
114
129
|
status: _propTypes.default.any,
|
|
115
130
|
className: _propTypes.default.string,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiStepHorizontalTitleStyles = exports.euiStepHorizontalStyles = exports.euiStepHorizontalNumberStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling/");
|
|
11
|
+
|
|
12
|
+
var _title = require("../title/title.styles");
|
|
13
|
+
|
|
14
|
+
var _step = require("./step.styles");
|
|
15
|
+
|
|
16
|
+
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)."; }
|
|
17
|
+
|
|
18
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19
|
+
name: "b86pnw-disabled",
|
|
20
|
+
styles: "cursor:not-allowed;label:disabled;"
|
|
21
|
+
} : {
|
|
22
|
+
name: "b86pnw-disabled",
|
|
23
|
+
styles: "cursor:not-allowed;label:disabled;",
|
|
24
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var euiStepHorizontalStyles = function euiStepHorizontalStyles(euiThemeContext) {
|
|
28
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
29
|
+
var euiStep = (0, _step.euiStepVariables)(euiTheme);
|
|
30
|
+
/**
|
|
31
|
+
* 1. Ensure the connecting lines stays behind the number
|
|
32
|
+
* 2. Make the content of each step align to the top, even if the steps are of varying heights,
|
|
33
|
+
* e.g. due to some of their titles wrapping to multiple lines
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
euiStepHorizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.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:", (0, _global_styling.mathWithUnits)([euiTheme.size.l, euiStep.numberSize], function (x, y) {
|
|
38
|
+
return x + y / 2;
|
|
39
|
+
}), ";z-index:", euiTheme.levels.content, ";}&::before{inset-inline-start:0;}&::after{inset-inline-end:0;};label:euiStepHorizontal;"),
|
|
40
|
+
// Note: these selectors must be nested because focus/hover state
|
|
41
|
+
// is on the parent container, but affects specific children
|
|
42
|
+
enabled: /*#__PURE__*/(0, _react.css)("&:focus,&:hover{.euiStepHorizontal__title{text-decoration:underline;}}&:focus{outline:none;.euiStepHorizontal__number{", (0, _global_styling.euiFocusRing)(euiThemeContext), ";}.euiStepHorizontal__number:not(:focus-visible){outline:", euiTheme.focus.width, " solid ", euiTheme.colors.darkestShade, ";}};label:enabled;"),
|
|
43
|
+
disabled: _ref
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.euiStepHorizontalStyles = euiStepHorizontalStyles;
|
|
48
|
+
|
|
49
|
+
var euiStepHorizontalNumberStyles = function euiStepHorizontalNumberStyles(euiThemeContext) {
|
|
50
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
51
|
+
return {
|
|
52
|
+
euiStepHorizontal__number: /*#__PURE__*/(0, _react.css)("position:relative;z-index:", Number(euiTheme.levels.content) + 1, ";", _global_styling.euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in-out;};label:euiStepHorizontal__number;")
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.euiStepHorizontalNumberStyles = euiStepHorizontalNumberStyles;
|
|
57
|
+
|
|
58
|
+
var euiStepHorizontalTitleStyles = function euiStepHorizontalTitleStyles(euiThemeContext) {
|
|
59
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
60
|
+
return {
|
|
61
|
+
euiStepHorizontal__title: /*#__PURE__*/(0, _react.css)((0, _title.euiTitle)(euiThemeContext, 'xs'), ";margin-block-start:", euiTheme.size.s, ";font-weight:", euiTheme.font.weight.bold, ";text-align:center;", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs', 's']), "{display:none;};label:euiStepHorizontal__title;"),
|
|
62
|
+
disabled: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.disabledText, ";;label:disabled;")
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
exports.euiStepHorizontalTitleStyles = euiStepHorizontalTitleStyles;
|
|
@@ -19,100 +19,111 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
19
19
|
|
|
20
20
|
var _accessibility = require("../accessibility");
|
|
21
21
|
|
|
22
|
-
var _common = require("../common");
|
|
23
|
-
|
|
24
22
|
var _icon = require("../icon");
|
|
25
23
|
|
|
26
24
|
var _step_strings = require("./step_strings");
|
|
27
25
|
|
|
28
26
|
var _loading = require("../loading");
|
|
29
27
|
|
|
28
|
+
var _services = require("../../services");
|
|
29
|
+
|
|
30
|
+
var _step_number = require("./step_number.styles");
|
|
31
|
+
|
|
30
32
|
var _react2 = require("@emotion/react");
|
|
31
33
|
|
|
32
34
|
var _excluded = ["className", "status", "number", "titleSize"];
|
|
33
|
-
var
|
|
34
|
-
incomplete: 'euiStepNumber--incomplete',
|
|
35
|
-
disabled: 'euiStepNumber--disabled',
|
|
36
|
-
loading: 'euiStepNumber--loading',
|
|
37
|
-
warning: 'euiStepNumber--warning',
|
|
38
|
-
danger: 'euiStepNumber--danger',
|
|
39
|
-
complete: 'euiStepNumber--complete',
|
|
40
|
-
current: null // Current displays the same as the default (undefined)
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
var STATUS = (0, _common.keysOf)(statusToClassNameMap);
|
|
35
|
+
var STATUS = ['incomplete', 'disabled', 'loading', 'warning', 'danger', 'complete', 'current'];
|
|
44
36
|
exports.STATUS = STATUS;
|
|
45
37
|
|
|
46
38
|
var EuiStepNumber = function EuiStepNumber(_ref) {
|
|
47
39
|
var className = _ref.className,
|
|
48
40
|
status = _ref.status,
|
|
49
41
|
number = _ref.number,
|
|
50
|
-
titleSize = _ref.titleSize,
|
|
42
|
+
_ref$titleSize = _ref.titleSize,
|
|
43
|
+
titleSize = _ref$titleSize === void 0 ? 's' : _ref$titleSize,
|
|
51
44
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
45
|
+
var ariaLabelsMap = {
|
|
46
|
+
step: (0, _step_strings.useI18nStep)({
|
|
47
|
+
number: number
|
|
48
|
+
}),
|
|
49
|
+
current: (0, _step_strings.useI18nCurrentStep)({
|
|
50
|
+
number: number
|
|
51
|
+
}),
|
|
52
|
+
incomplete: (0, _step_strings.useI18nIncompleteStep)({
|
|
53
|
+
number: number
|
|
54
|
+
}),
|
|
55
|
+
complete: (0, _step_strings.useI18nCompleteStep)({
|
|
56
|
+
number: number
|
|
57
|
+
}),
|
|
58
|
+
disabled: (0, _step_strings.useI18nDisabledStep)({
|
|
59
|
+
number: number
|
|
60
|
+
}),
|
|
61
|
+
warning: (0, _step_strings.useI18nWarningStep)({
|
|
62
|
+
number: number
|
|
63
|
+
}),
|
|
64
|
+
danger: (0, _step_strings.useI18nErrorsStep)({
|
|
65
|
+
number: number
|
|
66
|
+
}),
|
|
67
|
+
loading: (0, _step_strings.useI18nLoadingStep)({
|
|
68
|
+
number: number
|
|
69
|
+
})
|
|
70
|
+
};
|
|
71
|
+
var classes = (0, _classnames.default)('euiStepNumber', className);
|
|
72
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
73
|
+
var styles = (0, _step_number.euiStepNumberStyles)(euiTheme);
|
|
74
|
+
var cssStyles = [styles.euiStepNumber, styles[titleSize], status && styles[status]];
|
|
75
|
+
var contentStyles = (0, _step_number.euiStepNumberContentStyles)(euiTheme);
|
|
76
|
+
var content;
|
|
77
|
+
var screenReaderText;
|
|
78
|
+
|
|
79
|
+
switch (status) {
|
|
80
|
+
// Loading spinner
|
|
81
|
+
case 'loading':
|
|
82
|
+
screenReaderText = ariaLabelsMap.loading;
|
|
83
|
+
content = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
|
|
84
|
+
className: "euiStepNumber__loader",
|
|
85
|
+
size: titleSize === 'xs' ? 'l' : 'xl'
|
|
86
|
+
});
|
|
87
|
+
break;
|
|
88
|
+
// Statuses with icons
|
|
89
|
+
|
|
90
|
+
case 'danger':
|
|
91
|
+
case 'warning':
|
|
92
|
+
case 'complete':
|
|
93
|
+
var cssIconStyles = [contentStyles.euiStepNumber__icon, contentStyles[status]];
|
|
94
|
+
var iconTypeMap = {
|
|
95
|
+
danger: 'cross',
|
|
96
|
+
warning: 'alert',
|
|
97
|
+
complete: 'check'
|
|
98
|
+
};
|
|
99
|
+
content = (0, _react2.jsx)(_icon.EuiIcon, {
|
|
100
|
+
type: iconTypeMap[status],
|
|
101
|
+
"aria-label": ariaLabelsMap[status],
|
|
102
|
+
size: titleSize === 'xs' ? 's' : 'm',
|
|
103
|
+
className: "euiStepNumber__icon",
|
|
104
|
+
css: cssIconStyles
|
|
105
|
+
});
|
|
106
|
+
break;
|
|
107
|
+
// Statuses with numbers
|
|
108
|
+
|
|
109
|
+
case 'incomplete':
|
|
110
|
+
case 'current':
|
|
111
|
+
case 'disabled':
|
|
112
|
+
default:
|
|
113
|
+
var cssNumberStyles = [contentStyles.euiStepNumber__number, status && contentStyles[status]];
|
|
114
|
+
screenReaderText = ariaLabelsMap[status || 'step'];
|
|
115
|
+
content = (0, _react2.jsx)("span", {
|
|
116
|
+
"aria-hidden": "true",
|
|
117
|
+
className: "euiStepNumber__number",
|
|
118
|
+
css: cssNumberStyles
|
|
119
|
+
}, number);
|
|
120
|
+
break;
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
114
|
-
className: classes
|
|
115
|
-
|
|
124
|
+
className: classes,
|
|
125
|
+
css: cssStyles
|
|
126
|
+
}, rest), screenReaderText && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, screenReaderText)), content);
|
|
116
127
|
};
|
|
117
128
|
|
|
118
129
|
exports.EuiStepNumber = EuiStepNumber;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiStepNumberStyles = exports.euiStepNumberContentStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
var _step = require("./step.styles");
|
|
13
|
+
|
|
14
|
+
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
15
|
+
|
|
16
|
+
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)."; }
|
|
17
|
+
|
|
18
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19
|
+
name: "76s2de-loading",
|
|
20
|
+
styles: "background:transparent;label:loading;"
|
|
21
|
+
} : {
|
|
22
|
+
name: "76s2de-loading",
|
|
23
|
+
styles: "background:transparent;label:loading;",
|
|
24
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
28
|
+
name: "1ru1jeq-euiStepNumber",
|
|
29
|
+
styles: "flex-shrink:0;label:euiStepNumber;"
|
|
30
|
+
} : {
|
|
31
|
+
name: "1ru1jeq-euiStepNumber",
|
|
32
|
+
styles: "flex-shrink:0;label:euiStepNumber;",
|
|
33
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var euiStepNumberStyles = function euiStepNumberStyles(euiThemeContext) {
|
|
37
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
38
|
+
var euiStep = (0, _step.euiStepVariables)(euiTheme);
|
|
39
|
+
|
|
40
|
+
var createStepsNumber = function createStepsNumber(size, fontSize) {
|
|
41
|
+
return "\n display: inline-block;\n line-height: ".concat(size, ";\n border-radius: ").concat(size, ";\n ").concat((0, _global_styling.logicalCSS)('width', size), ";\n ").concat((0, _global_styling.logicalCSS)('height', size), ";\n text-align: center;\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.primary, ";\n font-size: ").concat(fontSize, ";\n font-weight: ").concat(euiTheme.font.weight.medium, ";\n ");
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
euiStepNumber: _ref2,
|
|
46
|
+
// sizes
|
|
47
|
+
m: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberSize, (0, _global_styling.euiFontSizeFromScale)('s', euiTheme)), ";;label:m;"),
|
|
48
|
+
s: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberSize, (0, _global_styling.euiFontSizeFromScale)('s', euiTheme)), ";;label:s;"),
|
|
49
|
+
xs: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberXSSize, (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme)), ";;label:xs;"),
|
|
50
|
+
// status
|
|
51
|
+
incomplete: /*#__PURE__*/(0, _react.css)("background-color:transparent;color:", euiTheme.colors.text, ";border:", euiTheme.border.thick, ";;label:incomplete;"),
|
|
52
|
+
disabled: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled').backgroundColor, ";;label:disabled;"),
|
|
53
|
+
loading: _ref,
|
|
54
|
+
warning: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:warning;"),
|
|
55
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:danger;"),
|
|
56
|
+
complete: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'success').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'success').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:complete;"),
|
|
57
|
+
current: /*#__PURE__*/(0, _react.css)(";label:current;")
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.euiStepNumberStyles = euiStepNumberStyles;
|
|
62
|
+
|
|
63
|
+
var euiStepNumberContentStyles = function euiStepNumberContentStyles(_ref3) {
|
|
64
|
+
var euiTheme = _ref3.euiTheme;
|
|
65
|
+
return {
|
|
66
|
+
// Statuses with icon content
|
|
67
|
+
euiStepNumber__icon: /*#__PURE__*/(0, _react.css)("vertical-align:middle;position:relative;inset-block-start:-", euiTheme.border.width.thin, ";;label:euiStepNumber__icon;"),
|
|
68
|
+
complete: /*#__PURE__*/(0, _react.css)("stroke:currentColor;stroke-width:", (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
69
|
+
return x / 2;
|
|
70
|
+
}), ";;label:complete;"),
|
|
71
|
+
danger: /*#__PURE__*/(0, _react.css)("stroke:currentColor;stroke-width:", (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
72
|
+
return x / 2;
|
|
73
|
+
}), ";;label:danger;"),
|
|
74
|
+
warning: /*#__PURE__*/(0, _react.css)("inset-block-start:-", euiTheme.border.width.thick, ";;label:warning;"),
|
|
75
|
+
// Statuses with number content
|
|
76
|
+
euiStepNumber__number: /*#__PURE__*/(0, _react.css)(";label:euiStepNumber__number;"),
|
|
77
|
+
incomplete: /*#__PURE__*/(0, _react.css)("display:unset;position:relative;inset-block-start:-", euiTheme.border.width.thick, ";;label:incomplete;"),
|
|
78
|
+
loading: /*#__PURE__*/(0, _react.css)(";label:loading;"),
|
|
79
|
+
disabled: /*#__PURE__*/(0, _react.css)(";label:disabled;"),
|
|
80
|
+
current: /*#__PURE__*/(0, _react.css)(";label:current;")
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.euiStepNumberContentStyles = euiStepNumberContentStyles;
|
|
@@ -19,6 +19,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
19
19
|
|
|
20
20
|
var _step_horizontal = require("./step_horizontal");
|
|
21
21
|
|
|
22
|
+
var _steps_horizontal = require("./steps_horizontal.styles");
|
|
23
|
+
|
|
22
24
|
var _react2 = require("@emotion/react");
|
|
23
25
|
|
|
24
26
|
var _excluded = ["className", "steps"];
|
|
@@ -28,16 +30,19 @@ var EuiStepsHorizontal = function EuiStepsHorizontal(_ref) {
|
|
|
28
30
|
steps = _ref.steps,
|
|
29
31
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
32
|
var classes = (0, _classnames.default)('euiStepsHorizontal', className);
|
|
33
|
+
var styles = (0, _steps_horizontal.euiStepsHorizontalStyles)();
|
|
34
|
+
var cssStyles = styles.euiStepsHorizontal;
|
|
35
|
+
var cssItemStyles = styles.euiStepsHorizontal__item;
|
|
31
36
|
return (0, _react2.jsx)("ol", (0, _extends2.default)({
|
|
32
|
-
className: classes
|
|
37
|
+
className: classes,
|
|
38
|
+
css: cssStyles
|
|
33
39
|
}, rest), steps.map(function (stepProps, index) {
|
|
34
|
-
|
|
35
|
-
'aria-current': 'step'
|
|
36
|
-
} : {};
|
|
37
|
-
return (0, _react2.jsx)("li", (0, _extends2.default)({
|
|
40
|
+
return (0, _react2.jsx)("li", {
|
|
38
41
|
key: index,
|
|
39
|
-
className: "
|
|
40
|
-
|
|
42
|
+
className: "euiStepsHorizontal__item",
|
|
43
|
+
css: cssItemStyles,
|
|
44
|
+
"aria-current": stepProps.status === 'current' ? 'step' : undefined
|
|
45
|
+
}, (0, _react2.jsx)(_step_horizontal.EuiStepHorizontal, (0, _extends2.default)({
|
|
41
46
|
step: index + 1
|
|
42
47
|
}, stepProps)));
|
|
43
48
|
}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiStepsHorizontalStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
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)."; }
|
|
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
|
+
// 1. Make each step the same width
|
|
31
|
+
var euiStepsHorizontalStyles = function euiStepsHorizontalStyles() {
|
|
32
|
+
return {
|
|
33
|
+
euiStepsHorizontal: _ref2,
|
|
34
|
+
euiStepsHorizontal__item: _ref
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.euiStepsHorizontalStyles = euiStepsHorizontalStyles;
|