@fluid-topics/ft-typography 1.0.60 → 1.0.61

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
- font-family: ${typographyVariables.fontFamily};
7
- font-size: ${typographyVariables.fontSize};
8
- font-weight: ${typographyVariables.fontWeight};
9
- letter-spacing: ${typographyVariables.letterSpacing};
10
- line-height: ${typographyVariables.lineHeight};
11
- text-transform: ${typographyVariables.textCase};
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
- font-family: ${o.fontFamily};
110
- font-size: ${o.fontSize};
111
- font-weight: ${o.fontWeight};
112
- letter-spacing: ${o.letterSpacing};
113
- line-height: ${o.lineHeight};
114
- text-transform: ${o.textCase};
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
- font-family: ${o.fontFamily};
185
- font-size: ${o.fontSize};
186
- font-weight: ${o.fontWeight};
187
- letter-spacing: ${o.letterSpacing};
188
- line-height: ${o.lineHeight};
189
- text-transform: ${o.textCase};
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.60",
3
+ "version": "1.0.61",
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.60",
23
+ "@fluid-topics/ft-wc-utils": "1.0.61",
24
24
  "lit": "2.7.2"
25
25
  },
26
- "gitHead": "8eb7c2ef052f5d3f61ed0bf150fcaee093805450"
26
+ "gitHead": "c2a916c32bd1fe396316800c6afd78662ed27409"
27
27
  }