@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-8053.2336 to 4.0.1-next-v4-8060.2337
@@ -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 a}from"emotion";import o 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"}},l={muted:o.gray600,negative:o.colorNegative,positive:o.colorPositive,primary:o.blue600,secondary:o.gray900,warning:o.colorWarning,white:o.colorWhite};function m({as:i,children:o,className:m,variant:c="primary",size:h="small",testId:p="cf-ui-icon",trimmed:d,viewBox:f="0 0 24 24",...x},g){const u={className:a(r({fill:l[c],height:s[h].height,width:d?"auto":s[h].width},""),m),ref:g,testId:p},w=(e=>{const t=e["aria-label"],i=e["aria-labelledby"];return t||i?{}:{"aria-hidden":!0}})(x);return i?t.createElement(n,e({display:"inline-block"},w,x,u,{as:i})):t.createElement(n,e({viewBox:f,display:"inline-block"},w,x,{as:"svg"},u),o)}const c=i(m);function h({name:i,path:r,props:a,trimmed:o,viewBox:n}){const s=function(i){return t.createElement(c,e({viewBox:n},a,i,{trimmed:o}),r)};return i&&(s.displayName=i),s}export{h as generateIcon,c as Icon}; | ||
import e from"@babel/runtime/helpers/esm/extends";import t,{forwardRef as i}from"react";import{cx as r,css as a}from"emotion";import o 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"}},l={muted:o.gray600,negative:o.colorNegative,positive:o.colorPositive,primary:o.blue600,secondary:o.gray900,warning:o.colorWarning,white:o.colorWhite};function m({as:i,children:o,className:m,variant:c="primary",size:h="small",testId:p="cf-ui-icon",trimmed:d,viewBox:f="0 0 24 24",...x},g){const u={className:r(a({fill:l[c],height:s[h].height,width:d?"auto":s[h].width},""),m),ref:g,testId:p},w=(e=>{const t=e["aria-label"],i=e["aria-labelledby"];return t||i?{}:{"aria-hidden":!0}})(x);return i?t.createElement(n,e({display:"inline-block"},w,x,u,{as:i})):t.createElement(n,e({viewBox:f,display:"inline-block"},w,x,{as:"svg"},u),o)}const c=i(m);function h({name:i,path:r,props:a,trimmed:o,viewBox:n}){const s=function(i){return t.createElement(c,e({viewBox:n},a,i,{trimmed:o}),r)};return i&&(s.displayName=i),s}export{h as generateIcon,c as Icon}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-8053.2336+c7d9a5e5", | ||
"version": "4.0.1-next-v4-8060.2337+43a4f2e9", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-8053.2336+c7d9a5e5", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-8053.2336+c7d9a5e5", | ||
"@contentful/f36-core": "4.0.1-next-v4-8060.2337+43a4f2e9", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-8060.2337+43a4f2e9", | ||
"emotion": "^10.0.17" | ||
@@ -39,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "c7d9a5e5e63b5e443e1d43c4cda0ad6d45884b8a" | ||
"gitHead": "43a4f2e9f2f79f2a6b5ba5d06304a9bdcca3a8d6" | ||
} |
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