@fluid-topics/ft-card 0.2.4 → 0.2.6
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.inline-styles.js +93 -93
- package/build/ft-card.light.js +88 -88
- package/build/ft-card.min.js +92 -92
- package/package.json +5 -5
package/build/ft-card.light.js
CHANGED
|
@@ -109,139 +109,139 @@
|
|
|
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}>`,
|
|
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,a,l=-1,f=0;for(;f<e.length&&(n.lastIndex=f,a=n.exec(e),null!==a);)f=n.lastIndex,n===k?"!--"===a[1]?n=B:void 0!==a[1]?n=z:void 0!==a[2]?(W.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=L):void 0!==a[3]&&(n=L):n===L?">"===a[0]?(n=null!=r?r:k,l=-1):void 0===a[1]?l=-2:(l=n.lastIndex-a[2].length,p=a[1],n=void 0===a[3]?L:'"'===a[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(p),e.slice(0,l)+"$lit$"+e.slice(l)+w+h):e+w+(-2===l?(o.push(void 0),i):h)}const p=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(p):p,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,p=this.parts,[a,l]=H(t,i);if(this.el=Z.createElement(a,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())&&p.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);p.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?J:"@"===i[1]?Q:X})}else p.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(),p.push({type:2,index:++r});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===R)p.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)p.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,p;if(i===K)return i;let a=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==a?void 0:a.constructor)!==l&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,e,o)),void 0!==o?(null!==(n=(p=e)._$Cl)&&void 0!==n?n:p._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=j(t,a._$AS(t,i.values),a,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,p=0,a=o[0];for(;void 0!==a;){if(n===a.index){let i;2===a.type?i=new V(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new tt(s,this,t)),this.v.push(i),a=o[++p]}n!==(null==a?void 0:a.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,p;for(t=r[0],n=0;n<r.length-1;n++)p=j(this,o[e+n],i,n),p===K&&(p=this._$AH[n]),s||(s=!F(p)||p!==this._$AH[n]),p===_?t=_:t!==_&&(t+=(null!=p?p:"")+r[n+1]),this._$AH[n]=p}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=t=>({_$litStatic$:t}),
|
|
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=[],p=[];let a,l=0,f=!1;for(;l<o;){for(a=i[l];l<o&&void 0!==(s=e[l],r=ot(s));)a+=r+i[++l],f=!0;p.push(s),n.push(a),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=p}return t(i,...e)})(A);var pt,at=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(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"}(pt||(pt={}));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","SIZE","24px"),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,"24px"),xt=i.FtCssVariable.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),bt=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,"24px"),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,"24px"),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,"24px"),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,"24px"),_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,"20px"),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,"16px"),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,"16px"),si=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),ni=i.FtCssVariable.extend("--ft-typography-overline-font-family",ft),pi=i.FtCssVariable.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),ai=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,"16px"),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,"16px"),xi=i.FtCssVariable.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase"),bi=e.css`
|
|
119
119
|
.ft-typography--title {
|
|
120
|
-
font-family: ${
|
|
121
|
-
font-size: ${
|
|
122
|
-
font-weight: ${
|
|
123
|
-
letter-spacing: ${
|
|
124
|
-
line-height: ${
|
|
125
|
-
text-transform: ${
|
|
120
|
+
font-family: ${ct};
|
|
121
|
+
font-size: ${yt};
|
|
122
|
+
font-weight: ${dt};
|
|
123
|
+
letter-spacing: ${ut};
|
|
124
|
+
line-height: ${gt};
|
|
125
|
+
text-transform: ${xt};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,vi=e.css`
|
|
128
128
|
.ft-typography--title-dense {
|
|
129
|
-
font-family: ${
|
|
130
|
-
font-size: ${
|
|
131
|
-
font-weight: ${
|
|
132
|
-
letter-spacing: ${
|
|
133
|
-
line-height: ${
|
|
134
|
-
text-transform: ${
|
|
129
|
+
font-family: ${bt};
|
|
130
|
+
font-size: ${vt};
|
|
131
|
+
font-weight: ${mt};
|
|
132
|
+
letter-spacing: ${$t};
|
|
133
|
+
line-height: ${Ot};
|
|
134
|
+
text-transform: ${Nt};
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,mi=e.css`
|
|
137
137
|
.ft-typography--subtitle1 {
|
|
138
|
-
font-family: ${
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
141
|
-
letter-spacing: ${
|
|
142
|
-
line-height: ${
|
|
143
|
-
text-transform: ${
|
|
138
|
+
font-family: ${St};
|
|
139
|
+
font-size: ${wt};
|
|
140
|
+
font-weight: ${Rt};
|
|
141
|
+
letter-spacing: ${Ut};
|
|
142
|
+
line-height: ${Ct};
|
|
143
|
+
text-transform: ${Et};
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
`,$i=e.css`
|
|
146
146
|
.ft-typography--subtitle2 {
|
|
147
|
-
font-family: ${
|
|
148
|
-
font-size: ${
|
|
149
|
-
font-weight: ${
|
|
150
|
-
letter-spacing: ${
|
|
151
|
-
line-height: ${
|
|
152
|
-
text-transform: ${
|
|
147
|
+
font-family: ${Ft};
|
|
148
|
+
font-size: ${Mt};
|
|
149
|
+
font-weight: ${kt};
|
|
150
|
+
letter-spacing: ${Bt};
|
|
151
|
+
line-height: ${zt};
|
|
152
|
+
text-transform: ${Lt};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
`,
|
|
155
|
+
`,Oi=e.css`
|
|
156
156
|
.ft-typography--body1 {
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
159
|
-
font-weight: ${
|
|
160
|
-
letter-spacing: ${
|
|
161
|
-
line-height: ${
|
|
162
|
-
text-transform: ${
|
|
157
|
+
font-family: ${Dt};
|
|
158
|
+
font-size: ${Pt};
|
|
159
|
+
font-weight: ${Wt};
|
|
160
|
+
letter-spacing: ${At};
|
|
161
|
+
line-height: ${Kt};
|
|
162
|
+
text-transform: ${_t};
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
`,Ni=e.css`
|
|
165
165
|
.ft-typography--body2 {
|
|
166
|
-
font-family: ${
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
169
|
-
letter-spacing: ${
|
|
170
|
-
line-height: ${
|
|
171
|
-
text-transform: ${
|
|
166
|
+
font-family: ${It};
|
|
167
|
+
font-size: ${Tt};
|
|
168
|
+
font-weight: ${Ht};
|
|
169
|
+
letter-spacing: ${Zt};
|
|
170
|
+
line-height: ${jt};
|
|
171
|
+
text-transform: ${Gt};
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,Si=e.css`
|
|
174
174
|
.ft-typography--caption {
|
|
175
|
-
font-family: ${
|
|
176
|
-
font-size: ${
|
|
177
|
-
font-weight: ${
|
|
178
|
-
letter-spacing: ${
|
|
179
|
-
line-height: ${
|
|
180
|
-
text-transform: ${
|
|
175
|
+
font-family: ${Vt};
|
|
176
|
+
font-size: ${Xt};
|
|
177
|
+
font-weight: ${Yt};
|
|
178
|
+
letter-spacing: ${qt};
|
|
179
|
+
line-height: ${Jt};
|
|
180
|
+
text-transform: ${Qt};
|
|
181
181
|
}
|
|
182
|
-
`,
|
|
182
|
+
`,wi=e.css`
|
|
183
183
|
.ft-typography--breadcrumb {
|
|
184
|
-
font-family: ${
|
|
185
|
-
font-size: ${
|
|
186
|
-
font-weight: ${
|
|
187
|
-
letter-spacing: ${
|
|
188
|
-
line-height: ${
|
|
189
|
-
text-transform: ${
|
|
184
|
+
font-family: ${ti};
|
|
185
|
+
font-size: ${ii};
|
|
186
|
+
font-weight: ${ei};
|
|
187
|
+
letter-spacing: ${oi};
|
|
188
|
+
line-height: ${ri};
|
|
189
|
+
text-transform: ${si};
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,Ri=e.css`
|
|
192
192
|
.ft-typography--overline {
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
196
|
-
letter-spacing: ${
|
|
197
|
-
line-height: ${
|
|
198
|
-
text-transform: ${
|
|
193
|
+
font-family: ${ni};
|
|
194
|
+
font-size: ${pi};
|
|
195
|
+
font-weight: ${ai};
|
|
196
|
+
letter-spacing: ${li};
|
|
197
|
+
line-height: ${fi};
|
|
198
|
+
text-transform: ${hi};
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
200
|
+
`,Ui=e.css`
|
|
201
201
|
.ft-typography--button {
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
202
|
+
font-family: ${ci};
|
|
203
|
+
font-size: ${yi};
|
|
204
|
+
font-weight: ${di};
|
|
205
|
+
letter-spacing: ${ui};
|
|
206
|
+
line-height: ${gi};
|
|
207
|
+
text-transform: ${xi};
|
|
208
208
|
}
|
|
209
|
-
`;class
|
|
210
|
-
<${
|
|
209
|
+
`;class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=pt.body1}render(){return this.element?nt`
|
|
210
|
+
<${rt(this.element)}
|
|
211
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
212
|
<slot></slot>
|
|
213
|
-
</${
|
|
214
|
-
`:
|
|
213
|
+
</${rt(this.element)}>
|
|
214
|
+
`:nt`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}
|
|
216
|
+
`}}Ci.styles=[bi,vi,mi,$i,Oi,Ni,Si,wi,Ri,Ui,e.css`
|
|
217
217
|
.ft-typography {
|
|
218
218
|
vertical-align: inherit;
|
|
219
219
|
}
|
|
220
|
-
`],
|
|
220
|
+
`],at([o.property()],Ci.prototype,"element",void 0),at([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,p=t.length-1;p>=0;p--)(r=t[p])&&(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
|
}
|
|
224
224
|
|
|
225
225
|
#container {
|
|
226
|
-
padding: ${
|
|
227
|
-
border-radius: ${
|
|
228
|
-
box-shadow: ${
|
|
226
|
+
padding: ${Fi.padding};
|
|
227
|
+
border-radius: ${Fi.borderRadiusM};
|
|
228
|
+
box-shadow: ${Fi.elevation02};
|
|
229
229
|
position: relative;
|
|
230
230
|
width: 100%;
|
|
231
231
|
height: 100%;
|
|
232
232
|
display: block;
|
|
233
233
|
box-sizing: border-box;
|
|
234
|
-
background-color: ${
|
|
234
|
+
background-color: ${Fi.colorSurface};
|
|
235
235
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
#container:hover {
|
|
239
|
-
box-shadow: ${
|
|
239
|
+
box-shadow: ${Fi.elevation04};
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
#container.selected {
|
|
243
|
-
outline: solid 2px ${
|
|
244
|
-
box-shadow: ${
|
|
243
|
+
outline: solid 2px ${Fi.colorPrimary};
|
|
244
|
+
box-shadow: ${Fi.elevation04};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
#header:not([hidden]) {
|
|
@@ -255,21 +255,21 @@ const et=t=>({_$litStatic$:t}),ot=new Map,rt=(t=>(i,...e)=>{var o;const r=e.leng
|
|
|
255
255
|
|
|
256
256
|
.title {
|
|
257
257
|
text-overflow: ellipsis;
|
|
258
|
-
color: ${
|
|
258
|
+
color: ${Fi.colorOnSurfaceHigh};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
#content {
|
|
262
262
|
opacity: 1;
|
|
263
263
|
font-size: 15px;
|
|
264
264
|
height: 100%;
|
|
265
|
-
color: ${
|
|
265
|
+
color: ${Fi.colorOnSurfaceMedium};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
#action {
|
|
269
269
|
position: absolute;
|
|
270
270
|
top: 0;
|
|
271
271
|
right: 0;
|
|
272
|
-
color: ${
|
|
272
|
+
color: ${Fi.colorOnSurfaceHigh};
|
|
273
273
|
}
|
|
274
274
|
`}render(){return e.html`
|
|
275
275
|
<div id="container" part="container" class=${this.selected?"selected":""}>
|
|
@@ -287,4 +287,4 @@ const et=t=>({_$litStatic$:t}),ot=new Map,rt=(t=>(i,...e)=>{var o;const r=e.leng
|
|
|
287
287
|
<slot name="action"></slot>
|
|
288
288
|
</div>
|
|
289
289
|
</div>
|
|
290
|
-
`}}
|
|
290
|
+
`}}Mi.elementDefinitions={"ft-ripple":v,"ft-typography":Ci},Ei([o.property()],Mi.prototype,"title",void 0),Ei([o.property({type:Boolean})],Mi.prototype,"selected",void 0),i.customElement("ft-card")(Mi),t.FtCard=Mi,t.FtCardCssVariables=Fi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
|