@momentum-design/components 0.120.29 → 0.120.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +100 -100
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -42910,6 +42910,106 @@
|
|
|
42910
42910
|
}
|
|
42911
42911
|
]
|
|
42912
42912
|
},
|
|
42913
|
+
{
|
|
42914
|
+
"kind": "javascript-module",
|
|
42915
|
+
"path": "components/tablist/tablist.component.js",
|
|
42916
|
+
"declarations": [
|
|
42917
|
+
{
|
|
42918
|
+
"kind": "class",
|
|
42919
|
+
"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`.",
|
|
42920
|
+
"name": "TabList",
|
|
42921
|
+
"cssProperties": [
|
|
42922
|
+
{
|
|
42923
|
+
"description": "Gap between tabs",
|
|
42924
|
+
"name": "--mdc-tablist-gap"
|
|
42925
|
+
},
|
|
42926
|
+
{
|
|
42927
|
+
"description": "Width of the tablist",
|
|
42928
|
+
"name": "--mdc-tablist-width"
|
|
42929
|
+
},
|
|
42930
|
+
{
|
|
42931
|
+
"description": "Margin value for the arrow button",
|
|
42932
|
+
"name": "--mdc-tablist-arrow-button-margin"
|
|
42933
|
+
}
|
|
42934
|
+
],
|
|
42935
|
+
"cssParts": [
|
|
42936
|
+
{
|
|
42937
|
+
"description": "The tablist container.",
|
|
42938
|
+
"name": "container"
|
|
42939
|
+
}
|
|
42940
|
+
],
|
|
42941
|
+
"slots": [
|
|
42942
|
+
{
|
|
42943
|
+
"description": "slot for mdc-tab elements.",
|
|
42944
|
+
"name": "Default"
|
|
42945
|
+
}
|
|
42946
|
+
],
|
|
42947
|
+
"members": [
|
|
42948
|
+
{
|
|
42949
|
+
"kind": "field",
|
|
42950
|
+
"name": "activeTabId",
|
|
42951
|
+
"type": {
|
|
42952
|
+
"text": "string | undefined"
|
|
42953
|
+
},
|
|
42954
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
42955
|
+
"attribute": "active-tab-id",
|
|
42956
|
+
"reflects": true
|
|
42957
|
+
},
|
|
42958
|
+
{
|
|
42959
|
+
"kind": "field",
|
|
42960
|
+
"name": "dataAriaLabel",
|
|
42961
|
+
"type": {
|
|
42962
|
+
"text": "string | undefined"
|
|
42963
|
+
},
|
|
42964
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
42965
|
+
"attribute": "data-aria-label"
|
|
42966
|
+
}
|
|
42967
|
+
],
|
|
42968
|
+
"events": [
|
|
42969
|
+
{
|
|
42970
|
+
"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);`",
|
|
42971
|
+
"name": "change",
|
|
42972
|
+
"reactName": "onChange"
|
|
42973
|
+
}
|
|
42974
|
+
],
|
|
42975
|
+
"attributes": [
|
|
42976
|
+
{
|
|
42977
|
+
"name": "active-tab-id",
|
|
42978
|
+
"type": {
|
|
42979
|
+
"text": "string | undefined"
|
|
42980
|
+
},
|
|
42981
|
+
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
42982
|
+
"fieldName": "activeTabId"
|
|
42983
|
+
},
|
|
42984
|
+
{
|
|
42985
|
+
"name": "data-aria-label",
|
|
42986
|
+
"type": {
|
|
42987
|
+
"text": "string | undefined"
|
|
42988
|
+
},
|
|
42989
|
+
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
42990
|
+
"fieldName": "dataAriaLabel"
|
|
42991
|
+
}
|
|
42992
|
+
],
|
|
42993
|
+
"superclass": {
|
|
42994
|
+
"name": "Component",
|
|
42995
|
+
"module": "/src/models"
|
|
42996
|
+
},
|
|
42997
|
+
"tagName": "mdc-tablist",
|
|
42998
|
+
"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 */",
|
|
42999
|
+
"customElement": true
|
|
43000
|
+
}
|
|
43001
|
+
],
|
|
43002
|
+
"exports": [
|
|
43003
|
+
{
|
|
43004
|
+
"kind": "js",
|
|
43005
|
+
"name": "default",
|
|
43006
|
+
"declaration": {
|
|
43007
|
+
"name": "TabList",
|
|
43008
|
+
"module": "components/tablist/tablist.component.js"
|
|
43009
|
+
}
|
|
43010
|
+
}
|
|
43011
|
+
]
|
|
43012
|
+
},
|
|
42913
43013
|
{
|
|
42914
43014
|
"kind": "javascript-module",
|
|
42915
43015
|
"path": "components/tab/tab.component.js",
|
|
@@ -43827,106 +43927,6 @@
|
|
|
43827
43927
|
}
|
|
43828
43928
|
]
|
|
43829
43929
|
},
|
|
43830
|
-
{
|
|
43831
|
-
"kind": "javascript-module",
|
|
43832
|
-
"path": "components/tablist/tablist.component.js",
|
|
43833
|
-
"declarations": [
|
|
43834
|
-
{
|
|
43835
|
-
"kind": "class",
|
|
43836
|
-
"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`.",
|
|
43837
|
-
"name": "TabList",
|
|
43838
|
-
"cssProperties": [
|
|
43839
|
-
{
|
|
43840
|
-
"description": "Gap between tabs",
|
|
43841
|
-
"name": "--mdc-tablist-gap"
|
|
43842
|
-
},
|
|
43843
|
-
{
|
|
43844
|
-
"description": "Width of the tablist",
|
|
43845
|
-
"name": "--mdc-tablist-width"
|
|
43846
|
-
},
|
|
43847
|
-
{
|
|
43848
|
-
"description": "Margin value for the arrow button",
|
|
43849
|
-
"name": "--mdc-tablist-arrow-button-margin"
|
|
43850
|
-
}
|
|
43851
|
-
],
|
|
43852
|
-
"cssParts": [
|
|
43853
|
-
{
|
|
43854
|
-
"description": "The tablist container.",
|
|
43855
|
-
"name": "container"
|
|
43856
|
-
}
|
|
43857
|
-
],
|
|
43858
|
-
"slots": [
|
|
43859
|
-
{
|
|
43860
|
-
"description": "slot for mdc-tab elements.",
|
|
43861
|
-
"name": "Default"
|
|
43862
|
-
}
|
|
43863
|
-
],
|
|
43864
|
-
"members": [
|
|
43865
|
-
{
|
|
43866
|
-
"kind": "field",
|
|
43867
|
-
"name": "activeTabId",
|
|
43868
|
-
"type": {
|
|
43869
|
-
"text": "string | undefined"
|
|
43870
|
-
},
|
|
43871
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
43872
|
-
"attribute": "active-tab-id",
|
|
43873
|
-
"reflects": true
|
|
43874
|
-
},
|
|
43875
|
-
{
|
|
43876
|
-
"kind": "field",
|
|
43877
|
-
"name": "dataAriaLabel",
|
|
43878
|
-
"type": {
|
|
43879
|
-
"text": "string | undefined"
|
|
43880
|
-
},
|
|
43881
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
43882
|
-
"attribute": "data-aria-label"
|
|
43883
|
-
}
|
|
43884
|
-
],
|
|
43885
|
-
"events": [
|
|
43886
|
-
{
|
|
43887
|
-
"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);`",
|
|
43888
|
-
"name": "change",
|
|
43889
|
-
"reactName": "onChange"
|
|
43890
|
-
}
|
|
43891
|
-
],
|
|
43892
|
-
"attributes": [
|
|
43893
|
-
{
|
|
43894
|
-
"name": "active-tab-id",
|
|
43895
|
-
"type": {
|
|
43896
|
-
"text": "string | undefined"
|
|
43897
|
-
},
|
|
43898
|
-
"description": "ID of the active tab, defaults to the first tab if not provided",
|
|
43899
|
-
"fieldName": "activeTabId"
|
|
43900
|
-
},
|
|
43901
|
-
{
|
|
43902
|
-
"name": "data-aria-label",
|
|
43903
|
-
"type": {
|
|
43904
|
-
"text": "string | undefined"
|
|
43905
|
-
},
|
|
43906
|
-
"description": "Label for the tablist.\nThis is used when the tablist does not have a visible label.",
|
|
43907
|
-
"fieldName": "dataAriaLabel"
|
|
43908
|
-
}
|
|
43909
|
-
],
|
|
43910
|
-
"superclass": {
|
|
43911
|
-
"name": "Component",
|
|
43912
|
-
"module": "/src/models"
|
|
43913
|
-
},
|
|
43914
|
-
"tagName": "mdc-tablist",
|
|
43915
|
-
"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 */",
|
|
43916
|
-
"customElement": true
|
|
43917
|
-
}
|
|
43918
|
-
],
|
|
43919
|
-
"exports": [
|
|
43920
|
-
{
|
|
43921
|
-
"kind": "js",
|
|
43922
|
-
"name": "default",
|
|
43923
|
-
"declaration": {
|
|
43924
|
-
"name": "TabList",
|
|
43925
|
-
"module": "components/tablist/tablist.component.js"
|
|
43926
|
-
}
|
|
43927
|
-
}
|
|
43928
|
-
]
|
|
43929
|
-
},
|
|
43930
43930
|
{
|
|
43931
43931
|
"kind": "javascript-module",
|
|
43932
43932
|
"path": "components/text/text.component.js",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -74,8 +74,8 @@ export { default as StaticToggle } from './statictoggle';
|
|
|
74
74
|
export { default as Stepper } from './stepper';
|
|
75
75
|
export { default as StepperConnector } from './stepperconnector';
|
|
76
76
|
export { default as StepperItem } from './stepperitem';
|
|
77
|
-
export { default as Tab } from './tab';
|
|
78
77
|
export { default as TabList } from './tablist';
|
|
78
|
+
export { default as Tab } from './tab';
|
|
79
79
|
export { default as Text } from './text';
|
|
80
80
|
export { default as Textarea } from './textarea';
|
|
81
81
|
export { default as ThemeProvider } from './themeprovider';
|
package/dist/react/index.js
CHANGED
|
@@ -74,8 +74,8 @@ export { default as StaticToggle } from './statictoggle';
|
|
|
74
74
|
export { default as Stepper } from './stepper';
|
|
75
75
|
export { default as StepperConnector } from './stepperconnector';
|
|
76
76
|
export { default as StepperItem } from './stepperitem';
|
|
77
|
-
export { default as Tab } from './tab';
|
|
78
77
|
export { default as TabList } from './tablist';
|
|
78
|
+
export { default as Tab } from './tab';
|
|
79
79
|
export { default as Text } from './text';
|
|
80
80
|
export { default as Textarea } from './textarea';
|
|
81
81
|
export { default as ThemeProvider } from './themeprovider';
|