@elastic/eui 71.0.0 → 72.0.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 (270) hide show
  1. package/README.md +0 -7
  2. package/dist/eui_theme_dark.css +7747 -5854
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +7737 -5844
  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/auto_refresh/refresh_interval.js +3 -1
  8. package/es/components/date_picker/date_picker.a11y.js +83 -0
  9. package/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
  10. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
  11. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +160 -173
  12. package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
  13. package/es/components/date_picker/super_date_picker/super_date_picker.js +16 -0
  14. package/es/components/delay_hide/delay_hide.a11y.js +106 -0
  15. package/es/components/delay_render/delay_render.a11y.js +106 -0
  16. package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  17. package/es/components/error_boundary/error_boundary.a11y.js +67 -0
  18. package/es/components/error_boundary/error_boundary.js +45 -27
  19. package/es/components/expression/expression.a11y.js +254 -0
  20. package/es/components/filter_group/filter_group.a11y.js +281 -0
  21. package/es/components/focus_trap/focus_trap.a11y.js +131 -0
  22. package/es/components/form/file_picker/file_picker.js +1 -0
  23. package/es/components/header/header.a11y.js +374 -0
  24. package/es/components/icon/icon_ML.a11y.js +33 -0
  25. package/es/components/icon/icon_apps.a11y.js +33 -0
  26. package/es/components/icon/icon_editor.a11y.js +33 -0
  27. package/es/components/icon/icon_elastic.a11y.js +33 -0
  28. package/es/components/icon/icon_glyphs.a11y.js +33 -0
  29. package/es/components/icon/icon_tokens.a11y.js +33 -0
  30. package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
  31. package/es/components/page/page_side_bar/page_side_bar.js +3 -0
  32. package/es/components/page/page_template.js +1 -15
  33. package/es/components/selectable/selectable.js +4 -3
  34. package/es/components/selectable/selectable_list/selectable_list.js +17 -5
  35. package/es/components/tabs/tab.js +7 -17
  36. package/es/components/tabs/tabbed_content/tabbed_content.js +0 -16
  37. package/es/components/tabs/tabs.js +7 -11
  38. package/es/components/tabs/tabs_context.js +13 -0
  39. package/eui.d.ts +60 -43
  40. package/i18ntokens.json +34 -18
  41. package/lib/components/datagrid/data_grid.a11y.js +255 -0
  42. package/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
  43. package/lib/components/date_picker/date_picker.a11y.js +89 -0
  44. package/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
  45. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
  46. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +155 -168
  47. package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
  48. package/lib/components/date_picker/super_date_picker/super_date_picker.js +16 -0
  49. package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  50. package/lib/components/delay_render/delay_render.a11y.js +111 -0
  51. package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  52. package/lib/components/error_boundary/error_boundary.a11y.js +75 -0
  53. package/lib/components/error_boundary/error_boundary.js +49 -29
  54. package/lib/components/expression/expression.a11y.js +262 -0
  55. package/lib/components/filter_group/filter_group.a11y.js +287 -0
  56. package/lib/components/focus_trap/focus_trap.a11y.js +140 -0
  57. package/lib/components/form/file_picker/file_picker.js +1 -0
  58. package/lib/components/header/header.a11y.js +385 -0
  59. package/lib/components/icon/icon_ML.a11y.js +40 -0
  60. package/lib/components/icon/icon_apps.a11y.js +40 -0
  61. package/lib/components/icon/icon_editor.a11y.js +40 -0
  62. package/lib/components/icon/icon_elastic.a11y.js +40 -0
  63. package/lib/components/icon/icon_glyphs.a11y.js +40 -0
  64. package/lib/components/icon/icon_tokens.a11y.js +40 -0
  65. package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
  66. package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  67. package/lib/components/page/page_template.js +1 -15
  68. package/lib/components/selectable/selectable.js +4 -3
  69. package/lib/components/selectable/selectable_list/selectable_list.js +17 -5
  70. package/lib/components/tabs/tab.js +14 -17
  71. package/lib/components/tabs/tabbed_content/tabbed_content.js +0 -16
  72. package/lib/components/tabs/tabs.js +8 -14
  73. package/lib/components/tabs/tabs_context.js +23 -0
  74. package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
  75. package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
  76. package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
  77. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
  78. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
  79. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +145 -169
  80. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
  81. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +2 -0
  82. package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
  83. package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
  84. package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  85. package/optimize/es/components/error_boundary/error_boundary.a11y.js +67 -0
  86. package/optimize/es/components/error_boundary/error_boundary.js +37 -26
  87. package/optimize/es/components/expression/expression.a11y.js +243 -0
  88. package/optimize/es/components/filter_group/filter_group.a11y.js +271 -0
  89. package/optimize/es/components/focus_trap/focus_trap.a11y.js +120 -0
  90. package/optimize/es/components/form/file_picker/file_picker.js +1 -0
  91. package/optimize/es/components/header/header.a11y.js +364 -0
  92. package/optimize/es/components/icon/icon_ML.a11y.js +33 -0
  93. package/optimize/es/components/icon/icon_apps.a11y.js +33 -0
  94. package/optimize/es/components/icon/icon_editor.a11y.js +33 -0
  95. package/optimize/es/components/icon/icon_elastic.a11y.js +33 -0
  96. package/optimize/es/components/icon/icon_glyphs.a11y.js +33 -0
  97. package/optimize/es/components/icon/icon_tokens.a11y.js +33 -0
  98. package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
  99. package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
  100. package/optimize/es/components/selectable/selectable.js +2 -2
  101. package/optimize/es/components/selectable/selectable_list/selectable_list.js +15 -4
  102. package/optimize/es/components/tabs/tab.js +7 -5
  103. package/optimize/es/components/tabs/tabs.js +7 -11
  104. package/optimize/es/components/tabs/tabs_context.js +13 -0
  105. package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
  106. package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
  107. package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
  108. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
  109. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
  110. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +146 -167
  111. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
  112. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -0
  113. package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  114. package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
  115. package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  116. package/optimize/lib/components/error_boundary/error_boundary.a11y.js +75 -0
  117. package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
  118. package/optimize/lib/components/expression/expression.a11y.js +254 -0
  119. package/optimize/lib/components/filter_group/filter_group.a11y.js +287 -0
  120. package/optimize/lib/components/focus_trap/focus_trap.a11y.js +140 -0
  121. package/optimize/lib/components/form/file_picker/file_picker.js +1 -0
  122. package/optimize/lib/components/header/header.a11y.js +385 -0
  123. package/optimize/lib/components/icon/icon_ML.a11y.js +40 -0
  124. package/optimize/lib/components/icon/icon_apps.a11y.js +40 -0
  125. package/optimize/lib/components/icon/icon_editor.a11y.js +40 -0
  126. package/optimize/lib/components/icon/icon_elastic.a11y.js +40 -0
  127. package/optimize/lib/components/icon/icon_glyphs.a11y.js +40 -0
  128. package/optimize/lib/components/icon/icon_tokens.a11y.js +40 -0
  129. package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
  130. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  131. package/optimize/lib/components/selectable/selectable.js +2 -2
  132. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +15 -4
  133. package/optimize/lib/components/tabs/tab.js +15 -5
  134. package/optimize/lib/components/tabs/tabs.js +8 -14
  135. package/optimize/lib/components/tabs/tabs_context.js +23 -0
  136. package/package.json +14 -19
  137. package/src/components/basic_table/_basic_table.scss +1 -4
  138. package/src/components/button/button_empty/_button_empty.scss +2 -4
  139. package/src/components/button/button_group/_button_group.scss +1 -1
  140. package/src/components/button/button_group/_button_group_button.scss +3 -4
  141. package/src/components/button/button_icon/_button_icon.scss +0 -3
  142. package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
  143. package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
  144. package/src/components/color_picker/_color_picker.scss +3 -2
  145. package/src/components/color_picker/_hue.scss +7 -7
  146. package/src/components/color_picker/_saturation.scss +1 -1
  147. package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
  148. package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
  149. package/src/components/combo_box/_combo_box.scss +7 -6
  150. package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
  151. package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
  152. package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
  153. package/src/components/control_bar/_variables.scss +0 -1
  154. package/src/components/datagrid/_data_grid_data_row.scss +4 -5
  155. package/src/components/datagrid/_mixins.scss +1 -1
  156. package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
  157. package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
  158. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  159. package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
  160. package/src/components/date_picker/_date_picker_range.scss +1 -1
  161. package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
  162. package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +15 -1
  163. package/src/components/drag_and_drop/_draggable.scss +3 -5
  164. package/src/components/drag_and_drop/_droppable.scss +1 -1
  165. package/src/components/empty_prompt/_empty_prompt.scss +1 -1
  166. package/src/components/filter_group/_filter_group.scss +2 -2
  167. package/src/components/filter_group/_filter_select_item.scss +0 -1
  168. package/src/components/form/checkbox/_checkbox.scss +5 -3
  169. package/src/components/form/described_form_group/_described_form_group.scss +0 -1
  170. package/src/components/form/field_password/_field_password.scss +1 -1
  171. package/src/components/form/field_search/_field_search.scss +1 -1
  172. package/src/components/form/file_picker/_file_picker.scss +15 -16
  173. package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
  174. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
  175. package/src/components/form/form_row/_form_row.scss +3 -0
  176. package/src/components/form/radio/_radio.scss +5 -3
  177. package/src/components/form/select/_select.scss +1 -1
  178. package/src/components/form/switch/_switch.scss +3 -1
  179. package/src/components/header/_mixins.scss +1 -1
  180. package/src/components/header/header_section/_header_section_item.scss +4 -4
  181. package/src/components/header/header_section/_header_section_item_button.scss +0 -1
  182. package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
  183. package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
  184. package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
  185. package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
  186. package/src/components/markdown_editor/_markdown_format.scss +4 -2
  187. package/src/components/notification/_notification_event.scss +2 -2
  188. package/src/components/page/page_content/_page_content_body.scss +0 -1
  189. package/src/components/page/page_content/_page_content_header_section.scss +0 -1
  190. package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
  191. package/src/components/panel/split_panel/_split_panel.scss +2 -2
  192. package/src/components/resizable_container/_resizable_button.scss +31 -31
  193. package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
  194. package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
  195. package/src/components/side_nav/_mixins.scss +1 -1
  196. package/src/components/side_nav/_side_nav.scss +2 -1
  197. package/src/components/side_nav/_side_nav_item.scss +2 -3
  198. package/src/components/steps/_steps.scss +2 -1
  199. package/src/components/suggest/_suggest_input.scss +1 -1
  200. package/src/components/suggest/_suggest_item.scss +4 -3
  201. package/src/components/table/_responsive.scss +5 -3
  202. package/src/components/table/_table.scss +2 -4
  203. package/src/components/table/mobile/_mobile.scss +0 -2
  204. package/src/components/tree_view/tree_view.scss +2 -2
  205. package/src/global_styling/mixins/_form.scss +7 -18
  206. package/src/global_styling/mixins/_header.scss +2 -2
  207. package/src/global_styling/mixins/_helpers.scss +1 -2
  208. package/src/global_styling/mixins/_icons.scss +1 -1
  209. package/src/global_styling/mixins/_range.scss +4 -8
  210. package/src/global_styling/mixins/_responsive.scss +3 -8
  211. package/src/global_styling/mixins/_shadow.scss +5 -9
  212. package/src/global_styling/mixins/_states.scss +2 -2
  213. package/src/global_styling/mixins/_typography.scss +16 -19
  214. package/src/global_styling/variables/_colors_vis.scss +1 -1
  215. package/src/global_styling/variables/_typography.scss +1 -3
  216. package/src/themes/amsterdam/_colors_dark.scss +2 -1
  217. package/src/themes/amsterdam/_colors_light.scss +2 -0
  218. package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
  219. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
  220. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
  221. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
  222. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
  223. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
  224. package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
  225. package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
  226. package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
  227. package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
  228. package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
  229. package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
  230. package/src/themes/amsterdam/overrides/_header.scss +2 -2
  231. package/src/themes/amsterdam/overrides/_hue.scss +6 -6
  232. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
  233. package/src/themes/amsterdam/overrides/_steps.scss +1 -2
  234. package/src/themes/legacy/_colors_dark.scss +2 -1
  235. package/src/themes/legacy/_colors_light.scss +2 -0
  236. package/src/themes/legacy/reset/_reset.scss +8 -7
  237. package/test-env/components/datagrid/data_grid.a11y.js +248 -0
  238. package/test-env/components/date_picker/auto_refresh/refresh_interval.js +3 -1
  239. package/test-env/components/date_picker/date_picker.a11y.js +87 -0
  240. package/test-env/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
  241. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
  242. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +153 -166
  243. package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
  244. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +16 -0
  245. package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
  246. package/test-env/components/delay_render/delay_render.a11y.js +111 -0
  247. package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
  248. package/test-env/components/error_boundary/error_boundary.a11y.js +75 -0
  249. package/test-env/components/error_boundary/error_boundary.js +48 -28
  250. package/test-env/components/expression/expression.a11y.js +254 -0
  251. package/test-env/components/filter_group/filter_group.a11y.js +287 -0
  252. package/test-env/components/focus_trap/focus_trap.a11y.js +140 -0
  253. package/test-env/components/form/file_picker/file_picker.js +1 -0
  254. package/test-env/components/header/header.a11y.js +385 -0
  255. package/test-env/components/icon/icon_ML.a11y.js +40 -0
  256. package/test-env/components/icon/icon_apps.a11y.js +40 -0
  257. package/test-env/components/icon/icon_editor.a11y.js +40 -0
  258. package/test-env/components/icon/icon_elastic.a11y.js +40 -0
  259. package/test-env/components/icon/icon_glyphs.a11y.js +40 -0
  260. package/test-env/components/icon/icon_tokens.a11y.js +40 -0
  261. package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
  262. package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
  263. package/test-env/components/page/page_template.js +1 -15
  264. package/test-env/components/selectable/selectable.js +4 -3
  265. package/test-env/components/selectable/selectable_list/selectable_list.js +17 -5
  266. package/test-env/components/tabs/tab.js +15 -17
  267. package/test-env/components/tabs/tabbed_content/tabbed_content.js +0 -16
  268. package/test-env/components/tabs/tabs.js +8 -14
  269. package/test-env/components/tabs/tabs_context.js +23 -0
  270. package/scripts/postinstall.js +0 -9
@@ -100,16 +100,16 @@
100
100
  .euiDataGridRowCell__popover {
101
101
  @include euiScrollBar;
102
102
  overflow: auto;
103
- // sass-lint:disable-block no-important
103
+ // stylelint-disable declaration-no-important
104
104
  max-width: 400px !important;
105
105
  max-height: 400px !important;
106
106
  z-index: $euiZDataGridCellPopover !important;
107
+ // stylelint-enable declaration-no-important
107
108
  // Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
108
109
  // (see https://github.com/elastic/eui/issues/6151)
109
110
  // Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
110
111
  // since we don't use the popover arrow in any case for cell popovers
111
112
  filter: none;
112
- // sass-lint:disable-block mixins-before-declarations
113
113
  @include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
114
114
  }
115
115
 
@@ -156,7 +156,7 @@
156
156
  // Have to take out the generic transition so it is instaneous on focus
157
157
  transition: none;
158
158
  // Disable filled button box-shadows on legacy theme - they're unnecessary when this small in a datagrid
159
- box-shadow: none !important; // sass-lint:disable-line no-important
159
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
160
160
  // Remove filled button borders on legacy theme - this way we don't need to animate the border
161
161
  border: none;
162
162
  }
@@ -184,8 +184,7 @@
184
184
  // Border alternates
185
185
  @include euiDataGridStyles(bordersNone) {
186
186
  @include euiDataGridRowCell {
187
- // sass-lint:disable-block no-important
188
- border-color: transparent !important;
187
+ border-color: transparent !important; // stylelint-disable-line declaration-no-important
189
188
  }
190
189
  }
191
190
 
@@ -67,7 +67,7 @@ $euiDataGridStyles: (
67
67
  border: $euiBorderWidthThick solid $euiFocusRingColor;
68
68
  border-radius: $euiBorderRadiusSmall;
69
69
  z-index: 2; // We want this to be on top of all the content
70
- pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
70
+ pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
71
71
  }
72
72
  }
73
73
 
@@ -18,9 +18,10 @@
18
18
  @include euiDataGridStyles(footerOverline) {
19
19
  @include euiDataGridFooterCell {
20
20
  border-top: $euiBorderThick;
21
- // sass-lint:disable-block no-important
21
+ // stylelint-disable declaration-no-important
22
22
  border-top-color: $euiTextColor !important;
23
23
  background: $euiColorEmptyShade !important;
24
+ // stylelint-enable declaration-no-important
24
25
  }
25
26
  }
26
27
 
@@ -1,4 +1,4 @@
1
- // Resizer straddles the column border and is an invisible hitzone for dragging
1
+ // Resizer straddles the column border and is an invisible hitzone for dragging
2
2
  .euiDataGridColumnResizer {
3
3
  position: absolute;
4
4
  top: 0;
@@ -10,7 +10,7 @@
10
10
  z-index: 2; // Needs to be a level above the cells themselves in case of overlaps
11
11
 
12
12
  // Center a vertical line within the button above
13
- &:after {
13
+ &::after {
14
14
  content: '';
15
15
  position: absolute;
16
16
  left: $euiSizeS - 1px;
@@ -35,12 +35,11 @@
35
35
  // we don't use negative positioning and the borders from the cell will match the container.
36
36
  @include euiDataGridHeaderCell {
37
37
  &:last-child {
38
-
39
38
  .euiDataGridColumnResizer {
40
39
  right: 0;
41
40
  width: $euiSize / 2;
42
41
 
43
- &:after {
42
+ &::after {
44
43
  left: auto;
45
44
  right: 0;
46
45
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
 
75
75
  .euiDataGridHeader__action--selected {
76
- // sass-lint:disable-block no-important
76
+ // stylelint-disable-next-line declaration-no-important
77
77
  font-weight: $euiFontWeightBold !important;
78
78
  }
79
79
 
@@ -1,5 +1,4 @@
1
1
  .euiDataGridColumnSorting__item {
2
-
3
2
  &-isDragging {
4
3
  @include euiBottomShadow;
5
4
  background: $euiColorEmptyShade;
@@ -35,8 +34,8 @@
35
34
  border: none;
36
35
 
37
36
  // Hack to overwrite some nested, unreachable component code with button groups
38
- // sass-lint:disable-block no-important
39
37
  button {
38
+ // stylelint-disable-next-line declaration-no-important
40
39
  font-size: $euiFontSizeXS !important;
41
40
  }
42
41
  }
@@ -18,7 +18,7 @@
18
18
  .euiFieldText.euiDatePicker {
19
19
  height: $euiFormControlLayoutGroupInputHeight;
20
20
  // including all states
21
- box-shadow: none !important; // sass-lint:disable-line no-important
21
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
22
22
  text-align: center;
23
23
  }
24
24
 
@@ -1,5 +1,3 @@
1
- // sass-lint:disable-block function-name-format
2
-
3
1
  .euiSuperDatePicker__flexWrapper {
4
2
  max-width: 100%;
5
3
  // Set a sensible min-width for when width is auto
@@ -34,10 +32,9 @@
34
32
  width: $euiSuperDatePickerWidth;
35
33
  }
36
34
 
37
-
38
35
  .euiSuperDatePicker {
39
- // sass-lint:disable-block no-important
40
36
  // Allow it to always grow to fit the container since the default form max width is too small
37
+ // stylelint-disable-next-line declaration-no-important
41
38
  max-width: 100% !important;
42
39
 
43
40
  > .euiFormControlLayout__childrenWrapper {
@@ -1,6 +1,19 @@
1
1
  .euiQuickSelectPopover__content {
2
2
  width: $euiFormMaxWidth;
3
3
  max-width: 100%;
4
+
5
+ .euiQuickSelectPopover__panel {
6
+ &:not(:first-child) {
7
+ border-top: $euiBorderThin;
8
+ padding-top: $euiSizeM;
9
+ margin-top: $euiSizeM;
10
+ }
11
+
12
+ .euiQuickSelectPopover__panelTitle {
13
+ float: left;
14
+ margin-bottom: $euiSizeM;
15
+ }
16
+ }
4
17
  }
5
18
 
6
19
  .euiQuickSelectPopover__section {
@@ -9,11 +22,12 @@
9
22
  overflow: hidden;
10
23
  overflow-y: auto;
11
24
  margin: $euiSizeS 0 0;
25
+ clear: both;
12
26
  }
13
27
 
14
- // sass-lint:disable no-important
15
28
  .euiQuickSelectPopover__buttonText {
16
29
  // Override specificity from universal and sibling selectors
30
+ // stylelint-disable-next-line declaration-no-important
17
31
  margin-right: $euiSizeXS !important;
18
32
  }
19
33
 
@@ -1,19 +1,17 @@
1
- // sass-lint:disable no-empty-rulesets
2
-
3
1
  .euiDraggable {
4
2
  &.euiDraggable--isDragging {
5
3
  // Overriding inline styles on JS-inserted HTML elements
6
- z-index: $euiZLevel9 !important; // sass-lint:disable-line no-important
4
+ z-index: $euiZLevel9 !important; // stylelint-disable-line declaration-no-important
7
5
  }
8
6
 
9
7
  &.euiDraggable--hasClone:not(.euiDraggable--isDragging) {
10
8
  // Overriding inline styles on JS-inserted HTML elements
11
- transform: none !important; // sass-lint:disable-line no-important
9
+ transform: none !important; // stylelint-disable-line declaration-no-important
12
10
  }
13
11
 
14
12
  &.euiDraggable--withoutDropAnimation {
15
13
  // Overriding inline styles on JS-inserted HTML elements
16
- transition-duration: .001s !important; // sass-lint:disable-line no-important
14
+ transition-duration: .001s !important; // stylelint-disable-line declaration-no-important
17
15
  }
18
16
 
19
17
  &:focus > .euiDraggable__item,
@@ -13,7 +13,7 @@
13
13
  .euiDroppable__placeholder {
14
14
  &.euiDroppable__placeholder--isHidden {
15
15
  // Overriding inline styles on JS-inserted HTML elements
16
- display: none !important; // sass-lint:disable-line no-important
16
+ display: none !important; // stylelint-disable-line declaration-no-important
17
17
  }
18
18
  }
19
19
  }
@@ -121,7 +121,7 @@ $euiEmptyPromptContentMaxWidth: 36em;
121
121
 
122
122
  &.euiEmptyPrompt--horizontal {
123
123
  .euiEmptyPrompt__main {
124
- gap: $amount; // sass-lint:disable-line no-misspelled-properties
124
+ gap: $amount;
125
125
  }
126
126
  }
127
127
  }
@@ -10,7 +10,7 @@
10
10
  min-width: $euiSize * 3;
11
11
  }
12
12
 
13
- > .euiFilterButton--noGrow {
13
+ > .euiFilterButton--noGrow {
14
14
  flex-grow: 0;
15
15
  }
16
16
 
@@ -56,7 +56,7 @@
56
56
  display: flex;
57
57
 
58
58
  .euiFilterButton {
59
- // sass-lint:disable-block no-important
59
+ // stylelint-disable-next-line declaration-no-important
60
60
  flex-grow: 1 !important;
61
61
  }
62
62
  }
@@ -22,7 +22,6 @@
22
22
  @include euiTextTruncate;
23
23
  }
24
24
 
25
-
26
25
  .euiFilterSelect__items {
27
26
  @include euiScrollBar;
28
27
 
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  /**
2
5
  * 1. Float above the visual radio and match its dimension, so that when users try to click it
3
6
  * they actually click this input.
@@ -48,12 +51,11 @@
48
51
  }
49
52
 
50
53
  &[disabled] {
51
- // sass-lint:disable-block no-important
52
- cursor: not-allowed !important;
54
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
53
55
 
54
56
  ~ .euiCheckbox__label {
55
57
  color: $euiFormControlDisabledColor;
56
- cursor: not-allowed !important;
58
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
57
59
  }
58
60
 
59
61
  + .euiCheckbox__square {
@@ -30,6 +30,5 @@
30
30
  }
31
31
 
32
32
  .euiDescribedFormGroup__descriptionColumn {
33
- // sass-lint:disable-block function-name-format
34
33
  min-width: MIN(20rem, 50%);
35
34
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
 
10
- // sass-lint:disable-block no-vendor-prefixes
10
+ // stylelint-disable selector-no-vendor-prefix
11
11
  // Only remove Edge's internal reveal button if we're providing a custom one
12
12
  .euiFieldPassword--withToggle::-ms-reveal {
13
13
  display: none;
@@ -2,13 +2,13 @@
2
2
  * 1. Fix for Safari to ensure that it renders like a normal text input
3
3
  * and doesn't add extra spacing around text
4
4
  */
5
+ // stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
5
6
 
6
7
  .euiFieldSearch {
7
8
  @include euiFormControlStyle;
8
9
  @include euiFormControlWithIcon($isIconOptional: false);
9
10
  @include euiFormControlIsLoading;
10
11
 
11
- // sass-lint:disable-block no-vendor-prefixes
12
12
  -webkit-appearance: textfield; /* 1 */
13
13
 
14
14
  &::-webkit-search-decoration,
@@ -64,31 +64,28 @@
64
64
  /**
65
65
  * 1. Don't block the user from dropping files onto the filepicker.
66
66
  * 2. Ensure space for import icon, loading spinner, and clear button (only if it has files)
67
- * 3. Delay focus gradient or else it will only partially transition while file chooser opens
68
67
  * 4. Static height so that it doesn't shift its surrounding contents around
69
68
  */
70
69
  .euiFilePicker__prompt {
71
- @include euiFormControlDefaultShadow;
72
70
  @include euiFormControlWithIcon; /* 2 */
73
71
  height: $euiFormControlHeight;
74
72
  padding-top: $euiFormControlPadding;
75
73
  padding-right: $euiFormControlPadding;
76
74
  padding-bottom: $euiFormControlPadding;
77
75
  pointer-events: none; /* 1 */
76
+ border: $euiBorderWidthThick dashed $euiColorLightShade;
78
77
  border-radius: $euiFormControlBorderRadius;
79
78
 
80
- // sass-lint:disable-block indentation
81
79
  transition:
82
- box-shadow $euiAnimSpeedFast ease-in,
83
- background-color $euiAnimSpeedFast ease-in,
84
- background-image $euiAnimSpeedFast ease-in,
85
- background-size $euiAnimSpeedFast ease-in $euiAnimSpeedFast; /* 3 */
80
+ border-color $euiAnimSpeedFast ease-in,
81
+ background-color $euiAnimSpeedFast ease-in;
86
82
 
87
83
  .euiFilePicker--compressed & {
88
84
  @include euiFormControlStyleCompressed($includeStates: false);
89
85
  @include euiFormControlWithIcon($compressed: true); /* 2 */
90
86
  height: $euiFormControlCompressedHeight;
91
87
  border-radius: $euiFormControlCompressedBorderRadius;
88
+ box-shadow: none;
92
89
  }
93
90
 
94
91
  .euiFilePicker--large & {
@@ -105,7 +102,7 @@
105
102
  }
106
103
 
107
104
  .euiFilePicker-isInvalid & {
108
- @include euiFormControlInvalidStyle;
105
+ border: $euiBorderWidthThick dashed $euiColorDanger;
109
106
  }
110
107
  }
111
108
 
@@ -114,9 +111,14 @@
114
111
  @include euiTextTruncate;
115
112
  line-height: $euiSize;
116
113
 
117
- // make normal sized prompt look like placeholder
114
+ // Make normal sized prompt stand out a bit more - on the large size we don't need this as it's already identifiable
118
115
  .euiFilePicker:not(.euiFilePicker--large):not(.euiFilePicker-hasFiles) & {
119
- color: $euiColorMediumShade;
116
+ color: $euiColorPrimaryText;
117
+ }
118
+
119
+ // Offset/center prompt text for non-large file-pickers
120
+ .euiFilePicker:not(.euiFilePicker--large) & {
121
+ margin-top: $euiSizeXS / -2;
120
122
  }
121
123
  }
122
124
 
@@ -151,16 +153,13 @@
151
153
  // Focus
152
154
  .euiFilePicker__showDrop .euiFilePicker__prompt,
153
155
  .euiFilePicker__input:focus + .euiFilePicker__prompt {
154
- @include euiFormControlFocusStyle;
155
-
156
- .euiFilePicker--compressed & {
157
- @include euiFormControlFocusStyle($borderOnly: true);
158
- }
156
+ border-color: $euiColorPrimary;
159
157
  }
160
158
 
161
159
  // Disabled
162
160
  .euiFilePicker__input:disabled + .euiFilePicker__prompt {
163
161
  @include euiFormControlDisabledStyle;
162
+ box-shadow: none;
164
163
  }
165
164
 
166
165
  // Make space for the icons on the right
@@ -178,7 +177,7 @@
178
177
 
179
178
  // Large styles only
180
179
  .euiFilePicker--large {
181
- // sass-lint:disable-block nesting-depth
180
+ // stylelint-disable max-nesting-depth
182
181
  // Hover and focus
183
182
  .euiFilePicker__input:hover:not(:disabled),
184
183
  .euiFilePicker__input:focus {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiFormControlLayout {
2
5
  // Let the height expand as needed
3
6
  @include euiFormControlSize($includeAlternates: true);
@@ -71,16 +74,15 @@
71
74
  background-color: $euiFormInputGroupLabelBackground;
72
75
  }
73
76
 
74
-
75
77
  &.euiButtonIcon,
76
78
  &.euiButtonEmpty,
77
79
  .euiButtonIcon,
78
80
  .euiButtonEmpty {
79
- transform: none !important;
81
+ transform: none !important; // stylelint-disable-line declaration-no-important
80
82
 
81
83
  // Undo sizing from icons inside buttons
82
84
  .euiIcon {
83
- background: none !important;
85
+ background: none !important; // stylelint-disable-line declaration-no-important
84
86
  padding: 0;
85
87
  width: $euiSize;
86
88
  }
@@ -115,7 +117,7 @@
115
117
  max-width: 50%; // Make sure max-width only applies to the outer most append/prepend element
116
118
  }
117
119
 
118
- // sass-lint:disable-block no-important
120
+ // stylelint-disable declaration-no-important
119
121
  // This is the only way to target specific components to override styling
120
122
 
121
123
  // TEXT
@@ -141,7 +143,6 @@
141
143
  }
142
144
  }
143
145
 
144
- //
145
146
  // BORDERS on buttons only
146
147
 
147
148
  .euiButtonEmpty {
@@ -156,7 +157,6 @@
156
157
  border-left: $euiFormInputGroupBorder;
157
158
  }
158
159
 
159
- //
160
160
  // Compressed alterations
161
161
 
162
162
  &.euiFormControlLayout--compressed {
@@ -184,7 +184,6 @@
184
184
  }
185
185
  }
186
186
 
187
- //
188
187
  // ReadOnly alterations
189
188
  &.euiFormControlLayout--readOnly {
190
189
  cursor: default;
@@ -22,6 +22,7 @@
22
22
 
23
23
  .euiFormControlLayoutDelimited__input {
24
24
  height: 100%;
25
+ max-width: none;
25
26
  padding-left: $euiFormControlCompressedPadding;
26
27
  padding-right: $euiFormControlCompressedPadding;
27
28
  }
@@ -72,20 +73,17 @@
72
73
  }
73
74
 
74
75
  .euiFormControlLayoutDelimited__input {
75
- // sass-lint:disable-block no-important
76
+ // stylelint-disable declaration-no-important
76
77
  box-shadow: none !important;
77
78
  border-radius: 0 !important;
79
+ // stylelint-enable declaration-no-important
78
80
  text-align: center;
79
81
  height: 100%;
80
82
  min-width: 0; // Fixes FF
81
-
82
- .euiFormControlLayoutDelimited[class*='--compressed'] & {
83
- max-width: none;
84
- }
85
83
  }
86
84
 
87
85
  .euiFormControlLayoutDelimited__delimeter {
88
- // sass-lint:disable-block no-important
86
+ // stylelint-disable-next-line declaration-no-important
89
87
  line-height: 1 !important; // Override EuiText line-height
90
88
  flex: 0 0 auto;
91
89
  padding-left: $euiFormControlPadding / 2;
@@ -61,6 +61,8 @@
61
61
  margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
62
62
  }
63
63
 
64
+ // TODO: Address nesting during Emotion conversion, if possible
65
+ // stylelint-disable max-nesting-depth
64
66
  &.euiFormRow--hasSwitch {
65
67
  .euiFormRow__labelWrapper {
66
68
  line-height: $euiSwitchHeight - 1px; // The 1px less helps the alignment of the text baseline
@@ -80,6 +82,7 @@
80
82
  margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
81
83
  }
82
84
  }
85
+ // stylelint-enable max-nesting-depth
83
86
  }
84
87
 
85
88
  .euiFormRow__fieldWrapperDisplayOnly {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  /**
2
5
  * 1. Float above the visual radio and match its dimension, so that when users try to click it
3
6
  * they actually click this input.
@@ -43,12 +46,11 @@
43
46
  }
44
47
 
45
48
  &[disabled] {
46
- //sass-lint:disable no-important
47
- cursor: not-allowed !important;
49
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
48
50
 
49
51
  ~ .euiRadio__label {
50
52
  color: $euiFormControlDisabledColor;
51
- cursor: not-allowed !important;
53
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
52
54
  }
53
55
 
54
56
  + .euiRadio__circle {
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  // Turn off linter for some MS specific bits.
28
- // sass-lint:disable no-vendor-prefixes
28
+ // stylelint-disable selector-no-vendor-prefix
29
29
  &::-ms-expand {
30
30
  display: none;
31
31
  }
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiSwitch {
2
5
  position: relative;
3
6
  display: inline-flex;
@@ -181,7 +184,6 @@
181
184
  // Compressed and mini switches have some style overlap
182
185
  &.euiSwitch--compressed,
183
186
  &.euiSwitch--mini {
184
-
185
187
  .euiSwitch__button[aria-checked='false'] {
186
188
  .euiSwitch__thumb {
187
189
  left: 1px;
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .euiHeaderSectionItem {
16
- &:after {
16
+ &::after {
17
17
  background: lightOrDarkTheme($euiColorDarkShade, $euiColorLightestShade);
18
18
  }
19
19
  }
@@ -5,7 +5,7 @@
5
5
  display: flex;
6
6
  align-items: center;
7
7
 
8
- &:after {
8
+ &::after {
9
9
  position: absolute;
10
10
  content: '';
11
11
  top: $euiSize;
@@ -16,14 +16,14 @@
16
16
  }
17
17
 
18
18
  .euiHeaderSectionItem--borderLeft {
19
- &:after {
19
+ &::after {
20
20
  left: 0;
21
21
  width: 1px;
22
22
  }
23
23
  }
24
24
 
25
25
  .euiHeaderSectionItem--borderRight {
26
- &:after {
26
+ &::after {
27
27
  width: 1px;
28
28
  left: auto;
29
29
  right: 0;
@@ -37,7 +37,7 @@
37
37
 
38
38
  .euiHeaderSectionItem--borderLeft,
39
39
  .euiHeaderSectionItem--borderRight {
40
- &:after {
40
+ &::after {
41
41
  display: none;
42
42
  }
43
43
  }
@@ -22,7 +22,6 @@
22
22
  }
23
23
  }
24
24
 
25
-
26
25
  .euiHeaderSectionItemButton__content {
27
26
  // This element is a span and we're changing the display because inline elements can’t take a transform
28
27
  display: inline-block;
@@ -4,8 +4,6 @@
4
4
  */
5
5
  .euiKeyPadMenuItem {
6
6
  @include euiFont; /* 1 */
7
- // Disable indentation for transition legibility
8
- // sass-lint:disable-block indentation
9
7
  display: block;
10
8
  padding: $euiSizeXS;
11
9
  height: $euiKeyPadMenuSize;
@@ -15,7 +13,6 @@
15
13
  border-radius: $euiBorderRadius;
16
14
  color: $euiTextColor; // Override possible link color
17
15
 
18
- // sass-lint:disable-block mixins-before-declarations
19
16
  @include euiCanAnimate {
20
17
  transition:
21
18
  background-color $euiAnimSpeedFast ease-in,
@@ -32,8 +29,6 @@
32
29
  @include euiSlightShadow;
33
30
  border-color: $euiBorderColor;
34
31
 
35
- // sass-lint:disable-block mixins-before-declarations
36
- // sass-lint:disable-block nesting-depth
37
32
  @include euiCanAnimate {
38
33
  .euiKeyPadMenuItem__icon {
39
34
  transform: translateY(0);
@@ -50,10 +45,10 @@
50
45
  &.euiKeyPadMenuItem-isDisabled {
51
46
  @include euiDisabledState;
52
47
 
53
- .euiKeyPadMenuItem__icon {
48
+ .euiKeyPadMenuItem__icon {
54
49
  filter: grayscale(100%);
55
50
 
56
- svg * { // sass-lint:disable-line nesting-depth
51
+ svg * { // stylelint-disable-line max-nesting-depth
57
52
  fill: $euiButtonColorDisabledText;
58
53
  }
59
54
  }