@elastic/eui 97.1.0 → 97.3.0-borealis.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 (517) hide show
  1. package/es/components/badge/badge.js +1 -1
  2. package/es/components/badge/badge.styles.js +2 -2
  3. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  4. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  5. package/es/components/badge/color_utils.js +8 -7
  6. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  7. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  8. package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  9. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.styles.js +1 -1
  12. package/es/components/button/button_empty/button_empty.js +1 -1
  13. package/es/components/button/button_group/button_group_button.js +1 -1
  14. package/es/components/button/button_group/button_group_button.styles.js +4 -4
  15. package/es/components/button/button_icon/button_icon.js +1 -1
  16. package/es/components/card/card.styles.js +1 -1
  17. package/es/components/code/code_block_annotations.js +1 -1
  18. package/es/components/code/code_block_line.styles.js +1 -2
  19. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  20. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  21. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  22. package/es/components/color_picker/color_picker.styles.js +1 -2
  23. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  24. package/es/components/combo_box/combo_box.js +9 -6
  25. package/es/components/common.js +0 -28
  26. package/es/components/context_menu/context_menu_panel.js +17 -1
  27. package/es/components/datagrid/body/cell/data_grid_cell.js +31 -8
  28. package/es/components/datagrid/body/data_grid_body.js +8 -0
  29. package/es/components/datagrid/body/data_grid_body_custom.js +8 -1
  30. package/es/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  31. package/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  32. package/es/components/datagrid/controls/display_selector.js +277 -207
  33. package/es/components/datagrid/data_grid.stories.utils.js +28 -2
  34. package/es/components/datagrid/data_grid.styles.js +4 -6
  35. package/es/components/datagrid/utils/col_widths.js +7 -13
  36. package/es/components/datagrid/utils/grid_height_width.js +1 -1
  37. package/es/components/datagrid/utils/row_heights.js +29 -13
  38. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  39. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  40. package/es/components/drag_and_drop/droppable.styles.js +2 -4
  41. package/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  42. package/es/components/filter_group/filter_select_item.styles.js +1 -2
  43. package/es/components/flyout/_flyout_close_button.styles.js +1 -2
  44. package/es/components/form/form.styles.js +21 -28
  45. package/es/components/form/range/range_tooltip.styles.js +3 -7
  46. package/es/components/form/switch/switch.js +3 -7
  47. package/es/components/form/switch/switch.styles.js +16 -19
  48. package/es/components/header/header.styles.js +12 -6
  49. package/es/components/header/header_links/header_links.js +1 -1
  50. package/es/components/header/header_links/header_links.styles.js +1 -0
  51. package/es/components/icon/icon.styles.js +9 -8
  52. package/es/components/icon/named_colors.js +1 -1
  53. package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  54. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  55. package/es/components/list_group/list_group_item.styles.js +9 -11
  56. package/es/components/mark/mark.styles.js +2 -9
  57. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  58. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  59. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  60. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  61. package/es/components/popover/popover_footer.styles.js +1 -1
  62. package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  63. package/es/components/progress/progress.js +1 -1
  64. package/es/components/progress/progress.styles.js +8 -6
  65. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  66. package/es/components/side_nav/side_nav_item.styles.js +1 -2
  67. package/es/components/skeleton/utils.js +3 -5
  68. package/es/components/steps/step_number.styles.js +1 -1
  69. package/es/components/table/table_cells_shared.styles.js +2 -7
  70. package/es/components/table/table_row.styles.js +8 -10
  71. package/es/components/text/text.styles.js +2 -2
  72. package/es/components/text/text_color.js +1 -1
  73. package/es/components/text/text_color.styles.js +6 -5
  74. package/es/components/tool_tip/tool_tip.styles.js +8 -10
  75. package/es/components/tour/_tour_footer.styles.js +2 -4
  76. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  77. package/es/global_styling/functions/size.js +1 -17
  78. package/es/global_styling/mixins/_button.js +159 -0
  79. package/es/global_styling/mixins/_color.js +40 -31
  80. package/es/global_styling/mixins/index.js +2 -1
  81. package/es/global_styling/reset/global_styles.js +2 -2
  82. package/es/global_styling/variables/_colors_vis.js +1 -53
  83. package/es/global_styling/variables/animations.js +1 -22
  84. package/es/global_styling/variables/breakpoint.js +1 -7
  85. package/es/global_styling/variables/levels.js +1 -17
  86. package/es/global_styling/variables/shadow.js +1 -11
  87. package/es/global_styling/variables/size.js +1 -1
  88. package/es/global_styling/variables/typography.js +1 -32
  89. package/es/services/hooks/useDeepEqual.js +18 -6
  90. package/es/services/theme/provider.js +11 -0
  91. package/es/services/theme/types.js +1 -6
  92. package/es/services/theme/utils.js +1 -303
  93. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  94. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  95. package/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  96. package/es/themes/amsterdam/global_styling/variables/_components.js +442 -0
  97. package/es/themes/amsterdam/global_styling/variables/_forms.js +149 -0
  98. package/es/themes/amsterdam/theme.js +3 -1
  99. package/es/themes/index.js +1 -1
  100. package/es/themes/themes.js +7 -0
  101. package/eui.d.ts +2121 -2627
  102. package/i18ntokens.json +92 -110
  103. package/lib/components/badge/badge.js +1 -1
  104. package/lib/components/badge/badge.styles.js +2 -2
  105. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  106. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  107. package/lib/components/badge/color_utils.js +13 -12
  108. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  109. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  110. package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  111. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  112. package/lib/components/button/button.js +1 -1
  113. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  114. package/lib/components/button/button_empty/button_empty.js +1 -1
  115. package/lib/components/button/button_group/button_group_button.js +1 -1
  116. package/lib/components/button/button_group/button_group_button.styles.js +3 -3
  117. package/lib/components/button/button_icon/button_icon.js +1 -1
  118. package/lib/components/card/card.styles.js +1 -1
  119. package/lib/components/code/code_block_annotations.js +1 -1
  120. package/lib/components/code/code_block_line.styles.js +1 -2
  121. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  122. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  123. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  124. package/lib/components/color_picker/color_picker.styles.js +1 -2
  125. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  126. package/lib/components/combo_box/combo_box.js +9 -6
  127. package/lib/components/common.js +0 -28
  128. package/lib/components/context_menu/context_menu_panel.js +17 -1
  129. package/lib/components/datagrid/body/cell/data_grid_cell.js +31 -8
  130. package/lib/components/datagrid/body/data_grid_body.js +8 -0
  131. package/lib/components/datagrid/body/data_grid_body_custom.js +8 -1
  132. package/lib/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  133. package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  134. package/lib/components/datagrid/controls/display_selector.js +275 -204
  135. package/lib/components/datagrid/data_grid.stories.utils.js +28 -2
  136. package/lib/components/datagrid/data_grid.styles.js +4 -6
  137. package/lib/components/datagrid/utils/col_widths.js +7 -13
  138. package/lib/components/datagrid/utils/grid_height_width.js +1 -1
  139. package/lib/components/datagrid/utils/row_heights.js +29 -13
  140. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  141. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  142. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  143. package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  144. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  145. package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  146. package/lib/components/form/form.styles.js +20 -27
  147. package/lib/components/form/range/range_tooltip.styles.js +3 -7
  148. package/lib/components/form/switch/switch.js +3 -7
  149. package/lib/components/form/switch/switch.styles.js +16 -19
  150. package/lib/components/header/header.styles.js +11 -5
  151. package/lib/components/header/header_links/header_links.js +1 -1
  152. package/lib/components/header/header_links/header_links.styles.js +1 -0
  153. package/lib/components/icon/icon.styles.js +9 -8
  154. package/lib/components/icon/named_colors.js +1 -1
  155. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  156. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  157. package/lib/components/list_group/list_group_item.styles.js +8 -10
  158. package/lib/components/mark/mark.styles.js +2 -9
  159. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  160. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  161. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  162. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  163. package/lib/components/popover/popover_footer.styles.js +1 -1
  164. package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  165. package/lib/components/progress/progress.js +1 -1
  166. package/lib/components/progress/progress.styles.js +8 -6
  167. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  168. package/lib/components/side_nav/side_nav_item.styles.js +1 -2
  169. package/lib/components/skeleton/utils.js +3 -5
  170. package/lib/components/steps/step_number.styles.js +1 -1
  171. package/lib/components/table/table_cells_shared.styles.js +2 -7
  172. package/lib/components/table/table_row.styles.js +7 -9
  173. package/lib/components/text/text.styles.js +1 -1
  174. package/lib/components/text/text_color.js +1 -1
  175. package/lib/components/text/text_color.styles.js +6 -5
  176. package/lib/components/tool_tip/tool_tip.styles.js +8 -10
  177. package/lib/components/tour/_tour_footer.styles.js +2 -4
  178. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  179. package/lib/global_styling/functions/size.js +7 -26
  180. package/lib/global_styling/mixins/_button.js +164 -0
  181. package/lib/global_styling/mixins/_color.js +39 -30
  182. package/lib/global_styling/mixins/index.js +11 -0
  183. package/lib/global_styling/reset/global_styles.js +1 -1
  184. package/lib/global_styling/variables/_colors_vis.js +6 -61
  185. package/lib/global_styling/variables/animations.js +25 -31
  186. package/lib/global_styling/variables/breakpoint.js +7 -16
  187. package/lib/global_styling/variables/levels.js +7 -26
  188. package/lib/global_styling/variables/shadow.js +13 -20
  189. package/lib/global_styling/variables/size.js +7 -10
  190. package/lib/global_styling/variables/typography.js +19 -41
  191. package/lib/services/hooks/useDeepEqual.js +17 -7
  192. package/lib/services/theme/provider.js +11 -0
  193. package/lib/services/theme/types.js +13 -14
  194. package/lib/services/theme/utils.js +54 -303
  195. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  196. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  197. package/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  198. package/lib/themes/amsterdam/global_styling/variables/_components.js +446 -0
  199. package/lib/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  200. package/lib/themes/amsterdam/theme.js +3 -1
  201. package/lib/themes/index.js +7 -0
  202. package/lib/themes/themes.js +8 -1
  203. package/optimize/es/components/badge/badge.js +1 -1
  204. package/optimize/es/components/badge/badge.styles.js +2 -2
  205. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  206. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  207. package/optimize/es/components/badge/color_utils.js +8 -7
  208. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  209. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  210. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  211. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  212. package/optimize/es/components/button/button.js +1 -1
  213. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  214. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  215. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  216. package/optimize/es/components/button/button_group/button_group_button.styles.js +4 -4
  217. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  218. package/optimize/es/components/card/card.styles.js +1 -1
  219. package/optimize/es/components/code/code_block_annotations.js +1 -1
  220. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  221. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  222. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  223. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  224. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  225. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  226. package/optimize/es/components/combo_box/combo_box.js +9 -6
  227. package/optimize/es/components/common.js +0 -28
  228. package/optimize/es/components/context_menu/context_menu_panel.js +11 -1
  229. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +15 -8
  230. package/optimize/es/components/datagrid/body/data_grid_body_custom.js +0 -1
  231. package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  232. package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  233. package/optimize/es/components/datagrid/controls/display_selector.js +277 -207
  234. package/optimize/es/components/datagrid/data_grid.styles.js +4 -6
  235. package/optimize/es/components/datagrid/utils/col_widths.js +7 -13
  236. package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
  237. package/optimize/es/components/datagrid/utils/row_heights.js +29 -13
  238. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  239. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  240. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  241. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  242. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  243. package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
  244. package/optimize/es/components/form/form.styles.js +21 -28
  245. package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
  246. package/optimize/es/components/form/switch/switch.js +3 -2
  247. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  248. package/optimize/es/components/header/header.styles.js +12 -6
  249. package/optimize/es/components/header/header_links/header_links.js +1 -1
  250. package/optimize/es/components/header/header_links/header_links.styles.js +1 -0
  251. package/optimize/es/components/icon/icon.styles.js +9 -8
  252. package/optimize/es/components/icon/named_colors.js +1 -1
  253. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  254. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  255. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  256. package/optimize/es/components/mark/mark.styles.js +2 -9
  257. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  258. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  259. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  260. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  261. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  262. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  263. package/optimize/es/components/progress/progress.js +1 -1
  264. package/optimize/es/components/progress/progress.styles.js +8 -6
  265. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  266. package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
  267. package/optimize/es/components/skeleton/utils.js +3 -5
  268. package/optimize/es/components/steps/step_number.styles.js +1 -1
  269. package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
  270. package/optimize/es/components/table/table_row.styles.js +8 -10
  271. package/optimize/es/components/text/text.styles.js +2 -2
  272. package/optimize/es/components/text/text_color.js +1 -1
  273. package/optimize/es/components/text/text_color.styles.js +6 -5
  274. package/optimize/es/components/tool_tip/tool_tip.styles.js +8 -10
  275. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  276. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  277. package/optimize/es/global_styling/functions/size.js +1 -17
  278. package/optimize/es/global_styling/mixins/_button.js +159 -0
  279. package/optimize/es/global_styling/mixins/_color.js +40 -31
  280. package/optimize/es/global_styling/mixins/index.js +2 -1
  281. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  282. package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
  283. package/optimize/es/global_styling/variables/animations.js +1 -22
  284. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  285. package/optimize/es/global_styling/variables/levels.js +1 -17
  286. package/optimize/es/global_styling/variables/shadow.js +1 -11
  287. package/optimize/es/global_styling/variables/size.js +1 -1
  288. package/optimize/es/global_styling/variables/typography.js +1 -32
  289. package/optimize/es/services/hooks/useDeepEqual.js +13 -6
  290. package/optimize/es/services/theme/provider.js +11 -0
  291. package/optimize/es/services/theme/types.js +1 -6
  292. package/optimize/es/services/theme/utils.js +1 -295
  293. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  294. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  295. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +587 -18
  296. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +434 -0
  297. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +141 -0
  298. package/optimize/es/themes/amsterdam/theme.js +3 -1
  299. package/optimize/es/themes/index.js +1 -1
  300. package/optimize/es/themes/themes.js +7 -0
  301. package/optimize/lib/components/badge/badge.js +1 -1
  302. package/optimize/lib/components/badge/badge.styles.js +2 -2
  303. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  304. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  305. package/optimize/lib/components/badge/color_utils.js +13 -12
  306. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  307. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  308. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  309. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  310. package/optimize/lib/components/button/button.js +1 -1
  311. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  312. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  313. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  314. package/optimize/lib/components/button/button_group/button_group_button.styles.js +3 -3
  315. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  316. package/optimize/lib/components/card/card.styles.js +1 -1
  317. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  318. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  319. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  320. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  321. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  322. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  323. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  324. package/optimize/lib/components/combo_box/combo_box.js +9 -6
  325. package/optimize/lib/components/common.js +0 -28
  326. package/optimize/lib/components/context_menu/context_menu_panel.js +11 -1
  327. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +15 -8
  328. package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +0 -1
  329. package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  330. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  331. package/optimize/lib/components/datagrid/controls/display_selector.js +274 -204
  332. package/optimize/lib/components/datagrid/data_grid.styles.js +4 -6
  333. package/optimize/lib/components/datagrid/utils/col_widths.js +7 -13
  334. package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
  335. package/optimize/lib/components/datagrid/utils/row_heights.js +29 -13
  336. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  337. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  338. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  339. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  340. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  341. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  342. package/optimize/lib/components/form/form.styles.js +20 -27
  343. package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
  344. package/optimize/lib/components/form/switch/switch.js +3 -2
  345. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  346. package/optimize/lib/components/header/header.styles.js +11 -5
  347. package/optimize/lib/components/header/header_links/header_links.js +1 -1
  348. package/optimize/lib/components/header/header_links/header_links.styles.js +1 -0
  349. package/optimize/lib/components/icon/icon.styles.js +9 -8
  350. package/optimize/lib/components/icon/named_colors.js +1 -1
  351. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  352. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  353. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  354. package/optimize/lib/components/mark/mark.styles.js +2 -9
  355. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  356. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  357. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  358. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  359. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  360. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  361. package/optimize/lib/components/progress/progress.js +1 -1
  362. package/optimize/lib/components/progress/progress.styles.js +8 -6
  363. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  364. package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
  365. package/optimize/lib/components/skeleton/utils.js +3 -5
  366. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  367. package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
  368. package/optimize/lib/components/table/table_row.styles.js +7 -9
  369. package/optimize/lib/components/text/text.styles.js +1 -1
  370. package/optimize/lib/components/text/text_color.js +1 -1
  371. package/optimize/lib/components/text/text_color.styles.js +6 -5
  372. package/optimize/lib/components/tool_tip/tool_tip.styles.js +8 -10
  373. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  374. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  375. package/optimize/lib/global_styling/functions/size.js +7 -27
  376. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  377. package/optimize/lib/global_styling/mixins/_color.js +39 -30
  378. package/optimize/lib/global_styling/mixins/index.js +11 -0
  379. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  380. package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
  381. package/optimize/lib/global_styling/variables/animations.js +25 -31
  382. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  383. package/optimize/lib/global_styling/variables/levels.js +7 -26
  384. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  385. package/optimize/lib/global_styling/variables/size.js +7 -10
  386. package/optimize/lib/global_styling/variables/typography.js +19 -41
  387. package/optimize/lib/services/hooks/useDeepEqual.js +12 -5
  388. package/optimize/lib/services/theme/provider.js +11 -0
  389. package/optimize/lib/services/theme/types.js +13 -14
  390. package/optimize/lib/services/theme/utils.js +54 -296
  391. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  392. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  393. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  394. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +439 -0
  395. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  396. package/optimize/lib/themes/amsterdam/theme.js +3 -1
  397. package/optimize/lib/themes/index.js +7 -0
  398. package/optimize/lib/themes/themes.js +8 -1
  399. package/package.json +8 -3
  400. package/src/global_styling/functions/_index.scss +1 -5
  401. package/src/global_styling/index.scss +1 -16
  402. package/src/global_styling/variables/_animations.scss +1 -8
  403. package/src/global_styling/variables/_borders.scss +1 -9
  404. package/src/global_styling/variables/_buttons.scss +1 -18
  405. package/src/global_styling/variables/_colors_vis.scss +1 -70
  406. package/src/global_styling/variables/_font_weight.scss +1 -7
  407. package/src/global_styling/variables/_form.scss +2 -21
  408. package/src/global_styling/variables/_responsive.scss +1 -9
  409. package/src/global_styling/variables/_shadows.scss +1 -1
  410. package/src/global_styling/variables/_size.scss +1 -15
  411. package/src/global_styling/variables/_states.scss +1 -14
  412. package/src/global_styling/variables/_typography.scss +1 -75
  413. package/src/global_styling/variables/_z_index.scss +1 -33
  414. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  415. package/src/themes/amsterdam/_colors_light.scss +80 -8
  416. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  417. package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
  418. package/test-env/components/badge/badge.js +1 -1
  419. package/test-env/components/badge/badge.styles.js +2 -2
  420. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  421. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
  422. package/test-env/components/badge/color_utils.js +13 -12
  423. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  424. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  425. package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
  426. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  427. package/test-env/components/button/button.js +1 -1
  428. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  429. package/test-env/components/button/button_empty/button_empty.js +1 -1
  430. package/test-env/components/button/button_group/button_group_button.js +1 -1
  431. package/test-env/components/button/button_group/button_group_button.styles.js +3 -3
  432. package/test-env/components/button/button_icon/button_icon.js +1 -1
  433. package/test-env/components/card/card.styles.js +1 -1
  434. package/test-env/components/code/code_block_annotations.js +1 -1
  435. package/test-env/components/code/code_block_line.styles.js +1 -2
  436. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  437. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  438. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  439. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  440. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  441. package/test-env/components/combo_box/combo_box.js +9 -6
  442. package/test-env/components/common.js +0 -28
  443. package/test-env/components/context_menu/context_menu_panel.js +17 -1
  444. package/test-env/components/datagrid/body/cell/data_grid_cell.js +31 -8
  445. package/test-env/components/datagrid/body/data_grid_body.js +8 -0
  446. package/test-env/components/datagrid/body/data_grid_body_custom.js +8 -1
  447. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  448. package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  449. package/test-env/components/datagrid/controls/display_selector.js +274 -204
  450. package/test-env/components/datagrid/data_grid.stories.utils.js +28 -2
  451. package/test-env/components/datagrid/data_grid.styles.js +4 -6
  452. package/test-env/components/datagrid/utils/col_widths.js +7 -13
  453. package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
  454. package/test-env/components/datagrid/utils/row_heights.js +29 -13
  455. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  456. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
  457. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  458. package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
  459. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  460. package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
  461. package/test-env/components/form/form.styles.js +20 -27
  462. package/test-env/components/form/range/range_tooltip.styles.js +3 -7
  463. package/test-env/components/form/switch/switch.js +3 -2
  464. package/test-env/components/form/switch/switch.styles.js +16 -19
  465. package/test-env/components/header/header.styles.js +11 -5
  466. package/test-env/components/header/header_links/header_links.js +1 -1
  467. package/test-env/components/header/header_links/header_links.styles.js +1 -0
  468. package/test-env/components/icon/icon.styles.js +9 -8
  469. package/test-env/components/icon/named_colors.js +1 -1
  470. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  471. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  472. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  473. package/test-env/components/mark/mark.styles.js +2 -9
  474. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  475. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  476. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  477. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  478. package/test-env/components/popover/popover_footer.styles.js +1 -1
  479. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  480. package/test-env/components/progress/progress.js +1 -1
  481. package/test-env/components/progress/progress.styles.js +8 -6
  482. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  483. package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
  484. package/test-env/components/skeleton/utils.js +3 -5
  485. package/test-env/components/steps/step_number.styles.js +1 -1
  486. package/test-env/components/table/table_cells_shared.styles.js +2 -7
  487. package/test-env/components/table/table_row.styles.js +7 -9
  488. package/test-env/components/text/text.styles.js +1 -1
  489. package/test-env/components/text/text_color.js +1 -1
  490. package/test-env/components/text/text_color.styles.js +6 -5
  491. package/test-env/components/tool_tip/tool_tip.styles.js +8 -10
  492. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  493. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  494. package/test-env/global_styling/functions/size.js +7 -27
  495. package/test-env/global_styling/mixins/_button.js +165 -0
  496. package/test-env/global_styling/mixins/_color.js +39 -30
  497. package/test-env/global_styling/mixins/index.js +11 -0
  498. package/test-env/global_styling/reset/global_styles.js +1 -1
  499. package/test-env/global_styling/variables/_colors_vis.js +6 -61
  500. package/test-env/global_styling/variables/animations.js +25 -31
  501. package/test-env/global_styling/variables/breakpoint.js +7 -16
  502. package/test-env/global_styling/variables/levels.js +7 -26
  503. package/test-env/global_styling/variables/shadow.js +13 -20
  504. package/test-env/global_styling/variables/size.js +7 -10
  505. package/test-env/global_styling/variables/typography.js +19 -41
  506. package/test-env/services/hooks/useDeepEqual.js +12 -5
  507. package/test-env/services/theme/provider.js +11 -0
  508. package/test-env/services/theme/types.js +13 -14
  509. package/test-env/services/theme/utils.js +54 -296
  510. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  511. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  512. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +586 -18
  513. package/test-env/themes/amsterdam/global_styling/variables/_components.js +439 -0
  514. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +146 -0
  515. package/test-env/themes/amsterdam/theme.js +3 -1
  516. package/test-env/themes/index.js +7 -0
  517. package/test-env/themes/themes.js +8 -1
@@ -0,0 +1,12 @@
1
+ // Coloring
2
+ $euiFormBackgroundColor: tintOrShade($euiColorLightestShade, 60%, 40%) !default;
3
+ $euiFormBackgroundDisabledColor: darken($euiColorLightestShade, 2%) !default;
4
+ $euiFormBackgroundReadOnlyColor: $euiColorEmptyShade !default;
5
+ $euiFormBorderOpaqueColor: shadeOrTint(desaturate(adjust-hue($euiColorPrimary, 22), 22.95), 26%, 100%) !default;
6
+ $euiFormBorderColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
7
+ $euiFormBorderDisabledColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
8
+ $euiFormControlDisabledColor: $euiColorMediumShade !default;
9
+ $euiFormControlBoxShadow: 0 0 transparent !default;
10
+ $euiFormControlPlaceholderText: makeHighContrastColor($euiTextSubduedColor, $euiFormBackgroundColor) !default;
11
+ $euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 15%) !default;
12
+ $euiFormInputGroupBorder: none !default;
@@ -3,3 +3,4 @@
3
3
  @import 'states';
4
4
 
5
5
  @import 'typography';
6
+ @import 'forms';
@@ -33,7 +33,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
33
33
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34
34
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35
35
  var ICON_SIDES = exports.ICON_SIDES = ['left', 'right'];
36
- var COLORS = exports.COLORS = ['default', 'hollow', 'primary', 'success', 'accent', 'warning', 'danger'];
36
+ var COLORS = exports.COLORS = ['default', 'hollow', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger'];
37
37
  var EuiBadge = exports.EuiBadge = function EuiBadge(_ref) {
38
38
  var children = _ref.children,
39
39
  _ref$color = _ref.color,
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiBadgeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../global_styling");
9
- var _services = require("../../services");
10
9
  var _color_utils = require("./color_utils");
11
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
12
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -43,6 +42,7 @@ var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeCo
43
42
  hollow: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
44
43
  primary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
45
44
  accent: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
45
+ accentSecondary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.accentSecondary), ";label:accentSecondary;"),
46
46
  warning: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
47
47
  danger: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
48
48
  success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.success), ";label:success;"),
@@ -66,7 +66,7 @@ var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeCo
66
66
  },
67
67
  // Clickable icons (iconOnClick)
68
68
  iconButton: {
69
- euiBadge__iconButton: /*#__PURE__*/(0, _react.css)("font-size:0;&:focus{background-color:", (0, _services.transparentize)(euiTheme.colors.ghost, 0.8), ";color:", euiTheme.colors.ink, ";border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
69
+ euiBadge__iconButton: /*#__PURE__*/(0, _react.css)("font-size:0;&:focus{background-color:", euiTheme.components.badgeIconButtonBackgroundHover, ";color:", euiTheme.colors.ink, ";border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
70
70
  return x / 2;
71
71
  }), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
72
72
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";;label:right;"),
@@ -24,7 +24,7 @@ var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPositi
24
24
  * in compliance with, at your election, the Elastic License 2.0 or the Server
25
25
  * Side Public License, v 1.
26
26
  */
27
- var COLORS = exports.COLORS = ['accent', 'subdued', 'hollow'];
27
+ var COLORS = exports.COLORS = ['accent', 'accentSecondary', 'subdued', 'hollow'];
28
28
  var SIZES = exports.SIZES = ['s', 'm'];
29
29
  var ALIGNMENTS = exports.ALIGNMENTS = ['baseline', 'middle'];
30
30
 
@@ -48,6 +48,7 @@ var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyle
48
48
  }), ";};label:euiBetaBadge;"),
49
49
  // Colors
50
50
  accent: /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;"),
51
+ accentSecondary: /*#__PURE__*/(0, _react.css)(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
51
52
  subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;"),
52
53
  hollow: /*#__PURE__*/(0, _react.css)("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", badgeColors.hollow.borderColor, ";;label:hollow;"),
53
54
  // Font sizes
@@ -9,7 +9,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _chromaJs = _interopRequireDefault(require("chroma-js"));
11
11
  var _services = require("../../services");
12
- var _mixins = require("../../themes/amsterdam/global_styling/mixins");
12
+ var _button = require("../../global_styling/mixins/_button");
13
13
  var _utils = require("../color_picker/utils");
14
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
@@ -20,25 +20,26 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
20
20
  * Side Public License, v 1.
21
21
  */
22
22
  var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeContext) {
23
- var euiTheme = euiThemeContext.euiTheme,
24
- colorMode = euiThemeContext.colorMode;
23
+ var euiTheme = euiThemeContext.euiTheme;
25
24
  return {
26
25
  // Colors shared between buttons and badges
27
- primary: (0, _mixins.euiButtonFillColor)(euiThemeContext, 'primary'),
28
- success: (0, _mixins.euiButtonFillColor)(euiThemeContext, 'success'),
29
- warning: (0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning'),
30
- danger: (0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger'),
31
- accent: (0, _mixins.euiButtonFillColor)(euiThemeContext, 'accent'),
32
- disabled: (0, _mixins.euiButtonColor)(euiThemeContext, 'disabled'),
26
+ primary: (0, _button.euiButtonFillColor)(euiThemeContext, 'primary'),
27
+ success: (0, _button.euiButtonFillColor)(euiThemeContext, 'success'),
28
+ warning: (0, _button.euiButtonFillColor)(euiThemeContext, 'warning'),
29
+ danger: (0, _button.euiButtonFillColor)(euiThemeContext, 'danger'),
30
+ accent: (0, _button.euiButtonFillColor)(euiThemeContext, 'accent'),
31
+ accentSecondary: (0, _button.euiButtonFillColor)(euiThemeContext, 'accentSecondary'),
32
+ disabled: (0, _button.euiButtonColor)(euiThemeContext, 'disabled'),
33
33
  // Colors unique to badges
34
34
  default: getBadgeColors(euiThemeContext, euiTheme.colors.lightShade),
35
35
  // Hollow has a border and is used for autocompleters and beta badges
36
36
  hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
37
- borderColor: colorMode === 'DARK' ? (0, _services.tint)(euiTheme.border.color, 0.15) : euiTheme.border.color
37
+ borderColor: euiTheme.components.badgeBorderColorHollow
38
38
  }),
39
39
  // Colors used by beta and notification badges
40
- subdued: getBadgeColors(euiThemeContext, (0, _services.tint)(euiTheme.colors.lightShade, 0.3)),
41
- accentText: getBadgeColors(euiThemeContext, euiTheme.colors.accentText)
40
+ subdued: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackgroundSubdued),
41
+ accentText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccent),
42
+ accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
42
43
  };
43
44
  };
44
45
  var getBadgeColors = exports.getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
@@ -21,7 +21,7 @@ var _excluded = ["children", "className", "size", "color"];
21
21
  * in compliance with, at your election, the Elastic License 2.0 or the Server
22
22
  * Side Public License, v 1.
23
23
  */
24
- var COLORS = exports.COLORS = ['accent', 'subdued', 'success'];
24
+ var COLORS = exports.COLORS = ['accent', 'accentSecondary', 'subdued', 'success'];
25
25
  var SIZES = exports.SIZES = ['s', 'm'];
26
26
  var EuiNotificationBadge = exports.EuiNotificationBadge = function EuiNotificationBadge(_ref) {
27
27
  var children = _ref.children,
@@ -29,6 +29,7 @@ var euiNotificationBadgeStyles = exports.euiNotificationBadgeStyles = function e
29
29
  })), " ", (0, _global_styling.logicalCSS)('min-width', euiTheme.size.l), ";;label:m;"),
30
30
  // Colors
31
31
  accent: /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;"),
32
+ accentSecondary: /*#__PURE__*/(0, _react.css)(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
32
33
  success: /*#__PURE__*/(0, _react.css)(badgeColors.success, ";label:success;"),
33
34
  subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;")
34
35
  };
@@ -8,7 +8,6 @@ exports.euiBottomBarStyles = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _global_styling = require("../../global_styling");
11
- var _services = require("../../services");
12
11
  var _mixins = require("../../themes/amsterdam/global_styling/mixins");
13
12
  var _templateObject;
14
13
  /*
@@ -24,7 +23,7 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
24
23
  return {
25
24
  // Base
26
25
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
27
- euiBottomBar: /*#__PURE__*/(0, _react.css)((0, _mixins.euiShadowFlat)(euiThemeContext), " background:", (0, _services.shade)(euiTheme.colors.lightestShade, 0.5), ";", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
26
+ euiBottomBar: /*#__PURE__*/(0, _react.css)((0, _mixins.euiShadowFlat)(euiThemeContext), " background:", euiTheme.components.bottomBarBackground, ";", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
28
27
  static: /*#__PURE__*/(0, _react.css)(";label:static;"),
29
28
  // Default
30
29
  fixed: /*#__PURE__*/(0, _react.css)("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiBreadcrumbPopoverStyles = exports.euiBreadcrumbContentStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _color = require("../../services/color");
9
8
  var _global_styling = require("../../global_styling");
10
- var _button = require("../../themes/amsterdam/global_styling/mixins/button");
9
+ var _button = require("../../global_styling/mixins/_button");
11
10
  /*
12
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
13
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -20,8 +19,7 @@ var _button = require("../../themes/amsterdam/global_styling/mixins/button");
20
19
  * Styles cast to inner <a>, <button>, <span> elements
21
20
  */
22
21
  var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
23
- var euiTheme = euiThemeContext.euiTheme,
24
- colorMode = euiThemeContext.colorMode;
22
+ var euiTheme = euiThemeContext.euiTheme;
25
23
 
26
24
  // Reuse button colors for `type="application`" clickable breadcrumbs
27
25
  var applicationButtonColors = (0, _button.euiButtonColor)(euiThemeContext, 'primary');
@@ -29,8 +27,8 @@ var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function e
29
27
  // Create custom darker gray colors for non-clickable application breadcrumbs
30
28
  // The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
31
29
  var applicationTextColors = {
32
- backgroundColor: (0, _color.tintOrShade)(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
33
- color: (0, _color.tintOrShade)(euiTheme.colors.darkestShade, 0.2, colorMode)
30
+ backgroundColor: euiTheme.components.breadcrumbsApplicationBackground,
31
+ color: euiTheme.components.breadcrumbsApplicationColor
34
32
  };
35
33
  return {
36
34
  euiBreadcrumb__content: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
- var _button = require("../../themes/amsterdam/global_styling/mixins/button");
13
+ var _button = require("../../global_styling/mixins/_button");
14
14
  var _button_display = require("./button_display/_button_display");
15
15
  var _react2 = require("@emotion/react");
16
16
  var _excluded = ["className", "buttonRef", "size", "color", "fill"];
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiButtonDisplayStyles = exports.euiButtonBaseCSS = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
- var _mixins = require("../../../themes/amsterdam/global_styling/mixins");
9
+ var _mixins = require("../../../global_styling/mixins");
10
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
11
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -13,7 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
14
  var _services = require("../../../services");
15
15
  var _button_display_content = require("../button_display/_button_display_content");
16
- var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
16
+ var _button = require("../../../global_styling/mixins/_button");
17
17
  var _button_display = require("../button_display/_button_display");
18
18
  var _button_empty = require("./button_empty.styles");
19
19
  var _react2 = require("@emotion/react");
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _services = require("../../../services");
16
- var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
16
+ var _button = require("../../../global_styling/mixins/_button");
17
17
  var _inner_text = require("../../inner_text");
18
18
  var _button_display = require("../button_display/_button_display");
19
19
  var _button_group_button = require("./button_group_button.styles");
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
10
10
  var _react = require("@emotion/react");
11
11
  var _services = require("../../../services");
12
12
  var _global_styling = require("../../../global_styling");
13
- var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
13
+ var _button = require("../../../global_styling/mixins/_button");
14
14
  var _accessibility = require("../../accessibility");
15
15
  var _form = require("../../form/form.styles");
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -58,8 +58,8 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
58
58
  uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
59
59
  get borders() {
60
60
  var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
61
- var selectedColor = (0, _services.transparentize)(euiTheme.colors.emptyShade, 0.2);
62
- var unselectedColor = (0, _services.transparentize)(euiTheme.colors.fullShade, 0.1);
61
+ var selectedColor = euiTheme.components.buttonGroupBorderColorSelected;
62
+ var unselectedColor = euiTheme.components.buttonGroupBorderColor;
63
63
  var borderWidth = euiTheme.border.width.thin;
64
64
 
65
65
  // "Borders" between buttons should be present between two of the same colored buttons,
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _services = require("../../../services");
14
14
  var _icon = require("../../icon");
15
15
  var _loading = require("../../loading");
16
- var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
16
+ var _button = require("../../../global_styling/mixins/_button");
17
17
  var _button_display = require("../button_display/_button_display");
18
18
  var _button_icon = require("./button_icon.styles");
19
19
  var _react2 = require("@emotion/react");
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiCardTextStyles = exports.euiCardStyles = exports.euiCardBetaBadgeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../global_styling");
9
- var _mixins = require("../../themes/amsterdam/global_styling/mixins");
9
+ var _mixins = require("../../global_styling/mixins");
10
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
11
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -12,7 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _services = require("../../services");
15
- var _button = require("../../themes/amsterdam/global_styling/mixins/button");
15
+ var _button = require("../../global_styling/mixins/_button");
16
16
  var _i18n = require("../i18n");
17
17
  var _popover = require("../popover");
18
18
  var _icon = require("../icon");
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiCodeBlockLineStyles = void 0;
7
7
  var _css = require("@emotion/css");
8
- var _global_styling = require("../../global_styling");
9
8
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
10
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11
10
  * or more contributor license agreements. Licensed under the Elastic License
@@ -43,7 +42,7 @@ var euiCodeBlockLineStyles = exports.euiCodeBlockLineStyles = function euiCodeBl
43
42
  }),
44
43
  lineText: {
45
44
  euiCodeBlock__lineText: /*#__PURE__*/(0, _css.css)("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
46
- isHighlighted: /*#__PURE__*/(0, _css.css)("background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
45
+ isHighlighted: /*#__PURE__*/(0, _css.css)("background:", euiTheme.colors.backgroundBasePrimary, ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
47
46
  },
48
47
  lineNumber: {
49
48
  euiCodeBlock__lineNumberWrapper: /*#__PURE__*/(0, _css.css)("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiCollapsibleNavGroupStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -16,14 +15,13 @@ var _global_styling = require("../../../global_styling");
16
15
  */
17
16
 
18
17
  var euiCollapsibleNavGroupStyles = exports.euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(_ref) {
19
- var euiTheme = _ref.euiTheme,
20
- colorMode = _ref.colorMode;
18
+ var euiTheme = _ref.euiTheme;
21
19
  return {
22
20
  euiCollapsibleNavGroup: /*#__PURE__*/(0, _react.css)("&:not(:first-child){", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavGroup;"),
23
21
  // Background colors
24
22
  none: /*#__PURE__*/(0, _react.css)(";label:none;"),
25
- light: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.colors.body, ";;label:light;"),
26
- dark: /*#__PURE__*/(0, _react.css)("background-color:", colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.5) : (0, _services.shade)(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
23
+ light: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.collapsibleNavGroupBackground, ";;label:light;"),
24
+ dark: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.collapsibleNavGroupBackgroundDark, ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
27
25
  // Header padding
28
26
  isCollapsible: /*#__PURE__*/(0, _react.css)(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
29
27
  notCollapsible: /*#__PURE__*/(0, _react.css)(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
@@ -8,7 +8,7 @@ exports.euiCollapsibleNavTopItemStyles = exports.euiCollapsibleNavSubItemsStyles
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _global_styling = require("../../../global_styling");
11
- var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
11
+ var _button = require("../../../global_styling/mixins/_button");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiColorPaletteDisplayStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -19,7 +18,7 @@ var euiColorPaletteDisplayStyles = exports.euiColorPaletteDisplayStyles = functi
19
18
  var euiTheme = euiThemeContext.euiTheme;
20
19
 
21
20
  // Border is a pseudo element with transparency
22
- var border = "".concat(euiTheme.border.width.thin, " solid ").concat((0, _services.transparentize)(euiTheme.colors.darkestShade, 0.2));
21
+ var border = "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBaseFormsColorSwatch);
23
22
  return {
24
23
  euiColorPaletteDisplay: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;flex-direction:row;overflow:hidden;&::after{content:'';position:absolute;inset:0;pointer-events:none;border:", border, ";border-radius:inherit;};label:euiColorPaletteDisplay;"),
25
24
  // Sizes
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiColorPickerStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../services");
9
8
  var _global_styling = require("../../global_styling");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -28,6 +27,6 @@ var euiColorPickerStyles = exports.euiColorPickerStyles = function euiColorPicke
28
27
  euiColorPicker__alphaRange: /*#__PURE__*/(0, _react.css)(".euiRangeInput{", (0, _global_styling.logicalCSS)('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
29
28
  // Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
30
29
  // Targets a custom className applied directly to the <svg> icon
31
- euiColorPicker__swatchInputIcon: /*#__PURE__*/(0, _react.css)(".euiSwatchInput__stroke{fill:none;stroke:", (0, _services.transparentize)(euiTheme.colors.fullShade, 0.2), ";};label:euiColorPicker__swatchInputIcon;")
30
+ euiColorPicker__swatchInputIcon: /*#__PURE__*/(0, _react.css)(".euiSwatchInput__stroke{fill:none;stroke:", euiTheme.colors.borderBaseFormsColorSwatch, ";};label:euiColorPicker__swatchInputIcon;")
32
31
  };
33
32
  };
@@ -20,6 +20,6 @@ var euiColorPickerSwatchStyles = exports.euiColorPickerSwatchStyles = function e
20
20
  return {
21
21
  euiColorPickerSwatch: /*#__PURE__*/(0, _react.css)("display:inline-block;", (0, _global_styling.logicalSizeCSS)(euiTheme.size.l), " border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.medium, function (x) {
22
22
  return x / 2;
23
- }), ";border:", euiTheme.border.width.thin, " solid ", (0, _services.transparentize)(euiTheme.colors.fullShade, 0.1), ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", (0, _services.transparentize)(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", (0, _global_styling.euiOutline)(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
23
+ }), ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFormsColorSwatch, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", (0, _services.transparentize)(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", (0, _global_styling.euiOutline)(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
24
24
  };
25
25
  };
@@ -314,12 +314,15 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
314
314
  }
315
315
  break;
316
316
  case _services.keys.ENTER:
317
- event.preventDefault();
318
- event.stopPropagation();
319
- if (_this.hasActiveOption()) {
320
- _this.onAddOption(_this.state.matchingOptions[_this.state.activeOptionIndex]);
321
- } else {
322
- _this.setCustomOptions(false);
317
+ // Do not block enter keypresses for the clear button or delete selection buttons
318
+ if (event.target === _this.searchInputRefInstance) {
319
+ event.preventDefault();
320
+ event.stopPropagation();
321
+ if (_this.hasActiveOption()) {
322
+ _this.onAddOption(_this.state.matchingOptions[_this.state.activeOptionIndex]);
323
+ } else {
324
+ _this.setCustomOptions(false);
325
+ }
323
326
  }
324
327
  break;
325
328
  case _services.keys.TAB:
@@ -35,12 +35,6 @@ function keysOf(obj) {
35
35
  return Object.keys(obj);
36
36
  }
37
37
 
38
- /**
39
- * Like `keyof typeof`, but for getting values instead of keys
40
- * ValueOf<typeof {key1: 'value1', key2: 'value2'}>
41
- * Results in `'value1' | 'value2'`
42
- */
43
-
44
38
  // Returns the props of a given HTML element
45
39
 
46
40
  // Utility methods for ApplyClassComponentDefaults
@@ -133,26 +127,4 @@ React.FunctionComponent<ExclusiveUnion<Spanlike, Buttonlike>>
133
127
  * type ButtonLike = PropsForButton<BaseProps>
134
128
  * type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
135
129
  * const Component: FunctionComponent<ComponentProps> ...
136
- */
137
-
138
- /**
139
- * Replaces all properties on any type as optional, includes nested types
140
- *
141
- * @example
142
- * ```ts
143
- * interface Person {
144
- * name: string;
145
- * age?: number;
146
- * spouse: Person;
147
- * children: Person[];
148
- * }
149
- * type PartialPerson = RecursivePartial<Person>;
150
- * // results in
151
- * interface PartialPerson {
152
- * name?: string;
153
- * age?: number;
154
- * spouse?: RecursivePartial<Person>;
155
- * children?: RecursivePartial<Person>[]
156
- * }
157
- * ```
158
130
  */
@@ -165,7 +165,7 @@ var EuiContextMenuPanelClass = exports.EuiContextMenuPanelClass = /*#__PURE__*/f
165
165
  items: _this.props.items
166
166
  },
167
167
  menuItems: [],
168
- focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null ? props.initialFocusedItemIndex + 1 // Account for panel title back button
168
+ focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null && props.initialFocusedItemIndex !== -1 ? props.initialFocusedItemIndex + 1 // Account for panel title back button
169
169
  : props.initialFocusedItemIndex,
170
170
  currentHeight: undefined,
171
171
  waitingForInitialPopover: false,
@@ -208,6 +208,16 @@ var EuiContextMenuPanelClass = exports.EuiContextMenuPanelClass = /*#__PURE__*/f
208
208
  return;
209
209
  }
210
210
 
211
+ // `initialFocusedItemIndex={-1}` should only be used when preventing initial item focus is desired
212
+ if (_this2.state.focusedItemIndex === -1) {
213
+ // Resetting the focusedItemIndex to 0 allows keyboard up/down behavior to
214
+ // still work correctly later if the panel is manually tabbed into
215
+ return _this2.setState({
216
+ tookInitialFocus: true,
217
+ focusedItemIndex: 0
218
+ });
219
+ }
220
+
211
221
  // If an item should be focused, focus it (if it exists)
212
222
  if (_this2.state.focusedItemIndex != null && _this2.state.menuItems.length) {
213
223
  var focusedItem = _this2.state.menuItems[_this2.state.focusedItemIndex];
@@ -400,6 +410,12 @@ EuiContextMenuPanelClass.propTypes = {
400
410
  "aria-label": _propTypes.default.string,
401
411
  "data-test-subj": _propTypes.default.string,
402
412
  css: _propTypes.default.any,
413
+ /**
414
+ * Determines the initially focused menu item for keyboard and screen reader users.
415
+ *
416
+ * Can be set to `-1` to prevent autofocus (an uncommon case that must have
417
+ * keyboard accessibility accounted for manually if used)
418
+ */
403
419
  initialFocusedItemIndex: _propTypes.default.number,
404
420
  items: _propTypes.default.arrayOf(_propTypes.default.element.isRequired),
405
421
  onClose: _propTypes.default.func,
@@ -31,7 +31,7 @@ var _data_grid_cell_popover = require("./data_grid_cell_popover");
31
31
  var _focus_utils = require("./focus_utils");
32
32
  var _data_grid_cell = require("./data_grid_cell.styles");
33
33
  var _react2 = require("@emotion/react");
34
- var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "rowHeight", "rowHeightUtils", "isControlColumn"],
34
+ var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "rowHeightsOptions", "rowHeightUtils", "isControlColumn"],
35
35
  _excluded2 = ["width", "popoverContext", "interactiveCellId", "columnType", "className", "column", "style", "rowHeightUtils", "rowHeightsOptions", "rowManager", "pagination"],
36
36
  _excluded3 = ["isExpandable", "style", "className", "data-test-subj"],
37
37
  _excluded4 = ["columnId", "columnIndex", "rowIndex", "visibleRowIndex"];
@@ -55,15 +55,20 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
55
55
  setCellContentsRef = _ref.setCellContentsRef,
56
56
  rowIndex = _ref.rowIndex,
57
57
  colIndex = _ref.colIndex,
58
- rowHeight = _ref.rowHeight,
58
+ rowHeightsOptions = _ref.rowHeightsOptions,
59
59
  rowHeightUtils = _ref.rowHeightUtils,
60
60
  isControlColumn = _ref.isControlColumn,
61
61
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
62
62
  // React is more permissive than the TS types indicate
63
63
  var CellElement = renderCellValue;
64
+
65
+ // Cell height type
66
+ var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
64
67
  var cellHeightType = (0, _react.useMemo)(function () {
65
- return (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
66
- }, [rowHeightUtils, rowHeight]);
68
+ return rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeight) ? 'autoBelowLineCount' : (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
69
+ }, [rowHeightUtils, rowHeight, rowHeightsOptions]);
70
+
71
+ // Classes and styles
67
72
  var classes = (0, _react.useMemo)(function () {
68
73
  return (0, _classnames.default)('euiDataGridRowCell__content', "euiDataGridRowCell__content--".concat(cellHeightType, "Height"), !isControlColumn && {
69
74
  'eui-textBreakWord': cellHeightType !== 'default',
@@ -74,9 +79,9 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
74
79
  var cssStyles = [styles.content.euiDataGridRowCell__content].concat((0, _toConsumableArray2.default)(isControlColumn ? [styles.content.controlColumn, styles.content.autoHeight] : [
75
80
  // Regular data cells should always inherit height from the row wrapper,
76
81
  // except for auto height
77
- cellHeightType === 'auto' ? styles.content.autoHeight : styles.content.defaultHeight]));
82
+ cellHeightType === 'auto' || cellHeightType === 'autoBelowLineCount' ? styles.content.autoHeight : styles.content.defaultHeight]));
78
83
  return (0, _react2.jsx)(RenderTruncatedCellContent, {
79
- hasLineCountTruncation: cellHeightType === 'lineCount' && !isControlColumn,
84
+ hasLineCountTruncation: (cellHeightType === 'lineCount' || cellHeightType === 'autoBelowLineCount') && !isControlColumn,
80
85
  rowHeight: rowHeight
81
86
  }, (0, _react2.jsx)("div", {
82
87
  ref: setCellContentsRef,
@@ -509,6 +514,14 @@ EuiDataGridCellContent.propTypes = {
509
514
  lineCount: _propTypes.default.number,
510
515
  height: _propTypes.default.number
511
516
  }).isRequired]),
517
+ /**
518
+ * Feature flag for custom `lineCount` behavior, where `lineCount` acts like a
519
+ * *max* number of lines (instead of a set number of lines for all rows).
520
+ *
521
+ * This functionality is in beta and has performance implications;
522
+ * we do not yet fully recommend/support it for heavy production usage.
523
+ */
524
+ autoBelowLineCount: _propTypes.default.bool,
512
525
  /**
513
526
  * Defines the height for a specific row. It can be line count or just height.
514
527
  *
@@ -649,6 +662,9 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
649
662
  rowHeightsOptions = _this$props3.rowHeightsOptions,
650
663
  rowIndex = _this$props3.rowIndex;
651
664
  var rowHeightOption = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
665
+ if (rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeightOption)) {
666
+ return; // Using auto height instead
667
+ }
652
668
  var isSingleLine = rowHeightOption == null; // Undefined rowHeightsOptions default to a single line
653
669
  var lineCount = isSingleLine ? 1 : rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getLineCount(rowHeightOption);
654
670
  if (lineCount) {
@@ -953,7 +969,6 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
953
969
  // column width, can be undefined
954
970
  lineHeight: (_rowHeightsOptions$li = rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.lineHeight) !== null && _rowHeightsOptions$li !== void 0 ? _rowHeightsOptions$li : undefined
955
971
  }, cellPropsStyle);
956
- var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
957
972
  var row = rowManager && !_utils.IS_JEST_ENVIRONMENT ? rowManager.getRow({
958
973
  rowIndex: rowIndex,
959
974
  visibleRowIndex: visibleRowIndex,
@@ -985,7 +1000,7 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
985
1000
  isExpandable: isExpandable,
986
1001
  isExpanded: popoverIsOpen,
987
1002
  setCellContentsRef: this.setCellContentsRef,
988
- rowHeight: rowHeight,
1003
+ rowHeightsOptions: rowHeightsOptions,
989
1004
  rowHeightUtils: rowHeightUtils,
990
1005
  isControlColumn: isControlColumn,
991
1006
  rowIndex: rowIndex,
@@ -1369,6 +1384,14 @@ EuiDataGridCell.propTypes = {
1369
1384
  lineCount: _propTypes.default.number,
1370
1385
  height: _propTypes.default.number
1371
1386
  }).isRequired]),
1387
+ /**
1388
+ * Feature flag for custom `lineCount` behavior, where `lineCount` acts like a
1389
+ * *max* number of lines (instead of a set number of lines for all rows).
1390
+ *
1391
+ * This functionality is in beta and has performance implications;
1392
+ * we do not yet fully recommend/support it for heavy production usage.
1393
+ */
1394
+ autoBelowLineCount: _propTypes.default.bool,
1372
1395
  /**
1373
1396
  * Defines the height for a specific row. It can be line count or just height.
1374
1397
  *