@uniweb/kit 0.7.11 → 0.7.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,11 +34,11 @@
34
34
  "node": ">=20.19"
35
35
  },
36
36
  "dependencies": {
37
- "@uniweb/core": "latest",
38
37
  "clsx": "^2.1.0",
39
38
  "fuse.js": "^7.0.0",
40
39
  "shiki": "^3.0.0",
41
- "tailwind-merge": "^2.6.0"
40
+ "tailwind-merge": "^2.6.0",
41
+ "@uniweb/core": "0.5.11"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^18.0.0 || ^19.0.0",
@@ -45,7 +45,8 @@ export function Visual({ inset, video, image, className, fallback = null }) {
45
45
  }
46
46
 
47
47
  if (image) {
48
- return <Image {...image} className={className} />;
48
+ const { contentType, viewType, contentId, imgPos, ...imageProps } = image;
49
+ return <Image {...imageProps} className={className} />;
49
50
  }
50
51
 
51
52
  return fallback;
@@ -104,7 +104,7 @@
104
104
  --color-neutral-900: var(--neutral-900);
105
105
  --color-neutral-950: var(--neutral-950);
106
106
 
107
- /* ── Brand shorthands ── */
108
- /* accent has no semantic token shorthand to 500 shade */
109
- --color-accent: var(--accent-500);
107
+ /* ── Accent token ── */
108
+ /* Context-aware accent color (light: accent-600, dark: accent-400) */
109
+ --color-accent: var(--accent);
110
110
  }