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 3.89 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconPencilSparkle/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 IconPencilSparkle: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"pencil-sparkle, magic pencil, magic brush\" maskId=\"square-outlined-radius-0-stroke-2-IconPencilSparkle\"><path d=\"M9.5 2L8.66667 3.66667L7 4.5L8.66667 5.33333L9.5 7L10.3333 5.33333L12 4.5L10.3333 3.66667L9.5 2Z\" fill=\"currentColor\"/><path d=\"M5.5 5L4.33333 7.33333L2 8.5L4.33333 9.66667L5.5 12L6.66667 9.66667L9 8.5L6.66667 7.33333L5.5 5Z\" fill=\"currentColor\"/><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M7.10693 13.0169L19.0475 2.63379L22.3665 5.95277L11.983 17.8938C11.7835 20.1947 9.85259 22 7.5 22H3V17.5C3 15.1472 4.80572 13.2161 7.10693 13.0169ZM11.4886 15.4145C11.0633 14.6028 10.3976 13.937 9.58596 13.5116L18.9523 5.36699L19.6333 6.048L11.4886 15.4145ZM7.5 15C6.11929 15 5 16.1193 5 17.5V20H7.5C8.88071 20 10 18.8807 10 17.5C10 16.1193 8.88071 15 7.5 15Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconPencilSparkle;\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,gBAA8zB,EAA9zB,IAAqB,EAAO,UAAU,4CAA4C,OAAO,uDAAsD,gBAAC,OAAD,CAAM,EAAE,mGAAmG,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,mGAAmG,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,0WAA0W,KAAK,eAAc,CAAI,EACt0B,EAEc", "debugId": "8D0540220C30BCE864756E2164756E21", "names": [] }