@kolkrabbi/kol-component 0.14.1 → 0.14.2

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.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "@floating-ui/react": "^0.27.19",
25
25
  "embla-carousel-react": "^8.6.0",
26
26
  "react-syntax-highlighter": "^16.1.1",
27
- "@kolkrabbi/kol-icons": "0.8.10"
27
+ "@kolkrabbi/kol-icons": "0.8.11"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "framer-motion": "^12.0.0",
@@ -34,8 +34,13 @@ export default function DocsToc({ toc, onNavigate, rootMargin = '-80px 0px -80%
34
34
  <a
35
35
  href={`#${item.id}`}
36
36
  onClick={onNavigate}
37
- className={`kol-mono-12 block rounded py-1 transition-colors focus-visible:ring-focus hover:text-fg-96 ${
38
- activeId === item.id ? 'text-fg-96' : 'text-fg-64'
37
+ /* THE rail row idiom (04-compositions/02-shells: "the right TOC
38
+ * rail wears the LEFT tree's exact idiom"). This was
39
+ * `kol-mono-12 … py-1` with no left padding, so on-this-page rows
40
+ * sat at a smaller size and a different left edge than the
41
+ * Related rows directly beneath them in the same rail. */
42
+ className={`shell-nav-item block kol-mono-14 transition-colors focus-visible:ring-focus hover:text-emphasis ${
43
+ activeId === item.id ? 'text-emphasis' : 'text-body'
39
44
  }`}
40
45
  >
41
46
  {item.label}