@kolkrabbi/kol-component 0.294.0 → 0.295.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.294.0",
3
+ "version": "0.295.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -56,14 +56,14 @@ import Tag from '../atoms/Tag'
56
56
  const RAMP = {
57
57
  file: {
58
58
  /* the card's title is the row's, heading-05 (user 2026-10-22: "can we make the title smaller?" — was heading-04, 24px) */
59
- card: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
60
- row: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta', size: 'kol-mono-12 text-meta' },
59
+ card: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta whitespace-nowrap', size: 'kol-mono-12 text-meta whitespace-nowrap' },
60
+ row: { title: 'kol-sans-heading-05 text-emphasis truncate', date: 'kol-mono-12 text-meta whitespace-nowrap', size: 'kol-mono-12 text-meta whitespace-nowrap' },
61
61
  },
62
62
  /* APP — the `file` text with a `meta` line under the title (AppCardMeta, kol-monitor 2026-10-23: a module's
63
63
  * `6HP 3U — Control`, a patch's `12 modules, 9 connections`). Without `meta` it is the file text. */
64
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' },
65
+ card: { title: 'kol-sans-heading-05 text-emphasis truncate', meta: 'kol-mono-12 text-meta truncate', date: 'kol-mono-12 text-meta whitespace-nowrap', size: 'kol-mono-12 text-meta whitespace-nowrap' },
66
+ row: { title: 'kol-sans-heading-05 text-emphasis truncate', meta: 'kol-mono-12 text-meta truncate', date: 'kol-mono-12 text-meta whitespace-nowrap', size: 'kol-mono-12 text-meta whitespace-nowrap' },
67
67
  },
68
68
  /* SLIDE — a deck (slide-variant-and-shelf-preset, kol-client-olina 2026-09-03;
69
69
  * user: "they are genuinely different with 16:9 layout and those exposed
@@ -330,6 +330,9 @@ export default function ContentText({
330
330
  * needs exactly that: classification over year at the right edge, which a
331
331
  * flat slot list cannot express and which was previously collapsed into one
332
332
  * `date` slot that lost a value. */
333
+ /* a file's date · size never break inside a value (AppCardDateSizeWrap, kol-mirror 2026-10-23: `2026-10-` /
334
+ * `23` at ~170px columns): each value is nowrap, and when the pair does not fit the size drops to the next line */
335
+ const wrapGroup = variant === 'file' || variant === 'app'
333
336
  const render = (entry, i, trailing = false) => {
334
337
  if (typeof entry === 'string') return line(entry)
335
338
  const [kind, ...slots] = entry
@@ -354,8 +357,8 @@ export default function ContentText({
354
357
  * baseline — a two-line column has no single baseline to share with the
355
358
  * title beside it, and baseline-aligning it hangs the second line below
356
359
  * the row's floor. */
357
- className={`flex min-w-0 ${parts.length > 1 && Array.isArray(slots[slots.length - 1]) ? 'items-center' : 'items-baseline'} ${split ? 'justify-between' : ''}`}
358
- style={{ gap: 'var(--kol-spacing-6)' }}
360
+ className={`flex min-w-0 ${wrapGroup && kind === 'group' ? 'flex-wrap' : ''} ${parts.length > 1 && Array.isArray(slots[slots.length - 1]) ? 'items-center' : 'items-baseline'} ${split ? 'justify-between' : ''}`}
361
+ style={wrapGroup && kind === 'group' ? { columnGap: 'var(--kol-spacing-6)', rowGap: 0 } : { gap: 'var(--kol-spacing-6)' }}
359
362
  >
360
363
  {/* the LEADING part of a `between` takes the room; the trailing column
361
364
  * hugs its content. Without this the left stack sized to its content