@elastic/eui 102.1.0-amsterdam.0 → 102.1.0-snapshot.1746441787383

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 (153) 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/breadcrumbs/_breadcrumb_content.styles.js +6 -3
  5. package/es/components/button/button_display/_button_display.js +1 -1
  6. package/es/components/button/button_display/_button_display.styles.js +11 -2
  7. package/es/components/button/button_display/_button_display_content.styles.js +6 -3
  8. package/es/components/button/button_empty/button_empty.styles.js +9 -12
  9. package/es/components/button/button_group/button_group.styles.js +5 -3
  10. package/es/components/button/button_group/button_group_button.js +19 -9
  11. package/es/components/button/button_group/button_group_button.styles.js +43 -19
  12. package/es/components/button/button_icon/button_icon.js +4 -2
  13. package/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  14. package/es/components/filter_group/filter_button.js +88 -23
  15. package/es/components/filter_group/filter_button.styles.js +51 -15
  16. package/es/components/filter_group/filter_group.styles.js +18 -6
  17. package/es/components/provider/provider.js +2 -2
  18. package/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
  19. package/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  20. package/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  21. package/es/components/search_bar/filters/is_filter.js +3 -1
  22. package/es/components/search_bar/search_bar.a11y.js +3 -3
  23. package/es/global_styling/mixins/_button.js +95 -28
  24. package/es/services/color/vis_color_store.js +1 -1
  25. package/es/services/theme/context.js +2 -2
  26. package/es/services/theme/index.js +2 -1
  27. package/es/services/theme/provider.js +28 -2
  28. package/es/services/theme/theme_variant.js +22 -0
  29. package/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  30. package/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
  31. package/es/themes/amsterdam/theme.js +2 -1
  32. package/eui.d.ts +514 -485
  33. package/lib/components/badge/color_utils.js +1 -3
  34. package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
  35. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  36. package/lib/components/button/button_display/_button_display.js +1 -1
  37. package/lib/components/button/button_display/_button_display.styles.js +11 -2
  38. package/lib/components/button/button_display/_button_display_content.styles.js +6 -3
  39. package/lib/components/button/button_empty/button_empty.styles.js +10 -11
  40. package/lib/components/button/button_group/button_group.styles.js +5 -3
  41. package/lib/components/button/button_group/button_group_button.js +18 -8
  42. package/lib/components/button/button_group/button_group_button.styles.js +41 -17
  43. package/lib/components/button/button_icon/button_icon.js +3 -1
  44. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  45. package/lib/components/filter_group/filter_button.js +86 -21
  46. package/lib/components/filter_group/filter_button.styles.js +51 -15
  47. package/lib/components/filter_group/filter_group.styles.js +18 -6
  48. package/lib/components/provider/provider.js +2 -2
  49. package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
  50. package/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  51. package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  52. package/lib/components/search_bar/filters/is_filter.js +3 -1
  53. package/lib/components/search_bar/search_bar.a11y.js +3 -3
  54. package/lib/global_styling/mixins/_button.js +94 -27
  55. package/lib/services/color/vis_color_store.js +2 -2
  56. package/lib/services/theme/context.js +2 -2
  57. package/lib/services/theme/index.js +41 -1
  58. package/lib/services/theme/provider.js +28 -2
  59. package/lib/services/theme/theme_variant.js +28 -0
  60. package/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  61. package/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
  62. package/lib/themes/amsterdam/theme.js +2 -1
  63. package/optimize/es/components/badge/color_utils.js +1 -3
  64. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
  65. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
  66. package/optimize/es/components/button/button_display/_button_display.js +1 -1
  67. package/optimize/es/components/button/button_display/_button_display.styles.js +11 -2
  68. package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -3
  69. package/optimize/es/components/button/button_empty/button_empty.styles.js +9 -12
  70. package/optimize/es/components/button/button_group/button_group.styles.js +5 -3
  71. package/optimize/es/components/button/button_group/button_group_button.js +12 -8
  72. package/optimize/es/components/button/button_group/button_group_button.styles.js +43 -19
  73. package/optimize/es/components/button/button_icon/button_icon.js +4 -2
  74. package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  75. package/optimize/es/components/filter_group/filter_button.js +78 -21
  76. package/optimize/es/components/filter_group/filter_button.styles.js +51 -15
  77. package/optimize/es/components/filter_group/filter_group.styles.js +18 -6
  78. package/optimize/es/components/provider/provider.js +2 -2
  79. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
  80. package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  81. package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  82. package/optimize/es/components/search_bar/filters/is_filter.js +3 -1
  83. package/optimize/es/components/search_bar/search_bar.a11y.js +3 -3
  84. package/optimize/es/global_styling/mixins/_button.js +95 -28
  85. package/optimize/es/services/color/vis_color_store.js +1 -1
  86. package/optimize/es/services/theme/context.js +2 -2
  87. package/optimize/es/services/theme/index.js +2 -1
  88. package/optimize/es/services/theme/provider.js +28 -2
  89. package/optimize/es/services/theme/theme_variant.js +22 -0
  90. package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  91. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
  92. package/optimize/es/themes/amsterdam/theme.js +2 -1
  93. package/optimize/lib/components/badge/color_utils.js +1 -3
  94. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
  95. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  96. package/optimize/lib/components/button/button_display/_button_display.js +1 -1
  97. package/optimize/lib/components/button/button_display/_button_display.styles.js +11 -2
  98. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -3
  99. package/optimize/lib/components/button/button_empty/button_empty.styles.js +10 -11
  100. package/optimize/lib/components/button/button_group/button_group.styles.js +5 -3
  101. package/optimize/lib/components/button/button_group/button_group_button.js +11 -7
  102. package/optimize/lib/components/button/button_group/button_group_button.styles.js +41 -17
  103. package/optimize/lib/components/button/button_icon/button_icon.js +3 -1
  104. package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  105. package/optimize/lib/components/filter_group/filter_button.js +76 -19
  106. package/optimize/lib/components/filter_group/filter_button.styles.js +51 -15
  107. package/optimize/lib/components/filter_group/filter_group.styles.js +18 -6
  108. package/optimize/lib/components/provider/provider.js +2 -2
  109. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
  110. package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  111. package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  112. package/optimize/lib/components/search_bar/filters/is_filter.js +3 -1
  113. package/optimize/lib/components/search_bar/search_bar.a11y.js +3 -3
  114. package/optimize/lib/global_styling/mixins/_button.js +94 -27
  115. package/optimize/lib/services/color/vis_color_store.js +2 -2
  116. package/optimize/lib/services/theme/context.js +2 -2
  117. package/optimize/lib/services/theme/index.js +41 -1
  118. package/optimize/lib/services/theme/provider.js +28 -2
  119. package/optimize/lib/services/theme/theme_variant.js +28 -0
  120. package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  121. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
  122. package/optimize/lib/themes/amsterdam/theme.js +2 -1
  123. package/package.json +6 -5
  124. package/test-env/components/badge/color_utils.js +1 -3
  125. package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -1
  126. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
  127. package/test-env/components/button/button_display/_button_display.js +1 -1
  128. package/test-env/components/button/button_display/_button_display.styles.js +11 -2
  129. package/test-env/components/button/button_display/_button_display_content.styles.js +6 -3
  130. package/test-env/components/button/button_empty/button_empty.styles.js +10 -11
  131. package/test-env/components/button/button_group/button_group.styles.js +5 -3
  132. package/test-env/components/button/button_group/button_group_button.js +18 -8
  133. package/test-env/components/button/button_group/button_group_button.styles.js +41 -17
  134. package/test-env/components/button/button_icon/button_icon.js +3 -1
  135. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
  136. package/test-env/components/filter_group/filter_button.js +86 -21
  137. package/test-env/components/filter_group/filter_button.styles.js +51 -15
  138. package/test-env/components/filter_group/filter_group.styles.js +18 -6
  139. package/test-env/components/provider/provider.js +2 -2
  140. package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -0
  141. package/test-env/components/search_bar/filters/field_value_toggle_filter.js +3 -1
  142. package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
  143. package/test-env/components/search_bar/filters/is_filter.js +3 -1
  144. package/test-env/components/search_bar/search_bar.a11y.js +3 -3
  145. package/test-env/global_styling/mixins/_button.js +94 -27
  146. package/test-env/services/color/vis_color_store.js +2 -2
  147. package/test-env/services/theme/context.js +2 -2
  148. package/test-env/services/theme/index.js +41 -1
  149. package/test-env/services/theme/provider.js +28 -2
  150. package/test-env/services/theme/theme_variant.js +28 -0
  151. package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
  152. package/test-env/themes/amsterdam/global_styling/variables/_components.js +229 -224
  153. package/test-env/themes/amsterdam/theme.js +2 -1
package/eui.d.ts CHANGED
@@ -171,13 +171,119 @@ 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
+
174
178
  }
175
179
  declare module '@elastic/eui/src/services/theme/utils' {
176
180
  export { DEFAULT_COLOR_MODE, isInverseColorMode, getColorMode, getOn, setOn, Computed, computed, getComputed, buildTheme, mergeDeep, } from '@elastic/eui-theme-common';
177
181
 
178
182
  }
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';
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, EuiThemeHighContrastMode, EuiThemeModifications, 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
+ }
254
+ declare module '@elastic/eui/src/services/throttle' {
255
+ export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
256
+
257
+ }
258
+ declare module '@elastic/eui/src/services/breakpoint/_sorting' {
259
+ import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
260
+ export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
261
+ export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
262
+
263
+ }
264
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
265
+ import React, { FunctionComponent, PropsWithChildren } from 'react';
266
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
267
+ type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
268
+ export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
269
+ /**
270
+ * Returns the current breakpoint based on window width.
271
+ * Typically only called by the top-level `EuiProvider` (to reduce the number
272
+ * of window resize listeners on the page). Also conditionally called if a
273
+ * nested `EuiThemeProvider` defines a `modify.breakpoint` override
274
+ */
275
+ export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
276
+ export {};
277
+
278
+ }
279
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
280
+ /**
281
+ * Hook util / syntactical sugar for useContext()
282
+ *
283
+ * This hook is in its own separate file to make mocking it
284
+ * as a testenv easy for Jest unit tests
285
+ */
286
+ export const useCurrentEuiBreakpoint: () => string | undefined;
181
287
 
182
288
  }
183
289
  declare module '@elastic/eui/src/services/emotion/clone_element' {
@@ -276,10 +382,6 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
276
382
  */
277
383
  export const useDeepEqual: <T = Record<string, any> | any[] | undefined>(object: T) => T;
278
384
 
279
- }
280
- declare module '@elastic/eui/src/services/throttle' {
281
- export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
282
-
283
385
  }
284
386
  declare module '@elastic/eui/src/services/hooks/useMouseMove' {
285
387
  import { MouseEvent, TouchEvent } from 'react';
@@ -302,15 +404,6 @@ declare module '@elastic/eui/src/services/hooks' {
302
404
  export * from '@elastic/eui/src/services/hooks/useMouseMove';
303
405
  export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
304
406
 
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
-
314
407
  }
315
408
  declare module '@elastic/eui/src/services/theme/style_memoization' {
316
409
  import React, { FunctionComponent, PropsWithChildren } from 'react';
@@ -507,11 +600,6 @@ declare module '@elastic/eui/src/services/color/color_palette' {
507
600
  */
508
601
  categorical?: boolean): string[];
509
602
 
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
-
515
603
  }
516
604
  declare module '@elastic/eui/src/services/color/vis_color_store' {
517
605
  import { _EuiVisColorStore } from '@elastic/eui-theme-common';
@@ -645,135 +733,6 @@ declare module '@elastic/eui/src/services/color/eui_palettes_hooks' {
645
733
  export const useEuiPaletteWarm: (steps: number) => EuiPalette;
646
734
  export const useEuiPaletteGray: (steps: number) => EuiPalette;
647
735
 
648
- }
649
- declare module '@elastic/eui/src/global_styling/mixins/_button' {
650
- import { type SerializedStyles } from '@emotion/react';
651
- import { UseEuiTheme } from '@elastic/eui/src/services';
652
- /** Tentative usage; these exist only to be used as button directly when used within other components */
653
- export const SEVERITY_COLORS: readonly ["neutral", "risk"];
654
- export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
655
- export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
656
- export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
657
- export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
658
- export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
659
- export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
660
- export interface _EuiButtonOptions {
661
- display?: _EuiButtonDisplay;
662
- }
663
- /**
664
- * Creates the `base` version of button styles with proper text contrast.
665
- * @param euiThemeContext
666
- * @param color One of the named button colors or 'disabled'
667
- * @returns Style object `{ backgroundColor, color }`
668
- */
669
- export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
670
- border: string;
671
- color: string;
672
- backgroundColor: string;
673
- } | {
674
- border?: undefined;
675
- color: string;
676
- backgroundColor: string;
677
- };
678
- /**
679
- * Creates the `fill` version of buttons styles with proper text contrast.
680
- * @param euiThemeContext
681
- * @param color One of the named button colors or 'disabled'
682
- * @returns Style object `{ backgroundColor, color }`
683
- */
684
- export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
685
- border: string;
686
- color: string;
687
- backgroundColor: string;
688
- } | {
689
- border?: undefined;
690
- color: string;
691
- backgroundColor: string;
692
- };
693
- /**
694
- * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
695
- * @param euiThemeContext
696
- * @param color One of the named button colors or 'disabled'
697
- * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
698
- */
699
- export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
700
- color: string;
701
- backgroundColor: string;
702
- };
703
- /**
704
- * Given the button display type, returns the Emotion based color keys.
705
- * @param options Button display type
706
- * @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
707
- */
708
- export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
709
- /**
710
- * Creates the translate animation when button is in focus.
711
- * @returns string
712
- */
713
- export const useEuiButtonFocusCSS: () => SerializedStyles;
714
- /**
715
- * Map of `size` props to various sizings/scales
716
- * that should remain consistent across all buttons
717
- */
718
- export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
719
- xs: {
720
- height: string;
721
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
722
- fontScale: "xs";
723
- };
724
- s: {
725
- height: string;
726
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
727
- fontScale: "s";
728
- };
729
- m: {
730
- height: string;
731
- radius: import("csstype").Property.BorderRadius<string | number> | undefined;
732
- fontScale: "s";
733
- };
734
- };
735
-
736
- }
737
- declare module '@elastic/eui/src/global_styling/mixins/_color' {
738
- import { SerializedStyles } from '@emotion/react';
739
- import { UseEuiTheme } from '@elastic/eui/src/services';
740
- export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
741
- export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
742
- export interface _EuiBackgroundColorOptions {
743
- /**
744
- * Use `opaque` for containers of unknown content.
745
- * Use `transparent` for interactive states like hover and focus.
746
- */
747
- method?: 'opaque' | 'transparent';
748
- }
749
- /**
750
- * @deprecated - use background tokens directly
751
- * @returns A single background color with optional alpha transparency
752
- */
753
- export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
754
- /**
755
- * @deprecated
756
- */
757
- export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
758
- /**
759
- * Hook to retrieve background style for a background color variant
760
- * @returns An object map of color keys to CSS,
761
- * e.g. { danger: css``, success: css``, ... }
762
- */
763
- export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
764
- /**
765
- * Border colors
766
- * @deprecated - use border tokens directly or use
767
- * `useEuiBorderColorCSS()` for composed styles
768
- */
769
- export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
770
- /**
771
- * Hook to retrieve border style for a border variant
772
- * @returns An object map of color keys to CSS,
773
- * e.g. { danger: css``, success: css``, ... }
774
- */
775
- export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
776
-
777
736
  }
778
737
  declare module '@elastic/eui/src/global_styling/functions/high_contrast' {
779
738
  import type { UseEuiTheme } from '@elastic/eui/src/services';
@@ -820,7 +779,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
820
779
  horizontal: string;
821
780
  vertical: string;
822
781
  };
823
- export const LOGICAL_SIDES: ("left" | "right" | "bottom" | "top" | "horizontal" | "vertical")[];
782
+ export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
824
783
  export type LogicalSides = (typeof LOGICAL_SIDES)[number];
825
784
  export const logicals: {
826
785
  height: string;
@@ -879,7 +838,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
879
838
  "border-bottom-right-radius": string;
880
839
  _shorthands: string[];
881
840
  };
882
- 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")[];
841
+ 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")[];
883
842
  export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
884
843
  /**
885
844
  *
@@ -1051,6 +1010,142 @@ declare module '@elastic/eui/src/global_styling/functions' {
1051
1010
  export * from '@elastic/eui/src/global_styling/functions/size';
1052
1011
  export * from '@elastic/eui/src/global_styling/functions/typography';
1053
1012
 
1013
+ }
1014
+ declare module '@elastic/eui/src/global_styling/mixins/_button' {
1015
+ import { type SerializedStyles } from '@emotion/react';
1016
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1017
+ /** Tentative usage; these exist only to be used as button directly when used within other components */
1018
+ export const SEVERITY_COLORS: readonly ["neutral", "risk"];
1019
+ export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
1020
+ export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
1021
+ export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
1022
+ export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
1023
+ export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
1024
+ export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
1025
+ export interface _EuiButtonOptions {
1026
+ display?: _EuiButtonDisplay;
1027
+ }
1028
+ /**
1029
+ * Creates the `base` version of button styles with proper text contrast.
1030
+ * @param euiThemeContext
1031
+ * @param color One of the named button colors or 'disabled'
1032
+ * @returns Style object `{ backgroundColor, color }`
1033
+ */
1034
+ export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
1035
+ border: string;
1036
+ color: string;
1037
+ backgroundColor: string;
1038
+ } | {
1039
+ border?: undefined;
1040
+ color: string;
1041
+ backgroundColor: string;
1042
+ };
1043
+ /**
1044
+ * Creates the `fill` version of buttons styles with proper text contrast.
1045
+ * @param euiThemeContext
1046
+ * @param color One of the named button colors or 'disabled'
1047
+ * @returns Style object `{ backgroundColor, color }`
1048
+ */
1049
+ export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
1050
+ border: string;
1051
+ color: string;
1052
+ backgroundColor: string;
1053
+ } | {
1054
+ border?: undefined;
1055
+ color: string;
1056
+ backgroundColor: string;
1057
+ };
1058
+ /**
1059
+ * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
1060
+ * @param euiThemeContext
1061
+ * @param color One of the named button colors or 'disabled'
1062
+ * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
1063
+ */
1064
+ export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
1065
+ color: string;
1066
+ backgroundColor: string;
1067
+ };
1068
+ /**
1069
+ * Given the button display type, returns the Emotion based color keys.
1070
+ * @param options Button display type
1071
+ * @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
1072
+ */
1073
+ export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
1074
+ /**
1075
+ * Creates the translate animation when button is in focus.
1076
+ * @returns string
1077
+ */
1078
+ export const useEuiButtonFocusCSS: () => SerializedStyles;
1079
+ /**
1080
+ * Map of `size` props to various sizings/scales
1081
+ * that should remain consistent across all buttons
1082
+ */
1083
+ export const euiButtonSizeMap: (euiThemeContext: UseEuiTheme) => {
1084
+ xs: {
1085
+ minWidth: number;
1086
+ height: string;
1087
+ radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1088
+ fontScale: "xs";
1089
+ };
1090
+ s: {
1091
+ minWidth: number;
1092
+ height: string;
1093
+ radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1094
+ fontScale: "s";
1095
+ };
1096
+ m: {
1097
+ minWidth: number;
1098
+ height: string;
1099
+ radius: string | number | undefined;
1100
+ fontScale: "s";
1101
+ };
1102
+ };
1103
+ /**
1104
+ * creates a bottom border on hover/focus to ensure a visible change as forced mode removed background colors
1105
+ */
1106
+ export const highContrastHoverIndicatorStyles: ({ euiTheme }: UseEuiTheme) => string;
1107
+
1108
+ }
1109
+ declare module '@elastic/eui/src/global_styling/mixins/_color' {
1110
+ import { SerializedStyles } from '@emotion/react';
1111
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1112
+ export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
1113
+ export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
1114
+ export interface _EuiBackgroundColorOptions {
1115
+ /**
1116
+ * Use `opaque` for containers of unknown content.
1117
+ * Use `transparent` for interactive states like hover and focus.
1118
+ */
1119
+ method?: 'opaque' | 'transparent';
1120
+ }
1121
+ /**
1122
+ * @deprecated - use background tokens directly
1123
+ * @returns A single background color with optional alpha transparency
1124
+ */
1125
+ export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1126
+ /**
1127
+ * @deprecated
1128
+ */
1129
+ export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1130
+ /**
1131
+ * Hook to retrieve background style for a background color variant
1132
+ * @returns An object map of color keys to CSS,
1133
+ * e.g. { danger: css``, success: css``, ... }
1134
+ */
1135
+ export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
1136
+ /**
1137
+ * Border colors
1138
+ * @deprecated - use border tokens directly or use
1139
+ * `useEuiBorderColorCSS()` for composed styles
1140
+ */
1141
+ export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
1142
+ /**
1143
+ * Hook to retrieve border style for a border variant
1144
+ * @returns An object map of color keys to CSS,
1145
+ * e.g. { danger: css``, success: css``, ... }
1146
+ */
1147
+ export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
1148
+
1054
1149
  }
1055
1150
  declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1056
1151
  import { CSSProperties } from 'react';
@@ -1171,12 +1266,6 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
1171
1266
  */
1172
1267
  export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
1173
1268
 
1174
- }
1175
- declare module '@elastic/eui/src/services/breakpoint/_sorting' {
1176
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
1177
- export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
1178
- export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
1179
-
1180
1269
  }
1181
1270
  declare module '@elastic/eui/src/global_styling/variables/animations' {
1182
1271
  export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
@@ -2896,7 +2985,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
2896
2985
  import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
2897
2986
  export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
2898
2987
  import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
2899
- 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" | "empty" | "scale" | "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" | "offline" | "online" | "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" | "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")[];
2988
+ export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "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" | "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" | "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")[];
2900
2989
  export type EuiIconType = keyof typeof typeToPathMap;
2901
2990
  export type IconType = EuiIconType | string | ComponentType;
2902
2991
  export type IconColor = string | NamedColor;
@@ -3449,7 +3538,12 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
3449
3538
  euiButtonDisplay: import("@emotion/react").SerializedStyles;
3450
3539
  isDisabled: import("@emotion/react").SerializedStyles;
3451
3540
  fullWidth: import("@emotion/react").SerializedStyles;
3452
- defaultMinWidth: import("@emotion/react").SerializedStyles;
3541
+ defaultMinWidth: {
3542
+ defaultMinWidth: import("@emotion/react").SerializedStyles;
3543
+ xs: string;
3544
+ s: string;
3545
+ m: string;
3546
+ };
3453
3547
  xs: import("@emotion/react").SerializedStyles;
3454
3548
  s: import("@emotion/react").SerializedStyles;
3455
3549
  m: import("@emotion/react").SerializedStyles;
@@ -3584,7 +3678,7 @@ declare module '@elastic/eui/src/components/loading' {
3584
3678
  }
3585
3679
  declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
3586
3680
  import { UseEuiTheme } from '@elastic/eui/src/services';
3587
- export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
3681
+ export const euiButtonDisplayContentStyles: (euiThemeContext: UseEuiTheme) => {
3588
3682
  euiButtonDisplayContent: import("@emotion/react").SerializedStyles;
3589
3683
  };
3590
3684
 
@@ -3756,7 +3850,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty.sty
3756
3850
  isDisabled: import("@emotion/react").SerializedStyles;
3757
3851
  xs: import("@emotion/react").SerializedStyles;
3758
3852
  s: import("@emotion/react").SerializedStyles;
3759
- m: import("@emotion/react").SerializedStyles;
3853
+ m: (string | false | import("@emotion/react").SerializedStyles)[];
3760
3854
  flush: import("@emotion/react").SerializedStyles;
3761
3855
  left: import("@emotion/react").SerializedStyles;
3762
3856
  right: import("@emotion/react").SerializedStyles;
@@ -4041,6 +4135,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4041
4135
  };
4042
4136
  compressed: SerializedStyles;
4043
4137
  disabledAndSelected: SerializedStyles;
4138
+ hasBorder: string;
4044
4139
  tooltipWrapper: SerializedStyles;
4045
4140
  content: {
4046
4141
  euiButtonGroupButton__content: SerializedStyles;
@@ -4056,6 +4151,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4056
4151
  }
4057
4152
  declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
4058
4153
  import { FunctionComponent, MouseEventHandler } from 'react';
4154
+ import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
4059
4155
  import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
4060
4156
  type Props = EuiButtonGroupOptionProps & {
4061
4157
  /**
@@ -4078,6 +4174,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
4078
4174
  * Inherit from EuiButtonGroup
4079
4175
  */
4080
4176
  onClick: MouseEventHandler<HTMLButtonElement>;
4177
+ contentProps?: EuiButtonDisplayCommonProps['contentProps'];
4081
4178
  };
4082
4179
  export const EuiButtonGroupButton: FunctionComponent<Props>;
4083
4180
  export {};
@@ -6823,98 +6920,6 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
6823
6920
  import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
6824
6921
  export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
6825
6922
 
6826
- }
6827
- declare module '@elastic/eui/src/services/color/contrast' {
6828
- export const wcagContrastMin = 4.5;
6829
- /**
6830
- * Creates a new color that meets or exceeds WCAG level AA
6831
- * @param foreground - Color to manipulate
6832
- * @param ratio - Amount to change in absolute terms. 0-10.
6833
- * *
6834
- * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6835
- */
6836
- export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6837
- colors: {
6838
- body: string;
6839
- };
6840
- [key: string]: any;
6841
- }) => string;
6842
- /**
6843
- * Creates a new color with increased contrast
6844
- * Disabled content only needs a contrast of at least 2 because there is no interaction available
6845
- * @param foreground - Color to manipulate
6846
- * @param ratio - Amount to change in absolute terms. 0-10.
6847
- * *
6848
- * @param themeOrBackground - Color to use as the contrast basis
6849
- */
6850
- export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
6851
- colors: {
6852
- body: string;
6853
- };
6854
- [key: string]: any;
6855
- }) => string;
6856
-
6857
- }
6858
- declare module '@elastic/eui/src/services/color' {
6859
- export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6860
- export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6861
- export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6862
- export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6863
- export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6864
- export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6865
- export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6866
- export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6867
- export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6868
- export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6869
- export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
6870
- export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6871
- 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';
6872
- export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
6873
- export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6874
- export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6875
- export * from '@elastic/eui/src/services/color/manipulation';
6876
- export * from '@elastic/eui/src/services/color/contrast';
6877
-
6878
- }
6879
- declare module '@elastic/eui/src/services/theme/provider' {
6880
- import React, { PropsWithChildren, HTMLAttributes } from 'react';
6881
- import type { CommonProps } from '@elastic/eui/src/components/common';
6882
- import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
6883
- export interface EuiThemeProviderProps<T> extends PropsWithChildren {
6884
- theme?: EuiThemeSystem<T>;
6885
- colorMode?: EuiThemeColorMode;
6886
- highContrastMode?: EuiThemeHighContrastModeProp;
6887
- modify?: EuiThemeModifications<T>;
6888
- children: any;
6889
- /**
6890
- * Nested theme providers will receive a wrapping `span` tag in order to correctly
6891
- * set the default text `color` that all nested children will inherit.
6892
- *
6893
- * If an extra wrapper is not desired, pass `{ cloneElement: true }`.
6894
- * This requires a **single** child component that the correct color class can be passed to.
6895
- *
6896
- * The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
6897
- * the default inherited text color will be set on the page `body`.
6898
- */
6899
- wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
6900
- cloneElement?: boolean;
6901
- };
6902
- }
6903
- export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
6904
-
6905
- }
6906
- declare module '@elastic/eui/src/services/theme' {
6907
- export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
6908
- export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
6909
- export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, } from '@elastic/eui/src/services/theme/hooks';
6910
- export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
6911
- export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
6912
- export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
6913
- export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
6914
- export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
6915
- export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
6916
- export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
6917
-
6918
6923
  }
6919
6924
  declare module '@elastic/eui/src/services/color/manipulation' {
6920
6925
  import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
@@ -6981,228 +6986,107 @@ declare module '@elastic/eui/src/services/color/manipulation' {
6981
6986
  export const brighten: (color: string, amount: number) => string;
6982
6987
 
6983
6988
  }
6984
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
6989
+ declare module '@elastic/eui/src/services/color/contrast' {
6990
+ export const wcagContrastMin = 4.5;
6985
6991
  /**
6986
- * These are not actually used, but we map them to ensure token parity.
6987
- * They are mapped to other vis colors
6992
+ * Creates a new color that meets or exceeds WCAG level AA
6993
+ * @param foreground - Color to manipulate
6994
+ * @param ratio - Amount to change in absolute terms. 0-10.
6995
+ * *
6996
+ * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6988
6997
  */
6989
- export const severityColors: {
6990
- unknown: string;
6991
- neutral: string;
6992
- success: string;
6993
- warning: string;
6994
- risk: string;
6995
- danger: string;
6996
- };
6997
-
6998
- }
6999
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
7000
- import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
7001
- export const brand_colors: _EuiThemeBrandColors;
7002
- export const brand_text_colors: _EuiThemeBrandTextColors;
7003
- export const shade_colors: _EuiThemeShadeColors;
7004
- export const special_colors: _EuiThemeSpecialColors;
7005
- export const text_colors: _EuiThemeTextColors;
7006
- export const background_colors: _EuiThemeBackgroundColors;
7007
- export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
7008
- export const border_colors: _EuiThemeBorderColors;
7009
- export const light_colors: _EuiThemeColorsMode;
7010
- export const dark_shades: _EuiThemeShadeColors;
7011
- export const dark_background_colors: _EuiThemeBackgroundColors;
7012
- export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
7013
- export const dark_border_colors: _EuiThemeBorderColors;
7014
- export const dark_colors_ams: _EuiThemeColorsMode;
7015
- export const colors: _EuiThemeColors;
7016
-
7017
- }
7018
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
7019
- import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
7020
- export const animation_speed: _EuiThemeAnimationSpeeds;
7021
- export const animation_ease: _EuiThemeAnimationEasings;
7022
- export const animation: _EuiThemeAnimation;
7023
-
7024
- }
7025
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
7026
- export { breakpoint } from '@elastic/eui-theme-common';
7027
-
7028
- }
7029
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
7030
- import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
7031
- export const base: _EuiThemeBase;
7032
- export const size: _EuiThemeSizes;
7033
-
7034
- }
7035
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
7036
- import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
7037
- export const border: _EuiThemeBorder;
7038
-
7039
- }
7040
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
7041
- import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
7042
- export const levels: _EuiThemeLevels;
7043
-
7044
- }
7045
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
7046
- import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
7047
- export const fontScale: _EuiThemeFontScales;
7048
- export const fontBase: _EuiThemeFontBase;
7049
- export const fontWeight: _EuiThemeFontWeights;
7050
- export const font: _EuiThemeFont;
7051
-
7052
- }
7053
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
7054
- import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
7055
- export const focus: _EuiThemeFocus;
7056
-
7057
- }
7058
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
7059
- import { _EuiThemeButton } from '@elastic/eui-theme-common';
7060
- export const buttons: _EuiThemeButton;
7061
-
7062
- }
7063
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
7064
- export const forms: {
7065
- maxWidth: string;
7066
- LIGHT: {
7067
- background: string;
7068
- backgroundDisabled: string;
7069
- backgroundReadOnly: any;
7070
- backgroundFocused: any;
7071
- backgroundAutofilled: string;
7072
- prependBackground: string;
7073
- border: string;
7074
- borderAutofilled: string;
7075
- controlBorder: string;
7076
- controlBorderSelected: string;
7077
- controlBorderDisabled: string;
7078
- controlBackgroundUnselected: any;
7079
- controlBackgroundDisabled: any;
7080
- colorHasPlaceholder: string;
7081
- colorDisabled: any;
7082
- iconDisabled: any;
6998
+ export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6999
+ colors: {
7000
+ body: string;
7083
7001
  };
7084
- DARK: {
7085
- background: string;
7086
- backgroundFocused: string;
7087
- backgroundAutofilled: string;
7088
- prependBackground: string;
7089
- border: string;
7090
- controlBorder: string;
7091
- controlBorderSelected: string;
7092
- controlBorderDisabled: string;
7093
- backgroundDisabled: string;
7094
- backgroundReadOnly: any;
7095
- borderAutofilled: string;
7096
- controlBackgroundUnselected: any;
7097
- controlBackgroundDisabled: any;
7098
- colorHasPlaceholder: string;
7099
- colorDisabled: any;
7100
- iconDisabled: any;
7002
+ [key: string]: any;
7003
+ }) => string;
7004
+ /**
7005
+ * Creates a new color with increased contrast
7006
+ * Disabled content only needs a contrast of at least 2 because there is no interaction available
7007
+ * @param foreground - Color to manipulate
7008
+ * @param ratio - Amount to change in absolute terms. 0-10.
7009
+ * *
7010
+ * @param themeOrBackground - Color to use as the contrast basis
7011
+ */
7012
+ export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
7013
+ colors: {
7014
+ body: string;
7101
7015
  };
7102
- };
7103
-
7104
- }
7105
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
7106
- import { _EuiThemeComponents } from '@elastic/eui-theme-common';
7107
- export const components: _EuiThemeComponents;
7016
+ [key: string]: any;
7017
+ }) => string;
7108
7018
 
7109
7019
  }
7110
- declare module '@elastic/eui/src/themes/amsterdam/theme' {
7111
- import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
7112
- export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
7113
- export const euiThemeAmsterdam: EuiThemeShape;
7114
- export const EuiThemeAmsterdam: {
7115
- model: EuiThemeShape;
7116
- root: EuiThemeShape;
7117
- key: string;
7118
- };
7020
+ declare module '@elastic/eui/src/services/color' {
7021
+ export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
7022
+ export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
7023
+ export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
7024
+ export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
7025
+ export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
7026
+ export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
7027
+ export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
7028
+ export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
7029
+ export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
7030
+ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
7031
+ export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
7032
+ export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
7033
+ 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';
7034
+ export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
7035
+ export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
7036
+ export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
7037
+ export * from '@elastic/eui/src/services/color/manipulation';
7038
+ export * from '@elastic/eui/src/services/color/contrast';
7119
7039
 
7120
7040
  }
7121
- declare module '@elastic/eui/src/services/theme/context' {
7122
- import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
7123
- export const DEFAULTS: {
7124
- system: {
7125
- model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
7126
- root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
7127
- key: string;
7041
+ declare module '@elastic/eui/src/services/theme/provider' {
7042
+ import React, { PropsWithChildren, HTMLAttributes } from 'react';
7043
+ import type { CommonProps } from '@elastic/eui/src/components/common';
7044
+ import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
7045
+ export interface EuiThemeProviderProps<T> extends PropsWithChildren {
7046
+ theme?: EuiThemeSystem<T>;
7047
+ colorMode?: EuiThemeColorMode;
7048
+ highContrastMode?: EuiThemeHighContrastModeProp;
7049
+ modify?: EuiThemeModifications<T>;
7050
+ children: any;
7051
+ /**
7052
+ * Nested theme providers will receive a wrapping `span` tag in order to correctly
7053
+ * set the default text `color` that all nested children will inherit.
7054
+ *
7055
+ * If an extra wrapper is not desired, pass `{ cloneElement: true }`.
7056
+ * This requires a **single** child component that the correct color class can be passed to.
7057
+ *
7058
+ * The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
7059
+ * the default inherited text color will be set on the page `body`.
7060
+ */
7061
+ wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
7062
+ cloneElement?: boolean;
7128
7063
  };
7129
- modifications: {};
7130
- colorMode: "LIGHT";
7131
- highContrastMode: false;
7132
- };
7133
- export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
7134
- export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
7135
- overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
7136
- }>>;
7137
- export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
7138
- export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
7139
- export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
7140
- export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
7141
- export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
7142
-
7143
- }
7144
- declare module '@elastic/eui/src/services/theme/hooks' {
7145
- import React from 'react';
7146
- import type { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui-theme-common';
7147
- /**
7148
- * Hook for function components
7149
- */
7150
- export interface UseEuiTheme<T extends {} = {}> {
7151
- euiTheme: EuiThemeComputed<T>;
7152
- colorMode: EuiThemeColorModeStandard;
7153
- highContrastMode: EuiThemeHighContrastMode;
7154
- modifications: EuiThemeModifications<T>;
7155
- }
7156
- export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
7157
- /**
7158
- * HOC for class components
7159
- */
7160
- export interface WithEuiThemeProps<P extends {} = {}> {
7161
- theme: UseEuiTheme<P>;
7162
7064
  }
7163
- 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">>>;
7164
- /**
7165
- * Render prop alternative for complex class components
7166
- * Most useful for scenarios where a HOC may interfere with typing
7167
- */
7168
- export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
7169
- children: (theme: UseEuiTheme) => React.ReactElement;
7170
- }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7171
- /**
7172
- * Minor syntactical sugar hook for theme CSS variables.
7173
- * Primarily meant for internal EUI usage.
7174
- */
7175
- export const useEuiThemeCSSVariables: () => {
7176
- setGlobalCSSVariables: Function;
7177
- globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
7178
- setNearestThemeCSSVariables: Function;
7179
- themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
7180
- };
7065
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
7181
7066
 
7182
7067
  }
7183
- declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
7184
- import React, { FunctionComponent, PropsWithChildren } from 'react';
7185
- import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
7186
- type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
7187
- export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
7068
+ declare module '@elastic/eui/src/services/theme/theme_variant' {
7069
+ import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
7070
+ export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
7188
7071
  /**
7189
- * Returns the current breakpoint based on window width.
7190
- * Typically only called by the top-level `EuiProvider` (to reduce the number
7191
- * of window resize listeners on the page). Also conditionally called if a
7192
- * nested `EuiThemeProvider` defines a `modify.breakpoint` override
7072
+ * Util to retrieve visual variant for UI elements
7073
+ * Note: Temporary only - will be removed once the visual refresh is completed.
7193
7074
  */
7194
- export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
7195
- export {};
7075
+ export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
7196
7076
 
7197
7077
  }
7198
- declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
7199
- /**
7200
- * Hook util / syntactical sugar for useContext()
7201
- *
7202
- * This hook is in its own separate file to make mocking it
7203
- * as a testenv easy for Jest unit tests
7204
- */
7205
- export const useCurrentEuiBreakpoint: () => string | undefined;
7078
+ declare module '@elastic/eui/src/services/theme' {
7079
+ export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
7080
+ export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
7081
+ export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, } from '@elastic/eui/src/services/theme/hooks';
7082
+ export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
7083
+ export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
7084
+ export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
7085
+ export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
7086
+ export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
7087
+ export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
7088
+ export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
7089
+ export * from '@elastic/eui/src/services/theme/theme_variant';
7206
7090
 
7207
7091
  }
7208
7092
  declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
@@ -8225,15 +8109,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
8225
8109
  color: string;
8226
8110
  backgroundColor: string;
8227
8111
  };
8228
- accentSecondary: {
8229
- border: string;
8230
- color: string;
8231
- backgroundColor: string;
8232
- } | {
8233
- border?: undefined;
8234
- color: string;
8235
- backgroundColor: string;
8236
- };
8237
8112
  disabled: {
8238
8113
  borderColor: string;
8239
8114
  border: string;
@@ -8265,10 +8140,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
8265
8140
  backgroundColor: string;
8266
8141
  color: string;
8267
8142
  };
8268
- accentSecondaryText: {
8269
- backgroundColor: string;
8270
- color: string;
8271
- };
8272
8143
  };
8273
8144
  export const getBadgeColors: (euiThemeContext: UseEuiTheme, backgroundColor: string) => {
8274
8145
  backgroundColor: string;
@@ -8844,10 +8715,6 @@ declare module '@elastic/eui/src/components/breadcrumbs/types' {
8844
8715
  truncateLastBreadcrumb?: boolean;
8845
8716
  };
8846
8717
 
8847
- }
8848
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
8849
- 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';
8850
-
8851
8718
  }
8852
8719
  declare module '@elastic/eui/src/components/breadcrumbs/_breadcrumb_content.styles' {
8853
8720
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -12658,6 +12525,11 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
12658
12525
  declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
12659
12526
  export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
12660
12527
 
12528
+ }
12529
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
12530
+ import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
12531
+ export const colorVis: _EuiThemeVisColors;
12532
+
12661
12533
  }
12662
12534
  declare module '@elastic/eui/src/themes/themes' {
12663
12535
  import { EuiThemeSystem } from '@elastic/eui/src/services';
@@ -12667,6 +12539,143 @@ declare module '@elastic/eui/src/themes/themes' {
12667
12539
  provider?: EuiThemeSystem;
12668
12540
  }
12669
12541
 
12542
+ }
12543
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
12544
+ /**
12545
+ * These are not actually used, but we map them to ensure token parity.
12546
+ * They are mapped to other vis colors
12547
+ */
12548
+ export const severityColors: {
12549
+ unknown: string;
12550
+ neutral: string;
12551
+ success: string;
12552
+ warning: string;
12553
+ risk: string;
12554
+ danger: string;
12555
+ };
12556
+
12557
+ }
12558
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
12559
+ import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
12560
+ export const brand_colors: _EuiThemeBrandColors;
12561
+ export const brand_text_colors: _EuiThemeBrandTextColors;
12562
+ export const shade_colors: _EuiThemeShadeColors;
12563
+ export const special_colors: _EuiThemeSpecialColors;
12564
+ export const text_colors: _EuiThemeTextColors;
12565
+ export const background_colors: _EuiThemeBackgroundColors;
12566
+ export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
12567
+ export const border_colors: _EuiThemeBorderColors;
12568
+ export const light_colors: _EuiThemeColorsMode;
12569
+ export const dark_shades: _EuiThemeShadeColors;
12570
+ export const dark_background_colors: _EuiThemeBackgroundColors;
12571
+ export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
12572
+ export const dark_border_colors: _EuiThemeBorderColors;
12573
+ export const dark_colors_ams: _EuiThemeColorsMode;
12574
+ export const colors: _EuiThemeColors;
12575
+
12576
+ }
12577
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
12578
+ import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
12579
+ export const animation_speed: _EuiThemeAnimationSpeeds;
12580
+ export const animation_ease: _EuiThemeAnimationEasings;
12581
+ export const animation: _EuiThemeAnimation;
12582
+
12583
+ }
12584
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
12585
+ export { breakpoint } from '@elastic/eui-theme-common';
12586
+
12587
+ }
12588
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
12589
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
12590
+ export const base: _EuiThemeBase;
12591
+ export const size: _EuiThemeSizes;
12592
+
12593
+ }
12594
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
12595
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
12596
+ export const border: _EuiThemeBorder;
12597
+
12598
+ }
12599
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
12600
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
12601
+ export const levels: _EuiThemeLevels;
12602
+
12603
+ }
12604
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
12605
+ import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
12606
+ export const fontScale: _EuiThemeFontScales;
12607
+ export const fontBase: _EuiThemeFontBase;
12608
+ export const fontWeight: _EuiThemeFontWeights;
12609
+ export const font: _EuiThemeFont;
12610
+
12611
+ }
12612
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
12613
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
12614
+ export const focus: _EuiThemeFocus;
12615
+
12616
+ }
12617
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
12618
+ import { _EuiThemeButton } from '@elastic/eui-theme-common';
12619
+ export const buttons: _EuiThemeButton;
12620
+
12621
+ }
12622
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
12623
+ export const forms: {
12624
+ maxWidth: string;
12625
+ LIGHT: {
12626
+ background: string;
12627
+ backgroundDisabled: string;
12628
+ backgroundReadOnly: any;
12629
+ backgroundFocused: any;
12630
+ backgroundAutofilled: string;
12631
+ prependBackground: string;
12632
+ border: string;
12633
+ borderAutofilled: string;
12634
+ controlBorder: string;
12635
+ controlBorderSelected: string;
12636
+ controlBorderDisabled: string;
12637
+ controlBackgroundUnselected: any;
12638
+ controlBackgroundDisabled: any;
12639
+ colorHasPlaceholder: string;
12640
+ colorDisabled: any;
12641
+ iconDisabled: any;
12642
+ };
12643
+ DARK: {
12644
+ background: string;
12645
+ backgroundFocused: string;
12646
+ backgroundAutofilled: string;
12647
+ prependBackground: string;
12648
+ border: string;
12649
+ controlBorder: string;
12650
+ controlBorderSelected: string;
12651
+ controlBorderDisabled: string;
12652
+ backgroundDisabled: string;
12653
+ backgroundReadOnly: any;
12654
+ borderAutofilled: string;
12655
+ controlBackgroundUnselected: any;
12656
+ controlBackgroundDisabled: any;
12657
+ colorHasPlaceholder: string;
12658
+ colorDisabled: any;
12659
+ iconDisabled: any;
12660
+ };
12661
+ };
12662
+
12663
+ }
12664
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
12665
+ import { _EuiThemeComponents } from '@elastic/eui-theme-common';
12666
+ export const components: _EuiThemeComponents;
12667
+
12668
+ }
12669
+ declare module '@elastic/eui/src/themes/amsterdam/theme' {
12670
+ import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
12671
+ export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
12672
+ export const euiThemeAmsterdam: EuiThemeShape;
12673
+ export const EuiThemeAmsterdam: {
12674
+ model: EuiThemeShape;
12675
+ root: EuiThemeShape;
12676
+ key: string;
12677
+ };
12678
+
12670
12679
  }
12671
12680
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
12672
12681
  export * from '@elastic/eui/src/global_styling/mixins/_shadow';
@@ -14601,7 +14610,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
14601
14610
  /**
14602
14611
  * Height types
14603
14612
  */
14604
- getHeightType: (option?: EuiDataGridRowHeightOption) => "default" | "auto" | "lineCount" | "numerical";
14613
+ getHeightType: (option?: EuiDataGridRowHeightOption) => "auto" | "default" | "lineCount" | "numerical";
14605
14614
  /**
14606
14615
  * Line count utils
14607
14616
  */
@@ -19034,18 +19043,26 @@ declare module '@elastic/eui/src/components/expression' {
19034
19043
  }
19035
19044
  declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
19036
19045
  import { UseEuiTheme } from '@elastic/eui/src/services';
19037
- export const euiFilterButtonDisplay: ({ euiTheme }: UseEuiTheme) => {
19046
+ export const euiFilterButtonDisplay: (euiThemeContext: UseEuiTheme) => {
19038
19047
  flex: string;
19039
19048
  minInlineSize: string;
19040
19049
  };
19041
19050
  export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
19042
19051
  euiFilterButton: import("@emotion/react").SerializedStyles;
19052
+ buttonType: {
19053
+ default: import("@emotion/react").SerializedStyles;
19054
+ toggle: import("@emotion/react").SerializedStyles;
19055
+ };
19043
19056
  withNext: import("@emotion/react").SerializedStyles;
19044
19057
  noGrow: import("@emotion/react").SerializedStyles;
19045
19058
  hasNotification: import("@emotion/react").SerializedStyles;
19046
19059
  hasActiveFilters: import("@emotion/react").SerializedStyles;
19047
19060
  };
19048
- export const euiFilterButtonChildStyles: ({ euiTheme }: UseEuiTheme) => {
19061
+ export const euiFilterButtonWrapperStyles: (euiThemeContext: UseEuiTheme) => {
19062
+ wrapper: import("@emotion/react").SerializedStyles;
19063
+ hasToggle: import("@emotion/react").SerializedStyles;
19064
+ };
19065
+ export const euiFilterButtonChildStyles: (euiThemeContext: UseEuiTheme) => {
19049
19066
  content: {
19050
19067
  euiFilterButton__content: import("@emotion/react").SerializedStyles;
19051
19068
  hasIcon: import("@emotion/react").SerializedStyles;
@@ -19102,7 +19119,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19102
19119
  import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
19103
19120
  export type EuiFilterButtonProps = {
19104
19121
  /**
19105
- * Bolds the button if true
19122
+ * Highlights active filters
19106
19123
  */
19107
19124
  hasActiveFilters?: boolean;
19108
19125
  /**
@@ -19116,7 +19133,15 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19116
19133
  */
19117
19134
  numActiveFilters?: number;
19118
19135
  /**
19119
- * Applies a visual state to the button useful when using with a popover.
19136
+ * Switches between toggle and regular button
19137
+ * @default false
19138
+ */
19139
+ isToggle?: boolean;
19140
+ /**
19141
+ * Applies a visual state to the button.
19142
+ * Automatically applies `aria-pressed` when used with `isToggle={true}`.
19143
+ * Otherwise applies `aria-expanded` when used with `isToggle={false}` and
19144
+ * `iconType="arrowDown"` as trigger button for e.g. a popover.
19120
19145
  */
19121
19146
  isSelected?: boolean;
19122
19147
  /**
@@ -19140,7 +19165,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
19140
19165
  * - warning
19141
19166
  */
19142
19167
  color?: _EuiButtonColor;
19143
- } & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color'>;
19168
+ } & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'>;
19144
19169
  export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
19145
19170
 
19146
19171
  }
@@ -21754,7 +21779,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
21754
21779
  import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
21755
21780
  export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
21756
21781
  /**
21757
- * Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
21782
+ * Provide a specific EuiTheme; Defaults to EuiThemeBorealis;
21758
21783
  * Pass `null` to remove all theming including global reset
21759
21784
  */
21760
21785
  theme?: EuiThemeSystem | null;
@@ -23013,12 +23038,12 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
23013
23038
  slot?: string | undefined;
23014
23039
  style?: CSSProperties | undefined;
23015
23040
  title?: string | undefined;
23016
- css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
23017
23041
  width: number;
23018
23042
  color?: string | undefined;
23019
23043
  content?: string | undefined;
23020
- translate?: "yes" | "no" | undefined;
23021
23044
  hidden?: boolean | undefined;
23045
+ css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
23046
+ translate?: "yes" | "no" | undefined;
23022
23047
  property?: string | undefined;
23023
23048
  className?: string | undefined;
23024
23049
  defaultChecked?: boolean | undefined;
@@ -31394,6 +31419,10 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shado
31394
31419
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
31395
31420
  export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
31396
31421
 
31422
+ }
31423
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
31424
+ 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';
31425
+
31397
31426
  }
31398
31427
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
31399
31428
  export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';