@m3e/fab 1.0.0 → 1.0.2
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
package/dist/index.min.js
CHANGED
|
@@ -282,7 +282,7 @@ function W(e,a){return(a,t,o)=>((e,a,t)=>(t.configurable=!0,t.enumerable=!0,Refl
|
|
|
282
282
|
transparent
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
|
-
`}const V=[J("primary"),J("secondary"),J("tertiary"),J("primary-container"),J("secondary-container"),J("tertiary-container"),J("surface")];var Z,Q;let X=class extends(i(n(l(c(s(d(v(y(t,"button"),!0)))))))){constructor(){super(),Z.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new b(this,{isPressedKey:e=>" "===e
|
|
285
|
+
`}const V=[J("primary"),J("secondary"),J("tertiary"),J("primary-container"),J("secondary-container"),J("tertiary-container"),J("surface")];var Z,Q;let X=class extends(i(n(l(c(s(d(v(y(t,"button"),!0)))))))){constructor(){super(),Z.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new b(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return o`<div class="base">
|
|
286
286
|
<m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation>
|
|
287
287
|
<m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer>
|
|
288
288
|
<m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
|