{"version":3,"file":"GridFrame.DdEfvNgT.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LBdPJMBtwzGDut9mgk7V/veyvLpT8Tzsk9xcsPxj7/GridFrame.js"],"sourcesContent":["// Frame with a grid-like view, transparent cells, and visible grid lines\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * GridFrame\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GridFrame(props){const{columns,rows,gap,background,gridLineColor,gridLineWidth,cellRadius,style}=props;const totalCells=Math.max(1,columns)*Math.max(1,rows);return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"grid\",gridTemplateColumns:`repeat(${Math.max(1,columns)}, 1fr)`,gridTemplateRows:`repeat(${Math.max(1,rows)}, 1fr)`,gap:gap,background:background,position:\"relative\"},children:Array.from({length:totalCells}).map((_,i)=>/*#__PURE__*/_jsx(\"div\",{style:{background:\"transparent\",borderRadius:cellRadius,width:\"100%\",height:\"100%\",boxSizing:\"border-box\",border:`${gridLineWidth}px solid ${gridLineColor}`}},i))});}addPropertyControls(GridFrame,{columns:{type:ControlType.Number,title:\"Columns\",defaultValue:3,min:1,max:12,step:1,displayStepper:true},rows:{type:ControlType.Number,title:\"Rows\",defaultValue:40,min:1,max:12,step:1,displayStepper:true},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:64,step:1,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},gridLineColor:{type:ControlType.Color,title:\"Grid Line Color\",defaultValue:\"#CCCCCC\"},gridLineWidth:{type:ControlType.Number,title:\"Grid Line Width\",defaultValue:1,min:1,max:8,step:1,unit:\"px\"},cellRadius:{type:ControlType.Number,title:\"Cell Radius\",defaultValue:0,min:0,max:32,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GridFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GridFrame.map"],"mappings":"iOAMG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,MAAI,aAAW,gBAAc,gBAAc,aAAW,QAAM,CAAC,EAAY,EAAW,KAAK,IAAI,EAAE,EAAQ,CAAC,KAAK,IAAI,EAAE,EAAK,CAAC,MAAoB,GAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,qBAAqB,SAAS,KAAK,IAAI,EAAE,EAAQ,CAAC,QAAQ,kBAAkB,SAAS,KAAK,IAAI,EAAE,EAAK,CAAC,QAAY,MAAe,aAAW,SAAS,UAAW,EAAC,SAAS,MAAM,KAAK,CAAC,OAAO,CAAW,EAAC,CAAC,IAAI,CAAC,EAAE,IAAiB,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,cAAc,aAAa,EAAW,MAAM,OAAO,OAAO,OAAO,UAAU,aAAa,UAAU,EAAc,WAAW,GAAgB,CAAC,EAAC,EAAE,CAAC,AAAC,EAAC,AAAE,cAAA,AALtqB,GAA2C,IAAoD,CAKukB,EAAoB,EAAU,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,gBAAe,CAAK,EAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,gBAAe,CAAK,EAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,IAAK,EAAC,WAAW,CAAC,KAAK,EAAY,MAAM,MA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