@elastic/eui 116.2.0 → 116.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/avatar/avatar.js +14 -5
- package/es/components/banner/banner.js +202 -0
- package/es/components/banner/banner.styles.js +76 -0
- package/es/components/banner/index.js +9 -0
- package/es/components/basic_table/basic_table.js +21 -10
- package/es/components/basic_table/collapsed_item_actions.js +5 -4
- package/es/components/basic_table/default_item_action.js +3 -5
- package/es/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/es/components/context_menu/context_menu_panel_title.js +0 -12
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/es/components/datagrid/controls/display_selector.js +2 -1
- package/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/es/components/date_picker/react-datepicker/src/index.js +1 -5
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/es/components/form/field_password/field_password.js +6 -3
- package/es/components/header/header.a11y.js +1 -1
- package/es/components/index.js +1 -0
- package/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/es/components/pagination/pagination_button_arrow.js +6 -2
- package/es/components/panel/panel.styles.js +4 -4
- package/es/components/panel/split_panel/split_panel.styles.js +1 -1
- package/es/components/search_bar/search_bar.js +20 -16
- package/es/components/search_bar/search_box.js +4 -2
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
- package/es/components/table/sticky_header/context.js +32 -0
- package/es/components/table/sticky_header/index.js +10 -0
- package/es/components/table/sticky_header/sticky_header.js +151 -0
- package/es/components/table/sticky_header/sticky_header.styles.js +43 -0
- package/es/components/table/store/provider.js +37 -0
- package/es/components/table/store/store.js +82 -0
- package/es/components/table/table.js +28 -3
- package/es/components/table/table.styles.js +4 -4
- package/es/components/table/table_header_cell.js +116 -48
- package/es/components/table/table_header_cell_checkbox.js +59 -25
- package/es/components/text_truncate/text_truncate.js +8 -3
- package/es/components/tool_tip/tool_tip.js +1 -1
- package/es/components/tool_tip/tool_tip.styles.js +14 -5
- package/es/utils/publisher.js +53 -0
- package/eui.d.ts +1266 -975
- package/i18ntokens.json +2390 -2372
- package/lib/components/avatar/avatar.js +14 -5
- package/lib/components/banner/banner.js +211 -0
- package/lib/components/banner/banner.styles.js +80 -0
- package/lib/components/banner/index.js +12 -0
- package/lib/components/basic_table/basic_table.js +21 -10
- package/lib/components/basic_table/collapsed_item_actions.js +5 -4
- package/lib/components/basic_table/default_item_action.js +3 -5
- package/lib/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/lib/components/context_menu/context_menu_panel_title.js +0 -12
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/lib/components/datagrid/controls/display_selector.js +2 -1
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/lib/components/date_picker/react-datepicker/src/index.js +0 -4
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/lib/components/form/field_password/field_password.js +6 -3
- package/lib/components/header/header.a11y.js +1 -1
- package/lib/components/index.js +11 -0
- package/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/lib/components/pagination/pagination_button_arrow.js +6 -2
- package/lib/components/panel/panel.styles.js +4 -4
- package/lib/components/panel/split_panel/split_panel.styles.js +1 -1
- package/lib/components/search_bar/search_bar.js +20 -16
- package/lib/components/search_bar/search_box.js +4 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
- package/lib/components/table/sticky_header/context.js +41 -0
- package/lib/components/table/sticky_header/index.js +19 -0
- package/lib/components/table/sticky_header/sticky_header.js +156 -0
- package/lib/components/table/sticky_header/sticky_header.styles.js +47 -0
- package/lib/components/table/store/provider.js +46 -0
- package/lib/components/table/store/store.js +87 -0
- package/lib/components/table/table.js +28 -3
- package/lib/components/table/table.styles.js +4 -4
- package/lib/components/table/table_header_cell.js +118 -48
- package/lib/components/table/table_header_cell_checkbox.js +62 -25
- package/lib/components/text_truncate/text_truncate.js +8 -3
- package/lib/components/tool_tip/tool_tip.js +1 -1
- package/lib/components/tool_tip/tool_tip.styles.js +14 -5
- package/lib/utils/publisher.js +59 -0
- package/optimize/es/components/avatar/avatar.js +12 -4
- package/optimize/es/components/banner/banner.js +112 -0
- package/optimize/es/components/banner/banner.styles.js +76 -0
- package/optimize/es/components/banner/index.js +9 -0
- package/optimize/es/components/basic_table/basic_table.js +21 -10
- package/optimize/es/components/basic_table/collapsed_item_actions.js +5 -4
- package/optimize/es/components/basic_table/default_item_action.js +3 -5
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +27 -18
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/optimize/es/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/optimize/es/components/date_picker/react-datepicker/src/index.js +1 -5
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/optimize/es/components/form/field_password/field_password.js +6 -3
- package/optimize/es/components/header/header.a11y.js +1 -1
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/optimize/es/components/pagination/pagination_button_arrow.js +6 -2
- package/optimize/es/components/panel/panel.styles.js +4 -4
- package/optimize/es/components/panel/split_panel/split_panel.styles.js +1 -1
- package/optimize/es/components/search_bar/search_bar.js +20 -16
- package/optimize/es/components/search_bar/search_box.js +4 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/es/components/table/sticky_header/context.js +32 -0
- package/optimize/es/components/table/sticky_header/index.js +10 -0
- package/optimize/es/components/table/sticky_header/sticky_header.js +146 -0
- package/optimize/es/components/table/sticky_header/sticky_header.styles.js +43 -0
- package/optimize/es/components/table/store/provider.js +37 -0
- package/optimize/es/components/table/store/store.js +82 -0
- package/optimize/es/components/table/table.js +15 -3
- package/optimize/es/components/table/table.styles.js +4 -4
- package/optimize/es/components/table/table_header_cell.js +116 -48
- package/optimize/es/components/table/table_header_cell_checkbox.js +59 -25
- package/optimize/es/components/text_truncate/text_truncate.js +8 -3
- package/optimize/es/components/tool_tip/tool_tip.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +14 -5
- package/optimize/es/utils/publisher.js +53 -0
- package/optimize/lib/components/avatar/avatar.js +12 -4
- package/optimize/lib/components/banner/banner.js +121 -0
- package/optimize/lib/components/banner/banner.styles.js +80 -0
- package/optimize/lib/components/banner/index.js +12 -0
- package/optimize/lib/components/basic_table/basic_table.js +21 -10
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +5 -4
- package/optimize/lib/components/basic_table/default_item_action.js +3 -5
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +27 -18
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/optimize/lib/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/optimize/lib/components/date_picker/react-datepicker/src/index.js +0 -4
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/optimize/lib/components/form/field_password/field_password.js +6 -3
- package/optimize/lib/components/header/header.a11y.js +1 -1
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/optimize/lib/components/pagination/pagination_button_arrow.js +6 -2
- package/optimize/lib/components/panel/panel.styles.js +4 -4
- package/optimize/lib/components/panel/split_panel/split_panel.styles.js +1 -1
- package/optimize/lib/components/search_bar/search_bar.js +20 -16
- package/optimize/lib/components/search_bar/search_box.js +4 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/lib/components/table/sticky_header/context.js +41 -0
- package/optimize/lib/components/table/sticky_header/index.js +19 -0
- package/optimize/lib/components/table/sticky_header/sticky_header.js +156 -0
- package/optimize/lib/components/table/sticky_header/sticky_header.styles.js +47 -0
- package/optimize/lib/components/table/store/provider.js +46 -0
- package/optimize/lib/components/table/store/store.js +87 -0
- package/optimize/lib/components/table/table.js +15 -3
- package/optimize/lib/components/table/table.styles.js +4 -4
- package/optimize/lib/components/table/table_header_cell.js +119 -48
- package/optimize/lib/components/table/table_header_cell_checkbox.js +62 -25
- package/optimize/lib/components/text_truncate/text_truncate.js +8 -3
- package/optimize/lib/components/tool_tip/tool_tip.js +1 -1
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +14 -5
- package/optimize/lib/utils/publisher.js +59 -0
- package/package.json +2 -2
- package/test-env/components/avatar/avatar.js +14 -5
- package/test-env/components/banner/banner.js +210 -0
- package/test-env/components/banner/banner.styles.js +80 -0
- package/test-env/components/banner/index.js +12 -0
- package/test-env/components/basic_table/basic_table.js +21 -10
- package/test-env/components/basic_table/collapsed_item_actions.js +5 -4
- package/test-env/components/basic_table/default_item_action.js +3 -5
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/test-env/components/context_menu/context_menu_panel_title.js +0 -12
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/test-env/components/datagrid/controls/display_selector.js +2 -1
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/test-env/components/date_picker/react-datepicker/src/index.js +0 -4
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/test-env/components/form/field_password/field_password.js +6 -3
- package/test-env/components/header/header.a11y.js +1 -1
- package/test-env/components/index.js +11 -0
- package/test-env/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/test-env/components/pagination/pagination_button_arrow.js +6 -2
- package/test-env/components/panel/panel.styles.js +4 -4
- package/test-env/components/panel/split_panel/split_panel.styles.js +1 -1
- package/test-env/components/search_bar/search_bar.js +20 -16
- package/test-env/components/search_bar/search_box.js +4 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
- package/test-env/components/table/sticky_header/context.js +41 -0
- package/test-env/components/table/sticky_header/index.js +19 -0
- package/test-env/components/table/sticky_header/sticky_header.js +156 -0
- package/test-env/components/table/sticky_header/sticky_header.styles.js +47 -0
- package/test-env/components/table/store/provider.js +46 -0
- package/test-env/components/table/store/store.js +87 -0
- package/test-env/components/table/table.js +28 -3
- package/test-env/components/table/table.styles.js +4 -4
- package/test-env/components/table/table_header_cell.js +119 -48
- package/test-env/components/table/table_header_cell_checkbox.js +62 -25
- package/test-env/components/text_truncate/text_truncate.js +8 -3
- package/test-env/components/tool_tip/tool_tip.js +1 -1
- package/test-env/components/tool_tip/tool_tip.styles.js +14 -5
- package/test-env/utils/publisher.js +59 -0
|
@@ -63,18 +63,6 @@ EuiContextMenuPanelTitle.propTypes = {
|
|
|
63
63
|
title: PropTypes.node,
|
|
64
64
|
buttonRef: PropTypes.any,
|
|
65
65
|
buttonProps: PropTypes.shape({
|
|
66
|
-
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "alert", "analyzeEvent", "annotation", "anomalyChart", "chartAnomaly", "anomalySwimLane", "apmApp", "apmTrace", "chartWaterfall", "appSearchApp", "apps", "arrowDown", "chevronSingleDown", "arrowLeft", "chevronSingleLeft", "arrowRight", "chevronSingleRight", "arrowUp", "chevronSingleUp", "arrowStart", "chevronLimitLeft", "arrowEnd", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "chartChangePoint", "chartArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "chartBarVerticalStack", "chartGauge", "chartHeatmap", "chartLine", "chartPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkInCircleFilled", "checkCircleFill", "cheer", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "paintBucket", "commandLine", "comment", "compare", "compute", "processor", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "contrastFill", "controls", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crossCircle", "crosshair", "crosshairs", "currency", "money", "cut", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "desktop", "display", "devToolsApp", "diff", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "chevronDoubleLeft", "doubleArrowRight", "chevronDoubleRight", "ellipsis", "editorAlignCenter", "textAlignCenter", "editorAlignLeft", "textAlignLeft", "editorAlignRight", "textAlignRight", "editorBold", "textBold", "editorChecklist", "listCheck", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "textHeading", "editorItalic", "textItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "listNumber", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "redo", "editorStrike", "textStrike", "editorTable", "table", "editorUnderline", "textUnderline", "editorUndo", "undo", "editorUnorderedList", "listBullet", "email", "mail", "empty", "emsApp", "endpoint", "eql", "query", "eraser", "error", "errorFilled", "errorFill", "esqlVis", "exit", "logOut", "expand", "maximize", "expandMini", "export", "exportAction", "upload", "external", "eye", "eyeClosed", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "hourglass", "if", "info", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "mapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "tableTime", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "queryField", "kqlFunction", "kqlOperand", "queryOperand", "kqlSelector", "querySelector", "kqlValue", "queryValue", "kubernetesNode", "kubernetesPod", "launch", "rocket", "layers", "lensApp", "lettering", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDashed", "lineDot", "lineDotted", "lineSolid", "link", "linkSlash", "list", "listAdd", "lock", "lockOpen", "logPatternAnalysis", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "queue", "machineLearningApp", "magnet", "magnify", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusInCircle", "minusInCircleFilled", "minusInSquare", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "vectorTriangle", "notebookApp", "number", "offline", "wifiSlash", "online", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusCircle", "plusInCircle", "plusInCircleFilled", "plusInSquare", "plusSquare", "popout", "presentation", "productRobot", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "push", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starFilledSpace", "starMinusEmpty", "starMinusFill", "starMinusFilled", "starPlusEmpty", "starPlusFill", "starPlusFilled", "stats", "stop", "stopFill", "stopFilled", "stopSlash", "storage", "streamsClassic", "streamsWired", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityHigh", "tableDensityExpanded", "tableDensityLow", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "thermometer", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "refreshTime", "timeslider", "training", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "unarchive", "vector", "vectorSquare", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "chartMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
67
|
-
/**
|
|
68
|
-
* Any of the named color palette options.
|
|
69
|
-
*
|
|
70
|
-
* Do not use the following colors for standalone buttons directly,
|
|
71
|
-
* they exist to serve other components:
|
|
72
|
-
* - accent
|
|
73
|
-
* - warning
|
|
74
|
-
* - neutral
|
|
75
|
-
* - risk
|
|
76
|
-
*/
|
|
77
|
-
color: PropTypes.any,
|
|
78
66
|
"aria-label": PropTypes.string,
|
|
79
67
|
"aria-labelledby": PropTypes.string,
|
|
80
68
|
/**
|
|
@@ -24,6 +24,7 @@ import { EuiButtonIcon } from '../../../button/button_icon';
|
|
|
24
24
|
import { EuiButtonEmpty } from '../../../button/button_empty';
|
|
25
25
|
import { EuiFlexGroup, EuiFlexItem } from '../../../flex';
|
|
26
26
|
import { EuiPopoverFooter } from '../../../popover';
|
|
27
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
27
28
|
import { euiDataGridCellActionsStyles } from './data_grid_cell_actions.styles';
|
|
28
29
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
29
30
|
export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
|
|
@@ -44,18 +45,21 @@ export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
|
|
|
44
45
|
token: "euiDataGridCellActions.expandButtonTitle",
|
|
45
46
|
default: "Click or hit enter to interact with cell content"
|
|
46
47
|
}, function (expandButtonTitle) {
|
|
47
|
-
return ___EmotionJSX(
|
|
48
|
-
|
|
48
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
49
|
+
content: expandButtonTitle,
|
|
50
|
+
disableScreenReaderOutput: true,
|
|
51
|
+
display: "flex"
|
|
52
|
+
}, ___EmotionJSX(EuiButtonIcon, {
|
|
53
|
+
"aria-hidden": true,
|
|
49
54
|
className: "euiDataGridRowCell__actionButtonIcon euiDataGridRowCell__expandCell",
|
|
55
|
+
color: "primary",
|
|
56
|
+
css: styles.euiDataGridRowCell__actionButtonIcon,
|
|
50
57
|
"data-test-subj": "euiDataGridCellExpandButton",
|
|
51
58
|
display: "fill",
|
|
52
|
-
color: "primary",
|
|
53
59
|
iconSize: "s",
|
|
54
60
|
iconType: "maximize",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
title: expandButtonTitle
|
|
58
|
-
});
|
|
61
|
+
onClick: onExpandClick
|
|
62
|
+
}));
|
|
59
63
|
});
|
|
60
64
|
}, [onExpandClick, styles]);
|
|
61
65
|
var additionalButtons = useMemo(function () {
|
|
@@ -361,7 +361,8 @@ export var useDataGridDisplaySelector = function useDataGridDisplaySelector(show
|
|
|
361
361
|
},
|
|
362
362
|
panelClassName: "euiDataGrid__displayPopoverPanel",
|
|
363
363
|
button: ___EmotionJSX(EuiToolTip, {
|
|
364
|
-
content: buttonLabel
|
|
364
|
+
content: buttonLabel,
|
|
365
|
+
disableScreenReaderOutput: true
|
|
365
366
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
366
367
|
size: "xs",
|
|
367
368
|
iconType: "controls",
|
|
@@ -40,7 +40,8 @@ export var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts(
|
|
|
40
40
|
anchorPosition: "downRight",
|
|
41
41
|
panelPaddingSize: "none",
|
|
42
42
|
button: ___EmotionJSX(EuiToolTip, {
|
|
43
|
-
content: title
|
|
43
|
+
content: title,
|
|
44
|
+
disableScreenReaderOutput: true
|
|
44
45
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
45
46
|
size: "xs",
|
|
46
47
|
iconType: "keyboard",
|
|
@@ -23,6 +23,7 @@ import classNames from 'classnames';
|
|
|
23
23
|
import { EuiFieldText, EuiFormPrepend } from '../../form';
|
|
24
24
|
import { EuiButtonEmpty } from '../../button/button_empty/button_empty';
|
|
25
25
|
import { EuiInputPopover, EuiPopover } from '../../popover';
|
|
26
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
26
27
|
import { useEuiI18n } from '../../i18n';
|
|
27
28
|
import { usePrettyInterval } from '../super_date_picker/pretty_interval';
|
|
28
29
|
import { EuiRefreshInterval } from './refresh_interval';
|
|
@@ -141,7 +142,9 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
|
|
|
141
142
|
})
|
|
142
143
|
});
|
|
143
144
|
return ___EmotionJSX(EuiPopover, {
|
|
144
|
-
button: ___EmotionJSX(
|
|
145
|
+
button: ___EmotionJSX(EuiToolTip, {
|
|
146
|
+
content: isPaused ? autoRefeshLabelOff : autoRefeshLabelOn
|
|
147
|
+
}, ___EmotionJSX(EuiButtonEmpty, _extends({
|
|
145
148
|
onClick: function onClick() {
|
|
146
149
|
return setIsPopoverOpen(function (isOpen) {
|
|
147
150
|
return !isOpen;
|
|
@@ -151,12 +154,12 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
|
|
|
151
154
|
size: size,
|
|
152
155
|
color: color,
|
|
153
156
|
iconType: "refreshTime",
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
isDisabled: isDisabled,
|
|
158
|
+
hasAriaDisabled: isDisabled
|
|
156
159
|
}, rest), usePrettyInterval(Boolean(isPaused), refreshInterval, {
|
|
157
160
|
shortHand: shortHand,
|
|
158
161
|
unit: intervalUnits
|
|
159
|
-
})),
|
|
162
|
+
}))),
|
|
160
163
|
isOpen: isPopoverOpen,
|
|
161
164
|
closePopover: function closePopover() {
|
|
162
165
|
setIsPopoverOpen(false);
|
|
@@ -42,7 +42,7 @@ import Calendar from "./calendar";
|
|
|
42
42
|
import React from "react";
|
|
43
43
|
import PropTypes from "prop-types";
|
|
44
44
|
import classnames from "classnames";
|
|
45
|
-
import { newDate, now, cloneDate, isMoment, isDate, isBefore, isAfter, equals, setTime, getMillisecond, getSecond, getMinute, getHour, addDays, addMonths, addWeeks, addYears, subtractDays, subtractMonths, subtractWeeks, subtractYears, isSameTime, isDayDisabled,
|
|
45
|
+
import { newDate, now, cloneDate, isMoment, isDate, isBefore, isAfter, equals, setTime, getMillisecond, getSecond, getMinute, getHour, addDays, addMonths, addWeeks, addYears, subtractDays, subtractMonths, subtractWeeks, subtractYears, isSameTime, isDayDisabled, isDayInRange, getEffectiveMinDate, getEffectiveMaxDate, parseDate, safeDateFormat, getHightLightDaysMap, getYear, getMonth } from "./date_utils";
|
|
46
46
|
import { EuiPopover, popoverAnchorPosition } from '../../../popover/popover';
|
|
47
47
|
import { EuiFieldText } from '../../../form/field_text';
|
|
48
48
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -254,10 +254,6 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
254
254
|
_defineProperty(_this, "setSelected", function (date, event, keepInput) {
|
|
255
255
|
var changedDate = date;
|
|
256
256
|
if (changedDate !== null && isDayDisabled(changedDate, _this.props)) {
|
|
257
|
-
if (isOutOfBounds(changedDate, _this.props)) {
|
|
258
|
-
_this.props.onChange(date, event);
|
|
259
|
-
_this.props.onSelect(changedDate, event);
|
|
260
|
-
}
|
|
261
257
|
return;
|
|
262
258
|
}
|
|
263
259
|
if (changedDate !== null && _this.props.selected) {
|
|
@@ -22,6 +22,7 @@ import { useEuiI18n } from '../../../i18n';
|
|
|
22
22
|
import { EuiFormRow, EuiFieldText, EuiFormLabel } from '../../../form';
|
|
23
23
|
import { EuiFlexGroup } from '../../../flex';
|
|
24
24
|
import { EuiButtonIcon } from '../../../button';
|
|
25
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
25
26
|
import { EuiCode } from '../../../code';
|
|
26
27
|
import { EuiDatePicker } from '../../date_picker';
|
|
27
28
|
import { EuiTimeZoneDisplay } from './timezone_display';
|
|
@@ -180,16 +181,18 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
180
181
|
prepend: ___EmotionJSX(EuiFormLabel, {
|
|
181
182
|
id: textInputLabelId
|
|
182
183
|
}, labelPrefix)
|
|
183
|
-
})), hasUnparsedText && ___EmotionJSX(
|
|
184
|
+
})), hasUnparsedText && ___EmotionJSX(EuiToolTip, {
|
|
185
|
+
content: submitButtonLabel,
|
|
186
|
+
disableScreenReaderOutput: true
|
|
187
|
+
}, ___EmotionJSX(EuiButtonIcon, {
|
|
184
188
|
type: "submit",
|
|
185
189
|
css: styles.euiAbsoluteTabDateForm__submit,
|
|
186
190
|
size: "s",
|
|
187
191
|
display: "base",
|
|
188
192
|
iconType: "check",
|
|
189
193
|
"aria-label": submitButtonLabel,
|
|
190
|
-
title: submitButtonLabel,
|
|
191
194
|
"data-test-subj": "parseAbsoluteDateFormat"
|
|
192
|
-
})), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
|
|
195
|
+
}))), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
|
|
193
196
|
id: timeZomeDescriptionId
|
|
194
197
|
}, timeZoneDisplayProps)));
|
|
195
198
|
};
|
|
@@ -18,6 +18,7 @@ import classNames from 'classnames';
|
|
|
18
18
|
import { useEuiMemoizedStyles } from '../../../../services';
|
|
19
19
|
import { useEuiI18n } from '../../../i18n';
|
|
20
20
|
import { EuiPopover } from '../../../popover';
|
|
21
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
21
22
|
import { useFormatTimeString } from '../pretty_duration';
|
|
22
23
|
import { EuiDatePopoverContent } from './date_popover_content';
|
|
23
24
|
import { euiDatePopoverButtonStyles } from './date_popover_button.styles';
|
|
@@ -72,16 +73,23 @@ export var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
|
|
|
72
73
|
} else if (needsUpdating) {
|
|
73
74
|
title = outdatedTitle;
|
|
74
75
|
}
|
|
75
|
-
var
|
|
76
|
+
var rawButton = ___EmotionJSX("button", _extends({
|
|
76
77
|
type: "button",
|
|
77
78
|
onClick: onPopoverToggle,
|
|
78
79
|
className: classes,
|
|
79
|
-
title: title,
|
|
80
80
|
disabled: isDisabled,
|
|
81
81
|
"data-test-subj": "superDatePicker".concat(position, "DatePopoverButton")
|
|
82
82
|
}, buttonProps, {
|
|
83
83
|
css: cssStyles
|
|
84
84
|
}), formattedValue);
|
|
85
|
+
var button = title ? ___EmotionJSX(EuiToolTip, {
|
|
86
|
+
content: title,
|
|
87
|
+
display: "block",
|
|
88
|
+
disableScreenReaderOutput: !isInvalid && !needsUpdating,
|
|
89
|
+
anchorProps: {
|
|
90
|
+
css: styles.tooltipAnchor
|
|
91
|
+
}
|
|
92
|
+
}, rawButton) : rawButton;
|
|
85
93
|
return ___EmotionJSX(EuiPopover, _extends({
|
|
86
94
|
button: button,
|
|
87
95
|
isOpen: isOpen,
|
package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js
CHANGED
|
@@ -21,7 +21,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21
21
|
export var euiDatePopoverButtonStyles = function euiDatePopoverButtonStyles(euiThemeContext) {
|
|
22
22
|
return {
|
|
23
23
|
euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;"),
|
|
24
|
-
now: _ref
|
|
24
|
+
now: _ref,
|
|
25
|
+
tooltipAnchor: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), ";;label:tooltipAnchor;")
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
export var _buttonStyles = function _buttonStyles(euiThemeContext) {
|
package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js
CHANGED
|
@@ -23,6 +23,7 @@ import { useEuiMemoizedStyles } from '../../../../services';
|
|
|
23
23
|
import { useEuiI18n } from '../../../i18n';
|
|
24
24
|
import { EuiPopover } from '../../../popover';
|
|
25
25
|
import { EuiFormPrepend } from '../../../form';
|
|
26
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
26
27
|
import { euiQuickSelectPopoverStyles } from './quick_select_popover.styles';
|
|
27
28
|
import { EuiQuickSelectPanel } from './quick_select_panel';
|
|
28
29
|
import { EuiQuickSelect } from './quick_select';
|
|
@@ -70,21 +71,23 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
70
71
|
closePopover();
|
|
71
72
|
}
|
|
72
73
|
}, [_applyTime, closePopover]);
|
|
73
|
-
var
|
|
74
|
+
var buttonLabel = useEuiI18n('euiQuickSelectPopover.buttonLabel', 'Date quick select');
|
|
74
75
|
var quickSelectButtonOnClick = function quickSelectButtonOnClick(e) {
|
|
75
76
|
togglePopover();
|
|
76
77
|
buttonOnClick === null || buttonOnClick === void 0 || buttonOnClick(e);
|
|
77
78
|
};
|
|
78
|
-
var quickSelectButton = ___EmotionJSX(
|
|
79
|
+
var quickSelectButton = ___EmotionJSX(EuiToolTip, {
|
|
80
|
+
content: buttonLabel,
|
|
81
|
+
disableScreenReaderOutput: true
|
|
82
|
+
}, ___EmotionJSX(EuiFormPrepend, _extends({
|
|
79
83
|
element: "button",
|
|
80
84
|
iconLeft: "calendar",
|
|
81
85
|
iconRight: "chevronSingleDown",
|
|
82
86
|
isDisabled: props.isDisabled,
|
|
83
87
|
onClick: quickSelectButtonOnClick,
|
|
84
|
-
"aria-label":
|
|
85
|
-
title: buttonlabel,
|
|
88
|
+
"aria-label": buttonLabel,
|
|
86
89
|
"data-test-subj": "superDatePickerToggleQuickMenuButton"
|
|
87
|
-
}, quickSelectButtonProps));
|
|
90
|
+
}, quickSelectButtonProps)));
|
|
88
91
|
return ___EmotionJSX(EuiPopover, {
|
|
89
92
|
button: quickSelectButton,
|
|
90
93
|
isOpen: isOpen,
|
|
@@ -26,6 +26,7 @@ import classNames from 'classnames';
|
|
|
26
26
|
import { useCombinedRefs, useEuiMemoizedStyles } from '../../../services';
|
|
27
27
|
import { useEuiI18n } from '../../i18n';
|
|
28
28
|
import { EuiButtonIcon } from '../../button';
|
|
29
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
29
30
|
import { EuiFormControlLayout } from '../form_control_layout';
|
|
30
31
|
import { EuiValidatableControl } from '../validatable_control';
|
|
31
32
|
import { useFormContext } from '../eui_form_context';
|
|
@@ -86,16 +87,18 @@ export var EuiFieldPassword = function EuiFieldPassword(props) {
|
|
|
86
87
|
var visibilityToggle = useMemo(function () {
|
|
87
88
|
if (type === 'dual') {
|
|
88
89
|
var isVisible = inputType === 'text';
|
|
89
|
-
return ___EmotionJSX(
|
|
90
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
91
|
+
content: isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
92
|
+
disableScreenReaderOutput: true
|
|
93
|
+
}, ___EmotionJSX(EuiButtonIcon, _extends({
|
|
90
94
|
iconType: isVisible ? 'eyeSlash' : 'eye',
|
|
91
95
|
"aria-label": isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
92
|
-
title: isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
93
96
|
disabled: disabled
|
|
94
97
|
}, dualToggleProps, {
|
|
95
98
|
onClick: function onClick(e) {
|
|
96
99
|
return handleToggle(e, isVisible);
|
|
97
100
|
}
|
|
98
|
-
}));
|
|
101
|
+
})));
|
|
99
102
|
}
|
|
100
103
|
}, [type, inputType, maskPasswordLabel, showPasswordLabel, dualToggleProps, handleToggle, disabled]);
|
|
101
104
|
var finalAppend = useMemo(function () {
|
|
@@ -332,7 +332,7 @@ describe('EuiHeader', function () {
|
|
|
332
332
|
cy.checkAxe();
|
|
333
333
|
});
|
|
334
334
|
it('has zero violations when a hidden breadcrumb is expanded', function () {
|
|
335
|
-
cy.get('
|
|
335
|
+
cy.get('[aria-label="See collapsed breadcrumbs"]').realClick();
|
|
336
336
|
cy.get('a[data-test-subj="cy-breadcrumb-hidden"]').should('exist');
|
|
337
337
|
cy.checkAxe();
|
|
338
338
|
});
|
package/es/components/index.js
CHANGED
|
@@ -64,7 +64,8 @@ export var EuiMarkdownEditorHelpButton = function EuiMarkdownEditorHelpButton(_r
|
|
|
64
64
|
var hasUiPluginsWithHelpText = uiPluginsWithHelpText.length > 0;
|
|
65
65
|
if (hasUiPluginsWithHelpText) {
|
|
66
66
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, _extends({}, tooltipProps, {
|
|
67
|
-
content: syntaxTitle
|
|
67
|
+
content: syntaxTitle,
|
|
68
|
+
disableScreenReaderOutput: true
|
|
68
69
|
}), ___EmotionJSX(EuiButtonIcon, {
|
|
69
70
|
size: "s",
|
|
70
71
|
css: styles.euiMarkdownEditorFooter__helpButton,
|
|
@@ -114,8 +115,10 @@ export var EuiMarkdownEditorHelpButton = function EuiMarkdownEditorHelpButton(_r
|
|
|
114
115
|
})))));
|
|
115
116
|
} else {
|
|
116
117
|
return ___EmotionJSX(EuiPopover, {
|
|
117
|
-
button: ___EmotionJSX(
|
|
118
|
-
|
|
118
|
+
button: ___EmotionJSX(EuiToolTip, {
|
|
119
|
+
content: syntaxTitle,
|
|
120
|
+
disableScreenReaderOutput: true
|
|
121
|
+
}, ___EmotionJSX(EuiButtonIcon, {
|
|
119
122
|
size: "s",
|
|
120
123
|
css: styles.euiMarkdownEditorFooter__helpButton,
|
|
121
124
|
className: "euiMarkdownEditorFooter__helpButton",
|
|
@@ -125,7 +128,7 @@ export var EuiMarkdownEditorHelpButton = function EuiMarkdownEditorHelpButton(_r
|
|
|
125
128
|
onClick: function onClick() {
|
|
126
129
|
return setIsShowingHelpPopover(!isShowingHelpPopover);
|
|
127
130
|
}
|
|
128
|
-
}),
|
|
131
|
+
})),
|
|
129
132
|
isOpen: isShowingHelpPopover,
|
|
130
133
|
closePopover: function closePopover() {
|
|
131
134
|
return setIsShowingHelpPopover(false);
|
|
@@ -14,6 +14,7 @@ import { EuiButtonIcon } from '../button/button_icon';
|
|
|
14
14
|
import { keysOf } from '../common';
|
|
15
15
|
import { useEuiI18n } from '../i18n';
|
|
16
16
|
import { useEuiTheme } from '../../services';
|
|
17
|
+
import { EuiToolTip } from '../tool_tip';
|
|
17
18
|
import { euiPaginationButtonStyles } from './pagination_button.styles';
|
|
18
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
20
|
var typeToIconTypeMap = {
|
|
@@ -42,17 +43,20 @@ export var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
42
43
|
buttonProps.href = "#".concat(ariaControls);
|
|
43
44
|
buttonProps['aria-controls'] = ariaControls;
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
+
var button = ___EmotionJSX(EuiButtonIcon, _extends({
|
|
46
47
|
css: styles.euiPaginationButton,
|
|
47
48
|
className: classNames('euiPaginationArrowButton', className),
|
|
48
49
|
color: "text",
|
|
49
50
|
"aria-label": labels[type],
|
|
50
|
-
title: disabled ? undefined : labels[type],
|
|
51
51
|
isDisabled: disabled,
|
|
52
52
|
onClick: onClick,
|
|
53
53
|
"data-test-subj": "pagination-button-".concat(type),
|
|
54
54
|
iconType: typeToIconTypeMap[type]
|
|
55
55
|
}, buttonProps));
|
|
56
|
+
return disabled ? button : ___EmotionJSX(EuiToolTip, {
|
|
57
|
+
content: labels[type],
|
|
58
|
+
disableScreenReaderOutput: true
|
|
59
|
+
}, button);
|
|
56
60
|
};
|
|
57
61
|
EuiPaginationButtonArrow.propTypes = {
|
|
58
62
|
type: PropTypes.any.isRequired,
|
|
@@ -31,11 +31,11 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
31
31
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
32
|
};
|
|
33
33
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
34
|
-
name: "
|
|
35
|
-
styles: "position:relative;flex-grow:0;label:euiPanel;"
|
|
34
|
+
name: "z103qm-euiPanel",
|
|
35
|
+
styles: "position:relative;flex-grow:0;line-height:inherit;label:euiPanel;"
|
|
36
36
|
} : {
|
|
37
|
-
name: "
|
|
38
|
-
styles: "position:relative;flex-grow:0;label:euiPanel;",
|
|
37
|
+
name: "z103qm-euiPanel",
|
|
38
|
+
styles: "position:relative;flex-grow:0;line-height:inherit;label:euiPanel;",
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
};
|
|
41
41
|
export var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
|
|
@@ -11,7 +11,7 @@ import { css } from '@emotion/react';
|
|
|
11
11
|
import { logicalCSS } from '../../../global_styling';
|
|
12
12
|
import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
|
|
13
13
|
export var euiSplitPanelOuterStyles = {
|
|
14
|
-
euiSplitPanelOuter: /*#__PURE__*/css("display:flex;", logicalCSS('min-width', 0), " overflow:hidden;;label:euiSplitPanelOuter;"),
|
|
14
|
+
euiSplitPanelOuter: /*#__PURE__*/css("display:flex;&:enabled{display:flex;}", logicalCSS('min-width', 0), " overflow:hidden;;label:euiSplitPanelOuter;"),
|
|
15
15
|
column: process.env.NODE_ENV === "production" ? {
|
|
16
16
|
name: "ll8kmq-column",
|
|
17
17
|
styles: "flex-direction:column;label:column;"
|
|
@@ -31,6 +31,7 @@ import React, { Component } from 'react';
|
|
|
31
31
|
import { RenderWithEuiTheme, htmlIdGenerator } from '../../services';
|
|
32
32
|
import { isString } from '../../services/predicate';
|
|
33
33
|
import { EuiFlexGroup, EuiFlexItem } from '../flex';
|
|
34
|
+
import { EuiToolTip } from '../tool_tip';
|
|
34
35
|
import { EuiSearchBox } from './search_box';
|
|
35
36
|
import { EuiSearchBarFilters } from './search_filters';
|
|
36
37
|
import { Query } from './query';
|
|
@@ -193,6 +194,21 @@ export var EuiSearchBar = /*#__PURE__*/function (_Component) {
|
|
|
193
194
|
var toolsLeftEl = this.renderTools(toolsLeft);
|
|
194
195
|
var toolsRightEl = this.renderTools(toolsRight);
|
|
195
196
|
var isHintVisible = (_hint$popoverProps$is = hint === null || hint === void 0 || (_hint$popoverProps = hint.popoverProps) === null || _hint$popoverProps === void 0 ? void 0 : _hint$popoverProps.isOpen) !== null && _hint$popoverProps$is !== void 0 ? _hint$popoverProps$is : isHintVisibleState;
|
|
197
|
+
var searchBox = ___EmotionJSX(EuiSearchBox, _extends({}, box, {
|
|
198
|
+
query: queryText,
|
|
199
|
+
onSearch: this.onSearch,
|
|
200
|
+
isInvalid: error != null,
|
|
201
|
+
"aria-describedby": isHintVisible ? "".concat(this.hintId) : undefined,
|
|
202
|
+
hint: hint ? _objectSpread({
|
|
203
|
+
isVisible: isHintVisible,
|
|
204
|
+
setIsVisible: function setIsVisible(isVisible) {
|
|
205
|
+
_this2.setState({
|
|
206
|
+
isHintVisible: isVisible
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
id: this.hintId
|
|
210
|
+
}, hint) : undefined
|
|
211
|
+
}));
|
|
196
212
|
return ___EmotionJSX(RenderWithEuiTheme, null, function (euiTheme) {
|
|
197
213
|
return ___EmotionJSX(EuiFlexGroup, {
|
|
198
214
|
gutterSize: "s",
|
|
@@ -202,22 +218,10 @@ export var EuiSearchBar = /*#__PURE__*/function (_Component) {
|
|
|
202
218
|
className: "euiSearchBar__searchHolder",
|
|
203
219
|
css: euiSearchBar__searchHolder(euiTheme),
|
|
204
220
|
grow: true
|
|
205
|
-
}, ___EmotionJSX(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
title: error ? error.message : undefined,
|
|
210
|
-
"aria-describedby": isHintVisible ? "".concat(_this2.hintId) : undefined,
|
|
211
|
-
hint: hint ? _objectSpread({
|
|
212
|
-
isVisible: isHintVisible,
|
|
213
|
-
setIsVisible: function setIsVisible(isVisible) {
|
|
214
|
-
_this2.setState({
|
|
215
|
-
isHintVisible: isVisible
|
|
216
|
-
});
|
|
217
|
-
},
|
|
218
|
-
id: _this2.hintId
|
|
219
|
-
}, hint) : undefined
|
|
220
|
-
}))), filters && ___EmotionJSX(EuiFlexItem, {
|
|
221
|
+
}, ___EmotionJSX(EuiToolTip, {
|
|
222
|
+
content: error === null || error === void 0 ? void 0 : error.message,
|
|
223
|
+
display: "block"
|
|
224
|
+
}, searchBox)), filters && ___EmotionJSX(EuiFlexItem, {
|
|
221
225
|
className: "euiSearchBar__filtersHolder",
|
|
222
226
|
css: euiSearchBar__filtersHolder(euiTheme),
|
|
223
227
|
grow: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["query", "placeholder", "incremental", "hint"];
|
|
1
|
+
var _excluded = ["query", "placeholder", "incremental", "hint", "onFocus"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
@@ -21,6 +21,7 @@ export var EuiSearchBox = function EuiSearchBox(_ref) {
|
|
|
21
21
|
placeholder = _ref.placeholder,
|
|
22
22
|
incremental = _ref.incremental,
|
|
23
23
|
hint = _ref.hint,
|
|
24
|
+
_onFocus = _ref.onFocus,
|
|
24
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
26
|
var _inputRef = useRef(null);
|
|
26
27
|
useLayoutEffect(function () {
|
|
@@ -41,8 +42,9 @@ export var EuiSearchBox = function EuiSearchBox(_ref) {
|
|
|
41
42
|
incremental: incremental,
|
|
42
43
|
"aria-label": incremental ? ariaLabelIncremental : ariaLabelEnter,
|
|
43
44
|
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : defaultPlaceholder,
|
|
44
|
-
onFocus: function onFocus() {
|
|
45
|
+
onFocus: function onFocus(e) {
|
|
45
46
|
hint === null || hint === void 0 || hint.setIsVisible(true);
|
|
47
|
+
_onFocus === null || _onFocus === void 0 || _onFocus(e);
|
|
46
48
|
}
|
|
47
49
|
}, rest));
|
|
48
50
|
if (hint) {
|
|
@@ -194,7 +194,7 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
194
194
|
_this.onAddOrRemoveOption(option, event);
|
|
195
195
|
},
|
|
196
196
|
isFocused: isFocused,
|
|
197
|
-
title: searchableLabel || label,
|
|
197
|
+
title: !truncationProps && !option.toolTipContent ? searchableLabel || label : undefined,
|
|
198
198
|
checked: checked,
|
|
199
199
|
disabled: disabled,
|
|
200
200
|
prepend: prepend,
|
|
@@ -45,6 +45,6 @@ export var euiSelectableListGroupLabelStyles = function euiSelectableListGroupLa
|
|
|
45
45
|
return {
|
|
46
46
|
groupLabel: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxxs'), " position:relative;display:flex;align-items:center;gap:", itemVars.spacing.horizontal, ";", logicalCSS('padding-horizontal', itemVars.textPadding.horizontal), " ", logicalCSS('padding-vertical', spacingVertical), " &:not(:first-child){", logicalCSS('padding-top', mathWithUnits([spacingVertical], function (a) {
|
|
47
47
|
return a * 3;
|
|
48
|
-
})), " &::before{content:'';position:absolute;inset:0;inset-block-start:", spacingVertical, ";", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";}};label:groupLabel;")
|
|
48
|
+
})), " &::before{content:'';position:absolute;z-index:-1;inset:0;inset-block-start:", spacingVertical, ";", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";}};label:groupLabel;")
|
|
49
49
|
};
|
|
50
50
|
};
|
|
@@ -322,7 +322,8 @@ EuiSelectableTemplateSitewide.propTypes = {
|
|
|
322
322
|
*/
|
|
323
323
|
iconColor: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.any.isRequired]).isRequired, PropTypes.oneOf([null])]),
|
|
324
324
|
/**
|
|
325
|
-
* Full name of avatar
|
|
325
|
+
* Full name of the avatar. Used as the accessible label (`aria-label`),
|
|
326
|
+
* tooltip content and used to derive initials when `initials` is not provided.
|
|
326
327
|
*/
|
|
327
328
|
name: PropTypes.string.isRequired,
|
|
328
329
|
/**
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React, { createContext, useContext } from 'react';
|
|
10
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
|
+
var EuiTableWithinStickyHeaderContext = /*#__PURE__*/createContext(false);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* React context provider to detect whether a component is rendered
|
|
15
|
+
* inside <EuiTableStickyHeader> to prevent duplicated header cell renders.
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export var EuiTableWithinStickyHeaderProvider = function EuiTableWithinStickyHeaderProvider(_ref) {
|
|
19
|
+
var children = _ref.children;
|
|
20
|
+
return ___EmotionJSX(EuiTableWithinStickyHeaderContext.Provider, {
|
|
21
|
+
value: true
|
|
22
|
+
}, children);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the component (usually the EuiTableHeaderCell or EuiTableHeaderCellCheckbox)
|
|
27
|
+
* is rendered inside EuiTableStickyHeader.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export var useEuiTableWithinStickyHeader = function useEuiTableWithinStickyHeader() {
|
|
31
|
+
return useContext(EuiTableWithinStickyHeaderContext);
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { EuiTableStickyHeader } from './sticky_header';
|
|
10
|
+
export { useEuiTableWithinStickyHeader } from './context';
|