import{mode as e}from"../../../../theme-tools/dist/esm/component.js";import{transparentize as o}from"../../../../theme-tools/dist/esm/color.js";function r(){return(r=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}function t(r){var{colorScheme:t,theme:i}=r;if("gray"===t)return{color:e("inherit","whiteAlpha.900")(r),_hover:{bg:e("gray.100","whiteAlpha.200")(r)},_active:{bg:e("gray.200","whiteAlpha.300")(r)}};var a=o(t+".200",.12)(i),n=o(t+".200",.24)(i);return{color:e(t+".600",t+".200")(r),bg:"transparent",_hover:{bg:e(t+".50",a)(r)},_active:{bg:e(t+".100",n)(r)}}}var i={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}};var a={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:t,outline:function(o){var{colorScheme:i}=o,a=e("gray.200","whiteAlpha.300")(o);return r({border:"1px solid",borderColor:"gray"===i?a:"currentColor"},t(o))},solid:function(o){var{colorScheme:r}=o;if("gray"===r){var t=e("gray.100","whiteAlpha.200")(o);return{bg:t,_hover:{bg:e("gray.200","whiteAlpha.300")(o),_disabled:{bg:t}},_active:{bg:e("gray.300","whiteAlpha.400")(o)}}}var{bg:a=r+".500",color:n="white",hoverBg:l=r+".600",activeBg:c=r+".700"}=i[r]||{},h=e(a,r+".200")(o);return{bg:h,color:e(n,"gray.800")(o),_hover:{bg:e(l,r+".300")(o),_disabled:{bg:h}},_active:{bg:e(c,r+".400")(o)}}},link:function(o){var{colorScheme:r}=o;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:e(r+".500",r+".200")(o),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:e(r+".700",r+".500")(o)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}};export default a;
//# sourceMappingURL=button.js.map
