@momentum-design/components 0.92.3 → 0.92.4

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.
@@ -2703,6 +2703,7 @@
2703
2703
  color: var(--mdc-divider-text-color);
2704
2704
  font-size: var(--mdc-divider-text-size);
2705
2705
  line-height: var(--mdc-divider-text-line-height);
2706
+ flex-shrink: 0;
2706
2707
  }
2707
2708
  `],$p=Sb;var vi=class extends q{constructor(){super(...arguments);this.orientation=eo.ORIENTATION;this.variant=eo.VARIANT;this.arrowDirection=eo.ARROW_DIRECTION;this.buttonPosition=eo.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Hs).includes(e)?e:eo.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(to).includes(e)?e:eo.ORIENTATION)}ensureValidDirections(){let e=this.orientation===to.HORIZONTAL?be.NEGATIVE:be.POSITIVE;Object.values(be).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(be).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let s=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",s)}}getArrowIcon(){let e=this.orientation===to.HORIZONTAL,s=this.arrowDirection===be.POSITIVE;return e?s?Ws.UP:Ws.DOWN:s?Ws.RIGHT:Ws.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var u;let e=(u=this.shadowRoot)==null?void 0:u.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(s.length>1)return;let n=s.some(x=>x.tagName===ks.toUpperCase()),h=s.some(x=>x.tagName===$i.toUpperCase());n&&!h?this.setAttribute("data-type","mdc-text-divider"):!n&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return R`
2708
2709
  <div></div>