@elastic/eui 107.0.0 → 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 (499) hide show
  1. package/es/components/badge/beta_badge/beta_badge.js +1 -0
  2. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  3. package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  4. package/es/components/basic_table/basic_table.styles.js +6 -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 +2 -4
  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/code/code_syntax.styles.js +1 -1
  13. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  14. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  15. package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  16. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  17. package/es/components/datagrid/controls/column_selector.styles.js +1 -1
  18. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  19. package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  20. package/es/components/datagrid/data_grid.styles.js +0 -1
  21. package/es/components/date_picker/date_picker.styles.js +1 -4
  22. package/es/components/date_picker/date_picker_range.styles.js +4 -8
  23. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  24. package/es/components/filter_group/filter_button.js +7 -10
  25. package/es/components/filter_group/filter_button.styles.js +28 -39
  26. package/es/components/filter_group/filter_group.styles.js +8 -29
  27. package/es/components/form/field_number/field_number.styles.js +1 -4
  28. package/es/components/form/field_text/field_text.styles.js +1 -4
  29. package/es/components/form/file_picker/file_picker.js +102 -107
  30. package/es/components/form/file_picker/file_picker.styles.js +5 -7
  31. package/es/components/form/form.styles.js +17 -40
  32. package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  33. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  34. package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  35. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  36. package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  37. package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  38. package/es/components/form/form_label/form_label.js +1 -1
  39. package/es/components/form/form_label/form_label.styles.js +1 -5
  40. package/es/components/form/range/range_input.styles.js +1 -3
  41. package/es/components/header/header.styles.js +4 -19
  42. package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  43. package/es/components/icon/icon.js +31 -14
  44. package/es/components/icon/icon_map.js +1 -1
  45. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  46. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  47. package/es/components/modal/modal.js +23 -5
  48. package/es/components/panel/panel.styles.js +4 -12
  49. package/es/components/resizable_container/resizable_collapse_button.js +2 -3
  50. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  51. package/es/components/table/table_row.styles.js +3 -3
  52. package/es/components/toast/toast.styles.js +1 -3
  53. package/es/components/token/token.js +1 -3
  54. package/es/components/token/token.styles.js +2 -3
  55. package/es/components/token/token_map.js +1 -231
  56. package/es/global_styling/mixins/_button.js +14 -24
  57. package/es/index.js +0 -1
  58. package/es/services/color/eui_palettes.js +7 -21
  59. package/es/services/color/eui_palettes_hooks.js +6 -10
  60. package/es/services/color/vis_color_store.js +2 -2
  61. package/es/services/theme/provider.js +4 -9
  62. package/eui.d.ts +20 -2103
  63. package/lib/components/badge/beta_badge/beta_badge.js +1 -0
  64. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  65. package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  66. package/lib/components/basic_table/basic_table.styles.js +5 -3
  67. package/lib/components/button/button_display/_button_display.styles.js +1 -4
  68. package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  69. package/lib/components/button/button_empty/button_empty.styles.js +4 -7
  70. package/lib/components/button/button_group/button_group.styles.js +2 -12
  71. package/lib/components/button/button_group/button_group_button.js +1 -3
  72. package/lib/components/button/button_group/button_group_button.styles.js +21 -35
  73. package/lib/components/button/button_icon/button_icon.js +1 -4
  74. package/lib/components/code/code_syntax.styles.js +1 -1
  75. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  76. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  77. package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  78. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  79. package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  80. package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  81. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  82. package/lib/components/datagrid/data_grid.styles.js +0 -1
  83. package/lib/components/date_picker/date_picker.styles.js +1 -4
  84. package/lib/components/date_picker/date_picker_range.styles.js +4 -8
  85. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  86. package/lib/components/filter_group/filter_button.js +6 -9
  87. package/lib/components/filter_group/filter_button.styles.js +27 -38
  88. package/lib/components/filter_group/filter_group.styles.js +8 -29
  89. package/lib/components/form/field_number/field_number.styles.js +1 -4
  90. package/lib/components/form/field_text/field_text.styles.js +1 -4
  91. package/lib/components/form/file_picker/file_picker.js +101 -106
  92. package/lib/components/form/file_picker/file_picker.styles.js +5 -7
  93. package/lib/components/form/form.styles.js +16 -39
  94. package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  95. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  96. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  97. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  98. package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  99. package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  100. package/lib/components/form/form_label/form_label.js +1 -1
  101. package/lib/components/form/form_label/form_label.styles.js +1 -5
  102. package/lib/components/form/range/range_input.styles.js +1 -3
  103. package/lib/components/header/header.styles.js +2 -18
  104. package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  105. package/lib/components/icon/icon.js +31 -14
  106. package/lib/components/icon/icon_map.js +1 -1
  107. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  108. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  109. package/lib/components/modal/modal.js +25 -5
  110. package/lib/components/panel/panel.styles.js +4 -12
  111. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  112. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  113. package/lib/components/table/table_row.styles.js +3 -3
  114. package/lib/components/toast/toast.styles.js +1 -3
  115. package/lib/components/token/token.js +1 -3
  116. package/lib/components/token/token.styles.js +1 -2
  117. package/lib/components/token/token_map.js +2 -232
  118. package/lib/global_styling/mixins/_button.js +11 -21
  119. package/lib/index.js +0 -11
  120. package/lib/services/color/eui_palettes.js +7 -21
  121. package/lib/services/color/eui_palettes_hooks.js +6 -10
  122. package/lib/services/color/vis_color_store.js +2 -2
  123. package/lib/services/theme/provider.js +4 -9
  124. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -0
  125. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
  126. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
  127. package/optimize/es/components/basic_table/basic_table.styles.js +6 -4
  128. package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
  129. package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
  130. package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
  131. package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
  132. package/optimize/es/components/button/button_group/button_group_button.js +2 -4
  133. package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
  134. package/optimize/es/components/button/button_icon/button_icon.js +3 -6
  135. package/optimize/es/components/code/code_syntax.styles.js +1 -1
  136. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
  137. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  138. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
  139. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  140. package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
  141. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  142. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
  143. package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
  144. package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
  145. package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
  146. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
  147. package/optimize/es/components/filter_group/filter_button.js +7 -10
  148. package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
  149. package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
  150. package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
  151. package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
  152. package/optimize/es/components/form/file_picker/file_picker.js +102 -107
  153. package/optimize/es/components/form/file_picker/file_picker.styles.js +5 -7
  154. package/optimize/es/components/form/form.styles.js +17 -40
  155. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
  156. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  157. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
  158. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  159. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
  160. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
  161. package/optimize/es/components/form/form_label/form_label.js +1 -1
  162. package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
  163. package/optimize/es/components/form/range/range_input.styles.js +1 -3
  164. package/optimize/es/components/header/header.styles.js +4 -19
  165. package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
  166. package/optimize/es/components/icon/icon.js +31 -14
  167. package/optimize/es/components/icon/icon_map.js +1 -1
  168. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  169. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  170. package/optimize/es/components/modal/modal.js +17 -4
  171. package/optimize/es/components/panel/panel.styles.js +4 -12
  172. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
  173. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
  174. package/optimize/es/components/table/table_row.styles.js +3 -3
  175. package/optimize/es/components/toast/toast.styles.js +1 -3
  176. package/optimize/es/components/token/token.js +1 -3
  177. package/optimize/es/components/token/token.styles.js +2 -3
  178. package/optimize/es/components/token/token_map.js +1 -231
  179. package/optimize/es/global_styling/mixins/_button.js +14 -24
  180. package/optimize/es/index.js +0 -1
  181. package/optimize/es/services/color/eui_palettes.js +7 -21
  182. package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
  183. package/optimize/es/services/color/vis_color_store.js +2 -2
  184. package/optimize/es/services/theme/provider.js +4 -9
  185. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -0
  186. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
  187. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
  188. package/optimize/lib/components/basic_table/basic_table.styles.js +5 -3
  189. package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
  190. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
  191. package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
  192. package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
  193. package/optimize/lib/components/button/button_group/button_group_button.js +1 -3
  194. package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
  195. package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
  196. package/optimize/lib/components/code/code_syntax.styles.js +1 -1
  197. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  198. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  199. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  200. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  201. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
  202. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
  203. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  204. package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
  205. package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
  206. package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
  207. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  208. package/optimize/lib/components/filter_group/filter_button.js +6 -9
  209. package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
  210. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
  211. package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
  212. package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
  213. package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
  214. package/optimize/lib/components/form/file_picker/file_picker.styles.js +5 -7
  215. package/optimize/lib/components/form/form.styles.js +16 -39
  216. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  217. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  218. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  219. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  220. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  221. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
  222. package/optimize/lib/components/form/form_label/form_label.js +1 -1
  223. package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
  224. package/optimize/lib/components/form/range/range_input.styles.js +1 -3
  225. package/optimize/lib/components/header/header.styles.js +2 -18
  226. package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
  227. package/optimize/lib/components/icon/icon.js +31 -14
  228. package/optimize/lib/components/icon/icon_map.js +1 -1
  229. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  230. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  231. package/optimize/lib/components/modal/modal.js +20 -4
  232. package/optimize/lib/components/panel/panel.styles.js +4 -12
  233. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  234. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  235. package/optimize/lib/components/table/table_row.styles.js +3 -3
  236. package/optimize/lib/components/toast/toast.styles.js +1 -3
  237. package/optimize/lib/components/token/token.js +1 -3
  238. package/optimize/lib/components/token/token.styles.js +1 -2
  239. package/optimize/lib/components/token/token_map.js +2 -232
  240. package/optimize/lib/global_styling/mixins/_button.js +11 -21
  241. package/optimize/lib/index.js +0 -11
  242. package/optimize/lib/services/color/eui_palettes.js +7 -21
  243. package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
  244. package/optimize/lib/services/color/vis_color_store.js +2 -2
  245. package/optimize/lib/services/theme/provider.js +4 -9
  246. package/package.json +6 -7
  247. package/test-env/components/badge/beta_badge/beta_badge.js +1 -0
  248. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
  249. package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
  250. package/test-env/components/basic_table/basic_table.styles.js +5 -3
  251. package/test-env/components/button/button_display/_button_display.styles.js +1 -4
  252. package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
  253. package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
  254. package/test-env/components/button/button_group/button_group.styles.js +2 -12
  255. package/test-env/components/button/button_group/button_group_button.js +1 -3
  256. package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
  257. package/test-env/components/button/button_icon/button_icon.js +1 -4
  258. package/test-env/components/code/code_syntax.styles.js +1 -1
  259. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
  260. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
  261. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
  262. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
  263. package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
  264. package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
  265. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
  266. package/test-env/components/datagrid/data_grid.styles.js +0 -1
  267. package/test-env/components/date_picker/date_picker.styles.js +1 -4
  268. package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
  269. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
  270. package/test-env/components/filter_group/filter_button.js +6 -9
  271. package/test-env/components/filter_group/filter_button.styles.js +27 -38
  272. package/test-env/components/filter_group/filter_group.styles.js +8 -29
  273. package/test-env/components/form/field_number/field_number.styles.js +1 -4
  274. package/test-env/components/form/field_text/field_text.styles.js +1 -4
  275. package/test-env/components/form/file_picker/file_picker.js +101 -106
  276. package/test-env/components/form/file_picker/file_picker.styles.js +5 -7
  277. package/test-env/components/form/form.styles.js +16 -39
  278. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
  279. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
  280. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
  281. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
  282. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
  283. package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
  284. package/test-env/components/form/form_label/form_label.js +1 -1
  285. package/test-env/components/form/form_label/form_label.styles.js +1 -5
  286. package/test-env/components/form/range/range_input.styles.js +1 -3
  287. package/test-env/components/header/header.styles.js +2 -18
  288. package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
  289. package/test-env/components/icon/icon_map.js +1 -1
  290. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
  291. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
  292. package/test-env/components/modal/modal.js +26 -5
  293. package/test-env/components/panel/panel.styles.js +4 -12
  294. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  295. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
  296. package/test-env/components/table/table_row.styles.js +3 -3
  297. package/test-env/components/toast/toast.styles.js +1 -3
  298. package/test-env/components/token/token.js +1 -3
  299. package/test-env/components/token/token.styles.js +1 -2
  300. package/test-env/components/token/token_map.js +2 -232
  301. package/test-env/global_styling/mixins/_button.js +11 -21
  302. package/test-env/index.js +0 -11
  303. package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
  304. package/test-env/services/color/eui_palettes.js +7 -21
  305. package/test-env/services/color/eui_palettes_hooks.js +6 -10
  306. package/test-env/services/color/vis_color_store.js +2 -2
  307. package/test-env/services/theme/provider.js +4 -9
  308. package/dist/eui_theme_amsterdam_dark.json +0 -463
  309. package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
  310. package/dist/eui_theme_amsterdam_light.json +0 -463
  311. package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
  312. package/dist/eui_theme_borealis_dark.json +0 -463
  313. package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
  314. package/dist/eui_theme_borealis_light.json +0 -463
  315. package/dist/eui_theme_borealis_light.json.d.ts +0 -466
  316. package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  317. package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  318. package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  319. package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  320. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  321. package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
  322. package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
  323. package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  324. package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
  325. package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
  326. package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  327. package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
  328. package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  329. package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
  330. package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
  331. package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  332. package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
  333. package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  334. package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  335. package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
  336. package/es/themes/amsterdam/index.js +0 -10
  337. package/es/themes/amsterdam/theme.js +0 -41
  338. package/es/themes/index.js +0 -12
  339. package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  340. package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  341. package/es/themes/json/eui_theme_borealis_dark.json +0 -463
  342. package/es/themes/json/eui_theme_borealis_light.json +0 -463
  343. package/es/themes/themes.js +0 -1
  344. package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  345. package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  346. package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  347. package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  348. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  349. package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
  350. package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
  351. package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  352. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
  353. package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
  354. package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  355. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
  356. package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  357. package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
  358. package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
  359. package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  360. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
  361. package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  362. package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  363. package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
  364. package/lib/themes/amsterdam/index.js +0 -16
  365. package/lib/themes/amsterdam/theme.js +0 -47
  366. package/lib/themes/index.js +0 -57
  367. package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  368. package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  369. package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  370. package/lib/themes/json/eui_theme_borealis_light.json +0 -463
  371. package/lib/themes/themes.js +0 -5
  372. package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
  373. package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
  374. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
  375. package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
  376. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
  377. package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
  378. package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
  379. package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
  380. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
  381. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
  382. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
  383. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
  384. package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
  385. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
  386. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
  387. package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
  388. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
  389. package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
  390. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
  391. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
  392. package/optimize/es/themes/amsterdam/index.js +0 -10
  393. package/optimize/es/themes/amsterdam/theme.js +0 -41
  394. package/optimize/es/themes/index.js +0 -12
  395. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
  396. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
  397. package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
  398. package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
  399. package/optimize/es/themes/themes.js +0 -1
  400. package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
  401. package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  402. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
  403. package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
  404. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  405. package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  406. package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  407. package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  408. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  409. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  410. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  411. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  412. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  413. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
  414. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  415. package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  416. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  417. package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
  418. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
  419. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  420. package/optimize/lib/themes/amsterdam/index.js +0 -16
  421. package/optimize/lib/themes/amsterdam/theme.js +0 -47
  422. package/optimize/lib/themes/index.js +0 -57
  423. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
  424. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
  425. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
  426. package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
  427. package/optimize/lib/themes/themes.js +0 -5
  428. package/src/global_styling/functions/_colors.scss +0 -138
  429. package/src/global_styling/functions/_index.scss +0 -1
  430. package/src/global_styling/functions/_math.scss +0 -1
  431. package/src/global_styling/functions/_math_pow.scss +0 -82
  432. package/src/global_styling/index.scss +0 -3
  433. package/src/global_styling/mixins/_helpers.scss +0 -117
  434. package/src/global_styling/mixins/_index.scss +0 -8
  435. package/src/global_styling/mixins/_responsive.scss +0 -44
  436. package/src/global_styling/mixins/_shadow.scss +0 -100
  437. package/src/global_styling/mixins/_size.scss +0 -4
  438. package/src/global_styling/mixins/_states.scss +0 -17
  439. package/src/global_styling/mixins/_tool_tip.scss +0 -18
  440. package/src/global_styling/mixins/_typography.scss +0 -166
  441. package/src/global_styling/variables/_animations.scss +0 -6
  442. package/src/global_styling/variables/_borders.scss +0 -3
  443. package/src/global_styling/variables/_buttons.scss +0 -1
  444. package/src/global_styling/variables/_font_weight.scss +0 -4
  445. package/src/global_styling/variables/_form.scss +0 -2
  446. package/src/global_styling/variables/_index.scss +0 -22
  447. package/src/global_styling/variables/_responsive.scss +0 -1
  448. package/src/global_styling/variables/_shadows.scss +0 -2
  449. package/src/global_styling/variables/_size.scss +0 -1
  450. package/src/global_styling/variables/_states.scss +0 -1
  451. package/src/global_styling/variables/_typography.scss +0 -1
  452. package/src/global_styling/variables/_z_index.scss +0 -2
  453. package/src/themes/amsterdam/_colors_dark.scss +0 -139
  454. package/src/themes/amsterdam/_colors_light.scss +0 -139
  455. package/src/themes/amsterdam/_globals.scss +0 -11
  456. package/src/themes/amsterdam/global_styling/index.scss +0 -12
  457. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
  458. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
  459. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
  460. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
  461. package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
  462. package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
  463. package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
  464. package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
  465. package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
  466. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
  467. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
  468. package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
  469. package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
  470. package/src/themes/amsterdam/theme_dark.scss +0 -5
  471. package/src/themes/amsterdam/theme_light.scss +0 -5
  472. package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
  473. package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
  474. package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
  475. package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
  476. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
  477. package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
  478. package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
  479. package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
  480. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
  481. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
  482. package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
  483. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
  484. package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
  485. package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
  486. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
  487. package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
  488. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
  489. package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
  490. package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
  491. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
  492. package/test-env/themes/amsterdam/index.js +0 -16
  493. package/test-env/themes/amsterdam/theme.js +0 -47
  494. package/test-env/themes/index.js +0 -57
  495. package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
  496. package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
  497. package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
  498. package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
  499. package/test-env/themes/themes.js +0 -5
@@ -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,
@@ -10,7 +10,6 @@ var _excluded = ["fontWeight"];
10
10
 
11
11
  import { css } from '@emotion/react';
12
12
  import { serializeStyles } from '@emotion/serialize';
13
- import { isEuiThemeRefreshVariant } from '../../../services';
14
13
  import { euiCanAnimate, euiTextBreakWord } from '../../../global_styling';
15
14
  import { euiTitle } from '../../title/title.styles';
16
15
  export var euiFormLabel = function euiFormLabel(euiThemeContext) {
@@ -26,14 +25,11 @@ export var euiFormLabel = function euiFormLabel(euiThemeContext) {
26
25
  };
27
26
  export var euiFormLabelStyles = function euiFormLabelStyles(euiThemeContext) {
28
27
  var euiTheme = euiThemeContext.euiTheme;
29
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
30
28
  return {
31
29
  euiFormLabel: /*#__PURE__*/css(euiFormLabel(euiThemeContext), " display:inline-block;", euiCanAnimate, "{transition:color ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";};label:euiFormLabel;"),
32
30
  // Skip css`` to avoid generating an extra Emotion className
33
31
  // Use :where to reduce specificity & make the CSS easier to override by prepend/append nodes
34
32
  notDisabled: "\n &:where([for]) {\n cursor: pointer;\n }\n ",
35
- invalid: /*#__PURE__*/css("color:", isRefreshVariant ? euiTheme.colors.textDanger : euiTheme.colors.danger, ";;label:invalid;"),
36
- // Focused state should override invalid state
37
- focused: /*#__PURE__*/css("color:", isRefreshVariant ? '' : euiTheme.colors.primary, ";;label:focused;")
33
+ invalid: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:invalid;")
38
34
  };
39
35
  };
@@ -7,11 +7,9 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { isEuiThemeRefreshVariant } from '../../../services';
11
10
  export var euiRangeInputStyles = function euiRangeInputStyles(euiThemeContext) {
12
11
  var euiTheme = euiThemeContext.euiTheme;
13
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
14
12
  return {
15
- euiRangeInput: /*#__PURE__*/css("inline-size:auto;min-inline-size:", euiTheme.base * (isRefreshVariant ? 3.5 : 4), "px;.euiRange__popover &,.euiDualRange__popover &{inline-size:100%;};label:euiRangeInput;")
13
+ euiRangeInput: /*#__PURE__*/css("inline-size:auto;min-inline-size:", euiTheme.base * 3.5, "px;.euiRange__popover &,.euiDualRange__popover &{inline-size:100%;};label:euiRangeInput;")
16
14
  };
17
15
  };
@@ -9,7 +9,7 @@
9
9
  import { css } from '@emotion/react';
10
10
  import { euiShadowXSmall } from '@elastic/eui-theme-common';
11
11
  import { logicalCSS } from '../../global_styling';
12
- import { isEuiThemeRefreshVariant, makeHighContrastColor } from '../../services';
12
+ import { makeHighContrastColor } from '../../services';
13
13
  export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
14
14
  var euiTheme = euiThemeContext.euiTheme;
15
15
  return {
@@ -45,24 +45,9 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
45
45
  * It's also possible that the dark header will go away or become unused
46
46
  * by Kibana in the near future, at which point we can remove this
47
47
  */
48
- import { euiFormVariables } from '../form/form.styles';
48
+
49
49
  var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
50
- var euiTheme = euiThemeContext.euiTheme,
51
- highContrastMode = euiThemeContext.highContrastMode;
52
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
53
- var _euiFormVariables = euiFormVariables(euiThemeContext),
54
- controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
50
+ var euiTheme = euiThemeContext.euiTheme;
55
51
  var backgroundColor = euiTheme.components.headerDarkBackground;
56
-
57
- // Specific color overrides for EuiSelectableTemplateSitewide
58
- var selectableSitewide = {
59
- color: euiTheme.colors.ghost,
60
- borderColor: euiTheme.components.headerDarkSearchBorderColor,
61
- placeholderColor: makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor)
62
- };
63
- var formLayoutStyles = "\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(
64
- // the header is in a faux dark mode, we can't rely on color
65
- // switch tokens as they'd be in the wrong color mode
66
- highContrastMode ? euiTheme.colors.plainLight : euiTheme.components.headerDarkSearchBorderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &__append {\n border-color: ").concat(highContrastMode ? euiTheme.colors.plainLight : '', "\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
67
- return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n ").concat(!isRefreshVariant && formLayoutStyles, " \n ");
52
+ return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n ");
68
53
  };
@@ -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 { logicalCSS, logicalSizeCSS, mathWithUnits, euiMaxBreakpoint } from '../../../global_styling';
13
12
  import { euiHeaderVariables } from '../header.styles';
14
13
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -31,14 +30,13 @@ export var euiHeaderSectionItemButtonStyles = function euiHeaderSectionItemButto
31
30
  var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
32
31
  childHeight = _euiHeaderVariables.childHeight;
33
32
  var euiTheme = euiThemeContext.euiTheme;
34
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
35
33
  var dotSize = euiTheme.size.base;
36
- var dotOffset = isRefreshVariant ? mathWithUnits(dotSize, function (x) {
34
+ var dotOffset = mathWithUnits(dotSize, function (x) {
37
35
  return x * -0.5;
38
- }) : 0;
39
- var badgeOffset = isRefreshVariant ? mathWithUnits(euiTheme.size.s, function (x) {
36
+ });
37
+ var badgeOffset = mathWithUnits(euiTheme.size.s, function (x) {
40
38
  return x * -0.5;
41
- }) : '9%';
39
+ });
42
40
  return {
43
41
  euiHeaderSectionItemButton: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " ", logicalCSS('min-width', childHeight), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " text-align:center;font-size:0;", euiMaxBreakpoint(euiThemeContext, 's'), "{", logicalCSS('min-width', mathWithUnits(childHeight, function (x) {
44
42
  return x * 0.75;
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _inherits from "@babel/runtime/helpers/inherits";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
- var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad", "style", "stylesMemoizer"];
9
+ var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "role", "onIconLoad", "style", "stylesMemoizer", "aria-hidden", "titleId"];
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
@@ -175,9 +175,12 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
175
175
  className = _this$props.className,
176
176
  tabIndex = _this$props.tabIndex,
177
177
  title = _this$props.title,
178
+ role = _this$props.role,
178
179
  onIconLoad = _this$props.onIconLoad,
179
180
  style = _this$props.style,
180
181
  stylesMemoizer = _this$props.stylesMemoizer,
182
+ ariaHidden = _this$props['aria-hidden'],
183
+ titleId = _this$props.titleId,
181
184
  rest = _objectWithoutProperties(_this$props, _excluded);
182
185
  var _this$state = this.state,
183
186
  isLoading = _this$state.isLoading,
@@ -202,41 +205,55 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
202
205
  var styles = stylesMemoizer(euiIconStyles);
203
206
  var cssStyles = [styles.euiIcon, styles[size], color && isNamedColor(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
204
207
  var icon = this.state.icon || empty;
208
+ var isAriaHidden = [true, 'true'].includes(ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : false);
209
+ var isPresentationOnly = !(title || this.props['aria-label'] || this.props['aria-labelledby']) || ['none', 'presentation'].includes(role !== null && role !== void 0 ? role : '') || isAriaHidden;
210
+ var accessibleTitle = isPresentationOnly ? undefined : title;
211
+
212
+ // implicitly set the ARIA role for the icon only if:
213
+ // - The user did NOT provide a `role` prop
214
+ // - `aria-hidden` is NOT true
215
+ // This ensures user-supplied `role` and `aria-hidden` always take precedence.
216
+ // If set, role is:
217
+ // - 'presentation' for decorative icons
218
+ // - 'img' for meaningful icons
219
+ var accessibleRole = function () {
220
+ if (isAriaHidden) return undefined;
221
+ if (isPresentationOnly) return 'presentation';
222
+ return 'img';
223
+ }();
205
224
  if (typeof icon === 'string') {
206
225
  return ___EmotionJSX("img", _extends({
207
- alt: title ? title : '',
226
+ alt: accessibleTitle,
208
227
  src: icon,
209
228
  className: classes,
210
229
  css: cssStyles,
211
230
  style: style,
212
- tabIndex: tabIndex
231
+ tabIndex: tabIndex,
232
+ role: role !== null && role !== void 0 ? role : accessibleRole,
233
+ "aria-hidden": ariaHidden
213
234
  }, rest));
214
235
  } else {
215
236
  var Svg = icon;
216
237
 
217
- // If there is no aria-label, aria-labelledby, or title it gets aria-hidden true
218
- var isAriaHidden = !(this.props['aria-label'] || this.props['aria-labelledby'] || this.props.title);
219
-
220
238
  // If no aria-label or aria-labelledby is provided but there's a title, a titleId is generated
221
239
  // The svg aria-labelledby attribute gets this titleId
222
240
  // The svg title element gets this titleId as an id
223
- var titleId = !this.props['aria-label'] && !this.props['aria-labelledby'] && title ? {
224
- titleId: generateId()
241
+ var accessibleTitleId = !this.props['aria-label'] && !this.props['aria-labelledby'] && title ? {
242
+ titleId: titleId || generateId()
225
243
  } : undefined;
226
244
  return ___EmotionJSX(Svg, _extends({
227
245
  className: classes,
228
246
  style: optionalCustomStyles,
229
247
  css: cssStyles,
230
248
  tabIndex: tabIndex,
231
- role: "img",
232
- title: title
233
- }, titleId, {
249
+ title: accessibleTitle,
250
+ role: role !== null && role !== void 0 ? role : accessibleRole,
251
+ "aria-hidden": ariaHidden
252
+ }, accessibleTitleId, {
234
253
  "data-icon-type": iconTitle,
235
254
  "data-is-loaded": isLoaded || undefined,
236
255
  "data-is-loading": isLoading || undefined
237
- }, rest, {
238
- "aria-hidden": isAriaHidden || rest['aria-hidden']
239
- }));
256
+ }, rest));
240
257
  }
241
258
  }
242
259
  }]);
@@ -501,7 +501,7 @@ export var typeToPathMap = {
501
501
  vulnerabilityManagementApp: 'app_vulnerability_management',
502
502
  warning: 'warning',
503
503
  warningFilled: 'warning',
504
- // NOTE: To be deprecated in favor of `export`
504
+ // NOTE: To be deprecated in favor of `warning`
505
505
  watchesApp: 'app_watches',
506
506
  web: 'web',
507
507
  wordWrap: 'wordWrap',
@@ -7,35 +7,31 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { euiShadow } from '@elastic/eui-theme-common';
11
10
  import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
12
11
  import { highContrastModeStyles } from '../../global_styling/functions/high_contrast';
13
12
  import { euiScreenReaderOnly } from '../accessibility';
14
13
  import { euiKeyPadMenuVariables } from './key_pad_menu.styles';
15
14
  export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
16
- var _euiTheme$flags;
17
15
  var euiTheme = euiThemeContext.euiTheme;
18
16
  var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
19
17
  euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
20
- var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
21
- var focusTransformStyles = "\n ".concat(euiShadow(euiThemeContext, 's'), ";\n\n ").concat(euiCanAnimate, " {\n .euiKeyPadMenuItem__icon {\n transform: translateY(0);\n }\n }\n ");
22
18
  return {
23
19
  euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.textParagraph, ";", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
24
- enabled: /*#__PURE__*/css("&:is(:hover, :focus, :focus-within){cursor:pointer;text-decoration:underline;", highContrastModeStyles(euiThemeContext, {
20
+ enabled: /*#__PURE__*/css("&:is(:hover, :focus, :focus-within){cursor:pointer;text-decoration:underline;background-color:", euiTheme.colors.backgroundBaseInteractiveHover, ";", highContrastModeStyles(euiThemeContext, {
25
21
  // Use `outline` instead of border to avoid affecting absolutely positioned children
26
22
  preferred: "\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.primary, ";\n ")
27
- }), " ", hasVisColorAdjustment ? focusTransformStyles : "background-color: ".concat(euiTheme.colors.backgroundBaseInteractiveHover), ";}&:focus{box-shadow:none;background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
28
- selected: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : '', ";&:is(*, :hover, :focus, :focus-within){color:", euiTheme.colors.textPrimary, ";background-color:", !hasVisColorAdjustment ? euiTheme.colors.backgroundBaseInteractiveSelect : '', ";", highContrastModeStyles(euiThemeContext, {
23
+ }), ";}&:focus{box-shadow:none;background-color:", euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
24
+ selected: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";&:is(*, :hover, :focus, :focus-within){color:", euiTheme.colors.textPrimary, ";background-color:", euiTheme.colors.backgroundBaseInteractiveSelect, ";", highContrastModeStyles(euiThemeContext, {
29
25
  // Skip checkable items (which render a <label> instead of <button>/<a>),
30
26
  // as they already have sufficient indication of state (checkbox or radio)
31
27
  preferred: "\n &:not(label) {\n outline: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.primary, ";\n outline-offset: 0;\n }\n ")
32
28
  }), ";};label:selected;"),
33
29
  disabled: {
34
30
  disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";", highContrastModeStyles(euiThemeContext, {
35
- none: "\n .euiKeyPadMenuItem__icon {\n filter: ".concat(hasVisColorAdjustment ? 'grayscale(100%)' : '', ";\n\n svg * {\n fill: ").concat(euiTheme.colors.textDisabled, ";\n }\n }\n "),
31
+ none: "\n .euiKeyPadMenuItem__icon {\n svg * {\n fill: ".concat(euiTheme.colors.textDisabled, ";\n }\n }\n "),
36
32
  forced: 'opacity: 0.5;'
37
33
  }), ";;label:disabled;"),
38
- selected: /*#__PURE__*/css("background-color:", hasVisColorAdjustment ? euiTheme.components.keyPadMenuItemBackgroundDisabledSelect : euiTheme.colors.backgroundBaseDisabled, ";", highContrastModeStyles(euiThemeContext, {
34
+ selected: /*#__PURE__*/css("background-color:", euiTheme.colors.backgroundBaseDisabled, ";", highContrastModeStyles(euiThemeContext, {
39
35
  preferred: "\n &:not(label) {\n outline: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.textDisabled, ";\n }\n ")
40
36
  }), ";;label:selected;")
41
37
  }
@@ -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 { logicalCSS } from '../../global_styling';
13
12
  import { euiMarkdownEditorVariables } from './markdown_editor.styles';
14
13
  import { euiFormControlInvalidStyles } from '../form/form.styles';
@@ -22,14 +21,13 @@ var _ref = process.env.NODE_ENV === "production" ? {
22
21
  };
23
22
  export var euiMarkdownEditorDropZoneStyles = function euiMarkdownEditorDropZoneStyles(euiThemeContext) {
24
23
  var euiTheme = euiThemeContext.euiTheme;
25
- var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
26
24
  var _euiMarkdownEditorVar = euiMarkdownEditorVariables(euiThemeContext),
27
25
  minHeight = _euiMarkdownEditorVar.minHeight;
28
26
  return {
29
27
  euiMarkdownEditorDropZone: /*#__PURE__*/css("position:relative;display:flex;flex-direction:column;", logicalCSS('min-height', minHeight), ";;label:euiMarkdownEditorDropZone;"),
30
- isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", isRefreshVariant ? euiTheme.colors.backgroundBasePrimary : euiTheme.colors.backgroundTransparentPrimary, "!important;};label:isDragging;"),
31
- isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", isRefreshVariant ? euiTheme.colors.backgroundBaseDanger : euiTheme.colors.backgroundTransparentDanger, "!important;};label:isDraggingError;"),
32
- hasError: /*#__PURE__*/css(".euiMarkdownEditorTextArea{--euiFormControlStateColor:", euiTheme.colors.danger, ";background-size:100% 100%;", isRefreshVariant && euiFormControlInvalidStyles(euiThemeContext), ";};label:hasError;"),
28
+ isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundBasePrimary, "!important;};label:isDragging;"),
29
+ isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundBaseDanger, "!important;};label:isDraggingError;"),
30
+ hasError: /*#__PURE__*/css(".euiMarkdownEditorTextArea{--euiFormControlStateColor:", euiTheme.colors.danger, ";background-size:100% 100%;", euiFormControlInvalidStyles(euiThemeContext), ";};label:hasError;"),
33
31
  euiMarkdownEditorDropZone__input: _ref
34
32
  };
35
33
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "role", "style", "focusTrapProps", "aria-describedby"];
4
+ var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "role", "style", "focusTrapProps", "outsideClickCloses", "aria-describedby"];
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  /*
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  * Side Public License, v 1.
13
13
  */
14
14
 
15
- import React from 'react';
15
+ import React, { useRef, useCallback } from 'react';
16
16
  import classnames from 'classnames';
17
17
  import { keys, useEuiTheme, useGeneratedHtmlId } from '../../services';
18
18
  import { isDOMNode } from '../../utils';
@@ -34,6 +34,8 @@ export var EuiModal = function EuiModal(_ref) {
34
34
  role = _ref$role === void 0 ? 'dialog' : _ref$role,
35
35
  style = _ref.style,
36
36
  focusTrapProps = _ref.focusTrapProps,
37
+ _ref$outsideClickClos = _ref.outsideClickCloses,
38
+ outsideClickCloses = _ref$outsideClickClos === void 0 ? false : _ref$outsideClickClos,
37
39
  _ariaDescribedBy = _ref['aria-describedby'],
38
40
  rest = _objectWithoutProperties(_ref, _excluded);
39
41
  var onKeyDown = function onKeyDown(event) {
@@ -45,6 +47,14 @@ export var EuiModal = function EuiModal(_ref) {
45
47
  }
46
48
  }
47
49
  };
50
+ var maskRef = useRef(null);
51
+ var onClickOutside = useCallback(function (event) {
52
+ // The overlay mask is always present
53
+ if (outsideClickCloses === true && event.target === maskRef.current) {
54
+ onClose(event);
55
+ }
56
+ return undefined;
57
+ }, [onClose, outsideClickCloses]);
48
58
  var newStyle = style;
49
59
  if (typeof maxWidth !== 'boolean') {
50
60
  newStyle = _objectSpread(_objectSpread({}, newStyle), {}, {
@@ -64,10 +74,13 @@ export var EuiModal = function EuiModal(_ref) {
64
74
  token: "euiModal.screenReaderModalDialog",
65
75
  default: "You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close."
66
76
  })));
67
- return ___EmotionJSX(EuiOverlayMask, null, ___EmotionJSX(EuiFocusTrap, _extends({}, focusTrapProps, {
77
+ return ___EmotionJSX(EuiOverlayMask, {
78
+ maskRef: maskRef
79
+ }, ___EmotionJSX(EuiFocusTrap, _extends({}, focusTrapProps, {
68
80
  initialFocus: initialFocus,
69
81
  scrollLock: true,
70
- preventScrollOnFocus: true
82
+ preventScrollOnFocus: true,
83
+ onClickOutside: onClickOutside
71
84
  }), ___EmotionJSX("div", _extends({
72
85
  css: cssStyles,
73
86
  className: classes,