@fluid-topics/ft-typography 0.1.6 → 0.1.7

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.
@@ -0,0 +1,111 @@
1
+ !function(t,i,e,o){
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ var n;const r=globalThis.trustedTypes,s=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,l="?"+h,f=`<${l}>`,a=document,p=(t="")=>a.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,d=/-->/g,u=/>/g,$=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,m=/'/g,v=/"/g,x=/^(?:script|style|textarea|title)$/i,b=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),S=new WeakMap,T=a.createTreeWalker(a,129,null,!1),A=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",l=c;for(let i=0;i<e;i++){const e=t[i];let s,a,p=-1,y=0;for(;y<e.length&&(l.lastIndex=y,a=l.exec(e),null!==a);)y=l.lastIndex,l===c?"!--"===a[1]?l=d:void 0!==a[1]?l=u:void 0!==a[2]?(x.test(a[2])&&(n=RegExp("</"+a[2],"g")),l=$):void 0!==a[3]&&(l=$):l===$?">"===a[0]?(l=null!=n?n:c,p=-1):void 0===a[1]?p=-2:(p=l.lastIndex-a[2].length,s=a[1],l=void 0===a[3]?$:'"'===a[3]?v:m):l===v||l===m?l=$:l===d||l===u?l=c:(l=$,n=void 0);const g=l===$&&t[i+1].startsWith("/>")?" ":"";r+=l===c?e+f:p>=0?(o.push(s),e.slice(0,p)+"$lit$"+e.slice(p)+h+g):e+h+(-2===p?(o.push(void 0),i):g)}const a=r+(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 _{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const f=t.length-1,a=this.parts,[y,g]=A(t,i);if(this.el=_.createElement(y,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<f;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(h)){const e=g[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(h),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?E:"?"===i[1]?M:"@"===i[1]?U:N})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(x.test(o.tagName)){const t=o.textContent.split(h),i=t.length-1;if(i>0){o.textContent=r?r.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],p()),T.nextNode(),a.push({type:2,index:++n});o.append(t[i],p())}}}else if(8===o.nodeType)if(o.data===l)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)a.push({type:7,index:n}),t+=h.length-1}n++}}static createElement(t,i){const e=a.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,r,s,h;if(i===w)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const f=y(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==f&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===f?l=void 0:(l=new f(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(h=e)._$Cl)&&void 0!==s?s:h._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=W(t,l._$AS(t,i.values),l,o)),i}class H{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:a).importNode(e,!0);T.currentNode=n;let r=T.nextNode(),s=0,h=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new F(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new O(r,this,t)),this.v.push(i),l=o[++h]}s!==(null==l?void 0:l.index)&&(r=T.nextNode(),s++)}return n}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 F{constructor(t,i,e,o){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=W(this,t,i),y(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&y(this._$AH)?this._$AA.nextSibling.data=t:this.S(a.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new H(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=S.get(t.strings);return void 0===i&&S.set(t.strings,i=new _(t)),i}A(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new F(this.M(p()),this.M(p()),this,this.options)):e=i[o],e._$AI(n),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 N{constructor(t,i,e,o,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=W(this,t,i,0),r=!y(t)||t!==this._$AH&&t!==w,r&&(this._$AH=t);else{const o=t;let s,h;for(t=n[0],s=0;s<n.length-1;s++)h=W(this,o[e+s],i,s),h===w&&(h=this._$AH[s]),r||(r=!y(h)||h!==this._$AH[s]),h===z?t=z:t!==z&&(t+=(null!=h?h:"")+n[s+1]),this._$AH[s]=h}r&&!o&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class E extends N{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const I=r?r.emptyScript:"";class M extends N{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class U extends N{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:z)===w)return;const o=this._$AH,n=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==z&&(o===z||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 O{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){W(this,t)}}const Z=window.litHtmlPolyfillSupport;null==Z||Z(_,F),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
8
+ /**
9
+ * @license
10
+ * Copyright 2020 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */
13
+ const j=t=>({_$litStatic$:t}),k=new Map,C=(t=>(i,...e)=>{var o;const n=e.length;let r,s;const h=[],l=[];let f,a=0,p=!1;for(;a<n;){for(f=i[a];a<n&&void 0!==(s=e[a],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)f+=r+i[++a],p=!0;l.push(s),h.push(f),a++}if(a===n&&h.push(i[n]),p){const t=h.join("$$lit$$");void 0===(i=k.get(t))&&(h.raw=h,k.set(t,i=h)),e=l}return t(i,...e)})(b);var G,K=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};t.FtTypographyVariants=void 0,(G=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",G.title_dense="title-dense",G.subtitle1="subtitle1",G.subtitle2="subtitle2",G.body1="body1",G.body2="body2",G.caption="caption",G.breadcrumb="breadcrumb",G.overline="overline",G.button="button";const R=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.titleFont),L=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.contentFont),q={fontFamily:L,fontSize:o.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:o.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:o.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:o.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:o.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},B={fontFamily:o.FtCssVariable.extend("--ft-typography-title-font-family",R),fontSize:o.FtCssVariable.extend("--ft-typography-title-font-size",q.fontSize,"20px"),fontWeight:o.FtCssVariable.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),lineHeight:o.FtCssVariable.extend("--ft-typography-title-line-height",q.lineHeight,"24px"),textTransform:o.FtCssVariable.extend("--ft-typography-title-text-transform",q.textTransform,"inherit")},D={fontFamily:o.FtCssVariable.extend("--ft-typography-title-dense-font-family",R),fontSize:o.FtCssVariable.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),fontWeight:o.FtCssVariable.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),lineHeight:o.FtCssVariable.extend("--ft-typography-title-dense-line-height",q.lineHeight,"24px"),textTransform:o.FtCssVariable.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit")},J={fontFamily:o.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),fontWeight:o.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),letterSpacing:o.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),lineHeight:o.FtCssVariable.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"24px"),textTransform:o.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit")},P={fontFamily:o.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),fontWeight:o.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),lineHeight:o.FtCssVariable.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"24px"),textTransform:o.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit")},Q={fontFamily:o.FtCssVariable.extend("--ft-typography-body1-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),fontWeight:o.FtCssVariable.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),lineHeight:o.FtCssVariable.extend("--ft-typography-body1-line-height",q.lineHeight,"24px"),textTransform:o.FtCssVariable.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit")},V={fontFamily:o.FtCssVariable.extend("--ft-typography-body2-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),fontWeight:o.FtCssVariable.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),lineHeight:o.FtCssVariable.extend("--ft-typography-body2-line-height",q.lineHeight,"20px"),textTransform:o.FtCssVariable.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit")},X={fontFamily:o.FtCssVariable.extend("--ft-typography-caption-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:o.FtCssVariable.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:o.FtCssVariable.extend("--ft-typography-caption-line-height",q.lineHeight,"16px"),textTransform:o.FtCssVariable.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},Y={fontFamily:o.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),fontWeight:o.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),lineHeight:o.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"16px"),textTransform:o.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit")},tt={fontFamily:o.FtCssVariable.extend("--ft-typography-overline-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),fontWeight:o.FtCssVariable.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),letterSpacing:o.FtCssVariable.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),lineHeight:o.FtCssVariable.extend("--ft-typography-overline-line-height",q.lineHeight,"16px"),textTransform:o.FtCssVariable.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase")},it={fontFamily:o.FtCssVariable.extend("--ft-typography-button-font-family",L),fontSize:o.FtCssVariable.extend("--ft-typography-button-font-size",q.fontSize,"14px"),fontWeight:o.FtCssVariable.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),letterSpacing:o.FtCssVariable.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),lineHeight:o.FtCssVariable.extend("--ft-typography-button-line-height",q.lineHeight,"16px"),textTransform:o.FtCssVariable.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase")},et=i.css`
14
+ .ft-typography--title {
15
+ font-family: ${B.fontFamily};
16
+ font-size: ${B.fontSize};
17
+ font-weight: ${B.fontWeight};
18
+ letter-spacing: ${B.letterSpacing};
19
+ line-height: ${B.lineHeight};
20
+ text-transform: ${B.textTransform};
21
+ }
22
+ `,ot=i.css`
23
+ .ft-typography--title-dense {
24
+ font-family: ${D.fontFamily};
25
+ font-size: ${D.fontSize};
26
+ font-weight: ${D.fontWeight};
27
+ letter-spacing: ${D.letterSpacing};
28
+ line-height: ${D.lineHeight};
29
+ text-transform: ${D.textTransform};
30
+ }
31
+ `,nt=i.css`
32
+ .ft-typography--subtitle1 {
33
+ font-family: ${J.fontFamily};
34
+ font-size: ${J.fontSize};
35
+ font-weight: ${J.fontWeight};
36
+ letter-spacing: ${J.letterSpacing};
37
+ line-height: ${J.lineHeight};
38
+ text-transform: ${J.textTransform};
39
+ }
40
+ `,rt=i.css`
41
+ .ft-typography--subtitle2 {
42
+ font-family: ${P.fontFamily};
43
+ font-size: ${P.fontSize};
44
+ font-weight: ${P.fontWeight};
45
+ letter-spacing: ${P.letterSpacing};
46
+ line-height: ${P.lineHeight};
47
+ text-transform: ${P.textTransform};
48
+ }
49
+
50
+ `,st=i.css`
51
+ .ft-typography--body1 {
52
+ font-family: ${Q.fontFamily};
53
+ font-size: ${Q.fontSize};
54
+ font-weight: ${Q.fontWeight};
55
+ letter-spacing: ${Q.letterSpacing};
56
+ line-height: ${Q.lineHeight};
57
+ text-transform: ${Q.textTransform};
58
+ }
59
+ `,ht=i.css`
60
+ .ft-typography--body2 {
61
+ font-family: ${V.fontFamily};
62
+ font-size: ${V.fontSize};
63
+ font-weight: ${V.fontWeight};
64
+ letter-spacing: ${V.letterSpacing};
65
+ line-height: ${V.lineHeight};
66
+ text-transform: ${V.textTransform};
67
+ }
68
+ `,lt=i.css`
69
+ .ft-typography--caption {
70
+ font-family: ${X.fontFamily};
71
+ font-size: ${X.fontSize};
72
+ font-weight: ${X.fontWeight};
73
+ letter-spacing: ${X.letterSpacing};
74
+ line-height: ${X.lineHeight};
75
+ text-transform: ${X.textTransform};
76
+ }
77
+ `,ft=i.css`
78
+ .ft-typography--breadcrumb {
79
+ font-family: ${Y.fontFamily};
80
+ font-size: ${Y.fontSize};
81
+ font-weight: ${Y.fontWeight};
82
+ letter-spacing: ${Y.letterSpacing};
83
+ line-height: ${Y.lineHeight};
84
+ text-transform: ${Y.textTransform};
85
+ }
86
+ `,at=i.css`
87
+ .ft-typography--overline {
88
+ font-family: ${tt.fontFamily};
89
+ font-size: ${tt.fontSize};
90
+ font-weight: ${tt.fontWeight};
91
+ letter-spacing: ${tt.letterSpacing};
92
+ line-height: ${tt.lineHeight};
93
+ text-transform: ${tt.textTransform};
94
+ }
95
+ `,pt=i.css`
96
+ .ft-typography--button {
97
+ font-family: ${it.fontFamily};
98
+ font-size: ${it.fontSize};
99
+ font-weight: ${it.fontWeight};
100
+ letter-spacing: ${it.letterSpacing};
101
+ line-height: ${it.lineHeight};
102
+ text-transform: ${it.textTransform};
103
+ }
104
+ `;t.FtTypography=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}getStyles(){return[et,ot,nt,rt,st,ht,lt,ft,at,pt]}getTemplate(){return this.element?C`
105
+ <${j(this.element)}
106
+ class="ft-typography ft-typography--${this.variant}">
107
+ <slot></slot>
108
+ </${j(this.element)}>
109
+ `:C`
110
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
+ `}},K([e.property()],t.FtTypography.prototype,"element",void 0),K([e.property()],t.FtTypography.prototype,"variant",void 0),t.FtTypography=K([o.customElement("ft-typography")],t.FtTypography),t.FtTypographyBody1=st,t.FtTypographyBody1CssVariables=Q,t.FtTypographyBody2=ht,t.FtTypographyBody2CssVariables=V,t.FtTypographyBreadcrumb=ft,t.FtTypographyBreadcrumbCssVariables=Y,t.FtTypographyButton=pt,t.FtTypographyButtonCssVariables=it,t.FtTypographyCaption=lt,t.FtTypographyCaptionCssVariables=X,t.FtTypographyCssVariables=q,t.FtTypographyOverline=at,t.FtTypographyOverlineCssVariables=tt,t.FtTypographySubtitle1=nt,t.FtTypographySubtitle1CssVariables=J,t.FtTypographySubtitle2=rt,t.FtTypographySubtitle2CssVariables=P,t.FtTypographyTitle=et,t.FtTypographyTitleCssVariables=B,t.FtTypographyTitleDense=ot,t.FtTypographyTitleDenseCssVariables=D,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils);
@@ -42,7 +42,21 @@ const et=t=>({_$litStatic$:t}),it=new Map,nt=(t=>(e,...i)=>{var n;const o=i.leng
42
42
  * @license
43
43
  * Copyright 2021 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`${t.map((t=>j`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ct,ft;s`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===ft||ft.toString());var pt,ut=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};t.FtTypographyVariants=void 0,(pt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",pt.title_dense="title-dense",pt.subtitle1="subtitle1",pt.subtitle2="subtitle2",pt.body1="body1",pt.body2="body2",pt.caption="caption",pt.breadcrumb="breadcrumb",pt.overline="overline",pt.button="button";const dt=at.extend("--ft-typography-font-family",lt.titleFont),yt=at.extend("--ft-typography-font-family",lt.contentFont),gt={fontFamily:yt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt={fontFamily:at.extend("--ft-typography-title-font-family",dt),fontSize:at.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),fontWeight:at.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),lineHeight:at.extend("--ft-typography-title-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit")},mt={fontFamily:at.extend("--ft-typography-title-dense-font-family",dt),fontSize:at.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),lineHeight:at.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit")},bt={fontFamily:at.extend("--ft-typography-subtitle1-font-family",yt),fontSize:at.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),lineHeight:at.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit")},xt={fontFamily:at.extend("--ft-typography-subtitle2-font-family",yt),fontSize:at.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),lineHeight:at.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit")},wt={fontFamily:at.extend("--ft-typography-body1-font-family",yt),fontSize:at.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit")},Ot={fontFamily:at.extend("--ft-typography-body2-font-family",yt),fontSize:at.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",gt.lineHeight,"20px"),textTransform:at.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit")},St={fontFamily:at.extend("--ft-typography-caption-font-family",yt),fontSize:at.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit")},$t={fontFamily:at.extend("--ft-typography-breadcrumb-font-family",yt),fontSize:at.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),lineHeight:at.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit")},Nt={fontFamily:at.extend("--ft-typography-overline-font-family",yt),fontSize:at.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),lineHeight:at.extend("--ft-typography-overline-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase")},Rt={fontFamily:at.extend("--ft-typography-button-font-family",yt),fontSize:at.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),lineHeight:at.extend("--ft-typography-button-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase")},Et=s`
45
+ */class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`
46
+ ${t.map((t=>j`
47
+ <style>${t}</style>
48
+ `))}
49
+ ${this.getTemplate()}
50
+ `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ct,ft;s`
51
+ .ft-no-text-select {
52
+ -webkit-touch-callout: none;
53
+ -webkit-user-select: none;
54
+ -khtml-user-select: none;
55
+ -moz-user-select: none;
56
+ -ms-user-select: none;
57
+ user-select: none;
58
+ }
59
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===ft||ft.toString());var pt,ut=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};t.FtTypographyVariants=void 0,(pt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",pt.title_dense="title-dense",pt.subtitle1="subtitle1",pt.subtitle2="subtitle2",pt.body1="body1",pt.body2="body2",pt.caption="caption",pt.breadcrumb="breadcrumb",pt.overline="overline",pt.button="button";const dt=at.extend("--ft-typography-font-family",lt.titleFont),yt=at.extend("--ft-typography-font-family",lt.contentFont),gt={fontFamily:yt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt={fontFamily:at.extend("--ft-typography-title-font-family",dt),fontSize:at.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),fontWeight:at.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),lineHeight:at.extend("--ft-typography-title-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit")},mt={fontFamily:at.extend("--ft-typography-title-dense-font-family",dt),fontSize:at.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),lineHeight:at.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit")},bt={fontFamily:at.extend("--ft-typography-subtitle1-font-family",yt),fontSize:at.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),lineHeight:at.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit")},xt={fontFamily:at.extend("--ft-typography-subtitle2-font-family",yt),fontSize:at.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),lineHeight:at.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit")},wt={fontFamily:at.extend("--ft-typography-body1-font-family",yt),fontSize:at.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit")},Ot={fontFamily:at.extend("--ft-typography-body2-font-family",yt),fontSize:at.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",gt.lineHeight,"20px"),textTransform:at.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit")},St={fontFamily:at.extend("--ft-typography-caption-font-family",yt),fontSize:at.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit")},$t={fontFamily:at.extend("--ft-typography-breadcrumb-font-family",yt),fontSize:at.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),lineHeight:at.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit")},Nt={fontFamily:at.extend("--ft-typography-overline-font-family",yt),fontSize:at.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),lineHeight:at.extend("--ft-typography-overline-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase")},Rt={fontFamily:at.extend("--ft-typography-button-font-family",yt),fontSize:at.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),lineHeight:at.extend("--ft-typography-button-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase")},Et=s`
46
60
  .ft-typography--title {
47
61
  font-family: ${vt.fontFamily};
48
62
  font-size: ${vt.fontSize};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-typography",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Typography components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "^0.1.6",
22
+ "@fluid-topics/ft-wc-utils": "^0.1.7",
23
23
  "lit": "^2.0.2"
24
24
  },
25
- "gitHead": "c441937eb1375dc40ff477dec50b917f2adf3b38"
25
+ "gitHead": "78397cca67971191c46739cfb6c87481aaa65745"
26
26
  }