@momentum-design/components 0.7.11 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/index.js +17 -17
- package/dist/browser/index.js.map +3 -3
- package/dist/components/avatar/avatar.constants.d.ts +2 -2
- package/dist/components/badge/badge.component.d.ts +4 -17
- package/dist/components/badge/badge.component.js +20 -40
- package/dist/components/badge/badge.constants.d.ts +27 -20
- package/dist/components/badge/badge.constants.js +5 -1
- package/dist/components/badge/badge.types.d.ts +4 -0
- package/dist/components/badge/badge.types.js +1 -0
- package/dist/components/icon/icon.constants.d.ts +2 -2
- package/dist/components/iconprovider/iconprovider.constants.d.ts +3 -3
- package/dist/components/presence/presence.component.d.ts +3 -2
- package/dist/components/presence/presence.component.js +2 -2
- package/dist/components/presence/presence.constants.d.ts +23 -23
- package/dist/components/presence/presence.types.d.ts +4 -0
- package/dist/components/presence/presence.types.js +1 -0
- package/dist/components/text/text.component.d.ts +3 -2
- package/dist/components/text/text.component.js +2 -2
- package/dist/components/text/text.constants.d.ts +43 -43
- package/dist/components/text/text.types.d.ts +4 -0
- package/dist/components/text/text.types.js +1 -0
- package/dist/components/themeprovider/themeprovider.constants.d.ts +1 -1
- package/dist/custom-elements.json +34 -87
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CSSResult, PropertyValues, TemplateResult } from 'lit';
|
2
2
|
import { Component } from '../../models';
|
3
|
+
import type { IconVariant, BadgeType } from './badge.types';
|
3
4
|
/**
|
4
5
|
* The `mdc-badge` component is a versatile UI element used to
|
5
6
|
* display dot, icons, counters, success, warning and error type badge.
|
@@ -27,7 +28,7 @@ declare class Badge extends Component {
|
|
27
28
|
* Type of the badge
|
28
29
|
* Can be `dot` (notification) , `icon`, `counter`, `success`, `warning` or `error`.
|
29
30
|
*/
|
30
|
-
type?:
|
31
|
+
type?: BadgeType;
|
31
32
|
/**
|
32
33
|
* Name of the icon (= filename).
|
33
34
|
*
|
@@ -39,7 +40,7 @@ declare class Badge extends Component {
|
|
39
40
|
* It defines the background and foreground color of the icon.
|
40
41
|
* @default primary
|
41
42
|
*/
|
42
|
-
variant:
|
43
|
+
variant: IconVariant;
|
43
44
|
/**
|
44
45
|
* Counter is the number which can be provided in the badge.
|
45
46
|
*/
|
@@ -75,31 +76,17 @@ declare class Badge extends Component {
|
|
75
76
|
/**
|
76
77
|
* Method to generate the badge icon.
|
77
78
|
* @param iconName - the name of the icon from the icon set
|
78
|
-
* @param
|
79
|
-
* @param iconVariant - the variant of the icon badge.
|
80
|
-
* @param type - the type of the badge.
|
79
|
+
* @param backgroundClassPostfix - postfix for the class to style the badge icon.
|
81
80
|
* @returns the template result of the icon.
|
82
81
|
*/
|
83
82
|
private getBadgeIcon;
|
84
83
|
/**
|
85
84
|
* Method to generate the badge dot template.
|
86
|
-
* @param overlay - boolean indicating whether the badge should have an overlay.
|
87
85
|
* @returns the template result of the dot with mdc-badge-dot class.
|
88
86
|
*/
|
89
87
|
private getBadgeDot;
|
90
|
-
/**
|
91
|
-
* This method generates the CSS classes for the badge icon.
|
92
|
-
* @param overlay - boolean indicating whether the badge should have an overlay.
|
93
|
-
* @param iconVariant - the variant of the icon badge.
|
94
|
-
* @param type - the type of the badge.
|
95
|
-
* @returns - an object containing the CSS classes for the icon.
|
96
|
-
*/
|
97
|
-
private getIconClasses;
|
98
88
|
/**
|
99
89
|
* Method to generate the badge text and counter template.
|
100
|
-
* @param maxCounter - the maximum limit which can be displayed on the badge
|
101
|
-
* @param overlay - whether the badge should have an overlay.
|
102
|
-
* @param counter - the number to be displayed on the badge
|
103
90
|
* @returns the template result of the text.
|
104
91
|
*/
|
105
92
|
private getBadgeCounterText;
|
@@ -90,15 +90,16 @@ class Badge extends Component {
|
|
90
90
|
/**
|
91
91
|
* Method to generate the badge icon.
|
92
92
|
* @param iconName - the name of the icon from the icon set
|
93
|
-
* @param
|
94
|
-
* @param iconVariant - the variant of the icon badge.
|
95
|
-
* @param type - the type of the badge.
|
93
|
+
* @param backgroundClassPostfix - postfix for the class to style the badge icon.
|
96
94
|
* @returns the template result of the icon.
|
97
95
|
*/
|
98
|
-
getBadgeIcon(iconName,
|
96
|
+
getBadgeIcon(iconName, backgroundClassPostfix) {
|
99
97
|
return html `
|
100
98
|
<mdc-icon
|
101
|
-
class="mdc-badge-icon ${classMap(
|
99
|
+
class="mdc-badge-icon ${classMap({
|
100
|
+
'mdc-badge-overlay': this.overlay,
|
101
|
+
[`mdc-badge-icon__${backgroundClassPostfix}`]: true,
|
102
|
+
})}"
|
102
103
|
name="${ifDefined(iconName)}"
|
103
104
|
size="${DEFAULTS.ICON_SIZE}"
|
104
105
|
></mdc-icon>
|
@@ -106,44 +107,23 @@ class Badge extends Component {
|
|
106
107
|
}
|
107
108
|
/**
|
108
109
|
* Method to generate the badge dot template.
|
109
|
-
* @param overlay - boolean indicating whether the badge should have an overlay.
|
110
110
|
* @returns the template result of the dot with mdc-badge-dot class.
|
111
111
|
*/
|
112
|
-
getBadgeDot(
|
113
|
-
return html `<div class="mdc-badge-dot ${classMap({ 'mdc-badge-overlay': overlay })}"></div>`;
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* This method generates the CSS classes for the badge icon.
|
117
|
-
* @param overlay - boolean indicating whether the badge should have an overlay.
|
118
|
-
* @param iconVariant - the variant of the icon badge.
|
119
|
-
* @param type - the type of the badge.
|
120
|
-
* @returns - an object containing the CSS classes for the icon.
|
121
|
-
*/
|
122
|
-
getIconClasses(overlay, iconVariant, type) {
|
123
|
-
const overLayClass = { 'mdc-badge-overlay': overlay };
|
124
|
-
const variantTypes = type === BADGE_TYPE.ICON ? ICON_VARIANT : ICON_STATE;
|
125
|
-
const iconVariantType = Object.values(variantTypes).includes(iconVariant) ? iconVariant : DEFAULTS.VARIANT;
|
126
|
-
const backgroundClass = { [`mdc-badge-icon__${iconVariantType}`]: true };
|
127
|
-
return {
|
128
|
-
...overLayClass,
|
129
|
-
...backgroundClass,
|
130
|
-
};
|
112
|
+
getBadgeDot() {
|
113
|
+
return html `<div class="mdc-badge-dot ${classMap({ 'mdc-badge-overlay': this.overlay })}"></div>`;
|
131
114
|
}
|
132
115
|
/**
|
133
116
|
* Method to generate the badge text and counter template.
|
134
|
-
* @param maxCounter - the maximum limit which can be displayed on the badge
|
135
|
-
* @param overlay - whether the badge should have an overlay.
|
136
|
-
* @param counter - the number to be displayed on the badge
|
137
117
|
* @returns the template result of the text.
|
138
118
|
*/
|
139
|
-
getBadgeCounterText(
|
119
|
+
getBadgeCounterText() {
|
140
120
|
return html `
|
141
121
|
<mdc-text
|
142
122
|
type="${FONT_TYPE.BODY_SMALL_MEDIUM}"
|
143
123
|
tagname="${VALID_TEXT_TAGS.DIV}"
|
144
|
-
class="mdc-badge-text ${classMap({ 'mdc-badge-overlay': overlay })}"
|
124
|
+
class="mdc-badge-text ${classMap({ 'mdc-badge-overlay': this.overlay })}"
|
145
125
|
>
|
146
|
-
${this.getCounterText(maxCounter, counter)}
|
126
|
+
${this.getCounterText(this.maxCounter, this.counter)}
|
147
127
|
</mdc-text>
|
148
128
|
`;
|
149
129
|
}
|
@@ -169,24 +149,24 @@ class Badge extends Component {
|
|
169
149
|
*/
|
170
150
|
getBadgeContentBasedOnType() {
|
171
151
|
if (this.variant && !Object.values(ICON_VARIANT).includes(this.variant)) {
|
172
|
-
this.variant =
|
152
|
+
this.variant = DEFAULTS.VARIANT;
|
173
153
|
}
|
174
|
-
const {
|
154
|
+
const { iconName, type, variant } = this;
|
175
155
|
switch (type) {
|
176
156
|
case BADGE_TYPE.ICON:
|
177
|
-
return this.getBadgeIcon(iconName || '',
|
157
|
+
return this.getBadgeIcon(iconName || '', variant);
|
178
158
|
case BADGE_TYPE.COUNTER:
|
179
|
-
return this.getBadgeCounterText(
|
159
|
+
return this.getBadgeCounterText();
|
180
160
|
case BADGE_TYPE.SUCCESS:
|
181
|
-
return this.getBadgeIcon(ICON_NAMES_LIST.SUCCESS_ICON_NAME,
|
161
|
+
return this.getBadgeIcon(ICON_NAMES_LIST.SUCCESS_ICON_NAME, ICON_STATE.SUCCESS);
|
182
162
|
case BADGE_TYPE.WARNING:
|
183
|
-
return this.getBadgeIcon(ICON_NAMES_LIST.WARNING_ICON_NAME,
|
163
|
+
return this.getBadgeIcon(ICON_NAMES_LIST.WARNING_ICON_NAME, ICON_STATE.WARNING);
|
184
164
|
case BADGE_TYPE.ERROR:
|
185
|
-
return this.getBadgeIcon(ICON_NAMES_LIST.ERROR_ICON_NAME,
|
165
|
+
return this.getBadgeIcon(ICON_NAMES_LIST.ERROR_ICON_NAME, ICON_STATE.ERROR);
|
186
166
|
case BADGE_TYPE.DOT:
|
187
167
|
default:
|
188
168
|
this.type = BADGE_TYPE.DOT;
|
189
|
-
return this.getBadgeDot(
|
169
|
+
return this.getBadgeDot();
|
190
170
|
}
|
191
171
|
}
|
192
172
|
update(changedProperties) {
|
@@ -210,7 +190,7 @@ __decorate([
|
|
210
190
|
], Badge.prototype, "iconName", void 0);
|
211
191
|
__decorate([
|
212
192
|
property({ type: String, reflect: true }),
|
213
|
-
__metadata("design:type",
|
193
|
+
__metadata("design:type", String)
|
214
194
|
], Badge.prototype, "variant", void 0);
|
215
195
|
__decorate([
|
216
196
|
property({ type: Number }),
|
@@ -1,31 +1,38 @@
|
|
1
1
|
declare const TAG_NAME: "mdc-badge";
|
2
2
|
declare const BADGE_TYPE: {
|
3
|
-
DOT:
|
4
|
-
ICON:
|
5
|
-
COUNTER:
|
6
|
-
SUCCESS:
|
7
|
-
WARNING:
|
8
|
-
ERROR:
|
3
|
+
readonly DOT: "dot";
|
4
|
+
readonly ICON: "icon";
|
5
|
+
readonly COUNTER: "counter";
|
6
|
+
readonly SUCCESS: "success";
|
7
|
+
readonly WARNING: "warning";
|
8
|
+
readonly ERROR: "error";
|
9
9
|
};
|
10
10
|
declare const ICON_NAMES_LIST: {
|
11
|
-
SUCCESS_ICON_NAME:
|
12
|
-
WARNING_ICON_NAME:
|
13
|
-
ERROR_ICON_NAME:
|
11
|
+
readonly SUCCESS_ICON_NAME: "check-circle-badge-filled";
|
12
|
+
readonly WARNING_ICON_NAME: "warning-badge-filled";
|
13
|
+
readonly ERROR_ICON_NAME: "error-legacy-badge-filled";
|
14
14
|
};
|
15
15
|
declare const ICON_VARIANT: {
|
16
|
-
PRIMARY:
|
17
|
-
SECONDARY:
|
16
|
+
readonly PRIMARY: "primary";
|
17
|
+
readonly SECONDARY: "secondary";
|
18
18
|
};
|
19
19
|
declare const ICON_STATE: {
|
20
|
-
SUCCESS:
|
21
|
-
WARNING:
|
22
|
-
ERROR:
|
20
|
+
readonly SUCCESS: "success";
|
21
|
+
readonly WARNING: "warning";
|
22
|
+
readonly ERROR: "error";
|
23
|
+
};
|
24
|
+
declare const BACKGROUND_STYLES: {
|
25
|
+
readonly SUCCESS: "success";
|
26
|
+
readonly WARNING: "warning";
|
27
|
+
readonly ERROR: "error";
|
28
|
+
readonly PRIMARY: "primary";
|
29
|
+
readonly SECONDARY: "secondary";
|
23
30
|
};
|
24
31
|
declare const DEFAULTS: {
|
25
|
-
TYPE:
|
26
|
-
MAX_COUNTER:
|
27
|
-
MAX_COUNTER_LIMIT:
|
28
|
-
VARIANT:
|
29
|
-
ICON_SIZE:
|
32
|
+
readonly TYPE: "dot";
|
33
|
+
readonly MAX_COUNTER: 99;
|
34
|
+
readonly MAX_COUNTER_LIMIT: 999;
|
35
|
+
readonly VARIANT: "primary";
|
36
|
+
readonly ICON_SIZE: 1;
|
30
37
|
};
|
31
|
-
export { TAG_NAME, DEFAULTS, BADGE_TYPE, ICON_STATE, ICON_VARIANT, ICON_NAMES_LIST };
|
38
|
+
export { TAG_NAME, DEFAULTS, BADGE_TYPE, ICON_STATE, ICON_VARIANT, ICON_NAMES_LIST, BACKGROUND_STYLES };
|
@@ -22,6 +22,10 @@ const ICON_STATE = {
|
|
22
22
|
WARNING: 'warning',
|
23
23
|
ERROR: 'error',
|
24
24
|
};
|
25
|
+
const BACKGROUND_STYLES = {
|
26
|
+
...ICON_VARIANT,
|
27
|
+
...ICON_STATE,
|
28
|
+
};
|
25
29
|
const DEFAULTS = {
|
26
30
|
TYPE: BADGE_TYPE.DOT,
|
27
31
|
MAX_COUNTER: 99,
|
@@ -29,4 +33,4 @@ const DEFAULTS = {
|
|
29
33
|
VARIANT: ICON_VARIANT.PRIMARY,
|
30
34
|
ICON_SIZE: 1,
|
31
35
|
};
|
32
|
-
export { TAG_NAME, DEFAULTS, BADGE_TYPE, ICON_STATE, ICON_VARIANT, ICON_NAMES_LIST };
|
36
|
+
export { TAG_NAME, DEFAULTS, BADGE_TYPE, ICON_STATE, ICON_VARIANT, ICON_NAMES_LIST, BACKGROUND_STYLES };
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -3,8 +3,8 @@ declare const ALLOWED_FILE_EXTENSIONS: string[];
|
|
3
3
|
declare const ALLOWED_LENGTH_UNITS: string[];
|
4
4
|
declare const LENGTH_UNIT_SIZE: Record<string, number>;
|
5
5
|
declare const DEFAULTS: {
|
6
|
-
FILE_EXTENSION:
|
7
|
-
LENGTH_UNIT:
|
8
|
-
SIZE: number;
|
6
|
+
readonly FILE_EXTENSION: "svg";
|
7
|
+
readonly LENGTH_UNIT: "em";
|
8
|
+
readonly SIZE: number;
|
9
9
|
};
|
10
10
|
export { TAG_NAME, DEFAULTS, ALLOWED_FILE_EXTENSIONS, ALLOWED_LENGTH_UNITS, LENGTH_UNIT_SIZE };
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CSSResult } from 'lit';
|
2
2
|
import { Component } from '../../models';
|
3
|
+
import type { PresenceType, PresenceSize } from './presence.types';
|
3
4
|
/**
|
4
5
|
* The `mdc-presence` component is a versatile UI element used to
|
5
6
|
* display the presence status of a user or entity within an avatar component.
|
@@ -30,7 +31,7 @@ declare class Presence extends Component {
|
|
30
31
|
* - `scheduled`
|
31
32
|
* @default active
|
32
33
|
*/
|
33
|
-
type:
|
34
|
+
type: PresenceType;
|
34
35
|
/**
|
35
36
|
* Acceptable values include:
|
36
37
|
* - XX_SMALL
|
@@ -42,7 +43,7 @@ declare class Presence extends Component {
|
|
42
43
|
* - XX_LARGE
|
43
44
|
* @default small
|
44
45
|
*/
|
45
|
-
size:
|
46
|
+
size: PresenceSize;
|
46
47
|
/**
|
47
48
|
* Get the size of the presence icon based on the given size type
|
48
49
|
*/
|
@@ -131,10 +131,10 @@ class Presence extends Component {
|
|
131
131
|
Presence.styles = [...Component.styles, ...styles];
|
132
132
|
__decorate([
|
133
133
|
property({ type: String, reflect: true }),
|
134
|
-
__metadata("design:type",
|
134
|
+
__metadata("design:type", String)
|
135
135
|
], Presence.prototype, "type", void 0);
|
136
136
|
__decorate([
|
137
137
|
property({ type: String, reflect: true }),
|
138
|
-
__metadata("design:type",
|
138
|
+
__metadata("design:type", String)
|
139
139
|
], Presence.prototype, "size", void 0);
|
140
140
|
export default Presence;
|
@@ -1,31 +1,31 @@
|
|
1
1
|
declare const TAG_NAME: "mdc-presence";
|
2
2
|
declare const PRESENCE_TYPE: {
|
3
|
-
ACTIVE:
|
4
|
-
AWAY:
|
5
|
-
AWAY_CALLING:
|
6
|
-
BUSY:
|
7
|
-
DND:
|
8
|
-
MEETING:
|
9
|
-
ON_CALL:
|
10
|
-
ON_DEVICE:
|
11
|
-
ON_MOBILE:
|
12
|
-
PAUSE:
|
13
|
-
PTO:
|
14
|
-
PRESENTING:
|
15
|
-
QUIET:
|
16
|
-
SCHEDULED:
|
3
|
+
readonly ACTIVE: "active";
|
4
|
+
readonly AWAY: "away";
|
5
|
+
readonly AWAY_CALLING: "away-calling";
|
6
|
+
readonly BUSY: "busy";
|
7
|
+
readonly DND: "dnd";
|
8
|
+
readonly MEETING: "meeting";
|
9
|
+
readonly ON_CALL: "on-call";
|
10
|
+
readonly ON_DEVICE: "on-device";
|
11
|
+
readonly ON_MOBILE: "on-mobile";
|
12
|
+
readonly PAUSE: "pause";
|
13
|
+
readonly PTO: "pto";
|
14
|
+
readonly PRESENTING: "presenting";
|
15
|
+
readonly QUIET: "quiet";
|
16
|
+
readonly SCHEDULED: "scheduled";
|
17
17
|
};
|
18
18
|
declare const PRESENCE_SIZE: {
|
19
|
-
XX_SMALL:
|
20
|
-
X_SMALL:
|
21
|
-
SMALL:
|
22
|
-
MIDSIZE:
|
23
|
-
LARGE:
|
24
|
-
X_LARGE:
|
25
|
-
XX_LARGE:
|
19
|
+
readonly XX_SMALL: "xx_small";
|
20
|
+
readonly X_SMALL: "x_small";
|
21
|
+
readonly SMALL: "small";
|
22
|
+
readonly MIDSIZE: "midsize";
|
23
|
+
readonly LARGE: "large";
|
24
|
+
readonly X_LARGE: "x_large";
|
25
|
+
readonly XX_LARGE: "xx_large";
|
26
26
|
};
|
27
27
|
declare const DEFAULTS: {
|
28
|
-
TYPE:
|
29
|
-
SIZE:
|
28
|
+
readonly TYPE: "active";
|
29
|
+
readonly SIZE: "small";
|
30
30
|
};
|
31
31
|
export { TAG_NAME, DEFAULTS, PRESENCE_TYPE, PRESENCE_SIZE };
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CSSResult } from 'lit';
|
2
2
|
import { Component } from '../../models';
|
3
|
+
import type { FontType, TagName } from './text.types';
|
3
4
|
/**
|
4
5
|
* Text component for creating styled text elements.
|
5
6
|
* It has to be mounted within the ThemeProvider to access color and font tokens.
|
@@ -55,7 +56,7 @@ declare class Text extends Component {
|
|
55
56
|
* - 'headline-small-regular'
|
56
57
|
* @default body-large-regular
|
57
58
|
*/
|
58
|
-
type:
|
59
|
+
type: FontType;
|
59
60
|
/**
|
60
61
|
* Specifies the HTML tag name for the text element. The default tag name is `p`.
|
61
62
|
* This attribute is optional. When set, it changes the tag name of the text element.
|
@@ -76,7 +77,7 @@ declare class Text extends Component {
|
|
76
77
|
* For instance, setting this attribute to `h2` will render the text element as an `h2` element.
|
77
78
|
* Note that the styling is determined by the `type` attribute.
|
78
79
|
*/
|
79
|
-
tagname?:
|
80
|
+
tagname?: TagName;
|
80
81
|
render(): import("lit-html").TemplateResult<1>;
|
81
82
|
static styles: Array<CSSResult>;
|
82
83
|
}
|
@@ -113,10 +113,10 @@ class Text extends Component {
|
|
113
113
|
Text.styles = [...Component.styles, ...styles];
|
114
114
|
__decorate([
|
115
115
|
property({ attribute: 'type', reflect: true, type: String }),
|
116
|
-
__metadata("design:type",
|
116
|
+
__metadata("design:type", String)
|
117
117
|
], Text.prototype, "type", void 0);
|
118
118
|
__decorate([
|
119
119
|
property({ attribute: 'tagname', reflect: true, type: String }),
|
120
|
-
__metadata("design:type",
|
120
|
+
__metadata("design:type", String)
|
121
121
|
], Text.prototype, "tagname", void 0);
|
122
122
|
export default Text;
|
@@ -1,51 +1,51 @@
|
|
1
1
|
declare const TAG_NAME: "mdc-text";
|
2
2
|
declare const FONT_TYPE: {
|
3
|
-
BODY_SMALL_REGULAR:
|
4
|
-
BODY_SMALL_MEDIUM:
|
5
|
-
BODY_SMALL_BOLD:
|
6
|
-
BODY_MIDSIZE_REGULAR:
|
7
|
-
BODY_MIDSIZE_MEDIUM:
|
8
|
-
BODY_MIDSIZE_BOLD:
|
9
|
-
BODY_LARGE_REGULAR:
|
10
|
-
BODY_LARGE_MEDIUM:
|
11
|
-
BODY_LARGE_BOLD:
|
12
|
-
BODY_SMALL_REGULAR_UNDERLINE:
|
13
|
-
BODY_SMALL_MEDIUM_UNDERLINE:
|
14
|
-
BODY_MIDSIZE_REGULAR_UNDERLINE:
|
15
|
-
BODY_MIDSIZE_MEDIUM_UNDERLINE:
|
16
|
-
BODY_LARGE_REGULAR_UNDERLINE:
|
17
|
-
BODY_LARGE_MEDIUM_UNDERLINE:
|
18
|
-
HEADING_SMALL_REGULAR:
|
19
|
-
HEADING_SMALL_MEDIUM:
|
20
|
-
HEADING_SMALL_BOLD:
|
21
|
-
HEADING_MIDSIZE_REGULAR:
|
22
|
-
HEADING_MIDSIZE_MEDIUM:
|
23
|
-
HEADING_MIDSIZE_BOLD:
|
24
|
-
HEADING_LARGE_REGULAR:
|
25
|
-
HEADING_LARGE_MEDIUM:
|
26
|
-
HEADING_LARGE_BOLD:
|
27
|
-
HEADING_XLARGE_REGULAR:
|
28
|
-
HEADING_XLARGE_MEDIUM:
|
29
|
-
HEADING_XLARGE_BOLD:
|
30
|
-
HEADLINE_SMALL_LIGHT:
|
31
|
-
HEADLINE_SMALL_REGULAR:
|
3
|
+
readonly BODY_SMALL_REGULAR: "body-small-regular";
|
4
|
+
readonly BODY_SMALL_MEDIUM: "body-small-medium";
|
5
|
+
readonly BODY_SMALL_BOLD: "body-small-bold";
|
6
|
+
readonly BODY_MIDSIZE_REGULAR: "body-midsize-regular";
|
7
|
+
readonly BODY_MIDSIZE_MEDIUM: "body-midsize-medium";
|
8
|
+
readonly BODY_MIDSIZE_BOLD: "body-midsize-bold";
|
9
|
+
readonly BODY_LARGE_REGULAR: "body-large-regular";
|
10
|
+
readonly BODY_LARGE_MEDIUM: "body-large-medium";
|
11
|
+
readonly BODY_LARGE_BOLD: "body-large-bold";
|
12
|
+
readonly BODY_SMALL_REGULAR_UNDERLINE: "body-small-regular-underline";
|
13
|
+
readonly BODY_SMALL_MEDIUM_UNDERLINE: "body-small-medium-underline";
|
14
|
+
readonly BODY_MIDSIZE_REGULAR_UNDERLINE: "body-midsize-regular-underline";
|
15
|
+
readonly BODY_MIDSIZE_MEDIUM_UNDERLINE: "body-midsize-medium-underline";
|
16
|
+
readonly BODY_LARGE_REGULAR_UNDERLINE: "body-large-regular-underline";
|
17
|
+
readonly BODY_LARGE_MEDIUM_UNDERLINE: "body-large-medium-underline";
|
18
|
+
readonly HEADING_SMALL_REGULAR: "heading-small-regular";
|
19
|
+
readonly HEADING_SMALL_MEDIUM: "heading-small-medium";
|
20
|
+
readonly HEADING_SMALL_BOLD: "heading-small-bold";
|
21
|
+
readonly HEADING_MIDSIZE_REGULAR: "heading-midsize-regular";
|
22
|
+
readonly HEADING_MIDSIZE_MEDIUM: "heading-midsize-medium";
|
23
|
+
readonly HEADING_MIDSIZE_BOLD: "heading-midsize-bold";
|
24
|
+
readonly HEADING_LARGE_REGULAR: "heading-large-regular";
|
25
|
+
readonly HEADING_LARGE_MEDIUM: "heading-large-medium";
|
26
|
+
readonly HEADING_LARGE_BOLD: "heading-large-bold";
|
27
|
+
readonly HEADING_XLARGE_REGULAR: "heading-xlarge-regular";
|
28
|
+
readonly HEADING_XLARGE_MEDIUM: "heading-xlarge-medium";
|
29
|
+
readonly HEADING_XLARGE_BOLD: "heading-xlarge-bold";
|
30
|
+
readonly HEADLINE_SMALL_LIGHT: "headline-small-light";
|
31
|
+
readonly HEADLINE_SMALL_REGULAR: "headline-small-regular";
|
32
32
|
};
|
33
33
|
declare const VALID_TEXT_TAGS: {
|
34
|
-
H1:
|
35
|
-
H2:
|
36
|
-
H3:
|
37
|
-
H4:
|
38
|
-
H5:
|
39
|
-
H6:
|
40
|
-
P:
|
41
|
-
SMALL:
|
42
|
-
SPAN:
|
43
|
-
DIV:
|
34
|
+
readonly H1: "h1";
|
35
|
+
readonly H2: "h2";
|
36
|
+
readonly H3: "h3";
|
37
|
+
readonly H4: "h4";
|
38
|
+
readonly H5: "h5";
|
39
|
+
readonly H6: "h6";
|
40
|
+
readonly P: "p";
|
41
|
+
readonly SMALL: "small";
|
42
|
+
readonly SPAN: "span";
|
43
|
+
readonly DIV: "div";
|
44
44
|
};
|
45
45
|
declare const DEFAULTS: {
|
46
|
-
TYPE:
|
47
|
-
TEXT_ELEMENT_TAGNAME:
|
48
|
-
CSS_PART_TEXT:
|
49
|
-
CHILDREN:
|
46
|
+
readonly TYPE: "body-large-regular";
|
47
|
+
readonly TEXT_ELEMENT_TAGNAME: "p";
|
48
|
+
readonly CSS_PART_TEXT: "text";
|
49
|
+
readonly CHILDREN: "The quick brown fox jumps over the lazy dog";
|
50
50
|
};
|
51
51
|
export { TAG_NAME, DEFAULTS, FONT_TYPE, VALID_TEXT_TAGS };
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|