Skip to content

Commit

Permalink
fix: icons with default title
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtute90 committed Aug 28, 2024
1 parent 53aaf0a commit 14e154b
Show file tree
Hide file tree
Showing 176 changed files with 185 additions and 2,863 deletions.
9 changes: 2 additions & 7 deletions src/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import React, { FC, ImgHTMLAttributes, SVGProps, useEffect, useState } from 'react';
import { EmptyIcon } from './EmptyIcon';
import { IconName, allIcons, isBundledIcon, loadIcon } from './assets/index';
import { IconName, SVGRProps, allIcons, isBundledIcon, loadIcon } from './assets/index';
export type { IconName } from './assets';

export const iconsList = allIcons;
Expand Down Expand Up @@ -61,16 +61,11 @@ export interface IconProps extends SVGProps<SVGSVGElement> {
testId?: string;
}

interface SVGRProps {
title?: string;
titleId?: string;
}

export const Icon: FC<IconProps> = ({
color = '',
size = '',
icon = '',
title = 'icon',
title,
className,
padding = false,
onIconLoad,
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItAndroid.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItAndroidSquare.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItApple.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItAppleSquare.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowDown.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowDownCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowDownTriangle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowLeft.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowLeftCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowLeftTriangle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowRight.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowRightCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowRightTriangle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowUp.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowUpCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItArrowUpTriangle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItBan.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItBehance.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItBookmark.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItBox.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItBurger.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCalendar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCamera.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItChartLine.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCheck.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCheckCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItChevronLeft.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItChevronRight.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItClip.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItClock.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItClose.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
5 changes: 1 addition & 4 deletions src/Icon/assets/ItCloseBig.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import * as React from 'react';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
import { SVGRProps } from '.';
export const component = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
Expand Down
Loading

0 comments on commit 14e154b

Please sign in to comment.