{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/lWIBhuzQj5UBt31wWSuu/tKU9zlOXTXLCYoSoxMSn/Truncate_text.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { 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                                                           * @framerSupportedLayoutWidth any\n                                                           * @framerSupportedLayoutHeight auto\n                                                           */\nexport default function Truncate_text(props) {\n  // This is a React component containing an Example component\n  // - Replace <Example /> with your own code\n  // - Find inspiration: https://www.framer.com/developers/\n  // Styles are written in object syntax\n  // Learn more: https://reactjs.org/docs/dom-elements.html#style\n  const containerStyle = {\n    fontFamily: props.fontFamily,\n    fontSize: `${props.fontSize}px`,\n    lineHeight: `${props.lineHeight}px`,\n    letterSpacing: \"0.05px\",\n    width: \"100%\",\n    margin: 0,\n    padding: 0,\n    color: props.color,\n    display: \"-webkit-box\",\n    overflow: \"hidden\",\n    WebkitBoxOrient: \"vertical\",\n    WebkitLineClamp: props.numLines\n  };\n  return /*#__PURE__*/_jsx(\"p\", {\n    style: containerStyle,\n    children: props.text\n  });\n}\n;\naddPropertyControls(Truncate_text, {\n  text: {\n    title: \"Text\",\n    type: ControlType.String,\n    displayTextArea: true\n  },\n  fontFamily: {\n    title: \"Font\",\n    type: ControlType.String,\n    defaultValue: \"'Haas Grot Text R Web 55 Roman'\",\n    displayTextArea: true\n  },\n  fontSize: {\n    title: \"Font size\",\n    type: ControlType.Number,\n    defaultValue: 14\n  },\n  lineHeight: {\n    title: \"Line height\",\n    type: ControlType.Number,\n    defaultValue: 20\n  },\n  color: {\n    title: \"Color\",\n    type: ControlType.Color\n  },\n  numLines: {\n    title: \"Lines\",\n    type: ControlType.Number,\n    defaultValue: 1\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Truncate_text\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutHeight\": \"auto\",\n        \"framerSupportedLayoutWidth\": \"any\",\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Truncate_text.map"],
  "mappings": "yFAUe,SAARA,EAA+BC,EAAO,CAM3C,IAAMC,EAAiB,CACrB,WAAYD,EAAM,WAClB,SAAU,GAAGA,EAAM,aACnB,WAAY,GAAGA,EAAM,eACrB,cAAe,SACf,MAAO,OACP,OAAQ,EACR,QAAS,EACT,MAAOA,EAAM,MACb,QAAS,cACT,SAAU,SACV,gBAAiB,WACjB,gBAAiBA,EAAM,QACzB,EACA,OAAoBE,EAAK,IAAK,CAC5B,MAAOD,EACP,SAAUD,EAAM,IAClB,CAAC,CACH,CAEAG,EAAoBJ,EAAe,CACjC,KAAM,CACJ,MAAO,OACP,KAAMK,EAAY,OAClB,gBAAiB,EACnB,EACA,WAAY,CACV,MAAO,OACP,KAAMA,EAAY,OAClB,aAAc,kCACd,gBAAiB,EACnB,EACA,SAAU,CACR,MAAO,YACP,KAAMA,EAAY,OAClB,aAAc,EAChB,EACA,WAAY,CACV,MAAO,cACP,KAAMA,EAAY,OAClB,aAAc,EAChB,EACA,MAAO,CACL,MAAO,QACP,KAAMA,EAAY,KACpB,EACA,SAAU,CACR,MAAO,QACP,KAAMA,EAAY,OAClB,aAAc,CAChB,CACF,CAAC",
  "names": ["Truncate_text", "props", "containerStyle", "p", "addPropertyControls", "ControlType"]
}
