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.84 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconClaw/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 IconClaw: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"claw, openclaw, ai, qclaw\" maskId=\"square-outlined-radius-0-stroke-2-IconClaw\"><path d=\"M11.0002 14L9.00024 13.5L8.50024 12L7.00024 11.5L6.77596 10.6029C6.61391 9.95471 6.03153 9.5 5.3634 9.5C4.71384 9.5 4.14385 9.9338 4.08407 10.5806C4.0149 11.3289 4.02441 12.3802 4.38139 13.4545C5.09694 15.6081 7.95578 18 7.95578 18\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M9.68704 20.9997H17.8413C22.9544 14.0553 19.2469 0.40281 10.0002 3.49993L10.8619 5.56478L10.4799 6.82964L11.6057 7.75901L11.1261 9.7206L12.0854 11.1917L11.6057 14.6245L8.08252 17.9026C8.08252 19.9675 9.68704 20.9997 9.68704 20.9997Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M6.3 2H5.7L4.95 3.95L3 4.7V5.3L4.95 6.05L5.7 8H6.3L7.05 6.05L9 5.3V4.7L7.05 3.95L6.3 2Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconClaw;\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,EAA6D,EAAM,KAAK,CAAC,IAAU,CAC9F,OAAO,gBAAkyB,EAAlyB,IAAqB,EAAO,UAAU,4BAA4B,OAAO,8CAA6C,gBAAC,OAAD,CAAM,EAAE,0OAA0O,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,2OAA2O,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,0FAA0F,KAAK,eAAc,CAAI,EAC1yB,EAEc", "debugId": "CF4FE7C8AD44E1FD64756E2164756E21", "names": [] }