{"version":3,"file":"LegalTable.CWqNhs2e.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zgiUeAZeBxTRTAfSPLEM/ta0D4XH5iQyC351BvGQI/LegalTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 320\n */export default function LegalTable({headers,rows,fontSize,headerFontSize,cellPaddingY,cellPaddingX,borderColor,headerBackground,textColor,headerTextColor,rowAlternateBackground,fontFamily}){const baseCellStyle={padding:`${cellPaddingY}px ${cellPaddingX}px`,borderBottom:`1px solid ${borderColor}`,borderRight:`1px solid ${borderColor}`,verticalAlign:\"top\",textAlign:\"left\"};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",fontFamily:fontFamily||\"inherit\",color:textColor,overflowX:\"auto\"},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"collapse\",fontSize:`${fontSize}px`,lineHeight:1.5,borderTop:`1px solid ${borderColor}`,borderLeft:`1px solid ${borderColor}`},children:[headers&&headers.length>0&&/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsx(\"tr\",{style:{background:headerBackground},children:headers.map((h,i)=>/*#__PURE__*/_jsx(\"th\",{style:{...baseCellStyle,fontSize:`${headerFontSize}px`,fontWeight:600,color:headerTextColor},children:h},i))})}),/*#__PURE__*/_jsx(\"tbody\",{children:rows.map((row,ri)=>/*#__PURE__*/_jsx(\"tr\",{style:{background:ri%2===1?rowAlternateBackground:\"transparent\"},children:(row.cells||[]).map((cell,ci)=>/*#__PURE__*/_jsx(\"td\",{style:baseCellStyle,children:cell},ci))},ri))})]})});}addPropertyControls(LegalTable,{headers:{type:ControlType.Array,title:\"Headers\",control:{type:ControlType.String},defaultValue:[\"Priority\",\"Definition\",\"Initial Response Time\",\"Estimated Resolution Time\"]},rows:{type:ControlType.Array,title:\"Rows\",control:{type:ControlType.Object,controls:{cells:{type:ControlType.Array,control:{type:ControlType.String}}}},defaultValue:[{cells:[\"4 - LOW\",\"Information or enhancement request\",\"48 hours\",\"10 business days\"]},{cells:[\"3 - MEDIUM\",\"Problem where acceptable workaround is available\",\"8 hours or next business day\",\"As promptly as possible but within 5 business days\"]},{cells:[\"2 - HIGH\",\"Hosted Service is operational, but functionality is seriously affected\",\"4 hours\",\"1 business day\"]},{cells:[\"1 - CRITICAL\",\"Hosted Service is not operational\",\"1 hour\",\"4 hours\"]}]},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:15,min:10,max:24,step:1},headerFontSize:{type:ControlType.Number,title:\"Header Size\",defaultValue:14,min:10,max:24,step:1},cellPaddingY:{type:ControlType.Number,title:\"Cell Pad Y\",defaultValue:12,min:0,max:48,step:1},cellPaddingX:{type:ControlType.Number,title:\"Cell Pad X\",defaultValue:16,min:0,max:48,step:1},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"\",placeholder:\"inherit\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(255,255,255,0.15)\"},headerBackground:{type:ControlType.Color,title:\"Header BG\",defaultValue:\"rgba(255,255,255,0.04)\"},rowAlternateBackground:{type:ControlType.Color,title:\"Row Alt BG\",defaultValue:\"rgba(255,255,255,0.02)\"},headerTextColor:{type:ControlType.Color,title:\"Header Color\",defaultValue:\"rgba(255,255,255,0.7)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"rgba(255,255,255,0.85)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LegalTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"320\",\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL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