Skip to content

Commit

Permalink
feat!: use icons from @taskany/icons
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 24, 2023
1 parent b23f9ed commit f6e6d28
Show file tree
Hide file tree
Showing 69 changed files with 80 additions and 609 deletions.
61 changes: 59 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
"dependencies": {
"@monaco-editor/react": "4.5.1",
"@taskany/colors": "1.1.0",
"@taskany/icons": "1.1.0",
"@tippyjs/react": "4.2.6",
"color-layer": "1.0.3",
"md5": "2.3.0",
"react-dropzone": "14.2.3",
"teenyicons": "0.4.1"
"react-dropzone": "14.2.3"
},
"sideEffects": false
}
4 changes: 2 additions & 2 deletions src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import React, { useCallback, useEffect, useRef, useState, ComponentProps } from 'react';
import styled from 'styled-components';
import { danger10 } from '@taskany/colors';
import { IconXOutline } from '@taskany/icons';

import { nullable } from '../utils/nullable';
import { useKeyPress } from '../hooks/useKeyPress';
import { useKeyboard, KeyCode } from '../hooks/useKeyboard';

import { Popup } from './Popup';
import { Input } from './Input';
import { CrossIcon } from './Icon/CrossIcon';
import { MenuItem } from './MenuItem';

interface DropdownTriggerProps {
Expand Down Expand Up @@ -210,7 +210,7 @@ export const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
onSearchChange && onSearchChange(value);
}}
iconRight={
<CrossIcon
<IconXOutline
size="xxs"
onClick={() => {
setQuery('');
Expand Down
4 changes: 2 additions & 2 deletions src/components/FormEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import styled from 'styled-components';
import { useDropzone } from 'react-dropzone';
import Editor from '@monaco-editor/react';
import { danger10, gapS, gapXs, gray2, gray3, gray4, gray6, gray8, radiusS, textColor } from '@taskany/colors';
import { IconAttachOutline } from '@taskany/icons';

import { nullable } from '../utils/nullable';
import { useKeyboard, KeyCode } from '../hooks/useKeyboard';
Expand All @@ -13,7 +14,6 @@ import { formContext } from '../context/form';

import { Popup } from './Popup';
import { Link } from './Link';
import { AttachIcon } from './Icon';

interface FormEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus'> {
id?: string;
Expand Down Expand Up @@ -244,7 +244,7 @@ const StyledUploadLink = styled(Link)`
margin-right: ${gapXs};
`;

const StyledUploadIcon = styled(AttachIcon)`
const StyledUploadIcon = styled(IconAttachOutline)`
position: relative;
top: 2px;
padding-right: ${gapXs};
Expand Down
4 changes: 2 additions & 2 deletions src/components/FormMultiInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import React, { useCallback, useState, ChangeEvent, useEffect, useContext } from 'react';
import styled from 'styled-components';
import { gapS, gray3, gray8, radiusS, textColor } from '@taskany/colors';
import { IconPlusCircleOutline } from '@taskany/icons';

import { nullable } from '../utils/nullable';
import { formContext } from '../context/form';

import { PlusIcon } from './Icon/PlusIcon';
import { Text } from './Text';
import { Tag, TagCleanButton } from './Tag';
import { Input } from './Input';
Expand Down Expand Up @@ -122,7 +122,7 @@ export const FormMultiInput = React.forwardRef<HTMLDivElement, FormMultiInputPro
disabled={disabled}
onChange={onValueAdd}
items={items}
renderTrigger={(props) => <PlusIcon size="xs" onClick={props.onClick} />}
renderTrigger={(props) => <IconPlusCircleOutline size="xs" onClick={props.onClick} />}
renderInput={(props) => (
<StyledInput
autoFocus
Expand Down
8 changes: 0 additions & 8 deletions src/components/Icon/AddIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/AddSmallIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ArrowDownSmallIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ArrowRightIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ArrowRightSmallIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ArrowUpSmallIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/AttachIcon.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/components/Icon/BaseIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/BinIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/BookmarkIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/BuildingIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/BulbOnIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/CalendarIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/CalendarTickIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/CircleIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ClipboardPlusIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/ClipboardTickIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/CogIcon.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Icon/CrossIcon.tsx

This file was deleted.

Loading

0 comments on commit f6e6d28

Please sign in to comment.