-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
@taiga-ui/icons-fontawesome
(#8493)
Co-authored-by: taiga-family-bot <taiga-family-bot@users.noreply.github.com>
- Loading branch information
1 parent
2111e2d
commit 131b3ed
Showing
2,353 changed files
with
19,403 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
projects/demo/src/modules/icons/fontawesome/examples/1/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<tui-icon icon="@tui.fa.brands.google-play" /> | ||
|
||
<img | ||
alt="" | ||
[src]="'@tui.fa.solid.camera-retro' | tuiIcon" | ||
/> | ||
|
||
<tui-icon | ||
icon="@tui.fa.brands.skype" | ||
[style.color]="'var(--tui-background-accent-1)'" | ||
/> | ||
|
||
<tui-icon icon="@tui.fa.regular.face-sad-cry" /> | ||
|
||
<tui-icon icon="@tui.fa.solid.truck-medical" /> |
8 changes: 8 additions & 0 deletions
8
projects/demo/src/modules/icons/fontawesome/examples/1/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:host { | ||
display: flex; | ||
gap: 0.625rem; | ||
} | ||
|
||
img { | ||
width: 1.5rem; | ||
} |
14 changes: 14 additions & 0 deletions
14
projects/demo/src/modules/icons/fontawesome/examples/1/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiIcon, TuiIconPipe} from '@taiga-ui/core'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiIcon, TuiIconPipe], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export default class Example {} |
19 changes: 19 additions & 0 deletions
19
projects/demo/src/modules/icons/fontawesome/examples/assets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```json | ||
{ | ||
"projects": { | ||
"demo": { | ||
"architect": { | ||
"build": { | ||
"assets": [ | ||
{ | ||
"glob": "**/*", | ||
"input": "node_modules/@taiga-ui/icons-fontawesome/src", | ||
"output": "assets/taiga-ui/icons/fontawesome" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<tui-doc-page | ||
header="Fontawesome" | ||
package="icons-fontawesome" | ||
type="icons" | ||
> | ||
<ng-template pageTab> | ||
<h2 class="title">Fontawesome icons pack</h2> | ||
|
||
<p> | ||
Open source theme for Taiga UI uses processed | ||
<a | ||
href="https://fontawesome.com/" | ||
rel="noreferrer" | ||
target="_blank" | ||
tuiLink | ||
> | ||
Fontawesome Icons (free pack). | ||
</a> | ||
You can browse all the icons from this pack and find the one that suits you | ||
<a | ||
href="https://fontawesome.com/search?m=free&o=r" | ||
rel="noreferrer" | ||
target="_blank" | ||
tuiLink | ||
> | ||
here. | ||
</a> | ||
</p> | ||
|
||
<tui-doc-example | ||
id="basic" | ||
heading="Basic" | ||
[component]="1 | tuiComponent" | ||
[content]="1 | tuiExample" | ||
/> | ||
</ng-template> | ||
|
||
<ng-template pageTab="Setup"> | ||
<tui-doc-code code="npm i @taiga-ui/icons-fontawesome" /> | ||
|
||
<tui-doc-code | ||
filename="angular.json" | ||
[code]="assets" | ||
/> | ||
</ng-template> | ||
</tui-doc-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {TuiDemo} from '@demo/utils'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiDemo], | ||
templateUrl: './index.html', | ||
changeDetection, | ||
}) | ||
export default class Page { | ||
protected readonly assets = import('./examples/assets.md?raw'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Taiga UI — Icons | ||
|
||
[![npm version](https://img.shields.io/npm/v/@taiga-ui/icons.svg)](https://npmjs.com/package/@taiga-ui/icons) | ||
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@taiga-ui/icons)](https://bundlephobia.com/result?p=@taiga-ui/icons) | ||
[![Discord](https://img.shields.io/discord/748677963142135818?color=7289DA&label=%23taiga-ui&logo=discord&logoColor=white)](https://discord.gg/Us8d8JVaTg) | ||
|
||
[Website](https://taiga-ui.dev) • [Documentation](https://taiga-ui.dev/getting-started) • | ||
[Core team](https://github.com/taiga-family/taiga-ui/#core-team) | ||
|
||
> A set of vector icons used by Taiga UI | ||
It's a part of [**Taiga UI**](https://github.com/taiga-family/taiga-ui) that is fully-treeshakable Angular UI Kit | ||
consisting of multiple base libraries and several add-ons | ||
|
||
## How to install | ||
|
||
``` | ||
npm i @taiga-ui/icons | ||
``` | ||
|
||
Don't forget that Taiga UI is fully-treeshakable. **You can import even just one entity from our library** and be sure | ||
that there is no redundant code in your bundle. Bundlphobia badge shows size of the whole library. | ||
|
||
## Docs | ||
|
||
See our [Documentation](https://taiga-ui.dev/getting-started) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", | ||
"assets": [ | ||
"src" | ||
], | ||
"allowedNonPeerDependencies": [ | ||
"." | ||
], | ||
"dest": "../../dist/icons-fontawesome", | ||
"lib": { | ||
"entryFile": "./index.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "@taiga-ui/icons-fontawesome", | ||
"version": "4.0.0", | ||
"description": "Fontawesome icons for Taiga UI", | ||
"keywords": [ | ||
"angular", | ||
"icon", | ||
"svg", | ||
"fontawesome" | ||
], | ||
"homepage": "https://github.com/taiga-family/taiga-ui", | ||
"repository": "https://github.com/taiga-family/taiga-ui", | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@fortawesome/fontawesome-free": "6.6.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "icons-fontawesome", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "projects/{projectName}", | ||
"projectType": "library", | ||
"prefix": "tui", | ||
"implicitDependencies": ["!testing"], | ||
"targets": { | ||
"build": { | ||
"executor": "@angular-devkit/build-angular:ng-packagr", | ||
"outputs": ["{workspaceRoot}/dist/{projectName}"], | ||
"options": { | ||
"tsConfig": "tsconfig.build.json", | ||
"project": "{projectRoot}/ng-package.json" | ||
} | ||
}, | ||
"prebuild": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"parallel": false, | ||
"commands": [ | ||
"ts-node ./{projectRoot}/scripts/prepare-icons.ts", | ||
"prettier ./{projectRoot}/src/* --write" | ||
] | ||
} | ||
}, | ||
"prepublish": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "cp ./LICENSE ./dist/{projectName}" | ||
} | ||
}, | ||
"publish": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" | ||
}, | ||
"dependsOn": [ | ||
{ | ||
"target": "prepublish", | ||
"params": "ignore", | ||
"dependencies": false | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.