@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
@@ -15,7 +15,7 @@ import PropTypes from "prop-types";
15
15
  import React from 'react';
16
16
  import classNames from 'classnames';
17
17
  import { css } from '@emotion/react';
18
- import { useEuiTheme, useEuiThemeRefreshVariant } from '../../../services';
18
+ import { useEuiTheme } from '../../../services';
19
19
  import { EuiButtonEmpty } from '../../button';
20
20
  import { EuiNotificationBadge } from '../../badge';
21
21
  import { useEuiI18n } from '../../i18n';
@@ -27,11 +27,8 @@ export var EuiDataGridToolbarControl = function EuiDataGridToolbarControl(_ref)
27
27
  textProps = _ref.textProps,
28
28
  rest = _objectWithoutProperties(_ref, _excluded);
29
29
  var euiThemeContext = useEuiTheme();
30
- var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
31
30
  var classes = classNames('euiDataGridToolbarControl', className);
32
- var cssStyles = isRefreshVariant ?
33
- // passes euiThemeContext here instead via `css` to ensure legacy Enzyme tests work
34
- interactiveStyles(euiThemeContext) : underlineStyles;
31
+ var cssStyles = interactiveStyles(euiThemeContext);
35
32
  var badgeAriaLabel = useEuiI18n('euiDataGridToolbarControl.badgeAriaLabel', 'Active: {count}', {
36
33
  count: typeof badgeContent === 'string' ? betterScreenReaderSlashes(badgeContent) : badgeContent
37
34
  });
@@ -147,16 +144,6 @@ EuiDataGridToolbarControl.propTypes = {
147
144
  var betterScreenReaderSlashes = function betterScreenReaderSlashes(badgeContent) {
148
145
  return badgeContent.replaceAll('/', ' out of ');
149
146
  };
150
-
151
- // Underline actual text, but not the badge
152
- var underlineStyles = process.env.NODE_ENV === "production" ? {
153
- name: "128tp1b-underlineStyles",
154
- styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;"
155
- } : {
156
- name: "128tp1b-underlineStyles",
157
- styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;",
158
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
159
- };
160
147
  var interactiveStyles = function interactiveStyles(_ref2) {
161
148
  var euiTheme = _ref2.euiTheme;
162
149
  return /*#__PURE__*/css("&:focus,&:hover:not(:disabled){.euiDataGridToolbarControl__badge{background-color:", euiTheme.components.filterButtonBadgeBackgroundHover, ";}};label:interactiveStyles;");
@@ -87,7 +87,6 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
87
87
  return /*#__PURE__*/css(this.fontSize('m'), ";label:m;");
88
88
  },
89
89
  get l() {
90
- // On the Amsterdam theme, the l fontSize is the same as m
91
90
  return /*#__PURE__*/css(this.fontSize('m'), ";label:l;");
92
91
  }
93
92
  },
@@ -9,7 +9,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
 
10
10
  import { css } from '@emotion/react';
11
11
  import { euiShadowMedium } from '@elastic/eui-theme-common';
12
- import { isEuiThemeRefreshVariant } from '../../services';
13
12
  import { logicalCSS } from '../../global_styling';
14
13
  import { euiFormControlDisabledStyles, euiFormControlReadOnlyStyles, euiFormControlDefaultShadow, euiFormControlInvalidStyles } from '../form/form.styles';
15
14
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -22,12 +21,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
22
21
  };
23
22
  export var euiDatePickerStyles = function euiDatePickerStyles(euiThemeContext) {
24
23
  var euiTheme = euiThemeContext.euiTheme;
25
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
26
- var inlineStyles = "\n /* removes form layout border */\n &::after {\n display: none;\n }\n ";
27
24
  return {
28
25
  euiDatePicker: _ref,
29
26
  inline: {
30
- inline: /*#__PURE__*/css(".euiFormControlLayout{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " border:none;padding:0;", isRefreshVariant && inlineStyles, ";}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", logicalCSS('padding-bottom', euiTheme.size.s), ";};label:inline;"),
27
+ inline: /*#__PURE__*/css(".euiFormControlLayout{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " border:none;padding:0;&::after{display:none;}}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", logicalCSS('padding-bottom', euiTheme.size.s), ";};label:inline;"),
31
28
  // Skip css`` to avoid generating an Emotion className
32
29
  noShadow: "\n .euiFormControlLayout {\n background-color: transparent;\n }\n ",
33
30
  shadow: /*#__PURE__*/css(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", euiShadowMedium(euiThemeContext, {
@@ -10,13 +10,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { euiShadowMedium } from '@elastic/eui-theme-common';
12
12
  import { logicalCSS } from '../../global_styling';
13
- import { isEuiThemeRefreshVariant } from '../../services';
14
13
  import { disableFormControlHoverStyles } from '../form/form.styles';
15
- export var euiDatePickerRangeStyles = function euiDatePickerRangeStyles(euiThemeContext) {
16
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
17
- var refreshStyles = "\n .euiPopover:last-child {\n ".concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n\n * {\n ").concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n }\n ");
14
+ export var euiDatePickerRangeStyles = function euiDatePickerRangeStyles() {
18
15
  return {
19
- euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;}", isRefreshVariant && refreshStyles, ";;label:euiDatePickerRange;")
16
+ euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;}.euiPopover:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), " *{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";}};label:euiDatePickerRange;")
20
17
  };
21
18
  };
22
19
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -29,7 +26,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
29
26
  };
30
27
  export var euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineStyles(euiThemeContext) {
31
28
  var euiTheme = euiThemeContext.euiTheme;
32
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
33
29
 
34
30
  // Use a container query to stack date pickers vertically if the container is
35
31
  // not wide enough to fit both. We need a fn for this to render two width queries,
@@ -39,12 +35,12 @@ export var euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineSty
39
35
  return "\n display: block;\n container-type: inline-size;\n\n .euiFormControlLayout__childrenWrapper {\n /* Use static px widths for now, since render behavior comes from a third party library */\n @container (max-width: ".concat(datePickerWidth * 2 + delimiterWidth, "px) {\n /* Unset grid display */\n display: block !important;\n\n /* Center and point the default delimiter arrow downwards */\n .euiFormControlLayoutDelimited__delimiter .euiIcon {\n transform: rotate(90deg);\n margin-inline: auto;\n }\n }\n }");
40
36
  };
41
37
  return {
42
- euiDatePickerRangeInline: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " ", logicalCSS('max-width', '100%'), " border:none;padding:0;", isRefreshVariant && "\n &::after {\n display: none;\n }\n ", ";.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", logicalCSS('height', 'auto'), " ", logicalCSS('padding-bottom', euiTheme.size.s), ";}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
38
+ euiDatePickerRangeInline: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " ", logicalCSS('max-width', '100%'), " border:none;padding:0;.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", logicalCSS('height', 'auto'), " ", logicalCSS('padding-bottom', euiTheme.size.s), ";}&::after{display:none;}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
43
39
  responsive: /*#__PURE__*/css(containerQuery(268), ";;label:responsive;"),
44
40
  responsiveWithTimeSelect: /*#__PURE__*/css(containerQuery(374), ";;label:responsiveWithTimeSelect;"),
45
41
  shadow: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", euiShadowMedium(euiThemeContext, {
46
42
  borderAllInHighContrastMode: true
47
- }), " ", isRefreshVariant && "\n /* the form layout is not part of the interactive behavior but rather a container in this variant */\n ".concat(disableFormControlHoverStyles(), "\n\n .euiFormControlLayout__childrenWrapper {\n box-shadow: none;\n ").concat(disableFormControlHoverStyles(), "\n }\n "), ";};label:shadow;"),
43
+ }), disableFormControlHoverStyles(), " .euiFormControlLayout__childrenWrapper{box-shadow:none;", disableFormControlHoverStyles(), ";}};label:shadow;"),
48
44
  // Applied directly to EuiFormControlLayout so we can check if `disabled`
49
45
  // and allow the disabled background-color to take precedence
50
46
  formLayout: {
@@ -8,10 +8,10 @@ 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, makeHighContrastColor } from '../../../services';
11
+ import { makeHighContrastColor } from '../../../services';
12
12
  import { euiFontSize, euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
13
13
  import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
14
- import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles, euiFormControlShowBackgroundLine, euiFormControlFocusStyles, euiFormControlHighlightBorderStyles } from '../../form/form.styles';
14
+ import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles, euiFormControlFocusStyles, euiFormControlHighlightBorderStyles } from '../../form/form.styles';
15
15
  var _ref = process.env.NODE_ENV === "production" ? {
16
16
  name: "1e4qgxg-euiSuperDatePicker__range",
17
17
  styles: "flex-grow:1;overflow:hidden;label:euiSuperDatePicker__range;"
@@ -22,7 +22,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
22
22
  };
23
23
  export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
24
24
  var euiTheme = euiThemeContext.euiTheme;
25
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
26
25
  var forms = euiFormVariables(euiThemeContext);
27
26
  var inputWidth = euiTheme.base * 30;
28
27
  var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
@@ -42,18 +41,6 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
42
41
  // Needs updating colors
43
42
  var needsUpdatingBackgroundColor = euiTheme.components.superDatePickerBackgroundSuccees;
44
43
  var needsUpdatingTextColor = makeHighContrastColor(euiTheme.colors.success)(needsUpdatingBackgroundColor);
45
- var formLayoutStyles = "\n /* using wrapper hover styles instead */\n .euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover {\n outline: none;\n }\n\n .euiPopover {\n /* mimic input border-radius */\n border-radius: ".concat(forms.controlBorderRadius, ";\n\n &:first-child {\n ").concat(logicalCSS('border-top-left-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-left-radius', 'inherit'), "\n }\n\n &:last-child {\n ").concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n }\n\n .euiDatePopoverButton {\n background-color: transparent;\n border-radius: inherit;\n }\n ");
46
- var popoverButtonFocusStyles = isRefreshVariant ? "\n ".concat(euiFormControlFocusStyles(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, euiTheme.colors.primary), "\n ");
47
- var invalidStyles = isRefreshVariant ? "\n &:has(.euiPopover-isOpen, .euiDatePopoverButton:focus) {\n --euiFormControlStateColor: ".concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n\n &:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)) {\n ").concat(euiFormControlInvalidStyles(euiThemeContext), "\n }\n\n .euiDatePopoverButton:focus,\n .euiPopover-isOpen .euiDatePopoverButton {\n ").concat(euiFormControlFocusStyles(euiThemeContext), "\n }\n ") : "\n ".concat(euiFormControlInvalidStyles(euiThemeContext), "\n ");
48
- var needsUpdatingStyles = "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n --euiFormControlStateHoverColor: ").concat(euiTheme.colors.success, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n \n &:has(.euiPopover-isOpen),\n &:focus-within {\n --euiFormControlStateColor: ").concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n ");
49
- var needsUpdatingPopoverButtonFocusStyles = isRefreshVariant ? "\n ".concat(euiFormControlFocusStyles(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, euiTheme.colors.success), "\n\n ").concat(highContrastModeStyles(euiThemeContext, {
50
- // Force the fill color of all icons/svgs to give a bit more indication of state,
51
- // since Windows high contrast themes otherwise override background/text color
52
- forced: "\n svg,\n & + * svg {\n fill: ".concat(euiTheme.colors.success, ";\n }\n ")
53
- }), "\n ");
54
- var prettyFormatStyles = "\n --euiFormControlStateHoverColor: ".concat(forms.borderHovered, ";\n ").concat(euiFormControlDefaultShadow(euiThemeContext), "\n \n ").concat(highContrastModeStyles(euiThemeContext, {
55
- preferred: "\n border: none;\n "
56
- }), "\n\n &:focus {\n ").concat(euiFormControlFocusStyles(euiThemeContext), "\n }\n ");
57
44
  return {
58
45
  euiSuperDatePicker: /*#__PURE__*/css("display:flex;gap:", gap, ";", logicalCSS('max-width', '100%'), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), ";};label:euiSuperDatePicker;"),
59
46
  widths: {
@@ -78,23 +65,22 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
78
65
  isQuickSelectOnly: /*#__PURE__*/css(logicalCSS('min-width', 0), ".euiFormControlLayout__prepend{", logicalCSS('max-width', 'none'), ";}.euiFormControlLayoutDelimited__delimiter:first-child{", logicalCSS('padding-horizontal', 0), ";};label:isQuickSelectOnly;"),
79
66
  euiSuperDatePicker__range: _ref,
80
67
  euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
81
- euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;", isRefreshVariant && prettyFormatStyles, ";;label:euiSuperDatePicker__prettyFormat;"),
68
+ euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;--euiFormControlStateHoverColor:", forms.borderHovered, ";", euiFormControlDefaultShadow(euiThemeContext), " &:focus{", euiFormControlFocusStyles(euiThemeContext), ";}", highContrastModeStyles(euiThemeContext, {
69
+ preferred: "\n border: none;\n "
70
+ }), ";;label:euiSuperDatePicker__prettyFormat;"),
82
71
  // Form states
83
72
  states: {
84
- euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", euiFormControlDefaultShadow(euiThemeContext), " ", highContrastModeStyles(euiThemeContext, {
85
- none: 'box-shadow: none;',
73
+ euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", highContrastModeStyles(euiThemeContext, {
74
+ none: "\n ".concat(euiFormControlDefaultShadow(euiThemeContext), "\n box-shadow: none;\n "),
86
75
  preferred: 'border: none;'
87
- }), " ", isRefreshVariant && formLayoutStyles, ";};label:euiSuperDatePicker__formControlLayout;"),
88
- default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";", !isRefreshVariant && euiFormControlDefaultShadow(euiThemeContext, {
89
- withBorder: false,
90
- withBackgroundColor: false
91
- }), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", popoverButtonFocusStyles, ";};label:default;"),
76
+ }), ".euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover{outline:none;}.euiPopover{border-radius:", forms.controlBorderRadius, ";&:first-child{", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), ";}&:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";}}.euiDatePopoverButton{background-color:transparent;border-radius:inherit;}};label:euiSuperDatePicker__formControlLayout;"),
77
+ default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:default;"),
92
78
  disabled: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", euiFormControlDisabledStyles(euiThemeContext), ";};label:disabled;"),
93
- invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", invalidStyles, ";};label:invalid;"),
94
- needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", isRefreshVariant && needsUpdatingStyles, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext, {
79
+ invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";&:has(.euiPopover-isOpen, .euiDatePopoverButton:focus){--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}&:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)){", euiFormControlInvalidStyles(euiThemeContext), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";}};label:invalid;"),
80
+ needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateColor:", euiTheme.colors.success, ";--euiFormControlStateHoverColor:", euiTheme.colors.success, ";--euiFormControlStateWidth:", euiTheme.border.width.thin, ";color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", euiFormControlHighlightBorderStyles, " &:has(.euiPopover-isOpen),&:focus-within{--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext, {
95
81
  withBorder: false,
96
82
  withBackgroundColor: false
97
- }), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", needsUpdatingPopoverButtonFocusStyles, ";};label:needsUpdating;")
83
+ }), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:needsUpdating;")
98
84
  }
99
85
  };
100
86
  };
@@ -25,7 +25,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
25
25
  import React from 'react';
26
26
  import PropTypes from "prop-types";
27
27
  import classNames from 'classnames';
28
- import { EuiThemeProvider, useEuiMemoizedStyles, useEuiTheme, useGeneratedHtmlId, useEuiThemeRefreshVariant } from '../../services';
28
+ import { EuiThemeProvider, useEuiMemoizedStyles, useEuiTheme, useGeneratedHtmlId } from '../../services';
29
29
  import { useEuiI18n } from '../i18n';
30
30
  import { useInnerText } from '../inner_text';
31
31
  import { EuiNotificationBadge } from '../badge';
@@ -65,20 +65,17 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
65
65
  var numActiveFiltersDefined = !!numActiveFilters;
66
66
  var euiThemeContext = useEuiTheme();
67
67
  var colorMode = euiThemeContext.colorMode;
68
- var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
69
68
 
70
69
  // assumption about type of usage based on icon usage
71
70
  // requires manual override to apply correct aria attributes for more custom usages
72
71
  var isCollapsible = !isToggle && iconType === 'arrowDown';
73
- // NOTE: in Amsterdam `hasActiveFilters` applies selected styling while `isSelected` does not.
74
- // With Borealis this is more granular as EuiFilterButton now supports proper toggle buttons next to regular buttons
75
72
  var isExpanded = isCollapsible && (isSelected !== null && isSelected !== void 0 ? isSelected : hasActiveFilters);
76
73
  var styles = useEuiMemoizedStyles(euiFilterButtonStyles);
77
74
  var focusColorStyles = useEuiMemoizedStyles(_compressedButtonFocusColors);
78
- var toggleVariantStyles = isRefreshVariant ? [isToggle && styles.buttonType.toggle, !isToggle && !isDisabled && focusColorStyles[color], !isToggle && styles.buttonType.default] : [isToggle && styles.buttonType.toggle];
79
- var cssStyles = [styles.euiFilterButton, !isRefreshVariant && withNext && styles.withNext, hasActiveFilters && styles.hasActiveFilters].concat(toggleVariantStyles);
75
+ var toggleVariantStyles = [isToggle && styles.buttonType.toggle, !isToggle && !isDisabled && focusColorStyles[color], !isToggle && styles.buttonType.default];
76
+ var cssStyles = [styles.euiFilterButton, hasActiveFilters && styles.hasActiveFilters].concat(toggleVariantStyles);
80
77
  var wrapperStyles = useEuiMemoizedStyles(euiFilterButtonWrapperStyles);
81
- var wrapperCssStyles = [wrapperStyles.wrapper, isRefreshVariant && withNext && styles.withNext, numFiltersDefined && styles.hasNotification, isToggle && wrapperStyles.hasToggle, !grow && styles.noGrow];
78
+ var wrapperCssStyles = [wrapperStyles.wrapper, withNext && styles.withNext, numFiltersDefined && styles.hasNotification, isToggle && wrapperStyles.hasToggle, !grow && styles.noGrow];
82
79
  var _useEuiMemoizedStyles = useEuiMemoizedStyles(euiFilterButtonChildStyles),
83
80
  contentStyles = _useEuiMemoizedStyles.content,
84
81
  textStyles = _useEuiMemoizedStyles.text,
@@ -88,7 +85,7 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
88
85
  'euiFilterButton-isSelected': isSelected,
89
86
  'euiFilterButton-hasActiveFilters': hasActiveFilters,
90
87
  'euiFilterButton-hasNotification': numFiltersDefined,
91
- 'euiFilterButton-isToggle': isRefreshVariant && isToggle
88
+ 'euiFilterButton-isToggle': isToggle
92
89
  }, className);
93
90
 
94
91
  /**
@@ -110,9 +107,9 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
110
107
  color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
111
108
  role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
112
109
  }, badgeCount);
113
- var badgeElement = showBadge && (isRefreshVariant ? ___EmotionJSX(EuiThemeProvider, {
110
+ var badgeElement = showBadge && ___EmotionJSX(EuiThemeProvider, {
114
111
  colorMode: isToggle && isSelected ? 'INVERSE' : colorMode
115
- }, badgeContent) : badgeContent);
112
+ }, badgeContent);
116
113
 
117
114
  /**
118
115
  * Text
@@ -8,21 +8,19 @@ 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
- import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate, highContrastModeStyles, preventForcedColors, euiButtonEmptyColor } from '../../global_styling';
11
+ import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate, highContrastModeStyles, preventForcedColors } from '../../global_styling';
13
12
  import { cssSupportsHasWithNextSibling } from '../../global_styling/functions/supports';
14
13
  import { euiFormVariables } from '../form/form.styles';
15
14
  export var euiFilterButtonDisplay = function euiFilterButtonDisplay(euiThemeContext) {
16
15
  var euiTheme = euiThemeContext.euiTheme;
17
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
18
16
  return {
19
17
  flex: '1 1 auto',
20
18
  minInlineSize: mathWithUnits(euiTheme.size.base, function (x) {
21
- return x * (isRefreshVariant ? 2.75 : 3);
19
+ return x * 2.75;
22
20
  })
23
21
  };
24
22
  };
25
- var _ref3 = process.env.NODE_ENV === "production" ? {
23
+ var _ref4 = process.env.NODE_ENV === "production" ? {
26
24
  name: "jkp921-noGrow",
27
25
  styles: "flex-grow:0;label:noGrow;"
28
26
  } : {
@@ -32,46 +30,30 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
32
30
  };
33
31
  export var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContext) {
34
32
  var euiTheme = euiThemeContext.euiTheme;
35
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
36
- var _euiFormVariables = euiFormVariables(euiThemeContext),
37
- controlHeight = _euiFormVariables.controlHeight,
38
- borderColor = _euiFormVariables.borderColor;
39
33
  var selectedSelector = '.euiFilterButton-isSelected';
40
- var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor);
41
-
42
- // Pseudo elements create borders without affecting width. We also prefer them
43
- // over box-shadow for Windows high contrast theme compatibility
44
- var leftBorder = "\n &::before {\n content: '';\n position: absolute;\n ".concat(logicalCSS('right', '100%'), "\n ").concat(logicalCSS('vertical', 0), "\n ").concat(logicalCSS('border-left', border), "\n }\n ");
45
- // Bottom borders are needed for responsive flex-wrap behavior
46
- var bottomBorder = "\n &::after {\n content: '';\n position: absolute;\n ".concat(logicalCSS('top', '100%'), "\n ").concat(logicalCSS('horizontal', 0), "\n ").concat(logicalCSS('border-bottom', border), "\n }\n ");
47
- var buttonStyles = isRefreshVariant ? "\n ".concat(logicalCSS('width', '100%'), "\n\n &:not(").concat(selectedSelector, ") {\n &:hover,\n &:active {\n .euiFilterButton__notification[class*=\"subdued\"] {\n background-color: ").concat(euiTheme.components.filterButtonBadgeBackgroundHover, "\n }\n }\n }\n ") : "\n ".concat(logicalCSS('height', controlHeight), "\n border-radius: 0;\n ").concat(leftBorder, "\n ").concat(bottomBorder, "\n\n /* :not(:disabled) specificity needed to override EuiButtonEmpty styles */\n &:hover:not(:disabled),\n &:focus:not(:disabled) {\n /* Remove underline from whole button so notifications don't get the underline */\n text-decoration: none;\n\n .euiFilterButton__text {\n /* And put it only on the actual text part */\n text-decoration: underline;\n }\n }\n ");
48
- var toggleTypeStyles = isRefreshVariant ? "\n ".concat(euiFilterButtonDisplay(euiThemeContext), ";\n\n ").concat(highContrastModeStyles(euiThemeContext, {
49
- forced: "\n &:is(".concat(selectedSelector, ") {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n }\n ")
50
- }), "\n ") : "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n padding: 0;\n\n &:is(").concat(selectedSelector, ") {\n color: ").concat(euiButtonEmptyColor(euiThemeContext, 'text').color, ";\n background-color: transparent;\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n ");
51
- var withNextSelector = isRefreshVariant ? '& + .euiFilterButton__wrapper' : '.euiFilterButton__wrapper:has(&) + .euiFilterButton__wrapper';
52
- // handles display of borders between buttons
53
- var withNextStyles = isRefreshVariant ? "\n &::before {\n border: none;\n }\n\n ".concat(cssSupportsHasWithNextSibling("\n &:has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), "\n ") : "\n .euiFilterButton {\n &::before {\n border: none;\n }\n }\n ";
34
+ var withNextSelector = '& + .euiFilterButton__wrapper';
54
35
  return {
55
- euiFilterButton: /*#__PURE__*/css(!isRefreshVariant && euiFilterButtonDisplay(euiThemeContext), ";position:relative;", buttonStyles, ";;label:euiFilterButton;"),
36
+ euiFilterButton: /*#__PURE__*/css("position:relative;", logicalCSS('width', '100%'), " &:not(", selectedSelector, "){&:hover,&:active{.euiFilterButton__notification[class*='subdued']{background-color:", euiTheme.components.filterButtonBadgeBackgroundHover, ";}}};label:euiFilterButton;"),
56
37
  buttonType: {
57
- default: /*#__PURE__*/css(isRefreshVariant && "\n border-radius: 0;\n\n &:focus-visible {\n z-index: 1;\n outline-offset: -".concat(euiTheme.border.width.thick, ";\n border-radius: ").concat(euiTheme.border.radius.small, ";\n transition: none;\n }\n "), ";;label:default;"),
58
- toggle: /*#__PURE__*/css("&:focus-visible{outline-offset:", mathWithUnits(euiTheme.focus.width, function (x) {
59
- return isRefreshVariant ? x / 2 : x * -1;
60
- }), ";}", toggleTypeStyles, ";;label:toggle;")
38
+ default: /*#__PURE__*/css("border-radius:0;&:focus-visible{z-index:1;outline-offset:-", euiTheme.border.width.thick, ";border-radius:", euiTheme.border.radius.small, ";transition:none;};label:default;"),
39
+ toggle: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " &:focus-visible{outline-offset:", mathWithUnits(euiTheme.focus.width, function (x) {
40
+ return x / 2;
41
+ }), ";}", highContrastModeStyles(euiThemeContext, {
42
+ forced: "\n &:is(".concat(selectedSelector, ") {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n }\n ")
43
+ }), ";;label:toggle;")
61
44
  },
62
- withNext: /*#__PURE__*/css(withNextSelector, "{", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)), withNextStyles, ";};label:withNext;"),
63
- noGrow: _ref3,
45
+ withNext: /*#__PURE__*/css(withNextSelector, "{", cssSupportsHasWithNextSibling("\n &:has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), ";", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)), "&::before{border:none;}};label:withNext;"),
46
+ noGrow: _ref4,
64
47
  hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
65
48
  return x * 6;
66
49
  })), ";;label:hasNotification;"),
67
- hasActiveFilters: /*#__PURE__*/css("font-weight:", isRefreshVariant ? euiTheme.font.weight.medium : euiTheme.font.weight.bold, ";;label:hasActiveFilters;")
50
+ hasActiveFilters: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.medium, ";;label:hasActiveFilters;")
68
51
  };
69
52
  };
70
53
  export var euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(euiThemeContext) {
71
54
  var euiTheme = euiThemeContext.euiTheme;
72
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
73
- var _euiFormVariables2 = euiFormVariables(euiThemeContext),
74
- borderColor = _euiFormVariables2.borderColor;
55
+ var _euiFormVariables = euiFormVariables(euiThemeContext),
56
+ borderColor = _euiFormVariables.borderColor;
75
57
  var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor);
76
58
 
77
59
  // Pseudo elements create borders without affecting width. We also prefer them
@@ -80,8 +62,8 @@ export var euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(
80
62
  // Bottom borders are needed for responsive flex-wrap behavior
81
63
  var bottomBorder = "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n ".concat(logicalCSS('border-bottom', border), "\n pointer-events: none;\n }\n ");
82
64
  return {
83
- wrapper: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " position:relative;display:flex;align-items:center;", isRefreshVariant && "\n ".concat(leftBorder, "\n ").concat(bottomBorder, "\n "), " ", logicalCSS('padding-vertical', euiTheme.border.width.thin), ";;label:wrapper;"),
84
- hasToggle: /*#__PURE__*/css(logicalCSS('padding-horizontal', isRefreshVariant ? euiTheme.border.width.thin : '0'), cssSupportsHasWithNextSibling("\n &:not([class*=\"withNext\"]):has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), ";;label:hasToggle;")
65
+ wrapper: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " position:relative;display:flex;align-items:center;", leftBorder, " ", bottomBorder, " ", logicalCSS('padding-vertical', euiTheme.border.width.thin), ";;label:wrapper;"),
66
+ hasToggle: /*#__PURE__*/css(logicalCSS('padding-horizontal', euiTheme.border.width.thin), cssSupportsHasWithNextSibling("\n &:not([class*=\"withNext\"]):has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), ";;label:hasToggle;")
85
67
  };
86
68
  };
87
69
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -100,18 +82,25 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
100
82
  styles: "cursor:inherit;forced-color-adjust:auto;&{transition:none;};label:euiFilterButton__notification;",
101
83
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
102
84
  };
85
+ var _ref3 = process.env.NODE_ENV === "production" ? {
86
+ name: "kc7mgj-euiFilterButton__content",
87
+ styles: ".euiThemeProvider{display:inline-flex;};label:euiFilterButton__content;"
88
+ } : {
89
+ name: "kc7mgj-euiFilterButton__content",
90
+ styles: ".euiThemeProvider{display:inline-flex;};label:euiFilterButton__content;",
91
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
92
+ };
103
93
  export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(euiThemeContext) {
104
94
  var euiTheme = euiThemeContext.euiTheme;
105
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
106
95
  return {
107
96
  content: {
108
- euiFilterButton__content: /*#__PURE__*/css(isRefreshVariant && "\n .euiThemeProvider {\n display: inline-flex;\n }\n ", ";;label:euiFilterButton__content;"),
97
+ euiFilterButton__content: _ref3,
109
98
  hasIcon: /*#__PURE__*/css("&>.euiIcon:last-child{", logicalCSS('margin-left', 'auto'), ";};label:hasIcon;")
110
99
  },
111
100
  text: {
112
101
  euiFilterButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), ";;label:euiFilterButton__text;"),
113
102
  hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
114
- return x * (isRefreshVariant ? 2 : 3);
103
+ return x * 2;
115
104
  })), ";;label:hasNotification;")
116
105
  },
117
106
  notification: {
@@ -8,9 +8,7 @@ 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, mathWithUnits, euiBreakpoint } from '../../global_styling';
13
- import { highContrastModeStyles } from '../../global_styling/functions/high_contrast';
14
12
  import { euiFormVariables } from '../form/form.styles';
15
13
  import { euiFilterButtonDisplay } from './filter_button.styles';
16
14
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -23,31 +21,23 @@ var _ref = process.env.NODE_ENV === "production" ? {
23
21
  };
24
22
  export var euiFilterGroupStyles = function euiFilterGroupStyles(euiThemeContext) {
25
23
  var euiTheme = euiThemeContext.euiTheme;
26
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
27
24
  var _euiFormVariables = euiFormVariables(euiThemeContext),
28
25
  backgroundColor = _euiFormVariables.backgroundColor,
29
- borderColor = _euiFormVariables.borderColor,
30
- controlBorderRadius = _euiFormVariables.controlBorderRadius,
31
26
  controlHeight = _euiFormVariables.controlHeight,
32
- controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius,
33
27
  controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
34
- var borderRadius = isRefreshVariant ? euiTheme.border.radius.small : controlBorderRadius;
35
- var borderRadiusCompressed = isRefreshVariant ? euiTheme.border.radius.small : controlCompressedBorderRadius;
36
- var borderStyle = isRefreshVariant ? "\n /* Adds the border on a pseudo element to prevent height differences between wrapper and buttons.\n Uses ::after to ensure overlap and prevents blocking by setting pointer-events: none */\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain, ";\n border-radius: inherit;\n pointer-events: none;\n }\n ") : "\n ".concat(highContrastModeStyles(euiThemeContext, {
37
- none: "box-shadow: inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(borderColor, ";"),
38
- forced: "border: ".concat(euiTheme.border.thin, ";")
39
- }), "\n ");
28
+ var borderRadius = euiTheme.border.radius.small;
29
+ var borderRadiusCompressed = euiTheme.border.radius.small;
40
30
  return {
41
- euiFilterGroup: /*#__PURE__*/css(isRefreshVariant && "position: relative;", " display:inline-flex;", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";", borderStyle, ">*:not(.euiFilterButton__wrapper, .euiFilterButton){", euiFilterButtonDisplay(euiThemeContext), ";}.euiPopover>.euiFilterButton{", logicalCSS('width', '100%'), ";}", euiBreakpoint(euiThemeContext, ['xs', 's']), "{flex-wrap:wrap;}", euiBreakpoint(euiThemeContext, ['xs']), "{display:flex;", isRefreshVariant && "\n .euiPopover:focus-within {\n z-index: 1;\n }\n \n .euiFilterButton__wrapper {\n flex-grow: 1;\n }\n ", ";.euiFilterButton__wrapper{flex-grow:1;}};label:euiFilterGroup;"),
31
+ euiFilterGroup: /*#__PURE__*/css("position:relative;display:inline-flex;", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";&::after{content:'';position:absolute;inset:0;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBasePlain, ";border-radius:inherit;pointer-events:none;}>*:not(.euiFilterButton__wrapper, .euiFilterButton){", euiFilterButtonDisplay(euiThemeContext), ";}.euiPopover>.euiFilterButton{", logicalCSS('width', '100%'), ";}", euiBreakpoint(euiThemeContext, ['xs', 's']), "{flex-wrap:wrap;}", euiBreakpoint(euiThemeContext, ['xs']), "{display:flex;.euiPopover:focus-within{z-index:1;}.euiFilterButton__wrapper{flex-grow:1;}};label:euiFilterGroup;"),
42
32
  fullWidth: _ref,
43
- uncompressed: /*#__PURE__*/css("border-radius:", borderRadius, ";.euiFilterButton__wrapper{", logicalCSS('height', controlHeight), ";}.euiFilterButton{", logicalCSS('height', controlHeight), ";}", !isRefreshVariant && buttonChildrenBorderRadii(borderRadius), " ", isRefreshVariant && "\n .euiFilterButton-isToggle {\n ".concat(logicalCSS('height', mathWithUnits([controlHeight, euiTheme.size.xxs], function (x, y) {
33
+ uncompressed: /*#__PURE__*/css("border-radius:", borderRadius, ";.euiFilterButton__wrapper{", logicalCSS('height', controlHeight), ";}.euiFilterButton{", logicalCSS('height', controlHeight), ";}.euiFilterButton-isToggle{", logicalCSS('height', mathWithUnits([controlHeight, euiTheme.size.xxs], function (x, y) {
44
34
  return x - 3 * y;
45
- })), "\n }\n "), ";;label:uncompressed;"),
46
- compressed: /*#__PURE__*/css("border-radius:", borderRadiusCompressed, ";", !isRefreshVariant && buttonChildrenBorderRadii(borderRadiusCompressed), " .euiFilterButton{", logicalCSS('height', isRefreshVariant ? mathWithUnits([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
35
+ })), ";};label:uncompressed;"),
36
+ compressed: /*#__PURE__*/css("border-radius:", borderRadiusCompressed, ";.euiFilterButton{", logicalCSS('height', mathWithUnits([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
47
37
  return x - 2 * y;
48
- }) : controlCompressedHeight), ";}", isRefreshVariant && "\n .euiFilterButton-isToggle {\n ".concat(logicalCSS('height', mathWithUnits([controlCompressedHeight, euiTheme.size.xxs], function (x, y) {
38
+ })), ";}.euiFilterButton-isToggle{", logicalCSS('height', mathWithUnits([controlCompressedHeight, euiTheme.size.xxs], function (x, y) {
49
39
  return x - 3 * y;
50
- })), "\n }\n "), ";;label:compressed;"),
40
+ })), ";};label:compressed;"),
51
41
  /**
52
42
  * Not used in EuiFilterGroup directly, but used by EuiSearchBar and consumers
53
43
  * A fixed width is required because of the shift in widths that can be caused
@@ -57,15 +47,4 @@ export var euiFilterGroupStyles = function euiFilterGroupStyles(euiThemeContext)
57
47
  return x * 18;
58
48
  })), ";;label:euiFilterGroup__popoverPanel;")
59
49
  };
60
- };
61
-
62
- /**
63
- * Small util for manually rounding the borders of the first and last EuiFilterButtons
64
- * - this makes their focus rings appear nicely instead of being cutt off.
65
- * 2nd selector accounts for EuiFilterButtons nested within popover/tooltip wrappers.
66
- *
67
- * NOTE: Do not use `logicalShorthandCSS()` here, as that will cause single buttons to not be rounded
68
- */
69
- var buttonChildrenBorderRadii = function buttonChildrenBorderRadii(radiusSize) {
70
- return "\n > :first-child,\n > :first-child .euiFilterButton {\n ".concat(logicalCSS('border-top-left-radius', radiusSize), "\n ").concat(logicalCSS('border-bottom-left-radius', radiusSize), "\n }\n\n > :last-child,\n > :last-child .euiFilterButton {\n ").concat(logicalCSS('border-top-right-radius', radiusSize), "\n ").concat(logicalCSS('border-bottom-right-radius', radiusSize), "\n }\n");
71
50
  };
@@ -7,15 +7,12 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { euiFormControlStyles } from '../form.styles';
12
11
  export var euiFieldNumberStyles = function euiFieldNumberStyles(euiThemeContext) {
13
12
  var colorMode = euiThemeContext.colorMode;
14
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
15
13
  var formStyles = euiFormControlStyles(euiThemeContext);
16
- var invalidStyles = isRefreshVariant ? "\n &:is(:invalid, [aria-invalid='true']):not(\n .euiFormControlLayoutDelimited__input, :focus\n ) {\n ".concat(formStyles.invalid, "\n }\n ") : "\n /* Account for native validity detection as well via [aria-invalid=\"true\"] */\n &:is(:invalid, [aria-invalid='true']) {\n ".concat(formStyles.invalid, "\n }\n ");
17
14
  return {
18
- euiFieldNumber: /*#__PURE__*/css(formStyles.shared, "color-scheme:", colorMode === 'DARK' ? 'dark' : 'light', ";", invalidStyles, " &:focus{", formStyles.focus, ";}&:disabled{", formStyles.disabled, ";}&[readOnly]{", formStyles.readOnly, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldNumber;"),
15
+ euiFieldNumber: /*#__PURE__*/css(formStyles.shared, "color-scheme:", colorMode === 'DARK' ? 'dark' : 'light', ";&:is(:invalid, [aria-invalid='true']):not(\n .euiFormControlLayoutDelimited__input,\n :focus\n ){", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&:disabled{", formStyles.disabled, ";}&[readOnly]{", formStyles.readOnly, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldNumber;"),
19
16
  // Skip the css() on the default height to avoid generating a className
20
17
  uncompressed: formStyles.uncompressed,
21
18
  compressed: /*#__PURE__*/css(formStyles.compressed, ";label:compressed;"),
@@ -7,14 +7,11 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { euiFormControlStyles } from '../form.styles';
12
11
  export var euiFieldTextStyles = function euiFieldTextStyles(euiThemeContext) {
13
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
14
12
  var formStyles = euiFormControlStyles(euiThemeContext);
15
- var invalidStyles = isRefreshVariant ? "\n &:is(:invalid, [aria-invalid='true']):not(\n .euiFormControlLayoutDelimited__input, :focus\n ) {\n ".concat(formStyles.invalid, "\n }\n ") : "\n &:is(:invalid){\n ".concat(formStyles.invalid, "\n }\n ");
16
13
  return {
17
- euiFieldText: /*#__PURE__*/css(formStyles.shared, " ", invalidStyles, " &:focus{", formStyles.focus, ";}&[readOnly]{", formStyles.readOnly, ";}&:disabled{", formStyles.disabled, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldText;"),
14
+ euiFieldText: /*#__PURE__*/css(formStyles.shared, " &:is(:invalid, [aria-invalid='true']):not(\n .euiFormControlLayoutDelimited__input, :focus\n ){", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&[readOnly]{", formStyles.readOnly, ";}&:disabled{", formStyles.disabled, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldText;"),
18
15
  // Skip the css() on the default height to avoid generating a className
19
16
  uncompressed: formStyles.uncompressed,
20
17
  compressed: /*#__PURE__*/css(formStyles.compressed, ";label:compressed;"),