@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-7712.2324 to 4.0.1-next-v4-7774.2326
@@ -1,2 +0,2 @@ | ||
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}; | ||
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}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-7712.2324+af7a27ba", | ||
"version": "4.0.1-next-v4-7774.2326+08efe182", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-7712.2324+af7a27ba", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-7712.2324+af7a27ba", | ||
"@contentful/f36-core": "4.0.1-next-v4-7774.2326+08efe182", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-7774.2326+08efe182", | ||
"emotion": "^10.0.17" | ||
@@ -39,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "af7a27ba0899f3ed548fe9562110076e841fe581" | ||
"gitHead": "08efe182d6b4ee532be91cfbf86b2c3ba2f9f474" | ||
} |
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