@contentful/f36-icon
Advanced tools
Comparing version 4.0.1-next-v4-5670.2155 to 4.0.1-next-v4-5719.2157
@@ -1,2 +0,2 @@ | ||
var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{css:n,cx:o}=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",(()=>h)),c(module.exports,"Icon",(()=>d));const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},u={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,warning:a.colorWarning,white:a.colorWhite},d=r((({as:t,children:r,className:a,variant:c="primary",size:s="small",testId:d="cf-ui-icon",trimmed:h,viewBox:p="0 0 24 24",...g},f)=>{const x={className:o(n({fill:u[c],height:m[s].height,width:h?"auto":m[s].width},""),a),ref:f,testId:d};return t?i.createElement(l,e({display:"inline-block"},g,x,{as:t})):i.createElement(l,e({height:"1em",viewBox:p,width:"1em",display:"inline-block"},g,{as:"svg"},x),r)}));function h({name:t,path:n,props:o,trimmed:a,viewBox:l}){const c=r((function(t,r){return i.createElement(d,e({viewBox:l},o,t,{ref:r,trimmed:a}),n)}));return t&&(c.displayName=t),c} | ||
var e=s(require("@babel/runtime/helpers/extends")),t=require("react"),i=s(t),{forwardRef:r}=t,{cx:n,css:o}=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",(()=>h)),c(module.exports,"Icon",(()=>d));const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},u={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,warning:a.colorWarning,white:a.colorWhite},d=r((({as:t,children:r,className:a,variant:c="primary",size:s="small",testId:d="cf-ui-icon",trimmed:h,viewBox:p="0 0 24 24",...g},f)=>{const x={className:n(o({fill:u[c],height:m[s].height,width:h?"auto":m[s].width},""),a),ref:f,testId:d};return t?i.createElement(l,e({display:"inline-block"},g,x,{as:t})):i.createElement(l,e({height:"1em",viewBox:p,width:"1em",display:"inline-block"},g,{as:"svg"},x),r)}));function h({name:t,path:n,props:o,trimmed:a,viewBox:l}){const c=r((function(t,r){return i.createElement(d,e({viewBox:l},o,t,{ref:r,trimmed:a}),n)}));return t&&(c.displayName=t),c} | ||
//# 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 o}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},s={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,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",...g},x)=>{const w={className:r(o({fill:s[c],height:m[h].height,width:d?"auto":m[h].width},""),l),ref:x,testId:p};return i?t.createElement(n,e({display:"inline-block"},g,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},g,{as:"svg"},w),a)}));function c({name:r,path:o,props:a,trimmed:n,viewBox:m}){const s=i((function(i,r){return t.createElement(l,e({viewBox:m},a,i,{ref:r,trimmed:n}),o)}));return r&&(s.displayName=r),s}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 r,cx as o}from"emotion";import a from"@contentful/f36-tokens";import{Box as n}from"@contentful/f36-core";const m={large:{height:"32px",width:"32px"},medium:{height:"24px",width:"24px"},small:{height:"18px",width:"18px"},tiny:{height:"16px",width:"16px"}},s={muted:a.gray600,negative:a.colorNegative,positive:a.colorPositive,primary:a.blue600,secondary:a.gray900,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",...g},x)=>{const w={className:o(r({fill:s[c],height:m[h].height,width:d?"auto":m[h].width},""),l),ref:x,testId:p};return i?t.createElement(n,e({display:"inline-block"},g,w,{as:i})):t.createElement(n,e({height:"1em",viewBox:f,width:"1em",display:"inline-block"},g,{as:"svg"},w),a)}));function c({name:r,path:o,props:a,trimmed:n,viewBox:m}){const s=i((function(i,r){return t.createElement(l,e({viewBox:m},a,i,{ref:r,trimmed:n}),o)}));return r&&(s.displayName=r),s}export{c as generateIcon,l as Icon}; | ||
//# sourceMappingURL=module.js.map |
@@ -1,6 +0,6 @@ | ||
import { BoxProps, ComponentVariant, PolymorphicComponent, PolymorphicComponentProps, Simplify } from "@contentful/f36-core"; | ||
import { BoxProps, PolymorphicComponent, PolymorphicComponentProps } from "@contentful/f36-core"; | ||
import React, { ComponentType, ExoticComponent, ReactElement, SVGAttributes } from "react"; | ||
export type IconComponent = ExoticComponent<any> | ComponentType<any>; | ||
export type IconSize = 'large' | 'medium' | 'small' | 'tiny'; | ||
export type IconVariant = Simplify<ComponentVariant | 'muted' | 'white'>; | ||
export type IconVariant = 'negative' | 'positive' | 'primary' | 'secondary' | 'warning' | 'muted' | 'white'; | ||
type AsOrChildren = { | ||
@@ -7,0 +7,0 @@ as: IconComponent; |
{ | ||
"name": "@contentful/f36-icon", | ||
"version": "4.0.1-next-v4-5670.2155+b44071c6", | ||
"version": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"description": "Forma 36: Icon component", | ||
@@ -11,4 +11,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-5670.2155+b44071c6", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-5670.2155+b44071c6", | ||
"@contentful/f36-core": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-5719.2157+cd8b7115", | ||
"emotion": "^10.0.17" | ||
@@ -39,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "b44071c6a86eb5f2085c887bfc03ee0eb6fb0f95" | ||
"gitHead": "cd8b7115fba2be2e4f770c271952c91a75438465" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
37437
273