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.24 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconTimeslot/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 IconTimeslot: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"timeslot, time, clock\" maskId=\"square-outlined-radius-0-stroke-2-IconTimeslot\"><path d=\"M13 3.05493C12.6717 3.01863 12.338 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 11.662 20.9814 11.3283 20.9451 11\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 6V12H17\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M16.3695 4.06776C16.1581 4.578 15.5731 4.82031 15.0629 4.60896C14.5526 4.39761 14.3103 3.81264 14.5217 3.30239C14.733 2.79215 15.318 2.54985 15.8283 2.7612C16.3385 2.97255 16.5808 3.55751 16.3695 4.06776Z\" fill=\"currentColor\"/><path d=\"M19.0743 6.34309C18.6838 6.73362 18.0506 6.73362 17.6601 6.34309C17.2696 5.95257 17.2696 5.3194 17.6601 4.92888C18.0506 4.53836 18.6838 4.53836 19.0743 4.92888C19.4648 5.3194 19.4648 5.95257 19.0743 6.34309Z\" fill=\"currentColor\"/><path d=\"M20.7186 9.55611C20.2066 9.763 19.6237 9.5156 19.4168 9.00353C19.2099 8.49146 19.4573 7.90863 19.9694 7.70174C20.4815 7.49485 21.0643 7.74225 21.2712 8.25432C21.4781 8.76639 21.2307 9.34922 20.7186 9.55611Z\" fill=\"currentColor\"/></CentralIconBase>;\n});\n\nexport default IconTimeslot;\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,EAAiE,EAAM,KAAK,CAAC,IAAU,CAClG,OAAO,gBAA8kC,EAA9kC,IAAqB,EAAO,UAAU,wBAAwB,OAAO,kDAAiD,gBAAC,OAAD,CAAM,EAAE,iKAAiK,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,cAAc,OAAO,eAAe,YAAY,IAAG,EAAE,gBAAC,OAAD,CAAM,EAAE,+MAA+M,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,kNAAkN,KAAK,eAAc,EAAE,gBAAC,OAAD,CAAM,EAAE,iNAAiN,KAAK,eAAc,CAAI,EACtlC,EAEc", "debugId": "D11E52DE2E01100664756E2164756E21", "names": [] }