diff --git a/packages/icons/12/add-icon.tsx b/packages/icons/12/add-icon.tsx index 799aa7aa..724ec075 100644 --- a/packages/icons/12/add-icon.tsx +++ b/packages/icons/12/add-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgAddIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddReactionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/alert-icon.tsx b/packages/icons/12/alert-icon.tsx index d2e83956..8c6e4b56 100644 --- a/packages/icons/12/alert-icon.tsx +++ b/packages/icons/12/alert-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgAlertIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAlertIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/arrow-down-icon.tsx b/packages/icons/12/arrow-down-icon.tsx index 83c25b5a..0a069d14 100644 --- a/packages/icons/12/arrow-down-icon.tsx +++ b/packages/icons/12/arrow-down-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgArrowDownIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowUpIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBlockIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/camera-icon.tsx b/packages/icons/12/camera-icon.tsx index 21460e80..b16bfe14 100644 --- a/packages/icons/12/camera-icon.tsx +++ b/packages/icons/12/camera-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCameraIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCameraIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/cards-icon.tsx b/packages/icons/12/cards-icon.tsx index 469b6ef9..d5ac4198 100644 --- a/packages/icons/12/cards-icon.tsx +++ b/packages/icons/12/cards-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCardsIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCardsIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/check-icon.tsx b/packages/icons/12/check-icon.tsx index 86322ba5..666cb4fe 100644 --- a/packages/icons/12/check-icon.tsx +++ b/packages/icons/12/check-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCheckIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCheckIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/check-large-icon.tsx b/packages/icons/12/check-large-icon.tsx index 46bc70f6..29abde01 100644 --- a/packages/icons/12/check-large-icon.tsx +++ b/packages/icons/12/check-large-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCheckLargeIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCheckLargeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/chevron-bottom-icon.tsx b/packages/icons/12/chevron-bottom-icon.tsx index 9b539de9..43f76d77 100644 --- a/packages/icons/12/chevron-bottom-icon.tsx +++ b/packages/icons/12/chevron-bottom-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronBottomIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronBottomIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/chevron-left-icon.tsx b/packages/icons/12/chevron-left-icon.tsx index 5549759c..5f2d1c9a 100644 --- a/packages/icons/12/chevron-left-icon.tsx +++ b/packages/icons/12/chevron-left-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronLeftIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/chevron-right-icon.tsx b/packages/icons/12/chevron-right-icon.tsx index 9c0dfa45..9fe912ad 100644 --- a/packages/icons/12/chevron-right-icon.tsx +++ b/packages/icons/12/chevron-right-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronRightIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/chevron-top-icon.tsx b/packages/icons/12/chevron-top-icon.tsx index e7038e26..0f3554ca 100644 --- a/packages/icons/12/chevron-top-icon.tsx +++ b/packages/icons/12/chevron-top-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronTopIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronTopIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/close-icon.tsx b/packages/icons/12/close-icon.tsx index f5249d12..781ce478 100644 --- a/packages/icons/12/close-icon.tsx +++ b/packages/icons/12/close-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCloseIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCloseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgColorIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCommunitiesIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgContactIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + - + ) diff --git a/packages/icons/12/copy-icon.tsx b/packages/icons/12/copy-icon.tsx index b0181551..84157c41 100644 --- a/packages/icons/12/copy-icon.tsx +++ b/packages/icons/12/copy-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCopyIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCopyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDeliveredIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDropdownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/edit-icon.tsx b/packages/icons/12/edit-icon.tsx index 3338412c..692659a9 100644 --- a/packages/icons/12/edit-icon.tsx +++ b/packages/icons/12/edit-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgEditIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgEditIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGasIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHoldIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + diff --git a/packages/icons/12/info-1-icon.tsx b/packages/icons/12/info-1-icon.tsx index fdad2f19..0456317a 100644 --- a/packages/icons/12/info-1-icon.tsx +++ b/packages/icons/12/info-1-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgInfo1Icon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInfo1Icon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInfoIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) diff --git a/packages/icons/12/jump-to-icon.tsx b/packages/icons/12/jump-to-icon.tsx index aeba9e70..613e496a 100644 --- a/packages/icons/12/jump-to-icon.tsx +++ b/packages/icons/12/jump-to-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgJumpToIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgJumpToIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLightningIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgListIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/loading-icon.tsx b/packages/icons/12/loading-icon.tsx index f956bf41..74ecaa50 100644 --- a/packages/icons/12/loading-icon.tsx +++ b/packages/icons/12/loading-icon.tsx @@ -1,3 +1,4 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, @@ -7,20 +8,23 @@ import { Stop, Svg, } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgLoadingIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLoadingIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMentionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/more-icon.tsx b/packages/icons/12/more-icon.tsx index 8bbd7fa1..5449691f 100644 --- a/packages/icons/12/more-icon.tsx +++ b/packages/icons/12/more-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgMoreIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMoreIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/negative-icon.tsx b/packages/icons/12/negative-icon.tsx index 710febe1..870b5708 100644 --- a/packages/icons/12/negative-icon.tsx +++ b/packages/icons/12/negative-icon.tsx @@ -1,20 +1,24 @@ +import { useTheme } from '@tamagui/core' import { Circle, ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgNegativeIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNegativeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + diff --git a/packages/icons/12/notification-icon.tsx b/packages/icons/12/notification-icon.tsx index e7894dde..7972ccc3 100644 --- a/packages/icons/12/notification-icon.tsx +++ b/packages/icons/12/notification-icon.tsx @@ -1,20 +1,24 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgNotificationIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNotificationIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/12/pause-icon.tsx b/packages/icons/12/pause-icon.tsx index 0ec5cf00..955c7cc3 100644 --- a/packages/icons/12/pause-icon.tsx +++ b/packages/icons/12/pause-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPauseIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPauseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/pending-icon.tsx b/packages/icons/12/pending-icon.tsx index 1d0aa503..9c23e39e 100644 --- a/packages/icons/12/pending-icon.tsx +++ b/packages/icons/12/pending-icon.tsx @@ -1,21 +1,25 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPendingIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPendingIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) diff --git a/packages/icons/12/pick-icon.tsx b/packages/icons/12/pick-icon.tsx index 066701ef..7805e335 100644 --- a/packages/icons/12/pick-icon.tsx +++ b/packages/icons/12/pick-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPickIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPickIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPlaceholderIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPlayIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPositiveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + diff --git a/packages/icons/12/progress-icon.tsx b/packages/icons/12/progress-icon.tsx index 0ab47044..c1fef7fc 100644 --- a/packages/icons/12/progress-icon.tsx +++ b/packages/icons/12/progress-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgProgressIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgProgressIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/pullup-icon.tsx b/packages/icons/12/pullup-icon.tsx index e1fbbfce..0b87ca27 100644 --- a/packages/icons/12/pullup-icon.tsx +++ b/packages/icons/12/pullup-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPullupIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPullupIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRemoveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSearchIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSendMessageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/sent-icon.tsx b/packages/icons/12/sent-icon.tsx index d7e21780..417587b1 100644 --- a/packages/icons/12/sent-icon.tsx +++ b/packages/icons/12/sent-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgSentIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSentIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/timeout-icon.tsx b/packages/icons/12/timeout-icon.tsx index d81761e6..cc645098 100644 --- a/packages/icons/12/timeout-icon.tsx +++ b/packages/icons/12/timeout-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgTimeoutIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgTimeoutIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgTotalMembersIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgTrashIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/12/unlocked-icon.tsx b/packages/icons/12/unlocked-icon.tsx index 25dc7d91..21395c5b 100644 --- a/packages/icons/12/unlocked-icon.tsx +++ b/packages/icons/12/unlocked-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgUnlockedIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnlockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUntrustworthyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) diff --git a/packages/icons/12/verified-1-icon.tsx b/packages/icons/12/verified-1-icon.tsx index 5787723d..2eaa4ee6 100644 --- a/packages/icons/12/verified-1-icon.tsx +++ b/packages/icons/12/verified-1-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { ClipPath, Defs, G, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgVerified1Icon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgVerified1Icon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgVerifiedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) diff --git a/packages/icons/12/whistle-icon.tsx b/packages/icons/12/whistle-icon.tsx index 2f561575..529d4c03 100644 --- a/packages/icons/12/whistle-icon.tsx +++ b/packages/icons/12/whistle-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgWhistleIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgWhistleIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/add-user-icon.tsx b/packages/icons/16/add-user-icon.tsx index 5886ad68..89621c5e 100644 --- a/packages/icons/16/add-user-icon.tsx +++ b/packages/icons/16/add-user-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgAddUserIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddUserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAlertIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/arrow-right-icon.tsx b/packages/icons/16/arrow-right-icon.tsx index ef0d41c8..faf38109 100644 --- a/packages/icons/16/arrow-right-icon.tsx +++ b/packages/icons/16/arrow-right-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgArrowRightIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/calendar-icon.tsx b/packages/icons/16/calendar-icon.tsx index be55f3f4..72583f88 100644 --- a/packages/icons/16/calendar-icon.tsx +++ b/packages/icons/16/calendar-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCalendarIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCalendarIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCheckCircleIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/chevron-down-icon.tsx b/packages/icons/16/chevron-down-icon.tsx index cf7f9b2e..0e4a59b7 100644 --- a/packages/icons/16/chevron-down-icon.tsx +++ b/packages/icons/16/chevron-down-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronDownIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/chevron-left-icon.tsx b/packages/icons/16/chevron-left-icon.tsx index c67e4455..d5708105 100644 --- a/packages/icons/16/chevron-left-icon.tsx +++ b/packages/icons/16/chevron-left-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronLeftIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/chevron-right-icon.tsx b/packages/icons/16/chevron-right-icon.tsx index 2a427956..a59273c2 100644 --- a/packages/icons/16/chevron-right-icon.tsx +++ b/packages/icons/16/chevron-right-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronRightIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/chevron-top-icon.tsx b/packages/icons/16/chevron-top-icon.tsx index bee3b0a4..6de9e185 100644 --- a/packages/icons/16/chevron-top-icon.tsx +++ b/packages/icons/16/chevron-top-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronTopIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronTopIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/close-icon.tsx b/packages/icons/16/close-icon.tsx index 1dfa2331..78aaa00e 100644 --- a/packages/icons/16/close-icon.tsx +++ b/packages/icons/16/close-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCloseIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCloseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgConnectionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgContactBookIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDeleteIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgEmailIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgForwardIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/16/gif-icon.tsx b/packages/icons/16/gif-icon.tsx index 57f2f5b7..5792f8a3 100644 --- a/packages/icons/16/gif-icon.tsx +++ b/packages/icons/16/gif-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgGifIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGifIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGroupIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHistoryIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/16/info-icon.tsx b/packages/icons/16/info-icon.tsx index b15e2f90..436fb517 100644 --- a/packages/icons/16/info-icon.tsx +++ b/packages/icons/16/info-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgInfoIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInfoIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/lightning-icon.tsx b/packages/icons/16/lightning-icon.tsx index 1d9638a6..bd5f6748 100644 --- a/packages/icons/16/lightning-icon.tsx +++ b/packages/icons/16/lightning-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgLightningIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLightningIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMentionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMoreIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/16/mute-icon.tsx b/packages/icons/16/mute-icon.tsx index e93d3617..6d946a06 100644 --- a/packages/icons/16/mute-icon.tsx +++ b/packages/icons/16/mute-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgMuteIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMuteIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNegativeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - - + + ) } diff --git a/packages/icons/16/notification-icon.tsx b/packages/icons/16/notification-icon.tsx index fa1cabd5..31027b50 100644 --- a/packages/icons/16/notification-icon.tsx +++ b/packages/icons/16/notification-icon.tsx @@ -1,20 +1,24 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgNotificationIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNotificationIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/16/pin-icon.tsx b/packages/icons/16/pin-icon.tsx index 957483e9..2d7f70bd 100644 --- a/packages/icons/16/pin-icon.tsx +++ b/packages/icons/16/pin-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPinIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPinIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPlaceholderIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPositiveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - - + + ) } diff --git a/packages/icons/16/privacy-icon.tsx b/packages/icons/16/privacy-icon.tsx index e18f0caf..049aae3c 100644 --- a/packages/icons/16/privacy-icon.tsx +++ b/packages/icons/16/privacy-icon.tsx @@ -1,24 +1,28 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPrivacyIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPrivacyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/16/progress-icon.tsx b/packages/icons/16/progress-icon.tsx index 04a621f0..adc2fc34 100644 --- a/packages/icons/16/progress-icon.tsx +++ b/packages/icons/16/progress-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgProgressIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgProgressIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRemoveUserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSadIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgStickersIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnlockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnmuteIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgWorldIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/account-number-icon.tsx b/packages/icons/20/account-number-icon.tsx index ebf76f5a..1806e18b 100644 --- a/packages/icons/20/account-number-icon.tsx +++ b/packages/icons/20/account-number-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgAccountNumberIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAccountNumberIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgActiveMemberIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgActivityCenterIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddReactionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddSmallIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddTokenIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAddUserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAlertIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/alphabetically-icon.tsx b/packages/icons/20/alphabetically-icon.tsx index 7be725a5..c7c00e74 100644 --- a/packages/icons/20/alphabetically-icon.tsx +++ b/packages/icons/20/alphabetically-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgAlphabeticallyIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAlphabeticallyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAndroidIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAnonymousIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/arrow-down-icon.tsx b/packages/icons/20/arrow-down-icon.tsx index cd641bb6..0f03621e 100644 --- a/packages/icons/20/arrow-down-icon.tsx +++ b/packages/icons/20/arrow-down-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgArrowDownIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgArrowUpIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAttachIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAudioIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAutomaticIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/block-icon.tsx b/packages/icons/20/block-icon.tsx index c09540a8..98bc75d5 100644 --- a/packages/icons/20/block-icon.tsx +++ b/packages/icons/20/block-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgBlockIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBlockIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBoldIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBridgeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBrowserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBulletIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/bullet-list-icon.tsx b/packages/icons/20/bullet-list-icon.tsx index be99f5c3..02d9c5ea 100644 --- a/packages/icons/20/bullet-list-icon.tsx +++ b/packages/icons/20/bullet-list-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgBulletListIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBulletListIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgBuyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCameraIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCardViewIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCentreAlignIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChatkeyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCheckIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevron-down-icon.tsx b/packages/icons/20/chevron-down-icon.tsx index 7660c324..a64df88a 100644 --- a/packages/icons/20/chevron-down-icon.tsx +++ b/packages/icons/20/chevron-down-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronDownIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevron-left-icon.tsx b/packages/icons/20/chevron-left-icon.tsx index 4576ff4d..3e201a80 100644 --- a/packages/icons/20/chevron-left-icon.tsx +++ b/packages/icons/20/chevron-left-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronLeftIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevron-right-icon.tsx b/packages/icons/20/chevron-right-icon.tsx index 44e78add..d217a887 100644 --- a/packages/icons/20/chevron-right-icon.tsx +++ b/packages/icons/20/chevron-right-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronRightIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevron-up-icon.tsx b/packages/icons/20/chevron-up-icon.tsx index 8d61a7b4..bccedaef 100644 --- a/packages/icons/20/chevron-up-icon.tsx +++ b/packages/icons/20/chevron-up-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronUpIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronUpIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevrons-left-icon.tsx b/packages/icons/20/chevrons-left-icon.tsx index 93ac3b92..84a03fb0 100644 --- a/packages/icons/20/chevrons-left-icon.tsx +++ b/packages/icons/20/chevrons-left-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronsLeftIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronsLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/chevrons-right-icon.tsx b/packages/icons/20/chevrons-right-icon.tsx index 502fda06..292105f6 100644 --- a/packages/icons/20/chevrons-right-icon.tsx +++ b/packages/icons/20/chevrons-right-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgChevronsRightIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgChevronsRightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/clear-icon.tsx b/packages/icons/20/clear-icon.tsx index a9613a82..f241c078 100644 --- a/packages/icons/20/clear-icon.tsx +++ b/packages/icons/20/clear-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgClearIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgClearIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCloseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCodeBlockIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCodeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCollapseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/colour-pick-icon.tsx b/packages/icons/20/colour-pick-icon.tsx index 98bf43cc..6bd3c915 100644 --- a/packages/icons/20/colour-pick-icon.tsx +++ b/packages/icons/20/colour-pick-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgColourPickIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgColourPickIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCommunitiesIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgConnectionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgContactBookIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgContactIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { strokeWidth={1.3} strokeLinejoin="round" /> - - + + ) } diff --git a/packages/icons/20/copy-icon.tsx b/packages/icons/20/copy-icon.tsx index 4eaac366..827b706d 100644 --- a/packages/icons/20/copy-icon.tsx +++ b/packages/icons/20/copy-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCopyIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCopyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCorrectIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/crown-icon.tsx b/packages/icons/20/crown-icon.tsx index 9ef791b8..30f388d5 100644 --- a/packages/icons/20/crown-icon.tsx +++ b/packages/icons/20/crown-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgCrownIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCrownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgCustomizeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDarkIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/data-usage-icon.tsx b/packages/icons/20/data-usage-icon.tsx index d89dbc68..945d16fe 100644 --- a/packages/icons/20/data-usage-icon.tsx +++ b/packages/icons/20/data-usage-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgDataUsageIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDataUsageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDeleteIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDesktopIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDownloadIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDropdownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/duration-icon.tsx b/packages/icons/20/duration-icon.tsx index 01fc355d..9018318d 100644 --- a/packages/icons/20/duration-icon.tsx +++ b/packages/icons/20/duration-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgDurationIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgDurationIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgEditIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgEmailIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgExpandIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/external-icon.tsx b/packages/icons/20/external-icon.tsx index 49f6934e..372ed39e 100644 --- a/packages/icons/20/external-icon.tsx +++ b/packages/icons/20/external-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgExternalIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgExternalIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFaceIdIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFavouriteIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFileIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlagIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlashIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlashOffIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlashlightOffIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlashlightOnIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFlipIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/folder-icon.tsx b/packages/icons/20/folder-icon.tsx index c73f8b2f..01ac2a9d 100644 --- a/packages/icons/20/folder-icon.tsx +++ b/packages/icons/20/folder-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgFolderIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFolderIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFormatIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/forward-icon.tsx b/packages/icons/20/forward-icon.tsx index f9411545..cec57315 100644 --- a/packages/icons/20/forward-icon.tsx +++ b/packages/icons/20/forward-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgForwardIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgForwardIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgFriendIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGasIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGifIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgGlobeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHashtag1Icon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHashtagIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHeartIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHelpIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHideIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHistoryIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/hold-icon.tsx b/packages/icons/20/hold-icon.tsx index d0eb0431..62fc875e 100644 --- a/packages/icons/20/hold-icon.tsx +++ b/packages/icons/20/hold-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgHoldIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgHoldIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/image-icon.tsx b/packages/icons/20/image-icon.tsx index 668d3daa..287f8a68 100644 --- a/packages/icons/20/image-icon.tsx +++ b/packages/icons/20/image-icon.tsx @@ -1,19 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' - -const SvgImageIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +import type { IconProps } from '../types' +const SvgImageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInactiveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/info-badge-icon.tsx b/packages/icons/20/info-badge-icon.tsx index 23b81081..feff6044 100644 --- a/packages/icons/20/info-badge-icon.tsx +++ b/packages/icons/20/info-badge-icon.tsx @@ -1,22 +1,26 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgInfoBadgeIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInfoBadgeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - - + + ) } diff --git a/packages/icons/20/info-icon.tsx b/packages/icons/20/info-icon.tsx index ca2d701b..d7fa19f4 100644 --- a/packages/icons/20/info-icon.tsx +++ b/packages/icons/20/info-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgInfoIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgInfoIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/italic-icon.tsx b/packages/icons/20/italic-icon.tsx index fef0fe89..5fcea1fa 100644 --- a/packages/icons/20/italic-icon.tsx +++ b/packages/icons/20/italic-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgItalicIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgItalicIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgJustifyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgKeyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/keyboard-icon.tsx b/packages/icons/20/keyboard-icon.tsx index cf65f666..e450328c 100644 --- a/packages/icons/20/keyboard-icon.tsx +++ b/packages/icons/20/keyboard-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgKeyboardIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgKeyboardIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgKeycardIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgKeycardLogoIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLaptopIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLeftAlignIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLightIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/link-icon.tsx b/packages/icons/20/link-icon.tsx index ab2eb4ae..fa25c7e6 100644 --- a/packages/icons/20/link-icon.tsx +++ b/packages/icons/20/link-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgLinkIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLinkIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgListViewIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLoadingIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLogOutIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMembersIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMentionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMenuIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMessagesIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMobileIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMultiProfileIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMutedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgMutualContactIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - - + + { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNewMessageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNodeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNotificationIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/notifications-icon.tsx b/packages/icons/20/notifications-icon.tsx index 33616d34..365446cb 100644 --- a/packages/icons/20/notifications-icon.tsx +++ b/packages/icons/20/notifications-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgNotificationsIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNotificationsIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgNumberedListIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgOnlineIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/online-left-icon.tsx b/packages/icons/20/online-left-icon.tsx index 4dc40c6e..f383c105 100644 --- a/packages/icons/20/online-left-icon.tsx +++ b/packages/icons/20/online-left-icon.tsx @@ -1,20 +1,24 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgOnlineLeftIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgOnlineLeftIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - + ) } diff --git a/packages/icons/20/options-icon.tsx b/packages/icons/20/options-icon.tsx index 8794e2da..0bda4752 100644 --- a/packages/icons/20/options-icon.tsx +++ b/packages/icons/20/options-icon.tsx @@ -1,22 +1,26 @@ +import { useTheme } from '@tamagui/core' import { Circle, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgOptionsIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgOptionsIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( - - - + + + ) } diff --git a/packages/icons/20/password-icon.tsx b/packages/icons/20/password-icon.tsx index dcd1b0f6..bd3279f9 100644 --- a/packages/icons/20/password-icon.tsx +++ b/packages/icons/20/password-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Rect, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPasswordIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPasswordIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPauseIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/pending-icon.tsx b/packages/icons/20/pending-icon.tsx index e66bd702..8945afcc 100644 --- a/packages/icons/20/pending-icon.tsx +++ b/packages/icons/20/pending-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPendingIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPendingIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/pending-user-icon.tsx b/packages/icons/20/pending-user-icon.tsx index 4520e87b..040399bd 100644 --- a/packages/icons/20/pending-user-icon.tsx +++ b/packages/icons/20/pending-user-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgPendingUserIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPendingUserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPin1Icon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPinIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPlaceholderIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPlayIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPrivacyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/profile-icon.tsx b/packages/icons/20/profile-icon.tsx index a6593898..68950ddd 100644 --- a/packages/icons/20/profile-icon.tsx +++ b/packages/icons/20/profile-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgProfileIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgProfileIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgPullupIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgQrCodeIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgQuarterIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +import type { IconProps } from '../types' +const SvgReactionIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgReceiveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgReceiveMessageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRecentIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/refresh-icon.tsx b/packages/icons/20/refresh-icon.tsx index 90127975..d832a926 100644 --- a/packages/icons/20/refresh-icon.tsx +++ b/packages/icons/20/refresh-icon.tsx @@ -1,24 +1,28 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgRefreshIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRefreshIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/remove-user-icon.tsx b/packages/icons/20/remove-user-icon.tsx index 04e0606e..de52446e 100644 --- a/packages/icons/20/remove-user-icon.tsx +++ b/packages/icons/20/remove-user-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgRemoveUserIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRemoveUserIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgReplyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRevealIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRevereIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/right-align-icon.tsx b/packages/icons/20/right-align-icon.tsx index 599445e0..282b5271 100644 --- a/packages/icons/20/right-align-icon.tsx +++ b/packages/icons/20/right-align-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgRightAlignIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRightAlignIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgRotateIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ) diff --git a/packages/icons/20/sad-icon.tsx b/packages/icons/20/sad-icon.tsx index 40ba56c8..9a2881a1 100644 --- a/packages/icons/20/sad-icon.tsx +++ b/packages/icons/20/sad-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgSadIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSadIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSaveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgScanIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSearchIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSeedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSendIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSendMessageIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSettingsIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgShareIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSignatureIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSortIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSpeedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgStatusIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgStickersIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgStopIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/strikethrough-icon.tsx b/packages/icons/20/strikethrough-icon.tsx index e22cf3c6..6ee87f12 100644 --- a/packages/icons/20/strikethrough-icon.tsx +++ b/packages/icons/20/strikethrough-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgStrikethroughIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgStrikethroughIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSubscriptIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSuperscriptIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSwapIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSyncingIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgToggleIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgTokenIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnblockIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/underline-icon.tsx b/packages/icons/20/underline-icon.tsx index 45ed4246..51a78900 100644 --- a/packages/icons/20/underline-icon.tsx +++ b/packages/icons/20/underline-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgUnderlineIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnderlineIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnlockedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUnreadIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUntrustworthyIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/up-to-date-icon.tsx b/packages/icons/20/up-to-date-icon.tsx index 78bcf321..dc559681 100644 --- a/packages/icons/20/up-to-date-icon.tsx +++ b/packages/icons/20/up-to-date-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgUpToDateIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgUpToDateIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/verified-icon.tsx b/packages/icons/20/verified-icon.tsx index be76d01b..279f1e0d 100644 --- a/packages/icons/20/verified-icon.tsx +++ b/packages/icons/20/verified-icon.tsx @@ -1,25 +1,29 @@ +import { useTheme } from '@tamagui/core' import { Circle, Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgVerifiedIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgVerifiedIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( diff --git a/packages/icons/20/video-icon.tsx b/packages/icons/20/video-icon.tsx index bdb75db1..47fd46ea 100644 --- a/packages/icons/20/video-icon.tsx +++ b/packages/icons/20/video-icon.tsx @@ -1,18 +1,22 @@ +import { useTheme } from '@tamagui/core' import { Path, Svg } from 'react-native-svg' -import { useCurrentColor } from 'tamagui' -import type { SvgProps } from 'react-native-svg' +import type { IconProps } from '../types' -const SvgVideoIcon = (props: SvgProps) => { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgVideoIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgWalletIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgWarningIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgWorldIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgAngryIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLaughIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgLoveIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgSadIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgThumbsDownIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - const { color: colorToken = 'currentColor', ...rest } = props - const color = useCurrentColor(colorToken) +const SvgThumbsUpIcon = (props: IconProps) => { + const { color: token = '$neutral-100' } = props + const theme = useTheme() + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( { - let component = await svgr( - svg, - { ref: true, titleProp: true }, - { componentName } - ) - let { code } = await babel.transformAsync(component, { - plugins: [ - [require('@babel/plugin-transform-react-jsx'), { useBuiltIns: true }], - ], - }) +// let transform = { +// react: async (svg, componentName, format) => { +// let component = await svgr( +// svg, +// { ref: true, titleProp: true }, +// { componentName } +// ) +// let { code } = await babel.transformAsync(component, { +// plugins: [ +// [require('@babel/plugin-transform-react-jsx'), { useBuiltIns: true }], +// ], +// }) - if (format === 'esm') { - return code - } +// if (format === 'esm') { +// return code +// } - return code - .replace( - 'import * as React from "react"', - 'const React = require("react")' - ) - .replace('export default', 'module.exports =') - }, -} +// return code +// .replace( +// 'import * as React from "react"', +// 'const React = require("react")' +// ) +// .replace('export default', 'module.exports =') +// }, +// } -async function getIcons(style) { - let files = await fs.readdir(`./optimized/${style}`) - return Promise.all( - files.map(async file => ({ - svg: await fs.readFile(`./optimized/${style}/${file}`, 'utf8'), - componentName: `${camelcase(file.replace(/\.svg$/, ''), { - pascalCase: true, - })}Icon`, - })) - ) -} +// async function getIcons(style) { +// let files = await fs.readdir(`./optimized/${style}`) +// return Promise.all( +// files.map(async file => ({ +// svg: await fs.readFile(`./optimized/${style}/${file}`, 'utf8'), +// componentName: `${camelcase(file.replace(/\.svg$/, ''), { +// pascalCase: true, +// })}Icon`, +// })) +// ) +// } -function exportAll(icons, format, includeExtension = true) { - return icons - .map(({ componentName }) => { - let extension = includeExtension ? '.js' : '' - if (format === 'esm') { - return `export { default as ${componentName} } from './${componentName}${extension}'` - } - return `module.exports.${componentName} = require("./${componentName}${extension}")` - }) - .join('\n') -} +// function exportAll(icons, format, includeExtension = true) { +// return icons +// .map(({ componentName }) => { +// let extension = includeExtension ? '.js' : '' +// if (format === 'esm') { +// return `export { default as ${componentName} } from './${componentName}${extension}'` +// } +// return `module.exports.${componentName} = require("./${componentName}${extension}")` +// }) +// .join('\n') +// } -async function ensureWrite(file, text) { - await fs.mkdir(dirname(file), { recursive: true }) - await fs.writeFile(file, text, 'utf8') -} +// async function ensureWrite(file, text) { +// await fs.mkdir(dirname(file), { recursive: true }) +// await fs.writeFile(file, text, 'utf8') +// } -async function ensureWriteJson(file, json) { - await ensureWrite(file, JSON.stringify(json, null, 2)) -} +// async function ensureWriteJson(file, json) { +// await ensureWrite(file, JSON.stringify(json, null, 2)) +// } -async function buildIcons(package, style, format) { - let outDir = `./${package}/${style}` - if (format === 'esm') { - outDir += '/esm' - } +// async function buildIcons(package, style, format) { +// let outDir = `./${package}/${style}` +// if (format === 'esm') { +// outDir += '/esm' +// } - let icons = await getIcons(style) +// let icons = await getIcons(style) - await Promise.all( - icons.flatMap(async ({ componentName, svg }) => { - let content = await transform[package](svg, componentName, format) - let types = - package === 'react' - ? `import * as React from 'react';\ndeclare function ${componentName}(props: React.ComponentProps<'svg'> & { title?: string, titleId?: string }): JSX.Element;\nexport default ${componentName};\n` - : `import type { FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';\ndeclare const ${componentName}: FunctionalComponent;\nexport default ${componentName};\n` +// await Promise.all( +// icons.flatMap(async ({ componentName, svg }) => { +// let content = await transform[package](svg, componentName, format) +// let types = +// package === 'react' +// ? `import * as React from 'react';\ndeclare function ${componentName}(props: React.ComponentProps<'svg'> & { title?: string, titleId?: string }): JSX.Element;\nexport default ${componentName};\n` +// : `import type { FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';\ndeclare const ${componentName}: FunctionalComponent;\nexport default ${componentName};\n` - return [ - ensureWrite(`${outDir}/${componentName}.js`, content), - ...(types - ? [ensureWrite(`${outDir}/${componentName}.d.ts`, types)] - : []), - ] - }) - ) +// return [ +// ensureWrite(`${outDir}/${componentName}.js`, content), +// ...(types +// ? [ensureWrite(`${outDir}/${componentName}.d.ts`, types)] +// : []), +// ] +// }) +// ) - await ensureWrite(`${outDir}/index.js`, exportAll(icons, format)) +// await ensureWrite(`${outDir}/index.js`, exportAll(icons, format)) - await ensureWrite(`${outDir}/index.d.ts`, exportAll(icons, 'esm', false)) -} +// await ensureWrite(`${outDir}/index.d.ts`, exportAll(icons, 'esm', false)) +// } -async function main(package) { - const cjsPackageJson = { module: './esm/index.js', sideEffects: false } - const esmPackageJson = { type: 'module', sideEffects: false } +// async function main(package) { +// const cjsPackageJson = { module: './esm/index.js', sideEffects: false } +// const esmPackageJson = { type: 'module', sideEffects: false } - console.log(`Building ${package} package...`) +// console.log(`Building ${package} package...`) - await Promise.all([ - rimraf(`./${package}/20/solid/*`), - rimraf(`./${package}/24/outline/*`), - rimraf(`./${package}/24/solid/*`), - ]) +// await Promise.all([ +// rimraf(`./${package}/20/solid/*`), +// rimraf(`./${package}/24/outline/*`), +// rimraf(`./${package}/24/solid/*`), +// ]) - await Promise.all([ - buildIcons(package, '20/solid', 'cjs'), - buildIcons(package, '20/solid', 'esm'), - buildIcons(package, '24/outline', 'cjs'), - buildIcons(package, '24/outline', 'esm'), - buildIcons(package, '24/solid', 'cjs'), - buildIcons(package, '24/solid', 'esm'), - ensureWriteJson(`./${package}/20/solid/esm/package.json`, esmPackageJson), - ensureWriteJson(`./${package}/20/solid/package.json`, cjsPackageJson), - ensureWriteJson(`./${package}/24/outline/esm/package.json`, esmPackageJson), - ensureWriteJson(`./${package}/24/outline/package.json`, cjsPackageJson), - ensureWriteJson(`./${package}/24/solid/esm/package.json`, esmPackageJson), - ensureWriteJson(`./${package}/24/solid/package.json`, cjsPackageJson), - ]) +// await Promise.all([ +// buildIcons(package, '20/solid', 'cjs'), +// buildIcons(package, '20/solid', 'esm'), +// buildIcons(package, '24/outline', 'cjs'), +// buildIcons(package, '24/outline', 'esm'), +// buildIcons(package, '24/solid', 'cjs'), +// buildIcons(package, '24/solid', 'esm'), +// ensureWriteJson(`./${package}/20/solid/esm/package.json`, esmPackageJson), +// ensureWriteJson(`./${package}/20/solid/package.json`, cjsPackageJson), +// ensureWriteJson(`./${package}/24/outline/esm/package.json`, esmPackageJson), +// ensureWriteJson(`./${package}/24/outline/package.json`, cjsPackageJson), +// ensureWriteJson(`./${package}/24/solid/esm/package.json`, esmPackageJson), +// ensureWriteJson(`./${package}/24/solid/package.json`, cjsPackageJson), +// ]) - return console.log(`Finished building ${package} package.`) -} +// return console.log(`Finished building ${package} package.`) +// } -let [package] = process.argv.slice(2) +// let [package] = process.argv.slice(2) -if (!package) { - throw new Error('Please specify a package') -} +// if (!package) { +// throw new Error('Please specify a package') +// } -main(package) +// main(package) diff --git a/packages/icons/src/arrow-icon.tsx b/packages/icons/src/arrow-icon.tsx deleted file mode 100644 index dc432b9c..00000000 --- a/packages/icons/src/arrow-icon.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { memo } from 'react' - -import { themed } from '@status-im/icons/src/themed' -import { Path, Svg } from 'react-native-svg' - -import type { IconProps } from './types' - -function Icon(props: IconProps) { - const { color, size = 20, ...otherProps } = props - - return ( - - - - ) -} - -export const ArrowIcon = memo(themed(Icon)) diff --git a/packages/icons/svgr.config.js b/packages/icons/svgr.config.js index c3819c55..f768293a 100644 --- a/packages/icons/svgr.config.js +++ b/packages/icons/svgr.config.js @@ -1,31 +1,44 @@ function transformImports(arr) { arr.forEach(object => { if (object.source && object.source.value === 'react-native-svg') { - object.specifiers.forEach(specifier => { + object.specifiers.forEach((specifier, index) => { if (specifier.type === 'ImportDefaultSpecifier') { specifier.type = 'ImportSpecifier' specifier.imported = specifier.local } + + if (specifier.imported.name === 'IconProps') { + object.specifiers.splice(index, 1) + } }) } }) - return arr +} + +function replaceSvgPropsWithIconProps(node) { + node[0].typeAnnotation.typeAnnotation.typeName.name = 'IconProps' } const template = (variables, { tpl }) => { + replaceSvgPropsWithIconProps(variables.props) transformImports(variables.imports) return tpl` -${variables.imports}; -import { useCurrentColor } from 'tamagui' + ${variables.imports}; + import { useTheme } from '@tamagui/core'; + import { IconProps } from '../types'; ${variables.interfaces}; const ${variables.componentName} = (${variables.props}) => { - const { color: colorToken = "currentColor", ...rest } = props; + const { color: token = '$neutral-100' } = props + const theme = useTheme(); -const color = useCurrentColor(colorToken); + /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ + // @ts-ignore + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const color = theme[token]?.val ?? token return ( ${variables.jsx} ) diff --git a/packages/icons/types.ts b/packages/icons/types.ts index b7cc9c19..e7ad91bf 100644 --- a/packages/icons/types.ts +++ b/packages/icons/types.ts @@ -1,18 +1,23 @@ -import type { - SizeTokens, - StyleObject, - ThemeParsed, - Tokens, -} from '@tamagui/core' +// import 'react-native-svg' + +import type { ColorTokens } from '@tamagui/core' import type { SvgProps } from 'react-native-svg' -type GetTokenString = A extends string ? `$${A}` : `$${string}` -export type ColorTokens = - | GetTokenString - | GetTokenString +declare module 'react-native-svg' { + export interface SvgProps { + xmlns?: string + xmlnsXlink?: string + xlinkHref?: string + } +} + +// type GetTokenString = A extends string ? `$${A}` : `$${string}` +// export type ColorTokens = +// | GetTokenString +// | GetTokenString export type IconProps = SvgProps & { - size?: number | SizeTokens + // size?: number | SizeTokens color?: ColorTokens - style?: StyleObject + // style?: StyleObject } diff --git a/packages/icons/vite.config.ts b/packages/icons/vite.config.ts index 8480e869..50982863 100644 --- a/packages/icons/vite.config.ts +++ b/packages/icons/vite.config.ts @@ -6,25 +6,24 @@ import { defineConfig } from 'vite' import { peerDependencies } from './package.json' const external = [ + '@tamagui/core', 'tamagui', // ...Object.keys(dependencies || {}), ...Object.keys(peerDependencies || {}), ].map(name => new RegExp(`^${name}(/.*)?`)) +let index = 0 +const TYPES = ['12', '16', '20', 'reactions'] as const + export default defineConfig(({ mode }) => { return { build: { target: 'es2020', lib: { - entry: [ - './src/12/index.ts', - './src/16/index.ts', - './src/20/index.ts', - './src/reactions/index.ts', - ], - fileName(format, entryName) { - // const [name] = entryName.split('/') - return `icons-${entryName}.${format}.js` + entry: TYPES.map(type => `./${type}/index.ts`), + fileName() { + // return `${TYPES[index++]}.${format}.js` + return `${TYPES[index++]}.js` }, formats: ['es'], },