@momentum-design/components 0.7.12 → 0.7.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  declare const TAG_NAME: "mdc-avatar";
2
2
  declare const LENGTH_UNIT = "rem";
3
3
  declare const DEFAULTS: {
4
- TYPE: "photo";
5
- SIZE: number;
4
+ readonly TYPE: "photo";
5
+ readonly SIZE: 1.5;
6
6
  };
7
7
  export { TAG_NAME, DEFAULTS, LENGTH_UNIT };
@@ -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?: string;
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: string;
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 overlay - boolean indicating whether the badge should have an overlay.
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 overlay - boolean indicating whether the badge should have an overlay.
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, overlay, iconVariant, type) {
96
+ getBadgeIcon(iconName, backgroundClassPostfix) {
99
97
  return html `
100
98
  <mdc-icon
101
- class="mdc-badge-icon ${classMap(this.getIconClasses(overlay, iconVariant, type))}"
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(overlay) {
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(maxCounter, overlay, counter) {
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 = ICON_VARIANT.PRIMARY;
152
+ this.variant = DEFAULTS.VARIANT;
173
153
  }
174
- const { counter, iconName, maxCounter, overlay, type, variant } = this;
154
+ const { iconName, type, variant } = this;
175
155
  switch (type) {
176
156
  case BADGE_TYPE.ICON:
177
- return this.getBadgeIcon(iconName || '', overlay, variant, type);
157
+ return this.getBadgeIcon(iconName || '', variant);
178
158
  case BADGE_TYPE.COUNTER:
179
- return this.getBadgeCounterText(maxCounter, overlay, counter);
159
+ return this.getBadgeCounterText();
180
160
  case BADGE_TYPE.SUCCESS:
181
- return this.getBadgeIcon(ICON_NAMES_LIST.SUCCESS_ICON_NAME, overlay, ICON_STATE.SUCCESS);
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, overlay, ICON_STATE.WARNING);
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, overlay, ICON_STATE.ERROR);
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(overlay);
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", Object)
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: string;
4
- ICON: string;
5
- COUNTER: string;
6
- SUCCESS: string;
7
- WARNING: string;
8
- ERROR: string;
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: string;
12
- WARNING_ICON_NAME: string;
13
- ERROR_ICON_NAME: string;
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: string;
17
- SECONDARY: string;
16
+ readonly PRIMARY: "primary";
17
+ readonly SECONDARY: "secondary";
18
18
  };
19
19
  declare const ICON_STATE: {
20
- SUCCESS: string;
21
- WARNING: string;
22
- ERROR: string;
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: string;
26
- MAX_COUNTER: number;
27
- MAX_COUNTER_LIMIT: number;
28
- VARIANT: string;
29
- ICON_SIZE: number;
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,4 @@
1
+ import type { ValueOf } from '../../utils/types';
2
+ import { BADGE_TYPE, ICON_VARIANT } from './badge.constants';
3
+ export type IconVariant = ValueOf<typeof ICON_VARIANT>;
4
+ export type BadgeType = ValueOf<typeof BADGE_TYPE>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  declare const TAG_NAME: "mdc-icon";
2
2
  declare const DEFAULTS: {
3
- NAME: undefined;
4
- SIZE: number;
3
+ readonly NAME: undefined;
4
+ readonly SIZE: 1;
5
5
  };
6
6
  export { TAG_NAME, DEFAULTS };
@@ -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: string;
7
- LENGTH_UNIT: string;
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: string;
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: string;
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", Object)
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", Object)
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: string;
4
- AWAY: string;
5
- AWAY_CALLING: string;
6
- BUSY: string;
7
- DND: string;
8
- MEETING: string;
9
- ON_CALL: string;
10
- ON_DEVICE: string;
11
- ON_MOBILE: string;
12
- PAUSE: string;
13
- PTO: string;
14
- PRESENTING: string;
15
- QUIET: string;
16
- SCHEDULED: string;
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: string;
20
- X_SMALL: string;
21
- SMALL: string;
22
- MIDSIZE: string;
23
- LARGE: string;
24
- X_LARGE: string;
25
- XX_LARGE: string;
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: string;
29
- SIZE: string;
28
+ readonly TYPE: "active";
29
+ readonly SIZE: "small";
30
30
  };
31
31
  export { TAG_NAME, DEFAULTS, PRESENCE_TYPE, PRESENCE_SIZE };
@@ -0,0 +1,4 @@
1
+ import type { ValueOf } from '../../utils/types';
2
+ import { PRESENCE_TYPE, PRESENCE_SIZE } from './presence.constants';
3
+ export type PresenceType = ValueOf<typeof PRESENCE_TYPE>;
4
+ export type PresenceSize = ValueOf<typeof 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: string;
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?: string | undefined;
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", Object)
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", Object)
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: string;
4
- BODY_SMALL_MEDIUM: string;
5
- BODY_SMALL_BOLD: string;
6
- BODY_MIDSIZE_REGULAR: string;
7
- BODY_MIDSIZE_MEDIUM: string;
8
- BODY_MIDSIZE_BOLD: string;
9
- BODY_LARGE_REGULAR: string;
10
- BODY_LARGE_MEDIUM: string;
11
- BODY_LARGE_BOLD: string;
12
- BODY_SMALL_REGULAR_UNDERLINE: string;
13
- BODY_SMALL_MEDIUM_UNDERLINE: string;
14
- BODY_MIDSIZE_REGULAR_UNDERLINE: string;
15
- BODY_MIDSIZE_MEDIUM_UNDERLINE: string;
16
- BODY_LARGE_REGULAR_UNDERLINE: string;
17
- BODY_LARGE_MEDIUM_UNDERLINE: string;
18
- HEADING_SMALL_REGULAR: string;
19
- HEADING_SMALL_MEDIUM: string;
20
- HEADING_SMALL_BOLD: string;
21
- HEADING_MIDSIZE_REGULAR: string;
22
- HEADING_MIDSIZE_MEDIUM: string;
23
- HEADING_MIDSIZE_BOLD: string;
24
- HEADING_LARGE_REGULAR: string;
25
- HEADING_LARGE_MEDIUM: string;
26
- HEADING_LARGE_BOLD: string;
27
- HEADING_XLARGE_REGULAR: string;
28
- HEADING_XLARGE_MEDIUM: string;
29
- HEADING_XLARGE_BOLD: string;
30
- HEADLINE_SMALL_LIGHT: string;
31
- HEADLINE_SMALL_REGULAR: string;
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: string;
35
- H2: string;
36
- H3: string;
37
- H4: string;
38
- H5: string;
39
- H6: string;
40
- P: string;
41
- SMALL: string;
42
- SPAN: string;
43
- DIV: string;
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: string;
47
- TEXT_ELEMENT_TAGNAME: string;
48
- CSS_PART_TEXT: string;
49
- CHILDREN: string;
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,4 @@
1
+ import { FONT_TYPE, VALID_TEXT_TAGS } from './text.constants';
2
+ import type { ValueOf } from '../../utils/types';
3
+ export type FontType = ValueOf<typeof FONT_TYPE>;
4
+ export type TagName = ValueOf<typeof VALID_TEXT_TAGS>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  declare const TAG_NAME: "mdc-themeprovider";
2
2
  declare const DEFAULTS: {
3
- THEMECLASS: "mds-theme-stable-darkWebex";
3
+ readonly THEMECLASS: "mds-theme-stable-darkWebex";
4
4
  };
5
5
  export { DEFAULTS, TAG_NAME };