@nulogy/icons
Advanced tools
Comparing version 4.1.3 to 4.10.2
@@ -10,3 +10,5 @@ { | ||
"add": { | ||
"path": ["M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"], | ||
"path": [ | ||
"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -21,3 +23,5 @@ }, | ||
"arrowForward": { | ||
"path": ["M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"], | ||
"path": [ | ||
"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -38,3 +42,5 @@ }, | ||
"calendarToday": { | ||
"path": ["M22 3h-3V1h-2v2H7V1H5v2H2v20h20V3zm-2 18H4V8h16v13z"], | ||
"path": [ | ||
"M22 3h-3V1h-2v2H7V1H5v2H2v20h20V3zm-2 18H4V8h16v13z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -55,3 +61,5 @@ }, | ||
"check": { | ||
"path": ["M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"], | ||
"path": [ | ||
"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -78,3 +86,5 @@ }, | ||
"downArrow": { | ||
"path": ["M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"], | ||
"path": [ | ||
"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -107,7 +117,11 @@ }, | ||
"filter": { | ||
"path": ["M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"], | ||
"path": [ | ||
"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
}, | ||
"getApp": { | ||
"path": ["M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"], | ||
"path": [ | ||
"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -122,3 +136,5 @@ }, | ||
"leftArrow": { | ||
"path": ["M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"], | ||
"path": [ | ||
"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -133,11 +149,17 @@ }, | ||
"maximize": { | ||
"path": ["M3 3h18v2H3z"], | ||
"path": [ | ||
"M3 3h18v2H3z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
}, | ||
"menu": { | ||
"path": ["M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"], | ||
"path": [ | ||
"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
}, | ||
"minimize": { | ||
"path": ["M6 19h12v2H6z"], | ||
"path": [ | ||
"M6 19h12v2H6z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -158,3 +180,5 @@ }, | ||
"publish": { | ||
"path": ["M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"], | ||
"path": [ | ||
"M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -181,3 +205,5 @@ }, | ||
"rightArrow": { | ||
"path": ["M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"], | ||
"path": [ | ||
"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -204,7 +230,11 @@ }, | ||
"sortDown": { | ||
"path": ["M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"], | ||
"path": [ | ||
"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
}, | ||
"sortUp": { | ||
"path": ["M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"], | ||
"path": [ | ||
"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -219,3 +249,5 @@ }, | ||
"upArrow": { | ||
"path": ["M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"], | ||
"path": [ | ||
"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -230,3 +262,5 @@ }, | ||
"warning": { | ||
"path": ["M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"], | ||
"path": [ | ||
"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" | ||
], | ||
"viewBox": "0 0 24 24" | ||
@@ -247,2 +281,2 @@ }, | ||
} | ||
} | ||
} |
@@ -0,1 +1,9 @@ | ||
## [4.10.2](https://github.com/nulogy/nds-icons/compare/v4.10.1...v4.10.2) (2020-10-22) | ||
### Bug Fixes | ||
* test release workflow ([28cc354](https://github.com/nulogy/nds-icons/commit/28cc354aed4f197c697f591e058c9d4146f04134)) | ||
* testing release workflow, removes semantic-release/git ([91e05a9](https://github.com/nulogy/nds-icons/commit/91e05a9bd238e7bfb95d5b8423a47ce6a51cd58d)) | ||
# Change Log | ||
@@ -10,17 +18,8 @@ | ||
## [4.1.2](https://github.com/nulogy/design-system/compare/v4.1.1...v4.1.2) (2020-07-23) | ||
### Reverts | ||
* Revert "chore: improve our directory structure (#719)" ([54c850b](https://github.com/nulogy/design-system/commit/54c850ba21d0e2659e639b444cc8962f712e7b98)), closes [#719](https://github.com/nulogy/design-system/issues/719) | ||
- Revert "chore: improve our directory structure (#719)" ([54c850b](https://github.com/nulogy/design-system/commit/54c850ba21d0e2659e639b444cc8962f712e7b98)), closes [#719](https://github.com/nulogy/design-system/issues/719) | ||
## [4.1.1](https://github.com/nulogy/design-system/compare/v4.1.0...v4.1.1) (2020-07-22) | ||
@@ -30,6 +29,2 @@ | ||
# [4.0.0](https://github.com/nulogy/design-system/compare/v3.11.0...v4.0.0) (2020-07-17) | ||
@@ -36,0 +31,0 @@ |
@@ -7,7 +7,7 @@ const fs = require("fs"); | ||
const parseSvg = svg => { | ||
const parseSvg = (svg) => { | ||
const { nodes } = new SVG(svg).report(); | ||
const path = getPath(nodes); | ||
const { | ||
properties: { viewBox } | ||
properties: { viewBox }, | ||
} = nodes; | ||
@@ -17,3 +17,3 @@ | ||
viewBox, | ||
path | ||
path, | ||
}; | ||
@@ -24,5 +24,5 @@ | ||
.filter( | ||
child => child.type === "path" && child.properties.fill !== "none" | ||
(child) => child.type === "path" && child.properties.fill !== "none" | ||
) | ||
.map(child => child.properties.d); | ||
.map((child) => child.properties.d); | ||
} | ||
@@ -33,4 +33,4 @@ }; | ||
.readdirSync(svgPath) | ||
.filter(file => /\.svg$/.test(file)) | ||
.map(file => { | ||
.filter((file) => /\.svg$/.test(file)) | ||
.map((file) => { | ||
const name = file.replace(".svg", ""); | ||
@@ -40,3 +40,3 @@ const svg = fs.readFileSync(`${svgPath}/${file}`); | ||
name, | ||
svg | ||
svg, | ||
}; | ||
@@ -43,0 +43,0 @@ }); |
MIT License | ||
Copyright (c) 2018 Ned Schwartz | ||
Copyright (c) 2020 Nulogy | ||
@@ -21,2 +21,2 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
{ | ||
"name": "@nulogy/icons", | ||
"version": "4.1.3", | ||
"version": "4.10.2", | ||
"description": "A collection of Nulogy's svg icons", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"homepage": "http://nulogy.design", | ||
"repository": "https://github.com/nulogy/design-system", | ||
"repository": "https://github.com/nulogy/nds-icons", | ||
"private": false, | ||
@@ -15,3 +15,5 @@ "publishConfig": { | ||
"scripts": { | ||
"icons": "node collect-icon-svgs" | ||
"build": "node collect-icon-svgs", | ||
"lint": "yarn prettier --check .", | ||
"lint:fix": "yarn prettier --write ." | ||
}, | ||
@@ -22,3 +24,18 @@ "dependencies": { | ||
}, | ||
"gitHead": "89caeb1e20d4fa19766ad1b48df33dddb5a68228" | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/commit-analyzer": "^8.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/github": "^7.1.1", | ||
"@semantic-release/npm": "^7.0.6", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"husky": "^4.3.0", | ||
"prettier": "2.1.2", | ||
"semantic-release": "^17.2.1" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-push": "yarn lint" | ||
} | ||
} | ||
} |
@@ -20,10 +20,7 @@ # @nulogy/icons | ||
1. Search [Material Icons](https://material.io/resources/icons/) for the icon you need | ||
2. Clone this repo (`git clone https://github.com/nulogy/design-system.git`) | ||
2. Clone this repo (`git clone https://github.com/nulogy/nds-icons.git`) | ||
3. Download svg and rename to desired icon name (in camelCase) | ||
4. Place svg in `/icons/assets/` folder | ||
5. In the `/icons` directory, run `yarn icons` to make the icon available to use | ||
6. In the `/components` directory run `yarn` | ||
7. Run `yarn start` and verify the icon was added correctly at [http://localhost:8080/?path=/story/icon--icon](http://localhost:8080/?path=/story/icon--icon) | ||
8. After verifying the icon is there, update storyshots with `yarn storyshots:update` | ||
9. Submit PR | ||
4. Place svg in `assets/` folder | ||
5. run `yarn && yarn build` to make the icon available to use | ||
6. Submit PR | ||
@@ -30,0 +27,0 @@ ## 💬 Questions |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
29591
54
327
9
29