@elastic/eui 109.1.0 → 110.0.0-snapshot.1764684698664
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/es/components/basic_table/basic_table.js +4 -1
- package/es/components/basic_table/in_memory_table.js +86 -233
- package/es/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/es/components/breadcrumbs/breadcrumbs.js +3 -0
- package/es/components/button/button_group/button_group.styles.js +2 -2
- package/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.js +35 -17
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/es/components/filter_group/filter_group.a11y.js +1 -1
- package/es/components/flex/flex_item.js +6 -4
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -0
- package/es/components/header/header_links/header_links.js +3 -0
- package/es/components/header/header_logo/header_logo.js +6 -1
- package/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/es/components/icon/icon.styles.js +4 -4
- package/es/components/page/page.js +11 -3
- package/es/components/page/page.styles.js +1 -2
- package/es/components/page/page_header/page_header.js +11 -3
- package/es/components/page/page_header/page_header_content.js +3 -0
- package/es/components/page_template/outer/page_outer.js +2 -3
- package/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/es/components/page_template/page_template.js +8 -2
- package/es/components/popover/input_popover.js +4 -1
- package/es/components/popover/popover.js +7 -4
- package/es/components/search_bar/search_bar.js +4 -4
- package/es/components/selectable/selectable.js +7 -2
- package/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/es/components/table/_table_cell_content.styles.js +4 -4
- package/es/components/table/table.js +16 -3
- package/es/components/table/table.styles.js +2 -1
- package/es/components/table/table_cells_shared.styles.js +4 -1
- package/es/components/table/table_context.js +12 -0
- package/es/components/table/table_footer_cell.js +6 -2
- package/es/components/table/table_row.js +5 -2
- package/es/components/table/table_row.styles.js +22 -6
- package/es/components/table/table_row_cell.styles.js +3 -3
- package/es/components/tool_tip/tool_tip_anchor.js +8 -0
- package/es/components/tour/tour_step.js +9 -3
- package/es/global_styling/mixins/_button.js +4 -3
- package/es/global_styling/mixins/_typography.js +9 -0
- package/es/services/string/to_initials.js +26 -4
- package/eui.d.ts +75 -29
- package/lib/components/basic_table/basic_table.js +4 -1
- package/lib/components/basic_table/in_memory_table.js +85 -234
- package/lib/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/lib/components/button/button_group/button_group.styles.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/lib/components/flex/flex_item.js +6 -4
- package/lib/components/header/header_logo/header_logo.js +6 -1
- package/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/lib/components/icon/icon.styles.js +4 -4
- package/lib/components/page/page.js +10 -2
- package/lib/components/page/page.styles.js +1 -2
- package/lib/components/page/page_header/page_header.js +10 -2
- package/lib/components/page_template/outer/page_outer.js +1 -2
- package/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/lib/components/page_template/page_template.js +8 -2
- package/lib/components/popover/input_popover.js +4 -1
- package/lib/components/popover/popover.js +7 -4
- package/lib/components/search_bar/search_bar.js +4 -4
- package/lib/components/selectable/selectable.js +7 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/lib/components/table/_table_cell_content.styles.js +4 -4
- package/lib/components/table/table.js +16 -3
- package/lib/components/table/table.styles.js +2 -1
- package/lib/components/table/table_cells_shared.styles.js +4 -1
- package/lib/components/table/table_context.js +18 -0
- package/lib/components/table/table_footer_cell.js +9 -2
- package/lib/components/table/table_row.js +8 -2
- package/lib/components/table/table_row.styles.js +20 -4
- package/lib/components/table/table_row_cell.styles.js +3 -3
- package/lib/components/tool_tip/tool_tip_anchor.js +8 -0
- package/lib/components/tour/tour_step.js +6 -3
- package/lib/global_styling/mixins/_button.js +4 -3
- package/lib/global_styling/mixins/_typography.js +10 -1
- package/lib/services/string/to_initials.js +26 -4
- package/optimize/es/components/basic_table/basic_table.js +4 -1
- package/optimize/es/components/basic_table/in_memory_table.js +73 -46
- package/optimize/es/components/button/button_group/button_group.styles.js +2 -2
- package/optimize/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +35 -17
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/es/components/flex/flex_item.js +6 -4
- package/optimize/es/components/header/header_logo/header_logo.js +6 -1
- package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/es/components/icon/icon.styles.js +4 -4
- package/optimize/es/components/page/page.js +6 -3
- package/optimize/es/components/page/page.styles.js +1 -2
- package/optimize/es/components/page/page_header/page_header.js +6 -3
- package/optimize/es/components/page_template/outer/page_outer.js +2 -3
- package/optimize/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/es/components/page_template/page_template.js +2 -1
- package/optimize/es/components/popover/input_popover.js +4 -1
- package/optimize/es/components/popover/popover.js +4 -4
- package/optimize/es/components/selectable/selectable.js +7 -2
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/optimize/es/components/table/_table_cell_content.styles.js +4 -4
- package/optimize/es/components/table/table.js +10 -3
- package/optimize/es/components/table/table.styles.js +2 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +4 -1
- package/optimize/es/components/table/table_context.js +12 -0
- package/optimize/es/components/table/table_footer_cell.js +6 -2
- package/optimize/es/components/table/table_row.js +5 -2
- package/optimize/es/components/table/table_row.styles.js +22 -6
- package/optimize/es/components/table/table_row_cell.styles.js +3 -3
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +8 -0
- package/optimize/es/components/tour/tour_step.js +4 -2
- package/optimize/es/global_styling/mixins/_button.js +4 -3
- package/optimize/es/global_styling/mixins/_typography.js +9 -0
- package/optimize/es/services/string/to_initials.js +26 -4
- package/optimize/lib/components/basic_table/basic_table.js +4 -1
- package/optimize/lib/components/basic_table/in_memory_table.js +72 -47
- package/optimize/lib/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/lib/components/flex/flex_item.js +6 -4
- package/optimize/lib/components/header/header_logo/header_logo.js +6 -1
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/lib/components/icon/icon.styles.js +4 -4
- package/optimize/lib/components/page/page.js +5 -2
- package/optimize/lib/components/page/page.styles.js +1 -2
- package/optimize/lib/components/page/page_header/page_header.js +5 -2
- package/optimize/lib/components/page_template/outer/page_outer.js +1 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/lib/components/page_template/page_template.js +2 -1
- package/optimize/lib/components/popover/input_popover.js +4 -1
- package/optimize/lib/components/popover/popover.js +4 -4
- package/optimize/lib/components/selectable/selectable.js +7 -2
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/optimize/lib/components/table/_table_cell_content.styles.js +4 -4
- package/optimize/lib/components/table/table.js +10 -3
- package/optimize/lib/components/table/table.styles.js +2 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +4 -1
- package/optimize/lib/components/table/table_context.js +18 -0
- package/optimize/lib/components/table/table_footer_cell.js +9 -2
- package/optimize/lib/components/table/table_row.js +8 -2
- package/optimize/lib/components/table/table_row.styles.js +20 -4
- package/optimize/lib/components/table/table_row_cell.styles.js +3 -3
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +8 -0
- package/optimize/lib/components/tour/tour_step.js +4 -2
- package/optimize/lib/global_styling/mixins/_button.js +4 -3
- package/optimize/lib/global_styling/mixins/_typography.js +10 -1
- package/optimize/lib/services/string/to_initials.js +26 -4
- package/package.json +6 -5
- package/test-env/components/basic_table/basic_table.js +4 -1
- package/test-env/components/basic_table/in_memory_table.js +85 -234
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/test-env/components/button/button_group/button_group.styles.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +1 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/test-env/components/filter_group/filter_group.a11y.js +1 -1
- package/test-env/components/flex/flex_item.js +6 -4
- package/test-env/components/header/header_logo/header_logo.js +6 -1
- package/test-env/components/header/header_logo/header_logo.styles.js +1 -1
- package/test-env/components/icon/icon.styles.js +4 -4
- package/test-env/components/page/page.js +10 -2
- package/test-env/components/page/page.styles.js +1 -2
- package/test-env/components/page/page_header/page_header.js +10 -2
- package/test-env/components/page_template/outer/page_outer.js +1 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +29 -35
- package/test-env/components/page_template/page_template.js +8 -2
- package/test-env/components/popover/input_popover.js +4 -1
- package/test-env/components/popover/popover.js +7 -4
- package/test-env/components/search_bar/search_bar.js +4 -4
- package/test-env/components/selectable/selectable.js +7 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/test-env/components/table/_table_cell_content.styles.js +4 -4
- package/test-env/components/table/table.js +16 -3
- package/test-env/components/table/table.styles.js +2 -1
- package/test-env/components/table/table_cells_shared.styles.js +4 -1
- package/test-env/components/table/table_context.js +18 -0
- package/test-env/components/table/table_footer_cell.js +9 -2
- package/test-env/components/table/table_row.js +8 -2
- package/test-env/components/table/table_row.styles.js +20 -4
- package/test-env/components/table/table_row_cell.styles.js +3 -3
- package/test-env/components/tool_tip/tool_tip_anchor.js +8 -0
- package/test-env/components/tour/tour_step.js +6 -3
- package/test-env/global_styling/mixins/_button.js +4 -3
- package/test-env/global_styling/mixins/_typography.js +10 -1
- package/test-env/services/string/to_initials.js +26 -4
package/eui.d.ts
CHANGED
|
@@ -1136,6 +1136,10 @@ declare module '@elastic/eui/src/global_styling/functions' {
|
|
|
1136
1136
|
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1137
1137
|
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1138
1138
|
|
|
1139
|
+
}
|
|
1140
|
+
declare module '@elastic/eui/src/global_styling/utility/selectors' {
|
|
1141
|
+
export const euiDisabledSelector = ":disabled, [aria-disabled=\"true\"]";
|
|
1142
|
+
|
|
1139
1143
|
}
|
|
1140
1144
|
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
1141
1145
|
import { type SerializedStyles } from '@emotion/react';
|
|
@@ -1387,6 +1391,10 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1387
1391
|
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1388
1392
|
*/
|
|
1389
1393
|
export const euiTextTruncate: (maxWidth?: CSSProperties["maxWidth"]) => string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Emotion CSS wrapper around `euiTextTruncate` style.
|
|
1396
|
+
*/
|
|
1397
|
+
export const euiTextTruncateCSS: (maxWidth?: CSSProperties["maxWidth"]) => import("@emotion/react").SerializedStyles;
|
|
1390
1398
|
/**
|
|
1391
1399
|
* Fixed-width numbers for tabular data
|
|
1392
1400
|
*/
|
|
@@ -1514,10 +1522,6 @@ declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
|
1514
1522
|
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1515
1523
|
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
1516
1524
|
|
|
1517
|
-
}
|
|
1518
|
-
declare module '@elastic/eui/src/global_styling/utility/selectors' {
|
|
1519
|
-
export const euiDisabledSelector = ":disabled, [aria-disabled=\"true\"]";
|
|
1520
|
-
|
|
1521
1525
|
}
|
|
1522
1526
|
declare module '@elastic/eui/src/global_styling' {
|
|
1523
1527
|
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
@@ -2049,6 +2053,12 @@ declare module '@elastic/eui/src/components/table/mobile/responsive_context' {
|
|
|
2049
2053
|
export const EuiTableIsResponsiveContext: import("react").Context<boolean>;
|
|
2050
2054
|
export const useEuiTableIsResponsive: () => boolean;
|
|
2051
2055
|
|
|
2056
|
+
}
|
|
2057
|
+
declare module '@elastic/eui/src/components/table/table_context' {
|
|
2058
|
+
export const EuiTableVariantContext: import("react").Context<{
|
|
2059
|
+
hasBackground: boolean;
|
|
2060
|
+
}>;
|
|
2061
|
+
|
|
2052
2062
|
}
|
|
2053
2063
|
declare module '@elastic/eui/src/components/table/table.styles' {
|
|
2054
2064
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -2073,6 +2083,7 @@ declare module '@elastic/eui/src/components/table/table.styles' {
|
|
|
2073
2083
|
fixed: import("@emotion/react").SerializedStyles;
|
|
2074
2084
|
auto: import("@emotion/react").SerializedStyles;
|
|
2075
2085
|
};
|
|
2086
|
+
hasBackground: import("@emotion/react").SerializedStyles;
|
|
2076
2087
|
/**
|
|
2077
2088
|
* 1. The padding on the `.euiTableCellContent` div allows the ellipsis to show if the
|
|
2078
2089
|
* content is truncated. If the padding was on the cell, the ellipsis would be cropped.
|
|
@@ -2109,8 +2120,14 @@ declare module '@elastic/eui/src/components/table/table' {
|
|
|
2109
2120
|
responsiveBreakpoint?: EuiBreakpointSize | boolean;
|
|
2110
2121
|
/**
|
|
2111
2122
|
* Sets the table-layout CSS property
|
|
2123
|
+
* @default 'fixed'
|
|
2112
2124
|
*/
|
|
2113
2125
|
tableLayout?: 'fixed' | 'auto';
|
|
2126
|
+
/**
|
|
2127
|
+
* Toggle the table's background
|
|
2128
|
+
* @default true
|
|
2129
|
+
*/
|
|
2130
|
+
hasBackground?: boolean;
|
|
2114
2131
|
}
|
|
2115
2132
|
export const EuiTable: FunctionComponent<EuiTableProps>;
|
|
2116
2133
|
|
|
@@ -2496,7 +2513,10 @@ declare module '@elastic/eui/src/components/table/table_cells_shared.styles' {
|
|
|
2496
2513
|
euiTableHeaderCell: import("@emotion/react").SerializedStyles;
|
|
2497
2514
|
euiTableHeaderCell__content: import("@emotion/react").SerializedStyles;
|
|
2498
2515
|
euiTableHeaderCell__button: import("@emotion/react").SerializedStyles;
|
|
2499
|
-
euiTableFooterCell:
|
|
2516
|
+
euiTableFooterCell: {
|
|
2517
|
+
euiTableFooterCell: import("@emotion/react").SerializedStyles;
|
|
2518
|
+
hasBackground: import("@emotion/react").SerializedStyles;
|
|
2519
|
+
};
|
|
2500
2520
|
};
|
|
2501
2521
|
export const euiTableCellCheckboxStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2502
2522
|
euiTableHeaderCellCheckbox: import("@emotion/react").SerializedStyles;
|
|
@@ -5703,13 +5723,18 @@ declare module '@elastic/eui/src/components/table/table_row.styles' {
|
|
|
5703
5723
|
euiTableRow: import("@emotion/react").SerializedStyles;
|
|
5704
5724
|
desktop: {
|
|
5705
5725
|
desktop: import("@emotion/react").SerializedStyles;
|
|
5706
|
-
expanded:
|
|
5726
|
+
expanded: {
|
|
5727
|
+
expanded: import("@emotion/react").SerializedStyles;
|
|
5728
|
+
hasBackground: string;
|
|
5729
|
+
};
|
|
5707
5730
|
clickable: import("@emotion/react").SerializedStyles;
|
|
5708
5731
|
selected: import("@emotion/react").SerializedStyles;
|
|
5709
5732
|
checkboxOffset: import("@emotion/react").SerializedStyles;
|
|
5710
5733
|
};
|
|
5711
5734
|
mobile: {
|
|
5712
5735
|
mobile: import("@emotion/react").SerializedStyles;
|
|
5736
|
+
hasBorder: string;
|
|
5737
|
+
hasBackground: import("@emotion/react").SerializedStyles;
|
|
5713
5738
|
selected: import("@emotion/react").SerializedStyles;
|
|
5714
5739
|
/**
|
|
5715
5740
|
* Left column offset (no border)
|
|
@@ -7369,6 +7394,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
7369
7394
|
export interface EuiPopoverProps extends PropsWithChildren, CommonProps {
|
|
7370
7395
|
/**
|
|
7371
7396
|
* Alignment of the popover and arrow relative to the button
|
|
7397
|
+
* @default downLeft
|
|
7372
7398
|
*/
|
|
7373
7399
|
anchorPosition?: PopoverAnchorPosition;
|
|
7374
7400
|
/**
|
|
@@ -7398,6 +7424,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
7398
7424
|
focusTrapProps?: Partial<EuiFocusTrapProps>;
|
|
7399
7425
|
/**
|
|
7400
7426
|
* Show arrow indicating to originating button
|
|
7427
|
+
* @default false
|
|
7401
7428
|
*/
|
|
7402
7429
|
hasArrow?: boolean;
|
|
7403
7430
|
/**
|
|
@@ -7475,6 +7502,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
7475
7502
|
zIndex?: number;
|
|
7476
7503
|
/**
|
|
7477
7504
|
* Distance away from the anchor that the popover will render
|
|
7505
|
+
* @default 4 (0 when `hasArrow=true`)
|
|
7478
7506
|
*/
|
|
7479
7507
|
offset?: number;
|
|
7480
7508
|
/**
|
|
@@ -8888,6 +8916,7 @@ declare module '@elastic/eui/src/services/sort' {
|
|
|
8888
8916
|
|
|
8889
8917
|
}
|
|
8890
8918
|
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
8919
|
+
export const MAX_INITIALS = 2;
|
|
8891
8920
|
/**
|
|
8892
8921
|
* This function calculates the initials/acronym for a given name.
|
|
8893
8922
|
* It defaults to only 2 characters and will take the first character (of each word).
|
|
@@ -8899,10 +8928,8 @@ declare module '@elastic/eui/src/services/string/to_initials' {
|
|
|
8899
8928
|
* @param {string} name The full name of the item to turn into initials
|
|
8900
8929
|
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
8901
8930
|
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
8902
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
8903
8931
|
*/
|
|
8904
|
-
export
|
|
8905
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
8932
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string;
|
|
8906
8933
|
|
|
8907
8934
|
}
|
|
8908
8935
|
declare module '@elastic/eui/src/services/string/to_case' {
|
|
@@ -18393,7 +18420,12 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18393
18420
|
* `customRender` render function.
|
|
18394
18421
|
*/
|
|
18395
18422
|
type TimeZoneCustomDisplayRenderOptions = {
|
|
18423
|
+
/** Name with UTC offset and an icon */
|
|
18396
18424
|
nameDisplay?: ReactNode;
|
|
18425
|
+
/** UTC offset in hours, in plain text e.g. UTC+1 */
|
|
18426
|
+
utcOffset?: string;
|
|
18427
|
+
/** Time zone name e.g. Europe/Brussels */
|
|
18428
|
+
timeZoneName?: string;
|
|
18397
18429
|
};
|
|
18398
18430
|
export type EuiTimeZoneDisplayProps = ComponentPropsWithoutRef<'div'> & {
|
|
18399
18431
|
/**
|
|
@@ -18556,7 +18588,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18556
18588
|
isQuickSelectOnly: import("@emotion/react").SerializedStyles;
|
|
18557
18589
|
euiSuperDatePicker__range: import("@emotion/react").SerializedStyles;
|
|
18558
18590
|
euiSuperDatePicker__rangeInput: import("@emotion/react").SerializedStyles;
|
|
18559
|
-
|
|
18591
|
+
euiSuperDatePicker__prettyDurationTooltip: import("@emotion/react").SerializedStyles;
|
|
18560
18592
|
states: {
|
|
18561
18593
|
euiSuperDatePicker__formControlLayout: import("@emotion/react").SerializedStyles;
|
|
18562
18594
|
default: import("@emotion/react").SerializedStyles;
|
|
@@ -18829,6 +18861,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
18829
18861
|
export { EuiQuickSelectPopover } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
18830
18862
|
export type { EuiQuickSelectProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
18831
18863
|
export { EuiQuickSelect } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
18864
|
+
export { EuiQuickSelectPanel } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_panel';
|
|
18832
18865
|
export type { EuiRecentlyUsedProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
18833
18866
|
export { EuiRecentlyUsed } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
18834
18867
|
|
|
@@ -21898,6 +21931,11 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
21898
21931
|
* Flip to `column` when not including a sidebar.
|
|
21899
21932
|
*/
|
|
21900
21933
|
direction?: 'row' | 'column';
|
|
21934
|
+
/**
|
|
21935
|
+
* Defines the page background color.
|
|
21936
|
+
* @default 'transparent'
|
|
21937
|
+
*/
|
|
21938
|
+
color?: 'plain' | 'transparent';
|
|
21901
21939
|
}
|
|
21902
21940
|
export const EuiPage: FunctionComponent<EuiPageProps>;
|
|
21903
21941
|
|
|
@@ -22105,6 +22143,11 @@ declare module '@elastic/eui/src/components/page/page_header/page_header' {
|
|
|
22105
22143
|
* Adjust the overall padding.
|
|
22106
22144
|
*/
|
|
22107
22145
|
paddingSize?: EuiPaddingSize;
|
|
22146
|
+
/**
|
|
22147
|
+
* Define the header background color
|
|
22148
|
+
* @default 'transparent'
|
|
22149
|
+
*/
|
|
22150
|
+
color?: 'plain' | 'transparent';
|
|
22108
22151
|
}
|
|
22109
22152
|
export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
|
|
22110
22153
|
|
|
@@ -22251,8 +22294,7 @@ declare module '@elastic/eui/src/components/page' {
|
|
|
22251
22294
|
|
|
22252
22295
|
}
|
|
22253
22296
|
declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
|
|
22254
|
-
|
|
22255
|
-
export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
22297
|
+
export const euiPageOuterStyles: {
|
|
22256
22298
|
euiPageOuter: import("@emotion/react").SerializedStyles;
|
|
22257
22299
|
grow: import("@emotion/react").SerializedStyles;
|
|
22258
22300
|
column: import("@emotion/react").SerializedStyles;
|
|
@@ -22314,7 +22356,7 @@ declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
|
|
|
22314
22356
|
*/
|
|
22315
22357
|
component?: T;
|
|
22316
22358
|
/**
|
|
22317
|
-
* Adds a
|
|
22359
|
+
* Adds a background and shadow to define the area.
|
|
22318
22360
|
*/
|
|
22319
22361
|
panelled?: boolean;
|
|
22320
22362
|
/**
|
|
@@ -24625,21 +24667,21 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
24625
24667
|
export interface EuiSearchBarProps extends CommonProps {
|
|
24626
24668
|
onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
|
|
24627
24669
|
/**
|
|
24628
|
-
The initial query the bar will hold when first mounted
|
|
24670
|
+
* The initial query the bar will hold when first mounted
|
|
24629
24671
|
*/
|
|
24630
24672
|
defaultQuery?: QueryType;
|
|
24631
24673
|
/**
|
|
24632
|
-
If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
24674
|
+
* If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
24633
24675
|
*/
|
|
24634
24676
|
query?: QueryType;
|
|
24635
24677
|
/**
|
|
24636
|
-
Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
24678
|
+
* Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
24637
24679
|
*/
|
|
24638
24680
|
box?: EuiFieldSearchProps & {
|
|
24639
24681
|
schema?: SchemaType | boolean;
|
|
24640
24682
|
};
|
|
24641
24683
|
/**
|
|
24642
|
-
An array of search filters. See {@link SearchFilterConfig}.
|
|
24684
|
+
* An array of search filters. See {@link SearchFilterConfig}.
|
|
24643
24685
|
*/
|
|
24644
24686
|
filters?: SearchFilterConfig[];
|
|
24645
24687
|
/**
|
|
@@ -25386,7 +25428,8 @@ declare module '@elastic/eui/src/components/tour/tour_step' {
|
|
|
25386
25428
|
*/
|
|
25387
25429
|
title: ReactNode;
|
|
25388
25430
|
/**
|
|
25389
|
-
* Extra visual indication of step location
|
|
25431
|
+
* Extra visual indication of step location.
|
|
25432
|
+
* It does not apply when `hasArrow=false`
|
|
25390
25433
|
*/
|
|
25391
25434
|
decoration?: 'none' | 'beacon';
|
|
25392
25435
|
/**
|
|
@@ -25706,12 +25749,15 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25706
25749
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
25707
25750
|
import { EuiTablePaginationProps } from '@elastic/eui/src/components/table/table_pagination';
|
|
25708
25751
|
import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
|
|
25709
|
-
interface
|
|
25752
|
+
export interface EuiInMemoryTableSearchBarOnChangeArgs {
|
|
25710
25753
|
query: Query | null;
|
|
25711
25754
|
queryText: string;
|
|
25712
25755
|
error: Error | null;
|
|
25713
25756
|
}
|
|
25714
|
-
export
|
|
25757
|
+
export interface EuiInMemoryTableSearchBarProps extends Omit<EuiSearchBarProps, 'onChange'> {
|
|
25758
|
+
onChange?: (args: EuiInMemoryTableSearchBarOnChangeArgs) => void | boolean;
|
|
25759
|
+
}
|
|
25760
|
+
export type Search = boolean | EuiInMemoryTableSearchBarProps;
|
|
25715
25761
|
interface PaginationOptions extends EuiTablePaginationProps {
|
|
25716
25762
|
pageSizeOptions?: number[];
|
|
25717
25763
|
initialPageIndex?: number;
|
|
@@ -25725,17 +25771,16 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25725
25771
|
}
|
|
25726
25772
|
type Sorting = boolean | SortingOptions;
|
|
25727
25773
|
type InMemoryTableProps<T extends object> = Omit<EuiBasicTableProps<T>, 'pagination' | 'sorting' | 'noItemsMessage' | 'onChange'> & {
|
|
25728
|
-
/**
|
|
25729
|
-
* Message to display if table is empty
|
|
25730
|
-
* @deprecated Use `noItemsMessage` instead.
|
|
25731
|
-
*/
|
|
25732
|
-
message?: ReactNode;
|
|
25733
25774
|
/**
|
|
25734
25775
|
* Message to display if table is empty
|
|
25735
25776
|
*/
|
|
25736
25777
|
noItemsMessage?: ReactNode;
|
|
25737
25778
|
/**
|
|
25738
|
-
* Configures
|
|
25779
|
+
* Configures the search bar. Can be `true` for defaults,
|
|
25780
|
+
* or an {@link EuiSearchBarProps} object.
|
|
25781
|
+
*
|
|
25782
|
+
* When `searchFormat="text"`, `query` and `defaultQuery` must be strings
|
|
25783
|
+
* ({@link Query} objects are ignored).
|
|
25739
25784
|
*/
|
|
25740
25785
|
search?: Search;
|
|
25741
25786
|
/**
|
|
@@ -25743,6 +25788,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25743
25788
|
*
|
|
25744
25789
|
* However, certain special characters (such as quotes, parentheses, and colons)
|
|
25745
25790
|
* are reserved for EQL syntax and will error if used.
|
|
25791
|
+
*
|
|
25746
25792
|
* If your table does not require filter search and instead requires searching for certain
|
|
25747
25793
|
* symbols, use a plain `text` search format instead (note that filters will be ignored
|
|
25748
25794
|
* in this format).
|
|
@@ -25802,7 +25848,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25802
25848
|
search?: Search;
|
|
25803
25849
|
};
|
|
25804
25850
|
search?: Search;
|
|
25805
|
-
query: Query | null;
|
|
25851
|
+
query: Query | string | null;
|
|
25806
25852
|
pageIndex: number;
|
|
25807
25853
|
pageSize?: number;
|
|
25808
25854
|
pageSizeOptions?: number[];
|
|
@@ -25820,7 +25866,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25820
25866
|
static getDerivedStateFromProps<T extends object>(nextProps: EuiInMemoryTableProps<T>, prevState: State<T>): State<T> | null;
|
|
25821
25867
|
constructor(props: EuiInMemoryTableProps<T>, context: EuiComponentDefaults);
|
|
25822
25868
|
onTableChange: ({ page, sort }: Criteria<T>) => void;
|
|
25823
|
-
onQueryChange: ({ query, queryText, error }:
|
|
25869
|
+
onQueryChange: ({ query, queryText, error, }: EuiInMemoryTableSearchBarOnChangeArgs) => void;
|
|
25824
25870
|
onPlainTextSearch: (searchValue: string) => void;
|
|
25825
25871
|
renderSearchBar(): React.JSX.Element | undefined;
|
|
25826
25872
|
resolveSearchSchema(): SchemaType;
|
|
@@ -25837,7 +25883,7 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
25837
25883
|
declare module '@elastic/eui/src/components/basic_table' {
|
|
25838
25884
|
export type { EuiBasicTableProps, EuiBasicTableColumn, Criteria, CriteriaWithPagination, } from '@elastic/eui/src/components/basic_table/basic_table';
|
|
25839
25885
|
export { EuiBasicTable } from '@elastic/eui/src/components/basic_table/basic_table';
|
|
25840
|
-
export type { EuiInMemoryTableProps, Search } from '@elastic/eui/src/components/basic_table/in_memory_table';
|
|
25886
|
+
export type { EuiInMemoryTableProps, EuiInMemoryTableSearchBarOnChangeArgs, EuiInMemoryTableSearchBarProps, Search, } from '@elastic/eui/src/components/basic_table/in_memory_table';
|
|
25841
25887
|
export { EuiInMemoryTable } from '@elastic/eui/src/components/basic_table/in_memory_table';
|
|
25842
25888
|
export type { EuiTableDataType, EuiTableFooterProps, EuiTableFieldDataColumnType, EuiTableComputedColumnType, EuiTableActionsColumnType, EuiTableSelectionType, EuiTableSortingType, } from '@elastic/eui/src/components/basic_table/table_types';
|
|
25843
25889
|
export type { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
|
|
@@ -26,7 +26,7 @@ var _delay_render = require("../delay_render");
|
|
|
26
26
|
var _accessibility2 = require("../../services/accessibility");
|
|
27
27
|
var _basic_table = require("./basic_table.styles");
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
|
-
var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout"],
|
|
29
|
+
var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout", "hasBackground"],
|
|
30
30
|
_excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
|
|
31
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
32
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -376,6 +376,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
376
376
|
tableCaption = _this$props2.tableCaption,
|
|
377
377
|
rowHeader = _this$props2.rowHeader,
|
|
378
378
|
tableLayout = _this$props2.tableLayout,
|
|
379
|
+
hasBackground = _this$props2.hasBackground,
|
|
379
380
|
rest = _objectWithoutProperties(_this$props2, _excluded);
|
|
380
381
|
var classes = (0, _classnames.default)('euiBasicTable', {
|
|
381
382
|
'euiBasicTable-loading': loading
|
|
@@ -393,6 +394,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
393
394
|
compressed = _this$props3.compressed,
|
|
394
395
|
responsiveBreakpoint = _this$props3.responsiveBreakpoint,
|
|
395
396
|
tableLayout = _this$props3.tableLayout,
|
|
397
|
+
hasBackground = _this$props3.hasBackground,
|
|
396
398
|
loading = _this$props3.loading;
|
|
397
399
|
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_table.EuiTableHeaderMobile, {
|
|
398
400
|
responsiveBreakpoint: responsiveBreakpoint
|
|
@@ -401,6 +403,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
401
403
|
tableLayout: tableLayout,
|
|
402
404
|
responsiveBreakpoint: responsiveBreakpoint,
|
|
403
405
|
compressed: compressed,
|
|
406
|
+
hasBackground: hasBackground,
|
|
404
407
|
css: loading && _basic_table.safariLoadingWorkaround
|
|
405
408
|
}, this.renderTableCaption(), this.renderTableHead(), this.renderTableBody(), this.renderTableFooter())));
|
|
406
409
|
}
|