@kolkrabbi/kol-shell 0.10.0 → 0.11.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-shell",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "private": false,
5
5
  "description": "KOL application shell — fixed 48px NavRail + AppShell layout root, PageShell/PageHeader scaffolds, ContentFilters catalog organism, GridCard, SettingsScaffold, WalkthroughPanel, ShortcutsOverlay. App chrome (kol-framework owns site chrome). Nav items, content, shortcuts and settings are consumer-injected. Sits above @kolkrabbi/kol-{theme,component,framework}.",
6
6
  "license": "MIT",
@@ -20,10 +20,10 @@
20
20
  "react-dom": "^18.3.0 || ^19.0.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@kolkrabbi/kol-component": "^0.108.0",
24
- "@kolkrabbi/kol-framework": "^0.28.0",
23
+ "@kolkrabbi/kol-icons": "^0.22.0",
24
+ "@kolkrabbi/kol-component": "^0.110.0",
25
25
  "@kolkrabbi/kol-theme": "^0.72.0",
26
- "@kolkrabbi/kol-icons": "^0.22.0"
26
+ "@kolkrabbi/kol-framework": "^0.28.0"
27
27
  },
28
28
  "files": [
29
29
  "src",
package/src/AppShell.jsx CHANGED
@@ -26,6 +26,14 @@ import TouchDeviceOverlay, { useTouchPrimary } from './TouchDeviceOverlay.jsx'
26
26
  * localStorage `kol-desktop` is '1' (fxr's gate); `overlay` keeps the shell and
27
27
  * mounts TouchDeviceOverlay once (monitor's)
28
28
  * @param {string} props.appName TouchDeviceOverlay's subject
29
+ * @param {string} props.pageWash a CSS colour painted by `PageShell` OVER the shell's primary back
30
+ * (ShellPageWash, kol-monitor 2026-08-27 — user: "the back of the back
31
+ * should be primary — then you can just add transparent on top to step
32
+ * up the lightness"): `'var(--kol-fg-12)'` steps the page a rung lighter
33
+ * without swapping the surface. Set as `--kol-shell-page-wash` on the
34
+ * content wrapper, so a page root that is not `PageShell` reads it too.
35
+ * Default none — unset renders exactly as before. A prop, not a token
36
+ * an app binds, because fxr's stylesheet is imports-only by rule.
29
37
  */
30
38
  export default function AppShell({
31
39
  items,
@@ -38,6 +46,7 @@ export default function AppShell({
38
46
  railToggleKey,
39
47
  touch = 'shell',
40
48
  appName,
49
+ pageWash,
41
50
  children,
42
51
  }) {
43
52
  const [navHidden, setNavHidden] = useState(false)
@@ -61,7 +70,9 @@ export default function AppShell({
61
70
 
62
71
  let wantsDesktop = false
63
72
  try { wantsDesktop = typeof localStorage !== 'undefined' && localStorage.getItem('kol-desktop') === '1' } catch { /* storage blocked */ }
64
- if (touch === 'bare' && coarse && !wantsDesktop) return <div className="kol-app-shell contents">{children}</div>
73
+ /* the wash variable rides the bare wrapper too (custom properties inherit
74
+ * through `display: contents`); there is no box here to paint the back on */
75
+ if (touch === 'bare' && coarse && !wantsDesktop) return <div className="kol-app-shell contents" style={{ '--kol-shell-page-wash': pageWash }}>{children}</div>
65
76
 
66
77
  return (
67
78
  <NavHiddenContext.Provider value={{ navHidden, setNavHidden }}>
@@ -79,7 +90,9 @@ export default function AppShell({
79
90
  themeToggle={themeToggle}
80
91
  />
81
92
  )}
82
- <div style={{ marginLeft: navHidden ? 0 : 'var(--kol-shell-rail-width)' }}>
93
+ {/* THE BACK OF THE BACK — surface-primary, always, in every app; the
94
+ * page paints its wash over it (ShellPageWash). */}
95
+ <div className="bg-surface-primary" style={{ marginLeft: navHidden ? 0 : 'var(--kol-shell-rail-width)', '--kol-shell-page-wash': pageWash }}>
83
96
  {children}
84
97
  </div>
85
98
  </div>
package/src/PageShell.jsx CHANGED
@@ -8,6 +8,12 @@
8
8
  *
9
9
  * Gutter is `--kol-shell-page-pad` (kol-theme). `PageBleed` breaks it for
10
10
  * full-width embeds (monitor's rack bleed).
11
+ *
12
+ * The background is `var(--kol-shell-page-wash, var(--kol-surface-primary))`
13
+ * (ShellPageWash, 2026-08-27): unset, today's primary pixel; set by
14
+ * `AppShell pageWash`, a transparent wash over the shell's primary back —
15
+ * the lightness steps up and the structure stays visible, which an opaque
16
+ * surface swap would hide. The ink stays `text-auto` (surface-on-primary).
11
17
  */
12
18
  export default function PageShell({ mode = 'scroll', className = '', style, children }) {
13
19
  const modeStyle =
@@ -16,8 +22,9 @@ export default function PageShell({ mode = 'scroll', className = '', style, chil
16
22
  : { minHeight: '100vh' }
17
23
  return (
18
24
  <div
19
- className={`bg-surface-primary ${className}`.trim()}
25
+ className={`text-auto ${className}`.trim()}
20
26
  style={{
27
+ background: 'var(--kol-shell-page-wash, var(--kol-surface-primary))',
21
28
  padding: 'var(--kol-shell-page-pad)',
22
29
  display: 'flex',
23
30
  flexDirection: 'column',