@elastic/eui 102.2.0 → 102.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_borealis_dark.json +1 -1
- package/es/components/badge/color_utils.js +1 -3
- package/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/es/components/basic_table/basic_table.js +4 -1
- package/es/components/basic_table/in_memory_table.js +4 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display.styles.js +11 -2
- package/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/es/components/button/button_group/button_group.styles.js +5 -3
- package/es/components/button/button_group/button_group_button.js +19 -9
- package/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/es/components/button/button_icon/button_icon.js +4 -2
- package/es/components/collapsible_nav/collapsible_nav.js +1 -0
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/es/components/datagrid/utils/focus.js +2 -2
- package/es/components/filter_group/filter_button.js +88 -23
- package/es/components/filter_group/filter_button.styles.js +51 -15
- package/es/components/filter_group/filter_group.styles.js +18 -6
- package/es/components/markdown_editor/markdown_editor_footer.js +9 -4
- package/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/es/components/search_bar/filters/is_filter.js +3 -1
- package/es/components/search_bar/search_bar.a11y.js +3 -3
- package/es/global_styling/mixins/_button.js +95 -28
- package/es/services/theme/index.js +2 -1
- package/es/services/theme/provider.js +28 -2
- package/es/services/theme/theme_variant.js +22 -0
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/es/themes/amsterdam/theme.js +2 -1
- package/es/themes/json/eui_theme_borealis_dark.json +1 -1
- package/eui.d.ts +194 -161
- package/lib/components/badge/color_utils.js +1 -3
- package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/lib/components/basic_table/basic_table.js +4 -1
- package/lib/components/basic_table/in_memory_table.js +4 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/lib/components/button/button_group/button_group.styles.js +5 -3
- package/lib/components/button/button_group/button_group_button.js +18 -8
- package/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/lib/components/button/button_icon/button_icon.js +3 -1
- package/lib/components/collapsible_nav/collapsible_nav.js +1 -0
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/lib/components/datagrid/utils/focus.js +1 -1
- package/lib/components/filter_group/filter_button.js +86 -21
- package/lib/components/filter_group/filter_button.styles.js +51 -15
- package/lib/components/filter_group/filter_group.styles.js +18 -6
- package/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/lib/components/search_bar/filters/is_filter.js +3 -1
- package/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/lib/global_styling/mixins/_button.js +94 -27
- package/lib/services/theme/index.js +42 -1
- package/lib/services/theme/provider.js +28 -2
- package/lib/services/theme/theme_variant.js +28 -0
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/lib/themes/amsterdam/theme.js +2 -1
- package/lib/themes/json/eui_theme_borealis_dark.json +1 -1
- package/optimize/es/components/badge/color_utils.js +1 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/optimize/es/components/button/button_display/_button_display.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/optimize/es/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/es/components/button/button_group/button_group_button.js +12 -8
- package/optimize/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/optimize/es/components/button/button_icon/button_icon.js +4 -2
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/es/components/datagrid/utils/focus.js +2 -2
- package/optimize/es/components/filter_group/filter_button.js +78 -21
- package/optimize/es/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/es/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/es/components/markdown_editor/markdown_editor_footer.js +9 -4
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/es/global_styling/mixins/_button.js +95 -28
- package/optimize/es/services/theme/index.js +2 -1
- package/optimize/es/services/theme/provider.js +28 -2
- package/optimize/es/services/theme/theme_variant.js +22 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/es/themes/amsterdam/theme.js +2 -1
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +1 -1
- package/optimize/lib/components/badge/color_utils.js +1 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/optimize/lib/components/button/button_display/_button_display.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/optimize/lib/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/lib/components/button/button_group/button_group_button.js +11 -7
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/optimize/lib/components/button/button_icon/button_icon.js +3 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/lib/components/datagrid/utils/focus.js +1 -1
- package/optimize/lib/components/filter_group/filter_button.js +76 -19
- package/optimize/lib/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/lib/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/lib/global_styling/mixins/_button.js +94 -27
- package/optimize/lib/services/theme/index.js +42 -1
- package/optimize/lib/services/theme/provider.js +28 -2
- package/optimize/lib/services/theme/theme_variant.js +28 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/lib/themes/amsterdam/theme.js +2 -1
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +1 -1
- package/package.json +4 -4
- package/test-env/components/badge/color_utils.js +1 -3
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/test-env/components/basic_table/basic_table.js +4 -1
- package/test-env/components/basic_table/in_memory_table.js +4 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display.styles.js +11 -2
- package/test-env/components/button/button_display/_button_display_content.styles.js +6 -3
- package/test-env/components/button/button_empty/button_empty.styles.js +10 -11
- package/test-env/components/button/button_group/button_group.styles.js +5 -3
- package/test-env/components/button/button_group/button_group_button.js +18 -8
- package/test-env/components/button/button_group/button_group_button.styles.js +41 -17
- package/test-env/components/button/button_icon/button_icon.js +3 -1
- package/test-env/components/collapsible_nav/collapsible_nav.js +1 -0
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/test-env/components/datagrid/utils/focus.js +1 -1
- package/test-env/components/filter_group/filter_button.js +86 -21
- package/test-env/components/filter_group/filter_button.styles.js +51 -15
- package/test-env/components/filter_group/filter_group.styles.js +18 -6
- package/test-env/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/test-env/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/test-env/components/search_bar/filters/is_filter.js +3 -1
- package/test-env/components/search_bar/search_bar.a11y.js +3 -3
- package/test-env/global_styling/mixins/_button.js +94 -27
- package/test-env/services/theme/index.js +42 -1
- package/test-env/services/theme/provider.js +28 -2
- package/test-env/services/theme/theme_variant.js +28 -0
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/test-env/themes/amsterdam/theme.js +2 -1
- package/test-env/themes/json/eui_theme_borealis_dark.json +1 -1
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
"euiColorBackgroundLightWarning": "#3D3014",
|
|
393
393
|
"euiColorBackgroundLightRisk": "#4A221C",
|
|
394
394
|
"euiColorBackgroundLightDanger": "#491D27",
|
|
395
|
-
"euiColorBackgroundLightText": "#
|
|
395
|
+
"euiColorBackgroundLightText": "#2B394F",
|
|
396
396
|
"euiColorBackgroundFilledPrimary": "#61A2FF",
|
|
397
397
|
"euiColorBackgroundFilledAccent": "#EE72A6",
|
|
398
398
|
"euiColorBackgroundFilledAccentSecondary": "#16C5C0",
|
package/eui.d.ts
CHANGED
|
@@ -738,135 +738,6 @@ declare module '@elastic/eui/src/services/color/eui_palettes_hooks' {
|
|
|
738
738
|
export const useEuiPaletteWarm: (steps: number) => EuiPalette;
|
|
739
739
|
export const useEuiPaletteGray: (steps: number) => EuiPalette;
|
|
740
740
|
|
|
741
|
-
}
|
|
742
|
-
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
743
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
744
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
745
|
-
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
746
|
-
export const SEVERITY_COLORS: readonly ["neutral", "risk"];
|
|
747
|
-
export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
748
|
-
export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
749
|
-
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
750
|
-
export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
|
|
751
|
-
export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
|
|
752
|
-
export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
|
|
753
|
-
export interface _EuiButtonOptions {
|
|
754
|
-
display?: _EuiButtonDisplay;
|
|
755
|
-
}
|
|
756
|
-
/**
|
|
757
|
-
* Creates the `base` version of button styles with proper text contrast.
|
|
758
|
-
* @param euiThemeContext
|
|
759
|
-
* @param color One of the named button colors or 'disabled'
|
|
760
|
-
* @returns Style object `{ backgroundColor, color }`
|
|
761
|
-
*/
|
|
762
|
-
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
763
|
-
border: string;
|
|
764
|
-
color: string;
|
|
765
|
-
backgroundColor: string;
|
|
766
|
-
} | {
|
|
767
|
-
border?: undefined;
|
|
768
|
-
color: string;
|
|
769
|
-
backgroundColor: string;
|
|
770
|
-
};
|
|
771
|
-
/**
|
|
772
|
-
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
773
|
-
* @param euiThemeContext
|
|
774
|
-
* @param color One of the named button colors or 'disabled'
|
|
775
|
-
* @returns Style object `{ backgroundColor, color }`
|
|
776
|
-
*/
|
|
777
|
-
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
778
|
-
border: string;
|
|
779
|
-
color: string;
|
|
780
|
-
backgroundColor: string;
|
|
781
|
-
} | {
|
|
782
|
-
border?: undefined;
|
|
783
|
-
color: string;
|
|
784
|
-
backgroundColor: string;
|
|
785
|
-
};
|
|
786
|
-
/**
|
|
787
|
-
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
788
|
-
* @param euiThemeContext
|
|
789
|
-
* @param color One of the named button colors or 'disabled'
|
|
790
|
-
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
791
|
-
*/
|
|
792
|
-
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
793
|
-
color: string;
|
|
794
|
-
backgroundColor: string;
|
|
795
|
-
};
|
|
796
|
-
/**
|
|
797
|
-
* Given the button display type, returns the Emotion based color keys.
|
|
798
|
-
* @param options Button display type
|
|
799
|
-
* @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
|
|
800
|
-
*/
|
|
801
|
-
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
|
|
802
|
-
/**
|
|
803
|
-
* Creates the translate animation when button is in focus.
|
|
804
|
-
* @returns string
|
|
805
|
-
*/
|
|
806
|
-
export const useEuiButtonFocusCSS: () => SerializedStyles;
|
|
807
|
-
/**
|
|
808
|
-
* Map of `size` props to various sizings/scales
|
|
809
|
-
* that should remain consistent across all buttons
|
|
810
|
-
*/
|
|
811
|
-
export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
|
|
812
|
-
xs: {
|
|
813
|
-
height: string;
|
|
814
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
815
|
-
fontScale: "xs";
|
|
816
|
-
};
|
|
817
|
-
s: {
|
|
818
|
-
height: string;
|
|
819
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
820
|
-
fontScale: "s";
|
|
821
|
-
};
|
|
822
|
-
m: {
|
|
823
|
-
height: string;
|
|
824
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
825
|
-
fontScale: "s";
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
}
|
|
830
|
-
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
831
|
-
import { SerializedStyles } from '@emotion/react';
|
|
832
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
833
|
-
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
834
|
-
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
835
|
-
export interface _EuiBackgroundColorOptions {
|
|
836
|
-
/**
|
|
837
|
-
* Use `opaque` for containers of unknown content.
|
|
838
|
-
* Use `transparent` for interactive states like hover and focus.
|
|
839
|
-
*/
|
|
840
|
-
method?: 'opaque' | 'transparent';
|
|
841
|
-
}
|
|
842
|
-
/**
|
|
843
|
-
* @deprecated - use background tokens directly
|
|
844
|
-
* @returns A single background color with optional alpha transparency
|
|
845
|
-
*/
|
|
846
|
-
export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
847
|
-
/**
|
|
848
|
-
* @deprecated
|
|
849
|
-
*/
|
|
850
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
851
|
-
/**
|
|
852
|
-
* Hook to retrieve background style for a background color variant
|
|
853
|
-
* @returns An object map of color keys to CSS,
|
|
854
|
-
* e.g. { danger: css``, success: css``, ... }
|
|
855
|
-
*/
|
|
856
|
-
export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
857
|
-
/**
|
|
858
|
-
* Border colors
|
|
859
|
-
* @deprecated - use border tokens directly or use
|
|
860
|
-
* `useEuiBorderColorCSS()` for composed styles
|
|
861
|
-
*/
|
|
862
|
-
export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
|
|
863
|
-
/**
|
|
864
|
-
* Hook to retrieve border style for a border variant
|
|
865
|
-
* @returns An object map of color keys to CSS,
|
|
866
|
-
* e.g. { danger: css``, success: css``, ... }
|
|
867
|
-
*/
|
|
868
|
-
export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
869
|
-
|
|
870
741
|
}
|
|
871
742
|
declare module '@elastic/eui/src/global_styling/functions/high_contrast' {
|
|
872
743
|
import type { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -913,7 +784,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
913
784
|
horizontal: string;
|
|
914
785
|
vertical: string;
|
|
915
786
|
};
|
|
916
|
-
export const LOGICAL_SIDES: ("left" | "right" | "
|
|
787
|
+
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
917
788
|
export type LogicalSides = (typeof LOGICAL_SIDES)[number];
|
|
918
789
|
export const logicals: {
|
|
919
790
|
height: string;
|
|
@@ -972,7 +843,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
972
843
|
"border-bottom-right-radius": string;
|
|
973
844
|
_shorthands: string[];
|
|
974
845
|
};
|
|
975
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "
|
|
846
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "top" | "bottom" | "horizontal" | "vertical" | "height" | "max-height" | "max-width" | "min-height" | "min-width" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
|
|
976
847
|
export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
|
|
977
848
|
/**
|
|
978
849
|
*
|
|
@@ -1144,6 +1015,142 @@ declare module '@elastic/eui/src/global_styling/functions' {
|
|
|
1144
1015
|
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1145
1016
|
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1146
1017
|
|
|
1018
|
+
}
|
|
1019
|
+
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
1020
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
1021
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1022
|
+
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
1023
|
+
export const SEVERITY_COLORS: readonly ["neutral", "risk"];
|
|
1024
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
1025
|
+
export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
1026
|
+
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
1027
|
+
export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
|
|
1028
|
+
export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
|
|
1029
|
+
export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
|
|
1030
|
+
export interface _EuiButtonOptions {
|
|
1031
|
+
display?: _EuiButtonDisplay;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
1035
|
+
* @param euiThemeContext
|
|
1036
|
+
* @param color One of the named button colors or 'disabled'
|
|
1037
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1038
|
+
*/
|
|
1039
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1040
|
+
border: string;
|
|
1041
|
+
color: string;
|
|
1042
|
+
backgroundColor: string;
|
|
1043
|
+
} | {
|
|
1044
|
+
border?: undefined;
|
|
1045
|
+
color: string;
|
|
1046
|
+
backgroundColor: string;
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1050
|
+
* @param euiThemeContext
|
|
1051
|
+
* @param color One of the named button colors or 'disabled'
|
|
1052
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1053
|
+
*/
|
|
1054
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1055
|
+
border: string;
|
|
1056
|
+
color: string;
|
|
1057
|
+
backgroundColor: string;
|
|
1058
|
+
} | {
|
|
1059
|
+
border?: undefined;
|
|
1060
|
+
color: string;
|
|
1061
|
+
backgroundColor: string;
|
|
1062
|
+
};
|
|
1063
|
+
/**
|
|
1064
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1065
|
+
* @param euiThemeContext
|
|
1066
|
+
* @param color One of the named button colors or 'disabled'
|
|
1067
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1068
|
+
*/
|
|
1069
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1070
|
+
color: string;
|
|
1071
|
+
backgroundColor: string;
|
|
1072
|
+
};
|
|
1073
|
+
/**
|
|
1074
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
1075
|
+
* @param options Button display type
|
|
1076
|
+
* @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
|
|
1077
|
+
*/
|
|
1078
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Creates the translate animation when button is in focus.
|
|
1081
|
+
* @returns string
|
|
1082
|
+
*/
|
|
1083
|
+
export const useEuiButtonFocusCSS: () => SerializedStyles;
|
|
1084
|
+
/**
|
|
1085
|
+
* Map of `size` props to various sizings/scales
|
|
1086
|
+
* that should remain consistent across all buttons
|
|
1087
|
+
*/
|
|
1088
|
+
export const euiButtonSizeMap: (euiThemeContext: UseEuiTheme) => {
|
|
1089
|
+
xs: {
|
|
1090
|
+
minWidth: number;
|
|
1091
|
+
height: string;
|
|
1092
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1093
|
+
fontScale: "xs";
|
|
1094
|
+
};
|
|
1095
|
+
s: {
|
|
1096
|
+
minWidth: number;
|
|
1097
|
+
height: string;
|
|
1098
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1099
|
+
fontScale: "s";
|
|
1100
|
+
};
|
|
1101
|
+
m: {
|
|
1102
|
+
minWidth: number;
|
|
1103
|
+
height: string;
|
|
1104
|
+
radius: string | number | undefined;
|
|
1105
|
+
fontScale: "s";
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
/**
|
|
1109
|
+
* creates a bottom border on hover/focus to ensure a visible change as forced mode removed background colors
|
|
1110
|
+
*/
|
|
1111
|
+
export const highContrastHoverIndicatorStyles: ({ euiTheme }: UseEuiTheme) => string;
|
|
1112
|
+
|
|
1113
|
+
}
|
|
1114
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
1115
|
+
import { SerializedStyles } from '@emotion/react';
|
|
1116
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1117
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
1118
|
+
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
1119
|
+
export interface _EuiBackgroundColorOptions {
|
|
1120
|
+
/**
|
|
1121
|
+
* Use `opaque` for containers of unknown content.
|
|
1122
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
1123
|
+
*/
|
|
1124
|
+
method?: 'opaque' | 'transparent';
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* @deprecated - use background tokens directly
|
|
1128
|
+
* @returns A single background color with optional alpha transparency
|
|
1129
|
+
*/
|
|
1130
|
+
export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1131
|
+
/**
|
|
1132
|
+
* @deprecated
|
|
1133
|
+
*/
|
|
1134
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1135
|
+
/**
|
|
1136
|
+
* Hook to retrieve background style for a background color variant
|
|
1137
|
+
* @returns An object map of color keys to CSS,
|
|
1138
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
1139
|
+
*/
|
|
1140
|
+
export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Border colors
|
|
1143
|
+
* @deprecated - use border tokens directly or use
|
|
1144
|
+
* `useEuiBorderColorCSS()` for composed styles
|
|
1145
|
+
*/
|
|
1146
|
+
export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Hook to retrieve border style for a border variant
|
|
1149
|
+
* @returns An object map of color keys to CSS,
|
|
1150
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
1151
|
+
*/
|
|
1152
|
+
export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
1153
|
+
|
|
1147
1154
|
}
|
|
1148
1155
|
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1149
1156
|
import { CSSProperties } from 'react';
|
|
@@ -2983,7 +2990,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2983
2990
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2984
2991
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2985
2992
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2986
|
-
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "
|
|
2993
|
+
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")[];
|
|
2987
2994
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2988
2995
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2989
2996
|
export type IconColor = string | NamedColor;
|
|
@@ -3536,7 +3543,12 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3536
3543
|
euiButtonDisplay: import("@emotion/react").SerializedStyles;
|
|
3537
3544
|
isDisabled: import("@emotion/react").SerializedStyles;
|
|
3538
3545
|
fullWidth: import("@emotion/react").SerializedStyles;
|
|
3539
|
-
defaultMinWidth:
|
|
3546
|
+
defaultMinWidth: {
|
|
3547
|
+
defaultMinWidth: import("@emotion/react").SerializedStyles;
|
|
3548
|
+
xs: string;
|
|
3549
|
+
s: string;
|
|
3550
|
+
m: string;
|
|
3551
|
+
};
|
|
3540
3552
|
xs: import("@emotion/react").SerializedStyles;
|
|
3541
3553
|
s: import("@emotion/react").SerializedStyles;
|
|
3542
3554
|
m: import("@emotion/react").SerializedStyles;
|
|
@@ -3671,7 +3683,7 @@ declare module '@elastic/eui/src/components/loading' {
|
|
|
3671
3683
|
}
|
|
3672
3684
|
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
3673
3685
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3674
|
-
export const euiButtonDisplayContentStyles: (
|
|
3686
|
+
export const euiButtonDisplayContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3675
3687
|
euiButtonDisplayContent: import("@emotion/react").SerializedStyles;
|
|
3676
3688
|
};
|
|
3677
3689
|
|
|
@@ -3843,7 +3855,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty.sty
|
|
|
3843
3855
|
isDisabled: import("@emotion/react").SerializedStyles;
|
|
3844
3856
|
xs: import("@emotion/react").SerializedStyles;
|
|
3845
3857
|
s: import("@emotion/react").SerializedStyles;
|
|
3846
|
-
m: import("@emotion/react").SerializedStyles;
|
|
3858
|
+
m: (string | false | import("@emotion/react").SerializedStyles)[];
|
|
3847
3859
|
flush: import("@emotion/react").SerializedStyles;
|
|
3848
3860
|
left: import("@emotion/react").SerializedStyles;
|
|
3849
3861
|
right: import("@emotion/react").SerializedStyles;
|
|
@@ -4128,6 +4140,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4128
4140
|
};
|
|
4129
4141
|
compressed: SerializedStyles;
|
|
4130
4142
|
disabledAndSelected: SerializedStyles;
|
|
4143
|
+
hasBorder: string;
|
|
4131
4144
|
tooltipWrapper: SerializedStyles;
|
|
4132
4145
|
content: {
|
|
4133
4146
|
euiButtonGroupButton__content: SerializedStyles;
|
|
@@ -4143,6 +4156,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4143
4156
|
}
|
|
4144
4157
|
declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
|
|
4145
4158
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
4159
|
+
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
4146
4160
|
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4147
4161
|
type Props = EuiButtonGroupOptionProps & {
|
|
4148
4162
|
/**
|
|
@@ -4165,6 +4179,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4165
4179
|
* Inherit from EuiButtonGroup
|
|
4166
4180
|
*/
|
|
4167
4181
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
4182
|
+
contentProps?: EuiButtonDisplayCommonProps['contentProps'];
|
|
4168
4183
|
};
|
|
4169
4184
|
export const EuiButtonGroupButton: FunctionComponent<Props>;
|
|
4170
4185
|
export {};
|
|
@@ -5264,9 +5279,12 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
5264
5279
|
render?: (item: T) => ReactNode;
|
|
5265
5280
|
};
|
|
5266
5281
|
/**
|
|
5267
|
-
*
|
|
5282
|
+
* A custom renderer for this column's cell content.
|
|
5283
|
+
* Unlike computed columns or `mobileOptions.render`, this function receives:
|
|
5284
|
+
* - `value`: The value of the specified field for this row
|
|
5285
|
+
* - `item`: The full data item (row object)
|
|
5268
5286
|
*/
|
|
5269
|
-
render?: (value: any,
|
|
5287
|
+
render?: (value: any, item: T) => ReactNode;
|
|
5270
5288
|
/**
|
|
5271
5289
|
* Content to display in the footer beneath this column
|
|
5272
5290
|
*/
|
|
@@ -5281,7 +5299,7 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
5281
5299
|
/**
|
|
5282
5300
|
* A function that computes the value for each item and renders it
|
|
5283
5301
|
*/
|
|
5284
|
-
render: (
|
|
5302
|
+
render: (item: T) => ReactNode;
|
|
5285
5303
|
/**
|
|
5286
5304
|
* The display name of the column
|
|
5287
5305
|
*/
|
|
@@ -7054,6 +7072,16 @@ declare module '@elastic/eui/src/services/theme/provider' {
|
|
|
7054
7072
|
}
|
|
7055
7073
|
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
7056
7074
|
|
|
7075
|
+
}
|
|
7076
|
+
declare module '@elastic/eui/src/services/theme/theme_variant' {
|
|
7077
|
+
import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
|
|
7078
|
+
export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
|
|
7079
|
+
/**
|
|
7080
|
+
* Util to retrieve visual variant for UI elements
|
|
7081
|
+
* Note: Temporary only - will be removed once the visual refresh is completed.
|
|
7082
|
+
*/
|
|
7083
|
+
export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
|
|
7084
|
+
|
|
7057
7085
|
}
|
|
7058
7086
|
declare module '@elastic/eui/src/services/theme' {
|
|
7059
7087
|
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
@@ -7066,6 +7094,7 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
7066
7094
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7067
7095
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7068
7096
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
7097
|
+
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
7069
7098
|
|
|
7070
7099
|
}
|
|
7071
7100
|
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
@@ -8088,15 +8117,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8088
8117
|
color: string;
|
|
8089
8118
|
backgroundColor: string;
|
|
8090
8119
|
};
|
|
8091
|
-
accentSecondary: {
|
|
8092
|
-
border: string;
|
|
8093
|
-
color: string;
|
|
8094
|
-
backgroundColor: string;
|
|
8095
|
-
} | {
|
|
8096
|
-
border?: undefined;
|
|
8097
|
-
color: string;
|
|
8098
|
-
backgroundColor: string;
|
|
8099
|
-
};
|
|
8100
8120
|
disabled: {
|
|
8101
8121
|
borderColor: string;
|
|
8102
8122
|
border: string;
|
|
@@ -8128,10 +8148,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8128
8148
|
backgroundColor: string;
|
|
8129
8149
|
color: string;
|
|
8130
8150
|
};
|
|
8131
|
-
accentSecondaryText: {
|
|
8132
|
-
backgroundColor: string;
|
|
8133
|
-
color: string;
|
|
8134
|
-
};
|
|
8135
8151
|
};
|
|
8136
8152
|
export const getBadgeColors: (euiThemeContext: UseEuiTheme, backgroundColor: string) => {
|
|
8137
8153
|
backgroundColor: string;
|
|
@@ -8707,10 +8723,6 @@ declare module '@elastic/eui/src/components/breadcrumbs/types' {
|
|
|
8707
8723
|
truncateLastBreadcrumb?: boolean;
|
|
8708
8724
|
};
|
|
8709
8725
|
|
|
8710
|
-
}
|
|
8711
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
8712
|
-
export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
8713
|
-
|
|
8714
8726
|
}
|
|
8715
8727
|
declare module '@elastic/eui/src/components/breadcrumbs/_breadcrumb_content.styles' {
|
|
8716
8728
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -11750,8 +11762,9 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
11750
11762
|
* Object of props passed to EuiFocusTrap.
|
|
11751
11763
|
* `shards` specifies an array of elements that will be considered part of the flyout, preventing the flyout from being closed when clicked.
|
|
11752
11764
|
* `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
|
|
11765
|
+
* `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
|
|
11753
11766
|
*/
|
|
11754
|
-
focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards'>;
|
|
11767
|
+
focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards' | 'returnFocus'>;
|
|
11755
11768
|
/**
|
|
11756
11769
|
* By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
|
|
11757
11770
|
* as part of the flyout's focus trap. This prevents focus fighting with interactive elements
|
|
@@ -19053,18 +19066,26 @@ declare module '@elastic/eui/src/components/expression' {
|
|
|
19053
19066
|
}
|
|
19054
19067
|
declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
|
|
19055
19068
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19056
|
-
export const euiFilterButtonDisplay: (
|
|
19069
|
+
export const euiFilterButtonDisplay: (euiThemeContext: UseEuiTheme) => {
|
|
19057
19070
|
flex: string;
|
|
19058
19071
|
minInlineSize: string;
|
|
19059
19072
|
};
|
|
19060
19073
|
export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19061
19074
|
euiFilterButton: import("@emotion/react").SerializedStyles;
|
|
19075
|
+
buttonType: {
|
|
19076
|
+
default: import("@emotion/react").SerializedStyles;
|
|
19077
|
+
toggle: import("@emotion/react").SerializedStyles;
|
|
19078
|
+
};
|
|
19062
19079
|
withNext: import("@emotion/react").SerializedStyles;
|
|
19063
19080
|
noGrow: import("@emotion/react").SerializedStyles;
|
|
19064
19081
|
hasNotification: import("@emotion/react").SerializedStyles;
|
|
19065
19082
|
hasActiveFilters: import("@emotion/react").SerializedStyles;
|
|
19066
19083
|
};
|
|
19067
|
-
export const
|
|
19084
|
+
export const euiFilterButtonWrapperStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19085
|
+
wrapper: import("@emotion/react").SerializedStyles;
|
|
19086
|
+
hasToggle: import("@emotion/react").SerializedStyles;
|
|
19087
|
+
};
|
|
19088
|
+
export const euiFilterButtonChildStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19068
19089
|
content: {
|
|
19069
19090
|
euiFilterButton__content: import("@emotion/react").SerializedStyles;
|
|
19070
19091
|
hasIcon: import("@emotion/react").SerializedStyles;
|
|
@@ -19121,7 +19142,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
19121
19142
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
19122
19143
|
export type EuiFilterButtonProps = {
|
|
19123
19144
|
/**
|
|
19124
|
-
*
|
|
19145
|
+
* Highlights active filters
|
|
19125
19146
|
*/
|
|
19126
19147
|
hasActiveFilters?: boolean;
|
|
19127
19148
|
/**
|
|
@@ -19135,7 +19156,15 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
19135
19156
|
*/
|
|
19136
19157
|
numActiveFilters?: number;
|
|
19137
19158
|
/**
|
|
19138
|
-
*
|
|
19159
|
+
* Switches between toggle and regular button
|
|
19160
|
+
* @default false
|
|
19161
|
+
*/
|
|
19162
|
+
isToggle?: boolean;
|
|
19163
|
+
/**
|
|
19164
|
+
* Applies a visual state to the button.
|
|
19165
|
+
* Automatically applies `aria-pressed` when used with `isToggle={true}`.
|
|
19166
|
+
* Otherwise applies `aria-expanded` when used with `isToggle={false}` and
|
|
19167
|
+
* `iconType="arrowDown"` as trigger button for e.g. a popover.
|
|
19139
19168
|
*/
|
|
19140
19169
|
isSelected?: boolean;
|
|
19141
19170
|
/**
|
|
@@ -19159,7 +19188,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
19159
19188
|
* - warning
|
|
19160
19189
|
*/
|
|
19161
19190
|
color?: _EuiButtonColor;
|
|
19162
|
-
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color'>;
|
|
19191
|
+
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'>;
|
|
19163
19192
|
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
19164
19193
|
|
|
19165
19194
|
}
|
|
@@ -31426,6 +31455,10 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shado
|
|
|
31426
31455
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
31427
31456
|
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
31428
31457
|
|
|
31458
|
+
}
|
|
31459
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
31460
|
+
export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
31461
|
+
|
|
31429
31462
|
}
|
|
31430
31463
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
|
|
31431
31464
|
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|
|
@@ -40,7 +40,6 @@ var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeCo
|
|
|
40
40
|
risk: (0, _button.euiButtonFillColor)(euiThemeContext, 'risk'),
|
|
41
41
|
danger: (0, _button.euiButtonFillColor)(euiThemeContext, 'danger'),
|
|
42
42
|
accent: (0, _button.euiButtonFillColor)(euiThemeContext, 'accent'),
|
|
43
|
-
accentSecondary: (0, _button.euiButtonFillColor)(euiThemeContext, 'accentSecondary'),
|
|
44
43
|
disabled: _objectSpread(_objectSpread({}, (0, _button.euiButtonColor)(euiThemeContext, 'disabled')), {}, {
|
|
45
44
|
borderColor: highContrastMode ? euiTheme.colors.textDisabled : ''
|
|
46
45
|
}),
|
|
@@ -58,8 +57,7 @@ var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeCo
|
|
|
58
57
|
}),
|
|
59
58
|
accentText: _objectSpread(_objectSpread({}, badgeColorsAccentText), {}, {
|
|
60
59
|
borderColor: highContrastMode ? badgeColorsAccentText.backgroundColor : ''
|
|
61
|
-
})
|
|
62
|
-
accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
|
|
60
|
+
})
|
|
63
61
|
};
|
|
64
62
|
};
|
|
65
63
|
var getBadgeColors = exports.getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
|
|
@@ -7,6 +7,7 @@ exports.euiNotificationBadgeStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../../global_styling");
|
|
9
9
|
var _high_contrast = require("../../../global_styling/functions/high_contrast");
|
|
10
|
+
var _services = require("../../../services");
|
|
10
11
|
var _color_utils = require("../color_utils");
|
|
11
12
|
/*
|
|
12
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -18,9 +19,13 @@ var _color_utils = require("../color_utils");
|
|
|
18
19
|
|
|
19
20
|
var euiNotificationBadgeStyles = exports.euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiThemeContext) {
|
|
20
21
|
var euiTheme = euiThemeContext.euiTheme;
|
|
22
|
+
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
21
23
|
var badgeColors = (0, _color_utils.euiBadgeColors)(euiThemeContext);
|
|
24
|
+
var borderRadius = isRefreshVariant ? (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
|
|
25
|
+
return x / 2;
|
|
26
|
+
}) : euiTheme.border.radius.small;
|
|
22
27
|
return {
|
|
23
|
-
euiNotificationBadge: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " border-radius:",
|
|
28
|
+
euiNotificationBadge: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
24
29
|
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
|
|
25
30
|
}), " cursor:default;font-size:", (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.euiNumberFormat)(euiThemeContext), " text-align:center;", _global_styling.euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
|
|
26
31
|
// Sizes
|