@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.
- package/dist/browser/index.js +5 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/components/card/card.component.d.ts +1 -0
- package/dist/components/card/card.component.js +2 -1
- package/dist/components/cardbutton/cardbutton.component.d.ts +1 -0
- package/dist/components/cardbutton/cardbutton.component.js +2 -1
- package/dist/custom-elements.json +416 -392
- package/dist/react/card/index.d.ts +1 -0
- package/dist/react/card/index.js +1 -0
- package/dist/react/cardbutton/index.d.ts +1 -0
- package/dist/react/cardbutton/index.js +1 -0
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/utils/mixins/CardComponentMixin.js +3 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2065,7 +2065,9 @@
|
|
|
2065
2065
|
${this.prefixIcon?_`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
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
|
-
`}};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"
|
|
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
|
+
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2070
|
+
</div>`:j}renderIcon(){return this.iconName?_`<mdc-icon
|
|
2069
2071
|
part="icon"
|
|
2070
2072
|
size="${ae.ICON_SIZE}"
|
|
2071
2073
|
length-unit="${ae.ICON_LENGTH_UNIT}"
|
|
@@ -2188,7 +2190,7 @@
|
|
|
2188
2190
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2189
2191
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2190
2192
|
</div>`:j}render(){return _`
|
|
2191
|
-
${this.renderImage()}
|
|
2193
|
+
<slot name="image"> ${this.renderImage()} </slot>
|
|
2192
2194
|
<div part="body">
|
|
2193
2195
|
${this.renderHeader()}
|
|
2194
2196
|
<div part="text-content">
|
|
@@ -2221,7 +2223,7 @@
|
|
|
2221
2223
|
opacity: 0.5;
|
|
2222
2224
|
}
|
|
2223
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 _`
|
|
2224
|
-
${this.renderImage()}
|
|
2226
|
+
<slot name="image"> ${this.renderImage()} </slot>
|
|
2225
2227
|
<div part="body">
|
|
2226
2228
|
${this.renderHeader()}
|
|
2227
2229
|
<slot name="before-body"></slot>
|