@momentum-design/components 0.129.3 → 0.129.5

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.
@@ -23,6 +23,7 @@ import Component from '../../components/card';
23
23
  *
24
24
  * Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
25
25
  *
26
+ * @slot image - This slot is for overriding the image content of the card
26
27
  * @slot before-body - This slot is for passing the content before the body
27
28
  * @slot body - This slot is for passing the text content for the card
28
29
  * @slot after-body - This slot is for passing the content after the body
@@ -26,6 +26,7 @@ import { TAG_NAME } from '../../components/card/card.constants';
26
26
  *
27
27
  * Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
28
28
  *
29
+ * @slot image - This slot is for overriding the image content of the card
29
30
  * @slot before-body - This slot is for passing the content before the body
30
31
  * @slot body - This slot is for passing the text content for the card
31
32
  * @slot after-body - This slot is for passing the content after the body
@@ -19,6 +19,7 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
19
19
  * It fires the click event when space key is used.
20
20
  * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
21
21
  *
22
+ * @slot image - This slot is for overriding the image content of the card
22
23
  * @slot before-body - This slot is for passing the content before the body
23
24
  * @slot body - This slot is for passing the text content for the card
24
25
  * @slot after-body - This slot is for passing the content after the body
@@ -20,6 +20,7 @@ import { TAG_NAME } from '../../components/cardbutton/cardbutton.constants';
20
20
  * It fires the click event when space key is used.
21
21
  * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
22
22
  *
23
+ * @slot image - This slot is for overriding the image content of the card
23
24
  * @slot before-body - This slot is for passing the content before the body
24
25
  * @slot body - This slot is for passing the text content for the card
25
26
  * @slot after-body - This slot is for passing the content after the body
@@ -81,9 +81,9 @@ export { default as TabList } from './tablist';
81
81
  export { default as Text } from './text';
82
82
  export { default as Textarea } from './textarea';
83
83
  export { default as ThemeProvider } from './themeprovider';
84
+ export { default as Toast } from './toast';
84
85
  export { default as Toggle } from './toggle';
85
86
  export { default as ToggleTip } from './toggletip';
86
- export { default as Toast } from './toast';
87
87
  export { default as Tooltip } from './tooltip';
88
88
  export { default as Typewriter } from './typewriter';
89
89
  export { default as VirtualizedList } from './virtualizedlist';
@@ -81,9 +81,9 @@ export { default as TabList } from './tablist';
81
81
  export { default as Text } from './text';
82
82
  export { default as Textarea } from './textarea';
83
83
  export { default as ThemeProvider } from './themeprovider';
84
+ export { default as Toast } from './toast';
84
85
  export { default as Toggle } from './toggle';
85
86
  export { default as ToggleTip } from './toggletip';
86
- export { default as Toast } from './toast';
87
87
  export { default as Tooltip } from './tooltip';
88
88
  export { default as Typewriter } from './typewriter';
89
89
  export { default as VirtualizedList } from './virtualizedlist';
@@ -64,7 +64,9 @@ export const CardComponentMixin = (superClass) => {
64
64
  if (!this.imageSrc) {
65
65
  return nothing;
66
66
  }
67
- return html `<div part="image-wrapper"><img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" /></div>`;
67
+ return html `<div part="image-wrapper">
68
+ <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
69
+ </div>`;
68
70
  }
69
71
  /**
70
72
  * Renders the icon on the card if icon name is provided
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.129.3",
4
+ "version": "0.129.5",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"