Skip to content

@churnkey/react 0.2.0: loss list on Confirm, redesigned pause, expanded appearance#4

Merged
robert-moore merged 2 commits into
mainfrom
rob/react-0.2.0
May 17, 2026
Merged

@churnkey/react 0.2.0: loss list on Confirm, redesigned pause, expanded appearance#4
robert-moore merged 2 commits into
mainfrom
rob/react-0.2.0

Conversation

@robert-moore
Copy link
Copy Markdown
Contributor

@robert-moore robert-moore commented May 16, 2026

Summary

  • New losses / lossesLabel API on ConfirmStepDefaultConfirm renders a styled bullet list of what the customer is giving up. New ConfirmClassNames.{lossList, lossLabel, lossItem, lossBullet} slots.
  • DefaultPauseOffer redesigned: resume date as typographic anchor with ink month chips below.
  • AppearanceVariables widened from 11 → 25 typed keys (surfaces, borders, semantic colors, mono + display fonts, step-title weight / tracking). The underlying --ck-* CSS variables always worked; this is the JS-side typed surface catching up.
  • formatMonthDayLong exported from @churnkey/react/core for prominent date displays.
  • .ck-success-icon swapped from green-on-green to sand-disc + ink-check.

Breaking

CSS class renames in the pause layout: .ck-pause-segments, .ck-pause-segment, .ck-pause-segment--selected, .ck-pause-resume, .ck-pause-resume-label, .ck-pause-resume-date, .ck-pause-resume-icon are gone — replaced with .ck-pause-card, .ck-pause-eyebrow, .ck-pause-date, .ck-pause-chips, .ck-pause-chip, .ck-pause-chip--selected. JS API unchanged.

Release

Pre-1.0 minor — breaking-but-narrow per the project's pre-1.0 policy ("Expect breaking changes in minor versions while we're pre-1.0"). Full release notes in CHANGELOG.md.

robert-moore and others added 2 commits May 16, 2026 17:02
… appearance API

- ConfirmStep gains optional losses/lossesLabel; DefaultConfirm renders a
  styled bullet list between description and period-end notice.
  ConfirmClassNames gains lossList/lossLabel/lossItem/lossBullet for
  consumer overrides.
- DefaultPauseOffer rewritten: resume date as typographic anchor with ink
  month chips below, replacing the previous segment-selector + calendar-
  callout layout. Old .ck-pause-segment* and .ck-pause-resume* CSS classes
  removed; new .ck-pause-card/eyebrow/date/chips/chip.
- AppearanceVariables widened from 11 to 25 typed slots — surfaces,
  borders, muted text, primary-soft, semantic colors, mono and display
  fonts, step-title weight + tracking. The underlying --ck-* CSS variables
  always worked; this is the JS-side typed surface catching up.
- .ck-success-icon swapped from green-on-green to sand-on-ink. The check
  is the success cue; the disc is just elevation.
- core/format: add formatMonthDayLong("April 30") for prominent date
  displays. Used by the redesigned pause offer.

Pre-1.0 minor: breaking for consumers targeting the removed .ck-pause-*
CSS class names in their own stylesheets. No JS API was removed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@robert-moore robert-moore merged commit 66717f0 into main May 17, 2026
1 check passed
robert-moore added a commit that referenced this pull request May 19, 2026
@churnkey/react 0.2.0: loss list on Confirm, redesigned pause, expanded appearance
@robert-moore robert-moore deleted the rob/react-0.2.0 branch May 19, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant