Skip to content

Commit

Permalink
fix(icons): fix icon generation (#458)
Browse files Browse the repository at this point in the history
* fix(icons): fix generate-icons script

* chore(icons): regenerate icons to add missing newline

* chore(icons): clean up generator script

* chore(icons): regenerate flags

* chore(icons): remove unused icon

* fix(icons): remove extra icon export
  • Loading branch information
martimalek committed Jun 21, 2024
1 parent ff8223d commit 2ad7ad5
Show file tree
Hide file tree
Showing 277 changed files with 369 additions and 295 deletions.
3 changes: 1 addition & 2 deletions assets/icons/actions/check-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 0 additions & 1 deletion scripts/generate-icons
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function template(babel, opts, { imports, componentName, props, jsx, exports })
${imports}
${libImports}
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/CheckCircleFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const CheckCircleFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/CheckCircleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const CheckCircleIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/CheckIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const CheckIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/CopyIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const CopyIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/DownloadIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const DownloadIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/EnvelopeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const EnvelopeIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ExitIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ExitIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/EyeClosedIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const EyeClosedIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/EyeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const EyeIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/FilterDisabledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const FilterDisabledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/FilterIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const FilterIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/MagnifierIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const MagnifierIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/MinusCircleFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const MinusCircleFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/MinusCircleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const MinusCircleIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/MinusIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const MinusIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/PenIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const PenIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/PlusCircleFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const PlusCircleFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/PlusCircleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const PlusCircleIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/PlusIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const PlusIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ResendIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ResendIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/SoundAlertsOnlyIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const SoundAlertsOnlyIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/SoundOffIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const SoundOffIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/SoundOnIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const SoundOnIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ThumbDownFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ThumbDownFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ThumbDownIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ThumbDownIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ThumbUpFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ThumbUpFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/ThumbUpIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ThumbUpIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/TrashIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const TrashIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/UploadIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const UploadIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/WarningFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const WarningFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/WarningIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const WarningIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/XCrossCircleFilledIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const XCrossCircleFilledIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/XCrossCircleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const XCrossCircleIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/actions/XCrossIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const XCrossIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowDownIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowDownIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowDownLeftIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowDownLeftIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowDownRightIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowDownRightIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
4 changes: 2 additions & 2 deletions src/icons/arrows/ArrowLeftIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowLeftIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...props }) => {
const ArrowLeftIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
const sizePx = Number.isFinite(size as number)
? size
: get(`iconSizes.${size}`)(props) || get('iconSizes.medium')(props);
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowRightIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowRightIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowUpIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowUpIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowUpLeftIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowUpLeftIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ArrowUpRightIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ArrowUpRightIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/BackwardIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const BackwardIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/BackwardLastIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const BackwardLastIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ChevronDownIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ChevronDownIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ChevronLeftIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ChevronLeftIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
1 change: 0 additions & 1 deletion src/icons/arrows/ChevronRightIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as React from 'react';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';

type Props = IconProps;
const ChevronRightIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
const props = { ...rest, color };
Expand Down
Loading

0 comments on commit 2ad7ad5

Please sign in to comment.