diff --git a/assets/icons/arcanum.svg b/assets/icons/arcanum.svg deleted file mode 100644 index d334b2b2..00000000 --- a/assets/icons/arcanum.svg +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/assets/icons/arrow-left.svg b/assets/icons/arrow-left.svg deleted file mode 100644 index 441560d1..00000000 --- a/assets/icons/arrow-left.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/arrow-right.svg b/assets/icons/arrow-right.svg deleted file mode 100644 index 5986a74d..00000000 --- a/assets/icons/arrow-right.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/checkbox-tick.svg b/assets/icons/checkbox-tick.svg deleted file mode 100644 index bb03ecbd..00000000 --- a/assets/icons/checkbox-tick.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/checkmark.svg b/assets/icons/checkmark.svg deleted file mode 100644 index 3a1edd1a..00000000 --- a/assets/icons/checkmark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/chevron.svg b/assets/icons/chevron.svg deleted file mode 100644 index aad5482c..00000000 --- a/assets/icons/chevron.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/close.svg b/assets/icons/close.svg deleted file mode 100644 index 1b8cf78e..00000000 --- a/assets/icons/close.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/cog-marked.svg b/assets/icons/cog-marked.svg deleted file mode 100644 index 7cee03d7..00000000 --- a/assets/icons/cog-marked.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/assets/icons/cog.svg b/assets/icons/cog.svg deleted file mode 100644 index 826b7b8b..00000000 --- a/assets/icons/cog.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/dislike.svg b/assets/icons/dislike.svg deleted file mode 100644 index 73c93be2..00000000 --- a/assets/icons/dislike.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/edit.svg b/assets/icons/edit.svg deleted file mode 100644 index 41c08acc..00000000 --- a/assets/icons/edit.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/full-screen.svg b/assets/icons/full-screen.svg deleted file mode 100644 index afc2990a..00000000 --- a/assets/icons/full-screen.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/github.svg b/assets/icons/github.svg deleted file mode 100644 index a1e4abdf..00000000 --- a/assets/icons/github.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/lang.svg b/assets/icons/lang.svg deleted file mode 100644 index 341413e4..00000000 --- a/assets/icons/lang.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/like.svg b/assets/icons/like.svg deleted file mode 100644 index 40245fca..00000000 --- a/assets/icons/like.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/search-bar-arrow.svg b/assets/icons/search-bar-arrow.svg deleted file mode 100644 index a26e8eb0..00000000 --- a/assets/icons/search-bar-arrow.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/star-active.svg b/assets/icons/star-active.svg deleted file mode 100644 index c8483b60..00000000 --- a/assets/icons/star-active.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/icons/star-inactive.svg b/assets/icons/star-inactive.svg deleted file mode 100644 index 6d02364b..00000000 --- a/assets/icons/star-inactive.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/components/BookmarkButton/BookmarkButton.tsx b/src/components/BookmarkButton/BookmarkButton.tsx index 7e2e1389..375e6669 100644 --- a/src/components/BookmarkButton/BookmarkButton.tsx +++ b/src/components/BookmarkButton/BookmarkButton.tsx @@ -3,8 +3,8 @@ import React from 'react'; import {Button, Icon} from '@gravity-ui/uikit'; import block from 'bem-cn-lite'; -import StarActive from '../../../assets/icons/star-active.svg'; -import StarInactive from '../../../assets/icons/star-inactive.svg'; +import StarActive from '@gravity-ui/icons/svgs/star-fill.svg'; +import StarInactive from '@gravity-ui/icons/svgs/star.svg'; import './BookmarkButton.scss'; diff --git a/src/components/Controls/Controls.tsx b/src/components/Controls/Controls.tsx index b48078e8..a759e33d 100644 --- a/src/components/Controls/Controls.tsx +++ b/src/components/Controls/Controls.tsx @@ -14,10 +14,10 @@ import { PdfControl, } from './'; -import EditIcon from '../../../assets/icons/edit.svg'; import {PopperPosition} from '../../hooks'; import {Lang, TextSizes, Theme, FeedbackSendData, ControlSizes, SubscribeData} from '../../models'; +import EditIcon from '@gravity-ui/icons/svgs/pencil.svg'; import './Controls.scss'; diff --git a/src/components/Controls/single-controls/FullScreenControl.tsx b/src/components/Controls/single-controls/FullScreenControl.tsx index 542a4336..ae506e48 100644 --- a/src/components/Controls/single-controls/FullScreenControl.tsx +++ b/src/components/Controls/single-controls/FullScreenControl.tsx @@ -6,8 +6,8 @@ import {Control} from '../../Control'; import {ControlSizes, Lang} from '../../../models'; import FullScreenClickedIcon from '../../../../assets/icons/full-screen-clicked.svg'; -import FullScreenIcon from '../../../../assets/icons/full-screen.svg'; import {PopperPosition} from '../../../hooks'; +import FullScreenIcon from '@gravity-ui/icons/svgs/square-dashed.svg'; interface ControlProps { lang: Lang; diff --git a/src/components/Controls/single-controls/LangControl.tsx b/src/components/Controls/single-controls/LangControl.tsx index 22eb1c00..8fe65c8a 100644 --- a/src/components/Controls/single-controls/LangControl.tsx +++ b/src/components/Controls/single-controls/LangControl.tsx @@ -9,7 +9,7 @@ import {ControlSizes, Lang} from '../../../models'; import {getPopupPosition} from './utils'; import {PopperPosition} from '../../../hooks'; -import LangIcon from '../../../../assets/icons/lang.svg'; +import LangIcon from '@gravity-ui/icons/svgs/globe.svg'; import '../Controls.scss'; diff --git a/src/components/Controls/single-controls/SettingsControl/SettingsControl.tsx b/src/components/Controls/single-controls/SettingsControl/SettingsControl.tsx index 14ac7fa9..7a04f6e3 100644 --- a/src/components/Controls/single-controls/SettingsControl/SettingsControl.tsx +++ b/src/components/Controls/single-controls/SettingsControl/SettingsControl.tsx @@ -7,10 +7,10 @@ import {Control} from '../../../Control'; import {ControlSizes, Lang, TextSizes, Theme} from '../../../../models'; import {PopperPosition} from '../../../../hooks'; -import SettingsIcon from '../../../../../assets/icons/cog.svg'; - import {getPopupPosition} from '../utils'; +import SettingsIcon from '@gravity-ui/icons/svgs/gear.svg'; + import './SettingsControl.scss'; const ITEM_HEIGHT = 48; diff --git a/src/components/EditButton/EditButton.tsx b/src/components/EditButton/EditButton.tsx index 8fb77b0e..0d8e188a 100644 --- a/src/components/EditButton/EditButton.tsx +++ b/src/components/EditButton/EditButton.tsx @@ -3,9 +3,9 @@ import block from 'bem-cn-lite'; import {withTranslation, WithTranslation, WithTranslationProps} from 'react-i18next'; import {Button, Icon as IconComponent} from '@gravity-ui/uikit'; -import EditIcon from '../../../assets/icons/edit.svg'; import {Lang} from '../../models'; +import EditIcon from '@gravity-ui/icons/svgs/pencil.svg'; import './EditButton.scss'; diff --git a/src/components/Feedback/Feedback.tsx b/src/components/Feedback/Feedback.tsx index 1d807d29..08ef49f3 100644 --- a/src/components/Feedback/Feedback.tsx +++ b/src/components/Feedback/Feedback.tsx @@ -8,8 +8,8 @@ import {PopperPosition} from '../../hooks'; import {FeedbackSendData, FeedbackType, Lang} from '../../models'; import {DISLIKE_VARIANTS} from '../../constants'; -import LikeIcon from '../../../assets/icons/like.svg'; -import DislikeIcon from '../../../assets/icons/dislike.svg'; +import DislikeActiveIcon from '@gravity-ui/icons/svgs/thumbs-down-fill.svg'; +import DislikeIcon from '@gravity-ui/icons/svgs/thumbs-down.svg'; import './Feedback.scss'; diff --git a/src/components/Paginator/Paginator.tsx b/src/components/Paginator/Paginator.tsx index 02393b75..3312f0b7 100644 --- a/src/components/Paginator/Paginator.tsx +++ b/src/components/Paginator/Paginator.tsx @@ -1,9 +1,9 @@ import React, {ReactNode} from 'react'; -import block from 'bem-cn-lite'; import {Button, Icon} from '@gravity-ui/uikit'; +import block from 'bem-cn-lite'; -import arrowIcon from '../../../assets/icons/arrow-right.svg'; +import ArrowRightIcon from '@gravity-ui/icons/svgs/arrow-right.svg'; import './Paginator.scss'; @@ -142,7 +142,7 @@ const Paginator = ({ const arrowButton = (disable: boolean) => ( ); diff --git a/src/components/SearchBar/SearchBar.tsx b/src/components/SearchBar/SearchBar.tsx index 5fa8881c..81d660d5 100644 --- a/src/components/SearchBar/SearchBar.tsx +++ b/src/components/SearchBar/SearchBar.tsx @@ -8,8 +8,8 @@ import {useHotkeys} from 'react-hotkeys-hook'; import {Control} from '../Control'; import {Lang} from '../../models'; -import CloseIcon from '../../../assets/icons/close.svg'; -import ArrowIcon from '../../../assets/icons/search-bar-arrow.svg'; +import ArrowLeftIcon from '@gravity-ui/icons/svgs/chevron-left.svg'; +import CloseIcon from '@gravity-ui/icons/svgs/xmark.svg'; import './SearchBar.scss'; diff --git a/src/components/TocNavPanel/TocNavPanel.tsx b/src/components/TocNavPanel/TocNavPanel.tsx index 4007b9d6..eddf89c9 100644 --- a/src/components/TocNavPanel/TocNavPanel.tsx +++ b/src/components/TocNavPanel/TocNavPanel.tsx @@ -5,10 +5,10 @@ import {withTranslation, WithTranslation, WithTranslationProps} from 'react-i18n import {TocData, TocItem, Router, Lang} from '../../models'; -import ArrowLeft from '../../../assets/icons/arrow-left.svg'; -import ArrowRight from '../../../assets/icons/arrow-right.svg'; import {isExternalHref, isActiveItem} from '../../utils'; +import ArrowLeft from '@gravity-ui/icons/svgs/arrow-left.svg'; +import ArrowRight from '@gravity-ui/icons/svgs/arrow-right.svg'; import './TocNavPanel.scss'; diff --git a/src/components/ToggleArrow/ToggleArrow.tsx b/src/components/ToggleArrow/ToggleArrow.tsx index dda22afa..0749bba2 100644 --- a/src/components/ToggleArrow/ToggleArrow.tsx +++ b/src/components/ToggleArrow/ToggleArrow.tsx @@ -1,7 +1,7 @@ import React from 'react'; import block from 'bem-cn-lite'; -import ChevronIcon from '../../../assets/icons/chevron.svg'; +import ChevronIcon from '@gravity-ui/icons/svgs/chevron-right.svg'; import './ToggleArrow.scss';