Skip to content

Commit

Permalink
feat(icons): added new icons (Pause, Scale, Code) (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson authored Sep 3, 2024
1 parent 75e7f7b commit 488b50d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/common/svgs/IconCodeSmall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/components/src/common/svgs/IconPauseLarge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/components/src/common/svgs/IconScaleSmall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions packages/components/src/core/Icon/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { ReactComponent as IconChevronUp2Small } from "../../common/svgs/IconChe
import { ReactComponent as IconCirclesOverlap2Large } from "../../common/svgs/IconCirclesOverlap2Large.svg";
import { ReactComponent as IconCirclesOverlap2Small } from "../../common/svgs/IconCirclesOverlap2Small.svg";
import { ReactComponent as IconCodeLarge } from "../../common/svgs/IconCodeLarge.svg";
import { ReactComponent as IconCodeSmall } from "../../common/svgs/IconCodeSmall.svg";
import { ReactComponent as IconCompassLarge } from "../../common/svgs/IconCompassLarge.svg";
import { ReactComponent as IconCopyLarge } from "../../common/svgs/IconCopyLarge.svg";
import { ReactComponent as IconCopySmall } from "../../common/svgs/IconCopySmall.svg";
Expand Down Expand Up @@ -76,6 +77,7 @@ import { ReactComponent as IconLockLarge } from "../../common/svgs/IconLockLarge
import { ReactComponent as IconLockSmall } from "../../common/svgs/IconLockSmall.svg";
import { ReactComponent as IconMinusSmall } from "../../common/svgs/IconMinusSmall.svg";
import { ReactComponent as IconOpenSmall } from "../../common/svgs/IconOpenSmall.svg";
import { ReactComponent as IconPauseLarge } from "../../common/svgs/IconPauseLarge.svg";
import { ReactComponent as IconPeopleLarge } from "../../common/svgs/IconPeopleLarge.svg";
import { ReactComponent as IconPeopleSmall } from "../../common/svgs/IconPeopleSmall.svg";
import { ReactComponent as IconPercentageSmall } from "../../common/svgs/IconPercentageSmall.svg";
Expand All @@ -99,6 +101,7 @@ import { ReactComponent as IconRocketLarge } from "../../common/svgs/IconRocketL
import { ReactComponent as IconRotateLeftSmall } from "../../common/svgs/IconRotateLeftSmall.svg";
import { ReactComponent as IconRotateRightSmall } from "../../common/svgs/IconRotateRightSmall.svg";
import { ReactComponent as IconSaveLarge } from "../../common/svgs/IconSaveLarge.svg";
import { ReactComponent as IconScaleSmall } from "../../common/svgs/IconScaleSmall.svg";
import { ReactComponent as IconSearchLarge } from "../../common/svgs/IconSearchLarge.svg";
import { ReactComponent as IconSearchLinesHorizontal3Large } from "../../common/svgs/IconSearchLinesHorizontal3Large.svg";
import { ReactComponent as IconSearchLinesHorizontal3Small } from "../../common/svgs/IconSearchLinesHorizontal3Small.svg";
Expand Down Expand Up @@ -153,7 +156,7 @@ export interface IconNameToSizes {
ChevronUp: "xs" | "s" | "l" | "xl";
ChevronUp2: "xs" | "s";
CirclesOverlap2: "xs" | "s" | "l" | "xl";
Code: "l" | "xl";
Code: "xs" | "s" | "l" | "xl";
Compass: "l" | "xl";
Copy: "xs" | "s" | "l" | "xl";
Cube: "xs" | "s" | "l" | "xl";
Expand Down Expand Up @@ -196,6 +199,7 @@ export interface IconNameToSizes {
LockCircle: "xs" | "s";
Minus: "xs" | "s";
Open: "xs" | "s";
Pause: "l" | "xl";
People: "xs" | "s" | "l" | "xl";
Percentage: "xs" | "s";
Person: "xs" | "s" | "l" | "xl";
Expand All @@ -216,6 +220,7 @@ export interface IconNameToSizes {
RotateLeft: "xs" | "s";
RotateRight: "xs" | "s";
Save: "l" | "xl";
Scale: "xs" | "s";
Search: "xs" | "s" | "l" | "xl";
SearchLinesHorizontal3: "xs" | "s" | "l" | "xl";
Send: "l" | "xl";
Expand Down Expand Up @@ -323,7 +328,7 @@ export const iconMap: Props = {
},
Code: {
largeIcon: IconCodeLarge,
smallIcon: null,
smallIcon: IconCodeSmall,
},
Compass: {
largeIcon: IconCompassLarge,
Expand Down Expand Up @@ -493,6 +498,10 @@ export const iconMap: Props = {
largeIcon: null,
smallIcon: IconOpenSmall,
},
Pause: {
largeIcon: IconPauseLarge,
smallIcon: null,
},
People: {
largeIcon: IconPeopleLarge,
smallIcon: IconPeopleSmall,
Expand Down Expand Up @@ -573,6 +582,10 @@ export const iconMap: Props = {
largeIcon: IconSaveLarge,
smallIcon: null,
},
Scale: {
largeIcon: null,
smallIcon: IconScaleSmall,
},
Search: {
largeIcon: IconSearchLarge,
smallIcon: IconSearchSmall,
Expand Down

0 comments on commit 488b50d

Please sign in to comment.