@kolkrabbi/kol-component 0.291.0 → 0.293.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.293.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
@@ -479,7 +479,8 @@ export default function ContentCard({
479
479
  if (onClick) onClick(event)
480
480
  }
481
481
  const interactive = href || onClick
482
- const hoverBg = tone ? 'var(--kol-tone-hover-bg)' : HOVER[variant]
482
+ /* `app` keeps file's no-fill hover (AppCardNoHoverFill): its default tone must not bring the tone's hover step */
483
+ const hoverBg = tone && !app ? 'var(--kol-tone-hover-bg)' : HOVER[variant]
483
484
 
484
485
  const common = {
485
486
  'data-tags': isHero && Array.isArray(text.tags) && text.tags.length ? text.tags.join(' ') : undefined,
@@ -210,7 +210,8 @@ export default function ContentRow({
210
210
  const variant = aliased.startsWith('showcase') && layout ? LAYOUT_KEY[layout] ?? aliased : aliased
211
211
  const box = BOX[variant] ?? BOX.file
212
212
  const ground = bg ?? (tone ? 'var(--kol-tone-bg)' : box.bg)
213
- const hover = tone ? 'var(--kol-tone-hover-bg)' : box.hover
213
+ /* `app` keeps file's no-fill hover (AppCardNoHoverFill) */
214
+ const hover = tone && !app ? 'var(--kol-tone-hover-bg)' : box.hover
214
215
  /* `media={false}` — NO COVER, not a missing one (content-card-needs-no-cover,
215
216
  * kol-client-olina 2026-09-04). The row could already hide its thumb with
216
217
  * `thumb={0}`, but that is a SIZE answering a question about MEANING, and a
@@ -282,7 +283,7 @@ export default function ContentRow({
282
283
  * (a rendered alphabet, a waveform, a sparkline) is never the family's. */
283
284
  const inner = box.column ? (
284
285
  <>
285
- <ContentText variant={variant} form="row" className="w-full" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
286
+ <ContentText variant={app ? 'app' : variant} form="row" className="w-full" tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
286
287
  {footer}
287
288
  </>
288
289
  ) : (
@@ -320,11 +321,11 @@ export default function ContentRow({
320
321
  <div className="flex flex-1 min-w-0 items-stretch" style={{ padding: box.plate, gap: box.plateGap ?? box.plate }}>
321
322
  {/* the meta line's leading is its type size, so its baseline lands on the bottom pad, level with the last
322
323
  * 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} />
324
+ <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
325
  {actions && <div className="shrink-0">{actions}</div>}
325
326
  </div>
326
327
  ) : (
327
- <ContentText variant={variant} form="row" className={`flex-1 ${box.height != null ? 'py-[2px]' : ''}`.trim()} tagVariant={tagVariant ?? (/surface-/.test(ground ?? '') ? 'tertiary' : 'primary')} {...text} />
328
+ <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
329
  )}
329
330
  {/* `specs` rides the trailing edge on EVERY variant — year · material ·
330
331
  * 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']] },