@kolkrabbi/kol-framework 0.2.1 → 0.3.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/kol-framework.css +6 -0
- package/package.json +3 -3
- package/src/AppShell.jsx +1 -1
- package/src/ShellHeader.jsx +1 -1
- package/src/SideNav.jsx +1 -1
- package/src/ThemeToggle.jsx +1 -1
package/kol-framework.css
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* Global rule: border-radius never exceeds 4px.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/* All KOL-shipped rule CSS lives in the `components` cascade layer so consumer
|
|
13
|
+
* Tailwind utilities (the `utilities` layer) can always override it. */
|
|
14
|
+
@layer components {
|
|
15
|
+
|
|
12
16
|
html,
|
|
13
17
|
body {
|
|
14
18
|
background: var(--kol-surface-primary);
|
|
@@ -1315,3 +1319,5 @@ code, pre {
|
|
|
1315
1319
|
height: 18px;
|
|
1316
1320
|
}
|
|
1317
1321
|
}
|
|
1322
|
+
|
|
1323
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"app-shell"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@kolkrabbi/kol-component": "0.4.
|
|
31
|
-
"@kolkrabbi/kol-
|
|
30
|
+
"@kolkrabbi/kol-component": "0.4.1",
|
|
31
|
+
"@kolkrabbi/kol-icons": "0.4.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^18.3.0 || ^19.0.0",
|
package/src/AppShell.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext, useEffect, useState } from 'react'
|
|
2
2
|
import { Outlet, useLocation } from 'react-router-dom'
|
|
3
3
|
import SideNav from './SideNav.jsx'
|
|
4
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
4
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
5
5
|
import { ModalProvider } from '@kolkrabbi/kol-component'
|
|
6
6
|
|
|
7
7
|
/* Pages can register right-rail TOC content via this context.
|
package/src/ShellHeader.jsx
CHANGED
package/src/SideNav.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
2
|
import { Link, NavLink, useLocation } from 'react-router-dom'
|
|
3
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
3
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import ThemeToggle from './ThemeToggle'
|
|
5
5
|
import { useScrollSpy } from '@kolkrabbi/kol-component'
|
|
6
6
|
|
package/src/ThemeToggle.jsx
CHANGED