@kolkrabbi/kol-shell 0.99.3 → 0.99.4

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.99.3",
3
+ "version": "0.99.4",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -48,7 +48,7 @@ import MoreRows, { FloatMenu } from './MoreSheet.jsx'
48
48
  * any prop still overrides it. `PHONE_NAV_VARIANTS` is the table, and TransportPill reads its own row from it.
49
49
  * @param {'mobile'|'dock'|'panel'|'transport'} variant `mobile` (was `nav`) — an app's phone nav: no hairline, no shadow, the lit slot a circle
50
50
  * (AppShell's default). `panel` — frame E's panel picker: on top, foldable, More keeps the panel
51
- * open, no hairline. `transport` — TransportPill's look: the shadow, it floats over content.
51
+ * open, no hairline, the shadow (it floats over the stage and the Rail — FloatsRailOverlaysShadow). `transport` — TransportPill's look: the shadow, it floats over content.
52
52
  * Unset, the props alone decide, as before
53
53
  * @param {boolean} shadow the pill's drop shadow (TabsRow `shadow`) — for a pill that floats over content
54
54
  *
@@ -94,7 +94,7 @@ import MoreRows, { FloatMenu } from './MoreSheet.jsx'
94
94
  export const APP_FLOAT_NAV_VARIANTS = {
95
95
  /* `mobile` was PhoneNav's `nav` (user ruling 2026-10-30: renamed so it is not reached for off mobile); there is no `nav` */
96
96
  mobile: { border: false, shadow: false, active: 'circle' },
97
- panel: { placement: 'top', foldable: true, moreKeepsOpen: true, border: false, shadow: false, active: 'circle' },
97
+ panel: { placement: 'top', foldable: true, moreKeepsOpen: true, border: false, shadow: true, active: 'circle' },
98
98
  transport: { border: false, shadow: true, active: 'circle' },
99
99
  dock: { dock: true, border: false, shadow: false, active: 'circle' },
100
100
  }
@@ -270,7 +270,7 @@ function FloatNav({ items = [], currentPath = '/', onNavigate, actions = [], sha
270
270
  /**
271
271
  * Transport (`variant="transport"`, was TransportPill) — The transport, on a phone, as a pill (TransportPill, kol-fxr 2026-10-27, frame E). PhoneNav's pill —
272
272
  * the same TabsRow, so the slots, the 28px glyphs and the 44×44 circle are the nav's — holding ACTIONS instead of
273
- * destinations. It floats over the open panel, so it carries the shadow the nav does not, and folds to a RIGHT edge tab.
273
+ * destinations. It floats over the open Rail and carries the shadow, as the `panel` nav does, and folds to a RIGHT edge tab.
274
274
  *
275
275
  * A slot fires `onPress`; `selected` lights it (play and pause are a radio pair the consumer owns, so both are just
276
276
  * `selected`). A slot named in `sheetFor` opens a sheet of rows anchored above it instead, lit while open; a row runs its
package/src/AppShell.jsx CHANGED
@@ -450,15 +450,18 @@ export default function AppShell({
450
450
  ...(bar && touch === 'bar' && { '--kol-shell-bar-h': `calc(${TABBAR_H}px + env(safe-area-inset-bottom, 0px))`, paddingBottom: 'var(--kol-shell-bar-h)' }),
451
451
  ...(bar && touch === 'pill' && { '--kol-shell-bar-h': '0px', '--kol-shell-bar-clear': `calc(${TABBAR_PILL_H + TABBAR_PILL_INSET}px + env(safe-area-inset-bottom, 0px))` }), ...(barAside && { '--kol-shell-bar-h': '0px' }), ...(floats && { '--kol-shell-bar-h': '0px' }) }}>
452
452
  {floats ? (
453
- <div className="flex h-dvh flex-col">
453
+ <div className="relative h-dvh">
454
454
  {/* THE STAGE OWNS THE PAGE'S GROUND (PhoneTwoFloatLayout): it paints the wash under the top float too and hands
455
455
  * the page `transparent` — PageLayout's rule (kol-components-shell.css), one owner per pixel, no band under the float */}
456
456
  {/* the stage starts at y=0, UNDER the status bar and the top float — no band (FloatsOverlayNoBands, kol-fxr 2026-11-03) */}
457
- <div className="min-h-0 flex-1 overflow-y-auto" style={{ background: pageWash ?? undefined, '--kol-shell-page-wash': pageWash ? 'transparent' : undefined, '--kol-shell-bar-h': floatClear }}>{children}</div>
457
+ {/* the stage is the whole screen and never resizes: the Rail OVERLAYS it, so opening, closing or dragging the Rail
458
+ * leaves the stage's box alone (FloatsRailOverlaysShadow, kol-fxr 2026-11-03); `isolate` keeps the stage's own
459
+ * stacking under the Rail */}
460
+ <div className="isolate h-full overflow-y-auto" style={{ background: pageWash ?? undefined, '--kol-shell-page-wash': pageWash ? 'transparent' : undefined, '--kol-shell-bar-h': floatClear }}>{children}</div>
458
461
  {floatsProp?.rail != null && (
459
462
  /* the Rail's rows run UNDER the transport float; the clear is an absolute spacer past the last row, so it adds
460
463
  * scroll range (the last row scrolls clear) but no height — no band while unscrolled (FloatsOverlayNoBands) */
461
- <div className="shrink-0 overflow-y-auto bg-surface-primary shadow-[var(--kol-shadow-rail-up)]" style={{ maxHeight: floatsProp.railHeight ?? '50dvh' }}>
464
+ <div className="absolute inset-x-0 bottom-0 overflow-y-auto bg-surface-primary shadow-[var(--kol-shadow-rail-up)]" style={{ maxHeight: floatsProp.railHeight ?? '50dvh' }}>
462
465
  <div className="relative">{floatsProp.rail}<div aria-hidden className="pointer-events-none absolute inset-x-0 top-full" style={{ height: `calc(${floatClear} + env(safe-area-inset-bottom, 0px))` }} /></div>
463
466
  </div>
464
467
  )}