@elastic/eui 97.3.0 → 97.3.1-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 (569) hide show
  1. package/dist/{eui_theme_dark.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +1 -1
  2. package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_light.json.d.ts} +1 -1
  3. package/dist/eui_theme_borealis_dark.json +314 -0
  4. package/dist/eui_theme_borealis_dark.json.d.ts +317 -0
  5. package/dist/eui_theme_borealis_light.json +314 -0
  6. package/dist/eui_theme_borealis_light.json.d.ts +317 -0
  7. package/es/components/avatar/avatar.js +10 -4
  8. package/es/components/badge/badge.js +1 -1
  9. package/es/components/badge/badge.styles.js +2 -2
  10. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  11. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  12. package/es/components/badge/color_utils.js +8 -7
  13. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  14. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  15. package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  16. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  17. package/es/components/button/button.js +1 -1
  18. package/es/components/button/button_display/_button_display.styles.js +1 -1
  19. package/es/components/button/button_empty/button_empty.js +1 -1
  20. package/es/components/button/button_group/button_group_button.js +1 -1
  21. package/es/components/button/button_group/button_group_button.styles.js +6 -6
  22. package/es/components/button/button_icon/button_icon.js +1 -1
  23. package/es/components/card/card.styles.js +6 -3
  24. package/es/components/code/code_block_annotations.js +1 -1
  25. package/es/components/code/code_block_line.styles.js +1 -2
  26. package/es/components/code/code_syntax.styles.js +23 -27
  27. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  28. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  29. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  30. package/es/components/color_picker/color_picker.js +9 -3
  31. package/es/components/color_picker/color_picker.styles.js +1 -2
  32. package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  33. package/es/components/combo_box/combo_box.js +9 -6
  34. package/es/components/common.js +0 -28
  35. package/es/components/datagrid/data_grid.styles.js +3 -5
  36. package/es/components/date_picker/react_date_picker.styles.js +2 -1
  37. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  38. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  39. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  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/flyout/flyout.js +1 -1
  45. package/es/components/flyout/flyout.styles.js +7 -2
  46. package/es/components/form/form.styles.js +27 -29
  47. package/es/components/form/range/range_tooltip.styles.js +3 -7
  48. package/es/components/form/switch/switch.js +3 -7
  49. package/es/components/form/switch/switch.styles.js +16 -19
  50. package/es/components/header/header.styles.js +6 -7
  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/loading/loading_chart.styles.js +18 -5
  57. package/es/components/mark/mark.styles.js +2 -9
  58. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  59. package/es/components/markdown_editor/markdown_format.styles.js +2 -2
  60. package/es/components/modal/modal.styles.js +1 -1
  61. package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  62. package/es/components/page/page_header/page_header_content.js +2 -1
  63. package/es/components/page/page_header/page_header_content.styles.js +2 -1
  64. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  65. package/es/components/panel/panel.styles.js +1 -1
  66. package/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
  67. package/es/components/popover/popover_footer.styles.js +1 -1
  68. package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  69. package/es/components/progress/progress.js +1 -1
  70. package/es/components/progress/progress.styles.js +30 -28
  71. package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  72. package/es/components/side_nav/side_nav_item.styles.js +1 -2
  73. package/es/components/skeleton/utils.js +5 -7
  74. package/es/components/steps/step_number.styles.js +1 -1
  75. package/es/components/table/table_cells_shared.styles.js +2 -7
  76. package/es/components/table/table_row.styles.js +8 -10
  77. package/es/components/text/text.styles.js +2 -2
  78. package/es/components/text/text_color.js +1 -1
  79. package/es/components/text/text_color.styles.js +6 -5
  80. package/es/components/toast/toast.styles.js +1 -1
  81. package/es/components/token/token.js +10 -4
  82. package/es/components/token/token.styles.js +12 -3
  83. package/es/components/token/token_map.js +243 -1
  84. package/es/components/tool_tip/tool_tip.styles.js +12 -14
  85. package/es/components/tour/_tour_footer.styles.js +2 -4
  86. package/es/components/tree_view/tree_view_item.styles.js +1 -2
  87. package/es/global_styling/functions/size.js +1 -17
  88. package/es/global_styling/mixins/_button.js +159 -0
  89. package/es/global_styling/mixins/_color.js +40 -31
  90. package/es/global_styling/mixins/index.js +2 -1
  91. package/es/global_styling/reset/global_styles.js +2 -2
  92. package/es/global_styling/variables/_colors_vis.js +1 -53
  93. package/es/global_styling/variables/animations.js +1 -22
  94. package/es/global_styling/variables/breakpoint.js +1 -7
  95. package/es/global_styling/variables/levels.js +1 -17
  96. package/es/global_styling/variables/shadow.js +1 -11
  97. package/es/global_styling/variables/size.js +1 -1
  98. package/es/global_styling/variables/typography.js +1 -32
  99. package/es/services/color/eui_palettes.js +116 -47
  100. package/es/services/color/index.js +1 -0
  101. package/es/services/color/vis_color_store.js +13 -0
  102. package/es/services/index.js +1 -1
  103. package/es/services/theme/provider.js +26 -2
  104. package/es/services/theme/types.js +1 -6
  105. package/es/services/theme/utils.js +1 -303
  106. package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
  107. package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
  108. package/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
  109. package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
  110. package/es/themes/amsterdam/global_styling/variables/_components.js +579 -0
  111. package/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
  112. package/es/themes/amsterdam/theme.js +7 -1
  113. package/es/themes/index.js +1 -1
  114. package/es/themes/themes.js +9 -6
  115. package/eui.d.ts +2170 -2620
  116. package/i18ntokens.json +4 -4
  117. package/lib/components/avatar/avatar.js +8 -2
  118. package/lib/components/badge/badge.js +1 -1
  119. package/lib/components/badge/badge.styles.js +2 -2
  120. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  121. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  122. package/lib/components/badge/color_utils.js +13 -12
  123. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  124. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  125. package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  126. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  127. package/lib/components/button/button.js +1 -1
  128. package/lib/components/button/button_display/_button_display.styles.js +1 -1
  129. package/lib/components/button/button_empty/button_empty.js +1 -1
  130. package/lib/components/button/button_group/button_group_button.js +1 -1
  131. package/lib/components/button/button_group/button_group_button.styles.js +5 -5
  132. package/lib/components/button/button_icon/button_icon.js +1 -1
  133. package/lib/components/card/card.styles.js +5 -2
  134. package/lib/components/code/code_block_annotations.js +1 -1
  135. package/lib/components/code/code_block_line.styles.js +1 -2
  136. package/lib/components/code/code_syntax.styles.js +23 -27
  137. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  138. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  139. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  140. package/lib/components/color_picker/color_picker.js +8 -2
  141. package/lib/components/color_picker/color_picker.styles.js +1 -2
  142. package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  143. package/lib/components/combo_box/combo_box.js +9 -6
  144. package/lib/components/common.js +0 -28
  145. package/lib/components/datagrid/data_grid.styles.js +3 -5
  146. package/lib/components/date_picker/react_date_picker.styles.js +3 -2
  147. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  148. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  149. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  150. package/lib/components/drag_and_drop/droppable.styles.js +2 -4
  151. package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  152. package/lib/components/filter_group/filter_select_item.styles.js +1 -2
  153. package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  154. package/lib/components/flyout/flyout.js +1 -1
  155. package/lib/components/flyout/flyout.styles.js +7 -2
  156. package/lib/components/form/form.styles.js +26 -28
  157. package/lib/components/form/range/range_tooltip.styles.js +3 -7
  158. package/lib/components/form/switch/switch.js +3 -7
  159. package/lib/components/form/switch/switch.styles.js +16 -19
  160. package/lib/components/header/header.styles.js +5 -6
  161. package/lib/components/icon/icon.styles.js +9 -8
  162. package/lib/components/icon/named_colors.js +1 -1
  163. package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  164. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  165. package/lib/components/list_group/list_group_item.styles.js +8 -10
  166. package/lib/components/loading/loading_chart.styles.js +18 -5
  167. package/lib/components/mark/mark.styles.js +2 -9
  168. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  169. package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  170. package/lib/components/modal/modal.styles.js +1 -1
  171. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  172. package/lib/components/page/page_header/page_header_content.js +2 -1
  173. package/lib/components/page/page_header/page_header_content.styles.js +2 -1
  174. package/lib/components/page_template/inner/page_inner.styles.js +1 -1
  175. package/lib/components/panel/panel.styles.js +1 -1
  176. package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  177. package/lib/components/popover/popover_footer.styles.js +1 -1
  178. package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  179. package/lib/components/progress/progress.js +1 -1
  180. package/lib/components/progress/progress.styles.js +29 -27
  181. package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  182. package/lib/components/side_nav/side_nav_item.styles.js +1 -2
  183. package/lib/components/skeleton/utils.js +4 -6
  184. package/lib/components/steps/step_number.styles.js +1 -1
  185. package/lib/components/table/table_cells_shared.styles.js +2 -7
  186. package/lib/components/table/table_row.styles.js +7 -9
  187. package/lib/components/text/text.styles.js +1 -1
  188. package/lib/components/text/text_color.js +1 -1
  189. package/lib/components/text/text_color.styles.js +6 -5
  190. package/lib/components/toast/toast.styles.js +1 -1
  191. package/lib/components/token/token.js +12 -4
  192. package/lib/components/token/token.styles.js +12 -3
  193. package/lib/components/token/token_map.js +244 -2
  194. package/lib/components/tool_tip/tool_tip.styles.js +12 -14
  195. package/lib/components/tour/_tour_footer.styles.js +2 -4
  196. package/lib/components/tree_view/tree_view_item.styles.js +1 -2
  197. package/lib/global_styling/functions/size.js +7 -26
  198. package/lib/global_styling/mixins/_button.js +164 -0
  199. package/lib/global_styling/mixins/_color.js +39 -30
  200. package/lib/global_styling/mixins/index.js +11 -0
  201. package/lib/global_styling/reset/global_styles.js +1 -1
  202. package/lib/global_styling/variables/_colors_vis.js +6 -61
  203. package/lib/global_styling/variables/animations.js +25 -31
  204. package/lib/global_styling/variables/breakpoint.js +7 -16
  205. package/lib/global_styling/variables/levels.js +7 -26
  206. package/lib/global_styling/variables/shadow.js +13 -20
  207. package/lib/global_styling/variables/size.js +7 -10
  208. package/lib/global_styling/variables/typography.js +19 -41
  209. package/lib/services/color/eui_palettes.js +116 -47
  210. package/lib/services/color/index.js +8 -0
  211. package/lib/services/color/vis_color_store.js +18 -0
  212. package/lib/services/index.js +7 -0
  213. package/lib/services/theme/provider.js +26 -2
  214. package/lib/services/theme/types.js +13 -14
  215. package/lib/services/theme/utils.js +54 -303
  216. package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
  217. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
  218. package/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  219. package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  220. package/lib/themes/amsterdam/global_styling/variables/_components.js +583 -0
  221. package/lib/themes/amsterdam/global_styling/variables/_forms.js +157 -0
  222. package/lib/themes/amsterdam/theme.js +7 -1
  223. package/lib/themes/index.js +7 -0
  224. package/lib/themes/themes.js +10 -7
  225. package/optimize/es/components/avatar/avatar.js +10 -4
  226. package/optimize/es/components/badge/badge.js +1 -1
  227. package/optimize/es/components/badge/badge.styles.js +2 -2
  228. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
  229. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
  230. package/optimize/es/components/badge/color_utils.js +8 -7
  231. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  232. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  233. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
  234. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  235. package/optimize/es/components/button/button.js +1 -1
  236. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
  237. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  238. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  239. package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
  240. package/optimize/es/components/button/button_icon/button_icon.js +1 -1
  241. package/optimize/es/components/card/card.styles.js +6 -3
  242. package/optimize/es/components/code/code_block_annotations.js +1 -1
  243. package/optimize/es/components/code/code_block_line.styles.js +1 -2
  244. package/optimize/es/components/code/code_syntax.styles.js +23 -27
  245. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  246. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  247. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  248. package/optimize/es/components/color_picker/color_picker.js +9 -3
  249. package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
  250. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
  251. package/optimize/es/components/combo_box/combo_box.js +9 -6
  252. package/optimize/es/components/common.js +0 -28
  253. package/optimize/es/components/datagrid/data_grid.styles.js +3 -5
  254. package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
  255. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  256. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
  257. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
  258. package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
  259. package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
  260. package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
  261. package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
  262. package/optimize/es/components/flyout/flyout.js +1 -1
  263. package/optimize/es/components/flyout/flyout.styles.js +7 -2
  264. package/optimize/es/components/form/form.styles.js +27 -29
  265. package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
  266. package/optimize/es/components/form/switch/switch.js +3 -2
  267. package/optimize/es/components/form/switch/switch.styles.js +16 -19
  268. package/optimize/es/components/header/header.styles.js +6 -7
  269. package/optimize/es/components/icon/icon.styles.js +9 -8
  270. package/optimize/es/components/icon/named_colors.js +1 -1
  271. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
  272. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  273. package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
  274. package/optimize/es/components/loading/loading_chart.styles.js +13 -5
  275. package/optimize/es/components/mark/mark.styles.js +2 -9
  276. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  277. package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
  278. package/optimize/es/components/modal/modal.styles.js +1 -1
  279. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
  280. package/optimize/es/components/page/page_header/page_header_content.js +2 -1
  281. package/optimize/es/components/page/page_header/page_header_content.styles.js +2 -1
  282. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  283. package/optimize/es/components/panel/panel.styles.js +1 -1
  284. package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
  285. package/optimize/es/components/popover/popover_footer.styles.js +1 -1
  286. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  287. package/optimize/es/components/progress/progress.js +1 -1
  288. package/optimize/es/components/progress/progress.styles.js +30 -28
  289. package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  290. package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
  291. package/optimize/es/components/skeleton/utils.js +5 -7
  292. package/optimize/es/components/steps/step_number.styles.js +1 -1
  293. package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
  294. package/optimize/es/components/table/table_row.styles.js +8 -10
  295. package/optimize/es/components/text/text.styles.js +2 -2
  296. package/optimize/es/components/text/text_color.js +1 -1
  297. package/optimize/es/components/text/text_color.styles.js +6 -5
  298. package/optimize/es/components/toast/toast.styles.js +1 -1
  299. package/optimize/es/components/token/token.js +10 -4
  300. package/optimize/es/components/token/token.styles.js +12 -3
  301. package/optimize/es/components/token/token_map.js +243 -1
  302. package/optimize/es/components/tool_tip/tool_tip.styles.js +12 -14
  303. package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
  304. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
  305. package/optimize/es/global_styling/functions/size.js +1 -17
  306. package/optimize/es/global_styling/mixins/_button.js +159 -0
  307. package/optimize/es/global_styling/mixins/_color.js +40 -31
  308. package/optimize/es/global_styling/mixins/index.js +2 -1
  309. package/optimize/es/global_styling/reset/global_styles.js +2 -2
  310. package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
  311. package/optimize/es/global_styling/variables/animations.js +1 -22
  312. package/optimize/es/global_styling/variables/breakpoint.js +1 -7
  313. package/optimize/es/global_styling/variables/levels.js +1 -17
  314. package/optimize/es/global_styling/variables/shadow.js +1 -11
  315. package/optimize/es/global_styling/variables/size.js +1 -1
  316. package/optimize/es/global_styling/variables/typography.js +1 -32
  317. package/optimize/es/services/color/eui_palettes.js +116 -47
  318. package/optimize/es/services/color/index.js +1 -0
  319. package/optimize/es/services/color/vis_color_store.js +13 -0
  320. package/optimize/es/services/index.js +1 -1
  321. package/optimize/es/services/theme/provider.js +26 -2
  322. package/optimize/es/services/theme/types.js +1 -6
  323. package/optimize/es/services/theme/utils.js +1 -295
  324. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
  325. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
  326. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
  327. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
  328. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +571 -0
  329. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +145 -0
  330. package/optimize/es/themes/amsterdam/theme.js +7 -1
  331. package/optimize/es/themes/index.js +1 -1
  332. package/optimize/es/themes/themes.js +9 -6
  333. package/optimize/lib/components/avatar/avatar.js +8 -2
  334. package/optimize/lib/components/badge/badge.js +1 -1
  335. package/optimize/lib/components/badge/badge.styles.js +2 -2
  336. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
  337. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
  338. package/optimize/lib/components/badge/color_utils.js +13 -12
  339. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  340. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  341. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
  342. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  343. package/optimize/lib/components/button/button.js +1 -1
  344. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
  345. package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
  346. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  347. package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
  348. package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
  349. package/optimize/lib/components/card/card.styles.js +5 -2
  350. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  351. package/optimize/lib/components/code/code_block_line.styles.js +1 -2
  352. package/optimize/lib/components/code/code_syntax.styles.js +23 -27
  353. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  354. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  355. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  356. package/optimize/lib/components/color_picker/color_picker.js +8 -2
  357. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
  358. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
  359. package/optimize/lib/components/combo_box/combo_box.js +9 -6
  360. package/optimize/lib/components/common.js +0 -28
  361. package/optimize/lib/components/datagrid/data_grid.styles.js +3 -5
  362. package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
  363. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  364. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  365. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  366. package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
  367. package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
  368. package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
  369. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
  370. package/optimize/lib/components/flyout/flyout.js +1 -1
  371. package/optimize/lib/components/flyout/flyout.styles.js +7 -2
  372. package/optimize/lib/components/form/form.styles.js +26 -28
  373. package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
  374. package/optimize/lib/components/form/switch/switch.js +3 -2
  375. package/optimize/lib/components/form/switch/switch.styles.js +16 -19
  376. package/optimize/lib/components/header/header.styles.js +5 -6
  377. package/optimize/lib/components/icon/icon.styles.js +9 -8
  378. package/optimize/lib/components/icon/named_colors.js +1 -1
  379. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
  380. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  381. package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
  382. package/optimize/lib/components/loading/loading_chart.styles.js +13 -5
  383. package/optimize/lib/components/mark/mark.styles.js +2 -9
  384. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  385. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
  386. package/optimize/lib/components/modal/modal.styles.js +1 -1
  387. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
  388. package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
  389. package/optimize/lib/components/page/page_header/page_header_content.styles.js +2 -1
  390. package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
  391. package/optimize/lib/components/panel/panel.styles.js +1 -1
  392. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  393. package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
  394. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  395. package/optimize/lib/components/progress/progress.js +1 -1
  396. package/optimize/lib/components/progress/progress.styles.js +29 -27
  397. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  398. package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
  399. package/optimize/lib/components/skeleton/utils.js +4 -6
  400. package/optimize/lib/components/steps/step_number.styles.js +1 -1
  401. package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
  402. package/optimize/lib/components/table/table_row.styles.js +7 -9
  403. package/optimize/lib/components/text/text.styles.js +1 -1
  404. package/optimize/lib/components/text/text_color.js +1 -1
  405. package/optimize/lib/components/text/text_color.styles.js +6 -5
  406. package/optimize/lib/components/toast/toast.styles.js +1 -1
  407. package/optimize/lib/components/token/token.js +13 -4
  408. package/optimize/lib/components/token/token.styles.js +12 -3
  409. package/optimize/lib/components/token/token_map.js +244 -2
  410. package/optimize/lib/components/tool_tip/tool_tip.styles.js +12 -14
  411. package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
  412. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
  413. package/optimize/lib/global_styling/functions/size.js +7 -27
  414. package/optimize/lib/global_styling/mixins/_button.js +165 -0
  415. package/optimize/lib/global_styling/mixins/_color.js +39 -30
  416. package/optimize/lib/global_styling/mixins/index.js +11 -0
  417. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  418. package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
  419. package/optimize/lib/global_styling/variables/animations.js +25 -31
  420. package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
  421. package/optimize/lib/global_styling/variables/levels.js +7 -26
  422. package/optimize/lib/global_styling/variables/shadow.js +13 -20
  423. package/optimize/lib/global_styling/variables/size.js +7 -10
  424. package/optimize/lib/global_styling/variables/typography.js +19 -41
  425. package/optimize/lib/services/color/eui_palettes.js +116 -47
  426. package/optimize/lib/services/color/index.js +8 -0
  427. package/optimize/lib/services/color/vis_color_store.js +18 -0
  428. package/optimize/lib/services/index.js +7 -0
  429. package/optimize/lib/services/theme/provider.js +26 -2
  430. package/optimize/lib/services/theme/types.js +13 -14
  431. package/optimize/lib/services/theme/utils.js +54 -296
  432. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
  433. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  434. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  435. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  436. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +576 -0
  437. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +150 -0
  438. package/optimize/lib/themes/amsterdam/theme.js +7 -1
  439. package/optimize/lib/themes/index.js +7 -0
  440. package/optimize/lib/themes/themes.js +10 -7
  441. package/package.json +8 -3
  442. package/src/global_styling/functions/_index.scss +1 -5
  443. package/src/global_styling/index.scss +1 -16
  444. package/src/global_styling/variables/_animations.scss +1 -8
  445. package/src/global_styling/variables/_borders.scss +1 -9
  446. package/src/global_styling/variables/_buttons.scss +1 -18
  447. package/src/global_styling/variables/_colors_vis.scss +1 -70
  448. package/src/global_styling/variables/_font_weight.scss +1 -7
  449. package/src/global_styling/variables/_form.scss +2 -21
  450. package/src/global_styling/variables/_responsive.scss +1 -9
  451. package/src/global_styling/variables/_shadows.scss +1 -1
  452. package/src/global_styling/variables/_size.scss +1 -15
  453. package/src/global_styling/variables/_states.scss +1 -14
  454. package/src/global_styling/variables/_typography.scss +1 -75
  455. package/src/global_styling/variables/_z_index.scss +1 -33
  456. package/src/themes/amsterdam/_colors_dark.scss +80 -8
  457. package/src/themes/amsterdam/_colors_light.scss +80 -8
  458. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +72 -0
  459. package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
  460. package/src/themes/amsterdam/global_styling/variables/_index.scss +2 -0
  461. package/test-env/components/avatar/avatar.js +8 -2
  462. package/test-env/components/badge/badge.js +1 -1
  463. package/test-env/components/badge/badge.styles.js +2 -2
  464. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  465. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
  466. package/test-env/components/badge/color_utils.js +13 -12
  467. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  468. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  469. package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
  470. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
  471. package/test-env/components/button/button.js +1 -1
  472. package/test-env/components/button/button_display/_button_display.styles.js +1 -1
  473. package/test-env/components/button/button_empty/button_empty.js +1 -1
  474. package/test-env/components/button/button_group/button_group_button.js +1 -1
  475. package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
  476. package/test-env/components/button/button_icon/button_icon.js +1 -1
  477. package/test-env/components/card/card.styles.js +5 -2
  478. package/test-env/components/code/code_block_annotations.js +1 -1
  479. package/test-env/components/code/code_block_line.styles.js +1 -2
  480. package/test-env/components/code/code_syntax.styles.js +23 -27
  481. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
  482. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
  483. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
  484. package/test-env/components/color_picker/color_picker.js +8 -2
  485. package/test-env/components/color_picker/color_picker.styles.js +1 -2
  486. package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
  487. package/test-env/components/combo_box/combo_box.js +9 -6
  488. package/test-env/components/common.js +0 -28
  489. package/test-env/components/datagrid/data_grid.styles.js +3 -5
  490. package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
  491. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
  492. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
  493. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
  494. package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
  495. package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
  496. package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
  497. package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
  498. package/test-env/components/flyout/flyout.styles.js +7 -2
  499. package/test-env/components/form/form.styles.js +26 -28
  500. package/test-env/components/form/range/range_tooltip.styles.js +3 -7
  501. package/test-env/components/form/switch/switch.js +3 -2
  502. package/test-env/components/form/switch/switch.styles.js +16 -19
  503. package/test-env/components/header/header.styles.js +5 -6
  504. package/test-env/components/icon/icon.styles.js +9 -8
  505. package/test-env/components/icon/named_colors.js +1 -1
  506. package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
  507. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
  508. package/test-env/components/list_group/list_group_item.styles.js +8 -10
  509. package/test-env/components/loading/loading_chart.styles.js +13 -5
  510. package/test-env/components/mark/mark.styles.js +2 -9
  511. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
  512. package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
  513. package/test-env/components/modal/modal.styles.js +1 -1
  514. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
  515. package/test-env/components/page/page_header/page_header_content.js +2 -1
  516. package/test-env/components/page/page_header/page_header_content.styles.js +2 -1
  517. package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
  518. package/test-env/components/panel/panel.styles.js +1 -1
  519. package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
  520. package/test-env/components/popover/popover_footer.styles.js +1 -1
  521. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
  522. package/test-env/components/progress/progress.js +1 -1
  523. package/test-env/components/progress/progress.styles.js +29 -27
  524. package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
  525. package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
  526. package/test-env/components/skeleton/utils.js +4 -6
  527. package/test-env/components/steps/step_number.styles.js +1 -1
  528. package/test-env/components/table/table_cells_shared.styles.js +2 -7
  529. package/test-env/components/table/table_row.styles.js +7 -9
  530. package/test-env/components/text/text.styles.js +1 -1
  531. package/test-env/components/text/text_color.js +1 -1
  532. package/test-env/components/text/text_color.styles.js +6 -5
  533. package/test-env/components/toast/toast.styles.js +1 -1
  534. package/test-env/components/token/token.js +13 -4
  535. package/test-env/components/token/token.styles.js +12 -3
  536. package/test-env/components/token/token_map.js +244 -2
  537. package/test-env/components/tool_tip/tool_tip.styles.js +12 -14
  538. package/test-env/components/tour/_tour_footer.styles.js +2 -4
  539. package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
  540. package/test-env/global_styling/functions/size.js +7 -27
  541. package/test-env/global_styling/mixins/_button.js +165 -0
  542. package/test-env/global_styling/mixins/_color.js +39 -30
  543. package/test-env/global_styling/mixins/index.js +11 -0
  544. package/test-env/global_styling/reset/global_styles.js +1 -1
  545. package/test-env/global_styling/variables/_colors_vis.js +6 -61
  546. package/test-env/global_styling/variables/animations.js +25 -31
  547. package/test-env/global_styling/variables/breakpoint.js +7 -16
  548. package/test-env/global_styling/variables/levels.js +7 -26
  549. package/test-env/global_styling/variables/shadow.js +13 -20
  550. package/test-env/global_styling/variables/size.js +7 -10
  551. package/test-env/global_styling/variables/typography.js +19 -41
  552. package/test-env/services/color/eui_palettes.js +116 -47
  553. package/test-env/services/color/index.js +8 -0
  554. package/test-env/services/color/vis_color_store.js +18 -0
  555. package/test-env/services/index.js +7 -0
  556. package/test-env/services/theme/provider.js +26 -2
  557. package/test-env/services/theme/types.js +13 -14
  558. package/test-env/services/theme/utils.js +54 -296
  559. package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
  560. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
  561. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +589 -19
  562. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
  563. package/test-env/themes/amsterdam/global_styling/variables/_components.js +576 -0
  564. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +150 -0
  565. package/test-env/themes/amsterdam/theme.js +7 -1
  566. package/test-env/themes/index.js +7 -0
  567. package/test-env/themes/themes.js +10 -7
  568. /package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +0 -0
  569. /package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +0 -0
@@ -9,7 +9,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
 
10
10
  import { css } from '@emotion/react';
11
11
  import { euiFontSize, euiFocusRing, euiTextTruncate, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, mathWithUnits } from '../../global_styling';
12
- import { transparentize } from '../../services';
13
12
  import { euiBadgeColors } from './color_utils';
14
13
  var _ref = process.env.NODE_ENV === "production" ? {
15
14
  name: "1hw5vc4-clickable",
@@ -39,6 +38,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
39
38
  hollow: /*#__PURE__*/css(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
40
39
  primary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
41
40
  accent: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
41
+ accentSecondary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accentSecondary), ";label:accentSecondary;"),
42
42
  warning: /*#__PURE__*/css(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
43
43
  danger: /*#__PURE__*/css(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
44
44
  success: /*#__PURE__*/css(setBadgeColorVars(badgeColors.success), ";label:success;"),
@@ -62,7 +62,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
62
62
  },
63
63
  // Clickable icons (iconOnClick)
64
64
  iconButton: {
65
- euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", transparentize(euiTheme.colors.ghost, 0.8), ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
65
+ euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", euiTheme.components.badgeIconButtonBackgroundHover, ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
66
66
  return x / 2;
67
67
  }), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
68
68
  right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:right;"),
@@ -19,7 +19,7 @@ import { EuiToolTip } from '../../tool_tip';
19
19
  import { EuiIcon } from '../../icon';
20
20
  import { euiBetaBadgeStyles } from './beta_badge.styles';
21
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
22
- export var COLORS = ['accent', 'subdued', 'hollow'];
22
+ export var COLORS = ['accent', 'accentSecondary', 'subdued', 'hollow'];
23
23
  export var SIZES = ['s', 'm'];
24
24
  export var ALIGNMENTS = ['baseline', 'middle'];
25
25
 
@@ -44,6 +44,7 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
44
44
  }), ";};label:euiBetaBadge;"),
45
45
  // Colors
46
46
  accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
47
+ accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
47
48
  subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
48
49
  hollow: /*#__PURE__*/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;"),
49
50
  // Font sizes
@@ -19,12 +19,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  */
20
20
 
21
21
  import chroma from 'chroma-js';
22
- import { isColorDark, tint } from '../../services';
23
- import { euiButtonColor, euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins';
22
+ import { isColorDark } from '../../services';
23
+ import { euiButtonColor, euiButtonFillColor } from '../../global_styling/mixins/_button';
24
24
  import { chromaValid, parseColor } from '../color_picker/utils';
25
25
  export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
26
- var euiTheme = euiThemeContext.euiTheme,
27
- colorMode = euiThemeContext.colorMode;
26
+ var euiTheme = euiThemeContext.euiTheme;
28
27
  return {
29
28
  // Colors shared between buttons and badges
30
29
  primary: euiButtonFillColor(euiThemeContext, 'primary'),
@@ -32,16 +31,18 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
32
31
  warning: euiButtonFillColor(euiThemeContext, 'warning'),
33
32
  danger: euiButtonFillColor(euiThemeContext, 'danger'),
34
33
  accent: euiButtonFillColor(euiThemeContext, 'accent'),
34
+ accentSecondary: euiButtonFillColor(euiThemeContext, 'accentSecondary'),
35
35
  disabled: euiButtonColor(euiThemeContext, 'disabled'),
36
36
  // Colors unique to badges
37
37
  default: getBadgeColors(euiThemeContext, euiTheme.colors.lightShade),
38
38
  // Hollow has a border and is used for autocompleters and beta badges
39
39
  hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
40
- borderColor: colorMode === 'DARK' ? tint(euiTheme.border.color, 0.15) : euiTheme.border.color
40
+ borderColor: euiTheme.components.badgeBorderColorHollow
41
41
  }),
42
42
  // Colors used by beta and notification badges
43
- subdued: getBadgeColors(euiThemeContext, tint(euiTheme.colors.lightShade, 0.3)),
44
- accentText: getBadgeColors(euiThemeContext, euiTheme.colors.accentText)
43
+ subdued: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackgroundSubdued),
44
+ accentText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccent),
45
+ accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
45
46
  };
46
47
  };
47
48
  export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
@@ -16,7 +16,7 @@ import classNames from 'classnames';
16
16
  import { useEuiMemoizedStyles } from '../../../services';
17
17
  import { euiNotificationBadgeStyles } from './badge_notification.styles';
18
18
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
- export var COLORS = ['accent', 'subdued', 'success'];
19
+ export var COLORS = ['accent', 'accentSecondary', 'subdued', 'success'];
20
20
  export var SIZES = ['s', 'm'];
21
21
  export var EuiNotificationBadge = function EuiNotificationBadge(_ref) {
22
22
  var children = _ref.children,
@@ -23,6 +23,7 @@ export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiT
23
23
  })), " ", logicalCSS('min-width', euiTheme.size.l), ";;label:m;"),
24
24
  // Colors
25
25
  accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
26
+ accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
26
27
  success: /*#__PURE__*/css(badgeColors.success, ";label:success;"),
27
28
  subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;")
28
29
  };
@@ -10,7 +10,6 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
10
10
 
11
11
  import { css, keyframes } from '@emotion/react';
12
12
  import { euiCanAnimate } from '../../global_styling';
13
- import { shade } from '../../services';
14
13
  import { euiShadowFlat } from '../../themes/amsterdam/global_styling/mixins';
15
14
  var euiBottomBarAppear = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n"])));
16
15
  export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
@@ -18,7 +17,7 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
18
17
  return {
19
18
  // Base
20
19
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
21
- euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", shade(euiTheme.colors.lightestShade, 0.5), ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
20
+ euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", euiTheme.components.bottomBarBackground, ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
22
21
  static: /*#__PURE__*/css(";label:static;"),
23
22
  // Default
24
23
  fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
@@ -7,16 +7,14 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { tintOrShade } from '../../services/color';
11
10
  import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
12
- import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
11
+ import { euiButtonColor } from '../../global_styling/mixins/_button';
13
12
 
14
13
  /**
15
14
  * Styles cast to inner <a>, <button>, <span> elements
16
15
  */
17
16
  export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
18
- var euiTheme = euiThemeContext.euiTheme,
19
- colorMode = euiThemeContext.colorMode;
17
+ var euiTheme = euiThemeContext.euiTheme;
20
18
 
21
19
  // Reuse button colors for `type="application`" clickable breadcrumbs
22
20
  var applicationButtonColors = euiButtonColor(euiThemeContext, 'primary');
@@ -24,8 +22,8 @@ export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiT
24
22
  // Create custom darker gray colors for non-clickable application breadcrumbs
25
23
  // The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
26
24
  var applicationTextColors = {
27
- backgroundColor: tintOrShade(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
28
- color: tintOrShade(euiTheme.colors.darkestShade, 0.2, colorMode)
25
+ backgroundColor: euiTheme.components.breadcrumbsApplicationBackground,
26
+ color: euiTheme.components.breadcrumbsApplicationColor
29
27
  };
30
28
  return {
31
29
  euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
13
13
  import React from 'react';
14
14
  import PropTypes from "prop-types";
15
15
  import classNames from 'classnames';
16
- import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
16
+ import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
17
17
  import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_display';
18
18
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
19
  export var COLORS = BUTTON_COLORS;
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
  import { css } from '@emotion/react';
10
10
  import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
11
- import { euiButtonSizeMap } from '../../../themes/amsterdam/global_styling/mixins';
11
+ import { euiButtonSizeMap } from '../../../global_styling/mixins';
12
12
  // Provides a solid reset and base for handling sizing layout
13
13
  // Does not include any visual styles
14
14
  export var euiButtonBaseCSS = function euiButtonBaseCSS() {
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  import classNames from 'classnames';
22
22
  import { useEuiMemoizedStyles, getSecureRelForTarget } from '../../../services';
23
23
  import { EuiButtonDisplayContent } from '../button_display/_button_display_content';
24
- import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
24
+ import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
25
25
  import { isButtonDisabled } from '../button_display/_button_display';
26
26
  import { euiButtonEmptyStyles } from './button_empty.styles';
27
27
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -26,7 +26,7 @@ import classNames from 'classnames';
26
26
  import PropTypes from "prop-types";
27
27
  import React from 'react';
28
28
  import { useEuiMemoizedStyles } from '../../../services';
29
- import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
29
+ import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
30
30
  import { useInnerText } from '../../inner_text';
31
31
  import { EuiButtonDisplay } from '../button_display/_button_display';
32
32
  import { euiButtonGroupButtonStyles, _compressedButtonFocusColors } from './button_group_button.styles';
@@ -20,9 +20,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
20
20
  */
21
21
 
22
22
  import { css } from '@emotion/react';
23
- import { makeDisabledContrastColor, transparentize } from '../../../services';
23
+ import { makeDisabledContrastColor } from '../../../services';
24
24
  import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate } from '../../../global_styling';
25
- import { euiButtonFillColor, BUTTON_COLORS } from '../../../themes/amsterdam/global_styling/mixins/button';
25
+ import { euiButtonFillColor, BUTTON_COLORS } from '../../../global_styling/mixins/_button';
26
26
  import { euiScreenReaderOnly } from '../../accessibility';
27
27
  import { euiFormVariables } from '../../form/form.styles';
28
28
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -54,15 +54,15 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
54
54
  };
55
55
  return {
56
56
  // Base
57
- euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;", euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;};label:euiButtonGroupButton;"),
57
+ euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:1;}", euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;};label:euiButtonGroupButton;"),
58
58
  iconOnly: /*#__PURE__*/css("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
59
59
  // Sizes
60
60
  uncompressed: {
61
- uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
61
+ uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";};label:uncompressed;"),
62
62
  get borders() {
63
63
  var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
64
- var selectedColor = transparentize(euiTheme.colors.emptyShade, 0.2);
65
- var unselectedColor = transparentize(euiTheme.colors.fullShade, 0.1);
64
+ var selectedColor = euiTheme.components.buttonGroupBorderColorSelected;
65
+ var unselectedColor = euiTheme.components.buttonGroupBorderColor;
66
66
  var borderWidth = euiTheme.border.width.thin;
67
67
 
68
68
  // "Borders" between buttons should be present between two of the same colored buttons,
@@ -16,7 +16,7 @@ import classNames from 'classnames';
16
16
  import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
17
17
  import { EuiIcon } from '../../icon';
18
18
  import { EuiLoadingSpinner } from '../../loading';
19
- import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
19
+ import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/_button';
20
20
  import { isButtonDisabled } from '../button_display/_button_display';
21
21
  import { euiButtonIconStyles, _emptyHoverStyles } from './button_icon.styles';
22
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { euiPaddingSize, euiSupportsHas, logicalCSS, logicals, logicalTextAlignCSS } from '../../global_styling';
12
- import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins';
11
+ import { euiPaddingSize, euiSupportsHas, logicalCSS, logicals, logicalTextAlignCSS, mathWithUnits } from '../../global_styling';
12
+ import { euiButtonColor } from '../../global_styling/mixins';
13
13
  var paddingKey = 'm';
14
14
  var halfPaddingKey = 's';
15
15
 
@@ -61,6 +61,9 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
61
61
  export var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize) {
62
62
  var euiTheme = euiThemeContext.euiTheme;
63
63
  var paddingAmount = euiPaddingSize(euiThemeContext, paddingSize);
64
+ var cardPaddingAmount = paddingAmount ? mathWithUnits([paddingAmount, euiTheme.border.width.thin], function (x, y) {
65
+ return x + y;
66
+ }) : '0';
64
67
  var spacing = euiPaddingSize(euiThemeContext, paddingKey);
65
68
  var halfSpacing = euiPaddingSize(euiThemeContext, halfPaddingKey);
66
69
  return {
@@ -99,7 +102,7 @@ export var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize)
99
102
  disabled: _ref2
100
103
  },
101
104
  image: {
102
- euiCard__image: /*#__PURE__*/css("position:relative;overflow:hidden;", logicalCSS('width', "calc(100% + (".concat(paddingAmount, " * 2))")), " ", logicalCSS('left', "-".concat(paddingAmount)), " ", logicalCSS('top', "-".concat(paddingAmount)), logicalCSS('margin-bottom', "-".concat(paddingAmount)), logicalCSS('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");img{", logicalCSS('width', '100%'), ";};label:euiCard__image;"),
105
+ euiCard__image: /*#__PURE__*/css("position:relative;overflow:hidden;", logicalCSS('width', "calc(100% + (".concat(cardPaddingAmount, " * 2))")), " ", logicalCSS('left', "-".concat(cardPaddingAmount)), " ", logicalCSS('top', "-".concat(cardPaddingAmount)), logicalCSS('margin-bottom', "-".concat(paddingAmount)), logicalCSS('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");img{", logicalCSS('width', '100%'), ";};label:euiCard__image;"),
103
106
  transparent: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";;label:transparent;")
104
107
  },
105
108
  icon: {
@@ -19,7 +19,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
19
19
  import React, { useState } from 'react';
20
20
  import PropTypes from "prop-types";
21
21
  import { useEuiTheme, useEuiMemoizedStyles } from '../../services';
22
- import { useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
22
+ import { useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
23
23
  import { useEuiI18n } from '../i18n';
24
24
  import { EuiPopover } from '../popover';
25
25
  import { EuiIcon } from '../icon';
@@ -15,7 +15,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
15
15
  */
16
16
 
17
17
  import { css } from '@emotion/css';
18
- import { euiBackgroundColor } from '../../global_styling';
19
18
  // Note: These styles must be in a separate file due to using `css` from `@emotion/css`
20
19
  // (i.e., applying styles in vanilla JS / directly to DOM nodes instead of React)
21
20
 
@@ -40,7 +39,7 @@ export var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeCont
40
39
  }),
41
40
  lineText: {
42
41
  euiCodeBlock__lineText: /*#__PURE__*/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;"),
43
- isHighlighted: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
42
+ isHighlighted: /*#__PURE__*/css("background:", euiTheme.colors.backgroundBasePrimary, ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
44
43
  },
45
44
  lineNumber: {
46
45
  euiCodeBlock__lineNumberWrapper: /*#__PURE__*/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;"),
@@ -6,37 +6,33 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- import { makeHighContrastColor, euiPaletteColorBlind } from '../../services';
10
- var visColors = euiPaletteColorBlind();
11
-
12
9
  // These variables are computationally expensive - do not call them outside `useEuiMemoizedStyles`
13
10
  export var euiCodeSyntaxVariables = function euiCodeSyntaxVariables(_ref) {
14
11
  var euiTheme = _ref.euiTheme;
15
- var backgroundColor = euiTheme.colors.lightestShade;
16
12
  return {
17
- backgroundColor: backgroundColor,
18
- color: makeHighContrastColor(euiTheme.colors.text)(backgroundColor),
19
- inlineCodeColor: makeHighContrastColor(visColors[3])(backgroundColor),
20
- selectedBackgroundColor: 'inherit',
21
- commentColor: makeHighContrastColor(euiTheme.colors.subduedText)(backgroundColor),
22
- selectorTagColor: 'inherit',
23
- stringColor: makeHighContrastColor(visColors[2])(backgroundColor),
24
- tagColor: makeHighContrastColor(visColors[1])(backgroundColor),
25
- nameColor: makeHighContrastColor(visColors[1])(backgroundColor),
26
- numberColor: makeHighContrastColor(visColors[0])(backgroundColor),
27
- keywordColor: makeHighContrastColor(visColors[3])(backgroundColor),
28
- functionTitleColor: 'inherit',
29
- typeColor: makeHighContrastColor(visColors[1])(backgroundColor),
30
- attributeColor: 'inherit',
31
- symbolColor: makeHighContrastColor(visColors[9])(backgroundColor),
32
- paramsColor: 'inherit',
33
- metaColor: makeHighContrastColor(euiTheme.colors.subduedText)(backgroundColor),
34
- titleColor: makeHighContrastColor(visColors[7])(backgroundColor),
35
- sectionColor: makeHighContrastColor(visColors[9])(backgroundColor),
36
- additionColor: makeHighContrastColor(visColors[0])(backgroundColor),
37
- deletionColor: makeHighContrastColor(euiTheme.colors.danger)(backgroundColor),
38
- selectorClassColor: 'inherit',
39
- selectorIdColor: 'inherit',
13
+ backgroundColor: euiTheme.components.codeBackground,
14
+ color: euiTheme.components.codeColor,
15
+ inlineCodeColor: euiTheme.components.codeInlineColor,
16
+ selectedBackgroundColor: euiTheme.components.codeBackgroundSelected,
17
+ commentColor: euiTheme.components.codeCommentColor,
18
+ selectorTagColor: euiTheme.components.codeSelectorColor,
19
+ stringColor: euiTheme.components.codeStringColor,
20
+ tagColor: euiTheme.components.codeTagColor,
21
+ nameColor: euiTheme.components.codeNameColor,
22
+ numberColor: euiTheme.components.codeNumberColor,
23
+ keywordColor: euiTheme.components.codeKeywordColor,
24
+ functionTitleColor: euiTheme.components.codeFunctionTitleColor,
25
+ typeColor: euiTheme.components.codeTypeColor,
26
+ attributeColor: euiTheme.components.codeAttributeColor,
27
+ symbolColor: euiTheme.components.codeSymbolColor,
28
+ paramsColor: euiTheme.components.codeParamsColor,
29
+ metaColor: euiTheme.components.codeMetaColor,
30
+ titleColor: euiTheme.components.codeTitleColor,
31
+ sectionColor: euiTheme.components.codeSectionColor,
32
+ additionColor: euiTheme.components.codeAdditionColor,
33
+ deletionColor: euiTheme.components.codeDeletionColor,
34
+ selectorClassColor: euiTheme.components.codeSelectorClassColor,
35
+ selectorIdColor: euiTheme.components.codeSelectorIdColor,
40
36
  get tokensCss() {
41
37
  return "\n .token.punctuation:not(.interpolation-punctuation):not([class*='attr-']) {\n opacity: .7;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata,\n .token.coord,\n .token.blockquote {\n color: ".concat(this.commentColor, ";\n font-style: italic;\n }\n\n .token.selector {\n color: ").concat(this.selectorTagColor, ";\n }\n\n .token.string,\n .token.interpolation,\n .token.interpolation-punctuation,\n .token.doc-comment .token.keyword,\n .token.attr-value,\n .token.url .token.content {\n color: ").concat(this.stringColor, ";\n }\n\n .token.number,\n .token.boolean,\n .token.keyword.nil,\n .token.regex,\n .token.variable,\n .token.unit,\n .token.hexcode,\n .token.attr-name,\n .token.attr-equals {\n color: ").concat(this.numberColor, ";\n }\n\n .token.atrule .token.rule,\n .token.keyword {\n color: ").concat(this.keywordColor, ";\n }\n\n .token.function {\n color: ").concat(this.functionTitleColor, ";\n }\n\n .token.tag {\n color: ").concat(this.tagColor, ";\n }\n\n .token.class-name {\n color: ").concat(this.typeColor, ";\n }\n\n .token.property {\n color: ").concat(this.attributeColor, ";\n }\n\n .token.console,\n .token.list-punctuation,\n .token.url-reference,\n .token.url .token.url {\n color: ").concat(this.symbolColor, ";\n }\n\n .token.paramater {\n color: ").concat(this.paramsColor, ";\n }\n\n .token.meta,\n .token.important {\n color: ").concat(this.metaColor, ";\n }\n\n .token.title {\n color: ").concat(this.titleColor, ";\n }\n\n .token.section {\n color: ").concat(this.sectionColor, ";\n }\n\n .token.prefix.inserted,\n .token.prefix.deleted {\n padding-inline-start: -").concat(euiTheme.size.xs, ";\n margin-inline-start: -").concat(euiTheme.size.xs, ";\n }\n\n .token.prefix.inserted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.additionColor, ";\n color: ").concat(this.additionColor, ";\n }\n\n .token.prefix.deleted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.deletionColor, ";\n color: ").concat(this.deletionColor, ";\n }\n\n .token.selector .token.class {\n color: ").concat(this.selectorClassColor, ";\n }\n\n .token.selector .token.id {\n color: ").concat(this.selectorIdColor, ";\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.important,\n .token.bold {\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n\n .token.url-reference,\n .token.url .token.url {\n text-decoration: underline;\n }\n\n .token.entity {\n cursor: help;\n }");
42
38
  }
@@ -7,17 +7,15 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { shade } from '../../../services';
11
10
  import { logicalCSS } from '../../../global_styling';
12
11
  export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(_ref) {
13
- var euiTheme = _ref.euiTheme,
14
- colorMode = _ref.colorMode;
12
+ var euiTheme = _ref.euiTheme;
15
13
  return {
16
14
  euiCollapsibleNavGroup: /*#__PURE__*/css("&:not(:first-child){", logicalCSS('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavGroup;"),
17
15
  // Background colors
18
16
  none: /*#__PURE__*/css(";label:none;"),
19
- light: /*#__PURE__*/css("background-color:", euiTheme.colors.body, ";;label:light;"),
20
- dark: /*#__PURE__*/css("background-color:", colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
17
+ light: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackground, ";;label:light;"),
18
+ dark: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackgroundDark, ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
21
19
  // Header padding
22
20
  isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
23
21
  notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
@@ -15,7 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
15
15
 
16
16
  import { css } from '@emotion/react';
17
17
  import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
18
- import { euiButtonColor } from '../../../themes/amsterdam/global_styling/mixins/button';
18
+ import { euiButtonColor } from '../../../global_styling/mixins/_button';
19
19
 
20
20
  /**
21
21
  * Style variables shared between accordion, link, and sub items
@@ -7,13 +7,12 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../../services';
11
10
  import { logicalCSS } from '../../../global_styling';
12
11
  export var euiColorPaletteDisplayStyles = function euiColorPaletteDisplayStyles(euiThemeContext) {
13
12
  var euiTheme = euiThemeContext.euiTheme;
14
13
 
15
14
  // Border is a pseudo element with transparency
16
- var border = "".concat(euiTheme.border.width.thin, " solid ").concat(transparentize(euiTheme.colors.darkestShade, 0.2));
15
+ var border = "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBaseFormsColorSwatch);
17
16
  return {
18
17
  euiColorPaletteDisplay: /*#__PURE__*/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;"),
19
18
  // Sizes
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  import React, { cloneElement, useEffect, useMemo, useRef, useState } from 'react';
22
22
  import classNames from 'classnames';
23
23
  import chroma from 'chroma-js';
24
- import { useEuiMemoizedStyles, VISUALIZATION_COLORS, keys } from '../../services';
24
+ import { useEuiMemoizedStyles, keys, euiPaletteColorBlind, useEuiTheme } from '../../services';
25
25
  import { EuiFieldText, EuiFormControlLayout, EuiFormRow, EuiRange } from '../form';
26
26
  import { useEuiI18n } from '../i18n';
27
27
  import { EuiPopover } from '../popover';
@@ -81,8 +81,7 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
81
81
  onFocus = _ref.onFocus,
82
82
  _ref$readOnly = _ref.readOnly,
83
83
  readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
84
- _ref$swatches = _ref.swatches,
85
- swatches = _ref$swatches === void 0 ? VISUALIZATION_COLORS : _ref$swatches,
84
+ _swatches = _ref.swatches,
86
85
  popoverZIndex = _ref.popoverZIndex,
87
86
  prepend = _ref.prepend,
88
87
  append = _ref.append,
@@ -104,6 +103,13 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
104
103
  alphaLabel = _useEuiI18n2[4],
105
104
  openLabel = _useEuiI18n2[5],
106
105
  closeLabel = _useEuiI18n2[6];
106
+ var _useEuiTheme = useEuiTheme(),
107
+ euiTheme = _useEuiTheme.euiTheme;
108
+ var swatches = useMemo(function () {
109
+ return _swatches !== null && _swatches !== void 0 ? _swatches : euiPaletteColorBlind();
110
+ },
111
+ // eslint-disable-next-line react-hooks/exhaustive-deps
112
+ [_swatches, euiTheme]);
107
113
  var preferredFormat = useMemo(function () {
108
114
  if (format) return format;
109
115
  var parsed = parseColor(color);
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../services';
11
10
  import { logicalCSS, mathWithUnits } from '../../global_styling';
12
11
  export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext) {
13
12
  var euiTheme = euiThemeContext.euiTheme;
@@ -22,6 +21,6 @@ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext)
22
21
  euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
23
22
  // Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
24
23
  // Targets a custom className applied directly to the <svg> icon
25
- euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", transparentize(euiTheme.colors.fullShade, 0.2), ";};label:euiColorPicker__swatchInputIcon;")
24
+ euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", euiTheme.colors.borderBaseFormsColorSwatch, ";};label:euiColorPicker__swatchInputIcon;")
26
25
  };
27
26
  };
@@ -14,6 +14,6 @@ export var euiColorPickerSwatchStyles = function euiColorPickerSwatchStyles(euiT
14
14
  return {
15
15
  euiColorPickerSwatch: /*#__PURE__*/css("display:inline-block;", logicalSizeCSS(euiTheme.size.l), " border-radius:", mathWithUnits(euiTheme.border.radius.medium, function (x) {
16
16
  return x / 2;
17
- }), ";border:", euiTheme.border.width.thin, " solid ", transparentize(euiTheme.colors.fullShade, 0.1), ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
17
+ }), ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFormsColorSwatch, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
18
18
  };
19
19
  };
@@ -316,12 +316,15 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
316
316
  }
317
317
  break;
318
318
  case keys.ENTER:
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);
319
+ // Do not block enter keypresses for the clear button or delete selection buttons
320
+ if (event.target === _this.searchInputRefInstance) {
321
+ event.preventDefault();
322
+ event.stopPropagation();
323
+ if (_this.hasActiveOption()) {
324
+ _this.onAddOption(_this.state.matchingOptions[_this.state.activeOptionIndex]);
325
+ } else {
326
+ _this.setCustomOptions(false);
327
+ }
325
328
  }
326
329
  break;
327
330
  case keys.TAB:
@@ -28,12 +28,6 @@ export function keysOf(obj) {
28
28
  return Object.keys(obj);
29
29
  }
30
30
 
31
- /**
32
- * Like `keyof typeof`, but for getting values instead of keys
33
- * ValueOf<typeof {key1: 'value1', key2: 'value2'}>
34
- * Results in `'value1' | 'value2'`
35
- */
36
-
37
31
  // Returns the props of a given HTML element
38
32
 
39
33
  // Utility methods for ApplyClassComponentDefaults
@@ -126,26 +120,4 @@ React.FunctionComponent<ExclusiveUnion<Spanlike, Buttonlike>>
126
120
  * type ButtonLike = PropsForButton<BaseProps>
127
121
  * type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
128
122
  * const Component: FunctionComponent<ComponentProps> ...
129
- */
130
-
131
- /**
132
- * Replaces all properties on any type as optional, includes nested types
133
- *
134
- * @example
135
- * ```ts
136
- * interface Person {
137
- * name: string;
138
- * age?: number;
139
- * spouse: Person;
140
- * children: Person[];
141
- * }
142
- * type PartialPerson = RecursivePartial<Person>;
143
- * // results in
144
- * interface PartialPerson {
145
- * name?: string;
146
- * age?: number;
147
- * spouse?: RecursivePartial<Person>;
148
- * children?: RecursivePartial<Person>[]
149
- * }
150
- * ```
151
123
  */
@@ -7,7 +7,6 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { tintOrShade } from '../../services';
11
10
  import { euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
12
11
  export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext) {
13
12
  var euiTheme = euiThemeContext.euiTheme;
@@ -37,14 +36,13 @@ export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext)
37
36
  };
38
37
  };
39
38
  export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
40
- var euiTheme = euiThemeContext.euiTheme,
41
- colorMode = euiThemeContext.colorMode;
39
+ var euiTheme = euiThemeContext.euiTheme;
42
40
  var _euiDataGridVariables = euiDataGridVariables(euiThemeContext),
43
41
  _cellPadding = _euiDataGridVariables.cellPadding,
44
42
  lineHeight = _euiDataGridVariables.lineHeight,
45
43
  _fontSize = _euiDataGridVariables.fontSize;
46
44
  return {
47
- euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.colors.lightestShade, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.colors.highlight, ";};label:euiDataGrid;"),
45
+ euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowBackgroundStriped, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";};label:euiDataGrid;"),
48
46
  cellPadding: {
49
47
  cellPadding: function cellPadding(size) {
50
48
  return /*#__PURE__*/css(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}/* Workaround to trim line-clamp and padding - @see https://github.com/elastic/eui/issues/7780 */.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", logicalCSS('padding-bottom', 0), " ", logicalCSS('border-bottom', "".concat(_cellPadding[size], " solid transparent")), ";}.euiDataGridHeaderCell__button{margin-block:-", _cellPadding[size], ";};label:cellPadding;");
@@ -78,7 +76,7 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
78
76
  none: null,
79
77
  horizontal: /*#__PURE__*/css("label:borders;.euiDataGridRowCell:not(.euiDataGridFooterCell),.euiDataGridFooter,&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}.euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";};label:horizontal;"),
80
78
  all: /*#__PURE__*/css("label:borders;.euiDataGridRowCell{&:not(.euiDataGridFooterCell){", logicalCSS('border-bottom', euiTheme.border.thin), " ", logicalCSS('border-right', // Visually lighten vertical borders
81
- "".concat(euiTheme.border.width.thin, " solid ").concat(tintOrShade(euiTheme.border.color, 0.3, colorMode))), ";}&--firstColumn{", logicalCSS('border-left', euiTheme.border.thin), ";}&--lastColumn{", logicalCSS('border-right-color', euiTheme.border.color), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", logicalCSS('border-right', euiTheme.border.thin), " &:first-of-type{", logicalCSS('border-left', euiTheme.border.thin), ";}}.euiDataGridFooter{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";}.euiDataGrid__controls{border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.body, ";};label:all;")
79
+ "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.dataGridVerticalLineBorderColor)), ";}&--firstColumn{", logicalCSS('border-left', euiTheme.border.thin), ";}&--lastColumn{", logicalCSS('border-right-color', euiTheme.border.color), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", logicalCSS('border-right', euiTheme.border.thin), " &:first-of-type{", logicalCSS('border-left', euiTheme.border.thin), ";}}.euiDataGridFooter{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";}.euiDataGrid__controls{border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.body, ";};label:all;")
82
80
  },
83
81
  // Sits below the controls above it and pagination below it
84
82
  euiDataGrid__content: /*#__PURE__*/css("z-index:1;position:relative;flex-grow:1;", logicalSizeCSS('100%'), " ", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", euiTheme.colors.body, ";font-feature-settings:'tnum' 1;;label:euiDataGrid__content;"),
@@ -9,7 +9,8 @@
9
9
  // Needs to use vanilla `css` to pass a className directly to react-datepicker
10
10
  import { css } from '@emotion/css';
11
11
  import { euiCanAnimate, euiMaxBreakpoint, euiFontSize, euiYScroll, logicalCSS, mathWithUnits } from '../../global_styling';
12
- import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor, euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
12
+ import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor } from '../../global_styling/mixins';
13
+ import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
13
14
  import { euiFormControlStyles, euiFormControlText, euiFormControlDefaultShadow } from '../form/form.styles';
14
15
  export var euiDatePickerVariables = function euiDatePickerVariables(_ref) {
15
16
  var euiTheme = _ref.euiTheme;
@@ -87,7 +87,9 @@ export var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
87
87
  anchorPosition: position === 'start' ? 'downLeft' : 'downRight',
88
88
  display: "block",
89
89
  panelPaddingSize: "none"
90
- }, rest), ___EmotionJSX(EuiDatePopoverContent, {
90
+ }, rest, {
91
+ css: value === 'now' && styles.now
92
+ }), ___EmotionJSX(EuiDatePopoverContent, {
91
93
  value: value,
92
94
  roundUp: roundUp,
93
95
  canRoundRelativeUnits: canRoundRelativeUnits,