@elastic/eui 92.1.1 → 92.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/bottom_bar/bottom_bar.js +6 -2
- package/es/components/button/button.js +55 -1
- package/es/components/button/button_display/_button_display.js +1 -0
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/card/card.js +52 -1
- package/es/components/card/card_select/card_select.js +52 -1
- package/es/components/color_picker/index.js +0 -2
- package/es/components/comment_list/index.js +0 -1
- package/es/components/context_menu/context_menu_item.styles.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/data_grid_body.js +6 -6
- package/es/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/es/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/facet/facet_button.js +1 -0
- package/es/components/flyout/flyout_resizable.js +23 -5
- package/es/components/form/text_area/text_area.js +7 -3
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/list_group/list_group.js +1 -1
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/resizable_container/resizable_container.js +11 -5
- package/eui.d.ts +20 -18
- package/i18ntokens.json +12 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -2
- package/lib/components/button/button.js +58 -5
- package/lib/components/button/button_display/_button_display.js +1 -0
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/card/card.js +53 -2
- package/lib/components/card/card_select/card_select.js +53 -2
- package/lib/components/color_picker/index.js +0 -14
- package/lib/components/comment_list/index.js +0 -7
- package/lib/components/context_menu/context_menu_item.styles.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/data_grid_body.js +6 -6
- package/lib/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/facet/facet_button.js +1 -0
- package/lib/components/flyout/flyout_resizable.js +23 -5
- package/lib/components/form/text_area/text_area.js +7 -3
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/list_group/list_group.js +1 -1
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/resizable_container/resizable_container.js +10 -4
- package/optimize/es/components/button/button.js +3 -0
- package/optimize/es/components/color_picker/index.js +0 -2
- package/optimize/es/components/comment_list/index.js +0 -1
- package/optimize/es/components/context_menu/context_menu_item.styles.js +1 -1
- package/optimize/es/components/flyout/flyout_resizable.js +23 -5
- package/optimize/es/components/form/text_area/text_area.js +7 -3
- package/optimize/es/components/resizable_container/resizable_container.js +11 -5
- package/optimize/lib/components/button/button.js +2 -0
- package/optimize/lib/components/color_picker/index.js +0 -14
- package/optimize/lib/components/comment_list/index.js +0 -7
- package/optimize/lib/components/context_menu/context_menu_item.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout_resizable.js +23 -5
- package/optimize/lib/components/form/text_area/text_area.js +7 -3
- package/optimize/lib/components/resizable_container/resizable_container.js +10 -4
- package/package.json +1 -1
- package/test-env/components/bottom_bar/bottom_bar.js +6 -2
- package/test-env/components/button/button.js +58 -5
- package/test-env/components/button/button_display/_button_display.js +1 -0
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/card/card.js +53 -2
- package/test-env/components/card/card_select/card_select.js +53 -2
- package/test-env/components/color_picker/index.js +0 -14
- package/test-env/components/comment_list/index.js +0 -7
- package/test-env/components/context_menu/context_menu_item.styles.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/data_grid_body.js +6 -6
- package/test-env/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/facet/facet_button.js +1 -0
- package/test-env/components/flyout/flyout_resizable.js +23 -5
- package/test-env/components/form/text_area/text_area.js +7 -3
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/list_group/list_group.js +1 -1
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/resizable_container/resizable_container.js +10 -4
|
@@ -180,7 +180,7 @@ EuiListGroup.propTypes = {
|
|
|
180
180
|
*/
|
|
181
181
|
extraAction: _propTypes.default.shape({
|
|
182
182
|
alwaysShow: _propTypes.default.bool,
|
|
183
|
-
type: _propTypes.default.
|
|
183
|
+
type: _propTypes.default.any,
|
|
184
184
|
onClick: _propTypes.default.func,
|
|
185
185
|
iconType: _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", "endpoint", "eql", "eraser", "error", "esqlVis", "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", "grabOmnidirectional", "gradient", "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", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "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", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
186
186
|
/**
|
|
@@ -270,7 +270,7 @@ EuiListGroupItem.propTypes = {
|
|
|
270
270
|
*/
|
|
271
271
|
extraAction: _propTypes.default.shape({
|
|
272
272
|
alwaysShow: _propTypes.default.bool,
|
|
273
|
-
type: _propTypes.default.
|
|
273
|
+
type: _propTypes.default.any,
|
|
274
274
|
onClick: _propTypes.default.func,
|
|
275
275
|
iconType: _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", "endpoint", "eql", "eraser", "error", "esqlVis", "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", "grabOmnidirectional", "gradient", "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", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "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", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
276
276
|
/**
|
|
@@ -46,7 +46,7 @@ var EuiListGroupItemExtraAction = function EuiListGroupItemExtraAction(_ref) {
|
|
|
46
46
|
exports.EuiListGroupItemExtraAction = EuiListGroupItemExtraAction;
|
|
47
47
|
EuiListGroupItemExtraAction.propTypes = {
|
|
48
48
|
alwaysShow: _propTypes.default.bool,
|
|
49
|
-
type: _propTypes.default.
|
|
49
|
+
type: _propTypes.default.any,
|
|
50
50
|
onClick: _propTypes.default.func,
|
|
51
51
|
iconType: _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", "endpoint", "eql", "eraser", "error", "esqlVis", "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", "grabOmnidirectional", "gradient", "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", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "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", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
52
52
|
/**
|
|
@@ -176,7 +176,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
176
176
|
*/
|
|
177
177
|
extraAction: _propTypes.default.shape({
|
|
178
178
|
alwaysShow: _propTypes.default.bool,
|
|
179
|
-
type: _propTypes.default.
|
|
179
|
+
type: _propTypes.default.any,
|
|
180
180
|
onClick: _propTypes.default.func,
|
|
181
181
|
iconType: _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", "endpoint", "eql", "eraser", "error", "esqlVis", "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", "grabOmnidirectional", "gradient", "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", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "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", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
182
182
|
/**
|
|
@@ -312,7 +312,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
312
312
|
*/
|
|
313
313
|
extraAction: _propTypes.default.shape({
|
|
314
314
|
alwaysShow: _propTypes.default.bool,
|
|
315
|
-
type: _propTypes.default.
|
|
315
|
+
type: _propTypes.default.any,
|
|
316
316
|
onClick: _propTypes.default.func,
|
|
317
317
|
iconType: _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", "endpoint", "eql", "eraser", "error", "esqlVis", "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", "grabOmnidirectional", "gradient", "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", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "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", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
318
318
|
color: _propTypes.default.any,
|
|
@@ -115,7 +115,7 @@ EuiPaginationButton.propTypes = {
|
|
|
115
115
|
isSelected: _propTypes.default.bool,
|
|
116
116
|
target: _propTypes.default.string,
|
|
117
117
|
rel: _propTypes.default.string,
|
|
118
|
-
type: _propTypes.default.
|
|
118
|
+
type: _propTypes.default.any,
|
|
119
119
|
buttonRef: _propTypes.default.any,
|
|
120
120
|
/**
|
|
121
121
|
* Object of props passed to the `<span>` wrapping the button's content
|
|
@@ -60,6 +60,10 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
60
60
|
onResizeStart = _ref.onResizeStart,
|
|
61
61
|
onResizeEnd = _ref.onResizeEnd,
|
|
62
62
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
63
|
+
// Note: It's important to memoize consumer callbacks to prevent our own functions
|
|
64
|
+
// from reinstantiating unnecessarily & causing window event listeners to call stale closures
|
|
65
|
+
var onResizeEndRef = (0, _services.useLatest)(onResizeEnd);
|
|
66
|
+
var onResizeStartRef = (0, _services.useLatest)(onResizeStart);
|
|
63
67
|
var containerRef = (0, _react.useRef)(null);
|
|
64
68
|
var isHorizontal = direction === 'horizontal';
|
|
65
69
|
var classes = (0, _classnames.default)('euiResizableContainer', className);
|
|
@@ -86,10 +90,12 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
86
90
|
}, [initialize, containerSize]);
|
|
87
91
|
var resizeContext = (0, _react.useRef)({});
|
|
88
92
|
var resizeEnd = (0, _react.useCallback)(function () {
|
|
89
|
-
|
|
93
|
+
var _onResizeEndRef$curre;
|
|
94
|
+
(_onResizeEndRef$curre = onResizeEndRef.current) === null || _onResizeEndRef$curre === void 0 ? void 0 : _onResizeEndRef$curre.call(onResizeEndRef);
|
|
90
95
|
resizeContext.current = {};
|
|
91
|
-
}, [
|
|
96
|
+
}, [onResizeEndRef]);
|
|
92
97
|
var resizeStart = (0, _react.useCallback)(function (trigger, keyMoveDirection) {
|
|
98
|
+
var _onResizeStartRef$cur;
|
|
93
99
|
// If another resize starts while the previous one is still in progress
|
|
94
100
|
// (e.g. user presses opposite arrow to change direction while the first
|
|
95
101
|
// is still held down, or user presses an arrow while dragging with the
|
|
@@ -97,12 +103,12 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
97
103
|
if (resizeContext.current.trigger) {
|
|
98
104
|
resizeEnd();
|
|
99
105
|
}
|
|
100
|
-
|
|
106
|
+
(_onResizeStartRef$cur = onResizeStartRef.current) === null || _onResizeStartRef$cur === void 0 ? void 0 : _onResizeStartRef$cur.call(onResizeStartRef, trigger);
|
|
101
107
|
resizeContext.current = {
|
|
102
108
|
trigger: trigger,
|
|
103
109
|
keyMoveDirection: keyMoveDirection
|
|
104
110
|
};
|
|
105
|
-
}, [
|
|
111
|
+
}, [onResizeStartRef, resizeEnd]);
|
|
106
112
|
var onMouseDown = (0, _react.useCallback)(function (event) {
|
|
107
113
|
var currentTarget = event.currentTarget;
|
|
108
114
|
var prevPanel = currentTarget.previousElementSibling;
|
|
@@ -16,6 +16,9 @@ import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_dis
|
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var COLORS = BUTTON_COLORS;
|
|
18
18
|
export var SIZES = ['s', 'm'];
|
|
19
|
+
|
|
20
|
+
// For some reason, Storybook doesn't parse `EuiButtonDisplayCommonProps` unless we include it here
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* EuiButton is largely responsible for providing relevant props
|
|
21
24
|
* and the logic for element-specific attributes
|
|
@@ -8,7 +8,5 @@
|
|
|
8
8
|
|
|
9
9
|
export { EuiColorPicker } from './color_picker';
|
|
10
10
|
export { EuiColorPickerSwatch } from './color_picker_swatch';
|
|
11
|
-
export { EuiHue } from './hue';
|
|
12
|
-
export { EuiSaturation } from './saturation';
|
|
13
11
|
export { EuiColorPalettePicker } from './color_palette_picker';
|
|
14
12
|
export { EuiColorPaletteDisplay } from './color_palette_display';
|
|
@@ -60,7 +60,7 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
|
60
60
|
export var euiContextMenuItemStyles = function euiContextMenuItemStyles(euiThemeContext) {
|
|
61
61
|
var euiTheme = euiThemeContext.euiTheme;
|
|
62
62
|
return {
|
|
63
|
-
euiContextMenuItem: /*#__PURE__*/css("display:flex;gap:", euiTheme.size.s, ";", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
63
|
+
euiContextMenuItem: /*#__PURE__*/css("display:flex;gap:", euiTheme.size.s, ";", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:where(a, button):not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
64
64
|
disabled: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";cursor:default;;label:disabled;"),
|
|
65
65
|
layoutAlign: {
|
|
66
66
|
center: _ref6,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["size", "maxWidth", "minWidth", "side", "type", "children"];
|
|
4
|
+
var _excluded = ["size", "maxWidth", "minWidth", "onResize", "side", "type", "children"];
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
7
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -22,6 +22,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22
22
|
maxWidth = _ref.maxWidth,
|
|
23
23
|
_ref$minWidth = _ref.minWidth,
|
|
24
24
|
minWidth = _ref$minWidth === void 0 ? 200 : _ref$minWidth,
|
|
25
|
+
onResize = _ref.onResize,
|
|
25
26
|
_ref$side = _ref.side,
|
|
26
27
|
side = _ref$side === void 0 ? 'right' : _ref$side,
|
|
27
28
|
_ref$type = _ref.type,
|
|
@@ -39,14 +40,19 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
41
|
flyoutWidth = _useState2[0],
|
|
41
42
|
setFlyoutWidth = _useState2[1];
|
|
43
|
+
var _useState3 = useState(false),
|
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
+
callOnResize = _useState4[0],
|
|
46
|
+
setCallOnResize = _useState4[1];
|
|
42
47
|
|
|
43
48
|
// Must use state for the flyout ref in order for the useEffect to be correctly called after render
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
flyoutRef =
|
|
47
|
-
setFlyoutRef =
|
|
49
|
+
var _useState5 = useState(null),
|
|
50
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51
|
+
flyoutRef = _useState6[0],
|
|
52
|
+
setFlyoutRef = _useState6[1];
|
|
48
53
|
var setRefs = useCombinedRefs([setFlyoutRef, ref]);
|
|
49
54
|
useEffect(function () {
|
|
55
|
+
setCallOnResize(false); // Don't call `onResize` for non-user width changes
|
|
50
56
|
setFlyoutWidth(flyoutRef ? getFlyoutMinMaxWidth(flyoutRef.offsetWidth) : 0);
|
|
51
57
|
}, [flyoutRef, getFlyoutMinMaxWidth, size]);
|
|
52
58
|
|
|
@@ -69,6 +75,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
69
75
|
setFlyoutWidth(getFlyoutMinMaxWidth(changedFlyoutWidth));
|
|
70
76
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
71
77
|
var onMouseUp = useCallback(function () {
|
|
78
|
+
setCallOnResize(true);
|
|
72
79
|
initialMouseX.current = 0;
|
|
73
80
|
window.removeEventListener('mousemove', onMouseMove);
|
|
74
81
|
window.removeEventListener('mouseup', onMouseUp);
|
|
@@ -77,6 +84,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
77
84
|
}, [onMouseMove]);
|
|
78
85
|
var onMouseDown = useCallback(function (e) {
|
|
79
86
|
var _flyoutRef$offsetWidt;
|
|
87
|
+
setCallOnResize(false);
|
|
80
88
|
initialMouseX.current = getPosition(e, true);
|
|
81
89
|
initialWidth.current = (_flyoutRef$offsetWidt = flyoutRef === null || flyoutRef === void 0 ? void 0 : flyoutRef.offsetWidth) !== null && _flyoutRef$offsetWidt !== void 0 ? _flyoutRef$offsetWidt : 0;
|
|
82
90
|
|
|
@@ -88,6 +96,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
88
96
|
window.addEventListener('touchend', onMouseUp);
|
|
89
97
|
}, [flyoutRef, onMouseMove, onMouseUp]);
|
|
90
98
|
var onKeyDown = useCallback(function (e) {
|
|
99
|
+
setCallOnResize(true);
|
|
91
100
|
var KEYBOARD_OFFSET = 10;
|
|
92
101
|
switch (e.key) {
|
|
93
102
|
case keys.ARROW_RIGHT:
|
|
@@ -103,6 +112,15 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
103
112
|
});
|
|
104
113
|
}
|
|
105
114
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
115
|
+
|
|
116
|
+
// To reduce unnecessary calls, only fire onResize callback:
|
|
117
|
+
// 1. After initial mount / on user width change events only
|
|
118
|
+
// 2. If not currently mouse dragging
|
|
119
|
+
useEffect(function () {
|
|
120
|
+
if (callOnResize) {
|
|
121
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(flyoutWidth);
|
|
122
|
+
}
|
|
123
|
+
}, [onResize, callOnResize, flyoutWidth]);
|
|
106
124
|
return ___EmotionJSX(EuiFlyout, _extends({}, rest, {
|
|
107
125
|
size: flyoutWidth || size,
|
|
108
126
|
maxWidth: maxWidth,
|
|
@@ -62,16 +62,20 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
62
62
|
return {
|
|
63
63
|
onClick: function onClick() {
|
|
64
64
|
if (ref.current) {
|
|
65
|
-
|
|
65
|
+
// Updates the displayed value and fires `onChange` callbacks
|
|
66
|
+
// @see https://stackoverflow.com/questions/23892547/what-is-the-best-way-to-trigger-onchange-event-in-react-js
|
|
67
|
+
var nativeValueSetter = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value').set;
|
|
68
|
+
nativeValueSetter.call(ref.current, '');
|
|
66
69
|
var event = new Event('input', {
|
|
67
70
|
bubbles: true,
|
|
68
71
|
cancelable: false
|
|
69
72
|
});
|
|
70
73
|
ref.current.dispatchEvent(event);
|
|
71
|
-
|
|
74
|
+
|
|
75
|
+
// Set focus back to the textarea
|
|
76
|
+
ref.current.focus();
|
|
72
77
|
}
|
|
73
78
|
},
|
|
74
|
-
|
|
75
79
|
'data-test-subj': 'clearTextAreaButton'
|
|
76
80
|
};
|
|
77
81
|
}
|
|
@@ -15,7 +15,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15
15
|
|
|
16
16
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import { keys } from '../../services';
|
|
18
|
+
import { keys, useLatest } from '../../services';
|
|
19
19
|
import { useResizeObserver } from '../observer/resize_observer';
|
|
20
20
|
import { EuiResizableContainerContextProvider } from './context';
|
|
21
21
|
import { euiResizableButtonWithControls } from './resizable_button';
|
|
@@ -42,6 +42,10 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
42
42
|
onResizeStart = _ref.onResizeStart,
|
|
43
43
|
onResizeEnd = _ref.onResizeEnd,
|
|
44
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
// Note: It's important to memoize consumer callbacks to prevent our own functions
|
|
46
|
+
// from reinstantiating unnecessarily & causing window event listeners to call stale closures
|
|
47
|
+
var onResizeEndRef = useLatest(onResizeEnd);
|
|
48
|
+
var onResizeStartRef = useLatest(onResizeStart);
|
|
45
49
|
var containerRef = useRef(null);
|
|
46
50
|
var isHorizontal = direction === 'horizontal';
|
|
47
51
|
var classes = classNames('euiResizableContainer', className);
|
|
@@ -68,10 +72,12 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
68
72
|
}, [initialize, containerSize]);
|
|
69
73
|
var resizeContext = useRef({});
|
|
70
74
|
var resizeEnd = useCallback(function () {
|
|
71
|
-
|
|
75
|
+
var _onResizeEndRef$curre;
|
|
76
|
+
(_onResizeEndRef$curre = onResizeEndRef.current) === null || _onResizeEndRef$curre === void 0 ? void 0 : _onResizeEndRef$curre.call(onResizeEndRef);
|
|
72
77
|
resizeContext.current = {};
|
|
73
|
-
}, [
|
|
78
|
+
}, [onResizeEndRef]);
|
|
74
79
|
var resizeStart = useCallback(function (trigger, keyMoveDirection) {
|
|
80
|
+
var _onResizeStartRef$cur;
|
|
75
81
|
// If another resize starts while the previous one is still in progress
|
|
76
82
|
// (e.g. user presses opposite arrow to change direction while the first
|
|
77
83
|
// is still held down, or user presses an arrow while dragging with the
|
|
@@ -79,12 +85,12 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
79
85
|
if (resizeContext.current.trigger) {
|
|
80
86
|
resizeEnd();
|
|
81
87
|
}
|
|
82
|
-
|
|
88
|
+
(_onResizeStartRef$cur = onResizeStartRef.current) === null || _onResizeStartRef$cur === void 0 ? void 0 : _onResizeStartRef$cur.call(onResizeStartRef, trigger);
|
|
83
89
|
resizeContext.current = {
|
|
84
90
|
trigger: trigger,
|
|
85
91
|
keyMoveDirection: keyMoveDirection
|
|
86
92
|
};
|
|
87
|
-
}, [
|
|
93
|
+
}, [onResizeStartRef, resizeEnd]);
|
|
88
94
|
var onMouseDown = useCallback(function (event) {
|
|
89
95
|
var currentTarget = event.currentTarget;
|
|
90
96
|
var prevPanel = currentTarget.previousElementSibling;
|
|
@@ -23,6 +23,8 @@ var _excluded = ["className", "buttonRef", "size", "color", "fill"];
|
|
|
23
23
|
var COLORS = _button.BUTTON_COLORS;
|
|
24
24
|
exports.COLORS = COLORS;
|
|
25
25
|
var SIZES = ['s', 'm'];
|
|
26
|
+
|
|
27
|
+
// For some reason, Storybook doesn't parse `EuiButtonDisplayCommonProps` unless we include it here
|
|
26
28
|
exports.SIZES = SIZES;
|
|
27
29
|
/**
|
|
28
30
|
* EuiButton is largely responsible for providing relevant props
|
|
@@ -27,21 +27,7 @@ Object.defineProperty(exports, "EuiColorPickerSwatch", {
|
|
|
27
27
|
return _color_picker_swatch.EuiColorPickerSwatch;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "EuiHue", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _hue.EuiHue;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "EuiSaturation", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _saturation.EuiSaturation;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
30
|
var _color_picker = require("./color_picker");
|
|
43
31
|
var _color_picker_swatch = require("./color_picker_swatch");
|
|
44
|
-
var _hue = require("./hue");
|
|
45
|
-
var _saturation = require("./saturation");
|
|
46
32
|
var _color_palette_picker = require("./color_palette_picker");
|
|
47
33
|
var _color_palette_display = require("./color_palette_display");
|
|
@@ -21,13 +21,6 @@ Object.defineProperty(exports, "EuiCommentList", {
|
|
|
21
21
|
return _comment_list.EuiCommentList;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "EuiCommentTimeline", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _comment_timeline.EuiCommentTimeline;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
24
|
var _comment = require("./comment");
|
|
31
25
|
var _comment_event = require("./comment_event");
|
|
32
|
-
var _comment_timeline = require("./comment_timeline");
|
|
33
26
|
var _comment_list = require("./comment_list");
|
|
@@ -64,7 +64,7 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
|
64
64
|
var euiContextMenuItemStyles = function euiContextMenuItemStyles(euiThemeContext) {
|
|
65
65
|
var euiTheme = euiThemeContext.euiTheme;
|
|
66
66
|
return {
|
|
67
|
-
euiContextMenuItem: /*#__PURE__*/(0, _react.css)("display:flex;gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
67
|
+
euiContextMenuItem: /*#__PURE__*/(0, _react.css)("display:flex;gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:where(a, button):not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
68
68
|
disabled: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.disabledText, ";cursor:default;;label:disabled;"),
|
|
69
69
|
layoutAlign: {
|
|
70
70
|
center: _ref6,
|
|
@@ -16,7 +16,7 @@ var _helpers = require("../resizable_container/helpers");
|
|
|
16
16
|
var _flyout = require("./flyout");
|
|
17
17
|
var _flyout_resizable = require("./flyout_resizable.styles");
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var _excluded = ["size", "maxWidth", "minWidth", "side", "type", "children"];
|
|
19
|
+
var _excluded = ["size", "maxWidth", "minWidth", "onResize", "side", "type", "children"];
|
|
20
20
|
/*
|
|
21
21
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
22
22
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -31,6 +31,7 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
31
31
|
maxWidth = _ref.maxWidth,
|
|
32
32
|
_ref$minWidth = _ref.minWidth,
|
|
33
33
|
minWidth = _ref$minWidth === void 0 ? 200 : _ref$minWidth,
|
|
34
|
+
onResize = _ref.onResize,
|
|
34
35
|
_ref$side = _ref.side,
|
|
35
36
|
side = _ref$side === void 0 ? 'right' : _ref$side,
|
|
36
37
|
_ref$type = _ref.type,
|
|
@@ -48,14 +49,19 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
48
49
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
49
50
|
flyoutWidth = _useState2[0],
|
|
50
51
|
setFlyoutWidth = _useState2[1];
|
|
52
|
+
var _useState3 = (0, _react.useState)(false),
|
|
53
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
54
|
+
callOnResize = _useState4[0],
|
|
55
|
+
setCallOnResize = _useState4[1];
|
|
51
56
|
|
|
52
57
|
// Must use state for the flyout ref in order for the useEffect to be correctly called after render
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
flyoutRef =
|
|
56
|
-
setFlyoutRef =
|
|
58
|
+
var _useState5 = (0, _react.useState)(null),
|
|
59
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
60
|
+
flyoutRef = _useState6[0],
|
|
61
|
+
setFlyoutRef = _useState6[1];
|
|
57
62
|
var setRefs = (0, _services.useCombinedRefs)([setFlyoutRef, ref]);
|
|
58
63
|
(0, _react.useEffect)(function () {
|
|
64
|
+
setCallOnResize(false); // Don't call `onResize` for non-user width changes
|
|
59
65
|
setFlyoutWidth(flyoutRef ? getFlyoutMinMaxWidth(flyoutRef.offsetWidth) : 0);
|
|
60
66
|
}, [flyoutRef, getFlyoutMinMaxWidth, size]);
|
|
61
67
|
|
|
@@ -78,6 +84,7 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
78
84
|
setFlyoutWidth(getFlyoutMinMaxWidth(changedFlyoutWidth));
|
|
79
85
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
80
86
|
var onMouseUp = (0, _react.useCallback)(function () {
|
|
87
|
+
setCallOnResize(true);
|
|
81
88
|
initialMouseX.current = 0;
|
|
82
89
|
window.removeEventListener('mousemove', onMouseMove);
|
|
83
90
|
window.removeEventListener('mouseup', onMouseUp);
|
|
@@ -86,6 +93,7 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
86
93
|
}, [onMouseMove]);
|
|
87
94
|
var onMouseDown = (0, _react.useCallback)(function (e) {
|
|
88
95
|
var _flyoutRef$offsetWidt;
|
|
96
|
+
setCallOnResize(false);
|
|
89
97
|
initialMouseX.current = (0, _helpers.getPosition)(e, true);
|
|
90
98
|
initialWidth.current = (_flyoutRef$offsetWidt = flyoutRef === null || flyoutRef === void 0 ? void 0 : flyoutRef.offsetWidth) !== null && _flyoutRef$offsetWidt !== void 0 ? _flyoutRef$offsetWidt : 0;
|
|
91
99
|
|
|
@@ -97,6 +105,7 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
97
105
|
window.addEventListener('touchend', onMouseUp);
|
|
98
106
|
}, [flyoutRef, onMouseMove, onMouseUp]);
|
|
99
107
|
var onKeyDown = (0, _react.useCallback)(function (e) {
|
|
108
|
+
setCallOnResize(true);
|
|
100
109
|
var KEYBOARD_OFFSET = 10;
|
|
101
110
|
switch (e.key) {
|
|
102
111
|
case _services.keys.ARROW_RIGHT:
|
|
@@ -112,6 +121,15 @@ var EuiFlyoutResizable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
|
112
121
|
});
|
|
113
122
|
}
|
|
114
123
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
124
|
+
|
|
125
|
+
// To reduce unnecessary calls, only fire onResize callback:
|
|
126
|
+
// 1. After initial mount / on user width change events only
|
|
127
|
+
// 2. If not currently mouse dragging
|
|
128
|
+
(0, _react.useEffect)(function () {
|
|
129
|
+
if (callOnResize) {
|
|
130
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(flyoutWidth);
|
|
131
|
+
}
|
|
132
|
+
}, [onResize, callOnResize, flyoutWidth]);
|
|
115
133
|
return (0, _react2.jsx)(_flyout.EuiFlyout, (0, _extends2.default)({}, rest, {
|
|
116
134
|
size: flyoutWidth || size,
|
|
117
135
|
maxWidth: maxWidth,
|
|
@@ -72,16 +72,20 @@ var EuiTextArea = function EuiTextArea(props) {
|
|
|
72
72
|
return {
|
|
73
73
|
onClick: function onClick() {
|
|
74
74
|
if (ref.current) {
|
|
75
|
-
|
|
75
|
+
// Updates the displayed value and fires `onChange` callbacks
|
|
76
|
+
// @see https://stackoverflow.com/questions/23892547/what-is-the-best-way-to-trigger-onchange-event-in-react-js
|
|
77
|
+
var nativeValueSetter = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value').set;
|
|
78
|
+
nativeValueSetter.call(ref.current, '');
|
|
76
79
|
var event = new Event('input', {
|
|
77
80
|
bubbles: true,
|
|
78
81
|
cancelable: false
|
|
79
82
|
});
|
|
80
83
|
ref.current.dispatchEvent(event);
|
|
81
|
-
|
|
84
|
+
|
|
85
|
+
// Set focus back to the textarea
|
|
86
|
+
ref.current.focus();
|
|
82
87
|
}
|
|
83
88
|
},
|
|
84
|
-
|
|
85
89
|
'data-test-subj': 'clearTextAreaButton'
|
|
86
90
|
};
|
|
87
91
|
}
|