@momentum-design/components 0.137.3 → 0.137.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.
@@ -6408,7 +6408,7 @@
6408
6408
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
6409
6409
  }
6410
6410
  }
6411
- `,Ky=[cI];var Sa=class extends Z{constructor(){super(...arguments);this.status=Am.STATUS;this.orientation=Am.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Is.Context})}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};Sa.styles=[...Z.styles,...Ky],h([u({type:String,reflect:!0})],Sa.prototype,"status",2),h([u({type:String,reflect:!0})],Sa.prototype,"orientation",2);var Cm=Sa;Cm.register(Hy);var hI=Cm;var pI=B`
6411
+ `,Ky=[cI];var Sa=class extends Z{constructor(){super(...arguments);this.status=Am.STATUS;this.orientation=Am.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Is.Context})}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.orientation&&this.orientation!==e.orientation&&(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};Sa.styles=[...Z.styles,...Ky],h([u({type:String,reflect:!0})],Sa.prototype,"status",2),h([u({type:String,reflect:!0})],Sa.prototype,"orientation",2);var Cm=Sa;Cm.register(Hy);var hI=Cm;var pI=B`
6412
6412
  :host {
6413
6413
  gap: 0.5rem;
6414
6414
  border-radius: 0.25rem;
@@ -6564,7 +6564,7 @@
6564
6564
  :host([status='error-incomplete']:active) {
6565
6565
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
6566
6566
  }
6567
- `,Wy=[Tt,pI,...xt()];var Yi=class extends Ot(Nt(ii(Z))){constructor(){super();this.variant=Im.VARIANT;this.status=Im.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Is.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.remove("pressed"),e===G.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Wi.COMPLETED?S`<mdc-icon part="status-icon" name=${Ac.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Wi.ERROR_CURRENT||this.status===Wi.CURRENT?S`<mdc-icon part="status-icon" name=${Ac.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Wi.NOT_STARTED||this.status===Wi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6567
+ `,Wy=[Tt,pI,...xt()];var Yi=class extends Ot(Nt(ii(Z))){constructor(){super();this.variant=Im.VARIANT;this.status=Im.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Is.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.remove("pressed"),e===G.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Wi.COMPLETED?S`<mdc-icon part="status-icon" name=${Ac.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Wi.ERROR_CURRENT||this.status===Wi.CURRENT?S`<mdc-icon part="status-icon" name=${Ac.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Wi.NOT_STARTED||this.status===Wi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6568
6568
  >${this.stepNumber}</mdc-text
6569
6569
  >`:K}renderHelpText(){if(!this.helpText)return K;let t=S`<mdc-text
6570
6570
  part="help-text"