{"version":3,"file":"VerticalText.Cyvhc_IW.mjs","names":["_jsx","React","__esmMin","init_npm_react_18_3_1","init_jsx_runtime","c","e","init_framer_ChujFWHC","addPropertyControls","VerticalText","props","text","textColor","font","writeMode","direction","textTransform","htmlTag","style","init_VerticalText","ControlType"],"sources":["https:/framerusercontent.com/modules/Au04Ra1mYLn3DNiWf2TP/QtZGBhNfiO2iaytp4jnQ/VerticalText.js"],"sourcesContent":["// Customizable vertical text component using writing-mode: vertical-rl\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import React from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function VerticalText(props){const{text,textColor,font,writeMode,direction,textTransform,htmlTag,style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:writeMode===\"horizontal\"?\"max-content\":undefined,overflow:\"hidden\"},children:/*#__PURE__*/React.createElement(htmlTag,{style:{...font,margin:0,color:textColor,writingMode:writeMode===\"vertical\"?\"vertical-lr\":\"horizontal-tb\",textOrientation:writeMode===\"vertical\"?\"mixed\":undefined,whiteSpace:\"nowrap\",transform:writeMode===\"vertical\"&&direction===\"bottomToTop\"?\"rotate(180deg)\":\"none\",textTransform:textTransform}},text)});}addPropertyControls(VerticalText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Vertical Text\",displayTextArea:true},htmlTag:{type:ControlType.Enum,title:\"HTML Tag\",options:[\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"span\",\"div\"],optionTitles:[\"P\",\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Span\",\"Div\"],defaultValue:\"p\"},writeMode:{type:ControlType.Enum,title:\"Write Mode\",options:[\"vertical\",\"horizontal\"],optionTitles:[\"Vertical\",\"Horizontal\"],defaultValue:\"vertical\",displaySegmentedControl:true},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"topToBottom\",\"bottomToTop\"],optionTitles:[\"Top to Bottom\",\"Bottom to Top\"],defaultValue:\"topToBottom\",displaySegmentedControl:true,hidden:({writeMode})=>writeMode===\"horizontal\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textTransform:{type:ControlType.Enum,title:\"Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"Uppercase\",\"Lowercase\",\"Capitalize\"],defaultValue:\"none\",description:\"Component from [LaunchNow Design](https://launchnow.design/?utm_source=codecomponent)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VerticalText\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VerticalText.map"],"mappings":"A,qKAKG,SAAwBS,EAAaC,EAAM,CAAC,GAAK,CAACC,OAAKC,YAAUC,OAAKC,YAAUC,YAAUC,gBAAcC,UAAQC,SAAOR,EAAM,MAAoBV,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGkB,EAAM,SAAS,WAAW,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,MAAMJ,IAAY,aAAa,cAAc,IAAA,GAAU,SAAS,QAAQ,EAAE,SAAsBb,gBAAM,cAAcgB,EAAQ,CAAC,MAAM,CAAC,GAAGJ,EAAK,OAAO,EAAE,MAAMD,EAAU,YAAYE,IAAY,WAAW,cAAc,gBAAgB,gBAAgBA,IAAY,WAAW,QAAQ,IAAA,GAAU,WAAW,SAAS,UAAUA,IAAY,YAAYC,IAA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