{"version":3,"file":"FirstLineIndentText.DavhleDg.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/enQOdeybgGha0Pi9rznI/36d0oAonv5JEA74h26ke/FirstLineIndentText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * FirstLineIndentText\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FirstLineIndentText(props){const{text,indentValue,indentUnit,color,font,htmlTag,style,overflow}=props;const indent=useMemo(()=>`${indentValue}${indentUnit}`,[indentValue,indentUnit]);const Tag=htmlTag;return /*#__PURE__*/_jsx(Tag,{style:{all:\"unset\",display:\"block\",boxSizing:\"border-box\",margin:0,padding:0,color,...font,width:style?.width||\"100%\",minWidth:0,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",overflowWrap:\"break-word\",textAlign:font?.textAlign||\"left\",textIndent:indent,overflow,...style},children:text});}addPropertyControls(FirstLineIndentText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is an example of indented text. Only the first line is indented. The rest of the lines will align normally.\",displayTextArea:true},indentValue:{type:ControlType.Number,title:\"Indent\",defaultValue:32,min:0,max:200,step:1},indentUnit:{type:ControlType.Enum,title:\"Unit\",options:[\"px\",\"%\"],optionTitles:[\"px\",\"%\"],defaultValue:\"px\",displaySegmentedControl:true},htmlTag:{type:ControlType.Enum,title:\"HTML Tag\",options:[\"p\",\"span\",\"div\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],optionTitles:[\"p\",\"span\",\"div\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],defaultValue:\"p\"},color:{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\"}},overflow:{type:ControlType.Enum,title:\"Overflow\",options:[\"visible\",\"hidden\",\"scroll\",\"auto\"],optionTitles:[\"Visible\",\"Hidden\",\"Scroll\",\"Auto\"],defaultValue:\"hidden\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FirstLineIndentText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FirstLineIndentText.map"],"mappings":"kQAKG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,OAAK,cAAY,aAAW,QAAM,OAAK,UAAQ,QAAM,YAAU,EAAY,EAAOA,MAAY,GAAG,IAAc,IAAa,CAAC,EAAY,EAAW,CAAC,CAAmB,OAAoB,EAA5B,EAAqC,CAAC,MAAM,CAAC,IAAI,QAAQ,QAAQ,QAAQ,UAAU,aAAa,OAAO,EAAE,QAAQ,EAAE,QAAM,GAAG,EAAK,MAAM,GAAO,OAAO,OAAO,SAAS,EAAE,WAAW,WAAW,UAAU,aAAa,aAAa,aAAa,UAAU,GAAM,WAAW,OAAO,WAAW,EAAO,WAAS,GAAG,EAAM,CAAC,SAAS,EAAK,CAAC,kBALrf,IAAoD,IAA2B,CAKwa,EAAoB,EAAoB,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,mHAAmH,gBAAgB,GAAK,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,CAAC,WAAW,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,KAAK,wBAAwB,GAAK,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,WAAW,QAAQ,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