@elastic/eui 107.0.1 → 108.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  2. package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  3. package/es/components/button/button_display/_button_display.styles.js +1 -4
  4. package/es/components/button/button_display/_button_display_content.styles.js +1 -4
  5. package/es/components/button/button_empty/button_empty.styles.js +4 -7
  6. package/es/components/button/button_group/button_group.styles.js +2 -12
  7. package/es/components/button/button_group/button_group_button.js +2 -4
  8. package/es/components/button/button_group/button_group_button.styles.js +22 -36
  9. package/es/components/button/button_icon/button_icon.js +3 -6
  10. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  11. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  12. package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  13. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  14. package/es/components/datagrid/controls/column_selector.styles.js +1 -1
  15. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  16. package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  17. package/es/components/datagrid/data_grid.styles.js +0 -1
  18. package/es/components/date_picker/date_picker.styles.js +1 -4
  19. package/es/components/date_picker/date_picker_range.styles.js +4 -8
  20. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  21. package/es/components/filter_group/filter_button.js +7 -10
  22. package/es/components/filter_group/filter_button.styles.js +28 -39
  23. package/es/components/filter_group/filter_group.styles.js +8 -29
  24. package/es/components/form/field_number/field_number.styles.js +1 -4
  25. package/es/components/form/field_text/field_text.styles.js +1 -4
  26. package/es/components/form/file_picker/file_picker.js +102 -107
  27. package/es/components/form/file_picker/file_picker.styles.js +5 -7
  28. package/es/components/form/form.styles.js +17 -40
  29. package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  30. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  31. package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  32. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  33. package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  34. package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  35. package/es/components/form/form_label/form_label.js +1 -1
  36. package/es/components/form/form_label/form_label.styles.js +1 -5
  37. package/es/components/form/range/range_input.styles.js +1 -3
  38. package/es/components/header/header.styles.js +4 -19
  39. package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  40. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  41. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  42. package/es/components/modal/modal.js +23 -5
  43. package/es/components/panel/panel.styles.js +4 -12
  44. package/es/components/resizable_container/resizable_collapse_button.js +2 -3
  45. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  46. package/es/components/toast/toast.styles.js +1 -3
  47. package/es/components/token/token.js +1 -3
  48. package/es/components/token/token.styles.js +2 -3
  49. package/es/components/token/token_map.js +1 -231
  50. package/es/global_styling/mixins/_button.js +14 -24
  51. package/es/index.js +0 -1
  52. package/es/services/color/eui_palettes.js +7 -21
  53. package/es/services/color/eui_palettes_hooks.js +6 -10
  54. package/es/services/color/vis_color_store.js +2 -2
  55. package/es/services/theme/provider.js +4 -9
  56. package/eui.d.ts +19 -2102
  57. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  58. package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  59. package/lib/components/button/button_display/_button_display.styles.js +1 -4
  60. package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  61. package/lib/components/button/button_empty/button_empty.styles.js +4 -7
  62. package/lib/components/button/button_group/button_group.styles.js +2 -12
  63. package/lib/components/button/button_group/button_group_button.js +1 -3
  64. package/lib/components/button/button_group/button_group_button.styles.js +21 -35
  65. package/lib/components/button/button_icon/button_icon.js +1 -4
  66. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  67. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  68. package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  69. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  70. package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  71. package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  72. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  73. package/lib/components/datagrid/data_grid.styles.js +0 -1
  74. package/lib/components/date_picker/date_picker.styles.js +1 -4
  75. package/lib/components/date_picker/date_picker_range.styles.js +4 -8
  76. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  77. package/lib/components/filter_group/filter_button.js +6 -9
  78. package/lib/components/filter_group/filter_button.styles.js +27 -38
  79. package/lib/components/filter_group/filter_group.styles.js +8 -29
  80. package/lib/components/form/field_number/field_number.styles.js +1 -4
  81. package/lib/components/form/field_text/field_text.styles.js +1 -4
  82. package/lib/components/form/file_picker/file_picker.js +101 -106
  83. package/lib/components/form/file_picker/file_picker.styles.js +5 -7
  84. package/lib/components/form/form.styles.js +16 -39
  85. package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  86. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  87. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  88. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  89. package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  90. package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  91. package/lib/components/form/form_label/form_label.js +1 -1
  92. package/lib/components/form/form_label/form_label.styles.js +1 -5
  93. package/lib/components/form/range/range_input.styles.js +1 -3
  94. package/lib/components/header/header.styles.js +2 -18
  95. package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  96. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  97. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  98. package/lib/components/modal/modal.js +25 -5
  99. package/lib/components/panel/panel.styles.js +4 -12
  100. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  101. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  102. package/lib/components/toast/toast.styles.js +1 -3
  103. package/lib/components/token/token.js +1 -3
  104. package/lib/components/token/token.styles.js +1 -2
  105. package/lib/components/token/token_map.js +2 -232
  106. package/lib/global_styling/mixins/_button.js +11 -21
  107. package/lib/index.js +0 -11
  108. package/lib/services/color/eui_palettes.js +7 -21
  109. package/lib/services/color/eui_palettes_hooks.js +6 -10
  110. package/lib/services/color/vis_color_store.js +2 -2
  111. package/lib/services/theme/provider.js +4 -9
  112. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  113. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  114. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
  115. package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
  116. package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
  117. package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
  118. package/optimize/es/components/button/button_group/button_group_button.js +2 -4
  119. package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
  120. package/optimize/es/components/button/button_icon/button_icon.js +3 -6
  121. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  122. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  123. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  124. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  125. package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
  126. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  127. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  128. package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
  129. package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
  130. package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
  131. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  132. package/optimize/es/components/filter_group/filter_button.js +7 -10
  133. package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
  134. package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
  135. package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
  136. package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
  137. package/optimize/es/components/form/file_picker/file_picker.js +102 -107
  138. package/optimize/es/components/form/file_picker/file_picker.styles.js +5 -7
  139. package/optimize/es/components/form/form.styles.js +17 -40
  140. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  141. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  142. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  143. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  144. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  145. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  146. package/optimize/es/components/form/form_label/form_label.js +1 -1
  147. package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
  148. package/optimize/es/components/form/range/range_input.styles.js +1 -3
  149. package/optimize/es/components/header/header.styles.js +4 -19
  150. package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  151. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  152. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  153. package/optimize/es/components/modal/modal.js +17 -4
  154. package/optimize/es/components/panel/panel.styles.js +4 -12
  155. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
  156. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  157. package/optimize/es/components/toast/toast.styles.js +1 -3
  158. package/optimize/es/components/token/token.js +1 -3
  159. package/optimize/es/components/token/token.styles.js +2 -3
  160. package/optimize/es/components/token/token_map.js +1 -231
  161. package/optimize/es/global_styling/mixins/_button.js +14 -24
  162. package/optimize/es/index.js +0 -1
  163. package/optimize/es/services/color/eui_palettes.js +7 -21
  164. package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
  165. package/optimize/es/services/color/vis_color_store.js +2 -2
  166. package/optimize/es/services/theme/provider.js +4 -9
  167. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  168. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  169. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
  170. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  171. package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
  172. package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
  173. package/optimize/lib/components/button/button_group/button_group_button.js +1 -3
  174. package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
  175. package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
  176. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  177. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  178. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  179. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  180. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  181. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  182. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  183. package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
  184. package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
  185. package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
  186. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  187. package/optimize/lib/components/filter_group/filter_button.js +6 -9
  188. package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
  189. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
  190. package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
  191. package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
  192. package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
  193. package/optimize/lib/components/form/file_picker/file_picker.styles.js +5 -7
  194. package/optimize/lib/components/form/form.styles.js +16 -39
  195. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  196. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  197. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  198. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  199. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  200. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  201. package/optimize/lib/components/form/form_label/form_label.js +1 -1
  202. package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
  203. package/optimize/lib/components/form/range/range_input.styles.js +1 -3
  204. package/optimize/lib/components/header/header.styles.js +2 -18
  205. package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  206. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  207. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  208. package/optimize/lib/components/modal/modal.js +20 -4
  209. package/optimize/lib/components/panel/panel.styles.js +4 -12
  210. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  211. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  212. package/optimize/lib/components/toast/toast.styles.js +1 -3
  213. package/optimize/lib/components/token/token.js +1 -3
  214. package/optimize/lib/components/token/token.styles.js +1 -2
  215. package/optimize/lib/components/token/token_map.js +2 -232
  216. package/optimize/lib/global_styling/mixins/_button.js +11 -21
  217. package/optimize/lib/index.js +0 -11
  218. package/optimize/lib/services/color/eui_palettes.js +7 -21
  219. package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
  220. package/optimize/lib/services/color/vis_color_store.js +2 -2
  221. package/optimize/lib/services/theme/provider.js +4 -9
  222. package/package.json +5 -6
  223. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  224. package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
  225. package/test-env/components/button/button_display/_button_display.styles.js +1 -4
  226. package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
  227. package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
  228. package/test-env/components/button/button_group/button_group.styles.js +2 -12
  229. package/test-env/components/button/button_group/button_group_button.js +1 -3
  230. package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
  231. package/test-env/components/button/button_icon/button_icon.js +1 -4
  232. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  233. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  234. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  235. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  236. package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
  237. package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
  238. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  239. package/test-env/components/datagrid/data_grid.styles.js +0 -1
  240. package/test-env/components/date_picker/date_picker.styles.js +1 -4
  241. package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
  242. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  243. package/test-env/components/filter_group/filter_button.js +6 -9
  244. package/test-env/components/filter_group/filter_button.styles.js +27 -38
  245. package/test-env/components/filter_group/filter_group.styles.js +8 -29
  246. package/test-env/components/form/field_number/field_number.styles.js +1 -4
  247. package/test-env/components/form/field_text/field_text.styles.js +1 -4
  248. package/test-env/components/form/file_picker/file_picker.js +101 -106
  249. package/test-env/components/form/file_picker/file_picker.styles.js +5 -7
  250. package/test-env/components/form/form.styles.js +16 -39
  251. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  252. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  253. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  254. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  255. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  256. package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
  257. package/test-env/components/form/form_label/form_label.js +1 -1
  258. package/test-env/components/form/form_label/form_label.styles.js +1 -5
  259. package/test-env/components/form/range/range_input.styles.js +1 -3
  260. package/test-env/components/header/header.styles.js +2 -18
  261. package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
  262. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  263. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  264. package/test-env/components/modal/modal.js +26 -5
  265. package/test-env/components/panel/panel.styles.js +4 -12
  266. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  267. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  268. package/test-env/components/toast/toast.styles.js +1 -3
  269. package/test-env/components/token/token.js +1 -3
  270. package/test-env/components/token/token.styles.js +1 -2
  271. package/test-env/components/token/token_map.js +2 -232
  272. package/test-env/global_styling/mixins/_button.js +11 -21
  273. package/test-env/index.js +0 -11
  274. package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
  275. package/test-env/services/color/eui_palettes.js +7 -21
  276. package/test-env/services/color/eui_palettes_hooks.js +6 -10
  277. package/test-env/services/color/vis_color_store.js +2 -2
  278. package/test-env/services/theme/provider.js +4 -9
  279. package/dist/eui_theme_amsterdam_dark.json +0 -463
  280. package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
  281. package/dist/eui_theme_amsterdam_light.json +0 -463
  282. package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
  283. package/dist/eui_theme_borealis_dark.json +0 -463
  284. package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
  285. package/dist/eui_theme_borealis_light.json +0 -463
  286. package/dist/eui_theme_borealis_light.json.d.ts +0 -466
  287. package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  288. package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  289. package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  290. package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  291. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  292. package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
  293. package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
  294. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  295. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
  296. package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
  297. package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  298. package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
  299. package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  300. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
  301. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
  302. package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  303. package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
  304. package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  305. package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  306. package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
  307. package/es/themes/amsterdam/index.js +0 -10
  308. package/es/themes/amsterdam/theme.js +0 -41
  309. package/es/themes/index.js +0 -12
  310. package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  311. package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  312. package/es/themes/json/eui_theme_borealis_dark.json +0 -463
  313. package/es/themes/json/eui_theme_borealis_light.json +0 -463
  314. package/es/themes/themes.js +0 -1
  315. package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  316. package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  317. package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  318. package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  319. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  320. package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
  321. package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
  322. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  323. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
  324. package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
  325. package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  326. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
  327. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  328. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
  329. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
  330. package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  331. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
  332. package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  333. package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  334. package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
  335. package/lib/themes/amsterdam/index.js +0 -16
  336. package/lib/themes/amsterdam/theme.js +0 -47
  337. package/lib/themes/index.js +0 -57
  338. package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  339. package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  340. package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  341. package/lib/themes/json/eui_theme_borealis_light.json +0 -463
  342. package/lib/themes/themes.js +0 -5
  343. package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  344. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  345. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  346. package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  347. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  348. package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
  349. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
  350. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  351. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
  352. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
  353. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  354. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
  355. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  356. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
  357. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
  358. package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  359. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
  360. package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  361. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  362. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
  363. package/optimize/es/themes/amsterdam/index.js +0 -10
  364. package/optimize/es/themes/amsterdam/theme.js +0 -41
  365. package/optimize/es/themes/index.js +0 -12
  366. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  367. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  368. package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
  369. package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
  370. package/optimize/es/themes/themes.js +0 -1
  371. package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  372. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  373. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  374. package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  375. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  376. package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  377. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  378. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  379. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  380. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  381. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  382. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  383. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  384. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
  385. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  386. package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  387. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  388. package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  389. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  390. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  391. package/optimize/lib/themes/amsterdam/index.js +0 -16
  392. package/optimize/lib/themes/amsterdam/theme.js +0 -47
  393. package/optimize/lib/themes/index.js +0 -57
  394. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  395. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  396. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  397. package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
  398. package/optimize/lib/themes/themes.js +0 -5
  399. package/package/eui.d.ts +0 -33359
  400. package/src/global_styling/functions/_colors.scss +0 -138
  401. package/src/global_styling/functions/_index.scss +0 -1
  402. package/src/global_styling/functions/_math.scss +0 -1
  403. package/src/global_styling/functions/_math_pow.scss +0 -82
  404. package/src/global_styling/index.scss +0 -3
  405. package/src/global_styling/mixins/_helpers.scss +0 -117
  406. package/src/global_styling/mixins/_index.scss +0 -8
  407. package/src/global_styling/mixins/_responsive.scss +0 -44
  408. package/src/global_styling/mixins/_shadow.scss +0 -100
  409. package/src/global_styling/mixins/_size.scss +0 -4
  410. package/src/global_styling/mixins/_states.scss +0 -17
  411. package/src/global_styling/mixins/_tool_tip.scss +0 -18
  412. package/src/global_styling/mixins/_typography.scss +0 -166
  413. package/src/global_styling/variables/_animations.scss +0 -6
  414. package/src/global_styling/variables/_borders.scss +0 -3
  415. package/src/global_styling/variables/_buttons.scss +0 -1
  416. package/src/global_styling/variables/_font_weight.scss +0 -4
  417. package/src/global_styling/variables/_form.scss +0 -2
  418. package/src/global_styling/variables/_index.scss +0 -22
  419. package/src/global_styling/variables/_responsive.scss +0 -1
  420. package/src/global_styling/variables/_shadows.scss +0 -2
  421. package/src/global_styling/variables/_size.scss +0 -1
  422. package/src/global_styling/variables/_states.scss +0 -1
  423. package/src/global_styling/variables/_typography.scss +0 -1
  424. package/src/global_styling/variables/_z_index.scss +0 -2
  425. package/src/themes/amsterdam/_colors_dark.scss +0 -139
  426. package/src/themes/amsterdam/_colors_light.scss +0 -139
  427. package/src/themes/amsterdam/_globals.scss +0 -11
  428. package/src/themes/amsterdam/global_styling/index.scss +0 -12
  429. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
  430. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
  431. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
  432. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
  433. package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
  434. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  435. package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
  436. package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
  437. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  438. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
  439. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
  440. package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
  441. package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
  442. package/src/themes/amsterdam/theme_dark.scss +0 -5
  443. package/src/themes/amsterdam/theme_light.scss +0 -5
  444. package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
  445. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  446. package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
  447. package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
  448. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  449. package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  450. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  451. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  452. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  453. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  454. package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  455. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  456. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  457. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
  458. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  459. package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  460. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  461. package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
  462. package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
  463. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  464. package/test-env/themes/amsterdam/index.js +0 -16
  465. package/test-env/themes/amsterdam/theme.js +0 -47
  466. package/test-env/themes/index.js +0 -57
  467. package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
  468. package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
  469. package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
  470. package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
  471. package/test-env/themes/themes.js +0 -5
@@ -8,7 +8,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { isEuiThemeRefreshVariant } from '../../../services';
12
11
  import { euiCanAnimate, euiFontSize, euiTextTruncate, highContrastModeStyles, logicalCSS, mathWithUnits } from '../../../global_styling';
13
12
  import { euiFormControlShowBackgroundLine, euiFormControlStyles, euiFormVariables } from '../form.styles';
14
13
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -38,17 +37,16 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
38
37
  export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
39
38
  var euiTheme = euiThemeContext.euiTheme,
40
39
  highContrastMode = euiThemeContext.highContrastMode;
41
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
42
40
  var formStyles = euiFormControlStyles(euiThemeContext);
43
41
  var formVariables = euiFormVariables(euiThemeContext);
44
42
  var _euiFontSize = euiFontSize(euiThemeContext, 's'),
45
43
  fontSize = _euiFontSize.fontSize,
46
44
  lineHeight = _euiFontSize.lineHeight;
47
45
  return {
48
- euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : formVariables.borderHovered, ";--euiFormControlStateStyle:", highContrastMode && isRefreshVariant ? 'solid' : 'dashed', ";}&:focus-within{", highContrastModeStyles(euiThemeContext, {
46
+ euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : formVariables.borderHovered, ";--euiFormControlStateStyle:solid;}&:focus-within{", highContrastModeStyles(euiThemeContext, {
49
47
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, formVariables.borderFocused), "\n ")
50
48
  }), ";};label:euiFilePicker;"),
51
- isDroppingFile: /*#__PURE__*/css("--euiFormControlStateColor:", isRefreshVariant ? euiTheme.colors.borderStrongSuccess : euiTheme.colors.primary, ";", isRefreshVariant && " \n --euiFormControlStateStyle: ".concat(highContrastMode === 'forced' ? 'solid' : 'dashed', ";\n background-color: ").concat(euiTheme.components.forms.backgroundDropping, "\n "), ";;label:isDroppingFile;"),
49
+ isDroppingFile: /*#__PURE__*/css("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
52
50
  invalid: /*#__PURE__*/css("--euiFormControlStateColor:", formVariables.borderInvalid, ";&:hover{--euiFormControlStateColor:", formVariables.borderInvalidHovered, ";}", highContrastModeStyles(euiThemeContext, {
53
51
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, formVariables.borderInvalid), "\n ")
54
52
  }), ";;label:invalid;"),
@@ -60,11 +58,11 @@ export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
60
58
  // The input is an invisible dropzone / button
61
59
  input: {
62
60
  euiFilePicker__input: _ref3,
63
- largeInteractive: /*#__PURE__*/css("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{text-decoration:", isRefreshVariant ? '' : 'underline', ";", highContrastModeStyles(euiThemeContext, {
61
+ largeInteractive: /*#__PURE__*/css("&:hover,&:focus,.euiFilePicker-isDroppingFile &{&+.euiFilePicker__prompt{.euiFilePicker__promptText{", highContrastModeStyles(euiThemeContext, {
64
62
  forced: "\n text-decoration: underline;\n "
65
- }), ";}.euiFilePicker__icon{transform:scale(", isRefreshVariant ? 1.05 : 1.1, ");}}};label:largeInteractive;")
63
+ }), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
66
64
  },
67
- euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", isRefreshVariant ? euiTheme.border.width.thin : euiTheme.border.width.thick, " var(--euiFormControlStateStyle, dashed) var(\n --euiFormControlStateColor,\n ", isRefreshVariant ? formVariables.borderColor : euiTheme.border.color, "\n );", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
65
+ euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", formVariables.borderColor, ");", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
68
66
  disabled: /*#__PURE__*/css(formStyles.disabled, ";label:disabled;"),
69
67
  // Skip the css() on the default height to avoid generating a className
70
68
  uncompressed: formStyles.uncompressed,
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
9
9
  * Side Public License, v 1.
10
10
  */
11
11
 
12
- import { isEuiThemeRefreshVariant, makeHighContrastColor } from '../../services';
12
+ import { makeHighContrastColor } from '../../services';
13
13
  import { logicalCSS, mathWithUnits, euiCanAnimate, euiFontSize } from '../../global_styling';
14
14
  import { highContrastModeStyles } from '../../global_styling/functions/high_contrast';
15
15
 
@@ -28,7 +28,6 @@ export var euiFormPlaceholderStyles = function euiFormPlaceholderStyles(euiTheme
28
28
  export var euiFormVariables = function euiFormVariables(euiThemeContext) {
29
29
  var euiTheme = euiThemeContext.euiTheme,
30
30
  highContrastMode = euiThemeContext.highContrastMode;
31
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
32
31
  var backgroundColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.forms.background;
33
32
  var controlHeight = euiTheme.size.xxl;
34
33
  var controlCompressedHeight = euiTheme.size.xl;
@@ -38,12 +37,12 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
38
37
  controlCompressedHeight: controlCompressedHeight,
39
38
  controlPadding: euiTheme.size.m,
40
39
  controlCompressedPadding: euiTheme.size.s,
41
- controlBorderRadius: isRefreshVariant ? euiTheme.border.radius.small : euiTheme.border.radius.medium,
40
+ controlBorderRadius: euiTheme.border.radius.small,
42
41
  controlCompressedBorderRadius: euiTheme.border.radius.small,
43
42
  iconAffordance: mathWithUnits(euiTheme.size.base, function (x) {
44
43
  return x * 1.5;
45
44
  }),
46
- iconCompressedAffordance: mathWithUnits(isRefreshVariant ? euiTheme.size.base : euiTheme.size.m, function (x) {
45
+ iconCompressedAffordance: mathWithUnits(euiTheme.size.base, function (x) {
47
46
  return x * 1.5;
48
47
  }),
49
48
  stateUnderlineHeight: highContrastMode ? mathWithUnits(euiTheme.border.width.thick, function (x) {
@@ -63,7 +62,7 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
63
62
  borderInvalidHovered: euiTheme.components.forms.borderInvalidHovered,
64
63
  controlDisabledColor: euiTheme.components.forms.controlBackgroundDisabled,
65
64
  controlBoxShadow: '0 0 transparent',
66
- controlPlaceholderText: isRefreshVariant ? highContrastMode ? makeHighContrastColor(euiTheme.components.forms.colorDisabled)(backgroundColor) : euiTheme.components.forms.colorDisabled : makeHighContrastColor(euiTheme.colors.textSubdued)(backgroundColor),
65
+ controlPlaceholderText: highContrastMode ? makeHighContrastColor(euiTheme.components.forms.colorDisabled)(backgroundColor) : euiTheme.components.forms.colorDisabled,
67
66
  appendPrependBackground: euiTheme.components.forms.prependBackground
68
67
  };
69
68
  var controlLayout = {
@@ -90,7 +89,6 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
90
89
  };
91
90
  var formControlLayoutWrapperSelector = '.euiFormControlLayout__childrenWrapper';
92
91
  export var euiFormControlStyles = function euiFormControlStyles(euiThemeContext) {
93
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
94
92
  var form = euiFormVariables(euiThemeContext);
95
93
  return {
96
94
  shared: "\n ".concat(euiFormControlText(euiThemeContext), "\n ").concat(euiFormControlDefaultShadow(euiThemeContext), "\n "),
@@ -101,7 +99,7 @@ export var euiFormControlStyles = function euiFormControlStyles(euiThemeContext)
101
99
  inGroup: "\n ".concat(logicalCSS('height', '100%'), "\n ").concat(highContrastModeStyles(euiThemeContext, {
102
100
  none: 'box-shadow: none;',
103
101
  preferred: 'border: none;'
104
- }), "\n border-radius: ").concat(isRefreshVariant ? 'inherit' : '0', ";\n "),
102
+ }), "\n border-radius: inherit;\n "),
105
103
  // Widths
106
104
  formWidth: "\n ".concat(logicalCSS('max-width', form.maxWidth), "\n ").concat(logicalCSS('width', '100%'), "\n "),
107
105
  fullWidth: "\n ".concat(logicalCSS('max-width', '100%'), "\n ").concat(logicalCSS('width', '100%'), "\n "),
@@ -127,29 +125,21 @@ export var euiFormControlDefaultShadow = function euiFormControlDefaultShadow(eu
127
125
  _ref2$withBackground = _ref2.withBackground,
128
126
  withBackground = _ref2$withBackground === void 0 ? true : _ref2$withBackground,
129
127
  _ref2$withBackgroundC = _ref2.withBackgroundColor,
130
- withBackgroundColor = _ref2$withBackgroundC === void 0 ? withBackground : _ref2$withBackgroundC,
131
- _ref2$withBackgroundA = _ref2.withBackgroundAnimation,
132
- withBackgroundAnimation = _ref2$withBackgroundA === void 0 ? withBackground : _ref2$withBackgroundA;
128
+ withBackgroundColor = _ref2$withBackgroundC === void 0 ? withBackground : _ref2$withBackgroundC;
133
129
  var euiTheme = euiThemeContext.euiTheme;
134
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
135
130
  var form = euiFormVariables(euiThemeContext);
136
131
  var border = highContrastModeStyles(euiThemeContext, {
137
132
  // We use inset box-shadow instead of border to skip extra height calculations
138
- 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 "),
133
+ 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 "),
139
134
  // In high contrast mode, this doesn't matter - we need to prioritize visibility
140
135
  preferred: "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.border.color, ";\n\n ").concat(euiFormControlHoverStyles(euiThemeContext), "\n ")
141
136
  });
142
137
  var backgroundColor = "\n background-color: ".concat(form.backgroundColor, ";\n ").trim();
143
138
  var backgroundGradient = highContrastModeStyles(euiThemeContext, {
144
- 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 ? mathWithUnits([euiTheme.border.width.thick, euiTheme.border.width.thin], function (x, y) {
145
- return x + y;
146
- } // account for pseudo element border
147
- ) : form.stateUnderlineHeight, ",\n transparent ").concat(form.stateUnderlineHeight, ",\n transparent 100%\n );\n ") : '',
148
139
  // Windows high contrast mode overrides/hides background gradients - we'll need another approach
149
140
  forced: "\n background-repeat: no-repeat;\n background-size: 0% ".concat(form.stateUnderlineHeight, ";\n background-position: bottom left;\n background-origin: border-box;\n ")
150
141
  });
151
- var backgroundAnimation = !isRefreshVariant ? "\n ".concat(euiCanAnimate, " {\n transition:\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ").trim() : '';
152
- return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ").concat(withBackgroundAnimation ? backgroundAnimation : '', "\n ");
142
+ return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ");
153
143
  };
154
144
  var hoverSelector = '&:hover:not(:disabled, :focus, input[readonly], [class*="readOnly"])';
155
145
  export var disableFormControlHoverStyles = function disableFormControlHoverStyles() {
@@ -164,43 +154,33 @@ export var euiFormControlHoverStyles = function euiFormControlHoverStyles(euiThe
164
154
  export var 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";
165
155
  export var euiFormControlFocusStyles = function euiFormControlFocusStyles(euiThemeContext) {
166
156
  var euiTheme = euiThemeContext.euiTheme;
167
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
168
157
  var form = euiFormVariables(euiThemeContext);
169
158
  var focusColor = euiTheme.colors.primary;
170
- return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderFocused, ";\n --euiFormControlStateHoverColor: ").concat(form.borderFocused, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thick, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(highContrastModeStyles(euiThemeContext, {
159
+ return "\n --euiFormControlStateColor: ".concat(form.borderFocused, ";\n --euiFormControlStateHoverColor: ").concat(form.borderFocused, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thick, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(highContrastModeStyles(euiThemeContext, {
171
160
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, focusColor), "\n ")
172
- }), "\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 ");
161
+ }), "\n ");
173
162
  };
174
163
  export var euiFormControlInvalidStyles = function euiFormControlInvalidStyles(euiThemeContext) {
175
164
  var euiTheme = euiThemeContext.euiTheme,
176
165
  highContrastMode = euiThemeContext.highContrastMode;
177
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
178
166
  var form = euiFormVariables(euiThemeContext);
179
167
  var invalidColor = euiTheme.colors.danger;
180
- 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 ");
168
+ 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 ");
181
169
  };
182
170
  export var euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
183
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
184
171
  var form = euiFormVariables(euiThemeContext);
185
- var refreshVariantStyles = "\n --euiFormControlStateHoverColor: transparent;\n --euiFormControlStateColor: ".concat(form.borderColor, ";\n ");
186
- 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 ");
172
+ 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 ");
187
173
  };
188
174
  export var euiFormControlReadOnlyStyles = function euiFormControlReadOnlyStyles(euiThemeContext) {
189
175
  var euiTheme = euiThemeContext.euiTheme;
190
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
191
176
  var form = euiFormVariables(euiThemeContext);
192
- 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(highContrastModeStyles(euiThemeContext, {
177
+ 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(highContrastModeStyles(euiThemeContext, {
193
178
  preferred: 'box-shadow: none;'
194
- }), "\n ") : "\n --euiFormControlStateColor: transparent;\n ".concat(highContrastModeStyles(euiThemeContext, {
195
- forced: 'background-image: none;'
196
- }), "\n ");
197
- 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 ");
179
+ }), "\n ");
198
180
  };
199
181
  export var euiFormControlAutoFillStyles = function euiFormControlAutoFillStyles(euiThemeContext) {
200
182
  var euiTheme = euiThemeContext.euiTheme;
201
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
202
183
  var form = euiFormVariables(euiThemeContext);
203
-
204
184
  // Make the text color slightly less prominent than the default colors.text
205
185
  var textColor = euiTheme.colors.darkestShade;
206
186
  var tintedBackgroundColor = euiTheme.components.forms.backgroundAutofilled;
@@ -217,15 +197,13 @@ export var euiFormControlAutoFillStyles = function euiFormControlAutoFillStyles(
217
197
  var borderShadow = function borderShadow(color) {
218
198
  return "inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(color);
219
199
  };
220
- 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 ");
221
200
 
222
201
  // These styles only apply/override Chrome/webkit browsers - Firefox does not set autofill styles
223
- 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 ");
202
+ 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 ");
224
203
  };
225
204
  export var euiFormControlShowBackgroundLine = function euiFormControlShowBackgroundLine(euiThemeContext, color) {
226
205
  var euiTheme = euiThemeContext.euiTheme,
227
206
  highContrastMode = euiThemeContext.highContrastMode;
228
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
229
207
  if (highContrastMode !== 'forced') {
230
208
  return 'background-size: 100% 100%;';
231
209
  }
@@ -237,13 +215,12 @@ export var euiFormControlShowBackgroundLine = function euiFormControlShowBackgro
237
215
  // using a static inline SVG workaround
238
216
  var fill = encodeURIComponent(color);
239
217
  var strokeWidth = stateUnderlineHeight !== null && stateUnderlineHeight !== void 0 ? stateUnderlineHeight : '4px';
240
- 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");
241
218
  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");
242
- return isRefreshVariant ? "\n background-size: calc(100% - ".concat(mathWithUnits(strokeWidth, function (x) {
219
+ return "\n background-size: calc(100% - ".concat(mathWithUnits(strokeWidth, function (x) {
243
220
  return x / 2;
244
221
  }), ") calc(100% - ").concat(mathWithUnits(strokeWidth, function (x) {
245
222
  return x / 2;
246
- }), ");\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 ");
223
+ }), ");\n background-position: ").concat(euiTheme.border.width.thin, ";\n background-image: url(\"").concat(refreshInlineSVG, "\");\n ");
247
224
  };
248
225
  var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
249
226
  return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
@@ -8,8 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { isEuiThemeRefreshVariant } from '../../../services';
12
- import { euiTextTruncate, logicalCSS, mathWithUnits } from '../../../global_styling';
11
+ import { euiTextTruncate, logicalCSS } from '../../../global_styling';
13
12
  import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
14
13
  import { euiFormVariables } from '../form.styles';
15
14
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -30,12 +29,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
30
29
  };
31
30
  export var euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiThemeContext) {
32
31
  var euiTheme = euiThemeContext.euiTheme;
33
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
34
32
  var form = euiFormVariables(euiThemeContext);
35
- 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(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 ");
36
- var wrapperGroupStyles = "\n > :first-child {\n border-radius: inherit;\n ".concat(logicalCSS('border-top-left-radius', '0'), "\n ").concat(logicalCSS('border-bottom-left-radius', '0'), "\n }\n\n > :last-child {\n border-radius: inherit;\n ").concat(logicalCSS('border-top-right-radius', '0'), "\n ").concat(logicalCSS('border-bottom-right-radius', '0'), "\n }\n ");
37
- var prependOnlyStyles = "\n > :last-child {\n ".concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n ");
38
- var appendOnlyStyles = "\n > :first-child {\n ".concat(logicalCSS('border-top-left-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-left-radius', 'inherit'), "\n }\n ");
39
33
  return {
40
34
  euiFormControlLayout: _ref2,
41
35
  // Skip the css`` on the default height to avoid generating a className
@@ -45,41 +39,34 @@ export var euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiT
45
39
  formWidth: "\n ".concat(logicalCSS('max-width', form.maxWidth), "\n ").concat(logicalCSS('width', '100%'), "\n "),
46
40
  fullWidth: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " ", logicalCSS('width', '100%'), ";;label:fullWidth;"),
47
41
  group: {
48
- group: /*#__PURE__*/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;}>*{", logicalCSS('height', '100%'), ";};label:group;"),
42
+ group: /*#__PURE__*/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;", 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;}>*{", logicalCSS('height', '100%'), ";};label:group;"),
49
43
  // Skipping css`` to avoid repeated compressed/uncompressed classNames
50
44
  uncompressed: "\n border-radius: ".concat(form.controlBorderRadius, ";\n "),
51
45
  compressed: "\n border-radius: ".concat(form.controlCompressedBorderRadius, ";\n ")
52
46
  },
53
47
  children: {
54
48
  euiFormControlLayout__childrenWrapper: _ref,
55
- inGroup: /*#__PURE__*/css("flex-grow:1;overflow:hidden;", isRefreshVariant && wrapperGroupStyles, ";;label:inGroup;"),
56
- prependOnly: /*#__PURE__*/css(logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), " ", isRefreshVariant && prependOnlyStyles, ";;label:prependOnly;"),
57
- appendOnly: /*#__PURE__*/css(logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), " ", isRefreshVariant && appendOnlyStyles, ";;label:appendOnly;")
49
+ inGroup: /*#__PURE__*/css("flex-grow:1;overflow:hidden;>:first-child{border-radius:inherit;", logicalCSS('border-top-left-radius', '0'), " ", logicalCSS('border-bottom-left-radius', '0'), ";}>:last-child{border-radius:inherit;", logicalCSS('border-top-right-radius', '0'), " ", logicalCSS('border-bottom-right-radius', '0'), ";};label:inGroup;"),
50
+ prependOnly: /*#__PURE__*/css(logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ">:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";};label:prependOnly;"),
51
+ appendOnly: /*#__PURE__*/css(logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), ">:first-child{", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), ";};label:appendOnly;")
58
52
  }
59
53
  };
60
54
  };
61
55
  export var euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSideNodeStyles(euiThemeContext) {
62
56
  var euiTheme = euiThemeContext.euiTheme;
63
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
64
57
  var form = euiFormVariables(euiThemeContext);
65
- var uncompressedHeight = mathWithUnits([form.controlHeight, euiTheme.border.width.thin], function (x, y) {
66
- return isRefreshVariant ? x : x - y * 2;
67
- });
68
- var compressedHeight = mathWithUnits([form.controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
69
- return isRefreshVariant ? x : x - y * 2;
70
- });
58
+ var uncompressedHeight = form.controlHeight;
59
+ var compressedHeight = form.controlCompressedHeight;
71
60
  var buttons = '*:is(.euiButton, .euiButtonEmpty, .euiButtonIcon)';
72
61
  var text = '*:is(.euiFormLabel, .euiText)';
73
- var appendStyles = "\n position: relative;\n ".concat(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 ");
74
- var prependStyles = "\n position: relative;\n ".concat(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 ");
75
62
  return {
76
63
  euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", 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, ")){", logicalCSS('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", logicalCSS('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
77
64
  append: /*#__PURE__*/css(highContrastModeStyles(euiThemeContext, {
78
- none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
65
+ none: "\n position: relative;\n ".concat(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 "),
79
66
  preferred: logicalCSS('border-left', euiTheme.border.thin)
80
67
  }), ";label:append;"),
81
68
  prepend: /*#__PURE__*/css(highContrastModeStyles(euiThemeContext, {
82
- none: "\n ".concat(isRefreshVariant && prependStyles, "\n "),
69
+ none: "\n position: relative;\n ".concat(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 "),
83
70
  preferred: logicalCSS('border-right', euiTheme.border.thin)
84
71
  }), ";label:prepend;"),
85
72
  uncompressed: "\n ".concat(text, " {\n ").concat(logicalCSS('padding-horizontal', euiTheme.size.xs), "\n line-height: ").concat(uncompressedHeight, ";\n }\n\n ").concat(buttons, " {\n ").concat(logicalCSS('height', uncompressedHeight), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat(logicalCSS('width', euiTheme.size.xl), "\n }\n "),
@@ -8,14 +8,12 @@
8
8
 
9
9
  import { css } from '@emotion/react';
10
10
  import { logicalSizeCSS, mathWithUnits } from '../../../global_styling';
11
- import { isEuiThemeRefreshVariant } from '../../../services';
12
11
  export var EuiFormControlLayoutClearButtonStyles = function EuiFormControlLayoutClearButtonStyles(euiThemeContext) {
13
12
  var euiTheme = euiThemeContext.euiTheme,
14
13
  highContrastMode = euiThemeContext.highContrastMode;
15
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
16
14
  var backgroundColor = highContrastMode ? euiTheme.colors.darkShade : euiTheme.components.forms.clearButtonBackground;
17
15
  return {
18
- euiFormControlLayoutClearButton: /*#__PURE__*/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;"),
16
+ euiFormControlLayoutClearButton: /*#__PURE__*/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;"),
19
17
  size: {
20
18
  s: "\n ".concat(logicalSizeCSS(euiTheme.size.m), "\n border-width: ").concat(mathWithUnits(euiTheme.size.m, function (x) {
21
19
  return x / 2;
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
 
15
15
  import React from 'react';
16
16
  import classNames from 'classnames';
17
- import { useEuiMemoizedStyles, cloneElementWithCss, useEuiTheme, useEuiThemeRefreshVariant } from '../../../services';
17
+ import { useEuiMemoizedStyles, cloneElementWithCss, useEuiTheme } from '../../../services';
18
18
  import { useEuiI18n } from '../../i18n';
19
19
  import { EuiIcon } from '../../icon';
20
20
  import { EuiText } from '../../text';
@@ -30,8 +30,6 @@ export var EuiFormControlLayoutDelimited = function EuiFormControlLayoutDelimite
30
30
  className = _ref.className,
31
31
  _fullWidth = _ref.fullWidth,
32
32
  rest = _objectWithoutProperties(_ref, _excluded);
33
- var euiThemeContext = useEuiTheme();
34
- var isRefreshVariant = useEuiThemeRefreshVariant('formVariant');
35
33
  var _useFormContext = useFormContext(),
36
34
  defaultFullWidth = _useFormContext.defaultFullWidth;
37
35
  var fullWidth = _fullWidth !== null && _fullWidth !== void 0 ? _fullWidth : defaultFullWidth;
@@ -44,7 +42,7 @@ export var EuiFormControlLayoutDelimited = function EuiFormControlLayoutDelimite
44
42
  });
45
43
  var styles = useEuiMemoizedStyles(euiFormControlLayoutDelimitedStyles);
46
44
  var cssStyles = [styles.delimited, rest.isDisabled && styles.disabled, rest.readOnly && styles.readOnly];
47
- 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];
45
+ 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];
48
46
  return ___EmotionJSX(EuiFormControlLayout, _extends({
49
47
  isDelimited: true,
50
48
  css: cssStyles,
@@ -59,14 +57,14 @@ export var EuiFormControlLayoutDelimited = function EuiFormControlLayoutDelimite
59
57
  value: {
60
58
  defaultFullWidth: fullWidth
61
59
  }
62
- }, startControl && addClassesToControl(euiThemeContext, startControl), ___EmotionJSX(EuiFormControlDelimiter, {
60
+ }, startControl && addClassesToControl(startControl), ___EmotionJSX(EuiFormControlDelimiter, {
63
61
  delimiter: delimiter,
64
62
  isInvalid: showInvalidState
65
- }), endControl && addClassesToControl(euiThemeContext, endControl)));
63
+ }), endControl && addClassesToControl(endControl)));
66
64
  };
67
- var addClassesToControl = function addClassesToControl(euiThemeContext, control) {
65
+ var addClassesToControl = function addClassesToControl(control) {
68
66
  return cloneElementWithCss(control, {
69
- css: euiFormControlLayoutDelimited__input(euiThemeContext),
67
+ css: euiFormControlLayoutDelimited__input,
70
68
  className: classNames(control.props.className, 'euiFormControlLayoutDelimited__input')
71
69
  }, 'before');
72
70
  };
@@ -7,51 +7,38 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { logicalCSS, mathWithUnits } from '../../../global_styling';
12
11
  import { euiFormControlDisabledStyles, euiFormControlReadOnlyStyles, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlHoverStyles, euiFormVariables } from '../form.styles';
13
12
  export var euiFormControlLayoutDelimitedStyles = function euiFormControlLayoutDelimitedStyles(euiThemeContext) {
14
13
  var highContrastMode = euiThemeContext.highContrastMode;
15
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
16
14
  var form = euiFormVariables(euiThemeContext);
17
- var invalidStyles = isRefreshVariant ? "\n :not(.euiFormControlLayoutDelimited__input, .euiFormControlLayoutDelimited__delimiter) {\n ".concat(euiFormControlInvalidStyles(euiThemeContext), "\n }\n\n &:focus-within {\n --euiFormControlStateColor: ").concat(form.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(form.borderHovered, ";\n }\n\n .euiFormControlLayoutDelimited__input {\n background-color: transparent;\n }\n ") : "\n ".concat(euiFormControlInvalidStyles(euiThemeContext), ";\n ");
18
- var readOnlyStyles = "\n & .euiFormControlLayoutDelimited__input {\n outline: none; \n box-shadow: none;\n --euiFormControlStateColor: transparent;\n }\n ";
19
15
  var delimitedStyles = "\n /* Transition smoothly between disabled/readOnly background color changes */\n ".concat(euiFormControlDefaultShadow(euiThemeContext, {
20
- withBorder: isRefreshVariant && !highContrastMode ? true : false,
21
- withBackground: false,
22
- withBackgroundAnimation: isRefreshVariant ? false : true
16
+ withBorder: !highContrastMode ? true : false,
17
+ withBackground: false
23
18
  }), "\n ").trim();
24
- var delimitedWrapperStyles = "\n ".concat(euiFormControlDefaultShadow(euiThemeContext, {
25
- withBorder: !highContrastMode,
26
- withBackground: false,
27
- withBackgroundAnimation: true
28
- }), "\n \n &:hover {\n ").concat(euiFormControlHoverStyles(euiThemeContext), "\n box-shadow: none;\n\n /* using hover styling on wrapper instead of the children inputs */\n .euiFormControlLayoutDelimited__input:not(:focus) {\n outline: none;\n background-color: transparent;\n }\n }\n\n /* adjust for delimited behavior differing from default form layout */\n > :first-child {\n ").concat(logicalCSS('border-top-left-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-left-radius', 'inherit'), "\n }\n\n > :last-child {\n ").concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n ");
29
19
  return {
30
20
  // Appended onto existing `euiFormControlLayout` styles
31
21
  delimited: /*#__PURE__*/css(delimitedStyles, ";label:delimited;"),
32
22
  disabled: /*#__PURE__*/css(euiFormControlDisabledStyles(euiThemeContext), ";label:disabled;"),
33
- readOnly: /*#__PURE__*/css(euiFormControlReadOnlyStyles(euiThemeContext), " ", isRefreshVariant && readOnlyStyles, ";;label:readOnly;"),
23
+ readOnly: /*#__PURE__*/css(euiFormControlReadOnlyStyles(euiThemeContext), " & .euiFormControlLayoutDelimited__input{--euiFormControlStateColor:transparent;outline:none;box-shadow:none;};label:readOnly;"),
34
24
  // Appended onto existing `euiFormControlLayout__childrenWrapper` styles
35
25
  childrenWrapper: {
36
- delimited: /*#__PURE__*/css("display:flex;", isRefreshVariant && delimitedWrapperStyles, ";;label:delimited;"),
26
+ delimited: /*#__PURE__*/css("display:flex;", euiFormControlDefaultShadow(euiThemeContext, {
27
+ withBorder: !highContrastMode,
28
+ withBackground: false
29
+ }), " &:hover{", euiFormControlHoverStyles(euiThemeContext), " box-shadow:none;.euiFormControlLayoutDelimited__input:not(:focus){outline:none;background-color:transparent;}}>:first-child{", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), ";}>:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";};label:delimited;"),
37
30
  invalid: /*#__PURE__*/css(euiFormControlDefaultShadow(euiThemeContext, {
38
31
  withBorder: false,
39
- withBackgroundColor: false,
40
- withBackgroundAnimation: false
41
- }), "\n ".concat(invalidStyles, "\n "), ";label:invalid;"),
32
+ withBackgroundColor: false
33
+ }), "\n :not(.euiFormControlLayoutDelimited__input, .euiFormControlLayoutDelimited__delimiter) {\n ".concat(euiFormControlInvalidStyles(euiThemeContext), "\n }\n\n &:focus-within {\n --euiFormControlStateColor: ").concat(form.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(form.borderHovered, ";\n }\n\n .euiFormControlLayoutDelimited__input {\n background-color: transparent;\n }\n "), ";label:invalid;"),
42
34
  readOnly: /*#__PURE__*/css(";label:readOnly;")
43
35
  }
44
36
  };
45
37
  };
46
38
  export var euiFormControlLayoutDelimited__delimiter = function euiFormControlLayoutDelimited__delimiter(euiThemeContext) {
47
39
  var euiTheme = euiThemeContext.euiTheme;
48
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
49
- var experimentalStyles = isRefreshVariant && "\n ".concat(logicalCSS('padding-horizontal', mathWithUnits([euiTheme.size.xs, euiTheme.size.xxs], function (x, y) {
40
+ return /*#__PURE__*/css("display:flex;align-self:stretch;flex-grow:0;align-items:center;line-height:1;", logicalCSS('padding-horizontal', mathWithUnits([euiTheme.size.xs, euiTheme.size.xxs], function (x, y) {
50
41
  return x + y;
51
- })), "\n ");
52
- return /*#__PURE__*/css("display:flex;align-self:stretch;flex-grow:0;align-items:center;line-height:1;", experimentalStyles, ";;label:euiFormControlLayoutDelimited__delimiter;");
42
+ })), ";;label:euiFormControlLayoutDelimited__delimiter;");
53
43
  };
54
- export var euiFormControlLayoutDelimited__input = function euiFormControlLayoutDelimited__input(euiThemeContext) {
55
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
56
- return /*#__PURE__*/css("box-shadow:none;border:none;border-radius:", isRefreshVariant ? '' : '0', ";text-align:center;", logicalCSS('height', '100%'), ";;label:euiFormControlLayoutDelimited__input;");
57
- };
44
+ export var euiFormControlLayoutDelimited__input = /*#__PURE__*/css("box-shadow:none;border:none;text-align:center;", logicalCSS('height', '100%'), ";;label:euiFormControlLayoutDelimited__input;");
@@ -18,7 +18,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
18
18
  */
19
19
 
20
20
  import React, { Component } from 'react';
21
- import { isEuiThemeRefreshVariant, RenderWithEuiStylesMemoizer, RenderWithEuiTheme } from '../../../services';
21
+ import { RenderWithEuiStylesMemoizer } from '../../../services';
22
22
  import { EuiIcon } from '../../icon';
23
23
  import { EuiLoadingSpinner } from '../../loading';
24
24
  import { EuiFormControlLayoutClearButton } from './form_control_layout_clear_button';
@@ -64,7 +64,6 @@ export var EuiFormControlLayoutIcons = /*#__PURE__*/function (_Component) {
64
64
  value: function renderCustomIcon() {
65
65
  var _this$props2 = this.props,
66
66
  icon = _this$props2.icon,
67
- compressed = _this$props2.compressed,
68
67
  isDisabled = _this$props2.isDisabled;
69
68
  if (!icon) {
70
69
  return null;
@@ -77,84 +76,63 @@ export var EuiFormControlLayoutIcons = /*#__PURE__*/function (_Component) {
77
76
  var iconRef = iconProps.ref,
78
77
  side = iconProps.side,
79
78
  iconRest = _objectWithoutProperties(iconProps, _excluded);
80
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
81
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
82
- return ___EmotionJSX(EuiFormControlLayoutCustomIcon, _extends({
83
- size: compressed && !isRefreshVariant ? 's' : 'm',
84
- disabled: isDisabled,
85
- iconRef: iconRef
86
- }, iconRest));
87
- });
79
+ return ___EmotionJSX(EuiFormControlLayoutCustomIcon, _extends({
80
+ size: "m",
81
+ disabled: isDisabled,
82
+ iconRef: iconRef
83
+ }, iconRest));
88
84
  }
89
85
  }, {
90
86
  key: "renderDropdownIcon",
91
87
  value: function renderDropdownIcon() {
92
88
  var _this$props3 = this.props,
93
89
  isDropdown = _this$props3.isDropdown,
94
- compressed = _this$props3.compressed,
95
90
  isDisabled = _this$props3.isDisabled;
96
91
  if (!isDropdown) {
97
92
  return null;
98
93
  }
99
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
100
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
101
- return ___EmotionJSX(EuiFormControlLayoutCustomIcon, {
102
- size: compressed && !isRefreshVariant ? 's' : 'm',
103
- disabled: isDisabled,
104
- type: "arrowDown"
105
- });
94
+ return ___EmotionJSX(EuiFormControlLayoutCustomIcon, {
95
+ size: "m",
96
+ disabled: isDisabled,
97
+ type: "arrowDown"
106
98
  });
107
99
  }
108
100
  }, {
109
101
  key: "renderLoadingSpinner",
110
102
  value: function renderLoadingSpinner() {
111
- var _this$props4 = this.props,
112
- isLoading = _this$props4.isLoading,
113
- compressed = _this$props4.compressed;
103
+ var isLoading = this.props.isLoading;
114
104
  if (!isLoading) {
115
105
  return null;
116
106
  }
117
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
118
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
119
- return ___EmotionJSX(EuiLoadingSpinner, {
120
- size: compressed && !isRefreshVariant ? 's' : 'm'
121
- });
107
+ return ___EmotionJSX(EuiLoadingSpinner, {
108
+ size: "m"
122
109
  });
123
110
  }
124
111
  }, {
125
112
  key: "renderClearButton",
126
113
  value: function renderClearButton() {
127
- var _this$props5 = this.props,
128
- clear = _this$props5.clear,
129
- compressed = _this$props5.compressed,
130
- isDisabled = _this$props5.isDisabled;
114
+ var _this$props4 = this.props,
115
+ clear = _this$props4.clear,
116
+ isDisabled = _this$props4.isDisabled;
131
117
  if (!clear) {
132
118
  return null;
133
119
  }
134
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
135
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
136
- return ___EmotionJSX(EuiFormControlLayoutClearButton, _extends({
137
- size: compressed && !isRefreshVariant ? 's' : 'm',
138
- disabled: isDisabled
139
- }, clear));
140
- });
120
+ return ___EmotionJSX(EuiFormControlLayoutClearButton, _extends({
121
+ size: "m",
122
+ disabled: isDisabled
123
+ }, clear));
141
124
  }
142
125
  }, {
143
126
  key: "renderInvalidIcon",
144
127
  value: function renderInvalidIcon() {
145
- var _this$props6 = this.props,
146
- isInvalid = _this$props6.isInvalid,
147
- compressed = _this$props6.compressed;
128
+ var isInvalid = this.props.isInvalid;
148
129
  if (!isInvalid) {
149
130
  return null;
150
131
  }
151
- return ___EmotionJSX(RenderWithEuiTheme, null, function (euiThemeContext) {
152
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
153
- return ___EmotionJSX(EuiIcon, {
154
- size: compressed && !isRefreshVariant ? 's' : 'm',
155
- color: "danger",
156
- type: "warning"
157
- });
132
+ return ___EmotionJSX(EuiIcon, {
133
+ size: "m",
134
+ color: "danger",
135
+ type: "warning"
158
136
  });
159
137
  }
160
138
  }]);
@@ -7,12 +7,10 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  import { euiFontSize, logicalCSS } from '../../../global_styling';
12
11
  export var euiFormErrorTextStyles = function euiFormErrorTextStyles(euiThemeContext) {
13
12
  var euiTheme = euiThemeContext.euiTheme;
14
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
15
13
  return {
16
- euiFormErrorText: /*#__PURE__*/css(logicalCSS('padding-top', euiTheme.size.xs), " ", euiFontSize(euiThemeContext, 'xs'), " color:", isRefreshVariant ? euiTheme.colors.textDanger : euiTheme.colors.danger, ";;label:euiFormErrorText;")
14
+ euiFormErrorText: /*#__PURE__*/css(logicalCSS('padding-top', euiTheme.size.xs), " ", euiFontSize(euiThemeContext, 'xs'), " color:", euiTheme.colors.textDanger, ";;label:euiFormErrorText;")
17
15
  };
18
16
  };
@@ -24,7 +24,7 @@ export var EuiFormLabel = function EuiFormLabel(_ref) {
24
24
  className = _ref.className,
25
25
  rest = _objectWithoutProperties(_ref, _excluded);
26
26
  var styles = useEuiMemoizedStyles(euiFormLabelStyles);
27
- var cssStyles = [styles.euiFormLabel, !isDisabled && styles.notDisabled, isInvalid && styles.invalid, isFocused && styles.focused];
27
+ var cssStyles = [styles.euiFormLabel, !isDisabled && styles.notDisabled, isInvalid && styles.invalid];
28
28
  var classes = classNames('euiFormLabel', className, {
29
29
  'euiFormLabel-isFocused': isFocused,
30
30
  'euiFormLabel-isInvalid': isInvalid,