@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconPlus from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function AddNewIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { | |||
const theme = useTheme(); | |||
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { GitBranchIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconGitBranch from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const BranchIcon = OcticonHoc(GitBranchIcon, 'BranchIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconBug from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function BugIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { CalendarIcon as Octicon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconCalendar from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const CalendarIcon = OcticonHoc(Octicon); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconCheck from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function CheckIcon({ fill = 'iconCheck', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconChevronDown from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function ChevronDownIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { ClockIcon as OcticonClockIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconClock from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const ClockIcon = OcticonHoc(OcticonClockIcon, 'ClockIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { XIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconX from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const CloseIcon = OcticonHoc(XIcon, 'CloseIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconCodeSmell from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function CodeSmellIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconCollapse from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function CollapseIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { CommentIcon as OcticonCommentIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconComment from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const CommentIcon = OcticonHoc(OcticonCommentIcon, 'CommentIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { CopyIcon as OcticonCopyIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconCopy from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const CopyIcon = OcticonHoc(OcticonCopyIcon, 'CopyIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { FileDirectoryIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconDirectory from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const DirectoryIcon = OcticonHoc(FileDirectoryIcon, 'DirectoryIcon'); |
@@ -21,4 +21,10 @@ | |||
import { DotFillIcon as OcticonDotFillIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconDot with the isFilled prop from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const DotFillIcon = OcticonHoc(OcticonDotFillIcon, 'DotFillIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconExpand from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function ExpandIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { FileIcon as OcticonFileIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconFile from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const FileIcon = OcticonHoc(OcticonFileIcon, 'FileIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { FilterIcon as Icon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconFilter from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const FilterIcon = OcticonHoc(Icon, 'FilterIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconError from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function FlagErrorIcon({ fill = 'iconError', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconInfo from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function FlagInfoIcon({ fill = 'iconInfo', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconCheckCircle from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function FlagSuccessIcon({ fill = 'iconSuccess', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconWarning from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function FlagWarningIcon({ fill = 'iconWarning', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( | |||
@@ -32,3 +39,4 @@ export function FlagWarningIcon({ fill = 'iconWarning', ...iconProps }: IconProp | |||
</CustomIcon> | |||
); | |||
} | |||
FlagWarningIcon.displayName = 'FlagWarningIcon'; |
@@ -17,6 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { Fragment } from 'react'; | |||
import { themeColor, themeContrast } from '../../helpers/theme'; | |||
@@ -26,6 +27,12 @@ type Props = IconProps & { | |||
raised?: boolean; | |||
}; | |||
/** @deprecated Use IconQuestionMark from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function HelperHintIcon({ raised, ...iconProps }: Props) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconHome with the isFilled prop from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function HomeFillIcon({ fill = 'iconFavorite', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { HomeIcon as OcticonHomeIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconHome from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const HomeIcon = OcticonHoc(OcticonHomeIcon, 'HomeIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconInheritance from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function InheritanceIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconDot with the isFilled prop from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function IssueLocationIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { LinkIcon as Icon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconLink from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const LinkIcon = OcticonHoc(Icon, 'LinkIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { LockIcon as OcticonLockIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconLock from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const LockIcon = OcticonHoc(OcticonLockIcon, 'LockIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconBranch from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function MainBranchIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconQuestionMark from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function MenuHelpIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import styled from '@emotion/styled'; | |||
import { KebabHorizontalIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconMoreVertical from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const MenuIcon = styled(OcticonHoc(KebabHorizontalIcon, 'MenuIcon'))` | |||
transform: rotate(90deg); | |||
`; |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconSearch from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function MenuSearchIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconDash from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function MinimizeIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { | |||
const theme = useTheme(); | |||
return ( |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { LinkExternalIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconLinkExternal from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const OpenNewTabIcon = OcticonHoc(LinkExternalIcon, 'OpenNewTabIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { PinIcon as OcticonPinIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconPin from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const PinIcon = OcticonHoc(OcticonPinIcon, 'PinIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { ProjectIcon as OcticonProjectIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconProject from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const ProjectIcon = OcticonHoc(OcticonProjectIcon, 'ProjectIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { GitPullRequestIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconPullrequest from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const PullRequestIcon = OcticonHoc(GitPullRequestIcon, 'PullRequestIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { VerifiedIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconRecommended from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const RecommendedIcon = OcticonHoc(VerifiedIcon, 'RecommendedIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { SearchIcon as OcticonSearchIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconSearch from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const SearchIcon = OcticonHoc(OcticonSearchIcon, 'SearchIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconSecurityFinding from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function SecurityFindingIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconSecurityFinding from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function SecurityHotspotIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor, themeContrast } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconInfo from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function SeverityInfoIcon({ fill = 'iconSeverityInfo', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,13 +17,20 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import styled from '@emotion/styled'; | |||
import { StarFillIcon as OcticonStarFillIcon } from '@primer/octicons-react'; | |||
import { themeColor } from '../../helpers'; | |||
import { OcticonHoc } from './Icon'; | |||
// provide a default fill color that is different from the default icon | |||
/** @deprecated Use IconStar with the isFilled prop from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const StarFillIcon = styled(OcticonHoc(OcticonStarFillIcon))` | |||
// provide a default fill color that is different from the default icon | |||
fill: ${themeColor('iconFavorite')}; | |||
`; | |||
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { StarIcon as OcticonStarIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconStar from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const StarIcon = OcticonHoc(OcticonStarIcon, 'StarIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconStatusConfirmed from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function StatusConfirmedIcon({ fill = 'iconStatus', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconStatusOpen from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function StatusOpenIcon({ fill = 'iconStatus', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconStatusReopened from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function StatusReopenedIcon({ fill = 'iconStatus', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor, themeContrast } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconStatusResolved from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function StatusResolvedIcon({ fill = 'iconStatusResolved', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconFileCode from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function TestFileIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||
const fillColor = themeColor(fill)({ theme }); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { FoldDownIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconUnfoldDown from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const UnfoldDownIcon = OcticonHoc(FoldDownIcon, 'UnfoldDownIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { UnfoldIcon as OcticonUnfoldIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconUnfold from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const UnfoldIcon = OcticonHoc(OcticonUnfoldIcon, 'UnfoldIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { FoldUpIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconUnfoldUp from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const UnfoldUpIcon = OcticonHoc(FoldUpIcon, 'UnfoldUpIcon'); |
@@ -17,7 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { PeopleIcon } from '@primer/octicons-react'; | |||
import { OcticonHoc } from './Icon'; | |||
/** @deprecated Use IconPeople from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export const UserGroupIcon = OcticonHoc(PeopleIcon, 'UserGroupIcon'); |
@@ -17,10 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import { useTheme } from '@emotion/react'; | |||
import { themeColor } from '../../helpers/theme'; | |||
import { CustomIcon, IconProps } from './Icon'; | |||
/** @deprecated Use IconVulnerability from Echoes instead, if possible. | |||
* | |||
* Be aware that the full icon set is not yet available in Echoes, and therefore you may not be able | |||
* to replace all of the icons yet. There are situations where it is OK to ignore this deprecation | |||
* warning when revisiting old code, but all new code should use the icons from Echoes. | |||
*/ | |||
export function VulnerabilityIcon({ fill = 'currentColor', ...iconProps }: IconProps) { | |||
const theme = useTheme(); | |||