From 06eb898b49dd633f0cb395cf18ac2bbed0a2075c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Bl=C3=A1zquez?= Date: Wed, 27 Nov 2024 10:24:58 +0100 Subject: [PATCH 1/2] Replace `style` prop with `css` in src/ folder --- .../public/components/metric_value.tsx | 2 +- .../public/components/metric_vis.tsx | 2 +- .../public/utils/get_legend_actions.tsx | 2 +- .../components/legend_action_popover.tsx | 2 +- .../public/helpers/annotations.tsx | 6 ++-- .../public/static/components/warnings.tsx | 2 +- .../application/components/help_popover.tsx | 2 +- .../application/containers/editor/editor.tsx | 8 +++--- .../containers/history/history.tsx | 2 +- .../components/options_list_popover.tsx | 2 +- .../options_list_popover_footer.tsx | 2 +- .../search_session_name.tsx | 2 +- .../advanced_params_section.tsx | 2 +- .../components/form_fields/type_field.tsx | 4 +-- .../advanced_parameters_section.tsx | 2 +- .../editors/static_lookup/static_lookup.tsx | 2 +- .../field_format_editor/format_editor.tsx | 2 +- .../components/preview/field_preview.tsx | 2 +- .../preview/field_preview_empty_prompt.tsx | 2 +- .../public/components/add_data_prompt.tsx | 2 +- .../components/header/header.tsx | 2 +- .../field_format_editor.tsx | 2 +- .../index_pattern_table.tsx | 2 +- src/plugins/dev_tools/public/application.tsx | 2 +- .../esql_dataview_transition_modal.tsx | 2 +- .../total_documents/total_documents.tsx | 2 +- .../components/table_header/table_header.tsx | 2 +- .../saved_search_embeddable_base.tsx | 2 +- .../forms/docs/examples/dynamic_fields.mdx | 10 +++---- .../docs/examples/fields_composition.mdx | 4 +-- .../examples/serializers_deserializers.mdx | 2 +- .../__stories__/use_array_complex.tsx | 28 +++++++++---------- .../__stories__/use_array_dynamic_data.tsx | 28 +++++++++---------- .../__stories__/use_array_reorder.tsx | 4 +-- .../__stories__/use_field_field_types.tsx | 6 ++-- .../esql_datagrid/public/create_datagrid.tsx | 2 +- .../public/components/error/error.tsx | 4 +-- .../components/error/show_debugging.tsx | 2 +- .../components/repeat_image_component.tsx | 2 +- .../react_expression_renderer.tsx | 2 +- .../components/guide_button_popover.tsx | 2 +- .../components/recently_accessed.js | 2 +- .../components/tutorial/instruction_set.js | 2 +- .../image_editor/image_editor_flyout.tsx | 2 +- .../components/image_viewer/image_viewer.tsx | 2 +- .../components/vis/input_control_vis.tsx | 6 +--- .../clusters_table/cluster_view.tsx | 2 +- .../public/cluster_configuration_form.tsx | 2 +- .../public/enrollment_token_form.tsx | 2 +- .../public/single_chars_field.tsx | 6 ++-- .../action_cards/action_cards.tsx | 2 +- .../no_data_card/elastic_agent_card.tsx | 2 +- .../presentation_panel_hover_actions.tsx | 2 +- .../use_presentation_panel_header_actions.tsx | 2 +- .../components/labs/environment_switch.tsx | 6 ++-- .../components/labs/labs_beaker_button.tsx | 2 +- .../objects_table/components/flyout.tsx | 2 +- .../action_wizard/action_wizard.tsx | 2 +- .../components/action_wizard/test_data.tsx | 2 +- .../drilldown_table/drilldown_table.tsx | 2 +- .../drilldown_template_table.tsx | 4 +-- .../components/flyout_frame/flyout_frame.tsx | 2 +- .../text_with_icon/text_with_icon.tsx | 2 +- .../trigger_picker/trigger_picker.tsx | 2 +- .../url_drilldown_collect_config.tsx | 2 +- .../components/variable_popover/index.tsx | 2 +- .../components/doc_viewer_table/table.tsx | 2 +- .../filter_editor/filter_editor.tsx | 2 +- .../filter_bar/filter_item/filter_item.tsx | 2 +- .../query_string_input/add_filter_popover.tsx | 8 +++++- .../filter_editor_wrapper.tsx | 2 +- .../query_string_input/no_data_popover.tsx | 2 +- .../query_string_input/query_bar_top_row.tsx | 4 +-- .../query_string_input/query_string_input.tsx | 2 +- .../components/sidebar/sidebar_title.tsx | 2 +- .../public/default_editor_controller.tsx | 2 +- .../application/components/aggs/agg_row.tsx | 2 +- .../components/aggs/percentile_ui.js | 2 +- .../switch_mode_popover.tsx | 7 ++--- ...isualization_missed_saved_object_error.tsx | 2 +- .../embeddable/visualize_embeddable.tsx | 4 +-- 81 files changed, 136 insertions(+), 137 deletions(-) diff --git a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx b/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx index e338d1779a10b..8199a2ec1f842 100644 --- a/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx +++ b/src/plugins/chart_expressions/expression_legacy_metric/public/components/metric_value.tsx @@ -74,7 +74,7 @@ export const MetricVisValue = (props: MetricVisValueProps) => { if (onFilter) { return (