@momentum-design/components 0.127.9 → 0.127.10
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 +50 -46
- package/dist/browser/index.js.map +2 -2
- package/dist/components/banner/banner.component.js +4 -1
- package/dist/components/banner/banner.styles.js +1 -0
- package/dist/custom-elements.json +239 -239
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/package.json +1 -1
|
@@ -98,7 +98,10 @@ class Banner extends Component {
|
|
|
98
98
|
if (!this.label)
|
|
99
99
|
return nothing;
|
|
100
100
|
return html `
|
|
101
|
-
<mdc-text
|
|
101
|
+
<mdc-text
|
|
102
|
+
part="leading-label"
|
|
103
|
+
type="${this.secondaryLabel ? TYPE.BODY_MIDSIZE_BOLD : TYPE.BODY_MIDSIZE_MEDIUM}"
|
|
104
|
+
tagname="${VALID_TEXT_TAGS.SPAN}"
|
|
102
105
|
>${this.label}</mdc-text
|
|
103
106
|
>
|
|
104
107
|
${this.secondaryLabel
|
|
@@ -44276,6 +44276,145 @@
|
|
|
44276
44276
|
}
|
|
44277
44277
|
]
|
|
44278
44278
|
},
|
|
44279
|
+
{
|
|
44280
|
+
"kind": "javascript-module",
|
|
44281
|
+
"path": "components/spinner/spinner.component.js",
|
|
44282
|
+
"declarations": [
|
|
44283
|
+
{
|
|
44284
|
+
"kind": "class",
|
|
44285
|
+
"description": "`mdc-spinner` is loading spinner which is an indeterminate progress indicator, meaning\nit's best for cases where the progress or duration of a process is variable or unknown.\n\nSpinner Variants:\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, the color is changed internally to be the same color as the button’s\nicon or label text.\n\nSpinner Sizes:\n- **Large (96px)**: Use when replacing entire regions or pages that are still loading\n- **MidSize (48px) (Default)**: Use for most use cases.\n- **Small (24px)**: Use for inline with loading text.\n\nCustomisation of the spinner size is allowed by setting the size to undefined and using the --mdc-spinner-size\nCSS property.\n\nSpinner Colors:\n- **Default**: Use for most use cases.\n- **Inverted**: Only to be used within inverted components, such as coachmarks.\n\nRegarding accessibility, if an aria-label is provided, the role will be set to 'img'; if it is absent, the role\nwill be unset\nand aria-hidden will be set to 'true' so the spinner will be ignored by screen readers.",
|
|
44286
|
+
"name": "Spinner",
|
|
44287
|
+
"cssProperties": [
|
|
44288
|
+
{
|
|
44289
|
+
"description": "Allows customization of the default spinner color.",
|
|
44290
|
+
"name": "--mdc-spinner-default-color"
|
|
44291
|
+
},
|
|
44292
|
+
{
|
|
44293
|
+
"description": "Allows customization of the inverted spinner color.",
|
|
44294
|
+
"name": "--mdc-spinner-inverted-color"
|
|
44295
|
+
},
|
|
44296
|
+
{
|
|
44297
|
+
"description": "Allows customization of the spinner Button variant color.",
|
|
44298
|
+
"name": "--mdc-spinner-button-variant-color"
|
|
44299
|
+
},
|
|
44300
|
+
{
|
|
44301
|
+
"description": "Allows customization of the spinner size.",
|
|
44302
|
+
"name": "--mdc-spinner-size"
|
|
44303
|
+
}
|
|
44304
|
+
],
|
|
44305
|
+
"cssParts": [
|
|
44306
|
+
{
|
|
44307
|
+
"description": "The svg which contains the circle spinner.",
|
|
44308
|
+
"name": "container"
|
|
44309
|
+
},
|
|
44310
|
+
{
|
|
44311
|
+
"description": "The circle of the spinner.",
|
|
44312
|
+
"name": "circle"
|
|
44313
|
+
}
|
|
44314
|
+
],
|
|
44315
|
+
"members": [
|
|
44316
|
+
{
|
|
44317
|
+
"kind": "field",
|
|
44318
|
+
"name": "inverted",
|
|
44319
|
+
"type": {
|
|
44320
|
+
"text": "boolean | undefined"
|
|
44321
|
+
},
|
|
44322
|
+
"description": "The spinner color can be inverted by setting the inverted attribute to true.",
|
|
44323
|
+
"default": "false",
|
|
44324
|
+
"attribute": "inverted",
|
|
44325
|
+
"reflects": true
|
|
44326
|
+
},
|
|
44327
|
+
{
|
|
44328
|
+
"kind": "field",
|
|
44329
|
+
"name": "size",
|
|
44330
|
+
"type": {
|
|
44331
|
+
"text": "SpinnerSize | undefined"
|
|
44332
|
+
},
|
|
44333
|
+
"description": "Size of the spinner.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'\n- 'undefined'",
|
|
44334
|
+
"default": "midsize",
|
|
44335
|
+
"attribute": "size",
|
|
44336
|
+
"reflects": true
|
|
44337
|
+
},
|
|
44338
|
+
{
|
|
44339
|
+
"kind": "field",
|
|
44340
|
+
"name": "ariaLabel",
|
|
44341
|
+
"type": {
|
|
44342
|
+
"text": "string | null"
|
|
44343
|
+
},
|
|
44344
|
+
"default": "null",
|
|
44345
|
+
"description": "Aria-label attribute to be set for accessibility",
|
|
44346
|
+
"attribute": "aria-label"
|
|
44347
|
+
},
|
|
44348
|
+
{
|
|
44349
|
+
"kind": "field",
|
|
44350
|
+
"name": "variant",
|
|
44351
|
+
"type": {
|
|
44352
|
+
"text": "SpinnerVariant"
|
|
44353
|
+
},
|
|
44354
|
+
"description": "There are 2 variants of spinner: default and button. Their coloring is different.\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, change the active indicator color to be the same color as the button’s\nicon or label text.",
|
|
44355
|
+
"default": "standalone",
|
|
44356
|
+
"attribute": "variant",
|
|
44357
|
+
"reflects": true
|
|
44358
|
+
}
|
|
44359
|
+
],
|
|
44360
|
+
"attributes": [
|
|
44361
|
+
{
|
|
44362
|
+
"name": "inverted",
|
|
44363
|
+
"type": {
|
|
44364
|
+
"text": "boolean | undefined"
|
|
44365
|
+
},
|
|
44366
|
+
"description": "The spinner color can be inverted by setting the inverted attribute to true.",
|
|
44367
|
+
"default": "false",
|
|
44368
|
+
"fieldName": "inverted"
|
|
44369
|
+
},
|
|
44370
|
+
{
|
|
44371
|
+
"name": "size",
|
|
44372
|
+
"type": {
|
|
44373
|
+
"text": "SpinnerSize | undefined"
|
|
44374
|
+
},
|
|
44375
|
+
"description": "Size of the spinner.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'\n- 'undefined'",
|
|
44376
|
+
"default": "midsize",
|
|
44377
|
+
"fieldName": "size"
|
|
44378
|
+
},
|
|
44379
|
+
{
|
|
44380
|
+
"name": "aria-label",
|
|
44381
|
+
"type": {
|
|
44382
|
+
"text": "string | null"
|
|
44383
|
+
},
|
|
44384
|
+
"default": "null",
|
|
44385
|
+
"description": "Aria-label attribute to be set for accessibility",
|
|
44386
|
+
"fieldName": "ariaLabel"
|
|
44387
|
+
},
|
|
44388
|
+
{
|
|
44389
|
+
"name": "variant",
|
|
44390
|
+
"type": {
|
|
44391
|
+
"text": "SpinnerVariant"
|
|
44392
|
+
},
|
|
44393
|
+
"description": "There are 2 variants of spinner: default and button. Their coloring is different.\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, change the active indicator color to be the same color as the button’s\nicon or label text.",
|
|
44394
|
+
"default": "standalone",
|
|
44395
|
+
"fieldName": "variant"
|
|
44396
|
+
}
|
|
44397
|
+
],
|
|
44398
|
+
"superclass": {
|
|
44399
|
+
"name": "Component",
|
|
44400
|
+
"module": "/src/models"
|
|
44401
|
+
},
|
|
44402
|
+
"tagName": "mdc-spinner",
|
|
44403
|
+
"jsDoc": "/**\n * `mdc-spinner` is loading spinner which is an indeterminate progress indicator, meaning\n * it's best for cases where the progress or duration of a process is variable or unknown.\n *\n * Spinner Variants:\n * - **Standalone (Default)**: Track has a blue color.\n * - **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\n * To ensure a minimum 3:1 contrast ratio, the color is changed internally to be the same color as the button’s\n * icon or label text.\n *\n * Spinner Sizes:\n * - **Large (96px)**: Use when replacing entire regions or pages that are still loading\n * - **MidSize (48px) (Default)**: Use for most use cases.\n * - **Small (24px)**: Use for inline with loading text.\n *\n * Customisation of the spinner size is allowed by setting the size to undefined and using the --mdc-spinner-size\n * CSS property.\n *\n * Spinner Colors:\n * - **Default**: Use for most use cases.\n * - **Inverted**: Only to be used within inverted components, such as coachmarks.\n *\n * Regarding accessibility, if an aria-label is provided, the role will be set to 'img'; if it is absent, the role\n * will be unset\n * and aria-hidden will be set to 'true' so the spinner will be ignored by screen readers.\n *\n * @tagname mdc-spinner\n *\n * @cssproperty --mdc-spinner-default-color - Allows customization of the default spinner color.\n * @cssproperty --mdc-spinner-inverted-color - Allows customization of the inverted spinner color.\n * @cssproperty --mdc-spinner-button-variant-color - Allows customization of the spinner Button variant color.\n * @cssproperty --mdc-spinner-size - Allows customization of the spinner size.\n *\n * @csspart container - The svg which contains the circle spinner.\n * @csspart circle - The circle of the spinner.\n */",
|
|
44404
|
+
"customElement": true
|
|
44405
|
+
}
|
|
44406
|
+
],
|
|
44407
|
+
"exports": [
|
|
44408
|
+
{
|
|
44409
|
+
"kind": "js",
|
|
44410
|
+
"name": "default",
|
|
44411
|
+
"declaration": {
|
|
44412
|
+
"name": "Spinner",
|
|
44413
|
+
"module": "components/spinner/spinner.component.js"
|
|
44414
|
+
}
|
|
44415
|
+
}
|
|
44416
|
+
]
|
|
44417
|
+
},
|
|
44279
44418
|
{
|
|
44280
44419
|
"kind": "javascript-module",
|
|
44281
44420
|
"path": "components/staticcheckbox/staticcheckbox.component.js",
|
|
@@ -44749,145 +44888,6 @@
|
|
|
44749
44888
|
}
|
|
44750
44889
|
]
|
|
44751
44890
|
},
|
|
44752
|
-
{
|
|
44753
|
-
"kind": "javascript-module",
|
|
44754
|
-
"path": "components/spinner/spinner.component.js",
|
|
44755
|
-
"declarations": [
|
|
44756
|
-
{
|
|
44757
|
-
"kind": "class",
|
|
44758
|
-
"description": "`mdc-spinner` is loading spinner which is an indeterminate progress indicator, meaning\nit's best for cases where the progress or duration of a process is variable or unknown.\n\nSpinner Variants:\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, the color is changed internally to be the same color as the button’s\nicon or label text.\n\nSpinner Sizes:\n- **Large (96px)**: Use when replacing entire regions or pages that are still loading\n- **MidSize (48px) (Default)**: Use for most use cases.\n- **Small (24px)**: Use for inline with loading text.\n\nCustomisation of the spinner size is allowed by setting the size to undefined and using the --mdc-spinner-size\nCSS property.\n\nSpinner Colors:\n- **Default**: Use for most use cases.\n- **Inverted**: Only to be used within inverted components, such as coachmarks.\n\nRegarding accessibility, if an aria-label is provided, the role will be set to 'img'; if it is absent, the role\nwill be unset\nand aria-hidden will be set to 'true' so the spinner will be ignored by screen readers.",
|
|
44759
|
-
"name": "Spinner",
|
|
44760
|
-
"cssProperties": [
|
|
44761
|
-
{
|
|
44762
|
-
"description": "Allows customization of the default spinner color.",
|
|
44763
|
-
"name": "--mdc-spinner-default-color"
|
|
44764
|
-
},
|
|
44765
|
-
{
|
|
44766
|
-
"description": "Allows customization of the inverted spinner color.",
|
|
44767
|
-
"name": "--mdc-spinner-inverted-color"
|
|
44768
|
-
},
|
|
44769
|
-
{
|
|
44770
|
-
"description": "Allows customization of the spinner Button variant color.",
|
|
44771
|
-
"name": "--mdc-spinner-button-variant-color"
|
|
44772
|
-
},
|
|
44773
|
-
{
|
|
44774
|
-
"description": "Allows customization of the spinner size.",
|
|
44775
|
-
"name": "--mdc-spinner-size"
|
|
44776
|
-
}
|
|
44777
|
-
],
|
|
44778
|
-
"cssParts": [
|
|
44779
|
-
{
|
|
44780
|
-
"description": "The svg which contains the circle spinner.",
|
|
44781
|
-
"name": "container"
|
|
44782
|
-
},
|
|
44783
|
-
{
|
|
44784
|
-
"description": "The circle of the spinner.",
|
|
44785
|
-
"name": "circle"
|
|
44786
|
-
}
|
|
44787
|
-
],
|
|
44788
|
-
"members": [
|
|
44789
|
-
{
|
|
44790
|
-
"kind": "field",
|
|
44791
|
-
"name": "inverted",
|
|
44792
|
-
"type": {
|
|
44793
|
-
"text": "boolean | undefined"
|
|
44794
|
-
},
|
|
44795
|
-
"description": "The spinner color can be inverted by setting the inverted attribute to true.",
|
|
44796
|
-
"default": "false",
|
|
44797
|
-
"attribute": "inverted",
|
|
44798
|
-
"reflects": true
|
|
44799
|
-
},
|
|
44800
|
-
{
|
|
44801
|
-
"kind": "field",
|
|
44802
|
-
"name": "size",
|
|
44803
|
-
"type": {
|
|
44804
|
-
"text": "SpinnerSize | undefined"
|
|
44805
|
-
},
|
|
44806
|
-
"description": "Size of the spinner.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'\n- 'undefined'",
|
|
44807
|
-
"default": "midsize",
|
|
44808
|
-
"attribute": "size",
|
|
44809
|
-
"reflects": true
|
|
44810
|
-
},
|
|
44811
|
-
{
|
|
44812
|
-
"kind": "field",
|
|
44813
|
-
"name": "ariaLabel",
|
|
44814
|
-
"type": {
|
|
44815
|
-
"text": "string | null"
|
|
44816
|
-
},
|
|
44817
|
-
"default": "null",
|
|
44818
|
-
"description": "Aria-label attribute to be set for accessibility",
|
|
44819
|
-
"attribute": "aria-label"
|
|
44820
|
-
},
|
|
44821
|
-
{
|
|
44822
|
-
"kind": "field",
|
|
44823
|
-
"name": "variant",
|
|
44824
|
-
"type": {
|
|
44825
|
-
"text": "SpinnerVariant"
|
|
44826
|
-
},
|
|
44827
|
-
"description": "There are 2 variants of spinner: default and button. Their coloring is different.\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, change the active indicator color to be the same color as the button’s\nicon or label text.",
|
|
44828
|
-
"default": "standalone",
|
|
44829
|
-
"attribute": "variant",
|
|
44830
|
-
"reflects": true
|
|
44831
|
-
}
|
|
44832
|
-
],
|
|
44833
|
-
"attributes": [
|
|
44834
|
-
{
|
|
44835
|
-
"name": "inverted",
|
|
44836
|
-
"type": {
|
|
44837
|
-
"text": "boolean | undefined"
|
|
44838
|
-
},
|
|
44839
|
-
"description": "The spinner color can be inverted by setting the inverted attribute to true.",
|
|
44840
|
-
"default": "false",
|
|
44841
|
-
"fieldName": "inverted"
|
|
44842
|
-
},
|
|
44843
|
-
{
|
|
44844
|
-
"name": "size",
|
|
44845
|
-
"type": {
|
|
44846
|
-
"text": "SpinnerSize | undefined"
|
|
44847
|
-
},
|
|
44848
|
-
"description": "Size of the spinner.\nAcceptable values include:\n\n- 'small'\n- 'midsize'\n- 'large'\n- 'undefined'",
|
|
44849
|
-
"default": "midsize",
|
|
44850
|
-
"fieldName": "size"
|
|
44851
|
-
},
|
|
44852
|
-
{
|
|
44853
|
-
"name": "aria-label",
|
|
44854
|
-
"type": {
|
|
44855
|
-
"text": "string | null"
|
|
44856
|
-
},
|
|
44857
|
-
"default": "null",
|
|
44858
|
-
"description": "Aria-label attribute to be set for accessibility",
|
|
44859
|
-
"fieldName": "ariaLabel"
|
|
44860
|
-
},
|
|
44861
|
-
{
|
|
44862
|
-
"name": "variant",
|
|
44863
|
-
"type": {
|
|
44864
|
-
"text": "SpinnerVariant"
|
|
44865
|
-
},
|
|
44866
|
-
"description": "There are 2 variants of spinner: default and button. Their coloring is different.\n- **Standalone (Default)**: Track has a blue color.\n- **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\nTo ensure a minimum 3:1 contrast ratio, change the active indicator color to be the same color as the button’s\nicon or label text.",
|
|
44867
|
-
"default": "standalone",
|
|
44868
|
-
"fieldName": "variant"
|
|
44869
|
-
}
|
|
44870
|
-
],
|
|
44871
|
-
"superclass": {
|
|
44872
|
-
"name": "Component",
|
|
44873
|
-
"module": "/src/models"
|
|
44874
|
-
},
|
|
44875
|
-
"tagName": "mdc-spinner",
|
|
44876
|
-
"jsDoc": "/**\n * `mdc-spinner` is loading spinner which is an indeterminate progress indicator, meaning\n * it's best for cases where the progress or duration of a process is variable or unknown.\n *\n * Spinner Variants:\n * - **Standalone (Default)**: Track has a blue color.\n * - **Button**: To be used when placed in a button to show that the button’s action is currently in progress.\n * To ensure a minimum 3:1 contrast ratio, the color is changed internally to be the same color as the button’s\n * icon or label text.\n *\n * Spinner Sizes:\n * - **Large (96px)**: Use when replacing entire regions or pages that are still loading\n * - **MidSize (48px) (Default)**: Use for most use cases.\n * - **Small (24px)**: Use for inline with loading text.\n *\n * Customisation of the spinner size is allowed by setting the size to undefined and using the --mdc-spinner-size\n * CSS property.\n *\n * Spinner Colors:\n * - **Default**: Use for most use cases.\n * - **Inverted**: Only to be used within inverted components, such as coachmarks.\n *\n * Regarding accessibility, if an aria-label is provided, the role will be set to 'img'; if it is absent, the role\n * will be unset\n * and aria-hidden will be set to 'true' so the spinner will be ignored by screen readers.\n *\n * @tagname mdc-spinner\n *\n * @cssproperty --mdc-spinner-default-color - Allows customization of the default spinner color.\n * @cssproperty --mdc-spinner-inverted-color - Allows customization of the inverted spinner color.\n * @cssproperty --mdc-spinner-button-variant-color - Allows customization of the spinner Button variant color.\n * @cssproperty --mdc-spinner-size - Allows customization of the spinner size.\n *\n * @csspart container - The svg which contains the circle spinner.\n * @csspart circle - The circle of the spinner.\n */",
|
|
44877
|
-
"customElement": true
|
|
44878
|
-
}
|
|
44879
|
-
],
|
|
44880
|
-
"exports": [
|
|
44881
|
-
{
|
|
44882
|
-
"kind": "js",
|
|
44883
|
-
"name": "default",
|
|
44884
|
-
"declaration": {
|
|
44885
|
-
"name": "Spinner",
|
|
44886
|
-
"module": "components/spinner/spinner.component.js"
|
|
44887
|
-
}
|
|
44888
|
-
}
|
|
44889
|
-
]
|
|
44890
|
-
},
|
|
44891
44891
|
{
|
|
44892
44892
|
"kind": "javascript-module",
|
|
44893
44893
|
"path": "components/statictoggle/statictoggle.component.js",
|
|
@@ -46483,6 +46483,106 @@
|
|
|
46483
46483
|
}
|
|
46484
46484
|
]
|
|
46485
46485
|
},
|
|
46486
|
+
{
|
|
46487
|
+
"kind": "javascript-module",
|
|
46488
|
+
"path": "components/tablist/tablist.component.js",
|
|
46489
|
+
"declarations": [
|
|
46490
|
+
{
|
|
46491
|
+
"kind": "class",
|
|
46492
|
+
"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`.",
|
|
46493
|
+
"name": "TabList",
|
|
46494
|
+
"cssProperties": [
|
|
46495
|
+
{
|
|
46496
|
+
"description": "Gap between tabs",
|
|
46497
|
+
"name": "--mdc-tablist-gap"
|
|
46498
|
+
},
|
|
46499
|
+
{
|
|
46500
|
+
"description": "Width of the tablist",
|
|
46501
|
+
"name": "--mdc-tablist-width"
|
|
46502
|
+
},
|
|
46503
|
+
{
|
|
46504
|
+
"description": "Margin value for the arrow button",
|
|
46505
|
+
"name": "--mdc-tablist-arrow-button-margin"
|
|
46506
|
+
}
|
|
46507
|
+
],
|
|
46508
|
+
"cssParts": [
|
|
46509
|
+
{
|
|
46510
|
+
"description": "The tablist container.",
|
|
46511
|
+
"name": "container"
|
|
46512
|
+
}
|
|
46513
|
+
],
|
|
46514
|
+
"slots": [
|
|
46515
|
+
{
|
|
46516
|
+
"description": "slot for mdc-tab elements.",
|
|
46517
|
+
"name": "Default"
|
|
46518
|
+
}
|
|
46519
|
+
],
|
|
46520
|
+
"members": [
|
|
46521
|
+
{
|
|
46522
|
+
"kind": "field",
|
|
46523
|
+
"name": "activeTabId",
|
|
46524
|
+
"type": {
|
|
46525
|
+
"text": "string | undefined"
|
|
46526
|
+
},
|
|
46527
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
46528
|
+
"attribute": "active-tab-id",
|
|
46529
|
+
"reflects": true
|
|
46530
|
+
},
|
|
46531
|
+
{
|
|
46532
|
+
"kind": "field",
|
|
46533
|
+
"name": "dataAriaLabel",
|
|
46534
|
+
"type": {
|
|
46535
|
+
"text": "string | undefined"
|
|
46536
|
+
},
|
|
46537
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
46538
|
+
"attribute": "data-aria-label"
|
|
46539
|
+
}
|
|
46540
|
+
],
|
|
46541
|
+
"events": [
|
|
46542
|
+
{
|
|
46543
|
+
"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);`",
|
|
46544
|
+
"name": "change",
|
|
46545
|
+
"reactName": "onChange"
|
|
46546
|
+
}
|
|
46547
|
+
],
|
|
46548
|
+
"attributes": [
|
|
46549
|
+
{
|
|
46550
|
+
"name": "active-tab-id",
|
|
46551
|
+
"type": {
|
|
46552
|
+
"text": "string | undefined"
|
|
46553
|
+
},
|
|
46554
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
46555
|
+
"fieldName": "activeTabId"
|
|
46556
|
+
},
|
|
46557
|
+
{
|
|
46558
|
+
"name": "data-aria-label",
|
|
46559
|
+
"type": {
|
|
46560
|
+
"text": "string | undefined"
|
|
46561
|
+
},
|
|
46562
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
46563
|
+
"fieldName": "dataAriaLabel"
|
|
46564
|
+
}
|
|
46565
|
+
],
|
|
46566
|
+
"superclass": {
|
|
46567
|
+
"name": "Component",
|
|
46568
|
+
"module": "/src/models"
|
|
46569
|
+
},
|
|
46570
|
+
"tagName": "mdc-tablist",
|
|
46571
|
+
"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 *\n * @csspart container - The tablist container.\n */",
|
|
46572
|
+
"customElement": true
|
|
46573
|
+
}
|
|
46574
|
+
],
|
|
46575
|
+
"exports": [
|
|
46576
|
+
{
|
|
46577
|
+
"kind": "js",
|
|
46578
|
+
"name": "default",
|
|
46579
|
+
"declaration": {
|
|
46580
|
+
"name": "TabList",
|
|
46581
|
+
"module": "components/tablist/tablist.component.js"
|
|
46582
|
+
}
|
|
46583
|
+
}
|
|
46584
|
+
]
|
|
46585
|
+
},
|
|
46486
46586
|
{
|
|
46487
46587
|
"kind": "javascript-module",
|
|
46488
46588
|
"path": "components/text/text.component.js",
|
|
@@ -47919,106 +48019,6 @@
|
|
|
47919
48019
|
}
|
|
47920
48020
|
]
|
|
47921
48021
|
},
|
|
47922
|
-
{
|
|
47923
|
-
"kind": "javascript-module",
|
|
47924
|
-
"path": "components/tablist/tablist.component.js",
|
|
47925
|
-
"declarations": [
|
|
47926
|
-
{
|
|
47927
|
-
"kind": "class",
|
|
47928
|
-
"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`.",
|
|
47929
|
-
"name": "TabList",
|
|
47930
|
-
"cssProperties": [
|
|
47931
|
-
{
|
|
47932
|
-
"description": "Gap between tabs",
|
|
47933
|
-
"name": "--mdc-tablist-gap"
|
|
47934
|
-
},
|
|
47935
|
-
{
|
|
47936
|
-
"description": "Width of the tablist",
|
|
47937
|
-
"name": "--mdc-tablist-width"
|
|
47938
|
-
},
|
|
47939
|
-
{
|
|
47940
|
-
"description": "Margin value for the arrow button",
|
|
47941
|
-
"name": "--mdc-tablist-arrow-button-margin"
|
|
47942
|
-
}
|
|
47943
|
-
],
|
|
47944
|
-
"cssParts": [
|
|
47945
|
-
{
|
|
47946
|
-
"description": "The tablist container.",
|
|
47947
|
-
"name": "container"
|
|
47948
|
-
}
|
|
47949
|
-
],
|
|
47950
|
-
"slots": [
|
|
47951
|
-
{
|
|
47952
|
-
"description": "slot for mdc-tab elements.",
|
|
47953
|
-
"name": "Default"
|
|
47954
|
-
}
|
|
47955
|
-
],
|
|
47956
|
-
"members": [
|
|
47957
|
-
{
|
|
47958
|
-
"kind": "field",
|
|
47959
|
-
"name": "activeTabId",
|
|
47960
|
-
"type": {
|
|
47961
|
-
"text": "string | undefined"
|
|
47962
|
-
},
|
|
47963
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
47964
|
-
"attribute": "active-tab-id",
|
|
47965
|
-
"reflects": true
|
|
47966
|
-
},
|
|
47967
|
-
{
|
|
47968
|
-
"kind": "field",
|
|
47969
|
-
"name": "dataAriaLabel",
|
|
47970
|
-
"type": {
|
|
47971
|
-
"text": "string | undefined"
|
|
47972
|
-
},
|
|
47973
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
47974
|
-
"attribute": "data-aria-label"
|
|
47975
|
-
}
|
|
47976
|
-
],
|
|
47977
|
-
"events": [
|
|
47978
|
-
{
|
|
47979
|
-
"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);`",
|
|
47980
|
-
"name": "change",
|
|
47981
|
-
"reactName": "onChange"
|
|
47982
|
-
}
|
|
47983
|
-
],
|
|
47984
|
-
"attributes": [
|
|
47985
|
-
{
|
|
47986
|
-
"name": "active-tab-id",
|
|
47987
|
-
"type": {
|
|
47988
|
-
"text": "string | undefined"
|
|
47989
|
-
},
|
|
47990
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
47991
|
-
"fieldName": "activeTabId"
|
|
47992
|
-
},
|
|
47993
|
-
{
|
|
47994
|
-
"name": "data-aria-label",
|
|
47995
|
-
"type": {
|
|
47996
|
-
"text": "string | undefined"
|
|
47997
|
-
},
|
|
47998
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
47999
|
-
"fieldName": "dataAriaLabel"
|
|
48000
|
-
}
|
|
48001
|
-
],
|
|
48002
|
-
"superclass": {
|
|
48003
|
-
"name": "Component",
|
|
48004
|
-
"module": "/src/models"
|
|
48005
|
-
},
|
|
48006
|
-
"tagName": "mdc-tablist",
|
|
48007
|
-
"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 *\n * @csspart container - The tablist container.\n */",
|
|
48008
|
-
"customElement": true
|
|
48009
|
-
}
|
|
48010
|
-
],
|
|
48011
|
-
"exports": [
|
|
48012
|
-
{
|
|
48013
|
-
"kind": "js",
|
|
48014
|
-
"name": "default",
|
|
48015
|
-
"declaration": {
|
|
48016
|
-
"name": "TabList",
|
|
48017
|
-
"module": "components/tablist/tablist.component.js"
|
|
48018
|
-
}
|
|
48019
|
-
}
|
|
48020
|
-
]
|
|
48021
|
-
},
|
|
48022
48022
|
{
|
|
48023
48023
|
"kind": "javascript-module",
|
|
48024
48024
|
"path": "components/toast/toast.component.js",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -68,19 +68,19 @@ export { default as Selectlistbox } from './selectlistbox';
|
|
|
68
68
|
export { default as SideNavigation } from './sidenavigation';
|
|
69
69
|
export { default as Skeleton } from './skeleton';
|
|
70
70
|
export { default as Slider } from './slider';
|
|
71
|
+
export { default as Spinner } from './spinner';
|
|
71
72
|
export { default as StaticCheckbox } from './staticcheckbox';
|
|
72
73
|
export { default as StaticChip } from './staticchip';
|
|
73
74
|
export { default as StaticRadio } from './staticradio';
|
|
74
|
-
export { default as Spinner } from './spinner';
|
|
75
75
|
export { default as StaticToggle } from './statictoggle';
|
|
76
76
|
export { default as Stepper } from './stepper';
|
|
77
77
|
export { default as StepperConnector } from './stepperconnector';
|
|
78
78
|
export { default as StepperItem } from './stepperitem';
|
|
79
79
|
export { default as Tab } from './tab';
|
|
80
|
+
export { default as TabList } from './tablist';
|
|
80
81
|
export { default as Text } from './text';
|
|
81
82
|
export { default as Textarea } from './textarea';
|
|
82
83
|
export { default as ThemeProvider } from './themeprovider';
|
|
83
|
-
export { default as TabList } from './tablist';
|
|
84
84
|
export { default as Toast } from './toast';
|
|
85
85
|
export { default as Toggle } from './toggle';
|
|
86
86
|
export { default as ToggleTip } from './toggletip';
|
package/dist/react/index.js
CHANGED
|
@@ -68,19 +68,19 @@ export { default as Selectlistbox } from './selectlistbox';
|
|
|
68
68
|
export { default as SideNavigation } from './sidenavigation';
|
|
69
69
|
export { default as Skeleton } from './skeleton';
|
|
70
70
|
export { default as Slider } from './slider';
|
|
71
|
+
export { default as Spinner } from './spinner';
|
|
71
72
|
export { default as StaticCheckbox } from './staticcheckbox';
|
|
72
73
|
export { default as StaticChip } from './staticchip';
|
|
73
74
|
export { default as StaticRadio } from './staticradio';
|
|
74
|
-
export { default as Spinner } from './spinner';
|
|
75
75
|
export { default as StaticToggle } from './statictoggle';
|
|
76
76
|
export { default as Stepper } from './stepper';
|
|
77
77
|
export { default as StepperConnector } from './stepperconnector';
|
|
78
78
|
export { default as StepperItem } from './stepperitem';
|
|
79
79
|
export { default as Tab } from './tab';
|
|
80
|
+
export { default as TabList } from './tablist';
|
|
80
81
|
export { default as Text } from './text';
|
|
81
82
|
export { default as Textarea } from './textarea';
|
|
82
83
|
export { default as ThemeProvider } from './themeprovider';
|
|
83
|
-
export { default as TabList } from './tablist';
|
|
84
84
|
export { default as Toast } from './toast';
|
|
85
85
|
export { default as Toggle } from './toggle';
|
|
86
86
|
export { default as ToggleTip } from './toggletip';
|