@elastic/eui 102.2.0 → 102.3.0-amsterdam.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 (177) hide show
  1. package/dist/eui_theme_borealis_dark.json +1 -1
  2. package/es/components/badge/color_utils.js +1 -3
  3. package/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
  4. package/es/components/basic_table/basic_table.js +4 -1
  5. package/es/components/basic_table/in_memory_table.js +4 -1
  6. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
  7. package/es/components/button/button_display/_button_display.js +1 -1
  8. package/es/components/button/button_display/_button_display.styles.js +11 -2
  9. package/es/components/button/button_display/_button_display_content.styles.js +6 -3
  10. package/es/components/button/button_empty/button_empty.styles.js +9 -12
  11. package/es/components/button/button_group/button_group.styles.js +5 -3
  12. package/es/components/button/button_group/button_group_button.js +19 -9
  13. package/es/components/button/button_group/button_group_button.styles.js +43 -19
  14. package/es/components/button/button_icon/button_icon.js +4 -2
  15. package/es/components/collapsible_nav/collapsible_nav.js +1 -0
  16. package/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  17. package/es/components/datagrid/utils/focus.js +2 -2
  18. package/es/components/filter_group/filter_button.js +88 -23
  19. package/es/components/filter_group/filter_button.styles.js +51 -15
  20. package/es/components/filter_group/filter_group.styles.js +18 -6
  21. package/es/components/markdown_editor/markdown_editor_footer.js +9 -4
  22. package/es/components/provider/provider.js +2 -2
  23. package/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
  24. package/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  25. package/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  26. package/es/components/search_bar/filters/is_filter.js +3 -1
  27. package/es/components/search_bar/search_bar.a11y.js +3 -3
  28. package/es/global_styling/mixins/_button.js +95 -28
  29. package/es/services/color/vis_color_store.js +1 -1
  30. package/es/services/theme/context.js +2 -2
  31. package/es/services/theme/index.js +2 -1
  32. package/es/services/theme/provider.js +28 -2
  33. package/es/services/theme/theme_variant.js +22 -0
  34. package/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  35. package/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
  36. package/es/themes/amsterdam/theme.js +2 -1
  37. package/es/themes/json/eui_theme_borealis_dark.json +1 -1
  38. package/eui.d.ts +561 -528
  39. package/lib/components/badge/color_utils.js +1 -3
  40. package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
  41. package/lib/components/basic_table/basic_table.js +4 -1
  42. package/lib/components/basic_table/in_memory_table.js +4 -1
  43. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  44. package/lib/components/button/button_display/_button_display.js +1 -1
  45. package/lib/components/button/button_display/_button_display.styles.js +11 -2
  46. package/lib/components/button/button_display/_button_display_content.styles.js +6 -3
  47. package/lib/components/button/button_empty/button_empty.styles.js +10 -11
  48. package/lib/components/button/button_group/button_group.styles.js +5 -3
  49. package/lib/components/button/button_group/button_group_button.js +18 -8
  50. package/lib/components/button/button_group/button_group_button.styles.js +41 -17
  51. package/lib/components/button/button_icon/button_icon.js +3 -1
  52. package/lib/components/collapsible_nav/collapsible_nav.js +1 -0
  53. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  54. package/lib/components/datagrid/utils/focus.js +1 -1
  55. package/lib/components/filter_group/filter_button.js +86 -21
  56. package/lib/components/filter_group/filter_button.styles.js +51 -15
  57. package/lib/components/filter_group/filter_group.styles.js +18 -6
  58. package/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
  59. package/lib/components/provider/provider.js +2 -2
  60. package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
  61. package/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  62. package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  63. package/lib/components/search_bar/filters/is_filter.js +3 -1
  64. package/lib/components/search_bar/search_bar.a11y.js +3 -3
  65. package/lib/global_styling/mixins/_button.js +94 -27
  66. package/lib/services/color/vis_color_store.js +2 -2
  67. package/lib/services/theme/context.js +2 -2
  68. package/lib/services/theme/index.js +42 -1
  69. package/lib/services/theme/provider.js +28 -2
  70. package/lib/services/theme/theme_variant.js +28 -0
  71. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  72. package/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
  73. package/lib/themes/amsterdam/theme.js +2 -1
  74. package/lib/themes/json/eui_theme_borealis_dark.json +1 -1
  75. package/optimize/es/components/badge/color_utils.js +1 -3
  76. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
  77. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
  78. package/optimize/es/components/button/button_display/_button_display.js +1 -1
  79. package/optimize/es/components/button/button_display/_button_display.styles.js +11 -2
  80. package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -3
  81. package/optimize/es/components/button/button_empty/button_empty.styles.js +9 -12
  82. package/optimize/es/components/button/button_group/button_group.styles.js +5 -3
  83. package/optimize/es/components/button/button_group/button_group_button.js +12 -8
  84. package/optimize/es/components/button/button_group/button_group_button.styles.js +43 -19
  85. package/optimize/es/components/button/button_icon/button_icon.js +4 -2
  86. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  87. package/optimize/es/components/datagrid/utils/focus.js +2 -2
  88. package/optimize/es/components/filter_group/filter_button.js +78 -21
  89. package/optimize/es/components/filter_group/filter_button.styles.js +51 -15
  90. package/optimize/es/components/filter_group/filter_group.styles.js +18 -6
  91. package/optimize/es/components/markdown_editor/markdown_editor_footer.js +9 -4
  92. package/optimize/es/components/provider/provider.js +2 -2
  93. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
  94. package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  95. package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  96. package/optimize/es/components/search_bar/filters/is_filter.js +3 -1
  97. package/optimize/es/components/search_bar/search_bar.a11y.js +3 -3
  98. package/optimize/es/global_styling/mixins/_button.js +95 -28
  99. package/optimize/es/services/color/vis_color_store.js +1 -1
  100. package/optimize/es/services/theme/context.js +2 -2
  101. package/optimize/es/services/theme/index.js +2 -1
  102. package/optimize/es/services/theme/provider.js +28 -2
  103. package/optimize/es/services/theme/theme_variant.js +22 -0
  104. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  105. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
  106. package/optimize/es/themes/amsterdam/theme.js +2 -1
  107. package/optimize/es/themes/json/eui_theme_borealis_dark.json +1 -1
  108. package/optimize/lib/components/badge/color_utils.js +1 -3
  109. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
  110. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  111. package/optimize/lib/components/button/button_display/_button_display.js +1 -1
  112. package/optimize/lib/components/button/button_display/_button_display.styles.js +11 -2
  113. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -3
  114. package/optimize/lib/components/button/button_empty/button_empty.styles.js +10 -11
  115. package/optimize/lib/components/button/button_group/button_group.styles.js +5 -3
  116. package/optimize/lib/components/button/button_group/button_group_button.js +11 -7
  117. package/optimize/lib/components/button/button_group/button_group_button.styles.js +41 -17
  118. package/optimize/lib/components/button/button_icon/button_icon.js +3 -1
  119. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  120. package/optimize/lib/components/datagrid/utils/focus.js +1 -1
  121. package/optimize/lib/components/filter_group/filter_button.js +76 -19
  122. package/optimize/lib/components/filter_group/filter_button.styles.js +51 -15
  123. package/optimize/lib/components/filter_group/filter_group.styles.js +18 -6
  124. package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
  125. package/optimize/lib/components/provider/provider.js +2 -2
  126. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
  127. package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  128. package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  129. package/optimize/lib/components/search_bar/filters/is_filter.js +3 -1
  130. package/optimize/lib/components/search_bar/search_bar.a11y.js +3 -3
  131. package/optimize/lib/global_styling/mixins/_button.js +94 -27
  132. package/optimize/lib/services/color/vis_color_store.js +2 -2
  133. package/optimize/lib/services/theme/context.js +2 -2
  134. package/optimize/lib/services/theme/index.js +42 -1
  135. package/optimize/lib/services/theme/provider.js +28 -2
  136. package/optimize/lib/services/theme/theme_variant.js +28 -0
  137. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  138. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
  139. package/optimize/lib/themes/amsterdam/theme.js +2 -1
  140. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +1 -1
  141. package/package.json +4 -4
  142. package/test-env/components/badge/color_utils.js +1 -3
  143. package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -1
  144. package/test-env/components/basic_table/basic_table.js +4 -1
  145. package/test-env/components/basic_table/in_memory_table.js +4 -1
  146. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  147. package/test-env/components/button/button_display/_button_display.js +1 -1
  148. package/test-env/components/button/button_display/_button_display.styles.js +11 -2
  149. package/test-env/components/button/button_display/_button_display_content.styles.js +6 -3
  150. package/test-env/components/button/button_empty/button_empty.styles.js +10 -11
  151. package/test-env/components/button/button_group/button_group.styles.js +5 -3
  152. package/test-env/components/button/button_group/button_group_button.js +18 -8
  153. package/test-env/components/button/button_group/button_group_button.styles.js +41 -17
  154. package/test-env/components/button/button_icon/button_icon.js +3 -1
  155. package/test-env/components/collapsible_nav/collapsible_nav.js +1 -0
  156. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  157. package/test-env/components/datagrid/utils/focus.js +1 -1
  158. package/test-env/components/filter_group/filter_button.js +86 -21
  159. package/test-env/components/filter_group/filter_button.styles.js +51 -15
  160. package/test-env/components/filter_group/filter_group.styles.js +18 -6
  161. package/test-env/components/markdown_editor/markdown_editor_footer.js +8 -3
  162. package/test-env/components/provider/provider.js +2 -2
  163. package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -0
  164. package/test-env/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  165. package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  166. package/test-env/components/search_bar/filters/is_filter.js +3 -1
  167. package/test-env/components/search_bar/search_bar.a11y.js +3 -3
  168. package/test-env/global_styling/mixins/_button.js +94 -27
  169. package/test-env/services/color/vis_color_store.js +2 -2
  170. package/test-env/services/theme/context.js +2 -2
  171. package/test-env/services/theme/index.js +42 -1
  172. package/test-env/services/theme/provider.js +28 -2
  173. package/test-env/services/theme/theme_variant.js +28 -0
  174. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  175. package/test-env/themes/amsterdam/global_styling/variables/_components.js +229 -224
  176. package/test-env/themes/amsterdam/theme.js +2 -1
  177. package/test-env/themes/json/eui_theme_borealis_dark.json +1 -1
package/eui.d.ts CHANGED
@@ -171,124 +171,13 @@ declare module '@elastic/eui/src/components/common' {
171
171
  onClick?: MouseEventHandler<HTMLButtonElement>;
172
172
  } & ButtonHTMLAttributes<HTMLButtonElement> & P;
173
173
 
174
- }
175
- declare module '@elastic/eui/src/services/theme/types' {
176
- export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
177
-
178
174
  }
179
175
  declare module '@elastic/eui/src/services/theme/utils' {
180
176
  export { DEFAULT_COLOR_MODE, isInverseColorMode, getColorMode, getOn, setOn, Computed, computed, getComputed, buildTheme, mergeDeep, } from '@elastic/eui-theme-common';
181
177
 
182
178
  }
183
- declare module '@elastic/eui/src/services/theme/context' {
184
- import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
185
- export const DEFAULTS: {
186
- system: {
187
- model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
188
- root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
189
- key: string;
190
- };
191
- modifications: {};
192
- colorMode: "LIGHT";
193
- highContrastMode: false;
194
- };
195
- export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
196
- export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
197
- overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
198
- }>>;
199
- export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
200
- export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
201
- export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
202
- export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
203
- export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
204
-
205
- }
206
- declare module '@elastic/eui/src/services/theme/warning' {
207
- type LEVELS = 'log' | 'warn' | 'error';
208
- type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
209
- export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
210
- export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
211
- export const emitEuiProviderWarning: (providerMessage: string) => void;
212
- export {};
213
-
214
- }
215
- declare module '@elastic/eui/src/services/theme/hooks' {
216
- import React from 'react';
217
- import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
218
- /**
219
- * Hook for function components
220
- */
221
- export interface UseEuiTheme<T extends {} = {}> {
222
- euiTheme: EuiThemeComputed<T>;
223
- colorMode: EuiThemeColorModeStandard;
224
- highContrastMode: EuiThemeHighContrastMode;
225
- modifications: EuiThemeModifications<T>;
226
- }
227
- export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
228
- /**
229
- * HOC for class components
230
- */
231
- export interface WithEuiThemeProps<P extends {} = {}> {
232
- theme: UseEuiTheme<P>;
233
- }
234
- export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
235
- /**
236
- * Render prop alternative for complex class components
237
- * Most useful for scenarios where a HOC may interfere with typing
238
- */
239
- export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
240
- children: (theme: UseEuiTheme) => React.ReactElement;
241
- }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
242
- /**
243
- * Minor syntactical sugar hook for theme CSS variables.
244
- * Primarily meant for internal EUI usage.
245
- */
246
- export const useEuiThemeCSSVariables: () => {
247
- setGlobalCSSVariables: Function;
248
- globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
249
- setNearestThemeCSSVariables: Function;
250
- themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
251
- };
252
- /**
253
- * Checks whether the current active `colorMode` is set to `DARK`;
254
- * In case of nested providers this returns the value of the nearest provider context.
255
- */
256
- export const useIsDarkMode: () => boolean;
257
-
258
- }
259
- declare module '@elastic/eui/src/services/throttle' {
260
- export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
261
-
262
- }
263
- declare module '@elastic/eui/src/services/breakpoint/_sorting' {
264
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
265
- export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
266
- export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
267
-
268
- }
269
- declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
270
- import React, { FunctionComponent, PropsWithChildren } from 'react';
271
- import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
272
- type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
273
- export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
274
- /**
275
- * Returns the current breakpoint based on window width.
276
- * Typically only called by the top-level `EuiProvider` (to reduce the number
277
- * of window resize listeners on the page). Also conditionally called if a
278
- * nested `EuiThemeProvider` defines a `modify.breakpoint` override
279
- */
280
- export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
281
- export {};
282
-
283
- }
284
- declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
285
- /**
286
- * Hook util / syntactical sugar for useContext()
287
- *
288
- * This hook is in its own separate file to make mocking it
289
- * as a testenv easy for Jest unit tests
290
- */
291
- export const useCurrentEuiBreakpoint: () => string | undefined;
179
+ declare module '@elastic/eui/src/services/theme/types' {
180
+ export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
292
181
 
293
182
  }
294
183
  declare module '@elastic/eui/src/services/emotion/clone_element' {
@@ -387,6 +276,10 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
387
276
  */
388
277
  export const useDeepEqual: <T = Record<string, any> | any[] | undefined>(object: T) => T;
389
278
 
279
+ }
280
+ declare module '@elastic/eui/src/services/throttle' {
281
+ export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
282
+
390
283
  }
391
284
  declare module '@elastic/eui/src/services/hooks/useMouseMove' {
392
285
  import { MouseEvent, TouchEvent } from 'react';
@@ -409,6 +302,15 @@ declare module '@elastic/eui/src/services/hooks' {
409
302
  export * from '@elastic/eui/src/services/hooks/useMouseMove';
410
303
  export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
411
304
 
305
+ }
306
+ declare module '@elastic/eui/src/services/theme/warning' {
307
+ type LEVELS = 'log' | 'warn' | 'error';
308
+ type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
309
+ export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
310
+ export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
311
+ export const emitEuiProviderWarning: (providerMessage: string) => void;
312
+ export {};
313
+
412
314
  }
413
315
  declare module '@elastic/eui/src/services/theme/style_memoization' {
414
316
  import React, { FunctionComponent, PropsWithChildren } from 'react';
@@ -605,6 +507,11 @@ declare module '@elastic/eui/src/services/color/color_palette' {
605
507
  */
606
508
  categorical?: boolean): string[];
607
509
 
510
+ }
511
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
512
+ import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
513
+ export const colorVis: _EuiThemeVisColors;
514
+
608
515
  }
609
516
  declare module '@elastic/eui/src/services/color/vis_color_store' {
610
517
  import { _EuiVisColorStore } from '@elastic/eui-theme-common';
@@ -739,166 +646,37 @@ declare module '@elastic/eui/src/services/color/eui_palettes_hooks' {
739
646
  export const useEuiPaletteGray: (steps: number) => EuiPalette;
740
647
 
741
648
  }
742
- declare module '@elastic/eui/src/global_styling/mixins/_button' {
743
- import { type SerializedStyles } from '@emotion/react';
744
- import { UseEuiTheme } from '@elastic/eui/src/services';
745
- /** Tentative usage; these exist only to be used as button directly when used within other components */
746
- export const SEVERITY_COLORS: readonly ["neutral", "risk"];
747
- export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
748
- export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
749
- export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
750
- export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
751
- export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
752
- export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
753
- export interface _EuiButtonOptions {
754
- display?: _EuiButtonDisplay;
755
- }
756
- /**
757
- * Creates the `base` version of button styles with proper text contrast.
758
- * @param euiThemeContext
759
- * @param color One of the named button colors or 'disabled'
760
- * @returns Style object `{ backgroundColor, color }`
761
- */
762
- export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
763
- border: string;
764
- color: string;
765
- backgroundColor: string;
766
- } | {
767
- border?: undefined;
768
- color: string;
769
- backgroundColor: string;
770
- };
771
- /**
772
- * Creates the `fill` version of buttons styles with proper text contrast.
773
- * @param euiThemeContext
774
- * @param color One of the named button colors or 'disabled'
775
- * @returns Style object `{ backgroundColor, color }`
776
- */
777
- export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
778
- border: string;
779
- color: string;
780
- backgroundColor: string;
781
- } | {
782
- border?: undefined;
783
- color: string;
784
- backgroundColor: string;
785
- };
786
- /**
787
- * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
788
- * @param euiThemeContext
789
- * @param color One of the named button colors or 'disabled'
790
- * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
791
- */
792
- export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
793
- color: string;
794
- backgroundColor: string;
795
- };
796
- /**
797
- * Given the button display type, returns the Emotion based color keys.
798
- * @param options Button display type
799
- * @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
800
- */
801
- export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
649
+ declare module '@elastic/eui/src/global_styling/functions/high_contrast' {
650
+ import type { UseEuiTheme } from '@elastic/eui/src/services';
802
651
  /**
803
- * Creates the translate animation when button is in focus.
804
- * @returns string
652
+ * Minor syntactical sugar for conditional high contrast styles.
653
+ * Ternaries are otherwise somewhat ugly in css`` template literals,
654
+ * and this makes life just a little more beautiful ✨
805
655
  */
806
- export const useEuiButtonFocusCSS: () => SerializedStyles;
656
+ export const highContrastModeStyles: (euiThemeContext: UseEuiTheme, options: {
657
+ /** Default styles to render (no high contrast mode) */
658
+ none?: string;
659
+ /** Styles to render when high contrast mode is preferred or forced */
660
+ preferred?: string;
661
+ /** Styles to render when high contrast mode is being forced */
662
+ forced?: string;
663
+ }) => string;
807
664
  /**
808
- * Map of `size` props to various sizings/scales
809
- * that should remain consistent across all buttons
665
+ * Small uitility that allows component styles to ignore/override
666
+ * forced colors modes (primarily Windows high contrast themes)
667
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/forced-color-adjust
668
+ *
669
+ * WARNING: Do *not* use this utility unless:
670
+ * 1. Colors/backgrounds are **essential** to the semantic meaning of the UI,
671
+ * and users will lose all meaning without them
672
+ * 2. Tweaks have been made to existing styles to increase color contrast
673
+ * as necessary
810
674
  */
811
- export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
812
- xs: {
813
- height: string;
814
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
815
- fontScale: "xs";
816
- };
817
- s: {
818
- height: string;
819
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
820
- fontScale: "s";
821
- };
822
- m: {
823
- height: string;
824
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
825
- fontScale: "s";
826
- };
827
- };
675
+ export const preventForcedColors: ({ highContrastMode }: UseEuiTheme) => "" | "forced-color-adjust: none;";
828
676
 
829
677
  }
830
- declare module '@elastic/eui/src/global_styling/mixins/_color' {
831
- import { SerializedStyles } from '@emotion/react';
832
- import { UseEuiTheme } from '@elastic/eui/src/services';
833
- export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
834
- export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
835
- export interface _EuiBackgroundColorOptions {
836
- /**
837
- * Use `opaque` for containers of unknown content.
838
- * Use `transparent` for interactive states like hover and focus.
839
- */
840
- method?: 'opaque' | 'transparent';
841
- }
842
- /**
843
- * @deprecated - use background tokens directly
844
- * @returns A single background color with optional alpha transparency
845
- */
846
- export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
847
- /**
848
- * @deprecated
849
- */
850
- export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
851
- /**
852
- * Hook to retrieve background style for a background color variant
853
- * @returns An object map of color keys to CSS,
854
- * e.g. { danger: css``, success: css``, ... }
855
- */
856
- export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
857
- /**
858
- * Border colors
859
- * @deprecated - use border tokens directly or use
860
- * `useEuiBorderColorCSS()` for composed styles
861
- */
862
- export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
863
- /**
864
- * Hook to retrieve border style for a border variant
865
- * @returns An object map of color keys to CSS,
866
- * e.g. { danger: css``, success: css``, ... }
867
- */
868
- export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
869
-
870
- }
871
- declare module '@elastic/eui/src/global_styling/functions/high_contrast' {
872
- import type { UseEuiTheme } from '@elastic/eui/src/services';
873
- /**
874
- * Minor syntactical sugar for conditional high contrast styles.
875
- * Ternaries are otherwise somewhat ugly in css`` template literals,
876
- * and this makes life just a little more beautiful ✨
877
- */
878
- export const highContrastModeStyles: (euiThemeContext: UseEuiTheme, options: {
879
- /** Default styles to render (no high contrast mode) */
880
- none?: string;
881
- /** Styles to render when high contrast mode is preferred or forced */
882
- preferred?: string;
883
- /** Styles to render when high contrast mode is being forced */
884
- forced?: string;
885
- }) => string;
886
- /**
887
- * Small uitility that allows component styles to ignore/override
888
- * forced colors modes (primarily Windows high contrast themes)
889
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/forced-color-adjust
890
- *
891
- * WARNING: Do *not* use this utility unless:
892
- * 1. Colors/backgrounds are **essential** to the semantic meaning of the UI,
893
- * and users will lose all meaning without them
894
- * 2. Tweaks have been made to existing styles to increase color contrast
895
- * as necessary
896
- */
897
- export const preventForcedColors: ({ highContrastMode }: UseEuiTheme) => "" | "forced-color-adjust: none;";
898
-
899
- }
900
- declare module '@elastic/eui/src/global_styling/functions/logicals' {
901
- import { CSSProperties } from 'react';
678
+ declare module '@elastic/eui/src/global_styling/functions/logicals' {
679
+ import { CSSProperties } from 'react';
902
680
  /**
903
681
  * EUI utilizes logical CSS properties to enable directional writing-modes.
904
682
  * To encourage use of logical properties, we provide a few helper utilities to
@@ -913,7 +691,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
913
691
  horizontal: string;
914
692
  vertical: string;
915
693
  };
916
- export const LOGICAL_SIDES: ("left" | "right" | "bottom" | "top" | "horizontal" | "vertical")[];
694
+ export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
917
695
  export type LogicalSides = (typeof LOGICAL_SIDES)[number];
918
696
  export const logicals: {
919
697
  height: string;
@@ -972,7 +750,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
972
750
  "border-bottom-right-radius": string;
973
751
  _shorthands: string[];
974
752
  };
975
- export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "bottom" | "height" | "top" | "horizontal" | "vertical" | "max-height" | "max-width" | "min-height" | "min-width" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
753
+ export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "top" | "bottom" | "horizontal" | "vertical" | "height" | "max-height" | "max-width" | "min-height" | "min-width" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
976
754
  export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
977
755
  /**
978
756
  *
@@ -1144,6 +922,142 @@ declare module '@elastic/eui/src/global_styling/functions' {
1144
922
  export * from '@elastic/eui/src/global_styling/functions/size';
1145
923
  export * from '@elastic/eui/src/global_styling/functions/typography';
1146
924
 
925
+ }
926
+ declare module '@elastic/eui/src/global_styling/mixins/_button' {
927
+ import { type SerializedStyles } from '@emotion/react';
928
+ import { UseEuiTheme } from '@elastic/eui/src/services';
929
+ /** Tentative usage; these exist only to be used as button directly when used within other components */
930
+ export const SEVERITY_COLORS: readonly ["neutral", "risk"];
931
+ export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
932
+ export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
933
+ export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
934
+ export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
935
+ export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
936
+ export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
937
+ export interface _EuiButtonOptions {
938
+ display?: _EuiButtonDisplay;
939
+ }
940
+ /**
941
+ * Creates the `base` version of button styles with proper text contrast.
942
+ * @param euiThemeContext
943
+ * @param color One of the named button colors or 'disabled'
944
+ * @returns Style object `{ backgroundColor, color }`
945
+ */
946
+ export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
947
+ border: string;
948
+ color: string;
949
+ backgroundColor: string;
950
+ } | {
951
+ border?: undefined;
952
+ color: string;
953
+ backgroundColor: string;
954
+ };
955
+ /**
956
+ * Creates the `fill` version of buttons styles with proper text contrast.
957
+ * @param euiThemeContext
958
+ * @param color One of the named button colors or 'disabled'
959
+ * @returns Style object `{ backgroundColor, color }`
960
+ */
961
+ export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
962
+ border: string;
963
+ color: string;
964
+ backgroundColor: string;
965
+ } | {
966
+ border?: undefined;
967
+ color: string;
968
+ backgroundColor: string;
969
+ };
970
+ /**
971
+ * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
972
+ * @param euiThemeContext
973
+ * @param color One of the named button colors or 'disabled'
974
+ * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
975
+ */
976
+ export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
977
+ color: string;
978
+ backgroundColor: string;
979
+ };
980
+ /**
981
+ * Given the button display type, returns the Emotion based color keys.
982
+ * @param options Button display type
983
+ * @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
984
+ */
985
+ export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
986
+ /**
987
+ * Creates the translate animation when button is in focus.
988
+ * @returns string
989
+ */
990
+ export const useEuiButtonFocusCSS: () => SerializedStyles;
991
+ /**
992
+ * Map of `size` props to various sizings/scales
993
+ * that should remain consistent across all buttons
994
+ */
995
+ export const euiButtonSizeMap: (euiThemeContext: UseEuiTheme) => {
996
+ xs: {
997
+ minWidth: number;
998
+ height: string;
999
+ radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1000
+ fontScale: "xs";
1001
+ };
1002
+ s: {
1003
+ minWidth: number;
1004
+ height: string;
1005
+ radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1006
+ fontScale: "s";
1007
+ };
1008
+ m: {
1009
+ minWidth: number;
1010
+ height: string;
1011
+ radius: string | number | undefined;
1012
+ fontScale: "s";
1013
+ };
1014
+ };
1015
+ /**
1016
+ * creates a bottom border on hover/focus to ensure a visible change as forced mode removed background colors
1017
+ */
1018
+ export const highContrastHoverIndicatorStyles: ({ euiTheme }: UseEuiTheme) => string;
1019
+
1020
+ }
1021
+ declare module '@elastic/eui/src/global_styling/mixins/_color' {
1022
+ import { SerializedStyles } from '@emotion/react';
1023
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1024
+ export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
1025
+ export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
1026
+ export interface _EuiBackgroundColorOptions {
1027
+ /**
1028
+ * Use `opaque` for containers of unknown content.
1029
+ * Use `transparent` for interactive states like hover and focus.
1030
+ */
1031
+ method?: 'opaque' | 'transparent';
1032
+ }
1033
+ /**
1034
+ * @deprecated - use background tokens directly
1035
+ * @returns A single background color with optional alpha transparency
1036
+ */
1037
+ export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1038
+ /**
1039
+ * @deprecated
1040
+ */
1041
+ export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1042
+ /**
1043
+ * Hook to retrieve background style for a background color variant
1044
+ * @returns An object map of color keys to CSS,
1045
+ * e.g. { danger: css``, success: css``, ... }
1046
+ */
1047
+ export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
1048
+ /**
1049
+ * Border colors
1050
+ * @deprecated - use border tokens directly or use
1051
+ * `useEuiBorderColorCSS()` for composed styles
1052
+ */
1053
+ export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
1054
+ /**
1055
+ * Hook to retrieve border style for a border variant
1056
+ * @returns An object map of color keys to CSS,
1057
+ * e.g. { danger: css``, success: css``, ... }
1058
+ */
1059
+ export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
1060
+
1147
1061
  }
1148
1062
  declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1149
1063
  import { CSSProperties } from 'react';
@@ -1214,7 +1128,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
1214
1128
  */
1215
1129
  export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
1216
1130
  export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
1217
- export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "xs" | "m" | "l" | "xl" | "none", SerializedStyles>;
1131
+ export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "none" | "xs" | "m" | "l" | "xl", SerializedStyles>;
1218
1132
 
1219
1133
  }
1220
1134
  declare module '@elastic/eui/src/global_styling/mixins/_states' {
@@ -1264,6 +1178,12 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
1264
1178
  */
1265
1179
  export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
1266
1180
 
1181
+ }
1182
+ declare module '@elastic/eui/src/services/breakpoint/_sorting' {
1183
+ import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
1184
+ export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
1185
+ export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
1186
+
1267
1187
  }
1268
1188
  declare module '@elastic/eui/src/global_styling/variables/animations' {
1269
1189
  export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
@@ -2983,7 +2903,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
2983
2903
  import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
2984
2904
  export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
2985
2905
  import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
2986
- export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "empty" | "wordWrap" | "grid" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
2906
+ export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "copy" | "cut" | "error" | "pause" | "play" | "warning" | "color" | "push" | "temperature" | "refresh" | "scale" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
2987
2907
  export type EuiIconType = keyof typeof typeToPathMap;
2988
2908
  export type IconType = EuiIconType | string | ComponentType;
2989
2909
  export type IconColor = string | NamedColor;
@@ -3536,7 +3456,12 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
3536
3456
  euiButtonDisplay: import("@emotion/react").SerializedStyles;
3537
3457
  isDisabled: import("@emotion/react").SerializedStyles;
3538
3458
  fullWidth: import("@emotion/react").SerializedStyles;
3539
- defaultMinWidth: import("@emotion/react").SerializedStyles;
3459
+ defaultMinWidth: {
3460
+ defaultMinWidth: import("@emotion/react").SerializedStyles;
3461
+ xs: string;
3462
+ s: string;
3463
+ m: string;
3464
+ };
3540
3465
  xs: import("@emotion/react").SerializedStyles;
3541
3466
  s: import("@emotion/react").SerializedStyles;
3542
3467
  m: import("@emotion/react").SerializedStyles;
@@ -3671,7 +3596,7 @@ declare module '@elastic/eui/src/components/loading' {
3671
3596
  }
3672
3597
  declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
3673
3598
  import { UseEuiTheme } from '@elastic/eui/src/services';
3674
- export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
3599
+ export const euiButtonDisplayContentStyles: (euiThemeContext: UseEuiTheme) => {
3675
3600
  euiButtonDisplayContent: import("@emotion/react").SerializedStyles;
3676
3601
  };
3677
3602
 
@@ -3843,7 +3768,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty.sty
3843
3768
  isDisabled: import("@emotion/react").SerializedStyles;
3844
3769
  xs: import("@emotion/react").SerializedStyles;
3845
3770
  s: import("@emotion/react").SerializedStyles;
3846
- m: import("@emotion/react").SerializedStyles;
3771
+ m: (string | false | import("@emotion/react").SerializedStyles)[];
3847
3772
  flush: import("@emotion/react").SerializedStyles;
3848
3773
  left: import("@emotion/react").SerializedStyles;
3849
3774
  right: import("@emotion/react").SerializedStyles;
@@ -4128,6 +4053,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4128
4053
  };
4129
4054
  compressed: SerializedStyles;
4130
4055
  disabledAndSelected: SerializedStyles;
4056
+ hasBorder: string;
4131
4057
  tooltipWrapper: SerializedStyles;
4132
4058
  content: {
4133
4059
  euiButtonGroupButton__content: SerializedStyles;
@@ -4143,6 +4069,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4143
4069
  }
4144
4070
  declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
4145
4071
  import { FunctionComponent, MouseEventHandler } from 'react';
4072
+ import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
4146
4073
  import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
4147
4074
  type Props = EuiButtonGroupOptionProps & {
4148
4075
  /**
@@ -4165,6 +4092,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4165
4092
  * Inherit from EuiButtonGroup
4166
4093
  */
4167
4094
  onClick: MouseEventHandler<HTMLButtonElement>;
4095
+ contentProps?: EuiButtonDisplayCommonProps['contentProps'];
4168
4096
  };
4169
4097
  export const EuiButtonGroupButton: FunctionComponent<Props>;
4170
4098
  export {};
@@ -5264,9 +5192,12 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
5264
5192
  render?: (item: T) => ReactNode;
5265
5193
  };
5266
5194
  /**
5267
- * Describe a custom renderer function for the content
5195
+ * A custom renderer for this column's cell content.
5196
+ * Unlike computed columns or `mobileOptions.render`, this function receives:
5197
+ * - `value`: The value of the specified field for this row
5198
+ * - `item`: The full data item (row object)
5268
5199
  */
5269
- render?: (value: any, record: T) => ReactNode;
5200
+ render?: (value: any, item: T) => ReactNode;
5270
5201
  /**
5271
5202
  * Content to display in the footer beneath this column
5272
5203
  */
@@ -5281,7 +5212,7 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
5281
5212
  /**
5282
5213
  * A function that computes the value for each item and renders it
5283
5214
  */
5284
- render: (record: T) => ReactNode;
5215
+ render: (item: T) => ReactNode;
5285
5216
  /**
5286
5217
  * The display name of the column
5287
5218
  */
@@ -5800,7 +5731,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
5800
5731
  import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
5801
5732
  import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
5802
5733
  import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
5803
- export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
5734
+ export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
5804
5735
  export type PanelPaddingSize = (typeof _SIZES)[number];
5805
5736
  export const BORDER_RADII: readonly ["none", "m"];
5806
5737
  export type PanelBorderRadius = (typeof BORDER_RADII)[number];
@@ -6910,6 +6841,109 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
6910
6841
  import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
6911
6842
  export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
6912
6843
 
6844
+ }
6845
+ declare module '@elastic/eui/src/services/color/contrast' {
6846
+ export const wcagContrastMin = 4.5;
6847
+ /**
6848
+ * Creates a new color that meets or exceeds WCAG level AA
6849
+ * @param foreground - Color to manipulate
6850
+ * @param ratio - Amount to change in absolute terms. 0-10.
6851
+ * *
6852
+ * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6853
+ */
6854
+ export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6855
+ colors: {
6856
+ body: string;
6857
+ };
6858
+ [key: string]: any;
6859
+ }) => string;
6860
+ /**
6861
+ * Creates a new color with increased contrast
6862
+ * Disabled content only needs a contrast of at least 2 because there is no interaction available
6863
+ * @param foreground - Color to manipulate
6864
+ * @param ratio - Amount to change in absolute terms. 0-10.
6865
+ * *
6866
+ * @param themeOrBackground - Color to use as the contrast basis
6867
+ */
6868
+ export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
6869
+ colors: {
6870
+ body: string;
6871
+ };
6872
+ [key: string]: any;
6873
+ }) => string;
6874
+
6875
+ }
6876
+ declare module '@elastic/eui/src/services/color' {
6877
+ export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6878
+ export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6879
+ export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6880
+ export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6881
+ export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6882
+ export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6883
+ export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6884
+ export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6885
+ export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6886
+ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6887
+ export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
6888
+ export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6889
+ export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray, type EuiPaletteColorBlindProps, type EuiPaletteRotationProps, type EuiPaletteCommonProps, } from '@elastic/eui/src/services/color/eui_palettes';
6890
+ export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
6891
+ export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6892
+ export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6893
+ export * from '@elastic/eui/src/services/color/manipulation';
6894
+ export * from '@elastic/eui/src/services/color/contrast';
6895
+
6896
+ }
6897
+ declare module '@elastic/eui/src/services/theme/provider' {
6898
+ import React, { PropsWithChildren, HTMLAttributes } from 'react';
6899
+ import type { CommonProps } from '@elastic/eui/src/components/common';
6900
+ import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
6901
+ export interface EuiThemeProviderProps<T> extends PropsWithChildren {
6902
+ theme?: EuiThemeSystem<T>;
6903
+ colorMode?: EuiThemeColorMode;
6904
+ highContrastMode?: EuiThemeHighContrastModeProp;
6905
+ modify?: EuiThemeModifications<T>;
6906
+ children: any;
6907
+ /**
6908
+ * Nested theme providers will receive a wrapping `span` tag in order to correctly
6909
+ * set the default text `color` that all nested children will inherit.
6910
+ *
6911
+ * If an extra wrapper is not desired, pass `{ cloneElement: true }`.
6912
+ * This requires a **single** child component that the correct color class can be passed to.
6913
+ *
6914
+ * The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
6915
+ * the default inherited text color will be set on the page `body`.
6916
+ */
6917
+ wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
6918
+ cloneElement?: boolean;
6919
+ };
6920
+ }
6921
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
6922
+
6923
+ }
6924
+ declare module '@elastic/eui/src/services/theme/theme_variant' {
6925
+ import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
6926
+ export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
6927
+ /**
6928
+ * Util to retrieve visual variant for UI elements
6929
+ * Note: Temporary only - will be removed once the visual refresh is completed.
6930
+ */
6931
+ export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
6932
+
6933
+ }
6934
+ declare module '@elastic/eui/src/services/theme' {
6935
+ export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
6936
+ export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
6937
+ export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, useIsDarkMode, } from '@elastic/eui/src/services/theme/hooks';
6938
+ export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
6939
+ export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
6940
+ export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
6941
+ export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
6942
+ export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
6943
+ export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
6944
+ export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
6945
+ export * from '@elastic/eui/src/services/theme/theme_variant';
6946
+
6913
6947
  }
6914
6948
  declare module '@elastic/eui/src/services/color/manipulation' {
6915
6949
  import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
@@ -6976,96 +7010,233 @@ declare module '@elastic/eui/src/services/color/manipulation' {
6976
7010
  export const brighten: (color: string, amount: number) => string;
6977
7011
 
6978
7012
  }
6979
- declare module '@elastic/eui/src/services/color/contrast' {
6980
- export const wcagContrastMin = 4.5;
7013
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
6981
7014
  /**
6982
- * Creates a new color that meets or exceeds WCAG level AA
6983
- * @param foreground - Color to manipulate
6984
- * @param ratio - Amount to change in absolute terms. 0-10.
6985
- * *
6986
- * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
7015
+ * These are not actually used, but we map them to ensure token parity.
7016
+ * They are mapped to other vis colors
6987
7017
  */
6988
- export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6989
- colors: {
6990
- body: string;
7018
+ export const severityColors: {
7019
+ unknown: string;
7020
+ neutral: string;
7021
+ success: string;
7022
+ warning: string;
7023
+ risk: string;
7024
+ danger: string;
7025
+ };
7026
+
7027
+ }
7028
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
7029
+ import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
7030
+ export const brand_colors: _EuiThemeBrandColors;
7031
+ export const brand_text_colors: _EuiThemeBrandTextColors;
7032
+ export const shade_colors: _EuiThemeShadeColors;
7033
+ export const special_colors: _EuiThemeSpecialColors;
7034
+ export const text_colors: _EuiThemeTextColors;
7035
+ export const background_colors: _EuiThemeBackgroundColors;
7036
+ export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
7037
+ export const border_colors: _EuiThemeBorderColors;
7038
+ export const light_colors: _EuiThemeColorsMode;
7039
+ export const dark_shades: _EuiThemeShadeColors;
7040
+ export const dark_background_colors: _EuiThemeBackgroundColors;
7041
+ export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
7042
+ export const dark_border_colors: _EuiThemeBorderColors;
7043
+ export const dark_colors_ams: _EuiThemeColorsMode;
7044
+ export const colors: _EuiThemeColors;
7045
+
7046
+ }
7047
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
7048
+ import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
7049
+ export const animation_speed: _EuiThemeAnimationSpeeds;
7050
+ export const animation_ease: _EuiThemeAnimationEasings;
7051
+ export const animation: _EuiThemeAnimation;
7052
+
7053
+ }
7054
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
7055
+ export { breakpoint } from '@elastic/eui-theme-common';
7056
+
7057
+ }
7058
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
7059
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
7060
+ export const base: _EuiThemeBase;
7061
+ export const size: _EuiThemeSizes;
7062
+
7063
+ }
7064
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
7065
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
7066
+ export const border: _EuiThemeBorder;
7067
+
7068
+ }
7069
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
7070
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
7071
+ export const levels: _EuiThemeLevels;
7072
+
7073
+ }
7074
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
7075
+ import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
7076
+ export const fontScale: _EuiThemeFontScales;
7077
+ export const fontBase: _EuiThemeFontBase;
7078
+ export const fontWeight: _EuiThemeFontWeights;
7079
+ export const font: _EuiThemeFont;
7080
+
7081
+ }
7082
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
7083
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
7084
+ export const focus: _EuiThemeFocus;
7085
+
7086
+ }
7087
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
7088
+ import { _EuiThemeButton } from '@elastic/eui-theme-common';
7089
+ export const buttons: _EuiThemeButton;
7090
+
7091
+ }
7092
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
7093
+ export const forms: {
7094
+ maxWidth: string;
7095
+ LIGHT: {
7096
+ background: string;
7097
+ backgroundDisabled: string;
7098
+ backgroundReadOnly: any;
7099
+ backgroundFocused: any;
7100
+ backgroundAutofilled: string;
7101
+ prependBackground: string;
7102
+ border: string;
7103
+ borderAutofilled: string;
7104
+ controlBorder: string;
7105
+ controlBorderSelected: string;
7106
+ controlBorderDisabled: string;
7107
+ controlBackgroundUnselected: any;
7108
+ controlBackgroundDisabled: any;
7109
+ colorHasPlaceholder: string;
7110
+ colorDisabled: any;
7111
+ iconDisabled: any;
6991
7112
  };
6992
- [key: string]: any;
6993
- }) => string;
7113
+ DARK: {
7114
+ background: string;
7115
+ backgroundFocused: string;
7116
+ backgroundAutofilled: string;
7117
+ prependBackground: string;
7118
+ border: string;
7119
+ controlBorder: string;
7120
+ controlBorderSelected: string;
7121
+ controlBorderDisabled: string;
7122
+ backgroundDisabled: string;
7123
+ backgroundReadOnly: any;
7124
+ borderAutofilled: string;
7125
+ controlBackgroundUnselected: any;
7126
+ controlBackgroundDisabled: any;
7127
+ colorHasPlaceholder: string;
7128
+ colorDisabled: any;
7129
+ iconDisabled: any;
7130
+ };
7131
+ };
7132
+
7133
+ }
7134
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
7135
+ import { _EuiThemeComponents } from '@elastic/eui-theme-common';
7136
+ export const components: _EuiThemeComponents;
7137
+
7138
+ }
7139
+ declare module '@elastic/eui/src/themes/amsterdam/theme' {
7140
+ import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
7141
+ export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
7142
+ export const euiThemeAmsterdam: EuiThemeShape;
7143
+ export const EuiThemeAmsterdam: {
7144
+ model: EuiThemeShape;
7145
+ root: EuiThemeShape;
7146
+ key: string;
7147
+ };
7148
+
7149
+ }
7150
+ declare module '@elastic/eui/src/services/theme/context' {
7151
+ import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
7152
+ export const DEFAULTS: {
7153
+ system: {
7154
+ model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
7155
+ root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
7156
+ key: string;
7157
+ };
7158
+ modifications: {};
7159
+ colorMode: "LIGHT";
7160
+ highContrastMode: false;
7161
+ };
7162
+ export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
7163
+ export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
7164
+ overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
7165
+ }>>;
7166
+ export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
7167
+ export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
7168
+ export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
7169
+ export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
7170
+ export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
7171
+
7172
+ }
7173
+ declare module '@elastic/eui/src/services/theme/hooks' {
7174
+ import React from 'react';
7175
+ import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
6994
7176
  /**
6995
- * Creates a new color with increased contrast
6996
- * Disabled content only needs a contrast of at least 2 because there is no interaction available
6997
- * @param foreground - Color to manipulate
6998
- * @param ratio - Amount to change in absolute terms. 0-10.
6999
- * *
7000
- * @param themeOrBackground - Color to use as the contrast basis
7177
+ * Hook for function components
7178
+ */
7179
+ export interface UseEuiTheme<T extends {} = {}> {
7180
+ euiTheme: EuiThemeComputed<T>;
7181
+ colorMode: EuiThemeColorModeStandard;
7182
+ highContrastMode: EuiThemeHighContrastMode;
7183
+ modifications: EuiThemeModifications<T>;
7184
+ }
7185
+ export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
7186
+ /**
7187
+ * HOC for class components
7188
+ */
7189
+ export interface WithEuiThemeProps<P extends {} = {}> {
7190
+ theme: UseEuiTheme<P>;
7191
+ }
7192
+ export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
7193
+ /**
7194
+ * Render prop alternative for complex class components
7195
+ * Most useful for scenarios where a HOC may interfere with typing
7196
+ */
7197
+ export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
7198
+ children: (theme: UseEuiTheme) => React.ReactElement;
7199
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7200
+ /**
7201
+ * Minor syntactical sugar hook for theme CSS variables.
7202
+ * Primarily meant for internal EUI usage.
7203
+ */
7204
+ export const useEuiThemeCSSVariables: () => {
7205
+ setGlobalCSSVariables: Function;
7206
+ globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
7207
+ setNearestThemeCSSVariables: Function;
7208
+ themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
7209
+ };
7210
+ /**
7211
+ * Checks whether the current active `colorMode` is set to `DARK`;
7212
+ * In case of nested providers this returns the value of the nearest provider context.
7001
7213
  */
7002
- export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
7003
- colors: {
7004
- body: string;
7005
- };
7006
- [key: string]: any;
7007
- }) => string;
7008
-
7009
- }
7010
- declare module '@elastic/eui/src/services/color' {
7011
- export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
7012
- export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
7013
- export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
7014
- export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
7015
- export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
7016
- export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
7017
- export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
7018
- export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
7019
- export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
7020
- export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
7021
- export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
7022
- export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
7023
- export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray, type EuiPaletteColorBlindProps, type EuiPaletteRotationProps, type EuiPaletteCommonProps, } from '@elastic/eui/src/services/color/eui_palettes';
7024
- export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
7025
- export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
7026
- export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
7027
- export * from '@elastic/eui/src/services/color/manipulation';
7028
- export * from '@elastic/eui/src/services/color/contrast';
7214
+ export const useIsDarkMode: () => boolean;
7029
7215
 
7030
7216
  }
7031
- declare module '@elastic/eui/src/services/theme/provider' {
7032
- import React, { PropsWithChildren, HTMLAttributes } from 'react';
7033
- import type { CommonProps } from '@elastic/eui/src/components/common';
7034
- import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
7035
- export interface EuiThemeProviderProps<T> extends PropsWithChildren {
7036
- theme?: EuiThemeSystem<T>;
7037
- colorMode?: EuiThemeColorMode;
7038
- highContrastMode?: EuiThemeHighContrastModeProp;
7039
- modify?: EuiThemeModifications<T>;
7040
- children: any;
7041
- /**
7042
- * Nested theme providers will receive a wrapping `span` tag in order to correctly
7043
- * set the default text `color` that all nested children will inherit.
7044
- *
7045
- * If an extra wrapper is not desired, pass `{ cloneElement: true }`.
7046
- * This requires a **single** child component that the correct color class can be passed to.
7047
- *
7048
- * The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
7049
- * the default inherited text color will be set on the page `body`.
7050
- */
7051
- wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
7052
- cloneElement?: boolean;
7053
- };
7054
- }
7055
- export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
7217
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
7218
+ import React, { FunctionComponent, PropsWithChildren } from 'react';
7219
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
7220
+ type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
7221
+ export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
7222
+ /**
7223
+ * Returns the current breakpoint based on window width.
7224
+ * Typically only called by the top-level `EuiProvider` (to reduce the number
7225
+ * of window resize listeners on the page). Also conditionally called if a
7226
+ * nested `EuiThemeProvider` defines a `modify.breakpoint` override
7227
+ */
7228
+ export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
7229
+ export {};
7056
7230
 
7057
7231
  }
7058
- declare module '@elastic/eui/src/services/theme' {
7059
- export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
7060
- export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
7061
- export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, useIsDarkMode, } from '@elastic/eui/src/services/theme/hooks';
7062
- export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
7063
- export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
7064
- export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
7065
- export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
7066
- export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
7067
- export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
7068
- export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
7232
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
7233
+ /**
7234
+ * Hook util / syntactical sugar for useContext()
7235
+ *
7236
+ * This hook is in its own separate file to make mocking it
7237
+ * as a testenv easy for Jest unit tests
7238
+ */
7239
+ export const useCurrentEuiBreakpoint: () => string | undefined;
7069
7240
 
7070
7241
  }
7071
7242
  declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
@@ -8088,15 +8259,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
8088
8259
  color: string;
8089
8260
  backgroundColor: string;
8090
8261
  };
8091
- accentSecondary: {
8092
- border: string;
8093
- color: string;
8094
- backgroundColor: string;
8095
- } | {
8096
- border?: undefined;
8097
- color: string;
8098
- backgroundColor: string;
8099
- };
8100
8262
  disabled: {
8101
8263
  borderColor: string;
8102
8264
  border: string;
@@ -8128,10 +8290,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
8128
8290
  backgroundColor: string;
8129
8291
  color: string;
8130
8292
  };
8131
- accentSecondaryText: {
8132
- backgroundColor: string;
8133
- color: string;
8134
- };
8135
8293
  };
8136
8294
  export const getBadgeColors: (euiThemeContext: UseEuiTheme, backgroundColor: string) => {
8137
8295
  backgroundColor: string;
@@ -8707,10 +8865,6 @@ declare module '@elastic/eui/src/components/breadcrumbs/types' {
8707
8865
  truncateLastBreadcrumb?: boolean;
8708
8866
  };
8709
8867
 
8710
- }
8711
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
8712
- export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
8713
-
8714
8868
  }
8715
8869
  declare module '@elastic/eui/src/components/breadcrumbs/_breadcrumb_content.styles' {
8716
8870
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -11750,8 +11904,9 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
11750
11904
  * Object of props passed to EuiFocusTrap.
11751
11905
  * `shards` specifies an array of elements that will be considered part of the flyout, preventing the flyout from being closed when clicked.
11752
11906
  * `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
11907
+ * `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
11753
11908
  */
11754
- focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards'>;
11909
+ focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards' | 'returnFocus'>;
11755
11910
  /**
11756
11911
  * By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
11757
11912
  * as part of the flyout's focus trap. This prevents focus fighting with interactive elements
@@ -12521,11 +12676,6 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
12521
12676
  declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
12522
12677
  export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
12523
12678
 
12524
- }
12525
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
12526
- import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
12527
- export const colorVis: _EuiThemeVisColors;
12528
-
12529
12679
  }
12530
12680
  declare module '@elastic/eui/src/themes/themes' {
12531
12681
  import { EuiThemeSystem } from '@elastic/eui/src/services';
@@ -12535,143 +12685,6 @@ declare module '@elastic/eui/src/themes/themes' {
12535
12685
  provider?: EuiThemeSystem;
12536
12686
  }
12537
12687
 
12538
- }
12539
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
12540
- /**
12541
- * These are not actually used, but we map them to ensure token parity.
12542
- * They are mapped to other vis colors
12543
- */
12544
- export const severityColors: {
12545
- unknown: string;
12546
- neutral: string;
12547
- success: string;
12548
- warning: string;
12549
- risk: string;
12550
- danger: string;
12551
- };
12552
-
12553
- }
12554
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
12555
- import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
12556
- export const brand_colors: _EuiThemeBrandColors;
12557
- export const brand_text_colors: _EuiThemeBrandTextColors;
12558
- export const shade_colors: _EuiThemeShadeColors;
12559
- export const special_colors: _EuiThemeSpecialColors;
12560
- export const text_colors: _EuiThemeTextColors;
12561
- export const background_colors: _EuiThemeBackgroundColors;
12562
- export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
12563
- export const border_colors: _EuiThemeBorderColors;
12564
- export const light_colors: _EuiThemeColorsMode;
12565
- export const dark_shades: _EuiThemeShadeColors;
12566
- export const dark_background_colors: _EuiThemeBackgroundColors;
12567
- export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
12568
- export const dark_border_colors: _EuiThemeBorderColors;
12569
- export const dark_colors_ams: _EuiThemeColorsMode;
12570
- export const colors: _EuiThemeColors;
12571
-
12572
- }
12573
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
12574
- import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
12575
- export const animation_speed: _EuiThemeAnimationSpeeds;
12576
- export const animation_ease: _EuiThemeAnimationEasings;
12577
- export const animation: _EuiThemeAnimation;
12578
-
12579
- }
12580
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
12581
- export { breakpoint } from '@elastic/eui-theme-common';
12582
-
12583
- }
12584
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
12585
- import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
12586
- export const base: _EuiThemeBase;
12587
- export const size: _EuiThemeSizes;
12588
-
12589
- }
12590
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
12591
- import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
12592
- export const border: _EuiThemeBorder;
12593
-
12594
- }
12595
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
12596
- import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
12597
- export const levels: _EuiThemeLevels;
12598
-
12599
- }
12600
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
12601
- import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
12602
- export const fontScale: _EuiThemeFontScales;
12603
- export const fontBase: _EuiThemeFontBase;
12604
- export const fontWeight: _EuiThemeFontWeights;
12605
- export const font: _EuiThemeFont;
12606
-
12607
- }
12608
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
12609
- import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
12610
- export const focus: _EuiThemeFocus;
12611
-
12612
- }
12613
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
12614
- import { _EuiThemeButton } from '@elastic/eui-theme-common';
12615
- export const buttons: _EuiThemeButton;
12616
-
12617
- }
12618
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
12619
- export const forms: {
12620
- maxWidth: string;
12621
- LIGHT: {
12622
- background: string;
12623
- backgroundDisabled: string;
12624
- backgroundReadOnly: any;
12625
- backgroundFocused: any;
12626
- backgroundAutofilled: string;
12627
- prependBackground: string;
12628
- border: string;
12629
- borderAutofilled: string;
12630
- controlBorder: string;
12631
- controlBorderSelected: string;
12632
- controlBorderDisabled: string;
12633
- controlBackgroundUnselected: any;
12634
- controlBackgroundDisabled: any;
12635
- colorHasPlaceholder: string;
12636
- colorDisabled: any;
12637
- iconDisabled: any;
12638
- };
12639
- DARK: {
12640
- background: string;
12641
- backgroundFocused: string;
12642
- backgroundAutofilled: string;
12643
- prependBackground: string;
12644
- border: string;
12645
- controlBorder: string;
12646
- controlBorderSelected: string;
12647
- controlBorderDisabled: string;
12648
- backgroundDisabled: string;
12649
- backgroundReadOnly: any;
12650
- borderAutofilled: string;
12651
- controlBackgroundUnselected: any;
12652
- controlBackgroundDisabled: any;
12653
- colorHasPlaceholder: string;
12654
- colorDisabled: any;
12655
- iconDisabled: any;
12656
- };
12657
- };
12658
-
12659
- }
12660
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
12661
- import { _EuiThemeComponents } from '@elastic/eui-theme-common';
12662
- export const components: _EuiThemeComponents;
12663
-
12664
- }
12665
- declare module '@elastic/eui/src/themes/amsterdam/theme' {
12666
- import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
12667
- export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
12668
- export const euiThemeAmsterdam: EuiThemeShape;
12669
- export const EuiThemeAmsterdam: {
12670
- model: EuiThemeShape;
12671
- root: EuiThemeShape;
12672
- key: string;
12673
- };
12674
-
12675
12688
  }
12676
12689
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
12677
12690
  export * from '@elastic/eui/src/global_styling/mixins/_shadow';
@@ -14606,7 +14619,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
14606
14619
  /**
14607
14620
  * Height types
14608
14621
  */
14609
- getHeightType: (option?: EuiDataGridRowHeightOption) => "auto" | "default" | "lineCount" | "numerical";
14622
+ getHeightType: (option?: EuiDataGridRowHeightOption) => "default" | "auto" | "lineCount" | "numerical";
14610
14623
  /**
14611
14624
  * Line count utils
14612
14625
  */
@@ -19053,18 +19066,26 @@ declare module '@elastic/eui/src/components/expression' {
19053
19066
  }
19054
19067
  declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
19055
19068
  import { UseEuiTheme } from '@elastic/eui/src/services';
19056
- export const euiFilterButtonDisplay: ({ euiTheme }: UseEuiTheme) => {
19069
+ export const euiFilterButtonDisplay: (euiThemeContext: UseEuiTheme) => {
19057
19070
  flex: string;
19058
19071
  minInlineSize: string;
19059
19072
  };
19060
19073
  export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
19061
19074
  euiFilterButton: import("@emotion/react").SerializedStyles;
19075
+ buttonType: {
19076
+ default: import("@emotion/react").SerializedStyles;
19077
+ toggle: import("@emotion/react").SerializedStyles;
19078
+ };
19062
19079
  withNext: import("@emotion/react").SerializedStyles;
19063
19080
  noGrow: import("@emotion/react").SerializedStyles;
19064
19081
  hasNotification: import("@emotion/react").SerializedStyles;
19065
19082
  hasActiveFilters: import("@emotion/react").SerializedStyles;
19066
19083
  };
19067
- export const euiFilterButtonChildStyles: ({ euiTheme }: UseEuiTheme) => {
19084
+ export const euiFilterButtonWrapperStyles: (euiThemeContext: UseEuiTheme) => {
19085
+ wrapper: import("@emotion/react").SerializedStyles;
19086
+ hasToggle: import("@emotion/react").SerializedStyles;
19087
+ };
19088
+ export const euiFilterButtonChildStyles: (euiThemeContext: UseEuiTheme) => {
19068
19089
  content: {
19069
19090
  euiFilterButton__content: import("@emotion/react").SerializedStyles;
19070
19091
  hasIcon: import("@emotion/react").SerializedStyles;
@@ -19121,7 +19142,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19121
19142
  import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
19122
19143
  export type EuiFilterButtonProps = {
19123
19144
  /**
19124
- * Bolds the button if true
19145
+ * Highlights active filters
19125
19146
  */
19126
19147
  hasActiveFilters?: boolean;
19127
19148
  /**
@@ -19135,7 +19156,15 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19135
19156
  */
19136
19157
  numActiveFilters?: number;
19137
19158
  /**
19138
- * Applies a visual state to the button useful when using with a popover.
19159
+ * Switches between toggle and regular button
19160
+ * @default false
19161
+ */
19162
+ isToggle?: boolean;
19163
+ /**
19164
+ * Applies a visual state to the button.
19165
+ * Automatically applies `aria-pressed` when used with `isToggle={true}`.
19166
+ * Otherwise applies `aria-expanded` when used with `isToggle={false}` and
19167
+ * `iconType="arrowDown"` as trigger button for e.g. a popover.
19139
19168
  */
19140
19169
  isSelected?: boolean;
19141
19170
  /**
@@ -19159,7 +19188,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19159
19188
  * - warning
19160
19189
  */
19161
19190
  color?: _EuiButtonColor;
19162
- } & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color'>;
19191
+ } & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'>;
19163
19192
  export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
19164
19193
 
19165
19194
  }
@@ -21773,7 +21802,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
21773
21802
  import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
21774
21803
  export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
21775
21804
  /**
21776
- * Provide a specific EuiTheme; Defaults to EuiThemeBorealis;
21805
+ * Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
21777
21806
  * Pass `null` to remove all theming including global reset
21778
21807
  */
21779
21808
  theme?: EuiThemeSystem | null;
@@ -23032,13 +23061,13 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
23032
23061
  slot?: string | undefined;
23033
23062
  style?: CSSProperties | undefined;
23034
23063
  title?: string | undefined;
23064
+ css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
23035
23065
  width: number;
23036
23066
  color?: string | undefined;
23037
23067
  content?: string | undefined;
23038
- hidden?: boolean | undefined;
23039
- css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
23040
23068
  translate?: "yes" | "no" | undefined;
23041
23069
  property?: string | undefined;
23070
+ hidden?: boolean | undefined;
23042
23071
  className?: string | undefined;
23043
23072
  defaultChecked?: boolean | undefined;
23044
23073
  defaultValue?: string | number | readonly string[] | undefined;
@@ -31426,6 +31455,10 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shado
31426
31455
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
31427
31456
  export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
31428
31457
 
31458
+ }
31459
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
31460
+ export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
31461
+
31429
31462
  }
31430
31463
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
31431
31464
  export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';