Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/wheel-component.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# react-raffle-picker

## 0.4.0

### Minor Changes

- 285d263: Add `<RafflePick.Wheel>` — a spinning wheel that lands on the winner the root
picks. Segments come from `items` or the `min`/`max` range (override with
`segments`), and `pointer`, `colors`, `turns`, `spinDuration` and `size` control
the look and the throw. It needs no stylesheet: geometry is inline, rotation is
driven by rAF, and the landing is a single transition, so nothing re-renders
mid-spin. Honours `prefers-reduced-motion` by jumping straight to the result.

Also exposes `total` and `valueAt(position)` on the raffle context, so custom UIs
can enumerate the draw pool without knowing whether the root is in items or
numeric mode. Both are additive.

## 0.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-raffle-picker",
"version": "0.3.2",
"version": "0.4.0",
"description": "React random picker: draw a random winner or number with slot-machine, reel and countdown animations. Headless, typed, zero-dependency.",
"type": "module",
"publishConfig": {
Expand Down