@momentum-design/components 0.21.0 → 0.22.0
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/custom-elements.json +84 -84
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
@@ -5176,6 +5176,90 @@
|
|
5176
5176
|
}
|
5177
5177
|
]
|
5178
5178
|
},
|
5179
|
+
{
|
5180
|
+
"kind": "javascript-module",
|
5181
|
+
"path": "components/text/text.component.js",
|
5182
|
+
"declarations": [
|
5183
|
+
{
|
5184
|
+
"kind": "class",
|
5185
|
+
"description": "Text component for creating styled text elements.\nIt has to be mounted within the ThemeProvider to access color and font tokens.\n\nThe `type` attribute allows changing the text style.\nThe `tagname` attribute allows changing the tag name of the text element.\nThe default tag name is `p`.\n\nThe `tagname` attribute should be a valid HTML tag name.\nIf the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n\nThe styling is applied based on the `type` attribute.",
|
5186
|
+
"name": "Text",
|
5187
|
+
"cssParts": [
|
5188
|
+
{
|
5189
|
+
"description": "The text element",
|
5190
|
+
"name": "text"
|
5191
|
+
}
|
5192
|
+
],
|
5193
|
+
"slots": [
|
5194
|
+
{
|
5195
|
+
"description": "Default slot for text content",
|
5196
|
+
"name": ""
|
5197
|
+
}
|
5198
|
+
],
|
5199
|
+
"members": [
|
5200
|
+
{
|
5201
|
+
"kind": "field",
|
5202
|
+
"name": "type",
|
5203
|
+
"type": {
|
5204
|
+
"text": "TextType"
|
5205
|
+
},
|
5206
|
+
"privacy": "public",
|
5207
|
+
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
5208
|
+
"default": "body-large-regular",
|
5209
|
+
"attribute": "type",
|
5210
|
+
"reflects": true
|
5211
|
+
},
|
5212
|
+
{
|
5213
|
+
"kind": "field",
|
5214
|
+
"name": "tagname",
|
5215
|
+
"type": {
|
5216
|
+
"text": "TagName | undefined"
|
5217
|
+
},
|
5218
|
+
"privacy": "public",
|
5219
|
+
"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.",
|
5220
|
+
"attribute": "tagname",
|
5221
|
+
"reflects": true
|
5222
|
+
}
|
5223
|
+
],
|
5224
|
+
"attributes": [
|
5225
|
+
{
|
5226
|
+
"name": "type",
|
5227
|
+
"type": {
|
5228
|
+
"text": "TextType"
|
5229
|
+
},
|
5230
|
+
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
5231
|
+
"default": "body-large-regular",
|
5232
|
+
"fieldName": "type"
|
5233
|
+
},
|
5234
|
+
{
|
5235
|
+
"name": "tagname",
|
5236
|
+
"type": {
|
5237
|
+
"text": "TagName | undefined"
|
5238
|
+
},
|
5239
|
+
"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.",
|
5240
|
+
"fieldName": "tagname"
|
5241
|
+
}
|
5242
|
+
],
|
5243
|
+
"superclass": {
|
5244
|
+
"name": "Component",
|
5245
|
+
"module": "/src/models"
|
5246
|
+
},
|
5247
|
+
"tagName": "mdc-text",
|
5248
|
+
"jsDoc": "/**\n * Text component for creating styled text elements.\n * It has to be mounted within the ThemeProvider to access color and font tokens.\n *\n * The `type` attribute allows changing the text style.\n * The `tagname` attribute allows changing the tag name of the text element.\n * The default tag name is `p`.\n *\n * The `tagname` attribute should be a valid HTML tag name.\n * If the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n *\n * The styling is applied based on the `type` attribute.\n *\n * @tagname mdc-text\n * @slot - Default slot for text content\n *\n * @csspart text - The text element\n */",
|
5249
|
+
"customElement": true
|
5250
|
+
}
|
5251
|
+
],
|
5252
|
+
"exports": [
|
5253
|
+
{
|
5254
|
+
"kind": "js",
|
5255
|
+
"name": "default",
|
5256
|
+
"declaration": {
|
5257
|
+
"name": "Text",
|
5258
|
+
"module": "components/text/text.component.js"
|
5259
|
+
}
|
5260
|
+
}
|
5261
|
+
]
|
5262
|
+
},
|
5179
5263
|
{
|
5180
5264
|
"kind": "javascript-module",
|
5181
5265
|
"path": "components/themeprovider/themeprovider.component.js",
|
@@ -5780,90 +5864,6 @@
|
|
5780
5864
|
}
|
5781
5865
|
]
|
5782
5866
|
},
|
5783
|
-
{
|
5784
|
-
"kind": "javascript-module",
|
5785
|
-
"path": "components/text/text.component.js",
|
5786
|
-
"declarations": [
|
5787
|
-
{
|
5788
|
-
"kind": "class",
|
5789
|
-
"description": "Text component for creating styled text elements.\nIt has to be mounted within the ThemeProvider to access color and font tokens.\n\nThe `type` attribute allows changing the text style.\nThe `tagname` attribute allows changing the tag name of the text element.\nThe default tag name is `p`.\n\nThe `tagname` attribute should be a valid HTML tag name.\nIf the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n\nThe styling is applied based on the `type` attribute.",
|
5790
|
-
"name": "Text",
|
5791
|
-
"cssParts": [
|
5792
|
-
{
|
5793
|
-
"description": "The text element",
|
5794
|
-
"name": "text"
|
5795
|
-
}
|
5796
|
-
],
|
5797
|
-
"slots": [
|
5798
|
-
{
|
5799
|
-
"description": "Default slot for text content",
|
5800
|
-
"name": ""
|
5801
|
-
}
|
5802
|
-
],
|
5803
|
-
"members": [
|
5804
|
-
{
|
5805
|
-
"kind": "field",
|
5806
|
-
"name": "type",
|
5807
|
-
"type": {
|
5808
|
-
"text": "TextType"
|
5809
|
-
},
|
5810
|
-
"privacy": "public",
|
5811
|
-
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
5812
|
-
"default": "body-large-regular",
|
5813
|
-
"attribute": "type",
|
5814
|
-
"reflects": true
|
5815
|
-
},
|
5816
|
-
{
|
5817
|
-
"kind": "field",
|
5818
|
-
"name": "tagname",
|
5819
|
-
"type": {
|
5820
|
-
"text": "TagName | undefined"
|
5821
|
-
},
|
5822
|
-
"privacy": "public",
|
5823
|
-
"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.",
|
5824
|
-
"attribute": "tagname",
|
5825
|
-
"reflects": true
|
5826
|
-
}
|
5827
|
-
],
|
5828
|
-
"attributes": [
|
5829
|
-
{
|
5830
|
-
"name": "type",
|
5831
|
-
"type": {
|
5832
|
-
"text": "TextType"
|
5833
|
-
},
|
5834
|
-
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
5835
|
-
"default": "body-large-regular",
|
5836
|
-
"fieldName": "type"
|
5837
|
-
},
|
5838
|
-
{
|
5839
|
-
"name": "tagname",
|
5840
|
-
"type": {
|
5841
|
-
"text": "TagName | undefined"
|
5842
|
-
},
|
5843
|
-
"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.",
|
5844
|
-
"fieldName": "tagname"
|
5845
|
-
}
|
5846
|
-
],
|
5847
|
-
"superclass": {
|
5848
|
-
"name": "Component",
|
5849
|
-
"module": "/src/models"
|
5850
|
-
},
|
5851
|
-
"tagName": "mdc-text",
|
5852
|
-
"jsDoc": "/**\n * Text component for creating styled text elements.\n * It has to be mounted within the ThemeProvider to access color and font tokens.\n *\n * The `type` attribute allows changing the text style.\n * The `tagname` attribute allows changing the tag name of the text element.\n * The default tag name is `p`.\n *\n * The `tagname` attribute should be a valid HTML tag name.\n * If the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n *\n * The styling is applied based on the `type` attribute.\n *\n * @tagname mdc-text\n * @slot - Default slot for text content\n *\n * @csspart text - The text element\n */",
|
5853
|
-
"customElement": true
|
5854
|
-
}
|
5855
|
-
],
|
5856
|
-
"exports": [
|
5857
|
-
{
|
5858
|
-
"kind": "js",
|
5859
|
-
"name": "default",
|
5860
|
-
"declaration": {
|
5861
|
-
"name": "Text",
|
5862
|
-
"module": "components/text/text.component.js"
|
5863
|
-
}
|
5864
|
-
}
|
5865
|
-
]
|
5866
|
-
},
|
5867
5867
|
{
|
5868
5868
|
"kind": "javascript-module",
|
5869
5869
|
"path": "utils/mixins/AvatarComponentMixin.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -15,6 +15,6 @@ export { default as Marker } from './marker';
|
|
15
15
|
export { default as Modalcontainer } from './modalcontainer';
|
16
16
|
export { default as Presence } from './presence';
|
17
17
|
export { default as Radio } from './radio';
|
18
|
+
export { default as Text } from './text';
|
18
19
|
export { default as ThemeProvider } from './themeprovider';
|
19
20
|
export { default as Toggle } from './toggle';
|
20
|
-
export { default as Text } from './text';
|
package/dist/react/index.js
CHANGED
@@ -15,6 +15,6 @@ export { default as Marker } from './marker';
|
|
15
15
|
export { default as Modalcontainer } from './modalcontainer';
|
16
16
|
export { default as Presence } from './presence';
|
17
17
|
export { default as Radio } from './radio';
|
18
|
+
export { default as Text } from './text';
|
18
19
|
export { default as ThemeProvider } from './themeprovider';
|
19
20
|
export { default as Toggle } from './toggle';
|
20
|
-
export { default as Text } from './text';
|
package/package.json
CHANGED