@kolkrabbi/kol-shell 0.9.0 → 0.9.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
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,9 +20,9 @@
|
|
|
20
20
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
+
"@kolkrabbi/kol-component": "^0.106.0",
|
|
23
24
|
"@kolkrabbi/kol-framework": "^0.28.0",
|
|
24
25
|
"@kolkrabbi/kol-icons": "^0.20.0",
|
|
25
|
-
"@kolkrabbi/kol-component": "^0.106.0",
|
|
26
26
|
"@kolkrabbi/kol-theme": "^0.71.0"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/SettingsScaffold.jsx
CHANGED
|
@@ -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
|
-
|
|
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}>
|
|
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
|
))}
|