{"version":3,"file":"FutureDateText.BNUJB5Cj.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/Z5ZSqREtJOeLTX6yQPrR/anOXOsjsGXAG3JZ6fK8S/FutureDateText.js"],"sourcesContent":["// Text component that always shows the date after 2 days, with editable text\nimport{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * FutureDateText\n *\n * Shows a text label and the date 2 days from now, formatted as \"Month Day\" (e.g., January 22).\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function FutureDateText(props){const{label,font,color,uppercase,style}=props;const dateString=useMemo(()=>{const now=new Date;now.setDate(now.getDate()+1);return now.toLocaleDateString(\"uk-UA\",{month:\"long\",day:\"numeric\"});},[]);return /*#__PURE__*/_jsxs(\"span\",{style:{...font,color,textTransform:uppercase?\"uppercase\":\"none\",...style,width:\"max-content\",minWidth:\"max-content\"},children:[label,\" \",dateString]});}addPropertyControls(FutureDateText,{label:{type:ControlType.String,title:\"Text\",defaultValue:\"Due date:\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FutureDateText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FutureDateText.map"],"mappings":"0KAQG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,QAAM,YAAU,SAAO,EAAY,EAAWA,MAAY,CAAC,IAAM,EAAI,IAAI,KAAkC,OAA7B,EAAI,QAAQ,EAAI,QAAQ,EAAE,CAAC,EAAS,EAAI,mBAAmB,QAAQ,CAAC,MAAM,OAAO,IAAI,SAAS,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,OAAoB,EAAM,OAAO,CAAC,MAAM,CAAC,GAAG,EAAK,QAAM,cAAc,EAAU,YAAY,OAAO,GAAG,EAAM,MAAM,cAAc,SAAS,aAAa,EAAE,SAAS,CAAC,EAAM,IAAI,CAAU,CAAC,CAAC,CAAE,iBAPpY,IAAoD,IAA2B,EAOsT,EAAoB,EAAe,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,WAAW,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,UAAU,CAAC,KAAK,EAAY,QAAQ,MAAM,YAAY,aAAa,GAAM,aAAa,KAAK,cAAc,KAAK,CAAC,CAAC"}