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.2 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconVignette/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 IconVignette: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"vignette\" maskId=\"square-outlined-radius-0-stroke-2-IconVignette\"><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=\"M13 7.5C13 8.05228 12.5523 8.5 12 8.5C11.4477 8.5 11 8.05228 11 7.5C11 6.94772 11.4477 6.5 12 6.5C12.5523 6.5 13 6.94772 13 7.5Z\" fill=\"currentColor\"/><path d=\"M17.5 12C17.5 12.5523 17.0523 13 16.5 13C15.9477 13 15.5 12.5523 15.5 12C15.5 11.4477 15.9477 11 16.5 11C17.0523 11 17.5 11.4477 17.5 12Z\" fill=\"currentColor\"/><path d=\"M8.5 12C8.5 12.5523 8.05228 13 7.5 13C6.94772 13 6.5 12.5523 6.5 12C6.5 11.4477 6.94772 11 7.5 11C8.05228 11 8.5 11.4477 8.5 12Z\" fill=\"currentColor\"/><path d=\"M13 16.5C13 17.0523 12.5523 17.5 12 17.5C11.4477 17.5 11 17.0523 11 16.5C11 15.9477 11.4477 15.5 12 15.5C12.5523 15.5 13 15.9477 13 16.5Z\" fill=\"currentColor\"/><path d=\"M9.52513 8.11091C9.91565 8.50144 9.91565 9.1346 9.52513 9.52513C9.1346 9.91565 8.50144 9.91565 8.11091 9.52513C7.72039 9.1346 7.72039 8.50144 8.11091 8.11091C8.50144 7.72039 9.1346 7.72039 9.52513 8.11091Z\" fill=\"currentColor\"/><path d=\"M15.8891 8.11091C16.2796 8.50144 16.2796 9.1346 15.8891 9.52513C15.4986 9.91565 14.8654 9.91565 14.4749 9.52513C14.0843 9.1346 14.0843 8.50144 14.4749 8.11091C14.8654 7.72039 15.4986 7.72039 15.8891 8.11091Z\" fill=\"currentColor\"/><path d=\"M9.52513 14.4749C9.91565 14.8654 9.91565 15.4986 9.52513 15.8891C9.1346 16.2796 8.50144 16.2796 8.11091 15.8891C7.72039 15.4986 7.72039 14.8654 8.11091 14.4749C8.50144 14.0843 9.1346 14.0843 9.52513 14.4749Z\" fill=\"currentColor\"/><path d=\"M15.8891 14.4749C16.2796 14.8654 16.2796 15.4986 15.8891 15.8891C15.4986 16.2796 14.8654 16.2796 14.4749 15.8891C14.0843 15.4986 14.0843 14.8654 14.4749 14.4749C14.8654 14.0843 15.4986 14.0843 15.8891 14.4749Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconVignette;\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,gBAA41D,EAA51D,IAAqB,EAAO,UAAU,WAAW,OAAO,kDAAiD,gBAAC,OAAD,CAAM,EAAE,oHAAoH,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,mIAAmI,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,4IAA4I,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,mIAAmI,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,4IAA4I,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,gNAAgN,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,kNAAkN,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,kNAAkN,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,oNAAoN,KAAK,eAAc,CAAI,EACp2D,EAEc", "debugId": "EB01D5F1B372F89964756E2164756E21", "names": [] }