@cavilha/icon
Advanced tools
Comparing version 0.0.4 to 1.0.0
# @cavilha/icon | ||
## 1.0.0 | ||
### Major Changes | ||
- a50a503a: Stitches's version updated from 0.2.2 to 1.2.8 | ||
### Patch Changes | ||
- Updated dependencies [a50a503a] | ||
- @cavilha/theme@1.0.0 | ||
## 0.0.4 | ||
@@ -4,0 +15,0 @@ |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=require("@cavilha/theme"),r=require("@fortawesome/pro-regular-svg-icons"),t=require("@fortawesome/react-fontawesome");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(require("react")),a=function(){return a=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a.apply(this,arguments)};var c=e.styled("i",{}),i=n.default.forwardRef((function(e,o){var i=e.children,f=e.icon,l=void 0===f?r.faHeart:f,u=e.css,s=e.iconSize,p=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(e,["children","icon","css","iconSize"]);return n.default.createElement(c,a({ref:o,css:a(a({},u),{fontSize:s})},p),n.default.createElement(t.FontAwesomeIcon,{icon:l}),i)}));module.exports=i; | ||
"use strict";var e=require("@cavilha/theme"),r=require("@fortawesome/pro-regular-svg-icons"),t=require("@fortawesome/react-fontawesome");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(require("react")),a=function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)};var c=e.styled("i",{}),i=o.default.forwardRef((function(e,n){var i=e.children,l=e.icon,f=void 0===l?r.faHeart:l,u=e.css,s=e.iconSize,p=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["children","icon","css","iconSize"]);return o.default.createElement(c,a({ref:n,css:a(a({},u),{fontSize:s})},p),o.default.createElement(o.default.Fragment,null,o.default.createElement(t.FontAwesomeIcon,{icon:f}),i))}));module.exports=i; |
@@ -1,1 +0,1 @@ | ||
import{styled as r}from"@cavilha/theme";import{faHeart as e}from"@fortawesome/pro-regular-svg-icons";import{FontAwesomeIcon as t}from"@fortawesome/react-fontawesome";import o from"react";var n=function(){return n=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},n.apply(this,arguments)};var c=r("i",{}),i=o.forwardRef((function(r,i){var a=r.children,f=r.icon,l=void 0===f?e:f,p=r.css,s=r.iconSize,m=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t}(r,["children","icon","css","iconSize"]);return o.createElement(c,n({ref:i,css:n(n({},p),{fontSize:s})},m),o.createElement(t,{icon:l}),a)}));export{i as default}; | ||
import{styled as e}from"@cavilha/theme";import{faHeart as r}from"@fortawesome/pro-regular-svg-icons";import{FontAwesomeIcon as t}from"@fortawesome/react-fontawesome";import o from"react";var n=function(){return n=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},n.apply(this,arguments)};var a=e("i",{}),c=o.forwardRef((function(e,c){var i=e.children,f=e.icon,l=void 0===f?r:f,p=e.css,s=e.iconSize,m=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(e,["children","icon","css","iconSize"]);return o.createElement(a,n({ref:c,css:n(n({},p),{fontSize:s})},m),o.createElement(o.Fragment,null,o.createElement(t,{icon:l}),i))}));export{c as default}; |
{ | ||
"name": "@cavilha/icon", | ||
"version": "0.0.4", | ||
"version": "1.0.0", | ||
"description": "An polimorfic icon component builded to work together with FontAwesome library", | ||
@@ -61,11 +61,11 @@ "author": "MadeiraMadeira webstore squads", | ||
"tsconfig-paths": "~3.9.0", | ||
"typescript": "~4.3.0" | ||
"typescript": "4.7.4" | ||
}, | ||
"peerDependencies": { | ||
"@stitches/react": "~1.2.8", | ||
"@fortawesome/fontawesome-pro": "^5.15.2", | ||
"@fortawesome/fontawesome-svg-core": "^1.2.34", | ||
"@fortawesome/fontawesome-svg-core": "~1.2.34", | ||
"@fortawesome/pro-regular-svg-icons": "^5.15.2", | ||
"@fortawesome/pro-solid-svg-icons": "^5.15.3", | ||
"@fortawesome/react-fontawesome": "^0.1.14", | ||
"@stitches/react": "v0.2.2", | ||
"react": "^17.0.1", | ||
@@ -75,5 +75,5 @@ "react-dom": "^17.0.1" | ||
"dependencies": { | ||
"@cavilha/theme": "0.0.4", | ||
"@cavilha/theme": "*", | ||
"@radix-ui/react-polymorphic": "0.0.13" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6745
2
2
+ Added@cavilha/theme@1.0.1(transitive)
+ Added@fortawesome/fontawesome-common-types@0.2.36(transitive)
+ Added@fortawesome/fontawesome-svg-core@1.2.36(transitive)
+ Added@stitches/react@1.2.8(transitive)
- Removed@cavilha/theme@0.0.4(transitive)
- Removed@fortawesome/fontawesome-common-types@0.3.0(transitive)
- Removed@fortawesome/fontawesome-svg-core@1.3.0(transitive)
Updated@cavilha/theme@*