{"version":3,"file":"DotPattern.ELLElvkt.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/1FMw5xAaLWLlcCUnVYn5/09K8KIVCHINpqRyf5mkP/DotPattern.js"],"sourcesContent":["// Dot pattern component with configurable dot color\n// Dots are positioned in the top-left corner of 16px containers for even spacing\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function DotPattern(props){const{dotColor,dotSize,dotSpacing}=props;const containerSize=16;const patternId=useMemo(()=>`dot-pattern-${Math.random().toString(36).substr(2,9)}`,[dotColor,dotSize]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"pattern\",{id:patternId,x:\"0\",y:\"0\",width:dotSpacing,height:dotSpacing,patternUnits:\"userSpaceOnUse\",children:/*#__PURE__*/_jsx(\"circle\",{cx:dotSize/2,cy:dotSize/2,r:dotSize/2,fill:dotColor})})}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:`url(#${patternId})`})]})});}addPropertyControls(DotPattern,{dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#CCCCCC\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:2,min:1,max:8,step:.5,unit:\"px\"},dotSpacing:{type:ControlType.Number,title:\"Dot Spacing\",defaultValue:16,min:4,max:64,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DotPattern\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DotPattern.map"],"mappings":"iLAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,cAAY,EAAmC,EAAUA,MAAY,eAAe,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC,EAAS,EAAQ,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,6BAA6B,SAAS,CAAc,EAAK,OAAO,CAAC,SAAsB,EAAK,UAAU,CAAC,GAAG,EAAU,EAAE,IAAI,EAAE,IAAI,MAAM,EAAW,OAAO,EAAW,aAAa,iBAAiB,SAAsB,EAAK,SAAS,CAAC,GAAG,EAAQ,EAAE,GAAG,EAAQ,EAAE,EAAE,EAAQ,EAAE,KAAK,EAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,OAAO,OAAO,OAAO,KAAK,QAAQ,EAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,kBAH9rB,IAAoD,IAA2B,CAGinB,EAAoB,EAAW,CAAC,SAAS,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,KAAK,CAAC,CAAC"}