@elastic/eui 104.0.2 → 104.1.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 (42) hide show
  1. package/es/components/basic_table/in_memory_table.js +18 -2
  2. package/es/components/code/code.styles.js +1 -1
  3. package/es/components/code/code_syntax.styles.js +1 -0
  4. package/es/components/date_picker/date_picker.js +2 -1
  5. package/es/components/date_picker/date_picker_range.js +18 -16
  6. package/es/components/date_picker/super_date_picker/super_date_picker.js +5 -9
  7. package/es/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
  8. package/es/themes/amsterdam/global_styling/variables/_components.js +315 -310
  9. package/eui.d.ts +14 -5
  10. package/lib/components/basic_table/in_memory_table.js +18 -2
  11. package/lib/components/code/code.styles.js +1 -1
  12. package/lib/components/code/code_syntax.styles.js +1 -0
  13. package/lib/components/date_picker/date_picker.js +2 -1
  14. package/lib/components/date_picker/date_picker_range.js +18 -16
  15. package/lib/components/date_picker/super_date_picker/super_date_picker.js +5 -9
  16. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
  17. package/lib/themes/amsterdam/global_styling/variables/_components.js +315 -310
  18. package/optimize/es/components/basic_table/in_memory_table.js +3 -2
  19. package/optimize/es/components/code/code.styles.js +1 -1
  20. package/optimize/es/components/code/code_syntax.styles.js +1 -0
  21. package/optimize/es/components/date_picker/date_picker.js +2 -1
  22. package/optimize/es/components/date_picker/date_picker_range.js +16 -14
  23. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +5 -9
  24. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +2 -2
  25. package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +315 -310
  26. package/optimize/lib/components/basic_table/in_memory_table.js +3 -2
  27. package/optimize/lib/components/code/code.styles.js +1 -1
  28. package/optimize/lib/components/code/code_syntax.styles.js +1 -0
  29. package/optimize/lib/components/date_picker/date_picker.js +2 -1
  30. package/optimize/lib/components/date_picker/date_picker_range.js +16 -14
  31. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +5 -9
  32. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +2 -2
  33. package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +315 -310
  34. package/package.json +4 -4
  35. package/test-env/components/basic_table/in_memory_table.js +18 -2
  36. package/test-env/components/code/code.styles.js +1 -1
  37. package/test-env/components/code/code_syntax.styles.js +1 -0
  38. package/test-env/components/date_picker/date_picker.js +2 -1
  39. package/test-env/components/date_picker/date_picker_range.js +18 -16
  40. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +5 -9
  41. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +4 -4
  42. package/test-env/themes/amsterdam/global_styling/variables/_components.js +315 -310
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["schema"],
2
2
  _excluded2 = ["onChange"],
3
- _excluded3 = ["columns", "loading", "message", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
3
+ _excluded3 = ["columns", "loading", "message", "noItemsMessage", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
4
4
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
5
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
6
6
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
@@ -374,6 +374,7 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
374
374
  columns = _this$props2.columns,
375
375
  loading = _this$props2.loading,
376
376
  message = _this$props2.message,
377
+ noItemsMessage = _this$props2.noItemsMessage,
377
378
  error = _this$props2.error,
378
379
  selection = _this$props2.selection,
379
380
  compressed = _this$props2.compressed,
@@ -435,7 +436,7 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
435
436
  onChange: this.onTableChange,
436
437
  error: error,
437
438
  loading: loading,
438
- noItemsMessage: message,
439
+ noItemsMessage: noItemsMessage || message,
439
440
  tableLayout: tableLayout,
440
441
  compressed: compressed,
441
442
  itemIdToExpandedRowMap: itemIdToExpandedRowMap
@@ -970,7 +971,22 @@ EuiInMemoryTable.propTypes = {
970
971
  * Sets the table-layout CSS property. Note that auto tableLayout prevents truncateText from working properly.
971
972
  */
972
973
  tableLayout: PropTypes.oneOf(["fixed", "auto"]),
974
+ /**
975
+ * Message to display if table is empty
976
+ * @deprecated Use `noItemsMessage` instead.
977
+ */
978
+ /**
979
+ * Message to display if table is empty
980
+ * @deprecated Use `noItemsMessage` instead.
981
+ */
973
982
  message: PropTypes.node,
983
+ /**
984
+ * Message to display if table is empty
985
+ */
986
+ /**
987
+ * Message to display if table is empty
988
+ */
989
+ noItemsMessage: PropTypes.node,
974
990
  /**
975
991
  * Configures {@link Search}.
976
992
  */
@@ -25,7 +25,7 @@ export var euiCodeStyles = function euiCodeStyles(euiThemeContext) {
25
25
  /*
26
26
  * 1. Size the code against the text its embedded within.
27
27
  */
28
- euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background-color:", codeSyntaxVariables.backgroundColor, ";", highContrastModeStyles(euiThemeContext, {
28
+ euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background-color:", codeSyntaxVariables.inlineBackgroundColor, ";", highContrastModeStyles(euiThemeContext, {
29
29
  forced: "\n border: ".concat(euiTheme.border.thin, ";\n ")
30
30
  }), " border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, " .token.atrule .token.rule,.token.keyword{color:", codeSyntaxVariables.inlineCodeKeywordColor, ";};label:euiCode;"),
31
31
  transparentBackground: _ref
@@ -26,6 +26,7 @@ export var euiCodeSyntaxVariables = function euiCodeSyntaxVariables(euiThemeCont
26
26
  return {
27
27
  backgroundColor: backgroundColor,
28
28
  color: color,
29
+ inlineBackgroundColor: euiTheme.components.codeInlineBackground,
29
30
  inlineCodeColor: euiTheme.components.codeInlineColor,
30
31
  selectedBackgroundColor: euiTheme.components.codeBackgroundSelected,
31
32
  commentColor: euiTheme.components.codeCommentColor,
@@ -62,6 +62,7 @@ var unsupportedProps = [
62
62
  // An internal EUI styling concern that consumers shouldn't need to access
63
63
  'defaultInputProps'];
64
64
  export var EuiDatePicker = function EuiDatePicker(_ref) {
65
+ var _selected$isValid;
65
66
  var _ref$adjustDateOnChan = _ref.adjustDateOnChange,
66
67
  adjustDateOnChange = _ref$adjustDateOnChan === void 0 ? true : _ref$adjustDateOnChan,
67
68
  append = _ref.append,
@@ -113,7 +114,7 @@ export var EuiDatePicker = function EuiDatePicker(_ref) {
113
114
  utcOffset = _ref.utcOffset,
114
115
  rest = _objectWithoutProperties(_ref, _excluded);
115
116
  // Check for whether the passed `selected` moment date is valid
116
- var isInvalid = _isInvalid || ((selected === null || selected === void 0 ? void 0 : selected.isValid()) === false ? true : undefined);
117
+ var isInvalid = _isInvalid || ((selected === null || selected === void 0 || (_selected$isValid = selected.isValid) === null || _selected$isValid === void 0 ? void 0 : _selected$isValid.call(selected)) === false ? true : undefined);
117
118
  var styles = useEuiMemoizedStyles(euiDatePickerStyles);
118
119
  var cssStyles = [styles.euiDatePicker].concat(_toConsumableArray(inline ? [styles.inline.inline, isInvalid && !(disabled || readOnly) && styles.inline.invalid, shadow ? styles.inline.shadow : styles.inline.noShadow, disabled && styles.inline.disabled, readOnly && styles.inline.readOnly] : []));
119
120
  var calendarStyles = useEuiMemoizedStyles(euiReactDatePickerStyles);
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "className", "startDateControl", "endDateControl", "iconType", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend"];
1
+ var _excluded = ["children", "className", "startDateControl", "endDateControl", "iconType", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend", "delimiter"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
@@ -38,6 +38,7 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
38
38
  _onBlur = _ref.onBlur,
39
39
  append = _ref.append,
40
40
  prepend = _ref.prepend,
41
+ delimiter = _ref.delimiter,
41
42
  rest = _objectWithoutProperties(_ref, _excluded);
42
43
  // `fullWidth` and `compressed` should not affect inline datepickers (matches non-range behavior)
43
44
  var fullWidth = _fullWidth && !inline;
@@ -46,50 +47,50 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
46
47
  var inlineStyles = useEuiMemoizedStyles(euiDatePickerRangeInlineStyles);
47
48
  var cssStyles = !inline ? styles.euiDatePickerRange : [inlineStyles.euiDatePickerRangeInline,
48
49
  // Determine the inline container query to use based on the width of the react-datepicker
49
- startDateControl.props.showTimeSelect || endDateControl.props.showTimeSelect ? inlineStyles.responsiveWithTimeSelect : inlineStyles.responsive, shadow && inlineStyles.shadow];
50
+ startDateControl !== null && startDateControl !== void 0 && startDateControl.props.showTimeSelect || endDateControl !== null && endDateControl !== void 0 && endDateControl.props.showTimeSelect ? inlineStyles.responsiveWithTimeSelect : inlineStyles.responsive, shadow && inlineStyles.shadow];
50
51
  var startControl = startDateControl;
51
52
  var endControl = endDateControl;
52
53
  if (!isCustom) {
53
- startControl = /*#__PURE__*/cloneElement(startDateControl, {
54
+ startControl = startControl && /*#__PURE__*/cloneElement(startDateControl, {
54
55
  controlOnly: true,
55
56
  showIcon: false,
56
57
  inline: inline,
57
58
  compressed: compressed,
58
59
  fullWidth: fullWidth,
59
60
  readOnly: readOnly,
60
- disabled: disabled || startDateControl.props.disabled,
61
- isInvalid: isInvalid || startDateControl.props.isInvalid,
62
- className: classNames('euiDatePickerRange__start', startDateControl.props.className),
61
+ disabled: disabled || (startDateControl === null || startDateControl === void 0 ? void 0 : startDateControl.props.disabled),
62
+ isInvalid: isInvalid || (startDateControl === null || startDateControl === void 0 ? void 0 : startDateControl.props.isInvalid),
63
+ className: classNames('euiDatePickerRange__start', startDateControl === null || startDateControl === void 0 ? void 0 : startDateControl.props.className),
63
64
  onBlur: function onBlur(event) {
64
65
  var _startDateControl$pro, _startDateControl$pro2;
65
- (_startDateControl$pro = startDateControl.props) === null || _startDateControl$pro === void 0 || (_startDateControl$pro2 = _startDateControl$pro.onBlur) === null || _startDateControl$pro2 === void 0 || _startDateControl$pro2.call(_startDateControl$pro, event);
66
+ startDateControl === null || startDateControl === void 0 || (_startDateControl$pro = startDateControl.props) === null || _startDateControl$pro === void 0 || (_startDateControl$pro2 = _startDateControl$pro.onBlur) === null || _startDateControl$pro2 === void 0 || _startDateControl$pro2.call(_startDateControl$pro, event);
66
67
  _onBlur === null || _onBlur === void 0 || _onBlur(event);
67
68
  },
68
69
  onFocus: function onFocus(event) {
69
70
  var _startDateControl$pro3, _startDateControl$pro4;
70
- (_startDateControl$pro3 = startDateControl.props) === null || _startDateControl$pro3 === void 0 || (_startDateControl$pro4 = _startDateControl$pro3.onFocus) === null || _startDateControl$pro4 === void 0 || _startDateControl$pro4.call(_startDateControl$pro3, event);
71
+ startDateControl === null || startDateControl === void 0 || (_startDateControl$pro3 = startDateControl.props) === null || _startDateControl$pro3 === void 0 || (_startDateControl$pro4 = _startDateControl$pro3.onFocus) === null || _startDateControl$pro4 === void 0 || _startDateControl$pro4.call(_startDateControl$pro3, event);
71
72
  _onFocus === null || _onFocus === void 0 || _onFocus(event);
72
73
  }
73
74
  });
74
- endControl = /*#__PURE__*/cloneElement(endDateControl, {
75
+ endControl = endControl && /*#__PURE__*/cloneElement(endDateControl, {
75
76
  controlOnly: true,
76
77
  showIcon: false,
77
78
  inline: inline,
78
79
  compressed: compressed,
79
80
  fullWidth: fullWidth,
80
81
  readOnly: readOnly,
81
- disabled: disabled || endDateControl.props.disabled,
82
- isInvalid: isInvalid || endDateControl.props.isInvalid,
82
+ disabled: disabled || (endDateControl === null || endDateControl === void 0 ? void 0 : endDateControl.props.disabled),
83
+ isInvalid: isInvalid || (endDateControl === null || endDateControl === void 0 ? void 0 : endDateControl.props.isInvalid),
83
84
  popoverPlacement: 'downRight',
84
- className: classNames('euiDatePickerRange__end', endDateControl.props.className),
85
+ className: classNames('euiDatePickerRange__end', endDateControl === null || endDateControl === void 0 ? void 0 : endDateControl.props.className),
85
86
  onBlur: function onBlur(event) {
86
87
  var _endDateControl$props, _endDateControl$props2;
87
- (_endDateControl$props = endDateControl.props) === null || _endDateControl$props === void 0 || (_endDateControl$props2 = _endDateControl$props.onBlur) === null || _endDateControl$props2 === void 0 || _endDateControl$props2.call(_endDateControl$props, event);
88
+ endDateControl === null || endDateControl === void 0 || (_endDateControl$props = endDateControl.props) === null || _endDateControl$props === void 0 || (_endDateControl$props2 = _endDateControl$props.onBlur) === null || _endDateControl$props2 === void 0 || _endDateControl$props2.call(_endDateControl$props, event);
88
89
  _onBlur === null || _onBlur === void 0 || _onBlur(event);
89
90
  },
90
91
  onFocus: function onFocus(event) {
91
92
  var _endDateControl$props3, _endDateControl$props4;
92
- (_endDateControl$props3 = endDateControl.props) === null || _endDateControl$props3 === void 0 || (_endDateControl$props4 = _endDateControl$props3.onFocus) === null || _endDateControl$props4 === void 0 || _endDateControl$props4.call(_endDateControl$props3, event);
93
+ endDateControl === null || endDateControl === void 0 || (_endDateControl$props3 = endDateControl.props) === null || _endDateControl$props3 === void 0 || (_endDateControl$props4 = _endDateControl$props3.onFocus) === null || _endDateControl$props4 === void 0 || _endDateControl$props4.call(_endDateControl$props3, event);
93
94
  _onFocus === null || _onFocus === void 0 || _onFocus(event);
94
95
  }
95
96
  });
@@ -104,6 +105,7 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
104
105
  className: classes,
105
106
  css: cssStyles
106
107
  }, rest), ___EmotionJSX(EuiFormControlLayoutDelimited, {
108
+ delimiter: delimiter,
107
109
  icon: icon,
108
110
  startControl: startControl,
109
111
  endControl: endControl,
@@ -130,11 +132,11 @@ EuiDatePickerRange.propTypes = {
130
132
  /**
131
133
  * The end date `EuiDatePicker` element
132
134
  */
133
- endDateControl: PropTypes.element.isRequired,
135
+ endDateControl: PropTypes.element,
134
136
  /**
135
137
  * The start date `EuiDatePicker` element
136
138
  */
137
- startDateControl: PropTypes.element.isRequired,
139
+ startDateControl: PropTypes.element,
138
140
  /**
139
141
  * Pass either an icon type or set to `false` to remove icon entirely
140
142
  */
@@ -1,10 +1,10 @@
1
1
  var _excluded = ["isDisabled"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
6
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6
7
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
7
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
8
8
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
9
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
10
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -296,14 +296,9 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
296
296
  fullWidth: true,
297
297
  css: [styles.states.euiSuperDatePicker__formControlLayout, isDisabled ? styles.states.disabled : isInvalid ? styles.states.invalid : hasChanged ? styles.states.needsUpdating : styles.states.default]
298
298
  };
299
- if (isQuickSelectOnly) {
300
- return ___EmotionJSX(EuiFormControlLayout, _extends({
301
- iconsPosition: "static"
302
- }, formControlLayoutProps));
303
- }
304
299
  var isDisabledDisplay = isObject(isDisabled) && (isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled.display);
305
300
  if (isDisabledDisplay || showPrettyDuration && !isStartDatePopoverOpen && !isEndDatePopoverOpen) {
306
- return ___EmotionJSX(EuiFormControlLayout, formControlLayoutProps, ___EmotionJSX("button", {
301
+ return ___EmotionJSX(EuiFormControlLayout, formControlLayoutProps, !isQuickSelectOnly && ___EmotionJSX("button", {
307
302
  type: "button",
308
303
  css: styles.euiSuperDatePicker__prettyFormat,
309
304
  className: classNames('euiSuperDatePicker__prettyFormat', {
@@ -334,7 +329,8 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
334
329
  css: rangeCssStyles,
335
330
  isCustom: true,
336
331
  iconType: false,
337
- startDateControl: ___EmotionJSX(EuiDatePopoverButton, {
332
+ delimiter: isQuickSelectOnly ? '' : undefined,
333
+ startDateControl: isQuickSelectOnly ? undefined : ___EmotionJSX(EuiDatePopoverButton, {
338
334
  css: styles.euiSuperDatePicker__rangeInput,
339
335
  className: "euiSuperDatePicker__startPopoverButton",
340
336
  compressed: compressed,
@@ -359,7 +355,7 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
359
355
  onFocus: onFocus
360
356
  }
361
357
  }),
362
- endDateControl: ___EmotionJSX(EuiDatePopoverButton, {
358
+ endDateControl: isQuickSelectOnly ? undefined : ___EmotionJSX(EuiDatePopoverButton, {
363
359
  css: styles.euiSuperDatePicker__rangeInput,
364
360
  position: "end",
365
361
  compressed: compressed,
@@ -62,20 +62,20 @@ export var EuiFormControlLayoutDelimited = function EuiFormControlLayoutDelimite
62
62
  value: {
63
63
  defaultFullWidth: fullWidth
64
64
  }
65
- }, addClassesToControl(startControl), ___EmotionJSX(EuiFormControlDelimiter, {
65
+ }, startControl && addClassesToControl(startControl), ___EmotionJSX(EuiFormControlDelimiter, {
66
66
  delimiter: delimiter,
67
67
  isInvalid: showInvalidState
68
- }), addClassesToControl(endControl)));
68
+ }), endControl && addClassesToControl(endControl)));
69
69
  };
70
70
  EuiFormControlLayoutDelimited.propTypes = {
71
71
  /**
72
72
  * Left side control
73
73
  */
74
- startControl: PropTypes.element.isRequired,
74
+ startControl: PropTypes.element,
75
75
  /**
76
76
  * Right side control
77
77
  */
78
- endControl: PropTypes.element.isRequired,
78
+ endControl: PropTypes.element,
79
79
  /**
80
80
  * The center content. Accepts a string to be wrapped in a subdued EuiText
81
81
  * or a single ReactElement