@elastic/eui 71.0.0 → 71.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 (147) hide show
  1. package/README.md +0 -7
  2. package/dist/eui_theme_dark.css +7694 -5793
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +7736 -5835
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/datagrid/data_grid.a11y.js +251 -0
  7. package/es/components/date_picker/date_picker.a11y.js +83 -0
  8. package/es/components/delay_hide/delay_hide.a11y.js +106 -0
  9. package/es/components/delay_render/delay_render.a11y.js +106 -0
  10. package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  11. package/es/components/error_boundary/error_boundary.js +45 -27
  12. package/es/components/page/page_side_bar/page_side_bar.js +3 -0
  13. package/es/components/page/page_template.js +1 -15
  14. package/eui.d.ts +19 -11
  15. package/i18ntokens.json +4 -4
  16. package/lib/components/datagrid/data_grid.a11y.js +255 -0
  17. package/lib/components/date_picker/date_picker.a11y.js +89 -0
  18. package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  19. package/lib/components/delay_render/delay_render.a11y.js +111 -0
  20. package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  21. package/lib/components/error_boundary/error_boundary.js +49 -29
  22. package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  23. package/lib/components/page/page_template.js +1 -15
  24. package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
  25. package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
  26. package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
  27. package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
  28. package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  29. package/optimize/es/components/error_boundary/error_boundary.js +37 -26
  30. package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
  31. package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
  32. package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
  33. package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  34. package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
  35. package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  36. package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
  37. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  38. package/package.json +11 -14
  39. package/src/components/basic_table/_basic_table.scss +1 -4
  40. package/src/components/button/button_empty/_button_empty.scss +2 -4
  41. package/src/components/button/button_group/_button_group.scss +1 -1
  42. package/src/components/button/button_group/_button_group_button.scss +3 -4
  43. package/src/components/button/button_icon/_button_icon.scss +0 -3
  44. package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
  45. package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
  46. package/src/components/color_picker/_color_picker.scss +3 -2
  47. package/src/components/color_picker/_hue.scss +7 -7
  48. package/src/components/color_picker/_saturation.scss +1 -1
  49. package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
  50. package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
  51. package/src/components/combo_box/_combo_box.scss +7 -6
  52. package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
  53. package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
  54. package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
  55. package/src/components/control_bar/_variables.scss +0 -1
  56. package/src/components/datagrid/_data_grid_data_row.scss +4 -5
  57. package/src/components/datagrid/_mixins.scss +1 -1
  58. package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
  59. package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
  60. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  61. package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
  62. package/src/components/date_picker/_date_picker_range.scss +1 -1
  63. package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
  64. package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
  65. package/src/components/drag_and_drop/_draggable.scss +3 -5
  66. package/src/components/drag_and_drop/_droppable.scss +1 -1
  67. package/src/components/empty_prompt/_empty_prompt.scss +1 -1
  68. package/src/components/filter_group/_filter_group.scss +2 -2
  69. package/src/components/filter_group/_filter_select_item.scss +0 -1
  70. package/src/components/form/checkbox/_checkbox.scss +5 -3
  71. package/src/components/form/described_form_group/_described_form_group.scss +0 -1
  72. package/src/components/form/field_password/_field_password.scss +1 -1
  73. package/src/components/form/field_search/_field_search.scss +1 -1
  74. package/src/components/form/file_picker/_file_picker.scss +1 -2
  75. package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
  76. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
  77. package/src/components/form/form_row/_form_row.scss +3 -0
  78. package/src/components/form/radio/_radio.scss +5 -3
  79. package/src/components/form/select/_select.scss +1 -1
  80. package/src/components/form/switch/_switch.scss +3 -1
  81. package/src/components/header/_mixins.scss +1 -1
  82. package/src/components/header/header_section/_header_section_item.scss +4 -4
  83. package/src/components/header/header_section/_header_section_item_button.scss +0 -1
  84. package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
  85. package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
  86. package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
  87. package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
  88. package/src/components/markdown_editor/_markdown_format.scss +4 -2
  89. package/src/components/notification/_notification_event.scss +2 -2
  90. package/src/components/page/page_content/_page_content_body.scss +0 -1
  91. package/src/components/page/page_content/_page_content_header_section.scss +0 -1
  92. package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
  93. package/src/components/panel/split_panel/_split_panel.scss +2 -2
  94. package/src/components/resizable_container/_resizable_button.scss +31 -31
  95. package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
  96. package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
  97. package/src/components/side_nav/_mixins.scss +1 -1
  98. package/src/components/side_nav/_side_nav.scss +2 -1
  99. package/src/components/side_nav/_side_nav_item.scss +2 -3
  100. package/src/components/steps/_steps.scss +2 -1
  101. package/src/components/suggest/_suggest_input.scss +1 -1
  102. package/src/components/suggest/_suggest_item.scss +4 -3
  103. package/src/components/table/_responsive.scss +5 -3
  104. package/src/components/table/_table.scss +2 -4
  105. package/src/components/table/mobile/_mobile.scss +0 -2
  106. package/src/components/tree_view/tree_view.scss +2 -2
  107. package/src/global_styling/mixins/_form.scss +7 -18
  108. package/src/global_styling/mixins/_header.scss +2 -2
  109. package/src/global_styling/mixins/_helpers.scss +1 -2
  110. package/src/global_styling/mixins/_icons.scss +1 -1
  111. package/src/global_styling/mixins/_range.scss +4 -8
  112. package/src/global_styling/mixins/_responsive.scss +3 -8
  113. package/src/global_styling/mixins/_shadow.scss +5 -9
  114. package/src/global_styling/mixins/_states.scss +2 -2
  115. package/src/global_styling/mixins/_typography.scss +16 -19
  116. package/src/global_styling/variables/_colors_vis.scss +1 -1
  117. package/src/global_styling/variables/_typography.scss +1 -3
  118. package/src/themes/amsterdam/_colors_dark.scss +2 -1
  119. package/src/themes/amsterdam/_colors_light.scss +2 -0
  120. package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
  121. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
  122. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
  123. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
  124. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
  125. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
  126. package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
  127. package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
  128. package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
  129. package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
  130. package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
  131. package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
  132. package/src/themes/amsterdam/overrides/_header.scss +2 -2
  133. package/src/themes/amsterdam/overrides/_hue.scss +6 -6
  134. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
  135. package/src/themes/amsterdam/overrides/_steps.scss +1 -2
  136. package/src/themes/legacy/_colors_dark.scss +2 -1
  137. package/src/themes/legacy/_colors_light.scss +2 -0
  138. package/src/themes/legacy/reset/_reset.scss +8 -7
  139. package/test-env/components/datagrid/data_grid.a11y.js +248 -0
  140. package/test-env/components/date_picker/date_picker.a11y.js +87 -0
  141. package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
  142. package/test-env/components/delay_render/delay_render.a11y.js +111 -0
  143. package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
  144. package/test-env/components/error_boundary/error_boundary.js +48 -28
  145. package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
  146. package/test-env/components/page/page_template.js +1 -15
  147. package/scripts/postinstall.js +0 -9
@@ -5,20 +5,20 @@
5
5
  flex-shrink: 0;
6
6
  z-index: 1;
7
7
 
8
- &:before,
9
- &:after {
8
+ &::before,
9
+ &::after {
10
10
  content: '';
11
11
  display: block;
12
12
  position: absolute;
13
13
  top: 50%;
14
14
  left: 50%;
15
15
  background-color: $euiColorDarkestShade;
16
- transition: (
16
+ transition:
17
17
  width $euiResizableButtonTransitionSpeed ease,
18
18
  height $euiResizableButtonTransitionSpeed ease,
19
19
  transform $euiResizableButtonTransitionSpeed ease,
20
20
  background-color $euiResizableButtonTransitionSpeed ease
21
- );
21
+ ;
22
22
  }
23
23
 
24
24
  &.euiResizableButton--horizontal {
@@ -27,17 +27,17 @@
27
27
  margin-left: -($euiResizableButtonSize / 2);
28
28
  margin-right: -($euiResizableButtonSize / 2);
29
29
 
30
- &:before,
31
- &:after {
30
+ &::before,
31
+ &::after {
32
32
  width: 1px;
33
33
  height: $euiSizeM;
34
34
  }
35
35
 
36
- &:before {
36
+ &::before {
37
37
  transform: translate(-2px, -50%);
38
38
  }
39
39
 
40
- &:after {
40
+ &::after {
41
41
  transform: translate(1px, -50%);
42
42
  }
43
43
  }
@@ -48,82 +48,82 @@
48
48
  margin-top: -($euiResizableButtonSize / 2);
49
49
  margin-bottom: -($euiResizableButtonSize / 2);
50
50
 
51
- &:before,
52
- &:after {
51
+ &::before,
52
+ &::after {
53
53
  width: $euiSizeM;
54
54
  height: 1px;
55
55
  }
56
56
 
57
- &:before {
57
+ &::before {
58
58
  transform: translate(-50%, -2px);
59
59
  }
60
60
 
61
- &:after {
61
+ &::after {
62
62
  transform: translate(-50%, 1px);
63
63
  }
64
64
  }
65
65
 
66
- //Lighten the "grab" icon on :hover
66
+ // Lighten the "grab" icon on :hover
67
67
  &:hover:not(:disabled) {
68
- &:before,
69
- &:after {
68
+ &::before,
69
+ &::after {
70
70
  background-color: $euiColorMediumShade;
71
- transition-delay: $euiResizableButtonTransitionSpeed; //Delay transition on hover so animation is not accidentally triggered on mouse over
71
+ transition-delay: $euiResizableButtonTransitionSpeed; // Delay transition on hover so animation is not accidentally triggered on mouse over
72
72
  }
73
73
  }
74
74
 
75
- //Add a transparent background to the container and emphasis the "grab" icon with primary color on :focus
75
+ // Add a transparent background to the container and emphasis the "grab" icon with primary color on :focus
76
76
  &:focus:not(:disabled) {
77
77
  background-color: transparentize($euiColorPrimary, .9);
78
78
 
79
- &:before,
80
- &:after {
79
+ &::before,
80
+ &::after {
81
81
  background-color: $euiColorPrimary;
82
82
  // Overrides default transition so that "grab" icon background-color doesn't animate
83
- transition: (
83
+ transition:
84
84
  width $euiResizableButtonTransitionSpeed ease,
85
85
  height $euiResizableButtonTransitionSpeed ease,
86
86
  transform $euiResizableButtonTransitionSpeed ease
87
- );
87
+ ;
88
88
  transition-delay: $euiResizableButtonTransitionSpeed / 2;
89
89
  }
90
90
  }
91
91
 
92
- //Morph the "grab" icon into a fluid 2px straight line on :hover and :focus
92
+ // Morph the "grab" icon into a fluid 2px straight line on :hover and :focus
93
93
  &:hover:not(:disabled),
94
94
  &:focus:not(:disabled) {
95
95
  &.euiResizableButton--horizontal {
96
- &:before,
97
- &:after {
96
+ &::before,
97
+ &::after {
98
98
  height: 100%;
99
99
  }
100
100
 
101
- &:before {
101
+ &::before {
102
102
  transform: translate(-1px, -50%);
103
103
  }
104
104
 
105
- &:after {
105
+ &::after {
106
106
  transform: translate(0, -50%);
107
107
  }
108
108
  }
109
109
 
110
110
  &.euiResizableButton--vertical {
111
- &:before,
112
- &:after {
111
+ &::before,
112
+ &::after {
113
113
  width: 100%;
114
114
  }
115
115
 
116
- &:before {
116
+ &::before {
117
117
  transform: translate(-50%, -1px);
118
118
  }
119
119
 
120
- &:after {
120
+ &::after {
121
121
  transform: translate(-50%, 0);
122
122
  }
123
123
  }
124
124
  }
125
125
 
126
126
  &:disabled {
127
- display: none !important; // sass-lint:disable-line no-important
127
+ display: none !important; // stylelint-disable-line declaration-no-important
128
128
  }
129
129
  }
@@ -1,5 +1,5 @@
1
1
  // This file has lots of modifiers and is somewhat nesty by nature because of positioning
2
- // sass-lint:disable nesting-depth
2
+ // stylelint-disable max-nesting-depth
3
3
 
4
4
  /**
5
5
  * 1. The default position of the button should always be `middle`, so
@@ -13,7 +13,7 @@
13
13
  position: absolute;
14
14
  z-index: 2;
15
15
  // Remove animations from EuiButtonIcon because of the custom transforms
16
- animation: none !important; // sass-lint:disable-line no-important
16
+ animation: none !important; // stylelint-disable-line declaration-no-important
17
17
  // Remove transition from EuiButtonIcon because of the custom transforms
18
18
  transition-property: background, box-shadow;
19
19
 
@@ -69,9 +69,9 @@
69
69
  }
70
70
 
71
71
  &.euiResizableToggleButton-isCollapsed {
72
- top: 0 !important; // sass-lint:disable-line no-important
73
- bottom: 0 !important; // sass-lint:disable-line no-important
74
- transform: none !important; // sass-lint:disable-line no-important
72
+ top: 0 !important; // stylelint-disable-line declaration-no-important
73
+ bottom: 0 !important; // stylelint-disable-line declaration-no-important
74
+ transform: none !important; // stylelint-disable-line declaration-no-important
75
75
  height: 100%;
76
76
 
77
77
  &.euiResizableToggleButton--top {
@@ -124,10 +124,10 @@
124
124
  }
125
125
 
126
126
  &.euiResizableToggleButton-isCollapsed {
127
- top: 0 !important; // sass-lint:disable-line no-important
128
- bottom: 0 !important; // sass-lint:disable-line no-important
129
- left: 0 !important; // sass-lint:disable-line no-important
130
- transform: none !important; // sass-lint:disable-line no-important
127
+ top: 0 !important; // stylelint-disable-line declaration-no-important
128
+ bottom: 0 !important; // stylelint-disable-line declaration-no-important
129
+ left: 0 !important; // stylelint-disable-line declaration-no-important
130
+ transform: none !important; // stylelint-disable-line declaration-no-important
131
131
  width: 100%;
132
132
 
133
133
  &.euiResizableToggleButton--left {
@@ -1,6 +1,6 @@
1
1
  .euiSelectableTemplateSitewide__listItem {
2
2
  .euiSelectableListItem__text {
3
- text-decoration: none !important; // sass-lint:disable-line no-important
3
+ text-decoration: none !important; // stylelint-disable-line declaration-no-important
4
4
  }
5
5
 
6
6
  // TODO: Any better way to override this focus underline?
@@ -1,4 +1,4 @@
1
- // sass-lint:disable indentation no-color-keywords no-color-literals
1
+ // stylelint-disable color-named
2
2
 
3
3
  @mixin euiSideNavEmbellish {
4
4
  background:
@@ -4,7 +4,7 @@
4
4
  border-bottom: $euiBorderThin;
5
5
  width: 100%;
6
6
  text-align: left;
7
- border-radius: 0 !important; // sass-lint:disable-line no-important
7
+ border-radius: 0 !important; // stylelint-disable-line declaration-no-important
8
8
  font-size: $euiFontSizeM;
9
9
  padding: 0 $euiSize; // This plus the inner padding is equal to paddingSize large for EuiPage
10
10
 
@@ -22,6 +22,7 @@
22
22
  }
23
23
 
24
24
  // Loop through the breakpoints and apply mobile styles only to the right className
25
+ // stylelint-disable max-nesting-depth
25
26
  @each $breakpoint in $euiBreakpointKeys {
26
27
  @include euiBreakpoint($breakpoint) {
27
28
  .euiSideNav__contentMobile-#{$breakpoint} {
@@ -5,7 +5,6 @@
5
5
  * 4. Restrict the underline to the button __label so it doesn't affect other components that might live within
6
6
  */
7
7
 
8
-
9
8
  .euiSideNavItemButton {
10
9
  @include euiFontSizeS;
11
10
  text-align: left; /* 1 */
@@ -89,7 +88,7 @@
89
88
  position: static;
90
89
  margin-left: 0;
91
90
 
92
- &:after {
91
+ &::after {
93
92
  display: none;
94
93
  }
95
94
  }
@@ -148,7 +147,7 @@
148
147
  padding-left: $euiSizeS;
149
148
  padding-right: $euiSizeS; /* 2 */
150
149
 
151
- &:after {
150
+ &::after {
152
151
  position: absolute; /* 2 */
153
152
  content: '';
154
153
  top: $euiSizeM;
@@ -3,9 +3,9 @@
3
3
  */
4
4
 
5
5
  .euiStep {
6
- // sass-lint:disable indentation
7
6
  // Create border on all but the last step
8
7
  &:not(:last-of-type) {
8
+ // stylelint-disable indentation
9
9
  background-image: linear-gradient(
10
10
  to right,
11
11
  transparent 0,
@@ -15,6 +15,7 @@
15
15
  transparent ($euiSize + 1),
16
16
  transparent 100%
17
17
  );
18
+ // stylelint-enable indentation
18
19
  background-repeat: no-repeat;
19
20
  background-position: left $euiSizeXXL;
20
21
  }
@@ -1,4 +1,4 @@
1
1
  .euiSuggestInput__statusIcon {
2
- // sass-lint:disable-block no-important
2
+ // stylelint-disable-next-line declaration-no-important
3
3
  background-color: transparent !important; // Override typical append coloring
4
4
  }
@@ -17,7 +17,8 @@
17
17
 
18
18
  // When `onClick` is provided, EuiSuggestItem renders as a <button>
19
19
  // and we want to adjust styles to better afford the interaction
20
- button.euiSuggestItem { // sass-lint:disable-line no-qualifying-elements
20
+ // stylelint-disable selector-no-qualifying-type
21
+ button.euiSuggestItem {
21
22
  width: 100%;
22
23
  text-align: left;
23
24
 
@@ -31,6 +32,7 @@ button.euiSuggestItem { // sass-lint:disable-line no-qualifying-elements
31
32
  }
32
33
  }
33
34
  }
35
+ // stylelint-enable selector-no-qualifying-type
34
36
 
35
37
  @each $name, $color in $euiSuggestItemColors {
36
38
  .euiSuggestItem__type--#{$name} {
@@ -84,11 +86,10 @@ button.euiSuggestItem { // sass-lint:disable-line no-qualifying-elements
84
86
 
85
87
  &.euiSuggestItem__description--wrap {
86
88
  @include euiTextBreakWord;
87
- white-space: normal !important; // sass-lint:disable-line no-important
89
+ white-space: normal !important; // stylelint-disable-line declaration-no-important
88
90
  }
89
91
  }
90
92
 
91
-
92
93
  // For specifically within EuiSelectable
93
94
 
94
95
  .euiSuggestItemOption {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiTableRowCell__mobileHeader {
2
5
  // Don't display by default unless table is responsive
3
6
  display: none;
@@ -5,20 +8,19 @@
5
8
 
6
9
  @include euiBreakpoint('xs', 's') {
7
10
  .euiTableRowCell--hideForMobile { // must come last to override any special cases
8
- // sass-lint:disable-block no-important
11
+ // stylelint-disable-next-line declaration-no-important
9
12
  display: none !important;
10
13
  }
11
14
  }
12
15
 
13
16
  @include euiBreakpoint('m', 'l', 'xl') {
14
17
  .euiTableRowCell--hideForDesktop { // must come last to override any special cases
15
- // sass-lint:disable-block no-important
18
+ // stylelint-disable-next-line declaration-no-important
16
19
  display: none !important;
17
20
  }
18
21
  }
19
22
 
20
23
  @include euiBreakpoint('xs', 's') {
21
-
22
24
  .euiTable.euiTable--responsive {
23
25
  // Not allowing compressed styles in mobile view (for now)
24
26
 
@@ -82,9 +82,7 @@
82
82
  background-color: $euiTableHoverColor;
83
83
  }
84
84
 
85
-
86
85
  &.euiTableRow-isClickable {
87
-
88
86
  &:hover {
89
87
  background-color: $euiTableHoverClickableColor;
90
88
  cursor: pointer;
@@ -111,7 +109,7 @@
111
109
  }
112
110
 
113
111
  &:hover,
114
- &:hover + .euiTableRow.euiTableRow-isExpandedRow .euiTableRowCell {
112
+ &:hover + .euiTableRow.euiTableRow-isExpandedRow .euiTableRowCell {
115
113
  background-color: $euiTableHoverSelectedColor;
116
114
  }
117
115
  }
@@ -189,7 +187,7 @@
189
187
  .euiTableCellContent--overflowingContent {
190
188
  overflow: visible;
191
189
  white-space: normal;
192
- //* 4 */ overflow-wrap is not supported on flex parents
190
+ // /* 4 */ overflow-wrap is not supported on flex parents
193
191
  word-break: break-word;
194
192
  }
195
193
 
@@ -5,7 +5,6 @@
5
5
  }
6
6
 
7
7
  @include euiBreakpoint('xs', 's') {
8
-
9
8
  .euiTableHeaderMobile {
10
9
  display: flex;
11
10
  justify-content: flex-end;
@@ -15,5 +14,4 @@
15
14
  .euiTableSortMobile {
16
15
  display: block;
17
16
  }
18
-
19
17
  }
@@ -41,7 +41,6 @@
41
41
  .euiTreeView__iconPlaceholder {
42
42
  width: $euiSizeXL;
43
43
  }
44
-
45
44
  }
46
45
 
47
46
  .euiTreeView__nodeLabel {
@@ -58,6 +57,8 @@
58
57
  }
59
58
  }
60
59
 
60
+ // TODO: Address nesting during Emotion conversion, if possible
61
+ // stylelint-disable max-nesting-depth
61
62
  .euiTreeView--compressed {
62
63
  .euiTreeView__node {
63
64
  max-height: $euiSizeL;
@@ -65,7 +66,6 @@
65
66
 
66
67
  .euiTreeView__nodeInner {
67
68
  height: $euiSizeL;
68
-
69
69
  }
70
70
 
71
71
  .euiTreeView__iconWrapper {
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  @mixin euiPlaceholderPerBrowser {
58
- // sass-lint:disable-block no-vendor-prefixes
58
+ // stylelint-disable selector-no-vendor-prefix
59
59
  // Each prefix must be its own content block
60
60
  &::-webkit-input-placeholder { @content; opacity: 1; }
61
61
  &::-moz-placeholder { @content; opacity: 1; }
@@ -78,7 +78,6 @@
78
78
  font-size: $euiFontSizeS;
79
79
  color: $euiTextColor;
80
80
 
81
- // sass-lint:disable-block mixins-before-declarations
82
81
  @include euiPlaceholderPerBrowser {
83
82
  color: $euiFormControlPlaceholderText;
84
83
  }
@@ -143,7 +142,6 @@
143
142
  // 1. Must supply both values to background-size or some browsers apply the single value to both directions
144
143
 
145
144
  @mixin euiFormControlDefaultShadow($borderOnly: false) {
146
- // sass-lint:disable-block indentation
147
145
  background-color: $euiFormBackgroundColor;
148
146
  background-repeat: no-repeat;
149
147
  background-size: 0% 100%; // 1
@@ -164,14 +162,13 @@
164
162
 
165
163
  // Fixes bug in Firefox where adding a transition to the background-color
166
164
  // caused a flash of differently styled dropdown.
167
- @supports (-moz-appearance: none) { // sass-lint:disable-line no-vendor-prefixes
165
+ @supports (-moz-appearance: none) {
168
166
  // List *must* be in the same order as the above.
169
167
  transition-property: box-shadow, background-image, background-size;
170
168
  }
171
169
  }
172
170
 
173
171
  @mixin euiFormControlFocusStyle($borderOnly: false) {
174
- // sass-lint:disable-block indentation, empty-args
175
172
  background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
176
173
  background-image: euiFormControlGradient();
177
174
  background-size: 100% 100%; // 1
@@ -180,8 +177,7 @@
180
177
  @if ($borderOnly) {
181
178
  box-shadow: inset 0 0 0 1px $euiFormBorderColor;
182
179
  } @else {
183
- box-shadow:
184
- inset 0 0 0 1px $euiFormBorderColor;
180
+ box-shadow: inset 0 0 0 1px $euiFormBorderColor;
185
181
  }
186
182
  }
187
183
 
@@ -191,7 +187,6 @@
191
187
  }
192
188
 
193
189
  @mixin euiFormControlDisabledTextStyle {
194
- // sass-lint:disable-block no-vendor-prefixes
195
190
  color: $euiFormControlDisabledColor;
196
191
  -webkit-text-fill-color: $euiFormControlDisabledColor; // Required for Safari
197
192
  }
@@ -202,14 +197,12 @@
202
197
  background: $euiFormBackgroundDisabledColor;
203
198
  box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
204
199
 
205
- // sass-lint:disable-block mixins-before-declarations
206
200
  @include euiPlaceholderPerBrowser {
207
201
  color: $euiFormControlDisabledColor;
208
202
  }
209
203
  }
210
204
 
211
205
  @mixin euiFormControlReadOnlyStyle {
212
- // sass-lint:disable-block no-vendor-prefixes
213
206
  cursor: default;
214
207
  color: $euiTextColor;
215
208
  -webkit-text-fill-color: $euiTextColor; // Required for Safari
@@ -219,7 +212,6 @@
219
212
  box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
220
213
  }
221
214
 
222
-
223
215
  // 2. Override invalid state with focus state.
224
216
 
225
217
  @mixin euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: true) {
@@ -249,7 +241,6 @@
249
241
  }
250
242
 
251
243
  // Needs to be set for autofill
252
- // sass-lint:disable-block no-vendor-prefixes
253
244
  &:-webkit-autofill {
254
245
  -webkit-text-fill-color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
255
246
 
@@ -257,7 +248,6 @@
257
248
  color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
258
249
  }
259
250
  }
260
-
261
251
  }
262
252
 
263
253
  @if ($includeSizes) {
@@ -266,7 +256,7 @@
266
256
  }
267
257
 
268
258
  &--inGroup {
269
- // sass-lint:disable-block no-important
259
+ // stylelint-disable-next-line declaration-no-important
270
260
  box-shadow: none !important;
271
261
  border-radius: 0;
272
262
  }
@@ -313,12 +303,11 @@
313
303
  } @else if $type == 'square' {
314
304
  border-radius: $euiCheckboxBorderRadius;
315
305
  }
316
- // sass-lint:disable-block indentation
306
+
317
307
  transition: background-color $euiAnimSpeedFast ease-in,
318
- border-color $euiAnimSpeedFast ease-in;
308
+ border-color $euiAnimSpeedFast ease-in; // stylelint-disable-line indentation
319
309
  }
320
310
 
321
-
322
311
  @mixin euiCustomControlSelected($type: null) {
323
312
  border-color: $euiColorPrimary;
324
313
  background-color: $euiColorPrimary;
@@ -363,7 +352,7 @@
363
352
 
364
353
  @mixin euiHiddenSelectableInput {
365
354
  position: absolute;
366
- // sass-lint:disable no-important
355
+ // stylelint-disable-next-line declaration-no-important
367
356
  opacity: 0 !important; // Make sure it's still hidden when :disabled
368
357
  width: 100%;
369
358
  height: 100%;
@@ -1,9 +1,9 @@
1
1
  @import '../variables/header';
2
2
 
3
3
  @mixin euiHeaderAffordForFixed($headerHeight: $euiHeaderHeightCompensation) {
4
- // The `&` allows for grouping inside another specific body class.
4
+ // The `@at-root #{&}` allows for grouping alongside another specific body class.
5
5
  // When not applied inside of another selector, it simply renders with the single class
6
- &.euiBody--headerIsFixed {
6
+ @at-root #{&}.euiBody--headerIsFixed {
7
7
  padding-top: $headerHeight;
8
8
 
9
9
  // When the EuiHeader is fixed, we need to account for it in the position of the flyout
@@ -4,14 +4,13 @@
4
4
  @mixin euiScrollBar($thumbColor: $euiColorDarkShade, $trackBackgroundColor: transparent, $size: 'thin') {
5
5
  // Firefox's scrollbar coloring cascades, but the sizing does not,
6
6
  // so it's being added to this mixin for allowing support wherever custom scrollbars are
7
- // sass-lint:disable-block no-misspelled-properties
8
7
  scrollbar-color: transparentize($thumbColor, .5) $trackBackgroundColor; // Firefox support
9
8
 
10
9
  @if ($size == 'thin') {
11
10
  scrollbar-width: thin;
12
11
  }
13
12
 
14
- // sass-lint:disable-block no-vendor-prefixes
13
+ // stylelint-disable selector-no-vendor-prefix
15
14
  &::-webkit-scrollbar {
16
15
  width: $euiScrollBar;
17
16
  height: $euiScrollBar;
@@ -1,6 +1,6 @@
1
1
  // For using icons as background images (data-uri)
2
2
  @mixin euiIconBackground($type, $color: $euiColorEmptyShade) {
3
- // sass-lint:disable-block quotes
3
+ // stylelint-disable string-quotes
4
4
  @if variable-exists(type) == false {
5
5
  @error 'A $type:string must be provided to @mixin euiIconBackground().';
6
6
  } @else if type-of($color) != color {
@@ -1,6 +1,3 @@
1
- // Prefixes are unique in this file
2
- // sass-lint:disable no-vendor-prefixes
3
-
4
1
  /*
5
2
  The CSS in JS version of this file lives in:
6
3
  - src/components/form/range/range.styles.ts
@@ -31,10 +28,10 @@ The following files still use the Sass version:
31
28
  }
32
29
 
33
30
  @mixin euiRangeThumbBoxShadow {
34
- // sass-lint:disable-block no-color-literals
35
- box-shadow: 0 0 0 1px $euiRangeThumbBorderColor,
36
- 0 2px 2px -1px rgba($euiShadowColor, .2),
37
- 0 1px 5px -2px rgba($euiShadowColor, .2);
31
+ box-shadow:
32
+ 0 0 0 1px $euiRangeThumbBorderColor,
33
+ 0 2px 2px -1px rgba($euiShadowColor, .2),
34
+ 0 1px 5px -2px rgba($euiShadowColor, .2);
38
35
  }
39
36
 
40
37
  @mixin euiRangeThumbFocusBoxShadow {
@@ -58,7 +55,6 @@ The following files still use the Sass version:
58
55
  &::-ms-thumb { @content; }
59
56
  }
60
57
 
61
-
62
58
  @mixin euiRangeThumbFocus {
63
59
  @include euiRangeThumbBorder;
64
60
  @include euiRangeThumbFocusBoxShadow;
@@ -1,8 +1,3 @@
1
- // This file makes use of double quotes to format errors with nested single quotes
2
- // The indentation linting freaks out on comments above else statements and is disabled.
3
-
4
- // sass-lint:disable quotes, no-warn, indentation
5
-
6
1
  // A sem-complicated mixin for breakpoints, that takes any number of
7
2
  // named breakpoints that exists in $euiBreakpoints.
8
3
 
@@ -23,7 +18,7 @@
23
18
  @media only screen and (min-width: $minSize) {
24
19
  @content;
25
20
  }
26
- // If it's not the last item, add a max-width
21
+ // If it's not the last item, add a max-width
27
22
  } @else {
28
23
 
29
24
  // Set the max size to the value of the next size (-1px as to not overlap)
@@ -34,14 +29,14 @@
34
29
  @media only screen and (max-width: $maxSize) {
35
30
  @content;
36
31
  }
37
- // Otherwise it should have a min and max width
32
+ // Otherwise it should have a min and max width
38
33
  } @else {
39
34
  @media only screen and (min-width: $minSize) and (max-width: $maxSize) {
40
35
  @content;
41
36
  }
42
37
  }
43
38
  }
44
- // If it's not a known breakpoint, throw a warning
39
+ // If it's not a known breakpoint, throw a warning
45
40
  } @else {
46
41
  @warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints. Accepted values are '#{$euiBreakpointKeys}'";
47
42
  }
@@ -1,8 +1,3 @@
1
- // This file uses RGBA literal values responsibly
2
- // This file uses off-pattern indentation to be more readable
3
-
4
- // sass-lint:disable no-color-literals, no-color-keywords, indentation, quotes
5
-
6
1
  @function shadowOpacity($opacity) {
7
2
  @if (lightness($euiTextColor) < 50) {
8
3
  @return $opacity * 1;
@@ -76,15 +71,16 @@
76
71
  0 23px 35px rgba($color, shadowOpacity(.05));
77
72
  }
78
73
 
74
+ // stylelint-disable color-named
79
75
  @mixin euiOverflowShadow($direction: 'y', $side: 'both') {
80
76
  $hideHeight: $euiScrollBarCornerThin * 1.25;
81
77
  $gradient: null;
82
78
  $gradientStart:
83
- transparentize(red, .9) 0%,
84
- transparentize(red, 0) $hideHeight;
79
+ transparentize(red, .9) 0%,
80
+ transparentize(red, 0) $hideHeight;
85
81
  $gradientEnd:
86
- transparentize(red, 0) calc(100% - #{$hideHeight}),
87
- transparentize(red, .9) 100%;
82
+ transparentize(red, 0) calc(100% - #{$hideHeight}),
83
+ transparentize(red, .9) 100%;
88
84
  @if ($side == 'both' or $side == 'start' or $side == 'end') {
89
85
  @if ($side == 'both') {
90
86
  $gradient: $gradientStart, $gradientEnd;