Skip to content

Commit

Permalink
Release 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed Oct 15, 2021
1 parent 654c1aa commit 4958c2c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

---

## [2.0.5](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.5) - 2021-10-15

### Added
* New sizes for `size` prop: 2xs, xl, 2xl
* New animation booleans: `beat`, `fade`, `flash`, `spin-pulse`, & `spin-reverse`

---

## [2.0.4](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.4) - 2021-10-15

### Fixed
Expand Down
27 changes: 26 additions & 1 deletion index.es.js
Expand Up @@ -305,7 +305,12 @@ function classList(props) {

var classes = (_classes = {
'fa-spin': props.spin,
'fa-spin-pulse': props.spinPulse,
'fa-spin-reverse': props.spinReverse,
'fa-pulse': props.pulse,
'fa-beat': props.beat,
'fa-fade': props.fade,
'fa-flash': props.flash,
'fa-fw': props.fixedWidth,
'fa-border': props.border,
'fa-li': props.listItem,
Expand Down Expand Up @@ -361,14 +366,26 @@ var FontAwesomeIcon = {
functional: true,

props: {
beat: {
type: Boolean,
default: false
},
border: {
type: Boolean,
default: false
},
fade: {
type: Boolean,
default: false
},
fixedWidth: {
type: Boolean,
default: false
},
flash: {
type: Boolean,
default: false
},
flip: {
type: String,
default: null,
Expand Down Expand Up @@ -414,13 +431,21 @@ var FontAwesomeIcon = {
type: String,
default: null,
validator: function validator(value) {
return ['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1;
return ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1;
}
},
spin: {
type: Boolean,
default: false
},
spinPulse: {
type: Boolean,
default: false
},
spinReverse: {
type: Boolean,
default: false
},
transform: {
type: [String, Object],
default: null
Expand Down
27 changes: 26 additions & 1 deletion index.js
Expand Up @@ -309,7 +309,12 @@

var classes = (_classes = {
'fa-spin': props.spin,
'fa-spin-pulse': props.spinPulse,
'fa-spin-reverse': props.spinReverse,
'fa-pulse': props.pulse,
'fa-beat': props.beat,
'fa-fade': props.fade,
'fa-flash': props.flash,
'fa-fw': props.fixedWidth,
'fa-border': props.border,
'fa-li': props.listItem,
Expand Down Expand Up @@ -365,14 +370,26 @@
functional: true,

props: {
beat: {
type: Boolean,
default: false
},
border: {
type: Boolean,
default: false
},
fade: {
type: Boolean,
default: false
},
fixedWidth: {
type: Boolean,
default: false
},
flash: {
type: Boolean,
default: false
},
flip: {
type: String,
default: null,
Expand Down Expand Up @@ -418,13 +435,21 @@
type: String,
default: null,
validator: function validator(value) {
return ['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1;
return ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1;
}
},
spin: {
type: Boolean,
default: false
},
spinPulse: {
type: Boolean,
default: false
},
spinReverse: {
type: Boolean,
default: false
},
transform: {
type: [String, Object],
default: null
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@fortawesome/vue-fontawesome",
"description": "Official Vue component for Font Awesome 5",
"version": "2.0.4",
"version": "2.0.5",
"main": "index.js",
"module": "index.es.js",
"jsnext:main": "index.es.js",
Expand Down

0 comments on commit 4958c2c

Please sign in to comment.