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

@contentful/f36-note

Package Overview
Dependencies
Maintainers
104
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-note - npm Package Compare versions

Comparing version 4.0.1-next-v4-7712.2324 to 4.0.1-next-v4-7774.2326

2

dist/main.js

@@ -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"),{InfoCircleIcon:l,CloseIcon:s,CheckCircleIcon:u,ErrorCircleIcon:d,WarningIcon: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:l,positive:u,negative:d,warning:g},k=t.forwardRef(((l,u)=>{const{children:d,className:g,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}),g),testId:h,ref:u,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},d)),p&&t.createElement(a,{variant:"transparent",icon:t.createElement(s,{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"),{InfoCircleIcon:l,WarningIcon:s,CloseIcon:u,ErrorCircleIcon:d,CheckCircleIcon: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:l,positive:g,negative:d,warning:s},k=t.forwardRef(((l,s)=>{const{children:d,className:g,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}),g),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},d)),p&&t.createElement(a,{variant:"transparent",icon:t.createElement(u,{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{Heading as i,Text as s}from"@contentful/f36-typography";import{InfoCircleIcon as c,CheckCircleIcon as l,WarningIcon as m,ErrorCircleIcon as g,CloseIcon 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 v=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{}}},I={primary:c,positive:l,negative:g,warning:m},y=t.forwardRef(((c,l)=>{const{children:m,className:g,withCloseButton:f=!1,variant:b="primary",onClose:C,testId:h="cf-ui-note",title:y,...N}=c,E={container:({variant:e})=>o({borderRadius:u.borderRadiusMedium,border:"1px solid",...v(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}),g),testId:h,ref:l,padding:"spacingM",alignItems:"flex-start"}),t.createElement(a,{marginRight:"spacingS"},t.createElement(p,{as:I[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},m)),f&&t.createElement(n,{variant:"transparent",icon:t.createElement(d,{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,CheckCircleIcon as l,WarningIcon as m,ErrorCircleIcon as g,InfoCircleIcon 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 v=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{}}},I={primary:d,positive:l,negative:g,warning:m},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",...v(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:I[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",icon: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-7712.2324+af7a27ba",
"version": "4.0.1-next-v4-7774.2326+08efe182",
"description": "Forma 36: Note component",

@@ -10,7 +10,7 @@ "scripts": {

"@babel/runtime": "^7.6.2",
"@contentful/f36-button": "4.0.1-next-v4-7712.2324+af7a27ba",
"@contentful/f36-core": "4.0.1-next-v4-7712.2324+af7a27ba",
"@contentful/f36-icons": "4.0.1-next-v4-7712.2324+af7a27ba",
"@contentful/f36-tokens": "4.0.1-next-v4-7712.2324+af7a27ba",
"@contentful/f36-typography": "4.0.1-next-v4-7712.2324+af7a27ba",
"@contentful/f36-button": "4.0.1-next-v4-7774.2326+08efe182",
"@contentful/f36-core": "4.0.1-next-v4-7774.2326+08efe182",
"@contentful/f36-icons": "4.0.1-next-v4-7774.2326+08efe182",
"@contentful/f36-tokens": "4.0.1-next-v4-7774.2326+08efe182",
"@contentful/f36-typography": "4.0.1-next-v4-7774.2326+08efe182",
"emotion": "^10.0.17"

@@ -42,3 +42,3 @@ },

},
"gitHead": "af7a27ba0899f3ed548fe9562110076e841fe581"
"gitHead": "08efe182d6b4ee532be91cfbf86b2c3ba2f9f474"
}
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