{"version":3,"file":"SpecificationGrid_1.C64zRvVe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JfYIQFotlCg3jqiGjxkK/hEZNQMH3ePaRmcnTyo6D/SpecificationGrid_1.js"],"sourcesContent":["// Create an exact grid replication of the specifications table\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Specifications Grid - Exact replica of the technical specifications table\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SpecificationGrid(props){const{rows,headerBackground,headerTextColor,rowBackground,alternateRowBackground,textColor,borderColor,headerFont,bodyFont}=props;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"auto\",backgroundColor:rowBackground,fontFamily:\"system-ui, -apple-system, sans-serif\"},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"collapse\",border:`1px solid ${borderColor}`},children:[/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsxs(\"tr\",{style:{backgroundColor:headerBackground},children:[/*#__PURE__*/_jsx(\"th\",{style:{...headerFont,color:headerTextColor,padding:\"12px 16px\",textAlign:\"left\",borderRight:`1px solid ${borderColor}`,borderBottom:`1px solid ${borderColor}`,fontWeight:600,width:\"20%\"},children:\"Items\"}),/*#__PURE__*/_jsx(\"th\",{style:{...headerFont,color:headerTextColor,padding:\"12px 16px\",textAlign:\"left\",borderRight:`1px solid ${borderColor}`,borderBottom:`1px solid ${borderColor}`,fontWeight:600,width:\"15%\"},children:\"ON/OFF\"}),/*#__PURE__*/_jsx(\"th\",{style:{...headerFont,color:headerTextColor,padding:\"12px 16px\",textAlign:\"left\",borderRight:`1px solid ${borderColor}`,borderBottom:`1px solid ${borderColor}`,fontWeight:600,width:\"25%\"},children:\"Specifications\"}),/*#__PURE__*/_jsx(\"th\",{style:{...headerFont,color:headerTextColor,padding:\"12px 16px\",textAlign:\"left\",borderBottom:`1px solid ${borderColor}`,fontWeight:600,width:\"40%\"},children:\"Test Methods/Standards\"})]})}),/*#__PURE__*/_jsx(\"tbody\",{children:rows.map((row,index)=>/*#__PURE__*/_jsxs(\"tr\",{style:{backgroundColor:index%2===0?rowBackground:alternateRowBackground},children:[/*#__PURE__*/_jsx(\"td\",{style:{...bodyFont,color:textColor,padding:\"12px 16px\",borderRight:`1px solid ${borderColor}`,borderBottom:index<rows.length-1?`1px solid ${borderColor}`:\"none\",verticalAlign:\"top\"},children:row.item}),/*#__PURE__*/_jsx(\"td\",{style:{...bodyFont,color:textColor,padding:\"12px 16px\",borderRight:`1px solid ${borderColor}`,borderBottom:index<rows.length-1?`1px solid ${borderColor}`:\"none\",verticalAlign:\"top\"},children:row.onOff}),/*#__PURE__*/_jsx(\"td\",{style:{...bodyFont,color:textColor,padding:\"12px 16px\",borderRight:`1px solid ${borderColor}`,borderBottom:index<rows.length-1?`1px solid ${borderColor}`:\"none\",verticalAlign:\"top\"},children:row.specification}),/*#__PURE__*/_jsx(\"td\",{style:{...bodyFont,color:textColor,padding:\"12px 16px\",borderBottom:index<rows.length-1?`1px solid ${borderColor}`:\"none\",verticalAlign:\"top\"},children:row.testMethod})]},index))})]})});}addPropertyControls(SpecificationGrid,{rows:{type:ControlType.Array,title:\"Specification Rows\",control:{type:ControlType.Object,controls:{item:{type:ControlType.String,title:\"Item\",defaultValue:\"Operating Voltage\"},onOff:{type:ControlType.String,title:\"ON/OFF\",defaultValue:\"ON\"},specification:{type:ControlType.String,title:\"Specification\",defaultValue:\"60V\"},testMethod:{type:ControlType.String,title:\"Test Method\",defaultValue:\"Multimeter / Voltage Regulator, WGW\"}}},defaultValue:[{item:\"Operating Voltage\",onOff:\"ON\",specification:\"60V\",testMethod:\"Multimeter / Voltage Regulator, WGW\"},{item:\"Power Consumption\",onOff:\"ON\",specification:\"≤ 5W/m\\xb2\",testMethod:\"Multi-parameter electric measuring instrument\"},{item:\"Viewing Angle\",onOff:\"ON\",specification:\"≥ 160\\xb0\",testMethod:\"Visual Inspection\"},{item:\"UV Blocking Rate\",onOff:\"OFF\",specification:\"≥ 99%\",testMethod:\"Optical transmittance tester\"},{item:\"Infrared Blocking Rate\",onOff:\"OFF\",specification:\"≥ 60%\",testMethod:\"Optical transmittance tester\"},{item:\"Response Time\",onOff:\"OFF→ON\\nON→OFF\",specification:\"≤ 30 ms\\n≤ 200 ms\",testMethod:\"Liquid crystal parameter integrated tester\"},{item:\"Operating Temperature\",onOff:\"--\",specification:\"-30\\xb0C ~ 50\\xb0C\",testMethod:\"Constant temperature and humidity testing machine\"},{item:\"Life-span\",onOff:\"--\",specification:\"100,000 Hours\",testMethod:\"GB18910.5-2008\"},{item:\"Switching Times\",onOff:\"--\",specification:\"≥ 2 million times\",testMethod:\"Self-made on/off tester\"}]},headerBackground:{type:ControlType.Color,title:\"Header Background\",defaultValue:\"#F5F5F5\"},headerTextColor:{type:ControlType.Color,title:\"Header Text Color\",defaultValue:\"#000000\"},rowBackground:{type:ControlType.Color,title:\"Row Background\",defaultValue:\"#FFFFFF\"},alternateRowBackground:{type:ControlType.Color,title:\"Alternate Row Background\",defaultValue:\"#FAFAFA\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},headerFont:{type:ControlType.Font,title:\"Header Font\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},bodyFont:{type:ControlType.Font,title:\"Body Font\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SpecificationGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SpecificationGrid_1.map"],"mappings":"8JASG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,OAAK,mBAAiB,kBAAgB,gBAAc,yBAAuB,YAAU,cAAY,aAAW,YAAU,EAAM,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,OAAO,gBAAgB,EAAc,WAAW,uCAAuC,CAAC,SAAsB,EAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,OAAO,eAAe,WAAW,OAAO,aAAa,IAAc,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAsB,EAAM,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAiB,CAAC,SAAS,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,GAAG,EAAW,MAAM,EAAgB,QAAQ,YAAY,UAAU,OAAO,YAAY,aAAa,IAAc,aAAa,aAAa,IAAc,WAAW,IAAI,MAAM,MAAM,CAAC,SAAS,QAAQ,CAAC,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,GAAG,EAAW,MAAM,EAAgB,QAAQ,YAAY,UAAU,OAAO,YAAY,aAAa,IAAc,aAAa,aAAa,IAAc,WAAW,IAAI,MAAM,MAAM,CAAC,SAAS,SAAS,CAAC,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,GAAG,EAAW,MAAM,EAAgB,QAAQ,YAAY,UAAU,OAAO,YAAY,aAAa,IAAc,aAAa,aAAa,IAAc,WAAW,IAAI,MAAM,MAAM,CAAC,SAAS,iBAAiB,CAAC,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,GAAG,EAAW,MAAM,EAAgB,QAAQ,YAAY,UAAU,OAAO,aAA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