Skip to content

Releases: atomicpages/pretty-checkbox-react

3.0.0-dev.0

21 Jul 04:01
Compare
Choose a tag to compare
3.0.0-dev.0 Pre-release
Pre-release
0b9f2ca

Updating readme and adding new workflows

v2.0.0

23 May 21:10
Compare
Choose a tag to compare

Migration Guide

https://github.com/atomicpages/pretty-checkbox-react/wiki/Upgrade-Gude---1.x-to-2.x

2.0.0-rc.1...v2.0.0

2.0.0-rc.1

24 Feb 04:53
05236fb
Compare
Choose a tag to compare
2.0.0-rc.1 Pre-release
Pre-release

📢 PCR 2.0.0 RC.1 Available Now

A few small changes went into the last RC -- mainly supporting uncontrolled inputs. Highlights:

  • Passing ref all the way down to the input control
  • Fixing type issues with Checkbox, Radio, and Switch

Commits

2.0.0-rc.0

14 Feb 06:09
Compare
Choose a tag to compare
2.0.0-rc.0 Pre-release
Pre-release

📢 PCR 2.0 RC 0 available

After a couple of attempts I think the API is now stable. Here's what changed:

  • Moved fully to TS
  • Moved away from a conventional rollup build and now using pika
    • Better integration with webpack, rollup, etc
    • Flow types + TS Types
    • and more...
  • Improved accessibility (heavily inspired by reakit)
  • Slimmed down codebase
  • Intuitive component names
  • Better debugging experience using react dev tools
  • Addition of a generic Group and RadioGroup component for easier integration of grouped components into Formik, react-accessible-form, etc.
  • and more...

v2.0.0-beta.2

12 Dec 14:35
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

2.0.0-beta.1...v2.0.0-beta.2

2.0.0-beta.1

10 Nov 05:31
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

Pre-release of PCR 2.0

Install

npm i pretty-checkbox-react@next

This beta contains multiple breaking changes from the 1.x code line. Details below...

Changed

  • Consumer provided onChange does not honor a return value. The default onChange is called or you control it completely.

Removed

  • All default exports, all imports are named
  • style prop has been removed

Added

  • Adding new state hooks:
    • useCheckboxState
    • useRadioState
    • useSwitchState

Dev Internal

  • Moved __handleCheckboxChange to useCheckboxChange hook (not exported)
  • Moved to typescript for better typing support
  • Adding new internal hooks for shared behavior

Usage

Docs are still in progress. See the playground/ for examples.

1.1.0

04 Jun 05:14
Compare
Choose a tag to compare
  • Forward ref to underling input components
  • Launching new doc website

1.0.7

01 Jun 17:14
Compare
Choose a tag to compare
  • Bumping versions
  • Moving to new react-testing-lib package
  • Fixing security issue

1.0.6

28 Mar 03:40
Compare
Choose a tag to compare
  • Fixing DOM error in FAQ page
  • Fixing #1
  • Fixing #2

1.0.5

06 Feb 04:03
Compare
Choose a tag to compare
  • Fixing missing className prop from Checkbox
  • Updating snapshot tests
  • Minor test enhancements to support bug fix
  • Simplified API when using Checkbox without a label
// example usage
<Checkbox />