This commit is contained in:
2024-09-28 17:37:29 +02:00
parent 8dfafa9404
commit fb4d566007
64 changed files with 32325 additions and 573 deletions
+20
View File
@@ -0,0 +1,20 @@
Pictogrammers Free License
--------------------------
This icon collection is released as free, open source, and GPL friendly by
the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
for commercial projects, open source projects, or anything really.
# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
Some of the icons are redistributed under the Apache 2.0 license. All other
icons are either redistributed under their respective licenses or are
distributed under the Apache 2.0 license.
# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
All web and desktop fonts are distributed under the Apache 2.0 license. Web
and desktop fonts contain some icons that are redistributed under the Apache
2.0 license. All other icons are either redistributed under their respective
licenses or are distributed under the Apache 2.0 license.
# Code: MIT (https://opensource.org/licenses/MIT)
The MIT license applies to all non-font and non-icon files.
+34
View File
@@ -0,0 +1,34 @@
> *Note:* Please use the main [MaterialDesign](https://github.com/Templarian/MaterialDesign/issues) repo to report issues. This repo is for distribution of the JavaScript files only.
# JavaScript/TypeScript - Material Design Icons
JavaScript and TypeScript distribution for the [Material Design Icons](https://materialdesignicons.com). This module contains all the path data for all icons.
```
npm install @mdi/js
```
## Usage
```js
import { mdiAccount } from '@mdi/js'
console.log(mdiAccount); // "M...Z"
```
> Note: [WebPack](https://webpack.js.org) 4 or [Rollup](https://rollupjs.org) will tree shake unused icons.
## Related Packages
[NPM @MDI Organization](https://npmjs.com/org/mdi)
- React: [MaterialDesign-React](https://github.com/Templarian/MaterialDesign-React)
- SVG: [MaterialDesign-SVG](https://github.com/Templarian/MaterialDesign-SVG)
- Webfont: [MaterialDesign-Webfont](https://github.com/Templarian/MaterialDesign-Webfont)
- Font-Build: [MaterialDesign-Font-Build](https://github.com/Templarian/MaterialDesign-Font-Build)
- Desktop Font: [MaterialDesign-Font](https://github.com/Templarian/MaterialDesign-Font)
## Learn More
- [MaterialDesignIcons.com](https://materialdesignicons.com)
- https://github.com/Templarian/MaterialDesign
+18
View File
@@ -0,0 +1,18 @@
const util = require('@mdi/util');
const meta = util.getMeta(true);
const find = /(\-\w)/g;
const convert = function(matches){
return matches[1].toUpperCase();
};
const lines = meta.map(icon => {
let name = icon.name.replace(find, convert);
name = `${name[0].toUpperCase()}${name.slice(1)}`;
return `export const mdi${name}: string = "${icon.path}";`;
});
const output = `// Material Design Icons v${util.getVersion()}\n${lines.join('\n')}`;
util.write("mdi.ts", output);
+7447
View File
File diff suppressed because it is too large Load Diff
+7599
View File
File diff suppressed because it is too large Load Diff
+7447
View File
File diff suppressed because it is too large Load Diff
+7448
View File
File diff suppressed because it is too large Load Diff
+37
View File
@@ -0,0 +1,37 @@
{
"name": "@mdi/js",
"version": "7.4.47",
"description": "Dist for Material Design Icons for JS/TypeScript",
"main": "commonjs/mdi.js",
"module": "mdi.js",
"types": "mdi.d.ts",
"sideEffects": false,
"scripts": {
"build": "npm update && npm install && npm run buildjs && npm run es5 && npm run commonjs",
"buildjs": "node build.js",
"es5": "tsc -d mdi.ts --target es5 --module es2015",
"commonjs": "tsc -d mdi.ts --outDir commonjs",
"umd": "tsc -d mdi.ts --module UMD --outDir umd",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Templarian/MaterialDesign-JS.git"
},
"keywords": [
"Material",
"Design",
"Icons",
"mdi"
],
"author": "Austin Andrews",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Templarian/MaterialDesign-JS/issues"
},
"homepage": "https://github.com/Templarian/MaterialDesign-JS#readme",
"devDependencies": {
"@mdi/svg": "^7.4.47",
"@mdi/util": "^0.3.2"
}
}