@momentum-design/components 0.74.3 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +318 -241
- package/dist/browser/index.js.map +4 -4
- package/dist/components/animation/animation.component.js +1 -1
- package/dist/components/buttongroup/buttongroup.component.d.ts +53 -0
- package/dist/components/buttongroup/buttongroup.component.js +94 -0
- package/dist/components/buttongroup/buttongroup.constants.d.ts +21 -0
- package/dist/components/buttongroup/buttongroup.constants.js +22 -0
- package/dist/components/buttongroup/buttongroup.styles.d.ts +2 -0
- package/dist/components/buttongroup/buttongroup.styles.js +81 -0
- package/dist/components/buttongroup/buttongroup.types.d.ts +6 -0
- package/dist/components/buttongroup/buttongroup.types.js +1 -0
- package/dist/components/buttongroup/index.d.ts +7 -0
- package/dist/components/buttongroup/index.js +4 -0
- package/dist/custom-elements.json +401 -269
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/react/buttongroup/index.d.ts +16 -0
- package/dist/react/buttongroup/index.js +25 -0
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/package.json +1 -1
@@ -1651,6 +1651,181 @@
|
|
1651
1651
|
}
|
1652
1652
|
]
|
1653
1653
|
},
|
1654
|
+
{
|
1655
|
+
"kind": "javascript-module",
|
1656
|
+
"path": "components/brandvisual/brandvisual.component.js",
|
1657
|
+
"declarations": [
|
1658
|
+
{
|
1659
|
+
"kind": "class",
|
1660
|
+
"description": "The `mdc-brandvisual` component is responsible for rendering logos dynamically & ensures they are\ndisplayed correctly within applications.\n\nFeatures:\n- Dynamically loads brandvisuals based on the `name` attribute.\n- Emits a `load` event when the brandvisual is successfully fetched.\n- Emits an `error` event when the brandvisual import fails.\n- Supports accessibility best practices.\n- Used for brand representation within the design system.",
|
1661
|
+
"name": "Brandvisual",
|
1662
|
+
"members": [
|
1663
|
+
{
|
1664
|
+
"kind": "field",
|
1665
|
+
"name": "brandVisualData",
|
1666
|
+
"type": {
|
1667
|
+
"text": "HTMLElement | undefined"
|
1668
|
+
},
|
1669
|
+
"privacy": "private"
|
1670
|
+
},
|
1671
|
+
{
|
1672
|
+
"kind": "field",
|
1673
|
+
"name": "name",
|
1674
|
+
"type": {
|
1675
|
+
"text": "BrandVisualNames | undefined"
|
1676
|
+
},
|
1677
|
+
"description": "Name of the brandVisual (= filename)",
|
1678
|
+
"attribute": "name",
|
1679
|
+
"reflects": true
|
1680
|
+
},
|
1681
|
+
{
|
1682
|
+
"kind": "method",
|
1683
|
+
"name": "getBrandVisualData",
|
1684
|
+
"privacy": "private"
|
1685
|
+
},
|
1686
|
+
{
|
1687
|
+
"kind": "method",
|
1688
|
+
"name": "handleBrandVisualLoadedSuccess",
|
1689
|
+
"privacy": "private",
|
1690
|
+
"parameters": [
|
1691
|
+
{
|
1692
|
+
"name": "brandVisualHtml",
|
1693
|
+
"type": {
|
1694
|
+
"text": "HTMLElement"
|
1695
|
+
},
|
1696
|
+
"description": "The brandvisual html element which has been fetched from the brandvisual provider."
|
1697
|
+
}
|
1698
|
+
],
|
1699
|
+
"description": "Sets the brandVisualData state to the fetched brandvisual.\nDispatches a 'load' event on the component once the brandvisual has been successfully loaded."
|
1700
|
+
},
|
1701
|
+
{
|
1702
|
+
"kind": "method",
|
1703
|
+
"name": "handleBrandVisualLoadedFailure",
|
1704
|
+
"privacy": "private",
|
1705
|
+
"parameters": [
|
1706
|
+
{
|
1707
|
+
"name": "error",
|
1708
|
+
"type": {
|
1709
|
+
"text": "unknown"
|
1710
|
+
}
|
1711
|
+
}
|
1712
|
+
],
|
1713
|
+
"description": "Dispatches an 'error' event on the component when the brandvisual import has failed.\nThis event bubbles and is cancelable.\nThe error detail is set to the error object."
|
1714
|
+
}
|
1715
|
+
],
|
1716
|
+
"events": [
|
1717
|
+
{
|
1718
|
+
"description": "(React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.",
|
1719
|
+
"name": "load",
|
1720
|
+
"reactName": "onLoad"
|
1721
|
+
},
|
1722
|
+
{
|
1723
|
+
"description": "(React: onError) This event is dispatched when the brandvisual fetching has failed.",
|
1724
|
+
"name": "error",
|
1725
|
+
"reactName": "onError"
|
1726
|
+
}
|
1727
|
+
],
|
1728
|
+
"attributes": [
|
1729
|
+
{
|
1730
|
+
"name": "name",
|
1731
|
+
"type": {
|
1732
|
+
"text": "BrandVisualNames | undefined"
|
1733
|
+
},
|
1734
|
+
"description": "Name of the brandVisual (= filename)",
|
1735
|
+
"fieldName": "name"
|
1736
|
+
}
|
1737
|
+
],
|
1738
|
+
"superclass": {
|
1739
|
+
"name": "Component",
|
1740
|
+
"module": "/src/models"
|
1741
|
+
},
|
1742
|
+
"tagName": "mdc-brandvisual",
|
1743
|
+
"jsDoc": "/**\n * The `mdc-brandvisual` component is responsible for rendering logos dynamically & ensures they are\n * displayed correctly within applications.\n *\n * Features:\n * - Dynamically loads brandvisuals based on the `name` attribute.\n * - Emits a `load` event when the brandvisual is successfully fetched.\n * - Emits an `error` event when the brandvisual import fails.\n * - Supports accessibility best practices.\n * - Used for brand representation within the design system.\n *\n * @tagname mdc-brandvisual\n *\n * @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.\n * @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.\n *\n */",
|
1744
|
+
"customElement": true
|
1745
|
+
}
|
1746
|
+
],
|
1747
|
+
"exports": [
|
1748
|
+
{
|
1749
|
+
"kind": "js",
|
1750
|
+
"name": "default",
|
1751
|
+
"declaration": {
|
1752
|
+
"name": "Brandvisual",
|
1753
|
+
"module": "components/brandvisual/brandvisual.component.js"
|
1754
|
+
}
|
1755
|
+
}
|
1756
|
+
]
|
1757
|
+
},
|
1758
|
+
{
|
1759
|
+
"kind": "javascript-module",
|
1760
|
+
"path": "components/bullet/bullet.component.js",
|
1761
|
+
"declarations": [
|
1762
|
+
{
|
1763
|
+
"kind": "class",
|
1764
|
+
"description": "Bullet component, which is a visual marker\nand be used to organize and present items in a list format.",
|
1765
|
+
"name": "Bullet",
|
1766
|
+
"cssProperties": [
|
1767
|
+
{
|
1768
|
+
"description": "background color of the bullet",
|
1769
|
+
"name": "--mdc-bullet-background-color"
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"description": "small size value of the bullet",
|
1773
|
+
"name": "--mdc-bullet-size-small"
|
1774
|
+
},
|
1775
|
+
{
|
1776
|
+
"description": "medium size value of the bullet",
|
1777
|
+
"name": "--mdc-bullet-size-medium"
|
1778
|
+
},
|
1779
|
+
{
|
1780
|
+
"description": "large size value of the bullet",
|
1781
|
+
"name": "--mdc-bullet-size-large"
|
1782
|
+
}
|
1783
|
+
],
|
1784
|
+
"members": [
|
1785
|
+
{
|
1786
|
+
"kind": "field",
|
1787
|
+
"name": "size",
|
1788
|
+
"type": {
|
1789
|
+
"text": "Size"
|
1790
|
+
},
|
1791
|
+
"privacy": "public",
|
1792
|
+
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
1793
|
+
"default": "small",
|
1794
|
+
"attribute": "size",
|
1795
|
+
"reflects": true
|
1796
|
+
}
|
1797
|
+
],
|
1798
|
+
"attributes": [
|
1799
|
+
{
|
1800
|
+
"name": "size",
|
1801
|
+
"type": {
|
1802
|
+
"text": "Size"
|
1803
|
+
},
|
1804
|
+
"description": "Size of the bullet\n\nPossible values: 'small', 'medium', 'large'",
|
1805
|
+
"default": "small",
|
1806
|
+
"fieldName": "size"
|
1807
|
+
}
|
1808
|
+
],
|
1809
|
+
"superclass": {
|
1810
|
+
"name": "Component",
|
1811
|
+
"module": "/src/models"
|
1812
|
+
},
|
1813
|
+
"tagName": "mdc-bullet",
|
1814
|
+
"jsDoc": "/**\n * Bullet component, which is a visual marker\n * and be used to organize and present items in a list format.\n *\n * @tagname mdc-bullet\n *\n * @cssproperty --mdc-bullet-background-color - background color of the bullet\n * @cssproperty --mdc-bullet-size-small - small size value of the bullet\n * @cssproperty --mdc-bullet-size-medium - medium size value of the bullet\n * @cssproperty --mdc-bullet-size-large - large size value of the bullet\n*/",
|
1815
|
+
"customElement": true
|
1816
|
+
}
|
1817
|
+
],
|
1818
|
+
"exports": [
|
1819
|
+
{
|
1820
|
+
"kind": "js",
|
1821
|
+
"name": "default",
|
1822
|
+
"declaration": {
|
1823
|
+
"name": "Bullet",
|
1824
|
+
"module": "components/bullet/bullet.component.js"
|
1825
|
+
}
|
1826
|
+
}
|
1827
|
+
]
|
1828
|
+
},
|
1654
1829
|
{
|
1655
1830
|
"kind": "javascript-module",
|
1656
1831
|
"path": "components/badge/badge.component.js",
|
@@ -1882,257 +2057,82 @@
|
|
1882
2057
|
],
|
1883
2058
|
"attributes": [
|
1884
2059
|
{
|
1885
|
-
"name": "type",
|
1886
|
-
"type": {
|
1887
|
-
"text": "BadgeType | undefined"
|
1888
|
-
},
|
1889
|
-
"description": "Type of the badge\nCan be `dot` (notification) , `icon`, `counter`, `success`, `warning` or `error`.",
|
1890
|
-
"fieldName": "type"
|
1891
|
-
},
|
1892
|
-
{
|
1893
|
-
"name": "variant",
|
1894
|
-
"type": {
|
1895
|
-
"text": "IconVariant"
|
1896
|
-
},
|
1897
|
-
"description": "Type of the variant can be `primary` or `secondary`.\nIt defines the background and foreground color of the icon.",
|
1898
|
-
"default": "primary",
|
1899
|
-
"fieldName": "variant"
|
1900
|
-
},
|
1901
|
-
{
|
1902
|
-
"name": "counter",
|
1903
|
-
"type": {
|
1904
|
-
"text": "number | undefined"
|
1905
|
-
},
|
1906
|
-
"description": "Counter is the number which can be provided in the badge.",
|
1907
|
-
"fieldName": "counter"
|
1908
|
-
},
|
1909
|
-
{
|
1910
|
-
"name": "max-counter",
|
1911
|
-
"type": {
|
1912
|
-
"text": "number"
|
1913
|
-
},
|
1914
|
-
"description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
|
1915
|
-
"default": "99",
|
1916
|
-
"fieldName": "maxCounter"
|
1917
|
-
},
|
1918
|
-
{
|
1919
|
-
"name": "overlay",
|
1920
|
-
"type": {
|
1921
|
-
"text": "boolean"
|
1922
|
-
},
|
1923
|
-
"default": "false",
|
1924
|
-
"description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
|
1925
|
-
"fieldName": "overlay"
|
1926
|
-
},
|
1927
|
-
{
|
1928
|
-
"name": "aria-label",
|
1929
|
-
"type": {
|
1930
|
-
"text": "string | null"
|
1931
|
-
},
|
1932
|
-
"default": "null",
|
1933
|
-
"description": "Aria-label attribute to be set for accessibility",
|
1934
|
-
"fieldName": "ariaLabel"
|
1935
|
-
},
|
1936
|
-
{
|
1937
|
-
"name": "icon-name",
|
1938
|
-
"type": {
|
1939
|
-
"text": "IconNames | undefined"
|
1940
|
-
},
|
1941
|
-
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
1942
|
-
"fieldName": "iconName",
|
1943
|
-
"inheritedFrom": {
|
1944
|
-
"name": "IconNameMixin",
|
1945
|
-
"module": "src/utils/mixins/IconNameMixin.ts"
|
1946
|
-
}
|
1947
|
-
}
|
1948
|
-
],
|
1949
|
-
"mixins": [
|
1950
|
-
{
|
1951
|
-
"name": "IconNameMixin",
|
1952
|
-
"module": "/src/utils/mixins/IconNameMixin"
|
1953
|
-
}
|
1954
|
-
],
|
1955
|
-
"superclass": {
|
1956
|
-
"name": "Component",
|
1957
|
-
"module": "/src/models"
|
1958
|
-
},
|
1959
|
-
"tagName": "mdc-badge",
|
1960
|
-
"jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n *\n * @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.\n * @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.\n * @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.\n * @cssproperty --mdc-badge-secondary-background-color - The background color of the secondary badge.\n * @cssproperty --mdc-badge-success-foreground-color - The foreground color of the success badge.\n * @cssproperty --mdc-badge-success-background-color - The background color of the success badge.\n * @cssproperty --mdc-badge-warning-foreground-color - The foreground color of the warning badge.\n * @cssproperty --mdc-badge-warning-background-color - The background color of the warning badge.\n * @cssproperty --mdc-badge-error-foreground-color - The foreground color of the error badge.\n * @cssproperty --mdc-badge-error-background-color - The background color of the error badge.\n * @cssproperty --mdc-badge-overlay-background-color - The background color of the badge overlay.\n */",
|
1961
|
-
"customElement": true
|
1962
|
-
}
|
1963
|
-
],
|
1964
|
-
"exports": [
|
1965
|
-
{
|
1966
|
-
"kind": "js",
|
1967
|
-
"name": "default",
|
1968
|
-
"declaration": {
|
1969
|
-
"name": "Badge",
|
1970
|
-
"module": "components/badge/badge.component.js"
|
1971
|
-
}
|
1972
|
-
}
|
1973
|
-
]
|
1974
|
-
},
|
1975
|
-
{
|
1976
|
-
"kind": "javascript-module",
|
1977
|
-
"path": "components/brandvisual/brandvisual.component.js",
|
1978
|
-
"declarations": [
|
1979
|
-
{
|
1980
|
-
"kind": "class",
|
1981
|
-
"description": "The `mdc-brandvisual` component is responsible for rendering logos dynamically & ensures they are\ndisplayed correctly within applications.\n\nFeatures:\n- Dynamically loads brandvisuals based on the `name` attribute.\n- Emits a `load` event when the brandvisual is successfully fetched.\n- Emits an `error` event when the brandvisual import fails.\n- Supports accessibility best practices.\n- Used for brand representation within the design system.",
|
1982
|
-
"name": "Brandvisual",
|
1983
|
-
"members": [
|
1984
|
-
{
|
1985
|
-
"kind": "field",
|
1986
|
-
"name": "brandVisualData",
|
1987
|
-
"type": {
|
1988
|
-
"text": "HTMLElement | undefined"
|
1989
|
-
},
|
1990
|
-
"privacy": "private"
|
1991
|
-
},
|
1992
|
-
{
|
1993
|
-
"kind": "field",
|
1994
|
-
"name": "name",
|
1995
|
-
"type": {
|
1996
|
-
"text": "BrandVisualNames | undefined"
|
1997
|
-
},
|
1998
|
-
"description": "Name of the brandVisual (= filename)",
|
1999
|
-
"attribute": "name",
|
2000
|
-
"reflects": true
|
2001
|
-
},
|
2002
|
-
{
|
2003
|
-
"kind": "method",
|
2004
|
-
"name": "getBrandVisualData",
|
2005
|
-
"privacy": "private"
|
2006
|
-
},
|
2007
|
-
{
|
2008
|
-
"kind": "method",
|
2009
|
-
"name": "handleBrandVisualLoadedSuccess",
|
2010
|
-
"privacy": "private",
|
2011
|
-
"parameters": [
|
2012
|
-
{
|
2013
|
-
"name": "brandVisualHtml",
|
2014
|
-
"type": {
|
2015
|
-
"text": "HTMLElement"
|
2016
|
-
},
|
2017
|
-
"description": "The brandvisual html element which has been fetched from the brandvisual provider."
|
2018
|
-
}
|
2019
|
-
],
|
2020
|
-
"description": "Sets the brandVisualData state to the fetched brandvisual.\nDispatches a 'load' event on the component once the brandvisual has been successfully loaded."
|
2021
|
-
},
|
2022
|
-
{
|
2023
|
-
"kind": "method",
|
2024
|
-
"name": "handleBrandVisualLoadedFailure",
|
2025
|
-
"privacy": "private",
|
2026
|
-
"parameters": [
|
2027
|
-
{
|
2028
|
-
"name": "error",
|
2029
|
-
"type": {
|
2030
|
-
"text": "unknown"
|
2031
|
-
}
|
2032
|
-
}
|
2033
|
-
],
|
2034
|
-
"description": "Dispatches an 'error' event on the component when the brandvisual import has failed.\nThis event bubbles and is cancelable.\nThe error detail is set to the error object."
|
2035
|
-
}
|
2036
|
-
],
|
2037
|
-
"events": [
|
2038
|
-
{
|
2039
|
-
"description": "(React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.",
|
2040
|
-
"name": "load",
|
2041
|
-
"reactName": "onLoad"
|
2042
|
-
},
|
2043
|
-
{
|
2044
|
-
"description": "(React: onError) This event is dispatched when the brandvisual fetching has failed.",
|
2045
|
-
"name": "error",
|
2046
|
-
"reactName": "onError"
|
2047
|
-
}
|
2048
|
-
],
|
2049
|
-
"attributes": [
|
2050
|
-
{
|
2051
|
-
"name": "name",
|
2052
|
-
"type": {
|
2053
|
-
"text": "BrandVisualNames | undefined"
|
2054
|
-
},
|
2055
|
-
"description": "Name of the brandVisual (= filename)",
|
2056
|
-
"fieldName": "name"
|
2057
|
-
}
|
2058
|
-
],
|
2059
|
-
"superclass": {
|
2060
|
-
"name": "Component",
|
2061
|
-
"module": "/src/models"
|
2062
|
-
},
|
2063
|
-
"tagName": "mdc-brandvisual",
|
2064
|
-
"jsDoc": "/**\n * The `mdc-brandvisual` component is responsible for rendering logos dynamically & ensures they are\n * displayed correctly within applications.\n *\n * Features:\n * - Dynamically loads brandvisuals based on the `name` attribute.\n * - Emits a `load` event when the brandvisual is successfully fetched.\n * - Emits an `error` event when the brandvisual import fails.\n * - Supports accessibility best practices.\n * - Used for brand representation within the design system.\n *\n * @tagname mdc-brandvisual\n *\n * @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.\n * @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.\n *\n */",
|
2065
|
-
"customElement": true
|
2066
|
-
}
|
2067
|
-
],
|
2068
|
-
"exports": [
|
2069
|
-
{
|
2070
|
-
"kind": "js",
|
2071
|
-
"name": "default",
|
2072
|
-
"declaration": {
|
2073
|
-
"name": "Brandvisual",
|
2074
|
-
"module": "components/brandvisual/brandvisual.component.js"
|
2075
|
-
}
|
2076
|
-
}
|
2077
|
-
]
|
2078
|
-
},
|
2079
|
-
{
|
2080
|
-
"kind": "javascript-module",
|
2081
|
-
"path": "components/bullet/bullet.component.js",
|
2082
|
-
"declarations": [
|
2083
|
-
{
|
2084
|
-
"kind": "class",
|
2085
|
-
"description": "Bullet component, which is a visual marker\nand be used to organize and present items in a list format.",
|
2086
|
-
"name": "Bullet",
|
2087
|
-
"cssProperties": [
|
2060
|
+
"name": "type",
|
2061
|
+
"type": {
|
2062
|
+
"text": "BadgeType | undefined"
|
2063
|
+
},
|
2064
|
+
"description": "Type of the badge\nCan be `dot` (notification) , `icon`, `counter`, `success`, `warning` or `error`.",
|
2065
|
+
"fieldName": "type"
|
2066
|
+
},
|
2088
2067
|
{
|
2089
|
-
"
|
2090
|
-
"
|
2068
|
+
"name": "variant",
|
2069
|
+
"type": {
|
2070
|
+
"text": "IconVariant"
|
2071
|
+
},
|
2072
|
+
"description": "Type of the variant can be `primary` or `secondary`.\nIt defines the background and foreground color of the icon.",
|
2073
|
+
"default": "primary",
|
2074
|
+
"fieldName": "variant"
|
2091
2075
|
},
|
2092
2076
|
{
|
2093
|
-
"
|
2094
|
-
"
|
2077
|
+
"name": "counter",
|
2078
|
+
"type": {
|
2079
|
+
"text": "number | undefined"
|
2080
|
+
},
|
2081
|
+
"description": "Counter is the number which can be provided in the badge.",
|
2082
|
+
"fieldName": "counter"
|
2095
2083
|
},
|
2096
2084
|
{
|
2097
|
-
"
|
2098
|
-
"
|
2085
|
+
"name": "max-counter",
|
2086
|
+
"type": {
|
2087
|
+
"text": "number"
|
2088
|
+
},
|
2089
|
+
"description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
|
2090
|
+
"default": "99",
|
2091
|
+
"fieldName": "maxCounter"
|
2099
2092
|
},
|
2100
2093
|
{
|
2101
|
-
"
|
2102
|
-
"
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2094
|
+
"name": "overlay",
|
2095
|
+
"type": {
|
2096
|
+
"text": "boolean"
|
2097
|
+
},
|
2098
|
+
"default": "false",
|
2099
|
+
"description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
|
2100
|
+
"fieldName": "overlay"
|
2101
|
+
},
|
2106
2102
|
{
|
2107
|
-
"
|
2108
|
-
"name": "size",
|
2103
|
+
"name": "aria-label",
|
2109
2104
|
"type": {
|
2110
|
-
"text": "
|
2105
|
+
"text": "string | null"
|
2111
2106
|
},
|
2112
|
-
"
|
2113
|
-
"description": "
|
2114
|
-
"
|
2115
|
-
|
2116
|
-
"reflects": true
|
2117
|
-
}
|
2118
|
-
],
|
2119
|
-
"attributes": [
|
2107
|
+
"default": "null",
|
2108
|
+
"description": "Aria-label attribute to be set for accessibility",
|
2109
|
+
"fieldName": "ariaLabel"
|
2110
|
+
},
|
2120
2111
|
{
|
2121
|
-
"name": "
|
2112
|
+
"name": "icon-name",
|
2122
2113
|
"type": {
|
2123
|
-
"text": "
|
2114
|
+
"text": "IconNames | undefined"
|
2124
2115
|
},
|
2125
|
-
"description": "
|
2126
|
-
"
|
2127
|
-
"
|
2116
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
2117
|
+
"fieldName": "iconName",
|
2118
|
+
"inheritedFrom": {
|
2119
|
+
"name": "IconNameMixin",
|
2120
|
+
"module": "src/utils/mixins/IconNameMixin.ts"
|
2121
|
+
}
|
2122
|
+
}
|
2123
|
+
],
|
2124
|
+
"mixins": [
|
2125
|
+
{
|
2126
|
+
"name": "IconNameMixin",
|
2127
|
+
"module": "/src/utils/mixins/IconNameMixin"
|
2128
2128
|
}
|
2129
2129
|
],
|
2130
2130
|
"superclass": {
|
2131
2131
|
"name": "Component",
|
2132
2132
|
"module": "/src/models"
|
2133
2133
|
},
|
2134
|
-
"tagName": "mdc-
|
2135
|
-
"jsDoc": "/**\n *
|
2134
|
+
"tagName": "mdc-badge",
|
2135
|
+
"jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n *\n * @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.\n * @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.\n * @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.\n * @cssproperty --mdc-badge-secondary-background-color - The background color of the secondary badge.\n * @cssproperty --mdc-badge-success-foreground-color - The foreground color of the success badge.\n * @cssproperty --mdc-badge-success-background-color - The background color of the success badge.\n * @cssproperty --mdc-badge-warning-foreground-color - The foreground color of the warning badge.\n * @cssproperty --mdc-badge-warning-background-color - The background color of the warning badge.\n * @cssproperty --mdc-badge-error-foreground-color - The foreground color of the error badge.\n * @cssproperty --mdc-badge-error-background-color - The background color of the error badge.\n * @cssproperty --mdc-badge-overlay-background-color - The background color of the badge overlay.\n */",
|
2136
2136
|
"customElement": true
|
2137
2137
|
}
|
2138
2138
|
],
|
@@ -2141,8 +2141,8 @@
|
|
2141
2141
|
"kind": "js",
|
2142
2142
|
"name": "default",
|
2143
2143
|
"declaration": {
|
2144
|
-
"name": "
|
2145
|
-
"module": "components/
|
2144
|
+
"name": "Badge",
|
2145
|
+
"module": "components/badge/badge.component.js"
|
2146
2146
|
}
|
2147
2147
|
}
|
2148
2148
|
]
|
@@ -2814,6 +2814,138 @@
|
|
2814
2814
|
}
|
2815
2815
|
]
|
2816
2816
|
},
|
2817
|
+
{
|
2818
|
+
"kind": "javascript-module",
|
2819
|
+
"path": "components/buttongroup/buttongroup.component.js",
|
2820
|
+
"declarations": [
|
2821
|
+
{
|
2822
|
+
"kind": "class",
|
2823
|
+
"description": "buttongroup component, is a styled wrapper for multiple buttons.\nIt can support icon buttons, combination of icon and pill buttons, and text buttons.\nThey are available in horizontal and vertical orientation.",
|
2824
|
+
"name": "ButtonGroup",
|
2825
|
+
"cssProperties": [
|
2826
|
+
{
|
2827
|
+
"description": "The border radius of the buttongroup",
|
2828
|
+
"name": "--mdc-buttongroup-border-radius"
|
2829
|
+
},
|
2830
|
+
{
|
2831
|
+
"description": "The border color of the buttongroup",
|
2832
|
+
"name": "--mdc-buttongroup-border-color"
|
2833
|
+
},
|
2834
|
+
{
|
2835
|
+
"description": "The color of the divider between buttons within the buttongroup",
|
2836
|
+
"name": "--mdc-buttongroup-divider-color"
|
2837
|
+
}
|
2838
|
+
],
|
2839
|
+
"slots": [
|
2840
|
+
{
|
2841
|
+
"description": "This is a default/unnamed slot, which contains the buttons",
|
2842
|
+
"name": "default"
|
2843
|
+
}
|
2844
|
+
],
|
2845
|
+
"members": [
|
2846
|
+
{
|
2847
|
+
"kind": "field",
|
2848
|
+
"name": "orientation",
|
2849
|
+
"type": {
|
2850
|
+
"text": "ButtonGroupOrientation"
|
2851
|
+
},
|
2852
|
+
"description": "Orientation of the buttongroup.",
|
2853
|
+
"default": "'horizontal'",
|
2854
|
+
"attribute": "orientation",
|
2855
|
+
"reflects": true
|
2856
|
+
},
|
2857
|
+
{
|
2858
|
+
"kind": "field",
|
2859
|
+
"name": "variant",
|
2860
|
+
"type": {
|
2861
|
+
"text": "ButtonGroupVariant"
|
2862
|
+
},
|
2863
|
+
"description": "Variant of the buttons within the buttongroup.",
|
2864
|
+
"default": "'primary'",
|
2865
|
+
"attribute": "variant",
|
2866
|
+
"reflects": true
|
2867
|
+
},
|
2868
|
+
{
|
2869
|
+
"kind": "field",
|
2870
|
+
"name": "size",
|
2871
|
+
"type": {
|
2872
|
+
"text": "ButtonGroupSize"
|
2873
|
+
},
|
2874
|
+
"description": "Size of the buttons within the buttongroup.",
|
2875
|
+
"default": "'28'",
|
2876
|
+
"attribute": "size",
|
2877
|
+
"reflects": true
|
2878
|
+
},
|
2879
|
+
{
|
2880
|
+
"kind": "field",
|
2881
|
+
"name": "compact",
|
2882
|
+
"type": {
|
2883
|
+
"text": "boolean"
|
2884
|
+
},
|
2885
|
+
"default": "false",
|
2886
|
+
"description": "When this is true, the buttons within the buttongroup will be compact.\ni.e. Irrespective of the size of the buttons, they will have a height of 24px.",
|
2887
|
+
"attribute": "compact",
|
2888
|
+
"reflects": true
|
2889
|
+
}
|
2890
|
+
],
|
2891
|
+
"attributes": [
|
2892
|
+
{
|
2893
|
+
"name": "orientation",
|
2894
|
+
"type": {
|
2895
|
+
"text": "ButtonGroupOrientation"
|
2896
|
+
},
|
2897
|
+
"description": "Orientation of the buttongroup.",
|
2898
|
+
"default": "'horizontal'",
|
2899
|
+
"fieldName": "orientation"
|
2900
|
+
},
|
2901
|
+
{
|
2902
|
+
"name": "variant",
|
2903
|
+
"type": {
|
2904
|
+
"text": "ButtonGroupVariant"
|
2905
|
+
},
|
2906
|
+
"description": "Variant of the buttons within the buttongroup.",
|
2907
|
+
"default": "'primary'",
|
2908
|
+
"fieldName": "variant"
|
2909
|
+
},
|
2910
|
+
{
|
2911
|
+
"name": "size",
|
2912
|
+
"type": {
|
2913
|
+
"text": "ButtonGroupSize"
|
2914
|
+
},
|
2915
|
+
"description": "Size of the buttons within the buttongroup.",
|
2916
|
+
"default": "'28'",
|
2917
|
+
"fieldName": "size"
|
2918
|
+
},
|
2919
|
+
{
|
2920
|
+
"name": "compact",
|
2921
|
+
"type": {
|
2922
|
+
"text": "boolean"
|
2923
|
+
},
|
2924
|
+
"default": "false",
|
2925
|
+
"description": "When this is true, the buttons within the buttongroup will be compact.\ni.e. Irrespective of the size of the buttons, they will have a height of 24px.",
|
2926
|
+
"fieldName": "compact"
|
2927
|
+
}
|
2928
|
+
],
|
2929
|
+
"superclass": {
|
2930
|
+
"name": "Component",
|
2931
|
+
"module": "/src/models"
|
2932
|
+
},
|
2933
|
+
"tagName": "mdc-buttongroup",
|
2934
|
+
"jsDoc": "/**\n * buttongroup component, is a styled wrapper for multiple buttons.\n * It can support icon buttons, combination of icon and pill buttons, and text buttons.\n * They are available in horizontal and vertical orientation.\n *\n * @tagname mdc-buttongroup\n *\n * @slot default - This is a default/unnamed slot, which contains the buttons\n *\n * @cssproperty --mdc-buttongroup-border-radius - The border radius of the buttongroup\n * @cssproperty --mdc-buttongroup-border-color - The border color of the buttongroup\n * @cssproperty --mdc-buttongroup-divider-color - The color of the divider between buttons within the buttongroup\n */",
|
2935
|
+
"customElement": true
|
2936
|
+
}
|
2937
|
+
],
|
2938
|
+
"exports": [
|
2939
|
+
{
|
2940
|
+
"kind": "js",
|
2941
|
+
"name": "default",
|
2942
|
+
"declaration": {
|
2943
|
+
"name": "ButtonGroup",
|
2944
|
+
"module": "components/buttongroup/buttongroup.component.js"
|
2945
|
+
}
|
2946
|
+
}
|
2947
|
+
]
|
2948
|
+
},
|
2817
2949
|
{
|
2818
2950
|
"kind": "javascript-module",
|
2819
2951
|
"path": "components/buttonlink/buttonlink.component.js",
|
@@ -19490,41 +19622,6 @@
|
|
19490
19622
|
}
|
19491
19623
|
]
|
19492
19624
|
},
|
19493
|
-
{
|
19494
|
-
"kind": "javascript-module",
|
19495
|
-
"path": "components/menusection/menusection.component.js",
|
19496
|
-
"declarations": [
|
19497
|
-
{
|
19498
|
-
"kind": "class",
|
19499
|
-
"description": "`mdc-menusection` is a container element used to group a set of menu items.\n\nThis component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n\n- If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n only one radio item can be selected at a time.\n- If `menuitemcheckbox` components are included, their checked state can be toggled independently.",
|
19500
|
-
"name": "MenuSection",
|
19501
|
-
"slots": [
|
19502
|
-
{
|
19503
|
-
"description": "Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`",
|
19504
|
-
"name": ""
|
19505
|
-
}
|
19506
|
-
],
|
19507
|
-
"members": [],
|
19508
|
-
"superclass": {
|
19509
|
-
"name": "Component",
|
19510
|
-
"module": "/src/models"
|
19511
|
-
},
|
19512
|
-
"tagName": "mdc-menusection",
|
19513
|
-
"jsDoc": "/**\n * `mdc-menusection` is a container element used to group a set of menu items.\n *\n * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n *\n * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n * only one radio item can be selected at a time.\n * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.\n *\n * @tagname mdc-menusection\n *\n * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`\n */",
|
19514
|
-
"customElement": true
|
19515
|
-
}
|
19516
|
-
],
|
19517
|
-
"exports": [
|
19518
|
-
{
|
19519
|
-
"kind": "js",
|
19520
|
-
"name": "default",
|
19521
|
-
"declaration": {
|
19522
|
-
"name": "MenuSection",
|
19523
|
-
"module": "components/menusection/menusection.component.js"
|
19524
|
-
}
|
19525
|
-
}
|
19526
|
-
]
|
19527
|
-
},
|
19528
19625
|
{
|
19529
19626
|
"kind": "javascript-module",
|
19530
19627
|
"path": "components/optgroup/optgroup.component.js",
|
@@ -19663,6 +19760,41 @@
|
|
19663
19760
|
}
|
19664
19761
|
]
|
19665
19762
|
},
|
19763
|
+
{
|
19764
|
+
"kind": "javascript-module",
|
19765
|
+
"path": "components/menusection/menusection.component.js",
|
19766
|
+
"declarations": [
|
19767
|
+
{
|
19768
|
+
"kind": "class",
|
19769
|
+
"description": "`mdc-menusection` is a container element used to group a set of menu items.\n\nThis component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n\n- If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n only one radio item can be selected at a time.\n- If `menuitemcheckbox` components are included, their checked state can be toggled independently.",
|
19770
|
+
"name": "MenuSection",
|
19771
|
+
"slots": [
|
19772
|
+
{
|
19773
|
+
"description": "Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`",
|
19774
|
+
"name": ""
|
19775
|
+
}
|
19776
|
+
],
|
19777
|
+
"members": [],
|
19778
|
+
"superclass": {
|
19779
|
+
"name": "Component",
|
19780
|
+
"module": "/src/models"
|
19781
|
+
},
|
19782
|
+
"tagName": "mdc-menusection",
|
19783
|
+
"jsDoc": "/**\n * `mdc-menusection` is a container element used to group a set of menu items.\n *\n * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n *\n * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n * only one radio item can be selected at a time.\n * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.\n *\n * @tagname mdc-menusection\n *\n * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`\n */",
|
19784
|
+
"customElement": true
|
19785
|
+
}
|
19786
|
+
],
|
19787
|
+
"exports": [
|
19788
|
+
{
|
19789
|
+
"kind": "js",
|
19790
|
+
"name": "default",
|
19791
|
+
"declaration": {
|
19792
|
+
"name": "MenuSection",
|
19793
|
+
"module": "components/menusection/menusection.component.js"
|
19794
|
+
}
|
19795
|
+
}
|
19796
|
+
]
|
19797
|
+
},
|
19666
19798
|
{
|
19667
19799
|
"kind": "javascript-module",
|
19668
19800
|
"path": "components/option/option.component.js",
|