@momentum-design/components 0.140.0 → 0.140.1
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
|
@@ -7583,7 +7583,7 @@
|
|
|
7583
7583
|
`,EE=[BI];var On=class extends Se{constructor(){super({context:$c.context,initialValue:new $c(qm.THEMECLASS)});this.themeclass=qm.THEMECLASS}static get Context(){return $c.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};On.styles=[...Se.styles,...EE],h([dt()],On.prototype,"currentThemeClass",2),h([u({type:String})],On.prototype,"themeclass",2);var Xm=On;Xm.register(Pc);var UI=Xm;var TE=V.constructTagName("toast"),ll={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Vc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},gr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:nr[20],BUTTON:Pi,PRIMARY_BUTTON:Ft.PRIMARY,SECONDARY_BUTTON:Ft.SECONDARY,TERTIARY_BUTTON:Ft.TERTIARY,VARIANT:ll.CUSTOM};var xE=a=>{switch(a){case ll.SUCCESS:return Vc.SUCCESS_ICON_NAME;case ll.WARNING:return Vc.WARNING_ICON_NAME;case ll.ERROR:return Vc.ERROR_ICON_NAME;default:return null}};var HI=z`
|
|
7584
7584
|
:host {
|
|
7585
7585
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7586
|
-
--mdc-toast-border-color: var(--mds-color-theme-outline-
|
|
7586
|
+
--mdc-toast-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
7587
7587
|
--mdc-toast-header-text-color: var(--mds-color-theme-text-primary-normal);
|
|
7588
7588
|
--mdc-toast-icon-color: var(--mdc-toast-header-text-color);
|
|
7589
7589
|
--mdc-toast-elevation-3: var(--mds-elevation-3);
|