{"version":3,"file":"Button.CT5RhaUf.mjs","names":["ButtonInternal","Tokens","useMemo","gap","style","_Fragment"],"sources":["https:/framerusercontent.com/modules/FkbrVksyiwmgD2bFsrtv/5HinRk2eRnqRbBBz4S3h/Button.js"],"sourcesContent":["/**\n * Button - Button component with multiple variants and states.\n *\n * Button component supporting solid, ghost, outline, link, legacy Primary (brand solid blue),\n * and primary-warm / primary-lush / primary-cool rainbow variants. The three rainbow variants\n * render Brand Rainbow Signature gradients (Warm, Lush, Cool) and ignore `theme`; legacy Primary\n * also ignores `theme` for label/icon colors per `buttonStyles.ts`.\n * Includes support for different sizes, states (default, disabled, loading),\n * and icon placement (leading, trailing, icon-only).\n *\n * Typography: size maps to `/Button XL` (large), `/Button LG` (medium), `/Button SM` (small).\n * Font sizes scale by breakpoint (desktop base; tablet interpolated; phone uses the small-screen preset).\n *\n * Size dimensions:\n *   Small  — 44 × 44px minimum touch target, 16px H padding, 8px V padding; icon-only glyph via {@link iconPixelSizeForSquareSide} (`svg.ts`)\n *   Medium — 48 × 48px (icon-only), 48px height (text), 24px H padding, 12px V padding\n *   Large  — 56 × 56px (icon-only), 56px height (text), 32px H padding, 16px V padding\n *\n * Icon-only padding = (height − iconSize) / 2, so content fits exactly inside border-box.\n */// 1. React and React types\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useMemo,useEffect}from\"react\";// 2. Framer Motion (not applicable)\n// 3. Framer API\nimport{addPropertyControls,ControlType}from\"framer\";import{FRAMER_BREAKPOINT_DESCRIPTION}from\"https://framerusercontent.com/modules/TvAAtdjNtwUg3Y1lriXj/Wh3HNug8gnAeRVrciJOW/propertyControlCopy.js\";// 4. Design system\nimport{Tokens,getLiquidGlassBackdropBlurFilter,useReducedMotion,LIQUID_GLASS_SHARED}from\"https://framerusercontent.com/modules/HjvhO8Re4WnlZSTpJli8/jbCIdsxnmVrJOsDqxSxp/index.js\";import{SPINNER_DURATION_FULL,BUTTON_SPIN_KEYFRAMES_NAME,BUTTON_SPIN_KEYFRAMES_RULE}from\"https://framerusercontent.com/modules/4zU46N6zmk4kAwI6633E/rs5qQjj5gsXnmwMYotSf/animationConstants.js\";import{getButtonBackgroundColor,getButtonBorderStyle,getButtonTextColor,getButtonIconColor,getGhostGlassButtonBackground,getPrimaryRainbowGradientWithColoredGlass}from\"https://framerusercontent.com/modules/2zwpGmOdSSxYIu3BgaaO/xOLU66f31yrw6qn4Tzs9/buttonStyles.js\";import{getFocusOutlineStyle}from\"https://framerusercontent.com/modules/mehW3ipt7NwJNkWUjO0g/TatoE2nXREsJFApGHAt7/layoutStyles.js\";// 5. Local\nimport{useInteractiveStates}from\"https://framerusercontent.com/modules/U2JBkUXibY2YYWsHMAJo/3tlMH4hg7ehgZ4TLC0Va/useInteractiveStates.js\";import{isDevelopment}from\"https://framerusercontent.com/modules/47jGon7CMrRR2tkBLszZ/ixJNoJU1L47x43mPtcbC/env.js\";import{getLinkUrl,getNewTabAriaLabel,useSmartLinkProps}from\"https://framerusercontent.com/modules/kNZJPvkIJZGGj8KxF53M/EVxL25LJacDR3InTjCol/linkHelpers.js\";import{getIcon,getIconRaw,ICON_OPTIONS_WITH_CUSTOM,ICON_OPTION_TITLES_WITH_CUSTOM}from\"https://framerusercontent.com/modules/fJNdNvtkorPxGrDlmhln/LiwKJUReu5R3WX0AxbqC/icons.js\";import{iconPixelSizeForSquareSide,processSVG,squareIconPaddingOneSidePx}from\"https://framerusercontent.com/modules/keR2epPkn1MdvCLnDSBc/z4ga9Xl53MGZI0XlY2dd/svg.js\";import{PLACEHOLDER}from\"https://framerusercontent.com/modules/ZO8py5W6dWspTZ6N8FoQ/ik33zGZQhIFSuzy6bsA1/placeholders.js\";import{normalizeElementId}from\"https://framerusercontent.com/modules/V8DZ1j6fmzxP1pB8h5BJ/sPSFCEug6lYXxMvPVu5Z/resolveElementId.js\";const DEFAULT_CIRCLE_ICON_SVG=getIconRaw(\"circle\");const ButtonInternal=/*#__PURE__*/forwardRef(function ButtonInternal(props,ref){const{breakpoint=\"desktop\",variant=\"solid\",theme=\"default\",size=\"medium\",widthMode=\"responsive\",label=PLACEHOLDER.PRIMARY_BUTTON,leadingIconName=\"circle\",leadingIconSvg=DEFAULT_CIRCLE_ICON_SVG,trailingIconName=\"arrow-narrow-right\",trailingIconSvg=DEFAULT_CIRCLE_ICON_SVG,iconPosition=\"none\",disabled=false,loading=false,link,openInNewTab=false,onClick,ariaLabel,style,type=\"button\",id,...rest}=props;const elementId=normalizeElementId(id);const iconOnly=iconPosition===\"icon-only\";// Enforce that icon-only buttons get an explicit accessible name in\n// development. Without this, a missing `ariaLabel` ships silently\n// and AT users hear an unlabelled button. We intentionally don't\n// throw — Framer canvas / Storybook need to keep rendering — but a\n// loud `console.warn` on the dev build catches it during review.\nuseEffect(()=>{if(typeof window===\"undefined\"||!isDevelopment())return;if(!iconOnly)return;const labelText=typeof label===\"string\"?label.trim():\"\";const ariaText=typeof ariaLabel===\"string\"?ariaLabel.trim():\"\";if(!ariaText&&!labelText){console.warn(\"[Button] icon-only buttons must set `ariaLabel` (or pass a string `label` for the visually-hidden name) so screen readers announce something other than an unlabelled button.\");}},[iconOnly,ariaLabel,label]);const isDisabled=disabled;const isLoading=loading;const isInteractive=!isDisabled&&!isLoading;const reducedMotion=useReducedMotion();const typography=size===\"large\"?Tokens.getTypographyStyles(\"/Button XL\",breakpoint):size===\"medium\"?Tokens.getTypographyStyles(\"/Button LG\",breakpoint):Tokens.getTypographyStyles(\"/Button SM\",breakpoint);const{isHovered,isPressed,isFocused,brightnessFilter,cursorStyle,handlers}=useInteractiveStates(isDisabled||isLoading);const finalBrightnessFilter=isDisabled?Tokens.getBrightnessFilter(true,false,false):brightnessFilter;// Icon-only: shared fill ratio + symmetric padding (`utils/svg.ts`). With label: 20 / 24 px per size.\nconst iconOnlySidePx=size===\"large\"?56:size===\"medium\"?48:44;const buttonHeightPx=iconOnly?iconOnlySidePx:size===\"large\"?56:size===\"medium\"?48:44;const iconSize=iconOnly?iconPixelSizeForSquareSide(iconOnlySidePx):size===\"small\"?20:24;// Constants for padding logic (values must be in SPACING_SCALE)\nconst PADDING_TOP_LARGE=16;const PADDING_TOP_MEDIUM=12;const PADDING_TOP_SMALL=8;const PADDING_HORIZONTAL_LARGE=32;const PADDING_HORIZONTAL_MEDIUM=24;const PADDING_HORIZONTAL_SMALL=16;const GAP_LARGE=12;const GAP_MEDIUM=10;const GAP_SMALL=8;const showIconLeading=iconPosition===\"leading\"||iconOnly;const showIconTrailing=iconPosition===\"trailing\"&&!iconOnly;const showLoadingIcon=isLoading;const backgroundColor=getButtonBackgroundColor(variant,theme,isDisabled);const border=getButtonBorderStyle(variant,theme,isDisabled);const textColor=getButtonTextColor(variant,theme,isDisabled);const iconColor=getButtonIconColor(variant,theme,isDisabled);const linkUrl=getLinkUrl(link);const hasLink=Boolean(linkUrl&&linkUrl.trim()!==\"\");const handleClick=e=>{if(!isInteractive){e.preventDefault();e.stopPropagation();return;}onClick?.(e);// When rendered as submit button, do not preventDefault so the form's onSubmit runs.\nif(type===\"submit\"){return;}// When rendered as button (no link), consume the event so Framer does not\n// treat it as unhandled and show an error state in the canvas.\nif(!hasLink){e.preventDefault();e.stopPropagation();}};const smartLink=useSmartLinkProps(link,openInNewTab,{onClick:e=>handleClick(e)});const linkOpensNewTab=hasLink&&smartLink.target===\"_blank\";const trimmedAria=typeof ariaLabel===\"string\"?ariaLabel.trim():\"\";const trimmedLabel=typeof label===\"string\"?label.trim():\"\";const iconAccessibleName=trimmedAria||trimmedLabel||\"Button\";const resolvedAriaLabel=(()=>{if(!hasLink){if(iconOnly)return iconAccessibleName;if(trimmedAria!==\"\"&&trimmedAria!==trimmedLabel)return trimmedAria;return undefined;}if(linkOpensNewTab){const name=iconOnly?iconAccessibleName:trimmedLabel;if(name)return getNewTabAriaLabel(name);}if(iconOnly)return iconAccessibleName;if(trimmedAria!==\"\"&&trimmedAria!==trimmedLabel)return trimmedAria;return undefined;})();const buttonStyles=useMemo(()=>{const{background:styleBackground,...restStyle}=style??{};const getNumericSpacing=val=>parseFloat(Tokens.getResponsiveSpacing(val,breakpoint));const getPadding=()=>{if(iconOnly){const basePadding=squareIconPaddingOneSidePx(iconOnlySidePx);const basePaddingStr=Tokens.getResponsiveSpacing(basePadding,breakpoint);return`${basePaddingStr} ${basePaddingStr}`;}else{let top=PADDING_TOP_SMALL;let horizontal=PADDING_HORIZONTAL_SMALL;let gap=GAP_SMALL;if(size===\"large\"){top=PADDING_TOP_LARGE;horizontal=PADDING_HORIZONTAL_LARGE;gap=GAP_LARGE;}else if(size===\"medium\"){top=PADDING_TOP_MEDIUM;horizontal=PADDING_HORIZONTAL_MEDIUM;gap=GAP_MEDIUM;}const topStr=Tokens.getResponsiveSpacing(top,breakpoint);const horizontalStr=Tokens.getResponsiveSpacing(horizontal,breakpoint);if(!showIconLeading&&!showIconTrailing){return`${topStr} ${horizontalStr}`;}const horizontalVal=getNumericSpacing(horizontal);const gapVal=getNumericSpacing(gap);// Balanced padding\nif(showIconLeading&&showIconTrailing){return`${topStr} ${horizontalStr}`;}else if(showIconLeading){const right=horizontalVal+gapVal;return`${topStr} ${right}px ${topStr} ${horizontalStr}`;}else{// showIconTrailing\nconst left=horizontalVal+gapVal;return`${topStr} ${horizontalStr} ${topStr} ${left}px`;}}};const getGap=()=>{if(iconOnly)return\"0\";if(size===\"large\")return Tokens.getResponsiveSpacing(GAP_LARGE,breakpoint);if(size===\"medium\")return Tokens.getResponsiveSpacing(GAP_MEDIUM,breakpoint);return Tokens.getResponsiveSpacing(GAP_SMALL,breakpoint);};const padding=getPadding();const gap=getGap();const height=Tokens.getSpacing(buttonHeightPx);// Height per size: Small = 44px, Medium = 48px, Large = 56px.\n// Icon-only squares match the same dimension for consistent touch targets.\nconst dimension=iconOnly?size===\"large\"?56:size===\"medium\"?48:44:undefined;const widthFromMode=(()=>{if(iconOnly){return Tokens.getSpacing(dimension);}if(widthMode===\"full\"){return\"100%\";}if(widthMode===\"intrinsic\"){return\"auto\";}// responsive — match legacy default: full width on phone, intrinsic elsewhere\nreturn breakpoint===\"phone\"?\"100%\":\"auto\";})();const resolvedWidth=restStyle.width!==undefined?restStyle.width:widthFromMode;const isPrimaryRainbow=variant===\"primary-warm\"||variant===\"primary-lush\"||variant===\"primary-cool\";let resolvedBackground=backgroundColor;if(!isDisabled&&isPrimaryRainbow){resolvedBackground=getPrimaryRainbowGradientWithColoredGlass(variant);}else if(!isDisabled&&variant===\"ghost\"&&theme===\"default\"){resolvedBackground=getGhostGlassButtonBackground(backgroundColor);}const frostBackdrop=getLiquidGlassBackdropBlurFilter(LIQUID_GLASS_SHARED.frostBlurPx,LIQUID_GLASS_SHARED.saturation);// Primary rainbow and default-theme ghost both use the liquid-glass fill\n// stack; pair with the shared frost backdrop so the pill reads as real\n// glass (blur + saturate), aligned with `getLiquidGlassBackdropBlurFilter`.\nconst isGhostDefaultTheme=variant===\"ghost\"&&theme===\"default\";const needsFrostBackdropVariant=isPrimaryRainbow||isGhostDefaultTheme;const useFrostBackdrop=!isDisabled&&needsFrostBackdropVariant;return{...restStyle,width:resolvedWidth,height,minHeight:height,padding,borderRadius:Tokens.getRadius(\"radius-full\"),background:styleBackground??resolvedBackground,...useFrostBackdrop?{backdropFilter:frostBackdrop,WebkitBackdropFilter:frostBackdrop}:{},border,color:textColor,display:\"inline-flex\",flexShrink:0,position:\"relative\",zIndex:Tokens.getZIndex(\"raised\"),alignItems:\"center\",justifyContent:\"center\",gap,minWidth:iconOnly?Tokens.getSpacing(dimension):Tokens.getSpacing(44),overflow:\"hidden\",boxSizing:\"border-box\",cursor:cursorStyle,filter:finalBrightnessFilter,transition:variant===\"link\"?`${Tokens.getTransition(\"background\",\"quick\")}, ${Tokens.getTransition(\"text-decoration\",\"quick\")}, ${Tokens.getTransition(\"filter\",\"quick\")}`:`${Tokens.getTransition(\"background\",\"quick\")}, ${Tokens.getTransition(\"border\",\"quick\")}, ${Tokens.getTransition(\"filter\",\"quick\")}`,textDecoration:variant===\"link\"&&isHovered&&isInteractive?\"underline\":\"none\",textUnderlineOffset:variant===\"link\"?Tokens.getSpacing(2):\"0\",outline:isFocused?getFocusOutlineStyle():\"none\",outlineOffset:Tokens.getSpacing(2),userSelect:\"none\",whiteSpace:\"nowrap\",...typography,fontSize:restStyle.fontSize||typography?.fontSize};},[style,iconOnly,iconOnlySidePx,buttonHeightPx,size,variant,theme,isDisabled,isInteractive,isHovered,isFocused,breakpoint,widthMode,showIconLeading,showIconTrailing,cursorStyle,finalBrightnessFilter,typography,backgroundColor,border,textColor]);const processCustomIconSvg=rawSvg=>{const trimmed=rawSvg.trim();const sizeMatch=trimmed.match(/width=[\"'](\\d+)[\"']/);const alreadySized=sizeMatch!==null&&parseInt(sizeMatch[1],10)===iconSize;const hasHexColors=/fill=[\"']#[0-9a-fA-F]{3,8}[\"']/i.test(trimmed);return processSVG(trimmed,alreadySized?undefined:iconSize,hasHexColors?undefined:iconColor);};const getLeadingIconSVG=()=>{if(!showIconLeading)return null;if(showLoadingIcon)return getIcon(\"loading\",iconSize,iconColor,{opticalInset:0});if(leadingIconName===\"custom\"&&leadingIconSvg?.trim()?.includes(\"<svg\")){return processCustomIconSvg(leadingIconSvg);}return getIcon(leadingIconName,iconSize,iconColor,{opticalInset:0});};const getTrailingIconSVG=()=>{if(!showIconTrailing)return null;if(showLoadingIcon)return getIcon(\"loading\",iconSize,iconColor,{opticalInset:0});if(trailingIconName===\"custom\"&&trailingIconSvg?.trim()?.includes(\"<svg\")){return processCustomIconSvg(trailingIconSvg);}return getIcon(trailingIconName,iconSize,iconColor,{opticalInset:0});};const renderIcon=svgContent=>{if(!svgContent)return null;const style={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:`${iconSize}px`,height:`${iconSize}px`,flexShrink:0};if(isLoading&&svgContent.includes(\"loading\")){const spinStyle=reducedMotion?style:{...style,animation:`${BUTTON_SPIN_KEYFRAMES_NAME} ${SPINNER_DURATION_FULL}s linear infinite`};return /*#__PURE__*/_jsx(\"span\",{style:spinStyle,dangerouslySetInnerHTML:{__html:svgContent},\"aria-hidden\":true});}return /*#__PURE__*/_jsx(\"span\",{dangerouslySetInnerHTML:{__html:svgContent},\"aria-hidden\":true,style:style});};const content=/*#__PURE__*/_jsxs(_Fragment,{children:[renderIcon(getLeadingIconSVG()),!iconOnly&&label&&/*#__PURE__*/_jsx(\"span\",{style:{minWidth:0,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:label}),renderIcon(getTrailingIconSVG())]});const scale=isPressed?.98:1;const transformTransition=reducedMotion?\"none\":Tokens.getTransition(\"transform\",\"quick\");const interactiveStyle={...buttonStyles,transform:`scale(${scale})`,transition:variant===\"link\"?`${Tokens.getTransition(\"background\",\"quick\")}, ${Tokens.getTransition(\"text-decoration\",\"quick\")}, ${Tokens.getTransition(\"filter\",\"quick\")}, ${transformTransition}`:`${Tokens.getTransition(\"background\",\"quick\")}, ${Tokens.getTransition(\"border\",\"quick\")}, ${Tokens.getTransition(\"filter\",\"quick\")}, ${transformTransition}`};const mergedStyle=interactiveStyle;const commonProps={\"style\":mergedStyle,\"onMouseEnter\":handlers.onMouseEnter,\"onMouseLeave\":handlers.onMouseLeave,\"onMouseDown\":handlers.onMouseDown,\"onMouseUp\":handlers.onMouseUp,\"onFocus\":handlers.onFocus,\"onBlur\":handlers.onBlur,\"tabIndex\":isInteractive?0:-1,\"aria-disabled\":isDisabled||isLoading,\"aria-busy\":isLoading,\"aria-label\":resolvedAriaLabel,...elementId?{id:elementId}:{},...rest};const interactiveElement=hasLink?/*#__PURE__*/_jsx(\"a\",{ref:ref,href:isInteractive?smartLink.href:undefined,target:smartLink.target,rel:smartLink.rel,...commonProps,// Spread smartLink.style FIRST and let the button's computed\n// styles win. smartLink.style sets `color: \"inherit\"`, which\n// would otherwise clobber the variant/theme-aware textColor\n// (e.g. ghost+default needs white text, but `inherit` falls\n// back to the UA default black on sections that don't set\n// an ambient `color`).\nstyle:{...smartLink.style,...commonProps.style},onClick:smartLink.onClick,children:content}):/*#__PURE__*/_jsx(\"button\",{ref:ref,type:type,disabled:isDisabled||isLoading,...commonProps,onClick:handleClick,children:content});return /*#__PURE__*/_jsxs(_Fragment,{children:[isLoading&&!reducedMotion&&/*#__PURE__*/_jsx(\"style\",{children:BUTTON_SPIN_KEYFRAMES_RULE}),interactiveElement]});});ButtonInternal.displayName=\"ButtonInternal - Atom\";/**\n * Button - Wrapper component for Framer compatibility.\n *\n * Exported as a plain named function so Framer's code-link parser recognizes\n * it as a valid code component (a `forwardRef` default export is opaque to\n * Framer's static analysis and prevents the component from being registered\n * on the canvas).\n *\n * Refs from consumers (focus management, measurement, Floating UI anchors,\n * the `Button*` wrappers in atoms/molecules) are still forwarded to the\n * underlying `<button>` / `<a>` because `ButtonInternal` is itself a\n * `forwardRef` — we just pass `props.ref` straight through.\n *\n * @framerIntrinsicWidth 140\n * @framerIntrinsicHeight 48\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Button(props){const{ref,...rest}=props;return /*#__PURE__*/_jsx(ButtonInternal,{...rest,ref:ref});}Button.displayName=\"Button - Atom\";addPropertyControls(Button,{// ─── 1. Content ────────────────────────────────────────────────────────────\nlabel:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Get started\",placeholder:\"e.g. Get started, Learn more\",description:\"Visible text on the button. When Icon Position is Only, use this as the accessible name too (often the same words you would put on an icon-only control, e.g. Close).\"},// ─── 2. Links ────────────────────────────────────────────────────────────\nlink:{type:ControlType.Link,title:\"Link\",defaultValue:\"\",description:\"Add a destination to render an `<a>`; leave empty to keep a `<button>` for forms and custom interactions.\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in New Tab\",defaultValue:false,enabledTitle:\"New Tab\",disabledTitle:\"Same Tab\",description:\"Turn on when Link is set so the destination opens in a new browser tab.\",hidden:props=>!getLinkUrl(props?.link)},// ─── 4. Icons ──────────────────────────────────────────────────────────────\niconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"none\",\"leading\",\"trailing\",\"icon-only\"],optionTitles:[\"None\",\"Leading\",\"Trailing\",\"Only\"],defaultValue:\"none\",description:\"Choose None for text-only, Leading or Trailing for icons beside the label, or Only for icon-only buttons (set Label to the action name).\"},leadingIconName:{type:ControlType.Enum,title:\"Leading Icon\",options:[...ICON_OPTIONS_WITH_CUSTOM],optionTitles:ICON_OPTIONS_WITH_CUSTOM.map(k=>ICON_OPTION_TITLES_WITH_CUSTOM[k]),displaySegmentedControl:false,defaultValue:\"circle\",description:\"Select a library icon, or Custom to paste SVG in Leading Icon SVG below.\",hidden:props=>props?.iconPosition!==\"leading\"&&props?.iconPosition!==\"icon-only\"},leadingIconSvg:{type:ControlType.String,title:\"Leading Icon SVG\",defaultValue:\"\",placeholder:\"<svg>...</svg>\",description:\"Paste your SVG markup when Leading Icon is Custom - it replaces the built-in glyph.\",hidden:props=>{const isLeadingOrIconOnly=props?.iconPosition===\"leading\"||props?.iconPosition===\"icon-only\";const showLeadingIconSvg=isLeadingOrIconOnly&&props?.leadingIconName===\"custom\";return!showLeadingIconSvg;}},trailingIconName:{type:ControlType.Enum,title:\"Trailing Icon\",options:[...ICON_OPTIONS_WITH_CUSTOM],optionTitles:ICON_OPTIONS_WITH_CUSTOM.map(k=>ICON_OPTION_TITLES_WITH_CUSTOM[k]),displaySegmentedControl:false,defaultValue:\"arrow-narrow-right\",description:\"Select a library icon, or Custom to paste SVG in Trailing Icon SVG below.\",hidden:props=>props?.iconPosition!==\"trailing\"},trailingIconSvg:{type:ControlType.String,title:\"Trailing Icon SVG\",defaultValue:\"\",placeholder:\"<svg>...</svg>\",description:\"Paste your SVG markup when Trailing Icon is Custom - it replaces the built-in glyph.\",hidden:props=>props?.iconPosition!==\"trailing\"||props?.trailingIconName!==\"custom\"},// ─── 6. Configuration ──────────────────────────────────────────────────────\nvariant:{type:ControlType.Enum,title:\"Variant\",options:[\"solid\",\"primary\",\"outline\",\"ghost\",\"link\",\"primary-warm\",\"primary-lush\",\"primary-cool\"],optionTitles:[\"Solid\",\"Primary Brand\",\"Outline\",\"Ghost\",\"Link\",\"Primary Warm\",\"Primary Lush\",\"Primary Cool\"],defaultValue:\"solid\",description:\"Solid, Outline, Ghost, Link for standard treatments; Primary Brand is the legacy solid bunq blue; Primary Warm/Lush/Cool use rainbow gradients — Primary and rainbow variants ignore Theme.\"},size:{type:ControlType.Enum,title:\"Size\",options:[\"large\",\"medium\",\"small\"],optionTitles:[\"Large\",\"Medium\",\"Small\"],displaySegmentedControl:true,defaultValue:\"medium\",description:\"Use Large for primary hero CTAs, Medium for most UI, Small for dense rows or secondary actions.\"},widthMode:{type:ControlType.Enum,title:\"Width Mode\",options:[\"responsive\",\"full\",\"intrinsic\"],optionTitles:[\"Responsive\",\"Full\",\"Intrinsic\"],defaultValue:\"responsive\",displaySegmentedControl:true,description:\"Controls horizontal sizing relative to the layout breakpoint.\"},// ─── 7. Behavior ─────────────────────────────────────────────────────────\nonClick:{type:ControlType.EventHandler,title:\"On Click\",description:\"Wire this to run custom logic when someone activates the control - fires for both button and link rendering.\"},// ─── 8. Accessibility ────────────────────────────────────────────────────\nariaLabel:{type:ControlType.String,title:\"ARIA Label\",defaultValue:\"\",placeholder:\"e.g. Get started\",description:\"Optional accessible name override. Leave empty so screen readers use the visible Label; set only for icon-only buttons or when the spoken name should differ from visible text.\"},// ─── 9. Advanced ─────────────────────────────────────────────────────────\nid:{type:ControlType.String,title:\"ID\",defaultValue:\"\",placeholder:\"e.g. my-element\",description:\"Set a unique id when you anchor to this control or tag it for analytics (e.g. Contentsquare). Leave empty to omit the id attribute.\"},// ─── 10. System ────────────────────────────────────────────────────────────\nbreakpoint:{type:ControlType.Enum,title:\"Breakpoint\",options:[\"desktop\",\"tablet\",\"phone\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],displaySegmentedControl:false,defaultValue:\"desktop\",description:FRAMER_BREAKPOINT_DESCRIPTION},theme:{type:ControlType.Enum,title:\"Theme\",options:[\"default\",\"inverted\"],optionTitles:[\"Default\",\"Inverted\"],displaySegmentedControl:true,defaultValue:\"default\",description:\"Default matches dark sections (our default). Inverted is for light backgrounds.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ButtonVariant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"48\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"140\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"ButtonProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mrBAiEG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,MAAI,GAAG,GAAM,EAAM,OAAoB,EAAK,EAAe,CAAC,GAAG,EAAS,MAAI,CAAC,0BA7C7C,IAAgD,IAE3E,IAAkJ,IACnB,IAA+L,IAAyQ,IAAkI,IACnnB,IAAkH,IAA4J,KAAiL,IAAqK,IAAyH,IAAoI,CAAM,EAAwB,GAAW,SAAS,CAAO,EAA4B,EAAW,SAAwB,EAAM,EAAI,CAAC,GAAK,CAAC,aAAW,UAAU,UAAQ,QAAQ,QAAM,UAAU,OAAK,SAAS,YAAU,aAAa,QAAM,EAAY,eAAe,kBAAgB,SAAS,iBAAe,EAAwB,mBAAiB,qBAAqB,kBAAgB,EAAwB,eAAa,OAAO,YAAS,GAAM,WAAQ,GAAM,OAAK,eAAa,GAAM,UAAQ,YAAU,QAAM,OAAK,SAAS,KAAG,GAAG,GAAM,EAAY,EAAU,EAAmB,EAAG,CAAO,EAAS,IAAe,YAKnkD,MAAc,CAAyD,GAA9C,IAAS,QAAa,CAAC,IAAe,EAAW,CAAC,EAAS,OAAO,IAAM,EAAU,OAAO,GAAQ,SAAS,EAAM,MAAM,CAAC,GAAqE,E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