@fortawesome/vue-fontawesome 3.0.2 → 3.0.3

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 CHANGED
@@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ---
8
8
 
9
+ ## [3.0.3](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.3) - 2023-01-24
10
+
11
+ ### Changed
12
+
13
+ - NPM download `@fortawesome/vue-fontawesome-latest` is now set to Vue 3; to download the Vue 2 package you will have to use `@fortawesome/vue-fontawesome-latest-2`, which is described in our [Vue setup docs](https://fontawesome.com/docs/web/use-with/vue/#_3-add-the-vue-component)
14
+ - CI workflow updated for testing
15
+ - README.md and package.json updated for new contributor
16
+
17
+ ### Added
18
+
19
+ - Missing TypeScript animations added (github issue #[428](https://github.com/FortAwesome/vue-fontawesome/issues/428))
20
+ - Missing TypeScript sizes added (github issue #[415](https://github.com/FortAwesome/vue-fontawesome/issues/415))
21
+
22
+ ---
23
+
9
24
  ## [3.0.2](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.2) - 2022-11-07
10
25
 
11
26
  ### Changed
package/README.md CHANGED
@@ -34,12 +34,12 @@ To find the Vue setup, go to our [Web docs](https://fontawesome.com/docs/web) an
34
34
 
35
35
  Review the following docs before diving in:
36
36
 
37
- * [CONTRIBUTING.md](CONTRIBUTING.md)
38
- * [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
37
+ - [CONTRIBUTING.md](CONTRIBUTING.md)
38
+ - [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
39
39
 
40
40
  And then:
41
41
 
42
- * Check the existing [issues](https://github.com/FortAwesome/vue-fontawesome/issues) and see if you can help!
42
+ - Check the existing [issues](https://github.com/FortAwesome/vue-fontawesome/issues) and see if you can help!
43
43
 
44
44
  ## Contributors
45
45
 
@@ -60,6 +60,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
60
60
  | <img src="https://github.com/viniciuslrangel.png?size=72" /> | Vinicius Rangel | [@viniciuslrangel](https://github.com/viniciuslrangel) |
61
61
  | <img src="https://github.com/otijhuis.png?size=72" /> | Okke Tijhuis | [@otijhuis](https://github.com/otijhuis) |
62
62
  | <img src="https://github.com/parkeyparker.png?size=72" /> | Aaron Parker | [@parkeyparker](https://github.com/parkeyparker) |
63
+ | <img src="https://github.com/brandon-mork.png?size=72" /> | Brandon Mork | [@brandon-mork](https://github.com/brandon-mork) |
63
64
 
64
65
  If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.
65
66
 
package/index.d.ts CHANGED
@@ -12,12 +12,19 @@ interface FontAwesomeIconProps {
12
12
  pulse?: boolean
13
13
  rotation?: 90 | 180 | 270 | '90' | '180' | '270'
14
14
  swapOpacity?: boolean
15
- size?: 'lg' | 'xs' | 'sm' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x'
15
+ size?: '2xs' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x'
16
16
  spin?: boolean
17
17
  transform?: object | string
18
18
  symbol?: boolean | string
19
19
  title?: string
20
20
  inverse?: boolean
21
+ bounce?: boolean
22
+ shake?: boolean
23
+ beat?: boolean
24
+ fade?: boolean
25
+ beatFade?: boolean
26
+ spinPulse?: boolean
27
+ spinReverse?: boolean
21
28
  }
22
29
 
23
30
  interface FontAwesomeLayersProps {
package/index.es.js CHANGED
@@ -3,14 +3,17 @@ import { h, defineComponent, computed, watch } from 'vue';
3
3
 
4
4
  function ownKeys(object, enumerableOnly) {
5
5
  var keys = Object.keys(object);
6
+
6
7
  if (Object.getOwnPropertySymbols) {
7
8
  var symbols = Object.getOwnPropertySymbols(object);
8
9
  enumerableOnly && (symbols = symbols.filter(function (sym) {
9
10
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10
11
  })), keys.push.apply(keys, symbols);
11
12
  }
13
+
12
14
  return keys;
13
15
  }
16
+
14
17
  function _objectSpread2(target) {
15
18
  for (var i = 1; i < arguments.length; i++) {
16
19
  var source = null != arguments[i] ? arguments[i] : {};
@@ -20,8 +23,10 @@ function _objectSpread2(target) {
20
23
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
21
24
  });
22
25
  }
26
+
23
27
  return target;
24
28
  }
29
+
25
30
  function _typeof(obj) {
26
31
  "@babel/helpers - typeof";
27
32
 
@@ -31,6 +36,7 @@ function _typeof(obj) {
31
36
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32
37
  }, _typeof(obj);
33
38
  }
39
+
34
40
  function _defineProperty(obj, key, value) {
35
41
  if (key in obj) {
36
42
  Object.defineProperty(obj, key, {
@@ -42,26 +48,35 @@ function _defineProperty(obj, key, value) {
42
48
  } else {
43
49
  obj[key] = value;
44
50
  }
51
+
45
52
  return obj;
46
53
  }
54
+
47
55
  function _objectWithoutPropertiesLoose(source, excluded) {
48
56
  if (source == null) return {};
49
57
  var target = {};
50
58
  var sourceKeys = Object.keys(source);
51
59
  var key, i;
60
+
52
61
  for (i = 0; i < sourceKeys.length; i++) {
53
62
  key = sourceKeys[i];
54
63
  if (excluded.indexOf(key) >= 0) continue;
55
64
  target[key] = source[key];
56
65
  }
66
+
57
67
  return target;
58
68
  }
69
+
59
70
  function _objectWithoutProperties(source, excluded) {
60
71
  if (source == null) return {};
72
+
61
73
  var target = _objectWithoutPropertiesLoose(source, excluded);
74
+
62
75
  var key, i;
76
+
63
77
  if (Object.getOwnPropertySymbols) {
64
78
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
79
+
65
80
  for (i = 0; i < sourceSymbolKeys.length; i++) {
66
81
  key = sourceSymbolKeys[i];
67
82
  if (excluded.indexOf(key) >= 0) continue;
@@ -69,17 +84,22 @@ function _objectWithoutProperties(source, excluded) {
69
84
  target[key] = source[key];
70
85
  }
71
86
  }
87
+
72
88
  return target;
73
89
  }
90
+
74
91
  function _toConsumableArray(arr) {
75
92
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
76
93
  }
94
+
77
95
  function _arrayWithoutHoles(arr) {
78
96
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
79
97
  }
98
+
80
99
  function _iterableToArray(iter) {
81
100
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
82
101
  }
102
+
83
103
  function _unsupportedIterableToArray(o, minLen) {
84
104
  if (!o) return;
85
105
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -88,11 +108,15 @@ function _unsupportedIterableToArray(o, minLen) {
88
108
  if (n === "Map" || n === "Set") return Array.from(o);
89
109
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
90
110
  }
111
+
91
112
  function _arrayLikeToArray(arr, len) {
92
113
  if (len == null || len > arr.length) len = arr.length;
114
+
93
115
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
116
+
94
117
  return arr2;
95
118
  }
119
+
96
120
  function _nonIterableSpread() {
97
121
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
98
122
  }
@@ -236,12 +260,12 @@ var humps$1 = {exports: {}};
236
260
  var humps = humps$1.exports;
237
261
 
238
262
  var _excluded = ["class", "style"];
239
-
240
263
  /**
241
264
  * Converts a CSS style into a plain Javascript object.
242
265
  * @param {String} style The style to converts into a plain Javascript object.
243
266
  * @returns {Object}
244
267
  */
268
+
245
269
  function styleToObject(style) {
246
270
  return style.split(';').map(function (s) {
247
271
  return s.trim();
@@ -255,19 +279,19 @@ function styleToObject(style) {
255
279
  return output;
256
280
  }, {});
257
281
  }
258
-
259
282
  /**
260
283
  * Converts a CSS class list into a plain Javascript object.
261
284
  * @param {Array<String>} classes The class list to convert.
262
285
  * @returns {Object}
263
286
  */
287
+
288
+
264
289
  function classToObject(classes) {
265
290
  return classes.split(/\s+/).reduce(function (output, className) {
266
291
  output[className] = true;
267
292
  return output;
268
293
  }, {});
269
294
  }
270
-
271
295
  /**
272
296
  * Converts a FontAwesome abstract element of an icon into a Vue VNode.
273
297
  * @param {AbstractElement | String} abstractElement The element to convert.
@@ -275,44 +299,50 @@ function classToObject(classes) {
275
299
  * @param {Object} attrs The user-defined native HTML attributes.
276
300
  * @returns {VNode}
277
301
  */
302
+
303
+
278
304
  function convert(abstractElement) {
279
305
  var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
280
306
  var attrs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
307
+
281
308
  // If the abstract element is a string, we'll just return a string render function
282
309
  if (typeof abstractElement === 'string') {
283
310
  return abstractElement;
284
- }
311
+ } // Converting abstract element children into Vue VNodes
312
+
285
313
 
286
- // Converting abstract element children into Vue VNodes
287
314
  var children = (abstractElement.children || []).map(function (child) {
288
315
  return convert(child);
289
- });
316
+ }); // Converting abstract element attributes into valid Vue format
290
317
 
291
- // Converting abstract element attributes into valid Vue format
292
318
  var mixins = Object.keys(abstractElement.attributes || {}).reduce(function (mixins, key) {
293
319
  var value = abstractElement.attributes[key];
320
+
294
321
  switch (key) {
295
322
  case 'class':
296
323
  mixins.class = classToObject(value);
297
324
  break;
325
+
298
326
  case 'style':
299
327
  mixins.style = styleToObject(value);
300
328
  break;
329
+
301
330
  default:
302
331
  mixins.attrs[key] = value;
303
332
  }
333
+
304
334
  return mixins;
305
335
  }, {
306
336
  attrs: {},
307
337
  class: {},
308
338
  style: {}
309
- });
339
+ }); // Now, we'll return the VNode
310
340
 
311
- // Now, we'll return the VNode
312
341
  attrs.class;
313
- var _attrs$style = attrs.style,
314
- aStyle = _attrs$style === void 0 ? {} : _attrs$style,
315
- otherAttrs = _objectWithoutProperties(attrs, _excluded);
342
+ var _attrs$style = attrs.style,
343
+ aStyle = _attrs$style === void 0 ? {} : _attrs$style,
344
+ otherAttrs = _objectWithoutProperties(attrs, _excluded);
345
+
316
346
  return h(abstractElement.tag, _objectSpread2(_objectSpread2(_objectSpread2({}, props), {}, {
317
347
  class: mixins.class,
318
348
  style: _objectSpread2(_objectSpread2({}, mixins.style), aStyle)
@@ -320,12 +350,15 @@ function convert(abstractElement) {
320
350
  }
321
351
 
322
352
  var PRODUCTION = false;
353
+
323
354
  try {
324
355
  PRODUCTION = process.env.NODE_ENV === 'production';
325
356
  } catch (e) {}
357
+
326
358
  function log () {
327
359
  if (!PRODUCTION && console && typeof console.error === 'function') {
328
360
  var _console;
361
+
329
362
  (_console = console).error.apply(_console, arguments);
330
363
  }
331
364
  }
@@ -335,6 +368,7 @@ function objectWithKey(key, value) {
335
368
  }
336
369
  function classList(props) {
337
370
  var _classes;
371
+
338
372
  var classes = (_classes = {
339
373
  'fa-spin': props.spin,
340
374
  'fa-pulse': props.pulse,
@@ -357,21 +391,26 @@ function normalizeIconArgs(icon) {
357
391
  if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
358
392
  return icon;
359
393
  }
394
+
360
395
  if (parse.icon) {
361
396
  return parse.icon(icon);
362
397
  }
398
+
363
399
  if (icon === null) {
364
400
  return null;
365
401
  }
402
+
366
403
  if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
367
404
  return icon;
368
405
  }
406
+
369
407
  if (Array.isArray(icon) && icon.length === 2) {
370
408
  return {
371
409
  prefix: icon[0],
372
410
  iconName: icon[1]
373
411
  };
374
412
  }
413
+
375
414
  if (typeof icon === 'string') {
376
415
  return {
377
416
  prefix: 'fas',
@@ -379,6 +418,7 @@ function normalizeIconArgs(icon) {
379
418
  };
380
419
  }
381
420
  }
421
+
382
422
  var FontAwesomeIcon = defineComponent({
383
423
  name: 'FontAwesomeIcon',
384
424
  props: {
@@ -583,10 +623,12 @@ var FontAwesomeLayersText = defineComponent({
583
623
  });
584
624
  var abstractElement = computed(function () {
585
625
  var _text = text(props.value.toString(), _objectSpread2(_objectSpread2({}, transform.value), classes.value)),
586
- abstract = _text.abstract;
626
+ abstract = _text.abstract;
627
+
587
628
  if (props.counter) {
588
629
  abstract[0].attributes.class = abstract[0].attributes.class.replace('fa-layers-text', '');
589
630
  }
631
+
590
632
  return abstract[0];
591
633
  });
592
634
  var vnode = computed(function () {
package/index.js CHANGED
@@ -6,14 +6,17 @@
6
6
 
7
7
  function ownKeys(object, enumerableOnly) {
8
8
  var keys = Object.keys(object);
9
+
9
10
  if (Object.getOwnPropertySymbols) {
10
11
  var symbols = Object.getOwnPropertySymbols(object);
11
12
  enumerableOnly && (symbols = symbols.filter(function (sym) {
12
13
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13
14
  })), keys.push.apply(keys, symbols);
14
15
  }
16
+
15
17
  return keys;
16
18
  }
19
+
17
20
  function _objectSpread2(target) {
18
21
  for (var i = 1; i < arguments.length; i++) {
19
22
  var source = null != arguments[i] ? arguments[i] : {};
@@ -23,8 +26,10 @@
23
26
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24
27
  });
25
28
  }
29
+
26
30
  return target;
27
31
  }
32
+
28
33
  function _typeof(obj) {
29
34
  "@babel/helpers - typeof";
30
35
 
@@ -34,6 +39,7 @@
34
39
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
35
40
  }, _typeof(obj);
36
41
  }
42
+
37
43
  function _defineProperty(obj, key, value) {
38
44
  if (key in obj) {
39
45
  Object.defineProperty(obj, key, {
@@ -45,26 +51,35 @@
45
51
  } else {
46
52
  obj[key] = value;
47
53
  }
54
+
48
55
  return obj;
49
56
  }
57
+
50
58
  function _objectWithoutPropertiesLoose(source, excluded) {
51
59
  if (source == null) return {};
52
60
  var target = {};
53
61
  var sourceKeys = Object.keys(source);
54
62
  var key, i;
63
+
55
64
  for (i = 0; i < sourceKeys.length; i++) {
56
65
  key = sourceKeys[i];
57
66
  if (excluded.indexOf(key) >= 0) continue;
58
67
  target[key] = source[key];
59
68
  }
69
+
60
70
  return target;
61
71
  }
72
+
62
73
  function _objectWithoutProperties(source, excluded) {
63
74
  if (source == null) return {};
75
+
64
76
  var target = _objectWithoutPropertiesLoose(source, excluded);
77
+
65
78
  var key, i;
79
+
66
80
  if (Object.getOwnPropertySymbols) {
67
81
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
82
+
68
83
  for (i = 0; i < sourceSymbolKeys.length; i++) {
69
84
  key = sourceSymbolKeys[i];
70
85
  if (excluded.indexOf(key) >= 0) continue;
@@ -72,17 +87,22 @@
72
87
  target[key] = source[key];
73
88
  }
74
89
  }
90
+
75
91
  return target;
76
92
  }
93
+
77
94
  function _toConsumableArray(arr) {
78
95
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
79
96
  }
97
+
80
98
  function _arrayWithoutHoles(arr) {
81
99
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
82
100
  }
101
+
83
102
  function _iterableToArray(iter) {
84
103
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
85
104
  }
105
+
86
106
  function _unsupportedIterableToArray(o, minLen) {
87
107
  if (!o) return;
88
108
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -91,11 +111,15 @@
91
111
  if (n === "Map" || n === "Set") return Array.from(o);
92
112
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
93
113
  }
114
+
94
115
  function _arrayLikeToArray(arr, len) {
95
116
  if (len == null || len > arr.length) len = arr.length;
117
+
96
118
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
119
+
97
120
  return arr2;
98
121
  }
122
+
99
123
  function _nonIterableSpread() {
100
124
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
101
125
  }
@@ -239,12 +263,12 @@
239
263
  var humps = humps$1.exports;
240
264
 
241
265
  var _excluded = ["class", "style"];
242
-
243
266
  /**
244
267
  * Converts a CSS style into a plain Javascript object.
245
268
  * @param {String} style The style to converts into a plain Javascript object.
246
269
  * @returns {Object}
247
270
  */
271
+
248
272
  function styleToObject(style) {
249
273
  return style.split(';').map(function (s) {
250
274
  return s.trim();
@@ -258,19 +282,19 @@
258
282
  return output;
259
283
  }, {});
260
284
  }
261
-
262
285
  /**
263
286
  * Converts a CSS class list into a plain Javascript object.
264
287
  * @param {Array<String>} classes The class list to convert.
265
288
  * @returns {Object}
266
289
  */
290
+
291
+
267
292
  function classToObject(classes) {
268
293
  return classes.split(/\s+/).reduce(function (output, className) {
269
294
  output[className] = true;
270
295
  return output;
271
296
  }, {});
272
297
  }
273
-
274
298
  /**
275
299
  * Converts a FontAwesome abstract element of an icon into a Vue VNode.
276
300
  * @param {AbstractElement | String} abstractElement The element to convert.
@@ -278,44 +302,50 @@
278
302
  * @param {Object} attrs The user-defined native HTML attributes.
279
303
  * @returns {VNode}
280
304
  */
305
+
306
+
281
307
  function convert(abstractElement) {
282
308
  var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
283
309
  var attrs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
310
+
284
311
  // If the abstract element is a string, we'll just return a string render function
285
312
  if (typeof abstractElement === 'string') {
286
313
  return abstractElement;
287
- }
314
+ } // Converting abstract element children into Vue VNodes
315
+
288
316
 
289
- // Converting abstract element children into Vue VNodes
290
317
  var children = (abstractElement.children || []).map(function (child) {
291
318
  return convert(child);
292
- });
319
+ }); // Converting abstract element attributes into valid Vue format
293
320
 
294
- // Converting abstract element attributes into valid Vue format
295
321
  var mixins = Object.keys(abstractElement.attributes || {}).reduce(function (mixins, key) {
296
322
  var value = abstractElement.attributes[key];
323
+
297
324
  switch (key) {
298
325
  case 'class':
299
326
  mixins.class = classToObject(value);
300
327
  break;
328
+
301
329
  case 'style':
302
330
  mixins.style = styleToObject(value);
303
331
  break;
332
+
304
333
  default:
305
334
  mixins.attrs[key] = value;
306
335
  }
336
+
307
337
  return mixins;
308
338
  }, {
309
339
  attrs: {},
310
340
  class: {},
311
341
  style: {}
312
- });
342
+ }); // Now, we'll return the VNode
313
343
 
314
- // Now, we'll return the VNode
315
344
  attrs.class;
316
- var _attrs$style = attrs.style,
317
- aStyle = _attrs$style === void 0 ? {} : _attrs$style,
318
- otherAttrs = _objectWithoutProperties(attrs, _excluded);
345
+ var _attrs$style = attrs.style,
346
+ aStyle = _attrs$style === void 0 ? {} : _attrs$style,
347
+ otherAttrs = _objectWithoutProperties(attrs, _excluded);
348
+
319
349
  return vue.h(abstractElement.tag, _objectSpread2(_objectSpread2(_objectSpread2({}, props), {}, {
320
350
  class: mixins.class,
321
351
  style: _objectSpread2(_objectSpread2({}, mixins.style), aStyle)
@@ -323,12 +353,15 @@
323
353
  }
324
354
 
325
355
  var PRODUCTION = false;
356
+
326
357
  try {
327
358
  PRODUCTION = process.env.NODE_ENV === 'production';
328
359
  } catch (e) {}
360
+
329
361
  function log () {
330
362
  if (!PRODUCTION && console && typeof console.error === 'function') {
331
363
  var _console;
364
+
332
365
  (_console = console).error.apply(_console, arguments);
333
366
  }
334
367
  }
@@ -338,6 +371,7 @@
338
371
  }
339
372
  function classList(props) {
340
373
  var _classes;
374
+
341
375
  var classes = (_classes = {
342
376
  'fa-spin': props.spin,
343
377
  'fa-pulse': props.pulse,
@@ -360,21 +394,26 @@
360
394
  if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
361
395
  return icon;
362
396
  }
397
+
363
398
  if (fontawesomeSvgCore.parse.icon) {
364
399
  return fontawesomeSvgCore.parse.icon(icon);
365
400
  }
401
+
366
402
  if (icon === null) {
367
403
  return null;
368
404
  }
405
+
369
406
  if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
370
407
  return icon;
371
408
  }
409
+
372
410
  if (Array.isArray(icon) && icon.length === 2) {
373
411
  return {
374
412
  prefix: icon[0],
375
413
  iconName: icon[1]
376
414
  };
377
415
  }
416
+
378
417
  if (typeof icon === 'string') {
379
418
  return {
380
419
  prefix: 'fas',
@@ -382,6 +421,7 @@
382
421
  };
383
422
  }
384
423
  }
424
+
385
425
  var FontAwesomeIcon = vue.defineComponent({
386
426
  name: 'FontAwesomeIcon',
387
427
  props: {
@@ -586,10 +626,12 @@
586
626
  });
587
627
  var abstractElement = vue.computed(function () {
588
628
  var _text = fontawesomeSvgCore.text(props.value.toString(), _objectSpread2(_objectSpread2({}, transform.value), classes.value)),
589
- abstract = _text.abstract;
629
+ abstract = _text.abstract;
630
+
590
631
  if (props.counter) {
591
632
  abstract[0].attributes.class = abstract[0].attributes.class.replace('fa-layers-text', '');
592
633
  }
634
+
593
635
  return abstract[0];
594
636
  });
595
637
  var vnode = vue.computed(function () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fortawesome/vue-fontawesome",
3
3
  "description": "Official Vue component for Font Awesome 6",
4
- "version": "3.0.2",
4
+ "version": "3.0.3",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "README.md",
@@ -37,15 +37,14 @@
37
37
  "Tyranteon <github.com/tyranteon>",
38
38
  "Vinicius Rangel <github.com/viniciuslrangel>",
39
39
  "Okke Tijhuis <github.com/otijhuis>",
40
- "Aaron Parker <github.com/parkeyparker>"
40
+ "Aaron Parker <github.com/parkeyparker>",
41
+ "Brandon Mork <github.com/brandon-mork>"
41
42
  ],
42
43
  "license": "MIT",
43
44
  "scripts": {
44
45
  "build": "rollup -c rollup.config.js",
45
46
  "dist": "cross-env NODE_ENV=production npm run build",
46
- "test": "npm run test.5 && npm run test.6",
47
- "test.5": "npm --no-save install @fortawesome/fontawesome-svg-core@1.2.x @fortawesome/free-solid-svg-icons@5.x && jest --silent",
48
- "test.6": "npm --no-save install @fortawesome/fontawesome-svg-core@6.x @fortawesome/free-solid-svg-icons@6.x && jest --silent",
47
+ "test": "jest --silent",
49
48
  "prepack": "npm run dist"
50
49
  },
51
50
  "lint-staged": {