@elastic/eui 107.0.1 → 109.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/badge/beta_badge/beta_badge.styles.js +1 -3
- package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/es/components/basic_table/collapsed_item_actions.js +3 -1
- package/es/components/basic_table/default_item_action.js +7 -4
- package/es/components/button/button_display/_button_display.styles.js +1 -4
- package/es/components/button/button_display/_button_display_content.styles.js +1 -4
- package/es/components/button/button_empty/button_empty.styles.js +4 -7
- package/es/components/button/button_group/button_group.styles.js +2 -12
- package/es/components/button/button_group/button_group_button.js +4 -7
- package/es/components/button/button_group/button_group_button.styles.js +22 -36
- package/es/components/button/button_icon/button_icon.js +3 -6
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
- package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/es/components/datagrid/body/header/column_actions.js +5 -21
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
- package/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
- package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
- package/es/components/datagrid/controls/column_selector.styles.js +1 -1
- package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
- package/es/components/datagrid/data_grid.styles.js +0 -1
- package/es/components/date_picker/date_picker.styles.js +1 -4
- package/es/components/date_picker/date_picker_range.styles.js +4 -8
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
- package/es/components/filter_group/filter_button.js +7 -10
- package/es/components/filter_group/filter_button.styles.js +28 -39
- package/es/components/filter_group/filter_group.styles.js +8 -29
- package/es/components/form/field_number/field_number.styles.js +1 -4
- package/es/components/form/field_text/field_text.styles.js +1 -4
- package/es/components/form/file_picker/file_picker.js +102 -107
- package/es/components/form/file_picker/file_picker.styles.js +6 -8
- package/es/components/form/form.styles.js +17 -40
- package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
- package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
- package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
- package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/es/components/form/form_label/form_label.js +1 -1
- package/es/components/form/form_label/form_label.styles.js +1 -5
- package/es/components/form/range/range_input.styles.js +1 -3
- package/es/components/header/header.styles.js +4 -19
- package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/es/components/icon/assets/paper_clip.js +1 -1
- package/es/components/icon/assets/streams_wired.js +3 -2
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/es/components/modal/modal.js +23 -5
- package/es/components/panel/panel.styles.js +4 -12
- package/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
- package/es/components/toast/toast.styles.js +1 -3
- package/es/components/token/token.js +1 -3
- package/es/components/token/token.styles.js +2 -3
- package/es/components/token/token_map.js +1 -231
- package/es/global_styling/mixins/_button.js +14 -24
- package/es/index.js +0 -1
- package/es/services/color/eui_palettes.js +7 -21
- package/es/services/color/eui_palettes_hooks.js +6 -10
- package/es/services/color/vis_color_store.js +2 -2
- package/es/services/theme/high_contrast_overrides.js +5 -1
- package/es/services/theme/provider.js +4 -9
- package/eui.d.ts +35 -2105
- package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/lib/components/basic_table/collapsed_item_actions.js +3 -1
- package/lib/components/basic_table/default_item_action.js +7 -4
- package/lib/components/button/button_display/_button_display.styles.js +1 -4
- package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
- package/lib/components/button/button_empty/button_empty.styles.js +4 -7
- package/lib/components/button/button_group/button_group.styles.js +2 -12
- package/lib/components/button/button_group/button_group_button.js +3 -6
- package/lib/components/button/button_group/button_group_button.styles.js +21 -35
- package/lib/components/button/button_icon/button_icon.js +1 -4
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/lib/components/datagrid/body/header/column_actions.js +5 -21
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
- package/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
- package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
- package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
- package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/lib/components/datagrid/data_grid.styles.js +0 -1
- package/lib/components/date_picker/date_picker.styles.js +1 -4
- package/lib/components/date_picker/date_picker_range.styles.js +4 -8
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/lib/components/filter_group/filter_button.js +6 -9
- package/lib/components/filter_group/filter_button.styles.js +27 -38
- package/lib/components/filter_group/filter_group.styles.js +8 -29
- package/lib/components/form/field_number/field_number.styles.js +1 -4
- package/lib/components/form/field_text/field_text.styles.js +1 -4
- package/lib/components/form/file_picker/file_picker.js +101 -106
- package/lib/components/form/file_picker/file_picker.styles.js +6 -8
- package/lib/components/form/form.styles.js +16 -39
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/lib/components/form/form_label/form_label.js +1 -1
- package/lib/components/form/form_label/form_label.styles.js +1 -5
- package/lib/components/form/range/range_input.styles.js +1 -3
- package/lib/components/header/header.styles.js +2 -18
- package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/lib/components/icon/assets/paper_clip.js +1 -1
- package/lib/components/icon/assets/streams_wired.js +3 -2
- package/lib/components/icon/svgs/paper_clip.svg +3 -3
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/lib/components/modal/modal.js +25 -5
- package/lib/components/panel/panel.styles.js +4 -12
- package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/lib/components/toast/toast.styles.js +1 -3
- package/lib/components/token/token.js +1 -3
- package/lib/components/token/token.styles.js +1 -2
- package/lib/components/token/token_map.js +2 -232
- package/lib/global_styling/mixins/_button.js +11 -21
- package/lib/index.js +0 -11
- package/lib/services/color/eui_palettes.js +7 -21
- package/lib/services/color/eui_palettes_hooks.js +6 -10
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/high_contrast_overrides.js +5 -1
- package/lib/services/theme/provider.js +4 -9
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/optimize/es/components/basic_table/collapsed_item_actions.js +3 -1
- package/optimize/es/components/basic_table/default_item_action.js +7 -4
- package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
- package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
- package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
- package/optimize/es/components/button/button_group/button_group_button.js +3 -6
- package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
- package/optimize/es/components/button/button_icon/button_icon.js +3 -6
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/optimize/es/components/datagrid/body/header/column_actions.js +5 -21
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
- package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
- package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
- package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
- package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
- package/optimize/es/components/filter_group/filter_button.js +7 -10
- package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
- package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
- package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
- package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
- package/optimize/es/components/form/file_picker/file_picker.js +102 -107
- package/optimize/es/components/form/file_picker/file_picker.styles.js +6 -8
- package/optimize/es/components/form/form.styles.js +17 -40
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
- package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
- package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/optimize/es/components/form/form_label/form_label.js +1 -1
- package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
- package/optimize/es/components/form/range/range_input.styles.js +1 -3
- package/optimize/es/components/header/header.styles.js +4 -19
- package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/optimize/es/components/icon/assets/paper_clip.js +1 -1
- package/optimize/es/components/icon/assets/streams_wired.js +3 -2
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/optimize/es/components/modal/modal.js +17 -4
- package/optimize/es/components/panel/panel.styles.js +4 -12
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
- package/optimize/es/components/toast/toast.styles.js +1 -3
- package/optimize/es/components/token/token.js +1 -3
- package/optimize/es/components/token/token.styles.js +2 -3
- package/optimize/es/components/token/token_map.js +1 -231
- package/optimize/es/global_styling/mixins/_button.js +14 -24
- package/optimize/es/index.js +0 -1
- package/optimize/es/services/color/eui_palettes.js +7 -21
- package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
- package/optimize/es/services/color/vis_color_store.js +2 -2
- package/optimize/es/services/theme/high_contrast_overrides.js +5 -1
- package/optimize/es/services/theme/provider.js +4 -9
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +3 -1
- package/optimize/lib/components/basic_table/default_item_action.js +7 -4
- package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
- package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
- package/optimize/lib/components/button/button_group/button_group_button.js +2 -5
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/optimize/lib/components/datagrid/body/header/column_actions.js +5 -21
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
- package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
- package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
- package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/optimize/lib/components/filter_group/filter_button.js +6 -9
- package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
- package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
- package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
- package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
- package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +6 -8
- package/optimize/lib/components/form/form.styles.js +16 -39
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/optimize/lib/components/form/form_label/form_label.js +1 -1
- package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
- package/optimize/lib/components/form/range/range_input.styles.js +1 -3
- package/optimize/lib/components/header/header.styles.js +2 -18
- package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/optimize/lib/components/icon/assets/paper_clip.js +1 -1
- package/optimize/lib/components/icon/assets/streams_wired.js +3 -2
- package/optimize/lib/components/icon/svgs/paper_clip.svg +3 -3
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/optimize/lib/components/modal/modal.js +20 -4
- package/optimize/lib/components/panel/panel.styles.js +4 -12
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/optimize/lib/components/toast/toast.styles.js +1 -3
- package/optimize/lib/components/token/token.js +1 -3
- package/optimize/lib/components/token/token.styles.js +1 -2
- package/optimize/lib/components/token/token_map.js +2 -232
- package/optimize/lib/global_styling/mixins/_button.js +11 -21
- package/optimize/lib/index.js +0 -11
- package/optimize/lib/services/color/eui_palettes.js +7 -21
- package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/high_contrast_overrides.js +5 -1
- package/optimize/lib/services/theme/provider.js +4 -9
- package/package.json +5 -6
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/test-env/components/basic_table/collapsed_item_actions.js +3 -1
- package/test-env/components/basic_table/default_item_action.js +7 -4
- package/test-env/components/button/button_display/_button_display.styles.js +1 -4
- package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
- package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
- package/test-env/components/button/button_group/button_group.styles.js +2 -12
- package/test-env/components/button/button_group/button_group_button.js +3 -6
- package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
- package/test-env/components/button/button_icon/button_icon.js +1 -4
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/test-env/components/datagrid/body/header/column_actions.js +5 -21
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -4
- package/test-env/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
- package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
- package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
- package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/test-env/components/datagrid/data_grid.styles.js +0 -1
- package/test-env/components/date_picker/date_picker.styles.js +1 -4
- package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/test-env/components/filter_group/filter_button.js +6 -9
- package/test-env/components/filter_group/filter_button.styles.js +27 -38
- package/test-env/components/filter_group/filter_group.styles.js +8 -29
- package/test-env/components/form/field_number/field_number.styles.js +1 -4
- package/test-env/components/form/field_text/field_text.styles.js +1 -4
- package/test-env/components/form/file_picker/file_picker.js +101 -106
- package/test-env/components/form/file_picker/file_picker.styles.js +6 -8
- package/test-env/components/form/form.styles.js +16 -39
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/test-env/components/form/form_label/form_label.js +1 -1
- package/test-env/components/form/form_label/form_label.styles.js +1 -5
- package/test-env/components/form/range/range_input.styles.js +1 -3
- package/test-env/components/header/header.styles.js +2 -18
- package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/test-env/components/icon/assets/paper_clip.js +1 -1
- package/test-env/components/icon/assets/streams_wired.js +3 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/test-env/components/modal/modal.js +26 -5
- package/test-env/components/panel/panel.styles.js +4 -12
- package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/test-env/components/toast/toast.styles.js +1 -3
- package/test-env/components/token/token.js +1 -3
- package/test-env/components/token/token.styles.js +1 -2
- package/test-env/components/token/token_map.js +2 -232
- package/test-env/global_styling/mixins/_button.js +11 -21
- package/test-env/index.js +0 -11
- package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
- package/test-env/services/color/eui_palettes.js +7 -21
- package/test-env/services/color/eui_palettes_hooks.js +6 -10
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/high_contrast_overrides.js +5 -1
- package/test-env/services/theme/provider.js +4 -9
- package/dist/eui_theme_amsterdam_dark.json +0 -463
- package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
- package/dist/eui_theme_amsterdam_light.json +0 -463
- package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
- package/dist/eui_theme_borealis_dark.json +0 -463
- package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
- package/dist/eui_theme_borealis_light.json +0 -463
- package/dist/eui_theme_borealis_light.json.d.ts +0 -466
- package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
- package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
- package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
- package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
- package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
- package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
- package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
- package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
- package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
- package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
- package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
- package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
- package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
- package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
- package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
- package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
- package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
- package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
- package/es/themes/amsterdam/index.js +0 -10
- package/es/themes/amsterdam/theme.js +0 -41
- package/es/themes/index.js +0 -12
- package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/es/themes/json/eui_theme_borealis_dark.json +0 -463
- package/es/themes/json/eui_theme_borealis_light.json +0 -463
- package/es/themes/themes.js +0 -1
- package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
- package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
- package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
- package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
- package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
- package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
- package/lib/themes/amsterdam/index.js +0 -16
- package/lib/themes/amsterdam/theme.js +0 -47
- package/lib/themes/index.js +0 -57
- package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
- package/lib/themes/json/eui_theme_borealis_light.json +0 -463
- package/lib/themes/themes.js +0 -5
- package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
- package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
- package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
- package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
- package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
- package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
- package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
- package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
- package/optimize/es/themes/amsterdam/index.js +0 -10
- package/optimize/es/themes/amsterdam/theme.js +0 -41
- package/optimize/es/themes/index.js +0 -12
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
- package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
- package/optimize/es/themes/themes.js +0 -1
- package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
- package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
- package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
- package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
- package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
- package/optimize/lib/themes/amsterdam/index.js +0 -16
- package/optimize/lib/themes/amsterdam/theme.js +0 -47
- package/optimize/lib/themes/index.js +0 -57
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
- package/optimize/lib/themes/themes.js +0 -5
- package/package/eui.d.ts +0 -33359
- package/src/global_styling/functions/_colors.scss +0 -138
- package/src/global_styling/functions/_index.scss +0 -1
- package/src/global_styling/functions/_math.scss +0 -1
- package/src/global_styling/functions/_math_pow.scss +0 -82
- package/src/global_styling/index.scss +0 -3
- package/src/global_styling/mixins/_helpers.scss +0 -117
- package/src/global_styling/mixins/_index.scss +0 -8
- package/src/global_styling/mixins/_responsive.scss +0 -44
- package/src/global_styling/mixins/_shadow.scss +0 -100
- package/src/global_styling/mixins/_size.scss +0 -4
- package/src/global_styling/mixins/_states.scss +0 -17
- package/src/global_styling/mixins/_tool_tip.scss +0 -18
- package/src/global_styling/mixins/_typography.scss +0 -166
- package/src/global_styling/variables/_animations.scss +0 -6
- package/src/global_styling/variables/_borders.scss +0 -3
- package/src/global_styling/variables/_buttons.scss +0 -1
- package/src/global_styling/variables/_font_weight.scss +0 -4
- package/src/global_styling/variables/_form.scss +0 -2
- package/src/global_styling/variables/_index.scss +0 -22
- package/src/global_styling/variables/_responsive.scss +0 -1
- package/src/global_styling/variables/_shadows.scss +0 -2
- package/src/global_styling/variables/_size.scss +0 -1
- package/src/global_styling/variables/_states.scss +0 -1
- package/src/global_styling/variables/_typography.scss +0 -1
- package/src/global_styling/variables/_z_index.scss +0 -2
- package/src/themes/amsterdam/_colors_dark.scss +0 -139
- package/src/themes/amsterdam/_colors_light.scss +0 -139
- package/src/themes/amsterdam/_globals.scss +0 -11
- package/src/themes/amsterdam/global_styling/index.scss +0 -12
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
- package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
- package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
- package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
- package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
- package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
- package/src/themes/amsterdam/theme_dark.scss +0 -5
- package/src/themes/amsterdam/theme_light.scss +0 -5
- package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
- package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
- package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
- package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
- package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
- package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
- package/test-env/themes/amsterdam/index.js +0 -16
- package/test-env/themes/amsterdam/theme.js +0 -47
- package/test-env/themes/index.js +0 -57
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
- package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
- package/test-env/themes/themes.js +0 -5
|
@@ -83,16 +83,6 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
|
|
|
83
83
|
var closePopover = useCallback(function () {
|
|
84
84
|
setIsPopoverOpen(false);
|
|
85
85
|
}, []);
|
|
86
|
-
var _useState3 = useState(false),
|
|
87
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
88
|
-
isActionsButtonFocused = _useState4[0],
|
|
89
|
-
setIsActionsButtonFocused = _useState4[1];
|
|
90
|
-
var onFocus = useCallback(function () {
|
|
91
|
-
return setIsActionsButtonFocused(true);
|
|
92
|
-
}, []);
|
|
93
|
-
var onBlur = useCallback(function () {
|
|
94
|
-
return setIsActionsButtonFocused(false);
|
|
95
|
-
}, []);
|
|
96
86
|
var actionsButtonAriaLabel = useEuiI18n('euiDataGridHeaderCell.actionsButtonAriaLabel', '{title}. Click to view column header actions.', {
|
|
97
87
|
title: title
|
|
98
88
|
});
|
|
@@ -107,10 +97,10 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
|
|
|
107
97
|
/**
|
|
108
98
|
* Props to set on parent EuiDataGridHeaderCell
|
|
109
99
|
*/
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
isColumnMoving =
|
|
113
|
-
setIsColumnMoving =
|
|
100
|
+
var _useState3 = useState(false),
|
|
101
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
102
|
+
isColumnMoving = _useState4[0],
|
|
103
|
+
setIsColumnMoving = _useState4[1];
|
|
114
104
|
useEffect(function () {
|
|
115
105
|
setPropsFromColumnActions({
|
|
116
106
|
className: isPopoverOpen ? 'euiDataGridHeaderCell--isActionsPopoverOpen' : '',
|
|
@@ -156,17 +146,11 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
|
|
|
156
146
|
iconType: "boxesVertical",
|
|
157
147
|
iconSize: "s",
|
|
158
148
|
color: "text",
|
|
159
|
-
css: styles.euiDataGridHeaderCell__actions,
|
|
160
149
|
className: "euiDataGridHeaderCell__button",
|
|
161
150
|
onClick: togglePopover,
|
|
162
151
|
buttonRef: actionsButtonRef,
|
|
163
|
-
onFocus: onFocus,
|
|
164
|
-
onBlur: onBlur,
|
|
165
|
-
tabIndex: 0 // Override EuiButtonIcon's conditional tabindex based on aria-hidden
|
|
166
|
-
,
|
|
167
|
-
"aria-hidden": hasFocusTrap && !isActionsButtonFocused ? 'true' // prevent the actions button from being read on cell focus
|
|
168
|
-
: undefined,
|
|
169
152
|
"aria-label": hasFocusTrap ? actionsButtonAriaLabel : actionsEnterKeyInstructions,
|
|
153
|
+
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.end, ";label:ColumnActions;"],
|
|
170
154
|
"data-test-subj": "dataGridHeaderCellActionButton-".concat(id)
|
|
171
155
|
}),
|
|
172
156
|
isOpen: isPopoverOpen,
|
|
@@ -54,6 +54,7 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
|
|
|
54
54
|
var width = columnWidths[id] || defaultColumnWidth;
|
|
55
55
|
var columnType = schema[id] ? schema[id].columnType : null;
|
|
56
56
|
var hasColumnActions = useHasColumnActions(actions);
|
|
57
|
+
var cellContentId = "dataGridHeaderCellContent-".concat(id);
|
|
57
58
|
var classes = classnames(_defineProperty(_defineProperty({}, "euiDataGridHeaderCell--".concat(columnType), columnType), 'euiDataGridHeaderCell--hasColumnActions', hasColumnActions), displayHeaderCellProps === null || displayHeaderCellProps === void 0 ? void 0 : displayHeaderCellProps.className);
|
|
58
59
|
var styles = useEuiMemoizedStyles(euiDataGridHeaderCellStyles);
|
|
59
60
|
var contentStyles = [styles.euiDataGridHeaderCell__content, (columnType === 'numeric' || columnType === 'currency') && styles.right];
|
|
@@ -97,8 +98,7 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
|
|
|
97
98
|
isLastColumn: isLastColumn,
|
|
98
99
|
width: width,
|
|
99
100
|
"aria-sort": ariaSort,
|
|
100
|
-
"aria-
|
|
101
|
-
,
|
|
101
|
+
"aria-labelledby": cellContentId,
|
|
102
102
|
"aria-describedby": classnames(sortingAriaId, dragProps === null || dragProps === void 0 ? void 0 : dragProps['aria-describedby']),
|
|
103
103
|
"data-column-moving": propsFromColumnActions['data-column-moving'] || (dragProps === null || dragProps === void 0 ? void 0 : dragProps['data-column-moving']) || undefined
|
|
104
104
|
}), function (hasFocusTrap) {
|
|
@@ -107,11 +107,13 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
|
|
|
107
107
|
}, ___EmotionJSX(EuiIcon, {
|
|
108
108
|
type: "grabOmnidirectional",
|
|
109
109
|
size: "s",
|
|
110
|
-
css: styles.euiDataGridHeaderCell__actions
|
|
110
|
+
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"]
|
|
111
111
|
})), ___EmotionJSX("div", {
|
|
112
112
|
css: contentStyles,
|
|
113
113
|
className: "euiDataGridHeaderCell__content",
|
|
114
|
-
title: title
|
|
114
|
+
title: title,
|
|
115
|
+
id: cellContentId,
|
|
116
|
+
"aria-label": displayAsText ? displayAsText : typeof children === 'string' ? children : undefined
|
|
115
117
|
}, children), sortingArrow, sortingScreenReaderText, hasColumnActions && ___EmotionJSX(ColumnActions, {
|
|
116
118
|
index: index,
|
|
117
119
|
id: id,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiCanAnimate, euiTextTruncate, logicalCSS, logicalTextAlignCSS } from '../../../../global_styling';
|
|
11
11
|
import { euiDataGridCellOutlineSelectors } from '../cell/data_grid_cell.styles';
|
|
12
|
-
|
|
13
12
|
/**
|
|
14
13
|
* Styles only applied to data header cell content, not control header cells
|
|
15
14
|
*/
|
|
@@ -17,11 +16,18 @@ export var euiDataGridHeaderCellStyles = function euiDataGridHeaderCellStyles(eu
|
|
|
17
16
|
var euiTheme = euiThemeContext.euiTheme;
|
|
18
17
|
var _euiDataGridCellOutli = euiDataGridCellOutlineSelectors('.euiDataGridHeaderCell'),
|
|
19
18
|
header = _euiDataGridCellOutli.header;
|
|
19
|
+
var hideAnimation = function hideAnimation(margin, translateX) {
|
|
20
|
+
return "\n ".concat(header.hideActions, " & {\n ").concat(logicalCSS('margin-left', margin), "\n transform: translateX(").concat(translateX, ") scale(0.01);\n opacity: 0;\n }\n ");
|
|
21
|
+
};
|
|
20
22
|
return {
|
|
21
23
|
euiDataGridHeaderCell__content: /*#__PURE__*/css("flex-grow:1;", euiTextTruncate(), ";;label:euiDataGridHeaderCell__content;"),
|
|
22
24
|
// Numeric and currency schemas are aligned to the right
|
|
23
25
|
right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";;label:right;"),
|
|
24
26
|
euiDataGridHeaderCell__popover: /*#__PURE__*/css(logicalCSS('margin-left', 'auto'), "line-height:0;;label:euiDataGridHeaderCell__popover;"),
|
|
25
|
-
euiDataGridHeaderCell__actions:
|
|
27
|
+
euiDataGridHeaderCell__actions: {
|
|
28
|
+
action: /*#__PURE__*/css("overflow:hidden;display:flex;max-inline-size:24px;", euiCanAnimate, "{transition:transform ", euiTheme.animation.fast, " ease-in,opacity ", euiTheme.animation.slow, " ease-in,margin-left ", euiTheme.animation.fast, " ease-in;animation:none!important;};label:action;"),
|
|
29
|
+
start: /*#__PURE__*/css(hideAnimation("-".concat(euiTheme.size.m), '0%'), ";;label:start;"),
|
|
30
|
+
end: /*#__PURE__*/css(hideAnimation("-".concat(euiTheme.size.l), '50%'), ";;label:end;")
|
|
31
|
+
}
|
|
26
32
|
};
|
|
27
33
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label"];
|
|
1
|
+
var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label", "aria-labelledby"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -41,6 +41,7 @@ export var EuiDataGridHeaderCellWrapper = function EuiDataGridHeaderCellWrapper(
|
|
|
41
41
|
isDragging = _ref.isDragging,
|
|
42
42
|
_onKeyDown = _ref.onKeyDown,
|
|
43
43
|
ariaLabel = _ref['aria-label'],
|
|
44
|
+
ariaLabelledby = _ref['aria-labelledby'],
|
|
44
45
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
46
|
var classes = classnames('euiDataGridHeaderCell', className);
|
|
46
47
|
var styles = useEuiMemoizedStyles(euiDataGridHeaderCellWrapperStyles);
|
|
@@ -106,7 +107,8 @@ export var EuiDataGridHeaderCellWrapper = function EuiDataGridHeaderCellWrapper(
|
|
|
106
107
|
style: width != null ? {
|
|
107
108
|
width: "".concat(width, "px")
|
|
108
109
|
} : {},
|
|
109
|
-
"aria-label": renderFocusTrap ? ariaLabel : undefined
|
|
110
|
+
"aria-label": renderFocusTrap ? ariaLabel : undefined,
|
|
111
|
+
"aria-labelledby": renderFocusTrap ? ariaLabelledby : undefined
|
|
110
112
|
}, rest), ___EmotionJSX(HandleInteractiveChildren, {
|
|
111
113
|
cellEl: isDragging ? null : headerEl,
|
|
112
114
|
renderFocusTrap: isDragging ? false : renderFocusTrap,
|
|
@@ -122,6 +124,7 @@ EuiDataGridHeaderCellWrapper.propTypes = {
|
|
|
122
124
|
width: PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.oneOf([null])]),
|
|
123
125
|
className: PropTypes.string,
|
|
124
126
|
"aria-label": PropTypes.any,
|
|
127
|
+
"aria-labelledby": PropTypes.any,
|
|
125
128
|
hasColumnActions: PropTypes.bool,
|
|
126
129
|
isDragging: PropTypes.bool,
|
|
127
130
|
onKeyDown: PropTypes.any
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadowLarge } from '@elastic/eui-theme-common';
|
|
10
11
|
import { euiYScrollWithShadows, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
11
|
-
import { euiShadowLarge } from '../../../themes';
|
|
12
12
|
export var euiDataGridColumnSelectorStyles = function euiDataGridColumnSelectorStyles(euiThemeContext) {
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
14
|
var maxStaticHeight = mathWithUnits(euiTheme.size.base, function (x) {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadowLarge } from '@elastic/eui-theme-common';
|
|
10
11
|
import { euiFontSize, euiMinBreakpoint, euiYScroll, euiYScrollWithShadows, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
11
|
-
import { euiShadowLarge } from '../../../themes';
|
|
12
12
|
export var euiDataGridColumnSortingStyles = function euiDataGridColumnSortingStyles(euiThemeContext) {
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
14
|
var maxStaticHeight = mathWithUnits(euiTheme.size.m, function (x) {
|
|
@@ -15,7 +15,7 @@ import PropTypes from "prop-types";
|
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { css } from '@emotion/react';
|
|
18
|
-
import { useEuiTheme
|
|
18
|
+
import { useEuiTheme } from '../../../services';
|
|
19
19
|
import { EuiButtonEmpty } from '../../button';
|
|
20
20
|
import { EuiNotificationBadge } from '../../badge';
|
|
21
21
|
import { useEuiI18n } from '../../i18n';
|
|
@@ -27,11 +27,8 @@ export var EuiDataGridToolbarControl = function EuiDataGridToolbarControl(_ref)
|
|
|
27
27
|
textProps = _ref.textProps,
|
|
28
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
29
|
var euiThemeContext = useEuiTheme();
|
|
30
|
-
var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
|
|
31
30
|
var classes = classNames('euiDataGridToolbarControl', className);
|
|
32
|
-
var cssStyles =
|
|
33
|
-
// passes euiThemeContext here instead via `css` to ensure legacy Enzyme tests work
|
|
34
|
-
interactiveStyles(euiThemeContext) : underlineStyles;
|
|
31
|
+
var cssStyles = interactiveStyles(euiThemeContext);
|
|
35
32
|
var badgeAriaLabel = useEuiI18n('euiDataGridToolbarControl.badgeAriaLabel', 'Active: {count}', {
|
|
36
33
|
count: typeof badgeContent === 'string' ? betterScreenReaderSlashes(badgeContent) : badgeContent
|
|
37
34
|
});
|
|
@@ -147,16 +144,6 @@ EuiDataGridToolbarControl.propTypes = {
|
|
|
147
144
|
var betterScreenReaderSlashes = function betterScreenReaderSlashes(badgeContent) {
|
|
148
145
|
return badgeContent.replaceAll('/', ' out of ');
|
|
149
146
|
};
|
|
150
|
-
|
|
151
|
-
// Underline actual text, but not the badge
|
|
152
|
-
var underlineStyles = process.env.NODE_ENV === "production" ? {
|
|
153
|
-
name: "128tp1b-underlineStyles",
|
|
154
|
-
styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;"
|
|
155
|
-
} : {
|
|
156
|
-
name: "128tp1b-underlineStyles",
|
|
157
|
-
styles: "&:focus,&:hover:not(:disabled){text-decoration:none;.euiDataGridToolbarControl__text{text-decoration:underline;}};label:underlineStyles;",
|
|
158
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
159
|
-
};
|
|
160
147
|
var interactiveStyles = function interactiveStyles(_ref2) {
|
|
161
148
|
var euiTheme = _ref2.euiTheme;
|
|
162
149
|
return /*#__PURE__*/css("&:focus,&:hover:not(:disabled){.euiDataGridToolbarControl__badge{background-color:", euiTheme.components.filterButtonBadgeBackgroundHover, ";}};label:interactiveStyles;");
|
|
@@ -87,7 +87,6 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
|
|
|
87
87
|
return /*#__PURE__*/css(this.fontSize('m'), ";label:m;");
|
|
88
88
|
},
|
|
89
89
|
get l() {
|
|
90
|
-
// On the Amsterdam theme, the l fontSize is the same as m
|
|
91
90
|
return /*#__PURE__*/css(this.fontSize('m'), ";label:l;");
|
|
92
91
|
}
|
|
93
92
|
},
|
|
@@ -9,7 +9,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiShadowMedium } from '@elastic/eui-theme-common';
|
|
12
|
-
import { isEuiThemeRefreshVariant } from '../../services';
|
|
13
12
|
import { logicalCSS } from '../../global_styling';
|
|
14
13
|
import { euiFormControlDisabledStyles, euiFormControlReadOnlyStyles, euiFormControlDefaultShadow, euiFormControlInvalidStyles } from '../form/form.styles';
|
|
15
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -22,12 +21,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
22
21
|
};
|
|
23
22
|
export var euiDatePickerStyles = function euiDatePickerStyles(euiThemeContext) {
|
|
24
23
|
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
|
|
26
|
-
var inlineStyles = "\n /* removes form layout border */\n &::after {\n display: none;\n }\n ";
|
|
27
24
|
return {
|
|
28
25
|
euiDatePicker: _ref,
|
|
29
26
|
inline: {
|
|
30
|
-
inline: /*#__PURE__*/css(".euiFormControlLayout{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " border:none;padding:0;
|
|
27
|
+
inline: /*#__PURE__*/css(".euiFormControlLayout{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " border:none;padding:0;&::after{display:none;}}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", logicalCSS('padding-bottom', euiTheme.size.s), ";};label:inline;"),
|
|
31
28
|
// Skip css`` to avoid generating an Emotion className
|
|
32
29
|
noShadow: "\n .euiFormControlLayout {\n background-color: transparent;\n }\n ",
|
|
33
30
|
shadow: /*#__PURE__*/css(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", euiShadowMedium(euiThemeContext, {
|
|
@@ -10,13 +10,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiShadowMedium } from '@elastic/eui-theme-common';
|
|
12
12
|
import { logicalCSS } from '../../global_styling';
|
|
13
|
-
import { isEuiThemeRefreshVariant } from '../../services';
|
|
14
13
|
import { disableFormControlHoverStyles } from '../form/form.styles';
|
|
15
|
-
export var euiDatePickerRangeStyles = function euiDatePickerRangeStyles(
|
|
16
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
|
|
17
|
-
var refreshStyles = "\n .euiPopover:last-child {\n ".concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n\n * {\n ").concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n }\n ");
|
|
14
|
+
export var euiDatePickerRangeStyles = function euiDatePickerRangeStyles() {
|
|
18
15
|
return {
|
|
19
|
-
euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;}",
|
|
16
|
+
euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;}.euiPopover:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), " *{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";}};label:euiDatePickerRange;")
|
|
20
17
|
};
|
|
21
18
|
};
|
|
22
19
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -29,7 +26,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
29
26
|
};
|
|
30
27
|
export var euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineStyles(euiThemeContext) {
|
|
31
28
|
var euiTheme = euiThemeContext.euiTheme;
|
|
32
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
|
|
33
29
|
|
|
34
30
|
// Use a container query to stack date pickers vertically if the container is
|
|
35
31
|
// not wide enough to fit both. We need a fn for this to render two width queries,
|
|
@@ -39,12 +35,12 @@ export var euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineSty
|
|
|
39
35
|
return "\n display: block;\n container-type: inline-size;\n\n .euiFormControlLayout__childrenWrapper {\n /* Use static px widths for now, since render behavior comes from a third party library */\n @container (max-width: ".concat(datePickerWidth * 2 + delimiterWidth, "px) {\n /* Unset grid display */\n display: block !important;\n\n /* Center and point the default delimiter arrow downwards */\n .euiFormControlLayoutDelimited__delimiter .euiIcon {\n transform: rotate(90deg);\n margin-inline: auto;\n }\n }\n }");
|
|
40
36
|
};
|
|
41
37
|
return {
|
|
42
|
-
euiDatePickerRangeInline: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " ", logicalCSS('max-width', '100%'), " border:none;padding:0
|
|
38
|
+
euiDatePickerRangeInline: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", logicalCSS('height', 'auto'), " ", logicalCSS('width', 'fit-content'), " ", logicalCSS('max-width', '100%'), " border:none;padding:0;.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", logicalCSS('height', 'auto'), " ", logicalCSS('padding-bottom', euiTheme.size.s), ";}&::after{display:none;}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
|
|
43
39
|
responsive: /*#__PURE__*/css(containerQuery(268), ";;label:responsive;"),
|
|
44
40
|
responsiveWithTimeSelect: /*#__PURE__*/css(containerQuery(374), ";;label:responsiveWithTimeSelect;"),
|
|
45
41
|
shadow: /*#__PURE__*/css(".euiFormControlLayoutDelimited{", euiShadowMedium(euiThemeContext, {
|
|
46
42
|
borderAllInHighContrastMode: true
|
|
47
|
-
}),
|
|
43
|
+
}), disableFormControlHoverStyles(), " .euiFormControlLayout__childrenWrapper{box-shadow:none;", disableFormControlHoverStyles(), ";}};label:shadow;"),
|
|
48
44
|
// Applied directly to EuiFormControlLayout so we can check if `disabled`
|
|
49
45
|
// and allow the disabled background-color to take precedence
|
|
50
46
|
formLayout: {
|
|
@@ -8,10 +8,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { makeHighContrastColor } from '../../../services';
|
|
12
12
|
import { euiFontSize, euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
13
13
|
import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
|
|
14
|
-
import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles,
|
|
14
|
+
import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles, euiFormControlFocusStyles, euiFormControlHighlightBorderStyles } from '../../form/form.styles';
|
|
15
15
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
16
16
|
name: "1e4qgxg-euiSuperDatePicker__range",
|
|
17
17
|
styles: "flex-grow:1;overflow:hidden;label:euiSuperDatePicker__range;"
|
|
@@ -22,7 +22,6 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
22
22
|
};
|
|
23
23
|
export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
|
|
24
24
|
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
|
|
26
25
|
var forms = euiFormVariables(euiThemeContext);
|
|
27
26
|
var inputWidth = euiTheme.base * 30;
|
|
28
27
|
var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
|
|
@@ -42,18 +41,6 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
42
41
|
// Needs updating colors
|
|
43
42
|
var needsUpdatingBackgroundColor = euiTheme.components.superDatePickerBackgroundSuccees;
|
|
44
43
|
var needsUpdatingTextColor = makeHighContrastColor(euiTheme.colors.success)(needsUpdatingBackgroundColor);
|
|
45
|
-
var formLayoutStyles = "\n /* using wrapper hover styles instead */\n .euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover {\n outline: none;\n }\n\n .euiPopover {\n /* mimic input border-radius */\n border-radius: ".concat(forms.controlBorderRadius, ";\n\n &:first-child {\n ").concat(logicalCSS('border-top-left-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-left-radius', 'inherit'), "\n }\n\n &:last-child {\n ").concat(logicalCSS('border-top-right-radius', 'inherit'), "\n ").concat(logicalCSS('border-bottom-right-radius', 'inherit'), "\n }\n }\n\n .euiDatePopoverButton {\n background-color: transparent;\n border-radius: inherit;\n }\n ");
|
|
46
|
-
var popoverButtonFocusStyles = isRefreshVariant ? "\n ".concat(euiFormControlFocusStyles(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, euiTheme.colors.primary), "\n ");
|
|
47
|
-
var invalidStyles = isRefreshVariant ? "\n &:has(.euiPopover-isOpen, .euiDatePopoverButton:focus) {\n --euiFormControlStateColor: ".concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n\n &:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)) {\n ").concat(euiFormControlInvalidStyles(euiThemeContext), "\n }\n\n .euiDatePopoverButton:focus,\n .euiPopover-isOpen .euiDatePopoverButton {\n ").concat(euiFormControlFocusStyles(euiThemeContext), "\n }\n ") : "\n ".concat(euiFormControlInvalidStyles(euiThemeContext), "\n ");
|
|
48
|
-
var needsUpdatingStyles = "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n --euiFormControlStateHoverColor: ").concat(euiTheme.colors.success, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n ").concat(euiFormControlHighlightBorderStyles, "\n \n &:has(.euiPopover-isOpen),\n &:focus-within {\n --euiFormControlStateColor: ").concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n ");
|
|
49
|
-
var needsUpdatingPopoverButtonFocusStyles = isRefreshVariant ? "\n ".concat(euiFormControlFocusStyles(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, euiTheme.colors.success), "\n\n ").concat(highContrastModeStyles(euiThemeContext, {
|
|
50
|
-
// Force the fill color of all icons/svgs to give a bit more indication of state,
|
|
51
|
-
// since Windows high contrast themes otherwise override background/text color
|
|
52
|
-
forced: "\n svg,\n & + * svg {\n fill: ".concat(euiTheme.colors.success, ";\n }\n ")
|
|
53
|
-
}), "\n ");
|
|
54
|
-
var prettyFormatStyles = "\n --euiFormControlStateHoverColor: ".concat(forms.borderHovered, ";\n ").concat(euiFormControlDefaultShadow(euiThemeContext), "\n \n ").concat(highContrastModeStyles(euiThemeContext, {
|
|
55
|
-
preferred: "\n border: none;\n "
|
|
56
|
-
}), "\n\n &:focus {\n ").concat(euiFormControlFocusStyles(euiThemeContext), "\n }\n ");
|
|
57
44
|
return {
|
|
58
45
|
euiSuperDatePicker: /*#__PURE__*/css("display:flex;gap:", gap, ";", logicalCSS('max-width', '100%'), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), ";};label:euiSuperDatePicker;"),
|
|
59
46
|
widths: {
|
|
@@ -78,23 +65,22 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
78
65
|
isQuickSelectOnly: /*#__PURE__*/css(logicalCSS('min-width', 0), ".euiFormControlLayout__prepend{", logicalCSS('max-width', 'none'), ";}.euiFormControlLayoutDelimited__delimiter:first-child{", logicalCSS('padding-horizontal', 0), ";};label:isQuickSelectOnly;"),
|
|
79
66
|
euiSuperDatePicker__range: _ref,
|
|
80
67
|
euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
|
|
81
|
-
euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;",
|
|
68
|
+
euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;--euiFormControlStateHoverColor:", forms.borderHovered, ";", euiFormControlDefaultShadow(euiThemeContext), " &:focus{", euiFormControlFocusStyles(euiThemeContext), ";}", highContrastModeStyles(euiThemeContext, {
|
|
69
|
+
preferred: "\n border: none;\n "
|
|
70
|
+
}), ";;label:euiSuperDatePicker__prettyFormat;"),
|
|
82
71
|
// Form states
|
|
83
72
|
states: {
|
|
84
|
-
euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";",
|
|
85
|
-
none:
|
|
73
|
+
euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", highContrastModeStyles(euiThemeContext, {
|
|
74
|
+
none: "\n ".concat(euiFormControlDefaultShadow(euiThemeContext), "\n box-shadow: none;\n "),
|
|
86
75
|
preferred: 'border: none;'
|
|
87
|
-
}), " ",
|
|
88
|
-
default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";",
|
|
89
|
-
withBorder: false,
|
|
90
|
-
withBackgroundColor: false
|
|
91
|
-
}), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", popoverButtonFocusStyles, ";};label:default;"),
|
|
76
|
+
}), ".euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover{outline:none;}.euiPopover{border-radius:", forms.controlBorderRadius, ";&:first-child{", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-bottom-left-radius', 'inherit'), ";}&:last-child{", logicalCSS('border-top-right-radius', 'inherit'), " ", logicalCSS('border-bottom-right-radius', 'inherit'), ";}}.euiDatePopoverButton{background-color:transparent;border-radius:inherit;}};label:euiSuperDatePicker__formControlLayout;"),
|
|
77
|
+
default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:default;"),
|
|
92
78
|
disabled: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", euiFormControlDisabledStyles(euiThemeContext), ";};label:disabled;"),
|
|
93
|
-
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";",
|
|
94
|
-
needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";",
|
|
79
|
+
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";&:has(.euiPopover-isOpen, .euiDatePopoverButton:focus){--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}&:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)){", euiFormControlInvalidStyles(euiThemeContext), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";}};label:invalid;"),
|
|
80
|
+
needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateColor:", euiTheme.colors.success, ";--euiFormControlStateHoverColor:", euiTheme.colors.success, ";--euiFormControlStateWidth:", euiTheme.border.width.thin, ";color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", euiFormControlHighlightBorderStyles, " &:has(.euiPopover-isOpen),&:focus-within{--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext, {
|
|
95
81
|
withBorder: false,
|
|
96
82
|
withBackgroundColor: false
|
|
97
|
-
}), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{",
|
|
83
|
+
}), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:needsUpdating;")
|
|
98
84
|
}
|
|
99
85
|
};
|
|
100
86
|
};
|
|
@@ -25,7 +25,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import PropTypes from "prop-types";
|
|
27
27
|
import classNames from 'classnames';
|
|
28
|
-
import { EuiThemeProvider, useEuiMemoizedStyles, useEuiTheme, useGeneratedHtmlId
|
|
28
|
+
import { EuiThemeProvider, useEuiMemoizedStyles, useEuiTheme, useGeneratedHtmlId } from '../../services';
|
|
29
29
|
import { useEuiI18n } from '../i18n';
|
|
30
30
|
import { useInnerText } from '../inner_text';
|
|
31
31
|
import { EuiNotificationBadge } from '../badge';
|
|
@@ -65,20 +65,17 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
65
65
|
var numActiveFiltersDefined = !!numActiveFilters;
|
|
66
66
|
var euiThemeContext = useEuiTheme();
|
|
67
67
|
var colorMode = euiThemeContext.colorMode;
|
|
68
|
-
var isRefreshVariant = useEuiThemeRefreshVariant('buttonVariant');
|
|
69
68
|
|
|
70
69
|
// assumption about type of usage based on icon usage
|
|
71
70
|
// requires manual override to apply correct aria attributes for more custom usages
|
|
72
71
|
var isCollapsible = !isToggle && iconType === 'arrowDown';
|
|
73
|
-
// NOTE: in Amsterdam `hasActiveFilters` applies selected styling while `isSelected` does not.
|
|
74
|
-
// With Borealis this is more granular as EuiFilterButton now supports proper toggle buttons next to regular buttons
|
|
75
72
|
var isExpanded = isCollapsible && (isSelected !== null && isSelected !== void 0 ? isSelected : hasActiveFilters);
|
|
76
73
|
var styles = useEuiMemoizedStyles(euiFilterButtonStyles);
|
|
77
74
|
var focusColorStyles = useEuiMemoizedStyles(_compressedButtonFocusColors);
|
|
78
|
-
var toggleVariantStyles =
|
|
79
|
-
var cssStyles = [styles.euiFilterButton,
|
|
75
|
+
var toggleVariantStyles = [isToggle && styles.buttonType.toggle, !isToggle && !isDisabled && focusColorStyles[color], !isToggle && styles.buttonType.default];
|
|
76
|
+
var cssStyles = [styles.euiFilterButton, hasActiveFilters && styles.hasActiveFilters].concat(toggleVariantStyles);
|
|
80
77
|
var wrapperStyles = useEuiMemoizedStyles(euiFilterButtonWrapperStyles);
|
|
81
|
-
var wrapperCssStyles = [wrapperStyles.wrapper,
|
|
78
|
+
var wrapperCssStyles = [wrapperStyles.wrapper, withNext && styles.withNext, numFiltersDefined && styles.hasNotification, isToggle && wrapperStyles.hasToggle, !grow && styles.noGrow];
|
|
82
79
|
var _useEuiMemoizedStyles = useEuiMemoizedStyles(euiFilterButtonChildStyles),
|
|
83
80
|
contentStyles = _useEuiMemoizedStyles.content,
|
|
84
81
|
textStyles = _useEuiMemoizedStyles.text,
|
|
@@ -88,7 +85,7 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
88
85
|
'euiFilterButton-isSelected': isSelected,
|
|
89
86
|
'euiFilterButton-hasActiveFilters': hasActiveFilters,
|
|
90
87
|
'euiFilterButton-hasNotification': numFiltersDefined,
|
|
91
|
-
'euiFilterButton-isToggle':
|
|
88
|
+
'euiFilterButton-isToggle': isToggle
|
|
92
89
|
}, className);
|
|
93
90
|
|
|
94
91
|
/**
|
|
@@ -110,9 +107,9 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
110
107
|
color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
|
|
111
108
|
role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
|
|
112
109
|
}, badgeCount);
|
|
113
|
-
var badgeElement = showBadge &&
|
|
110
|
+
var badgeElement = showBadge && ___EmotionJSX(EuiThemeProvider, {
|
|
114
111
|
colorMode: isToggle && isSelected ? 'INVERSE' : colorMode
|
|
115
|
-
}, badgeContent)
|
|
112
|
+
}, badgeContent);
|
|
116
113
|
|
|
117
114
|
/**
|
|
118
115
|
* Text
|
|
@@ -8,21 +8,19 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
12
|
-
import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate, highContrastModeStyles, preventForcedColors, euiButtonEmptyColor } from '../../global_styling';
|
|
11
|
+
import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate, highContrastModeStyles, preventForcedColors } from '../../global_styling';
|
|
13
12
|
import { cssSupportsHasWithNextSibling } from '../../global_styling/functions/supports';
|
|
14
13
|
import { euiFormVariables } from '../form/form.styles';
|
|
15
14
|
export var euiFilterButtonDisplay = function euiFilterButtonDisplay(euiThemeContext) {
|
|
16
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
17
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
18
16
|
return {
|
|
19
17
|
flex: '1 1 auto',
|
|
20
18
|
minInlineSize: mathWithUnits(euiTheme.size.base, function (x) {
|
|
21
|
-
return x *
|
|
19
|
+
return x * 2.75;
|
|
22
20
|
})
|
|
23
21
|
};
|
|
24
22
|
};
|
|
25
|
-
var
|
|
23
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
26
24
|
name: "jkp921-noGrow",
|
|
27
25
|
styles: "flex-grow:0;label:noGrow;"
|
|
28
26
|
} : {
|
|
@@ -32,46 +30,30 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
32
30
|
};
|
|
33
31
|
export var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContext) {
|
|
34
32
|
var euiTheme = euiThemeContext.euiTheme;
|
|
35
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
36
|
-
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
37
|
-
controlHeight = _euiFormVariables.controlHeight,
|
|
38
|
-
borderColor = _euiFormVariables.borderColor;
|
|
39
33
|
var selectedSelector = '.euiFilterButton-isSelected';
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
// Pseudo elements create borders without affecting width. We also prefer them
|
|
43
|
-
// over box-shadow for Windows high contrast theme compatibility
|
|
44
|
-
var leftBorder = "\n &::before {\n content: '';\n position: absolute;\n ".concat(logicalCSS('right', '100%'), "\n ").concat(logicalCSS('vertical', 0), "\n ").concat(logicalCSS('border-left', border), "\n }\n ");
|
|
45
|
-
// Bottom borders are needed for responsive flex-wrap behavior
|
|
46
|
-
var bottomBorder = "\n &::after {\n content: '';\n position: absolute;\n ".concat(logicalCSS('top', '100%'), "\n ").concat(logicalCSS('horizontal', 0), "\n ").concat(logicalCSS('border-bottom', border), "\n }\n ");
|
|
47
|
-
var buttonStyles = isRefreshVariant ? "\n ".concat(logicalCSS('width', '100%'), "\n\n &:not(").concat(selectedSelector, ") {\n &:hover,\n &:active {\n .euiFilterButton__notification[class*=\"subdued\"] {\n background-color: ").concat(euiTheme.components.filterButtonBadgeBackgroundHover, "\n }\n }\n }\n ") : "\n ".concat(logicalCSS('height', controlHeight), "\n border-radius: 0;\n ").concat(leftBorder, "\n ").concat(bottomBorder, "\n\n /* :not(:disabled) specificity needed to override EuiButtonEmpty styles */\n &:hover:not(:disabled),\n &:focus:not(:disabled) {\n /* Remove underline from whole button so notifications don't get the underline */\n text-decoration: none;\n\n .euiFilterButton__text {\n /* And put it only on the actual text part */\n text-decoration: underline;\n }\n }\n ");
|
|
48
|
-
var toggleTypeStyles = isRefreshVariant ? "\n ".concat(euiFilterButtonDisplay(euiThemeContext), ";\n\n ").concat(highContrastModeStyles(euiThemeContext, {
|
|
49
|
-
forced: "\n &:is(".concat(selectedSelector, ") {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n }\n ")
|
|
50
|
-
}), "\n ") : "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n padding: 0;\n\n &:is(").concat(selectedSelector, ") {\n color: ").concat(euiButtonEmptyColor(euiThemeContext, 'text').color, ";\n background-color: transparent;\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n ");
|
|
51
|
-
var withNextSelector = isRefreshVariant ? '& + .euiFilterButton__wrapper' : '.euiFilterButton__wrapper:has(&) + .euiFilterButton__wrapper';
|
|
52
|
-
// handles display of borders between buttons
|
|
53
|
-
var withNextStyles = isRefreshVariant ? "\n &::before {\n border: none;\n }\n\n ".concat(cssSupportsHasWithNextSibling("\n &:has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), "\n ") : "\n .euiFilterButton {\n &::before {\n border: none;\n }\n }\n ";
|
|
34
|
+
var withNextSelector = '& + .euiFilterButton__wrapper';
|
|
54
35
|
return {
|
|
55
|
-
euiFilterButton: /*#__PURE__*/css(
|
|
36
|
+
euiFilterButton: /*#__PURE__*/css("position:relative;", logicalCSS('width', '100%'), " &:not(", selectedSelector, "){&:hover,&:active{.euiFilterButton__notification[class*='subdued']{background-color:", euiTheme.components.filterButtonBadgeBackgroundHover, ";}}};label:euiFilterButton;"),
|
|
56
37
|
buttonType: {
|
|
57
|
-
default: /*#__PURE__*/css(
|
|
58
|
-
toggle: /*#__PURE__*/css("&:focus-visible{outline-offset:", mathWithUnits(euiTheme.focus.width, function (x) {
|
|
59
|
-
return
|
|
60
|
-
}), ";}",
|
|
38
|
+
default: /*#__PURE__*/css("border-radius:0;&:focus-visible{z-index:1;outline-offset:-", euiTheme.border.width.thick, ";border-radius:", euiTheme.border.radius.small, ";transition:none;};label:default;"),
|
|
39
|
+
toggle: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " &:focus-visible{outline-offset:", mathWithUnits(euiTheme.focus.width, function (x) {
|
|
40
|
+
return x / 2;
|
|
41
|
+
}), ";}", highContrastModeStyles(euiThemeContext, {
|
|
42
|
+
forced: "\n &:is(".concat(selectedSelector, ") {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n }\n ")
|
|
43
|
+
}), ";;label:toggle;")
|
|
61
44
|
},
|
|
62
|
-
withNext: /*#__PURE__*/css(withNextSelector, "{", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)),
|
|
63
|
-
noGrow:
|
|
45
|
+
withNext: /*#__PURE__*/css(withNextSelector, "{", cssSupportsHasWithNextSibling("\n &:has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), ";", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)), "&::before{border:none;}};label:withNext;"),
|
|
46
|
+
noGrow: _ref4,
|
|
64
47
|
hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
65
48
|
return x * 6;
|
|
66
49
|
})), ";;label:hasNotification;"),
|
|
67
|
-
hasActiveFilters: /*#__PURE__*/css("font-weight:",
|
|
50
|
+
hasActiveFilters: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.medium, ";;label:hasActiveFilters;")
|
|
68
51
|
};
|
|
69
52
|
};
|
|
70
53
|
export var euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(euiThemeContext) {
|
|
71
54
|
var euiTheme = euiThemeContext.euiTheme;
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
borderColor = _euiFormVariables2.borderColor;
|
|
55
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
56
|
+
borderColor = _euiFormVariables.borderColor;
|
|
75
57
|
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor);
|
|
76
58
|
|
|
77
59
|
// Pseudo elements create borders without affecting width. We also prefer them
|
|
@@ -80,8 +62,8 @@ export var euiFilterButtonWrapperStyles = function euiFilterButtonWrapperStyles(
|
|
|
80
62
|
// Bottom borders are needed for responsive flex-wrap behavior
|
|
81
63
|
var bottomBorder = "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n ".concat(logicalCSS('border-bottom', border), "\n pointer-events: none;\n }\n ");
|
|
82
64
|
return {
|
|
83
|
-
wrapper: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " position:relative;display:flex;align-items:center;",
|
|
84
|
-
hasToggle: /*#__PURE__*/css(logicalCSS('padding-horizontal',
|
|
65
|
+
wrapper: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " position:relative;display:flex;align-items:center;", leftBorder, " ", bottomBorder, " ", logicalCSS('padding-vertical', euiTheme.border.width.thin), ";;label:wrapper;"),
|
|
66
|
+
hasToggle: /*#__PURE__*/css(logicalCSS('padding-horizontal', euiTheme.border.width.thin), cssSupportsHasWithNextSibling("\n &:not([class*=\"withNext\"]):has(+ :not(&)) {\n ".concat(logicalCSS('padding-right', '0'), "\n }\n ")), ";;label:hasToggle;")
|
|
85
67
|
};
|
|
86
68
|
};
|
|
87
69
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -100,18 +82,25 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
100
82
|
styles: "cursor:inherit;forced-color-adjust:auto;&{transition:none;};label:euiFilterButton__notification;",
|
|
101
83
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
102
84
|
};
|
|
85
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
86
|
+
name: "kc7mgj-euiFilterButton__content",
|
|
87
|
+
styles: ".euiThemeProvider{display:inline-flex;};label:euiFilterButton__content;"
|
|
88
|
+
} : {
|
|
89
|
+
name: "kc7mgj-euiFilterButton__content",
|
|
90
|
+
styles: ".euiThemeProvider{display:inline-flex;};label:euiFilterButton__content;",
|
|
91
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
92
|
+
};
|
|
103
93
|
export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(euiThemeContext) {
|
|
104
94
|
var euiTheme = euiThemeContext.euiTheme;
|
|
105
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
106
95
|
return {
|
|
107
96
|
content: {
|
|
108
|
-
euiFilterButton__content:
|
|
97
|
+
euiFilterButton__content: _ref3,
|
|
109
98
|
hasIcon: /*#__PURE__*/css("&>.euiIcon:last-child{", logicalCSS('margin-left', 'auto'), ";};label:hasIcon;")
|
|
110
99
|
},
|
|
111
100
|
text: {
|
|
112
101
|
euiFilterButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), ";;label:euiFilterButton__text;"),
|
|
113
102
|
hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
114
|
-
return x *
|
|
103
|
+
return x * 2;
|
|
115
104
|
})), ";;label:hasNotification;")
|
|
116
105
|
},
|
|
117
106
|
notification: {
|