{"version":3,"file":"SplitText.DY9nDpct.mjs","names":["Tag"],"sources":["https:/framerusercontent.com/modules/IbIEGWX4uUhXpehD2f1o/WxMpSDAd9ykFQCLNUjoy/SplitText.js"],"sourcesContent":["// Split text component with dynamic color distribution based on word count\n// First portion gets one color, last portion gets another color\n// Supports all heading tags (h1-h6, p, span) with full typography controls\n// Each portion has independent font controls and separate text inputs\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SplitText(props){const{firstText,lastText,firstColor=\"#0099FF\",lastColor=\"#FF5588\",tag=\"h1\",firstFont,lastFont,style}=props;// Handle default values properly for breakpoint resets\nconst displayFirstText=firstText||\"Hello Beautiful\";const displayLastText=lastText||\"World\";const Tag=tag;const isFixedWidth=style?.width===\"100%\";const containerStyle={...isFixedWidth?{width:\"100%\"}:{width:\"max-content\",minWidth:\"max-content\"},margin:0,textAlign:firstFont?.textAlign||\"left\"};return /*#__PURE__*/_jsxs(Tag,{style:containerStyle,children:[displayFirstText&&/*#__PURE__*/_jsx(\"span\",{style:{color:firstColor,...firstFont,display:\"inline\"},children:displayFirstText}),displayFirstText&&displayLastText&&\" \",displayLastText&&/*#__PURE__*/_jsx(\"span\",{style:{color:lastColor,...lastFont,display:\"inline\"},children:displayLastText})]});}addPropertyControls(SplitText,{firstText:{type:ControlType.String,title:\"First Text\",defaultValue:\"Hello Beautiful\",displayTextArea:true},lastText:{type:ControlType.String,title:\"Last Text\",defaultValue:\"World\",displayTextArea:true},tag:{type:ControlType.Enum,title:\"Tag\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Paragraph\",\"Span\"],defaultValue:\"h1\",displaySegmentedControl:false},firstFont:{type:ControlType.Font,title:\"First Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayTextAlignment:true,displayFontSize:true,defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},lastFont:{type:ControlType.Font,title:\"Last Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayTextAlignment:true,displayFontSize:true,defaultValue:{fontSize:\"40px\",variant:\"Regular\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},firstColor:{type:ControlType.Color,title:\"First Color\",defaultValue:\"#0099FF\"},lastColor:{type:ControlType.Color,title:\"Last Color\",defaultValue:\"#FF5588\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SplitText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SplitText.map"],"mappings":"8JAOG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,YAAU,WAAS,aAAW,UAAU,YAAU,UAAU,MAAI,KAAK,YAAU,WAAS,SAAO,EAC3I,EAAiB,GAAW,kBAAwB,EAAgB,GAAU,QAAkN,OAAoB,EAAMA,EAAI,CAAC,MAAM,CAAlK,GAA5C,GAAO,QAAQ,OAA6C,CAAC,MAAM,MAAM,EAAE,CAAC,MAAM,cAAc,SAAS,aAAa,EAAE,OAAO,EAAE,UAAU,GAAW,WAAW,MAA0D,EAAE,SAAS,CAAC,GAA+B,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAW,GAAG,EAAU,QAAQ,QAAQ,EAAE,SAAS,CAAgB,CAAC,EAAE,GAAkB,GAAiB,IAAI,GAA8B,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAU,GAAG,EAAS,QAAQ,QAAQ,EAAE,SAAS,CAAe,CAAC,CAAC,CAAC,CAAC,CAAE,iBAJhlB,IAAoD,EAI6hB,EAA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