@elastic/eui 107.0.1 → 108.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  2. package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  3. package/es/components/button/button_display/_button_display.styles.js +1 -4
  4. package/es/components/button/button_display/_button_display_content.styles.js +1 -4
  5. package/es/components/button/button_empty/button_empty.styles.js +4 -7
  6. package/es/components/button/button_group/button_group.styles.js +2 -12
  7. package/es/components/button/button_group/button_group_button.js +2 -4
  8. package/es/components/button/button_group/button_group_button.styles.js +22 -36
  9. package/es/components/button/button_icon/button_icon.js +3 -6
  10. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  11. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  12. package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  13. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  14. package/es/components/datagrid/controls/column_selector.styles.js +1 -1
  15. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  16. package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  17. package/es/components/datagrid/data_grid.styles.js +0 -1
  18. package/es/components/date_picker/date_picker.styles.js +1 -4
  19. package/es/components/date_picker/date_picker_range.styles.js +4 -8
  20. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  21. package/es/components/filter_group/filter_button.js +7 -10
  22. package/es/components/filter_group/filter_button.styles.js +28 -39
  23. package/es/components/filter_group/filter_group.styles.js +8 -29
  24. package/es/components/form/field_number/field_number.styles.js +1 -4
  25. package/es/components/form/field_text/field_text.styles.js +1 -4
  26. package/es/components/form/file_picker/file_picker.js +102 -107
  27. package/es/components/form/file_picker/file_picker.styles.js +5 -7
  28. package/es/components/form/form.styles.js +17 -40
  29. package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  30. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  31. package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  32. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  33. package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  34. package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  35. package/es/components/form/form_label/form_label.js +1 -1
  36. package/es/components/form/form_label/form_label.styles.js +1 -5
  37. package/es/components/form/range/range_input.styles.js +1 -3
  38. package/es/components/header/header.styles.js +4 -19
  39. package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  40. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  41. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  42. package/es/components/modal/modal.js +23 -5
  43. package/es/components/panel/panel.styles.js +4 -12
  44. package/es/components/resizable_container/resizable_collapse_button.js +2 -3
  45. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  46. package/es/components/toast/toast.styles.js +1 -3
  47. package/es/components/token/token.js +1 -3
  48. package/es/components/token/token.styles.js +2 -3
  49. package/es/components/token/token_map.js +1 -231
  50. package/es/global_styling/mixins/_button.js +14 -24
  51. package/es/index.js +0 -1
  52. package/es/services/color/eui_palettes.js +7 -21
  53. package/es/services/color/eui_palettes_hooks.js +6 -10
  54. package/es/services/color/vis_color_store.js +2 -2
  55. package/es/services/theme/provider.js +4 -9
  56. package/eui.d.ts +19 -2102
  57. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  58. package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  59. package/lib/components/button/button_display/_button_display.styles.js +1 -4
  60. package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  61. package/lib/components/button/button_empty/button_empty.styles.js +4 -7
  62. package/lib/components/button/button_group/button_group.styles.js +2 -12
  63. package/lib/components/button/button_group/button_group_button.js +1 -3
  64. package/lib/components/button/button_group/button_group_button.styles.js +21 -35
  65. package/lib/components/button/button_icon/button_icon.js +1 -4
  66. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  67. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  68. package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  69. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  70. package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  71. package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  72. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  73. package/lib/components/datagrid/data_grid.styles.js +0 -1
  74. package/lib/components/date_picker/date_picker.styles.js +1 -4
  75. package/lib/components/date_picker/date_picker_range.styles.js +4 -8
  76. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  77. package/lib/components/filter_group/filter_button.js +6 -9
  78. package/lib/components/filter_group/filter_button.styles.js +27 -38
  79. package/lib/components/filter_group/filter_group.styles.js +8 -29
  80. package/lib/components/form/field_number/field_number.styles.js +1 -4
  81. package/lib/components/form/field_text/field_text.styles.js +1 -4
  82. package/lib/components/form/file_picker/file_picker.js +101 -106
  83. package/lib/components/form/file_picker/file_picker.styles.js +5 -7
  84. package/lib/components/form/form.styles.js +16 -39
  85. package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  86. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  87. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  88. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  89. package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  90. package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  91. package/lib/components/form/form_label/form_label.js +1 -1
  92. package/lib/components/form/form_label/form_label.styles.js +1 -5
  93. package/lib/components/form/range/range_input.styles.js +1 -3
  94. package/lib/components/header/header.styles.js +2 -18
  95. package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  96. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  97. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  98. package/lib/components/modal/modal.js +25 -5
  99. package/lib/components/panel/panel.styles.js +4 -12
  100. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  101. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  102. package/lib/components/toast/toast.styles.js +1 -3
  103. package/lib/components/token/token.js +1 -3
  104. package/lib/components/token/token.styles.js +1 -2
  105. package/lib/components/token/token_map.js +2 -232
  106. package/lib/global_styling/mixins/_button.js +11 -21
  107. package/lib/index.js +0 -11
  108. package/lib/services/color/eui_palettes.js +7 -21
  109. package/lib/services/color/eui_palettes_hooks.js +6 -10
  110. package/lib/services/color/vis_color_store.js +2 -2
  111. package/lib/services/theme/provider.js +4 -9
  112. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  113. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  114. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
  115. package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
  116. package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
  117. package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
  118. package/optimize/es/components/button/button_group/button_group_button.js +2 -4
  119. package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
  120. package/optimize/es/components/button/button_icon/button_icon.js +3 -6
  121. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  122. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  123. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  124. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  125. package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
  126. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  127. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  128. package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
  129. package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
  130. package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
  131. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  132. package/optimize/es/components/filter_group/filter_button.js +7 -10
  133. package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
  134. package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
  135. package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
  136. package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
  137. package/optimize/es/components/form/file_picker/file_picker.js +102 -107
  138. package/optimize/es/components/form/file_picker/file_picker.styles.js +5 -7
  139. package/optimize/es/components/form/form.styles.js +17 -40
  140. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  141. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  142. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  143. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  144. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  145. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  146. package/optimize/es/components/form/form_label/form_label.js +1 -1
  147. package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
  148. package/optimize/es/components/form/range/range_input.styles.js +1 -3
  149. package/optimize/es/components/header/header.styles.js +4 -19
  150. package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  151. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  152. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  153. package/optimize/es/components/modal/modal.js +17 -4
  154. package/optimize/es/components/panel/panel.styles.js +4 -12
  155. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
  156. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  157. package/optimize/es/components/toast/toast.styles.js +1 -3
  158. package/optimize/es/components/token/token.js +1 -3
  159. package/optimize/es/components/token/token.styles.js +2 -3
  160. package/optimize/es/components/token/token_map.js +1 -231
  161. package/optimize/es/global_styling/mixins/_button.js +14 -24
  162. package/optimize/es/index.js +0 -1
  163. package/optimize/es/services/color/eui_palettes.js +7 -21
  164. package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
  165. package/optimize/es/services/color/vis_color_store.js +2 -2
  166. package/optimize/es/services/theme/provider.js +4 -9
  167. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  168. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  169. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
  170. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  171. package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
  172. package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
  173. package/optimize/lib/components/button/button_group/button_group_button.js +1 -3
  174. package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
  175. package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
  176. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  177. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  178. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  179. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  180. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  181. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  182. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  183. package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
  184. package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
  185. package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
  186. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  187. package/optimize/lib/components/filter_group/filter_button.js +6 -9
  188. package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
  189. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
  190. package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
  191. package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
  192. package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
  193. package/optimize/lib/components/form/file_picker/file_picker.styles.js +5 -7
  194. package/optimize/lib/components/form/form.styles.js +16 -39
  195. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  196. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  197. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  198. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  199. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  200. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  201. package/optimize/lib/components/form/form_label/form_label.js +1 -1
  202. package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
  203. package/optimize/lib/components/form/range/range_input.styles.js +1 -3
  204. package/optimize/lib/components/header/header.styles.js +2 -18
  205. package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  206. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  207. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  208. package/optimize/lib/components/modal/modal.js +20 -4
  209. package/optimize/lib/components/panel/panel.styles.js +4 -12
  210. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  211. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  212. package/optimize/lib/components/toast/toast.styles.js +1 -3
  213. package/optimize/lib/components/token/token.js +1 -3
  214. package/optimize/lib/components/token/token.styles.js +1 -2
  215. package/optimize/lib/components/token/token_map.js +2 -232
  216. package/optimize/lib/global_styling/mixins/_button.js +11 -21
  217. package/optimize/lib/index.js +0 -11
  218. package/optimize/lib/services/color/eui_palettes.js +7 -21
  219. package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
  220. package/optimize/lib/services/color/vis_color_store.js +2 -2
  221. package/optimize/lib/services/theme/provider.js +4 -9
  222. package/package.json +5 -6
  223. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  224. package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
  225. package/test-env/components/button/button_display/_button_display.styles.js +1 -4
  226. package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
  227. package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
  228. package/test-env/components/button/button_group/button_group.styles.js +2 -12
  229. package/test-env/components/button/button_group/button_group_button.js +1 -3
  230. package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
  231. package/test-env/components/button/button_icon/button_icon.js +1 -4
  232. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  233. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  234. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  235. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  236. package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
  237. package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
  238. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  239. package/test-env/components/datagrid/data_grid.styles.js +0 -1
  240. package/test-env/components/date_picker/date_picker.styles.js +1 -4
  241. package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
  242. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  243. package/test-env/components/filter_group/filter_button.js +6 -9
  244. package/test-env/components/filter_group/filter_button.styles.js +27 -38
  245. package/test-env/components/filter_group/filter_group.styles.js +8 -29
  246. package/test-env/components/form/field_number/field_number.styles.js +1 -4
  247. package/test-env/components/form/field_text/field_text.styles.js +1 -4
  248. package/test-env/components/form/file_picker/file_picker.js +101 -106
  249. package/test-env/components/form/file_picker/file_picker.styles.js +5 -7
  250. package/test-env/components/form/form.styles.js +16 -39
  251. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  252. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  253. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  254. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  255. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  256. package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
  257. package/test-env/components/form/form_label/form_label.js +1 -1
  258. package/test-env/components/form/form_label/form_label.styles.js +1 -5
  259. package/test-env/components/form/range/range_input.styles.js +1 -3
  260. package/test-env/components/header/header.styles.js +2 -18
  261. package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
  262. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  263. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  264. package/test-env/components/modal/modal.js +26 -5
  265. package/test-env/components/panel/panel.styles.js +4 -12
  266. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  267. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  268. package/test-env/components/toast/toast.styles.js +1 -3
  269. package/test-env/components/token/token.js +1 -3
  270. package/test-env/components/token/token.styles.js +1 -2
  271. package/test-env/components/token/token_map.js +2 -232
  272. package/test-env/global_styling/mixins/_button.js +11 -21
  273. package/test-env/index.js +0 -11
  274. package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
  275. package/test-env/services/color/eui_palettes.js +7 -21
  276. package/test-env/services/color/eui_palettes_hooks.js +6 -10
  277. package/test-env/services/color/vis_color_store.js +2 -2
  278. package/test-env/services/theme/provider.js +4 -9
  279. package/dist/eui_theme_amsterdam_dark.json +0 -463
  280. package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
  281. package/dist/eui_theme_amsterdam_light.json +0 -463
  282. package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
  283. package/dist/eui_theme_borealis_dark.json +0 -463
  284. package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
  285. package/dist/eui_theme_borealis_light.json +0 -463
  286. package/dist/eui_theme_borealis_light.json.d.ts +0 -466
  287. package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  288. package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  289. package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  290. package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  291. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  292. package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
  293. package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
  294. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  295. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
  296. package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
  297. package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  298. package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
  299. package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  300. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
  301. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
  302. package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  303. package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
  304. package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  305. package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  306. package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
  307. package/es/themes/amsterdam/index.js +0 -10
  308. package/es/themes/amsterdam/theme.js +0 -41
  309. package/es/themes/index.js +0 -12
  310. package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  311. package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  312. package/es/themes/json/eui_theme_borealis_dark.json +0 -463
  313. package/es/themes/json/eui_theme_borealis_light.json +0 -463
  314. package/es/themes/themes.js +0 -1
  315. package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  316. package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  317. package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  318. package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  319. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  320. package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
  321. package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
  322. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  323. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
  324. package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
  325. package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  326. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
  327. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  328. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
  329. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
  330. package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  331. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
  332. package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  333. package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  334. package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
  335. package/lib/themes/amsterdam/index.js +0 -16
  336. package/lib/themes/amsterdam/theme.js +0 -47
  337. package/lib/themes/index.js +0 -57
  338. package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  339. package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  340. package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  341. package/lib/themes/json/eui_theme_borealis_light.json +0 -463
  342. package/lib/themes/themes.js +0 -5
  343. package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  344. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  345. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  346. package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  347. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  348. package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
  349. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
  350. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  351. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
  352. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
  353. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  354. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
  355. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  356. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
  357. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
  358. package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  359. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
  360. package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  361. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  362. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
  363. package/optimize/es/themes/amsterdam/index.js +0 -10
  364. package/optimize/es/themes/amsterdam/theme.js +0 -41
  365. package/optimize/es/themes/index.js +0 -12
  366. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  367. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  368. package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
  369. package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
  370. package/optimize/es/themes/themes.js +0 -1
  371. package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  372. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  373. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  374. package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  375. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  376. package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  377. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  378. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  379. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  380. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  381. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  382. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  383. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  384. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
  385. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  386. package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  387. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  388. package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  389. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  390. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  391. package/optimize/lib/themes/amsterdam/index.js +0 -16
  392. package/optimize/lib/themes/amsterdam/theme.js +0 -47
  393. package/optimize/lib/themes/index.js +0 -57
  394. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  395. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  396. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  397. package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
  398. package/optimize/lib/themes/themes.js +0 -5
  399. package/package/eui.d.ts +0 -33359
  400. package/src/global_styling/functions/_colors.scss +0 -138
  401. package/src/global_styling/functions/_index.scss +0 -1
  402. package/src/global_styling/functions/_math.scss +0 -1
  403. package/src/global_styling/functions/_math_pow.scss +0 -82
  404. package/src/global_styling/index.scss +0 -3
  405. package/src/global_styling/mixins/_helpers.scss +0 -117
  406. package/src/global_styling/mixins/_index.scss +0 -8
  407. package/src/global_styling/mixins/_responsive.scss +0 -44
  408. package/src/global_styling/mixins/_shadow.scss +0 -100
  409. package/src/global_styling/mixins/_size.scss +0 -4
  410. package/src/global_styling/mixins/_states.scss +0 -17
  411. package/src/global_styling/mixins/_tool_tip.scss +0 -18
  412. package/src/global_styling/mixins/_typography.scss +0 -166
  413. package/src/global_styling/variables/_animations.scss +0 -6
  414. package/src/global_styling/variables/_borders.scss +0 -3
  415. package/src/global_styling/variables/_buttons.scss +0 -1
  416. package/src/global_styling/variables/_font_weight.scss +0 -4
  417. package/src/global_styling/variables/_form.scss +0 -2
  418. package/src/global_styling/variables/_index.scss +0 -22
  419. package/src/global_styling/variables/_responsive.scss +0 -1
  420. package/src/global_styling/variables/_shadows.scss +0 -2
  421. package/src/global_styling/variables/_size.scss +0 -1
  422. package/src/global_styling/variables/_states.scss +0 -1
  423. package/src/global_styling/variables/_typography.scss +0 -1
  424. package/src/global_styling/variables/_z_index.scss +0 -2
  425. package/src/themes/amsterdam/_colors_dark.scss +0 -139
  426. package/src/themes/amsterdam/_colors_light.scss +0 -139
  427. package/src/themes/amsterdam/_globals.scss +0 -11
  428. package/src/themes/amsterdam/global_styling/index.scss +0 -12
  429. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
  430. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
  431. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
  432. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
  433. package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
  434. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  435. package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
  436. package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
  437. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  438. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
  439. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
  440. package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
  441. package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
  442. package/src/themes/amsterdam/theme_dark.scss +0 -5
  443. package/src/themes/amsterdam/theme_light.scss +0 -5
  444. package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
  445. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  446. package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
  447. package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
  448. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  449. package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  450. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  451. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  452. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  453. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  454. package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  455. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  456. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  457. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
  458. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  459. package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  460. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  461. package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
  462. package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
  463. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  464. package/test-env/themes/amsterdam/index.js +0 -16
  465. package/test-env/themes/amsterdam/theme.js +0 -47
  466. package/test-env/themes/index.js +0 -57
  467. package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
  468. package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
  469. package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
  470. package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
  471. package/test-env/themes/themes.js +0 -5
@@ -1,7 +1,5 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- var _templateObject;
5
3
  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; }
6
4
  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) { _defineProperty(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; }
7
5
  /*
@@ -12,9 +10,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
10
  * Side Public License, v 1.
13
11
  */
14
12
 
15
- import { css, keyframes } from '@emotion/react';
16
- import { getTokenName, euiCanAnimate, mathWithUnits } from '@elastic/eui-theme-common';
17
- import { makeHighContrastColor, useEuiMemoizedStyles, isEuiThemeRefreshVariant } from '../../services';
13
+ import { css } from '@emotion/react';
14
+ import { getTokenName, mathWithUnits } from '@elastic/eui-theme-common';
15
+ import { makeHighContrastColor, useEuiMemoizedStyles } from '../../services';
18
16
  import { highContrastModeStyles, logicalCSS } from '../functions';
19
17
 
20
18
  /** Tentative usage; these exist only to be used as button directly when used within other components */
@@ -116,7 +114,6 @@ export var useEuiButtonColorCSS = function useEuiButtonColorCSS() {
116
114
  };
117
115
  var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
118
116
  var euiTheme = euiThemeContext.euiTheme;
119
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
120
117
  var COLORS = [].concat(_toConsumableArray(EXTENDED_BUTTON_COLORS), ['disabled']);
121
118
  var displaysColorsMap = {};
122
119
  BUTTON_DISPLAYS.forEach(function (display) {
@@ -127,23 +124,19 @@ var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext)
127
124
  {
128
125
  var buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'base');
129
126
  var borderStyle = color === 'text' && "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain, ";\n ");
130
- var refreshVariantStyles = isRefreshVariant && "\n ".concat(_interactionStyles(euiThemeContext, buttonColors, 'overlay'), "\n ").concat(borderStyle, "\n ");
131
- displaysColorsMap[display][color] = /*#__PURE__*/css(euiButtonColor(euiThemeContext, color), " ", refreshVariantStyles, ";;label:displaysColorsMap-display-color;");
127
+ displaysColorsMap[display][color] = /*#__PURE__*/css(euiButtonColor(euiThemeContext, color), " ", _interactionStyles(euiThemeContext, buttonColors, 'overlay'), " ", borderStyle, ";;label:displaysColorsMap-display-color;");
132
128
  break;
133
129
  }
134
130
  case 'fill':
135
131
  {
136
132
  var _buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'filled');
137
- var _refreshVariantStyles = isRefreshVariant && _interactionStyles(euiThemeContext, _buttonColors);
138
- displaysColorsMap[display][color] = /*#__PURE__*/css(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";", _refreshVariantStyles, ";;label:displaysColorsMap-display-color;");
133
+ displaysColorsMap[display][color] = /*#__PURE__*/css(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";", _interactionStyles(euiThemeContext, _buttonColors), ";;label:displaysColorsMap-display-color;");
139
134
  break;
140
135
  }
141
136
  case 'empty':
142
137
  {
143
138
  var _buttonColors2 = getButtonVariantTokenValues(euiThemeContext, color, 'empty');
144
- var classicVariantStyles = !isRefreshVariant && "\n &:focus,\n &:active {\n background-color: ".concat(euiButtonEmptyColor(euiThemeContext, color).backgroundColor, ";\n }\n ");
145
- var _refreshVariantStyles2 = isRefreshVariant && _interactionStyles(euiThemeContext, _buttonColors2, 'overlay');
146
- displaysColorsMap[display][color] = /*#__PURE__*/css("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";", classicVariantStyles, " ", _refreshVariantStyles2, ";;label:displaysColorsMap-display-color;");
139
+ displaysColorsMap[display][color] = /*#__PURE__*/css("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";", _interactionStyles(euiThemeContext, _buttonColors2, 'overlay'), ";;label:displaysColorsMap-display-color;");
147
140
  break;
148
141
  }
149
142
  }
@@ -163,11 +156,11 @@ var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext)
163
156
  export var useEuiButtonFocusCSS = function useEuiButtonFocusCSS() {
164
157
  return useEuiMemoizedStyles(euiButtonFocusCSS);
165
158
  };
166
- var euiButtonFocusAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n transform: translateY(1px);\n }\n"])));
167
- var euiButtonFocusCSS = function euiButtonFocusCSS(euiThemeContext) {
168
- var euiTheme = euiThemeContext.euiTheme;
169
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
170
- var focusCSS = isRefreshVariant ? /*#__PURE__*/css(";label:focusCSS;") : /*#__PURE__*/css(euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ease-in-out,background-color ", euiTheme.animation.normal, " ease-in-out;&:hover:not(:disabled){transform:translateY(-1px);}&:focus{animation:", euiButtonFocusAnimation, " ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";}&:active:not(:disabled){transform:translateY(1px);}};label:focusCSS;");
159
+
160
+ // NOTE: keeping this as placeholder for now in case we need custom button focus styles for https://github.com/elastic/eui-private/issues/267
161
+ var euiButtonFocusCSS = function euiButtonFocusCSS(_euiThemeContext) {
162
+ var focusCSS = /*#__PURE__*/css(";label:focusCSS;");
163
+
171
164
  // Remove the auto-generated label.
172
165
  // We could typically avoid a label by using a plain string `` instead of css``,
173
166
  // but we need css`` for keyframes`` to work for the focus animation
@@ -181,16 +174,15 @@ var euiButtonFocusCSS = function euiButtonFocusCSS(euiThemeContext) {
181
174
  */
182
175
  export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
183
176
  var euiTheme = euiThemeContext.euiTheme;
184
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
185
177
  return {
186
178
  xs: {
187
- minWidth: euiTheme.base * (isRefreshVariant ? 6 : 7),
179
+ minWidth: euiTheme.base * 6,
188
180
  height: euiTheme.size.l,
189
181
  radius: euiTheme.border.radius.small,
190
182
  fontScale: 'xs'
191
183
  },
192
184
  s: {
193
- minWidth: euiTheme.base * (isRefreshVariant ? 6 : 7),
185
+ minWidth: euiTheme.base * 6,
194
186
  height: euiTheme.size.xl,
195
187
  radius: euiTheme.border.radius.small,
196
188
  fontScale: 's'
@@ -198,7 +190,7 @@ export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
198
190
  m: {
199
191
  minWidth: euiTheme.base * 7,
200
192
  height: euiTheme.size.xxl,
201
- radius: isRefreshVariant ? euiTheme.border.radius.small : euiTheme.border.radius.medium,
193
+ radius: euiTheme.border.radius.small,
202
194
  fontScale: 's'
203
195
  }
204
196
  };
@@ -209,8 +201,6 @@ export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
209
201
  */
210
202
  var _interactionStyles = function _interactionStyles(euiThemeContext, buttonColors) {
211
203
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fill';
212
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
213
- if (!isRefreshVariant) return "";
214
204
  var baseStyles = function baseStyles() {
215
205
  // button hover is applied as pseudo element with a transparent background-color
216
206
  if (type === 'overlay') {
@@ -9,5 +9,4 @@
9
9
  export * from './components';
10
10
  export * from './services';
11
11
  export * from './utils';
12
- export * from './themes';
13
12
  export * from './global_styling';
@@ -104,16 +104,8 @@ export var euiPaletteColorBlind = function euiPaletteColorBlind() {
104
104
  */
105
105
  export var euiPaletteColorBlindBehindText = function euiPaletteColorBlindBehindText() {
106
106
  var paletteProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
107
- var hasVisColorAdjustment = paletteProps.hasVisColorAdjustment;
108
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
109
107
  var originalPalette = euiPaletteColorBlind(paletteProps);
110
-
111
- // new theme palette has required contrast, we don't need to adjust them
112
- if (!_hasVisColorAdjustment) return originalPalette;
113
- var newPalette = originalPalette.map(function (color) {
114
- return chroma(color).brighten(0.5).hex();
115
- });
116
- return newPalette;
108
+ return originalPalette;
117
109
  };
118
110
  var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
119
111
  return keys.reduce(function (colors, curr) {
@@ -180,10 +172,8 @@ export var euiPaletteForStatus = function euiPaletteForStatus(steps) {
180
172
  */
181
173
  export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
182
174
  var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
183
- colors = _ref6.colors,
184
- hasVisColorAdjustment = _ref6.hasVisColorAdjustment;
175
+ colors = _ref6.colors;
185
176
  var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
186
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
187
177
  if (steps === 1) {
188
178
  return [visColors.euiColorVisCool2];
189
179
  } else if (steps <= 3) {
@@ -191,7 +181,7 @@ export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
191
181
  }
192
182
  var cools = colorPalette([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
193
183
  var warms = colorPalette([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
194
- var paletteColors = _hasVisColorAdjustment ? [].concat(_toConsumableArray(cools), _toConsumableArray(warms)) : [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
184
+ var paletteColors = [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
195
185
  return euiPalette(paletteColors, steps, true);
196
186
  };
197
187
 
@@ -203,14 +193,12 @@ export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
203
193
  */
204
194
  export var euiPaletteComplementary = function euiPaletteComplementary(steps) {
205
195
  var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
206
- colors = _ref7.colors,
207
- hasVisColorAdjustment = _ref7.hasVisColorAdjustment;
196
+ colors = _ref7.colors;
208
197
  var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
209
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
210
198
  if (steps === 1) {
211
199
  return [visColors.euiColorVisComplementary0];
212
200
  }
213
- var paletteColors = _hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
201
+ var paletteColors = [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
214
202
  return euiPalette(paletteColors, steps, true);
215
203
  };
216
204
 
@@ -302,14 +290,12 @@ export var euiPaletteOrange = function euiPaletteOrange(steps) {
302
290
  */
303
291
  export var euiPaletteCool = function euiPaletteCool(steps) {
304
292
  var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
305
- colors = _ref13.colors,
306
- hasVisColorAdjustment = _ref13.hasVisColorAdjustment;
293
+ colors = _ref13.colors;
307
294
  var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
308
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
309
295
  if (steps === 1) {
310
296
  return [visColors.euiColorVisCool1];
311
297
  }
312
- return euiPalette([_hasVisColorAdjustment ? visColors.euiColorVisBase0 : visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
298
+ return euiPalette([visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
313
299
  };
314
300
 
315
301
  /**
@@ -57,24 +57,20 @@ export var useEuiPaletteGray = function useEuiPaletteGray(steps) {
57
57
  var _useEuiPaletteFn = function _useEuiPaletteFn(palleteFn, args) {
58
58
  var _useEuiTheme = useEuiTheme(),
59
59
  euiTheme = _useEuiTheme.euiTheme;
60
- var colors = euiTheme.colors,
61
- flags = euiTheme.flags;
60
+ var colors = euiTheme.colors;
62
61
  return useMemo(function () {
63
62
  return palleteFn(_objectSpread(_objectSpread({}, args), {}, {
64
- colors: colors.vis,
65
- hasVisColorAdjustment: flags.hasVisColorAdjustment
63
+ colors: colors.vis
66
64
  }));
67
- }, [colors, flags, args, palleteFn]);
65
+ }, [colors, args, palleteFn]);
68
66
  };
69
67
  var _useEuiPaletteWithStepsFn = function _useEuiPaletteWithStepsFn(palleteFn, steps) {
70
68
  var _useEuiTheme2 = useEuiTheme(),
71
69
  euiTheme = _useEuiTheme2.euiTheme;
72
- var colors = euiTheme.colors,
73
- flags = euiTheme.flags;
70
+ var colors = euiTheme.colors;
74
71
  return useMemo(function () {
75
72
  return palleteFn(steps, {
76
- colors: colors.vis,
77
- hasVisColorAdjustment: flags.hasVisColorAdjustment
73
+ colors: colors.vis
78
74
  });
79
- }, [colors, flags, steps, palleteFn]);
75
+ }, [colors, steps, palleteFn]);
80
76
  };
@@ -9,5 +9,5 @@
9
9
  import { EuiVisColorStore } from '@elastic/eui-theme-common';
10
10
  import { colorVis } from '@elastic/eui-theme-borealis';
11
11
 
12
- // initialsetup of Vis color storage with default colors
13
- export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, false);
12
+ // initial setup of vis color storage with default colors
13
+ export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis);
@@ -88,8 +88,7 @@ export var EuiThemeProvider = function EuiThemeProvider(_ref) {
88
88
  var isParentTheme = useRef(isGlobalTheme ? prevSystemKey.current === DEFAULTS.system.key && colorMode === DEFAULTS.colorMode && highContrastMode === DEFAULTS.highContrastMode && !_modifications : prevSystemKey.current === parentSystem.key && colorMode === parentColorMode && highContrastMode === parentHighContrastMode && isEqual(parentModifications, modifications));
89
89
  var updateVisColorStore = useCallback(function (theme, isGlobalTheme) {
90
90
  if (isGlobalTheme) {
91
- var _theme$flags$hasVisCo, _theme$flags;
92
- EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis, (_theme$flags$hasVisCo = (_theme$flags = theme.flags) === null || _theme$flags === void 0 ? void 0 : _theme$flags.hasVisColorAdjustment) !== null && _theme$flags$hasVisCo !== void 0 ? _theme$flags$hasVisCo : true);
91
+ EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis);
93
92
  }
94
93
  }, []);
95
94
  var getInitialTheme = function getInitialTheme() {
@@ -140,17 +139,13 @@ export var EuiThemeProvider = function EuiThemeProvider(_ref) {
140
139
  if (!isParentTheme.current) {
141
140
  /* Enables recomputation of component colors when flags are overridden on the provider
142
141
  by adding the respective key to modifications to trigger a recomputation. */
142
+ // NOTE: Keeping this as placeholder for potential future usage during Borealis changes
143
143
  // TODO: remove once visual refresh is completed and flags are obsolete
144
- var flagsToRecompute = [{
145
- flag: 'buttonVariant',
146
- componentKey: 'buttons'
147
- }, {
148
- flag: 'formVariant',
149
- componentKey: 'forms'
150
- }];
144
+ var flagsToRecompute = [];
151
145
  var keys = {};
152
146
  var forceRecomputeComponents = flagsToRecompute.some(function (item) {
153
147
  var _modifications$flags, _modifications$compon;
148
+ if (!item) return false;
154
149
  if (Object.keys((_modifications$flags = modifications.flags) !== null && _modifications$flags !== void 0 ? _modifications$flags : {}).includes(item.flag) && !Object.keys((_modifications$compon = modifications.components) !== null && _modifications$compon !== void 0 ? _modifications$compon : {}).includes(item.componentKey)) {
155
150
  keys[item.componentKey] = {
156
151
  LIGHT: {},
@@ -39,7 +39,6 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
39
39
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
40
  };
41
41
  var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
42
- var _euiTheme$flags;
43
42
  var euiTheme = euiThemeContext.euiTheme,
44
43
  colorMode = euiThemeContext.colorMode;
45
44
  var badgeColors = (0, _color_utils.euiBadgeColors)(euiThemeContext);
@@ -49,13 +48,12 @@ var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyle
49
48
  return x * 1.25;
50
49
  })
51
50
  };
52
- var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
53
51
  return {
54
52
  euiBetaBadge: /*#__PURE__*/(0, _react.css)("display:inline-block;border-radius:", euiTheme.size.l, ";border:", euiTheme.border.width.thin, " solid transparent;cursor:default;font-weight:", euiTheme.font.weight.semiBold, ";text-transform:uppercase;letter-spacing:0.05em;text-align:center;", (0, _global_styling.euiTextTruncate)(), " &:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset', {
55
53
  color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
56
54
  }), ";};label:euiBetaBadge;"),
57
55
  // Colors
58
- accent: hasVisColorAdjustment ? /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;") : /*#__PURE__*/(0, _react.css)(badgeColors.accent, ";label:accent;"),
56
+ accent: /*#__PURE__*/(0, _react.css)(badgeColors.accent, ";label:accent;"),
59
57
  subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;"),
60
58
  hollow: /*#__PURE__*/(0, _react.css)("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
61
59
  warning: /*#__PURE__*/(0, _react.css)(badgeColors.warning, ";label:warning;"),
@@ -7,7 +7,6 @@ exports.euiNotificationBadgeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
9
  var _high_contrast = require("../../../global_styling/functions/high_contrast");
10
- var _services = require("../../../services");
11
10
  var _color_utils = require("../color_utils");
12
11
  /*
13
12
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -19,11 +18,10 @@ var _color_utils = require("../color_utils");
19
18
 
20
19
  var euiNotificationBadgeStyles = exports.euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiThemeContext) {
21
20
  var euiTheme = euiThemeContext.euiTheme;
22
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
23
21
  var badgeColors = (0, _color_utils.euiBadgeColors)(euiThemeContext);
24
- var borderRadius = isRefreshVariant ? (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
22
+ var borderRadius = (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
25
23
  return x / 2;
26
- }) : euiTheme.border.radius.small;
24
+ });
27
25
  return {
28
26
  euiNotificationBadge: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
29
27
  preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiButtonDisplayStyles = exports.euiButtonBaseCSS = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _mixins = require("../../../global_styling/mixins");
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)."; } /*
@@ -30,16 +29,14 @@ var _ref = process.env.NODE_ENV === "production" ? {
30
29
  };
31
30
  var euiButtonDisplayStyles = exports.euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
32
31
  var euiTheme = euiThemeContext.euiTheme;
33
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
34
32
  var sizes = (0, _mixins.euiButtonSizeMap)(euiThemeContext);
35
33
  var _buttonSize = function _buttonSize(sizeKey) {
36
34
  var size = sizes[sizeKey];
37
35
  return /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', size.height), " line-height:", size.height, ";", (0, _global_styling.euiFontSize)(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
38
36
  };
39
- var classicVariantStyles = "\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n }\n ";
40
37
  return {
41
38
  // Base
42
- euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.m)), " ", !isRefreshVariant && classicVariantStyles, ";;label:euiButtonDisplay;"),
39
+ euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.m)), ";;label:euiButtonDisplay;"),
43
40
  // States
44
41
  isDisabled: _ref,
45
42
  fullWidth: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiButtonDisplayContentStyles = 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
@@ -17,10 +16,8 @@ var _global_styling = require("../../../global_styling");
17
16
 
18
17
  var euiButtonDisplayContentStyles = exports.euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(euiThemeContext) {
19
18
  var euiTheme = euiThemeContext.euiTheme;
20
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
21
- var refreshVariantStyles = "\n /* ensure content stays ontop of hover pseudo element */\n position: relative;\n ";
22
19
  return {
23
20
  // Base
24
- euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";", isRefreshVariant && refreshVariantStyles, ";;label:euiButtonDisplayContent;")
21
+ euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
25
22
  };
26
23
  };
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiButtonEmptyStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _button_display = require("../button_display/_button_display.styles");
11
10
  /*
@@ -18,15 +17,11 @@ var _button_display = require("../button_display/_button_display.styles");
18
17
 
19
18
  var euiButtonEmptyStyles = exports.euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
20
19
  var euiTheme = euiThemeContext.euiTheme;
21
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
22
20
 
23
21
  // EuiButtonEmpty uses the same size/font styling as EuiButtonDisplay,
24
22
  // but does not share enough of the same colors/props to the point
25
23
  // of using the actual component - so we'll reuse its styles instead
26
24
  var displayStyles = (0, _button_display.euiButtonDisplayStyles)(euiThemeContext);
27
- var refreshFlushStyles = "\n /* using duplicate selector to ensure specificity */\n &&:hover,\n &&:active {\n background-color: transparent;\n\n /* removes hover overlay */\n &::before {\n display: none;\n }\n }\n\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n\n ".concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
28
- forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
29
- }), "\n }\n ");
30
25
  return {
31
26
  euiButtonEmpty: /*#__PURE__*/(0, _react.css)(displayStyles.euiButtonDisplay, " ", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.s)), _global_styling.euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
32
27
  isDisabled: displayStyles.isDisabled,
@@ -34,9 +29,11 @@ var euiButtonEmptyStyles = exports.euiButtonEmptyStyles = function euiButtonEmpt
34
29
  xs: displayStyles.xs,
35
30
  s: displayStyles.s,
36
31
  // uses array here to prevent adding duplicate "m" classname partial
37
- m: [displayStyles.m, isRefreshVariant && "\n ".concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), "\n ")],
32
+ m: [displayStyles.m, "\n ".concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), "\n ")],
38
33
  // Flush sides
39
- flush: /*#__PURE__*/(0, _react.css)("padding-inline:0;", isRefreshVariant && refreshFlushStyles, ";;label:flush;"),
34
+ flush: /*#__PURE__*/(0, _react.css)("padding-inline:0;&&:hover,&&:active{background-color:transparent;&::before{display:none;}}&:hover:not(:disabled),&:focus{text-decoration:underline;", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
35
+ forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
36
+ }), ";};label:flush;"),
40
37
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:left;"),
41
38
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.s), ";;label:right;"),
42
39
  both: /*#__PURE__*/(0, _react.css)(";label:both;")
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiButtonGroupStyles = exports.euiButtonGroupButtonsStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _high_contrast = require("../../../global_styling/functions/high_contrast");
11
10
  var _form = require("../../form/form.styles");
@@ -46,17 +45,8 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
46
45
  };
47
46
  var _highContrastStyles = function _highContrastStyles(euiThemeContext, compressed) {
48
47
  var euiTheme = euiThemeContext.euiTheme;
49
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
50
-
51
- // Account for buttons within tooltip wrappers in selectors
52
- var getButtonChildSelectors = function getButtonChildSelectors(selector) {
53
- return "\n & > .euiButtonGroupButton".concat(selector, ",\n & > .euiButtonGroup__tooltipWrapper").concat(selector, " .euiButtonGroupButton");
54
- };
55
48
  return (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
56
- preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : // Conditionally unset the high contrast borders passed by `euiButtonColor` -
57
- // faux borders between selected/unselected buttons are rendered by pseudo elements,
58
- // and can flip colors depending on selected/unselected siblings
59
- "\n ".concat(!isRefreshVariant && "\n ".concat(getButtonChildSelectors(':not(:first-child, :last-child)'), " {\n ").concat((0, _global_styling.logicalCSS)('border-horizontal', 'none'), "\n }\n ").concat(getButtonChildSelectors(':first-child'), " {\n ").concat((0, _global_styling.logicalCSS)('border-right', 'none'), "\n }\n ").concat(getButtonChildSelectors(':last-child'), " {\n ").concat((0, _global_styling.logicalCSS)('border-left', 'none'), "\n }\n "), "\n "),
60
- forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n ").concat(isRefreshVariant && "\n &:is(:hover, :focus):not(:disabled) {\n &::before {\n border-color: ".concat(euiTheme.colors.textInverse, ";\n }\n }\n "), "\n }\n\n .euiButtonGroupButton[disabled] {\n opacity: 0.5;\n }\n ")
49
+ preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : '',
50
+ forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n &:is(:hover, :focus):not(:disabled) {\n &::before {\n border-color: ").concat(euiTheme.colors.textInverse, ";\n }\n }\n }\n\n .euiButtonGroupButton[disabled] {\n opacity: 0.5;\n }\n ")
61
51
  });
62
52
  };
@@ -44,11 +44,9 @@ var EuiButtonGroupButton = exports.EuiButtonGroupButton = function EuiButtonGrou
44
44
  toolTipProps = _ref.toolTipProps,
45
45
  contentProps = _ref.contentProps,
46
46
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
47
- var euiThemeContext = (0, _services.useEuiTheme)();
48
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
49
47
  var isCompressed = size === 'compressed';
50
48
  var color = isDisabled ? 'disabled' : _color;
51
- var hasBorder = isRefreshVariant && color !== 'text' && !isCompressed;
49
+ var hasBorder = color !== 'text' && !isCompressed;
52
50
  var display = isSelected ? 'fill' : isCompressed || hasBorder ? 'empty' : 'base';
53
51
  var hasToolTip = !!toolTipContent;
54
52
  var styles = (0, _services.useEuiMemoizedStyles)(_button_group_button.euiButtonGroupButtonStyles);
@@ -8,7 +8,6 @@ exports.euiButtonGroupButtonStyles = exports._compressedButtonFocusColors = void
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _react = require("@emotion/react");
11
- var _services = require("../../../services");
12
11
  var _global_styling = require("../../../global_styling");
13
12
  var _button = require("../../../global_styling/mixins/_button");
14
13
  var _accessibility = require("../../accessibility");
@@ -41,41 +40,28 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
41
40
  var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
42
41
  var euiTheme = euiThemeContext.euiTheme,
43
42
  highContrastMode = euiThemeContext.highContrastMode;
44
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
45
43
  var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
46
- controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
47
- controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius;
44
+ controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
48
45
  var compressedButtonHeight = (0, _global_styling.mathWithUnits)([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
49
- return isRefreshVariant ? x - y * 6 : x - y * 2;
46
+ return x - y * 6;
50
47
  });
51
48
  var selectedSelectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
52
49
  var uncompressedBorderRadii = function uncompressedBorderRadii(radiusSize) {
53
50
  return "\n border-radius: 0;\n\n &:first-child {\n ".concat((0, _global_styling.logicalShorthandCSS)('border-radius', "".concat(radiusSize, " 0 0 ").concat(radiusSize)), "\n }\n\n &:last-child {\n ").concat((0, _global_styling.logicalShorthandCSS)('border-radius', "0 ".concat(radiusSize, " ").concat(radiusSize, " 0")), "\n }\n\n &:first-child:last-child {\n ").concat((0, _global_styling.logicalShorthandCSS)('border-radius', "".concat(radiusSize)), "\n }\n ");
54
51
  };
55
- var refreshVariantStyles = "\n &:is(".concat(selectedSelectors, ") {\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
56
- forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n border: none;\n\n /* styles the content manually instead of the button itself to preserve the system\n focus style, as otherwise preventForcedColors() would require manual styling */\n > [class*=\"euiButtonDisplayContent\"] {\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
57
- }), "\n }\n ");
58
- var uncompressedStyles = isRefreshVariant ? "\n &:is(".concat(selectedSelectors, "):not(:disabled) {\n z-index: 1;\n /* prevent layout jumps due to missing border for selected/filled buttons */\n border: ").concat(euiTheme.border.width.thin, " solid transparent;\n\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
59
- forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
60
- return x * 4;
61
- }), ";\n }\n ")
62
- }), "\n }\n ") : "\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ".concat(euiTheme.font.weight.bold, ";\n }\n ");
63
- var compressedStyles = isRefreshVariant ? "\n margin: ".concat(euiTheme.size.xxs, ";\n border-radius: ").concat((0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
64
- return x / 2;
65
- }), ";\n\n & + .euiButtonGroupButton {\n ").concat((0, _global_styling.logicalCSS)('margin-left', '0'), "\n }\n\n &:is(").concat(selectedSelectors, "):not(:disabled) {\n /* prevent layout jumps due to missing border for non-selected buttons */\n border: none;\n\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
66
- forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
67
- return x * 3;
68
- }), ";\n }\n ")
69
- }), "\n }\n ") : "\n background-clip: content-box;\n /* Tweak border radius to account for the padding & background-clip */\n border-radius: ".concat((0, _global_styling.mathWithUnits)([controlCompressedBorderRadius, euiTheme.border.width.thin], function (x, y) {
70
- return x + y;
71
- }), ";\n\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ").concat(euiTheme.font.weight.semiBold, ";\n }\n ");
72
52
  return {
73
53
  // Base
74
- euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:2;}", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;}", isRefreshVariant && refreshVariantStyles, ";;label:euiButtonGroupButton;"),
54
+ euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:2;}", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;}&:is(", selectedSelectors, "){", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
55
+ forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n border: none;\n\n /* styles the content manually instead of the button itself to preserve the system\n focus style, as otherwise preventForcedColors() would require manual styling */\n > [class*=\"euiButtonDisplayContent\"] {\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
56
+ }), ";};label:euiButtonGroupButton;"),
75
57
  iconOnly: /*#__PURE__*/(0, _react.css)("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
76
58
  // Sizes
77
59
  uncompressed: {
78
- uncompressed: /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}", uncompressedStyles, ";;label:uncompressed;"),
60
+ uncompressed: /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}&:is(", selectedSelectors, "):not(:disabled){z-index:1;border:", euiTheme.border.width.thin, " solid transparent;", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
61
+ forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
62
+ return x * 4;
63
+ }), ";\n }\n ")
64
+ }), ";};label:uncompressed;"),
79
65
  get borders() {
80
66
  // We use pseudo elements to avoid affecing button width, and to allow
81
67
  // inheriting high contrast border colors
@@ -83,26 +69,29 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
83
69
  var selectedColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.buttonGroupBorderColorSelected;
84
70
  var unselectedColor = highContrastMode ? 'inherit' : euiTheme.components.buttonGroupBorderColor;
85
71
  var borderWidth = euiTheme.border.width.thin;
86
- var borderStyles = isRefreshVariant ? "\n &:not(:first-child) {\n margin-inline-start: -".concat(borderWidth, ";\n }\n\n &:is(").concat(selectors, ") {\n &::before {\n position: absolute;\n z-index: 1;\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n }\n }\n ") : "\n &::before {\n position: absolute;\n ".concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', highContrastMode ? "-".concat(euiTheme.border.width.thin) : 0), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n }\n ");
87
72
 
88
73
  // "Borders" between buttons should be present between two of the same colored buttons,
89
74
  // and absent between selected vs non-selected buttons (different colors)
90
- return "\n position: relative;\n\n ".concat(borderStyles, "\n\n &:not(").concat(selectors, ") + *:not(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(unselectedColor, ";\n }\n }\n\n &:is(").concat(selectors, ") + *:is(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(selectedColor, ";\n }\n }\n ");
75
+ return "\n position: relative;\n\n &:not(:first-child) {\n margin-inline-start: -".concat(borderWidth, ";\n }\n\n &:is(").concat(selectors, ") {\n &::before {\n position: absolute;\n z-index: 1;\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n }\n }\n\n &:not(").concat(selectors, ") + *:not(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(unselectedColor, ";\n }\n }\n\n &:is(").concat(selectors, ") + *:is(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(selectedColor, ";\n }\n }\n ");
91
76
  },
92
77
  get s() {
93
78
  return /*#__PURE__*/(0, _react.css)(this.borders, " ", uncompressedBorderRadii(euiTheme.border.radius.small), ";;label:s;");
94
79
  },
95
80
  get m() {
96
- var radius = isRefreshVariant ? euiTheme.border.radius.small : euiTheme.border.radius.medium;
81
+ var radius = euiTheme.border.radius.small;
97
82
  return /*#__PURE__*/(0, _react.css)(this.borders, " ", uncompressedBorderRadii(radius), ";;label:m;");
98
83
  },
99
84
  hasToolTip: _ref2
100
85
  },
101
- compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:", isRefreshVariant ? '0' : (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
102
- return x * 2;
103
- }), ";", compressedStyles, ";;label:compressed;"),
86
+ compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:0;margin:", euiTheme.size.xxs, ";border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
87
+ return x / 2;
88
+ }), ";&+.euiButtonGroupButton{", (0, _global_styling.logicalCSS)('margin-left', '0'), ";}&:is(", selectedSelectors, "):not(:disabled){border:none;", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
89
+ forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
90
+ return x * 3;
91
+ }), ";\n }\n ")
92
+ }), ";};label:compressed;"),
104
93
  // States
105
- disabledAndSelected: /*#__PURE__*/(0, _react.css)("color:", isRefreshVariant ? euiTheme.colors.textDisabled : (0, _services.makeDisabledContrastColor)(euiTheme.colors.textDisabled)(euiTheme.components.buttonGroupBackgroundDisabledSelected), ";background-color:", euiTheme.components.buttonGroupBackgroundDisabledSelected, ";border:", highContrastMode ? "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.buttonGroupBackgroundDisabledSelected) : isRefreshVariant ? "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain) : '', ";;label:disabledAndSelected;"),
94
+ disabledAndSelected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDisabled, ";background-color:", euiTheme.components.buttonGroupBackgroundDisabledSelected, ";border:", highContrastMode ? "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.buttonGroupBackgroundDisabledSelected) : "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain), ";;label:disabledAndSelected;"),
106
95
  // Skip css`` to avoid generating a className
107
96
  hasBorder: "\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n "),
108
97
  // Tooltip anchor wrapper
@@ -121,11 +110,8 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
121
110
  };
122
111
  var _compressedButtonFocusColors = exports._compressedButtonFocusColors = function _compressedButtonFocusColors(euiThemeContext) {
123
112
  var euiTheme = euiThemeContext.euiTheme;
124
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
125
113
  var colors = [].concat((0, _toConsumableArray2.default)(_button.BUTTON_COLORS), ['disabled']);
126
114
  return colors.reduce(function (acc, color) {
127
- var _euiButtonFillColor = (0, _button.euiButtonFillColor)(euiThemeContext, color),
128
- backgroundColor = _euiButtonFillColor.backgroundColor;
129
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, isRefreshVariant ? 'outset' : 'center', isRefreshVariant ? euiTheme.focus.color : backgroundColor), " ", !isRefreshVariant && "\n &:is(.euiButtonGroupButton-isSelected) {\n outline-offset: 0;\n }\n ", ";}")));
115
+ return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'outset', euiTheme.focus.color), ";}")));
130
116
  }, {});
131
117
  };
@@ -48,8 +48,6 @@ var EuiButtonIcon = exports.EuiButtonIcon = function EuiButtonIcon(_ref) {
48
48
  isSelected = _ref.isSelected,
49
49
  isLoading = _ref.isLoading,
50
50
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
51
- var euiThemeContext = (0, _services.useEuiTheme)();
52
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
53
51
  var isDisabled = (0, _button_display.isButtonDisabled)({
54
52
  isDisabled: _isDisabled || disabled,
55
53
  href: href,
@@ -64,9 +62,8 @@ var EuiButtonIcon = exports.EuiButtonIcon = function EuiButtonIcon(_ref) {
64
62
  display: display
65
63
  });
66
64
  var buttonFocusStyle = (0, _button.useEuiButtonFocusCSS)();
67
- var emptyHoverStyles = (0, _services.useEuiMemoizedStyles)(_button_icon._emptyHoverStyles);
68
65
  var styles = (0, _services.useEuiMemoizedStyles)(_button_icon.euiButtonIconStyles);
69
- var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle, !isRefreshVariant && display === 'empty' && !isDisabled && emptyHoverStyles[color], isDisabled && styles.isDisabled];
66
+ var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle, isDisabled && styles.isDisabled];
70
67
  var classes = (0, _classnames.default)('euiButtonIcon', className);
71
68
 
72
69
  // Add an icon to the button if one exists.