{"version":3,"file":"GradientText.DW1L6waw.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3RdURpWpuSySKpE5Z8yX/2pKFdOaL147ChkCh0tUX/GradientText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Reusable Gradient Text Component\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function GradientText(props){const{text,color1,color2,color3,fontSize,fontWeight,textAlign,lineHeight}=props;const fontImport=``;return /*#__PURE__*/_jsxs(\"h2\",{style:{width:\"100%\",fontFamily:\"'Prompt', sans-serif\",fontSize:fontSize,fontWeight:fontWeight,textAlign:textAlign,lineHeight:lineHeight,background:`linear-gradient(to right, ${color1}, ${color2}, ${color3})`,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",wordBreak:\"break-word\",whiteSpace:\"pre-wrap\",margin:0},children:[/*#__PURE__*/_jsx(\"style\",{children:fontImport}),text]});}GradientText.defaultProps={text:\"ใส่ข้อความไล่สีที่นี่...\",color1:\"#6EB99D\",color2:\"#A8CE7E\",color3:\"#D8C773\",fontSize:32,fontWeight:600,textAlign:\"left\",lineHeight:1.4};addPropertyControls(GradientText,{text:{type:ControlType.String,title:\"Text\",displayTextArea:true},color1:{type:ControlType.Color,title:\"Color Left\"},color2:{type:ControlType.Color,title:\"Color Mid\"},color3:{type:ControlType.Color,title:\"Color Right\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:10,max:200},fontWeight:{type:ControlType.Number,title:\"Weight\",min:100,max:900,step:100},textAlign:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},lineHeight:{type:ControlType.Number,title:\"Line Height\",min:1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\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