@elastic/eui 107.0.1 → 109.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 (518) 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/basic_table/collapsed_item_actions.js +3 -1
  4. package/es/components/basic_table/default_item_action.js +7 -4
  5. package/es/components/button/button_display/_button_display.styles.js +1 -4
  6. package/es/components/button/button_display/_button_display_content.styles.js +1 -4
  7. package/es/components/button/button_empty/button_empty.styles.js +4 -7
  8. package/es/components/button/button_group/button_group.styles.js +2 -12
  9. package/es/components/button/button_group/button_group_button.js +4 -7
  10. package/es/components/button/button_group/button_group_button.styles.js +22 -36
  11. package/es/components/button/button_icon/button_icon.js +3 -6
  12. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  13. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  14. package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  15. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  16. package/es/components/datagrid/body/header/column_actions.js +5 -21
  17. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  18. package/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  19. package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  20. package/es/components/datagrid/controls/column_selector.styles.js +1 -1
  21. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  22. package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  23. package/es/components/datagrid/data_grid.styles.js +0 -1
  24. package/es/components/date_picker/date_picker.styles.js +1 -4
  25. package/es/components/date_picker/date_picker_range.styles.js +4 -8
  26. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  27. package/es/components/filter_group/filter_button.js +7 -10
  28. package/es/components/filter_group/filter_button.styles.js +28 -39
  29. package/es/components/filter_group/filter_group.styles.js +8 -29
  30. package/es/components/form/field_number/field_number.styles.js +1 -4
  31. package/es/components/form/field_text/field_text.styles.js +1 -4
  32. package/es/components/form/file_picker/file_picker.js +102 -107
  33. package/es/components/form/file_picker/file_picker.styles.js +6 -8
  34. package/es/components/form/form.styles.js +17 -40
  35. package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  36. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  37. package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  38. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  39. package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  40. package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  41. package/es/components/form/form_label/form_label.js +1 -1
  42. package/es/components/form/form_label/form_label.styles.js +1 -5
  43. package/es/components/form/range/range_input.styles.js +1 -3
  44. package/es/components/header/header.styles.js +4 -19
  45. package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  46. package/es/components/icon/assets/paper_clip.js +1 -1
  47. package/es/components/icon/assets/streams_wired.js +3 -2
  48. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  49. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  50. package/es/components/modal/modal.js +23 -5
  51. package/es/components/panel/panel.styles.js +4 -12
  52. package/es/components/resizable_container/resizable_collapse_button.js +2 -3
  53. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  54. package/es/components/toast/toast.styles.js +1 -3
  55. package/es/components/token/token.js +1 -3
  56. package/es/components/token/token.styles.js +2 -3
  57. package/es/components/token/token_map.js +1 -231
  58. package/es/global_styling/mixins/_button.js +14 -24
  59. package/es/index.js +0 -1
  60. package/es/services/color/eui_palettes.js +7 -21
  61. package/es/services/color/eui_palettes_hooks.js +6 -10
  62. package/es/services/color/vis_color_store.js +2 -2
  63. package/es/services/theme/high_contrast_overrides.js +5 -1
  64. package/es/services/theme/provider.js +4 -9
  65. package/eui.d.ts +35 -2105
  66. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  67. package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  68. package/lib/components/basic_table/collapsed_item_actions.js +3 -1
  69. package/lib/components/basic_table/default_item_action.js +7 -4
  70. package/lib/components/button/button_display/_button_display.styles.js +1 -4
  71. package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  72. package/lib/components/button/button_empty/button_empty.styles.js +4 -7
  73. package/lib/components/button/button_group/button_group.styles.js +2 -12
  74. package/lib/components/button/button_group/button_group_button.js +3 -6
  75. package/lib/components/button/button_group/button_group_button.styles.js +21 -35
  76. package/lib/components/button/button_icon/button_icon.js +1 -4
  77. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  78. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  79. package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  80. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  81. package/lib/components/datagrid/body/header/column_actions.js +5 -21
  82. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  83. package/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  84. package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  85. package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  86. package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  87. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  88. package/lib/components/datagrid/data_grid.styles.js +0 -1
  89. package/lib/components/date_picker/date_picker.styles.js +1 -4
  90. package/lib/components/date_picker/date_picker_range.styles.js +4 -8
  91. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  92. package/lib/components/filter_group/filter_button.js +6 -9
  93. package/lib/components/filter_group/filter_button.styles.js +27 -38
  94. package/lib/components/filter_group/filter_group.styles.js +8 -29
  95. package/lib/components/form/field_number/field_number.styles.js +1 -4
  96. package/lib/components/form/field_text/field_text.styles.js +1 -4
  97. package/lib/components/form/file_picker/file_picker.js +101 -106
  98. package/lib/components/form/file_picker/file_picker.styles.js +6 -8
  99. package/lib/components/form/form.styles.js +16 -39
  100. package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  101. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  102. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  103. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  104. package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  105. package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  106. package/lib/components/form/form_label/form_label.js +1 -1
  107. package/lib/components/form/form_label/form_label.styles.js +1 -5
  108. package/lib/components/form/range/range_input.styles.js +1 -3
  109. package/lib/components/header/header.styles.js +2 -18
  110. package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  111. package/lib/components/icon/assets/paper_clip.js +1 -1
  112. package/lib/components/icon/assets/streams_wired.js +3 -2
  113. package/lib/components/icon/svgs/paper_clip.svg +3 -3
  114. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  115. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  116. package/lib/components/modal/modal.js +25 -5
  117. package/lib/components/panel/panel.styles.js +4 -12
  118. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  119. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  120. package/lib/components/toast/toast.styles.js +1 -3
  121. package/lib/components/token/token.js +1 -3
  122. package/lib/components/token/token.styles.js +1 -2
  123. package/lib/components/token/token_map.js +2 -232
  124. package/lib/global_styling/mixins/_button.js +11 -21
  125. package/lib/index.js +0 -11
  126. package/lib/services/color/eui_palettes.js +7 -21
  127. package/lib/services/color/eui_palettes_hooks.js +6 -10
  128. package/lib/services/color/vis_color_store.js +2 -2
  129. package/lib/services/theme/high_contrast_overrides.js +5 -1
  130. package/lib/services/theme/provider.js +4 -9
  131. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  132. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  133. package/optimize/es/components/basic_table/collapsed_item_actions.js +3 -1
  134. package/optimize/es/components/basic_table/default_item_action.js +7 -4
  135. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
  136. package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
  137. package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
  138. package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
  139. package/optimize/es/components/button/button_group/button_group_button.js +3 -6
  140. package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
  141. package/optimize/es/components/button/button_icon/button_icon.js +3 -6
  142. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  143. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  144. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  145. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  146. package/optimize/es/components/datagrid/body/header/column_actions.js +5 -21
  147. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  148. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  149. package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  150. package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
  151. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  152. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  153. package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
  154. package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
  155. package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
  156. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  157. package/optimize/es/components/filter_group/filter_button.js +7 -10
  158. package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
  159. package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
  160. package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
  161. package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
  162. package/optimize/es/components/form/file_picker/file_picker.js +102 -107
  163. package/optimize/es/components/form/file_picker/file_picker.styles.js +6 -8
  164. package/optimize/es/components/form/form.styles.js +17 -40
  165. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  166. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  167. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  168. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  169. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  170. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  171. package/optimize/es/components/form/form_label/form_label.js +1 -1
  172. package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
  173. package/optimize/es/components/form/range/range_input.styles.js +1 -3
  174. package/optimize/es/components/header/header.styles.js +4 -19
  175. package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  176. package/optimize/es/components/icon/assets/paper_clip.js +1 -1
  177. package/optimize/es/components/icon/assets/streams_wired.js +3 -2
  178. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  179. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  180. package/optimize/es/components/modal/modal.js +17 -4
  181. package/optimize/es/components/panel/panel.styles.js +4 -12
  182. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
  183. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  184. package/optimize/es/components/toast/toast.styles.js +1 -3
  185. package/optimize/es/components/token/token.js +1 -3
  186. package/optimize/es/components/token/token.styles.js +2 -3
  187. package/optimize/es/components/token/token_map.js +1 -231
  188. package/optimize/es/global_styling/mixins/_button.js +14 -24
  189. package/optimize/es/index.js +0 -1
  190. package/optimize/es/services/color/eui_palettes.js +7 -21
  191. package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
  192. package/optimize/es/services/color/vis_color_store.js +2 -2
  193. package/optimize/es/services/theme/high_contrast_overrides.js +5 -1
  194. package/optimize/es/services/theme/provider.js +4 -9
  195. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  196. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  197. package/optimize/lib/components/basic_table/collapsed_item_actions.js +3 -1
  198. package/optimize/lib/components/basic_table/default_item_action.js +7 -4
  199. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
  200. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  201. package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
  202. package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
  203. package/optimize/lib/components/button/button_group/button_group_button.js +2 -5
  204. package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
  205. package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
  206. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  207. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  208. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  209. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  210. package/optimize/lib/components/datagrid/body/header/column_actions.js +5 -21
  211. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  212. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  213. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  214. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  215. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  216. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  217. package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
  218. package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
  219. package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
  220. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  221. package/optimize/lib/components/filter_group/filter_button.js +6 -9
  222. package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
  223. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
  224. package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
  225. package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
  226. package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
  227. package/optimize/lib/components/form/file_picker/file_picker.styles.js +6 -8
  228. package/optimize/lib/components/form/form.styles.js +16 -39
  229. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  230. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  231. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  232. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  233. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  234. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  235. package/optimize/lib/components/form/form_label/form_label.js +1 -1
  236. package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
  237. package/optimize/lib/components/form/range/range_input.styles.js +1 -3
  238. package/optimize/lib/components/header/header.styles.js +2 -18
  239. package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  240. package/optimize/lib/components/icon/assets/paper_clip.js +1 -1
  241. package/optimize/lib/components/icon/assets/streams_wired.js +3 -2
  242. package/optimize/lib/components/icon/svgs/paper_clip.svg +3 -3
  243. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  244. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  245. package/optimize/lib/components/modal/modal.js +20 -4
  246. package/optimize/lib/components/panel/panel.styles.js +4 -12
  247. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  248. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  249. package/optimize/lib/components/toast/toast.styles.js +1 -3
  250. package/optimize/lib/components/token/token.js +1 -3
  251. package/optimize/lib/components/token/token.styles.js +1 -2
  252. package/optimize/lib/components/token/token_map.js +2 -232
  253. package/optimize/lib/global_styling/mixins/_button.js +11 -21
  254. package/optimize/lib/index.js +0 -11
  255. package/optimize/lib/services/color/eui_palettes.js +7 -21
  256. package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
  257. package/optimize/lib/services/color/vis_color_store.js +2 -2
  258. package/optimize/lib/services/theme/high_contrast_overrides.js +5 -1
  259. package/optimize/lib/services/theme/provider.js +4 -9
  260. package/package.json +5 -6
  261. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  262. package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
  263. package/test-env/components/basic_table/collapsed_item_actions.js +3 -1
  264. package/test-env/components/basic_table/default_item_action.js +7 -4
  265. package/test-env/components/button/button_display/_button_display.styles.js +1 -4
  266. package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
  267. package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
  268. package/test-env/components/button/button_group/button_group.styles.js +2 -12
  269. package/test-env/components/button/button_group/button_group_button.js +3 -6
  270. package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
  271. package/test-env/components/button/button_icon/button_icon.js +1 -4
  272. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  273. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  274. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  275. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  276. package/test-env/components/datagrid/body/header/column_actions.js +5 -21
  277. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  278. package/test-env/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  279. package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  280. package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
  281. package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
  282. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  283. package/test-env/components/datagrid/data_grid.styles.js +0 -1
  284. package/test-env/components/date_picker/date_picker.styles.js +1 -4
  285. package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
  286. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  287. package/test-env/components/filter_group/filter_button.js +6 -9
  288. package/test-env/components/filter_group/filter_button.styles.js +27 -38
  289. package/test-env/components/filter_group/filter_group.styles.js +8 -29
  290. package/test-env/components/form/field_number/field_number.styles.js +1 -4
  291. package/test-env/components/form/field_text/field_text.styles.js +1 -4
  292. package/test-env/components/form/file_picker/file_picker.js +101 -106
  293. package/test-env/components/form/file_picker/file_picker.styles.js +6 -8
  294. package/test-env/components/form/form.styles.js +16 -39
  295. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  296. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  297. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  298. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  299. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  300. package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
  301. package/test-env/components/form/form_label/form_label.js +1 -1
  302. package/test-env/components/form/form_label/form_label.styles.js +1 -5
  303. package/test-env/components/form/range/range_input.styles.js +1 -3
  304. package/test-env/components/header/header.styles.js +2 -18
  305. package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
  306. package/test-env/components/icon/assets/paper_clip.js +1 -1
  307. package/test-env/components/icon/assets/streams_wired.js +3 -2
  308. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  309. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  310. package/test-env/components/modal/modal.js +26 -5
  311. package/test-env/components/panel/panel.styles.js +4 -12
  312. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  313. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  314. package/test-env/components/toast/toast.styles.js +1 -3
  315. package/test-env/components/token/token.js +1 -3
  316. package/test-env/components/token/token.styles.js +1 -2
  317. package/test-env/components/token/token_map.js +2 -232
  318. package/test-env/global_styling/mixins/_button.js +11 -21
  319. package/test-env/index.js +0 -11
  320. package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
  321. package/test-env/services/color/eui_palettes.js +7 -21
  322. package/test-env/services/color/eui_palettes_hooks.js +6 -10
  323. package/test-env/services/color/vis_color_store.js +2 -2
  324. package/test-env/services/theme/high_contrast_overrides.js +5 -1
  325. package/test-env/services/theme/provider.js +4 -9
  326. package/dist/eui_theme_amsterdam_dark.json +0 -463
  327. package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
  328. package/dist/eui_theme_amsterdam_light.json +0 -463
  329. package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
  330. package/dist/eui_theme_borealis_dark.json +0 -463
  331. package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
  332. package/dist/eui_theme_borealis_light.json +0 -463
  333. package/dist/eui_theme_borealis_light.json.d.ts +0 -466
  334. package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  335. package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  336. package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  337. package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  338. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  339. package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
  340. package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
  341. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  342. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
  343. package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
  344. package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  345. package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
  346. package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  347. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
  348. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
  349. package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  350. package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
  351. package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  352. package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  353. package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
  354. package/es/themes/amsterdam/index.js +0 -10
  355. package/es/themes/amsterdam/theme.js +0 -41
  356. package/es/themes/index.js +0 -12
  357. package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  358. package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  359. package/es/themes/json/eui_theme_borealis_dark.json +0 -463
  360. package/es/themes/json/eui_theme_borealis_light.json +0 -463
  361. package/es/themes/themes.js +0 -1
  362. package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  363. package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  364. package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  365. package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  366. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  367. package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
  368. package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
  369. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  370. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
  371. package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
  372. package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  373. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
  374. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  375. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
  376. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
  377. package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  378. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
  379. package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  380. package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  381. package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
  382. package/lib/themes/amsterdam/index.js +0 -16
  383. package/lib/themes/amsterdam/theme.js +0 -47
  384. package/lib/themes/index.js +0 -57
  385. package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  386. package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  387. package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  388. package/lib/themes/json/eui_theme_borealis_light.json +0 -463
  389. package/lib/themes/themes.js +0 -5
  390. package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  391. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  392. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  393. package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  394. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  395. package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
  396. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
  397. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  398. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
  399. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
  400. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  401. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
  402. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  403. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
  404. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
  405. package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  406. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
  407. package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  408. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  409. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
  410. package/optimize/es/themes/amsterdam/index.js +0 -10
  411. package/optimize/es/themes/amsterdam/theme.js +0 -41
  412. package/optimize/es/themes/index.js +0 -12
  413. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  414. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  415. package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
  416. package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
  417. package/optimize/es/themes/themes.js +0 -1
  418. package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  419. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  420. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  421. package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  422. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  423. package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  424. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  425. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  426. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  427. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  428. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  429. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  430. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  431. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
  432. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  433. package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  434. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  435. package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  436. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  437. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  438. package/optimize/lib/themes/amsterdam/index.js +0 -16
  439. package/optimize/lib/themes/amsterdam/theme.js +0 -47
  440. package/optimize/lib/themes/index.js +0 -57
  441. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  442. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  443. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  444. package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
  445. package/optimize/lib/themes/themes.js +0 -5
  446. package/package/eui.d.ts +0 -33359
  447. package/src/global_styling/functions/_colors.scss +0 -138
  448. package/src/global_styling/functions/_index.scss +0 -1
  449. package/src/global_styling/functions/_math.scss +0 -1
  450. package/src/global_styling/functions/_math_pow.scss +0 -82
  451. package/src/global_styling/index.scss +0 -3
  452. package/src/global_styling/mixins/_helpers.scss +0 -117
  453. package/src/global_styling/mixins/_index.scss +0 -8
  454. package/src/global_styling/mixins/_responsive.scss +0 -44
  455. package/src/global_styling/mixins/_shadow.scss +0 -100
  456. package/src/global_styling/mixins/_size.scss +0 -4
  457. package/src/global_styling/mixins/_states.scss +0 -17
  458. package/src/global_styling/mixins/_tool_tip.scss +0 -18
  459. package/src/global_styling/mixins/_typography.scss +0 -166
  460. package/src/global_styling/variables/_animations.scss +0 -6
  461. package/src/global_styling/variables/_borders.scss +0 -3
  462. package/src/global_styling/variables/_buttons.scss +0 -1
  463. package/src/global_styling/variables/_font_weight.scss +0 -4
  464. package/src/global_styling/variables/_form.scss +0 -2
  465. package/src/global_styling/variables/_index.scss +0 -22
  466. package/src/global_styling/variables/_responsive.scss +0 -1
  467. package/src/global_styling/variables/_shadows.scss +0 -2
  468. package/src/global_styling/variables/_size.scss +0 -1
  469. package/src/global_styling/variables/_states.scss +0 -1
  470. package/src/global_styling/variables/_typography.scss +0 -1
  471. package/src/global_styling/variables/_z_index.scss +0 -2
  472. package/src/themes/amsterdam/_colors_dark.scss +0 -139
  473. package/src/themes/amsterdam/_colors_light.scss +0 -139
  474. package/src/themes/amsterdam/_globals.scss +0 -11
  475. package/src/themes/amsterdam/global_styling/index.scss +0 -12
  476. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
  477. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
  478. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
  479. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
  480. package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
  481. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  482. package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
  483. package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
  484. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  485. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
  486. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
  487. package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
  488. package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
  489. package/src/themes/amsterdam/theme_dark.scss +0 -5
  490. package/src/themes/amsterdam/theme_light.scss +0 -5
  491. package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
  492. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  493. package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
  494. package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
  495. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  496. package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  497. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  498. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  499. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  500. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  501. package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  502. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  503. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  504. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
  505. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  506. package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  507. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  508. package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
  509. package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
  510. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  511. package/test-env/themes/amsterdam/index.js +0 -16
  512. package/test-env/themes/amsterdam/theme.js +0 -47
  513. package/test-env/themes/index.js +0 -57
  514. package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
  515. package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
  516. package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
  517. package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
  518. package/test-env/themes/themes.js +0 -5
@@ -114,16 +114,8 @@ var euiPaletteColorBlind = exports.euiPaletteColorBlind = function euiPaletteCol
114
114
  */
115
115
  var euiPaletteColorBlindBehindText = exports.euiPaletteColorBlindBehindText = function euiPaletteColorBlindBehindText() {
116
116
  var paletteProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
117
- var hasVisColorAdjustment = paletteProps.hasVisColorAdjustment;
118
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
119
117
  var originalPalette = euiPaletteColorBlind(paletteProps);
120
-
121
- // new theme palette has required contrast, we don't need to adjust them
122
- if (!_hasVisColorAdjustment) return originalPalette;
123
- var newPalette = originalPalette.map(function (color) {
124
- return (0, _chromaJs.default)(color).brighten(0.5).hex();
125
- });
126
- return newPalette;
118
+ return originalPalette;
127
119
  };
128
120
  var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
129
121
  return keys.reduce(function (colors, curr) {
@@ -190,10 +182,8 @@ var euiPaletteForStatus = exports.euiPaletteForStatus = function euiPaletteForSt
190
182
  */
191
183
  var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
192
184
  var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
193
- colors = _ref6.colors,
194
- hasVisColorAdjustment = _ref6.hasVisColorAdjustment;
185
+ colors = _ref6.colors;
195
186
  var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
196
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
197
187
  if (steps === 1) {
198
188
  return [visColors.euiColorVisCool2];
199
189
  } else if (steps <= 3) {
@@ -201,7 +191,7 @@ var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPa
201
191
  }
202
192
  var cools = (0, _color_palette.colorPalette)([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
203
193
  var warms = (0, _color_palette.colorPalette)([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
204
- var paletteColors = _hasVisColorAdjustment ? [].concat(_toConsumableArray(cools), _toConsumableArray(warms)) : [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
194
+ var paletteColors = [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
205
195
  return euiPalette(paletteColors, steps, true);
206
196
  };
207
197
 
@@ -213,14 +203,12 @@ var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPa
213
203
  */
214
204
  var euiPaletteComplementary = exports.euiPaletteComplementary = function euiPaletteComplementary(steps) {
215
205
  var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
216
- colors = _ref7.colors,
217
- hasVisColorAdjustment = _ref7.hasVisColorAdjustment;
206
+ colors = _ref7.colors;
218
207
  var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
219
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
220
208
  if (steps === 1) {
221
209
  return [visColors.euiColorVisComplementary0];
222
210
  }
223
- var paletteColors = _hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
211
+ var paletteColors = [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
224
212
  return euiPalette(paletteColors, steps, true);
225
213
  };
226
214
 
@@ -312,14 +300,12 @@ var euiPaletteOrange = exports.euiPaletteOrange = function euiPaletteOrange(step
312
300
  */
313
301
  var euiPaletteCool = exports.euiPaletteCool = function euiPaletteCool(steps) {
314
302
  var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
315
- colors = _ref13.colors,
316
- hasVisColorAdjustment = _ref13.hasVisColorAdjustment;
303
+ colors = _ref13.colors;
317
304
  var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
318
- var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
319
305
  if (steps === 1) {
320
306
  return [visColors.euiColorVisCool1];
321
307
  }
322
- return euiPalette([_hasVisColorAdjustment ? visColors.euiColorVisBase0 : visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
308
+ return euiPalette([visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
323
309
  };
324
310
 
325
311
  /**
@@ -64,24 +64,20 @@ var useEuiPaletteGray = exports.useEuiPaletteGray = function useEuiPaletteGray(s
64
64
  var _useEuiPaletteFn = function _useEuiPaletteFn(palleteFn, args) {
65
65
  var _useEuiTheme = (0, _hooks.useEuiTheme)(),
66
66
  euiTheme = _useEuiTheme.euiTheme;
67
- var colors = euiTheme.colors,
68
- flags = euiTheme.flags;
67
+ var colors = euiTheme.colors;
69
68
  return (0, _react.useMemo)(function () {
70
69
  return palleteFn(_objectSpread(_objectSpread({}, args), {}, {
71
- colors: colors.vis,
72
- hasVisColorAdjustment: flags.hasVisColorAdjustment
70
+ colors: colors.vis
73
71
  }));
74
- }, [colors, flags, args, palleteFn]);
72
+ }, [colors, args, palleteFn]);
75
73
  };
76
74
  var _useEuiPaletteWithStepsFn = function _useEuiPaletteWithStepsFn(palleteFn, steps) {
77
75
  var _useEuiTheme2 = (0, _hooks.useEuiTheme)(),
78
76
  euiTheme = _useEuiTheme2.euiTheme;
79
- var colors = euiTheme.colors,
80
- flags = euiTheme.flags;
77
+ var colors = euiTheme.colors;
81
78
  return (0, _react.useMemo)(function () {
82
79
  return palleteFn(steps, {
83
- colors: colors.vis,
84
- hasVisColorAdjustment: flags.hasVisColorAdjustment
80
+ colors: colors.vis
85
81
  });
86
- }, [colors, flags, steps, palleteFn]);
82
+ }, [colors, steps, palleteFn]);
87
83
  };
@@ -14,5 +14,5 @@ var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
14
14
  * Side Public License, v 1.
15
15
  */
16
16
 
17
- // initialsetup of Vis color storage with default colors
18
- var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis, false);
17
+ // initial setup of vis color storage with default colors
18
+ var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis);
@@ -39,19 +39,23 @@ var useHighContrastModifications = exports.useHighContrastModifications = functi
39
39
  borderBasePrimary: systemTheme.colors.textPrimary,
40
40
  borderBaseAccent: systemTheme.colors.textAccent,
41
41
  borderBaseAccentSecondary: systemTheme.colors.textAccentSecondary,
42
+ borderBaseNeutral: systemTheme.colors.textNeutral,
42
43
  borderBaseSuccess: systemTheme.colors.textSuccess,
43
44
  borderBaseWarning: systemTheme.colors.textWarning,
45
+ borderBaseRisk: systemTheme.colors.textRisk,
44
46
  borderBaseDanger: systemTheme.colors.textDanger,
45
47
  borderBasePlain: borderColor,
46
48
  borderBaseSubdued: borderColor,
49
+ borderBaseProminent: borderColor,
47
50
  borderBaseDisabled: systemTheme.colors.textDisabled,
48
51
  borderBaseFloating: borderColor,
49
- borderBaseFormsControl: borderColor,
50
52
  borderStrongPrimary: systemTheme.colors.textPrimary,
51
53
  borderStrongAccent: systemTheme.colors.textAccent,
52
54
  borderStrongAccentSecondary: systemTheme.colors.textAccentSecondary,
55
+ borderStrongNeutral: systemTheme.colors.textNeutral,
53
56
  borderStrongSuccess: systemTheme.colors.textSuccess,
54
57
  borderStrongWarning: systemTheme.colors.textWarning,
58
+ borderStrongRisk: systemTheme.colors.textRisk,
55
59
  borderStrongDanger: systemTheme.colors.textDanger
56
60
  };
57
61
  return {
@@ -102,8 +102,7 @@ var EuiThemeProvider = exports.EuiThemeProvider = function EuiThemeProvider(_ref
102
102
  var isParentTheme = (0, _react2.useRef)(isGlobalTheme ? prevSystemKey.current === _context.DEFAULTS.system.key && colorMode === _context.DEFAULTS.colorMode && highContrastMode === _context.DEFAULTS.highContrastMode && !_modifications : prevSystemKey.current === parentSystem.key && colorMode === parentColorMode && highContrastMode === parentHighContrastMode && (0, _isEqual.default)(parentModifications, modifications));
103
103
  var updateVisColorStore = (0, _react2.useCallback)(function (theme, isGlobalTheme) {
104
104
  if (isGlobalTheme) {
105
- var _theme$flags$hasVisCo, _theme$flags;
106
- _color.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);
105
+ _color.EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis);
107
106
  }
108
107
  }, []);
109
108
  var getInitialTheme = function getInitialTheme() {
@@ -154,17 +153,13 @@ var EuiThemeProvider = exports.EuiThemeProvider = function EuiThemeProvider(_ref
154
153
  if (!isParentTheme.current) {
155
154
  /* Enables recomputation of component colors when flags are overridden on the provider
156
155
  by adding the respective key to modifications to trigger a recomputation. */
156
+ // NOTE: Keeping this as placeholder for potential future usage during Borealis changes
157
157
  // TODO: remove once visual refresh is completed and flags are obsolete
158
- var flagsToRecompute = [{
159
- flag: 'buttonVariant',
160
- componentKey: 'buttons'
161
- }, {
162
- flag: 'formVariant',
163
- componentKey: 'forms'
164
- }];
158
+ var flagsToRecompute = [];
165
159
  var keys = {};
166
160
  var forceRecomputeComponents = flagsToRecompute.some(function (item) {
167
161
  var _modifications$flags, _modifications$compon;
162
+ if (!item) return false;
168
163
  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)) {
169
164
  keys[item.componentKey] = {
170
165
  LIGHT: {},
@@ -35,7 +35,6 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
35
35
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
36
36
  };
37
37
  export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
38
- var _euiTheme$flags;
39
38
  var euiTheme = euiThemeContext.euiTheme,
40
39
  colorMode = euiThemeContext.colorMode;
41
40
  var badgeColors = euiBadgeColors(euiThemeContext);
@@ -45,13 +44,12 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
45
44
  return x * 1.25;
46
45
  })
47
46
  };
48
- var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
49
47
  return {
50
48
  euiBetaBadge: /*#__PURE__*/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;", euiTextTruncate(), " &:focus{", euiFocusRing(euiThemeContext, 'outset', {
51
49
  color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
52
50
  }), ";};label:euiBetaBadge;"),
53
51
  // Colors
54
- accent: hasVisColorAdjustment ? /*#__PURE__*/css(badgeColors.accentText, ";label:accent;") : /*#__PURE__*/css(badgeColors.accent, ";label:accent;"),
52
+ accent: /*#__PURE__*/css(badgeColors.accent, ";label:accent;"),
55
53
  subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
56
54
  hollow: /*#__PURE__*/css("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
57
55
  warning: /*#__PURE__*/css(badgeColors.warning, ";label:warning;"),
@@ -9,15 +9,13 @@
9
9
  import { css } from '@emotion/react';
10
10
  import { logicalCSS, euiCanAnimate, euiFontSizeFromScale, euiNumberFormat, mathWithUnits } from '../../../global_styling';
11
11
  import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
12
- import { isEuiThemeRefreshVariant } from '../../../services';
13
12
  import { euiBadgeColors } from '../color_utils';
14
13
  export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiThemeContext) {
15
14
  var euiTheme = euiThemeContext.euiTheme;
16
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
17
15
  var badgeColors = euiBadgeColors(euiThemeContext);
18
- var borderRadius = isRefreshVariant ? mathWithUnits(euiTheme.border.radius.small, function (x) {
16
+ var borderRadius = mathWithUnits(euiTheme.border.radius.small, function (x) {
19
17
  return x / 2;
20
- }) : euiTheme.border.radius.small;
18
+ });
21
19
  return {
22
20
  euiNotificationBadge: /*#__PURE__*/css("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", logicalCSS('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", highContrastModeStyles(euiThemeContext, {
23
21
  preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
@@ -77,7 +77,9 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
77
77
  },
78
78
  toolTipContent: toolTipContent,
79
79
  toolTipProps: {
80
- delay: 'long'
80
+ delay: 'long',
81
+ // Avoid screen-readers announcing the same text twice
82
+ disableScreenReaderOutput: typeof buttonContent === 'string' && buttonContent === toolTipContent
81
83
  }
82
84
  }, buttonContent));
83
85
  }
@@ -30,6 +30,12 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
30
30
  var icon = action.icon ? callWithItemIfFunction(item)(action.icon) : undefined;
31
31
  var actionContent = callWithItemIfFunction(item)(action.name);
32
32
  var tooltipContent = callWithItemIfFunction(item)(action.description);
33
+ var tooltipProps = {
34
+ content: tooltipContent,
35
+ delay: 'long',
36
+ // Avoid screen-readers announcing the same text twice
37
+ disableScreenReaderOutput: typeof actionContent === 'string' && actionContent === tooltipContent
38
+ };
33
39
  var href = callWithItemIfFunction(item)(action.href);
34
40
  var dataTestSubj = callWithItemIfFunction(item)(action['data-test-subj']);
35
41
  var ariaLabelId = useGeneratedHtmlId();
@@ -73,8 +79,5 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
73
79
  flush: "right"
74
80
  }, actionContent);
75
81
  }
76
- return enabled ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, {
77
- content: tooltipContent,
78
- delay: "long"
79
- }, button), ariaLabelledBy) : ___EmotionJSX(React.Fragment, null, button, ariaLabelledBy);
82
+ return enabled ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, tooltipProps, button), ariaLabelledBy) : ___EmotionJSX(React.Fragment, null, button, ariaLabelledBy);
80
83
  };
@@ -7,7 +7,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
7
7
  * Side Public License, v 1.
8
8
  */
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
12
11
  import { euiButtonSizeMap } from '../../../global_styling/mixins';
13
12
  // Provides a solid reset and base for handling sizing layout
@@ -25,16 +24,14 @@ var _ref = process.env.NODE_ENV === "production" ? {
25
24
  };
26
25
  export var euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
27
26
  var euiTheme = euiThemeContext.euiTheme;
28
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
29
27
  var sizes = euiButtonSizeMap(euiThemeContext);
30
28
  var _buttonSize = function _buttonSize(sizeKey) {
31
29
  var size = sizes[sizeKey];
32
30
  return /*#__PURE__*/css(logicalCSS('height', size.height), " line-height:", size.height, ";", euiFontSize(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
33
31
  };
34
- var classicVariantStyles = "\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n }\n ";
35
32
  return {
36
33
  // Base
37
- euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), " ", !isRefreshVariant && classicVariantStyles, ";;label:euiButtonDisplay;"),
34
+ euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), ";;label:euiButtonDisplay;"),
38
35
  // States
39
36
  isDisabled: _ref,
40
37
  fullWidth: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), ";;label:fullWidth;"),
@@ -6,14 +6,11 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
  import { css } from '@emotion/react';
9
- import { isEuiThemeRefreshVariant } from '../../../services';
10
9
  import { logicalCSS } from '../../../global_styling';
11
10
  export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(euiThemeContext) {
12
11
  var euiTheme = euiThemeContext.euiTheme;
13
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
14
- var refreshVariantStyles = "\n /* ensure content stays ontop of hover pseudo element */\n position: relative;\n ";
15
12
  return {
16
13
  // Base
17
- euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";", isRefreshVariant && refreshVariantStyles, ";;label:euiButtonDisplayContent;")
14
+ euiButtonDisplayContent: /*#__PURE__*/css("position:relative;", logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
18
15
  };
19
16
  };
@@ -7,20 +7,15 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { logicalCSS, logicalShorthandCSS, euiCanAnimate, highContrastModeStyles } from '../../../global_styling';
12
11
  import { euiButtonDisplayStyles } from '../button_display/_button_display.styles';
13
12
  export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
14
13
  var euiTheme = euiThemeContext.euiTheme;
15
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
16
14
 
17
15
  // EuiButtonEmpty uses the same size/font styling as EuiButtonDisplay,
18
16
  // but does not share enough of the same colors/props to the point
19
17
  // of using the actual component - so we'll reuse its styles instead
20
18
  var displayStyles = euiButtonDisplayStyles(euiThemeContext);
21
- 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(highContrastModeStyles(euiThemeContext, {
22
- forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
23
- }), "\n }\n ");
24
19
  return {
25
20
  euiButtonEmpty: /*#__PURE__*/css(displayStyles.euiButtonDisplay, " ", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.s)), euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
26
21
  isDisabled: displayStyles.isDisabled,
@@ -28,9 +23,11 @@ export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext)
28
23
  xs: displayStyles.xs,
29
24
  s: displayStyles.s,
30
25
  // uses array here to prevent adding duplicate "m" classname partial
31
- m: [displayStyles.m, isRefreshVariant && "\n ".concat(logicalCSS('padding-horizontal', euiTheme.size.m), "\n ")],
26
+ m: [displayStyles.m, "\n ".concat(logicalCSS('padding-horizontal', euiTheme.size.m), "\n ")],
32
27
  // Flush sides
33
- flush: /*#__PURE__*/css("padding-inline:0;", isRefreshVariant && refreshFlushStyles, ";;label:flush;"),
28
+ flush: /*#__PURE__*/css("padding-inline:0;&&:hover,&&:active{background-color:transparent;&::before{display:none;}}&:hover:not(:disabled),&:focus{text-decoration:underline;", highContrastModeStyles(euiThemeContext, {
29
+ forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
30
+ }), ";};label:flush;"),
34
31
  left: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.s), ";;label:left;"),
35
32
  right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.s), ";;label:right;"),
36
33
  both: /*#__PURE__*/css(";label:both;")
@@ -8,7 +8,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { isEuiThemeRefreshVariant } from '../../../services';
12
11
  import { logicalCSS } from '../../../global_styling';
13
12
  import { highContrastModeStyles, preventForcedColors } from '../../../global_styling/functions/high_contrast';
14
13
  import { euiFormVariables } from '../../form/form.styles';
@@ -42,17 +41,8 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
42
41
  };
43
42
  var _highContrastStyles = function _highContrastStyles(euiThemeContext, compressed) {
44
43
  var euiTheme = euiThemeContext.euiTheme;
45
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
46
-
47
- // Account for buttons within tooltip wrappers in selectors
48
- var getButtonChildSelectors = function getButtonChildSelectors(selector) {
49
- return "\n & > .euiButtonGroupButton".concat(selector, ",\n & > .euiButtonGroup__tooltipWrapper").concat(selector, " .euiButtonGroupButton");
50
- };
51
44
  return highContrastModeStyles(euiThemeContext, {
52
- preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : // Conditionally unset the high contrast borders passed by `euiButtonColor` -
53
- // faux borders between selected/unselected buttons are rendered by pseudo elements,
54
- // and can flip colors depending on selected/unselected siblings
55
- "\n ".concat(!isRefreshVariant && "\n ".concat(getButtonChildSelectors(':not(:first-child, :last-child)'), " {\n ").concat(logicalCSS('border-horizontal', 'none'), "\n }\n ").concat(getButtonChildSelectors(':first-child'), " {\n ").concat(logicalCSS('border-right', 'none'), "\n }\n ").concat(getButtonChildSelectors(':last-child'), " {\n ").concat(logicalCSS('border-left', 'none'), "\n }\n "), "\n "),
56
- forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(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 ")
45
+ preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : '',
46
+ forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(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 ")
57
47
  });
58
48
  };
@@ -15,7 +15,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
15
15
 
16
16
  import classNames from 'classnames';
17
17
  import React from 'react';
18
- import { isEuiThemeRefreshVariant, useEuiMemoizedStyles, useEuiTheme } from '../../../services';
18
+ import { useEuiMemoizedStyles } from '../../../services';
19
19
  import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
20
20
  import { useInnerText } from '../../inner_text';
21
21
  import { EuiButtonDisplay } from '../button_display/_button_display';
@@ -27,8 +27,7 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
27
27
  id = _ref.id,
28
28
  isDisabled = _ref.isDisabled,
29
29
  isIconOnly = _ref.isIconOnly,
30
- _ref$isSelected = _ref.isSelected,
31
- isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
30
+ isSelected = _ref.isSelected,
32
31
  label = _ref.label,
33
32
  value = _ref.value,
34
33
  size = _ref.size,
@@ -38,11 +37,9 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
38
37
  toolTipProps = _ref.toolTipProps,
39
38
  contentProps = _ref.contentProps,
40
39
  rest = _objectWithoutProperties(_ref, _excluded);
41
- var euiThemeContext = useEuiTheme();
42
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
43
40
  var isCompressed = size === 'compressed';
44
41
  var color = isDisabled ? 'disabled' : _color;
45
- var hasBorder = isRefreshVariant && color !== 'text' && !isCompressed;
42
+ var hasBorder = color !== 'text' && !isCompressed;
46
43
  var display = isSelected ? 'fill' : isCompressed || hasBorder ? 'empty' : 'base';
47
44
  var hasToolTip = !!toolTipContent;
48
45
  var styles = useEuiMemoizedStyles(euiButtonGroupButtonStyles);
@@ -12,9 +12,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
12
12
  */
13
13
 
14
14
  import { css } from '@emotion/react';
15
- import { isEuiThemeRefreshVariant, makeDisabledContrastColor } from '../../../services';
16
15
  import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate, preventForcedColors, highContrastModeStyles } from '../../../global_styling';
17
- import { euiButtonFillColor, BUTTON_COLORS } from '../../../global_styling/mixins/_button';
16
+ import { BUTTON_COLORS } from '../../../global_styling/mixins/_button';
18
17
  import { euiScreenReaderOnly } from '../../accessibility';
19
18
  import { euiFormVariables } from '../../form/form.styles';
20
19
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -36,41 +35,28 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
36
35
  export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
37
36
  var euiTheme = euiThemeContext.euiTheme,
38
37
  highContrastMode = euiThemeContext.highContrastMode;
39
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
40
38
  var _euiFormVariables = euiFormVariables(euiThemeContext),
41
- controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
42
- controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius;
39
+ controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
43
40
  var compressedButtonHeight = mathWithUnits([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
44
- return isRefreshVariant ? x - y * 6 : x - y * 2;
41
+ return x - y * 6;
45
42
  });
46
43
  var selectedSelectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
47
44
  var uncompressedBorderRadii = function uncompressedBorderRadii(radiusSize) {
48
45
  return "\n border-radius: 0;\n\n &:first-child {\n ".concat(logicalShorthandCSS('border-radius', "".concat(radiusSize, " 0 0 ").concat(radiusSize)), "\n }\n\n &:last-child {\n ").concat(logicalShorthandCSS('border-radius', "0 ".concat(radiusSize, " ").concat(radiusSize, " 0")), "\n }\n\n &:first-child:last-child {\n ").concat(logicalShorthandCSS('border-radius', "".concat(radiusSize)), "\n }\n ");
49
46
  };
50
- var refreshVariantStyles = "\n &:is(".concat(selectedSelectors, ") {\n ").concat(highContrastModeStyles(euiThemeContext, {
51
- 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(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
52
- }), "\n }\n ");
53
- 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(highContrastModeStyles(euiThemeContext, {
54
- 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(mathWithUnits(euiTheme.border.width.thin, function (x) {
55
- return x * 4;
56
- }), ";\n }\n ")
57
- }), "\n }\n ") : "\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ".concat(euiTheme.font.weight.bold, ";\n }\n ");
58
- var compressedStyles = isRefreshVariant ? "\n margin: ".concat(euiTheme.size.xxs, ";\n border-radius: ").concat(mathWithUnits(euiTheme.border.radius.small, function (x) {
59
- return x / 2;
60
- }), ";\n\n & + .euiButtonGroupButton {\n ").concat(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(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(mathWithUnits(euiTheme.border.width.thin, function (x) {
62
- return x * 3;
63
- }), ";\n }\n ")
64
- }), "\n }\n ") : "\n background-clip: content-box;\n /* Tweak border radius to account for the padding & background-clip */\n border-radius: ".concat(mathWithUnits([controlCompressedBorderRadius, euiTheme.border.width.thin], function (x, y) {
65
- return x + y;
66
- }), ";\n\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ").concat(euiTheme.font.weight.semiBold, ";\n }\n ");
67
47
  return {
68
48
  // Base
69
- euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:2;}", euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;}", isRefreshVariant && refreshVariantStyles, ";;label:euiButtonGroupButton;"),
49
+ euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:2;}", euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;}&:is(", selectedSelectors, "){", highContrastModeStyles(euiThemeContext, {
50
+ 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(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
51
+ }), ";};label:euiButtonGroupButton;"),
70
52
  iconOnly: /*#__PURE__*/css("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
71
53
  // Sizes
72
54
  uncompressed: {
73
- uncompressed: /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}", uncompressedStyles, ";;label:uncompressed;"),
55
+ uncompressed: /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}&:is(", selectedSelectors, "):not(:disabled){z-index:1;border:", euiTheme.border.width.thin, " solid transparent;", highContrastModeStyles(euiThemeContext, {
56
+ 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(mathWithUnits(euiTheme.border.width.thin, function (x) {
57
+ return x * 4;
58
+ }), ";\n }\n ")
59
+ }), ";};label:uncompressed;"),
74
60
  get borders() {
75
61
  // We use pseudo elements to avoid affecing button width, and to allow
76
62
  // inheriting high contrast border colors
@@ -78,26 +64,29 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
78
64
  var selectedColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.buttonGroupBorderColorSelected;
79
65
  var unselectedColor = highContrastMode ? 'inherit' : euiTheme.components.buttonGroupBorderColor;
80
66
  var borderWidth = euiTheme.border.width.thin;
81
- 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(logicalCSS('left', 0), "\n ").concat(logicalCSS('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat(logicalCSS('border-left-style', 'solid'), "\n ").concat(logicalCSS('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat(preventForcedColors(euiThemeContext), "\n }\n }\n ") : "\n &::before {\n position: absolute;\n ".concat(logicalCSS('left', 0), "\n ").concat(logicalCSS('vertical', highContrastMode ? "-".concat(euiTheme.border.width.thin) : 0), "\n ").concat(logicalCSS('border-left-style', 'solid'), "\n ").concat(logicalCSS('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n }\n ");
82
67
 
83
68
  // "Borders" between buttons should be present between two of the same colored buttons,
84
69
  // and absent between selected vs non-selected buttons (different colors)
85
- 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 ");
70
+ 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(logicalCSS('left', 0), "\n ").concat(logicalCSS('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat(logicalCSS('border-left-style', 'solid'), "\n ").concat(logicalCSS('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat(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 ");
86
71
  },
87
72
  get s() {
88
73
  return /*#__PURE__*/css(this.borders, " ", uncompressedBorderRadii(euiTheme.border.radius.small), ";;label:s;");
89
74
  },
90
75
  get m() {
91
- var radius = isRefreshVariant ? euiTheme.border.radius.small : euiTheme.border.radius.medium;
76
+ var radius = euiTheme.border.radius.small;
92
77
  return /*#__PURE__*/css(this.borders, " ", uncompressedBorderRadii(radius), ";;label:m;");
93
78
  },
94
79
  hasToolTip: _ref2
95
80
  },
96
- compressed: /*#__PURE__*/css(logicalCSS('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:", isRefreshVariant ? '0' : mathWithUnits(euiTheme.border.width.thin, function (x) {
97
- return x * 2;
98
- }), ";", compressedStyles, ";;label:compressed;"),
81
+ compressed: /*#__PURE__*/css(logicalCSS('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:0;margin:", euiTheme.size.xxs, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
82
+ return x / 2;
83
+ }), ";&+.euiButtonGroupButton{", logicalCSS('margin-left', '0'), ";}&:is(", selectedSelectors, "):not(:disabled){border:none;", highContrastModeStyles(euiThemeContext, {
84
+ 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(mathWithUnits(euiTheme.border.width.thin, function (x) {
85
+ return x * 3;
86
+ }), ";\n }\n ")
87
+ }), ";};label:compressed;"),
99
88
  // States
100
- disabledAndSelected: /*#__PURE__*/css("color:", isRefreshVariant ? euiTheme.colors.textDisabled : 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;"),
89
+ disabledAndSelected: /*#__PURE__*/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;"),
101
90
  // Skip css`` to avoid generating a className
102
91
  hasBorder: "\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n "),
103
92
  // Tooltip anchor wrapper
@@ -116,11 +105,8 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
116
105
  };
117
106
  export var _compressedButtonFocusColors = function _compressedButtonFocusColors(euiThemeContext) {
118
107
  var euiTheme = euiThemeContext.euiTheme;
119
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
120
108
  var colors = [].concat(_toConsumableArray(BUTTON_COLORS), ['disabled']);
121
109
  return colors.reduce(function (acc, color) {
122
- var _euiButtonFillColor = euiButtonFillColor(euiThemeContext, color),
123
- backgroundColor = _euiButtonFillColor.backgroundColor;
124
- return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, isRefreshVariant ? 'outset' : 'center', isRefreshVariant ? euiTheme.focus.color : backgroundColor), " ", !isRefreshVariant && "\n &:is(.euiButtonGroupButton-isSelected) {\n outline-offset: 0;\n }\n ", ";}")));
110
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'outset', euiTheme.focus.color), ";}")));
125
111
  }, {});
126
112
  };
@@ -11,12 +11,12 @@ var _excluded = ["className", "iconType", "iconSize", "color", "isDisabled", "di
11
11
 
12
12
  import React from 'react';
13
13
  import classNames from 'classnames';
14
- import { getSecureRelForTarget, isEuiThemeRefreshVariant, useEuiMemoizedStyles, useEuiTheme } from '../../../services';
14
+ import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
15
15
  import { EuiIcon } from '../../icon';
16
16
  import { EuiLoadingSpinner } from '../../loading';
17
17
  import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/_button';
18
18
  import { isButtonDisabled } from '../button_display/_button_display';
19
- import { euiButtonIconStyles, _emptyHoverStyles } from './button_icon.styles';
19
+ import { euiButtonIconStyles } from './button_icon.styles';
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
21
  export var SIZES = ['xs', 's', 'm'];
22
22
  export var DISPLAYS = ['base', 'empty', 'fill'];
@@ -42,8 +42,6 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
42
42
  isSelected = _ref.isSelected,
43
43
  isLoading = _ref.isLoading,
44
44
  rest = _objectWithoutProperties(_ref, _excluded);
45
- var euiThemeContext = useEuiTheme();
46
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
47
45
  var isDisabled = isButtonDisabled({
48
46
  isDisabled: _isDisabled || disabled,
49
47
  href: href,
@@ -58,9 +56,8 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
58
56
  display: display
59
57
  });
60
58
  var buttonFocusStyle = useEuiButtonFocusCSS();
61
- var emptyHoverStyles = useEuiMemoizedStyles(_emptyHoverStyles);
62
59
  var styles = useEuiMemoizedStyles(euiButtonIconStyles);
63
- var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle, !isRefreshVariant && display === 'empty' && !isDisabled && emptyHoverStyles[color], isDisabled && styles.isDisabled];
60
+ var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle, isDisabled && styles.isDisabled];
64
61
  var classes = classNames('euiButtonIcon', className);
65
62
 
66
63
  // Add an icon to the button if one exists.
@@ -7,8 +7,8 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { euiShadowFlat } from '@elastic/eui-theme-common';
10
11
  import { logicalCSS } from '../../global_styling';
11
- import { euiShadowFlat } from '../../themes';
12
12
  import { euiHeaderVariables } from '../header/header.styles';
13
13
  import { hideScrollbars } from './collapsible_nav_body_footer.styles';
14
14
  export var euiCollapsibleNavBetaStyles = function euiCollapsibleNavBetaStyles(euiThemeContext) {
@@ -11,16 +11,13 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
11
11
  */
12
12
 
13
13
  import { css } from '@emotion/react';
14
- import { isEuiThemeRefreshVariant } from '../../../services';
15
14
  import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
16
- import { euiButtonColor } from '../../../global_styling/mixins/_button';
17
15
 
18
16
  /**
19
17
  * Style variables shared between accordion, link, and sub items
20
18
  */
21
19
  export var euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariables(euiThemeContext) {
22
20
  var euiTheme = euiThemeContext.euiTheme;
23
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
24
21
  return _objectSpread(_objectSpread({
25
22
  height: euiTheme.size.xl,
26
23
  padding: euiTheme.size.s
@@ -29,7 +26,7 @@ export var euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariab
29
26
  // Matches EuiButton
30
27
  borderRadius: euiTheme.border.radius.small,
31
28
  backgroundHoverColor: euiTheme.colors.lightestShade,
32
- backgroundSelectedColor: isRefreshVariant ? euiTheme.colors.backgroundBaseInteractiveSelect : euiButtonColor(euiThemeContext, 'text').backgroundColor,
29
+ backgroundSelectedColor: euiTheme.colors.backgroundBaseInteractiveSelect,
33
30
  color: euiTheme.colors.textParagraph,
34
31
  rightIconColor: euiTheme.colors.textDisabled
35
32
  });