{"version":3,"file":"SmartListWithRefs.CgcGXpWi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oNkEI2dJX4oN2awexBVf/Yo5OsJ2CuQPSWhi54KKI/SmartListWithRefs.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function SmartListWithRefs(props){const{items,start,listStyle,fontSize,lineHeight,color,fontFamily}=props;const isNumbered=listStyle===\"number\"||listStyle===\"uppercase\"||listStyle===\"lowercase\";const listStyleMap={number:\"decimal\",uppercase:\"upper-alpha\",lowercase:\"lower-alpha\",bullet:\"disc\"};const ListTag=isNumbered?\"ol\":\"ul\";return /*#__PURE__*/_jsx(ListTag,{...isNumbered?{start}:{},style:{listStyleType:listStyleMap[listStyle],fontSize,lineHeight:`${lineHeight}px`,color,fontFamily,paddingLeft:\"1.5em\",margin:0},children:items.map((item,index)=>/*#__PURE__*/_jsxs(\"li\",{style:{marginBottom:\"0.5em\"},children:[item.text,item.reference&&/*#__PURE__*/_jsx(\"sup\",{style:{fontSize:\"0.7em\",marginLeft:\"0.1em\",verticalAlign:\"super\"},children:item.reference})]},index))});}SmartListWithRefs.defaultProps={items:[{text:\"First list item\",reference:\"\"},{text:\"Second list item\",reference:\"1\"}],listStyle:\"number\",start:1,fontSize:16,lineHeight:24,color:\"#000000\",fontFamily:\"Inter, sans-serif\"};addPropertyControls(SmartListWithRefs,{items:{type:ControlType.Array,title:\"Items\",propertyControl:{type:ControlType.Object,controls:{text:{type:ControlType.String,title:\"Text\"},reference:{type:ControlType.String,title:\"Ref\"}}}},listStyle:{type:ControlType.Enum,title:\"Style\",defaultValue:\"number\",options:[\"number\",\"uppercase\",\"lowercase\",\"bullet\"],optionTitles:[\"1, 2, 3\",\"A, B, C\",\"a, b, c\",\"• Bullet\"]},start:{type:ControlType.Number,title:\"Start At\",defaultValue:1,min:1,hidden:props=>props.listStyle===\"bullet\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:10},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:24,min:12},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},fontFamily:{type:ControlType.Enum,title:\"Font\",defaultValue:\"Inter, sans-serif\",options:[\"Inter, sans-serif\",\"Satoshi, sans-serif\",\"General Sans, sans-serif\",\"Gotham, sans-serif\",\"Georgia, serif\",\"Arial, sans-serif\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"SmartListWithRefs\":{\"type\":\"reactComponent\",\"name\":\"SmartListWithRefs\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmartListWithRefs.map"],"mappings":"8JAA6G,SAAgB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,YAAU,WAAS,aAAW,QAAM,cAAY,EAAY,EAAW,IAAY,UAAU,IAAY,aAAa,IAAY,YAAkB,EAAa,CAAC,OAAO,UAAU,UAAU,cAAc,UAAU,cAAc,OAAO,MAAM,EAAqC,OAAoB,EAAzC,EAAW,KAAK,KAAsC,CAAC,GAAG,EAAW,CAAC,OAAK,EAAE,CAAC,EAAE,MAAM,CAAC,cAAc,EAAa,GAAW,WAAS,WAAW,GAAG,EAAW,IAAI,QAAM,aAAW,YAAY,QAAQ,OAAO,CAAC,EAAE,SAAS,EAAM,KAAK,EAAK,IAAqB,EAAM,KAAK,CAAC,MAAM,CAAC,aAAa,OAAO,EAAE,SAAS,CAAC,EAAK,KAAK,EAAK,WAAwB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,WAAW,QAAQ,cAAc,OAAO,EAAE,SAAS,EAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAK,CAAC,CAAC,CAAC,CAAE,iBAA9zB,IAAoD,EAA2wB,EAAkB,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,kBAAkB,UAAU,EAAE,EAAE,CAAC,KAAK,mBAAmB,UAAU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