@fluid-topics/ft-typography 0.3.12 → 0.3.13

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,100 @@
1
+ export declare const FtTypographyCssVariables: {
2
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
3
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
4
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
5
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
6
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
7
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
8
+ };
9
+ export declare const FtTypographyTitleCssVariables: {
10
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
11
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
12
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
13
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
14
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
15
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
16
+ };
17
+ export declare const FtTypographyTitleDenseCssVariables: {
18
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
19
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
20
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
21
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
22
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
23
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
24
+ };
25
+ export declare const FtTypographySubtitle1CssVariables: {
26
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
27
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
28
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
29
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
30
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
31
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
32
+ };
33
+ export declare const FtTypographySubtitle2CssVariables: {
34
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
35
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
36
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
37
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
38
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
39
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
40
+ };
41
+ export declare const FtTypographyBody1CssVariables: {
42
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
43
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
44
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
45
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
46
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
47
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
48
+ };
49
+ export declare const FtTypographyBody2CssVariables: {
50
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
51
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
52
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
53
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
54
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
55
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
56
+ };
57
+ export declare const FtTypographyCaptionCssVariables: {
58
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
59
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
60
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
61
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
62
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
63
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
64
+ };
65
+ export declare const FtTypographyBreadcrumbCssVariables: {
66
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
67
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
68
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
69
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
70
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
71
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
72
+ };
73
+ export declare const FtTypographyOverlineCssVariables: {
74
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
75
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
76
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
77
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
78
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
79
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
80
+ };
81
+ export declare const FtTypographyButtonCssVariables: {
82
+ fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
83
+ fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
84
+ fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
85
+ letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
86
+ lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
87
+ textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
88
+ };
89
+ export declare const FtTypographyTitle: import("lit").CSSResult;
90
+ export declare const FtTypographyTitleDense: import("lit").CSSResult;
91
+ export declare const FtTypographySubtitle1: import("lit").CSSResult;
92
+ export declare const FtTypographySubtitle2: import("lit").CSSResult;
93
+ export declare const FtTypographyBody1: import("lit").CSSResult;
94
+ export declare const FtTypographyBody2: import("lit").CSSResult;
95
+ export declare const FtTypographyCaption: import("lit").CSSResult;
96
+ export declare const FtTypographyBreadcrumb: import("lit").CSSResult;
97
+ export declare const FtTypographyOverline: import("lit").CSSResult;
98
+ export declare const FtTypographyButton: import("lit").CSSResult;
99
+ export declare const FtTypographyStyles: import("lit").CSSResult;
100
+ //# sourceMappingURL=ft-typography.css.d.ts.map
@@ -0,0 +1,210 @@
1
+ import { css } from "lit";
2
+ import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
3
+ const titleFontFamily = FtCssVariableFactory.extend("--ft-typography-font-family", designSystemVariables.titleFont);
4
+ const contentFontFamily = FtCssVariableFactory.extend("--ft-typography-font-family", designSystemVariables.contentFont);
5
+ export const FtTypographyCssVariables = {
6
+ fontFamily: contentFontFamily,
7
+ fontSize: FtCssVariableFactory.create("--ft-typography-font-size", "SIZE", "16px"),
8
+ fontWeight: FtCssVariableFactory.create("--ft-typography-font-weight", "UNKNOWN", "normal"),
9
+ letterSpacing: FtCssVariableFactory.create("--ft-typography-letter-spacing", "SIZE", "0.496px"),
10
+ lineHeight: FtCssVariableFactory.create("--ft-typography-line-height", "NUMBER", "1.5"),
11
+ textTransform: FtCssVariableFactory.create("--ft-typography-text-transform", "UNKNOWN", "inherit"),
12
+ };
13
+ export const FtTypographyTitleCssVariables = {
14
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-title-font-family", titleFontFamily),
15
+ fontSize: FtCssVariableFactory.extend("--ft-typography-title-font-size", FtTypographyCssVariables.fontSize, "20px"),
16
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-title-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
17
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-title-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.15px"),
18
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-title-line-height", FtTypographyCssVariables.lineHeight, "1.2"),
19
+ textTransform: FtCssVariableFactory.extend("--ft-typography-title-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
20
+ };
21
+ export const FtTypographyTitleDenseCssVariables = {
22
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-title-dense-font-family", titleFontFamily),
23
+ fontSize: FtCssVariableFactory.extend("--ft-typography-title-dense-font-size", FtTypographyCssVariables.fontSize, "14px"),
24
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
25
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.105px"),
26
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-title-dense-line-height", FtTypographyCssVariables.lineHeight, "1.7"),
27
+ textTransform: FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
28
+ };
29
+ export const FtTypographySubtitle1CssVariables = {
30
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family", contentFontFamily),
31
+ fontSize: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size", FtTypographyCssVariables.fontSize, "16px"),
32
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight", FtTypographyCssVariables.fontWeight, "600"),
33
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.144px"),
34
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height", FtTypographyCssVariables.lineHeight, "1.5"),
35
+ textTransform: FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
36
+ };
37
+ export const FtTypographySubtitle2CssVariables = {
38
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family", contentFontFamily),
39
+ fontSize: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size", FtTypographyCssVariables.fontSize, "14px"),
40
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
41
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.098px"),
42
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height", FtTypographyCssVariables.lineHeight, "1.7"),
43
+ textTransform: FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
44
+ };
45
+ export const FtTypographyBody1CssVariables = {
46
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-body1-font-family", contentFontFamily),
47
+ fontSize: FtCssVariableFactory.extend("--ft-typography-body1-font-size", FtTypographyCssVariables.fontSize, "16px"),
48
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-body1-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
49
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.496px"),
50
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-body1-line-height", FtTypographyCssVariables.lineHeight, "1.5"),
51
+ textTransform: FtCssVariableFactory.extend("--ft-typography-body1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
52
+ };
53
+ export const FtTypographyBody2CssVariables = {
54
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-body2-font-family", contentFontFamily),
55
+ fontSize: FtCssVariableFactory.extend("--ft-typography-body2-font-size", FtTypographyCssVariables.fontSize, "14px"),
56
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-body2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
57
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.252px"),
58
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-body2-line-height", FtTypographyCssVariables.lineHeight, "1.4"),
59
+ textTransform: FtCssVariableFactory.extend("--ft-typography-body2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
60
+ };
61
+ export const FtTypographyCaptionCssVariables = {
62
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-caption-font-family", contentFontFamily),
63
+ fontSize: FtCssVariableFactory.extend("--ft-typography-caption-font-size", FtTypographyCssVariables.fontSize, "12px"),
64
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-caption-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
65
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.396px"),
66
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-caption-line-height", FtTypographyCssVariables.lineHeight, "1.33"),
67
+ textTransform: FtCssVariableFactory.extend("--ft-typography-caption-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
68
+ };
69
+ export const FtTypographyBreadcrumbCssVariables = {
70
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family", contentFontFamily),
71
+ fontSize: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size", FtTypographyCssVariables.fontSize, "10px"),
72
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
73
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.33px"),
74
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height", FtTypographyCssVariables.lineHeight, "1.6"),
75
+ textTransform: FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
76
+ };
77
+ export const FtTypographyOverlineCssVariables = {
78
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-overline-font-family", contentFontFamily),
79
+ fontSize: FtCssVariableFactory.extend("--ft-typography-overline-font-size", FtTypographyCssVariables.fontSize, "10px"),
80
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-overline-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
81
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.5px"),
82
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-overline-line-height", FtTypographyCssVariables.lineHeight, "1.6"),
83
+ textTransform: FtCssVariableFactory.extend("--ft-typography-overline-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
84
+ };
85
+ export const FtTypographyButtonCssVariables = {
86
+ fontFamily: FtCssVariableFactory.extend("--ft-typography-button-font-family", contentFontFamily),
87
+ fontSize: FtCssVariableFactory.extend("--ft-typography-button-font-size", FtTypographyCssVariables.fontSize, "14px"),
88
+ fontWeight: FtCssVariableFactory.extend("--ft-typography-button-font-weight", FtTypographyCssVariables.fontWeight, "600"),
89
+ letterSpacing: FtCssVariableFactory.extend("--ft-typography-button-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.246px"),
90
+ lineHeight: FtCssVariableFactory.extend("--ft-typography-button-line-height", FtTypographyCssVariables.lineHeight, "1.15"),
91
+ textTransform: FtCssVariableFactory.extend("--ft-typography-button-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
92
+ };
93
+ // language=CSS
94
+ export const FtTypographyTitle = css `
95
+ .ft-typography--title {
96
+ font-family: ${FtTypographyTitleCssVariables.fontFamily};
97
+ font-size: ${FtTypographyTitleCssVariables.fontSize};
98
+ font-weight: ${FtTypographyTitleCssVariables.fontWeight};
99
+ letter-spacing: ${FtTypographyTitleCssVariables.letterSpacing};
100
+ line-height: ${FtTypographyTitleCssVariables.lineHeight};
101
+ text-transform: ${FtTypographyTitleCssVariables.textTransform};
102
+ }
103
+ `;
104
+ // language=CSS
105
+ export const FtTypographyTitleDense = css `
106
+ .ft-typography--title-dense {
107
+ font-family: ${FtTypographyTitleDenseCssVariables.fontFamily};
108
+ font-size: ${FtTypographyTitleDenseCssVariables.fontSize};
109
+ font-weight: ${FtTypographyTitleDenseCssVariables.fontWeight};
110
+ letter-spacing: ${FtTypographyTitleDenseCssVariables.letterSpacing};
111
+ line-height: ${FtTypographyTitleDenseCssVariables.lineHeight};
112
+ text-transform: ${FtTypographyTitleDenseCssVariables.textTransform};
113
+ }
114
+ `;
115
+ // language=CSS
116
+ export const FtTypographySubtitle1 = css `
117
+ .ft-typography--subtitle1 {
118
+ font-family: ${FtTypographySubtitle1CssVariables.fontFamily};
119
+ font-size: ${FtTypographySubtitle1CssVariables.fontSize};
120
+ font-weight: ${FtTypographySubtitle1CssVariables.fontWeight};
121
+ letter-spacing: ${FtTypographySubtitle1CssVariables.letterSpacing};
122
+ line-height: ${FtTypographySubtitle1CssVariables.lineHeight};
123
+ text-transform: ${FtTypographySubtitle1CssVariables.textTransform};
124
+ }
125
+ `;
126
+ // language=CSS
127
+ export const FtTypographySubtitle2 = css `
128
+ .ft-typography--subtitle2 {
129
+ font-family: ${FtTypographySubtitle2CssVariables.fontFamily};
130
+ font-size: ${FtTypographySubtitle2CssVariables.fontSize};
131
+ font-weight: ${FtTypographySubtitle2CssVariables.fontWeight};
132
+ letter-spacing: ${FtTypographySubtitle2CssVariables.letterSpacing};
133
+ line-height: ${FtTypographySubtitle2CssVariables.lineHeight};
134
+ text-transform: ${FtTypographySubtitle2CssVariables.textTransform};
135
+ }
136
+
137
+ `;
138
+ // language=CSS
139
+ export const FtTypographyBody1 = css `
140
+ .ft-typography--body1 {
141
+ font-family: ${FtTypographyBody1CssVariables.fontFamily};
142
+ font-size: ${FtTypographyBody1CssVariables.fontSize};
143
+ font-weight: ${FtTypographyBody1CssVariables.fontWeight};
144
+ letter-spacing: ${FtTypographyBody1CssVariables.letterSpacing};
145
+ line-height: ${FtTypographyBody1CssVariables.lineHeight};
146
+ text-transform: ${FtTypographyBody1CssVariables.textTransform};
147
+ }
148
+ `;
149
+ // language=CSS
150
+ export const FtTypographyBody2 = css `
151
+ .ft-typography--body2 {
152
+ font-family: ${FtTypographyBody2CssVariables.fontFamily};
153
+ font-size: ${FtTypographyBody2CssVariables.fontSize};
154
+ font-weight: ${FtTypographyBody2CssVariables.fontWeight};
155
+ letter-spacing: ${FtTypographyBody2CssVariables.letterSpacing};
156
+ line-height: ${FtTypographyBody2CssVariables.lineHeight};
157
+ text-transform: ${FtTypographyBody2CssVariables.textTransform};
158
+ }
159
+ `;
160
+ // language=CSS
161
+ export const FtTypographyCaption = css `
162
+ .ft-typography--caption {
163
+ font-family: ${FtTypographyCaptionCssVariables.fontFamily};
164
+ font-size: ${FtTypographyCaptionCssVariables.fontSize};
165
+ font-weight: ${FtTypographyCaptionCssVariables.fontWeight};
166
+ letter-spacing: ${FtTypographyCaptionCssVariables.letterSpacing};
167
+ line-height: ${FtTypographyCaptionCssVariables.lineHeight};
168
+ text-transform: ${FtTypographyCaptionCssVariables.textTransform};
169
+ }
170
+ `;
171
+ // language=CSS
172
+ export const FtTypographyBreadcrumb = css `
173
+ .ft-typography--breadcrumb {
174
+ font-family: ${FtTypographyBreadcrumbCssVariables.fontFamily};
175
+ font-size: ${FtTypographyBreadcrumbCssVariables.fontSize};
176
+ font-weight: ${FtTypographyBreadcrumbCssVariables.fontWeight};
177
+ letter-spacing: ${FtTypographyBreadcrumbCssVariables.letterSpacing};
178
+ line-height: ${FtTypographyBreadcrumbCssVariables.lineHeight};
179
+ text-transform: ${FtTypographyBreadcrumbCssVariables.textTransform};
180
+ }
181
+ `;
182
+ // language=CSS
183
+ export const FtTypographyOverline = css `
184
+ .ft-typography--overline {
185
+ font-family: ${FtTypographyOverlineCssVariables.fontFamily};
186
+ font-size: ${FtTypographyOverlineCssVariables.fontSize};
187
+ font-weight: ${FtTypographyOverlineCssVariables.fontWeight};
188
+ letter-spacing: ${FtTypographyOverlineCssVariables.letterSpacing};
189
+ line-height: ${FtTypographyOverlineCssVariables.lineHeight};
190
+ text-transform: ${FtTypographyOverlineCssVariables.textTransform};
191
+ }
192
+ `;
193
+ // language=CSS
194
+ export const FtTypographyButton = css `
195
+ .ft-typography--button {
196
+ font-family: ${FtTypographyButtonCssVariables.fontFamily};
197
+ font-size: ${FtTypographyButtonCssVariables.fontSize};
198
+ font-weight: ${FtTypographyButtonCssVariables.fontWeight};
199
+ letter-spacing: ${FtTypographyButtonCssVariables.letterSpacing};
200
+ line-height: ${FtTypographyButtonCssVariables.lineHeight};
201
+ text-transform: ${FtTypographyButtonCssVariables.textTransform};
202
+ }
203
+ `;
204
+ // language=CSS
205
+ export const FtTypographyStyles = css `
206
+ .ft-typography {
207
+ vertical-align: inherit;
208
+ }
209
+ `;
210
+ //# sourceMappingURL=ft-typography.css.js.map
@@ -1,118 +1,5 @@
1
1
  import { FtLitElement } from "@fluid-topics/ft-wc-utils";
2
- export declare enum FtTypographyVariants {
3
- title = "title",
4
- title_dense = "title-dense",
5
- subtitle1 = "subtitle1",
6
- subtitle2 = "subtitle2",
7
- body1 = "body1",
8
- body2 = "body2",
9
- caption = "caption",
10
- breadcrumb = "breadcrumb",
11
- overline = "overline",
12
- button = "button"
13
- }
14
- export interface FtTypographyProperties {
15
- element?: string;
16
- variant: FtTypographyVariants;
17
- }
18
- export declare const FtTypographyCssVariables: {
19
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
20
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
21
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
22
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
23
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
24
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
25
- };
26
- export declare const FtTypographyTitleCssVariables: {
27
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
28
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
29
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
30
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
31
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
32
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
33
- };
34
- export declare const FtTypographyTitleDenseCssVariables: {
35
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
36
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
37
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
38
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
39
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
40
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
41
- };
42
- export declare const FtTypographySubtitle1CssVariables: {
43
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
44
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
45
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
46
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
47
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
48
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
49
- };
50
- export declare const FtTypographySubtitle2CssVariables: {
51
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
52
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
53
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
54
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
55
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
56
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
57
- };
58
- export declare const FtTypographyBody1CssVariables: {
59
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
60
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
61
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
62
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
63
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
64
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
65
- };
66
- export declare const FtTypographyBody2CssVariables: {
67
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
68
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
69
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
70
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
71
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
72
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
73
- };
74
- export declare const FtTypographyCaptionCssVariables: {
75
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
76
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
77
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
78
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
79
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
80
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
81
- };
82
- export declare const FtTypographyBreadcrumbCssVariables: {
83
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
84
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
85
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
86
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
87
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
88
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
89
- };
90
- export declare const FtTypographyOverlineCssVariables: {
91
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
92
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
93
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
94
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
95
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
96
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
97
- };
98
- export declare const FtTypographyButtonCssVariables: {
99
- fontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
100
- fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
101
- fontWeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
102
- letterSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
103
- lineHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
104
- textTransform: import("@fluid-topics/ft-wc-utils").FtCssVariable;
105
- };
106
- export declare const FtTypographyTitle: import("lit").CSSResult;
107
- export declare const FtTypographyTitleDense: import("lit").CSSResult;
108
- export declare const FtTypographySubtitle1: import("lit").CSSResult;
109
- export declare const FtTypographySubtitle2: import("lit").CSSResult;
110
- export declare const FtTypographyBody1: import("lit").CSSResult;
111
- export declare const FtTypographyBody2: import("lit").CSSResult;
112
- export declare const FtTypographyCaption: import("lit").CSSResult;
113
- export declare const FtTypographyBreadcrumb: import("lit").CSSResult;
114
- export declare const FtTypographyOverline: import("lit").CSSResult;
115
- export declare const FtTypographyButton: import("lit").CSSResult;
2
+ import { FtTypographyProperties, FtTypographyVariants } from "./ft-typography.properties";
116
3
  export declare class FtTypography extends FtLitElement implements FtTypographyProperties {
117
4
  static styles: import("lit").CSSResult[];
118
5
  element?: string;
@@ -4,224 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css } from "lit";
8
7
  import { html, unsafeStatic } from "lit/static-html.js";
9
8
  import { property } from "lit/decorators.js";
10
- import { designSystemVariables, FtCssVariableFactory, FtLitElement } from "@fluid-topics/ft-wc-utils";
11
- export var FtTypographyVariants;
12
- (function (FtTypographyVariants) {
13
- FtTypographyVariants["title"] = "title";
14
- FtTypographyVariants["title_dense"] = "title-dense";
15
- FtTypographyVariants["subtitle1"] = "subtitle1";
16
- FtTypographyVariants["subtitle2"] = "subtitle2";
17
- FtTypographyVariants["body1"] = "body1";
18
- FtTypographyVariants["body2"] = "body2";
19
- FtTypographyVariants["caption"] = "caption";
20
- FtTypographyVariants["breadcrumb"] = "breadcrumb";
21
- FtTypographyVariants["overline"] = "overline";
22
- FtTypographyVariants["button"] = "button";
23
- })(FtTypographyVariants || (FtTypographyVariants = {}));
24
- const titleFontFamily = FtCssVariableFactory.extend("--ft-typography-font-family", designSystemVariables.titleFont);
25
- const contentFontFamily = FtCssVariableFactory.extend("--ft-typography-font-family", designSystemVariables.contentFont);
26
- export const FtTypographyCssVariables = {
27
- fontFamily: contentFontFamily,
28
- fontSize: FtCssVariableFactory.create("--ft-typography-font-size", "SIZE", "16px"),
29
- fontWeight: FtCssVariableFactory.create("--ft-typography-font-weight", "UNKNOWN", "normal"),
30
- letterSpacing: FtCssVariableFactory.create("--ft-typography-letter-spacing", "SIZE", "0.496px"),
31
- lineHeight: FtCssVariableFactory.create("--ft-typography-line-height", "NUMBER", "1.5"),
32
- textTransform: FtCssVariableFactory.create("--ft-typography-text-transform", "UNKNOWN", "inherit"),
33
- };
34
- export const FtTypographyTitleCssVariables = {
35
- fontFamily: FtCssVariableFactory.extend("--ft-typography-title-font-family", titleFontFamily),
36
- fontSize: FtCssVariableFactory.extend("--ft-typography-title-font-size", FtTypographyCssVariables.fontSize, "20px"),
37
- fontWeight: FtCssVariableFactory.extend("--ft-typography-title-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
38
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-title-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.15px"),
39
- lineHeight: FtCssVariableFactory.extend("--ft-typography-title-line-height", FtTypographyCssVariables.lineHeight, "1.2"),
40
- textTransform: FtCssVariableFactory.extend("--ft-typography-title-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
41
- };
42
- export const FtTypographyTitleDenseCssVariables = {
43
- fontFamily: FtCssVariableFactory.extend("--ft-typography-title-dense-font-family", titleFontFamily),
44
- fontSize: FtCssVariableFactory.extend("--ft-typography-title-dense-font-size", FtTypographyCssVariables.fontSize, "14px"),
45
- fontWeight: FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
46
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.105px"),
47
- lineHeight: FtCssVariableFactory.extend("--ft-typography-title-dense-line-height", FtTypographyCssVariables.lineHeight, "1.7"),
48
- textTransform: FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
49
- };
50
- export const FtTypographySubtitle1CssVariables = {
51
- fontFamily: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family", contentFontFamily),
52
- fontSize: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size", FtTypographyCssVariables.fontSize, "16px"),
53
- fontWeight: FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight", FtTypographyCssVariables.fontWeight, "600"),
54
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.144px"),
55
- lineHeight: FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height", FtTypographyCssVariables.lineHeight, "1.5"),
56
- textTransform: FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
57
- };
58
- export const FtTypographySubtitle2CssVariables = {
59
- fontFamily: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family", contentFontFamily),
60
- fontSize: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size", FtTypographyCssVariables.fontSize, "14px"),
61
- fontWeight: FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
62
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.098px"),
63
- lineHeight: FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height", FtTypographyCssVariables.lineHeight, "1.7"),
64
- textTransform: FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
65
- };
66
- export const FtTypographyBody1CssVariables = {
67
- fontFamily: FtCssVariableFactory.extend("--ft-typography-body1-font-family", contentFontFamily),
68
- fontSize: FtCssVariableFactory.extend("--ft-typography-body1-font-size", FtTypographyCssVariables.fontSize, "16px"),
69
- fontWeight: FtCssVariableFactory.extend("--ft-typography-body1-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
70
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.496px"),
71
- lineHeight: FtCssVariableFactory.extend("--ft-typography-body1-line-height", FtTypographyCssVariables.lineHeight, "1.5"),
72
- textTransform: FtCssVariableFactory.extend("--ft-typography-body1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
73
- };
74
- export const FtTypographyBody2CssVariables = {
75
- fontFamily: FtCssVariableFactory.extend("--ft-typography-body2-font-family", contentFontFamily),
76
- fontSize: FtCssVariableFactory.extend("--ft-typography-body2-font-size", FtTypographyCssVariables.fontSize, "14px"),
77
- fontWeight: FtCssVariableFactory.extend("--ft-typography-body2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
78
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.252px"),
79
- lineHeight: FtCssVariableFactory.extend("--ft-typography-body2-line-height", FtTypographyCssVariables.lineHeight, "1.4"),
80
- textTransform: FtCssVariableFactory.extend("--ft-typography-body2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
81
- };
82
- export const FtTypographyCaptionCssVariables = {
83
- fontFamily: FtCssVariableFactory.extend("--ft-typography-caption-font-family", contentFontFamily),
84
- fontSize: FtCssVariableFactory.extend("--ft-typography-caption-font-size", FtTypographyCssVariables.fontSize, "12px"),
85
- fontWeight: FtCssVariableFactory.extend("--ft-typography-caption-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
86
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.396px"),
87
- lineHeight: FtCssVariableFactory.extend("--ft-typography-caption-line-height", FtTypographyCssVariables.lineHeight, "1.33"),
88
- textTransform: FtCssVariableFactory.extend("--ft-typography-caption-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
89
- };
90
- export const FtTypographyBreadcrumbCssVariables = {
91
- fontFamily: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family", contentFontFamily),
92
- fontSize: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size", FtTypographyCssVariables.fontSize, "10px"),
93
- fontWeight: FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
94
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.33px"),
95
- lineHeight: FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height", FtTypographyCssVariables.lineHeight, "1.6"),
96
- textTransform: FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
97
- };
98
- export const FtTypographyOverlineCssVariables = {
99
- fontFamily: FtCssVariableFactory.extend("--ft-typography-overline-font-family", contentFontFamily),
100
- fontSize: FtCssVariableFactory.extend("--ft-typography-overline-font-size", FtTypographyCssVariables.fontSize, "10px"),
101
- fontWeight: FtCssVariableFactory.extend("--ft-typography-overline-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
102
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.5px"),
103
- lineHeight: FtCssVariableFactory.extend("--ft-typography-overline-line-height", FtTypographyCssVariables.lineHeight, "1.6"),
104
- textTransform: FtCssVariableFactory.extend("--ft-typography-overline-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
105
- };
106
- export const FtTypographyButtonCssVariables = {
107
- fontFamily: FtCssVariableFactory.extend("--ft-typography-button-font-family", contentFontFamily),
108
- fontSize: FtCssVariableFactory.extend("--ft-typography-button-font-size", FtTypographyCssVariables.fontSize, "14px"),
109
- fontWeight: FtCssVariableFactory.extend("--ft-typography-button-font-weight", FtTypographyCssVariables.fontWeight, "600"),
110
- letterSpacing: FtCssVariableFactory.extend("--ft-typography-button-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.246px"),
111
- lineHeight: FtCssVariableFactory.extend("--ft-typography-button-line-height", FtTypographyCssVariables.lineHeight, "1.15"),
112
- textTransform: FtCssVariableFactory.extend("--ft-typography-button-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
113
- };
114
- // language=CSS
115
- export const FtTypographyTitle = css `
116
- .ft-typography--title {
117
- font-family: ${FtTypographyTitleCssVariables.fontFamily};
118
- font-size: ${FtTypographyTitleCssVariables.fontSize};
119
- font-weight: ${FtTypographyTitleCssVariables.fontWeight};
120
- letter-spacing: ${FtTypographyTitleCssVariables.letterSpacing};
121
- line-height: ${FtTypographyTitleCssVariables.lineHeight};
122
- text-transform: ${FtTypographyTitleCssVariables.textTransform};
123
- }
124
- `;
125
- // language=CSS
126
- export const FtTypographyTitleDense = css `
127
- .ft-typography--title-dense {
128
- font-family: ${FtTypographyTitleDenseCssVariables.fontFamily};
129
- font-size: ${FtTypographyTitleDenseCssVariables.fontSize};
130
- font-weight: ${FtTypographyTitleDenseCssVariables.fontWeight};
131
- letter-spacing: ${FtTypographyTitleDenseCssVariables.letterSpacing};
132
- line-height: ${FtTypographyTitleDenseCssVariables.lineHeight};
133
- text-transform: ${FtTypographyTitleDenseCssVariables.textTransform};
134
- }
135
- `;
136
- // language=CSS
137
- export const FtTypographySubtitle1 = css `
138
- .ft-typography--subtitle1 {
139
- font-family: ${FtTypographySubtitle1CssVariables.fontFamily};
140
- font-size: ${FtTypographySubtitle1CssVariables.fontSize};
141
- font-weight: ${FtTypographySubtitle1CssVariables.fontWeight};
142
- letter-spacing: ${FtTypographySubtitle1CssVariables.letterSpacing};
143
- line-height: ${FtTypographySubtitle1CssVariables.lineHeight};
144
- text-transform: ${FtTypographySubtitle1CssVariables.textTransform};
145
- }
146
- `;
147
- // language=CSS
148
- export const FtTypographySubtitle2 = css `
149
- .ft-typography--subtitle2 {
150
- font-family: ${FtTypographySubtitle2CssVariables.fontFamily};
151
- font-size: ${FtTypographySubtitle2CssVariables.fontSize};
152
- font-weight: ${FtTypographySubtitle2CssVariables.fontWeight};
153
- letter-spacing: ${FtTypographySubtitle2CssVariables.letterSpacing};
154
- line-height: ${FtTypographySubtitle2CssVariables.lineHeight};
155
- text-transform: ${FtTypographySubtitle2CssVariables.textTransform};
156
- }
157
-
158
- `;
159
- // language=CSS
160
- export const FtTypographyBody1 = css `
161
- .ft-typography--body1 {
162
- font-family: ${FtTypographyBody1CssVariables.fontFamily};
163
- font-size: ${FtTypographyBody1CssVariables.fontSize};
164
- font-weight: ${FtTypographyBody1CssVariables.fontWeight};
165
- letter-spacing: ${FtTypographyBody1CssVariables.letterSpacing};
166
- line-height: ${FtTypographyBody1CssVariables.lineHeight};
167
- text-transform: ${FtTypographyBody1CssVariables.textTransform};
168
- }
169
- `;
170
- // language=CSS
171
- export const FtTypographyBody2 = css `
172
- .ft-typography--body2 {
173
- font-family: ${FtTypographyBody2CssVariables.fontFamily};
174
- font-size: ${FtTypographyBody2CssVariables.fontSize};
175
- font-weight: ${FtTypographyBody2CssVariables.fontWeight};
176
- letter-spacing: ${FtTypographyBody2CssVariables.letterSpacing};
177
- line-height: ${FtTypographyBody2CssVariables.lineHeight};
178
- text-transform: ${FtTypographyBody2CssVariables.textTransform};
179
- }
180
- `;
181
- // language=CSS
182
- export const FtTypographyCaption = css `
183
- .ft-typography--caption {
184
- font-family: ${FtTypographyCaptionCssVariables.fontFamily};
185
- font-size: ${FtTypographyCaptionCssVariables.fontSize};
186
- font-weight: ${FtTypographyCaptionCssVariables.fontWeight};
187
- letter-spacing: ${FtTypographyCaptionCssVariables.letterSpacing};
188
- line-height: ${FtTypographyCaptionCssVariables.lineHeight};
189
- text-transform: ${FtTypographyCaptionCssVariables.textTransform};
190
- }
191
- `;
192
- // language=CSS
193
- export const FtTypographyBreadcrumb = css `
194
- .ft-typography--breadcrumb {
195
- font-family: ${FtTypographyBreadcrumbCssVariables.fontFamily};
196
- font-size: ${FtTypographyBreadcrumbCssVariables.fontSize};
197
- font-weight: ${FtTypographyBreadcrumbCssVariables.fontWeight};
198
- letter-spacing: ${FtTypographyBreadcrumbCssVariables.letterSpacing};
199
- line-height: ${FtTypographyBreadcrumbCssVariables.lineHeight};
200
- text-transform: ${FtTypographyBreadcrumbCssVariables.textTransform};
201
- }
202
- `;
203
- // language=CSS
204
- export const FtTypographyOverline = css `
205
- .ft-typography--overline {
206
- font-family: ${FtTypographyOverlineCssVariables.fontFamily};
207
- font-size: ${FtTypographyOverlineCssVariables.fontSize};
208
- font-weight: ${FtTypographyOverlineCssVariables.fontWeight};
209
- letter-spacing: ${FtTypographyOverlineCssVariables.letterSpacing};
210
- line-height: ${FtTypographyOverlineCssVariables.lineHeight};
211
- text-transform: ${FtTypographyOverlineCssVariables.textTransform};
212
- }
213
- `;
214
- // language=CSS
215
- export const FtTypographyButton = css `
216
- .ft-typography--button {
217
- font-family: ${FtTypographyButtonCssVariables.fontFamily};
218
- font-size: ${FtTypographyButtonCssVariables.fontSize};
219
- font-weight: ${FtTypographyButtonCssVariables.fontWeight};
220
- letter-spacing: ${FtTypographyButtonCssVariables.letterSpacing};
221
- line-height: ${FtTypographyButtonCssVariables.lineHeight};
222
- text-transform: ${FtTypographyButtonCssVariables.textTransform};
223
- }
224
- `;
9
+ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
+ import { FtTypographyVariants } from "./ft-typography.properties";
11
+ import { FtTypographyBody1, FtTypographyBody2, FtTypographyBreadcrumb, FtTypographyButton, FtTypographyCaption, FtTypographyOverline, FtTypographyStyles, FtTypographySubtitle1, FtTypographySubtitle2, FtTypographyTitle, FtTypographyTitleDense } from "./ft-typography.css";
225
12
  export class FtTypography extends FtLitElement {
226
13
  constructor() {
227
14
  super(...arguments);
@@ -253,11 +40,7 @@ FtTypography.styles = [
253
40
  FtTypographyBreadcrumb,
254
41
  FtTypographyOverline,
255
42
  FtTypographyButton,
256
- css `
257
- .ft-typography {
258
- vertical-align: inherit;
259
- }
260
- `
43
+ FtTypographyStyles,
261
44
  ];
262
45
  __decorate([
263
46
  property()
@@ -10,8 +10,17 @@ var n;const r=globalThis.trustedTypes,s=r?r.createPolicy("lit-html",{createHTML:
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t._$litStatic$},C=t=>({_$litStatic$:t,r:R}),G=new Map,P=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],h=[];let l,f=0,a=!1;for(;f<o;){for(l=i[f];f<o&&void 0!==(r=e[f],n=Z(r));)l+=n+i[++f],a=!0;h.push(r),s.push(l),f++}if(f===o&&s.push(i[o]),a){const t=s.join("$$lit$$");void 0===(i=G.get(t))&&(s.raw=s,G.set(t,i=s)),e=h}return t(i,...e)})(x);var k,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,(k=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",k.title_dense="title-dense",k.subtitle1="subtitle1",k.subtitle2="subtitle2",k.body1="body1",k.body2="body2",k.caption="caption",k.breadcrumb="breadcrumb",k.overline="overline",k.button="button";const B=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),L=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),q={fontFamily:L,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},D={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-font-size",q.fontSize,"20px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-line-height",q.lineHeight,"1.2"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",q.textTransform,"inherit")},J={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",q.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit")},Q={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"1.5"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit")},V={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit")},X={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",q.lineHeight,"1.5"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit")},Y={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",q.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit")},tt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",q.lineHeight,"1.33"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},it={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"1.6"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit")},et={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",q.lineHeight,"1.6"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase")},ot={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",q.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase")},nt=e.css`
13
+ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t._$litStatic$},C=t=>({_$litStatic$:t,r:R}),G=new Map,P=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],h=[];let l,f=0,a=!1;for(;f<o;){for(l=i[f];f<o&&void 0!==(r=e[f],n=Z(r));)l+=n+i[++f],a=!0;h.push(r),s.push(l),f++}if(f===o&&s.push(i[o]),a){const t=s.join("$$lit$$");void 0===(i=G.get(t))&&(s.raw=s,G.set(t,i=s)),e=h}return t(i,...e)})(x);var k;t.FtTypographyVariants=void 0,(k=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",k.title_dense="title-dense",k.subtitle1="subtitle1",k.subtitle2="subtitle2",k.body1="body1",k.body2="body2",k.caption="caption",k.breadcrumb="breadcrumb",k.overline="overline",k.button="button";const K=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),B=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),L={fontFamily:B,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},q={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-font-family",K),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-font-size",L.fontSize,"20px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-line-height",L.lineHeight,"1.2"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",L.textTransform,"inherit")},D={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",K),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",L.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit")},J={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"1.5"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit")},Q={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit")},V={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",L.lineHeight,"1.5"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},X={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",L.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit")},Y={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",L.lineHeight,"1.33"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},tt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"1.6"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit")},it={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",L.lineHeight,"1.6"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase")},et={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",B),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",L.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",L.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase")},ot=o.css`
14
14
  .ft-typography--title {
15
+ font-family: ${q.fontFamily};
16
+ font-size: ${q.fontSize};
17
+ font-weight: ${q.fontWeight};
18
+ letter-spacing: ${q.letterSpacing};
19
+ line-height: ${q.lineHeight};
20
+ text-transform: ${q.textTransform};
21
+ }
22
+ `,nt=o.css`
23
+ .ft-typography--title-dense {
15
24
  font-family: ${D.fontFamily};
16
25
  font-size: ${D.fontSize};
17
26
  font-weight: ${D.fontWeight};
@@ -19,8 +28,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
19
28
  line-height: ${D.lineHeight};
20
29
  text-transform: ${D.textTransform};
21
30
  }
22
- `,rt=e.css`
23
- .ft-typography--title-dense {
31
+ `,rt=o.css`
32
+ .ft-typography--subtitle1 {
24
33
  font-family: ${J.fontFamily};
25
34
  font-size: ${J.fontSize};
26
35
  font-weight: ${J.fontWeight};
@@ -28,8 +37,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
28
37
  line-height: ${J.lineHeight};
29
38
  text-transform: ${J.textTransform};
30
39
  }
31
- `,st=e.css`
32
- .ft-typography--subtitle1 {
40
+ `,st=o.css`
41
+ .ft-typography--subtitle2 {
33
42
  font-family: ${Q.fontFamily};
34
43
  font-size: ${Q.fontSize};
35
44
  font-weight: ${Q.fontWeight};
@@ -37,8 +46,9 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
37
46
  line-height: ${Q.lineHeight};
38
47
  text-transform: ${Q.textTransform};
39
48
  }
40
- `,ht=e.css`
41
- .ft-typography--subtitle2 {
49
+
50
+ `,ht=o.css`
51
+ .ft-typography--body1 {
42
52
  font-family: ${V.fontFamily};
43
53
  font-size: ${V.fontSize};
44
54
  font-weight: ${V.fontWeight};
@@ -46,9 +56,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
46
56
  line-height: ${V.lineHeight};
47
57
  text-transform: ${V.textTransform};
48
58
  }
49
-
50
- `,lt=e.css`
51
- .ft-typography--body1 {
59
+ `,lt=o.css`
60
+ .ft-typography--body2 {
52
61
  font-family: ${X.fontFamily};
53
62
  font-size: ${X.fontSize};
54
63
  font-weight: ${X.fontWeight};
@@ -56,8 +65,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
56
65
  line-height: ${X.lineHeight};
57
66
  text-transform: ${X.textTransform};
58
67
  }
59
- `,ft=e.css`
60
- .ft-typography--body2 {
68
+ `,ft=o.css`
69
+ .ft-typography--caption {
61
70
  font-family: ${Y.fontFamily};
62
71
  font-size: ${Y.fontSize};
63
72
  font-weight: ${Y.fontWeight};
@@ -65,8 +74,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
65
74
  line-height: ${Y.lineHeight};
66
75
  text-transform: ${Y.textTransform};
67
76
  }
68
- `,at=e.css`
69
- .ft-typography--caption {
77
+ `,at=o.css`
78
+ .ft-typography--breadcrumb {
70
79
  font-family: ${tt.fontFamily};
71
80
  font-size: ${tt.fontSize};
72
81
  font-weight: ${tt.fontWeight};
@@ -74,8 +83,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
74
83
  line-height: ${tt.lineHeight};
75
84
  text-transform: ${tt.textTransform};
76
85
  }
77
- `,pt=e.css`
78
- .ft-typography--breadcrumb {
86
+ `,pt=o.css`
87
+ .ft-typography--overline {
79
88
  font-family: ${it.fontFamily};
80
89
  font-size: ${it.fontSize};
81
90
  font-weight: ${it.fontWeight};
@@ -83,8 +92,8 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
83
92
  line-height: ${it.lineHeight};
84
93
  text-transform: ${it.textTransform};
85
94
  }
86
- `,yt=e.css`
87
- .ft-typography--overline {
95
+ `,yt=o.css`
96
+ .ft-typography--button {
88
97
  font-family: ${et.fontFamily};
89
98
  font-size: ${et.fontSize};
90
99
  font-weight: ${et.fontWeight};
@@ -92,24 +101,15 @@ const R=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t
92
101
  line-height: ${et.lineHeight};
93
102
  text-transform: ${et.textTransform};
94
103
  }
95
- `,gt=e.css`
96
- .ft-typography--button {
97
- font-family: ${ot.fontFamily};
98
- font-size: ${ot.fontSize};
99
- font-weight: ${ot.fontWeight};
100
- letter-spacing: ${ot.letterSpacing};
101
- line-height: ${ot.lineHeight};
102
- text-transform: ${ot.textTransform};
104
+ `,gt=o.css`
105
+ .ft-typography {
106
+ vertical-align: inherit;
103
107
  }
104
- `;class ct extends i.FtLitElement{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?P`
108
+ `;var ct=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};class dt extends i.FtLitElement{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?P`
105
109
  <${C(this.element)}
106
110
  class="ft-typography ft-typography--${this.variant}">
107
111
  <slot></slot>
108
112
  </${C(this.element)}>
109
113
  `:P`
110
114
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}ct.styles=[nt,rt,st,ht,lt,ft,at,pt,yt,gt,e.css`
112
- .ft-typography {
113
- vertical-align: inherit;
114
- }
115
- `],K([o.property()],ct.prototype,"element",void 0),K([o.property()],ct.prototype,"variant",void 0),i.customElement("ft-typography")(ct),t.FtTypography=ct,t.FtTypographyBody1=lt,t.FtTypographyBody1CssVariables=X,t.FtTypographyBody2=ft,t.FtTypographyBody2CssVariables=Y,t.FtTypographyBreadcrumb=pt,t.FtTypographyBreadcrumbCssVariables=it,t.FtTypographyButton=gt,t.FtTypographyButtonCssVariables=ot,t.FtTypographyCaption=at,t.FtTypographyCaptionCssVariables=tt,t.FtTypographyCssVariables=q,t.FtTypographyOverline=yt,t.FtTypographyOverlineCssVariables=et,t.FtTypographySubtitle1=st,t.FtTypographySubtitle1CssVariables=Q,t.FtTypographySubtitle2=ht,t.FtTypographySubtitle2CssVariables=V,t.FtTypographyTitle=nt,t.FtTypographyTitleCssVariables=D,t.FtTypographyTitleDense=rt,t.FtTypographyTitleDenseCssVariables=J,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
115
+ `}}dt.styles=[ot,nt,rt,st,ht,lt,ft,at,pt,yt,gt],ct([e.property()],dt.prototype,"element",void 0),ct([e.property()],dt.prototype,"variant",void 0),i.customElement("ft-typography")(dt),t.FtTypography=dt,t.FtTypographyBody1=ht,t.FtTypographyBody1CssVariables=V,t.FtTypographyBody2=lt,t.FtTypographyBody2CssVariables=X,t.FtTypographyBreadcrumb=at,t.FtTypographyBreadcrumbCssVariables=tt,t.FtTypographyButton=yt,t.FtTypographyButtonCssVariables=et,t.FtTypographyCaption=ft,t.FtTypographyCaptionCssVariables=Y,t.FtTypographyCssVariables=L,t.FtTypographyOverline=pt,t.FtTypographyOverlineCssVariables=it,t.FtTypographyStyles=gt,t.FtTypographySubtitle1=rt,t.FtTypographySubtitle1CssVariables=J,t.FtTypographySubtitle2=st,t.FtTypographySubtitle2CssVariables=Q,t.FtTypographyTitle=ot,t.FtTypographyTitleCssVariables=q,t.FtTypographyTitleDense=nt,t.FtTypographyTitleDenseCssVariables=D,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.litDecorators,ftGlobals.lit);
@@ -72,8 +72,17 @@ var tt,et;null==Y||Y(D,Z),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:g
72
72
  * Copyright 2020 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
74
  */
75
- const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:ct}),ut=new Map,dt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=pt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=ut.get(t))&&(s.raw=s,ut.set(t,e=s)),i=a}return t(e,...i)})(P);var yt,gt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};t.FtTypographyVariants=void 0,(yt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",yt.title_dense="title-dense",yt.subtitle1="subtitle1",yt.subtitle2="subtitle2",yt.body1="body1",yt.body2="body2",yt.caption="caption",yt.breadcrumb="breadcrumb",yt.overline="overline",yt.button="button";const vt=nt.extend("--ft-typography-font-family",rt.titleFont),mt=nt.extend("--ft-typography-font-family",rt.contentFont),bt={fontFamily:mt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},xt={fontFamily:nt.extend("--ft-typography-title-font-family",vt),fontSize:nt.extend("--ft-typography-title-font-size",bt.fontSize,"20px"),fontWeight:nt.extend("--ft-typography-title-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-letter-spacing",bt.letterSpacing,"0.15px"),lineHeight:nt.extend("--ft-typography-title-line-height",bt.lineHeight,"1.2"),textTransform:nt.extend("--ft-typography-title-text-transform",bt.textTransform,"inherit")},wt={fontFamily:nt.extend("--ft-typography-title-dense-font-family",vt),fontSize:nt.extend("--ft-typography-title-dense-font-size",bt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-title-dense-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-dense-letter-spacing",bt.letterSpacing,"0.105px"),lineHeight:nt.extend("--ft-typography-title-dense-line-height",bt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-title-dense-text-transform",bt.textTransform,"inherit")},Ot={fontFamily:nt.extend("--ft-typography-subtitle1-font-family",mt),fontSize:nt.extend("--ft-typography-subtitle1-font-size",bt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-subtitle1-font-weight",bt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-subtitle1-letter-spacing",bt.letterSpacing,"0.144px"),lineHeight:nt.extend("--ft-typography-subtitle1-line-height",bt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-subtitle1-text-transform",bt.textTransform,"inherit")},$t={fontFamily:nt.extend("--ft-typography-subtitle2-font-family",mt),fontSize:nt.extend("--ft-typography-subtitle2-font-size",bt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-subtitle2-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-subtitle2-letter-spacing",bt.letterSpacing,"0.098px"),lineHeight:nt.extend("--ft-typography-subtitle2-line-height",bt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-subtitle2-text-transform",bt.textTransform,"inherit")},St={fontFamily:nt.extend("--ft-typography-body1-font-family",mt),fontSize:nt.extend("--ft-typography-body1-font-size",bt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",bt.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",bt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-body1-text-transform",bt.textTransform,"inherit")},Nt={fontFamily:nt.extend("--ft-typography-body2-font-family",mt),fontSize:nt.extend("--ft-typography-body2-font-size",bt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-body2-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body2-letter-spacing",bt.letterSpacing,"0.252px"),lineHeight:nt.extend("--ft-typography-body2-line-height",bt.lineHeight,"1.4"),textTransform:nt.extend("--ft-typography-body2-text-transform",bt.textTransform,"inherit")},Et={fontFamily:nt.extend("--ft-typography-caption-font-family",mt),fontSize:nt.extend("--ft-typography-caption-font-size",bt.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",bt.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",bt.lineHeight,"1.33"),textTransform:nt.extend("--ft-typography-caption-text-transform",bt.textTransform,"inherit")},Rt={fontFamily:nt.extend("--ft-typography-breadcrumb-font-family",mt),fontSize:nt.extend("--ft-typography-breadcrumb-font-size",bt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-breadcrumb-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-breadcrumb-letter-spacing",bt.letterSpacing,"0.33px"),lineHeight:nt.extend("--ft-typography-breadcrumb-line-height",bt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-breadcrumb-text-transform",bt.textTransform,"inherit")},Ct={fontFamily:nt.extend("--ft-typography-overline-font-family",mt),fontSize:nt.extend("--ft-typography-overline-font-size",bt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-overline-font-weight",bt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-overline-letter-spacing",bt.letterSpacing,"1.5px"),lineHeight:nt.extend("--ft-typography-overline-line-height",bt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-overline-text-transform",bt.textTransform,"uppercase")},Mt={fontFamily:nt.extend("--ft-typography-button-font-family",mt),fontSize:nt.extend("--ft-typography-button-font-size",bt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-button-font-weight",bt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-button-letter-spacing",bt.letterSpacing,"1.246px"),lineHeight:nt.extend("--ft-typography-button-line-height",bt.lineHeight,"1.15"),textTransform:nt.extend("--ft-typography-button-text-transform",bt.textTransform,"uppercase")},Ft=h`
75
+ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:ct}),ut=new Map,dt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=pt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=ut.get(t))&&(s.raw=s,ut.set(t,e=s)),i=a}return t(e,...i)})(P);var yt;t.FtTypographyVariants=void 0,(yt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",yt.title_dense="title-dense",yt.subtitle1="subtitle1",yt.subtitle2="subtitle2",yt.body1="body1",yt.body2="body2",yt.caption="caption",yt.breadcrumb="breadcrumb",yt.overline="overline",yt.button="button";const gt=nt.extend("--ft-typography-font-family",rt.titleFont),vt=nt.extend("--ft-typography-font-family",rt.contentFont),mt={fontFamily:vt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},bt={fontFamily:nt.extend("--ft-typography-title-font-family",gt),fontSize:nt.extend("--ft-typography-title-font-size",mt.fontSize,"20px"),fontWeight:nt.extend("--ft-typography-title-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-letter-spacing",mt.letterSpacing,"0.15px"),lineHeight:nt.extend("--ft-typography-title-line-height",mt.lineHeight,"1.2"),textTransform:nt.extend("--ft-typography-title-text-transform",mt.textTransform,"inherit")},xt={fontFamily:nt.extend("--ft-typography-title-dense-font-family",gt),fontSize:nt.extend("--ft-typography-title-dense-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-title-dense-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-title-dense-letter-spacing",mt.letterSpacing,"0.105px"),lineHeight:nt.extend("--ft-typography-title-dense-line-height",mt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-title-dense-text-transform",mt.textTransform,"inherit")},wt={fontFamily:nt.extend("--ft-typography-subtitle1-font-family",vt),fontSize:nt.extend("--ft-typography-subtitle1-font-size",mt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-subtitle1-font-weight",mt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-subtitle1-letter-spacing",mt.letterSpacing,"0.144px"),lineHeight:nt.extend("--ft-typography-subtitle1-line-height",mt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-subtitle1-text-transform",mt.textTransform,"inherit")},Ot={fontFamily:nt.extend("--ft-typography-subtitle2-font-family",vt),fontSize:nt.extend("--ft-typography-subtitle2-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-subtitle2-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-subtitle2-letter-spacing",mt.letterSpacing,"0.098px"),lineHeight:nt.extend("--ft-typography-subtitle2-line-height",mt.lineHeight,"1.7"),textTransform:nt.extend("--ft-typography-subtitle2-text-transform",mt.textTransform,"inherit")},$t={fontFamily:nt.extend("--ft-typography-body1-font-family",vt),fontSize:nt.extend("--ft-typography-body1-font-size",mt.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",mt.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",mt.lineHeight,"1.5"),textTransform:nt.extend("--ft-typography-body1-text-transform",mt.textTransform,"inherit")},St={fontFamily:nt.extend("--ft-typography-body2-font-family",vt),fontSize:nt.extend("--ft-typography-body2-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-body2-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body2-letter-spacing",mt.letterSpacing,"0.252px"),lineHeight:nt.extend("--ft-typography-body2-line-height",mt.lineHeight,"1.4"),textTransform:nt.extend("--ft-typography-body2-text-transform",mt.textTransform,"inherit")},Nt={fontFamily:nt.extend("--ft-typography-caption-font-family",vt),fontSize:nt.extend("--ft-typography-caption-font-size",mt.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",mt.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",mt.lineHeight,"1.33"),textTransform:nt.extend("--ft-typography-caption-text-transform",mt.textTransform,"inherit")},Et={fontFamily:nt.extend("--ft-typography-breadcrumb-font-family",vt),fontSize:nt.extend("--ft-typography-breadcrumb-font-size",mt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-breadcrumb-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-breadcrumb-letter-spacing",mt.letterSpacing,"0.33px"),lineHeight:nt.extend("--ft-typography-breadcrumb-line-height",mt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-breadcrumb-text-transform",mt.textTransform,"inherit")},Rt={fontFamily:nt.extend("--ft-typography-overline-font-family",vt),fontSize:nt.extend("--ft-typography-overline-font-size",mt.fontSize,"10px"),fontWeight:nt.extend("--ft-typography-overline-font-weight",mt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-overline-letter-spacing",mt.letterSpacing,"1.5px"),lineHeight:nt.extend("--ft-typography-overline-line-height",mt.lineHeight,"1.6"),textTransform:nt.extend("--ft-typography-overline-text-transform",mt.textTransform,"uppercase")},Ct={fontFamily:nt.extend("--ft-typography-button-font-family",vt),fontSize:nt.extend("--ft-typography-button-font-size",mt.fontSize,"14px"),fontWeight:nt.extend("--ft-typography-button-font-weight",mt.fontWeight,"600"),letterSpacing:nt.extend("--ft-typography-button-letter-spacing",mt.letterSpacing,"1.246px"),lineHeight:nt.extend("--ft-typography-button-line-height",mt.lineHeight,"1.15"),textTransform:nt.extend("--ft-typography-button-text-transform",mt.textTransform,"uppercase")},Mt=h`
76
76
  .ft-typography--title {
77
+ font-family: ${bt.fontFamily};
78
+ font-size: ${bt.fontSize};
79
+ font-weight: ${bt.fontWeight};
80
+ letter-spacing: ${bt.letterSpacing};
81
+ line-height: ${bt.lineHeight};
82
+ text-transform: ${bt.textTransform};
83
+ }
84
+ `,Ft=h`
85
+ .ft-typography--title-dense {
77
86
  font-family: ${xt.fontFamily};
78
87
  font-size: ${xt.fontSize};
79
88
  font-weight: ${xt.fontWeight};
@@ -82,7 +91,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
82
91
  text-transform: ${xt.textTransform};
83
92
  }
84
93
  `,Ut=h`
85
- .ft-typography--title-dense {
94
+ .ft-typography--subtitle1 {
86
95
  font-family: ${wt.fontFamily};
87
96
  font-size: ${wt.fontSize};
88
97
  font-weight: ${wt.fontWeight};
@@ -91,7 +100,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
91
100
  text-transform: ${wt.textTransform};
92
101
  }
93
102
  `,Tt=h`
94
- .ft-typography--subtitle1 {
103
+ .ft-typography--subtitle2 {
95
104
  font-family: ${Ot.fontFamily};
96
105
  font-size: ${Ot.fontSize};
97
106
  font-weight: ${Ot.fontWeight};
@@ -99,8 +108,9 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
99
108
  line-height: ${Ot.lineHeight};
100
109
  text-transform: ${Ot.textTransform};
101
110
  }
111
+
102
112
  `,kt=h`
103
- .ft-typography--subtitle2 {
113
+ .ft-typography--body1 {
104
114
  font-family: ${$t.fontFamily};
105
115
  font-size: ${$t.fontSize};
106
116
  font-weight: ${$t.fontWeight};
@@ -108,9 +118,8 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
108
118
  line-height: ${$t.lineHeight};
109
119
  text-transform: ${$t.textTransform};
110
120
  }
111
-
112
121
  `,zt=h`
113
- .ft-typography--body1 {
122
+ .ft-typography--body2 {
114
123
  font-family: ${St.fontFamily};
115
124
  font-size: ${St.fontSize};
116
125
  font-weight: ${St.fontWeight};
@@ -119,7 +128,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
119
128
  text-transform: ${St.textTransform};
120
129
  }
121
130
  `,Lt=h`
122
- .ft-typography--body2 {
131
+ .ft-typography--caption {
123
132
  font-family: ${Nt.fontFamily};
124
133
  font-size: ${Nt.fontSize};
125
134
  font-weight: ${Nt.fontWeight};
@@ -128,7 +137,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
128
137
  text-transform: ${Nt.textTransform};
129
138
  }
130
139
  `,At=h`
131
- .ft-typography--caption {
140
+ .ft-typography--breadcrumb {
132
141
  font-family: ${Et.fontFamily};
133
142
  font-size: ${Et.fontSize};
134
143
  font-weight: ${Et.fontWeight};
@@ -137,7 +146,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
137
146
  text-transform: ${Et.textTransform};
138
147
  }
139
148
  `,Pt=h`
140
- .ft-typography--breadcrumb {
149
+ .ft-typography--overline {
141
150
  font-family: ${Rt.fontFamily};
142
151
  font-size: ${Rt.fontSize};
143
152
  font-weight: ${Rt.fontWeight};
@@ -146,7 +155,7 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
146
155
  text-transform: ${Rt.textTransform};
147
156
  }
148
157
  `,Wt=h`
149
- .ft-typography--overline {
158
+ .ft-typography--button {
150
159
  font-family: ${Ct.fontFamily};
151
160
  font-size: ${Ct.fontSize};
152
161
  font-weight: ${Ct.fontWeight};
@@ -155,23 +164,14 @@ const ct=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===ct)return null==t?void
155
164
  text-transform: ${Ct.textTransform};
156
165
  }
157
166
  `,Ht=h`
158
- .ft-typography--button {
159
- font-family: ${Mt.fontFamily};
160
- font-size: ${Mt.fontSize};
161
- font-weight: ${Mt.fontWeight};
162
- letter-spacing: ${Mt.letterSpacing};
163
- line-height: ${Mt.lineHeight};
164
- text-transform: ${Mt.textTransform};
167
+ .ft-typography {
168
+ vertical-align: inherit;
165
169
  }
166
- `;class jt extends ht{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?dt`
170
+ `;var jt,Bt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _t extends ht{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}render(){return this.element?dt`
167
171
  <${ft(this.element)}
168
172
  class="ft-typography ft-typography--${this.variant}">
169
173
  <slot></slot>
170
174
  </${ft(this.element)}>
171
175
  `:dt`
172
176
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
173
- `}}var Bt;jt.styles=[Ft,Ut,Tt,kt,zt,Lt,At,Pt,Wt,Ht,h`
174
- .ft-typography {
175
- vertical-align: inherit;
176
- }
177
- `],gt([i()],jt.prototype,"element",void 0),gt([i()],jt.prototype,"variant",void 0),(Bt="ft-typography",t=>{window.customElements.get(Bt)||window.customElements.define(Bt,t)})(jt),t.FtTypography=jt,t.FtTypographyBody1=zt,t.FtTypographyBody1CssVariables=St,t.FtTypographyBody2=Lt,t.FtTypographyBody2CssVariables=Nt,t.FtTypographyBreadcrumb=Pt,t.FtTypographyBreadcrumbCssVariables=Rt,t.FtTypographyButton=Ht,t.FtTypographyButtonCssVariables=Mt,t.FtTypographyCaption=At,t.FtTypographyCaptionCssVariables=Et,t.FtTypographyCssVariables=bt,t.FtTypographyOverline=Wt,t.FtTypographyOverlineCssVariables=Ct,t.FtTypographySubtitle1=Tt,t.FtTypographySubtitle1CssVariables=Ot,t.FtTypographySubtitle2=kt,t.FtTypographySubtitle2CssVariables=$t,t.FtTypographyTitle=Ft,t.FtTypographyTitleCssVariables=xt,t.FtTypographyTitleDense=Ut,t.FtTypographyTitleDenseCssVariables=wt,Object.defineProperty(t,"i",{value:!0})}({});
177
+ `}}_t.styles=[Mt,Ft,Ut,Tt,kt,zt,Lt,At,Pt,Wt,Ht],Bt([i()],_t.prototype,"element",void 0),Bt([i()],_t.prototype,"variant",void 0),(jt="ft-typography",t=>{window.customElements.get(jt)||window.customElements.define(jt,t)})(_t),t.FtTypography=_t,t.FtTypographyBody1=kt,t.FtTypographyBody1CssVariables=$t,t.FtTypographyBody2=zt,t.FtTypographyBody2CssVariables=St,t.FtTypographyBreadcrumb=At,t.FtTypographyBreadcrumbCssVariables=Et,t.FtTypographyButton=Wt,t.FtTypographyButtonCssVariables=Ct,t.FtTypographyCaption=Lt,t.FtTypographyCaptionCssVariables=Nt,t.FtTypographyCssVariables=mt,t.FtTypographyOverline=Pt,t.FtTypographyOverlineCssVariables=Rt,t.FtTypographyStyles=Ht,t.FtTypographySubtitle1=Ut,t.FtTypographySubtitle1CssVariables=wt,t.FtTypographySubtitle2=Tt,t.FtTypographySubtitle2CssVariables=Ot,t.FtTypographyTitle=Mt,t.FtTypographyTitleCssVariables=bt,t.FtTypographyTitleDense=Ft,t.FtTypographyTitleDenseCssVariables=xt,Object.defineProperty(t,"i",{value:!0})}({});
@@ -0,0 +1,17 @@
1
+ export declare enum FtTypographyVariants {
2
+ title = "title",
3
+ title_dense = "title-dense",
4
+ subtitle1 = "subtitle1",
5
+ subtitle2 = "subtitle2",
6
+ body1 = "body1",
7
+ body2 = "body2",
8
+ caption = "caption",
9
+ breadcrumb = "breadcrumb",
10
+ overline = "overline",
11
+ button = "button"
12
+ }
13
+ export interface FtTypographyProperties {
14
+ element?: string;
15
+ variant: FtTypographyVariants;
16
+ }
17
+ //# sourceMappingURL=ft-typography.properties.d.ts.map
@@ -0,0 +1,14 @@
1
+ export var FtTypographyVariants;
2
+ (function (FtTypographyVariants) {
3
+ FtTypographyVariants["title"] = "title";
4
+ FtTypographyVariants["title_dense"] = "title-dense";
5
+ FtTypographyVariants["subtitle1"] = "subtitle1";
6
+ FtTypographyVariants["subtitle2"] = "subtitle2";
7
+ FtTypographyVariants["body1"] = "body1";
8
+ FtTypographyVariants["body2"] = "body2";
9
+ FtTypographyVariants["caption"] = "caption";
10
+ FtTypographyVariants["breadcrumb"] = "breadcrumb";
11
+ FtTypographyVariants["overline"] = "overline";
12
+ FtTypographyVariants["button"] = "button";
13
+ })(FtTypographyVariants || (FtTypographyVariants = {}));
14
+ //# sourceMappingURL=ft-typography.properties.js.map
package/build/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from "./ft-typography";
2
+ export * from "./ft-typography.css";
3
+ export * from "./ft-typography.properties";
2
4
  //# sourceMappingURL=index.d.ts.map
package/build/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { customElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtTypography } from "./ft-typography";
3
3
  export * from "./ft-typography";
4
+ export * from "./ft-typography.css";
5
+ export * from "./ft-typography.properties";
4
6
  customElement("ft-typography")(FtTypography);
5
7
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-typography",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
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.3.12",
22
+ "@fluid-topics/ft-wc-utils": "0.3.13",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
25
+ "gitHead": "84b5fc920bc5d2bdb646b5da8815ad51caaf228e"
26
26
  }