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.22 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconPeopleGear/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 IconPeopleGear: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"people-gear, user-settings, preferences, person\" maskId=\"square-outlined-radius-0-stroke-2-IconPeopleGear\"><path d=\"M15.5 6.5C15.5 8.433 13.933 10 12 10C10.067 10 8.5 8.433 8.5 6.5C8.5 4.567 10.067 3 12 3C13.933 3 15.5 4.567 15.5 6.5Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 13C7.8098 13 4.86894 16.0754 4.5 20H12\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 20H4.5C4.86894 16.0754 7.8098 13 12 13C12.3419 13 12.6755 13.0205 13 13.0602\" stroke=\"currentColor\" strokeWidth=\"2\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M19.5576 14.6816L21.2246 14.2051L22.2871 16.0449L21.041 17.249L22.2881 18.4551L21.2256 20.2949L19.5576 19.8174L19.1377 21.5H17.0127L16.5918 19.8184L14.9258 20.2949L13.8633 18.4551L15.1094 17.249L13.8643 16.0449L14.9268 14.2051L16.5918 14.6807L17.0127 13H19.1377L19.5576 14.6816ZM18.0742 15.75C17.2458 15.75 16.5742 16.4216 16.5742 17.25C16.5742 18.0784 17.2458 18.75 18.0742 18.75C18.9026 18.7499 19.5742 18.0784 19.5742 17.25C19.5742 16.4216 18.9026 15.7501 18.0742 15.75Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconPeopleGear;\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,EAAmE,EAAM,KAAK,CAAC,IAAU,CACpG,OAAO,gBAAyjC,EAAzjC,IAAqB,EAAO,UAAU,kDAAkD,OAAO,oDAAmD,gBAAC,OAAD,CAAM,EAAE,yHAAyH,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,6CAA6C,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,mFAAmF,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,4dAA4d,KAAK,eAAc,CAAI,EACjkC,EAEc", "debugId": "4DB5F758E860292164756E2164756E21", "names": [] }