@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-5719.2157 to 4.0.1-next-v4-5782.2167
@@ -1,2 +0,2 @@ | ||
import e from"@babel/runtime/helpers/esm/extends";import t,{forwardRef as i}from"react";import{css as r,cx as o}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},s={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,warning:a.colorWarning,white:a.colorWhite},l=i((({as:i,children:a,className:l,variant:c="primary",size:h="small",testId:p="cf-ui-icon",trimmed:d,viewBox:f="0 0 24 24",...g},x)=>{const w={className:o(r({fill:s[c],height:m[h].height,width:d?"auto":m[h].width},""),l),ref:x,testId:p};return i?t.createElement(n,e({display:"inline-block"},g,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},g,{as:"svg"},w),a)}));function c({name:r,path:o,props:a,trimmed:n,viewBox:m}){const s=i((function(i,r){return t.createElement(l,e({viewBox:m},a,i,{ref:r,trimmed:n}),o)}));return r&&(s.displayName=r),s}export{c as generateIcon,l as Icon}; | ||
import e from"@babel/runtime/helpers/esm/extends";import t,{forwardRef as i}from"react";import{cx as r,css as o}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},s={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,warning:a.colorWarning,white:a.colorWhite},l=i((({as:i,children:a,className:l,variant:c="primary",size:h="small",testId:p="cf-ui-icon",trimmed:d,viewBox:f="0 0 24 24",...g},x)=>{const w={className:r(o({fill:s[c],height:m[h].height,width:d?"auto":m[h].width},""),l),ref:x,testId:p};return i?t.createElement(n,e({display:"inline-block"},g,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},g,{as:"svg"},w),a)}));function c({name:r,path:o,props:a,trimmed:n,viewBox:m}){const s=i((function(i,r){return t.createElement(l,e({viewBox:m},a,i,{ref:r,trimmed:n}),o)}));return r&&(s.displayName=r),s}export{c as generateIcon,l as Icon}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"version": "4.0.1-next-v4-5782.2167+9e62ae66", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"@contentful/f36-core": "4.0.1-next-v4-5782.2167+9e62ae66", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-5782.2167+9e62ae66", | ||
"emotion": "^10.0.17" | ||
@@ -39,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "cd8b7115fba2be2e4f770c271952c91a75438465" | ||
"gitHead": "9e62ae6629c3b7c9143be6cb9263c31640cfefff" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package