@kolkrabbi/kol-component 0.91.3 → 0.92.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.91.3",
3
+ "version": "0.92.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",
@@ -120,7 +120,7 @@ function MediaLayer({ media }) {
120
120
  * @param {ReactNode|{src, kind, poster, srcSet, alt}|Array} media background (media) / the half (split) / an ARRAY of slides → carousel
121
121
  * @param {number} overlayOpacity 0–100 surface-primary scrim over the media (default 0)
122
122
  * @param {boolean} veil bottom-heavy gradient over the media
123
- * @param {'center'|'end'} justify content vertically centred, or pinned to the foot (with `foot`, the pb ramp plus `overlap` — the text clears the card)
123
+ * @param {'center'|'end'} justify content vertically centred, or pinned to the foot (with `foot`: `overlap` + 32px, 48 from md — the text sits just above the card; without: the pb ramp)
124
124
  * @param {ReactNode} foot a node rendered across the hero's bottom edge
125
125
  * @param {number} overlap how far `foot` rises into the hero, px (default 250); published on the section as `--kol-section-foot-overlap`
126
126
  * @param {boolean} autoPlay · {number} autoPlayInterval · {'stack'|'header'} navPosition carousel only
@@ -321,8 +321,14 @@ export default function SectionHero({
321
321
  /* the bottom inset is never the `p-*` shorthand: `md:p-10` sits in a later
322
322
  * media query than a bare `pb-*` and would win it back at ≥768 (measured —
323
323
  * the old `pb-32 sm:pb-40` ramp lost to it between 768 and 1023 too). */
324
+ /* WITH a foot the inset is `overlap` + one small gap — 32px, 48 from md
325
+ * (SectionHeroFootGap, kol-website 2026-08-27: 0.86.0's ramp + overlap
326
+ * floated the lede ~474px above the card; live sat it ~50px above). No
327
+ * foot → the padding ramp, as before. */
324
328
  const justifyCls = justify === 'end'
325
- ? 'items-end [--kol-section-pb:8rem] sm:[--kol-section-pb:10rem] lg:[--kol-section-pb:12rem] xl:[--kol-section-pb:14rem] pb-[calc(var(--kol-section-pb)+var(--kol-section-foot-overlap,0px))]'
329
+ ? (foot
330
+ ? 'items-end pb-[calc(var(--kol-section-foot-overlap)+2rem)] md:pb-[calc(var(--kol-section-foot-overlap)+3rem)]'
331
+ : 'items-end pb-32 sm:pb-40 lg:pb-48 xl:pb-56')
326
332
  : 'items-center pb-6 md:pb-10'
327
333
  const footVar = foot ? { '--kol-section-foot-overlap': `${overlap}px` } : undefined
328
334