@govtechsg/sgds-web-component 3.21.1 → 3.21.2-rc.0
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/components/Tab/index.umd.min.js +1 -1
- package/components/Tab/index.umd.min.js.map +1 -1
- package/components/Tab/sgds-tab-panel.js +1 -0
- package/components/Tab/sgds-tab-panel.js.map +1 -1
- package/components/index.umd.min.js +1 -1
- package/components/index.umd.min.js.map +1 -1
- package/custom-elements.json +1 -1
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/Tab/sgds-tab-panel.cjs.js +1 -0
- package/react/components/Tab/sgds-tab-panel.cjs.js.map +1 -1
- package/react/components/Tab/sgds-tab-panel.js +1 -0
- package/react/components/Tab/sgds-tab-panel.js.map +1 -1
- package/types/react.d.ts +73 -73
package/custom-elements.json
CHANGED
|
@@ -27502,7 +27502,7 @@
|
|
|
27502
27502
|
"package": {
|
|
27503
27503
|
"name": "@govtechsg/sgds-web-component",
|
|
27504
27504
|
"description": "",
|
|
27505
|
-
"version": "3.21.
|
|
27505
|
+
"version": "3.21.2-rc.0",
|
|
27506
27506
|
"author": "GovTechSG",
|
|
27507
27507
|
"license": "MIT"
|
|
27508
27508
|
}
|
package/index.umd.min.js
CHANGED
|
@@ -3855,7 +3855,7 @@ const Ol="important",Nl=" !"+Ol;const Ul=Ye(class extends je{constructor(e){if(s
|
|
|
3855
3855
|
<slot class="tab-group__body" @slotchange=${this._syncTabsAndPanels}></slot>
|
|
3856
3856
|
</div>
|
|
3857
3857
|
</div>
|
|
3858
|
-
`}}_d.styles=[...Pe.styles,kd],e([Be(".tab-group")],_d.prototype,"_tabGroup",void 0),e([Be(".tab-group__body")],_d.prototype,"_body",void 0),e([Be(".tab-group__nav")],_d.prototype,"_nav",void 0),e([De({type:String,reflect:!0})],_d.prototype,"variant",void 0),e([De({type:String,reflect:!0})],_d.prototype,"orientation",void 0),e([De({type:String,reflect:!0})],_d.prototype,"density",void 0),e([Le({slot:"nav",flatten:!0})],_d.prototype,"_navSlot",void 0);var Cd=n`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;let Sd=0;class Md extends Pe{constructor(){super(...arguments),this.attrId=++Sd,this.componentId=`sgds-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}_handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return ee`
|
|
3858
|
+
`}}_d.styles=[...Pe.styles,kd],e([Be(".tab-group")],_d.prototype,"_tabGroup",void 0),e([Be(".tab-group__body")],_d.prototype,"_body",void 0),e([Be(".tab-group__nav")],_d.prototype,"_nav",void 0),e([De({type:String,reflect:!0})],_d.prototype,"variant",void 0),e([De({type:String,reflect:!0})],_d.prototype,"orientation",void 0),e([De({type:String,reflect:!0})],_d.prototype,"density",void 0),e([Le({slot:"nav",flatten:!0})],_d.prototype,"_navSlot",void 0);var Cd=n`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;let Sd=0;class Md extends Pe{constructor(){super(...arguments),this.attrId=++Sd,this.componentId=`sgds-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}_handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true"),this.inert=!this.active}render(){return ee`
|
|
3859
3859
|
<slot
|
|
3860
3860
|
class=${We({"tab-panel":!0,"tab-panel--active":this.active})}
|
|
3861
3861
|
></slot>
|