UNPKG

@central-icons-react/square-outlined-radius-0-stroke-2

Version:

A collection of square outlined React icons with 0px radius and 2px stroke width, designed for use in React applications.

11 lines 3.9 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconGhost2/index.tsx"], "sourcesContent": [ "import React from \"react\";\nimport type { SVGProps } from \"react\";\n\nexport type CentralIconBaseProps = {\n size?: string | number;\n ariaHidden?: boolean;\n mode?: \"masked\" | \"raw\";\n maskId?: string;\n} & SVGProps<SVGSVGElement>;\n\nexport const CentralIconBase: React.FC<\n CentralIconBaseProps & { ariaLabel?: string }\n> = ({\n children,\n size = 24,\n ariaLabel,\n color,\n ariaHidden = true,\n style,\n mode = \"masked\",\n maskId,\n ...props\n}) => {\n const masked = mode !== \"raw\" && !!maskId;\n return (\n <svg\n {...props}\n aria-hidden={ariaHidden}\n role={ariaHidden ? undefined : \"img\"}\n width={typeof size === \"number\" ? `${size}px` : size}\n height={typeof size === \"number\" ? `${size}px` : size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ color, ...style }}\n >\n {ariaLabel && !ariaHidden && <title>{ariaLabel}</title>}\n {masked ? (\n <>\n <mask\n id={maskId}\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"24\"\n height=\"24\"\n >\n <rect width=\"24\" height=\"24\" fill=\"#000\" />\n <g fill=\"none\" style={{ color: \"#fff\" }}>\n {children}\n </g>\n </mask>\n <rect\n width=\"24\"\n height=\"24\"\n fill=\"currentColor\"\n mask={`url(#${maskId})`}\n />\n </>\n ) : (\n children\n )}\n </svg>\n );\n};\n", "import React from \"react\";\nimport { CentralIconBase, type CentralIconBaseProps } from \"../CentralIconBase\";\n\nexport const IconGhost2: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"ghost-2, privacy, hidden, unknown\" maskId=\"square-outlined-radius-0-stroke-2-IconGhost2\"><path d=\"M10.9984 9.5C10.9984 10.6046 10.4164 11.5 9.69844 11.5C8.98047 11.5 8.39844 10.6046 8.39844 9.5C8.39844 8.39543 8.98047 7.5 9.69844 7.5C10.4164 7.5 10.9984 8.39543 10.9984 9.5Z\" fill=\"currentColor\"/><ellipse cx=\"14.3\" cy=\"9.5\" rx=\"1.3\" ry=\"2\" fill=\"currentColor\"/><path d=\"M8.22403 19.5L5.29313 20.431C4.5298 20.6735 3.79713 19.962 3.97661 19.1814C4.67168 16.1587 4.91166 13.1458 4.97182 10.0828C5.04826 6.19129 8.10953 3 12.0018 3C15.8941 3 18.9554 6.19129 19.0318 10.0828C19.092 13.1458 19.3319 16.1587 20.027 19.1814C20.2065 19.962 19.4738 20.6735 18.7105 20.431L15.7796 19.5L12.3708 20.8535C12.1338 20.9476 11.8698 20.9476 11.6328 20.8535L8.22403 19.5Z\" stroke=\"currentColor\" strokeWidth=\"2\"/></CentralIconBase>;\n});\n\nexport default IconGhost2;\n" ], "mappings": "AAAA,qBAUO,IAAM,EAET,EACF,WACA,OAAO,GACP,YACA,QACA,aAAa,GACb,QACA,OAAO,SACP,YACG,KACC,CACJ,IAAM,EAAS,IAAS,OAAS,CAAC,CAAC,EACnC,OACE,gBAqCE,MArCF,IACM,EACJ,cAAa,EACb,KAAM,EAAa,OAAY,MAC/B,MAAO,OAAO,IAAS,SAAW,GAAG,MAAW,EAChD,OAAQ,OAAO,IAAS,SAAW,GAAG,MAAW,EACjD,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,MAAO,CAAE,WAAU,CAAM,GAExB,GAAa,CAAC,GAAc,gBAAoB,QAApB,KAAQ,CAAY,EAChD,EACC,gCACE,gBAYE,OAZF,CACE,GAAI,EACJ,UAAU,iBACV,EAAE,IACF,EAAE,IACF,MAAM,KACN,OAAO,MAEP,gBAAC,OAAD,CAAM,MAAM,KAAK,OAAO,KAAK,KAAK,OAAO,EACzC,gBAEE,IAFF,CAAG,KAAK,OAAO,MAAO,CAAE,MAAO,MAAO,GACnC,CACD,CACF,EACF,gBAAC,OAAD,CACE,MAAM,KACN,OAAO,KACP,KAAK,eACL,KAAM,QAAQ,KAChB,CACA,EAEF,CAEF,GC9DN,qBAGO,IAAM,EAA+D,EAAM,KAAK,CAAC,IAAU,CAChG,OAAO,gBAAo0B,EAAp0B,IAAqB,EAAO,UAAU,oCAAoC,OAAO,gDAA+C,gBAAC,OAAD,CAAM,EAAE,mLAAmL,KAAK,eAAc,EAAE,gBAAC,UAAD,CAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,kYAAkY,OAAO,eAAe,YAAY,IAAG,CAAI,EAC50B,EAEc", "debugId": "0587420F5072B5B064756E2164756E21", "names": [] }