forked from block65/react-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
import { clsx } from 'clsx'; | ||
import type { FC, SVGAttributes } from 'react'; | ||
import { forwardRef, SVGAttributes } from 'react'; | ||
import { iconClassName } from './icons.css.js'; | ||
|
||
export const InfoIcon: FC<SVGAttributes<SVGElement>> = ({ | ||
className, | ||
...props | ||
}) => ( | ||
<svg | ||
fill="currentColor" | ||
strokeWidth="0" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="2 2 20 20" | ||
className={clsx([iconClassName, className])} | ||
{...props} | ||
> | ||
<path d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"></path>{' '} | ||
<path d="M11 11h2v6h-2zm0-4h2v2h-2z"></path> | ||
</svg> | ||
export const InfoIcon = forwardRef<SVGSVGElement, SVGAttributes<SVGSVGElement>>( | ||
({ className, ...props }, ref) => ( | ||
<svg | ||
ref={ref} | ||
fill="currentColor" | ||
strokeWidth="0" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="2 2 20 20" | ||
className={clsx([iconClassName, className])} | ||
{...props} | ||
> | ||
<path d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"></path>{' '} | ||
<path d="M11 11h2v6h-2zm0-4h2v2h-2z"></path> | ||
</svg> | ||
), | ||
); | ||
|
||
export const HelpIcon: FC<SVGAttributes<SVGElement>> = ({ | ||
className, | ||
...props | ||
}) => ( | ||
<svg | ||
fill="currentColor" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="2 2 20 20" | ||
className={clsx([iconClassName, className])} | ||
{...props} | ||
> | ||
<path fill="none" d="M0 0h24v24H0z"></path> | ||
<path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 0 0-1 1v2h2v-1.14A3.993 3.993 0 0 0 16 10zm-3 6h-2v2h2v-2z"></path>{' '} | ||
</svg> | ||
export const HelpIcon = forwardRef<SVGSVGElement, SVGAttributes<SVGSVGElement>>( | ||
({ className, ...props }, ref) => ( | ||
<svg | ||
ref={ref} | ||
fill="currentColor" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="2 2 20 20" | ||
className={clsx([iconClassName, className])} | ||
{...props} | ||
> | ||
<path fill="none" d="M0 0h24v24H0z"></path> | ||
<path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 0 0-1 1v2h2v-1.14A3.993 3.993 0 0 0 16 10zm-3 6h-2v2h2v-2z"></path>{' '} | ||
</svg> | ||
), | ||
); |