@momentum-design/components 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/index.js +10 -10
- package/dist/browser/index.js.map +2 -2
- package/dist/components/text/text.component.d.ts +12 -1
- package/dist/components/text/text.component.js +12 -1
- package/dist/components/text/text.constants.js +0 -1
- package/dist/components/text/text.types.d.ts +1 -1
- package/dist/components/themeprovider/themeprovider.component.d.ts +0 -1
- package/dist/components/themeprovider/themeprovider.component.js +0 -5
- package/dist/components/themeprovider/themeprovider.constants.d.ts +0 -1
- package/dist/components/themeprovider/themeprovider.constants.js +0 -1
- package/dist/custom-elements.json +2 -2
- package/package.json +1 -1
@@ -60,7 +60,18 @@ declare class Text extends Component {
|
|
60
60
|
* Specifies the HTML tag name for the text element. The default tag name is `p`.
|
61
61
|
* This attribute is optional. When set, it changes the tag name of the text element.
|
62
62
|
*
|
63
|
-
* Acceptable values include:
|
63
|
+
* Acceptable values include:
|
64
|
+
*
|
65
|
+
* - 'h1'
|
66
|
+
* - 'h2'
|
67
|
+
* - 'h3'
|
68
|
+
* - 'h4'
|
69
|
+
* - 'h5'
|
70
|
+
* - 'h6'
|
71
|
+
* - 'p'
|
72
|
+
* - 'small'
|
73
|
+
* - 'span'
|
74
|
+
* - 'div'
|
64
75
|
*
|
65
76
|
* For instance, setting this attribute to `h2` will render the text element as an `h2` element.
|
66
77
|
* Note that the styling is determined by the `type` attribute.
|
@@ -67,7 +67,18 @@ class Text extends models_1.Component {
|
|
67
67
|
* Specifies the HTML tag name for the text element. The default tag name is `p`.
|
68
68
|
* This attribute is optional. When set, it changes the tag name of the text element.
|
69
69
|
*
|
70
|
-
* Acceptable values include:
|
70
|
+
* Acceptable values include:
|
71
|
+
*
|
72
|
+
* - 'h1'
|
73
|
+
* - 'h2'
|
74
|
+
* - 'h3'
|
75
|
+
* - 'h4'
|
76
|
+
* - 'h5'
|
77
|
+
* - 'h6'
|
78
|
+
* - 'p'
|
79
|
+
* - 'small'
|
80
|
+
* - 'span'
|
81
|
+
* - 'div'
|
71
82
|
*
|
72
83
|
* For instance, setting this attribute to `h2` will render the text element as an `h2` element.
|
73
84
|
* Note that the styling is determined by the `type` attribute.
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export type FontType = 'body-small-regular' | 'body-small-medium' | 'body-small-bold' | 'body-midsize-regular' | 'body-midsize-medium' | 'body-midsize-bold' | 'body-large-regular' | 'body-large-medium' | 'body-large-bold' | 'body-small-regular-underline' | 'body-small-medium-underline' | 'body-midsize-regular-underline' | 'body-midsize-medium-underline' | 'body-large-regular-underline' | 'body-large-medium-underline' | 'heading-small-regular' | 'heading-small-medium' | 'heading-small-bold' | 'heading-midsize-regular' | 'heading-midsize-medium' | 'heading-midsize-bold' | 'heading-large-regular' | 'heading-large-medium' | 'heading-large-bold' | 'heading-xlarge-regular' | 'heading-xlarge-medium' | 'heading-xlarge-bold' | 'headline-small-light' | 'headline-small-regular';
|
2
|
-
export type ValidTextTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'small' | 'span' | 'div'
|
2
|
+
export type ValidTextTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'small' | 'span' | 'div';
|
@@ -48,7 +48,6 @@ declare class ThemeProvider extends Provider<ThemeProviderContext> {
|
|
48
48
|
* Default: 'mds-theme-stable-darkWebex'
|
49
49
|
*/
|
50
50
|
themeclass: string;
|
51
|
-
connectedCallback(): void;
|
52
51
|
protected updated(changedProperties: Map<string, any>): void;
|
53
52
|
/**
|
54
53
|
* Update all observing components of this
|
@@ -53,11 +53,6 @@ class ThemeProvider extends models_1.Provider {
|
|
53
53
|
static get Context() {
|
54
54
|
return themeprovider_context_1.default.context;
|
55
55
|
}
|
56
|
-
connectedCallback() {
|
57
|
-
super.connectedCallback();
|
58
|
-
// Set the default typography class
|
59
|
-
this.classList.add(themeprovider_constants_1.DEFAULTS.TYPOGRAPHYCLASS);
|
60
|
-
}
|
61
56
|
updated(changedProperties) {
|
62
57
|
super.updated(changedProperties);
|
63
58
|
if (changedProperties.has('themeclass')) {
|
@@ -601,7 +601,7 @@
|
|
601
601
|
"text": "ValidTextTags | undefined"
|
602
602
|
},
|
603
603
|
"privacy": "public",
|
604
|
-
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include
|
604
|
+
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
605
605
|
"attribute": "tagname",
|
606
606
|
"reflects": true
|
607
607
|
}
|
@@ -620,7 +620,7 @@
|
|
620
620
|
"type": {
|
621
621
|
"text": "ValidTextTags | undefined"
|
622
622
|
},
|
623
|
-
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include
|
623
|
+
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
624
624
|
"fieldName": "tagname"
|
625
625
|
}
|
626
626
|
],
|
package/package.json
CHANGED