feat(lynx): add lynx-toggle headless package#1647
Conversation
🦋 Changeset detectedLatest commit: c317571 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1575ad7 to
8d2e676
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
df48c6f to
c317571
Compare
Summary
Adds
@seed-design/lynx-toggle— a headless hook for toggle (pressed) state + tap.Changes
useToggle: mirrors@seed-design/react-toggle's API (pressed/defaultPressed/onPressedChange) but composeslynx-use-controllable-state+lynx-use-press-tappressed(on/off),active(pressed-down visual),rootProps(bindtap/touch handlers)ToggleContext+useToggleContext(throw on missing provider)ToggleContexttyped with@lynx-js/react'sContext<T>so the d.ts stays portableVerification
Stack
PR 3/4 — base:
lynx-image-pkg(PR #1646). Depends on PR #1645 (headless split). Merge #1645 → #1646 → this.🤖 Generated with Claude Code