@kolkrabbi/kol-component 0.161.0 → 0.162.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.161.0",
3
+ "version": "0.162.0",
4
4
  "description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -199,6 +199,13 @@ export default function ContentCard({
199
199
  ) : null
200
200
  const r = ratio ?? RATIOS[variant]
201
201
  const padding = pad ? `var(--kol-pad-card-${pad})` : box.pad
202
+ /* the inset takes SINGLE values (ContentCardActionsInsetShorthand, kol-monitor
203
+ * 2026-09-02): `catalog`'s pad is the two-value shorthand `sm md`, and a
204
+ * two-value string is invalid for top / right / bottom — all three dropped
205
+ * and the actions landed at their static position, under the copy at the
206
+ * left, instead of bottom-right (the 2026-08-15 ruling). Block from the
207
+ * first value, inline from the second (or the same one). */
208
+ const [padBlock, padInline = padBlock] = String(padding ?? '0').trim().split(/\s+/)
202
209
  /* image-only cards (print) pass no text slots — the empty plate must not render */
203
210
  const hasText = ['title', 'body', 'kicker', 'detail', 'date', 'size', 'meta', 'tags'].some((k) => textSlots[k] != null)
204
211
  /* `actions` sit IN THE TEXT PLATE, bottom-right (user ruling 2026-08-15:
@@ -233,7 +240,7 @@ export default function ContentCard({
233
240
  {actions && (
234
241
  <div
235
242
  className="absolute flex"
236
- style={{ top: padding, bottom: padding, right: padding }}
243
+ style={{ top: padBlock, bottom: padBlock, right: padInline }}
237
244
  >
238
245
  {actions}
239
246
  </div>