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.21 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconDecimalNumberComma/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 IconDecimalNumberComma: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"decimal-number-comma\" maskId=\"square-outlined-radius-0-stroke-2-IconDecimalNumberComma\"><path d=\"M14.1879 17.3301V16.0557L17.6596 12.5107C19.0951 11.0605 19.4979 10.5259 19.4979 9.71289V9.69092C19.4979 8.7168 18.8314 8.01367 17.7328 8.01367C16.6122 8.01367 15.8578 8.75342 15.8578 9.84473L15.8505 9.87402L14.0927 9.8667L14.0854 9.84473C14.0854 7.87451 15.6234 6.49756 17.828 6.49756C19.8861 6.49756 21.3656 7.75 21.3656 9.52979V9.55176C21.3656 10.7529 20.787 11.7051 18.8607 13.5581L16.744 15.6089V15.7627H21.5268V17.3301H14.1879Z\" fill=\"currentColor\"/><path d=\"M10.4221 20.1206L11.0593 15.7188H12.9416L11.6672 20.1206H10.4221Z\" fill=\"currentColor\"/><path d=\"M6.4585 17.5938C3.94629 17.5938 2.4375 15.4624 2.4375 12.0493V12.0347C2.4375 8.62158 3.94629 6.49756 6.4585 6.49756C8.9707 6.49756 10.4941 8.62158 10.4941 12.0347V12.0493C10.4941 15.4624 8.9707 17.5938 6.4585 17.5938ZM6.4585 16.063C7.80615 16.063 8.58984 14.5542 8.58984 12.0493V12.0347C8.58984 9.52979 7.80615 8.03564 6.4585 8.03564C5.11084 8.03564 4.3418 9.52979 4.3418 12.0347V12.0493C4.3418 14.5542 5.11084 16.063 6.4585 16.063Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconDecimalNumberComma;\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,EAA2E,EAAM,KAAK,CAAC,IAAU,CAC5G,OAAO,gBAAmoC,EAAnoC,IAAqB,EAAO,UAAU,uBAAuB,OAAO,4DAA2D,gBAAC,OAAD,CAAM,EAAE,obAAob,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,oEAAoE,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,mbAAmb,KAAK,eAAc,CAAI,EAC3oC,EAEc", "debugId": "3DBE1CA8386F8BD064756E2164756E21", "names": [] }