@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-4759.2074 to 4.0.1-next-v4-4835.2083
@@ -1,2 +0,2 @@ | ||
import e from"@babel/runtime/helpers/esm/extends";import t,{forwardRef as i}from"react";import{css as o,cx as r}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const s={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},m={muted:a.colorTextLight,negative:a.colorNegative,positive:a.colorPositive,primary:a.colorBlueBase,secondary:a.colorContrastMid,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",...x},g)=>{const w={className:r(o({fill:m[c],height:s[h].height,width:d?"auto":s[h].width},""),l),ref:g,testId:p};return i?t.createElement(n,e({display:"inline-block"},x,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},x,{as:"svg"},w),a)}));function c({name:o,path:r,props:a,trimmed:n,viewBox:s}){const m=i((function(i,o){return t.createElement(l,e({viewBox:s},a,i,{ref:o,trimmed:n}),r)}));return o&&(m.displayName=o),m}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 o,css as r}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const s={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},m={muted:a.colorTextLight,negative:a.colorNegative,positive:a.colorPositive,primary:a.colorBlueBase,secondary:a.colorContrastMid,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",...x},g)=>{const w={className:o(r({fill:m[c],height:s[h].height,width:d?"auto":s[h].width},""),l),ref:g,testId:p};return i?t.createElement(n,e({display:"inline-block"},x,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},x,{as:"svg"},w),a)}));function c({name:o,path:r,props:a,trimmed:n,viewBox:s}){const m=i((function(i,o){return t.createElement(l,e({viewBox:s},a,i,{ref:o,trimmed:n}),r)}));return o&&(m.displayName=o),m}export{c as generateIcon,l as Icon}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-4759.2074+4129a7dd", | ||
"version": "4.0.1-next-v4-4835.2083+4d9070fe", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-4759.2074+4129a7dd", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-4835.2083+4d9070fe", | ||
"emotion": "^10.0.17" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "4129a7dd5a2f38fc7ae3544fb7e4b62916c13a6d" | ||
"gitHead": "4d9070fe32b9ab7ef763e515023398706fc56abe" | ||
} |
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