{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/EoMllm11FAeAfrQZgkjQ/LMhGmi204cugd6mksqKj/Button.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{cn,textProperties}from\"https://framerusercontent.com/modules/eAejHXy6apg0StNmpKvK/GXn1lJ5V4nUwhRO9yQKC/_framer_utils.js\";import{addPropsToChildren}from\"https://framerusercontent.com/modules/7dEgbg7qo3lsQk361YtS/NrF60tPHZRRgADqpoRFr/_utils.js\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Button({onClick=()=>false,loading=false,disabled=false,style,hoverStyle,label,buttonType,buttonComponent,buttonVariants}){if(buttonType===\"Custom\"){let status=buttonVariants.default||\"Default\";if(loading)status=buttonVariants.loading||\"Loading\";if(disabled)status=buttonVariants.disabled||\"Disabled\";if(!buttonComponent||!buttonComponent?.[0])return /*#__PURE__*/_jsx(\"div\",{style:{background:\"#C83E3E\",color:\"#fff\",borderRadius:\"10px\",padding:\"8px\",boxShadow:\"0px 5px 15px 0px #AC1B1B33\",fontWeight:\"500\"},children:\"Assign your button component\"});const buttonWithVariants=addPropsToChildren(buttonComponent,{variant:status,onClick:status===(buttonVariants.default||\"Default\")?onClick:()=>false},true);const button=addPropsToChildren(buttonWithVariants,{style:{width:\"100%\"}});return button;}return /*#__PURE__*/_jsx(motion.button,{onClick:onClick,disabled:loading||disabled,style:cn(styles.container,style,loading&&styles.loading,disabled&&styles.disabled),whileHover:{...cn(hoverStyle),transition:{duration:.25}},children:/*#__PURE__*/_jsx(\"span\",{children:label})});}export const ButtonProperties=label=>({buttonType:{title:\"Type\",type:ControlType.SegmentedEnum,options:[\"Default\",\"Custom\"],optionTitles:[\"Default\",\"Custom\"],defaultValue:\"Default\"},buttonComponent:{title:\"Button Component\",type:ControlType.ComponentInstance,hidden:props=>props.buttonType!==\"Custom\"},buttonVariants:{title:\"Component Variants\",buttonTitle:\"Variants\",type:ControlType.Object,hidden:props=>props.buttonType!==\"Custom\",controls:{default:{type:ControlType.String,defaultValue:\"Default\"},loading:{type:ControlType.String,defaultValue:\"Loading\"},disabled:{type:ControlType.String,defaultValue:\"Disabled\"}},description:\"Variant names should match your button component's variant names\"},label:{title:\"Label\",type:ControlType.String,defaultValue:label,hidden:props=>props.buttonType!==\"Default\"},style:{buttonTitle:\"Style\",type:ControlType.Object,hidden:props=>props.buttonType!==\"Default\",controls:{...textProperties(16,\"#000\"),backgroundColor:{title:\"Background color\",type:ControlType.Color,optional:true},border:{type:ControlType.Border,defaultValue:{borderColor:\"#000\"}},borderRadius:{type:ControlType.BorderRadius,defaultValue:\"6px\"},padding:{type:ControlType.Padding,defaultValue:\"10px 32px 10px 32px\"}}},hoverStyle:{title:\"Hover\",buttonTitle:\"Style\",type:ControlType.Object,hidden:props=>props.buttonType!==\"Default\",controls:{color:{type:ControlType.Color,defaultValue:\"#fff\",optional:true},backgroundColor:{type:ControlType.Color,defaultValue:\"#000\",optional:true},border:{type:ControlType.Border,defaultValue:{borderColor:\"#fff\"}}}}});addPropertyControls(Button,ButtonProperties(\"Button\"));const styles={wrapper:{display:\"flex\",flexDirection:\"column\",gap:8},container:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",flex:1,fontFamily:\"inherit\"},loading:{opacity:.8,cursor:\"wait\"},disabled:{opacity:.8}};\nexport const __FramerMetadata__ = {\"exports\":{\"ButtonProperties\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "uJAIkB,SAAR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AAe,SAAS,OAAO,UAAU,KAAK,EAAE,WAAW,SAAS,EAAE,QAAQ,CAAC,QAAQ,GAAG,OAAO,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC",
  "names": ["Button", "onClick", "loading", "disabled", "style", "hoverStyle", "label", "buttonType", "buttonComponent", "buttonVariants", "status", "p", "buttonWithVariants", "addPropsToChildren", "motion", "cn", "styles", "ButtonProperties", "ControlType", "props", "textProperties", "addPropertyControls"]
}
