@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
|
@@ -20,10 +20,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { css } from '@emotion/react';
|
|
23
|
-
import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate, preventForcedColors, highContrastModeStyles } from '../../../global_styling';
|
|
24
|
-
import { BUTTON_COLORS } from '../../../global_styling/mixins/_button';
|
|
23
|
+
import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate, preventForcedColors, highContrastModeStyles, euiDisabledSelector } from '../../../global_styling';
|
|
24
|
+
import { BUTTON_COLORS, euiButtonSizeMap } from '../../../global_styling/mixins/_button';
|
|
25
25
|
import { euiScreenReaderOnly } from '../../accessibility';
|
|
26
|
-
import { euiFormVariables } from '../../form/form.styles';
|
|
27
26
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
28
27
|
name: "m6ysua-tooltipWrapper",
|
|
29
28
|
styles: "overflow:hidden;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;"
|
|
@@ -43,9 +42,8 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
43
42
|
export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
|
|
44
43
|
var euiTheme = euiThemeContext.euiTheme,
|
|
45
44
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
var compressedButtonHeight = mathWithUnits([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
|
|
45
|
+
var buttonSizes = euiButtonSizeMap(euiThemeContext);
|
|
46
|
+
var compressedButtonHeight = mathWithUnits([buttonSizes.s.height, euiTheme.border.width.thin], function (x, y) {
|
|
49
47
|
return x - y * 6;
|
|
50
48
|
});
|
|
51
49
|
var selectedSelectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
@@ -57,10 +55,16 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
|
|
|
57
55
|
euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:2;}", euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;}&:is(", selectedSelectors, "){", highContrastModeStyles(euiThemeContext, {
|
|
58
56
|
forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n border: none;\n\n /* styles the content manually instead of the button itself to preserve the system\n focus style, as otherwise preventForcedColors() would require manual styling */\n > [class*=\"euiButtonDisplayContent\"] {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
|
|
59
57
|
}), ";};label:euiButtonGroupButton;"),
|
|
60
|
-
iconOnly:
|
|
58
|
+
iconOnly: {
|
|
59
|
+
// used only as classname, sizes are added separately
|
|
60
|
+
iconOnly: /*#__PURE__*/css(";label:iconOnly;"),
|
|
61
|
+
s: "\n ".concat(logicalCSS('width', buttonSizes.s.height), "\n "),
|
|
62
|
+
m: "\n ".concat(logicalCSS('width', buttonSizes.m.height), "\n "),
|
|
63
|
+
compressed: "\n ".concat(logicalCSS('width', compressedButtonHeight), "\n ")
|
|
64
|
+
},
|
|
61
65
|
// Sizes
|
|
62
66
|
uncompressed: {
|
|
63
|
-
uncompressed: /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}&:is(", selectedSelectors, "):not(
|
|
67
|
+
uncompressed: /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}&:is(", selectedSelectors, "):not(", euiDisabledSelector, "){z-index:1;border:", euiTheme.border.width.thin, " solid transparent;", highContrastModeStyles(euiThemeContext, {
|
|
64
68
|
forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat(mathWithUnits(euiTheme.border.width.thin, function (x) {
|
|
65
69
|
return x * 4;
|
|
66
70
|
}), ";\n }\n ")
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var _excluded = ["className", "iconType", "iconSize", "color", "isDisabled", "disabled", "href", "type", "display", "target", "rel", "size", "buttonRef", "isSelected", "isLoading"]
|
|
1
|
+
var _excluded = ["className", "iconType", "iconSize", "color", "isDisabled", "disabled", "hasAriaDisabled", "href", "type", "display", "target", "rel", "size", "buttonRef", "isSelected", "isLoading"],
|
|
2
|
+
_excluded2 = ["ref"];
|
|
2
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
4
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
@@ -13,7 +14,8 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import PropTypes from "prop-types";
|
|
15
16
|
import classNames from 'classnames';
|
|
16
|
-
import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
|
|
17
|
+
import { getSecureRelForTarget, useCombinedRefs, useEuiMemoizedStyles } from '../../../services';
|
|
18
|
+
import { useEuiDisabledElement } from '../../../services/hooks/useEuiDisabledElement';
|
|
17
19
|
import { EuiIcon } from '../../icon';
|
|
18
20
|
import { EuiLoadingSpinner } from '../../loading';
|
|
19
21
|
import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/_button';
|
|
@@ -31,6 +33,8 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
31
33
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
32
34
|
_isDisabled = _ref.isDisabled,
|
|
33
35
|
disabled = _ref.disabled,
|
|
36
|
+
_ref$hasAriaDisabled = _ref.hasAriaDisabled,
|
|
37
|
+
hasAriaDisabled = _ref$hasAriaDisabled === void 0 ? false : _ref$hasAriaDisabled,
|
|
34
38
|
href = _ref.href,
|
|
35
39
|
_ref$type = _ref.type,
|
|
36
40
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
@@ -49,6 +53,14 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
49
53
|
href: href,
|
|
50
54
|
isLoading: isLoading
|
|
51
55
|
});
|
|
56
|
+
var _useEuiDisabledElemen = useEuiDisabledElement({
|
|
57
|
+
isDisabled: isDisabled,
|
|
58
|
+
hasAriaDisabled: hasAriaDisabled,
|
|
59
|
+
onKeyDown: rest.onKeyDown
|
|
60
|
+
}),
|
|
61
|
+
disabledRef = _useEuiDisabledElemen.ref,
|
|
62
|
+
disabledButtonProps = _objectWithoutProperties(_useEuiDisabledElemen, _excluded2);
|
|
63
|
+
var setCombinedRef = useCombinedRefs([disabledRef, buttonRef]);
|
|
52
64
|
var ariaHidden = rest['aria-hidden'];
|
|
53
65
|
var isAriaHidden = ariaHidden === 'true' || ariaHidden === true;
|
|
54
66
|
if (!rest['aria-label'] && !rest['aria-labelledby'] && !isAriaHidden) {
|
|
@@ -108,7 +120,7 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
108
120
|
href: href,
|
|
109
121
|
target: target,
|
|
110
122
|
rel: secureRel,
|
|
111
|
-
ref:
|
|
123
|
+
ref: setCombinedRef
|
|
112
124
|
}, rest), buttonIcon);
|
|
113
125
|
}
|
|
114
126
|
var buttonType;
|
|
@@ -119,8 +131,8 @@ export var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
119
131
|
className: classes,
|
|
120
132
|
"aria-pressed": isSelected,
|
|
121
133
|
type: type,
|
|
122
|
-
ref:
|
|
123
|
-
}, rest), buttonIcon);
|
|
134
|
+
ref: setCombinedRef
|
|
135
|
+
}, rest, disabledButtonProps), buttonIcon);
|
|
124
136
|
};
|
|
125
137
|
EuiButtonIcon.propTypes = {
|
|
126
138
|
type: PropTypes.any,
|
|
@@ -140,7 +152,6 @@ EuiButtonIcon.propTypes = {
|
|
|
140
152
|
color: PropTypes.any,
|
|
141
153
|
"aria-label": PropTypes.string,
|
|
142
154
|
"aria-labelledby": PropTypes.string,
|
|
143
|
-
isDisabled: PropTypes.bool,
|
|
144
155
|
/**
|
|
145
156
|
* Overall size of button.
|
|
146
157
|
* Matches the sizes of other EuiButtons
|
|
@@ -187,5 +198,18 @@ EuiButtonIcon.propTypes = {
|
|
|
187
198
|
className: PropTypes.string,
|
|
188
199
|
"data-test-subj": PropTypes.string,
|
|
189
200
|
css: PropTypes.any,
|
|
201
|
+
/**
|
|
202
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
203
|
+
*/
|
|
204
|
+
isDisabled: PropTypes.bool,
|
|
205
|
+
/**
|
|
206
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
207
|
+
*
|
|
208
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
209
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
210
|
+
*
|
|
211
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
212
|
+
*/
|
|
213
|
+
hasAriaDisabled: PropTypes.bool,
|
|
190
214
|
buttonRef: PropTypes.any
|
|
191
215
|
};
|
|
@@ -433,12 +433,29 @@ EuiCard.propTypes = {
|
|
|
433
433
|
*/
|
|
434
434
|
size: PropTypes.any,
|
|
435
435
|
/**
|
|
436
|
-
* `disabled`
|
|
436
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
437
437
|
*/
|
|
438
438
|
/**
|
|
439
|
-
* `disabled`
|
|
439
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
440
440
|
*/
|
|
441
441
|
isDisabled: PropTypes.bool,
|
|
442
|
+
/**
|
|
443
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
444
|
+
*
|
|
445
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
446
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
447
|
+
*
|
|
448
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
449
|
+
*/
|
|
450
|
+
/**
|
|
451
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
452
|
+
*
|
|
453
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
454
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
455
|
+
*
|
|
456
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
457
|
+
*/
|
|
458
|
+
hasAriaDisabled: PropTypes.bool,
|
|
442
459
|
className: PropTypes.string,
|
|
443
460
|
"aria-label": PropTypes.string,
|
|
444
461
|
"data-test-subj": PropTypes.string,
|
|
@@ -472,29 +489,7 @@ EuiCard.propTypes = {
|
|
|
472
489
|
css: PropTypes.any
|
|
473
490
|
}),
|
|
474
491
|
style: PropTypes.any,
|
|
475
|
-
type: PropTypes.any
|
|
476
|
-
/**
|
|
477
|
-
* Any `type` accepted by EuiIcon
|
|
478
|
-
*/
|
|
479
|
-
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "anomalyChart", "anomalySwimLane", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "backgroundTask", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "check", "checkCircle", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "comment", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controls", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "diff", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "errorFilled", "esqlVis", "exit", "expand", "expandMini", "export", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "info", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "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", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "minusInSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusInCircle", "plusInCircleFilled", "plusInSquare", "popout", "push", "question", "quote", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "streamsClassic", "streamsWired", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]),
|
|
480
|
-
/**
|
|
481
|
-
* Can only be one side `left` or `right`
|
|
482
|
-
*/
|
|
483
|
-
iconSide: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf([undefined])]),
|
|
484
|
-
/**
|
|
485
|
-
* Object of props passed to the `<span>` wrapping the content's text/children only (not icon)
|
|
486
|
-
*
|
|
487
|
-
* This span wrapper can be removed by passing `textProps={false}`.
|
|
488
|
-
*/
|
|
489
|
-
textProps: PropTypes.oneOfType([PropTypes.shape({
|
|
490
|
-
className: PropTypes.string,
|
|
491
|
-
"aria-label": PropTypes.string,
|
|
492
|
-
"data-test-subj": PropTypes.string,
|
|
493
|
-
css: PropTypes.any,
|
|
494
|
-
ref: PropTypes.any,
|
|
495
|
-
"data-text": PropTypes.string
|
|
496
|
-
}).isRequired, PropTypes.oneOf([false])]),
|
|
497
|
-
iconSize: PropTypes.any
|
|
492
|
+
type: PropTypes.any
|
|
498
493
|
}),
|
|
499
494
|
/**
|
|
500
495
|
* Use a border style of card instead of shadow
|
|
@@ -68,12 +68,29 @@ EuiCardSelect.propTypes = {
|
|
|
68
68
|
*/
|
|
69
69
|
size: PropTypes.any,
|
|
70
70
|
/**
|
|
71
|
-
* `disabled`
|
|
71
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
72
72
|
*/
|
|
73
73
|
/**
|
|
74
|
-
* `disabled`
|
|
74
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
75
75
|
*/
|
|
76
76
|
isDisabled: PropTypes.bool,
|
|
77
|
+
/**
|
|
78
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
79
|
+
*
|
|
80
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
81
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
82
|
+
*
|
|
83
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
87
|
+
*
|
|
88
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
89
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
90
|
+
*
|
|
91
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
92
|
+
*/
|
|
93
|
+
hasAriaDisabled: PropTypes.bool,
|
|
77
94
|
className: PropTypes.string,
|
|
78
95
|
"aria-label": PropTypes.string,
|
|
79
96
|
"data-test-subj": PropTypes.string,
|
|
@@ -107,29 +124,7 @@ EuiCardSelect.propTypes = {
|
|
|
107
124
|
css: PropTypes.any
|
|
108
125
|
}),
|
|
109
126
|
style: PropTypes.any,
|
|
110
|
-
type: PropTypes.any
|
|
111
|
-
/**
|
|
112
|
-
* Any `type` accepted by EuiIcon
|
|
113
|
-
*/
|
|
114
|
-
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "anomalyChart", "anomalySwimLane", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "backgroundTask", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "check", "checkCircle", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "comment", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controls", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "diff", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "errorFilled", "esqlVis", "exit", "expand", "expandMini", "export", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "info", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "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", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "minusInSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusInCircle", "plusInCircleFilled", "plusInSquare", "popout", "push", "question", "quote", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "streamsClassic", "streamsWired", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]),
|
|
115
|
-
/**
|
|
116
|
-
* Can only be one side `left` or `right`
|
|
117
|
-
*/
|
|
118
|
-
iconSide: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf([undefined])]),
|
|
119
|
-
/**
|
|
120
|
-
* Object of props passed to the `<span>` wrapping the content's text/children only (not icon)
|
|
121
|
-
*
|
|
122
|
-
* This span wrapper can be removed by passing `textProps={false}`.
|
|
123
|
-
*/
|
|
124
|
-
textProps: PropTypes.oneOfType([PropTypes.shape({
|
|
125
|
-
className: PropTypes.string,
|
|
126
|
-
"aria-label": PropTypes.string,
|
|
127
|
-
"data-test-subj": PropTypes.string,
|
|
128
|
-
css: PropTypes.any,
|
|
129
|
-
ref: PropTypes.any,
|
|
130
|
-
"data-text": PropTypes.string
|
|
131
|
-
}).isRequired, PropTypes.oneOf([false])]),
|
|
132
|
-
iconSize: PropTypes.any
|
|
127
|
+
type: PropTypes.any
|
|
133
128
|
};
|
|
134
129
|
function euiCardSelectableText(isSelected, isDisabled, children) {
|
|
135
130
|
if (children) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["style"
|
|
1
|
+
var _excluded = ["style"],
|
|
2
2
|
_excluded2 = ["style"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
@@ -24,29 +24,31 @@ export var EuiCodeBlockVirtualized = function EuiCodeBlockVirtualized(_ref) {
|
|
|
24
24
|
overflowHeight = _ref.overflowHeight,
|
|
25
25
|
preProps = _ref.preProps,
|
|
26
26
|
codeProps = _ref.codeProps;
|
|
27
|
+
// NOTE: Don't inject other content (e.g. a label) inside this outer virtualized
|
|
28
|
+
// container as react-window requires this to be stable for scroll calculations.
|
|
29
|
+
// Instead, inject it into the inner virtualized element.
|
|
27
30
|
var VirtualizedOuterElement = useMemo(function () {
|
|
28
31
|
return /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
29
32
|
var style = _ref2.style,
|
|
30
|
-
children = _ref2.children,
|
|
31
33
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
32
34
|
return ___EmotionJSX("pre", _extends({
|
|
33
35
|
style: logicalStyles(style)
|
|
34
36
|
}, props, {
|
|
35
37
|
ref: ref
|
|
36
|
-
}, preProps)
|
|
38
|
+
}, preProps));
|
|
37
39
|
});
|
|
38
|
-
}, [preProps
|
|
40
|
+
}, [preProps]);
|
|
39
41
|
var VirtualizedInnerElement = useMemo(function () {
|
|
40
42
|
return /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
41
43
|
var style = _ref3.style,
|
|
42
44
|
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
43
|
-
return ___EmotionJSX("code", _extends({
|
|
45
|
+
return ___EmotionJSX(React.Fragment, null, label, ___EmotionJSX("code", _extends({
|
|
44
46
|
style: logicalStyles(style)
|
|
45
47
|
}, props, {
|
|
46
48
|
ref: ref
|
|
47
|
-
}, codeProps));
|
|
49
|
+
}, codeProps)));
|
|
48
50
|
});
|
|
49
|
-
}, [codeProps]);
|
|
51
|
+
}, [codeProps, label]);
|
|
50
52
|
var virtualizationProps = {
|
|
51
53
|
itemData: data,
|
|
52
54
|
itemSize: rowHeight,
|
package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js
CHANGED
|
@@ -233,7 +233,6 @@ KibanaCollapsibleNavSolution.propTypes = {
|
|
|
233
233
|
color: PropTypes.any,
|
|
234
234
|
"aria-label": PropTypes.string,
|
|
235
235
|
"aria-labelledby": PropTypes.string,
|
|
236
|
-
isDisabled: PropTypes.bool,
|
|
237
236
|
/**
|
|
238
237
|
* Overall size of button.
|
|
239
238
|
* Matches the sizes of other EuiButtons
|
|
@@ -263,6 +262,19 @@ KibanaCollapsibleNavSolution.propTypes = {
|
|
|
263
262
|
className: PropTypes.string,
|
|
264
263
|
"data-test-subj": PropTypes.string,
|
|
265
264
|
css: PropTypes.any,
|
|
265
|
+
/**
|
|
266
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
267
|
+
*/
|
|
268
|
+
isDisabled: PropTypes.bool,
|
|
269
|
+
/**
|
|
270
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
271
|
+
*
|
|
272
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
273
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
274
|
+
*
|
|
275
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
276
|
+
*/
|
|
277
|
+
hasAriaDisabled: PropTypes.bool,
|
|
266
278
|
buttonRef: PropTypes.any
|
|
267
279
|
}),
|
|
268
280
|
/**
|
|
@@ -222,7 +222,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
222
222
|
color: PropTypes.any,
|
|
223
223
|
"aria-label": PropTypes.string,
|
|
224
224
|
"aria-labelledby": PropTypes.string,
|
|
225
|
-
isDisabled: PropTypes.bool,
|
|
226
225
|
/**
|
|
227
226
|
* Overall size of button.
|
|
228
227
|
* Matches the sizes of other EuiButtons
|
|
@@ -252,6 +251,19 @@ EuiDataGridCellContent.propTypes = {
|
|
|
252
251
|
className: PropTypes.string,
|
|
253
252
|
"data-test-subj": PropTypes.string,
|
|
254
253
|
css: PropTypes.any,
|
|
254
|
+
/**
|
|
255
|
+
* Controls the disabled behavior via the native `disabled` attribute.
|
|
256
|
+
*/
|
|
257
|
+
isDisabled: PropTypes.bool,
|
|
258
|
+
/**
|
|
259
|
+
* NOTE: Beta feature, may be changed or removed in the future
|
|
260
|
+
*
|
|
261
|
+
* Changes the native `disabled` attribute to `aria-disabled` to preserve focusability.
|
|
262
|
+
* This results in a semantically disabled button without the default browser handling of the disabled state.
|
|
263
|
+
*
|
|
264
|
+
* Use e.g. when a disabled button should have a tooltip.
|
|
265
|
+
*/
|
|
266
|
+
hasAriaDisabled: PropTypes.bool,
|
|
255
267
|
buttonRef: PropTypes.any
|
|
256
268
|
}),
|
|
257
269
|
/**
|
|
@@ -305,7 +317,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
305
317
|
color: PropTypes.any,
|
|
306
318
|
"aria-label": PropTypes.string,
|
|
307
319
|
"aria-labelledby": PropTypes.string,
|
|
308
|
-
isDisabled: PropTypes.bool,
|
|
309
320
|
size: PropTypes.any,
|
|
310
321
|
iconSize: PropTypes.any,
|
|
311
322
|
isSelected: PropTypes.bool,
|
|
@@ -314,6 +325,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
314
325
|
className: PropTypes.string,
|
|
315
326
|
"data-test-subj": PropTypes.string,
|
|
316
327
|
css: PropTypes.any,
|
|
328
|
+
isDisabled: PropTypes.bool,
|
|
329
|
+
hasAriaDisabled: PropTypes.bool,
|
|
317
330
|
buttonRef: PropTypes.any
|
|
318
331
|
}),
|
|
319
332
|
onClick: PropTypes.func,
|
|
@@ -348,7 +361,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
348
361
|
color: PropTypes.any,
|
|
349
362
|
"aria-label": PropTypes.string,
|
|
350
363
|
"aria-labelledby": PropTypes.string,
|
|
351
|
-
isDisabled: PropTypes.bool,
|
|
352
364
|
size: PropTypes.any,
|
|
353
365
|
iconSize: PropTypes.any,
|
|
354
366
|
isSelected: PropTypes.bool,
|
|
@@ -357,6 +369,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
357
369
|
className: PropTypes.string,
|
|
358
370
|
"data-test-subj": PropTypes.string,
|
|
359
371
|
css: PropTypes.any,
|
|
372
|
+
isDisabled: PropTypes.bool,
|
|
373
|
+
hasAriaDisabled: PropTypes.bool,
|
|
360
374
|
buttonRef: PropTypes.any
|
|
361
375
|
}),
|
|
362
376
|
onClick: PropTypes.func,
|
|
@@ -391,7 +405,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
391
405
|
color: PropTypes.any,
|
|
392
406
|
"aria-label": PropTypes.string,
|
|
393
407
|
"aria-labelledby": PropTypes.string,
|
|
394
|
-
isDisabled: PropTypes.bool,
|
|
395
408
|
size: PropTypes.any,
|
|
396
409
|
iconSize: PropTypes.any,
|
|
397
410
|
isSelected: PropTypes.bool,
|
|
@@ -400,6 +413,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
400
413
|
className: PropTypes.string,
|
|
401
414
|
"data-test-subj": PropTypes.string,
|
|
402
415
|
css: PropTypes.any,
|
|
416
|
+
isDisabled: PropTypes.bool,
|
|
417
|
+
hasAriaDisabled: PropTypes.bool,
|
|
403
418
|
buttonRef: PropTypes.any
|
|
404
419
|
}),
|
|
405
420
|
onClick: PropTypes.func,
|
|
@@ -434,7 +449,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
434
449
|
color: PropTypes.any,
|
|
435
450
|
"aria-label": PropTypes.string,
|
|
436
451
|
"aria-labelledby": PropTypes.string,
|
|
437
|
-
isDisabled: PropTypes.bool,
|
|
438
452
|
size: PropTypes.any,
|
|
439
453
|
iconSize: PropTypes.any,
|
|
440
454
|
isSelected: PropTypes.bool,
|
|
@@ -443,6 +457,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
443
457
|
className: PropTypes.string,
|
|
444
458
|
"data-test-subj": PropTypes.string,
|
|
445
459
|
css: PropTypes.any,
|
|
460
|
+
isDisabled: PropTypes.bool,
|
|
461
|
+
hasAriaDisabled: PropTypes.bool,
|
|
446
462
|
buttonRef: PropTypes.any
|
|
447
463
|
}),
|
|
448
464
|
onClick: PropTypes.func,
|
|
@@ -477,7 +493,6 @@ EuiDataGridCellContent.propTypes = {
|
|
|
477
493
|
color: PropTypes.any,
|
|
478
494
|
"aria-label": PropTypes.string,
|
|
479
495
|
"aria-labelledby": PropTypes.string,
|
|
480
|
-
isDisabled: PropTypes.bool,
|
|
481
496
|
size: PropTypes.any,
|
|
482
497
|
iconSize: PropTypes.any,
|
|
483
498
|
isSelected: PropTypes.bool,
|
|
@@ -486,6 +501,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
486
501
|
className: PropTypes.string,
|
|
487
502
|
"data-test-subj": PropTypes.string,
|
|
488
503
|
css: PropTypes.any,
|
|
504
|
+
isDisabled: PropTypes.bool,
|
|
505
|
+
hasAriaDisabled: PropTypes.bool,
|
|
489
506
|
buttonRef: PropTypes.any
|
|
490
507
|
}),
|
|
491
508
|
onClick: PropTypes.func,
|
|
@@ -1117,7 +1134,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1117
1134
|
color: PropTypes.any,
|
|
1118
1135
|
"aria-label": PropTypes.string,
|
|
1119
1136
|
"aria-labelledby": PropTypes.string,
|
|
1120
|
-
isDisabled: PropTypes.bool,
|
|
1121
1137
|
size: PropTypes.any,
|
|
1122
1138
|
iconSize: PropTypes.any,
|
|
1123
1139
|
isSelected: PropTypes.bool,
|
|
@@ -1126,6 +1142,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1126
1142
|
className: PropTypes.string,
|
|
1127
1143
|
"data-test-subj": PropTypes.string,
|
|
1128
1144
|
css: PropTypes.any,
|
|
1145
|
+
isDisabled: PropTypes.bool,
|
|
1146
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1129
1147
|
buttonRef: PropTypes.any
|
|
1130
1148
|
}),
|
|
1131
1149
|
onClick: PropTypes.func,
|
|
@@ -1160,7 +1178,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1160
1178
|
color: PropTypes.any,
|
|
1161
1179
|
"aria-label": PropTypes.string,
|
|
1162
1180
|
"aria-labelledby": PropTypes.string,
|
|
1163
|
-
isDisabled: PropTypes.bool,
|
|
1164
1181
|
size: PropTypes.any,
|
|
1165
1182
|
iconSize: PropTypes.any,
|
|
1166
1183
|
isSelected: PropTypes.bool,
|
|
@@ -1169,6 +1186,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1169
1186
|
className: PropTypes.string,
|
|
1170
1187
|
"data-test-subj": PropTypes.string,
|
|
1171
1188
|
css: PropTypes.any,
|
|
1189
|
+
isDisabled: PropTypes.bool,
|
|
1190
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1172
1191
|
buttonRef: PropTypes.any
|
|
1173
1192
|
}),
|
|
1174
1193
|
onClick: PropTypes.func,
|
|
@@ -1203,7 +1222,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1203
1222
|
color: PropTypes.any,
|
|
1204
1223
|
"aria-label": PropTypes.string,
|
|
1205
1224
|
"aria-labelledby": PropTypes.string,
|
|
1206
|
-
isDisabled: PropTypes.bool,
|
|
1207
1225
|
size: PropTypes.any,
|
|
1208
1226
|
iconSize: PropTypes.any,
|
|
1209
1227
|
isSelected: PropTypes.bool,
|
|
@@ -1212,6 +1230,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1212
1230
|
className: PropTypes.string,
|
|
1213
1231
|
"data-test-subj": PropTypes.string,
|
|
1214
1232
|
css: PropTypes.any,
|
|
1233
|
+
isDisabled: PropTypes.bool,
|
|
1234
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1215
1235
|
buttonRef: PropTypes.any
|
|
1216
1236
|
}),
|
|
1217
1237
|
onClick: PropTypes.func,
|
|
@@ -1246,7 +1266,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1246
1266
|
color: PropTypes.any,
|
|
1247
1267
|
"aria-label": PropTypes.string,
|
|
1248
1268
|
"aria-labelledby": PropTypes.string,
|
|
1249
|
-
isDisabled: PropTypes.bool,
|
|
1250
1269
|
size: PropTypes.any,
|
|
1251
1270
|
iconSize: PropTypes.any,
|
|
1252
1271
|
isSelected: PropTypes.bool,
|
|
@@ -1255,6 +1274,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1255
1274
|
className: PropTypes.string,
|
|
1256
1275
|
"data-test-subj": PropTypes.string,
|
|
1257
1276
|
css: PropTypes.any,
|
|
1277
|
+
isDisabled: PropTypes.bool,
|
|
1278
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1258
1279
|
buttonRef: PropTypes.any
|
|
1259
1280
|
}),
|
|
1260
1281
|
onClick: PropTypes.func,
|
|
@@ -1289,7 +1310,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1289
1310
|
color: PropTypes.any,
|
|
1290
1311
|
"aria-label": PropTypes.string,
|
|
1291
1312
|
"aria-labelledby": PropTypes.string,
|
|
1292
|
-
isDisabled: PropTypes.bool,
|
|
1293
1313
|
size: PropTypes.any,
|
|
1294
1314
|
iconSize: PropTypes.any,
|
|
1295
1315
|
isSelected: PropTypes.bool,
|
|
@@ -1298,6 +1318,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1298
1318
|
className: PropTypes.string,
|
|
1299
1319
|
"data-test-subj": PropTypes.string,
|
|
1300
1320
|
css: PropTypes.any,
|
|
1321
|
+
isDisabled: PropTypes.bool,
|
|
1322
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1301
1323
|
buttonRef: PropTypes.any
|
|
1302
1324
|
}),
|
|
1303
1325
|
onClick: PropTypes.func,
|
|
@@ -1332,7 +1354,6 @@ EuiDataGridCell.propTypes = {
|
|
|
1332
1354
|
color: PropTypes.any,
|
|
1333
1355
|
"aria-label": PropTypes.string,
|
|
1334
1356
|
"aria-labelledby": PropTypes.string,
|
|
1335
|
-
isDisabled: PropTypes.bool,
|
|
1336
1357
|
size: PropTypes.any,
|
|
1337
1358
|
iconSize: PropTypes.any,
|
|
1338
1359
|
isSelected: PropTypes.bool,
|
|
@@ -1341,6 +1362,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1341
1362
|
className: PropTypes.string,
|
|
1342
1363
|
"data-test-subj": PropTypes.string,
|
|
1343
1364
|
css: PropTypes.any,
|
|
1365
|
+
isDisabled: PropTypes.bool,
|
|
1366
|
+
hasAriaDisabled: PropTypes.bool,
|
|
1344
1367
|
buttonRef: PropTypes.any
|
|
1345
1368
|
}),
|
|
1346
1369
|
onClick: PropTypes.func,
|