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.99 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconCherry/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 IconCherry: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"cherry\" maskId=\"square-outlined-radius-0-stroke-2-IconCherry\"><path d=\"M16 12C15.2422 8.22782 13.0438 5.27676 10.01 3L10 3.00003C10.8746 6.09938 10.6531 8.74121 9 11.5\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M21 16.25C21 19.0115 18.7614 21.0001 16 21.0001C13.2386 21.0001 11 19.0115 11 16.25C11 12.3025 13.5 11.5001 16 12.5C18.5 11.5001 21 12.3025 21 16.25Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M14.5 7H16C17.6569 7 19 5.65685 19 4V2H17C15.3431 2 14 3.34315 14 5V6\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M11.7505 19.2835C10.5723 20.7608 8.5611 21.3859 6.5554 20.8485C0.120881 19.1244 3.37764 8.61496 8.75537 12.6381C9.83572 12.5093 10.8399 12.6647 11.5857 13.1473\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/></CentralIconBase>;\n});\n\nexport default IconCherry;\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,E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