Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #667 from appsmithorg/chore/add-icons
Browse files Browse the repository at this point in the history
chore: Adding icons in AppIcon component and Icon provider
  • Loading branch information
ankitakinger authored Oct 30, 2023
2 parents cced275 + a684a4e commit 40b67d9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/wild-ads-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@appsmithorg/design-system-old": patch
"@appsmithorg/design-system": patch
---

chore: Adding icons in AppIcon component and Icon provider
5 changes: 5 additions & 0 deletions packages/design-system-old/src/AppIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const YenIcon = importSvg(() =>
const SteamBowlIcon = importSvg(() =>
import("../assets/icons/ads/app-icons/steam-bowl.svg"),
);
const PackageIcon = importSvg(() => import("../assets/icons/ads/package.svg"));
const ArrowDownIcon = importRemixIcon(() =>
import("remixicon-react/ArrowDownSLineIcon"),
);
Expand Down Expand Up @@ -328,6 +329,7 @@ export const AppIconCollection = [
"moon",
"mug",
"music",
"package",
"pants",
"pie-chart",
"pizza",
Expand Down Expand Up @@ -596,6 +598,9 @@ function AppIcon(props: AppIconProps) {
case "pie-chart":
returnIcon = <PieChartIcon />;
break;
case "package":
returnIcon = <PackageIcon />;
break;
case "pizza":
returnIcon = <PizzaIcon />;
break;
Expand Down
9 changes: 9 additions & 0 deletions packages/design-system/src/Icon/Icon.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,10 @@ const FileCopy2Line = importRemixIcon(
() => import("remixicon-react/FileCopy2LineIcon"),
);

const AppsLineIcon = importRemixIcon(
async () => import("remixicon-react/AppsLineIcon"),
);

const CornerDownLeftLineIcon = importSvg(
() => import("../__assets__/icons/ads/corner-down-left-line.svg"),
);
Expand Down Expand Up @@ -695,6 +699,9 @@ const ExecuteIcon = importSvg(
const PackageIcon = importSvg(
() => import("../__assets__/icons/ads/package.svg"),
);
const ModuleIcon = importSvg(
() => import("../__assets__/icons/ads/module.svg"),
);
const DeleteIcon = importSvg(
() => import("../__assets__/icons/control/delete.svg"),
);
Expand Down Expand Up @@ -1209,6 +1216,7 @@ const ICON_LOOKUP = {
"file-paper-2-line": FilePaper2LineIcon,
"file-copy-2-line": FileCopy2Line,
"box-3-line": Box3LineIcon,
"apps-line": AppsLineIcon,
billing: BillingIcon,
binding: Binding,
book: BookIcon,
Expand Down Expand Up @@ -1257,6 +1265,7 @@ const ICON_LOOKUP = {
manage: ManageIcon,
member: UserHeartLineIcon,
minus: RemoveIcon,
module: ModuleIcon,
mobile: MobileIcon,
open: OpenIcon,
pantone: PantoneLineIcon,
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/src/__assets__/icons/ads/module.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40b67d9

Please sign in to comment.