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.4 to 2.0.0-rc.5

36

lib/ClayLabel.soy.js

@@ -53,7 +53,6 @@ 'use strict';

* @return {void}
* @suppress {checkTypes}
* @suppress {checkTypes|uselessCode}
*/
var $render = function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};

@@ -79,3 +78,3 @@ /** @type {*|null|undefined} */

var attributes__soy38 = function attributes__soy38() {
incrementalDom.attr('class', 'label label-' + (($$temp = style) == null ? 'secondary' : $$temp) + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));
incrementalDom.attr('class', 'label label-' + (style != null ? style : 'secondary') + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));
if (id) {

@@ -88,3 +87,3 @@ incrementalDom.attr('id', id);

incrementalDom.elementOpenEnd();
$content(opt_data, null, opt_ijData);
$content({ _handleCloseButtonClick: _handleCloseButtonClick, closeable: closeable, href: href, label: label, spritemap: spritemap }, opt_ijData);
incrementalDom.elementClose('span');

@@ -104,12 +103,2 @@ };

* 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),
* title: (!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),
* }}

@@ -127,3 +116,3 @@ */

* @return {void}
* @suppress {checkTypes}
* @suppress {checkTypes|uselessCode}
*/

@@ -144,3 +133,3 @@ var $content = function $content(opt_data, opt_ijData, opt_ijData_deprecated) {

if (href) {
$templateAlias1(opt_data, null, opt_ijData);
$templateAlias1({ href: href, label: label }, opt_ijData);
} else {

@@ -150,3 +139,3 @@ soyIdom.print(label);

if (closeable && spritemap) {
$templateAlias2({ ariaLabel: 'Close', elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button' }, null, opt_ijData);
$templateAlias2({ ariaLabel: 'Close', elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button' }, opt_ijData);
}

@@ -162,15 +151,2 @@ };

* 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),
* title: (!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),
* }}

@@ -177,0 +153,0 @@ */

8

package.json
{
"name": "clay-label",
"version": "2.0.0-rc.4",
"version": "2.0.0-rc.5",
"description": "Metal Clay Label component",

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

"dependencies": {
"clay-button": "^2.0.0-rc.4",
"clay-link": "^2.0.0-rc.4",
"clay-button": "^2.0.0-rc.5",
"clay-link": "^2.0.0-rc.5",
"metal": "^2.16.0",

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

"browserslist-config-clay-components": "^2.0.0-rc.3",
"clay": "^2.0.0-rc.4",
"clay": "^2.0.0-rc.5",
"metal-dom": "^2.13.2",

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

@@ -34,7 +34,6 @@ /* jshint ignore:start */

* @return {void}
* @suppress {checkTypes}
* @suppress {checkTypes|uselessCode}
*/
var $render = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};

@@ -60,3 +59,3 @@ /** @type {*|null|undefined} */

var attributes__soy38 = function() {
incrementalDom.attr('class', 'label label-' + (($$temp = style) == null ? 'secondary' : $$temp) + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));
incrementalDom.attr('class', 'label label-' + (style != null ? style : 'secondary') + (closeable ? ' label-dismissible' : '') + (elementClasses ? ' ' + elementClasses : '') + (size ? ' label-' + size : ''));
if (id) {

@@ -69,3 +68,3 @@ incrementalDom.attr('id', id);

incrementalDom.elementOpenEnd();
$content(opt_data, null, opt_ijData);
$content({_handleCloseButtonClick: _handleCloseButtonClick, closeable: closeable, href: href, label: label, spritemap: spritemap}, opt_ijData);
incrementalDom.elementClose('span');

@@ -85,12 +84,2 @@ };

* 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),
* title: (!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),
* }}

@@ -109,3 +98,3 @@ */

* @return {void}
* @suppress {checkTypes}
* @suppress {checkTypes|uselessCode}
*/

@@ -126,3 +115,3 @@ var $content = function(opt_data, opt_ijData, opt_ijData_deprecated) {

if (href) {
$templateAlias1(opt_data, null, opt_ijData);
$templateAlias1({href: href, label: label}, opt_ijData);
} else {

@@ -132,3 +121,3 @@ soyIdom.print(label);

if (closeable && spritemap) {
$templateAlias2({ariaLabel: 'Close', elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button'}, null, opt_ijData);
$templateAlias2({ariaLabel: 'Close', elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', spritemap: spritemap, style: 'unstyled', type: 'button'}, opt_ijData);
}

@@ -144,15 +133,2 @@ };

* 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),
* title: (!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),
* }}

@@ -159,0 +135,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