@versini/ui-togglegroup 9.2.1 → 9.2.3

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,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-togglegroup v9.2.1
2
+ @versini/ui-togglegroup v9.2.3
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -104,7 +104,12 @@ const getTargetIndex = (intent, currentIndex, count)=>{
104
104
 
105
105
 
106
106
  const getToggleGroupItemFocusClasses = ()=>{
107
- return clsx("focus:outline-none", "focus:ring-2", "focus:ring-inset", "focus:ring-focus-dark");
107
+ return clsx(/**
108
+ * outline-hidden, not outline-none: the indicator here is a ring, which
109
+ * paints through box-shadow and is dropped in forced-colors mode.
110
+ * outline-hidden additionally emits a transparent outline under
111
+ * forced-colors, which the OS then paints, so keyboard focus survives.
112
+ */ "outline-hidden", "focus-visible:ring-2", "focus-visible:ring-inset", "focus-visible:ring-focus-dark");
108
113
  };
109
114
  const getToggleGroupItemActiveClasses = ({ flat })=>{
110
115
  return clsx("data-[state=on]:bg-surface-lightest data-[state=on]:text-copy-dark", "dark:data-[state=on]:bg-surface-dark dark:data-[state=on]:text-copy-light", !flat && "av-bg-split-overlay");
package/package.json CHANGED
@@ -1,55 +1,57 @@
1
1
  {
2
- "name": "@versini/ui-togglegroup",
3
- "version": "9.2.1",
4
- "license": "MIT",
5
- "author": "Arno Versini",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "homepage": "https://www.npmjs.com/package/@versini/ui-togglegroup",
10
- "repository": {
11
- "type": "git",
12
- "url": "git@github.com:aversini/ui-components.git"
13
- },
14
- "type": "module",
15
- "main": "dist/components/index.js",
16
- "types": "dist/components/index.d.ts",
17
- "files": [
18
- "dist",
19
- "README.md"
20
- ],
21
- "scripts": {
22
- "build:check": "tsc",
23
- "build:js": "rslib build",
24
- "build:types": "echo 'Types now built with rslib'",
25
- "build": "npm-run-all --serial clean build:check build:js",
26
- "clean": "rimraf dist tmp coverage",
27
- "dev:js": "rslib build --watch",
28
- "dev:types": "echo 'Types now watched with rslib'",
29
- "dev": "rslib build --watch",
30
- "lint": "biome lint src",
31
- "lint:fix": "biome check src --write --no-errors-on-unmatched",
32
- "prettier": "biome check --write --no-errors-on-unmatched",
33
- "start": "static-server dist --port 5173",
34
- "test:coverage:ui": "vitest --coverage --ui",
35
- "test:coverage": "vitest run --coverage",
36
- "test:watch": "vitest",
37
- "test": "vitest run",
38
- "test:visual": "playwright test -c playwright-ct.config.ts",
39
- "test:visual:report": "playwright show-report playwright-report",
40
- "test:visual:update": "playwright test -c playwright-ct.config.ts --update-snapshots",
41
- "test:visual:ui": "playwright test -c playwright-ct.config.ts --ui"
42
- },
43
- "dependencies": {
44
- "@versini/ui-hooks": "6.2.1",
45
- "clsx": "2.1.1",
46
- "tailwindcss": "4.3.3"
47
- },
48
- "sideEffects": [
49
- "**/*.css"
50
- ],
51
- "peerDependencies": {
52
- "react": "^19.0.0"
53
- },
54
- "gitHead": "8edfc28ac74f82af2ecdd5c639534f0be6fe4044"
55
- }
2
+ "name": "@versini/ui-togglegroup",
3
+ "version": "9.2.3",
4
+ "license": "MIT",
5
+ "author": "Arno Versini",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "homepage": "https://www.npmjs.com/package/@versini/ui-togglegroup",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git@github.com:aversini/ui-components.git"
13
+ },
14
+ "type": "module",
15
+ "main": "dist/components/index.js",
16
+ "types": "dist/components/index.d.ts",
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "devDependencies": {
22
+ "@versini/ui-styles": "9.7.6"
23
+ },
24
+ "dependencies": {
25
+ "@versini/ui-hooks": "6.2.2",
26
+ "clsx": "2.1.1",
27
+ "tailwindcss": "4.3.3"
28
+ },
29
+ "sideEffects": [
30
+ "**/*.css"
31
+ ],
32
+ "peerDependencies": {
33
+ "react": "^19.0.0"
34
+ },
35
+ "scripts": {
36
+ "build:check": "tsc",
37
+ "build:js": "rslib build",
38
+ "build:types": "echo 'Types now built with rslib'",
39
+ "build": "npm-run-all --serial clean build:check build:js",
40
+ "clean": "rimraf dist tmp coverage",
41
+ "dev:js": "rslib build --watch",
42
+ "dev:types": "echo 'Types now watched with rslib'",
43
+ "dev": "rslib build --watch",
44
+ "lint": "biome lint src",
45
+ "lint:fix": "biome check src --write --no-errors-on-unmatched",
46
+ "prettier": "biome check --write --no-errors-on-unmatched",
47
+ "start": "static-server dist --port 5173",
48
+ "test:coverage:ui": "vitest --coverage --ui",
49
+ "test:coverage": "vitest run --coverage",
50
+ "test:watch": "vitest",
51
+ "test": "vitest run",
52
+ "test:visual": "playwright test -c playwright-ct.config.ts",
53
+ "test:visual:report": "playwright show-report playwright-report",
54
+ "test:visual:update": "playwright test -c playwright-ct.config.ts --update-snapshots",
55
+ "test:visual:ui": "playwright test -c playwright-ct.config.ts --ui"
56
+ }
57
+ }