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/IconSparklesThree/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 IconSparklesThree: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"sparkles-three, ai 3 stars, sparkles, ✨\" maskId=\"square-outlined-radius-0-stroke-2-IconSparklesThree\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2 9V8C3.15424 8 3.87122 7.74459 4.3079 7.30791C4.74459 6.87122 5 6.15424 5 5H6C6 6.15424 6.25541 6.87122 6.69209 7.30791C7.12878 7.74459 7.84576 8 9 8V9C7.84576 9 7.12878 9.25541 6.69209 9.69209C6.25541 10.1288 6 10.8458 6 12H5C5 10.8458 4.74459 10.1288 4.3079 9.69209C3.87122 9.25541 3.15424 9 2 9Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8 4V3C8.80702 3 9.27399 2.82098 9.54749 2.54749C9.82098 2.27399 10 1.80702 10 1H11C11 1.80702 11.179 2.27399 11.4525 2.54749C11.726 2.82098 12.193 3 13 3V4C12.193 4 11.726 4.17902 11.4525 4.45251C11.179 4.72601 11 5.19298 11 6H10C10 5.19298 9.82098 4.72601 9.54749 4.45251C9.27399 4.17902 8.80702 4 8 4Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M21 15C15.4444 15 13 17.4444 13 23C13 17.4444 10.5556 15 5 15C10.5556 15 13 12.5556 13 7C13 12.5556 15.4444 15 21 15Z\" stroke=\"currentColor\" strokeWidth=\"2\"/></CentralIconBase>;\n});\n\nexport default IconSparklesThree;\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,EAAsE,EAAM,KAAK,CAAC,IAAU,CACvG,OAAO,gBAAmkC,EAAnkC,IAAqB,EAAO,UAAU,0CAAyC,OAAO,uDAAsD,gBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,+SAA+S,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,mTAAmT,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,wHAAwH,OAAO,eAAe,YAAY,IAAG,CAAI,EAC3kC,EAEc", "debugId": "6A59807C2A2FE90264756E2164756E21", "names": [] }