{"version":3,"file":"SmartList.DGALKDOy.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BL9pqxmF","getMarker","n","start","index","listStyle","SmartList","props","lineHeight","items","item","init_SmartList","ControlType"],"sources":["https:/framerusercontent.com/modules/jx1irPUBXWtGEdWQ6Iz3/gUOg1cUX8DZJq7aNu5ax/SmartList.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function getMarker(listStyle,index,start){const n=start+index;switch(listStyle){case\"number\":return`${n}.`;case\"uppercase\":return`${String.fromCharCode(64+n)}.`// A, B, C...\n;case\"lowercase\":return`${String.fromCharCode(96+n)}.`// a, b, c...\n;case\"bullet\":default:return\"•\";}}export function SmartList(props){const{items,start,listStyle,fontSize,lineHeight,color,fontFamily}=props;return /*#__PURE__*/_jsx(\"div\",{role:\"list\",style:{display:\"flex\",flexDirection:\"column\",fontSize,lineHeight:`${lineHeight}px`,color,fontFamily},children:items.map((item,index)=>/*#__PURE__*/_jsxs(\"div\",{role:\"listitem\",style:{display:\"flex\",alignItems:\"flex-start\",marginBottom:\"0.5em\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,width:\"1.5em\",textAlign:listStyle===\"bullet\"?\"center\":\"left\"},children:getMarker(listStyle,index,start)}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1},children:item})]},index))});}addPropertyControls(SmartList,{items:{type:ControlType.Array,title:\"Items\",propertyControl:{type:ControlType.String,placeholder:\"List item text\"}},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\":{\"SmartList\":{\"type\":\"reactComponent\",\"name\":\"SmartList\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmartList.map"],"mappings":"A,8JAA6G,SAASM,EAAU,EAAU,EAAM,EAAM,CAAC,IAAMC,EAAEC,EAAMC,EAAM,OAAOC,EAAP,CAAkB,IAAI,SAAS,MAAM,GAAGH,EAAE,GAAG,IAAI,YAAY,MAAM,GAAG,OAAO,aAAa,GAAGA,CAAC,EAAE,GAC1Q,IAAI,YAAY,MAAM,GAAG,OAAO,aAAa,GAAGA,CAAC,EAAE,GACtC,QAAQ,MAAM,GAAI,CAAC,CAAC,SAAgBI,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,YAAU,WAAS,aAAW,QAAM,cAAYC,EAAM,MAAoB,gBAAK,MAAM,CAAC,KAAK,OAAO,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAS,WAAW,GAAGC,EAAW,IAAI,QAAM,YAAU,EAAE,SAASC,EAAM,KAAK,EAAK,IAAqB,gBAAM,MAAM,CAAC,KAAK,WAAW,MAAM,CAAC,QAAQ,OAAO,WAAW,aAAa,aAAa,OAAO,EAAE,SAAS,CAAc,gBAAK,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,QAAQ,UAAUJ,IAAY,SAAS,SAAS,MAAM,EAAE,SAASJ,EAAUI,EAAUD,EAAMD,CAAK,CAAC,CAAC,EAAe,gBAAK,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,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