@kolkrabbi/kol-shell 0.86.0 → 0.87.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 +4 -4
- package/src/PhoneNav.jsx +3 -1
- package/src/navHidden.js +1 -1
- package/src/settingsToggle.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.87.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kolkrabbi/kol-
|
|
24
|
+
"@kolkrabbi/kol-framework": "^0.62.2",
|
|
25
25
|
"@kolkrabbi/kol-icons": "^0.52.0",
|
|
26
|
-
"@kolkrabbi/kol-
|
|
27
|
-
"@kolkrabbi/kol-theme": "^0.
|
|
26
|
+
"@kolkrabbi/kol-component": "^0.311.2",
|
|
27
|
+
"@kolkrabbi/kol-theme": "^0.196.0"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/PhoneNav.jsx
CHANGED
|
@@ -101,7 +101,9 @@ export default function PhoneNav({ items = [], currentPath = '/', onNavigate, ac
|
|
|
101
101
|
|
|
102
102
|
const key = (i) => i.path ?? i.id ?? i.label
|
|
103
103
|
const tabs = inBar.map((i) => ({ value: key(i), label: i.label, icon: i.icon, selected: i.selected ?? (moreKeepsOpen ? key(i) === active : undefined) }))
|
|
104
|
-
|
|
104
|
+
/* with the pill kept whole, the More slot itself turns to × while its sheet is open, and a press closes it
|
|
105
|
+
* (PhonePillMoreTurnsToClose, kol-fxr 2026-10-28 — frame A2: *"[...] that makes a list and nav turns to (X)"*) */
|
|
106
|
+
if (hasMore) tabs.push({ value: MORE, label: open && moreKeepsOpen ? 'Close' : 'More', icon: open && moreKeepsOpen ? 'x' : 'more', selected: moreKeepsOpen ? open : undefined })
|
|
105
107
|
/* THE SHEET HUGS ITS WORDS AND SITS BESIDE THE × (user 2026-10-23, his reference: iOS Photos' menu next to its ×, *"but
|
|
106
108
|
* align to bottom"*) — to the left of the collapsed ×, a 12px gap, the two bottom edges on one line */
|
|
107
109
|
const pill = shape === 'pill'
|
package/src/navHidden.js
CHANGED
|
@@ -5,5 +5,5 @@ import { createContext, useContext } from 'react'
|
|
|
5
5
|
// sidebar of their own (monitor's rack, mirror's studio) set this to replace
|
|
6
6
|
// the global rail with their own nav header row. Load-bearing seam — keep it
|
|
7
7
|
// a context.
|
|
8
|
-
export const NavHiddenContext = createContext(null)
|
|
8
|
+
export const NavHiddenContext = (globalThis[Symbol.for('@kolkrabbi/kol-shell/NavHiddenContext')] ??= createContext(null))
|
|
9
9
|
export const useNavHidden = () => useContext(NavHiddenContext)
|
package/src/settingsToggle.js
CHANGED
|
@@ -18,5 +18,5 @@ import { createContext, useContext } from 'react'
|
|
|
18
18
|
* No-op when `settingsPath` is unset, and safe outside an AppShell — a hook
|
|
19
19
|
* that throws on a missing provider would make it unusable in exactly the
|
|
20
20
|
* conditional places it is for. */
|
|
21
|
-
export const SettingsToggleContext = createContext(null)
|
|
21
|
+
export const SettingsToggleContext = (globalThis[Symbol.for('@kolkrabbi/kol-shell/SettingsToggleContext')] ??= createContext(null))
|
|
22
22
|
export const useSettingsToggle = () => useContext(SettingsToggleContext) ?? (() => {})
|