import{mode as o}from"../../../../theme-tools/dist/esm/component.js";import{getColor as r}from"../../../../theme-tools/dist/esm/color.js";function t(o){var{orientation:r}=o;return{display:"vertical"===r?"flex":"block"}}function e(o){var{isFitted:r}=o;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function i(o){var{align:r="start",orientation:t}=o;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:"vertical"===t?"column":"row"}}var n={p:4};var l={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:o=>({root:t(o),tab:e(o),tablist:i(o),tabpanel:n}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(r){var{colorScheme:t,orientation:e}=r,i="vertical"===e?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",["vertical"===e?"marginStart":"marginBottom"]:"-2px",_selected:{color:o(t+".600",t+".300")(r),borderColor:"currentColor"},_active:{bg:o("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(r){var{colorScheme:t}=r;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:o(t+".600",t+".300")(r),borderColor:"inherit",borderBottomColor:o("white","gray.800")(r)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(r){var{colorScheme:t}=r;return{tab:{border:"1px solid",borderColor:"inherit",bg:o("gray.50","whiteAlpha.50")(r),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:o("#fff","gray.800")(r),color:o(t+".600",t+".300")(r),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(o){var{colorScheme:t,theme:e}=o;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:r(e,t+".700"),bg:r(e,t+".100")}}}},"solid-rounded":function(r){var{colorScheme:t}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:o("gray.600","inherit")(r),_selected:{color:o("#fff","gray.800")(r),bg:o(t+".600",t+".300")(r)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}};export default l;
//# sourceMappingURL=tabs.js.map
