@elastic/eui 109.0.0 → 109.1.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/accessibility/skip_link/skip_link.js +10 -1
- 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 +14 -2
- 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/data_grid_header_cell.js +23 -6
- 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/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/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/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 +588 -180
- package/i18ntokens.json +1357 -1231
- package/lib/components/accessibility/skip_link/skip_link.js +10 -1
- 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 +14 -2
- 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/data_grid_header_cell.js +23 -6
- 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/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/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/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/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/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 +1 -1
- 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/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/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/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/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/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 +1 -1
- 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/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/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/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/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/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 +1 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +10 -1
- 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 +14 -2
- 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/data_grid_header_cell.js +23 -6
- 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/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/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/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
package/eui.d.ts
CHANGED
|
@@ -399,6 +399,72 @@ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
|
399
399
|
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
400
400
|
];
|
|
401
401
|
|
|
402
|
+
}
|
|
403
|
+
declare module '@elastic/eui/src/services/hooks/useEuiDisabledElement' {
|
|
404
|
+
export type EuiDisabledProps = {
|
|
405
|
+
/**
|
|
406
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
407
|
+
*/
|
|
408
|
+
isDisabled?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
411
|
+
*
|
|
412
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
413
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
414
|
+
*
|
|
415
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
416
|
+
*/
|
|
417
|
+
hasAriaDisabled?: boolean;
|
|
418
|
+
};
|
|
419
|
+
type DisabledElementKeyEventHandlers = {
|
|
420
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
421
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
422
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
|
|
423
|
+
};
|
|
424
|
+
export type DisabledElementEventHandlers = DisabledElementKeyEventHandlers & {
|
|
425
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
426
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
427
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
428
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
429
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
430
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement>;
|
|
431
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
432
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement>;
|
|
433
|
+
onPointerDown?: React.PointerEventHandler<HTMLElement>;
|
|
434
|
+
onPointerUp?: React.PointerEventHandler<HTMLElement>;
|
|
435
|
+
onPointerEnter?: React.PointerEventHandler<HTMLElement>;
|
|
436
|
+
onPointerLeave?: React.PointerEventHandler<HTMLElement>;
|
|
437
|
+
onPointerMove?: React.PointerEventHandler<HTMLElement>;
|
|
438
|
+
onPointerOver?: React.PointerEventHandler<HTMLElement>;
|
|
439
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement>;
|
|
440
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement>;
|
|
441
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement>;
|
|
442
|
+
onSubmit?: React.FormEventHandler<HTMLElement>;
|
|
443
|
+
};
|
|
444
|
+
type DisabledElementProps<T extends HTMLElement> = {
|
|
445
|
+
ref: React.Ref<T>;
|
|
446
|
+
disabled?: boolean;
|
|
447
|
+
};
|
|
448
|
+
type AriaDisabledElementProps<T extends HTMLElement> = DisabledElementEventHandlers & DisabledElementProps<T> & {
|
|
449
|
+
ref: React.Ref<T>;
|
|
450
|
+
'aria-disabled'?: boolean;
|
|
451
|
+
};
|
|
452
|
+
type EuiDisabledElementArgs = EuiDisabledProps & DisabledElementKeyEventHandlers;
|
|
453
|
+
/**
|
|
454
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
455
|
+
*
|
|
456
|
+
* Utility to apply either the native or a custom semantic disabled state.
|
|
457
|
+
*
|
|
458
|
+
* It applies `aria-disabled` instead of `disabled` when `hasAriaDisabled=true`
|
|
459
|
+
* to ensure the element is semantically disabled while still focusable.
|
|
460
|
+
*
|
|
461
|
+
* It mimics the native `disabled` behavior by removing any programmatic mouse, pointer, touch
|
|
462
|
+
* or keyboard event handler but it differs to the native `disabled` behavior in that it preserves
|
|
463
|
+
* the focus, blur and tabIndex behavior.
|
|
464
|
+
*/
|
|
465
|
+
export const useEuiDisabledElement: <T extends HTMLElement>({ isDisabled, hasAriaDisabled, onKeyDown, onKeyUp, onKeyPress, }: EuiDisabledElementArgs) => DisabledElementProps<T> | AriaDisabledElementProps<T>;
|
|
466
|
+
export {};
|
|
467
|
+
|
|
402
468
|
}
|
|
403
469
|
declare module '@elastic/eui/src/services/hooks' {
|
|
404
470
|
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
@@ -408,6 +474,7 @@ declare module '@elastic/eui/src/services/hooks' {
|
|
|
408
474
|
export * from '@elastic/eui/src/services/hooks/useDeepEqual';
|
|
409
475
|
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
410
476
|
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
477
|
+
export { type EuiDisabledProps, useEuiDisabledElement, } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
411
478
|
|
|
412
479
|
}
|
|
413
480
|
declare module '@elastic/eui/src/services/theme/style_memoization' {
|
|
@@ -1447,6 +1514,10 @@ declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
|
1447
1514
|
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1448
1515
|
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
1449
1516
|
|
|
1517
|
+
}
|
|
1518
|
+
declare module '@elastic/eui/src/global_styling/utility/selectors' {
|
|
1519
|
+
export const euiDisabledSelector = ":disabled, [aria-disabled=\"true\"]";
|
|
1520
|
+
|
|
1450
1521
|
}
|
|
1451
1522
|
declare module '@elastic/eui/src/global_styling' {
|
|
1452
1523
|
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
@@ -1454,6 +1525,7 @@ declare module '@elastic/eui/src/global_styling' {
|
|
|
1454
1525
|
export * from '@elastic/eui/src/global_styling/variables';
|
|
1455
1526
|
export * from '@elastic/eui/src/global_styling/mixins';
|
|
1456
1527
|
export * from '@elastic/eui/src/global_styling/utility/animations';
|
|
1528
|
+
export { euiDisabledSelector } from '@elastic/eui/src/global_styling/utility/selectors';
|
|
1457
1529
|
|
|
1458
1530
|
}
|
|
1459
1531
|
declare module '@elastic/eui/src/components/spacer/spacer.styles' {
|
|
@@ -3055,7 +3127,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
3055
3127
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
3056
3128
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
3057
3129
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
3058
|
-
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "pencil" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "esqlVis" | "exit" | "expand" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "thumbDown" | "thumbUp" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "backgroundTask" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "
|
|
3130
|
+
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "pencil" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "thumbDown" | "thumbUp" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "backgroundTask" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "documentEdit" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "expandMini" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "filterInCircle" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "lettering" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "playFilled" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "streamsClassic" | "streamsWired" | "submodule" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workflowsApp" | "workplaceSearchApp" | "tokenDenseVector")[];
|
|
3059
3131
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
3060
3132
|
export type IconType = EuiIconType | string | ComponentType;
|
|
3061
3133
|
export type IconColor = string | NamedColor;
|
|
@@ -3409,6 +3481,48 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
|
3409
3481
|
export const EuiToolTipPopover: FunctionComponent<Props>;
|
|
3410
3482
|
export {};
|
|
3411
3483
|
|
|
3484
|
+
}
|
|
3485
|
+
declare module '@elastic/eui/src/services/popover/reposition_on_scroll' {
|
|
3486
|
+
type SupportedComponentDefaults = {
|
|
3487
|
+
repositionOnScroll?: boolean;
|
|
3488
|
+
};
|
|
3489
|
+
type RepositionOnScrollArgs<T extends SupportedComponentDefaults> = {
|
|
3490
|
+
/**
|
|
3491
|
+
* The component's `repositionOnScroll` prop.
|
|
3492
|
+
*/
|
|
3493
|
+
repositionOnScroll?: boolean;
|
|
3494
|
+
/**
|
|
3495
|
+
* The function to be called on scroll to reposition the component.
|
|
3496
|
+
*/
|
|
3497
|
+
repositionFn: () => void;
|
|
3498
|
+
/**
|
|
3499
|
+
* The component's defaults context.
|
|
3500
|
+
*/
|
|
3501
|
+
componentDefaults?: T;
|
|
3502
|
+
};
|
|
3503
|
+
/**
|
|
3504
|
+
* Returns the value of the `repositionOnScroll` from the props, component's defaults context
|
|
3505
|
+
* or default to `false`.
|
|
3506
|
+
*
|
|
3507
|
+
* @param args The arguments for `getRepositionOnScroll`. See {@link RepositionOnScrollArgs}.
|
|
3508
|
+
* @returns The value of the `repositionOnScroll`.
|
|
3509
|
+
*/
|
|
3510
|
+
export const getRepositionOnScroll: <T extends SupportedComponentDefaults>(args: RepositionOnScrollArgs<T>) => boolean;
|
|
3511
|
+
export type CreateRepositionOnScrollReturnType = {
|
|
3512
|
+
subscribe: () => void;
|
|
3513
|
+
update: () => void;
|
|
3514
|
+
cleanup: () => void;
|
|
3515
|
+
};
|
|
3516
|
+
/**
|
|
3517
|
+
* Creates a manager for handling `repositionOnScroll` logic in overlay components.
|
|
3518
|
+
* This utility abstracts the adding, updating, and removing of window scroll event listeners.
|
|
3519
|
+
*
|
|
3520
|
+
* @param getArgs A function that returns the arguments for `getRepositionOnScroll`. See {@link RepositionOnScrollArgs}.
|
|
3521
|
+
* @returns An object with `subscribe`, `update`, and `cleanup` methods to manage the scroll listener.
|
|
3522
|
+
*/
|
|
3523
|
+
export const createRepositionOnScroll: <T extends SupportedComponentDefaults>(getArgs: () => RepositionOnScrollArgs<T>) => CreateRepositionOnScrollReturnType;
|
|
3524
|
+
export {};
|
|
3525
|
+
|
|
3412
3526
|
}
|
|
3413
3527
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_anchor' {
|
|
3414
3528
|
import React, { HTMLAttributes } from 'react';
|
|
@@ -3444,9 +3558,10 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_manager' {
|
|
|
3444
3558
|
|
|
3445
3559
|
}
|
|
3446
3560
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
3447
|
-
import React, { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
|
|
3561
|
+
import React, { Component, ContextType, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
|
|
3448
3562
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3449
3563
|
import { type EuiPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
3564
|
+
import { EuiComponentDefaultsContext } from '@elastic/eui/src/components/provider/component_defaults';
|
|
3450
3565
|
import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
|
|
3451
3566
|
export const POSITIONS: readonly ["top", "right", "bottom", "left"]; const DISPLAYS: readonly ["inlineBlock", "block"];
|
|
3452
3567
|
export type ToolTipDelay = 'regular' | 'long';
|
|
@@ -3534,11 +3649,14 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
|
3534
3649
|
id: string;
|
|
3535
3650
|
}
|
|
3536
3651
|
export class EuiToolTip extends Component<EuiToolTipProps, State> {
|
|
3652
|
+
static contextType: React.Context<import ("@elastic/eui/src/components/provider/component_defaults").EuiComponentDefaults>;
|
|
3653
|
+
context: ContextType<typeof EuiComponentDefaultsContext>;
|
|
3654
|
+
private repositionOnScroll;
|
|
3537
3655
|
_isMounted: boolean;
|
|
3538
3656
|
anchor: null | HTMLElement;
|
|
3539
3657
|
popover: null | HTMLElement;
|
|
3540
3658
|
private timeoutId?;
|
|
3541
|
-
|
|
3659
|
+
constructor(props: EuiToolTipProps);
|
|
3542
3660
|
static defaultProps: Partial<EuiToolTipProps>;
|
|
3543
3661
|
clearAnimationTimeout: () => void;
|
|
3544
3662
|
componentDidMount(): void;
|
|
@@ -3604,6 +3722,10 @@ declare module '@elastic/eui/src/components/tool_tip' {
|
|
|
3604
3722
|
export type { EuiIconTipProps } from '@elastic/eui/src/components/tool_tip/icon_tip';
|
|
3605
3723
|
export { EuiIconTip } from '@elastic/eui/src/components/tool_tip/icon_tip';
|
|
3606
3724
|
|
|
3725
|
+
}
|
|
3726
|
+
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
3727
|
+
export function validateHref(href: string): boolean;
|
|
3728
|
+
|
|
3607
3729
|
}
|
|
3608
3730
|
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
3609
3731
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -3794,13 +3916,10 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3794
3916
|
}
|
|
3795
3917
|
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
3796
3918
|
|
|
3797
|
-
}
|
|
3798
|
-
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
3799
|
-
export function validateHref(href: string): boolean;
|
|
3800
|
-
|
|
3801
3919
|
}
|
|
3802
3920
|
declare module '@elastic/eui/src/components/button/button_display/_button_display' {
|
|
3803
3921
|
import React, { CSSProperties, ReactNode, Ref, ButtonHTMLAttributes } from 'react';
|
|
3922
|
+
import { EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
3804
3923
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3805
3924
|
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content'; const SIZES: readonly ["xs", "s", "m"];
|
|
3806
3925
|
export type EuiButtonDisplaySizes = (typeof SIZES)[number];
|
|
@@ -3808,7 +3927,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3808
3927
|
* Extends EuiButtonDisplayContentProps which provides
|
|
3809
3928
|
* `iconType`, `iconSide`, and `textProps`
|
|
3810
3929
|
*/
|
|
3811
|
-
export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
3930
|
+
export interface EuiButtonDisplayCommonProps extends Omit<EuiButtonDisplayContentProps, 'disabled'>, EuiDisabledProps, CommonProps {
|
|
3812
3931
|
element?: 'a' | 'button' | 'span';
|
|
3813
3932
|
children?: ReactNode;
|
|
3814
3933
|
size?: EuiButtonDisplaySizes;
|
|
@@ -3868,13 +3987,14 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3868
3987
|
declare module '@elastic/eui/src/components/button/button' {
|
|
3869
3988
|
import { FunctionComponent, Ref, ReactNode } from 'react';
|
|
3870
3989
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3990
|
+
import { EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
3871
3991
|
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3872
3992
|
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
3873
3993
|
export const COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
3874
3994
|
export type EuiButtonColor = _EuiExtendedButtonColor;
|
|
3875
3995
|
export const SIZES: readonly ["s", "m"];
|
|
3876
3996
|
export type EuiButtonSize = (typeof SIZES)[number];
|
|
3877
|
-
interface BaseProps {
|
|
3997
|
+
interface BaseProps extends EuiDisabledProps {
|
|
3878
3998
|
children?: ReactNode;
|
|
3879
3999
|
/**
|
|
3880
4000
|
* Make button a solid color for prominence
|
|
@@ -3895,10 +4015,6 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
3895
4015
|
* Use size `s` in confined spaces
|
|
3896
4016
|
*/
|
|
3897
4017
|
size?: EuiButtonSize;
|
|
3898
|
-
/**
|
|
3899
|
-
* `disabled` is also allowed
|
|
3900
|
-
*/
|
|
3901
|
-
isDisabled?: boolean;
|
|
3902
4018
|
}
|
|
3903
4019
|
export interface EuiButtonProps extends BaseProps, Omit<EuiButtonDisplayCommonProps, 'size'>, CommonProps {
|
|
3904
4020
|
}
|
|
@@ -3935,8 +4051,9 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty.sty
|
|
|
3935
4051
|
declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
3936
4052
|
import { FunctionComponent, Ref, ButtonHTMLAttributes } from 'react';
|
|
3937
4053
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3938
|
-
import {
|
|
4054
|
+
import { EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
3939
4055
|
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
4056
|
+
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
3940
4057
|
export const SIZES: readonly ["xs", "s", "m"];
|
|
3941
4058
|
export type EuiButtonEmptySizes = (typeof SIZES)[number];
|
|
3942
4059
|
export const FLUSH_TYPES: readonly ["left", "right", "both"];
|
|
@@ -3945,7 +4062,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3945
4062
|
* Extends EuiButtonContentProps which provides
|
|
3946
4063
|
* `iconType`, `iconSide`, and `textProps`
|
|
3947
4064
|
*/
|
|
3948
|
-
export interface CommonEuiButtonEmptyProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
4065
|
+
export interface CommonEuiButtonEmptyProps extends EuiButtonDisplayContentProps, EuiDisabledProps, CommonProps {
|
|
3949
4066
|
/**
|
|
3950
4067
|
* Any of the named color palette options.
|
|
3951
4068
|
*
|
|
@@ -3962,10 +4079,6 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3962
4079
|
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
3963
4080
|
*/
|
|
3964
4081
|
flush?: EuiButtonEmptyFlush;
|
|
3965
|
-
/**
|
|
3966
|
-
* `disabled` is also allowed
|
|
3967
|
-
*/
|
|
3968
|
-
isDisabled?: boolean;
|
|
3969
4082
|
/**
|
|
3970
4083
|
* Force disables the button and changes the icon to a loading spinner
|
|
3971
4084
|
*/
|
|
@@ -4011,6 +4124,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon.style
|
|
|
4011
4124
|
}
|
|
4012
4125
|
declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
4013
4126
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
4127
|
+
import { EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
4014
4128
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
4015
4129
|
import { IconType, IconSize } from '@elastic/eui/src/components/icon';
|
|
4016
4130
|
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
@@ -4018,7 +4132,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
4018
4132
|
export type EuiButtonIconSizes = (typeof SIZES)[number];
|
|
4019
4133
|
export const DISPLAYS: readonly ["base", "empty", "fill"];
|
|
4020
4134
|
type EuiButtonIconDisplay = (typeof DISPLAYS)[number];
|
|
4021
|
-
export interface EuiButtonIconProps extends CommonProps {
|
|
4135
|
+
export interface EuiButtonIconProps extends CommonProps, EuiDisabledProps {
|
|
4022
4136
|
iconType: IconType;
|
|
4023
4137
|
/**
|
|
4024
4138
|
* Any of the named color palette options.
|
|
@@ -4033,7 +4147,6 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
4033
4147
|
color?: _EuiExtendedButtonColor;
|
|
4034
4148
|
'aria-label'?: string;
|
|
4035
4149
|
'aria-labelledby'?: string;
|
|
4036
|
-
isDisabled?: boolean;
|
|
4037
4150
|
/**
|
|
4038
4151
|
* Overall size of button.
|
|
4039
4152
|
* Matches the sizes of other EuiButtons
|
|
@@ -4080,6 +4193,71 @@ declare module '@elastic/eui/src/components/button/button_icon' {
|
|
|
4080
4193
|
export type { EuiButtonIconProps, EuiButtonIconPropsForButton, EuiButtonIconPropsForAnchor, } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
4081
4194
|
export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
4082
4195
|
|
|
4196
|
+
}
|
|
4197
|
+
declare module '@elastic/eui/src/components/button/button_group/button_group_button.styles' {
|
|
4198
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
4199
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
4200
|
+
export const euiButtonGroupButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
4201
|
+
euiButtonGroupButton: SerializedStyles;
|
|
4202
|
+
iconOnly: {
|
|
4203
|
+
iconOnly: SerializedStyles;
|
|
4204
|
+
s: string;
|
|
4205
|
+
m: string;
|
|
4206
|
+
compressed: string;
|
|
4207
|
+
};
|
|
4208
|
+
uncompressed: {
|
|
4209
|
+
uncompressed: SerializedStyles;
|
|
4210
|
+
readonly borders: string;
|
|
4211
|
+
readonly s: SerializedStyles;
|
|
4212
|
+
readonly m: SerializedStyles;
|
|
4213
|
+
hasToolTip: SerializedStyles;
|
|
4214
|
+
};
|
|
4215
|
+
compressed: SerializedStyles;
|
|
4216
|
+
disabledAndSelected: SerializedStyles;
|
|
4217
|
+
hasBorder: string;
|
|
4218
|
+
tooltipWrapper: SerializedStyles;
|
|
4219
|
+
content: {
|
|
4220
|
+
euiButtonGroupButton__content: SerializedStyles;
|
|
4221
|
+
compressed: SerializedStyles;
|
|
4222
|
+
};
|
|
4223
|
+
text: {
|
|
4224
|
+
euiButtonGroupButton__text: SerializedStyles;
|
|
4225
|
+
euiButtonGroupButton__iconOnly: SerializedStyles;
|
|
4226
|
+
};
|
|
4227
|
+
};
|
|
4228
|
+
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled", SerializedStyles>;
|
|
4229
|
+
|
|
4230
|
+
}
|
|
4231
|
+
declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
|
|
4232
|
+
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
4233
|
+
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
4234
|
+
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4235
|
+
type Props = EuiButtonGroupOptionProps & {
|
|
4236
|
+
/**
|
|
4237
|
+
* Styles the selected button to look selected (usually with `fill`)
|
|
4238
|
+
*/
|
|
4239
|
+
isSelected?: boolean;
|
|
4240
|
+
/**
|
|
4241
|
+
* Inherit from EuiButtonGroup
|
|
4242
|
+
*/
|
|
4243
|
+
color: EuiButtonGroupProps['color'];
|
|
4244
|
+
/**
|
|
4245
|
+
* Inherit from EuiButtonGroup
|
|
4246
|
+
*/
|
|
4247
|
+
size: NonNullable<EuiButtonGroupProps['buttonSize']>;
|
|
4248
|
+
/**
|
|
4249
|
+
* Inherit from EuiButtonGroup
|
|
4250
|
+
*/
|
|
4251
|
+
isIconOnly: EuiButtonGroupProps['isIconOnly'];
|
|
4252
|
+
/**
|
|
4253
|
+
* Inherit from EuiButtonGroup
|
|
4254
|
+
*/
|
|
4255
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
4256
|
+
contentProps?: EuiButtonDisplayCommonProps['contentProps'];
|
|
4257
|
+
};
|
|
4258
|
+
export const EuiButtonGroupButton: FunctionComponent<Props>;
|
|
4259
|
+
export {};
|
|
4260
|
+
|
|
4083
4261
|
}
|
|
4084
4262
|
declare module '@elastic/eui/src/components/form/form.styles' {
|
|
4085
4263
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -4199,66 +4377,6 @@ declare module '@elastic/eui/src/components/form/form.styles' {
|
|
|
4199
4377
|
};
|
|
4200
4378
|
};
|
|
4201
4379
|
|
|
4202
|
-
}
|
|
4203
|
-
declare module '@elastic/eui/src/components/button/button_group/button_group_button.styles' {
|
|
4204
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
4205
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
4206
|
-
export const euiButtonGroupButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
4207
|
-
euiButtonGroupButton: SerializedStyles;
|
|
4208
|
-
iconOnly: SerializedStyles;
|
|
4209
|
-
uncompressed: {
|
|
4210
|
-
uncompressed: SerializedStyles;
|
|
4211
|
-
readonly borders: string;
|
|
4212
|
-
readonly s: SerializedStyles;
|
|
4213
|
-
readonly m: SerializedStyles;
|
|
4214
|
-
hasToolTip: SerializedStyles;
|
|
4215
|
-
};
|
|
4216
|
-
compressed: SerializedStyles;
|
|
4217
|
-
disabledAndSelected: SerializedStyles;
|
|
4218
|
-
hasBorder: string;
|
|
4219
|
-
tooltipWrapper: SerializedStyles;
|
|
4220
|
-
content: {
|
|
4221
|
-
euiButtonGroupButton__content: SerializedStyles;
|
|
4222
|
-
compressed: SerializedStyles;
|
|
4223
|
-
};
|
|
4224
|
-
text: {
|
|
4225
|
-
euiButtonGroupButton__text: SerializedStyles;
|
|
4226
|
-
euiButtonGroupButton__iconOnly: SerializedStyles;
|
|
4227
|
-
};
|
|
4228
|
-
};
|
|
4229
|
-
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled", SerializedStyles>;
|
|
4230
|
-
|
|
4231
|
-
}
|
|
4232
|
-
declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
|
|
4233
|
-
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
4234
|
-
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
4235
|
-
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4236
|
-
type Props = EuiButtonGroupOptionProps & {
|
|
4237
|
-
/**
|
|
4238
|
-
* Styles the selected button to look selected (usually with `fill`)
|
|
4239
|
-
*/
|
|
4240
|
-
isSelected?: boolean;
|
|
4241
|
-
/**
|
|
4242
|
-
* Inherit from EuiButtonGroup
|
|
4243
|
-
*/
|
|
4244
|
-
color: EuiButtonGroupProps['color'];
|
|
4245
|
-
/**
|
|
4246
|
-
* Inherit from EuiButtonGroup
|
|
4247
|
-
*/
|
|
4248
|
-
size: NonNullable<EuiButtonGroupProps['buttonSize']>;
|
|
4249
|
-
/**
|
|
4250
|
-
* Inherit from EuiButtonGroup
|
|
4251
|
-
*/
|
|
4252
|
-
isIconOnly: EuiButtonGroupProps['isIconOnly'];
|
|
4253
|
-
/**
|
|
4254
|
-
* Inherit from EuiButtonGroup
|
|
4255
|
-
*/
|
|
4256
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
4257
|
-
contentProps?: EuiButtonDisplayCommonProps['contentProps'];
|
|
4258
|
-
};
|
|
4259
|
-
export const EuiButtonGroupButton: FunctionComponent<Props>;
|
|
4260
|
-
export {};
|
|
4261
|
-
|
|
4262
4380
|
}
|
|
4263
4381
|
declare module '@elastic/eui/src/components/button/button_group/button_group.styles' {
|
|
4264
4382
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -4277,11 +4395,12 @@ declare module '@elastic/eui/src/components/button/button_group/button_group.sty
|
|
|
4277
4395
|
}
|
|
4278
4396
|
declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
4279
4397
|
import { FunctionComponent, HTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
4398
|
+
import { type EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
4280
4399
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4281
4400
|
import { _EuiButtonColor } from '@elastic/eui/src/global_styling/mixins';
|
|
4282
4401
|
import { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
4283
4402
|
import { EuiButtonDisplayContentProps } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
4284
|
-
export interface EuiButtonGroupOptionProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
4403
|
+
export interface EuiButtonGroupOptionProps extends EuiButtonDisplayContentProps, CommonProps, EuiDisabledProps {
|
|
4285
4404
|
/**
|
|
4286
4405
|
* Each option must have a unique `id` for maintaining selection
|
|
4287
4406
|
*/
|
|
@@ -4290,7 +4409,6 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4290
4409
|
* Each option must have a `label` even for icons which will be applied as the `aria-label`
|
|
4291
4410
|
*/
|
|
4292
4411
|
label: ReactNode;
|
|
4293
|
-
isDisabled?: boolean;
|
|
4294
4412
|
/**
|
|
4295
4413
|
* The value of the radio input.
|
|
4296
4414
|
*/
|
|
@@ -4314,13 +4432,12 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4314
4432
|
*/
|
|
4315
4433
|
toolTipProps?: Partial<Omit<EuiToolTipProps, 'content' | 'children'>>;
|
|
4316
4434
|
}
|
|
4317
|
-
export type EuiButtonGroupProps = CommonProps & {
|
|
4435
|
+
export type EuiButtonGroupProps = CommonProps & EuiDisabledProps & {
|
|
4318
4436
|
/**
|
|
4319
4437
|
* Typical sizing is `s`. Medium `m` size should be reserved for major features.
|
|
4320
4438
|
* `compressed` is meant to be used alongside and within compressed forms.
|
|
4321
4439
|
*/
|
|
4322
4440
|
buttonSize?: 's' | 'm' | 'compressed';
|
|
4323
|
-
isDisabled?: boolean;
|
|
4324
4441
|
/**
|
|
4325
4442
|
* Expands the whole group to the full width of the container.
|
|
4326
4443
|
* Each button gets equal widths no matter the content
|
|
@@ -6965,6 +7082,8 @@ declare module '@elastic/eui/src/components/provider/component_defaults/componen
|
|
|
6965
7082
|
import type { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
6966
7083
|
import type { EuiTablePaginationProps, EuiTableProps } from '@elastic/eui/src/components/table';
|
|
6967
7084
|
import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout';
|
|
7085
|
+
import type { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
7086
|
+
import type { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
6968
7087
|
export type EuiComponentDefaults = {
|
|
6969
7088
|
/**
|
|
6970
7089
|
* Provide a global configuration for EuiPortal's default insertion position.
|
|
@@ -6992,6 +7111,16 @@ declare module '@elastic/eui/src/components/provider/component_defaults/componen
|
|
|
6992
7111
|
* Defaults will be inherited by all `EuiFlyout`s.
|
|
6993
7112
|
*/
|
|
6994
7113
|
EuiFlyout?: Pick<EuiFlyoutProps, 'includeSelectorInFocusTrap' | 'includeFixedHeadersInFocusTrap'>;
|
|
7114
|
+
/**
|
|
7115
|
+
* Provide a global configuration for `EuiPopover`s.
|
|
7116
|
+
* Defaults will be inherited by every `EuiPopover`.
|
|
7117
|
+
*/
|
|
7118
|
+
EuiPopover?: Pick<EuiPopoverProps, 'repositionOnScroll'>;
|
|
7119
|
+
/**
|
|
7120
|
+
* Provide a global configuration for `EuiToolTip`s.
|
|
7121
|
+
* Defaults will be inherited by every `EuiToolTip`.
|
|
7122
|
+
*/
|
|
7123
|
+
EuiToolTip?: Pick<EuiToolTipProps, 'repositionOnScroll'>;
|
|
6995
7124
|
};
|
|
6996
7125
|
export const EuiComponentDefaultsContext: React.Context<EuiComponentDefaults>;
|
|
6997
7126
|
export type EuiComponentDefaultsProviderProps = PropsWithChildren & {
|
|
@@ -7227,13 +7356,14 @@ declare module '@elastic/eui/src/components/popover/popover_panel' {
|
|
|
7227
7356
|
|
|
7228
7357
|
}
|
|
7229
7358
|
declare module '@elastic/eui/src/components/popover/popover' {
|
|
7230
|
-
import React, { Component, KeyboardEvent, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, PropsWithChildren } from 'react';
|
|
7359
|
+
import React, { Component, KeyboardEvent, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, PropsWithChildren, ContextType } from 'react';
|
|
7231
7360
|
import { CommonProps, NoArgCallback } from '@elastic/eui/src/components/common';
|
|
7232
7361
|
import { FocusTarget, EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
7233
7362
|
import { EuiPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7234
7363
|
import { EuiPopoverArrowPositions } from '@elastic/eui/src/components/popover/popover_arrow';
|
|
7235
7364
|
import { EuiPopoverPanelProps } from '@elastic/eui/src/components/popover/popover_panel/_popover_panel';
|
|
7236
7365
|
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
7366
|
+
import { EuiComponentDefaultsContext } from '@elastic/eui/src/components/provider/component_defaults';
|
|
7237
7367
|
export const popoverAnchorPosition: readonly ["upCenter", "upLeft", "upRight", "downCenter", "downLeft", "downRight", "leftCenter", "leftUp", "leftDown", "rightCenter", "rightUp", "rightDown"];
|
|
7238
7368
|
export type PopoverAnchorPosition = (typeof popoverAnchorPosition)[number];
|
|
7239
7369
|
export interface EuiPopoverProps extends PropsWithChildren, CommonProps {
|
|
@@ -7396,9 +7526,12 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
7396
7526
|
panelPaddingSize: EuiPaddingSize;
|
|
7397
7527
|
};
|
|
7398
7528
|
export class EuiPopover extends Component<Props, State> {
|
|
7529
|
+
static contextType: React.Context<import ("@elastic/eui/src/components/provider/component_defaults").EuiComponentDefaults>;
|
|
7530
|
+
context: ContextType<typeof EuiComponentDefaultsContext>;
|
|
7531
|
+
private repositionOnScroll;
|
|
7399
7532
|
static defaultProps: Partial<PropsWithDefaults>;
|
|
7400
7533
|
static getDerivedStateFromProps(nextProps: Props, prevState: State): Partial<State> | null;
|
|
7401
|
-
private
|
|
7534
|
+
private repositionTimeout;
|
|
7402
7535
|
private strandedFocusTimeout;
|
|
7403
7536
|
private closingTransitionTimeout;
|
|
7404
7537
|
private closingTransitionAnimationFrame;
|
|
@@ -8515,6 +8648,36 @@ declare module '@elastic/eui/src/services/findElement' {
|
|
|
8515
8648
|
export type ElementTarget = HTMLElement | string | (() => HTMLElement);
|
|
8516
8649
|
export const findElementBySelectorOrRef: (elementTarget?: ElementTarget) => HTMLElement | null;
|
|
8517
8650
|
|
|
8651
|
+
}
|
|
8652
|
+
declare module '@elastic/eui/src/services/focus_trap/focus_trap_pub_sub' {
|
|
8653
|
+
type Listener = () => void;
|
|
8654
|
+
/**
|
|
8655
|
+
* A lightweight, global PubSub service for loose coupling of components
|
|
8656
|
+
* that need to interact with the same focus trap.
|
|
8657
|
+
*
|
|
8658
|
+
* This allows a component (like `EuiPopover`) to be rendered in a React Portal
|
|
8659
|
+
* and still be included in the focus trap of another component (like `EuiFlyout`)
|
|
8660
|
+
* without either component needing a direct reference to the other.
|
|
8661
|
+
*
|
|
8662
|
+
* How it works:
|
|
8663
|
+
*
|
|
8664
|
+
* 1. A container component (e.g., `EuiFlyout`) `subscribe`s to this service on mount.
|
|
8665
|
+
* 2. An ephemeral component (e.g., `EuiPopover`) calls `publish` when its state
|
|
8666
|
+
* changes in a way that affects the DOM (e.g., opening, closing, unmounting).
|
|
8667
|
+
* 3. The container component's subscribed callback fires, causing it to re-query
|
|
8668
|
+
* the DOM for any elements it should include in its focus trap.
|
|
8669
|
+
*/
|
|
8670
|
+
export const focusTrapPubSub: {
|
|
8671
|
+
subscribe: (listener: Listener) => () => void;
|
|
8672
|
+
unsubscribe: (listener: Listener) => void;
|
|
8673
|
+
publish: () => void;
|
|
8674
|
+
};
|
|
8675
|
+
export {};
|
|
8676
|
+
|
|
8677
|
+
}
|
|
8678
|
+
declare module '@elastic/eui/src/services/focus_trap' {
|
|
8679
|
+
export { focusTrapPubSub } from '@elastic/eui/src/services/focus_trap/focus_trap_pub_sub';
|
|
8680
|
+
|
|
8518
8681
|
}
|
|
8519
8682
|
declare module '@elastic/eui/src/services/format/format_boolean' {
|
|
8520
8683
|
export const formatBoolean: (value: boolean, { yes, no, nil }?: {
|
|
@@ -8821,6 +8984,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
8821
8984
|
export * from '@elastic/eui/src/services/copy';
|
|
8822
8985
|
export * from '@elastic/eui/src/services/emotion';
|
|
8823
8986
|
export * from '@elastic/eui/src/services/findElement';
|
|
8987
|
+
export { focusTrapPubSub } from '@elastic/eui/src/services/focus_trap';
|
|
8824
8988
|
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
8825
8989
|
export * from '@elastic/eui/src/services/hooks';
|
|
8826
8990
|
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
@@ -16549,11 +16713,16 @@ declare module '@elastic/eui/src/utils/is_jest' {
|
|
|
16549
16713
|
declare module '@elastic/eui/src/utils/type_guards' {
|
|
16550
16714
|
export const isDOMNode: (el: any) => el is Node;
|
|
16551
16715
|
|
|
16716
|
+
}
|
|
16717
|
+
declare module '@elastic/eui/src/utils/element_can_be_disabled' {
|
|
16718
|
+
export const elementCanBeDisabled: <T extends HTMLElement>(htmlElement: T | null) => boolean;
|
|
16719
|
+
|
|
16552
16720
|
}
|
|
16553
16721
|
declare module '@elastic/eui/src/utils' {
|
|
16554
16722
|
export * from '@elastic/eui/src/utils/prop_types';
|
|
16555
16723
|
export * from '@elastic/eui/src/utils/is_jest';
|
|
16556
16724
|
export * from '@elastic/eui/src/utils/type_guards';
|
|
16725
|
+
export { elementCanBeDisabled } from '@elastic/eui/src/utils/element_can_be_disabled';
|
|
16557
16726
|
|
|
16558
16727
|
}
|
|
16559
16728
|
declare module '@elastic/eui/src/components/datagrid/body/cell/focus_utils' {
|
|
@@ -18189,10 +18358,11 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/time_o
|
|
|
18189
18358
|
|
|
18190
18359
|
}
|
|
18191
18360
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/relative_utils' {
|
|
18192
|
-
import { TimeUnitId, RelativeParts } from '@elastic/eui/src/components/date_picker/types';
|
|
18361
|
+
import { TimeUnitId, RelativeParts, ShortDate } from '@elastic/eui/src/components/date_picker/types';
|
|
18193
18362
|
export const relativeUnitsFromLargestToSmallest: TimeUnitId[];
|
|
18194
18363
|
export function parseRelativeParts(value: string): RelativeParts;
|
|
18195
18364
|
export const toRelativeStringFromParts: (relativeParts: RelativeParts) => string;
|
|
18365
|
+
export const isRelativeToNow: (timeFrom: ShortDate, timeTo: ShortDate) => boolean;
|
|
18196
18366
|
|
|
18197
18367
|
}
|
|
18198
18368
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_modes' {
|
|
@@ -18207,12 +18377,66 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_m
|
|
|
18207
18377
|
export function toAbsoluteString(value: string, roundUp?: boolean): string;
|
|
18208
18378
|
export function toRelativeString(value: string): string;
|
|
18209
18379
|
|
|
18380
|
+
}
|
|
18381
|
+
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display.styles' {
|
|
18382
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18383
|
+
export const euiTimeZoneDisplayStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18384
|
+
euiTimeZoneDisplay: import("@emotion/react").SerializedStyles;
|
|
18385
|
+
};
|
|
18386
|
+
|
|
18387
|
+
}
|
|
18388
|
+
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display' {
|
|
18389
|
+
import React, { type ReactNode, type ComponentPropsWithoutRef } from 'react';
|
|
18390
|
+
import { Moment } from 'moment';
|
|
18391
|
+
/**
|
|
18392
|
+
* Available elements to render passed to the
|
|
18393
|
+
* `customRender` render function.
|
|
18394
|
+
*/
|
|
18395
|
+
type TimeZoneCustomDisplayRenderOptions = {
|
|
18396
|
+
nameDisplay?: ReactNode;
|
|
18397
|
+
};
|
|
18398
|
+
export type EuiTimeZoneDisplayProps = ComponentPropsWithoutRef<'div'> & {
|
|
18399
|
+
/**
|
|
18400
|
+
* A valid time zone name, from the IANA database, e.g. "America/Los_Angeles".
|
|
18401
|
+
*
|
|
18402
|
+
* @link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
18403
|
+
*/
|
|
18404
|
+
timeZone?: string;
|
|
18405
|
+
/**
|
|
18406
|
+
* Render prop function to add additional content to the time zone display.
|
|
18407
|
+
* Useful for e.g. adding links to documentation or setting pages.
|
|
18408
|
+
*/
|
|
18409
|
+
customRender?: (options: TimeZoneCustomDisplayRenderOptions) => ReactNode;
|
|
18410
|
+
/**
|
|
18411
|
+
* Reference date to be used while resolving the UTC offset.
|
|
18412
|
+
* Only useful for edge cases involving daylight saving time.
|
|
18413
|
+
*/
|
|
18414
|
+
date?: Moment;
|
|
18415
|
+
};
|
|
18416
|
+
/**
|
|
18417
|
+
* Display time zone information.
|
|
18418
|
+
*/
|
|
18419
|
+
export const EuiTimeZoneDisplay: React.FC<EuiTimeZoneDisplayProps>;
|
|
18420
|
+
/**
|
|
18421
|
+
* Get the UTC offset display in hours e.g. "UTC+2" from time zone name.
|
|
18422
|
+
*
|
|
18423
|
+
* @param timeZoneName IANA time zone name
|
|
18424
|
+
* @param [date] Reference date to get offset with Intl.DateTimeFormat
|
|
18425
|
+
*/
|
|
18426
|
+
export function useEuiUTCOffsetDisplay(timeZoneName: string, date?: Date): {
|
|
18427
|
+
utc: string;
|
|
18428
|
+
name: string;
|
|
18429
|
+
isInvalid: boolean;
|
|
18430
|
+
};
|
|
18431
|
+
export {};
|
|
18432
|
+
|
|
18210
18433
|
}
|
|
18211
18434
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/relative_tab' {
|
|
18212
18435
|
import { FunctionComponent } from 'react';
|
|
18213
18436
|
import { LocaleSpecifier } from 'moment';
|
|
18214
18437
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18215
18438
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18439
|
+
import { type EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18216
18440
|
export interface EuiRelativeTabProps {
|
|
18217
18441
|
dateFormat: string;
|
|
18218
18442
|
locale?: LocaleSpecifier;
|
|
@@ -18221,6 +18445,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18221
18445
|
roundUp?: boolean;
|
|
18222
18446
|
labelPrefix: string;
|
|
18223
18447
|
timeOptions: TimeOptions;
|
|
18448
|
+
timeZoneDisplayProps?: EuiTimeZoneDisplayProps;
|
|
18224
18449
|
}
|
|
18225
18450
|
export const EuiRelativeTab: FunctionComponent<EuiRelativeTabProps>;
|
|
18226
18451
|
|
|
@@ -18236,6 +18461,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18236
18461
|
import { FunctionComponent } from 'react';
|
|
18237
18462
|
import { LocaleSpecifier, Moment } from 'moment';
|
|
18238
18463
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18464
|
+
import { type EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18239
18465
|
export interface EuiDatePopoverContentProps {
|
|
18240
18466
|
value: string;
|
|
18241
18467
|
onChange: (date: string) => void;
|
|
@@ -18249,6 +18475,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18249
18475
|
minDate?: Moment;
|
|
18250
18476
|
maxDate?: Moment;
|
|
18251
18477
|
timeOptions: TimeOptions;
|
|
18478
|
+
timeZoneDisplayProps?: EuiTimeZoneDisplayProps;
|
|
18252
18479
|
}
|
|
18253
18480
|
export const EuiDatePopoverContent: FunctionComponent<EuiDatePopoverContentProps>;
|
|
18254
18481
|
|
|
@@ -18266,6 +18493,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18266
18493
|
import { FunctionComponent } from 'react';
|
|
18267
18494
|
import { Moment, LocaleSpecifier } from 'moment';
|
|
18268
18495
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18496
|
+
import { type EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18269
18497
|
export interface EuiAbsoluteTabProps {
|
|
18270
18498
|
dateFormat: string;
|
|
18271
18499
|
timeFormat: string;
|
|
@@ -18277,6 +18505,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18277
18505
|
utcOffset?: number;
|
|
18278
18506
|
minDate?: Moment;
|
|
18279
18507
|
maxDate?: Moment;
|
|
18508
|
+
timeZoneDisplayProps?: EuiTimeZoneDisplayProps;
|
|
18280
18509
|
}
|
|
18281
18510
|
export const EuiAbsoluteTab: FunctionComponent<EuiAbsoluteTabProps>;
|
|
18282
18511
|
|
|
@@ -18354,6 +18583,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18354
18583
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
18355
18584
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18356
18585
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18586
|
+
import { type EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18357
18587
|
export interface EuiDatePopoverButtonProps {
|
|
18358
18588
|
className?: string;
|
|
18359
18589
|
buttonProps?: CommonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -18376,6 +18606,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18376
18606
|
maxDate?: Moment;
|
|
18377
18607
|
compressed?: boolean;
|
|
18378
18608
|
timeOptions: TimeOptions;
|
|
18609
|
+
timeZoneDisplayProps?: EuiTimeZoneDisplayProps;
|
|
18379
18610
|
}
|
|
18380
18611
|
export const EuiDatePopoverButton: FunctionComponent<EuiDatePopoverButtonProps>;
|
|
18381
18612
|
|
|
@@ -18389,6 +18620,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
18389
18620
|
export { EuiDatePopoverContent } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18390
18621
|
export type { EuiRelativeTabProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/relative_tab';
|
|
18391
18622
|
export { EuiRelativeTab } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/relative_tab';
|
|
18623
|
+
export type { EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18392
18624
|
|
|
18393
18625
|
}
|
|
18394
18626
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_panel.styles' {
|
|
@@ -18682,6 +18914,69 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
|
18682
18914
|
};
|
|
18683
18915
|
export const EuiDatePickerRange: FunctionComponent<EuiDatePickerRangeProps>;
|
|
18684
18916
|
|
|
18917
|
+
}
|
|
18918
|
+
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_interval' {
|
|
18919
|
+
const MS_INTERVALS: {
|
|
18920
|
+
readonly s: 1000;
|
|
18921
|
+
readonly m: number;
|
|
18922
|
+
readonly h: number;
|
|
18923
|
+
readonly d: number;
|
|
18924
|
+
};
|
|
18925
|
+
type IntervalUnitId = keyof typeof MS_INTERVALS;
|
|
18926
|
+
export const usePrettyInterval: (isPaused: boolean, intervalInMs: number, options?: {
|
|
18927
|
+
shortHand?: boolean;
|
|
18928
|
+
unit?: IntervalUnitId;
|
|
18929
|
+
}) => string;
|
|
18930
|
+
export {};
|
|
18931
|
+
|
|
18932
|
+
}
|
|
18933
|
+
declare module '@elastic/eui/src/components/date_picker/super_date_picker/time_window_buttons' {
|
|
18934
|
+
import React from 'react';
|
|
18935
|
+
import { ShortDate, ApplyTime } from '@elastic/eui/src/components/date_picker/types';
|
|
18936
|
+
export const ZOOM_FACTOR_DEFAULT = 0.5;
|
|
18937
|
+
export interface EuiTimeWindowButtonsConfig {
|
|
18938
|
+
/**
|
|
18939
|
+
* Show button for zooming out
|
|
18940
|
+
* @default true
|
|
18941
|
+
*/
|
|
18942
|
+
showZoomOut?: boolean;
|
|
18943
|
+
/**
|
|
18944
|
+
* Show buttons for shifting the time window forward and backward
|
|
18945
|
+
* @default true
|
|
18946
|
+
*/
|
|
18947
|
+
showShiftArrows?: boolean;
|
|
18948
|
+
/**
|
|
18949
|
+
* How much the time window is increased when zooming.
|
|
18950
|
+
* A number between 0 and 1 e.g. 0.25, or a string representing a percentage e.g. 25%
|
|
18951
|
+
* @default 0.5
|
|
18952
|
+
* */
|
|
18953
|
+
zoomFactor?: number | string;
|
|
18954
|
+
}
|
|
18955
|
+
export type EuiTimeWindowButtonsProps = EuiTimeWindowButtonsConfig & {
|
|
18956
|
+
applyTime: ApplyTime;
|
|
18957
|
+
start: ShortDate;
|
|
18958
|
+
end: ShortDate;
|
|
18959
|
+
compressed?: boolean;
|
|
18960
|
+
isDisabled?: boolean;
|
|
18961
|
+
};
|
|
18962
|
+
/**
|
|
18963
|
+
* Button group with time window controls for shifting the time window
|
|
18964
|
+
* forwards and backwards, and zooming out.
|
|
18965
|
+
*/
|
|
18966
|
+
export const EuiTimeWindowButtons: React.FC<EuiTimeWindowButtonsProps>;
|
|
18967
|
+
/**
|
|
18968
|
+
* Partly adapted from date_picker/super_date_picker/quick_select_popover/quick_select.tsx
|
|
18969
|
+
*/
|
|
18970
|
+
export function useEuiTimeWindow(start: ShortDate, end: ShortDate, apply: ApplyTime, options?: {
|
|
18971
|
+
zoomFactor?: EuiTimeWindowButtonsConfig['zoomFactor'];
|
|
18972
|
+
}): {
|
|
18973
|
+
displayInterval: string;
|
|
18974
|
+
isInvalid: boolean;
|
|
18975
|
+
stepForward: () => void;
|
|
18976
|
+
stepBackward: () => void;
|
|
18977
|
+
expandWindow: () => void;
|
|
18978
|
+
};
|
|
18979
|
+
|
|
18685
18980
|
}
|
|
18686
18981
|
declare module '@elastic/eui/src/components/responsive/hide_for' {
|
|
18687
18982
|
import { ReactNode, FunctionComponent } from 'react';
|
|
@@ -18789,21 +19084,6 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18789
19084
|
}
|
|
18790
19085
|
export {};
|
|
18791
19086
|
|
|
18792
|
-
}
|
|
18793
|
-
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_interval' {
|
|
18794
|
-
const MS_INTERVALS: {
|
|
18795
|
-
readonly s: 1000;
|
|
18796
|
-
readonly m: number;
|
|
18797
|
-
readonly h: number;
|
|
18798
|
-
readonly d: number;
|
|
18799
|
-
};
|
|
18800
|
-
type IntervalUnitId = keyof typeof MS_INTERVALS;
|
|
18801
|
-
export const usePrettyInterval: (isPaused: boolean, intervalInMs: number, options?: {
|
|
18802
|
-
shortHand?: boolean;
|
|
18803
|
-
unit?: IntervalUnitId;
|
|
18804
|
-
}) => string;
|
|
18805
|
-
export {};
|
|
18806
|
-
|
|
18807
19087
|
}
|
|
18808
19088
|
declare module '@elastic/eui/src/components/date_picker/auto_refresh/auto_refresh' {
|
|
18809
19089
|
import { FunctionComponent } from 'react';
|
|
@@ -18835,9 +19115,11 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18835
19115
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18836
19116
|
import { ShortDate, Milliseconds, DurationRange, ApplyTime, ApplyRefreshInterval, RefreshUnitsOptions, QuickSelectPanel } from '@elastic/eui/src/components/date_picker/types';
|
|
18837
19117
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
19118
|
+
import { type EuiTimeWindowButtonsConfig } from '@elastic/eui/src/components/date_picker/super_date_picker/time_window_buttons';
|
|
18838
19119
|
import { AsyncInterval } from '@elastic/eui/src/components/date_picker/super_date_picker/async_interval';
|
|
18839
19120
|
import { EuiSuperUpdateButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button';
|
|
18840
19121
|
import { CustomQuickSelectRenderOptions, EuiQuickSelectButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
19122
|
+
import { type EuiTimeZoneDisplayProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/timezone_display';
|
|
18841
19123
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18842
19124
|
import { euiSuperDatePickerStyles } from '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker.styles';
|
|
18843
19125
|
export interface OnTimeChangeProps extends DurationRange {
|
|
@@ -18961,6 +19243,11 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18961
19243
|
* @default true
|
|
18962
19244
|
*/
|
|
18963
19245
|
showUpdateButton?: boolean | 'iconOnly';
|
|
19246
|
+
/**
|
|
19247
|
+
* Set to true to display buttons for time shifting and zooming out,
|
|
19248
|
+
* next to the top-level control.
|
|
19249
|
+
*/
|
|
19250
|
+
showTimeWindowButtons?: boolean | EuiTimeWindowButtonsConfig;
|
|
18964
19251
|
/**
|
|
18965
19252
|
* Hides the actual input reducing to just the quick select button.
|
|
18966
19253
|
*/
|
|
@@ -18981,6 +19268,14 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18981
19268
|
* input by the user, set this flag to `false`.
|
|
18982
19269
|
*/
|
|
18983
19270
|
canRoundRelativeUnits?: boolean;
|
|
19271
|
+
/**
|
|
19272
|
+
* Props passed to the time zone display in the popovers {@link EuiTimeZoneDisplayProps}
|
|
19273
|
+
*
|
|
19274
|
+
* Setting `timeZoneDisplayProps.timeZone` with a valid time zone name will make
|
|
19275
|
+
* the time zone information be visible below the start and end input fields.
|
|
19276
|
+
* This is informational only, it will not affect how date/times are handled.
|
|
19277
|
+
*/
|
|
19278
|
+
timeZoneDisplayProps?: EuiTimeZoneDisplayProps;
|
|
18984
19279
|
};
|
|
18985
19280
|
type EuiSuperDatePickerInternalProps = EuiSuperDatePickerProps & {
|
|
18986
19281
|
memoizedStyles: ReturnType<typeof euiSuperDatePickerStyles>;
|
|
@@ -19054,6 +19349,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
19054
19349
|
renderQuickSelect: () => React.JSX.Element;
|
|
19055
19350
|
renderDatePickerRange: () => React.JSX.Element;
|
|
19056
19351
|
handleClickUpdateButton: () => void;
|
|
19352
|
+
renderTimeWindowButtons: () => React.JSX.Element | null;
|
|
19057
19353
|
renderUpdateButton: () => React.JSX.Element | null;
|
|
19058
19354
|
render(): React.JSX.Element;
|
|
19059
19355
|
}
|
|
@@ -19069,6 +19365,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker' {
|
|
|
19069
19365
|
export { EuiSuperDatePicker } from '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker';
|
|
19070
19366
|
export type { EuiSuperUpdateButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button';
|
|
19071
19367
|
export { EuiSuperUpdateButton } from '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button';
|
|
19368
|
+
export type { EuiTimeWindowButtonsConfig } from '@elastic/eui/src/components/date_picker/super_date_picker/time_window_buttons';
|
|
19072
19369
|
export { PrettyDuration, usePrettyDuration } from '@elastic/eui/src/components/date_picker/super_date_picker/pretty_duration';
|
|
19073
19370
|
|
|
19074
19371
|
}
|
|
@@ -19474,6 +19771,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
|
19474
19771
|
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
19475
19772
|
import { FunctionComponent } from 'react';
|
|
19476
19773
|
import { _EuiButtonColor } from '@elastic/eui/src/global_styling';
|
|
19774
|
+
import { type EuiDisabledProps } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
19477
19775
|
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
19478
19776
|
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
19479
19777
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
@@ -19531,7 +19829,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
19531
19829
|
* - warning
|
|
19532
19830
|
*/
|
|
19533
19831
|
color?: _EuiButtonColor;
|
|
19534
|
-
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'
|
|
19832
|
+
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'> & EuiDisabledProps;
|
|
19535
19833
|
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
19536
19834
|
|
|
19537
19835
|
}
|
|
@@ -23454,6 +23752,28 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23454
23752
|
content?: string | undefined;
|
|
23455
23753
|
hidden?: boolean | undefined;
|
|
23456
23754
|
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23755
|
+
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23756
|
+
onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23757
|
+
onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23758
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23759
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23760
|
+
onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23761
|
+
onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23762
|
+
onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23763
|
+
onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23764
|
+
onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23765
|
+
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23766
|
+
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23767
|
+
onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23768
|
+
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23769
|
+
onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23770
|
+
onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23771
|
+
onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23772
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23773
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23774
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23775
|
+
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23776
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
23457
23777
|
translate?: "yes" | "no" | undefined;
|
|
23458
23778
|
property?: string | undefined;
|
|
23459
23779
|
className?: string | undefined;
|
|
@@ -23511,7 +23831,6 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23511
23831
|
"aria-describedby"?: string | undefined;
|
|
23512
23832
|
"aria-description"?: string | undefined;
|
|
23513
23833
|
"aria-details"?: string | undefined;
|
|
23514
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
23515
23834
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
23516
23835
|
"aria-errormessage"?: string | undefined;
|
|
23517
23836
|
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
@@ -23575,7 +23894,6 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23575
23894
|
onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23576
23895
|
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23577
23896
|
onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23578
|
-
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23579
23897
|
onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23580
23898
|
onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
23581
23899
|
onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -23583,11 +23901,8 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23583
23901
|
onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23584
23902
|
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23585
23903
|
onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23586
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23587
23904
|
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23588
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23589
23905
|
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23590
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23591
23906
|
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
23592
23907
|
onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23593
23908
|
onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -23637,7 +23952,6 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23637
23952
|
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23638
23953
|
onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23639
23954
|
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23640
|
-
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23641
23955
|
onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23642
23956
|
onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23643
23957
|
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
@@ -23659,39 +23973,23 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23659
23973
|
onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
23660
23974
|
onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
23661
23975
|
onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
23662
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23663
23976
|
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23664
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23665
|
-
onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23666
|
-
onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23667
23977
|
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23668
|
-
onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23669
23978
|
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23670
|
-
onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23671
23979
|
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23672
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23673
23980
|
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
23674
23981
|
onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23675
23982
|
onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23676
23983
|
onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23677
23984
|
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23678
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23679
23985
|
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23680
|
-
onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23681
23986
|
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23682
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23683
23987
|
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
23684
|
-
onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23685
23988
|
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23686
|
-
onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23687
23989
|
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23688
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23689
23990
|
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23690
23991
|
onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23691
23992
|
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23692
|
-
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23693
|
-
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23694
|
-
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23695
23993
|
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23696
23994
|
onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
23697
23995
|
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -31942,6 +32240,109 @@ declare module 'text-diff' {
|
|
|
31942
32240
|
}
|
|
31943
32241
|
export = Diff;
|
|
31944
32242
|
}
|
|
32243
|
+
declare module '@elastic/eui/cypress/support/setup/mount' {
|
|
32244
|
+
import { ReactNode } from 'react';
|
|
32245
|
+
import { EuiProviderProps } from '../../../src';
|
|
32246
|
+
import type { mount } from '@cypress/react18';
|
|
32247
|
+
export interface MountOptions {
|
|
32248
|
+
providerProps?: Partial<EuiProviderProps<any>>;
|
|
32249
|
+
} const mountCommand: (children: ReactNode, options?: MountOptions) => ReturnType<typeof mount>;
|
|
32250
|
+
export type mountCommand = typeof mountCommand;
|
|
32251
|
+
export {};
|
|
32252
|
+
|
|
32253
|
+
}
|
|
32254
|
+
declare module '@elastic/eui/cypress/support/setup/realMount' {
|
|
32255
|
+
import { ReactNode } from 'react';
|
|
32256
|
+
import './mount';
|
|
32257
|
+
import { MountOptions } from './mount'; const realMountCommand: (children: ReactNode, options?: MountOptions) => void;
|
|
32258
|
+
export type realMountCommand = typeof realMountCommand;
|
|
32259
|
+
export {};
|
|
32260
|
+
|
|
32261
|
+
}
|
|
32262
|
+
declare module '@elastic/eui' {
|
|
32263
|
+
import { ContextObject, Result, RunOptions } from 'axe-core';
|
|
32264
|
+
import { realPress } from 'cypress-real-events/commands/realPress';
|
|
32265
|
+
import type { mountCommand } from './setup/mount';
|
|
32266
|
+
import type { realMountCommand } from './setup/realMount';
|
|
32267
|
+
|
|
32268
|
+
type KeyOrShortcut = Parameters<typeof realPress>[0];
|
|
32269
|
+
type RealPressOptions = Parameters<typeof realPress>[1]; global {
|
|
32270
|
+
namespace Cypress {
|
|
32271
|
+
interface Chainable<Subject> {
|
|
32272
|
+
/**
|
|
32273
|
+
* Convenience method to run the axe-core accessibility scanner without having to establish
|
|
32274
|
+
* `cy.injectAxe()` in a `beforeEach` block. This method also reports axe violations in the
|
|
32275
|
+
* console output for debugging.
|
|
32276
|
+
*
|
|
32277
|
+
* @param skipFailures Set to true to report failures to the console without Cypress failing the test.
|
|
32278
|
+
* @param context Any valid node or CSS selector. Defaults to the Cypress containing `<div>`.
|
|
32279
|
+
* @param axeConfig Add or change rules in the `axe.run` config object
|
|
32280
|
+
* @see https://www.deque.com/axe/core-documentation/api-documentation/#api-name-axerun
|
|
32281
|
+
* @param callback Provide a custom callback function to handle the violations array from the Results object
|
|
32282
|
+
* @see https://www.deque.com/axe/core-documentation/api-documentation/#results-object
|
|
32283
|
+
*/
|
|
32284
|
+
checkAxe(options?: {
|
|
32285
|
+
skipFailures?: boolean;
|
|
32286
|
+
context?: ContextObject | string;
|
|
32287
|
+
axeConfig?: RunOptions;
|
|
32288
|
+
callback?: (violations: Result[]) => void;
|
|
32289
|
+
}): void;
|
|
32290
|
+
|
|
32291
|
+
/**
|
|
32292
|
+
* Mounts components with a basic `EuiProvider` wrapper
|
|
32293
|
+
*/
|
|
32294
|
+
mount: mountCommand;
|
|
32295
|
+
|
|
32296
|
+
/**
|
|
32297
|
+
* This ensures the correct testing window has focus when using Cypress Real Events.
|
|
32298
|
+
* @see https://github.com/dmtrKovalenko/cypress-real-events/issues/196
|
|
32299
|
+
*/
|
|
32300
|
+
realMount: realMountCommand;
|
|
32301
|
+
|
|
32302
|
+
/**
|
|
32303
|
+
* Repeat the Real Events `realPress()` method 2 or more times
|
|
32304
|
+
* @param keyToPress Any valid key or array of keys https://docs.cypress.io/api/commands/type#Arguments
|
|
32305
|
+
* @param count Number of times to invoke `realPress()`. Defaults to 2.
|
|
32306
|
+
*/
|
|
32307
|
+
repeatRealPress(
|
|
32308
|
+
keyToPress: KeyOrShortcut,
|
|
32309
|
+
count?: number,
|
|
32310
|
+
options?: RealPressOptions
|
|
32311
|
+
): void;
|
|
32312
|
+
|
|
32313
|
+
/**
|
|
32314
|
+
* Select an element's content and copy it to the browser clipboard
|
|
32315
|
+
* @param selectorToCopy e.g. '.euiDataGrid__content'
|
|
32316
|
+
* @returns a chainable .then((string) => { doSomethingWith(string); })
|
|
32317
|
+
*/
|
|
32318
|
+
selectAndCopy(selectorToCopy: string): Chainable<string>;
|
|
32319
|
+
|
|
32320
|
+
/*
|
|
32321
|
+
* Get the value of a CSS variable from the element's computed styles.
|
|
32322
|
+
* Params: variableName - the name of the CSS variable (e.g. '--euiColorPrimary')
|
|
32323
|
+
*/
|
|
32324
|
+
cssVar(variableName: string): Chainable<string | null>;
|
|
32325
|
+
|
|
32326
|
+
/**
|
|
32327
|
+
* Waits for an element's position to remain stable for a few consecutive checks.
|
|
32328
|
+
* This is useful for ensuring that repositioning logic has completed after an event like a scroll.
|
|
32329
|
+
*/
|
|
32330
|
+
waitForPositionToSettle(): Chainable<JQuery<HTMLElement>>;
|
|
32331
|
+
}
|
|
32332
|
+
interface Chainer<Subject> {
|
|
32333
|
+
(chainer: 'be.euiDisabled'): Chainable<Subject>;
|
|
32334
|
+
(chainer: 'be.euiEnabled'): Chainable<Subject>;
|
|
32335
|
+
}
|
|
32336
|
+
}
|
|
32337
|
+
namespace Chai {
|
|
32338
|
+
interface Assertion {
|
|
32339
|
+
euiDisabled: Assertion;
|
|
32340
|
+
euiEnabled: Assertion;
|
|
32341
|
+
}
|
|
32342
|
+
}
|
|
32343
|
+
}
|
|
32344
|
+
|
|
32345
|
+
}
|
|
31945
32346
|
// TODO: remove once exported by package itself
|
|
31946
32347
|
// https://github.com/oblador/loki/pull/516
|
|
31947
32348
|
declare module '@loki/create-async-callback' {
|
|
@@ -31960,12 +32361,13 @@ declare module '@elastic/eui' {
|
|
|
31960
32361
|
"euiTourFooter.endTour": any;
|
|
31961
32362
|
"euiTourFooter.skipTour": any;
|
|
31962
32363
|
"euiTourFooter.closeTour": any;
|
|
31963
|
-
"euiIconTip.defaultAriaLabel": any;
|
|
31964
32364
|
"euiToast.newNotification": any;
|
|
31965
32365
|
"euiToast.notification": any;
|
|
31966
32366
|
"euiToast.dismissToast": any;
|
|
31967
32367
|
"euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
|
|
31968
32368
|
"euiGlobalToastList.clearAllToastsButtonDisplayText": any;
|
|
32369
|
+
"euiIconTip.defaultAriaLabel": any;
|
|
32370
|
+
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
31969
32371
|
"euiStepStrings.step": any;
|
|
31970
32372
|
"euiStepStrings.simpleStep": any;
|
|
31971
32373
|
"euiStepStrings.complete": any;
|
|
@@ -31983,22 +32385,21 @@ declare module '@elastic/eui' {
|
|
|
31983
32385
|
"euiStepStrings.current": any;
|
|
31984
32386
|
"euiStepStrings.simpleCurrent": any;
|
|
31985
32387
|
"euiStat.loadingText": any;
|
|
31986
|
-
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
31987
32388
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
31988
32389
|
"euiSkeletonLoading.loadingAriaText": any;
|
|
32390
|
+
"euiSearchBox.placeholder": any;
|
|
32391
|
+
"euiSearchBox.incrementalAriaLabel": any;
|
|
32392
|
+
"euiSearchBox.ariaLabel": any;
|
|
31989
32393
|
"euiSideNav.mobileToggleAriaLabel": any;
|
|
32394
|
+
"euiResizablePanel.toggleButtonAriaLabel": any;
|
|
32395
|
+
"euiResizableButton.horizontalResizerAriaLabel": any;
|
|
32396
|
+
"euiResizableButton.verticalResizerAriaLabel": any;
|
|
31990
32397
|
"euiSelectable.loadingOptions": any;
|
|
31991
32398
|
"euiSelectable.noMatchingOptions": any;
|
|
31992
32399
|
"euiSelectable.noAvailableOptions": any;
|
|
31993
32400
|
"euiSelectable.screenReaderInstructions": any;
|
|
31994
32401
|
"euiSelectable.placeholderName": any;
|
|
31995
32402
|
"euiSelectable.searchResults": any;
|
|
31996
|
-
"euiSearchBox.placeholder": any;
|
|
31997
|
-
"euiSearchBox.incrementalAriaLabel": any;
|
|
31998
|
-
"euiSearchBox.ariaLabel": any;
|
|
31999
|
-
"euiResizablePanel.toggleButtonAriaLabel": any;
|
|
32000
|
-
"euiResizableButton.horizontalResizerAriaLabel": any;
|
|
32001
|
-
"euiResizableButton.verticalResizerAriaLabel": any;
|
|
32002
32403
|
"euiProgress.valueText": any;
|
|
32003
32404
|
"euiPopover.screenReaderAnnouncement": any;
|
|
32004
32405
|
"euiPaginationButtonArrow.firstPage": any;
|
|
@@ -32015,14 +32416,10 @@ declare module '@elastic/eui' {
|
|
|
32015
32416
|
"euiPagination.of": any;
|
|
32016
32417
|
"euiPagination.collection": any;
|
|
32017
32418
|
"euiPagination.fromEndLabel": any;
|
|
32419
|
+
"euiModal.screenReaderModalDialog": any;
|
|
32420
|
+
"euiModal.closeModal": any;
|
|
32018
32421
|
"euiMarkdownEditorToolbar.editor": any;
|
|
32019
32422
|
"euiMarkdownEditorToolbar.previewMarkdown": any;
|
|
32020
|
-
"euiMarkdownEditorFooter.uploadingFiles": any;
|
|
32021
|
-
"euiMarkdownEditorFooter.openUploadModal": any;
|
|
32022
|
-
"euiMarkdownEditorFooter.unsupportedFileType": any;
|
|
32023
|
-
"euiMarkdownEditorFooter.supportedFileTypes": any;
|
|
32024
|
-
"euiMarkdownEditorFooter.showSyntaxErrors": any;
|
|
32025
|
-
"euiMarkdownEditorFooter.errorsTitle": any;
|
|
32026
32423
|
"euiMarkdownEditorHelpButton.mdSyntaxLink": any;
|
|
32027
32424
|
"euiMarkdownEditorHelpButton.syntaxTitle": any;
|
|
32028
32425
|
"euiMarkdownEditorHelpButton.showMarkdownHelp": any;
|
|
@@ -32030,10 +32427,14 @@ declare module '@elastic/eui' {
|
|
|
32030
32427
|
"euiMarkdownEditorHelpButton.syntaxModalDescriptionSuffix": any;
|
|
32031
32428
|
"euiMarkdownEditorHelpButton.closeButton": any;
|
|
32032
32429
|
"euiMarkdownEditorHelpButton.syntaxPopoverDescription": any;
|
|
32430
|
+
"euiMarkdownEditorFooter.uploadingFiles": any;
|
|
32431
|
+
"euiMarkdownEditorFooter.openUploadModal": any;
|
|
32432
|
+
"euiMarkdownEditorFooter.unsupportedFileType": any;
|
|
32433
|
+
"euiMarkdownEditorFooter.supportedFileTypes": any;
|
|
32434
|
+
"euiMarkdownEditorFooter.showSyntaxErrors": any;
|
|
32435
|
+
"euiMarkdownEditorFooter.errorsTitle": any;
|
|
32033
32436
|
"euiMark.highlightStart": any;
|
|
32034
32437
|
"euiMark.highlightEnd": any;
|
|
32035
|
-
"euiModal.screenReaderModalDialog": any;
|
|
32036
|
-
"euiModal.closeModal": any;
|
|
32037
32438
|
"euiLoadingStrings.ariaLabel": any;
|
|
32038
32439
|
"euiExternalLinkIcon.newTarget.screenReaderOnlyText": any;
|
|
32039
32440
|
"euiExternalLinkIcon.externalTarget.screenReaderOnlyText": any;
|
|
@@ -32054,7 +32455,6 @@ declare module '@elastic/eui' {
|
|
|
32054
32455
|
"euiDataGrid.ariaLabel": any;
|
|
32055
32456
|
"euiDataGrid.ariaLabelledBy": any;
|
|
32056
32457
|
"euiDataGrid.screenReaderNotice": any;
|
|
32057
|
-
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
32058
32458
|
"euiComboBox.listboxAriaLabel": any;
|
|
32059
32459
|
"euiSaturation.ariaLabel": any;
|
|
32060
32460
|
"euiSaturation.roleDescription": any;
|
|
@@ -32071,19 +32471,20 @@ declare module '@elastic/eui' {
|
|
|
32071
32471
|
"euiColorPicker.alphaLabel": any;
|
|
32072
32472
|
"euiColorPicker.openLabel": any;
|
|
32073
32473
|
"euiColorPicker.closeLabel": any;
|
|
32074
|
-
"
|
|
32474
|
+
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
32075
32475
|
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
32076
32476
|
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
32077
32477
|
"euiCodeBlockFullScreen.ariaLabel": any;
|
|
32078
32478
|
"euiCodeBlockCopy.copy": any;
|
|
32079
32479
|
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
32080
32480
|
"euiCodeBlock.label": any;
|
|
32081
|
-
"
|
|
32082
|
-
"euiBottomBar.customScreenReaderAnnouncement": any;
|
|
32083
|
-
"euiBottomBar.screenReaderAnnouncement": any;
|
|
32481
|
+
"euiCallOut.dismissAriaLabel": any;
|
|
32084
32482
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
32085
32483
|
"euiBreadcrumb.collapsedBadge.ariaLabel": any;
|
|
32086
32484
|
"euiBreadcrumb.popoverAriaLabel": any;
|
|
32485
|
+
"euiBottomBar.screenReaderHeading": any;
|
|
32486
|
+
"euiBottomBar.customScreenReaderAnnouncement": any;
|
|
32487
|
+
"euiBottomBar.screenReaderAnnouncement": any;
|
|
32087
32488
|
"euiCollapsedItemActions.allActionsTooltip": any;
|
|
32088
32489
|
"euiCollapsedItemActions.allActions": any;
|
|
32089
32490
|
"euiCollapsedItemActions.allActionsDisabled": any;
|
|
@@ -32101,6 +32502,7 @@ declare module '@elastic/eui' {
|
|
|
32101
32502
|
"euiTablePagination.rowsPerPageOptionShowAllRows": any;
|
|
32102
32503
|
"euiTablePagination.rowsPerPageOption": any;
|
|
32103
32504
|
"euiTableSortMobile.sorting": any;
|
|
32505
|
+
"euiFieldValueSelectionFilter.buttonLabelHint": any;
|
|
32104
32506
|
"euiSelectableTemplateSitewide.searchPlaceholder": any;
|
|
32105
32507
|
"euiSelectableTemplateSitewide.loadingResults": any;
|
|
32106
32508
|
"euiSelectableTemplateSitewide.noResults": any;
|
|
@@ -32114,7 +32516,6 @@ declare module '@elastic/eui' {
|
|
|
32114
32516
|
"euiSelectableListItem.mixedOptionInstructions": any;
|
|
32115
32517
|
"euiSelectableListItem.mixedOptionUncheckInstructions": any;
|
|
32116
32518
|
"euiSelectableListItem.mixedOptionExcludeInstructions": any;
|
|
32117
|
-
"euiFieldValueSelectionFilter.buttonLabelHint": any;
|
|
32118
32519
|
"euiPinnableListGroup.pinExtraActionLabel": any;
|
|
32119
32520
|
"euiPinnableListGroup.pinnedExtraActionLabel": any;
|
|
32120
32521
|
"euiHeaderLinks.appNavigation": any;
|
|
@@ -32123,15 +32524,20 @@ declare module '@elastic/eui' {
|
|
|
32123
32524
|
"euiSuperSelect.ariaLabel": any;
|
|
32124
32525
|
"euiRange.sliderScreenReaderInstructions": any;
|
|
32125
32526
|
"euiDualRange.sliderScreenReaderInstructions": any;
|
|
32126
|
-
"euiFormControlLayoutDelimited.delimiterLabel": any;
|
|
32127
|
-
"euiFormControlLayoutClearButton.label": any;
|
|
32128
32527
|
"euiFilePicker.promptText": any;
|
|
32129
32528
|
"euiFilePicker.filesSelected": any;
|
|
32130
32529
|
"euiFilePicker.removeSelectedAriaLabel": any;
|
|
32131
32530
|
"euiFilePicker.removeSelected": any;
|
|
32531
|
+
"euiFormControlLayoutDelimited.delimiterLabel": any;
|
|
32532
|
+
"euiFormControlLayoutClearButton.label": any;
|
|
32533
|
+
"euiFieldSearch.clearSearchButtonLabel": any;
|
|
32132
32534
|
"euiFieldPassword.showPassword": any;
|
|
32133
32535
|
"euiFieldPassword.maskPassword": any;
|
|
32134
|
-
"
|
|
32536
|
+
"euiSuperUpdateButton.updatingButtonLabel": any;
|
|
32537
|
+
"euiSuperUpdateButton.updateButtonLabel": any;
|
|
32538
|
+
"euiSuperUpdateButton.refreshButtonLabel": any;
|
|
32539
|
+
"euiSuperUpdateButton.cannotUpdateTooltip": any;
|
|
32540
|
+
"euiSuperUpdateButton.clickToApplyTooltip": any;
|
|
32135
32541
|
"euiTimeOptions.last": any;
|
|
32136
32542
|
"euiTimeOptions.next": any;
|
|
32137
32543
|
"euiTimeOptions.seconds": any;
|
|
@@ -32170,11 +32576,13 @@ declare module '@elastic/eui' {
|
|
|
32170
32576
|
"euiTimeOptions.weekToDate": any;
|
|
32171
32577
|
"euiTimeOptions.monthToDate": any;
|
|
32172
32578
|
"euiTimeOptions.yearToDate": any;
|
|
32173
|
-
"
|
|
32174
|
-
"
|
|
32175
|
-
"
|
|
32176
|
-
"
|
|
32177
|
-
"
|
|
32579
|
+
"euiTimeWindowButtons.invalidShiftLabel": any;
|
|
32580
|
+
"euiTimeWindowButtons.invalidZoomOutLabel": any;
|
|
32581
|
+
"euiTimeWindowButtons.previousLabel": any;
|
|
32582
|
+
"euiTimeWindowButtons.previousDescription": any;
|
|
32583
|
+
"euiTimeWindowButtons.zoomOutLabel": any;
|
|
32584
|
+
"euiTimeWindowButtons.nextLabel": any;
|
|
32585
|
+
"euiTimeWindowButtons.nextDescription": any;
|
|
32178
32586
|
"euiPrettyInterval.seconds": any;
|
|
32179
32587
|
"euiPrettyInterval.minutes": any;
|
|
32180
32588
|
"euiPrettyInterval.hours": any;
|
|
@@ -32255,6 +32663,7 @@ declare module '@elastic/eui' {
|
|
|
32255
32663
|
"euiKeyboardShortcuts.escapeDescription": any;
|
|
32256
32664
|
"euiFullscreenSelector.fullscreenButton": any;
|
|
32257
32665
|
"euiFullscreenSelector.fullscreenButtonActive": any;
|
|
32666
|
+
"euiDataGridToolbarControl.badgeAriaLabel": any;
|
|
32258
32667
|
"euiDisplaySelector.densityLabel": any;
|
|
32259
32668
|
"euiDisplaySelector.labelCompact": any;
|
|
32260
32669
|
"euiDisplaySelector.labelNormal": any;
|
|
@@ -32265,31 +32674,23 @@ declare module '@elastic/eui' {
|
|
|
32265
32674
|
"euiDisplaySelector.labelMax": any;
|
|
32266
32675
|
"euiDisplaySelector.buttonText": any;
|
|
32267
32676
|
"euiDisplaySelector.resetButtonText": any;
|
|
32268
|
-
"
|
|
32677
|
+
"euiColumnSorting.button": any;
|
|
32678
|
+
"euiColumnSorting.sortFieldAriaLabel": any;
|
|
32679
|
+
"euiColumnSorting.emptySorting": any;
|
|
32680
|
+
"euiColumnSorting.pickFields": any;
|
|
32681
|
+
"euiColumnSorting.clearAll": any;
|
|
32269
32682
|
"euiColumnSortingDraggable.defaultSortAsc": any;
|
|
32270
32683
|
"euiColumnSortingDraggable.defaultSortDesc": any;
|
|
32271
32684
|
"euiColumnSortingDraggable.dragHandleAriaLabel": any;
|
|
32272
32685
|
"euiColumnSortingDraggable.activeSortLabel": any;
|
|
32273
32686
|
"euiColumnSortingDraggable.removeSortLabel": any;
|
|
32274
32687
|
"euiColumnSortingDraggable.toggleLegend": any;
|
|
32275
|
-
"euiColumnSorting.button": any;
|
|
32276
|
-
"euiColumnSorting.sortFieldAriaLabel": any;
|
|
32277
|
-
"euiColumnSorting.emptySorting": any;
|
|
32278
|
-
"euiColumnSorting.pickFields": any;
|
|
32279
|
-
"euiColumnSorting.clearAll": any;
|
|
32280
32688
|
"euiColumnSelector.dragHandleAriaLabel": any;
|
|
32281
32689
|
"euiColumnSelector.button": any;
|
|
32282
32690
|
"euiColumnSelector.search": any;
|
|
32283
32691
|
"euiColumnSelector.searchcolumns": any;
|
|
32284
32692
|
"euiColumnSelector.selectAll": any;
|
|
32285
32693
|
"euiColumnSelector.hideAll": any;
|
|
32286
|
-
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
32287
|
-
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
32288
|
-
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
32289
|
-
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
32290
|
-
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
32291
|
-
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
32292
|
-
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
32293
32694
|
"euiComboBoxOptionsList.loadingOptions": any;
|
|
32294
32695
|
"euiComboBoxOptionsList.delimiterMessage": any;
|
|
32295
32696
|
"euiComboBoxOptionsList.alreadyAdded": any;
|
|
@@ -32298,10 +32699,28 @@ declare module '@elastic/eui' {
|
|
|
32298
32699
|
"euiComboBoxOptionsList.noAvailableOptions": any;
|
|
32299
32700
|
"euiComboBoxOptionsList.allOptionsSelected": any;
|
|
32300
32701
|
"euiComboBoxPill.removeSelection": any;
|
|
32702
|
+
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
32703
|
+
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
32704
|
+
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
32705
|
+
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
32706
|
+
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
32707
|
+
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
32708
|
+
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
32301
32709
|
"euiCardSelect.selected": any;
|
|
32302
32710
|
"euiCardSelect.unavailable": any;
|
|
32303
32711
|
"euiCardSelect.select": any;
|
|
32304
32712
|
"euiAccordionChildrenLoading.message": any;
|
|
32713
|
+
"euiRecentlyUsed.legend": any;
|
|
32714
|
+
"euiQuickSelectPopover.buttonLabel": any;
|
|
32715
|
+
"euiQuickSelect.quickSelectTitle": any;
|
|
32716
|
+
"euiQuickSelect.previousLabel": any;
|
|
32717
|
+
"euiQuickSelect.nextLabel": any;
|
|
32718
|
+
"euiQuickSelect.tenseLabel": any;
|
|
32719
|
+
"euiQuickSelect.valueLabel": any;
|
|
32720
|
+
"euiQuickSelect.unitLabel": any;
|
|
32721
|
+
"euiQuickSelect.applyButton": any;
|
|
32722
|
+
"euiQuickSelect.fullDescription": any;
|
|
32723
|
+
"euiCommonlyUsedTimeRanges.legend": any;
|
|
32305
32724
|
"euiRelativeTab.numberInputLabel": any;
|
|
32306
32725
|
"euiRelativeTab.numberInputError": any;
|
|
32307
32726
|
"euiRelativeTab.dateInputError": any;
|
|
@@ -32319,17 +32738,6 @@ declare module '@elastic/eui' {
|
|
|
32319
32738
|
"euiDatePopoverButton.outdatedTitle": any;
|
|
32320
32739
|
"euiAbsoluteTab.dateFormatButtonLabel": any;
|
|
32321
32740
|
"euiAbsoluteTab.dateFormatError": any;
|
|
32322
|
-
"euiRecentlyUsed.legend": any;
|
|
32323
|
-
"euiQuickSelectPopover.buttonLabel": any;
|
|
32324
|
-
"euiQuickSelect.quickSelectTitle": any;
|
|
32325
|
-
"euiQuickSelect.previousLabel": any;
|
|
32326
|
-
"euiQuickSelect.nextLabel": any;
|
|
32327
|
-
"euiQuickSelect.tenseLabel": any;
|
|
32328
|
-
"euiQuickSelect.valueLabel": any;
|
|
32329
|
-
"euiQuickSelect.unitLabel": any;
|
|
32330
|
-
"euiQuickSelect.applyButton": any;
|
|
32331
|
-
"euiQuickSelect.fullDescription": any;
|
|
32332
|
-
"euiCommonlyUsedTimeRanges.legend": any;
|
|
32333
32741
|
"euiDataGridHeaderCell.sortedByAscendingSingle": any;
|
|
32334
32742
|
"euiDataGridHeaderCell.sortedByDescendingSingle": any;
|
|
32335
32743
|
"euiDataGridHeaderCell.sortedByAscendingFirst": any;
|