{"version":3,"file":"EnglishTechnicalTable.BfmTkeAw.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/y82rSxdF1mUVaWg2ajDv/AdOoAVBtsMuT0ixFK3DP/EnglishTechnicalTable.js"],"sourcesContent":["// User request: Create Framer code component EnglishTechnicalTable.tsx, semantic responsive HTML table exact existing T-REX look: Oswald font 18px, dark green #123c2b, white, thin lightgray borders rectangular, header gray/pale background green bold. props rowsJson (string JSON array of array strings) property control multiline, style. Full width auto height supported annotations @framerSupportedLayoutWidth any @framerSupportedLayoutHeight auto. OverflowX auto wrapper; table minWidth based columns 110px each, cells padding12, legible on phone horizontal scroll. No new data no CMS. Default 2x2 simple. Exportdefault, no dependencies otherthanReact/framer. Need editable native property control.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function parseRows(rowsJson){try{const parsed=JSON.parse(rowsJson.startsWith(\"rows:\")?rowsJson.slice(5):rowsJson);if(!Array.isArray(parsed))return[];return parsed.map(row=>Array.isArray(row)?row.map(cell=>String(cell??\"\")):[String(row??\"\")]);}catch(_error){return[];}}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function EnglishTechnicalTable(props){const{rowsJson,style}=props;const rows=React.useMemo(()=>parseRows(rowsJson),[rowsJson]);const safeRows=rows.length>0?rows:[[\"Header 1\",\"Header 2\"],[\"Value 1\",\"Value 2\"]];const columnCount=Math.max(...safeRows.map(r=>r.length),1);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",overflowX:\"auto\",overflowY:\"hidden\",...style},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",minWidth:`${columnCount*110}px`,borderCollapse:\"collapse\",borderSpacing:0,background:\"#FFFFFF\",color:\"#123c2b\",fontFamily:\"Oswald, sans-serif\",fontSize:18,lineHeight:1.3},children:[/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsx(\"tr\",{children:safeRows[0].map((cell,index)=>/*#__PURE__*/_jsx(\"th\",{scope:\"col\",style:{border:\"1px solid #DDDDDD\",background:\"#EEF2EF\",color:\"#123c2b\",fontWeight:700,textAlign:\"left\",padding:12,whiteSpace:\"nowrap\"},children:cell},`h-${index}`))})}),/*#__PURE__*/_jsx(\"tbody\",{children:safeRows.slice(1).map((row,rowIndex)=>/*#__PURE__*/_jsx(\"tr\",{children:Array.from({length:columnCount}).map((_,colIndex)=>/*#__PURE__*/_jsx(\"td\",{style:{border:\"1px solid #DDDDDD\",background:\"#FFFFFF\",color:\"#123c2b\",fontWeight:400,textAlign:\"left\",padding:12},children:row[colIndex]??\"\"},`c-${rowIndex}-${colIndex}`))},`r-${rowIndex}`))})]})});}addPropertyControls(EnglishTechnicalTable,{rowsJson:{type:ControlType.String,title:\"Rows JSON\",defaultValue:'[[\"Header 1\",\"Header 2\"],[\"Value 1\",\"Value 2\"]]',displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EnglishTechnicalTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EnglishTechnicalTable.map"],"mappings":"iLACyI,SAAS,EAAU,EAAS,CAAC,GAAG,CAAC,IAAM,EAAO,KAAK,MAAM,EAAS,WAAW,OAAO,EAAE,EAAS,MAAM,CAAC,EAAE,CAAQ,EAAqC,OAA/B,MAAM,QAAQ,CAAM,EAAkB,EAAO,IAAI,GAAK,MAAM,QAAQ,CAAG,EAAE,EAAI,IAAI,GAAM,OAAO,GAAM,EAAE,CAAC,EAAE,CAAC,OAAO,GAAK,EAAE,CAAC,CAAC,EAA9F,CAAC,CAA+F,MAAc,CAAC,MAAM,CAAC,CAAE,CAAC,CAGjZ,SAAwB,EAAsB,EAAM,CAAC,GAAK,C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