@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.
Files changed (125) 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/form/range/range_track.js +1 -1
  12. package/es/components/icon/assets/app_agent.js +2 -10
  13. package/es/components/icon/assets/app_fleet.js +10 -2
  14. package/es/components/steps/step.js +19 -12
  15. package/es/components/steps/step.styles.js +73 -0
  16. package/es/components/steps/step_horizontal.js +55 -42
  17. package/es/components/steps/step_horizontal.styles.js +55 -0
  18. package/es/components/steps/step_number.js +82 -73
  19. package/es/components/steps/step_number.styles.js +76 -0
  20. package/es/components/steps/steps_horizontal.js +11 -7
  21. package/es/components/steps/steps_horizontal.styles.js +35 -0
  22. package/es/components/steps/sub_steps.js +7 -1
  23. package/es/components/steps/sub_steps.styles.js +14 -0
  24. package/es/components/tour/tour_step_indicator.js +0 -3
  25. package/es/global_styling/utility/animations.js +4 -3
  26. package/eui.d.ts +115 -4
  27. package/i18ntokens.json +26 -10
  28. package/lib/components/code/code_block.js +5 -3
  29. package/lib/components/code/code_block_annotations.js +113 -0
  30. package/lib/components/code/code_block_annotations.style.js +29 -0
  31. package/lib/components/code/code_block_full_screen.js +9 -3
  32. package/lib/components/code/code_block_line.styles.js +3 -2
  33. package/lib/components/code/utils.js +54 -13
  34. package/lib/components/form/range/range_track.js +1 -1
  35. package/lib/components/icon/assets/app_agent.js +2 -10
  36. package/lib/components/icon/assets/app_fleet.js +10 -2
  37. package/lib/components/icon/svgs/app_agent.svg +2 -4
  38. package/lib/components/icon/svgs/app_fleet.svg +4 -2
  39. package/lib/components/steps/step.js +21 -12
  40. package/lib/components/steps/step.styles.js +93 -0
  41. package/lib/components/steps/step_horizontal.js +56 -41
  42. package/lib/components/steps/step_horizontal.styles.js +66 -0
  43. package/lib/components/steps/step_number.js +86 -75
  44. package/lib/components/steps/step_number.styles.js +84 -0
  45. package/lib/components/steps/steps_horizontal.js +12 -7
  46. package/lib/components/steps/steps_horizontal.styles.js +38 -0
  47. package/lib/components/steps/sub_steps.js +9 -1
  48. package/lib/components/steps/sub_steps.styles.js +24 -0
  49. package/lib/components/tour/tour_step_indicator.js +0 -3
  50. package/lib/global_styling/utility/animations.js +6 -4
  51. package/optimize/es/components/code/code_block_annotations.js +79 -0
  52. package/optimize/es/components/code/code_block_annotations.style.js +18 -0
  53. package/optimize/es/components/code/code_block_full_screen.js +9 -3
  54. package/optimize/es/components/code/code_block_line.styles.js +3 -2
  55. package/optimize/es/components/code/utils.js +53 -13
  56. package/optimize/es/components/form/range/range_track.js +1 -1
  57. package/optimize/es/components/icon/assets/app_agent.js +2 -10
  58. package/optimize/es/components/icon/assets/app_fleet.js +10 -2
  59. package/optimize/es/components/steps/step.js +19 -12
  60. package/optimize/es/components/steps/step.styles.js +73 -0
  61. package/optimize/es/components/steps/step_horizontal.js +54 -41
  62. package/optimize/es/components/steps/step_horizontal.styles.js +55 -0
  63. package/optimize/es/components/steps/step_number.js +82 -73
  64. package/optimize/es/components/steps/step_number.styles.js +76 -0
  65. package/optimize/es/components/steps/steps_horizontal.js +11 -7
  66. package/optimize/es/components/steps/steps_horizontal.styles.js +35 -0
  67. package/optimize/es/components/steps/sub_steps.js +7 -1
  68. package/optimize/es/components/steps/sub_steps.styles.js +14 -0
  69. package/optimize/es/components/tour/tour_step_indicator.js +0 -3
  70. package/optimize/es/global_styling/utility/animations.js +4 -3
  71. package/optimize/lib/components/code/code_block_annotations.js +105 -0
  72. package/optimize/lib/components/code/code_block_annotations.style.js +29 -0
  73. package/optimize/lib/components/code/code_block_full_screen.js +9 -3
  74. package/optimize/lib/components/code/code_block_line.styles.js +3 -2
  75. package/optimize/lib/components/code/utils.js +54 -13
  76. package/optimize/lib/components/form/range/range_track.js +1 -1
  77. package/optimize/lib/components/icon/assets/app_agent.js +2 -10
  78. package/optimize/lib/components/icon/assets/app_fleet.js +10 -2
  79. package/optimize/lib/components/icon/svgs/app_agent.svg +2 -4
  80. package/optimize/lib/components/icon/svgs/app_fleet.svg +4 -2
  81. package/optimize/lib/components/steps/step.js +21 -12
  82. package/optimize/lib/components/steps/step.styles.js +93 -0
  83. package/optimize/lib/components/steps/step_horizontal.js +55 -40
  84. package/optimize/lib/components/steps/step_horizontal.styles.js +66 -0
  85. package/optimize/lib/components/steps/step_number.js +86 -75
  86. package/optimize/lib/components/steps/step_number.styles.js +84 -0
  87. package/optimize/lib/components/steps/steps_horizontal.js +12 -7
  88. package/optimize/lib/components/steps/steps_horizontal.styles.js +38 -0
  89. package/optimize/lib/components/steps/sub_steps.js +9 -1
  90. package/optimize/lib/components/steps/sub_steps.styles.js +24 -0
  91. package/optimize/lib/components/tour/tour_step_indicator.js +0 -3
  92. package/optimize/lib/global_styling/utility/animations.js +6 -4
  93. package/package.json +2 -2
  94. package/src/components/index.scss +0 -1
  95. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  96. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  97. package/test-env/components/code/code_block_annotations.js +110 -0
  98. package/test-env/components/code/code_block_annotations.style.js +29 -0
  99. package/test-env/components/code/code_block_full_screen.js +9 -3
  100. package/test-env/components/code/code_block_line.styles.js +3 -2
  101. package/test-env/components/code/utils.js +54 -13
  102. package/test-env/components/form/range/range_track.js +1 -1
  103. package/test-env/components/icon/assets/app_agent.js +2 -10
  104. package/test-env/components/icon/assets/app_fleet.js +10 -2
  105. package/test-env/components/steps/step.js +21 -12
  106. package/test-env/components/steps/step.styles.js +93 -0
  107. package/test-env/components/steps/step_horizontal.js +56 -41
  108. package/test-env/components/steps/step_horizontal.styles.js +66 -0
  109. package/test-env/components/steps/step_number.js +86 -75
  110. package/test-env/components/steps/step_number.styles.js +84 -0
  111. package/test-env/components/steps/steps_horizontal.js +12 -7
  112. package/test-env/components/steps/steps_horizontal.styles.js +38 -0
  113. package/test-env/components/steps/sub_steps.js +9 -1
  114. package/test-env/components/steps/sub_steps.styles.js +24 -0
  115. package/test-env/components/tour/tour_step_indicator.js +0 -3
  116. package/test-env/global_styling/utility/animations.js +6 -4
  117. package/src/components/steps/_index.scss +0 -7
  118. package/src/components/steps/_mixins.scss +0 -12
  119. package/src/components/steps/_step_number.scss +0 -52
  120. package/src/components/steps/_steps.scss +0 -57
  121. package/src/components/steps/_steps_horizontal.scss +0 -135
  122. package/src/components/steps/_sub_steps.scss +0 -15
  123. package/src/components/steps/_variables.scss +0 -11
  124. package/src/themes/amsterdam/global_styling/variables/_steps.scss +0 -8
  125. package/src/themes/amsterdam/overrides/_steps.scss +0 -101
@@ -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
- }