@elastic/eui 107.0.1 → 109.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  2. package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  3. package/es/components/basic_table/collapsed_item_actions.js +3 -1
  4. package/es/components/basic_table/default_item_action.js +7 -4
  5. package/es/components/button/button_display/_button_display.styles.js +1 -4
  6. package/es/components/button/button_display/_button_display_content.styles.js +1 -4
  7. package/es/components/button/button_empty/button_empty.styles.js +4 -7
  8. package/es/components/button/button_group/button_group.styles.js +2 -12
  9. package/es/components/button/button_group/button_group_button.js +4 -7
  10. package/es/components/button/button_group/button_group_button.styles.js +22 -36
  11. package/es/components/button/button_icon/button_icon.js +3 -6
  12. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  13. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  14. package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  15. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  16. package/es/components/datagrid/body/header/column_actions.js +5 -21
  17. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  18. package/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  19. package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  20. package/es/components/datagrid/controls/column_selector.styles.js +1 -1
  21. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  22. package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  23. package/es/components/datagrid/data_grid.styles.js +0 -1
  24. package/es/components/date_picker/date_picker.styles.js +1 -4
  25. package/es/components/date_picker/date_picker_range.styles.js +4 -8
  26. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  27. package/es/components/filter_group/filter_button.js +7 -10
  28. package/es/components/filter_group/filter_button.styles.js +28 -39
  29. package/es/components/filter_group/filter_group.styles.js +8 -29
  30. package/es/components/form/field_number/field_number.styles.js +1 -4
  31. package/es/components/form/field_text/field_text.styles.js +1 -4
  32. package/es/components/form/file_picker/file_picker.js +102 -107
  33. package/es/components/form/file_picker/file_picker.styles.js +6 -8
  34. package/es/components/form/form.styles.js +17 -40
  35. package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  36. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  37. package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  38. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  39. package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  40. package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  41. package/es/components/form/form_label/form_label.js +1 -1
  42. package/es/components/form/form_label/form_label.styles.js +1 -5
  43. package/es/components/form/range/range_input.styles.js +1 -3
  44. package/es/components/header/header.styles.js +4 -19
  45. package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  46. package/es/components/icon/assets/paper_clip.js +1 -1
  47. package/es/components/icon/assets/streams_wired.js +3 -2
  48. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  49. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  50. package/es/components/modal/modal.js +23 -5
  51. package/es/components/panel/panel.styles.js +4 -12
  52. package/es/components/resizable_container/resizable_collapse_button.js +2 -3
  53. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  54. package/es/components/toast/toast.styles.js +1 -3
  55. package/es/components/token/token.js +1 -3
  56. package/es/components/token/token.styles.js +2 -3
  57. package/es/components/token/token_map.js +1 -231
  58. package/es/global_styling/mixins/_button.js +14 -24
  59. package/es/index.js +0 -1
  60. package/es/services/color/eui_palettes.js +7 -21
  61. package/es/services/color/eui_palettes_hooks.js +6 -10
  62. package/es/services/color/vis_color_store.js +2 -2
  63. package/es/services/theme/high_contrast_overrides.js +5 -1
  64. package/es/services/theme/provider.js +4 -9
  65. package/eui.d.ts +35 -2105
  66. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  67. package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  68. package/lib/components/basic_table/collapsed_item_actions.js +3 -1
  69. package/lib/components/basic_table/default_item_action.js +7 -4
  70. package/lib/components/button/button_display/_button_display.styles.js +1 -4
  71. package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  72. package/lib/components/button/button_empty/button_empty.styles.js +4 -7
  73. package/lib/components/button/button_group/button_group.styles.js +2 -12
  74. package/lib/components/button/button_group/button_group_button.js +3 -6
  75. package/lib/components/button/button_group/button_group_button.styles.js +21 -35
  76. package/lib/components/button/button_icon/button_icon.js +1 -4
  77. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  78. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  79. package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  80. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  81. package/lib/components/datagrid/body/header/column_actions.js +5 -21
  82. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  83. package/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  84. package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  85. package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  86. package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  87. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  88. package/lib/components/datagrid/data_grid.styles.js +0 -1
  89. package/lib/components/date_picker/date_picker.styles.js +1 -4
  90. package/lib/components/date_picker/date_picker_range.styles.js +4 -8
  91. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  92. package/lib/components/filter_group/filter_button.js +6 -9
  93. package/lib/components/filter_group/filter_button.styles.js +27 -38
  94. package/lib/components/filter_group/filter_group.styles.js +8 -29
  95. package/lib/components/form/field_number/field_number.styles.js +1 -4
  96. package/lib/components/form/field_text/field_text.styles.js +1 -4
  97. package/lib/components/form/file_picker/file_picker.js +101 -106
  98. package/lib/components/form/file_picker/file_picker.styles.js +6 -8
  99. package/lib/components/form/form.styles.js +16 -39
  100. package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  101. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  102. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  103. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  104. package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  105. package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  106. package/lib/components/form/form_label/form_label.js +1 -1
  107. package/lib/components/form/form_label/form_label.styles.js +1 -5
  108. package/lib/components/form/range/range_input.styles.js +1 -3
  109. package/lib/components/header/header.styles.js +2 -18
  110. package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  111. package/lib/components/icon/assets/paper_clip.js +1 -1
  112. package/lib/components/icon/assets/streams_wired.js +3 -2
  113. package/lib/components/icon/svgs/paper_clip.svg +3 -3
  114. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  115. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  116. package/lib/components/modal/modal.js +25 -5
  117. package/lib/components/panel/panel.styles.js +4 -12
  118. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  119. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  120. package/lib/components/toast/toast.styles.js +1 -3
  121. package/lib/components/token/token.js +1 -3
  122. package/lib/components/token/token.styles.js +1 -2
  123. package/lib/components/token/token_map.js +2 -232
  124. package/lib/global_styling/mixins/_button.js +11 -21
  125. package/lib/index.js +0 -11
  126. package/lib/services/color/eui_palettes.js +7 -21
  127. package/lib/services/color/eui_palettes_hooks.js +6 -10
  128. package/lib/services/color/vis_color_store.js +2 -2
  129. package/lib/services/theme/high_contrast_overrides.js +5 -1
  130. package/lib/services/theme/provider.js +4 -9
  131. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  132. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  133. package/optimize/es/components/basic_table/collapsed_item_actions.js +3 -1
  134. package/optimize/es/components/basic_table/default_item_action.js +7 -4
  135. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
  136. package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
  137. package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
  138. package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
  139. package/optimize/es/components/button/button_group/button_group_button.js +3 -6
  140. package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
  141. package/optimize/es/components/button/button_icon/button_icon.js +3 -6
  142. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  143. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  144. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  145. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  146. package/optimize/es/components/datagrid/body/header/column_actions.js +5 -21
  147. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  148. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  149. package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  150. package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
  151. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  152. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  153. package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
  154. package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
  155. package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
  156. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  157. package/optimize/es/components/filter_group/filter_button.js +7 -10
  158. package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
  159. package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
  160. package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
  161. package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
  162. package/optimize/es/components/form/file_picker/file_picker.js +102 -107
  163. package/optimize/es/components/form/file_picker/file_picker.styles.js +6 -8
  164. package/optimize/es/components/form/form.styles.js +17 -40
  165. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  166. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  167. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  168. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  169. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  170. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  171. package/optimize/es/components/form/form_label/form_label.js +1 -1
  172. package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
  173. package/optimize/es/components/form/range/range_input.styles.js +1 -3
  174. package/optimize/es/components/header/header.styles.js +4 -19
  175. package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  176. package/optimize/es/components/icon/assets/paper_clip.js +1 -1
  177. package/optimize/es/components/icon/assets/streams_wired.js +3 -2
  178. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  179. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  180. package/optimize/es/components/modal/modal.js +17 -4
  181. package/optimize/es/components/panel/panel.styles.js +4 -12
  182. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
  183. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  184. package/optimize/es/components/toast/toast.styles.js +1 -3
  185. package/optimize/es/components/token/token.js +1 -3
  186. package/optimize/es/components/token/token.styles.js +2 -3
  187. package/optimize/es/components/token/token_map.js +1 -231
  188. package/optimize/es/global_styling/mixins/_button.js +14 -24
  189. package/optimize/es/index.js +0 -1
  190. package/optimize/es/services/color/eui_palettes.js +7 -21
  191. package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
  192. package/optimize/es/services/color/vis_color_store.js +2 -2
  193. package/optimize/es/services/theme/high_contrast_overrides.js +5 -1
  194. package/optimize/es/services/theme/provider.js +4 -9
  195. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  196. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  197. package/optimize/lib/components/basic_table/collapsed_item_actions.js +3 -1
  198. package/optimize/lib/components/basic_table/default_item_action.js +7 -4
  199. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
  200. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  201. package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
  202. package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
  203. package/optimize/lib/components/button/button_group/button_group_button.js +2 -5
  204. package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
  205. package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
  206. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  207. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  208. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  209. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  210. package/optimize/lib/components/datagrid/body/header/column_actions.js +5 -21
  211. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  212. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  213. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  214. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  215. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  216. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  217. package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
  218. package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
  219. package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
  220. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  221. package/optimize/lib/components/filter_group/filter_button.js +6 -9
  222. package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
  223. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
  224. package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
  225. package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
  226. package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
  227. package/optimize/lib/components/form/file_picker/file_picker.styles.js +6 -8
  228. package/optimize/lib/components/form/form.styles.js +16 -39
  229. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  230. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  231. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  232. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  233. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  234. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  235. package/optimize/lib/components/form/form_label/form_label.js +1 -1
  236. package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
  237. package/optimize/lib/components/form/range/range_input.styles.js +1 -3
  238. package/optimize/lib/components/header/header.styles.js +2 -18
  239. package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  240. package/optimize/lib/components/icon/assets/paper_clip.js +1 -1
  241. package/optimize/lib/components/icon/assets/streams_wired.js +3 -2
  242. package/optimize/lib/components/icon/svgs/paper_clip.svg +3 -3
  243. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  244. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  245. package/optimize/lib/components/modal/modal.js +20 -4
  246. package/optimize/lib/components/panel/panel.styles.js +4 -12
  247. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  248. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  249. package/optimize/lib/components/toast/toast.styles.js +1 -3
  250. package/optimize/lib/components/token/token.js +1 -3
  251. package/optimize/lib/components/token/token.styles.js +1 -2
  252. package/optimize/lib/components/token/token_map.js +2 -232
  253. package/optimize/lib/global_styling/mixins/_button.js +11 -21
  254. package/optimize/lib/index.js +0 -11
  255. package/optimize/lib/services/color/eui_palettes.js +7 -21
  256. package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
  257. package/optimize/lib/services/color/vis_color_store.js +2 -2
  258. package/optimize/lib/services/theme/high_contrast_overrides.js +5 -1
  259. package/optimize/lib/services/theme/provider.js +4 -9
  260. package/package.json +5 -6
  261. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  262. package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
  263. package/test-env/components/basic_table/collapsed_item_actions.js +3 -1
  264. package/test-env/components/basic_table/default_item_action.js +7 -4
  265. package/test-env/components/button/button_display/_button_display.styles.js +1 -4
  266. package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
  267. package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
  268. package/test-env/components/button/button_group/button_group.styles.js +2 -12
  269. package/test-env/components/button/button_group/button_group_button.js +3 -6
  270. package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
  271. package/test-env/components/button/button_icon/button_icon.js +1 -4
  272. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  273. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  274. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  275. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  276. package/test-env/components/datagrid/body/header/column_actions.js +5 -21
  277. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  278. package/test-env/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  279. package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  280. package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
  281. package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
  282. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  283. package/test-env/components/datagrid/data_grid.styles.js +0 -1
  284. package/test-env/components/date_picker/date_picker.styles.js +1 -4
  285. package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
  286. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  287. package/test-env/components/filter_group/filter_button.js +6 -9
  288. package/test-env/components/filter_group/filter_button.styles.js +27 -38
  289. package/test-env/components/filter_group/filter_group.styles.js +8 -29
  290. package/test-env/components/form/field_number/field_number.styles.js +1 -4
  291. package/test-env/components/form/field_text/field_text.styles.js +1 -4
  292. package/test-env/components/form/file_picker/file_picker.js +101 -106
  293. package/test-env/components/form/file_picker/file_picker.styles.js +6 -8
  294. package/test-env/components/form/form.styles.js +16 -39
  295. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  296. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  297. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  298. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  299. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  300. package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
  301. package/test-env/components/form/form_label/form_label.js +1 -1
  302. package/test-env/components/form/form_label/form_label.styles.js +1 -5
  303. package/test-env/components/form/range/range_input.styles.js +1 -3
  304. package/test-env/components/header/header.styles.js +2 -18
  305. package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
  306. package/test-env/components/icon/assets/paper_clip.js +1 -1
  307. package/test-env/components/icon/assets/streams_wired.js +3 -2
  308. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  309. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  310. package/test-env/components/modal/modal.js +26 -5
  311. package/test-env/components/panel/panel.styles.js +4 -12
  312. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  313. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  314. package/test-env/components/toast/toast.styles.js +1 -3
  315. package/test-env/components/token/token.js +1 -3
  316. package/test-env/components/token/token.styles.js +1 -2
  317. package/test-env/components/token/token_map.js +2 -232
  318. package/test-env/global_styling/mixins/_button.js +11 -21
  319. package/test-env/index.js +0 -11
  320. package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
  321. package/test-env/services/color/eui_palettes.js +7 -21
  322. package/test-env/services/color/eui_palettes_hooks.js +6 -10
  323. package/test-env/services/color/vis_color_store.js +2 -2
  324. package/test-env/services/theme/high_contrast_overrides.js +5 -1
  325. package/test-env/services/theme/provider.js +4 -9
  326. package/dist/eui_theme_amsterdam_dark.json +0 -463
  327. package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
  328. package/dist/eui_theme_amsterdam_light.json +0 -463
  329. package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
  330. package/dist/eui_theme_borealis_dark.json +0 -463
  331. package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
  332. package/dist/eui_theme_borealis_light.json +0 -463
  333. package/dist/eui_theme_borealis_light.json.d.ts +0 -466
  334. package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  335. package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  336. package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  337. package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  338. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  339. package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
  340. package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
  341. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  342. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
  343. package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
  344. package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  345. package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
  346. package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  347. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
  348. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
  349. package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  350. package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
  351. package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  352. package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  353. package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
  354. package/es/themes/amsterdam/index.js +0 -10
  355. package/es/themes/amsterdam/theme.js +0 -41
  356. package/es/themes/index.js +0 -12
  357. package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  358. package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  359. package/es/themes/json/eui_theme_borealis_dark.json +0 -463
  360. package/es/themes/json/eui_theme_borealis_light.json +0 -463
  361. package/es/themes/themes.js +0 -1
  362. package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  363. package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  364. package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  365. package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  366. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  367. package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
  368. package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
  369. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  370. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
  371. package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
  372. package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  373. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
  374. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  375. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
  376. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
  377. package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  378. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
  379. package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  380. package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  381. package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
  382. package/lib/themes/amsterdam/index.js +0 -16
  383. package/lib/themes/amsterdam/theme.js +0 -47
  384. package/lib/themes/index.js +0 -57
  385. package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  386. package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  387. package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  388. package/lib/themes/json/eui_theme_borealis_light.json +0 -463
  389. package/lib/themes/themes.js +0 -5
  390. package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  391. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  392. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  393. package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  394. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  395. package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
  396. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
  397. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  398. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
  399. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
  400. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  401. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
  402. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  403. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
  404. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
  405. package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  406. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
  407. package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  408. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  409. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
  410. package/optimize/es/themes/amsterdam/index.js +0 -10
  411. package/optimize/es/themes/amsterdam/theme.js +0 -41
  412. package/optimize/es/themes/index.js +0 -12
  413. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  414. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  415. package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
  416. package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
  417. package/optimize/es/themes/themes.js +0 -1
  418. package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  419. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  420. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  421. package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  422. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  423. package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  424. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  425. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  426. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  427. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  428. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  429. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  430. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  431. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
  432. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  433. package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  434. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  435. package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  436. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  437. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  438. package/optimize/lib/themes/amsterdam/index.js +0 -16
  439. package/optimize/lib/themes/amsterdam/theme.js +0 -47
  440. package/optimize/lib/themes/index.js +0 -57
  441. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  442. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  443. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  444. package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
  445. package/optimize/lib/themes/themes.js +0 -5
  446. package/package/eui.d.ts +0 -33359
  447. package/src/global_styling/functions/_colors.scss +0 -138
  448. package/src/global_styling/functions/_index.scss +0 -1
  449. package/src/global_styling/functions/_math.scss +0 -1
  450. package/src/global_styling/functions/_math_pow.scss +0 -82
  451. package/src/global_styling/index.scss +0 -3
  452. package/src/global_styling/mixins/_helpers.scss +0 -117
  453. package/src/global_styling/mixins/_index.scss +0 -8
  454. package/src/global_styling/mixins/_responsive.scss +0 -44
  455. package/src/global_styling/mixins/_shadow.scss +0 -100
  456. package/src/global_styling/mixins/_size.scss +0 -4
  457. package/src/global_styling/mixins/_states.scss +0 -17
  458. package/src/global_styling/mixins/_tool_tip.scss +0 -18
  459. package/src/global_styling/mixins/_typography.scss +0 -166
  460. package/src/global_styling/variables/_animations.scss +0 -6
  461. package/src/global_styling/variables/_borders.scss +0 -3
  462. package/src/global_styling/variables/_buttons.scss +0 -1
  463. package/src/global_styling/variables/_font_weight.scss +0 -4
  464. package/src/global_styling/variables/_form.scss +0 -2
  465. package/src/global_styling/variables/_index.scss +0 -22
  466. package/src/global_styling/variables/_responsive.scss +0 -1
  467. package/src/global_styling/variables/_shadows.scss +0 -2
  468. package/src/global_styling/variables/_size.scss +0 -1
  469. package/src/global_styling/variables/_states.scss +0 -1
  470. package/src/global_styling/variables/_typography.scss +0 -1
  471. package/src/global_styling/variables/_z_index.scss +0 -2
  472. package/src/themes/amsterdam/_colors_dark.scss +0 -139
  473. package/src/themes/amsterdam/_colors_light.scss +0 -139
  474. package/src/themes/amsterdam/_globals.scss +0 -11
  475. package/src/themes/amsterdam/global_styling/index.scss +0 -12
  476. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
  477. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
  478. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
  479. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
  480. package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
  481. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  482. package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
  483. package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
  484. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  485. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
  486. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
  487. package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
  488. package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
  489. package/src/themes/amsterdam/theme_dark.scss +0 -5
  490. package/src/themes/amsterdam/theme_light.scss +0 -5
  491. package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
  492. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  493. package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
  494. package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
  495. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  496. package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  497. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  498. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  499. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  500. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  501. package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  502. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  503. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  504. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
  505. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  506. package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  507. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  508. package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
  509. package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
  510. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  511. package/test-env/themes/amsterdam/index.js +0 -16
  512. package/test-env/themes/amsterdam/theme.js +0 -47
  513. package/test-env/themes/index.js +0 -57
  514. package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
  515. package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
  516. package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
  517. package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
  518. package/test-env/themes/themes.js +0 -5
@@ -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;"),
@@ -20,7 +20,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
20
20
 
21
21
  import React, { Component } from 'react';
22
22
  import classNames from 'classnames';
23
- import { withEuiStylesMemoizer, htmlIdGenerator, RenderWithEuiTheme, isEuiThemeRefreshVariant } from '../../../services';
23
+ import { withEuiStylesMemoizer, htmlIdGenerator } from '../../../services';
24
24
  import { EuiButtonEmpty } from '../../button';
25
25
  import { EuiProgress } from '../../progress';
26
26
  import { EuiIcon } from '../../icon';
@@ -101,117 +101,112 @@ export var EuiFilePickerClass = /*#__PURE__*/function (_Component) {
101
101
  var _this2 = this;
102
102
  var _ref = this.context,
103
103
  defaultFullWidth = _ref.defaultFullWidth;
104
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
105
- return ___EmotionJSX(EuiI18n, {
106
- token: "euiFilePicker.removeSelectedAriaLabel",
107
- default: "Remove selected files"
108
- }, function (removeSelectedAriaLabel) {
109
- var _this2$props = _this2.props,
110
- stylesMemoizer = _this2$props.stylesMemoizer,
111
- id = _this2$props.id,
112
- name = _this2$props.name,
113
- initialPromptText = _this2$props.initialPromptText,
114
- className = _this2$props.className,
115
- disabled = _this2$props.disabled,
116
- compressed = _this2$props.compressed,
117
- onChange = _this2$props.onChange,
118
- isInvalid = _this2$props.isInvalid,
119
- _this2$props$fullWidt = _this2$props.fullWidth,
120
- fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
121
- isLoading = _this2$props.isLoading,
122
- display = _this2$props.display,
123
- rest = _objectWithoutProperties(_this2$props, _excluded);
124
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
125
- var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
126
- var isOverridingInitialPrompt = _this2.state.promptText != null;
127
- var normalFormControl = display === 'default';
128
- var classes = classNames('euiFilePicker', {
129
- 'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
130
- 'euiFilePicker-isInvalid': isInvalid,
131
- 'euiFilePicker-isLoading': isLoading,
132
- 'euiFilePicker-hasFiles': isOverridingInitialPrompt
133
- }, className);
134
- var styles = stylesMemoizer(euiFilePickerStyles);
135
- var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, _this2.state.isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
136
- var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
137
- var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat(_toConsumableArray(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
138
- var iconStyles = [styles.icon.euiFilePicker__icon].concat(_toConsumableArray(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
139
- var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
140
- var clearButton;
141
- if (isLoading && normalFormControl) {
142
- // Override clear button with loading spinner if it is in loading state
143
- clearButton = ___EmotionJSX(EuiLoadingSpinner, {
144
- css: rightIconStyles,
145
- className: "euiFilePicker__loadingSpinner",
104
+ return ___EmotionJSX(EuiI18n, {
105
+ token: "euiFilePicker.removeSelectedAriaLabel",
106
+ default: "Remove selected files"
107
+ }, function (removeSelectedAriaLabel) {
108
+ var _this2$props = _this2.props,
109
+ stylesMemoizer = _this2$props.stylesMemoizer,
110
+ id = _this2$props.id,
111
+ name = _this2$props.name,
112
+ initialPromptText = _this2$props.initialPromptText,
113
+ className = _this2$props.className,
114
+ disabled = _this2$props.disabled,
115
+ compressed = _this2$props.compressed,
116
+ onChange = _this2$props.onChange,
117
+ isInvalid = _this2$props.isInvalid,
118
+ _this2$props$fullWidt = _this2$props.fullWidth,
119
+ fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
120
+ isLoading = _this2$props.isLoading,
121
+ display = _this2$props.display,
122
+ rest = _objectWithoutProperties(_this2$props, _excluded);
123
+ var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
124
+ var isOverridingInitialPrompt = _this2.state.promptText != null;
125
+ var normalFormControl = display === 'default';
126
+ var classes = classNames('euiFilePicker', {
127
+ 'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
128
+ 'euiFilePicker-isInvalid': isInvalid,
129
+ 'euiFilePicker-isLoading': isLoading,
130
+ 'euiFilePicker-hasFiles': isOverridingInitialPrompt
131
+ }, className);
132
+ var styles = stylesMemoizer(euiFilePickerStyles);
133
+ var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, _this2.state.isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
134
+ var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
135
+ var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat(_toConsumableArray(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
136
+ var iconStyles = [styles.icon.euiFilePicker__icon].concat(_toConsumableArray(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
137
+ var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
138
+ var clearButton;
139
+ if (isLoading && normalFormControl) {
140
+ // Override clear button with loading spinner if it is in loading state
141
+ clearButton = ___EmotionJSX(EuiLoadingSpinner, {
142
+ css: rightIconStyles,
143
+ className: "euiFilePicker__loadingSpinner",
144
+ size: compressed ? 's' : 'm'
145
+ });
146
+ } else if (isOverridingInitialPrompt && !disabled) {
147
+ if (normalFormControl) {
148
+ clearButton = ___EmotionJSX(EuiFormControlLayoutClearButton, {
149
+ "aria-label": removeSelectedAriaLabel,
150
+ css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
151
+ className: "euiFilePicker__clearButton",
152
+ onClick: _this2.removeFiles,
146
153
  size: compressed ? 's' : 'm'
147
154
  });
148
- } else if (isOverridingInitialPrompt && !disabled) {
149
- if (normalFormControl) {
150
- clearButton = ___EmotionJSX(EuiFormControlLayoutClearButton, {
151
- "aria-label": removeSelectedAriaLabel,
152
- css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
153
- className: "euiFilePicker__clearButton",
154
- onClick: _this2.removeFiles,
155
- size: compressed ? 's' : 'm'
156
- });
157
- } else {
158
- clearButton = ___EmotionJSX(EuiButtonEmpty, {
159
- "aria-label": removeSelectedAriaLabel,
160
- css: styles.euiFilePicker__clearButton,
161
- className: "euiFilePicker__clearButton",
162
- size: "xs",
163
- onClick: _this2.removeFiles
164
- }, ___EmotionJSX(EuiI18n, {
165
- token: "euiFilePicker.removeSelected",
166
- default: "Remove"
167
- }));
168
- }
169
155
  } else {
170
- clearButton = null;
156
+ clearButton = ___EmotionJSX(EuiButtonEmpty, {
157
+ "aria-label": removeSelectedAriaLabel,
158
+ css: styles.euiFilePicker__clearButton,
159
+ className: "euiFilePicker__clearButton",
160
+ size: "xs",
161
+ onClick: _this2.removeFiles
162
+ }, ___EmotionJSX(EuiI18n, {
163
+ token: "euiFilePicker.removeSelected",
164
+ default: "Remove"
165
+ }));
171
166
  }
172
- var loader = !normalFormControl && isLoading && ___EmotionJSX(EuiProgress, {
173
- size: "xs",
174
- color: "accent",
175
- position: "absolute"
176
- });
177
-
178
- // Currently this tenary is a little complex, it'll be simplified once we remove Amsterdam
179
- var iconColor = isInvalid ? 'danger' : disabled ? isRefreshVariant ? 'disabled' : 'subdued' : isRefreshVariant ? 'text' : 'primary';
180
- return ___EmotionJSX("div", {
181
- css: cssStyles,
182
- className: classes
183
- }, ___EmotionJSX(EuiValidatableControl, {
184
- isInvalid: isInvalid
185
- }, ___EmotionJSX("input", _extends({
186
- type: "file",
187
- id: id,
188
- name: name,
189
- css: inputStyles,
190
- className: "euiFilePicker__input",
191
- onChange: _this2.handleChange,
192
- ref: function ref(input) {
193
- _this2.fileInput = input;
194
- },
195
- onDragOver: _this2.showDrop,
196
- onDragLeave: _this2.hideDrop,
197
- onDrop: _this2.hideDrop,
198
- disabled: disabled,
199
- "aria-describedby": promptId
200
- }, rest))), ___EmotionJSX("div", {
201
- css: promptStyles,
202
- className: "euiFilePicker__prompt",
203
- id: promptId
204
- }, ___EmotionJSX(EuiIcon, {
205
- css: iconStyles,
206
- className: "euiFilePicker__icon",
207
- color: iconColor,
208
- type: isInvalid ? 'alert' : isRefreshVariant && disabled ? 'minusInCircle' : 'importAction',
209
- size: normalFormControl ? 'm' : 'l',
210
- "aria-hidden": "true"
211
- }), ___EmotionJSX("span", {
212
- className: "euiFilePicker__promptText"
213
- }, _this2.state.promptText || initialPromptText), clearButton, loader));
167
+ } else {
168
+ clearButton = null;
169
+ }
170
+ var loader = !normalFormControl && isLoading && ___EmotionJSX(EuiProgress, {
171
+ size: "xs",
172
+ color: "accent",
173
+ position: "absolute"
214
174
  });
175
+ var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
176
+ return ___EmotionJSX("div", {
177
+ css: cssStyles,
178
+ className: classes
179
+ }, ___EmotionJSX(EuiValidatableControl, {
180
+ isInvalid: isInvalid
181
+ }, ___EmotionJSX("input", _extends({
182
+ type: "file",
183
+ id: id,
184
+ name: name,
185
+ css: inputStyles,
186
+ className: "euiFilePicker__input",
187
+ onChange: _this2.handleChange,
188
+ ref: function ref(input) {
189
+ _this2.fileInput = input;
190
+ },
191
+ onDragOver: _this2.showDrop,
192
+ onDragLeave: _this2.hideDrop,
193
+ onDrop: _this2.hideDrop,
194
+ disabled: disabled,
195
+ "aria-describedby": promptId
196
+ }, rest))), ___EmotionJSX("div", {
197
+ css: promptStyles,
198
+ className: "euiFilePicker__prompt",
199
+ id: promptId
200
+ }, ___EmotionJSX(EuiIcon, {
201
+ css: iconStyles,
202
+ className: "euiFilePicker__icon",
203
+ color: iconColor,
204
+ type: isInvalid ? 'alert' : disabled ? 'minusInCircle' : 'importAction',
205
+ size: normalFormControl ? 'm' : 'l',
206
+ "aria-hidden": "true"
207
+ }), ___EmotionJSX("span", {
208
+ className: "euiFilePicker__promptText"
209
+ }, _this2.state.promptText || initialPromptText), clearButton, loader));
215
210
  });
216
211
  }
217
212
  }]);
@@ -8,7 +8,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { isEuiThemeRefreshVariant } from '../../../services';
12
11
  import { euiCanAnimate, euiFontSize, euiTextTruncate, highContrastModeStyles, logicalCSS, mathWithUnits } from '../../../global_styling';
13
12
  import { euiFormControlShowBackgroundLine, euiFormControlStyles, euiFormVariables } from '../form.styles';
14
13
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -38,17 +37,16 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
38
37
  export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
39
38
  var euiTheme = euiThemeContext.euiTheme,
40
39
  highContrastMode = euiThemeContext.highContrastMode;
41
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
42
40
  var formStyles = euiFormControlStyles(euiThemeContext);
43
41
  var formVariables = euiFormVariables(euiThemeContext);
44
42
  var _euiFontSize = euiFontSize(euiThemeContext, 's'),
45
43
  fontSize = _euiFontSize.fontSize,
46
44
  lineHeight = _euiFontSize.lineHeight;
47
45
  return {
48
- euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : formVariables.borderHovered, ";--euiFormControlStateStyle:", highContrastMode && isRefreshVariant ? 'solid' : 'dashed', ";}&:focus-within{", highContrastModeStyles(euiThemeContext, {
46
+ euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : euiTheme.colors.borderInteractiveFormsHoverProminent, ";--euiFormControlStateStyle:", highContrastMode ? 'solid' : 'dashed', ";}&:focus-within{", highContrastModeStyles(euiThemeContext, {
49
47
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, formVariables.borderFocused), "\n ")
50
48
  }), ";};label:euiFilePicker;"),
51
- isDroppingFile: /*#__PURE__*/css("--euiFormControlStateColor:", isRefreshVariant ? euiTheme.colors.borderStrongSuccess : euiTheme.colors.primary, ";", isRefreshVariant && " \n --euiFormControlStateStyle: ".concat(highContrastMode === 'forced' ? 'solid' : 'dashed', ";\n background-color: ").concat(euiTheme.components.forms.backgroundDropping, "\n "), ";;label:isDroppingFile;"),
49
+ isDroppingFile: /*#__PURE__*/css("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
52
50
  invalid: /*#__PURE__*/css("--euiFormControlStateColor:", formVariables.borderInvalid, ";&:hover{--euiFormControlStateColor:", formVariables.borderInvalidHovered, ";}", highContrastModeStyles(euiThemeContext, {
53
51
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, formVariables.borderInvalid), "\n ")
54
52
  }), ";;label:invalid;"),
@@ -60,12 +58,12 @@ export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
60
58
  // The input is an invisible dropzone / button
61
59
  input: {
62
60
  euiFilePicker__input: _ref3,
63
- largeInteractive: /*#__PURE__*/css("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{text-decoration:", isRefreshVariant ? '' : 'underline', ";", highContrastModeStyles(euiThemeContext, {
61
+ largeInteractive: /*#__PURE__*/css("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{", highContrastModeStyles(euiThemeContext, {
64
62
  forced: "\n text-decoration: underline;\n "
65
- }), ";}.euiFilePicker__icon{transform:scale(", isRefreshVariant ? 1.05 : 1.1, ");}}};label:largeInteractive;")
63
+ }), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
66
64
  },
67
- euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", isRefreshVariant ? euiTheme.border.width.thin : euiTheme.border.width.thick, " var(--euiFormControlStateStyle, dashed) var(\n --euiFormControlStateColor,\n ", isRefreshVariant ? formVariables.borderColor : euiTheme.border.color, "\n );", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
68
- disabled: /*#__PURE__*/css(formStyles.disabled, ";label:disabled;"),
65
+ euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", euiTheme.colors.borderBaseProminent, ");", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
66
+ disabled: /*#__PURE__*/css(formStyles.disabled, "--euiFormControlStateColor:transparent;;label:disabled;"),
69
67
  // Skip the css() on the default height to avoid generating a className
70
68
  uncompressed: formStyles.uncompressed,
71
69
  compressed: /*#__PURE__*/css(formStyles.compressed, ";label:compressed;"),