@momentum-design/components 0.120.1 → 0.120.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.
@@ -24,6 +24,7 @@ export class PopoverPortal extends Component {
24
24
  super.connectedCallback();
25
25
  // We don't want the portal to be focusable or visible for screen readers
26
26
  this.ariaHidden = 'true';
27
+ this.style.display = 'none';
27
28
  }
28
29
  /**
29
30
  * When the portal removed from the DOM, we remove the popover from the container as well.
@@ -38210,41 +38210,6 @@
38210
38210
  }
38211
38211
  ]
38212
38212
  },
38213
- {
38214
- "kind": "javascript-module",
38215
- "path": "components/selectlistbox/selectlistbox.component.js",
38216
- "declarations": [
38217
- {
38218
- "kind": "class",
38219
- "description": "Selectlistbox component as Light DOM component to act as a simple wrapper\nfor mdc-option components to ensure accessibility and proper role assignment.\n\nOnce [ariaOwnsElements](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/ariaOwnsElements) is supported in browsers, this component can be removed\nand mdc-option can be used directly in the select component with a listbox in a different\nshadow root and aria-owns attribute to connect them.",
38220
- "name": "Selectlistbox",
38221
- "slots": [
38222
- {
38223
- "description": "This is a default/unnamed slot, which can be used to insert mdc-option components.",
38224
- "name": "default"
38225
- }
38226
- ],
38227
- "members": [],
38228
- "superclass": {
38229
- "name": "Component",
38230
- "module": "/src/models"
38231
- },
38232
- "tagName": "mdc-selectlistbox",
38233
- "jsDoc": "/**\n * Selectlistbox component as Light DOM component to act as a simple wrapper\n * for mdc-option components to ensure accessibility and proper role assignment.\n *\n * Once [ariaOwnsElements](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/ariaOwnsElements) is supported in browsers, this component can be removed\n * and mdc-option can be used directly in the select component with a listbox in a different\n * shadow root and aria-owns attribute to connect them.\n *\n * @tagname mdc-selectlistbox\n *\n * @slot default - This is a default/unnamed slot, which can be used to insert mdc-option components.\n */",
38234
- "customElement": true
38235
- }
38236
- ],
38237
- "exports": [
38238
- {
38239
- "kind": "js",
38240
- "name": "default",
38241
- "declaration": {
38242
- "name": "Selectlistbox",
38243
- "module": "components/selectlistbox/selectlistbox.component.js"
38244
- }
38245
- }
38246
- ]
38247
- },
38248
38213
  {
38249
38214
  "kind": "javascript-module",
38250
38215
  "path": "components/sidenavigation/sidenavigation.component.js",
@@ -39331,6 +39296,41 @@
39331
39296
  }
39332
39297
  ]
39333
39298
  },
39299
+ {
39300
+ "kind": "javascript-module",
39301
+ "path": "components/selectlistbox/selectlistbox.component.js",
39302
+ "declarations": [
39303
+ {
39304
+ "kind": "class",
39305
+ "description": "Selectlistbox component as Light DOM component to act as a simple wrapper\nfor mdc-option components to ensure accessibility and proper role assignment.\n\nOnce [ariaOwnsElements](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/ariaOwnsElements) is supported in browsers, this component can be removed\nand mdc-option can be used directly in the select component with a listbox in a different\nshadow root and aria-owns attribute to connect them.",
39306
+ "name": "Selectlistbox",
39307
+ "slots": [
39308
+ {
39309
+ "description": "This is a default/unnamed slot, which can be used to insert mdc-option components.",
39310
+ "name": "default"
39311
+ }
39312
+ ],
39313
+ "members": [],
39314
+ "superclass": {
39315
+ "name": "Component",
39316
+ "module": "/src/models"
39317
+ },
39318
+ "tagName": "mdc-selectlistbox",
39319
+ "jsDoc": "/**\n * Selectlistbox component as Light DOM component to act as a simple wrapper\n * for mdc-option components to ensure accessibility and proper role assignment.\n *\n * Once [ariaOwnsElements](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/ariaOwnsElements) is supported in browsers, this component can be removed\n * and mdc-option can be used directly in the select component with a listbox in a different\n * shadow root and aria-owns attribute to connect them.\n *\n * @tagname mdc-selectlistbox\n *\n * @slot default - This is a default/unnamed slot, which can be used to insert mdc-option components.\n */",
39320
+ "customElement": true
39321
+ }
39322
+ ],
39323
+ "exports": [
39324
+ {
39325
+ "kind": "js",
39326
+ "name": "default",
39327
+ "declaration": {
39328
+ "name": "Selectlistbox",
39329
+ "module": "components/selectlistbox/selectlistbox.component.js"
39330
+ }
39331
+ }
39332
+ ]
39333
+ },
39334
39334
  {
39335
39335
  "kind": "javascript-module",
39336
39336
  "path": "components/spinner/spinner.component.js",
@@ -41442,106 +41442,6 @@
41442
41442
  }
41443
41443
  ]
41444
41444
  },
41445
- {
41446
- "kind": "javascript-module",
41447
- "path": "components/tablist/tablist.component.js",
41448
- "declarations": [
41449
- {
41450
- "kind": "class",
41451
- "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`.",
41452
- "name": "TabList",
41453
- "cssProperties": [
41454
- {
41455
- "description": "Gap between tabs",
41456
- "name": "--mdc-tablist-gap"
41457
- },
41458
- {
41459
- "description": "Width of the tablist",
41460
- "name": "--mdc-tablist-width"
41461
- },
41462
- {
41463
- "description": "Margin value for the arrow button",
41464
- "name": "--mdc-tablist-arrow-button-margin"
41465
- }
41466
- ],
41467
- "cssParts": [
41468
- {
41469
- "description": "The tablist container.",
41470
- "name": "container"
41471
- }
41472
- ],
41473
- "slots": [
41474
- {
41475
- "description": "slot for mdc-tab elements.",
41476
- "name": "Default"
41477
- }
41478
- ],
41479
- "members": [
41480
- {
41481
- "kind": "field",
41482
- "name": "activeTabId",
41483
- "type": {
41484
- "text": "string | undefined"
41485
- },
41486
- "description": "ID of the active tab, defaults to the first tab if not provided",
41487
- "attribute": "active-tab-id",
41488
- "reflects": true
41489
- },
41490
- {
41491
- "kind": "field",
41492
- "name": "dataAriaLabel",
41493
- "type": {
41494
- "text": "string | undefined"
41495
- },
41496
- "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
41497
- "attribute": "data-aria-label"
41498
- }
41499
- ],
41500
- "events": [
41501
- {
41502
- "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);`",
41503
- "name": "change",
41504
- "reactName": "onChange"
41505
- }
41506
- ],
41507
- "attributes": [
41508
- {
41509
- "name": "active-tab-id",
41510
- "type": {
41511
- "text": "string | undefined"
41512
- },
41513
- "description": "ID of the active tab, defaults to the first tab if not provided",
41514
- "fieldName": "activeTabId"
41515
- },
41516
- {
41517
- "name": "data-aria-label",
41518
- "type": {
41519
- "text": "string | undefined"
41520
- },
41521
- "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
41522
- "fieldName": "dataAriaLabel"
41523
- }
41524
- ],
41525
- "superclass": {
41526
- "name": "Component",
41527
- "module": "/src/models"
41528
- },
41529
- "tagName": "mdc-tablist",
41530
- "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 */",
41531
- "customElement": true
41532
- }
41533
- ],
41534
- "exports": [
41535
- {
41536
- "kind": "js",
41537
- "name": "default",
41538
- "declaration": {
41539
- "name": "TabList",
41540
- "module": "components/tablist/tablist.component.js"
41541
- }
41542
- }
41543
- ]
41544
- },
41545
41445
  {
41546
41446
  "kind": "javascript-module",
41547
41447
  "path": "components/text/text.component.js",
@@ -42712,6 +42612,106 @@
42712
42612
  }
42713
42613
  ]
42714
42614
  },
42615
+ {
42616
+ "kind": "javascript-module",
42617
+ "path": "components/tablist/tablist.component.js",
42618
+ "declarations": [
42619
+ {
42620
+ "kind": "class",
42621
+ "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`.",
42622
+ "name": "TabList",
42623
+ "cssProperties": [
42624
+ {
42625
+ "description": "Gap between tabs",
42626
+ "name": "--mdc-tablist-gap"
42627
+ },
42628
+ {
42629
+ "description": "Width of the tablist",
42630
+ "name": "--mdc-tablist-width"
42631
+ },
42632
+ {
42633
+ "description": "Margin value for the arrow button",
42634
+ "name": "--mdc-tablist-arrow-button-margin"
42635
+ }
42636
+ ],
42637
+ "cssParts": [
42638
+ {
42639
+ "description": "The tablist container.",
42640
+ "name": "container"
42641
+ }
42642
+ ],
42643
+ "slots": [
42644
+ {
42645
+ "description": "slot for mdc-tab elements.",
42646
+ "name": "Default"
42647
+ }
42648
+ ],
42649
+ "members": [
42650
+ {
42651
+ "kind": "field",
42652
+ "name": "activeTabId",
42653
+ "type": {
42654
+ "text": "string | undefined"
42655
+ },
42656
+ "description": "ID of the active tab, defaults to the first tab if not provided",
42657
+ "attribute": "active-tab-id",
42658
+ "reflects": true
42659
+ },
42660
+ {
42661
+ "kind": "field",
42662
+ "name": "dataAriaLabel",
42663
+ "type": {
42664
+ "text": "string | undefined"
42665
+ },
42666
+ "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
42667
+ "attribute": "data-aria-label"
42668
+ }
42669
+ ],
42670
+ "events": [
42671
+ {
42672
+ "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);`",
42673
+ "name": "change",
42674
+ "reactName": "onChange"
42675
+ }
42676
+ ],
42677
+ "attributes": [
42678
+ {
42679
+ "name": "active-tab-id",
42680
+ "type": {
42681
+ "text": "string | undefined"
42682
+ },
42683
+ "description": "ID of the active tab, defaults to the first tab if not provided",
42684
+ "fieldName": "activeTabId"
42685
+ },
42686
+ {
42687
+ "name": "data-aria-label",
42688
+ "type": {
42689
+ "text": "string | undefined"
42690
+ },
42691
+ "description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
42692
+ "fieldName": "dataAriaLabel"
42693
+ }
42694
+ ],
42695
+ "superclass": {
42696
+ "name": "Component",
42697
+ "module": "/src/models"
42698
+ },
42699
+ "tagName": "mdc-tablist",
42700
+ "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 */",
42701
+ "customElement": true
42702
+ }
42703
+ ],
42704
+ "exports": [
42705
+ {
42706
+ "kind": "js",
42707
+ "name": "default",
42708
+ "declaration": {
42709
+ "name": "TabList",
42710
+ "module": "components/tablist/tablist.component.js"
42711
+ }
42712
+ }
42713
+ ]
42714
+ },
42715
42715
  {
42716
42716
  "kind": "javascript-module",
42717
42717
  "path": "components/toast/toast.component.js",
@@ -61,10 +61,10 @@ export { default as RadioGroup } from './radiogroup';
61
61
  export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
62
62
  export { default as Searchfield } from './searchfield';
63
63
  export { default as Select } from './select';
64
- export { default as Selectlistbox } from './selectlistbox';
65
64
  export { default as SideNavigation } from './sidenavigation';
66
65
  export { default as Skeleton } from './skeleton';
67
66
  export { default as Slider } from './slider';
67
+ export { default as Selectlistbox } from './selectlistbox';
68
68
  export { default as Spinner } from './spinner';
69
69
  export { default as StaticCheckbox } from './staticcheckbox';
70
70
  export { default as StaticChip } from './staticchip';
@@ -74,10 +74,10 @@ export { default as Stepper } from './stepper';
74
74
  export { default as StepperConnector } from './stepperconnector';
75
75
  export { default as StepperItem } from './stepperitem';
76
76
  export { default as Tab } from './tab';
77
- export { default as TabList } from './tablist';
78
77
  export { default as Text } from './text';
79
78
  export { default as Textarea } from './textarea';
80
79
  export { default as ThemeProvider } from './themeprovider';
80
+ export { default as TabList } from './tablist';
81
81
  export { default as Toast } from './toast';
82
82
  export { default as Toggle } from './toggle';
83
83
  export { default as ToggleTip } from './toggletip';
@@ -61,10 +61,10 @@ export { default as RadioGroup } from './radiogroup';
61
61
  export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
62
62
  export { default as Searchfield } from './searchfield';
63
63
  export { default as Select } from './select';
64
- export { default as Selectlistbox } from './selectlistbox';
65
64
  export { default as SideNavigation } from './sidenavigation';
66
65
  export { default as Skeleton } from './skeleton';
67
66
  export { default as Slider } from './slider';
67
+ export { default as Selectlistbox } from './selectlistbox';
68
68
  export { default as Spinner } from './spinner';
69
69
  export { default as StaticCheckbox } from './staticcheckbox';
70
70
  export { default as StaticChip } from './staticchip';
@@ -74,10 +74,10 @@ export { default as Stepper } from './stepper';
74
74
  export { default as StepperConnector } from './stepperconnector';
75
75
  export { default as StepperItem } from './stepperitem';
76
76
  export { default as Tab } from './tab';
77
- export { default as TabList } from './tablist';
78
77
  export { default as Text } from './text';
79
78
  export { default as Textarea } from './textarea';
80
79
  export { default as ThemeProvider } from './themeprovider';
80
+ export { default as TabList } from './tablist';
81
81
  export { default as Toast } from './toast';
82
82
  export { default as Toggle } from './toggle';
83
83
  export { default as ToggleTip } from './toggletip';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.120.1",
4
+ "version": "0.120.2",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"