({
- id: recordedAction.id,
key: recordedAction.id,
label: recordedAction.action.type,
checked: recordedAction.id === selectedAction?.id ? 'on' : undefined,
@@ -59,8 +58,8 @@ export const ActionList: FC<{
const onChange: (selectedOptions: EuiSelectableOption[]) => void = (selectedOptions) => {
selectedOptions.forEach((option) => {
- if (option && option.checked && option.id) {
- const selected = recordedActions[option.id];
+ if (option && option.checked && option.key) {
+ const selected = recordedActions[option.key];
if (selected) {
setSelectedAction(selected);
diff --git a/x-pack/plugins/global_search_bar/public/components/__snapshots__/search_bar.test.tsx.snap b/x-pack/plugins/global_search_bar/public/components/__snapshots__/search_bar.test.tsx.snap
index f7e4bfd1c961c..0217f039e08ba 100644
--- a/x-pack/plugins/global_search_bar/public/components/__snapshots__/search_bar.test.tsx.snap
+++ b/x-pack/plugins/global_search_bar/public/components/__snapshots__/search_bar.test.tsx.snap
@@ -66,7 +66,7 @@ exports[`SearchBar supports keyboard shortcuts 1`] = `
aria-haspopup="listbox"
aria-label="Filter options"
autocomplete="off"
- class="euiFieldSearch euiFieldSearch--fullWidth euiFieldSearch--compressed euiSelectableSearch euiSelectableTemplateSitewide__search"
+ class="euiFieldSearch euiFieldSearch--fullWidth euiFieldSearch--compressed euiFieldSearch-isClearable euiSelectableSearch euiSelectableTemplateSitewide__search"
data-test-subj="header-search"
placeholder="Search Elastic"
type="search"
diff --git a/x-pack/plugins/maps/public/components/tooltip_selector/add_tooltip_field_popover.tsx b/x-pack/plugins/maps/public/components/tooltip_selector/add_tooltip_field_popover.tsx
index 7e18088444129..3aed5af5c5c25 100644
--- a/x-pack/plugins/maps/public/components/tooltip_selector/add_tooltip_field_popover.tsx
+++ b/x-pack/plugins/maps/public/components/tooltip_selector/add_tooltip_field_popover.tsx
@@ -27,7 +27,7 @@ export type FieldProps = {
name: string;
};
-type FieldOptions = Array
>;
+type FieldOption = EuiSelectableOption<{ value: string }>;
function sortByLabel(a: EuiSelectableOption, b: EuiSelectableOption): number {
return a.label.localeCompare(b.label);
@@ -68,7 +68,7 @@ interface Props {
interface State {
isPopoverOpen: boolean;
checkedFields: string[];
- options?: FieldOptions;
+ options?: FieldOption[];
prevFields?: FieldProps[];
prevSelectedFields?: FieldProps[];
}
@@ -107,15 +107,13 @@ export class AddTooltipFieldPopover extends Component {
});
};
- _onSelect = (selectableOptions: EuiSelectableOption[]) => {
- // EUI team to remove casting: https://github.com/elastic/eui/issues/3966
- const options = selectableOptions as FieldOptions;
+ _onSelect = (options: FieldOption[]) => {
const checkedFields: string[] = options
.filter((option) => {
return option.checked === 'on';
})
.map((option) => {
- return option.value!;
+ return option.value;
});
this.setState({
@@ -156,7 +154,7 @@ export class AddTooltipFieldPopover extends Component {
return (
-
searchable
searchProps={{ compressed: true }}
options={this.state.options}
diff --git a/x-pack/plugins/security_solution/public/common/components/paginated_table/__snapshots__/index.test.tsx.snap b/x-pack/plugins/security_solution/public/common/components/paginated_table/__snapshots__/index.test.tsx.snap
index 9724e36f045e4..af022fc3d525d 100644
--- a/x-pack/plugins/security_solution/public/common/components/paginated_table/__snapshots__/index.test.tsx.snap
+++ b/x-pack/plugins/security_solution/public/common/components/paginated_table/__snapshots__/index.test.tsx.snap
@@ -122,6 +122,7 @@ exports[`Paginated Table Component rendering it renders the default load more ta
},
"euiCardSpacing": "16px",
"euiCheckBoxSize": "16px",
+ "euiCheckboxBorderRadius": "4px",
"euiCodeBlockAdditionColor": "#54b399",
"euiCodeBlockAttributeColor": "inherit",
"euiCodeBlockBackgroundColor": "#25262e",
@@ -267,6 +268,7 @@ exports[`Paginated Table Component rendering it renders the default load more ta
"euiFormBorderColor": "rgba(255, 255, 255, 0.09999999999999998)",
"euiFormBorderDisabledColor": "rgba(255, 255, 255, 0.09999999999999998)",
"euiFormBorderOpaqueColor": "#ffffff",
+ "euiFormControlBorderRadius": 0,
"euiFormControlBoxShadow": "0 1px 1px -1px rgba(0, 0, 0, 0.19999999999999996) 0 3px 2px -2px rgba(0, 0, 0, 0.19999999999999996)",
"euiFormControlCompressedBorderRadius": "2px",
"euiFormControlCompressedHeight": "32px",
diff --git a/x-pack/plugins/security_solution/public/timelines/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap b/x-pack/plugins/security_solution/public/timelines/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
index 9c0a9b26f5332..4eb320571a75b 100644
--- a/x-pack/plugins/security_solution/public/timelines/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
+++ b/x-pack/plugins/security_solution/public/timelines/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap
@@ -122,6 +122,7 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
},
"euiCardSpacing": "16px",
"euiCheckBoxSize": "16px",
+ "euiCheckboxBorderRadius": "4px",
"euiCodeBlockAdditionColor": "#54b399",
"euiCodeBlockAttributeColor": "inherit",
"euiCodeBlockBackgroundColor": "#25262e",
@@ -267,6 +268,7 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
"euiFormBorderColor": "rgba(255, 255, 255, 0.09999999999999998)",
"euiFormBorderDisabledColor": "rgba(255, 255, 255, 0.09999999999999998)",
"euiFormBorderOpaqueColor": "#ffffff",
+ "euiFormControlBorderRadius": 0,
"euiFormControlBoxShadow": "0 1px 1px -1px rgba(0, 0, 0, 0.19999999999999996) 0 3px 2px -2px rgba(0, 0, 0, 0.19999999999999996)",
"euiFormControlCompressedBorderRadius": "2px",
"euiFormControlCompressedHeight": "32px",
diff --git a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap
index 97f476a56135a..f16ef6b5548b8 100644
--- a/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap
+++ b/x-pack/plugins/uptime/public/components/certificates/__tests__/__snapshots__/cert_search.test.tsx.snap
@@ -16,7 +16,7 @@ exports[`CertificatesSearch renders expected elements for valid props 1`] = `
>