clay-radio
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
{ | ||
"name": "clay-radio", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Clay Radio Component", | ||
"license": "BSD", | ||
"repository": "metal/metal-clay-components", | ||
"repository": "https://github.com/metal/metal-clay-components/tree/master/packages/clay-radio", | ||
"engines": { | ||
@@ -21,2 +21,4 @@ "node": ">=0.12.0", | ||
"build": "npm run soy && webpack", | ||
"compile": "babel -d lib/ src/ -s --ignore src/__tests__", | ||
"prepublish": "npm run soy && npm run compile", | ||
"soy": "metalsoy" | ||
@@ -41,3 +43,3 @@ }, | ||
"browserslist-config-clay-components": "^1.0.0-alpha.2", | ||
"clay": "^2.0.0-beta.1", | ||
"clay": "^2.0.0-beta.2", | ||
"metal-dom": "^2.13.2", | ||
@@ -44,0 +46,0 @@ "metal-tools-soy": "^4.2.1", |
@@ -38,2 +38,12 @@ import ClayRadio from '../ClayRadio'; | ||
it('should generate a checked and disabled radio', () => { | ||
clayRadio = new ClayRadio({ | ||
checked: true, | ||
disabled: true, | ||
label: 'My Radio', | ||
}); | ||
expect(clayRadio).toMatchSnapshot(); | ||
}); | ||
it('should generate a radio with hidden label', () => { | ||
@@ -40,0 +50,0 @@ clayRadio = new ClayRadio({ |
@@ -128,3 +128,3 @@ /* jshint ignore:start */ | ||
if (disabled) { | ||
incrementalDom.attr('disabled', ''); | ||
incrementalDom.attr('disabled', 'disabled'); | ||
} | ||
@@ -131,0 +131,0 @@ incrementalDom.attr('class', 'custom-control-input'); |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
59665
12
675