@elastic/eui 75.0.0 → 75.1.1

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
@@ -9068,244 +9068,6 @@ The following files still use the Sass version:
9068
9068
  font-weight: 500;
9069
9069
  }
9070
9070
 
9071
- .euiStepNumber {
9072
- width: 32px;
9073
- height: 32px;
9074
- display: inline-block;
9075
- line-height: 32px;
9076
- border-radius: 32px;
9077
- text-align: center;
9078
- color: #1D1E24;
9079
- background-color: #36A2EF;
9080
- font-size: 14px;
9081
- font-weight: 500;
9082
- }
9083
- .euiStepNumber .euiStepNumber__icon {
9084
- vertical-align: middle;
9085
- position: relative;
9086
- top: -2px;
9087
- }
9088
- .euiStepNumber--small {
9089
- width: 24px;
9090
- height: 24px;
9091
- display: inline-block;
9092
- line-height: 24px;
9093
- border-radius: 24px;
9094
- text-align: center;
9095
- color: #1D1E24;
9096
- background-color: #36A2EF;
9097
- font-size: 12px;
9098
- font-weight: 500;
9099
- }
9100
- .euiStepNumber--small .euiStepNumber__icon {
9101
- top: -1px;
9102
- }
9103
- .euiStepNumber--complete .euiStepNumber__icon {
9104
- stroke: currentColor;
9105
- stroke-width: 0.5px;
9106
- }
9107
- @media screen and (prefers-reduced-motion: no-preference) {
9108
- .euiStepNumber--complete, .euiStepNumber--warning, .euiStepNumber--danger {
9109
- -webkit-animation: euiGrow 150ms cubic-bezier(0.34, 1.61, 0.7, 1);
9110
- animation: euiGrow 150ms cubic-bezier(0.34, 1.61, 0.7, 1);
9111
- }
9112
- }
9113
- .euiStepNumber--loading {
9114
- background: transparent;
9115
- }
9116
- .euiStepNumber--warning {
9117
- color: #F3D371;
9118
- background-color: #493f22;
9119
- }
9120
- .euiStepNumber--danger {
9121
- color: #F86B63;
9122
- background-color: #4a201e;
9123
- }
9124
- .euiStepNumber--disabled {
9125
- color: #98A2B3;
9126
- background-color: #2e3136;
9127
- }
9128
- .euiStepNumber--incomplete {
9129
- color: #98A2B3;
9130
- background-color: #2e3136;
9131
- }
9132
-
9133
- /**
9134
- * 1. Ensure that the step number vertically aligns with the title text
9135
- */
9136
- .euiStep:not(:last-of-type) {
9137
- background-image: linear-gradient(to right, transparent 0, transparent 15px, #343741 15px, #343741 17px, transparent 17px, transparent 100%);
9138
- background-repeat: no-repeat;
9139
- background-position: left 40px;
9140
- }
9141
- .euiStep--small:not(:last-of-type) {
9142
- background-position: left -4px top 32px;
9143
- }
9144
- .euiStep--small .euiStep__content {
9145
- padding-left: 28px;
9146
- margin-left: 12px;
9147
- }
9148
-
9149
- .euiStep__titleWrapper {
9150
- display: -webkit-flex;
9151
- display: flex;
9152
- }
9153
-
9154
- .euiStep__circle {
9155
- -webkit-flex-shrink: 0;
9156
- flex-shrink: 0;
9157
- margin-right: 16px;
9158
- vertical-align: top; /* 1 */
9159
- }
9160
-
9161
- .euiStep__content {
9162
- padding: 16px 16px 32px;
9163
- margin: 8px 0;
9164
- padding-left: 32px;
9165
- margin-left: 16px;
9166
- }
9167
-
9168
- .euiSubSteps {
9169
- padding: 16px;
9170
- background-color: #25262E;
9171
- margin-bottom: 16px;
9172
- }
9173
- .euiSubSteps > *:last-child {
9174
- margin-bottom: 0;
9175
- }
9176
- .euiText .euiSubSteps ol, .euiSubSteps ol {
9177
- list-style-type: lower-alpha;
9178
- }
9179
-
9180
- /**
9181
- * 1. Ensure the connecting lines stays behind the number
9182
- * 2. Make each step the same width
9183
- * 3. Make the content of each step align to the top, even if the steps are of varying heights,
9184
- * e.g. due to some of their titles wrapping to multiple lines
9185
- */
9186
- .euiStepsHorizontal {
9187
- display: -webkit-flex;
9188
- display: flex;
9189
- -webkit-align-items: stretch;
9190
- align-items: stretch;
9191
- background: rgba(37, 38, 46, 0.5);
9192
- }
9193
-
9194
- .euiStepHorizontal__item {
9195
- -webkit-flex-grow: 1;
9196
- flex-grow: 1; /* 2 */
9197
- -webkit-flex-basis: 0%;
9198
- flex-basis: 0%; /* 2 */
9199
- }
9200
- .euiStepHorizontal__item:first-of-type > .euiStepHorizontal::before, .euiStepHorizontal__item:last-of-type > .euiStepHorizontal::after {
9201
- display: none;
9202
- }
9203
-
9204
- .euiStepHorizontal {
9205
- padding: 24px 16px 16px;
9206
- display: -webkit-flex;
9207
- display: flex; /* 3 */
9208
- -webkit-flex-direction: column;
9209
- flex-direction: column; /* 3 */
9210
- -webkit-align-items: center;
9211
- align-items: center; /* 3 */
9212
- -webkit-justify-content: flex-start;
9213
- justify-content: flex-start; /* 3 */
9214
- cursor: pointer;
9215
- position: relative;
9216
- width: 100%;
9217
- }
9218
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__title, .euiStepHorizontal:hover:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__title {
9219
- text-decoration: underline;
9220
- }
9221
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) {
9222
- outline: none;
9223
- }
9224
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number {
9225
- outline: 2px solid currentColor;
9226
- }
9227
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number:focus-visible {
9228
- outline-style: auto;
9229
- }
9230
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number:not(:focus-visible) {
9231
- outline: none;
9232
- }
9233
- .euiStepHorizontal.euiStepHorizontal-isDisabled {
9234
- cursor: not-allowed;
9235
- }
9236
- .euiStepHorizontal::before, .euiStepHorizontal::after {
9237
- content: "";
9238
- position: absolute;
9239
- width: calc(50% - 16px);
9240
- height: 1px;
9241
- top: 40px;
9242
- background-color: #343741;
9243
- z-index: 0; /* 1 */
9244
- }
9245
- .euiStepHorizontal::before {
9246
- left: 0;
9247
- }
9248
- .euiStepHorizontal::after {
9249
- right: 0;
9250
- }
9251
-
9252
- .euiStepHorizontal__number {
9253
- position: relative; /* 1 */
9254
- z-index: 1; /* 1 */
9255
- transition: all 150ms ease-in-out;
9256
- }
9257
-
9258
- .euiStepHorizontal__title {
9259
- overflow-wrap: break-word !important;
9260
- word-break: break-word;
9261
- color: #DFE5EF;
9262
- font-size: 16px;
9263
- font-size: 1.1428571429rem;
9264
- line-height: 1.7142857143rem;
9265
- font-weight: 700;
9266
- margin-top: 8px;
9267
- font-weight: 400;
9268
- text-align: center;
9269
- }
9270
- .euiStepHorizontal-isDisabled .euiStepHorizontal__title {
9271
- color: #98A2B3;
9272
- }
9273
-
9274
- .euiStepHorizontal-isComplete::before, .euiStepHorizontal-isComplete::after {
9275
- height: 2px;
9276
- background-color: #36A2EF;
9277
- }
9278
-
9279
- .euiStepHorizontal-isSelected .euiStepHorizontal__number:not([class*=danger]):not([class*=warning]):not([class*=loading]) {
9280
- box-shadow: 0 0.8px 0.8px rgba(76, 158, 217, 0.1), 0 2.3px 2px rgba(76, 158, 217, 0.075);
9281
- }
9282
- .euiStepHorizontal-isSelected::before {
9283
- height: 2px;
9284
- background-color: #36A2EF;
9285
- }
9286
-
9287
- @media only screen and (max-width: 574px) {
9288
- .euiStepHorizontal {
9289
- padding-top: 16px;
9290
- }
9291
- .euiStepHorizontal::before, .euiStepHorizontal::after {
9292
- top: 32px;
9293
- }
9294
- .euiStepHorizontal__title {
9295
- display: none;
9296
- }
9297
- }
9298
- @media only screen and (min-width: 575px) and (max-width: 767px) {
9299
- .euiStepHorizontal {
9300
- padding-top: 16px;
9301
- }
9302
- .euiStepHorizontal::before, .euiStepHorizontal::after {
9303
- top: 32px;
9304
- }
9305
- .euiStepHorizontal__title {
9306
- display: none;
9307
- }
9308
- }
9309
9071
  .euiSuggestItem {
9310
9072
  display: -webkit-flex;
9311
9073
  display: flex;
@@ -10943,89 +10705,4 @@ button.euiSuggestItem:hover .euiSuggestItem__label, button.euiSuggestItem:focus
10943
10705
  line-height: 1.7142857143rem;
10944
10706
  font-weight: 700;
10945
10707
  color: inherit;
10946
- }
10947
-
10948
- .euiStepHorizontal-isDisabled .euiStepHorizontal__title,
10949
- .euiStep-isDisabled .euiStep__title {
10950
- color: #515761;
10951
- }
10952
-
10953
- .euiStepNumber {
10954
- outline-color: #36A2EF;
10955
- }
10956
- .euiStepNumber .euiStepNumber__icon {
10957
- position: relative;
10958
- top: -1px;
10959
- }
10960
- .euiStepNumber--small .euiStepNumber__icon {
10961
- top: -1px;
10962
- }
10963
- .euiStepNumber--complete .euiStepNumber__icon, .euiStepNumber--danger .euiStepNumber__icon {
10964
- stroke: currentColor;
10965
- stroke-width: 0.5px;
10966
- }
10967
- .euiStepNumber--default {
10968
- background-color: #36A2EF;
10969
- color: #000;
10970
- outline-color: #000 !important;
10971
- }
10972
- .euiStepNumber--complete {
10973
- background-color: #7DDED8;
10974
- color: #000;
10975
- outline-color: #000 !important;
10976
- }
10977
- .euiStepNumber--warning {
10978
- background-color: #F3D371;
10979
- color: #000;
10980
- outline-color: #000 !important;
10981
- }
10982
- .euiStepNumber--danger {
10983
- background-color: #F86B63;
10984
- color: #000;
10985
- outline-color: #000 !important;
10986
- }
10987
- .euiStepNumber.euiStepNumber--incomplete {
10988
- background-color: transparent;
10989
- color: #DFE5EF;
10990
- border: 2px solid #343741;
10991
- }
10992
- .euiStepNumber.euiStepNumber--incomplete .euiStepNumber__number {
10993
- display: unset;
10994
- position: relative;
10995
- top: -2px;
10996
- }
10997
-
10998
- .euiStepNumber--disabled {
10999
- background-color: rgba(81, 87, 97, 0.1);
11000
- color: #515761;
11001
- }
11002
-
11003
- .euiStepHorizontal__title {
11004
- font-weight: 700;
11005
- }
11006
-
11007
- .euiStepHorizontal::before, .euiStepHorizontal::after {
11008
- height: 2px;
11009
- background-color: #36A2EF;
11010
- background-color: #343741;
11011
- }
11012
-
11013
- .euiStep:not(:last-of-type) {
11014
- background-position: left 32px;
11015
- }
11016
- .euiStep--small:not(:last-of-type) {
11017
- background-position: -4px 24px;
11018
- }
11019
-
11020
- .euiStep__content {
11021
- padding-bottom: 40px;
11022
- margin-bottom: 0;
11023
- }
11024
-
11025
- .euiStepsHorizontal {
11026
- background: none;
11027
- }
11028
-
11029
- .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number:not(:focus-visible) {
11030
- outline: 2px solid #36A2EF;
11031
10708
  }