{"version":3,"file":"Paragraph.DcrvFuDB.mjs","names":["content"],"sources":["https:/framerusercontent.com/modules/NKtfXft8g9vuIUzvmVoF/h3n6JMEr6NLcKwhas7eE/Paragraph.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 250\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */export default function Paragraph(props){const{tag,content,font,fontType,fontFamilly,fontSize,color,letterSpacing,lineHeight,textAlign,textTransform,textDecoration,verticalAlign,char}=props;const s={paragraph:{...font,fontSize,color,letterSpacing,lineHeight,textAlign,verticalAlign,textTransform,textDecoration,padding:0,margin:0},character:{color:char.color,fontWeight:char.fontWeight,textTransform:char.textTransform,textDecoration:char.textDecoration}};const paragraph=content.split(/\\n/);const split=content.split(/([*].+[*])/i);return /*#__PURE__*/_jsx(Tag,{type:tag,style:s.paragraph,children:paragraph.map((str,index)=>{const content=str.split(/([*].+[*])/i).map(function(data){switch(data[0]){case\"*\":return /*#__PURE__*/_jsx(\"span\",{style:s.character,children:data.slice(1,data.length-1)});default:return data;}});if(index!==0){return[/*#__PURE__*/_jsx(\"br\",{}),content];}else{return content;}})});}/*\n   {split.map(function (data) {\n                switch (data[0]) {\n                    case \"*\":\n                        return (\n                            <span style={s.character}>\n                                {data.slice(1, data.length - 1)}\n                            </span>\n                        )\n                    default:\n                        return data\n                }\n            })}\n            */function Tag(props){switch(props.type){case\"h1\":return /*#__PURE__*/_jsx(\"h1\",{...props});case\"h2\":return /*#__PURE__*/_jsx(\"h2\",{...props});case\"h3\":return /*#__PURE__*/_jsx(\"h3\",{...props});case\"h4\":return /*#__PURE__*/_jsx(\"h4\",{...props});case\"h5\":return /*#__PURE__*/_jsx(\"h5\",{...props});case\"h6\":return /*#__PURE__*/_jsx(\"h6\",{...props});case\"p\":return /*#__PURE__*/_jsx(\"p\",{...props});default:return /*#__PURE__*/_jsx(\"span\",{...props});}}addPropertyControls(Paragraph,{//CONFIGURE THE CONTENT OF THE COPONENT //\ntag:{type:ControlType.Enum,defaultValue:\"p\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"p\",\"span\"]},content:{title:\"Content\",type:ControlType.String,displayTextArea:true,defaultValue:\"Our mission is to\\xa0make life better *without a car*.\",description:\"We will apply the character style defined below to the strings surrounded by *\"},// CONFIGURE THE STYLE OF THE COMPONENT //\nfont:{type:\"font\",controls:\"basic\",displayFontSize:false,displayTextAlignment:false,defaultValue:{fontFamily:\"Puffin Transit Bold\"}},/*\n    fontType: {\n        type: ControlType.Enum,\n        defaultValue: false,\n        options: [\"default\", false],\n        optionTitles: [\"System Default\", \"Other\"],\n    },\n    \n    fontFamilly: {\n        type: ControlType.String,\n        title: \"Font Name\",\n        defaultValue: \"Puffin Transit Bold\",\n        hidden: ({ fontType }) => {\n            return fontType\n        },\n        description:\n            \"It needs to be the exact name of a font used in the project.\",\n    },\n    fontWeight: {\n        title: \"Weight\",\n        type: ControlType.Enum,\n        defaultValue: 400,\n        options: [100, 200, 300, 400, 500, 600, 700, 800, 900],\n        optionTitles: [\n            \"Thin\",\n            \"Extra Light\",\n            \"Light\",\n            \"Regular\",\n            \"Medium\",\n            \"Semi Bold\",\n            \"Bold\",\n            \"Extra Bold\",\n            \"Black\",\n        ],\n    },\n    */color:{type:ControlType.Color,defaultValue:\"#12452B\"},fontSize:{title:\"Size\",type:ControlType.Number,defaultValue:72,min:1,max:120,step:1},letterSpacing:{title:\"Letter\",type:ControlType.Number,defaultValue:0,min:0,step:.01,displayStepper:true},lineHeight:{title:\"Line\",type:ControlType.Number,defaultValue:1.1,min:0,max:120,step:.01,unit:\"em\",displayStepper:true},paragraph:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true,hidden:()=>{//Paragraph Spacing can not be added yet, because we will need to divide the text into two <p>.\nreturn true;}},textAlign:{title:\"Text Align\",type:ControlType.Enum,displaySegmentedControl:true,optionTitles:[\"Left\",\"Center\",\"Right\"],options:[\"start\",\"center\",\"end\"]},verticalAlign:{title:\" \",type:ControlType.Enum,defaultValue:\"top\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true,hidden:()=>{//We need to manage flex property\nreturn true;}},textTransform:{title:\"Transform\",type:ControlType.Enum,options:[\"none\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]},decoration:{type:ControlType.Enum,options:[\"none\",\"underline\",\"line-through\",\"overline\"],optionTitles:[\"None\",\"Underline\",\"Line-through\",\"Overline\"]},char:{title:\"Characters\",type:ControlType.Object,controls:{color:{type:ControlType.Color,defaultValue:\"#FF5500\"},fontType:{title:\"font\",type:ControlType.Enum,defaultValue:\"inherit\",//displaySegmentedControl: true,\n//segmentedControlDirection: \"horizontal\",\n//segmentedControlDirection: \"vertical\",\noptions:[\"inherit\",\"other\"],optionTitles:[\"Inherit\",\"Other\"]},font:{title:\" \",type:\"font\",defaultValue:{fontFamily:`\"Puffin Transit Bold\", \"Puffin Transit Bold Placeholder\", sans-serif\"`},hidden:props=>{return props.fontType===\"inherit\";}},textTransform:{title:\"Transform\",type:ControlType.Enum,defaultValue:\"inherit\",options:[\"inherit\",\"none\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"Inherit\",\"None\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]},textDecoration:{title:\"Decoration\",type:ControlType.Enum,defaultValue:\"inherit\",options:[\"inherit\",\"none\",\"underline\",\"line-through\",\"overline\"],optionTitles:[\"Inherit\",\"None\",\"Underline\",\"Line-through\",\"Overline\"]}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Paragraph\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"250\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Paragraph.map"],"mappings":"uJAWG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,MAAI,UAAQ,OAAK,WAAS,cAAY,WAAS,QAAM,gBAAc,aAAW,YAAU,gBAAc,iBAAe,gBAAc,QAAM,EAAY,EAAE,CAAC,UAAU,CAAC,GAAG,EAAK,WAAS,QAAM,gBAAc,aAAW,YAAU,gBAAc,gBAAc,iBAAe,QAAQ,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,MAAM,EAAK,MAAM,WAAW,EAAK,WAAW,cAAc,EAAK,cAAc,eAAe,EAAK,eAAe,CAAC,CAAO,EAAU,EAAQ,MAAM,KAAK,CAA0C,OAA7B,EAAQ,MAAM,cAAc,CAAqB,EAAK,EAAI,CAAC,KAAK,EAAI,MAAM,EAAE,UAAU,SAAS,EAAU,KAAK,EAAI,IAAQ,CAAC,IAAMA,EAAQ,EAAI,MAAM,cAAc,CAAC,IAAI,SAAS,EAAK,CAAC,OAAO,EAAK,GAAZ,CAAgB,IAAI,IAAI,OAAoB,EAAK,OAAO,CAAC,MAAM,EAAE,UAAU,SAAS,EAAK,MAAM,EAAE,EAAK,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,OAAO,IAAQ,CAAgE,OAA5D,IAAQ,EAA2DA,EAAlD,CAAc,EAAK,KAAK,EAAE,CAAC,CAACA,EAAQ,EAAyB,CAAC,CAAC,CAa/3B,SAAS,EAAI,EAAM,CAAC,OAAO,EAAM,KAAb,CAAmB,IAAI,KAAK,OAAoB,EAAK,KAAK,CAAC,GAAG,EAAM,CAAC,CAAC,IAAI,KAAK,OAAoB,EAAK,KAAK,CAAC,GAAG,EAAM,CAA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