@elastic/eui 85.0.0 → 85.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/eui_charts_theme.js +13 -16
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +47 -90
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +47 -90
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
  8. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
  9. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +202 -0
  10. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
  11. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +296 -0
  12. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +58 -0
  13. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +93 -0
  14. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
  15. package/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
  16. package/es/components/collapsible_nav_beta/index.js +15 -0
  17. package/es/components/color_picker/saturation.js +2 -1
  18. package/es/components/combo_box/combo_box_input/combo_box_input.js +7 -1
  19. package/es/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
  20. package/es/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
  21. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
  22. package/es/components/error_boundary/error_boundary.js +1 -1
  23. package/es/components/filter_group/filter_group.styles.js +2 -2
  24. package/es/components/filter_group/filter_select_item.js +31 -15
  25. package/es/components/filter_group/filter_select_item.styles.js +19 -0
  26. package/es/components/form/range/range_highlight.js +1 -0
  27. package/es/components/highlight/highlight.js +4 -4
  28. package/es/components/index.js +1 -0
  29. package/es/components/inline_edit/inline_edit_form.js +2 -1
  30. package/es/components/markdown_editor/markdown_editor.js +2 -2
  31. package/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
  32. package/eui.d.ts +362 -129
  33. package/i18ntokens.json +50 -50
  34. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +30 -0
  35. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
  36. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +211 -0
  37. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
  38. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +304 -0
  39. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +63 -0
  40. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +100 -0
  41. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
  42. package/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
  43. package/lib/components/collapsible_nav_beta/index.js +19 -0
  44. package/lib/components/color_picker/saturation.js +2 -1
  45. package/lib/components/combo_box/combo_box_input/combo_box_input.js +7 -1
  46. package/lib/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
  47. package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
  48. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
  49. package/lib/components/error_boundary/error_boundary.js +1 -1
  50. package/lib/components/filter_group/filter_group.styles.js +1 -1
  51. package/lib/components/filter_group/filter_select_item.js +33 -17
  52. package/lib/components/filter_group/filter_select_item.styles.js +26 -0
  53. package/lib/components/form/range/range_highlight.js +1 -0
  54. package/lib/components/highlight/highlight.js +4 -4
  55. package/lib/components/index.js +11 -0
  56. package/lib/components/inline_edit/inline_edit_form.js +2 -1
  57. package/lib/components/markdown_editor/markdown_editor.js +2 -2
  58. package/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
  59. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
  60. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
  61. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +113 -0
  62. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
  63. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +117 -0
  64. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +55 -0
  65. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +59 -0
  66. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
  67. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
  68. package/optimize/es/components/collapsible_nav_beta/index.js +15 -0
  69. package/optimize/es/components/color_picker/saturation.js +2 -1
  70. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
  71. package/optimize/es/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
  72. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
  73. package/optimize/es/components/error_boundary/error_boundary.js +1 -1
  74. package/optimize/es/components/filter_group/filter_group.styles.js +2 -2
  75. package/optimize/es/components/filter_group/filter_select_item.js +30 -14
  76. package/optimize/es/components/filter_group/filter_select_item.styles.js +19 -0
  77. package/optimize/es/components/form/range/range_highlight.js +1 -0
  78. package/optimize/es/components/highlight/highlight.js +4 -4
  79. package/optimize/es/components/index.js +1 -0
  80. package/optimize/es/components/inline_edit/inline_edit_form.js +2 -1
  81. package/optimize/es/components/markdown_editor/markdown_editor.js +2 -2
  82. package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
  83. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
  84. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
  85. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +123 -0
  86. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
  87. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +124 -0
  88. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
  89. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +66 -0
  90. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
  91. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
  92. package/optimize/lib/components/collapsible_nav_beta/index.js +19 -0
  93. package/optimize/lib/components/color_picker/saturation.js +2 -1
  94. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
  95. package/optimize/lib/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
  96. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
  97. package/optimize/lib/components/error_boundary/error_boundary.js +1 -1
  98. package/optimize/lib/components/filter_group/filter_group.styles.js +1 -1
  99. package/optimize/lib/components/filter_group/filter_select_item.js +32 -16
  100. package/optimize/lib/components/filter_group/filter_select_item.styles.js +26 -0
  101. package/optimize/lib/components/form/range/range_highlight.js +1 -0
  102. package/optimize/lib/components/highlight/highlight.js +4 -4
  103. package/optimize/lib/components/index.js +11 -0
  104. package/optimize/lib/components/inline_edit/inline_edit_form.js +2 -1
  105. package/optimize/lib/components/markdown_editor/markdown_editor.js +2 -2
  106. package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
  107. package/package.json +1 -1
  108. package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +24 -3
  109. package/src/components/combo_box/combo_box_options_list/_combo_box_option.scss +34 -14
  110. package/src/components/index.scss +0 -1
  111. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
  112. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
  113. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +208 -0
  114. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
  115. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +303 -0
  116. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
  117. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +96 -0
  118. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
  119. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
  120. package/test-env/components/collapsible_nav_beta/index.js +19 -0
  121. package/test-env/components/color_picker/saturation.js +2 -1
  122. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +7 -1
  123. package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
  124. package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
  125. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
  126. package/test-env/components/error_boundary/error_boundary.js +1 -1
  127. package/test-env/components/filter_group/filter_group.styles.js +1 -1
  128. package/test-env/components/filter_group/filter_select_item.js +33 -17
  129. package/test-env/components/filter_group/filter_select_item.styles.js +26 -0
  130. package/test-env/components/form/range/range_highlight.js +1 -0
  131. package/test-env/components/highlight/highlight.js +4 -4
  132. package/test-env/components/index.js +11 -0
  133. package/test-env/components/inline_edit/inline_edit_form.js +2 -1
  134. package/test-env/components/markdown_editor/markdown_editor.js +2 -2
  135. package/test-env/themes/amsterdam/global_styling/variables/_states.js +13 -16
  136. package/src/components/filter_group/_filter_select_item.scss +0 -43
  137. package/src/components/filter_group/_index.scss +0 -1
@@ -0,0 +1,303 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.EuiCollapsibleNavSubItem = exports.EuiCollapsibleNavItem = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+ var _services = require("../../../services");
14
+ var _icon = require("../../icon");
15
+ var _title = require("../../title");
16
+ var _collapsible_nav_accordion = require("./collapsible_nav_accordion");
17
+ var _collapsible_nav_link = require("./collapsible_nav_link");
18
+ var _collapsible_nav_item = require("./collapsible_nav_item.styles");
19
+ var _react2 = require("@emotion/react");
20
+ var _excluded = ["isSubItem", "title", "titleElement", "icon", "iconProps", "className", "items", "children"],
21
+ _excluded2 = ["isGroupTitle", "className"];
22
+ /*
23
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
24
+ * or more contributor license agreements. Licensed under the Elastic License
25
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
26
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
27
+ * Side Public License, v 1.
28
+ */
29
+ /**
30
+ * Internal DRY subcomponent shared between top level items and sub items
31
+ * that handles title display/rendering, and can be used to recursively
32
+ * determine whether to render an accordion or a link
33
+ */
34
+ var EuiCollapsibleNavItemDisplay = function EuiCollapsibleNavItemDisplay(_ref) {
35
+ var _props$linkProps;
36
+ var isSubItem = _ref.isSubItem,
37
+ title = _ref.title,
38
+ titleElement = _ref.titleElement,
39
+ icon = _ref.icon,
40
+ iconProps = _ref.iconProps,
41
+ className = _ref.className,
42
+ items = _ref.items,
43
+ children = _ref.children,
44
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
45
+ var classes = (0, _classnames.default)('euiCollapsibleNavItem', {
46
+ euiCollapsibleNavSubItem: isSubItem
47
+ }, className);
48
+ var headerContent = (0, _react2.jsx)(EuiCollapsibleNavItemTitle, {
49
+ title: title,
50
+ titleElement: titleElement,
51
+ icon: icon,
52
+ iconProps: iconProps
53
+ });
54
+ var isAccordion = items && items.length > 0;
55
+ if (isAccordion) {
56
+ return (0, _react2.jsx)(_collapsible_nav_accordion.EuiCollapsibleNavAccordion, (0, _extends2.default)({
57
+ className: classes,
58
+ buttonContent: headerContent,
59
+ items: items
60
+ }, props, {
61
+ isSubItem: isSubItem
62
+ }));
63
+ }
64
+ return (0, _react2.jsx)(_collapsible_nav_link.EuiCollapsibleNavLink, (0, _extends2.default)({
65
+ className: classes
66
+ }, props, {
67
+ // EuiLink ExclusiveUnion type shenanigans
68
+ isSubItem: isSubItem,
69
+ isNotAccordion: true,
70
+ isInteractive: !!(props.href || props.onClick || (_props$linkProps = props.linkProps) !== null && _props$linkProps !== void 0 && _props$linkProps.onClick)
71
+ }), headerContent);
72
+ };
73
+
74
+ /**
75
+ * Internal subcomponent for title display
76
+ */
77
+ EuiCollapsibleNavItemDisplay.propTypes = {
78
+ /**
79
+ * ReactNode to render as this component's title
80
+ */
81
+ title: _propTypes.default.node.isRequired,
82
+ /**
83
+ * Allows customizing title's element.
84
+ * Consider using a heading element for better accessibility.
85
+ * Defaults to an unsemantic `span` or `div`, depending on context.
86
+ */
87
+ titleElement: _propTypes.default.oneOf(["h2", "h3", "h4", "h5", "h6", "span", "div"]),
88
+ /**
89
+ * Optional icon to render to the left of title content
90
+ */
91
+ icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "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"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
92
+ /**
93
+ * Optional props to pass to the title icon
94
+ */
95
+ iconProps: _propTypes.default.any,
96
+ className: _propTypes.default.string,
97
+ "aria-label": _propTypes.default.string,
98
+ "data-test-subj": _propTypes.default.string,
99
+ css: _propTypes.default.any,
100
+ /**
101
+ * The nav item link.
102
+ * If not included, and no `onClick` is specified, the nav item
103
+ * will render as an non-interactive `<span>`.
104
+ */
105
+ href: _propTypes.default.string,
106
+ /**
107
+ * When passed, an `EuiAccordion` with nested child item links will be rendered.
108
+ *
109
+ * Accepts any #EuiCollapsibleNavItem prop, and also accepts an
110
+ * #EuiCollapsibleNavSubItemGroupTitle
111
+ */
112
+ items: _propTypes.default.arrayOf(_propTypes.default.shape({
113
+ /**
114
+ * Pass this flag to seperate links by group title headings.
115
+ * Strongly consider using the `titleElement` prop for accessibility.
116
+ */
117
+ isGroupTitle: _propTypes.default.bool
118
+ }).isRequired),
119
+ /**
120
+ * If `items` is specified, use this prop to pass any prop that `EuiAccordion`
121
+ * accepts, including props that control the toggled state of the accordion
122
+ * (e.g. `initialIsOpen`, `forceState`)
123
+ */
124
+ accordionProps: _propTypes.default.any,
125
+ /**
126
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
127
+ */
128
+ linkProps: _propTypes.default.any,
129
+ /**
130
+ * Highlights whether an item is currently selected, e.g.
131
+ * if the user is on the same page as the nav link
132
+ */
133
+ isSelected: _propTypes.default.bool,
134
+ /**
135
+ * Determines whether the item should render as a top-level nav item
136
+ * or a nested nav subitem. Set internally by EUI
137
+ */
138
+ isSubItem: _propTypes.default.bool
139
+ };
140
+ var EuiCollapsibleNavItemTitle = function EuiCollapsibleNavItemTitle(_ref2) {
141
+ var title = _ref2.title,
142
+ _ref2$titleElement = _ref2.titleElement,
143
+ titleElement = _ref2$titleElement === void 0 ? 'span' : _ref2$titleElement,
144
+ icon = _ref2.icon,
145
+ iconProps = _ref2.iconProps;
146
+ var styles = _collapsible_nav_item.euiCollapsibleNavItemTitleStyles;
147
+ var TitleElement = titleElement;
148
+ return (0, _react2.jsx)(_react.default.Fragment, null, icon && (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
149
+ type: icon
150
+ }, iconProps)), (0, _react2.jsx)(TitleElement, {
151
+ className: "euiCollapsibleNavItem__title eui-textTruncate",
152
+ css: styles.euiCollapsibleNavItem__title
153
+ }, title));
154
+ };
155
+
156
+ /**
157
+ * Sub-items can either be a group title, to visually separate sections
158
+ * of nav links, or they can simply be more links or accordions
159
+ */
160
+ var EuiCollapsibleNavSubItem = function EuiCollapsibleNavSubItem(_ref3) {
161
+ var isGroupTitle = _ref3.isGroupTitle,
162
+ className = _ref3.className,
163
+ props = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
164
+ var euiTheme = (0, _services.useEuiTheme)();
165
+ var styles = (0, _collapsible_nav_item.euiCollapsibleNavSubItemGroupTitleStyles)(euiTheme);
166
+ if (isGroupTitle) {
167
+ var TitleElement = props.titleElement || 'div';
168
+ return (0, _react2.jsx)(_title.EuiTitle, {
169
+ size: "xxxs",
170
+ css: styles.euiCollapsibleNavItem__groupTitle,
171
+ className: "euiCollapsibleNavItem__groupTitle eui-textTruncate"
172
+ }, (0, _react2.jsx)(TitleElement, null, props.title));
173
+ }
174
+ return (0, _react2.jsx)(EuiCollapsibleNavItemDisplay, (0, _extends2.default)({}, props, {
175
+ isSubItem: true
176
+ }));
177
+ };
178
+
179
+ /**
180
+ * The actual exported component
181
+ */
182
+ exports.EuiCollapsibleNavSubItem = EuiCollapsibleNavSubItem;
183
+ EuiCollapsibleNavSubItem.propTypes = {
184
+ /**
185
+ * ReactNode to render as this component's title
186
+ */
187
+ title: _propTypes.default.node,
188
+ /**
189
+ * Allows customizing title's element.
190
+ * Consider using a heading element for better accessibility.
191
+ * Defaults to an unsemantic `span` or `div`, depending on context.
192
+ */
193
+ titleElement: _propTypes.default.oneOf(["h2", "h3", "h4", "h5", "h6", "span", "div"]),
194
+ /**
195
+ * Optional icon to render to the left of title content
196
+ */
197
+ icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "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"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
198
+ /**
199
+ * Optional props to pass to the title icon
200
+ */
201
+ iconProps: _propTypes.default.any,
202
+ className: _propTypes.default.string,
203
+ "aria-label": _propTypes.default.string,
204
+ "data-test-subj": _propTypes.default.string,
205
+ css: _propTypes.default.any,
206
+ /**
207
+ * The nav item link.
208
+ * If not included, and no `onClick` is specified, the nav item
209
+ * will render as an non-interactive `<span>`.
210
+ */
211
+ href: _propTypes.default.string,
212
+ /**
213
+ * When passed, an `EuiAccordion` with nested child item links will be rendered.
214
+ *
215
+ * Accepts any #EuiCollapsibleNavItem prop, and also accepts an
216
+ * #EuiCollapsibleNavSubItemGroupTitle
217
+ */
218
+ items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
219
+ /**
220
+ * If `items` is specified, use this prop to pass any prop that `EuiAccordion`
221
+ * accepts, including props that control the toggled state of the accordion
222
+ * (e.g. `initialIsOpen`, `forceState`)
223
+ */
224
+ accordionProps: _propTypes.default.any,
225
+ /**
226
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
227
+ */
228
+ linkProps: _propTypes.default.any,
229
+ /**
230
+ * Highlights whether an item is currently selected, e.g.
231
+ * if the user is on the same page as the nav link
232
+ */
233
+ isSelected: _propTypes.default.bool,
234
+ /**
235
+ * Pass this flag to seperate links by group title headings.
236
+ * Strongly consider using the `titleElement` prop for accessibility.
237
+ */
238
+ isGroupTitle: _propTypes.default.bool
239
+ };
240
+ var EuiCollapsibleNavItem = function EuiCollapsibleNavItem(props) {
241
+ return (0, _react2.jsx)(EuiCollapsibleNavItemDisplay, (0, _extends2.default)({}, props, {
242
+ isSubItem: false
243
+ }));
244
+ };
245
+ exports.EuiCollapsibleNavItem = EuiCollapsibleNavItem;
246
+ EuiCollapsibleNavItem.propTypes = {
247
+ /**
248
+ * ReactNode to render as this component's title
249
+ */
250
+ title: _propTypes.default.node.isRequired,
251
+ /**
252
+ * Allows customizing title's element.
253
+ * Consider using a heading element for better accessibility.
254
+ * Defaults to an unsemantic `span` or `div`, depending on context.
255
+ */
256
+ titleElement: _propTypes.default.oneOf(["h2", "h3", "h4", "h5", "h6", "span", "div"]),
257
+ /**
258
+ * Optional icon to render to the left of title content
259
+ */
260
+ icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "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"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
261
+ /**
262
+ * Optional props to pass to the title icon
263
+ */
264
+ iconProps: _propTypes.default.any,
265
+ className: _propTypes.default.string,
266
+ "aria-label": _propTypes.default.string,
267
+ "data-test-subj": _propTypes.default.string,
268
+ css: _propTypes.default.any,
269
+ /**
270
+ * The nav item link.
271
+ * If not included, and no `onClick` is specified, the nav item
272
+ * will render as an non-interactive `<span>`.
273
+ */
274
+ href: _propTypes.default.string,
275
+ /**
276
+ * When passed, an `EuiAccordion` with nested child item links will be rendered.
277
+ *
278
+ * Accepts any #EuiCollapsibleNavItem prop, and also accepts an
279
+ * #EuiCollapsibleNavSubItemGroupTitle
280
+ */
281
+ items: _propTypes.default.arrayOf(_propTypes.default.shape({
282
+ /**
283
+ * Pass this flag to seperate links by group title headings.
284
+ * Strongly consider using the `titleElement` prop for accessibility.
285
+ */
286
+ isGroupTitle: _propTypes.default.bool
287
+ }).isRequired),
288
+ /**
289
+ * If `items` is specified, use this prop to pass any prop that `EuiAccordion`
290
+ * accepts, including props that control the toggled state of the accordion
291
+ * (e.g. `initialIsOpen`, `forceState`)
292
+ */
293
+ accordionProps: _propTypes.default.any,
294
+ /**
295
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
296
+ */
297
+ linkProps: _propTypes.default.any,
298
+ /**
299
+ * Highlights whether an item is currently selected, e.g.
300
+ * if the user is on the same page as the nav link
301
+ */
302
+ isSelected: _propTypes.default.bool
303
+ };
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.euiCollapsibleNavSubItemGroupTitleStyles = exports.euiCollapsibleNavItemVariables = exports.euiCollapsibleNavItemTitleStyles = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = require("@emotion/react");
10
+ var _global_styling = require("../../../global_styling");
11
+ var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
12
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
15
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
16
+ * or more contributor license agreements. Licensed under the Elastic License
17
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
18
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
19
+ * Side Public License, v 1.
20
+ */
21
+ /**
22
+ * Style variables shared between accordion, link, and sub items
23
+ */
24
+ var euiCollapsibleNavItemVariables = function euiCollapsibleNavItemVariables(euiThemeContext) {
25
+ var euiTheme = euiThemeContext.euiTheme;
26
+ return _objectSpread(_objectSpread({
27
+ height: euiTheme.size.xl,
28
+ padding: euiTheme.size.s
29
+ }, (0, _global_styling.euiFontSize)(euiThemeContext, 's')), {}, {
30
+ animation: "".concat(euiTheme.animation.normal, " ease-in-out"),
31
+ // Matches EuiButton
32
+ borderRadius: euiTheme.border.radius.small,
33
+ backgroundHoverColor: euiTheme.colors.lightestShade,
34
+ backgroundSelectedColor: (0, _button.euiButtonColor)(euiThemeContext, 'text').backgroundColor,
35
+ color: euiTheme.colors.text,
36
+ rightIconColor: euiTheme.colors.disabledText
37
+ });
38
+ };
39
+
40
+ /**
41
+ * Title styles
42
+ */
43
+ exports.euiCollapsibleNavItemVariables = euiCollapsibleNavItemVariables;
44
+ var euiCollapsibleNavItemTitleStyles = {
45
+ euiCollapsibleNavItem__title: process.env.NODE_ENV === "production" ? {
46
+ name: "i246l1-euiCollapsibleNavItem__title",
47
+ styles: "flex-grow:1;label:euiCollapsibleNavItem__title;"
48
+ } : {
49
+ name: "i246l1-euiCollapsibleNavItem__title",
50
+ styles: "flex-grow:1;label:euiCollapsibleNavItem__title;",
51
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
52
+ }
53
+ };
54
+ exports.euiCollapsibleNavItemTitleStyles = euiCollapsibleNavItemTitleStyles;
55
+ var euiCollapsibleNavSubItemGroupTitleStyles = function euiCollapsibleNavSubItemGroupTitleStyles(_ref) {
56
+ var euiTheme = _ref.euiTheme;
57
+ return {
58
+ euiCollapsibleNavItem__groupTitle: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), " ", (0, _global_styling.logicalShorthandCSS)('padding', "".concat(euiTheme.size.xs, " ").concat(euiTheme.size.s)), ";;label:euiCollapsibleNavItem__groupTitle;")
59
+ };
60
+ };
61
+ exports.euiCollapsibleNavSubItemGroupTitleStyles = euiCollapsibleNavSubItemGroupTitleStyles;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.EuiCollapsibleNavLink = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _classnames = _interopRequireDefault(require("classnames"));
14
+ var _services = require("../../../services");
15
+ var _link = require("../../link");
16
+ var _collapsible_nav_link = require("./collapsible_nav_link.styles");
17
+ var _react2 = require("@emotion/react");
18
+ var _excluded = ["href", "rel", "children", "className", "isSelected", "isInteractive", "isNotAccordion", "isSubItem", "linkProps"];
19
+ /*
20
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
21
+ * or more contributor license agreements. Licensed under the Elastic License
22
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
23
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
24
+ * Side Public License, v 1.
25
+ */
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28
+ /**
29
+ * Internal nav link component.
30
+ *
31
+ * Can be rendered as a standalone nav item, or as part of an accordion header.
32
+ * Can also be rendered as top-level item (has a background hover) or as a
33
+ * sub-item (renders closer to plain text).
34
+ *
35
+ * In terms of DOM output, follows the same logic as EuiLink (renders either
36
+ * an `a` tag or a `button` if no valid link exists), and can also additionally
37
+ * rendered a plain `span` if the item is not interactive.
38
+ */
39
+ var EuiCollapsibleNavLink = function EuiCollapsibleNavLink(_ref) {
40
+ var href = _ref.href,
41
+ rel = _ref.rel,
42
+ children = _ref.children,
43
+ className = _ref.className,
44
+ isSelected = _ref.isSelected,
45
+ _ref$isInteractive = _ref.isInteractive,
46
+ isInteractive = _ref$isInteractive === void 0 ? true : _ref$isInteractive,
47
+ isNotAccordion = _ref.isNotAccordion,
48
+ isSubItem = _ref.isSubItem,
49
+ linkProps = _ref.linkProps,
50
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
51
+ var classes = (0, _classnames.default)('euiCollapsibleNavLink', className);
52
+ var euiTheme = (0, _services.useEuiTheme)();
53
+ var styles = (0, _collapsible_nav_link.euiCollapsibleNavLinkStyles)(euiTheme);
54
+ var cssStyles = [styles.euiCollapsibleNavLink, isSelected && styles.isSelected, isSubItem ? styles.isSubItem : styles.isTopItem.isTopItem, isNotAccordion && !isSubItem && styles.isTopItem.isNotAccordion, isInteractive && !isSelected && !isSubItem && styles.isTopItem.isInteractive, linkProps === null || linkProps === void 0 ? void 0 : linkProps.css];
55
+ return isInteractive ? (0, _react2.jsx)(_link.EuiLink, (0, _extends2.default)({
56
+ href: href,
57
+ rel: rel,
58
+ className: classes
59
+ }, _objectSpread(_objectSpread({}, rest), linkProps), {
60
+ // EuiLink ExclusiveUnion shenanigans
61
+ css: cssStyles
62
+ }), children) : (0, _react2.jsx)("span", (0, _extends2.default)({
63
+ className: classes,
64
+ css: cssStyles
65
+ }, rest), children);
66
+ };
67
+ exports.EuiCollapsibleNavLink = EuiCollapsibleNavLink;
68
+ EuiCollapsibleNavLink.propTypes = {
69
+ className: _propTypes.default.string,
70
+ "aria-label": _propTypes.default.string,
71
+ "data-test-subj": _propTypes.default.string,
72
+ css: _propTypes.default.any,
73
+ /**
74
+ * The nav item link.
75
+ * If not included, and no `onClick` is specified, the nav item
76
+ * will render as an non-interactive `<span>`.
77
+ */
78
+ href: _propTypes.default.string,
79
+ /**
80
+ * If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
81
+ */
82
+ linkProps: _propTypes.default.any,
83
+ /**
84
+ * Highlights whether an item is currently selected, e.g.
85
+ * if the user is on the same page as the nav link
86
+ */
87
+ isSelected: _propTypes.default.bool,
88
+ /**
89
+ * Determines whether the item should render as a top-level nav item
90
+ * or a nested nav subitem. Set internally by EUI
91
+ */
92
+ isSubItem: _propTypes.default.bool,
93
+ children: _propTypes.default.node.isRequired,
94
+ isInteractive: _propTypes.default.bool,
95
+ isNotAccordion: _propTypes.default.bool
96
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiCollapsibleNavLinkStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _global_styling = require("../../../global_styling");
9
+ var _collapsible_nav_item = require("./collapsible_nav_item.styles");
10
+ /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+
18
+ var euiCollapsibleNavLinkStyles = function euiCollapsibleNavLinkStyles(euiThemeContext) {
19
+ var euiTheme = euiThemeContext.euiTheme;
20
+ var sharedStyles = (0, _collapsible_nav_item.euiCollapsibleNavItemVariables)(euiThemeContext);
21
+ return {
22
+ // Shared between all links
23
+ euiCollapsibleNavLink: /*#__PURE__*/(0, _react.css)("display:flex;align-items:center;", (0, _global_styling.logicalCSS)('height', sharedStyles.height), " padding:", sharedStyles.padding, ";font-size:", sharedStyles.fontSize, ";line-height:", sharedStyles.lineHeight, ";color:", sharedStyles.color, ";border-radius:", sharedStyles.borderRadius, ";&:focus{outline-offset:-", euiTheme.focus.width, ";text-decoration-thickness:unset;}[class*='euiLink__externalIcon']{", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xxs), " color:", sharedStyles.rightIconColor, ";};label:euiCollapsibleNavLink;"),
24
+ isSelected: /*#__PURE__*/(0, _react.css)("background-color:", sharedStyles.backgroundSelectedColor, ";;label:isSelected;"),
25
+ isTopItem: {
26
+ isTopItem: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.semiBold, ";gap:", euiTheme.size.base, ";&:is(button){inline-size:calc(\n 100% - ", (0, _global_styling.mathWithUnits)(sharedStyles.padding, function (x) {
27
+ return x * 2;
28
+ }), "\n );};label:isTopItem;"),
29
+ isNotAccordion: /*#__PURE__*/(0, _react.css)("margin:", sharedStyles.padding, ";;label:isNotAccordion;"),
30
+ isInteractive: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:background-color ", sharedStyles.animation, ";}&:hover,&:focus-visible{background-color:", sharedStyles.backgroundHoverColor, ";};label:isInteractive;")
31
+ },
32
+ isSubItem: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.regular, ";gap:", euiTheme.size.s, ";;label:isSubItem;")
33
+ };
34
+ };
35
+ exports.euiCollapsibleNavLinkStyles = euiCollapsibleNavLinkStyles;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "EuiCollapsibleNavItem", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _collapsible_nav_item.EuiCollapsibleNavItem;
10
+ }
11
+ });
12
+ var _collapsible_nav_item = require("./collapsible_nav_item");
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "EuiCollapsibleNavBeta", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _collapsible_nav_beta.EuiCollapsibleNavBeta;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "EuiCollapsibleNavItem", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _collapsible_nav_item.EuiCollapsibleNavItem;
16
+ }
17
+ });
18
+ var _collapsible_nav_beta = require("./collapsible_nav_beta");
19
+ var _collapsible_nav_item = require("./collapsible_nav_item");
@@ -30,10 +30,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
30
30
  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; }
31
31
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32
32
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
33
+ var colorDefaultValue = [1, 0, 0];
33
34
  var EuiSaturation = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
34
35
  var className = _ref.className,
35
36
  _ref$color = _ref.color,
36
- color = _ref$color === void 0 ? [1, 0, 0] : _ref$color,
37
+ color = _ref$color === void 0 ? colorDefaultValue : _ref$color,
37
38
  _ref$dataTestSubj = _ref['data-test-subj'],
38
39
  dataTestSubj = _ref$dataTestSubj === void 0 ? 'euiSaturation' : _ref$dataTestSubj,
39
40
  hex = _ref.hex,