{"version":3,"file":"StudioButton.Dn-uy2FW.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","init_framer_BisrWwwE","StudioButton","direction","icon","link","newTab","event","style","iconPosition","paddingY","paddingX","color","radius","font","uppercase","hoverColor","clickColor","hoverFill","label","iconSize","paths","init_StudioButton","ControlType"],"sources":["https:/framerusercontent.com/modules/K4W79rKmTB2dRshgHowF/lchYAv6AWtkg4yYN02T7/StudioButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const paths={\"chevron-down\":\"m6 9 6 6 6-6\",\"chevron-right\":\"m9 6 6 6-6 6\",\"chevron-left\":\"m15 6-6 6 6 6\",\"arrow-down\":\"M12 4v16m-6-6 6 6 6-6\",\"arrow-right\":\"M4 12h16m-6-6 6 6-6 6\",\"arrow-up-right\":\"M6 18 18 6M6 6h12v12\",plus:\"M12 5v14M5 12h14\",download:\"M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 170\n * @framerIntrinsicHeight 46\n */export default function StudioButton({label=\"See below\",link,newTab=false,icon=\"chevron-down\",iconPosition=\"right\",iconSize=16,gap=8,font,uppercase=true,color=\"#ECE8E0\",hoverColor=\"#050505\",hoverFill=\"#ECE8E0\",clickColor=\"#605B54\",paddingX=22,paddingY=12,radius=999,style,onClick}){const direction=icon===\"chevron-down\"||icon===\"arrow-down\"||icon===\"download\"?\"0px, 2px\":icon===\"chevron-left\"?\"-2px, 0px\":icon===\"arrow-up-right\"?\"2px, -2px\":\"2px, 0px\";return /*#__PURE__*/_jsxs(\"a\",{className:\"jd-studio-button\",href:link||undefined,role:link?undefined:\"button\",tabIndex:0,target:newTab&&link?\"_blank\":undefined,rel:newTab&&link?\"noopener noreferrer\":undefined,onClick:onClick,onKeyDown:event=>{if(!link&&event.key===\"Enter\"||event.key===\" \"){event.preventDefault();event.currentTarget.click();}},style:{...style,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:iconPosition===\"left\"?\"row-reverse\":\"row\",gap,padding:`${paddingY}px ${paddingX}px`,height:\"auto\",boxSizing:\"border-box\",border:`1px solid ${color}`,borderRadius:radius,position:\"relative\",isolation:\"isolate\",overflow:\"hidden\",cursor:\"pointer\",textDecoration:\"none\",fontFamily:\"Inter, sans-serif\",fontSize:14,fontWeight:500,lineHeight:1.2,...font,textTransform:uppercase?\"uppercase\":\"none\",color,backgroundColor:\"transparent\",\"--jd-button-hover-color\":hoverColor,\"--jd-button-click-color\":clickColor,\"--jd-button-hover-fill\":hoverFill,\"--jd-button-icon-shift\":direction},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .jd-studio-button { transition: color .5s cubic-bezier(.22,1,.36,1), border-color .5s cubic-bezier(.22,1,.36,1), background-color .4s cubic-bezier(.22,1,.36,1); }\n                .jd-studio-button .jd-button-icon { transition: transform .5s cubic-bezier(.22,1,.36,1); }\n                @property --jd-glint-x {\n                    syntax: \"<percentage>\";\n                    inherits: false;\n                    initial-value: -8%;\n                }\n                @media (hover: hover) {\n                    .jd-studio-button:hover { color: var(--jd-button-hover-color) !important; border-color: var(--jd-button-hover-color) !important; background-color: var(--jd-button-hover-fill) !important; }\n                    .jd-studio-button:hover .jd-button-icon { transform: translate(var(--jd-button-icon-shift)); }\n                    .jd-studio-button:hover {\n                        -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 calc(var(--jd-glint-x) - 16%), rgba(0,0,0,.25) var(--jd-glint-x), #000 calc(var(--jd-glint-x) + 16%), #000 100%);\n                        mask-image: linear-gradient(100deg, #000 0%, #000 calc(var(--jd-glint-x) - 16%), rgba(0,0,0,.25) var(--jd-glint-x), #000 calc(var(--jd-glint-x) + 16%), #000 100%);\n                        animation: jd-button-glint .8s cubic-bezier(.65,0,.35,1) both;\n                    }\n                }\n                .jd-studio-button:active {\n                    color: var(--jd-button-click-color) !important;\n                    border-color: var(--jd-button-click-color) !important;\n                    transition-duration: .12s;\n                }\n                .jd-studio-button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }\n                @keyframes jd-button-glint { from { --jd-glint-x: -8%; } to { --jd-glint-x: 130%; } }\n                @media (prefers-reduced-motion: reduce) {\n                    .jd-studio-button, .jd-studio-button .jd-button-icon { transition: none; }\n                    .jd-studio-button:hover .jd-button-icon { transform: none; }\n                    .jd-studio-button:hover { animation: none; mask-image: none; -webkit-mask-image: none; }\n                }\n            `}),/*#__PURE__*/_jsx(\"span\",{children:label}),icon!==\"none\"&&/*#__PURE__*/_jsx(\"svg\",{className:\"jd-button-icon\",width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:paths[icon]})})]});}addPropertyControls(StudioButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"See below\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false},icon:{type:ControlType.Enum,title:\"Icon\",options:[\"none\",\"chevron-down\",\"chevron-right\",\"chevron-left\",\"arrow-down\",\"arrow-right\",\"arrow-up-right\",\"plus\",\"download\"],optionTitles:[\"None\",\"Chevron Down\",\"Chevron Right\",\"Chevron Left\",\"Arrow Down\",\"Arrow Right\",\"Arrow Up Right\",\"Plus\",\"Download\"],defaultValue:\"chevron-down\"},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\",displaySegmentedControl:true},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:16,min:8,max:48,step:1},gap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ECE8E0\"},clickColor:{type:ControlType.Color,title:\"Click Color\",defaultValue:\"#605B54\"},hoverColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#050505\"},hoverFill:{type:ControlType.Color,title:\"Hover Fill\",defaultValue:\"#ECE8E0\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:22,min:0,max:100},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:12,min:0,max:80},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:999,min:0,max:999}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StudioButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"46\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"170\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StudioButton.map"],"mappings":"A,8JAKG,SAAwBM,EAAa,CAAC,QAAM,YAAY,OAAK,SAAO,GAAM,OAAK,eAAe,eAAa,QAAQ,WAAS,GAAG,MAAI,EAAE,OAAK,YAAU,GAAK,QAAM,UAAU,aAAW,UAAU,YAAU,UAAU,aAAW,UAAU,WAAS,GAAG,WAAS,GAAG,SAAO,IAAI,QAAM,WAAS,CAAC,IAAMC,EAAUC,IAAO,gBAAgBA,IAAO,cAAcA,IAAO,WAAW,WAAWA,IAAO,eAAe,YAAYA,IAAO,iBAAiB,YAAY,WAAW,MAAoB,gBAAM,IAAI,CAAC,UAAU,mBAAmB,KAAKC,GAAM,IAAA,GAAU,KAAKA,EAAK,IAAA,GAAU,SAAS,SAAS,EAAE,OAAOC,GAAQD,EAAK,SAAS,IAAA,GAAU,IAAIC,GAAQD,EAAK,sBAAsB,IAAA,GAAkB,UAAQ,UAAU,GAAO,EAAI,CAACA,GAAME,EAAM,M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