@versini/ui-togglegroup 7.0.2 → 7.0.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 v7.0.2
2
+ @versini/ui-togglegroup v7.0.3
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -27,12 +27,8 @@ const ToggleGroupContext = react.createContext({
27
27
  const getToggleGroupItemFocusClasses = ()=>{
28
28
  return clsx("focus:outline-none", "focus:ring-2", "focus:ring-inset", "focus:ring-focus-dark");
29
29
  };
30
- // Aqua-style split background overlay:
31
- // - Top half: flat white overlay (light, uniform)
32
- // - Bottom half: starts darker, gradually lightens toward the bottom edge
33
- const BG_SPLIT_OVERLAY = "bg-[linear-gradient(to_bottom,oklch(1_0_0/0.2)_50%,oklch(0_0_0/0.1)_50%,oklch(1_0_0/0.05)_100%)]";
34
30
  const getToggleGroupItemActiveClasses = ({ splitBackground })=>{
35
- 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", splitBackground && BG_SPLIT_OVERLAY);
31
+ 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", splitBackground && "av-bg-split-overlay");
36
32
  };
37
33
  const getToggleGroupItemSizeClasses = ({ size })=>{
38
34
  return clsx({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-togglegroup",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -34,7 +34,11 @@
34
34
  "test:coverage:ui": "vitest --coverage --ui",
35
35
  "test:coverage": "vitest run --coverage",
36
36
  "test:watch": "vitest",
37
- "test": "vitest run"
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"
38
42
  },
39
43
  "devDependencies": {
40
44
  "@versini/ui-types": "9.1.0"
@@ -47,5 +51,5 @@
47
51
  "sideEffects": [
48
52
  "**/*.css"
49
53
  ],
50
- "gitHead": "7cec17f37e7c539ba81294ec754563b4e5733ce8"
54
+ "gitHead": "738b2918169bc39087fc7dc4b04752970b06087e"
51
55
  }