@momentum-design/components 0.129.15 → 0.129.16
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 +2 -2
- package/dist/browser/index.js.map +2 -2
- package/dist/components/brandvisual/brandvisual.component.d.ts +2 -0
- package/dist/components/brandvisual/brandvisual.component.js +3 -1
- package/dist/custom-elements.json +13 -3
- package/dist/react/brandvisual/index.d.ts +2 -0
- package/dist/react/brandvisual/index.js +2 -0
- package/dist/utils/roles.d.ts +1 -0
- package/dist/utils/roles.js +1 -0
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ import type { BrandVisualNames } from './brandvisual.types';
|
|
|
17
17
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
18
18
|
* @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.
|
|
19
19
|
*
|
|
20
|
+
* @csspart brandvisual - Set styles for the brandvisual svg container
|
|
21
|
+
* @csspart brandvisualImage - Set styles for the brandvisual image container
|
|
20
22
|
*/
|
|
21
23
|
declare class Brandvisual extends Component {
|
|
22
24
|
private brandVisualData?;
|
|
@@ -27,6 +27,8 @@ import styles from './brandvisual.styles';
|
|
|
27
27
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
28
28
|
* @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.
|
|
29
29
|
*
|
|
30
|
+
* @csspart brandvisual - Set styles for the brandvisual svg container
|
|
31
|
+
* @csspart brandvisualImage - Set styles for the brandvisual image container
|
|
30
32
|
*/
|
|
31
33
|
class Brandvisual extends Component {
|
|
32
34
|
async getBrandVisualData() {
|
|
@@ -118,7 +120,7 @@ __decorate([
|
|
|
118
120
|
__metadata("design:type", String)
|
|
119
121
|
], Brandvisual.prototype, "name", void 0);
|
|
120
122
|
__decorate([
|
|
121
|
-
property({ type: String, reflect: true }),
|
|
123
|
+
property({ type: String, reflect: true, attribute: 'alt-text' }),
|
|
122
124
|
__metadata("design:type", String)
|
|
123
125
|
], Brandvisual.prototype, "altText", void 0);
|
|
124
126
|
export default Brandvisual;
|
|
@@ -4906,6 +4906,16 @@
|
|
|
4906
4906
|
"kind": "class",
|
|
4907
4907
|
"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.",
|
|
4908
4908
|
"name": "Brandvisual",
|
|
4909
|
+
"cssParts": [
|
|
4910
|
+
{
|
|
4911
|
+
"description": "Set styles for the brandvisual svg container",
|
|
4912
|
+
"name": "brandvisual"
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"description": "Set styles for the brandvisual image container",
|
|
4916
|
+
"name": "brandvisualImage"
|
|
4917
|
+
}
|
|
4918
|
+
],
|
|
4909
4919
|
"members": [
|
|
4910
4920
|
{
|
|
4911
4921
|
"kind": "field",
|
|
@@ -4914,7 +4924,7 @@
|
|
|
4914
4924
|
"text": "string | undefined"
|
|
4915
4925
|
},
|
|
4916
4926
|
"description": "Alt text for the brandvisual image for accessibility.\nThis will only be set if the brandvisual is an image (png).",
|
|
4917
|
-
"attribute": "
|
|
4927
|
+
"attribute": "alt-text",
|
|
4918
4928
|
"reflects": true
|
|
4919
4929
|
},
|
|
4920
4930
|
{
|
|
@@ -5046,7 +5056,7 @@
|
|
|
5046
5056
|
"fieldName": "name"
|
|
5047
5057
|
},
|
|
5048
5058
|
{
|
|
5049
|
-
"name": "
|
|
5059
|
+
"name": "alt-text",
|
|
5050
5060
|
"type": {
|
|
5051
5061
|
"text": "string | undefined"
|
|
5052
5062
|
},
|
|
@@ -5059,7 +5069,7 @@
|
|
|
5059
5069
|
"module": "/src/models"
|
|
5060
5070
|
},
|
|
5061
5071
|
"tagName": "mdc-brandvisual",
|
|
5062
|
-
"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 */",
|
|
5072
|
+
"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 * @csspart brandvisual - Set styles for the brandvisual svg container\n * @csspart brandvisualImage - Set styles for the brandvisual image container\n */",
|
|
5063
5073
|
"customElement": true
|
|
5064
5074
|
}
|
|
5065
5075
|
],
|
|
@@ -17,6 +17,8 @@ import type { Events } from '../../components/brandvisual/brandvisual.types';
|
|
|
17
17
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
18
18
|
* @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.
|
|
19
19
|
*
|
|
20
|
+
* @csspart brandvisual - Set styles for the brandvisual svg container
|
|
21
|
+
* @csspart brandvisualImage - Set styles for the brandvisual image container
|
|
20
22
|
*/
|
|
21
23
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
22
24
|
onLoad: EventName<Events["onLoadEvent"]>;
|
|
@@ -18,6 +18,8 @@ import { TAG_NAME } from '../../components/brandvisual/brandvisual.constants';
|
|
|
18
18
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
19
19
|
* @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.
|
|
20
20
|
*
|
|
21
|
+
* @csspart brandvisual - Set styles for the brandvisual svg container
|
|
22
|
+
* @csspart brandvisualImage - Set styles for the brandvisual image container
|
|
21
23
|
*/
|
|
22
24
|
const reactWrapper = createComponent({
|
|
23
25
|
tagName: TAG_NAME,
|
package/dist/utils/roles.d.ts
CHANGED
package/dist/utils/roles.js
CHANGED