@fluid-topics/ft-typography 2.0.31 → 2.0.32
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var St=Object.create;var xe=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var vt=Object.getOwnPropertyNames;var It=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var ae=(a,r)=>()=>
|
|
1
|
+
"use strict";(()=>{var St=Object.create;var xe=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var vt=Object.getOwnPropertyNames;var It=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var ae=(a,r)=>()=>{try{return r||a((r={exports:{}}).exports,r),r.exports}catch(d){throw r=0,d}};var wt=(a,r,d,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of vt(r))!kt.call(a,n)&&n!==d&&xe(a,n,{get:()=>r[n],enumerable:!(c=Ot(r,n))||c.enumerable});return a};var C=(a,r,d)=>(d=a!=null?St(It(a)):{},wt(r||!a||!a.__esModule?xe(d,"default",{value:a,enumerable:!0}):d,a));var M=ae((Ft,Ce)=>{Ce.exports=ftGlobals.wcUtils});var ue=ae((Tt,We)=>{We.exports=ftGlobals.litDecorators});var oe=ae((Kt,Ae)=>{Ae.exports=ftGlobals.lit});var Ct=C(M());var pe=globalThis,X=pe.trustedTypes,Se=X?X.createPolicy("lit-html",{createHTML:a=>a}):void 0,Be="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,Le="?"+I,Bt=`<${Le}>`,L=document,J=()=>L.createComment(""),Y=a=>a===null||typeof a!="object"&&typeof a!="function",fe=Array.isArray,Lt=a=>fe(a)||typeof a?.[Symbol.iterator]=="function",ne=`[
|
|
2
2
|
\f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oe=/-->/g,ve=/>/g,w=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^
|
|
3
3
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ie=/'/g,ke=/"/g,Ne=/^(?:script|style|textarea|title)$/i,ye=a=>(r,...d)=>({_$litType$:a,strings:r,values:d}),Re=ye(1),ze=ye(2),Ee=ye(3),j=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),we=new WeakMap,B=L.createTreeWalker(L,129);function Pe(a,r){if(!fe(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Se!==void 0?Se.createHTML(r):r}var Nt=(a,r)=>{let d=a.length-1,c=[],n,l=r===2?"<svg>":r===3?"<math>":"",i=V;for(let f=0;f<d;f++){let y=a[f],g,b,u=-1,x=0;for(;x<y.length&&(i.lastIndex=x,b=i.exec(y),b!==null);)x=i.lastIndex,i===V?b[1]==="!--"?i=Oe:b[1]!==void 0?i=ve:b[2]!==void 0?(Ne.test(b[2])&&(n=RegExp("</"+b[2],"g")),i=w):b[3]!==void 0&&(i=w):i===w?b[0]===">"?(i=n??V,u=-1):b[1]===void 0?u=-2:(u=i.lastIndex-b[2].length,g=b[1],i=b[3]===void 0?w:b[3]==='"'?ke:Ie):i===ke||i===Ie?i=w:i===Oe||i===ve?i=V:(i=w,n=void 0);let v=i===w&&a[f+1].startsWith("/>")?" ":"";l+=i===V?y+Bt:u>=0?(c.push(g),y.slice(0,u)+Be+y.slice(u)+I+v):y+I+(u===-2?f:v)}return[Pe(a,l+(a[d]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),c]},q=class a{constructor({strings:r,_$litType$:d},c){let n;this.parts=[];let l=0,i=0,f=r.length-1,y=this.parts,[g,b]=Nt(r,d);if(this.el=a.createElement(g,c),B.currentNode=this.el.content,d===2||d===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=B.nextNode())!==null&&y.length<f;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Be)){let x=b[i++],v=n.getAttribute(u).split(I),Q=/([.?@])?(.*)/.exec(x);y.push({type:1,index:l,name:Q[2],strings:v,ctor:Q[1]==="."?ce:Q[1]==="?"?ie:Q[1]==="@"?le:E}),n.removeAttribute(u)}else u.startsWith(I)&&(y.push({type:6,index:l}),n.removeAttribute(u));if(Ne.test(n.tagName)){let u=n.textContent.split(I),x=u.length-1;if(x>0){n.textContent=X?X.emptyScript:"";for(let v=0;v<x;v++)n.append(u[v],J()),B.nextNode(),y.push({type:2,index:++l});n.append(u[x],J())}}}else if(n.nodeType===8)if(n.data===Le)y.push({type:2,index:l});else{let u=-1;for(;(u=n.data.indexOf(I,u+1))!==-1;)y.push({type:7,index:l}),u+=I.length-1}l++}}static createElement(r,d){let c=L.createElement("template");return c.innerHTML=r,c}};function z(a,r,d=a,c){if(r===j)return r;let n=c!==void 0?d._$Co?.[c]:d._$Cl,l=Y(r)?void 0:r._$litDirective$;return n?.constructor!==l&&(n?._$AO?.(!1),l===void 0?n=void 0:(n=new l(a),n._$AT(a,d,c)),c!==void 0?(d._$Co??=[])[c]=n:d._$Cl=n),n!==void 0&&(r=z(a,n._$AS(a,r.values),n,c)),r}var de=class{constructor(r,d){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=d}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:d},parts:c}=this._$AD,n=(r?.creationScope??L).importNode(d,!0);B.currentNode=n;let l=B.nextNode(),i=0,f=0,y=c[0];for(;y!==void 0;){if(i===y.index){let g;y.type===2?g=new ee(l,l.nextSibling,this,r):y.type===1?g=new y.ctor(l,y.name,y.strings,this,r):y.type===6&&(g=new se(l,this,r)),this._$AV.push(g),y=c[++f]}i!==y?.index&&(l=B.nextNode(),i++)}return B.currentNode=L,n}p(r){let d=0;for(let c of this._$AV)c!==void 0&&(c.strings!==void 0?(c._$AI(r,c,d),d+=c.strings.length-2):c._$AI(r[d])),d++}},ee=class a{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,d,c,n){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=r,this._$AB=d,this._$AM=c,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,d=this._$AM;return d!==void 0&&r?.nodeType===11&&(r=d.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,d=this){r=z(this,r,d),Y(r)?r===h||r==null||r===""?(this._$AH!==h&&this._$AR(),this._$AH=h):r!==this._$AH&&r!==j&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Lt(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==h&&Y(this._$AH)?this._$AA.nextSibling.data=r:this.T(L.createTextNode(r)),this._$AH=r}$(r){let{values:d,_$litType$:c}=r,n=typeof c=="number"?this._$AC(r):(c.el===void 0&&(c.el=q.createElement(Pe(c.h,c.h[0]),this.options)),c);if(this._$AH?._$AD===n)this._$AH.p(d);else{let l=new de(n,this),i=l.u(this.options);l.p(d),this.T(i),this._$AH=l}}_$AC(r){let d=we.get(r.strings);return d===void 0&&we.set(r.strings,d=new q(r)),d}k(r){fe(this._$AH)||(this._$AH=[],this._$AR());let d=this._$AH,c,n=0;for(let l of r)n===d.length?d.push(c=new a(this.O(J()),this.O(J()),this,this.options)):c=d[n],c._$AI(l),n++;n<d.length&&(this._$AR(c&&c._$AB.nextSibling,n),d.length=n)}_$AR(r=this._$AA.nextSibling,d){for(this._$AP?.(!1,!0,d);r&&r!==this._$AB;){let c=r.nextSibling;r.remove(),r=c}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,d,c,n,l){this.type=1,this._$AH=h,this._$AN=void 0,this.element=r,this.name=d,this._$AM=n,this.options=l,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=h}_$AI(r,d=this,c,n){let l=this.strings,i=!1;if(l===void 0)r=z(this,r,d,0),i=!Y(r)||r!==this._$AH&&r!==j,i&&(this._$AH=r);else{let f=r,y,g;for(r=l[0],y=0;y<l.length-1;y++)g=z(this,f[c+y],d,y),g===j&&(g=this._$AH[y]),i||=!Y(g)||g!==this._$AH[y],g===h?r=h:r!==h&&(r+=(g??"")+l[y+1]),this._$AH[y]=g}i&&!n&&this.j(r)}j(r){r===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},ce=class extends E{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===h?void 0:r}},ie=class extends E{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==h)}},le=class extends E{constructor(r,d,c,n,l){super(r,d,c,n,l),this.type=5}_$AI(r,d=this){if((r=z(this,r,d,0)??h)===j)return;let c=this._$AH,n=r===h&&c!==h||r.capture!==c.capture||r.once!==c.once||r.passive!==c.passive,l=r!==h&&(c===h||n);n&&this.element.removeEventListener(this.name,this,c),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},se=class{constructor(r,d,c){this.element=r,this.type=6,this._$AN=void 0,this._$AM=d,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(r){z(this,r)}};var Rt=pe.litHtmlPolyfillSupport;Rt?.(q,ee),(pe.litHtmlVersions??=[]).push("3.3.0");var Fe=Symbol.for(""),zt=a=>{if(a?.r===Fe)return a?._$litStatic$},P=a=>({_$litStatic$:a,r:Fe});var Ge=new Map,ge=a=>(r,...d)=>{let c=d.length,n,l,i=[],f=[],y,g=0,b=!1;for(;g<c;){for(y=r[g];g<c&&(l=d[g],(n=zt(l))!==void 0);)y+=n+r[++g],b=!0;g!==c&&f.push(l),i.push(y),g++}if(g===c&&i.push(r[c]),b){let u=i.join("$$lit$$");(r=Ge.get(u))===void 0&&(i.raw=i,Ge.set(u,r=i)),d=f}return a(r,...d)},G=ge(Re),$t=ge(ze),Ht=ge(Ee);var be=C(ue()),Qe=C(M());var te;(function(a){a.title="title",a.title_dense="title-dense",a.subtitle1="subtitle1",a.subtitle2="subtitle2",a.body1="body1",a.body2="body2",a.caption="caption",a.breadcrumb="breadcrumb",a.overline="overline",a.button="button"})(te||(te={}));var m=C(oe()),s=C(M()),$e=s.FtCssVariableFactory.extend("--ft-typography-font-family","",s.designSystemVariables.titleFont),S=s.FtCssVariableFactory.extend("--ft-typography-font-family","",s.designSystemVariables.contentFont),p={fontFamily:S,fontSize:s.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:s.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:s.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:s.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:s.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},F={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$e),fontSize:s.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit")},W={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$e),fontSize:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit")},A={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit")},$={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit")},H={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit")},U={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit")},Z={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit")},D={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit")},T={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase")},_={fontFamily:s.FtCssVariableFactory.extend("--ft-typography-button-font-family","",S),fontSize:s.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:s.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:s.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:s.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:s.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase")},He=m.css`
|
|
4
4
|
.ft-typography--title {
|