@byline/i18n 4.11.0 → 4.11.2

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 classnames from "classnames";
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: classnames('component--byline-language-menu', language_menu_module.trigger)
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: classnames(color, language_menu_module.label),
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.0",
6
+ "version": "4.11.2",
7
7
  "engines": {
8
8
  "node": ">=20.9.0"
9
9
  },
@@ -52,30 +52,30 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@formatjs/intl-localematcher": "^0.8.13",
55
- "classnames": "^2.5.1",
56
- "intl-messageformat": "^11.2.12",
55
+ "clsx": "^2.1.1",
56
+ "intl-messageformat": "^11.2.13",
57
57
  "negotiator": "^1.0.0",
58
- "@byline/ui": "4.11.0"
58
+ "@byline/ui": "4.11.2"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "react": "^19.0.0",
62
62
  "react-dom": "^19.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@biomejs/biome": "2.5.4",
65
+ "@biomejs/biome": "2.5.6",
66
66
  "@rsbuild/plugin-react": "^2.1.0",
67
67
  "@rslib/core": "^0.23.2",
68
68
  "@types/negotiator": "^0.6.4",
69
- "@types/node": "^26.1.1",
70
- "@types/react": "19.2.17",
71
- "@types/react-dom": "19.2.3",
72
- "@vitejs/plugin-react": "^6.0.3",
69
+ "@types/node": "^26.1.2",
70
+ "@types/react": "19.2.18",
71
+ "@types/react-dom": "19.2.4",
72
+ "@vitejs/plugin-react": "^6.0.5",
73
73
  "npm-run-all": "^4.1.5",
74
- "react": "^19.2.7",
75
- "react-dom": "^19.2.7",
74
+ "react": "^19.2.8",
75
+ "react-dom": "^19.2.8",
76
76
  "rimraf": "^6.1.3",
77
77
  "typescript": "^7.0.2",
78
- "vite": "^8.1.5",
78
+ "vite": "^8.2.0",
79
79
  "vitest": "^4.1.10"
80
80
  },
81
81
  "publishConfig": {
@@ -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 'classnames'
26
+ import cx from 'clsx'
27
27
 
28
28
  import { I18nContext } from './i18n-context.js'
29
29
  import styles from './language-menu.module.css'