@elastic/eui 77.0.0 → 77.1.1
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_theme_dark.css +22 -51
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +22 -51
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.a11y.js +3 -1
- package/es/components/accordion/accordion.js +4 -2
- package/es/components/basic_table/table.a11y.js +3 -1
- package/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/es/components/card/card.a11y.js +3 -1
- package/es/components/color_picker/color_picker.a11y.js +3 -1
- package/es/components/combo_box/combo_box.a11y.js +3 -1
- package/es/components/combo_box/combo_box.js +2 -21
- package/es/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/es/components/control_bar/control_bar.a11y.js +3 -1
- package/es/components/copy/copy.a11y.js +6 -5
- package/es/components/datagrid/data_grid.a11y.js +3 -1
- package/es/components/date_picker/date_picker.a11y.js +3 -1
- package/es/components/date_picker/date_picker.js +148 -155
- package/es/components/date_picker/date_picker_range.js +2 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/es/components/delay_hide/delay_hide.a11y.js +9 -9
- package/es/components/delay_render/delay_render.a11y.js +9 -9
- package/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/es/components/error_boundary/error_boundary.a11y.js +3 -1
- package/es/components/expression/expression.a11y.js +3 -1
- package/es/components/filter_group/filter_group.a11y.js +4 -3
- package/es/components/flyout/flyout.a11y.js +3 -1
- package/es/components/focus_trap/focus_trap.a11y.js +3 -1
- package/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
- package/es/components/form/file_picker/file_picker.js +4 -2
- package/es/components/form/radio/radio_group.a11y.js +4 -5
- package/es/components/form/range/range.a11y.js +3 -1
- package/es/components/form/switch/switch.a11y.js +4 -5
- package/es/components/form/text_area/text_area.js +11 -3
- package/es/components/form/validatable_control/index.js +1 -1
- package/es/components/form/validatable_control/validatable_control.js +49 -13
- package/es/components/header/header.a11y.js +3 -1
- package/es/components/icon/icon_ML.a11y.js +3 -1
- package/es/components/icon/icon_apps.a11y.js +3 -1
- package/es/components/icon/icon_editor.a11y.js +3 -1
- package/es/components/icon/icon_elastic.a11y.js +3 -1
- package/es/components/icon/icon_glyphs.a11y.js +3 -1
- package/es/components/icon/icon_tokens.a11y.js +3 -1
- package/es/components/image/image.a11y.js +3 -1
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/es/components/modal/modal.a11y.js +3 -1
- package/es/components/notification/notification_event.a11y.js +3 -1
- package/es/components/page/page_header/page_header.a11y.js +3 -1
- package/es/components/pagination/pagination.a11y.js +3 -1
- package/es/components/popover/popover.a11y.js +3 -1
- package/es/components/popover/popover_footer.js +4 -4
- package/es/components/popover/popover_footer.styles.js +16 -5
- package/es/components/popover/popover_panel/_popover_panel.js +8 -5
- package/es/components/portal/portal.a11y.js +3 -1
- package/es/components/progress/progress.a11y.js +3 -1
- package/es/components/resizable_container/resizable_container.a11y.js +3 -1
- package/es/components/search_bar/search_bar.a11y.js +8 -7
- package/es/components/selectable/selectable.a11y.js +3 -1
- package/es/components/side_nav/side_nav.a11y.js +3 -1
- package/es/components/tabs/tabs.a11y.js +3 -1
- package/es/components/tree_view/tree_view.a11y.js +3 -1
- package/eui.d.ts +42 -36
- package/i18ntokens.json +4 -4
- package/lib/components/accordion/accordion.a11y.js +3 -1
- package/lib/components/accordion/accordion.js +4 -2
- package/lib/components/basic_table/table.a11y.js +3 -1
- package/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/lib/components/combo_box/combo_box.js +2 -21
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/lib/components/copy/copy.a11y.js +3 -4
- package/lib/components/date_picker/date_picker.js +147 -153
- package/lib/components/date_picker/date_picker_range.js +2 -2
- package/lib/components/delay_hide/delay_hide.a11y.js +6 -8
- package/lib/components/delay_render/delay_render.a11y.js +6 -8
- package/lib/components/drag_and_drop/drag_and_drop.a11y.js +0 -1
- package/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/lib/components/error_boundary/error_boundary.a11y.js +3 -1
- package/lib/components/filter_group/filter_group.a11y.js +7 -8
- package/lib/components/form/file_picker/file_picker.js +4 -2
- package/lib/components/form/radio/radio_group.a11y.js +1 -4
- package/lib/components/form/switch/switch.a11y.js +1 -4
- package/lib/components/form/text_area/text_area.js +11 -3
- package/lib/components/form/validatable_control/index.js +6 -0
- package/lib/components/form/validatable_control/validatable_control.js +51 -14
- package/lib/components/icon/icon_ML.a11y.js +3 -1
- package/lib/components/icon/icon_apps.a11y.js +3 -1
- package/lib/components/icon/icon_editor.a11y.js +3 -1
- package/lib/components/icon/icon_elastic.a11y.js +3 -1
- package/lib/components/icon/icon_glyphs.a11y.js +3 -1
- package/lib/components/icon/icon_tokens.a11y.js +3 -1
- package/lib/components/image/image.a11y.js +3 -1
- package/lib/components/page/page_header/page_header.a11y.js +3 -1
- package/lib/components/popover/popover_footer.js +4 -4
- package/lib/components/popover/popover_footer.styles.js +19 -7
- package/lib/components/popover/popover_panel/_popover_panel.js +7 -4
- package/lib/components/resizable_container/resizable_container.a11y.js +3 -1
- package/lib/components/search_bar/search_bar.a11y.js +5 -6
- package/lib/components/tree_view/tree_view.a11y.js +3 -1
- package/optimize/es/components/accordion/accordion.a11y.js +3 -1
- package/optimize/es/components/accordion/accordion.js +4 -2
- package/optimize/es/components/basic_table/table.a11y.js +3 -1
- package/optimize/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/optimize/es/components/card/card.a11y.js +3 -1
- package/optimize/es/components/color_picker/color_picker.a11y.js +3 -1
- package/optimize/es/components/combo_box/combo_box.a11y.js +3 -1
- package/optimize/es/components/combo_box/combo_box.js +2 -21
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +63 -34
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/es/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/optimize/es/components/control_bar/control_bar.a11y.js +3 -1
- package/optimize/es/components/copy/copy.a11y.js +6 -5
- package/optimize/es/components/datagrid/data_grid.a11y.js +3 -1
- package/optimize/es/components/date_picker/date_picker.a11y.js +3 -1
- package/optimize/es/components/date_picker/date_picker.js +142 -148
- package/optimize/es/components/date_picker/date_picker_range.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +9 -9
- package/optimize/es/components/delay_render/delay_render.a11y.js +9 -9
- package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/optimize/es/components/error_boundary/error_boundary.a11y.js +3 -1
- package/optimize/es/components/expression/expression.a11y.js +3 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +4 -3
- package/optimize/es/components/flyout/flyout.a11y.js +3 -1
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +3 -1
- package/optimize/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
- package/optimize/es/components/form/file_picker/file_picker.js +4 -2
- package/optimize/es/components/form/radio/radio_group.a11y.js +4 -5
- package/optimize/es/components/form/range/range.a11y.js +3 -1
- package/optimize/es/components/form/switch/switch.a11y.js +4 -5
- package/optimize/es/components/form/text_area/text_area.js +10 -3
- package/optimize/es/components/form/validatable_control/index.js +1 -1
- package/optimize/es/components/form/validatable_control/validatable_control.js +49 -9
- package/optimize/es/components/header/header.a11y.js +3 -1
- package/optimize/es/components/icon/icon_ML.a11y.js +3 -1
- package/optimize/es/components/icon/icon_apps.a11y.js +3 -1
- package/optimize/es/components/icon/icon_editor.a11y.js +3 -1
- package/optimize/es/components/icon/icon_elastic.a11y.js +3 -1
- package/optimize/es/components/icon/icon_glyphs.a11y.js +3 -1
- package/optimize/es/components/icon/icon_tokens.a11y.js +3 -1
- package/optimize/es/components/image/image.a11y.js +3 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/optimize/es/components/modal/modal.a11y.js +3 -1
- package/optimize/es/components/notification/notification_event.a11y.js +3 -1
- package/optimize/es/components/page/page_header/page_header.a11y.js +3 -1
- package/optimize/es/components/pagination/pagination.a11y.js +3 -1
- package/optimize/es/components/popover/popover.a11y.js +3 -1
- package/optimize/es/components/popover/popover_footer.js +4 -4
- package/optimize/es/components/popover/popover_footer.styles.js +16 -5
- package/optimize/es/components/popover/popover_panel/_popover_panel.js +8 -5
- package/optimize/es/components/portal/portal.a11y.js +3 -1
- package/optimize/es/components/progress/progress.a11y.js +3 -1
- package/optimize/es/components/resizable_container/resizable_container.a11y.js +3 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +8 -7
- package/optimize/es/components/selectable/selectable.a11y.js +3 -1
- package/optimize/es/components/side_nav/side_nav.a11y.js +3 -1
- package/optimize/es/components/tabs/tabs.a11y.js +3 -1
- package/optimize/es/components/tree_view/tree_view.a11y.js +3 -1
- package/optimize/lib/components/accordion/accordion.a11y.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +4 -2
- package/optimize/lib/components/basic_table/table.a11y.js +3 -1
- package/optimize/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/optimize/lib/components/card/card.a11y.js +3 -1
- package/optimize/lib/components/color_picker/color_picker.a11y.js +3 -1
- package/optimize/lib/components/combo_box/combo_box.a11y.js +3 -1
- package/optimize/lib/components/combo_box/combo_box.js +2 -21
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +63 -34
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/optimize/lib/components/control_bar/control_bar.a11y.js +3 -1
- package/optimize/lib/components/copy/copy.a11y.js +6 -5
- package/optimize/lib/components/datagrid/data_grid.a11y.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.a11y.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.js +141 -147
- package/optimize/lib/components/date_picker/date_picker_range.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +9 -9
- package/optimize/lib/components/delay_render/delay_render.a11y.js +9 -9
- package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/optimize/lib/components/error_boundary/error_boundary.a11y.js +3 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +10 -9
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +3 -1
- package/optimize/lib/components/form/file_picker/file_picker.js +4 -2
- package/optimize/lib/components/form/radio/radio_group.a11y.js +4 -5
- package/optimize/lib/components/form/range/range.a11y.js +3 -1
- package/optimize/lib/components/form/switch/switch.a11y.js +4 -5
- package/optimize/lib/components/form/text_area/text_area.js +10 -3
- package/optimize/lib/components/form/validatable_control/index.js +6 -0
- package/optimize/lib/components/form/validatable_control/validatable_control.js +52 -12
- package/optimize/lib/components/header/header.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_ML.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_apps.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_editor.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_elastic.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_tokens.a11y.js +3 -1
- package/optimize/lib/components/image/image.a11y.js +3 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/optimize/lib/components/modal/modal.a11y.js +3 -1
- package/optimize/lib/components/notification/notification_event.a11y.js +3 -1
- package/optimize/lib/components/page/page_header/page_header.a11y.js +3 -1
- package/optimize/lib/components/pagination/pagination.a11y.js +3 -1
- package/optimize/lib/components/popover/popover.a11y.js +3 -1
- package/optimize/lib/components/popover/popover_footer.js +4 -4
- package/optimize/lib/components/popover/popover_footer.styles.js +19 -7
- package/optimize/lib/components/popover/popover_panel/_popover_panel.js +7 -4
- package/optimize/lib/components/portal/portal.a11y.js +3 -1
- package/optimize/lib/components/progress/progress.a11y.js +3 -1
- package/optimize/lib/components/resizable_container/resizable_container.a11y.js +3 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +8 -7
- package/optimize/lib/components/selectable/selectable.a11y.js +3 -1
- package/optimize/lib/components/side_nav/side_nav.a11y.js +3 -1
- package/optimize/lib/components/tree_view/tree_view.a11y.js +3 -1
- package/package.json +1 -1
- package/src/components/combo_box/_combo_box.scss +2 -38
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/form/field_text/_field_text.scss +0 -7
- package/src/components/form/file_picker/_file_picker.scss +3 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +7 -2
- package/src/components/form/text_area/_text_area.scss +9 -0
- package/test-env/components/accordion/accordion.a11y.js +3 -1
- package/test-env/components/accordion/accordion.js +4 -2
- package/test-env/components/basic_table/table.a11y.js +3 -1
- package/test-env/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/test-env/components/card/card.a11y.js +3 -1
- package/test-env/components/color_picker/color_picker.a11y.js +3 -1
- package/test-env/components/combo_box/combo_box.a11y.js +3 -1
- package/test-env/components/combo_box/combo_box.js +2 -21
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/test-env/components/control_bar/control_bar.a11y.js +3 -1
- package/test-env/components/copy/copy.a11y.js +6 -5
- package/test-env/components/datagrid/data_grid.a11y.js +3 -1
- package/test-env/components/date_picker/date_picker.a11y.js +3 -1
- package/test-env/components/date_picker/date_picker.js +141 -147
- package/test-env/components/date_picker/date_picker_range.js +2 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/test-env/components/delay_hide/delay_hide.a11y.js +9 -9
- package/test-env/components/delay_render/delay_render.a11y.js +9 -9
- package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/test-env/components/error_boundary/error_boundary.a11y.js +3 -1
- package/test-env/components/filter_group/filter_group.a11y.js +10 -9
- package/test-env/components/focus_trap/focus_trap.a11y.js +3 -1
- package/test-env/components/form/file_picker/file_picker.js +4 -2
- package/test-env/components/form/radio/radio_group.a11y.js +4 -5
- package/test-env/components/form/range/range.a11y.js +3 -1
- package/test-env/components/form/switch/switch.a11y.js +4 -5
- package/test-env/components/form/text_area/text_area.js +11 -3
- package/test-env/components/form/validatable_control/index.js +6 -0
- package/test-env/components/form/validatable_control/validatable_control.js +51 -14
- package/test-env/components/header/header.a11y.js +3 -1
- package/test-env/components/icon/icon_ML.a11y.js +3 -1
- package/test-env/components/icon/icon_apps.a11y.js +3 -1
- package/test-env/components/icon/icon_editor.a11y.js +3 -1
- package/test-env/components/icon/icon_elastic.a11y.js +3 -1
- package/test-env/components/icon/icon_glyphs.a11y.js +3 -1
- package/test-env/components/icon/icon_tokens.a11y.js +3 -1
- package/test-env/components/image/image.a11y.js +3 -1
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/test-env/components/modal/modal.a11y.js +3 -1
- package/test-env/components/notification/notification_event.a11y.js +3 -1
- package/test-env/components/page/page_header/page_header.a11y.js +3 -1
- package/test-env/components/pagination/pagination.a11y.js +3 -1
- package/test-env/components/popover/popover.a11y.js +3 -1
- package/test-env/components/popover/popover_footer.js +4 -4
- package/test-env/components/popover/popover_footer.styles.js +19 -7
- package/test-env/components/popover/popover_panel/_popover_panel.js +7 -4
- package/test-env/components/portal/portal.a11y.js +3 -1
- package/test-env/components/progress/progress.a11y.js +3 -1
- package/test-env/components/resizable_container/resizable_container.a11y.js +3 -1
- package/test-env/components/search_bar/search_bar.a11y.js +8 -7
- package/test-env/components/selectable/selectable.a11y.js +3 -1
- package/test-env/components/side_nav/side_nav.a11y.js +3 -1
- package/test-env/components/tree_view/tree_view.a11y.js +3 -1
|
@@ -10,14 +10,15 @@ var _excluded = ["children", "className", "isOpen", "isAttached", "hasDragDrop",
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import React, { createContext
|
|
13
|
+
import React, { createContext } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { useEuiTheme } from '../../../services';
|
|
16
16
|
import { EuiPanel } from '../../panel/panel';
|
|
17
17
|
import { euiPopoverPanelStyles } from './_popover_panel.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
|
+
var DEFAULT_PANEL_PADDING_SIZE = 'l';
|
|
19
20
|
export var EuiPopoverPanelContext = /*#__PURE__*/createContext({
|
|
20
|
-
paddingSize:
|
|
21
|
+
paddingSize: DEFAULT_PANEL_PADDING_SIZE
|
|
21
22
|
});
|
|
22
23
|
/**
|
|
23
24
|
* *INTERNAL ONLY*
|
|
@@ -31,8 +32,8 @@ export var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
|
|
|
31
32
|
hasDragDrop = _ref.hasDragDrop,
|
|
32
33
|
position = _ref.position,
|
|
33
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
-
var
|
|
35
|
-
|
|
35
|
+
var _rest$paddingSize = rest.paddingSize,
|
|
36
|
+
paddingSize = _rest$paddingSize === void 0 ? DEFAULT_PANEL_PADDING_SIZE : _rest$paddingSize;
|
|
36
37
|
var euiThemeContext = useEuiTheme();
|
|
37
38
|
// Using BEM child class for BWC
|
|
38
39
|
var classes = classNames('euiPopover__panel', className);
|
|
@@ -45,7 +46,9 @@ export var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
|
|
|
45
46
|
panelCSS = [].concat(_toConsumableArray(panelCSS), [styles.hasDragDrop.hasDragDrop, position && styles.hasDragDrop[position]]);
|
|
46
47
|
}
|
|
47
48
|
return ___EmotionJSX(EuiPopoverPanelContext.Provider, {
|
|
48
|
-
value:
|
|
49
|
+
value: {
|
|
50
|
+
paddingSize: paddingSize
|
|
51
|
+
}
|
|
49
52
|
}, ___EmotionJSX(EuiPanel, _extends({
|
|
50
53
|
className: classes,
|
|
51
54
|
css: panelCSS,
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiButton } from '../button';
|
|
@@ -7,7 +7,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React from 'react';
|
|
13
15
|
import { EuiProgress } from './progress';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiResizableContainer } from './resizable_container';
|
|
@@ -7,14 +7,16 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiBasicTable } from '../basic_table';
|
|
14
16
|
import { EuiFlexGroup, EuiFlexItem } from '../flex';
|
|
15
17
|
import { EuiHealth } from '../health';
|
|
16
|
-
import { EuiSearchBar } from './search_bar';
|
|
17
18
|
import { EuiSpacer } from '../spacer';
|
|
19
|
+
import { EuiSearchBar } from './search_bar';
|
|
18
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
21
|
var tags = [{
|
|
20
22
|
name: 'marketing',
|
|
@@ -76,10 +78,6 @@ export var SearchBar = function SearchBar() {
|
|
|
76
78
|
_useState2 = _slicedToArray(_useState, 2),
|
|
77
79
|
query = _useState2[0],
|
|
78
80
|
setQuery = _useState2[1];
|
|
79
|
-
var onChange = function onChange(_ref) {
|
|
80
|
-
var query = _ref.query;
|
|
81
|
-
return setQuery(query);
|
|
82
|
-
};
|
|
83
81
|
var renderSearch = function renderSearch() {
|
|
84
82
|
var filters = [{
|
|
85
83
|
type: 'field_value_toggle_group',
|
|
@@ -125,7 +123,10 @@ export var SearchBar = function SearchBar() {
|
|
|
125
123
|
schema: schema
|
|
126
124
|
},
|
|
127
125
|
filters: filters,
|
|
128
|
-
onChange: onChange
|
|
126
|
+
onChange: function onChange(_ref) {
|
|
127
|
+
var query = _ref.query;
|
|
128
|
+
if (query) setQuery(query);
|
|
129
|
+
}
|
|
129
130
|
});
|
|
130
131
|
};
|
|
131
132
|
var renderTable = function renderTable() {
|
|
@@ -8,7 +8,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
/// <reference types="
|
|
11
|
+
/// <reference types="cypress" />
|
|
12
|
+
/// <reference types="cypress-real-events" />
|
|
13
|
+
/// <reference types="../../../cypress/support" />
|
|
12
14
|
|
|
13
15
|
import React, { useState } from 'react';
|
|
14
16
|
import { EuiButton } from '../button';
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiSideNav } from './side_nav';
|
|
@@ -9,7 +9,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
/// <reference types="
|
|
12
|
+
/// <reference types="cypress" />
|
|
13
|
+
/// <reference types="cypress-real-events" />
|
|
14
|
+
/// <reference types="../../../cypress/support" />
|
|
13
15
|
|
|
14
16
|
import React from 'react';
|
|
15
17
|
import { EuiTabbedContent } from './tabbed_content';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiTreeView } from './tree_view';
|
|
@@ -14,7 +14,9 @@ var _react2 = require("@emotion/react");
|
|
|
14
14
|
* Side Public License, v 1.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
/// <reference types="
|
|
17
|
+
/// <reference types="cypress" />
|
|
18
|
+
/// <reference types="cypress-real-events" />
|
|
19
|
+
/// <reference types="../../../cypress/support" />
|
|
18
20
|
|
|
19
21
|
var baseProps = {
|
|
20
22
|
buttonContent: 'Click me to toggle',
|
|
@@ -212,8 +212,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
212
212
|
}, buttonProps, {
|
|
213
213
|
id: buttonId,
|
|
214
214
|
className: buttonClasses,
|
|
215
|
-
"aria-controls": id
|
|
216
|
-
|
|
215
|
+
"aria-controls": id
|
|
216
|
+
// `aria-expanded` is only a valid attribute on interactive controls - axe-core throws a violation otherwise
|
|
217
|
+
,
|
|
218
|
+
"aria-expanded": ButtonElement === 'button' ? isOpen : undefined,
|
|
217
219
|
onClick: isDisabled ? undefined : this.onToggle,
|
|
218
220
|
type: ButtonElement === 'button' ? 'button' : undefined,
|
|
219
221
|
disabled: ButtonElement === 'button' ? isDisabled : undefined
|
|
@@ -16,7 +16,9 @@ var _react2 = require("@emotion/react");
|
|
|
16
16
|
* Side Public License, v 1.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
/// <reference types="
|
|
19
|
+
/// <reference types="cypress" />
|
|
20
|
+
/// <reference types="cypress-real-events" />
|
|
21
|
+
/// <reference types="../../../cypress/support" />
|
|
20
22
|
|
|
21
23
|
var users = [];
|
|
22
24
|
for (var i = 0; i < 20; i++) {
|
|
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
* Side Public License, v 1.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/// <reference types="
|
|
15
|
+
/// <reference types="cypress" />
|
|
16
|
+
/// <reference types="cypress-real-events" />
|
|
17
|
+
/// <reference types="../../../cypress/support" />
|
|
16
18
|
|
|
17
19
|
var breadcrumbs = [{
|
|
18
20
|
text: 'Animals',
|
|
@@ -19,7 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
19
|
* Side Public License, v 1.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
/// <reference types="
|
|
22
|
+
/// <reference types="cypress" />
|
|
23
|
+
/// <reference types="cypress-real-events" />
|
|
24
|
+
/// <reference types="../../../cypress/support" />
|
|
23
25
|
|
|
24
26
|
var Card = function Card() {
|
|
25
27
|
var _useState = (0, _react.useState)(false),
|
|
@@ -15,7 +15,9 @@ var _react2 = require("@emotion/react");
|
|
|
15
15
|
* Side Public License, v 1.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
/// <reference types="
|
|
18
|
+
/// <reference types="cypress" />
|
|
19
|
+
/// <reference types="cypress-real-events" />
|
|
20
|
+
/// <reference types="../../../cypress/support" />
|
|
19
21
|
|
|
20
22
|
var ColorPicker = function ColorPicker() {
|
|
21
23
|
var _useColorPickerState = (0, _services.useColorPickerState)('#D36086'),
|
|
@@ -16,7 +16,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
16
16
|
* Side Public License, v 1.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
/// <reference types="
|
|
19
|
+
/// <reference types="cypress" />
|
|
20
|
+
/// <reference types="cypress-real-events" />
|
|
21
|
+
/// <reference types="../../../cypress/support" />
|
|
20
22
|
|
|
21
23
|
var ComboBox = function ComboBox() {
|
|
22
24
|
var _useState = (0, _react.useState)([{
|
|
@@ -216,22 +216,6 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
216
216
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "clearSearchValue", function () {
|
|
217
217
|
_this.onSearchChange('');
|
|
218
218
|
});
|
|
219
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "removeLastOption", function () {
|
|
220
|
-
if (!_this.props.selectedOptions.length) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// Backspace will be used to delete the input, not a pill.
|
|
225
|
-
if (_this.state.searchValue.length) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// Delete last pill.
|
|
230
|
-
_this.onRemoveOption(_this.props.selectedOptions[_this.props.selectedOptions.length - 1]);
|
|
231
|
-
if (Boolean(_this.props.singleSelection) && !_this.state.isListOpen) {
|
|
232
|
-
_this.openList();
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
219
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "addCustomOption", function (isContainerBlur, searchValue) {
|
|
236
220
|
var _this$props = _this.props,
|
|
237
221
|
isCaseSensitive = _this$props.isCaseSensitive,
|
|
@@ -381,10 +365,6 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
381
365
|
_this.openList();
|
|
382
366
|
}
|
|
383
367
|
break;
|
|
384
|
-
case _services.keys.BACKSPACE:
|
|
385
|
-
event.stopPropagation();
|
|
386
|
-
_this.removeLastOption();
|
|
387
|
-
break;
|
|
388
368
|
case _services.keys.ESCAPE:
|
|
389
369
|
if (_this.state.isListOpen) {
|
|
390
370
|
event.preventDefault();
|
|
@@ -661,7 +641,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
661
641
|
// Visually indicate the combobox is in an invalid state if it has lost focus but there is text entered in the input.
|
|
662
642
|
// When custom options are disabled and the user leaves the combo box after entering text that does not match any
|
|
663
643
|
// options, this tells the user that they've entered invalid input.
|
|
664
|
-
var markAsInvalid = isInvalid || (hasFocus === false || isListOpen === false) && searchValue;
|
|
644
|
+
var markAsInvalid = !!(isInvalid || (hasFocus === false || isListOpen === false) && searchValue);
|
|
665
645
|
var classes = (0, _classnames.default)('euiComboBox', className, {
|
|
666
646
|
'euiComboBox--compressed': compressed,
|
|
667
647
|
'euiComboBox--fullWidth': fullWidth,
|
|
@@ -758,6 +738,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
758
738
|
append: singleSelection ? append : undefined,
|
|
759
739
|
prepend: singleSelection ? prepend : undefined,
|
|
760
740
|
isLoading: isLoading,
|
|
741
|
+
isInvalid: markAsInvalid,
|
|
761
742
|
autoFocus: autoFocus,
|
|
762
743
|
"aria-label": ariaLabel,
|
|
763
744
|
"aria-labelledby": ariaLabelledby
|
|
@@ -19,8 +19,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
var _reactInputAutosize = _interopRequireDefault(require("react-input-autosize"));
|
|
22
|
+
var _services = require("../../../services");
|
|
22
23
|
var _accessibility = require("../../accessibility");
|
|
23
24
|
var _form_control_layout = require("../../form/form_control_layout");
|
|
25
|
+
var _num_icons = require("../../form/form_control_layout/_num_icons");
|
|
24
26
|
var _combo_box_pill = require("./combo_box_pill");
|
|
25
27
|
var _react2 = require("@emotion/react");
|
|
26
28
|
var _excluded = ["key", "label", "color", "onClick"];
|
|
@@ -61,10 +63,29 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
61
63
|
hasFocus: false
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "
|
|
66
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onKeyDown", function (event) {
|
|
65
67
|
var _this$props = _this.props,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
searchValue = _this$props.searchValue,
|
|
69
|
+
selectedOptions = _this$props.selectedOptions,
|
|
70
|
+
onRemoveOption = _this$props.onRemoveOption,
|
|
71
|
+
singleSelection = _this$props.singleSelection,
|
|
72
|
+
isListOpen = _this$props.isListOpen,
|
|
73
|
+
onOpenListClick = _this$props.onOpenListClick;
|
|
74
|
+
|
|
75
|
+
// When backspacing from an empty input, delete the last pill option in the list
|
|
76
|
+
var searchIsEmpty = !searchValue.length;
|
|
77
|
+
var hasPills = selectedOptions.length;
|
|
78
|
+
if (event.key === _services.keys.BACKSPACE && searchIsEmpty && hasPills) {
|
|
79
|
+
onRemoveOption(selectedOptions[selectedOptions.length - 1]);
|
|
80
|
+
if (!!singleSelection && !isListOpen) {
|
|
81
|
+
onOpenListClick();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "inputOnChange", function (event) {
|
|
86
|
+
var _this$props2 = _this.props,
|
|
87
|
+
onChange = _this$props2.onChange,
|
|
88
|
+
searchValue = _this$props2.searchValue;
|
|
68
89
|
if (onChange) {
|
|
69
90
|
onChange(event.target.value);
|
|
70
91
|
}
|
|
@@ -91,34 +112,35 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
91
112
|
}, {
|
|
92
113
|
key: "render",
|
|
93
114
|
value: function render() {
|
|
94
|
-
var _this$
|
|
95
|
-
compressed = _this$
|
|
96
|
-
focusedOptionId = _this$
|
|
97
|
-
fullWidth = _this$
|
|
98
|
-
hasSelectedOptions = _this$
|
|
99
|
-
id = _this$
|
|
100
|
-
inputRef = _this$
|
|
101
|
-
isDisabled = _this$
|
|
102
|
-
isListOpen = _this$
|
|
103
|
-
noIcon = _this$
|
|
104
|
-
onClear = _this$
|
|
105
|
-
onClick = _this$
|
|
106
|
-
onCloseListClick = _this$
|
|
107
|
-
onOpenListClick = _this$
|
|
108
|
-
onRemoveOption = _this$
|
|
109
|
-
placeholder = _this$
|
|
110
|
-
rootId = _this$
|
|
111
|
-
searchValue = _this$
|
|
112
|
-
selectedOptions = _this$
|
|
113
|
-
singleSelectionProp = _this$
|
|
114
|
-
toggleButtonRef = _this$
|
|
115
|
-
value = _this$
|
|
116
|
-
prepend = _this$
|
|
117
|
-
append = _this$
|
|
118
|
-
isLoading = _this$
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
var _this$props3 = this.props,
|
|
116
|
+
compressed = _this$props3.compressed,
|
|
117
|
+
focusedOptionId = _this$props3.focusedOptionId,
|
|
118
|
+
fullWidth = _this$props3.fullWidth,
|
|
119
|
+
hasSelectedOptions = _this$props3.hasSelectedOptions,
|
|
120
|
+
id = _this$props3.id,
|
|
121
|
+
inputRef = _this$props3.inputRef,
|
|
122
|
+
isDisabled = _this$props3.isDisabled,
|
|
123
|
+
isListOpen = _this$props3.isListOpen,
|
|
124
|
+
noIcon = _this$props3.noIcon,
|
|
125
|
+
onClear = _this$props3.onClear,
|
|
126
|
+
onClick = _this$props3.onClick,
|
|
127
|
+
onCloseListClick = _this$props3.onCloseListClick,
|
|
128
|
+
onOpenListClick = _this$props3.onOpenListClick,
|
|
129
|
+
onRemoveOption = _this$props3.onRemoveOption,
|
|
130
|
+
placeholder = _this$props3.placeholder,
|
|
131
|
+
rootId = _this$props3.rootId,
|
|
132
|
+
searchValue = _this$props3.searchValue,
|
|
133
|
+
selectedOptions = _this$props3.selectedOptions,
|
|
134
|
+
singleSelectionProp = _this$props3.singleSelection,
|
|
135
|
+
toggleButtonRef = _this$props3.toggleButtonRef,
|
|
136
|
+
value = _this$props3.value,
|
|
137
|
+
prepend = _this$props3.prepend,
|
|
138
|
+
append = _this$props3.append,
|
|
139
|
+
isLoading = _this$props3.isLoading,
|
|
140
|
+
isInvalid = _this$props3.isInvalid,
|
|
141
|
+
autoFocus = _this$props3.autoFocus,
|
|
142
|
+
ariaLabel = _this$props3['aria-label'],
|
|
143
|
+
ariaLabelledby = _this$props3['aria-labelledby'];
|
|
122
144
|
var singleSelection = Boolean(singleSelectionProp);
|
|
123
145
|
var asPlainText = singleSelectionProp && (0, _typeof2.default)(singleSelectionProp) === 'object' && singleSelectionProp.asPlainText || false;
|
|
124
146
|
var pills = selectedOptions ? selectedOptions.map(function (option) {
|
|
@@ -180,12 +202,16 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
180
202
|
type: 'arrowDown'
|
|
181
203
|
};
|
|
182
204
|
}
|
|
183
|
-
var
|
|
205
|
+
var numIconsClass = (0, _num_icons.getFormControlClassNameForIconCount)({
|
|
206
|
+
isDropdown: !noIcon,
|
|
207
|
+
clear: !!clickProps.clear,
|
|
208
|
+
isInvalid: isInvalid,
|
|
209
|
+
isLoading: isLoading
|
|
210
|
+
});
|
|
211
|
+
var wrapClasses = (0, _classnames.default)('euiComboBox__inputWrap', numIconsClass, {
|
|
184
212
|
'euiComboBox__inputWrap--compressed': compressed,
|
|
185
213
|
'euiComboBox__inputWrap--fullWidth': fullWidth,
|
|
186
214
|
'euiComboBox__inputWrap--noWrap': singleSelection,
|
|
187
|
-
'euiComboBox__inputWrap-isLoading': isLoading,
|
|
188
|
-
'euiComboBox__inputWrap-isClearable': onClear,
|
|
189
215
|
'euiComboBox__inputWrap--inGroup': prepend || append
|
|
190
216
|
});
|
|
191
217
|
return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, (0, _extends2.default)({
|
|
@@ -193,6 +219,7 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
193
219
|
}, clickProps, {
|
|
194
220
|
inputId: id,
|
|
195
221
|
isLoading: isLoading,
|
|
222
|
+
isInvalid: isInvalid,
|
|
196
223
|
compressed: compressed,
|
|
197
224
|
fullWidth: fullWidth,
|
|
198
225
|
prepend: prepend,
|
|
@@ -209,6 +236,7 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
209
236
|
"aria-expanded": isListOpen,
|
|
210
237
|
"aria-label": ariaLabel,
|
|
211
238
|
"aria-labelledby": ariaLabelledby,
|
|
239
|
+
"aria-invalid": isInvalid,
|
|
212
240
|
className: "euiComboBox__input",
|
|
213
241
|
"data-test-subj": "comboBoxSearchInput",
|
|
214
242
|
disabled: isDisabled,
|
|
@@ -217,6 +245,7 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
217
245
|
onBlur: this.onBlur,
|
|
218
246
|
onChange: this.inputOnChange,
|
|
219
247
|
onFocus: this.onFocus,
|
|
248
|
+
onKeyDown: this.onKeyDown,
|
|
220
249
|
ref: this.inputRefCallback,
|
|
221
250
|
role: "combobox",
|
|
222
251
|
style: {
|
|
@@ -345,7 +345,7 @@ var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
345
345
|
hasShadow: false,
|
|
346
346
|
className: classes,
|
|
347
347
|
panelRef: this.listRefCallback,
|
|
348
|
-
"data-test-subj":
|
|
348
|
+
"data-test-subj": (0, _classnames.default)('comboBoxOptionsList', dataTestSubj),
|
|
349
349
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
350
350
|
zIndex: zIndex
|
|
351
351
|
}),
|
|
@@ -13,7 +13,9 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
* Side Public License, v 1.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
/// <reference types="
|
|
16
|
+
/// <reference types="cypress" />
|
|
17
|
+
/// <reference types="cypress-real-events" />
|
|
18
|
+
/// <reference types="../../../cypress/support" />
|
|
17
19
|
|
|
18
20
|
var items = [(0, _react2.jsx)(_context_menu_item.EuiContextMenuItem, {
|
|
19
21
|
key: "A",
|
|
@@ -19,7 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
19
|
* Side Public License, v 1.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
/// <reference types="
|
|
22
|
+
/// <reference types="cypress" />
|
|
23
|
+
/// <reference types="cypress-real-events" />
|
|
24
|
+
/// <reference types="../../../cypress/support" />
|
|
23
25
|
|
|
24
26
|
var ControlBar = function ControlBar() {
|
|
25
27
|
var _useState = (0, _react.useState)(false),
|
|
@@ -19,21 +19,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
19
|
* Side Public License, v 1.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
/// <reference types="
|
|
22
|
+
/// <reference types="cypress" />
|
|
23
|
+
/// <reference types="cypress-real-events" />
|
|
24
|
+
/// <reference types="../../../cypress/support" />
|
|
23
25
|
|
|
24
26
|
var Copy = function Copy() {
|
|
25
27
|
var _useState = (0, _react.useState)('I am the text that will be copied'),
|
|
26
28
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
27
29
|
copyText = _useState2[0],
|
|
28
30
|
setCopyText = _useState2[1];
|
|
29
|
-
var onChange = function onChange(e) {
|
|
30
|
-
setCopyText(e.target.value);
|
|
31
|
-
};
|
|
32
31
|
return (0, _react2.jsx)("div", null, (0, _react2.jsx)(_form.EuiFormRow, {
|
|
33
32
|
label: "Enter text that will be copied to clipboard"
|
|
34
33
|
}, (0, _react2.jsx)(_form.EuiFieldText, {
|
|
35
34
|
value: copyText,
|
|
36
|
-
onChange: onChange
|
|
35
|
+
onChange: function onChange(e) {
|
|
36
|
+
return setCopyText(e.target.value);
|
|
37
|
+
}
|
|
37
38
|
})), (0, _react2.jsx)(_spacer.EuiSpacer, {
|
|
38
39
|
size: "m"
|
|
39
40
|
}), (0, _react2.jsx)(_copy.EuiCopy, {
|
|
@@ -18,7 +18,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/// <reference types="
|
|
21
|
+
/// <reference types="cypress" />
|
|
22
|
+
/// <reference types="cypress-real-events" />
|
|
23
|
+
/// <reference types="../../../cypress/support" />
|
|
22
24
|
|
|
23
25
|
var columns = [{
|
|
24
26
|
id: 'Name'
|
|
@@ -18,7 +18,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/// <reference types="
|
|
21
|
+
/// <reference types="cypress" />
|
|
22
|
+
/// <reference types="cypress-real-events" />
|
|
23
|
+
/// <reference types="../../../cypress/support" />
|
|
22
24
|
|
|
23
25
|
var DatePicker = function DatePicker() {
|
|
24
26
|
var _useState = (0, _react.useState)((0, _moment.default)()),
|