{"version":3,"file":"UpLight_Button.QJPESUWC.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/XcKENhQsdCDkgjZlKcgp/6DgC77tiib61dl06dVlb/UpLight_Button.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Link}from\"framer\";const styles=`\n.ult-button {\n    --ult-accent: #128eae;\n    --ult-text: #f6f8f9;\n    position: relative;\n    box-sizing: border-box;\n    display: inline-flex;\n    align-items: stretch;\n    justify-content: flex-start;\n    max-width: 100%;\n    min-width: 0;\n    min-height: 56px;\n    overflow: hidden;\n    border: 1px solid rgba(255,255,255,.20);\n    border-radius: 5px;\n    color: var(--ult-text);\n    background:\n        linear-gradient(110deg, rgba(255,255,255,.065), transparent 30%),\n        #090d10;\n    box-shadow:\n        inset 0 1px 0 rgba(255,255,255,.055),\n        0 12px 30px rgba(0,0,0,.24);\n    text-decoration: none;\n    cursor: pointer;\n    -webkit-tap-highlight-color: transparent;\n    transition:\n        transform 180ms cubic-bezier(.2,.8,.2,1),\n        border-color 180ms ease,\n        opacity 180ms ease;\n}\n\n.ult-button::before {\n    content: \"\";\n    position: absolute;\n    z-index: 2;\n    top: -1px;\n    left: 18px;\n    width: 76px;\n    height: 1px;\n    pointer-events: none;\n    background: linear-gradient(90deg, var(--ult-accent), transparent);\n    transition: width 220ms cubic-bezier(.2,.8,.2,1);\n}\n\n.ult-button__label {\n    display: flex;\n    flex: 0 1 auto;\n    align-items: center;\n    min-width: 0;\n    width: max-content;\n    max-width: 100%;\n    box-sizing: border-box;\n    padding: 0 22px;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    font-family: Roboto, Arial, sans-serif;\n    font-size: 15px;\n    font-weight: 500;\n    line-height: 1;\n    letter-spacing: .075em;\n    text-transform: uppercase;\n}\n\n.ult-button__arrow {\n    position: relative;\n    display: grid;\n    width: 55px;\n    min-width: 55px;\n    place-items: center;\n    border-left: 1px solid rgba(255,255,255,.12);\n    background:\n        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ult-accent) 22%, transparent), transparent 72%),\n        color-mix(in srgb, var(--ult-accent) 8%, transparent);\n}\n\n.ult-button__arrow svg {\n    width: 21px;\n    height: 21px;\n    overflow: visible;\n    transition: transform 180ms cubic-bezier(.2,.8,.2,1);\n}\n\n.ult-button:hover {\n    transform: translateY(-1px);\n    border-color: var(--ult-accent);\n}\n\n.ult-button:hover::before {\n    width: 116px;\n}\n\n.ult-button:hover .ult-button__arrow svg {\n    transform: translate(2px, -2px);\n}\n\n.ult-button:active {\n    transform: translateY(0);\n}\n\n.ult-button:focus-visible {\n    outline: 2px solid var(--ult-accent);\n    outline-offset: 3px;\n}\n\n.ult-button--secondary {\n    background: rgba(255,255,255,.018);\n    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);\n}\n\n.ult-button--secondary .ult-button__arrow {\n    background: transparent;\n}\n\n.ult-button--tertiary {\n    min-height: 30px;\n    overflow: visible;\n    border: 0;\n    border-radius: 0;\n    background: transparent;\n    box-shadow: none;\n}\n\n.ult-button--tertiary::before {\n    top: auto;\n    bottom: 0;\n    left: 0;\n    width: 36px;\n}\n\n.ult-button--tertiary .ult-button__label {\n    padding: 0 11px 0 0;\n}\n\n.ult-button--tertiary .ult-button__arrow {\n    flex-basis: 28px;\n    width: 28px;\n    min-width: 28px;\n    border-left: 0;\n    color: var(--ult-accent);\n    background: transparent;\n}\n\n.ult-button--tertiary .ult-button__arrow svg {\n    width: 18px;\n    height: 18px;\n}\n\n.ult-button--tertiary:hover {\n    transform: none;\n}\n\n.ult-button[aria-disabled=\"true\"] {\n    opacity: .42;\n    cursor: not-allowed;\n    pointer-events: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n    .ult-button,\n    .ult-button::before,\n    .ult-button__arrow svg {\n        transition: none;\n    }\n}\n`;function ArrowIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6.5 17.5 17.5 6.5M9 6.5h8.5V15\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}/**\n * UpLight Technologies button system.\n *\n * @framerSupportedLayoutWidth any-prefer-auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 56\n */export default function UpLightButton(props){const{text,action,link,importance,openInNewTab,accentColor,textColor,ariaLabel,disabled,style}=props;const variantClass=importance.toLowerCase();const isTertiary=importance===\"Tertiary\";const componentStyle={...style,width:style?.width??\"fit-content\",height:isTertiary?\"auto\":style?.height,[\"--ult-accent\"]:accentColor,[\"--ult-text\"]:textColor};const commonProps={className:`ult-button ult-button--${variantClass}`,style:componentStyle,\"aria-label\":ariaLabel||text,\"aria-disabled\":disabled||undefined};const content=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"ult-button__label\",children:text}),/*#__PURE__*/_jsx(\"span\",{className:\"ult-button__arrow\",children:/*#__PURE__*/_jsx(ArrowIcon,{})})]});return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),action===\"Link\"&&link?disabled?/*#__PURE__*/_jsx(\"a\",{...commonProps,onClick:event=>event.preventDefault(),children:content}):/*#__PURE__*/_jsx(Link,{href:link,openInNewTab:openInNewTab,children:/*#__PURE__*/_jsx(\"a\",{...commonProps,children:content})}):/*#__PURE__*/_jsx(\"button\",{...commonProps,type:action===\"Submit Form\"?\"submit\":\"button\",disabled:disabled,children:content})]});}UpLightButton.defaultProps={text:\"View Project\",action:\"Link\",link:\"\",importance:\"Primary\",openInNewTab:false,accentColor:\"#128EAE\",textColor:\"#F6F8F9\",ariaLabel:\"\",disabled:false};addPropertyControls(UpLightButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"View Project\"},action:{type:ControlType.Enum,title:\"Action\",options:[\"Link\",\"Submit Form\"],optionTitles:[\"Open Link\",\"Submit Form\"],defaultValue:\"Link\"},link:{type:ControlType.Link,title:\"Link\",hidden:props=>props.action!==\"Link\"},importance:{type:ControlType.Enum,title:\"Importance\",options:[\"Primary\",\"Secondary\",\"Tertiary\"],optionTitles:[\"Primary\",\"Secondary\",\"Tertiary\"],displaySegmentedControl:false,defaultValue:\"Primary\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:props=>props.action!==\"Link\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#128EAE\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#F6F8F9\"},ariaLabel:{type:ControlType.String,title:\"A11y Label\",placeholder:\"Defaults to button text\"},disabled:{type:ControlType.Boolean,title:\"Disabled\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UpLightButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-auto\",\"framerIntrinsicHeight\":\"56\",\"framerIntrinsicWidth\":\"220\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UpLight_Button.map"],"mappings":"iLAqKE,SAAS,GAAW,CAAC,OAAoB,EAAK,MAAM,CAAC,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,UAAU,QAAQ,SAAsB,EAAK,OAAO,CAAC,EAAE,kCAAkC,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,OAAO,CAAC,CAAC,CAAC,CAAE,CAO3R,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,SAAO,OAAK,aAAW,eAAa,cAAY,YAAU,YAAU,WAAS,SAAO,EAAY,EAAa,EAAW,YAA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