@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.
- package/dist/components/index.js +7 -2
- package/package.json +56 -54
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-togglegroup v9.2.
|
|
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(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
+
}
|