@kolkrabbi/kol-shell 0.19.1 → 0.20.0

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.19.1",
3
+ "version": "0.20.0",
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.128.0",
24
- "@kolkrabbi/kol-framework": "^0.35.0",
23
+ "@kolkrabbi/kol-component": "^0.132.0",
25
24
  "@kolkrabbi/kol-icons": "^0.25.0",
26
- "@kolkrabbi/kol-theme": "^0.94.0"
25
+ "@kolkrabbi/kol-framework": "^0.35.0",
26
+ "@kolkrabbi/kol-theme": "^0.96.0"
27
27
  },
28
28
  "files": [
29
29
  "src",
package/src/index.js CHANGED
@@ -19,7 +19,6 @@ export { default as PageHeader } from './PageHeader.jsx'
19
19
  * where it always did. This package shipped a recreated duplicate 0.1.0–0.2.0;
20
20
  * retired 2026-08-15, quarantined in _tmp/. Import it from kol-component. */
21
21
  export { default as TabStrip } from './TabStrip.jsx'
22
- export { default as GridCard } from './GridCard.jsx'
23
22
  export { default as SettingsScaffold, SettingsSection, LabelRow } from './SettingsScaffold.jsx'
24
23
  export { default as WalkthroughPanel } from './WalkthroughPanel.jsx'
25
24
  export { default as ShortcutsOverlay } from './ShortcutsOverlay.jsx'
package/src/GridCard.jsx DELETED
@@ -1,75 +0,0 @@
1
- /**
2
- * @deprecated 2026-08-26 — absorbed by `ContentCard variant="catalog" (row: ContentRow variant="catalog")` in @kolkrabbi/kol-component
3
- * (the Content Set, 2026-08-15). Step 1 of the retirement wave: this export
4
- * stays and renders unchanged until the next major, then it is removed.
5
- * Consumers: swap on your next bump. Map + row-by-row diff:
6
- * docs/documentation/03-components/06-content-card-system.md.
7
- *
8
- * GridCard — A4-ratio card for catalog grids (monitor's full cut: expanded
9
- * 2×2 mode + previewFit). Preview clipped on top, label plate at bottom;
10
- * `variant="list"` renders the compact 36px row.
11
- *
12
- * Recreated from both repos with the shipped divergences fixed:
13
- * - the label plate's hardcoded `borderTop: rgba(255,255,255,0.06)` (a live
14
- * light-theme bug in both apps) → `border-t border-fg-04`
15
- * - monitor's `textTransform: capitalize` on the list detail dropped (no
16
- * auto-casing law — author the string in the case it should render)
17
- *
18
- * Preview fits: `.kol-shell-card-preview--{natural|compact|cover}` in
19
- * kol-theme. Grid geometry law (documented default, both source repos):
20
- * grid = `repeat(6, 1fr)` gap 24 · list = `repeat(4, 1fr)` gap 8.
21
- * Neighbour-hiding for `expanded` stays consumer-side.
22
- */
23
- export default function GridCard({ title, detail, preview, expanded, expandedContent, onClick, variant, action, previewFit = 'natural' }) {
24
- if (variant === 'list') {
25
- return (
26
- <div
27
- onClick={onClick}
28
- className="flex items-center justify-between px-3 cursor-pointer bg-surface-tertiary hover:bg-fg-04 rounded border border-fg-04 transition-colors select-none"
29
- style={{ height: 36 }}
30
- >
31
- <span className="kol-helper-12 text-fg-64">{title}</span>
32
- {action || (detail && <span className="kol-helper-10 text-fg-32">{detail}</span>)}
33
- </div>
34
- )
35
- }
36
-
37
- return (
38
- <div
39
- onClick={onClick}
40
- className="bg-fg-04 hover:bg-surface-tertiary border border-fg-04"
41
- style={{
42
- borderRadius: 4, cursor: 'pointer',
43
- aspectRatio: expanded ? undefined : '1 / 1.41421',
44
- gridColumn: expanded ? 'span 2' : 'span 1',
45
- gridRow: expanded ? 'span 2' : 'span 1',
46
- position: 'relative', overflow: 'hidden',
47
- display: 'flex', flexDirection: expanded ? 'row-reverse' : 'column',
48
- transition: 'all 300ms var(--kol-ease-house)',
49
- }}
50
- >
51
- <div style={{
52
- overflow: 'hidden',
53
- position: 'relative',
54
- flex: expanded ? '0 0 50%' : 1,
55
- minHeight: 0,
56
- minWidth: 0,
57
- }}>
58
- <div className={`kol-shell-card-preview kol-shell-card-preview--${previewFit}`} style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }}>
59
- {preview}
60
- </div>
61
- </div>
62
-
63
- {expanded ? (
64
- <div style={{ flex: 1, padding: 24, display: 'flex', flexDirection: 'column', justifyContent: 'space-between', overflow: 'auto' }}>
65
- {expandedContent}
66
- </div>
67
- ) : (
68
- <div className="bg-surface-primary border-t border-fg-04" style={{ padding: '12px 16px', width: '100%' }}>
69
- <div className="text-fg-96 kol-helper-14" style={{ marginBottom: 4 }}>{title}</div>
70
- {detail && <div className="text-fg-32 kol-helper-8">{detail}</div>}
71
- </div>
72
- )}
73
- </div>
74
- )
75
- }