@kolkrabbi/kol-framework 0.4.0 → 0.4.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-framework",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
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",
@@ -27,8 +27,8 @@
27
27
  "app-shell"
28
28
  ],
29
29
  "dependencies": {
30
- "@kolkrabbi/kol-component": "0.9.0",
31
- "@kolkrabbi/kol-icons": "0.5.0"
30
+ "@kolkrabbi/kol-component": "0.10.0",
31
+ "@kolkrabbi/kol-icons": "0.6.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^18.3.0 || ^19.0.0",
@@ -42,9 +42,9 @@ function getInitialTheme() {
42
42
  * the system preference. `data-theme` + localStorage are written ONLY on a
43
43
  * user toggle — mounting the component leaves the DOM untouched, so an
44
44
  * undecided page keeps following prefers-color-scheme via the theme CSS.
45
- * The icon-swap animation slides the `mode-toggle-01` / `mode-toggle-02`
46
- * pair (v1 set) horizontally — two different halves of the split circle,
47
- * so the slide is a visible flip.
45
+ * The icon-swap animation slides a doubled `mode-toggle-01` (v1 set)
46
+ * horizontally — the split-circle glyph makes the slide itself read as
47
+ * the flip (same-icon slide, per design).
48
48
  */
49
49
  export default function ThemeToggle({ variant = 'icon', className = '' }) {
50
50
  const [theme, setTheme] = useState(getInitialTheme)
@@ -93,7 +93,7 @@ export default function ThemeToggle({ variant = 'icon', className = '' }) {
93
93
  style={{ width: size * 2, transform: isDark ? 'translateX(0)' : `translateX(-${size}px)` }}
94
94
  >
95
95
  <Icon name="mode-toggle-01" size={size} />
96
- <Icon name="mode-toggle-02" size={size} />
96
+ <Icon name="mode-toggle-01" size={size} />
97
97
  </span>
98
98
  </span>
99
99
  )