diff --git a/package.json b/package.json index 84f2a5ad23381..6ada1a055faff 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "@elastic/datemath": "5.0.3", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.6.0-canary.3", "@elastic/ems-client": "8.4.0", - "@elastic/eui": "76.0.2", + "@elastic/eui": "76.2.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap index 69e50df7cd4b8..6763bcbcaa7fe 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap +++ b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap @@ -130,6 +130,7 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiDisplaySelector.lineCountLabel": "Lines per row", "euiDisplaySelector.resetButtonText": "Reset to default", "euiDisplaySelector.rowHeightLabel": "Row height", + "euiDualRange.sliderScreenReaderInstructions": "You are in a custom range slider. Use the Up and Down arrow keys to change the minimum value. Press Tab to interact with the maximum value.", "euiErrorBoundary.error": "Error", "euiFieldPassword.maskPassword": "Mask password", "euiFieldPassword.showPassword": "Show password as plain text. Note: this will visually expose your password on the screen.", @@ -271,6 +272,7 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiQuickSelect.unitLabel": "Time unit", "euiQuickSelect.valueLabel": "Time value", "euiQuickSelectPopover.buttonLabel": "Date quick select", + "euiRange.sliderScreenReaderInstructions": "You are in a custom range slider. Use the Up and Down arrow keys to change the value.", "euiRecentlyUsed.legend": "Recently used date ranges", "euiRefreshInterval.fullDescriptionOff": [Function], "euiRefreshInterval.fullDescriptionOn": [Function], @@ -289,7 +291,7 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiSelectable.noAvailableOptions": "No options available", "euiSelectable.noMatchingOptions": [Function], "euiSelectable.placeholderName": "Filter options", - "euiSelectable.screenReaderInstructions": "Use up and down arrows to move focus over options. Enter to select. Escape to collapse options.", + "euiSelectable.screenReaderInstructions": "Use the Up and Down arrow keys to move focus over options. Press Enter to select. Press Escape to collapse options.", "euiSelectable.searchResults": [Function], "euiSelectableListItem.checkedOption": "Checked option.", "euiSelectableListItem.checkedOptionInstructions": "To uncheck this option, press enter.", @@ -327,8 +329,8 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiSuggest.stateUnchanged": "State: unchanged.", "euiSuggest.stateUnsaved": "State: unsaved.", "euiSuggest.stateUnsavedTooltip": "Changes have not been saved.", + "euiSuperSelect.ariaLabel": "Select listbox", "euiSuperSelect.screenReaderAnnouncement": "You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.", - "euiSuperSelectControl.selectAnOption": [Function], "euiSuperUpdateButton.cannotUpdateTooltip": "Cannot update", "euiSuperUpdateButton.clickToApplyTooltip": "Click to apply", "euiSuperUpdateButton.refreshButtonLabel": "Refresh", diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx index 5a50a74cc0f19..ccbe43cc8a865 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx +++ b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx @@ -1475,7 +1475,7 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'core.euiSelectable.screenReaderInstructions', { defaultMessage: - 'Use up and down arrows to move focus over options. Enter to select. Escape to collapse options.', + 'Use the Up and Down arrow keys to move focus over options. Press Enter to select. Press Escape to collapse options.', } ), 'euiSelectable.searchResults': ({ resultsLength }: EuiValues) => @@ -1664,11 +1664,6 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.', } ), - 'euiSuperSelectControl.selectAnOption': ({ selectedValue }: EuiValues) => - i18n.translate('core.euiSuperSelectControl.selectAnOption', { - defaultMessage: 'Select an option: {selectedValue}, is selected', - values: { selectedValue }, - }), 'euiSuperUpdateButton.cannotUpdateTooltip': i18n.translate( 'core.euiSuperUpdateButton.cannotUpdateTooltip', { @@ -1812,5 +1807,25 @@ export const getEuiContextMapping = (): EuiTokensObject => { defaultMessage: 'Loaded {contentAriaLabel}', values: { contentAriaLabel }, }), + 'euiDualRange.sliderScreenReaderInstructions': i18n.translate( + 'core.euiDualRange.sliderScreenReaderInstructions', + { + defaultMessage: + 'You are in a custom range slider. Use the Up and Down arrow keys to change the minimum value. Press Tab to interact with the maximum value.', + description: 'Screen reader instructions for changing dual range slider values.', + } + ), + 'euiRange.sliderScreenReaderInstructions': i18n.translate( + 'core.euiRange.sliderScreenReaderInstructions', + { + defaultMessage: + 'You are in a custom range slider. Use the Up and Down arrow keys to change the value.', + description: 'Screen reader instructions for changing range slider values.', + } + ), + 'euiSuperSelect.ariaLabel': i18n.translate('core.euiSuperSelect.ariaLabel', { + defaultMessage: 'Select listbox', + description: 'Accessible label for Super Selects without a visible label.', + }), }; }; diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index dff28e30ae76b..7d128135fa6cb 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -84,6 +84,6 @@ export const LICENSE_OVERRIDES = { 'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts '@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint '@elastic/ems-client@8.4.0': ['Elastic License 2.0'], - '@elastic/eui@76.0.2': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@76.2.0': ['SSPL-1.0 OR Elastic License 2.0'], 'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry }; diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index 20fc7bd776ea8..b653780c5a796 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -554,7 +554,6 @@ "core.euiStepStrings.simpleWarning": "L'étape {number} contient des avertissements.", "core.euiStepStrings.step": "Étape {number} : {title}", "core.euiStepStrings.warning": "L'étape {number} : {title} contient des avertissements.", - "core.euiSuperSelectControl.selectAnOption": "Sélectionner une option : l’option {selectedValue} est sélectionnée.", "core.euiTableHeaderCell.titleTextWithDesc": "{innerText} ; {description}", "core.euiTablePagination.rowsPerPageOption": "{rowsPerPage} lignes", "core.euiTourStepIndicator.ariaLabel": "Étape {number} {status}", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 9e5e7bf984ed3..7cace1de12a60 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -555,7 +555,6 @@ "core.euiStepStrings.simpleWarning": "ステップ{number}には警告があります", "core.euiStepStrings.step": "ステップ{number}: {title}", "core.euiStepStrings.warning": "ステップ{number}: {title}には警告があります", - "core.euiSuperSelectControl.selectAnOption": "オプションの選択:{selectedValue} を選択済み", "core.euiTableHeaderCell.titleTextWithDesc": "{innerText}; {description}", "core.euiTablePagination.rowsPerPageOption": "{rowsPerPage}行", "core.euiTourStepIndicator.ariaLabel": "ステップ{number} {status}", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index e12dddbfe5468..2f7fdb97f99e9 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -556,7 +556,6 @@ "core.euiStepStrings.simpleWarning": "第 {number} 步有警告", "core.euiStepStrings.step": "第 {number} 步:{title}", "core.euiStepStrings.warning": "第 {number} 步:{title} 有警告", - "core.euiSuperSelectControl.selectAnOption": "选择选项:{selectedValue} 已选", "core.euiTableHeaderCell.titleTextWithDesc": "{innerText};{description}", "core.euiTablePagination.rowsPerPageOption": "{rowsPerPage} 行", "core.euiTourStepIndicator.ariaLabel": "第 {number} 步{status}", diff --git a/yarn.lock b/yarn.lock index f53a0071bc2a8..078267376658b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1543,10 +1543,10 @@ resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314" integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ== -"@elastic/eui@76.0.2": - version "76.0.2" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-76.0.2.tgz#5b99730de10785167b4ab98fcfdb8717018343ce" - integrity sha512-HB6HyjkWQ6akYBcIWl9vGenONpymP3q8cYUui/g4DS3/WPUp8R0jV/zEryjlJ5HyJ4Vp3THDoKtCmIEVy+wZvg== +"@elastic/eui@76.2.0": + version "76.2.0" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-76.2.0.tgz#9fccdb4d85dd811b8995b16a788dd4d34267dfd1" + integrity sha512-LHS6YrxgWifEN9Y7RJNiGUo7bmFiLHbgSK2wE8WkMgnP13pN9RCsQZm4uA5tHOOz7t+wU1AfCJjEnLKTb23czg== dependencies: "@types/chroma-js" "^2.0.0" "@types/lodash" "^4.14.160"