@seamly/web-ui 21.0.2-beta.4 → 21.0.2-beta.6
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 +13 -7
- 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/links.js +3 -2
- 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
|
@@ -7211,7 +7211,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7211
7211
|
return {
|
|
7212
7212
|
clientName: "@seamly/web-ui",
|
|
7213
7213
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7214
|
-
clientVersion: "21.0.
|
|
7214
|
+
clientVersion: "21.0.1",
|
|
7215
7215
|
currentUrl: window.location.toString(),
|
|
7216
7216
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7217
7217
|
timezone: getTimeZone(),
|
|
@@ -19916,9 +19916,15 @@ const OptionsButton = () => {
|
|
|
19916
19916
|
|
|
19917
19917
|
|
|
19918
19918
|
|
|
19919
|
-
const TranslationOption = ({ label, checked, description, onChange, id, }) =>
|
|
19920
|
-
|
|
19921
|
-
|
|
19919
|
+
const TranslationOption = ({ label, checked, description, onChange, id, }) => {
|
|
19920
|
+
const onKeyDown = (e) => {
|
|
19921
|
+
if (e.code === 'Space' || e.code === 'Enter') {
|
|
19922
|
+
e.preventDefault();
|
|
19923
|
+
onChange();
|
|
19924
|
+
}
|
|
19925
|
+
};
|
|
19926
|
+
return ((0,jsx_runtime_namespaceObject.jsxs)("li", Object.assign({ className: css_className('translation-options__item'), "aria-selected": checked, role: "option", tabIndex: 0, onClick: onChange, onKeyDown: onKeyDown, id: id }, { children: [(0,jsx_runtime_namespaceObject.jsx)(layout_icon, { alt: "", name: "check", size: "16" }), label, " ", description && (0,jsx_runtime_namespaceObject.jsxs)("span", { children: ["(", description, ")"] })] })));
|
|
19927
|
+
};
|
|
19922
19928
|
/* harmony default export */ const translation_option = (TranslationOption);
|
|
19923
19929
|
|
|
19924
19930
|
;// CONCATENATED MODULE: ./src/javascripts/domains/translations/components/options-dialog/translation-options.tsx
|
|
@@ -19955,7 +19961,7 @@ const TranslationOptions = ({ onChange, describedById, }) => {
|
|
|
19955
19961
|
});
|
|
19956
19962
|
});
|
|
19957
19963
|
}, [languages, defaultLocale]);
|
|
19958
|
-
return ((0,jsx_runtime_namespaceObject.jsx)("ul", Object.assign({ "aria-describedby": describedById, className: css_className('translation-options') }, { children: sortedLanguages.map((language, idx) => {
|
|
19964
|
+
return ((0,jsx_runtime_namespaceObject.jsx)("ul", Object.assign({ "aria-describedby": describedById, role: "listbox", tabIndex: -1, className: css_className('translation-options') }, { children: sortedLanguages.map((language, idx) => {
|
|
19959
19965
|
const isOriginal = idx === 0;
|
|
19960
19966
|
const checked = currentLocale === language.locale || (!currentLocale && isOriginal);
|
|
19961
19967
|
return ((0,jsx_runtime_namespaceObject.jsx)(translation_option, { id: language.locale, label: language.nativeName, checked: checked, description: isOriginal && t('translations.settings.original'), onChange: handleChange(language) }, language.locale));
|
|
@@ -24382,7 +24388,7 @@ const StyleGuideLinks = ({
|
|
|
24382
24388
|
e.preventDefault();
|
|
24383
24389
|
if (layoutMode === 'inline') {
|
|
24384
24390
|
window.scroll({
|
|
24385
|
-
top: document.querySelector('.
|
|
24391
|
+
top: document.querySelector('.chat-inline').offsetTop,
|
|
24386
24392
|
behavior: 'smooth'
|
|
24387
24393
|
});
|
|
24388
24394
|
}
|
|
@@ -24569,7 +24575,7 @@ const StyleGuideView = ({
|
|
|
24569
24575
|
state: state,
|
|
24570
24576
|
translations: translations,
|
|
24571
24577
|
participants: participants,
|
|
24572
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(
|
|
24578
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.View, {})
|
|
24573
24579
|
});
|
|
24574
24580
|
};
|
|
24575
24581
|
/* harmony default export */ const components_view = (StyleGuideView);
|