UNPKG

@central-icons-react/square-outlined-radius-0-stroke-1.5

Version:

A collection of square outlined React icons with 0px radius and 1.5px stroke width, designed for use in React applications.

1 lines 2.59 kB
{"version":3,"sources":["../src/IconColorSwatch/index.tsx","../src/CentralIconBase/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { CentralIconBase, type CentralIconBaseProps } from \"../CentralIconBase\";\n\nexport const IconColorSwatch: React.FC<CentralIconBaseProps> = (props) => {\n return (\n <CentralIconBase {...props} ariaLabel=\"color-swatch, palette, colours\">\n <path\n d=\"M11.614 18.875L18.1813 7.5M9.87535 20.6136L21.7832 13.7386L18.1813 7.5M12.25 3.3651L18.489 6.96716L18.1813 7.5M12.25 3.3651V2.75H2.75V16.5C2.75 19.1234 4.87665 21.25 7.5 21.25C10.1234 21.25 12.25 19.1234 12.25 16.5V3.3651ZM9.25 16.5C9.25 17.4665 8.4665 18.25 7.5 18.25C6.5335 18.25 5.75 17.4665 5.75 16.5C5.75 15.5335 6.5335 14.75 7.5 14.75C8.4665 14.75 9.25 15.5335 9.25 16.5Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n />\n </CentralIconBase>\n );\n};\n\nexport default IconColorSwatch;\n","import React from \"react\";\nimport type { SVGProps } from \"react\";\n\nexport type CentralIconBaseProps = {\n size?: string | number;\n ariaHidden?: boolean;\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 ...props\n}) => {\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 {children}\n </svg>\n );\n};\n"],"mappings":"AAAA,OAAOA,MAAW,QCAlB,OAAOC,MAAW,QAQX,IAAMC,EAET,CAAC,CACH,SAAAC,EACA,KAAAC,EAAO,GACP,UAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,MAAAC,EACA,GAAGC,CACL,IAEIR,EAAA,cAAC,OACE,GAAGQ,EACJ,cAAaF,EACb,KAAMA,EAAa,OAAY,MAC/B,MAAO,OAAOH,GAAS,SAAW,GAAGA,CAAI,KAAOA,EAChD,OAAQ,OAAOA,GAAS,SAAW,GAAGA,CAAI,KAAOA,EACjD,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,MAAO,CAAE,MAAAE,EAAO,GAAGE,CAAM,GAExBH,GAAa,CAACE,GAAcN,EAAA,cAAC,aAAOI,CAAU,EAC9CF,CACH,ED9BG,IAAMO,EAAmDC,GAE5DC,EAAA,cAACC,EAAA,CAAiB,GAAGF,EAAO,UAAU,kCACpCC,EAAA,cAAC,QACC,EAAE,4XACF,OAAO,eACP,YAAY,MACd,CACF,EAIGE,EAAQJ","names":["React","React","CentralIconBase","children","size","ariaLabel","color","ariaHidden","style","props","IconColorSwatch","props","React","CentralIconBase","IconColorSwatch_default"]}