{"version":3,"file":"SimpleTextBox.DXrhGl55.mjs","names":[],"sources":["https:/framerusercontent.com/modules/BvlwskoQuxZXUX6AMyPT/KfSFhaB6xCRS5pduC3wY/SimpleTextBox.js"],"sourcesContent":["// Simple text box component with customizable text, styling, and appearance\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Simple Text Box\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SimpleTextBox(props){const{text,textColor,backgroundColor,font,textSize,padding,borderRadius,resolution,positionX,positionY,style}=props;const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";// Calculate scale based on resolution (1-100)\nconst scale=resolution/100;const inverseScale=100/resolution;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",backgroundColor,borderRadius,padding,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",...isFixedWidth?{}:{width:\"max-content\"},...isFixedHeight?{}:{height:\"max-content\"}},children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,...font,fontSize:textSize,width:isFixedWidth?\"100%\":\"max-content\",transform:`translateX(${positionX}px) translateY(${positionY}px) scale(${inverseScale})`,transformOrigin:\"left center\",imageRendering:resolution<100?\"pixelated\":\"auto\",filter:`blur(${(100-resolution)*.02}px)`},children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",transform:`scale(${scale})`,transformOrigin:\"left center\"},children:text})})});}addPropertyControls(SimpleTextBox,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Hello World\",displayTextArea:true},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},textSize:{type:ControlType.Number,title:\"Text Size\",defaultValue:15,min:8,max:120,step:1,unit:\"px\"},resolution:{type:ControlType.Number,title:\"Resolution\",defaultValue:100,min:1,max:100,step:1,unit:\"%\"},positionX:{type:ControlType.Number,title:\"Position X\",defaultValue:0,min:-500,max:500,step:1,unit:\"px\"},positionY:{type:ControlType.Number,title:\"Position Y\",defaultValue:0,min:-500,max:500,step:1,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimpleTextBox\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SimpleTextBox.map"],"mappings":"4JAMG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,kBAAgB,OAAK,WAAS,UAAQ,eAAa,aAAW,YAAU,YAAU,SAAO,EAAY,EAAa,GAAO,QAAQ,OAAa,EAAc,GAAO,SAAS,OAC3O,EAAM,EAAW,IAAU,EAAa,IAAI,EAAW,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,kBAAgB,eAAa,UAAQ,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,SAAS,GAAG,EAAa,CAAC,EAAE,CAAC,MAAM,aAAa,EAAE,GAAG,EAAc,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,EAAE,SAAsB,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAU,GAAG,EAAK,SAAS,EAAS,MAAM,EAAa,OAAO,cAAc,UAAU,cAAc,EAAU,iBAA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