@elastic/eui 93.3.0 → 93.5.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/dist/eui_charts_theme.d.ts +9 -0
- package/dist/eui_charts_theme.js +56 -14
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +3 -0
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +3 -0
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/breadcrumbs/_breadcrumb_content.js +362 -0
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +48 -0
- package/es/components/breadcrumbs/breadcrumb.js +10 -327
- package/es/components/breadcrumbs/breadcrumb.styles.js +5 -27
- package/es/components/breadcrumbs/breadcrumbs.js +4 -4
- package/es/components/breadcrumbs/types.js +1 -0
- package/es/components/button/button_group/button_group.js +16 -2
- package/es/components/button/button_group/button_group.styles.js +1 -1
- package/es/components/button/button_group/button_group_button.js +59 -5
- package/es/components/button/button_group/button_group_button.styles.js +39 -3
- package/es/components/datagrid/body/cell/data_grid_cell.js +97 -58
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/es/components/datagrid/body/cell/data_grid_cell_popover.js +64 -56
- package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/es/components/datagrid/body/cell/index.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -0
- package/es/components/datagrid/body/data_grid_body_custom.js +52 -36
- package/es/components/datagrid/body/data_grid_body_virtualized.js +84 -56
- package/es/components/datagrid/body/data_grid_row_manager.js +6 -4
- package/es/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +5 -4
- package/es/components/datagrid/body/header/data_grid_header_cell.js +73 -53
- package/es/components/datagrid/body/header/data_grid_header_row.js +15 -551
- package/es/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/es/components/datagrid/controls/column_selector.js +126 -123
- package/es/components/datagrid/controls/column_sorting.js +605 -103
- package/es/components/datagrid/controls/column_sorting_draggable.js +24 -22
- package/es/components/datagrid/controls/display_selector.js +109 -107
- package/es/components/datagrid/data_grid.a11y.js +13 -12
- package/es/components/datagrid/data_grid.js +45 -22
- package/es/components/datagrid/utils/col_widths.js +12 -8
- package/es/components/datagrid/utils/focus.js +10 -8
- package/es/components/datagrid/utils/grid_height_width.js +31 -30
- package/es/components/datagrid/utils/ref.js +1 -1
- package/es/components/datagrid/utils/row_heights.js +2 -2
- package/es/components/datagrid/utils/sorting.js +29 -27
- package/es/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/es/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/es/components/flex/flex_grid.js +22 -8
- package/es/components/flex/flex_grid.styles.js +13 -6
- package/es/components/flex/flex_group.js +10 -11
- package/es/components/flex/flex_item.js +9 -11
- package/es/components/flex/flex_item.styles.js +107 -122
- package/es/components/flyout/flyout.js +16 -18
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/es/components/header/header_links/header_links.js +10 -2
- package/es/components/icon/icon.js +3 -3
- package/es/components/modal/confirm_modal.js +2 -1
- package/es/components/modal/modal.js +12 -3
- package/es/components/observer/resize_observer/resize_observer.js +15 -24
- package/es/components/panel/panel.js +2 -3
- package/es/components/resizable_container/resizable_button.js +2 -3
- package/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/es/components/resizable_container/resizable_container.js +1 -2
- package/es/components/resizable_container/resizable_container.styles.js +11 -14
- package/es/components/resizable_container/resizable_panel.js +6 -8
- package/es/components/resizable_container/resizable_panel.styles.js +18 -29
- package/es/components/selectable/selectable_list/selectable_list.js +26 -6
- package/es/components/spacer/spacer.js +2 -3
- package/es/components/toast/global_toast_list.js +70 -73
- package/es/components/toast/toast.js +27 -42
- package/es/components/toast/toast.styles.js +2 -17
- package/es/components/tool_tip/icon_tip.js +4 -3
- package/es/global_styling/mixins/_color.js +60 -32
- package/es/global_styling/mixins/_padding.js +60 -16
- package/es/services/color/eui_palettes.js +21 -13
- package/es/services/color/index.js +1 -1
- package/es/services/hooks/index.js +1 -0
- package/es/services/hooks/useDeepEqual.js +23 -0
- package/es/services/index.js +1 -1
- package/es/services/theme/style_memoization.js +1 -3
- package/eui.d.ts +2558 -2470
- package/i18ntokens.json +297 -279
- package/lib/components/breadcrumbs/_breadcrumb_content.js +372 -0
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/lib/components/breadcrumbs/breadcrumb.js +11 -331
- package/lib/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/lib/components/breadcrumbs/breadcrumbs.js +3 -3
- package/lib/components/breadcrumbs/types.js +5 -0
- package/lib/components/button/button_group/button_group.js +16 -2
- package/lib/components/button/button_group/button_group.styles.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +59 -5
- package/lib/components/button/button_group/button_group_button.styles.js +45 -11
- package/lib/components/datagrid/body/cell/data_grid_cell.js +95 -57
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/lib/components/datagrid/body/cell/index.js +2 -2
- package/lib/components/datagrid/body/data_grid_body.js +13 -0
- package/lib/components/datagrid/body/data_grid_body_custom.js +51 -35
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +83 -55
- package/lib/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/lib/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +72 -52
- package/lib/components/datagrid/body/header/data_grid_header_row.js +14 -550
- package/lib/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/lib/components/datagrid/controls/column_selector.js +126 -123
- package/lib/components/datagrid/controls/column_sorting.js +615 -110
- package/lib/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/lib/components/datagrid/controls/display_selector.js +109 -107
- package/lib/components/datagrid/data_grid.a11y.js +13 -12
- package/lib/components/datagrid/data_grid.js +43 -20
- package/lib/components/datagrid/utils/col_widths.js +12 -8
- package/lib/components/datagrid/utils/focus.js +10 -8
- package/lib/components/datagrid/utils/grid_height_width.js +29 -28
- package/lib/components/datagrid/utils/ref.js +1 -1
- package/lib/components/datagrid/utils/row_heights.js +1 -1
- package/lib/components/datagrid/utils/sorting.js +31 -29
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/lib/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/lib/components/flex/flex_grid.js +23 -7
- package/lib/components/flex/flex_grid.styles.js +13 -6
- package/lib/components/flex/flex_group.js +10 -10
- package/lib/components/flex/flex_item.js +13 -13
- package/lib/components/flex/flex_item.styles.js +107 -122
- package/lib/components/flyout/flyout.js +16 -18
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/lib/components/header/header_links/header_links.js +10 -2
- package/lib/components/icon/icon.js +3 -3
- package/lib/components/modal/confirm_modal.js +2 -1
- package/lib/components/modal/modal.js +12 -3
- package/lib/components/observer/resize_observer/resize_observer.js +15 -24
- package/lib/components/panel/panel.js +1 -2
- package/lib/components/resizable_container/resizable_button.js +1 -2
- package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/lib/components/resizable_container/resizable_container.js +1 -2
- package/lib/components/resizable_container/resizable_container.styles.js +11 -14
- package/lib/components/resizable_container/resizable_panel.js +3 -5
- package/lib/components/resizable_container/resizable_panel.styles.js +17 -28
- package/lib/components/selectable/selectable_list/selectable_list.js +26 -6
- package/lib/components/spacer/spacer.js +1 -2
- package/lib/components/toast/global_toast_list.js +68 -71
- package/lib/components/toast/toast.js +25 -40
- package/lib/components/toast/toast.styles.js +11 -25
- package/lib/components/tool_tip/icon_tip.js +4 -3
- package/lib/global_styling/mixins/_color.js +65 -40
- package/lib/global_styling/mixins/_padding.js +66 -25
- package/lib/services/color/eui_palettes.js +24 -14
- package/lib/services/color/index.js +14 -0
- package/lib/services/hooks/index.js +11 -0
- package/lib/services/hooks/useDeepEqual.js +30 -0
- package/lib/services/index.js +15 -1
- package/lib/services/theme/style_memoization.js +1 -3
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +153 -0
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +48 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.js +10 -110
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +5 -27
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +4 -4
- package/optimize/es/components/breadcrumbs/types.js +1 -0
- package/optimize/es/components/button/button_group/button_group.js +2 -2
- package/optimize/es/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +36 -4
- package/optimize/es/components/button/button_group/button_group_button.styles.js +39 -3
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +80 -55
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +64 -56
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/optimize/es/components/datagrid/body/cell/index.js +1 -1
- package/optimize/es/components/datagrid/body/data_grid_body_custom.js +39 -36
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +69 -49
- package/optimize/es/components/datagrid/body/data_grid_row_manager.js +6 -4
- package/optimize/es/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +4 -3
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +65 -49
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +15 -13
- package/optimize/es/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/optimize/es/components/datagrid/controls/column_selector.js +126 -123
- package/optimize/es/components/datagrid/controls/column_sorting.js +121 -103
- package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +24 -22
- package/optimize/es/components/datagrid/controls/display_selector.js +109 -107
- package/optimize/es/components/datagrid/data_grid.a11y.js +13 -12
- package/optimize/es/components/datagrid/data_grid.js +45 -22
- package/optimize/es/components/datagrid/utils/col_widths.js +9 -5
- package/optimize/es/components/datagrid/utils/focus.js +10 -8
- package/optimize/es/components/datagrid/utils/grid_height_width.js +31 -30
- package/optimize/es/components/datagrid/utils/ref.js +1 -1
- package/optimize/es/components/datagrid/utils/row_heights.js +2 -2
- package/optimize/es/components/datagrid/utils/sorting.js +29 -27
- package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +49 -29
- package/optimize/es/components/flex/flex_grid.js +19 -8
- package/optimize/es/components/flex/flex_grid.styles.js +13 -6
- package/optimize/es/components/flex/flex_group.js +9 -10
- package/optimize/es/components/flex/flex_item.js +9 -11
- package/optimize/es/components/flex/flex_item.styles.js +107 -122
- package/optimize/es/components/flyout/flyout.js +16 -18
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/optimize/es/components/header/header_links/header_links.js +3 -2
- package/optimize/es/components/icon/icon.js +3 -3
- package/optimize/es/components/modal/confirm_modal.js +2 -1
- package/optimize/es/components/modal/modal.js +6 -2
- package/optimize/es/components/observer/resize_observer/resize_observer.js +15 -24
- package/optimize/es/components/panel/panel.js +2 -3
- package/optimize/es/components/resizable_container/resizable_button.js +2 -3
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/optimize/es/components/resizable_container/resizable_container.js +1 -2
- package/optimize/es/components/resizable_container/resizable_container.styles.js +11 -14
- package/optimize/es/components/resizable_container/resizable_panel.js +6 -8
- package/optimize/es/components/resizable_container/resizable_panel.styles.js +18 -26
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +26 -6
- package/optimize/es/components/spacer/spacer.js +2 -3
- package/optimize/es/components/toast/global_toast_list.js +70 -73
- package/optimize/es/components/toast/toast.js +27 -42
- package/optimize/es/components/toast/toast.styles.js +2 -17
- package/optimize/es/components/tool_tip/icon_tip.js +4 -3
- package/optimize/es/global_styling/mixins/_color.js +57 -32
- package/optimize/es/global_styling/mixins/_padding.js +52 -16
- package/optimize/es/services/color/eui_palettes.js +21 -13
- package/optimize/es/services/color/index.js +1 -1
- package/optimize/es/services/hooks/index.js +1 -0
- package/optimize/es/services/hooks/useDeepEqual.js +23 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/theme/style_memoization.js +1 -3
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +163 -0
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.js +10 -113
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +3 -3
- package/optimize/lib/components/breadcrumbs/types.js +5 -0
- package/optimize/lib/components/button/button_group/button_group.js +2 -2
- package/optimize/lib/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.js +37 -5
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +45 -11
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +78 -54
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/optimize/lib/components/datagrid/body/cell/index.js +2 -2
- package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +38 -35
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +70 -50
- package/optimize/lib/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/optimize/lib/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +65 -49
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +14 -12
- package/optimize/lib/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/optimize/lib/components/datagrid/controls/column_selector.js +126 -123
- package/optimize/lib/components/datagrid/controls/column_sorting.js +125 -107
- package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/optimize/lib/components/datagrid/controls/display_selector.js +109 -107
- package/optimize/lib/components/datagrid/data_grid.a11y.js +13 -12
- package/optimize/lib/components/datagrid/data_grid.js +43 -20
- package/optimize/lib/components/datagrid/utils/col_widths.js +9 -5
- package/optimize/lib/components/datagrid/utils/focus.js +10 -8
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +29 -28
- package/optimize/lib/components/datagrid/utils/ref.js +1 -1
- package/optimize/lib/components/datagrid/utils/row_heights.js +1 -1
- package/optimize/lib/components/datagrid/utils/sorting.js +31 -29
- package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +49 -29
- package/optimize/lib/components/flex/flex_grid.js +21 -7
- package/optimize/lib/components/flex/flex_grid.styles.js +13 -6
- package/optimize/lib/components/flex/flex_group.js +9 -9
- package/optimize/lib/components/flex/flex_item.js +13 -13
- package/optimize/lib/components/flex/flex_item.styles.js +107 -122
- package/optimize/lib/components/flyout/flyout.js +16 -18
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/optimize/lib/components/header/header_links/header_links.js +3 -2
- package/optimize/lib/components/icon/icon.js +3 -3
- package/optimize/lib/components/modal/confirm_modal.js +2 -1
- package/optimize/lib/components/modal/modal.js +6 -2
- package/optimize/lib/components/observer/resize_observer/resize_observer.js +15 -24
- package/optimize/lib/components/panel/panel.js +1 -2
- package/optimize/lib/components/resizable_container/resizable_button.js +1 -2
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/optimize/lib/components/resizable_container/resizable_container.js +1 -2
- package/optimize/lib/components/resizable_container/resizable_container.styles.js +11 -14
- package/optimize/lib/components/resizable_container/resizable_panel.js +3 -5
- package/optimize/lib/components/resizable_container/resizable_panel.styles.js +17 -26
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +26 -6
- package/optimize/lib/components/spacer/spacer.js +1 -2
- package/optimize/lib/components/toast/global_toast_list.js +68 -71
- package/optimize/lib/components/toast/toast.js +25 -40
- package/optimize/lib/components/toast/toast.styles.js +11 -25
- package/optimize/lib/components/tool_tip/icon_tip.js +4 -3
- package/optimize/lib/global_styling/mixins/_color.js +63 -40
- package/optimize/lib/global_styling/mixins/_padding.js +59 -25
- package/optimize/lib/services/color/eui_palettes.js +24 -14
- package/optimize/lib/services/color/index.js +14 -0
- package/optimize/lib/services/hooks/index.js +11 -0
- package/optimize/lib/services/hooks/useDeepEqual.js +30 -0
- package/optimize/lib/services/index.js +15 -1
- package/optimize/lib/services/theme/style_memoization.js +1 -3
- package/package.json +8 -11
- package/src/components/form/text_area/_text_area.scss +5 -0
- package/src/components/selectable/selectable_list/_selectable_list.scss +2 -0
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +363 -0
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +55 -0
- package/test-env/components/breadcrumbs/breadcrumb.js +11 -326
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +5 -29
- package/test-env/components/breadcrumbs/breadcrumbs.js +3 -3
- package/test-env/components/breadcrumbs/types.js +5 -0
- package/test-env/components/button/button_group/button_group.js +16 -2
- package/test-env/components/button/button_group/button_group.styles.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +56 -5
- package/test-env/components/button/button_group/button_group_button.styles.js +45 -11
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +95 -57
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +24 -18
- package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +63 -55
- package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +32 -31
- package/test-env/components/datagrid/body/cell/index.js +2 -2
- package/test-env/components/datagrid/body/data_grid_body.js +13 -0
- package/test-env/components/datagrid/body/data_grid_body_custom.js +51 -35
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +83 -55
- package/test-env/components/datagrid/body/data_grid_row_manager.js +5 -3
- package/test-env/components/datagrid/body/footer/use_data_grid_footer.js +1 -2
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +8 -4
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +72 -52
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +14 -550
- package/test-env/components/datagrid/body/header/use_data_grid_header.js +7 -6
- package/test-env/components/datagrid/controls/column_selector.js +126 -123
- package/test-env/components/datagrid/controls/column_sorting.js +607 -106
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +27 -22
- package/test-env/components/datagrid/controls/display_selector.js +109 -107
- package/test-env/components/datagrid/data_grid.a11y.js +13 -12
- package/test-env/components/datagrid/data_grid.js +43 -20
- package/test-env/components/datagrid/utils/col_widths.js +9 -5
- package/test-env/components/datagrid/utils/focus.js +10 -8
- package/test-env/components/datagrid/utils/grid_height_width.js +29 -28
- package/test-env/components/datagrid/utils/ref.js +1 -1
- package/test-env/components/datagrid/utils/row_heights.js +1 -1
- package/test-env/components/datagrid/utils/sorting.js +31 -29
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +57 -29
- package/test-env/components/flex/flex_grid.js +21 -7
- package/test-env/components/flex/flex_grid.styles.js +13 -6
- package/test-env/components/flex/flex_group.js +10 -10
- package/test-env/components/flex/flex_item.js +13 -13
- package/test-env/components/flex/flex_item.styles.js +107 -122
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -5
- package/test-env/components/header/header_links/header_links.js +10 -2
- package/test-env/components/modal/confirm_modal.js +2 -1
- package/test-env/components/modal/modal.js +12 -3
- package/test-env/components/panel/panel.js +1 -2
- package/test-env/components/resizable_container/resizable_button.js +1 -2
- package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
- package/test-env/components/resizable_container/resizable_container.js +1 -2
- package/test-env/components/resizable_container/resizable_container.styles.js +11 -14
- package/test-env/components/resizable_container/resizable_panel.js +3 -5
- package/test-env/components/resizable_container/resizable_panel.styles.js +17 -26
- package/test-env/components/selectable/selectable_list/selectable_list.js +26 -6
- package/test-env/components/spacer/spacer.js +1 -2
- package/test-env/components/toast/global_toast_list.js +68 -71
- package/test-env/components/toast/toast.js +25 -40
- package/test-env/components/toast/toast.styles.js +11 -25
- package/test-env/components/tool_tip/icon_tip.js +4 -3
- package/test-env/global_styling/mixins/_color.js +63 -40
- package/test-env/global_styling/mixins/_padding.js +59 -25
- package/test-env/services/color/eui_palettes.js +24 -14
- package/test-env/services/color/index.js +14 -0
- package/test-env/services/hooks/index.js +11 -0
- package/test-env/services/hooks/useDeepEqual.js +30 -0
- package/test-env/services/index.js +15 -1
- package/test-env/services/theme/style_memoization.js +1 -3
- package/src/themes/charts/theme.scss +0 -5
|
@@ -12,128 +12,113 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
13
13
|
* Side Public License, v 1.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
// 1. Allow EuiPanels to expand to fill the item.
|
|
122
|
-
euiFlexItem: _ref13,
|
|
123
|
-
growZero: _ref12,
|
|
124
|
-
grow: _ref11,
|
|
125
|
-
growSizes: {
|
|
126
|
-
'1': _ref10,
|
|
127
|
-
'2': _ref9,
|
|
128
|
-
'3': _ref8,
|
|
129
|
-
'4': _ref7,
|
|
130
|
-
'5': _ref6,
|
|
131
|
-
'6': _ref5,
|
|
132
|
-
'7': _ref4,
|
|
133
|
-
'8': _ref3,
|
|
134
|
-
'9': _ref2,
|
|
135
|
-
'10': _ref
|
|
15
|
+
var euiFlexItemStyles = {
|
|
16
|
+
// 1. Allow EuiPanels to expand to fill the item.
|
|
17
|
+
euiFlexItem: process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "19hf44n-euiFlexItem",
|
|
19
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;"
|
|
20
|
+
} : {
|
|
21
|
+
name: "19hf44n-euiFlexItem",
|
|
22
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
},
|
|
25
|
+
growZero: process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "1pat7n0-growZero",
|
|
27
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;"
|
|
28
|
+
} : {
|
|
29
|
+
name: "1pat7n0-growZero",
|
|
30
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
},
|
|
33
|
+
grow: process.env.NODE_ENV === "production" ? {
|
|
34
|
+
name: "tr4wer-grow",
|
|
35
|
+
styles: "flex-basis:0%;label:grow;"
|
|
36
|
+
} : {
|
|
37
|
+
name: "tr4wer-grow",
|
|
38
|
+
styles: "flex-basis:0%;label:grow;",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
},
|
|
41
|
+
growSizes: {
|
|
42
|
+
'1': process.env.NODE_ENV === "production" ? {
|
|
43
|
+
name: "1v6uyoj-1",
|
|
44
|
+
styles: "flex-grow:1;label:1;"
|
|
45
|
+
} : {
|
|
46
|
+
name: "1v6uyoj-1",
|
|
47
|
+
styles: "flex-grow:1;label:1;",
|
|
48
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
49
|
+
},
|
|
50
|
+
'2': process.env.NODE_ENV === "production" ? {
|
|
51
|
+
name: "1l86xxh-2",
|
|
52
|
+
styles: "flex-grow:2;label:2;"
|
|
53
|
+
} : {
|
|
54
|
+
name: "1l86xxh-2",
|
|
55
|
+
styles: "flex-grow:2;label:2;",
|
|
56
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
57
|
+
},
|
|
58
|
+
'3': process.env.NODE_ENV === "production" ? {
|
|
59
|
+
name: "1sl79ay-3",
|
|
60
|
+
styles: "flex-grow:3;label:3;"
|
|
61
|
+
} : {
|
|
62
|
+
name: "1sl79ay-3",
|
|
63
|
+
styles: "flex-grow:3;label:3;",
|
|
64
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
65
|
+
},
|
|
66
|
+
'4': process.env.NODE_ENV === "production" ? {
|
|
67
|
+
name: "k4pnsg-4",
|
|
68
|
+
styles: "flex-grow:4;label:4;"
|
|
69
|
+
} : {
|
|
70
|
+
name: "k4pnsg-4",
|
|
71
|
+
styles: "flex-grow:4;label:4;",
|
|
72
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
73
|
+
},
|
|
74
|
+
'5': process.env.NODE_ENV === "production" ? {
|
|
75
|
+
name: "1cx5fxs-5",
|
|
76
|
+
styles: "flex-grow:5;label:5;"
|
|
77
|
+
} : {
|
|
78
|
+
name: "1cx5fxs-5",
|
|
79
|
+
styles: "flex-grow:5;label:5;",
|
|
80
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
81
|
+
},
|
|
82
|
+
'6': process.env.NODE_ENV === "production" ? {
|
|
83
|
+
name: "1in9iiy-6",
|
|
84
|
+
styles: "flex-grow:6;label:6;"
|
|
85
|
+
} : {
|
|
86
|
+
name: "1in9iiy-6",
|
|
87
|
+
styles: "flex-grow:6;label:6;",
|
|
88
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
89
|
+
},
|
|
90
|
+
'7': process.env.NODE_ENV === "production" ? {
|
|
91
|
+
name: "fvh3nz-7",
|
|
92
|
+
styles: "flex-grow:7;label:7;"
|
|
93
|
+
} : {
|
|
94
|
+
name: "fvh3nz-7",
|
|
95
|
+
styles: "flex-grow:7;label:7;",
|
|
96
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
97
|
+
},
|
|
98
|
+
'8': process.env.NODE_ENV === "production" ? {
|
|
99
|
+
name: "fjdgzc-8",
|
|
100
|
+
styles: "flex-grow:8;label:8;"
|
|
101
|
+
} : {
|
|
102
|
+
name: "fjdgzc-8",
|
|
103
|
+
styles: "flex-grow:8;label:8;",
|
|
104
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
105
|
+
},
|
|
106
|
+
'9': process.env.NODE_ENV === "production" ? {
|
|
107
|
+
name: "1tyr8p6-9",
|
|
108
|
+
styles: "flex-grow:9;label:9;"
|
|
109
|
+
} : {
|
|
110
|
+
name: "1tyr8p6-9",
|
|
111
|
+
styles: "flex-grow:9;label:9;",
|
|
112
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
113
|
+
},
|
|
114
|
+
'10': process.env.NODE_ENV === "production" ? {
|
|
115
|
+
name: "n7polf-10",
|
|
116
|
+
styles: "flex-grow:10;label:10;"
|
|
117
|
+
} : {
|
|
118
|
+
name: "n7polf-10",
|
|
119
|
+
styles: "flex-grow:10;label:10;",
|
|
120
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
136
121
|
}
|
|
137
|
-
}
|
|
122
|
+
}
|
|
138
123
|
};
|
|
139
124
|
exports.euiFlexItemStyles = euiFlexItemStyles;
|
|
@@ -10,9 +10,9 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _services = require("../../../services");
|
|
13
14
|
var _breadcrumbs = require("../../breadcrumbs");
|
|
14
15
|
var _header_breadcrumbs = require("./header_breadcrumbs.styles");
|
|
15
|
-
var _services = require("../../../services");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _excluded = ["className", "breadcrumbs"];
|
|
18
18
|
/*
|
|
@@ -27,15 +27,13 @@ var EuiHeaderBreadcrumbs = function EuiHeaderBreadcrumbs(_ref) {
|
|
|
27
27
|
breadcrumbs = _ref.breadcrumbs,
|
|
28
28
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
29
|
var classes = (0, _classnames.default)('euiHeaderBreadcrumbs', className);
|
|
30
|
-
var
|
|
31
|
-
var styles = (0, _header_breadcrumbs.euiHeaderBreadcrumbsStyles)(euiTheme);
|
|
32
|
-
var cssHeaderBreadcrumbStyles = [styles.euiHeaderBreadcrumbs];
|
|
30
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_header_breadcrumbs.euiHeaderBreadcrumbsStyles);
|
|
33
31
|
return (0, _react2.jsx)(_breadcrumbs.EuiBreadcrumbs, (0, _extends2.default)({
|
|
34
32
|
max: 4,
|
|
35
33
|
truncate: true,
|
|
36
34
|
breadcrumbs: breadcrumbs,
|
|
37
35
|
className: classes,
|
|
38
|
-
css:
|
|
36
|
+
css: styles.euiHeaderBreadcrumbs,
|
|
39
37
|
type: "application"
|
|
40
38
|
}, rest));
|
|
41
39
|
};
|
|
@@ -82,6 +82,7 @@ var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
82
82
|
size: "m"
|
|
83
83
|
}));
|
|
84
84
|
});
|
|
85
|
+
var renderedChildren = typeof children === 'function' ? children(closeMenu) : children;
|
|
85
86
|
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
86
87
|
token: "euiHeaderLinks.appNavigation",
|
|
87
88
|
default: "App menu"
|
|
@@ -95,7 +96,7 @@ var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
95
96
|
}, (0, _react2.jsx)("div", {
|
|
96
97
|
className: "euiHeaderLinks__list",
|
|
97
98
|
css: [styles.euiHeaderLinks__list, styles.gutterSizes[gutterSize], ";label:EuiHeaderLinks;"]
|
|
98
|
-
},
|
|
99
|
+
}, renderedChildren)), (0, _react2.jsx)(_responsive.EuiShowFor, {
|
|
99
100
|
sizes: popoverBreakpoints
|
|
100
101
|
}, (0, _react2.jsx)(_popover.EuiPopover, (0, _extends2.default)({
|
|
101
102
|
button: button,
|
|
@@ -107,7 +108,7 @@ var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
107
108
|
}, popoverProps), (0, _react2.jsx)("div", {
|
|
108
109
|
className: "euiHeaderLinks__mobileList",
|
|
109
110
|
css: styles.euiHeaderLinks__mobileList
|
|
110
|
-
},
|
|
111
|
+
}, renderedChildren))));
|
|
111
112
|
});
|
|
112
113
|
};
|
|
113
114
|
exports.EuiHeaderLinks = EuiHeaderLinks;
|
|
@@ -116,6 +117,13 @@ EuiHeaderLinks.propTypes = {
|
|
|
116
117
|
"aria-label": _propTypes.default.string,
|
|
117
118
|
"data-test-subj": _propTypes.default.string,
|
|
118
119
|
css: _propTypes.default.any,
|
|
120
|
+
/**
|
|
121
|
+
* Takes any rendered node(s), typically of `EuiHeaderLink`s.
|
|
122
|
+
*
|
|
123
|
+
* Optionally takes a render function that will pass a callback allowing you
|
|
124
|
+
* to close the mobile popover from within your popover content.
|
|
125
|
+
*/
|
|
126
|
+
children: _propTypes.default.oneOfType([_propTypes.default.node.isRequired, _propTypes.default.func.isRequired]),
|
|
119
127
|
/**
|
|
120
128
|
* Spacing between direct children
|
|
121
129
|
*/
|
|
@@ -84,7 +84,8 @@ var EuiConfirmModal = function EuiConfirmModal(_ref) {
|
|
|
84
84
|
return (0, _react2.jsx)(_modal.EuiModal, (0, _extends2.default)({
|
|
85
85
|
className: classes,
|
|
86
86
|
css: cssStyles,
|
|
87
|
-
onClose: onCancel
|
|
87
|
+
onClose: onCancel,
|
|
88
|
+
role: "alertdialog"
|
|
88
89
|
}, rest), modalTitle, message && (0, _react2.jsx)(_modal_body.EuiModalBody, null, (0, _react2.jsx)(_text.EuiText, {
|
|
89
90
|
"data-test-subj": "confirmModalBodyText"
|
|
90
91
|
}, message)), (0, _react2.jsx)(_modal_footer.EuiModalFooter, null, (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
@@ -18,7 +18,7 @@ var _overlay_mask = require("../overlay_mask");
|
|
|
18
18
|
var _i18n = require("../i18n");
|
|
19
19
|
var _modal = require("./modal.styles");
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
|
-
var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "style"];
|
|
21
|
+
var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "role", "style"];
|
|
22
22
|
/*
|
|
23
23
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
24
24
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -35,6 +35,8 @@ var EuiModal = function EuiModal(_ref) {
|
|
|
35
35
|
onClose = _ref.onClose,
|
|
36
36
|
_ref$maxWidth = _ref.maxWidth,
|
|
37
37
|
maxWidth = _ref$maxWidth === void 0 ? true : _ref$maxWidth,
|
|
38
|
+
_ref$role = _ref.role,
|
|
39
|
+
role = _ref$role === void 0 ? 'dialog' : _ref$role,
|
|
38
40
|
style = _ref.style,
|
|
39
41
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
42
|
var onKeyDown = function onKeyDown(event) {
|
|
@@ -64,7 +66,9 @@ var EuiModal = function EuiModal(_ref) {
|
|
|
64
66
|
className: classes,
|
|
65
67
|
onKeyDown: onKeyDown,
|
|
66
68
|
tabIndex: 0,
|
|
67
|
-
style: newStyle
|
|
69
|
+
style: newStyle,
|
|
70
|
+
role: role,
|
|
71
|
+
"aria-modal": true
|
|
68
72
|
}, rest), (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
69
73
|
token: "euiModal.closeModal",
|
|
70
74
|
default: "Closes this modal window"
|
|
@@ -99,5 +103,10 @@ EuiModal.propTypes = {
|
|
|
99
103
|
* Specifies what element should initially have focus.
|
|
100
104
|
* Can be a DOM node, or a selector string (which will be passed to document.querySelector() to find the DOM node), or a function that returns a DOM node.
|
|
101
105
|
*/
|
|
102
|
-
initialFocus: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.func.isRequired, _propTypes.default.string.isRequired])
|
|
106
|
+
initialFocus: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.func.isRequired, _propTypes.default.string.isRequired]),
|
|
107
|
+
/**
|
|
108
|
+
* Identifies a modal dialog to screen readers. Modal dialogs that confirm destructive actions
|
|
109
|
+
* or need a user's attention should use "alertdialog".
|
|
110
|
+
*/
|
|
111
|
+
role: _propTypes.default.oneOf(["dialog", "alertdialog"])
|
|
103
112
|
};
|
|
@@ -58,11 +58,10 @@ var EuiPanel = function EuiPanel(_ref) {
|
|
|
58
58
|
panelRef = _ref.panelRef,
|
|
59
59
|
element = _ref.element,
|
|
60
60
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
61
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
62
61
|
// Shadows are only allowed when there's a white background (plain)
|
|
63
62
|
var canHaveShadow = !hasBorder && color === 'plain';
|
|
64
63
|
var canHaveBorder = color === 'plain' || color === 'transparent';
|
|
65
|
-
var styles = (0, _panel.euiPanelStyles)
|
|
64
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_panel.euiPanelStyles);
|
|
66
65
|
var cssStyles = [styles.euiPanel, grow && styles.grow, styles.radius[borderRadius], (0, _global_styling.useEuiPaddingCSS)()[paddingSize], (0, _global_styling.useEuiBackgroundColorCSS)()[color], canHaveShadow && hasShadow === true && styles.hasShadow, canHaveBorder && hasBorder === true && styles.hasBorder, rest.onClick && styles.isClickable];
|
|
67
66
|
var classes = (0, _classnames.default)('euiPanel', "euiPanel--".concat(color), (0, _defineProperty2.default)({}, "euiPanel--".concat(paddingSizeToClassNameMap[paddingSize]), paddingSizeToClassNameMap[paddingSize]), className);
|
|
68
67
|
if (rest.onClick && element !== 'div') {
|
|
@@ -42,8 +42,7 @@ var EuiResizableButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
42
42
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
43
|
var classes = (0, _classnames.default)('euiResizableButton', className);
|
|
44
44
|
var resizeDirection = isHorizontal ? 'horizontal' : 'vertical';
|
|
45
|
-
var
|
|
46
|
-
var styles = (0, _resizable_button.euiResizableButtonStyles)(euiTheme);
|
|
45
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_resizable_button.euiResizableButtonStyles);
|
|
47
46
|
var cssStyles = [styles.euiResizableButton, styles[indicator], styles["".concat(indicator, "Direction")][resizeDirection], styles[resizeDirection], indicator === 'handle' && styles.alignIndicator[alignIndicator]];
|
|
48
47
|
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
49
48
|
tokens: ['euiResizableButton.horizontalResizerAriaLabel', 'euiResizableButton.verticalResizerAriaLabel'],
|
|
@@ -38,8 +38,7 @@ var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref) {
|
|
|
38
38
|
var isHorizontal = direction === 'horizontal';
|
|
39
39
|
var showOnFocus = !isCollapsed && !isVisible;
|
|
40
40
|
var screenReaderOnlyStyles = (0, _screen_reader_only.euiScreenReaderOnlyStyles)(showOnFocus).euiScreenReaderOnly;
|
|
41
|
-
var
|
|
42
|
-
var styles = (0, _resizable_collapse_button.euiResizableCollapseButtonStyles)(euiTheme);
|
|
41
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_resizable_collapse_button.euiResizableCollapseButtonStyles);
|
|
43
42
|
var collapsedStyles = [styles.collapsed.collapsed, styles.collapsed[direction], styles.collapsed["".concat(direction, "Positions")][internalPosition]];
|
|
44
43
|
var collapsibleStyles = [styles.collapsible.collapsible, styles.collapsible[direction][externalPosition], styles.collapsible[direction][internalPosition]];
|
|
45
44
|
var cssStyles = [styles.euiResizableCollapseButton, showOnFocus && screenReaderOnlyStyles].concat((0, _toConsumableArray2.default)(isCollapsed ? collapsedStyles : collapsibleStyles));
|
|
@@ -59,8 +59,7 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
59
59
|
var containerRef = (0, _react.useRef)(null);
|
|
60
60
|
var isHorizontal = direction === 'horizontal';
|
|
61
61
|
var classes = (0, _classnames.default)('euiResizableContainer', className);
|
|
62
|
-
var
|
|
63
|
-
var cssStyles = [styles.euiResizableContainer, styles[direction]];
|
|
62
|
+
var cssStyles = [_resizable_container.euiResizableContainerStyles.euiResizableContainer, _resizable_container.euiResizableContainerStyles[direction]];
|
|
64
63
|
var _useContainerCallback = (0, _helpers.useContainerCallbacks)({
|
|
65
64
|
initialState: _objectSpread(_objectSpread({}, initialState), {}, {
|
|
66
65
|
isHorizontal: isHorizontal
|
|
@@ -13,19 +13,16 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
13
13
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
14
|
* Side Public License, v 1.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
horizontal: /*#__PURE__*/(0, _react.css)(";label:horizontal;"),
|
|
28
|
-
vertical: _ref
|
|
29
|
-
};
|
|
16
|
+
var euiResizableContainerStyles = {
|
|
17
|
+
euiResizableContainer: /*#__PURE__*/(0, _react.css)("display:flex;", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:euiResizableContainer;"),
|
|
18
|
+
horizontal: /*#__PURE__*/(0, _react.css)(";label:horizontal;"),
|
|
19
|
+
vertical: process.env.NODE_ENV === "production" ? {
|
|
20
|
+
name: "omnk2l-vertical",
|
|
21
|
+
styles: "flex-direction:column;label:vertical;"
|
|
22
|
+
} : {
|
|
23
|
+
name: "omnk2l-vertical",
|
|
24
|
+
styles: "flex-direction:column;label:vertical;",
|
|
25
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
|
+
}
|
|
30
27
|
};
|
|
31
28
|
exports.euiResizableContainerStyles = euiResizableContainerStyles;
|
|
@@ -146,15 +146,13 @@ var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
146
146
|
return direction;
|
|
147
147
|
}, [isCollapsed, isCollapsible, position, panels, panelId]);
|
|
148
148
|
var axis = isHorizontal ? 'horizontal' : 'vertical';
|
|
149
|
-
var
|
|
150
|
-
var
|
|
151
|
-
var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
152
|
-
var contentStyles = (0, _resizable_panel.euiResizablePanelContentStyles)(euiTheme);
|
|
149
|
+
var cssStyles = [_resizable_panel.euiResizablePanelStyles.euiResizablePanel, isCollapsed && _resizable_panel.euiResizablePanelStyles.collapsed, (0, _global_styling.useEuiPaddingCSS)()[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
150
|
+
var contentStyles = (0, _services.useEuiMemoizedStyles)(_resizable_panel.euiResizablePanelContentStyles);
|
|
153
151
|
var contentCssStyles = [contentStyles.euiResizablePanel__content, scrollable && contentStyles.scrollable, isCollapsed && contentStyles.collapsedChildren, isCollapsed && !isCollapsible && contentStyles[axis].collapsed, isCollapsible && contentStyles[axis].hasCollapsibleButton];
|
|
154
152
|
var classes = (0, _classnames.default)('euiResizablePanel', wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className);
|
|
155
153
|
var panelClasses = (0, _classnames.default)('euiResizablePanel__content', className);
|
|
156
154
|
var inlineStyles = _objectSpread(_objectSpread({}, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.style), isHorizontal ? (0, _global_styling.logicalSizeStyle)("".concat(size || innerSize, "%"), 'auto') : (0, _global_styling.logicalSizeStyle)('100%', "".concat(size || innerSize, "%")));
|
|
157
|
-
var padding = (0, _global_styling.
|
|
155
|
+
var padding = (0, _global_styling.useEuiPaddingSize)(paddingSize) || '0px';
|
|
158
156
|
(0, _react.useEffect)(function () {
|
|
159
157
|
if (!registration) return;
|
|
160
158
|
var initSize = size !== null && size !== void 0 ? size : initialSize || 0;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.euiResizablePanelStyles = exports.euiResizablePanelContentStyles = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
7
|
var _react = require("@emotion/react");
|
|
10
8
|
var _global_styling = require("../../global_styling");
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
14
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
15
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -17,28 +13,23 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
13
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
14
|
* Side Public License, v 1.
|
|
19
15
|
*/
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
euiResizablePanel: _ref3,
|
|
39
|
-
collapsed: _ref2,
|
|
40
|
-
paddingSizes: _objectSpread({}, (0, _global_styling.euiPaddingSizeCSS)(euiThemeContext))
|
|
41
|
-
};
|
|
16
|
+
var euiResizablePanelStyles = {
|
|
17
|
+
euiResizablePanel: process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "15ifdgc-euiResizablePanel",
|
|
19
|
+
styles: "position:relative;label:euiResizablePanel;"
|
|
20
|
+
} : {
|
|
21
|
+
name: "15ifdgc-euiResizablePanel",
|
|
22
|
+
styles: "position:relative;label:euiResizablePanel;",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
},
|
|
25
|
+
collapsed: process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "11qmbh3-collapsed",
|
|
27
|
+
styles: "overflow:hidden;label:collapsed;"
|
|
28
|
+
} : {
|
|
29
|
+
name: "11qmbh3-collapsed",
|
|
30
|
+
styles: "overflow:hidden;label:collapsed;",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
}
|
|
42
33
|
};
|
|
43
34
|
exports.euiResizablePanelStyles = euiResizablePanelStyles;
|
|
44
35
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -422,14 +422,30 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
422
422
|
key: "componentDidUpdate",
|
|
423
423
|
value: function componentDidUpdate(prevProps) {
|
|
424
424
|
var _this$props9 = this.props,
|
|
425
|
+
isVirtualized = _this$props9.isVirtualized,
|
|
425
426
|
activeOptionIndex = _this$props9.activeOptionIndex,
|
|
426
427
|
visibleOptions = _this$props9.visibleOptions,
|
|
427
428
|
options = _this$props9.options;
|
|
428
|
-
if (
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
if (prevProps.activeOptionIndex !== activeOptionIndex) {
|
|
430
|
+
var makeOptionId = this.props.makeOptionId;
|
|
431
|
+
if (this.listBoxRef && this.props.searchable !== true) {
|
|
432
|
+
this.listBoxRef.setAttribute('aria-activedescendant', makeOptionId(activeOptionIndex));
|
|
433
|
+
}
|
|
434
|
+
if (typeof activeOptionIndex !== 'undefined') {
|
|
435
|
+
if (isVirtualized) {
|
|
436
|
+
var _this$listRef;
|
|
437
|
+
(_this$listRef = this.listRef) === null || _this$listRef === void 0 ? void 0 : _this$listRef.scrollToItem(activeOptionIndex, 'auto');
|
|
438
|
+
} else {
|
|
439
|
+
var _this$listBoxRef;
|
|
440
|
+
var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
|
|
441
|
+
var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
|
|
442
|
+
if (activeOptionEl) {
|
|
443
|
+
activeOptionEl.scrollIntoView({
|
|
444
|
+
block: 'nearest'
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
433
449
|
}
|
|
434
450
|
if (prevProps.visibleOptions !== visibleOptions || prevProps.options !== options) {
|
|
435
451
|
var optionArray = visibleOptions || options;
|
|
@@ -472,14 +488,18 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
472
488
|
textWrap = _this$props10.textWrap,
|
|
473
489
|
truncationProps = _this$props10.truncationProps,
|
|
474
490
|
rest = (0, _objectWithoutProperties2.default)(_this$props10, _excluded3);
|
|
491
|
+
var heightIsFull = forcedHeight === 'full';
|
|
475
492
|
var classes = (0, _classnames.default)('euiSelectableList', {
|
|
476
|
-
'euiSelectableList-fullHeight':
|
|
493
|
+
'euiSelectableList-fullHeight': heightIsFull,
|
|
477
494
|
'euiSelectableList-bordered': bordered
|
|
478
495
|
}, className);
|
|
479
496
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
480
497
|
className: classes
|
|
481
498
|
}, rest), isVirtualized ? this.renderVirtualizedList() : (0, _react2.jsx)("div", {
|
|
482
499
|
className: "euiSelectableList__list",
|
|
500
|
+
style: !heightIsFull ? {
|
|
501
|
+
blockSize: forcedHeight
|
|
502
|
+
} : undefined,
|
|
483
503
|
ref: this.removeScrollableTabStop
|
|
484
504
|
}, (0, _react2.jsx)("ul", {
|
|
485
505
|
ref: this.setListBoxRef
|
|
@@ -29,8 +29,7 @@ var EuiSpacer = function EuiSpacer(_ref) {
|
|
|
29
29
|
_ref$size = _ref.size,
|
|
30
30
|
size = _ref$size === void 0 ? 'l' : _ref$size,
|
|
31
31
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
32
|
-
var
|
|
33
|
-
var styles = (0, _spacer.euiSpacerStyles)(euiTheme);
|
|
32
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_spacer.euiSpacerStyles);
|
|
34
33
|
var classes = (0, _classnames.default)('euiSpacer', (0, _defineProperty2.default)({}, "euiSpacer--".concat(size), size), className);
|
|
35
34
|
var cssStyles = [styles.euiSpacer, styles[size]];
|
|
36
35
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|