@momentum-design/components 0.27.0 → 0.27.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.
@@ -2346,7 +2346,6 @@
2346
2346
 
2347
2347
  `,...S()],Mi=rn;var Oi=g.constructTagName("tab"),Ur={GLASS:"glass",LINE:"line",PILL:"pill"},Vr={VARIANT:Ur.PILL};var Ve=class extends U(oe){constructor(){super();this.variant=Vr.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${rt(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Ur).includes(e)?e:Vr.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
2348
2348
  <div part="container">
2349
- <slot name="badge" part="badge"></slot>
2350
2349
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:p}
2351
2350
  ${this.text?m` <mdc-text
2352
2351
  type=${this.active?A.BODY_MIDSIZE_BOLD:A.BODY_MIDSIZE_MEDIUM}
@@ -2355,6 +2354,8 @@
2355
2354
  part="text"
2356
2355
  >${this.text}</mdc-text
2357
2356
  >`:p}
2357
+ <slot name="badge"></slot>
2358
+ <slot name="chip"></slot>
2358
2359
  </div>
2359
2360
  <div part="indicator"></div>
2360
2361
  `}};Ve.styles=[...oe.styles,...Mi],a([c({type:String,reflect:!0})],Ve.prototype,"text",2),a([c({type:String,reflect:!0})],Ve.prototype,"variant",2);var Hr=Ve;Hr.register(Oi);var on=Hr;var $i=g.constructTagName("formfieldgroup"),Gr={RADIOGROUP:"radiogroup",GROUP:"group"};var sn=h`