@elastic/eui 108.0.0 → 109.1.0-snapshot.1763390960850
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/accessibility/skip_link/skip_link.js +10 -1
- 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/bottom_bar/bottom_bar.js +12 -2
- package/es/components/button/button.js +20 -25
- package/es/components/button/button_display/_button_display.js +32 -30
- package/es/components/button/button_display/_button_display.styles.js +4 -4
- package/es/components/button/button_empty/button_empty.js +32 -14
- package/es/components/button/button_group/button_group.js +49 -31
- package/es/components/button/button_group/button_group_button.js +16 -5
- package/es/components/button/button_group/button_group_button.styles.js +12 -8
- package/es/components/button/button_icon/button_icon.js +30 -6
- package/es/components/card/card.js +20 -25
- package/es/components/card/card_select/card_select.js +20 -25
- package/es/components/code/code_block_virtualized.js +9 -7
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +13 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +35 -12
- package/es/components/datagrid/body/data_grid_body.js +23 -6
- package/es/components/datagrid/body/data_grid_body_custom.js +23 -6
- package/es/components/datagrid/body/data_grid_body_virtualized.js +23 -6
- package/es/components/datagrid/body/header/column_actions.js +5 -21
- package/es/components/datagrid/body/header/data_grid_header_cell.js +29 -10
- 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.js +36 -19
- package/es/components/datagrid/controls/column_sorting.js +23 -6
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +13 -7
- package/es/components/datagrid/data_grid.js +5 -1
- package/es/components/datagrid/utils/in_memory.js +25 -7
- package/es/components/date_picker/auto_refresh/auto_refresh.js +11 -2
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +31 -5
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +24 -3
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_content.js +26 -4
- package/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +29 -3
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +98 -0
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.styles.js +19 -0
- package/es/components/date_picker/super_date_picker/pretty_duration.js +1 -8
- package/es/components/date_picker/super_date_picker/relative_utils.js +8 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.js +118 -26
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +185 -0
- package/es/components/facet/facet_button.js +9 -19
- package/es/components/filter_group/filter_button.js +14 -1
- package/es/components/flyout/flyout.js +27 -10
- package/es/components/form/file_picker/file_picker.styles.js +3 -3
- package/es/components/form/form_control_button/form_control_button.js +13 -7
- package/es/components/header/header_links/header_link.js +13 -7
- package/es/components/header/header_section/header_section_item_button.js +13 -7
- package/es/components/icon/assets/boxes_vertical.js +1 -1
- package/es/components/icon/assets/checkInCircleFilled.js +1 -2
- package/es/components/icon/assets/errorFilled.js +1 -2
- package/es/components/icon/assets/paper_clip.js +1 -1
- package/es/components/icon/assets/streams_wired.js +3 -2
- package/es/components/icon/assets/warningFilled.js +1 -2
- package/es/components/icon/icon_map.js +3 -6
- package/es/components/list_group/list_group.js +13 -1
- package/es/components/list_group/list_group_item.js +13 -1
- package/es/components/list_group/list_group_item_extra_action.js +13 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +15 -2
- package/es/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/es/components/pagination/pagination_button.js +13 -7
- package/es/components/popover/popover.js +22 -16
- package/es/components/provider/component_defaults/component_defaults.js +22 -2
- package/es/components/table/table_row.styles.js +1 -1
- package/es/components/tool_tip/tool_tip.js +24 -24
- package/es/global_styling/index.js +2 -1
- package/es/global_styling/mixins/_button.js +1 -1
- package/es/global_styling/utility/selectors.js +9 -0
- package/es/services/focus_trap/focus_trap_pub_sub.js +74 -0
- package/es/services/focus_trap/index.js +9 -0
- package/es/services/hooks/index.js +2 -1
- package/es/services/hooks/useEuiDisabledElement.js +195 -0
- package/es/services/index.js +1 -0
- package/es/services/popover/reposition_on_scroll.js +61 -0
- package/es/services/theme/high_contrast_overrides.js +5 -1
- package/es/test/cypress/index.d.ts +12 -0
- package/es/test/cypress/index.js +9 -0
- package/es/test/cypress/matchers.d.ts +20 -0
- package/es/test/cypress/matchers.js +54 -0
- package/es/test/cypress/test_reposition_on_scroll.js +66 -0
- package/es/test/enzyme/enzyme_matchers.d.ts +36 -0
- package/es/test/enzyme/enzyme_matchers.js +43 -0
- package/es/test/enzyme/index.d.ts +14 -0
- package/es/test/enzyme/index.js +10 -0
- package/es/test/rtl/index.d.ts +9 -1
- package/es/test/rtl/index.js +2 -1
- package/es/test/rtl/matchers.d.ts +36 -0
- package/es/test/rtl/matchers.js +82 -0
- package/es/utils/element_can_be_disabled.js +16 -0
- package/es/utils/index.js +2 -1
- package/eui.d.ts +604 -183
- package/i18ntokens.json +1357 -1231
- package/lib/components/accessibility/skip_link/skip_link.js +10 -1
- 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/bottom_bar/bottom_bar.js +11 -1
- package/lib/components/button/button.js +21 -26
- package/lib/components/button/button_display/_button_display.js +31 -29
- package/lib/components/button/button_display/_button_display.styles.js +4 -4
- package/lib/components/button/button_empty/button_empty.js +31 -13
- package/lib/components/button/button_group/button_group.js +49 -31
- package/lib/components/button/button_group/button_group_button.js +16 -5
- package/lib/components/button/button_group/button_group_button.styles.js +10 -6
- package/lib/components/button/button_icon/button_icon.js +29 -5
- package/lib/components/card/card.js +21 -26
- package/lib/components/card/card_select/card_select.js +21 -26
- package/lib/components/code/code_block_virtualized.js +9 -7
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +13 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +35 -12
- package/lib/components/datagrid/body/data_grid_body.js +23 -6
- package/lib/components/datagrid/body/data_grid_body_custom.js +23 -6
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +23 -6
- package/lib/components/datagrid/body/header/column_actions.js +5 -21
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +29 -10
- 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.js +36 -19
- package/lib/components/datagrid/controls/column_sorting.js +23 -6
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +13 -7
- package/lib/components/datagrid/data_grid.js +5 -1
- package/lib/components/datagrid/utils/in_memory.js +25 -7
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +12 -3
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +30 -4
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +24 -3
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_content.js +26 -4
- package/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +29 -3
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +104 -0
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.styles.js +25 -0
- package/lib/components/date_picker/super_date_picker/pretty_duration.js +2 -9
- package/lib/components/date_picker/super_date_picker/relative_utils.js +9 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +118 -26
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +193 -0
- package/lib/components/facet/facet_button.js +9 -19
- package/lib/components/filter_group/filter_button.js +14 -1
- package/lib/components/flyout/flyout.js +26 -9
- package/lib/components/form/file_picker/file_picker.styles.js +3 -3
- package/lib/components/form/form_control_button/form_control_button.js +13 -7
- package/lib/components/header/header_links/header_link.js +13 -7
- package/lib/components/header/header_section/header_section_item_button.js +13 -7
- package/lib/components/icon/assets/boxes_vertical.js +1 -1
- package/lib/components/icon/assets/checkInCircleFilled.js +1 -2
- package/lib/components/icon/assets/errorFilled.js +1 -2
- package/lib/components/icon/assets/paper_clip.js +1 -1
- package/lib/components/icon/assets/streams_wired.js +3 -2
- package/lib/components/icon/assets/warningFilled.js +1 -2
- package/lib/components/icon/icon_map.js +3 -6
- package/lib/components/icon/svgs/boxes_vertical.svg +1 -1
- package/lib/components/icon/svgs/checkInCircleFilled.svg +1 -1
- package/lib/components/icon/svgs/errorFilled.svg +1 -1
- package/lib/components/icon/svgs/paper_clip.svg +3 -3
- package/lib/components/icon/svgs/warningFilled.svg +1 -1
- package/lib/components/list_group/list_group.js +13 -1
- package/lib/components/list_group/list_group_item.js +13 -1
- package/lib/components/list_group/list_group_item_extra_action.js +13 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +15 -2
- package/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/lib/components/pagination/pagination_button.js +13 -7
- package/lib/components/popover/popover.js +21 -15
- package/lib/components/provider/component_defaults/component_defaults.js +22 -2
- package/lib/components/table/table_row.styles.js +1 -1
- package/lib/components/tool_tip/tool_tip.js +24 -24
- package/lib/global_styling/index.js +16 -1
- package/lib/global_styling/mixins/_button.js +1 -1
- package/lib/global_styling/utility/selectors.js +15 -0
- package/lib/services/focus_trap/focus_trap_pub_sub.js +80 -0
- package/lib/services/focus_trap/index.js +12 -0
- package/lib/services/hooks/index.js +18 -1
- package/lib/services/hooks/useEuiDisabledElement.js +199 -0
- package/lib/services/index.js +8 -0
- package/lib/services/popover/reposition_on_scroll.js +67 -0
- package/lib/services/theme/high_contrast_overrides.js +5 -1
- package/lib/test/cypress/index.d.ts +12 -0
- package/lib/test/cypress/index.js +18 -0
- package/lib/test/cypress/matchers.d.ts +20 -0
- package/lib/test/cypress/matchers.js +61 -0
- package/lib/test/cypress/test_reposition_on_scroll.js +69 -0
- package/lib/test/enzyme/enzyme_matchers.d.ts +36 -0
- package/lib/test/enzyme/enzyme_matchers.js +49 -0
- package/lib/test/enzyme/index.d.ts +14 -0
- package/lib/test/enzyme/index.js +24 -0
- package/lib/test/rtl/index.d.ts +9 -1
- package/lib/test/rtl/index.js +24 -2
- package/lib/test/rtl/matchers.d.ts +36 -0
- package/lib/test/rtl/matchers.js +86 -0
- package/lib/utils/element_can_be_disabled.js +22 -0
- package/lib/utils/index.js +14 -1
- 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/bottom_bar/bottom_bar.js +12 -2
- package/optimize/es/components/button/button_display/_button_display.js +24 -12
- package/optimize/es/components/button/button_display/_button_display.styles.js +4 -4
- package/optimize/es/components/button/button_empty/button_empty.js +18 -6
- package/optimize/es/components/button/button_group/button_group.js +10 -5
- package/optimize/es/components/button/button_group/button_group_button.js +2 -3
- package/optimize/es/components/button/button_group/button_group_button.styles.js +12 -8
- package/optimize/es/components/button/button_icon/button_icon.js +17 -5
- package/optimize/es/components/code/code_block_virtualized.js +9 -7
- 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.js +36 -19
- package/optimize/es/components/datagrid/data_grid.js +5 -1
- package/optimize/es/components/datagrid/utils/in_memory.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -4
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_content.js +7 -3
- package/optimize/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +10 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +97 -0
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.styles.js +19 -0
- package/optimize/es/components/date_picker/super_date_picker/pretty_duration.js +1 -8
- package/optimize/es/components/date_picker/super_date_picker/relative_utils.js +8 -0
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +49 -25
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +185 -0
- package/optimize/es/components/flyout/flyout.js +27 -10
- package/optimize/es/components/form/file_picker/file_picker.styles.js +3 -3
- package/optimize/es/components/icon/assets/boxes_vertical.js +1 -1
- package/optimize/es/components/icon/assets/checkInCircleFilled.js +1 -2
- package/optimize/es/components/icon/assets/errorFilled.js +1 -2
- 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/icon/assets/warningFilled.js +1 -2
- package/optimize/es/components/icon/icon_map.js +3 -6
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/optimize/es/components/popover/popover.js +22 -16
- package/optimize/es/components/table/table_row.styles.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.js +24 -24
- package/optimize/es/global_styling/index.js +2 -1
- package/optimize/es/global_styling/mixins/_button.js +1 -1
- package/optimize/es/global_styling/utility/selectors.js +9 -0
- package/optimize/es/services/focus_trap/focus_trap_pub_sub.js +74 -0
- package/optimize/es/services/focus_trap/index.js +9 -0
- package/optimize/es/services/hooks/index.js +2 -1
- package/optimize/es/services/hooks/useEuiDisabledElement.js +192 -0
- package/optimize/es/services/index.js +1 -0
- package/optimize/es/services/popover/reposition_on_scroll.js +61 -0
- package/optimize/es/services/theme/high_contrast_overrides.js +5 -1
- package/optimize/es/test/cypress/index.d.ts +12 -0
- package/optimize/es/test/cypress/index.js +9 -0
- package/optimize/es/test/cypress/matchers.d.ts +20 -0
- package/optimize/es/test/cypress/matchers.js +54 -0
- package/optimize/es/test/cypress/test_reposition_on_scroll.js +63 -0
- package/optimize/es/test/enzyme/enzyme_matchers.d.ts +36 -0
- package/optimize/es/test/enzyme/enzyme_matchers.js +43 -0
- package/optimize/es/test/enzyme/index.d.ts +14 -0
- package/optimize/es/test/enzyme/index.js +10 -0
- package/optimize/es/test/rtl/index.d.ts +9 -1
- package/optimize/es/test/rtl/index.js +2 -1
- package/optimize/es/test/rtl/matchers.d.ts +36 -0
- package/optimize/es/test/rtl/matchers.js +82 -0
- package/optimize/es/utils/element_can_be_disabled.js +16 -0
- package/optimize/es/utils/index.js +2 -1
- 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/bottom_bar/bottom_bar.js +11 -1
- package/optimize/lib/components/button/button_display/_button_display.js +23 -11
- package/optimize/lib/components/button/button_display/_button_display.styles.js +4 -4
- package/optimize/lib/components/button/button_empty/button_empty.js +17 -5
- package/optimize/lib/components/button/button_group/button_group.js +10 -5
- package/optimize/lib/components/button/button_group/button_group_button.js +2 -3
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +10 -6
- package/optimize/lib/components/button/button_icon/button_icon.js +16 -4
- package/optimize/lib/components/code/code_block_virtualized.js +9 -7
- 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.js +36 -19
- package/optimize/lib/components/datagrid/data_grid.js +5 -1
- package/optimize/lib/components/datagrid/utils/in_memory.js +2 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +11 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_content.js +7 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +10 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +103 -0
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.styles.js +25 -0
- package/optimize/lib/components/date_picker/super_date_picker/pretty_duration.js +2 -9
- package/optimize/lib/components/date_picker/super_date_picker/relative_utils.js +9 -0
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +49 -25
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +193 -0
- package/optimize/lib/components/flyout/flyout.js +26 -9
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +3 -3
- package/optimize/lib/components/icon/assets/boxes_vertical.js +1 -1
- package/optimize/lib/components/icon/assets/checkInCircleFilled.js +1 -2
- package/optimize/lib/components/icon/assets/errorFilled.js +1 -2
- 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/assets/warningFilled.js +1 -2
- package/optimize/lib/components/icon/icon_map.js +3 -6
- package/optimize/lib/components/icon/svgs/boxes_vertical.svg +1 -1
- package/optimize/lib/components/icon/svgs/checkInCircleFilled.svg +1 -1
- package/optimize/lib/components/icon/svgs/errorFilled.svg +1 -1
- package/optimize/lib/components/icon/svgs/paper_clip.svg +3 -3
- package/optimize/lib/components/icon/svgs/warningFilled.svg +1 -1
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/optimize/lib/components/popover/popover.js +21 -15
- package/optimize/lib/components/table/table_row.styles.js +1 -1
- package/optimize/lib/components/tool_tip/tool_tip.js +24 -24
- package/optimize/lib/global_styling/index.js +16 -1
- package/optimize/lib/global_styling/mixins/_button.js +1 -1
- package/optimize/lib/global_styling/utility/selectors.js +15 -0
- package/optimize/lib/services/focus_trap/focus_trap_pub_sub.js +80 -0
- package/optimize/lib/services/focus_trap/index.js +12 -0
- package/optimize/lib/services/hooks/index.js +18 -1
- package/optimize/lib/services/hooks/useEuiDisabledElement.js +197 -0
- package/optimize/lib/services/index.js +8 -0
- package/optimize/lib/services/popover/reposition_on_scroll.js +67 -0
- package/optimize/lib/services/theme/high_contrast_overrides.js +5 -1
- package/optimize/lib/test/cypress/index.d.ts +12 -0
- package/optimize/lib/test/cypress/index.js +18 -0
- package/optimize/lib/test/cypress/matchers.d.ts +20 -0
- package/optimize/lib/test/cypress/matchers.js +61 -0
- package/optimize/lib/test/cypress/test_reposition_on_scroll.js +70 -0
- package/optimize/lib/test/enzyme/enzyme_matchers.d.ts +36 -0
- package/optimize/lib/test/enzyme/enzyme_matchers.js +50 -0
- package/optimize/lib/test/enzyme/index.d.ts +14 -0
- package/optimize/lib/test/enzyme/index.js +24 -0
- package/optimize/lib/test/rtl/index.d.ts +9 -1
- package/optimize/lib/test/rtl/index.js +24 -2
- package/optimize/lib/test/rtl/matchers.d.ts +36 -0
- package/optimize/lib/test/rtl/matchers.js +86 -0
- package/optimize/lib/utils/element_can_be_disabled.js +22 -0
- package/optimize/lib/utils/index.js +14 -1
- package/package.json +6 -5
- package/test-env/components/accessibility/skip_link/skip_link.js +10 -1
- 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/bottom_bar/bottom_bar.js +11 -1
- package/test-env/components/button/button.js +21 -26
- package/test-env/components/button/button_display/_button_display.js +31 -29
- package/test-env/components/button/button_display/_button_display.styles.js +4 -4
- package/test-env/components/button/button_empty/button_empty.js +31 -13
- package/test-env/components/button/button_group/button_group.js +49 -31
- package/test-env/components/button/button_group/button_group_button.js +16 -5
- package/test-env/components/button/button_group/button_group_button.styles.js +10 -6
- package/test-env/components/button/button_icon/button_icon.js +29 -5
- package/test-env/components/card/card.js +21 -26
- package/test-env/components/card/card_select/card_select.js +21 -26
- package/test-env/components/code/code_block_virtualized.js +9 -7
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +13 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +35 -12
- package/test-env/components/datagrid/body/data_grid_body.js +23 -6
- package/test-env/components/datagrid/body/data_grid_body_custom.js +23 -6
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +23 -6
- package/test-env/components/datagrid/body/header/column_actions.js +5 -21
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +29 -10
- 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.js +36 -19
- package/test-env/components/datagrid/controls/column_sorting.js +23 -6
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +13 -7
- package/test-env/components/datagrid/data_grid.js +5 -1
- package/test-env/components/datagrid/utils/in_memory.js +25 -7
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +12 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +30 -4
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +24 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_content.js +26 -4
- package/test-env/components/date_picker/super_date_picker/date_popover/relative_tab.js +29 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.js +103 -0
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.styles.js +25 -0
- package/test-env/components/date_picker/super_date_picker/pretty_duration.js +2 -9
- package/test-env/components/date_picker/super_date_picker/relative_utils.js +9 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +118 -26
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +193 -0
- package/test-env/components/facet/facet_button.js +9 -19
- package/test-env/components/filter_group/filter_button.js +14 -1
- package/test-env/components/form/file_picker/file_picker.styles.js +3 -3
- package/test-env/components/form/form_control_button/form_control_button.js +13 -7
- package/test-env/components/header/header_links/header_link.js +13 -7
- package/test-env/components/header/header_section/header_section_item_button.js +13 -7
- package/test-env/components/icon/assets/boxes_vertical.js +1 -1
- package/test-env/components/icon/assets/checkInCircleFilled.js +1 -2
- package/test-env/components/icon/assets/errorFilled.js +1 -2
- 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/icon/assets/warningFilled.js +1 -2
- package/test-env/components/icon/icon_map.js +3 -6
- package/test-env/components/list_group/list_group.js +13 -1
- package/test-env/components/list_group/list_group_item.js +13 -1
- package/test-env/components/list_group/list_group_item_extra_action.js +13 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +15 -2
- package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/test-env/components/pagination/pagination_button.js +13 -7
- package/test-env/components/popover/popover.js +21 -15
- package/test-env/components/provider/component_defaults/component_defaults.js +22 -2
- package/test-env/components/table/table_row.styles.js +1 -1
- package/test-env/components/tool_tip/tool_tip.js +24 -24
- package/test-env/global_styling/index.js +16 -1
- package/test-env/global_styling/mixins/_button.js +1 -1
- package/test-env/global_styling/utility/selectors.js +15 -0
- package/test-env/services/focus_trap/focus_trap_pub_sub.js +80 -0
- package/test-env/services/focus_trap/index.js +12 -0
- package/test-env/services/hooks/index.js +18 -1
- package/test-env/services/hooks/useEuiDisabledElement.js +197 -0
- package/test-env/services/index.js +8 -0
- package/test-env/services/popover/reposition_on_scroll.js +67 -0
- package/test-env/services/theme/high_contrast_overrides.js +5 -1
- package/test-env/test/cypress/index.js +18 -0
- package/test-env/test/cypress/matchers.js +61 -0
- package/test-env/test/cypress/test_reposition_on_scroll.js +70 -0
- package/test-env/test/enzyme/enzyme_matchers.js +50 -0
- package/test-env/test/enzyme/index.js +24 -0
- package/test-env/test/rtl/index.js +24 -2
- package/test-env/test/rtl/matchers.js +86 -0
- package/test-env/utils/element_can_be_disabled.js +22 -0
- package/test-env/utils/index.js +14 -1
|
@@ -116,6 +116,9 @@ EuiFacetButton.propTypes = {
|
|
|
116
116
|
* Any node, but preferably a `EuiIcon` or `EuiAvatar`
|
|
117
117
|
*/
|
|
118
118
|
icon: _propTypes.default.node,
|
|
119
|
+
/**
|
|
120
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
121
|
+
*/
|
|
119
122
|
isDisabled: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.bool]),
|
|
120
123
|
/**
|
|
121
124
|
* Force disables the button and changes the icon to a loading spinner
|
|
@@ -158,27 +161,14 @@ EuiFacetButton.propTypes = {
|
|
|
158
161
|
style: _propTypes.default.any,
|
|
159
162
|
type: _propTypes.default.any,
|
|
160
163
|
/**
|
|
161
|
-
*
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* Can only be one side `left` or `right`
|
|
166
|
-
*/
|
|
167
|
-
iconSide: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([undefined])]),
|
|
168
|
-
/**
|
|
169
|
-
* Object of props passed to the `<span>` wrapping the content's text/children only (not icon)
|
|
164
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
165
|
+
*
|
|
166
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
167
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
170
168
|
*
|
|
171
|
-
*
|
|
169
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
172
170
|
*/
|
|
173
|
-
|
|
174
|
-
className: _propTypes.default.string,
|
|
175
|
-
"aria-label": _propTypes.default.string,
|
|
176
|
-
"data-test-subj": _propTypes.default.string,
|
|
177
|
-
css: _propTypes.default.any,
|
|
178
|
-
ref: _propTypes.default.any,
|
|
179
|
-
"data-text": _propTypes.default.string
|
|
180
|
-
}).isRequired, _propTypes.default.oneOf([false])]),
|
|
181
|
-
iconSize: _propTypes.default.any,
|
|
171
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
182
172
|
className: _propTypes.default.string,
|
|
183
173
|
"aria-label": _propTypes.default.string,
|
|
184
174
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -234,5 +234,18 @@ EuiFilterButton.propTypes = {
|
|
|
234
234
|
* - accent
|
|
235
235
|
* - warning
|
|
236
236
|
*/
|
|
237
|
-
color: _propTypes.default.any
|
|
237
|
+
color: _propTypes.default.any,
|
|
238
|
+
/**
|
|
239
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
240
|
+
*/
|
|
241
|
+
isDisabled: _propTypes.default.bool,
|
|
242
|
+
/**
|
|
243
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
244
|
+
*
|
|
245
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
246
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
247
|
+
*
|
|
248
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
249
|
+
*/
|
|
250
|
+
hasAriaDisabled: _propTypes.default.bool
|
|
238
251
|
};
|
|
@@ -231,20 +231,28 @@ var EuiFlyout = exports.EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
231
231
|
}
|
|
232
232
|
return selectors;
|
|
233
233
|
}, [includeSelectorInFocusTrap, includeFixedHeadersInFocusTrap]);
|
|
234
|
-
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Finds the shards to include in the focus trap by querying by `focusTrapSelectors`.
|
|
237
|
+
*
|
|
238
|
+
* @param shouldAutoFocus Whether to auto-focus the flyout wrapper when the focus trap is activated.
|
|
239
|
+
* This is necessary because when a flyout is toggled from within a shard, the focus trap's `autoFocus`
|
|
240
|
+
* feature doesn't work. This logic manually focuses the flyout as a workaround.
|
|
241
|
+
*/
|
|
242
|
+
var findShards = (0, _react.useCallback)(function () {
|
|
243
|
+
var shouldAutoFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
235
244
|
if (focusTrapSelectors.length > 0) {
|
|
236
245
|
var shardsEls = focusTrapSelectors.flatMap(function (selector) {
|
|
237
246
|
return Array.from(document.querySelectorAll(selector));
|
|
238
247
|
});
|
|
239
248
|
setFocusTrapShards(Array.from(shardsEls));
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
});
|
|
249
|
+
if (shouldAutoFocus) {
|
|
250
|
+
shardsEls.forEach(function (shard) {
|
|
251
|
+
if (shard.contains(flyoutToggle.current)) {
|
|
252
|
+
resizeRef === null || resizeRef === void 0 || resizeRef.focus();
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
248
256
|
} else {
|
|
249
257
|
// Clear existing shards if necessary, e.g. switching to `false`
|
|
250
258
|
setFocusTrapShards(function (shards) {
|
|
@@ -252,6 +260,15 @@ var EuiFlyout = exports.EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
252
260
|
});
|
|
253
261
|
}
|
|
254
262
|
}, [focusTrapSelectors, resizeRef]);
|
|
263
|
+
(0, _react.useEffect)(function () {
|
|
264
|
+
// Auto-focus should only happen on initial flyout mount (or when the dependencies change)
|
|
265
|
+
// because it snaps focus to the flyout wrapper, which steals it from subsequently focused elements.
|
|
266
|
+
findShards(true);
|
|
267
|
+
var unsubscribe = _services.focusTrapPubSub.subscribe(function () {
|
|
268
|
+
return findShards();
|
|
269
|
+
});
|
|
270
|
+
return unsubscribe;
|
|
271
|
+
}, [findShards]);
|
|
255
272
|
var focusTrapProps = (0, _react.useMemo)(function () {
|
|
256
273
|
return _objectSpread(_objectSpread({}, _focusTrapProps), {}, {
|
|
257
274
|
shards: [].concat(_toConsumableArray(focusTrapShards), _toConsumableArray((_focusTrapProps === null || _focusTrapProps === void 0 ? void 0 : _focusTrapProps.shards) || []))
|
|
@@ -47,7 +47,7 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
|
|
|
47
47
|
fontSize = _euiFontSize.fontSize,
|
|
48
48
|
lineHeight = _euiFontSize.lineHeight;
|
|
49
49
|
return {
|
|
50
|
-
euiFilePicker: /*#__PURE__*/(0, _react.css)("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color :
|
|
50
|
+
euiFilePicker: /*#__PURE__*/(0, _react.css)("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : euiTheme.colors.borderInteractiveFormsHoverProminent, ";--euiFormControlStateStyle:", highContrastMode ? 'solid' : 'dashed', ";}&:focus-within{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
51
51
|
forced: "\n ".concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, formVariables.borderFocused), "\n ")
|
|
52
52
|
}), ";};label:euiFilePicker;"),
|
|
53
53
|
isDroppingFile: /*#__PURE__*/(0, _react.css)("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
|
|
@@ -66,8 +66,8 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
|
|
|
66
66
|
forced: "\n text-decoration: underline;\n "
|
|
67
67
|
}), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
|
|
68
68
|
},
|
|
69
|
-
euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.euiTextTruncate)(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ",
|
|
70
|
-
disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, "
|
|
69
|
+
euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.euiTextTruncate)(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", euiTheme.colors.borderBaseProminent, ");", _global_styling.euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
|
|
70
|
+
disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, "--euiFormControlStateColor:transparent;;label:disabled;"),
|
|
71
71
|
// Skip the css() on the default height to avoid generating a className
|
|
72
72
|
uncompressed: formStyles.uncompressed,
|
|
73
73
|
compressed: /*#__PURE__*/(0, _react.css)(formStyles.compressed, ";label:compressed;"),
|
|
@@ -108,13 +108,6 @@ EuiFormControlButton.propTypes = {
|
|
|
108
108
|
fullWidth: _propTypes.default.bool,
|
|
109
109
|
href: _propTypes.default.string,
|
|
110
110
|
onClick: _propTypes.default.func,
|
|
111
|
-
/**
|
|
112
|
-
* `disabled` is also allowed
|
|
113
|
-
*/
|
|
114
|
-
/**
|
|
115
|
-
* `disabled` is also allowed
|
|
116
|
-
*/
|
|
117
|
-
isDisabled: _propTypes.default.bool,
|
|
118
111
|
target: _propTypes.default.string,
|
|
119
112
|
rel: _propTypes.default.string,
|
|
120
113
|
type: _propTypes.default.any,
|
|
@@ -153,10 +146,23 @@ EuiFormControlButton.propTypes = {
|
|
|
153
146
|
"data-text": _propTypes.default.string
|
|
154
147
|
}).isRequired, _propTypes.default.oneOf([false])]),
|
|
155
148
|
iconSize: _propTypes.default.any,
|
|
149
|
+
/**
|
|
150
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
151
|
+
*/
|
|
152
|
+
isDisabled: _propTypes.default.bool,
|
|
156
153
|
className: _propTypes.default.string,
|
|
157
154
|
"aria-label": _propTypes.default.string,
|
|
158
155
|
"data-test-subj": _propTypes.default.string,
|
|
159
156
|
css: _propTypes.default.any,
|
|
157
|
+
/**
|
|
158
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
159
|
+
*
|
|
160
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
161
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
162
|
+
*
|
|
163
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
164
|
+
*/
|
|
165
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
160
166
|
/**
|
|
161
167
|
* Defines the button label when used like an input in combination with `placeholder`
|
|
162
168
|
*/
|
|
@@ -39,13 +39,6 @@ var EuiHeaderLink = exports.EuiHeaderLink = function EuiHeaderLink(_ref) {
|
|
|
39
39
|
EuiHeaderLink.propTypes = {
|
|
40
40
|
href: _propTypes.default.string,
|
|
41
41
|
onClick: _propTypes.default.func,
|
|
42
|
-
/**
|
|
43
|
-
* `disabled` is also allowed
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* `disabled` is also allowed
|
|
47
|
-
*/
|
|
48
|
-
isDisabled: _propTypes.default.bool,
|
|
49
42
|
target: _propTypes.default.string,
|
|
50
43
|
rel: _propTypes.default.string,
|
|
51
44
|
type: _propTypes.default.any,
|
|
@@ -84,10 +77,23 @@ EuiHeaderLink.propTypes = {
|
|
|
84
77
|
"data-text": _propTypes.default.string
|
|
85
78
|
}).isRequired, _propTypes.default.oneOf([false])]),
|
|
86
79
|
iconSize: _propTypes.default.any,
|
|
80
|
+
/**
|
|
81
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
82
|
+
*/
|
|
83
|
+
isDisabled: _propTypes.default.bool,
|
|
87
84
|
className: _propTypes.default.string,
|
|
88
85
|
"aria-label": _propTypes.default.string,
|
|
89
86
|
"data-test-subj": _propTypes.default.string,
|
|
90
87
|
css: _propTypes.default.any,
|
|
88
|
+
/**
|
|
89
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
90
|
+
*
|
|
91
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
92
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
93
|
+
*
|
|
94
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
95
|
+
*/
|
|
96
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
91
97
|
/**
|
|
92
98
|
* Simple prop to update color based on active state.
|
|
93
99
|
* Can be overridden with `color`
|
|
@@ -183,13 +183,6 @@ ref) {
|
|
|
183
183
|
EuiHeaderSectionItemButton.propTypes = {
|
|
184
184
|
href: _propTypes.default.string,
|
|
185
185
|
onClick: _propTypes.default.func,
|
|
186
|
-
/**
|
|
187
|
-
* `disabled` is also allowed
|
|
188
|
-
*/
|
|
189
|
-
/**
|
|
190
|
-
* `disabled` is also allowed
|
|
191
|
-
*/
|
|
192
|
-
isDisabled: _propTypes.default.bool,
|
|
193
186
|
target: _propTypes.default.string,
|
|
194
187
|
rel: _propTypes.default.string,
|
|
195
188
|
type: _propTypes.default.any,
|
|
@@ -228,10 +221,23 @@ EuiHeaderSectionItemButton.propTypes = {
|
|
|
228
221
|
"data-text": _propTypes.default.string
|
|
229
222
|
}).isRequired, _propTypes.default.oneOf([false])]),
|
|
230
223
|
iconSize: _propTypes.default.any,
|
|
224
|
+
/**
|
|
225
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
226
|
+
*/
|
|
227
|
+
isDisabled: _propTypes.default.bool,
|
|
231
228
|
className: _propTypes.default.string,
|
|
232
229
|
"aria-label": _propTypes.default.string,
|
|
233
230
|
"data-test-subj": _propTypes.default.string,
|
|
234
231
|
css: _propTypes.default.any,
|
|
232
|
+
/**
|
|
233
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
234
|
+
*
|
|
235
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
236
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
237
|
+
*
|
|
238
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
239
|
+
*/
|
|
240
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
235
241
|
/**
|
|
236
242
|
* Inserts the node into a EuiBadgeNotification and places it appropriately against the button.
|
|
237
243
|
* Or pass `true` to render a simple dot
|
|
@@ -34,7 +34,7 @@ var EuiIconBoxesVertical = function EuiIconBoxesVertical(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "M6 3a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM6 8a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-1 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z"
|
|
38
38
|
}));
|
|
39
39
|
};
|
|
40
40
|
var icon = exports.icon = EuiIconBoxesVertical;
|
|
@@ -34,8 +34,7 @@ var EuiIconCheckInCircleFilled = function EuiIconCheckInCircleFilled(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
|
|
38
|
-
d: "M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.65-10.857L6.91 9.8 4.35 7.286a.5.5 0 0 0-.7.714l2.909 2.857a.5.5 0 0 0 .7 0l5.091-5a.5.5 0 1 0-.7-.714Z"
|
|
37
|
+
d: "M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1ZM7 9.293 5.354 7.646l-.708.708L7 10.707l4.354-4.353-.707-.708L7 9.293Z"
|
|
39
38
|
}));
|
|
40
39
|
};
|
|
41
40
|
var icon = exports.icon = EuiIconCheckInCircleFilled;
|
|
@@ -34,8 +34,7 @@ var EuiIconErrorFilled = function EuiIconErrorFilled(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
|
|
38
|
-
d: "M10 1a1 1 0 0 1 .707.293l4 4A1 1 0 0 1 15 6v5a1 1 0 0 1-.293.707l-4 4A1 1 0 0 1 10 16H5a1 1 0 0 1-.707-.293l-4-4A1 1 0 0 1 0 11V6a1 1 0 0 1 .293-.707l4-4A1 1 0 0 1 5 1h5ZM4.146 5.146a.5.5 0 0 1 .708 0L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708.708L8.207 8.5l2.647 2.646a.5.5 0 0 1-.708.708L7.5 9.207l-2.646 2.647a.5.5 0 0 1-.708-.708L6.793 8.5 4.146 5.854a.5.5 0 0 1 0-.708Z"
|
|
37
|
+
d: "M10.392 1.005a1 1 0 0 1 .608.288L14.707 5a1 1 0 0 1 .293.707v4.586a1 1 0 0 1-.293.707L11 14.707a1 1 0 0 1-.707.293H5.707a1 1 0 0 1-.634-.227L5 14.707 1.293 11a1 1 0 0 1-.288-.608L1 10.293V5.707A1 1 0 0 1 1.293 5L5 1.293A1 1 0 0 1 5.707 1h4.586l.099.005ZM8 7.293 5.354 4.646l-.708.708L7.293 8l-2.647 2.646.708.707L8 8.707l2.646 2.646.707-.707L8.707 8l2.646-2.646-.707-.708L8 7.293Z"
|
|
39
38
|
}));
|
|
40
39
|
};
|
|
41
40
|
var icon = exports.icon = EuiIconErrorFilled;
|
|
@@ -34,7 +34,7 @@ var EuiIconPaperClip = function EuiIconPaperClip(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "M7 11c0 .423.105.648.229.771.123.124.348.229.771.229.423 0 .648-.105.771-.229.124-.123.229-.348.229-.771V5h1v6c0 .577-.145 1.102-.521 1.479C9.102 12.854 8.577 13 8 13c-.577 0-1.102-.145-1.479-.521C6.145 12.101 6 11.577 6 11V4c0-.719.215-1.468.716-2.046C7.226 1.364 7.996 1 9 1c1.005 0 1.773.365 2.284.954.5.578.716 1.327.716 2.046v7c0 1.103-.345 2.11-1.043 2.845C10.255 14.583 9.242 15 8 15c-1.242 0-2.255-.417-2.957-1.155C4.345 13.11 4 12.103 4 11V4h1v7c0 .897.279 1.64.768 2.155C6.253 13.666 6.99 14 8 14c1.01 0 1.747-.334 2.232-.845.49-.515.768-1.258.768-2.155V4c0-.531-.16-1.032-.472-1.392C10.227 2.26 9.745 2 9 2s-1.227.26-1.528.608C7.16 2.968 7 3.47 7 4v7Z"
|
|
38
38
|
}));
|
|
39
39
|
};
|
|
40
40
|
var icon = exports.icon = EuiIconPaperClip;
|
|
@@ -29,17 +29,18 @@ var EuiIconStreamsWired = function EuiIconStreamsWired(_ref) {
|
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
width: 16,
|
|
31
31
|
height: 16,
|
|
32
|
+
fill: "none",
|
|
32
33
|
viewBox: "0 0 16 16",
|
|
33
34
|
"aria-labelledby": titleId
|
|
34
35
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
36
|
id: titleId
|
|
36
37
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
38
|
fillRule: "evenodd",
|
|
38
|
-
d: "M13.5 1a1.5 1.5 0 1 1-1.413 2H11.5A1.5 1.5 0 0 0 10 4.
|
|
39
|
+
d: "M13.5 1a1.5 1.5 0 1 1-1.413 2H11.5A1.5 1.5 0 0 0 10 4.5V6a2.49 2.49 0 0 1-.504 1.5H9.5l-.048.06a2.58 2.58 0 0 1-.352.36c-.01.01-.021.017-.032.025a2.496 2.496 0 0 1-.142.108l-.043.03c-.055.036-.11.07-.168.103l-.047.024c-.057.03-.115.06-.175.085-.018.008-.036.014-.055.021A2.475 2.475 0 0 1 7.5 8.5h-.504c.315.418.504.936.504 1.5v1.5A1.5 1.5 0 0 0 9 13h3.087a1.5 1.5 0 1 1 0 1H9a2.5 2.5 0 0 1-2.5-2.5V10A1.5 1.5 0 0 0 5 8.5H3.913a1.5 1.5 0 1 1 0-1H7.5A1.5 1.5 0 0 0 9 6V4.5A2.5 2.5 0 0 1 11.5 2h.587A1.5 1.5 0 0 1 13.5 1Zm0 12a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm-11-5.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm11-5.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
|
|
39
40
|
clipRule: "evenodd"
|
|
40
41
|
}), (0, _react2.jsx)("path", {
|
|
41
42
|
fillRule: "evenodd",
|
|
42
|
-
d: "M13.5
|
|
43
|
+
d: "M13.5 6.5a1.5 1.5 0 1 1-1.413 2H9.948c.293-.287.536-.625.714-1h1.425a1.5 1.5 0 0 1 1.413-1Zm0 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
|
|
43
44
|
clipRule: "evenodd"
|
|
44
45
|
}));
|
|
45
46
|
};
|
|
@@ -34,8 +34,7 @@ var EuiIconWarningFilled = function EuiIconWarningFilled(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
|
|
38
|
-
d: "M8 1a1 1 0 0 1 .864.496l7 12A1 1 0 0 1 15 15H1a1 1 0 0 1-.864-1.504l7-12A1 1 0 0 1 8 1Zm.9 4.995-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995a.905.905 0 1 1 1.8 0ZM8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
|
|
37
|
+
d: "M8 1a1 1 0 0 1 .863.496l7 12A1 1 0 0 1 15 15H1a1 1 0 0 1-.864-1.504l7-12A1 1 0 0 1 8 1Zm0 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-.5-6v5h1V5h-1Z"
|
|
39
38
|
}));
|
|
40
39
|
};
|
|
41
40
|
var icon = exports.icon = EuiIconWarningFilled;
|
|
@@ -60,8 +60,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
60
60
|
changePointDetection: 'change_point_detection',
|
|
61
61
|
check: 'check',
|
|
62
62
|
checkCircle: 'checkCircle',
|
|
63
|
-
checkInCircleFilled: '
|
|
64
|
-
// NOTE: To be deprecated in favor of `checkCircle`
|
|
63
|
+
checkInCircleFilled: 'checkInCircleFilled',
|
|
65
64
|
cheer: 'cheer',
|
|
66
65
|
classificationJob: 'ml_classification_job',
|
|
67
66
|
clickLeft: 'clickLeft',
|
|
@@ -166,8 +165,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
166
165
|
eql: 'eql',
|
|
167
166
|
eraser: 'eraser',
|
|
168
167
|
error: 'error',
|
|
169
|
-
errorFilled: '
|
|
170
|
-
// NOTE: To be deprecated in favor of `error`
|
|
168
|
+
errorFilled: 'errorFilled',
|
|
171
169
|
esqlVis: 'esqlVis',
|
|
172
170
|
exit: 'exit',
|
|
173
171
|
expand: 'expand',
|
|
@@ -506,8 +504,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
506
504
|
visualizeApp: 'app_visualize',
|
|
507
505
|
vulnerabilityManagementApp: 'app_vulnerability_management',
|
|
508
506
|
warning: 'warning',
|
|
509
|
-
warningFilled: '
|
|
510
|
-
// NOTE: To be deprecated in favor of `warning`
|
|
507
|
+
warningFilled: 'warningFilled',
|
|
511
508
|
watchesApp: 'app_watches',
|
|
512
509
|
web: 'web',
|
|
513
510
|
wordWrap: 'wordWrap',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
-
<path d="
|
|
2
|
+
<path d="M6 3a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM6 8a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-1 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
2
|
+
<path d="M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1ZM7 9.293 5.354 7.646l-.708.708L7 10.707l4.354-4.353-.707-.708L7 9.293Z"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
2
|
+
<path d="M10.392 1.005a1 1 0 0 1 .608.288L14.707 5a1 1 0 0 1 .293.707v4.586a1 1 0 0 1-.293.707L11 14.707a1 1 0 0 1-.707.293H5.707a1 1 0 0 1-.634-.227L5 14.707 1.293 11a1 1 0 0 1-.288-.608L1 10.293V5.707A1 1 0 0 1 1.293 5L5 1.293A1 1 0 0 1 5.707 1h4.586l.099.005ZM8 7.293 5.354 4.646l-.708.708L7.293 8l-2.647 2.646.708.707L8 8.707l2.646 2.646.707-.707L8.707 8l2.646-2.646-.707-.708L8 7.293Z"/>
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16"
|
|
2
|
-
<path d="
|
|
3
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M7 11C7 11.4229 7.10536 11.6483 7.22852 11.7715C7.35168 11.8946 7.57707 12 8 12C8.42293 12 8.64832 11.8946 8.77148 11.7715C8.89464 11.6483 9 11.4229 9 11V5H10V11C10 11.5771 9.85536 12.1017 9.47852 12.4785C9.10168 12.8554 8.57707 13 8 13C7.42293 13 6.89832 12.8554 6.52148 12.4785C6.14464 12.1017 6 11.5771 6 11V4C6 3.28108 6.21527 2.53178 6.71582 1.9541C7.22667 1.3647 7.99544 1 9 1C10.0046 1 10.7733 1.3647 11.2842 1.9541C11.7847 2.53178 12 3.28108 12 4V11C12 12.103 11.6546 13.1101 10.957 13.8447C10.2555 14.5834 9.24184 15 8 15C6.75816 15 5.74451 14.5834 5.04297 13.8447C4.34537 13.1101 4 12.103 4 11V4H5V11C5 11.8967 5.2785 12.64 5.76758 13.1553C6.25296 13.6664 6.98973 14 8 14C9.01027 14 9.74704 13.6664 10.2324 13.1553C10.7215 12.64 11 11.8967 11 11V4C11 3.46903 10.8402 2.96818 10.5283 2.6084C10.2266 2.26039 9.74507 2 9 2C8.25493 2 7.7734 2.26039 7.47168 2.6084C7.15985 2.96818 7 3.46903 7 4V11Z" />
|
|
3
|
+
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
2
|
+
<path d="M8 1a1 1 0 0 1 .863.496l7 12A1 1 0 0 1 15 15H1a1 1 0 0 1-.864-1.504l7-12A1 1 0 0 1 8 1Zm0 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-.5-6v5h1V5h-1Z"/>
|
|
3
3
|
</svg>
|
|
@@ -197,7 +197,6 @@ EuiListGroup.propTypes = {
|
|
|
197
197
|
color: _propTypes.default.any,
|
|
198
198
|
"aria-label": _propTypes.default.string,
|
|
199
199
|
"aria-labelledby": _propTypes.default.string,
|
|
200
|
-
isDisabled: _propTypes.default.bool,
|
|
201
200
|
/**
|
|
202
201
|
* Overall size of button.
|
|
203
202
|
* Matches the sizes of other EuiButtons
|
|
@@ -227,6 +226,19 @@ EuiListGroup.propTypes = {
|
|
|
227
226
|
className: _propTypes.default.string,
|
|
228
227
|
"data-test-subj": _propTypes.default.string,
|
|
229
228
|
css: _propTypes.default.any,
|
|
229
|
+
/**
|
|
230
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
231
|
+
*/
|
|
232
|
+
isDisabled: _propTypes.default.bool,
|
|
233
|
+
/**
|
|
234
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
235
|
+
*
|
|
236
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
237
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
238
|
+
*
|
|
239
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
240
|
+
*/
|
|
241
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
230
242
|
buttonRef: _propTypes.default.any
|
|
231
243
|
}),
|
|
232
244
|
/**
|
|
@@ -280,7 +280,6 @@ EuiListGroupItem.propTypes = {
|
|
|
280
280
|
color: _propTypes.default.any,
|
|
281
281
|
"aria-label": _propTypes.default.string,
|
|
282
282
|
"aria-labelledby": _propTypes.default.string,
|
|
283
|
-
isDisabled: _propTypes.default.bool,
|
|
284
283
|
/**
|
|
285
284
|
* Overall size of button.
|
|
286
285
|
* Matches the sizes of other EuiButtons
|
|
@@ -310,6 +309,19 @@ EuiListGroupItem.propTypes = {
|
|
|
310
309
|
className: _propTypes.default.string,
|
|
311
310
|
"data-test-subj": _propTypes.default.string,
|
|
312
311
|
css: _propTypes.default.any,
|
|
312
|
+
/**
|
|
313
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
314
|
+
*/
|
|
315
|
+
isDisabled: _propTypes.default.bool,
|
|
316
|
+
/**
|
|
317
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
318
|
+
*
|
|
319
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
320
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
321
|
+
*
|
|
322
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
323
|
+
*/
|
|
324
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
313
325
|
buttonRef: _propTypes.default.any
|
|
314
326
|
}),
|
|
315
327
|
/**
|
|
@@ -60,7 +60,6 @@ EuiListGroupItemExtraAction.propTypes = {
|
|
|
60
60
|
color: _propTypes.default.any,
|
|
61
61
|
"aria-label": _propTypes.default.string,
|
|
62
62
|
"aria-labelledby": _propTypes.default.string,
|
|
63
|
-
isDisabled: _propTypes.default.bool,
|
|
64
63
|
/**
|
|
65
64
|
* Overall size of button.
|
|
66
65
|
* Matches the sizes of other EuiButtons
|
|
@@ -90,6 +89,19 @@ EuiListGroupItemExtraAction.propTypes = {
|
|
|
90
89
|
className: _propTypes.default.string,
|
|
91
90
|
"data-test-subj": _propTypes.default.string,
|
|
92
91
|
css: _propTypes.default.any,
|
|
92
|
+
/**
|
|
93
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
94
|
+
*/
|
|
95
|
+
isDisabled: _propTypes.default.bool,
|
|
96
|
+
/**
|
|
97
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
98
|
+
*
|
|
99
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
100
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
101
|
+
*
|
|
102
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
103
|
+
*/
|
|
104
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
93
105
|
buttonRef: _propTypes.default.any,
|
|
94
106
|
parentIsDisabled: _propTypes.default.bool
|
|
95
107
|
};
|
|
@@ -176,7 +176,6 @@ EuiPinnableListGroup.propTypes = {
|
|
|
176
176
|
color: _propTypes.default.any,
|
|
177
177
|
"aria-label": _propTypes.default.string,
|
|
178
178
|
"aria-labelledby": _propTypes.default.string,
|
|
179
|
-
isDisabled: _propTypes.default.bool,
|
|
180
179
|
/**
|
|
181
180
|
* Overall size of button.
|
|
182
181
|
* Matches the sizes of other EuiButtons
|
|
@@ -206,6 +205,19 @@ EuiPinnableListGroup.propTypes = {
|
|
|
206
205
|
className: _propTypes.default.string,
|
|
207
206
|
"data-test-subj": _propTypes.default.string,
|
|
208
207
|
css: _propTypes.default.any,
|
|
208
|
+
/**
|
|
209
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
210
|
+
*/
|
|
211
|
+
isDisabled: _propTypes.default.bool,
|
|
212
|
+
/**
|
|
213
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
214
|
+
*
|
|
215
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
216
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
217
|
+
*
|
|
218
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
219
|
+
*/
|
|
220
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
209
221
|
buttonRef: _propTypes.default.any
|
|
210
222
|
}),
|
|
211
223
|
/**
|
|
@@ -309,7 +321,6 @@ EuiPinnableListGroup.propTypes = {
|
|
|
309
321
|
color: _propTypes.default.any,
|
|
310
322
|
"aria-label": _propTypes.default.string,
|
|
311
323
|
"aria-labelledby": _propTypes.default.string,
|
|
312
|
-
isDisabled: _propTypes.default.bool,
|
|
313
324
|
size: _propTypes.default.any,
|
|
314
325
|
iconSize: _propTypes.default.any,
|
|
315
326
|
isSelected: _propTypes.default.bool,
|
|
@@ -318,6 +329,8 @@ EuiPinnableListGroup.propTypes = {
|
|
|
318
329
|
className: _propTypes.default.string,
|
|
319
330
|
"data-test-subj": _propTypes.default.string,
|
|
320
331
|
css: _propTypes.default.any,
|
|
332
|
+
isDisabled: _propTypes.default.bool,
|
|
333
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
321
334
|
buttonRef: _propTypes.default.any
|
|
322
335
|
}),
|
|
323
336
|
/**
|
|
@@ -18,7 +18,7 @@ var euiOverlayMaskStyles = exports.euiOverlayMaskStyles = function euiOverlayMas
|
|
|
18
18
|
var euiTheme = _ref.euiTheme,
|
|
19
19
|
highContrastMode = _ref.highContrastMode;
|
|
20
20
|
return {
|
|
21
|
-
euiOverlayMask: /*#__PURE__*/(0, _css.css)("position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " display:flex;align-items:center;justify-content:center;
|
|
21
|
+
euiOverlayMask: /*#__PURE__*/(0, _css.css)("position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " display:flex;align-items:center;justify-content:center;animation:", _global_styling.euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", highContrastMode ? euiTheme.components.overlayMaskBackgroundHighContrast : euiTheme.components.overlayMaskBackground, ";;label:euiOverlayMask;"),
|
|
22
22
|
aboveHeader: /*#__PURE__*/(0, _css.css)("z-index:", euiTheme.levels.mask, ";;label:aboveHeader;"),
|
|
23
23
|
belowHeader: /*#__PURE__*/(0, _css.css)("z-index:", euiTheme.levels.maskBelowHeader, ";", (0, _global_styling.logicalCSS)('top', 'var(--euiFixedHeadersOffset, 0)'), ";;label:belowHeader;")
|
|
24
24
|
};
|
|
@@ -77,13 +77,6 @@ var EuiPaginationButton = exports.EuiPaginationButton = function EuiPaginationBu
|
|
|
77
77
|
EuiPaginationButton.propTypes = {
|
|
78
78
|
href: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.string]), _propTypes.default.string]),
|
|
79
79
|
onClick: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func]),
|
|
80
|
-
/**
|
|
81
|
-
* `disabled` is also allowed
|
|
82
|
-
*/
|
|
83
|
-
/**
|
|
84
|
-
* `disabled` is also allowed
|
|
85
|
-
*/
|
|
86
|
-
isDisabled: _propTypes.default.bool,
|
|
87
80
|
target: _propTypes.default.string,
|
|
88
81
|
rel: _propTypes.default.string,
|
|
89
82
|
type: _propTypes.default.any,
|
|
@@ -122,10 +115,23 @@ EuiPaginationButton.propTypes = {
|
|
|
122
115
|
"data-text": _propTypes.default.string
|
|
123
116
|
}).isRequired, _propTypes.default.oneOf([false])]),
|
|
124
117
|
iconSize: _propTypes.default.any,
|
|
118
|
+
/**
|
|
119
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
120
|
+
*/
|
|
121
|
+
isDisabled: _propTypes.default.bool,
|
|
125
122
|
className: _propTypes.default.string,
|
|
126
123
|
"aria-label": _propTypes.default.string,
|
|
127
124
|
"data-test-subj": _propTypes.default.string,
|
|
128
125
|
css: _propTypes.default.any,
|
|
126
|
+
/**
|
|
127
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
128
|
+
*
|
|
129
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
130
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
131
|
+
*
|
|
132
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
133
|
+
*/
|
|
134
|
+
hasAriaDisabled: _propTypes.default.bool,
|
|
129
135
|
isActive: _propTypes.default.bool,
|
|
130
136
|
pageIndex: _propTypes.default.number.isRequired,
|
|
131
137
|
totalPages: _propTypes.default.number
|