@fluid-topics/ft-card 0.2.15 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-card.light.js +15 -15
- package/build/ft-card.min.js +95 -94
- package/package.json +5 -5
- package/build/ft-card.inline-styles.js +0 -385
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
package/build/ft-card.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,r){var s=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
1
|
+
!function(t,i,e,o,r){var s=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const n=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),a=n,p=i.FtCssVariable.extend("--ft-ripple-background-color",n),l=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),f=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),h=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),c=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=y,u=i.FtCssVariable.extend("--ft-ripple-background-color",y),g=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),b=g,x=i.FtCssVariable.extend("--ft-ripple-background-color",g);class v extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
2
2
|
<style>
|
|
3
3
|
.ft-ripple .ft-ripple--effect,
|
|
4
4
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ft-ripple .ft-ripple--background {
|
|
40
|
-
background-color: ${
|
|
40
|
+
background-color: ${p};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ft-ripple .ft-ripple--effect {
|
|
44
|
-
background-color: ${
|
|
44
|
+
background-color: ${a};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${x};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${b};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -109,24 +109,24 @@
|
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2017 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/var O;const N=globalThis.trustedTypes,S=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,R="?"+w,U=`<${R}>`,C=document,E=(t="")=>C.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,P=/"/g,W=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),K=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),I=new WeakMap,T=C.createTreeWalker(C,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=k;for(let i=0;i<e;i++){const e=t[i];let p,
|
|
112
|
+
*/var O;const N=globalThis.trustedTypes,S=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,R="?"+w,U=`<${R}>`,C=document,E=(t="")=>C.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,P=/"/g,W=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),K=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),I=new WeakMap,T=C.createTreeWalker(C,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=k;for(let i=0;i<e;i++){const e=t[i];let a,p,l=-1,f=0;for(;f<e.length&&(n.lastIndex=f,p=n.exec(e),null!==p);)f=n.lastIndex,n===k?"!--"===p[1]?n=B:void 0!==p[1]?n=z:void 0!==p[2]?(W.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=L):void 0!==p[3]&&(n=L):n===L?">"===p[0]?(n=null!=r?r:k,l=-1):void 0===p[1]?l=-2:(l=n.lastIndex-p[2].length,a=p[1],n=void 0===p[3]?L:'"'===p[3]?P:D):n===P||n===D?n=L:n===B||n===z?n=k:(n=L,r=void 0);const h=n===L&&t[i+1].startsWith("/>")?" ":"";s+=n===k?e+U:l>=0?(o.push(a),e.slice(0,l)+"$lit$"+e.slice(l)+w+h):e+w+(-2===l?(o.push(void 0),i):h)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[p,l]=H(t,i);if(this.el=Z.createElement(p,e),T.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=T.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=l[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?J:"@"===i[1]?Q:X})}else a.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],E()),T.nextNode(),a.push({type:2,index:++r});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:r}),t+=w.length-1}r++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function j(t,i,e=t,o){var r,s,n,a;if(i===K)return i;let p=void 0!==o?null===(r=e._$Cl)||void 0===r?void 0:r[o]:e._$Cu;const l=F(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==l&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===l?p=void 0:(p=new l(t),p._$AT(t,e,o)),void 0!==o?(null!==(n=(a=e)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=j(t,p._$AS(t,i.values),p,o)),i}class G{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);T.currentNode=r;let s=T.nextNode(),n=0,a=0,p=o[0];for(;void 0!==p;){if(n===p.index){let i;2===p.type?i=new V(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new tt(s,this,t)),this.v.push(i),p=o[++a]}n!==(null==p?void 0:p.index)&&(s=T.nextNode(),n++)}return r}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class V{constructor(t,i,e,o){var r;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=j(this,t,i),F(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==K&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return M(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==_&&F(this._$AH)?this._$AA.nextSibling.data=t:this.k(C.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.m(e);else{const t=new G(r,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new Z(t)),i}S(t){M(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new V(this.M(E()),this.M(E()),this,this.options)):e=i[o],e._$AI(r),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class X{constructor(t,i,e,o,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const r=this.strings;let s=!1;if(void 0===r)t=j(this,t,i,0),s=!F(t)||t!==this._$AH&&t!==K,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=j(this,o[e+n],i,n),a===K&&(a=this._$AH[n]),s||(s=!F(a)||a!==this._$AH[n]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.C(t)}C(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===_?void 0:t}}const q=N?N.emptyScript:"";class J extends X{constructor(){super(...arguments),this.type=4}C(t){t&&t!==_?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends X{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=j(this,t,i,0))&&void 0!==e?e:_)===K)return;const o=this._$AH,r=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}}const it=window.litHtmlPolyfillSupport;null==it||it(Z,V),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2020 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
117
|
*/
|
|
118
|
-
const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===et)return null===(e=t)||void 0===e?void 0:e._$litStatic$},rt=t=>({_$litStatic$:t,r:et}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],
|
|
118
|
+
const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===et)return null===(e=t)||void 0===e?void 0:e._$litStatic$},rt=t=>({_$litStatic$:t,r:et}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],a=[];let p,l=0,f=!1;for(;l<o;){for(p=i[l];l<o&&void 0!==(s=e[l],r=ot(s));)p+=r+i[++l],f=!0;a.push(s),n.push(p),l++}if(l===o&&n.push(i[o]),f){const t=n.join("$$lit$$");void 0===(i=st.get(t))&&(n.raw=n,st.set(t,i=n)),e=a}return t(i,...e)})(A);var at,pt=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(at||(at={}));const lt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),ft=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ht={fontFamily:ft,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},ct=i.FtCssVariable.extend("--ft-typography-title-font-family",lt),yt=i.FtCssVariable.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),dt=i.FtCssVariable.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ut=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),gt=i.FtCssVariable.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),bt=i.FtCssVariable.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",lt),vt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),mt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),$t=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),Ot=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),Nt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),St=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",ft),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),Rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),Ut=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),Et=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),Ft=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",ft),Mt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),kt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),Bt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),Lt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),Dt=i.FtCssVariable.extend("--ft-typography-body1-font-family",ft),Pt=i.FtCssVariable.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),Wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),At=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Kt=i.FtCssVariable.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),_t=i.FtCssVariable.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-body2-font-family",ft),Tt=i.FtCssVariable.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),Ht=i.FtCssVariable.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),Zt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),jt=i.FtCssVariable.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),Gt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit"),Vt=i.FtCssVariable.extend("--ft-typography-caption-font-family",ft),Xt=i.FtCssVariable.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),Yt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),qt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),Jt=i.FtCssVariable.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Qt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),ti=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",ft),ii=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),ei=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),oi=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),ri=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),si=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),ni=i.FtCssVariable.extend("--ft-typography-overline-font-family",ft),ai=i.FtCssVariable.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),pi=i.FtCssVariable.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),li=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),fi=i.FtCssVariable.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),hi=i.FtCssVariable.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),ci=i.FtCssVariable.extend("--ft-typography-button-font-family",ft),yi=i.FtCssVariable.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),di=i.FtCssVariable.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),ui=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),gi=i.FtCssVariable.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),bi=i.FtCssVariable.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase"),xi=e.css`
|
|
119
119
|
.ft-typography--title {
|
|
120
120
|
font-family: ${ct};
|
|
121
121
|
font-size: ${yt};
|
|
122
122
|
font-weight: ${dt};
|
|
123
123
|
letter-spacing: ${ut};
|
|
124
124
|
line-height: ${gt};
|
|
125
|
-
text-transform: ${
|
|
125
|
+
text-transform: ${bt};
|
|
126
126
|
}
|
|
127
127
|
`,vi=e.css`
|
|
128
128
|
.ft-typography--title-dense {
|
|
129
|
-
font-family: ${
|
|
129
|
+
font-family: ${xt};
|
|
130
130
|
font-size: ${vt};
|
|
131
131
|
font-weight: ${mt};
|
|
132
132
|
letter-spacing: ${$t};
|
|
@@ -191,8 +191,8 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
191
191
|
`,Ri=e.css`
|
|
192
192
|
.ft-typography--overline {
|
|
193
193
|
font-family: ${ni};
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
194
|
+
font-size: ${ai};
|
|
195
|
+
font-weight: ${pi};
|
|
196
196
|
letter-spacing: ${li};
|
|
197
197
|
line-height: ${fi};
|
|
198
198
|
text-transform: ${hi};
|
|
@@ -204,20 +204,20 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
204
204
|
font-weight: ${di};
|
|
205
205
|
letter-spacing: ${ui};
|
|
206
206
|
line-height: ${gi};
|
|
207
|
-
text-transform: ${
|
|
207
|
+
text-transform: ${bi};
|
|
208
208
|
}
|
|
209
|
-
`;class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
209
|
+
`;class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?nt`
|
|
210
210
|
<${rt(this.element)}
|
|
211
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
212
|
<slot></slot>
|
|
213
213
|
</${rt(this.element)}>
|
|
214
214
|
`:nt`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}Ci.styles=[
|
|
216
|
+
`}}Ci.styles=[xi,vi,mi,$i,Oi,Ni,Si,wi,Ri,Ui,e.css`
|
|
217
217
|
.ft-typography {
|
|
218
218
|
vertical-align: inherit;
|
|
219
219
|
}
|
|
220
|
-
`],
|
|
220
|
+
`],pt([o.property()],Ci.prototype,"element",void 0),pt([o.property()],Ci.prototype,"variant",void 0),i.customElement("ft-typography")(Ci);var Ei=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const Fi={padding:i.FtCssVariable.create("--ft-card-padding","SIZE","12px"),colorPrimary:i.FtCssVariable.external($.colorPrimary,"Design system"),colorSurface:i.FtCssVariable.external($.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariable.external($.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariable.external($.colorOnSurfaceHigh,"Design system"),borderRadiusM:i.FtCssVariable.external($.borderRadiusM,"Design system"),elevation02:i.FtCssVariable.external($.elevation02,"Design system"),elevation04:i.FtCssVariable.external($.elevation04,"Design system")};class Mi extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.selected=!1}static get styles(){return e.css`
|
|
221
221
|
:host {
|
|
222
222
|
display: block;
|
|
223
223
|
}
|