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-rc.10 to 2.0.0-rc.11

37

lib/ClayLabel.soy.js

@@ -44,5 +44,5 @@ 'use strict';

var $templateAlias2 = _metalSoy2.default.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias1 = _metalSoy2.default.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias1 = _metalSoy2.default.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias2 = _metalSoy2.default.getTemplate('ClayLink.incrementaldom', 'render');

@@ -128,10 +128,31 @@ /**

var spritemap = soy.asserts.assertType(opt_data.spritemap == null || goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent, 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|null|string|undefined');
if (href) {
$templateAlias1({ href: href, label: label }, opt_ijData);
var labelContent__soy69 = function labelContent__soy69() {
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'text-truncate-inline');
incrementalDom.elementOpenEnd();
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'text-truncate');
incrementalDom.elementOpenEnd();
if (href) {
$templateAlias2({ href: href, label: label }, opt_ijData);
} else {
soyIdom.print(label);
}
incrementalDom.elementClose('span');
incrementalDom.elementClose('span');
};
if (closeable && spritemap) {
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-expand');
incrementalDom.elementOpenEnd();
labelContent__soy69();
incrementalDom.elementClose('span');
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-after');
incrementalDom.elementOpenEnd();
$templateAlias1({ ariaLabel: 'Close', elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button' }, opt_ijData);
incrementalDom.elementClose('span');
} else {
soyIdom.print(label);
labelContent__soy69();
}
if (closeable && spritemap) {
$templateAlias2({ ariaLabel: 'Close', elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button' }, opt_ijData);
}
};

@@ -138,0 +159,0 @@ exports.content = $content;

{
"name": "clay-label",
"version": "2.0.0-rc.10",
"version": "2.0.0-rc.11",
"description": "Metal Clay Label component",

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

"dependencies": {
"clay-button": "^2.0.0-rc.10",
"clay-link": "^2.0.0-rc.10",
"clay-button": "^2.0.0-rc.11",
"clay-link": "^2.0.0-rc.11",
"metal": "^2.16.0",

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

"browserslist-config-clay-components": "^2.0.0-rc.10",
"clay": "^2.0.0-rc.10",
"clay": "^2.0.0-rc.11",
"metal-dom": "^2.13.2",

@@ -49,0 +49,0 @@ "metal-tools-soy": "^6.0.0",

@@ -24,5 +24,5 @@ /* jshint ignore:start */

var $templateAlias2 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias1 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias1 = Soy.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias2 = Soy.getTemplate('ClayLink.incrementaldom', 'render');

@@ -110,10 +110,31 @@

var spritemap = soy.asserts.assertType(opt_data.spritemap == null || (goog.isString(opt_data.spritemap) || opt_data.spritemap instanceof goog.soy.data.SanitizedContent), 'spritemap', opt_data.spritemap, '!goog.soy.data.SanitizedContent|null|string|undefined');
if (href) {
$templateAlias1({href: href, label: label}, opt_ijData);
var labelContent__soy69 = function() {
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'text-truncate-inline');
incrementalDom.elementOpenEnd();
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'text-truncate');
incrementalDom.elementOpenEnd();
if (href) {
$templateAlias2({href: href, label: label}, opt_ijData);
} else {
soyIdom.print(label);
}
incrementalDom.elementClose('span');
incrementalDom.elementClose('span');
};
if (closeable && spritemap) {
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-expand');
incrementalDom.elementOpenEnd();
labelContent__soy69();
incrementalDom.elementClose('span');
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-after');
incrementalDom.elementOpenEnd();
$templateAlias1({ariaLabel: 'Close', elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button'}, opt_ijData);
incrementalDom.elementClose('span');
} else {
soyIdom.print(label);
labelContent__soy69();
}
if (closeable && spritemap) {
$templateAlias2({ariaLabel: 'Close', elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button'}, opt_ijData);
}
};

@@ -120,0 +141,0 @@ exports.content = $content;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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