@kolkrabbi/kol-framework 0.47.0 → 0.49.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 +17 -2
- package/package.json +4 -4
- package/src/PageHero.jsx +1 -1
- package/src/PageLayout.jsx +1 -1
- package/src/ThemeToggle.jsx +1 -1
package/kol-framework.css
CHANGED
|
@@ -74,6 +74,17 @@ body {
|
|
|
74
74
|
which is the BRAND layout's rail. */
|
|
75
75
|
--kol-shell-nav-w: 256px;
|
|
76
76
|
--kol-shell-toc-w: 256px;
|
|
77
|
+
/* the rails' grab gesture (useDragResize, 2026-09-30) — the same four tokens SideNav's carries;
|
|
78
|
+
a drag under -snap hides the rail (the shell's own collapse), arrows step, release within
|
|
79
|
+
-snap-default of 256 lands on it */
|
|
80
|
+
--kol-shell-nav-snap: 12rem;
|
|
81
|
+
--kol-shell-nav-step: var(--kol-spacing-4);
|
|
82
|
+
--kol-shell-nav-snap-default: var(--kol-shell-nav-step);
|
|
83
|
+
--kol-shell-nav-w-collapsed: 0px;
|
|
84
|
+
--kol-shell-toc-snap: 12rem;
|
|
85
|
+
--kol-shell-toc-step: var(--kol-spacing-4);
|
|
86
|
+
--kol-shell-toc-snap-default: var(--kol-shell-toc-step);
|
|
87
|
+
--kol-shell-toc-w-collapsed: 0px;
|
|
77
88
|
--kol-container-max: 100%;
|
|
78
89
|
|
|
79
90
|
/* Opacity tokens (--kol-fg-*) + text-role tokens (--kol-text-*) live in
|
|
@@ -90,9 +101,12 @@ body {
|
|
|
90
101
|
deliberately tighter: chrome is not page content. The shell header and the
|
|
91
102
|
shell content frame both read this, so they cannot disagree; before it,
|
|
92
103
|
the header carried bare Tailwind steps and the frame carried the page ramp.
|
|
93
|
-
|
|
104
|
+
ONE STEP (user ruling 2026-10-02, the phone pass): on a phone it is the
|
|
105
|
+
page ladder's 20, so the header, the frame and a page all stand on one
|
|
106
|
+
edge — it was 24 at every width, which put a phone page 4px off the
|
|
107
|
+
ladder. 24 returns at 768, where the 2026-07-31 ruling was made.
|
|
94
108
|
Do NOT reach for this on page containers — that is --kol-pad-section-x. */
|
|
95
|
-
--kol-pad-chrome-x: var(--kol-spacing-
|
|
109
|
+
--kol-pad-chrome-x: var(--kol-spacing-5);
|
|
96
110
|
|
|
97
111
|
/* Stepped page / section / band padding tokens.
|
|
98
112
|
Used by chrome (topnav, sidenav) and landing bands. Scaled at 768 / 1024
|
|
@@ -106,6 +120,7 @@ body {
|
|
|
106
120
|
|
|
107
121
|
@media (min-width: 768px) {
|
|
108
122
|
:root {
|
|
123
|
+
--kol-pad-chrome-x: var(--kol-spacing-6);
|
|
109
124
|
--kol-pad-page-x: 32px;
|
|
110
125
|
--kol-pad-page-y: 96px;
|
|
111
126
|
--kol-pad-section-x: 32px;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-framework",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.49.0",
|
|
4
|
+
"description": "Site shell and page layout",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./src/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kolkrabbi/kol-
|
|
25
|
-
"@kolkrabbi/kol-
|
|
24
|
+
"@kolkrabbi/kol-component": "^0.239.0",
|
|
25
|
+
"@kolkrabbi/kol-icons": "^0.33.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"src",
|
package/src/PageHero.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import { Link } from 'react-router-dom'
|
|
|
2
2
|
import { SectionText } from '@kolkrabbi/kol-component'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* PageHero — the page's opening band: label · title · lede, with an optional
|
|
5
|
+
* PageHero — A page's opening band. the page's opening band: label · title · lede, with an optional
|
|
6
6
|
* mark beside the text and an optional back link above it.
|
|
7
7
|
*
|
|
8
8
|
* ONE HERO (page-family-is-not-a-set, kol-client-olina 2026-09-03; user, on
|
package/src/PageLayout.jsx
CHANGED
|
@@ -24,7 +24,7 @@ export const ShellTocCollapsedContext = createContext(null)
|
|
|
24
24
|
* (sidenav-rail-hairline, 2026-08-26): `background`, `hairline`, `isActive`,
|
|
25
25
|
* `onNavigate` … the next rail option needs no AppShell release. */
|
|
26
26
|
/**
|
|
27
|
-
* PageLayout — the brand-book page layout: the `.kol-brand-layout` grid with
|
|
27
|
+
* PageLayout — The brand-book page layout. the brand-book page layout: the `.kol-brand-layout` grid with
|
|
28
28
|
* the sidenav in its first track, the page plane in the second, the mobile
|
|
29
29
|
* drawer + hamburger, the modal provider and the optional TOC rail.
|
|
30
30
|
*
|
package/src/ThemeToggle.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import { Tooltip } from '@kolkrabbi/kol-component'
|
|
|
3
3
|
import { useTheme } from './theme.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Theme toggle —
|
|
6
|
+
* Theme toggle — Switch between light and dark. Two-position glyph-roll button (the approved 2-variant spec).
|
|
7
7
|
*
|
|
8
8
|
* Clicking cycles **light ↔ dark**. `system` is not a position — see the
|
|
9
9
|
* ruling above MODE_LABEL. Alt- or shift-click clears the choice and hands the
|