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.75 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconElements/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 IconElements: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"elements, materials, products, tools, teams, skills, circles\" maskId=\"square-outlined-radius-0-stroke-2-IconElements\"><path d=\"M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M14.5003 16.3298C15.4569 15.7775 16.6801 16.1053 17.2324 17.0619C17.7847 18.0184 17.4569 19.2416 16.5003 19.7939C15.5437 20.3462 14.3206 20.0184 13.7683 19.0619C13.216 18.1053 13.5437 16.8821 14.5003 16.3298Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M7.50033 4.20578C8.45692 3.6535 9.6801 3.98125 10.2324 4.93783C10.7847 5.89442 10.4569 7.1176 9.50033 7.66988C8.54375 8.22217 7.32057 7.89442 6.76828 6.93783C6.216 5.98125 6.54375 4.75807 7.50033 4.20578Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M7.50033 19.7949C6.54375 19.2426 6.216 18.0194 6.76828 17.0628C7.32057 16.1062 8.54375 15.7785 9.50033 16.3308C10.4569 16.8831 10.7847 18.1062 10.2324 19.0628C9.6801 20.0194 8.45692 20.3472 7.50033 19.7949Z\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M14.5003 7.66988C13.5437 7.1176 13.216 5.89442 13.7683 4.93783C14.3206 3.98125 15.5437 3.6535 16.5003 4.20578C17.4569 4.75807 17.7847 5.98125 17.2324 6.93783C16.6801 7.89442 15.4569 8.22217 14.5003 7.66988Z\" stroke=\"currentColor\" strokeWidth=\"2\"/></CentralIconBase>;\n});\n\nexport default IconElements;\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,gBAq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