{"version":3,"file":"GlassButton.D0qUx-ar.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/hZcCObrWRGx1jzl4N0MV/liTUvR73fDvCTZVAvJDW/GlassButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,Link}from\"framer\";// Glass Button by Omnium Labs (Brut)\n// Frosted glass button: blurred backdrop, thin light border. On hover it grows a little and turns clear.\n/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function GlassButton(props){const{label=\"View work\",link,newTab=false,quiet=false,font,size=0,color=\"#F6F6F4\",// \"height\"/\"width\" Framer koristi sam (velicina okvira), zato druga imena\nbuttonHeight=48,sidePadding=26,style}=props;const[hover,setHover]=React.useState(false);// Framerovu sirinu/visinu ne koristimo: gumb je uvijek visok \"Height\" i sirok koliko tekst + padding\nconst{width:_w,height:_h,...rest}=style??{};const box={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",height:buttonHeight,width:\"max-content\",padding:`0 ${sidePadding}px`,border:`1px solid rgba(246, 246, 244, ${hover?.14:.28})`,background:hover?\"rgba(246, 246, 244, .03)\":quiet?\"rgba(5, 5, 5, .22)\":\"linear-gradient(180deg, rgba(246, 246, 244, .16), rgba(246, 246, 244, .05))\",boxShadow:hover?\"none\":\"inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px rgba(5, 5, 5, .28)\",backdropFilter:hover?\"none\":\"blur(14px) saturate(1.2)\",WebkitBackdropFilter:hover?\"none\":\"blur(14px) saturate(1.2)\",transform:hover?\"scale(1.08)\":\"none\",transition:\"transform .45s cubic-bezier(.77,0,.18,1), background .45s ease, border-color .45s ease, box-shadow .45s ease, backdrop-filter .45s ease\",color,letterSpacing:\"0.02em\",lineHeight:1,whiteSpace:\"nowrap\",textDecoration:\"none\",cursor:\"pointer\",...font,...size>0?{fontSize:size}:{},...rest};// hover only where there is a mouse; on touch screens the button stays as it is\nconst events={onMouseEnter:()=>window.matchMedia(\"(hover: hover)\").matches&&setHover(true),onMouseLeave:()=>setHover(false)};if(!link)return /*#__PURE__*/_jsx(\"div\",{style:box,...events,children:label});return /*#__PURE__*/_jsx(Link,{href:link,openInNewTab:newTab,children:/*#__PURE__*/_jsx(\"a\",{style:box,...events,children:label})});}addPropertyControls(GlassButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"View work\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false},quiet:{type:ControlType.Boolean,title:\"Quiet\",defaultValue:false},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:15,fontWeight:500}},size:{type:ControlType.Number,title:\"Size\",description:\"0 = size from Font\",min:0,max:60,step:1,unit:\"px\",defaultValue:0},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#F6F6F4\"},buttonHeight:{type:ControlType.Number,title:\"Height\",min:24,max:120,step:1,unit:\"px\",defaultValue:48},sidePadding:{type:ControlType.Number,title:\"Padding\",min:0,max:80,step:1,unit:\"px\",defaultValue:26}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlassButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlassButton.map"],"mappings":"+LAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,YAAY,OAAK,SAAO,GAAM,QAAM,GAAM,OAAK,OAAK,EAAE,QAAM,UACtH,eAAa,GAAG,cAAY,GAAG,SAAO,EAAW,CAAC,EAAM,GAAUA,EAAe,EAAK,EACjF,CAAC,MAAM,EAAG,OAAO,EAAG,GAAG,GAAM,GAAO,CAAC,EAAQ,EAAI,CAAC,QAAQ,OAAO,WAAW,SAAS,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