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 5.36 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconCereals/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 IconCereals: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"cereals, wheat, gluten, corn, grain\" maskId=\"square-outlined-radius-0-stroke-2-IconCereals\"><path d=\"M6.34324 10.5857L7.80184 12.8671C8.56054 14.0538 8.39154 15.6085 7.3956 16.6044L5.98969 18.0103L4.53108 15.7289C3.77239 14.5422 3.94139 12.9875 4.93733 11.9916L6.34324 10.5857Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M13.415 17.6567L11.1336 16.1981C9.94688 15.4394 8.39209 15.6084 7.39615 16.6043L5.99023 18.0102L8.27174 19.4688C9.45841 20.2275 11.0131 20.0585 12.009 19.0626L13.415 17.6567Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M9.52488 7.40381L10.9835 9.68521C11.7422 10.8719 11.5732 12.4266 10.5772 13.4225L9.17133 14.8284L7.71273 12.547C6.95403 11.3604 7.12303 9.80566 8.11897 8.80972L9.52488 7.40381Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M16.5965 14.4748L14.3151 13.0162C13.1284 12.2575 11.5737 12.4265 10.5778 13.4225L9.17188 14.8284L11.4533 16.2869C12.6399 17.0456 14.1946 16.8766 15.1906 15.8807L16.5965 14.4748Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M12.7065 4.22192L14.1651 6.50333C14.9238 7.69 14.7548 9.24469 13.7589 10.2406L12.353 11.6465L10.8944 9.36514C10.1357 8.17847 10.3047 6.62378 11.3006 5.62783L12.7065 4.22192Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M19.7781 11.2929L17.4967 9.8343C16.31 9.07561 14.7554 9.24462 13.7594 10.2406L12.3535 11.6465L14.6349 13.1051C15.8216 13.8638 17.3763 13.6948 18.3722 12.6988L19.7781 11.2929Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M15.1824 8.81814C14.7563 5.47301 16.4335 3.79583 19.7786 4.22194C20.2047 7.56707 18.5275 9.24425 15.1824 8.81814Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/><path d=\"M6.34398 17.6567L4.22266 19.7781\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"square\"/></CentralIconBase>;\n});\n\nexport default IconCereals;\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,EAAgE,EAAM,KAAK,CAAC,IAAU,CACjG,OAAO,gBAAw3D,EAAx3D,IAAqB,EAAO,UAAU,sCAAsC,OAAO,iDAAgD,gBAAC,OAAD,CAAM,EAAE,mLAAmL,OAAO,eAAe,YAAY,IAAI,cAAc,SAAQ,EAAE,gBAAC,OAAD,CAAM,EAAE,iLAAiL,OAAO,eAAe,YAAY,IAAI,cAAc,SAAQ,EAAE,gBAAC,OAAD,CAAM,EAAE,mLAAmL,OAAO,eAAe,YAAY,IAAI,cAAc,SAAQ,EAA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