@cavilha/icon
Advanced tools
Comparing version 0.0.0-alpha.2 to 0.0.0
@@ -11,3 +11,3 @@ import { CSS } from '@cavilha/theme'; | ||
icon?: IconProp; | ||
iconSize?: number; | ||
iconSize?: number | string; | ||
children?: React.ReactNode; | ||
@@ -14,0 +14,0 @@ css?: CSS; |
@@ -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}).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,s=e.css,u=e.iconSize,p=void 0===u?12:u,y=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:s,style:{fontSize:p}},y),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 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; |
@@ -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}).apply(this,arguments)};var i=r("i",{}),c=o.forwardRef((function(r,c){var a=r.children,f=r.icon,l=void 0===f?e:f,p=r.css,s=r.iconSize,m=void 0===s?12:s,u=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(i,n({ref:c,css:p,style:{fontSize:m}},u),o.createElement(t,{icon:l}),a)}));export{c as default}; | ||
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}; |
{ | ||
"name": "@cavilha/icon", | ||
"version": "0.0.0-alpha.2", | ||
"version": "0.0.0", | ||
"description": "An polimorfic icon component builded to work together with FontAwesome library", | ||
@@ -74,5 +74,5 @@ "author": "MadeiraMadeira webstore squads", | ||
"dependencies": { | ||
"@cavilha/theme": "0.0.0-alpha.4", | ||
"@cavilha/theme": "0.0.0", | ||
"@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
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
6093
7
+ Added@cavilha/theme@0.0.0(transitive)
- Removed@cavilha/theme@0.0.0-alpha.4(transitive)
Updated@cavilha/theme@0.0.0