@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
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiFormControlLayoutStyles = exports.euiFormControlLayoutSideNodeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _high_contrast = require("../../../global_styling/functions/high_contrast");
11
10
  var _form = require("../form.styles");
@@ -34,12 +33,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
34
33
  };
35
34
  var euiFormControlLayoutStyles = exports.euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiThemeContext) {
36
35
  var euiTheme = euiThemeContext.euiTheme;
37
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
38
36
  var form = (0, _form.euiFormVariables)(euiThemeContext);
39
- var groupStyles = "\n /* use pseudo element for borders to prevent dimension changes and support nested elements better */\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 0;\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n border-radius: inherit;\n pointer-events: none;\n }\n\n /* the filter group will use the form layout border instead */\n .euiFilterGroup {\n border-radius: 0;\n /* creating extra space to prevent the focus indicator being cut off */\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.border.width.thin), "\n\n &::after {\n display: none;\n }\n }\n\n .euiFilterButton__wrapper:first-of-type::before,\n .euiFilterButton__wrapper::after {\n display: none;\n }\n ");
40
- var wrapperGroupStyles = "\n > :first-child {\n border-radius: inherit;\n ".concat((0, _global_styling.logicalCSS)('border-top-left-radius', '0'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', '0'), "\n }\n\n > :last-child {\n border-radius: inherit;\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', '0'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', '0'), "\n }\n ");
41
- var prependOnlyStyles = "\n > :last-child {\n ".concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n ");
42
- var appendOnlyStyles = "\n > :first-child {\n ".concat((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), "\n }\n ");
43
37
  return {
44
38
  euiFormControlLayout: _ref2,
45
39
  // Skip the css`` on the default height to avoid generating a className
@@ -49,41 +43,34 @@ var euiFormControlLayoutStyles = exports.euiFormControlLayoutStyles = function e
49
43
  formWidth: "\n ".concat((0, _global_styling.logicalCSS)('max-width', form.maxWidth), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n "),
50
44
  fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
51
45
  group: {
52
- group: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;align-items:stretch;border:", isRefreshVariant ? 'none' : "".concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor), ";background-color:", form.backgroundColor, ";overflow:hidden;", isRefreshVariant && groupStyles, " .euiFormControlButton{border-radius:inherit;box-shadow:none;}>*{", (0, _global_styling.logicalCSS)('height', '100%'), ";};label:group;"),
46
+ group: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;align-items:stretch;border:none;background-color:", form.backgroundColor, ";overflow:hidden;&::after{content:'';position:absolute;inset:0;z-index:0;border:", euiTheme.border.width.thin, " solid ", form.borderColor, ";border-radius:inherit;pointer-events:none;}.euiFilterGroup{border-radius:0;", (0, _global_styling.logicalCSS)('padding-right', euiTheme.border.width.thin), " &::after{display:none;}}.euiFilterButton__wrapper:first-of-type::before,.euiFilterButton__wrapper::after{display:none;}.euiFormControlButton{border-radius:inherit;box-shadow:none;}>*{", (0, _global_styling.logicalCSS)('height', '100%'), ";};label:group;"),
53
47
  // Skipping css`` to avoid repeated compressed/uncompressed classNames
54
48
  uncompressed: "\n border-radius: ".concat(form.controlBorderRadius, ";\n "),
55
49
  compressed: "\n border-radius: ".concat(form.controlCompressedBorderRadius, ";\n ")
56
50
  },
57
51
  children: {
58
52
  euiFormControlLayout__childrenWrapper: _ref,
59
- inGroup: /*#__PURE__*/(0, _react.css)("flex-grow:1;overflow:hidden;", isRefreshVariant && wrapperGroupStyles, ";;label:inGroup;"),
60
- prependOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), " ", isRefreshVariant && prependOnlyStyles, ";;label:prependOnly;"),
61
- appendOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), " ", isRefreshVariant && appendOnlyStyles, ";;label:appendOnly;")
53
+ inGroup: /*#__PURE__*/(0, _react.css)("flex-grow:1;overflow:hidden;>:first-child{border-radius:inherit;", (0, _global_styling.logicalCSS)('border-top-left-radius', '0'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', '0'), ";}>:last-child{border-radius:inherit;", (0, _global_styling.logicalCSS)('border-top-right-radius', '0'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', '0'), ";};label:inGroup;"),
54
+ prependOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ">:last-child{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";};label:prependOnly;"),
55
+ appendOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ">:first-child{", (0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ";};label:appendOnly;")
62
56
  }
63
57
  };
64
58
  };
65
59
  var euiFormControlLayoutSideNodeStyles = exports.euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSideNodeStyles(euiThemeContext) {
66
60
  var euiTheme = euiThemeContext.euiTheme;
67
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
68
61
  var form = (0, _form.euiFormVariables)(euiThemeContext);
69
- var uncompressedHeight = (0, _global_styling.mathWithUnits)([form.controlHeight, euiTheme.border.width.thin], function (x, y) {
70
- return isRefreshVariant ? x : x - y * 2;
71
- });
72
- var compressedHeight = (0, _global_styling.mathWithUnits)([form.controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
73
- return isRefreshVariant ? x : x - y * 2;
74
- });
62
+ var uncompressedHeight = form.controlHeight;
63
+ var compressedHeight = form.controlCompressedHeight;
75
64
  var buttons = '*:is(.euiButton, .euiButtonEmpty, .euiButtonIcon)';
76
65
  var text = '*:is(.euiFormLabel, .euiText)';
77
- var appendStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
78
- var prependStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
79
66
  return {
80
67
  euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
81
68
  append: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
82
- none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
69
+ none: "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n "),
83
70
  preferred: (0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin)
84
71
  }), ";label:append;"),
85
72
  prepend: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
86
- none: "\n ".concat(isRefreshVariant && prependStyles, "\n "),
73
+ none: "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n "),
87
74
  preferred: (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin)
88
75
  }), ";label:prepend;"),
89
76
  uncompressed: "\n ".concat(text, " {\n ").concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), "\n line-height: ").concat(uncompressedHeight, ";\n }\n\n ").concat(buttons, " {\n ").concat((0, _global_styling.logicalCSS)('height', uncompressedHeight), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat((0, _global_styling.logicalCSS)('width', euiTheme.size.xl), "\n }\n "),
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.EuiFormControlLayoutClearButtonStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
- var _services = require("../../../services");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
11
  * or more contributor license agreements. Licensed under the Elastic License
@@ -18,10 +17,9 @@ var _services = require("../../../services");
18
17
  var EuiFormControlLayoutClearButtonStyles = exports.EuiFormControlLayoutClearButtonStyles = function EuiFormControlLayoutClearButtonStyles(euiThemeContext) {
19
18
  var euiTheme = euiThemeContext.euiTheme,
20
19
  highContrastMode = euiThemeContext.highContrastMode;
21
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
22
20
  var backgroundColor = highContrastMode ? euiTheme.colors.darkShade : euiTheme.components.forms.clearButtonBackground;
23
21
  return {
24
- euiFormControlLayoutClearButton: /*#__PURE__*/(0, _react.css)("pointer-events:all;display:flex;justify-content:center;align-items:center;border-radius:50%;border-style:solid;border-color:", backgroundColor, ";&:disabled{cursor:not-allowed;background-color:", isRefreshVariant ? euiTheme.colors.backgroundBaseDisabled : euiTheme.colors.disabled, ";};label:euiFormControlLayoutClearButton;"),
22
+ euiFormControlLayoutClearButton: /*#__PURE__*/(0, _react.css)("pointer-events:all;display:flex;justify-content:center;align-items:center;border-radius:50%;border-style:solid;border-color:", backgroundColor, ";&:disabled{cursor:not-allowed;background-color:", euiTheme.colors.backgroundBaseDisabled, ";};label:euiFormControlLayoutClearButton;"),
25
23
  size: {
26
24
  s: "\n ".concat((0, _global_styling.logicalSizeCSS)(euiTheme.size.m), "\n border-width: ").concat((0, _global_styling.mathWithUnits)(euiTheme.size.m, function (x) {
27
25
  return x / 2;
@@ -36,8 +36,6 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
36
36
  className = _ref.className,
37
37
  _fullWidth = _ref.fullWidth,
38
38
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
- var euiThemeContext = (0, _services.useEuiTheme)();
40
- var isRefreshVariant = (0, _services.useEuiThemeRefreshVariant)('formVariant');
41
39
  var _useFormContext = (0, _eui_form_context.useFormContext)(),
42
40
  defaultFullWidth = _useFormContext.defaultFullWidth;
43
41
  var fullWidth = _fullWidth !== null && _fullWidth !== void 0 ? _fullWidth : defaultFullWidth;
@@ -50,7 +48,7 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
50
48
  });
51
49
  var styles = (0, _services.useEuiMemoizedStyles)(_form_control_layout_delimited.euiFormControlLayoutDelimitedStyles);
52
50
  var cssStyles = [styles.delimited, rest.isDisabled && styles.disabled, rest.readOnly && styles.readOnly];
53
- var wrapperStyles = [styles.childrenWrapper.delimited, showInvalidState && styles.childrenWrapper.invalid, (_rest$wrapperProps = rest.wrapperProps) === null || _rest$wrapperProps === void 0 ? void 0 : _rest$wrapperProps.css, isRefreshVariant && rest.readOnly && styles.childrenWrapper.readOnly];
51
+ var wrapperStyles = [styles.childrenWrapper.delimited, showInvalidState && styles.childrenWrapper.invalid, (_rest$wrapperProps = rest.wrapperProps) === null || _rest$wrapperProps === void 0 ? void 0 : _rest$wrapperProps.css, rest.readOnly && styles.childrenWrapper.readOnly];
54
52
  return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, (0, _extends2.default)({
55
53
  isDelimited: true,
56
54
  css: cssStyles,
@@ -65,14 +63,14 @@ var EuiFormControlLayoutDelimited = exports.EuiFormControlLayoutDelimited = func
65
63
  value: {
66
64
  defaultFullWidth: fullWidth
67
65
  }
68
- }, startControl && addClassesToControl(euiThemeContext, startControl), (0, _react2.jsx)(EuiFormControlDelimiter, {
66
+ }, startControl && addClassesToControl(startControl), (0, _react2.jsx)(EuiFormControlDelimiter, {
69
67
  delimiter: delimiter,
70
68
  isInvalid: showInvalidState
71
- }), endControl && addClassesToControl(euiThemeContext, endControl)));
69
+ }), endControl && addClassesToControl(endControl)));
72
70
  };
73
- var addClassesToControl = function addClassesToControl(euiThemeContext, control) {
71
+ var addClassesToControl = function addClassesToControl(control) {
74
72
  return (0, _services.cloneElementWithCss)(control, {
75
- css: (0, _form_control_layout_delimited.euiFormControlLayoutDelimited__input)(euiThemeContext),
73
+ css: _form_control_layout_delimited.euiFormControlLayoutDelimited__input,
76
74
  className: (0, _classnames.default)(control.props.className, 'euiFormControlLayoutDelimited__input')
77
75
  }, 'before');
78
76
  };
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiFormControlLayoutDelimited__input = exports.euiFormControlLayoutDelimited__delimiter = exports.euiFormControlLayoutDelimitedStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _form = require("../form.styles");
11
10
  /*
@@ -18,46 +17,34 @@ var _form = require("../form.styles");
18
17
 
19
18
  var euiFormControlLayoutDelimitedStyles = exports.euiFormControlLayoutDelimitedStyles = function euiFormControlLayoutDelimitedStyles(euiThemeContext) {
20
19
  var highContrastMode = euiThemeContext.highContrastMode;
21
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
22
20
  var form = (0, _form.euiFormVariables)(euiThemeContext);
23
- var invalidStyles = isRefreshVariant ? "\n :not(.euiFormControlLayoutDelimited__input, .euiFormControlLayoutDelimited__delimiter) {\n ".concat((0, _form.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((0, _form.euiFormControlInvalidStyles)(euiThemeContext), ";\n ");
24
- var readOnlyStyles = "\n & .euiFormControlLayoutDelimited__input {\n outline: none; \n box-shadow: none;\n --euiFormControlStateColor: transparent;\n }\n ";
25
21
  var delimitedStyles = "\n /* Transition smoothly between disabled/readOnly background color changes */\n ".concat((0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
26
- withBorder: isRefreshVariant && !highContrastMode ? true : false,
27
- withBackground: false,
28
- withBackgroundAnimation: isRefreshVariant ? false : true
22
+ withBorder: !highContrastMode ? true : false,
23
+ withBackground: false
29
24
  }), "\n ").trim();
30
- var delimitedWrapperStyles = "\n ".concat((0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
31
- withBorder: !highContrastMode,
32
- withBackground: false,
33
- withBackgroundAnimation: true
34
- }), "\n \n &:hover {\n ").concat((0, _form.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((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), "\n }\n\n > :last-child {\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n ");
35
25
  return {
36
26
  // Appended onto existing `euiFormControlLayout` styles
37
27
  delimited: /*#__PURE__*/(0, _react.css)(delimitedStyles, ";label:delimited;"),
38
28
  disabled: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDisabledStyles)(euiThemeContext), ";label:disabled;"),
39
- readOnly: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlReadOnlyStyles)(euiThemeContext), " ", isRefreshVariant && readOnlyStyles, ";;label:readOnly;"),
29
+ readOnly: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlReadOnlyStyles)(euiThemeContext), " & .euiFormControlLayoutDelimited__input{--euiFormControlStateColor:transparent;outline:none;box-shadow:none;};label:readOnly;"),
40
30
  // Appended onto existing `euiFormControlLayout__childrenWrapper` styles
41
31
  childrenWrapper: {
42
- delimited: /*#__PURE__*/(0, _react.css)("display:flex;", isRefreshVariant && delimitedWrapperStyles, ";;label:delimited;"),
32
+ delimited: /*#__PURE__*/(0, _react.css)("display:flex;", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
33
+ withBorder: !highContrastMode,
34
+ withBackground: false
35
+ }), " &:hover{", (0, _form.euiFormControlHoverStyles)(euiThemeContext), " box-shadow:none;.euiFormControlLayoutDelimited__input:not(:focus){outline:none;background-color:transparent;}}>:first-child{", (0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ";}>:last-child{", (0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";};label:delimited;"),
43
36
  invalid: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
44
37
  withBorder: false,
45
- withBackgroundColor: false,
46
- withBackgroundAnimation: false
47
- }), "\n ".concat(invalidStyles, "\n "), ";label:invalid;"),
38
+ withBackgroundColor: false
39
+ }), "\n :not(.euiFormControlLayoutDelimited__input, .euiFormControlLayoutDelimited__delimiter) {\n ".concat((0, _form.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;"),
48
40
  readOnly: /*#__PURE__*/(0, _react.css)(";label:readOnly;")
49
41
  }
50
42
  };
51
43
  };
52
44
  var euiFormControlLayoutDelimited__delimiter = exports.euiFormControlLayoutDelimited__delimiter = function euiFormControlLayoutDelimited__delimiter(euiThemeContext) {
53
45
  var euiTheme = euiThemeContext.euiTheme;
54
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
55
- var experimentalStyles = isRefreshVariant && "\n ".concat((0, _global_styling.logicalCSS)('padding-horizontal', (0, _global_styling.mathWithUnits)([euiTheme.size.xs, euiTheme.size.xxs], function (x, y) {
46
+ return /*#__PURE__*/(0, _react.css)("display:flex;align-self:stretch;flex-grow:0;align-items:center;line-height:1;", (0, _global_styling.logicalCSS)('padding-horizontal', (0, _global_styling.mathWithUnits)([euiTheme.size.xs, euiTheme.size.xxs], function (x, y) {
56
47
  return x + y;
57
- })), "\n ");
58
- return /*#__PURE__*/(0, _react.css)("display:flex;align-self:stretch;flex-grow:0;align-items:center;line-height:1;", experimentalStyles, ";;label:euiFormControlLayoutDelimited__delimiter;");
48
+ })), ";;label:euiFormControlLayoutDelimited__delimiter;");
59
49
  };
60
- var euiFormControlLayoutDelimited__input = exports.euiFormControlLayoutDelimited__input = function euiFormControlLayoutDelimited__input(euiThemeContext) {
61
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
62
- return /*#__PURE__*/(0, _react.css)("box-shadow:none;border:none;border-radius:", isRefreshVariant ? '' : '0', ";text-align:center;", (0, _global_styling.logicalCSS)('height', '100%'), ";;label:euiFormControlLayoutDelimited__input;");
63
- };
50
+ var euiFormControlLayoutDelimited__input = exports.euiFormControlLayoutDelimited__input = /*#__PURE__*/(0, _react.css)("box-shadow:none;border:none;text-align:center;", (0, _global_styling.logicalCSS)('height', '100%'), ";;label:euiFormControlLayoutDelimited__input;");
@@ -72,7 +72,6 @@ var EuiFormControlLayoutIcons = exports.EuiFormControlLayoutIcons = /*#__PURE__*
72
72
  value: function renderCustomIcon() {
73
73
  var _this$props2 = this.props,
74
74
  icon = _this$props2.icon,
75
- compressed = _this$props2.compressed,
76
75
  isDisabled = _this$props2.isDisabled;
77
76
  if (!icon) {
78
77
  return null;
@@ -85,84 +84,63 @@ var EuiFormControlLayoutIcons = exports.EuiFormControlLayoutIcons = /*#__PURE__*
85
84
  var iconRef = iconProps.ref,
86
85
  side = iconProps.side,
87
86
  iconRest = (0, _objectWithoutProperties2.default)(iconProps, _excluded);
88
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
89
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
90
- return (0, _react2.jsx)(_form_control_layout_custom_icon.EuiFormControlLayoutCustomIcon, (0, _extends2.default)({
91
- size: compressed && !isRefreshVariant ? 's' : 'm',
92
- disabled: isDisabled,
93
- iconRef: iconRef
94
- }, iconRest));
95
- });
87
+ return (0, _react2.jsx)(_form_control_layout_custom_icon.EuiFormControlLayoutCustomIcon, (0, _extends2.default)({
88
+ size: "m",
89
+ disabled: isDisabled,
90
+ iconRef: iconRef
91
+ }, iconRest));
96
92
  }
97
93
  }, {
98
94
  key: "renderDropdownIcon",
99
95
  value: function renderDropdownIcon() {
100
96
  var _this$props3 = this.props,
101
97
  isDropdown = _this$props3.isDropdown,
102
- compressed = _this$props3.compressed,
103
98
  isDisabled = _this$props3.isDisabled;
104
99
  if (!isDropdown) {
105
100
  return null;
106
101
  }
107
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
108
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
109
- return (0, _react2.jsx)(_form_control_layout_custom_icon.EuiFormControlLayoutCustomIcon, {
110
- size: compressed && !isRefreshVariant ? 's' : 'm',
111
- disabled: isDisabled,
112
- type: "arrowDown"
113
- });
102
+ return (0, _react2.jsx)(_form_control_layout_custom_icon.EuiFormControlLayoutCustomIcon, {
103
+ size: "m",
104
+ disabled: isDisabled,
105
+ type: "arrowDown"
114
106
  });
115
107
  }
116
108
  }, {
117
109
  key: "renderLoadingSpinner",
118
110
  value: function renderLoadingSpinner() {
119
- var _this$props4 = this.props,
120
- isLoading = _this$props4.isLoading,
121
- compressed = _this$props4.compressed;
111
+ var isLoading = this.props.isLoading;
122
112
  if (!isLoading) {
123
113
  return null;
124
114
  }
125
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
126
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
127
- return (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
128
- size: compressed && !isRefreshVariant ? 's' : 'm'
129
- });
115
+ return (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
116
+ size: "m"
130
117
  });
131
118
  }
132
119
  }, {
133
120
  key: "renderClearButton",
134
121
  value: function renderClearButton() {
135
- var _this$props5 = this.props,
136
- clear = _this$props5.clear,
137
- compressed = _this$props5.compressed,
138
- isDisabled = _this$props5.isDisabled;
122
+ var _this$props4 = this.props,
123
+ clear = _this$props4.clear,
124
+ isDisabled = _this$props4.isDisabled;
139
125
  if (!clear) {
140
126
  return null;
141
127
  }
142
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
143
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
144
- return (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, (0, _extends2.default)({
145
- size: compressed && !isRefreshVariant ? 's' : 'm',
146
- disabled: isDisabled
147
- }, clear));
148
- });
128
+ return (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, (0, _extends2.default)({
129
+ size: "m",
130
+ disabled: isDisabled
131
+ }, clear));
149
132
  }
150
133
  }, {
151
134
  key: "renderInvalidIcon",
152
135
  value: function renderInvalidIcon() {
153
- var _this$props6 = this.props,
154
- isInvalid = _this$props6.isInvalid,
155
- compressed = _this$props6.compressed;
136
+ var isInvalid = this.props.isInvalid;
156
137
  if (!isInvalid) {
157
138
  return null;
158
139
  }
159
- return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
160
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
161
- return (0, _react2.jsx)(_icon.EuiIcon, {
162
- size: compressed && !isRefreshVariant ? 's' : 'm',
163
- color: "danger",
164
- type: "warning"
165
- });
140
+ return (0, _react2.jsx)(_icon.EuiIcon, {
141
+ size: "m",
142
+ color: "danger",
143
+ type: "warning"
166
144
  });
167
145
  }
168
146
  }]);
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiFormErrorTextStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  /*
11
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -17,8 +16,7 @@ var _global_styling = require("../../../global_styling");
17
16
 
18
17
  var euiFormErrorTextStyles = exports.euiFormErrorTextStyles = function euiFormErrorTextStyles(euiThemeContext) {
19
18
  var euiTheme = euiThemeContext.euiTheme;
20
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
21
19
  return {
22
- euiFormErrorText: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-top', euiTheme.size.xs), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " color:", isRefreshVariant ? euiTheme.colors.textDanger : euiTheme.colors.danger, ";;label:euiFormErrorText;")
20
+ euiFormErrorText: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-top', euiTheme.size.xs), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " color:", euiTheme.colors.textDanger, ";;label:euiFormErrorText;")
23
21
  };
24
22
  };
@@ -30,7 +30,7 @@ var EuiFormLabel = exports.EuiFormLabel = function EuiFormLabel(_ref) {
30
30
  className = _ref.className,
31
31
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
32
  var styles = (0, _services.useEuiMemoizedStyles)(_form_label.euiFormLabelStyles);
33
- var cssStyles = [styles.euiFormLabel, !isDisabled && styles.notDisabled, isInvalid && styles.invalid, isFocused && styles.focused];
33
+ var cssStyles = [styles.euiFormLabel, !isDisabled && styles.notDisabled, isInvalid && styles.invalid];
34
34
  var classes = (0, _classnames.default)('euiFormLabel', className, {
35
35
  'euiFormLabel-isFocused': isFocused,
36
36
  'euiFormLabel-isInvalid': isInvalid,
@@ -8,7 +8,6 @@ exports.euiFormLabelStyles = exports.euiFormLabel = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = require("@emotion/react");
10
10
  var _serialize = require("@emotion/serialize");
11
- var _services = require("../../../services");
12
11
  var _global_styling = require("../../../global_styling");
13
12
  var _title = require("../../title/title.styles");
14
13
  var _excluded = ["fontWeight"];
@@ -32,14 +31,11 @@ var euiFormLabel = exports.euiFormLabel = function euiFormLabel(euiThemeContext)
32
31
  };
33
32
  var euiFormLabelStyles = exports.euiFormLabelStyles = function euiFormLabelStyles(euiThemeContext) {
34
33
  var euiTheme = euiThemeContext.euiTheme;
35
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
36
34
  return {
37
35
  euiFormLabel: /*#__PURE__*/(0, _react.css)(euiFormLabel(euiThemeContext), " display:inline-block;", _global_styling.euiCanAnimate, "{transition:color ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";};label:euiFormLabel;"),
38
36
  // Skip css`` to avoid generating an extra Emotion className
39
37
  // Use :where to reduce specificity & make the CSS easier to override by prepend/append nodes
40
38
  notDisabled: "\n &:where([for]) {\n cursor: pointer;\n }\n ",
41
- invalid: /*#__PURE__*/(0, _react.css)("color:", isRefreshVariant ? euiTheme.colors.textDanger : euiTheme.colors.danger, ";;label:invalid;"),
42
- // Focused state should override invalid state
43
- focused: /*#__PURE__*/(0, _react.css)("color:", isRefreshVariant ? '' : euiTheme.colors.primary, ";;label:focused;")
39
+ invalid: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:invalid;")
44
40
  };
45
41
  };
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiRangeInputStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  /*
10
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11
10
  * or more contributor license agreements. Licensed under the Elastic License
@@ -16,8 +15,7 @@ var _services = require("../../../services");
16
15
 
17
16
  var euiRangeInputStyles = exports.euiRangeInputStyles = function euiRangeInputStyles(euiThemeContext) {
18
17
  var euiTheme = euiThemeContext.euiTheme;
19
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
20
18
  return {
21
- euiRangeInput: /*#__PURE__*/(0, _react.css)("inline-size:auto;min-inline-size:", euiTheme.base * (isRefreshVariant ? 3.5 : 4), "px;.euiRange__popover &,.euiDualRange__popover &{inline-size:100%;};label:euiRangeInput;")
19
+ euiRangeInput: /*#__PURE__*/(0, _react.css)("inline-size:auto;min-inline-size:", euiTheme.base * 3.5, "px;.euiRange__popover &,.euiDualRange__popover &{inline-size:100%;};label:euiRangeInput;")
22
20
  };
23
21
  };
@@ -8,7 +8,6 @@ var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
9
  var _global_styling = require("../../global_styling");
10
10
  var _services = require("../../services");
11
- var _form = require("../form/form.styles");
12
11
  /*
13
12
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
13
  * or more contributor license agreements. Licensed under the Elastic License
@@ -54,22 +53,7 @@ var euiHeaderStyles = exports.euiHeaderStyles = function euiHeaderStyles(euiThem
54
53
  */
55
54
 
56
55
  var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
57
- var euiTheme = euiThemeContext.euiTheme,
58
- highContrastMode = euiThemeContext.highContrastMode;
59
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
60
- var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
61
- controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
56
+ var euiTheme = euiThemeContext.euiTheme;
62
57
  var backgroundColor = euiTheme.components.headerDarkBackground;
63
-
64
- // Specific color overrides for EuiSelectableTemplateSitewide
65
- var selectableSitewide = {
66
- color: euiTheme.colors.ghost,
67
- borderColor: euiTheme.components.headerDarkSearchBorderColor,
68
- placeholderColor: (0, _services.makeHighContrastColor)(controlPlaceholderText, 8)(backgroundColor)
69
- };
70
- 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(
71
- // the header is in a faux dark mode, we can't rely on color
72
- // switch tokens as they'd be in the wrong color mode
73
- 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 ");
74
- 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((0, _services.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 ");
58
+ 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((0, _services.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 ");
75
59
  };
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiHeaderSectionItemButtonStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _services = require("../../../services");
9
8
  var _global_styling = require("../../../global_styling");
10
9
  var _header = require("../header.styles");
11
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -35,14 +34,13 @@ var euiHeaderSectionItemButtonStyles = exports.euiHeaderSectionItemButtonStyles
35
34
  var _euiHeaderVariables = (0, _header.euiHeaderVariables)(euiThemeContext),
36
35
  childHeight = _euiHeaderVariables.childHeight;
37
36
  var euiTheme = euiThemeContext.euiTheme;
38
- var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
39
37
  var dotSize = euiTheme.size.base;
40
- var dotOffset = isRefreshVariant ? (0, _global_styling.mathWithUnits)(dotSize, function (x) {
38
+ var dotOffset = (0, _global_styling.mathWithUnits)(dotSize, function (x) {
41
39
  return x * -0.5;
42
- }) : 0;
43
- var badgeOffset = isRefreshVariant ? (0, _global_styling.mathWithUnits)(euiTheme.size.s, function (x) {
40
+ });
41
+ var badgeOffset = (0, _global_styling.mathWithUnits)(euiTheme.size.s, function (x) {
44
42
  return x * -0.5;
45
- }) : '9%';
43
+ });
46
44
  return {
47
45
  euiHeaderSectionItemButton: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('height', childHeight), " ", (0, _global_styling.logicalCSS)('min-width', childHeight), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " text-align:center;font-size:0;", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 's'), "{", (0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(childHeight, function (x) {
48
46
  return x * 0.75;
@@ -30,7 +30,7 @@ var _services = require("../../services");
30
30
  var _named_colors = require("./named_colors");
31
31
  var _icon = require("./icon.styles");
32
32
  var _react3 = require("@emotion/react");
33
- var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad", "style", "stylesMemoizer"];
33
+ var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "role", "onIconLoad", "style", "stylesMemoizer", "aria-hidden", "titleId"];
34
34
  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; }
35
35
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36
36
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -194,9 +194,12 @@ var EuiIconClass = exports.EuiIconClass = /*#__PURE__*/function (_PureComponent)
194
194
  className = _this$props.className,
195
195
  tabIndex = _this$props.tabIndex,
196
196
  title = _this$props.title,
197
+ role = _this$props.role,
197
198
  onIconLoad = _this$props.onIconLoad,
198
199
  style = _this$props.style,
199
200
  stylesMemoizer = _this$props.stylesMemoizer,
201
+ ariaHidden = _this$props['aria-hidden'],
202
+ titleId = _this$props.titleId,
200
203
  rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
201
204
  var _this$state = this.state,
202
205
  isLoading = _this$state.isLoading,
@@ -221,41 +224,55 @@ var EuiIconClass = exports.EuiIconClass = /*#__PURE__*/function (_PureComponent)
221
224
  var styles = stylesMemoizer(_icon.euiIconStyles);
222
225
  var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
223
226
  var icon = this.state.icon || _empty.icon;
227
+ var isAriaHidden = [true, 'true'].includes(ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : false);
228
+ var isPresentationOnly = !(title || this.props['aria-label'] || this.props['aria-labelledby']) || ['none', 'presentation'].includes(role !== null && role !== void 0 ? role : '') || isAriaHidden;
229
+ var accessibleTitle = isPresentationOnly ? undefined : title;
230
+
231
+ // implicitly set the ARIA role for the icon only if:
232
+ // - The user did NOT provide a `role` prop
233
+ // - `aria-hidden` is NOT true
234
+ // This ensures user-supplied `role` and `aria-hidden` always take precedence.
235
+ // If set, role is:
236
+ // - 'presentation' for decorative icons
237
+ // - 'img' for meaningful icons
238
+ var accessibleRole = function () {
239
+ if (isAriaHidden) return undefined;
240
+ if (isPresentationOnly) return 'presentation';
241
+ return 'img';
242
+ }();
224
243
  if (typeof icon === 'string') {
225
244
  return (0, _react3.jsx)("img", (0, _extends2.default)({
226
- alt: title ? title : '',
245
+ alt: accessibleTitle,
227
246
  src: icon,
228
247
  className: classes,
229
248
  css: cssStyles,
230
249
  style: style,
231
- tabIndex: tabIndex
250
+ tabIndex: tabIndex,
251
+ role: role !== null && role !== void 0 ? role : accessibleRole,
252
+ "aria-hidden": ariaHidden
232
253
  }, rest));
233
254
  } else {
234
255
  var Svg = icon;
235
256
 
236
- // If there is no aria-label, aria-labelledby, or title it gets aria-hidden true
237
- var isAriaHidden = !(this.props['aria-label'] || this.props['aria-labelledby'] || this.props.title);
238
-
239
257
  // If no aria-label or aria-labelledby is provided but there's a title, a titleId is generated
240
258
  // The svg aria-labelledby attribute gets this titleId
241
259
  // The svg title element gets this titleId as an id
242
- var titleId = !this.props['aria-label'] && !this.props['aria-labelledby'] && title ? {
243
- titleId: generateId()
260
+ var accessibleTitleId = !this.props['aria-label'] && !this.props['aria-labelledby'] && title ? {
261
+ titleId: titleId || generateId()
244
262
  } : undefined;
245
263
  return (0, _react3.jsx)(Svg, (0, _extends2.default)({
246
264
  className: classes,
247
265
  style: optionalCustomStyles,
248
266
  css: cssStyles,
249
267
  tabIndex: tabIndex,
250
- role: "img",
251
- title: title
252
- }, titleId, {
268
+ title: accessibleTitle,
269
+ role: role !== null && role !== void 0 ? role : accessibleRole,
270
+ "aria-hidden": ariaHidden
271
+ }, accessibleTitleId, {
253
272
  "data-icon-type": iconTitle,
254
273
  "data-is-loaded": isLoaded || undefined,
255
274
  "data-is-loading": isLoading || undefined
256
- }, rest, {
257
- "aria-hidden": isAriaHidden || rest['aria-hidden']
258
- }));
275
+ }, rest));
259
276
  }
260
277
  }
261
278
  }]);
@@ -507,7 +507,7 @@ var typeToPathMap = exports.typeToPathMap = {
507
507
  vulnerabilityManagementApp: 'app_vulnerability_management',
508
508
  warning: 'warning',
509
509
  warningFilled: 'warning',
510
- // NOTE: To be deprecated in favor of `export`
510
+ // NOTE: To be deprecated in favor of `warning`
511
511
  watchesApp: 'app_watches',
512
512
  web: 'web',
513
513
  wordWrap: 'wordWrap',