@fluid-topics/ft-typography 1.0.60 → 1.0.62
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,13 +1,15 @@
|
|
|
1
|
-
import { css } from "lit";
|
|
1
|
+
import { css, unsafeCSS } from "lit";
|
|
2
2
|
import { typographies } from "@fluid-topics/design-system-variables";
|
|
3
3
|
export function buildDsTypographyCss(variant) {
|
|
4
4
|
const typographyVariables = typographies[variant];
|
|
5
5
|
return css `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
.ft-typography--${unsafeCSS(variant)} {
|
|
7
|
+
font-family: ${typographyVariables.fontFamily};
|
|
8
|
+
font-size: ${typographyVariables.fontSize};
|
|
9
|
+
font-weight: ${typographyVariables.fontWeight};
|
|
10
|
+
letter-spacing: ${typographyVariables.letterSpacing};
|
|
11
|
+
line-height: ${typographyVariables.lineHeight};
|
|
12
|
+
text-transform: ${typographyVariables.textCase};
|
|
13
|
+
}
|
|
12
14
|
`;
|
|
13
15
|
}
|
|
@@ -106,12 +106,14 @@ const A=Symbol.for(""),G=t=>{if((null==t?void 0:t.r)===A)return null==t?void 0:t
|
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
108
|
`,Tt=[Object.keys(ut).map((t=>function(t){const o=ut[t];return e.css`
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
.ft-typography--${e.unsafeCSS(t)} {
|
|
110
|
+
font-family: ${o.fontFamily};
|
|
111
|
+
font-size: ${o.fontSize};
|
|
112
|
+
font-weight: ${o.fontWeight};
|
|
113
|
+
letter-spacing: ${o.letterSpacing};
|
|
114
|
+
line-height: ${o.lineHeight};
|
|
115
|
+
text-transform: ${o.textCase};
|
|
116
|
+
}
|
|
115
117
|
`}(t)))];var Yt=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class _t extends o.FtLitElement{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?Y`
|
|
116
118
|
<${P(this.element)}
|
|
117
119
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -181,12 +181,14 @@ const Yt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void
|
|
|
181
181
|
vertical-align: inherit;
|
|
182
182
|
}
|
|
183
183
|
`,wo=[Object.keys(Ft).map((t=>function(t){const o=Ft[t];return h`
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
.ft-typography--${f(t)} {
|
|
185
|
+
font-family: ${o.fontFamily};
|
|
186
|
+
font-size: ${o.fontSize};
|
|
187
|
+
font-weight: ${o.fontWeight};
|
|
188
|
+
letter-spacing: ${o.letterSpacing};
|
|
189
|
+
line-height: ${o.lineHeight};
|
|
190
|
+
text-transform: ${o.textCase};
|
|
191
|
+
}
|
|
190
192
|
`}(t)))];var Ro,Uo=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Eo extends jt{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?qt`
|
|
191
193
|
<${Jt(this.element)}
|
|
192
194
|
class="ft-typography ft-typography--${this.variant}">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-typography",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "0.0.17",
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.62",
|
|
24
24
|
"lit": "2.7.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "44e9005773fe47b2e6a9ada16802918052a146cf"
|
|
27
27
|
}
|