@byline/i18n 4.11.0 → 4.11.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useState } from "react";
|
|
3
3
|
import { CheckIcon, Dropdown, GlobeIcon } from "@byline/ui/react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { I18nContext } from "./i18n-context.js";
|
|
6
6
|
import language_menu_module from "./language-menu.module.js";
|
|
7
7
|
function LanguageMenu({ className, color, disabled }) {
|
|
@@ -31,14 +31,14 @@ function LanguageMenu({ className, color, disabled }) {
|
|
|
31
31
|
type: "button",
|
|
32
32
|
"aria-label": active?.nativeName ?? activeLocale,
|
|
33
33
|
disabled: isDisabled,
|
|
34
|
-
className:
|
|
34
|
+
className: clsx('component--byline-language-menu', language_menu_module.trigger)
|
|
35
35
|
}),
|
|
36
36
|
children: [
|
|
37
37
|
/*#__PURE__*/ jsx(GlobeIcon, {
|
|
38
38
|
svgClassName: color
|
|
39
39
|
}),
|
|
40
40
|
/*#__PURE__*/ jsx("span", {
|
|
41
|
-
className:
|
|
41
|
+
className: clsx(color, language_menu_module.label),
|
|
42
42
|
children: active?.nativeName ?? activeLocale
|
|
43
43
|
})
|
|
44
44
|
]
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "4.11.
|
|
6
|
+
"version": "4.11.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@formatjs/intl-localematcher": "^0.8.13",
|
|
55
|
-
"
|
|
55
|
+
"clsx": "^2.1.1",
|
|
56
56
|
"intl-messageformat": "^11.2.12",
|
|
57
57
|
"negotiator": "^1.0.0",
|
|
58
|
-
"@byline/ui": "4.11.
|
|
58
|
+
"@byline/ui": "4.11.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": "^19.0.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
import { useContext, useState } from 'react'
|
|
24
24
|
|
|
25
25
|
import { CheckIcon, Dropdown as DropdownMenu, GlobeIcon } from '@byline/ui/react'
|
|
26
|
-
import cx from '
|
|
26
|
+
import cx from 'clsx'
|
|
27
27
|
|
|
28
28
|
import { I18nContext } from './i18n-context.js'
|
|
29
29
|
import styles from './language-menu.module.css'
|