@elastic/eui 94.2.0 → 94.2.1-backport.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.
@@ -1,4 +1,4 @@
1
- var _excluded = ["className", "component", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap"];
1
+ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap", "component"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -10,7 +10,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  * Side Public License, v 1.
11
11
  */
12
12
 
13
- import React, { forwardRef } from 'react';
13
+ import React, { forwardRef, useEffect } from 'react';
14
+ import PropTypes from "prop-types";
14
15
  import classNames from 'classnames';
15
16
  import { useEuiMemoizedStyles } from '../../services';
16
17
  import { euiFlexGroupStyles } from './flex_group.styles';
@@ -19,10 +20,10 @@ export var GUTTER_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'];
19
20
  export var ALIGN_ITEMS = ['stretch', 'flexStart', 'flexEnd', 'center', 'baseline'];
20
21
  export var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'spaceAround', 'spaceEvenly'];
21
22
  export var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
22
- var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
23
- var className = _ref.className,
24
- _ref$component = _ref.component,
25
- component = _ref$component === void 0 ? 'div' : _ref$component,
23
+ export var COMPONENT_TYPES = ['div', 'span'];
24
+ export var EuiFlexGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
25
+ var children = _ref.children,
26
+ className = _ref.className,
26
27
  _ref$gutterSize = _ref.gutterSize,
27
28
  gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
28
29
  _ref$alignItems = _ref.alignItems,
@@ -35,25 +36,38 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
35
36
  direction = _ref$direction === void 0 ? 'row' : _ref$direction,
36
37
  _ref$wrap = _ref.wrap,
37
38
  wrap = _ref$wrap === void 0 ? false : _ref$wrap,
39
+ _ref$component = _ref.component,
40
+ component = _ref$component === void 0 ? 'div' : _ref$component,
38
41
  rest = _objectWithoutProperties(_ref, _excluded);
39
42
  var styles = useEuiMemoizedStyles(euiFlexGroupStyles);
40
43
  var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
41
44
  var classes = classNames('euiFlexGroup', className);
42
-
43
- // Cast the resolved component prop type to ComponentType to help TS
44
- // process multiple infers and the overall type complexity.
45
- // This might not be needed in TypeScript 5
46
- var Component = component;
47
- return ___EmotionJSX(Component, _extends({}, rest, {
48
- ref: ref,
45
+ useEffect(function () {
46
+ if (!COMPONENT_TYPES.includes(component)) {
47
+ throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
48
+ }
49
+ }, [component]);
50
+ return component === 'span' ? ___EmotionJSX("span", _extends({
51
+ css: cssStyles,
52
+ className: classes,
53
+ ref: ref
54
+ }, rest), children) : ___EmotionJSX("div", _extends({
55
+ css: cssStyles,
49
56
  className: classes,
50
- css: cssStyles
51
- }));
57
+ ref: ref
58
+ }, rest), children);
59
+ });
60
+ EuiFlexGroup.propTypes = {
61
+ alignItems: PropTypes.any,
62
+ component: PropTypes.any,
63
+ direction: PropTypes.any,
64
+ gutterSize: PropTypes.any,
65
+ justifyContent: PropTypes.any,
66
+ responsive: PropTypes.bool,
67
+ wrap: PropTypes.bool,
68
+ className: PropTypes.string,
69
+ "aria-label": PropTypes.string,
70
+ "data-test-subj": PropTypes.string,
71
+ css: PropTypes.any
52
72
  };
53
-
54
- // Cast forwardRef return type to work with the generic TComponent type
55
- // and not fallback to implicit any typing
56
- export var EuiFlexGroup = /*#__PURE__*/forwardRef(EuiFlexGroupInternal);
57
-
58
- // Cast is required here because of the cast above
59
73
  EuiFlexGroup.displayName = 'EuiFlexGroup';
@@ -10,18 +10,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  * Side Public License, v 1.
11
11
  */
12
12
 
13
- import React, { useEffect, forwardRef } from 'react';
13
+ import React, { useEffect } from 'react';
14
+ import PropTypes from "prop-types";
14
15
  import classNames from 'classnames';
15
16
  import { euiFlexItemStyles as styles } from './flex_item.styles';
16
17
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
18
  var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
18
- var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
19
+ export var EuiFlexItem = function EuiFlexItem(_ref) {
19
20
  var children = _ref.children,
20
21
  className = _ref.className,
21
22
  _ref$grow = _ref.grow,
22
23
  grow = _ref$grow === void 0 ? true : _ref$grow,
23
24
  _ref$component = _ref.component,
24
- component = _ref$component === void 0 ? 'div' : _ref$component,
25
+ Component = _ref$component === void 0 ? 'div' : _ref$component,
25
26
  rest = _objectWithoutProperties(_ref, _excluded);
26
27
  useEffect(function () {
27
28
  if (VALID_GROW_VALUES.indexOf(grow) === -1) {
@@ -30,21 +31,20 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
30
31
  }, [grow]);
31
32
  var cssStyles = [styles.euiFlexItem, !grow ? styles.growZero : styles.grow, grow && (typeof grow === 'number' ? styles.growSizes[grow] : styles.growSizes['1'])];
32
33
  var classes = classNames('euiFlexItem', className);
33
-
34
- // Cast the resolved component prop type to ComponentType to help TS
35
- // process multiple infers and the overall type complexity.
36
- // This might not be needed in TypeScript 5
37
- var Component = component;
38
- return ___EmotionJSX(Component, _extends({}, rest, {
39
- ref: ref,
34
+ return ___EmotionJSX(Component, _extends({
40
35
  css: cssStyles,
41
36
  className: classes
42
- }), children);
37
+ }, rest), children);
43
38
  };
44
-
45
- // Cast forwardRef return type to work with the generic TComponent type
46
- // and not fallback to implicit any typing
47
- export var EuiFlexItem = /*#__PURE__*/forwardRef(EuiFlexItemInternal);
48
-
49
- // Cast is required here because of the cast above
50
- EuiFlexItem.displayName = 'EuiFlexItem';
39
+ EuiFlexItem.propTypes = {
40
+ className: PropTypes.string,
41
+ "aria-label": PropTypes.string,
42
+ "data-test-subj": PropTypes.string,
43
+ css: PropTypes.any,
44
+ grow: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, null])]),
45
+ // Leave this as an inline string enum so the props table properly parses it
46
+ /**
47
+ * @default div
48
+ */
49
+ component: PropTypes.any
50
+ };
@@ -95,7 +95,7 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
95
95
  // Only track selection state if it's not controlled externally.
96
96
  var selectedTabId;
97
97
  if (!_selectedTab) {
98
- selectedTabId = initialSelectedTab && initialSelectedTab.id || tabs[0].id;
98
+ selectedTabId = (initialSelectedTab === null || initialSelectedTab === void 0 ? void 0 : initialSelectedTab.id) || tabs[0].id;
99
99
  }
100
100
  _this.state = {
101
101
  selectedTabId: selectedTabId,
@@ -121,10 +121,10 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
121
121
  // Allow the consumer to control tab selection.
122
122
  var selectedTab = externalSelectedTab || tabs.find(function (tab) {
123
123
  return tab.id === _this2.state.selectedTabId;
124
- });
125
- var _ref = selectedTab,
126
- selectedTabContent = _ref.content,
127
- selectedTabId = _ref.id;
124
+ }) || tabs[0]; // Fall back to the first tab if a selected tab can't be found
125
+
126
+ var selectedTabContent = selectedTab.content,
127
+ selectedTabId = selectedTab.id;
128
128
  return ___EmotionJSX("div", _extends({
129
129
  className: className
130
130
  }, rest), ___EmotionJSX(EuiTabs, {
package/eui.d.ts CHANGED
@@ -1865,68 +1865,25 @@ declare module '@elastic/eui/src/components/flex/flex_group.styles' {
1865
1865
 
1866
1866
  }
1867
1867
  declare module '@elastic/eui/src/components/flex/flex_group' {
1868
- import React, { ComponentPropsWithoutRef, ElementType, ForwardedRef, Ref } from 'react';
1868
+ import React, { HTMLAttributes } from 'react';
1869
1869
  import { CommonProps } from '@elastic/eui/src/components/common';
1870
1870
  export const GUTTER_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
1871
1871
  export type EuiFlexGroupGutterSize = (typeof GUTTER_SIZES)[number];
1872
1872
  export const ALIGN_ITEMS: readonly ["stretch", "flexStart", "flexEnd", "center", "baseline"];
1873
1873
  export type FlexGroupAlignItems = (typeof ALIGN_ITEMS)[number];
1874
1874
  export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"]; type FlexGroupJustifyContent = (typeof JUSTIFY_CONTENTS)[number];
1875
- export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"]; type FlexGroupDirection = (typeof DIRECTIONS)[number]; type ComponentPropType = ElementType<CommonProps>;
1876
- export type EuiFlexGroupProps<TComponent extends ComponentPropType = 'div'> = ComponentPropsWithoutRef<TComponent> & {
1875
+ export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"]; type FlexGroupDirection = (typeof DIRECTIONS)[number];
1876
+ export const COMPONENT_TYPES: readonly ["div", "span"]; type FlexGroupComponentType = (typeof COMPONENT_TYPES)[number];
1877
+ export interface EuiFlexGroupProps extends CommonProps, HTMLAttributes<HTMLDivElement | HTMLSpanElement> {
1877
1878
  alignItems?: FlexGroupAlignItems;
1878
- /**
1879
- * Customize the component type that is rendered.
1880
- *
1881
- * It can be any valid React component type like a tag name string
1882
- * such as `'div'` or `'span'`, a React component (a function, a class,
1883
- * or an exotic component like `memo()`).
1884
- *
1885
- * `<EuiFlexGroup>` accepts and forwards all extra props to the custom
1886
- * component.
1887
- *
1888
- * @example
1889
- * // Renders a <button> element
1890
- * <EuiFlexGroup component="button">
1891
- * Submit form
1892
- * </EuiFlexGroup>
1893
- * @default "div"
1894
- */
1895
- component?: TComponent;
1879
+ component?: FlexGroupComponentType;
1896
1880
  direction?: FlexGroupDirection;
1897
1881
  gutterSize?: EuiFlexGroupGutterSize;
1898
1882
  justifyContent?: FlexGroupJustifyContent;
1899
1883
  responsive?: boolean;
1900
1884
  wrap?: boolean;
1901
- }; const EuiFlexGroupInternal: <TComponent extends ComponentPropType>({ className, component, gutterSize, alignItems, responsive, justifyContent, direction, wrap, ...rest }: EuiFlexGroupProps<TComponent>, ref: React.ForwardedRef<TComponent>) => React.JSX.Element;
1902
- export const EuiFlexGroup: <TComponent extends ComponentPropType>(props: React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
1903
- alignItems?: "center" | "stretch" | "baseline" | "flexStart" | "flexEnd" | undefined;
1904
- /**
1905
- * Customize the component type that is rendered.
1906
- *
1907
- * It can be any valid React component type like a tag name string
1908
- * such as `'div'` or `'span'`, a React component (a function, a class,
1909
- * or an exotic component like `memo()`).
1910
- *
1911
- * `<EuiFlexGroup>` accepts and forwards all extra props to the custom
1912
- * component.
1913
- *
1914
- * @example
1915
- * // Renders a <button> element
1916
- * <EuiFlexGroup component="button">
1917
- * Submit form
1918
- * </EuiFlexGroup>
1919
- * @default "div"
1920
- */
1921
- component?: TComponent | undefined;
1922
- direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
1923
- gutterSize?: "xs" | "s" | "m" | "l" | "xl" | "none" | undefined;
1924
- justifyContent?: "center" | "flexStart" | "flexEnd" | "spaceBetween" | "spaceAround" | "spaceEvenly" | undefined;
1925
- responsive?: boolean | undefined;
1926
- wrap?: boolean | undefined;
1927
- } & {
1928
- ref?: React.Ref<(<TComponent_1 extends ComponentPropType>({ className, component, gutterSize, alignItems, responsive, justifyContent, direction, wrap, ...rest }: EuiFlexGroupProps<TComponent_1>, ref: React.ForwardedRef<TComponent_1>) => React.JSX.Element)> | undefined;
1929
- }) => ReturnType<typeof EuiFlexGroupInternal>;
1885
+ }
1886
+ export const EuiFlexGroup: React.ForwardRefExoticComponent<EuiFlexGroupProps & React.RefAttributes<HTMLDivElement | HTMLSpanElement>>;
1930
1887
  export {};
1931
1888
 
1932
1889
  }
@@ -2027,55 +1984,16 @@ declare module '@elastic/eui/src/components/flex/flex_item.styles' {
2027
1984
 
2028
1985
  }
2029
1986
  declare module '@elastic/eui/src/components/flex/flex_item' {
2030
- import React, { ElementType, ComponentPropsWithoutRef, PropsWithChildren, ForwardedRef, Ref } from 'react';
2031
- import { CommonProps } from '@elastic/eui/src/components/common'; type ComponentPropType = ElementType<CommonProps>;
2032
- export type EuiFlexItemProps<TComponent extends ComponentPropType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
1987
+ import { HTMLAttributes, FunctionComponent, ElementType } from 'react';
1988
+ import { CommonProps } from '@elastic/eui/src/components/common';
1989
+ export interface EuiFlexItemProps {
2033
1990
  grow?: boolean | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null;
2034
1991
  /**
2035
- * Customize the component type that is rendered.
2036
- *
2037
- * It can be any valid React component type like a tag name string
2038
- * such as `'div'` or `'span'`, a React component (a function, a class,
2039
- * or an exotic component like `memo()`).
2040
- *
2041
- * `<EuiFlexGroup>` accepts and forwards all extra props to the custom
2042
- * component.
2043
- *
2044
- * @example
2045
- * // Renders a <button> element
2046
- * <EuiFlexItem component="button">
2047
- * Submit form
2048
- * </EuiFlexGroup>
2049
- * @default "div"
2050
- */
2051
- component?: TComponent;
2052
- }; const EuiFlexItemInternal: <TComponent extends ComponentPropType>({ children, className, grow, component, ...rest }: EuiFlexItemProps<TComponent>, ref: React.ForwardedRef<TComponent>) => React.JSX.Element;
2053
- export const EuiFlexItem: <TComponent extends ComponentPropType>(props: {
2054
- children?: React.ReactNode;
2055
- } & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
2056
- grow?: boolean | 0 | 5 | 2 | 10 | 3 | 8 | 9 | 1 | 4 | 6 | 7 | null | undefined;
2057
- /**
2058
- * Customize the component type that is rendered.
2059
- *
2060
- * It can be any valid React component type like a tag name string
2061
- * such as `'div'` or `'span'`, a React component (a function, a class,
2062
- * or an exotic component like `memo()`).
2063
- *
2064
- * `<EuiFlexGroup>` accepts and forwards all extra props to the custom
2065
- * component.
2066
- *
2067
- * @example
2068
- * // Renders a <button> element
2069
- * <EuiFlexItem component="button">
2070
- * Submit form
2071
- * </EuiFlexGroup>
2072
- * @default "div"
1992
+ * @default div
2073
1993
  */
2074
- component?: TComponent | undefined;
2075
- } & {
2076
- ref?: React.Ref<(<TComponent_1 extends ComponentPropType>({ children, className, grow, component, ...rest }: EuiFlexItemProps<TComponent_1>, ref: React.ForwardedRef<TComponent_1>) => React.JSX.Element)> | undefined;
2077
- }) => ReturnType<typeof EuiFlexItemInternal>;
2078
- export {};
1994
+ component?: ElementType;
1995
+ }
1996
+ export const EuiFlexItem: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement | HTMLSpanElement> & EuiFlexItemProps>;
2079
1997
 
2080
1998
  }
2081
1999
  declare module '@elastic/eui/src/components/flex' {
@@ -2742,7 +2660,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
2742
2660
  import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
2743
2661
  export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
2744
2662
  import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
2745
- export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "push" | "cut" | "pause" | "play" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plus" | "popout" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
2663
+ export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
2746
2664
  export type EuiIconType = keyof typeof typeToPathMap;
2747
2665
  export type IconType = EuiIconType | string | ComponentType;
2748
2666
  export type IconColor = string | NamedColor;
@@ -2785,7 +2703,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
2785
2703
  isLoading: boolean;
2786
2704
  neededLoading: boolean;
2787
2705
  }
2788
- export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "push" | "cut" | "pause" | "play" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plus" | "popout" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector" | undefined) => void;
2706
+ export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "email" | "list" | "user" | "alert" | "document" | "grid" | "copy" | "scale" | "wordWrap" | "grab" | "help" | "invert" | "spaces" | "dot" | "warning" | "error" | "download" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "diff" | "discuss" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "empty" | "endpoint" | "eql" | "eraser" | "esqlVis" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector" | undefined) => void;
2789
2707
  export const appendIconComponentCache: (iconTypeToIconComponentMap: {
2790
2708
  [iconType: string]: React.ComponentType<{}>;
2791
2709
  }) => void;
@@ -4,13 +4,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.ALIGN_ITEMS = void 0;
7
+ exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.COMPONENT_TYPES = exports.ALIGN_ITEMS = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _services = require("../../services");
11
12
  var _flex_group = require("./flex_group.styles");
12
13
  var _react2 = require("@emotion/react");
13
- var _excluded = ["className", "component", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap"];
14
+ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap", "component"];
14
15
  /*
15
16
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
16
17
  * or more contributor license agreements. Licensed under the Elastic License
@@ -32,10 +33,11 @@ var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'space
32
33
  exports.JUSTIFY_CONTENTS = JUSTIFY_CONTENTS;
33
34
  var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
34
35
  exports.DIRECTIONS = DIRECTIONS;
35
- var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
36
- var className = _ref.className,
37
- _ref$component = _ref.component,
38
- component = _ref$component === void 0 ? 'div' : _ref$component,
36
+ var COMPONENT_TYPES = ['div', 'span'];
37
+ exports.COMPONENT_TYPES = COMPONENT_TYPES;
38
+ var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
39
+ var children = _ref.children,
40
+ className = _ref.className,
39
41
  _ref$gutterSize = _ref.gutterSize,
40
42
  gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
41
43
  _ref$alignItems = _ref.alignItems,
@@ -48,26 +50,39 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
48
50
  direction = _ref$direction === void 0 ? 'row' : _ref$direction,
49
51
  _ref$wrap = _ref.wrap,
50
52
  wrap = _ref$wrap === void 0 ? false : _ref$wrap,
53
+ _ref$component = _ref.component,
54
+ component = _ref$component === void 0 ? 'div' : _ref$component,
51
55
  rest = _objectWithoutProperties(_ref, _excluded);
52
56
  var styles = (0, _services.useEuiMemoizedStyles)(_flex_group.euiFlexGroupStyles);
53
57
  var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
54
58
  var classes = (0, _classnames.default)('euiFlexGroup', className);
55
-
56
- // Cast the resolved component prop type to ComponentType to help TS
57
- // process multiple infers and the overall type complexity.
58
- // This might not be needed in TypeScript 5
59
- var Component = component;
60
- return (0, _react2.jsx)(Component, _extends({}, rest, {
61
- ref: ref,
59
+ (0, _react.useEffect)(function () {
60
+ if (!COMPONENT_TYPES.includes(component)) {
61
+ throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
62
+ }
63
+ }, [component]);
64
+ return component === 'span' ? (0, _react2.jsx)("span", _extends({
65
+ css: cssStyles,
62
66
  className: classes,
63
- css: cssStyles
64
- }));
65
- };
66
-
67
- // Cast forwardRef return type to work with the generic TComponent type
68
- // and not fallback to implicit any typing
69
- var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexGroupInternal);
70
-
71
- // Cast is required here because of the cast above
67
+ ref: ref
68
+ }, rest), children) : (0, _react2.jsx)("div", _extends({
69
+ css: cssStyles,
70
+ className: classes,
71
+ ref: ref
72
+ }, rest), children);
73
+ });
72
74
  exports.EuiFlexGroup = EuiFlexGroup;
75
+ EuiFlexGroup.propTypes = {
76
+ alignItems: _propTypes.default.any,
77
+ component: _propTypes.default.any,
78
+ direction: _propTypes.default.any,
79
+ gutterSize: _propTypes.default.any,
80
+ justifyContent: _propTypes.default.any,
81
+ responsive: _propTypes.default.bool,
82
+ wrap: _propTypes.default.bool,
83
+ className: _propTypes.default.string,
84
+ "aria-label": _propTypes.default.string,
85
+ "data-test-subj": _propTypes.default.string,
86
+ css: _propTypes.default.any
87
+ };
73
88
  EuiFlexGroup.displayName = 'EuiFlexGroup';
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.EuiFlexItem = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _flex_item = require("./flex_item.styles");
11
12
  var _react2 = require("@emotion/react");
@@ -24,13 +25,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
24
25
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
26
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
27
  var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
27
- var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
28
+ var EuiFlexItem = function EuiFlexItem(_ref) {
28
29
  var children = _ref.children,
29
30
  className = _ref.className,
30
31
  _ref$grow = _ref.grow,
31
32
  grow = _ref$grow === void 0 ? true : _ref$grow,
32
33
  _ref$component = _ref.component,
33
- component = _ref$component === void 0 ? 'div' : _ref$component,
34
+ Component = _ref$component === void 0 ? 'div' : _ref$component,
34
35
  rest = _objectWithoutProperties(_ref, _excluded);
35
36
  (0, _react.useEffect)(function () {
36
37
  if (VALID_GROW_VALUES.indexOf(grow) === -1) {
@@ -39,22 +40,21 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
39
40
  }, [grow]);
40
41
  var cssStyles = [_flex_item.euiFlexItemStyles.euiFlexItem, !grow ? _flex_item.euiFlexItemStyles.growZero : _flex_item.euiFlexItemStyles.grow, grow && (typeof grow === 'number' ? _flex_item.euiFlexItemStyles.growSizes[grow] : _flex_item.euiFlexItemStyles.growSizes['1'])];
41
42
  var classes = (0, _classnames.default)('euiFlexItem', className);
42
-
43
- // Cast the resolved component prop type to ComponentType to help TS
44
- // process multiple infers and the overall type complexity.
45
- // This might not be needed in TypeScript 5
46
- var Component = component;
47
- return (0, _react2.jsx)(Component, _extends({}, rest, {
48
- ref: ref,
43
+ return (0, _react2.jsx)(Component, _extends({
49
44
  css: cssStyles,
50
45
  className: classes
51
- }), children);
46
+ }, rest), children);
52
47
  };
53
-
54
- // Cast forwardRef return type to work with the generic TComponent type
55
- // and not fallback to implicit any typing
56
- var EuiFlexItem = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexItemInternal);
57
-
58
- // Cast is required here because of the cast above
59
48
  exports.EuiFlexItem = EuiFlexItem;
60
- EuiFlexItem.displayName = 'EuiFlexItem';
49
+ EuiFlexItem.propTypes = {
50
+ className: _propTypes.default.string,
51
+ "aria-label": _propTypes.default.string,
52
+ "data-test-subj": _propTypes.default.string,
53
+ css: _propTypes.default.any,
54
+ grow: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, null])]),
55
+ // Leave this as an inline string enum so the props table properly parses it
56
+ /**
57
+ * @default div
58
+ */
59
+ component: _propTypes.default.any
60
+ };
@@ -103,7 +103,7 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
103
103
  // Only track selection state if it's not controlled externally.
104
104
  var selectedTabId;
105
105
  if (!_selectedTab) {
106
- selectedTabId = initialSelectedTab && initialSelectedTab.id || tabs[0].id;
106
+ selectedTabId = (initialSelectedTab === null || initialSelectedTab === void 0 ? void 0 : initialSelectedTab.id) || tabs[0].id;
107
107
  }
108
108
  _this.state = {
109
109
  selectedTabId: selectedTabId,
@@ -129,10 +129,10 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
129
129
  // Allow the consumer to control tab selection.
130
130
  var selectedTab = externalSelectedTab || tabs.find(function (tab) {
131
131
  return tab.id === _this2.state.selectedTabId;
132
- });
133
- var _ref = selectedTab,
134
- selectedTabContent = _ref.content,
135
- selectedTabId = _ref.id;
132
+ }) || tabs[0]; // Fall back to the first tab if a selected tab can't be found
133
+
134
+ var selectedTabContent = selectedTab.content,
135
+ selectedTabId = selectedTab.id;
136
136
  return (0, _react2.jsx)("div", _extends({
137
137
  className: className
138
138
  }, rest), (0, _react2.jsx)(_tabs.EuiTabs, {
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["className", "component", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap"];
3
+ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap", "component"];
4
4
  /*
5
5
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
6
  * or more contributor license agreements. Licensed under the Elastic License
@@ -9,7 +9,7 @@ var _excluded = ["className", "component", "gutterSize", "alignItems", "responsi
9
9
  * Side Public License, v 1.
10
10
  */
11
11
 
12
- import React, { forwardRef } from 'react';
12
+ import React, { forwardRef, useEffect } from 'react';
13
13
  import classNames from 'classnames';
14
14
  import { useEuiMemoizedStyles } from '../../services';
15
15
  import { euiFlexGroupStyles } from './flex_group.styles';
@@ -18,10 +18,10 @@ export var GUTTER_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'];
18
18
  export var ALIGN_ITEMS = ['stretch', 'flexStart', 'flexEnd', 'center', 'baseline'];
19
19
  export var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'spaceAround', 'spaceEvenly'];
20
20
  export var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
21
- var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
22
- var className = _ref.className,
23
- _ref$component = _ref.component,
24
- component = _ref$component === void 0 ? 'div' : _ref$component,
21
+ export var COMPONENT_TYPES = ['div', 'span'];
22
+ export var EuiFlexGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
+ var children = _ref.children,
24
+ className = _ref.className,
25
25
  _ref$gutterSize = _ref.gutterSize,
26
26
  gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
27
27
  _ref$alignItems = _ref.alignItems,
@@ -34,25 +34,25 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
34
34
  direction = _ref$direction === void 0 ? 'row' : _ref$direction,
35
35
  _ref$wrap = _ref.wrap,
36
36
  wrap = _ref$wrap === void 0 ? false : _ref$wrap,
37
+ _ref$component = _ref.component,
38
+ component = _ref$component === void 0 ? 'div' : _ref$component,
37
39
  rest = _objectWithoutProperties(_ref, _excluded);
38
40
  var styles = useEuiMemoizedStyles(euiFlexGroupStyles);
39
41
  var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
40
42
  var classes = classNames('euiFlexGroup', className);
41
-
42
- // Cast the resolved component prop type to ComponentType to help TS
43
- // process multiple infers and the overall type complexity.
44
- // This might not be needed in TypeScript 5
45
- var Component = component;
46
- return ___EmotionJSX(Component, _extends({}, rest, {
47
- ref: ref,
43
+ useEffect(function () {
44
+ if (!COMPONENT_TYPES.includes(component)) {
45
+ throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
46
+ }
47
+ }, [component]);
48
+ return component === 'span' ? ___EmotionJSX("span", _extends({
49
+ css: cssStyles,
48
50
  className: classes,
49
- css: cssStyles
50
- }));
51
- };
52
-
53
- // Cast forwardRef return type to work with the generic TComponent type
54
- // and not fallback to implicit any typing
55
- export var EuiFlexGroup = /*#__PURE__*/forwardRef(EuiFlexGroupInternal);
56
-
57
- // Cast is required here because of the cast above
51
+ ref: ref
52
+ }, rest), children) : ___EmotionJSX("div", _extends({
53
+ css: cssStyles,
54
+ className: classes,
55
+ ref: ref
56
+ }, rest), children);
57
+ });
58
58
  EuiFlexGroup.displayName = 'EuiFlexGroup';
@@ -9,18 +9,18 @@ var _excluded = ["children", "className", "grow", "component"];
9
9
  * Side Public License, v 1.
10
10
  */
11
11
 
12
- import React, { useEffect, forwardRef } from 'react';
12
+ import React, { useEffect } from 'react';
13
13
  import classNames from 'classnames';
14
14
  import { euiFlexItemStyles as styles } from './flex_item.styles';
15
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
16
  var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
17
- var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
17
+ export var EuiFlexItem = function EuiFlexItem(_ref) {
18
18
  var children = _ref.children,
19
19
  className = _ref.className,
20
20
  _ref$grow = _ref.grow,
21
21
  grow = _ref$grow === void 0 ? true : _ref$grow,
22
22
  _ref$component = _ref.component,
23
- component = _ref$component === void 0 ? 'div' : _ref$component,
23
+ Component = _ref$component === void 0 ? 'div' : _ref$component,
24
24
  rest = _objectWithoutProperties(_ref, _excluded);
25
25
  useEffect(function () {
26
26
  if (VALID_GROW_VALUES.indexOf(grow) === -1) {
@@ -29,21 +29,8 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
29
29
  }, [grow]);
30
30
  var cssStyles = [styles.euiFlexItem, !grow ? styles.growZero : styles.grow, grow && (typeof grow === 'number' ? styles.growSizes[grow] : styles.growSizes['1'])];
31
31
  var classes = classNames('euiFlexItem', className);
32
-
33
- // Cast the resolved component prop type to ComponentType to help TS
34
- // process multiple infers and the overall type complexity.
35
- // This might not be needed in TypeScript 5
36
- var Component = component;
37
- return ___EmotionJSX(Component, _extends({}, rest, {
38
- ref: ref,
32
+ return ___EmotionJSX(Component, _extends({
39
33
  css: cssStyles,
40
34
  className: classes
41
- }), children);
42
- };
43
-
44
- // Cast forwardRef return type to work with the generic TComponent type
45
- // and not fallback to implicit any typing
46
- export var EuiFlexItem = /*#__PURE__*/forwardRef(EuiFlexItemInternal);
47
-
48
- // Cast is required here because of the cast above
49
- EuiFlexItem.displayName = 'EuiFlexItem';
35
+ }, rest), children);
36
+ };
@@ -88,7 +88,7 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
88
88
  // Only track selection state if it's not controlled externally.
89
89
  var selectedTabId;
90
90
  if (!_selectedTab) {
91
- selectedTabId = initialSelectedTab && initialSelectedTab.id || tabs[0].id;
91
+ selectedTabId = (initialSelectedTab === null || initialSelectedTab === void 0 ? void 0 : initialSelectedTab.id) || tabs[0].id;
92
92
  }
93
93
  _this.state = {
94
94
  selectedTabId: selectedTabId,
@@ -114,10 +114,10 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
114
114
  // Allow the consumer to control tab selection.
115
115
  var selectedTab = externalSelectedTab || tabs.find(function (tab) {
116
116
  return tab.id === _this2.state.selectedTabId;
117
- });
118
- var _ref = selectedTab,
119
- selectedTabContent = _ref.content,
120
- selectedTabId = _ref.id;
117
+ }) || tabs[0]; // Fall back to the first tab if a selected tab can't be found
118
+
119
+ var selectedTabContent = selectedTab.content,
120
+ selectedTabId = selectedTab.id;
121
121
  return ___EmotionJSX("div", _extends({
122
122
  className: className
123
123
  }, rest), ___EmotionJSX(EuiTabs, {
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.ALIGN_ITEMS = void 0;
8
+ exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.COMPONENT_TYPES = exports.ALIGN_ITEMS = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _services = require("../../services");
14
14
  var _flex_group = require("./flex_group.styles");
15
15
  var _react2 = require("@emotion/react");
16
- var _excluded = ["className", "component", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap"];
16
+ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap", "component"];
17
17
  /*
18
18
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
19
19
  * or more contributor license agreements. Licensed under the Elastic License
@@ -31,10 +31,11 @@ var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'space
31
31
  exports.JUSTIFY_CONTENTS = JUSTIFY_CONTENTS;
32
32
  var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
33
33
  exports.DIRECTIONS = DIRECTIONS;
34
- var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
35
- var className = _ref.className,
36
- _ref$component = _ref.component,
37
- component = _ref$component === void 0 ? 'div' : _ref$component,
34
+ var COMPONENT_TYPES = ['div', 'span'];
35
+ exports.COMPONENT_TYPES = COMPONENT_TYPES;
36
+ var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
37
+ var children = _ref.children,
38
+ className = _ref.className,
38
39
  _ref$gutterSize = _ref.gutterSize,
39
40
  gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
40
41
  _ref$alignItems = _ref.alignItems,
@@ -47,26 +48,26 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
47
48
  direction = _ref$direction === void 0 ? 'row' : _ref$direction,
48
49
  _ref$wrap = _ref.wrap,
49
50
  wrap = _ref$wrap === void 0 ? false : _ref$wrap,
51
+ _ref$component = _ref.component,
52
+ component = _ref$component === void 0 ? 'div' : _ref$component,
50
53
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
51
54
  var styles = (0, _services.useEuiMemoizedStyles)(_flex_group.euiFlexGroupStyles);
52
55
  var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
53
56
  var classes = (0, _classnames.default)('euiFlexGroup', className);
54
-
55
- // Cast the resolved component prop type to ComponentType to help TS
56
- // process multiple infers and the overall type complexity.
57
- // This might not be needed in TypeScript 5
58
- var Component = component;
59
- return (0, _react2.jsx)(Component, (0, _extends2.default)({}, rest, {
60
- ref: ref,
57
+ (0, _react.useEffect)(function () {
58
+ if (!COMPONENT_TYPES.includes(component)) {
59
+ throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
60
+ }
61
+ }, [component]);
62
+ return component === 'span' ? (0, _react2.jsx)("span", (0, _extends2.default)({
63
+ css: cssStyles,
61
64
  className: classes,
62
- css: cssStyles
63
- }));
64
- };
65
-
66
- // Cast forwardRef return type to work with the generic TComponent type
67
- // and not fallback to implicit any typing
68
- var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexGroupInternal);
69
-
70
- // Cast is required here because of the cast above
65
+ ref: ref
66
+ }, rest), children) : (0, _react2.jsx)("div", (0, _extends2.default)({
67
+ css: cssStyles,
68
+ className: classes,
69
+ ref: ref
70
+ }, rest), children);
71
+ });
71
72
  exports.EuiFlexGroup = EuiFlexGroup;
72
73
  EuiFlexGroup.displayName = 'EuiFlexGroup';
@@ -23,13 +23,13 @@ var _excluded = ["children", "className", "grow", "component"];
23
23
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
  var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
26
- var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
26
+ var EuiFlexItem = function EuiFlexItem(_ref) {
27
27
  var children = _ref.children,
28
28
  className = _ref.className,
29
29
  _ref$grow = _ref.grow,
30
30
  grow = _ref$grow === void 0 ? true : _ref$grow,
31
31
  _ref$component = _ref.component,
32
- component = _ref$component === void 0 ? 'div' : _ref$component,
32
+ Component = _ref$component === void 0 ? 'div' : _ref$component,
33
33
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
34
34
  (0, _react.useEffect)(function () {
35
35
  if (VALID_GROW_VALUES.indexOf(grow) === -1) {
@@ -38,22 +38,9 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
38
38
  }, [grow]);
39
39
  var cssStyles = [_flex_item.euiFlexItemStyles.euiFlexItem, !grow ? _flex_item.euiFlexItemStyles.growZero : _flex_item.euiFlexItemStyles.grow, grow && (typeof grow === 'number' ? _flex_item.euiFlexItemStyles.growSizes[grow] : _flex_item.euiFlexItemStyles.growSizes['1'])];
40
40
  var classes = (0, _classnames.default)('euiFlexItem', className);
41
-
42
- // Cast the resolved component prop type to ComponentType to help TS
43
- // process multiple infers and the overall type complexity.
44
- // This might not be needed in TypeScript 5
45
- var Component = component;
46
- return (0, _react2.jsx)(Component, (0, _extends2.default)({}, rest, {
47
- ref: ref,
41
+ return (0, _react2.jsx)(Component, (0, _extends2.default)({
48
42
  css: cssStyles,
49
43
  className: classes
50
- }), children);
44
+ }, rest), children);
51
45
  };
52
-
53
- // Cast forwardRef return type to work with the generic TComponent type
54
- // and not fallback to implicit any typing
55
- var EuiFlexItem = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexItemInternal);
56
-
57
- // Cast is required here because of the cast above
58
- exports.EuiFlexItem = EuiFlexItem;
59
- EuiFlexItem.displayName = 'EuiFlexItem';
46
+ exports.EuiFlexItem = EuiFlexItem;
@@ -97,7 +97,7 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
97
97
  // Only track selection state if it's not controlled externally.
98
98
  var selectedTabId;
99
99
  if (!_selectedTab) {
100
- selectedTabId = initialSelectedTab && initialSelectedTab.id || tabs[0].id;
100
+ selectedTabId = (initialSelectedTab === null || initialSelectedTab === void 0 ? void 0 : initialSelectedTab.id) || tabs[0].id;
101
101
  }
102
102
  _this.state = {
103
103
  selectedTabId: selectedTabId,
@@ -123,10 +123,10 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
123
123
  // Allow the consumer to control tab selection.
124
124
  var selectedTab = externalSelectedTab || tabs.find(function (tab) {
125
125
  return tab.id === _this2.state.selectedTabId;
126
- });
127
- var _ref = selectedTab,
128
- selectedTabContent = _ref.content,
129
- selectedTabId = _ref.id;
126
+ }) || tabs[0]; // Fall back to the first tab if a selected tab can't be found
127
+
128
+ var selectedTabContent = selectedTab.content,
129
+ selectedTabId = selectedTab.id;
130
130
  return (0, _react2.jsx)("div", (0, _extends2.default)({
131
131
  className: className
132
132
  }, rest), (0, _react2.jsx)(_tabs.EuiTabs, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "94.2.0",
4
+ "version": "94.2.1-backport.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -60,7 +60,6 @@
60
60
  ],
61
61
  "dependencies": {
62
62
  "@hello-pangea/dnd": "^16.6.0",
63
- "@storybook/test": "^8.0.5",
64
63
  "@types/lodash": "^4.14.202",
65
64
  "@types/numeral": "^2.0.5",
66
65
  "@types/react-window": "^1.8.8",
@@ -127,6 +126,7 @@
127
126
  "@storybook/blocks": "^8.0.5",
128
127
  "@storybook/react": "^8.0.5",
129
128
  "@storybook/react-webpack5": "^8.0.5",
129
+ "@storybook/test": "^8.0.5",
130
130
  "@svgr/core": "8.0.0",
131
131
  "@svgr/plugin-jsx": "^8.0.1",
132
132
  "@svgr/plugin-svgo": "^8.0.1",
@@ -5,15 +5,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.ALIGN_ITEMS = void 0;
8
+ exports.JUSTIFY_CONTENTS = exports.GUTTER_SIZES = exports.EuiFlexGroup = exports.DIRECTIONS = exports.COMPONENT_TYPES = exports.ALIGN_ITEMS = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
13
  var _classnames = _interopRequireDefault(require("classnames"));
13
14
  var _services = require("../../services");
14
15
  var _flex_group = require("./flex_group.styles");
15
16
  var _react2 = require("@emotion/react");
16
- var _excluded = ["className", "component", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap"];
17
+ var _excluded = ["children", "className", "gutterSize", "alignItems", "responsive", "justifyContent", "direction", "wrap", "component"];
17
18
  /*
18
19
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
19
20
  * or more contributor license agreements. Licensed under the Elastic License
@@ -31,10 +32,11 @@ var JUSTIFY_CONTENTS = ['flexStart', 'flexEnd', 'center', 'spaceBetween', 'space
31
32
  exports.JUSTIFY_CONTENTS = JUSTIFY_CONTENTS;
32
33
  var DIRECTIONS = ['row', 'rowReverse', 'column', 'columnReverse'];
33
34
  exports.DIRECTIONS = DIRECTIONS;
34
- var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
35
- var className = _ref.className,
36
- _ref$component = _ref.component,
37
- component = _ref$component === void 0 ? 'div' : _ref$component,
35
+ var COMPONENT_TYPES = ['div', 'span'];
36
+ exports.COMPONENT_TYPES = COMPONENT_TYPES;
37
+ var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
38
+ var children = _ref.children,
39
+ className = _ref.className,
38
40
  _ref$gutterSize = _ref.gutterSize,
39
41
  gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
40
42
  _ref$alignItems = _ref.alignItems,
@@ -47,26 +49,39 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
47
49
  direction = _ref$direction === void 0 ? 'row' : _ref$direction,
48
50
  _ref$wrap = _ref.wrap,
49
51
  wrap = _ref$wrap === void 0 ? false : _ref$wrap,
52
+ _ref$component = _ref.component,
53
+ component = _ref$component === void 0 ? 'div' : _ref$component,
50
54
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
51
55
  var styles = (0, _services.useEuiMemoizedStyles)(_flex_group.euiFlexGroupStyles);
52
56
  var cssStyles = [styles.euiFlexGroup, responsive && !direction.includes('column') && styles.responsive, wrap && styles.wrap, styles.gutterSizes[gutterSize], styles.justifyContent[justifyContent], styles.alignItems[alignItems], styles.direction[direction]];
53
57
  var classes = (0, _classnames.default)('euiFlexGroup', className);
54
-
55
- // Cast the resolved component prop type to ComponentType to help TS
56
- // process multiple infers and the overall type complexity.
57
- // This might not be needed in TypeScript 5
58
- var Component = component;
59
- return (0, _react2.jsx)(Component, (0, _extends2.default)({}, rest, {
60
- ref: ref,
58
+ (0, _react.useEffect)(function () {
59
+ if (!COMPONENT_TYPES.includes(component)) {
60
+ throw new Error("".concat(component, " is not a valid element type. Use `div` or `span`."));
61
+ }
62
+ }, [component]);
63
+ return component === 'span' ? (0, _react2.jsx)("span", (0, _extends2.default)({
64
+ css: cssStyles,
61
65
  className: classes,
62
- css: cssStyles
63
- }));
64
- };
65
-
66
- // Cast forwardRef return type to work with the generic TComponent type
67
- // and not fallback to implicit any typing
68
- var EuiFlexGroup = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexGroupInternal);
69
-
70
- // Cast is required here because of the cast above
66
+ ref: ref
67
+ }, rest), children) : (0, _react2.jsx)("div", (0, _extends2.default)({
68
+ css: cssStyles,
69
+ className: classes,
70
+ ref: ref
71
+ }, rest), children);
72
+ });
71
73
  exports.EuiFlexGroup = EuiFlexGroup;
74
+ EuiFlexGroup.propTypes = {
75
+ alignItems: _propTypes.default.any,
76
+ component: _propTypes.default.any,
77
+ direction: _propTypes.default.any,
78
+ gutterSize: _propTypes.default.any,
79
+ justifyContent: _propTypes.default.any,
80
+ responsive: _propTypes.default.bool,
81
+ wrap: _propTypes.default.bool,
82
+ className: _propTypes.default.string,
83
+ "aria-label": _propTypes.default.string,
84
+ "data-test-subj": _propTypes.default.string,
85
+ css: _propTypes.default.any
86
+ };
72
87
  EuiFlexGroup.displayName = 'EuiFlexGroup';
@@ -9,6 +9,7 @@ exports.EuiFlexItem = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
13
  var _classnames = _interopRequireDefault(require("classnames"));
13
14
  var _flex_item = require("./flex_item.styles");
14
15
  var _react2 = require("@emotion/react");
@@ -23,13 +24,13 @@ var _excluded = ["children", "className", "grow", "component"];
23
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
25
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
26
  var VALID_GROW_VALUES = [null, undefined, true, false, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
26
- var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
27
+ var EuiFlexItem = function EuiFlexItem(_ref) {
27
28
  var children = _ref.children,
28
29
  className = _ref.className,
29
30
  _ref$grow = _ref.grow,
30
31
  grow = _ref$grow === void 0 ? true : _ref$grow,
31
32
  _ref$component = _ref.component,
32
- component = _ref$component === void 0 ? 'div' : _ref$component,
33
+ Component = _ref$component === void 0 ? 'div' : _ref$component,
33
34
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
34
35
  (0, _react.useEffect)(function () {
35
36
  if (VALID_GROW_VALUES.indexOf(grow) === -1) {
@@ -38,22 +39,21 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
38
39
  }, [grow]);
39
40
  var cssStyles = [_flex_item.euiFlexItemStyles.euiFlexItem, !grow ? _flex_item.euiFlexItemStyles.growZero : _flex_item.euiFlexItemStyles.grow, grow && (typeof grow === 'number' ? _flex_item.euiFlexItemStyles.growSizes[grow] : _flex_item.euiFlexItemStyles.growSizes['1'])];
40
41
  var classes = (0, _classnames.default)('euiFlexItem', className);
41
-
42
- // Cast the resolved component prop type to ComponentType to help TS
43
- // process multiple infers and the overall type complexity.
44
- // This might not be needed in TypeScript 5
45
- var Component = component;
46
- return (0, _react2.jsx)(Component, (0, _extends2.default)({}, rest, {
47
- ref: ref,
42
+ return (0, _react2.jsx)(Component, (0, _extends2.default)({
48
43
  css: cssStyles,
49
44
  className: classes
50
- }), children);
45
+ }, rest), children);
51
46
  };
52
-
53
- // Cast forwardRef return type to work with the generic TComponent type
54
- // and not fallback to implicit any typing
55
- var EuiFlexItem = /*#__PURE__*/(0, _react.forwardRef)(EuiFlexItemInternal);
56
-
57
- // Cast is required here because of the cast above
58
47
  exports.EuiFlexItem = EuiFlexItem;
59
- EuiFlexItem.displayName = 'EuiFlexItem';
48
+ EuiFlexItem.propTypes = {
49
+ className: _propTypes.default.string,
50
+ "aria-label": _propTypes.default.string,
51
+ "data-test-subj": _propTypes.default.string,
52
+ css: _propTypes.default.any,
53
+ grow: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, null])]),
54
+ // Leave this as an inline string enum so the props table properly parses it
55
+ /**
56
+ * @default div
57
+ */
58
+ component: _propTypes.default.any
59
+ };
@@ -98,7 +98,7 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
98
98
  // Only track selection state if it's not controlled externally.
99
99
  var selectedTabId;
100
100
  if (!_selectedTab) {
101
- selectedTabId = initialSelectedTab && initialSelectedTab.id || tabs[0].id;
101
+ selectedTabId = (initialSelectedTab === null || initialSelectedTab === void 0 ? void 0 : initialSelectedTab.id) || tabs[0].id;
102
102
  }
103
103
  _this.state = {
104
104
  selectedTabId: selectedTabId,
@@ -124,10 +124,10 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
124
124
  // Allow the consumer to control tab selection.
125
125
  var selectedTab = externalSelectedTab || tabs.find(function (tab) {
126
126
  return tab.id === _this2.state.selectedTabId;
127
- });
128
- var _ref = selectedTab,
129
- selectedTabContent = _ref.content,
130
- selectedTabId = _ref.id;
127
+ }) || tabs[0]; // Fall back to the first tab if a selected tab can't be found
128
+
129
+ var selectedTabContent = selectedTab.content,
130
+ selectedTabId = selectedTab.id;
131
131
  return (0, _react2.jsx)("div", (0, _extends2.default)({
132
132
  className: className
133
133
  }, rest), (0, _react2.jsx)(_tabs.EuiTabs, {