@elastic/eui 67.1.6 → 67.1.7

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.
Files changed (97) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +0 -6
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +0 -6
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +4 -4
  8. package/es/components/basic_table/in_memory_table.js +16 -2
  9. package/es/components/breadcrumbs/breadcrumb.js +9 -5
  10. package/es/components/breadcrumbs/breadcrumbs.js +7 -4
  11. package/es/components/datagrid/controls/column_selector.js +1 -1
  12. package/es/components/datagrid/controls/column_sorting.js +1 -1
  13. package/es/components/header/header_links/header_links.js +6 -0
  14. package/es/components/modal/modal.js +17 -2
  15. package/es/components/page_template/page_template.js +6 -9
  16. package/es/components/popover/popover.js +13 -3
  17. package/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  18. package/es/components/popover/popover_panel/_popover_panel.js +8 -2
  19. package/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  20. package/es/components/search_bar/query/ast.js +14 -3
  21. package/es/components/search_bar/search_bar.js +39 -5
  22. package/es/components/search_bar/search_box.js +37 -4
  23. package/es/components/tour/tour.styles.js +4 -3
  24. package/es/components/tour/tour_step.js +13 -5
  25. package/eui.d.ts +41 -5
  26. package/lib/components/badge/beta_badge/beta_badge.js +4 -8
  27. package/lib/components/basic_table/in_memory_table.js +16 -2
  28. package/lib/components/breadcrumbs/breadcrumb.js +9 -5
  29. package/lib/components/breadcrumbs/breadcrumbs.js +7 -4
  30. package/lib/components/datagrid/controls/column_selector.js +1 -1
  31. package/lib/components/datagrid/controls/column_sorting.js +1 -1
  32. package/lib/components/header/header_links/header_links.js +6 -0
  33. package/lib/components/modal/modal.js +23 -2
  34. package/lib/components/page_template/page_template.js +6 -9
  35. package/lib/components/popover/popover.js +13 -3
  36. package/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  37. package/lib/components/popover/popover_panel/_popover_panel.js +8 -2
  38. package/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  39. package/lib/components/search_bar/query/ast.js +14 -3
  40. package/lib/components/search_bar/search_bar.js +40 -5
  41. package/lib/components/search_bar/search_box.js +38 -4
  42. package/lib/components/tour/tour.styles.js +3 -2
  43. package/lib/components/tour/tour_step.js +7 -5
  44. package/optimize/es/components/badge/beta_badge/beta_badge.js +4 -4
  45. package/optimize/es/components/basic_table/in_memory_table.js +1 -1
  46. package/optimize/es/components/breadcrumbs/breadcrumb.js +3 -2
  47. package/optimize/es/components/breadcrumbs/breadcrumbs.js +7 -4
  48. package/optimize/es/components/datagrid/controls/column_selector.js +1 -1
  49. package/optimize/es/components/datagrid/controls/column_sorting.js +1 -1
  50. package/optimize/es/components/modal/modal.js +17 -2
  51. package/optimize/es/components/page_template/page_template.js +6 -9
  52. package/optimize/es/components/popover/popover.js +7 -3
  53. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  54. package/optimize/es/components/popover/popover_panel/_popover_panel.js +6 -1
  55. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  56. package/optimize/es/components/search_bar/query/ast.js +14 -3
  57. package/optimize/es/components/search_bar/search_bar.js +31 -5
  58. package/optimize/es/components/search_bar/search_box.js +29 -3
  59. package/optimize/es/components/tour/tour.styles.js +4 -3
  60. package/optimize/es/components/tour/tour_step.js +7 -5
  61. package/optimize/lib/components/badge/beta_badge/beta_badge.js +4 -11
  62. package/optimize/lib/components/basic_table/in_memory_table.js +1 -1
  63. package/optimize/lib/components/breadcrumbs/breadcrumb.js +3 -2
  64. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +7 -4
  65. package/optimize/lib/components/datagrid/controls/column_selector.js +1 -1
  66. package/optimize/lib/components/datagrid/controls/column_sorting.js +1 -1
  67. package/optimize/lib/components/modal/modal.js +22 -2
  68. package/optimize/lib/components/page_template/page_template.js +6 -9
  69. package/optimize/lib/components/popover/popover.js +7 -3
  70. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  71. package/optimize/lib/components/popover/popover_panel/_popover_panel.js +6 -1
  72. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  73. package/optimize/lib/components/search_bar/query/ast.js +14 -3
  74. package/optimize/lib/components/search_bar/search_bar.js +31 -5
  75. package/optimize/lib/components/search_bar/search_box.js +30 -3
  76. package/optimize/lib/components/tour/tour.styles.js +3 -2
  77. package/optimize/lib/components/tour/tour_step.js +7 -5
  78. package/package.json +1 -1
  79. package/src/components/datagrid/controls/_data_grid_toolbar.scss +0 -8
  80. package/test-env/components/badge/beta_badge/beta_badge.js +4 -11
  81. package/test-env/components/basic_table/in_memory_table.js +16 -2
  82. package/test-env/components/breadcrumbs/breadcrumb.js +9 -5
  83. package/test-env/components/breadcrumbs/breadcrumbs.js +7 -4
  84. package/test-env/components/datagrid/controls/column_selector.js +1 -1
  85. package/test-env/components/datagrid/controls/column_sorting.js +1 -1
  86. package/test-env/components/header/header_links/header_links.js +6 -0
  87. package/test-env/components/modal/modal.js +22 -2
  88. package/test-env/components/page_template/page_template.js +6 -9
  89. package/test-env/components/popover/popover.js +13 -3
  90. package/test-env/components/popover/popover_arrow/_popover_arrow.js +1 -0
  91. package/test-env/components/popover/popover_panel/_popover_panel.js +8 -2
  92. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  93. package/test-env/components/search_bar/query/ast.js +14 -3
  94. package/test-env/components/search_bar/search_bar.js +39 -5
  95. package/test-env/components/search_bar/search_box.js +38 -4
  96. package/test-env/components/tour/tour.styles.js +3 -2
  97. package/test-env/components/tour/tour_step.js +7 -5
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { css } from '@emotion/react';
9
9
  import { shade, tint, COLOR_MODES_STANDARD } from '../../services';
10
- import { logicalCSS, mathWithUnits } from '../../global_styling';
10
+ import { logicalCSS, mathWithUnits, euiCanAnimate } from '../../global_styling';
11
11
  import { openAnimationTiming } from '../popover/popover_panel/_popover_panel.styles';
12
12
  import { popoverArrowSize } from '../popover/popover_arrow/_popover_arrow.styles';
13
13
 
@@ -20,7 +20,7 @@ export var euiTourStyles = function euiTourStyles(_ref) {
20
20
  colorMode = _ref.colorMode;
21
21
  return {
22
22
  // Targets EuiPopoverPanel
23
- euiTour: /*#__PURE__*/css("&[data-popover-open='true']{[class*='euiTourBeacon']{opacity:1;}}[data-popover-arrow='top']{&:before{", logicalCSS('border-top-color', backgroundColor(euiTheme.colors.lightestShade, colorMode)), ";}};label:euiTour;")
23
+ euiTour: /*#__PURE__*/css("[data-popover-arrow='top']::before{", logicalCSS('border-top-color', backgroundColor(euiTheme.colors.lightestShade, colorMode)), ";};label:euiTour;")
24
24
  };
25
25
  };
26
26
  export var euiTourBeaconStyles = function euiTourBeaconStyles(_ref2) {
@@ -34,7 +34,8 @@ export var euiTourBeaconStyles = function euiTourBeaconStyles(_ref2) {
34
34
  });
35
35
  return {
36
36
  // Base
37
- euiTourBeacon: /*#__PURE__*/css("pointer-events:none;position:absolute;opacity:0;transition:opacity 0s ", euiTheme.animation[openAnimationTiming], ";;label:euiTourBeacon;"),
37
+ euiTourBeacon: /*#__PURE__*/css("pointer-events:none;position:absolute;", euiCanAnimate, "{opacity:0;transition:opacity 0s ", euiTheme.animation[openAnimationTiming], ";};label:euiTourBeacon;"),
38
+ isOpen: /*#__PURE__*/css(euiCanAnimate, "{opacity:1;};label:isOpen;"),
38
39
  // Positions
39
40
  right: /*#__PURE__*/css(logicalCSS('top', arrowHalfSize), ";", logicalCSS('left', arrowOffset), ";;label:right;"),
40
41
  left: /*#__PURE__*/css(logicalCSS('top', arrowHalfSize), ";", logicalCSS('left', arrowSize), ";;label:left;"),
@@ -1,4 +1,4 @@
1
- var _excluded = ["anchorPosition", "anchor", "children", "className", "closePopover", "content", "isStepOpen", "minWidth", "maxWidth", "onFinish", "step", "stepsTotal", "style", "subtitle", "title", "decoration", "footerAction"];
1
+ var _excluded = ["anchorPosition", "anchor", "children", "className", "css", "closePopover", "content", "isStepOpen", "minWidth", "maxWidth", "onFinish", "step", "stepsTotal", "style", "subtitle", "title", "decoration", "footerAction", "panelProps"];
2
2
 
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
4
4
 
@@ -58,6 +58,7 @@ export var EuiTourStep = function EuiTourStep(_ref) {
58
58
  anchor = _ref.anchor,
59
59
  children = _ref.children,
60
60
  className = _ref.className,
61
+ css = _ref.css,
61
62
  _ref$closePopover = _ref.closePopover,
62
63
  closePopover = _ref$closePopover === void 0 ? function () {} : _ref$closePopover,
63
64
  content = _ref.content,
@@ -77,6 +78,7 @@ export var EuiTourStep = function EuiTourStep(_ref) {
77
78
  _ref$decoration = _ref.decoration,
78
79
  decoration = _ref$decoration === void 0 ? 'beacon' : _ref$decoration,
79
80
  footerAction = _ref.footerAction,
81
+ panelProps = _ref.panelProps,
80
82
  rest = _objectWithoutProperties(_ref, _excluded);
81
83
 
82
84
  var titleId = useGeneratedHtmlId();
@@ -120,7 +122,7 @@ export var EuiTourStep = function EuiTourStep(_ref) {
120
122
  var headerStyles = euiTourHeaderStyles(euiTheme);
121
123
  var footerStyles = euiTourFooterStyles(euiTheme);
122
124
  var beaconStyles = euiTourBeaconStyles(euiTheme);
123
- var beaconCss = [beaconStyles.euiTourBeacon, popoverPosition && beaconStyles[popoverPosition]];
125
+ var beaconCss = [beaconStyles.euiTourBeacon, isStepOpen && beaconStyles.isOpen, popoverPosition && beaconStyles[popoverPosition]];
124
126
  var finishButtonProps = {
125
127
  color: 'text',
126
128
  flush: 'right',
@@ -181,9 +183,9 @@ export var EuiTourStep = function EuiTourStep(_ref) {
181
183
  ownFocus: false,
182
184
  panelClassName: classes,
183
185
  panelStyle: style,
184
- panelProps: {
185
- css: tourStyles.euiTour
186
- },
186
+ panelProps: _objectSpread(_objectSpread({}, panelProps), {}, {
187
+ css: [tourStyles.euiTour, css, panelProps === null || panelProps === void 0 ? void 0 : panelProps.css]
188
+ }),
187
189
  offset: hasBeacon ? 10 : 0,
188
190
  'aria-labelledby': titleId,
189
191
  arrowChildren: hasBeacon && ___EmotionJSX(EuiBeacon, {
@@ -339,6 +341,12 @@ EuiTourStep.propTypes = {
339
341
  */
340
342
  repositionOnScroll: PropTypes.bool,
341
343
 
344
+ /**
345
+ * Must be set to true if using `EuiDragDropContext` within a popover,
346
+ * otherwise your nested drag & drop will have incorrect positioning
347
+ */
348
+ hasDragDrop: PropTypes.bool,
349
+
342
350
  /**
343
351
  * By default, popover content inherits the z-index of the anchor
344
352
  * component; pass `zIndex` to override
package/eui.d.ts CHANGED
@@ -4363,6 +4363,13 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
4363
4363
  left: import("@emotion/utils").SerializedStyles;
4364
4364
  right: import("@emotion/utils").SerializedStyles;
4365
4365
  };
4366
+ hasDragDrop: {
4367
+ hasDragDrop: import("@emotion/utils").SerializedStyles;
4368
+ top: import("@emotion/utils").SerializedStyles;
4369
+ bottom: import("@emotion/utils").SerializedStyles;
4370
+ left: import("@emotion/utils").SerializedStyles;
4371
+ right: import("@emotion/utils").SerializedStyles;
4372
+ };
4366
4373
  };
4367
4374
 
4368
4375
  }
@@ -4379,6 +4386,7 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
4379
4386
  isOpen?: boolean;
4380
4387
  isAttached?: boolean;
4381
4388
  position?: EuiPopoverArrowPositions | null;
4389
+ hasDragDrop?: boolean;
4382
4390
  };
4383
4391
  /**
4384
4392
  * *INTERNAL ONLY*
@@ -4499,6 +4507,11 @@ declare module '@elastic/eui/src/components/popover/popover' {
4499
4507
  * an `EuiPopover` in a scrollable container, `repositionOnScroll` should be `true`
4500
4508
  */
4501
4509
  repositionOnScroll?: boolean;
4510
+ /**
4511
+ * Must be set to true if using `EuiDragDropContext` within a popover,
4512
+ * otherwise your nested drag & drop will have incorrect positioning
4513
+ */
4514
+ hasDragDrop?: boolean;
4502
4515
  /**
4503
4516
  * By default, popover content inherits the z-index of the anchor
4504
4517
  * component; pass `zIndex` to override
@@ -8161,6 +8174,7 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
8161
8174
  isLastBreadcrumb?: boolean;
8162
8175
  isOnlyBreadcrumb?: boolean;
8163
8176
  highlightLastBreadcrumb?: boolean;
8177
+ truncateLastBreadcrumb?: boolean;
8164
8178
  } & Pick<EuiBreadcrumbProps, 'truncate'>;
8165
8179
  export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
8166
8180
  export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
@@ -16149,6 +16163,7 @@ declare module '@elastic/eui/src/components/tree_view' {
16149
16163
  declare module '@elastic/eui/src/components/search_bar/search_box' {
16150
16164
  import { Component } from 'react';
16151
16165
  import { EuiFieldSearchProps } from '@elastic/eui/src/components/form';
16166
+ import { EuiSearchBarProps } from '@elastic/eui/src/components/search_bar/search_bar';
16152
16167
  export interface SchemaType {
16153
16168
  strict?: boolean;
16154
16169
  fields?: any;
@@ -16157,6 +16172,11 @@ declare module '@elastic/eui/src/components/search_bar/search_box' {
16157
16172
  export interface EuiSearchBoxProps extends EuiFieldSearchProps {
16158
16173
  query: string;
16159
16174
  onSearch: (queryText: string) => void;
16175
+ hint?: {
16176
+ id: string;
16177
+ isVisible: boolean;
16178
+ setIsVisible: (isVisible: boolean) => void;
16179
+ } & EuiSearchBarProps['hint'];
16160
16180
  } type DefaultProps = Pick<EuiSearchBoxProps, 'placeholder' | 'incremental'>;
16161
16181
  export class EuiSearchBox extends Component<EuiSearchBoxProps> {
16162
16182
  static defaultProps: DefaultProps;
@@ -16303,7 +16323,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
16303
16323
  getFieldClauses(field?: string): FieldClause[];
16304
16324
  getFieldClause(field: string, predicate: (c: FieldClause) => boolean): FieldClause | undefined;
16305
16325
  hasOrFieldClause(field: string, value?: Value): boolean;
16306
- getOrFieldClause(field: string, value?: Value): FieldClause | undefined;
16326
+ getOrFieldClause(field: string, value?: Value, must?: boolean, operator?: OperatorType): FieldClause | undefined;
16307
16327
  addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): _AST;
16308
16328
  removeOrFieldValue(field: string, value: Value): _AST;
16309
16329
  removeOrFieldClauses(field: string): _AST;
@@ -17483,12 +17503,13 @@ declare module '@elastic/eui/src/components/search_bar/search_filters' {
17483
17503
 
17484
17504
  }
17485
17505
  declare module '@elastic/eui/src/components/search_bar/search_bar' {
17486
- import { Component, ReactElement } from 'react';
17506
+ import React, { Component, ReactElement } from 'react';
17487
17507
  import { SchemaType } from '@elastic/eui/src/components/search_bar/search_box';
17488
17508
  import { SearchFilterConfig } from '@elastic/eui/src/components/search_bar/search_filters';
17489
17509
  import { Query } from '@elastic/eui/src/components/search_bar/query';
17490
17510
  import { CommonProps } from '@elastic/eui/src/components/common';
17491
17511
  import { EuiFieldSearchProps } from '@elastic/eui/src/components/form/field_search';
17512
+ import { EuiInputPopoverProps } from '@elastic/eui/src/components/popover';
17492
17513
  export { Query, AST as Ast } from '@elastic/eui/src/components/search_bar/query';
17493
17514
  export type QueryType = Query | string; type Tools = ReactElement | ReactElement[];
17494
17515
  interface ArgsWithQuery {
@@ -17501,7 +17522,7 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
17501
17522
  queryText: string;
17502
17523
  error: Error;
17503
17524
  }
17504
- export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
17525
+ export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError; type HintPopOverProps = Partial<Pick<EuiInputPopoverProps, 'isOpen' | 'closePopover' | 'fullWidth' | 'disableFocusTrap' | 'panelClassName' | 'panelPaddingSize' | 'panelStyle' | 'panelProps' | 'popoverScreenReaderText' | 'repositionOnScroll' | 'zIndex' | 'data-test-subj'>>;
17505
17526
  export interface EuiSearchBarProps extends CommonProps {
17506
17527
  onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
17507
17528
  /**
@@ -17534,19 +17555,28 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
17534
17555
  * Date formatter to use when parsing date values
17535
17556
  */
17536
17557
  dateFormat?: object;
17558
+ /**
17559
+ * Hint to render below the search bar
17560
+ */
17561
+ hint?: {
17562
+ content: React.ReactNode;
17563
+ popoverProps?: HintPopOverProps;
17564
+ };
17537
17565
  }
17538
17566
  interface State {
17539
17567
  query: Query;
17540
17568
  queryText: string;
17541
17569
  error: null | Error;
17542
- } type StateWithOptionalQuery = Omit<State, 'query'> & {
17570
+ isHintVisible: boolean;
17571
+ } type NotifyControllingParent = Pick<State, 'queryText' | 'error'> & {
17543
17572
  query: Query | null;
17544
17573
  };
17545
17574
  export class EuiSearchBar extends Component<EuiSearchBarProps, State> {
17546
17575
  static Query: typeof Query;
17576
+ hintId: string;
17547
17577
  constructor(props: EuiSearchBarProps);
17548
17578
  static getDerivedStateFromProps(nextProps: EuiSearchBarProps, prevState: State): State | null;
17549
- notifyControllingParent(newState: StateWithOptionalQuery): void;
17579
+ notifyControllingParent(newState: NotifyControllingParent): void;
17550
17580
  onSearch: (queryText: string) => void;
17551
17581
  onFiltersChange: (query: Query) => void;
17552
17582
  renderTools(tools?: Tools): JSX.Element | JSX.Element[] | undefined;
@@ -18445,6 +18475,7 @@ declare module '@elastic/eui/src/components/tour/tour.styles' {
18445
18475
  };
18446
18476
  export const euiTourBeaconStyles: ({ euiTheme }: UseEuiTheme) => {
18447
18477
  euiTourBeacon: import("@emotion/utils").SerializedStyles;
18478
+ isOpen: import("@emotion/utils").SerializedStyles;
18448
18479
  right: import("@emotion/utils").SerializedStyles;
18449
18480
  left: import("@emotion/utils").SerializedStyles;
18450
18481
  top: import("@emotion/utils").SerializedStyles;
@@ -19183,6 +19214,11 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
19183
19214
  defaultFields?: string[];
19184
19215
  isClauseMatcher?: (...args: any) => boolean;
19185
19216
  explain?: boolean;
19217
+ /**
19218
+ * When the search bar Query is controlled and passed to the `search` prop it is by default executed against the items passed to the table to filter them out.
19219
+ * If the filtering is already done before passing the `items` to the table we can disable the execution by setting `enabled` to `false`.
19220
+ */
19221
+ enabled?: boolean;
19186
19222
  };
19187
19223
  /**
19188
19224
  * Insert content between the search bar and table components.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sizeToClassMap = exports.SIZES = exports.EuiBetaBadge = exports.COLORS = void 0;
7
7
 
8
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -25,10 +25,6 @@ var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPositi
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
28
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
-
30
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
-
32
28
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
33
29
 
34
30
  function _extends() { _extends = Object.assign || 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); }
@@ -130,7 +126,7 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
130
126
  anchorProps: anchorProps
131
127
  }, content);
132
128
  } else {
133
- return (0, _react2.jsx)(_react.Fragment, null, content);
129
+ return (0, _react2.jsx)("span", anchorProps, content);
134
130
  }
135
131
  } else {
136
132
  if (tooltipContent) {
@@ -151,10 +147,10 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
151
147
  console.warn("Only string titles are permitted on badges that do not use tooltips. Found: ".concat(_typeof(spanTitle)));
152
148
  }
153
149
 
154
- return (0, _react2.jsx)("span", _extends({
150
+ return (0, _react2.jsx)("span", anchorProps, (0, _react2.jsx)("span", _extends({
155
151
  className: classes,
156
152
  title: spanTitle
157
- }, rest), icon || label);
153
+ }, rest), icon || label));
158
154
  }
159
155
  }
160
156
  };
@@ -414,7 +414,7 @@ var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
414
414
  sortName = _this$state2.sortName,
415
415
  pageIndex = _this$state2.pageIndex,
416
416
  pageSize = _this$state2.pageSize;
417
- var matchingItems = query ? _search_bar.EuiSearchBar.Query.execute(query, items, executeQueryOptions) : items;
417
+ var matchingItems = query !== null && (executeQueryOptions === null || executeQueryOptions === void 0 ? void 0 : executeQueryOptions.enabled) !== false ? _search_bar.EuiSearchBar.Query.execute(query, items, executeQueryOptions) : items;
418
418
  var sortedItems = sortName ? matchingItems.slice(0) // avoid mutating the source array
419
419
  .sort(this.getItemSorter()) // sort, causes mutation
420
420
  : matchingItems;
@@ -1149,6 +1149,14 @@ EuiInMemoryTable.propTypes = {
1149
1149
  * Date formatter to use when parsing date values
1150
1150
  */
1151
1151
  dateFormat: _propTypes.default.any,
1152
+
1153
+ /**
1154
+ * Hint to render below the search bar
1155
+ */
1156
+ hint: _propTypes.default.shape({
1157
+ content: _propTypes.default.node.isRequired,
1158
+ popoverProps: _propTypes.default.any
1159
+ }),
1152
1160
  className: _propTypes.default.string,
1153
1161
  "aria-label": _propTypes.default.string,
1154
1162
  "data-test-subj": _propTypes.default.string,
@@ -1213,7 +1221,13 @@ EuiInMemoryTable.propTypes = {
1213
1221
  executeQueryOptions: _propTypes.default.shape({
1214
1222
  defaultFields: _propTypes.default.arrayOf(_propTypes.default.string.isRequired),
1215
1223
  isClauseMatcher: _propTypes.default.func,
1216
- explain: _propTypes.default.bool
1224
+ explain: _propTypes.default.bool,
1225
+
1226
+ /**
1227
+ * When the search bar Query is controlled and passed to the `search` prop it is by default executed against the items passed to the table to filter them out.
1228
+ * If the filtering is already done before passing the `items` to the table we can disable the execution by setting `enabled` to `false`.
1229
+ */
1230
+ enabled: _propTypes.default.bool
1217
1231
  }),
1218
1232
 
1219
1233
  /**
@@ -32,7 +32,7 @@ var _breadcrumb = require("./breadcrumb.styles");
32
32
  var _react2 = require("@emotion/react");
33
33
 
34
34
  var _excluded = ["children", "className", "type", "truncate"],
35
- _excluded2 = ["text", "truncate", "type", "href", "rel", "onClick", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb"];
35
+ _excluded2 = ["text", "truncate", "type", "href", "rel", "onClick", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb", "truncateLastBreadcrumb"];
36
36
 
37
37
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38
38
 
@@ -81,7 +81,8 @@ EuiBreadcrumb.propTypes = {
81
81
  isFirstBreadcrumb: _propTypes.default.bool,
82
82
  isLastBreadcrumb: _propTypes.default.bool,
83
83
  isOnlyBreadcrumb: _propTypes.default.bool,
84
- highlightLastBreadcrumb: _propTypes.default.bool
84
+ highlightLastBreadcrumb: _propTypes.default.bool,
85
+ truncateLastBreadcrumb: _propTypes.default.bool
85
86
  };
86
87
 
87
88
  var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref2) {
@@ -97,12 +98,13 @@ var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref2) {
97
98
  isLastBreadcrumb = _ref2.isLastBreadcrumb,
98
99
  isOnlyBreadcrumb = _ref2.isOnlyBreadcrumb,
99
100
  highlightLastBreadcrumb = _ref2.highlightLastBreadcrumb,
101
+ truncateLastBreadcrumb = _ref2.truncateLastBreadcrumb,
100
102
  rest = _objectWithoutProperties(_ref2, _excluded2);
101
103
 
102
104
  var classes = (0, _classnames.default)('euiBreadcrumb__content', className);
103
105
  var euiTheme = (0, _services.useEuiTheme)();
104
106
  var styles = (0, _breadcrumb.euiBreadcrumbContentStyles)(euiTheme);
105
- var cssStyles = [styles.euiBreadcrumb__content, styles[type], truncate && (isLastBreadcrumb ? styles.isTruncatedLast : styles.isTruncated)];
107
+ var cssStyles = [styles.euiBreadcrumb__content, styles[type], truncate && !truncateLastBreadcrumb && styles.isTruncated, truncateLastBreadcrumb && styles.isTruncatedLast];
106
108
 
107
109
  if (type === 'application') {
108
110
  if (isOnlyBreadcrumb) {
@@ -173,7 +175,8 @@ EuiBreadcrumbContent.propTypes = {
173
175
  isFirstBreadcrumb: _propTypes.default.bool,
174
176
  isLastBreadcrumb: _propTypes.default.bool,
175
177
  isOnlyBreadcrumb: _propTypes.default.bool,
176
- highlightLastBreadcrumb: _propTypes.default.bool
178
+ highlightLastBreadcrumb: _propTypes.default.bool,
179
+ truncateLastBreadcrumb: _propTypes.default.bool
177
180
  };
178
181
 
179
182
  var EuiBreadcrumbCollapsed = function EuiBreadcrumbCollapsed(_ref3) {
@@ -222,5 +225,6 @@ EuiBreadcrumbCollapsed.propTypes = {
222
225
  isFirstBreadcrumb: _propTypes.default.bool,
223
226
  isLastBreadcrumb: _propTypes.default.bool,
224
227
  isOnlyBreadcrumb: _propTypes.default.bool,
225
- highlightLastBreadcrumb: _propTypes.default.bool
228
+ highlightLastBreadcrumb: _propTypes.default.bool,
229
+ truncateLastBreadcrumb: _propTypes.default.bool
226
230
  };
@@ -69,12 +69,14 @@ var EuiBreadcrumbs = function EuiBreadcrumbs(_ref) {
69
69
  }, [breadcrumbs, responsiveMax]);
70
70
  var breadcrumbChildren = (0, _react.useMemo)(function () {
71
71
  return visibleBreadcrumbs.map(function (breadcrumb, index) {
72
+ var _breadcrumb$truncate;
73
+
72
74
  var isFirstBreadcrumb = index === 0;
73
75
  var isLastBreadcrumb = index === visibleBreadcrumbs.length - 1;
74
76
  var isOnlyBreadcrumb = visibleBreadcrumbs.length === 1;
75
77
  var sharedProps = {
76
78
  type: type,
77
- truncate: truncate
79
+ truncate: (_breadcrumb$truncate = breadcrumb.truncate) !== null && _breadcrumb$truncate !== void 0 ? _breadcrumb$truncate : truncate
78
80
  };
79
81
  return breadcrumb.isCollapsedButton ? (0, _react2.jsx)(_breadcrumb.EuiBreadcrumbCollapsed, _extends({
80
82
  key: "collapsed"
@@ -88,12 +90,13 @@ var EuiBreadcrumbs = function EuiBreadcrumbs(_ref) {
88
90
  max: 0
89
91
  })) : (0, _react2.jsx)(_breadcrumb.EuiBreadcrumb, _extends({
90
92
  key: index
91
- }, sharedProps), (0, _react2.jsx)(_breadcrumb.EuiBreadcrumbContent, _extends({
93
+ }, sharedProps), (0, _react2.jsx)(_breadcrumb.EuiBreadcrumbContent, _extends({}, breadcrumb, sharedProps, {
92
94
  isFirstBreadcrumb: isFirstBreadcrumb,
93
95
  isLastBreadcrumb: isLastBreadcrumb,
94
96
  isOnlyBreadcrumb: isOnlyBreadcrumb,
95
- highlightLastBreadcrumb: isLastBreadcrumb && lastBreadcrumbIsCurrentPage
96
- }, sharedProps, breadcrumb)));
97
+ highlightLastBreadcrumb: isLastBreadcrumb && lastBreadcrumbIsCurrentPage,
98
+ truncateLastBreadcrumb: isLastBreadcrumb && truncate && breadcrumb.truncate == null
99
+ })));
97
100
  });
98
101
  }, [visibleBreadcrumbs, truncate, type, lastBreadcrumbIsCurrentPage]);
99
102
  return (0, _react2.jsx)("nav", _extends({
@@ -147,7 +147,7 @@ var useDataGridColumnSelector = function useDataGridColumnSelector(availableColu
147
147
  },
148
148
  anchorPosition: "downLeft",
149
149
  panelPaddingSize: "s",
150
- panelClassName: "euiDataGrid__controlPopoverWithDragDrop",
150
+ hasDragDrop: true,
151
151
  button: (0, _react2.jsx)(_button.EuiButtonEmpty, {
152
152
  size: "xs",
153
153
  iconType: allowColumnHiding ? 'listAdd' : 'list',
@@ -159,7 +159,7 @@ var useDataGridColumnSorting = function useDataGridColumnSorting(columns, sortin
159
159
  },
160
160
  anchorPosition: "downLeft",
161
161
  panelPaddingSize: "s",
162
- panelClassName: "euiDataGrid__controlPopoverWithDragDrop",
162
+ hasDragDrop: true,
163
163
  button: (0, _react2.jsx)(_button.EuiButtonEmpty, {
164
164
  size: "xs",
165
165
  iconType: "sortable",
@@ -272,6 +272,12 @@ EuiHeaderLinks.propTypes = {
272
272
  */
273
273
  repositionOnScroll: _propTypes.default.bool,
274
274
 
275
+ /**
276
+ * Must be set to true if using `EuiDragDropContext` within a popover,
277
+ * otherwise your nested drag & drop will have incorrect positioning
278
+ */
279
+ hasDragDrop: _propTypes.default.bool,
280
+
275
281
  /**
276
282
  * By default, popover content inherits the z-index of the anchor
277
283
  * component; pass `zIndex` to override
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.EuiModal = void 0;
7
9
 
8
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
9
11
 
10
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
13
 
@@ -27,6 +29,10 @@ var _excluded = ["className", "children", "initialFocus", "onClose", "maxWidth",
27
29
 
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
31
 
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+
30
36
  function _extends() { _extends = Object.assign || 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); }
31
37
 
32
38
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -49,6 +55,19 @@ var EuiModal = function EuiModal(_ref) {
49
55
  style = _ref.style,
50
56
  rest = _objectWithoutProperties(_ref, _excluded);
51
57
 
58
+ // TODO: Remove this onFocus scroll workaround after react-focus-on supports focusOptions
59
+ // @see https://github.com/elastic/eui/issues/6304
60
+ var bodyScrollTop = (0, _react.useRef)(typeof window === 'undefined' ? undefined : window.scrollY // Account for SSR
61
+ );
62
+ var onFocus = (0, _react.useCallback)(function () {
63
+ if (bodyScrollTop.current != null) {
64
+ window.scrollTo({
65
+ top: bodyScrollTop.current
66
+ });
67
+ bodyScrollTop.current = undefined; // Unset after first auto focus
68
+ }
69
+ }, []);
70
+
52
71
  var onKeyDown = function onKeyDown(event) {
53
72
  if (event.key === _services.keys.ESCAPE) {
54
73
  event.preventDefault();
@@ -71,11 +90,13 @@ var EuiModal = function EuiModal(_ref) {
71
90
 
72
91
  var classes = (0, _classnames.default)('euiModal', widthClassName, className);
73
92
  return (0, _react2.jsx)(_overlay_mask.EuiOverlayMask, null, (0, _react2.jsx)(_focus_trap.EuiFocusTrap, {
74
- initialFocus: initialFocus
93
+ initialFocus: initialFocus,
94
+ scrollLock: true
75
95
  }, (0, _react2.jsx)("div", _extends({
76
96
  className: classes,
77
97
  onKeyDown: onKeyDown,
78
98
  tabIndex: 0,
99
+ onFocus: onFocus,
79
100
  style: newStyle || style
80
101
  }, rest), (0, _react2.jsx)(_i18n.EuiI18n, {
81
102
  token: "euiModal.closeModal",
@@ -169,15 +169,12 @@ var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
169
169
  _react.default.Children.toArray(children).forEach(function (child, index) {
170
170
  if (! /*#__PURE__*/_react.default.isValidElement(child)) return; // Skip non-components
171
171
 
172
- switch (child.type) {
173
- case _page.EuiPageSidebar:
174
- sidebar.push( /*#__PURE__*/_react.default.cloneElement(child, _objectSpread(_objectSpread({
175
- key: "sidebar".concat(index)
176
- }, getSideBarProps()), child.props)));
177
- break;
178
-
179
- default:
180
- sections.push(child);
172
+ if (child.type === _page.EuiPageSidebar || child.props.__EMOTION_TYPE_PLEASE_DO_NOT_USE__ === _page.EuiPageSidebar) {
173
+ sidebar.push( /*#__PURE__*/_react.default.cloneElement(child, _objectSpread(_objectSpread({
174
+ key: "sidebar".concat(index)
175
+ }, getSideBarProps()), child.props)));
176
+ } else {
177
+ sections.push(child);
181
178
  }
182
179
  });
183
180
 
@@ -42,7 +42,7 @@ var _popover2 = require("./popover.styles");
42
42
 
43
43
  var _popover_panel = require("./popover_panel");
44
44
 
45
- var _excluded = ["anchorClassName", "anchorPosition", "button", "buttonRef", "insert", "isOpen", "ownFocus", "children", "className", "closePopover", "panelClassName", "panelPaddingSize", "panelProps", "panelRef", "panelStyle", "popoverScreenReaderText", "popoverRef", "hasArrow", "arrowChildren", "repositionOnScroll", "zIndex", "attachToAnchor", "display", "offset", "onPositionChange", "onTrapDeactivation", "buffer", "aria-label", "aria-labelledby", "container", "focusTrapProps", "initialFocus", "tabIndex"];
45
+ var _excluded = ["anchorClassName", "anchorPosition", "button", "buttonRef", "insert", "isOpen", "ownFocus", "children", "className", "closePopover", "panelClassName", "panelPaddingSize", "panelProps", "panelRef", "panelStyle", "popoverScreenReaderText", "popoverRef", "hasArrow", "arrowChildren", "repositionOnScroll", "hasDragDrop", "zIndex", "attachToAnchor", "display", "offset", "onPositionChange", "onTrapDeactivation", "buffer", "aria-label", "aria-labelledby", "container", "focusTrapProps", "initialFocus", "tabIndex"];
46
46
 
47
47
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
48
48
 
@@ -446,7 +446,8 @@ var EuiPopover = /*#__PURE__*/function (_Component) {
446
446
  }, {
447
447
  key: "render",
448
448
  value: function render() {
449
- var _this4 = this;
449
+ var _panelProps$tabIndex,
450
+ _this4 = this;
450
451
 
451
452
  var _this$props = this.props,
452
453
  anchorClassName = _this$props.anchorClassName,
@@ -469,6 +470,7 @@ var EuiPopover = /*#__PURE__*/function (_Component) {
469
470
  hasArrow = _this$props.hasArrow,
470
471
  arrowChildren = _this$props.arrowChildren,
471
472
  repositionOnScroll = _this$props.repositionOnScroll,
473
+ hasDragDrop = _this$props.hasDragDrop,
472
474
  zIndex = _this$props.zIndex,
473
475
  attachToAnchor = _this$props.attachToAnchor,
474
476
  display = _this$props.display,
@@ -481,9 +483,10 @@ var EuiPopover = /*#__PURE__*/function (_Component) {
481
483
  container = _this$props.container,
482
484
  focusTrapProps = _this$props.focusTrapProps,
483
485
  initialFocusProp = _this$props.initialFocus,
484
- tabIndexProp = _this$props.tabIndex,
486
+ _tabIndexProp = _this$props.tabIndex,
485
487
  rest = _objectWithoutProperties(_this$props, _excluded);
486
488
 
489
+ var tabIndexProp = (_panelProps$tabIndex = panelProps === null || panelProps === void 0 ? void 0 : panelProps.tabIndex) !== null && _panelProps$tabIndex !== void 0 ? _panelProps$tabIndex : _tabIndexProp;
487
490
  var styles = (0, _popover2.euiPopoverStyles)();
488
491
  var popoverStyles = [styles.euiPopover, {
489
492
  display: display
@@ -547,6 +550,7 @@ var EuiPopover = /*#__PURE__*/function (_Component) {
547
550
  position: this.state.arrowPosition,
548
551
  isAttached: attachToAnchor,
549
552
  className: (0, _classnames.default)(panelClassName, panelProps === null || panelProps === void 0 ? void 0 : panelProps.className),
553
+ hasDragDrop: hasDragDrop,
550
554
  hasShadow: false,
551
555
  paddingSize: panelPaddingSize,
552
556
  tabIndex: tabIndex,
@@ -767,6 +771,12 @@ EuiPopover.propTypes = {
767
771
  */
768
772
  repositionOnScroll: _propTypes.default.bool,
769
773
 
774
+ /**
775
+ * Must be set to true if using `EuiDragDropContext` within a popover,
776
+ * otherwise your nested drag & drop will have incorrect positioning
777
+ */
778
+ hasDragDrop: _propTypes.default.bool,
779
+
770
780
  /**
771
781
  * By default, popover content inherits the z-index of the anchor
772
782
  * component; pass `zIndex` to override
@@ -37,6 +37,7 @@ var EuiPopoverArrow = function EuiPopoverArrow(_ref) {
37
37
  var styles = (0, _popover_arrow.euiPopoverArrowStyles)(euiTheme);
38
38
  var cssStyles = [styles.euiPopoverArrow, styles[position]];
39
39
  return (0, _react2.jsx)("div", _extends({
40
+ className: "euiPopover__arrow",
40
41
  "data-popover-arrow": position,
41
42
  css: cssStyles
42
43
  }, rest), children);
@@ -21,7 +21,7 @@ var _popover_panel = require("./_popover_panel.styles");
21
21
 
22
22
  var _react2 = require("@emotion/react");
23
23
 
24
- var _excluded = ["children", "className", "isOpen", "isAttached", "position"];
24
+ var _excluded = ["children", "className", "isOpen", "isAttached", "hasDragDrop", "position"];
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
@@ -61,6 +61,7 @@ var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
61
61
  className = _ref.className,
62
62
  isOpen = _ref.isOpen,
63
63
  isAttached = _ref.isAttached,
64
+ hasDragDrop = _ref.hasDragDrop,
64
65
  position = _ref.position,
65
66
  rest = _objectWithoutProperties(_ref, _excluded);
66
67
 
@@ -76,6 +77,10 @@ var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
76
77
  panelCSS = [].concat(_toConsumableArray(panelCSS), [isOpen && styles.attached.isOpen, position && styles.attached[position]]);
77
78
  }
78
79
 
80
+ if (hasDragDrop) {
81
+ panelCSS = [].concat(_toConsumableArray(panelCSS), [styles.hasDragDrop.hasDragDrop, position && styles.hasDragDrop[position]]);
82
+ }
83
+
79
84
  return (0, _react2.jsx)(EuiPopoverPanelContext.Provider, {
80
85
  value: panelContext
81
86
  }, (0, _react2.jsx)(_panel.EuiPanel, _extends({
@@ -129,5 +134,6 @@ EuiPopoverPanel.propTypes = {
129
134
  css: _propTypes.default.any,
130
135
  isOpen: _propTypes.default.bool,
131
136
  isAttached: _propTypes.default.bool,
132
- position: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([null])])
137
+ position: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([null])]),
138
+ hasDragDrop: _propTypes.default.bool
133
139
  };