@elastic/eui 102.3.0 → 103.0.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/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +7 -7
- package/es/components/basic_table/in_memory_table.js +7 -7
- package/es/components/button/button.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.a11y.js +3 -3
- package/es/components/card/card.js +2 -2
- package/es/components/card/card_select/card_select.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +3 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/filter_group/filter_button.js +10 -4
- package/es/components/filter_group/filter_button.styles.js +1 -1
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/header/header_section/header_section_item_button.styles.js +12 -3
- package/es/components/icon/assets/{iInCircle.js → info.js} +2 -2
- package/es/components/icon/assets/{question_in_circle.js → question.js} +9 -3
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/es/components/icon/icon_map.js +6 -2
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item.styles.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +1 -1
- package/es/components/markdown_editor/plugins/remark/remark_prismjs.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.js +3 -2
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/table/table_header_cell.js +4 -4
- package/es/components/text/text.styles.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +2 -2
- package/es/services/color/eui_palettes.js +57 -15
- package/es/services/color/eui_palettes_hooks.js +10 -1
- package/es/services/color/index.js +1 -1
- package/es/services/index.js +1 -1
- package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +2 -1
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +9 -2
- package/eui.d.ts +45 -19
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +7 -7
- package/lib/components/basic_table/in_memory_table.js +7 -7
- package/lib/components/button/button.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.a11y.js +3 -3
- package/lib/components/card/card.js +2 -2
- package/lib/components/card/card_select/card_select.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +3 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/filter_group/filter_button.js +10 -4
- package/lib/components/filter_group/filter_button.styles.js +1 -1
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.styles.js +12 -3
- package/lib/components/icon/assets/{iInCircle.js → info.js} +2 -2
- package/lib/components/icon/assets/{question_in_circle.js → question.js} +9 -3
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/lib/components/icon/icon_map.js +6 -2
- package/lib/components/icon/svgs/question.svg +5 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item.styles.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +1 -1
- package/lib/components/markdown_editor/plugins/remark/remark_prismjs.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/resizable_container/resizable_collapse_button.js +2 -1
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/table/table_header_cell.js +4 -4
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +2 -2
- package/lib/services/color/eui_palettes.js +58 -16
- package/lib/services/color/eui_palettes_hooks.js +10 -1
- package/lib/services/color/index.js +21 -0
- package/lib/services/index.js +21 -0
- package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +2 -1
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +8 -2
- package/optimize/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/es/components/card/card.a11y.js +3 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +3 -1
- package/optimize/es/components/filter_group/filter_button.js +1 -1
- package/optimize/es/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item_button.styles.js +12 -3
- package/optimize/es/components/icon/assets/{iInCircle.js → info.js} +2 -2
- package/optimize/es/components/icon/assets/{question_in_circle.js → question.js} +9 -3
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +6 -2
- package/optimize/es/components/list_group/list_group_item.styles.js +2 -2
- package/optimize/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +1 -1
- package/optimize/es/components/markdown_editor/plugins/remark/remark_prismjs.js +1 -1
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +3 -2
- package/optimize/es/components/table/table_header_cell.js +2 -2
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/tool_tip/icon_tip.js +1 -1
- package/optimize/es/services/color/eui_palettes.js +57 -15
- package/optimize/es/services/color/eui_palettes_hooks.js +10 -1
- package/optimize/es/services/color/index.js +1 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +2 -1
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +9 -2
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/lib/components/card/card.a11y.js +3 -3
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +3 -1
- package/optimize/lib/components/filter_group/filter_button.js +1 -1
- package/optimize/lib/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +12 -3
- package/optimize/lib/components/icon/assets/{iInCircle.js → info.js} +2 -2
- package/optimize/lib/components/icon/assets/{question_in_circle.js → question.js} +9 -3
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +6 -2
- package/optimize/lib/components/icon/svgs/question.svg +5 -0
- package/optimize/lib/components/list_group/list_group_item.styles.js +2 -2
- package/optimize/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +1 -1
- package/optimize/lib/components/markdown_editor/plugins/remark/remark_prismjs.js +1 -1
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +2 -1
- package/optimize/lib/components/table/table_header_cell.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/tool_tip/icon_tip.js +1 -1
- package/optimize/lib/services/color/eui_palettes.js +58 -16
- package/optimize/lib/services/color/eui_palettes_hooks.js +10 -1
- package/optimize/lib/services/color/index.js +21 -0
- package/optimize/lib/services/index.js +21 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +2 -1
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +8 -2
- package/package/eui.d.ts +29802 -0
- package/package.json +4 -4
- package/temp/package/eui.d.ts +29802 -0
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +7 -7
- package/test-env/components/basic_table/in_memory_table.js +7 -7
- package/test-env/components/button/button.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.a11y.js +3 -3
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/card/card_select/card_select.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +3 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/filter_group/filter_button.js +10 -4
- package/test-env/components/filter_group/filter_button.styles.js +1 -1
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.styles.js +12 -3
- package/test-env/components/icon/assets/{iInCircle.js → info.js} +2 -2
- package/test-env/components/icon/assets/{question_in_circle.js → question.js} +9 -3
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +6 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item.styles.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/markdown_editor/plugins/markdown_tooltip/renderer.js +1 -1
- package/test-env/components/markdown_editor/plugins/remark/remark_prismjs.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/resizable_container/resizable_collapse_button.js +2 -1
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/table/table_header_cell.js +4 -4
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +2 -2
- package/test-env/services/color/eui_palettes.js +58 -16
- package/test-env/services/color/eui_palettes_hooks.js +10 -1
- package/test-env/services/color/index.js +21 -0
- package/test-env/services/index.js +21 -0
- package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +2 -1
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +8 -2
- package/lib/components/icon/svgs/question_in_circle.svg +0 -3
- package/optimize/lib/components/icon/svgs/question_in_circle.svg +0 -3
- /package/lib/components/icon/svgs/{iInCircle.svg → info.svg} +0 -0
- /package/optimize/lib/components/icon/svgs/{iInCircle.svg → info.svg} +0 -0
|
@@ -11,6 +11,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { css } from '@emotion/react';
|
|
14
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
14
15
|
import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
|
|
15
16
|
import { euiButtonColor } from '../../../global_styling/mixins/_button';
|
|
16
17
|
|
|
@@ -19,6 +20,7 @@ import { euiButtonColor } from '../../../global_styling/mixins/_button';
|
|
|
19
20
|
*/
|
|
20
21
|
export var euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariables(euiThemeContext) {
|
|
21
22
|
var euiTheme = euiThemeContext.euiTheme;
|
|
23
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
22
24
|
return _objectSpread(_objectSpread({
|
|
23
25
|
height: euiTheme.size.xl,
|
|
24
26
|
padding: euiTheme.size.s
|
|
@@ -27,7 +29,7 @@ export var euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariab
|
|
|
27
29
|
// Matches EuiButton
|
|
28
30
|
borderRadius: euiTheme.border.radius.small,
|
|
29
31
|
backgroundHoverColor: euiTheme.colors.lightestShade,
|
|
30
|
-
backgroundSelectedColor: euiButtonColor(euiThemeContext, 'text').backgroundColor,
|
|
32
|
+
backgroundSelectedColor: isRefreshVariant ? euiTheme.colors.backgroundBaseInteractiveSelect : euiButtonColor(euiThemeContext, 'text').backgroundColor,
|
|
31
33
|
color: euiTheme.colors.textParagraph,
|
|
32
34
|
rightIconColor: euiTheme.colors.textDisabled
|
|
33
35
|
});
|
|
@@ -52,7 +52,7 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
52
52
|
prefix: 'filter-button'
|
|
53
53
|
});
|
|
54
54
|
var numFiltersDefined = numFilters != null; // != instead of !== to allow for null and undefined
|
|
55
|
-
var numActiveFiltersDefined = numActiveFilters
|
|
55
|
+
var numActiveFiltersDefined = !!numActiveFilters;
|
|
56
56
|
var euiThemeContext = useEuiTheme();
|
|
57
57
|
var colorMode = euiThemeContext.colorMode;
|
|
58
58
|
var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
|
|
@@ -64,7 +64,7 @@ export var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContex
|
|
|
64
64
|
hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
65
65
|
return x * 6;
|
|
66
66
|
})), ";;label:hasNotification;"),
|
|
67
|
-
hasActiveFilters: /*#__PURE__*/css("font-weight:", isRefreshVariant ? euiTheme.font.weight.
|
|
67
|
+
hasActiveFilters: /*#__PURE__*/css("font-weight:", isRefreshVariant ? euiTheme.font.weight.medium : euiTheme.font.weight.bold, ";;label:hasActiveFilters;")
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
export var euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(euiThemeContext) {
|
|
@@ -8,6 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
11
12
|
import { logicalCSS, logicalSizeCSS, mathWithUnits, euiMaxBreakpoint } from '../../../global_styling';
|
|
12
13
|
import { euiHeaderVariables } from '../header.styles';
|
|
13
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -30,15 +31,23 @@ export var euiHeaderSectionItemButtonStyles = function euiHeaderSectionItemButto
|
|
|
30
31
|
var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
|
|
31
32
|
childHeight = _euiHeaderVariables.childHeight;
|
|
32
33
|
var euiTheme = euiThemeContext.euiTheme;
|
|
34
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
35
|
+
var dotSize = euiTheme.size.base;
|
|
36
|
+
var dotOffset = isRefreshVariant ? mathWithUnits(dotSize, function (x) {
|
|
37
|
+
return x * -0.5;
|
|
38
|
+
}) : 0;
|
|
39
|
+
var badgeOffset = isRefreshVariant ? mathWithUnits(euiTheme.size.s, function (x) {
|
|
40
|
+
return x * -0.5;
|
|
41
|
+
}) : '9%';
|
|
33
42
|
return {
|
|
34
|
-
euiHeaderSectionItemButton: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " ", logicalCSS('min-width', childHeight), " text-align:center;font-size:0;", euiMaxBreakpoint(euiThemeContext, 's'), "{", logicalCSS('min-width', mathWithUnits(childHeight, function (x) {
|
|
43
|
+
euiHeaderSectionItemButton: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " ", logicalCSS('min-width', childHeight), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " text-align:center;font-size:0;", euiMaxBreakpoint(euiThemeContext, 's'), "{", logicalCSS('min-width', mathWithUnits(childHeight, function (x) {
|
|
35
44
|
return x * 0.75;
|
|
36
45
|
})), ";};label:euiHeaderSectionItemButton;"),
|
|
37
46
|
euiHeaderSectionItemButton__content: _ref2,
|
|
38
47
|
notification: {
|
|
39
48
|
euiHeaderSectionItemButton__notification: _ref,
|
|
40
|
-
dot: /*#__PURE__*/css(logicalCSS('top', 0), " ", logicalCSS('right',
|
|
41
|
-
badge: /*#__PURE__*/css(logicalCSS('top', '9%'), " ", logicalCSS('right',
|
|
49
|
+
dot: /*#__PURE__*/css(logicalCSS('top', 0), " ", logicalCSS('right', dotOffset), " stroke:", euiTheme.colors.emptyShade, ";", euiMaxBreakpoint(euiThemeContext, 's'), "{", logicalSizeCSS(dotSize), " ", logicalCSS('top', '9%'), ";};label:dot;"),
|
|
50
|
+
badge: /*#__PURE__*/css(logicalCSS('top', '9%'), " ", logicalCSS('right', badgeOffset), " box-shadow:0 0 0 ", euiTheme.border.width.thin, " ", euiTheme.colors.emptyShade, ";;label:badge;")
|
|
42
51
|
}
|
|
43
52
|
};
|
|
44
53
|
};
|
|
@@ -13,7 +13,7 @@ var _excluded = ["title", "titleId"];
|
|
|
13
13
|
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
-
var
|
|
16
|
+
var EuiIconInfo = function EuiIconInfo(_ref) {
|
|
17
17
|
var title = _ref.title,
|
|
18
18
|
titleId = _ref.titleId,
|
|
19
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -37,4 +37,4 @@ var EuiIconIInCircle = function EuiIconIInCircle(_ref) {
|
|
|
37
37
|
clipRule: "evenodd"
|
|
38
38
|
}));
|
|
39
39
|
};
|
|
40
|
-
export var icon =
|
|
40
|
+
export var icon = EuiIconInfo;
|
|
@@ -13,7 +13,7 @@ var _excluded = ["title", "titleId"];
|
|
|
13
13
|
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
-
var
|
|
16
|
+
var EuiIconQuestion = function EuiIconQuestion(_ref) {
|
|
17
17
|
var title = _ref.title,
|
|
18
18
|
titleId = _ref.titleId,
|
|
19
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -26,7 +26,13 @@ var EuiIconQuestionInCircle = function EuiIconQuestionInCircle(_ref) {
|
|
|
26
26
|
}, props), title ? ___EmotionJSX("title", {
|
|
27
27
|
id: titleId
|
|
28
28
|
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
-
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Zm0 1A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
d: "M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"
|
|
33
|
+
}), ___EmotionJSX("path", {
|
|
34
|
+
fillRule: "evenodd",
|
|
35
|
+
d: "M8 4h.033l.067.004a2.343 2.343 0 0 1 .874.236c.246.124.508.317.708.616.2.302.318.682.318 1.144 0 .463-.117.843-.318 1.145-.2.299-.462.492-.708.615a2.274 2.274 0 0 1-.474.172V9h-1V7H8c.005 0 .015 0 .029-.002a1.344 1.344 0 0 0 .498-.133.817.817 0 0 0 .323-.275C8.93 6.47 9 6.288 9 6c0-.287-.07-.47-.15-.59a.818.818 0 0 0-.324-.275 1.344 1.344 0 0 0-.555-.133 1.344 1.344 0 0 0-.498.133.817.817 0 0 0-.323.275C7.07 5.53 7 5.713 7 6H6c0-.462.117-.843.318-1.144.2-.3.462-.492.708-.616a2.343 2.343 0 0 1 .94-.24H8Z"
|
|
30
36
|
}));
|
|
31
37
|
};
|
|
32
|
-
export var icon =
|
|
38
|
+
export var icon = EuiIconQuestion;
|
|
@@ -15,7 +15,7 @@ import { EuiIcon } from './icon';
|
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
describe('EuiIcons', function () {
|
|
17
17
|
describe('Automated accessibility check for glyph icons', function () {
|
|
18
|
-
var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', '
|
|
18
|
+
var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'info', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'question', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'sparkles', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
|
|
19
19
|
var GlyphGrid = function GlyphGrid() {
|
|
20
20
|
return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
@@ -200,7 +200,9 @@ export var typeToPathMap = {
|
|
|
200
200
|
heatmap: 'heatmap',
|
|
201
201
|
help: 'help',
|
|
202
202
|
home: 'home',
|
|
203
|
-
iInCircle: '
|
|
203
|
+
iInCircle: 'info',
|
|
204
|
+
// NOTE: To be deprecated in favor of `info`
|
|
205
|
+
info: 'info',
|
|
204
206
|
image: 'image',
|
|
205
207
|
importAction: 'import',
|
|
206
208
|
index: 'index',
|
|
@@ -367,7 +369,9 @@ export var typeToPathMap = {
|
|
|
367
369
|
plusInSquare: 'plus_in_square',
|
|
368
370
|
popout: 'popout',
|
|
369
371
|
push: 'push',
|
|
370
|
-
questionInCircle: '
|
|
372
|
+
questionInCircle: 'question',
|
|
373
|
+
// NOTE: To be deprecated in favor of `question`
|
|
374
|
+
question: 'question',
|
|
371
375
|
quote: 'quote',
|
|
372
376
|
readOnly: 'readOnly',
|
|
373
377
|
recentlyViewedApp: 'app_recently_viewed',
|
|
@@ -53,8 +53,8 @@ export var euiListGroupItemInnerStyles = function euiListGroupItemInnerStyles(eu
|
|
|
53
53
|
// Base
|
|
54
54
|
euiListGroupItem__inner: /*#__PURE__*/css(logicalShorthandCSS('padding', "".concat(euiTheme.size.xs, " ").concat(euiTheme.size.s)), " display:flex;align-items:center;flex-grow:1;max-inline-size:100%;overflow:hidden;text-align:start;font-weight:inherit;;label:euiListGroupItem__inner;"),
|
|
55
55
|
// Sizes
|
|
56
|
-
xs: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), "
|
|
57
|
-
s: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), "
|
|
56
|
+
xs: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), " letter-spacing:0;", logicalCSS('min-height', euiTheme.size.l), ";;label:xs;"),
|
|
57
|
+
s: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " letter-spacing:0;", logicalCSS('min-height', euiTheme.size.xl), ";;label:s;"),
|
|
58
58
|
m: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'm'), " ", logicalCSS('min-height', euiTheme.size.xl), ";;label:m;"),
|
|
59
59
|
l: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'l'), " ", logicalCSS('min-height', euiTheme.size.xxl), ";;label:l;"),
|
|
60
60
|
// Colors
|
|
@@ -25,7 +25,7 @@ export var tooltipMarkdownRenderer = function tooltipMarkdownRenderer(_ref) {
|
|
|
25
25
|
return ___EmotionJSX("span", null, ___EmotionJSX(EuiToolTip, {
|
|
26
26
|
content: content
|
|
27
27
|
}, ___EmotionJSX("span", null, ___EmotionJSX("strong", null, children), ___EmotionJSX(EuiIcon, {
|
|
28
|
-
type: "
|
|
28
|
+
type: "question"
|
|
29
29
|
// This is to offset the tooltip icon, which isn't perfectly centered
|
|
30
30
|
,
|
|
31
31
|
css: _ref2
|
|
@@ -12,7 +12,7 @@ var _excluded = ["className", "externalPosition", "internalPosition", "direction
|
|
|
12
12
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
-
import { useEuiMemoizedStyles } from '../../services';
|
|
15
|
+
import { useEuiMemoizedStyles, useEuiThemeRefreshVariant } from '../../services';
|
|
16
16
|
import { EuiButtonIcon } from '../button';
|
|
17
17
|
import { euiScreenReaderOnlyStyles } from '../accessibility/screen_reader_only/screen_reader_only.styles';
|
|
18
18
|
import { euiResizableCollapseButtonStyles } from './resizable_collapse_button.styles';
|
|
@@ -30,6 +30,7 @@ export var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref
|
|
|
30
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
31
|
var isHorizontal = direction === 'horizontal';
|
|
32
32
|
var showOnFocus = !isCollapsed && !isVisible;
|
|
33
|
+
var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
|
|
33
34
|
var styles = useEuiMemoizedStyles(euiResizableCollapseButtonStyles);
|
|
34
35
|
var collapsedStyles = [styles.collapsed.collapsed, styles.collapsed[direction], styles.collapsed["".concat(direction, "Positions")][internalPosition]];
|
|
35
36
|
var collapsibleStyles = [styles.collapsible.collapsible, styles.collapsible[direction][externalPosition], styles.collapsible[direction][internalPosition]];
|
|
@@ -48,7 +49,7 @@ export var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref
|
|
|
48
49
|
}
|
|
49
50
|
var classes = classNames('euiResizableCollapseButton', className);
|
|
50
51
|
return ___EmotionJSX(EuiButtonIcon, _extends({
|
|
51
|
-
display: isCollapsed ? 'empty' : 'base',
|
|
52
|
+
display: isRefreshVariant ? 'empty' : isCollapsed ? 'empty' : 'base',
|
|
52
53
|
color: "text",
|
|
53
54
|
className: classes,
|
|
54
55
|
css: cssStyles
|
|
@@ -36,12 +36,12 @@ var CellContents = function CellContents(_ref) {
|
|
|
36
36
|
isSortAscending = _ref.isSortAscending;
|
|
37
37
|
var tooltipIcon = tooltipProps ? canSort ? ___EmotionJSX(EuiIcon, _extends({
|
|
38
38
|
className: "euiTableSortIcon",
|
|
39
|
-
type: tooltipProps.icon || '
|
|
39
|
+
type: tooltipProps.icon || 'question',
|
|
40
40
|
size: "m",
|
|
41
41
|
color: "subdued"
|
|
42
42
|
}, tooltipProps.iconProps)) : ___EmotionJSX(EuiIconTip, _extends({
|
|
43
43
|
content: tooltipProps.content,
|
|
44
|
-
type: tooltipProps.icon || '
|
|
44
|
+
type: tooltipProps.icon || 'question',
|
|
45
45
|
size: "m",
|
|
46
46
|
color: "subdued",
|
|
47
47
|
position: "top",
|
|
@@ -72,7 +72,7 @@ export var euiTextStyles = function euiTextStyles(euiThemeContext) {
|
|
|
72
72
|
var euiTheme = euiThemeContext.euiTheme;
|
|
73
73
|
var codeColors = euiCodeTextColors(euiThemeContext);
|
|
74
74
|
return {
|
|
75
|
-
euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.textSubdued, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), "
|
|
75
|
+
euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.textSubdued, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), ";}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock > pre){white-space:pre-wrap;background-color:", codeColors.backgroundColor, ";color:", codeColors.color, ";", highContrastModeStyles(euiThemeContext, {
|
|
76
76
|
preferred: "border: ".concat(euiTheme.border.thin)
|
|
77
77
|
}), ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.textParagraph, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
78
78
|
return x / 2;
|
|
@@ -16,7 +16,7 @@ import { EuiToolTip } from './tool_tip';
|
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var EuiIconTip = function EuiIconTip(_ref) {
|
|
18
18
|
var _ref$type = _ref.type,
|
|
19
|
-
type = _ref$type === void 0 ? '
|
|
19
|
+
type = _ref$type === void 0 ? 'question' : _ref$type,
|
|
20
20
|
ariaLabel = _ref['aria-label'],
|
|
21
21
|
color = _ref.color,
|
|
22
22
|
size = _ref.size,
|
|
@@ -157,9 +157,9 @@ export var euiPaletteForStatus = function euiPaletteForStatus(steps) {
|
|
|
157
157
|
return [visColors.euiColorVisSuccess0];
|
|
158
158
|
}
|
|
159
159
|
if (steps <= 3) {
|
|
160
|
-
return euiPalette([visColors.euiColorVisSuccess0, visColors.
|
|
160
|
+
return euiPalette([visColors.euiColorVisSuccess0, visColors.euiColorVisWarning1, visColors.euiColorVisDanger0], steps, true);
|
|
161
161
|
}
|
|
162
|
-
return euiPalette([visColors.euiColorVisSuccess0, visColors.euiColorVisSuccess1, visColors.
|
|
162
|
+
return euiPalette([visColors.euiColorVisSuccess0, visColors.euiColorVisSuccess1, visColors.euiColorVisWarning1, visColors.euiColorVisDanger1, visColors.euiColorVisDanger0], steps, true);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
/**
|
|
@@ -179,7 +179,7 @@ export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
|
|
|
179
179
|
}
|
|
180
180
|
var cools = colorPalette([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
|
|
181
181
|
var warms = colorPalette([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
|
|
182
|
-
var paletteColors = _hasVisColorAdjustment ? [].concat(_toConsumableArray(cools), _toConsumableArray(warms)) : [].concat(_toConsumableArray(cools), [visColors.
|
|
182
|
+
var paletteColors = _hasVisColorAdjustment ? [].concat(_toConsumableArray(cools), _toConsumableArray(warms)) : [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
|
|
183
183
|
return euiPalette(paletteColors, steps, true);
|
|
184
184
|
};
|
|
185
185
|
|
|
@@ -196,7 +196,7 @@ export var euiPaletteComplementary = function euiPaletteComplementary(steps) {
|
|
|
196
196
|
if (steps === 1) {
|
|
197
197
|
return [visColors.euiColorVisComplementary0];
|
|
198
198
|
}
|
|
199
|
-
var paletteColors = _hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.
|
|
199
|
+
var paletteColors = _hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
|
|
200
200
|
return euiPalette(paletteColors, steps, true);
|
|
201
201
|
};
|
|
202
202
|
|
|
@@ -211,7 +211,7 @@ export var euiPaletteRed = function euiPaletteRed(steps) {
|
|
|
211
211
|
if (steps === 1) {
|
|
212
212
|
return [visColors.euiColorVisDanger1];
|
|
213
213
|
}
|
|
214
|
-
return euiPalette([visColors.
|
|
214
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisDanger0], steps);
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
/**
|
|
@@ -225,23 +225,65 @@ export var euiPaletteGreen = function euiPaletteGreen(steps) {
|
|
|
225
225
|
if (steps === 1) {
|
|
226
226
|
return [visColors.euiColorVisSuccess1];
|
|
227
227
|
}
|
|
228
|
-
return euiPalette([visColors.
|
|
228
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisSuccess0], steps);
|
|
229
229
|
};
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
233
233
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
234
234
|
*/
|
|
235
|
-
export var
|
|
235
|
+
export var euiPaletteSkyBlue = function euiPaletteSkyBlue(steps) {
|
|
236
236
|
var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
237
|
-
colors = _ref10.colors
|
|
238
|
-
|
|
237
|
+
colors = _ref10.colors;
|
|
238
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
239
|
+
if (steps === 1) {
|
|
240
|
+
return [visColors.euiColorVisNeutral1];
|
|
241
|
+
}
|
|
242
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisNeutral0], steps);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
247
|
+
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
248
|
+
*/
|
|
249
|
+
export var euiPaletteYellow = function euiPaletteYellow(steps) {
|
|
250
|
+
var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
251
|
+
colors = _ref11.colors;
|
|
252
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
253
|
+
if (steps === 1) {
|
|
254
|
+
return [visColors.euiColorVisWarning1];
|
|
255
|
+
}
|
|
256
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisWarning0], steps);
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
261
|
+
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
262
|
+
*/
|
|
263
|
+
export var euiPaletteOrange = function euiPaletteOrange(steps) {
|
|
264
|
+
var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
265
|
+
colors = _ref12.colors;
|
|
266
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
267
|
+
if (steps === 1) {
|
|
268
|
+
return [visColors.euiColorVisRisk1];
|
|
269
|
+
}
|
|
270
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisRisk0], steps);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
275
|
+
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
276
|
+
*/
|
|
277
|
+
export var euiPaletteCool = function euiPaletteCool(steps) {
|
|
278
|
+
var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
279
|
+
colors = _ref13.colors,
|
|
280
|
+
hasVisColorAdjustment = _ref13.hasVisColorAdjustment;
|
|
239
281
|
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
240
282
|
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
241
283
|
if (steps === 1) {
|
|
242
284
|
return [visColors.euiColorVisCool1];
|
|
243
285
|
}
|
|
244
|
-
return euiPalette([_hasVisColorAdjustment ? visColors.
|
|
286
|
+
return euiPalette([_hasVisColorAdjustment ? visColors.euiColorVisBase0 : visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
|
|
245
287
|
};
|
|
246
288
|
|
|
247
289
|
/**
|
|
@@ -249,8 +291,8 @@ export var euiPaletteCool = function euiPaletteCool(steps) {
|
|
|
249
291
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
250
292
|
*/
|
|
251
293
|
export var euiPaletteWarm = function euiPaletteWarm(steps) {
|
|
252
|
-
var
|
|
253
|
-
colors =
|
|
294
|
+
var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
295
|
+
colors = _ref14.colors;
|
|
254
296
|
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
255
297
|
if (steps === 1) {
|
|
256
298
|
return [visColors.euiColorVisWarm2];
|
|
@@ -263,11 +305,11 @@ export var euiPaletteWarm = function euiPaletteWarm(steps) {
|
|
|
263
305
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
264
306
|
*/
|
|
265
307
|
export var euiPaletteGray = function euiPaletteGray(steps) {
|
|
266
|
-
var
|
|
267
|
-
colors =
|
|
308
|
+
var _ref15 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
309
|
+
colors = _ref15.colors;
|
|
268
310
|
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
269
311
|
if (steps === 1) {
|
|
270
312
|
return [visColors.euiColorVisGrey1];
|
|
271
313
|
}
|
|
272
|
-
return euiPalette([visColors.
|
|
314
|
+
return euiPalette([visColors.euiColorVisBase0, visColors.euiColorVisGrey0, visColors.euiColorVisGrey1, visColors.euiColorVisGrey2, visColors.euiColorVisGrey3], steps, false);
|
|
273
315
|
};
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
|
|
12
12
|
import { useMemo } from 'react';
|
|
13
13
|
import { useEuiTheme } from '../theme/hooks';
|
|
14
|
-
import { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteGreen, euiPaletteRed, euiPaletteWarm } from './eui_palettes';
|
|
14
|
+
import { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteGreen, euiPaletteOrange, euiPaletteRed, euiPaletteSkyBlue, euiPaletteWarm, euiPaletteYellow } from './eui_palettes';
|
|
15
15
|
export var useEuiPaletteColorBlind = function useEuiPaletteColorBlind(args) {
|
|
16
16
|
return _useEuiPaletteFn(euiPaletteColorBlind, args);
|
|
17
17
|
};
|
|
@@ -33,6 +33,15 @@ export var useEuiPaletteRed = function useEuiPaletteRed(steps) {
|
|
|
33
33
|
export var useEuiPaletteGreen = function useEuiPaletteGreen(steps) {
|
|
34
34
|
return _useEuiPaletteWithStepsFn(euiPaletteGreen, steps);
|
|
35
35
|
};
|
|
36
|
+
export var useEuiPaletteSkyBlue = function useEuiPaletteSkyBlue(steps) {
|
|
37
|
+
return _useEuiPaletteWithStepsFn(euiPaletteSkyBlue, steps);
|
|
38
|
+
};
|
|
39
|
+
export var useEuiPaletteYellow = function useEuiPaletteYellow(steps) {
|
|
40
|
+
return _useEuiPaletteWithStepsFn(euiPaletteYellow, steps);
|
|
41
|
+
};
|
|
42
|
+
export var useEuiPaletteOrange = function useEuiPaletteOrange(steps) {
|
|
43
|
+
return _useEuiPaletteWithStepsFn(euiPaletteOrange, steps);
|
|
44
|
+
};
|
|
36
45
|
export var useEuiPaletteCool = function useEuiPaletteCool(steps) {
|
|
37
46
|
return _useEuiPaletteWithStepsFn(euiPaletteCool, steps);
|
|
38
47
|
};
|
|
@@ -18,7 +18,7 @@ export { calculateContrast, calculateLuminance } from './luminance_and_contrast'
|
|
|
18
18
|
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR } from './visualization_colors';
|
|
19
19
|
export { EUI_VIS_COLOR_STORE } from './vis_color_store';
|
|
20
20
|
export { colorPalette } from './color_palette';
|
|
21
|
-
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray } from './eui_palettes';
|
|
21
|
+
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteSkyBlue, euiPaletteYellow, euiPaletteOrange, euiPaletteCool, euiPaletteWarm, euiPaletteGray } from './eui_palettes';
|
|
22
22
|
export * from './eui_palettes_hooks';
|
|
23
23
|
export { getSteppedGradient } from './stepped_gradient';
|
|
24
24
|
export * from './manipulation';
|
|
@@ -12,7 +12,7 @@ export { htmlIdGenerator, useGeneratedHtmlId } from './accessibility';
|
|
|
12
12
|
export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from './alignment';
|
|
13
13
|
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint } from './breakpoint';
|
|
14
14
|
export { CanvasTextUtils } from './canvas';
|
|
15
|
-
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteRed, euiPaletteGreen, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, EUI_VIS_COLOR_STORE, wcagContrastMin } from './color';
|
|
15
|
+
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteRed, euiPaletteGreen, euiPaletteSkyBlue, euiPaletteYellow, euiPaletteOrange, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, EUI_VIS_COLOR_STORE, wcagContrastMin } from './color';
|
|
16
16
|
export * from './color/eui_palettes_hooks';
|
|
17
17
|
export { useColorPickerState, useColorStopsState } from './color_picker';
|
|
18
18
|
export * from './console';
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { shade, tint } from '../../../../services';
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* NOTE: These were quick conversions of their Sass counterparts.
|
|
11
13
|
* They have yet to be used/tested.
|
|
@@ -97,12 +99,17 @@ export var colorVis = {
|
|
|
97
99
|
euiColorVisAsTextDark4: '#FFCE7A',
|
|
98
100
|
euiColorVisAsTextDark5: '#1BA9F5',
|
|
99
101
|
euiColorVisAsTextDark6: '#7DE2D1',
|
|
102
|
+
euiColorVisNeutral0: tint(euiPaletteColorBlind.euiColorVis1.graphic, 0.3),
|
|
103
|
+
euiColorVisNeutral1: tint(euiPaletteColorBlind.euiColorVis1.graphic, 0.56),
|
|
100
104
|
euiColorVisSuccess0: '#209280',
|
|
101
105
|
euiColorVisSuccess1: euiPaletteColorBlind.euiColorVis0.graphic,
|
|
102
|
-
euiColorVisWarning0:
|
|
106
|
+
euiColorVisWarning0: shade(euiPaletteColorBlind.euiColorVis5.graphic, 0.15),
|
|
107
|
+
euiColorVisWarning1: euiPaletteColorBlind.euiColorVis5.graphic,
|
|
108
|
+
euiColorVisRisk0: euiPaletteColorBlind.euiColorVis7.graphic,
|
|
109
|
+
euiColorVisRisk1: tint(euiPaletteColorBlind.euiColorVis7.graphic, 0.5),
|
|
103
110
|
euiColorVisDanger0: '#CC5642',
|
|
104
111
|
euiColorVisDanger1: euiPaletteColorBlind.euiColorVis9.graphic,
|
|
105
|
-
|
|
112
|
+
euiColorVisBase0: '#FFFFFF',
|
|
106
113
|
euiColorVisGrey0: '#d3dae6',
|
|
107
114
|
euiColorVisGrey1: '#98a2b3',
|
|
108
115
|
euiColorVisGrey2: '#69707d',
|
|
@@ -98,7 +98,7 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
|
|
|
98
98
|
},
|
|
99
99
|
hasToolTip: _ref2
|
|
100
100
|
},
|
|
101
|
-
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.
|
|
101
|
+
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:", isRefreshVariant ? '0' : (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
102
102
|
return x * 2;
|
|
103
103
|
}), ";", compressedStyles, ";;label:compressed;"),
|
|
104
104
|
// States
|
|
@@ -59,7 +59,7 @@ var Card = function Card() {
|
|
|
59
59
|
title: "Sketch",
|
|
60
60
|
description: "Example of a short card description.",
|
|
61
61
|
footer: (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
62
|
-
iconType: "
|
|
62
|
+
iconType: "info",
|
|
63
63
|
size: "xs",
|
|
64
64
|
onClick: detailsClicked,
|
|
65
65
|
"aria-label": "See more details about Sketch"
|
|
@@ -76,7 +76,7 @@ var Card = function Card() {
|
|
|
76
76
|
title: "Google",
|
|
77
77
|
description: "Example of a longer card description. See how the footers stay lined up.",
|
|
78
78
|
footer: (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
79
|
-
iconType: "
|
|
79
|
+
iconType: "info",
|
|
80
80
|
size: "xs",
|
|
81
81
|
onClick: detailsClicked,
|
|
82
82
|
"aria-label": "See more details about Google"
|
|
@@ -93,7 +93,7 @@ var Card = function Card() {
|
|
|
93
93
|
title: "Not Adobe",
|
|
94
94
|
description: "Example of a short card description.",
|
|
95
95
|
footer: (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
96
|
-
iconType: "
|
|
96
|
+
iconType: "info",
|
|
97
97
|
size: "xs",
|
|
98
98
|
onClick: detailsClicked,
|
|
99
99
|
"aria-label": "See more details about Not Adobe"
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.euiCollapsibleNavTopItemStyles = exports.euiCollapsibleNavSubItemsStyles = exports.euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemTitleStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
+
var _services = require("../../../services");
|
|
10
11
|
var _global_styling = require("../../../global_styling");
|
|
11
12
|
var _button = require("../../../global_styling/mixins/_button");
|
|
12
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -23,6 +24,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
23
24
|
*/
|
|
24
25
|
var euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariables(euiThemeContext) {
|
|
25
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
27
|
+
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
26
28
|
return _objectSpread(_objectSpread({
|
|
27
29
|
height: euiTheme.size.xl,
|
|
28
30
|
padding: euiTheme.size.s
|
|
@@ -31,7 +33,7 @@ var euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemVariables = fu
|
|
|
31
33
|
// Matches EuiButton
|
|
32
34
|
borderRadius: euiTheme.border.radius.small,
|
|
33
35
|
backgroundHoverColor: euiTheme.colors.lightestShade,
|
|
34
|
-
backgroundSelectedColor: (0, _button.euiButtonColor)(euiThemeContext, 'text').backgroundColor,
|
|
36
|
+
backgroundSelectedColor: isRefreshVariant ? euiTheme.colors.backgroundBaseInteractiveSelect : (0, _button.euiButtonColor)(euiThemeContext, 'text').backgroundColor,
|
|
35
37
|
color: euiTheme.colors.textParagraph,
|
|
36
38
|
rightIconColor: euiTheme.colors.textDisabled
|
|
37
39
|
});
|
|
@@ -58,7 +58,7 @@ var EuiFilterButton = exports.EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
58
58
|
prefix: 'filter-button'
|
|
59
59
|
});
|
|
60
60
|
var numFiltersDefined = numFilters != null; // != instead of !== to allow for null and undefined
|
|
61
|
-
var numActiveFiltersDefined = numActiveFilters
|
|
61
|
+
var numActiveFiltersDefined = !!numActiveFilters;
|
|
62
62
|
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
63
63
|
var colorMode = euiThemeContext.colorMode;
|
|
64
64
|
var isRefreshVariant = (0, _services.useEuiThemeRefreshVariant)('buttonVariant');
|
|
@@ -68,7 +68,7 @@ var euiFilterButtonStyles = exports.euiFilterButtonStyles = function euiFilterBu
|
|
|
68
68
|
hasNotification: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
69
69
|
return x * 6;
|
|
70
70
|
})), ";;label:hasNotification;"),
|
|
71
|
-
hasActiveFilters: /*#__PURE__*/(0, _react.css)("font-weight:", isRefreshVariant ? euiTheme.font.weight.
|
|
71
|
+
hasActiveFilters: /*#__PURE__*/(0, _react.css)("font-weight:", isRefreshVariant ? euiTheme.font.weight.medium : euiTheme.font.weight.bold, ";;label:hasActiveFilters;")
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
var euiFilterButtonWrapperStyles = exports.euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(euiThemeContext) {
|