@elastic/eui 112.0.0 → 112.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.
- package/es/components/badge/badge.js +12 -3
- package/es/components/badge/badge.styles.js +47 -21
- package/es/components/badge/beta_badge/beta_badge.styles.js +2 -2
- package/es/components/badge/color_utils.js +20 -7
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/es/components/button/button.js +2 -1
- package/es/components/button/button_empty/button_empty.js +2 -1
- package/es/components/context_menu/context_menu.js +20 -7
- package/es/components/date_picker/super_date_picker/super_date_picker.js +7 -0
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +74 -25
- package/es/components/description_list/description_list.js +2 -1
- package/es/components/description_list/description_list_description.js +2 -1
- package/es/components/description_list/description_list_title.js +2 -1
- package/es/components/empty_prompt/empty_prompt.js +2 -1
- package/es/components/flex/flex_grid.js +2 -1
- package/es/components/flyout/flyout.component.js +31 -26
- package/es/components/icon/assets/timeline.js +3 -1
- package/es/components/icon/icon.js +2 -1
- package/es/components/image/image.js +2 -1
- package/es/components/loading/loading_logo.js +2 -1
- package/es/components/page/page_section/page_section.js +2 -1
- package/es/components/page/page_sidebar/page_sidebar.js +2 -1
- package/es/components/page_template/page_template.js +6 -0
- package/es/components/panel/panel.js +4 -3
- package/es/components/selectable/selectable_list/selectable_list.js +8 -2
- package/es/components/selectable/selectable_list/selectable_list_item.js +6 -0
- package/eui.d.ts +236 -441
- package/i18ntokens.json +803 -749
- package/lib/components/badge/badge.js +12 -3
- package/lib/components/badge/badge.styles.js +46 -20
- package/lib/components/badge/beta_badge/beta_badge.styles.js +2 -2
- package/lib/components/badge/color_utils.js +21 -8
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/lib/components/button/button.js +2 -1
- package/lib/components/button/button_empty/button_empty.js +2 -1
- package/lib/components/context_menu/context_menu.js +20 -7
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +7 -0
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
- package/lib/components/description_list/description_list.js +2 -1
- package/lib/components/description_list/description_list_description.js +2 -1
- package/lib/components/description_list/description_list_title.js +2 -1
- package/lib/components/empty_prompt/empty_prompt.js +2 -1
- package/lib/components/flex/flex_grid.js +2 -1
- package/lib/components/flyout/flyout.component.js +38 -33
- package/lib/components/icon/assets/timeline.js +3 -1
- package/lib/components/icon/icon.js +2 -1
- package/lib/components/icon/svgs/timeline.svg +2 -1
- package/lib/components/image/image.js +2 -1
- package/lib/components/loading/loading_logo.js +2 -1
- package/lib/components/page/page_section/page_section.js +2 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +2 -1
- package/lib/components/page_template/page_template.js +6 -0
- package/lib/components/panel/panel.js +4 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +8 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.js +6 -0
- package/optimize/es/components/badge/badge.js +6 -3
- package/optimize/es/components/badge/badge.styles.js +47 -21
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +2 -2
- package/optimize/es/components/badge/color_utils.js +20 -7
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/optimize/es/components/button/button.js +2 -1
- package/optimize/es/components/button/button_empty/button_empty.js +2 -1
- package/optimize/es/components/context_menu/context_menu.js +15 -6
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +74 -25
- package/optimize/es/components/description_list/description_list.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +2 -1
- package/optimize/es/components/description_list/description_list_title.js +2 -1
- package/optimize/es/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/es/components/flex/flex_grid.js +2 -1
- package/optimize/es/components/flyout/flyout.component.js +31 -26
- package/optimize/es/components/icon/assets/timeline.js +3 -1
- package/optimize/es/components/icon/icon.js +2 -1
- package/optimize/es/components/image/image.js +2 -1
- package/optimize/es/components/loading/loading_logo.js +2 -1
- package/optimize/es/components/page/page_section/page_section.js +2 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +2 -1
- package/optimize/es/components/page_template/page_template.js +6 -0
- package/optimize/es/components/panel/panel.js +1 -0
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +2 -2
- package/optimize/lib/components/badge/badge.js +6 -3
- package/optimize/lib/components/badge/badge.styles.js +46 -20
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +2 -2
- package/optimize/lib/components/badge/color_utils.js +21 -8
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/optimize/lib/components/button/button.js +2 -1
- package/optimize/lib/components/button/button_empty/button_empty.js +2 -1
- package/optimize/lib/components/context_menu/context_menu.js +15 -6
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
- package/optimize/lib/components/description_list/description_list.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +2 -1
- package/optimize/lib/components/description_list/description_list_title.js +2 -1
- package/optimize/lib/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/lib/components/flex/flex_grid.js +2 -1
- package/optimize/lib/components/flyout/flyout.component.js +38 -33
- package/optimize/lib/components/icon/assets/timeline.js +3 -1
- package/optimize/lib/components/icon/icon.js +2 -1
- package/optimize/lib/components/icon/svgs/timeline.svg +2 -1
- package/optimize/lib/components/image/image.js +2 -1
- package/optimize/lib/components/loading/loading_logo.js +2 -1
- package/optimize/lib/components/page/page_section/page_section.js +2 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +2 -1
- package/optimize/lib/components/page_template/page_template.js +6 -0
- package/optimize/lib/components/panel/panel.js +1 -0
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +2 -2
- package/package.json +3 -3
- package/test-env/components/badge/badge.js +12 -3
- package/test-env/components/badge/badge.styles.js +46 -20
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +2 -2
- package/test-env/components/badge/color_utils.js +21 -8
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/test-env/components/button/button.js +2 -1
- package/test-env/components/button/button_empty/button_empty.js +2 -1
- package/test-env/components/context_menu/context_menu.js +20 -7
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +7 -0
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
- package/test-env/components/description_list/description_list.js +2 -1
- package/test-env/components/description_list/description_list_description.js +2 -1
- package/test-env/components/description_list/description_list_title.js +2 -1
- package/test-env/components/empty_prompt/empty_prompt.js +2 -1
- package/test-env/components/flex/flex_grid.js +2 -1
- package/test-env/components/flyout/flyout.component.js +38 -33
- package/test-env/components/icon/assets/timeline.js +3 -1
- package/test-env/components/image/image.js +2 -1
- package/test-env/components/loading/loading_logo.js +2 -1
- package/test-env/components/page/page_section/page_section.js +2 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +2 -1
- package/test-env/components/page_template/page_template.js +6 -0
- package/test-env/components/panel/panel.js +4 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +8 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +6 -0
|
@@ -33,6 +33,7 @@ import React, { useEffect, useLayoutEffect, useRef, useMemo, useCallback, useSta
|
|
|
33
33
|
import classnames from 'classnames';
|
|
34
34
|
import { keys, EuiWindowEvent, useCombinedRefs, useEuiMemoizedStyles, useGeneratedHtmlId, useEuiThemeCSSVariables, focusTrapPubSub } from '../../services';
|
|
35
35
|
import { useCurrentSession, useIsInManagedFlyout, useFlyoutLayoutMode, useFlyoutId, useFlyoutWidth, useIsFlyoutActive, useFlyoutManager, useHasPushPadding } from './manager';
|
|
36
|
+
import { LAYOUT_MODE_STACKED } from './manager/const';
|
|
36
37
|
import { EuiFocusTrap } from '../focus_trap';
|
|
37
38
|
import { EuiI18n } from '../i18n';
|
|
38
39
|
import { useResizeObserver } from '../observer/resize_observer';
|
|
@@ -158,6 +159,31 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
158
159
|
var _useResizeObserver = useResizeObserver(isPushed ? resizeRef : null, 'width'),
|
|
159
160
|
width = _useResizeObserver.width;
|
|
160
161
|
|
|
162
|
+
// Memoize flyout identification and relationships to prevent race conditions
|
|
163
|
+
var flyoutIdentity = useMemo(function () {
|
|
164
|
+
if (!flyoutId || !currentSession) {
|
|
165
|
+
return {
|
|
166
|
+
isMainFlyout: false,
|
|
167
|
+
siblingFlyoutId: null,
|
|
168
|
+
hasValidSession: false,
|
|
169
|
+
sessionForWidth: null
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
var siblingFlyoutId = currentSession.mainFlyoutId === flyoutId ? currentSession.childFlyoutId : currentSession.mainFlyoutId;
|
|
173
|
+
return {
|
|
174
|
+
isMainFlyout: currentSession.mainFlyoutId === flyoutId,
|
|
175
|
+
siblingFlyoutId: siblingFlyoutId,
|
|
176
|
+
hasValidSession: true,
|
|
177
|
+
sessionForWidth: currentSession
|
|
178
|
+
};
|
|
179
|
+
}, [flyoutId, currentSession]);
|
|
180
|
+
|
|
181
|
+
// Destructure for easier use
|
|
182
|
+
var siblingFlyoutId = flyoutIdentity.siblingFlyoutId,
|
|
183
|
+
isMainFlyout = flyoutIdentity.isMainFlyout;
|
|
184
|
+
var _siblingFlyoutWidth = useFlyoutWidth(siblingFlyoutId);
|
|
185
|
+
var siblingFlyoutWidth = layoutMode === LAYOUT_MODE_STACKED ? 0 : _siblingFlyoutWidth;
|
|
186
|
+
|
|
161
187
|
/**
|
|
162
188
|
* Effect for adding push padding to body. Using useLayoutEffect to ensure
|
|
163
189
|
* padding changes happen synchronously before child components render -
|
|
@@ -172,12 +198,13 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
172
198
|
var paddingSide = side === 'left' ? 'paddingInlineStart' : 'paddingInlineEnd';
|
|
173
199
|
var cssVarName = "--euiPushFlyoutOffset".concat(side === 'left' ? 'InlineStart' : 'InlineEnd');
|
|
174
200
|
var managerSide = side === 'left' ? 'left' : 'right';
|
|
201
|
+
var paddingWidth = layoutMode === LAYOUT_MODE_STACKED && isMainFlyout && _siblingFlyoutWidth ? _siblingFlyoutWidth : width;
|
|
175
202
|
if (shouldApplyPadding) {
|
|
176
|
-
document.body.style[paddingSide] = "".concat(
|
|
177
|
-
setGlobalCSSVariables(_defineProperty({}, cssVarName, "".concat(
|
|
203
|
+
document.body.style[paddingSide] = "".concat(paddingWidth, "px");
|
|
204
|
+
setGlobalCSSVariables(_defineProperty({}, cssVarName, "".concat(paddingWidth, "px")));
|
|
178
205
|
// Update manager state if in managed context
|
|
179
206
|
if (isInManagedContext && flyoutManagerRef.current) {
|
|
180
|
-
flyoutManagerRef.current.setPushPadding(managerSide,
|
|
207
|
+
flyoutManagerRef.current.setPushPadding(managerSide, paddingWidth);
|
|
181
208
|
}
|
|
182
209
|
} else {
|
|
183
210
|
// Explicitly remove padding when this push flyout becomes inactive
|
|
@@ -198,7 +225,7 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
198
225
|
flyoutManagerRef.current.setPushPadding(managerSide, 0);
|
|
199
226
|
}
|
|
200
227
|
};
|
|
201
|
-
}, [isPushed, isInManagedContext, isActiveManagedFlyout, setGlobalCSSVariables, side, width]);
|
|
228
|
+
}, [isPushed, isInManagedContext, isActiveManagedFlyout, setGlobalCSSVariables, side, width, layoutMode, isMainFlyout, _siblingFlyoutWidth]);
|
|
202
229
|
|
|
203
230
|
/**
|
|
204
231
|
* This class doesn't actually do anything by EUI, but is nice to add for consumers (JIC)
|
|
@@ -210,27 +237,6 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
210
237
|
document.body.classList.remove('euiBody--hasFlyout');
|
|
211
238
|
};
|
|
212
239
|
}, []);
|
|
213
|
-
|
|
214
|
-
// Memoize flyout identification and relationships to prevent race conditions
|
|
215
|
-
var flyoutIdentity = useMemo(function () {
|
|
216
|
-
if (!flyoutId || !currentSession) {
|
|
217
|
-
return {
|
|
218
|
-
isMainFlyout: false,
|
|
219
|
-
siblingFlyoutId: null,
|
|
220
|
-
hasValidSession: false,
|
|
221
|
-
sessionForWidth: null
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
var siblingFlyoutId = currentSession.mainFlyoutId === flyoutId ? currentSession.childFlyoutId : currentSession.mainFlyoutId;
|
|
225
|
-
return {
|
|
226
|
-
siblingFlyoutId: siblingFlyoutId,
|
|
227
|
-
hasValidSession: true,
|
|
228
|
-
sessionForWidth: currentSession
|
|
229
|
-
};
|
|
230
|
-
}, [flyoutId, currentSession]);
|
|
231
|
-
|
|
232
|
-
// Destructure for easier use
|
|
233
|
-
var siblingFlyoutId = flyoutIdentity.siblingFlyoutId;
|
|
234
240
|
var hasChildFlyout = (currentSession === null || currentSession === void 0 ? void 0 : currentSession.childFlyoutId) != null;
|
|
235
241
|
var isChildFlyout = isInManagedContext && hasChildFlyout && (currentSession === null || currentSession === void 0 ? void 0 : currentSession.childFlyoutId) === id;
|
|
236
242
|
var shouldCloseOnEscape = useMemo(function () {
|
|
@@ -262,7 +268,6 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
262
268
|
onClose(event);
|
|
263
269
|
}
|
|
264
270
|
}, [onClose, isPushed, shouldCloseOnEscape]);
|
|
265
|
-
var siblingFlyoutWidth = useFlyoutWidth(siblingFlyoutId);
|
|
266
271
|
var managedFlyoutIndex = currentZIndexRef.current;
|
|
267
272
|
if (isInManagedContext && currentSession) {
|
|
268
273
|
managedFlyoutIndex = currentSession.zIndex;
|
|
@@ -28,8 +28,10 @@ var EuiIconTimeline = function EuiIconTimeline(_ref) {
|
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
30
|
fillRule: "evenodd",
|
|
31
|
-
d: "
|
|
31
|
+
d: "M13 6.5a1.5 1.5 0 0 1 1.413 1H16v1h-1.587a1.5 1.5 0 0 1-2.826 0H9.413a1.5 1.5 0 0 1-2.826 0H4.413a1.5 1.5 0 0 1-2.826 0H0v-1h1.587a1.5 1.5 0 0 1 2.826 0h2.174a1.5 1.5 0 0 1 2.826 0h2.174A1.5 1.5 0 0 1 13 6.5Zm-10 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm5 0a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm5 0a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
|
|
32
32
|
clipRule: "evenodd"
|
|
33
|
+
}), ___EmotionJSX("path", {
|
|
34
|
+
d: "M1 13v2h4v-2H1Zm10 0v2h4v-2h-4ZM6 1v2h4V1H6Zm0 14a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1.5v-1h1v1H5a1 1 0 0 1 1 1v2Zm10 0a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1.5v-1h1v1H15a1 1 0 0 1 1 1v2ZM11 3a1 1 0 0 1-1 1H8.5v1h-1V4H6a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2Z"
|
|
33
35
|
}));
|
|
34
36
|
};
|
|
35
37
|
export var icon = EuiIconTimeline;
|
|
@@ -53,4 +53,5 @@ EuiLoadingLogo.propTypes = {
|
|
|
53
53
|
* While this component should be restricted to using logo icons, it works with any IconType
|
|
54
54
|
*/
|
|
55
55
|
logo: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "alert", "analyzeEvent", "annotation", "anomalyChart", "chartAnomaly", "anomalySwimLane", "apmApp", "apmTrace", "chartWaterfall", "appSearchApp", "apps", "arrowDown", "chevronSingleDown", "arrowLeft", "chevronSingleLeft", "arrowRight", "chevronSingleRight", "arrowUp", "chevronSingleUp", "arrowStart", "chevronLimitLeft", "arrowEnd", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "chartChangePoint", "chartArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "chartBarVerticalStack", "chartGauge", "chartHeatmap", "chartLine", "chartPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkInCircleFilled", "checkCircleFill", "cheer", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "paintBucket", "commandLine", "comment", "compare", "compute", "processor", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "contrastFill", "controls", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crossCircle", "crosshair", "crosshairs", "currency", "money", "cut", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "desktop", "display", "devToolsApp", "diff", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "chevronDoubleLeft", "doubleArrowRight", "chevronDoubleRight", "ellipsis", "editorAlignCenter", "textAlignCenter", "editorAlignLeft", "textAlignLeft", "editorAlignRight", "textAlignRight", "editorBold", "textBold", "editorChecklist", "listCheck", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "textHeading", "editorItalic", "textItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "listNumber", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "redo", "editorStrike", "textStrike", "editorTable", "table", "editorUnderline", "textUnderline", "editorUndo", "undo", "editorUnorderedList", "listBullet", "email", "mail", "empty", "emsApp", "endpoint", "eql", "query", "eraser", "error", "errorFilled", "errorFill", "esqlVis", "exit", "logOut", "expand", "maximize", "expandMini", "export", "exportAction", "upload", "external", "eye", "eyeClosed", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "flag", "fleetApp", "fold", "folder", "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", "hourglass", "if", "info", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "mapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "tableTime", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "queryField", "kqlFunction", "kqlOperand", "queryOperand", "kqlSelector", "querySelector", "kqlValue", "queryValue", "kubernetesNode", "kubernetesPod", "launch", "rocket", "layers", "lensApp", "lettering", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDashed", "lineDot", "lineDotted", "lineSolid", "link", "linkSlash", "list", "listAdd", "lock", "lockOpen", "logPatternAnalysis", "pattern", "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", "queue", "machineLearningApp", "magnet", "magnify", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusInCircle", "minusInCircleFilled", "minusInSquare", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "vectorTriangle", "notebookApp", "number", "offline", "wifiSlash", "online", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusCircle", "plusInCircle", "plusInCircleFilled", "plusInSquare", "plusSquare", "popout", "presentation", "productRobot", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "push", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "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", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starFilledSpace", "starMinusEmpty", "starMinusFill", "starMinusFilled", "starPlusEmpty", "starPlusFill", "starPlusFilled", "stats", "stop", "stopFill", "stopFilled", "stopSlash", "storage", "streamsClassic", "streamsWired", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityHigh", "tableDensityExpanded", "tableDensityLow", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "thermometer", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "refreshTime", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "unarchive", "vector", "vectorSquare", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "chartMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "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.string.isRequired, PropTypes.elementType.isRequired])
|
|
56
|
-
};
|
|
56
|
+
};
|
|
57
|
+
EuiLoadingLogo.displayName = 'EuiLoadingLogo';
|
|
@@ -216,6 +216,7 @@ _EuiPageTemplate.propTypes = {
|
|
|
216
216
|
*/
|
|
217
217
|
component: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.elementType.isRequired])
|
|
218
218
|
};
|
|
219
|
+
_EuiPageTemplate.displayName = 'EuiPageTemplate';
|
|
219
220
|
var _EuiPageSidebar = function _EuiPageSidebar(props) {
|
|
220
221
|
var _useContext = useContext(TemplateContext),
|
|
221
222
|
sidebar = _useContext.sidebar;
|
|
@@ -255,6 +256,7 @@ _EuiPageSidebar.propTypes = {
|
|
|
255
256
|
"data-test-subj": PropTypes.string,
|
|
256
257
|
css: PropTypes.any
|
|
257
258
|
};
|
|
259
|
+
_EuiPageSidebar.displayName = 'EuiPageTemplate.Sidebar';
|
|
258
260
|
var _EuiPageSection = function _EuiPageSection(props) {
|
|
259
261
|
var _useContext2 = useContext(TemplateContext),
|
|
260
262
|
section = _useContext2.section;
|
|
@@ -304,6 +306,7 @@ _EuiPageSection.propTypes = {
|
|
|
304
306
|
*/
|
|
305
307
|
component: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.elementType.isRequired])
|
|
306
308
|
};
|
|
309
|
+
_EuiPageSection.displayName = 'EuiPageTemplate.Section';
|
|
307
310
|
var _EuiPageHeader = function _EuiPageHeader(props) {
|
|
308
311
|
var _useContext3 = useContext(TemplateContext),
|
|
309
312
|
header = _useContext3.header;
|
|
@@ -337,6 +340,7 @@ _EuiPageHeader.propTypes = {
|
|
|
337
340
|
*/
|
|
338
341
|
bottomBorder: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.oneOf(["extended"])])
|
|
339
342
|
};
|
|
343
|
+
_EuiPageHeader.displayName = 'EuiPageTemplate.Header';
|
|
340
344
|
var _EuiPageEmptyPrompt = function _EuiPageEmptyPrompt(props) {
|
|
341
345
|
var _useContext4 = useContext(TemplateContext),
|
|
342
346
|
emptyPrompt = _useContext4.emptyPrompt;
|
|
@@ -361,6 +365,7 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
361
365
|
component: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.elementType.isRequired]),
|
|
362
366
|
panelled: PropTypes.bool
|
|
363
367
|
};
|
|
368
|
+
_EuiPageEmptyPrompt.displayName = 'EuiPageTemplate.EmptyPrompt';
|
|
364
369
|
var _EuiPageBottomBar = function _EuiPageBottomBar(props) {
|
|
365
370
|
var _useContext5 = useContext(TemplateContext),
|
|
366
371
|
bottomBar = _useContext5.bottomBar;
|
|
@@ -380,6 +385,7 @@ _EuiPageBottomBar.propTypes = {
|
|
|
380
385
|
*/
|
|
381
386
|
restrictWidth: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.number.isRequired, PropTypes.string.isRequired])
|
|
382
387
|
};
|
|
388
|
+
_EuiPageBottomBar.displayName = 'EuiPageTemplate.BottomBar';
|
|
383
389
|
export var EuiPageTemplate = Object.assign(_EuiPageTemplate, {
|
|
384
390
|
Sidebar: _EuiPageSidebar,
|
|
385
391
|
Header: _EuiPageHeader,
|
|
@@ -89,9 +89,6 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
89
89
|
css: cssStyles
|
|
90
90
|
}, rest), children);
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
// Do not render a high contrast border if the panel is transparent
|
|
94
|
-
// and does not have a default contrast border
|
|
95
92
|
EuiPanel.propTypes = {
|
|
96
93
|
element: PropTypes.oneOfType([PropTypes.oneOf(["button"]), PropTypes.oneOf(["div"])]),
|
|
97
94
|
/**
|
|
@@ -148,6 +145,10 @@ EuiPanel.propTypes = {
|
|
|
148
145
|
"data-test-subj": PropTypes.string,
|
|
149
146
|
css: PropTypes.any
|
|
150
147
|
};
|
|
148
|
+
EuiPanel.displayName = 'EuiPanel';
|
|
149
|
+
|
|
150
|
+
// Do not render a high contrast border if the panel is transparent
|
|
151
|
+
// and does not have a default contrast border
|
|
151
152
|
export var _canRenderHighContrastBorder = function _canRenderHighContrastBorder(_ref2) {
|
|
152
153
|
var color = _ref2.color,
|
|
153
154
|
hasBorder = _ref2.hasBorder;
|
|
@@ -491,8 +491,8 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
491
491
|
(_this$listRef = this.listRef) === null || _this$listRef === void 0 || _this$listRef.scrollToItem(activeOptionIndex, 'auto');
|
|
492
492
|
} else {
|
|
493
493
|
var _this$listBoxRef;
|
|
494
|
-
var activeOptionId =
|
|
495
|
-
var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
|
|
494
|
+
var activeOptionId = makeOptionId(activeOptionIndex);
|
|
495
|
+
var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector("[id=\"".concat(activeOptionId, "\"]"));
|
|
496
496
|
if (activeOptionEl) {
|
|
497
497
|
var _activeOptionEl$scrol;
|
|
498
498
|
// TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
|
|
@@ -630,6 +630,12 @@ EuiSelectableList.propTypes = {
|
|
|
630
630
|
* Accepts either our palette colors (primary, success ..etc) or a hex value `#FFFFFF`, `#000`.
|
|
631
631
|
*/
|
|
632
632
|
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
633
|
+
/**
|
|
634
|
+
* Whether the badge should use filled (more intense) colors.
|
|
635
|
+
* It has no effect when a non-named color is passed to the `color` prop.
|
|
636
|
+
* @default false
|
|
637
|
+
*/
|
|
638
|
+
fill: PropTypes.bool,
|
|
633
639
|
/**
|
|
634
640
|
* Will override any color passed through the `color` prop.
|
|
635
641
|
*/
|
|
@@ -317,6 +317,12 @@ EuiSelectableListItem.propTypes = {
|
|
|
317
317
|
* Accepts either our palette colors (primary, success ..etc) or a hex value `#FFFFFF`, `#000`.
|
|
318
318
|
*/
|
|
319
319
|
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
320
|
+
/**
|
|
321
|
+
* Whether the badge should use filled (more intense) colors.
|
|
322
|
+
* It has no effect when a non-named color is passed to the `color` prop.
|
|
323
|
+
* @default false
|
|
324
|
+
*/
|
|
325
|
+
fill: PropTypes.bool,
|
|
320
326
|
/**
|
|
321
327
|
* Will override any color passed through the `color` prop.
|
|
322
328
|
*/
|