@momentum-design/components 0.4.1 → 0.4.2
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/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/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';
|
@@ -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