clay-sticker
Advanced tools
Comparing version 2.0.0-rc.4 to 2.0.0-rc.5
@@ -51,7 +51,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 || {}; | ||
@@ -83,3 +82,3 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
var attributes__soy51 = function attributes__soy51() { | ||
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : '')); | ||
incrementalDom.attr('class', 'sticker sticker-' + (style != null ? style : 'primary') + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : '')); | ||
if (id) { | ||
@@ -92,3 +91,3 @@ incrementalDom.attr('id', id); | ||
incrementalDom.elementOpenEnd(); | ||
$content(opt_data, null, opt_ijData); | ||
$content({ icon: icon, imageAlt: imageAlt, imageSrc: imageSrc, label: label, spritemap: spritemap }, opt_ijData); | ||
incrementalDom.elementClose('span'); | ||
@@ -123,7 +122,6 @@ }; | ||
* @return {void} | ||
* @suppress {checkTypes} | ||
* @suppress {checkTypes|uselessCode} | ||
*/ | ||
var $content = function $content(opt_data, opt_ijData, opt_ijData_deprecated) { | ||
opt_ijData = opt_ijData_deprecated || opt_ijData; | ||
var $$temp; | ||
opt_data = opt_data || {}; | ||
@@ -144,5 +142,5 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
if (icon && spritemap) { | ||
$templateAlias1({ spritemap: spritemap, symbol: icon }, null, opt_ijData); | ||
$templateAlias1({ spritemap: spritemap, symbol: icon }, opt_ijData); | ||
} else if (imageSrc) { | ||
$image({ imageAlt: ($$temp = imageAlt) == null ? '' : $$temp, imageSrc: imageSrc }, null, opt_ijData); | ||
$image({ imageAlt: imageAlt != null ? imageAlt : '', imageSrc: imageSrc }, opt_ijData); | ||
} else if (label) { | ||
@@ -173,3 +171,3 @@ soyIdom.print(label); | ||
* @return {void} | ||
* @suppress {checkTypes} | ||
* @suppress {checkTypes|uselessCode} | ||
*/ | ||
@@ -176,0 +174,0 @@ var $image = function $image(opt_data, opt_ijData, opt_ijData_deprecated) { |
{ | ||
"name": "clay-sticker", | ||
"version": "2.0.0-rc.4", | ||
"version": "2.0.0-rc.5", | ||
"description": "Clay Sticker Component", | ||
@@ -30,3 +30,3 @@ "license": "BSD", | ||
"dependencies": { | ||
"clay-icon": "^2.0.0-rc.4", | ||
"clay-icon": "^2.0.0-rc.5", | ||
"metal": "^2.16.0", | ||
@@ -45,3 +45,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", | ||
@@ -48,0 +48,0 @@ "metal-tools-soy": "^6.0.0", |
@@ -32,7 +32,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 || {}; | ||
@@ -64,3 +63,3 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
var attributes__soy51 = function() { | ||
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : '')); | ||
incrementalDom.attr('class', 'sticker sticker-' + (style != null ? style : 'primary') + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : '')); | ||
if (id) { | ||
@@ -73,3 +72,3 @@ incrementalDom.attr('id', id); | ||
incrementalDom.elementOpenEnd(); | ||
$content(opt_data, null, opt_ijData); | ||
$content({icon: icon, imageAlt: imageAlt, imageSrc: imageSrc, label: label, spritemap: spritemap}, opt_ijData); | ||
incrementalDom.elementClose('span'); | ||
@@ -105,7 +104,6 @@ }; | ||
* @return {void} | ||
* @suppress {checkTypes} | ||
* @suppress {checkTypes|uselessCode} | ||
*/ | ||
var $content = function(opt_data, opt_ijData, opt_ijData_deprecated) { | ||
opt_ijData = opt_ijData_deprecated || opt_ijData; | ||
var $$temp; | ||
opt_data = opt_data || {}; | ||
@@ -126,5 +124,5 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */ | ||
if (icon && spritemap) { | ||
$templateAlias1({spritemap: spritemap, symbol: icon}, null, opt_ijData); | ||
$templateAlias1({spritemap: spritemap, symbol: icon}, opt_ijData); | ||
} else if (imageSrc) { | ||
$image({imageAlt: ($$temp = imageAlt) == null ? '' : $$temp, imageSrc: imageSrc}, null, opt_ijData); | ||
$image({imageAlt: imageAlt != null ? imageAlt : '', imageSrc: imageSrc}, opt_ijData); | ||
} else if (label) { | ||
@@ -156,3 +154,3 @@ soyIdom.print(label); | ||
* @return {void} | ||
* @suppress {checkTypes} | ||
* @suppress {checkTypes|uselessCode} | ||
*/ | ||
@@ -159,0 +157,0 @@ var $image = function(opt_data, opt_ijData, opt_ijData_deprecated) { |
Sorry, the diff of this file is not supported yet
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
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
74572
844
Updatedclay-icon@^2.0.0-rc.5