{"version":3,"file":"Superscript.BbS9es9m.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zzIKaNvwAYsnSTPVotaB/aMLC6dKZvHDhz2ULl9KI/List_Component.js","https:/framerusercontent.com/modules/2bwowTJO5SwXQESNRBxR/eVz0fuE2Ga24Kq37BPQK/Superscript.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function ListBlock(props){const{items,listType,fontSize,fontColor,fontFamily,itemSpacing,lineHeight}=props;const parsedItems=items.split(\"\\n\").map((item,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:\"8px\",marginBottom:itemSpacing,fontSize:fontSize,color:fontColor,fontFamily:fontFamily},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:\"1em\",flexShrink:0},children:listType===\"Ordered\"?`${index+1}.`:\"•\"}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,lineHeight:`${lineHeight}px`},children:item})]},index));return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",padding:0,margin:0},children:parsedItems});}addPropertyControls(ListBlock,{listType:{type:ControlType.Enum,title:\"List Type\",options:[\"Unordered\",\"Ordered\"],optionTitles:[\"Unordered (•)\",\"Ordered (1.)\"],defaultValue:\"Unordered\"},items:{type:ControlType.String,title:\"Items\",defaultValue:\"First Item\\nSecond Item\\nThird Item\",placeholder:\"Enter each item on a new line\",displayTextArea:true},fontSize:{type:ControlType.Number,title:\"Font Size\",min:8,max:72,defaultValue:16},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},fontFamily:{type:ControlType.String,title:\"Font Family\",placeholder:\"e.g., Inter, Arial, sans-serif\",defaultValue:\"Inter, sans-serif\"},lineHeight:{type:ControlType.Number,title:\"Line Height (px)\",min:8,max:120,defaultValue:24},itemSpacing:{type:ControlType.Number,title:\"Item Spacing\",min:0,max:40,defaultValue:8}});\nexport const __FramerMetadata__ = {\"exports\":{\"ListBlock\":{\"type\":\"reactComponent\",\"name\":\"ListBlock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./List_Component.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function RichTextWithSuperscript({text,fontSize,color,supSize,font,lineHeight,supOffset}){const parts=text.split(/(\\^[^^]+\\^)/g);const renderPart=(part,i)=>{const match=part.match(/^\\^(.+)\\^$/);if(match){return /*#__PURE__*/_jsx(\"sup\",{style:{fontSize:supSize,lineHeight:1,position:\"relative\",top:`${supOffset}px`},children:match[1]},i);}return /*#__PURE__*/_jsx(\"span\",{children:part},i);};return /*#__PURE__*/_jsx(\"div\",{style:{fontSize,color,fontFamily:font,lineHeight:`${lineHeight}px`,display:\"inline\"},children:parts.map(renderPart)});}addPropertyControls(RichTextWithSuperscript,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"E = mc^2^\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:20},supSize:{type:ControlType.Number,title:\"Superscript Size\",defaultValue:12},supOffset:{type:ControlType.Number,title:\"Superscript Offset\",defaultValue:-23,min:-100,max:100,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000\"},font:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter\"},lineHeight:{type:ControlType.Number,title:\"Line Height (px)\",min:0,max:300,step:1,defaultValue:28}});\nexport const __FramerMetadata__ = {\"exports\":{\"RichTextWithSuperscript\":{\"type\":\"reactComponent\",\"name\":\"RichTextWithSuperscript\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superscript.map"],"mappings":"mKAA6G,SAAgB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,WAAS,WAAS,YAAU,aAAW,cAAY,cAAY,EAAub,OAAoB,EAAK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