X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/06a7999b4f97b0ba5e7db1739f5a9531df724b86..6577969579f623c9788113083342a5268ee7c8c8:/src/components/icon/icon.tsx diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index ef16ced6..1061a2ec 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -3,126 +3,101 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; -import * as classnames from "classnames"; - import AccessTime from '@material-ui/icons/AccessTime'; -import Announcement from '@material-ui/icons/Announcement'; +import Add from '@material-ui/icons/Add'; +import ArrowBack from '@material-ui/icons/ArrowBack'; import ArrowDropDown from '@material-ui/icons/ArrowDropDown'; import BubbleChart from '@material-ui/icons/BubbleChart'; import Cached from '@material-ui/icons/Cached'; -import Code from '@material-ui/icons/Code'; import ChevronLeft from '@material-ui/icons/ChevronLeft'; +import CloudUpload from '@material-ui/icons/CloudUpload'; +import Code from '@material-ui/icons/Code'; +import Create from '@material-ui/icons/Create'; +import ImportContacts from '@material-ui/icons/ImportContacts'; import ChevronRight from '@material-ui/icons/ChevronRight'; import Close from '@material-ui/icons/Close'; -import ContentCopy from '@material-ui/icons/ContentCopy'; +import ContentCopy from '@material-ui/icons/FileCopyOutlined'; import CreateNewFolder from '@material-ui/icons/CreateNewFolder'; import Delete from '@material-ui/icons/Delete'; +import DeviceHub from '@material-ui/icons/DeviceHub'; import Edit from '@material-ui/icons/Edit'; -import FolderIcon from '@material-ui/icons/Folder'; +import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; +import Folder from '@material-ui/icons/Folder'; import GetApp from '@material-ui/icons/GetApp'; import Help from '@material-ui/icons/Help'; +import HelpOutline from '@material-ui/icons/HelpOutline'; import Inbox from '@material-ui/icons/Inbox'; import Info from '@material-ui/icons/Info'; import Input from '@material-ui/icons/Input'; +import InsertDriveFile from '@material-ui/icons/InsertDriveFile'; +import LastPage from '@material-ui/icons/LastPage'; +import LibraryBooks from '@material-ui/icons/LibraryBooks'; import Menu from '@material-ui/icons/Menu'; import MoreVert from '@material-ui/icons/MoreVert'; -import NotificationsIcon from '@material-ui/icons/Notifications'; +import Mail from '@material-ui/icons/Mail'; +import MoveToInbox from '@material-ui/icons/MoveToInbox'; +import Notifications from '@material-ui/icons/Notifications'; import People from '@material-ui/icons/People'; import Person from '@material-ui/icons/Person'; import PersonAdd from '@material-ui/icons/PersonAdd'; import PlayArrow from '@material-ui/icons/PlayArrow'; import RateReview from '@material-ui/icons/RateReview'; +import RestoreFromTrash from '@material-ui/icons/History'; import Search from '@material-ui/icons/Search'; +import SettingsApplications from '@material-ui/icons/SettingsApplications'; +import SettingsEthernet from '@material-ui/icons/SettingsEthernet'; import Star from '@material-ui/icons/Star'; import StarBorder from '@material-ui/icons/StarBorder'; +import Warning from '@material-ui/icons/Warning'; -export enum IconTypes { - ACCESS_TIME = 'access_time', - ANNOUNCEMENT = 'announcement', - ARROW_DROP_DOWN = 'arrow_drop_down', - BUBBLE_CHART = 'bubble_chart', - CACHED = 'cached', - CODE = 'code', - CHEVRON_LEFT = 'chevron_left', - CHEVRON_RIGHT = 'chevron-right', - COLLECTION = 'collection', - CLOSE = 'close', - CONTENT_COPY = 'content_copy', - CREATE_NEW_FOLDER = 'create_new_folder', - DELETE = 'delete', - EDIT = 'edit', - FOLDER = 'folder', - GET_APP = 'get_app', - HELP = 'help', - INBOX = 'inbox', - INFO = 'info', - INPUT = 'input', - MENU = 'menu', - MORE_VERT = 'more_vert', - NOTIFICATIONS = 'notifications', - PEOPLE = 'people', - PERSON = 'person', - PERSON_ADD = 'person_add', - PLAY_ARROW = 'play_arrow', - RATE_REVIEW = 'rate_review', - SEARCH = 'search', - STAR = 'star', - STAR_BORDER = 'star_border' -} - -interface IconBaseDataProps { - icon: IconTypes; - className?: string; -} - -type IconBaseProps = IconBaseDataProps; - -interface IconBaseState { - icon: IconTypes; -} - -const getSpecificIcon = (props: any) => ({ - [IconTypes.ACCESS_TIME]: , - [IconTypes.ANNOUNCEMENT]: , - [IconTypes.ARROW_DROP_DOWN]: , - [IconTypes.BUBBLE_CHART]: , - [IconTypes.CACHED]: , - [IconTypes.CODE]: , - [IconTypes.CHEVRON_LEFT]: , - [IconTypes.CHEVRON_RIGHT]: , - [IconTypes.COLLECTION]: , - [IconTypes.CLOSE]: , - [IconTypes.CONTENT_COPY]: , - [IconTypes.CREATE_NEW_FOLDER]: , - [IconTypes.DELETE]: , - [IconTypes.EDIT]: , - [IconTypes.FOLDER]: , - [IconTypes.GET_APP]: , - [IconTypes.HELP]: , - [IconTypes.INBOX]: , - [IconTypes.INFO]: , - [IconTypes.INPUT]: , - [IconTypes.MENU]: , - [IconTypes.MORE_VERT]: , - [IconTypes.NOTIFICATIONS]: , - [IconTypes.PEOPLE]: , - [IconTypes.PERSON]: , - [IconTypes.PERSON_ADD]: , - [IconTypes.PLAY_ARROW]: , - [IconTypes.RATE_REVIEW]: , - [IconTypes.SEARCH]: , - [IconTypes.STAR]: , - [IconTypes.STAR_BORDER]: -}); - -class IconBase extends React.Component { - state = { - icon: IconTypes.FOLDER, - }; - - render() { - return getSpecificIcon(this.props)[this.props.icon]; - } -} +export type IconType = React.SFC<{ className?: string }>; -export default IconBase; \ No newline at end of file +export const AddIcon: IconType = (props) => ; +export const AddFavoriteIcon: IconType = (props) => ; +export const AdvancedIcon: IconType = (props) => ; +export const BackIcon: IconType = (props) => ; +export const CustomizeTableIcon: IconType = (props) => ; +export const CommandIcon: IconType = (props) => ; +export const CopyIcon: IconType = (props) => ; +export const CollectionIcon: IconType = (props) => ; +export const CloseIcon: IconType = (props) => ; +export const CloudUploadIcon: IconType = (props) => ; +export const DefaultIcon: IconType = (props) => ; +export const DetailsIcon: IconType = (props) => ; +export const DownloadIcon: IconType = (props) => ; +export const EditSavedQueryIcon: IconType = (props) => ; +export const ExpandIcon: IconType = (props) => ; +export const FavoriteIcon: IconType = (props) => ; +export const HelpIcon: IconType = (props) => ; +export const HelpOutlineIcon: IconType = (props) => ; +export const ImportContactsIcon: IconType = (props) => ; +export const InputIcon: IconType = (props) => ; +export const LogIcon: IconType = (props) => ; +export const MailIcon: IconType = (props) => ; +export const MoreOptionsIcon: IconType = (props) => ; +export const MoveToIcon: IconType = (props) => ; +export const NewProjectIcon: IconType = (props) => ; +export const NotificationIcon: IconType = (props) => ; +export const OutputIcon: IconType = (props) => ; +export const PaginationDownIcon: IconType = (props) => ; +export const PaginationLeftArrowIcon: IconType = (props) => ; +export const PaginationRightArrowIcon: IconType = (props) => ; +export const ProcessIcon: IconType = (props) => ; +export const ProjectIcon: IconType = (props) => ; +export const ProjectsIcon: IconType = (props) => ; +export const ProvenanceGraphIcon: IconType = (props) => ; +export const RecentIcon: IconType = (props) => ; +export const RemoveIcon: IconType = (props) => ; +export const RemoveFavoriteIcon: IconType = (props) => ; +export const RenameIcon: IconType = (props) => ; +export const RestoreFromTrashIcon: IconType = (props) => ; +export const ReRunProcessIcon: IconType = (props) => ; +export const SearchIcon: IconType = (props) => ; +export const ShareIcon: IconType = (props) => ; +export const ShareMeIcon: IconType = (props) => ; +export const SidePanelRightArrowIcon: IconType = (props) => ; +export const TrashIcon: IconType = (props) => ; +export const UserPanelIcon: IconType = (props) => ; +export const UsedByIcon: IconType = (props) => ; +export const WorkflowIcon: IconType = (props) => ; +export const WarningIcon: IconType = (props) => ;