@fluid-topics/ft-typography 0.1.2 → 0.1.3
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.
- package/build/ft-typography.d.ts +89 -9
- package/build/ft-typography.js +151 -61
- package/build/ft-typography.min.js +82 -94
- package/package.json +3 -3
package/build/ft-typography.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
1
|
+
import { FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export declare enum FtTypographyVariants {
|
|
3
3
|
title = "title",
|
|
4
4
|
title_dense = "title-dense",
|
|
@@ -15,14 +15,94 @@ export interface FtTypographyProperties {
|
|
|
15
15
|
element?: string;
|
|
16
16
|
variant: FtTypographyVariants;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
18
|
+
export declare const FtTypographyCssVariables: {
|
|
19
|
+
fontFamily: FtCssVariable;
|
|
20
|
+
fontSize: FtCssVariable;
|
|
21
|
+
fontWeight: FtCssVariable;
|
|
22
|
+
letterSpacing: FtCssVariable;
|
|
23
|
+
lineHeight: FtCssVariable;
|
|
24
|
+
textTransform: FtCssVariable;
|
|
25
|
+
};
|
|
26
|
+
export declare const FtTypographyTitleCssVariables: {
|
|
27
|
+
fontFamily: FtCssVariable;
|
|
28
|
+
fontSize: FtCssVariable;
|
|
29
|
+
fontWeight: FtCssVariable;
|
|
30
|
+
letterSpacing: FtCssVariable;
|
|
31
|
+
lineHeight: FtCssVariable;
|
|
32
|
+
textTransform: FtCssVariable;
|
|
33
|
+
};
|
|
34
|
+
export declare const FtTypographyTitleDenseCssVariables: {
|
|
35
|
+
fontFamily: FtCssVariable;
|
|
36
|
+
fontSize: FtCssVariable;
|
|
37
|
+
fontWeight: FtCssVariable;
|
|
38
|
+
letterSpacing: FtCssVariable;
|
|
39
|
+
lineHeight: FtCssVariable;
|
|
40
|
+
textTransform: FtCssVariable;
|
|
41
|
+
};
|
|
42
|
+
export declare const FtTypographySubtitle1CssVariables: {
|
|
43
|
+
fontFamily: FtCssVariable;
|
|
44
|
+
fontSize: FtCssVariable;
|
|
45
|
+
fontWeight: FtCssVariable;
|
|
46
|
+
letterSpacing: FtCssVariable;
|
|
47
|
+
lineHeight: FtCssVariable;
|
|
48
|
+
textTransform: FtCssVariable;
|
|
49
|
+
};
|
|
50
|
+
export declare const FtTypographySubtitle2CssVariables: {
|
|
51
|
+
fontFamily: FtCssVariable;
|
|
52
|
+
fontSize: FtCssVariable;
|
|
53
|
+
fontWeight: FtCssVariable;
|
|
54
|
+
letterSpacing: FtCssVariable;
|
|
55
|
+
lineHeight: FtCssVariable;
|
|
56
|
+
textTransform: FtCssVariable;
|
|
57
|
+
};
|
|
58
|
+
export declare const FtTypographyBody1CssVariables: {
|
|
59
|
+
fontFamily: FtCssVariable;
|
|
60
|
+
fontSize: FtCssVariable;
|
|
61
|
+
fontWeight: FtCssVariable;
|
|
62
|
+
letterSpacing: FtCssVariable;
|
|
63
|
+
lineHeight: FtCssVariable;
|
|
64
|
+
textTransform: FtCssVariable;
|
|
65
|
+
};
|
|
66
|
+
export declare const FtTypographyBody2CssVariables: {
|
|
67
|
+
fontFamily: FtCssVariable;
|
|
68
|
+
fontSize: FtCssVariable;
|
|
69
|
+
fontWeight: FtCssVariable;
|
|
70
|
+
letterSpacing: FtCssVariable;
|
|
71
|
+
lineHeight: FtCssVariable;
|
|
72
|
+
textTransform: FtCssVariable;
|
|
73
|
+
};
|
|
74
|
+
export declare const FtTypographyCaptionCssVariables: {
|
|
75
|
+
fontFamily: FtCssVariable;
|
|
76
|
+
fontSize: FtCssVariable;
|
|
77
|
+
fontWeight: FtCssVariable;
|
|
78
|
+
letterSpacing: FtCssVariable;
|
|
79
|
+
lineHeight: FtCssVariable;
|
|
80
|
+
textTransform: FtCssVariable;
|
|
81
|
+
};
|
|
82
|
+
export declare const FtTypographyBreadcrumbCssVariables: {
|
|
83
|
+
fontFamily: FtCssVariable;
|
|
84
|
+
fontSize: FtCssVariable;
|
|
85
|
+
fontWeight: FtCssVariable;
|
|
86
|
+
letterSpacing: FtCssVariable;
|
|
87
|
+
lineHeight: FtCssVariable;
|
|
88
|
+
textTransform: FtCssVariable;
|
|
89
|
+
};
|
|
90
|
+
export declare const FtTypographyOverlineCssVariables: {
|
|
91
|
+
fontFamily: FtCssVariable;
|
|
92
|
+
fontSize: FtCssVariable;
|
|
93
|
+
fontWeight: FtCssVariable;
|
|
94
|
+
letterSpacing: FtCssVariable;
|
|
95
|
+
lineHeight: FtCssVariable;
|
|
96
|
+
textTransform: FtCssVariable;
|
|
97
|
+
};
|
|
98
|
+
export declare const FtTypographyButtonCssVariables: {
|
|
99
|
+
fontFamily: FtCssVariable;
|
|
100
|
+
fontSize: FtCssVariable;
|
|
101
|
+
fontWeight: FtCssVariable;
|
|
102
|
+
letterSpacing: FtCssVariable;
|
|
103
|
+
lineHeight: FtCssVariable;
|
|
104
|
+
textTransform: FtCssVariable;
|
|
105
|
+
};
|
|
26
106
|
export declare const FtTypographyTitle: import("lit").CSSResult;
|
|
27
107
|
export declare const FtTypographyTitleDense: import("lit").CSSResult;
|
|
28
108
|
export declare const FtTypographySubtitle1: import("lit").CSSResult;
|
package/build/ft-typography.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css } from "lit";
|
|
8
8
|
import { html, unsafeStatic } from "lit/static-html.js";
|
|
9
9
|
import { property } from "lit/decorators.js";
|
|
10
|
-
import { customElement, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
|
+
import { customElement, designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
11
11
|
export var FtTypographyVariants;
|
|
12
12
|
(function (FtTypographyVariants) {
|
|
13
13
|
FtTypographyVariants["title"] = "title";
|
|
@@ -21,115 +21,205 @@ export var FtTypographyVariants;
|
|
|
21
21
|
FtTypographyVariants["overline"] = "overline";
|
|
22
22
|
FtTypographyVariants["button"] = "button";
|
|
23
23
|
})(FtTypographyVariants || (FtTypographyVariants = {}));
|
|
24
|
+
const titleFontFamily = FtCssVariable.extend("--ft-typography-font-family", designSystemVariables.titleFont);
|
|
25
|
+
const contentFontFamily = FtCssVariable.extend("--ft-typography-font-family", designSystemVariables.contentFont);
|
|
26
|
+
export const FtTypographyCssVariables = {
|
|
27
|
+
fontFamily: contentFontFamily,
|
|
28
|
+
fontSize: FtCssVariable.create("--ft-typography-font-size", "SIZE", "16px"),
|
|
29
|
+
fontWeight: FtCssVariable.create("--ft-typography-font-weight", "UNKNOWN", "normal"),
|
|
30
|
+
letterSpacing: FtCssVariable.create("--ft-typography-letter-spacing", "SIZE", "0.496px"),
|
|
31
|
+
lineHeight: FtCssVariable.create("--ft-typography-line-height", "SIZE", "24px"),
|
|
32
|
+
textTransform: FtCssVariable.create("--ft-typography-text-transform", "UNKNOWN", "inherit"),
|
|
33
|
+
};
|
|
34
|
+
export const FtTypographyTitleCssVariables = {
|
|
35
|
+
fontFamily: FtCssVariable.extend("--ft-typography-title-font-family", titleFontFamily),
|
|
36
|
+
fontSize: FtCssVariable.extend("--ft-typography-title-font-size", FtTypographyCssVariables.fontSize, "20px"),
|
|
37
|
+
fontWeight: FtCssVariable.extend("--ft-typography-title-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
38
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-title-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.15px"),
|
|
39
|
+
lineHeight: FtCssVariable.extend("--ft-typography-title-line-height", FtTypographyCssVariables.lineHeight, "24px"),
|
|
40
|
+
textTransform: FtCssVariable.extend("--ft-typography-title-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
41
|
+
};
|
|
42
|
+
export const FtTypographyTitleDenseCssVariables = {
|
|
43
|
+
fontFamily: FtCssVariable.extend("--ft-typography-title-dense-font-family", titleFontFamily),
|
|
44
|
+
fontSize: FtCssVariable.extend("--ft-typography-title-dense-font-size", FtTypographyCssVariables.fontSize, "14px"),
|
|
45
|
+
fontWeight: FtCssVariable.extend("--ft-typography-title-dense-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
46
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-title-dense-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.105px"),
|
|
47
|
+
lineHeight: FtCssVariable.extend("--ft-typography-title-dense-line-height", FtTypographyCssVariables.lineHeight, "24px"),
|
|
48
|
+
textTransform: FtCssVariable.extend("--ft-typography-title-dense-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
49
|
+
};
|
|
50
|
+
export const FtTypographySubtitle1CssVariables = {
|
|
51
|
+
fontFamily: FtCssVariable.extend("--ft-typography-subtitle1-font-family", contentFontFamily),
|
|
52
|
+
fontSize: FtCssVariable.extend("--ft-typography-subtitle1-font-size", FtTypographyCssVariables.fontSize, "16px"),
|
|
53
|
+
fontWeight: FtCssVariable.extend("--ft-typography-subtitle1-font-weight", FtTypographyCssVariables.fontWeight, "600"),
|
|
54
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.144px"),
|
|
55
|
+
lineHeight: FtCssVariable.extend("--ft-typography-subtitle1-line-height", FtTypographyCssVariables.lineHeight, "24px"),
|
|
56
|
+
textTransform: FtCssVariable.extend("--ft-typography-subtitle1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
57
|
+
};
|
|
58
|
+
export const FtTypographySubtitle2CssVariables = {
|
|
59
|
+
fontFamily: FtCssVariable.extend("--ft-typography-subtitle2-font-family", contentFontFamily),
|
|
60
|
+
fontSize: FtCssVariable.extend("--ft-typography-subtitle2-font-size", FtTypographyCssVariables.fontSize, "14px"),
|
|
61
|
+
fontWeight: FtCssVariable.extend("--ft-typography-subtitle2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
62
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.098px"),
|
|
63
|
+
lineHeight: FtCssVariable.extend("--ft-typography-subtitle2-line-height", FtTypographyCssVariables.lineHeight, "24px"),
|
|
64
|
+
textTransform: FtCssVariable.extend("--ft-typography-subtitle2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
65
|
+
};
|
|
66
|
+
export const FtTypographyBody1CssVariables = {
|
|
67
|
+
fontFamily: FtCssVariable.extend("--ft-typography-body1-font-family", contentFontFamily),
|
|
68
|
+
fontSize: FtCssVariable.extend("--ft-typography-body1-font-size", FtTypographyCssVariables.fontSize, "16px"),
|
|
69
|
+
fontWeight: FtCssVariable.extend("--ft-typography-body1-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
70
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-body1-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.496px"),
|
|
71
|
+
lineHeight: FtCssVariable.extend("--ft-typography-body1-line-height", FtTypographyCssVariables.lineHeight, "24px"),
|
|
72
|
+
textTransform: FtCssVariable.extend("--ft-typography-body1-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
73
|
+
};
|
|
74
|
+
export const FtTypographyBody2CssVariables = {
|
|
75
|
+
fontFamily: FtCssVariable.extend("--ft-typography-body2-font-family", contentFontFamily),
|
|
76
|
+
fontSize: FtCssVariable.extend("--ft-typography-body2-font-size", FtTypographyCssVariables.fontSize, "14px"),
|
|
77
|
+
fontWeight: FtCssVariable.extend("--ft-typography-body2-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
78
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-body2-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.252px"),
|
|
79
|
+
lineHeight: FtCssVariable.extend("--ft-typography-body2-line-height", FtTypographyCssVariables.lineHeight, "20px"),
|
|
80
|
+
textTransform: FtCssVariable.extend("--ft-typography-body2-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
81
|
+
};
|
|
82
|
+
export const FtTypographyCaptionCssVariables = {
|
|
83
|
+
fontFamily: FtCssVariable.extend("--ft-typography-caption-font-family", contentFontFamily),
|
|
84
|
+
fontSize: FtCssVariable.extend("--ft-typography-caption-font-size", FtTypographyCssVariables.fontSize, "12px"),
|
|
85
|
+
fontWeight: FtCssVariable.extend("--ft-typography-caption-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
86
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-caption-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.396px"),
|
|
87
|
+
lineHeight: FtCssVariable.extend("--ft-typography-caption-line-height", FtTypographyCssVariables.lineHeight, "16px"),
|
|
88
|
+
textTransform: FtCssVariable.extend("--ft-typography-caption-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
89
|
+
};
|
|
90
|
+
export const FtTypographyBreadcrumbCssVariables = {
|
|
91
|
+
fontFamily: FtCssVariable.extend("--ft-typography-breadcrumb-font-family", contentFontFamily),
|
|
92
|
+
fontSize: FtCssVariable.extend("--ft-typography-breadcrumb-font-size", FtTypographyCssVariables.fontSize, "10px"),
|
|
93
|
+
fontWeight: FtCssVariable.extend("--ft-typography-breadcrumb-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
94
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing", FtTypographyCssVariables.letterSpacing, "0.33px"),
|
|
95
|
+
lineHeight: FtCssVariable.extend("--ft-typography-breadcrumb-line-height", FtTypographyCssVariables.lineHeight, "16px"),
|
|
96
|
+
textTransform: FtCssVariable.extend("--ft-typography-breadcrumb-text-transform", FtTypographyCssVariables.textTransform, "inherit"),
|
|
97
|
+
};
|
|
98
|
+
export const FtTypographyOverlineCssVariables = {
|
|
99
|
+
fontFamily: FtCssVariable.extend("--ft-typography-overline-font-family", contentFontFamily),
|
|
100
|
+
fontSize: FtCssVariable.extend("--ft-typography-overline-font-size", FtTypographyCssVariables.fontSize, "10px"),
|
|
101
|
+
fontWeight: FtCssVariable.extend("--ft-typography-overline-font-weight", FtTypographyCssVariables.fontWeight, "normal"),
|
|
102
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-overline-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.5px"),
|
|
103
|
+
lineHeight: FtCssVariable.extend("--ft-typography-overline-line-height", FtTypographyCssVariables.lineHeight, "16px"),
|
|
104
|
+
textTransform: FtCssVariable.extend("--ft-typography-overline-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
|
|
105
|
+
};
|
|
106
|
+
export const FtTypographyButtonCssVariables = {
|
|
107
|
+
fontFamily: FtCssVariable.extend("--ft-typography-button-font-family", contentFontFamily),
|
|
108
|
+
fontSize: FtCssVariable.extend("--ft-typography-button-font-size", FtTypographyCssVariables.fontSize, "14px"),
|
|
109
|
+
fontWeight: FtCssVariable.extend("--ft-typography-button-font-weight", FtTypographyCssVariables.fontWeight, "600"),
|
|
110
|
+
letterSpacing: FtCssVariable.extend("--ft-typography-button-letter-spacing", FtTypographyCssVariables.letterSpacing, "1.246px"),
|
|
111
|
+
lineHeight: FtCssVariable.extend("--ft-typography-button-line-height", FtTypographyCssVariables.lineHeight, "16px"),
|
|
112
|
+
textTransform: FtCssVariable.extend("--ft-typography-button-text-transform", FtTypographyCssVariables.textTransform, "uppercase"),
|
|
113
|
+
};
|
|
24
114
|
// language=CSS
|
|
25
115
|
export const FtTypographyTitle = css `
|
|
26
116
|
.ft-typography--title {
|
|
27
|
-
font-family:
|
|
28
|
-
font-size:
|
|
29
|
-
font-weight:
|
|
30
|
-
letter-spacing:
|
|
31
|
-
line-height:
|
|
32
|
-
text-transform:
|
|
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};
|
|
33
123
|
}
|
|
34
124
|
`;
|
|
35
125
|
// language=CSS
|
|
36
126
|
export const FtTypographyTitleDense = css `
|
|
37
127
|
.ft-typography--title-dense {
|
|
38
|
-
font-family:
|
|
39
|
-
font-size:
|
|
40
|
-
font-weight:
|
|
41
|
-
letter-spacing:
|
|
42
|
-
line-height:
|
|
43
|
-
text-transform:
|
|
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};
|
|
44
134
|
}
|
|
45
135
|
`;
|
|
46
136
|
// language=CSS
|
|
47
137
|
export const FtTypographySubtitle1 = css `
|
|
48
138
|
.ft-typography--subtitle1 {
|
|
49
|
-
font-family:
|
|
50
|
-
font-size:
|
|
51
|
-
font-weight:
|
|
52
|
-
letter-spacing:
|
|
53
|
-
line-height:
|
|
54
|
-
text-transform:
|
|
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};
|
|
55
145
|
}
|
|
56
146
|
`;
|
|
57
147
|
// language=CSS
|
|
58
148
|
export const FtTypographySubtitle2 = css `
|
|
59
149
|
.ft-typography--subtitle2 {
|
|
60
|
-
font-family:
|
|
61
|
-
font-size:
|
|
62
|
-
font-weight:
|
|
63
|
-
letter-spacing:
|
|
64
|
-
line-height:
|
|
65
|
-
text-transform:
|
|
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};
|
|
66
156
|
}
|
|
67
157
|
|
|
68
158
|
`;
|
|
69
159
|
// language=CSS
|
|
70
160
|
export const FtTypographyBody1 = css `
|
|
71
161
|
.ft-typography--body1 {
|
|
72
|
-
font-family:
|
|
73
|
-
font-size:
|
|
74
|
-
font-weight:
|
|
75
|
-
letter-spacing:
|
|
76
|
-
line-height:
|
|
77
|
-
text-transform:
|
|
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};
|
|
78
168
|
}
|
|
79
169
|
`;
|
|
80
170
|
// language=CSS
|
|
81
171
|
export const FtTypographyBody2 = css `
|
|
82
172
|
.ft-typography--body2 {
|
|
83
|
-
font-family:
|
|
84
|
-
font-size:
|
|
85
|
-
font-weight:
|
|
86
|
-
letter-spacing:
|
|
87
|
-
line-height:
|
|
88
|
-
text-transform:
|
|
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};
|
|
89
179
|
}
|
|
90
180
|
`;
|
|
91
181
|
// language=CSS
|
|
92
182
|
export const FtTypographyCaption = css `
|
|
93
183
|
.ft-typography--caption {
|
|
94
|
-
font-family:
|
|
95
|
-
font-size:
|
|
96
|
-
font-weight:
|
|
97
|
-
letter-spacing:
|
|
98
|
-
line-height:
|
|
99
|
-
text-transform:
|
|
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};
|
|
100
190
|
}
|
|
101
191
|
`;
|
|
102
192
|
// language=CSS
|
|
103
193
|
export const FtTypographyBreadcrumb = css `
|
|
104
194
|
.ft-typography--breadcrumb {
|
|
105
|
-
font-family:
|
|
106
|
-
font-size:
|
|
107
|
-
font-weight:
|
|
108
|
-
letter-spacing:
|
|
109
|
-
line-height:
|
|
110
|
-
text-transform:
|
|
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};
|
|
111
201
|
}
|
|
112
202
|
`;
|
|
113
203
|
// language=CSS
|
|
114
204
|
export const FtTypographyOverline = css `
|
|
115
205
|
.ft-typography--overline {
|
|
116
|
-
font-family:
|
|
117
|
-
font-size:
|
|
118
|
-
font-weight:
|
|
119
|
-
letter-spacing:
|
|
120
|
-
line-height:
|
|
121
|
-
text-transform:
|
|
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};
|
|
122
212
|
}
|
|
123
213
|
`;
|
|
124
214
|
// language=CSS
|
|
125
215
|
export const FtTypographyButton = css `
|
|
126
216
|
.ft-typography--button {
|
|
127
|
-
font-family:
|
|
128
|
-
font-size:
|
|
129
|
-
font-weight:
|
|
130
|
-
letter-spacing:
|
|
131
|
-
line-height:
|
|
132
|
-
text-transform:
|
|
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};
|
|
133
223
|
}
|
|
134
224
|
`;
|
|
135
225
|
let FtTypography = class FtTypography extends FtLitElement {
|
|
@@ -4,152 +4,140 @@
|
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=n.get(this.cssText);return e&&void 0===t&&(n.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const r=t=>new o("string"==typeof t?t:t+"",i),s=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new o(n,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return r(e)})(t):t
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/;var h;const
|
|
12
|
+
*/;var h;const c=window.trustedTypes,f=c?c.emptyScript:"",p=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},d=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:d};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Eh(i,e);void 0!==n&&(this._$Eu.set(n,i),t.push(n))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=y){var n,o;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:u.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,n,o;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(o=null!==(n=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof a?a:null)&&void 0!==o?o:u.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
18
|
+
var v;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:g}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const m=globalThis.trustedTypes,b=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,O=`<${w}>`,S=document,$=(t="")=>S.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,M=/>/g,F=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,U=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),A=new WeakMap,W=S.createTreeWalker(S,129,null,!1),P=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=E;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===E?"!--"===l[1]?s=C:void 0!==l[1]?s=M:void 0!==l[2]?(z.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=F):void 0!==l[3]&&(s=F):s===F?">"===l[0]?(s=null!=o?o:E,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?F:'"'===l[3]?T:U):s===T||s===U?s=F:s===C||s===M?s=E:(s=F,o=void 0);const f=s===F&&t[e+1].startsWith("/>")?" ":"";r+=s===E?i+O:h>=0?(n.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+x+f):i+x+(-2===h?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(a):a,n]};class H{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,h]=P(t,e);if(this.el=H.createElement(l,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=W.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=h[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?Z:"@"===e[1]?J:K})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(z.test(n.tagName)){const t=n.textContent.split(x),e=t.length-1;if(e>0){n.textContent=m?m.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],$()),W.nextNode(),a.push({type:2,index:++o});n.append(t[e],$())}}}else if(8===n.nodeType)if(n.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function B(t,e,i=t,n){var o,r,s,a;if(e===k)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const h=N(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=B(t,l._$AS(t,e.values),l,n)),e}class _{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:S).importNode(i,!0);W.currentNode=o;let r=W.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new D(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new X(r,this,t)),this.v.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=W.nextNode(),s++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,n){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=B(this,t,e),N(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return R(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==L&&N(this._$AH)?this._$AA.nextSibling.data=t:this.S(S.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=H.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new _(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=A.get(t.strings);return void 0===e&&A.set(t.strings,e=new H(t)),e}A(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new D(this.M($()),this.M($()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class K{constructor(t,e,i,n,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=B(this,t,e,0),r=!N(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=B(this,n[i+s],e,s),a===k&&(a=this._$AH[s]),r||(r=!N(a)||a!==this._$AH[s]),a===L?t=L:t!==L&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.k(t)}k(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class I extends K{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===L?void 0:t}}const V=m?m.emptyScript:"";class Z extends K{constructor(){super(...arguments),this.type=4}k(t){t&&t!==L?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class J extends K{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=B(this,t,e,0))&&void 0!==i?i:L)===k)return;const n=this._$AH,o=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==L&&(n===L||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const q=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var G,Q;null==q||q(D
|
|
24
|
+
var G,Q;null==q||q(H,D),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class Y extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new D(e.insertBefore($(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return k}}Y.finalized=!0,Y._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:Y});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Y}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const et=t=>({_$litStatic$:t}),it=new Map,nt=(t=>(e,...i)=>{var n;const o=i.length;let r,s;const a=[],l=[];let h,c=0,f=!1;for(;c<o;){for(h=e[c];c<o&&void 0!==(s=i[c],r=null===(n=s)||void 0===n?void 0:n._$litStatic$);)h+=r+e[++c],f=!0;l.push(s),a.push(h),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=it.get(t))&&(a.raw=a,it.set(t,e=a)),i=l}return t(e,...i)})(j),ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/function rt(t){return(i
|
|
35
|
+
*/function rt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ot(t,e)
|
|
36
36
|
/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright 2021 Google LLC
|
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
*/}var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var i=0;return function(){return i<t.length?{done:!1,value:t[i++]}:{done:!0}}}function i(i){var e="undefined"!=typeof Symbol&&Symbol.iterator&&i[Symbol.iterator];return e?e.call(i):{next:t(i)}}function e(t){if(!(t instanceof Array)){t=i(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function i(){}return i.prototype=t,new i};var r,o=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<t.length;++i){var e=t[i];if(e&&e.Math==Math)return e}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(i,e,n){return i=t(i,e),n&&Reflect.setPrototypeOf(i,n.prototype),i}}return function(t,i,e){return void 0===e&&(e=t),e=n(e.prototype||Object.prototype),Function.prototype.apply.call(t,e,i)||e}}();if("function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var a;t:{var h={};try{h.__proto__={a:!0},a=h.a;break t}catch(t){}a=!1}r=a?function(t,i){if(t.__proto__=i,t.__proto__!==i)throw new TypeError(t+" is not extensible");return t}:null}var l=r;if(!ShadowRoot.prototype.createElement){var f,p=window.HTMLElement,u=window.customElements.define,c=window.customElements.get,y=window.customElements,v=new WeakMap,d=new WeakMap,g=new WeakMap,m=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,e){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(e))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=e.prototype.attributeChangedCallback,r=new Set(e.observedAttributes||[]);if(b(e,r,n),n={g:e,connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,adoptedCallback:e.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:e.formAssociated,formAssociatedCallback:e.prototype.formAssociatedCallback,formDisabledCallback:e.prototype.formDisabledCallback,formResetCallback:e.prototype.formResetCallback,formStateRestoreCallback:e.prototype.formStateRestoreCallback,observedAttributes:r},this.l.set(t,n),this.o.set(e,n),(r=c.call(y,t))||(r=w(t),u.call(y,t,r)),this===window.customElements&&(g.set(e,n),n.s=r),r=this.h.get(t)){this.h.delete(t);for(var o=(r=i(r)).next();!o.done;o=r.next())o=o.value,d.delete(o),S(o,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(e),this.i.delete(t)),e},window.CustomElementRegistry.prototype.upgrade=function(){O.push(this),y.upgrade.apply(y,arguments),O.pop()},window.CustomElementRegistry.prototype.get=function(t){var i;return null==(i=this.l.get(t))?void 0:i.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var i=this.j(t);if(void 0!==i)return Promise.resolve(i.g);var e=this.i.get(t);return void 0===e&&((e={}).promise=new Promise((function(t){return e.resolve=t})),this.i.set(t,e)),e.promise},window.CustomElementRegistry.prototype.m=function(t,i,e){var n=this.h.get(i);n||this.h.set(i,n=new Set),e?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=f;if(t)return f=void 0,t;var i=g.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],i.s),Object.setPrototypeOf(t,this.constructor.prototype),v.set(t,i),t},window.HTMLElement.prototype=p.prototype;var w=function(t){function i(){var i=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);t:{var e=i.getRootNode();if(!(e===document||e instanceof ShadowRoot)){if((e=O[O.length-1])instanceof CustomElementRegistry){var n=e;break t}(e=e.getRootNode())===document||e instanceof ShadowRoot||(e=(null==(n=m.get(e))?void 0:n.getRootNode())||document)}n=e.customElements}return(e=(n=n||window.customElements).j(t))?S(i,e):d.set(i,n),i}return o.Object.defineProperty(i,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),i.prototype.connectedCallback=function(){var i=v.get(this);i?i.connectedCallback&&i.connectedCallback.apply(this,arguments):d.get(this).m(this,t,!0)},i.prototype.disconnectedCallback=function(){var i=v.get(this);i?i.disconnectedCallback&&i.disconnectedCallback.apply(this,arguments):d.get(this).m(this,t,!1)},i.prototype.adoptedCallback=function(){var t,i;null==(t=v.get(this))||null==(i=t.adoptedCallback)||i.apply(this,arguments)},i.prototype.formAssociatedCallback=function(){var t,i=v.get(this);i&&i.formAssociated&&(null==i||null==(t=i.formAssociatedCallback)||t.apply(this,arguments))},i.prototype.formDisabledCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formDisabledCallback)||t.apply(this,arguments))},i.prototype.formResetCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formResetCallback)||t.apply(this,arguments))},i.prototype.formStateRestoreCallback=function(){var t,i=v.get(this);null!=i&&i.formAssociated&&(null==i||null==(t=i.formStateRestoreCallback)||t.apply(this,arguments))},i},b=function(t,i,e){if(0!==i.size&&void 0!==e){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){if(t=t.toLowerCase(),i.has(t)){var o=this.getAttribute(t);n.call(this,t,r),e.call(this,t,o,r)}else n.call(this,t,r)});var r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),i.has(t)){var n=this.getAttribute(t);r.call(this,t),e.call(this,t,n,null)}else r.call(this,t)})}},x=function(t){var i=Object.getPrototypeOf(t);if(i!==window.HTMLElement)return i===p?Object.setPrototypeOf(t,window.HTMLElement):x(i)},S=function(t,i,e){e=void 0!==e&&e,Object.setPrototypeOf(t,i.g.prototype),v.set(t,i),f=t;try{new i.g}catch(t){x(i.g),new i.g}i.observedAttributes.forEach((function(e){t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var i=$.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};var O=[document],E=function(t,i,e){var n=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){O.push(this);var t=n.apply(e||this,arguments);return void 0!==t&&m.set(t,this),O.pop(),t}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");var j=function(t){var i=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},i,{set:function(t){O.push(this),i.set.call(this,t),O.pop()}}))};if(j(Element),j(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,z=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];return i=z.call.apply(z,[this].concat(e(i))),C.set(i,this),i},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var i=window.ElementInternals.prototype,n=i[t];i[t]=function(t){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];if(r=C.get(this),!0!==v.get(r).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(e(i)))}}));var M=function(t){var i=s(Array,[].concat(e(t)),this.constructor);return i.h=t,i},A=M,k=Array;if(A.prototype=n(k.prototype),A.prototype.constructor=A,l)l(A,k);else for(var T in k)if("prototype"!=T)if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(k,T);R&&Object.defineProperty(A,T,R)}else A[T]=k[T];A.u=k.prototype,o.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var _=function(t){var i=this,e=new Map;t.forEach((function(t,n){var r=t.getAttribute("name"),o=e.get(r)||[];i[+n]=t,o.push(t),e.set(r,o)})),this.length=t.length,e.forEach((function(t,e){t&&(i[e]=1===t.length?t[0]:new M(t))}))};_.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),e=[],n=(t=i(t)).next();!n.done;n=t.next()){n=n.value;var r=v.get(n);r&&!0!==r.formAssociated||e.push(n)}return new _(e)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(ht){const t=window.customElements.define;window.customElements.define=(i,e,n)=>{try{t.bind(window.customElements)(i,e,n)}catch(t){console.warn(i,e,n,t)}}}class st extends(
|
|
40
|
+
*/}var st;null===(st=window.HTMLSlotElement)||void 0===st||st.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,n=[];!(i=t.next()).done;)n.push(i.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,n){return e=t(e,i),n&&Reflect.setPrototypeOf(e,n.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=n(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var h=o;if(!ShadowRoot.prototype.createElement){var c,f=window.HTMLElement,p=window.customElements.define,u=window.customElements.get,d=window.customElements,y=new WeakMap,g=new WeakMap,v=new WeakMap,m=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,n),n={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,n),this.o.set(i,n),(o=u.call(d,t))||(o=b(t),p.call(d,t,o)),this===window.customElements&&(v.set(i,n),n.s=o),o=this.h.get(t)){this.h.delete(t);for(var r=(o=e(o)).next();!r.done;r=o.next())r=r.value,g.delete(r),O(r,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){$.push(this),d.upgrade.apply(d,arguments),$.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var n=this.h.get(e);n||this.h.set(e,n=new Set),i?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=c;if(t)return c=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(f,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),y.set(t,e),t},window.HTMLElement.prototype=f.prototype;var b=function(t){function e(){var e=Reflect.construct(f,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=$[$.length-1])instanceof CustomElementRegistry){var n=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(n=m.get(i))?void 0:n.getRootNode())||document)}n=i.customElements}return(i=(n=n||window.customElements).j(t))?O(e,i):g.set(e,n),e}return r.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=y.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):g.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=y.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):g.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=y.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=y.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);n.call(this,t,o),i.call(this,t,r,o)}else n.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);o.call(this,t),i.call(this,t,n,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===f?Object.setPrototypeOf(t,window.HTMLElement):w(e)},O=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),y.set(t,e),c=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=S.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var $=[document],N=function(t,e,i){var n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){$.push(this);var t=n.apply(i||this,arguments);return void 0!==t&&m.set(t,this),$.pop(),t}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");var R=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){$.push(this),e.set.call(this,t),$.pop()}}))};if(R(Element),R(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return e=C.call.apply(C,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,n=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=E.get(this),!0!==y.get(o).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(i(e)))}}));var M=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},F=M,U=Array;if(F.prototype=n(U.prototype),F.prototype.constructor=F,h)h(F,U);else for(var T in U)if("prototype"!=T)if(Object.defineProperties){var z=Object.getOwnPropertyDescriptor(U,T);z&&Object.defineProperty(F,T,z)}else F[T]=U[T];F.u=U.prototype,r.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var j=function(t){var e=this,i=new Map;t.forEach((function(t,n){var o=t.getAttribute("name"),r=i.get(o)||[];e[+n]=t,r.push(t),i.set(o,r)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new M(t))}))};j.prototype.namedItem=function(t){return this[t]};var k=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=k.get.call(this,[]),i=[],n=(t=e(t)).next();!n.done;n=t.next()){n=n.value;var o=y.get(n);o&&!0!==o.formAssociated||i.push(n)}return new j(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,n)=>{try{e.bind(window.customElements)(t,i,n)}catch(e){console.warn(t,i,n,e)}}}class at{constructor(t,e,i,n,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=n,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new at(t,e,void 0,i)}static extend(t,e,i){return new at(t,e.category,e,i)}static external(t,e){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${r(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):r(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const lt={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:at.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:at.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:at.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:at.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:at.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:at.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:at.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:at.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:at.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
41
41
|
/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2021 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/
|
|
46
|
-
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:n}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const r=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return s(r,this.constructor.elementStyles),r}}}(X)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),R`${t.map((t=>R`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}o`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`
|
|
47
|
-
/**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright 2017 Google LLC
|
|
50
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/;const at=2;
|
|
52
|
-
/**
|
|
53
|
-
* @license
|
|
54
|
-
* Copyright 2017 Google LLC
|
|
55
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/
|
|
57
|
-
class ht extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}{constructor(t){if(super(t),this.it=U,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===U||null==t)return this.vt=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const i=[t];return i.raw=i,this.vt={_$litType$:this.constructor.resultType,strings:i,values:[]}}}var lt,ft;ht.directiveName="unsafeHTML",ht.resultType=1,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(lt=window.safari)||void 0===lt?void 0:lt.pushNotification)||void 0===ft||ft.toString());var pt,ut=function(t,i,e,n){for(var r,o=arguments.length,s=o<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(i,e,s):r(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};t.FtTypographyVariants=void 0,(pt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",pt.title_dense="title-dense",pt.subtitle1="subtitle1",pt.subtitle2="subtitle2",pt.body1="body1",pt.body2="body2",pt.caption="caption",pt.breadcrumb="breadcrumb",pt.overline="overline",pt.button="button";const ct=o`
|
|
45
|
+
*/class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`${t.map((t=>j`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ct,ft;s`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===ft||ft.toString());var pt,ut=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};t.FtTypographyVariants=void 0,(pt=t.FtTypographyVariants||(t.FtTypographyVariants={})).title="title",pt.title_dense="title-dense",pt.subtitle1="subtitle1",pt.subtitle2="subtitle2",pt.body1="body1",pt.body2="body2",pt.caption="caption",pt.breadcrumb="breadcrumb",pt.overline="overline",pt.button="button";const dt=at.extend("--ft-typography-font-family",lt.titleFont),yt=at.extend("--ft-typography-font-family",lt.contentFont),gt={fontFamily:yt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt={fontFamily:at.extend("--ft-typography-title-font-family",dt),fontSize:at.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),fontWeight:at.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),lineHeight:at.extend("--ft-typography-title-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit")},mt={fontFamily:at.extend("--ft-typography-title-dense-font-family",dt),fontSize:at.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),lineHeight:at.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit")},bt={fontFamily:at.extend("--ft-typography-subtitle1-font-family",yt),fontSize:at.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),lineHeight:at.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit")},xt={fontFamily:at.extend("--ft-typography-subtitle2-font-family",yt),fontSize:at.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),lineHeight:at.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit")},wt={fontFamily:at.extend("--ft-typography-body1-font-family",yt),fontSize:at.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",gt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit")},Ot={fontFamily:at.extend("--ft-typography-body2-font-family",yt),fontSize:at.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",gt.lineHeight,"20px"),textTransform:at.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit")},St={fontFamily:at.extend("--ft-typography-caption-font-family",yt),fontSize:at.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit")},$t={fontFamily:at.extend("--ft-typography-breadcrumb-font-family",yt),fontSize:at.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),lineHeight:at.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit")},Nt={fontFamily:at.extend("--ft-typography-overline-font-family",yt),fontSize:at.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),fontWeight:at.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),lineHeight:at.extend("--ft-typography-overline-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase")},Rt={fontFamily:at.extend("--ft-typography-button-font-family",yt),fontSize:at.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),letterSpacing:at.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),lineHeight:at.extend("--ft-typography-button-line-height",gt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase")},Et=s`
|
|
58
46
|
.ft-typography--title {
|
|
59
|
-
font-family:
|
|
60
|
-
font-size:
|
|
61
|
-
font-weight:
|
|
62
|
-
letter-spacing:
|
|
63
|
-
line-height:
|
|
64
|
-
text-transform:
|
|
47
|
+
font-family: ${vt.fontFamily};
|
|
48
|
+
font-size: ${vt.fontSize};
|
|
49
|
+
font-weight: ${vt.fontWeight};
|
|
50
|
+
letter-spacing: ${vt.letterSpacing};
|
|
51
|
+
line-height: ${vt.lineHeight};
|
|
52
|
+
text-transform: ${vt.textTransform};
|
|
65
53
|
}
|
|
66
|
-
`,
|
|
54
|
+
`,Ct=s`
|
|
67
55
|
.ft-typography--title-dense {
|
|
68
|
-
font-family:
|
|
69
|
-
font-size:
|
|
70
|
-
font-weight:
|
|
71
|
-
letter-spacing:
|
|
72
|
-
line-height:
|
|
73
|
-
text-transform:
|
|
56
|
+
font-family: ${mt.fontFamily};
|
|
57
|
+
font-size: ${mt.fontSize};
|
|
58
|
+
font-weight: ${mt.fontWeight};
|
|
59
|
+
letter-spacing: ${mt.letterSpacing};
|
|
60
|
+
line-height: ${mt.lineHeight};
|
|
61
|
+
text-transform: ${mt.textTransform};
|
|
74
62
|
}
|
|
75
|
-
`,
|
|
63
|
+
`,Mt=s`
|
|
76
64
|
.ft-typography--subtitle1 {
|
|
77
|
-
font-family:
|
|
78
|
-
font-size:
|
|
79
|
-
font-weight:
|
|
80
|
-
letter-spacing:
|
|
81
|
-
line-height:
|
|
82
|
-
text-transform:
|
|
65
|
+
font-family: ${bt.fontFamily};
|
|
66
|
+
font-size: ${bt.fontSize};
|
|
67
|
+
font-weight: ${bt.fontWeight};
|
|
68
|
+
letter-spacing: ${bt.letterSpacing};
|
|
69
|
+
line-height: ${bt.lineHeight};
|
|
70
|
+
text-transform: ${bt.textTransform};
|
|
83
71
|
}
|
|
84
|
-
`,
|
|
72
|
+
`,Ft=s`
|
|
85
73
|
.ft-typography--subtitle2 {
|
|
86
|
-
font-family:
|
|
87
|
-
font-size:
|
|
88
|
-
font-weight:
|
|
89
|
-
letter-spacing:
|
|
90
|
-
line-height:
|
|
91
|
-
text-transform:
|
|
74
|
+
font-family: ${xt.fontFamily};
|
|
75
|
+
font-size: ${xt.fontSize};
|
|
76
|
+
font-weight: ${xt.fontWeight};
|
|
77
|
+
letter-spacing: ${xt.letterSpacing};
|
|
78
|
+
line-height: ${xt.lineHeight};
|
|
79
|
+
text-transform: ${xt.textTransform};
|
|
92
80
|
}
|
|
93
81
|
|
|
94
|
-
`,
|
|
82
|
+
`,Ut=s`
|
|
95
83
|
.ft-typography--body1 {
|
|
96
|
-
font-family:
|
|
97
|
-
font-size:
|
|
98
|
-
font-weight:
|
|
99
|
-
letter-spacing:
|
|
100
|
-
line-height:
|
|
101
|
-
text-transform:
|
|
84
|
+
font-family: ${wt.fontFamily};
|
|
85
|
+
font-size: ${wt.fontSize};
|
|
86
|
+
font-weight: ${wt.fontWeight};
|
|
87
|
+
letter-spacing: ${wt.letterSpacing};
|
|
88
|
+
line-height: ${wt.lineHeight};
|
|
89
|
+
text-transform: ${wt.textTransform};
|
|
102
90
|
}
|
|
103
|
-
`,
|
|
91
|
+
`,Tt=s`
|
|
104
92
|
.ft-typography--body2 {
|
|
105
|
-
font-family:
|
|
106
|
-
font-size:
|
|
107
|
-
font-weight:
|
|
108
|
-
letter-spacing:
|
|
109
|
-
line-height:
|
|
110
|
-
text-transform:
|
|
93
|
+
font-family: ${Ot.fontFamily};
|
|
94
|
+
font-size: ${Ot.fontSize};
|
|
95
|
+
font-weight: ${Ot.fontWeight};
|
|
96
|
+
letter-spacing: ${Ot.letterSpacing};
|
|
97
|
+
line-height: ${Ot.lineHeight};
|
|
98
|
+
text-transform: ${Ot.textTransform};
|
|
111
99
|
}
|
|
112
|
-
`,
|
|
100
|
+
`,zt=s`
|
|
113
101
|
.ft-typography--caption {
|
|
114
|
-
font-family:
|
|
115
|
-
font-size:
|
|
116
|
-
font-weight:
|
|
117
|
-
letter-spacing:
|
|
118
|
-
line-height:
|
|
119
|
-
text-transform:
|
|
102
|
+
font-family: ${St.fontFamily};
|
|
103
|
+
font-size: ${St.fontSize};
|
|
104
|
+
font-weight: ${St.fontWeight};
|
|
105
|
+
letter-spacing: ${St.letterSpacing};
|
|
106
|
+
line-height: ${St.lineHeight};
|
|
107
|
+
text-transform: ${St.textTransform};
|
|
120
108
|
}
|
|
121
|
-
`,
|
|
109
|
+
`,jt=s`
|
|
122
110
|
.ft-typography--breadcrumb {
|
|
123
|
-
font-family:
|
|
124
|
-
font-size:
|
|
125
|
-
font-weight:
|
|
126
|
-
letter-spacing:
|
|
127
|
-
line-height:
|
|
128
|
-
text-transform:
|
|
111
|
+
font-family: ${$t.fontFamily};
|
|
112
|
+
font-size: ${$t.fontSize};
|
|
113
|
+
font-weight: ${$t.fontWeight};
|
|
114
|
+
letter-spacing: ${$t.letterSpacing};
|
|
115
|
+
line-height: ${$t.lineHeight};
|
|
116
|
+
text-transform: ${$t.textTransform};
|
|
129
117
|
}
|
|
130
|
-
`,
|
|
118
|
+
`,kt=s`
|
|
131
119
|
.ft-typography--overline {
|
|
132
|
-
font-family:
|
|
133
|
-
font-size:
|
|
134
|
-
font-weight:
|
|
135
|
-
letter-spacing:
|
|
136
|
-
line-height:
|
|
137
|
-
text-transform:
|
|
120
|
+
font-family: ${Nt.fontFamily};
|
|
121
|
+
font-size: ${Nt.fontSize};
|
|
122
|
+
font-weight: ${Nt.fontWeight};
|
|
123
|
+
letter-spacing: ${Nt.letterSpacing};
|
|
124
|
+
line-height: ${Nt.lineHeight};
|
|
125
|
+
text-transform: ${Nt.textTransform};
|
|
138
126
|
}
|
|
139
|
-
`,
|
|
127
|
+
`,Lt=s`
|
|
140
128
|
.ft-typography--button {
|
|
141
|
-
font-family:
|
|
142
|
-
font-size:
|
|
143
|
-
font-weight:
|
|
144
|
-
letter-spacing:
|
|
145
|
-
line-height:
|
|
146
|
-
text-transform:
|
|
129
|
+
font-family: ${Rt.fontFamily};
|
|
130
|
+
font-size: ${Rt.fontSize};
|
|
131
|
+
font-weight: ${Rt.fontWeight};
|
|
132
|
+
letter-spacing: ${Rt.letterSpacing};
|
|
133
|
+
line-height: ${Rt.lineHeight};
|
|
134
|
+
text-transform: ${Rt.textTransform};
|
|
147
135
|
}
|
|
148
|
-
`;var
|
|
149
|
-
<${
|
|
136
|
+
`;var At;t.FtTypography=class extends ht{constructor(){super(...arguments),this.variant=t.FtTypographyVariants.body1}getStyles(){return[Et,Ct,Mt,Ft,Ut,Tt,zt,jt,kt,Lt]}getTemplate(){return this.element?nt`
|
|
137
|
+
<${et(this.element)}
|
|
150
138
|
class="ft-typography ft-typography--${this.variant}">
|
|
151
139
|
<slot></slot>
|
|
152
|
-
</${
|
|
153
|
-
`:
|
|
140
|
+
</${et(this.element)}>
|
|
141
|
+
`:nt`
|
|
154
142
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
155
|
-
`}},ut([rt()],t.FtTypography.prototype,"element",void 0),ut([rt()],t.FtTypography.prototype,"variant",void 0),t.FtTypography=ut([(
|
|
143
|
+
`}},ut([rt()],t.FtTypography.prototype,"element",void 0),ut([rt()],t.FtTypography.prototype,"variant",void 0),t.FtTypography=ut([(At="ft-typography",t=>{window.customElements.get(At)||window.customElements.define(At,t)})],t.FtTypography),t.FtTypographyBody1=Ut,t.FtTypographyBody1CssVariables=wt,t.FtTypographyBody2=Tt,t.FtTypographyBody2CssVariables=Ot,t.FtTypographyBreadcrumb=jt,t.FtTypographyBreadcrumbCssVariables=$t,t.FtTypographyButton=Lt,t.FtTypographyButtonCssVariables=Rt,t.FtTypographyCaption=zt,t.FtTypographyCaptionCssVariables=St,t.FtTypographyCssVariables=gt,t.FtTypographyOverline=kt,t.FtTypographyOverlineCssVariables=Nt,t.FtTypographySubtitle1=Mt,t.FtTypographySubtitle1CssVariables=bt,t.FtTypographySubtitle2=Ft,t.FtTypographySubtitle2CssVariables=xt,t.FtTypographyTitle=Et,t.FtTypographyTitleCssVariables=vt,t.FtTypographyTitleDense=Ct,t.FtTypographyTitleDenseCssVariables=mt,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-typography",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "^0.1.3",
|
|
23
23
|
"lit": "^2.0.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "2fa53411ddb04226db4922bd0ad671fb2aed389c"
|
|
26
26
|
}
|