@tradeshift/elements.typography
Advanced tools
Comparing version 0.27.4 to 0.27.5
@@ -5,2 +5,6 @@ # Change Log | ||
## [0.27.5](https://github.com/Tradeshift/elements/compare/v0.27.4...v0.27.5) (2021-08-04) | ||
**Note:** Version bump only for package @tradeshift/elements.typography | ||
## [0.27.4](https://github.com/Tradeshift/elements/compare/v0.27.2...v0.27.4) (2021-07-28) | ||
@@ -7,0 +11,0 @@ |
@@ -1,1 +0,1 @@ | ||
import{html as t,customElementDefineHelper as e,TSElement as o,unsafeCSS as r}from"@tradeshift/elements";function i(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){return e||(e=t.slice(0)),t.raw=e,t}var s,p,l=function(e){var l,c;function h(){return e.apply(this,arguments)||this}c=e,(l=h).prototype=Object.create(c.prototype),l.prototype.constructor=l,n(l,c);var f,y,v,w=h.prototype;return w.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},w.render=function(){return this.noTooltip?t(s||(s=a(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.text):t(p||(p=a(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.tooltip||this.text,this.textChangeHandler,this.text)},f=h,v=[{key:"styles",get:function(){return[o.styles,r(":host{display:block;line-height:20px;line-height:var(--ts-unit);font-size:14px;font-size:var(--ts-font-size-default);min-width:0;color:#0f151a;color:var(--ts-color-black)}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],(y=null)&&i(f.prototype,y),v&&i(f,v),h}(o);e("ts-typography",l);export{l as TSTypography}; | ||
import{customElementDefineHelper as t,html as e,TSElement as o,unsafeCSS as r}from"@tradeshift/elements";function i(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){return e||(e=t.slice(0)),t.raw=e,t}var s,p,l=function(t){var l,c;function h(){return t.apply(this,arguments)||this}c=t,(l=h).prototype=Object.create(c.prototype),l.prototype.constructor=l,n(l,c);var f,y,v,w=h.prototype;return w.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},w.render=function(){return this.noTooltip?e(s||(s=a(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.text):e(p||(p=a(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.tooltip||this.text,this.textChangeHandler,this.text)},f=h,v=[{key:"styles",get:function(){return[o.styles,r(":host{display:block;line-height:20px;line-height:var(--ts-unit);font-size:14px;font-size:var(--ts-font-size-default);min-width:0;color:#0f151a;color:var(--ts-color-black)}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],(y=null)&&i(f.prototype,y),v&&i(f,v),h}(o);t("ts-typography",l);export{l as TSTypography}; |
{ | ||
"name": "@tradeshift/elements.typography", | ||
"version": "0.27.4", | ||
"version": "0.27.5", | ||
"repository": { | ||
@@ -18,6 +18,6 @@ "type": "git", | ||
"dependencies": { | ||
"@tradeshift/elements": "^0.27.4" | ||
"@tradeshift/elements": "^0.27.5" | ||
}, | ||
"src": "src/typography.js", | ||
"gitHead": "2d1ae43e34709e897379a1a2560591da8e1a9e4a" | ||
"gitHead": "2e357a20b55e8f909d7d8b5d9f42033203356ccf" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20834
0
Updated@tradeshift/elements@^0.27.5