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/IconStamps/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 IconStamps: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"stamps, collection\" maskId=\"square-outlined-radius-0-stroke-2-IconStamps\"><path d=\"M7 4H4V7L4.58579 7.58579C5.36683 8.36683 5.36684 9.63316 4.58579 10.4142L4 11V13L4.58579 13.5858C4.986 13.986 5.18115 14.5136 5.17121 15.0381C5.16176 15.5372 4.96662 16.0334 4.58579 16.4142L4 17V20H7L7.58579 19.4142C8.36683 18.6332 9.63316 18.6332 10.4142 19.4142L11 20H13L13.5858 19.4142C14.3668 18.6332 15.6332 18.6332 16.4142 19.4142L17 20H20V17L19.4142 16.4142C19.0777 16.0777 18.8861 15.651 18.8396 15.2119C18.7782 14.6319 18.9697 14.0303 19.4142 13.5858L20 13V11L19.4142 10.4142C18.6332 9.63317 18.6332 8.36684 19.4142 7.58579L20 7V4H17L16.4142 4.58579C15.6332 5.36683 14.3668 5.36684 13.5858 4.58579L13 4H11L10.4142 4.58579C9.63317 5.36683 8.36684 5.36684 7.58579 4.58579L7 4Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 8.5C10.067 8.5 8.5 10.067 8.5 12C8.5 12.5416 8.62302 13.0545 8.84264 13.5122C10.6925 13.3841 12.2026 14.292 13.9251 14.9235C14.8739 14.2974 15.5 13.2218 15.5 12C15.5 10.067 13.933 8.5 12 8.5Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M13.9258 14.9233C15.2536 15.4101 16.7076 15.7327 18.5409 15.29\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M5.40234 14.8745C6.71253 13.9644 7.82939 13.5825 8.84403 13.5122\" stroke=\"currentColor\" strokeWidth=\"2\"/></CentralIconBase>;\n});\n\nexport default IconStamps;\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,gBAAuyC,EAAvyC,IAAqB,EAAO,UAAU,qBAAqB,OAAO,gDAA+C,gBAAC,OAAD,CAAM,EAAE,8qBAA8qB,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,sMAAsM,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,iEAAiE,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,mEAAmE,OAAO,eAAe,YAAY,IAAG,CAAI,EAC/yC,EAEc", "debugId": "478614E6E2AB3AC864756E2164756E21", "names": [] }