{"version":3,"file":"FillButton.E_m-oAvP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/OhMBs7yNlWCoFZ9VhPhP/ZUo4SHwjJUCghuzrwJk0/FillButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Link}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FillButton(props){const{label,link,bg,fillColor,textColor,hoverTextColor,mono}=props;const uid=\"elfill\";const Tag=link?\"a\":\"span\";const inner=/*#__PURE__*/_jsxs(Tag,{...link?{href:link}:{},className:uid,style:{position:\"relative\",display:\"flex\",width:\"100%\",alignItems:\"center\",justifyContent:\"center\",padding:\"19px 34px\",borderRadius:999,background:bg,textDecoration:\"none\",overflow:\"hidden\",isolation:\"isolate\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${\"\"}elfill::before {\n                    content: \"\";\n                    position: absolute;\n                    inset: 0;\n                    background: ${fillColor};\n                    transform: scaleY(0);\n                    transform-origin: bottom center;\n                    transition: transform .38s cubic-bezier(.22,.61,.36,1);\n                    z-index: -1;\n                }\n                .${\"\"}elfill:hover::before { transform: scaleY(1); }\n                .${\"\"}elfill span { transition: color .25s ease; }\n                .${\"\"}elfill:hover span { color: ${hoverTextColor} !important; }\n            `}),/*#__PURE__*/_jsx(\"span\",{style:mono?{fontFamily:\"'PP Neue Montreal Mono', monospace\",fontSize:15,fontWeight:500,letterSpacing:\"0.14em\",textTransform:\"uppercase\",lineHeight:1,color:textColor,whiteSpace:\"nowrap\"}:{fontFamily:\"'PP Neue Montreal', sans-serif\",fontSize:17,fontWeight:500,lineHeight:1,color:textColor,whiteSpace:\"nowrap\"},children:label})]});return link?/*#__PURE__*/_jsx(Link,{href:link,children:inner}):inner;}FillButton.defaultProps={label:\"Lue lis\\xe4\\xe4\",bg:\"#EFE7DC\",fillColor:\"#2F3A33\",textColor:\"#2A2320\",hoverTextColor:\"#F0ECE3\",mono:false};addPropertyControls(FillButton,{label:{type:ControlType.String,title:\"Teksti\",defaultValue:\"Lue lis\\xe4\\xe4\"},link:{type:ControlType.Link,title:\"Linkki\"},bg:{type:ControlType.Color,title:\"Tausta\",defaultValue:\"#EFE7DC\"},fillColor:{type:ControlType.Color,title:\"Hover-t\\xe4ytt\\xf6\",defaultValue:\"#2F3A33\"},textColor:{type:ControlType.Color,title:\"Teksti-v\\xe4ri\",defaultValue:\"#2A2320\"},hoverTextColor:{type:ControlType.Color,title:\"Hover-teksti\",defaultValue:\"#F0ECE3\"},mono:{type:ControlType.Boolean,title:\"Mono-teksti\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FillButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FillButton.map"],"mappings":"0KAGG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,KAAG,YAAU,YAAU,iBAAe,QAAM,EAAyD,EAAmB,EAAzC,EAAK,IAAI,OAA0C,CAAC,GAAG,EAAK,CAAC,KAAK,CAAI,EAAE,CAAC,EAAE,UAAU,SAAI,MAAM,CAAC,SAAS,WAAW,QAAQ,OAAO,MAAM,OAAO,WAAW,SAAS,eAAe,SAAS,QAAQ,YAAY,aAAa,IAAI,WAAW,EAAG,eAAe,OAAO,SAAS,SAAS,UAAU,UAAU,OAAO,SAAS,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;kCAKtd,EAAU;;;;;;;;8CAQO,EAAe;aACrD,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,EAAK,CAAC,WAAW,qCAAqC,SAAS,GAAG,WAAW,IAAI,cAAc,SAAS,cAAc,YAAY,WAAW,EAAE,MAAM,EAAU,WAAW,QAAQ,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