@kolkrabbi/kol-shell 0.101.0 → 0.101.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 +5 -5
- package/src/AppFloatNav.jsx +3 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.101.
|
|
3
|
+
"version": "0.101.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"./src/*": "./src/*"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@kolkrabbi/kol-component": ">=0.
|
|
15
|
+
"@kolkrabbi/kol-component": ">=0.335.0",
|
|
16
16
|
"@kolkrabbi/kol-framework": ">=0.55.0",
|
|
17
17
|
"@kolkrabbi/kol-icons": ">=0.16.0",
|
|
18
18
|
"@kolkrabbi/kol-theme": ">=0.211.1",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kolkrabbi/kol-
|
|
25
|
-
"@kolkrabbi/kol-icons": "^0.61.0",
|
|
24
|
+
"@kolkrabbi/kol-component": "^0.335.0",
|
|
26
25
|
"@kolkrabbi/kol-framework": "^0.69.0",
|
|
27
|
-
"@kolkrabbi/kol-
|
|
26
|
+
"@kolkrabbi/kol-theme": "^0.211.1",
|
|
27
|
+
"@kolkrabbi/kol-icons": "^0.61.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/AppFloatNav.jsx
CHANGED
|
@@ -288,8 +288,8 @@ function FloatNav({ items = [], currentPath = '/', onNavigate, actions = [], sha
|
|
|
288
288
|
* @param {boolean} foldable a sideways swipe folds it into the right edge tab
|
|
289
289
|
* @param {boolean} folded · {Function} onFoldChange the folded state, controlled (else the pill holds it)
|
|
290
290
|
* @param {Object|string} timecode THE TIMECODE (float-everything W5 rows 69 · 70, 2026-11-04): `{ current, total? }` (or the
|
|
291
|
-
* current alone) drawn by `Timecode`
|
|
292
|
-
*
|
|
291
|
+
* current alone) drawn by `Timecode` INSIDE the pill, after the slots — TabsRow's `trailing`
|
|
292
|
+
* (kol-component ≥0.335.0); the slots stay where a pill without it puts them. Unset, no readout
|
|
293
293
|
*/
|
|
294
294
|
function Transport({ items = [], sheetFor = {}, placement = 'bottom', foldable = false, folded, onFoldChange, menuBorder = false, surface = 'solid', labels = false, foldSide = 'right', foldTone, timecode }) {
|
|
295
295
|
const [sheet, setSheet] = useState(null)
|
|
@@ -319,22 +319,10 @@ function Transport({ items = [], sheetFor = {}, placement = 'bottom', foldable =
|
|
|
319
319
|
...(top ? { bottom: 'auto' } : {}),
|
|
320
320
|
width: 'max-content', minWidth: 160,
|
|
321
321
|
}
|
|
322
|
-
/* the timecode capsule: the pill's height, its right end 8 off the pill's, bottom edges on one line
|
|
323
|
-
* ponytail: beside the pill, not inside it — inside needs a trailing slot on TabsRow's pill (kol-component) */
|
|
324
322
|
const tc = timecode == null ? null : typeof timecode === 'string' ? { current: timecode } : timecode
|
|
325
|
-
const tcStyle = {
|
|
326
|
-
left: `calc(50% + ${W / 2}px + 8px)`,
|
|
327
|
-
[top ? 'top' : 'bottom']: `calc(env(safe-area-inset-${top ? 'top' : 'bottom'}, 0px) + ${TABBAR_PILL_INSET}px)`,
|
|
328
|
-
height: TABBAR_PILL_H,
|
|
329
|
-
}
|
|
330
323
|
|
|
331
324
|
return (
|
|
332
325
|
<>
|
|
333
|
-
{tc && !folded && (
|
|
334
|
-
<div className={`kol-transport-timecode fixed z-[var(--kol-z-sticky)] inline-flex items-center px-5 rounded-full ${floatSurfaceClass(surface)}`} style={tcStyle}>
|
|
335
|
-
<Timecode {...tc} />
|
|
336
|
-
</div>
|
|
337
|
-
)}
|
|
338
326
|
{sheet && (
|
|
339
327
|
/* a clear BUTTON scrim — the panel under it stays in view, a tap off the sheet closes it */
|
|
340
328
|
<button type="button" aria-label="Close" className="kol-phone-nav-scrim" onClick={() => setSheet(null)} />
|
|
@@ -363,6 +351,7 @@ function Transport({ items = [], sheetFor = {}, placement = 'bottom', foldable =
|
|
|
363
351
|
foldSide={foldSide}
|
|
364
352
|
foldTone={foldTone}
|
|
365
353
|
ariaLabel="Transport"
|
|
354
|
+
trailing={tc ? <Timecode {...tc} /> : undefined}
|
|
366
355
|
tabs={tabs}
|
|
367
356
|
onChange={press}
|
|
368
357
|
/>
|