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.32 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconChrome/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 IconChrome: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"chrome\" maskId=\"square-outlined-radius-0-stroke-2-IconChrome\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M4.41459 5.4838C9.06327 0.0735695 17.6827 1.14152 20.905 7.46127C18.6367 7.46205 15.0847 7.46065 13.161 7.46127C11.7657 7.46174 10.865 7.43002 9.88935 7.94361C8.74249 8.54735 7.87704 9.6664 7.57501 10.9809L4.41459 5.4838Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8.67296 11.9995C8.67296 13.8331 10.1639 15.3249 11.9965 15.3249C13.829 15.3249 15.3199 13.8332 15.3199 11.9995C15.3199 10.1659 13.829 8.67407 11.9965 8.67407C10.1639 8.67407 8.67296 10.1659 8.67296 11.9995Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M13.2863 16.3521C11.4209 16.9064 9.23796 16.2916 8.04219 14.2276C7.12939 12.6521 4.71771 8.45079 3.62163 6.54051C-0.217376 12.4246 3.09133 20.4431 10.0609 21.8117L13.2863 16.3521Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M15.0837 8.67407C16.6374 10.119 16.9758 12.459 15.9233 14.2734C15.1304 15.6404 12.5998 19.9116 11.3732 21.9798C18.5541 22.4225 23.7888 15.3848 21.4243 8.67407H15.0837Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconChrome;\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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