@contentful/f36-note
Advanced tools
Comparing version 4.0.1-next-v4-8955.2400 to 4.0.1-next-v4-8971.2401
@@ -1,2 +0,2 @@ | ||
var e=p(require("@babel/runtime/helpers/extends")),{cx:r,css:n}=require("emotion"),t=p(require("react")),{Flex:o}=require("@contentful/f36-core"),{Button:a}=require("@contentful/f36-button"),{Heading:i,Text:c}=require("@contentful/f36-typography"),{ErrorCircleIcon:l,WarningIcon:s,InfoCircleIcon:u,CheckCircleIcon:d,CloseIcon:g}=require("@contentful/f36-icons"),{Icon:m}=require("@contentful/f36-icon"),f=p(require("@contentful/f36-tokens"));function p(e){return e&&e.__esModule?e.default:e}var b,C,h,v,I={};b=I,C="Note",h=()=>k,Object.defineProperty(b,C,{get:h,set:v,enumerable:!0,configurable:!0});const y=e=>{switch(e){case"primary":return{backgroundColor:f.blue100,borderColor:f.blue300,a:{color:f.blue700}};case"positive":return{backgroundColor:f.green100,borderColor:f.green300,a:{color:f.green700}};case"negative":return{backgroundColor:f.red100,borderColor:f.red300,a:{color:f.red700}};case"warning":return{backgroundColor:f.orange100,borderColor:f.orange300,a:{color:f.orange700}};default:return{}}},E={primary:u,positive:d,negative:l,warning:s},k=t.forwardRef(((l,s)=>{const{children:u,className:d,withCloseButton:p=!1,variant:b="primary",onClose:C,testId:h="cf-ui-note",title:v,...I}=l,k={container:({variant:e})=>n({borderRadius:f.borderRadiusMedium,border:"1px solid",...y(e)},""),title:n({color:f.gray800,fontSize:f.fontSizeL,lineHeight:f.lineHeightL,marginBottom:f.spacingXs},""),description:n({color:f.gray700},""),close:n({padding:f.spacingXs,marginTop:`-${f.spacingXs}`,marginRight:`-${f.spacingXs}`,"&:hover, &:active":{backgroundColor:"transparent"}},""),closeIcon:n({color:f.gray600},"")};return t.createElement(o,e({},I,{as:"article",className:r(k.container({variant:b,withCloseButton:p}),d),testId:h,ref:s,padding:"spacingM",alignItems:"flex-start"}),t.createElement(o,{marginRight:"spacingS"},t.createElement(m,{as:E[b],variant:b,size:v?"medium":"small"})),t.createElement("div",null,v&&t.createElement(i,{as:"h2",className:k.title},v),t.createElement(c,{as:"p",lineHeight:"lineHeightM",className:k.description},u)),p&&t.createElement(a,{variant:"transparent",startIcon:t.createElement(g,{className:k.closeIcon}),onClick:C,testId:`${h}-close`,"aria-label":"Dismiss",className:k.close}))}));var q,N;k.displayName="Note",q=module.exports,N=I,Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return N[e]}})})); | ||
var e=p(require("@babel/runtime/helpers/extends")),{cx:r,css:n}=require("emotion"),t=p(require("react")),{Flex:o}=require("@contentful/f36-core"),{Button:a}=require("@contentful/f36-button"),{Text:i,Heading:c}=require("@contentful/f36-typography"),{ErrorCircleIcon:l,CheckCircleIcon:s,InfoCircleIcon:u,WarningIcon:d,CloseIcon:g}=require("@contentful/f36-icons"),{Icon:m}=require("@contentful/f36-icon"),f=p(require("@contentful/f36-tokens"));function p(e){return e&&e.__esModule?e.default:e}var b,C,h,v,I={};b=I,C="Note",h=()=>k,Object.defineProperty(b,C,{get:h,set:v,enumerable:!0,configurable:!0});const y=e=>{switch(e){case"primary":return{backgroundColor:f.blue100,borderColor:f.blue300,a:{color:f.blue700}};case"positive":return{backgroundColor:f.green100,borderColor:f.green300,a:{color:f.green700}};case"negative":return{backgroundColor:f.red100,borderColor:f.red300,a:{color:f.red700}};case"warning":return{backgroundColor:f.orange100,borderColor:f.orange300,a:{color:f.orange700}};default:return{}}},E={primary:u,positive:s,negative:l,warning:d},k=t.forwardRef(((l,s)=>{const{children:u,className:d,withCloseButton:p=!1,variant:b="primary",onClose:C,testId:h="cf-ui-note",title:v,...I}=l,k={container:({variant:e})=>n({borderRadius:f.borderRadiusMedium,border:"1px solid",...y(e)},""),title:n({color:f.gray800,fontSize:f.fontSizeL,lineHeight:f.lineHeightL,marginBottom:f.spacingXs},""),description:n({color:f.gray700},""),close:n({padding:f.spacingXs,marginTop:`-${f.spacingXs}`,marginRight:`-${f.spacingXs}`,"&:hover, &:active":{backgroundColor:"transparent"}},""),closeIcon:n({color:f.gray600},"")};return t.createElement(o,e({},I,{as:"article",className:r(k.container({variant:b,withCloseButton:p}),d),testId:h,ref:s,padding:"spacingM",alignItems:"flex-start"}),t.createElement(o,{marginRight:"spacingS"},t.createElement(m,{as:E[b],variant:b,size:v?"medium":"small"})),t.createElement("div",null,v&&t.createElement(c,{as:"h2",className:k.title},v),t.createElement(i,{as:"p",lineHeight:"lineHeightM",className:k.description},u)),p&&t.createElement(a,{variant:"transparent",startIcon:t.createElement(g,{className:k.closeIcon}),onClick:C,testId:`${h}-close`,"aria-label":"Dismiss",className:k.close}))}));var q,N;k.displayName="Note",q=module.exports,N=I,Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return N[e]}})})); | ||
//# sourceMappingURL=main.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as r,css as o}from"emotion";import t from"react";import{Flex as a}from"@contentful/f36-core";import{Button as n}from"@contentful/f36-button";import{Text as i,Heading as s}from"@contentful/f36-typography";import{CloseIcon as c,ErrorCircleIcon as l,InfoCircleIcon as m,CheckCircleIcon as g,WarningIcon as d}from"@contentful/f36-icons";import{Icon as p}from"@contentful/f36-icon";import u from"@contentful/f36-tokens";var f,b,C,h;f={},b="Note",C=()=>y,Object.defineProperty(f,b,{get:C,set:h,enumerable:!0,configurable:!0});const I=e=>{switch(e){case"primary":return{backgroundColor:u.blue100,borderColor:u.blue300,a:{color:u.blue700}};case"positive":return{backgroundColor:u.green100,borderColor:u.green300,a:{color:u.green700}};case"negative":return{backgroundColor:u.red100,borderColor:u.red300,a:{color:u.red700}};case"warning":return{backgroundColor:u.orange100,borderColor:u.orange300,a:{color:u.orange700}};default:return{}}},v={primary:m,positive:g,negative:l,warning:d},y=t.forwardRef(((l,m)=>{const{children:g,className:d,withCloseButton:f=!1,variant:b="primary",onClose:C,testId:h="cf-ui-note",title:y,...N}=l,E={container:({variant:e})=>o({borderRadius:u.borderRadiusMedium,border:"1px solid",...I(e)},""),title:o({color:u.gray800,fontSize:u.fontSizeL,lineHeight:u.lineHeightL,marginBottom:u.spacingXs},""),description:o({color:u.gray700},""),close:o({padding:u.spacingXs,marginTop:`-${u.spacingXs}`,marginRight:`-${u.spacingXs}`,"&:hover, &:active":{backgroundColor:"transparent"}},""),closeIcon:o({color:u.gray600},"")};return t.createElement(a,e({},N,{as:"article",className:r(E.container({variant:b,withCloseButton:f}),d),testId:h,ref:m,padding:"spacingM",alignItems:"flex-start"}),t.createElement(a,{marginRight:"spacingS"},t.createElement(p,{as:v[b],variant:b,size:y?"medium":"small"})),t.createElement("div",null,y&&t.createElement(s,{as:"h2",className:E.title},y),t.createElement(i,{as:"p",lineHeight:"lineHeightM",className:E.description},g)),f&&t.createElement(n,{variant:"transparent",startIcon:t.createElement(c,{className:E.closeIcon}),onClick:C,testId:`${h}-close`,"aria-label":"Dismiss",className:E.close}))}));y.displayName="Note";export{y as Note}; | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as r,css as o}from"emotion";import t from"react";import{Flex as a}from"@contentful/f36-core";import{Button as n}from"@contentful/f36-button";import{Heading as i,Text as s}from"@contentful/f36-typography";import{CloseIcon as c,InfoCircleIcon as l,CheckCircleIcon as m,ErrorCircleIcon as g,WarningIcon as d}from"@contentful/f36-icons";import{Icon as p}from"@contentful/f36-icon";import u from"@contentful/f36-tokens";var f,b,C,h;f={},b="Note",C=()=>y,Object.defineProperty(f,b,{get:C,set:h,enumerable:!0,configurable:!0});const I=e=>{switch(e){case"primary":return{backgroundColor:u.blue100,borderColor:u.blue300,a:{color:u.blue700}};case"positive":return{backgroundColor:u.green100,borderColor:u.green300,a:{color:u.green700}};case"negative":return{backgroundColor:u.red100,borderColor:u.red300,a:{color:u.red700}};case"warning":return{backgroundColor:u.orange100,borderColor:u.orange300,a:{color:u.orange700}};default:return{}}},v={primary:l,positive:m,negative:g,warning:d},y=t.forwardRef(((l,m)=>{const{children:g,className:d,withCloseButton:f=!1,variant:b="primary",onClose:C,testId:h="cf-ui-note",title:y,...N}=l,E={container:({variant:e})=>o({borderRadius:u.borderRadiusMedium,border:"1px solid",...I(e)},""),title:o({color:u.gray800,fontSize:u.fontSizeL,lineHeight:u.lineHeightL,marginBottom:u.spacingXs},""),description:o({color:u.gray700},""),close:o({padding:u.spacingXs,marginTop:`-${u.spacingXs}`,marginRight:`-${u.spacingXs}`,"&:hover, &:active":{backgroundColor:"transparent"}},""),closeIcon:o({color:u.gray600},"")};return t.createElement(a,e({},N,{as:"article",className:r(E.container({variant:b,withCloseButton:f}),d),testId:h,ref:m,padding:"spacingM",alignItems:"flex-start"}),t.createElement(a,{marginRight:"spacingS"},t.createElement(p,{as:v[b],variant:b,size:y?"medium":"small"})),t.createElement("div",null,y&&t.createElement(i,{as:"h2",className:E.title},y),t.createElement(s,{as:"p",lineHeight:"lineHeightM",className:E.description},g)),f&&t.createElement(n,{variant:"transparent",startIcon:t.createElement(c,{className:E.closeIcon}),onClick:C,testId:`${h}-close`,"aria-label":"Dismiss",className:E.close}))}));y.displayName="Note";export{y as Note}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-note", | ||
"version": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"version": "4.0.1-next-v4-8971.2401+63b50129", | ||
"description": "Forma 36: Note component", | ||
@@ -10,7 +10,7 @@ "scripts": { | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-button": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"@contentful/f36-core": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"@contentful/f36-icons": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"@contentful/f36-typography": "4.0.1-next-v4-8955.2400+533a84a7", | ||
"@contentful/f36-button": "4.0.1-next-v4-8971.2401+63b50129", | ||
"@contentful/f36-core": "4.0.1-next-v4-8971.2401+63b50129", | ||
"@contentful/f36-icons": "4.0.1-next-v4-8971.2401+63b50129", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-8971.2401+63b50129", | ||
"@contentful/f36-typography": "4.0.1-next-v4-8971.2401+63b50129", | ||
"emotion": "^10.0.17" | ||
@@ -42,3 +42,3 @@ }, | ||
}, | ||
"gitHead": "533a84a715f5808601a1dbe17f9565e829b3f2d9" | ||
"gitHead": "63b5012900d2fb3ef5ac8db51ae40b9876e4bd27" | ||
} |
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
Updated@contentful/f36-button@4.0.1-next-v4-8971.2401+63b50129
Updated@contentful/f36-core@4.0.1-next-v4-8971.2401+63b50129
Updated@contentful/f36-icons@4.0.1-next-v4-8971.2401+63b50129
Updated@contentful/f36-tokens@4.0.1-next-v4-8971.2401+63b50129
Updated@contentful/f36-typography@4.0.1-next-v4-8971.2401+63b50129