-
Notifications
You must be signed in to change notification settings - Fork 473
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/material-design-icons
- Loading branch information
Showing
10,630 changed files
with
73,007 additions
and
1,455 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
9 changes: 9 additions & 0 deletions
9
projects/demo/src/modules/components/icons-material/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,9 @@ | ||
<tui-icon | ||
icon="@tui.material.round.brightness_medium" | ||
[style.color]="'var(--tui-background-accent-1)'" | ||
/> | ||
|
||
<img | ||
alt="" | ||
[src]="'@tui.material.outlined.settings' | tuiIcon" | ||
/> |
4 changes: 4 additions & 0 deletions
4
projects/demo/src/modules/components/icons-material/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,4 @@ | ||
:host { | ||
display: flex; | ||
gap: 0.625rem; | ||
} |
20 changes: 20 additions & 0 deletions
20
projects/demo/src/modules/components/icons-material/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,20 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiIcon, TuiIconPipe, tuiIconResolverProvider} from '@taiga-ui/core'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiIcon, TuiIconPipe], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
providers: [ | ||
tuiIconResolverProvider( | ||
(name) => | ||
`assets/taiga-ui/material-icons${name.replace('@tui.material', '').split('.').join('/')}.svg`, | ||
), | ||
], | ||
}) | ||
export default class Example {} |
19 changes: 19 additions & 0 deletions
19
projects/demo/src/modules/components/icons-material/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/material-design-icons/src", | ||
"output": "assets/taiga-ui/material-icons" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
40 changes: 40 additions & 0 deletions
40
projects/demo/src/modules/components/icons-material/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,40 @@ | ||
<tui-doc-page | ||
header="Icons material" | ||
package="material-design-icons" | ||
type="components" | ||
> | ||
<p> | ||
Latest optimized SVGs | ||
<a | ||
href="https://marella.me/material-design-icons/demo/font/" | ||
tuiLink | ||
> | ||
material icons | ||
</a> | ||
for your Material Design. | ||
</p> | ||
|
||
<tui-accordion> | ||
<tui-accordion-item [open]="false"> | ||
Getting started | ||
|
||
<ng-template tuiAccordionItemContent> | ||
<tui-doc-code code="npm i @taiga-ui/material-design-icons" /> | ||
|
||
<tui-doc-code | ||
filename="angular.json" | ||
[code]="assets" | ||
/> | ||
</ng-template> | ||
</tui-accordion-item> | ||
</tui-accordion> | ||
|
||
<ng-template pageTab> | ||
<tui-doc-example | ||
id="basic" | ||
heading="Basic" | ||
[component]="1 | tuiComponent" | ||
[content]="1 | tuiExample" | ||
/> | ||
</ng-template> | ||
</tui-doc-page> |
15 changes: 15 additions & 0 deletions
15
projects/demo/src/modules/components/icons-material/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,15 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {TuiDemo} from '@demo/utils'; | ||
import {TuiAccordion} from "@taiga-ui/kit"; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiDemo, TuiAccordion], | ||
templateUrl: './index.html', | ||
changeDetection, | ||
providers: [], | ||
}) | ||
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
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
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", | ||
"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/material-design-icons", | ||
"version": "4.0.0", | ||
"description": "Feather icons for Taiga UI", | ||
"keywords": [ | ||
"angular", | ||
"icon", | ||
"svg", | ||
"material-design" | ||
], | ||
"homepage": "https://github.com/taiga-family/taiga-ui", | ||
"repository": "https://github.com/taiga-family/taiga-ui", | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@material-design-icons/svg": "0.14.13" | ||
} | ||
} |
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,43 @@ | ||
{ | ||
"name": "material-design-icons", | ||
"$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": { | ||
"command": "ts-node ./{projectRoot}/scripts/prepare-icons.ts" | ||
} | ||
}, | ||
"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 | ||
} | ||
] | ||
} | ||
} | ||
} |
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,34 @@ | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
|
||
(function main(): void { | ||
const dest = | ||
process.argv[2] || | ||
path.join(process.cwd(), 'projects', 'material-design-icons', 'src'); | ||
const types = ['filled', 'outlined', 'round', 'sharp', 'two-tone']; | ||
|
||
types.forEach((type) => { | ||
const src = path.join( | ||
process.cwd(), | ||
'node_modules', | ||
'@material-design-icons', | ||
'svg', | ||
type, | ||
); | ||
|
||
fs.readdirSync(src).forEach((filename: string) => { | ||
const content = fs | ||
.readFileSync(path.join(src, filename), 'utf-8') | ||
.replace(/class="[a-zA-Z0-9:;.\s()\-,]*"/, '') | ||
.replaceAll( | ||
/<(circle|ellipse|line|polygon|polyline|path|rect)/g, | ||
'<$1 vector-effect="non-scaling-stroke"', | ||
); | ||
|
||
const filePath = path.join(dest, type, filename); | ||
|
||
fs.mkdirSync(path.dirname(filePath), {recursive: true}); | ||
fs.writeFileSync(filePath, content); | ||
}); | ||
}); | ||
})(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.