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

clay-label

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-label - npm Package Compare versions

Comparing version 2.0.0-beta.8 to 2.0.0-rc.0

57

lib/ClayLabel.soy.js

@@ -49,22 +49,3 @@ 'use strict';

/**
* @param {{
* closeable: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleCloseButtonClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -75,3 +56,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -98,3 +79,3 @@ var $$temp;

var style = soy.asserts.assertType(opt_data.style == null || goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent, 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy13 = function attributes__soy13() {
var attributes__soy38 = function attributes__soy38() {
incrementalDom.attr('class', 'label label-' + (($$temp = style) == null ? 'secondary' : $$temp) + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));

@@ -106,7 +87,7 @@ if (id) {

incrementalDom.elementOpenStart('span');
attributes__soy13();
attributes__soy38();
incrementalDom.elementOpenEnd();
$content(opt_data, null, opt_ijData);
incrementalDom.elementClose('span');
}
};
exports.render = $render;

@@ -132,3 +113,3 @@ /**

* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* ariaExpanded: (boolean|null|undefined),
* }}

@@ -142,21 +123,3 @@ */

/**
* @param {{
* closeable: (boolean|null|undefined),
* handleCloseButtonClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$content.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -167,3 +130,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
var $content = function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -189,3 +152,3 @@ opt_data = opt_data || {};

}
}
};
exports.content = $content;

@@ -210,3 +173,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -213,0 +176,0 @@ */

10

package.json
{
"name": "clay-label",
"version": "2.0.0-beta.8",
"version": "2.0.0-rc.0",
"description": "Metal Clay Label component",

@@ -30,4 +30,4 @@ "license": "BSD",

"dependencies": {
"clay-button": "^2.0.0-beta.8",
"clay-link": "^2.0.0-beta.8",
"clay-button": "^2.0.0-rc.0",
"clay-link": "^2.0.0-rc.0",
"metal": "^2.16.0",

@@ -46,5 +46,5 @@ "metal-component": "^2.16.0",

"browserslist-config-clay-components": "^1.0.0-alpha.2",
"clay": "^2.0.0-beta.8",
"clay": "^2.0.0-rc.0",
"metal-dom": "^2.13.2",
"metal-tools-soy": "^4.2.1",
"metal-tools-soy": "^5.0.0",
"webpack": "^3.0.0"

@@ -51,0 +51,0 @@ },

@@ -30,22 +30,3 @@ /* jshint ignore:start */

/**
* @param {{
* closeable: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleCloseButtonClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -56,3 +37,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -79,3 +60,3 @@ var $$temp;

var style = soy.asserts.assertType(opt_data.style == null || (goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent), 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy13 = function() {
var attributes__soy38 = function() {
incrementalDom.attr('class', 'label label-' + (($$temp = style) == null ? 'secondary' : $$temp) + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));

@@ -87,7 +68,7 @@ if (id) {

incrementalDom.elementOpenStart('span');
attributes__soy13();
attributes__soy38();
incrementalDom.elementOpenEnd();
$content(opt_data, null, opt_ijData);
$content(opt_data, null, opt_ijData);
incrementalDom.elementClose('span');
}
};
exports.render = $render;

@@ -113,3 +94,3 @@ /**

* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* ariaExpanded: (boolean|null|undefined),
* }}

@@ -124,21 +105,3 @@ */

/**
* @param {{
* closeable: (boolean|null|undefined),
* handleCloseButtonClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$content.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -149,3 +112,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
var $content = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -171,3 +134,3 @@ opt_data = opt_data || {};

}
}
};
exports.content = $content;

@@ -192,3 +155,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -195,0 +158,0 @@ */

Sorry, the diff of this file is not supported yet

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