@momentum-design/components 0.37.2 → 0.38.0

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.
@@ -630,7 +630,7 @@
630
630
  outline: 0.125rem solid;
631
631
  }
632
632
  }
633
- `],Vs=vl;var Fs=g.constructTagName("presence"),B={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},$t={TYPE:B.ACTIVE,SIZE:P.SMALL};var Hs=o=>({[M[124]]:P.XX_LARGE,[M[88]]:P.X_LARGE,[M[72]]:P.LARGE,[M[64]]:P.MIDSIZE,[M[48]]:P.SMALL,[M[32]]:P.X_SMALL,[M[24]]:P.XX_SMALL})[o]||P.X_SMALL,Bs=o=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[o]||1.25,Gs=o=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[o]||_.BODY_MIDSIZE_MEDIUM;var dr=class extends jr(X(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)?v:this.presence?h`
633
+ `],Vs=vl;var Fs=g.constructTagName("presence"),B={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},$t={TYPE:B.ACTIVE,SIZE:P.SMALL};var Hs=o=>({[M[124]]:P.XX_LARGE,[M[88]]:P.X_LARGE,[M[72]]:P.LARGE,[M[64]]:P.MIDSIZE,[M[48]]:P.SMALL,[M[32]]:P.X_SMALL,[M[24]]:P.XX_SMALL})[o]||P.X_SMALL,Bs=o=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[o]||1.25,Gs=o=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[o]||_.BODY_MIDSIZE_MEDIUM;var dr=class extends jr(X(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
634
634
  <mdc-presence part="presence" type="${this.presence}" size="${Hs(this.size)}"></mdc-presence>
635
635
  `:v}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return h`
636
636
  <img