@elastic/eui 83.1.0 → 84.0.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.
Files changed (52) hide show
  1. package/dist/eui_theme_dark.css +4 -3
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +4 -3
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accordion/accordion.js +4 -14
  6. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  7. package/es/components/focus_trap/focus_trap.js +1 -0
  8. package/es/components/form/range/dual_range.js +86 -30
  9. package/es/components/link/link.styles.js +2 -2
  10. package/es/components/resizable_container/resizable_collapse_button.js +2 -2
  11. package/es/components/search_bar/index.js +2 -1
  12. package/es/components/search_bar/search_bar.js +2 -2
  13. package/es/components/search_bar/search_filters.js +9 -9
  14. package/eui.d.ts +28 -33
  15. package/i18ntokens.json +8 -8
  16. package/lib/components/accordion/accordion.js +4 -14
  17. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  18. package/lib/components/focus_trap/focus_trap.js +1 -0
  19. package/lib/components/form/range/dual_range.js +86 -30
  20. package/lib/components/link/link.styles.js +2 -2
  21. package/lib/components/resizable_container/resizable_collapse_button.js +2 -2
  22. package/lib/components/search_bar/index.js +8 -1
  23. package/lib/components/search_bar/search_bar.js +1 -1
  24. package/lib/components/search_bar/search_filters.js +11 -11
  25. package/optimize/es/components/accordion/accordion.js +3 -13
  26. package/optimize/es/components/focus_trap/focus_trap.js +1 -0
  27. package/optimize/es/components/form/range/dual_range.js +86 -30
  28. package/optimize/es/components/link/link.styles.js +2 -2
  29. package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -2
  30. package/optimize/es/components/search_bar/index.js +2 -1
  31. package/optimize/es/components/search_bar/search_bar.js +2 -2
  32. package/optimize/es/components/search_bar/search_filters.js +8 -8
  33. package/optimize/lib/components/accordion/accordion.js +3 -13
  34. package/optimize/lib/components/focus_trap/focus_trap.js +1 -0
  35. package/optimize/lib/components/form/range/dual_range.js +86 -30
  36. package/optimize/lib/components/link/link.styles.js +2 -2
  37. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +2 -2
  38. package/optimize/lib/components/search_bar/index.js +8 -1
  39. package/optimize/lib/components/search_bar/search_bar.js +1 -1
  40. package/optimize/lib/components/search_bar/search_filters.js +10 -10
  41. package/package.json +5 -4
  42. package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +4 -0
  43. package/src/components/filter_group/_filter_group.scss +0 -4
  44. package/src/components/resizable_container/_resizable_collapse_button.scss +1 -0
  45. package/test-env/components/accordion/accordion.js +4 -14
  46. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  47. package/test-env/components/form/range/dual_range.js +86 -30
  48. package/test-env/components/link/link.styles.js +2 -2
  49. package/test-env/components/resizable_container/resizable_collapse_button.js +2 -2
  50. package/test-env/components/search_bar/index.js +8 -1
  51. package/test-env/components/search_bar/search_bar.js +1 -1
  52. package/test-env/components/search_bar/search_filters.js +11 -11
@@ -382,9 +382,9 @@ var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
382
382
  tickInterval = _this$props.tickInterval,
383
383
  ticks = _this$props.ticks,
384
384
  levels = _this$props.levels,
385
- onBlur = _this$props.onBlur,
385
+ _onBlur = _this$props.onBlur,
386
386
  onChange = _this$props.onChange,
387
- onFocus = _this$props.onFocus,
387
+ _onFocus = _this$props.onFocus,
388
388
  showRange = _this$props.showRange,
389
389
  value = _this$props.value,
390
390
  isInvalid = _this$props.isInvalid,
@@ -405,57 +405,113 @@ var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
405
405
  // Overridable props
406
406
  , _extends({
407
407
  "aria-describedby": this.props['aria-describedby'],
408
- "aria-label": this.props['aria-label']
408
+ "aria-label": this.props['aria-label'],
409
+ disabled: disabled,
410
+ isInvalid: isInvalid,
411
+ name: "".concat(name, "-minValue"),
412
+ value: this.lowerValue,
413
+ readOnly: readOnly
409
414
  }, minInputProps, {
410
415
  // Non-overridable props
411
416
  side: "min",
412
417
  min: min,
413
418
  max: Number(this.upperValue),
414
419
  step: step,
415
- value: this.lowerValue,
416
- disabled: disabled,
417
420
  compressed: compressed,
418
- onChange: this.handleLowerInputChange,
419
- onKeyDown: this.handleInputKeyDown,
420
- name: "".concat(name, "-minValue"),
421
- onFocus: canShowDropdown ? this.onInputFocus : onFocus,
422
- onBlur: canShowDropdown ? this.onInputBlur : onBlur,
423
- readOnly: readOnly,
424
421
  autoSize: !showInputOnly,
425
422
  fullWidth: !!showInputOnly && fullWidth,
426
- isInvalid: isInvalid,
427
423
  controlOnly: showInputOnly,
428
- onMouseDown: showInputOnly ? function () {
429
- return _this2.preventPopoverClose = true;
430
- } : undefined
424
+ onChange: function onChange(event) {
425
+ var _minInputProps$onChan;
426
+ _this2.handleLowerInputChange(event);
427
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onChan = minInputProps.onChange) === null || _minInputProps$onChan === void 0 ? void 0 : _minInputProps$onChan.call(minInputProps, event);
428
+ },
429
+ onKeyDown: function onKeyDown(event) {
430
+ var _minInputProps$onKeyD;
431
+ _this2.handleInputKeyDown(event);
432
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onKeyD = minInputProps.onKeyDown) === null || _minInputProps$onKeyD === void 0 ? void 0 : _minInputProps$onKeyD.call(minInputProps, event);
433
+ },
434
+ onFocus: function onFocus(event) {
435
+ var _minInputProps$onFocu;
436
+ if (canShowDropdown) {
437
+ _this2.onInputFocus(event);
438
+ } else {
439
+ _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(event);
440
+ }
441
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onFocu = minInputProps.onFocus) === null || _minInputProps$onFocu === void 0 ? void 0 : _minInputProps$onFocu.call(minInputProps, event);
442
+ },
443
+ onBlur: function onBlur(event) {
444
+ var _minInputProps$onBlur;
445
+ if (canShowDropdown) {
446
+ _this2.onInputBlur(event);
447
+ } else {
448
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(event);
449
+ }
450
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onBlur = minInputProps.onBlur) === null || _minInputProps$onBlur === void 0 ? void 0 : _minInputProps$onBlur.call(minInputProps, event);
451
+ },
452
+ onMouseDown: function onMouseDown(event) {
453
+ var _minInputProps$onMous;
454
+ if (showInputOnly) {
455
+ _this2.preventPopoverClose = true;
456
+ }
457
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onMous = minInputProps.onMouseDown) === null || _minInputProps$onMous === void 0 ? void 0 : _minInputProps$onMous.call(minInputProps, event);
458
+ }
431
459
  })) : undefined;
432
460
  var maxInput = !!showInput ? (0, _react2.jsx)(_range_input.EuiRangeInput
433
461
  // Overridable props
434
462
  , _extends({
435
463
  "aria-describedby": this.props['aria-describedby'],
436
- "aria-label": this.props['aria-label']
464
+ "aria-label": this.props['aria-label'],
465
+ disabled: disabled,
466
+ isInvalid: isInvalid,
467
+ name: "".concat(name, "-maxValue"),
468
+ value: this.upperValue,
469
+ readOnly: readOnly
437
470
  }, maxInputProps, {
438
471
  // Non-overridable props
439
472
  side: "max",
440
473
  min: Number(this.lowerValue),
441
474
  max: max,
442
475
  step: step,
443
- value: this.upperValue,
444
- disabled: disabled,
445
476
  compressed: compressed,
446
- onChange: this.handleUpperInputChange,
447
- onKeyDown: this.handleInputKeyDown,
448
- name: "".concat(name, "-maxValue"),
449
- onFocus: canShowDropdown ? this.onInputFocus : onFocus,
450
- onBlur: canShowDropdown ? this.onInputBlur : onBlur,
451
- readOnly: readOnly,
452
477
  autoSize: !showInputOnly,
453
478
  fullWidth: !!showInputOnly && fullWidth,
454
479
  controlOnly: showInputOnly,
455
- isInvalid: isInvalid,
456
- onMouseDown: showInputOnly ? function () {
457
- return _this2.preventPopoverClose = true;
458
- } : undefined
480
+ onChange: function onChange(event) {
481
+ var _maxInputProps$onChan;
482
+ _this2.handleUpperInputChange(event);
483
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onChan = maxInputProps.onChange) === null || _maxInputProps$onChan === void 0 ? void 0 : _maxInputProps$onChan.call(maxInputProps, event);
484
+ },
485
+ onKeyDown: function onKeyDown(event) {
486
+ var _maxInputProps$onKeyD;
487
+ _this2.handleInputKeyDown(event);
488
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onKeyD = maxInputProps.onKeyDown) === null || _maxInputProps$onKeyD === void 0 ? void 0 : _maxInputProps$onKeyD.call(maxInputProps, event);
489
+ },
490
+ onFocus: function onFocus(event) {
491
+ var _maxInputProps$onFocu;
492
+ if (canShowDropdown) {
493
+ _this2.onInputFocus(event);
494
+ } else {
495
+ _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(event);
496
+ }
497
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onFocu = maxInputProps.onFocus) === null || _maxInputProps$onFocu === void 0 ? void 0 : _maxInputProps$onFocu.call(maxInputProps, event);
498
+ },
499
+ onBlur: function onBlur(event) {
500
+ var _maxInputProps$onBlur;
501
+ if (canShowDropdown) {
502
+ _this2.onInputBlur(event);
503
+ } else {
504
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(event);
505
+ }
506
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onBlur = maxInputProps.onBlur) === null || _maxInputProps$onBlur === void 0 ? void 0 : _maxInputProps$onBlur.call(maxInputProps, event);
507
+ },
508
+ onMouseDown: function onMouseDown(event) {
509
+ var _maxInputProps$onMous;
510
+ if (showInputOnly) {
511
+ _this2.preventPopoverClose = true;
512
+ }
513
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onMous = maxInputProps.onMouseDown) === null || _maxInputProps$onMous === void 0 ? void 0 : _maxInputProps$onMous.call(maxInputProps, event);
514
+ }
459
515
  })) : undefined;
460
516
  var classes = (0, _classnames.default)('euiDualRange', className);
461
517
  var dualRangeStyles = (0, _dual_range.euiDualRangeStyles)();
@@ -519,8 +575,8 @@ var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
519
575
  "aria-hidden": true,
520
576
  tabIndex: -1,
521
577
  showRange: showRange,
522
- onFocus: onFocus,
523
- onBlur: onBlur
578
+ onFocus: _onFocus,
579
+ onBlur: _onBlur
524
580
  }, rest)), _this2.state.rangeSliderRefAvailable && (0, _react2.jsx)(_react.default.Fragment, null, isDraggable && _this2.isValid && (0, _react2.jsx)(_range_draggable.EuiRangeDraggable, {
525
581
  min: min,
526
582
  max: max,
@@ -14,14 +14,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
14
14
  * Side Public License, v 1.
15
15
  */
16
16
  var _colorCSS = function _colorCSS(color) {
17
- return "\n color: ".concat(color, ";\n\n &:hover,\n &:focus,\n &:target {\n text-decoration: underline;\n }\n\n &:target {\n color: darken(").concat(color, ", 10%);\n }\n ");
17
+ return "\n color: ".concat(color, ";\n\n &:target {\n color: darken(").concat(color, ", 10%);\n }\n ");
18
18
  };
19
19
  var euiLinkHoverCSS = function euiLinkHoverCSS() {
20
20
  return "\n text-decoration: underline;\n ";
21
21
  };
22
22
  exports.euiLinkHoverCSS = euiLinkHoverCSS;
23
23
  var euiLinkFocusCSS = function euiLinkFocusCSS(euiTheme) {
24
- return "\n text-decoration: underline;\n text-decoration-thickness: ".concat(euiTheme.border.width.thick, " !important;\n ");
24
+ return "\n text-decoration: underline;\n text-decoration-thickness: ".concat(euiTheme.border.width.thick, ";\n ");
25
25
  };
26
26
  exports.euiLinkFocusCSS = euiLinkFocusCSS;
27
27
  var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
@@ -51,8 +51,8 @@ var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref) {
51
51
  break;
52
52
  }
53
53
  return (0, _react2.jsx)(_button.EuiButtonIcon, _extends({
54
- display: isCollapsed ? 'empty' : 'fill',
55
- color: isCollapsed ? 'text' : 'ghost'
54
+ display: isCollapsed ? 'empty' : 'base',
55
+ color: "text"
56
56
  }, rest, {
57
57
  className: classes,
58
58
  iconType: isCollapsed ? COLLAPSED_ICON : NOT_COLLAPSED_ICON
@@ -15,10 +15,17 @@ Object.defineProperty(exports, "EuiSearchBar", {
15
15
  return _search_bar.EuiSearchBar;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "EuiSearchBarFilters", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _search_filters.EuiSearchBarFilters;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "Query", {
19
25
  enumerable: true,
20
26
  get: function get() {
21
27
  return _search_bar.Query;
22
28
  }
23
29
  });
24
- var _search_bar = require("./search_bar");
30
+ var _search_bar = require("./search_bar");
31
+ var _search_filters = require("./search_filters");
@@ -205,7 +205,7 @@ var EuiSearchBar = /*#__PURE__*/function (_Component) {
205
205
  var filtersBar = !filters ? undefined : (0, _react2.jsx)(_flex.EuiFlexItem, {
206
206
  className: "euiSearchBar__filtersHolder",
207
207
  grow: false
208
- }, (0, _react2.jsx)(_search_filters.EuiSearchFilters, {
208
+ }, (0, _react2.jsx)(_search_filters.EuiSearchBarFilters, {
209
209
  filters: filters,
210
210
  query: query,
211
211
  onChange: this.onFiltersChange
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiSearchFilters = void 0;
6
+ exports.EuiSearchBarFilters = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _filters = require("./filters");
@@ -32,14 +32,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
32
32
  * in compliance with, at your election, the Elastic License 2.0 or the Server
33
33
  * Side Public License, v 1.
34
34
  */
35
- var EuiSearchFilters = /*#__PURE__*/function (_Component) {
36
- _inherits(EuiSearchFilters, _Component);
37
- var _super = _createSuper(EuiSearchFilters);
38
- function EuiSearchFilters() {
39
- _classCallCheck(this, EuiSearchFilters);
35
+ var EuiSearchBarFilters = /*#__PURE__*/function (_Component) {
36
+ _inherits(EuiSearchBarFilters, _Component);
37
+ var _super = _createSuper(EuiSearchBarFilters);
38
+ function EuiSearchBarFilters() {
39
+ _classCallCheck(this, EuiSearchBarFilters);
40
40
  return _super.apply(this, arguments);
41
41
  }
42
- _createClass(EuiSearchFilters, [{
42
+ _createClass(EuiSearchBarFilters, [{
43
43
  key: "render",
44
44
  value: function render() {
45
45
  var _this$props = this.props,
@@ -61,13 +61,13 @@ var EuiSearchFilters = /*#__PURE__*/function (_Component) {
61
61
  return (0, _react2.jsx)(_filter_group.EuiFilterGroup, null, items);
62
62
  }
63
63
  }]);
64
- return EuiSearchFilters;
64
+ return EuiSearchBarFilters;
65
65
  }(_react.Component);
66
- exports.EuiSearchFilters = EuiSearchFilters;
67
- _defineProperty(EuiSearchFilters, "defaultProps", {
66
+ exports.EuiSearchBarFilters = EuiSearchBarFilters;
67
+ _defineProperty(EuiSearchBarFilters, "defaultProps", {
68
68
  filters: []
69
69
  });
70
- EuiSearchFilters.propTypes = {
70
+ EuiSearchBarFilters.propTypes = {
71
71
  query: _propTypes.default.any.isRequired,
72
72
  onChange: _propTypes.default.func.isRequired,
73
73
  filters: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
@@ -20,7 +20,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
20
20
 
21
21
  import React, { Component } from 'react';
22
22
  import classNames from 'classnames';
23
- import { keysOf } from '../common';
24
23
  import { EuiLoadingSpinner } from '../loading';
25
24
  import { EuiResizeObserver } from '../observer/resize_observer';
26
25
  import { EuiText } from '../text';
@@ -30,15 +29,7 @@ import { EuiButtonIcon } from '../button';
30
29
  import { euiAccordionButtonStyles, euiAccordionChildrenStyles, euiAccordionChildWrapperStyles, euiAccordionIconButtonStyles, euiAccordionOptionalActionStyles, euiAccordionSpinnerStyles, euiAccordionTriggerWrapperStyles } from './accordion.styles';
31
30
  import { logicalCSS } from '../../global_styling';
32
31
  import { jsx as ___EmotionJSX } from "@emotion/react";
33
- var paddingSizeToClassNameMap = {
34
- none: '',
35
- xs: 'euiAccordion__padding--xs',
36
- s: 'euiAccordion__padding--s',
37
- m: 'euiAccordion__padding--m',
38
- l: 'euiAccordion__padding--l',
39
- xl: 'euiAccordion__padding--xl'
40
- };
41
- export var PADDING_SIZES = keysOf(paddingSizeToClassNameMap);
32
+ export var PADDING_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'];
42
33
  export var EuiAccordionClass = /*#__PURE__*/function (_Component) {
43
34
  _inherits(EuiAccordionClass, _Component);
44
35
  var _super = _createSuper(EuiAccordionClass);
@@ -140,8 +131,7 @@ export var EuiAccordionClass = /*#__PURE__*/function (_Component) {
140
131
  var classes = classNames('euiAccordion', {
141
132
  'euiAccordion-isOpen': isOpen
142
133
  }, className);
143
- var paddingClass = paddingSize ? classNames(paddingSizeToClassNameMap[paddingSize]) : undefined;
144
- var childrenClasses = classNames(paddingClass, {
134
+ var childrenClasses = classNames('euiAccordion__children', {
145
135
  'euiAccordion__children-isLoading': isLoading
146
136
  });
147
137
  var buttonClasses = classNames('euiAccordion__button', buttonClassName, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className);
@@ -155,7 +145,7 @@ export var EuiAccordionClass = /*#__PURE__*/function (_Component) {
155
145
  var buttonStyles = euiAccordionButtonStyles(theme);
156
146
  var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.css];
157
147
  var childrenStyles = euiAccordionChildrenStyles(theme);
158
- var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize === 'none' ? undefined : childrenStyles[paddingSize]];
148
+ var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize && paddingSize !== 'none' && childrenStyles[paddingSize]];
159
149
  var childWrapperStyles = euiAccordionChildWrapperStyles(theme);
160
150
  var cssChildWrapperStyles = [childWrapperStyles.euiAccordion__childWrapper, isOpen && childWrapperStyles.isOpen];
161
151
  var iconButtonStyles = euiAccordionIconButtonStyles(theme);
@@ -138,5 +138,6 @@ _defineProperty(EuiFocusTrap, "defaultProps", {
138
138
  returnFocus: true,
139
139
  noIsolation: true,
140
140
  scrollLock: false,
141
+ crossFrame: false,
141
142
  gapMode: 'padding' // EUI defaults to padding because Kibana's body/layout CSS ignores `margin`
142
143
  });
@@ -368,9 +368,9 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
368
368
  tickInterval = _this$props.tickInterval,
369
369
  ticks = _this$props.ticks,
370
370
  levels = _this$props.levels,
371
- onBlur = _this$props.onBlur,
371
+ _onBlur = _this$props.onBlur,
372
372
  onChange = _this$props.onChange,
373
- onFocus = _this$props.onFocus,
373
+ _onFocus = _this$props.onFocus,
374
374
  showRange = _this$props.showRange,
375
375
  value = _this$props.value,
376
376
  isInvalid = _this$props.isInvalid,
@@ -391,57 +391,113 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
391
391
  // Overridable props
392
392
  , _extends({
393
393
  "aria-describedby": this.props['aria-describedby'],
394
- "aria-label": this.props['aria-label']
394
+ "aria-label": this.props['aria-label'],
395
+ disabled: disabled,
396
+ isInvalid: isInvalid,
397
+ name: "".concat(name, "-minValue"),
398
+ value: this.lowerValue,
399
+ readOnly: readOnly
395
400
  }, minInputProps, {
396
401
  // Non-overridable props
397
402
  side: "min",
398
403
  min: min,
399
404
  max: Number(this.upperValue),
400
405
  step: step,
401
- value: this.lowerValue,
402
- disabled: disabled,
403
406
  compressed: compressed,
404
- onChange: this.handleLowerInputChange,
405
- onKeyDown: this.handleInputKeyDown,
406
- name: "".concat(name, "-minValue"),
407
- onFocus: canShowDropdown ? this.onInputFocus : onFocus,
408
- onBlur: canShowDropdown ? this.onInputBlur : onBlur,
409
- readOnly: readOnly,
410
407
  autoSize: !showInputOnly,
411
408
  fullWidth: !!showInputOnly && fullWidth,
412
- isInvalid: isInvalid,
413
409
  controlOnly: showInputOnly,
414
- onMouseDown: showInputOnly ? function () {
415
- return _this2.preventPopoverClose = true;
416
- } : undefined
410
+ onChange: function onChange(event) {
411
+ var _minInputProps$onChan;
412
+ _this2.handleLowerInputChange(event);
413
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onChan = minInputProps.onChange) === null || _minInputProps$onChan === void 0 ? void 0 : _minInputProps$onChan.call(minInputProps, event);
414
+ },
415
+ onKeyDown: function onKeyDown(event) {
416
+ var _minInputProps$onKeyD;
417
+ _this2.handleInputKeyDown(event);
418
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onKeyD = minInputProps.onKeyDown) === null || _minInputProps$onKeyD === void 0 ? void 0 : _minInputProps$onKeyD.call(minInputProps, event);
419
+ },
420
+ onFocus: function onFocus(event) {
421
+ var _minInputProps$onFocu;
422
+ if (canShowDropdown) {
423
+ _this2.onInputFocus(event);
424
+ } else {
425
+ _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(event);
426
+ }
427
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onFocu = minInputProps.onFocus) === null || _minInputProps$onFocu === void 0 ? void 0 : _minInputProps$onFocu.call(minInputProps, event);
428
+ },
429
+ onBlur: function onBlur(event) {
430
+ var _minInputProps$onBlur;
431
+ if (canShowDropdown) {
432
+ _this2.onInputBlur(event);
433
+ } else {
434
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(event);
435
+ }
436
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onBlur = minInputProps.onBlur) === null || _minInputProps$onBlur === void 0 ? void 0 : _minInputProps$onBlur.call(minInputProps, event);
437
+ },
438
+ onMouseDown: function onMouseDown(event) {
439
+ var _minInputProps$onMous;
440
+ if (showInputOnly) {
441
+ _this2.preventPopoverClose = true;
442
+ }
443
+ minInputProps === null || minInputProps === void 0 ? void 0 : (_minInputProps$onMous = minInputProps.onMouseDown) === null || _minInputProps$onMous === void 0 ? void 0 : _minInputProps$onMous.call(minInputProps, event);
444
+ }
417
445
  })) : undefined;
418
446
  var maxInput = !!showInput ? ___EmotionJSX(EuiRangeInput
419
447
  // Overridable props
420
448
  , _extends({
421
449
  "aria-describedby": this.props['aria-describedby'],
422
- "aria-label": this.props['aria-label']
450
+ "aria-label": this.props['aria-label'],
451
+ disabled: disabled,
452
+ isInvalid: isInvalid,
453
+ name: "".concat(name, "-maxValue"),
454
+ value: this.upperValue,
455
+ readOnly: readOnly
423
456
  }, maxInputProps, {
424
457
  // Non-overridable props
425
458
  side: "max",
426
459
  min: Number(this.lowerValue),
427
460
  max: max,
428
461
  step: step,
429
- value: this.upperValue,
430
- disabled: disabled,
431
462
  compressed: compressed,
432
- onChange: this.handleUpperInputChange,
433
- onKeyDown: this.handleInputKeyDown,
434
- name: "".concat(name, "-maxValue"),
435
- onFocus: canShowDropdown ? this.onInputFocus : onFocus,
436
- onBlur: canShowDropdown ? this.onInputBlur : onBlur,
437
- readOnly: readOnly,
438
463
  autoSize: !showInputOnly,
439
464
  fullWidth: !!showInputOnly && fullWidth,
440
465
  controlOnly: showInputOnly,
441
- isInvalid: isInvalid,
442
- onMouseDown: showInputOnly ? function () {
443
- return _this2.preventPopoverClose = true;
444
- } : undefined
466
+ onChange: function onChange(event) {
467
+ var _maxInputProps$onChan;
468
+ _this2.handleUpperInputChange(event);
469
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onChan = maxInputProps.onChange) === null || _maxInputProps$onChan === void 0 ? void 0 : _maxInputProps$onChan.call(maxInputProps, event);
470
+ },
471
+ onKeyDown: function onKeyDown(event) {
472
+ var _maxInputProps$onKeyD;
473
+ _this2.handleInputKeyDown(event);
474
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onKeyD = maxInputProps.onKeyDown) === null || _maxInputProps$onKeyD === void 0 ? void 0 : _maxInputProps$onKeyD.call(maxInputProps, event);
475
+ },
476
+ onFocus: function onFocus(event) {
477
+ var _maxInputProps$onFocu;
478
+ if (canShowDropdown) {
479
+ _this2.onInputFocus(event);
480
+ } else {
481
+ _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(event);
482
+ }
483
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onFocu = maxInputProps.onFocus) === null || _maxInputProps$onFocu === void 0 ? void 0 : _maxInputProps$onFocu.call(maxInputProps, event);
484
+ },
485
+ onBlur: function onBlur(event) {
486
+ var _maxInputProps$onBlur;
487
+ if (canShowDropdown) {
488
+ _this2.onInputBlur(event);
489
+ } else {
490
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(event);
491
+ }
492
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onBlur = maxInputProps.onBlur) === null || _maxInputProps$onBlur === void 0 ? void 0 : _maxInputProps$onBlur.call(maxInputProps, event);
493
+ },
494
+ onMouseDown: function onMouseDown(event) {
495
+ var _maxInputProps$onMous;
496
+ if (showInputOnly) {
497
+ _this2.preventPopoverClose = true;
498
+ }
499
+ maxInputProps === null || maxInputProps === void 0 ? void 0 : (_maxInputProps$onMous = maxInputProps.onMouseDown) === null || _maxInputProps$onMous === void 0 ? void 0 : _maxInputProps$onMous.call(maxInputProps, event);
500
+ }
445
501
  })) : undefined;
446
502
  var classes = classNames('euiDualRange', className);
447
503
  var dualRangeStyles = euiDualRangeStyles();
@@ -505,8 +561,8 @@ export var EuiDualRangeClass = /*#__PURE__*/function (_Component) {
505
561
  "aria-hidden": true,
506
562
  tabIndex: -1,
507
563
  showRange: showRange,
508
- onFocus: onFocus,
509
- onBlur: onBlur
564
+ onFocus: _onFocus,
565
+ onBlur: _onBlur
510
566
  }, rest)), _this2.state.rangeSliderRefAvailable && ___EmotionJSX(React.Fragment, null, isDraggable && _this2.isValid && ___EmotionJSX(EuiRangeDraggable, {
511
567
  min: min,
512
568
  max: max,
@@ -10,13 +10,13 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { euiFocusRing, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
12
12
  var _colorCSS = function _colorCSS(color) {
13
- return "\n color: ".concat(color, ";\n\n &:hover,\n &:focus,\n &:target {\n text-decoration: underline;\n }\n\n &:target {\n color: darken(").concat(color, ", 10%);\n }\n ");
13
+ return "\n color: ".concat(color, ";\n\n &:target {\n color: darken(").concat(color, ", 10%);\n }\n ");
14
14
  };
15
15
  export var euiLinkHoverCSS = function euiLinkHoverCSS() {
16
16
  return "\n text-decoration: underline;\n ";
17
17
  };
18
18
  export var euiLinkFocusCSS = function euiLinkFocusCSS(euiTheme) {
19
- return "\n text-decoration: underline;\n text-decoration-thickness: ".concat(euiTheme.border.width.thick, " !important;\n ");
19
+ return "\n text-decoration: underline;\n text-decoration-thickness: ".concat(euiTheme.border.width.thick, ";\n ");
20
20
  };
21
21
  export var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
22
22
  var euiTheme = euiThemeContext.euiTheme;
@@ -43,8 +43,8 @@ export var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref
43
43
  break;
44
44
  }
45
45
  return ___EmotionJSX(EuiButtonIcon, _extends({
46
- display: isCollapsed ? 'empty' : 'fill',
47
- color: isCollapsed ? 'text' : 'ghost'
46
+ display: isCollapsed ? 'empty' : 'base',
47
+ color: "text"
48
48
  }, rest, {
49
49
  className: classes,
50
50
  iconType: isCollapsed ? COLLAPSED_ICON : NOT_COLLAPSED_ICON
@@ -6,4 +6,5 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- export { EuiSearchBar, Query, Ast } from './search_bar';
9
+ export { EuiSearchBar, Query, Ast } from './search_bar';
10
+ export { EuiSearchBarFilters } from './search_filters';
@@ -26,7 +26,7 @@ import { htmlIdGenerator } from '../../services/accessibility';
26
26
  import { isString } from '../../services/predicate';
27
27
  import { EuiFlexGroup, EuiFlexItem } from '../flex';
28
28
  import { EuiSearchBox } from './search_box';
29
- import { EuiSearchFilters } from './search_filters';
29
+ import { EuiSearchBarFilters } from './search_filters';
30
30
  import { Query } from './query';
31
31
  import { jsx as ___EmotionJSX } from "@emotion/react";
32
32
  export { Query, AST as Ast } from './query';
@@ -181,7 +181,7 @@ export var EuiSearchBar = /*#__PURE__*/function (_Component) {
181
181
  var filtersBar = !filters ? undefined : ___EmotionJSX(EuiFlexItem, {
182
182
  className: "euiSearchBar__filtersHolder",
183
183
  grow: false
184
- }, ___EmotionJSX(EuiSearchFilters, {
184
+ }, ___EmotionJSX(EuiSearchBarFilters, {
185
185
  filters: filters,
186
186
  query: query,
187
187
  onChange: this.onFiltersChange
@@ -18,14 +18,14 @@ import React, { Component, Fragment } from 'react';
18
18
  import { createFilter } from './filters';
19
19
  import { EuiFilterGroup } from '../filter_group';
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
- export var EuiSearchFilters = /*#__PURE__*/function (_Component) {
22
- _inherits(EuiSearchFilters, _Component);
23
- var _super = _createSuper(EuiSearchFilters);
24
- function EuiSearchFilters() {
25
- _classCallCheck(this, EuiSearchFilters);
21
+ export var EuiSearchBarFilters = /*#__PURE__*/function (_Component) {
22
+ _inherits(EuiSearchBarFilters, _Component);
23
+ var _super = _createSuper(EuiSearchBarFilters);
24
+ function EuiSearchBarFilters() {
25
+ _classCallCheck(this, EuiSearchBarFilters);
26
26
  return _super.apply(this, arguments);
27
27
  }
28
- _createClass(EuiSearchFilters, [{
28
+ _createClass(EuiSearchBarFilters, [{
29
29
  key: "render",
30
30
  value: function render() {
31
31
  var _this$props = this.props,
@@ -47,8 +47,8 @@ export var EuiSearchFilters = /*#__PURE__*/function (_Component) {
47
47
  return ___EmotionJSX(EuiFilterGroup, null, items);
48
48
  }
49
49
  }]);
50
- return EuiSearchFilters;
50
+ return EuiSearchBarFilters;
51
51
  }(Component);
52
- _defineProperty(EuiSearchFilters, "defaultProps", {
52
+ _defineProperty(EuiSearchBarFilters, "defaultProps", {
53
53
  filters: []
54
54
  });
@@ -17,7 +17,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _react = _interopRequireWildcard(require("react"));
19
19
  var _classnames = _interopRequireDefault(require("classnames"));
20
- var _common = require("../common");
21
20
  var _loading = require("../loading");
22
21
  var _resize_observer = require("../observer/resize_observer");
23
22
  var _text = require("../text");
@@ -38,15 +37,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
38
37
  * in compliance with, at your election, the Elastic License 2.0 or the Server
39
38
  * Side Public License, v 1.
40
39
  */
41
- var paddingSizeToClassNameMap = {
42
- none: '',
43
- xs: 'euiAccordion__padding--xs',
44
- s: 'euiAccordion__padding--s',
45
- m: 'euiAccordion__padding--m',
46
- l: 'euiAccordion__padding--l',
47
- xl: 'euiAccordion__padding--xl'
48
- };
49
- var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
40
+ var PADDING_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'];
50
41
  exports.PADDING_SIZES = PADDING_SIZES;
51
42
  var EuiAccordionClass = /*#__PURE__*/function (_Component) {
52
43
  (0, _inherits2.default)(EuiAccordionClass, _Component);
@@ -149,8 +140,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
149
140
  var classes = (0, _classnames.default)('euiAccordion', {
150
141
  'euiAccordion-isOpen': isOpen
151
142
  }, className);
152
- var paddingClass = paddingSize ? (0, _classnames.default)(paddingSizeToClassNameMap[paddingSize]) : undefined;
153
- var childrenClasses = (0, _classnames.default)(paddingClass, {
143
+ var childrenClasses = (0, _classnames.default)('euiAccordion__children', {
154
144
  'euiAccordion__children-isLoading': isLoading
155
145
  });
156
146
  var buttonClasses = (0, _classnames.default)('euiAccordion__button', buttonClassName, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className);
@@ -164,7 +154,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
164
154
  var buttonStyles = (0, _accordion.euiAccordionButtonStyles)(theme);
165
155
  var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.css];
166
156
  var childrenStyles = (0, _accordion.euiAccordionChildrenStyles)(theme);
167
- var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize === 'none' ? undefined : childrenStyles[paddingSize]];
157
+ var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize && paddingSize !== 'none' && childrenStyles[paddingSize]];
168
158
  var childWrapperStyles = (0, _accordion.euiAccordionChildWrapperStyles)(theme);
169
159
  var cssChildWrapperStyles = [childWrapperStyles.euiAccordion__childWrapper, isOpen && childWrapperStyles.isOpen];
170
160
  var iconButtonStyles = (0, _accordion.euiAccordionIconButtonStyles)(theme);
@@ -147,5 +147,6 @@ exports.EuiFocusTrap = EuiFocusTrap;
147
147
  returnFocus: true,
148
148
  noIsolation: true,
149
149
  scrollLock: false,
150
+ crossFrame: false,
150
151
  gapMode: 'padding' // EUI defaults to padding because Kibana's body/layout CSS ignores `margin`
151
152
  });