@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.
@@ -25,6 +25,7 @@ declare const Card_base: import("../../utils/mixins/index.types").Constructor<im
25
25
  *
26
26
  * Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
27
27
  *
28
+ * @slot image - This slot is for overriding the image content of the card
28
29
  * @slot before-body - This slot is for passing the content before the body
29
30
  * @slot body - This slot is for passing the text content for the card
30
31
  * @slot after-body - This slot is for passing the content after the body
@@ -39,6 +39,7 @@ import styles from './card.styles';
39
39
  *
40
40
  * Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.
41
41
  *
42
+ * @slot image - This slot is for overriding the image content of the card
42
43
  * @slot before-body - This slot is for passing the content before the body
43
44
  * @slot body - This slot is for passing the text content for the card
44
45
  * @slot after-body - This slot is for passing the content after the body
@@ -108,7 +109,7 @@ class Card extends CardComponentMixin(FooterMixin(Component)) {
108
109
  }
109
110
  render() {
110
111
  return html `
111
- ${this.renderImage()}
112
+ <slot name="image"> ${this.renderImage()} </slot>
112
113
  <div part="body">
113
114
  ${this.renderHeader()}
114
115
  <div part="text-content">
@@ -19,6 +19,7 @@ declare const CardButton_base: import("../../utils/mixins/index.types").Construc
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
@@ -21,6 +21,7 @@ import styles from './cardbutton.styles';
21
21
  * It fires the click event when space key is used.
22
22
  * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
23
23
  *
24
+ * @slot image - This slot is for overriding the image content of the card
24
25
  * @slot before-body - This slot is for passing the content before the body
25
26
  * @slot body - This slot is for passing the text content for the card
26
27
  * @slot after-body - This slot is for passing the content after the body
@@ -58,7 +59,7 @@ class CardButton extends CardComponentMixin(Buttonsimple) {
58
59
  }
59
60
  render() {
60
61
  return html `
61
- ${this.renderImage()}
62
+ <slot name="image"> ${this.renderImage()} </slot>
62
63
  <div part="body">
63
64
  ${this.renderHeader()}
64
65
  <slot name="before-body"></slot>