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 4.43 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconKickball/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 IconKickball: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"kickball\" maskId=\"square-outlined-radius-0-stroke-2-IconKickball\"><path d=\"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M8.93573 10.0643C8.79784 10.0225 8.65154 10 8.5 10C7.67157 10 7 10.6716 7 11.5C7 11.6515 7.02247 11.7978 7.06427 11.9357C6.44835 11.7491 6 11.1769 6 10.5C6 9.67157 6.67157 9 7.5 9C8.17688 9 8.74905 9.44835 8.93573 10.0643Z\" fill=\"currentColor\"/><path d=\"M11.9357 7.06427C11.7978 7.02247 11.6515 7 11.5 7C10.6716 7 10 7.67157 10 8.5C10 8.65154 10.0225 8.79784 10.0643 8.93573C9.44835 8.74905 9 8.17688 9 7.5C9 6.67157 9.67157 6 10.5 6C11.1769 6 11.7491 6.44835 11.9357 7.06427Z\" fill=\"currentColor\"/><path d=\"M9.93573 13.0643C9.79784 13.0225 9.65154 13 9.5 13C8.67157 13 8 13.6716 8 14.5C8 14.6515 8.02247 14.7978 8.06427 14.9357C7.44835 14.7491 7 14.1769 7 13.5C7 12.6716 7.67157 12 8.5 12C9.17688 12 9.74905 12.4483 9.93573 13.0643Z\" fill=\"currentColor\"/><path d=\"M12.9357 10.0643C12.7978 10.0225 12.6515 10 12.5 10C11.6716 10 11 10.6716 11 11.5C11 11.6515 11.0225 11.7978 11.0643 11.9357C10.4483 11.7491 10 11.1769 10 10.5C10 9.67157 10.6716 9 11.5 9C12.1769 9 12.7491 9.44835 12.9357 10.0643Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconKickball;\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,EAAiE,EAAM,KAAK,CAAC,IAAU,CAClG,OAAO,gBAAixC,EAAjxC,IAAqB,EAAO,UAAU,WAAW,OAAO,kDAAiD,gBAAC,OAAD,CAAM,EAAE,oHAAoH,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,iOAAiO,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,iOAAiO,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,oOAAoO,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,yOAAyO,KAAK,eAAc,CAAI,EACzxC,EAEc", "debugId": "E553586125ABD72464756E2164756E21", "names": [] }