@elastic/eui 95.2.0 → 95.4.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 (399) hide show
  1. package/dist/eui_theme_dark.css +8 -364
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +8 -364
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/avatar/avatar.js +1 -1
  6. package/es/components/badge/badge.js +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  8. package/es/components/basic_table/basic_table.js +1 -1
  9. package/es/components/basic_table/in_memory_table.js +1 -1
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.js +1 -1
  12. package/es/components/button/button_display/_button_display_content.js +1 -1
  13. package/es/components/button/button_empty/button_empty.js +1 -1
  14. package/es/components/button/button_group/button_group.js +1 -1
  15. package/es/components/button/button_group/button_group_button.js +1 -1
  16. package/es/components/button/button_icon/button_icon.js +1 -1
  17. package/es/components/call_out/call_out.js +1 -1
  18. package/es/components/card/card.js +2 -2
  19. package/es/components/card/card_select/card_select.js +1 -1
  20. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  21. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  22. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  23. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  24. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  25. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  26. package/es/components/color_picker/color_palette_display/color_palette_display.js +9 -9
  27. package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +24 -0
  28. package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -0
  29. package/es/components/color_picker/color_palette_display/color_palette_display_fixed.styles.js +14 -0
  30. package/es/components/color_picker/color_palette_picker/color_palette_picker.js +34 -26
  31. package/es/components/color_picker/color_picker.js +26 -39
  32. package/es/components/color_picker/color_picker.styles.js +15 -5
  33. package/es/components/color_picker/color_picker_swatch.js +5 -1
  34. package/es/components/color_picker/color_picker_swatch.styles.js +19 -0
  35. package/es/components/color_picker/hue.js +11 -6
  36. package/es/components/color_picker/hue.styles.js +29 -0
  37. package/es/components/color_picker/saturation.js +29 -16
  38. package/es/components/color_picker/saturation.styles.js +23 -0
  39. package/es/components/comment_list/comment.js +2 -2
  40. package/es/components/comment_list/comment_event.js +1 -1
  41. package/es/components/comment_list/comment_list.js +2 -2
  42. package/es/components/comment_list/comment_timeline.js +1 -1
  43. package/es/components/context_menu/context_menu_item.js +1 -1
  44. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  45. package/es/components/datagrid/body/data_grid_body.js +7 -7
  46. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  47. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  48. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  49. package/es/components/datagrid/controls/column_sorting.js +7 -7
  50. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  51. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  52. package/es/components/datagrid/utils/in_memory.js +6 -6
  53. package/es/components/date_picker/date_picker.js +2 -2
  54. package/es/components/date_picker/date_picker_range.js +1 -1
  55. package/es/components/empty_prompt/empty_prompt.js +1 -1
  56. package/es/components/facet/facet_button.js +1 -1
  57. package/es/components/form/field_number/field_number.js +2 -2
  58. package/es/components/form/field_text/field_text.js +2 -2
  59. package/es/components/form/file_picker/file_picker.js +5 -5
  60. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  61. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  62. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  63. package/es/components/form/range/range.styles.js +1 -1
  64. package/es/components/form/text_area/text_area.js +2 -2
  65. package/es/components/header/header_links/header_link.js +1 -1
  66. package/es/components/header/header_links/header_links.js +1 -1
  67. package/es/components/header/header_logo/header_logo.js +1 -1
  68. package/es/components/header/header_section/header_section_item_button.js +1 -1
  69. package/es/components/icon/assets/anomaly_chart.js +37 -0
  70. package/es/components/icon/assets/anomaly_swim_lane.js +33 -0
  71. package/es/components/icon/assets/change_point_detection.js +37 -0
  72. package/es/components/icon/assets/field_statistics.js +40 -0
  73. package/es/components/icon/assets/log_pattern_analysis.js +65 -0
  74. package/es/components/icon/assets/log_rate_analysis.js +33 -0
  75. package/es/components/icon/assets/single_metric_viewer.js +43 -0
  76. package/es/components/icon/icon.js +1 -1
  77. package/es/components/icon/icon_map.js +7 -0
  78. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  79. package/es/components/list_group/list_group.js +2 -2
  80. package/es/components/list_group/list_group_item.js +2 -2
  81. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  82. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  83. package/es/components/loading/loading_logo.js +1 -1
  84. package/es/components/markdown_editor/markdown_editor.js +1 -1
  85. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  86. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  87. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  88. package/es/components/modal/modal.styles.js +1 -1
  89. package/es/components/page/page_header/page_header_content.js +1 -1
  90. package/es/components/pagination/pagination_button.js +1 -1
  91. package/es/components/popover/popover.js +5 -3
  92. package/es/components/provider/provider.js +2 -2
  93. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  94. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  95. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  96. package/es/components/stat/stat.js +28 -40
  97. package/es/components/table/table_row.styles.js +2 -2
  98. package/es/components/timeline/timeline_item_icon.js +1 -1
  99. package/es/components/toast/global_toast_list.js +1 -1
  100. package/es/components/toast/toast.js +1 -1
  101. package/es/components/tool_tip/icon_tip.js +1 -1
  102. package/es/global_styling/mixins/_helpers.js +10 -2
  103. package/es/services/breakpoint/current_breakpoint.js +5 -3
  104. package/es/services/theme/provider.js +10 -2
  105. package/eui.d.ts +6844 -6695
  106. package/i18ntokens.json +59 -59
  107. package/lib/components/avatar/avatar.js +1 -1
  108. package/lib/components/badge/badge.js +1 -1
  109. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  110. package/lib/components/basic_table/basic_table.js +1 -1
  111. package/lib/components/basic_table/in_memory_table.js +1 -1
  112. package/lib/components/button/button.js +1 -1
  113. package/lib/components/button/button_display/_button_display.js +1 -1
  114. package/lib/components/button/button_display/_button_display_content.js +1 -1
  115. package/lib/components/button/button_empty/button_empty.js +1 -1
  116. package/lib/components/button/button_group/button_group.js +1 -1
  117. package/lib/components/button/button_group/button_group_button.js +1 -1
  118. package/lib/components/button/button_icon/button_icon.js +1 -1
  119. package/lib/components/call_out/call_out.js +1 -1
  120. package/lib/components/card/card.js +2 -2
  121. package/lib/components/card/card_select/card_select.js +1 -1
  122. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  123. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  124. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  125. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  126. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  127. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  128. package/lib/components/color_picker/color_palette_display/color_palette_display.js +9 -9
  129. package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +30 -0
  130. package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -0
  131. package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.styles.js +19 -0
  132. package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +37 -27
  133. package/lib/components/color_picker/color_picker.js +26 -39
  134. package/lib/components/color_picker/color_picker.styles.js +15 -5
  135. package/lib/components/color_picker/color_picker_swatch.js +5 -1
  136. package/lib/components/color_picker/color_picker_swatch.styles.js +25 -0
  137. package/lib/components/color_picker/hue.js +11 -6
  138. package/lib/components/color_picker/hue.styles.js +35 -0
  139. package/lib/components/color_picker/saturation.js +27 -14
  140. package/lib/components/color_picker/saturation.styles.js +29 -0
  141. package/lib/components/comment_list/comment.js +2 -2
  142. package/lib/components/comment_list/comment_event.js +1 -1
  143. package/lib/components/comment_list/comment_list.js +2 -2
  144. package/lib/components/comment_list/comment_timeline.js +1 -1
  145. package/lib/components/context_menu/context_menu_item.js +1 -1
  146. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  147. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  148. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  149. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  150. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  151. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  152. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  153. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  154. package/lib/components/datagrid/utils/in_memory.js +6 -6
  155. package/lib/components/date_picker/date_picker.js +2 -2
  156. package/lib/components/date_picker/date_picker_range.js +1 -1
  157. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  158. package/lib/components/facet/facet_button.js +1 -1
  159. package/lib/components/form/field_number/field_number.js +2 -2
  160. package/lib/components/form/field_text/field_text.js +2 -2
  161. package/lib/components/form/file_picker/file_picker.js +5 -5
  162. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  163. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  164. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  165. package/lib/components/form/range/range.styles.js +1 -1
  166. package/lib/components/form/text_area/text_area.js +2 -2
  167. package/lib/components/header/header_links/header_link.js +1 -1
  168. package/lib/components/header/header_links/header_links.js +1 -1
  169. package/lib/components/header/header_logo/header_logo.js +1 -1
  170. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  171. package/lib/components/icon/assets/anomaly_chart.js +44 -0
  172. package/lib/components/icon/assets/anomaly_swim_lane.js +40 -0
  173. package/lib/components/icon/assets/change_point_detection.js +44 -0
  174. package/lib/components/icon/assets/field_statistics.js +47 -0
  175. package/lib/components/icon/assets/log_pattern_analysis.js +72 -0
  176. package/lib/components/icon/assets/log_rate_analysis.js +40 -0
  177. package/lib/components/icon/assets/single_metric_viewer.js +50 -0
  178. package/lib/components/icon/icon.js +1 -1
  179. package/lib/components/icon/icon_map.js +7 -0
  180. package/lib/components/icon/svgs/anomaly_chart.svg +4 -0
  181. package/lib/components/icon/svgs/anomaly_swim_lane.svg +3 -0
  182. package/lib/components/icon/svgs/change_point_detection.svg +4 -0
  183. package/lib/components/icon/svgs/field_statistics.svg +5 -0
  184. package/lib/components/icon/svgs/log_pattern_analysis.svg +19 -0
  185. package/lib/components/icon/svgs/log_rate_analysis.svg +3 -0
  186. package/lib/components/icon/svgs/single_metric_viewer.svg +5 -0
  187. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  188. package/lib/components/list_group/list_group.js +2 -2
  189. package/lib/components/list_group/list_group_item.js +2 -2
  190. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  191. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  192. package/lib/components/loading/loading_logo.js +1 -1
  193. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  194. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  195. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  196. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  197. package/lib/components/modal/modal.styles.js +1 -1
  198. package/lib/components/page/page_header/page_header_content.js +1 -1
  199. package/lib/components/pagination/pagination_button.js +1 -1
  200. package/lib/components/popover/popover.js +5 -3
  201. package/lib/components/provider/provider.js +1 -1
  202. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  203. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  204. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  205. package/lib/components/stat/stat.js +25 -36
  206. package/lib/components/table/table_row.styles.js +2 -2
  207. package/lib/components/timeline/timeline_item_icon.js +1 -1
  208. package/lib/components/toast/global_toast_list.js +1 -1
  209. package/lib/components/toast/toast.js +1 -1
  210. package/lib/components/tool_tip/icon_tip.js +1 -1
  211. package/lib/global_styling/mixins/_helpers.js +10 -2
  212. package/lib/services/breakpoint/current_breakpoint.js +6 -4
  213. package/lib/services/theme/provider.js +9 -1
  214. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.js +8 -8
  215. package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +24 -0
  216. package/optimize/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -0
  217. package/optimize/es/components/color_picker/color_palette_display/color_palette_display_fixed.styles.js +14 -0
  218. package/optimize/es/components/color_picker/color_palette_picker/color_palette_picker.js +34 -26
  219. package/optimize/es/components/color_picker/color_picker.js +26 -39
  220. package/optimize/es/components/color_picker/color_picker.styles.js +15 -5
  221. package/optimize/es/components/color_picker/color_picker_swatch.js +5 -1
  222. package/optimize/es/components/color_picker/color_picker_swatch.styles.js +19 -0
  223. package/optimize/es/components/color_picker/hue.js +11 -6
  224. package/optimize/es/components/color_picker/hue.styles.js +29 -0
  225. package/optimize/es/components/color_picker/saturation.js +29 -16
  226. package/optimize/es/components/color_picker/saturation.styles.js +23 -0
  227. package/optimize/es/components/form/file_picker/file_picker.js +5 -5
  228. package/optimize/es/components/form/range/range.styles.js +1 -1
  229. package/optimize/es/components/icon/assets/anomaly_chart.js +36 -0
  230. package/optimize/es/components/icon/assets/anomaly_swim_lane.js +32 -0
  231. package/optimize/es/components/icon/assets/change_point_detection.js +36 -0
  232. package/optimize/es/components/icon/assets/field_statistics.js +39 -0
  233. package/optimize/es/components/icon/assets/log_pattern_analysis.js +64 -0
  234. package/optimize/es/components/icon/assets/log_rate_analysis.js +32 -0
  235. package/optimize/es/components/icon/assets/single_metric_viewer.js +42 -0
  236. package/optimize/es/components/icon/icon_map.js +7 -0
  237. package/optimize/es/components/modal/modal.styles.js +1 -1
  238. package/optimize/es/components/popover/popover.js +5 -3
  239. package/optimize/es/components/provider/provider.js +2 -2
  240. package/optimize/es/components/stat/stat.js +28 -37
  241. package/optimize/es/components/table/table_row.styles.js +2 -2
  242. package/optimize/es/global_styling/mixins/_helpers.js +10 -2
  243. package/optimize/es/services/breakpoint/current_breakpoint.js +5 -3
  244. package/optimize/es/services/theme/provider.js +10 -2
  245. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.js +8 -8
  246. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +30 -0
  247. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -0
  248. package/optimize/lib/components/color_picker/color_palette_display/color_palette_display_fixed.styles.js +19 -0
  249. package/optimize/lib/components/color_picker/color_palette_picker/color_palette_picker.js +38 -27
  250. package/optimize/lib/components/color_picker/color_picker.js +26 -39
  251. package/optimize/lib/components/color_picker/color_picker.styles.js +15 -5
  252. package/optimize/lib/components/color_picker/color_picker_swatch.js +5 -1
  253. package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +25 -0
  254. package/optimize/lib/components/color_picker/hue.js +11 -6
  255. package/optimize/lib/components/color_picker/hue.styles.js +35 -0
  256. package/optimize/lib/components/color_picker/saturation.js +27 -14
  257. package/optimize/lib/components/color_picker/saturation.styles.js +29 -0
  258. package/optimize/lib/components/form/file_picker/file_picker.js +5 -5
  259. package/optimize/lib/components/form/range/range.styles.js +1 -1
  260. package/optimize/lib/components/icon/assets/anomaly_chart.js +44 -0
  261. package/optimize/lib/components/icon/assets/anomaly_swim_lane.js +40 -0
  262. package/optimize/lib/components/icon/assets/change_point_detection.js +44 -0
  263. package/optimize/lib/components/icon/assets/field_statistics.js +47 -0
  264. package/optimize/lib/components/icon/assets/log_pattern_analysis.js +72 -0
  265. package/optimize/lib/components/icon/assets/log_rate_analysis.js +40 -0
  266. package/optimize/lib/components/icon/assets/single_metric_viewer.js +50 -0
  267. package/optimize/lib/components/icon/icon_map.js +7 -0
  268. package/optimize/lib/components/icon/svgs/anomaly_chart.svg +4 -0
  269. package/optimize/lib/components/icon/svgs/anomaly_swim_lane.svg +3 -0
  270. package/optimize/lib/components/icon/svgs/change_point_detection.svg +4 -0
  271. package/optimize/lib/components/icon/svgs/field_statistics.svg +5 -0
  272. package/optimize/lib/components/icon/svgs/log_pattern_analysis.svg +19 -0
  273. package/optimize/lib/components/icon/svgs/log_rate_analysis.svg +3 -0
  274. package/optimize/lib/components/icon/svgs/single_metric_viewer.svg +5 -0
  275. package/optimize/lib/components/modal/modal.styles.js +1 -1
  276. package/optimize/lib/components/popover/popover.js +5 -3
  277. package/optimize/lib/components/provider/provider.js +1 -1
  278. package/optimize/lib/components/stat/stat.js +25 -34
  279. package/optimize/lib/components/table/table_row.styles.js +2 -2
  280. package/optimize/lib/global_styling/mixins/_helpers.js +10 -2
  281. package/optimize/lib/services/breakpoint/current_breakpoint.js +6 -4
  282. package/optimize/lib/services/theme/provider.js +9 -1
  283. package/package.json +14 -8
  284. package/src/components/index.scss +0 -1
  285. package/src/global_styling/mixins/_shadow.scss +5 -0
  286. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  287. package/test-env/components/avatar/avatar.js +1 -1
  288. package/test-env/components/badge/badge.js +1 -1
  289. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  290. package/test-env/components/basic_table/basic_table.js +1 -1
  291. package/test-env/components/basic_table/in_memory_table.js +1 -1
  292. package/test-env/components/button/button.js +1 -1
  293. package/test-env/components/button/button_display/_button_display.js +1 -1
  294. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  295. package/test-env/components/button/button_empty/button_empty.js +1 -1
  296. package/test-env/components/button/button_group/button_group.js +1 -1
  297. package/test-env/components/button/button_group/button_group_button.js +1 -1
  298. package/test-env/components/button/button_icon/button_icon.js +1 -1
  299. package/test-env/components/call_out/call_out.js +1 -1
  300. package/test-env/components/card/card.js +2 -2
  301. package/test-env/components/card/card_select/card_select.js +1 -1
  302. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  303. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  304. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  305. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  306. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  307. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  308. package/test-env/components/color_picker/color_palette_display/color_palette_display.js +9 -9
  309. package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +30 -0
  310. package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -0
  311. package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.styles.js +19 -0
  312. package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +38 -27
  313. package/test-env/components/color_picker/color_picker.js +26 -39
  314. package/test-env/components/color_picker/color_picker.styles.js +15 -5
  315. package/test-env/components/color_picker/color_picker_swatch.js +5 -1
  316. package/test-env/components/color_picker/color_picker_swatch.styles.js +25 -0
  317. package/test-env/components/color_picker/hue.js +11 -6
  318. package/test-env/components/color_picker/hue.styles.js +35 -0
  319. package/test-env/components/color_picker/saturation.js +27 -14
  320. package/test-env/components/color_picker/saturation.styles.js +29 -0
  321. package/test-env/components/comment_list/comment.js +2 -2
  322. package/test-env/components/comment_list/comment_event.js +1 -1
  323. package/test-env/components/comment_list/comment_list.js +2 -2
  324. package/test-env/components/comment_list/comment_timeline.js +1 -1
  325. package/test-env/components/context_menu/context_menu_item.js +1 -1
  326. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  327. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  328. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  329. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  330. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  331. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  332. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  333. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  334. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  335. package/test-env/components/date_picker/date_picker.js +2 -2
  336. package/test-env/components/date_picker/date_picker_range.js +1 -1
  337. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  338. package/test-env/components/facet/facet_button.js +1 -1
  339. package/test-env/components/form/field_number/field_number.js +2 -2
  340. package/test-env/components/form/field_text/field_text.js +2 -2
  341. package/test-env/components/form/file_picker/file_picker.js +5 -5
  342. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  343. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  344. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  345. package/test-env/components/form/range/range.styles.js +1 -1
  346. package/test-env/components/form/text_area/text_area.js +2 -2
  347. package/test-env/components/header/header_links/header_link.js +1 -1
  348. package/test-env/components/header/header_links/header_links.js +1 -1
  349. package/test-env/components/header/header_logo/header_logo.js +1 -1
  350. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  351. package/test-env/components/icon/assets/anomaly_chart.js +44 -0
  352. package/test-env/components/icon/assets/anomaly_swim_lane.js +40 -0
  353. package/test-env/components/icon/assets/change_point_detection.js +44 -0
  354. package/test-env/components/icon/assets/field_statistics.js +47 -0
  355. package/test-env/components/icon/assets/log_pattern_analysis.js +72 -0
  356. package/test-env/components/icon/assets/log_rate_analysis.js +40 -0
  357. package/test-env/components/icon/assets/single_metric_viewer.js +50 -0
  358. package/test-env/components/icon/icon_map.js +7 -0
  359. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  360. package/test-env/components/list_group/list_group.js +2 -2
  361. package/test-env/components/list_group/list_group_item.js +2 -2
  362. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  363. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  364. package/test-env/components/loading/loading_logo.js +1 -1
  365. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  366. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  367. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  368. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  369. package/test-env/components/modal/modal.styles.js +1 -1
  370. package/test-env/components/page/page_header/page_header_content.js +1 -1
  371. package/test-env/components/pagination/pagination_button.js +1 -1
  372. package/test-env/components/popover/popover.js +5 -3
  373. package/test-env/components/provider/provider.js +1 -1
  374. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  375. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  376. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  377. package/test-env/components/stat/stat.js +25 -34
  378. package/test-env/components/table/table_row.styles.js +2 -2
  379. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  380. package/test-env/components/toast/global_toast_list.js +1 -1
  381. package/test-env/components/toast/toast.js +1 -1
  382. package/test-env/components/tool_tip/icon_tip.js +1 -1
  383. package/test-env/global_styling/mixins/_helpers.js +10 -2
  384. package/test-env/services/breakpoint/current_breakpoint.js +6 -4
  385. package/test-env/services/theme/provider.js +9 -1
  386. package/src/components/color_picker/_color_picker.scss +0 -37
  387. package/src/components/color_picker/_color_picker_swatch.scss +0 -18
  388. package/src/components/color_picker/_hue.scss +0 -88
  389. package/src/components/color_picker/_index.scss +0 -7
  390. package/src/components/color_picker/_saturation.scss +0 -57
  391. package/src/components/color_picker/_variables.scss +0 -6
  392. package/src/components/color_picker/color_palette_display/_color_palette_display.scss +0 -18
  393. package/src/components/color_picker/color_palette_display/_color_palette_display_fixed.scss +0 -12
  394. package/src/components/color_picker/color_palette_display/_index.scss +0 -4
  395. package/src/components/color_picker/color_palette_display/_mixins.scss +0 -22
  396. package/src/components/color_picker/color_palette_display/_variables.scss +0 -6
  397. package/src/components/color_picker/color_palette_picker/_color_palette_picker.scss +0 -9
  398. package/src/components/color_picker/color_palette_picker/_index.scss +0 -1
  399. package/src/themes/amsterdam/overrides/_hue.scss +0 -44
@@ -12,16 +12,15 @@ import _typeof from "@babel/runtime/helpers/typeof";
12
12
  import React, { cloneElement, useEffect, useMemo, useRef, useState } from 'react';
13
13
  import classNames from 'classnames';
14
14
  import chroma from 'chroma-js';
15
+ import { useEuiMemoizedStyles, VISUALIZATION_COLORS, keys } from '../../services';
15
16
  import { EuiFieldText, EuiFormControlLayout, EuiFormRow, EuiRange } from '../form';
16
- import { getFormControlClassNameForIconCount } from '../form/form_control_layout/_num_icons';
17
17
  import { useEuiI18n } from '../i18n';
18
18
  import { EuiPopover } from '../popover';
19
- import { EuiSpacer } from '../spacer';
20
- import { VISUALIZATION_COLORS, keys } from '../../services';
21
19
  import { EuiColorPickerSwatch } from './color_picker_swatch';
22
20
  import { EuiHue } from './hue';
23
21
  import { EuiSaturation } from './saturation';
24
22
  import { getChromaColor, parseColor, HEX_FALLBACK, HSV_FALLBACK, RGB_FALLBACK, RGB_JOIN } from './utils';
23
+ import { euiColorPickerStyles } from './color_picker.styles';
25
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
26
25
  function isKeyboardEvent(event) {
27
26
  return _typeof(event) === 'object' && 'key' in event;
@@ -152,18 +151,7 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
152
151
  setColorAsHsv(getHsv([h, s, v], usableHsv[0]));
153
152
  };
154
153
  var classes = classNames('euiColorPicker', className);
155
- var popoverClass = 'euiColorPicker__popoverAnchor';
156
- var panelClasses = classNames('euiColorPicker__popoverPanel', {
157
- 'euiColorPicker__popoverPanel--pickerOnly': mode === 'picker' && secondaryInputDisplay !== 'bottom',
158
- 'euiColorPicker__popoverPanel--customButton': button
159
- });
160
- var swatchClass = 'euiColorPicker__swatchSelect';
161
- var numIconsClass = getFormControlClassNameForIconCount({
162
- isDropdown: true,
163
- clear: isClearable,
164
- isInvalid: isInvalid
165
- });
166
- var inputClasses = classNames('euiColorPicker__input', numIconsClass);
154
+ var styles = useEuiMemoizedStyles(euiColorPickerStyles);
167
155
  var handleOnChange = function handleOnChange(text) {
168
156
  var output = getOutput(text, showAlpha);
169
157
  if (output.isValid) {
@@ -313,7 +301,8 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
313
301
  });
314
302
  }
315
303
  };
316
- var inlineInput = secondaryInputDisplay !== 'none' && ___EmotionJSX(EuiFormRow, {
304
+ var showSecondaryInput = mode === 'secondaryInput' || secondaryInputDisplay !== 'none';
305
+ var inlineInput = showSecondaryInput && ___EmotionJSX(EuiFormRow, {
317
306
  display: "rowCompressed",
318
307
  isInvalid: isInvalid,
319
308
  error: isInvalid ? colorErrorMessage : null
@@ -322,9 +311,12 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
322
311
  onClick: handleClearInput
323
312
  } : undefined,
324
313
  readOnly: readOnly,
325
- compressed: compressed
314
+ isDisabled: disabled,
315
+ isInvalid: isInvalid,
316
+ compressed: display === 'inline' ? compressed : true
326
317
  }, ___EmotionJSX(EuiFieldText, {
327
- compressed: true,
318
+ controlOnly: true,
319
+ compressed: display === 'inline' ? compressed : true,
328
320
  value: color ? color.toUpperCase() : HEX_FALLBACK,
329
321
  placeholder: !color ? placeholder || transparent : undefined,
330
322
  onChange: handleColorInput,
@@ -338,40 +330,34 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
338
330
  var showSecondaryInputOnly = mode === 'secondaryInput';
339
331
  var showPicker = mode !== 'swatch' && !showSecondaryInputOnly;
340
332
  var showSwatches = mode !== 'picker' && !showSecondaryInputOnly;
341
- var composite = ___EmotionJSX(React.Fragment, null, secondaryInputDisplay === 'top' && ___EmotionJSX(React.Fragment, null, inlineInput, ___EmotionJSX(EuiSpacer, {
342
- size: "s"
343
- })), showPicker && ___EmotionJSX("div", {
344
- onKeyDown: handleOnKeyDown
345
- }, ___EmotionJSX(EuiSaturation, {
333
+ var composite = ___EmotionJSX(React.Fragment, null, secondaryInputDisplay === 'top' && inlineInput, showPicker && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiSaturation, {
346
334
  id: id,
347
335
  color: usableHsv,
348
336
  hex: chromaColor ? chromaColor.hex() : undefined,
349
337
  onChange: handleColorSelection,
350
- ref: saturationRef
338
+ ref: saturationRef,
339
+ onKeyDown: handleOnKeyDown
351
340
  }), ___EmotionJSX(EuiHue, {
352
341
  id: id,
353
342
  hue: usableHsv[0],
354
343
  hex: chromaColor ? chromaColor.hex() : undefined,
355
- onChange: handleHueSelection
344
+ onChange: handleHueSelection,
345
+ onKeyDown: handleOnKeyDown
356
346
  })), showSwatches && ___EmotionJSX("ul", {
347
+ css: styles.euiColorPicker__swatches,
357
348
  className: "euiColorPicker__swatches"
358
349
  }, swatches.map(function (swatch, index) {
359
350
  return ___EmotionJSX("li", {
360
- className: "euiColorPicker__swatch-item",
361
351
  key: swatch
362
352
  }, ___EmotionJSX(EuiColorPickerSwatch, {
363
- className: swatchClass,
364
353
  color: swatch,
365
354
  onClick: function onClick() {
366
355
  return handleSwatchSelection(swatch);
367
356
  },
368
357
  ref: index === 0 ? swatchRef : undefined
369
358
  }));
370
- })), secondaryInputDisplay === 'bottom' && ___EmotionJSX(React.Fragment, null, mode !== 'picker' && ___EmotionJSX(EuiSpacer, {
371
- size: "s"
372
- }), inlineInput), showAlpha && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiSpacer, {
373
- size: "s"
374
- }), ___EmotionJSX(EuiRange, {
359
+ })), secondaryInputDisplay === 'bottom' && inlineInput, showAlpha && ___EmotionJSX(EuiRange, {
360
+ css: styles.euiColorPicker__alphaRange,
375
361
  className: "euiColorPicker__alphaRange",
376
362
  "data-test-subj": "euiColorPickerAlpha",
377
363
  compressed: true,
@@ -382,7 +368,7 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
382
368
  append: "%",
383
369
  onChange: handleAlphaSelection,
384
370
  "aria-label": alphaLabel
385
- })));
371
+ }));
386
372
  var buttonOrInput;
387
373
  if (button) {
388
374
  buttonOrInput = /*#__PURE__*/cloneElement(button, {
@@ -397,7 +383,8 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
397
383
  icon: chromaColor ? {
398
384
  type: 'swatchInput',
399
385
  side: 'left',
400
- color: colorStyle
386
+ color: colorStyle,
387
+ css: styles.euiColorPicker__swatchInputIcon
401
388
  } : {
402
389
  type: 'stopSlash',
403
390
  side: 'left',
@@ -416,15 +403,13 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
416
403
  isDisabled: disabled,
417
404
  isDropdown: true
418
405
  }, ___EmotionJSX(EuiFieldText, {
419
- className: inputClasses,
406
+ className: "euiColorPicker__input",
420
407
  onClick: handleInputActivity,
421
408
  onKeyDown: handleInputActivity,
422
409
  onBlur: handleOnBlur,
423
410
  value: color ? color.toUpperCase() : HEX_FALLBACK,
424
411
  placeholder: !color ? placeholder || transparent : undefined,
425
412
  id: id,
426
- icon: "empty" // Required to make space (left padding) for the color swatch icon
427
- ,
428
413
  onChange: handleColorInput,
429
414
  inputRef: setInputRef,
430
415
  isInvalid: isInvalid,
@@ -439,6 +424,7 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
439
424
  }));
440
425
  }
441
426
  return display === 'inline' ? ___EmotionJSX("div", {
427
+ css: styles.euiColorPicker,
442
428
  className: classes
443
429
  }, composite) : ___EmotionJSX(EuiPopover, {
444
430
  initialFocus: inputRef !== null && inputRef !== void 0 ? inputRef : undefined,
@@ -446,8 +432,8 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
446
432
  isOpen: isColorSelectorShown,
447
433
  closePopover: handleFinalSelection,
448
434
  zIndex: popoverZIndex,
449
- className: popoverClass,
450
- panelClassName: panelClasses,
435
+ className: "euiColorPicker__popoverAnchor",
436
+ panelClassName: "euiColorPicker__popoverPanel",
451
437
  display: button ? 'inline-block' : 'block',
452
438
  attachToAnchor: button ? false : true,
453
439
  anchorPosition: "downLeft",
@@ -458,6 +444,7 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
458
444
  shards: [inputRef]
459
445
  } : undefined
460
446
  }, ___EmotionJSX("div", {
447
+ css: styles.euiColorPicker,
461
448
  className: classes,
462
449
  "data-test-subj": "euiColorPickerPopover"
463
450
  }, composite));
@@ -6,12 +6,22 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- import { mathWithUnits } from '../../global_styling';
10
- export var euiColorPickerVariables = function euiColorPickerVariables(euiThemeContext) {
9
+ import { css } from '@emotion/react';
10
+ import { transparentize } from '../../services';
11
+ import { logicalCSS, mathWithUnits } from '../../global_styling';
12
+ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext) {
11
13
  var euiTheme = euiThemeContext.euiTheme;
14
+
15
+ // 5 columns of swatches + margins + border
16
+ var colorPickerWidth = mathWithUnits([euiTheme.size.l, euiTheme.size.s], function (x, y) {
17
+ return x * 5 + y * 4;
18
+ });
12
19
  return {
13
- width: mathWithUnits([euiTheme.size.l, euiTheme.size.s], function (x, y) {
14
- return x * 5 + y * 4;
15
- })
20
+ euiColorPicker: /*#__PURE__*/css("position:relative;", logicalCSS('width', colorPickerWidth), "display:flex;flex-direction:column;gap:", euiTheme.size.s, ";;label:euiColorPicker;"),
21
+ euiColorPicker__swatches: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.s, ";;label:euiColorPicker__swatches;"),
22
+ euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
23
+ // Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
24
+ // Targets a custom className applied directly to the <svg> icon
25
+ euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", transparentize(euiTheme.colors.fullShade, 0.2), ";};label:euiColorPicker__swatchInputIcon;")
16
26
  };
17
27
  };
@@ -14,8 +14,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
 
15
15
  import React, { forwardRef, useMemo } from 'react';
16
16
  import classNames from 'classnames';
17
- import { getChromaColor } from './utils';
17
+ import { useEuiMemoizedStyles } from '../../services';
18
18
  import { useEuiI18n } from '../i18n';
19
+ import { getChromaColor } from './utils';
20
+ import { euiColorPickerSwatchStyles } from './color_picker_swatch.styles';
19
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
22
  export var EuiColorPickerSwatch = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
23
  var className = _ref.className,
@@ -23,6 +25,7 @@ export var EuiColorPickerSwatch = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
25
  style = _ref.style,
24
26
  rest = _objectWithoutProperties(_ref, _excluded);
25
27
  var classes = classNames('euiColorPickerSwatch', className);
28
+ var styles = useEuiMemoizedStyles(euiColorPickerSwatchStyles);
26
29
  var chromaColor = useMemo(function () {
27
30
  return getChromaColor(color, true);
28
31
  }, [color]);
@@ -34,6 +37,7 @@ export var EuiColorPickerSwatch = /*#__PURE__*/forwardRef(function (_ref, ref) {
34
37
  });
35
38
  return ___EmotionJSX("button", _extends({
36
39
  type: "button",
40
+ css: styles.euiColorPickerSwatch,
37
41
  className: classes,
38
42
  "aria-label": ariaLabel,
39
43
  ref: ref,
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ import { css } from '@emotion/react';
10
+ import { transparentize } from '../../services';
11
+ import { logicalSizeCSS, mathWithUnits, euiOutline } from '../../global_styling';
12
+ export var euiColorPickerSwatchStyles = function euiColorPickerSwatchStyles(euiThemeContext) {
13
+ var euiTheme = euiThemeContext.euiTheme;
14
+ return {
15
+ euiColorPickerSwatch: /*#__PURE__*/css("display:inline-block;", logicalSizeCSS(euiTheme.size.l), " border-radius:", mathWithUnits(euiTheme.border.radius.medium, function (x) {
16
+ return x / 2;
17
+ }), ";border:", euiTheme.border.width.thin, " solid ", transparentize(euiTheme.colors.fullShade, 0.1), ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
18
+ };
19
+ };
@@ -11,8 +11,10 @@ var _excluded = ["className", "hex", "hue", "id", "onChange"];
11
11
 
12
12
  import React from 'react';
13
13
  import classNames from 'classnames';
14
+ import { useEuiMemoizedStyles } from '../../services';
14
15
  import { EuiScreenReaderOnly } from '../accessibility';
15
16
  import { EuiI18n } from '../i18n';
17
+ import { euiHueStyles } from './hue.styles';
16
18
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
19
  var HUE_RANGE = 359;
18
20
  export var EuiHue = function EuiHue(_ref) {
@@ -23,27 +25,30 @@ export var EuiHue = function EuiHue(_ref) {
23
25
  id = _ref.id,
24
26
  onChange = _ref.onChange,
25
27
  rest = _objectWithoutProperties(_ref, _excluded);
28
+ var classes = classNames('euiHue', className);
29
+ var styles = useEuiMemoizedStyles(euiHueStyles);
26
30
  var handleChange = function handleChange(e) {
27
31
  onChange(Number(e.target.value));
28
32
  };
29
- var classes = classNames('euiHue', className);
30
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("label", {
33
+ return ___EmotionJSX("div", {
34
+ css: styles.euiHue,
35
+ className: classes
36
+ }, ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("label", {
31
37
  htmlFor: "".concat(id, "-hue")
32
38
  }, ___EmotionJSX(EuiI18n, {
33
39
  token: "euiHue.label",
34
40
  default: "Select the HSV color mode 'hue' value"
35
41
  }))), ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("p", {
36
42
  "aria-live": "polite"
37
- }, hex)), ___EmotionJSX("div", {
38
- className: classes
39
- }, ___EmotionJSX("input", _extends({
43
+ }, hex)), ___EmotionJSX("input", _extends({
40
44
  id: "".concat(id, "-hue"),
41
45
  min: 0,
42
46
  max: HUE_RANGE,
43
47
  step: 1,
44
48
  type: "range",
49
+ css: styles.euiHue__range,
45
50
  className: "euiHue__range",
46
51
  value: hue,
47
52
  onChange: handleChange
48
- }, rest))));
53
+ }, rest)));
49
54
  };
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ import { css } from '@emotion/react';
10
+ import { transparentize } from '../../services';
11
+ import { logicalCSS, mathWithUnits } from '../../global_styling';
12
+ import { euiRangeThumbPerBrowser, euiRangeThumbStyle, euiRangeThumbFocusBoxShadow } from '../form/range/range.styles';
13
+ export var euiHueStyles = function euiHueStyles(euiThemeContext) {
14
+ var euiTheme = euiThemeContext.euiTheme;
15
+ var height = euiTheme.size.m;
16
+ var thumbSize = euiTheme.size.l;
17
+ var thumbBorder = mathWithUnits(euiTheme.border.width.thick, function (x) {
18
+ return x * 1.5;
19
+ });
20
+ var thumbBoxShadow = "\n 0 2px 2px -1px ".concat(transparentize(euiTheme.colors.shadow, 0.2), ",\n 0 1px 5px -2px ").concat(transparentize(euiTheme.colors.shadow, 0.2));
21
+ return {
22
+ // This wraps the range and sets a rainbow gradient,
23
+ // which allows the range thumb to be larger than the visible track
24
+ euiHue: /*#__PURE__*/css(logicalCSS('height', height), " border-radius:", height, ";background:linear-gradient(\n to right,\n #ff3232 0%,\n #fff130 20%,\n #45ff30 35%,\n #28fff0 52%,\n #282cff 71%,\n #ff28fb 88%,\n #ff0094 100%\n );;label:euiHue;"),
25
+ euiHue__range: /*#__PURE__*/css(logicalCSS('height', thumbSize), logicalCSS('width', "calc(100% + 2px)"), logicalCSS('margin-horizontal', '-1px'), " ", logicalCSS('margin-top', mathWithUnits(height, function (x) {
26
+ return x / -2;
27
+ })), "appearance:none;background:transparent;&::-webkit-slider-thumb{-webkit-appearance:none;}", euiRangeThumbPerBrowser([euiRangeThumbStyle(euiThemeContext), 'background-color: inherit', "border-width: ".concat(thumbBorder), 'border-radius: 100%', "box-shadow: ".concat(thumbBoxShadow)].join(';\n')), "&:focus{outline:none;}&:focus-visible{", euiRangeThumbPerBrowser(euiRangeThumbFocusBoxShadow(euiThemeContext)), ";};label:euiHue__range;")
28
+ };
29
+ };
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
- var _excluded = ["className", "color", "data-test-subj", "hex", "id", "onChange"];
5
+ var _excluded = ["className", "color", "data-test-subj", "hex", "id", "onChange", "onKeyDown"];
6
6
  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; }
7
7
  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; }
8
8
  /*
@@ -13,12 +13,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  * Side Public License, v 1.
14
14
  */
15
15
 
16
- import React, { forwardRef, useEffect, useRef, useState } from 'react';
16
+ import React, { forwardRef, useEffect, useRef, useState, useCallback } from 'react';
17
17
  import classNames from 'classnames';
18
- import { keys, useMouseMove } from '../../services';
18
+ import { keys, useMouseMove, useEuiMemoizedStyles, useGeneratedHtmlId } from '../../services';
19
19
  import { isNil } from '../../services/predicate';
20
+ import { logicalStyles } from '../../global_styling';
20
21
  import { useEuiI18n } from '../i18n';
21
22
  import { getEventPosition } from './utils';
23
+ import { euiSaturationStyles } from './saturation.styles';
22
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
23
25
  var colorDefaultValue = [1, 0, 0];
24
26
  export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -28,9 +30,17 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
28
30
  _ref$dataTestSubj = _ref['data-test-subj'],
29
31
  dataTestSubj = _ref$dataTestSubj === void 0 ? 'euiSaturation' : _ref$dataTestSubj,
30
32
  hex = _ref.hex,
31
- id = _ref.id,
33
+ _id = _ref.id,
32
34
  onChange = _ref.onChange,
35
+ onKeyDown = _ref.onKeyDown,
33
36
  rest = _objectWithoutProperties(_ref, _excluded);
37
+ var classes = classNames('euiSaturation', className);
38
+ var styles = useEuiMemoizedStyles(euiSaturationStyles);
39
+ var id = useGeneratedHtmlId({
40
+ conditionalId: _id
41
+ });
42
+ var instructionsId = "".concat(id, "-instructions");
43
+ var indicatorId = "".concat(id, "-saturationIndicator");
34
44
  var _useEuiI18n = useEuiI18n(['euiSaturation.ariaLabel', 'euiSaturation.screenReaderInstructions'], ['HSV color mode saturation and value 2-axis slider', "Arrow keys to navigate the square color gradient. Coordinates will be used to calculate HSV color mode 'saturation' and 'value' numbers, in the range of 0 to 1. Left and right to change the saturation. Up and down change the value."]),
35
45
  _useEuiI18n2 = _slicedToArray(_useEuiI18n, 2),
36
46
  roleDescString = _useEuiI18n2[0],
@@ -62,7 +72,7 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
62
72
  });
63
73
  }
64
74
  }, [color, lastColor]);
65
- var calculateColor = function calculateColor(_ref2) {
75
+ var calculateColor = useCallback(function (_ref2) {
66
76
  var top = _ref2.top,
67
77
  height = _ref2.height,
68
78
  left = _ref2.left,
@@ -72,8 +82,8 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
72
82
  var s = left / width;
73
83
  var v = 1 - top / height;
74
84
  return [h, s, v];
75
- };
76
- var handleUpdate = function handleUpdate(box) {
85
+ }, [color]);
86
+ var handleUpdate = useCallback(function (box) {
77
87
  var left = box.left,
78
88
  top = box.top;
79
89
  setIndicator({
@@ -83,17 +93,18 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
83
93
  var newColor = calculateColor(box);
84
94
  setLastColor(newColor);
85
95
  onChange(newColor);
86
- };
87
- var handleChange = function handleChange(location) {
96
+ }, [calculateColor, onChange]);
97
+ var handleChange = useCallback(function (location) {
88
98
  if (isNil(boxRef === null || boxRef === void 0 ? void 0 : boxRef.current)) return;
89
99
  var box = getEventPosition(location, boxRef.current);
90
100
  handleUpdate(box);
91
- };
101
+ }, [handleUpdate]);
92
102
  var _useMouseMove = useMouseMove(handleChange, boxRef.current),
93
103
  _useMouseMove2 = _slicedToArray(_useMouseMove, 2),
94
104
  handleMouseDown = _useMouseMove2[0],
95
105
  handleInteraction = _useMouseMove2[1];
96
- var handleKeyDown = function handleKeyDown(event) {
106
+ var handleKeyDown = useCallback(function (event) {
107
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
97
108
  if (isNil(boxRef === null || boxRef === void 0 ? void 0 : boxRef.current)) return;
98
109
  var _boxRef$current$getBo2 = boxRef.current.getBoundingClientRect(),
99
110
  height = _boxRef$current$getBo2.height,
@@ -134,15 +145,14 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
134
145
  height: height
135
146
  }, newPosition));
136
147
  onChange(newColor);
137
- };
138
- var classes = classNames('euiSaturation', className);
139
- var instructionsId = "".concat(id, "-instructions");
148
+ }, [calculateColor, indicator, onChange, onKeyDown]);
140
149
  return ___EmotionJSX("div", _extends({
141
150
  onMouseDown: handleMouseDown,
142
151
  onTouchStart: handleInteraction,
143
152
  onTouchMove: handleInteraction,
144
153
  onKeyDown: handleKeyDown,
145
154
  ref: ref,
155
+ css: styles.euiSaturation,
146
156
  className: classes,
147
157
  "data-test-subj": dataTestSubj,
148
158
  style: {
@@ -150,14 +160,17 @@ export var EuiSaturation = /*#__PURE__*/forwardRef(function (_ref, ref) {
150
160
  },
151
161
  tabIndex: -1
152
162
  }, rest), ___EmotionJSX("div", {
163
+ css: styles.euiSaturation__lightness,
153
164
  className: "euiSaturation__lightness",
154
165
  ref: boxRef
155
166
  }, ___EmotionJSX("div", {
167
+ css: styles.euiSaturation__saturation,
156
168
  className: "euiSaturation__saturation"
157
169
  })), ___EmotionJSX("button", {
158
- id: "".concat(id, "-saturationIndicator"),
170
+ id: indicatorId,
171
+ css: styles.euiSaturation__indicator,
159
172
  className: "euiSaturation__indicator",
160
- style: _objectSpread({}, indicator),
173
+ style: logicalStyles(indicator),
161
174
  "aria-roledescription": roleDescString,
162
175
  "aria-label": hex,
163
176
  "aria-describedby": instructionsId
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ import { css } from '@emotion/react';
10
+ import { logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
11
+ export var euiSaturationStyles = function euiSaturationStyles(euiThemeContext) {
12
+ var euiTheme = euiThemeContext.euiTheme;
13
+ var indicatorSize = euiTheme.size.m;
14
+ var borderRadius = mathWithUnits(euiTheme.border.radius.medium, function (x) {
15
+ return x / 2;
16
+ });
17
+ return {
18
+ euiSaturation: /*#__PURE__*/css("z-index:3;position:relative;", logicalCSS('width', '100%'), " ", logicalCSS('padding-bottom', '100%'), " border-radius:", borderRadius, ";touch-action:none;&:focus,&:focus-within{outline:none;.euiSaturation__indicator{outline:none;box-shadow:0 0 0 ", euiTheme.focus.width, " ", euiTheme.colors.primary, ";border-color:", euiTheme.colors.primary, ";}};label:euiSaturation;"),
19
+ euiSaturation__lightness: /*#__PURE__*/css("position:absolute;inset:0;", logicalCSS('top', '-1px'), "border-radius:", borderRadius, ";background:linear-gradient(\n to right,\n rgba(255, 255, 255, 1),\n rgba(255, 255, 255, 0)\n );;label:euiSaturation__lightness;"),
20
+ euiSaturation__saturation: /*#__PURE__*/css("position:absolute;inset:0;", logicalCSS('top', '-1px'), "border-radius:", borderRadius, ";background:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));;label:euiSaturation__saturation;"),
21
+ euiSaturation__indicator: /*#__PURE__*/css("position:absolute;", logicalSizeCSS(indicatorSize), " transform:translateX(-50%) translateY(-50%);border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.darkestShade, ";border-radius:100%;&::before{content:'';position:absolute;inset:0;border-radius:100%;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.lightestShade, ";};label:euiSaturation__indicator;")
22
+ };
23
+ };
@@ -102,9 +102,9 @@ export var EuiFilePickerClass = /*#__PURE__*/function (_Component) {
102
102
  var _ref = this.context,
103
103
  defaultFullWidth = _ref.defaultFullWidth;
104
104
  return ___EmotionJSX(EuiI18n, {
105
- token: "euiFilePicker.clearSelectedFiles",
106
- default: "Clear selected files"
107
- }, function (clearSelectedFiles) {
105
+ token: "euiFilePicker.removeSelectedAriaLabel",
106
+ default: "Remove selected files"
107
+ }, function (removeSelectedAriaLabel) {
108
108
  var _this2$props = _this2.props,
109
109
  stylesMemoizer = _this2$props.stylesMemoizer,
110
110
  id = _this2$props.id,
@@ -146,7 +146,7 @@ export var EuiFilePickerClass = /*#__PURE__*/function (_Component) {
146
146
  } else if (isOverridingInitialPrompt && !disabled) {
147
147
  if (normalFormControl) {
148
148
  clearButton = ___EmotionJSX(EuiFormControlLayoutClearButton, {
149
- "aria-label": clearSelectedFiles,
149
+ "aria-label": removeSelectedAriaLabel,
150
150
  css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
151
151
  className: "euiFilePicker__clearButton",
152
152
  onClick: _this2.removeFiles,
@@ -154,7 +154,7 @@ export var EuiFilePickerClass = /*#__PURE__*/function (_Component) {
154
154
  });
155
155
  } else {
156
156
  clearButton = ___EmotionJSX(EuiButtonEmpty, {
157
- "aria-label": clearSelectedFiles,
157
+ "aria-label": removeSelectedAriaLabel,
158
158
  css: styles.euiFilePicker__clearButton,
159
159
  className: "euiFilePicker__clearButton",
160
160
  size: "xs",
@@ -82,7 +82,7 @@ export var euiRangeThumbStyle = function euiRangeThumbStyle(euiThemeContext) {
82
82
  return "\n ".concat(euiRangeThumbBoxShadow(euiThemeContext), ";\n ").concat(euiRangeThumbBorder(euiThemeContext), ";\n cursor: pointer;\n background-color: ").concat(range.thumbBackgroundColor, ";\n padding: 0;\n block-size: ").concat(range.thumbHeight, ";\n inline-size: ").concat(range.thumbWidth, ";\n box-sizing: border-box; // required for firefox or the border makes the width and height to increase\n ");
83
83
  };
84
84
  export var euiRangeThumbPerBrowser = function euiRangeThumbPerBrowser(content) {
85
- return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n &::-ms-thumb {").concat(content, "; }\n ");
85
+ return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n &::-ms-thumb {").concat(content, "; }\n ");
86
86
  };
87
87
  export var euiRangeThumbFocus = function euiRangeThumbFocus(euiThemeContext, color) {
88
88
  var range = euiRangeVariables(euiThemeContext);
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconAnomalyChart = function EuiIconAnomalyChart(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M14.5 14H2V1.5a.5.5 0 0 0-1 0v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 0-1Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M8.42 5a.5.5 0 0 1 .505.43L9.864 12h.873l.957-.87a.5.5 0 0 1 .672 0l1.1 1a.5.5 0 0 1-.672.74l-.764-.694-.764.694a.5.5 0 0 1-.336.13h-1.5a.5.5 0 0 1-.495-.43l-.429-3-.312 2.982a.5.5 0 0 1-.834.318l-.689-.626-.404.552a.5.5 0 0 1-.404.204h-.53a.5.5 0 0 1-.403-.204l-.405-.552-.689.626a.5.5 0 1 1-.672-.74l1.1-1a.5.5 0 0 1 .74.074l.583.796h.023l.583-.796a.5.5 0 0 1 .74-.074l.37.336.63-6.018A.5.5 0 0 1 8.42 5Zm.08-3.01a.5.5 0 1 0 0 1.002.5.5 0 0 0 0-1.002ZM8.5 4A1.503 1.503 0 0 1 7 2.493a1.5 1.5 0 0 1 .44-1.066c.566-.57 1.554-.57 2.121 0 .283.285.439.663.439 1.066A1.502 1.502 0 0 1 8.5 4Z",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconAnomalyChart;
@@ -0,0 +1,32 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconAnomalySwimLane = function EuiIconAnomalySwimLane(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M1 5V1h4v4H1Zm3-1V2H2v2h2Zm7 1V1h4v4h-4Zm1-1h2V2h-2v2ZM1 10V6h4v4H1Zm3-1V7H2v2h2Zm2 6v-4h4v4H6Zm1-1h2v-2H7v2Zm4 1v-4h4v4h-4Zm1-1h2v-2h-2v2Zm-1-8h4v4h-4V6ZM6 6h4v4H6V6Zm-5 5h4v4H1v-4ZM6 1h4v4H6V1Z"
30
+ }));
31
+ };
32
+ export var icon = EuiIconAnomalySwimLane;
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconChangePointDetection = function EuiIconChangePointDetection(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M2 14h12.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0V14Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M15 6.5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5V12H3.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 .5-.5V7h5.5a.5.5 0 0 0 .5-.5ZM7.023 3.206A.301.301 0 0 1 7.3 3h2.4c.121 0 .23.081.277.206a.36.36 0 0 1-.065.363l-1.2 1.333a.28.28 0 0 1-.424 0l-1.2-1.333a.36.36 0 0 1-.065-.363Z",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconChangePointDetection;