@momentum-design/components 0.108.1 → 0.108.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 +1 -1
- package/dist/components/progressbar/progressbar.component.d.ts +7 -7
- package/dist/components/progressbar/progressbar.component.js +7 -7
- package/dist/custom-elements.json +197 -197
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/progressbar/index.d.ts +7 -7
- package/dist/react/progressbar/index.js +7 -7
- package/package.json +1 -1
@@ -17,16 +17,16 @@ declare const Progressbar_base: import("../../utils/mixins/index.types").Constru
|
|
17
17
|
* @dependency mdc-icon
|
18
18
|
* @dependency mdc-text
|
19
19
|
*
|
20
|
-
* @cssproperty --mdc-progressbar-
|
21
|
-
* @cssproperty --mdc-progressbar-
|
22
|
-
* @cssproperty --mdc-progressbar-success-
|
23
|
-
* @cssproperty --mdc-progressbar-error-
|
20
|
+
* @cssproperty --mdc-progressbar-background-color - Background color of the remaining progressbar portion.
|
21
|
+
* @cssproperty --mdc-progressbar-active-background-color - Background color of the elapsed progressbar portion.
|
22
|
+
* @cssproperty --mdc-progressbar-success-color - Background color of the progressbar when in success state.
|
23
|
+
* @cssproperty --mdc-progressbar-error-color - Background color of the progressbar when in error state.
|
24
24
|
* @cssproperty --mdc-progressbar-height - The height of the progressbar.
|
25
25
|
* @cssproperty --mdc-progressbar-border-radius - The border radius of the progressbar.
|
26
26
|
* @cssproperty --mdc-progressbar-label-color - Color of the progressbar label text.
|
27
|
-
* @cssproperty --mdc-progressbar-label-
|
28
|
-
* @cssproperty --mdc-progressbar-label-
|
29
|
-
* @cssproperty --mdc-progressbar-label-
|
27
|
+
* @cssproperty --mdc-progressbar-label-line-height - Line height of the label text.
|
28
|
+
* @cssproperty --mdc-progressbar-label-font-size - Font size of the label text.
|
29
|
+
* @cssproperty --mdc-progressbar-label-font-weight - Font weight of the label text.
|
30
30
|
* @cssproperty --mdc-progressbar-help-text-color - Color of the help text.
|
31
31
|
*/
|
32
32
|
declare class Progressbar extends Progressbar_base {
|
@@ -31,16 +31,16 @@ import styles from './progressbar.styles';
|
|
31
31
|
* @dependency mdc-icon
|
32
32
|
* @dependency mdc-text
|
33
33
|
*
|
34
|
-
* @cssproperty --mdc-progressbar-
|
35
|
-
* @cssproperty --mdc-progressbar-
|
36
|
-
* @cssproperty --mdc-progressbar-success-
|
37
|
-
* @cssproperty --mdc-progressbar-error-
|
34
|
+
* @cssproperty --mdc-progressbar-background-color - Background color of the remaining progressbar portion.
|
35
|
+
* @cssproperty --mdc-progressbar-active-background-color - Background color of the elapsed progressbar portion.
|
36
|
+
* @cssproperty --mdc-progressbar-success-color - Background color of the progressbar when in success state.
|
37
|
+
* @cssproperty --mdc-progressbar-error-color - Background color of the progressbar when in error state.
|
38
38
|
* @cssproperty --mdc-progressbar-height - The height of the progressbar.
|
39
39
|
* @cssproperty --mdc-progressbar-border-radius - The border radius of the progressbar.
|
40
40
|
* @cssproperty --mdc-progressbar-label-color - Color of the progressbar label text.
|
41
|
-
* @cssproperty --mdc-progressbar-label-
|
42
|
-
* @cssproperty --mdc-progressbar-label-
|
43
|
-
* @cssproperty --mdc-progressbar-label-
|
41
|
+
* @cssproperty --mdc-progressbar-label-line-height - Line height of the label text.
|
42
|
+
* @cssproperty --mdc-progressbar-label-font-size - Font size of the label text.
|
43
|
+
* @cssproperty --mdc-progressbar-label-font-weight - Font weight of the label text.
|
44
44
|
* @cssproperty --mdc-progressbar-help-text-color - Color of the help text.
|
45
45
|
*/
|
46
46
|
class Progressbar extends DataAriaLabelMixin(FormfieldWrapper) {
|
@@ -28708,20 +28708,20 @@
|
|
28708
28708
|
"name": "Progressbar",
|
28709
28709
|
"cssProperties": [
|
28710
28710
|
{
|
28711
|
-
"description": "Background color of the progressbar
|
28712
|
-
"name": "--mdc-progressbar-
|
28711
|
+
"description": "Background color of the remaining progressbar portion.",
|
28712
|
+
"name": "--mdc-progressbar-background-color"
|
28713
28713
|
},
|
28714
28714
|
{
|
28715
|
-
"description": "Background color of the progressbar
|
28716
|
-
"name": "--mdc-progressbar-
|
28715
|
+
"description": "Background color of the elapsed progressbar portion.",
|
28716
|
+
"name": "--mdc-progressbar-active-background-color"
|
28717
28717
|
},
|
28718
28718
|
{
|
28719
28719
|
"description": "Background color of the progressbar when in success state.",
|
28720
|
-
"name": "--mdc-progressbar-success-
|
28720
|
+
"name": "--mdc-progressbar-success-color"
|
28721
28721
|
},
|
28722
28722
|
{
|
28723
28723
|
"description": "Background color of the progressbar when in error state.",
|
28724
|
-
"name": "--mdc-progressbar-error-
|
28724
|
+
"name": "--mdc-progressbar-error-color"
|
28725
28725
|
},
|
28726
28726
|
{
|
28727
28727
|
"description": "The height of the progressbar.",
|
@@ -28737,15 +28737,15 @@
|
|
28737
28737
|
},
|
28738
28738
|
{
|
28739
28739
|
"description": "Line height of the label text.",
|
28740
|
-
"name": "--mdc-progressbar-label-
|
28740
|
+
"name": "--mdc-progressbar-label-line-height"
|
28741
28741
|
},
|
28742
28742
|
{
|
28743
28743
|
"description": "Font size of the label text.",
|
28744
|
-
"name": "--mdc-progressbar-label-
|
28744
|
+
"name": "--mdc-progressbar-label-font-size"
|
28745
28745
|
},
|
28746
28746
|
{
|
28747
28747
|
"description": "Font weight of the label text.",
|
28748
|
-
"name": "--mdc-progressbar-label-
|
28748
|
+
"name": "--mdc-progressbar-label-font-weight"
|
28749
28749
|
},
|
28750
28750
|
{
|
28751
28751
|
"description": "Color of the help text.",
|
@@ -29154,7 +29154,7 @@
|
|
29154
29154
|
"module": "/src/components/formfieldwrapper"
|
29155
29155
|
},
|
29156
29156
|
"tagName": "mdc-progressbar",
|
29157
|
-
"jsDoc": "/**\n * mdc-progressbar component visually represents a progress indicator, typically used to show\n * the completion state of an ongoing process (e.g., loading, file upload, etc.).\n * It contains an optional label and an optional helper text.\n *\n * - It supports mainly two types: Default and Inline\n * - It supports three validation variants: Default, Success and Error.\n *\n * This component is created by extending FormfieldWrapper.\n *\n * @tagname mdc-progressbar\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-progressbar-
|
29157
|
+
"jsDoc": "/**\n * mdc-progressbar component visually represents a progress indicator, typically used to show\n * the completion state of an ongoing process (e.g., loading, file upload, etc.).\n * It contains an optional label and an optional helper text.\n *\n * - It supports mainly two types: Default and Inline\n * - It supports three validation variants: Default, Success and Error.\n *\n * This component is created by extending FormfieldWrapper.\n *\n * @tagname mdc-progressbar\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-progressbar-background-color - Background color of the remaining progressbar portion.\n * @cssproperty --mdc-progressbar-active-background-color - Background color of the elapsed progressbar portion.\n * @cssproperty --mdc-progressbar-success-color - Background color of the progressbar when in success state.\n * @cssproperty --mdc-progressbar-error-color - Background color of the progressbar when in error state.\n * @cssproperty --mdc-progressbar-height - The height of the progressbar.\n * @cssproperty --mdc-progressbar-border-radius - The border radius of the progressbar.\n * @cssproperty --mdc-progressbar-label-color - Color of the progressbar label text.\n * @cssproperty --mdc-progressbar-label-line-height - Line height of the label text.\n * @cssproperty --mdc-progressbar-label-font-size - Font size of the label text.\n * @cssproperty --mdc-progressbar-label-font-weight - Font weight of the label text.\n * @cssproperty --mdc-progressbar-help-text-color - Color of the help text.\n */",
|
29158
29158
|
"customElement": true
|
29159
29159
|
}
|
29160
29160
|
],
|
@@ -29199,16 +29199,16 @@
|
|
29199
29199
|
"name": "--mdc-progress-error-color"
|
29200
29200
|
},
|
29201
29201
|
{
|
29202
|
-
"description": "Background color of the progressbar
|
29203
|
-
"name": "--mdc-progressbar-
|
29202
|
+
"description": "Background color of the remaining progressbar portion.",
|
29203
|
+
"name": "--mdc-progressbar-background-color",
|
29204
29204
|
"inheritedFrom": {
|
29205
29205
|
"name": "Progressbar",
|
29206
29206
|
"module": "src/components/progressbar/progressbar.component.ts"
|
29207
29207
|
}
|
29208
29208
|
},
|
29209
29209
|
{
|
29210
|
-
"description": "Background color of the progressbar
|
29211
|
-
"name": "--mdc-progressbar-
|
29210
|
+
"description": "Background color of the elapsed progressbar portion.",
|
29211
|
+
"name": "--mdc-progressbar-active-background-color",
|
29212
29212
|
"inheritedFrom": {
|
29213
29213
|
"name": "Progressbar",
|
29214
29214
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -29216,7 +29216,7 @@
|
|
29216
29216
|
},
|
29217
29217
|
{
|
29218
29218
|
"description": "Background color of the progressbar when in success state.",
|
29219
|
-
"name": "--mdc-progressbar-success-
|
29219
|
+
"name": "--mdc-progressbar-success-color",
|
29220
29220
|
"inheritedFrom": {
|
29221
29221
|
"name": "Progressbar",
|
29222
29222
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -29224,7 +29224,7 @@
|
|
29224
29224
|
},
|
29225
29225
|
{
|
29226
29226
|
"description": "Background color of the progressbar when in error state.",
|
29227
|
-
"name": "--mdc-progressbar-error-
|
29227
|
+
"name": "--mdc-progressbar-error-color",
|
29228
29228
|
"inheritedFrom": {
|
29229
29229
|
"name": "Progressbar",
|
29230
29230
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -29256,7 +29256,7 @@
|
|
29256
29256
|
},
|
29257
29257
|
{
|
29258
29258
|
"description": "Line height of the label text.",
|
29259
|
-
"name": "--mdc-progressbar-label-
|
29259
|
+
"name": "--mdc-progressbar-label-line-height",
|
29260
29260
|
"inheritedFrom": {
|
29261
29261
|
"name": "Progressbar",
|
29262
29262
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -29264,7 +29264,7 @@
|
|
29264
29264
|
},
|
29265
29265
|
{
|
29266
29266
|
"description": "Font size of the label text.",
|
29267
|
-
"name": "--mdc-progressbar-label-
|
29267
|
+
"name": "--mdc-progressbar-label-font-size",
|
29268
29268
|
"inheritedFrom": {
|
29269
29269
|
"name": "Progressbar",
|
29270
29270
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -29272,7 +29272,7 @@
|
|
29272
29272
|
},
|
29273
29273
|
{
|
29274
29274
|
"description": "Font weight of the label text.",
|
29275
|
-
"name": "--mdc-progressbar-label-
|
29275
|
+
"name": "--mdc-progressbar-label-font-weight",
|
29276
29276
|
"inheritedFrom": {
|
29277
29277
|
"name": "Progressbar",
|
29278
29278
|
"module": "src/components/progressbar/progressbar.component.ts"
|
@@ -35375,184 +35375,6 @@
|
|
35375
35375
|
}
|
35376
35376
|
]
|
35377
35377
|
},
|
35378
|
-
{
|
35379
|
-
"kind": "javascript-module",
|
35380
|
-
"path": "components/tablist/tablist.component.js",
|
35381
|
-
"declarations": [
|
35382
|
-
{
|
35383
|
-
"kind": "class",
|
35384
|
-
"description": "Tab list organizes tabs into a container.\n\nChildren of the tab list are `mdc-tab` elements, sent to the default slot.\n\nThe tabs can be navigated using the left/right arrow keys, and selected by clicking,\n or pressing the Enter and Space keys.\n\n**Implicit accessibility rules**\n\n- The element that serves as the container for the set of tabs has role `tablist`.\n- Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n- The active tab element has the state `aria-selected` set to `true`\n and all other tab elements have it set to `false`.\n\n\n**Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n\n- Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n- The `tablist` element needs to have a label provided by `data-aria-label`.\n- Each element with role `tab` has the property `aria-controls`\n that should refer to its associated `tabpanel` element.\n- Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n- If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.",
|
35385
|
-
"name": "TabList",
|
35386
|
-
"cssProperties": [
|
35387
|
-
{
|
35388
|
-
"description": "Gap between tabs",
|
35389
|
-
"name": "--mdc-tablist-gap"
|
35390
|
-
},
|
35391
|
-
{
|
35392
|
-
"description": "Width of the tablist",
|
35393
|
-
"name": "--mdc-tablist-width"
|
35394
|
-
},
|
35395
|
-
{
|
35396
|
-
"description": "Margin value for the arrow button",
|
35397
|
-
"name": "--mdc-tablist-arrow-button-margin"
|
35398
|
-
}
|
35399
|
-
],
|
35400
|
-
"slots": [
|
35401
|
-
{
|
35402
|
-
"description": "slot for mdc-tab elements.",
|
35403
|
-
"name": "Default"
|
35404
|
-
}
|
35405
|
-
],
|
35406
|
-
"members": [
|
35407
|
-
{
|
35408
|
-
"kind": "field",
|
35409
|
-
"name": "activeTabId",
|
35410
|
-
"type": {
|
35411
|
-
"text": "string | undefined"
|
35412
|
-
},
|
35413
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
35414
|
-
"attribute": "active-tab-id",
|
35415
|
-
"reflects": true
|
35416
|
-
},
|
35417
|
-
{
|
35418
|
-
"kind": "field",
|
35419
|
-
"name": "dataAriaLabel",
|
35420
|
-
"type": {
|
35421
|
-
"text": "string | undefined"
|
35422
|
-
},
|
35423
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
35424
|
-
"attribute": "data-aria-label"
|
35425
|
-
}
|
35426
|
-
],
|
35427
|
-
"events": [
|
35428
|
-
{
|
35429
|
-
"description": "(React: onChange) This event is dispatched when the tab is selected. Event that fires when user changes the active tab. The function sent as the argument will receive the fired event and the new tab id can be fetched from event.detail.tabId. `(event: CustomEvent) => handleTabChange(event.detail.tabId);`",
|
35430
|
-
"name": "change",
|
35431
|
-
"reactName": "onChange"
|
35432
|
-
}
|
35433
|
-
],
|
35434
|
-
"attributes": [
|
35435
|
-
{
|
35436
|
-
"name": "active-tab-id",
|
35437
|
-
"type": {
|
35438
|
-
"text": "string | undefined"
|
35439
|
-
},
|
35440
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
35441
|
-
"fieldName": "activeTabId"
|
35442
|
-
},
|
35443
|
-
{
|
35444
|
-
"name": "data-aria-label",
|
35445
|
-
"type": {
|
35446
|
-
"text": "string | undefined"
|
35447
|
-
},
|
35448
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
35449
|
-
"fieldName": "dataAriaLabel"
|
35450
|
-
}
|
35451
|
-
],
|
35452
|
-
"superclass": {
|
35453
|
-
"name": "Component",
|
35454
|
-
"module": "/src/models"
|
35455
|
-
},
|
35456
|
-
"tagName": "mdc-tablist",
|
35457
|
-
"jsDoc": "/**\n * Tab list organizes tabs into a container.\n *\n * Children of the tab list are `mdc-tab` elements, sent to the default slot.\n *\n * The tabs can be navigated using the left/right arrow keys, and selected by clicking,\n * or pressing the Enter and Space keys.\n *\n * **Implicit accessibility rules**\n *\n * - The element that serves as the container for the set of tabs has role `tablist`.\n * - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n * - The active tab element has the state `aria-selected` set to `true`\n * and all other tab elements have it set to `false`.\n *\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n * - The `tablist` element needs to have a label provided by `data-aria-label`.\n * - Each element with role `tab` has the property `aria-controls`\n * that should refer to its associated `tabpanel` element.\n * - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n * - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.\n *\n * @tagname mdc-tablist\n *\n * @dependency mdc-tab\n * @dependency mdc-button\n *\n * @event change - (React: onChange) This event is dispatched when the tab is selected.\n * Event that fires when user changes the active tab.\n * The function sent as the argument will receive the fired event\n * and the new tab id can be fetched from event.detail.tabId.\n *\n * `(event: CustomEvent) => handleTabChange(event.detail.tabId);`\n *\n * @slot Default slot for mdc-tab elements.\n *\n * @cssproperty --mdc-tablist-gap - Gap between tabs\n * @cssproperty --mdc-tablist-width - Width of the tablist\n * @cssproperty --mdc-tablist-arrow-button-margin - Margin value for the arrow button\n */",
|
35458
|
-
"customElement": true
|
35459
|
-
}
|
35460
|
-
],
|
35461
|
-
"exports": [
|
35462
|
-
{
|
35463
|
-
"kind": "js",
|
35464
|
-
"name": "default",
|
35465
|
-
"declaration": {
|
35466
|
-
"name": "TabList",
|
35467
|
-
"module": "components/tablist/tablist.component.js"
|
35468
|
-
}
|
35469
|
-
}
|
35470
|
-
]
|
35471
|
-
},
|
35472
|
-
{
|
35473
|
-
"kind": "javascript-module",
|
35474
|
-
"path": "components/text/text.component.js",
|
35475
|
-
"declarations": [
|
35476
|
-
{
|
35477
|
-
"kind": "class",
|
35478
|
-
"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.",
|
35479
|
-
"name": "Text",
|
35480
|
-
"cssParts": [
|
35481
|
-
{
|
35482
|
-
"description": "The text element",
|
35483
|
-
"name": "text"
|
35484
|
-
}
|
35485
|
-
],
|
35486
|
-
"slots": [
|
35487
|
-
{
|
35488
|
-
"description": "Default slot for text content",
|
35489
|
-
"name": ""
|
35490
|
-
}
|
35491
|
-
],
|
35492
|
-
"members": [
|
35493
|
-
{
|
35494
|
-
"kind": "field",
|
35495
|
-
"name": "type",
|
35496
|
-
"type": {
|
35497
|
-
"text": "TextType"
|
35498
|
-
},
|
35499
|
-
"privacy": "public",
|
35500
|
-
"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'",
|
35501
|
-
"default": "body-midsize-medium",
|
35502
|
-
"attribute": "type",
|
35503
|
-
"reflects": true
|
35504
|
-
},
|
35505
|
-
{
|
35506
|
-
"kind": "field",
|
35507
|
-
"name": "tagname",
|
35508
|
-
"type": {
|
35509
|
-
"text": "TagName | undefined"
|
35510
|
-
},
|
35511
|
-
"privacy": "public",
|
35512
|
-
"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.",
|
35513
|
-
"attribute": "tagname",
|
35514
|
-
"reflects": true
|
35515
|
-
}
|
35516
|
-
],
|
35517
|
-
"attributes": [
|
35518
|
-
{
|
35519
|
-
"name": "type",
|
35520
|
-
"type": {
|
35521
|
-
"text": "TextType"
|
35522
|
-
},
|
35523
|
-
"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'",
|
35524
|
-
"default": "body-midsize-medium",
|
35525
|
-
"fieldName": "type"
|
35526
|
-
},
|
35527
|
-
{
|
35528
|
-
"name": "tagname",
|
35529
|
-
"type": {
|
35530
|
-
"text": "TagName | undefined"
|
35531
|
-
},
|
35532
|
-
"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.",
|
35533
|
-
"fieldName": "tagname"
|
35534
|
-
}
|
35535
|
-
],
|
35536
|
-
"superclass": {
|
35537
|
-
"name": "Component",
|
35538
|
-
"module": "/src/models"
|
35539
|
-
},
|
35540
|
-
"tagName": "mdc-text",
|
35541
|
-
"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 */",
|
35542
|
-
"customElement": true
|
35543
|
-
}
|
35544
|
-
],
|
35545
|
-
"exports": [
|
35546
|
-
{
|
35547
|
-
"kind": "js",
|
35548
|
-
"name": "default",
|
35549
|
-
"declaration": {
|
35550
|
-
"name": "Text",
|
35551
|
-
"module": "components/text/text.component.js"
|
35552
|
-
}
|
35553
|
-
}
|
35554
|
-
]
|
35555
|
-
},
|
35556
35378
|
{
|
35557
35379
|
"kind": "javascript-module",
|
35558
35380
|
"path": "components/tab/tab.component.js",
|
@@ -36420,6 +36242,184 @@
|
|
36420
36242
|
}
|
36421
36243
|
]
|
36422
36244
|
},
|
36245
|
+
{
|
36246
|
+
"kind": "javascript-module",
|
36247
|
+
"path": "components/tablist/tablist.component.js",
|
36248
|
+
"declarations": [
|
36249
|
+
{
|
36250
|
+
"kind": "class",
|
36251
|
+
"description": "Tab list organizes tabs into a container.\n\nChildren of the tab list are `mdc-tab` elements, sent to the default slot.\n\nThe tabs can be navigated using the left/right arrow keys, and selected by clicking,\n or pressing the Enter and Space keys.\n\n**Implicit accessibility rules**\n\n- The element that serves as the container for the set of tabs has role `tablist`.\n- Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n- The active tab element has the state `aria-selected` set to `true`\n and all other tab elements have it set to `false`.\n\n\n**Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n\n- Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n- The `tablist` element needs to have a label provided by `data-aria-label`.\n- Each element with role `tab` has the property `aria-controls`\n that should refer to its associated `tabpanel` element.\n- Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n- If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.",
|
36252
|
+
"name": "TabList",
|
36253
|
+
"cssProperties": [
|
36254
|
+
{
|
36255
|
+
"description": "Gap between tabs",
|
36256
|
+
"name": "--mdc-tablist-gap"
|
36257
|
+
},
|
36258
|
+
{
|
36259
|
+
"description": "Width of the tablist",
|
36260
|
+
"name": "--mdc-tablist-width"
|
36261
|
+
},
|
36262
|
+
{
|
36263
|
+
"description": "Margin value for the arrow button",
|
36264
|
+
"name": "--mdc-tablist-arrow-button-margin"
|
36265
|
+
}
|
36266
|
+
],
|
36267
|
+
"slots": [
|
36268
|
+
{
|
36269
|
+
"description": "slot for mdc-tab elements.",
|
36270
|
+
"name": "Default"
|
36271
|
+
}
|
36272
|
+
],
|
36273
|
+
"members": [
|
36274
|
+
{
|
36275
|
+
"kind": "field",
|
36276
|
+
"name": "activeTabId",
|
36277
|
+
"type": {
|
36278
|
+
"text": "string | undefined"
|
36279
|
+
},
|
36280
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
36281
|
+
"attribute": "active-tab-id",
|
36282
|
+
"reflects": true
|
36283
|
+
},
|
36284
|
+
{
|
36285
|
+
"kind": "field",
|
36286
|
+
"name": "dataAriaLabel",
|
36287
|
+
"type": {
|
36288
|
+
"text": "string | undefined"
|
36289
|
+
},
|
36290
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
36291
|
+
"attribute": "data-aria-label"
|
36292
|
+
}
|
36293
|
+
],
|
36294
|
+
"events": [
|
36295
|
+
{
|
36296
|
+
"description": "(React: onChange) This event is dispatched when the tab is selected. Event that fires when user changes the active tab. The function sent as the argument will receive the fired event and the new tab id can be fetched from event.detail.tabId. `(event: CustomEvent) => handleTabChange(event.detail.tabId);`",
|
36297
|
+
"name": "change",
|
36298
|
+
"reactName": "onChange"
|
36299
|
+
}
|
36300
|
+
],
|
36301
|
+
"attributes": [
|
36302
|
+
{
|
36303
|
+
"name": "active-tab-id",
|
36304
|
+
"type": {
|
36305
|
+
"text": "string | undefined"
|
36306
|
+
},
|
36307
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
36308
|
+
"fieldName": "activeTabId"
|
36309
|
+
},
|
36310
|
+
{
|
36311
|
+
"name": "data-aria-label",
|
36312
|
+
"type": {
|
36313
|
+
"text": "string | undefined"
|
36314
|
+
},
|
36315
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
36316
|
+
"fieldName": "dataAriaLabel"
|
36317
|
+
}
|
36318
|
+
],
|
36319
|
+
"superclass": {
|
36320
|
+
"name": "Component",
|
36321
|
+
"module": "/src/models"
|
36322
|
+
},
|
36323
|
+
"tagName": "mdc-tablist",
|
36324
|
+
"jsDoc": "/**\n * Tab list organizes tabs into a container.\n *\n * Children of the tab list are `mdc-tab` elements, sent to the default slot.\n *\n * The tabs can be navigated using the left/right arrow keys, and selected by clicking,\n * or pressing the Enter and Space keys.\n *\n * **Implicit accessibility rules**\n *\n * - The element that serves as the container for the set of tabs has role `tablist`.\n * - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.\n * - The active tab element has the state `aria-selected` set to `true`\n * and all other tab elements have it set to `false`.\n *\n *\n * **Accessibility notes for consuming (have to be explicitly set when you consume the component)**\n *\n * - Each element that contains the `content panel` for a `tab` has role `tabpanel`.\n * - The `tablist` element needs to have a label provided by `data-aria-label`.\n * - Each element with role `tab` has the property `aria-controls`\n * that should refer to its associated `tabpanel` element.\n * - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.\n * - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.\n *\n * @tagname mdc-tablist\n *\n * @dependency mdc-tab\n * @dependency mdc-button\n *\n * @event change - (React: onChange) This event is dispatched when the tab is selected.\n * Event that fires when user changes the active tab.\n * The function sent as the argument will receive the fired event\n * and the new tab id can be fetched from event.detail.tabId.\n *\n * `(event: CustomEvent) => handleTabChange(event.detail.tabId);`\n *\n * @slot Default slot for mdc-tab elements.\n *\n * @cssproperty --mdc-tablist-gap - Gap between tabs\n * @cssproperty --mdc-tablist-width - Width of the tablist\n * @cssproperty --mdc-tablist-arrow-button-margin - Margin value for the arrow button\n */",
|
36325
|
+
"customElement": true
|
36326
|
+
}
|
36327
|
+
],
|
36328
|
+
"exports": [
|
36329
|
+
{
|
36330
|
+
"kind": "js",
|
36331
|
+
"name": "default",
|
36332
|
+
"declaration": {
|
36333
|
+
"name": "TabList",
|
36334
|
+
"module": "components/tablist/tablist.component.js"
|
36335
|
+
}
|
36336
|
+
}
|
36337
|
+
]
|
36338
|
+
},
|
36339
|
+
{
|
36340
|
+
"kind": "javascript-module",
|
36341
|
+
"path": "components/text/text.component.js",
|
36342
|
+
"declarations": [
|
36343
|
+
{
|
36344
|
+
"kind": "class",
|
36345
|
+
"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.",
|
36346
|
+
"name": "Text",
|
36347
|
+
"cssParts": [
|
36348
|
+
{
|
36349
|
+
"description": "The text element",
|
36350
|
+
"name": "text"
|
36351
|
+
}
|
36352
|
+
],
|
36353
|
+
"slots": [
|
36354
|
+
{
|
36355
|
+
"description": "Default slot for text content",
|
36356
|
+
"name": ""
|
36357
|
+
}
|
36358
|
+
],
|
36359
|
+
"members": [
|
36360
|
+
{
|
36361
|
+
"kind": "field",
|
36362
|
+
"name": "type",
|
36363
|
+
"type": {
|
36364
|
+
"text": "TextType"
|
36365
|
+
},
|
36366
|
+
"privacy": "public",
|
36367
|
+
"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'",
|
36368
|
+
"default": "body-midsize-medium",
|
36369
|
+
"attribute": "type",
|
36370
|
+
"reflects": true
|
36371
|
+
},
|
36372
|
+
{
|
36373
|
+
"kind": "field",
|
36374
|
+
"name": "tagname",
|
36375
|
+
"type": {
|
36376
|
+
"text": "TagName | undefined"
|
36377
|
+
},
|
36378
|
+
"privacy": "public",
|
36379
|
+
"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.",
|
36380
|
+
"attribute": "tagname",
|
36381
|
+
"reflects": true
|
36382
|
+
}
|
36383
|
+
],
|
36384
|
+
"attributes": [
|
36385
|
+
{
|
36386
|
+
"name": "type",
|
36387
|
+
"type": {
|
36388
|
+
"text": "TextType"
|
36389
|
+
},
|
36390
|
+
"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'",
|
36391
|
+
"default": "body-midsize-medium",
|
36392
|
+
"fieldName": "type"
|
36393
|
+
},
|
36394
|
+
{
|
36395
|
+
"name": "tagname",
|
36396
|
+
"type": {
|
36397
|
+
"text": "TagName | undefined"
|
36398
|
+
},
|
36399
|
+
"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.",
|
36400
|
+
"fieldName": "tagname"
|
36401
|
+
}
|
36402
|
+
],
|
36403
|
+
"superclass": {
|
36404
|
+
"name": "Component",
|
36405
|
+
"module": "/src/models"
|
36406
|
+
},
|
36407
|
+
"tagName": "mdc-text",
|
36408
|
+
"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 */",
|
36409
|
+
"customElement": true
|
36410
|
+
}
|
36411
|
+
],
|
36412
|
+
"exports": [
|
36413
|
+
{
|
36414
|
+
"kind": "js",
|
36415
|
+
"name": "default",
|
36416
|
+
"declaration": {
|
36417
|
+
"name": "Text",
|
36418
|
+
"module": "components/text/text.component.js"
|
36419
|
+
}
|
36420
|
+
}
|
36421
|
+
]
|
36422
|
+
},
|
36423
36423
|
{
|
36424
36424
|
"kind": "javascript-module",
|
36425
36425
|
"path": "components/textarea/textarea.component.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -69,9 +69,9 @@ export { default as StaticToggle } from './statictoggle';
|
|
69
69
|
export { default as Stepper } from './stepper';
|
70
70
|
export { default as StepperConnector } from './stepperconnector';
|
71
71
|
export { default as StepperItem } from './stepperitem';
|
72
|
+
export { default as Tab } from './tab';
|
72
73
|
export { default as TabList } from './tablist';
|
73
74
|
export { default as Text } from './text';
|
74
|
-
export { default as Tab } from './tab';
|
75
75
|
export { default as Textarea } from './textarea';
|
76
76
|
export { default as ThemeProvider } from './themeprovider';
|
77
77
|
export { default as Toast } from './toast';
|
package/dist/react/index.js
CHANGED
@@ -69,9 +69,9 @@ export { default as StaticToggle } from './statictoggle';
|
|
69
69
|
export { default as Stepper } from './stepper';
|
70
70
|
export { default as StepperConnector } from './stepperconnector';
|
71
71
|
export { default as StepperItem } from './stepperitem';
|
72
|
+
export { default as Tab } from './tab';
|
72
73
|
export { default as TabList } from './tablist';
|
73
74
|
export { default as Text } from './text';
|
74
|
-
export { default as Tab } from './tab';
|
75
75
|
export { default as Textarea } from './textarea';
|
76
76
|
export { default as ThemeProvider } from './themeprovider';
|
77
77
|
export { default as Toast } from './toast';
|
@@ -14,16 +14,16 @@ import Component from '../../components/progressbar';
|
|
14
14
|
* @dependency mdc-icon
|
15
15
|
* @dependency mdc-text
|
16
16
|
*
|
17
|
-
* @cssproperty --mdc-progressbar-
|
18
|
-
* @cssproperty --mdc-progressbar-
|
19
|
-
* @cssproperty --mdc-progressbar-success-
|
20
|
-
* @cssproperty --mdc-progressbar-error-
|
17
|
+
* @cssproperty --mdc-progressbar-background-color - Background color of the remaining progressbar portion.
|
18
|
+
* @cssproperty --mdc-progressbar-active-background-color - Background color of the elapsed progressbar portion.
|
19
|
+
* @cssproperty --mdc-progressbar-success-color - Background color of the progressbar when in success state.
|
20
|
+
* @cssproperty --mdc-progressbar-error-color - Background color of the progressbar when in error state.
|
21
21
|
* @cssproperty --mdc-progressbar-height - The height of the progressbar.
|
22
22
|
* @cssproperty --mdc-progressbar-border-radius - The border radius of the progressbar.
|
23
23
|
* @cssproperty --mdc-progressbar-label-color - Color of the progressbar label text.
|
24
|
-
* @cssproperty --mdc-progressbar-label-
|
25
|
-
* @cssproperty --mdc-progressbar-label-
|
26
|
-
* @cssproperty --mdc-progressbar-label-
|
24
|
+
* @cssproperty --mdc-progressbar-label-line-height - Line height of the label text.
|
25
|
+
* @cssproperty --mdc-progressbar-label-font-size - Font size of the label text.
|
26
|
+
* @cssproperty --mdc-progressbar-label-font-weight - Font weight of the label text.
|
27
27
|
* @cssproperty --mdc-progressbar-help-text-color - Color of the help text.
|
28
28
|
*/
|
29
29
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
@@ -17,16 +17,16 @@ import { TAG_NAME } from '../../components/progressbar/progressbar.constants';
|
|
17
17
|
* @dependency mdc-icon
|
18
18
|
* @dependency mdc-text
|
19
19
|
*
|
20
|
-
* @cssproperty --mdc-progressbar-
|
21
|
-
* @cssproperty --mdc-progressbar-
|
22
|
-
* @cssproperty --mdc-progressbar-success-
|
23
|
-
* @cssproperty --mdc-progressbar-error-
|
20
|
+
* @cssproperty --mdc-progressbar-background-color - Background color of the remaining progressbar portion.
|
21
|
+
* @cssproperty --mdc-progressbar-active-background-color - Background color of the elapsed progressbar portion.
|
22
|
+
* @cssproperty --mdc-progressbar-success-color - Background color of the progressbar when in success state.
|
23
|
+
* @cssproperty --mdc-progressbar-error-color - Background color of the progressbar when in error state.
|
24
24
|
* @cssproperty --mdc-progressbar-height - The height of the progressbar.
|
25
25
|
* @cssproperty --mdc-progressbar-border-radius - The border radius of the progressbar.
|
26
26
|
* @cssproperty --mdc-progressbar-label-color - Color of the progressbar label text.
|
27
|
-
* @cssproperty --mdc-progressbar-label-
|
28
|
-
* @cssproperty --mdc-progressbar-label-
|
29
|
-
* @cssproperty --mdc-progressbar-label-
|
27
|
+
* @cssproperty --mdc-progressbar-label-line-height - Line height of the label text.
|
28
|
+
* @cssproperty --mdc-progressbar-label-font-size - Font size of the label text.
|
29
|
+
* @cssproperty --mdc-progressbar-label-font-weight - Font weight of the label text.
|
30
30
|
* @cssproperty --mdc-progressbar-help-text-color - Color of the help text.
|
31
31
|
*/
|
32
32
|
const reactWrapper = createComponent({
|