@momentum-design/components 0.133.34 → 0.133.35
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/browser/index.js
CHANGED
|
@@ -6614,7 +6614,7 @@
|
|
|
6614
6614
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6615
6615
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6616
6616
|
}
|
|
6617
|
-
`,...Et()],ky=WS;var Gi=class extends ce(qd(fe)){constructor(){super(...arguments);this.active=ba.ACTIVE;this.variant=ba.VARIANT;this.size=ba.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(hm).includes(t)?t:ba.VARIANT)}setSize(t){this.setAttribute("size",Object.values(pm).includes(t)?`${t}`:ba.SIZE.toString())}getFilledIconName(){return
|
|
6617
|
+
`,...Et()],ky=WS;var Gi=class extends ce(qd(fe)){constructor(){super(...arguments);this.active=ba.ACTIVE;this.variant=ba.VARIANT;this.size=ba.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(hm).includes(t)?t:ba.VARIANT)}setSize(t){this.setAttribute("size",Object.values(pm).includes(t)?`${t}`:ba.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Wo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
|
|
6618
6618
|
<div part="container">
|
|
6619
6619
|
<div part="leading">
|
|
6620
6620
|
<slot name="prefix">
|