@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.
Files changed (149) hide show
  1. package/dist/eui_theme_dark.css +0 -323
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -323
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/code/code_block.js +5 -3
  6. package/es/components/code/code_block_annotations.js +94 -0
  7. package/es/components/code/code_block_annotations.style.js +18 -0
  8. package/es/components/code/code_block_full_screen.js +9 -3
  9. package/es/components/code/code_block_line.styles.js +3 -2
  10. package/es/components/code/utils.js +53 -13
  11. package/es/components/collapsible_nav/collapsible_nav.js +10 -11
  12. package/es/components/flyout/flyout.js +88 -24
  13. package/es/components/form/range/range_track.js +1 -1
  14. package/es/components/header/header.js +3 -1
  15. package/es/components/icon/assets/app_agent.js +2 -10
  16. package/es/components/icon/assets/app_fleet.js +10 -2
  17. package/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
  18. package/es/components/selectable/selectable_list/selectable_list.js +19 -5
  19. package/es/components/steps/step.js +19 -12
  20. package/es/components/steps/step.styles.js +73 -0
  21. package/es/components/steps/step_horizontal.js +55 -42
  22. package/es/components/steps/step_horizontal.styles.js +55 -0
  23. package/es/components/steps/step_number.js +82 -73
  24. package/es/components/steps/step_number.styles.js +76 -0
  25. package/es/components/steps/steps_horizontal.js +11 -7
  26. package/es/components/steps/steps_horizontal.styles.js +35 -0
  27. package/es/components/steps/sub_steps.js +7 -1
  28. package/es/components/steps/sub_steps.styles.js +14 -0
  29. package/es/components/tour/tour_step_indicator.js +0 -3
  30. package/es/global_styling/utility/animations.js +4 -3
  31. package/eui.d.ts +130 -16
  32. package/i18ntokens.json +76 -12
  33. package/lib/components/code/code_block.js +5 -3
  34. package/lib/components/code/code_block_annotations.js +113 -0
  35. package/lib/components/code/code_block_annotations.style.js +29 -0
  36. package/lib/components/code/code_block_full_screen.js +9 -3
  37. package/lib/components/code/code_block_line.styles.js +3 -2
  38. package/lib/components/code/utils.js +54 -13
  39. package/lib/components/collapsible_nav/collapsible_nav.js +10 -11
  40. package/lib/components/flyout/flyout.js +85 -22
  41. package/lib/components/form/range/range_track.js +1 -1
  42. package/lib/components/header/header.js +3 -1
  43. package/lib/components/icon/assets/app_agent.js +2 -10
  44. package/lib/components/icon/assets/app_fleet.js +10 -2
  45. package/lib/components/icon/svgs/app_agent.svg +2 -4
  46. package/lib/components/icon/svgs/app_fleet.svg +4 -2
  47. package/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
  48. package/lib/components/selectable/selectable_list/selectable_list.js +19 -5
  49. package/lib/components/steps/step.js +21 -12
  50. package/lib/components/steps/step.styles.js +93 -0
  51. package/lib/components/steps/step_horizontal.js +56 -41
  52. package/lib/components/steps/step_horizontal.styles.js +66 -0
  53. package/lib/components/steps/step_number.js +86 -75
  54. package/lib/components/steps/step_number.styles.js +84 -0
  55. package/lib/components/steps/steps_horizontal.js +12 -7
  56. package/lib/components/steps/steps_horizontal.styles.js +38 -0
  57. package/lib/components/steps/sub_steps.js +9 -1
  58. package/lib/components/steps/sub_steps.styles.js +24 -0
  59. package/lib/components/tour/tour_step_indicator.js +0 -3
  60. package/lib/global_styling/utility/animations.js +6 -4
  61. package/optimize/es/components/code/code_block_annotations.js +79 -0
  62. package/optimize/es/components/code/code_block_annotations.style.js +18 -0
  63. package/optimize/es/components/code/code_block_full_screen.js +9 -3
  64. package/optimize/es/components/code/code_block_line.styles.js +3 -2
  65. package/optimize/es/components/code/utils.js +53 -13
  66. package/optimize/es/components/collapsible_nav/collapsible_nav.js +1 -4
  67. package/optimize/es/components/flyout/flyout.js +81 -24
  68. package/optimize/es/components/form/range/range_track.js +1 -1
  69. package/optimize/es/components/header/header.js +3 -1
  70. package/optimize/es/components/icon/assets/app_agent.js +2 -10
  71. package/optimize/es/components/icon/assets/app_fleet.js +10 -2
  72. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
  73. package/optimize/es/components/selectable/selectable_list/selectable_list.js +19 -5
  74. package/optimize/es/components/steps/step.js +19 -12
  75. package/optimize/es/components/steps/step.styles.js +73 -0
  76. package/optimize/es/components/steps/step_horizontal.js +54 -41
  77. package/optimize/es/components/steps/step_horizontal.styles.js +55 -0
  78. package/optimize/es/components/steps/step_number.js +82 -73
  79. package/optimize/es/components/steps/step_number.styles.js +76 -0
  80. package/optimize/es/components/steps/steps_horizontal.js +11 -7
  81. package/optimize/es/components/steps/steps_horizontal.styles.js +35 -0
  82. package/optimize/es/components/steps/sub_steps.js +7 -1
  83. package/optimize/es/components/steps/sub_steps.styles.js +14 -0
  84. package/optimize/es/components/tour/tour_step_indicator.js +0 -3
  85. package/optimize/es/global_styling/utility/animations.js +4 -3
  86. package/optimize/lib/components/code/code_block_annotations.js +105 -0
  87. package/optimize/lib/components/code/code_block_annotations.style.js +29 -0
  88. package/optimize/lib/components/code/code_block_full_screen.js +9 -3
  89. package/optimize/lib/components/code/code_block_line.styles.js +3 -2
  90. package/optimize/lib/components/code/utils.js +54 -13
  91. package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -4
  92. package/optimize/lib/components/flyout/flyout.js +80 -22
  93. package/optimize/lib/components/form/range/range_track.js +1 -1
  94. package/optimize/lib/components/header/header.js +3 -1
  95. package/optimize/lib/components/icon/assets/app_agent.js +2 -10
  96. package/optimize/lib/components/icon/assets/app_fleet.js +10 -2
  97. package/optimize/lib/components/icon/svgs/app_agent.svg +2 -4
  98. package/optimize/lib/components/icon/svgs/app_fleet.svg +4 -2
  99. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
  100. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +16 -5
  101. package/optimize/lib/components/steps/step.js +21 -12
  102. package/optimize/lib/components/steps/step.styles.js +93 -0
  103. package/optimize/lib/components/steps/step_horizontal.js +55 -40
  104. package/optimize/lib/components/steps/step_horizontal.styles.js +66 -0
  105. package/optimize/lib/components/steps/step_number.js +86 -75
  106. package/optimize/lib/components/steps/step_number.styles.js +84 -0
  107. package/optimize/lib/components/steps/steps_horizontal.js +12 -7
  108. package/optimize/lib/components/steps/steps_horizontal.styles.js +38 -0
  109. package/optimize/lib/components/steps/sub_steps.js +9 -1
  110. package/optimize/lib/components/steps/sub_steps.styles.js +24 -0
  111. package/optimize/lib/components/tour/tour_step_indicator.js +0 -3
  112. package/optimize/lib/global_styling/utility/animations.js +6 -4
  113. package/package.json +3 -3
  114. package/src/components/index.scss +0 -1
  115. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  116. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  117. package/test-env/components/code/code_block_annotations.js +110 -0
  118. package/test-env/components/code/code_block_annotations.style.js +29 -0
  119. package/test-env/components/code/code_block_full_screen.js +9 -3
  120. package/test-env/components/code/code_block_line.styles.js +3 -2
  121. package/test-env/components/code/utils.js +54 -13
  122. package/test-env/components/collapsible_nav/collapsible_nav.js +10 -11
  123. package/test-env/components/form/range/range_track.js +1 -1
  124. package/test-env/components/header/header.js +3 -1
  125. package/test-env/components/icon/assets/app_agent.js +2 -10
  126. package/test-env/components/icon/assets/app_fleet.js +10 -2
  127. package/test-env/components/search_bar/filters/field_value_selection_filter.js +6 -10
  128. package/test-env/components/selectable/selectable_list/selectable_list.js +16 -5
  129. package/test-env/components/steps/step.js +21 -12
  130. package/test-env/components/steps/step.styles.js +93 -0
  131. package/test-env/components/steps/step_horizontal.js +56 -41
  132. package/test-env/components/steps/step_horizontal.styles.js +66 -0
  133. package/test-env/components/steps/step_number.js +86 -75
  134. package/test-env/components/steps/step_number.styles.js +84 -0
  135. package/test-env/components/steps/steps_horizontal.js +12 -7
  136. package/test-env/components/steps/steps_horizontal.styles.js +38 -0
  137. package/test-env/components/steps/sub_steps.js +9 -1
  138. package/test-env/components/steps/sub_steps.styles.js +24 -0
  139. package/test-env/components/tour/tour_step_indicator.js +0 -3
  140. package/test-env/global_styling/utility/animations.js +6 -4
  141. package/src/components/steps/_index.scss +0 -7
  142. package/src/components/steps/_mixins.scss +0 -12
  143. package/src/components/steps/_step_number.scss +0 -52
  144. package/src/components/steps/_steps.scss +0 -57
  145. package/src/components/steps/_steps_horizontal.scss +0 -135
  146. package/src/components/steps/_sub_steps.scss +0 -15
  147. package/src/components/steps/_variables.scss +0 -11
  148. package/src/themes/amsterdam/global_styling/variables/_steps.scss +0 -8
  149. package/src/themes/amsterdam/overrides/_steps.scss +0 -101
@@ -17,6 +17,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
+ var _services = require("../../services");
21
+
22
+ var _sub_steps = require("./sub_steps.styles");
23
+
20
24
  var _react2 = require("@emotion/react");
21
25
 
22
26
  var _excluded = ["children", "className"];
@@ -26,8 +30,12 @@ var EuiSubSteps = function EuiSubSteps(_ref) {
26
30
  className = _ref.className,
27
31
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
32
  var classes = (0, _classnames.default)('euiSubSteps', className);
33
+ var euiTheme = (0, _services.useEuiTheme)();
34
+ var styles = (0, _sub_steps.euiSubStepsStyles)(euiTheme);
35
+ var cssStyles = [styles.euiSubSteps];
29
36
  return (0, _react2.jsx)("div", (0, _extends2.default)({
30
- className: classes
37
+ className: classes,
38
+ css: cssStyles
31
39
  }, rest), children);
32
40
  };
33
41
 
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiSubStepsStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+ var euiSubStepsStyles = function euiSubStepsStyles(_ref) {
18
+ var euiTheme = _ref.euiTheme;
19
+ return {
20
+ euiSubSteps: /*#__PURE__*/(0, _react.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;")
21
+ };
22
+ };
23
+
24
+ exports.euiSubStepsStyles = euiSubStepsStyles;
@@ -51,7 +51,6 @@ var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
51
51
  }, function (isActive) {
52
52
  return (0, _react2.jsx)(_icon.EuiIcon, {
53
53
  type: "dot",
54
- className: "euiStepNumber__icon",
55
54
  "aria-label": isActive,
56
55
  color: "success",
57
56
  "aria-current": "step"
@@ -64,7 +63,6 @@ var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
64
63
  }, function (isComplete) {
65
64
  return (0, _react2.jsx)(_icon.EuiIcon, {
66
65
  type: "dot",
67
- className: "euiStepNumber__icon",
68
66
  "aria-label": isComplete,
69
67
  color: "subdued"
70
68
  });
@@ -76,7 +74,6 @@ var EuiTourStepIndicator = function EuiTourStepIndicator(_ref2) {
76
74
  }, function (isIncomplete) {
77
75
  return (0, _react2.jsx)(_icon.EuiIcon, {
78
76
  type: "dot",
79
- className: "euiStepNumber__icon",
80
77
  "aria-label": isIncomplete,
81
78
  color: "subdued"
82
79
  });
@@ -5,13 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.euiAnimSlideX = exports.euiAnimSlideInUp = exports.euiAnimFadeIn = void 0;
8
+ exports.euiAnimSlideX = exports.euiAnimSlideInUp = exports.euiAnimScale = exports.euiAnimFadeIn = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
12
  var _react = require("@emotion/react");
13
13
 
14
- var _templateObject, _templateObject2, _templateObject3;
14
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
15
15
 
16
16
  var euiAnimFadeIn = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])));
17
17
  exports.euiAnimFadeIn = euiAnimFadeIn;
@@ -23,7 +23,9 @@ var euiAnimSlideInUp = function euiAnimSlideInUp(size) {
23
23
  exports.euiAnimSlideInUp = euiAnimSlideInUp;
24
24
 
25
25
  var euiAnimSlideX = function euiAnimSlideX(size) {
26
- return (0, _react.keyframes)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n transform: translateX(", ");\n }\n\n 100% {\n transform: translateX(0);\n }\n"])), size);
26
+ return (0, _react.keyframes)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n transform: translateX(", ");\n }\n\n 100% {\n transform: translateX(0);\n\n }\n"])), size);
27
27
  };
28
28
 
29
- exports.euiAnimSlideX = euiAnimSlideX;
29
+ exports.euiAnimSlideX = euiAnimSlideX;
30
+ var euiAnimScale = (0, _react.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\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"])));
31
+ exports.euiAnimScale = euiAnimScale;
@@ -1,7 +0,0 @@
1
- @import 'variables';
2
- @import 'mixins';
3
-
4
- @import 'step_number';
5
- @import 'steps';
6
- @import 'sub_steps';
7
- @import 'steps_horizontal';
@@ -1,12 +0,0 @@
1
- @mixin createStepsNumber($size: $euiStepNumberSize, $fontSize: $euiFontSize) {
2
- @include size($size);
3
-
4
- display: inline-block;
5
- line-height: $size;
6
- border-radius: $size;
7
- text-align: center;
8
- color: $euiColorEmptyShade;
9
- background-color: $euiColorPrimary;
10
- font-size: $fontSize;
11
- font-weight: $euiFontWeightMedium;
12
- }
@@ -1,52 +0,0 @@
1
- .euiStepNumber {
2
- @include createStepsNumber;
3
-
4
- .euiStepNumber__icon {
5
- vertical-align: middle;
6
- position: relative;
7
- top: -2px;
8
- }
9
-
10
- &--small {
11
- @include createStepsNumber($euiStepNumberSmallSize, $euiFontSizeXS);
12
-
13
- .euiStepNumber__icon {
14
- top: -1px;
15
- }
16
- }
17
-
18
- &--complete {
19
- // Thicken the checkmark by adding a slight stroke.
20
- .euiStepNumber__icon {
21
- stroke: currentColor;
22
- stroke-width: .5px;
23
- }
24
- }
25
-
26
- @include euiCanAnimate {
27
- &--complete,
28
- &--warning,
29
- &--danger {
30
- animation: euiGrow $euiAnimSpeedFast $euiAnimSlightBounce;
31
- }
32
- }
33
-
34
- &--loading {
35
- background: transparent;
36
- }
37
-
38
- // Create modifiers based upon the map
39
- @each $name, $color in $euiStepStatusColorsToFade {
40
- &--#{$name} {
41
- $backgroundColor: $color;
42
- @if (saturation($color) > 0%) {
43
- $backgroundColor: tintOrShade($color, 90%, 70%);
44
- }
45
-
46
- $textColor: makeHighContrastColor($color, $backgroundColor);
47
-
48
- color: $textColor;
49
- background-color: $backgroundColor;
50
- }
51
- }
52
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * 1. Ensure that the step number vertically aligns with the title text
3
- */
4
-
5
- .euiStep {
6
- // Create border on all but the last step
7
- &:not(:last-of-type) {
8
- // stylelint-disable indentation
9
- background-image: linear-gradient(
10
- to right,
11
- transparent 0,
12
- transparent ($euiSize - 1),
13
- $euiBorderColor ($euiSize - 1),
14
- $euiBorderColor ($euiSize + 1),
15
- transparent ($euiSize + 1),
16
- transparent 100%
17
- );
18
- // stylelint-enable indentation
19
- background-repeat: no-repeat;
20
- background-position: left $euiSizeXXL;
21
- }
22
-
23
- &--small {
24
- &:not(:last-of-type) {
25
- background-position: left -#{$euiSizeXS} top $euiSizeXL;
26
- }
27
-
28
- .euiStep__content {
29
- // Align the content's contents with the title
30
- padding-left: ($euiStepNumberSmallSize / 2) + $euiStepNumberMargin;
31
-
32
- // Align content border to horizontal center of step number
33
- margin-left: ($euiStepNumberSmallSize / 2);
34
- }
35
- }
36
- }
37
-
38
- .euiStep__titleWrapper {
39
- display: flex;
40
- }
41
-
42
- .euiStep__circle {
43
- flex-shrink: 0;
44
- margin-right: $euiStepNumberMargin;
45
- vertical-align: top; /* 1 */
46
- }
47
-
48
- .euiStep__content {
49
- padding: $euiSize $euiSize $euiSizeXL;
50
- margin: $euiSizeS 0;
51
-
52
- // Align the content's contents with the title
53
- padding-left: ($euiStepNumberSize / 2) + $euiStepNumberMargin;
54
-
55
- // Align content border to horizontal center of step number
56
- margin-left: ($euiStepNumberSize / 2);
57
- }
@@ -1,135 +0,0 @@
1
- @mixin makeLineProgress {
2
- height: 2px;
3
- background-color: $euiColorPrimary;
4
- }
5
-
6
- /**
7
- * 1. Ensure the connecting lines stays behind the number
8
- * 2. Make each step the same width
9
- * 3. Make the content of each step align to the top, even if the steps are of varying heights,
10
- * e.g. due to some of their titles wrapping to multiple lines
11
- */
12
-
13
- .euiStepsHorizontal {
14
- display: flex;
15
- align-items: stretch;
16
- background: transparentize($euiColorLightestShade, .5);
17
- }
18
-
19
- .euiStepHorizontal__item {
20
- flex-grow: 1; /* 2 */
21
- flex-basis: 0%; /* 2 */
22
-
23
- // Remove the respective lines if the first or last child
24
- &:first-of-type > .euiStepHorizontal::before,
25
- &:last-of-type > .euiStepHorizontal::after {
26
- display: none;
27
- }
28
- }
29
-
30
- // Button containing item
31
- .euiStepHorizontal {
32
- padding: $euiSizeL $euiSize $euiSize;
33
- display: flex; /* 3 */
34
- flex-direction: column; /* 3 */
35
- align-items: center; /* 3 */
36
- justify-content: flex-start; /* 3 */
37
- cursor: pointer;
38
- position: relative;
39
- width: 100%;
40
-
41
- // focus & hover state
42
- &:focus:not(.euiStepHorizontal-isDisabled),
43
- &:hover:not(.euiStepHorizontal-isDisabled) {
44
- .euiStepHorizontal__title {
45
- text-decoration: underline;
46
- }
47
- }
48
-
49
- &:focus:not(.euiStepHorizontal-isDisabled) {
50
- outline: none;
51
-
52
- .euiStepHorizontal__number {
53
- @include euiFocusRing(large);
54
- }
55
- }
56
-
57
- // disabled state
58
- &.euiStepHorizontal-isDisabled {
59
- cursor: not-allowed;
60
- }
61
-
62
- // create the connecting lines
63
- &::before,
64
- &::after {
65
- content: '';
66
- position: absolute;
67
- width: calc(50% - #{$euiStepNumberSize / 2});
68
- height: 1px;
69
- top: $euiSizeL + ($euiStepNumberSize / 2);
70
- background-color: $euiColorLightShade;
71
- z-index: $euiZLevel0; /* 1 */
72
- }
73
-
74
- &::before {
75
- left: 0;
76
- }
77
-
78
- &::after {
79
- right: 0;
80
- }
81
- }
82
-
83
- .euiStepHorizontal__number {
84
- position: relative; /* 1 */
85
- z-index: $euiZLevel0 + 1; /* 1 */
86
- transition: all $euiAnimSpeedFast ease-in-out;
87
- }
88
-
89
- .euiStepHorizontal__title {
90
- @include euiTitle('xs');
91
- margin-top: $euiSizeS;
92
- font-weight: $euiFontWeightRegular;
93
- text-align: center;
94
-
95
- .euiStepHorizontal-isDisabled & {
96
- color: $euiColorDarkShade;
97
- }
98
- }
99
-
100
- // Complete state
101
- .euiStepHorizontal-isComplete {
102
- &::before,
103
- &::after {
104
- @include makeLineProgress;
105
- }
106
- }
107
-
108
- // Selected state
109
- .euiStepHorizontal-isSelected {
110
- .euiStepHorizontal__number:not([class*='danger']):not([class*='warning']):not([class*='loading']) {
111
- @include euiSlightShadow(desaturate($euiColorPrimary, 20%));
112
- }
113
-
114
- &::before {
115
- @include makeLineProgress;
116
- }
117
- }
118
-
119
- // RESPONSIVE
120
- @include euiBreakpoint('xs', 's') {
121
- .euiStepHorizontal {
122
- // reduce top padding and shift lines
123
- padding-top: $euiSize;
124
-
125
- &::before,
126
- &::after {
127
- top: $euiSize + $euiStepNumberSize / 2;
128
- }
129
- }
130
-
131
- // hide titles
132
- .euiStepHorizontal__title {
133
- display: none;
134
- }
135
- }
@@ -1,15 +0,0 @@
1
- .euiSubSteps {
2
- padding: $euiSize;
3
- background-color: $euiColorLightestShade;
4
- margin-bottom: $euiSize;
5
-
6
- > *:last-child {
7
- margin-bottom: 0;
8
- }
9
-
10
- // change ordered list from numbers to lowercase letters
11
- .euiText & ol,
12
- & ol {
13
- list-style-type: lower-alpha;
14
- }
15
- }
@@ -1,11 +0,0 @@
1
- $euiStepNumberSize: $euiSizeXL !default;
2
- $euiStepNumberSmallSize: $euiSizeL !default;
3
- $euiStepNumberMargin: $euiSize !default;
4
-
5
- // Modifier naming and colors.
6
- $euiStepStatusColorsToFade: (
7
- warning: $euiColorWarning,
8
- danger: $euiColorDanger,
9
- disabled: $euiColorDarkShade,
10
- incomplete: $euiColorDarkShade,
11
- ) !default;
@@ -1,8 +0,0 @@
1
- // Modifier naming and colors for step status'
2
- // Disabled/Loading/Incomplete are handled manually
3
- $euiStepStatusColors: (
4
- default: $euiColorPrimary,
5
- complete: $euiColorSuccess,
6
- warning: $euiColorWarning,
7
- danger: $euiColorDanger,
8
- );
@@ -1,101 +0,0 @@
1
- // Make the disabled step title the same disabled text color
2
- .euiStepHorizontal-isDisabled .euiStepHorizontal__title,
3
- .euiStep-isDisabled .euiStep__title {
4
- color: $euiColorDisabledText;
5
- }
6
-
7
- // STEP NUMBER CHANGES
8
-
9
- .euiStepNumber {
10
- outline-color: $euiColorPrimary;
11
-
12
- .euiStepNumber__icon {
13
- position: relative;
14
- top: -1px;
15
- }
16
-
17
- &--small {
18
- .euiStepNumber__icon {
19
- top: -1px;
20
- }
21
- }
22
-
23
- &--complete,
24
- &--danger {
25
- // Thicken the checkmark by adding a slight stroke.
26
- .euiStepNumber__icon {
27
- stroke: currentColor;
28
- stroke-width: .5px;
29
- }
30
- }
31
-
32
- // Create modifiers based upon the map
33
- @each $name, $color in $euiStepStatusColors {
34
- &--#{$name} {
35
- background-color: $color;
36
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
37
- outline-color: chooseLightOrDarkText($color, $color, $euiColorInk) !important; // stylelint-disable-line declaration-no-important
38
- }
39
- }
40
-
41
- &.euiStepNumber--incomplete {
42
- background-color: transparent;
43
- color: $euiTextColor;
44
- border: $euiBorderThick;
45
-
46
- // Don't hide the step number when "hollow"
47
- .euiStepNumber__number {
48
- display: unset;
49
- position: relative;
50
- top: -2px;
51
- }
52
- }
53
- }
54
-
55
- .euiStepNumber--disabled {
56
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $euiButtonColorDisabled, 90%);
57
- background-color: transparentize($euiButtonColorDisabled, .9);
58
- color: makeDisabledContrastColor($euiButtonColorDisabled, $backgroundColorSimulated);
59
- }
60
-
61
- .euiStepHorizontal__title {
62
- font-weight: $euiFontWeightBold;
63
- }
64
-
65
- .euiStepHorizontal {
66
- // create the connecting lines
67
- &::before,
68
- &::after {
69
- @include makeLineProgress;
70
- background-color: $euiBorderColor;
71
- }
72
- }
73
-
74
- // Make the line connect to the numbers
75
-
76
- .euiStep {
77
- &:not(:last-of-type) {
78
- background-position: left $euiSizeXL;
79
- }
80
-
81
- &--small {
82
- &:not(:last-of-type) {
83
- background-position: -#{$euiSizeXS} $euiSizeL;
84
- }
85
- }
86
- }
87
-
88
- .euiStep__content {
89
- padding-bottom: ($euiSizeXL + $euiSizeS);
90
- margin-bottom: 0;
91
- }
92
-
93
- // Remove forced background from horizontal steps
94
- .euiStepsHorizontal {
95
- background: none;
96
- }
97
-
98
- // Fix outline in Chrome for horizontal steps
99
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number:not(:focus-visible) {
100
- outline: $euiFocusRingSize solid $euiColorPrimary;
101
- }