{"version":3,"file":"ArticleTable.CjVB5BnQ.mjs","names":["c","__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BL70qLPA","ArticleTable","props","lines","rows","l","head","body","sans","sansFont","th","monoFont","style","spaceAbove","spaceBelow","caption","i","c$1","r","ri","ci","c$2","__FramerMetadata__","init_ArticleTable","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutHeight\"","\"framerContractVersion\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/5yVUK84ma7PP1fPYDCE8/Ckm82SphuFpJ39DjB4Es/ArticleTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ArticleTable: a simple dark table for articles.\n * Rows: one per line, cells separated by \"|\". The first line is the header.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function ArticleTable(props){const{rows,caption,sansFont,monoFont,spaceAbove,spaceBelow,style}=props;const lines=String(rows||\"\").split(\"\\n\").map(l=>l.trim()).filter(Boolean).map(l=>l.split(\"|\").map(c=>c.trim()));const[head,...body]=lines.length?lines:[[\"\"]];const sans=`\"${sansFont}\", Arial, sans-serif`;const mono=`\"${monoFont}\", ui-monospace, monospace`;const th={textAlign:\"left\",font:`500 12px/1.3 ${mono}`,letterSpacing:\"0.08em\",textTransform:\"uppercase\",color:\"#8E97A8\",padding:\"14px 18px\",background:\"rgba(255,255,255,0.03)\",borderBottom:\"1px solid rgba(255,255,255,0.10)\"};return /*#__PURE__*/_jsx(\"div\",{style:{...style,boxSizing:\"border-box\",paddingTop:spaceAbove,paddingBottom:spaceBelow},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",overflowX:\"auto\",border:\"1px solid rgba(255,255,255,0.10)\",borderRadius:4,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"collapse\",wordBreak:\"normal\",overflowWrap:\"normal\",hyphens:\"manual\",fontFamily:sans,fontSize:16,lineHeight:1.55,color:\"#C4CAD5\"},children:[caption?/*#__PURE__*/_jsx(\"caption\",{style:{position:\"absolute\",width:1,height:1,overflow:\"hidden\",clip:\"rect(0 0 0 0)\"},children:caption}):null,/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsx(\"tr\",{children:head.map((c,i)=>/*#__PURE__*/_jsx(\"th\",{scope:\"col\",style:i===0?{...th,whiteSpace:\"nowrap\",width:\"1%\"}:th,children:c},i))})}),/*#__PURE__*/_jsx(\"tbody\",{children:body.map((r,ri)=>/*#__PURE__*/_jsx(\"tr\",{children:r.map((c,ci)=>/*#__PURE__*/_jsx(\"td\",{style:{padding:\"14px 18px\",verticalAlign:\"top\",borderBottom:ri===body.length-1?0:\"1px solid rgba(255,255,255,0.10)\",color:ci===0?\"#F3F5F9\":undefined,fontWeight:ci===0?600:400,whiteSpace:ci===0?\"nowrap\":\"normal\"},children:c},ci))},ri))})]})})});}ArticleTable.defaultProps={spaceAbove:40,spaceBelow:40,rows:\"Original screenshot | After fitting the long edge\\n600 \\xd7 3,600 | ≈250 \\xd7 1,500\\n2 px feature | <1 px feature\",caption:\"\",sansFont:\"Aileron\",monoFont:\"IBM Plex Mono\"};addPropertyControls(ArticleTable,{spaceAbove:{type:ControlType.Number,title:\"Space above\",min:0,max:160,unit:\"px\"},spaceBelow:{type:ControlType.Number,title:\"Space below\",min:0,max:160,unit:\"px\"},rows:{type:ControlType.String,title:\"Rows\",displayTextArea:true,description:\"One row per line, cells split by |. First line is the header.\"},caption:{type:ControlType.String,title:\"Caption (screen readers)\"},sansFont:{type:ControlType.String,title:\"Sans font\"},monoFont:{type:ControlType.String,title:\"Mono font\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleTable\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleTable.map"],"mappings":"A,8JAOG,SAAwBO,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,WAAS,WAAS,aAAW,aAAW,SAAOC,EAAYC,EAAM,OAAOC,GAAM,EAAE,CAAC,CAAC,MAAM;CAAI,CAAC,CAAC,IAAI,GAAGC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,GAAGA,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,GAAGR,EAAE,KAAK,CAAC,CAAC,EAAO,CAACS,EAAK,GAAGC,GAAMJ,EAAM,OAAOA,EAAM,CAAC,CAAC,EAAE,CAAC,EAAQK,EAAK,IAAIC,EAAS,sBAAgFC,EAAG,CAAC,UAAU,OAAO,KAAK,gBAAgB,IAArFC,EAAS,8BAAmF,cAAc,SAAS,cAAc,YAAY,MAAM,UAAU,QAAQ,YAAY,WAAW,yBAAyB,aAAa,kCAAkC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,UAAU,aAAa,WAAWC,EAAW,cAAcC,CAAU,EAAE,SAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,OAAO,OAAO,mCAAmC,aAAa,EAAE,UAAU,YAAY,EAAE,SAAsB,gBAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,OAAO,eAAe,WAAW,UAAU,SAAS,aAAa,SAAS,QAAQ,SAAS,WAAWN,EAAK,SAAS,GAAG,WAAW,KAAK,MAAM,SAAS,EAAE,SAAS,CAACO,EAAqB,gBAAK,UAAU,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,KAAK,eAAe,EAAE,S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