@momentum-design/components 0.53.6 → 0.53.7
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.
@@ -69,21 +69,21 @@ const styles = css `
|
|
69
69
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
70
70
|
}
|
71
71
|
|
72
|
-
:host([active]:not([variant='primary'])) {
|
72
|
+
:host([active][color='default']:not([variant='primary'])) {
|
73
73
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
74
74
|
background: var(--mdc-button-active-background-color);
|
75
75
|
}
|
76
|
-
:host([active]:not([variant='primary']):hover) {
|
76
|
+
:host([active][color='default']:not([variant='primary']):hover) {
|
77
77
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
78
78
|
background: var(--mdc-button-active-hover-background-color);
|
79
79
|
}
|
80
|
-
:host([active]:not([variant='primary']):active),
|
81
|
-
:host([active]:not([variant='primary']).pressed) {
|
80
|
+
:host([active][color='default']:not([variant='primary']):active),
|
81
|
+
:host([active][color='default']:not([variant='primary']).pressed) {
|
82
82
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
83
83
|
background: var(--mdc-button-active-pressed-background-color);
|
84
84
|
}
|
85
|
-
:host([active]:not([variant='primary'])[disabled]),
|
86
|
-
:host([active]:not([variant='primary'])[soft-disabled]) {
|
85
|
+
:host([active][color='default']:not([variant='primary'])[disabled]),
|
86
|
+
:host([active][color='default']:not([variant='primary'])[soft-disabled]) {
|
87
87
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
88
88
|
background: var(--mdc-button-active-disabled-background-color);
|
89
89
|
}
|
@@ -1425,110 +1425,6 @@
|
|
1425
1425
|
}
|
1426
1426
|
]
|
1427
1427
|
},
|
1428
|
-
{
|
1429
|
-
"kind": "javascript-module",
|
1430
|
-
"path": "components/brandvisual/brandvisual.component.js",
|
1431
|
-
"declarations": [
|
1432
|
-
{
|
1433
|
-
"kind": "class",
|
1434
|
-
"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.",
|
1435
|
-
"name": "Brandvisual",
|
1436
|
-
"members": [
|
1437
|
-
{
|
1438
|
-
"kind": "field",
|
1439
|
-
"name": "brandVisualData",
|
1440
|
-
"type": {
|
1441
|
-
"text": "HTMLElement | undefined"
|
1442
|
-
},
|
1443
|
-
"privacy": "private"
|
1444
|
-
},
|
1445
|
-
{
|
1446
|
-
"kind": "field",
|
1447
|
-
"name": "name",
|
1448
|
-
"type": {
|
1449
|
-
"text": "BrandVisualNames | undefined"
|
1450
|
-
},
|
1451
|
-
"description": "Name of the brandVisual (= filename)",
|
1452
|
-
"attribute": "name",
|
1453
|
-
"reflects": true
|
1454
|
-
},
|
1455
|
-
{
|
1456
|
-
"kind": "method",
|
1457
|
-
"name": "getBrandVisualData",
|
1458
|
-
"privacy": "private"
|
1459
|
-
},
|
1460
|
-
{
|
1461
|
-
"kind": "method",
|
1462
|
-
"name": "handleBrandVisualLoadedSuccess",
|
1463
|
-
"privacy": "private",
|
1464
|
-
"parameters": [
|
1465
|
-
{
|
1466
|
-
"name": "brandVisualHtml",
|
1467
|
-
"type": {
|
1468
|
-
"text": "HTMLElement"
|
1469
|
-
},
|
1470
|
-
"description": "The brandvisual html element which has been fetched from the brandvisual provider."
|
1471
|
-
}
|
1472
|
-
],
|
1473
|
-
"description": "Sets the brandVisualData state to the fetched brandvisual.\nDispatches a 'load' event on the component once the brandvisual has been successfully loaded."
|
1474
|
-
},
|
1475
|
-
{
|
1476
|
-
"kind": "method",
|
1477
|
-
"name": "handleBrandVisualLoadedFailure",
|
1478
|
-
"privacy": "private",
|
1479
|
-
"parameters": [
|
1480
|
-
{
|
1481
|
-
"name": "error",
|
1482
|
-
"type": {
|
1483
|
-
"text": "unknown"
|
1484
|
-
}
|
1485
|
-
}
|
1486
|
-
],
|
1487
|
-
"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."
|
1488
|
-
}
|
1489
|
-
],
|
1490
|
-
"events": [
|
1491
|
-
{
|
1492
|
-
"description": "(React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.",
|
1493
|
-
"name": "load",
|
1494
|
-
"reactName": "onLoad"
|
1495
|
-
},
|
1496
|
-
{
|
1497
|
-
"description": "(React: onError) This event is dispatched when the brandvisual fetching has failed.",
|
1498
|
-
"name": "error",
|
1499
|
-
"reactName": "onError"
|
1500
|
-
}
|
1501
|
-
],
|
1502
|
-
"attributes": [
|
1503
|
-
{
|
1504
|
-
"name": "name",
|
1505
|
-
"type": {
|
1506
|
-
"text": "BrandVisualNames | undefined"
|
1507
|
-
},
|
1508
|
-
"description": "Name of the brandVisual (= filename)",
|
1509
|
-
"fieldName": "name"
|
1510
|
-
}
|
1511
|
-
],
|
1512
|
-
"superclass": {
|
1513
|
-
"name": "Component",
|
1514
|
-
"module": "/src/models"
|
1515
|
-
},
|
1516
|
-
"tagName": "mdc-brandvisual",
|
1517
|
-
"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 */",
|
1518
|
-
"customElement": true
|
1519
|
-
}
|
1520
|
-
],
|
1521
|
-
"exports": [
|
1522
|
-
{
|
1523
|
-
"kind": "js",
|
1524
|
-
"name": "default",
|
1525
|
-
"declaration": {
|
1526
|
-
"name": "Brandvisual",
|
1527
|
-
"module": "components/brandvisual/brandvisual.component.js"
|
1528
|
-
}
|
1529
|
-
}
|
1530
|
-
]
|
1531
|
-
},
|
1532
1428
|
{
|
1533
1429
|
"kind": "javascript-module",
|
1534
1430
|
"path": "components/badge/badge.component.js",
|
@@ -1850,6 +1746,110 @@
|
|
1850
1746
|
}
|
1851
1747
|
]
|
1852
1748
|
},
|
1749
|
+
{
|
1750
|
+
"kind": "javascript-module",
|
1751
|
+
"path": "components/brandvisual/brandvisual.component.js",
|
1752
|
+
"declarations": [
|
1753
|
+
{
|
1754
|
+
"kind": "class",
|
1755
|
+
"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.",
|
1756
|
+
"name": "Brandvisual",
|
1757
|
+
"members": [
|
1758
|
+
{
|
1759
|
+
"kind": "field",
|
1760
|
+
"name": "brandVisualData",
|
1761
|
+
"type": {
|
1762
|
+
"text": "HTMLElement | undefined"
|
1763
|
+
},
|
1764
|
+
"privacy": "private"
|
1765
|
+
},
|
1766
|
+
{
|
1767
|
+
"kind": "field",
|
1768
|
+
"name": "name",
|
1769
|
+
"type": {
|
1770
|
+
"text": "BrandVisualNames | undefined"
|
1771
|
+
},
|
1772
|
+
"description": "Name of the brandVisual (= filename)",
|
1773
|
+
"attribute": "name",
|
1774
|
+
"reflects": true
|
1775
|
+
},
|
1776
|
+
{
|
1777
|
+
"kind": "method",
|
1778
|
+
"name": "getBrandVisualData",
|
1779
|
+
"privacy": "private"
|
1780
|
+
},
|
1781
|
+
{
|
1782
|
+
"kind": "method",
|
1783
|
+
"name": "handleBrandVisualLoadedSuccess",
|
1784
|
+
"privacy": "private",
|
1785
|
+
"parameters": [
|
1786
|
+
{
|
1787
|
+
"name": "brandVisualHtml",
|
1788
|
+
"type": {
|
1789
|
+
"text": "HTMLElement"
|
1790
|
+
},
|
1791
|
+
"description": "The brandvisual html element which has been fetched from the brandvisual provider."
|
1792
|
+
}
|
1793
|
+
],
|
1794
|
+
"description": "Sets the brandVisualData state to the fetched brandvisual.\nDispatches a 'load' event on the component once the brandvisual has been successfully loaded."
|
1795
|
+
},
|
1796
|
+
{
|
1797
|
+
"kind": "method",
|
1798
|
+
"name": "handleBrandVisualLoadedFailure",
|
1799
|
+
"privacy": "private",
|
1800
|
+
"parameters": [
|
1801
|
+
{
|
1802
|
+
"name": "error",
|
1803
|
+
"type": {
|
1804
|
+
"text": "unknown"
|
1805
|
+
}
|
1806
|
+
}
|
1807
|
+
],
|
1808
|
+
"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."
|
1809
|
+
}
|
1810
|
+
],
|
1811
|
+
"events": [
|
1812
|
+
{
|
1813
|
+
"description": "(React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.",
|
1814
|
+
"name": "load",
|
1815
|
+
"reactName": "onLoad"
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"description": "(React: onError) This event is dispatched when the brandvisual fetching has failed.",
|
1819
|
+
"name": "error",
|
1820
|
+
"reactName": "onError"
|
1821
|
+
}
|
1822
|
+
],
|
1823
|
+
"attributes": [
|
1824
|
+
{
|
1825
|
+
"name": "name",
|
1826
|
+
"type": {
|
1827
|
+
"text": "BrandVisualNames | undefined"
|
1828
|
+
},
|
1829
|
+
"description": "Name of the brandVisual (= filename)",
|
1830
|
+
"fieldName": "name"
|
1831
|
+
}
|
1832
|
+
],
|
1833
|
+
"superclass": {
|
1834
|
+
"name": "Component",
|
1835
|
+
"module": "/src/models"
|
1836
|
+
},
|
1837
|
+
"tagName": "mdc-brandvisual",
|
1838
|
+
"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 */",
|
1839
|
+
"customElement": true
|
1840
|
+
}
|
1841
|
+
],
|
1842
|
+
"exports": [
|
1843
|
+
{
|
1844
|
+
"kind": "js",
|
1845
|
+
"name": "default",
|
1846
|
+
"declaration": {
|
1847
|
+
"name": "Brandvisual",
|
1848
|
+
"module": "components/brandvisual/brandvisual.component.js"
|
1849
|
+
}
|
1850
|
+
}
|
1851
|
+
]
|
1852
|
+
},
|
1853
1853
|
{
|
1854
1854
|
"kind": "javascript-module",
|
1855
1855
|
"path": "components/bullet/bullet.component.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ export { default as AlertChip } from './alertchip';
|
|
2
2
|
export { default as Appheader } from './appheader';
|
3
3
|
export { default as Avatar } from './avatar';
|
4
4
|
export { default as AvatarButton } from './avatarbutton';
|
5
|
-
export { default as Brandvisual } from './brandvisual';
|
6
5
|
export { default as Badge } from './badge';
|
6
|
+
export { default as Brandvisual } from './brandvisual';
|
7
7
|
export { default as Bullet } from './bullet';
|
8
8
|
export { default as Button } from './button';
|
9
9
|
export { default as Buttonsimple } from './buttonsimple';
|
package/dist/react/index.js
CHANGED
@@ -2,8 +2,8 @@ export { default as AlertChip } from './alertchip';
|
|
2
2
|
export { default as Appheader } from './appheader';
|
3
3
|
export { default as Avatar } from './avatar';
|
4
4
|
export { default as AvatarButton } from './avatarbutton';
|
5
|
-
export { default as Brandvisual } from './brandvisual';
|
6
5
|
export { default as Badge } from './badge';
|
6
|
+
export { default as Brandvisual } from './brandvisual';
|
7
7
|
export { default as Bullet } from './bullet';
|
8
8
|
export { default as Button } from './button';
|
9
9
|
export { default as Buttonsimple } from './buttonsimple';
|
package/package.json
CHANGED