Commit Graph

36 Commits

Author SHA1 Message Date
drinking-code
dca4f121b8
feat: Update tags.json
Thank you, @drinking-code! 🙌
2020-02-07 08:50:59 -08:00
Max Reynolds
91118a67b6 feat: Update tags.json (#797) 2019-12-10 11:57:57 -08:00
Cole Bemis
10e4e38ae1 feat: Add framer icon 2019-06-06 09:21:49 -07:00
Cole Bemis
8f658193d2 feat: Add hexagon icon 2019-03-30 10:22:17 -07:00
Cole Bemis
74aafa1b4e feat: Add codesandbox icon 2019-03-30 10:22:17 -07:00
Ash Guillaume
5d42ac8398
Merge pull request #549 from feathericons/add-x-octagon
Add x-octagon icon
2019-02-26 10:50:35 -08:00
Cole Bemis
6cdea52f27 feat: Add x-octagon icon 2019-02-25 22:35:05 -08:00
Cole Bemis
eb106953ae feat: Add figma icon 2019-02-25 22:29:30 -08:00
Ash Guillaume
0a130b77e0 feat: Add pen-tool icon (#522) 2019-01-29 10:14:03 -08:00
Ash Guillaume
55c84ac47c feat: Add mouse-pointer icon 2019-01-28 20:29:10 -08:00
Luke Deen Taylor
fff965df89 fix: Add tags for search icon 2019-01-27 20:31:14 -08:00
Ash Guillaume
8da557c9dd feat: Add key icon 2019-01-24 22:20:34 -08:00
Cole Bemis
fcd491c8a2 feat: Add smile, frown and meh emoji icons 2018-12-23 01:59:36 -08:00
Cole Bemis
61803f2129 feat: Add coffee icon 2018-10-27 21:05:59 -07:00
Cole Bemis
1da9dd43b2 test: Track code coverage 2018-05-17 23:19:02 -07:00
Cole Bemis
32810336ec test: Test replace() in node env 2018-05-17 23:08:17 -07:00
Cole Bemis
031f305c83 feat: Add icon 2018-03-01 23:05:04 -08:00
Cole Bemis
1180d2d8b4 feat: Add gift icon 2018-03-01 23:05:04 -08:00
Afnizar Nur Ghifari
6999eeba10
Fix typo on icon tags 2017-12-22 13:41:11 +07:00
Afnizar Nur Ghifari
9e681f8f89
Add icon tags 2017-12-22 13:14:05 +07:00
Cole Bemis
483a3f1738 feat: Add more tags 2017-12-15 00:28:36 -08:00
Cole Bemis
f58b75faf0 feat: Add more tags to tags.json 2017-12-14 02:01:19 -08:00
Cole Bemis
f243624fbd
feat: Update API
BREAKING CHANGE: 

Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'

/* AFTER */
feather.icons.x
// {
//    name: 'x',
//    contents: '<line ... /><line ... />`,
//    tags: ['cancel', 'close', 'delete', 'remove'],
//    attrs: {
//      class: 'feather feather-x',
//      xmlns: 'http://www.w3.org/2000/svg',
//      width: 24,
//      height: 24,
//      viewBox: '0 0 24 24',
//      fill: 'none',
//      stroke: 'currentColor',
//      'stroke-width': 2,
//      'stroke-linecap': 'round',
//      'stroke-linejoin': 'round',
//    }
// }
```

`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')

/* AFTER */
feather.icons.x.toSvg()
```

`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:

```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-18 20:00:16 -08:00
Cole Bemis
0dc2bf5c9d
build: Add process-svgs script (#216) 2017-11-13 08:13:11 -08:00
Cole Bemis
3a3df71e3f refactor(replace): Replace console.error with throw new Error 2017-11-04 21:09:13 -07:00
Brad Bohen
e80f80524a feat: Updated replace() to pass id from placeholder element (#193) 2017-10-11 14:05:10 -07:00
severn101
8926f5fb9b fix: Fix adding unwanted class 'null' 2017-08-04 15:33:11 -07:00
Cole Bemis
71f502fc95 feat: Add JavaScript library
Add JavaScript library that includes an `icons` object, `toSvg` function and `replace` function.
2017-07-03 15:53:34 -07:00
Cole Bemis
e1ea1aada8 Clear gh-pages branch 2017-02-21 22:45:06 -08:00
Cole Bemis
dbb4c1c80c Create IconGrid component 2017-01-28 22:29:48 -08:00
Cole Bemis
6ebc2a095b Create IconContainer component 2017-01-28 22:19:59 -08:00
Cole Bemis
a85b7b6369 Create Icon component 2017-01-28 22:01:30 -08:00
Cole Bemis
4c6b7ad3b8 Add vuex 2017-01-28 22:01:18 -08:00
Cole Bemis
2f70a91dce Set up vie-loader 2017-01-28 15:15:20 -08:00
Cole Bemis
9ce3c68a9b Import Vue 2017-01-28 15:03:26 -08:00
Cole Bemis
4bb2702015 Move script to main.js 2017-01-28 13:30:51 -08:00