@elastic/eui 99.3.0 → 99.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/accordion/accordion_trigger/accordion_trigger.js +1 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +9 -9
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +19 -19
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +19 -19
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +3 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +45 -45
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +7 -5
- package/es/components/combo_box/combo_box.js +5 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +1 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +6 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +63 -7
- package/es/components/date_picker/super_date_picker/super_date_picker.js +12 -2
- package/es/components/filter_group/filter_select_item.js +1 -1
- package/es/components/header/header.styles.js +3 -3
- package/es/components/popover/popover.js +3 -2
- package/eui.d.ts +14 -6
- package/i18ntokens.json +36 -36
- package/lib/components/accordion/accordion_trigger/accordion_trigger.js +1 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +9 -9
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +19 -19
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +19 -19
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +3 -3
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +45 -45
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +7 -5
- package/lib/components/combo_box/combo_box.js +5 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +1 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +6 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +62 -7
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +12 -2
- package/lib/components/filter_group/filter_select_item.js +1 -1
- package/lib/components/header/header.styles.js +2 -2
- package/lib/components/popover/popover.js +3 -2
- package/optimize/es/components/accordion/accordion_trigger/accordion_trigger.js +1 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -2
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +7 -5
- package/optimize/es/components/combo_box/combo_box.js +5 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +1 -0
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +6 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +19 -6
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +4 -2
- package/optimize/es/components/filter_group/filter_select_item.js +1 -1
- package/optimize/es/components/header/header.styles.js +3 -3
- package/optimize/es/components/popover/popover.js +3 -2
- package/optimize/lib/components/accordion/accordion_trigger/accordion_trigger.js +1 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +7 -5
- package/optimize/lib/components/combo_box/combo_box.js +5 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +1 -0
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +6 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +19 -6
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +4 -2
- package/optimize/lib/components/filter_group/filter_select_item.js +1 -1
- package/optimize/lib/components/header/header.styles.js +2 -2
- package/optimize/lib/components/popover/popover.js +3 -2
- package/package.json +1 -1
- package/test-env/components/accordion/accordion_trigger/accordion_trigger.js +1 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +9 -9
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +19 -19
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +19 -19
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +3 -3
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +45 -45
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +7 -5
- package/test-env/components/combo_box/combo_box.js +5 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +1 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +6 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +60 -7
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +12 -2
- package/test-env/components/filter_group/filter_select_item.js +1 -1
- package/test-env/components/header/header.styles.js +2 -2
- package/test-env/components/popover/popover.js +3 -2
package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js
CHANGED
|
@@ -60,7 +60,9 @@ export var euiCollapsibleNavSubItemsStyles = function euiCollapsibleNavSubItemsS
|
|
|
60
60
|
return {
|
|
61
61
|
euiCollapsibleNavItem__items: /*#__PURE__*/css(";label:euiCollapsibleNavItem__items;"),
|
|
62
62
|
isTopItem: /*#__PURE__*/css(logicalCSS('padding-top', euiTheme.size.xs), " ", logicalCSS('padding-left', euiTheme.size.xl), ";;label:isTopItem;"),
|
|
63
|
-
isSubItem: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), " ", logicalCSS('margin-left',
|
|
63
|
+
isSubItem: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), " ", logicalCSS('margin-left', mathWithUnits([euiTheme.size.xs], function (x) {
|
|
64
|
+
return x * 4;
|
|
65
|
+
})), " ", logicalCSS('padding-left', mathWithUnits([euiTheme.size.s, euiTheme.border.width.thin], function (x, y) {
|
|
64
66
|
return x - y;
|
|
65
67
|
})), ";;label:isSubItem;")
|
|
66
68
|
};
|
|
@@ -71,10 +73,10 @@ export var euiCollapsibleNavSubItemsStyles = function euiCollapsibleNavSubItemsS
|
|
|
71
73
|
*/
|
|
72
74
|
|
|
73
75
|
export var euiCollapsibleNavTopItemStyles = function euiCollapsibleNavTopItemStyles(_ref2) {
|
|
74
|
-
var
|
|
76
|
+
var _euiTheme = _ref2.euiTheme;
|
|
75
77
|
return {
|
|
76
|
-
// If this is the only top-level item in the list, assume
|
|
77
|
-
//
|
|
78
|
-
euiCollapsibleNavTopItem: /*#__PURE__*/css("&:only-child{.euiCollapsibleNavItem__items{", logicalCSS('padding-left',
|
|
78
|
+
// If this is the only top-level item in the list, assume the nav is showing a single solution and
|
|
79
|
+
// use no left padding + increase its relative icon size
|
|
80
|
+
euiCollapsibleNavTopItem: /*#__PURE__*/css("&:only-child{.euiCollapsibleNavItem__items{", logicalCSS('padding-left', 0), ";}.euiCollapsibleNavItem__icon{transform:scale(1.25);}};label:euiCollapsibleNavTopItem;")
|
|
79
81
|
};
|
|
80
82
|
};
|
|
@@ -565,7 +565,11 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
565
565
|
closeOnScroll: true
|
|
566
566
|
}, inputPopoverProps, {
|
|
567
567
|
isOpen: isListOpen,
|
|
568
|
-
closePopover: _this2.closeList
|
|
568
|
+
closePopover: _this2.closeList
|
|
569
|
+
/* we don't want content changes to be announced via aria-live
|
|
570
|
+
because ComboBox uses a virtualized list that updates itself
|
|
571
|
+
on scroll and would result in unexpected screen reader output */,
|
|
572
|
+
"aria-live": "off",
|
|
569
573
|
input: ___EmotionJSX(EuiComboBoxInput, {
|
|
570
574
|
compressed: compressed,
|
|
571
575
|
focusedOptionId: _this2.hasActiveOption() ? _this2.rootId("_option-".concat(_this2.state.activeOptionIndex)) : undefined,
|
|
@@ -281,6 +281,7 @@ export var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
281
281
|
"aria-label": ariaLabel,
|
|
282
282
|
"aria-labelledby": ariaLabelledby,
|
|
283
283
|
"aria-invalid": isInvalid,
|
|
284
|
+
"aria-haspopup": "listbox",
|
|
284
285
|
css: styles.euiComboBoxInput,
|
|
285
286
|
className: "euiComboBox__input",
|
|
286
287
|
"data-test-subj": "comboBoxSearchInput",
|
|
@@ -96,7 +96,9 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
activeOptionIndex = _this$props.activeOptionIndex,
|
|
97
97
|
renderOption = _this$props.renderOption,
|
|
98
98
|
searchValue = _this$props.searchValue,
|
|
99
|
-
rootId = _this$props.rootId
|
|
99
|
+
rootId = _this$props.rootId,
|
|
100
|
+
matchingOptions = _this$props.matchingOptions;
|
|
101
|
+
var optionIndex = matchingOptions.indexOf(option);
|
|
100
102
|
var hasTruncationProps = _this.props.truncationProps || _truncationProps;
|
|
101
103
|
var truncationProps = hasTruncationProps ? // Individual truncation settings should override component prop
|
|
102
104
|
_objectSpread(_objectSpread({}, _this.props.truncationProps), _truncationProps) : undefined;
|
|
@@ -124,7 +126,9 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
124
126
|
checked: checked,
|
|
125
127
|
showIcons: singleSelection ? true : false,
|
|
126
128
|
id: rootId("_option-".concat(index)),
|
|
127
|
-
title: label
|
|
129
|
+
title: label,
|
|
130
|
+
"aria-setsize": matchingOptions.length,
|
|
131
|
+
"aria-posinset": optionIndex + 1
|
|
128
132
|
}, rest), ___EmotionJSX("span", {
|
|
129
133
|
className: "euiComboBoxOption__contentWrapper"
|
|
130
134
|
}, ___EmotionJSX(EuiComboBoxOptionAppendPrepend, {
|
package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["applyTime", "buttonProps"],
|
|
3
|
+
_excluded2 = ["contentProps", "onClick"];
|
|
2
4
|
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); }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
10
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
12
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -32,7 +39,12 @@ import { EuiRefreshInterval } from '../../auto_refresh/refresh_interval';
|
|
|
32
39
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
33
40
|
export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
34
41
|
var _applyTime = _ref.applyTime,
|
|
42
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
43
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
35
44
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
var buttonContentProps = buttonProps.contentProps,
|
|
46
|
+
buttonOnClick = buttonProps.onClick,
|
|
47
|
+
quickSelectButtonProps = _objectWithoutProperties(buttonProps, _excluded2);
|
|
36
48
|
var _useState = useState(),
|
|
37
49
|
_useState2 = _slicedToArray(_useState, 2),
|
|
38
50
|
prevQuickSelect = _useState2[0],
|
|
@@ -68,12 +80,16 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
68
80
|
}, [_applyTime, closePopover]);
|
|
69
81
|
var buttonlabel = useEuiI18n('euiQuickSelectPopover.buttonLabel', 'Date quick select');
|
|
70
82
|
var styles = useEuiMemoizedStyles(euiQuickSelectPopoverStyles);
|
|
71
|
-
var
|
|
83
|
+
var quickSelectButtonOnClick = function quickSelectButtonOnClick(e) {
|
|
84
|
+
togglePopover();
|
|
85
|
+
buttonOnClick === null || buttonOnClick === void 0 || buttonOnClick(e);
|
|
86
|
+
};
|
|
87
|
+
var quickSelectButton = ___EmotionJSX(EuiButtonEmpty, _extends({
|
|
72
88
|
css: styles.euiQuickSelectPopoverButton,
|
|
73
|
-
contentProps: {
|
|
89
|
+
contentProps: _objectSpread({
|
|
74
90
|
css: styles.euiQuickSelectPopoverButton__content
|
|
75
|
-
},
|
|
76
|
-
onClick:
|
|
91
|
+
}, buttonContentProps),
|
|
92
|
+
onClick: quickSelectButtonOnClick,
|
|
77
93
|
"aria-label": buttonlabel,
|
|
78
94
|
title: buttonlabel,
|
|
79
95
|
size: "xs",
|
|
@@ -81,7 +97,7 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
81
97
|
iconSide: "right",
|
|
82
98
|
isDisabled: props.isDisabled,
|
|
83
99
|
"data-test-subj": "superDatePickerToggleQuickMenuButton"
|
|
84
|
-
}, ___EmotionJSX(EuiIcon, {
|
|
100
|
+
}, quickSelectButtonProps), ___EmotionJSX(EuiIcon, {
|
|
85
101
|
type: "calendar"
|
|
86
102
|
}));
|
|
87
103
|
return ___EmotionJSX(EuiPopover, {
|
|
@@ -134,7 +150,8 @@ EuiQuickSelectPopover.propTypes = {
|
|
|
134
150
|
label: PropTypes.string,
|
|
135
151
|
start: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired
|
|
136
152
|
}).isRequired).isRequired
|
|
137
|
-
}).isRequired
|
|
153
|
+
}).isRequired,
|
|
154
|
+
buttonProps: PropTypes.any
|
|
138
155
|
};
|
|
139
156
|
export var EuiQuickSelectPanels = function EuiQuickSelectPanels(_ref3) {
|
|
140
157
|
var start = _ref3.start,
|
|
@@ -205,6 +222,45 @@ export var EuiQuickSelectPanels = function EuiQuickSelectPanels(_ref3) {
|
|
|
205
222
|
}) : ___EmotionJSX(React.Fragment, null, quickSelectElement, commonlyUsedElement, recentlyUsedElement, refreshIntervalElement, customQuickSelectPanelsElement));
|
|
206
223
|
};
|
|
207
224
|
EuiQuickSelectPanels.propTypes = {
|
|
225
|
+
applyRefreshInterval: PropTypes.func,
|
|
226
|
+
applyTime: PropTypes.func.isRequired,
|
|
227
|
+
commonlyUsedRanges: PropTypes.arrayOf(PropTypes.shape({
|
|
228
|
+
end: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired,
|
|
229
|
+
label: PropTypes.string,
|
|
230
|
+
start: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired
|
|
231
|
+
}).isRequired).isRequired,
|
|
232
|
+
customQuickSelectPanels: PropTypes.arrayOf(PropTypes.shape({
|
|
233
|
+
title: PropTypes.string.isRequired,
|
|
234
|
+
content: PropTypes.element.isRequired
|
|
235
|
+
}).isRequired),
|
|
236
|
+
customQuickSelectRender: PropTypes.func,
|
|
237
|
+
dateFormat: PropTypes.string.isRequired,
|
|
238
|
+
end: PropTypes.string.isRequired,
|
|
239
|
+
isPaused: PropTypes.bool.isRequired,
|
|
240
|
+
recentlyUsedRanges: PropTypes.arrayOf(PropTypes.shape({
|
|
241
|
+
end: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired,
|
|
242
|
+
label: PropTypes.string,
|
|
243
|
+
start: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired
|
|
244
|
+
}).isRequired).isRequired,
|
|
245
|
+
refreshInterval: PropTypes.number.isRequired,
|
|
246
|
+
refreshMinInterval: PropTypes.number,
|
|
247
|
+
intervalUnits: PropTypes.any,
|
|
248
|
+
start: PropTypes.string.isRequired,
|
|
249
|
+
timeOptions: PropTypes.shape({
|
|
250
|
+
timeTenseOptions: PropTypes.arrayOf(PropTypes.any.isRequired).isRequired,
|
|
251
|
+
timeUnitsOptions: PropTypes.arrayOf(PropTypes.any.isRequired).isRequired,
|
|
252
|
+
relativeOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
253
|
+
text: PropTypes.string.isRequired,
|
|
254
|
+
value: PropTypes.oneOfType([PropTypes.oneOf(["s", "m", "h", "d", "w", "M", "y"]).isRequired, PropTypes.oneOf(["s+", "m+", "h+", "d+", "w+", "M+", "y+"]).isRequired]).isRequired
|
|
255
|
+
}).isRequired).isRequired,
|
|
256
|
+
relativeRoundingLabels: PropTypes.any.isRequired,
|
|
257
|
+
refreshUnitsOptions: PropTypes.arrayOf(PropTypes.any.isRequired).isRequired,
|
|
258
|
+
commonDurationRanges: PropTypes.arrayOf(PropTypes.shape({
|
|
259
|
+
end: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired,
|
|
260
|
+
label: PropTypes.string,
|
|
261
|
+
start: PropTypes.oneOfType([PropTypes.oneOf(["now"]), PropTypes.string.isRequired]).isRequired
|
|
262
|
+
}).isRequired).isRequired
|
|
263
|
+
}).isRequired,
|
|
208
264
|
prevQuickSelect: PropTypes.shape({
|
|
209
265
|
timeTense: PropTypes.string.isRequired,
|
|
210
266
|
timeValue: PropTypes.number.isRequired,
|
|
@@ -226,7 +226,8 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
226
226
|
refreshMinInterval = _this$props2.refreshMinInterval,
|
|
227
227
|
refreshIntervalUnits = _this$props2.refreshIntervalUnits,
|
|
228
228
|
isPaused = _this$props2.isPaused,
|
|
229
|
-
isDisabled = _this$props2.isDisabled
|
|
229
|
+
isDisabled = _this$props2.isDisabled,
|
|
230
|
+
quickSelectButtonProps = _this$props2.quickSelectButtonProps;
|
|
230
231
|
return ___EmotionJSX(EuiQuickSelectPopover, {
|
|
231
232
|
applyRefreshInterval: onRefreshChange ? _this.onRefreshChange : undefined,
|
|
232
233
|
applyTime: _this.applyQuickTime,
|
|
@@ -242,7 +243,8 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
242
243
|
refreshMinInterval: refreshMinInterval,
|
|
243
244
|
intervalUnits: refreshIntervalUnits,
|
|
244
245
|
start: start,
|
|
245
|
-
timeOptions: timeOptions
|
|
246
|
+
timeOptions: timeOptions,
|
|
247
|
+
buttonProps: quickSelectButtonProps
|
|
246
248
|
});
|
|
247
249
|
});
|
|
248
250
|
_defineProperty(_this, "renderDatePickerRange", function () {
|
|
@@ -663,6 +665,10 @@ EuiSuperDatePickerInternal.propTypes = {
|
|
|
663
665
|
*/
|
|
664
666
|
responsive: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.arrayOf(PropTypes.any.isRequired).isRequired])
|
|
665
667
|
}),
|
|
668
|
+
/**
|
|
669
|
+
* Props passed to the quick select button #EuiQuickSelectButtonProps
|
|
670
|
+
*/
|
|
671
|
+
quickSelectButtonProps: PropTypes.any,
|
|
666
672
|
/**
|
|
667
673
|
* By default, relative units will be rounded up to next largest unit of time
|
|
668
674
|
* (for example, 90 minutes will become ~ 2 hours).
|
|
@@ -834,6 +840,10 @@ EuiSuperDatePicker.propTypes = {
|
|
|
834
840
|
iconOnly: PropTypes.bool,
|
|
835
841
|
responsive: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.arrayOf(PropTypes.any.isRequired).isRequired])
|
|
836
842
|
}),
|
|
843
|
+
/**
|
|
844
|
+
* Props passed to the quick select button #EuiQuickSelectButtonProps
|
|
845
|
+
*/
|
|
846
|
+
quickSelectButtonProps: PropTypes.any,
|
|
837
847
|
/**
|
|
838
848
|
* By default, relative units will be rounded up to next largest unit of time
|
|
839
849
|
* (for example, 90 minutes will become ~ 2 hours).
|
|
@@ -141,7 +141,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
141
141
|
},
|
|
142
142
|
role: "option",
|
|
143
143
|
type: "button",
|
|
144
|
-
"aria-selected":
|
|
144
|
+
"aria-selected": checked === 'on',
|
|
145
145
|
className: classes,
|
|
146
146
|
css: cssStyles,
|
|
147
147
|
disabled: disabled,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import {
|
|
10
|
+
import { euiShadowXSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
11
11
|
import { logicalCSS } from '../../global_styling';
|
|
12
12
|
import { shade, transparentize, makeHighContrastColor } from '../../services';
|
|
13
13
|
export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
@@ -24,10 +24,10 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
|
24
24
|
height = _euiHeaderVariables.height,
|
|
25
25
|
padding = _euiHeaderVariables.padding;
|
|
26
26
|
return {
|
|
27
|
-
euiHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;", logicalCSS('height', height), " ", logicalCSS('padding-horizontal', padding), " ", logicalCSS('border-bottom', euiTheme.border.thin), " ",
|
|
27
|
+
euiHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;", logicalCSS('height', height), " ", logicalCSS('padding-horizontal', padding), " ", logicalCSS('border-bottom', euiTheme.border.thin), " ", euiShadowXSmall(euiThemeContext), ";;label:euiHeader;"),
|
|
28
28
|
// Position
|
|
29
29
|
static: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
30
|
-
fixed: /*#__PURE__*/css("z-index:", euiTheme.levels.header, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), ";;label:fixed;"),
|
|
30
|
+
fixed: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) + 1, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), ";;label:fixed;"),
|
|
31
31
|
// Theme
|
|
32
32
|
default: /*#__PURE__*/css("background-color:", euiTheme.colors.emptyShade, ";;label:default;"),
|
|
33
33
|
dark: /*#__PURE__*/css(euiHeaderDarkStyles(euiThemeContext), ";label:dark;")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
var _excluded = ["anchorPosition", "button", "insert", "isOpen", "ownFocus", "children", "className", "closePopover", "panelClassName", "panelPaddingSize", "panelProps", "panelRef", "panelStyle", "popoverScreenReaderText", "popoverRef", "hasArrow", "arrowChildren", "repositionOnScroll", "repositionToCrossAxis", "zIndex", "attachToAnchor", "display", "offset", "onPositionChange", "buffer", "aria-label", "aria-labelledby", "container", "focusTrapProps", "initialFocus", "tabIndex"];
|
|
2
|
+
var _excluded = ["anchorPosition", "button", "insert", "isOpen", "ownFocus", "children", "className", "closePopover", "panelClassName", "panelPaddingSize", "panelProps", "panelRef", "panelStyle", "popoverScreenReaderText", "popoverRef", "hasArrow", "arrowChildren", "repositionOnScroll", "repositionToCrossAxis", "zIndex", "attachToAnchor", "display", "offset", "onPositionChange", "buffer", "aria-label", "aria-labelledby", "aria-live", "container", "focusTrapProps", "initialFocus", "tabIndex"];
|
|
3
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); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -393,6 +393,7 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
393
393
|
buffer = _this$props.buffer,
|
|
394
394
|
ariaLabel = _this$props['aria-label'],
|
|
395
395
|
ariaLabelledBy = _this$props['aria-labelledby'],
|
|
396
|
+
ariaLiveProp = _this$props['aria-live'],
|
|
396
397
|
container = _this$props.container,
|
|
397
398
|
focusTrapProps = _this$props.focusTrapProps,
|
|
398
399
|
initialFocusProp = _this$props.initialFocus,
|
|
@@ -425,7 +426,7 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
425
426
|
};
|
|
426
427
|
}
|
|
427
428
|
} else {
|
|
428
|
-
ariaLive = 'assertive';
|
|
429
|
+
ariaLive = ariaLiveProp !== null && ariaLiveProp !== void 0 ? ariaLiveProp : 'assertive';
|
|
429
430
|
}
|
|
430
431
|
var focusTrapScreenReaderText;
|
|
431
432
|
if (ownFocus || popoverScreenReaderText) {
|
package/eui.d.ts
CHANGED
|
@@ -5289,6 +5289,7 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
5289
5289
|
items: T[];
|
|
5290
5290
|
pagination?: Pagination;
|
|
5291
5291
|
}
|
|
5292
|
+
/** Allows adding an icon with a tooltip to column names */
|
|
5292
5293
|
export type EuiTableColumnNameTooltipProps = {
|
|
5293
5294
|
/** The main content of the tooltip */
|
|
5294
5295
|
content: ReactNode;
|
|
@@ -12886,7 +12887,7 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12886
12887
|
/**
|
|
12887
12888
|
* Top-level item only styles
|
|
12888
12889
|
*/
|
|
12889
|
-
export const euiCollapsibleNavTopItemStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
12890
|
+
export const euiCollapsibleNavTopItemStyles: ({ euiTheme: _euiTheme, }: UseEuiTheme) => {
|
|
12890
12891
|
euiCollapsibleNavTopItem: import("@emotion/utils").SerializedStyles;
|
|
12891
12892
|
};
|
|
12892
12893
|
|
|
@@ -13012,7 +13013,7 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
13012
13013
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group' {
|
|
13013
13014
|
import { FunctionComponent, ReactNode } from 'react';
|
|
13014
13015
|
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item'; type EuiCollapsibleNavGroupProps = _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Required<Pick<EuiCollapsibleNavItemProps, 'items'>> & {
|
|
13015
|
-
header
|
|
13016
|
+
header?: ReactNode;
|
|
13016
13017
|
};
|
|
13017
13018
|
/**
|
|
13018
13019
|
* Internal nav group. Should look the same as an open accordion,
|
|
@@ -13039,7 +13040,7 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
13039
13040
|
*/
|
|
13040
13041
|
isSelected?: boolean;
|
|
13041
13042
|
};
|
|
13042
|
-
export type EuiCollapsibleNavItemProps = _SharedEuiCollapsibleNavItemProps & {
|
|
13043
|
+
export type EuiCollapsibleNavItemProps = _SharedEuiCollapsibleNavItemProps & ExclusiveUnion<{
|
|
13043
13044
|
/**
|
|
13044
13045
|
* Required text to render as the nav item title
|
|
13045
13046
|
*/
|
|
@@ -13058,7 +13059,7 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
13058
13059
|
* Optional props to pass to the title icon
|
|
13059
13060
|
*/
|
|
13060
13061
|
iconProps?: Partial<EuiIconProps>;
|
|
13061
|
-
} & ExclusiveUnion<{
|
|
13062
|
+
}, {}> & ExclusiveUnion<{
|
|
13062
13063
|
/**
|
|
13063
13064
|
* The nav item link.
|
|
13064
13065
|
*
|
|
@@ -18165,12 +18166,14 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
|
|
|
18165
18166
|
}
|
|
18166
18167
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover' {
|
|
18167
18168
|
import { FunctionComponent, ReactNode, ReactElement } from 'react';
|
|
18169
|
+
import { EuiButtonEmptyPropsForButton } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
18168
18170
|
import { EuiQuickSelect } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
18169
18171
|
import { EuiCommonlyUsedTimeRanges } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges';
|
|
18170
18172
|
import { EuiRecentlyUsed } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
18171
18173
|
import { EuiRefreshInterval } from '@elastic/eui/src/components/date_picker/auto_refresh/refresh_interval';
|
|
18172
18174
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18173
18175
|
import { DurationRange, ApplyRefreshInterval, RefreshUnitsOptions, ApplyTime, QuickSelect, QuickSelectPanel, Milliseconds } from '@elastic/eui/src/components/date_picker/types';
|
|
18176
|
+
export type EuiQuickSelectButtonProps = Partial<Omit<EuiButtonEmptyPropsForButton, 'children' | 'isDisabled' | 'isLoading'>>;
|
|
18174
18177
|
export type CustomQuickSelectRenderOptions = {
|
|
18175
18178
|
quickSelect: ReactElement<typeof EuiQuickSelect>;
|
|
18176
18179
|
commonlyUsedRanges: ReactElement<typeof EuiCommonlyUsedTimeRanges>;
|
|
@@ -18194,9 +18197,10 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
18194
18197
|
intervalUnits?: RefreshUnitsOptions;
|
|
18195
18198
|
start: string;
|
|
18196
18199
|
timeOptions: TimeOptions;
|
|
18200
|
+
buttonProps?: EuiQuickSelectButtonProps;
|
|
18197
18201
|
}
|
|
18198
18202
|
export const EuiQuickSelectPopover: FunctionComponent<EuiQuickSelectPopoverProps>;
|
|
18199
|
-
export const EuiQuickSelectPanels: FunctionComponent<Omit<EuiQuickSelectPopoverProps, 'isDisabled'> & {
|
|
18203
|
+
export const EuiQuickSelectPanels: FunctionComponent<Omit<EuiQuickSelectPopoverProps, 'isDisabled' | 'buttonProps'> & {
|
|
18200
18204
|
prevQuickSelect?: QuickSelect;
|
|
18201
18205
|
}>;
|
|
18202
18206
|
|
|
@@ -18438,7 +18442,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18438
18442
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18439
18443
|
import { AsyncInterval } from '@elastic/eui/src/components/date_picker/super_date_picker/async_interval';
|
|
18440
18444
|
import { EuiSuperUpdateButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button';
|
|
18441
|
-
import { CustomQuickSelectRenderOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
18445
|
+
import { CustomQuickSelectRenderOptions, EuiQuickSelectButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
18442
18446
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
18443
18447
|
import { euiSuperDatePickerStyles } from '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker.styles';
|
|
18444
18448
|
export interface OnTimeChangeProps extends DurationRange {
|
|
@@ -18570,6 +18574,10 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18570
18574
|
* Props passed to the update button #EuiSuperUpdateButtonProps
|
|
18571
18575
|
*/
|
|
18572
18576
|
updateButtonProps?: EuiSuperUpdateButtonProps;
|
|
18577
|
+
/**
|
|
18578
|
+
* Props passed to the quick select button #EuiQuickSelectButtonProps
|
|
18579
|
+
*/
|
|
18580
|
+
quickSelectButtonProps?: EuiQuickSelectButtonProps;
|
|
18573
18581
|
/**
|
|
18574
18582
|
* By default, relative units will be rounded up to next largest unit of time
|
|
18575
18583
|
* (for example, 90 minutes will become ~ 2 hours).
|
package/i18ntokens.json
CHANGED
|
@@ -905,14 +905,14 @@
|
|
|
905
905
|
"highlighting": "string",
|
|
906
906
|
"loc": {
|
|
907
907
|
"start": {
|
|
908
|
-
"line":
|
|
908
|
+
"line": 352,
|
|
909
909
|
"column": 12,
|
|
910
|
-
"index":
|
|
910
|
+
"index": 9924
|
|
911
911
|
},
|
|
912
912
|
"end": {
|
|
913
|
-
"line":
|
|
913
|
+
"line": 355,
|
|
914
914
|
"column": 14,
|
|
915
|
-
"index":
|
|
915
|
+
"index": 10047
|
|
916
916
|
}
|
|
917
917
|
},
|
|
918
918
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -923,14 +923,14 @@
|
|
|
923
923
|
"highlighting": "string",
|
|
924
924
|
"loc": {
|
|
925
925
|
"start": {
|
|
926
|
-
"line":
|
|
926
|
+
"line": 365,
|
|
927
927
|
"column": 16,
|
|
928
|
-
"index":
|
|
928
|
+
"index": 10486
|
|
929
929
|
},
|
|
930
930
|
"end": {
|
|
931
|
-
"line":
|
|
931
|
+
"line": 369,
|
|
932
932
|
"column": 18,
|
|
933
|
-
"index":
|
|
933
|
+
"index": 10717
|
|
934
934
|
}
|
|
935
935
|
},
|
|
936
936
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -941,14 +941,14 @@
|
|
|
941
941
|
"highlighting": "string",
|
|
942
942
|
"loc": {
|
|
943
943
|
"start": {
|
|
944
|
-
"line":
|
|
944
|
+
"line": 384,
|
|
945
945
|
"column": 16,
|
|
946
|
-
"index":
|
|
946
|
+
"index": 11146
|
|
947
947
|
},
|
|
948
948
|
"end": {
|
|
949
|
-
"line":
|
|
949
|
+
"line": 390,
|
|
950
950
|
"column": 18,
|
|
951
|
-
"index":
|
|
951
|
+
"index": 11419
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
954
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -959,14 +959,14 @@
|
|
|
959
959
|
"highlighting": "string",
|
|
960
960
|
"loc": {
|
|
961
961
|
"start": {
|
|
962
|
-
"line":
|
|
962
|
+
"line": 419,
|
|
963
963
|
"column": 20,
|
|
964
|
-
"index":
|
|
964
|
+
"index": 12410
|
|
965
965
|
},
|
|
966
966
|
"end": {
|
|
967
|
-
"line":
|
|
967
|
+
"line": 425,
|
|
968
968
|
"column": 22,
|
|
969
|
-
"index":
|
|
969
|
+
"index": 12708
|
|
970
970
|
}
|
|
971
971
|
},
|
|
972
972
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -977,14 +977,14 @@
|
|
|
977
977
|
"highlighting": "string",
|
|
978
978
|
"loc": {
|
|
979
979
|
"start": {
|
|
980
|
-
"line":
|
|
980
|
+
"line": 436,
|
|
981
981
|
"column": 12,
|
|
982
|
-
"index":
|
|
982
|
+
"index": 12912
|
|
983
983
|
},
|
|
984
984
|
"end": {
|
|
985
|
-
"line":
|
|
985
|
+
"line": 440,
|
|
986
986
|
"column": 14,
|
|
987
|
-
"index":
|
|
987
|
+
"index": 13133
|
|
988
988
|
}
|
|
989
989
|
},
|
|
990
990
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -995,14 +995,14 @@
|
|
|
995
995
|
"highlighting": "string",
|
|
996
996
|
"loc": {
|
|
997
997
|
"start": {
|
|
998
|
-
"line":
|
|
998
|
+
"line": 447,
|
|
999
999
|
"column": 10,
|
|
1000
|
-
"index":
|
|
1000
|
+
"index": 13252
|
|
1001
1001
|
},
|
|
1002
1002
|
"end": {
|
|
1003
|
-
"line":
|
|
1003
|
+
"line": 450,
|
|
1004
1004
|
"column": 12,
|
|
1005
|
-
"index":
|
|
1005
|
+
"index": 13392
|
|
1006
1006
|
}
|
|
1007
1007
|
},
|
|
1008
1008
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -1013,14 +1013,14 @@
|
|
|
1013
1013
|
"highlighting": "string",
|
|
1014
1014
|
"loc": {
|
|
1015
1015
|
"start": {
|
|
1016
|
-
"line":
|
|
1016
|
+
"line": 456,
|
|
1017
1017
|
"column": 10,
|
|
1018
|
-
"index":
|
|
1018
|
+
"index": 13505
|
|
1019
1019
|
},
|
|
1020
1020
|
"end": {
|
|
1021
|
-
"line":
|
|
1021
|
+
"line": 459,
|
|
1022
1022
|
"column": 12,
|
|
1023
|
-
"index":
|
|
1023
|
+
"index": 13648
|
|
1024
1024
|
}
|
|
1025
1025
|
},
|
|
1026
1026
|
"filepath": "src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx"
|
|
@@ -3803,14 +3803,14 @@
|
|
|
3803
3803
|
"highlighting": "string",
|
|
3804
3804
|
"loc": {
|
|
3805
3805
|
"start": {
|
|
3806
|
-
"line":
|
|
3806
|
+
"line": 103,
|
|
3807
3807
|
"column": 22,
|
|
3808
|
-
"index":
|
|
3808
|
+
"index": 3370
|
|
3809
3809
|
},
|
|
3810
3810
|
"end": {
|
|
3811
|
-
"line":
|
|
3811
|
+
"line": 106,
|
|
3812
3812
|
"column": 3,
|
|
3813
|
-
"index":
|
|
3813
|
+
"index": 3450
|
|
3814
3814
|
}
|
|
3815
3815
|
},
|
|
3816
3816
|
"filepath": "src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx"
|
|
@@ -5945,14 +5945,14 @@
|
|
|
5945
5945
|
"highlighting": "string",
|
|
5946
5946
|
"loc": {
|
|
5947
5947
|
"start": {
|
|
5948
|
-
"line":
|
|
5948
|
+
"line": 693,
|
|
5949
5949
|
"column": 16,
|
|
5950
|
-
"index":
|
|
5950
|
+
"index": 20609
|
|
5951
5951
|
},
|
|
5952
5952
|
"end": {
|
|
5953
|
-
"line":
|
|
5953
|
+
"line": 696,
|
|
5954
5954
|
"column": 18,
|
|
5955
|
-
"index":
|
|
5955
|
+
"index": 20803
|
|
5956
5956
|
}
|
|
5957
5957
|
},
|
|
5958
5958
|
"filepath": "src/components/popover/popover.tsx"
|
|
@@ -60,6 +60,7 @@ var EuiAccordionTrigger = exports.EuiAccordionTrigger = function EuiAccordionTri
|
|
|
60
60
|
"aria-controls": ariaControlsId,
|
|
61
61
|
"aria-expanded": isOpen,
|
|
62
62
|
"aria-labelledby": buttonId,
|
|
63
|
+
"aria-hidden": buttonIsInteractive ? 'true' : 'false',
|
|
63
64
|
tabIndex: buttonIsInteractive ? -1 : 0
|
|
64
65
|
});
|
|
65
66
|
var button = (0, _react2.jsx)(_accordion_button.EuiAccordionButton, {
|
package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js
CHANGED
|
@@ -84,19 +84,19 @@ EuiCollapsedNavButton.propTypes = {
|
|
|
84
84
|
*/
|
|
85
85
|
isSelected: _propTypes.default.bool,
|
|
86
86
|
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
title: _propTypes.default.string
|
|
87
|
+
* Required text to render as the nav item title
|
|
88
|
+
*/
|
|
89
|
+
title: _propTypes.default.string,
|
|
90
90
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
* Allows customizing the title element.
|
|
92
|
+
* Consider using a heading element for better accessibility.
|
|
93
|
+
* Defaults to an unsemantic `span` or `div`, depending on context.
|
|
94
|
+
*/
|
|
95
95
|
titleElement: _propTypes.default.oneOf(["h2", "h3", "h4", "h5", "h6", "span", "div"]),
|
|
96
96
|
icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "anomalyChart", "anomalySwimLane", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "check", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "diff", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "errorFilled", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logPatternAnalysis", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "minusInSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusInCircle", "plusInCircleFilled", "plusInSquare", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "alert", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
|
|
97
97
|
/**
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
* Optional props to pass to the title icon
|
|
99
|
+
*/
|
|
100
100
|
iconProps: _propTypes.default.any,
|
|
101
101
|
/**
|
|
102
102
|
* The nav item link.
|