@kolkrabbi/kol-framework 0.39.0 → 0.40.0

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-framework",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "KOL app shell — sidenav, layout, theme toggle, footer, heroes + brand color layer. SideNav takes nav data as props so the tree stays app-local.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,15 +13,15 @@
13
13
  "./kol-brand-color.css": "./kol-brand-color.css"
14
14
  },
15
15
  "peerDependencies": {
16
- "@kolkrabbi/kol-component": ">=0.175.0",
16
+ "@kolkrabbi/kol-component": ">=0.176.0",
17
17
  "@kolkrabbi/kol-icons": ">=0.18.0",
18
- "@kolkrabbi/kol-theme": ">=0.133.0",
18
+ "@kolkrabbi/kol-theme": ">=0.134.0",
19
19
  "react": "^18.3.0 || ^19.0.0",
20
20
  "react-dom": "^18.3.0 || ^19.0.0",
21
21
  "react-router-dom": "^6.0.0 || ^7.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@kolkrabbi/kol-component": "^0.175.0",
24
+ "@kolkrabbi/kol-component": "^0.176.0",
25
25
  "@kolkrabbi/kol-icons": "^0.25.0"
26
26
  },
27
27
  "files": [
@@ -90,7 +90,9 @@ export default function ThemeToggle({
90
90
  className = '',
91
91
  }) {
92
92
  const { theme, mode, cycle, clear } = useTheme()
93
- const extra = `${tone === 'sunken' || tone === 'inverse' ? 'kol-tone-sunken' : ''} ${className}`.trim()
93
+ /* six tones (tone-is-the-ground-axis, 2026-09-03); unset inherits the wrapper's */
94
+ const TONE_CLASS = { primary: 'kol-tone-primary', secondary: 'kol-tone-secondary', outline: 'kol-tone-outline', ghost: 'kol-tone-ghost', grey: 'kol-tone-grey', sunken: 'kol-tone-sunken', inverse: 'kol-tone-sunken' }
95
+ const extra = `${TONE_CLASS[tone] ?? ''} ${className}`.trim()
94
96
 
95
97
  /* Label and slot follow the RESOLVED theme, not the stored choice: when the
96
98
  * page is unset, what the user is looking at is the OS's answer, and the