@seamly/web-ui 21.0.2-beta.4 → 21.0.2-beta.5
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/build/dist/lib/components.js +10 -4
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/index.debug.js +3 -3
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +11 -5
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +11 -5
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +12 -6
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles-default-implementation.js +1 -1
- package/build/dist/lib/styles.js +1 -1
- package/build/dist/lib/utils.js +11 -5
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +7 -6
- package/src/javascripts/domains/translations/components/options-dialog/translation-option.tsx +20 -19
- package/src/javascripts/domains/translations/components/options-dialog/translation-options.tsx +2 -0
- package/src/javascripts/style-guide/components/view.js +2 -2
- package/src/stylesheets/5-components/_translation-options.scss +23 -35
- package/src/stylesheets/6-default-implementation/_hover.scss +4 -0
|
@@ -16665,7 +16665,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
16665
16665
|
return {
|
|
16666
16666
|
clientName: "@seamly/web-ui",
|
|
16667
16667
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
16668
|
-
clientVersion: "21.0.
|
|
16668
|
+
clientVersion: "21.0.1",
|
|
16669
16669
|
currentUrl: window.location.toString(),
|
|
16670
16670
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
16671
16671
|
timezone: getTimeZone(),
|
|
@@ -30020,9 +30020,15 @@ const OptionsButton = () => {
|
|
|
30020
30020
|
|
|
30021
30021
|
|
|
30022
30022
|
|
|
30023
|
-
const TranslationOption = ({ label, checked, description, onChange, id, }) =>
|
|
30024
|
-
|
|
30025
|
-
|
|
30023
|
+
const TranslationOption = ({ label, checked, description, onChange, id, }) => {
|
|
30024
|
+
const onKeyDown = (e) => {
|
|
30025
|
+
if (e.code === 'Space' || e.code === 'Enter') {
|
|
30026
|
+
e.preventDefault();
|
|
30027
|
+
onChange();
|
|
30028
|
+
}
|
|
30029
|
+
};
|
|
30030
|
+
return (o("li", Object.assign({ className: css_className('translation-options__item'), "aria-selected": checked, role: "option", tabIndex: 0, onClick: onChange, onKeyDown: onKeyDown, id: id }, { children: [o(layout_icon, { alt: "", name: "check", size: "16" }), label, " ", description && o("span", { children: ["(", description, ")"] })] })));
|
|
30031
|
+
};
|
|
30026
30032
|
/* harmony default export */ var translation_option = (TranslationOption);
|
|
30027
30033
|
|
|
30028
30034
|
;// CONCATENATED MODULE: ./src/javascripts/domains/translations/components/options-dialog/translation-options.tsx
|
|
@@ -30059,7 +30065,7 @@ const TranslationOptions = ({ onChange, describedById, }) => {
|
|
|
30059
30065
|
});
|
|
30060
30066
|
});
|
|
30061
30067
|
}, [languages, defaultLocale]);
|
|
30062
|
-
return (o("ul", Object.assign({ "aria-describedby": describedById, className: css_className('translation-options') }, { children: sortedLanguages.map((language, idx) => {
|
|
30068
|
+
return (o("ul", Object.assign({ "aria-describedby": describedById, role: "listbox", tabIndex: -1, className: css_className('translation-options') }, { children: sortedLanguages.map((language, idx) => {
|
|
30063
30069
|
const isOriginal = idx === 0;
|
|
30064
30070
|
const checked = currentLocale === language.locale || (!currentLocale && isOriginal);
|
|
30065
30071
|
return (o(translation_option, { id: language.locale, label: language.nativeName, checked: checked, description: isOriginal && t('translations.settings.original'), onChange: handleChange(language) }, language.locale));
|