@kolkrabbi/kol-shell 0.9.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-shell",
3
- "version": "0.9.0",
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-framework": "^0.28.0",
24
- "@kolkrabbi/kol-icons": "^0.20.0",
25
- "@kolkrabbi/kol-component": "^0.106.0",
26
- "@kolkrabbi/kol-theme": "^0.71.0"
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",
@@ -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 the
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). Anything `ContentFilters` takes that the page has no
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="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} />
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
  )}
@@ -68,7 +68,9 @@ export function SettingsSection({ title, children }) {
68
68
  export function LabelRow({ label, align = 'baseline', children }) {
69
69
  return (
70
70
  <div style={{ display: 'flex', gap: 12, alignItems: align }}>
71
- <span className="text-fg-48 kol-helper-12" style={{ width: 160, flexShrink: 0 }}>{label}</span>
71
+ {/* 160 wide, but it yields and truncates when the row is squeezed — the label
72
+ * is the prose, the value is the datum (SettingsShortcutsComboWrap, 2026-08-27) */}
73
+ <span className="text-fg-48 kol-helper-12 truncate" style={{ flex: '0 1 160px', minWidth: 0 }}>{label}</span>
72
74
  {typeof children === 'string'
73
75
  ? <span className="text-fg-32 kol-helper-12">{children}</span>
74
76
  : children}
@@ -5,7 +5,10 @@ import { LabelRow } from './SettingsScaffold.jsx'
5
5
  * (ShellHomeSystem, kol-fxr 2026-08-27): the same `[{ section, items: [{ id,
6
6
  * label, combo }] }]` array `ShortcutsOverlay` takes, laid out six columns ×
7
7
  * two sections per column, filled column-first (user, 2026-08-27) — each
8
- * section an eyebrow (`kol-eyebrow`, strong ink) over LabelRows.
8
+ * section an eyebrow (`kol-eyebrow`, strong ink) over LabelRows. A combo is one
9
+ * token by nature — the value cell is `whitespace-nowrap` and the label yields
10
+ * (SettingsShortcutsComboWrap, kol-monitor 2026-08-27: `⌘ K` broke as `⌘` over
11
+ * `K` in the six-column grid — the cell was squeezed to min-content, not full).
9
12
  *
10
13
  * @param {Array} sections `[{ section, items: [{ id, label, combo }] }]`
11
14
  * @param {Function} comboLabel (combo) => string (default: the combo as given)
@@ -17,7 +20,9 @@ export default function SettingsShortcuts({ sections = [], comboLabel = (c) => c
17
20
  <div key={section} style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
18
21
  <span className="kol-eyebrow text-strong mb-2">{section}</span>
19
22
  {items.map((k) => (
20
- <LabelRow key={k.id ?? k.label} label={k.label}>{comboLabel(k.combo)}</LabelRow>
23
+ <LabelRow key={k.id ?? k.label} label={k.label}>
24
+ <span className="text-fg-32 kol-helper-12 whitespace-nowrap">{comboLabel(k.combo)}</span>
25
+ </LabelRow>
21
26
  ))}
22
27
  </div>
23
28
  ))}