Skip to content

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
* Simplifying API for components with no labels
  • Loading branch information
atomicpages committed Feb 6, 2019
1 parent dae83f4 commit 373bfdd
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"markdown": "^0.5.0",
"moize": "^5.4.1",
"pretty-checkbox": "^3.0.3",
"pretty-checkbox-react": "^0.0.10",
"pretty-checkbox-react": "^1.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-live": "^1.12.0",
Expand Down
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8248,10 +8248,10 @@ pretty-bytes@^4.0.2:
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
integrity sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=

pretty-checkbox-react@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/pretty-checkbox-react/-/pretty-checkbox-react-0.0.10.tgz#31471b2fe8c1ec58911badc0e1cd81b41194a00f"
integrity sha512-qV95HUpQa4h6x6LRZSJKn+skKqo0TXDmuXybot2EaT9gOFcHIheNC17yE11t74n2N8x1Q/Hcq8+eO/+MR51DXw==
pretty-checkbox-react@^1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/pretty-checkbox-react/-/pretty-checkbox-react-1.0.4.tgz#1a5a0afaa5d3b6ae1d0445286b2140c21d8a6124"
integrity sha512-cSWUkVavIcPPIvCcYA+UZe6yclcrQ6D+a5v3MpqAqfvNh1hj9xMIaiPvwTB/0GH2LoqkbSVxsLTulEgZH8wLaw==
dependencies:
classnames "^2.2.6"

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretty-checkbox-react",
"version": "1.0.4",
"version": "1.0.5",
"description": "Quickly integrate pretty checkbox Components (checkbox, switch, radio) with React",
"keywords": [
"Pretty",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const PrettyInputState = (props: InputProps): React.Node => {
return (
<div className={classNames('state', color ? PREFIX + color : null)} data-testid="pcr-state">
{node ? fillClassNameForIcons(node.node, node.className) : null}
{children ? <label htmlFor={id}>{children}</label> : null}
<label htmlFor={id}>{children}</label>
</div>
);
};
Expand Down
6 changes: 5 additions & 1 deletion src/components/__tests__/__snapshots__/Checkbox.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ exports[`Checkbox tests Basic Checkbox usage should behave as a checkbox 1`] = `
<div
class="state"
data-testid="pcr-state"
/>
>
<label
for="foo"
/>
</div>
</div>
</div>
`;
6 changes: 5 additions & 1 deletion src/components/__tests__/__snapshots__/Radio.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ exports[`Radio tests Radio usage as a radio should behave as a radio 1`] = `
<div
class="state"
data-testid="pcr-state"
/>
>
<label
for="foo"
/>
</div>
</div>
</div>
`;
Expand Down
6 changes: 5 additions & 1 deletion src/components/__tests__/__snapshots__/Switch.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ exports[`Switch tests Switch usage as a radio should behave as a radio 1`] = `
<div
class="state"
data-testid="pcr-state"
/>
>
<label
for="foo"
/>
</div>
</div>
</div>
`;
Expand Down

0 comments on commit 373bfdd

Please sign in to comment.