@elastic/eui 112.3.0 → 113.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 (294) hide show
  1. package/es/components/badge/beta_badge/beta_badge.styles.js +1 -1
  2. package/es/components/badge/color_utils.js +1 -1
  3. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
  4. package/es/components/button/button_display/_button_display.js +1 -0
  5. package/es/components/button/button_display/_button_display.styles.js +3 -3
  6. package/es/components/button/button_display/_button_display_content.js +6 -1
  7. package/es/components/button/button_display/_button_display_content.styles.js +6 -1
  8. package/es/components/button/button_empty/button_empty.js +1 -0
  9. package/es/components/button/button_empty/button_empty.styles.js +3 -3
  10. package/es/components/button/button_group/button_group.js +4 -27
  11. package/es/components/button/button_group/button_group_button.js +4 -27
  12. package/es/components/code/code_block_annotations.js +1 -1
  13. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  14. package/es/components/color_picker/color_picker.js +2 -1
  15. package/es/components/color_picker/color_picker.styles.js +1 -1
  16. package/es/components/color_picker/hue.styles.js +2 -2
  17. package/es/components/color_picker/saturation.styles.js +2 -2
  18. package/es/components/date_picker/auto_refresh/auto_refresh.js +8 -8
  19. package/es/components/date_picker/date_picker_range.js +12 -2
  20. package/es/components/date_picker/date_picker_range.styles.js +1 -1
  21. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +6 -1
  22. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -24
  23. package/es/components/date_picker/super_date_picker/super_date_picker.js +3 -1
  24. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
  25. package/es/components/filter_group/filter_button.styles.js +1 -1
  26. package/es/components/flyout/flyout_body.js +10 -3
  27. package/es/components/flyout/manager/actions.js +11 -0
  28. package/es/components/flyout/manager/flyout_managed.js +4 -3
  29. package/es/components/flyout/manager/index.js +1 -1
  30. package/es/components/flyout/manager/reducer.js +19 -1
  31. package/es/components/flyout/manager/store.js +4 -1
  32. package/es/components/form/field_password/field_password.js +6 -3
  33. package/es/components/form/form.styles.js +18 -11
  34. package/es/components/form/form_control_button/form_control_button.js +30 -7
  35. package/es/components/form/form_control_button/form_control_button.styles.js +5 -2
  36. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +149 -0
  37. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +28 -0
  38. package/es/components/form/form_control_layout/append_prepend/index.js +9 -0
  39. package/es/components/form/form_control_layout/form_control_layout.js +55 -24
  40. package/es/components/form/form_control_layout/form_control_layout.styles.js +46 -27
  41. package/es/components/form/form_control_layout/form_control_layout_context.js +21 -0
  42. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +5 -12
  43. package/es/components/form/form_control_layout/index.js +2 -1
  44. package/es/components/form/form_label/form_label.js +17 -3
  45. package/es/components/form/range/range_levels.styles.js +1 -1
  46. package/es/components/form/range/range_tooltip.styles.js +1 -1
  47. package/es/components/header/header.styles.js +1 -1
  48. package/es/components/header/header_links/header_link.js +7 -0
  49. package/es/components/header/header_section/header_section_item_button.js +7 -0
  50. package/es/components/icon/icon.styles.js +1 -1
  51. package/es/components/image/image_caption.styles.js +1 -1
  52. package/es/components/link/link.styles.js +1 -1
  53. package/es/components/list_group/list_group_item.styles.js +1 -1
  54. package/es/components/markdown_editor/markdown_format.styles.js +1 -1
  55. package/es/components/pagination/pagination_button.js +7 -0
  56. package/es/components/pagination/pagination_button.styles.js +1 -1
  57. package/es/components/text/text_color.styles.js +1 -1
  58. package/es/components/token/token.styles.js +1 -1
  59. package/es/components/tool_tip/tool_tip.styles.js +1 -1
  60. package/es/global_styling/mixins/_button.js +7 -2
  61. package/eui.d.ts +180 -48
  62. package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -1
  63. package/lib/components/badge/color_utils.js +1 -1
  64. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
  65. package/lib/components/button/button_display/_button_display.js +1 -0
  66. package/lib/components/button/button_display/_button_display.styles.js +2 -2
  67. package/lib/components/button/button_display/_button_display_content.js +6 -1
  68. package/lib/components/button/button_display/_button_display_content.styles.js +6 -1
  69. package/lib/components/button/button_empty/button_empty.js +2 -1
  70. package/lib/components/button/button_empty/button_empty.styles.js +2 -2
  71. package/lib/components/button/button_group/button_group.js +5 -28
  72. package/lib/components/button/button_group/button_group_button.js +4 -27
  73. package/lib/components/code/code_block_annotations.js +1 -1
  74. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  75. package/lib/components/color_picker/color_picker.js +2 -1
  76. package/lib/components/color_picker/color_picker.styles.js +1 -1
  77. package/lib/components/color_picker/hue.styles.js +2 -2
  78. package/lib/components/color_picker/saturation.styles.js +2 -2
  79. package/lib/components/date_picker/auto_refresh/auto_refresh.js +8 -8
  80. package/lib/components/date_picker/date_picker_range.js +12 -2
  81. package/lib/components/date_picker/date_picker_range.styles.js +1 -1
  82. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
  83. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -23
  84. package/lib/components/date_picker/super_date_picker/super_date_picker.js +3 -1
  85. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
  86. package/lib/components/filter_group/filter_button.styles.js +1 -1
  87. package/lib/components/flyout/flyout_body.js +10 -3
  88. package/lib/components/flyout/manager/actions.js +12 -1
  89. package/lib/components/flyout/manager/flyout_managed.js +4 -3
  90. package/lib/components/flyout/manager/index.js +6 -0
  91. package/lib/components/flyout/manager/reducer.js +18 -0
  92. package/lib/components/flyout/manager/store.js +3 -0
  93. package/lib/components/form/field_password/field_password.js +6 -3
  94. package/lib/components/form/form.styles.js +19 -12
  95. package/lib/components/form/form_control_button/form_control_button.js +29 -6
  96. package/lib/components/form/form_control_button/form_control_button.styles.js +3 -0
  97. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +158 -0
  98. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
  99. package/lib/components/form/form_control_layout/append_prepend/index.js +18 -0
  100. package/lib/components/form/form_control_layout/form_control_layout.js +55 -24
  101. package/lib/components/form/form_control_layout/form_control_layout.styles.js +45 -26
  102. package/lib/components/form/form_control_layout/form_control_layout_context.js +27 -0
  103. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
  104. package/lib/components/form/form_control_layout/index.js +18 -1
  105. package/lib/components/form/form_label/form_label.js +17 -3
  106. package/lib/components/form/range/range_levels.styles.js +1 -1
  107. package/lib/components/form/range/range_tooltip.styles.js +1 -1
  108. package/lib/components/header/header.styles.js +1 -1
  109. package/lib/components/header/header_links/header_link.js +7 -0
  110. package/lib/components/header/header_section/header_section_item_button.js +7 -0
  111. package/lib/components/icon/icon.styles.js +1 -1
  112. package/lib/components/image/image_caption.styles.js +1 -1
  113. package/lib/components/inline_edit/inline_edit_form.js +1 -1
  114. package/lib/components/link/link.styles.js +1 -1
  115. package/lib/components/list_group/list_group_item.styles.js +1 -1
  116. package/lib/components/markdown_editor/markdown_format.styles.js +1 -1
  117. package/lib/components/pagination/pagination_button.js +7 -0
  118. package/lib/components/pagination/pagination_button.styles.js +1 -1
  119. package/lib/components/text/text_color.styles.js +1 -1
  120. package/lib/components/token/token.styles.js +1 -1
  121. package/lib/components/tool_tip/tool_tip.styles.js +1 -1
  122. package/lib/global_styling/mixins/_button.js +8 -3
  123. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -1
  124. package/optimize/es/components/badge/color_utils.js +1 -1
  125. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
  126. package/optimize/es/components/button/button_display/_button_display.js +1 -0
  127. package/optimize/es/components/button/button_display/_button_display.styles.js +3 -3
  128. package/optimize/es/components/button/button_display/_button_display_content.js +5 -1
  129. package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -1
  130. package/optimize/es/components/button/button_empty/button_empty.js +1 -0
  131. package/optimize/es/components/button/button_empty/button_empty.styles.js +3 -3
  132. package/optimize/es/components/code/code_block_annotations.js +1 -1
  133. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  134. package/optimize/es/components/color_picker/color_picker.js +2 -1
  135. package/optimize/es/components/color_picker/color_picker.styles.js +1 -1
  136. package/optimize/es/components/color_picker/hue.styles.js +2 -2
  137. package/optimize/es/components/color_picker/saturation.styles.js +2 -2
  138. package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +8 -8
  139. package/optimize/es/components/date_picker/date_picker_range.js +8 -2
  140. package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
  141. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +6 -1
  142. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
  143. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +3 -1
  144. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
  145. package/optimize/es/components/filter_group/filter_button.styles.js +1 -1
  146. package/optimize/es/components/flyout/flyout_body.js +5 -2
  147. package/optimize/es/components/flyout/manager/actions.js +11 -0
  148. package/optimize/es/components/flyout/manager/flyout_managed.js +4 -3
  149. package/optimize/es/components/flyout/manager/index.js +1 -1
  150. package/optimize/es/components/flyout/manager/reducer.js +19 -1
  151. package/optimize/es/components/flyout/manager/store.js +4 -1
  152. package/optimize/es/components/form/field_password/field_password.js +6 -3
  153. package/optimize/es/components/form/form.styles.js +18 -11
  154. package/optimize/es/components/form/form_control_button/form_control_button.js +23 -7
  155. package/optimize/es/components/form/form_control_button/form_control_button.styles.js +5 -2
  156. package/optimize/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +102 -0
  157. package/optimize/es/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +28 -0
  158. package/optimize/es/components/form/form_control_layout/append_prepend/index.js +9 -0
  159. package/optimize/es/components/form/form_control_layout/form_control_layout.js +52 -23
  160. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +46 -27
  161. package/optimize/es/components/form/form_control_layout/form_control_layout_context.js +21 -0
  162. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +5 -12
  163. package/optimize/es/components/form/form_control_layout/index.js +2 -1
  164. package/optimize/es/components/form/form_label/form_label.js +9 -2
  165. package/optimize/es/components/form/range/range_levels.styles.js +1 -1
  166. package/optimize/es/components/form/range/range_tooltip.styles.js +1 -1
  167. package/optimize/es/components/header/header.styles.js +1 -1
  168. package/optimize/es/components/icon/icon.styles.js +1 -1
  169. package/optimize/es/components/image/image_caption.styles.js +1 -1
  170. package/optimize/es/components/link/link.styles.js +1 -1
  171. package/optimize/es/components/list_group/list_group_item.styles.js +1 -1
  172. package/optimize/es/components/markdown_editor/markdown_format.styles.js +1 -1
  173. package/optimize/es/components/pagination/pagination_button.styles.js +1 -1
  174. package/optimize/es/components/text/text_color.styles.js +1 -1
  175. package/optimize/es/components/token/token.styles.js +1 -1
  176. package/optimize/es/components/tool_tip/tool_tip.styles.js +1 -1
  177. package/optimize/es/global_styling/mixins/_button.js +7 -2
  178. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -1
  179. package/optimize/lib/components/badge/color_utils.js +1 -1
  180. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
  181. package/optimize/lib/components/button/button_display/_button_display.js +1 -0
  182. package/optimize/lib/components/button/button_display/_button_display.styles.js +2 -2
  183. package/optimize/lib/components/button/button_display/_button_display_content.js +5 -1
  184. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -1
  185. package/optimize/lib/components/button/button_empty/button_empty.js +1 -0
  186. package/optimize/lib/components/button/button_empty/button_empty.styles.js +2 -2
  187. package/optimize/lib/components/code/code_block_annotations.js +1 -1
  188. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  189. package/optimize/lib/components/color_picker/color_picker.js +2 -1
  190. package/optimize/lib/components/color_picker/color_picker.styles.js +1 -1
  191. package/optimize/lib/components/color_picker/hue.styles.js +2 -2
  192. package/optimize/lib/components/color_picker/saturation.styles.js +2 -2
  193. package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -7
  194. package/optimize/lib/components/date_picker/date_picker_range.js +8 -2
  195. package/optimize/lib/components/date_picker/date_picker_range.styles.js +1 -1
  196. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
  197. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
  198. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +3 -1
  199. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
  200. package/optimize/lib/components/filter_group/filter_button.styles.js +1 -1
  201. package/optimize/lib/components/flyout/flyout_body.js +5 -2
  202. package/optimize/lib/components/flyout/manager/actions.js +12 -1
  203. package/optimize/lib/components/flyout/manager/flyout_managed.js +4 -3
  204. package/optimize/lib/components/flyout/manager/index.js +6 -0
  205. package/optimize/lib/components/flyout/manager/reducer.js +18 -0
  206. package/optimize/lib/components/flyout/manager/store.js +3 -0
  207. package/optimize/lib/components/form/field_password/field_password.js +6 -3
  208. package/optimize/lib/components/form/form.styles.js +19 -12
  209. package/optimize/lib/components/form/form_control_button/form_control_button.js +22 -6
  210. package/optimize/lib/components/form/form_control_button/form_control_button.styles.js +3 -0
  211. package/optimize/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +111 -0
  212. package/optimize/lib/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
  213. package/optimize/lib/components/form/form_control_layout/append_prepend/index.js +18 -0
  214. package/optimize/lib/components/form/form_control_layout/form_control_layout.js +52 -23
  215. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +45 -26
  216. package/optimize/lib/components/form/form_control_layout/form_control_layout_context.js +27 -0
  217. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
  218. package/optimize/lib/components/form/form_control_layout/index.js +18 -1
  219. package/optimize/lib/components/form/form_label/form_label.js +9 -2
  220. package/optimize/lib/components/form/range/range_levels.styles.js +1 -1
  221. package/optimize/lib/components/form/range/range_tooltip.styles.js +1 -1
  222. package/optimize/lib/components/header/header.styles.js +1 -1
  223. package/optimize/lib/components/icon/icon.styles.js +1 -1
  224. package/optimize/lib/components/image/image_caption.styles.js +1 -1
  225. package/optimize/lib/components/link/link.styles.js +1 -1
  226. package/optimize/lib/components/list_group/list_group_item.styles.js +1 -1
  227. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +1 -1
  228. package/optimize/lib/components/pagination/pagination_button.styles.js +1 -1
  229. package/optimize/lib/components/text/text_color.styles.js +1 -1
  230. package/optimize/lib/components/token/token.styles.js +1 -1
  231. package/optimize/lib/components/tool_tip/tool_tip.styles.js +1 -1
  232. package/optimize/lib/global_styling/mixins/_button.js +8 -3
  233. package/package.json +4 -4
  234. package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -1
  235. package/test-env/components/badge/color_utils.js +1 -1
  236. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -1
  237. package/test-env/components/button/button_display/_button_display.js +1 -0
  238. package/test-env/components/button/button_display/_button_display.styles.js +2 -2
  239. package/test-env/components/button/button_display/_button_display_content.js +6 -1
  240. package/test-env/components/button/button_display/_button_display_content.styles.js +6 -1
  241. package/test-env/components/button/button_empty/button_empty.js +2 -1
  242. package/test-env/components/button/button_empty/button_empty.styles.js +2 -2
  243. package/test-env/components/button/button_group/button_group.js +5 -28
  244. package/test-env/components/button/button_group/button_group_button.js +4 -27
  245. package/test-env/components/code/code_block_annotations.js +1 -1
  246. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  247. package/test-env/components/color_picker/color_picker.js +2 -1
  248. package/test-env/components/color_picker/color_picker.styles.js +1 -1
  249. package/test-env/components/color_picker/hue.styles.js +2 -2
  250. package/test-env/components/color_picker/saturation.styles.js +2 -2
  251. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +8 -8
  252. package/test-env/components/date_picker/date_picker_range.js +12 -2
  253. package/test-env/components/date_picker/date_picker_range.styles.js +1 -1
  254. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
  255. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
  256. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +3 -1
  257. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
  258. package/test-env/components/filter_group/filter_button.styles.js +1 -1
  259. package/test-env/components/flyout/flyout_body.js +10 -3
  260. package/test-env/components/flyout/manager/actions.js +12 -1
  261. package/test-env/components/flyout/manager/flyout_managed.js +4 -3
  262. package/test-env/components/flyout/manager/index.js +6 -0
  263. package/test-env/components/flyout/manager/reducer.js +18 -0
  264. package/test-env/components/flyout/manager/store.js +3 -0
  265. package/test-env/components/form/field_password/field_password.js +6 -3
  266. package/test-env/components/form/form.styles.js +19 -12
  267. package/test-env/components/form/form_control_button/form_control_button.js +29 -6
  268. package/test-env/components/form/form_control_button/form_control_button.styles.js +3 -0
  269. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +157 -0
  270. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
  271. package/test-env/components/form/form_control_layout/append_prepend/index.js +18 -0
  272. package/test-env/components/form/form_control_layout/form_control_layout.js +55 -24
  273. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +45 -26
  274. package/test-env/components/form/form_control_layout/form_control_layout_context.js +27 -0
  275. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
  276. package/test-env/components/form/form_control_layout/index.js +18 -1
  277. package/test-env/components/form/form_label/form_label.js +17 -3
  278. package/test-env/components/form/range/range_levels.styles.js +1 -1
  279. package/test-env/components/form/range/range_tooltip.styles.js +1 -1
  280. package/test-env/components/header/header.styles.js +1 -1
  281. package/test-env/components/header/header_links/header_link.js +7 -0
  282. package/test-env/components/header/header_section/header_section_item_button.js +7 -0
  283. package/test-env/components/icon/icon.styles.js +1 -1
  284. package/test-env/components/image/image_caption.styles.js +1 -1
  285. package/test-env/components/inline_edit/inline_edit_form.js +1 -1
  286. package/test-env/components/link/link.styles.js +1 -1
  287. package/test-env/components/list_group/list_group_item.styles.js +1 -1
  288. package/test-env/components/markdown_editor/markdown_format.styles.js +1 -1
  289. package/test-env/components/pagination/pagination_button.js +7 -0
  290. package/test-env/components/pagination/pagination_button.styles.js +1 -1
  291. package/test-env/components/text/text_color.styles.js +1 -1
  292. package/test-env/components/token/token.styles.js +1 -1
  293. package/test-env/components/tool_tip/tool_tip.styles.js +1 -1
  294. package/test-env/global_styling/mixins/_button.js +8 -3
package/eui.d.ts CHANGED
@@ -1210,6 +1210,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
1210
1210
  * @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
1211
1211
  */
1212
1212
  export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
1213
+ export const euiButtonDisplaysColors: (euiThemeContext: UseEuiTheme) => Record<"base" | "fill" | "empty", Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>>;
1213
1214
  /**
1214
1215
  * Creates the translate animation when button is in focus.
1215
1216
  * @returns string
@@ -1223,18 +1224,21 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
1223
1224
  xs: {
1224
1225
  minWidth: number;
1225
1226
  height: string;
1227
+ padding: string;
1226
1228
  radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1227
1229
  fontScale: "xs";
1228
1230
  };
1229
1231
  s: {
1230
1232
  minWidth: number;
1231
1233
  height: string;
1234
+ padding: string;
1232
1235
  radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1233
1236
  fontScale: "s";
1234
1237
  };
1235
1238
  m: {
1236
1239
  minWidth: number;
1237
1240
  height: string;
1241
+ padding: string;
1238
1242
  radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1239
1243
  fontScale: "s";
1240
1244
  };
@@ -10020,6 +10024,11 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
10020
10024
  import { UseEuiTheme } from '@elastic/eui/src/services';
10021
10025
  export const euiButtonDisplayContentStyles: (euiThemeContext: UseEuiTheme) => {
10022
10026
  euiButtonDisplayContent: import("@emotion/react").SerializedStyles;
10027
+ content: {
10028
+ xs: import("@emotion/react").SerializedStyles;
10029
+ s: import("@emotion/react").SerializedStyles;
10030
+ m: import("@emotion/react").SerializedStyles;
10031
+ };
10023
10032
  };
10024
10033
 
10025
10034
  }
@@ -10027,6 +10036,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
10027
10036
  import { HTMLAttributes, FunctionComponent, Ref } from 'react';
10028
10037
  import { CommonProps } from '@elastic/eui/src/components/common';
10029
10038
  import { IconType } from '@elastic/eui/src/components/icon';
10039
+ import { EuiButtonDisplaySizes } from '@elastic/eui/src/components/button/button_display/_button_display';
10030
10040
  export const ICON_SIZES: readonly ["s", "m"];
10031
10041
  export type ButtonContentIconSize = (typeof ICON_SIZES)[number];
10032
10042
  export const ICON_SIDES: readonly ["left", "right"];
@@ -10037,6 +10047,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
10037
10047
  * This component is simply a helper component for reuse within other button components.
10038
10048
  */
10039
10049
  export interface EuiButtonDisplayContentProps extends CommonProps {
10050
+ size?: EuiButtonDisplaySizes;
10040
10051
  /**
10041
10052
  * Any `type` accepted by EuiIcon
10042
10053
  */
@@ -10412,6 +10423,8 @@ declare module '@elastic/eui/src/components/form/form.styles' {
10412
10423
  controlLayoutGroupInputHeight: string;
10413
10424
  controlLayoutGroupInputCompressedHeight: string;
10414
10425
  controlLayoutGroupInputCompressedBorderRadius: import("csstype").Property.BorderRadius<string | number> | undefined;
10426
+ controlLayoutBorderRadius: import("csstype").Property.BorderRadius<string | number> | undefined;
10427
+ controlLayoutInnerBorderRadius: string;
10415
10428
  controlIconSize: {
10416
10429
  s: string;
10417
10430
  m: string;
@@ -10424,15 +10437,19 @@ declare module '@elastic/eui/src/components/form/form.styles' {
10424
10437
  backgroundColor: string;
10425
10438
  backgroundDisabledColor: string;
10426
10439
  backgroundReadOnlyColor: string;
10440
+ backgroundAutoFilled: string;
10427
10441
  borderColor: string;
10428
10442
  borderHovered: string;
10429
10443
  borderFocused: string;
10430
10444
  borderInvalid: string;
10431
10445
  borderInvalidHovered: string;
10446
+ borderAutofilled: string;
10447
+ borderAutofilledHovered: string;
10432
10448
  controlDisabledColor: string;
10433
10449
  controlBoxShadow: string;
10434
10450
  controlPlaceholderText: string;
10435
10451
  appendPrependBackground: string;
10452
+ labelColor: string;
10436
10453
  maxWidth: string;
10437
10454
  controlHeight: string;
10438
10455
  controlCompressedHeight: string;
@@ -10471,6 +10488,7 @@ declare module '@elastic/eui/src/components/form/form.styles' {
10471
10488
  export const euiFormControlDisabledStyles: (euiThemeContext: UseEuiTheme) => string;
10472
10489
  export const euiFormControlReadOnlyStyles: (euiThemeContext: UseEuiTheme) => string;
10473
10490
  export const euiFormControlAutoFillStyles: (euiThemeContext: UseEuiTheme) => string;
10491
+ export const euiFormControlAutofillUnsetStyles = "\n\n";
10474
10492
  export const euiFormControlShowBackgroundLine: (euiThemeContext: UseEuiTheme, color: string) => string;
10475
10493
  /**
10476
10494
  * Selection custom controls - checkboxes, radios, and switches
@@ -10544,7 +10562,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
10544
10562
  import { _EuiButtonColor } from '@elastic/eui/src/global_styling/mixins';
10545
10563
  import { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
10546
10564
  import { EuiButtonDisplayContentProps } from '@elastic/eui/src/components/button/button_display/_button_display_content';
10547
- export interface EuiButtonGroupOptionProps extends EuiButtonDisplayContentProps, CommonProps, EuiDisabledProps {
10565
+ export interface EuiButtonGroupOptionProps extends Omit<EuiButtonDisplayContentProps, 'size'>, CommonProps, EuiDisabledProps {
10548
10566
  /**
10549
10567
  * Each option must have a unique `id` for maintaining selection
10550
10568
  */
@@ -12134,6 +12152,7 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
12134
12152
  dispatch: (action: Action) => void;
12135
12153
  addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => void;
12136
12154
  closeFlyout: (flyoutId: string) => void;
12155
+ closeAllFlyouts: () => void;
12137
12156
  setActiveFlyout: (flyoutId: string | null) => void;
12138
12157
  setFlyoutWidth: (flyoutId: string, width: number) => void;
12139
12158
  setPushPadding: (side: 'left' | 'right', width: number) => void;
@@ -12157,6 +12176,8 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
12157
12176
  export const ACTION_ADD: "eui/flyoutManager/add";
12158
12177
  /** Dispatched to remove a flyout from the manager (usually on close/unmount). */
12159
12178
  export const ACTION_CLOSE: "eui/flyoutManager/close";
12179
+ /** Dispatched to remove all flyouts from the manager. */
12180
+ export const ACTION_CLOSE_ALL: "eui/flyoutManager/closeAll";
12160
12181
  /** Dispatched to set which flyout is currently active within the session. */
12161
12182
  export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
12162
12183
  /** Dispatched when an active flyout's pixel width changes (for responsive layout). */
@@ -12189,6 +12210,10 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
12189
12210
  type: typeof ACTION_CLOSE;
12190
12211
  flyoutId: string;
12191
12212
  }
12213
+ /** Remove all flyouts from manager state. */
12214
+ export interface CloseAllFlyoutsAction extends BaseAction {
12215
+ type: typeof ACTION_CLOSE_ALL;
12216
+ }
12192
12217
  /** Set the active flyout within the current session (or clear with `null`). */
12193
12218
  export interface SetActiveFlyoutAction extends BaseAction {
12194
12219
  type: typeof ACTION_SET_ACTIVE;
@@ -12235,7 +12260,7 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
12235
12260
  flyoutId: string;
12236
12261
  }
12237
12262
  /** Union of all flyout manager actions. */
12238
- export type Action = AddFlyoutAction | CloseFlyoutAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction;
12263
+ export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction;
12239
12264
  /**
12240
12265
  * Register a flyout with the manager.
12241
12266
  * - `title` is used for the flyout menu.
@@ -12245,6 +12270,8 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
12245
12270
  export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => AddFlyoutAction;
12246
12271
  /** Unregister a flyout and update the session accordingly. */
12247
12272
  export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
12273
+ /** Unregister all flyouts. */
12274
+ export const closeAllFlyouts: () => CloseAllFlyoutsAction;
12248
12275
  /** Set or clear the active flyout for the current session. */
12249
12276
  export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
12250
12277
  /** Record a flyout's current width in pixels. */
@@ -12298,6 +12325,7 @@ declare module '@elastic/eui/src/components/flyout/manager/store' {
12298
12325
  dispatch: (action: Action) => void;
12299
12326
  addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => void;
12300
12327
  closeFlyout: (flyoutId: string) => void;
12328
+ closeAllFlyouts: () => void;
12301
12329
  setActiveFlyout: (flyoutId: string | null) => void;
12302
12330
  setFlyoutWidth: (flyoutId: string, width: number) => void;
12303
12331
  setPushPadding: (side: 'left' | 'right', width: number) => void;
@@ -13109,7 +13137,7 @@ declare module '@elastic/eui/src/components/flyout/manager' {
13109
13137
  /**
13110
13138
  * Convenience re-exports of bound action creators for external usage.
13111
13139
  */
13112
- export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
13140
+ export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, closeAllFlyouts as closeAllFlyoutsAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
13113
13141
  /** Reducer and default state for the flyout manager. */
13114
13142
  export { flyoutManagerReducer, initialState } from '@elastic/eui/src/components/flyout/manager/reducer';
13115
13143
  /** Flyout manager store singleton and types. */
@@ -14141,7 +14169,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
14141
14169
 
14142
14170
  }
14143
14171
  declare module '@elastic/eui/src/components/flyout/flyout_body' {
14144
- import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
14172
+ import { FunctionComponent, HTMLAttributes, ReactNode, Ref } from 'react';
14145
14173
  import { CommonProps } from '@elastic/eui/src/components/common';
14146
14174
  export type EuiFlyoutBodyProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps & {
14147
14175
  /**
@@ -14158,6 +14186,10 @@ declare module '@elastic/eui/src/components/flyout/flyout_body' {
14158
14186
  * to override this default.
14159
14187
  */
14160
14188
  scrollableTabIndex?: number;
14189
+ /**
14190
+ * Use to access the flyout's internal scrollable container.
14191
+ */
14192
+ scrollContainerRef?: Ref<HTMLDivElement>;
14161
14193
  }>;
14162
14194
  export const EuiFlyoutBody: EuiFlyoutBodyProps;
14163
14195
 
@@ -14845,7 +14877,7 @@ declare module '@elastic/eui/src/components/form/form_label/form_label' {
14845
14877
  * Default type is a `label` but can be changed to a `legend`
14846
14878
  * if using inside a `fieldset`.
14847
14879
  */
14848
- type?: 'label' | 'legend';
14880
+ type?: 'label' | 'legend' | 'span';
14849
14881
  }
14850
14882
  export type _EuiFormLabelProps = {
14851
14883
  type?: 'label';
@@ -14853,7 +14885,10 @@ declare module '@elastic/eui/src/components/form/form_label/form_label' {
14853
14885
  export type _EuiFormLegendProps = {
14854
14886
  type: 'legend';
14855
14887
  } & EuiFormLabelCommonProps & CommonProps & HTMLAttributes<HTMLLegendElement>;
14856
- export type EuiFormLabelProps = ExclusiveUnion<_EuiFormLabelProps, _EuiFormLegendProps>;
14888
+ export type _EuiFormLabelSpanProps = {
14889
+ type: 'span';
14890
+ } & EuiFormLabelCommonProps & CommonProps & HTMLAttributes<HTMLSpanElement>;
14891
+ export type EuiFormLabelProps = ExclusiveUnion<ExclusiveUnion<_EuiFormLabelProps, _EuiFormLegendProps>, _EuiFormLabelSpanProps>;
14857
14892
  export const EuiFormLabel: FunctionComponent<EuiFormLabelProps>;
14858
14893
  export {};
14859
14894
 
@@ -14990,6 +15025,9 @@ declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons'
14990
15025
  }
14991
15026
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout.styles' {
14992
15027
  import { UseEuiTheme } from '@elastic/eui/src/services';
15028
+ export const buttonSelector = "*:is(.euiButton, .euiButtonEmpty, .euiButtonIcon, .euiFormAppend, .euiFormPrepend)";
15029
+ export const textSelector = "*:is(.euiFormLabel, .euiText)";
15030
+ export const appendPrependSelector = "*:is(.euiFormAppend, .euiFormPrepend)";
14993
15031
  export const euiFormControlLayoutStyles: (euiThemeContext: UseEuiTheme) => {
14994
15032
  euiFormControlLayout: import("@emotion/react").SerializedStyles;
14995
15033
  uncompressed: string;
@@ -15004,17 +15042,104 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
15004
15042
  children: {
15005
15043
  euiFormControlLayout__childrenWrapper: import("@emotion/react").SerializedStyles;
15006
15044
  inGroup: import("@emotion/react").SerializedStyles;
15007
- prependOnly: import("@emotion/react").SerializedStyles;
15008
- appendOnly: import("@emotion/react").SerializedStyles;
15009
15045
  };
15010
15046
  };
15011
15047
  export const euiFormControlLayoutSideNodeStyles: (euiThemeContext: UseEuiTheme) => {
15012
15048
  euiFormControlLayout__side: import("@emotion/react").SerializedStyles;
15013
- append: import("@emotion/react").SerializedStyles;
15014
- prepend: import("@emotion/react").SerializedStyles;
15015
- uncompressed: string;
15049
+ uncompressed: {
15050
+ uncompressed: string;
15051
+ append: string;
15052
+ prepend: string;
15053
+ };
15054
+ compressed: {
15055
+ compressed: import("@emotion/react").SerializedStyles;
15056
+ append: string;
15057
+ prepend: string;
15058
+ };
15059
+ disabled: import("@emotion/react").SerializedStyles;
15060
+ readOnly: import("@emotion/react").SerializedStyles;
15061
+ };
15062
+
15063
+ }
15064
+ declare module '@elastic/eui/src/components/form/form_control_layout/append_prepend/form_append_prepend.styles' {
15065
+ import { UseEuiTheme } from '@elastic/eui-theme-common';
15066
+ export const euiFormAppendPrependStyles: (euiThemeContext: UseEuiTheme) => {
15067
+ side: import("@emotion/react").SerializedStyles;
15068
+ uncompressed: import("@emotion/react").SerializedStyles;
15016
15069
  compressed: import("@emotion/react").SerializedStyles;
15070
+ wrapper: import("@emotion/react").SerializedStyles;
15071
+ isInteractive: import("@emotion/react").SerializedStyles;
15072
+ disabled: import("@emotion/react").SerializedStyles;
15073
+ };
15074
+
15075
+ }
15076
+ declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_context' {
15077
+ import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout';
15078
+ type FormControlLayoutContext = Pick<EuiFormControlLayoutProps, 'compressed' | 'inputId' | 'isDisabled' | 'isInvalid' | 'readOnly' | 'isLoading'>;
15079
+ /**
15080
+ * Context to share props between `EuiFormControlLayout` and passed children like e.g. EuiFormAppend/Prepend
15081
+ */
15082
+ export const EuiFormControlLayoutContext: import("react").Context<FormControlLayoutContext>;
15083
+ export const EuiFormControlLayoutContextProvider: import("react").Provider<FormControlLayoutContext>;
15084
+ export {};
15085
+
15086
+ }
15087
+ declare module '@elastic/eui/src/components/form/form_control_layout/append_prepend/form_append_prepend' {
15088
+ import React, { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, ReactNode } from 'react';
15089
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
15090
+ import { IconType } from '@elastic/eui/src/components/icon';
15091
+ export type EuiFormAppendProps = EuiFormAppendPrependBaseProps;
15092
+ export const EuiFormAppend: ({ className, ...rest }: EuiFormAppendProps) => React.JSX.Element;
15093
+ export type EuiFormPrependProps = EuiFormAppendPrependBaseProps;
15094
+ export const EuiFormPrepend: ({ className, ...rest }: EuiFormPrependProps) => React.JSX.Element;
15095
+ export type EuiFormAppendPrependCommonProps = CommonProps & {
15096
+ /**
15097
+ * Main content label
15098
+ */
15099
+ label?: ReactNode;
15100
+ /**
15101
+ * Left side icon
15102
+ */
15103
+ iconLeft?: IconType;
15104
+ /**
15105
+ * Right side icon
15106
+ */
15107
+ iconRight?: IconType;
15108
+ /**
15109
+ * Optional content that will be appended to `label` and icons
15110
+ */
15111
+ children?: ReactNode;
15112
+ /**
15113
+ * id of the input element that the form label is linked to via `htmlFor` attribute
15114
+ */
15115
+ inputId?: string;
15116
+ /**
15117
+ * Renders the element with smaller height and padding
15118
+ */
15119
+ compressed?: boolean;
15017
15120
  };
15121
+ export type EuiFormAppendPrependButtonProps = EuiFormAppendPrependCommonProps & {
15122
+ /**
15123
+ * Defines the rendered HTML element
15124
+ */
15125
+ element?: 'button';
15126
+ isDisabled?: boolean;
15127
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
15128
+ export type EuiFormAppendPrependDivProps = EuiFormAppendPrependCommonProps & {
15129
+ /**
15130
+ * Defines the rendered HTML element
15131
+ */
15132
+ element?: 'div';
15133
+ } & HTMLAttributes<HTMLDivElement>;
15134
+ export type EuiFormAppendPrependBaseProps = ExclusiveUnion<EuiFormAppendPrependButtonProps, EuiFormAppendPrependDivProps>;
15135
+ export type EuiFormAppendPrependProps = {
15136
+ side: 'append' | 'prepend';
15137
+ } & EuiFormAppendPrependBaseProps;
15138
+ export const EuiFormAppendPrepend: FunctionComponent<EuiFormAppendPrependProps>;
15139
+
15140
+ }
15141
+ declare module '@elastic/eui/src/components/form/form_control_layout/append_prepend' {
15142
+ export { EuiFormAppend, EuiFormPrepend, type EuiFormAppendProps, type EuiFormPrependProps, type EuiFormAppendPrependButtonProps, type EuiFormAppendPrependDivProps, } from '@elastic/eui/src/components/form/form_control_layout/append_prepend/form_append_prepend';
15018
15143
 
15019
15144
  }
15020
15145
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout' {
@@ -15118,6 +15243,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout' {
15118
15243
  export type { EuiFormControlLayoutDelimitedProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited';
15119
15244
  export { EuiFormControlLayoutDelimited } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited';
15120
15245
  export { EuiFormControlLayoutIcons, type EuiFormControlLayoutIconsProps, } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
15246
+ export * from '@elastic/eui/src/components/form/form_control_layout/append_prepend';
15121
15247
 
15122
15248
  }
15123
15249
  declare module '@elastic/eui/src/components/form/super_select/super_select.styles' {
@@ -18714,7 +18840,9 @@ declare module '@elastic/eui/src/components/form/form_control_button/form_contro
18714
18840
  export const euiFormControlButtonStyles: (euiThemeContext: UseEuiTheme) => {
18715
18841
  euiFormControlButton: import("@emotion/react").SerializedStyles;
18716
18842
  isInvalid: import("@emotion/react").SerializedStyles;
18843
+ readOnly: import("@emotion/react").SerializedStyles;
18717
18844
  compressed: import("@emotion/react").SerializedStyles;
18845
+ isLoading: import("@emotion/react").SerializedStyles;
18718
18846
  formWidth: string;
18719
18847
  fullWidth: import("@emotion/react").SerializedStyles;
18720
18848
  euiFormControlButton__content: import("@emotion/react").SerializedStyles;
@@ -18747,7 +18875,7 @@ declare module '@elastic/eui/src/components/form/form_control_button/form_contro
18747
18875
  */
18748
18876
  fullWidth?: boolean;
18749
18877
  };
18750
- export type EuiFormControlButtonProps = EuiFormControlButtonInputProps & Omit<EuiButtonEmptyProps, 'value' | 'color' | 'size' | 'flush' | 'isSelected' | 'isLoading'> & {
18878
+ export type EuiFormControlButtonProps = EuiFormControlButtonInputProps & Omit<EuiButtonEmptyProps, 'value' | 'color' | 'size' | 'flush' | 'isSelected'> & {
18751
18879
  /**
18752
18880
  * Defines the button label when used like an input in combination with `placeholder`
18753
18881
  */
@@ -25581,40 +25709,6 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty
25581
25709
  export const showPrettyDuration: (timeFrom: ShortDate, timeTo: ShortDate, quickRanges: DurationRange[]) => boolean;
25582
25710
  export {};
25583
25711
 
25584
- }
25585
- declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker.styles' {
25586
- import { UseEuiTheme } from '@elastic/eui/src/services';
25587
- export const euiSuperDatePickerStyles: (euiThemeContext: UseEuiTheme) => {
25588
- euiSuperDatePicker: import("@emotion/react").SerializedStyles;
25589
- widths: {
25590
- restricted: import("@emotion/react").SerializedStyles;
25591
- full: import("@emotion/react").SerializedStyles;
25592
- auto: import("@emotion/react").SerializedStyles;
25593
- };
25594
- noUpdateButton: {
25595
- restricted: string;
25596
- auto: string;
25597
- full: string;
25598
- };
25599
- isAutoRefreshOnly: {
25600
- restricted: string;
25601
- auto: string;
25602
- full: string;
25603
- };
25604
- isQuickSelectOnly: import("@emotion/react").SerializedStyles;
25605
- euiSuperDatePicker__range: import("@emotion/react").SerializedStyles;
25606
- euiSuperDatePicker__rangeInput: import("@emotion/react").SerializedStyles;
25607
- euiSuperDatePicker__prettyDurationTooltip: import("@emotion/react").SerializedStyles;
25608
- states: {
25609
- euiSuperDatePicker__formControlLayout: import("@emotion/react").SerializedStyles;
25610
- default: import("@emotion/react").SerializedStyles;
25611
- disabled: import("@emotion/react").SerializedStyles;
25612
- invalid: import("@emotion/react").SerializedStyles;
25613
- needsUpdating: import("@emotion/react").SerializedStyles;
25614
- };
25615
- };
25616
- export const _buttonStyles: (euiThemeContext: UseEuiTheme) => import("@emotion/react").SerializedStyles;
25617
-
25618
25712
  }
25619
25713
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_button.styles' {
25620
25714
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -25622,6 +25716,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
25622
25716
  euiDatePopoverButton: import("@emotion/react").SerializedStyles;
25623
25717
  now: import("@emotion/react").SerializedStyles;
25624
25718
  };
25719
+ export const _buttonStyles: (euiThemeContext: UseEuiTheme) => import("@emotion/react").SerializedStyles;
25625
25720
 
25626
25721
  }
25627
25722
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_button' {
@@ -25831,14 +25926,14 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
25831
25926
  }
25832
25927
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover' {
25833
25928
  import { FunctionComponent, ReactNode, ReactElement } from 'react';
25834
- import { EuiButtonEmptyPropsForButton } from '@elastic/eui/src/components/button/button_empty/button_empty';
25929
+ import { EuiFormAppendPrependButtonProps } from '@elastic/eui/src/components/form';
25835
25930
  import { EuiQuickSelect } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
25836
25931
  import { EuiCommonlyUsedTimeRanges } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges';
25837
25932
  import { EuiRecentlyUsed } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
25838
25933
  import { EuiRefreshInterval } from '@elastic/eui/src/components/date_picker/auto_refresh/refresh_interval';
25839
25934
  import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
25840
25935
  import { DurationRange, ApplyRefreshInterval, RefreshUnitsOptions, ApplyTime, QuickSelect, QuickSelectPanel, Milliseconds } from '@elastic/eui/src/components/date_picker/types';
25841
- export type EuiQuickSelectButtonProps = Partial<Omit<EuiButtonEmptyPropsForButton, 'children' | 'isDisabled' | 'isLoading'>>;
25936
+ export type EuiQuickSelectButtonProps = Partial<Omit<EuiFormAppendPrependButtonProps, 'children' | 'isDisabled'>>;
25842
25937
  export type CustomQuickSelectRenderOptions = {
25843
25938
  quickSelect: ReactElement<typeof EuiQuickSelect>;
25844
25939
  commonlyUsedRanges: ReactElement<typeof EuiCommonlyUsedTimeRanges>;
@@ -25933,6 +26028,10 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
25933
26028
  * Pass either an icon type or set to `false` to remove icon entirely
25934
26029
  */
25935
26030
  iconType?: boolean | IconType;
26031
+ /**
26032
+ * Define the side the icon should be displayed on. Applies only if `iconType` is defined as `IconType`.
26033
+ */
26034
+ iconSide?: 'left' | 'right';
25936
26035
  /**
25937
26036
  * Won't apply any additional props to start and end date components
25938
26037
  */
@@ -26166,6 +26265,39 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/auto_refres
26166
26265
  } & Omit<CommonEuiButtonEmptyProps, 'isSelected' | 'iconType' | 'iconSide' | 'iconSize' | 'onClick' | 'type'>;
26167
26266
  export const EuiAutoRefreshButton: FunctionComponent<EuiAutoRefreshButtonProps>;
26168
26267
 
26268
+ }
26269
+ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker.styles' {
26270
+ import { UseEuiTheme } from '@elastic/eui/src/services';
26271
+ export const euiSuperDatePickerStyles: (euiThemeContext: UseEuiTheme) => {
26272
+ euiSuperDatePicker: import("@emotion/react").SerializedStyles;
26273
+ widths: {
26274
+ restricted: import("@emotion/react").SerializedStyles;
26275
+ full: import("@emotion/react").SerializedStyles;
26276
+ auto: import("@emotion/react").SerializedStyles;
26277
+ };
26278
+ noUpdateButton: {
26279
+ restricted: string;
26280
+ auto: string;
26281
+ full: string;
26282
+ };
26283
+ isAutoRefreshOnly: {
26284
+ restricted: string;
26285
+ auto: string;
26286
+ full: string;
26287
+ };
26288
+ isQuickSelectOnly: import("@emotion/react").SerializedStyles;
26289
+ euiSuperDatePicker__range: import("@emotion/react").SerializedStyles;
26290
+ euiSuperDatePicker__rangeInput: import("@emotion/react").SerializedStyles;
26291
+ euiSuperDatePicker__prettyDurationTooltip: import("@emotion/react").SerializedStyles;
26292
+ states: {
26293
+ euiSuperDatePicker__formControlLayout: import("@emotion/react").SerializedStyles;
26294
+ default: import("@emotion/react").SerializedStyles;
26295
+ disabled: import("@emotion/react").SerializedStyles;
26296
+ invalid: import("@emotion/react").SerializedStyles;
26297
+ needsUpdating: import("@emotion/react").SerializedStyles;
26298
+ };
26299
+ };
26300
+
26169
26301
  }
26170
26302
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker' {
26171
26303
  import React, { Component, FocusEventHandler, FunctionComponent, ReactNode } from 'react';
@@ -50,7 +50,7 @@ var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyle
50
50
  };
51
51
  return {
52
52
  euiBetaBadge: /*#__PURE__*/(0, _react.css)("display:inline-block;border-radius:", euiTheme.size.l, ";border:", euiTheme.border.width.thin, " solid transparent;cursor:default;font-weight:", euiTheme.font.weight.semiBold, ";text-transform:uppercase;letter-spacing:0.05em;text-align:center;", (0, _global_styling.euiTextTruncate)(), " &:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset', {
53
- color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
53
+ color: colorMode === 'DARK' ? euiTheme.colors.plainLight : euiTheme.colors.plainDark
54
54
  }), ";};label:euiBetaBadge;"),
55
55
  // Colors
56
56
  accent: /*#__PURE__*/(0, _react.css)(badgeColors.fill.accent, ";label:accent;"),
@@ -85,7 +85,7 @@ var getBadgeColors = exports.getBadgeColors = function getBadgeColors(euiThemeCo
85
85
  };
86
86
  var getTextColor = exports.getTextColor = function getTextColor(_ref, bgColor) {
87
87
  var euiTheme = _ref.euiTheme;
88
- var textColor = _services.isColorDark.apply(void 0, _toConsumableArray((0, _chromaJs.default)(bgColor).rgb())) ? euiTheme.colors.ghost : euiTheme.colors.ink;
88
+ var textColor = _services.isColorDark.apply(void 0, _toConsumableArray((0, _chromaJs.default)(bgColor).rgb())) ? euiTheme.colors.textGhost : euiTheme.colors.textInk;
89
89
  return textColor;
90
90
  };
91
91
  var getIsValidColor = exports.getIsValidColor = function getIsValidColor(color) {
@@ -25,7 +25,7 @@ var euiNotificationBadgeStyles = exports.euiNotificationBadgeStyles = function e
25
25
  return {
26
26
  euiNotificationBadge: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
27
27
  preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
28
- }), " cursor:default;font-size:", (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.euiNumberFormat)(euiThemeContext), " text-align:center;", _global_styling.euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
28
+ }), " cursor:default;-webkit-text-fill-color:currentColor;font-size:", (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.euiNumberFormat)(euiThemeContext), " text-align:center;", _global_styling.euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
29
29
  // Sizes
30
30
  s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('min-width', euiTheme.size.base), ";;label:s;"),
31
31
  m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', (0, _global_styling.mathWithUnits)(euiTheme.size.xs, function (x) {
@@ -97,6 +97,7 @@ var EuiButtonDisplay = exports.EuiButtonDisplay = /*#__PURE__*/(0, _react.forwar
97
97
  var styles = (0, _services.useEuiMemoizedStyles)(_button_display.euiButtonDisplayStyles);
98
98
  var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && [styles.defaultMinWidth.defaultMinWidth, styles.defaultMinWidth[size]], buttonIsDisabled && styles.isDisabled];
99
99
  var innerNode = (0, _react2.jsx)(_button_display_content.EuiButtonDisplayContent, _extends({
100
+ size: size,
100
101
  isLoading: isLoading,
101
102
  isDisabled: buttonIsDisabled,
102
103
  iconType: iconType,
@@ -32,11 +32,11 @@ var euiButtonDisplayStyles = exports.euiButtonDisplayStyles = function euiButton
32
32
  var sizes = (0, _mixins.euiButtonSizeMap)(euiThemeContext);
33
33
  var _buttonSize = function _buttonSize(sizeKey) {
34
34
  var size = sizes[sizeKey];
35
- return /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', size.height), " line-height:", size.height, ";", (0, _global_styling.euiFontSize)(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
35
+ return /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', size.height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', size.padding), " line-height:", size.height, ";", (0, _global_styling.euiFontSize)(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
36
36
  };
37
37
  return {
38
38
  // Base
39
- euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.m)), ";;label:euiButtonDisplay;"),
39
+ euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";;label:euiButtonDisplay;"),
40
40
  // States
41
41
  isDisabled: _ref,
42
42
  fullWidth: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
@@ -13,7 +13,7 @@ var _loading = require("../../loading");
13
13
  var _icon = require("../../icon");
14
14
  var _button_display_content = require("./_button_display_content.styles");
15
15
  var _react2 = require("@emotion/react");
16
- var _excluded = ["children", "textProps", "isLoading", "isDisabled", "iconType", "iconSize", "iconSide"];
16
+ var _excluded = ["children", "size", "textProps", "isLoading", "isDisabled", "iconType", "iconSize", "iconSide"];
17
17
  /*
18
18
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
19
19
  * or more contributor license agreements. Licensed under the Elastic License
@@ -37,6 +37,8 @@ var ICON_SIDES = exports.ICON_SIDES = ['left', 'right'];
37
37
 
38
38
  var EuiButtonDisplayContent = exports.EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
39
39
  var children = _ref.children,
40
+ _ref$size = _ref.size,
41
+ size = _ref$size === void 0 ? 'm' : _ref$size,
40
42
  textProps = _ref.textProps,
41
43
  _ref$isLoading = _ref.isLoading,
42
44
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
@@ -77,13 +79,16 @@ var EuiButtonDisplayContent = exports.EuiButtonDisplayContent = function EuiButt
77
79
  var isText = typeof children === 'string';
78
80
  var doNotRenderTextWrapper = textProps === false;
79
81
  var renderTextWrapper = (isText || textProps) && !doNotRenderTextWrapper;
82
+ var textWrapperCss = [styles.content[size], textProps && textProps.css];
80
83
  return (0, _react2.jsx)("span", _extends({
81
84
  css: styles.euiButtonDisplayContent
82
85
  }, contentProps), iconSide === 'left' && icon, renderTextWrapper ? (0, _react2.jsx)("span", _extends({}, textProps, {
86
+ css: textWrapperCss,
83
87
  className: (0, _classnames.default)('eui-textTruncate', textProps === null || textProps === void 0 ? void 0 : textProps.className)
84
88
  }), children) : children, iconSide === 'right' && icon);
85
89
  };
86
90
  EuiButtonDisplayContent.propTypes = {
91
+ size: _propTypes.default.any,
87
92
  /**
88
93
  * Any `type` accepted by EuiIcon
89
94
  */
@@ -18,6 +18,11 @@ var euiButtonDisplayContentStyles = exports.euiButtonDisplayContentStyles = func
18
18
  var euiTheme = euiThemeContext.euiTheme;
19
19
  return {
20
20
  // Base
21
- euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
21
+ euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.xs, ";;label:euiButtonDisplayContent;"),
22
+ content: {
23
+ xs: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xxs), ";;label:xs;"),
24
+ s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:s;"),
25
+ m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:m;")
26
+ }
22
27
  };
23
28
  };
@@ -91,6 +91,7 @@ var EuiButtonEmpty = exports.EuiButtonEmpty = function EuiButtonEmpty(_ref) {
91
91
  var contentClassNames = (0, _classnames.default)('euiButtonEmpty__content', contentProps === null || contentProps === void 0 ? void 0 : contentProps.className);
92
92
  var textClassNames = (0, _classnames.default)('euiButtonEmpty__text', textProps && textProps.className);
93
93
  var innerNode = (0, _react2.jsx)(_button_display_content.EuiButtonDisplayContent, _extends({
94
+ size: size,
94
95
  isDisabled: isDisabled,
95
96
  isLoading: isLoading,
96
97
  iconType: iconType,
@@ -143,7 +144,7 @@ EuiButtonEmpty.propTypes = {
143
144
  * - risk
144
145
  */
145
146
  color: _propTypes.default.any,
146
- size: _propTypes.default.any,
147
+ size: _propTypes.default.oneOfType([_propTypes.default.any, _propTypes.default.any]),
147
148
  /**
148
149
  * Ensure the text of the button sits flush to the left, right, or both sides of its container
149
150
  */
@@ -23,7 +23,7 @@ var euiButtonEmptyStyles = exports.euiButtonEmptyStyles = function euiButtonEmpt
23
23
  // of using the actual component - so we'll reuse its styles instead
24
24
  var displayStyles = (0, _button_display.euiButtonDisplayStyles)(euiThemeContext);
25
25
  return {
26
- euiButtonEmpty: /*#__PURE__*/(0, _react.css)(displayStyles.euiButtonDisplay, " ", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.s)), _global_styling.euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
26
+ euiButtonEmpty: /*#__PURE__*/(0, _react.css)(displayStyles.euiButtonDisplay, " ", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.s)), ";;label:euiButtonEmpty;"),
27
27
  isDisabled: displayStyles.isDisabled,
28
28
  // Sizes
29
29
  xs: displayStyles.xs,
@@ -33,7 +33,7 @@ var euiButtonEmptyStyles = exports.euiButtonEmptyStyles = function euiButtonEmpt
33
33
  // Flush sides
34
34
  flush: /*#__PURE__*/(0, _react.css)("padding-inline:0;&&:hover,&&:active{background-color:transparent;&::before{display:none;}}&:hover:not(:disabled),&:focus{text-decoration:underline;", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
35
35
  forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
36
- }), ";};label:flush;"),
36
+ }), ";}.euiButtonEmpty__content{gap:", euiTheme.size.s, ";}.euiButtonEmpty__text{padding:0;};label:flush;"),
37
37
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:left;"),
38
38
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.s), ";;label:right;"),
39
39
  both: /*#__PURE__*/(0, _react.css)(";label:both;")