@kolkrabbi/kol-component 0.291.0 → 0.292.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-component",
3
- "version": "0.291.0",
3
+ "version": "0.292.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -329,7 +329,7 @@ export default function ContentCard({
329
329
  zIndex: box.layout === 'canvas' ? 1 : undefined,
330
330
  }}
331
331
  >
332
- {hasText && <ContentText variant={variant} form={isHero ? 'hero' : 'card'} className={actionsW ? 'min-w-0 pr-[var(--kol-plate-actions-w)]' : ''} tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...textSlots} />}
332
+ {hasText && <ContentText variant={app ? 'app' : variant} form={isHero ? 'hero' : 'card'} className={actionsW ? 'min-w-0 pr-[var(--kol-plate-actions-w)]' : ''} tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...textSlots} />}
333
333
  {/* ABSOLUTE, not a flex sibling: the plate's height moves with the title
334
334
  * and the meta, so a laid-out stack would stretch or drift with it. The
335
335
  * inset reads the SAME pad token the plate uses, so the icons sit the
@@ -282,7 +282,7 @@ export default function ContentRow({
282
282
  * (a rendered alphabet, a waveform, a sparkline) is never the family's. */
283
283
  const inner = box.column ? (
284
284
  <>
285
- <ContentText variant={variant} form="row" className="w-full" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
285
+ <ContentText variant={app ? 'app' : variant} form="row" className="w-full" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
286
286
  {footer}
287
287
  </>
288
288
  ) : (
@@ -320,11 +320,11 @@ export default function ContentRow({
320
320
  <div className="flex flex-1 min-w-0 items-stretch" style={{ padding: box.plate, gap: box.plateGap ?? box.plate }}>
321
321
  {/* the meta line's leading is its type size, so its baseline lands on the bottom pad, level with the last
322
322
  * control — at its 16px line the digits sat ~4px above it (user 2026-10-22) */}
323
- <ContentText variant={variant} form="row" className="min-w-0 flex-1 justify-between [&_.kol-mono-12]:leading-none" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
323
+ <ContentText variant={app ? 'app' : variant} form="row" className="min-w-0 flex-1 justify-between [&_.kol-mono-12]:leading-none" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
324
324
  {actions && <div className="shrink-0">{actions}</div>}
325
325
  </div>
326
326
  ) : (
327
- <ContentText variant={variant} form="row" className={`flex-1 ${box.height != null ? 'py-[2px]' : ''}`.trim()} tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
327
+ <ContentText variant={app ? 'app' : variant} form="row" className={`flex-1 ${box.height != null ? 'py-[2px]' : ''}`.trim()} tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
328
328
  )}
329
329
  {/* `specs` rides the trailing edge on EVERY variant — year · material ·
330
330
  * edition is a content difference, not a geometry one, and minting a
@@ -22,7 +22,7 @@
22
22
  * @param {ReactNode} date default · article · typeface
23
23
  * @param {'card'|'row'|'hero'} form the block's form; `hero` is article's featured text (ContentCard `hero`)
24
24
  * @param {ReactNode} size default · article (file size / read length)
25
- * @param {ReactNode} meta work only
25
+ * @param {ReactNode} meta work · slide · app (a line under the title)
26
26
  * @param {number} gap inner line gap in px (defaults per variant/form)
27
27
  * @param {string} tagVariant the Tag variant the `tags` slot draws (default `primary` — a soft ink wash that reads as a chip
28
28
  * on a plain surface; CardTagsNoVisibleFill, kol-website 2026-09-01: `tertiary` is surface-primary with no border and was
@@ -59,6 +59,12 @@ const RAMP = {
59
59
  card: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
60
60
  row: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
61
61
  },
62
+ /* APP — the `file` text with a `meta` line under the title (AppCardMeta, kol-monitor 2026-10-23: a module's
63
+ * `6HP 3U — Control`, a patch's `12 modules, 9 connections`). Without `meta` it is the file text. */
64
+ app: {
65
+ card: { title: 'kol-sans-heading-05 text-emphasis truncate', meta: 'kol-mono-12 text-meta truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
66
+ row: { title: 'kol-sans-heading-05 text-emphasis truncate', meta: 'kol-mono-12 text-meta truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
67
+ },
62
68
  /* SLIDE — a deck (slide-variant-and-shelf-preset, kol-client-olina 2026-09-03;
63
69
  * user: "they are genuinely different with 16:9 layout and those exposed
64
70
  * properties"). file's voices plus a `meta` line — the slide count. */
@@ -154,6 +160,7 @@ const RAMP = {
154
160
  * read off the shipped components and the live pages they render on. */
155
161
  const ORDER = {
156
162
  file: { card: ['title', ['group', 'date', 'size']], row: ['title', ['group', 'date', 'size']] },
163
+ app: { card: ['title', 'meta', ['group', 'date', 'size']], row: ['title', 'meta', ['group', 'date', 'size']] },
157
164
  /* slide: title, then date · size · slide count on one baseline (read off olina's /slide-deck) */
158
165
  slide: { card: ['title', ['group', 'date', 'size', 'meta']], row: ['title', ['group', 'date', 'size', 'meta']] },
159
166
  catalog: { card: ['title', 'detail'], row: [['lead', 'title', 'detail']] },