@fortawesome/vue-fontawesome 3.0.0-3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +18 -28
- package/index.d.ts +1 -1
- package/index.es.js +366 -247
- package/index.js +651 -532
- package/package.json +46 -23
- package/src/components/FontAwesomeIcon.js +65 -24
- package/src/components/FontAwesomeLayers.js +4 -4
- package/src/components/FontAwesomeLayersText.js +14 -11
- package/src/converter.js +15 -18
- package/src/utils.js +10 -1
- package/.babelrc +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -24
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/workflows/ci.yml +0 -29
- package/.tool-versions +0 -2
- package/CODE_OF_CONDUCT.md +0 -74
- package/CONTRIBUTING.md +0 -57
- package/DEVELOPMENT.md +0 -46
- package/bin/dev +0 -3
- package/bin/setup +0 -8
- package/examples/vue-awesome-example/.browserslistrc +0 -3
- package/examples/vue-awesome-example/.editorconfig +0 -7
- package/examples/vue-awesome-example/.eslintrc.js +0 -18
- package/examples/vue-awesome-example/babel.config.js +0 -5
- package/examples/vue-awesome-example/package-lock.json +0 -20468
- package/examples/vue-awesome-example/package.json +0 -38
- package/examples/vue-awesome-example/public/favicon.ico +0 -0
- package/examples/vue-awesome-example/public/index.html +0 -18
- package/examples/vue-awesome-example/src/App.vue +0 -74
- package/examples/vue-awesome-example/src/main.ts +0 -19
- package/examples/vue-awesome-example/src/shims-vue.d.ts +0 -5
- package/examples/vue-awesome-example/tsconfig.json +0 -39
- package/examples/vue-awesome-example/vue.config.js +0 -3
- package/rollup.config.js +0 -55
- package/src/components/__fixtures__/helpers.js +0 -10
- package/src/components/__fixtures__/icons.js +0 -23
- package/src/components/__tests__/FontAwesomeIcon.test.js +0 -285
- package/src/components/__tests__/FontAwesomeLayers.test.js +0 -66
- package/src/components/__tests__/FontAwesomeLayersText.test.js +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [3.0.0](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.0) - 2022-06-07
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
* New animations for bounce and shake
|
|
13
|
+
* Feature to call icons using a string format
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
* Animations for beat, fade, beat-fade, flash, spin-pulse, and spin-reverse
|
|
18
|
+
* Tee-shirt sizes to include 2xs, lg, xl, and 2xl
|
|
19
|
+
* Flip animation when used by itself
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## [3.0.0-5](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.0-5) - 2021-10-18
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
* Include 1.3.0-beta versions in peer dependencies
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## [3.0.0-4](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.0-4) - 2021-05-23
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
* Fix reactivity #297
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
8
39
|
## [3.0.0-3](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.0-3) - 2020-12-09
|
|
9
40
|
|
|
10
41
|
### Fixed
|
package/README.md
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
<!-- toc -->
|
|
22
22
|
|
|
23
23
|
- [Introduction](#introduction)
|
|
24
|
-
* [CodeSandbox Starter Sample 🚀](#codesandbox-starter-sample-%F0%9F%9A%80)
|
|
25
24
|
* [Upgrading Font Awesome?](#upgrading-font-awesome)
|
|
26
25
|
* [Get started](#get-started)
|
|
27
26
|
* [Learn about our new SVG implementation](#learn-about-our-new-svg-implementation)
|
|
@@ -69,10 +68,6 @@
|
|
|
69
68
|
|
|
70
69
|
Hey there! We're glad you're here...
|
|
71
70
|
|
|
72
|
-
### CodeSandbox Starter Sample 🚀
|
|
73
|
-
|
|
74
|
-
Here's a [CodeSandbox Starter Sample](https://codesandbox.io/s/github/FortAwesome/vue-fontawesome/tree/master/examples/vue-cli-webpack) on how to display Solid, Regular, and Brand icons [using the Icon Library](https://github.com/FortAwesome/vue-fontawesome#usage).
|
|
75
|
-
|
|
76
71
|
### Upgrading Font Awesome?
|
|
77
72
|
|
|
78
73
|
If you've used Font Awesome in the past (version 4 or older) there are some
|
|
@@ -109,17 +104,15 @@ $ yarn add @fortawesome/fontawesome-svg-core
|
|
|
109
104
|
$ yarn add @fortawesome/free-solid-svg-icons
|
|
110
105
|
```
|
|
111
106
|
|
|
112
|
-
**
|
|
107
|
+
**Install this Vue component**
|
|
113
108
|
|
|
114
109
|
```
|
|
115
|
-
$ npm i --save @fortawesome/vue-fontawesome@
|
|
110
|
+
$ npm i --save @fortawesome/vue-fontawesome@prerelease
|
|
116
111
|
```
|
|
117
112
|
|
|
118
|
-
|
|
113
|
+
The `prerelease` tag is compatible with Vue 3 but not Vue 2.
|
|
119
114
|
|
|
120
|
-
|
|
121
|
-
$ npm i --save @fortawesome/vue-fontawesome@prerelease
|
|
122
|
-
```
|
|
115
|
+
If you are still using Vue 2.x you can [read about usage here](https://github.com/FortAwesome/vue-fontawesome/tree/2.x).
|
|
123
116
|
|
|
124
117
|
## Add more styles or Pro icons
|
|
125
118
|
|
|
@@ -148,27 +141,23 @@ $ npm i --save @fortawesome/pro-duotone-svg-icons
|
|
|
148
141
|
|
|
149
142
|
The following examples are based on a project configured with [vue-cli](https://github.com/vuejs/vue-cli).
|
|
150
143
|
|
|
144
|
+
**Registering the component**
|
|
145
|
+
|
|
151
146
|
`src/main.js`
|
|
152
147
|
|
|
153
148
|
```javascript
|
|
154
|
-
import
|
|
155
|
-
import App from './App'
|
|
149
|
+
import { createApp } from 'vue'
|
|
150
|
+
import App from './App.vue'
|
|
156
151
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
157
152
|
import { faUserSecret } from '@fortawesome/free-solid-svg-icons'
|
|
158
153
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
159
154
|
|
|
160
155
|
library.add(faUserSecret)
|
|
161
156
|
|
|
162
|
-
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
|
163
|
-
|
|
164
|
-
Vue.config.productionTip = false
|
|
165
157
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
components: { App },
|
|
170
|
-
template: '<App/>'
|
|
171
|
-
})
|
|
158
|
+
createApp(App)
|
|
159
|
+
.component('font-awesome-icon', FontAwesomeIcon)
|
|
160
|
+
.mount('#app')
|
|
172
161
|
```
|
|
173
162
|
|
|
174
163
|
`src/App.vue`
|
|
@@ -225,7 +214,7 @@ Using the Pro packages requires [additional configuration](https://fontawesome.c
|
|
|
225
214
|
|
|
226
215
|
```javascript
|
|
227
216
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
228
|
-
|
|
217
|
+
// Note we are using the Pro style here
|
|
229
218
|
import { faUserSecret } from '@fortawesome/pro-regular-svg-icons'
|
|
230
219
|
|
|
231
220
|
library.add(faUserSecret)
|
|
@@ -239,7 +228,7 @@ library.add(faUserSecret)
|
|
|
239
228
|
|
|
240
229
|
```javascript
|
|
241
230
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
242
|
-
|
|
231
|
+
// Note we are using the Pro style here
|
|
243
232
|
import { faUserSecret } from '@fortawesome/pro-light-svg-icons'
|
|
244
233
|
|
|
245
234
|
library.add(faUserSecret)
|
|
@@ -253,7 +242,7 @@ library.add(faUserSecret)
|
|
|
253
242
|
|
|
254
243
|
```javascript
|
|
255
244
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
256
|
-
|
|
245
|
+
// Note we are using the Pro style here
|
|
257
246
|
import { faUserSecret } from '@fortawesome/pro-duotone-svg-icons'
|
|
258
247
|
|
|
259
248
|
library.add(faUserSecret)
|
|
@@ -309,8 +298,8 @@ The `icon` property of the `FontAwesomeIcon` component can be used in the follow
|
|
|
309
298
|
<font-awesome-icon icon="spinner" />
|
|
310
299
|
<font-awesome-icon icon="align-left" />
|
|
311
300
|
|
|
312
|
-
<font-awesome-icon :icon="['fas', 'spinner']" />
|
|
313
|
-
<font-awesome-icon :icon="['fas', 'align-left']" />
|
|
301
|
+
<font-awesome-icon :icon="['fas', 'spinner']" /> // Same as above
|
|
302
|
+
<font-awesome-icon :icon="['fas', 'align-left']" /> // Same as above
|
|
314
303
|
```
|
|
315
304
|
|
|
316
305
|
For the above to work you must add the `spinner` and `align-left` icon to the library.
|
|
@@ -326,7 +315,7 @@ In the event that you are using an icon with a multi-word name please note that
|
|
|
326
315
|
you would need to pass in the icon name using _kebab-case_ as opposed to _camelCase_.
|
|
327
316
|
|
|
328
317
|
```javascript
|
|
329
|
-
<font-awesome-icon icon="address-card" />
|
|
318
|
+
<font-awesome-icon icon="address-card" /> // import { faAddressCard } from '@fortawesome/free-solid-svg-icons'
|
|
330
319
|
```
|
|
331
320
|
|
|
332
321
|
#### Explicit prefix (note the Vue bind shorthand because this uses an array)
|
|
@@ -857,6 +846,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
|
|
|
857
846
|
| <img src="https://github.com/tyranteon.png?size=72" /> | Tyranteon | [@tyranteon](https://github.com/tyranteon) |
|
|
858
847
|
| <img src="https://github.com/rigma.png?size=72" /> | Romain Failla | [@rigma](https://github.com/rigma) |
|
|
859
848
|
| <img src="https://github.com/viniciuslrangel.png?size=72" /> | Vinicius Rangel | [@viniciuslrangel](https://github.com/viniciuslrangel) |
|
|
849
|
+
| <img src="https://github.com/otijhuis.png?size=72" /> | Okke Tijhuis | [@otijhuis](https://github.com/otijhuis) |
|
|
860
850
|
|
|
861
851
|
If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.
|
|
862
852
|
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ComponentPublicInstance } from 'vue'
|
|
|
3
3
|
interface FontAwesomeIconProps {
|
|
4
4
|
border: boolean
|
|
5
5
|
fixedWidth: boolean
|
|
6
|
-
flip: 'horizontal' | 'vertical' | 'both'
|
|
6
|
+
flip: boolean | 'horizontal' | 'vertical' | 'both'
|
|
7
7
|
icon: object | Array<string> | string
|
|
8
8
|
mask: object | Array<string> | string | null
|
|
9
9
|
listItem: boolean
|