@momentum-design/components 0.129.4 → 0.129.6

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.
@@ -2066,9 +2066,7 @@
2066
2066
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2067
2067
  ${this.postfixIcon?_`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2068
2068
  `}};xs.styles=[...To.styles,...nf],p([u({type:Number,reflect:!0})],xs.prototype,"size",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],xs.prototype,"softDisabled",2);var Fc=xs;var lf=z.constructTagName("buttonlink");Fc.register(lf);var KE=Fc;var kl=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ae.VARIANT;this.orientation=ae.ORIENTATION;this.titleTagName=ae.TAGNAME;this.subtitleTagName=ae.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
2069
- <slot name="image">
2070
- <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2071
- </slot>
2069
+ <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2072
2070
  </div>`:j}renderIcon(){return this.iconName?_`<mdc-icon
2073
2071
  part="icon"
2074
2072
  size="${ae.ICON_SIZE}"
@@ -2192,7 +2190,7 @@
2192
2190
  ${this.renderIcon()} ${this.renderTitle()}
2193
2191
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2194
2192
  </div>`:j}render(){return _`
2195
- ${this.renderImage()}
2193
+ <slot name="image"> ${this.renderImage()} </slot>
2196
2194
  <div part="body">
2197
2195
  ${this.renderHeader()}
2198
2196
  <div part="text-content">
@@ -2225,7 +2223,7 @@
2225
2223
  opacity: 0.5;
2226
2224
  }
2227
2225
  `,cf=[ZE,...At()];var wl=class extends kl(se){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?_`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:j}render(){return _`
2228
- ${this.renderImage()}
2226
+ <slot name="image"> ${this.renderImage()} </slot>
2229
2227
  <div part="body">
2230
2228
  ${this.renderHeader()}
2231
2229
  <slot name="before-body"></slot>