@momentum-design/components 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'small', 'span', 'div', 'section'.
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: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'small', 'span', 'div', 'section'.
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.
@@ -48,7 +48,6 @@ const VALUES = {
48
48
  'small',
49
49
  'span',
50
50
  'div',
51
- 'section',
52
51
  ],
53
52
  };
54
53
  exports.VALUES = VALUES;
@@ -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' | 'section';
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: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'small', 'span', 'div', 'section'.\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.",
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: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'small', 'span', 'div', 'section'.\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.",
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
@@ -37,5 +37,5 @@
37
37
  "@momentum-design/icons": "*",
38
38
  "@momentum-design/tokens": "*"
39
39
  },
40
- "version": "0.4.1"
40
+ "version": "0.4.2"
41
41
  }