@leafygreen-ui/checkbox
Advanced tools
Comparing version 6.0.0 to 6.0.1
# @leafygreen-ui/checkbox | ||
## 6.0.1 | ||
### Patch Changes | ||
- dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed | ||
- Updated dependencies [dac3f38b] | ||
- @leafygreen-ui/lib@6.0.1 | ||
## 6.0.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@leafygreen-ui/checkbox", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "LeafyGreen UI Kit Checkbox", | ||
@@ -23,8 +23,8 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@leafygreen-ui/lib": "^6.0.0" | ||
"@leafygreen-ui/lib": "^6.0.1" | ||
}, | ||
"devDependencies": { | ||
"@leafygreen-ui/palette": "^3.0.0" | ||
"@leafygreen-ui/palette": "^3.0.1" | ||
}, | ||
"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0" | ||
} |
@@ -23,12 +23,14 @@ # Checkbox | ||
```Javascript | ||
```js | ||
import Checkbox from '@leafygreen-ui/checkbox'; | ||
<Checkbox | ||
className='my-checkbox' | ||
onChange={(event) => {/* Something to handle the click event */}} | ||
label='This is how you enable a thing' | ||
checked={true} | ||
bold={false} | ||
/> | ||
className="my-checkbox" | ||
onChange={event => { | ||
/* Something to handle the click event */ | ||
}} | ||
label="This is how you enable a thing" | ||
checked={true} | ||
bold={false} | ||
/>; | ||
``` | ||
@@ -38,24 +40,28 @@ | ||
```HTML | ||
<label class="css-1rgbgdt my-checkbox" title="Create an item" for="checkbox-14827892"> | ||
<input | ||
checked | ||
type="checkbox" | ||
role="checkbox" | ||
class="css-32kjhsdaf" | ||
id="checkbox-14827892" | ||
name="checkbox-14827892" | ||
aria-disabled="false" | ||
aria-checked="true" | ||
aria-labeledby="checkbox-14827892-label" | ||
/> | ||
```html | ||
<label | ||
class="css-1rgbgdt my-checkbox" | ||
title="Create an item" | ||
for="checkbox-14827892" | ||
> | ||
<input | ||
checked | ||
type="checkbox" | ||
role="checkbox" | ||
class="css-32kjhsdaf" | ||
id="checkbox-14827892" | ||
name="checkbox-14827892" | ||
aria-disabled="false" | ||
aria-checked="true" | ||
aria-labeledby="checkbox-14827892-label" | ||
/> | ||
<div class="css-34kjkdfg"> | ||
<div class="css-98sdfjsad"></div> | ||
</div> | ||
<div class="css-34kjkdfg"> | ||
<div class="css-98sdfjsad"></div> | ||
</div> | ||
<span class="css-8xdsjfh9" id="checkbox-14827892-label"> | ||
This is how you enable a thing | ||
</span> | ||
</label> | ||
<span class="css-8xdsjfh9" id="checkbox-14827892-label"> | ||
This is how you enable a thing | ||
</span> | ||
</label> | ||
``` | ||
@@ -62,0 +68,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
666145
1312
83
0
31
2
9
Updated@leafygreen-ui/lib@^6.0.1