From 92bc04b4e9888cbfba0ca71eeec17f36f6d53966 Mon Sep 17 00:00:00 2001 From: Yaroslav Admin Date: Wed, 20 Nov 2024 22:54:22 +0100 Subject: [PATCH] Add new icon packages to the ng add schematic Fixes #457 --- docs/usage/using-other-styles.md | 2 +- projects/schematics/src/ng-add/schema.json | 54 +++++++++++++++++++--- projects/schematics/src/ng-add/schema.ts | 12 ++++- 3 files changed, 59 insertions(+), 9 deletions(-) diff --git a/docs/usage/using-other-styles.md b/docs/usage/using-other-styles.md index 49c27ff..ee43a54 100644 --- a/docs/usage/using-other-styles.md +++ b/docs/usage/using-other-styles.md @@ -9,7 +9,7 @@ The general workflow of adding a new icon: 1. Install a package containing the icon if not already installed (use style name from the previous step and see full package names below). 1. Import the icon from the installed package and use it in your application using either [icon library](./icon-library.md) or [explicit references](./explicit-reference.md) approach. -Packages prefixed with `free` are available for everybody, while packages prefixed with `pro` and `sharp` require a [Font Awesome Pro](https://fontawesome.com/plans) subscription and [additional configuration](https://fontawesome.com/docs/web/setup/packages#_1-configure-access). +Packages prefixed with `free` are available for everybody, but other packages require a [Font Awesome Pro](https://fontawesome.com/plans) subscription and [additional configuration](https://fontawesome.com/docs/web/setup/packages#_1-configure-access). ## Solid Icons diff --git a/projects/schematics/src/ng-add/schema.json b/projects/schematics/src/ng-add/schema.json index 000f868..bb8ee7a 100644 --- a/projects/schematics/src/ng-add/schema.json +++ b/projects/schematics/src/ng-add/schema.json @@ -67,27 +67,67 @@ }, { "value": "pro-solid", - "label": "Pro Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "label": "Pro Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]" }, { "value": "pro-regular", - "label": "Pro Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "label": "Pro Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]" }, { "value": "pro-light", - "label": "Pro Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "label": "Pro Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "pro-thin", + "label": "Pro Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]" }, { "value": "pro-duotone", - "label": "Pro Duotone Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "label": "Pro Duotone Icons [ Requires Pro plan: https://fontawesome.com/plans ]" }, { - "value": "pro-thin", - "label": "Pro Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "value": "duotone-regular", + "label": "Duotone Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "duotone-light", + "label": "Duotone Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "duotone-thin", + "label": "Duotone Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]" }, { "value": "sharp-solid", - "label": "Sharp Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + "label": "Sharp Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-regular", + "label": "Sharp Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-light", + "label": "Sharp Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-thin", + "label": "Sharp Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-duotone-solid", + "label": "Sharp Duotone Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-duotone-regular", + "label": "Sharp Duotone Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-duotone-light", + "label": "Sharp Duotone Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]" + }, + { + "value": "sharp-duotone-thin", + "label": "Sharp Duotone Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]" } ] } diff --git a/projects/schematics/src/ng-add/schema.ts b/projects/schematics/src/ng-add/schema.ts index 6b5c79f..e71bdaf 100644 --- a/projects/schematics/src/ng-add/schema.ts +++ b/projects/schematics/src/ng-add/schema.ts @@ -13,8 +13,18 @@ export interface Schema { | 'pro-solid' | 'pro-regular' | 'pro-light' - | 'pro-duotone' | 'pro-thin' + | 'pro-duotone' + | 'duotone-regular' + | 'duotone-light' + | 'duotone-thin' | 'sharp-solid' + | 'sharp-regular' + | 'sharp-light' + | 'sharp-thin' + | 'sharp-duotone-solid' + | 'sharp-duotone-regular' + | 'sharp-duotone-light' + | 'sharp-duotone-thin' )[]; }