Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clay-icon

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-icon - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

lib/ClayIcon.js

8

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc