@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
@@ -109,117 +109,112 @@ var EuiFilePickerClass = exports.EuiFilePickerClass = /*#__PURE__*/function (_Co
109
109
  var _this2 = this;
110
110
  var _ref = this.context,
111
111
  defaultFullWidth = _ref.defaultFullWidth;
112
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
113
- return (0, _react2.jsx)(_i18n.EuiI18n, {
114
- token: "euiFilePicker.removeSelectedAriaLabel",
115
- default: "Remove selected files"
116
- }, function (removeSelectedAriaLabel) {
117
- var _this2$props = _this2.props,
118
- stylesMemoizer = _this2$props.stylesMemoizer,
119
- id = _this2$props.id,
120
- name = _this2$props.name,
121
- initialPromptText = _this2$props.initialPromptText,
122
- className = _this2$props.className,
123
- disabled = _this2$props.disabled,
124
- compressed = _this2$props.compressed,
125
- onChange = _this2$props.onChange,
126
- isInvalid = _this2$props.isInvalid,
127
- _this2$props$fullWidt = _this2$props.fullWidth,
128
- fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
129
- isLoading = _this2$props.isLoading,
130
- display = _this2$props.display,
131
- rest = (0, _objectWithoutProperties2.default)(_this2$props, _excluded);
132
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
133
- var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
134
- var isOverridingInitialPrompt = _this2.state.promptText != null;
135
- var normalFormControl = display === 'default';
136
- var classes = (0, _classnames.default)('euiFilePicker', {
137
- 'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
138
- 'euiFilePicker-isInvalid': isInvalid,
139
- 'euiFilePicker-isLoading': isLoading,
140
- 'euiFilePicker-hasFiles': isOverridingInitialPrompt
141
- }, className);
142
- var styles = stylesMemoizer(_file_picker.euiFilePickerStyles);
143
- 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];
144
- var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
145
- var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat((0, _toConsumableArray2.default)(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
146
- var iconStyles = [styles.icon.euiFilePicker__icon].concat((0, _toConsumableArray2.default)(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
147
- var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
148
- var clearButton;
149
- if (isLoading && normalFormControl) {
150
- // Override clear button with loading spinner if it is in loading state
151
- clearButton = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
152
- css: rightIconStyles,
153
- className: "euiFilePicker__loadingSpinner",
112
+ return (0, _react2.jsx)(_i18n.EuiI18n, {
113
+ token: "euiFilePicker.removeSelectedAriaLabel",
114
+ default: "Remove selected files"
115
+ }, function (removeSelectedAriaLabel) {
116
+ var _this2$props = _this2.props,
117
+ stylesMemoizer = _this2$props.stylesMemoizer,
118
+ id = _this2$props.id,
119
+ name = _this2$props.name,
120
+ initialPromptText = _this2$props.initialPromptText,
121
+ className = _this2$props.className,
122
+ disabled = _this2$props.disabled,
123
+ compressed = _this2$props.compressed,
124
+ onChange = _this2$props.onChange,
125
+ isInvalid = _this2$props.isInvalid,
126
+ _this2$props$fullWidt = _this2$props.fullWidth,
127
+ fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
128
+ isLoading = _this2$props.isLoading,
129
+ display = _this2$props.display,
130
+ rest = (0, _objectWithoutProperties2.default)(_this2$props, _excluded);
131
+ var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
132
+ var isOverridingInitialPrompt = _this2.state.promptText != null;
133
+ var normalFormControl = display === 'default';
134
+ var classes = (0, _classnames.default)('euiFilePicker', {
135
+ 'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
136
+ 'euiFilePicker-isInvalid': isInvalid,
137
+ 'euiFilePicker-isLoading': isLoading,
138
+ 'euiFilePicker-hasFiles': isOverridingInitialPrompt
139
+ }, className);
140
+ var styles = stylesMemoizer(_file_picker.euiFilePickerStyles);
141
+ 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];
142
+ var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
143
+ var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat((0, _toConsumableArray2.default)(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
144
+ var iconStyles = [styles.icon.euiFilePicker__icon].concat((0, _toConsumableArray2.default)(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
145
+ var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
146
+ var clearButton;
147
+ if (isLoading && normalFormControl) {
148
+ // Override clear button with loading spinner if it is in loading state
149
+ clearButton = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
150
+ css: rightIconStyles,
151
+ className: "euiFilePicker__loadingSpinner",
152
+ size: compressed ? 's' : 'm'
153
+ });
154
+ } else if (isOverridingInitialPrompt && !disabled) {
155
+ if (normalFormControl) {
156
+ clearButton = (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, {
157
+ "aria-label": removeSelectedAriaLabel,
158
+ css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
159
+ className: "euiFilePicker__clearButton",
160
+ onClick: _this2.removeFiles,
154
161
  size: compressed ? 's' : 'm'
155
162
  });
156
- } else if (isOverridingInitialPrompt && !disabled) {
157
- if (normalFormControl) {
158
- clearButton = (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, {
159
- "aria-label": removeSelectedAriaLabel,
160
- css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
161
- className: "euiFilePicker__clearButton",
162
- onClick: _this2.removeFiles,
163
- size: compressed ? 's' : 'm'
164
- });
165
- } else {
166
- clearButton = (0, _react2.jsx)(_button.EuiButtonEmpty, {
167
- "aria-label": removeSelectedAriaLabel,
168
- css: styles.euiFilePicker__clearButton,
169
- className: "euiFilePicker__clearButton",
170
- size: "xs",
171
- onClick: _this2.removeFiles
172
- }, (0, _react2.jsx)(_i18n.EuiI18n, {
173
- token: "euiFilePicker.removeSelected",
174
- default: "Remove"
175
- }));
176
- }
177
163
  } else {
178
- clearButton = null;
164
+ clearButton = (0, _react2.jsx)(_button.EuiButtonEmpty, {
165
+ "aria-label": removeSelectedAriaLabel,
166
+ css: styles.euiFilePicker__clearButton,
167
+ className: "euiFilePicker__clearButton",
168
+ size: "xs",
169
+ onClick: _this2.removeFiles
170
+ }, (0, _react2.jsx)(_i18n.EuiI18n, {
171
+ token: "euiFilePicker.removeSelected",
172
+ default: "Remove"
173
+ }));
179
174
  }
180
- var loader = !normalFormControl && isLoading && (0, _react2.jsx)(_progress.EuiProgress, {
181
- size: "xs",
182
- color: "accent",
183
- position: "absolute"
184
- });
185
-
186
- // Currently this tenary is a little complex, it'll be simplified once we remove Amsterdam
187
- var iconColor = isInvalid ? 'danger' : disabled ? isRefreshVariant ? 'disabled' : 'subdued' : isRefreshVariant ? 'text' : 'primary';
188
- return (0, _react2.jsx)("div", {
189
- css: cssStyles,
190
- className: classes
191
- }, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
192
- isInvalid: isInvalid
193
- }, (0, _react2.jsx)("input", (0, _extends2.default)({
194
- type: "file",
195
- id: id,
196
- name: name,
197
- css: inputStyles,
198
- className: "euiFilePicker__input",
199
- onChange: _this2.handleChange,
200
- ref: function ref(input) {
201
- _this2.fileInput = input;
202
- },
203
- onDragOver: _this2.showDrop,
204
- onDragLeave: _this2.hideDrop,
205
- onDrop: _this2.hideDrop,
206
- disabled: disabled,
207
- "aria-describedby": promptId
208
- }, rest))), (0, _react2.jsx)("div", {
209
- css: promptStyles,
210
- className: "euiFilePicker__prompt",
211
- id: promptId
212
- }, (0, _react2.jsx)(_icon.EuiIcon, {
213
- css: iconStyles,
214
- className: "euiFilePicker__icon",
215
- color: iconColor,
216
- type: isInvalid ? 'alert' : isRefreshVariant && disabled ? 'minusInCircle' : 'importAction',
217
- size: normalFormControl ? 'm' : 'l',
218
- "aria-hidden": "true"
219
- }), (0, _react2.jsx)("span", {
220
- className: "euiFilePicker__promptText"
221
- }, _this2.state.promptText || initialPromptText), clearButton, loader));
175
+ } else {
176
+ clearButton = null;
177
+ }
178
+ var loader = !normalFormControl && isLoading && (0, _react2.jsx)(_progress.EuiProgress, {
179
+ size: "xs",
180
+ color: "accent",
181
+ position: "absolute"
222
182
  });
183
+ var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
184
+ return (0, _react2.jsx)("div", {
185
+ css: cssStyles,
186
+ className: classes
187
+ }, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
188
+ isInvalid: isInvalid
189
+ }, (0, _react2.jsx)("input", (0, _extends2.default)({
190
+ type: "file",
191
+ id: id,
192
+ name: name,
193
+ css: inputStyles,
194
+ className: "euiFilePicker__input",
195
+ onChange: _this2.handleChange,
196
+ ref: function ref(input) {
197
+ _this2.fileInput = input;
198
+ },
199
+ onDragOver: _this2.showDrop,
200
+ onDragLeave: _this2.hideDrop,
201
+ onDrop: _this2.hideDrop,
202
+ disabled: disabled,
203
+ "aria-describedby": promptId
204
+ }, rest))), (0, _react2.jsx)("div", {
205
+ css: promptStyles,
206
+ className: "euiFilePicker__prompt",
207
+ id: promptId
208
+ }, (0, _react2.jsx)(_icon.EuiIcon, {
209
+ css: iconStyles,
210
+ className: "euiFilePicker__icon",
211
+ color: iconColor,
212
+ type: isInvalid ? 'alert' : disabled ? 'minusInCircle' : 'importAction',
213
+ size: normalFormControl ? 'm' : 'l',
214
+ "aria-hidden": "true"
215
+ }), (0, _react2.jsx)("span", {
216
+ className: "euiFilePicker__promptText"
217
+ }, _this2.state.promptText || initialPromptText), clearButton, loader));
223
218
  });
224
219
  }
225
220
  }]);
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiFilePickerStyles = 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.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)."; } /*
@@ -42,17 +41,16 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
42
41
  var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
43
42
  var euiTheme = euiThemeContext.euiTheme,
44
43
  highContrastMode = euiThemeContext.highContrastMode;
45
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
46
44
  var formStyles = (0, _form.euiFormControlStyles)(euiThemeContext);
47
45
  var formVariables = (0, _form.euiFormVariables)(euiThemeContext);
48
46
  var _euiFontSize = (0, _global_styling.euiFontSize)(euiThemeContext, 's'),
49
47
  fontSize = _euiFontSize.fontSize,
50
48
  lineHeight = _euiFontSize.lineHeight;
51
49
  return {
52
- euiFilePicker: /*#__PURE__*/(0, _react.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{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
50
+ euiFilePicker: /*#__PURE__*/(0, _react.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{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
53
51
  forced: "\n ".concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, formVariables.borderFocused), "\n ")
54
52
  }), ";};label:euiFilePicker;"),
55
- isDroppingFile: /*#__PURE__*/(0, _react.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;"),
53
+ isDroppingFile: /*#__PURE__*/(0, _react.css)("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
56
54
  invalid: /*#__PURE__*/(0, _react.css)("--euiFormControlStateColor:", formVariables.borderInvalid, ";&:hover{--euiFormControlStateColor:", formVariables.borderInvalidHovered, ";}", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
57
55
  forced: "\n ".concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, formVariables.borderInvalid), "\n ")
58
56
  }), ";;label:invalid;"),
@@ -64,12 +62,12 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
64
62
  // The input is an invisible dropzone / button
65
63
  input: {
66
64
  euiFilePicker__input: _ref3,
67
- largeInteractive: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{text-decoration:", isRefreshVariant ? '' : 'underline', ";", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
65
+ largeInteractive: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
68
66
  forced: "\n text-decoration: underline;\n "
69
- }), ";}.euiFilePicker__icon{transform:scale(", isRefreshVariant ? 1.05 : 1.1, ");}}};label:largeInteractive;")
67
+ }), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
70
68
  },
71
- euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.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 );", _global_styling.euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
72
- disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, ";label:disabled;"),
69
+ euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.euiTextTruncate)(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", euiTheme.colors.borderBaseProminent, ");", _global_styling.euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
70
+ disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, "--euiFormControlStateColor:transparent;;label:disabled;"),
73
71
  // Skip the css() on the default height to avoid generating a className
74
72
  uncompressed: formStyles.uncompressed,
75
73
  compressed: /*#__PURE__*/(0, _react.css)(formStyles.compressed, ";label:compressed;"),
@@ -32,7 +32,6 @@ var euiFormPlaceholderStyles = exports.euiFormPlaceholderStyles = function euiFo
32
32
  var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiThemeContext) {
33
33
  var euiTheme = euiThemeContext.euiTheme,
34
34
  highContrastMode = euiThemeContext.highContrastMode;
35
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
36
35
  var backgroundColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.forms.background;
37
36
  var controlHeight = euiTheme.size.xxl;
38
37
  var controlCompressedHeight = euiTheme.size.xl;
@@ -42,12 +41,12 @@ var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiT
42
41
  controlCompressedHeight: controlCompressedHeight,
43
42
  controlPadding: euiTheme.size.m,
44
43
  controlCompressedPadding: euiTheme.size.s,
45
- controlBorderRadius: isRefreshVariant ? euiTheme.border.radius.small : euiTheme.border.radius.medium,
44
+ controlBorderRadius: euiTheme.border.radius.small,
46
45
  controlCompressedBorderRadius: euiTheme.border.radius.small,
47
46
  iconAffordance: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
48
47
  return x * 1.5;
49
48
  }),
50
- iconCompressedAffordance: (0, _global_styling.mathWithUnits)(isRefreshVariant ? euiTheme.size.base : euiTheme.size.m, function (x) {
49
+ iconCompressedAffordance: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
51
50
  return x * 1.5;
52
51
  }),
53
52
  stateUnderlineHeight: highContrastMode ? (0, _global_styling.mathWithUnits)(euiTheme.border.width.thick, function (x) {
@@ -67,7 +66,7 @@ var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiT
67
66
  borderInvalidHovered: euiTheme.components.forms.borderInvalidHovered,
68
67
  controlDisabledColor: euiTheme.components.forms.controlBackgroundDisabled,
69
68
  controlBoxShadow: '0 0 transparent',
70
- controlPlaceholderText: isRefreshVariant ? highContrastMode ? (0, _services.makeHighContrastColor)(euiTheme.components.forms.colorDisabled)(backgroundColor) : euiTheme.components.forms.colorDisabled : (0, _services.makeHighContrastColor)(euiTheme.colors.textSubdued)(backgroundColor),
69
+ controlPlaceholderText: highContrastMode ? (0, _services.makeHighContrastColor)(euiTheme.components.forms.colorDisabled)(backgroundColor) : euiTheme.components.forms.colorDisabled,
71
70
  appendPrependBackground: euiTheme.components.forms.prependBackground
72
71
  };
73
72
  var controlLayout = {
@@ -94,7 +93,6 @@ var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiT
94
93
  };
95
94
  var formControlLayoutWrapperSelector = '.euiFormControlLayout__childrenWrapper';
96
95
  var euiFormControlStyles = exports.euiFormControlStyles = function euiFormControlStyles(euiThemeContext) {
97
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
98
96
  var form = euiFormVariables(euiThemeContext);
99
97
  return {
100
98
  shared: "\n ".concat(euiFormControlText(euiThemeContext), "\n ").concat(euiFormControlDefaultShadow(euiThemeContext), "\n "),
@@ -105,7 +103,7 @@ var euiFormControlStyles = exports.euiFormControlStyles = function euiFormContro
105
103
  inGroup: "\n ".concat((0, _global_styling.logicalCSS)('height', '100%'), "\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
106
104
  none: 'box-shadow: none;',
107
105
  preferred: 'border: none;'
108
- }), "\n border-radius: ").concat(isRefreshVariant ? 'inherit' : '0', ";\n "),
106
+ }), "\n border-radius: inherit;\n "),
109
107
  // Widths
110
108
  formWidth: "\n ".concat((0, _global_styling.logicalCSS)('max-width', form.maxWidth), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n "),
111
109
  fullWidth: "\n ".concat((0, _global_styling.logicalCSS)('max-width', '100%'), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n "),
@@ -131,29 +129,21 @@ var euiFormControlDefaultShadow = exports.euiFormControlDefaultShadow = function
131
129
  _ref2$withBackground = _ref2.withBackground,
132
130
  withBackground = _ref2$withBackground === void 0 ? true : _ref2$withBackground,
133
131
  _ref2$withBackgroundC = _ref2.withBackgroundColor,
134
- withBackgroundColor = _ref2$withBackgroundC === void 0 ? withBackground : _ref2$withBackgroundC,
135
- _ref2$withBackgroundA = _ref2.withBackgroundAnimation,
136
- withBackgroundAnimation = _ref2$withBackgroundA === void 0 ? withBackground : _ref2$withBackgroundA;
132
+ withBackgroundColor = _ref2$withBackgroundC === void 0 ? withBackground : _ref2$withBackgroundC;
137
133
  var euiTheme = euiThemeContext.euiTheme;
138
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
139
134
  var form = euiFormVariables(euiThemeContext);
140
135
  var border = (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
141
136
  // We use inset box-shadow instead of border to skip extra height calculations
142
- none: isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n border: none;\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " var(--euiFormControlStateColor);\n\n ").concat(euiFormControlHoverStyles(euiThemeContext), "\n ") : "\n border: none;\n box-shadow: inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(form.borderColor, ";\n "),
137
+ none: "\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n border: none;\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " var(--euiFormControlStateColor);\n\n ").concat(euiFormControlHoverStyles(euiThemeContext), "\n "),
143
138
  // In high contrast mode, this doesn't matter - we need to prioritize visibility
144
139
  preferred: "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.border.color, ";\n\n ").concat(euiFormControlHoverStyles(euiThemeContext), "\n ")
145
140
  });
146
141
  var backgroundColor = "\n background-color: ".concat(form.backgroundColor, ";\n ").trim();
147
142
  var backgroundGradient = (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
148
- none: !isRefreshVariant ? "\n background-repeat: no-repeat;\n background-size: 0% 100%;\n background-image: linear-gradient(to top,\n var(--euiFormControlStateColor),\n var(--euiFormControlStateColor) ".concat(isRefreshVariant ? (0, _global_styling.mathWithUnits)([euiTheme.border.width.thick, euiTheme.border.width.thin], function (x, y) {
149
- return x + y;
150
- } // account for pseudo element border
151
- ) : form.stateUnderlineHeight, ",\n transparent ").concat(form.stateUnderlineHeight, ",\n transparent 100%\n );\n ") : '',
152
143
  // Windows high contrast mode overrides/hides background gradients - we'll need another approach
153
144
  forced: "\n background-repeat: no-repeat;\n background-size: 0% ".concat(form.stateUnderlineHeight, ";\n background-position: bottom left;\n background-origin: border-box;\n ")
154
145
  });
155
- var backgroundAnimation = !isRefreshVariant ? "\n ".concat(_global_styling.euiCanAnimate, " {\n transition:\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ").trim() : '';
156
- return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ").concat(withBackgroundAnimation ? backgroundAnimation : '', "\n ");
146
+ return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ");
157
147
  };
158
148
  var hoverSelector = '&:hover:not(:disabled, :focus, input[readonly], [class*="readOnly"])';
159
149
  var disableFormControlHoverStyles = exports.disableFormControlHoverStyles = function disableFormControlHoverStyles() {
@@ -168,43 +158,33 @@ var euiFormControlHoverStyles = exports.euiFormControlHoverStyles = function eui
168
158
  var euiFormControlHighlightBorderStyles = exports.euiFormControlHighlightBorderStyles = "\n position: relative;\n z-index: 1;\n box-shadow: none;\n outline: var(--euiFormControlStateWidth) solid var(--euiFormControlStateColor);\n outline-offset: calc(-1 * var(--euiFormControlStateWidth));\n";
169
159
  var euiFormControlFocusStyles = exports.euiFormControlFocusStyles = function euiFormControlFocusStyles(euiThemeContext) {
170
160
  var euiTheme = euiThemeContext.euiTheme;
171
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
172
161
  var form = euiFormVariables(euiThemeContext);
173
162
  var focusColor = euiTheme.colors.primary;
174
- return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderFocused, ";\n --euiFormControlStateHoverColor: ").concat(form.borderFocused, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thick, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
163
+ return "\n --euiFormControlStateColor: ".concat(form.borderFocused, ";\n --euiFormControlStateHoverColor: ").concat(form.borderFocused, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thick, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
175
164
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, focusColor), "\n ")
176
- }), "\n ") : "\n --euiFormControlStateColor: ".concat(focusColor, ";\n background-color: ").concat(euiTheme.components.forms.backgroundFocused, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, focusColor), "\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n ");
165
+ }), "\n ");
177
166
  };
178
167
  var euiFormControlInvalidStyles = exports.euiFormControlInvalidStyles = function euiFormControlInvalidStyles(euiThemeContext) {
179
168
  var euiTheme = euiThemeContext.euiTheme,
180
169
  highContrastMode = euiThemeContext.highContrastMode;
181
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
182
170
  var form = euiFormVariables(euiThemeContext);
183
171
  var invalidColor = euiTheme.colors.danger;
184
- return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ") : "\n --euiFormControlStateColor: ".concat(invalidColor, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ");
172
+ return "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ");
185
173
  };
186
174
  var euiFormControlDisabledStyles = exports.euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
187
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
188
175
  var form = euiFormVariables(euiThemeContext);
189
- var refreshVariantStyles = "\n --euiFormControlStateHoverColor: transparent;\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n ");
190
- return "\n color: ".concat(form.textColorDisabled, ";\n /* Required for Safari */\n -webkit-text-fill-color: ").concat(form.textColorDisabled, ";\n background-color: ").concat(form.backgroundDisabledColor, ";\n cursor: not-allowed;\n --euiFormControlStateColor: transparent;\n\n ").concat(isRefreshVariant && refreshVariantStyles, "\n\n ").concat(euiPlaceholderPerBrowser(euiFormPlaceholderStyles(euiThemeContext)), "\n ");
176
+ return "\n --euiFormControlStateColor: transparent;\n --euiFormControlStateHoverColor: transparent;\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n\n color: ").concat(form.textColorDisabled, ";\n /* Required for Safari */\n -webkit-text-fill-color: ").concat(form.textColorDisabled, ";\n background-color: ").concat(form.backgroundDisabledColor, ";\n cursor: not-allowed;\n \n ").concat(euiPlaceholderPerBrowser(euiFormPlaceholderStyles(euiThemeContext)), "\n ");
191
177
  };
192
178
  var euiFormControlReadOnlyStyles = exports.euiFormControlReadOnlyStyles = function euiFormControlReadOnlyStyles(euiThemeContext) {
193
179
  var euiTheme = euiThemeContext.euiTheme;
194
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
195
180
  var form = euiFormVariables(euiThemeContext);
196
- var styles = isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(form.borderColor, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n /* keep the input below wrapper borders */\n position: relative;\n z-index: 0;\n outline: none;\n box-shadow: inset 0 0 0 var(--euiFormControlStateWidth) var(--euiFormControlStateColor);\n\n ").concat(formControlLayoutWrapperSelector, "[class*=inGroup] & {\n box-shadow: none;\n }\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
181
+ return "\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(form.borderColor, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n\n /* keep the input below wrapper borders */\n position: relative;\n z-index: 0;\n background-color: ").concat(form.backgroundReadOnlyColor, ";\n cursor: default;\n color: ").concat(form.textColor, ";\n -webkit-text-fill-color: ").concat(form.textColor, "; /* Required for Safari */\n outline: none;\n box-shadow: inset 0 0 0 var(--euiFormControlStateWidth) var(--euiFormControlStateColor);\n\n ").concat(formControlLayoutWrapperSelector, "[class*=inGroup] & {\n box-shadow: none;\n }\n\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
197
182
  preferred: 'box-shadow: none;'
198
- }), "\n ") : "\n --euiFormControlStateColor: transparent;\n ".concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
199
- forced: 'background-image: none;'
200
- }), "\n ");
201
- return "\n background-color: ".concat(form.backgroundReadOnlyColor, ";\n cursor: default;\n color: ").concat(form.textColor, ";\n -webkit-text-fill-color: ").concat(form.textColor, "; /* Required for Safari */\n\n ").concat(styles, "\n ");
183
+ }), "\n ");
202
184
  };
203
185
  var euiFormControlAutoFillStyles = exports.euiFormControlAutoFillStyles = function euiFormControlAutoFillStyles(euiThemeContext) {
204
186
  var euiTheme = euiThemeContext.euiTheme;
205
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
206
187
  var form = euiFormVariables(euiThemeContext);
207
-
208
188
  // Make the text color slightly less prominent than the default colors.text
209
189
  var textColor = euiTheme.colors.darkestShade;
210
190
  var tintedBackgroundColor = euiTheme.components.forms.backgroundAutofilled;
@@ -221,15 +201,13 @@ var euiFormControlAutoFillStyles = exports.euiFormControlAutoFillStyles = functi
221
201
  var borderShadow = function borderShadow(color) {
222
202
  return "inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(color);
223
203
  };
224
- var interactiveStyles = isRefreshVariant ? "\n &:hover,\n &:focus {\n -webkit-box-shadow: ".concat(borderShadow(borderHovered), ", ").concat(backgroundShadow, ";\n }\n\n &:invalid {\n -webkit-box-shadow: ").concat(borderShadow(borderInvalid), ", ").concat(backgroundShadow, ";\n\n &:hover {\n -webkit-box-shadow: ").concat(borderShadow(borderInvalidHovered), ", ").concat(backgroundShadow, ";\n }\n }\n ") : "\n &:invalid {\n -webkit-box-shadow: ".concat(borderShadow(borderInvalid), ", ").concat(backgroundShadow, ";\n }\n ");
225
204
 
226
205
  // These styles only apply/override Chrome/webkit browsers - Firefox does not set autofill styles
227
- return "\n &:-webkit-autofill {\n -webkit-text-fill-color: ".concat(textColor, ";\n -webkit-box-shadow: ").concat(borderShadow(borderColor), ", ").concat(backgroundShadow, ";\n\n ").concat(interactiveStyles, "\n }\n ");
206
+ return "\n &:-webkit-autofill {\n -webkit-text-fill-color: ".concat(textColor, ";\n -webkit-box-shadow: ").concat(borderShadow(borderColor), ", ").concat(backgroundShadow, ";\n\n &:hover,\n &:focus {\n -webkit-box-shadow: ").concat(borderShadow(borderHovered), ", ").concat(backgroundShadow, ";\n }\n\n &:invalid {\n -webkit-box-shadow: ").concat(borderShadow(borderInvalid), ", ").concat(backgroundShadow, ";\n\n &:hover {\n -webkit-box-shadow: ").concat(borderShadow(borderInvalidHovered), ", ").concat(backgroundShadow, ";\n }\n }\n }\n ");
228
207
  };
229
208
  var euiFormControlShowBackgroundLine = exports.euiFormControlShowBackgroundLine = function euiFormControlShowBackgroundLine(euiThemeContext, color) {
230
209
  var euiTheme = euiThemeContext.euiTheme,
231
210
  highContrastMode = euiThemeContext.highContrastMode;
232
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
233
211
  if (highContrastMode !== 'forced') {
234
212
  return 'background-size: 100% 100%;';
235
213
  }
@@ -241,13 +219,12 @@ var euiFormControlShowBackgroundLine = exports.euiFormControlShowBackgroundLine
241
219
  // using a static inline SVG workaround
242
220
  var fill = encodeURIComponent(color);
243
221
  var strokeWidth = stateUnderlineHeight !== null && stateUnderlineHeight !== void 0 ? stateUnderlineHeight : '4px';
244
- var inlineSVG = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='".concat(fill, "' /%3E%3C/svg%3E");
245
222
  var refreshInlineSVG = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' style='fill:transparent;stroke-width:".concat(strokeWidth, ";stroke:").concat(fill, "' /%3E%3C/svg%3E");
246
- return isRefreshVariant ? "\n background-size: calc(100% - ".concat((0, _global_styling.mathWithUnits)(strokeWidth, function (x) {
223
+ return "\n background-size: calc(100% - ".concat((0, _global_styling.mathWithUnits)(strokeWidth, function (x) {
247
224
  return x / 2;
248
225
  }), ") calc(100% - ").concat((0, _global_styling.mathWithUnits)(strokeWidth, function (x) {
249
226
  return x / 2;
250
- }), ");\n background-position: ").concat(euiTheme.border.width.thin, ";\n background-image: url(\"").concat(refreshInlineSVG, "\");\n ") : "\n background-size: 100% ".concat(stateUnderlineHeight, ";\n background-image: url(\"").concat(inlineSVG, "\");\n ");
227
+ }), ");\n background-position: ").concat(euiTheme.border.width.thin, ";\n background-image: url(\"").concat(refreshInlineSVG, "\");\n ");
251
228
  };
252
229
  var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
253
230
  return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiFormControlLayoutStyles = exports.euiFormControlLayoutSideNodeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _high_contrast = require("../../../global_styling/functions/high_contrast");
11
10
  var _form = require("../form.styles");
@@ -34,12 +33,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
34
33
  };
35
34
  var euiFormControlLayoutStyles = exports.euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiThemeContext) {
36
35
  var euiTheme = euiThemeContext.euiTheme;
37
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
38
36
  var form = (0, _form.euiFormVariables)(euiThemeContext);
39
- var groupStyles = "\n /* use pseudo element for borders to prevent dimension changes and support nested elements better */\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 0;\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n border-radius: inherit;\n pointer-events: none;\n }\n\n /* the filter group will use the form layout border instead */\n .euiFilterGroup {\n border-radius: 0;\n /* creating extra space to prevent the focus indicator being cut off */\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.border.width.thin), "\n\n &::after {\n display: none;\n }\n }\n\n .euiFilterButton__wrapper:first-of-type::before,\n .euiFilterButton__wrapper::after {\n display: none;\n }\n ");
40
- var wrapperGroupStyles = "\n > :first-child {\n border-radius: inherit;\n ".concat((0, _global_styling.logicalCSS)('border-top-left-radius', '0'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', '0'), "\n }\n\n > :last-child {\n border-radius: inherit;\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', '0'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', '0'), "\n }\n ");
41
- var prependOnlyStyles = "\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 ");
42
- var appendOnlyStyles = "\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 ");
43
37
  return {
44
38
  euiFormControlLayout: _ref2,
45
39
  // Skip the css`` on the default height to avoid generating a className
@@ -49,41 +43,34 @@ var euiFormControlLayoutStyles = exports.euiFormControlLayoutStyles = function e
49
43
  formWidth: "\n ".concat((0, _global_styling.logicalCSS)('max-width', form.maxWidth), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n "),
50
44
  fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
51
45
  group: {
52
- group: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;align-items:stretch;border:", isRefreshVariant ? 'none' : "".concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor), ";background-color:", form.backgroundColor, ";overflow:hidden;", isRefreshVariant && groupStyles, " .euiFormControlButton{border-radius:inherit;box-shadow:none;}>*{", (0, _global_styling.logicalCSS)('height', '100%'), ";};label:group;"),
46
+ group: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;align-items:stretch;border:none;background-color:", form.backgroundColor, ";overflow:hidden;&::after{content:'';position:absolute;inset:0;z-index:0;border:", euiTheme.border.width.thin, " solid ", form.borderColor, ";border-radius:inherit;pointer-events:none;}.euiFilterGroup{border-radius:0;", (0, _global_styling.logicalCSS)('padding-right', euiTheme.border.width.thin), " &::after{display:none;}}.euiFilterButton__wrapper:first-of-type::before,.euiFilterButton__wrapper::after{display:none;}.euiFormControlButton{border-radius:inherit;box-shadow:none;}>*{", (0, _global_styling.logicalCSS)('height', '100%'), ";};label:group;"),
53
47
  // Skipping css`` to avoid repeated compressed/uncompressed classNames
54
48
  uncompressed: "\n border-radius: ".concat(form.controlBorderRadius, ";\n "),
55
49
  compressed: "\n border-radius: ".concat(form.controlCompressedBorderRadius, ";\n ")
56
50
  },
57
51
  children: {
58
52
  euiFormControlLayout__childrenWrapper: _ref,
59
- inGroup: /*#__PURE__*/(0, _react.css)("flex-grow:1;overflow:hidden;", isRefreshVariant && wrapperGroupStyles, ";;label:inGroup;"),
60
- prependOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), " ", isRefreshVariant && prependOnlyStyles, ";;label:prependOnly;"),
61
- appendOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), " ", isRefreshVariant && appendOnlyStyles, ";;label:appendOnly;")
53
+ inGroup: /*#__PURE__*/(0, _react.css)("flex-grow:1;overflow:hidden;>:first-child{border-radius:inherit;", (0, _global_styling.logicalCSS)('border-top-left-radius', '0'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', '0'), ";}>:last-child{border-radius:inherit;", (0, _global_styling.logicalCSS)('border-top-right-radius', '0'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', '0'), ";};label:inGroup;"),
54
+ prependOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ">:last-child{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";};label:prependOnly;"),
55
+ appendOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ">:first-child{", (0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ";};label:appendOnly;")
62
56
  }
63
57
  };
64
58
  };
65
59
  var euiFormControlLayoutSideNodeStyles = exports.euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSideNodeStyles(euiThemeContext) {
66
60
  var euiTheme = euiThemeContext.euiTheme;
67
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
68
61
  var form = (0, _form.euiFormVariables)(euiThemeContext);
69
- var uncompressedHeight = (0, _global_styling.mathWithUnits)([form.controlHeight, euiTheme.border.width.thin], function (x, y) {
70
- return isRefreshVariant ? x : x - y * 2;
71
- });
72
- var compressedHeight = (0, _global_styling.mathWithUnits)([form.controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
73
- return isRefreshVariant ? x : x - y * 2;
74
- });
62
+ var uncompressedHeight = form.controlHeight;
63
+ var compressedHeight = form.controlCompressedHeight;
75
64
  var buttons = '*:is(.euiButton, .euiButtonEmpty, .euiButtonIcon)';
76
65
  var text = '*:is(.euiFormLabel, .euiText)';
77
- var appendStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
78
- var prependStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
79
66
  return {
80
67
  euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
81
68
  append: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
82
- none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
69
+ none: "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n "),
83
70
  preferred: (0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin)
84
71
  }), ";label:append;"),
85
72
  prepend: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
86
- none: "\n ".concat(isRefreshVariant && prependStyles, "\n "),
73
+ none: "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n "),
87
74
  preferred: (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin)
88
75
  }), ";label:prepend;"),
89
76
  uncompressed: "\n ".concat(text, " {\n ").concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), "\n line-height: ").concat(uncompressedHeight, ";\n }\n\n ").concat(buttons, " {\n ").concat((0, _global_styling.logicalCSS)('height', uncompressedHeight), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat((0, _global_styling.logicalCSS)('width', euiTheme.size.xl), "\n }\n "),
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.EuiFormControlLayoutClearButtonStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
- var _services = require("../../../services");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
11
  * or more contributor license agreements. Licensed under the Elastic License
@@ -18,10 +17,9 @@ var _services = require("../../../services");
18
17
  var EuiFormControlLayoutClearButtonStyles = exports.EuiFormControlLayoutClearButtonStyles = function EuiFormControlLayoutClearButtonStyles(euiThemeContext) {
19
18
  var euiTheme = euiThemeContext.euiTheme,
20
19
  highContrastMode = euiThemeContext.highContrastMode;
21
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
22
20
  var backgroundColor = highContrastMode ? euiTheme.colors.darkShade : euiTheme.components.forms.clearButtonBackground;
23
21
  return {
24
- euiFormControlLayoutClearButton: /*#__PURE__*/(0, _react.css)("pointer-events:all;display:flex;justify-content:center;align-items:center;border-radius:50%;border-style:solid;border-color:", backgroundColor, ";&:disabled{cursor:not-allowed;background-color:", isRefreshVariant ? euiTheme.colors.backgroundBaseDisabled : euiTheme.colors.disabled, ";};label:euiFormControlLayoutClearButton;"),
22
+ euiFormControlLayoutClearButton: /*#__PURE__*/(0, _react.css)("pointer-events:all;display:flex;justify-content:center;align-items:center;border-radius:50%;border-style:solid;border-color:", backgroundColor, ";&:disabled{cursor:not-allowed;background-color:", euiTheme.colors.backgroundBaseDisabled, ";};label:euiFormControlLayoutClearButton;"),
25
23
  size: {
26
24
  s: "\n ".concat((0, _global_styling.logicalSizeCSS)(euiTheme.size.m), "\n border-width: ").concat((0, _global_styling.mathWithUnits)(euiTheme.size.m, function (x) {
27
25
  return x / 2;
@@ -36,8 +36,6 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
36
36
  className = _ref.className,
37
37
  _fullWidth = _ref.fullWidth,
38
38
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
- var euiThemeContext = (0, _services.useEuiTheme)();
40
- var isRefreshVariant = (0, _services.useEuiThemeRefreshVariant)('formVariant');
41
39
  var _useFormContext = (0, _eui_form_context.useFormContext)(),
42
40
  defaultFullWidth = _useFormContext.defaultFullWidth;
43
41
  var fullWidth = _fullWidth !== null && _fullWidth !== void 0 ? _fullWidth : defaultFullWidth;
@@ -50,7 +48,7 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
50
48
  });
51
49
  var styles = (0, _services.useEuiMemoizedStyles)(_form_control_layout_delimited.euiFormControlLayoutDelimitedStyles);
52
50
  var cssStyles = [styles.delimited, rest.isDisabled && styles.disabled, rest.readOnly && styles.readOnly];
53
- var wrapperStyles = [styles.childrenWrapper.delimited, showInvalidState && styles.childrenWrapper.invalid, (_rest$wrapperProps = rest.wrapperProps) === null || _rest$wrapperProps === void 0 ? void 0 : _rest$wrapperProps.css, isRefreshVariant && rest.readOnly && styles.childrenWrapper.readOnly];
51
+ var wrapperStyles = [styles.childrenWrapper.delimited, showInvalidState && styles.childrenWrapper.invalid, (_rest$wrapperProps = rest.wrapperProps) === null || _rest$wrapperProps === void 0 ? void 0 : _rest$wrapperProps.css, rest.readOnly && styles.childrenWrapper.readOnly];
54
52
  return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, (0, _extends2.default)({
55
53
  isDelimited: true,
56
54
  css: cssStyles,
@@ -65,14 +63,14 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
65
63
  value: {
66
64
  defaultFullWidth: fullWidth
67
65
  }
68
- }, startControl && addClassesToControl(euiThemeContext, startControl), (0, _react2.jsx)(EuiFormControlDelimiter, {
66
+ }, startControl && addClassesToControl(startControl), (0, _react2.jsx)(EuiFormControlDelimiter, {
69
67
  delimiter: delimiter,
70
68
  isInvalid: showInvalidState
71
- }), endControl && addClassesToControl(euiThemeContext, endControl)));
69
+ }), endControl && addClassesToControl(endControl)));
72
70
  };
73
- var addClassesToControl = function addClassesToControl(euiThemeContext, control) {
71
+ var addClassesToControl = function addClassesToControl(control) {
74
72
  return (0, _services.cloneElementWithCss)(control, {
75
- css: (0, _form_control_layout_delimited.euiFormControlLayoutDelimited__input)(euiThemeContext),
73
+ css: _form_control_layout_delimited.euiFormControlLayoutDelimited__input,
76
74
  className: (0, _classnames.default)(control.props.className, 'euiFormControlLayoutDelimited__input')
77
75
  }, 'before');
78
76
  };