@legion-ui-kit/react-core
Version:
<div align="center"> <img height="108" width="116" src="https://legion.digitaltelkom.id/favicon.svg?v=4643a71fb65fa61a5f2b266b769ea7b1" /> <h1 align="center">Legion UI Kit - React Core</h1> </div>
3 lines (2 loc) • 512 B
JavaScript
import{checkComponent as t}from"../../helpers/internal.js";import{TABS_POSITION as e,TABS_CHILDREN_DISPLAY_NAME as f}from"./Tab.constant.js";const o=e=>{let o=!1;return f.forEach(f=>{t(e,f)&&(o=!0)}),o},r=(t,f)=>{switch(t){case e.right:return{top:f?.offsetTop};case e.bottom:return{left:f?.offsetLeft,width:f?.offsetWidth};case e.left:return{top:f?.offsetTop};default:return{left:f?.offsetLeft,width:f?.offsetWidth}}};export{o as checkTabsChildren,r as getTabsIndicator};
//# sourceMappingURL=Tabs.helper.js.map