Socket
Socket
Sign inDemoInstall

@contentful/f36-icon

Package Overview
Dependencies
Maintainers
100
Versions
412
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-icon - npm Package Compare versions

Comparing version 4.0.1-next-v4-4488.2000 to 4.0.1-next-v4-4528.2001

2

dist/module.js

@@ -1,2 +0,2 @@

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};
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};
//# sourceMappingURL=module.js.map
{
"name": "@contentful/f36-icon",
"version": "4.0.1-next-v4-4488.2000+842f5936",
"version": "4.0.1-next-v4-4528.2001+5925f0d4",
"description": "Forma 36: Icon component",

@@ -11,3 +11,3 @@ "license": "MIT",

"@babel/runtime": "^7.6.2",
"@contentful/f36-tokens": "4.0.1-next-v4-4488.2000+842f5936",
"@contentful/f36-tokens": "4.0.1-next-v4-4528.2001+5925f0d4",
"emotion": "^10.0.17"

@@ -38,3 +38,3 @@ },

},
"gitHead": "842f5936ce062fcff8feb26e5ac7dc8254144390"
"gitHead": "5925f0d432318f2e5ec58bf559995c1bc81350a4"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc