@momentum-design/components 0.127.7 → 0.127.8
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
CHANGED
|
@@ -1031,6 +1031,13 @@
|
|
|
1031
1031
|
:host([variant='informational']:active) {
|
|
1032
1032
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
|
1033
1033
|
}
|
|
1034
|
+
|
|
1035
|
+
/* High Contrast Mode */
|
|
1036
|
+
@media (forced-colors: active) {
|
|
1037
|
+
:host([variant='neutral'])::part(icon) {
|
|
1038
|
+
--mdc-chip-icon-color: ButtonText;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1034
1041
|
`,du=[bt,hE,...At()];var cu=z.constructTagName("alertchip"),xo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},hs={VARIANT:xo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:go[24],ROLE:"button"};var hu=n=>({[xo.ERROR]:"error-legacy-badge-filled",[xo.WARNING]:"warning-badge-filled",[xo.SUCCESS]:"check-circle-badge-filled",[xo.INFORMATIONAL]:"info-badge-filled",[xo.NEUTRAL]:"dnd-presence-badge-filled"})[n];var ps=class extends Xt(se){constructor(){super(...arguments);this.variant=hs.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=hs.SIZE,this.role=hs.ROLE}render(){return _`
|
|
1035
1042
|
<mdc-icon part="icon" name="${this.iconName||hu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1036
1043
|
${this.label?_`<mdc-text part="label" type="${hs.TEXT_TYPE}" tagname="${hs.TAG_NAME}"
|