@elastic/eui 75.0.0 → 75.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +0 -323
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -323
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/code/code_block.js +5 -3
- package/es/components/code/code_block_annotations.js +94 -0
- package/es/components/code/code_block_annotations.style.js +18 -0
- package/es/components/code/code_block_full_screen.js +9 -3
- package/es/components/code/code_block_line.styles.js +3 -2
- package/es/components/code/utils.js +53 -13
- package/es/components/form/range/range_track.js +1 -1
- package/es/components/icon/assets/app_agent.js +2 -10
- package/es/components/icon/assets/app_fleet.js +10 -2
- package/es/components/steps/step.js +19 -12
- package/es/components/steps/step.styles.js +73 -0
- package/es/components/steps/step_horizontal.js +55 -42
- package/es/components/steps/step_horizontal.styles.js +55 -0
- package/es/components/steps/step_number.js +82 -73
- package/es/components/steps/step_number.styles.js +76 -0
- package/es/components/steps/steps_horizontal.js +11 -7
- package/es/components/steps/steps_horizontal.styles.js +35 -0
- package/es/components/steps/sub_steps.js +7 -1
- package/es/components/steps/sub_steps.styles.js +14 -0
- package/es/components/tour/tour_step_indicator.js +0 -3
- package/es/global_styling/utility/animations.js +4 -3
- package/eui.d.ts +115 -4
- package/i18ntokens.json +26 -10
- package/lib/components/code/code_block.js +5 -3
- package/lib/components/code/code_block_annotations.js +113 -0
- package/lib/components/code/code_block_annotations.style.js +29 -0
- package/lib/components/code/code_block_full_screen.js +9 -3
- package/lib/components/code/code_block_line.styles.js +3 -2
- package/lib/components/code/utils.js +54 -13
- package/lib/components/form/range/range_track.js +1 -1
- package/lib/components/icon/assets/app_agent.js +2 -10
- package/lib/components/icon/assets/app_fleet.js +10 -2
- package/lib/components/icon/svgs/app_agent.svg +2 -4
- package/lib/components/icon/svgs/app_fleet.svg +4 -2
- package/lib/components/steps/step.js +21 -12
- package/lib/components/steps/step.styles.js +93 -0
- package/lib/components/steps/step_horizontal.js +56 -41
- package/lib/components/steps/step_horizontal.styles.js +66 -0
- package/lib/components/steps/step_number.js +86 -75
- package/lib/components/steps/step_number.styles.js +84 -0
- package/lib/components/steps/steps_horizontal.js +12 -7
- package/lib/components/steps/steps_horizontal.styles.js +38 -0
- package/lib/components/steps/sub_steps.js +9 -1
- package/lib/components/steps/sub_steps.styles.js +24 -0
- package/lib/components/tour/tour_step_indicator.js +0 -3
- package/lib/global_styling/utility/animations.js +6 -4
- package/optimize/es/components/code/code_block_annotations.js +79 -0
- package/optimize/es/components/code/code_block_annotations.style.js +18 -0
- package/optimize/es/components/code/code_block_full_screen.js +9 -3
- package/optimize/es/components/code/code_block_line.styles.js +3 -2
- package/optimize/es/components/code/utils.js +53 -13
- package/optimize/es/components/form/range/range_track.js +1 -1
- package/optimize/es/components/icon/assets/app_agent.js +2 -10
- package/optimize/es/components/icon/assets/app_fleet.js +10 -2
- package/optimize/es/components/steps/step.js +19 -12
- package/optimize/es/components/steps/step.styles.js +73 -0
- package/optimize/es/components/steps/step_horizontal.js +54 -41
- package/optimize/es/components/steps/step_horizontal.styles.js +55 -0
- package/optimize/es/components/steps/step_number.js +82 -73
- package/optimize/es/components/steps/step_number.styles.js +76 -0
- package/optimize/es/components/steps/steps_horizontal.js +11 -7
- package/optimize/es/components/steps/steps_horizontal.styles.js +35 -0
- package/optimize/es/components/steps/sub_steps.js +7 -1
- package/optimize/es/components/steps/sub_steps.styles.js +14 -0
- package/optimize/es/components/tour/tour_step_indicator.js +0 -3
- package/optimize/es/global_styling/utility/animations.js +4 -3
- package/optimize/lib/components/code/code_block_annotations.js +105 -0
- package/optimize/lib/components/code/code_block_annotations.style.js +29 -0
- package/optimize/lib/components/code/code_block_full_screen.js +9 -3
- package/optimize/lib/components/code/code_block_line.styles.js +3 -2
- package/optimize/lib/components/code/utils.js +54 -13
- package/optimize/lib/components/form/range/range_track.js +1 -1
- package/optimize/lib/components/icon/assets/app_agent.js +2 -10
- package/optimize/lib/components/icon/assets/app_fleet.js +10 -2
- package/optimize/lib/components/icon/svgs/app_agent.svg +2 -4
- package/optimize/lib/components/icon/svgs/app_fleet.svg +4 -2
- package/optimize/lib/components/steps/step.js +21 -12
- package/optimize/lib/components/steps/step.styles.js +93 -0
- package/optimize/lib/components/steps/step_horizontal.js +55 -40
- package/optimize/lib/components/steps/step_horizontal.styles.js +66 -0
- package/optimize/lib/components/steps/step_number.js +86 -75
- package/optimize/lib/components/steps/step_number.styles.js +84 -0
- package/optimize/lib/components/steps/steps_horizontal.js +12 -7
- package/optimize/lib/components/steps/steps_horizontal.styles.js +38 -0
- package/optimize/lib/components/steps/sub_steps.js +9 -1
- package/optimize/lib/components/steps/sub_steps.styles.js +24 -0
- package/optimize/lib/components/tour/tour_step_indicator.js +0 -3
- package/optimize/lib/global_styling/utility/animations.js +6 -4
- package/package.json +2 -2
- package/src/components/index.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/code/code_block_annotations.js +110 -0
- package/test-env/components/code/code_block_annotations.style.js +29 -0
- package/test-env/components/code/code_block_full_screen.js +9 -3
- package/test-env/components/code/code_block_line.styles.js +3 -2
- package/test-env/components/code/utils.js +54 -13
- package/test-env/components/form/range/range_track.js +1 -1
- package/test-env/components/icon/assets/app_agent.js +2 -10
- package/test-env/components/icon/assets/app_fleet.js +10 -2
- package/test-env/components/steps/step.js +21 -12
- package/test-env/components/steps/step.styles.js +93 -0
- package/test-env/components/steps/step_horizontal.js +56 -41
- package/test-env/components/steps/step_horizontal.styles.js +66 -0
- package/test-env/components/steps/step_number.js +86 -75
- package/test-env/components/steps/step_number.styles.js +84 -0
- package/test-env/components/steps/steps_horizontal.js +12 -7
- package/test-env/components/steps/steps_horizontal.styles.js +38 -0
- package/test-env/components/steps/sub_steps.js +9 -1
- package/test-env/components/steps/sub_steps.styles.js +24 -0
- package/test-env/components/tour/tour_step_indicator.js +0 -3
- package/test-env/global_styling/utility/animations.js +6 -4
- package/src/components/steps/_index.scss +0 -7
- package/src/components/steps/_mixins.scss +0 -12
- package/src/components/steps/_step_number.scss +0 -52
- package/src/components/steps/_steps.scss +0 -57
- package/src/components/steps/_steps_horizontal.scss +0 -135
- package/src/components/steps/_sub_steps.scss +0 -15
- package/src/components/steps/_variables.scss +0 -11
- package/src/themes/amsterdam/global_styling/variables/_steps.scss +0 -8
- package/src/themes/amsterdam/overrides/_steps.scss +0 -101
|
@@ -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,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
|
-
}
|