@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-4835.2083 to 4.0.1-next-v4-4931.2084
@@ -1,2 +0,2 @@ | ||
var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{cx:o,css:n}=require("emotion"),a=s(require("@contentful/f36-tokens")),{Box:l}=require("@contentful/f36-core");function c(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function s(e){return e&&e.__esModule?e.default:e}c(module.exports,"generateIcon",(()=>u)),c(module.exports,"Icon",(()=>m));const d={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},h={muted:a.colorTextLight,negative:a.colorNegative,positive:a.colorPositive,primary:a.colorBlueBase,secondary:a.colorContrastMid,warning:a.colorWarning,white:a.colorWhite},m=r((({as:t,children:r,className:a,variant:c="primary",size:s="small",testId:m="cf-ui-icon",trimmed:u,viewBox:p="0 0 24 24",...x},f)=>{const g={className:o(n({fill:h[c],height:d[s].height,width:u?"auto":d[s].width},""),a),ref:f,testId:m};return t?i.createElement(l,e({display:"inline-block"},x,g,{as:t})):i.createElement(l,e({height:"1em",viewBox:p,width:"1em",display:"inline-block"},x,{as:"svg"},g),r)}));function u({name:t,path:o,props:n,trimmed:a,viewBox:l}){const c=r((function(t,r){return i.createElement(m,e({viewBox:l},n,t,{ref:r,trimmed:a}),o)}));return t&&(c.displayName=t),c} | ||
var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{css:o,cx:n}=require("emotion"),a=s(require("@contentful/f36-tokens")),{Box:l}=require("@contentful/f36-core");function c(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function s(e){return e&&e.__esModule?e.default:e}c(module.exports,"generateIcon",(()=>u)),c(module.exports,"Icon",(()=>m));const d={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},h={muted:a.colorTextLight,negative:a.colorNegative,positive:a.colorPositive,primary:a.colorBlueBase,secondary:a.colorContrastMid,warning:a.colorWarning,white:a.colorWhite},m=r((({as:t,children:r,className:a,variant:c="primary",size:s="small",testId:m="cf-ui-icon",trimmed:u,viewBox:p="0 0 24 24",...x},f)=>{const g={className:n(o({fill:h[c],height:d[s].height,width:u?"auto":d[s].width},""),a),ref:f,testId:m};return t?i.createElement(l,e({display:"inline-block"},x,g,{as:t})):i.createElement(l,e({height:"1em",viewBox:p,width:"1em",display:"inline-block"},x,{as:"svg"},g),r)}));function u({name:t,path:o,props:n,trimmed:a,viewBox:l}){const c=r((function(t,r){return i.createElement(m,e({viewBox:l},n,t,{ref:r,trimmed:a}),o)}));return t&&(c.displayName=t),c} | ||
//# sourceMappingURL=main.js.map |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-4835.2083+4d9070fe", | ||
"version": "4.0.1-next-v4-4931.2084+37e988d1", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-4835.2083+4d9070fe", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-4931.2084+37e988d1", | ||
"emotion": "^10.0.17" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "4d9070fe32b9ab7ef763e515023398706fc56abe" | ||
"gitHead": "37e988d17debe3499588e3b13975a347f212d824" | ||
} |
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