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

@contentful/f36-icon

Package Overview
Dependencies
Maintainers
164
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.41.1 to 4.42.0

4

dist/esm/index.js

@@ -6,5 +6,5 @@ import w, { forwardRef } from 'react';

var b=Object.defineProperty,G=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?b(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))g.call(o,t)&&x(e,t,o[t]);if(m)for(var t of m(o))P.call(o,t)&&x(e,t,o[t]);return e},p=(e,o)=>G(e,T(o));var f=(e,o)=>{var t={};for(var n in e)g.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&m)for(var n of m(e))o.indexOf(n)<0&&P.call(e,n)&&(t[n]=e[n]);return t};var S="svg",E={xlarge:{height:"48px",width:"48px"},large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},V={muted:i.gray600,negative:i.colorNegative,positive:i.colorPositive,primary:i.blue600,secondary:i.gray900,warning:i.colorWarning,white:i.colorWhite},k=e=>{let o=e["aria-label"],t=e["aria-labelledby"];return o||t?{}:{"aria-hidden":!0}};function _(L,C){var d=L,{as:e,children:o,className:t,variant:n="primary",size:a="small",testId:c="cf-ui-icon",trimmed:s,viewBox:v="0 0 24 24"}=d,l=f(d,["as","children","className","variant","size","testId","trimmed","viewBox"]);let I={className:cx(css({fill:V[n],height:E[a].height,width:s?"auto":E[a].width}),t),ref:C,testId:c},h=k(l);return e?w.createElement(Box,p(r(r(r({display:"inline-block"},h),l),I),{as:e})):w.createElement(Box,r(p(r(r({viewBox:v,display:"inline-block"},h),l),{as:S}),I),o)}var y=forwardRef(_);function z({name:e,path:o,props:t,trimmed:n,viewBox:a}){let c=function(s){return w.createElement(y,p(r(r({viewBox:a},t),s),{trimmed:n}),o)};return e&&(c.displayName=e),c}
var v=Object.defineProperty,G=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?v(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))g.call(o,t)&&x(e,t,o[t]);if(m)for(var t of m(o))P.call(o,t)&&x(e,t,o[t]);return e},p=(e,o)=>G(e,T(o));var f=(e,o)=>{var t={};for(var n in e)g.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&m)for(var n of m(e))o.indexOf(n)<0&&P.call(e,n)&&(t[n]=e[n]);return t};var S="svg",E={xlarge:{height:"48px",width:"48px"},large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},V={muted:i.gray600,negative:i.red600,positive:i.green600,primary:i.blue600,secondary:i.gray900,warning:i.colorWarning,white:i.colorWhite},k=e=>{let o=e["aria-label"],t=e["aria-labelledby"];return o||t?{}:{"aria-hidden":!0}};function _(N,b){var d=N,{as:e,children:o,className:t,variant:n="primary",size:a="small",testId:c="cf-ui-icon",trimmed:s,viewBox:C="0 0 24 24"}=d,l=f(d,["as","children","className","variant","size","testId","trimmed","viewBox"]);let I={className:cx(css({fill:V[n],height:E[a].height,width:s?"auto":E[a].width}),t),ref:b,testId:c},h=k(l);return e?w.createElement(Box,p(r(r(r({display:"inline-block"},h),l),I),{as:e})):w.createElement(Box,r(p(r(r({viewBox:C,display:"inline-block"},h),l),{as:S}),I),o)}var y=forwardRef(_);function L({name:e,path:o,props:t,trimmed:n,viewBox:a}){let c=function(s){return w.createElement(y,p(r(r({viewBox:a},t),s),{trimmed:n}),o)};return e&&(c.displayName=e),c}
export { y as Icon, z as generateIcon };
export { y as Icon, L as generateIcon };
//# sourceMappingURL=index.js.map

@@ -15,6 +15,6 @@ 'use strict';

var b=Object.defineProperty,G=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?b(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))g.call(o,t)&&x(e,t,o[t]);if(m)for(var t of m(o))P.call(o,t)&&x(e,t,o[t]);return e},p=(e,o)=>G(e,T(o));var f=(e,o)=>{var t={};for(var n in e)g.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&m)for(var n of m(e))o.indexOf(n)<0&&P.call(e,n)&&(t[n]=e[n]);return t};var S="svg",E={xlarge:{height:"48px",width:"48px"},large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},V={muted:i__default["default"].gray600,negative:i__default["default"].colorNegative,positive:i__default["default"].colorPositive,primary:i__default["default"].blue600,secondary:i__default["default"].gray900,warning:i__default["default"].colorWarning,white:i__default["default"].colorWhite},k=e=>{let o=e["aria-label"],t=e["aria-labelledby"];return o||t?{}:{"aria-hidden":!0}};function _(L,C){var d=L,{as:e,children:o,className:t,variant:n="primary",size:a="small",testId:c="cf-ui-icon",trimmed:s,viewBox:v="0 0 24 24"}=d,l=f(d,["as","children","className","variant","size","testId","trimmed","viewBox"]);let I={className:emotion.cx(emotion.css({fill:V[n],height:E[a].height,width:s?"auto":E[a].width}),t),ref:C,testId:c},h=k(l);return e?w__default["default"].createElement(f36Core.Box,p(r(r(r({display:"inline-block"},h),l),I),{as:e})):w__default["default"].createElement(f36Core.Box,r(p(r(r({viewBox:v,display:"inline-block"},h),l),{as:S}),I),o)}var y=w.forwardRef(_);function z({name:e,path:o,props:t,trimmed:n,viewBox:a}){let c=function(s){return w__default["default"].createElement(y,p(r(r({viewBox:a},t),s),{trimmed:n}),o)};return e&&(c.displayName=e),c}
var v=Object.defineProperty,G=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?v(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))g.call(o,t)&&x(e,t,o[t]);if(m)for(var t of m(o))P.call(o,t)&&x(e,t,o[t]);return e},p=(e,o)=>G(e,T(o));var f=(e,o)=>{var t={};for(var n in e)g.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&m)for(var n of m(e))o.indexOf(n)<0&&P.call(e,n)&&(t[n]=e[n]);return t};var S="svg",E={xlarge:{height:"48px",width:"48px"},large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},V={muted:i__default["default"].gray600,negative:i__default["default"].red600,positive:i__default["default"].green600,primary:i__default["default"].blue600,secondary:i__default["default"].gray900,warning:i__default["default"].colorWarning,white:i__default["default"].colorWhite},k=e=>{let o=e["aria-label"],t=e["aria-labelledby"];return o||t?{}:{"aria-hidden":!0}};function _(N,b){var d=N,{as:e,children:o,className:t,variant:n="primary",size:a="small",testId:c="cf-ui-icon",trimmed:s,viewBox:C="0 0 24 24"}=d,l=f(d,["as","children","className","variant","size","testId","trimmed","viewBox"]);let I={className:emotion.cx(emotion.css({fill:V[n],height:E[a].height,width:s?"auto":E[a].width}),t),ref:b,testId:c},h=k(l);return e?w__default["default"].createElement(f36Core.Box,p(r(r(r({display:"inline-block"},h),l),I),{as:e})):w__default["default"].createElement(f36Core.Box,r(p(r(r({viewBox:C,display:"inline-block"},h),l),{as:S}),I),o)}var y=w.forwardRef(_);function L({name:e,path:o,props:t,trimmed:n,viewBox:a}){let c=function(s){return w__default["default"].createElement(y,p(r(r({viewBox:a},t),s),{trimmed:n}),o)};return e&&(c.displayName=e),c}
exports.Icon = y;
exports.generateIcon = z;
exports.generateIcon = L;
//# sourceMappingURL=index.js.map
{
"name": "@contentful/f36-icon",
"version": "4.41.1",
"version": "4.42.0",
"description": "Forma 36: Icon component",

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

"dependencies": {
"@contentful/f36-core": "^4.41.1",
"@contentful/f36-tokens": "^4.0.1",
"@contentful/f36-core": "^4.42.0",
"@contentful/f36-tokens": "^4.0.2",
"emotion": "^10.0.17"

@@ -14,0 +14,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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