@kolkrabbi/kol-shell 0.9.1 → 0.9.2
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/CatalogPage.jsx +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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.
|
|
24
|
-
"@kolkrabbi/kol-
|
|
25
|
-
"@kolkrabbi/kol-icons": "^0.
|
|
26
|
-
"@kolkrabbi/kol-
|
|
23
|
+
"@kolkrabbi/kol-component": "^0.107.0",
|
|
24
|
+
"@kolkrabbi/kol-theme": "^0.72.0",
|
|
25
|
+
"@kolkrabbi/kol-icons": "^0.22.0",
|
|
26
|
+
"@kolkrabbi/kol-framework": "^0.28.0"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"src",
|
package/src/CatalogPage.jsx
CHANGED
|
@@ -18,10 +18,13 @@ import WalkthroughPanel from './WalkthroughPanel.jsx'
|
|
|
18
18
|
*
|
|
19
19
|
* Semantics are the consumer's: what RECENT / SAVED mean, what an item is,
|
|
20
20
|
* what a click does. `toCard(item, { view, layout })` → `{ key, title, detail,
|
|
21
|
-
* media, actions, onClick, href, onNavigate, expanded, expandedContent }` is
|
|
22
|
-
* whole contract — `expanded` / `expandedContent` reach `ContentCard catalog`'s
|
|
21
|
+
* media, actions, onClick, href, onNavigate, expanded, expandedContent, fit }` is
|
|
22
|
+
* the whole contract — `expanded` / `expandedContent` reach `ContentCard catalog`'s
|
|
23
23
|
* 2×2 cell (ShellHomeSystemMonitorGaps, kol-monitor 2026-08-27; neighbour-hiding
|
|
24
|
-
* stays the consumer's)
|
|
24
|
+
* stays the consumer's); `fit` (`cover` default | `natural` | `compact`) is the
|
|
25
|
+
* card's media fit, PER CARD because one catalog mixes photographs (cover) and
|
|
26
|
+
* diagrams (natural) — CatalogPageCardFit, kol-monitor: a rack preview wider
|
|
27
|
+
* than the card lost its left rail to `cover`. Anything `ContentFilters` takes that the page has no
|
|
25
28
|
* prop for goes through `filtersProps` — `mutuallyExclusiveFilters` was the gap.
|
|
26
29
|
*
|
|
27
30
|
* @param {Object} header PageHeader props — `{ title, subtitle, size, voice, eyebrow }`
|
|
@@ -94,7 +97,7 @@ export default function CatalogPage({
|
|
|
94
97
|
const key = c.key ?? item.key ?? item.id ?? item.name ?? i
|
|
95
98
|
return layout === 'list'
|
|
96
99
|
? <ContentRow key={key} variant="catalog" title={c.title} detail={c.detail} actions={c.actions} onClick={c.onClick} href={c.href} onNavigate={c.onNavigate} />
|
|
97
|
-
: <ContentCard key={key} variant="catalog" fit=
|
|
100
|
+
: <ContentCard key={key} variant="catalog" fit={c.fit ?? 'cover'} title={c.title} detail={c.detail} media={c.media} actions={c.actions} onClick={c.onClick} href={c.href} onNavigate={c.onNavigate} expanded={c.expanded} expandedContent={c.expandedContent} />
|
|
98
101
|
})}
|
|
99
102
|
</div>
|
|
100
103
|
)}
|