@ni/nimble-components 8.6.0 → 8.6.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.
@@ -889,7 +889,7 @@ const[fn,bn,wn,xn,yn,$n,Cn,kn]=Vr(zo,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans P
889
889
  Vr(Oo,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","19px","24px","sans-serif"),Vr(Io,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","300","16px","20px","sans-serif"),Vr(So,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","300","12.800000190734863px","16px","sans-serif"),Vr(Ao,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","14px","18px","sans-serif")
890
890
  const[_n,zn,On,In,Sn,An,Mn,Vn]=Vr(Mo,(t=>Wo(Tr(t),.6)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","14px","18px","sans-serif"),[En,Hn,Ln,Tn,Rn,Pn,Fn,Bn]=Vr(Vo,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","600","14px","18px","sans-serif"),[Dn,Nn,jn,qn,Un,Kn,Wn,Yn]=Vr(Eo,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","14px","18px","sans-serif"),[Xn,Gn,Qn,Jn,Zn,tr,er,sr]=Vr(Ho,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Space Mono","400","11px","16px","sans-serif"),[ir,or,nr,rr,ar,lr,cr,hr]=Vr(Lo,(t=>Wo(Tr(t),.6)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","600","11px","16px","sans-serif"),[dr,ur,pr,vr,gr,mr,fr,br]=Vr(To,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","12.800000190734863px","16px","sans-serif")
891
891
  Vr(Ro,(t=>Tr(t)),(t=>Wo(Tr(t),.3)),"Source Sans Pro","400","11px",Ni,"sans-serif")
892
- const[wr,xr,yr,$r,Cr,kr,_r,zr]=Vr(Po,(t=>Hr(t)),(t=>Wo(Hr(t),.3)),"Source Sans Pro","400","9px",Ni,"sans-serif"),Or=Os.create(Fo(bo)).withDefault("uppercase"),Ir=Os.create(Fo(xo)).withDefault("0.1s"),Sr=Os.create(Fo(yo)).withDefault("0.15s"),Ar=Os.create(Fo($o)).withDefault(250)
892
+ const[wr,xr,yr,$r,Cr,kr,_r,zr]=Vr(Po,(t=>Hr(t)),(t=>Wo(Hr(t),.3)),"Source Sans Pro","400","9px",Ni,"sans-serif"),Or=Os.create(Fo(bo)).withDefault("uppercase"),Ir=Os.create(Fo(xo)).withDefault("0.075s"),Sr=Os.create(Fo(yo)).withDefault("0.15s"),Ar=Os.create(Fo($o)).withDefault("0.25s")
893
893
  function Mr(t){const{red:e,green:s,blue:i}=Ui(t)
894
894
  return`${e}, ${s}, ${i}`}function Vr(t,e,s,i,o,n,r,a){if(""===t||""===i||""===o||""===n||""===r||""===a)throw new Error("createFontTokens parameter unexpectedly set to empty string")
895
895
  const l=Os.create(Fo(t)).withDefault(`${o} ${n}/${r} ${i}, ${a}`),c=t.split("-font"),h=c[0]
@@ -1779,8 +1779,9 @@ case zh.Closing:this.hidden=!1,this.animateClosing()
1779
1779
  break
1780
1780
  case zh.Closed:this.hidden=!0
1781
1781
  break
1782
- default:throw new Error("Unsupported state value. Expected: opening/opened/closing/closed")}this.$emit("state-change")}}updateAnimationDuration(){const t=$h.matches
1783
- this.animationDurationMilliseconds=t?.001:Ar.getValueFor(this)}animateOpening(){this.animateOpenClose(!0)}animateClosing(){this.hidden?this.state=zh.Closed:this.animateOpenClose(!1)}animateOpenClose(t){const e={...t?Ch.slideInOptions:Ch.slideOutOptions,duration:this.animationDurationMilliseconds},s=this.location===_h.Right?Ch.slideRightKeyframes:Ch.slideLeftKeyframes,i=new Lc.AnimateTo(this.dialog,void 0,e)
1782
+ default:throw new Error("Unsupported state value. Expected: opening/opened/closing/closed")}this.$emit("state-change")}}updateAnimationDuration(){if($h.matches)this.animationDurationMilliseconds=.001
1783
+ else{const t=Ar.getValueFor(this),e=parseFloat(t)
1784
+ this.animationDurationMilliseconds=1e3*e}}animateOpening(){this.animateOpenClose(!0)}animateClosing(){this.hidden?this.state=zh.Closed:this.animateOpenClose(!1)}animateOpenClose(t){const e={...t?Ch.slideInOptions:Ch.slideOutOptions,duration:this.animationDurationMilliseconds},s=this.location===_h.Right?Ch.slideRightKeyframes:Ch.slideLeftKeyframes,i=new Lc.AnimateTo(this.dialog,void 0,e)
1784
1785
  i.addKeyframes(s)
1785
1786
  const o=[i],n=this.shadowRoot?.querySelector(".overlay")
1786
1787
  if(n){const t=new Lc.AnimateTo(n,void 0,e)