@kolkrabbi/kol-component 0.293.0 → 0.294.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.293.0",
3
+ "version": "0.294.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -81,12 +81,14 @@ export function useAppItem(variant, { title, verbs, download, menuItems, date, s
81
81
  if (variant !== 'app') return null
82
82
  const hasMenu = !!menu && !!(verbs?.rename || verbs?.duplicate || verbs?.remove || menuItems)
83
83
  const openMenu = hasMenu ? (e) => menu.openAt(e, { name: title, verbs, menuItems }) : undefined
84
+ /* the cover's download stops its click at the control, as the plate does — a card that opens on click
85
+ * opened under the download too (AppCardDownloadClickBubbles, kol-monitor 2026-10-23) */
84
86
  return {
85
87
  tone: tone ?? 'secondary',
86
88
  date: typeof date === 'number' ? new Date(date).toISOString().slice(0, 10) : date,
87
89
  size: typeof size === 'number' ? formatSize(size) : size,
88
90
  media: typeof media === 'string' ? <img src={media} alt={title ?? ''} className="size-full object-cover" /> : media ?? placeholder,
89
- control: download ? <ActionButton chrome="media" icon="download" confirmIcon="check" label="Download" confirmLabel="Downloaded" onAction={download} /> : undefined,
91
+ control: download ? <ActionButton chrome="media" icon="download" confirmIcon="check" label="Download" confirmLabel="Downloaded" onAction={(e) => { e?.stopPropagation(); return download(e) }} /> : undefined,
90
92
  actions: openMenu || verbs?.remove ? <AppPlate name={title} verbs={verbs} onSettings={openMenu} /> : undefined,
91
93
  onContextMenu: openMenu,
92
94
  }