{"version":3,"file":"SimpleTextScroller.Ciw4i7dK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Uk763hAAOykml3fA8y7y/vvzuMr0osJ0I4emkVxmT/SimpleTextScroller.js"],"sourcesContent":["// Simple text scroller with confined scrolling area and editable text input\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SimpleTextScroller(props){const{text,backgroundColor,textColor,font,padding,borderRadius,showScrollbar,style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,borderRadius,overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",overflowY:\"auto\",overflowX:\"hidden\",padding,boxSizing:\"border-box\",scrollbarWidth:showScrollbar?\"thin\":\"none\",msOverflowStyle:showScrollbar?\"auto\":\"none\"},className:showScrollbar?\"\":\"hide-scrollbar\",children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                        .hide-scrollbar::-webkit-scrollbar {\n                            display: none;\n                        }\n                    `}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",...font},children:text})]})});}addPropertyControls(SimpleTextScroller,{text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\\n\\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\\n\\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\\n\\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\\n\\nSed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:50,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},showScrollbar:{type:ControlType.Boolean,title:\"Scrollbar\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimpleTextScroller\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SimpleTextScroller.map"],"mappings":"mKAIG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,OAAK,kBAAgB,YAAU,OAAK,UAAQ,eAAa,gBAAc,SAAO,EAAM,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,kBAAgB,eAAa,SAAS,SAAS,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,OAAO,UAAU,SAAS,UAAQ,UAAU,aAAa,eAAe,EAAc,OAAO,OAAO,gBAAgB,EAAc,OAAO,OAAO,CAAC,UAAU,EAAc,GAAG,iBAAiB,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;sBAIlkB,CAAC,CAAc,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAU,WAAW,WAA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