@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
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiCollapsibleNavBetaStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
8
9
  var _global_styling = require("../../global_styling");
9
- var _themes = require("../../themes");
10
10
  var _header = require("../header/header.styles");
11
11
  var _collapsible_nav_body_footer = require("./collapsible_nav_body_footer.styles");
12
12
  /*
@@ -29,7 +29,7 @@ var euiCollapsibleNavBetaStyles = exports.euiCollapsibleNavBetaStyles = function
29
29
  euiCollapsibleNavBeta: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', fixedHeaderOffset), (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), ";;label:euiCollapsibleNavBeta;"),
30
30
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";;label:left;"),
31
31
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:right;"),
32
- isPush: /*#__PURE__*/(0, _react.css)((0, _themes.euiShadowFlat)(euiThemeContext, {
32
+ isPush: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, {
33
33
  border: 'none'
34
34
  }), ";;label:isPush;"),
35
35
  isPushCollapsed: /*#__PURE__*/(0, _react.css)(_collapsible_nav_body_footer.hideScrollbars, ";;label:isPushCollapsed;"),
@@ -7,9 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.euiCollapsibleNavTopItemStyles = exports.euiCollapsibleNavSubItemsStyles = exports.euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemTitleStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _services = require("../../../services");
11
10
  var _global_styling = require("../../../global_styling");
12
- var _button = require("../../../global_styling/mixins/_button");
13
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
13
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -24,7 +22,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
24
22
  */
25
23
  var euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariables(euiThemeContext) {
26
24
  var euiTheme = euiThemeContext.euiTheme;
27
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
28
25
  return _objectSpread(_objectSpread({
29
26
  height: euiTheme.size.xl,
30
27
  padding: euiTheme.size.s
@@ -33,7 +30,7 @@ var euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemVariables = fu
33
30
  // Matches EuiButton
34
31
  borderRadius: euiTheme.border.radius.small,
35
32
  backgroundHoverColor: euiTheme.colors.lightestShade,
36
- backgroundSelectedColor: isRefreshVariant ? euiTheme.colors.backgroundBaseInteractiveSelect : (0, _button.euiButtonColor)(euiThemeContext, 'text').backgroundColor,
33
+ backgroundSelectedColor: euiTheme.colors.backgroundBaseInteractiveSelect,
37
34
  color: euiTheme.colors.textParagraph,
38
35
  rightIconColor: euiTheme.colors.textDisabled
39
36
  });
@@ -244,70 +244,67 @@ var EuiComboBoxInput = exports.EuiComboBoxInput = /*#__PURE__*/function (_Compon
244
244
  var wrapClasses = (0, _classnames.default)('euiComboBox__inputWrap', {
245
245
  'euiComboBox__inputWrap--plainText': this.asPlainText
246
246
  });
247
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
248
- return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
249
- var styles = stylesMemoizer(_combo_box_input.euiComboBoxInputStyles);
250
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
251
- var stateCss = isRefreshVariant ? isListOpen ? styles.open : isInvalid ? styles.invalid : undefined : isInvalid ? styles.invalid : isListOpen ? styles.open : undefined;
252
- var cssStyles = [styles.euiComboBoxInputWrapper, !singleSelection && styles.multiSelect, compressed ? styles.compressed : styles.uncompressed].concat((0, _toConsumableArray2.default)(_this2.asPlainText || showPlaceholder ? [styles.plainText.plainText, compressed ? styles.plainText.compressed : styles.plainText.uncompressed] : []), [isDisabled ? styles.disabled : stateCss, isInGroup && styles.inGroup]);
253
- var formLayoutStyles = [styles.formLayout.euiComboBox__formControlLayout, !singleSelection && styles.formLayout.multiSelect];
254
- return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, (0, _extends2.default)({
255
- icon: icon
256
- }, clickProps, {
257
- inputId: id,
258
- isLoading: isLoading,
259
- isInvalid: isInvalid,
260
- isDisabled: isDisabled,
261
- compressed: compressed,
262
- fullWidth: fullWidth,
263
- prepend: prepend,
264
- append: append,
265
- css: formLayoutStyles
266
- }), (0, _react2.jsx)("div", {
267
- css: cssStyles,
268
- className: wrapClasses,
269
- "data-test-subj": "comboBoxInput",
270
- onClick: onClick,
271
- tabIndex: -1 // becomes onBlur event's relatedTarget, otherwise relatedTarget is null when clicking on this div
272
- }, _this2.renderPills(), (0, _react2.jsx)(_utils.EuiComboBoxOptionAppendPrepend, {
273
- option: _this2.asPlainText ? selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions[0] : undefined,
274
- classNamePrefix: "euiComboBoxPlainTextSelection",
275
- marginSize: "xxs"
276
- }, (0, _react2.jsx)("input", {
277
- "aria-activedescendant": focusedOptionId,
278
- "aria-autocomplete": "list",
279
- "aria-controls": isListOpen ? rootId('listbox') : '',
280
- "aria-expanded": isListOpen,
281
- "aria-label": ariaLabel,
282
- "aria-labelledby": ariaLabelledby,
283
- "aria-describedby": ariaDescribedby,
284
- "aria-invalid": isInvalid,
285
- "aria-haspopup": "listbox",
286
- css: styles.euiComboBoxInput,
287
- className: "euiComboBox__input",
288
- "data-test-subj": "comboBoxSearchInput",
289
- disabled: isDisabled,
290
- id: id,
291
- onBlur: _this2.onBlur,
292
- onChange: function onChange(event) {
293
- return _onChange(event.target.value);
294
- },
295
- onFocus: _this2.onFocus,
296
- onKeyDown: _this2.onKeyDown,
297
- ref: _this2.inputRefCallback,
298
- role: "combobox",
299
- style: {
300
- inlineSize: _this2.asPlainText || showPlaceholder ? '100%' : _this2.state.inputWidth
301
- },
302
- placeholder: showPlaceholder ? placeholder : undefined,
303
- value: _this2.searchValue,
304
- autoFocus: autoFocus,
305
- autoComplete: "off"
306
- // Force the menu to re-open on every input click - only necessary when plain text
307
- ,
308
- onClick: _this2.asPlainText ? onFocus : undefined // Type shenanigans - event should be mostly the same
309
- })), removeOptionMessage));
310
- });
247
+ return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
248
+ var styles = stylesMemoizer(_combo_box_input.euiComboBoxInputStyles);
249
+ var stateCss = isListOpen ? styles.open : isInvalid ? styles.invalid : undefined;
250
+ var cssStyles = [styles.euiComboBoxInputWrapper, !singleSelection && styles.multiSelect, compressed ? styles.compressed : styles.uncompressed].concat((0, _toConsumableArray2.default)(_this2.asPlainText || showPlaceholder ? [styles.plainText.plainText, compressed ? styles.plainText.compressed : styles.plainText.uncompressed] : []), [isDisabled ? styles.disabled : stateCss, isInGroup && styles.inGroup]);
251
+ var formLayoutStyles = [styles.formLayout.euiComboBox__formControlLayout, !singleSelection && styles.formLayout.multiSelect];
252
+ return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, (0, _extends2.default)({
253
+ icon: icon
254
+ }, clickProps, {
255
+ inputId: id,
256
+ isLoading: isLoading,
257
+ isInvalid: isInvalid,
258
+ isDisabled: isDisabled,
259
+ compressed: compressed,
260
+ fullWidth: fullWidth,
261
+ prepend: prepend,
262
+ append: append,
263
+ css: formLayoutStyles
264
+ }), (0, _react2.jsx)("div", {
265
+ css: cssStyles,
266
+ className: wrapClasses,
267
+ "data-test-subj": "comboBoxInput",
268
+ onClick: onClick,
269
+ tabIndex: -1 // becomes onBlur event's relatedTarget, otherwise relatedTarget is null when clicking on this div
270
+ }, _this2.renderPills(), (0, _react2.jsx)(_utils.EuiComboBoxOptionAppendPrepend, {
271
+ option: _this2.asPlainText ? selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions[0] : undefined,
272
+ classNamePrefix: "euiComboBoxPlainTextSelection",
273
+ marginSize: "xxs"
274
+ }, (0, _react2.jsx)("input", {
275
+ "aria-activedescendant": focusedOptionId,
276
+ "aria-autocomplete": "list",
277
+ "aria-controls": isListOpen ? rootId('listbox') : '',
278
+ "aria-expanded": isListOpen,
279
+ "aria-label": ariaLabel,
280
+ "aria-labelledby": ariaLabelledby,
281
+ "aria-describedby": ariaDescribedby,
282
+ "aria-invalid": isInvalid,
283
+ "aria-haspopup": "listbox",
284
+ css: styles.euiComboBoxInput,
285
+ className: "euiComboBox__input",
286
+ "data-test-subj": "comboBoxSearchInput",
287
+ disabled: isDisabled,
288
+ id: id,
289
+ onBlur: _this2.onBlur,
290
+ onChange: function onChange(event) {
291
+ return _onChange(event.target.value);
292
+ },
293
+ onFocus: _this2.onFocus,
294
+ onKeyDown: _this2.onKeyDown,
295
+ ref: _this2.inputRefCallback,
296
+ role: "combobox",
297
+ style: {
298
+ inlineSize: _this2.asPlainText || showPlaceholder ? '100%' : _this2.state.inputWidth
299
+ },
300
+ placeholder: showPlaceholder ? placeholder : undefined,
301
+ value: _this2.searchValue,
302
+ autoFocus: autoFocus,
303
+ autoComplete: "off"
304
+ // Force the menu to re-open on every input click - only necessary when plain text
305
+ ,
306
+ onClick: _this2.asPlainText ? onFocus : undefined // Type shenanigans - event should be mostly the same
307
+ })), removeOptionMessage));
311
308
  });
312
309
  }
313
310
  }]);
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiComboBoxInputStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _form = require("../../form/form.styles");
11
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -33,13 +32,12 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
33
32
  };
34
33
  var euiComboBoxInputStyles = exports.euiComboBoxInputStyles = function euiComboBoxInputStyles(euiThemeContext) {
35
34
  var euiTheme = euiThemeContext.euiTheme;
36
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
37
35
  var formStyles = (0, _form.euiFormControlStyles)(euiThemeContext);
38
36
  return {
39
37
  // Wrapper which visually mimics a form control
40
- euiComboBoxInputWrapper: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDefaultShadow)(euiThemeContext), " display:flex;", isRefreshVariant && "\n &:focus-within {\n ".concat(formStyles.focus, "\n }\n "), ";;label:euiComboBoxInputWrapper;"),
38
+ euiComboBoxInputWrapper: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDefaultShadow)(euiThemeContext), " display:flex;&:focus-within{", formStyles.focus, ";};label:euiComboBoxInputWrapper;"),
41
39
  multiSelect: _ref2,
42
- uncompressed: "\n ".concat(formStyles.uncompressed, "\n ").concat((0, _global_styling.logicalCSS)('height', 'auto'), "\n ").concat((0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', isRefreshVariant ? euiTheme.size.m : euiTheme.size.s), "\n column-gap: ").concat(euiTheme.size.s, ";\n row-gap: ").concat(euiTheme.size.xs, ";\n "),
40
+ uncompressed: "\n ".concat(formStyles.uncompressed, "\n ").concat((0, _global_styling.logicalCSS)('height', 'auto'), "\n ").concat((0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.m), "\n column-gap: ").concat(euiTheme.size.s, ";\n row-gap: ").concat(euiTheme.size.xs, ";\n "),
43
41
  compressed: /*#__PURE__*/(0, _react.css)(formStyles.compressed, " ", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.xs), " column-gap:", euiTheme.size.xs, ";row-gap:", euiTheme.size.xxs, ";;label:compressed;"),
44
42
  plainText: {
45
43
  plainText: _ref,
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiDataGridColumnSelectorStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
8
9
  var _global_styling = require("../../../global_styling");
9
- var _themes = require("../../../themes");
10
10
  /*
11
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -23,7 +23,7 @@ var euiDataGridColumnSelectorStyles = exports.euiDataGridColumnSelectorStyles =
23
23
  var maxResponsiveHeight = "min(".concat(maxStaticHeight, ", 50vh)");
24
24
  return {
25
25
  euiDataGridColumnSelector: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiYScrollWithShadows)(euiThemeContext), " ", (0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " padding:", euiTheme.size.s, ";;label:euiDataGridColumnSelector;"),
26
- euiDataGridColumnSelector__item: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.xs, ";&.euiDataGridColumnSelector__item-isDragging{", (0, _themes.euiShadowLarge)(euiThemeContext, {
26
+ euiDataGridColumnSelector__item: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.xs, ";&.euiDataGridColumnSelector__item-isDragging{", (0, _euiThemeCommon.euiShadowLarge)(euiThemeContext, {
27
27
  borderAllInHighContrastMode: true
28
28
  }), " background-color:", euiTheme.colors.emptyShade, ";};label:euiDataGridColumnSelector__item;")
29
29
  };
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiDataGridColumnSortingStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _euiThemeCommon = require("@elastic/eui-theme-common");
8
9
  var _global_styling = require("../../../global_styling");
9
- var _themes = require("../../../themes");
10
10
  /*
11
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -26,7 +26,7 @@ var euiDataGridColumnSortingStyles = exports.euiDataGridColumnSortingStyles = fu
26
26
  * Sorted fields
27
27
  */
28
28
  euiDataGridColumnSorting: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "margin:-", euiTheme.size.s, ";", (0, _global_styling.euiYScrollWithShadows)(euiThemeContext), ";;label:euiDataGridColumnSorting;"),
29
- euiDataGridColumnSorting__item: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " &.euiDataGridColumnSorting__item-isDragging{", (0, _themes.euiShadowLarge)(euiThemeContext, {
29
+ euiDataGridColumnSorting__item: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " &.euiDataGridColumnSorting__item-isDragging{", (0, _euiThemeCommon.euiShadowLarge)(euiThemeContext, {
30
30
  borderAllInHighContrastMode: true
31
31
  }), " background-color:", euiTheme.colors.emptyShade, ";};label:euiDataGridColumnSorting__item;"),
32
32
  euiDataGridColumnSorting__name: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xs), " ", (0, _global_styling.euiMinBreakpoint)(euiThemeContext, 'm'), "{", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.l), ";};label:euiDataGridColumnSorting__name;"),
@@ -29,11 +29,8 @@ var EuiDataGridToolbarControl = exports.EuiDataGridToolbarControl = function Eui
29
29
  textProps = _ref.textProps,
30
30
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
31
  var euiThemeContext = (0, _services.useEuiTheme)();
32
- var isRefreshVariant = (0, _services.useEuiThemeRefreshVariant)('buttonVariant');
33
32
  var classes = (0, _classnames.default)('euiDataGridToolbarControl', className);
34
- var cssStyles = isRefreshVariant ?
35
- // passes euiThemeContext here instead via `css` to ensure legacy Enzyme tests work
36
- interactiveStyles(euiThemeContext) : underlineStyles;
33
+ var cssStyles = interactiveStyles(euiThemeContext);
37
34
  var badgeAriaLabel = (0, _i18n.useEuiI18n)('euiDataGridToolbarControl.badgeAriaLabel', 'Active: {count}', {
38
35
  count: typeof badgeContent === 'string' ? betterScreenReaderSlashes(badgeContent) : badgeContent
39
36
  });
@@ -60,16 +57,6 @@ var EuiDataGridToolbarControl = exports.EuiDataGridToolbarControl = function Eui
60
57
  var betterScreenReaderSlashes = function betterScreenReaderSlashes(badgeContent) {
61
58
  return badgeContent.replaceAll('/', ' out of ');
62
59
  };
63
-
64
- // Underline actual text, but not the badge
65
- var underlineStyles = process.env.NODE_ENV === "production" ? {
66
- name: "128tp1b-underlineStyles",
67
- styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;"
68
- } : {
69
- name: "128tp1b-underlineStyles",
70
- styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;",
71
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
72
- };
73
60
  var interactiveStyles = function interactiveStyles(_ref2) {
74
61
  var euiTheme = _ref2.euiTheme;
75
62
  return /*#__PURE__*/(0, _react2.css)("&:focus,&:hover:not(:disabled){.euiDataGridToolbarControl__badge{background-color:", euiTheme.components.filterButtonBadgeBackgroundHover, ";}};label:interactiveStyles;");
@@ -93,7 +93,6 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
93
93
  return /*#__PURE__*/(0, _react.css)(this.fontSize('m'), ";label:m;");
94
94
  },
95
95
  get l() {
96
- // On the Amsterdam theme, the l fontSize is the same as m
97
96
  return /*#__PURE__*/(0, _react.css)(this.fontSize('m'), ";label:l;");
98
97
  }
99
98
  },
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiDatePickerStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
- var _services = require("../../services");
10
9
  var _global_styling = require("../../global_styling");
11
10
  var _form = require("../form/form.styles");
12
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -26,12 +25,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
26
25
  };
27
26
  var euiDatePickerStyles = exports.euiDatePickerStyles = function euiDatePickerStyles(euiThemeContext) {
28
27
  var euiTheme = euiThemeContext.euiTheme;
29
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
30
- var inlineStyles = "\n /* removes form layout border */\n &::after {\n display: none;\n }\n ";
31
28
  return {
32
29
  euiDatePicker: _ref,
33
30
  inline: {
34
- inline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " border:none;padding:0;", isRefreshVariant && inlineStyles, ";}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";};label:inline;"),
31
+ inline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " border:none;padding:0;&::after{display:none;}}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";};label:inline;"),
35
32
  // Skip css`` to avoid generating an Emotion className
36
33
  noShadow: "\n .euiFormControlLayout {\n background-color: transparent;\n }\n ",
37
34
  shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext, {
@@ -7,7 +7,6 @@ exports.euiDatePickerRangeStyles = exports.euiDatePickerRangeInlineStyles = void
7
7
  var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
9
  var _global_styling = require("../../global_styling");
10
- var _services = require("../../services");
11
10
  var _form = require("../form/form.styles");
12
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
13
12
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -16,11 +15,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
16
15
  * in compliance with, at your election, the Elastic License 2.0 or the Server
17
16
  * Side Public License, v 1.
18
17
  */
19
- var euiDatePickerRangeStyles = exports.euiDatePickerRangeStyles = function euiDatePickerRangeStyles(euiThemeContext) {
20
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
21
- var refreshStyles = "\n .euiPopover:last-child {\n ".concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n\n * {\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n }\n ");
18
+ var euiDatePickerRangeStyles = exports.euiDatePickerRangeStyles = function euiDatePickerRangeStyles() {
22
19
  return {
23
- euiDatePickerRange: /*#__PURE__*/(0, _react.css)(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", (0, _global_styling.logicalCSS)('height', '100%'), ";}.euiPopover{flex:1;}", isRefreshVariant && refreshStyles, ";;label:euiDatePickerRange;")
20
+ euiDatePickerRange: /*#__PURE__*/(0, _react.css)(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", (0, _global_styling.logicalCSS)('height', '100%'), ";}.euiPopover{flex:1;}.euiPopover:last-child{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), " *{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";}};label:euiDatePickerRange;")
24
21
  };
25
22
  };
26
23
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -33,7 +30,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
33
30
  };
34
31
  var euiDatePickerRangeInlineStyles = exports.euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineStyles(euiThemeContext) {
35
32
  var euiTheme = euiThemeContext.euiTheme;
36
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
37
33
 
38
34
  // Use a container query to stack date pickers vertically if the container is
39
35
  // not wide enough to fit both. We need a fn for this to render two width queries,
@@ -43,12 +39,12 @@ var euiDatePickerRangeInlineStyles = exports.euiDatePickerRangeInlineStyles = fu
43
39
  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 }");
44
40
  };
45
41
  return {
46
- euiDatePickerRangeInline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " ", (0, _global_styling.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;", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
42
+ euiDatePickerRangeInline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " ", (0, _global_styling.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;", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";}&::after{display:none;}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
47
43
  responsive: /*#__PURE__*/(0, _react.css)(containerQuery(268), ";;label:responsive;"),
48
44
  responsiveWithTimeSelect: /*#__PURE__*/(0, _react.css)(containerQuery(374), ";;label:responsiveWithTimeSelect;"),
49
45
  shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext, {
50
46
  borderAllInHighContrastMode: true
51
- }), " ", isRefreshVariant && "\n /* the form layout is not part of the interactive behavior but rather a container in this variant */\n ".concat((0, _form.disableFormControlHoverStyles)(), "\n\n .euiFormControlLayout__childrenWrapper {\n box-shadow: none;\n ").concat((0, _form.disableFormControlHoverStyles)(), "\n }\n "), ";};label:shadow;"),
47
+ }), (0, _form.disableFormControlHoverStyles)(), " .euiFormControlLayout__childrenWrapper{box-shadow:none;", (0, _form.disableFormControlHoverStyles)(), ";}};label:shadow;"),
52
48
  // Applied directly to EuiFormControlLayout so we can check if `disabled`
53
49
  // and allow the disabled background-color to take precedence
54
50
  formLayout: {
@@ -26,7 +26,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
26
26
  };
27
27
  var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
28
28
  var euiTheme = euiThemeContext.euiTheme;
29
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
30
29
  var forms = (0, _form.euiFormVariables)(euiThemeContext);
31
30
  var inputWidth = euiTheme.base * 30;
32
31
  var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
@@ -46,18 +45,6 @@ var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSu
46
45
  // Needs updating colors
47
46
  var needsUpdatingBackgroundColor = euiTheme.components.superDatePickerBackgroundSuccees;
48
47
  var needsUpdatingTextColor = (0, _services.makeHighContrastColor)(euiTheme.colors.success)(needsUpdatingBackgroundColor);
49
- 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((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), "\n }\n\n &:last-child {\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n }\n\n .euiDatePopoverButton {\n background-color: transparent;\n border-radius: inherit;\n }\n ");
50
- var popoverButtonFocusStyles = isRefreshVariant ? "\n ".concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n ").concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, euiTheme.colors.primary), "\n ");
51
- 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((0, _form.euiFormControlInvalidStyles)(euiThemeContext), "\n }\n\n .euiDatePopoverButton:focus,\n .euiPopover-isOpen .euiDatePopoverButton {\n ").concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n }\n ") : "\n ".concat((0, _form.euiFormControlInvalidStyles)(euiThemeContext), "\n ");
52
- var needsUpdatingStyles = "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n --euiFormControlStateHoverColor: ").concat(euiTheme.colors.success, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n ").concat(_form.euiFormControlHighlightBorderStyles, "\n \n &:has(.euiPopover-isOpen),\n &:focus-within {\n --euiFormControlStateColor: ").concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n ");
53
- var needsUpdatingPopoverButtonFocusStyles = isRefreshVariant ? "\n ".concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n ").concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, euiTheme.colors.success), "\n\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
54
- // Force the fill color of all icons/svgs to give a bit more indication of state,
55
- // since Windows high contrast themes otherwise override background/text color
56
- forced: "\n svg,\n & + * svg {\n fill: ".concat(euiTheme.colors.success, ";\n }\n ")
57
- }), "\n ");
58
- var prettyFormatStyles = "\n --euiFormControlStateHoverColor: ".concat(forms.borderHovered, ";\n ").concat((0, _form.euiFormControlDefaultShadow)(euiThemeContext), "\n \n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
59
- preferred: "\n border: none;\n "
60
- }), "\n\n &:focus {\n ").concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n }\n ");
61
48
  return {
62
49
  euiSuperDatePicker: /*#__PURE__*/(0, _react.css)("display:flex;gap:", gap, ";", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 'm'), "{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiSuperDatePicker;"),
63
50
  widths: {
@@ -82,23 +69,22 @@ var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSu
82
69
  isQuickSelectOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), ".euiFormControlLayout__prepend{", (0, _global_styling.logicalCSS)('max-width', 'none'), ";}.euiFormControlLayoutDelimited__delimiter:first-child{", (0, _global_styling.logicalCSS)('padding-horizontal', 0), ";};label:isQuickSelectOnly;"),
83
70
  euiSuperDatePicker__range: _ref,
84
71
  euiSuperDatePicker__rangeInput: /*#__PURE__*/(0, _react.css)("flex-grow:1;", (0, _global_styling.logicalCSS)('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
85
- euiSuperDatePicker__prettyFormat: /*#__PURE__*/(0, _react.css)(_buttonStyles(euiThemeContext), " text-align:start;", isRefreshVariant && prettyFormatStyles, ";;label:euiSuperDatePicker__prettyFormat;"),
72
+ euiSuperDatePicker__prettyFormat: /*#__PURE__*/(0, _react.css)(_buttonStyles(euiThemeContext), " text-align:start;--euiFormControlStateHoverColor:", forms.borderHovered, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " &:focus{", (0, _form.euiFormControlFocusStyles)(euiThemeContext), ";}", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
73
+ preferred: "\n border: none;\n "
74
+ }), ";;label:euiSuperDatePicker__prettyFormat;"),
86
75
  // Form states
87
76
  states: {
88
- euiSuperDatePicker__formControlLayout: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
89
- none: 'box-shadow: none;',
77
+ euiSuperDatePicker__formControlLayout: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
78
+ none: "\n ".concat((0, _form.euiFormControlDefaultShadow)(euiThemeContext), "\n box-shadow: none;\n "),
90
79
  preferred: 'border: none;'
91
- }), " ", isRefreshVariant && formLayoutStyles, ";};label:euiSuperDatePicker__formControlLayout;"),
92
- default: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";", !isRefreshVariant && (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
93
- withBorder: false,
94
- withBackgroundColor: false
95
- }), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", popoverButtonFocusStyles, ";};label:default;"),
80
+ }), ".euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover{outline:none;}.euiPopover{border-radius:", forms.controlBorderRadius, ";&:first-child{", (0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ";}&:last-child{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";}}.euiDatePopoverButton{background-color:transparent;border-radius:inherit;}};label:euiSuperDatePicker__formControlLayout;"),
81
+ default: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", (0, _form.euiFormControlFocusStyles)(euiThemeContext), ";};label:default;"),
96
82
  disabled: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{", (0, _form.euiFormControlDisabledStyles)(euiThemeContext), ";};label:disabled;"),
97
- invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", invalidStyles, ";};label:invalid;"),
98
- needsUpdating: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", isRefreshVariant && needsUpdatingStyles, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
83
+ invalid: /*#__PURE__*/(0, _react.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)){", (0, _form.euiFormControlInvalidStyles)(euiThemeContext), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", (0, _form.euiFormControlFocusStyles)(euiThemeContext), ";}};label:invalid;"),
84
+ needsUpdating: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{--euiFormControlStateColor:", euiTheme.colors.success, ";--euiFormControlStateHoverColor:", euiTheme.colors.success, ";--euiFormControlStateWidth:", euiTheme.border.width.thin, ";color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", _form.euiFormControlHighlightBorderStyles, " &:has(.euiPopover-isOpen),&:focus-within{--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
99
85
  withBorder: false,
100
86
  withBackgroundColor: false
101
- }), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", needsUpdatingPopoverButtonFocusStyles, ";};label:needsUpdating;")
87
+ }), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", (0, _form.euiFormControlFocusStyles)(euiThemeContext), ";};label:needsUpdating;")
102
88
  }
103
89
  };
104
90
  };
@@ -61,20 +61,17 @@ var EuiFilterButton = exports.EuiFilterButton = function EuiFilterButton(_ref) {
61
61
  var numActiveFiltersDefined = !!numActiveFilters;
62
62
  var euiThemeContext = (0, _services.useEuiTheme)();
63
63
  var colorMode = euiThemeContext.colorMode;
64
- var isRefreshVariant = (0, _services.useEuiThemeRefreshVariant)('buttonVariant');
65
64
 
66
65
  // assumption about type of usage based on icon usage
67
66
  // requires manual override to apply correct aria attributes for more custom usages
68
67
  var isCollapsible = !isToggle && iconType === 'arrowDown';
69
- // NOTE: in Amsterdam `hasActiveFilters` applies selected styling while `isSelected` does not.
70
- // With Borealis this is more granular as EuiFilterButton now supports proper toggle buttons next to regular buttons
71
68
  var isExpanded = isCollapsible && (isSelected !== null && isSelected !== void 0 ? isSelected : hasActiveFilters);
72
69
  var styles = (0, _services.useEuiMemoizedStyles)(_filter_button.euiFilterButtonStyles);
73
70
  var focusColorStyles = (0, _services.useEuiMemoizedStyles)(_button_group_button2._compressedButtonFocusColors);
74
- var toggleVariantStyles = isRefreshVariant ? [isToggle && styles.buttonType.toggle, !isToggle && !isDisabled && focusColorStyles[color], !isToggle && styles.buttonType.default] : [isToggle && styles.buttonType.toggle];
75
- var cssStyles = [styles.euiFilterButton, !isRefreshVariant && withNext && styles.withNext, hasActiveFilters && styles.hasActiveFilters].concat(toggleVariantStyles);
71
+ var toggleVariantStyles = [isToggle && styles.buttonType.toggle, !isToggle && !isDisabled && focusColorStyles[color], !isToggle && styles.buttonType.default];
72
+ var cssStyles = [styles.euiFilterButton, hasActiveFilters && styles.hasActiveFilters].concat(toggleVariantStyles);
76
73
  var wrapperStyles = (0, _services.useEuiMemoizedStyles)(_filter_button.euiFilterButtonWrapperStyles);
77
- var wrapperCssStyles = [wrapperStyles.wrapper, isRefreshVariant && withNext && styles.withNext, numFiltersDefined && styles.hasNotification, isToggle && wrapperStyles.hasToggle, !grow && styles.noGrow];
74
+ var wrapperCssStyles = [wrapperStyles.wrapper, withNext && styles.withNext, numFiltersDefined && styles.hasNotification, isToggle && wrapperStyles.hasToggle, !grow && styles.noGrow];
78
75
  var _useEuiMemoizedStyles = (0, _services.useEuiMemoizedStyles)(_filter_button.euiFilterButtonChildStyles),
79
76
  contentStyles = _useEuiMemoizedStyles.content,
80
77
  textStyles = _useEuiMemoizedStyles.text,
@@ -84,7 +81,7 @@ var EuiFilterButton = exports.EuiFilterButton = function EuiFilterButton(_ref) {
84
81
  'euiFilterButton-isSelected': isSelected,
85
82
  'euiFilterButton-hasActiveFilters': hasActiveFilters,
86
83
  'euiFilterButton-hasNotification': numFiltersDefined,
87
- 'euiFilterButton-isToggle': isRefreshVariant && isToggle
84
+ 'euiFilterButton-isToggle': isToggle
88
85
  }, className);
89
86
 
90
87
  /**
@@ -106,9 +103,9 @@ var EuiFilterButton = exports.EuiFilterButton = function EuiFilterButton(_ref) {
106
103
  color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
107
104
  role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
108
105
  }, badgeCount);
109
- var badgeElement = showBadge && (isRefreshVariant ? (0, _react2.jsx)(_services.EuiThemeProvider, {
106
+ var badgeElement = showBadge && (0, _react2.jsx)(_services.EuiThemeProvider, {
110
107
  colorMode: isToggle && isSelected ? 'INVERSE' : colorMode
111
- }, badgeContent) : badgeContent);
108
+ }, badgeContent);
112
109
 
113
110
  /**
114
111
  * Text