Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/f36-icon

Package Overview
Dependencies
Maintainers
100
Versions
419
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-6321.2232 to 4.0.1-next-v4-6330.2234

2

dist/main.js

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

var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{css:n,cx:a}=require("emotion"),o=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",(()=>h)),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"}},u={muted:o.gray600,negative:o.colorNegative,positive:o.colorPositive,primary:o.blue600,secondary:o.gray900,warning:o.colorWarning,white:o.colorWhite},m=r((({as:t,children:r,className:o,variant:c="primary",size:s="small",testId:m="cf-ui-icon",trimmed:h,viewBox:p="0 0 24 24",...g},x)=>{const f={className:a(n({fill:u[c],height:d[s].height,width:h?"auto":d[s].width},""),o),ref:x,testId:m},w=(e=>{const t=e["aria-label"],i=e["aria-labelledby"];return t||i?{}:{"aria-hidden":!0}})(g);return t?i.createElement(l,e({display:"inline-block"},w,g,f,{as:t})):i.createElement(l,e({viewBox:p,display:"inline-block"},w,g,{as:"svg"},f),r)}));function h({name:t,path:r,props:n,trimmed:a,viewBox:o}){const l=function(t){return i.createElement(m,e({viewBox:o},n,t,{trimmed:a}),r)};return t&&(l.displayName=t),l}
var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{cx:n,css:a}=require("emotion"),o=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",(()=>h)),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"}},u={muted:o.gray600,negative:o.colorNegative,positive:o.colorPositive,primary:o.blue600,secondary:o.gray900,warning:o.colorWarning,white:o.colorWhite},m=r((({as:t,children:r,className:o,variant:c="primary",size:s="small",testId:m="cf-ui-icon",trimmed:h,viewBox:p="0 0 24 24",...g},x)=>{const f={className:n(a({fill:u[c],height:d[s].height,width:h?"auto":d[s].width},""),o),ref:x,testId:m},w=(e=>{const t=e["aria-label"],i=e["aria-labelledby"];return t||i?{}:{"aria-hidden":!0}})(g);return t?i.createElement(l,e({display:"inline-block"},w,g,f,{as:t})):i.createElement(l,e({viewBox:p,display:"inline-block"},w,g,{as:"svg"},f),r)}));function h({name:t,path:r,props:n,trimmed:a,viewBox:o}){const l=function(t){return i.createElement(m,e({viewBox:o},n,t,{trimmed:a}),r)};return t&&(l.displayName=t),l}
//# sourceMappingURL=main.js.map

@@ -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},m=i((({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)}));function c({name:i,path:r,props:a,trimmed:o,viewBox:n}){const s=function(i){return t.createElement(m,e({viewBox:n},a,i,{trimmed:o}),r)};return i&&(s.displayName=i),s}export{c as generateIcon,m 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},m=i((({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)}));function c({name:i,path:r,props:a,trimmed:o,viewBox:n}){const s=function(i){return t.createElement(m,e({viewBox:n},a,i,{trimmed:o}),r)};return i&&(s.displayName=i),s}export{c as generateIcon,m as Icon};
//# sourceMappingURL=module.js.map
{
"name": "@contentful/f36-icon",
"version": "4.0.1-next-v4-6321.2232+4fbeb4b9",
"version": "4.0.1-next-v4-6330.2234+82fc9a50",
"description": "Forma 36: Icon component",

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

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-6321.2232+4fbeb4b9",
"@contentful/f36-tokens": "4.0.1-next-v4-6321.2232+4fbeb4b9",
"@contentful/f36-core": "4.0.1-next-v4-6330.2234+82fc9a50",
"@contentful/f36-tokens": "4.0.1-next-v4-6330.2234+82fc9a50",
"emotion": "^10.0.17"

@@ -39,3 +39,3 @@ },

},
"gitHead": "4fbeb4b96baa267fe697a3143d14a4325fa77158"
"gitHead": "82fc9a50a968ded4d1d5365e0c49f2eb83715710"
}
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