Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
{ | ||
"name": "clay-icon", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Clay Icon Component", | ||
"license": "BSD", | ||
"repository": "metal/metal-clay-components", | ||
"repository": "https://github.com/metal/metal-clay-components/tree/master/packages/clay-icon", | ||
"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", |
@@ -29,2 +29,3 @@ /* jshint ignore:start */ | ||
* symbol: (!goog.soy.data.SanitizedContent|string), | ||
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined), | ||
* id: (!goog.soy.data.SanitizedContent|null|string|undefined) | ||
@@ -44,6 +45,8 @@ * }} opt_data | ||
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || (goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent), 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined'); | ||
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
var id = soy.asserts.assertType(opt_data.id == null || (goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent), 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined'); | ||
var attributes__soy7 = function() { | ||
var attributes__soy8 = function() { | ||
incrementalDom.attr('aria-hidden', 'true'); | ||
incrementalDom.attr('class', 'lexicon-icon lexicon-icon-' + symbol); | ||
incrementalDom.attr('class', 'lexicon-icon lexicon-icon-' + symbol + (elementClasses ? ' ' + elementClasses : '')); | ||
if (id) { | ||
@@ -54,3 +57,3 @@ incrementalDom.attr('id', id); | ||
incrementalDom.elementOpenStart('svg'); | ||
attributes__soy7(); | ||
attributes__soy8(); | ||
incrementalDom.elementOpenEnd(); | ||
@@ -68,2 +71,3 @@ incrementalDom.elementOpenStart('use'); | ||
* symbol: (!goog.soy.data.SanitizedContent|string), | ||
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined), | ||
* id: (!goog.soy.data.SanitizedContent|null|string|undefined) | ||
@@ -77,4 +81,4 @@ * }} | ||
exports.render.params = ["spritemap","symbol","id"]; | ||
exports.render.types = {"spritemap":"string","symbol":"string","id":"string"}; | ||
exports.render.params = ["spritemap","symbol","elementClasses","id"]; | ||
exports.render.types = {"spritemap":"string","symbol":"string","elementClasses":"string","id":"string"}; | ||
templates = exports; | ||
@@ -81,0 +85,0 @@ return exports; |
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
27557
12
329