@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
|
@@ -8,127 +8,112 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
// 1. Allow EuiPanels to expand to fill the item.
|
|
118
|
-
euiFlexItem: _ref13,
|
|
119
|
-
growZero: _ref12,
|
|
120
|
-
grow: _ref11,
|
|
121
|
-
growSizes: {
|
|
122
|
-
'1': _ref10,
|
|
123
|
-
'2': _ref9,
|
|
124
|
-
'3': _ref8,
|
|
125
|
-
'4': _ref7,
|
|
126
|
-
'5': _ref6,
|
|
127
|
-
'6': _ref5,
|
|
128
|
-
'7': _ref4,
|
|
129
|
-
'8': _ref3,
|
|
130
|
-
'9': _ref2,
|
|
131
|
-
'10': _ref
|
|
11
|
+
export var euiFlexItemStyles = {
|
|
12
|
+
// 1. Allow EuiPanels to expand to fill the item.
|
|
13
|
+
euiFlexItem: process.env.NODE_ENV === "production" ? {
|
|
14
|
+
name: "19hf44n-euiFlexItem",
|
|
15
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;"
|
|
16
|
+
} : {
|
|
17
|
+
name: "19hf44n-euiFlexItem",
|
|
18
|
+
styles: "display:flex;flex-direction:column;label:euiFlexItem;",
|
|
19
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
+
},
|
|
21
|
+
growZero: process.env.NODE_ENV === "production" ? {
|
|
22
|
+
name: "1pat7n0-growZero",
|
|
23
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;"
|
|
24
|
+
} : {
|
|
25
|
+
name: "1pat7n0-growZero",
|
|
26
|
+
styles: "flex-grow:0;flex-basis:auto;label:growZero;",
|
|
27
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
+
},
|
|
29
|
+
grow: process.env.NODE_ENV === "production" ? {
|
|
30
|
+
name: "tr4wer-grow",
|
|
31
|
+
styles: "flex-basis:0%;label:grow;"
|
|
32
|
+
} : {
|
|
33
|
+
name: "tr4wer-grow",
|
|
34
|
+
styles: "flex-basis:0%;label:grow;",
|
|
35
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
|
+
},
|
|
37
|
+
growSizes: {
|
|
38
|
+
'1': process.env.NODE_ENV === "production" ? {
|
|
39
|
+
name: "1v6uyoj-1",
|
|
40
|
+
styles: "flex-grow:1;label:1;"
|
|
41
|
+
} : {
|
|
42
|
+
name: "1v6uyoj-1",
|
|
43
|
+
styles: "flex-grow:1;label:1;",
|
|
44
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
+
},
|
|
46
|
+
'2': process.env.NODE_ENV === "production" ? {
|
|
47
|
+
name: "1l86xxh-2",
|
|
48
|
+
styles: "flex-grow:2;label:2;"
|
|
49
|
+
} : {
|
|
50
|
+
name: "1l86xxh-2",
|
|
51
|
+
styles: "flex-grow:2;label:2;",
|
|
52
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
53
|
+
},
|
|
54
|
+
'3': process.env.NODE_ENV === "production" ? {
|
|
55
|
+
name: "1sl79ay-3",
|
|
56
|
+
styles: "flex-grow:3;label:3;"
|
|
57
|
+
} : {
|
|
58
|
+
name: "1sl79ay-3",
|
|
59
|
+
styles: "flex-grow:3;label:3;",
|
|
60
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
61
|
+
},
|
|
62
|
+
'4': process.env.NODE_ENV === "production" ? {
|
|
63
|
+
name: "k4pnsg-4",
|
|
64
|
+
styles: "flex-grow:4;label:4;"
|
|
65
|
+
} : {
|
|
66
|
+
name: "k4pnsg-4",
|
|
67
|
+
styles: "flex-grow:4;label:4;",
|
|
68
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
69
|
+
},
|
|
70
|
+
'5': process.env.NODE_ENV === "production" ? {
|
|
71
|
+
name: "1cx5fxs-5",
|
|
72
|
+
styles: "flex-grow:5;label:5;"
|
|
73
|
+
} : {
|
|
74
|
+
name: "1cx5fxs-5",
|
|
75
|
+
styles: "flex-grow:5;label:5;",
|
|
76
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
77
|
+
},
|
|
78
|
+
'6': process.env.NODE_ENV === "production" ? {
|
|
79
|
+
name: "1in9iiy-6",
|
|
80
|
+
styles: "flex-grow:6;label:6;"
|
|
81
|
+
} : {
|
|
82
|
+
name: "1in9iiy-6",
|
|
83
|
+
styles: "flex-grow:6;label:6;",
|
|
84
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
85
|
+
},
|
|
86
|
+
'7': process.env.NODE_ENV === "production" ? {
|
|
87
|
+
name: "fvh3nz-7",
|
|
88
|
+
styles: "flex-grow:7;label:7;"
|
|
89
|
+
} : {
|
|
90
|
+
name: "fvh3nz-7",
|
|
91
|
+
styles: "flex-grow:7;label:7;",
|
|
92
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
93
|
+
},
|
|
94
|
+
'8': process.env.NODE_ENV === "production" ? {
|
|
95
|
+
name: "fjdgzc-8",
|
|
96
|
+
styles: "flex-grow:8;label:8;"
|
|
97
|
+
} : {
|
|
98
|
+
name: "fjdgzc-8",
|
|
99
|
+
styles: "flex-grow:8;label:8;",
|
|
100
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
101
|
+
},
|
|
102
|
+
'9': process.env.NODE_ENV === "production" ? {
|
|
103
|
+
name: "1tyr8p6-9",
|
|
104
|
+
styles: "flex-grow:9;label:9;"
|
|
105
|
+
} : {
|
|
106
|
+
name: "1tyr8p6-9",
|
|
107
|
+
styles: "flex-grow:9;label:9;",
|
|
108
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
109
|
+
},
|
|
110
|
+
'10': process.env.NODE_ENV === "production" ? {
|
|
111
|
+
name: "n7polf-10",
|
|
112
|
+
styles: "flex-grow:10;label:10;"
|
|
113
|
+
} : {
|
|
114
|
+
name: "n7polf-10",
|
|
115
|
+
styles: "flex-grow:10;label:10;",
|
|
116
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
132
117
|
}
|
|
133
|
-
}
|
|
118
|
+
}
|
|
134
119
|
};
|
|
@@ -99,33 +99,31 @@ export var EuiFlyout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
99
99
|
resizeRef = _useState2[0],
|
|
100
100
|
setResizeRef = _useState2[1];
|
|
101
101
|
var setRef = useCombinedRefs([setResizeRef, ref]);
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
var _useResizeObserver = useResizeObserver(isPushed ? resizeRef : null, 'width'),
|
|
103
|
+
width = _useResizeObserver.width;
|
|
104
104
|
useEffect(function () {
|
|
105
|
-
// This class doesn't actually do anything by EUI, but is nice to add for consumers (JIC)
|
|
106
|
-
document.body.classList.add('euiBody--hasFlyout');
|
|
107
|
-
|
|
108
105
|
/**
|
|
109
106
|
* Accomodate for the `isPushed` state by adding padding to the body equal to the width of the element
|
|
110
107
|
*/
|
|
111
108
|
if (isPushed) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
document.body.style
|
|
116
|
-
}
|
|
109
|
+
var paddingSide = side === 'left' ? 'paddingInlineStart' : 'paddingInlineEnd';
|
|
110
|
+
document.body.style[paddingSide] = "".concat(width, "px");
|
|
111
|
+
return function () {
|
|
112
|
+
document.body.style[paddingSide] = '';
|
|
113
|
+
};
|
|
117
114
|
}
|
|
115
|
+
}, [isPushed, side, width]);
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* This class doesn't actually do anything by EUI, but is nice to add for consumers (JIC)
|
|
119
|
+
*/
|
|
120
|
+
useEffect(function () {
|
|
121
|
+
document.body.classList.add('euiBody--hasFlyout');
|
|
118
122
|
return function () {
|
|
123
|
+
// Remove the hasFlyout class when the flyout is unmounted
|
|
119
124
|
document.body.classList.remove('euiBody--hasFlyout');
|
|
120
|
-
if (isPushed) {
|
|
121
|
-
if (side === 'right') {
|
|
122
|
-
document.body.style.paddingInlineEnd = '';
|
|
123
|
-
} else if (side === 'left') {
|
|
124
|
-
document.body.style.paddingInlineStart = '';
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
125
|
};
|
|
128
|
-
}, [
|
|
126
|
+
}, []);
|
|
129
127
|
|
|
130
128
|
/**
|
|
131
129
|
* ESC key closes flyout (always?)
|
|
@@ -13,24 +13,22 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../../services';
|
|
16
17
|
import { EuiBreadcrumbs } from '../../breadcrumbs';
|
|
17
18
|
import { euiHeaderBreadcrumbsStyles } from './header_breadcrumbs.styles';
|
|
18
|
-
import { useEuiTheme } from '../../../services';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
20
|
export var EuiHeaderBreadcrumbs = function EuiHeaderBreadcrumbs(_ref) {
|
|
21
21
|
var className = _ref.className,
|
|
22
22
|
breadcrumbs = _ref.breadcrumbs,
|
|
23
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
24
|
var classes = classNames('euiHeaderBreadcrumbs', className);
|
|
25
|
-
var
|
|
26
|
-
var styles = euiHeaderBreadcrumbsStyles(euiTheme);
|
|
27
|
-
var cssHeaderBreadcrumbStyles = [styles.euiHeaderBreadcrumbs];
|
|
25
|
+
var styles = useEuiMemoizedStyles(euiHeaderBreadcrumbsStyles);
|
|
28
26
|
return ___EmotionJSX(EuiBreadcrumbs, _extends({
|
|
29
27
|
max: 4,
|
|
30
28
|
truncate: true,
|
|
31
29
|
breadcrumbs: breadcrumbs,
|
|
32
30
|
className: classes,
|
|
33
|
-
css:
|
|
31
|
+
css: styles.euiHeaderBreadcrumbs,
|
|
34
32
|
type: "application"
|
|
35
33
|
}, rest));
|
|
36
34
|
};
|
|
@@ -78,6 +78,7 @@ export var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
78
78
|
size: "m"
|
|
79
79
|
}));
|
|
80
80
|
});
|
|
81
|
+
var renderedChildren = typeof children === 'function' ? children(closeMenu) : children;
|
|
81
82
|
return ___EmotionJSX(EuiI18n, {
|
|
82
83
|
token: "euiHeaderLinks.appNavigation",
|
|
83
84
|
default: "App menu"
|
|
@@ -91,7 +92,7 @@ export var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
91
92
|
}, ___EmotionJSX("div", {
|
|
92
93
|
className: "euiHeaderLinks__list",
|
|
93
94
|
css: [styles.euiHeaderLinks__list, styles.gutterSizes[gutterSize], ";label:EuiHeaderLinks;"]
|
|
94
|
-
},
|
|
95
|
+
}, renderedChildren)), ___EmotionJSX(EuiShowFor, {
|
|
95
96
|
sizes: popoverBreakpoints
|
|
96
97
|
}, ___EmotionJSX(EuiPopover, _extends({
|
|
97
98
|
button: button,
|
|
@@ -103,7 +104,7 @@ export var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
103
104
|
}, popoverProps), ___EmotionJSX("div", {
|
|
104
105
|
className: "euiHeaderLinks__mobileList",
|
|
105
106
|
css: styles.euiHeaderLinks__mobileList
|
|
106
|
-
},
|
|
107
|
+
}, renderedChildren))));
|
|
107
108
|
});
|
|
108
109
|
};
|
|
109
110
|
EuiHeaderLinks.propTypes = {
|
|
@@ -111,6 +112,13 @@ EuiHeaderLinks.propTypes = {
|
|
|
111
112
|
"aria-label": PropTypes.string,
|
|
112
113
|
"data-test-subj": PropTypes.string,
|
|
113
114
|
css: PropTypes.any,
|
|
115
|
+
/**
|
|
116
|
+
* Takes any rendered node(s), typically of `EuiHeaderLink`s.
|
|
117
|
+
*
|
|
118
|
+
* Optionally takes a render function that will pass a callback allowing you
|
|
119
|
+
* to close the mobile popover from within your popover content.
|
|
120
|
+
*/
|
|
121
|
+
children: PropTypes.oneOfType([PropTypes.node.isRequired, PropTypes.func.isRequired]),
|
|
114
122
|
/**
|
|
115
123
|
* Spacing between direct children
|
|
116
124
|
*/
|
|
@@ -223,8 +223,8 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
223
223
|
} else {
|
|
224
224
|
var Svg = icon;
|
|
225
225
|
|
|
226
|
-
// If
|
|
227
|
-
var isAriaHidden =
|
|
226
|
+
// If there is no aria-label, aria-labelledby, or title it gets aria-hidden true
|
|
227
|
+
var isAriaHidden = !(this.props['aria-label'] || this.props['aria-labelledby'] || this.props.title);
|
|
228
228
|
|
|
229
229
|
// If no aria-label or aria-labelledby is provided but there's a title, a titleId is generated
|
|
230
230
|
// The svg aria-labelledby attribute gets this titleId
|
|
@@ -244,7 +244,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
244
244
|
"data-is-loaded": isLoaded || undefined,
|
|
245
245
|
"data-is-loading": isLoading || undefined
|
|
246
246
|
}, rest, {
|
|
247
|
-
"aria-hidden": isAriaHidden ||
|
|
247
|
+
"aria-hidden": isAriaHidden || rest['aria-hidden']
|
|
248
248
|
}));
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -74,7 +74,8 @@ export var EuiConfirmModal = function EuiConfirmModal(_ref) {
|
|
|
74
74
|
return ___EmotionJSX(EuiModal, _extends({
|
|
75
75
|
className: classes,
|
|
76
76
|
css: cssStyles,
|
|
77
|
-
onClose: onCancel
|
|
77
|
+
onClose: onCancel,
|
|
78
|
+
role: "alertdialog"
|
|
78
79
|
}, rest), modalTitle, message && ___EmotionJSX(EuiModalBody, null, ___EmotionJSX(EuiText, {
|
|
79
80
|
"data-test-subj": "confirmModalBodyText"
|
|
80
81
|
}, message)), ___EmotionJSX(EuiModalFooter, null, ___EmotionJSX(EuiButtonEmpty, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "style"];
|
|
2
|
+
var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth", "role", "style"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
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; }
|
|
5
5
|
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) { _defineProperty(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; }
|
|
@@ -33,6 +33,8 @@ export var EuiModal = function EuiModal(_ref) {
|
|
|
33
33
|
onClose = _ref.onClose,
|
|
34
34
|
_ref$maxWidth = _ref.maxWidth,
|
|
35
35
|
maxWidth = _ref$maxWidth === void 0 ? true : _ref$maxWidth,
|
|
36
|
+
_ref$role = _ref.role,
|
|
37
|
+
role = _ref$role === void 0 ? 'dialog' : _ref$role,
|
|
36
38
|
style = _ref.style,
|
|
37
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
40
|
var onKeyDown = function onKeyDown(event) {
|
|
@@ -62,7 +64,9 @@ export var EuiModal = function EuiModal(_ref) {
|
|
|
62
64
|
className: classes,
|
|
63
65
|
onKeyDown: onKeyDown,
|
|
64
66
|
tabIndex: 0,
|
|
65
|
-
style: newStyle
|
|
67
|
+
style: newStyle,
|
|
68
|
+
role: role,
|
|
69
|
+
"aria-modal": true
|
|
66
70
|
}, rest), ___EmotionJSX(EuiI18n, {
|
|
67
71
|
token: "euiModal.closeModal",
|
|
68
72
|
default: "Closes this modal window"
|
|
@@ -96,5 +100,10 @@ EuiModal.propTypes = {
|
|
|
96
100
|
* Specifies what element should initially have focus.
|
|
97
101
|
* 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.
|
|
98
102
|
*/
|
|
99
|
-
initialFocus: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.func.isRequired, PropTypes.string.isRequired])
|
|
103
|
+
initialFocus: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.func.isRequired, PropTypes.string.isRequired]),
|
|
104
|
+
/**
|
|
105
|
+
* Identifies a modal dialog to screen readers. Modal dialogs that confirm destructive actions
|
|
106
|
+
* or need a user's attention should use "alertdialog".
|
|
107
|
+
*/
|
|
108
|
+
role: PropTypes.oneOf(["dialog", "alertdialog"])
|
|
100
109
|
};
|
|
@@ -44,14 +44,13 @@ export var EuiResizeObserver = /*#__PURE__*/function (_EuiObserver) {
|
|
|
44
44
|
height: 0,
|
|
45
45
|
width: 0
|
|
46
46
|
});
|
|
47
|
-
_defineProperty(_assertThisInitialized(_this), "onResize", function () {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
width = _this$childNode$getBo.width;
|
|
47
|
+
_defineProperty(_assertThisInitialized(_this), "onResize", function (_ref) {
|
|
48
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
49
|
+
entry = _ref2[0];
|
|
50
|
+
var _entry$borderBoxSize$ = entry.borderBoxSize[0],
|
|
51
|
+
width = _entry$borderBoxSize$.inlineSize,
|
|
52
|
+
height = _entry$borderBoxSize$.blockSize;
|
|
53
|
+
|
|
55
54
|
// Check for actual resize event
|
|
56
55
|
if (_this.state.height === height && _this.state.width === width) {
|
|
57
56
|
return;
|
|
@@ -105,23 +104,15 @@ export var useResizeObserver = function useResizeObserver(container, dimension)
|
|
|
105
104
|
}, [dimension]);
|
|
106
105
|
useEffect(function () {
|
|
107
106
|
if (container != null) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
});
|
|
115
|
-
var observer = makeResizeObserver(container, function () {
|
|
116
|
-
// `entry.contentRect` provides incomplete `height` and `width` data.
|
|
117
|
-
// Use `getBoundingClientRect` to account for padding and border.
|
|
118
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly
|
|
119
|
-
var _container$getBoundin = container.getBoundingClientRect(),
|
|
120
|
-
height = _container$getBoundin.height,
|
|
121
|
-
width = _container$getBoundin.width;
|
|
107
|
+
var observer = makeResizeObserver(container, function (_ref3) {
|
|
108
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
109
|
+
entry = _ref4[0];
|
|
110
|
+
var _entry$borderBoxSize$2 = entry.borderBoxSize[0],
|
|
111
|
+
inlineSize = _entry$borderBoxSize$2.inlineSize,
|
|
112
|
+
blockSize = _entry$borderBoxSize$2.blockSize;
|
|
122
113
|
setSize({
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
114
|
+
width: inlineSize,
|
|
115
|
+
height: blockSize
|
|
125
116
|
});
|
|
126
117
|
});
|
|
127
118
|
return function () {
|
|
@@ -17,7 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import classNames from 'classnames';
|
|
20
|
-
import {
|
|
20
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
21
21
|
import { useEuiBackgroundColorCSS, useEuiPaddingCSS, BACKGROUND_COLORS, PADDING_SIZES } from '../../global_styling';
|
|
22
22
|
import { keysOf } from '../common';
|
|
23
23
|
import { euiPanelStyles } from './panel.styles';
|
|
@@ -53,11 +53,10 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
53
53
|
panelRef = _ref.panelRef,
|
|
54
54
|
element = _ref.element,
|
|
55
55
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
-
var euiTheme = useEuiTheme();
|
|
57
56
|
// Shadows are only allowed when there's a white background (plain)
|
|
58
57
|
var canHaveShadow = !hasBorder && color === 'plain';
|
|
59
58
|
var canHaveBorder = color === 'plain' || color === 'transparent';
|
|
60
|
-
var styles = euiPanelStyles
|
|
59
|
+
var styles = useEuiMemoizedStyles(euiPanelStyles);
|
|
61
60
|
var cssStyles = [styles.euiPanel, grow && styles.grow, styles.radius[borderRadius], useEuiPaddingCSS()[paddingSize], useEuiBackgroundColorCSS()[color], canHaveShadow && hasShadow === true && styles.hasShadow, canHaveBorder && hasBorder === true && styles.hasBorder, rest.onClick && styles.isClickable];
|
|
62
61
|
var classes = classNames('euiPanel', "euiPanel--".concat(color), _defineProperty({}, "euiPanel--".concat(paddingSizeToClassNameMap[paddingSize]), paddingSizeToClassNameMap[paddingSize]), className);
|
|
63
62
|
if (rest.onClick && element !== 'div') {
|
|
@@ -21,7 +21,7 @@ import React, { useCallback, useMemo, useRef, forwardRef } from 'react';
|
|
|
21
21
|
import PropTypes from "prop-types";
|
|
22
22
|
import classNames from 'classnames';
|
|
23
23
|
import { EuiI18n } from '../i18n';
|
|
24
|
-
import {
|
|
24
|
+
import { useEuiMemoizedStyles, useGeneratedHtmlId } from '../../services';
|
|
25
25
|
import { useEuiResizableContainerContext } from './context';
|
|
26
26
|
import { euiResizableButtonStyles } from './resizable_button.styles';
|
|
27
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -39,8 +39,7 @@ export var EuiResizableButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
40
|
var classes = classNames('euiResizableButton', className);
|
|
41
41
|
var resizeDirection = isHorizontal ? 'horizontal' : 'vertical';
|
|
42
|
-
var
|
|
43
|
-
var styles = euiResizableButtonStyles(euiTheme);
|
|
42
|
+
var styles = useEuiMemoizedStyles(euiResizableButtonStyles);
|
|
44
43
|
var cssStyles = [styles.euiResizableButton, styles[indicator], styles["".concat(indicator, "Direction")][resizeDirection], styles[resizeDirection], indicator === 'handle' && styles.alignIndicator[alignIndicator]];
|
|
45
44
|
return ___EmotionJSX(EuiI18n, {
|
|
46
45
|
tokens: ['euiResizableButton.horizontalResizerAriaLabel', 'euiResizableButton.verticalResizerAriaLabel'],
|
|
@@ -19,7 +19,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import PropTypes from "prop-types";
|
|
21
21
|
import classNames from 'classnames';
|
|
22
|
-
import {
|
|
22
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
23
23
|
import { EuiButtonIcon } from '../button';
|
|
24
24
|
import { euiScreenReaderOnlyStyles } from '../accessibility/screen_reader_only/screen_reader_only.styles';
|
|
25
25
|
import { euiResizableCollapseButtonStyles } from './resizable_collapse_button.styles';
|
|
@@ -38,8 +38,7 @@ export var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref
|
|
|
38
38
|
var isHorizontal = direction === 'horizontal';
|
|
39
39
|
var showOnFocus = !isCollapsed && !isVisible;
|
|
40
40
|
var screenReaderOnlyStyles = euiScreenReaderOnlyStyles(showOnFocus).euiScreenReaderOnly;
|
|
41
|
-
var
|
|
42
|
-
var styles = euiResizableCollapseButtonStyles(euiTheme);
|
|
41
|
+
var styles = useEuiMemoizedStyles(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(_toConsumableArray(isCollapsed ? collapsedStyles : collapsibleStyles));
|
|
@@ -31,7 +31,7 @@ import { EuiResizableContainerContextProvider } from './context';
|
|
|
31
31
|
import { euiResizableButtonWithControls } from './resizable_button';
|
|
32
32
|
import { euiResizablePanelWithControls, getModeType } from './resizable_panel';
|
|
33
33
|
import { useContainerCallbacks, getPosition } from './helpers';
|
|
34
|
-
import { euiResizableContainerStyles } from './resizable_container.styles';
|
|
34
|
+
import { euiResizableContainerStyles as styles } from './resizable_container.styles';
|
|
35
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
36
36
|
var initialState = {
|
|
37
37
|
isDragging: false,
|
|
@@ -59,7 +59,6 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
59
59
|
var containerRef = useRef(null);
|
|
60
60
|
var isHorizontal = direction === 'horizontal';
|
|
61
61
|
var classes = classNames('euiResizableContainer', className);
|
|
62
|
-
var styles = euiResizableContainerStyles();
|
|
63
62
|
var cssStyles = [styles.euiResizableContainer, styles[direction]];
|
|
64
63
|
var _useContainerCallback = useContainerCallbacks({
|
|
65
64
|
initialState: _objectSpread(_objectSpread({}, initialState), {}, {
|
|
@@ -9,18 +9,15 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { logicalCSS } from '../../global_styling';
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
horizontal: /*#__PURE__*/css(";label:horizontal;"),
|
|
24
|
-
vertical: _ref
|
|
25
|
-
};
|
|
12
|
+
export var euiResizableContainerStyles = {
|
|
13
|
+
euiResizableContainer: /*#__PURE__*/css("display:flex;", logicalCSS('width', '100%'), ";;label:euiResizableContainer;"),
|
|
14
|
+
horizontal: /*#__PURE__*/css(";label:horizontal;"),
|
|
15
|
+
vertical: process.env.NODE_ENV === "production" ? {
|
|
16
|
+
name: "omnk2l-vertical",
|
|
17
|
+
styles: "flex-direction:column;label:vertical;"
|
|
18
|
+
} : {
|
|
19
|
+
name: "omnk2l-vertical",
|
|
20
|
+
styles: "flex-direction:column;label:vertical;",
|
|
21
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
+
}
|
|
26
23
|
};
|
|
@@ -19,13 +19,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
19
19
|
|
|
20
20
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
21
21
|
import classNames from 'classnames';
|
|
22
|
-
import { useGeneratedHtmlId,
|
|
23
|
-
import { logicalSizeStyle,
|
|
22
|
+
import { useGeneratedHtmlId, useEuiMemoizedStyles } from '../../services';
|
|
23
|
+
import { logicalSizeStyle, useEuiPaddingSize, useEuiPaddingCSS } from '../../global_styling';
|
|
24
24
|
import { useEuiResizableContainerContext } from './context';
|
|
25
25
|
import { EuiPanel } from '../panel';
|
|
26
26
|
import { useEuiI18n } from '../i18n';
|
|
27
27
|
import { EuiResizableCollapseButton } from './resizable_collapse_button';
|
|
28
|
-
import { euiResizablePanelStyles, euiResizablePanelContentStyles } from './resizable_panel.styles';
|
|
28
|
+
import { euiResizablePanelStyles as styles, euiResizablePanelContentStyles } from './resizable_panel.styles';
|
|
29
29
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
30
30
|
var defaultToggleOptions = {
|
|
31
31
|
className: null,
|
|
@@ -137,15 +137,13 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
137
137
|
return direction;
|
|
138
138
|
}, [isCollapsed, isCollapsible, position, panels, panelId]);
|
|
139
139
|
var axis = isHorizontal ? 'horizontal' : 'vertical';
|
|
140
|
-
var
|
|
141
|
-
var
|
|
142
|
-
var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
143
|
-
var contentStyles = euiResizablePanelContentStyles(euiTheme);
|
|
140
|
+
var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, useEuiPaddingCSS()[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
141
|
+
var contentStyles = useEuiMemoizedStyles(euiResizablePanelContentStyles);
|
|
144
142
|
var contentCssStyles = [contentStyles.euiResizablePanel__content, scrollable && contentStyles.scrollable, isCollapsed && contentStyles.collapsedChildren, isCollapsed && !isCollapsible && contentStyles[axis].collapsed, isCollapsible && contentStyles[axis].hasCollapsibleButton];
|
|
145
143
|
var classes = classNames('euiResizablePanel', wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className);
|
|
146
144
|
var panelClasses = classNames('euiResizablePanel__content', className);
|
|
147
145
|
var inlineStyles = _objectSpread(_objectSpread({}, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.style), isHorizontal ? logicalSizeStyle("".concat(size || innerSize, "%"), 'auto') : logicalSizeStyle('100%', "".concat(size || innerSize, "%")));
|
|
148
|
-
var padding =
|
|
146
|
+
var padding = useEuiPaddingSize(paddingSize) || '0px';
|
|
149
147
|
useEffect(function () {
|
|
150
148
|
if (!registration) return;
|
|
151
149
|
var initSize = size !== null && size !== void 0 ? size : initialSize || 0;
|