|
| 1 | +// https://github.com/radix-ui/icons |
| 2 | + |
| 3 | +// MIT License |
| 4 | +// |
| 5 | +// Copyright (c) 2020 Modulz |
| 6 | +// |
| 7 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | +// of this software and associated documentation files (the "Software"), to deal |
| 9 | +// in the Software without restriction, including without limitation the rights |
| 10 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 11 | +// copies of the Software, and to permit persons to whom the Software is |
| 12 | +// furnished to do so, subject to the following conditions: |
| 13 | +// |
| 14 | +// The above copyright notice and this permission notice shall be included in all |
| 15 | +// copies or substantial portions of the Software. |
| 16 | +// |
| 17 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 23 | +// SOFTWARE. |
| 24 | + |
| 25 | +import React, { memo } from 'react' |
| 26 | + |
| 27 | +type IconProps = React.SVGProps<SVGSVGElement> |
| 28 | + |
| 29 | +const defaultProps: IconProps = { |
| 30 | + width: '15', |
| 31 | + height: '15', |
| 32 | + viewBox: '0 0 15 15', |
| 33 | + fill: 'none', |
| 34 | + xmlns: 'http://www.w3.org/2000/svg', |
| 35 | +} |
| 36 | + |
| 37 | +export const EnterFullScreenIcon = memo( |
| 38 | + ({ color = 'currentColor', ...props }: IconProps) => { |
| 39 | + return ( |
| 40 | + <svg {...defaultProps} {...props}> |
| 41 | + <path |
| 42 | + d="M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z" |
| 43 | + fill={color} |
| 44 | + fillRule="evenodd" |
| 45 | + clipRule="evenodd" |
| 46 | + /> |
| 47 | + </svg> |
| 48 | + ) |
| 49 | + } |
| 50 | +) |
| 51 | + |
| 52 | +export const ExternalLinkIcon = memo( |
| 53 | + ({ color = 'currentColor', ...props }: IconProps) => { |
| 54 | + return ( |
| 55 | + <svg {...defaultProps} {...props}> |
| 56 | + <path |
| 57 | + d="M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z" |
| 58 | + fill={color} |
| 59 | + fillRule="evenodd" |
| 60 | + clipRule="evenodd" |
| 61 | + /> |
| 62 | + </svg> |
| 63 | + ) |
| 64 | + } |
| 65 | +) |
| 66 | + |
| 67 | +export const CubeIcon = memo( |
| 68 | + ({ color = 'currentColor', ...props }: IconProps) => { |
| 69 | + return ( |
| 70 | + <svg {...defaultProps} {...props}> |
| 71 | + <path |
| 72 | + d="M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z" |
| 73 | + fill={color} |
| 74 | + fillRule="evenodd" |
| 75 | + clipRule="evenodd" |
| 76 | + /> |
| 77 | + </svg> |
| 78 | + ) |
| 79 | + } |
| 80 | +) |
0 commit comments