@kolkrabbi/kol-component 0.313.0 → 0.313.1

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": "@kolkrabbi/kol-component",
3
- "version": "0.313.0",
3
+ "version": "0.313.1",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "embla-carousel-react": "^8.6.0",
27
27
  "pdfjs-dist": "^6.3.289",
28
28
  "react-syntax-highlighter": "^16.1.1",
29
- "@kolkrabbi/kol-markdown": "^0.2.0",
30
- "@kolkrabbi/kol-search": "^0.3.0"
29
+ "@kolkrabbi/kol-search": "^0.3.0",
30
+ "@kolkrabbi/kol-markdown": "^0.2.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@kolkrabbi/kol-icons": ">=0.22.0",
@@ -66,6 +66,13 @@ export default function useTilt({
66
66
  rotateY,
67
67
  transformStyle: 'preserve-3d',
68
68
  transformPerspective: perspective,
69
+ /* THE EDGE STAYS SMOOTH (TiltCardEdgeBanding, kol-website 2026-10-29 — kolkrabbi.io's 2026-08-27 fix, lost when the
70
+ * site moved onto this hook): a 1px transparent outline makes the browser anti-alias the rotated edge, and a hidden
71
+ * backface plus `will-change` keep the tilted box on its own layer — no stair-stepped edge, no shimmering text.
72
+ * Here, so every tilting card (TiltCard, TiltBento's tiles, the shelf's cards) gets it */
73
+ backfaceVisibility: 'hidden',
74
+ willChange: 'transform',
75
+ outline: '1px solid transparent',
69
76
  ...(grounded ? { transformOrigin: 'center bottom' } : null),
70
77
  },
71
78
  onMouseMove,
@@ -41,7 +41,7 @@ export default function TiltCard({
41
41
 
42
42
  if (coarse || reduced) {
43
43
  return (
44
- <div className={`relative ${className}`}>
44
+ <div className={`relative backface-hidden will-change-transform outline-1 outline-transparent ${className}`}>
45
45
  <div className="absolute inset-0 overflow-hidden rounded-[inherit]">
46
46
  <img src={src} alt={alt} className="w-full h-full object-cover" />
47
47
  </div>