@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.
@@ -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';
@@ -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')) {
@@ -1,6 +1,5 @@
1
1
  declare const TAG_NAME: "mdc-themeprovider";
2
2
  declare const DEFAULTS: {
3
3
  THEMECLASS: "mds-theme-stable-darkWebex";
4
- TYPOGRAPHYCLASS: "mds-typography";
5
4
  };
6
5
  export { DEFAULTS, TAG_NAME };
@@ -8,6 +8,5 @@ const TAG_NAME = tag_name_1.default.constructTagName('themeprovider');
8
8
  exports.TAG_NAME = TAG_NAME;
9
9
  const DEFAULTS = {
10
10
  THEMECLASS: 'mds-theme-stable-darkWebex',
11
- TYPOGRAPHYCLASS: 'mds-typography',
12
11
  };
13
12
  exports.DEFAULTS = DEFAULTS;
@@ -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.3"
41
41
  }